@exhaustive-ui/core 22.0.0-alpha.10 → 22.0.0-alpha.12
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/fesm2022/exhaustive-ui-core-autocomplete.mjs +5 -5
- package/fesm2022/exhaustive-ui-core-autocomplete.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-basecomponent.mjs +6 -1
- package/fesm2022/exhaustive-ui-core-basecomponent.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-breadcrumb.mjs +11 -4
- package/fesm2022/exhaustive-ui-core-breadcrumb.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-card.mjs +0 -4
- package/fesm2022/exhaustive-ui-core-card.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-cascadeselect.mjs +5 -5
- package/fesm2022/exhaustive-ui-core-cascadeselect.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-chart.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-confirmdialog.mjs +11 -9
- package/fesm2022/exhaustive-ui-core-confirmdialog.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-confirmpopup.mjs +18 -1
- package/fesm2022/exhaustive-ui-core-confirmpopup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-contextmenu.mjs +6 -4
- package/fesm2022/exhaustive-ui-core-contextmenu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-datepicker.mjs +42 -7
- package/fesm2022/exhaustive-ui-core-datepicker.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-dialog.mjs +2 -1
- package/fesm2022/exhaustive-ui-core-dialog.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-drawer.mjs +11 -2
- package/fesm2022/exhaustive-ui-core-drawer.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-fieldset.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-fieldset.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-fileupload.mjs +22 -11
- package/fesm2022/exhaustive-ui-core-fileupload.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-iconfield.mjs +16 -1
- package/fesm2022/exhaustive-ui-core-iconfield.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputgroup.mjs +9 -0
- package/fesm2022/exhaustive-ui-core-inputgroup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputnumber.mjs +54 -21
- package/fesm2022/exhaustive-ui-core-inputnumber.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputtext.mjs +6 -5
- package/fesm2022/exhaustive-ui-core-inputtext.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-listbox.mjs +4 -2
- package/fesm2022/exhaustive-ui-core-listbox.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-megamenu.mjs +1 -0
- package/fesm2022/exhaustive-ui-core-megamenu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-menu.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-menu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-metergroup.mjs +5 -5
- package/fesm2022/exhaustive-ui-core-metergroup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-multiselect.mjs +25 -14
- package/fesm2022/exhaustive-ui-core-multiselect.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-orderlist.mjs +9 -2
- package/fesm2022/exhaustive-ui-core-orderlist.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-overlaybadge.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-overlaybadge.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-paginator.mjs +4 -1
- package/fesm2022/exhaustive-ui-core-paginator.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-panelmenu.mjs +7 -1
- package/fesm2022/exhaustive-ui-core-panelmenu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-password.mjs +34 -14
- package/fesm2022/exhaustive-ui-core-password.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-picklist.mjs +4 -4
- package/fesm2022/exhaustive-ui-core-picklist.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-popover.mjs +26 -7
- package/fesm2022/exhaustive-ui-core-popover.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-select.mjs +20 -14
- package/fesm2022/exhaustive-ui-core-select.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-selectbutton.mjs +10 -6
- package/fesm2022/exhaustive-ui-core-selectbutton.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-slider.mjs +7 -3
- package/fesm2022/exhaustive-ui-core-slider.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-splitter.mjs +5 -0
- package/fesm2022/exhaustive-ui-core-splitter.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-stepper.mjs +3 -0
- package/fesm2022/exhaustive-ui-core-stepper.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-table.mjs +97 -65
- package/fesm2022/exhaustive-ui-core-table.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-tabs.mjs +37 -7
- package/fesm2022/exhaustive-ui-core-tabs.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-tieredmenu.mjs +2 -1
- package/fesm2022/exhaustive-ui-core-tieredmenu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-toast.mjs +12 -1
- package/fesm2022/exhaustive-ui-core-toast.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-togglebutton.mjs +9 -2
- package/fesm2022/exhaustive-ui-core-togglebutton.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-toggleswitch.mjs +0 -2
- package/fesm2022/exhaustive-ui-core-toggleswitch.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-tree.mjs +4 -4
- package/fesm2022/exhaustive-ui-core-tree.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-treeselect.mjs +15 -3
- package/fesm2022/exhaustive-ui-core-treeselect.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-treetable.mjs +4 -0
- package/fesm2022/exhaustive-ui-core-treetable.mjs.map +1 -1
- package/package.json +5 -5
- package/schematics/migrate-from-primeflex/index.js +4 -2
- package/schematics/migrate-from-primeflex/schema.json +5 -0
- package/schematics/utils/package-json.js +17 -0
- package/schematics/utils/primeflex.js +45 -10
- package/schematics/utils/versions.json +8 -8
- package/types/exhaustive-ui-core-api.d.ts +4 -0
- package/types/exhaustive-ui-core-basecomponent.d.ts +1 -0
- package/types/exhaustive-ui-core-breadcrumb.d.ts +7 -1
- package/types/exhaustive-ui-core-cascadeselect.d.ts +1 -1
- package/types/exhaustive-ui-core-chart.d.ts +2 -2
- package/types/exhaustive-ui-core-confirmdialog.d.ts +3 -2
- package/types/exhaustive-ui-core-confirmpopup.d.ts +4 -0
- package/types/exhaustive-ui-core-datepicker.d.ts +2 -1
- package/types/exhaustive-ui-core-drawer.d.ts +1 -0
- package/types/exhaustive-ui-core-fileupload.d.ts +4 -0
- package/types/exhaustive-ui-core-iconfield.d.ts +1 -2
- package/types/exhaustive-ui-core-inputnumber.d.ts +8 -0
- package/types/exhaustive-ui-core-megamenu.d.ts +1 -0
- package/types/exhaustive-ui-core-metergroup.d.ts +1 -1
- package/types/exhaustive-ui-core-orderlist.d.ts +6 -1
- package/types/exhaustive-ui-core-password.d.ts +7 -1
- package/types/exhaustive-ui-core-popover.d.ts +3 -0
- package/types/exhaustive-ui-core-select.d.ts +1 -0
- package/types/exhaustive-ui-core-selectbutton.d.ts +3 -0
- package/types/exhaustive-ui-core-splitter.d.ts +1 -0
- package/types/exhaustive-ui-core-stepper.d.ts +3 -2
- package/types/exhaustive-ui-core-table.d.ts +8 -1
- package/types/exhaustive-ui-core-tabs.d.ts +3 -0
- package/types/exhaustive-ui-core-togglebutton.d.ts +1 -0
- package/types/exhaustive-ui-core-treeselect.d.ts +6 -1
- package/types/exhaustive-ui-core-types-chart.d.ts +21 -1
- package/types/exhaustive-ui-core-types-confirmdialog.d.ts +1 -3
- package/types/exhaustive-ui-core-types-table.d.ts +1 -1
- package/types/exhaustive-ui-core-types-treetable.d.ts +2 -2
|
@@ -2,7 +2,7 @@ export * from '@exhaustive-ui/core/types/multiselect';
|
|
|
2
2
|
import * as i1 from '@angular/common';
|
|
3
3
|
import { CommonModule } from '@angular/common';
|
|
4
4
|
import * as i0 from '@angular/core';
|
|
5
|
-
import { Injectable, InjectionToken, forwardRef, inject, input, booleanAttribute, numberAttribute, output, ViewEncapsulation, ChangeDetectionStrategy, Component, viewChild, contentChild, signal, contentChildren, computed, linkedSignal, afterNextRender, afterEveryRender, NgModule } from '@angular/core';
|
|
5
|
+
import { Injectable, InjectionToken, forwardRef, inject, input, booleanAttribute, numberAttribute, output, ViewEncapsulation, ChangeDetectionStrategy, Component, viewChild, contentChild, signal, contentChildren, computed, linkedSignal, afterNextRender, afterEveryRender, effect, untracked, NgModule } from '@angular/core';
|
|
6
6
|
import { toSignal } from '@angular/core/rxjs-interop';
|
|
7
7
|
import * as i2 from '@angular/forms';
|
|
8
8
|
import { NG_VALUE_ACCESSOR, FormsModule } from '@angular/forms';
|
|
@@ -18,7 +18,7 @@ import { Chip } from '@exhaustive-ui/core/chip';
|
|
|
18
18
|
import { DomHandler, unblockBodyScroll } from '@exhaustive-ui/core/dom';
|
|
19
19
|
import { Fluid } from '@exhaustive-ui/core/fluid';
|
|
20
20
|
import { IconField } from '@exhaustive-ui/core/iconfield';
|
|
21
|
-
import { CheckIcon, SearchIcon, TimesIcon, ChevronDownIcon } from '@exhaustive-ui/core/icons';
|
|
21
|
+
import { CheckIcon, SearchIcon, SpinnerIcon, TimesIcon, ChevronDownIcon } from '@exhaustive-ui/core/icons';
|
|
22
22
|
import { InputIcon } from '@exhaustive-ui/core/inputicon';
|
|
23
23
|
import { InputText } from '@exhaustive-ui/core/inputtext';
|
|
24
24
|
import { Overlay } from '@exhaustive-ui/core/overlay';
|
|
@@ -248,8 +248,8 @@ class MultiSelectItem extends BaseComponent {
|
|
|
248
248
|
});
|
|
249
249
|
}
|
|
250
250
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: MultiSelectItem, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
251
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: MultiSelectItem, isStandalone: true, selector: "li[pMultiSelectItem]", inputs: { option: { classPropertyName: "option", publicName: "option", isSignal: true, isRequired: false, transformFunction: null }, selected: { classPropertyName: "selected", publicName: "selected", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, itemSize: { classPropertyName: "itemSize", publicName: "itemSize", isSignal: true, isRequired: false, transformFunction: null }, focused: { classPropertyName: "focused", publicName: "focused", isSignal: true, isRequired: false, transformFunction: null }, ariaPosInset: { classPropertyName: "ariaPosInset", publicName: "ariaPosInset", isSignal: true, isRequired: false, transformFunction: null }, ariaSetSize: { classPropertyName: "ariaSetSize", publicName: "ariaSetSize", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, template: { classPropertyName: "template", publicName: "template", isSignal: true, isRequired: false, transformFunction: null }, itemCheckboxIconTemplate: { classPropertyName: "itemCheckboxIconTemplate", publicName: "itemCheckboxIconTemplate", isSignal: true, isRequired: false, transformFunction: null }, highlightOnSelect: { classPropertyName: "highlightOnSelect", publicName: "highlightOnSelect", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onClick: "onClick", onMouseEnter: "onMouseEnter" }, host: { attributes: { "role": "option" }, listeners: { "click": "onOptionClick($event)", "mouseenter": "onOptionMouseEnter($event)" }, properties: { "style.height.px": "itemSize()", "attr.aria-label": "label()", "attr.aria-setsize": "ariaSetSize()", "attr.aria-posinset": "ariaPosInset()", "attr.aria-selected": "selected()", "attr.data-p-selected": "selected()", "attr.data-p-focused": "focused()", "attr.data-p-highlight": "selected()", "attr.data-p-disabled": "disabled()", "attr.aria-checked": "selected()", "class": "cx('option')" } }, providers: [MultiSelectStyle], usesInheritance: true, ngImport: i0, template: `
|
|
252
|
-
<p-checkbox [ngModel]="selected()" [ngModelOptions]="{ standalone: true }" [binary]="true" [tabindex]="-1" [variant]="variant()" [ariaLabel]="label()" [pt]="getPTOptions('pcOptionCheckbox')" [unstyled]="unstyled()">
|
|
251
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: MultiSelectItem, isStandalone: true, selector: "li[pMultiSelectItem]", inputs: { option: { classPropertyName: "option", publicName: "option", isSignal: true, isRequired: false, transformFunction: null }, selected: { classPropertyName: "selected", publicName: "selected", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, itemSize: { classPropertyName: "itemSize", publicName: "itemSize", isSignal: true, isRequired: false, transformFunction: null }, focused: { classPropertyName: "focused", publicName: "focused", isSignal: true, isRequired: false, transformFunction: null }, ariaPosInset: { classPropertyName: "ariaPosInset", publicName: "ariaPosInset", isSignal: true, isRequired: false, transformFunction: null }, ariaSetSize: { classPropertyName: "ariaSetSize", publicName: "ariaSetSize", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, template: { classPropertyName: "template", publicName: "template", isSignal: true, isRequired: false, transformFunction: null }, itemCheckboxIconTemplate: { classPropertyName: "itemCheckboxIconTemplate", publicName: "itemCheckboxIconTemplate", isSignal: true, isRequired: false, transformFunction: null }, highlightOnSelect: { classPropertyName: "highlightOnSelect", publicName: "highlightOnSelect", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onClick: "onClick", onMouseEnter: "onMouseEnter" }, host: { attributes: { "role": "option" }, listeners: { "click": "onOptionClick($event)", "mouseenter": "onOptionMouseEnter($event)" }, properties: { "style.height.px": "itemSize()", "attr.aria-label": "label()", "attr.aria-setsize": "ariaSetSize()", "attr.aria-posinset": "ariaPosInset()", "attr.aria-selected": "selected()", "attr.data-p-selected": "selected()", "attr.data-p-focused": "focused()", "attr.data-p-highlight": "selected()", "attr.data-p-disabled": "disabled()", "attr.aria-disabled": "disabled()", "attr.aria-checked": "selected()", "class": "cx('option')" } }, providers: [MultiSelectStyle], usesInheritance: true, ngImport: i0, template: `
|
|
252
|
+
<p-checkbox [ngModel]="selected()" [ngModelOptions]="{ standalone: true }" [binary]="true" [disabled]="disabled()" [tabindex]="-1" [variant]="variant()" [ariaLabel]="label()" [pt]="getPTOptions('pcOptionCheckbox')" [unstyled]="unstyled()">
|
|
253
253
|
@if (itemCheckboxIconTemplate()) {
|
|
254
254
|
<ng-template #icon let-klass="class">
|
|
255
255
|
<ng-template *ngTemplateOutlet="itemCheckboxIconTemplate(); context: { checked: selected(), class: klass }"></ng-template>
|
|
@@ -269,7 +269,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
269
269
|
selector: 'li[pMultiSelectItem]',
|
|
270
270
|
imports: [CommonModule, Checkbox, FormsModule, SharedModule],
|
|
271
271
|
template: `
|
|
272
|
-
<p-checkbox [ngModel]="selected()" [ngModelOptions]="{ standalone: true }" [binary]="true" [tabindex]="-1" [variant]="variant()" [ariaLabel]="label()" [pt]="getPTOptions('pcOptionCheckbox')" [unstyled]="unstyled()">
|
|
272
|
+
<p-checkbox [ngModel]="selected()" [ngModelOptions]="{ standalone: true }" [binary]="true" [disabled]="disabled()" [tabindex]="-1" [variant]="variant()" [ariaLabel]="label()" [pt]="getPTOptions('pcOptionCheckbox')" [unstyled]="unstyled()">
|
|
273
273
|
@if (itemCheckboxIconTemplate()) {
|
|
274
274
|
<ng-template #icon let-klass="class">
|
|
275
275
|
<ng-template *ngTemplateOutlet="itemCheckboxIconTemplate(); context: { checked: selected(), class: klass }"></ng-template>
|
|
@@ -294,6 +294,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
294
294
|
'[attr.data-p-focused]': 'focused()',
|
|
295
295
|
'[attr.data-p-highlight]': 'selected()',
|
|
296
296
|
'[attr.data-p-disabled]': 'disabled()',
|
|
297
|
+
'[attr.aria-disabled]': 'disabled()',
|
|
297
298
|
'[attr.aria-checked]': 'selected()',
|
|
298
299
|
'(click)': 'onOptionClick($event)',
|
|
299
300
|
'(mouseenter)': 'onOptionMouseEnter($event)',
|
|
@@ -1065,6 +1066,14 @@ class MultiSelect extends BaseEditableHolder {
|
|
|
1065
1066
|
afterEveryRender(() => {
|
|
1066
1067
|
this.bindDirectiveInstance.setAttrs(this.ptms(['host', 'root']));
|
|
1067
1068
|
});
|
|
1069
|
+
// the list can change size while the overlay is open: position it again once the new content is rendered
|
|
1070
|
+
effect(() => {
|
|
1071
|
+
this._options();
|
|
1072
|
+
this.scrollHeight();
|
|
1073
|
+
if (untracked(() => this._overlayVisible())) {
|
|
1074
|
+
setTimeout(() => this.overlayViewChild()?.alignOverlay());
|
|
1075
|
+
}
|
|
1076
|
+
});
|
|
1068
1077
|
}
|
|
1069
1078
|
onInit() {
|
|
1070
1079
|
this.autoUpdateModel();
|
|
@@ -1476,7 +1485,7 @@ class MultiSelect extends BaseEditableHolder {
|
|
|
1476
1485
|
onInputBlur(event) {
|
|
1477
1486
|
this.focused.set(false);
|
|
1478
1487
|
this.onBlur.emit({ originalEvent: event });
|
|
1479
|
-
if (!this.preventModelTouched()) {
|
|
1488
|
+
if (!this.preventModelTouched() && !this._overlayVisible()) {
|
|
1480
1489
|
this.onModelTouched();
|
|
1481
1490
|
}
|
|
1482
1491
|
this.preventModelTouched.set(false);
|
|
@@ -1484,7 +1493,7 @@ class MultiSelect extends BaseEditableHolder {
|
|
|
1484
1493
|
onFilterInputChange(event) {
|
|
1485
1494
|
let value = event.target.value;
|
|
1486
1495
|
this._filterValue.set(value);
|
|
1487
|
-
this.focusedOptionIndex.set(-1);
|
|
1496
|
+
this.focusedOptionIndex.set(this.autoOptionFocus() ? this.findFirstOptionIndex() : -1);
|
|
1488
1497
|
this.onFilter.emit({ originalEvent: event, filter: this._filterValue() });
|
|
1489
1498
|
!this.virtualScrollerDisabled() && this.scroller()?.scrollToIndex(0);
|
|
1490
1499
|
setTimeout(() => {
|
|
@@ -1603,7 +1612,9 @@ class MultiSelect extends BaseEditableHolder {
|
|
|
1603
1612
|
if (this.virtualScroll()) {
|
|
1604
1613
|
const selectedIndex = this.modelValue() ? this.focusedOptionIndex() : -1;
|
|
1605
1614
|
if (selectedIndex !== -1) {
|
|
1606
|
-
|
|
1615
|
+
setTimeout(() => {
|
|
1616
|
+
this.scroller()?.scrollToIndex(selectedIndex);
|
|
1617
|
+
}, 10);
|
|
1607
1618
|
}
|
|
1608
1619
|
}
|
|
1609
1620
|
else {
|
|
@@ -1909,7 +1920,7 @@ class MultiSelect extends BaseEditableHolder {
|
|
|
1909
1920
|
<span [pBind]="ptm('loadingIcon')" [class]="cn(cx('loadingIcon'), 'pi-spin ' + loadingIcon())" [attr.aria-hidden]="true"></span>
|
|
1910
1921
|
}
|
|
1911
1922
|
@if (!loadingIcon()) {
|
|
1912
|
-
<
|
|
1923
|
+
<svg data-p-icon="spinner" [pBind]="ptm('loadingIcon')" [class]="cx('loadingIcon')" [spin]="true" [attr.aria-hidden]="true" />
|
|
1913
1924
|
}
|
|
1914
1925
|
}
|
|
1915
1926
|
} @else {
|
|
@@ -1971,7 +1982,7 @@ class MultiSelect extends BaseEditableHolder {
|
|
|
1971
1982
|
[binary]="true"
|
|
1972
1983
|
(onChange)="onToggleAll($event)"
|
|
1973
1984
|
[variant]="$variant()"
|
|
1974
|
-
[disabled]="$disabled()"
|
|
1985
|
+
[disabled]="$disabled() || isEmpty()"
|
|
1975
1986
|
[unstyled]="unstyled()"
|
|
1976
1987
|
#headerCheckbox
|
|
1977
1988
|
>
|
|
@@ -2138,13 +2149,13 @@ class MultiSelect extends BaseEditableHolder {
|
|
|
2138
2149
|
</div>
|
|
2139
2150
|
</ng-template>
|
|
2140
2151
|
</p-overlay>
|
|
2141
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: MultiSelectItem, selector: "li[pMultiSelectItem]", inputs: ["option", "selected", "label", "disabled", "itemSize", "focused", "ariaPosInset", "ariaSetSize", "variant", "template", "itemCheckboxIconTemplate", "highlightOnSelect"], outputs: ["onClick", "onMouseEnter"] }, { kind: "component", type: Overlay, selector: "p-overlay", inputs: ["hostName", "visible", "mode", "style", "styleClass", "contentStyle", "contentStyleClass", "target", "autoZIndex", "baseZIndex", "listener", "responsive", "options", "appendTo", "inline", "motionOptions", "hostAttrSelector"], outputs: ["visibleChange", "onBeforeShow", "onShow", "onBeforeHide", "onHide", "onBeforeEnter", "onEnter", "onAfterEnter", "onBeforeLeave", "onLeave", "onAfterLeave"] }, { kind: "ngmodule", type: SharedModule }, { kind: "directive", type: Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "showOnEllipsis", "pTooltip", "tooltipDisabled", "tooltipOptions", "appendTo", "ptTooltip", "pTooltipPT", "pTooltipUnstyled"] }, { kind: "component", type: Scroller, selector: "p-scroller, p-virtualscroller, p-virtual-scroller, p-virtualScroller", inputs: ["hostName", "id", "style", "styleClass", "tabindex", "items", "itemSize", "scrollHeight", "scrollWidth", "orientation", "step", "delay", "resizeDelay", "appendOnly", "inline", "lazy", "disabled", "loaderDisabled", "columns", "showSpacer", "showLoader", "numToleratedItems", "loading", "autoSize", "trackBy", "options"], outputs: ["onLazyLoad", "onScroll", "onScrollIndexChange"] }, { kind: "directive", type: AutoFocus, selector: "[pAutoFocus]", inputs: ["pAutoFocus"] }, { kind: "component", type: CheckIcon, selector: "[data-p-icon=\"check\"]" }, { kind: "component", type: SearchIcon, selector: "[data-p-icon=\"search\"]" }, { kind: "component", type: TimesIcon, selector: "[data-p-icon=\"times\"]" }, { kind: "component", type: ChevronDownIcon, selector: "[data-p-icon=\"chevron-down\"]" }, { kind: "component", type: IconField, selector: "p-iconfield, p-iconField, p-icon-field", inputs: ["hostName", "iconPosition"] }, { kind: "component", type: InputIcon, selector: "p-inputicon, p-inputIcon", inputs: ["hostName"] }, { kind: "directive", type: InputText, selector: "[pInputText]", inputs: ["hostName", "ptInputText", "pInputTextPT", "pInputTextUnstyled", "pSize", "variant", "fluid", "invalid"] }, { kind: "component", type: Chip, selector: "p-chip", inputs: ["label", "icon", "image", "alt", "disabled", "removable", "removeIcon", "chipProps"], outputs: ["onRemove", "onImageError"] }, { kind: "component", type: Checkbox, selector: "p-checkbox, p-checkBox, p-check-box", inputs: ["hostName", "value", "binary", "ariaLabelledBy", "ariaLabel", "tabindex", "inputId", "inputStyle", "inputClass", "indeterminate", "formControl", "checkboxIcon", "readonly", "autofocus", "trueValue", "falseValue", "variant", "size"], outputs: ["onChange", "onFocus", "onBlur"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: BindModule }, { kind: "directive", type: i3.Bind, selector: "[pBind]", inputs: ["pBind"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
2152
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: MultiSelectItem, selector: "li[pMultiSelectItem]", inputs: ["option", "selected", "label", "disabled", "itemSize", "focused", "ariaPosInset", "ariaSetSize", "variant", "template", "itemCheckboxIconTemplate", "highlightOnSelect"], outputs: ["onClick", "onMouseEnter"] }, { kind: "component", type: Overlay, selector: "p-overlay", inputs: ["hostName", "visible", "mode", "style", "styleClass", "contentStyle", "contentStyleClass", "target", "autoZIndex", "baseZIndex", "listener", "responsive", "options", "appendTo", "inline", "motionOptions", "hostAttrSelector"], outputs: ["visibleChange", "onBeforeShow", "onShow", "onBeforeHide", "onHide", "onBeforeEnter", "onEnter", "onAfterEnter", "onBeforeLeave", "onLeave", "onAfterLeave"] }, { kind: "ngmodule", type: SharedModule }, { kind: "directive", type: Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "showOnEllipsis", "pTooltip", "tooltipDisabled", "tooltipOptions", "appendTo", "ptTooltip", "pTooltipPT", "pTooltipUnstyled"] }, { kind: "component", type: Scroller, selector: "p-scroller, p-virtualscroller, p-virtual-scroller, p-virtualScroller", inputs: ["hostName", "id", "style", "styleClass", "tabindex", "items", "itemSize", "scrollHeight", "scrollWidth", "orientation", "step", "delay", "resizeDelay", "appendOnly", "inline", "lazy", "disabled", "loaderDisabled", "columns", "showSpacer", "showLoader", "numToleratedItems", "loading", "autoSize", "trackBy", "options"], outputs: ["onLazyLoad", "onScroll", "onScrollIndexChange"] }, { kind: "directive", type: AutoFocus, selector: "[pAutoFocus]", inputs: ["pAutoFocus"] }, { kind: "component", type: CheckIcon, selector: "[data-p-icon=\"check\"]" }, { kind: "component", type: SearchIcon, selector: "[data-p-icon=\"search\"]" }, { kind: "component", type: SpinnerIcon, selector: "[data-p-icon=\"spinner\"]" }, { kind: "component", type: TimesIcon, selector: "[data-p-icon=\"times\"]" }, { kind: "component", type: ChevronDownIcon, selector: "[data-p-icon=\"chevron-down\"]" }, { kind: "component", type: IconField, selector: "p-iconfield, p-iconField, p-icon-field", inputs: ["hostName", "iconPosition"] }, { kind: "component", type: InputIcon, selector: "p-inputicon, p-inputIcon", inputs: ["hostName"] }, { kind: "directive", type: InputText, selector: "[pInputText]", inputs: ["hostName", "ptInputText", "pInputTextPT", "pInputTextUnstyled", "pSize", "variant", "fluid", "invalid"] }, { kind: "component", type: Chip, selector: "p-chip", inputs: ["label", "icon", "image", "alt", "disabled", "removable", "removeIcon", "chipProps"], outputs: ["onRemove", "onImageError"] }, { kind: "component", type: Checkbox, selector: "p-checkbox, p-checkBox, p-check-box", inputs: ["hostName", "value", "binary", "ariaLabelledBy", "ariaLabel", "tabindex", "inputId", "inputStyle", "inputClass", "indeterminate", "formControl", "checkboxIcon", "readonly", "autofocus", "trueValue", "falseValue", "variant", "size"], outputs: ["onChange", "onFocus", "onBlur"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: BindModule }, { kind: "directive", type: i3.Bind, selector: "[pBind]", inputs: ["pBind"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
2142
2153
|
}
|
|
2143
2154
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: MultiSelect, decorators: [{
|
|
2144
2155
|
type: Component,
|
|
2145
2156
|
args: [{
|
|
2146
2157
|
selector: 'p-multiSelect, p-multiselect, p-multi-select',
|
|
2147
|
-
imports: [CommonModule, MultiSelectItem, Overlay, SharedModule, Tooltip, Scroller, AutoFocus, CheckIcon, SearchIcon, TimesIcon, ChevronDownIcon, IconField, InputIcon, InputText, Chip, Checkbox, FormsModule, BindModule],
|
|
2158
|
+
imports: [CommonModule, MultiSelectItem, Overlay, SharedModule, Tooltip, Scroller, AutoFocus, CheckIcon, SearchIcon, SpinnerIcon, TimesIcon, ChevronDownIcon, IconField, InputIcon, InputText, Chip, Checkbox, FormsModule, BindModule],
|
|
2148
2159
|
hostDirectives: [Bind],
|
|
2149
2160
|
template: `
|
|
2150
2161
|
<div class="p-hidden-accessible" [attr.data-p-hidden-accessible]="true" [pBind]="ptm('hiddenInputContainer')">
|
|
@@ -2257,7 +2268,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
2257
2268
|
<span [pBind]="ptm('loadingIcon')" [class]="cn(cx('loadingIcon'), 'pi-spin ' + loadingIcon())" [attr.aria-hidden]="true"></span>
|
|
2258
2269
|
}
|
|
2259
2270
|
@if (!loadingIcon()) {
|
|
2260
|
-
<
|
|
2271
|
+
<svg data-p-icon="spinner" [pBind]="ptm('loadingIcon')" [class]="cx('loadingIcon')" [spin]="true" [attr.aria-hidden]="true" />
|
|
2261
2272
|
}
|
|
2262
2273
|
}
|
|
2263
2274
|
} @else {
|
|
@@ -2319,7 +2330,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
2319
2330
|
[binary]="true"
|
|
2320
2331
|
(onChange)="onToggleAll($event)"
|
|
2321
2332
|
[variant]="$variant()"
|
|
2322
|
-
[disabled]="$disabled()"
|
|
2333
|
+
[disabled]="$disabled() || isEmpty()"
|
|
2323
2334
|
[unstyled]="unstyled()"
|
|
2324
2335
|
#headerCheckbox
|
|
2325
2336
|
>
|