primevue 3.33.0 → 3.34.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (183) hide show
  1. package/accordion/Accordion.d.ts +21 -2
  2. package/accordiontab/AccordionTab.d.ts +24 -2
  3. package/autocomplete/AutoComplete.d.ts +24 -2
  4. package/autocomplete/AutoComplete.vue +1 -1
  5. package/autocomplete/autocomplete.cjs.js +1 -1
  6. package/autocomplete/autocomplete.cjs.min.js +1 -1
  7. package/autocomplete/autocomplete.esm.js +1 -1
  8. package/autocomplete/autocomplete.esm.min.js +1 -1
  9. package/autocomplete/autocomplete.js +1 -1
  10. package/autocomplete/autocomplete.min.js +1 -1
  11. package/avatar/Avatar.d.ts +21 -2
  12. package/avatargroup/AvatarGroup.d.ts +8 -2
  13. package/badge/Badge.d.ts +18 -2
  14. package/badgedirective/BadgeDirective.d.ts +12 -2
  15. package/basecomponent/BaseComponent.vue +18 -20
  16. package/basecomponent/basecomponent.cjs.js +31 -19
  17. package/basecomponent/basecomponent.cjs.min.js +1 -1
  18. package/basecomponent/basecomponent.esm.js +31 -19
  19. package/basecomponent/basecomponent.esm.min.js +1 -1
  20. package/basecomponent/basecomponent.js +31 -19
  21. package/basecomponent/basecomponent.min.js +1 -1
  22. package/basedirective/basedirective.cjs.js +36 -19
  23. package/basedirective/basedirective.cjs.min.js +1 -1
  24. package/basedirective/basedirective.esm.js +36 -19
  25. package/basedirective/basedirective.esm.min.js +1 -1
  26. package/basedirective/basedirective.js +36 -19
  27. package/basedirective/basedirective.min.js +1 -1
  28. package/blockui/BlockUI.d.ts +21 -2
  29. package/breadcrumb/Breadcrumb.d.ts +40 -3
  30. package/button/Button.d.ts +24 -2
  31. package/calendar/Calendar.d.ts +25 -3
  32. package/card/Card.d.ts +8 -2
  33. package/carousel/Carousel.d.ts +24 -2
  34. package/cascadeselect/CascadeSelect.d.ts +21 -2
  35. package/chart/Chart.d.ts +18 -2
  36. package/checkbox/Checkbox.d.ts +24 -2
  37. package/chip/Chip.d.ts +21 -2
  38. package/chips/Chips.d.ts +21 -2
  39. package/colorpicker/ColorPicker.d.ts +21 -2
  40. package/column/Column.d.ts +24 -2
  41. package/columngroup/ColumnGroup.d.ts +24 -2
  42. package/config/PrimeVue.d.ts +93 -92
  43. package/config/config.cjs.js +1 -0
  44. package/config/config.cjs.min.js +1 -1
  45. package/config/config.esm.js +1 -0
  46. package/config/config.esm.min.js +1 -1
  47. package/config/config.js +1 -0
  48. package/config/config.min.js +1 -1
  49. package/confirmdialog/ConfirmDialog.d.ts +21 -2
  50. package/confirmpopup/ConfirmPopup.d.ts +21 -2
  51. package/contextmenu/ContextMenu.d.ts +47 -3
  52. package/core/core.js +87 -47
  53. package/core/core.min.js +4 -4
  54. package/datatable/DataTable.d.ts +25 -3
  55. package/datatable/TableBody.vue +1 -1
  56. package/datatable/datatable.cjs.js +2 -2
  57. package/datatable/datatable.cjs.min.js +1 -1
  58. package/datatable/datatable.esm.js +2 -2
  59. package/datatable/datatable.esm.min.js +1 -1
  60. package/datatable/datatable.js +2 -2
  61. package/datatable/datatable.min.js +1 -1
  62. package/dataview/DataView.d.ts +21 -2
  63. package/dataviewlayoutoptions/DataViewLayoutOptions.d.ts +21 -2
  64. package/deferredcontent/DeferredContent.d.ts +21 -2
  65. package/dialog/Dialog.d.ts +21 -2
  66. package/divider/Divider.d.ts +18 -2
  67. package/dock/Dock.d.ts +39 -3
  68. package/dropdown/Dropdown.d.ts +24 -2
  69. package/editor/Editor.d.ts +22 -2
  70. package/fieldset/Fieldset.d.ts +21 -2
  71. package/fileupload/FileContent.vue +8 -6
  72. package/fileupload/FileUpload.d.ts +21 -2
  73. package/fileupload/FileUpload.vue +8 -6
  74. package/fileupload/fileupload.cjs.js +16 -12
  75. package/fileupload/fileupload.cjs.min.js +1 -1
  76. package/fileupload/fileupload.esm.js +16 -12
  77. package/fileupload/fileupload.esm.min.js +1 -1
  78. package/fileupload/fileupload.js +16 -12
  79. package/fileupload/fileupload.min.js +1 -1
  80. package/focustrap/FocusTrap.d.ts +8 -2
  81. package/galleria/Galleria.d.ts +24 -2
  82. package/image/Image.d.ts +21 -2
  83. package/inlinemessage/InlineMessage.d.ts +21 -2
  84. package/inplace/Inplace.d.ts +21 -2
  85. package/inputmask/InputMask.d.ts +21 -2
  86. package/inputmask/InputMask.vue +3 -1
  87. package/inputmask/inputmask.cjs.js +2 -1
  88. package/inputmask/inputmask.cjs.min.js +1 -1
  89. package/inputmask/inputmask.esm.js +2 -1
  90. package/inputmask/inputmask.esm.min.js +1 -1
  91. package/inputmask/inputmask.js +2 -1
  92. package/inputmask/inputmask.min.js +1 -1
  93. package/inputnumber/InputNumber.d.ts +21 -2
  94. package/inputswitch/InputSwitch.d.ts +21 -2
  95. package/inputtext/InputText.d.ts +21 -2
  96. package/knob/Knob.d.ts +21 -2
  97. package/listbox/Listbox.d.ts +24 -2
  98. package/megamenu/MegaMenu.d.ts +47 -3
  99. package/menu/Menu.d.ts +43 -3
  100. package/menubar/Menubar.d.ts +47 -3
  101. package/message/Message.d.ts +21 -2
  102. package/multiselect/MultiSelect.d.ts +24 -2
  103. package/orderlist/OrderList.d.ts +24 -2
  104. package/orderlist/OrderList.vue +7 -5
  105. package/orderlist/orderlist.cjs.js +7 -5
  106. package/orderlist/orderlist.cjs.min.js +1 -1
  107. package/orderlist/orderlist.esm.js +7 -5
  108. package/orderlist/orderlist.esm.min.js +1 -1
  109. package/orderlist/orderlist.js +7 -5
  110. package/orderlist/orderlist.min.js +1 -1
  111. package/organizationchart/OrganizationChart.d.ts +24 -2
  112. package/overlaypanel/OverlayPanel.d.ts +21 -2
  113. package/package.json +1 -1
  114. package/paginator/Paginator.d.ts +24 -2
  115. package/panel/Panel.d.ts +21 -2
  116. package/panelmenu/PanelMenu.d.ts +47 -3
  117. package/passthrough/index.d.ts +2 -2
  118. package/password/Password.d.ts +21 -2
  119. package/picklist/PickList.d.ts +24 -2
  120. package/picklist/PickList.vue +8 -5
  121. package/picklist/picklist.cjs.js +7 -5
  122. package/picklist/picklist.cjs.min.js +1 -1
  123. package/picklist/picklist.esm.js +7 -5
  124. package/picklist/picklist.esm.min.js +1 -1
  125. package/picklist/picklist.js +7 -5
  126. package/picklist/picklist.min.js +1 -1
  127. package/progressbar/ProgressBar.d.ts +18 -2
  128. package/progressspinner/ProgressSpinner.d.ts +18 -2
  129. package/radiobutton/RadioButton.d.ts +21 -2
  130. package/rating/Rating.d.ts +24 -2
  131. package/ripple/Ripple.d.ts +8 -2
  132. package/row/Row.d.ts +16 -0
  133. package/scrollpanel/ScrollPanel.d.ts +21 -2
  134. package/scrolltop/ScrollTop.d.ts +21 -2
  135. package/selectbutton/SelectButton.d.ts +24 -2
  136. package/sidebar/Sidebar.d.ts +21 -2
  137. package/skeleton/Skeleton.d.ts +18 -2
  138. package/slider/Slider.d.ts +18 -2
  139. package/speeddial/SpeedDial.d.ts +24 -2
  140. package/splitbutton/SplitButton.d.ts +21 -2
  141. package/splitter/Splitter.d.ts +24 -2
  142. package/splitterpanel/SplitterPanel.d.ts +21 -2
  143. package/steps/Steps.d.ts +40 -3
  144. package/styleclass/StyleClass.d.ts +8 -2
  145. package/tabmenu/TabMenu.d.ts +43 -3
  146. package/tabpanel/TabPanel.d.ts +24 -2
  147. package/tabview/TabView.d.ts +8 -2
  148. package/tag/Tag.d.ts +18 -2
  149. package/terminal/Terminal.d.ts +21 -2
  150. package/textarea/Textarea.d.ts +21 -2
  151. package/tieredmenu/TieredMenu.d.ts +47 -3
  152. package/timeline/Timeline.d.ts +21 -2
  153. package/toast/Toast.d.ts +21 -2
  154. package/togglebutton/ToggleButton.d.ts +24 -2
  155. package/togglebutton/ToggleButton.vue +4 -4
  156. package/togglebutton/togglebutton.cjs.js +4 -4
  157. package/togglebutton/togglebutton.cjs.min.js +1 -1
  158. package/togglebutton/togglebutton.esm.js +4 -4
  159. package/togglebutton/togglebutton.esm.min.js +1 -1
  160. package/togglebutton/togglebutton.js +4 -4
  161. package/togglebutton/togglebutton.min.js +1 -1
  162. package/toolbar/Toolbar.d.ts +18 -2
  163. package/tooltip/Tooltip.d.ts +12 -2
  164. package/tree/Tree.d.ts +24 -2
  165. package/treeselect/TreeSelect.d.ts +21 -2
  166. package/treetable/TreeTable.d.ts +24 -2
  167. package/treetable/TreeTableRow.vue +1 -1
  168. package/treetable/treetable.cjs.js +1 -1
  169. package/treetable/treetable.cjs.min.js +1 -1
  170. package/treetable/treetable.esm.js +1 -1
  171. package/treetable/treetable.esm.min.js +1 -1
  172. package/treetable/treetable.js +1 -1
  173. package/treetable/treetable.min.js +1 -1
  174. package/tristatecheckbox/TriStateCheckbox.d.ts +24 -2
  175. package/ts-helpers.d.ts +2 -2
  176. package/utils/utils.cjs.js +19 -9
  177. package/utils/utils.cjs.min.js +1 -1
  178. package/utils/utils.esm.js +19 -9
  179. package/utils/utils.esm.min.js +1 -1
  180. package/utils/utils.js +19 -9
  181. package/utils/utils.min.js +1 -1
  182. package/virtualscroller/VirtualScroller.d.ts +21 -2
  183. package/web-types.json +1 -1
