primeng 19.0.1 → 19.0.3

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.
Files changed (73) hide show
  1. package/autocomplete/autocomplete.d.ts +1 -1
  2. package/cascadeselect/cascadeselect.d.ts +1 -1
  3. package/dropdown/dropdown.d.ts +2 -1
  4. package/dynamicdialog/dialogservice.d.ts +1 -1
  5. package/dynamicdialog/dynamicdialog-config.d.ts +7 -2
  6. package/dynamicdialog/dynamicdialog.d.ts +5 -4
  7. package/fesm2022/primeng-autocomplete.mjs +5 -5
  8. package/fesm2022/primeng-autocomplete.mjs.map +1 -1
  9. package/fesm2022/primeng-breadcrumb.mjs +76 -70
  10. package/fesm2022/primeng-breadcrumb.mjs.map +1 -1
  11. package/fesm2022/primeng-button.mjs +3 -3
  12. package/fesm2022/primeng-button.mjs.map +1 -1
  13. package/fesm2022/primeng-calendar.mjs +2 -2
  14. package/fesm2022/primeng-calendar.mjs.map +1 -1
  15. package/fesm2022/primeng-carousel.mjs +14 -5
  16. package/fesm2022/primeng-carousel.mjs.map +1 -1
  17. package/fesm2022/primeng-cascadeselect.mjs.map +1 -1
  18. package/fesm2022/primeng-confirmdialog.mjs +1 -1
  19. package/fesm2022/primeng-confirmdialog.mjs.map +1 -1
  20. package/fesm2022/primeng-datepicker.mjs +2 -2
  21. package/fesm2022/primeng-datepicker.mjs.map +1 -1
  22. package/fesm2022/primeng-dialog.mjs +1 -0
  23. package/fesm2022/primeng-dialog.mjs.map +1 -1
  24. package/fesm2022/primeng-dock.mjs +90 -80
  25. package/fesm2022/primeng-dock.mjs.map +1 -1
  26. package/fesm2022/primeng-dropdown.mjs +8 -15
  27. package/fesm2022/primeng-dropdown.mjs.map +1 -1
  28. package/fesm2022/primeng-dynamicdialog.mjs +19 -6
  29. package/fesm2022/primeng-dynamicdialog.mjs.map +1 -1
  30. package/fesm2022/primeng-fileupload.mjs +2 -2
  31. package/fesm2022/primeng-fileupload.mjs.map +1 -1
  32. package/fesm2022/primeng-galleria.mjs +229 -86
  33. package/fesm2022/primeng-galleria.mjs.map +1 -1
  34. package/fesm2022/primeng-inputnumber.mjs +1 -1
  35. package/fesm2022/primeng-inputnumber.mjs.map +1 -1
  36. package/fesm2022/primeng-inputotp.mjs +17 -8
  37. package/fesm2022/primeng-inputotp.mjs.map +1 -1
  38. package/fesm2022/primeng-listbox.mjs +23 -12
  39. package/fesm2022/primeng-listbox.mjs.map +1 -1
  40. package/fesm2022/primeng-menu.mjs +38 -48
  41. package/fesm2022/primeng-menu.mjs.map +1 -1
  42. package/fesm2022/primeng-multiselect.mjs +48 -24
  43. package/fesm2022/primeng-multiselect.mjs.map +1 -1
  44. package/fesm2022/primeng-paginator.mjs +5 -1
  45. package/fesm2022/primeng-paginator.mjs.map +1 -1
  46. package/fesm2022/primeng-panel.mjs +58 -52
  47. package/fesm2022/primeng-panel.mjs.map +1 -1
  48. package/fesm2022/primeng-popover.mjs +10 -19
  49. package/fesm2022/primeng-popover.mjs.map +1 -1
  50. package/fesm2022/primeng-select.mjs +15 -21
  51. package/fesm2022/primeng-select.mjs.map +1 -1
  52. package/fesm2022/primeng-splitter.mjs +28 -14
  53. package/fesm2022/primeng-splitter.mjs.map +1 -1
  54. package/fesm2022/primeng-steps.mjs +100 -90
  55. package/fesm2022/primeng-steps.mjs.map +1 -1
  56. package/fesm2022/primeng-table.mjs +2 -2
  57. package/fesm2022/primeng-table.mjs.map +1 -1
  58. package/fesm2022/primeng-tag.mjs +0 -1
  59. package/fesm2022/primeng-tag.mjs.map +1 -1
  60. package/fesm2022/primeng-togglebutton.mjs +3 -3
  61. package/fesm2022/primeng-tree.mjs +15 -11
  62. package/fesm2022/primeng-tree.mjs.map +1 -1
  63. package/fesm2022/primeng-treetable.mjs +385 -175
  64. package/fesm2022/primeng-treetable.mjs.map +1 -1
  65. package/galleria/galleria.d.ts +18 -1
  66. package/inputotp/inputotp.d.ts +1 -0
  67. package/package.json +173 -173
  68. package/popover/popover.d.ts +1 -7
  69. package/select/select.d.ts +1 -0
  70. package/splitter/splitter.d.ts +2 -1
  71. package/tag/tag.d.ts +0 -1
  72. package/togglebutton/public_api.d.ts +2 -1
  73. package/treetable/treetable.d.ts +28 -1
