primeng 18.0.4-lts → 18.0.5-lts
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/datepicker/datepicker.d.ts +1 -1
- package/esm2022/autocomplete/style/autocompletestyle.mjs +19 -6
- package/esm2022/button/button.mjs +11 -43
- package/esm2022/calendar/calendar.mjs +4 -4
- package/esm2022/confirmdialog/confirmdialog.mjs +34 -41
- package/esm2022/dataview/dataview.mjs +10 -35
- package/esm2022/datepicker/datepicker.mjs +60 -44
- package/esm2022/datepicker/style/datepickerstyle.mjs +14 -1
- package/esm2022/dialog/dialog.mjs +98 -108
- package/esm2022/drawer/drawer.mjs +2 -2
- package/esm2022/fieldset/style/fieldsetstyle.mjs +2 -1
- package/esm2022/iftalabel/style/iftalabelstyle.mjs +10 -4
- package/esm2022/inputnumber/style/inputnumberstyle.mjs +10 -1
- package/esm2022/multiselect/multiselect.mjs +20 -75
- package/esm2022/password/style/passwordstyle.mjs +2 -1
- package/esm2022/picklist/picklist.mjs +3 -1
- package/esm2022/splitter/splitter.mjs +3 -3
- package/esm2022/stepper/stepper.mjs +29 -57
- package/esm2022/table/table.interface.mjs +1 -1
- package/esm2022/table/table.mjs +81 -450
- package/esm2022/tree/tree.mjs +18 -88
- package/fesm2022/primeng-autocomplete.mjs +18 -5
- package/fesm2022/primeng-autocomplete.mjs.map +1 -1
- package/fesm2022/primeng-button.mjs +10 -42
- package/fesm2022/primeng-button.mjs.map +1 -1
- package/fesm2022/primeng-calendar.mjs +3 -3
- package/fesm2022/primeng-calendar.mjs.map +1 -1
- package/fesm2022/primeng-confirmdialog.mjs +33 -40
- package/fesm2022/primeng-confirmdialog.mjs.map +1 -1
- package/fesm2022/primeng-dataview.mjs +9 -34
- package/fesm2022/primeng-dataview.mjs.map +1 -1
- package/fesm2022/primeng-datepicker.mjs +72 -43
- package/fesm2022/primeng-datepicker.mjs.map +1 -1
- package/fesm2022/primeng-dialog.mjs +97 -107
- package/fesm2022/primeng-dialog.mjs.map +1 -1
- package/fesm2022/primeng-drawer.mjs +1 -1
- package/fesm2022/primeng-drawer.mjs.map +1 -1
- package/fesm2022/primeng-fieldset.mjs +1 -0
- package/fesm2022/primeng-fieldset.mjs.map +1 -1
- package/fesm2022/primeng-iftalabel.mjs +9 -3
- package/fesm2022/primeng-iftalabel.mjs.map +1 -1
- package/fesm2022/primeng-inputnumber.mjs +9 -0
- package/fesm2022/primeng-inputnumber.mjs.map +1 -1
- package/fesm2022/primeng-multiselect.mjs +19 -74
- package/fesm2022/primeng-multiselect.mjs.map +1 -1
- package/fesm2022/primeng-password.mjs +1 -0
- package/fesm2022/primeng-password.mjs.map +1 -1
- package/fesm2022/primeng-picklist.mjs +2 -0
- package/fesm2022/primeng-picklist.mjs.map +1 -1
- package/fesm2022/primeng-splitter.mjs +2 -2
- package/fesm2022/primeng-splitter.mjs.map +1 -1
- package/fesm2022/primeng-stepper.mjs +30 -58
- package/fesm2022/primeng-stepper.mjs.map +1 -1
- package/fesm2022/primeng-table.mjs +80 -449
- package/fesm2022/primeng-table.mjs.map +1 -1
- package/fesm2022/primeng-tree.mjs +17 -87
- package/fesm2022/primeng-tree.mjs.map +1 -1
- package/package.json +314 -314
- package/splitter/splitter.d.ts +2 -2
- package/stepper/stepper.d.ts +4 -3
- package/table/table.d.ts +11 -11
- package/table/table.interface.d.ts +13 -13
@@ -496,7 +496,7 @@ function MultiSelect_ng_container_5_ng_container_2_div_1_ng_container_3_ng_templ
|
|
496
496
|
i0.ɵɵtemplate(0, MultiSelect_ng_container_5_ng_container_2_div_1_ng_container_3_ng_template_1_ng_container_0_Template, 2, 1, "ng-container", 20);
|
497
497
|
} if (rf & 2) {
|
498
498
|
const ctx_r1 = i0.ɵɵnextContext(5);
|
499
|
-
i0.ɵɵproperty("ngIf", !ctx_r1.disabled);
|
499
|
+
i0.ɵɵproperty("ngIf", !ctx_r1.disabled && !ctx_r1.readonly);
|
500
500
|
} }
|
501
501
|
function MultiSelect_ng_container_5_ng_container_2_div_1_ng_container_3_Template(rf, ctx) { if (rf & 1) {
|
502
502
|
i0.ɵɵelementContainerStart(0);
|
@@ -513,7 +513,7 @@ function MultiSelect_ng_container_5_ng_container_2_div_1_Template(rf, ctx) { if
|
|
513
513
|
const item_r4 = ctx.$implicit;
|
514
514
|
const ctx_r1 = i0.ɵɵnextContext(3);
|
515
515
|
i0.ɵɵadvance(2);
|
516
|
-
i0.ɵɵproperty("label", ctx_r1.getLabelByValue(item_r4))("removable",
|
516
|
+
i0.ɵɵproperty("label", ctx_r1.getLabelByValue(item_r4))("removable", !ctx_r1.disabled && !ctx_r1.readonly)("removeIcon", ctx_r1.chipIcon);
|
517
517
|
i0.ɵɵadvance();
|
518
518
|
i0.ɵɵproperty("ngIf", ctx_r1.chipIconTemplate || ctx_r1._chipIconTemplate || ctx_r1.removeTokenIconTemplate || ctx_r1._removeTokenIconTemplate);
|
519
519
|
} }
|
@@ -1007,11 +1007,7 @@ function MultiSelect_ng_template_14_Template(rf, ctx) { if (rf & 1) {
|
|
1007
1007
|
i0.ɵɵadvance();
|
1008
1008
|
i0.ɵɵattribute("tabindex", 0)("data-p-hidden-accessible", true)("data-p-hidden-focusable", true);
|
1009
1009
|
} }
|
1010
|
-
const MULTISELECT_VALUE_ACCESSOR = {
|
1011
|
-
provide: NG_VALUE_ACCESSOR,
|
1012
|
-
useExisting: forwardRef(() => MultiSelect),
|
1013
|
-
multi: true
|
1014
|
-
};
|
1010
|
+
const MULTISELECT_VALUE_ACCESSOR = { provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => MultiSelect), multi: true };
|
1015
1011
|
class MultiSelectItem extends BaseComponent {
|
1016
1012
|
id;
|
1017
1013
|
option;
|
@@ -1029,20 +1025,12 @@ class MultiSelectItem extends BaseComponent {
|
|
1029
1025
|
onClick = new EventEmitter();
|
1030
1026
|
onMouseEnter = new EventEmitter();
|
1031
1027
|
onOptionClick(event) {
|
1032
|
-
this.onClick.emit({
|
1033
|
-
originalEvent: event,
|
1034
|
-
option: this.option,
|
1035
|
-
selected: this.selected
|
1036
|
-
});
|
1028
|
+
this.onClick.emit({ originalEvent: event, option: this.option, selected: this.selected });
|
1037
1029
|
event.stopPropagation();
|
1038
1030
|
event.preventDefault();
|
1039
1031
|
}
|
1040
1032
|
onOptionMouseEnter(event) {
|
1041
|
-
this.onMouseEnter.emit({
|
1042
|
-
originalEvent: event,
|
1043
|
-
option: this.option,
|
1044
|
-
selected: this.selected
|
1045
|
-
});
|
1033
|
+
this.onMouseEnter.emit({ originalEvent: event, option: this.option, selected: this.selected });
|
1046
1034
|
}
|
1047
1035
|
static ɵfac = /*@__PURE__*/ (() => { let ɵMultiSelectItem_BaseFactory; return function MultiSelectItem_Factory(__ngFactoryType__) { return (ɵMultiSelectItem_BaseFactory || (ɵMultiSelectItem_BaseFactory = i0.ɵɵgetInheritedFactory(MultiSelectItem)))(__ngFactoryType__ || MultiSelectItem); }; })();
|
1048
1036
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MultiSelectItem, selectors: [["p-multiSelectItem"], ["p-multiselect-item"]], inputs: { id: "id", option: "option", selected: [2, "selected", "selected", booleanAttribute], label: "label", disabled: [2, "disabled", "disabled", booleanAttribute], itemSize: [2, "itemSize", "itemSize", numberAttribute], focused: [2, "focused", "focused", booleanAttribute], ariaPosInset: "ariaPosInset", ariaSetSize: "ariaSetSize", variant: "variant", template: "template", checkIconTemplate: "checkIconTemplate", itemCheckboxIconTemplate: "itemCheckboxIconTemplate" }, outputs: { onClick: "onClick", onMouseEnter: "onMouseEnter" }, standalone: true, features: [i0.ɵɵInputTransformsFeature, i0.ɵɵInheritDefinitionFeature, i0.ɵɵStandaloneFeature], decls: 5, vars: 26, consts: [["icon", ""], ["pRipple", "", "role", "option", 3, "click", "mouseenter", "ngStyle", "ngClass", "id"], [3, "ngModel", "binary", "tabindex", "variant"], [4, "ngIf"], [4, "ngTemplateOutlet", "ngTemplateOutletContext"]], template: function MultiSelectItem_Template(rf, ctx) { if (rf & 1) {
|
@@ -1077,11 +1065,7 @@ class MultiSelectItem extends BaseComponent {
|
|
1077
1065
|
pRipple
|
1078
1066
|
role="option"
|
1079
1067
|
[ngStyle]="{ height: itemSize + 'px' }"
|
1080
|
-
[ngClass]="{
|
1081
|
-
'p-multiselect-option': true,
|
1082
|
-
'p-disabled': disabled,
|
1083
|
-
'p-focus': focused
|
1084
|
-
}"
|
1068
|
+
[ngClass]="{ 'p-multiselect-option': true, 'p-disabled': disabled, 'p-focus': focused }"
|
1085
1069
|
[id]="id"
|
1086
1070
|
[attr.aria-label]="label"
|
1087
1071
|
[attr.aria-setsize]="ariaSetSize"
|
@@ -1834,7 +1818,7 @@ class MultiSelect extends BaseComponent {
|
|
1834
1818
|
return isNotEmpty(this.modelValue());
|
1835
1819
|
}
|
1836
1820
|
get isVisibleClearIcon() {
|
1837
|
-
return this.modelValue() != null && this.modelValue() !== '' && isNotEmpty(this.modelValue()) && this.showClear && !this.disabled && this.filled;
|
1821
|
+
return this.modelValue() != null && this.modelValue() !== '' && isNotEmpty(this.modelValue()) && this.showClear && !this.disabled && !this.readonly && this.filled;
|
1838
1822
|
}
|
1839
1823
|
get toggleAllAriaLabel() {
|
1840
1824
|
return this.config.translation.aria ? this.config.translation.aria[this.allSelected() ? 'selectAll' : 'unselectAll'] : undefined;
|
@@ -1871,10 +1855,7 @@ class MultiSelect extends BaseComponent {
|
|
1871
1855
|
const groupChildren = this.getOptionGroupChildren(group);
|
1872
1856
|
const filteredItems = groupChildren.filter((item) => filteredOptions.includes(item));
|
1873
1857
|
if (filteredItems.length > 0)
|
1874
|
-
filtered.push({
|
1875
|
-
...group,
|
1876
|
-
[typeof this.optionGroupChildren === 'string' ? this.optionGroupChildren : 'items']: [...filteredItems]
|
1877
|
-
});
|
1858
|
+
filtered.push({ ...group, [typeof this.optionGroupChildren === 'string' ? this.optionGroupChildren : 'items']: [...filteredItems] });
|
1878
1859
|
});
|
1879
1860
|
return this.flatOptions(filtered);
|
1880
1861
|
}
|
@@ -1931,10 +1912,7 @@ class MultiSelect extends BaseComponent {
|
|
1931
1912
|
this.id = this.id || uuid('pn_id_');
|
1932
1913
|
this.autoUpdateModel();
|
1933
1914
|
if (this.filterBy) {
|
1934
|
-
this.filterOptions = {
|
1935
|
-
filter: (value) => this.onFilterInputChange(value),
|
1936
|
-
reset: () => this.resetFilter()
|
1937
|
-
};
|
1915
|
+
this.filterOptions = { filter: (value) => this.onFilterInputChange(value), reset: () => this.resetFilter() };
|
1938
1916
|
}
|
1939
1917
|
}
|
1940
1918
|
maxSelectionLimitReached() {
|
@@ -2001,11 +1979,7 @@ class MultiSelect extends BaseComponent {
|
|
2001
1979
|
this.updateModel(value, originalEvent);
|
2002
1980
|
index !== -1 && this.focusedOptionIndex.set(index);
|
2003
1981
|
isFocus && focus(this.focusInputViewChild?.nativeElement);
|
2004
|
-
this.onChange.emit({
|
2005
|
-
originalEvent: event,
|
2006
|
-
value: value,
|
2007
|
-
itemValue: option
|
2008
|
-
});
|
1982
|
+
this.onChange.emit({ originalEvent: event, value: value, itemValue: option });
|
2009
1983
|
}
|
2010
1984
|
findSelectedOptionIndex() {
|
2011
1985
|
return this.hasSelectedOption() ? this.visibleOptions().findIndex((option) => this.isValidSelectedOption(option)) : -1;
|
@@ -2425,10 +2399,7 @@ class MultiSelect extends BaseComponent {
|
|
2425
2399
|
return;
|
2426
2400
|
}
|
2427
2401
|
if (this.selectAll != null) {
|
2428
|
-
this.onSelectAllChange.emit({
|
2429
|
-
originalEvent: event,
|
2430
|
-
checked: !this.allSelected()
|
2431
|
-
});
|
2402
|
+
this.onSelectAllChange.emit({ originalEvent: event, checked: !this.allSelected() });
|
2432
2403
|
}
|
2433
2404
|
else {
|
2434
2405
|
// pre-selected disabled options should always be selected.
|
@@ -2441,10 +2412,7 @@ class MultiSelect extends BaseComponent {
|
|
2441
2412
|
this.updateModel(value, event);
|
2442
2413
|
// because onToggleAll could have been called during filtering, this additional test needs to be performed before calling onSelectAllChange.emit
|
2443
2414
|
if (!value.length || value.length === this.getAllVisibleAndNonVisibleOptions().length) {
|
2444
|
-
this.onSelectAllChange.emit({
|
2445
|
-
originalEvent: event,
|
2446
|
-
checked: !!value.length
|
2447
|
-
});
|
2415
|
+
this.onSelectAllChange.emit({ originalEvent: event, checked: !!value.length });
|
2448
2416
|
}
|
2449
2417
|
}
|
2450
2418
|
if (this.partialSelected()) {
|
@@ -2593,15 +2561,8 @@ class MultiSelect extends BaseComponent {
|
|
2593
2561
|
removeOption(optionValue, event) {
|
2594
2562
|
let value = this.modelValue().filter((val) => !equals(val, optionValue, this.equalityKey()));
|
2595
2563
|
this.updateModel(value, event);
|
2596
|
-
this.onChange.emit({
|
2597
|
-
|
2598
|
-
value: value,
|
2599
|
-
itemValue: optionValue
|
2600
|
-
});
|
2601
|
-
this.onRemove.emit({
|
2602
|
-
newValue: value,
|
2603
|
-
removed: optionValue
|
2604
|
-
});
|
2564
|
+
this.onChange.emit({ originalEvent: event, value: value, itemValue: optionValue });
|
2565
|
+
this.onRemove.emit({ newValue: value, removed: optionValue });
|
2605
2566
|
event && event.stopPropagation();
|
2606
2567
|
}
|
2607
2568
|
findNextItem(item) {
|
@@ -2862,10 +2823,10 @@ class MultiSelect extends BaseComponent {
|
|
2862
2823
|
<ng-container *ngIf="display === 'comma'">{{ label() || 'empty' }}</ng-container>
|
2863
2824
|
<ng-container *ngIf="display === 'chip'">
|
2864
2825
|
<div #token *ngFor="let item of chipSelectedItems(); let i = index" class="p-multiselect-chip-item">
|
2865
|
-
<p-chip styleClass="p-multiselect-chip" [label]="getLabelByValue(item)" [removable]="
|
2826
|
+
<p-chip styleClass="p-multiselect-chip" [label]="getLabelByValue(item)" [removable]="!disabled && !readonly" (onRemove)="removeOption(item, $event)" [removeIcon]="chipIcon">
|
2866
2827
|
<ng-container *ngIf="chipIconTemplate || _chipIconTemplate || removeTokenIconTemplate || _removeTokenIconTemplate">
|
2867
2828
|
<ng-template #removeicon>
|
2868
|
-
<ng-container *ngIf="!disabled">
|
2829
|
+
<ng-container *ngIf="!disabled && !readonly">
|
2869
2830
|
<span
|
2870
2831
|
class="p-multiselect-chip-icon"
|
2871
2832
|
*ngIf="chipIconTemplate || _chipIconTemplate || removeTokenIconTemplate || _removeTokenIconTemplate"
|
@@ -2947,16 +2908,7 @@ class MultiSelect extends BaseComponent {
|
|
2947
2908
|
<p-checkbox [ngModel]="allSelected()" [binary]="true" (onChange)="onToggleAll($event)" *ngIf="showToggleAll && !selectionLimit" [variant]="variant" [disabled]="disabled" #headerCheckbox>
|
2948
2909
|
<ng-template #checkboxicon let-klass="class">
|
2949
2910
|
<CheckIcon *ngIf="!headerCheckboxIconTemplate && !_headerCheckboxIconTemplate && allSelected()" [styleClass]="klass" [attr.data-pc-section]="'icon'" />
|
2950
|
-
<ng-template
|
2951
|
-
*ngTemplateOutlet="
|
2952
|
-
headerCheckboxIconTemplate || _headerCheckboxIconTemplate;
|
2953
|
-
context: {
|
2954
|
-
checked: allSelected(),
|
2955
|
-
partialSelected: partialSelected(),
|
2956
|
-
class: klass
|
2957
|
-
}
|
2958
|
-
"
|
2959
|
-
></ng-template>
|
2911
|
+
<ng-template *ngTemplateOutlet="headerCheckboxIconTemplate || _headerCheckboxIconTemplate; context: { checked: allSelected(), partialSelected: partialSelected(), class: klass }"></ng-template>
|
2960
2912
|
</ng-template>
|
2961
2913
|
</p-checkbox>
|
2962
2914
|
|
@@ -3085,11 +3037,7 @@ class MultiSelect extends BaseComponent {
|
|
3085
3037
|
providers: [MULTISELECT_VALUE_ACCESSOR, MultiSelectStyle],
|
3086
3038
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
3087
3039
|
encapsulation: ViewEncapsulation.None,
|
3088
|
-
host: {
|
3089
|
-
'[attr.id]': 'id',
|
3090
|
-
'[style]': 'style',
|
3091
|
-
'(click)': 'onContainerClick($event)'
|
3092
|
-
}
|
3040
|
+
host: { '[attr.id]': 'id', '[style]': 'style', '(click)': 'onContainerClick($event)' }
|
3093
3041
|
}]
|
3094
3042
|
}], () => [{ type: i0.NgZone }, { type: i3.FilterService }, { type: i3.OverlayService }], { id: [{
|
3095
3043
|
type: Input
|
@@ -3377,10 +3325,7 @@ class MultiSelectModule {
|
|
3377
3325
|
}
|
3378
3326
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MultiSelectModule, [{
|
3379
3327
|
type: NgModule,
|
3380
|
-
args: [{
|
3381
|
-
imports: [MultiSelect, SharedModule],
|
3382
|
-
exports: [MultiSelect, SharedModule]
|
3383
|
-
}]
|
3328
|
+
args: [{ imports: [MultiSelect, SharedModule], exports: [MultiSelect, SharedModule] }]
|
3384
3329
|
}], null, null); })();
|
3385
3330
|
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MultiSelectModule, { imports: [MultiSelect, SharedModule], exports: [MultiSelect, SharedModule] }); })();
|
3386
3331
|
|