primevue 3.52.0 → 3.53.1

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 (174) hide show
  1. package/README.md +1 -1
  2. package/api/Api.d.ts +58 -6
  3. package/api/api.cjs.js +58 -6
  4. package/api/api.cjs.min.js +1 -1
  5. package/api/api.esm.js +58 -6
  6. package/api/api.esm.min.js +1 -1
  7. package/api/api.js +58 -6
  8. package/api/api.min.js +1 -1
  9. package/autocomplete/AutoComplete.vue +1 -1
  10. package/autocomplete/autocomplete.cjs.js +2 -2
  11. package/autocomplete/autocomplete.cjs.min.js +1 -1
  12. package/autocomplete/autocomplete.esm.js +2 -2
  13. package/autocomplete/autocomplete.esm.min.js +1 -1
  14. package/autocomplete/autocomplete.js +2 -2
  15. package/autocomplete/autocomplete.min.js +1 -1
  16. package/basecomponent/BaseComponent.vue +11 -11
  17. package/basecomponent/basecomponent.cjs.js +20 -20
  18. package/basecomponent/basecomponent.cjs.min.js +1 -1
  19. package/basecomponent/basecomponent.esm.js +20 -20
  20. package/basecomponent/basecomponent.esm.min.js +1 -1
  21. package/basecomponent/basecomponent.js +20 -20
  22. package/basecomponent/basecomponent.min.js +1 -1
  23. package/basedirective/basedirective.cjs.js +5 -5
  24. package/basedirective/basedirective.cjs.min.js +1 -1
  25. package/basedirective/basedirective.esm.js +5 -5
  26. package/basedirective/basedirective.esm.min.js +1 -1
  27. package/basedirective/basedirective.js +5 -5
  28. package/basedirective/basedirective.min.js +1 -1
  29. package/calendar/BaseCalendar.vue +4 -0
  30. package/calendar/Calendar.d.ts +4 -0
  31. package/calendar/Calendar.vue +32 -18
  32. package/calendar/calendar.cjs.js +44 -26
  33. package/calendar/calendar.cjs.min.js +1 -1
  34. package/calendar/calendar.esm.js +44 -26
  35. package/calendar/calendar.esm.min.js +1 -1
  36. package/calendar/calendar.js +44 -26
  37. package/calendar/calendar.min.js +1 -1
  38. package/colorpicker/ColorPicker.vue +0 -23
  39. package/colorpicker/colorpicker.cjs.js +0 -19
  40. package/colorpicker/colorpicker.cjs.min.js +1 -1
  41. package/colorpicker/colorpicker.esm.js +0 -19
  42. package/colorpicker/colorpicker.esm.min.js +1 -1
  43. package/colorpicker/colorpicker.js +0 -19
  44. package/colorpicker/colorpicker.min.js +1 -1
  45. package/column/Column.d.ts +1 -1
  46. package/config/PrimeVue.d.ts +1 -10
  47. package/confirmationservice/ConfirmationService.d.ts +1 -7
  48. package/confirmpopup/ConfirmPopup.vue +6 -1
  49. package/confirmpopup/confirmpopup.cjs.js +5 -1
  50. package/confirmpopup/confirmpopup.cjs.min.js +1 -1
  51. package/confirmpopup/confirmpopup.esm.js +5 -1
  52. package/confirmpopup/confirmpopup.esm.min.js +1 -1
  53. package/confirmpopup/confirmpopup.js +5 -1
  54. package/confirmpopup/confirmpopup.min.js +1 -1
  55. package/contextmenu/ContextMenu.vue +3 -1
  56. package/contextmenu/contextmenu.cjs.js +3 -1
  57. package/contextmenu/contextmenu.cjs.min.js +1 -1
  58. package/contextmenu/contextmenu.esm.js +3 -1
  59. package/contextmenu/contextmenu.esm.min.js +1 -1
  60. package/contextmenu/contextmenu.js +3 -1
  61. package/contextmenu/contextmenu.min.js +1 -1
  62. package/core/core.js +150 -59
  63. package/core/core.min.js +12 -10
  64. package/datatable/BodyCell.vue +8 -16
  65. package/datatable/DataTable.d.ts +1 -1
  66. package/datatable/DataTable.vue +3 -1
  67. package/datatable/datatable.cjs.js +10 -15
  68. package/datatable/datatable.cjs.min.js +1 -1
  69. package/datatable/datatable.esm.js +10 -15
  70. package/datatable/datatable.esm.min.js +1 -1
  71. package/datatable/datatable.js +10 -15
  72. package/datatable/datatable.min.js +1 -1
  73. package/dialog/Dialog.vue +9 -3
  74. package/dialog/dialog.cjs.js +10 -3
  75. package/dialog/dialog.cjs.min.js +1 -1
  76. package/dialog/dialog.esm.js +10 -3
  77. package/dialog/dialog.esm.min.js +1 -1
  78. package/dialog/dialog.js +10 -3
  79. package/dialog/dialog.min.js +1 -1
  80. package/dialogservice/DialogService.d.ts +1 -7
  81. package/dropdown/Dropdown.d.ts +1 -1
  82. package/dropdown/Dropdown.vue +17 -15
  83. package/dropdown/dropdown.cjs.js +15 -15
  84. package/dropdown/dropdown.cjs.min.js +1 -1
  85. package/dropdown/dropdown.esm.js +15 -15
  86. package/dropdown/dropdown.esm.min.js +1 -1
  87. package/dropdown/dropdown.js +15 -15
  88. package/dropdown/dropdown.min.js +1 -1
  89. package/floatlabel/floatlabel.js +1 -1
  90. package/floatlabel/floatlabel.min.js +1 -1
  91. package/inplace/Inplace.vue +2 -2
  92. package/inplace/inplace.cjs.js +3 -3
  93. package/inplace/inplace.cjs.min.js +1 -1
  94. package/inplace/inplace.esm.js +4 -4
  95. package/inplace/inplace.esm.min.js +1 -1
  96. package/inplace/inplace.js +3 -3
  97. package/inplace/inplace.min.js +1 -1
  98. package/inputnumber/InputNumber.vue +12 -2
  99. package/inputnumber/inputnumber.cjs.js +10 -2
  100. package/inputnumber/inputnumber.cjs.min.js +1 -1
  101. package/inputnumber/inputnumber.esm.js +10 -2
  102. package/inputnumber/inputnumber.esm.min.js +1 -1
  103. package/inputnumber/inputnumber.js +10 -2
  104. package/inputnumber/inputnumber.min.js +1 -1
  105. package/inputotp/InputOtp.vue +8 -0
  106. package/inputotp/inputotp.cjs.js +6 -0
  107. package/inputotp/inputotp.cjs.min.js +1 -1
  108. package/inputotp/inputotp.esm.js +6 -0
  109. package/inputotp/inputotp.esm.min.js +1 -1
  110. package/inputotp/inputotp.js +6 -0
  111. package/inputotp/inputotp.min.js +1 -1
  112. package/listbox/Listbox.d.ts +1 -1
  113. package/listbox/Listbox.vue +16 -5
  114. package/listbox/listbox.cjs.js +14 -5
  115. package/listbox/listbox.cjs.min.js +1 -1
  116. package/listbox/listbox.esm.js +14 -5
  117. package/listbox/listbox.esm.min.js +1 -1
  118. package/listbox/listbox.js +14 -5
  119. package/listbox/listbox.min.js +1 -1
  120. package/multiselect/MultiSelect.d.ts +1 -1
  121. package/multiselect/MultiSelect.vue +16 -10
  122. package/multiselect/multiselect.cjs.js +15 -8
  123. package/multiselect/multiselect.cjs.min.js +1 -1
  124. package/multiselect/multiselect.esm.js +15 -8
  125. package/multiselect/multiselect.esm.min.js +1 -1
  126. package/multiselect/multiselect.js +15 -8
  127. package/multiselect/multiselect.min.js +1 -1
  128. package/package.json +1 -1
  129. package/password/BasePassword.vue +2 -2
  130. package/password/Password.d.ts +2 -2
  131. package/password/password.cjs.js +2 -2
  132. package/password/password.cjs.min.js +1 -1
  133. package/password/password.esm.js +2 -2
  134. package/password/password.esm.min.js +1 -1
  135. package/password/password.js +2 -2
  136. package/password/password.min.js +1 -1
  137. package/ripple/ripple.cjs.js +1 -1
  138. package/ripple/ripple.cjs.min.js +1 -1
  139. package/ripple/ripple.esm.js +1 -1
  140. package/ripple/ripple.esm.min.js +1 -1
  141. package/ripple/ripple.js +1 -1
  142. package/ripple/ripple.min.js +1 -1
  143. package/splitbutton/SplitButton.vue +1 -0
  144. package/splitbutton/splitbutton.cjs.js +2 -1
  145. package/splitbutton/splitbutton.cjs.min.js +1 -1
  146. package/splitbutton/splitbutton.esm.js +2 -1
  147. package/splitbutton/splitbutton.esm.min.js +1 -1
  148. package/splitbutton/splitbutton.js +2 -1
  149. package/splitbutton/splitbutton.min.js +1 -1
  150. package/tieredmenu/TieredMenu.vue +3 -2
  151. package/tieredmenu/tieredmenu.cjs.js +4 -3
  152. package/tieredmenu/tieredmenu.cjs.min.js +1 -1
  153. package/tieredmenu/tieredmenu.esm.js +4 -3
  154. package/tieredmenu/tieredmenu.esm.min.js +1 -1
  155. package/tieredmenu/tieredmenu.js +4 -3
  156. package/tieredmenu/tieredmenu.min.js +1 -1
  157. package/toastservice/ToastService.d.ts +1 -7
  158. package/tree/TreeNode.vue +4 -2
  159. package/tree/tree.cjs.js +4 -2
  160. package/tree/tree.cjs.min.js +1 -1
  161. package/tree/tree.esm.js +4 -2
  162. package/tree/tree.esm.min.js +1 -1
  163. package/tree/tree.js +4 -2
  164. package/tree/tree.min.js +1 -1
  165. package/treenode/TreeNode.d.ts +1 -1
  166. package/treeselect/TreeSelect.d.ts +1 -1
  167. package/virtualscroller/BaseVirtualScroller.vue +1 -1
  168. package/virtualscroller/virtualscroller.cjs.js +2 -2
  169. package/virtualscroller/virtualscroller.cjs.min.js +1 -1
  170. package/virtualscroller/virtualscroller.esm.js +2 -2
  171. package/virtualscroller/virtualscroller.esm.min.js +1 -1
  172. package/virtualscroller/virtualscroller.js +2 -2
  173. package/virtualscroller/virtualscroller.min.js +1 -1
  174. package/web-types.json +1 -1
@@ -30,8 +30,8 @@ export default {
30
30
  immediate: true,
31
31
  handler(newValue) {
32
32
  if (!newValue) {
33
- BaseComponentStyle.loadStyle({ nonce: this.$config?.csp?.nonce });
34
- this.$options.style && this.$style.loadStyle({ nonce: this.$config?.csp?.nonce });
33
+ BaseComponentStyle.loadStyle({ nonce: this.$primevueConfig?.csp?.nonce });
34
+ this.$options.style && this.$style.loadStyle({ nonce: this.$primevueConfig?.csp?.nonce });
35
35
  }
36
36
  }
37
37
  }