@@ -28,6 +28,7 @@ var BaseDirective = {
28
28
  }) || ''], params), fKeys.join('.'), params) : undefined : ObjectUtils.getItemValue(options, params);
29
29
  },
30
30
  _getPTValue: function _getPTValue() {
31
+ var _instance$binding;
31
32
  var instance = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
32
33
  var obj = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
33
34
  var key = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
@@ -40,19 +41,27 @@ var BaseDirective = {
40
41
  } : value;
41
42
  };
42
43
  var datasetPrefix = 'data-pc-';
43
- var self = BaseDirective._usePT(BaseDirective._getPT(obj, instance.$name), getValue, key, params);
44
- var globalPT = searchInDefaultPT ? BaseDirective._useDefaultPT(instance.defaultPT, getValue, key, params) : undefined;
45
- var merged = mergeProps(self, globalPT, _objectSpread(_objectSpread({}, key === 'root' && _defineProperty({}, "".concat(datasetPrefix, "name"), ObjectUtils.toFlatCase(instance.$name))), {}, _defineProperty({}, "".concat(datasetPrefix, "section"), ObjectUtils.toFlatCase(key))));
46
- return merged;
44
+ var _ref = ((_instance$binding = instance.binding) === null || _instance$binding === void 0 || (_instance$binding = _instance$binding.value) === null || _instance$binding === void 0 ? void 0 : _instance$binding.ptOptions) || {},
45
+ _ref$mergeSections = _ref.mergeSections,
46
+ mergeSections = _ref$mergeSections === void 0 ? true : _ref$mergeSections,
47
+ _ref$mergeProps = _ref.mergeProps,
48
+ useMergeProps = _ref$mergeProps === void 0 ? false : _ref$mergeProps;
49
+ var global = searchInDefaultPT ? BaseDirective._useDefaultPT(instance, instance.defaultPT, getValue, key, params) : undefined;
50
+ var self = BaseDirective._usePT(instance, BaseDirective._getPT(obj, instance.$name), getValue, key, _objectSpread(_objectSpread({}, params), {}, {
51
+ global: global || {}
52
+ }));
53
+ var datasets = _objectSpread(_objectSpread({}, key === 'root' && _defineProperty({}, "".concat(datasetPrefix, "name"), ObjectUtils.toFlatCase(instance.$name))), {}, _defineProperty({}, "".concat(datasetPrefix, "section"), ObjectUtils.toFlatCase(key)));
54
+ return mergeSections || !mergeSections && self ? useMergeProps ? mergeProps(global, self, datasets) : _objectSpread(_objectSpread(_objectSpread({}, global), self), datasets) : _objectSpread(_objectSpread({}, self), datasets);
47
55
  },
