primeng 19.0.10 → 19.1.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.
Files changed (235) hide show
  1. package/autocomplete/autocomplete.d.ts +1 -1
  2. package/button/button.d.ts +6 -2
  3. package/button/button.interface.d.ts +1 -0
  4. package/chips/chips.d.ts +237 -0
  5. package/chips/chips.interface.d.ts +66 -0
  6. package/chips/index.d.ts +5 -0
  7. package/chips/public_api.d.ts +2 -0
  8. package/chips/style/chipsstyle.d.ts +69 -0
  9. package/colorpicker/colorpicker.d.ts +3 -2
  10. package/confirmdialog/confirmdialog.d.ts +7 -1
  11. package/fesm2022/primeng-accordion.mjs +24 -23
  12. package/fesm2022/primeng-accordion.mjs.map +1 -1
  13. package/fesm2022/primeng-animateonscroll.mjs +7 -7
  14. package/fesm2022/primeng-api.mjs +31 -31
  15. package/fesm2022/primeng-autocomplete.mjs +12 -12
  16. package/fesm2022/primeng-autocomplete.mjs.map +1 -1
  17. package/fesm2022/primeng-autofocus.mjs +7 -7
  18. package/fesm2022/primeng-avatar.mjs +10 -10
  19. package/fesm2022/primeng-avatargroup.mjs +10 -10
  20. package/fesm2022/primeng-badge.mjs +13 -13
  21. package/fesm2022/primeng-base.mjs +7 -3
  22. package/fesm2022/primeng-base.mjs.map +1 -1
  23. package/fesm2022/primeng-basecomponent.mjs +6 -6
  24. package/fesm2022/primeng-blockui.mjs +10 -10
  25. package/fesm2022/primeng-breadcrumb.mjs +10 -10
  26. package/fesm2022/primeng-button.mjs +53 -20
  27. package/fesm2022/primeng-button.mjs.map +1 -1
  28. package/fesm2022/primeng-buttongroup.mjs +10 -10
  29. package/fesm2022/primeng-calendar.mjs +13 -11
  30. package/fesm2022/primeng-calendar.mjs.map +1 -1
  31. package/fesm2022/primeng-card.mjs +10 -10
  32. package/fesm2022/primeng-carousel.mjs +12 -12
  33. package/fesm2022/primeng-carousel.mjs.map +1 -1
  34. package/fesm2022/primeng-cascadeselect.mjs +17 -13
  35. package/fesm2022/primeng-cascadeselect.mjs.map +1 -1
  36. package/fesm2022/primeng-chart.mjs +10 -10
  37. package/fesm2022/primeng-checkbox.mjs +12 -10
  38. package/fesm2022/primeng-checkbox.mjs.map +1 -1
  39. package/fesm2022/primeng-chip.mjs +10 -10
  40. package/fesm2022/primeng-chips.mjs +930 -0
  41. package/fesm2022/primeng-chips.mjs.map +1 -0
  42. package/fesm2022/primeng-colorpicker.mjs +16 -10
  43. package/fesm2022/primeng-colorpicker.mjs.map +1 -1
  44. package/fesm2022/primeng-config.mjs +6 -6
  45. package/fesm2022/primeng-confirmdialog.mjs +20 -10
  46. package/fesm2022/primeng-confirmdialog.mjs.map +1 -1
  47. package/fesm2022/primeng-confirmpopup.mjs +10 -10
  48. package/fesm2022/primeng-contextmenu.mjs +13 -13
  49. package/fesm2022/primeng-dataview.mjs +11 -11
  50. package/fesm2022/primeng-dataview.mjs.map +1 -1
  51. package/fesm2022/primeng-datepicker.mjs +19 -12
  52. package/fesm2022/primeng-datepicker.mjs.map +1 -1
  53. package/fesm2022/primeng-defer.mjs +7 -7
  54. package/fesm2022/primeng-dialog.mjs +10 -10
  55. package/fesm2022/primeng-divider.mjs +10 -10
  56. package/fesm2022/primeng-dock.mjs +10 -10
  57. package/fesm2022/primeng-dragdrop.mjs +10 -10
  58. package/fesm2022/primeng-drawer.mjs +10 -10
  59. package/fesm2022/primeng-dropdown.mjs +13 -13
  60. package/fesm2022/primeng-dynamicdialog.mjs +16 -16
  61. package/fesm2022/primeng-editor.mjs +10 -10
  62. package/fesm2022/primeng-fieldset.mjs +10 -10
  63. package/fesm2022/primeng-fileupload.mjs +11 -15
  64. package/fesm2022/primeng-fileupload.mjs.map +1 -1
  65. package/fesm2022/primeng-floatlabel.mjs +10 -10
  66. package/fesm2022/primeng-fluid.mjs +10 -10
  67. package/fesm2022/primeng-focustrap.mjs +7 -7
  68. package/fesm2022/primeng-galleria.mjs +22 -22
  69. package/fesm2022/primeng-iconfield.mjs +10 -10
  70. package/fesm2022/primeng-icons-angledoubledown.mjs +3 -3
  71. package/fesm2022/primeng-icons-angledoubleleft.mjs +3 -3
  72. package/fesm2022/primeng-icons-angledoubleright.mjs +3 -3
  73. package/fesm2022/primeng-icons-angledoubleup.mjs +3 -3
  74. package/fesm2022/primeng-icons-angledown.mjs +3 -3
  75. package/fesm2022/primeng-icons-angleleft.mjs +3 -3
  76. package/fesm2022/primeng-icons-angleright.mjs +3 -3
  77. package/fesm2022/primeng-icons-angleup.mjs +3 -3
  78. package/fesm2022/primeng-icons-arrowdown.mjs +3 -3
  79. package/fesm2022/primeng-icons-arrowdownleft.mjs +3 -3
  80. package/fesm2022/primeng-icons-arrowdownright.mjs +3 -3
  81. package/fesm2022/primeng-icons-arrowleft.mjs +3 -3
  82. package/fesm2022/primeng-icons-arrowright.mjs +3 -3
  83. package/fesm2022/primeng-icons-arrowup.mjs +3 -3
  84. package/fesm2022/primeng-icons-ban.mjs +3 -3
  85. package/fesm2022/primeng-icons-bars.mjs +3 -3
  86. package/fesm2022/primeng-icons-baseicon.mjs +6 -6
  87. package/fesm2022/primeng-icons-blank.mjs +3 -3
  88. package/fesm2022/primeng-icons-calendar.mjs +3 -3
  89. package/fesm2022/primeng-icons-caretleft.mjs +3 -3
  90. package/fesm2022/primeng-icons-caretright.mjs +3 -3
  91. package/fesm2022/primeng-icons-check.mjs +3 -3
  92. package/fesm2022/primeng-icons-chevrondown.mjs +3 -3
  93. package/fesm2022/primeng-icons-chevronleft.mjs +3 -3
  94. package/fesm2022/primeng-icons-chevronright.mjs +3 -3
  95. package/fesm2022/primeng-icons-chevronup.mjs +3 -3
  96. package/fesm2022/primeng-icons-exclamationtriangle.mjs +3 -3
  97. package/fesm2022/primeng-icons-eye.mjs +3 -3
  98. package/fesm2022/primeng-icons-eyeslash.mjs +3 -3
  99. package/fesm2022/primeng-icons-filter.mjs +3 -3
  100. package/fesm2022/primeng-icons-filterslash.mjs +3 -3
  101. package/fesm2022/primeng-icons-home.mjs +3 -3
  102. package/fesm2022/primeng-icons-infocircle.mjs +3 -3
  103. package/fesm2022/primeng-icons-minus.mjs +3 -3
  104. package/fesm2022/primeng-icons-pencil.mjs +3 -3
  105. package/fesm2022/primeng-icons-plus.mjs +3 -3
  106. package/fesm2022/primeng-icons-refresh.mjs +3 -3
  107. package/fesm2022/primeng-icons-search.mjs +3 -3
  108. package/fesm2022/primeng-icons-searchminus.mjs +3 -3
  109. package/fesm2022/primeng-icons-searchplus.mjs +3 -3
  110. package/fesm2022/primeng-icons-sortalt.mjs +3 -3
  111. package/fesm2022/primeng-icons-sortamountdown.mjs +3 -3
  112. package/fesm2022/primeng-icons-sortamountupalt.mjs +3 -3
  113. package/fesm2022/primeng-icons-spinner.mjs +3 -3
  114. package/fesm2022/primeng-icons-star.mjs +3 -3
  115. package/fesm2022/primeng-icons-starfill.mjs +3 -3
  116. package/fesm2022/primeng-icons-thlarge.mjs +3 -3
  117. package/fesm2022/primeng-icons-times.mjs +3 -3
  118. package/fesm2022/primeng-icons-timescircle.mjs +3 -3
  119. package/fesm2022/primeng-icons-trash.mjs +3 -3
  120. package/fesm2022/primeng-icons-undo.mjs +3 -3
  121. package/fesm2022/primeng-icons-upload.mjs +3 -3
  122. package/fesm2022/primeng-icons-windowmaximize.mjs +3 -3
  123. package/fesm2022/primeng-icons-windowminimize.mjs +3 -3
  124. package/fesm2022/primeng-iftalabel.mjs +10 -10
  125. package/fesm2022/primeng-image.mjs +10 -10
  126. package/fesm2022/primeng-imagecompare.mjs +10 -10
  127. package/fesm2022/primeng-inplace.mjs +16 -16
  128. package/fesm2022/primeng-inputgroup.mjs +10 -10
  129. package/fesm2022/primeng-inputgroupaddon.mjs +10 -10
  130. package/fesm2022/primeng-inputicon.mjs +10 -10
  131. package/fesm2022/primeng-inputmask.mjs +16 -10
  132. package/fesm2022/primeng-inputmask.mjs.map +1 -1
  133. package/fesm2022/primeng-inputnumber.mjs +28 -10
  134. package/fesm2022/primeng-inputnumber.mjs.map +1 -1
  135. package/fesm2022/primeng-inputotp.mjs +10 -10
  136. package/fesm2022/primeng-inputswitch.mjs +10 -10
  137. package/fesm2022/primeng-inputtext.mjs +10 -10
  138. package/fesm2022/primeng-inputtextarea.mjs +10 -10
  139. package/fesm2022/primeng-keyfilter.mjs +7 -7
  140. package/fesm2022/primeng-knob.mjs +10 -10
  141. package/fesm2022/primeng-listbox.mjs +16 -12
  142. package/fesm2022/primeng-listbox.mjs.map +1 -1
  143. package/fesm2022/primeng-megamenu.mjs +13 -17
  144. package/fesm2022/primeng-megamenu.mjs.map +1 -1
  145. package/fesm2022/primeng-menu.mjs +17 -16
  146. package/fesm2022/primeng-menu.mjs.map +1 -1
  147. package/fesm2022/primeng-menubar.mjs +16 -18
  148. package/fesm2022/primeng-menubar.mjs.map +1 -1
  149. package/fesm2022/primeng-message.mjs +10 -10
  150. package/fesm2022/primeng-messages.mjs +10 -10
  151. package/fesm2022/primeng-metergroup.mjs +13 -13
  152. package/fesm2022/primeng-multiselect.mjs +34 -16
  153. package/fesm2022/primeng-multiselect.mjs.map +1 -1
  154. package/fesm2022/primeng-orderlist.mjs +30 -10
  155. package/fesm2022/primeng-orderlist.mjs.map +1 -1
  156. package/fesm2022/primeng-organizationchart.mjs +13 -13
  157. package/fesm2022/primeng-overlay.mjs +23 -19
  158. package/fesm2022/primeng-overlay.mjs.map +1 -1
  159. package/fesm2022/primeng-overlaybadge.mjs +10 -10
  160. package/fesm2022/primeng-overlaypanel.mjs +10 -10
  161. package/fesm2022/primeng-paginator.mjs +11 -11
  162. package/fesm2022/primeng-paginator.mjs.map +1 -1
  163. package/fesm2022/primeng-panel.mjs +10 -10
  164. package/fesm2022/primeng-panelmenu.mjs +16 -16
  165. package/fesm2022/primeng-password.mjs +17 -17
  166. package/fesm2022/primeng-password.mjs.map +1 -1
  167. package/fesm2022/primeng-picklist.mjs +82 -38
  168. package/fesm2022/primeng-picklist.mjs.map +1 -1
  169. package/fesm2022/primeng-popover.mjs +10 -10
  170. package/fesm2022/primeng-progressbar.mjs +10 -10
  171. package/fesm2022/primeng-progressspinner.mjs +14 -14
  172. package/fesm2022/primeng-progressspinner.mjs.map +1 -1
  173. package/fesm2022/primeng-radiobutton.mjs +15 -13
  174. package/fesm2022/primeng-radiobutton.mjs.map +1 -1
  175. package/fesm2022/primeng-rating.mjs +10 -10
  176. package/fesm2022/primeng-ripple.mjs +10 -10
  177. package/fesm2022/primeng-scroller.mjs +18 -11
  178. package/fesm2022/primeng-scroller.mjs.map +1 -1
  179. package/fesm2022/primeng-scrollpanel.mjs +10 -10
  180. package/fesm2022/primeng-scrolltop.mjs +10 -10
  181. package/fesm2022/primeng-select.mjs +20 -17
  182. package/fesm2022/primeng-select.mjs.map +1 -1
  183. package/fesm2022/primeng-selectbutton.mjs +21 -14
  184. package/fesm2022/primeng-selectbutton.mjs.map +1 -1
  185. package/fesm2022/primeng-sidebar.mjs +10 -10
  186. package/fesm2022/primeng-skeleton.mjs +10 -10
  187. package/fesm2022/primeng-slider.mjs +10 -10
  188. package/fesm2022/primeng-speeddial.mjs +10 -10
  189. package/fesm2022/primeng-splitbutton.mjs +10 -10
  190. package/fesm2022/primeng-splitter.mjs +13 -13
  191. package/fesm2022/primeng-stepper.mjs +30 -30
  192. package/fesm2022/primeng-stepper.mjs.map +1 -1
  193. package/fesm2022/primeng-steps.mjs +10 -10
  194. package/fesm2022/primeng-styleclass.mjs +7 -7
  195. package/fesm2022/primeng-table.mjs +113 -111
  196. package/fesm2022/primeng-table.mjs.map +1 -1
  197. package/fesm2022/primeng-tabmenu.mjs +10 -10
  198. package/fesm2022/primeng-tabs.mjs +30 -28
  199. package/fesm2022/primeng-tabs.mjs.map +1 -1
  200. package/fesm2022/primeng-tabview.mjs +13 -13
  201. package/fesm2022/primeng-tag.mjs +10 -10
  202. package/fesm2022/primeng-terminal.mjs +13 -13
  203. package/fesm2022/primeng-textarea.mjs +15 -11
  204. package/fesm2022/primeng-textarea.mjs.map +1 -1
  205. package/fesm2022/primeng-tieredmenu.mjs +34 -56
  206. package/fesm2022/primeng-tieredmenu.mjs.map +1 -1
  207. package/fesm2022/primeng-timeline.mjs +10 -10
  208. package/fesm2022/primeng-toast.mjs +13 -13
  209. package/fesm2022/primeng-togglebutton.mjs +131 -146
  210. package/fesm2022/primeng-togglebutton.mjs.map +1 -1
  211. package/fesm2022/primeng-toggleswitch.mjs +12 -10
  212. package/fesm2022/primeng-toggleswitch.mjs.map +1 -1
  213. package/fesm2022/primeng-toolbar.mjs +10 -10
  214. package/fesm2022/primeng-tooltip.mjs +11 -11
  215. package/fesm2022/primeng-tooltip.mjs.map +1 -1
  216. package/fesm2022/primeng-tree.mjs +49 -19
  217. package/fesm2022/primeng-tree.mjs.map +1 -1
  218. package/fesm2022/primeng-treeselect.mjs +17 -11
  219. package/fesm2022/primeng-treeselect.mjs.map +1 -1
  220. package/fesm2022/primeng-treetable.mjs +68 -64
  221. package/fesm2022/primeng-treetable.mjs.map +1 -1
  222. package/fesm2022/primeng-usestyle.mjs +3 -3
  223. package/inputnumber/inputnumber.d.ts +6 -1
  224. package/listbox/listbox.d.ts +1 -1
  225. package/multiselect/multiselect.d.ts +10 -2
  226. package/multiselect/multiselect.interface.d.ts +1 -1
  227. package/package.json +119 -115
  228. package/picklist/picklist.d.ts +1 -1
  229. package/scroller/scroller.d.ts +1 -0
  230. package/select/select.d.ts +1 -0
  231. package/selectbutton/selectbutton.d.ts +3 -1
  232. package/table/table.d.ts +1 -1
  233. package/togglebutton/togglebutton.d.ts +7 -6
  234. package/tree/tree.d.ts +7 -1
  235. package/treetable/treetable.d.ts +2 -2
