primevue 4.3.9 → 4.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/autocomplete/AutoComplete.vue +19 -4
- package/autocomplete/BaseAutoComplete.vue +4 -0
- package/autocomplete/index.d.ts +20 -0
- package/autocomplete/index.mjs +35 -8
- 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 +3 -4
- package/colorpicker/index.mjs +3 -3
- package/colorpicker/index.mjs.map +1 -1
- 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/ColumnFilter.vue +1 -1
- package/datatable/DataTable.vue +2 -2
- package/datatable/HeaderCheckbox.vue +3 -3
- package/datatable/index.mjs +13 -4
- package/datatable/index.mjs.map +1 -1
- package/datepicker/BaseDatePicker.vue +8 -0
- package/datepicker/DatePicker.vue +225 -105
- package/datepicker/index.d.ts +43 -2
- package/datepicker/index.mjs +303 -186
- 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/drawer/BaseDrawer.vue +4 -0
- package/drawer/Drawer.vue +5 -5
- package/drawer/index.d.ts +5 -0
- package/drawer/index.mjs +11 -7
- 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/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 +30 -5
- package/inputnumber/index.d.ts +20 -0
- package/inputnumber/index.mjs +45 -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/listbox/Listbox.vue +1 -1
- package/listbox/index.mjs +1 -1
- package/listbox/index.mjs.map +1 -1
- package/menu/Menu.vue +2 -2
- package/menu/index.mjs +1 -1
- package/menu/index.mjs.map +1 -1
- package/multiselect/MultiSelect.vue +10 -6
- package/multiselect/index.mjs +15 -11
- 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 +14 -2
- package/password/index.d.ts +20 -0
- package/password/index.mjs +26 -3
- 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 +2 -1
- package/select/index.mjs +2 -1
- package/select/index.mjs.map +1 -1
- package/speeddial/SpeedDial.vue +1 -1
- package/speeddial/index.mjs +1 -1
- package/speeddial/index.mjs.map +1 -1
- package/splitbutton/SplitButton.vue +1 -1
- package/splitbutton/index.mjs +1 -1
- package/splitbutton/index.mjs.map +1 -1
- package/tree/BaseTree.vue +20 -0
- package/tree/Tree.vue +236 -4
- package/tree/TreeNode.vue +295 -3
- package/tree/index.d.ts +140 -0
- package/tree/index.mjs +637 -27
- 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 +3 -2
- package/treeselect/index.mjs +6 -5
- package/treeselect/index.mjs.map +1 -1
- package/umd/primevue.min.js +1 -1
- package/web-types.json +1 -1
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,QAAiB;AAC1BC,EAAAA,eAAe,EAAE,IAAI;AACrBC,EAAAA,aAAa,EAAE,IAAI;EACnBC,IAAI,EAAA,SAAJA,IAAIA,GAAG;IACH,OAAO;AACHC,MAAAA,OAAO,EAAE,KAAK;AACdC,MAAAA,YAAY,EAAE;K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AKmB,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;AAC1BC,EAAAA,eAAe,EAAE,IAAI;AACrBC,EAAAA,aAAa,EAAE,IAAI;EACnBC,IAAI,EAAA,SAAJA,IAAIA,GAAG;IACH,OAAO;AACHC,MAAAA,OAAO,EAAE,KAAK;AACdC,MAAAA,YAAY,EAAE;KACjB;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AA;;;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;;;;;;;;;;;;;;"}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
:aria-label="columnFilterButtonAriaLabel"
|
|
10
10
|
aria-haspopup="true"
|
|
11
11
|
:aria-expanded="overlayVisible"
|
|
12
|
-
:aria-controls="overlayId"
|
|
12
|
+
:aria-controls="overlayVisible ? overlayId : undefined"
|
|
13
13
|
:class="cx('pcColumnFilterButton')"
|
|
14
14
|
:unstyled="unstyled"
|
|
15
15
|
@click="toggleMenu($event)"
|
package/datatable/DataTable.vue
CHANGED
|
@@ -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
|
@@ -3104,7 +3104,7 @@ function render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3104
3104
|
"aria-label": $options.columnFilterButtonAriaLabel,
|
|
3105
3105
|
"aria-haspopup": "true",
|
|
3106
3106
|
"aria-expanded": $data.overlayVisible,
|
|
3107
|
-
"aria-controls": $options.overlayId,
|
|
3107
|
+
"aria-controls": $data.overlayVisible ? $options.overlayId : undefined,
|
|
3108
3108
|
"class": _ctx.cx('pcColumnFilterButton'),
|
|
3109
3109
|
unstyled: _ctx.unstyled,
|
|
3110
3110
|
onClick: _cache[0] || (_cache[0] = function ($event) {
|
|
@@ -3386,7 +3386,16 @@ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3386
3386
|
onChange: $options.onChange,
|
|
3387
3387
|
unstyled: _ctx.unstyled,
|
|
3388
3388
|
pt: $options.getColumnPT('pcHeaderCheckbox')
|
|
3389
|
-
},
|
|
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"]);
|
|
3390
3399
|
}
|
|
3391
3400
|
|
|
3392
3401
|
script$4.render = render$4;
|
|
@@ -4442,8 +4451,8 @@ var script = {
|
|
|
4442
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'],
|
|
4443
4452
|
provide: function provide() {
|
|
4444
4453
|
return {
|
|
4445
|
-
$columns: this.d_columns
|
|
4446
|
-
$columnGroups: this.d_columnGroups
|
|
4454
|
+
$columns: this.d_columns,
|
|
4455
|
+
$columnGroups: this.d_columnGroups
|
|
4447
4456
|
};
|
|
4448
4457
|
},
|
|
4449
4458
|
data: function data() {
|