bones_ui_bootstrap 5.0.0 copy "bones_ui_bootstrap: ^5.0.0" to clipboard
bones_ui_bootstrap: ^5.0.0 copied to clipboard

Adds Bootstrap 5 support to Dart package bones_ui, allowing use of Bootstrap components and CSS.

5.0.0 #

  • Bootstrap 5 (5.3.7). For Bootstrap 4 use version 4.x (branch 4.x).

  • Bundled libraries:

    • Bootstrap: 5.3.7 (was 4.6.1).
    • Bootstrap Icons: 1.13.1 (was 1.10.4).
    • JQuery: 3.7.1 (was 3.5.1).
    • Moment: 2.30.1 (was 2.25.2).
    • Date Range Picker: 3.1 (was 3.0.5).
  • Bootstrap:

    • load: doesn't load JQuery anymore (not needed by Bootstrap 5).
    • enableTooltip: uses the Bootstrap 5 API (bootstrap.Tooltip.getOrCreateInstance) for elements with data-bs-toggle="tooltip". Returns true if any tooltip element was found.
  • JQuery:

    • openWindow: sets the window HTML with innerHTML (doesn't depend on JQuery).
  • BSAccordion:

    • Bootstrap 5 accordion markup: accordion, accordion-item, accordion-header, accordion-button, accordion-collapse and accordion-body (was based on card).
    • New option flush (accordion-flush): no outer borders and rounded corners.
  • BootstrapIcons:

    • iconsList updated to Bootstrap Icons 1.13.1 (125 new icons).
  • daterangepicker.js: keeps the local patches (minute rounded to timePickerIncrement; callback with a single array), now documented in the file header.

  • Tests:

    • New bones_ui_bootstrap_bs5_test.dart: Bootstrap 5 without JQuery: load, bundled JS version, CSS loaded first, Bootstrap 5 CSS utilities, tooltips (instances, shown title, enableTooltipOnRender, no data-toggle), BSAccordion (Bootstrap 5 styles, collapse/expand via clicks and the Collapse API, flush computed styles, DOM/component content, item classes/styles) and JQuery.openWindow.
    • Integration: bundled JQuery/Moment versions, Bootstrap 5 JQuery plugins when JQuery is present, Date Range Picker (minute rounding with TimePicker.hoursMinutesBy15, cancel, ranges).
    • Unit: new BSAccordion markup (data-bs-*, no Bootstrap 4 attributes), flush, Bootstrap Icons 1.13.1.
    • New VM tests: iconsList matches lib/icons/*.svg; versions consistent across code, bundled assets, pubspec.yaml, CHANGELOG and README; no stale bundled libraries; daterangepicker.js local patches present; no Bootstrap 4 data attributes in the library.
    • CI: also run VM tests.

Migration from 4.x (breaking changes) #

  • Bootstrap.load() no longer loads JQuery. If you use JQuery.$, call JQuery.load() yourself. (BSDateRangePicker still loads JQuery, which it needs.)
  • Bootstrap 5 data attributes: data-toggle → data-bs-toggle, data-target → data-bs-target, data-parent → data-bs-parent, data-dismiss → data-bs-dismiss, data-placement → data-bs-placement, etc.
    • Tooltips are only enabled for data-bs-toggle="tooltip"; data-toggle="tooltip" is not supported.
  • BSAccordion markup changed (no card, card-header, card-body, btn-link; the header is now the h2 with the <id>-heading-<index> ID). Update app CSS that targets the old classes. Element IDs (<id>-heading-<index>, <id>-collapse-<index>) didn't change.
  • JQuery.openWindow(html: ...): scripts inside html are not executed anymore (innerHTML instead of JQuery html()).
  • Bootstrap 5 renamed many CSS classes (ml-*/mr-* → ms-*/me-*, text-left → text-start, float-right → float-end, font-weight-* → fw-*, badge-* → bg-*, sr-only → visually-hidden, ...). See the official guide: https://getbootstrap.com/docs/5.3/migration/

