primevue 4.0.0 → 4.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (186) hide show
  1. package/accordion/style/index.mjs +1 -1
  2. package/accordion/style/index.mjs.map +1 -1
  3. package/autocomplete/AutoComplete.vue +14 -5
  4. package/autocomplete/BaseAutoComplete.vue +1 -1
  5. package/autocomplete/index.d.ts +2 -2
  6. package/autocomplete/index.mjs +15 -5
  7. package/autocomplete/index.mjs.map +1 -1
  8. package/autocomplete/style/index.mjs +1 -1
  9. package/autocomplete/style/index.mjs.map +1 -1
  10. package/button/BaseButton.vue +1 -1
  11. package/button/Button.vue +7 -0
  12. package/button/index.d.ts +2 -2
  13. package/button/index.mjs +10 -1
  14. package/button/index.mjs.map +1 -1
  15. package/button/style/index.mjs +1 -1
  16. package/button/style/index.mjs.map +1 -1
  17. package/cascadeselect/BaseCascadeSelect.vue +1 -1
  18. package/cascadeselect/CascadeSelect.vue +10 -4
  19. package/cascadeselect/index.d.ts +6 -2
  20. package/cascadeselect/index.mjs +11 -3
  21. package/cascadeselect/index.mjs.map +1 -1
  22. package/cascadeselect/style/index.mjs +1 -1
  23. package/cascadeselect/style/index.mjs.map +1 -1
  24. package/checkbox/Checkbox.vue +2 -1
  25. package/checkbox/index.d.ts +5 -0
  26. package/checkbox/index.mjs +1 -0
  27. package/checkbox/index.mjs.map +1 -1
  28. package/colorpicker/ColorPicker.vue +1 -1
  29. package/colorpicker/index.d.ts +4 -0
  30. package/colorpicker/index.mjs +2 -1
  31. package/colorpicker/index.mjs.map +1 -1
  32. package/confirmdialog/ConfirmDialog.vue +4 -7
  33. package/confirmdialog/index.mjs +6 -12
  34. package/confirmdialog/index.mjs.map +1 -1
  35. package/confirmpopup/ConfirmPopup.vue +7 -10
  36. package/confirmpopup/index.mjs +8 -14
  37. package/confirmpopup/index.mjs.map +1 -1
  38. package/datatable/BodyCell.vue +8 -5
  39. package/datatable/HeaderCell.vue +2 -2
  40. package/datatable/HeaderCheckbox.vue +1 -1
  41. package/datatable/RowCheckbox.vue +1 -1
  42. package/datatable/index.mjs +20 -17
  43. package/datatable/index.mjs.map +1 -1
  44. package/datatable/style/index.mjs +1 -1
  45. package/datatable/style/index.mjs.map +1 -1
  46. package/datepicker/BaseDatePicker.vue +1 -1
  47. package/datepicker/DatePicker.vue +8 -1
  48. package/datepicker/index.d.ts +2 -2
  49. package/datepicker/index.mjs +13 -4
  50. package/datepicker/index.mjs.map +1 -1
  51. package/datepicker/style/index.mjs +4 -3
  52. package/datepicker/style/index.mjs.map +1 -1
  53. package/fileupload/index.mjs +1 -1
  54. package/floatlabel/index.d.ts +1 -1
  55. package/fluid/BaseFluid.vue +16 -0
  56. package/fluid/Fluid.vue +15 -0
  57. package/fluid/index.d.ts +130 -0
  58. package/fluid/index.mjs +32 -0
  59. package/fluid/index.mjs.map +1 -0
  60. package/fluid/package.json +11 -0
  61. package/fluid/style/index.d.ts +19 -0
  62. package/fluid/style/index.mjs +12 -0
  63. package/fluid/style/index.mjs.map +1 -0
  64. package/fluid/style/package.json +6 -0
  65. package/galleria/GalleriaItem.vue +5 -5
  66. package/galleria/GalleriaThumbnails.vue +6 -6
  67. package/galleria/index.mjs +16 -16
  68. package/galleria/index.mjs.map +1 -1
  69. package/galleria/style/index.d.ts +4 -4
  70. package/galleria/style/index.mjs +8 -8
  71. package/galleria/style/index.mjs.map +1 -1
  72. package/iconfield/style/index.mjs +1 -1
  73. package/iconfield/style/index.mjs.map +1 -1
  74. package/inputgroup/BaseInputGroup.vue +1 -1
  75. package/inputgroup/InputGroup.vue +10 -1
  76. package/inputgroup/index.d.ts +2 -2
  77. package/inputgroup/index.mjs +13 -2
  78. package/inputgroup/index.mjs.map +1 -1
  79. package/inputgroup/style/index.mjs +2 -2
  80. package/inputgroup/style/index.mjs.map +1 -1
  81. package/inputmask/InputMask.vue +5 -1
  82. package/inputmask/index.d.ts +7 -2
  83. package/inputmask/index.mjs +5 -2
  84. package/inputmask/index.mjs.map +1 -1
  85. package/inputnumber/BaseInputNumber.vue +1 -1
  86. package/inputnumber/InputNumber.vue +8 -2
  87. package/inputnumber/index.d.ts +2 -2
  88. package/inputnumber/index.mjs +10 -2
  89. package/inputnumber/index.mjs.map +1 -1
  90. package/inputnumber/style/index.mjs +1 -1
  91. package/inputnumber/style/index.mjs.map +1 -1
  92. package/inputtext/BaseInputText.vue +1 -1
  93. package/inputtext/InputText.vue +7 -0
  94. package/inputtext/index.d.ts +2 -2
  95. package/inputtext/index.mjs +10 -1
  96. package/inputtext/index.mjs.map +1 -1
  97. package/inputtext/style/index.mjs +1 -1
  98. package/inputtext/style/index.mjs.map +1 -1
  99. package/listbox/Listbox.vue +3 -3
  100. package/listbox/index.mjs +7 -6
  101. package/listbox/index.mjs.map +1 -1
  102. package/menubar/index.d.ts +1 -1
  103. package/multiselect/BaseMultiSelect.vue +1 -1
  104. package/multiselect/MultiSelect.vue +7 -1
  105. package/multiselect/index.d.ts +6 -2
  106. package/multiselect/index.mjs +10 -2
  107. package/multiselect/index.mjs.map +1 -1
  108. package/multiselect/style/index.mjs +1 -1
  109. package/multiselect/style/index.mjs.map +1 -1
  110. package/package.json +5 -3
  111. package/paginator/Paginator.vue +2 -2
  112. package/paginator/index.mjs +3 -2
  113. package/paginator/index.mjs.map +1 -1
  114. package/password/BasePassword.vue +1 -1
  115. package/password/Password.vue +10 -2
  116. package/password/index.d.ts +2 -2
  117. package/password/index.mjs +13 -3
  118. package/password/index.mjs.map +1 -1
  119. package/password/style/index.mjs +2 -3
  120. package/password/style/index.mjs.map +1 -1
  121. package/picklist/PickList.vue +9 -9
  122. package/picklist/index.d.ts +4 -4
  123. package/picklist/index.mjs +9 -9
  124. package/picklist/index.mjs.map +1 -1
  125. package/select/BaseSelect.vue +1 -1
  126. package/select/Select.vue +14 -5
  127. package/select/index.d.ts +2 -2
  128. package/select/index.mjs +21 -9
  129. package/select/index.mjs.map +1 -1
  130. package/select/style/index.mjs +1 -1
  131. package/select/style/index.mjs.map +1 -1
  132. package/selectbutton/index.mjs +1 -1
  133. package/speeddial/SpeedDial.vue +3 -3
  134. package/speeddial/index.mjs +3 -3
  135. package/speeddial/index.mjs.map +1 -1
  136. package/splitbutton/BaseSplitButton.vue +1 -1
  137. package/splitbutton/SplitButton.vue +8 -1
  138. package/splitbutton/index.d.ts +3 -3
  139. package/splitbutton/index.mjs +11 -2
  140. package/splitbutton/index.mjs.map +1 -1
  141. package/splitbutton/style/index.mjs +3 -2
  142. package/splitbutton/style/index.mjs.map +1 -1
  143. package/step/Step.vue +6 -6
  144. package/step/index.mjs +7 -7
  145. package/step/index.mjs.map +1 -1
  146. package/step/style/index.mjs +2 -3
  147. package/step/style/index.mjs.map +1 -1
  148. package/steppanel/StepPanel.vue +1 -1
  149. package/steppanel/index.mjs +2 -4
  150. package/steppanel/index.mjs.map +1 -1
  151. package/stepper/style/index.mjs +1 -1
  152. package/stepper/style/index.mjs.map +1 -1
  153. package/tablist/TabList.vue +7 -3
  154. package/tablist/index.d.ts +6 -2
  155. package/tablist/index.mjs +8 -4
  156. package/tablist/index.mjs.map +1 -1
  157. package/tablist/style/index.d.ts +3 -3
  158. package/tablist/style/index.mjs +2 -2
  159. package/tablist/style/index.mjs.map +1 -1
  160. package/tabs/style/index.mjs +1 -1
  161. package/tabs/style/index.mjs.map +1 -1
  162. package/textarea/BaseTextarea.vue +1 -1
  163. package/textarea/Textarea.vue +7 -0
  164. package/textarea/index.d.ts +2 -2
  165. package/textarea/index.mjs +10 -1
  166. package/textarea/index.mjs.map +1 -1
  167. package/textarea/style/index.mjs +1 -1
  168. package/textarea/style/index.mjs.map +1 -1
  169. package/toast/Toast.vue +2 -1
  170. package/toast/index.mjs +3 -2
  171. package/toast/index.mjs.map +1 -1
  172. package/tree/Tree.vue +3 -3
  173. package/tree/TreeNode.vue +1 -1
  174. package/tree/index.mjs +16 -13
  175. package/tree/index.mjs.map +1 -1
  176. package/treenode/index.d.ts +1 -1
  177. package/treeselect/BaseTreeSelect.vue +1 -1
  178. package/treeselect/TreeSelect.vue +9 -2
  179. package/treeselect/index.d.ts +2 -2
  180. package/treeselect/index.mjs +12 -3
  181. package/treeselect/index.mjs.map +1 -1
  182. package/treeselect/style/index.mjs +1 -1
  183. package/treeselect/style/index.mjs.map +1 -1
  184. package/treetable/index.mjs +2 -2
  185. package/umd/primevue.min.js +1 -1
  186. package/web-types.json +1 -1
