primevue 3.30.0 → 3.30.2

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 (303) hide show
  1. package/README.md +4 -2
  2. package/accordion/Accordion.d.ts +6 -1
  3. package/accordion/Accordion.vue +2 -1
  4. package/accordion/accordion.cjs.js +5 -9
  5. package/accordion/accordion.cjs.min.js +1 -1
  6. package/accordion/accordion.esm.js +5 -9
  7. package/accordion/accordion.esm.min.js +1 -1
  8. package/accordion/accordion.js +6 -10
  9. package/accordion/accordion.min.js +1 -1
  10. package/accordiontab/AccordionTab.d.ts +1 -1
  11. package/autocomplete/AutoComplete.d.ts +1 -1
  12. package/avatar/Avatar.d.ts +1 -1
  13. package/badge/Badge.d.ts +1 -1
  14. package/basecomponent/BaseComponent.vue +12 -16
  15. package/basecomponent/basecomponent.cjs.js +18 -6
  16. package/basecomponent/basecomponent.cjs.min.js +1 -1
  17. package/basecomponent/basecomponent.esm.js +18 -6
  18. package/basecomponent/basecomponent.esm.min.js +1 -1
  19. package/basecomponent/basecomponent.js +18 -6
  20. package/basecomponent/basecomponent.min.js +1 -1
  21. package/basedirective/basedirective.cjs.js +8 -2
  22. package/basedirective/basedirective.cjs.min.js +1 -1
  23. package/basedirective/basedirective.esm.js +8 -2
  24. package/basedirective/basedirective.esm.min.js +1 -1
  25. package/basedirective/basedirective.js +8 -2
  26. package/basedirective/basedirective.min.js +1 -1
  27. package/blockui/BlockUI.d.ts +1 -1
  28. package/breadcrumb/Breadcrumb.d.ts +1 -1
  29. package/button/Button.d.ts +1 -1
  30. package/calendar/Calendar.d.ts +1 -1
  31. package/carousel/Carousel.d.ts +1 -1
  32. package/cascadeselect/CascadeSelect.d.ts +1 -1
  33. package/chart/Chart.d.ts +1 -1
  34. package/checkbox/Checkbox.d.ts +1 -1
  35. package/chip/Chip.d.ts +1 -1
  36. package/chips/Chips.d.ts +1 -1
  37. package/colorpicker/ColorPicker.d.ts +1 -1
  38. package/column/Column.d.ts +49 -1
  39. package/columngroup/ColumnGroup.d.ts +6 -1
  40. package/config/PrimeVue.d.ts +13 -6
  41. package/confirmdialog/ConfirmDialog.d.ts +1 -1
  42. package/confirmpopup/ConfirmPopup.d.ts +1 -1
  43. package/contextmenu/ContextMenu.d.ts +1 -1
  44. package/core/core.js +144 -103
  45. package/core/core.min.js +10 -10
  46. package/datatable/BaseDataTable.vue +7 -1
  47. package/datatable/BodyCell.vue +7 -4
  48. package/datatable/ColumnFilter.vue +43 -8
  49. package/datatable/DataTable.d.ts +31 -1
  50. package/datatable/FooterCell.vue +5 -2
  51. package/datatable/HeaderCell.vue +8 -3
  52. package/datatable/HeaderCheckbox.vue +5 -2
  53. package/datatable/RowCheckbox.vue +5 -2
  54. package/datatable/RowRadioButton.vue +5 -2
  55. package/datatable/TableBody.vue +33 -13
  56. package/datatable/TableFooter.vue +13 -4
  57. package/datatable/TableHeader.vue +16 -5
  58. package/datatable/datatable.cjs.js +221 -145
  59. package/datatable/datatable.cjs.min.js +1 -1
  60. package/datatable/datatable.esm.js +221 -145
  61. package/datatable/datatable.esm.min.js +1 -1
  62. package/datatable/datatable.js +222 -146
  63. package/datatable/datatable.min.js +1 -1
  64. package/dataview/BaseDataView.vue +1 -2
  65. package/dataview/DataView.d.ts +1 -1
  66. package/dataview/DataView.vue +3 -3
  67. package/dataview/dataview.cjs.js +5 -13
  68. package/dataview/dataview.cjs.min.js +1 -1
  69. package/dataview/dataview.esm.js +5 -13
  70. package/dataview/dataview.esm.min.js +1 -1
  71. package/dataview/dataview.js +5 -13
  72. package/dataview/dataview.min.js +1 -1
  73. package/dataviewlayoutoptions/DataViewLayoutOptions.d.ts +6 -1
  74. package/deferredcontent/DeferredContent.d.ts +1 -1
  75. package/dialog/Dialog.d.ts +1 -1
  76. package/dialog/Dialog.vue +13 -1
  77. package/dialog/dialog.cjs.js +6 -2
  78. package/dialog/dialog.cjs.min.js +1 -1
  79. package/dialog/dialog.esm.js +6 -2
  80. package/dialog/dialog.esm.min.js +1 -1
  81. package/dialog/dialog.js +6 -2
  82. package/dialog/dialog.min.js +1 -1
  83. package/divider/Divider.d.ts +1 -1
  84. package/dock/Dock.d.ts +5 -1
  85. package/dock/DockSub.vue +9 -8
  86. package/dock/dock.cjs.js +9 -8
  87. package/dock/dock.cjs.min.js +1 -1
  88. package/dock/dock.esm.js +9 -8
  89. package/dock/dock.esm.min.js +1 -1
  90. package/dock/dock.js +9 -8
  91. package/dock/dock.min.js +1 -1
  92. package/dropdown/Dropdown.d.ts +1 -1
  93. package/editor/Editor.d.ts +1 -1
  94. package/fieldset/Fieldset.d.ts +1 -1
  95. package/fileupload/FileUpload.d.ts +1 -1
  96. package/galleria/Galleria.d.ts +5 -1
  97. package/galleria/GalleriaContent.vue +16 -6
  98. package/galleria/GalleriaItem.vue +2 -1
  99. package/galleria/GalleriaThumbnails.vue +1 -0
  100. package/galleria/galleria.cjs.js +34 -17
  101. package/galleria/galleria.cjs.min.js +1 -1
  102. package/galleria/galleria.esm.js +35 -18
  103. package/galleria/galleria.esm.min.js +1 -1
  104. package/galleria/galleria.js +34 -17
  105. package/galleria/galleria.min.js +1 -1
  106. package/image/Image.d.ts +1 -1
  107. package/inlinemessage/InlineMessage.d.ts +1 -1
  108. package/inplace/Inplace.d.ts +1 -1
  109. package/inputnumber/InputNumber.d.ts +1 -1
  110. package/inputswitch/InputSwitch.d.ts +1 -1
  111. package/inputtext/InputText.d.ts +26 -1
  112. package/inputtext/InputText.vue +2 -1
  113. package/inputtext/inputtext.cjs.js +2 -1
  114. package/inputtext/inputtext.cjs.min.js +1 -1
  115. package/inputtext/inputtext.esm.js +2 -1
  116. package/inputtext/inputtext.esm.min.js +1 -1
  117. package/inputtext/inputtext.js +2 -1
  118. package/inputtext/inputtext.min.js +1 -1
  119. package/knob/Knob.d.ts +1 -1
  120. package/listbox/Listbox.d.ts +1 -1
  121. package/megamenu/MegaMenu.d.ts +1 -1
  122. package/menu/Menu.d.ts +1 -1
  123. package/menubar/Menubar.d.ts +1 -1
  124. package/message/BaseMessage.vue +2 -2
  125. package/message/Message.d.ts +11 -1
  126. package/message/Message.vue +3 -3
  127. package/message/message.cjs.js +8 -8
  128. package/message/message.cjs.min.js +1 -1
  129. package/message/message.esm.js +8 -8
  130. package/message/message.esm.min.js +1 -1
  131. package/message/message.js +8 -8
  132. package/message/message.min.js +1 -1
  133. package/multiselect/MultiSelect.d.ts +1 -1
  134. package/multiselect/MultiSelect.vue +3 -2
  135. package/multiselect/multiselect.cjs.js +5 -5
  136. package/multiselect/multiselect.cjs.min.js +1 -1
  137. package/multiselect/multiselect.esm.js +6 -6
  138. package/multiselect/multiselect.esm.min.js +1 -1
  139. package/multiselect/multiselect.js +5 -5
  140. package/multiselect/multiselect.min.js +1 -1
  141. package/orderlist/OrderList.d.ts +18 -1
  142. package/orderlist/OrderList.vue +7 -7
  143. package/orderlist/orderlist.cjs.js +19 -15
  144. package/orderlist/orderlist.cjs.min.js +1 -1
  145. package/orderlist/orderlist.esm.js +19 -15
  146. package/orderlist/orderlist.esm.min.js +1 -1
  147. package/orderlist/orderlist.js +19 -15
  148. package/orderlist/orderlist.min.js +1 -1
  149. package/organizationchart/OrganizationChart.d.ts +1 -1
  150. package/overlaypanel/OverlayPanel.d.ts +1 -1
  151. package/overlaypanel/OverlayPanel.vue +4 -2
  152. package/overlaypanel/overlaypanel.cjs.js +4 -2
  153. package/overlaypanel/overlaypanel.cjs.min.js +1 -1
  154. package/overlaypanel/overlaypanel.esm.js +4 -2
  155. package/overlaypanel/overlaypanel.esm.min.js +1 -1
  156. package/overlaypanel/overlaypanel.js +4 -2
  157. package/overlaypanel/overlaypanel.min.js +1 -1
  158. package/package.json +1 -1
  159. package/paginator/JumpToPageDropdown.vue +1 -1
  160. package/paginator/Paginator.d.ts +1 -26
  161. package/paginator/paginator.cjs.js +1 -1
  162. package/paginator/paginator.cjs.min.js +1 -1
  163. package/paginator/paginator.esm.js +1 -1
  164. package/paginator/paginator.esm.min.js +1 -1
  165. package/paginator/paginator.js +1 -1
  166. package/paginator/paginator.min.js +1 -1
  167. package/panel/Panel.d.ts +2 -2
  168. package/panelmenu/PanelMenu.d.ts +1 -1
  169. package/password/Password.d.ts +1 -1
  170. package/picklist/BasePickList.vue +4 -4
  171. package/picklist/PickList.d.ts +22 -1
  172. package/picklist/PickList.vue +19 -19
  173. package/picklist/picklist.cjs.js +59 -47
  174. package/picklist/picklist.cjs.min.js +1 -1
  175. package/picklist/picklist.esm.js +59 -47
  176. package/picklist/picklist.esm.min.js +1 -1
  177. package/picklist/picklist.js +59 -47
  178. package/picklist/picklist.min.js +1 -1
  179. package/progressbar/ProgressBar.d.ts +1 -1
  180. package/progressspinner/ProgressSpinner.d.ts +1 -1
  181. package/radiobutton/RadioButton.d.ts +1 -1
  182. package/rating/Rating.d.ts +1 -1
  183. package/row/Row.d.ts +1 -1
  184. package/scrollpanel/ScrollPanel.d.ts +1 -1
  185. package/scrollpanel/ScrollPanel.vue +2 -0
  186. package/scrollpanel/scrollpanel.cjs.js +6 -2
  187. package/scrollpanel/scrollpanel.cjs.min.js +1 -1
  188. package/scrollpanel/scrollpanel.esm.js +6 -2
  189. package/scrollpanel/scrollpanel.esm.min.js +1 -1
  190. package/scrollpanel/scrollpanel.js +6 -2
  191. package/scrollpanel/scrollpanel.min.js +1 -1
  192. package/scrolltop/ScrollTop.d.ts +1 -1
  193. package/selectbutton/SelectButton.d.ts +1 -1
  194. package/sidebar/Sidebar.d.ts +1 -1
  195. package/sidebar/Sidebar.vue +1 -1
  196. package/sidebar/sidebar.cjs.js +3 -1
  197. package/sidebar/sidebar.cjs.min.js +1 -1
  198. package/sidebar/sidebar.esm.js +3 -1
  199. package/sidebar/sidebar.esm.min.js +1 -1
  200. package/sidebar/sidebar.js +3 -1
  201. package/sidebar/sidebar.min.js +1 -1
  202. package/skeleton/Skeleton.d.ts +1 -1
  203. package/slider/Slider.d.ts +1 -1
  204. package/speeddial/SpeedDial.d.ts +1 -1
  205. package/splitbutton/SplitButton.d.ts +1 -1
  206. package/splitbutton/SplitButton.vue +2 -1
  207. package/splitbutton/splitbutton.cjs.js +4 -2
  208. package/splitbutton/splitbutton.cjs.min.js +1 -1
  209. package/splitbutton/splitbutton.esm.js +4 -2
  210. package/splitbutton/splitbutton.esm.min.js +1 -1
  211. package/splitbutton/splitbutton.js +4 -2
  212. package/splitbutton/splitbutton.min.js +1 -1
  213. package/splitter/Splitter.d.ts +1 -1
  214. package/splitterpanel/SplitterPanel.d.ts +1 -1
  215. package/steps/Steps.d.ts +1 -1
  216. package/tabmenu/TabMenu.d.ts +1 -1
  217. package/tabmenu/TabMenu.vue +71 -72
  218. package/tabmenu/tabmenu.cjs.js +67 -75
  219. package/tabmenu/tabmenu.cjs.min.js +1 -1
  220. package/tabmenu/tabmenu.esm.js +67 -75
  221. package/tabmenu/tabmenu.esm.min.js +1 -1
  222. package/tabmenu/tabmenu.js +67 -75
  223. package/tabmenu/tabmenu.min.js +1 -1
  224. package/tabpanel/TabPanel.d.ts +17 -1
  225. package/tabview/TabView.d.ts +6 -1
  226. package/tabview/TabView.vue +12 -4
  227. package/tabview/tabview.cjs.js +23 -16
  228. package/tabview/tabview.cjs.min.js +1 -1
  229. package/tabview/tabview.esm.js +23 -16
  230. package/tabview/tabview.esm.min.js +1 -1
  231. package/tabview/tabview.js +24 -17
  232. package/tabview/tabview.min.js +1 -1
  233. package/tag/Tag.d.ts +1 -1
  234. package/terminal/Terminal.d.ts +1 -1
  235. package/textarea/Textarea.d.ts +18 -1
  236. package/textarea/Textarea.vue +8 -1
  237. package/textarea/textarea.cjs.js +8 -1
  238. package/textarea/textarea.cjs.min.js +1 -1
  239. package/textarea/textarea.esm.js +8 -1
  240. package/textarea/textarea.esm.min.js +1 -1
  241. package/textarea/textarea.js +8 -1
  242. package/textarea/textarea.min.js +1 -1
  243. package/tieredmenu/TieredMenu.d.ts +1 -1
  244. package/timeline/Timeline.d.ts +20 -1
  245. package/timeline/Timeline.vue +14 -6
  246. package/timeline/timeline.cjs.js +17 -7
  247. package/timeline/timeline.cjs.min.js +1 -1
  248. package/timeline/timeline.esm.js +17 -7
  249. package/timeline/timeline.esm.min.js +1 -1
  250. package/timeline/timeline.js +17 -7
  251. package/timeline/timeline.min.js +1 -1
  252. package/toast/BaseToast.vue +2 -2
  253. package/toast/Toast.d.ts +11 -1
  254. package/toast/ToastMessage.vue +3 -2
  255. package/toast/toast.cjs.js +7 -6
  256. package/toast/toast.cjs.min.js +1 -1
  257. package/toast/toast.esm.js +7 -6
  258. package/toast/toast.esm.min.js +1 -1
  259. package/toast/toast.js +7 -6
  260. package/toast/toast.min.js +1 -1
  261. package/togglebutton/ToggleButton.d.ts +1 -1
  262. package/toolbar/Toolbar.d.ts +1 -1
  263. package/tree/Tree.d.ts +10 -1
  264. package/tree/TreeNode.vue +3 -1
  265. package/tree/tree.cjs.js +3 -1
  266. package/tree/tree.cjs.min.js +1 -1
  267. package/tree/tree.esm.js +3 -1
  268. package/tree/tree.esm.min.js +1 -1
  269. package/tree/tree.js +3 -1
  270. package/tree/tree.min.js +1 -1
  271. package/treeselect/TreeSelect.d.ts +1 -1
  272. package/treetable/BaseTreeTable.vue +9 -3
  273. package/treetable/BodyCell.vue +16 -5
  274. package/treetable/FooterCell.vue +5 -2
  275. package/treetable/HeaderCell.vue +11 -3
  276. package/treetable/TreeTable.d.ts +31 -9
  277. package/treetable/TreeTable.vue +13 -5
  278. package/treetable/TreeTableRow.vue +11 -2
  279. package/treetable/treetable.cjs.js +84 -55
  280. package/treetable/treetable.cjs.min.js +1 -1
  281. package/treetable/treetable.esm.js +85 -56
  282. package/treetable/treetable.esm.min.js +1 -1
  283. package/treetable/treetable.js +84 -55
  284. package/treetable/treetable.min.js +1 -1
  285. package/tristatecheckbox/TriStateCheckbox.d.ts +1 -1
  286. package/usestyle/UseStyle.d.ts +1 -0
  287. package/usestyle/usestyle.cjs.js +12 -10
  288. package/usestyle/usestyle.cjs.min.js +1 -1
  289. package/usestyle/usestyle.esm.js +12 -10
  290. package/usestyle/usestyle.esm.min.js +1 -1
  291. package/usestyle/usestyle.js +12 -10
  292. package/usestyle/usestyle.min.js +1 -1
  293. package/utils/Utils.d.ts +4 -3
  294. package/utils/utils.cjs.js +19 -5
  295. package/utils/utils.cjs.min.js +1 -1
  296. package/utils/utils.esm.js +19 -5
  297. package/utils/utils.esm.min.js +1 -1
  298. package/utils/utils.js +19 -5
  299. package/utils/utils.min.js +1 -1
  300. package/vetur-attributes.json +8 -0
  301. package/vetur-tags.json +2 -0
  302. package/virtualscroller/VirtualScroller.d.ts +1 -1
  303. package/web-types.json +21 -1