48
56
  _getPT: function _getPT(pt) {
49
57
  var key = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
50
58
  var callback = arguments.length > 2 ? arguments[2] : undefined;
51
59
  var _usept = pt === null || pt === void 0 ? void 0 : pt['_usept'];
52
60
  var getValue = function getValue(value) {
53
- var _computedValue$Object;
61
+ var _computedValue$_key;
54
62
  var computedValue = callback ? callback(value) : value;
55
- return (_computedValue$Object = computedValue === null || computedValue === void 0 ? void 0 : computedValue[ObjectUtils.toFlatCase(key)]) !== null && _computedValue$Object !== void 0 ? _computedValue$Object : computedValue;
63
+ var _key = ObjectUtils.toFlatCase(key);
64
+ return (_computedValue$_key = computedValue === null || computedValue === void 0 ? void 0 : computedValue[_key]) !== null && _computedValue$_key !== void 0 ? _computedValue$_key : computedValue;
56
65
  };
57
66
  return ObjectUtils.isNotEmpty(_usept) ? {
58
67
  _usept: _usept,
@@ -60,14 +69,20 @@ var BaseDirective = {
60
69
  value: getValue(pt.value)
61
70
  } : getValue(pt);
62
71
  },
63
- _usePT: function _usePT(pt, callback, key, params) {
72
+ _usePT: function _usePT() {
73
+ var pt = arguments.length > 1 ? arguments[1] : undefined;
74
+ var callback = arguments.length > 2 ? arguments[2] : undefined;
75
+ var key = arguments.length > 3 ? arguments[3] : undefined;
76
+ var params = arguments.length > 4 ? arguments[4] : undefined;
64
77
  var fn = function fn(value) {
65
78
  return callback(value, key, params);
66
79
  };
67
80
  if (pt !== null && pt !== void 0 && pt.hasOwnProperty('_usept')) {
68
- var _pt$_usept = pt['_usept'],
69
- mergeSections = _pt$_usept.mergeSections,
70
- useMergeProps = _pt$_usept.mergeProps;
81
+ var _ref3 = pt['_usept'] || {},
82
+ _ref3$mergeSections = _ref3.mergeSections,
83
+ mergeSections = _ref3$mergeSections === void 0 ? true : _ref3$mergeSections,
84
+ _ref3$mergeProps = _ref3.mergeProps,
85
+ useMergeProps = _ref3$mergeProps === void 0 ? false : _ref3$mergeProps;
71
86
  var originalValue = fn(pt.originalValue);
72
87
  var value = fn(pt.value);
73
88
  if (originalValue === undefined && value === undefined) return undefined;else if (ObjectUtils.isString(value)) return value;else if (ObjectUtils.isString(originalValue)) return originalValue;
@@ -76,26 +91,28 @@ var BaseDirective = {
76
91
  return fn(pt);
77
92
  },
78
93
  _useDefaultPT: function _useDefaultPT() {
79
- var defaultPT = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
80
- var callback = arguments.length > 1 ? arguments[1] : undefined;
81
- var key = arguments.length > 2 ? arguments[2] : undefined;
82
- var params = arguments.length > 3 ? arguments[3] : undefined;
83
- return BaseDirective._usePT(defaultPT, callback, key, params);
94
+ var instance = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
95
+ var defaultPT = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
96
+ var callback = arguments.length > 2 ? arguments[2] : undefined;
97
+ var key = arguments.length > 3 ? arguments[3] : undefined;
98
+ var params = arguments.length > 4 ? arguments[4] : undefined;
99
+ return BaseDirective._usePT(instance, defaultPT, callback, key, params);
84
100
  },
85
101
  _hook: function _hook(directiveName, hookName, el, binding, vnode, prevVnode) {
86
102
  var _binding$instance, _binding$value, _config$pt;
87
103
  var name = "on".concat(ObjectUtils.toCapitalCase(hookName));
88
104
  var config = binding === null || binding === void 0 || (_binding$instance = binding.instance) === null || _binding$instance === void 0 || (_binding$instance = _binding$instance.$primevue) === null || _binding$instance === void 0 ? void 0 : _binding$instance.config;
89
- var selfHook = BaseDirective._usePT(BaseDirective._getPT(binding === null || binding === void 0 || (_binding$value = binding.value) === null || _binding$value === void 0 ? void 0 : _binding$value.pt, directiveName), BaseDirective._getOptionValue, "hooks.".concat(name));
90
- var defaultHook = BaseDirective._useDefaultPT(config === null || config === void 0 || (_config$pt = config.pt) === null || _config$pt === void 0 || (_config$pt = _config$pt.directives) === null || _config$pt === void 0 ? void 0 : _config$pt[directiveName], BaseDirective._getOptionValue, "hooks.".concat(name));
105
+ var instance = el === null || el === void 0 ? void 0 : el.$instance;
106
+ var selfHook = BaseDirective._usePT(instance, BaseDirective._getPT(binding === null || binding === void 0 || (_binding$value = binding.value) === null || _binding$value === void 0 ? void 0 : _binding$value.pt, directiveName), BaseDirective._getOptionValue, "hooks.".concat(name));
107
+ var defaultHook = BaseDirective._useDefaultPT(instance, config === null || config === void 0 || (_config$pt = config.pt) === null || _config$pt === void 0 || (_config$pt = _config$pt.directives) === null || _config$pt === void 0 ? void 0 : _config$pt[directiveName], BaseDirective._getOptionValue, "hooks.".concat(name));
91
108
  var options = {
92
109
  el: el,
93
110
  binding: binding,
94
111
  vnode: vnode,
95
112
  prevVnode: prevVnode
96
113
  };
97
- selfHook === null || selfHook === void 0 || selfHook(el === null || el === void 0 ? void 0 : el.$instance, options);
98
- defaultHook === null || defaultHook === void 0 || defaultHook(el === null || el === void 0 ? void 0 : el.$instance, options);
114
+ selfHook === null || selfHook === void 0 || selfHook(instance, options);
115
+ defaultHook === null || defaultHook === void 0 || defaultHook(instance, options);
99
116
  },
100
117
  _extend: function _extend(name) {
101
118
  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
@@ -1 +1 @@
1
- import{loadBaseStyle as n}from"primevue/base";import{ObjectUtils as t}from"primevue/utils";import{mergeProps as e}from"vue";function o(n){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},o(n)}function i(n,t){return c(n)||a(n,t)||l(n,t)||r()}function r(){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 l(n,t){if(n){if("string"==typeof n)return u(n,t);var e=Object.prototype.toString.call(n).slice(8,-1);return"Object"===e&&n.constructor&&(e=n.constructor.name),"Map"===e||"Set"===e?Array.from(n):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?u(n,t):void 0}}function u(n,t){(null==t||t>n.length)&&(t=n.length);for(var e=0,o=new Array(t);e<t;e++)o[e]=n[e];return o}function a(n,t){var e=null==n?null:"undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=e){var o,i,r,l,u=[],a=!0,c=!1;try{if(r=(e=e.call(n)).next,0===t){if(Object(e)!==e)return;a=!1}else for(;!(a=(o=r.call(e)).done)&&(u.push(o.value),u.length!==t);a=!0);}catch(n){c=!0,i=n}finally{try{if(!a&&null!=e.return&&(l=e.return(),Object(l)!==l))return}finally{if(c)throw i}}return u}}function c(n){if(Array.isArray(n))return n}function v(n,t){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),e.push.apply(e,o)}return e}function d(n){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{};t%2?v(Object(e),!0).forEach((function(t){s(n,t,e[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):v(Object(e)).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))}))}return n}function s(n,t,e){return(t=f(t))in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}function f(n){var t=g(n,"string");return"symbol"===o(t)?t:String(t)}function g(n,t){if("object"!==o(n)||null===n)return n;var e=n[Symbol.toPrimitive];if(void 0!==e){var i=e.call(n,t||"default");if("object"!==o(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(n)}var p={_getMeta:function(){return[t.isObject(arguments.length<=0?void 0:arguments[0])||arguments.length<=0?void 0:arguments[0],t.getItemValue(t.isObject(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:arguments.length<=1?void 0:arguments[1])]},_getOptionValue:function(n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=t.toFlatCase(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"").split("."),i=o.shift();return i?t.isObject(n)?p._getOptionValue(t.getItemValue(n[Object.keys(n).find((function(n){return t.toFlatCase(n)===i}))||""],e),o.join("."),e):void 0:t.getItemValue(n,e)},_getPTValue:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],l=function(){var n=p._getOptionValue.apply(p,arguments);return t.isString(n)||t.isArray(n)?{class:n}:n},u="data-pc-",a=p._usePT(p._getPT(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n.$name),l,o,i),c=r?p._useDefaultPT(n.defaultPT,l,o,i):void 0;return e(a,c,d(d({},"root"===o&&s({},"".concat(u,"name"),t.toFlatCase(n.$name))),{},s({},"".concat(u,"section"),t.toFlatCase(o))))},_getPT:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=arguments.length>2?arguments[2]:void 0,i=null==n?void 0:n._usept,r=function(n){var i,r=o?o(n):n;return null!==(i=null==r?void 0:r[t.toFlatCase(e)])&&void 0!==i?i:r};return t.isNotEmpty(i)?{_usept:i,originalValue:r(n.originalValue),value:r(n.value)}:r(n)},_usePT:function(n,o,i,r){var l=function(n){return o(n,i,r)};if(null!=n&&n.hasOwnProperty("_usept")){var u=n._usept,a=u.mergeSections,c=u.mergeProps,v=l(n.originalValue),s=l(n.value);if(void 0===v&&void 0===s)return;return t.isString(s)?s:t.isString(v)?v:a||!a&&s?c?e(v,s):d(d({},v),s):s}return l(n)},_useDefaultPT:function(){return p._usePT(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0,arguments.length>2?arguments[2]:void 0,arguments.length>3?arguments[3]:void 0)},_hook:function(n,e,o,i,r,l){var u,a,c,v="on".concat(t.toCapitalCase(e)),d=null==i||null===(u=i.instance)||void 0===u||null===(u=u.$primevue)||void 0===u?void 0:u.config,s=p._usePT(p._getPT(null==i||null===(a=i.value)||void 0===a?void 0:a.pt,n),p._getOptionValue,"hooks.".concat(v)),f=p._useDefaultPT(null==d||null===(c=d.pt)||void 0===c||null===(c=c.directives)||void 0===c?void 0:c[n],p._getOptionValue,"hooks.".concat(v)),g={el:o,binding:i,vnode:r,prevVnode:l};null==s||s(null==o?void 0:o.$instance,g),null==f||f(null==o?void 0:o.$instance,g)},_extend:function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=function(n,i,r,l,u){var a,c,v;i._$instances=i._$instances||{};var s=null==r||null===(a=r.instance)||void 0===a||null===(a=a.$primevue)||void 0===a?void 0:a.config,f=i._$instances[e]||{},g=t.isEmpty(f)?d(d({},o),null==o?void 0:o.methods):{};i._$instances[e]=d(d({},f),{},{$name:e,$host:i,$binding:r,$el:f.$el||void 0,$css:d({classes:void 0,inlineStyles:void 0,loadStyle:function(){}},null==o?void 0:o.css),$config:s,defaultPT:p._getPT(null==s?void 0:s.pt,void 0,(function(n){var t;return null==n||null===(t=n.directives)||void 0===t?void 0:t[e]})),isUnstyled:void 0!==i.unstyled?i.unstyled:null==s?void 0:s.unstyled,ptm:function(){var n;return p._getPTValue(i.$instance,null===(n=i.$instance)||void 0===n||null===(n=n.$binding)||void 0===n||null===(n=n.value)||void 0===n?void 0:n.pt,arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",d({},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}))},ptmo:function(){return p._getPTValue(i.$instance,arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},!1)},cx:function(){var n,t;return null!==(n=i.$instance)&&void 0!==n&&n.isUnstyled?void 0:p._getOptionValue(null===(t=i.$instance)||void 0===t||null===(t=t.$css)||void 0===t?void 0:t.classes,arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",d({},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}))},sx:function(){var n;return!(arguments.length>1&&void 0!==arguments[1])||arguments[1]?p._getOptionValue(null===(n=i.$instance)||void 0===n||null===(n=n.$css)||void 0===n?void 0:n.inlineStyles,arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",d({},arguments.length>2&&void 0!==arguments[2]?arguments[2]:{})):void 0}},g),i.$instance=i._$instances[e],null===(c=(v=i.$instance)[n])||void 0===c||c.call(v,i,r,l,u),p._hook(e,n,i,r,l,u)};return{created:function(n,t,e,o){i("created",n,t,e,o)},beforeMount:function(t,e,o,r){var l,u,a,c,v,d=null==e||null===(l=e.instance)||void 0===l||null===(l=l.$primevue)||void 0===l?void 0:l.config;n(void 0,{nonce:null==d||null===(u=d.csp)||void 0===u?void 0:u.nonce}),(null===(a=t.$instance)||void 0===a||!a.isUnstyled)&&(null===(c=t.$instance)||void 0===c||null===(c=c.$css)||void 0===c||c.loadStyle(void 0,{nonce:null==d||null===(v=d.csp)||void 0===v?void 0:v.nonce})),i("beforeMount",t,e,o,r)},mounted:function(n,t,e,o){i("mounted",n,t,e,o)},beforeUpdate:function(n,t,e,o){i("beforeUpdate",n,t,e,o)},updated:function(n,t,e,o){i("updated",n,t,e,o)},beforeUnmount:function(n,t,e,o){i("beforeUnmount",n,t,e,o)},unmounted:function(n,t,e,o){i("unmounted",n,t,e,o)}}},extend:function(){var n=i(p._getMeta.apply(p,arguments),2),t=n[1];return d({extend:function(){var n=i(p._getMeta.apply(p,arguments),2),e=n[1];return p.extend(n[0],d(d(d({},t),null==t?void 0:t.methods),e))}},p._extend(n[0],t))}};export{p as default};
1
+ import{loadBaseStyle as n}from"primevue/base";import{ObjectUtils as t}from"primevue/utils";import{mergeProps as e}from"vue";function o(n){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},o(n)}function i(n,t){return v(n)||a(n,t)||r(n,t)||l()}function l(){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 r(n,t){if(n){if("string"==typeof n)return u(n,t);var e=Object.prototype.toString.call(n).slice(8,-1);return"Object"===e&&n.constructor&&(e=n.constructor.name),"Map"===e||"Set"===e?Array.from(n):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?u(n,t):void 0}}function u(n,t){(null==t||t>n.length)&&(t=n.length);for(var e=0,o=new Array(t);e<t;e++)o[e]=n[e];return o}function a(n,t){var e=null==n?null:"undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=e){var o,i,l,r,u=[],a=!0,v=!1;try{if(l=(e=e.call(n)).next,0===t){if(Object(e)!==e)return;a=!1}else for(;!(a=(o=l.call(e)).done)&&(u.push(o.value),u.length!==t);a=!0);}catch(n){v=!0,i=n}finally{try{if(!a&&null!=e.return&&(r=e.return(),Object(r)!==r))return}finally{if(v)throw i}}return u}}function v(n){if(Array.isArray(n))return n}function d(n,t){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),e.push.apply(e,o)}return e}function c(n){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{};t%2?d(Object(e),!0).forEach((function(t){s(n,t,e[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):d(Object(e)).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))}))}return n}function s(n,t,e){return(t=f(t))in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}function f(n){var t=g(n,"string");return"symbol"===o(t)?t:String(t)}function g(n,t){if("object"!==o(n)||null===n)return n;var e=n[Symbol.toPrimitive];if(void 0!==e){var i=e.call(n,t||"default");if("object"!==o(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(n)}var p={_getMeta:function(){return[t.isObject(arguments.length<=0?void 0:arguments[0])||arguments.length<=0?void 0:arguments[0],t.getItemValue(t.isObject(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:arguments.length<=1?void 0:arguments[1])]},_getOptionValue:function(n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=t.toFlatCase(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"").split("."),i=o.shift();return i?t.isObject(n)?p._getOptionValue(t.getItemValue(n[Object.keys(n).find((function(n){return t.toFlatCase(n)===i}))||""],e),o.join("."),e):void 0:t.getItemValue(n,e)},_getPTValue:function(){var n,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},u=function(){var n=p._getOptionValue.apply(p,arguments);return t.isString(n)||t.isArray(n)?{class:n}:n},a="data-pc-",v=(null===(n=o.binding)||void 0===n||null===(n=n.value)||void 0===n?void 0:n.ptOptions)||{},d=v.mergeSections,f=void 0===d||d,g=v.mergeProps,y=void 0!==g&&g,m=!(arguments.length>4&&void 0!==arguments[4])||arguments[4]?p._useDefaultPT(o,o.defaultPT,u,l,r):void 0,b=p._usePT(o,p._getPT(i,o.$name),u,l,c(c({},r),{},{global:m||{}})),h=c(c({},"root"===l&&s({},"".concat(a,"name"),t.toFlatCase(o.$name))),{},s({},"".concat(a,"section"),t.toFlatCase(l)));return f||!f&&b?y?e(m,b,h):c(c(c({},m),b),h):c(c({},b),h)},_getPT:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=arguments.length>2?arguments[2]:void 0,i=null==n?void 0:n._usept,l=function(n){var i,l=o?o(n):n,r=t.toFlatCase(e);return null!==(i=null==l?void 0:l[r])&&void 0!==i?i:l};return t.isNotEmpty(i)?{_usept:i,originalValue:l(n.originalValue),value:l(n.value)}:l(n)},_usePT:function(){var n=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,l=arguments.length>4?arguments[4]:void 0,r=function(n){return o(n,i,l)};if(null!=n&&n.hasOwnProperty("_usept")){var u=n._usept||{},a=u.mergeSections,v=void 0===a||a,d=u.mergeProps,s=void 0!==d&&d,f=r(n.originalValue),g=r(n.value);if(void 0===f&&void 0===g)return;return t.isString(g)?g:t.isString(f)?f:v||!v&&g?s?e(f,g):c(c({},f),g):g}return r(n)},_useDefaultPT:function(){return p._usePT(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},arguments.length>2?arguments[2]:void 0,arguments.length>3?arguments[3]:void 0,arguments.length>4?arguments[4]:void 0)},_hook:function(n,e,o,i,l,r){var u,a,v,d="on".concat(t.toCapitalCase(e)),c=null==i||null===(u=i.instance)||void 0===u||null===(u=u.$primevue)||void 0===u?void 0:u.config,s=null==o?void 0:o.$instance,f=p._usePT(s,p._getPT(null==i||null===(a=i.value)||void 0===a?void 0:a.pt,n),p._getOptionValue,"hooks.".concat(d)),g=p._useDefaultPT(s,null==c||null===(v=c.pt)||void 0===v||null===(v=v.directives)||void 0===v?void 0:v[n],p._getOptionValue,"hooks.".concat(d)),y={el:o,binding:i,vnode:l,prevVnode:r};null==f||f(s,y),null==g||g(s,y)},_extend:function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=function(n,i,l,r,u){var a,v,d;i._$instances=i._$instances||{};var s=null==l||null===(a=l.instance)||void 0===a||null===(a=a.$primevue)||void 0===a?void 0:a.config,f=i._$instances[e]||{},g=t.isEmpty(f)?c(c({},o),null==o?void 0:o.methods):{};i._$instances[e]=c(c({},f),{},{$name:e,$host:i,$binding:l,$el:f.$el||void 0,$css:c({classes:void 0,inlineStyles:void 0,loadStyle:function(){}},null==o?void 0:o.css),$config:s,defaultPT:p._getPT(null==s?void 0:s.pt,void 0,(function(n){var t;return null==n||null===(t=n.directives)||void 0===t?void 0:t[e]})),isUnstyled:void 0!==i.unstyled?i.unstyled:null==s?void 0:s.unstyled,ptm:function(){var n;return p._getPTValue(i.$instance,null===(n=i.$instance)||void 0===n||null===(n=n.$binding)||void 0===n||null===(n=n.value)||void 0===n?void 0:n.pt,arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",c({},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}))},ptmo:function(){return p._getPTValue(i.$instance,arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},!1)},cx:function(){var n,t;return null!==(n=i.$instance)&&void 0!==n&&n.isUnstyled?void 0:p._getOptionValue(null===(t=i.$instance)||void 0===t||null===(t=t.$css)||void 0===t?void 0:t.classes,arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",c({},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}))},sx:function(){var n;return!(arguments.length>1&&void 0!==arguments[1])||arguments[1]?p._getOptionValue(null===(n=i.$instance)||void 0===n||null===(n=n.$css)||void 0===n?void 0:n.inlineStyles,arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",c({},arguments.length>2&&void 0!==arguments[2]?arguments[2]:{})):void 0}},g),i.$instance=i._$instances[e],null===(v=(d=i.$instance)[n])||void 0===v||v.call(d,i,l,r,u),p._hook(e,n,i,l,r,u)};return{created:function(n,t,e,o){i("created",n,t,e,o)},beforeMount:function(t,e,o,l){var r,u,a,v,d,c=null==e||null===(r=e.instance)||void 0===r||null===(r=r.$primevue)||void 0===r?void 0:r.config;n(void 0,{nonce:null==c||null===(u=c.csp)||void 0===u?void 0:u.nonce}),(null===(a=t.$instance)||void 0===a||!a.isUnstyled)&&(null===(v=t.$instance)||void 0===v||null===(v=v.$css)||void 0===v||v.loadStyle(void 0,{nonce:null==c||null===(d=c.csp)||void 0===d?void 0:d.nonce})),i("beforeMount",t,e,o,l)},mounted:function(n,t,e,o){i("mounted",n,t,e,o)},beforeUpdate:function(n,t,e,o){i("beforeUpdate",n,t,e,o)},updated:function(n,t,e,o){i("updated",n,t,e,o)},beforeUnmount:function(n,t,e,o){i("beforeUnmount",n,t,e,o)},unmounted:function(n,t,e,o){i("unmounted",n,t,e,o)}}},extend:function(){var n=i(p._getMeta.apply(p,arguments),2),t=n[1];return c({extend:function(){var n=i(p._getMeta.apply(p,arguments),2),e=n[1];return p.extend(n[0],c(c(c({},t),null==t?void 0:t.methods),e))}},p._extend(n[0],t))}};export{p as default};
@@ -28,6 +28,7 @@ this.primevue.basedirective = (function (base, utils, vue) {
28
28
  }) || ''], params), fKeys.join('.'), params) : undefined : utils.ObjectUtils.getItemValue(options, params);