@@ -122,9 +122,6 @@ export default {
122
122
  }
123
123
 
124
124
  this.visible = false;
125
- },
126
- getCXOptions(icon, iconProps) {
127
- return { contenxt: { icon, iconClass: iconProps.class } };
128
125
  }
129
126
  },
130
127
  computed: {
@@ -144,19 +141,19 @@ export default {
144
141
  if (this.confirmation) {
145
142
  const confirmation = this.confirmation;
146
143
 
147
- return confirmation.acceptLabel ? confirmation.acceptLabel : confirmation.acceptProps ? confirmation.acceptProps.label || this.$primevue.config.locale.accept : null;
144
+ return confirmation.acceptLabel || confirmation.acceptProps?.label || this.$primevue.config.locale.accept;
148
145
  }
149
146
 
150
- return null;
147
+ return this.$primevue.config.locale.accept;
151
148
  },
152
149
  rejectLabel() {
153
150
  if (this.confirmation) {
154
151
  const confirmation = this.confirmation;
155
152
 
156
- return confirmation.rejectLabel ? confirmation.rejectLabel : confirmation.rejectProps ? confirmation.rejectProps.label || this.$primevue.config.locale.reject : null;
153
+ return confirmation.rejectLabel || confirmation.rejectProps?.label || this.$primevue.config.locale.reject;
157
154
  }
158
155
 
159
- return null;
156
+ return this.$primevue.config.locale.reject;
160
157
  },
161
158
  acceptIcon() {
162
159
  return this.confirmation ? this.confirmation.acceptIcon : this.confirmation?.acceptProps ? this.confirmation.acceptProps.icon : null;
@@ -82,14 +82,6 @@ var script = {
82
82
  this.confirmation.onHide();
83
83
  }
84
84
  this.visible = false;
85
- },
86
- getCXOptions: function getCXOptions(icon, iconProps) {
87
- return {
88
- contenxt: {
89
- icon: icon,
90
- iconClass: iconProps["class"]
91
- }
92
- };
93
85
  }
94
86
  },
95
87
  computed: {
@@ -107,17 +99,19 @@ var script = {
107
99
  },
108
100
  acceptLabel: function acceptLabel() {
109
101
  if (this.confirmation) {
102
+ var _confirmation$acceptP;
110
103
  var confirmation = this.confirmation;
111
- return confirmation.acceptLabel ? confirmation.acceptLabel : confirmation.acceptProps ? confirmation.acceptProps.label || this.$primevue.config.locale.accept : null;
104
+ return confirmation.acceptLabel || ((_confirmation$acceptP = confirmation.acceptProps) === null || _confirmation$acceptP === void 0 ? void 0 : _confirmation$acceptP.label) || this.$primevue.config.locale.accept;
112
105
  }
113
- return null;
106
+ return this.$primevue.config.locale.accept;
114
107
  },
115
108
  rejectLabel: function rejectLabel() {
116
109
  if (this.confirmation) {
110
+ var _confirmation$rejectP;
117
111
  var confirmation = this.confirmation;
118
- return confirmation.rejectLabel ? confirmation.rejectLabel : confirmation.rejectProps ? confirmation.rejectProps.label || this.$primevue.config.locale.reject : null;
112
+ return confirmation.rejectLabel || ((_confirmation$rejectP = confirmation.rejectProps) === null || _confirmation$rejectP === void 0 ? void 0 : _confirmation$rejectP.label) || this.$primevue.config.locale.reject;
119
113
  }
120
- return null;
114
+ return this.$primevue.config.locale.reject;
121
115
  },
122
116
  acceptIcon: function acceptIcon() {
123
117
  var _this$confirmation;
@@ -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=65445134&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=\"true\"\n :header=\"header\"\n :blockScroll=\"blockScroll\"\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 getCXOptions(icon, iconProps) {\n return { contenxt: { icon, iconClass: iconProps.class } };\n }\n },\n computed: {\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.acceptLabel : confirmation.acceptProps ? confirmation.acceptProps.label || this.$primevue.config.locale.accept : null;\n }\n\n return null;\n },\n rejectLabel() {\n if (this.confirmation) {\n const confirmation = this.confirmation;\n\n return confirmation.rejectLabel ? confirmation.rejectLabel : confirmation.rejectProps ? confirmation.rejectProps.label || this.$primevue.config.locale.reject : null;\n }\n\n return null;\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=\"true\"\n :header=\"header\"\n :blockScroll=\"blockScroll\"\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 getCXOptions(icon, iconProps) {\n return { contenxt: { icon, iconClass: iconProps.class } };\n }\n },\n computed: {\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.acceptLabel : confirmation.acceptProps ? confirmation.acceptProps.label || this.$primevue.config.locale.accept : null;\n }\n\n return null;\n },\n rejectLabel() {\n if (this.confirmation) {\n const confirmation = this.confirmation;\n\n return confirmation.rejectLabel ? confirmation.rejectLabel : confirmation.rejectProps ? confirmation.rejectProps.label || this.$primevue.config.locale.reject : null;\n }\n\n return null;\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","getCXOptions","icon","iconProps","contenxt","iconClass","computed","header","message","blockScroll","position","acceptLabel","acceptProps","label","$primevue","config","locale","rejectLabel","rejectProps","acceptIcon","_this$confirmation","rejectIcon","_this$confirmation2","autoFocusAccept","defaultFocus","undefined","autoFocusReject","closeOnEscape","components","Dialog","Button","_createBlock","_component_Dialog","$data","$event","$options","role","_ctx","cx","modal","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","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,SAAS,EAAA,IAAA;KACZ;AACDC,IAAAA,SAAS,EAAE;AACPF,MAAAA,IAAI,EAAEG,OAAO;MACb,SAAS,EAAA,IAAA;AACb,KAAA;GACH;AACDC,EAAAA,KAAK,EAAEC,kBAAkB;EACzBC,OAAO,EAAA,SAAAA,UAAG;IACN,OAAO;AACHC,MAAAA,gBAAgB,EAAE,IAAI;AACtBC,MAAAA,eAAe,EAAE,IAAA;KACpB,CAAA;AACL,GAAA;AACJ,CAAC;;ACsCD,aAAe;AACXd,EAAAA,IAAI,EAAE,eAAe;AACrB,EAAA,SAAA,EAASe,QAAiB;AAC1BC,EAAAA,eAAe,EAAE,IAAI;AACrBC,EAAAA,aAAa,EAAE,IAAI;EACnBC,IAAI,EAAA,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AEM,CADFe,kBAAA,CAAwH,QAAxHF,UAAwH,CAAA;AAAjH,cAAA,OAAA,EAAQ,CAAAf,QAAA,CAAAhB,UAAU,EAAEhB,SAAS,CAAM,OAAA,CAAA,CAAA;eAAWkC,IAAG,CAAAc,GAAA,CAAA,gBAAA,CAAA,CAAA,MAAA,CAAA,EAAA;AAA4B,cAAA,iBAAe,EAAC,kBAAA;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=93e3ca7c&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=\"true\"\n :header=\"header\"\n :blockScroll=\"blockScroll\"\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 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=\"true\"\n :header=\"header\"\n :blockScroll=\"blockScroll\"\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 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","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","modal","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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CAAA6B,IAAA,CAAAC,EAAE,CAAoB,gBAAA,CAAA,EAAAL,KAAA,CAAA3C,YAAY,CAAC+E,WAAW,CAAA;QAAIL,SAAS,EAAE7B,QAAe,CAAAZ,eAAA;QAAGkB,QAAQ,EAAEJ,IAAQ,CAAAI,QAAA;AAAGyB,QAAAA,OAAK;iBAAE/B,QAAM,CAAAnC,MAAA,EAAA,CAAA;SAAA,CAAA;AAAY,OAAA,EAAAiC,KAAA,CAAA3C,YAAY,CAACoB,WAAW,EAAA;AAAG8B,QAAAA,EAAE,EAAEH,IAAG,CAAAc,GAAA,CAAA,gBAAA,CAAA;;;UACjLhB,QAAS,CAAAjB,UAAA,IAAKmB,IAAM,CAAAK,MAAA,CAAC4B,UAAU;cAAG,MAAI;AAClDjB,QAAAA,EAAA,EAAAC,OAAA,CAAA,UADoDc,SAAS,EAAA;UAAA,OAAA,CAC7DrB,UAAA,CAEMV,+BAFN,YAAA;AAAA,YAAA,OAEM,CADFe,kBAAA,CAAwH,QAAxHF,UAAwH,CAAA;AAAjH,cAAA,OAAA,EAAQ,CAAAf,QAAA,CAAAjB,UAAU,EAAEkD,SAAS,CAAM,OAAA,CAAA,CAAA;eAAW/B,IAAG,CAAAc,GAAA,CAAA,gBAAA,CAAA,CAAA,MAAA,CAAA,EAAA;AAA4B,cAAA,iBAAe,EAAC,kBAAA;AAAiB,aAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA;;;;;;;;;;;;;;"}
@@ -58,10 +58,10 @@
58
58
  </template>
59
59
 
60
60
  <script>
61
- import { ConnectedOverlayScrollHandler } from '@primevue/core/utils';
62
- import { focus, absolutePosition, getOffset, addClass, isTouchDevice } from '@primeuix/utils/dom';
63
- import { ZIndex } from '@primeuix/utils/zindex';
64
61
  import { $dt } from '@primeuix/styled';
62
+ import { absolutePosition, addClass, focus, getOffset, isTouchDevice } from '@primeuix/utils/dom';
63
+ import { ZIndex } from '@primeuix/utils/zindex';
64
+ import { ConnectedOverlayScrollHandler } from '@primevue/core/utils';
65
65
  import Button from 'primevue/button';
66
66
  import ConfirmationEventBus from 'primevue/confirmationeventbus';
67
67
  import FocusTrap from 'primevue/focustrap';
@@ -293,9 +293,6 @@ export default {
293
293
  ConfirmationEventBus.emit('close', this.closeListener);
294
294
  focus(this.target);
295
295
  }
296
- },
297
- getCXOptions(icon, iconProps) {
298
- return { contenxt: { icon, iconClass: iconProps.class } };
299
296
  }
