ngx-bootstrap 10.2.0 → 10.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +60 -30
- package/accordion/package.json +2 -2
- package/alert/package.json +2 -2
- package/buttons/package.json +1 -1
- package/carousel/package.json +2 -2
- package/chronos/package.json +1 -1
- package/collapse/package.json +1 -1
- package/component-loader/package.json +2 -2
- package/datepicker/bs-datepicker.config.d.ts +4 -0
- package/datepicker/bs-datepicker.css +6 -3
- package/datepicker/bs-datepicker.css.map +1 -1
- package/datepicker/bs-datepicker.scss +7 -2
- package/datepicker/esm2020/bs-datepicker.component.mjs +4 -3
- package/datepicker/esm2020/bs-datepicker.config.mjs +5 -1
- package/datepicker/esm2020/bs-daterangepicker.component.mjs +4 -3
- package/datepicker/fesm2015/ngx-bootstrap-datepicker.mjs +13 -7
- package/datepicker/fesm2015/ngx-bootstrap-datepicker.mjs.map +1 -1
- package/datepicker/fesm2020/ngx-bootstrap-datepicker.mjs +10 -4
- package/datepicker/fesm2020/ngx-bootstrap-datepicker.mjs.map +1 -1
- package/datepicker/package.json +5 -5
- package/dropdown/package.json +2 -2
- package/focus-trap/package.json +1 -1
- package/locale/package.json +2 -2
- package/mini-ngrx/package.json +1 -1
- package/modal/bs-modal.service.d.ts +1 -0
- package/modal/esm2020/bs-modal.service.mjs +7 -1
- package/modal/esm2020/modal-container.component.mjs +7 -1
- package/modal/esm2020/modal.directive.mjs +5 -1
- package/modal/fesm2015/ngx-bootstrap-modal.mjs +31 -17
- package/modal/fesm2015/ngx-bootstrap-modal.mjs.map +1 -1
- package/modal/fesm2020/ngx-bootstrap-modal.mjs +31 -17
- package/modal/fesm2020/ngx-bootstrap-modal.mjs.map +1 -1
- package/modal/modal-container.component.d.ts +1 -0
- package/modal/modal.directive.d.ts +1 -0
- package/modal/package.json +3 -3
- package/package.json +1 -1
- package/pagination/package.json +1 -1
- package/popover/esm2020/popover-container.component.mjs +4 -4
- package/popover/fesm2015/ngx-bootstrap-popover.mjs +3 -3
- package/popover/fesm2015/ngx-bootstrap-popover.mjs.map +1 -1
- package/popover/fesm2020/ngx-bootstrap-popover.mjs +3 -3
- package/popover/fesm2020/ngx-bootstrap-popover.mjs.map +1 -1
- package/popover/package.json +4 -4
- package/positioning/package.json +2 -2
- package/progressbar/package.json +1 -1
- package/rating/package.json +1 -1
- package/schematics/utils/current_dependency_versions.json +2 -2
- package/sortable/package.json +1 -1
- package/tabs/package.json +1 -1
- package/timepicker/package.json +2 -2
- package/tooltip/esm2020/tooltip-container.component.mjs +3 -3
- package/tooltip/fesm2015/ngx-bootstrap-tooltip.mjs +2 -2
- package/tooltip/fesm2015/ngx-bootstrap-tooltip.mjs.map +1 -1
- package/tooltip/fesm2020/ngx-bootstrap-tooltip.mjs +2 -2
- package/tooltip/fesm2020/ngx-bootstrap-tooltip.mjs.map +1 -1
- package/tooltip/package.json +4 -4
- package/typeahead/package.json +3 -3
- package/utils/esm2020/triggers.mjs +5 -3
- package/utils/esm2020/utils.class.mjs +3 -3
- package/utils/fesm2015/ngx-bootstrap-utils.mjs +6 -4
- package/utils/fesm2015/ngx-bootstrap-utils.mjs.map +1 -1
- package/utils/fesm2020/ngx-bootstrap-utils.mjs +6 -4
- package/utils/fesm2020/ngx-bootstrap-utils.mjs.map +1 -1
- package/utils/package.json +1 -1
@@ -101,6 +101,10 @@ class BsDatepickerConfig {
|
|
101
101
|
* Set rule for datepicker closing. If value is true datepicker closes only if date is changed, if user changes only time datepicker doesn't close. It is available only if property withTimepicker is set true
|
102
102
|
* */
|
103
103
|
this.keepDatepickerOpened = false;
|
104
|
+
/**
|
105
|
+
* Allows keep invalid dates in range. Can be used with minDate, maxDate
|
106
|
+
* */
|
107
|
+
this.keepDatesOutOfRules = false;
|
104
108
|
}
|
105
109
|
}
|
106
110
|
BsDatepickerConfig.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.3", ngImport: i0, type: BsDatepickerConfig, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
@@ -2471,7 +2475,7 @@ class BsDatepickerDirective {
|
|
2471
2475
|
*/
|
2472
2476
|
setConfig() {
|
2473
2477
|
this._config = Object.assign({}, this._config, this.bsConfig, {
|
2474
|
-
value: checkBsValue(this._bsValue, this.maxDate || this.bsConfig && this.bsConfig.maxDate),
|
2478
|
+
value: this._config.keepDatesOutOfRules ? this._bsValue : checkBsValue(this._bsValue, this.maxDate || this.bsConfig && this.bsConfig.maxDate),
|
2475
2479
|
isDisabled: this.isDisabled,
|
2476
2480
|
minDate: this.minDate || this.bsConfig && this.bsConfig.minDate,
|
2477
2481
|
maxDate: this.maxDate || this.bsConfig && this.bsConfig.maxDate,
|
@@ -2482,7 +2486,8 @@ class BsDatepickerDirective {
|
|
2482
2486
|
datesEnabled: this.datesEnabled || this.bsConfig && this.bsConfig.datesEnabled,
|
2483
2487
|
minMode: this.minMode || this.bsConfig && this.bsConfig.minMode,
|
2484
2488
|
initCurrentTime: this.bsConfig?.initCurrentTime,
|
2485
|
-
keepDatepickerOpened: this.bsConfig?.keepDatepickerOpened
|
2489
|
+
keepDatepickerOpened: this.bsConfig?.keepDatepickerOpened,
|
2490
|
+
keepDatesOutOfRules: this.bsConfig?.keepDatesOutOfRules
|
2486
2491
|
});
|
2487
2492
|
}
|
2488
2493
|
unsubscribeSubscriptions() {
|
@@ -3529,7 +3534,7 @@ class BsDaterangepickerDirective {
|
|
3529
3534
|
*/
|
3530
3535
|
setConfig() {
|
3531
3536
|
this._config = Object.assign({}, this._config, this.bsConfig, {
|
3532
|
-
value: checkBsValue(this._bsValue, this.maxDate || this.bsConfig && this.bsConfig.maxDate),
|
3537
|
+
value: this.bsConfig?.keepDatesOutOfRules ? this._bsValue : checkBsValue(this._bsValue, this.maxDate || this.bsConfig && this.bsConfig.maxDate),
|
3533
3538
|
isDisabled: this.isDisabled,
|
3534
3539
|
minDate: this.minDate || this.bsConfig && this.bsConfig.minDate,
|
3535
3540
|
maxDate: this.maxDate || this.bsConfig && this.bsConfig.maxDate,
|
@@ -3540,7 +3545,8 @@ class BsDaterangepickerDirective {
|
|
3540
3545
|
ranges: checkRangesWithMaxDate(this.bsConfig && this.bsConfig.ranges, this.maxDate || this.bsConfig && this.bsConfig.maxDate),
|
3541
3546
|
maxDateRange: this.bsConfig && this.bsConfig.maxDateRange,
|
3542
3547
|
initCurrentTime: this.bsConfig?.initCurrentTime,
|
3543
|
-
keepDatepickerOpened: this.bsConfig?.keepDatepickerOpened
|
3548
|
+
keepDatepickerOpened: this.bsConfig?.keepDatepickerOpened,
|
3549
|
+
keepDatesOutOfRules: this.bsConfig?.keepDatesOutOfRules
|
3544
3550
|
});
|
3545
3551
|
}
|
3546
3552
|
/**
|