@@ -611,7 +611,7 @@ export declare class AutoComplete extends BaseComponent implements AfterViewChec
611
611
  onKeyDown(event: any): void;
612
612
  onArrowDownKey(event: any): void;
613
613
  onArrowUpKey(event: any): void;
614
- hasFluid(): boolean;
614
+ get hasFluid(): boolean;
615
615
  onArrowLeftKey(event: any): void;
616
616
  onArrowRightKey(event: any): void;
617
617
  onHomeKey(event: any): void;
@@ -161,7 +161,7 @@ export declare class CascadeSelect extends BaseComponent implements OnInit, Afte
161
161
  * Property name or getter function to retrieve the items of a group.
162
162
  * @group Props
163
163
  */
164
- optionGroupChildren: string | undefined;
164
+ optionGroupChildren: string[] | string | undefined | null;
165
165
  /**
166
166
  * Default text to display when no option is selected.
167
167
  * @group Props
@@ -604,7 +604,8 @@ export declare class Dropdown extends BaseComponent implements OnInit, AfterView
604
604
  onBackspaceKey(event: KeyboardEvent, pressedInInputText?: boolean): void;
605
605
  searchFields(): any[];
606
606
  searchOptions(event: any, char: any): boolean;
607
- isOptionMatched(option: any): any;
607
+ isOptionStartsWith(option: any): any;
608
+ isOptionExactMatched(option: any): boolean;
608
609
  onFilterInputChange(event: Event | any): void;
609
610
  applyFocus(): void;
610
611
  /**
@@ -20,7 +20,7 @@ export declare class DialogService {
20
20
  * @returns {DynamicDialogRef} DynamicDialog instance.
21
21
  * @group Method
22
22
  */
23
- open<T>(componentType: Type<T>, config: DynamicDialogConfig): DynamicDialogRef<T>;
23
+ open<T, DataType = any, InputValuesType extends Record<string, any> = {}>(componentType: Type<T>, config: DynamicDialogConfig<DataType, InputValuesType>): DynamicDialogRef<T>;
24
24
  /**
25
25
  * Returns the dynamic dialog component instance.
26
26
  * @param {ref} DynamicDialogRef - DynamicDialog instance.
@@ -3,12 +3,17 @@ import { Type } from '@angular/core';
3
3
  * Dialogs can be created dynamically with any component as the content using a DialogService.
4
4
  * @group Components
5
5
  */