300
297
  },
301
298
  computed: {
@@ -306,19 +303,19 @@ export default {
306
303
  if (this.confirmation) {
307
304
  const confirmation = this.confirmation;
308
305
 
309
- return confirmation.acceptLabel ? confirmation.acceptLabel : confirmation.acceptProps ? confirmation.acceptProps.label || this.$primevue.config.locale.accept : null;
306
+ return confirmation.acceptLabel || confirmation.acceptProps?.label || this.$primevue.config.locale.accept;
310
307
  }
311
308
 
312
- return null;
309
+ return this.$primevue.config.locale.accept;
313
310
  },
314
311
  rejectLabel() {
315
312
  if (this.confirmation) {
316
313
  const confirmation = this.confirmation;
317
314
 
318
- return confirmation.rejectLabel ? confirmation.rejectLabel : confirmation.rejectProps ? confirmation.rejectProps.label || this.$primevue.config.locale.reject : null;
315
+ return confirmation.rejectLabel || confirmation.rejectProps?.label || this.$primevue.config.locale.reject;
319
316
  }
320
317
 
321
- return null;
318
+ return this.$primevue.config.locale.reject;
322
319
  },
323
320
  acceptIcon() {
324
321
  return this.confirmation ? this.confirmation.acceptIcon : this.confirmation?.acceptProps ? this.confirmation.acceptProps.icon : null;
@@ -1,7 +1,7 @@
1
- import { ConnectedOverlayScrollHandler } from '@primevue/core/utils';
1
+ import { $dt } from '@primeuix/styled';
2
2
  import { focus, absolutePosition, getOffset, addClass, isTouchDevice } from '@primeuix/utils/dom';
3
3
  import { ZIndex } from '@primeuix/utils/zindex';
4
- import { $dt } from '@primeuix/styled';
4
+ import { ConnectedOverlayScrollHandler } from '@primevue/core/utils';
5
5
  import Button from 'primevue/button';
6
6
  import ConfirmationEventBus from 'primevue/confirmationeventbus';
7
7
  import FocusTrap from 'primevue/focustrap';
@@ -231,14 +231,6 @@ var script = {
231
231
  ConfirmationEventBus.emit('close', this.closeListener);
232
232
  focus(this.target);
233
233
  }
234
- },
235
- getCXOptions: function getCXOptions(icon, iconProps) {
236
- return {
237
- contenxt: {
238
- icon: icon,
239
- iconClass: iconProps["class"]
240
- }
241
- };
242
234
  }
243
235
  },