4.0.1 #

  • BSAccordion:
    • Document the id parameter: null (default) auto-generates a unique ID; empty/blank IDs are rejected.
    • Clearer ArgumentError for an empty/blank id, explaining to pass null (or omit it) or a non-empty ID.

4.0.0 #

  • Maintenance release for Bootstrap 4 (package:web / JS interop migration, from 3.0.0-beta.x).

    • The Bootstrap 5 work (published as 2.4.0-beta.1) moved to branch bootstrap-5, for a future 5.0.0.
  • pubspec.yaml:

    • sdk: from >=3.6.0 <4.0.0 to >=3.10.0 <4.0.0
    • Updated dependencies:
      • bones_ui: from ^3.0.12 to ^3.1.4
      • amdjs: from ^3.0.0-beta.2 to ^3.0.0
      • dom_tools: from ^3.0.0 to ^3.1.0
      • dom_builder: from ^3.0.7 to ^3.2.0
      • intl_messages: from ^3.0.0 to ^3.0.2
      • web_utils: from ^1.0.23 to ^1.1.0
    • Updated dev_dependencies:
      • build_runner: from ^2.11.1 to ^2.16.2
      • build_web_compilers: from ^4.4.13 to ^4.8.11
      • lints: from ^5.1.1 to ^6.1.0
      • dependency_validator: from ^3.2.3 to ^5.1.0
      • test: from ^1.30.0 to ^1.32.0
  • BSAccordion:

    • Fix: a blank id now throws ArgumentError (was silently set to 'null').
  • Tests:

    • More unit tests: BSAccordion, BootstrapIcons, Moment, BSDateRangePicker.
    • New browser integration tests (bones_ui_bootstrap_integration_test.dart): loading of JQuery/Bootstrap/Moment, JQuery calls, Moment conversions/locale, BSAccordion collapse via Bootstrap JS and BSDateRangePicker JS selection → Dart callback.

3.0.0-beta.7 #

  • pubspec.yaml:
    • Updated dependencies:
      • bones_ui: from ^3.0.0-beta.19 to ^3.0.12
      • swiss_knife: from ^3.3.3 to ^3.3.14
      • dom_tools: from ^3.0.0-beta.15 to ^3.0.0
      • dom_builder: from ^3.0.0-beta.8 to ^3.0.7
      • intl_messages: from ^3.0.0-beta.1 to ^3.0.0
      • web_utils: from ^1.0.19 to ^1.0.23
    • Updated dev_dependencies:
      • build_runner: from ^2.10.4 to ^2.11.1
      • build_web_compilers: from ^4.4.6 to ^4.4.13
      • test: from ^1.28.0 to ^1.30.0

3.0.0-beta.6 #

  • Moment:

    • moment(DateTime): changed to construct moment object from ISO 8601 string instead of dateTime.toJSDeep conversion.
  • dom_tools: ^3.0.0-beta.15

  • dom_builder: ^3.0.0-beta.8

  • build_web_compilers: ^4.4.6

3.0.0-beta.5 #

  • BSDateRangePicker:

    • _jsQueryCallback: change parameters to JSArray args to avoid a bug passing a JS string to a JSObject in a Dart function.
  • bones_ui: ^3.0.0-beta.19

  • dom_tools: ^3.0.0-beta.13

  • dom_builder: ^3.0.0-beta.7

  • web_utils: ^1.0.19

  • build_runner: ^2.10.4

  • build_web_compilers: ^4.4.3

  • test: ^1.28.0

  • Removed dev dependency sass_builder.

