@coreui/angular-pro 5.5.9 → 5.5.10
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 +1 -1
- package/fesm2022/coreui-angular-pro.mjs +15 -7
- package/fesm2022/coreui-angular-pro.mjs.map +1 -1
- package/index.d.ts +9 -1
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -199,4 +199,4 @@ This is proprietary software. To use it, you have to obtain a commercial license
|
|
|
199
199
|
[npm-coreui-angular-badge-next]: https://img.shields.io/npm/v/@coreui/angular-pro/next?style=flat-square&color=yellow
|
|
200
200
|
[npm-coreui-angular]: https://www.npmjs.com/package/@coreui/angular-pro
|
|
201
201
|
[npm-coreui-angular-download]: https://img.shields.io/npm/dm/@coreui/angular.svg?style=flat-square
|
|
202
|
-
[angular-badge]: https://img.shields.io/badge/angular-^20.
|
|
202
|
+
[angular-badge]: https://img.shields.io/badge/angular-^20.2.0-lightgrey.svg?style=flat-square&logo=angular
|
|
@@ -9448,6 +9448,7 @@ class MultiSelectComponent {
|
|
|
9448
9448
|
static ngAcceptInputType_itemMinWidthInput;
|
|
9449
9449
|
static ngAcceptInputType_loading;
|
|
9450
9450
|
static ngAcceptInputType_multiple;
|
|
9451
|
+
static ngAcceptInputType_resetSelectionOnOptionsChange;
|
|
9451
9452
|
static ngAcceptInputType_selectAll;
|
|
9452
9453
|
static ngAcceptInputType_virtualScroller;
|
|
9453
9454
|
static ngAcceptInputType_visibleInput;
|
|
@@ -9592,6 +9593,13 @@ class MultiSelectComponent {
|
|
|
9592
9593
|
* @default 'Select...'
|
|
9593
9594
|
*/
|
|
9594
9595
|
placeholder = input('Select...', ...(ngDevMode ? [{ debugName: "placeholder" }] : []));
|
|
9596
|
+
/**
|
|
9597
|
+
* Resets selection when options are changed
|
|
9598
|
+
* When set to true, any previously selected options will be reset whenever the options list undergoes a change.
|
|
9599
|
+
* This ensures that outdated selections are not retained when new options are provided.
|
|
9600
|
+
* @default false
|
|
9601
|
+
* */
|
|
9602
|
+
resetSelectionOnOptionsChange = input(false, ...(ngDevMode ? [{ debugName: "resetSelectionOnOptionsChange", transform: booleanAttribute }] : [{ transform: booleanAttribute }]));
|
|
9595
9603
|
/**
|
|
9596
9604
|
* Enables search input element
|
|
9597
9605
|
* @return boolean | SearchFn | 'external'
|
|
@@ -9677,10 +9685,8 @@ class MultiSelectComponent {
|
|
|
9677
9685
|
if (newValue.length === 0) {
|
|
9678
9686
|
this.multiSelectService.selectionModel.clear();
|
|
9679
9687
|
}
|
|
9680
|
-
this.#value.set([...newValue]);
|
|
9681
9688
|
this.value$.next([...newValue]);
|
|
9682
9689
|
this.onChange(this.value);
|
|
9683
|
-
// this.valueChange.emit(this.value);
|
|
9684
9690
|
}
|
|
9685
9691
|
// }
|
|
9686
9692
|
}
|
|
@@ -10033,9 +10039,8 @@ class MultiSelectComponent {
|
|
|
10033
10039
|
this.clearAllOptions();
|
|
10034
10040
|
return;
|
|
10035
10041
|
}
|
|
10036
|
-
|
|
10037
|
-
|
|
10038
|
-
});
|
|
10042
|
+
this.multiSelectService.selectionModel.setSelection(...value);
|
|
10043
|
+
this.#value.set(this.multiSelectService.selectionModel.selected);
|
|
10039
10044
|
});
|
|
10040
10045
|
this.value$
|
|
10041
10046
|
.pipe(debounceTime(100), distinctUntilChanged(), tap((value) => {
|
|
@@ -10089,6 +10094,9 @@ class MultiSelectComponent {
|
|
|
10089
10094
|
}
|
|
10090
10095
|
}
|
|
10091
10096
|
makeOptions(options) {
|
|
10097
|
+
if (this.resetSelectionOnOptionsChange() && this.search() !== 'external') {
|
|
10098
|
+
this.clearAllOptions();
|
|
10099
|
+
}
|
|
10092
10100
|
if (this.search() === 'external' && this.searchValue.length) {
|
|
10093
10101
|
this.#options.forEach((option, key) => {
|
|
10094
10102
|
option.visible = false;
|
|
@@ -10169,8 +10177,8 @@ class MultiSelectComponent {
|
|
|
10169
10177
|
if (this.visibleOptions()) {
|
|
10170
10178
|
if (!this.virtualScroller()) {
|
|
10171
10179
|
this.#options.clear();
|
|
10180
|
+
this.makeOptions(this.multiSelectOptionsContent.toArray());
|
|
10172
10181
|
}
|
|
10173
|
-
this.makeOptions(this.multiSelectOptionsContent.toArray());
|
|
10174
10182
|
}
|
|
10175
10183
|
});
|
|
10176
10184
|
this.visibleOptions.set(this.multiSelectOptionsContent?.length > 0 || this.multiSelectOptionsView?.length > 0);
|
|
@@ -10497,7 +10505,7 @@ class MultiSelectComponent {
|
|
|
10497
10505
|
this.visible.update((visible) => !visible);
|
|
10498
10506
|
}
|
|
10499
10507
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: MultiSelectComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
10500
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.2.1", type: MultiSelectComponent, isStandalone: true, selector: "c-multi-select", inputs: { allowCreateOptions: { classPropertyName: "allowCreateOptions", publicName: "allowCreateOptions", isSignal: true, isRequired: false, transformFunction: null }, cleaner: { classPropertyName: "cleaner", publicName: "cleaner", isSignal: true, isRequired: false, transformFunction: null }, clearSearchOnSelect: { classPropertyName: "clearSearchOnSelect", publicName: "clearSearchOnSelect", isSignal: true, isRequired: false, transformFunction: null }, disabledInput: { classPropertyName: "disabledInput", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: false, isRequired: false, transformFunction: null }, optionsMaxHeightInput: { classPropertyName: "optionsMaxHeightInput", publicName: "optionsMaxHeight", isSignal: true, isRequired: false, transformFunction: null }, optionsStyle: { classPropertyName: "optionsStyle", publicName: "optionsStyle", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, search: { classPropertyName: "search", publicName: "search", isSignal: true, isRequired: false, transformFunction: null }, searchNoResultsLabel: { classPropertyName: "searchNoResultsLabel", publicName: "searchNoResultsLabel", isSignal: true, isRequired: false, transformFunction: null }, searchValue: { classPropertyName: "searchValue", publicName: "searchValue", isSignal: false, isRequired: false, transformFunction: null }, selectAll: { classPropertyName: "selectAll", publicName: "selectAll", isSignal: true, isRequired: false, transformFunction: null }, selectAllLabel: { classPropertyName: "selectAllLabel", publicName: "selectAllLabel", isSignal: true, isRequired: false, transformFunction: null }, selectionType: { classPropertyName: "selectionType", publicName: "selectionType", isSignal: true, isRequired: false, transformFunction: null }, selectionTypeCounterText: { classPropertyName: "selectionTypeCounterText", publicName: "selectionTypeCounterText", isSignal: true, isRequired: false, transformFunction: null }, selectionTypeCounterTextPluralMap: { classPropertyName: "selectionTypeCounterTextPluralMap", publicName: "selectionTypeCounterTextPluralMap", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: false, isRequired: false, transformFunction: null }, valid: { classPropertyName: "valid", publicName: "valid", isSignal: true, isRequired: false, transformFunction: null }, virtualScroller: { classPropertyName: "virtualScroller", publicName: "virtualScroller", isSignal: true, isRequired: false, transformFunction: null }, visibleItemsInput: { classPropertyName: "visibleItemsInput", publicName: "visibleItems", isSignal: true, isRequired: false, transformFunction: null }, itemSize: { classPropertyName: "itemSize", publicName: "itemSize", isSignal: true, isRequired: false, transformFunction: null }, itemMinWidthInput: { classPropertyName: "itemMinWidthInput", publicName: "itemMinWidth", isSignal: true, isRequired: false, transformFunction: null }, visibleInput: { classPropertyName: "visibleInput", publicName: "visible", isSignal: true, isRequired: false, transformFunction: null }, popperOptionsInput: { classPropertyName: "popperOptionsInput", publicName: "popperOptions", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { searchValueChange: "searchValueChange", valueChange: "valueChange", visibleChange: "visibleChange" }, host: { listeners: { "keyup": "onKeyUp($event)", "keydown": "onKeyDown($event)", "click": "onClick($event)" }, properties: { "class": "hostClasses()", "attr.aria-multiselectable": "this.ariaMultiSelectable", "attr.aria-expanded": "this.ariaExpanded", "attr.tabindex": "this.tabIndex" } }, providers: [
|
|
10508
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.2.1", type: MultiSelectComponent, isStandalone: true, selector: "c-multi-select", inputs: { allowCreateOptions: { classPropertyName: "allowCreateOptions", publicName: "allowCreateOptions", isSignal: true, isRequired: false, transformFunction: null }, cleaner: { classPropertyName: "cleaner", publicName: "cleaner", isSignal: true, isRequired: false, transformFunction: null }, clearSearchOnSelect: { classPropertyName: "clearSearchOnSelect", publicName: "clearSearchOnSelect", isSignal: true, isRequired: false, transformFunction: null }, disabledInput: { classPropertyName: "disabledInput", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: false, isRequired: false, transformFunction: null }, optionsMaxHeightInput: { classPropertyName: "optionsMaxHeightInput", publicName: "optionsMaxHeight", isSignal: true, isRequired: false, transformFunction: null }, optionsStyle: { classPropertyName: "optionsStyle", publicName: "optionsStyle", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, resetSelectionOnOptionsChange: { classPropertyName: "resetSelectionOnOptionsChange", publicName: "resetSelectionOnOptionsChange", isSignal: true, isRequired: false, transformFunction: null }, search: { classPropertyName: "search", publicName: "search", isSignal: true, isRequired: false, transformFunction: null }, searchNoResultsLabel: { classPropertyName: "searchNoResultsLabel", publicName: "searchNoResultsLabel", isSignal: true, isRequired: false, transformFunction: null }, searchValue: { classPropertyName: "searchValue", publicName: "searchValue", isSignal: false, isRequired: false, transformFunction: null }, selectAll: { classPropertyName: "selectAll", publicName: "selectAll", isSignal: true, isRequired: false, transformFunction: null }, selectAllLabel: { classPropertyName: "selectAllLabel", publicName: "selectAllLabel", isSignal: true, isRequired: false, transformFunction: null }, selectionType: { classPropertyName: "selectionType", publicName: "selectionType", isSignal: true, isRequired: false, transformFunction: null }, selectionTypeCounterText: { classPropertyName: "selectionTypeCounterText", publicName: "selectionTypeCounterText", isSignal: true, isRequired: false, transformFunction: null }, selectionTypeCounterTextPluralMap: { classPropertyName: "selectionTypeCounterTextPluralMap", publicName: "selectionTypeCounterTextPluralMap", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: false, isRequired: false, transformFunction: null }, valid: { classPropertyName: "valid", publicName: "valid", isSignal: true, isRequired: false, transformFunction: null }, virtualScroller: { classPropertyName: "virtualScroller", publicName: "virtualScroller", isSignal: true, isRequired: false, transformFunction: null }, visibleItemsInput: { classPropertyName: "visibleItemsInput", publicName: "visibleItems", isSignal: true, isRequired: false, transformFunction: null }, itemSize: { classPropertyName: "itemSize", publicName: "itemSize", isSignal: true, isRequired: false, transformFunction: null }, itemMinWidthInput: { classPropertyName: "itemMinWidthInput", publicName: "itemMinWidth", isSignal: true, isRequired: false, transformFunction: null }, visibleInput: { classPropertyName: "visibleInput", publicName: "visible", isSignal: true, isRequired: false, transformFunction: null }, popperOptionsInput: { classPropertyName: "popperOptionsInput", publicName: "popperOptions", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { searchValueChange: "searchValueChange", valueChange: "valueChange", visibleChange: "visibleChange" }, host: { listeners: { "keyup": "onKeyUp($event)", "keydown": "onKeyDown($event)", "click": "onClick($event)" }, properties: { "class": "hostClasses()", "attr.aria-multiselectable": "this.ariaMultiSelectable", "attr.aria-expanded": "this.ariaExpanded", "attr.tabindex": "this.tabIndex" } }, providers: [
|
|
10501
10509
|
I18nPluralPipe,
|
|
10502
10510
|
MultiSelectService,
|
|
10503
10511
|
{
|