244
236
  computed: {
@@ -247,17 +239,19 @@ var script = {
247
239
  },
248
240
  acceptLabel: function acceptLabel() {
249
241
  if (this.confirmation) {
242
+ var _confirmation$acceptP;
250
243
  var confirmation = this.confirmation;
251
- return confirmation.acceptLabel ? confirmation.acceptLabel : confirmation.acceptProps ? confirmation.acceptProps.label || this.$primevue.config.locale.accept : null;
244
+ return confirmation.acceptLabel || ((_confirmation$acceptP = confirmation.acceptProps) === null || _confirmation$acceptP === void 0 ? void 0 : _confirmation$acceptP.label) || this.$primevue.config.locale.accept;
252
245
  }
253
- return null;
246
+ return this.$primevue.config.locale.accept;
254
247
  },
255
248
  rejectLabel: function rejectLabel() {
256
249
  if (this.confirmation) {
250
+ var _confirmation$rejectP;
257
251
  var confirmation = this.confirmation;
258
- return confirmation.rejectLabel ? confirmation.rejectLabel : confirmation.rejectProps ? confirmation.rejectProps.label || this.$primevue.config.locale.reject : null;
252
+ return confirmation.rejectLabel || ((_confirmation$rejectP = confirmation.rejectProps) === null || _confirmation$rejectP === void 0 ? void 0 : _confirmation$rejectP.label) || this.$primevue.config.locale.reject;
259
253
  }
260
- return null;
254
+ return this.$primevue.config.locale.reject;
261
255
  },
262
256
  acceptIcon: function acceptIcon() {
263
257
  var _this$confirmation;
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../src/confirmpopup/BaseConfirmPopup.vue","../../src/confirmpopup/ConfirmPopup.vue","../../src/confirmpopup/ConfirmPopup.vue?vue&type=template&id=1aaa2380&lang.js"],"sourcesContent":["<script>\nimport BaseComponent from '@primevue/core/basecomponent';\nimport ConfirmPopupStyle from 'primevue/confirmpopup/style';\n\nexport default {\n name: 'BaseConfirmPopup',\n extends: BaseComponent,\n props: {\n group: String\n },\n style: ConfirmPopupStyle,\n provide() {\n return {\n $pcConfirmPopup: this,\n $parentInstance: this\n };\n }\n};\n</script>\n","<template>\n <Portal>\n <transition name=\"p-confirmpopup\" @enter=\"onEnter\" @after-enter=\"onAfterEnter\" @leave=\"onLeave\" @after-leave=\"onAfterLeave\" v-bind=\"ptm('transition')\">\n <div v-if=\"visible\" :ref=\"containerRef\" v-focustrap role=\"alertdialog\" :class=\"cx('root')\" :aria-modal=\"visible\" @click=\"onOverlayClick\" @keydown=\"onOverlayKeydown\" v-bind=\"ptmi('root')\">\n <slot v-if=\"$slots.container\" name=\"container\" :message=\"confirmation\" :acceptCallback=\"accept\" :rejectCallback=\"reject\"></slot>\n <template v-else>\n <template v-if=\"!$slots.message\">\n <div :class=\"cx('content')\" v-bind=\"ptm('content')\">\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')\">{{ confirmation.message }}</span>\n </div>\n </template>\n <component v-else :is=\"$slots.message\" :message=\"confirmation\"></component>\n <div :class=\"cx('footer')\" v-bind=\"ptm('footer')\">\n <Button\n :class=\"[cx('pcRejectButton'), confirmation.rejectClass]\"\n :autofocus=\"autoFocusReject\"\n :unstyled=\"unstyled\"\n :size=\"confirmation.rejectProps?.size || 'small'\"\n :text=\"confirmation.rejectProps?.text || false\"\n @click=\"reject()\"\n @keydown=\"onRejectKeydown\"\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\n :class=\"[cx('pcAcceptButton'), confirmation.acceptClass]\"\n :autofocus=\"autoFocusAccept\"\n :unstyled=\"unstyled\"\n :size=\"confirmation.acceptProps?.size || 'small'\"\n @click=\"accept()\"\n @keydown=\"onAcceptKeydown\"\n v-bind=\"confirmation.acceptProps\"\n :label=\"acceptLabel\"\n :pt=\"ptm('pcAcceptButton')\"\n >\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 </div>\n </template>\n </div>\n </transition>\n </Portal>\n</template>\n\n<script>\nimport { ConnectedOverlayScrollHandler } from '@primevue/core/utils';\nimport { focus, absolutePosition, getOffset, addClass, isTouchDevice } from '@primeuix/utils/dom';\nimport { ZIndex } from '@primeuix/utils/zindex';\nimport { $dt } from '@primeuix/styled';\nimport Button from 'primevue/button';\nimport ConfirmationEventBus from 'primevue/confirmationeventbus';\nimport FocusTrap from 'primevue/focustrap';\nimport OverlayEventBus from 'primevue/overlayeventbus';\nimport Portal from 'primevue/portal';\nimport BaseConfirmPopup from './BaseConfirmPopup.vue';\n\nexport default {\n name: 'ConfirmPopup',\n extends: BaseConfirmPopup,\n inheritAttrs: false,\n data() {\n return {\n visible: false,\n confirmation: null,\n autoFocusAccept: null,\n autoFocusReject: null\n };\n },\n target: null,\n outsideClickListener: null,\n scrollHandler: null,\n resizeListener: null,\n container: null,\n confirmListener: null,\n closeListener: null,\n mounted() {\n this.confirmListener = (options) => {\n if (!options) {\n return;\n }\n\n if (options.group === this.group) {\n this.confirmation = options;\n this.target = options.target;\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 this.unbindOutsideClickListener();\n\n if (this.scrollHandler) {\n this.scrollHandler.destroy();\n this.scrollHandler = null;\n }\n\n this.unbindResizeListener();\n\n if (this.container) {\n ZIndex.clear(this.container);\n this.container = null;\n }\n\n this.target = null;\n this.confirmation = null;\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 onAcceptKeydown(event) {\n if (event.code === 'Space' || event.code === 'Enter' || event.code === 'NumpadEnter') {\n this.accept();\n focus(this.target);\n event.preventDefault();\n }\n },\n onRejectKeydown(event) {\n if (event.code === 'Space' || event.code === 'Enter' || event.code === 'NumpadEnter') {\n this.reject();\n focus(this.target);\n event.preventDefault();\n }\n },\n onEnter(el) {\n this.autoFocusAccept = this.confirmation.defaultFocus === undefined || this.confirmation.defaultFocus === 'accept' ? true : false;\n this.autoFocusReject = this.confirmation.defaultFocus === 'reject' ? true : false;\n\n this.bindOutsideClickListener();\n this.bindScrollListener();\n this.bindResizeListener();\n\n ZIndex.set('overlay', el, this.$primevue.config.zIndex.overlay);\n },\n onAfterEnter() {\n this.focus();\n },\n onLeave() {\n this.autoFocusAccept = null;\n this.autoFocusReject = null;\n\n this.unbindOutsideClickListener();\n this.unbindScrollListener();\n this.unbindResizeListener();\n },\n onAfterLeave(el) {\n ZIndex.clear(el);\n },\n alignOverlay() {\n absolutePosition(this.container, this.target, false);\n\n const containerOffset = getOffset(this.container);\n const targetOffset = getOffset(this.target);\n let arrowLeft = 0;\n\n if (containerOffset.left < targetOffset.left) {\n arrowLeft = targetOffset.left - containerOffset.left;\n }\n\n this.container.style.setProperty($dt('overlay.arrow.left').name, `${arrowLeft}px`);\n\n if (containerOffset.top < targetOffset.top) {\n this.container.setAttribute('data-p-confirmpopup-flipped', 'true');\n !this.isUnstyled && addClass(this.container, 'p-confirmpopup-flipped');\n }\n },\n bindOutsideClickListener() {\n if (!this.outsideClickListener) {\n this.outsideClickListener = (event) => {\n if (this.visible && this.container && !this.container.contains(event.target) && !this.isTargetClicked(event)) {\n if (this.confirmation.onHide) {\n this.confirmation.onHide();\n }\n\n this.visible = false;\n } else {\n this.alignOverlay();\n }\n };\n\n document.addEventListener('click', this.outsideClickListener);\n }\n },\n unbindOutsideClickListener() {\n if (this.outsideClickListener) {\n document.removeEventListener('click', this.outsideClickListener);\n this.outsideClickListener = null;\n }\n },\n bindScrollListener() {\n if (!this.scrollHandler) {\n this.scrollHandler = new ConnectedOverlayScrollHandler(this.target, () => {\n if (this.visible) {\n this.visible = false;\n }\n });\n }\n\n this.scrollHandler.bindScrollListener();\n },\n unbindScrollListener() {\n if (this.scrollHandler) {\n this.scrollHandler.unbindScrollListener();\n }\n },\n bindResizeListener() {\n if (!this.resizeListener) {\n this.resizeListener = () => {\n if (this.visible && !isTouchDevice()) {\n this.visible = false;\n }\n };\n\n window.addEventListener('resize', this.resizeListener);\n }\n },\n unbindResizeListener() {\n if (this.resizeListener) {\n window.removeEventListener('resize', this.resizeListener);\n this.resizeListener = null;\n }\n },\n focus() {\n let focusTarget = this.container.querySelector('[autofocus]');\n\n if (focusTarget) {\n focusTarget.focus({ preventScroll: true }); // Firefox requires preventScroll\n }\n },\n isTargetClicked(event) {\n return this.target && (this.target === event.target || this.target.contains(event.target));\n },\n containerRef(el) {\n this.container = el;\n },\n onOverlayClick(event) {\n OverlayEventBus.emit('overlay-click', {\n originalEvent: event,\n target: this.target\n });\n },\n onOverlayKeydown(event) {\n if (event.code === 'Escape') {\n ConfirmationEventBus.emit('close', this.closeListener);\n focus(this.target);\n }\n },\n getCXOptions(icon, iconProps) {\n return { contenxt: { icon, iconClass: iconProps.class } };\n }\n },\n computed: {\n message() {\n return this.confirmation ? this.confirmation.message : null;\n },\n acceptLabel() {\n if (this.confirmation) {\n const confirmation = this.confirmation;\n\n return confirmation.acceptLabel ? confirmation.acceptLabel : confirmation.acceptProps ? confirmation.acceptProps.label || this.$primevue.config.locale.accept : null;\n }\n\n return null;\n },\n rejectLabel() {\n if (this.confirmation) {\n const confirmation = this.confirmation;\n\n return confirmation.rejectLabel ? confirmation.rejectLabel : confirmation.rejectProps ? confirmation.rejectProps.label || this.$primevue.config.locale.reject : null;\n }\n\n return null;\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 },\n components: {\n Button,\n Portal\n },\n directives: {\n focustrap: FocusTrap\n }\n};\n</script>\n","<template>\n <Portal>\n <transition name=\"p-confirmpopup\" @enter=\"onEnter\" @after-enter=\"onAfterEnter\" @leave=\"onLeave\" @after-leave=\"onAfterLeave\" v-bind=\"ptm('transition')\">\n <div v-if=\"visible\" :ref=\"containerRef\" v-focustrap role=\"alertdialog\" :class=\"cx('root')\" :aria-modal=\"visible\" @click=\"onOverlayClick\" @keydown=\"onOverlayKeydown\" v-bind=\"ptmi('root')\">\n <slot v-if=\"$slots.container\" name=\"container\" :message=\"confirmation\" :acceptCallback=\"accept\" :rejectCallback=\"reject\"></slot>\n <template v-else>\n <template v-if=\"!$slots.message\">\n <div :class=\"cx('content')\" v-bind=\"ptm('content')\">\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')\">{{ confirmation.message }}</span>\n </div>\n </template>\n <component v-else :is=\"$slots.message\" :message=\"confirmation\"></component>\n <div :class=\"cx('footer')\" v-bind=\"ptm('footer')\">\n <Button\n :class=\"[cx('pcRejectButton'), confirmation.rejectClass]\"\n :autofocus=\"autoFocusReject\"\n :unstyled=\"unstyled\"\n :size=\"confirmation.rejectProps?.size || 'small'\"\n :text=\"confirmation.rejectProps?.text || false\"\n @click=\"reject()\"\n @keydown=\"onRejectKeydown\"\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\n :class=\"[cx('pcAcceptButton'), confirmation.acceptClass]\"\n :autofocus=\"autoFocusAccept\"\n :unstyled=\"unstyled\"\n :size=\"confirmation.acceptProps?.size || 'small'\"\n @click=\"accept()\"\n @keydown=\"onAcceptKeydown\"\n v-bind=\"confirmation.acceptProps\"\n :label=\"acceptLabel\"\n :pt=\"ptm('pcAcceptButton')\"\n >\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 </div>\n </template>\n </div>\n </transition>\n </Portal>\n</template>\n\n<script>\nimport { ConnectedOverlayScrollHandler } from '@primevue/core/utils';\nimport { focus, absolutePosition, getOffset, addClass, isTouchDevice } from '@primeuix/utils/dom';\nimport { ZIndex } from '@primeuix/utils/zindex';\nimport { $dt } from '@primeuix/styled';\nimport Button from 'primevue/button';\nimport ConfirmationEventBus from 'primevue/confirmationeventbus';\nimport FocusTrap from 'primevue/focustrap';\nimport OverlayEventBus from 'primevue/overlayeventbus';\nimport Portal from 'primevue/portal';\nimport BaseConfirmPopup from './BaseConfirmPopup.vue';\n\nexport default {\n name: 'ConfirmPopup',\n extends: BaseConfirmPopup,\n inheritAttrs: false,\n data() {\n return {\n visible: false,\n confirmation: null,\n autoFocusAccept: null,\n autoFocusReject: null\n };\n },\n target: null,\n outsideClickListener: null,\n scrollHandler: null,\n resizeListener: null,\n container: null,\n confirmListener: null,\n closeListener: null,\n mounted() {\n this.confirmListener = (options) => {\n if (!options) {\n return;\n }\n\n if (options.group === this.group) {\n this.confirmation = options;\n this.target = options.target;\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 this.unbindOutsideClickListener();\n\n if (this.scrollHandler) {\n this.scrollHandler.destroy();\n this.scrollHandler = null;\n }\n\n this.unbindResizeListener();\n\n if (this.container) {\n ZIndex.clear(this.container);\n this.container = null;\n }\n\n this.target = null;\n this.confirmation = null;\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 onAcceptKeydown(event) {\n if (event.code === 'Space' || event.code === 'Enter' || event.code === 'NumpadEnter') {\n this.accept();\n focus(this.target);\n event.preventDefault();\n }\n },\n onRejectKeydown(event) {\n if (event.code === 'Space' || event.code === 'Enter' || event.code === 'NumpadEnter') {\n this.reject();\n focus(this.target);\n event.preventDefault();\n }\n },\n onEnter(el) {\n this.autoFocusAccept = this.confirmation.defaultFocus === undefined || this.confirmation.defaultFocus === 'accept' ? true : false;\n this.autoFocusReject = this.confirmation.defaultFocus === 'reject' ? true : false;\n\n this.bindOutsideClickListener();\n this.bindScrollListener();\n this.bindResizeListener();\n\n ZIndex.set('overlay', el, this.$primevue.config.zIndex.overlay);\n },\n onAfterEnter() {\n this.focus();\n },\n onLeave() {\n this.autoFocusAccept = null;\n this.autoFocusReject = null;\n\n this.unbindOutsideClickListener();\n this.unbindScrollListener();\n this.unbindResizeListener();\n },\n onAfterLeave(el) {\n ZIndex.clear(el);\n },\n alignOverlay() {\n absolutePosition(this.container, this.target, false);\n\n const containerOffset = getOffset(this.container);\n const targetOffset = getOffset(this.target);\n let arrowLeft = 0;\n\n if (containerOffset.left < targetOffset.left) {\n arrowLeft = targetOffset.left - containerOffset.left;\n }\n\n this.container.style.setProperty($dt('overlay.arrow.left').name, `${arrowLeft}px`);\n\n if (containerOffset.top < targetOffset.top) {\n this.container.setAttribute('data-p-confirmpopup-flipped', 'true');\n !this.isUnstyled && addClass(this.container, 'p-confirmpopup-flipped');\n }\n },\n bindOutsideClickListener() {\n if (!this.outsideClickListener) {\n this.outsideClickListener = (event) => {\n if (this.visible && this.container && !this.container.contains(event.target) && !this.isTargetClicked(event)) {\n if (this.confirmation.onHide) {\n this.confirmation.onHide();\n }\n\n this.visible = false;\n } else {\n this.alignOverlay();\n }\n };\n\n document.addEventListener('click', this.outsideClickListener);\n }\n },\n unbindOutsideClickListener() {\n if (this.outsideClickListener) {\n document.removeEventListener('click', this.outsideClickListener);\n this.outsideClickListener = null;\n }\n },\n bindScrollListener() {\n if (!this.scrollHandler) {\n this.scrollHandler = new ConnectedOverlayScrollHandler(this.target, () => {\n if (this.visible) {\n this.visible = false;\n }\n });\n }\n\n this.scrollHandler.bindScrollListener();\n },\n unbindScrollListener() {\n if (this.scrollHandler) {\n this.scrollHandler.unbindScrollListener();\n }\n },\n bindResizeListener() {\n if (!this.resizeListener) {\n this.resizeListener = () => {\n if (this.visible && !isTouchDevice()) {\n this.visible = false;\n }\n };\n\n window.addEventListener('resize', this.resizeListener);\n }\n },\n unbindResizeListener() {\n if (this.resizeListener) {\n window.removeEventListener('resize', this.resizeListener);\n this.resizeListener = null;\n }\n },\n focus() {\n let focusTarget = this.container.querySelector('[autofocus]');\n\n if (focusTarget) {\n focusTarget.focus({ preventScroll: true }); // Firefox requires preventScroll\n }\n },\n isTargetClicked(event) {\n return this.target && (this.target === event.target || this.target.contains(event.target));\n },\n containerRef(el) {\n this.container = el;\n },\n onOverlayClick(event) {\n OverlayEventBus.emit('overlay-click', {\n originalEvent: event,\n target: this.target\n });\n },\n onOverlayKeydown(event) {\n if (event.code === 'Escape') {\n ConfirmationEventBus.emit('close', this.closeListener);\n focus(this.target);\n }\n },\n getCXOptions(icon, iconProps) {\n return { contenxt: { icon, iconClass: iconProps.class } };\n }\n },\n computed: {\n message() {\n return this.confirmation ? this.confirmation.message : null;\n },\n acceptLabel() {\n if (this.confirmation) {\n const confirmation = this.confirmation;\n\n return confirmation.acceptLabel ? confirmation.acceptLabel : confirmation.acceptProps ? confirmation.acceptProps.label || this.$primevue.config.locale.accept : null;\n }\n\n return null;\n },\n rejectLabel() {\n if (this.confirmation) {\n const confirmation = this.confirmation;\n\n return confirmation.rejectLabel ? confirmation.rejectLabel : confirmation.rejectProps ? confirmation.rejectProps.label || this.$primevue.config.locale.reject : null;\n }\n\n return null;\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 },\n components: {\n Button,\n Portal\n },\n directives: {\n focustrap: FocusTrap\n }\n};\n</script>\n"],"names":["name","BaseComponent","props","group","String","style","ConfirmPopupStyle","provide","$pcConfirmPopup","$parentInstance","BaseConfirmPopup","inheritAttrs","data","visible","confirmation","autoFocusAccept","autoFocusReject","target","outsideClickListener","scrollHandler","resizeListener","container","confirmListener","closeListener","mounted","_this","options","onShow","ConfirmationEventBus","on","beforeUnmount","off","unbindOutsideClickListener","destroy","unbindResizeListener","ZIndex","clear","methods","accept","reject","onHide","onAcceptKeydown","event","code","focus","preventDefault","onRejectKeydown","onEnter","el","defaultFocus","undefined","bindOutsideClickListener","bindScrollListener","bindResizeListener","set","$primevue","config","zIndex","overlay","onAfterEnter","onLeave","unbindScrollListener","onAfterLeave","alignOverlay","absolutePosition","containerOffset","getOffset","targetOffset","arrowLeft","left","setProperty","$dt","concat","top","setAttribute","isUnstyled","addClass","_this2","contains","isTargetClicked","document","addEventListener","removeEventListener","_this3","ConnectedOverlayScrollHandler","_this4","isTouchDevice","window","focusTarget","querySelector","preventScroll","containerRef","onOverlayClick","OverlayEventBus","emit","originalEvent","onOverlayKeydown","getCXOptions","icon","iconProps","contenxt","iconClass","computed","message","acceptLabel","acceptProps","label","locale","rejectLabel","rejectProps","acceptIcon","_this$confirmation","rejectIcon","_this$confirmation2","components","Button","Portal","directives","focustrap","FocusTrap","_createBlock","_component_Portal","_createVNode","_Transition","_mergeProps","$options","_ctx","ptm","_$data$confirmation$r","_$data$confirmation$r2","_$data$confirmation$a","$data","_withDirectives","_openBlock","_createElementBlock","ref","role","cx","onClick","apply","arguments","onKeydown","ptmi","$slots","_renderSlot","acceptCallback","rejectCallback","_Fragment","key","_resolveDynamicComponent","_createElementVNode","_toDisplayString","_component_Button","rejectClass","autofocus","unstyled","size","text","pt","rejecticon","fn","_withCtx","acceptClass","accepticon"],"mappings":";;;;;;;;;;;;;AAIA,eAAe;AACXA,EAAAA,IAAI,EAAE,kBAAkB;AACxB,EAAA,SAAA,EAASC,aAAa;AACtBC,EAAAA,KAAK,EAAE;AACHC,IAAAA,KAAK,EAAEC,MAAAA;GACV;AACDC,EAAAA,KAAK,EAAEC,iBAAiB;EACxBC,OAAO,EAAA,SAAAA,UAAG;IACN,OAAO;AACHC,MAAAA,eAAe,EAAE,IAAI;AACrBC,MA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Popup.vue","../../src/confirmpopup/ConfirmPopup.vue","../../src/confirmpopup/ConfirmPopup.vue?vue&type=template&id=0f311866&lang.js"],"sourcesContent":["<script>\nimport BaseComponent from '@primevue/core/basecomponent';\nimport ConfirmPopupStyle from 'primevue/confirmpopup/style';\n\nexport default {\n name: 'BaseConfirmPopup',\n extends: BaseComponent,\n props: {\n group: String\n },\n style: ConfirmPopupStyle,\n provide() {\n return {\n $pcConfirmPopup: this,\n $parentInstance: this\n };\n }\n};\n</script>\n","<template>\n <Portal>\n <transition name=\"p-confirmpopup\" @enter=\"onEnter\" @after-enter=\"onAfterEnter\" @leave=\"onLeave\" @after-leave=\"onAfterLeave\" v-bind=\"ptm('transition')\">\n <div v-if=\"visible\" :ref=\"containerRef\" v-focustrap role=\"alertdialog\" :class=\"cx('root')\" :aria-modal=\"visible\" @click=\"onOverlayClick\" @keydown=\"onOverlayKeydown\" v-bind=\"ptmi('root')\">\n <slot v-if=\"$slots.container\" name=\"container\" :message=\"confirmation\" :acceptCallback=\"accept\" :rejectCallback=\"reject\"></slot>\n <template v-else>\n <template v-if=\"!$slots.message\">\n <div :class=\"cx('content')\" v-bind=\"ptm('content')\">\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')\">{{ confirmation.message }}</span>\n </div>\n </template>\n <component v-else :is=\"$slots.message\" :message=\"confirmation\"></component>\n <div :class=\"cx('footer')\" v-bind=\"ptm('footer')\">\n <Button\n :class=\"[cx('pcRejectButton'), confirmation.rejectClass]\"\n :autofocus=\"autoFocusReject\"\n :unstyled=\"unstyled\"\n :size=\"confirmation.rejectProps?.size || 'small'\"\n :text=\"confirmation.rejectProps?.text || false\"\n @click=\"reject()\"\n @keydown=\"onRejectKeydown\"\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\n :class=\"[cx('pcAcceptButton'), confirmation.acceptClass]\"\n :autofocus=\"autoFocusAccept\"\n :unstyled=\"unstyled\"\n :size=\"confirmation.acceptProps?.size || 'small'\"\n @click=\"accept()\"\n @keydown=\"onAcceptKeydown\"\n v-bind=\"confirmation.acceptProps\"\n :label=\"acceptLabel\"\n :pt=\"ptm('pcAcceptButton')\"\n >\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 </div>\n </template>\n </div>\n </transition>\n </Portal>\n</template>\n\n<script>\nimport { $dt } from '@primeuix/styled';\nimport { absolutePosition, addClass, focus, getOffset, isTouchDevice } from '@primeuix/utils/dom';\nimport { ZIndex } from '@primeuix/utils/zindex';\nimport { ConnectedOverlayScrollHandler } from '@primevue/core/utils';\nimport Button from 'primevue/button';\nimport ConfirmationEventBus from 'primevue/confirmationeventbus';\nimport FocusTrap from 'primevue/focustrap';\nimport OverlayEventBus from 'primevue/overlayeventbus';\nimport Portal from 'primevue/portal';\nimport BaseConfirmPopup from './BaseConfirmPopup.vue';\n\nexport default {\n name: 'ConfirmPopup',\n extends: BaseConfirmPopup,\n inheritAttrs: false,\n data() {\n return {\n visible: false,\n confirmation: null,\n autoFocusAccept: null,\n autoFocusReject: null\n };\n },\n target: null,\n outsideClickListener: null,\n scrollHandler: null,\n resizeListener: null,\n container: null,\n confirmListener: null,\n closeListener: null,\n mounted() {\n this.confirmListener = (options) => {\n if (!options) {\n return;\n }\n\n if (options.group === this.group) {\n this.confirmation = options;\n this.target = options.target;\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 this.unbindOutsideClickListener();\n\n if (this.scrollHandler) {\n this.scrollHandler.destroy();\n this.scrollHandler = null;\n }\n\n this.unbindResizeListener();\n\n if (this.container) {\n ZIndex.clear(this.container);\n this.container = null;\n }\n\n this.target = null;\n this.confirmation = null;\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 onAcceptKeydown(event) {\n if (event.code === 'Space' || event.code === 'Enter' || event.code === 'NumpadEnter') {\n this.accept();\n focus(this.target);\n event.preventDefault();\n }\n },\n onRejectKeydown(event) {\n if (event.code === 'Space' || event.code === 'Enter' || event.code === 'NumpadEnter') {\n this.reject();\n focus(this.target);\n event.preventDefault();\n }\n },\n onEnter(el) {\n this.autoFocusAccept = this.confirmation.defaultFocus === undefined || this.confirmation.defaultFocus === 'accept' ? true : false;\n this.autoFocusReject = this.confirmation.defaultFocus === 'reject' ? true : false;\n\n this.bindOutsideClickListener();\n this.bindScrollListener();\n this.bindResizeListener();\n\n ZIndex.set('overlay', el, this.$primevue.config.zIndex.overlay);\n },\n onAfterEnter() {\n this.focus();\n },\n onLeave() {\n this.autoFocusAccept = null;\n this.autoFocusReject = null;\n\n this.unbindOutsideClickListener();\n this.unbindScrollListener();\n this.unbindResizeListener();\n },\n onAfterLeave(el) {\n ZIndex.clear(el);\n },\n alignOverlay() {\n absolutePosition(this.container, this.target, false);\n\n const containerOffset = getOffset(this.container);\n const targetOffset = getOffset(this.target);\n let arrowLeft = 0;\n\n if (containerOffset.left < targetOffset.left) {\n arrowLeft = targetOffset.left - containerOffset.left;\n }\n\n this.container.style.setProperty($dt('overlay.arrow.left').name, `${arrowLeft}px`);\n\n if (containerOffset.top < targetOffset.top) {\n this.container.setAttribute('data-p-confirmpopup-flipped', 'true');\n !this.isUnstyled && addClass(this.container, 'p-confirmpopup-flipped');\n }\n },\n bindOutsideClickListener() {\n if (!this.outsideClickListener) {\n this.outsideClickListener = (event) => {\n if (this.visible && this.container && !this.container.contains(event.target) && !this.isTargetClicked(event)) {\n if (this.confirmation.onHide) {\n this.confirmation.onHide();\n }\n\n this.visible = false;\n } else {\n this.alignOverlay();\n }\n };\n\n document.addEventListener('click', this.outsideClickListener);\n }\n },\n unbindOutsideClickListener() {\n if (this.outsideClickListener) {\n document.removeEventListener('click', this.outsideClickListener);\n this.outsideClickListener = null;\n }\n },\n bindScrollListener() {\n if (!this.scrollHandler) {\n this.scrollHandler = new ConnectedOverlayScrollHandler(this.target, () => {\n if (this.visible) {\n this.visible = false;\n }\n });\n }\n\n this.scrollHandler.bindScrollListener();\n },\n unbindScrollListener() {\n if (this.scrollHandler) {\n this.scrollHandler.unbindScrollListener();\n }\n },\n bindResizeListener() {\n if (!this.resizeListener) {\n this.resizeListener = () => {\n if (this.visible && !isTouchDevice()) {\n this.visible = false;\n }\n };\n\n window.addEventListener('resize', this.resizeListener);\n }\n },\n unbindResizeListener() {\n if (this.resizeListener) {\n window.removeEventListener('resize', this.resizeListener);\n this.resizeListener = null;\n }\n },\n focus() {\n let focusTarget = this.container.querySelector('[autofocus]');\n\n if (focusTarget) {\n focusTarget.focus({ preventScroll: true }); // Firefox requires preventScroll\n }\n },\n isTargetClicked(event) {\n return this.target && (this.target === event.target || this.target.contains(event.target));\n },\n containerRef(el) {\n this.container = el;\n },\n onOverlayClick(event) {\n OverlayEventBus.emit('overlay-click', {\n originalEvent: event,\n target: this.target\n });\n },\n onOverlayKeydown(event) {\n if (event.code === 'Escape') {\n ConfirmationEventBus.emit('close', this.closeListener);\n focus(this.target);\n }\n }\n },\n computed: {\n message() {\n return this.confirmation ? this.confirmation.message : 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 },\n components: {\n Button,\n Portal\n },\n directives: {\n focustrap: FocusTrap\n }\n};\n</script>\n","<template>\n <Portal>\n <transition name=\"p-confirmpopup\" @enter=\"onEnter\" @after-enter=\"onAfterEnter\" @leave=\"onLeave\" @after-leave=\"onAfterLeave\" v-bind=\"ptm('transition')\">\n <div v-if=\"visible\" :ref=\"containerRef\" v-focustrap role=\"alertdialog\" :class=\"cx('root')\" :aria-modal=\"visible\" @click=\"onOverlayClick\" @keydown=\"onOverlayKeydown\" v-bind=\"ptmi('root')\">\n <slot v-if=\"$slots.container\" name=\"container\" :message=\"confirmation\" :acceptCallback=\"accept\" :rejectCallback=\"reject\"></slot>\n <template v-else>\n <template v-if=\"!$slots.message\">\n <div :class=\"cx('content')\" v-bind=\"ptm('content')\">\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')\">{{ confirmation.message }}</span>\n </div>\n </template>\n <component v-else :is=\"$slots.message\" :message=\"confirmation\"></component>\n <div :class=\"cx('footer')\" v-bind=\"ptm('footer')\">\n <Button\n :class=\"[cx('pcRejectButton'), confirmation.rejectClass]\"\n :autofocus=\"autoFocusReject\"\n :unstyled=\"unstyled\"\n :size=\"confirmation.rejectProps?.size || 'small'\"\n :text=\"confirmation.rejectProps?.text || false\"\n @click=\"reject()\"\n @keydown=\"onRejectKeydown\"\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\n :class=\"[cx('pcAcceptButton'), confirmation.acceptClass]\"\n :autofocus=\"autoFocusAccept\"\n :unstyled=\"unstyled\"\n :size=\"confirmation.acceptProps?.size || 'small'\"\n @click=\"accept()\"\n @keydown=\"onAcceptKeydown\"\n v-bind=\"confirmation.acceptProps\"\n :label=\"acceptLabel\"\n :pt=\"ptm('pcAcceptButton')\"\n >\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 </div>\n </template>\n </div>\n </transition>\n </Portal>\n</template>\n\n<script>\nimport { $dt } from '@primeuix/styled';\nimport { absolutePosition, addClass, focus, getOffset, isTouchDevice } from '@primeuix/utils/dom';\nimport { ZIndex } from '@primeuix/utils/zindex';\nimport { ConnectedOverlayScrollHandler } from '@primevue/core/utils';\nimport Button from 'primevue/button';\nimport ConfirmationEventBus from 'primevue/confirmationeventbus';\nimport FocusTrap from 'primevue/focustrap';\nimport OverlayEventBus from 'primevue/overlayeventbus';\nimport Portal from 'primevue/portal';\nimport BaseConfirmPopup from './BaseConfirmPopup.vue';\n\nexport default {\n name: 'ConfirmPopup',\n extends: BaseConfirmPopup,\n inheritAttrs: false,\n data() {\n return {\n visible: false,\n confirmation: null,\n autoFocusAccept: null,\n autoFocusReject: null\n };\n },\n target: null,\n outsideClickListener: null,\n scrollHandler: null,\n resizeListener: null,\n container: null,\n confirmListener: null,\n closeListener: null,\n mounted() {\n this.confirmListener = (options) => {\n if (!options) {\n return;\n }\n\n if (options.group === this.group) {\n this.confirmation = options;\n this.target = options.target;\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 this.unbindOutsideClickListener();\n\n if (this.scrollHandler) {\n this.scrollHandler.destroy();\n this.scrollHandler = null;\n }\n\n this.unbindResizeListener();\n\n if (this.container) {\n ZIndex.clear(this.container);\n this.container = null;\n }\n\n this.target = null;\n this.confirmation = null;\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 onAcceptKeydown(event) {\n if (event.code === 'Space' || event.code === 'Enter' || event.code === 'NumpadEnter') {\n this.accept();\n focus(this.target);\n event.preventDefault();\n }\n },\n onRejectKeydown(event) {\n if (event.code === 'Space' || event.code === 'Enter' || event.code === 'NumpadEnter') {\n this.reject();\n focus(this.target);\n event.preventDefault();\n }\n },\n onEnter(el) {\n this.autoFocusAccept = this.confirmation.defaultFocus === undefined || this.confirmation.defaultFocus === 'accept' ? true : false;\n this.autoFocusReject = this.confirmation.defaultFocus === 'reject' ? true : false;\n\n this.bindOutsideClickListener();\n this.bindScrollListener();\n this.bindResizeListener();\n\n ZIndex.set('overlay', el, this.$primevue.config.zIndex.overlay);\n },\n onAfterEnter() {\n this.focus();\n },\n onLeave() {\n this.autoFocusAccept = null;\n this.autoFocusReject = null;\n\n this.unbindOutsideClickListener();\n this.unbindScrollListener();\n this.unbindResizeListener();\n },\n onAfterLeave(el) {\n ZIndex.clear(el);\n },\n alignOverlay() {\n absolutePosition(this.container, this.target, false);\n\n const containerOffset = getOffset(this.container);\n const targetOffset = getOffset(this.target);\n let arrowLeft = 0;\n\n if (containerOffset.left < targetOffset.left) {\n arrowLeft = targetOffset.left - containerOffset.left;\n }\n\n this.container.style.setProperty($dt('overlay.arrow.left').name, `${arrowLeft}px`);\n\n if (containerOffset.top < targetOffset.top) {\n this.container.setAttribute('data-p-confirmpopup-flipped', 'true');\n !this.isUnstyled && addClass(this.container, 'p-confirmpopup-flipped');\n }\n },\n bindOutsideClickListener() {\n if (!this.outsideClickListener) {\n this.outsideClickListener = (event) => {\n if (this.visible && this.container && !this.container.contains(event.target) && !this.isTargetClicked(event)) {\n if (this.confirmation.onHide) {\n this.confirmation.onHide();\n }\n\n this.visible = false;\n } else {\n this.alignOverlay();\n }\n };\n\n document.addEventListener('click', this.outsideClickListener);\n }\n },\n unbindOutsideClickListener() {\n if (this.outsideClickListener) {\n document.removeEventListener('click', this.outsideClickListener);\n this.outsideClickListener = null;\n }\n },\n bindScrollListener() {\n if (!this.scrollHandler) {\n this.scrollHandler = new ConnectedOverlayScrollHandler(this.target, () => {\n if (this.visible) {\n this.visible = false;\n }\n });\n }\n\n this.scrollHandler.bindScrollListener();\n },\n unbindScrollListener() {\n if (this.scrollHandler) {\n this.scrollHandler.unbindScrollListener();\n }\n },\n bindResizeListener() {\n if (!this.resizeListener) {\n this.resizeListener = () => {\n if (this.visible && !isTouchDevice()) {\n this.visible = false;\n }\n };\n\n window.addEventListener('resize', this.resizeListener);\n }\n },\n unbindResizeListener() {\n if (this.resizeListener) {\n window.removeEventListener('resize', this.resizeListener);\n this.resizeListener = null;\n }\n },\n focus() {\n let focusTarget = this.container.querySelector('[autofocus]');\n\n if (focusTarget) {\n focusTarget.focus({ preventScroll: true }); // Firefox requires preventScroll\n }\n },\n isTargetClicked(event) {\n return this.target && (this.target === event.target || this.target.contains(event.target));\n },\n containerRef(el) {\n this.container = el;\n },\n onOverlayClick(event) {\n OverlayEventBus.emit('overlay-click', {\n originalEvent: event,\n target: this.target\n });\n },\n onOverlayKeydown(event) {\n if (event.code === 'Escape') {\n ConfirmationEventBus.emit('close', this.closeListener);\n focus(this.target);\n }\n }\n },\n computed: {\n message() {\n return this.confirmation ? this.confirmation.message : 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 },\n components: {\n Button,\n Portal\n },\n directives: {\n focustrap: FocusTrap\n }\n};\n</script>\n"],"names":["name","BaseComponent","props","group","String","style","ConfirmPopupStyle","provide","$pcConfirmPopup","$parentInstance","BaseConfirmPopup","inheritAttrs","data","visible","confirmation","autoFocusAccept","autoFocusReject","target","outsideClickListener","scrollHandler","resizeListener","container","confirmListener","closeListener","mounted","_this","options","onShow","ConfirmationEventBus","on","beforeUnmount","off","unbindOutsideClickListener","destroy","unbindResizeListener","ZIndex","clear","methods","accept","reject","onHide","onAcceptKeydown","event","code","focus","preventDefault","onRejectKeydown","onEnter","el","defaultFocus","undefined","bindOutsideClickListener","bindScrollListener","bindResizeListener","set","$primevue","config","zIndex","overlay","onAfterEnter","onLeave","unbindScrollListener","onAfterLeave","alignOverlay","absolutePosition","containerOffset","getOffset","targetOffset","arrowLeft","left","setProperty","$dt","concat","top","setAttribute","isUnstyled","addClass","_this2","contains","isTargetClicked","document","addEventListener","removeEventListener","_this3","ConnectedOverlayScrollHandler","_this4","isTouchDevice","window","focusTarget","querySelector","preventScroll","containerRef","onOverlayClick","OverlayEventBus","emit","originalEvent","onOverlayKeydown","computed","message","acceptLabel","_confirmation$acceptP","acceptProps","label","locale","rejectLabel","_confirmation$rejectP","rejectProps","acceptIcon","_this$confirmation","icon","rejectIcon","_this$confirmation2","components","Button","Portal","directives","focustrap","FocusTrap","_createBlock","_component_Portal","_createVNode","_Transition","_mergeProps","$options","_ctx","ptm","_$data$confirmation$r","_$data$confirmation$r2","_$data$confirmation$a","$data","_withDirectives","_openBlock","_createElementBlock","ref","role","cx","onClick","apply","arguments","onKeydown","ptmi","$slots","_renderSlot","acceptCallback","rejectCallback","_Fragment","key","_resolveDynamicComponent","_createElementVNode","_toDisplayString","_component_Button","rejectClass","autofocus","unstyled","size","text","pt","rejecticon","fn","_withCtx","iconProps","acceptClass","accepticon"],"mappings":";;;;;;;;;;;;;AAIA,eAAe;AACXA,EAAAA,IAAI,EAAE,kBAAkB;AACxB,EAAA,SAAA,EAASC,aAAa;AACtBC,EAAAA,KAAK,EAAE;AACHC,IAAAA,KAAK,EAAEC,MAAAA;GACV;AACDC,EAAAA,KAAK,EAAEC,iBAAiB;EACxBC,OAAO,EAAA,SAAAA,UAAG;IACN,OAAO;AACHC,MAAAA,eAAe,EAAE,IAAI;AACrBC,MAAA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AriaLabel"
89
89
  :unstyled="unstyled"
