primevue 4.3.8 → 4.4.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/autocomplete/AutoComplete.vue +18 -3
- package/autocomplete/BaseAutoComplete.vue +4 -0
- package/autocomplete/index.d.ts +20 -0
- package/autocomplete/index.mjs +34 -7
- package/autocomplete/index.mjs.map +1 -1
- package/autocomplete/style/index.d.ts +4 -0
- package/autocomplete/style/index.mjs +3 -1
- package/autocomplete/style/index.mjs.map +1 -1
- package/cascadeselect/CascadeSelect.vue +1 -1
- package/cascadeselect/index.mjs +1 -1
- package/cascadeselect/index.mjs.map +1 -1
- package/checkbox/Checkbox.vue +15 -2
- package/checkbox/index.mjs +14 -2
- package/checkbox/index.mjs.map +1 -1
- package/colorpicker/ColorPicker.vue +5 -6
- package/colorpicker/index.mjs +5 -5
- package/colorpicker/index.mjs.map +1 -1
- package/column/index.d.ts +2 -2
- package/confirmdialog/ConfirmDialog.vue +1 -1
- package/confirmdialog/index.d.ts +5 -0
- package/confirmdialog/index.mjs +3 -2
- package/confirmdialog/index.mjs.map +1 -1
- package/datatable/BodyCell.vue +1 -1
- package/datatable/ColumnFilter.vue +1 -1
- package/datatable/DataTable.vue +6 -3
- package/datatable/HeaderCheckbox.vue +3 -3
- package/datatable/index.mjs +19 -9
- package/datatable/index.mjs.map +1 -1
- package/datepicker/BaseDatePicker.vue +8 -0
- package/datepicker/DatePicker.vue +200 -82
- package/datepicker/index.d.ts +25 -0
- package/datepicker/index.mjs +263 -155
- package/datepicker/index.mjs.map +1 -1
- package/datepicker/style/index.d.ts +4 -0
- package/datepicker/style/index.mjs +5 -2
- package/datepicker/style/index.mjs.map +1 -1
- package/dialog/Dialog.vue +1 -1
- package/dialog/index.d.ts +5 -0
- package/dialog/index.mjs +2 -1
- package/dialog/index.mjs.map +1 -1
- package/drawer/BaseDrawer.vue +4 -0
- package/drawer/Drawer.vue +4 -4
- package/drawer/index.d.ts +5 -0
- package/drawer/index.mjs +8 -4
- package/drawer/index.mjs.map +1 -1
- package/editor/Editor.vue +5 -1
- package/editor/index.mjs +5 -0
- package/editor/index.mjs.map +1 -1
- package/fileupload/FileUpload.vue +2 -2
- package/fileupload/index.mjs +2 -2
- package/fileupload/index.mjs.map +1 -1
- package/image/index.d.ts +5 -11
- package/inputmask/InputMask.vue +1 -2
- package/inputmask/index.mjs +1 -1
- package/inputmask/index.mjs.map +1 -1
- package/inputnumber/BaseInputNumber.vue +4 -0
- package/inputnumber/InputNumber.vue +33 -5
- package/inputnumber/index.d.ts +20 -0
- package/inputnumber/index.mjs +48 -7
- package/inputnumber/index.mjs.map +1 -1
- package/inputnumber/style/index.mjs +1 -0
- package/inputnumber/style/index.mjs.map +1 -1
- package/inputotp/InputOtp.vue +7 -3
- package/inputotp/index.mjs +6 -3
- package/inputotp/index.mjs.map +1 -1
- package/keyfilter/index.mjs +14 -1
- package/keyfilter/index.mjs.map +1 -1
- package/listbox/Listbox.vue +8 -14
- package/listbox/index.mjs +13 -19
- package/listbox/index.mjs.map +1 -1
- package/multiselect/MultiSelect.vue +15 -12
- package/multiselect/index.mjs +21 -18
- package/multiselect/index.mjs.map +1 -1
- package/package.json +5 -5
- package/panel/Panel.vue +1 -1
- package/panel/index.d.ts +4 -0
- package/panel/index.mjs +2 -1
- package/panel/index.mjs.map +1 -1
- package/password/BasePassword.vue +4 -0
- package/password/Password.vue +12 -1
- package/password/index.d.ts +20 -0
- package/password/index.mjs +23 -1
- package/password/index.mjs.map +1 -1
- package/password/style/index.d.ts +4 -0
- package/password/style/index.mjs +1 -0
- package/password/style/index.mjs.map +1 -1
- package/select/Select.vue +5 -4
- package/select/index.mjs +6 -5
- package/select/index.mjs.map +1 -1
- package/tab/Tab.vue +0 -1
- package/tab/index.mjs +0 -1
- package/tab/index.mjs.map +1 -1
- package/togglebutton/BaseToggleButton.vue +0 -4
- package/togglebutton/index.d.ts +0 -5
- package/togglebutton/index.mjs +0 -4
- package/togglebutton/index.mjs.map +1 -1
- package/tooltip/index.mjs +5 -1
- package/tooltip/index.mjs.map +1 -1
- package/tree/BaseTree.vue +16 -0
- package/tree/Tree.vue +179 -4
- package/tree/TreeNode.vue +225 -3
- package/tree/index.d.ts +65 -0
- package/tree/index.mjs +499 -22
- package/tree/index.mjs.map +1 -1
- package/tree/style/index.mjs +9 -4
- package/tree/style/index.mjs.map +1 -1
- package/treenode/index.d.ts +12 -0
- package/treeselect/TreeSelect.vue +2 -2
- package/treeselect/index.mjs +2 -2
- package/treeselect/index.mjs.map +1 -1
- package/treetable/TreeTable.vue +15 -1
- package/treetable/index.d.ts +58 -4
- package/treetable/index.mjs +19 -6
- package/treetable/index.mjs.map +1 -1
- package/umd/primevue.min.js +1 -1
- package/vetur-attributes.json +0 -4
- package/vetur-tags.json +0 -1
- package/web-types.json +1 -11
package/column/index.d.ts
CHANGED
|
@@ -1024,9 +1024,9 @@ export declare type ColumnEmits = EmitFn<ColumnEmitsOptions>;
|
|
|
1024
1024
|
/**
|
|
1025
1025
|
* **PrimeVue - Column**
|
|
1026
1026
|
*
|
|
1027
|
-
* _Column is a helper component for
|
|
1027
|
+
* _Column is a helper component for DataTable and TreeTable._
|
|
1028
1028
|
*
|
|
1029
|
-
* [Live Demo](https://www.primevue.org/
|
|
1029
|
+
* [Live Demo](https://www.primevue.org/datatable/)
|
|
1030
1030
|
* --- ---
|
|
1031
1031
|
* 
|
|
1032
1032
|
*
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
:unstyled="unstyled"
|
|
17
17
|
>
|
|
18
18
|
<template v-if="$slots.container" #container="slotProps">
|
|
19
|
-
<slot name="container" :message="confirmation" :closeCallback="slotProps.
|
|
19
|
+
<slot name="container" :message="confirmation" :closeCallback="slotProps.closeCallback" :acceptCallback="accept" :rejectCallback="reject" :initDragCallback="slotProps.initDragCallback" />
|
|
20
20
|
</template>
|
|
21
21
|
<template v-if="!$slots.container">
|
|
22
22
|
<template v-if="!$slots.message">
|
package/confirmdialog/index.d.ts
CHANGED
|
@@ -262,6 +262,11 @@ export interface ConfirmDialogSlots {
|
|
|
262
262
|
* Reject function of the component
|
|
263
263
|
*/
|
|
264
264
|
rejectCallback: () => void;
|
|
265
|
+
/**
|
|
266
|
+
* Initialize drag function for custom container elements.
|
|
267
|
+
* @param {Event} event - Browser event
|
|
268
|
+
*/
|
|
269
|
+
initDragCallback: (event: Event) => void;
|
|
265
270
|
}): VNode[];
|
|
266
271
|
}
|
|
267
272
|
|
package/confirmdialog/index.mjs
CHANGED
|
@@ -193,9 +193,10 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
193
193
|
fn: withCtx(function (slotProps) {
|
|
194
194
|
return [renderSlot(_ctx.$slots, "container", {
|
|
195
195
|
message: $data.confirmation,
|
|
196
|
-
closeCallback: slotProps.
|
|
196
|
+
closeCallback: slotProps.closeCallback,
|
|
197
197
|
acceptCallback: $options.accept,
|
|
198
|
-
rejectCallback: $options.reject
|
|
198
|
+
rejectCallback: $options.reject,
|
|
199
|
+
initDragCallback: slotProps.initDragCallback
|
|
199
200
|
})];
|
|
200
201
|
}),
|
|
201
202
|
key: "0"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../src/confirmdialog/BaseConfirmDialog.vue","../../src/confirmdialog/ConfirmDialog.vue","../../src/confirmdialog/ConfirmDialog.vue?vue&type=template&id=2a911822&lang.js"],"sourcesContent":["<script>\nimport BaseComponent from '@primevue/core/basecomponent';\nimport ConfirmDialogStyle from 'primevue/confirmdialog/style';\n\nexport default {\n name: 'BaseConfirmDialog',\n extends: BaseComponent,\n props: {\n group: String,\n breakpoints: {\n type: Object,\n default: null\n },\n draggable: {\n type: Boolean,\n default: true\n }\n },\n style: ConfirmDialogStyle,\n provide() {\n return {\n $pcConfirmDialog: this,\n $parentInstance: this\n };\n }\n};\n</script>\n","<template>\n <Dialog\n v-model:visible=\"visible\"\n role=\"alertdialog\"\n :class=\"cx('root')\"\n :modal=\"modal\"\n :header=\"header\"\n :blockScroll=\"blockScroll\"\n :appendTo=\"appendTo\"\n :position=\"position\"\n :breakpoints=\"breakpoints\"\n :closeOnEscape=\"closeOnEscape\"\n :draggable=\"draggable\"\n @update:visible=\"onHide\"\n :pt=\"pt\"\n :unstyled=\"unstyled\"\n >\n <template v-if=\"$slots.container\" #container=\"slotProps\">\n <slot name=\"container\" :message=\"confirmation\" :closeCallback=\"slotProps.onclose\" :acceptCallback=\"accept\" :rejectCallback=\"reject\" />\n </template>\n <template v-if=\"!$slots.container\">\n <template v-if=\"!$slots.message\">\n <slot name=\"icon\">\n <component v-if=\"$slots.icon\" :is=\"$slots.icon\" :class=\"cx('icon')\" />\n <span v-else-if=\"confirmation.icon\" :class=\"[confirmation.icon, cx('icon')]\" v-bind=\"ptm('icon')\" />\n </slot>\n <span :class=\"cx('message')\" v-bind=\"ptm('message')\">{{ message }}</span>\n </template>\n <component v-else :is=\"$slots.message\" :message=\"confirmation\"></component>\n </template>\n <template v-if=\"!$slots.container\" #footer>\n <Button\n :class=\"[cx('pcRejectButton'), confirmation.rejectClass]\"\n :autofocus=\"autoFocusReject\"\n :unstyled=\"unstyled\"\n :text=\"confirmation.rejectProps?.text || false\"\n @click=\"reject()\"\n v-bind=\"confirmation.rejectProps\"\n :label=\"rejectLabel\"\n :pt=\"ptm('pcRejectButton')\"\n >\n <template v-if=\"rejectIcon || $slots.rejecticon\" #icon=\"iconProps\">\n <slot name=\"rejecticon\">\n <span :class=\"[rejectIcon, iconProps.class]\" v-bind=\"ptm('pcRejectButton')['icon']\" data-pc-section=\"rejectbuttonicon\" />\n </slot>\n </template>\n </Button>\n <Button :label=\"acceptLabel\" :class=\"[cx('pcAcceptButton'), confirmation.acceptClass]\" :autofocus=\"autoFocusAccept\" :unstyled=\"unstyled\" @click=\"accept()\" v-bind=\"confirmation.acceptProps\" :pt=\"ptm('pcAcceptButton')\">\n <template v-if=\"acceptIcon || $slots.accepticon\" #icon=\"iconProps\">\n <slot name=\"accepticon\">\n <span :class=\"[acceptIcon, iconProps.class]\" v-bind=\"ptm('pcAcceptButton')['icon']\" data-pc-section=\"acceptbuttonicon\" />\n </slot>\n </template>\n </Button>\n </template>\n </Dialog>\n</template>\n\n<script>\nimport Button from 'primevue/button';\nimport ConfirmationEventBus from 'primevue/confirmationeventbus';\nimport Dialog from 'primevue/dialog';\nimport BaseConfirmDialog from './BaseConfirmDialog.vue';\n\nexport default {\n name: 'ConfirmDialog',\n extends: BaseConfirmDialog,\n confirmListener: null,\n closeListener: null,\n data() {\n return {\n visible: false,\n confirmation: null\n };\n },\n mounted() {\n this.confirmListener = (options) => {\n if (!options) {\n return;\n }\n\n if (options.group === this.group) {\n this.confirmation = options;\n\n if (this.confirmation.onShow) {\n this.confirmation.onShow();\n }\n\n this.visible = true;\n }\n };\n\n this.closeListener = () => {\n this.visible = false;\n this.confirmation = null;\n };\n\n ConfirmationEventBus.on('confirm', this.confirmListener);\n ConfirmationEventBus.on('close', this.closeListener);\n },\n beforeUnmount() {\n ConfirmationEventBus.off('confirm', this.confirmListener);\n ConfirmationEventBus.off('close', this.closeListener);\n },\n methods: {\n accept() {\n if (this.confirmation.accept) {\n this.confirmation.accept();\n }\n\n this.visible = false;\n },\n reject() {\n if (this.confirmation.reject) {\n this.confirmation.reject();\n }\n\n this.visible = false;\n },\n onHide() {\n if (this.confirmation.onHide) {\n this.confirmation.onHide();\n }\n\n this.visible = false;\n }\n },\n computed: {\n appendTo() {\n return this.confirmation ? this.confirmation.appendTo : 'body';\n },\n target() {\n return this.confirmation ? this.confirmation.target : null;\n },\n modal() {\n return this.confirmation ? (this.confirmation.modal == null ? true : this.confirmation.modal) : true;\n },\n header() {\n return this.confirmation ? this.confirmation.header : null;\n },\n message() {\n return this.confirmation ? this.confirmation.message : null;\n },\n blockScroll() {\n return this.confirmation ? this.confirmation.blockScroll : true;\n },\n position() {\n return this.confirmation ? this.confirmation.position : null;\n },\n acceptLabel() {\n if (this.confirmation) {\n const confirmation = this.confirmation;\n\n return confirmation.acceptLabel || confirmation.acceptProps?.label || this.$primevue.config.locale.accept;\n }\n\n return this.$primevue.config.locale.accept;\n },\n rejectLabel() {\n if (this.confirmation) {\n const confirmation = this.confirmation;\n\n return confirmation.rejectLabel || confirmation.rejectProps?.label || this.$primevue.config.locale.reject;\n }\n\n return this.$primevue.config.locale.reject;\n },\n acceptIcon() {\n return this.confirmation ? this.confirmation.acceptIcon : this.confirmation?.acceptProps ? this.confirmation.acceptProps.icon : null;\n },\n rejectIcon() {\n return this.confirmation ? this.confirmation.rejectIcon : this.confirmation?.rejectProps ? this.confirmation.rejectProps.icon : null;\n },\n autoFocusAccept() {\n return this.confirmation.defaultFocus === undefined || this.confirmation.defaultFocus === 'accept' ? true : false;\n },\n autoFocusReject() {\n return this.confirmation.defaultFocus === 'reject' ? true : false;\n },\n closeOnEscape() {\n return this.confirmation ? this.confirmation.closeOnEscape : true;\n }\n },\n components: {\n Dialog,\n Button\n }\n};\n</script>\n","<template>\n <Dialog\n v-model:visible=\"visible\"\n role=\"alertdialog\"\n :class=\"cx('root')\"\n :modal=\"modal\"\n :header=\"header\"\n :blockScroll=\"blockScroll\"\n :appendTo=\"appendTo\"\n :position=\"position\"\n :breakpoints=\"breakpoints\"\n :closeOnEscape=\"closeOnEscape\"\n :draggable=\"draggable\"\n @update:visible=\"onHide\"\n :pt=\"pt\"\n :unstyled=\"unstyled\"\n >\n <template v-if=\"$slots.container\" #container=\"slotProps\">\n <slot name=\"container\" :message=\"confirmation\" :closeCallback=\"slotProps.onclose\" :acceptCallback=\"accept\" :rejectCallback=\"reject\" />\n </template>\n <template v-if=\"!$slots.container\">\n <template v-if=\"!$slots.message\">\n <slot name=\"icon\">\n <component v-if=\"$slots.icon\" :is=\"$slots.icon\" :class=\"cx('icon')\" />\n <span v-else-if=\"confirmation.icon\" :class=\"[confirmation.icon, cx('icon')]\" v-bind=\"ptm('icon')\" />\n </slot>\n <span :class=\"cx('message')\" v-bind=\"ptm('message')\">{{ message }}</span>\n </template>\n <component v-else :is=\"$slots.message\" :message=\"confirmation\"></component>\n </template>\n <template v-if=\"!$slots.container\" #footer>\n <Button\n :class=\"[cx('pcRejectButton'), confirmation.rejectClass]\"\n :autofocus=\"autoFocusReject\"\n :unstyled=\"unstyled\"\n :text=\"confirmation.rejectProps?.text || false\"\n @click=\"reject()\"\n v-bind=\"confirmation.rejectProps\"\n :label=\"rejectLabel\"\n :pt=\"ptm('pcRejectButton')\"\n >\n <template v-if=\"rejectIcon || $slots.rejecticon\" #icon=\"iconProps\">\n <slot name=\"rejecticon\">\n <span :class=\"[rejectIcon, iconProps.class]\" v-bind=\"ptm('pcRejectButton')['icon']\" data-pc-section=\"rejectbuttonicon\" />\n </slot>\n </template>\n </Button>\n <Button :label=\"acceptLabel\" :class=\"[cx('pcAcceptButton'), confirmation.acceptClass]\" :autofocus=\"autoFocusAccept\" :unstyled=\"unstyled\" @click=\"accept()\" v-bind=\"confirmation.acceptProps\" :pt=\"ptm('pcAcceptButton')\">\n <template v-if=\"acceptIcon || $slots.accepticon\" #icon=\"iconProps\">\n <slot name=\"accepticon\">\n <span :class=\"[acceptIcon, iconProps.class]\" v-bind=\"ptm('pcAcceptButton')['icon']\" data-pc-section=\"acceptbuttonicon\" />\n </slot>\n </template>\n </Button>\n </template>\n </Dialog>\n</template>\n\n<script>\nimport Button from 'primevue/button';\nimport ConfirmationEventBus from 'primevue/confirmationeventbus';\nimport Dialog from 'primevue/dialog';\nimport BaseConfirmDialog from './BaseConfirmDialog.vue';\n\nexport default {\n name: 'ConfirmDialog',\n extends: BaseConfirmDialog,\n confirmListener: null,\n closeListener: null,\n data() {\n return {\n visible: false,\n confirmation: null\n };\n },\n mounted() {\n this.confirmListener = (options) => {\n if (!options) {\n return;\n }\n\n if (options.group === this.group) {\n this.confirmation = options;\n\n if (this.confirmation.onShow) {\n this.confirmation.onShow();\n }\n\n this.visible = true;\n }\n };\n\n this.closeListener = () => {\n this.visible = false;\n this.confirmation = null;\n };\n\n ConfirmationEventBus.on('confirm', this.confirmListener);\n ConfirmationEventBus.on('close', this.closeListener);\n },\n beforeUnmount() {\n ConfirmationEventBus.off('confirm', this.confirmListener);\n ConfirmationEventBus.off('close', this.closeListener);\n },\n methods: {\n accept() {\n if (this.confirmation.accept) {\n this.confirmation.accept();\n }\n\n this.visible = false;\n },\n reject() {\n if (this.confirmation.reject) {\n this.confirmation.reject();\n }\n\n this.visible = false;\n },\n onHide() {\n if (this.confirmation.onHide) {\n this.confirmation.onHide();\n }\n\n this.visible = false;\n }\n },\n computed: {\n appendTo() {\n return this.confirmation ? this.confirmation.appendTo : 'body';\n },\n target() {\n return this.confirmation ? this.confirmation.target : null;\n },\n modal() {\n return this.confirmation ? (this.confirmation.modal == null ? true : this.confirmation.modal) : true;\n },\n header() {\n return this.confirmation ? this.confirmation.header : null;\n },\n message() {\n return this.confirmation ? this.confirmation.message : null;\n },\n blockScroll() {\n return this.confirmation ? this.confirmation.blockScroll : true;\n },\n position() {\n return this.confirmation ? this.confirmation.position : null;\n },\n acceptLabel() {\n if (this.confirmation) {\n const confirmation = this.confirmation;\n\n return confirmation.acceptLabel || confirmation.acceptProps?.label || this.$primevue.config.locale.accept;\n }\n\n return this.$primevue.config.locale.accept;\n },\n rejectLabel() {\n if (this.confirmation) {\n const confirmation = this.confirmation;\n\n return confirmation.rejectLabel || confirmation.rejectProps?.label || this.$primevue.config.locale.reject;\n }\n\n return this.$primevue.config.locale.reject;\n },\n acceptIcon() {\n return this.confirmation ? this.confirmation.acceptIcon : this.confirmation?.acceptProps ? this.confirmation.acceptProps.icon : null;\n },\n rejectIcon() {\n return this.confirmation ? this.confirmation.rejectIcon : this.confirmation?.rejectProps ? this.confirmation.rejectProps.icon : null;\n },\n autoFocusAccept() {\n return this.confirmation.defaultFocus === undefined || this.confirmation.defaultFocus === 'accept' ? true : false;\n },\n autoFocusReject() {\n return this.confirmation.defaultFocus === 'reject' ? true : false;\n },\n closeOnEscape() {\n return this.confirmation ? this.confirmation.closeOnEscape : true;\n }\n },\n components: {\n Dialog,\n Button\n }\n};\n</script>\n"],"names":["name","BaseComponent","props","group","String","breakpoints","type","Object","draggable","Boolean","style","ConfirmDialogStyle","provide","$pcConfirmDialog","$parentInstance","BaseConfirmDialog","confirmListener","closeListener","data","visible","confirmation","mounted","_this","options","onShow","ConfirmationEventBus","on","beforeUnmount","off","methods","accept","reject","onHide","computed","appendTo","target","modal","header","message","blockScroll","position","acceptLabel","_confirmation$acceptP","acceptProps","label","$primevue","config","locale","rejectLabel","_confirmation$rejectP","rejectProps","acceptIcon","_this$confirmation","icon","rejectIcon","_this$confirmation2","autoFocusAccept","defaultFocus","undefined","autoFocusReject","closeOnEscape","components","Dialog","Button","_createBlock","_component_Dialog","$data","$event","$options","role","_ctx","cx","pt","unstyled","$slots","container","_createElementBlock","_Fragment","key","_renderSlot","_resolveDynamicComponent","_openBlock","_mergeProps","ptm","_createElementVNode","fn","_withCtx","slotProps","closeCallback","onclose","acceptCallback","rejectCallback","_$data$confirmation$r","_createVNode","_component_Button","rejectClass","autofocus","text","onClick","rejecticon","iconProps","acceptClass","accepticon"],"mappings":";;;;;;;AAIA,eAAe;AACXA,EAAAA,IAAI,EAAE,mBAAmB;AACzB,EAAA,SAAA,EAASC,aAAa;AACtBC,EAAAA,KAAK,EAAE;AACHC,IAAAA,KAAK,EAAEC,MAAM;AACbC,IAAAA,WAAW,EAAE;AACTC,MAAAA,IAAI,EAAEC,MAAM;MACZ,SAAA,EAAS;KACZ;AACDC,IAAAA,SAAS,EAAE;AACPF,MAAAA,IAAI,EAAEG,OAAO;MACb,SAAA,EAAS;AACb;GACH;AACDC,EAAAA,KAAK,EAAEC,kBAAkB;EACzBC,OAAO,EAAA,SAAPA,OAAOA,GAAG;IACN,OAAO;AACHC,MAAAA,gBAAgB,EAAE,IAAI;AACtBC,MAAAA,eAAe,EAAE;KACpB;AACL,EAAA;AACJ,CAAC;;ACuCD,aAAe;AACXd,EAAAA,IAAI,EAAE,eAAe;AACrB,EAAA,SAAA,EAASe,QAA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MAAM,EAAA;QAAA,CAAA;AAAY,OAAA,EAAAoC,KAAA,CAAA9C,YAAY,CAACuB,WAAW,EAAA;AAAG6B,QAAAA,EAAE,EAAEF,IAAA,CAAAa,GAAG,CAAA,gBAAA;;;UACjLf,QAAA,CAAAjB,UAAS,IAAKmB,IAAA,CAAAI,MAAM,CAAC4B,UAAU;cAAG,MAAI;AAClDjB,QAAAA,EAAA,EAAAC,OAAA,CAAA,UADoDc,SAAS,EAAA;UAAA,OAAA,CAC7DrB,UAAA,CAEMT,+BAFN,YAAA;AAAA,YAAA,OAEM,CADFc,kBAAA,CAAwH,QAAxHF,UAAA,CAAwH;AAAjH,cAAA,OAAA,EAAK,CAAGd,QAAA,CAAAjB,UAAU,EAAEiD,SAAS,CAAA,OAAA,CAAM;eAAW9B,IAAA,CAAAa,GAAG,CAAA,gBAAA,CAAA,CAAA,MAAA,CAAA,EAAA;AAA4B,cAAA,iBAAe,EAAC;AAAiB,aAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA;;;;;;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../src/confirmdialog/BaseConfirmDialog.vue","../../src/confirmdialog/ConfirmDialog.vue","../../src/confirmdialog/ConfirmDialog.vue?vue&type=template&id=598f4364&lang.js"],"sourcesContent":["<script>\nimport BaseComponent from '@primevue/core/basecomponent';\nimport ConfirmDialogStyle from 'primevue/confirmdialog/style';\n\nexport default {\n name: 'BaseConfirmDialog',\n extends: BaseComponent,\n props: {\n group: String,\n breakpoints: {\n type: Object,\n default: null\n },\n draggable: {\n type: Boolean,\n default: true\n }\n },\n style: ConfirmDialogStyle,\n provide() {\n return {\n $pcConfirmDialog: this,\n $parentInstance: this\n };\n }\n};\n</script>\n","<template>\n <Dialog\n v-model:visible=\"visible\"\n role=\"alertdialog\"\n :class=\"cx('root')\"\n :modal=\"modal\"\n :header=\"header\"\n :blockScroll=\"blockScroll\"\n :appendTo=\"appendTo\"\n :position=\"position\"\n :breakpoints=\"breakpoints\"\n :closeOnEscape=\"closeOnEscape\"\n :draggable=\"draggable\"\n @update:visible=\"onHide\"\n :pt=\"pt\"\n :unstyled=\"unstyled\"\n >\n <template v-if=\"$slots.container\" #container=\"slotProps\">\n <slot name=\"container\" :message=\"confirmation\" :closeCallback=\"slotProps.closeCallback\" :acceptCallback=\"accept\" :rejectCallback=\"reject\" :initDragCallback=\"slotProps.initDragCallback\" />\n </template>\n <template v-if=\"!$slots.container\">\n <template v-if=\"!$slots.message\">\n <slot name=\"icon\">\n <component v-if=\"$slots.icon\" :is=\"$slots.icon\" :class=\"cx('icon')\" />\n <span v-else-if=\"confirmation.icon\" :class=\"[confirmation.icon, cx('icon')]\" v-bind=\"ptm('icon')\" />\n </slot>\n <span :class=\"cx('message')\" v-bind=\"ptm('message')\">{{ message }}</span>\n </template>\n <component v-else :is=\"$slots.message\" :message=\"confirmation\"></component>\n </template>\n <template v-if=\"!$slots.container\" #footer>\n <Button\n :class=\"[cx('pcRejectButton'), confirmation.rejectClass]\"\n :autofocus=\"autoFocusReject\"\n :unstyled=\"unstyled\"\n :text=\"confirmation.rejectProps?.text || false\"\n @click=\"reject()\"\n v-bind=\"confirmation.rejectProps\"\n :label=\"rejectLabel\"\n :pt=\"ptm('pcRejectButton')\"\n >\n <template v-if=\"rejectIcon || $slots.rejecticon\" #icon=\"iconProps\">\n <slot name=\"rejecticon\">\n <span :class=\"[rejectIcon, iconProps.class]\" v-bind=\"ptm('pcRejectButton')['icon']\" data-pc-section=\"rejectbuttonicon\" />\n </slot>\n </template>\n </Button>\n <Button :label=\"acceptLabel\" :class=\"[cx('pcAcceptButton'), confirmation.acceptClass]\" :autofocus=\"autoFocusAccept\" :unstyled=\"unstyled\" @click=\"accept()\" v-bind=\"confirmation.acceptProps\" :pt=\"ptm('pcAcceptButton')\">\n <template v-if=\"acceptIcon || $slots.accepticon\" #icon=\"iconProps\">\n <slot name=\"accepticon\">\n <span :class=\"[acceptIcon, iconProps.class]\" v-bind=\"ptm('pcAcceptButton')['icon']\" data-pc-section=\"acceptbuttonicon\" />\n </slot>\n </template>\n </Button>\n </template>\n </Dialog>\n</template>\n\n<script>\nimport Button from 'primevue/button';\nimport ConfirmationEventBus from 'primevue/confirmationeventbus';\nimport Dialog from 'primevue/dialog';\nimport BaseConfirmDialog from './BaseConfirmDialog.vue';\n\nexport default {\n name: 'ConfirmDialog',\n extends: BaseConfirmDialog,\n confirmListener: null,\n closeListener: null,\n data() {\n return {\n visible: false,\n confirmation: null\n };\n },\n mounted() {\n this.confirmListener = (options) => {\n if (!options) {\n return;\n }\n\n if (options.group === this.group) {\n this.confirmation = options;\n\n if (this.confirmation.onShow) {\n this.confirmation.onShow();\n }\n\n this.visible = true;\n }\n };\n\n this.closeListener = () => {\n this.visible = false;\n this.confirmation = null;\n };\n\n ConfirmationEventBus.on('confirm', this.confirmListener);\n ConfirmationEventBus.on('close', this.closeListener);\n },\n beforeUnmount() {\n ConfirmationEventBus.off('confirm', this.confirmListener);\n ConfirmationEventBus.off('close', this.closeListener);\n },\n methods: {\n accept() {\n if (this.confirmation.accept) {\n this.confirmation.accept();\n }\n\n this.visible = false;\n },\n reject() {\n if (this.confirmation.reject) {\n this.confirmation.reject();\n }\n\n this.visible = false;\n },\n onHide() {\n if (this.confirmation.onHide) {\n this.confirmation.onHide();\n }\n\n this.visible = false;\n }\n },\n computed: {\n appendTo() {\n return this.confirmation ? this.confirmation.appendTo : 'body';\n },\n target() {\n return this.confirmation ? this.confirmation.target : null;\n },\n modal() {\n return this.confirmation ? (this.confirmation.modal == null ? true : this.confirmation.modal) : true;\n },\n header() {\n return this.confirmation ? this.confirmation.header : null;\n },\n message() {\n return this.confirmation ? this.confirmation.message : null;\n },\n blockScroll() {\n return this.confirmation ? this.confirmation.blockScroll : true;\n },\n position() {\n return this.confirmation ? this.confirmation.position : null;\n },\n acceptLabel() {\n if (this.confirmation) {\n const confirmation = this.confirmation;\n\n return confirmation.acceptLabel || confirmation.acceptProps?.label || this.$primevue.config.locale.accept;\n }\n\n return this.$primevue.config.locale.accept;\n },\n rejectLabel() {\n if (this.confirmation) {\n const confirmation = this.confirmation;\n\n return confirmation.rejectLabel || confirmation.rejectProps?.label || this.$primevue.config.locale.reject;\n }\n\n return this.$primevue.config.locale.reject;\n },\n acceptIcon() {\n return this.confirmation ? this.confirmation.acceptIcon : this.confirmation?.acceptProps ? this.confirmation.acceptProps.icon : null;\n },\n rejectIcon() {\n return this.confirmation ? this.confirmation.rejectIcon : this.confirmation?.rejectProps ? this.confirmation.rejectProps.icon : null;\n },\n autoFocusAccept() {\n return this.confirmation.defaultFocus === undefined || this.confirmation.defaultFocus === 'accept' ? true : false;\n },\n autoFocusReject() {\n return this.confirmation.defaultFocus === 'reject' ? true : false;\n },\n closeOnEscape() {\n return this.confirmation ? this.confirmation.closeOnEscape : true;\n }\n },\n components: {\n Dialog,\n Button\n }\n};\n</script>\n","<template>\n <Dialog\n v-model:visible=\"visible\"\n role=\"alertdialog\"\n :class=\"cx('root')\"\n :modal=\"modal\"\n :header=\"header\"\n :blockScroll=\"blockScroll\"\n :appendTo=\"appendTo\"\n :position=\"position\"\n :breakpoints=\"breakpoints\"\n :closeOnEscape=\"closeOnEscape\"\n :draggable=\"draggable\"\n @update:visible=\"onHide\"\n :pt=\"pt\"\n :unstyled=\"unstyled\"\n >\n <template v-if=\"$slots.container\" #container=\"slotProps\">\n <slot name=\"container\" :message=\"confirmation\" :closeCallback=\"slotProps.closeCallback\" :acceptCallback=\"accept\" :rejectCallback=\"reject\" :initDragCallback=\"slotProps.initDragCallback\" />\n </template>\n <template v-if=\"!$slots.container\">\n <template v-if=\"!$slots.message\">\n <slot name=\"icon\">\n <component v-if=\"$slots.icon\" :is=\"$slots.icon\" :class=\"cx('icon')\" />\n <span v-else-if=\"confirmation.icon\" :class=\"[confirmation.icon, cx('icon')]\" v-bind=\"ptm('icon')\" />\n </slot>\n <span :class=\"cx('message')\" v-bind=\"ptm('message')\">{{ message }}</span>\n </template>\n <component v-else :is=\"$slots.message\" :message=\"confirmation\"></component>\n </template>\n <template v-if=\"!$slots.container\" #footer>\n <Button\n :class=\"[cx('pcRejectButton'), confirmation.rejectClass]\"\n :autofocus=\"autoFocusReject\"\n :unstyled=\"unstyled\"\n :text=\"confirmation.rejectProps?.text || false\"\n @click=\"reject()\"\n v-bind=\"confirmation.rejectProps\"\n :label=\"rejectLabel\"\n :pt=\"ptm('pcRejectButton')\"\n >\n <template v-if=\"rejectIcon || $slots.rejecticon\" #icon=\"iconProps\">\n <slot name=\"rejecticon\">\n <span :class=\"[rejectIcon, iconProps.class]\" v-bind=\"ptm('pcRejectButton')['icon']\" data-pc-section=\"rejectbuttonicon\" />\n </slot>\n </template>\n </Button>\n <Button :label=\"acceptLabel\" :class=\"[cx('pcAcceptButton'), confirmation.acceptClass]\" :autofocus=\"autoFocusAccept\" :unstyled=\"unstyled\" @click=\"accept()\" v-bind=\"confirmation.acceptProps\" :pt=\"ptm('pcAcceptButton')\">\n <template v-if=\"acceptIcon || $slots.accepticon\" #icon=\"iconProps\">\n <slot name=\"accepticon\">\n <span :class=\"[acceptIcon, iconProps.class]\" v-bind=\"ptm('pcAcceptButton')['icon']\" data-pc-section=\"acceptbuttonicon\" />\n </slot>\n </template>\n </Button>\n </template>\n </Dialog>\n</template>\n\n<script>\nimport Button from 'primevue/button';\nimport ConfirmationEventBus from 'primevue/confirmationeventbus';\nimport Dialog from 'primevue/dialog';\nimport BaseConfirmDialog from './BaseConfirmDialog.vue';\n\nexport default {\n name: 'ConfirmDialog',\n extends: BaseConfirmDialog,\n confirmListener: null,\n closeListener: null,\n data() {\n return {\n visible: false,\n confirmation: null\n };\n },\n mounted() {\n this.confirmListener = (options) => {\n if (!options) {\n return;\n }\n\n if (options.group === this.group) {\n this.confirmation = options;\n\n if (this.confirmation.onShow) {\n this.confirmation.onShow();\n }\n\n this.visible = true;\n }\n };\n\n this.closeListener = () => {\n this.visible = false;\n this.confirmation = null;\n };\n\n ConfirmationEventBus.on('confirm', this.confirmListener);\n ConfirmationEventBus.on('close', this.closeListener);\n },\n beforeUnmount() {\n ConfirmationEventBus.off('confirm', this.confirmListener);\n ConfirmationEventBus.off('close', this.closeListener);\n },\n methods: {\n accept() {\n if (this.confirmation.accept) {\n this.confirmation.accept();\n }\n\n this.visible = false;\n },\n reject() {\n if (this.confirmation.reject) {\n this.confirmation.reject();\n }\n\n this.visible = false;\n },\n onHide() {\n if (this.confirmation.onHide) {\n this.confirmation.onHide();\n }\n\n this.visible = false;\n }\n },\n computed: {\n appendTo() {\n return this.confirmation ? this.confirmation.appendTo : 'body';\n },\n target() {\n return this.confirmation ? this.confirmation.target : null;\n },\n modal() {\n return this.confirmation ? (this.confirmation.modal == null ? true : this.confirmation.modal) : true;\n },\n header() {\n return this.confirmation ? this.confirmation.header : null;\n },\n message() {\n return this.confirmation ? this.confirmation.message : null;\n },\n blockScroll() {\n return this.confirmation ? this.confirmation.blockScroll : true;\n },\n position() {\n return this.confirmation ? this.confirmation.position : null;\n },\n acceptLabel() {\n if (this.confirmation) {\n const confirmation = this.confirmation;\n\n return confirmation.acceptLabel || confirmation.acceptProps?.label || this.$primevue.config.locale.accept;\n }\n\n return this.$primevue.config.locale.accept;\n },\n rejectLabel() {\n if (this.confirmation) {\n const confirmation = this.confirmation;\n\n return confirmation.rejectLabel || confirmation.rejectProps?.label || this.$primevue.config.locale.reject;\n }\n\n return this.$primevue.config.locale.reject;\n },\n acceptIcon() {\n return this.confirmation ? this.confirmation.acceptIcon : this.confirmation?.acceptProps ? this.confirmation.acceptProps.icon : null;\n },\n rejectIcon() {\n return this.confirmation ? this.confirmation.rejectIcon : this.confirmation?.rejectProps ? this.confirmation.rejectProps.icon : null;\n },\n autoFocusAccept() {\n return this.confirmation.defaultFocus === undefined || this.confirmation.defaultFocus === 'accept' ? true : false;\n },\n autoFocusReject() {\n return this.confirmation.defaultFocus === 'reject' ? true : false;\n },\n closeOnEscape() {\n return this.confirmation ? this.confirmation.closeOnEscape : true;\n }\n },\n components: {\n Dialog,\n Button\n }\n};\n</script>\n"],"names":["name","BaseComponent","props","group","String","breakpoints","type","Object","draggable","Boolean","style","ConfirmDialogStyle","provide","$pcConfirmDialog","$parentInstance","BaseConfirmDialog","confirmListener","closeListener","data","visible","confirmation","mounted","_this","options","onShow","ConfirmationEventBus","on","beforeUnmount","off","methods","accept","reject","onHide","computed","appendTo","target","modal","header","message","blockScroll","position","acceptLabel","_confirmation$acceptP","acceptProps","label","$primevue","config","locale","rejectLabel","_confirmation$rejectP","rejectProps","acceptIcon","_this$confirmation","icon","rejectIcon","_this$confirmation2","autoFocusAccept","defaultFocus","undefined","autoFocusReject","closeOnEscape","components","Dialog","Button","_createBlock","_component_Dialog","$data","$event","$options","role","_ctx","cx","pt","unstyled","$slots","container","_createElementBlock","_Fragment","key","_renderSlot","_resolveDynamicComponent","_openBlock","_mergeProps","ptm","_createElementVNode","fn","_withCtx","slotProps","closeCallback","acceptCallback","rejectCallback","initDragCallback","_$data$confirmation$r","_createVNode","_component_Button","rejectClass","autofocus","text","onClick","rejecticon","iconProps","acceptClass","accepticon"],"mappings":";;;;;;;AAIA,eAAe;AACXA,EAAAA,IAAI,EAAE,mBAAmB;AACzB,EAAA,SAAA,EAASC,aAAa;AACtBC,EAAAA,KAAK,EAAE;AACHC,IAAAA,KAAK,EAAEC,MAAM;AACbC,IAAAA,WAAW,EAAE;AACTC,MAAAA,IAAI,EAAEC,MAAM;MACZ,SAAA,EAAS;KACZ;AACDC,IAAAA,SAAS,EAAE;AACPF,MAAAA,IAAI,EAAEG,OAAO;MACb,SAAA,EAAS;AACb;GACH;AACDC,EAAAA,KAAK,EAAEC,kBAAkB;EACzBC,OAAO,EAAA,SAAPA,OAAOA,GAAG;IACN,OAAO;AACHC,MAAAA,gBAAgB,EAAE,IAAI;AACtBC,MAAAA,eAAe,EAAE;KACpB;AACL,EAAA;AACJ,CAAC;;ACuCD,aAAe;AACXd,EAAAA,IAAI,EAAE,eAAe;AACrB,EAAA,SAAA,EAASe,QAAiB;A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AAAA,OAAK;iBAAE9B,QAAA,CAAAtC,MAAM,EAAA;QAAA,CAAA;AAAY,OAAA,EAAAoC,KAAA,CAAA9C,YAAY,CAACuB,WAAW,EAAA;AAAG6B,QAAAA,EAAE,EAAEF,IAAA,CAAAa,GAAG,CAAA,gBAAA;;;UACjLf,QAAA,CAAAjB,UAAS,IAAKmB,IAAA,CAAAI,MAAM,CAAC4B,UAAU;cAAG,MAAI;AAClDjB,QAAAA,EAAA,EAAAC,OAAA,CAAA,UADoDc,SAAS,EAAA;UAAA,OAAA,CAC7DrB,UAAA,CAEMT,+BAFN,YAAA;AAAA,YAAA,OAEM,CADFc,kBAAA,CAAwH,QAAxHF,UAAA,CAAwH;AAAjH,cAAA,OAAA,EAAK,CAAGd,QAAA,CAAAjB,UAAU,EAAEiD,SAAS,CAAA,OAAA,CAAM;eAAW9B,IAAA,CAAAa,GAAG,CAAA,gBAAA,CAAA,CAAA,MAAA,CAAA,EAAA;AAA4B,cAAA,iBAAe,EAAC;AAAiB,aAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA;;;;;;;;;;;;;;"}
|
package/datatable/BodyCell.vue
CHANGED
|
@@ -565,7 +565,7 @@ export default {
|
|
|
565
565
|
);
|
|
566
566
|
},
|
|
567
567
|
expandButtonAriaLabel() {
|
|
568
|
-
return this.$primevue.config.locale.aria ? (this.isRowExpanded ? this.$primevue.config.locale.aria.
|
|
568
|
+
return this.$primevue.config.locale.aria ? (this.isRowExpanded ? this.$primevue.config.locale.aria.expandRow : this.$primevue.config.locale.aria.collapseRow) : undefined;
|
|
569
569
|
},
|
|
570
570
|
initButtonAriaLabel() {
|
|
571
571
|
return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria.editRow : undefined;
|
|
@@ -679,7 +679,7 @@ export default {
|
|
|
679
679
|
return this.$primevue.config.locale ? this.$primevue.config.locale.apply : undefined;
|
|
680
680
|
},
|
|
681
681
|
columnFilterButtonAriaLabel() {
|
|
682
|
-
return this.$primevue.config.locale ? (this.overlayVisible ? this.$primevue.config.locale.
|
|
682
|
+
return this.$primevue.config.locale?.aria ? (this.overlayVisible ? this.$primevue.config.locale.aria.hideFilterMenu : this.$primevue.config.locale.aria.showFilterMenu) : undefined;
|
|
683
683
|
},
|
|
684
684
|
filterOperatorAriaLabel() {
|
|
685
685
|
return this.$primevue.config.locale ? this.$primevue.config.locale.filterOperator : undefined;
|
package/datatable/DataTable.vue
CHANGED
|
@@ -401,8 +401,8 @@ export default {
|
|
|
401
401
|
],
|
|
402
402
|
provide() {
|
|
403
403
|
return {
|
|
404
|
-
$columns: this.d_columns
|
|
405
|
-
$columnGroups: this.d_columnGroups
|
|
404
|
+
$columns: this.d_columns,
|
|
405
|
+
$columnGroups: this.d_columnGroups
|
|
406
406
|
};
|
|
407
407
|
},
|
|
408
408
|
data() {
|
|
@@ -2155,7 +2155,10 @@ export default {
|
|
|
2155
2155
|
dataP() {
|
|
2156
2156
|
return cn({
|
|
2157
2157
|
scrollable: this.scrollable,
|
|
2158
|
-
'flex-scrollable': this.scrollable && this.scrollHeight === 'flex'
|
|
2158
|
+
'flex-scrollable': this.scrollable && this.scrollHeight === 'flex',
|
|
2159
|
+
[this.size]: this.size,
|
|
2160
|
+
loading: this.loading,
|
|
2161
|
+
empty: this.empty
|
|
2159
2162
|
});
|
|
2160
2163
|
}
|
|
2161
2164
|
},
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<Checkbox :modelValue="checked" :binary="true" :disabled="disabled" :aria-label="headerCheckboxAriaLabel" @change="onChange" :unstyled="unstyled" :pt="getColumnPT('pcHeaderCheckbox')">
|
|
3
|
-
|
|
3
|
+
<template #icon="slotProps">
|
|
4
4
|
<component v-if="headerCheckboxIconTemplate" :is="headerCheckboxIconTemplate" :checked="slotProps.checked" :class="slotProps.class" />
|
|
5
|
-
<CheckIcon v-else-if="!headerCheckboxIconTemplate && slotProps.checked" :class="slotProps.class" v-bind="getColumnPT('pcHeaderCheckbox')['icon']" />
|
|
6
|
-
</template
|
|
5
|
+
<!-- <CheckIcon v-else-if="!headerCheckboxIconTemplate && slotProps.checked" :class="slotProps.class" v-bind="getColumnPT('pcHeaderCheckbox')['icon']" /> -->
|
|
6
|
+
</template>
|
|
7
7
|
</Checkbox>
|
|
8
8
|
</template>
|
|
9
9
|
|
package/datatable/index.mjs
CHANGED
|
@@ -1011,7 +1011,7 @@ var script$a = {
|
|
|
1011
1011
|
});
|
|
1012
1012
|
},
|
|
1013
1013
|
expandButtonAriaLabel: function expandButtonAriaLabel() {
|
|
1014
|
-
return this.$primevue.config.locale.aria ? this.isRowExpanded ? this.$primevue.config.locale.aria.
|
|
1014
|
+
return this.$primevue.config.locale.aria ? this.isRowExpanded ? this.$primevue.config.locale.aria.expandRow : this.$primevue.config.locale.aria.collapseRow : undefined;
|
|
1015
1015
|
},
|
|
1016
1016
|
initButtonAriaLabel: function initButtonAriaLabel() {
|
|
1017
1017
|
return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria.editRow : undefined;
|
|
@@ -3036,7 +3036,8 @@ var script$5 = {
|
|
|
3036
3036
|
return this.$primevue.config.locale ? this.$primevue.config.locale.apply : undefined;
|
|
3037
3037
|
},
|
|
3038
3038
|
columnFilterButtonAriaLabel: function columnFilterButtonAriaLabel() {
|
|
3039
|
-
|
|
3039
|
+
var _this$$primevue$confi;
|
|
3040
|
+
return (_this$$primevue$confi = this.$primevue.config.locale) !== null && _this$$primevue$confi !== void 0 && _this$$primevue$confi.aria ? this.overlayVisible ? this.$primevue.config.locale.aria.hideFilterMenu : this.$primevue.config.locale.aria.showFilterMenu : undefined;
|
|
3040
3041
|
},
|
|
3041
3042
|
filterOperatorAriaLabel: function filterOperatorAriaLabel() {
|
|
3042
3043
|
return this.$primevue.config.locale ? this.$primevue.config.locale.filterOperator : undefined;
|
|
@@ -3249,8 +3250,8 @@ function render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3249
3250
|
ref_for: true
|
|
3250
3251
|
}, $options.getColumnPT('pcFilterRemoveRuleButton')['icon']), null, 16, ["class"]))];
|
|
3251
3252
|
}),
|
|
3252
|
-
_:
|
|
3253
|
-
},
|
|
3253
|
+
_: 1
|
|
3254
|
+
}, 16, ["class", "onClick", "label", "unstyled", "pt"])], 16)) : createCommentVNode("", true)], 16);
|
|
3254
3255
|
}), 128))], 16), $options.isShowAddConstraint ? (openBlock(), createElementBlock("div", normalizeProps(mergeProps({
|
|
3255
3256
|
key: 1
|
|
3256
3257
|
}, $options.getColumnPT('filterAddButtonContainer'))), [createVNode(_component_Button, mergeProps({
|
|
@@ -3385,7 +3386,16 @@ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3385
3386
|
onChange: $options.onChange,
|
|
3386
3387
|
unstyled: _ctx.unstyled,
|
|
3387
3388
|
pt: $options.getColumnPT('pcHeaderCheckbox')
|
|
3388
|
-
},
|
|
3389
|
+
}, {
|
|
3390
|
+
icon: withCtx(function (slotProps) {
|
|
3391
|
+
return [$props.headerCheckboxIconTemplate ? (openBlock(), createBlock(resolveDynamicComponent($props.headerCheckboxIconTemplate), {
|
|
3392
|
+
key: 0,
|
|
3393
|
+
checked: slotProps.checked,
|
|
3394
|
+
"class": normalizeClass(slotProps["class"])
|
|
3395
|
+
}, null, 8, ["checked", "class"])) : createCommentVNode("", true)];
|
|
3396
|
+
}),
|
|
3397
|
+
_: 1
|
|
3398
|
+
}, 8, ["modelValue", "disabled", "aria-label", "onChange", "unstyled", "pt"]);
|
|
3389
3399
|
}
|
|
3390
3400
|
|
|
3391
3401
|
script$4.render = render$4;
|
|
@@ -4441,8 +4451,8 @@ var script = {
|
|
|
4441
4451
|
emits: ['value-change', 'update:first', 'update:rows', 'page', 'update:sortField', 'update:sortOrder', 'update:multiSortMeta', 'sort', 'filter', 'row-click', 'row-dblclick', 'update:selection', 'row-select', 'row-unselect', 'update:contextMenuSelection', 'row-contextmenu', 'row-unselect-all', 'row-select-all', 'select-all-change', 'column-resize-end', 'column-reorder', 'row-reorder', 'update:expandedRows', 'row-collapse', 'row-expand', 'update:expandedRowGroups', 'rowgroup-collapse', 'rowgroup-expand', 'update:filters', 'state-restore', 'state-save', 'cell-edit-init', 'cell-edit-complete', 'cell-edit-cancel', 'update:editingRows', 'row-edit-init', 'row-edit-save', 'row-edit-cancel'],
|
|
4442
4452
|
provide: function provide() {
|
|
4443
4453
|
return {
|
|
4444
|
-
$columns: this.d_columns
|
|
4445
|
-
$columnGroups: this.d_columnGroups
|
|
4454
|
+
$columns: this.d_columns,
|
|
4455
|
+
$columnGroups: this.d_columnGroups
|
|
4446
4456
|
};
|
|
4447
4457
|
},
|
|
4448
4458
|
data: function data() {
|
|
@@ -6135,10 +6145,10 @@ var script = {
|
|
|
6135
6145
|
return isEmpty(this.virtualScrollerOptions) || !this.scrollable;
|
|
6136
6146
|
},
|
|
6137
6147
|
dataP: function dataP() {
|
|
6138
|
-
return cn({
|
|
6148
|
+
return cn(_defineProperty$1(_defineProperty$1(_defineProperty$1({
|
|
6139
6149
|
scrollable: this.scrollable,
|
|
6140
6150
|
'flex-scrollable': this.scrollable && this.scrollHeight === 'flex'
|
|
6141
|
-
});
|
|
6151
|
+
}, this.size, this.size), "loading", this.loading), "empty", this.empty));
|
|
6142
6152
|
}
|
|
6143
6153
|
},
|
|
6144
6154
|
components: {
|