@@ -80,10 +80,10 @@ class TagStyle extends BaseStyle {
80
80
  name = 'tag';
81
81
  theme = theme;
82
82
  classes = classes;
83
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: TagStyle, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
84
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: TagStyle });
83
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: TagStyle, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
84
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: TagStyle });
85
85
  }
86
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: TagStyle, decorators: [{
86
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: TagStyle, decorators: [{
87
87
  type: Injectable
88
88
  }] });
89
89
  /**
@@ -179,8 +179,8 @@ class Tag extends BaseComponent {
179
179
  }
180
180
  return classes;
181
181
  }
182
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: Tag, deps: null, target: i0.ɵɵFactoryTarget.Component });
183
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "19.2.2", type: Tag, isStandalone: true, selector: "p-tag", inputs: { style: "style", styleClass: "styleClass", severity: "severity", value: "value", icon: "icon", rounded: ["rounded", "rounded", booleanAttribute] }, host: { properties: { "class": "containerClass()", "style": "style" } }, providers: [TagStyle], queries: [{ propertyName: "iconTemplate", first: true, predicate: ["icon"] }, { propertyName: "templates", predicate: PrimeTemplate }], usesInheritance: true, ngImport: i0, template: `
182
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: Tag, deps: null, target: i0.ɵɵFactoryTarget.Component });
183
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "19.2.5", type: Tag, isStandalone: true, selector: "p-tag", inputs: { style: "style", styleClass: "styleClass", severity: "severity", value: "value", icon: "icon", rounded: ["rounded", "rounded", booleanAttribute] }, host: { properties: { "class": "containerClass()", "style": "style" } }, providers: [TagStyle], queries: [{ propertyName: "iconTemplate", first: true, predicate: ["icon"] }, { propertyName: "templates", predicate: PrimeTemplate }], usesInheritance: true, ngImport: i0, template: `
184
184
  <ng-content></ng-content>
185
185
  <ng-container *ngIf="!iconTemplate && !_iconTemplate">
186
186
  <span class="p-tag-icon" [ngClass]="icon" *ngIf="icon"></span>
@@ -191,7 +191,7 @@ class Tag extends BaseComponent {
191
191
  <span class="p-tag-label">{{ value }}</span>
192
192
  `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: SharedModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
193
193
  }
194
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: Tag, decorators: [{
194
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: Tag, decorators: [{
195
195
  type: Component,
196
196
  args: [{
197
197
  selector: 'p-tag',
@@ -236,11 +236,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImpor
236
236
  args: [PrimeTemplate]
237
237
  }] } });
238
238
  class TagModule {
239
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: TagModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
240
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.2", ngImport: i0, type: TagModule, imports: [Tag, SharedModule], exports: [Tag, SharedModule] });
241
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: TagModule, imports: [Tag, SharedModule, SharedModule] });
239
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: TagModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
240
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.5", ngImport: i0, type: TagModule, imports: [Tag, SharedModule], exports: [Tag, SharedModule] });
241
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: TagModule, imports: [Tag, SharedModule, SharedModule] });
242
242
  }
243
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: TagModule, decorators: [{
243
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: TagModule, decorators: [{
244
244
  type: NgModule,
245
245
  args: [{
246
246
  imports: [Tag, SharedModule],
@@ -65,10 +65,10 @@ class TerminalStyle extends BaseStyle {
65
65
  name = 'terminal';
66
66
  theme = theme;
67
67
  classes = classes;
68
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: TerminalStyle, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
69
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: TerminalStyle });
68
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: TerminalStyle, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
69
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: TerminalStyle });
70
70
  }
71
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: TerminalStyle, decorators: [{
71
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: TerminalStyle, decorators: [{
72
72
  type: Injectable
73
73
  }] });
74
74
  /**
@@ -135,10 +135,10 @@ class TerminalService {
135
135
  this.responseSource.next(response);
136
136
  }
137
137
  }
138
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: TerminalService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
139
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: TerminalService });
138
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: TerminalService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
139
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: TerminalService });
140
140
  }
141
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: TerminalService, decorators: [{
141
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: TerminalService, decorators: [{
142
142
  type: Injectable
143
143
  }] });
144
144
 
@@ -214,8 +214,8 @@ class Terminal extends BaseComponent {
214
214
  }
215
215
  super.ngOnDestroy();
216
216
  }
217
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: Terminal, deps: [{ token: TerminalService }], target: i0.ɵɵFactoryTarget.Component });
218
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.2", type: Terminal, isStandalone: true, selector: "p-terminal", inputs: { welcomeMessage: "welcomeMessage", prompt: "prompt", style: "style", styleClass: "styleClass", response: "response" }, providers: [TerminalStyle], usesInheritance: true, ngImport: i0, template: `
217
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: Terminal, deps: [{ token: TerminalService }], target: i0.ɵɵFactoryTarget.Component });
218
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.5", type: Terminal, isStandalone: true, selector: "p-terminal", inputs: { welcomeMessage: "welcomeMessage", prompt: "prompt", style: "style", styleClass: "styleClass", response: "response" }, providers: [TerminalStyle], usesInheritance: true, ngImport: i0, template: `
219
219
  <div [ngClass]="'p-terminal p-component'" [ngStyle]="style" [class]="styleClass" (click)="focus(in)">
220
220
  <div class="p-terminal-welcome-message" *ngIf="welcomeMessage">{{ welcomeMessage }}</div>
221
221
  <div class="p-terminal-command-list">
@@ -232,7 +232,7 @@ class Terminal extends BaseComponent {
232
232
  </div>
233
233
  `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: SharedModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
234
234
  }
235
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: Terminal, decorators: [{
235
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: Terminal, decorators: [{
236
236
  type: Component,
237
237
  args: [{
238
238
  selector: 'p-terminal',
@@ -270,11 +270,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImpor
270
270
  type: Input
271
271
  }] } });
272
272
  class TerminalModule {
273
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: TerminalModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
274
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.2", ngImport: i0, type: TerminalModule, imports: [Terminal, SharedModule], exports: [Terminal, SharedModule] });
275
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: TerminalModule, imports: [Terminal, SharedModule, SharedModule] });
273
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: TerminalModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
274
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.5", ngImport: i0, type: TerminalModule, imports: [Terminal, SharedModule], exports: [Terminal, SharedModule] });
275
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: TerminalModule, imports: [Terminal, SharedModule, SharedModule] });
276
276
  }
277
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: TerminalModule, decorators: [{
277
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: TerminalModule, decorators: [{
278
278
  type: NgModule,
279
279
  args: [{
280
280
  exports: [Terminal, SharedModule],
@@ -43,6 +43,10 @@ const theme = ({ dt }) => `
43
43
  background: ${dt('textarea.filled.background')};
44
44
  }
45
45
 
46
+ .p-textarea.p-variant-filled:enabled:hover {
47
+ background: ${dt('textarea.filled.hover.background')};
48
+ }
49
+
46
50
  .p-textarea.p-variant-filled:enabled:focus {
47
51
  background: ${dt('textarea.filled.focus.background')};
48
52
  }
@@ -98,10 +102,10 @@ class TextareaStyle extends BaseStyle {
98
102
  name = 'textarea';
99
103
  theme = theme;
100
104
  classes = classes;
101
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: TextareaStyle, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
102
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: TextareaStyle });
105
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: TextareaStyle, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
106
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: TextareaStyle });
103
107
  }
104
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: TextareaStyle, decorators: [{
108
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: TextareaStyle, decorators: [{
105
109
  type: Injectable
106
110
  }] });
107
111
  /**
@@ -184,10 +188,10 @@ class Textarea extends BaseComponent {
184
188
  }
185
189
  ngAfterViewInit() {
186
190
  super.ngAfterViewInit();
191
+ this.cd.detectChanges();
187
192
  if (this.autoResize)
188
193
  this.resize();
189
194
  this.updateFilledState();
190
- this.cd.detectChanges();
191
195
  }
192
196
  onInput(e) {
193
197
  this.updateState();
@@ -222,10 +226,10 @@ class Textarea extends BaseComponent {
222
226
  }
223
227
  super.ngOnDestroy();
224
228
  }
225
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: Textarea, deps: [{ token: i1.NgModel, optional: true }, { token: i1.NgControl, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
226
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "19.2.2", type: Textarea, isStandalone: true, selector: "[pTextarea]", inputs: { autoResize: ["autoResize", "autoResize", booleanAttribute], variant: "variant", fluid: ["fluid", "fluid", booleanAttribute], pSize: "pSize" }, outputs: { onResize: "onResize" }, host: { listeners: { "input": "onInput($event)" }, properties: { "class.p-filled": "filled", "class.p-textarea-resizable": "autoResize", "class.p-variant-filled": "variant === \"filled\" || config.inputStyle() === \"filled\" || config.inputVariant() === \"filled\"", "class.p-textarea-fluid": "hasFluid", "class.p-textarea-sm": "pSize === \"small\"", "class.p-inputfield-sm": "pSize === \"small\"", "class.p-textarea-lg": "pSize === \"large\"", "class.p-inputfield-lg": "pSize === \"large\"" }, classAttribute: "p-textarea p-component" }, providers: [TextareaStyle], usesInheritance: true, ngImport: i0 });
229
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: Textarea, deps: [{ token: i1.NgModel, optional: true }, { token: i1.NgControl, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
230
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "19.2.5", type: Textarea, isStandalone: true, selector: "[pTextarea]", inputs: { autoResize: ["autoResize", "autoResize", booleanAttribute], variant: "variant", fluid: ["fluid", "fluid", booleanAttribute], pSize: "pSize" }, outputs: { onResize: "onResize" }, host: { listeners: { "input": "onInput($event)" }, properties: { "class.p-filled": "filled", "class.p-textarea-resizable": "autoResize", "class.p-variant-filled": "variant === \"filled\" || config.inputStyle() === \"filled\" || config.inputVariant() === \"filled\"", "class.p-textarea-fluid": "hasFluid", "class.p-textarea-sm": "pSize === \"small\"", "class.p-inputfield-sm": "pSize === \"small\"", "class.p-textarea-lg": "pSize === \"large\"", "class.p-inputfield-lg": "pSize === \"large\"" }, classAttribute: "p-textarea p-component" }, providers: [TextareaStyle], usesInheritance: true, ngImport: i0 });
227
231
  }
228
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: Textarea, decorators: [{
232
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: Textarea, decorators: [{
229
233
  type: Directive,
230
234
  args: [{
231
235
  selector: '[pTextarea]',
@@ -264,11 +268,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImpor
264
268
  args: ['input', ['$event']]
265
269
  }] } });
266
270
  class TextareaModule {
267
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: TextareaModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
268
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.2", ngImport: i0, type: TextareaModule, imports: [Textarea], exports: [Textarea] });
269
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: TextareaModule });
271
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: TextareaModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
272
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.5", ngImport: i0, type: TextareaModule, imports: [Textarea], exports: [Textarea] });
273
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: TextareaModule });
270
274
  }
271
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: TextareaModule, decorators: [{
275
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: TextareaModule, decorators: [{
272
276
  type: NgModule,
273
277
  args: [{
274
278
  imports: [Textarea],
@@ -1 +1 @@
1
- {"version":3,"file":"primeng-textarea.mjs","sources":["../../src/textarea/style/textareastyle.ts","../../src/textarea/textarea.ts","../../src/textarea/primeng-textarea.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport { BaseStyle } from 'primeng/base';\n\nconst theme = ({ dt }) => `\n.p-textarea {\n font-family: inherit;\n font-feature-settings: inherit;\n font-size: 1rem;\n color: ${dt('textarea.color')};\n background: ${dt('textarea.background')};\n padding: ${dt('textarea.padding.y')} ${dt('textarea.padding.x')};\n border: 1px solid ${dt('textarea.border.color')};\n transition: background ${dt('textarea.transition.duration')}, color ${dt('textarea.transition.duration')}, border-color ${dt('textarea.transition.duration')}, outline-color ${dt('textarea.transition.duration')}, box-shadow ${dt(\n 'textarea.transition.duration'\n )};\n appearance: none;\n border-radius: ${dt('textarea.border.radius')};\n outline-color: transparent;\n box-shadow: ${dt('textarea.shadow')};\n}\n\n.p-textarea.ng-invalid.ng-dirty {\n border-color: ${dt('textarea.invalid.border.color')};\n}\n\n.p-textarea:enabled:hover {\n border-color: ${dt('textarea.hover.border.color')};\n}\n\n.p-textarea:enabled:focus {\n border-color: ${dt('textarea.focus.border.color')};\n box-shadow: ${dt('textarea.focus.ring.shadow')};\n outline: ${dt('textarea.focus.ring.width')} ${dt('textarea.focus.ring.style')} ${dt('textarea.focus.ring.color')};\n outline-offset: ${dt('textarea.focus.ring.offset')};\n}\n\n.p-textarea.p-invalid {\n border-color: ${dt('textarea.invalid.border.color')};\n}\n\n.p-textarea.p-variant-filled {\n background: ${dt('textarea.filled.background')};\n}\n\n.p-textarea.p-variant-filled:enabled:focus {\n background: ${dt('textarea.filled.focus.background')};\n}\n\n.p-textarea:disabled {\n opacity: 1;\n background: ${dt('textarea.disabled.background')};\n color: ${dt('textarea.disabled.color')};\n}\n\n.p-textarea::placeholder {\n color: ${dt('textarea.placeholder.color')};\n}\n\n.p-textarea.ng-invalid.ng-dirty::placeholder {\n color: ${dt('textarea.invalid.placeholder.color')};\n}\n\n.p-textarea-fluid {\n width: 100%;\n}\n\n.p-textarea-resizable {\n overflow: hidden;\n resize: none;\n}\n\n.p-textarea-sm {\n font-size: ${dt('textarea.sm.font.size')};\n padding-block: ${dt('textarea.sm.padding.y')};\n padding-inline: ${dt('textarea.sm.padding.x')};\n}\n\n.p-textarea-lg {\n font-size: ${dt('textarea.lg.font.size')};\n padding-block: ${dt('textarea.lg.padding.y')};\n padding-inline: ${dt('textarea.lg.padding.x')};\n}\n`;\n\nconst classes = {\n root: ({ instance, props }) => [\n 'p-textarea p-component',\n {\n 'p-filled': instance.filled,\n 'p-textarea-resizable ': props.autoResize,\n 'p-invalid': props.invalid,\n 'p-variant-filled': props.variant ? props.variant === 'filled' : instance.config.inputStyle === 'filled' || instance.config.inputVariant === 'filled',\n 'p-textarea-fluid': props.fluid\n }\n ]\n};\n\n@Injectable()\nexport class TextareaStyle extends BaseStyle {\n name = 'textarea';\n\n theme = theme;\n\n classes = classes;\n}\n\n/**\n *\n * Textarea is a multi-line text input element.\n *\n * [Live Demo](https://www.primeng.org/textarea/)\n *\n * @module textareastyle\n *\n */\nexport enum TextareaClasses {\n /**\n * Class name of the root element\n */\n root = 'p-textarea'\n}\n\nexport interface TextareaStyle extends BaseStyle {}\n","import { AfterViewInit, booleanAttribute, Directive, EventEmitter, HostListener, inject, Input, NgModule, OnDestroy, OnInit, Optional, Output } from '@angular/core';\nimport { NgControl, NgModel } from '@angular/forms';\nimport { BaseComponent } from 'primeng/basecomponent';\nimport { Subscription } from 'rxjs';\nimport { TextareaStyle } from './style/textareastyle';\n\n/**\n * Textarea adds styling and autoResize functionality to standard textarea element.\n * @group Components\n */\n@Directive({\n selector: '[pTextarea]',\n standalone: true,\n host: {\n class: 'p-textarea p-component',\n '[class.p-filled]': 'filled',\n '[class.p-textarea-resizable]': 'autoResize',\n '[class.p-variant-filled]': 'variant === \"filled\" || config.inputStyle() === \"filled\" || config.inputVariant() === \"filled\"',\n '[class.p-textarea-fluid]': 'hasFluid',\n '[class.p-textarea-sm]': 'pSize === \"small\"',\n '[class.p-inputfield-sm]': 'pSize === \"small\"',\n '[class.p-textarea-lg]': 'pSize === \"large\"',\n '[class.p-inputfield-lg]': 'pSize === \"large\"'\n },\n providers: [TextareaStyle]\n})\nexport class Textarea extends BaseComponent implements OnInit, AfterViewInit, OnDestroy {\n /**\n * When present, textarea size changes as being typed.\n * @group Props\n */\n @Input({ transform: booleanAttribute }) autoResize: boolean | undefined;\n /**\n * Specifies the input variant of the component.\n * @group Props\n */\n @Input() variant: 'filled' | 'outlined';\n /**\n * Spans 100% width of the container when enabled.\n * @group Props\n */\n @Input({ transform: booleanAttribute }) fluid: boolean = false;\n /**\n * Defines the size of the component.\n * @group Props\n */\n @Input() pSize: 'large' | 'small';\n /**\n * Callback to invoke on textarea resize.\n * @param {(Event | {})} event - Custom resize event.\n * @group Emits\n */\n @Output() onResize: EventEmitter<Event | {}> = new EventEmitter<Event | {}>();\n\n filled: boolean | undefined;\n\n cachedScrollHeight: number | undefined;\n\n ngModelSubscription: Subscription | undefined;\n\n ngControlSubscription: Subscription | undefined;\n\n _componentStyle = inject(TextareaStyle);\n\n constructor(\n @Optional() public ngModel: NgModel,\n @Optional() public control: NgControl\n ) {\n super();\n }\n\n ngOnInit() {\n super.ngOnInit();\n if (this.ngModel) {\n this.ngModelSubscription = (this.ngModel as any).valueChanges.subscribe(() => {\n this.updateState();\n });\n }\n\n if (this.control) {\n this.ngControlSubscription = (this.control as any).valueChanges.subscribe(() => {\n this.updateState();\n });\n }\n }\n\n get hasFluid() {\n const nativeElement = this.el.nativeElement;\n const fluidComponent = nativeElement.closest('p-fluid');\n return this.fluid || !!fluidComponent;\n }\n\n ngAfterViewInit() {\n super.ngAfterViewInit();\n if (this.autoResize) this.resize();\n\n this.updateFilledState();\n this.cd.detectChanges();\n }\n\n @HostListener('input', ['$event'])\n onInput(e: Event) {\n this.updateState();\n }\n\n updateFilledState() {\n this.filled = this.el.nativeElement.value && this.el.nativeElement.value.length;\n }\n\n resize(event?: Event) {\n this.el.nativeElement.style.height = 'auto';\n this.el.nativeElement.style.height = this.el.nativeElement.scrollHeight + 'px';\n\n if (parseFloat(this.el.nativeElement.style.height) >= parseFloat(this.el.nativeElement.style.maxHeight)) {\n this.el.nativeElement.style.overflowY = 'scroll';\n this.el.nativeElement.style.height = this.el.nativeElement.style.maxHeight;\n } else {\n this.el.nativeElement.style.overflow = 'hidden';\n }\n\n this.onResize.emit(event || {});\n }\n\n updateState() {\n this.updateFilledState();\n\n if (this.autoResize) {\n this.resize();\n }\n }\n\n ngOnDestroy() {\n if (this.ngModelSubscription) {\n this.ngModelSubscription.unsubscribe();\n }\n\n if (this.ngControlSubscription) {\n this.ngControlSubscription.unsubscribe();\n }\n\n super.ngOnDestroy();\n }\n}\n\n@NgModule({\n imports: [Textarea],\n exports: [Textarea]\n})\nexport class TextareaModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;AAGA,MAAM,KAAK,GAAG,CAAC,EAAE,EAAE,EAAE,KAAK;;;;;aAKb,EAAE,CAAC,gBAAgB,CAAC,CAAA;kBACf,EAAE,CAAC,qBAAqB,CAAC,CAAA;AAC5B,aAAA,EAAA,EAAE,CAAC,oBAAoB,CAAC,IAAI,EAAE,CAAC,oBAAoB,CAAC,CAAA;wBAC3C,EAAE,CAAC,uBAAuB,CAAC,CAAA;6BACtB,EAAE,CAAC,8BAA8B,CAAC,CAAA,QAAA,EAAW,EAAE,CAAC,8BAA8B,CAAC,CAAA,eAAA,EAAkB,EAAE,CAAC,8BAA8B,CAAC,CAAA,gBAAA,EAAmB,EAAE,CAAC,8BAA8B,CAAC,CAAgB,aAAA,EAAA,EAAE,CAC/N,8BAA8B,CACjC,CAAA;;qBAEgB,EAAE,CAAC,wBAAwB,CAAC,CAAA;;kBAE/B,EAAE,CAAC,iBAAiB,CAAC,CAAA;;;;oBAInB,EAAE,CAAC,+BAA+B,CAAC,CAAA;;;;oBAInC,EAAE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K7B,OAAO,EAAA,CAAA;sBAAf;gBAKuC,KAAK,EAAA,CAAA;sBAA5C,KAAK;uBAAC,EAAE,SAAS,EAAE,gBAAgB,EAAE;gBAK7B,KAAK,EAAA,CAAA;sBAAb;gBAMS,QAAQ,EAAA,CAAA;sBAAjB;gBAiDD,OAAO,EAAA,CAAA;sBADN,YAAY;uBAAC,OAAO,EAAE,CAAC,QAAQ,CAAC;;MAgDxB,cAAc,CAAA;uGAAd,cAAc,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA;wGAAd,cAAc,EAAA,OAAA,EAAA,CA1Hd,QAAQ,CAAA,EAAA,OAAA,EAAA,CAAR,QAAQ,CAAA,EAAA,CAAA;wGA0HR,cAAc,EAAA,CAAA;;2FAAd,cAAc,EAAA,UAAA,EAAA,CAAA;kBAJ1B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACN,OAAO,EAAE,CAAC,QAAQ,CAAC;oBACnB,OAAO,EAAE,CAAC,QAAQ;AACrB,iBAAA;;;ACnJD;;AAEG;;;;"}
1
+ {"version":3,"file":"primeng-textarea.mjs","sources":["../../src/textarea/style/textareastyle.ts","../../src/textarea/textarea.ts","../../src/textarea/primeng-textarea.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport { BaseStyle } from 'primeng/base';\n\nconst theme = ({ dt }) => `\n.p-textarea {\n font-family: inherit;\n font-feature-settings: inherit;\n font-size: 1rem;\n color: ${dt('textarea.color')};\n background: ${dt('textarea.background')};\n padding: ${dt('textarea.padding.y')} ${dt('textarea.padding.x')};\n border: 1px solid ${dt('textarea.border.color')};\n transition: background ${dt('textarea.transition.duration')}, color ${dt('textarea.transition.duration')}, border-color ${dt('textarea.transition.duration')}, outline-color ${dt('textarea.transition.duration')}, box-shadow ${dt(\n 'textarea.transition.duration'\n )};\n appearance: none;\n border-radius: ${dt('textarea.border.radius')};\n outline-color: transparent;\n box-shadow: ${dt('textarea.shadow')};\n}\n\n.p-textarea.ng-invalid.ng-dirty {\n border-color: ${dt('textarea.invalid.border.color')};\n}\n\n.p-textarea:enabled:hover {\n border-color: ${dt('textarea.hover.border.color')};\n}\n\n.p-textarea:enabled:focus {\n border-color: ${dt('textarea.focus.border.color')};\n box-shadow: ${dt('textarea.focus.ring.shadow')};\n outline: ${dt('textarea.focus.ring.width')} ${dt('textarea.focus.ring.style')} ${dt('textarea.focus.ring.color')};\n outline-offset: ${dt('textarea.focus.ring.offset')};\n}\n\n.p-textarea.p-invalid {\n border-color: ${dt('textarea.invalid.border.color')};\n}\n\n.p-textarea.p-variant-filled {\n background: ${dt('textarea.filled.background')};\n}\n\n.p-textarea.p-variant-filled:enabled:hover {\n background: ${dt('textarea.filled.hover.background')};\n}\n\n.p-textarea.p-variant-filled:enabled:focus {\n background: ${dt('textarea.filled.focus.background')};\n}\n\n.p-textarea:disabled {\n opacity: 1;\n background: ${dt('textarea.disabled.background')};\n color: ${dt('textarea.disabled.color')};\n}\n\n.p-textarea::placeholder {\n color: ${dt('textarea.placeholder.color')};\n}\n\n.p-textarea.ng-invalid.ng-dirty::placeholder {\n color: ${dt('textarea.invalid.placeholder.color')};\n}\n\n.p-textarea-fluid {\n width: 100%;\n}\n\n.p-textarea-resizable {\n overflow: hidden;\n resize: none;\n}\n\n.p-textarea-sm {\n font-size: ${dt('textarea.sm.font.size')};\n padding-block: ${dt('textarea.sm.padding.y')};\n padding-inline: ${dt('textarea.sm.padding.x')};\n}\n\n.p-textarea-lg {\n font-size: ${dt('textarea.lg.font.size')};\n padding-block: ${dt('textarea.lg.padding.y')};\n padding-inline: ${dt('textarea.lg.padding.x')};\n}\n`;\n\nconst classes = {\n root: ({ instance, props }) => [\n 'p-textarea p-component',\n {\n 'p-filled': instance.filled,\n 'p-textarea-resizable ': props.autoResize,\n 'p-invalid': props.invalid,\n 'p-variant-filled': props.variant ? props.variant === 'filled' : instance.config.inputStyle === 'filled' || instance.config.inputVariant === 'filled',\n 'p-textarea-fluid': props.fluid\n }\n ]\n};\n\n@Injectable()\nexport class TextareaStyle extends BaseStyle {\n name = 'textarea';\n\n theme = theme;\n\n classes = classes;\n}\n\n/**\n *\n * Textarea is a multi-line text input element.\n *\n * [Live Demo](https://www.primeng.org/textarea/)\n *\n * @module textareastyle\n *\n */\nexport enum TextareaClasses {\n /**\n * Class name of the root element\n */\n root = 'p-textarea'\n}\n\nexport interface TextareaStyle extends BaseStyle {}\n","import { AfterViewInit, booleanAttribute, Directive, EventEmitter, HostListener, inject, Input, NgModule, OnDestroy, OnInit, Optional, Output } from '@angular/core';\nimport { NgControl, NgModel } from '@angular/forms';\nimport { BaseComponent } from 'primeng/basecomponent';\nimport { Subscription } from 'rxjs';\nimport { TextareaStyle } from './style/textareastyle';\n\n/**\n * Textarea adds styling and autoResize functionality to standard textarea element.\n * @group Components\n */\n@Directive({\n selector: '[pTextarea]',\n standalone: true,\n host: {\n class: 'p-textarea p-component',\n '[class.p-filled]': 'filled',\n '[class.p-textarea-resizable]': 'autoResize',\n '[class.p-variant-filled]': 'variant === \"filled\" || config.inputStyle() === \"filled\" || config.inputVariant() === \"filled\"',\n '[class.p-textarea-fluid]': 'hasFluid',\n '[class.p-textarea-sm]': 'pSize === \"small\"',\n '[class.p-inputfield-sm]': 'pSize === \"small\"',\n '[class.p-textarea-lg]': 'pSize === \"large\"',\n '[class.p-inputfield-lg]': 'pSize === \"large\"'\n },\n providers: [TextareaStyle]\n})\nexport class Textarea extends BaseComponent implements OnInit, AfterViewInit, OnDestroy {\n /**\n * When present, textarea size changes as being typed.\n * @group Props\n */\n @Input({ transform: booleanAttribute }) autoResize: boolean | undefined;\n /**\n * Specifies the input variant of the component.\n * @group Props\n */\n @Input() variant: 'filled' | 'outlined';\n /**\n * Spans 100% width of the container when enabled.\n * @group Props\n */\n @Input({ transform: booleanAttribute }) fluid: boolean = false;\n /**\n * Defines the size of the component.\n * @group Props\n */\n @Input() pSize: 'large' | 'small';\n /**\n * Callback to invoke on textarea resize.\n * @param {(Event | {})} event - Custom resize event.\n * @group Emits\n */\n @Output() onResize: EventEmitter<Event | {}> = new EventEmitter<Event | {}>();\n\n filled: boolean | undefined;\n\n cachedScrollHeight: number | undefined;\n\n ngModelSubscription: Subscription | undefined;\n\n ngControlSubscription: Subscription | undefined;\n\n _componentStyle = inject(TextareaStyle);\n\n constructor(\n @Optional() public ngModel: NgModel,\n @Optional() public control: NgControl\n ) {\n super();\n }\n\n ngOnInit() {\n super.ngOnInit();\n if (this.ngModel) {\n this.ngModelSubscription = (this.ngModel as any).valueChanges.subscribe(() => {\n this.updateState();\n });\n }\n\n if (this.control) {\n this.ngControlSubscription = (this.control as any).valueChanges.subscribe(() => {\n this.updateState();\n });\n }\n }\n\n get hasFluid() {\n const nativeElement = this.el.nativeElement;\n const fluidComponent = nativeElement.closest('p-fluid');\n return this.fluid || !!fluidComponent;\n }\n\n ngAfterViewInit() {\n super.ngAfterViewInit();\n this.cd.detectChanges();\n if (this.autoResize) this.resize();\n\n this.updateFilledState();\n }\n\n @HostListener('input', ['$event'])\n onInput(e: Event) {\n this.updateState();\n }\n\n updateFilledState() {\n this.filled = this.el.nativeElement.value && this.el.nativeElement.value.length;\n }\n\n resize(event?: Event) {\n this.el.nativeElement.style.height = 'auto';\n this.el.nativeElement.style.height = this.el.nativeElement.scrollHeight + 'px';\n\n if (parseFloat(this.el.nativeElement.style.height) >= parseFloat(this.el.nativeElement.style.maxHeight)) {\n this.el.nativeElement.style.overflowY = 'scroll';\n this.el.nativeElement.style.height = this.el.nativeElement.style.maxHeight;\n } else {\n this.el.nativeElement.style.overflow = 'hidden';\n }\n\n this.onResize.emit(event || {});\n }\n\n updateState() {\n this.updateFilledState();\n\n if (this.autoResize) {\n this.resize();\n }\n }\n\n ngOnDestroy() {\n if (this.ngModelSubscription) {\n this.ngModelSubscription.unsubscribe();\n }\n\n if (this.ngControlSubscription) {\n this.ngControlSubscription.unsubscribe();\n }\n\n super.ngOnDestroy();\n }\n}\n\n@NgModule({\n imports: [Textarea],\n exports: [Textarea]\n})\nexport class TextareaModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;AAGA,MAAM,KAAK,GAAG,CAAC,EAAE,EAAE,EAAE,KAAK;;;;;aAKb,EAAE,CAAC,gBAAgB,CAAC,CAAA;kBACf,EAAE,CAAC,qBAAqB,CAAC,CAAA;AAC5B,aAAA,EAAA,EAAE,CAAC,oBAAoB,CAAC,IAAI,EAAE,CAAC,oBAAoB,CAAC,CAAA;wBAC3C,EAAE,CAAC,uBAAuB,CAAC,CAAA;6BACtB,EAAE,CAAC,8BAA8B,CAAC,CAAA,QAAA,EAAW,EAAE,CAAC,8BAA8B,CAAC,CAAA,eAAA,EAAkB,EAAE,CAAC,8BAA8B,CAAC,CAAA,gBAAA,EAAmB,EAAE,CAAC,8BAA8B,CAAC,CAAgB,aAAA,EAAA,EAAE,CAC/N,8BAA8B,CACjC,CAAA;;qBAEgB,EAAE,CAAC,wBAAwB,CAAC,CAAA;;kBAE/B,EAAE,CAAC,iBAAiB,CAAC,CAAA;;;;oBAInB,EAAE,CAAC,+BAA+B,CAAC,CAAA;;;;oBAInC,EAAE,CAAC,6BAA6B,CAAC,CAAA;;;;oBAIjC,EAAE,CAAC,6BAA6B,CAAC,CAAA;kBACnC,EAAE,CAAC,4BAA4B,CAAC,CAAA;AACnC,aAAA,EAAA,EAAE,CAAC,2BAA2B,CAAC,CAAA,CAAA,EAAI,EAAE,CAAC,2BAA2B,CAAC,CAAI,CAAA,EAAA,EAAE,CAAC,2BAA2B,CAAC,CAAA;sBAC9F,EAAE,CAAC,4BAA4B,CAAC,CAAA;;;;oBAIlC,EAAE,CAAC,+BAA+B,CAAC,CAAA;;;;kBAIrC,EAAE,CAAC,4BAA4B,CAAC,CAAA;;;;kBAIhC,EAAE,CAAC,kCAAkC,CAAC,CAAA;;;;kBAItC,EAAE,CAAC,kCAAkC,CAAC,CAAA;;;;;kBAKtC,EA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EAAA,CAAR,QAAQ,CAAA,EAAA,CAAA;wGA0HR,cAAc,EAAA,CAAA;;2FAAd,cAAc,EAAA,UAAA,EAAA,CAAA;kBAJ1B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACN,OAAO,EAAE,CAAC,QAAQ,CAAC;oBACnB,OAAO,EAAE,CAAC,QAAQ;AACrB,iBAAA;;;ACnJD;;AAEG;;;;"}
@@ -2,10 +2,10 @@ import { trigger, transition, style, animate } from '@angular/animations';
2
2
  import * as i1 from '@angular/common';
3
3
  import { isPlatformBrowser, CommonModule } from '@angular/common';
4
4
  import * as i0 from '@angular/core';
5
- import { Injectable, input, EventEmitter, effect, forwardRef, numberAttribute, booleanAttribute, ViewChild, Output, Input, Inject, ViewEncapsulation, Component, signal, inject, ContentChildren, ContentChild, ChangeDetectionStrategy, NgModule } from '@angular/core';
5
+ import { Injectable, input, EventEmitter, forwardRef, numberAttribute, booleanAttribute, ViewChild, Output, Input, Inject, ViewEncapsulation, Component, signal, inject, effect, ContentChildren, ContentChild, ChangeDetectionStrategy, NgModule } from '@angular/core';
6
6
  import * as i2 from '@angular/router';
7
7
  import { RouterModule } from '@angular/router';
8
- import { isNotEmpty, nestedPosition, resolve, uuid, isEmpty, focus, isTouchDevice, isPrintableCharacter, findSingle, relativePosition, absolutePosition, appendChild, findLastIndex } from '@primeuix/utils';
8
+ import { nestedPosition, resolve, isNotEmpty, uuid, isEmpty, focus, isTouchDevice, isPrintableCharacter, findSingle, addStyle, absolutePosition, getOuterWidth, appendChild, findLastIndex } from '@primeuix/utils';
9
9
  import * as i4 from 'primeng/api';
10
10
  import { SharedModule, PrimeTemplate } from 'primeng/api';
11
11
  import { BaseComponent } from 'primeng/basecomponent';
@@ -133,11 +133,10 @@ const theme = ({ dt }) => `
133
133
  }
134
134
 
135
135
  .p-tieredmenu-separator {
136
- border-top: 1px solid ${dt('tieredmenu.separator.border.color')};
136
+ border-block-start: 1px solid ${dt('tieredmenu.separator.border.color')};
137
137
  }
138
138
 
139
139
  .p-tieredmenu-overlay {
140
- position: absolute;
141
140
  box-shadow: ${dt('tieredmenu.shadow')};
142
141
  }
143
142
 
@@ -149,46 +148,28 @@ const theme = ({ dt }) => `
149
148
  .p-tieredmenu-enter-active {
150
149
  transition: opacity 250ms;
151
150
  }
152
- .p-tieredmenu-mobile {
153
- position: relative;
154
- }
155
-
156
- .p-tieredmenu-mobile .p-tieredmenu-button {
157
- display: flex;
158
- }
159
151
 
160
- .p-tieredmenu-mobile .p-tieredmenu-root-list > .p-tieredmenu-item > .p-tieredmenu-item-content > .p-tieredmenu-item-link {
161
- padding: ${dt('tieredmenu.item.padding')};
162
- }
163
-
164
- .p-tieredmenu-mobile .p-tieredmenu-root-list .p-tieredmenu-separator {
165
- border-top: 1px solid ${dt('tieredmenu.separator.border.color')};
166
- }
167
-
168
- .p-tieredmenu-mobile .p-tieredmenu-root-list > .p-tieredmenu-item > .p-tieredmenu-item-content .p-tieredmenu-submenu-icon {
169
- margin-left: auto;
170
- transition: transform 0.2s;
152
+ .p-tieredmenu-mobile .p-tieredmenu-submenu {
153
+ position: static;
154
+ box-shadow: none;
155
+ border: 0 none;
156
+ padding-inline-start: ${dt('tieredmenu.submenu.mobile.indent')};
157
+ padding-inline-end: 0;
171
158
  }
172
159
 
173
- .p-tieredmenu-mobile .p-tieredmenu-root-list > .p-tieredmenu-item-active > .p-tieredmenu-item-content .p-tieredmenu-submenu-icon {
174
- transform: rotate(-90deg);
160
+ .p-tieredmenu-mobile .p-tieredmenu-submenu:dir(rtl) {
161
+ padding-inline-start: 0;
162
+ padding-inline-end: ${dt('tieredmenu.submenu.mobile.indent')};
175
163
  }
176
164
 
177
- .p-tieredmenu-mobile .p-tieredmenu-submenu .p-tieredmenu-submenu-icon {
165
+ .p-tieredmenu-mobile .p-tieredmenu-submenu-icon {
178
166
  transition: transform 0.2s;
179
167
  transform: rotate(90deg);
180
168
  }
181
169
 
182
- .p-tieredmenu-mobile .p-tieredmenu-item-active > .p-tieredmenu-item-content .p-tieredmenu-submenu-icon {
170
+ .p-tieredmenu-mobile .p-tieredmenu-item-active > .p-tieredmenu-item-content .p-tieredmenu-submenu-icon {
183
171
  transform: rotate(-90deg);
184
172
  }
185
-
186
- .p-tieredmenu-mobile .p-tieredmenu-submenu {
187
- position: static;
188
- box-shadow: none;
189
- border: 0 none;
190
- padding-left: ${dt('tieredmenu.submenu.mobile.indent')};
191
- }
192
173
  `;
193
174
  const inlineStyles = {
194
175
  submenu: ({ instance, processedItem }) => ({ display: instance.isItemActive(processedItem) ? 'flex' : 'none' })
@@ -223,10 +204,10 @@ class TieredMenuStyle extends BaseStyle {
223
204
  name = 'tieredmenu';
224
205
  theme = theme;
225
206
  classes = classes;
226
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: TieredMenuStyle, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
227
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: TieredMenuStyle });
207
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: TieredMenuStyle, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
208
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: TieredMenuStyle });
228
209
  }
229
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: TieredMenuStyle, decorators: [{
210
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: TieredMenuStyle, decorators: [{
230
211
  type: Injectable
231
212
  }] });
232
213
  /**
@@ -320,12 +301,6 @@ class TieredMenuSub extends BaseComponent {
320
301
  this.el = el;
321
302
  this.renderer = renderer;
322
303
  this.tieredMenu = tieredMenu;
323
- effect(() => {
324
- const path = this.activeItemPath();
325
- if (isNotEmpty(path)) {
326
- this.positionSubmenu();
327
- }
328
- });
329
304
  }
330
305
  positionSubmenu() {
331
306
  if (isPlatformBrowser(this.tieredMenu.platformId)) {
@@ -379,6 +354,7 @@ class TieredMenuSub extends BaseComponent {
379
354
  }
380
355
  isItemActive(processedItem) {
381
356
  if (this.activeItemPath()) {
357
+ this.positionSubmenu();
382
358
  return this.activeItemPath().some((path) => path.key === processedItem.key);
383
359
  }
384
360
  }
@@ -401,8 +377,8 @@ class TieredMenuSub extends BaseComponent {
401
377
  this.getItemProp(processedItem, 'command', { originalEvent: event, item: processedItem.item });
402
378
  this.itemClick.emit({ originalEvent: event, processedItem, isFocus: true });
403
379
  }
404
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: TieredMenuSub, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: forwardRef(() => TieredMenu) }], target: i0.ɵɵFactoryTarget.Component });
405
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.2.2", type: TieredMenuSub, isStandalone: true, selector: "p-tieredMenuSub, p-tieredmenusub", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: false, isRequired: false, transformFunction: null }, itemTemplate: { classPropertyName: "itemTemplate", publicName: "itemTemplate", isSignal: false, isRequired: false, transformFunction: null }, root: { classPropertyName: "root", publicName: "root", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, autoDisplay: { classPropertyName: "autoDisplay", publicName: "autoDisplay", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, autoZIndex: { classPropertyName: "autoZIndex", publicName: "autoZIndex", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, baseZIndex: { classPropertyName: "baseZIndex", publicName: "baseZIndex", isSignal: false, isRequired: false, transformFunction: numberAttribute }, popup: { classPropertyName: "popup", publicName: "popup", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, menuId: { classPropertyName: "menuId", publicName: "menuId", isSignal: false, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: false, isRequired: false, transformFunction: null }, ariaLabelledBy: { classPropertyName: "ariaLabelledBy", publicName: "ariaLabelledBy", isSignal: false, isRequired: false, transformFunction: null }, level: { classPropertyName: "level", publicName: "level", isSignal: false, isRequired: false, transformFunction: numberAttribute }, focusedItemId: { classPropertyName: "focusedItemId", publicName: "focusedItemId", isSignal: false, isRequired: false, transformFunction: null }, activeItemPath: { classPropertyName: "activeItemPath", publicName: "activeItemPath", isSignal: true, isRequired: false, transformFunction: null }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: false, isRequired: false, transformFunction: numberAttribute }, inlineStyles: { classPropertyName: "inlineStyles", publicName: "inlineStyles", isSignal: false, isRequired: false, transformFunction: null } }, outputs: { itemClick: "itemClick", itemMouseEnter: "itemMouseEnter", menuFocus: "menuFocus", menuBlur: "menuBlur", menuKeydown: "menuKeydown" }, viewQueries: [{ propertyName: "sublistViewChild", first: true, predicate: ["sublist"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: `
380
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: TieredMenuSub, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: forwardRef(() => TieredMenu) }], target: i0.ɵɵFactoryTarget.Component });
381
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.2.5", type: TieredMenuSub, isStandalone: true, selector: "p-tieredMenuSub, p-tieredmenusub", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: false, isRequired: false, transformFunction: null }, itemTemplate: { classPropertyName: "itemTemplate", publicName: "itemTemplate", isSignal: false, isRequired: false, transformFunction: null }, root: { classPropertyName: "root", publicName: "root", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, autoDisplay: { classPropertyName: "autoDisplay", publicName: "autoDisplay", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, autoZIndex: { classPropertyName: "autoZIndex", publicName: "autoZIndex", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, baseZIndex: { classPropertyName: "baseZIndex", publicName: "baseZIndex", isSignal: false, isRequired: false, transformFunction: numberAttribute }, popup: { classPropertyName: "popup", publicName: "popup", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, menuId: { classPropertyName: "menuId", publicName: "menuId", isSignal: false, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: false, isRequired: false, transformFunction: null }, ariaLabelledBy: { classPropertyName: "ariaLabelledBy", publicName: "ariaLabelledBy", isSignal: false, isRequired: false, transformFunction: null }, level: { classPropertyName: "level", publicName: "level", isSignal: false, isRequired: false, transformFunction: numberAttribute }, focusedItemId: { classPropertyName: "focusedItemId", publicName: "focusedItemId", isSignal: false, isRequired: false, transformFunction: null }, activeItemPath: { classPropertyName: "activeItemPath", publicName: "activeItemPath", isSignal: true, isRequired: false, transformFunction: null }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: false, isRequired: false, transformFunction: numberAttribute }, inlineStyles: { classPropertyName: "inlineStyles", publicName: "inlineStyles", isSignal: false, isRequired: false, transformFunction: null } }, outputs: { itemClick: "itemClick", itemMouseEnter: "itemMouseEnter", menuFocus: "menuFocus", menuBlur: "menuBlur", menuKeydown: "menuKeydown" }, viewQueries: [{ propertyName: "sublistViewChild", first: true, predicate: ["sublist"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: `
406
382
  <ul
407
383
  #sublist
408
384
  role="menu"
@@ -550,7 +526,7 @@ class TieredMenuSub extends BaseComponent {
550
526
  </ul>
551
527
  `, isInline: true, dependencies: [{ kind: "component", type: TieredMenuSub, selector: "p-tieredMenuSub, p-tieredmenusub", inputs: ["items", "itemTemplate", "root", "autoDisplay", "autoZIndex", "baseZIndex", "popup", "menuId", "ariaLabel", "ariaLabelledBy", "level", "focusedItemId", "activeItemPath", "tabindex", "inlineStyles"], outputs: ["itemClick", "itemMouseEnter", "menuFocus", "menuBlur", "menuKeydown"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: i2.RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "ariaCurrentWhenActive", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }, { kind: "directive", type: Ripple, selector: "[pRipple]" }, { kind: "ngmodule", type: TooltipModule }, { kind: "directive", type: i3.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "pTooltip", "tooltipDisabled", "tooltipOptions"] }, { kind: "component", type: AngleRightIcon, selector: "AngleRightIcon" }, { kind: "ngmodule", type: SharedModule }], encapsulation: i0.ViewEncapsulation.None });
552
528
  }
553
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: TieredMenuSub, decorators: [{
529
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: TieredMenuSub, decorators: [{
554
530
  type: Component,
555
531
  args: [{
556
532
  selector: 'p-tieredMenuSub, p-tieredmenusub',
@@ -1225,6 +1201,7 @@ class TieredMenu extends BaseComponent {
1225
1201
  this.container = event.element;
1226
1202
  this.moveOnTop();
1227
1203
  this.onShow.emit({});
1204
+ addStyle(this.containerViewChild.nativeElement, { position: 'absolute', top: 0 });
1228
1205
  this.appendOverlay();
1229
1206
  this.alignOverlay();
1230
1207
  this.bindOutsideClickListener();
@@ -1241,10 +1218,11 @@ class TieredMenu extends BaseComponent {
1241
1218
  }
1242
1219
  }
1243
1220
  alignOverlay() {
1244
- if (this.relativeAlign)
1245
- relativePosition(this.container, this.target);
1246
- else
1247
- absolutePosition(this.container, this.target);
1221
+ absolutePosition(this.container, this.target);
1222
+ const targetWidth = getOuterWidth(this.target);
1223
+ if (targetWidth > getOuterWidth(this.container)) {
1224
+ this.container.style.minWidth = getOuterWidth(this.target) + 'px';
1225
+ }
1248
1226
  }
1249
1227
  onOverlayAnimationEnd(event) {
1250
1228
  switch (event.toState) {
@@ -1452,8 +1430,8 @@ class TieredMenu extends BaseComponent {
1452
1430
  this.unbindMatchMediaListener();
1453
1431
  super.ngOnDestroy();
1454
1432
  }
1455
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: TieredMenu, deps: [{ token: i4.OverlayService }], target: i0.ɵɵFactoryTarget.Component });
1456
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "19.2.2", type: TieredMenu, isStandalone: true, selector: "p-tieredMenu, p-tieredmenu, p-tiered-menu", inputs: { model: "model", popup: ["popup", "popup", booleanAttribute], style: "style", styleClass: "styleClass", appendTo: "appendTo", breakpoint: "breakpoint", autoZIndex: ["autoZIndex", "autoZIndex", booleanAttribute], baseZIndex: ["baseZIndex", "baseZIndex", numberAttribute], autoDisplay: ["autoDisplay", "autoDisplay", booleanAttribute], showTransitionOptions: "showTransitionOptions", hideTransitionOptions: "hideTransitionOptions", id: "id", ariaLabel: "ariaLabel", ariaLabelledBy: "ariaLabelledBy", disabled: ["disabled", "disabled", booleanAttribute], tabindex: ["tabindex", "tabindex", numberAttribute] }, outputs: { onShow: "onShow", onHide: "onHide" }, providers: [TieredMenuStyle], queries: [{ propertyName: "submenuIconTemplate", first: true, predicate: ["submenuicon"] }, { propertyName: "itemTemplate", first: true, predicate: ["item"] }, { propertyName: "templates", predicate: PrimeTemplate }], viewQueries: [{ propertyName: "rootmenu", first: true, predicate: ["rootmenu"], descendants: true }, { propertyName: "containerViewChild", first: true, predicate: ["container"], descendants: true }], usesInheritance: true, ngImport: i0, template: `
1433
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: TieredMenu, deps: [{ token: i4.OverlayService }], target: i0.ɵɵFactoryTarget.Component });
1434
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "19.2.5", type: TieredMenu, isStandalone: true, selector: "p-tieredMenu, p-tieredmenu, p-tiered-menu", inputs: { model: "model", popup: ["popup", "popup", booleanAttribute], style: "style", styleClass: "styleClass", appendTo: "appendTo", breakpoint: "breakpoint", autoZIndex: ["autoZIndex", "autoZIndex", booleanAttribute], baseZIndex: ["baseZIndex", "baseZIndex", numberAttribute], autoDisplay: ["autoDisplay", "autoDisplay", booleanAttribute], showTransitionOptions: "showTransitionOptions", hideTransitionOptions: "hideTransitionOptions", id: "id", ariaLabel: "ariaLabel", ariaLabelledBy: "ariaLabelledBy", disabled: ["disabled", "disabled", booleanAttribute], tabindex: ["tabindex", "tabindex", numberAttribute] }, outputs: { onShow: "onShow", onHide: "onHide" }, providers: [TieredMenuStyle], queries: [{ propertyName: "submenuIconTemplate", first: true, predicate: ["submenuicon"] }, { propertyName: "itemTemplate", first: true, predicate: ["item"] }, { propertyName: "templates", predicate: PrimeTemplate }], viewQueries: [{ propertyName: "rootmenu", first: true, predicate: ["rootmenu"], descendants: true }, { propertyName: "containerViewChild", first: true, predicate: ["container"], descendants: true }], usesInheritance: true, ngImport: i0, template: `
1457
1435
  <div
1458
1436
  #container
1459
1437
  [attr.data-pc-section]="'root'"
@@ -1496,7 +1474,7 @@ class TieredMenu extends BaseComponent {
1496
1474
  </div>
1497
1475
  `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: TieredMenuSub, selector: "p-tieredMenuSub, p-tieredmenusub", inputs: ["items", "itemTemplate", "root", "autoDisplay", "autoZIndex", "baseZIndex", "popup", "menuId", "ariaLabel", "ariaLabelledBy", "level", "focusedItemId", "activeItemPath", "tabindex", "inlineStyles"], outputs: ["itemClick", "itemMouseEnter", "menuFocus", "menuBlur", "menuKeydown"] }, { kind: "ngmodule", type: RouterModule }, { kind: "ngmodule", type: TooltipModule }, { kind: "ngmodule", type: SharedModule }], animations: [trigger('overlayAnimation', [transition(':enter', [style({ opacity: 0, transform: 'scaleY(0.8)' }), animate('{{showTransitionParams}}')]), transition(':leave', [animate('{{hideTransitionParams}}', style({ opacity: 0 }))])])], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1498
1476
  }
1499
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: TieredMenu, decorators: [{
1477
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: TieredMenu, decorators: [{
1500
1478
  type: Component,
1501
1479
  args: [{
1502
1480
  selector: 'p-tieredMenu, p-tieredmenu, p-tiered-menu',
@@ -1608,11 +1586,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImpor
1608
1586
  args: [PrimeTemplate]
1609
1587
  }] } });
1610
1588
  class TieredMenuModule {
1611
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: TieredMenuModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1612
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.2", ngImport: i0, type: TieredMenuModule, imports: [TieredMenu, SharedModule], exports: [TieredMenu, SharedModule] });
1613
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: TieredMenuModule, imports: [TieredMenu, SharedModule, SharedModule] });
1589
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: TieredMenuModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1590
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.5", ngImport: i0, type: TieredMenuModule, imports: [TieredMenu, SharedModule], exports: [TieredMenu, SharedModule] });
1591
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: TieredMenuModule, imports: [TieredMenu, SharedModule, SharedModule] });
1614
1592
  }
1615
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: TieredMenuModule, decorators: [{
1593
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: TieredMenuModule, decorators: [{
1616
1594
  type: NgModule,
1617
1595
  args: [{
1618
1596
  imports: [TieredMenu, SharedModule],