90
90
  @click="onRowEditInit"
91
- v-bind="{ ...getColumnPT('pcRowEditorInit'), ...editButtonProps.init }"
91
+ v-bind="editButtonProps.init"
92
+ :pt="getColumnPT('pcRowEditorInit')"
92
93
  data-pc-group-section="rowactionbutton"
93
94
  >
94
95
  <template #icon="slotProps">
@@ -101,7 +102,8 @@
101
102
  :aria-label="saveButtonAriaLabel"
102
103
  :unstyled="unstyled"
103
104
  @click="onRowEditSave"
104
- v-bind="{ ...getColumnPT('pcRowEditorSave'), ...editButtonProps.save }"
105
+ v-bind="editButtonProps.save"
106
+ :pt="getColumnPT('pcRowEditorSave')"
105
107
  data-pc-group-section="rowactionbutton"
106
108
  >
107
109
  <template #icon="slotProps">
@@ -114,7 +116,8 @@
114
116
  :aria-label="cancelButtonAriaLabel"
115
117
  :unstyled="unstyled"
116
118
  @click="onRowEditCancel"
117
- v-bind="{ ...getColumnPT('pcRowEditorCancel'), ...editButtonProps.cancel }"
119
+ v-bind="editButtonProps.cancel"
120
+ :pt="getColumnPT('pcRowEditorCancel')"
118
121
  data-pc-group-section="rowactionbutton"