@@ -17,7 +17,7 @@ import { DropdownPassThroughOptionType } from '../dropdown';
17
17
  import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
18
18
  import { VirtualScrollerLoaderOptions } from '../virtualscroller';
19
19
 
20
- export declare type ColumnPassThroughOptionType = ColumnPassThroughAttributes | ((options: ColumnPassThroughMethodOptions) => ColumnPassThroughAttributes) | null | undefined;
20
+ export declare type ColumnPassThroughOptionType = ColumnPassThroughAttributes | ((options: ColumnPassThroughMethodOptions) => ColumnPassThroughAttributes | string) | string | null | undefined;
21
21
 
22
22
  /**
23
23
  * Custom passthrough(pt) option method.
@@ -141,6 +141,10 @@ export interface ColumnPassThroughOptions {
141
141
  * Uses to pass attributes to the filter menu button's DOM element.
142
142
  */
143
143
  filterMenuButton?: ColumnPassThroughOptionType;
144
+ /**
145
+ * Uses to pass attributes to the filter menu icon's DOM element.
146
+ */
147
+ filterMenuIcon?: ColumnPassThroughOptionType;
144
148
  /**
145
149
  * Uses to pass attributes to the header filter clear button's DOM element.
146
150
  */
@@ -594,6 +598,50 @@ export interface ColumnContext {
594
598
  * @defaultValue false
595
599
  */
596
600
  disabled: boolean;
601
+ /**
602
+ * Current sort state of the column as a boolean.
603
+ * @defaultValue false
604
+ */
605
+ sorted: boolean;
606
+ /**
607
+ * Current frozen state of the column as a boolean.
608
+ * @defaultValue false
609
+ */
610
+ frozen: boolean;
611
+ /**
612
+ * Current resizable state of the column as a boolean.
613
+ * @defaultValue false
614
+ */
615
+ resizable: boolean;
616
+ /**
617
+ * Current size state of the table.
618
+ */
619
+ size: string;
620
+ /**
621
+ * Current gridlines state of the table as a boolean.
622
+ * @defaultValue false
623
+ */
624
+ showGridlines: boolean;
625
+ /**
626
+ * Current highlighted state of the filter row item as a boolean.
627
+ * @defaultValue false
628
+ */
629
+ highlighted: boolean;
630
+ /**
631
+ * Current hidden state of the filter clear button of a column as a boolean.
632
+ * @defaultValue false
633
+ */
634
+ hidden: boolean;
635
+ /**
636
+ * Current visible state of the filter menu of a column as a boolean.
637
+ * @defaultValue false
638
+ */
639
+ overlayVisible: boolean;
640
+ /**
641
+ * Current active state of the filter menu of a column as a boolean.
642
+ * @defaultValue false
643
+ */
644
+ active: boolean;
597
645
  }