29
29
  },
30
30
  _getPTValue: function _getPTValue() {
31
+ var _instance$binding;
31
32
  var instance = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
32
33
  var obj = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
33
34
  var key = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
@@ -40,19 +41,27 @@ this.primevue.basedirective = (function (base, utils, vue) {
40
41
  } : value;
41
42
  };
42
43
  var datasetPrefix = 'data-pc-';
43
- var self = BaseDirective._usePT(BaseDirective._getPT(obj, instance.$name), getValue, key, params);
44
- var globalPT = searchInDefaultPT ? BaseDirective._useDefaultPT(instance.defaultPT, getValue, key, params) : undefined;
45
- var merged = vue.mergeProps(self, globalPT, _objectSpread(_objectSpread({}, key === 'root' && _defineProperty({}, "".concat(datasetPrefix, "name"), utils.ObjectUtils.toFlatCase(instance.$name))), {}, _defineProperty({}, "".concat(datasetPrefix, "section"), utils.ObjectUtils.toFlatCase(key))));
46
- return merged;
44
+ var _ref = ((_instance$binding = instance.binding) === null || _instance$binding === void 0 || (_instance$binding = _instance$binding.value) === null || _instance$binding === void 0 ? void 0 : _instance$binding.ptOptions) || {},
45
+ _ref$mergeSections = _ref.mergeSections,
46
+ mergeSections = _ref$mergeSections === void 0 ? true : _ref$mergeSections,
47
+ _ref$mergeProps = _ref.mergeProps,
48
+ useMergeProps = _ref$mergeProps === void 0 ? false : _ref$mergeProps;
49
+ var global = searchInDefaultPT ? BaseDirective._useDefaultPT(instance, instance.defaultPT, getValue, key, params) : undefined;
50
+ var self = BaseDirective._usePT(instance, BaseDirective._getPT(obj, instance.$name), getValue, key, _objectSpread(_objectSpread({}, params), {}, {
51
+ global: global || {}
52
+ }));
53
+ var datasets = _objectSpread(_objectSpread({}, key === 'root' && _defineProperty({}, "".concat(datasetPrefix, "name"), utils.ObjectUtils.toFlatCase(instance.$name))), {}, _defineProperty({}, "".concat(datasetPrefix, "section"), utils.ObjectUtils.toFlatCase(key)));
54
+ return mergeSections || !mergeSections && self ? useMergeProps ? vue.mergeProps(global, self, datasets) : _objectSpread(_objectSpread(_objectSpread({}, global), self), datasets) : _objectSpread(_objectSpread({}, self), datasets);
47
55
  },
