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.
- package/accordion/Accordion.d.ts +21 -2
- package/accordiontab/AccordionTab.d.ts +24 -2
- package/autocomplete/AutoComplete.d.ts +24 -2
- package/autocomplete/AutoComplete.vue +1 -1
- package/autocomplete/autocomplete.cjs.js +1 -1
- package/autocomplete/autocomplete.cjs.min.js +1 -1
- package/autocomplete/autocomplete.esm.js +1 -1
- package/autocomplete/autocomplete.esm.min.js +1 -1
- package/autocomplete/autocomplete.js +1 -1
- package/autocomplete/autocomplete.min.js +1 -1
- package/avatar/Avatar.d.ts +21 -2
- package/avatargroup/AvatarGroup.d.ts +8 -2
- package/badge/Badge.d.ts +18 -2
- package/badgedirective/BadgeDirective.d.ts +12 -2
- package/basecomponent/BaseComponent.vue +18 -20
- package/basecomponent/basecomponent.cjs.js +31 -19
- package/basecomponent/basecomponent.cjs.min.js +1 -1
- package/basecomponent/basecomponent.esm.js +31 -19
- package/basecomponent/basecomponent.esm.min.js +1 -1
- package/basecomponent/basecomponent.js +31 -19
- package/basecomponent/basecomponent.min.js +1 -1
- package/basedirective/basedirective.cjs.js +36 -19
- package/basedirective/basedirective.cjs.min.js +1 -1
- package/basedirective/basedirective.esm.js +36 -19
- package/basedirective/basedirective.esm.min.js +1 -1
- package/basedirective/basedirective.js +36 -19
- package/basedirective/basedirective.min.js +1 -1
- package/blockui/BlockUI.d.ts +21 -2
- package/breadcrumb/Breadcrumb.d.ts +40 -3
- package/button/Button.d.ts +24 -2
- package/calendar/Calendar.d.ts +25 -3
- package/card/Card.d.ts +8 -2
- package/carousel/Carousel.d.ts +24 -2
- package/cascadeselect/CascadeSelect.d.ts +21 -2
- package/chart/Chart.d.ts +18 -2
- package/checkbox/Checkbox.d.ts +24 -2
- package/chip/Chip.d.ts +21 -2
- package/chips/Chips.d.ts +21 -2
- package/colorpicker/ColorPicker.d.ts +21 -2
- package/column/Column.d.ts +24 -2
- package/columngroup/ColumnGroup.d.ts +24 -2
- package/config/PrimeVue.d.ts +93 -92
- package/config/config.cjs.js +1 -0
- package/config/config.cjs.min.js +1 -1
- package/config/config.esm.js +1 -0
- package/config/config.esm.min.js +1 -1
- package/config/config.js +1 -0
- package/config/config.min.js +1 -1
- package/confirmdialog/ConfirmDialog.d.ts +21 -2
- package/confirmpopup/ConfirmPopup.d.ts +21 -2
- package/contextmenu/ContextMenu.d.ts +47 -3
- package/core/core.js +87 -47
- package/core/core.min.js +4 -4
- package/datatable/DataTable.d.ts +25 -3
- package/datatable/TableBody.vue +1 -1
- package/datatable/datatable.cjs.js +2 -2
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.esm.js +2 -2
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +2 -2
- package/datatable/datatable.min.js +1 -1
- package/dataview/DataView.d.ts +21 -2
- package/dataviewlayoutoptions/DataViewLayoutOptions.d.ts +21 -2
- package/deferredcontent/DeferredContent.d.ts +21 -2
- package/dialog/Dialog.d.ts +21 -2
- package/divider/Divider.d.ts +18 -2
- package/dock/Dock.d.ts +39 -3
- package/dropdown/Dropdown.d.ts +24 -2
- package/editor/Editor.d.ts +22 -2
- package/fieldset/Fieldset.d.ts +21 -2
- package/fileupload/FileContent.vue +8 -6
- package/fileupload/FileUpload.d.ts +21 -2
- package/fileupload/FileUpload.vue +8 -6
- package/fileupload/fileupload.cjs.js +16 -12
- package/fileupload/fileupload.cjs.min.js +1 -1
- package/fileupload/fileupload.esm.js +16 -12
- package/fileupload/fileupload.esm.min.js +1 -1
- package/fileupload/fileupload.js +16 -12
- package/fileupload/fileupload.min.js +1 -1
- package/focustrap/FocusTrap.d.ts +8 -2
- package/galleria/Galleria.d.ts +24 -2
- package/image/Image.d.ts +21 -2
- package/inlinemessage/InlineMessage.d.ts +21 -2
- package/inplace/Inplace.d.ts +21 -2
- package/inputmask/InputMask.d.ts +21 -2
- package/inputmask/InputMask.vue +3 -1
- package/inputmask/inputmask.cjs.js +2 -1
- package/inputmask/inputmask.cjs.min.js +1 -1
- package/inputmask/inputmask.esm.js +2 -1
- package/inputmask/inputmask.esm.min.js +1 -1
- package/inputmask/inputmask.js +2 -1
- package/inputmask/inputmask.min.js +1 -1
- package/inputnumber/InputNumber.d.ts +21 -2
- package/inputswitch/InputSwitch.d.ts +21 -2
- package/inputtext/InputText.d.ts +21 -2
- package/knob/Knob.d.ts +21 -2
- package/listbox/Listbox.d.ts +24 -2
- package/megamenu/MegaMenu.d.ts +47 -3
- package/menu/Menu.d.ts +43 -3
- package/menubar/Menubar.d.ts +47 -3
- package/message/Message.d.ts +21 -2
- package/multiselect/MultiSelect.d.ts +24 -2
- package/orderlist/OrderList.d.ts +24 -2
- package/orderlist/OrderList.vue +7 -5
- package/orderlist/orderlist.cjs.js +7 -5
- package/orderlist/orderlist.cjs.min.js +1 -1
- package/orderlist/orderlist.esm.js +7 -5
- package/orderlist/orderlist.esm.min.js +1 -1
- package/orderlist/orderlist.js +7 -5
- package/orderlist/orderlist.min.js +1 -1
- package/organizationchart/OrganizationChart.d.ts +24 -2
- package/overlaypanel/OverlayPanel.d.ts +21 -2
- package/package.json +1 -1
- package/paginator/Paginator.d.ts +24 -2
- package/panel/Panel.d.ts +21 -2
- package/panelmenu/PanelMenu.d.ts +47 -3
- package/passthrough/index.d.ts +2 -2
- package/password/Password.d.ts +21 -2
- package/picklist/PickList.d.ts +24 -2
- package/picklist/PickList.vue +8 -5
- package/picklist/picklist.cjs.js +7 -5
- package/picklist/picklist.cjs.min.js +1 -1
- package/picklist/picklist.esm.js +7 -5
- package/picklist/picklist.esm.min.js +1 -1
- package/picklist/picklist.js +7 -5
- package/picklist/picklist.min.js +1 -1
- package/progressbar/ProgressBar.d.ts +18 -2
- package/progressspinner/ProgressSpinner.d.ts +18 -2
- package/radiobutton/RadioButton.d.ts +21 -2
- package/rating/Rating.d.ts +24 -2
- package/ripple/Ripple.d.ts +8 -2
- package/row/Row.d.ts +16 -0
- package/scrollpanel/ScrollPanel.d.ts +21 -2
- package/scrolltop/ScrollTop.d.ts +21 -2
- package/selectbutton/SelectButton.d.ts +24 -2
- package/sidebar/Sidebar.d.ts +21 -2
- package/skeleton/Skeleton.d.ts +18 -2
- package/slider/Slider.d.ts +18 -2
- package/speeddial/SpeedDial.d.ts +24 -2
- package/splitbutton/SplitButton.d.ts +21 -2
- package/splitter/Splitter.d.ts +24 -2
- package/splitterpanel/SplitterPanel.d.ts +21 -2
- package/steps/Steps.d.ts +40 -3
- package/styleclass/StyleClass.d.ts +8 -2
- package/tabmenu/TabMenu.d.ts +43 -3
- package/tabpanel/TabPanel.d.ts +24 -2
- package/tabview/TabView.d.ts +8 -2
- package/tag/Tag.d.ts +18 -2
- package/terminal/Terminal.d.ts +21 -2
- package/textarea/Textarea.d.ts +21 -2
- package/tieredmenu/TieredMenu.d.ts +47 -3
- package/timeline/Timeline.d.ts +21 -2
- package/toast/Toast.d.ts +21 -2
- package/togglebutton/ToggleButton.d.ts +24 -2
- package/togglebutton/ToggleButton.vue +4 -4
- package/togglebutton/togglebutton.cjs.js +4 -4
- package/togglebutton/togglebutton.cjs.min.js +1 -1
- package/togglebutton/togglebutton.esm.js +4 -4
- package/togglebutton/togglebutton.esm.min.js +1 -1
- package/togglebutton/togglebutton.js +4 -4
- package/togglebutton/togglebutton.min.js +1 -1
- package/toolbar/Toolbar.d.ts +18 -2
- package/tooltip/Tooltip.d.ts +12 -2
- package/tree/Tree.d.ts +24 -2
- package/treeselect/TreeSelect.d.ts +21 -2
- package/treetable/TreeTable.d.ts +24 -2
- package/treetable/TreeTableRow.vue +1 -1
- package/treetable/treetable.cjs.js +1 -1
- package/treetable/treetable.cjs.min.js +1 -1
- package/treetable/treetable.esm.js +1 -1
- package/treetable/treetable.esm.min.js +1 -1
- package/treetable/treetable.js +1 -1
- package/treetable/treetable.min.js +1 -1
- package/tristatecheckbox/TriStateCheckbox.d.ts +24 -2
- package/ts-helpers.d.ts +2 -2
- package/utils/utils.cjs.js +19 -9
- package/utils/utils.cjs.min.js +1 -1
- package/utils/utils.esm.js +19 -9
- package/utils/utils.esm.min.js +1 -1
- package/utils/utils.js +19 -9
- package/utils/utils.min.js +1 -1
- package/virtualscroller/VirtualScroller.d.ts +21 -2
- 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
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
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$
|
|
61
|
+
var _computedValue$_key;
|
|
54
62
|
var computedValue = callback ? callback(value) : value;
|
|
55
|
-
|
|
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(
|
|
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
|
|
69
|
-
mergeSections =
|
|
70
|
-
|
|
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
|
|
80
|
-
var
|
|
81
|
-
var
|
|
82
|
-
var
|
|
83
|
-
|
|
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
|
|
90
|
-
var
|
|
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(
|
|
98
|
-
defaultHook === null || defaultHook === void 0 || defaultHook(
|
|
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
|
|
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
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
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$
|
|
61
|
+
var _computedValue$_key;
|
|
54
62
|
var computedValue = callback ? callback(value) : value;
|
|
55
|
-
|
|
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(
|
|
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
|
|
69
|
-
mergeSections =
|
|
70
|
-
|
|
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
|
|
80
|
-
var
|
|
81
|
-
var
|
|
82
|
-
var
|
|
83
|
-
|
|
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
|
|
90
|
-
var
|
|
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(
|
|
98
|
-
defaultHook === null || defaultHook === void 0 || defaultHook(
|
|
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]:{},
|
|
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);
|
package/blockui/BlockUI.d.ts
CHANGED
|
@@ -9,7 +9,8 @@
|
|
|
9
9
|
*/
|
|
10
10
|
import { VNode } from 'vue';
|
|
11
11
|
import { ComponentHooks } from '../basecomponent';
|
|
12
|
-
import {
|
|
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?:
|
|
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 {
|
|
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?:
|
|
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:
|
|
185
|
+
props: BreadcrumbRouterBindProps;
|
|
149
186
|
}): VNode[];
|
|
150
187
|
/**
|
|
151
188
|
* Custom separator template.
|
package/button/Button.d.ts
CHANGED
|
@@ -9,7 +9,8 @@
|
|
|
9
9
|
*/
|
|
10
10
|
import { ButtonHTMLAttributes, VNode } from 'vue';
|
|
11
11
|
import { ComponentHooks } from '../basecomponent';
|
|
12
|
-
import {
|
|
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?:
|
|
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
|
package/calendar/Calendar.d.ts
CHANGED
|
@@ -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 {
|
|
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
|
|
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?:
|
|
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 {
|
|
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?:
|
|
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
|
package/carousel/Carousel.d.ts
CHANGED
|
@@ -9,7 +9,8 @@
|
|
|
9
9
|
*/
|
|
10
10
|
import { ButtonHTMLAttributes, VNode } from 'vue';
|
|
11
11
|
import { ComponentHooks } from '../basecomponent';
|
|
12
|
-
import {
|
|
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?:
|
|
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
|