598
646
 
599
647
  /**
@@ -9,7 +9,7 @@ import { ComponentHooks } from '../basecomponent';
9
9
  import { DataTablePassThroughOptions } from '../datatable';
10
10
  import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
11
11
 
12
- export declare type ColumnGroupPassThroughOptionType = ColumnGroupPassThroughAttributes | ((options: ColumnGroupPassThroughMethodOptions) => ColumnGroupPassThroughAttributes) | null | undefined;
12
+ export declare type ColumnGroupPassThroughOptionType = ColumnGroupPassThroughAttributes | ((options: ColumnGroupPassThroughMethodOptions) => ColumnGroupPassThroughAttributes | string) | string | null | undefined;
13
13
 
14
14
  /**
15
15
  * Custom passthrough(pt) option method.
@@ -72,6 +72,11 @@ export interface ColumnGroupContext {
72
72
  * Current type of the column group.
73
73
  */
74
74
  type: string;
75
+ /**
76
+ * Current scrollable state of column group as a boolean.
77
+ * @defaultValue false
78
+ */
79
+ scrollable: boolean;
75
80
  }
76
81
 
77
82
  /**
@@ -88,7 +88,7 @@ import { TreeTablePassThroughOptions } from '../treetable';
88
88
  import { DefaultPTOptions } from '../ts-helpers';
89
89
  import { VirtualScrollerPassThroughOptions } from '../virtualscroller';
90
90
 
91
- interface PrimeVueConfiguration {
91
+ export interface PrimeVueConfiguration {
92
92
  ripple?: boolean;
93
93
  inputStyle?: string;
94
94
  locale?: PrimeVueLocaleOptions;
@@ -98,14 +98,14 @@ interface PrimeVueConfiguration {
98
98
  unstyled?: boolean;
99
99
  }
100
100
 
101
- interface PrimeVueZIndexOptions {
101
+ export interface PrimeVueZIndexOptions {
102
102
  modal?: number;
103
103
  overlay?: number;
104
104
  menu?: number;
105
105
  tooltip?: number;
106
106
  }
107
107
 
108
- interface PrimeVuePTOptions {
108
+ export interface PrimeVuePTOptions {
109
109
  accordion?: DefaultPTOptions<AccordionPassThroughOptions>;
110
110
  accordiontab?: DefaultPTOptions<AccordionTabPassThroughOptions>;
111
111
  autocomplete?: DefaultPTOptions<AutoCompletePassThroughOptions>;
@@ -198,7 +198,7 @@ interface PrimeVuePTOptions {
198
198
  };
199
199
  }
200
200
 
201
- interface PrimeVueLocaleAriaOptions {
201
+ export interface PrimeVueLocaleAriaOptions {
202
202
  trueLabel?: string;
203
203
  falseLabel?: string;
204
204
  nullLabel?: string;
@@ -249,7 +249,7 @@ interface PrimeVueLocaleAriaOptions {
249
249
  rotateLeft?: string;
250
250
  }
251
251
 
252
- interface PrimeVueLocaleOptions {
252
+ export interface PrimeVueLocaleOptions {
253
253
  startsWith?: string;
254
254
  contains?: string;
255
255
  notContains?: string;
@@ -317,7 +317,12 @@ interface PrimeVueLocaleOptions {
317
317
  aria?: PrimeVueLocaleAriaOptions;
318
318
  }
319
319
 
320
- export declare function usePrimeVue(): { config: PrimeVueConfiguration };
320
+ export type PrimeVueChangeTheme = (currentTheme: string, newTheme: string, linkElementId: string, callback?: Function) => void;
321
+
322
+ export declare function usePrimeVue(): {
323
+ config: PrimeVueConfiguration;
324
+ changeTheme: PrimeVueChangeTheme;
325
+ };
321
326
 
322
327
  declare const plugin: Plugin;
323
328
  export default plugin;
@@ -326,6 +331,7 @@ declare module 'vue/types/vue' {
326
331
  interface Vue {
327
332
  $primevue: {
328
333
  config: PrimeVueConfiguration;
334
+ changeTheme: PrimeVueChangeTheme;
329
335
  };
330
336
  }
331
337
  }
@@ -334,6 +340,7 @@ declare module '@vue/runtime-core' {
334
340
  interface ComponentCustomProperties {
335
341
  $primevue: {
336
342
  config: PrimeVueConfiguration;
343
+ changeTheme: PrimeVueChangeTheme;
337
344
  };
338
345
  }
339
346
  }
@@ -13,7 +13,7 @@ import { ButtonPassThroughOptions } from '../button';
13
13
  import { ConfirmationOptions } from '../confirmationoptions';
14
14
  import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
15
15
 
16
- export declare type ConfirmDialogPassThroughOptionType = ConfirmDialogPassThroughAttributes | ((options: ConfirmDialogPassThroughMethodOptions) => ConfirmDialogPassThroughAttributes) | null | undefined;
16
+ export declare type ConfirmDialogPassThroughOptionType = ConfirmDialogPassThroughAttributes | ((options: ConfirmDialogPassThroughMethodOptions) => ConfirmDialogPassThroughAttributes | string) | string | null | undefined;
17
17
 
18
18
  /**
19
19
  * Custom passthrough(pt) option method.
@@ -13,7 +13,7 @@ import { ButtonPassThroughOptions } from '../button';
13
13
  import { ConfirmationOptions } from '../confirmationoptions';
14
14
  import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
15
15
 
16
- export declare type ConfirmPopupPassThroughOptionType = ConfirmPopupPassThroughAttributes | ((options: ConfirmPopupPassThroughMethodOptions) => ConfirmPopupPassThroughAttributes) | null | undefined;
16
+ export declare type ConfirmPopupPassThroughOptionType = ConfirmPopupPassThroughAttributes | ((options: ConfirmPopupPassThroughMethodOptions) => ConfirmPopupPassThroughAttributes | string) | string | null | undefined;
17
17
 
18
18
  /**
19
19
  * Custom passthrough(pt) option method.
@@ -13,7 +13,7 @@ import { ComponentHooks } from '../basecomponent';
13
13
  import { MenuItem } from '../menuitem';
14
14
  import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
15
15
 
16
- export declare type ContextMenuPassThroughOptionType = ContextMenuPassThroughAttributes | ((options: ContextMenuPassThroughMethodOptions) => ContextMenuPassThroughAttributes) | null | undefined;
16
+ export declare type ContextMenuPassThroughOptionType = ContextMenuPassThroughAttributes | ((options: ContextMenuPassThroughMethodOptions) => ContextMenuPassThroughAttributes | string) | string | null | undefined;
17
17
 
18
18
  /**
19
19
  * Custom passthrough(pt) option method.
package/core/core.js CHANGED
@@ -866,10 +866,18 @@ this.primevue.utils = (function (exports) {
866
866
  },
867
867
  toFlatCase: function toFlatCase(str) {
868
868
  // convert snake, kebab, camel and pascal cases to flat case
869
- return this.isNotEmpty(str) ? str.replace(/(-|_)/g, '').toLowerCase() : str;
869
+ return this.isString(str) ? str.replace(/(-|_)/g, '').toLowerCase() : str;
870
+ },
871
+ toKebabCase: function toKebabCase(str) {
872
+ // convert snake, camel and pascal cases to kebab case
873
+ return this.isString(str) ? str.replace(/(_)/g, '-').replace(/[A-Z]/g, function (c, i) {
874
+ return i === 0 ? c : '-' + c.toLowerCase();
875
+ }).toLowerCase() : str;
870
876
  },
871
877
  toCapitalCase: function toCapitalCase(str) {
872
- return this.isNotEmpty(str) ? str[0].toUpperCase() + str.slice(1) : str;
878
+ return this.isString(str, {
879
+ empty: false
880
+ }) ? str[0].toUpperCase() + str.slice(1) : str;
873
881
  },
874
882
  isEmpty: function isEmpty(value) {
875
883
  return value === null || value === undefined || value === '' || Array.isArray(value) && value.length === 0 || !(value instanceof Date) && _typeof(value) === 'object' && Object.keys(value).length === 0;
@@ -881,13 +889,19 @@ this.primevue.utils = (function (exports) {
881
889
  return !!(value && value.constructor && value.call && value.apply);
882
890
  },
883
891
  isObject: function isObject(value) {
884
- return value !== null && value instanceof Object && value.constructor === Object;
892
+ var empty = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
893
+ return value instanceof Object && value.constructor === Object && (empty || Object.keys(value).length !== 0);
885
894
  },
886
895
  isDate: function isDate(value) {
887
- return value !== null && value instanceof Date && value.constructor === Date;
896
+ return value instanceof Date && value.constructor === Date;
888
897
  },
889
898
  isArray: function isArray(value) {
890
- return value !== null && Array.isArray(value);
899
+ var empty = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
900
+ return Array.isArray(value) && (empty || value.length !== 0);
901
+ },
902
+ isString: function isString(value) {
903
+ var empty = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
904
+ return typeof value === 'string' && (empty || value !== '');
891
905
  },
892
906
  isPrintableCharacter: function isPrintableCharacter() {
893
907
  var _char = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
@@ -1698,6 +1712,85 @@ this.primevue.config = (function (exports, api, vue) {
1698
1712
 
1699
1713
  })({}, primevue.api, Vue);
1700
1714
 
1715
+ this.primevue = this.primevue || {};
1716
+ this.primevue.usestyle = (function (exports, utils, vue) {
1717
+ 'use strict';
1718
+
1719
+ /*
1720
+ * Ported from useStyleTag in @vueuse/core
1721
+ * https://github.com/vueuse
1722
+ */
1723
+ function tryOnMounted(fn) {
1724
+ var sync = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
1725
+ if (vue.getCurrentInstance()) vue.onMounted(fn);else if (sync) fn();else vue.nextTick(fn);
1726
+ }
1727
+ var _id = 0;
1728
+ function useStyle(css) {
1729
+ var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
1730
+ var isLoaded = vue.ref(false);
1731
+ var cssRef = vue.ref(css);
1732
+ var styleRef = vue.ref(null);
1733
+ var defaultDocument = utils.DomHandler.isClient() ? window.document : undefined;
1734
+ var _options$document = options.document,
1735
+ document = _options$document === void 0 ? defaultDocument : _options$document,
1736
+ _options$immediate = options.immediate,
1737
+ immediate = _options$immediate === void 0 ? true : _options$immediate,
1738
+ _options$manual = options.manual,
1739
+ manual = _options$manual === void 0 ? false : _options$manual,
1740
+ _options$name = options.name,
1741
+ name = _options$name === void 0 ? "style_".concat(++_id) : _options$name,
1742
+ _options$id = options.id,
1743
+ id = _options$id === void 0 ? undefined : _options$id,
1744
+ _options$media = options.media,
1745
+ media = _options$media === void 0 ? undefined : _options$media;
1746
+ var stop = function stop() {};
1747
+ var load = function load() {
1748
+ if (!document) return;
1749
+ styleRef.value = document.querySelector("style[data-primevue-style-id=\"".concat(name, "\"]")) || document.getElementById(id) || document.createElement('style');
1750
+ if (!styleRef.value.isConnected) {
1751
+ styleRef.value.type = 'text/css';
1752
+ id && (styleRef.value.id = id);
1753
+ media && (styleRef.value.media = media);
1754
+ document.head.appendChild(styleRef.value);
1755
+ name && styleRef.value.setAttribute('data-primevue-style-id', name);
1756
+ }
1757
+ if (isLoaded.value) return;
1758
+ stop = vue.watch(cssRef, function (value) {
1759
+ styleRef.value.textContent = value;
1760
+ }, {
1761
+ immediate: true
1762
+ });
1763
+ isLoaded.value = true;
1764
+ };
1765
+ var unload = function unload() {
1766
+ if (!document || !isLoaded.value) return;
1767
+ stop();
1768
+ utils.DomHandler.isExist(styleRef.value) && document.head.removeChild(styleRef.value);
1769
+ isLoaded.value = false;
1770
+ };
1771
+ if (immediate && !manual) tryOnMounted(load);
1772
+
1773
+ /*if (!manual)
1774
+ tryOnScopeDispose(unload)*/
1775
+
1776
+ return {
1777
+ id: id,
1778
+ name: name,
1779
+ css: cssRef,
1780
+ unload: unload,
1781
+ load: load,
1782
+ isLoaded: vue.readonly(isLoaded)
1783
+ };
1784
+ }
1785
+
1786
+ exports.useStyle = useStyle;
1787
+
1788
+ Object.defineProperty(exports, '__esModule', { value: true });
1789
+
1790
+ return exports;
1791
+
1792
+ })({}, primevue.utils, Vue);
1793
+
1701
1794
  this.primevue = this.primevue || {};