@@ -43,7 +43,7 @@ export default {
43
43
 
44
44
  (value || originalValue)?.hooks?.['onBeforeCreate']?.();
45
45
 
46
- const _useptInConfig = this.$config?.pt?.['_usept'];
46
+ const _useptInConfig = this.$primevueConfig?.pt?.['_usept'];
47
47
  const originalValueInConfig = _useptInConfig ? this.$primevue?.config?.pt?.originalValue : undefined;
48
48
  const valueInConfig = _useptInConfig ? this.$primevue?.config?.pt?.value : this.$primevue?.config?.pt;
49
49
 
@@ -53,7 +53,7 @@ export default {
53
53
  this._hook('onCreated');
54
54
  },
55
55
  beforeMount() {
56
- BaseStyle.loadStyle({ nonce: this.$config?.csp?.nonce });
56
+ BaseStyle.loadStyle({ nonce: this.$primevueConfig?.csp?.nonce });
57
57
  this._loadGlobalStyles();
58
58
  this._hook('onBeforeMount');
59
59
  },
@@ -98,7 +98,7 @@ export default {
98
98
 
99
99
  const globalCSS = this._useGlobalPT(this._getOptionValue, 'global.css', this.$params);
100
100
 
101
- ObjectUtils.isNotEmpty(globalCSS) && BaseComponentStyle.loadGlobalStyle(globalCSS, { nonce: this.$config?.csp?.nonce });
101
+ ObjectUtils.isNotEmpty(globalCSS) && BaseComponentStyle.loadGlobalStyle(globalCSS, { nonce: this.$primevueConfig?.csp?.nonce });
102
102
  },
103
103
  _getHostInstance(instance) {
104
104
  return instance ? (this.$options.hostName ? (instance.$.type.name === this.$options.hostName ? instance : this._getHostInstance(instance.$parentInstance)) : instance.$parentInstance) : undefined;
@@ -118,7 +118,7 @@ export default {
118
118
  },
119
119
  _getPTValue(obj = {}, key = '', params = {}, searchInDefaultPT = true) {
120
120
  const searchOut = /./g.test(key) && !!params[key.split('.')[0]];
121
- const { mergeSections = true, mergeProps: useMergeProps = false } = this._getPropValue('ptOptions') || this.$config?.ptOptions || {};
121
+ const { mergeSections = true, mergeProps: useMergeProps = false } = this._getPropValue('ptOptions') || this.$primevueConfig?.ptOptions || {};
122
122
  const global = searchInDefaultPT ? (searchOut ? this._useGlobalPT(this._getPTClassValue, key, params) : this._useDefaultPT(this._getPTClassValue, key, params)) : undefined;
123
123
  const self = searchOut ? undefined : this._getPTSelf(obj, this._getPTClassValue, key, { ...params, global: global || {} });
124
124
  const datasets = this._getPTDatasets(key);
@@ -171,7 +171,7 @@ export default {
171
171
  const fn = (value) => callback(value, key, params);
172
172
 
173
173
  if (pt?.hasOwnProperty('_usept')) {
174
- const { mergeSections = true, mergeProps: useMergeProps = false } = pt['_usept'] || this.$config?.ptOptions || {};
174
+ const { mergeSections = true, mergeProps: useMergeProps = false } = pt['_usept'] || this.$primevueConfig?.ptOptions || {};
175
175
  const originalValue = fn(pt.originalValue);
176
176
  const value = fn(pt.value);
177
177
 
@@ -216,13 +216,13 @@ export default {
216
216
  },
217
217
  computed: {
218
218
  globalPT() {
219
- return this._getPT(this.$config?.pt, undefined, (value) => ObjectUtils.getItemValue(value, { instance: this }));
219
+ return this._getPT(this.$primevueConfig?.pt, undefined, (value) => ObjectUtils.getItemValue(value, { instance: this }));
220
220
  },
221
221
  defaultPT() {
222
- return this._getPT(this.$config?.pt, undefined, (value) => this._getOptionValue(value, this.$name, { ...this.$params }) || ObjectUtils.getItemValue(value, { ...this.$params }));
222
+ return this._getPT(this.$primevueConfig?.pt, undefined, (value) => this._getOptionValue(value, this.$name, { ...this.$params }) || ObjectUtils.getItemValue(value, { ...this.$params }));
223
223
  },
224
224
  isUnstyled() {
225
- return this.unstyled !== undefined ? this.unstyled : this.$config?.unstyled;
225
+ return this.unstyled !== undefined ? this.unstyled : this.$primevueConfig?.unstyled;
226
226
  },
227
227
  $params() {
228
228
  const parentInstance = this._getHostInstance(this) || this.$parent;
@@ -245,7 +245,7 @@ export default {
245
245
  $style() {
246
246
  return { classes: undefined, inlineStyles: undefined, loadStyle: () => {}, loadCustomStyle: () => {}, ...(this._getHostInstance(this) || {}).$style, ...this.$options.style };
247
247
  },
248
- $config() {
248
+ $primevueConfig() {
249
249
  return this.$primevue?.config;
250
250
  },
251
251
  $name() {
@@ -65,24 +65,24 @@ var script = {
65
65
  immediate: true,
66
66
  handler: function handler(newValue) {
67
67
  if (!newValue) {
68
- var _this$$config, _this$$config2;
68
+ var _this$$primevueConfig, _this$$primevueConfig2;
69
69
  BaseComponentStyle.loadStyle({
70
- nonce: (_this$$config = this.$config) === null || _this$$config === void 0 || (_this$$config = _this$$config.csp) === null || _this$$config === void 0 ? void 0 : _this$$config.nonce
70
+ nonce: (_this$$primevueConfig = this.$primevueConfig) === null || _this$$primevueConfig === void 0 || (_this$$primevueConfig = _this$$primevueConfig.csp) === null || _this$$primevueConfig === void 0 ? void 0 : _this$$primevueConfig.nonce
71
71
  });
72
72
  this.$options.style && this.$style.loadStyle({
73
- nonce: (_this$$config2 = this.$config) === null || _this$$config2 === void 0 || (_this$$config2 = _this$$config2.csp) === null || _this$$config2 === void 0 ? void 0 : _this$$config2.nonce
73
+ nonce: (_this$$primevueConfig2 = this.$primevueConfig) === null || _this$$primevueConfig2 === void 0 || (_this$$primevueConfig2 = _this$$primevueConfig2.csp) === null || _this$$primevueConfig2 === void 0 ? void 0 : _this$$primevueConfig2.nonce
74
74
  });
75
75
  }
76
76
  }
77
77
  }
78
78
  },
79
79
  beforeCreate: function beforeCreate() {
80
- var _this$pt, _this$pt2, _this$pt3, _ref, _ref$onBeforeCreate, _this$$config3, _this$$primevue, _this$$primevue2, _this$$primevue3, _ref2, _ref2$onBeforeCreate;
80
+ var _this$pt, _this$pt2, _this$pt3, _ref, _ref$onBeforeCreate, _this$$primevueConfig3, _this$$primevue, _this$$primevue2, _this$$primevue3, _ref2, _ref2$onBeforeCreate;
81
81
  var _usept = (_this$pt = this.pt) === null || _this$pt === void 0 ? void 0 : _this$pt['_usept'];
82
82
  var originalValue = _usept ? (_this$pt2 = this.pt) === null || _this$pt2 === void 0 || (_this$pt2 = _this$pt2.originalValue) === null || _this$pt2 === void 0 ? void 0 : _this$pt2[this.$.type.name] : undefined;
83
83
  var value = _usept ? (_this$pt3 = this.pt) === null || _this$pt3 === void 0 || (_this$pt3 = _this$pt3.value) === null || _this$pt3 === void 0 ? void 0 : _this$pt3[this.$.type.name] : this.pt;
84
84
  (_ref = value || originalValue) === null || _ref === void 0 || (_ref = _ref.hooks) === null || _ref === void 0 || (_ref$onBeforeCreate = _ref['onBeforeCreate']) === null || _ref$onBeforeCreate === void 0 || _ref$onBeforeCreate.call(_ref);
85
- var _useptInConfig = (_this$$config3 = this.$config) === null || _this$$config3 === void 0 || (_this$$config3 = _this$$config3.pt) === null || _this$$config3 === void 0 ? void 0 : _this$$config3['_usept'];
85
+ var _useptInConfig = (_this$$primevueConfig3 = this.$primevueConfig) === null || _this$$primevueConfig3 === void 0 || (_this$$primevueConfig3 = _this$$primevueConfig3.pt) === null || _this$$primevueConfig3 === void 0 ? void 0 : _this$$primevueConfig3['_usept'];
86
86
  var originalValueInConfig = _useptInConfig ? (_this$$primevue = this.$primevue) === null || _this$$primevue === void 0 || (_this$$primevue = _this$$primevue.config) === null || _this$$primevue === void 0 || (_this$$primevue = _this$$primevue.pt) === null || _this$$primevue === void 0 ? void 0 : _this$$primevue.originalValue : undefined;
87
87
  var valueInConfig = _useptInConfig ? (_this$$primevue2 = this.$primevue) === null || _this$$primevue2 === void 0 || (_this$$primevue2 = _this$$primevue2.config) === null || _this$$primevue2 === void 0 || (_this$$primevue2 = _this$$primevue2.pt) === null || _this$$primevue2 === void 0 ? void 0 : _this$$primevue2.value : (_this$$primevue3 = this.$primevue) === null || _this$$primevue3 === void 0 || (_this$$primevue3 = _this$$primevue3.config) === null || _this$$primevue3 === void 0 ? void 0 : _this$$primevue3.pt;
88
88
  (_ref2 = valueInConfig || originalValueInConfig) === null || _ref2 === void 0 || (_ref2 = _ref2[this.$.type.name]) === null || _ref2 === void 0 || (_ref2 = _ref2.hooks) === null || _ref2 === void 0 || (_ref2$onBeforeCreate = _ref2['onBeforeCreate']) === null || _ref2$onBeforeCreate === void 0 || _ref2$onBeforeCreate.call(_ref2);
@@ -91,9 +91,9 @@ var script = {
91
91
  this._hook('onCreated');
92
92
  },
93
93
  beforeMount: function beforeMount() {
94
- var _this$$config4;
94
+ var _this$$primevueConfig4;
95
95
  BaseStyle__default["default"].loadStyle({
96
- nonce: (_this$$config4 = this.$config) === null || _this$$config4 === void 0 || (_this$$config4 = _this$$config4.csp) === null || _this$$config4 === void 0 ? void 0 : _this$$config4.nonce
96
+ nonce: (_this$$primevueConfig4 = this.$primevueConfig) === null || _this$$primevueConfig4 === void 0 || (_this$$primevueConfig4 = _this$$primevueConfig4.csp) === null || _this$$primevueConfig4 === void 0 ? void 0 : _this$$primevueConfig4.nonce
97
97
  });
98
98
  this._loadGlobalStyles();
99
99
  this._hook('onBeforeMount');
@@ -129,7 +129,7 @@ var script = {
129
129
  return utils.ObjectUtils.isFunction(fn) ? fn.apply(void 0, args) : vue.mergeProps.apply(void 0, args);
130
130
  },
131
131
  _loadGlobalStyles: function _loadGlobalStyles() {
132
- var _this$$config5;
132
+ var _this$$primevueConfig5;
133
133
  /*
134
134
  * @todo Add self custom css support;
135
135
  * <Panel :pt="{ css: `...` }" .../>
@@ -142,7 +142,7 @@ var script = {
142
142
 
143
143
  var globalCSS = this._useGlobalPT(this._getOptionValue, 'global.css', this.$params);
144
144
  utils.ObjectUtils.isNotEmpty(globalCSS) && BaseComponentStyle.loadGlobalStyle(globalCSS, {
145
- nonce: (_this$$config5 = this.$config) === null || _this$$config5 === void 0 || (_this$$config5 = _this$$config5.csp) === null || _this$$config5 === void 0 ? void 0 : _this$$config5.nonce
145
+ nonce: (_this$$primevueConfig5 = this.$primevueConfig) === null || _this$$primevueConfig5 === void 0 || (_this$$primevueConfig5 = _this$$primevueConfig5.csp) === null || _this$$primevueConfig5 === void 0 ? void 0 : _this$$primevueConfig5.nonce
146
146
  });
147
147
  },
148
148
  _getHostInstance: function _getHostInstance(instance) {
@@ -162,13 +162,13 @@ var script = {
162
162
  }) || ''], params), fKeys.join('.'), params) : undefined : utils.ObjectUtils.getItemValue(options, params);
163
163
  },
164
164
  _getPTValue: function _getPTValue() {
165
- var _this$$config6;
165
+ var _this$$primevueConfig6;
166
166
  var obj = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
167
167
  var key = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
168
168
  var params = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
169
169
  var searchInDefaultPT = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true;
170
170
  var searchOut = /./g.test(key) && !!params[key.split('.')[0]];
171
- var _ref3 = this._getPropValue('ptOptions') || ((_this$$config6 = this.$config) === null || _this$$config6 === void 0 ? void 0 : _this$$config6.ptOptions) || {},
171
+ var _ref3 = this._getPropValue('ptOptions') || ((_this$$primevueConfig6 = this.$primevueConfig) === null || _this$$primevueConfig6 === void 0 ? void 0 : _this$$primevueConfig6.ptOptions) || {},
172
172
  _ref3$mergeSections = _ref3.mergeSections,
173
173
  mergeSections = _ref3$mergeSections === void 0 ? true : _ref3$mergeSections,
174
174
  _ref3$mergeProps = _ref3.mergeProps,
@@ -226,8 +226,8 @@ var script = {
226
226
  return callback(value, key, params);
227
227
  };
228
228
  if (pt !== null && pt !== void 0 && pt.hasOwnProperty('_usept')) {
229
- var _this$$config7;
230
- var _ref6 = pt['_usept'] || ((_this$$config7 = this.$config) === null || _this$$config7 === void 0 ? void 0 : _this$$config7.ptOptions) || {},
229
+ var _this$$primevueConfig7;
230
+ var _ref6 = pt['_usept'] || ((_this$$primevueConfig7 = this.$primevueConfig) === null || _this$$primevueConfig7 === void 0 ? void 0 : _this$$primevueConfig7.ptOptions) || {},
231
231
  _ref6$mergeSections = _ref6.mergeSections,
232
232
  mergeSections = _ref6$mergeSections === void 0 ? true : _ref6$mergeSections,
233
233
  _ref6$mergeProps = _ref6.mergeProps,
@@ -283,24 +283,24 @@ var script = {
283
283
  },
284
284
  computed: {
285
285
  globalPT: function globalPT() {
286
- var _this$$config8,
286
+ var _this$$primevueConfig8,
287
287
  _this2 = this;
288
- return this._getPT((_this$$config8 = this.$config) === null || _this$$config8 === void 0 ? void 0 : _this$$config8.pt, undefined, function (value) {
288
+ return this._getPT((_this$$primevueConfig8 = this.$primevueConfig) === null || _this$$primevueConfig8 === void 0 ? void 0 : _this$$primevueConfig8.pt, undefined, function (value) {
289
289
  return utils.ObjectUtils.getItemValue(value, {
290
290
  instance: _this2
291
291
  });
292
292
  });
293
293
  },
294
294
  defaultPT: function defaultPT() {
295
- var _this$$config9,
295
+ var _this$$primevueConfig9,
296
296
  _this3 = this;
297
- return this._getPT((_this$$config9 = this.$config) === null || _this$$config9 === void 0 ? void 0 : _this$$config9.pt, undefined, function (value) {
297
+ return this._getPT((_this$$primevueConfig9 = this.$primevueConfig) === null || _this$$primevueConfig9 === void 0 ? void 0 : _this$$primevueConfig9.pt, undefined, function (value) {
298
298
  return _this3._getOptionValue(value, _this3.$name, _objectSpread({}, _this3.$params)) || utils.ObjectUtils.getItemValue(value, _objectSpread({}, _this3.$params));
299
299
  });
300
300
  },
301
301
  isUnstyled: function isUnstyled() {
302
- var _this$$config10;
303
- return this.unstyled !== undefined ? this.unstyled : (_this$$config10 = this.$config) === null || _this$$config10 === void 0 ? void 0 : _this$$config10.unstyled;
302
+ var _this$$primevueConfig10;
303
+ return this.unstyled !== undefined ? this.unstyled : (_this$$primevueConfig10 = this.$primevueConfig) === null || _this$$primevueConfig10 === void 0 ? void 0 : _this$$primevueConfig10.unstyled;
304
304
  },
305
305
  $params: function $params() {
306
306
  var parentInstance = this._getHostInstance(this) || this.$parent;
@@ -327,7 +327,7 @@ var script = {
327
327
  loadCustomStyle: function loadCustomStyle() {}
328
328
  }, (this._getHostInstance(this) || {}).$style), this.$options.style);
329
329
  },
330
- $config: function $config() {
330
+ $primevueConfig: function $primevueConfig() {
331
331
  var _this$$primevue4;
332
332
  return (_this$$primevue4 = this.$primevue) === null || _this$$primevue4 === void 0 ? void 0 : _this$$primevue4.config;
333
333
  },
@@ -1 +1 @@
1
- "use strict";var t=require("primevue/base/style"),e=require("primevue/utils"),n=require("vue"),i=require("primevue/usestyle");function o(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var r=o(t);function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach((function(e){a(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function a(t,e,n){var i;return(e="symbol"==l(i=c(e,"string"))?i:String(i))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c(t,e){if("object"!=l(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=l(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var p=r.default.extend({name:"common",loadGlobalStyle:function(t){return i.useStyle(t,u({name:"global"},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}))}});function v(t){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},v(t)}function d(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function f(t,e){return b(t)||m(t,e)||g(t,e)||h()}function h(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function g(t,e){if(t){if("string"==typeof t)return y(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y(t,e):void 0}}function y(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function m(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,o,r,l,s=[],u=!0,a=!1;try{if(r=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(i=r.call(n)).done)&&(s.push(i.value),s.length!==e);u=!0);}catch(t){a=!0,o=t}finally{try{if(!u&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(a)throw o}}return s}}function b(t){if(Array.isArray(t))return t}function O(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function P(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?O(Object(n),!0).forEach((function(e){_(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function _(t,e,n){var i;return(e="symbol"==v(i=$(e,"string"))?i:String(i))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function $(t,e){if("object"!=v(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=v(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var j={name:"BaseComponent",props:{pt:{type:Object,default:void 0},ptOptions:{type:Object,default:void 0},unstyled:{type:Boolean,default:void 0}},inject:{$parentInstance:{default:void 0}},watch:{isUnstyled:{immediate:!0,handler:function(t){var e,n;t||(p.loadStyle({nonce:null===(e=this.$config)||void 0===e||null===(e=e.csp)||void 0===e?void 0:e.nonce}),this.$options.style&&this.$style.loadStyle({nonce:null===(n=this.$config)||void 0===n||null===(n=n.csp)||void 0===n?void 0:n.nonce}))}}},beforeCreate:function(){var t,e,n,i,o,r,l,s,u,a,c,p=null===(t=this.pt)||void 0===t?void 0:t._usept,v=p?null===(e=this.pt)||void 0===e||null===(e=e.originalValue)||void 0===e?void 0:e[this.$.type.name]:void 0;null===(i=(p?null===(n=this.pt)||void 0===n||null===(n=n.value)||void 0===n?void 0:n[this.$.type.name]:this.pt)||v)||void 0===i||null===(i=i.hooks)||void 0===i||null===(o=i.onBeforeCreate)||void 0===o||o.call(i);var d=null===(r=this.$config)||void 0===r||null===(r=r.pt)||void 0===r?void 0:r._usept,f=d?null===(l=this.$primevue)||void 0===l||null===(l=l.config)||void 0===l||null===(l=l.pt)||void 0===l?void 0:l.originalValue:void 0;null===(a=(d?null===(s=this.$primevue)||void 0===s||null===(s=s.config)||void 0===s||null===(s=s.pt)||void 0===s?void 0:s.value:null===(u=this.$primevue)||void 0===u||null===(u=u.config)||void 0===u?void 0:u.pt)||f)||void 0===a||null===(a=a[this.$.type.name])||void 0===a||null===(a=a.hooks)||void 0===a||null===(c=a.onBeforeCreate)||void 0===c||c.call(a)},created:function(){this._hook("onCreated")},beforeMount:function(){var t;r.default.loadStyle({nonce:null===(t=this.$config)||void 0===t||null===(t=t.csp)||void 0===t?void 0:t.nonce}),this._loadGlobalStyles(),this._hook("onBeforeMount")},mounted:function(){this._hook("onMounted")},beforeUpdate:function(){this._hook("onBeforeUpdate")},updated:function(){this._hook("onUpdated")},beforeUnmount:function(){this._hook("onBeforeUnmount")},unmounted:function(){this._hook("onUnmounted")},methods:{_hook:function(t){if(!this.$options.hostName){var e=this._usePT(this._getPT(this.pt,this.$.type.name),this._getOptionValue,"hooks.".concat(t)),n=this._useDefaultPT(this._getOptionValue,"hooks.".concat(t));null==e||e(),null==n||n()}},_mergeProps:function(t){for(var i=arguments.length,o=new Array(i>1?i-1:0),r=1;r<i;r++)o[r-1]=arguments[r];return e.ObjectUtils.isFunction(t)?t.apply(void 0,o):n.mergeProps.apply(void 0,o)},_loadGlobalStyles:function(){var t,n=this._useGlobalPT(this._getOptionValue,"global.css",this.$params);e.ObjectUtils.isNotEmpty(n)&&p.loadGlobalStyle(n,{nonce:null===(t=this.$config)||void 0===t||null===(t=t.csp)||void 0===t?void 0:t.nonce})},_getHostInstance:function(t){return t?this.$options.hostName?t.$.type.name===this.$options.hostName?t:this._getHostInstance(t.$parentInstance):t.$parentInstance:void 0},_getPropValue:function(t){var e;return this[t]||(null===(e=this._getHostInstance(this))||void 0===e?void 0:e[t])},_getOptionValue:function(t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=e.ObjectUtils.toFlatCase(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"").split("."),o=i.shift();return o?e.ObjectUtils.isObject(t)?this._getOptionValue(e.ObjectUtils.getItemValue(t[Object.keys(t).find((function(t){return e.ObjectUtils.toFlatCase(t)===o}))||""],n),i.join("."),n):void 0:e.ObjectUtils.getItemValue(t,n)},_getPTValue:function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],r=/./g.test(n)&&!!i[n.split(".")[0]],l=this._getPropValue("ptOptions")||(null===(t=this.$config)||void 0===t?void 0:t.ptOptions)||{},s=l.mergeSections,u=void 0===s||s,a=l.mergeProps,c=void 0!==a&&a,p=o?r?this._useGlobalPT(this._getPTClassValue,n,i):this._useDefaultPT(this._getPTClassValue,n,i):void 0,v=r?void 0:this._getPTSelf(e,this._getPTClassValue,n,P(P({},i),{},{global:p||{}})),d=this._getPTDatasets(n);return u||!u&&v?c?this._mergeProps(c,p,v,d):P(P(P({},p),v),d):P(P({},v),d)},_getPTSelf:function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length,i=new Array(e>1?e-1:0),o=1;o<e;o++)i[o-1]=arguments[o];return n.mergeProps(this._usePT.apply(this,[this._getPT(t,this.$name)].concat(i)),this._usePT.apply(this,[this.$_attrsPT].concat(i)))},_getPTDatasets:function(){var t,n,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",o="data-pc-",r="root"===i&&e.ObjectUtils.isNotEmpty(null===(t=this.pt)||void 0===t?void 0:t["data-pc-section"]);return"transition"!==i&&P(P({},"root"===i&&P(_({},"".concat(o,"name"),e.ObjectUtils.toFlatCase(r?null===(n=this.pt)||void 0===n?void 0:n["data-pc-section"]:this.$.type.name)),r&&_({},"".concat(o,"extend"),e.ObjectUtils.toFlatCase(this.$.type.name)))),{},_({},"".concat(o,"section"),e.ObjectUtils.toFlatCase(i)))},_getPTClassValue:function(){var t=this._getOptionValue.apply(this,arguments);return e.ObjectUtils.isString(t)||e.ObjectUtils.isArray(t)?{class:t}:t},_getPT:function(t){var n=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=arguments.length>2?arguments[2]:void 0,r=function(t){var r,l=arguments.length>1&&void 0!==arguments[1]&&arguments[1],s=o?o(t):t,u=e.ObjectUtils.toFlatCase(i),a=e.ObjectUtils.toFlatCase(n.$name);return null!==(r=l?u!==a?null==s?void 0:s[u]:void 0:null==s?void 0:s[u])&&void 0!==r?r:s};return null!=t&&t.hasOwnProperty("_usept")?{_usept:t._usept,originalValue:r(t.originalValue),value:r(t.value)}:r(t,!0)},_usePT:function(t,n,i,o){var r=function(t){return n(t,i,o)};if(null!=t&&t.hasOwnProperty("_usept")){var l,s=t._usept||(null===(l=this.$config)||void 0===l?void 0:l.ptOptions)||{},u=s.mergeSections,a=void 0===u||u,c=s.mergeProps,p=void 0!==c&&c,v=r(t.originalValue),d=r(t.value);if(void 0===v&&void 0===d)return;return e.ObjectUtils.isString(d)?d:e.ObjectUtils.isString(v)?v:a||!a&&d?p?this._mergeProps(p,v,d):P(P({},v),d):d}return r(t)},_useGlobalPT:function(t,e,n){return this._usePT(this.globalPT,t,e,n)},_useDefaultPT:function(t,e,n){return this._usePT(this.defaultPT,t,e,n)},ptm:function(){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this._getPTValue(this.pt,arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",P(P({},this.$params),t))},ptmi:function(){return n.mergeProps(this.$_attrsNoPT,this.ptm(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}))},ptmo:function(){return this._getPTValue(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",P({instance:this},arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}),!1)},cx:function(){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.isUnstyled?void 0:this._getOptionValue(this.$style.classes,arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",P(P({},this.$params),t))},sx:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!(arguments.length>1&&void 0!==arguments[1])||arguments[1]){var n=this._getOptionValue(this.$style.inlineStyles,t,P(P({},this.$params),e));return[this._getOptionValue(p.inlineStyles,t,P(P({},this.$params),e)),n]}}},computed:{globalPT:function(){var t,n=this;return this._getPT(null===(t=this.$config)||void 0===t?void 0:t.pt,void 0,(function(t){return e.ObjectUtils.getItemValue(t,{instance:n})}))},defaultPT:function(){var t,n=this;return this._getPT(null===(t=this.$config)||void 0===t?void 0:t.pt,void 0,(function(t){return n._getOptionValue(t,n.$name,P({},n.$params))||e.ObjectUtils.getItemValue(t,P({},n.$params))}))},isUnstyled:function(){var t;return void 0!==this.unstyled?this.unstyled:null===(t=this.$config)||void 0===t?void 0:t.unstyled},$params:function(){var t=this._getHostInstance(this)||this.$parent;return{instance:this,props:this.$props,state:this.$data,attrs:this.$attrs,parent:{instance:t,props:null==t?void 0:t.$props,state:null==t?void 0:t.$data,attrs:null==t?void 0:t.$attrs},parentInstance:t}},$style:function(){return P(P({classes:void 0,inlineStyles:void 0,loadStyle:function(){},loadCustomStyle:function(){}},(this._getHostInstance(this)||{}).$style),this.$options.style)},$config:function(){var t;return null===(t=this.$primevue)||void 0===t?void 0:t.config},$name:function(){return this.$options.hostName||this.$.type.name},$_attrsPT:function(){return Object.entries(this.$attrs||{}).filter((function(t){var e=f(t,1)[0];return null==e?void 0:e.startsWith("pt:")})).reduce((function(t,e){var n,i=f(e,2),o=i[1],r=i[0].split(":"),l=(b(n=r)||d(n)||g(n)||h()).slice(1);return null==l||l.reduce((function(t,e,n,i){return!t[e]&&(t[e]=n===i.length-1?o:{}),t[e]}),t),t}),{})},$_attrsNoPT:function(){return Object.entries(this.$attrs||{}).filter((function(t){var e=f(t,1)[0];return!(null!=e&&e.startsWith("pt:"))})).reduce((function(t,e){var n=f(e,2);return t[n[0]]=n[1],t}),{})}}};module.exports=j;
1
+ "use strict";var t=require("primevue/base/style"),e=require("primevue/utils"),n=require("vue"),i=require("primevue/usestyle");function o(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var r=o(t);function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach((function(e){a(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function a(t,e,n){var i;return(e="symbol"==l(i=c(e,"string"))?i:String(i))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c(t,e){if("object"!=l(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=l(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var p=r.default.extend({name:"common",loadGlobalStyle:function(t){return i.useStyle(t,u({name:"global"},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}))}});function v(t){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},v(t)}function d(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function f(t,e){return b(t)||m(t,e)||g(t,e)||h()}function h(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function g(t,e){if(t){if("string"==typeof t)return y(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y(t,e):void 0}}function y(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function m(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,o,r,l,s=[],u=!0,a=!1;try{if(r=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(i=r.call(n)).done)&&(s.push(i.value),s.length!==e);u=!0);}catch(t){a=!0,o=t}finally{try{if(!u&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(a)throw o}}return s}}function b(t){if(Array.isArray(t))return t}function O(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function P(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?O(Object(n),!0).forEach((function(e){_(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function _(t,e,n){var i;return(e="symbol"==v(i=$(e,"string"))?i:String(i))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function $(t,e){if("object"!=v(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=v(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var j={name:"BaseComponent",props:{pt:{type:Object,default:void 0},ptOptions:{type:Object,default:void 0},unstyled:{type:Boolean,default:void 0}},inject:{$parentInstance:{default:void 0}},watch:{isUnstyled:{immediate:!0,handler:function(t){var e,n;t||(p.loadStyle({nonce:null===(e=this.$primevueConfig)||void 0===e||null===(e=e.csp)||void 0===e?void 0:e.nonce}),this.$options.style&&this.$style.loadStyle({nonce:null===(n=this.$primevueConfig)||void 0===n||null===(n=n.csp)||void 0===n?void 0:n.nonce}))}}},beforeCreate:function(){var t,e,n,i,o,r,l,s,u,a,c,p=null===(t=this.pt)||void 0===t?void 0:t._usept,v=p?null===(e=this.pt)||void 0===e||null===(e=e.originalValue)||void 0===e?void 0:e[this.$.type.name]:void 0;null===(i=(p?null===(n=this.pt)||void 0===n||null===(n=n.value)||void 0===n?void 0:n[this.$.type.name]:this.pt)||v)||void 0===i||null===(i=i.hooks)||void 0===i||null===(o=i.onBeforeCreate)||void 0===o||o.call(i);var d=null===(r=this.$primevueConfig)||void 0===r||null===(r=r.pt)||void 0===r?void 0:r._usept,f=d?null===(l=this.$primevue)||void 0===l||null===(l=l.config)||void 0===l||null===(l=l.pt)||void 0===l?void 0:l.originalValue:void 0;null===(a=(d?null===(s=this.$primevue)||void 0===s||null===(s=s.config)||void 0===s||null===(s=s.pt)||void 0===s?void 0:s.value:null===(u=this.$primevue)||void 0===u||null===(u=u.config)||void 0===u?void 0:u.pt)||f)||void 0===a||null===(a=a[this.$.type.name])||void 0===a||null===(a=a.hooks)||void 0===a||null===(c=a.onBeforeCreate)||void 0===c||c.call(a)},created:function(){this._hook("onCreated")},beforeMount:function(){var t;r.default.loadStyle({nonce:null===(t=this.$primevueConfig)||void 0===t||null===(t=t.csp)||void 0===t?void 0:t.nonce}),this._loadGlobalStyles(),this._hook("onBeforeMount")},mounted:function(){this._hook("onMounted")},beforeUpdate:function(){this._hook("onBeforeUpdate")},updated:function(){this._hook("onUpdated")},beforeUnmount:function(){this._hook("onBeforeUnmount")},unmounted:function(){this._hook("onUnmounted")},methods:{_hook:function(t){if(!this.$options.hostName){var e=this._usePT(this._getPT(this.pt,this.$.type.name),this._getOptionValue,"hooks.".concat(t)),n=this._useDefaultPT(this._getOptionValue,"hooks.".concat(t));null==e||e(),null==n||n()}},_mergeProps:function(t){for(var i=arguments.length,o=new Array(i>1?i-1:0),r=1;r<i;r++)o[r-1]=arguments[r];return e.ObjectUtils.isFunction(t)?t.apply(void 0,o):n.mergeProps.apply(void 0,o)},_loadGlobalStyles:function(){var t,n=this._useGlobalPT(this._getOptionValue,"global.css",this.$params);e.ObjectUtils.isNotEmpty(n)&&p.loadGlobalStyle(n,{nonce:null===(t=this.$primevueConfig)||void 0===t||null===(t=t.csp)||void 0===t?void 0:t.nonce})},_getHostInstance:function(t){return t?this.$options.hostName?t.$.type.name===this.$options.hostName?t:this._getHostInstance(t.$parentInstance):t.$parentInstance:void 0},_getPropValue:function(t){var e;return this[t]||(null===(e=this._getHostInstance(this))||void 0===e?void 0:e[t])},_getOptionValue:function(t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=e.ObjectUtils.toFlatCase(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"").split("."),o=i.shift();return o?e.ObjectUtils.isObject(t)?this._getOptionValue(e.ObjectUtils.getItemValue(t[Object.keys(t).find((function(t){return e.ObjectUtils.toFlatCase(t)===o}))||""],n),i.join("."),n):void 0:e.ObjectUtils.getItemValue(t,n)},_getPTValue:function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],r=/./g.test(n)&&!!i[n.split(".")[0]],l=this._getPropValue("ptOptions")||(null===(t=this.$primevueConfig)||void 0===t?void 0:t.ptOptions)||{},s=l.mergeSections,u=void 0===s||s,a=l.mergeProps,c=void 0!==a&&a,p=o?r?this._useGlobalPT(this._getPTClassValue,n,i):this._useDefaultPT(this._getPTClassValue,n,i):void 0,v=r?void 0:this._getPTSelf(e,this._getPTClassValue,n,P(P({},i),{},{global:p||{}})),d=this._getPTDatasets(n);return u||!u&&v?c?this._mergeProps(c,p,v,d):P(P(P({},p),v),d):P(P({},v),d)},_getPTSelf:function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length,i=new Array(e>1?e-1:0),o=1;o<e;o++)i[o-1]=arguments[o];return n.mergeProps(this._usePT.apply(this,[this._getPT(t,this.$name)].concat(i)),this._usePT.apply(this,[this.$_attrsPT].concat(i)))},_getPTDatasets:function(){var t,n,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",o="data-pc-",r="root"===i&&e.ObjectUtils.isNotEmpty(null===(t=this.pt)||void 0===t?void 0:t["data-pc-section"]);return"transition"!==i&&P(P({},"root"===i&&P(_({},"".concat(o,"name"),e.ObjectUtils.toFlatCase(r?null===(n=this.pt)||void 0===n?void 0:n["data-pc-section"]:this.$.type.name)),r&&_({},"".concat(o,"extend"),e.ObjectUtils.toFlatCase(this.$.type.name)))),{},_({},"".concat(o,"section"),e.ObjectUtils.toFlatCase(i)))},_getPTClassValue:function(){var t=this._getOptionValue.apply(this,arguments);return e.ObjectUtils.isString(t)||e.ObjectUtils.isArray(t)?{class:t}:t},_getPT:function(t){var n=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=arguments.length>2?arguments[2]:void 0,r=function(t){var r,l=arguments.length>1&&void 0!==arguments[1]&&arguments[1],s=o?o(t):t,u=e.ObjectUtils.toFlatCase(i),a=e.ObjectUtils.toFlatCase(n.$name);return null!==(r=l?u!==a?null==s?void 0:s[u]:void 0:null==s?void 0:s[u])&&void 0!==r?r:s};return null!=t&&t.hasOwnProperty("_usept")?{_usept:t._usept,originalValue:r(t.originalValue),value:r(t.value)}:r(t,!0)},_usePT:function(t,n,i,o){var r=function(t){return n(t,i,o)};if(null!=t&&t.hasOwnProperty("_usept")){var l,s=t._usept||(null===(l=this.$primevueConfig)||void 0===l?void 0:l.ptOptions)||{},u=s.mergeSections,a=void 0===u||u,c=s.mergeProps,p=void 0!==c&&c,v=r(t.originalValue),d=r(t.value);if(void 0===v&&void 0===d)return;return e.ObjectUtils.isString(d)?d:e.ObjectUtils.isString(v)?v:a||!a&&d?p?this._mergeProps(p,v,d):P(P({},v),d):d}return r(t)},_useGlobalPT:function(t,e,n){return this._usePT(this.globalPT,t,e,n)},_useDefaultPT:function(t,e,n){return this._usePT(this.defaultPT,t,e,n)},ptm:function(){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this._getPTValue(this.pt,arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",P(P({},this.$params),t))},ptmi:function(){return n.mergeProps(this.$_attrsNoPT,this.ptm(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}))},ptmo:function(){return this._getPTValue(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",P({instance:this},arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}),!1)},cx:function(){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.isUnstyled?void 0:this._getOptionValue(this.$style.classes,arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",P(P({},this.$params),t))},sx:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!(arguments.length>1&&void 0!==arguments[1])||arguments[1]){var n=this._getOptionValue(this.$style.inlineStyles,t,P(P({},this.$params),e));return[this._getOptionValue(p.inlineStyles,t,P(P({},this.$params),e)),n]}}},computed:{globalPT:function(){var t,n=this;return this._getPT(null===(t=this.$primevueConfig)||void 0===t?void 0:t.pt,void 0,(function(t){return e.ObjectUtils.getItemValue(t,{instance:n})}))},defaultPT:function(){var t,n=this;return this._getPT(null===(t=this.$primevueConfig)||void 0===t?void 0:t.pt,void 0,(function(t){return n._getOptionValue(t,n.$name,P({},n.$params))||e.ObjectUtils.getItemValue(t,P({},n.$params))}))},isUnstyled:function(){var t;return void 0!==this.unstyled?this.unstyled:null===(t=this.$primevueConfig)||void 0===t?void 0:t.unstyled},$params:function(){var t=this._getHostInstance(this)||this.$parent;return{instance:this,props:this.$props,state:this.$data,attrs:this.$attrs,parent:{instance:t,props:null==t?void 0:t.$props,state:null==t?void 0:t.$data,attrs:null==t?void 0:t.$attrs},parentInstance:t}},$style:function(){return P(P({classes:void 0,inlineStyles:void 0,loadStyle:function(){},loadCustomStyle:function(){}},(this._getHostInstance(this)||{}).$style),this.$options.style)},$primevueConfig:function(){var t;return null===(t=this.$primevue)||void 0===t?void 0:t.config},$name:function(){return this.$options.hostName||this.$.type.name},$_attrsPT:function(){return Object.entries(this.$attrs||{}).filter((function(t){var e=f(t,1)[0];return null==e?void 0:e.startsWith("pt:")})).reduce((function(t,e){var n,i=f(e,2),o=i[1],r=i[0].split(":"),l=(b(n=r)||d(n)||g(n)||h()).slice(1);return null==l||l.reduce((function(t,e,n,i){return!t[e]&&(t[e]=n===i.length-1?o:{}),t[e]}),t),t}),{})},$_attrsNoPT:function(){return Object.entries(this.$attrs||{}).filter((function(t){var e=f(t,1)[0];return!(null!=e&&e.startsWith("pt:"))})).reduce((function(t,e){var n=f(e,2);return t[n[0]]=n[1],t}),{})}}};module.exports=j;
@@ -59,24 +59,24 @@ var script = {
59
59
  immediate: true,
60
60
  handler: function handler(newValue) {
61
61
  if (!newValue) {
62
- var _this$$config, _this$$config2;
62
+ var _this$$primevueConfig, _this$$primevueConfig2;
63
63
  BaseComponentStyle.loadStyle({
64
- nonce: (_this$$config = this.$config) === null || _this$$config === void 0 || (_this$$config = _this$$config.csp) === null || _this$$config === void 0 ? void 0 : _this$$config.nonce
64
+ nonce: (_this$$primevueConfig = this.$primevueConfig) === null || _this$$primevueConfig === void 0 || (_this$$primevueConfig = _this$$primevueConfig.csp) === null || _this$$primevueConfig === void 0 ? void 0 : _this$$primevueConfig.nonce
65
65
  });
66
66
  this.$options.style && this.$style.loadStyle({
67
- nonce: (_this$$config2 = this.$config) === null || _this$$config2 === void 0 || (_this$$config2 = _this$$config2.csp) === null || _this$$config2 === void 0 ? void 0 : _this$$config2.nonce
67
+ nonce: (_this$$primevueConfig2 = this.$primevueConfig) === null || _this$$primevueConfig2 === void 0 || (_this$$primevueConfig2 = _this$$primevueConfig2.csp) === null || _this$$primevueConfig2 === void 0 ? void 0 : _this$$primevueConfig2.nonce
68
68
  });
69
69
  }
70
70
  }
71
71
  }
72
72
  },
73
73
  beforeCreate: function beforeCreate() {
74
- var _this$pt, _this$pt2, _this$pt3, _ref, _ref$onBeforeCreate, _this$$config3, _this$$primevue, _this$$primevue2, _this$$primevue3, _ref2, _ref2$onBeforeCreate;
74
+ var _this$pt, _this$pt2, _this$pt3, _ref, _ref$onBeforeCreate, _this$$primevueConfig3, _this$$primevue, _this$$primevue2, _this$$primevue3, _ref2, _ref2$onBeforeCreate;
75
75
  var _usept = (_this$pt = this.pt) === null || _this$pt === void 0 ? void 0 : _this$pt['_usept'];
76
76
  var originalValue = _usept ? (_this$pt2 = this.pt) === null || _this$pt2 === void 0 || (_this$pt2 = _this$pt2.originalValue) === null || _this$pt2 === void 0 ? void 0 : _this$pt2[this.$.type.name] : undefined;
77
77
  var value = _usept ? (_this$pt3 = this.pt) === null || _this$pt3 === void 0 || (_this$pt3 = _this$pt3.value) === null || _this$pt3 === void 0 ? void 0 : _this$pt3[this.$.type.name] : this.pt;
78
78
  (_ref = value || originalValue) === null || _ref === void 0 || (_ref = _ref.hooks) === null || _ref === void 0 || (_ref$onBeforeCreate = _ref['onBeforeCreate']) === null || _ref$onBeforeCreate === void 0 || _ref$onBeforeCreate.call(_ref);
79
- var _useptInConfig = (_this$$config3 = this.$config) === null || _this$$config3 === void 0 || (_this$$config3 = _this$$config3.pt) === null || _this$$config3 === void 0 ? void 0 : _this$$config3['_usept'];
79
+ var _useptInConfig = (_this$$primevueConfig3 = this.$primevueConfig) === null || _this$$primevueConfig3 === void 0 || (_this$$primevueConfig3 = _this$$primevueConfig3.pt) === null || _this$$primevueConfig3 === void 0 ? void 0 : _this$$primevueConfig3['_usept'];
80
80
  var originalValueInConfig = _useptInConfig ? (_this$$primevue = this.$primevue) === null || _this$$primevue === void 0 || (_this$$primevue = _this$$primevue.config) === null || _this$$primevue === void 0 || (_this$$primevue = _this$$primevue.pt) === null || _this$$primevue === void 0 ? void 0 : _this$$primevue.originalValue : undefined;
81
81
  var valueInConfig = _useptInConfig ? (_this$$primevue2 = this.$primevue) === null || _this$$primevue2 === void 0 || (_this$$primevue2 = _this$$primevue2.config) === null || _this$$primevue2 === void 0 || (_this$$primevue2 = _this$$primevue2.pt) === null || _this$$primevue2 === void 0 ? void 0 : _this$$primevue2.value : (_this$$primevue3 = this.$primevue) === null || _this$$primevue3 === void 0 || (_this$$primevue3 = _this$$primevue3.config) === null || _this$$primevue3 === void 0 ? void 0 : _this$$primevue3.pt;
82
82
  (_ref2 = valueInConfig || originalValueInConfig) === null || _ref2 === void 0 || (_ref2 = _ref2[this.$.type.name]) === null || _ref2 === void 0 || (_ref2 = _ref2.hooks) === null || _ref2 === void 0 || (_ref2$onBeforeCreate = _ref2['onBeforeCreate']) === null || _ref2$onBeforeCreate === void 0 || _ref2$onBeforeCreate.call(_ref2);
@@ -85,9 +85,9 @@ var script = {
85
85
  this._hook('onCreated');
86
86
  },
87
87
  beforeMount: function beforeMount() {
88
- var _this$$config4;
88
+ var _this$$primevueConfig4;
89
89
  BaseStyle.loadStyle({
90
- nonce: (_this$$config4 = this.$config) === null || _this$$config4 === void 0 || (_this$$config4 = _this$$config4.csp) === null || _this$$config4 === void 0 ? void 0 : _this$$config4.nonce
90
+ nonce: (_this$$primevueConfig4 = this.$primevueConfig) === null || _this$$primevueConfig4 === void 0 || (_this$$primevueConfig4 = _this$$primevueConfig4.csp) === null || _this$$primevueConfig4 === void 0 ? void 0 : _this$$primevueConfig4.nonce
91
91
  });
92
92
  this._loadGlobalStyles();
93
93
  this._hook('onBeforeMount');
@@ -123,7 +123,7 @@ var script = {
123
123
  return ObjectUtils.isFunction(fn) ? fn.apply(void 0, args) : mergeProps.apply(void 0, args);
124
124
  },
125
125
  _loadGlobalStyles: function _loadGlobalStyles() {
126
- var _this$$config5;
126
+ var _this$$primevueConfig5;
127
127
  /*
128
128
  * @todo Add self custom css support;
129
129
  * <Panel :pt="{ css: `...` }" .../>
@@ -136,7 +136,7 @@ var script = {
136
136
 
137
137
  var globalCSS = this._useGlobalPT(this._getOptionValue, 'global.css', this.$params);
138
138
  ObjectUtils.isNotEmpty(globalCSS) && BaseComponentStyle.loadGlobalStyle(globalCSS, {
139
- nonce: (_this$$config5 = this.$config) === null || _this$$config5 === void 0 || (_this$$config5 = _this$$config5.csp) === null || _this$$config5 === void 0 ? void 0 : _this$$config5.nonce
139
+ nonce: (_this$$primevueConfig5 = this.$primevueConfig) === null || _this$$primevueConfig5 === void 0 || (_this$$primevueConfig5 = _this$$primevueConfig5.csp) === null || _this$$primevueConfig5 === void 0 ? void 0 : _this$$primevueConfig5.nonce
140
140
  });
141
141
  },
142
142
  _getHostInstance: function _getHostInstance(instance) {
@@ -156,13 +156,13 @@ var script = {
156
156
  }) || ''], params), fKeys.join('.'), params) : undefined : ObjectUtils.getItemValue(options, params);
157
157
  },
158
158
  _getPTValue: function _getPTValue() {
159
- var _this$$config6;
159
+ var _this$$primevueConfig6;
160
160
  var obj = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
161
161
  var key = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
162
162
  var params = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
163
163
  var searchInDefaultPT = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true;
164
164
  var searchOut = /./g.test(key) && !!params[key.split('.')[0]];
165
- var _ref3 = this._getPropValue('ptOptions') || ((_this$$config6 = this.$config) === null || _this$$config6 === void 0 ? void 0 : _this$$config6.ptOptions) || {},
165
+ var _ref3 = this._getPropValue('ptOptions') || ((_this$$primevueConfig6 = this.$primevueConfig) === null || _this$$primevueConfig6 === void 0 ? void 0 : _this$$primevueConfig6.ptOptions) || {},
166
166
  _ref3$mergeSections = _ref3.mergeSections,
167
167
  mergeSections = _ref3$mergeSections === void 0 ? true : _ref3$mergeSections,
168
168
  _ref3$mergeProps = _ref3.mergeProps,
@@ -220,8 +220,8 @@ var script = {
220
220
  return callback(value, key, params);
221
221
  };
222
222
  if (pt !== null && pt !== void 0 && pt.hasOwnProperty('_usept')) {
223
- var _this$$config7;
224
- var _ref6 = pt['_usept'] || ((_this$$config7 = this.$config) === null || _this$$config7 === void 0 ? void 0 : _this$$config7.ptOptions) || {},
223
+ var _this$$primevueConfig7;
224
+ var _ref6 = pt['_usept'] || ((_this$$primevueConfig7 = this.$primevueConfig) === null || _this$$primevueConfig7 === void 0 ? void 0 : _this$$primevueConfig7.ptOptions) || {},
225
225
  _ref6$mergeSections = _ref6.mergeSections,
226
226
  mergeSections = _ref6$mergeSections === void 0 ? true : _ref6$mergeSections,
227
227
  _ref6$mergeProps = _ref6.mergeProps,
@@ -277,24 +277,24 @@ var script = {
277
277
  },
278
278
  computed: {
279
279
  globalPT: function globalPT() {
280
- var _this$$config8,
280
+ var _this$$primevueConfig8,
281
281
  _this2 = this;
282
- return this._getPT((_this$$config8 = this.$config) === null || _this$$config8 === void 0 ? void 0 : _this$$config8.pt, undefined, function (value) {
282
+ return this._getPT((_this$$primevueConfig8 = this.$primevueConfig) === null || _this$$primevueConfig8 === void 0 ? void 0 : _this$$primevueConfig8.pt, undefined, function (value) {
283
283
  return ObjectUtils.getItemValue(value, {
284
284
  instance: _this2
285
285
  });
286
286
  });
287
287
  },
288
288
  defaultPT: function defaultPT() {
289
- var _this$$config9,
289
+ var _this$$primevueConfig9,
290
290
  _this3 = this;
291
- return this._getPT((_this$$config9 = this.$config) === null || _this$$config9 === void 0 ? void 0 : _this$$config9.pt, undefined, function (value) {
291
+ return this._getPT((_this$$primevueConfig9 = this.$primevueConfig) === null || _this$$primevueConfig9 === void 0 ? void 0 : _this$$primevueConfig9.pt, undefined, function (value) {
292
292
  return _this3._getOptionValue(value, _this3.$name, _objectSpread({}, _this3.$params)) || ObjectUtils.getItemValue(value, _objectSpread({}, _this3.$params));
293
293
  });
294
294
  },
295
295
  isUnstyled: function isUnstyled() {
296
- var _this$$config10;
297
- return this.unstyled !== undefined ? this.unstyled : (_this$$config10 = this.$config) === null || _this$$config10 === void 0 ? void 0 : _this$$config10.unstyled;
296
+ var _this$$primevueConfig10;
297
+ return this.unstyled !== undefined ? this.unstyled : (_this$$primevueConfig10 = this.$primevueConfig) === null || _this$$primevueConfig10 === void 0 ? void 0 : _this$$primevueConfig10.unstyled;
298
298
  },
299
299
  $params: function $params() {
300
300
  var parentInstance = this._getHostInstance(this) || this.$parent;
@@ -321,7 +321,7 @@ var script = {
321
321
  loadCustomStyle: function loadCustomStyle() {}
322
322
  }, (this._getHostInstance(this) || {}).$style), this.$options.style);
323
323
  },
324
- $config: function $config() {
324
+ $primevueConfig: function $primevueConfig() {
325
325
  var _this$$primevue4;
326
326
  return (_this$$primevue4 = this.$primevue) === null || _this$$primevue4 === void 0 ? void 0 : _this$$primevue4.config;
327
327
  },
@@ -1 +1 @@
1
- import t from"primevue/base/style";import{ObjectUtils as e}from"primevue/utils";import{mergeProps as n}from"vue";import{useStyle as o}from"primevue/usestyle";function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){s(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function s(t,e,n){var o;return(e="symbol"==i(o=u(e,"string"))?o:String(o))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function u(t,e){if("object"!=i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!=i(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var a=t.extend({name:"common",loadGlobalStyle:function(t){return o(t,l({name:"global"},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}))}});function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function p(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function v(t,e){return y(t)||g(t,e)||d(t,e)||f()}function f(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function d(t,e){if(t){if("string"==typeof t)return h(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(t,e):void 0}}function h(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=new Array(e);n<e;n++)o[n]=t[n];return o}function g(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var o,i,r,l,s=[],u=!0,a=!1;try{if(r=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(o=r.call(n)).done)&&(s.push(o.value),s.length!==e);u=!0);}catch(t){a=!0,i=t}finally{try{if(!u&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(a)throw i}}return s}}function y(t){if(Array.isArray(t))return t}function m(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function b(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?m(Object(n),!0).forEach((function(e){_(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function _(t,e,n){var o;return(e="symbol"==c(o=P(e,"string"))?o:String(o))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function P(t,e){if("object"!=c(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!=c(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var $={name:"BaseComponent",props:{pt:{type:Object,default:void 0},ptOptions:{type:Object,default:void 0},unstyled:{type:Boolean,default:void 0}},inject:{$parentInstance:{default:void 0}},watch:{isUnstyled:{immediate:!0,handler:function(t){var e,n;t||(a.loadStyle({nonce:null===(e=this.$config)||void 0===e||null===(e=e.csp)||void 0===e?void 0:e.nonce}),this.$options.style&&this.$style.loadStyle({nonce:null===(n=this.$config)||void 0===n||null===(n=n.csp)||void 0===n?void 0:n.nonce}))}}},beforeCreate:function(){var t,e,n,o,i,r,l,s,u,a,c,p=null===(t=this.pt)||void 0===t?void 0:t._usept,v=p?null===(e=this.pt)||void 0===e||null===(e=e.originalValue)||void 0===e?void 0:e[this.$.type.name]:void 0;null===(o=(p?null===(n=this.pt)||void 0===n||null===(n=n.value)||void 0===n?void 0:n[this.$.type.name]:this.pt)||v)||void 0===o||null===(o=o.hooks)||void 0===o||null===(i=o.onBeforeCreate)||void 0===i||i.call(o);var f=null===(r=this.$config)||void 0===r||null===(r=r.pt)||void 0===r?void 0:r._usept,d=f?null===(l=this.$primevue)||void 0===l||null===(l=l.config)||void 0===l||null===(l=l.pt)||void 0===l?void 0:l.originalValue:void 0;null===(a=(f?null===(s=this.$primevue)||void 0===s||null===(s=s.config)||void 0===s||null===(s=s.pt)||void 0===s?void 0:s.value:null===(u=this.$primevue)||void 0===u||null===(u=u.config)||void 0===u?void 0:u.pt)||d)||void 0===a||null===(a=a[this.$.type.name])||void 0===a||null===(a=a.hooks)||void 0===a||null===(c=a.onBeforeCreate)||void 0===c||c.call(a)},created:function(){this._hook("onCreated")},beforeMount:function(){var e;t.loadStyle({nonce:null===(e=this.$config)||void 0===e||null===(e=e.csp)||void 0===e?void 0:e.nonce}),this._loadGlobalStyles(),this._hook("onBeforeMount")},mounted:function(){this._hook("onMounted")},beforeUpdate:function(){this._hook("onBeforeUpdate")},updated:function(){this._hook("onUpdated")},beforeUnmount:function(){this._hook("onBeforeUnmount")},unmounted:function(){this._hook("onUnmounted")},methods:{_hook:function(t){if(!this.$options.hostName){var e=this._usePT(this._getPT(this.pt,this.$.type.name),this._getOptionValue,"hooks.".concat(t)),n=this._useDefaultPT(this._getOptionValue,"hooks.".concat(t));null==e||e(),null==n||n()}},_mergeProps:function(t){for(var o=arguments.length,i=new Array(o>1?o-1:0),r=1;r<o;r++)i[r-1]=arguments[r];return e.isFunction(t)?t.apply(void 0,i):n.apply(void 0,i)},_loadGlobalStyles:function(){var t,n=this._useGlobalPT(this._getOptionValue,"global.css",this.$params);e.isNotEmpty(n)&&a.loadGlobalStyle(n,{nonce:null===(t=this.$config)||void 0===t||null===(t=t.csp)||void 0===t?void 0:t.nonce})},_getHostInstance:function(t){return t?this.$options.hostName?t.$.type.name===this.$options.hostName?t:this._getHostInstance(t.$parentInstance):t.$parentInstance:void 0},_getPropValue:function(t){var e;return this[t]||(null===(e=this._getHostInstance(this))||void 0===e?void 0:e[t])},_getOptionValue:function(t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=e.toFlatCase(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"").split("."),i=o.shift();return i?e.isObject(t)?this._getOptionValue(e.getItemValue(t[Object.keys(t).find((function(t){return e.toFlatCase(t)===i}))||""],n),o.join("."),n):void 0:e.getItemValue(t,n)},_getPTValue:function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],r=/./g.test(n)&&!!o[n.split(".")[0]],l=this._getPropValue("ptOptions")||(null===(t=this.$config)||void 0===t?void 0:t.ptOptions)||{},s=l.mergeSections,u=void 0===s||s,a=l.mergeProps,c=void 0!==a&&a,p=i?r?this._useGlobalPT(this._getPTClassValue,n,o):this._useDefaultPT(this._getPTClassValue,n,o):void 0,v=r?void 0:this._getPTSelf(e,this._getPTClassValue,n,b(b({},o),{},{global:p||{}})),f=this._getPTDatasets(n);return u||!u&&v?c?this._mergeProps(c,p,v,f):b(b(b({},p),v),f):b(b({},v),f)},_getPTSelf:function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length,o=new Array(e>1?e-1:0),i=1;i<e;i++)o[i-1]=arguments[i];return n(this._usePT.apply(this,[this._getPT(t,this.$name)].concat(o)),this._usePT.apply(this,[this.$_attrsPT].concat(o)))},_getPTDatasets:function(){var t,n,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",i="data-pc-",r="root"===o&&e.isNotEmpty(null===(t=this.pt)||void 0===t?void 0:t["data-pc-section"]);return"transition"!==o&&b(b({},"root"===o&&b(_({},"".concat(i,"name"),e.toFlatCase(r?null===(n=this.pt)||void 0===n?void 0:n["data-pc-section"]:this.$.type.name)),r&&_({},"".concat(i,"extend"),e.toFlatCase(this.$.type.name)))),{},_({},"".concat(i,"section"),e.toFlatCase(o)))},_getPTClassValue:function(){var t=this._getOptionValue.apply(this,arguments);return e.isString(t)||e.isArray(t)?{class:t}:t},_getPT:function(t){var n=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2?arguments[2]:void 0,r=function(t){var r,l=arguments.length>1&&void 0!==arguments[1]&&arguments[1],s=i?i(t):t,u=e.toFlatCase(o),a=e.toFlatCase(n.$name);return null!==(r=l?u!==a?null==s?void 0:s[u]:void 0:null==s?void 0:s[u])&&void 0!==r?r:s};return null!=t&&t.hasOwnProperty("_usept")?{_usept:t._usept,originalValue:r(t.originalValue),value:r(t.value)}:r(t,!0)},_usePT:function(t,n,o,i){var r=function(t){return n(t,o,i)};if(null!=t&&t.hasOwnProperty("_usept")){var l,s=t._usept||(null===(l=this.$config)||void 0===l?void 0:l.ptOptions)||{},u=s.mergeSections,a=void 0===u||u,c=s.mergeProps,p=void 0!==c&&c,v=r(t.originalValue),f=r(t.value);if(void 0===v&&void 0===f)return;return e.isString(f)?f:e.isString(v)?v:a||!a&&f?p?this._mergeProps(p,v,f):b(b({},v),f):f}return r(t)},_useGlobalPT:function(t,e,n){return this._usePT(this.globalPT,t,e,n)},_useDefaultPT:function(t,e,n){return this._usePT(this.defaultPT,t,e,n)},ptm:function(){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this._getPTValue(this.pt,arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",b(b({},this.$params),t))},ptmi:function(){return n(this.$_attrsNoPT,this.ptm(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}))},ptmo:function(){return this._getPTValue(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",b({instance:this},arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}),!1)},cx:function(){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.isUnstyled?void 0:this._getOptionValue(this.$style.classes,arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",b(b({},this.$params),t))},sx:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!(arguments.length>1&&void 0!==arguments[1])||arguments[1]){var n=this._getOptionValue(this.$style.inlineStyles,t,b(b({},this.$params),e));return[this._getOptionValue(a.inlineStyles,t,b(b({},this.$params),e)),n]}}},computed:{globalPT:function(){var t,n=this;return this._getPT(null===(t=this.$config)||void 0===t?void 0:t.pt,void 0,(function(t){return e.getItemValue(t,{instance:n})}))},defaultPT:function(){var t,n=this;return this._getPT(null===(t=this.$config)||void 0===t?void 0:t.pt,void 0,(function(t){return n._getOptionValue(t,n.$name,b({},n.$params))||e.getItemValue(t,b({},n.$params))}))},isUnstyled:function(){var t;return void 0!==this.unstyled?this.unstyled:null===(t=this.$config)||void 0===t?void 0:t.unstyled},$params:function(){var t=this._getHostInstance(this)||this.$parent;return{instance:this,props:this.$props,state:this.$data,attrs:this.$attrs,parent:{instance:t,props:null==t?void 0:t.$props,state:null==t?void 0:t.$data,attrs:null==t?void 0:t.$attrs},parentInstance:t}},$style:function(){return b(b({classes:void 0,inlineStyles:void 0,loadStyle:function(){},loadCustomStyle:function(){}},(this._getHostInstance(this)||{}).$style),this.$options.style)},$config:function(){var t;return null===(t=this.$primevue)||void 0===t?void 0:t.config},$name:function(){return this.$options.hostName||this.$.type.name},$_attrsPT:function(){return Object.entries(this.$attrs||{}).filter((function(t){var e=v(t,1)[0];return null==e?void 0:e.startsWith("pt:")})).reduce((function(t,e){var n,o=v(e,2),i=o[1],r=o[0].split(":"),l=(y(n=r)||p(n)||d(n)||f()).slice(1);return null==l||l.reduce((function(t,e,n,o){return!t[e]&&(t[e]=n===o.length-1?i:{}),t[e]}),t),t}),{})},$_attrsNoPT:function(){return Object.entries(this.$attrs||{}).filter((function(t){var e=v(t,1)[0];return!(null!=e&&e.startsWith("pt:"))})).reduce((function(t,e){var n=v(e,2);return t[n[0]]=n[1],t}),{})}}};export{$ as default};
1
+ import t from"primevue/base/style";import{ObjectUtils as e}from"primevue/utils";import{mergeProps as n}from"vue";import{useStyle as o}from"primevue/usestyle";function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){u(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function u(t,e,n){var o;return(e="symbol"==i(o=s(e,"string"))?o:String(o))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function s(t,e){if("object"!=i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!=i(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var a=t.extend({name:"common",loadGlobalStyle:function(t){return o(t,l({name:"global"},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}))}});function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function p(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function v(t,e){return g(t)||m(t,e)||d(t,e)||f()}function f(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function d(t,e){if(t){if("string"==typeof t)return h(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(t,e):void 0}}function h(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=new Array(e);n<e;n++)o[n]=t[n];return o}function m(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var o,i,r,l,u=[],s=!0,a=!1;try{if(r=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=r.call(n)).done)&&(u.push(o.value),u.length!==e);s=!0);}catch(t){a=!0,i=t}finally{try{if(!s&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(a)throw i}}return u}}function g(t){if(Array.isArray(t))return t}function y(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function b(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?y(Object(n),!0).forEach((function(e){_(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function _(t,e,n){var o;return(e="symbol"==c(o=P(e,"string"))?o:String(o))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function P(t,e){if("object"!=c(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!=c(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var $={name:"BaseComponent",props:{pt:{type:Object,default:void 0},ptOptions:{type:Object,default:void 0},unstyled:{type:Boolean,default:void 0}},inject:{$parentInstance:{default:void 0}},watch:{isUnstyled:{immediate:!0,handler:function(t){var e,n;t||(a.loadStyle({nonce:null===(e=this.$primevueConfig)||void 0===e||null===(e=e.csp)||void 0===e?void 0:e.nonce}),this.$options.style&&this.$style.loadStyle({nonce:null===(n=this.$primevueConfig)||void 0===n||null===(n=n.csp)||void 0===n?void 0:n.nonce}))}}},beforeCreate:function(){var t,e,n,o,i,r,l,u,s,a,c,p=null===(t=this.pt)||void 0===t?void 0:t._usept,v=p?null===(e=this.pt)||void 0===e||null===(e=e.originalValue)||void 0===e?void 0:e[this.$.type.name]:void 0;null===(o=(p?null===(n=this.pt)||void 0===n||null===(n=n.value)||void 0===n?void 0:n[this.$.type.name]:this.pt)||v)||void 0===o||null===(o=o.hooks)||void 0===o||null===(i=o.onBeforeCreate)||void 0===i||i.call(o);var f=null===(r=this.$primevueConfig)||void 0===r||null===(r=r.pt)||void 0===r?void 0:r._usept,d=f?null===(l=this.$primevue)||void 0===l||null===(l=l.config)||void 0===l||null===(l=l.pt)||void 0===l?void 0:l.originalValue:void 0;null===(a=(f?null===(u=this.$primevue)||void 0===u||null===(u=u.config)||void 0===u||null===(u=u.pt)||void 0===u?void 0:u.value:null===(s=this.$primevue)||void 0===s||null===(s=s.config)||void 0===s?void 0:s.pt)||d)||void 0===a||null===(a=a[this.$.type.name])||void 0===a||null===(a=a.hooks)||void 0===a||null===(c=a.onBeforeCreate)||void 0===c||c.call(a)},created:function(){this._hook("onCreated")},beforeMount:function(){var e;t.loadStyle({nonce:null===(e=this.$primevueConfig)||void 0===e||null===(e=e.csp)||void 0===e?void 0:e.nonce}),this._loadGlobalStyles(),this._hook("onBeforeMount")},mounted:function(){this._hook("onMounted")},beforeUpdate:function(){this._hook("onBeforeUpdate")},updated:function(){this._hook("onUpdated")},beforeUnmount:function(){this._hook("onBeforeUnmount")},unmounted:function(){this._hook("onUnmounted")},methods:{_hook:function(t){if(!this.$options.hostName){var e=this._usePT(this._getPT(this.pt,this.$.type.name),this._getOptionValue,"hooks.".concat(t)),n=this._useDefaultPT(this._getOptionValue,"hooks.".concat(t));null==e||e(),null==n||n()}},_mergeProps:function(t){for(var o=arguments.length,i=new Array(o>1?o-1:0),r=1;r<o;r++)i[r-1]=arguments[r];return e.isFunction(t)?t.apply(void 0,i):n.apply(void 0,i)},_loadGlobalStyles:function(){var t,n=this._useGlobalPT(this._getOptionValue,"global.css",this.$params);e.isNotEmpty(n)&&a.loadGlobalStyle(n,{nonce:null===(t=this.$primevueConfig)||void 0===t||null===(t=t.csp)||void 0===t?void 0:t.nonce})},_getHostInstance:function(t){return t?this.$options.hostName?t.$.type.name===this.$options.hostName?t:this._getHostInstance(t.$parentInstance):t.$parentInstance:void 0},_getPropValue:function(t){var e;return this[t]||(null===(e=this._getHostInstance(this))||void 0===e?void 0:e[t])},_getOptionValue:function(t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=e.toFlatCase(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"").split("."),i=o.shift();return i?e.isObject(t)?this._getOptionValue(e.getItemValue(t[Object.keys(t).find((function(t){return e.toFlatCase(t)===i}))||""],n),o.join("."),n):void 0:e.getItemValue(t,n)},_getPTValue:function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],r=/./g.test(n)&&!!o[n.split(".")[0]],l=this._getPropValue("ptOptions")||(null===(t=this.$primevueConfig)||void 0===t?void 0:t.ptOptions)||{},u=l.mergeSections,s=void 0===u||u,a=l.mergeProps,c=void 0!==a&&a,p=i?r?this._useGlobalPT(this._getPTClassValue,n,o):this._useDefaultPT(this._getPTClassValue,n,o):void 0,v=r?void 0:this._getPTSelf(e,this._getPTClassValue,n,b(b({},o),{},{global:p||{}})),f=this._getPTDatasets(n);return s||!s&&v?c?this._mergeProps(c,p,v,f):b(b(b({},p),v),f):b(b({},v),f)},_getPTSelf:function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length,o=new Array(e>1?e-1:0),i=1;i<e;i++)o[i-1]=arguments[i];return n(this._usePT.apply(this,[this._getPT(t,this.$name)].concat(o)),this._usePT.apply(this,[this.$_attrsPT].concat(o)))},_getPTDatasets:function(){var t,n,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",i="data-pc-",r="root"===o&&e.isNotEmpty(null===(t=this.pt)||void 0===t?void 0:t["data-pc-section"]);return"transition"!==o&&b(b({},"root"===o&&b(_({},"".concat(i,"name"),e.toFlatCase(r?null===(n=this.pt)||void 0===n?void 0:n["data-pc-section"]:this.$.type.name)),r&&_({},"".concat(i,"extend"),e.toFlatCase(this.$.type.name)))),{},_({},"".concat(i,"section"),e.toFlatCase(o)))},_getPTClassValue:function(){var t=this._getOptionValue.apply(this,arguments);return e.isString(t)||e.isArray(t)?{class:t}:t},_getPT:function(t){var n=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2?arguments[2]:void 0,r=function(t){var r,l=arguments.length>1&&void 0!==arguments[1]&&arguments[1],u=i?i(t):t,s=e.toFlatCase(o),a=e.toFlatCase(n.$name);return null!==(r=l?s!==a?null==u?void 0:u[s]:void 0:null==u?void 0:u[s])&&void 0!==r?r:u};return null!=t&&t.hasOwnProperty("_usept")?{_usept:t._usept,originalValue:r(t.originalValue),value:r(t.value)}:r(t,!0)},_usePT:function(t,n,o,i){var r=function(t){return n(t,o,i)};if(null!=t&&t.hasOwnProperty("_usept")){var l,u=t._usept||(null===(l=this.$primevueConfig)||void 0===l?void 0:l.ptOptions)||{},s=u.mergeSections,a=void 0===s||s,c=u.mergeProps,p=void 0!==c&&c,v=r(t.originalValue),f=r(t.value);if(void 0===v&&void 0===f)return;return e.isString(f)?f:e.isString(v)?v:a||!a&&f?p?this._mergeProps(p,v,f):b(b({},v),f):f}return r(t)},_useGlobalPT:function(t,e,n){return this._usePT(this.globalPT,t,e,n)},_useDefaultPT:function(t,e,n){return this._usePT(this.defaultPT,t,e,n)},ptm:function(){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this._getPTValue(this.pt,arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",b(b({},this.$params),t))},ptmi:function(){return n(this.$_attrsNoPT,this.ptm(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}))},ptmo:function(){return this._getPTValue(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",b({instance:this},arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}),!1)},cx:function(){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.isUnstyled?void 0:this._getOptionValue(this.$style.classes,arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",b(b({},this.$params),t))},sx:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!(arguments.length>1&&void 0!==arguments[1])||arguments[1]){var n=this._getOptionValue(this.$style.inlineStyles,t,b(b({},this.$params),e));return[this._getOptionValue(a.inlineStyles,t,b(b({},this.$params),e)),n]}}},computed:{globalPT:function(){var t,n=this;return this._getPT(null===(t=this.$primevueConfig)||void 0===t?void 0:t.pt,void 0,(function(t){return e.getItemValue(t,{instance:n})}))},defaultPT:function(){var t,n=this;return this._getPT(null===(t=this.$primevueConfig)||void 0===t?void 0:t.pt,void 0,(function(t){return n._getOptionValue(t,n.$name,b({},n.$params))||e.getItemValue(t,b({},n.$params))}))},isUnstyled:function(){var t;return void 0!==this.unstyled?this.unstyled:null===(t=this.$primevueConfig)||void 0===t?void 0:t.unstyled},$params:function(){var t=this._getHostInstance(this)||this.$parent;return{instance:this,props:this.$props,state:this.$data,attrs:this.$attrs,parent:{instance:t,props:null==t?void 0:t.$props,state:null==t?void 0:t.$data,attrs:null==t?void 0:t.$attrs},parentInstance:t}},$style:function(){return b(b({classes:void 0,inlineStyles:void 0,loadStyle:function(){},loadCustomStyle:function(){}},(this._getHostInstance(this)||{}).$style),this.$options.style)},$primevueConfig:function(){var t;return null===(t=this.$primevue)||void 0===t?void 0:t.config},$name:function(){return this.$options.hostName||this.$.type.name},$_attrsPT:function(){return Object.entries(this.$attrs||{}).filter((function(t){var e=v(t,1)[0];return null==e?void 0:e.startsWith("pt:")})).reduce((function(t,e){var n,o=v(e,2),i=o[1],r=o[0].split(":"),l=(g(n=r)||p(n)||d(n)||f()).slice(1);return null==l||l.reduce((function(t,e,n,o){return!t[e]&&(t[e]=n===o.length-1?i:{}),t[e]}),t),t}),{})},$_attrsNoPT:function(){return Object.entries(this.$attrs||{}).filter((function(t){var e=v(t,1)[0];return!(null!=e&&e.startsWith("pt:"))})).reduce((function(t,e){var n=v(e,2);return t[n[0]]=n[1],t}),{})}}};export{$ as default};
@@ -62,24 +62,24 @@ this.primevue.basecomponent = (function (BaseStyle, utils, vue, usestyle) {
62
62
  immediate: true,
63
63
  handler: function handler(newValue) {
64
64
  if (!newValue) {
65
- var _this$$config, _this$$config2;
65
+ var _this$$primevueConfig, _this$$primevueConfig2;
66
66
  BaseComponentStyle.loadStyle({
67
- nonce: (_this$$config = this.$config) === null || _this$$config === void 0 || (_this$$config = _this$$config.csp) === null || _this$$config === void 0 ? void 0 : _this$$config.nonce
67
+ nonce: (_this$$primevueConfig = this.$primevueConfig) === null || _this$$primevueConfig === void 0 || (_this$$primevueConfig = _this$$primevueConfig.csp) === null || _this$$primevueConfig === void 0 ? void 0 : _this$$primevueConfig.nonce
68
68
  });
69
69
  this.$options.style && this.$style.loadStyle({
70
- nonce: (_this$$config2 = this.$config) === null || _this$$config2 === void 0 || (_this$$config2 = _this$$config2.csp) === null || _this$$config2 === void 0 ? void 0 : _this$$config2.nonce
70
+ nonce: (_this$$primevueConfig2 = this.$primevueConfig) === null || _this$$primevueConfig2 === void 0 || (_this$$primevueConfig2 = _this$$primevueConfig2.csp) === null || _this$$primevueConfig2 === void 0 ? void 0 : _this$$primevueConfig2.nonce
71
71
  });
72
72
  }
73
73
  }
74
74
  }
75
75
  },
76
76
  beforeCreate: function beforeCreate() {
77
- var _this$pt, _this$pt2, _this$pt3, _ref, _ref$onBeforeCreate, _this$$config3, _this$$primevue, _this$$primevue2, _this$$primevue3, _ref2, _ref2$onBeforeCreate;
77
+ var _this$pt, _this$pt2, _this$pt3, _ref, _ref$onBeforeCreate, _this$$primevueConfig3, _this$$primevue, _this$$primevue2, _this$$primevue3, _ref2, _ref2$onBeforeCreate;
78
78
  var _usept = (_this$pt = this.pt) === null || _this$pt === void 0 ? void 0 : _this$pt['_usept'];
79
79
  var originalValue = _usept ? (_this$pt2 = this.pt) === null || _this$pt2 === void 0 || (_this$pt2 = _this$pt2.originalValue) === null || _this$pt2 === void 0 ? void 0 : _this$pt2[this.$.type.name] : undefined;
80
80
  var value = _usept ? (_this$pt3 = this.pt) === null || _this$pt3 === void 0 || (_this$pt3 = _this$pt3.value) === null || _this$pt3 === void 0 ? void 0 : _this$pt3[this.$.type.name] : this.pt;
81
81
  (_ref = value || originalValue) === null || _ref === void 0 || (_ref = _ref.hooks) === null || _ref === void 0 || (_ref$onBeforeCreate = _ref['onBeforeCreate']) === null || _ref$onBeforeCreate === void 0 || _ref$onBeforeCreate.call(_ref);
82
- var _useptInConfig = (_this$$config3 = this.$config) === null || _this$$config3 === void 0 || (_this$$config3 = _this$$config3.pt) === null || _this$$config3 === void 0 ? void 0 : _this$$config3['_usept'];
82
+ var _useptInConfig = (_this$$primevueConfig3 = this.$primevueConfig) === null || _this$$primevueConfig3 === void 0 || (_this$$primevueConfig3 = _this$$primevueConfig3.pt) === null || _this$$primevueConfig3 === void 0 ? void 0 : _this$$primevueConfig3['_usept'];
83
83
  var originalValueInConfig = _useptInConfig ? (_this$$primevue = this.$primevue) === null || _this$$primevue === void 0 || (_this$$primevue = _this$$primevue.config) === null || _this$$primevue === void 0 || (_this$$primevue = _this$$primevue.pt) === null || _this$$primevue === void 0 ? void 0 : _this$$primevue.originalValue : undefined;
84
84
  var valueInConfig = _useptInConfig ? (_this$$primevue2 = this.$primevue) === null || _this$$primevue2 === void 0 || (_this$$primevue2 = _this$$primevue2.config) === null || _this$$primevue2 === void 0 || (_this$$primevue2 = _this$$primevue2.pt) === null || _this$$primevue2 === void 0 ? void 0 : _this$$primevue2.value : (_this$$primevue3 = this.$primevue) === null || _this$$primevue3 === void 0 || (_this$$primevue3 = _this$$primevue3.config) === null || _this$$primevue3 === void 0 ? void 0 : _this$$primevue3.pt;
85
85
  (_ref2 = valueInConfig || originalValueInConfig) === null || _ref2 === void 0 || (_ref2 = _ref2[this.$.type.name]) === null || _ref2 === void 0 || (_ref2 = _ref2.hooks) === null || _ref2 === void 0 || (_ref2$onBeforeCreate = _ref2['onBeforeCreate']) === null || _ref2$onBeforeCreate === void 0 || _ref2$onBeforeCreate.call(_ref2);
@@ -88,9 +88,9 @@ this.primevue.basecomponent = (function (BaseStyle, utils, vue, usestyle) {
88
88
  this._hook('onCreated');
89
89
  },
90
90
  beforeMount: function beforeMount() {
91
- var _this$$config4;
91
+ var _this$$primevueConfig4;
92
92
  BaseStyle__default["default"].loadStyle({
93
- nonce: (_this$$config4 = this.$config) === null || _this$$config4 === void 0 || (_this$$config4 = _this$$config4.csp) === null || _this$$config4 === void 0 ? void 0 : _this$$config4.nonce
93
+ nonce: (_this$$primevueConfig4 = this.$primevueConfig) === null || _this$$primevueConfig4 === void 0 || (_this$$primevueConfig4 = _this$$primevueConfig4.csp) === null || _this$$primevueConfig4 === void 0 ? void 0 : _this$$primevueConfig4.nonce
94
94
  });
95
95
  this._loadGlobalStyles();
96
96
  this._hook('onBeforeMount');
@@ -126,7 +126,7 @@ this.primevue.basecomponent = (function (BaseStyle, utils, vue, usestyle) {
126
126
  return utils.ObjectUtils.isFunction(fn) ? fn.apply(void 0, args) : vue.mergeProps.apply(void 0, args);
127
127
  },
128
128
  _loadGlobalStyles: function _loadGlobalStyles() {
129
- var _this$$config5;
129
+ var _this$$primevueConfig5;
130
130
  /*
131
131
  * @todo Add self custom css support;
132
132
  * <Panel :pt="{ css: `...` }" .../>
@@ -139,7 +139,7 @@ this.primevue.basecomponent = (function (BaseStyle, utils, vue, usestyle) {
139
139
 
140
140
  var globalCSS = this._useGlobalPT(this._getOptionValue, 'global.css', this.$params);
141
141
  utils.ObjectUtils.isNotEmpty(globalCSS) && BaseComponentStyle.loadGlobalStyle(globalCSS, {
142
- nonce: (_this$$config5 = this.$config) === null || _this$$config5 === void 0 || (_this$$config5 = _this$$config5.csp) === null || _this$$config5 === void 0 ? void 0 : _this$$config5.nonce
142
+ nonce: (_this$$primevueConfig5 = this.$primevueConfig) === null || _this$$primevueConfig5 === void 0 || (_this$$primevueConfig5 = _this$$primevueConfig5.csp) === null || _this$$primevueConfig5 === void 0 ? void 0 : _this$$primevueConfig5.nonce
143
143
  });
144
144
  },
145
145
  _getHostInstance: function _getHostInstance(instance) {
@@ -159,13 +159,13 @@ this.primevue.basecomponent = (function (BaseStyle, utils, vue, usestyle) {
159
159
  }) || ''], params), fKeys.join('.'), params) : undefined : utils.ObjectUtils.getItemValue(options, params);
160
160
  },
161
161
  _getPTValue: function _getPTValue() {
162
- var _this$$config6;
162
+ var _this$$primevueConfig6;
163
163
  var obj = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
164
164
  var key = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
165
165
  var params = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
166
166
  var searchInDefaultPT = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true;
167
167
  var searchOut = /./g.test(key) && !!params[key.split('.')[0]];
168
- var _ref3 = this._getPropValue('ptOptions') || ((_this$$config6 = this.$config) === null || _this$$config6 === void 0 ? void 0 : _this$$config6.ptOptions) || {},
168
+ var _ref3 = this._getPropValue('ptOptions') || ((_this$$primevueConfig6 = this.$primevueConfig) === null || _this$$primevueConfig6 === void 0 ? void 0 : _this$$primevueConfig6.ptOptions) || {},
169
169
  _ref3$mergeSections = _ref3.mergeSections,
170
170
  mergeSections = _ref3$mergeSections === void 0 ? true : _ref3$mergeSections,
171
171
  _ref3$mergeProps = _ref3.mergeProps,
@@ -223,8 +223,8 @@ this.primevue.basecomponent = (function (BaseStyle, utils, vue, usestyle) {
223
223
  return callback(value, key, params);
224
224
  };
225
225
  if (pt !== null && pt !== void 0 && pt.hasOwnProperty('_usept')) {
226
- var _this$$config7;
227
- var _ref6 = pt['_usept'] || ((_this$$config7 = this.$config) === null || _this$$config7 === void 0 ? void 0 : _this$$config7.ptOptions) || {},
226
+ var _this$$primevueConfig7;
227
+ var _ref6 = pt['_usept'] || ((_this$$primevueConfig7 = this.$primevueConfig) === null || _this$$primevueConfig7 === void 0 ? void 0 : _this$$primevueConfig7.ptOptions) || {},
228
228
  _ref6$mergeSections = _ref6.mergeSections,
229
229
  mergeSections = _ref6$mergeSections === void 0 ? true : _ref6$mergeSections,
230
230
  _ref6$mergeProps = _ref6.mergeProps,
@@ -280,24 +280,24 @@ this.primevue.basecomponent = (function (BaseStyle, utils, vue, usestyle) {
280
280
  },
281
281
  computed: {
282
282
  globalPT: function globalPT() {
283
- var _this$$config8,
283
+ var _this$$primevueConfig8,
284
284
  _this2 = this;
285
- return this._getPT((_this$$config8 = this.$config) === null || _this$$config8 === void 0 ? void 0 : _this$$config8.pt, undefined, function (value) {
285
+ return this._getPT((_this$$primevueConfig8 = this.$primevueConfig) === null || _this$$primevueConfig8 === void 0 ? void 0 : _this$$primevueConfig8.pt, undefined, function (value) {
286
286
  return utils.ObjectUtils.getItemValue(value, {
287
287
  instance: _this2
288
288
  });
289
289
  });
290
290
  },
291
291
  defaultPT: function defaultPT() {
292
- var _this$$config9,
292
+ var _this$$primevueConfig9,
293
293
  _this3 = this;
294
- return this._getPT((_this$$config9 = this.$config) === null || _this$$config9 === void 0 ? void 0 : _this$$config9.pt, undefined, function (value) {
294
+ return this._getPT((_this$$primevueConfig9 = this.$primevueConfig) === null || _this$$primevueConfig9 === void 0 ? void 0 : _this$$primevueConfig9.pt, undefined, function (value) {
295
295
  return _this3._getOptionValue(value, _this3.$name, _objectSpread({}, _this3.$params)) || utils.ObjectUtils.getItemValue(value, _objectSpread({}, _this3.$params));
296
296
  });
297
297
  },
298
298
  isUnstyled: function isUnstyled() {
299
- var _this$$config10;
300
- return this.unstyled !== undefined ? this.unstyled : (_this$$config10 = this.$config) === null || _this$$config10 === void 0 ? void 0 : _this$$config10.unstyled;
299
+ var _this$$primevueConfig10;
300
+ return this.unstyled !== undefined ? this.unstyled : (_this$$primevueConfig10 = this.$primevueConfig) === null || _this$$primevueConfig10 === void 0 ? void 0 : _this$$primevueConfig10.unstyled;
301
301
  },
302
302
  $params: function $params() {
303
303
  var parentInstance = this._getHostInstance(this) || this.$parent;
@@ -324,7 +324,7 @@ this.primevue.basecomponent = (function (BaseStyle, utils, vue, usestyle) {
324
324
  loadCustomStyle: function loadCustomStyle() {}
325
325
  }, (this._getHostInstance(this) || {}).$style), this.$options.style);
326
326
  },
327
- $config: function $config() {
327
+ $primevueConfig: function $primevueConfig() {
328
328
  var _this$$primevue4;
329
329
  return (_this$$primevue4 = this.$primevue) === null || _this$$primevue4 === void 0 ? void 0 : _this$$primevue4.config;
330
330
  },