3.0.0-beta.4 #

  • BSDateRangePicker:

    • _configureDatePicker:
      • Fix JQuery.$(_textElement).call(), pass fallback as _jsQueryCallback.toJS, avoiding jsify issues.
  • bones_ui: ^3.0.0-beta.7

  • swiss_knife: ^3.3.3

  • dom_tools: ^3.0.0-beta.12

  • dom_builder: ^3.0.0-beta.4

  • web: ^1.1.1

  • web_utils: ^1.0.16

  • build_runner: ^2.10.0

  • build_web_compilers: ^4.3.0

  • sass_builder: ^2.4.0

  • test: ^1.26.3

3.0.0-beta.3 #

  • bones_ui: ^3.0.0-beta.5
  • swiss_knife: ^3.3.0
  • dom_tools: ^3.0.0-beta.5
  • intl_messages: ^3.0.0-beta.1
  • web_utils: ^1.0.9

3.0.0-beta.2 #

  • Using JSDate from js_interop_utils: ^1.0.6.

  • bones_ui: ^3.0.0-beta.4

  • web_utils: ^1.0.8

3.0.0-beta.1 #

  • Migrate dart:html (deprecated) to package web.

  • sdk: '>=3.6.0 <4.0.0'

  • bones_ui: ^3.0.0-beta.2

  • amdjs: ^3.0.0-beta.2

  • dom_tools: ^3.0.0-beta.4

  • dom_builder: ^3.0.0-beta.2

  • web: ^1.1.0

  • web_utils: ^1.0.6

2.3.1 #

  • sdk: '>=3.5.0 <4.0.0'

  • bones_ui: ^2.5.13

  • swiss_knife: ^3.2.3

  • amdjs: ^2.0.4

  • dom_tools: ^2.3.2

  • dom_builder: ^2.2.7

  • intl_messages: ^2.3.4

  • build_runner: ^2.4.15

  • build_web_compilers: ^4.1.1

  • lints: ^5.1.1

  • test: ^1.25.15

2.3.0 #

  • sdk: '>=3.3.0 <4.0.0'

  • bones_ui: ^2.5.0

  • swiss_knife: ^3.2.0

  • dom_tools: ^2.3.0

  • intl_messages: ^2.3.0

  • build_runner: ^2.4.8

  • build_web_compilers: ^4.0.9

  • test: ^1.25.2

2.2.0 #

  • sdk: '>=3.0.0 <4.0.0'
  • bones_ui: ^2.4.0
  • swiss_knife: ^3.1.6
  • dom_tools: ^2.2.0
  • dom_builder: ^2.2.2
  • intl_messages: ^2.2.3
  • build_runner: ^2.4.7
  • lints: ^3.0.0
  • dependency_validator: ^3.2.3
  • test: ^1.24.9

2.1.2 #

  • update icons 1.10.4.
  • bones_ui: ^2.1.20
  • swiss_knife: ^3.1.5
  • dom_tools: ^2.1.14
  • dom_builder: ^2.1.6
  • intl_messages: ^2.0.7
  • test: ^1.23.1

2.1.1 #

  • bones_ui: ^2.1.7
  • test: ^1.22.2

2.1.0 #

  • sdk: '>=2.18.0 <3.0.0'
  • bones_ui: ^2.1.3
  • swiss_knife: ^3.1.3
  • dom_tools: ^2.1.9
  • intl_messages: ^2.0.5
  • build_runner: ^2.3.3
  • build_web_compilers: ^3.2.7
  • sass_builder: ^2.2.1
  • lints: ^2.0.1
  • test: ^1.22.1

2.0.8 #

  • AccordionItem:
    • Added classes, style, headClasses, headStyle, bodyClasses, bodyStyle.
  • bones_ui: ^2.0.14
  • dom_tools: ^2.1.3
  • dom_builder: ^2.1.0
  • intl_messages: ^2.0.3
  • build_runner: ^2.2.0
  • build_web_compilers: ^3.2.4
  • dependency_validator: ^3.2.2
  • test: ^1.21.4