1702
1795
  this.primevue.base = (function (exports, usestyle) {
1703
1796
  'use strict';
@@ -1756,9 +1849,15 @@ this.primevue.basedirective = (function (base, utils, vue) {
1756
1849
  var key = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
1757
1850
  var params = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
1758
1851
  var searchInDefaultPT = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : true;
1852
+ var getValue = function getValue() {
1853
+ var value = BaseDirective._getOptionValue.apply(BaseDirective, arguments);
1854
+ return utils.ObjectUtils.isString(value) || utils.ObjectUtils.isArray(value) ? {
1855
+ "class": value
1856
+ } : value;
1857
+ };
1759
1858
  var datasetPrefix = 'data-pc-';
1760
- var self = BaseDirective._getOptionValue(obj, key, params);
1761
- var globalPT = searchInDefaultPT ? BaseDirective._getOptionValue(instance.defaultPT, key, params) : undefined;
1859
+ var self = getValue(obj, key, params);
1860
+ var globalPT = searchInDefaultPT ? getValue(instance.defaultPT, key, params) : undefined;
1762
1861
  var merged = vue.mergeProps(self, globalPT, _objectSpread(_objectSpread({}, key === 'root' && _defineProperty({}, "".concat(datasetPrefix, "name"), utils.ObjectUtils.toFlatCase(instance.$name))), {}, _defineProperty({}, "".concat(datasetPrefix, "section"), utils.ObjectUtils.toFlatCase(key))));
1763
1862
  return merged;
1764
1863
  },
@@ -2055,11 +2154,11 @@ this.primevue.basecomponent = (function (base, usestyle, utils, vue) {
2055
2154
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
2056
2155
  function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
2057
2156
  var inlineStyles = {};
2058
- var buttonStyles = "\n.p-button {\n margin: 0;\n display: inline-flex;\n cursor: pointer;\n user-select: none;\n align-items: center;\n vertical-align: bottom;\n text-align: center;\n overflow: hidden;\n position: relative;\n}\n\n.p-button-label {\n flex: 1 1 auto;\n}\n\n.p-button-icon-right {\n order: 1;\n}\n\n.p-button:disabled {\n cursor: default;\n}\n\n.p-button-icon-only {\n justify-content: center;\n}\n\n.p-button-icon-only .p-button-label {\n visibility: hidden;\n width: 0;\n flex: 0 0 auto;\n}\n\n.p-button-vertical {\n flex-direction: column;\n}\n\n.p-button-icon-bottom {\n order: 2;\n}\n\n.p-buttonset .p-button {\n margin: 0;\n}\n\n.p-buttonset .p-button:not(:last-child) {\n border-right: 0 none;\n}\n\n.p-buttonset .p-button:not(:first-of-type):not(:last-of-type) {\n border-radius: 0;\n}\n\n.p-buttonset .p-button:first-of-type {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}\n\n.p-buttonset .p-button:last-of-type {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n}\n\n.p-buttonset .p-button:focus {\n position: relative;\n z-index: 1;\n}\n";
2157
+ var buttonStyles = "\n.p-button {\n display: inline-flex;\n cursor: pointer;\n user-select: none;\n align-items: center;\n vertical-align: bottom;\n text-align: center;\n overflow: hidden;\n position: relative;\n}\n\n.p-button-label {\n flex: 1 1 auto;\n}\n\n.p-button-icon-right {\n order: 1;\n}\n\n.p-button:disabled {\n cursor: default;\n}\n\n.p-button-icon-only {\n justify-content: center;\n}\n\n.p-button-icon-only .p-button-label {\n visibility: hidden;\n width: 0;\n flex: 0 0 auto;\n}\n\n.p-button-vertical {\n flex-direction: column;\n}\n\n.p-button-icon-bottom {\n order: 2;\n}\n\n.p-buttonset .p-button {\n margin: 0;\n}\n\n.p-buttonset .p-button:not(:last-child) {\n border-right: 0 none;\n}\n\n.p-buttonset .p-button:not(:first-of-type):not(:last-of-type) {\n border-radius: 0;\n}\n\n.p-buttonset .p-button:first-of-type {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}\n\n.p-buttonset .p-button:last-of-type {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n}\n\n.p-buttonset .p-button:focus {\n position: relative;\n z-index: 1;\n}\n";
2059
2158
  var checkboxStyles = "\n.p-checkbox {\n display: inline-flex;\n cursor: pointer;\n user-select: none;\n vertical-align: bottom;\n position: relative;\n}\n\n.p-checkbox.p-checkbox-disabled {\n cursor: default;\n}\n\n.p-checkbox-box {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n";
2060
- var inputTextStyles = "\n.p-inputtext {\n margin: 0;\n}\n\n.p-fluid .p-inputtext {\n width: 100%;\n}\n\n/* InputGroup */\n.p-inputgroup {\n display: flex;\n align-items: stretch;\n width: 100%;\n}\n\n.p-inputgroup-addon {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.p-inputgroup .p-float-label {\n display: flex;\n align-items: stretch;\n width: 100%;\n}\n\n.p-inputgroup .p-inputtext,\n.p-fluid .p-inputgroup .p-inputtext,\n.p-inputgroup .p-inputwrapper,\n.p-fluid .p-inputgroup .p-input {\n flex: 1 1 auto;\n width: 1%;\n}\n\n/* Floating Label */\n.p-float-label {\n display: block;\n position: relative;\n}\n\n.p-float-label label {\n position: absolute;\n pointer-events: none;\n top: 50%;\n margin-top: -.5rem;\n transition-property: all;\n transition-timing-function: ease;\n line-height: 1;\n}\n\n.p-float-label textarea ~ label {\n top: 1rem;\n}\n\n.p-float-label input:focus ~ label,\n.p-float-label input.p-filled ~ label,\n.p-float-label textarea:focus ~ label,\n.p-float-label textarea.p-filled ~ label,\n.p-float-label .p-inputwrapper-focus ~ label,\n.p-float-label .p-inputwrapper-filled ~ label {\n top: -.75rem;\n font-size: 12px;\n}\n\n.p-float-label .input:-webkit-autofill ~ label {\n top: -20px;\n font-size: 12px;\n}\n\n.p-float-label .p-placeholder,\n.p-float-label input::placeholder,\n.p-float-label .p-inputtext::placeholder {\n opacity: 0;\n transition-property: all;\n transition-timing-function: ease;\n}\n\n.p-float-label .p-focus .p-placeholder,\n.p-float-label input:focus::placeholder,\n.p-float-label .p-inputtext:focus::placeholder {\n opacity: 1;\n transition-property: all;\n transition-timing-function: ease;\n}\n\n.p-input-icon-left,\n.p-input-icon-right {\n position: relative;\n display: inline-block;\n}\n\n.p-input-icon-left > i,\n.p-input-icon-left > svg,\n.p-input-icon-right > i,\n.p-input-icon-right > svg {\n position: absolute;\n top: 50%;\n margin-top: -.5rem;\n}\n\n.p-fluid .p-input-icon-left,\n.p-fluid .p-input-icon-right {\n display: block;\n width: 100%;\n}\n";
2159
+ var inputTextStyles = "\n.p-fluid .p-inputtext {\n width: 100%;\n}\n\n/* InputGroup */\n.p-inputgroup {\n display: flex;\n align-items: stretch;\n width: 100%;\n}\n\n.p-inputgroup-addon {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.p-inputgroup .p-float-label {\n display: flex;\n align-items: stretch;\n width: 100%;\n}\n\n.p-inputgroup .p-inputtext,\n.p-fluid .p-inputgroup .p-inputtext,\n.p-inputgroup .p-inputwrapper,\n.p-fluid .p-inputgroup .p-input {\n flex: 1 1 auto;\n width: 1%;\n}\n\n/* Floating Label */\n.p-float-label {\n display: block;\n position: relative;\n}\n\n.p-float-label label {\n position: absolute;\n pointer-events: none;\n top: 50%;\n margin-top: -.5rem;\n transition-property: all;\n transition-timing-function: ease;\n line-height: 1;\n}\n\n.p-float-label textarea ~ label {\n top: 1rem;\n}\n\n.p-float-label input:focus ~ label,\n.p-float-label input.p-filled ~ label,\n.p-float-label textarea:focus ~ label,\n.p-float-label textarea.p-filled ~ label,\n.p-float-label .p-inputwrapper-focus ~ label,\n.p-float-label .p-inputwrapper-filled ~ label {\n top: -.75rem;\n font-size: 12px;\n}\n\n.p-float-label .input:-webkit-autofill ~ label {\n top: -20px;\n font-size: 12px;\n}\n\n.p-float-label .p-placeholder,\n.p-float-label input::placeholder,\n.p-float-label .p-inputtext::placeholder {\n opacity: 0;\n transition-property: all;\n transition-timing-function: ease;\n}\n\n.p-float-label .p-focus .p-placeholder,\n.p-float-label input:focus::placeholder,\n.p-float-label .p-inputtext:focus::placeholder {\n opacity: 1;\n transition-property: all;\n transition-timing-function: ease;\n}\n\n.p-input-icon-left,\n.p-input-icon-right {\n position: relative;\n display: inline-block;\n}\n\n.p-input-icon-left > i,\n.p-input-icon-left > svg,\n.p-input-icon-right > i,\n.p-input-icon-right > svg {\n position: absolute;\n top: 50%;\n margin-top: -.5rem;\n}\n\n.p-fluid .p-input-icon-left,\n.p-fluid .p-input-icon-right {\n display: block;\n width: 100%;\n}\n";
2061
2160
  var radioButtonStyles = "\n.p-radiobutton {\n position: relative;\n display: inline-flex;\n cursor: pointer;\n user-select: none;\n vertical-align: bottom;\n}\n\n.p-radiobutton.p-radiobutton-disabled {\n cursor: default;\n}\n\n.p-radiobutton-box {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.p-radiobutton-icon {\n -webkit-backface-visibility: hidden;\n backface-visibility: hidden;\n transform: translateZ(0) scale(.1);\n border-radius: 50%;\n visibility: hidden;\n}\n\n.p-radiobutton-box.p-highlight .p-radiobutton-icon {\n transform: translateZ(0) scale(1.0, 1.0);\n visibility: visible;\n}\n";
2062
- var styles = "\n.p-component, .p-component * {\n box-sizing: border-box;\n}\n\n.p-hidden-space {\n visibility: hidden;\n}\n\n.p-reset {\n margin: 0;\n padding: 0;\n border: 0;\n outline: 0;\n text-decoration: none;\n font-size: 100%;\n list-style: none;\n}\n\n.p-disabled, .p-disabled * {\n cursor: default !important;\n pointer-events: none;\n user-select: none;\n}\n\n.p-component-overlay {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n}\n\n.p-unselectable-text {\n user-select: none;\n}\n\n.p-sr-only {\n border: 0;\n clip: rect(1px, 1px, 1px, 1px);\n clip-path: inset(50%);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n width: 1px;\n word-wrap: normal !important;\n}\n\ninput[type=\"button\"],\ninput[type=\"submit\"],\ninput[type=\"reset\"],\ninput[type=\"file\"]::-webkit-file-upload-button,\nbutton { /* @todo */\n border-radius: 0;\n}\n\n.p-link {\n\ttext-align: left;\n\tbackground-color: transparent;\n\tmargin: 0;\n\tpadding: 0;\n\tborder: none;\n cursor: pointer;\n user-select: none;\n}\n\n.p-link:disabled {\n\tcursor: default;\n}\n\n/* Non vue overlay animations */\n.p-connected-overlay {\n opacity: 0;\n transform: scaleY(0.8);\n transition: transform .12s cubic-bezier(0, 0, 0.2, 1), opacity .12s cubic-bezier(0, 0, 0.2, 1);\n}\n\n.p-connected-overlay-visible {\n opacity: 1;\n transform: scaleY(1);\n}\n\n.p-connected-overlay-hidden {\n opacity: 0;\n transform: scaleY(1);\n transition: opacity .1s linear;\n}\n\n/* Vue based overlay animations */\n.p-connected-overlay-enter-from {\n opacity: 0;\n transform: scaleY(0.8);\n}\n\n.p-connected-overlay-leave-to {\n opacity: 0;\n}\n\n.p-connected-overlay-enter-active {\n transition: transform .12s cubic-bezier(0, 0, 0.2, 1), opacity .12s cubic-bezier(0, 0, 0.2, 1);\n}\n\n.p-connected-overlay-leave-active {\n transition: opacity .1s linear;\n}\n\n/* Toggleable Content */\n.p-toggleable-content-enter-from,\n.p-toggleable-content-leave-to {\n max-height: 0;\n}\n\n.p-toggleable-content-enter-to,\n.p-toggleable-content-leave-from {\n max-height: 1000px;\n}\n\n.p-toggleable-content-leave-active {\n overflow: hidden;\n transition: max-height 0.45s cubic-bezier(0, 1, 0, 1);\n}\n\n.p-toggleable-content-enter-active {\n overflow: hidden;\n transition: max-height 1s ease-in-out;\n}\n".concat(buttonStyles, "\n").concat(checkboxStyles, "\n").concat(inputTextStyles, "\n").concat(radioButtonStyles, "\n");
2161
+ var styles = "\n.p-component, .p-component * {\n box-sizing: border-box;\n}\n\n.p-hidden-space {\n visibility: hidden;\n}\n\n.p-reset {\n margin: 0;\n padding: 0;\n border: 0;\n outline: 0;\n text-decoration: none;\n font-size: 100%;\n list-style: none;\n}\n\n.p-disabled, .p-disabled * {\n cursor: default !important;\n pointer-events: none;\n user-select: none;\n}\n\n.p-component-overlay {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n}\n\n.p-unselectable-text {\n user-select: none;\n}\n\n.p-sr-only {\n border: 0;\n clip: rect(1px, 1px, 1px, 1px);\n clip-path: inset(50%);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n width: 1px;\n word-wrap: normal !important;\n}\n\n.p-link {\n\ttext-align: left;\n\tbackground-color: transparent;\n\tmargin: 0;\n\tpadding: 0;\n\tborder: none;\n cursor: pointer;\n user-select: none;\n}\n\n.p-link:disabled {\n\tcursor: default;\n}\n\n/* Non vue overlay animations */\n.p-connected-overlay {\n opacity: 0;\n transform: scaleY(0.8);\n transition: transform .12s cubic-bezier(0, 0, 0.2, 1), opacity .12s cubic-bezier(0, 0, 0.2, 1);\n}\n\n.p-connected-overlay-visible {\n opacity: 1;\n transform: scaleY(1);\n}\n\n.p-connected-overlay-hidden {\n opacity: 0;\n transform: scaleY(1);\n transition: opacity .1s linear;\n}\n\n/* Vue based overlay animations */\n.p-connected-overlay-enter-from {\n opacity: 0;\n transform: scaleY(0.8);\n}\n\n.p-connected-overlay-leave-to {\n opacity: 0;\n}\n\n.p-connected-overlay-enter-active {\n transition: transform .12s cubic-bezier(0, 0, 0.2, 1), opacity .12s cubic-bezier(0, 0, 0.2, 1);\n}\n\n.p-connected-overlay-leave-active {\n transition: opacity .1s linear;\n}\n\n/* Toggleable Content */\n.p-toggleable-content-enter-from,\n.p-toggleable-content-leave-to {\n max-height: 0;\n}\n\n.p-toggleable-content-enter-to,\n.p-toggleable-content-leave-from {\n max-height: 1000px;\n}\n\n.p-toggleable-content-leave-active {\n overflow: hidden;\n transition: max-height 0.45s cubic-bezier(0, 1, 0, 1);\n}\n\n.p-toggleable-content-enter-active {\n overflow: hidden;\n transition: max-height 1s ease-in-out;\n}\n".concat(buttonStyles, "\n").concat(checkboxStyles, "\n").concat(inputTextStyles, "\n").concat(radioButtonStyles, "\n");
2063
2162
  var _useStyle = usestyle.useStyle(styles, {
2064
2163
  name: 'common',
2065
2164
  manual: true
@@ -2140,13 +2239,20 @@ this.primevue.basecomponent = (function (base, usestyle, utils, vue) {
2140
2239
  }) || ''], params), fKeys.join('.'), params) : undefined : utils.ObjectUtils.getItemValue(options, params);
2141
2240
  },
2142
2241
  _getPTValue: function _getPTValue() {
2242
+ var _this = this;
2143
2243
  var obj = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
2144
2244
  var key = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
2145
2245
  var params = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
2146
2246
  var searchInDefaultPT = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true;
2247
+ var getValue = function getValue() {
2248
+ var value = _this._getOptionValue.apply(_this, arguments);
2249
+ return utils.ObjectUtils.isString(value) || utils.ObjectUtils.isArray(value) ? {
2250
+ "class": value
2251
+ } : value;
2252
+ };
2147
2253
  var datasetPrefix = 'data-pc-';
2148
- var self = this._getOptionValue(obj, key, params);
2149
- var globalPT = searchInDefaultPT ? this._getOptionValue(this.defaultPT, key, params) : undefined;
2254
+ var self = getValue(obj, key, params);
2255
+ var globalPT = searchInDefaultPT ? /./g.test(key) && !!params[key.split('.')[0]] ? getValue(this.globalPT, key, params) : getValue(this.defaultPT, key, params) : undefined;
2150
2256
  var merged = vue.mergeProps(self, globalPT, _objectSpread(_objectSpread({}, key === 'root' && _defineProperty({}, "".concat(datasetPrefix, "name"), utils.ObjectUtils.toFlatCase(this.$.type.name))), {}, _defineProperty({}, "".concat(datasetPrefix, "section"), utils.ObjectUtils.toFlatCase(key))));
2151
2257
  return merged;
2152
2258
  /*
@@ -2205,10 +2311,15 @@ this.primevue.basecomponent = (function (base, usestyle, utils, vue) {
2205
2311
  }
2206
2312
  },
2207
2313
  computed: {
2314
+ globalPT: function globalPT() {
2315
+ return utils.ObjectUtils.getItemValue(this.$primevue.config.pt, {
2316
+ instance: this
2317
+ });
2318
+ },
2208
2319
  defaultPT: function defaultPT() {
2209
2320
  return this._getOptionValue(this.$primevue.config.pt, this.$options.hostName || this.$.type.name, {
2210
2321
  instance: this
2211
- });
2322
+ }) || this.globalPT;
2212
2323
  },
2213
2324
  isUnstyled: function isUnstyled() {
2214
2325
  return this.unstyled !== undefined ? this.unstyled : this.$primevue.config.unstyled;
@@ -5940,83 +6051,6 @@ this.primevue.usedialog = (function (exports, vue) {
5940
6051
 
5941
6052
  })({}, Vue);
5942
6053
 
5943
- this.primevue = this.primevue || {};
5944
- this.primevue.usestyle = (function (exports, utils, vue) {
5945
- 'use strict';
5946
-
5947
- /*
5948
- * Ported from useStyleTag in @vueuse/core
5949
- * https://github.com/vueuse
5950
- */
5951
- function tryOnMounted(fn) {
5952
- var sync = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
5953
- if (vue.getCurrentInstance()) vue.onMounted(fn);else if (sync) fn();else vue.nextTick(fn);
5954
- }
5955
- var _id = 0;
5956
- function useStyle(css) {
5957
- var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
5958
- var isLoaded = vue.ref(false);
5959
- var defaultDocument = utils.DomHandler.isClient() ? window.document : undefined;
5960
- var _options$document = options.document,
5961
- document = _options$document === void 0 ? defaultDocument : _options$document,
5962
- _options$immediate = options.immediate,
5963
- immediate = _options$immediate === void 0 ? true : _options$immediate,
5964
- _options$manual = options.manual,
5965
- manual = _options$manual === void 0 ? false : _options$manual,
5966
- _options$name = options.name,
5967
- name = _options$name === void 0 ? "style_".concat(++_id) : _options$name,
5968
- _options$id = options.id,
5969
- id = _options$id === void 0 ? undefined : _options$id,
5970
- _options$media = options.media,
5971
- media = _options$media === void 0 ? undefined : _options$media;
5972
- var cssRef = vue.ref(css);
5973
- var stop = function stop() {};
5974
- var load = function load() {
5975
- if (!document) return;
5976
- var el = document.querySelector("style[data-primevue-style-id=\"".concat(name, "\"]")) || document.getElementById(id) || document.createElement('style');
5977
- if (!el.isConnected) {
5978
- el.type = 'text/css';
5979
- id && (el.id = id);
5980
- media && (el.media = media);
5981
- document.head.appendChild(el);
5982
- name && el.setAttribute('data-primevue-style-id', name);
5983
- }
5984
- if (isLoaded.value) return;
5985
- stop = vue.watch(cssRef, function (value) {
5986
- el.textContent = value;
5987
- }, {
5988
- immediate: true
5989
- });
5990
- isLoaded.value = true;
5991
- };
5992
- var unload = function unload() {
5993
- if (!document || !isLoaded.value) return;
5994
- stop();
5995
- document.head.removeChild(document.getElementById(id));
5996
- isLoaded.value = false;
5997
- };
5998
- if (immediate && !manual) tryOnMounted(load);
5999
-
6000
- /*if (!manual)
6001
- tryOnScopeDispose(unload)*/
6002
-
6003
- return {
6004
- id: id,
6005
- css: cssRef,
6006
- unload: unload,
6007
- load: load,
6008
- isLoaded: vue.readonly(isLoaded)
6009
- };
6010
- }
6011
-
6012
- exports.useStyle = useStyle;
6013
-
6014
- Object.defineProperty(exports, '__esModule', { value: true });
6015
-
6016
- return exports;
6017
-
6018
- })({}, primevue.utils, Vue);
6019
-
6020
6054
  this.primevue = this.primevue || {};
6021
6055
  this.primevue.button = (function (Badge, SpinnerIcon, Ripple, BaseComponent, vue) {
6022
6056
  'use strict';
@@ -6275,7 +6309,8 @@ this.primevue.inputtext = (function (BaseComponent, vue) {
6275
6309
  ptmParams: function ptmParams() {
6276
6310
  return {
6277
6311
  context: {
6278
- filled: this.filled
6312
+ filled: this.filled,
6313
+ disabled: this.$attrs.disabled || this.$attrs.disabled === ''
6279
6314
  }
6280
6315
  };
6281
6316
  }
@@ -7485,8 +7520,8 @@ this.primevue.message = (function (CheckIcon, ExclamationTriangleIcon, InfoCircl
7485
7520
  wrapper: 'p-message-wrapper',
7486
7521
  icon: 'p-message-icon',
7487
7522
  text: 'p-message-text',
7488
- button: 'p-message-close p-link',
7489
- buttonIcon: 'p-message-close-icon'
7523
+ closeButton: 'p-message-close p-link',
7524
+ closeIcon: 'p-message-close-icon'
7490
7525
  };
7491
7526
  var _useStyle = usestyle.useStyle(styles, {
7492
7527
  name: 'message',
@@ -7623,20 +7658,20 @@ this.primevue.message = (function (CheckIcon, ExclamationTriangleIcon, InfoCircl
7623
7658
  "class": ["p-message-text", _ctx.cx('text')]
7624
7659
  }, _ctx.ptm('text')), [vue.renderSlot(_ctx.$slots, "default")], 16), _ctx.closable ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("button", vue.mergeProps({
7625
7660
  key: 0,
7626
- "class": _ctx.cx('button'),
7661
+ "class": _ctx.cx('closeButton'),
7627
7662
  "aria-label": $options.closeAriaLabel,
7628
7663
  type: "button",
7629
7664
  onClick: _cache[0] || (_cache[0] = function ($event) {
7630
7665
  return $options.close($event);
7631
7666
  })
7632
- }, _objectSpread(_objectSpread({}, _ctx.closeButtonProps), _ctx.ptm('button'))), [vue.renderSlot(_ctx.$slots, "closeicon", {}, function () {
7667
+ }, _objectSpread(_objectSpread(_objectSpread({}, _ctx.closeButtonProps), _ctx.ptm('button')), _ctx.ptm('closeButton'))), [vue.renderSlot(_ctx.$slots, "closeicon", {}, function () {
7633
7668
  return [_ctx.closeIcon ? (vue.openBlock(), vue.createElementBlock("i", vue.mergeProps({
7634
7669
  key: 0,
7635
- "class": [_ctx.cx('buttonIcon'), _ctx.closeIcon]
7636
- }, _ctx.ptm('buttonIcon')), null, 16)) : (vue.openBlock(), vue.createBlock(_component_TimesIcon, vue.mergeProps({
7670
+ "class": [_ctx.cx('closeIcon'), _ctx.closeIcon]
7671
+ }, _objectSpread(_objectSpread({}, _ctx.ptm('buttonIcon')), _ctx.ptm('closeIcon'))), null, 16)) : (vue.openBlock(), vue.createBlock(_component_TimesIcon, vue.mergeProps({
7637
7672
  key: 1,
7638
- "class": [_ctx.cx('buttonIcon'), _ctx.closeIcon]
7639
- }, _ctx.ptm('buttonIcon')), null, 16, ["class"]))];
7673
+ "class": [_ctx.cx('closeIcon'), _ctx.closeIcon]
7674
+ }, _objectSpread(_objectSpread({}, _ctx.ptm('buttonIcon')), _ctx.ptm('closeIcon'))), null, 16, ["class"]))];
7640
7675
  })], 16, _hoisted_1)), [[_directive_ripple]]) : vue.createCommentVNode("", true)], 16)], 16), [[vue.vShow, $data.visible]])];