119
122
  >
120
123
  <template #icon="slotProps">
@@ -127,10 +130,10 @@
127
130
  </template>
128
131
 
129
132
  <script>
133
+ import { getAttribute, getFirstFocusableElement, getNextElementSibling, getOuterWidth, getPreviousElementSibling, invokeElementMethod } from '@primeuix/utils/dom';
134
+ import { resolveFieldData } from '@primeuix/utils/object';
130
135
  import BaseComponent from '@primevue/core/basecomponent';
131
136
  import { getVNodeProp } from '@primevue/core/utils';
132
- import { getFirstFocusableElement, invokeElementMethod, getAttribute, getNextElementSibling, getOuterWidth, getPreviousElementSibling } from '@primeuix/utils/dom';
133
- import { resolveFieldData } from '@primeuix/utils/object';
134
137
  import BarsIcon from '@primevue/icons/bars';
135
138
  import CheckIcon from '@primevue/icons/check';
136
139
  import ChevronDownIcon from '@primevue/icons/chevrondown';
@@ -29,7 +29,7 @@
29
29
  <span v-if="columnProp('sortable')" v-bind="getColumnPT('sort')">
30
30
  <component :is="(column.children && column.children.sorticon) || sortableColumnIcon" :sorted="sortState.sorted" :sortOrder="sortState.sortOrder" :class="cx('sortIcon')" v-bind="getColumnPT('sorticon')" />