2.0.7 #

  • bones_ui: ^2.0.13
  • build_runner: ^2.1.11
  • build_web_compilers: ^3.2.3
  • lints: ^2.0.0
  • dependency_validator: ^3.2.0
  • test: ^1.21.3

2.0.6 #

  • bones_ui: ^2.0.11
  • intl_messages: ^2.0.2

2.0.5 #

  • Improve GitHub CI.
  • bones_ui: ^2.0.10
  • swiss_knife: ^3.1.1
  • amdjs: ^2.0.3
  • dom_tools: ^2.1.1
  • dom_builder: ^2.0.9

2.0.4 #

  • Upgrade Bootstrap to v4.6.1.
  • Upgrade Bootstrap Icons to v1.8.1.
  • Improved Web Example.
    • Added icons, date range picker and accordion.
    • Added SCSS file.
  • sdk: '>=2.15.0 <3.0.0'
  • bones_ui: ^2.0.8
  • amdjs: ^2.0.2
  • dom_tools: ^2.1.0
  • dom_builder: ^2.0.8
  • lints: ^1.0.1
  • sass_builder: ^2.1.3
  • dependency_validator: ^3.1.0

2.0.3 #

  • Bootstrap.enableTooltip now using named parameters.
  • JQuery:
    • Added openWindow.
  • bones_ui: ^2.0.3
  • swiss_knife: ^3.0.8

2.0.2 #

  • Upgrade Bootstrap to v4.6.0.
  • Upgrade Bootstrap Icons to v1.5.0.
  • bones_ui: ^2.0.2
  • swiss_knife: ^3.0.7
  • sdk: '>=2.13.0 <3.0.0'

2.0.1 #

  • bones_ui: ^2.0.1
  • swiss_knife: ^3.0.6
  • amdjs: ^2.0.1
  • dom_tools: ^2.0.1
  • intl_messages: ^2.0.1

1.2.0 #

  • bones_ui: ^1.2.0
  • swiss_knife: ^2.5.24
  • dom_tools: ^1.3.20
  • intl_messages: ^1.1.13

1.1.1 #

  • Bootstrap 4.5.3
  • Bootstrap Icons 1.1.0
  • swiss_knife: ^2.5.18
  • amdjs: ^1.0.7
  • dom_tools: ^1.3.15
  • intl_messages: ^1.1.12

1.1.0 #

  • bones_ui: ^1.1.0
  • swiss_knife: ^2.5.16
  • dom_tools: ^1.3.14

1.0.6 #

  • bones_ui: ^1.0.20
  • swiss_knife: ^2.5.13

1.0.5 #

  • Update Bootstrap icons.
  • Moved UISVG to package bones_ui.
  • bones_ui: ^1.0.17
  • swiss_knife: ^2.5.12
  • amdjs: ^1.0.6
  • dom_tools: ^1.3.10
  • intl_messages: ^1.1.10
  • pedantic: ^1.9.2
  • test: ^1.15.3

1.0.4 #

  • Upgrade to Bootstrap 4.5.0.
  • bones_ui: ^1.0.13
  • swiss_knife: ^2.5.5
  • amdjs: ^1.0.5
  • dom_tools: ^1.3.4

1.0.3 #

  • BSDateRangePicker: Fix a Dart issue with JS calling a Dart Object method: Circumvent using lambda with optional parameters as callback.
  • dartfmt.

1.0.2 #

  • bones_ui: ^1.0.12
  • dom_tools: ^1.3.2

1.0.1 #

  • Add API Documentation.
  • Added example for BootstrapIcons.

1.0.0 #

  • Initial version, created by Stagehand
10
likes
0
points
1.02k
downloads

Publisher

unverified uploader

Weekly Downloads

Adds Bootstrap 5 support to Dart package bones_ui, allowing use of Bootstrap components and CSS.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

amdjs, bones_ui, dom_builder, dom_tools, intl_messages, swiss_knife, web, web_utils

More

Packages that depend on bones_ui_bootstrap