6
- export declare class DynamicDialogConfig<T = any> {
6
+ export declare class DynamicDialogConfig<DataType = any, InputValuesType extends Record<string, any> = {}> {
7
7
  /**
8
8
  * An object to pass to the component loaded inside the Dialog.
9
9
  * @group Props
10
10
  */
11
- data?: T;
11
+ data?: DataType;
12
+ /**
13
+ * An object to pass to the component loaded inside the Dialog.
14
+ * @group Props
15
+ */
16
+ inputValues?: InputValuesType;
12
17
  /**
13
18
  * Header text of the dialog.
14
19
  * @group Props
@@ -33,6 +33,7 @@ export declare class DynamicDialogComponent extends BaseComponent implements Aft
33
33
  footerViewChild: Nullable<ElementRef>;
34
34
  headerViewChild: Nullable<ElementRef>;
35
35
  childComponentType: Nullable<Type<any>>;
36
+ inputValues: Record<string, any>;
36
37
  container: Nullable<HTMLDivElement>;
37
38
  wrapper: Nullable<HTMLElement>;
38
39
  documentKeydownListener: VoidListener;
@@ -111,8 +112,8 @@ export declare class DynamicDialogComponent extends BaseComponent implements Aft
111
112
  static ɵfac: i0.ɵɵFactoryDeclaration<DynamicDialogComponent, [null, null, null, null, { optional: true; skipSelf: true; }]>;
112
113
  static ɵcmp: i0.ɵɵComponentDeclaration<DynamicDialogComponent, "p-dynamicDialog, p-dynamicdialog, p-dynamic-dialog", never, {}, {}, never, never, true, never>;
113
114
  }
114
- export declare class DynamicDialog {
115
- static ɵfac: i0.ɵɵFactoryDeclaration<DynamicDialog, never>;
116
- static ɵmod: i0.ɵɵNgModuleDeclaration<DynamicDialog, never, [typeof DynamicDialogComponent, typeof i1.SharedModule], [typeof DynamicDialogComponent, typeof i1.SharedModule]>;
117
- static ɵinj: i0.ɵɵInjectorDeclaration<DynamicDialog>;
115
+ export declare class DynamicDialogModule {
116
+ static ɵfac: i0.ɵɵFactoryDeclaration<DynamicDialogModule, never>;
117
+ static ɵmod: i0.ɵɵNgModuleDeclaration<DynamicDialogModule, never, [typeof DynamicDialogComponent, typeof i1.SharedModule], [typeof DynamicDialogComponent, typeof i1.SharedModule]>;
118
+ static ɵinj: i0.ɵɵInjectorDeclaration<DynamicDialogModule>;
118
119
  }
@@ -314,7 +314,7 @@ const classes = {
314
314
  'p-autocomplete-open': instance.overlayVisible,
315
315
  'p-autocomplete-clearable': instance.showClear && !instance.disabled,
316
316
  // 'p-invalid': instance.invalid,
317
- 'p-autocomplete-fluid': instance.hasFluid()
317
+ 'p-autocomplete-fluid': instance.hasFluid
318
318
  }),
319
319
  pcInput: 'p-autocomplete-input',
320
320
  inputMultiple: ({ instance }) => ({
@@ -459,7 +459,7 @@ function AutoComplete_input_2_Template(rf, ctx) { if (rf & 1) {
459
459
  let tmp_26_0;
460
460
  const ctx_r2 = i0.ɵɵnextContext();
461
461
  i0.ɵɵclassMap(ctx_r2.inputStyleClass);
462
- i0.ɵɵproperty("pAutoFocus", ctx_r2.autofocus)("ngClass", "p-autocomplete-input")("ngStyle", ctx_r2.inputStyle)("type", ctx_r2.type)("variant", ctx_r2.variant)("autocomplete", ctx_r2.autocomplete)("required", ctx_r2.required)("name", ctx_r2.name)("pSize", ctx_r2.size)("tabindex", !ctx_r2.disabled ? ctx_r2.tabindex : -1)("readonly", ctx_r2.readonly)("disabled", ctx_r2.disabled)("fluid", ctx_r2.hasFluid());
462
+ i0.ɵɵproperty("pAutoFocus", ctx_r2.autofocus)("ngClass", "p-autocomplete-input")("ngStyle", ctx_r2.inputStyle)("type", ctx_r2.type)("variant", ctx_r2.variant)("autocomplete", ctx_r2.autocomplete)("required", ctx_r2.required)("name", ctx_r2.name)("pSize", ctx_r2.size)("tabindex", !ctx_r2.disabled ? ctx_r2.tabindex : -1)("readonly", ctx_r2.readonly)("disabled", ctx_r2.disabled)("fluid", ctx_r2.hasFluid);
463
463
  i0.ɵɵattribute("value", ctx_r2.inputValue())("id", ctx_r2.inputId)("placeholder", ctx_r2.placeholder)("maxlength", ctx_r2.maxlength)("aria-label", ctx_r2.ariaLabel)("aria-labelledby", ctx_r2.ariaLabelledBy)("aria-required", ctx_r2.required)("aria-expanded", (tmp_26_0 = ctx_r2.overlayVisible) !== null && tmp_26_0 !== undefined ? tmp_26_0 : false)("aria-controls", ctx_r2.overlayVisible ? ctx_r2.id + "_list" : null)("aria-activedescendant", ctx_r2.focused ? ctx_r2.focusedOptionId : undefined);
464
464
  } }
465
465
  function AutoComplete_ng_container_3_TimesIcon_1_Template(rf, ctx) { if (rf & 1) {
@@ -1544,7 +1544,7 @@ class AutoComplete extends BaseComponent {
1544
1544
  }
1545
1545
  handleSuggestionsChange() {
1546
1546
  if (this.loading) {
1547
- this._suggestions()?.length > 0 ? this.show() : !!this.emptyTemplate ? this.show() : this.hide();
1547
+ this._suggestions()?.length > 0 || this.showEmptyMessage || !!this.emptyTemplate ? this.show() : this.hide();
1548
1548
  const focusedOptionIndex = this.overlayVisible && this.autoOptionFocus ? this.findFirstFocusedOptionIndex() : -1;
1549
1549
  this.focusedOptionIndex.set(focusedOptionIndex);
1550
1550
  this.suggestionsUpdated = true;
@@ -1825,7 +1825,7 @@ class AutoComplete extends BaseComponent {
1825
1825
  event.stopPropagation();
1826
1826
  }
1827
1827
  }
1828
- hasFluid() {
1828
+ get hasFluid() {
1829
1829
  const nativeElement = this.el.nativeElement;
1830
1830
  const fluidComponent = nativeElement.closest('p-fluid');
1831
1831
  return this.fluid || !!fluidComponent;
@@ -2238,7 +2238,7 @@ class AutoComplete extends BaseComponent {
2238
2238
  (blur)="onInputBlur($event)"
2239
2239
  (paste)="onInputPaste($event)"
2240
2240
  (keyup)="onInputKeyUp($event)"
2241
- [fluid]="hasFluid()"
2241
+ [fluid]="hasFluid"
2242
2242
  />
2243
2243
  <ng-container *ngIf="filled && !disabled && showClear && !loading">
2244
2244
  <TimesIcon *ngIf="!clearIconTemplate && !_clearIconTemplate" [styleClass]="'p-autocomplete-clear-icon'" (click)="clear()" [attr.aria-hidden]="true" />