31
31
  </span>
32
- <Badge v-if="isMultiSorted()" :class="cx('pcSortBadge')" v-bind="getColumnPT('pcSortBadge')" :value="getBadgeValue()" size="small" />
32
+ <Badge v-if="isMultiSorted()" :class="cx('pcSortBadge')" :pt="getColumnPT('pcSortBadge')" :value="getBadgeValue()" size="small" />
33
33
  <DTHeaderCheckbox
34
34
  v-if="columnProp('selectionMode') === 'multiple' && filterDisplay !== 'row'"
35
35
  :checked="allRowsSelected"
@@ -84,9 +84,9 @@
84
84
  </template>
85
85
 
86
86
  <script>
87
+ import { getAttribute, getIndex, getNextElementSibling, getOuterWidth, getPreviousElementSibling } from '@primeuix/utils/dom';
87
88
  import BaseComponent from '@primevue/core/basecomponent';
88
89
  import { getVNodeProp } from '@primevue/core/utils';
89
- import { getAttribute, getNextElementSibling, getOuterWidth, getPreviousElementSibling, getIndex } from '@primeuix/utils/dom';
90
90
  import SortAltIcon from '@primevue/icons/sortalt';
91
91
  import SortAmountDownIcon from '@primevue/icons/sortamountdown';