48
56
  _getPT: function _getPT(pt) {
49
57
  var key = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
50
58
  var callback = arguments.length > 2 ? arguments[2] : undefined;
51
59
  var _usept = pt === null || pt === void 0 ? void 0 : pt['_usept'];
52
60
  var getValue = function getValue(value) {
53
- var _computedValue$Object;
61
+ var _computedValue$_key;
54
62
  var computedValue = callback ? callback(value) : value;
55
- return (_computedValue$Object = computedValue === null || computedValue === void 0 ? void 0 : computedValue[utils.ObjectUtils.toFlatCase(key)]) !== null && _computedValue$Object !== void 0 ? _computedValue$Object : computedValue;
63
+ var _key = utils.ObjectUtils.toFlatCase(key);
64
+ return (_computedValue$_key = computedValue === null || computedValue === void 0 ? void 0 : computedValue[_key]) !== null && _computedValue$_key !== void 0 ? _computedValue$_key : computedValue;
56
65
  };
57
66
  return utils.ObjectUtils.isNotEmpty(_usept) ? {
58
67
  _usept: _usept,
@@ -60,14 +69,20 @@ this.primevue.basedirective = (function (base, utils, vue) {
60
69
  value: getValue(pt.value)
61
70
  } : getValue(pt);
62
71
  },
63
- _usePT: function _usePT(pt, callback, key, params) {
72
+ _usePT: function _usePT() {
73
+ var pt = arguments.length > 1 ? arguments[1] : undefined;
74
+ var callback = arguments.length > 2 ? arguments[2] : undefined;
75
+ var key = arguments.length > 3 ? arguments[3] : undefined;
76
+ var params = arguments.length > 4 ? arguments[4] : undefined;
64
77
  var fn = function fn(value) {
65
78
  return callback(value, key, params);
66
79
  };
67
80
  if (pt !== null && pt !== void 0 && pt.hasOwnProperty('_usept')) {
68
- var _pt$_usept = pt['_usept'],
69
- mergeSections = _pt$_usept.mergeSections,
70
- useMergeProps = _pt$_usept.mergeProps;
81
+ var _ref3 = pt['_usept'] || {},
82
+ _ref3$mergeSections = _ref3.mergeSections,
83
+ mergeSections = _ref3$mergeSections === void 0 ? true : _ref3$mergeSections,
84
+ _ref3$mergeProps = _ref3.mergeProps,
85
+ useMergeProps = _ref3$mergeProps === void 0 ? false : _ref3$mergeProps;
71
86
  var originalValue = fn(pt.originalValue);
72
87
  var value = fn(pt.value);
73
88
  if (originalValue === undefined && value === undefined) return undefined;else if (utils.ObjectUtils.isString(value)) return value;else if (utils.ObjectUtils.isString(originalValue)) return originalValue;
@@ -76,26 +91,28 @@ this.primevue.basedirective = (function (base, utils, vue) {
76
91
  return fn(pt);
77
92
  },
78
93
  _useDefaultPT: function _useDefaultPT() {
79
- var defaultPT = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
80
- var callback = arguments.length > 1 ? arguments[1] : undefined;
81
- var key = arguments.length > 2 ? arguments[2] : undefined;
82
- var params = arguments.length > 3 ? arguments[3] : undefined;
83
- return BaseDirective._usePT(defaultPT, callback, key, params);
94
+ var instance = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
95
+ var defaultPT = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
96
+ var callback = arguments.length > 2 ? arguments[2] : undefined;
97
+ var key = arguments.length > 3 ? arguments[3] : undefined;
98
+ var params = arguments.length > 4 ? arguments[4] : undefined;
99
+ return BaseDirective._usePT(instance, defaultPT, callback, key, params);
84
100
  },
85
101
  _hook: function _hook(directiveName, hookName, el, binding, vnode, prevVnode) {
86
102
  var _binding$instance, _binding$value, _config$pt;
87
103
  var name = "on".concat(utils.ObjectUtils.toCapitalCase(hookName));
88
104
  var config = binding === null || binding === void 0 || (_binding$instance = binding.instance) === null || _binding$instance === void 0 || (_binding$instance = _binding$instance.$primevue) === null || _binding$instance === void 0 ? void 0 : _binding$instance.config;
89
- var selfHook = BaseDirective._usePT(BaseDirective._getPT(binding === null || binding === void 0 || (_binding$value = binding.value) === null || _binding$value === void 0 ? void 0 : _binding$value.pt, directiveName), BaseDirective._getOptionValue, "hooks.".concat(name));
90
- var defaultHook = BaseDirective._useDefaultPT(config === null || config === void 0 || (_config$pt = config.pt) === null || _config$pt === void 0 || (_config$pt = _config$pt.directives) === null || _config$pt === void 0 ? void 0 : _config$pt[directiveName], BaseDirective._getOptionValue, "hooks.".concat(name));
105
+ var instance = el === null || el === void 0 ? void 0 : el.$instance;
106
+ var selfHook = BaseDirective._usePT(instance, BaseDirective._getPT(binding === null || binding === void 0 || (_binding$value = binding.value) === null || _binding$value === void 0 ? void 0 : _binding$value.pt, directiveName), BaseDirective._getOptionValue, "hooks.".concat(name));
107
+ var defaultHook = BaseDirective._useDefaultPT(instance, config === null || config === void 0 || (_config$pt = config.pt) === null || _config$pt === void 0 || (_config$pt = _config$pt.directives) === null || _config$pt === void 0 ? void 0 : _config$pt[directiveName], BaseDirective._getOptionValue, "hooks.".concat(name));
91
108
  var options = {
92
109
  el: el,
93
110
  binding: binding,
94
111
  vnode: vnode,
95
112
  prevVnode: prevVnode
96
113
  };
97
- selfHook === null || selfHook === void 0 || selfHook(el === null || el === void 0 ? void 0 : el.$instance, options);
98
- defaultHook === null || defaultHook === void 0 || defaultHook(el === null || el === void 0 ? void 0 : el.$instance, options);
114
+ selfHook === null || selfHook === void 0 || selfHook(instance, options);
115
+ defaultHook === null || defaultHook === void 0 || defaultHook(instance, options);
99
116
  },
100
117
  _extend: function _extend(name) {
101
118
  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
@@ -1 +1 @@
1
- this.primevue=this.primevue||{},this.primevue.basedirective=function(t,e,n){"use strict";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 o(t,e){return a(t)||c(t,e)||r(t,e)||l()}function l(){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 r(t,e){if(t){if("string"==typeof t)return u(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)?u(t,e):void 0}}function u(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 c(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,o,l,r,u=[],c=!0,a=!1;try{if(l=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(i=l.call(n)).done)&&(u.push(i.value),u.length!==e);c=!0);}catch(t){a=!0,o=t}finally{try{if(!c&&null!=n.return&&(r=n.return(),Object(r)!==r))return}finally{if(a)throw o}}return u}}function a(t){if(Array.isArray(t))return 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 v(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){d(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 d(t,e,n){return(e=f(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function f(t){var e=g(t,"string");return"symbol"===i(e)?e:String(e)}function g(t,e){if("object"!==i(t)||null===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 p={_getMeta:function(){return[e.ObjectUtils.isObject(arguments.length<=0?void 0:arguments[0])||arguments.length<=0?void 0:arguments[0],e.ObjectUtils.getItemValue(e.ObjectUtils.isObject(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:arguments.length<=1?void 0:arguments[1])]},_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)?p._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=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},l=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],r=function(){var t=p._getOptionValue.apply(p,arguments);return e.ObjectUtils.isString(t)||e.ObjectUtils.isArray(t)?{class:t}:t},u="data-pc-",c=p._usePT(p._getPT(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t.$name),r,i,o),a=l?p._useDefaultPT(t.defaultPT,r,i,o):void 0;return n.mergeProps(c,a,v(v({},"root"===i&&d({},"".concat(u,"name"),e.ObjectUtils.toFlatCase(t.$name))),{},d({},"".concat(u,"section"),e.ObjectUtils.toFlatCase(i))))},_getPT:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2?arguments[2]:void 0,o=null==t?void 0:t._usept,l=function(t){var o,l=i?i(t):t;return null!==(o=null==l?void 0:l[e.ObjectUtils.toFlatCase(n)])&&void 0!==o?o:l};return e.ObjectUtils.isNotEmpty(o)?{_usept:o,originalValue:l(t.originalValue),value:l(t.value)}:l(t)},_usePT:function(t,i,o,l){var r=function(t){return i(t,o,l)};if(null!=t&&t.hasOwnProperty("_usept")){var u=t._usept,c=u.mergeSections,a=u.mergeProps,s=r(t.originalValue),d=r(t.value);if(void 0===s&&void 0===d)return;return e.ObjectUtils.isString(d)?d:e.ObjectUtils.isString(s)?s:c||!c&&d?a?n.mergeProps(s,d):v(v({},s),d):d}return r(t)},_useDefaultPT:function(){return p._usePT(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0,arguments.length>2?arguments[2]:void 0,arguments.length>3?arguments[3]:void 0)},_hook:function(t,n,i,o,l,r){var u,c,a,s="on".concat(e.ObjectUtils.toCapitalCase(n)),v=null==o||null===(u=o.instance)||void 0===u||null===(u=u.$primevue)||void 0===u?void 0:u.config,d=p._usePT(p._getPT(null==o||null===(c=o.value)||void 0===c?void 0:c.pt,t),p._getOptionValue,"hooks.".concat(s)),f=p._useDefaultPT(null==v||null===(a=v.pt)||void 0===a||null===(a=a.directives)||void 0===a?void 0:a[t],p._getOptionValue,"hooks.".concat(s)),g={el:i,binding:o,vnode:l,prevVnode:r};null==d||d(null==i?void 0:i.$instance,g),null==f||f(null==i?void 0:i.$instance,g)},_extend:function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=function(t,o,l,r,u){var c,a,s;o._$instances=o._$instances||{};var d=null==l||null===(c=l.instance)||void 0===c||null===(c=c.$primevue)||void 0===c?void 0:c.config,f=o._$instances[n]||{},g=e.ObjectUtils.isEmpty(f)?v(v({},i),null==i?void 0:i.methods):{};o._$instances[n]=v(v({},f),{},{$name:n,$host:o,$binding:l,$el:f.$el||void 0,$css:v({classes:void 0,inlineStyles:void 0,loadStyle:function(){}},null==i?void 0:i.css),$config:d,defaultPT:p._getPT(null==d?void 0:d.pt,void 0,(function(t){var e;return null==t||null===(e=t.directives)||void 0===e?void 0:e[n]})),isUnstyled:void 0!==o.unstyled?o.unstyled:null==d?void 0:d.unstyled,ptm:function(){var t;return p._getPTValue(o.$instance,null===(t=o.$instance)||void 0===t||null===(t=t.$binding)||void 0===t||null===(t=t.value)||void 0===t?void 0:t.pt,arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",v({},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}))},ptmo:function(){return p._getPTValue(o.$instance,arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},!1)},cx:function(){var t,e;return null!==(t=o.$instance)&&void 0!==t&&t.isUnstyled?void 0:p._getOptionValue(null===(e=o.$instance)||void 0===e||null===(e=e.$css)||void 0===e?void 0:e.classes,arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",v({},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}))},sx:function(){var t;return!(arguments.length>1&&void 0!==arguments[1])||arguments[1]?p._getOptionValue(null===(t=o.$instance)||void 0===t||null===(t=t.$css)||void 0===t?void 0:t.inlineStyles,arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",v({},arguments.length>2&&void 0!==arguments[2]?arguments[2]:{})):void 0}},g),o.$instance=o._$instances[n],null===(a=(s=o.$instance)[t])||void 0===a||a.call(s,o,l,r,u),p._hook(n,t,o,l,r,u)};return{created:function(t,e,n,i){o("created",t,e,n,i)},beforeMount:function(e,n,i,l){var r,u,c,a,s,v=null==n||null===(r=n.instance)||void 0===r||null===(r=r.$primevue)||void 0===r?void 0:r.config;t.loadBaseStyle(void 0,{nonce:null==v||null===(u=v.csp)||void 0===u?void 0:u.nonce}),(null===(c=e.$instance)||void 0===c||!c.isUnstyled)&&(null===(a=e.$instance)||void 0===a||null===(a=a.$css)||void 0===a||a.loadStyle(void 0,{nonce:null==v||null===(s=v.csp)||void 0===s?void 0:s.nonce})),o("beforeMount",e,n,i,l)},mounted:function(t,e,n,i){o("mounted",t,e,n,i)},beforeUpdate:function(t,e,n,i){o("beforeUpdate",t,e,n,i)},updated:function(t,e,n,i){o("updated",t,e,n,i)},beforeUnmount:function(t,e,n,i){o("beforeUnmount",t,e,n,i)},unmounted:function(t,e,n,i){o("unmounted",t,e,n,i)}}},extend:function(){var t=o(p._getMeta.apply(p,arguments),2),e=t[1];return v({extend:function(){var t=o(p._getMeta.apply(p,arguments),2),n=t[1];return p.extend(t[0],v(v(v({},e),null==e?void 0:e.methods),n))}},p._extend(t[0],e))}};return p}(primevue.base,primevue.utils,Vue);
1
+ this.primevue=this.primevue||{},this.primevue.basedirective=function(t,e,n){"use strict";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 o(t,e){return a(t)||c(t,e)||r(t,e)||l()}function l(){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 r(t,e){if(t){if("string"==typeof t)return u(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)?u(t,e):void 0}}function u(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 c(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,o,l,r,u=[],c=!0,a=!1;try{if(l=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(i=l.call(n)).done)&&(u.push(i.value),u.length!==e);c=!0);}catch(t){a=!0,o=t}finally{try{if(!c&&null!=n.return&&(r=n.return(),Object(r)!==r))return}finally{if(a)throw o}}return u}}function a(t){if(Array.isArray(t))return 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 v(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){d(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 d(t,e,n){return(e=f(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function f(t){var e=g(t,"string");return"symbol"===i(e)?e:String(e)}function g(t,e){if("object"!==i(t)||null===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 p={_getMeta:function(){return[e.ObjectUtils.isObject(arguments.length<=0?void 0:arguments[0])||arguments.length<=0?void 0:arguments[0],e.ObjectUtils.getItemValue(e.ObjectUtils.isObject(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:arguments.length<=1?void 0:arguments[1])]},_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)?p._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,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},u=function(){var t=p._getOptionValue.apply(p,arguments);return e.ObjectUtils.isString(t)||e.ObjectUtils.isArray(t)?{class:t}:t},c="data-pc-",a=(null===(t=i.binding)||void 0===t||null===(t=t.value)||void 0===t?void 0:t.ptOptions)||{},s=a.mergeSections,f=void 0===s||s,g=a.mergeProps,b=void 0!==g&&g,y=!(arguments.length>4&&void 0!==arguments[4])||arguments[4]?p._useDefaultPT(i,i.defaultPT,u,l,r):void 0,m=p._usePT(i,p._getPT(o,i.$name),u,l,v(v({},r),{},{global:y||{}})),h=v(v({},"root"===l&&d({},"".concat(c,"name"),e.ObjectUtils.toFlatCase(i.$name))),{},d({},"".concat(c,"section"),e.ObjectUtils.toFlatCase(l)));return f||!f&&m?b?n.mergeProps(y,m,h):v(v(v({},y),m),h):v(v({},m),h)},_getPT:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2?arguments[2]:void 0,o=null==t?void 0:t._usept,l=function(t){var o,l=i?i(t):t,r=e.ObjectUtils.toFlatCase(n);return null!==(o=null==l?void 0:l[r])&&void 0!==o?o:l};return e.ObjectUtils.isNotEmpty(o)?{_usept:o,originalValue:l(t.originalValue),value:l(t.value)}:l(t)},_usePT:function(){var t=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,l=arguments.length>4?arguments[4]:void 0,r=function(t){return i(t,o,l)};if(null!=t&&t.hasOwnProperty("_usept")){var u=t._usept||{},c=u.mergeSections,a=void 0===c||c,s=u.mergeProps,d=void 0!==s&&s,f=r(t.originalValue),g=r(t.value);if(void 0===f&&void 0===g)return;return e.ObjectUtils.isString(g)?g:e.ObjectUtils.isString(f)?f:a||!a&&g?d?n.mergeProps(f,g):v(v({},f),g):g}return r(t)},_useDefaultPT:function(){return p._usePT(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},arguments.length>2?arguments[2]:void 0,arguments.length>3?arguments[3]:void 0,arguments.length>4?arguments[4]:void 0)},_hook:function(t,n,i,o,l,r){var u,c,a,s="on".concat(e.ObjectUtils.toCapitalCase(n)),v=null==o||null===(u=o.instance)||void 0===u||null===(u=u.$primevue)||void 0===u?void 0:u.config,d=null==i?void 0:i.$instance,f=p._usePT(d,p._getPT(null==o||null===(c=o.value)||void 0===c?void 0:c.pt,t),p._getOptionValue,"hooks.".concat(s)),g=p._useDefaultPT(d,null==v||null===(a=v.pt)||void 0===a||null===(a=a.directives)||void 0===a?void 0:a[t],p._getOptionValue,"hooks.".concat(s)),b={el:i,binding:o,vnode:l,prevVnode:r};null==f||f(d,b),null==g||g(d,b)},_extend:function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=function(t,o,l,r,u){var c,a,s;o._$instances=o._$instances||{};var d=null==l||null===(c=l.instance)||void 0===c||null===(c=c.$primevue)||void 0===c?void 0:c.config,f=o._$instances[n]||{},g=e.ObjectUtils.isEmpty(f)?v(v({},i),null==i?void 0:i.methods):{};o._$instances[n]=v(v({},f),{},{$name:n,$host:o,$binding:l,$el:f.$el||void 0,$css:v({classes:void 0,inlineStyles:void 0,loadStyle:function(){}},null==i?void 0:i.css),$config:d,defaultPT:p._getPT(null==d?void 0:d.pt,void 0,(function(t){var e;return null==t||null===(e=t.directives)||void 0===e?void 0:e[n]})),isUnstyled:void 0!==o.unstyled?o.unstyled:null==d?void 0:d.unstyled,ptm:function(){var t;return p._getPTValue(o.$instance,null===(t=o.$instance)||void 0===t||null===(t=t.$binding)||void 0===t||null===(t=t.value)||void 0===t?void 0:t.pt,arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",v({},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}))},ptmo:function(){return p._getPTValue(o.$instance,arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},!1)},cx:function(){var t,e;return null!==(t=o.$instance)&&void 0!==t&&t.isUnstyled?void 0:p._getOptionValue(null===(e=o.$instance)||void 0===e||null===(e=e.$css)||void 0===e?void 0:e.classes,arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",v({},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}))},sx:function(){var t;return!(arguments.length>1&&void 0!==arguments[1])||arguments[1]?p._getOptionValue(null===(t=o.$instance)||void 0===t||null===(t=t.$css)||void 0===t?void 0:t.inlineStyles,arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",v({},arguments.length>2&&void 0!==arguments[2]?arguments[2]:{})):void 0}},g),o.$instance=o._$instances[n],null===(a=(s=o.$instance)[t])||void 0===a||a.call(s,o,l,r,u),p._hook(n,t,o,l,r,u)};return{created:function(t,e,n,i){o("created",t,e,n,i)},beforeMount:function(e,n,i,l){var r,u,c,a,s,v=null==n||null===(r=n.instance)||void 0===r||null===(r=r.$primevue)||void 0===r?void 0:r.config;t.loadBaseStyle(void 0,{nonce:null==v||null===(u=v.csp)||void 0===u?void 0:u.nonce}),(null===(c=e.$instance)||void 0===c||!c.isUnstyled)&&(null===(a=e.$instance)||void 0===a||null===(a=a.$css)||void 0===a||a.loadStyle(void 0,{nonce:null==v||null===(s=v.csp)||void 0===s?void 0:s.nonce})),o("beforeMount",e,n,i,l)},mounted:function(t,e,n,i){o("mounted",t,e,n,i)},beforeUpdate:function(t,e,n,i){o("beforeUpdate",t,e,n,i)},updated:function(t,e,n,i){o("updated",t,e,n,i)},beforeUnmount:function(t,e,n,i){o("beforeUnmount",t,e,n,i)},unmounted:function(t,e,n,i){o("unmounted",t,e,n,i)}}},extend:function(){var t=o(p._getMeta.apply(p,arguments),2),e=t[1];return v({extend:function(){var t=o(p._getMeta.apply(p,arguments),2),n=t[1];return p.extend(t[0],v(v(v({},e),null==e?void 0:e.methods),n))}},p._extend(t[0],e))}};return p}(primevue.base,primevue.utils,Vue);
@@ -9,7 +9,8 @@
9
9
  */
10
10
  import { VNode } from 'vue';
11
11
  import { ComponentHooks } from '../basecomponent';
12
- import { ClassComponent, GlobalComponentConstructor, PTOptions } from '../ts-helpers';
12
+ import { PassThroughOptions } from '../passthrough';
13
+ import { ClassComponent, GlobalComponentConstructor, PassThrough } from '../ts-helpers';
13
14
 
14
15
  export declare type BlockUIPassThroughOptionType = BlockUIPassThroughAttributes | ((options: BlockUIPassThroughMethodOptions) => BlockUIPassThroughAttributes | string) | string | null | undefined;
15
16
 
@@ -17,9 +18,22 @@ export declare type BlockUIPassThroughOptionType = BlockUIPassThroughAttributes
17
18
  * Custom passthrough(pt) option method.
18
19
  */
19
20
  export interface BlockUIPassThroughMethodOptions {
21
+ /**
22
+ * Defines instance.
23
+ */
20
24
  instance: any;
25
+ /**
26
+ * Defines valid properties.
27
+ */
21
28
  props: BlockUIProps;
29
+ /**
30
+ * Defines current inline state.
31
+ */
22
32
  state: BlockUIState;
33
+ /**
34
+ * Defines passthrough(pt) options in global config.
35
+ */
36
+ global: object | undefined;
23
37
  }
24
38
 
25
39
  /**
@@ -88,7 +102,12 @@ export interface BlockUIProps {
88
102
  * Used to pass attributes to DOM elements inside the component.
89
103
  * @type {BlockUIPassThroughOptions}
90
104
  */
91
- pt?: PTOptions<BlockUIPassThroughOptions>;
105
+ pt?: PassThrough<BlockUIPassThroughOptions>;
106
+ /**
107
+ * Used to configure passthrough(pt) options of the component.
108
+ * @type {PassThroughOptions}
109
+ */
110
+ ptOptions?: PassThroughOptions;
92
111
  /**
93
112
  * When enabled, it removes component related styles in the core.
94
113
  * @defaultValue false
@@ -10,7 +10,8 @@
10
10
  import { VNode } from 'vue';
11
11
  import { ComponentHooks } from '../basecomponent';
12
12
  import { MenuItem } from '../menuitem';
13
- import { ClassComponent, GlobalComponentConstructor, PTOptions } from '../ts-helpers';
13
+ import { PassThroughOptions } from '../passthrough';
14
+ import { ClassComponent, GlobalComponentConstructor, PassThrough } from '../ts-helpers';
14
15
 
15
16
  export declare type BreadcrumbPassThroughOptionType = BreadcrumbPassThroughAttributes | ((options: BreadcrumbPassThroughMethodOptions) => BreadcrumbPassThroughAttributes | string) | string | null | undefined;
16
17
 
@@ -18,9 +19,22 @@ export declare type BreadcrumbPassThroughOptionType = BreadcrumbPassThroughAttri
18
19
  * Custom passthrough(pt) option method.
19
20
  */
20
21
  export interface BreadcrumbPassThroughMethodOptions {
22
+ /**
23
+ * Defines instance.
24
+ */
21
25
  instance: any;
26
+ /**
27
+ * Defines valid properties.
28
+ */
22
29
  props: BreadcrumbProps;
30
+ /**
31
+ * Defines current options.
32
+ */
23
33
  context: BreadcrumbContext;
34
+ /**
35
+ * Defines passthrough(pt) options in global config.
36
+ */
37
+ global: object | undefined;
24
38
  }
25
39
 
26
40
  /**
@@ -88,6 +102,24 @@ export interface BreadcrumbContext {
88
102
  index: number;
89
103
  }
90
104
 
105
+ /**
106
+ * Defines valid router binding props in Breadcrumb component.
107
+ */
108
+ export interface BreadcrumbRouterBindProps {
109
+ /**
110
+ * Action element binding
111
+ */
112
+ action: object;
113
+ /**
114
+ * Icon element binding
115
+ */
116
+ icon: object;
117
+ /**
118
+ * Label element binding
119
+ */
120
+ label: object;
121
+ }
122
+
91
123
  /**
92
124
  * Defines valid properties in Breadcrumb component.
93
125
  */
@@ -117,7 +149,12 @@ export interface BreadcrumbProps {
117
149
  * Used to pass attributes to DOM elements inside the component.
118
150
  * @type {BreadcrumbPassThroughOptions}
119
151
  */
120
- pt?: PTOptions<BreadcrumbPassThroughOptions>;
152
+ pt?: PassThrough<BreadcrumbPassThroughOptions>;
153
+ /**
154
+ * Used to configure passthrough(pt) options of the component.
155
+ * @type {PassThroughOptions}
156
+ */
157
+ ptOptions?: PassThroughOptions;
121
158
  /**
122
159
  * When enabled, it removes component related styles in the core.
123
160
  * @defaultValue false
@@ -145,7 +182,7 @@ export interface BreadcrumbSlots {
145
182
  /**
146
183
  * Binding properties of the menuitem
147
184
  */
148
- props: (...args: any) => string;
185
+ props: BreadcrumbRouterBindProps;
149
186
  }): VNode[];
150
187
  /**
151
188
  * Custom separator template.
@@ -9,7 +9,8 @@
9
9
  */
10
10
  import { ButtonHTMLAttributes, VNode } from 'vue';
11
11
  import { ComponentHooks } from '../basecomponent';
12
- import { ClassComponent, GlobalComponentConstructor, PTOptions } from '../ts-helpers';
12
+ import { PassThroughOptions } from '../passthrough';
13
+ import { ClassComponent, GlobalComponentConstructor, PassThrough } from '../ts-helpers';
13
14
 
14
15
  export declare type ButtonPassThroughOptionType = ButtonPassThroughAttributes | ((options: ButtonPassThroughMethodOptions) => ButtonPassThroughAttributes | string) | string | null | undefined;
15
16
 
@@ -17,10 +18,26 @@ export declare type ButtonPassThroughOptionType = ButtonPassThroughAttributes |
17
18
  * Custom passthrough(pt) option method.
18
19
  */
19
20
  export interface ButtonPassThroughMethodOptions {
21
+ /**
22
+ * Defines instance.
23
+ */
20
24
  instance: any;
25
+ /**
26
+ * Defines valid properties.
27
+ */
21
28
  props: ButtonProps;
29
+ /**
30
+ * Defines current options.
31
+ */
22
32
  context: ButtonContext;
33
+ /**
34
+ * Defines parent instance.
35
+ */
23
36
  parent: any;
37
+ /**
38
+ * Defines passthrough(pt) options in global config.
39
+ */
40
+ global: object | undefined;
24
41
  }
25
42
 
26
43
  /**
@@ -150,7 +167,12 @@ export interface ButtonProps extends ButtonHTMLAttributes {
150
167
  * Used to pass attributes to DOM elements inside the component.
151
168
  * @type {ButtonPassThroughOptions}
152
169
  */
153
- pt?: PTOptions<ButtonPassThroughOptions>;
170
+ pt?: PassThrough<ButtonPassThroughOptions>;
171
+ /**
172
+ * Used to configure passthrough(pt) options of the component.
173
+ * @type {PassThroughOptions}
174
+ */
175
+ ptOptions?: PassThroughOptions;
154
176
  /**
155
177
  * When enabled, it removes component related styles in the core.
156
178
  * @defaultValue false
@@ -10,7 +10,8 @@
10
10
  import { HTMLAttributes, InputHTMLAttributes, TransitionProps, VNode } from 'vue';
11
11
  import { ComponentHooks } from '../basecomponent';
12
12
  import { ButtonPassThroughOptionType } from '../button';
13
- import { ClassComponent, GlobalComponentConstructor, PTOptions } from '../ts-helpers';
13
+ import { PassThroughOptions } from '../passthrough';
14
+ import { ClassComponent, GlobalComponentConstructor, PassThrough } from '../ts-helpers';
14
15
 
15
16
  export declare type CalendarPassThroughOptionType = CalendarPassThroughAttributes | ((options: CalendarPassThroughMethodOptions) => CalendarPassThroughAttributes | string) | string | null | undefined;
16
17
 
@@ -20,10 +21,26 @@ export declare type CalendarPassThroughTransitionType = TransitionProps | ((opti
20
21
  * Custom passthrough(pt) option method.
21
22
  */
22
23
  export interface CalendarPassThroughMethodOptions {
24
+ /**
25
+ * Defines instance.
26
+ */
23
27
  instance: any;
28
+ /**
29
+ * Defines valid properties.
30
+ */
24
31
  props: CalendarProps;
32
+ /**
33
+ * Defines current inline state.
34
+ */
25
35
  state: CalendarState;
36
+ /**
37
+ * Defines current options.
38
+ */
26
39
  context: CalendarContext;
40
+ /**
41
+ * Defines passthrough(pt) options in global config.
42
+ */
43
+ global: object | undefined;
27
44
  }
28
45
 
29
46
  /**
@@ -393,7 +410,7 @@ export interface CalendarContext {
393
410
  }
394
411
 
395
412
  /**
396
- * Defines cuurent month options.
413
+ * Defines current month options.
397
414
  */
398
415
  export interface CalendarMonthOptions {
399
416
  /**
@@ -691,7 +708,12 @@ export interface CalendarProps {
691
708
  * Used to pass attributes to DOM elements inside the component.
692
709
  * @type {CalendarPassThroughOptions}
693
710
  */
694
- pt?: PTOptions<CalendarPassThroughOptions>;
711
+ pt?: PassThrough<CalendarPassThroughOptions>;
712
+ /**
713
+ * Used to configure passthrough(pt) options of the component.
714
+ * @type {PassThroughOptions}
715
+ */
716
+ ptOptions?: PassThroughOptions;
695
717
  /**
696
718
  * When enabled, it removes component related styles in the core.
697
719
  * @defaultValue false
package/card/Card.d.ts CHANGED
@@ -9,7 +9,8 @@
9
9
  */
10
10
  import { VNode } from 'vue';
11
11
  import { ComponentHooks } from '../basecomponent';
12
- import { ClassComponent, GlobalComponentConstructor, PTOptions } from '../ts-helpers';
12
+ import { PassThroughOptions } from '../passthrough';
13
+ import { ClassComponent, GlobalComponentConstructor, PassThrough } from '../ts-helpers';
13
14
 
14
15
  export declare type CardPassThroughOptionType = CardPassThroughAttributes | null | undefined;
15
16
 
@@ -68,7 +69,12 @@ export interface CardProps {
68
69
  * Used to pass attributes to DOM elements inside the component.
69
70
  * @type {CardPassThroughOptions}
70
71
  */
71
- pt?: PTOptions<CardPassThroughOptions>;
72
+ pt?: PassThrough<CardPassThroughOptions>;
73
+ /**
74
+ * Used to configure passthrough(pt) options of the component.
75
+ * @type {PassThroughOptions}
76
+ */
77
+ ptOptions?: PassThroughOptions;
72
78
  /**
73
79
  * When enabled, it removes component related styles in the core.
74
80
  * @defaultValue false
@@ -9,7 +9,8 @@
9
9
  */
10
10
  import { ButtonHTMLAttributes, VNode } from 'vue';
11
11
  import { ComponentHooks } from '../basecomponent';
12
- import { ClassComponent, GlobalComponentConstructor, PTOptions } from '../ts-helpers';
12
+ import { PassThroughOptions } from '../passthrough';
13
+ import { ClassComponent, GlobalComponentConstructor, PassThrough } from '../ts-helpers';
13
14
 
14
15
  export declare type CarouselPassThroughOptionType = CarouselPassThroughAttributes | ((options: CarouselPassThroughMethodOptions) => CarouselPassThroughAttributes | string) | string | null | undefined;
15
16
 
@@ -17,10 +18,26 @@ export declare type CarouselPassThroughOptionType = CarouselPassThroughAttribute
17
18
  * Custom passthrough(pt) option method.
18
19
  */
19
20
  export interface CarouselPassThroughMethodOptions {
21
+ /**
22
+ * Defines instance.
23
+ */
20
24
  instance: any;
25
+ /**
26
+ * Defines valid properties.
27
+ */
21
28
  props: CarouselProps;
29
+ /**
30
+ * Defines current inline state.
31
+ */
22
32
  state: CarouselState;
33
+ /**
34
+ * Defines current options.
35
+ */
23
36
  context: CarouselContext;
37
+ /**
38
+ * Defines passthrough(pt) options in global config.
39
+ */
40
+ global: object | undefined;
24
41
  }
25
42
 
26
43
  /**
@@ -274,7 +291,12 @@ export interface CarouselProps {
274
291
  * Used to pass attributes to DOM elements inside the component.
275
292
  * @type {CarouselPassThroughOptions}
276
293
  */
277
- pt?: PTOptions<CarouselPassThroughOptions>;
294
+ pt?: PassThrough<CarouselPassThroughOptions>;
295
+ /**
296
+ * Used to configure passthrough(pt) options of the component.
297
+ * @type {PassThroughOptions}
298
+ */
299
+ ptOptions?: PassThroughOptions;
278
300
  /**
279
301
  * When enabled, it removes component related styles in the core.
280
302
  * @defaultValue false