7641
7676
  }),
7642
7677
  _: 3
@@ -9645,7 +9680,9 @@ this.primevue.dialog = (function (FocusTrap, TimesIcon, WindowMaximizeIcon, Wind
9645
9680
  }),
9646
9681
  type: "button",
9647
9682
  tabindex: _ctx.maximizable ? '0' : '-1'
9648
- }, _ctx.ptm('maximizableButton')), [vue.renderSlot(_ctx.$slots, "maximizeicon", {
9683
+ }, _ctx.ptm('maximizableButton'), {
9684
+ "data-pc-group-section": "headericon"
9685
+ }), [vue.renderSlot(_ctx.$slots, "maximizeicon", {
9649
9686
  maximized: $data.maximized
9650
9687
  }, function () {
9651
9688
  return [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($options.maximizeIconComponent), vue.mergeProps({
@@ -9661,7 +9698,9 @@ this.primevue.dialog = (function (FocusTrap, TimesIcon, WindowMaximizeIcon, Wind
9661
9698
  }),
9662
9699
  "aria-label": $options.closeAriaLabel,
9663
9700
  type: "button"
9664
- }, _objectSpread(_objectSpread({}, _ctx.closeButtonProps), _ctx.ptm('closeButton'))), [vue.renderSlot(_ctx.$slots, "closeicon", {}, function () {
9701
+ }, _objectSpread(_objectSpread({}, _ctx.closeButtonProps), _ctx.ptm('closeButton')), {
9702
+ "data-pc-group-section": "headericon"
9703
+ }), [vue.renderSlot(_ctx.$slots, "closeicon", {}, function () {
9665
9704
  return [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.closeIcon ? 'span' : 'TimesIcon'), vue.mergeProps({
9666
9705
  "class": [_ctx.cx('closeButtonIcon'), _ctx.closeIcon]
9667
9706
  }, _ctx.ptm('closeButtonIcon')), null, 16, ["class"]))];
@@ -9950,7 +9989,7 @@ this.primevue.paginator = (function (utils, BaseComponent, usestyle, vue, AngleD
9950
9989
  "class": vue.normalizeClass(_ctx.cx('jumpToPageDropdown')),
9951
9990
  disabled: $props.disabled,
9952
9991
  unstyled: _ctx.unstyled,
9953
- pt: _ctx.ptm('jumpTpPageDropdown'),
9992
+ pt: _ctx.ptm('jumpToPageDropdown'),
9954
9993
  "data-pc-section": "jumptopagedropdown"
9955
9994
  }, null, 8, ["modelValue", "options", "class", "disabled", "unstyled", "pt"]);
9956
9995
  }
@@ -10801,9 +10840,11 @@ this.primevue.tree = (function (SearchIcon, SpinnerIcon, utils, BaseComponent, u
10801
10840
  getPTOptions: function getPTOptions(key) {
10802
10841
  return this.ptm(key, {
10803
10842
  context: {
10843
+ index: this.index,
10804
10844
  expanded: this.expanded,
10805
10845
  selected: this.selected,
10806
- checked: this.checked
10846
+ checked: this.checked,
10847
+ leaf: this.leaf
10807
10848
  }
10808
10849
  });
10809
10850
  },