Skip to content

Commit

Permalink
v2.2.0
Browse files Browse the repository at this point in the history
- 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
  • Loading branch information
gmpassos committed Jan 7, 2024
1 parent 4bd4b1f commit 737a25a
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 22 deletions.
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
## 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`.
Expand Down
4 changes: 2 additions & 2 deletions example/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import 'package:bones_ui/bones_ui_kit.dart';
import 'package:bones_ui_bootstrap/bones_ui_bootstrap.dart';

class MyUI extends UIRoot {
MyUI(Element? rootContainer) : super(rootContainer);
MyUI(super.rootContainer);

@override
void configure() {
Expand All @@ -18,7 +18,7 @@ class MyUI extends UIRoot {
}

class MyPage extends UIComponent {
MyPage(Element? parent) : super(parent);
MyPage(super.parent);

@override
dynamic render() {
Expand Down
6 changes: 2 additions & 4 deletions lib/src/components/accordion.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import 'dart:html';

import 'package:bones_ui/bones_ui.dart';
import 'package:dom_builder/dom_builder.dart';

Expand Down Expand Up @@ -47,9 +45,9 @@ class BSAccordion extends UIComponent {
/// Index of expanded item.
final int? expandIndex;

BSAccordion(Element? parent, this.items,
BSAccordion(super.parent, this.items,
{String? id, this.expandIndex, dynamic classes, dynamic style})
: super(parent,
: super(
id: id ?? '__BSAccordion__${++_idCounter}',
componentClass: 'ui-bs-accordion',
classes: 'ui-bs-accordion',
Expand Down
7 changes: 4 additions & 3 deletions lib/src/components/daterangepicker.dart
Original file line number Diff line number Diff line change
Expand Up @@ -74,20 +74,21 @@ class BSDateRangePicker extends UIComponent implements UIField<Pair<DateTime>> {

final DateRangeType? initialRangeType;

BSDateRangePicker(Element parent,
BSDateRangePicker(super.parent,
{this.fieldName = 'date-range-picker',
TimePicker? timePicker,
this.showDateTextTitle = true,
List<DateRangeType>? rangesTypes,
this.initialRangeType,
DateTime? startTime,
DateTime? endTime,
dynamic classes})
super.classes,
super.style})
: timePicker = timePicker ?? TimePicker.none,
_rangesTypes = LinkedHashSet.from(rangesTypes ?? []).toList().cast(),
_startTime = _resolveDateTime(startTime, initialRangeType, true),
_endTime = _resolveDateTime(endTime, initialRangeType, false),
super(parent, classes: classes, classes2: 'ui-bs-date-range-picker');
super(classes2: 'ui-bs-date-range-picker');

/// Returns [true] if time picker is present.
bool get hasTimePicker => timePicker != TimePicker.none;
Expand Down
22 changes: 11 additions & 11 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
name: bones_ui_bootstrap
description: Adds Bootstrap 4+ support to Dart package bones_ui, allowing use of Bootstrap components and CSS.
version: 2.1.2
version: 2.2.0
homepage: https://github.com/Colossus-Services/bones_ui_bootstrap

environment:
sdk: '>=2.18.0 <3.0.0'
sdk: '>=3.0.0 <4.0.0'

dependencies:
bones_ui: ^2.1.20
swiss_knife: ^3.1.5
bones_ui: ^2.4.0
swiss_knife: ^3.1.6
amdjs: ^2.0.3
dom_tools: ^2.1.14
dom_builder: ^2.1.6
intl_messages: ^2.0.7
dom_tools: ^2.2.0
dom_builder: ^2.2.2
intl_messages: ^2.2.3

dev_dependencies:
build_runner: ^2.3.3
build_runner: ^2.4.7
build_web_compilers: ^3.2.7
sass_builder: ^2.2.1 # To automatically build SCSS files.
lints: ^2.0.1
dependency_validator: ^3.2.2
test: ^1.23.1
lints: ^3.0.0
dependency_validator: ^3.2.3
test: ^1.24.9

#dependency_overrides:
# bones_ui:
Expand Down
4 changes: 2 additions & 2 deletions test/bones_ui_bootstrap_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@ void main() {
}

class MyRoot extends UIRoot {
MyRoot(Element? rootContainer) : super(rootContainer);
MyRoot(super.rootContainer);

@override
UIComponent? renderContent() => MyHome(content!);
}

class MyHome extends UIComponent {
MyHome(Element? parent) : super(parent, id: 'my-home');
MyHome(super.parent) : super(id: 'my-home');

@override
render() => BSAccordion(
Expand Down

0 comments on commit 737a25a

Please sign in to comment.