92
92
  import SortAmountUpAltIcon from '@primevue/icons/sortamountupalt';
@@ -2,7 +2,7 @@
2
2
  <Checkbox :modelValue="checked" :binary="true" :disabled="disabled" :aria-label="headerCheckboxAriaLabel" @change="onChange" :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')" />
5
+ <CheckIcon v-else-if="!headerCheckboxIconTemplate && slotProps.checked" :class="slotProps.class" v-bind="getColumnPT('pcHeaderCheckbox')['icon']" />
6
6
  </template>
7
7
  </Checkbox>
8
8
  </template>
@@ -2,7 +2,7 @@
2
2
  <Checkbox :modelValue="checked" :binary="true" :disabled="$attrs.disabled" :aria-label="checkboxAriaLabel" @change="onChange" :unstyled="unstyled" :pt="getColumnPT('pcRowCheckbox')">
3
3
  <template #icon="slotProps">
4
4
  <component v-if="rowCheckboxIconTemplate" :is="rowCheckboxIconTemplate" :checked="slotProps.checked" :class="slotProps.class" />
5
- <CheckIcon v-else-if="!rowCheckboxIconTemplate && slotProps.checked" :class="slotProps.class" v-bind="getColumnPT('pcRowCheckbox.icon')" />
5
+ <CheckIcon v-else-if="!rowCheckboxIconTemplate && slotProps.checked" :class="slotProps.class" v-bind="getColumnPT('pcRowCheckbox')['icon']" />
6
6
  </template>
7
7
  </Checkbox>
8
8
  </template>