@voicenter-team/voicenter-ui-plus 3.0.3 → 3.0.5

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 (48) hide show
  1. package/README.md +50 -3
  2. package/library/components/VcPluginOverlays/VcPluginOverlays.vue.mjs +29 -4
  3. package/library/components/VcPopover/VcConfirmPopover.vue.mjs +4 -2
  4. package/library/plugin.mjs +177 -168
  5. package/library/plugin.mjs.br +0 -0
  6. package/library/plugin.mjs.gz +0 -0
  7. package/library/types/components/VcAutocomplete/VcAutocomplete.vue.d.ts +6 -6
  8. package/library/types/components/VcButton/VcButton.vue.d.ts +1 -1
  9. package/library/types/components/VcButton/VcButtonIcon.vue.d.ts +2 -2
  10. package/library/types/components/VcButton/VcToggleButton.vue.d.ts +1 -1
  11. package/library/types/components/VcCheckbox/VcCheckbox.vue.d.ts +3 -3
  12. package/library/types/components/VcColorPicker/VcColorPicker.vue.d.ts +1 -1
  13. package/library/types/components/VcDatePicker/VcDatePicker.vue.d.ts +6 -6
  14. package/library/types/components/VcDatePickerPanel/VcDatePickerPanel.vue.d.ts +3 -3
  15. package/library/types/components/VcDropdown/VcDropdown.vue.d.ts +1 -1
  16. package/library/types/components/VcExtendedDatetimeRangePicker/ExtendedDatetimeRangePickerPart.vue.d.ts +1 -1
  17. package/library/types/components/VcExtendedDatetimeRangePicker/ExtendedDatetimeRangePickerRelative.vue.d.ts +1 -1
  18. package/library/types/components/VcExtendedDatetimeRangePicker/VcExtendedDatetimeRangePicker.vue.d.ts +2 -2
  19. package/library/types/components/VcFileUploader/VcFileUploader.vue.d.ts +1 -1
  20. package/library/types/components/VcForm/VcForm.vue.d.ts +1 -1
  21. package/library/types/components/VcHyperLink/VcHyperLink.vue.d.ts +1 -1
  22. package/library/types/components/VcImageUploader/VcImageUploader.vue.d.ts +1 -1
  23. package/library/types/components/VcInput/VcInput.vue.d.ts +1 -1
  24. package/library/types/components/VcOtpInput/VcOtpInput.vue.d.ts +1 -1
  25. package/library/types/components/VcPagination/VcPaginationButton.vue.d.ts +2 -2
  26. package/library/types/components/VcPhoneInput/VcPhoneInput.vue.d.ts +1 -1
  27. package/library/types/components/VcPluginOverlays/VcPluginOverlays.vue.d.ts +32 -1
  28. package/library/types/components/VcPopover/VcConfirmPopover.vue.d.ts +9 -1
  29. package/library/types/components/VcRadio/VcRadio.vue.d.ts +3 -3
  30. package/library/types/components/VcRadioButtons/VcRadioButtonsGroup.vue.d.ts +6 -6
  31. package/library/types/components/VcRadioGroup/VcRadioGroup.vue.d.ts +3 -3
  32. package/library/types/components/VcSegmented/VcSegmented.vue.d.ts +6 -6
  33. package/library/types/components/VcSelect/VcInfiniteScrollSelect.vue.d.ts +6 -6
  34. package/library/types/components/VcSelect/VcSelect.vue.d.ts +6 -6
  35. package/library/types/components/VcSelect/VcSelectGrouped.vue.d.ts +6 -6
  36. package/library/types/components/VcSplitButton/VcSplitButton.vue.d.ts +2 -2
  37. package/library/types/components/VcSwitch/VcSwitch.vue.d.ts +3 -3
  38. package/library/types/components/VcTag/VcTag.vue.d.ts +1 -1
  39. package/library/types/components/VcTagInput/VcTagInput.vue.d.ts +3 -3
  40. package/library/types/components/VcTimeInput/VcTimeInput.vue.d.ts +1 -1
  41. package/library/types/components/VcTree/VcTree.vue.d.ts +6 -6
  42. package/library/types/components/VcTree/VcTreeSelect.vue.d.ts +6 -6
  43. package/library/types/types/Entry.types.d.ts +23 -0
  44. package/library/types/types/Overlay.types.d.ts +22 -0
  45. package/library/types/types/index.d.ts +1 -0
  46. package/library/types/utils/mountPluginOverlays.d.ts +9 -3
  47. package/library/utils/mountPluginOverlays.mjs +12 -10
  48. package/package.json +1 -1
package/README.md CHANGED
@@ -66,20 +66,67 @@ import { VcButton, VcInput } from '@voicenter-team/voicenter-ui-plus'
66
66
  ```
67
67
  Bundlers drop unused components and their CSS. A consumer importing only `VcButton` ships ~50–150 KB JS + ~10–30 KB CSS.
68
68
 
69
+ If you use `useConfirmModal`, `useConfirmPopup`, or `NotifyService`, mount global overlays in `App.vue`:
70
+
71
+ ```vue
72
+ <script setup lang="ts">
73
+ import { VcPluginOverlays } from '@voicenter-team/voicenter-ui-plus'
74
+ </script>
75
+
76
+ <template>
77
+ <RouterView />
78
+ <VcPluginOverlays />
79
+ </template>
80
+ ```
81
+
69
82
  ### Plugin mode (global registration)
70
83
  ```ts
71
84
  import VoicenterUI from '@voicenter-team/voicenter-ui-plus/plugin'
72
85
  import '@voicenter-team/voicenter-ui-plus/style.css'
73
86
 
87
+ // Overlay composables can be imported from the same entry:
88
+ // import { useConfirmModal, useConfirmPopup, VcPluginOverlays } from '@voicenter-team/voicenter-ui-plus/plugin'
89
+
74
90
  app.use(VoicenterUI, {
75
91
  themeConfig, // theme config (see below)
76
92
  lang: 'en', // localization
77
93
  injectIconFont: true // inject icon-font <link> tags into <head>
78
94
  })
79
- // Confirm modals/popovers and toast notifications are mounted automatically.
80
- // To mount them yourself instead, pass `mountOverlays: false` and add
81
- // `<VcPluginOverlays />` to App.vue (also exported for tree-shake mode).
95
+ // Confirm modals/popovers/notifications: auto-mounted via VcPluginOverlays
96
+ // (mountOverlays: true by default). Opt out with mountOverlays: false and
97
+ // add <VcPluginOverlays /> to App.vue also registered globally by the plugin.
98
+ ```
99
+
100
+ ### Global overlays
101
+
102
+ Several APIs are **state-only** — they update global reactive singletons but do not render UI by themselves:
103
+
104
+ | API | Overlay component |
105
+ |---|---|
106
+ | `useConfirmModal` | `VcConfirmModal` |
107
+ | `useConfirmPopup` | `VcConfirmPopover` |
108
+ | `NotifyService` / `$notify` | `VcNotification` |
109
+
110
+ **Plugin mode:** mounted automatically on `app.use()` (default). Pass `mountOverlays: false` to mount manually.
111
+
112
+ **Notifications:** one top-right host by default. For multiple positions, use `overlayNotifications` in plugin config or mount your own:
113
+
114
+ ```ts
115
+ app.use(VoicenterUI, {
116
+ overlayNotifications: [
117
+ { group: 'top-right', position: 'top-right' },
118
+ { group: 'bottom-right', position: 'bottom-right' },
119
+ ],
120
+ })
121
+ // NotifyService.add({ group: 'bottom-right', ... })
82
122
  ```
123
+
124
+ Or `overlayNotifications: 'none'` and put `<VcNotification />` in App.vue (confirms still auto-mount).
125
+
126
+ **Tree-shake mode:** add `<VcPluginOverlays />` to `App.vue` (bundles confirm hosts; configure via `notifications` prop).
127
+
128
+ Entity components such as `VcEntityListTable` call `useConfirmModal` internally — delete confirmations require overlays to be mounted.
129
+
83
130
  2.1. If you are using tailwind update your `tailwind.config.js` with:
84
131
  ```js
85
132
  const voiceTailwindScheme = require('@voicenter-team/voicenter-ui-plus/src/theme/tailwindScheme')
@@ -1,4 +1,4 @@
1
- import { defineComponent, openBlock, createElementBlock, Fragment, createVNode } from "vue";
1
+ import { defineComponent, computed, openBlock, createElementBlock, Fragment, createBlock, createCommentVNode, renderList, createVNode } from "vue";
2
2
  import _sfc_main$1 from "../VcNotification/VcNotification.vue.mjs";
3
3
  import '../../assets/components/VcPopover/VcConfirmPopover.css';import '../../assets/components/VcNotification/VcNotification.css';/* empty css */
4
4
  import _sfc_main$2 from "../VcModal/VcConfirmModal.vue.mjs";
@@ -6,12 +6,37 @@ import _sfc_main$3 from "../VcPopover/VcConfirmPopover.vue.mjs";
6
6
  /* empty css */
7
7
  const _sfc_main = /* @__PURE__ */ defineComponent({
8
8
  __name: "VcPluginOverlays",
9
+ props: {
10
+ notifications: { default: "default" },
11
+ appendTo: { default: "body" }
12
+ },
9
13
  setup(__props) {
14
+ const props = __props;
15
+ const shouldRenderDefaultNotification = computed(() => {
16
+ return props.notifications === "default";
17
+ });
18
+ const notificationHosts = computed(() => {
19
+ return Array.isArray(props.notifications) ? props.notifications : [];
20
+ });
21
+ function notificationHostKey(item, index) {
22
+ return item.group ?? item.position ?? String(index);
23
+ }
10
24
  return (_ctx, _cache) => {
11
25
  return openBlock(), createElementBlock(Fragment, null, [
12
- createVNode(_sfc_main$1),
13
- createVNode(_sfc_main$2),
14
- createVNode(_sfc_main$3)
26
+ shouldRenderDefaultNotification.value ? (openBlock(), createBlock(_sfc_main$1, {
27
+ key: 0,
28
+ "teleported-to": __props.appendTo
29
+ }, null, 8, ["teleported-to"])) : createCommentVNode("", true),
30
+ (openBlock(true), createElementBlock(Fragment, null, renderList(notificationHosts.value, (item, index) => {
31
+ return openBlock(), createBlock(_sfc_main$1, {
32
+ key: notificationHostKey(item, index),
33
+ group: item.group,
34
+ position: item.position,
35
+ "teleported-to": __props.appendTo
36
+ }, null, 8, ["group", "position", "teleported-to"]);
37
+ }), 128)),
38
+ createVNode(_sfc_main$2, { "append-to": __props.appendTo }, null, 8, ["append-to"]),
39
+ createVNode(_sfc_main$3, { "append-to": __props.appendTo }, null, 8, ["append-to"])
15
40
  ], 64);
16
41
  };
17
42
  }
@@ -21,7 +21,8 @@ const DEFAULT_PLACEMENT = "bottom-start";
21
21
  const _sfc_main = /* @__PURE__ */ defineComponent({
22
22
  __name: "VcConfirmPopover",
23
23
  props: {
24
- options: { default: () => ({}) }
24
+ options: { default: () => ({}) },
25
+ appendTo: { default: "body" }
25
26
  },
26
27
  emits: ["close", "confirm"],
27
28
  setup(__props, { expose: __expose, emit: __emit }) {
@@ -170,6 +171,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
170
171
  placement: placement.value,
171
172
  "popper-class": [BASE_CLASS, popoverOptions.value.popoverClass].join(" "),
172
173
  teleported: popoverOptions.value.teleported,
174
+ "append-to": __props.appendTo,
173
175
  "gpu-acceleration": false,
174
176
  "stop-popper-mouse-event": popoverOptions.value.mouseEvent,
175
177
  offset: popoverOptions.value.offset,
@@ -233,7 +235,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
233
235
  ])
234
236
  ]),
235
237
  _: 1
236
- }, 8, ["visible", "virtual-ref", "effect", "persistent", "placement", "popper-class", "teleported", "stop-popper-mouse-event", "offset", "hide-after"])) : createCommentVNode("", true);
238
+ }, 8, ["visible", "virtual-ref", "effect", "persistent", "placement", "popper-class", "teleported", "append-to", "stop-popper-mouse-event", "offset", "hide-after"])) : createCommentVNode("", true);
237
239
  };
238
240
  }
239
241
  });
@@ -69,104 +69,104 @@ import _sfc_main$w from "./components/VcPopover/VcPopover.vue.mjs";
69
69
  /* empty css */
70
70
  import _sfc_main$x from "./components/VcPopover/VcConfirmPopover.vue.mjs";
71
71
  /* empty css */
72
- import _sfc_main$y from "./components/VcPopover/VcSelectPopover.vue.mjs";
72
+ import _sfc_main$z from "./components/VcPopover/VcSelectPopover.vue.mjs";
73
73
  /* empty css */
74
- import _sfc_main$z from "./components/VcTabs/VcTabs.vue.mjs";
74
+ import _sfc_main$A from "./components/VcTabs/VcTabs.vue.mjs";
75
75
  /* empty css */
76
- import _sfc_main$A from "./components/VcTabs/VcTabNav.vue.mjs";
76
+ import _sfc_main$B from "./components/VcTabs/VcTabNav.vue.mjs";
77
77
  /* empty css */
78
- import _sfc_main$B from "./components/VcTabs/VcTabPane.vue.mjs";
78
+ import _sfc_main$C from "./components/VcTabs/VcTabPane.vue.mjs";
79
79
  /* empty css */
80
- import _sfc_main$C from "./components/VcVerticalTabs/VcVerticalTabs.vue.mjs";
80
+ import _sfc_main$D from "./components/VcVerticalTabs/VcVerticalTabs.vue.mjs";
81
81
  /* empty css */
82
- import _sfc_main$D from "./components/VcRadioTabs/VcRadioTabs.vue.mjs";
82
+ import _sfc_main$E from "./components/VcRadioTabs/VcRadioTabs.vue.mjs";
83
83
  /* empty css */
84
- import _sfc_main$E from "./components/VcRadioTabs/UiComponents/VcRadioTabsNav.vue.mjs";
84
+ import _sfc_main$F from "./components/VcRadioTabs/UiComponents/VcRadioTabsNav.vue.mjs";
85
85
  /* empty css */
86
- import _sfc_main$F from "./components/VcCollapse/VcCollapse.vue.mjs";
87
- import _sfc_main$G from "./components/VcCollapse/VcCollapseItem.vue.mjs";
86
+ import _sfc_main$G from "./components/VcCollapse/VcCollapse.vue.mjs";
87
+ import _sfc_main$H from "./components/VcCollapse/VcCollapseItem.vue.mjs";
88
88
  /* empty css */
89
- import _sfc_main$H from "./components/VcWizard/VcWizard.vue.mjs";
89
+ import _sfc_main$I from "./components/VcWizard/VcWizard.vue.mjs";
90
90
  /* empty css */
91
- import _sfc_main$I from "./components/VcDropdown/VcDropdown.vue.mjs";
91
+ import _sfc_main$J from "./components/VcDropdown/VcDropdown.vue.mjs";
92
92
  /* empty css */
93
- import _sfc_main$J from "./components/VcDropdown/VcDropdownItem.vue.mjs";
93
+ import _sfc_main$K from "./components/VcDropdown/VcDropdownItem.vue.mjs";
94
94
  /* empty css */
95
- import _sfc_main$K from "./components/VcTable/VcTable.vue.mjs";
95
+ import _sfc_main$L from "./components/VcTable/VcTable.vue.mjs";
96
96
  /* empty css */
97
97
  /* empty css */
98
- import _sfc_main$L from "./components/VcPagination/VcPagination.vue.mjs";
98
+ import _sfc_main$M from "./components/VcPagination/VcPagination.vue.mjs";
99
99
  /* empty css */
100
- import _sfc_main$M from "./components/VcTree/VcTree.vue.mjs";
100
+ import _sfc_main$N from "./components/VcTree/VcTree.vue.mjs";
101
101
  /* empty css */
102
- import _sfc_main$N from "./components/VcTree/VcTreeSelect.vue.mjs";
102
+ import _sfc_main$O from "./components/VcTree/VcTreeSelect.vue.mjs";
103
103
  /* empty css */
104
104
  /* empty css */
105
- import _sfc_main$O from "./components/VcTransfer/VcTransfer.vue.mjs";
105
+ import _sfc_main$P from "./components/VcTransfer/VcTransfer.vue.mjs";
106
106
  /* empty css */
107
- import _sfc_main$P from "./components/VcTag/VcTag.vue.mjs";
107
+ import _sfc_main$Q from "./components/VcTag/VcTag.vue.mjs";
108
108
  /* empty css */
109
- import _sfc_main$Q from "./components/VcDelimitedList/VcDelimitedList.vue.mjs";
109
+ import _sfc_main$R from "./components/VcDelimitedList/VcDelimitedList.vue.mjs";
110
110
  /* empty css */
111
- import _sfc_main$R from "./components/VcSparkline/VcSparkline.vue.mjs";
112
- import _sfc_main$S from "./components/VcViewSwitcher/VcViewSwitcher.vue.mjs";
111
+ import _sfc_main$S from "./components/VcSparkline/VcSparkline.vue.mjs";
112
+ import _sfc_main$T from "./components/VcViewSwitcher/VcViewSwitcher.vue.mjs";
113
113
  /* empty css */
114
- import _sfc_main$T from "./components/VcSegmented/VcSegmented.vue.mjs";
114
+ import _sfc_main$U from "./components/VcSegmented/VcSegmented.vue.mjs";
115
115
  /* empty css */
116
116
  import VcLoading from "./components/VcLoading/VcLoading.vue.mjs";
117
- import _sfc_main$U from "./components/VcProgress/VcProgress.vue.mjs";
117
+ import _sfc_main$V from "./components/VcProgress/VcProgress.vue.mjs";
118
118
  /* empty css */
119
- import _sfc_main$V from "./components/VcProgress/VcProgressCircular.vue.mjs";
119
+ import _sfc_main$W from "./components/VcProgress/VcProgressCircular.vue.mjs";
120
120
  /* empty css */
121
- import _sfc_main$W from "./components/VcSkeletonLoader/VcSkeletonLoader.vue.mjs";
122
- import _sfc_main$X from "./components/VcNotification/VcNotification.vue.mjs";
121
+ import _sfc_main$X from "./components/VcSkeletonLoader/VcSkeletonLoader.vue.mjs";
122
+ import _sfc_main$Y from "./components/VcNotification/VcNotification.vue.mjs";
123
123
  /* empty css */
124
- import _sfc_main$Y from "./components/VcForm/VcForm.vue.mjs";
125
- import _sfc_main$Z from "./components/VcForm/VcFormItem.vue.mjs";
124
+ import _sfc_main$Z from "./components/VcForm/VcForm.vue.mjs";
125
+ import _sfc_main$_ from "./components/VcForm/VcFormItem.vue.mjs";
126
126
  /* empty css */
127
- import _sfc_main$_ from "./components/VcSplitButton/VcSplitButton.vue.mjs";
127
+ import _sfc_main$$ from "./components/VcSplitButton/VcSplitButton.vue.mjs";
128
128
  /* empty css */
129
- import _sfc_main$$ from "./components/VcHyperLink/VcHyperLink.vue.mjs";
129
+ import _sfc_main$10 from "./components/VcHyperLink/VcHyperLink.vue.mjs";
130
130
  /* empty css */
131
- import _sfc_main$10 from "./components/VcIconPicker/VcIconPicker.vue.mjs";
131
+ import _sfc_main$11 from "./components/VcIconPicker/VcIconPicker.vue.mjs";
132
132
  /* empty css */
133
- import _sfc_main$11 from "./components/VcMeterGroup/VcMeterGroup.vue.mjs";
133
+ import _sfc_main$12 from "./components/VcMeterGroup/VcMeterGroup.vue.mjs";
134
134
  /* empty css */
135
- import _sfc_main$12 from "./components/VcMeterGroup/VcMeterGroupLabel.vue.mjs";
136
- import _sfc_main$13 from "./components/VcMdEditor/VcMdEditor.vue.mjs";
137
- import _sfc_main$14 from "./components/VcSystemUserPrompt/VcSystemUserPrompt.vue.mjs";
138
- import _sfc_main$15 from "./components/VcSoundplayer/VcSoundPlayer.vue.mjs";
135
+ import _sfc_main$13 from "./components/VcMeterGroup/VcMeterGroupLabel.vue.mjs";
136
+ import _sfc_main$14 from "./components/VcMdEditor/VcMdEditor.vue.mjs";
137
+ import _sfc_main$15 from "./components/VcSystemUserPrompt/VcSystemUserPrompt.vue.mjs";
138
+ import _sfc_main$16 from "./components/VcSoundplayer/VcSoundPlayer.vue.mjs";
139
139
  /* empty css */
140
- import _sfc_main$16 from "./components/VcJsonSchema/VcJsonSchema.vue.mjs";
140
+ import _sfc_main$17 from "./components/VcJsonSchema/VcJsonSchema.vue.mjs";
141
141
  /* empty css */
142
- import _sfc_main$17 from "./components/VcHtmlEditor/VcHtmlEditor.vue.mjs";
142
+ import _sfc_main$18 from "./components/VcHtmlEditor/VcHtmlEditor.vue.mjs";
143
143
  /* empty css */
144
- import _sfc_main$18 from "./components/VcPdfViewer/VcPdfDocument.vue.mjs";
144
+ import _sfc_main$19 from "./components/VcPdfViewer/VcPdfDocument.vue.mjs";
145
145
  /* empty css */
146
- import _sfc_main$19 from "./components/VcExcelUploader/VcExcelFileUploader.vue.mjs";
147
- import _sfc_main$1a from "./components/VcImageUploader/VcImageUploader.vue.mjs";
146
+ import _sfc_main$1a from "./components/VcExcelUploader/VcExcelFileUploader.vue.mjs";
147
+ import _sfc_main$1b from "./components/VcImageUploader/VcImageUploader.vue.mjs";
148
148
  /* empty css */
149
- import _sfc_main$1b from "./components/VcTour/VcTour.vue.mjs";
149
+ import _sfc_main$1c from "./components/VcTour/VcTour.vue.mjs";
150
150
  /* empty css */
151
- import _sfc_main$1c from "./components/VcSipFlow/VcSipFlow.vue.mjs";
151
+ import _sfc_main$1d from "./components/VcSipFlow/VcSipFlow.vue.mjs";
152
152
  /* empty css */
153
- import _sfc_main$1d from "./entity/components/Button/VcEntityAddButton.vue.mjs";
154
- import _sfc_main$1e from "./entity/components/Button/VcEntityCancelButton.vue.mjs";
155
- import _sfc_main$1f from "./entity/components/Button/VcEntityDeleteIconButton.vue.mjs";
156
- import _sfc_main$1g from "./entity/components/Button/VcEntityEditIconButton.vue.mjs";
157
- import _sfc_main$1h from "./entity/components/Button/VcEntityRestoreButton.vue.mjs";
158
- import _sfc_main$1i from "./entity/components/Button/VcEntityStatusButton.vue.mjs";
159
- import _sfc_main$1j from "./entity/components/Tabs/VcEntityEditableTabs.vue.mjs";
153
+ import _sfc_main$1e from "./entity/components/Button/VcEntityAddButton.vue.mjs";
154
+ import _sfc_main$1f from "./entity/components/Button/VcEntityCancelButton.vue.mjs";
155
+ import _sfc_main$1g from "./entity/components/Button/VcEntityDeleteIconButton.vue.mjs";
156
+ import _sfc_main$1h from "./entity/components/Button/VcEntityEditIconButton.vue.mjs";
157
+ import _sfc_main$1i from "./entity/components/Button/VcEntityRestoreButton.vue.mjs";
158
+ import _sfc_main$1j from "./entity/components/Button/VcEntityStatusButton.vue.mjs";
159
+ import _sfc_main$1k from "./entity/components/Tabs/VcEntityEditableTabs.vue.mjs";
160
160
  /* empty css */
161
- import _sfc_main$1k from "./entity/components/Table/VcEntityListTable.vue.mjs";
161
+ import _sfc_main$1l from "./entity/components/Table/VcEntityListTable.vue.mjs";
162
162
  /* empty css */
163
- import _sfc_main$1l from "./entity/components/Form/VcBaseVerticalForm.vue.mjs";
163
+ import _sfc_main$1m from "./entity/components/Form/VcBaseVerticalForm.vue.mjs";
164
164
  /* empty css */
165
- import _sfc_main$1m from "./entity/components/Form/VcEntityVerticalCreateForm.vue.mjs";
166
- import _sfc_main$1n from "./entity/components/Form/VcEntityVerticalEditForm.vue.mjs";
167
- import _sfc_main$1o from "./entity/components/Form/VcEntityEditPageForm.vue.mjs";
165
+ import _sfc_main$1n from "./entity/components/Form/VcEntityVerticalCreateForm.vue.mjs";
166
+ import _sfc_main$1o from "./entity/components/Form/VcEntityVerticalEditForm.vue.mjs";
167
+ import _sfc_main$1p from "./entity/components/Form/VcEntityEditPageForm.vue.mjs";
168
168
  /* empty css */
169
- import _sfc_main$1p from "./components/VcPluginOverlays/VcPluginOverlays.vue.mjs";
169
+ import _sfc_main$y from "./components/VcPluginOverlays/VcPluginOverlays.vue.mjs";
170
170
  import { mountPluginOverlays } from "./utils/mountPluginOverlays.mjs";
171
171
  import { VcCollapseProvideKey, VcEditableTabsDataToken, VcEntityListTableExternalPaginateToken, VcEntityToken, VcSoundPlayerProvideKey, VcTabPaneProvideKey, VcTabsProvideKey } from "./tokens/tokens.mjs";
172
172
  import { isIconComponent, isIconString, isVueComponent } from "./types/icons.types.mjs";
@@ -248,62 +248,63 @@ const install = function installCore(app, config) {
248
248
  app.component("VcConfirmModal", _sfc_main$v);
249
249
  app.component("VcPopover", _sfc_main$w);
250
250
  app.component("VcConfirmPopover", _sfc_main$x);
251
- app.component("VcSelectPopover", _sfc_main$y);
252
- app.component("VcTabs", _sfc_main$z);
253
- app.component("VcTabNav", _sfc_main$A);
254
- app.component("VcTabPane", _sfc_main$B);
255
- app.component("VcVerticalTabs", _sfc_main$C);
256
- app.component("VcRadioTabs", _sfc_main$D);
257
- app.component("VcRadioTabsNav", _sfc_main$E);
258
- app.component("VcCollapse", _sfc_main$F);
259
- app.component("VcCollapseItem", _sfc_main$G);
260
- app.component("VcWizard", _sfc_main$H);
261
- app.component("VcDropdown", _sfc_main$I);
262
- app.component("VcDropdownItem", _sfc_main$J);
263
- app.component("VcTable", _sfc_main$K);
264
- app.component("VcPagination", _sfc_main$L);
265
- app.component("VcTree", _sfc_main$M);
266
- app.component("VcTreeSelect", _sfc_main$N);
267
- app.component("VcTransfer", _sfc_main$O);
268
- app.component("VcTag", _sfc_main$P);
269
- app.component("VcDelimitedList", _sfc_main$Q);
270
- app.component("VcSparkline", _sfc_main$R);
271
- app.component("VcViewSwitcher", _sfc_main$S);
272
- app.component("VcSegmented", _sfc_main$T);
251
+ app.component("VcPluginOverlays", _sfc_main$y);
252
+ app.component("VcSelectPopover", _sfc_main$z);
253
+ app.component("VcTabs", _sfc_main$A);
254
+ app.component("VcTabNav", _sfc_main$B);
255
+ app.component("VcTabPane", _sfc_main$C);
256
+ app.component("VcVerticalTabs", _sfc_main$D);
257
+ app.component("VcRadioTabs", _sfc_main$E);
258
+ app.component("VcRadioTabsNav", _sfc_main$F);
259
+ app.component("VcCollapse", _sfc_main$G);
260
+ app.component("VcCollapseItem", _sfc_main$H);
261
+ app.component("VcWizard", _sfc_main$I);
262
+ app.component("VcDropdown", _sfc_main$J);
263
+ app.component("VcDropdownItem", _sfc_main$K);
264
+ app.component("VcTable", _sfc_main$L);
265
+ app.component("VcPagination", _sfc_main$M);
266
+ app.component("VcTree", _sfc_main$N);
267
+ app.component("VcTreeSelect", _sfc_main$O);
268
+ app.component("VcTransfer", _sfc_main$P);
269
+ app.component("VcTag", _sfc_main$Q);
270
+ app.component("VcDelimitedList", _sfc_main$R);
271
+ app.component("VcSparkline", _sfc_main$S);
272
+ app.component("VcViewSwitcher", _sfc_main$T);
273
+ app.component("VcSegmented", _sfc_main$U);
273
274
  app.component("VcLoading", VcLoading);
274
- app.component("VcProgress", _sfc_main$U);
275
- app.component("VcProgressCircular", _sfc_main$V);
276
- app.component("VcSkeletonLoader", _sfc_main$W);
277
- app.component("VcNotification", _sfc_main$X);
278
- app.component("VcForm", _sfc_main$Y);
279
- app.component("VcFormItem", _sfc_main$Z);
280
- app.component("VcSplitButton", _sfc_main$_);
281
- app.component("VcHyperLink", _sfc_main$$);
282
- app.component("VcIconPicker", _sfc_main$10);
283
- app.component("VcMeterGroup", _sfc_main$11);
284
- app.component("VcMeterGroupLabel", _sfc_main$12);
285
- app.component("VcMdEditor", _sfc_main$13);
286
- app.component("VcSystemUserPrompt", _sfc_main$14);
287
- app.component("VcSoundPlayer", _sfc_main$15);
288
- app.component("VcJsonSchema", _sfc_main$16);
289
- app.component("VcHtmlEditor", _sfc_main$17);
290
- app.component("VcPdfDocument", _sfc_main$18);
291
- app.component("VcExcelFileUploader", _sfc_main$19);
292
- app.component("VcImageUploader", _sfc_main$1a);
293
- app.component("VcTour", _sfc_main$1b);
294
- app.component("VcSipFlow", _sfc_main$1c);
295
- app.component("VcEntityAddButton", _sfc_main$1d);
296
- app.component("VcEntityCancelButton", _sfc_main$1e);
297
- app.component("VcEntityDeleteIconButton", _sfc_main$1f);
298
- app.component("VcEntityEditIconButton", _sfc_main$1g);
299
- app.component("VcEntityRestoreButton", _sfc_main$1h);
300
- app.component("VcEntityStatusButton", _sfc_main$1i);
301
- app.component("VcEntityEditableTabs", _sfc_main$1j);
302
- app.component("VcEntityListTable", _sfc_main$1k);
303
- app.component("VcBaseVerticalForm", _sfc_main$1l);
304
- app.component("VcEntityVerticalCreateForm", _sfc_main$1m);
305
- app.component("VcEntityVerticalEditForm", _sfc_main$1n);
306
- app.component("VcEntityEditPageForm", _sfc_main$1o);
275
+ app.component("VcProgress", _sfc_main$V);
276
+ app.component("VcProgressCircular", _sfc_main$W);
277
+ app.component("VcSkeletonLoader", _sfc_main$X);
278
+ app.component("VcNotification", _sfc_main$Y);
279
+ app.component("VcForm", _sfc_main$Z);
280
+ app.component("VcFormItem", _sfc_main$_);
281
+ app.component("VcSplitButton", _sfc_main$$);
282
+ app.component("VcHyperLink", _sfc_main$10);
283
+ app.component("VcIconPicker", _sfc_main$11);
284
+ app.component("VcMeterGroup", _sfc_main$12);
285
+ app.component("VcMeterGroupLabel", _sfc_main$13);
286
+ app.component("VcMdEditor", _sfc_main$14);
287
+ app.component("VcSystemUserPrompt", _sfc_main$15);
288
+ app.component("VcSoundPlayer", _sfc_main$16);
289
+ app.component("VcJsonSchema", _sfc_main$17);
290
+ app.component("VcHtmlEditor", _sfc_main$18);
291
+ app.component("VcPdfDocument", _sfc_main$19);
292
+ app.component("VcExcelFileUploader", _sfc_main$1a);
293
+ app.component("VcImageUploader", _sfc_main$1b);
294
+ app.component("VcTour", _sfc_main$1c);
295
+ app.component("VcSipFlow", _sfc_main$1d);
296
+ app.component("VcEntityAddButton", _sfc_main$1e);
297
+ app.component("VcEntityCancelButton", _sfc_main$1f);
298
+ app.component("VcEntityDeleteIconButton", _sfc_main$1g);
299
+ app.component("VcEntityEditIconButton", _sfc_main$1h);
300
+ app.component("VcEntityRestoreButton", _sfc_main$1i);
301
+ app.component("VcEntityStatusButton", _sfc_main$1j);
302
+ app.component("VcEntityEditableTabs", _sfc_main$1k);
303
+ app.component("VcEntityListTable", _sfc_main$1l);
304
+ app.component("VcBaseVerticalForm", _sfc_main$1m);
305
+ app.component("VcEntityVerticalCreateForm", _sfc_main$1n);
306
+ app.component("VcEntityVerticalEditForm", _sfc_main$1o);
307
+ app.component("VcEntityEditPageForm", _sfc_main$1p);
307
308
  Object.entries(directives).forEach(([name, directive]) => {
308
309
  app.directive(name, directive);
309
310
  });
@@ -322,7 +323,15 @@ const install = function installCore(app, config) {
322
323
  }
323
324
  loadTextFont();
324
325
  if ((config == null ? void 0 : config.mountOverlays) !== false) {
325
- mountPluginOverlays(app, _sfc_main$1p);
326
+ mountPluginOverlays(
327
+ app,
328
+ _sfc_main$y,
329
+ {
330
+ notifications: (config == null ? void 0 : config.overlayNotifications) ?? "default",
331
+ appendTo: (config == null ? void 0 : config.overlayAppendTo) ?? "body"
332
+ },
333
+ config == null ? void 0 : config.overlayContainer
334
+ );
326
335
  }
327
336
  };
328
337
  export {
@@ -360,14 +369,14 @@ export {
360
369
  default5 as UniqueComponentId,
361
370
  VERTICAL_SPACE,
362
371
  _sfc_main$c as VcAutocomplete,
363
- _sfc_main$1l as VcBaseVerticalForm,
372
+ _sfc_main$1m as VcBaseVerticalForm,
364
373
  _sfc_main as VcButton,
365
374
  _sfc_main$1 as VcButtonIcon,
366
375
  _sfc_main$t as VcCard,
367
376
  _sfc_main$d as VcCheckbox,
368
377
  _sfc_main$e as VcCheckboxGroup,
369
- _sfc_main$F as VcCollapse,
370
- _sfc_main$G as VcCollapseItem,
378
+ _sfc_main$G as VcCollapse,
379
+ _sfc_main$H as VcCollapseItem,
371
380
  VcCollapseProvideKey,
372
381
  _sfc_main$k as VcColorPicker,
373
382
  _sfc_main$v as VcConfirmModal,
@@ -375,101 +384,101 @@ export {
375
384
  _sfc_main$l as VcDatePicker,
376
385
  _sfc_main$m as VcDatePickerPanel,
377
386
  _sfc_main$n as VcDatetimeRangePicker,
378
- _sfc_main$Q as VcDelimitedList,
379
- _sfc_main$I as VcDropdown,
380
- _sfc_main$J as VcDropdownItem,
387
+ _sfc_main$R as VcDelimitedList,
388
+ _sfc_main$J as VcDropdown,
389
+ _sfc_main$K as VcDropdownItem,
381
390
  VcEditableTabsDataToken,
382
- _sfc_main$1d as VcEntityAddButton,
383
- _sfc_main$1e as VcEntityCancelButton,
384
- _sfc_main$1f as VcEntityDeleteIconButton,
385
- _sfc_main$1g as VcEntityEditIconButton,
386
- _sfc_main$1o as VcEntityEditPageForm,
387
- _sfc_main$1j as VcEntityEditableTabs,
388
- _sfc_main$1k as VcEntityListTable,
391
+ _sfc_main$1e as VcEntityAddButton,
392
+ _sfc_main$1f as VcEntityCancelButton,
393
+ _sfc_main$1g as VcEntityDeleteIconButton,
394
+ _sfc_main$1h as VcEntityEditIconButton,
395
+ _sfc_main$1p as VcEntityEditPageForm,
396
+ _sfc_main$1k as VcEntityEditableTabs,
397
+ _sfc_main$1l as VcEntityListTable,
389
398
  VcEntityListTableExternalPaginateToken,
390
- _sfc_main$1h as VcEntityRestoreButton,
391
- _sfc_main$1i as VcEntityStatusButton,
399
+ _sfc_main$1i as VcEntityRestoreButton,
400
+ _sfc_main$1j as VcEntityStatusButton,
392
401
  VcEntityToken,
393
- _sfc_main$1m as VcEntityVerticalCreateForm,
394
- _sfc_main$1n as VcEntityVerticalEditForm,
395
- _sfc_main$19 as VcExcelFileUploader,
402
+ _sfc_main$1n as VcEntityVerticalCreateForm,
403
+ _sfc_main$1o as VcEntityVerticalEditForm,
404
+ _sfc_main$1a as VcExcelFileUploader,
396
405
  _sfc_main$o as VcExtendedDatetimeRangePicker,
397
406
  VcFileUploader,
398
- _sfc_main$Y as VcForm,
399
- _sfc_main$Z as VcFormItem,
400
- _sfc_main$17 as VcHtmlEditor,
401
- _sfc_main$$ as VcHyperLink,
407
+ _sfc_main$Z as VcForm,
408
+ _sfc_main$_ as VcFormItem,
409
+ _sfc_main$18 as VcHtmlEditor,
410
+ _sfc_main$10 as VcHyperLink,
402
411
  _sfc_main$3 as VcIcon,
403
412
  VcIconList,
404
- _sfc_main$10 as VcIconPicker,
405
- _sfc_main$1a as VcImageUploader,
413
+ _sfc_main$11 as VcIconPicker,
414
+ _sfc_main$1b as VcImageUploader,
406
415
  _sfc_main$b as VcInfiniteScrollSelect,
407
416
  _sfc_main$4 as VcInput,
408
417
  _sfc_main$6 as VcInputError,
409
418
  _sfc_main$7 as VcInputLabel,
410
419
  _sfc_main$5 as VcInputNumber,
411
- _sfc_main$16 as VcJsonSchema,
420
+ _sfc_main$17 as VcJsonSchema,
412
421
  VcLoading,
413
- _sfc_main$13 as VcMdEditor,
414
- _sfc_main$11 as VcMeterGroup,
415
- _sfc_main$12 as VcMeterGroupLabel,
422
+ _sfc_main$14 as VcMdEditor,
423
+ _sfc_main$12 as VcMeterGroup,
424
+ _sfc_main$13 as VcMeterGroupLabel,
416
425
  _sfc_main$u as VcModal,
417
- _sfc_main$X as VcNotification,
426
+ _sfc_main$Y as VcNotification,
418
427
  VcNotifySymbol,
419
428
  _sfc_main$s as VcOtpInput,
420
- _sfc_main$L as VcPagination,
421
- _sfc_main$18 as VcPdfDocument,
429
+ _sfc_main$M as VcPagination,
430
+ _sfc_main$19 as VcPdfDocument,
422
431
  _sfc_main$q as VcPhoneInput,
423
432
  default14 as VcPlayerPlayStopButton,
424
433
  default12 as VcPlayerPlaybackRate,
425
434
  default13 as VcPlayerPlaybackRatePopup,
426
435
  default15 as VcPlayerSkipButtons,
427
- _sfc_main$1p as VcPluginOverlays,
436
+ _sfc_main$y as VcPluginOverlays,
428
437
  _sfc_main$w as VcPopover,
429
- _sfc_main$U as VcProgress,
430
- _sfc_main$V as VcProgressCircular,
438
+ _sfc_main$V as VcProgress,
439
+ _sfc_main$W as VcProgressCircular,
431
440
  _sfc_main$f as VcRadio,
432
441
  _sfc_main$h as VcRadioButtonsGroup,
433
442
  _sfc_main$g as VcRadioGroup,
434
- _sfc_main$D as VcRadioTabs,
435
- _sfc_main$E as VcRadioTabsNav,
436
- _sfc_main$T as VcSegmented,
443
+ _sfc_main$E as VcRadioTabs,
444
+ _sfc_main$F as VcRadioTabsNav,
445
+ _sfc_main$U as VcSegmented,
437
446
  _sfc_main$8 as VcSelect,
438
447
  _sfc_main$9 as VcSelectGrouped,
439
448
  _sfc_main$a as VcSelectOption,
440
- _sfc_main$y as VcSelectPopover,
441
- _sfc_main$1c as VcSipFlow,
442
- _sfc_main$W as VcSkeletonLoader,
449
+ _sfc_main$z as VcSelectPopover,
450
+ _sfc_main$1d as VcSipFlow,
451
+ _sfc_main$X as VcSkeletonLoader,
443
452
  _sfc_main$j as VcSlider,
444
453
  default16 as VcSoundCurrentTime,
445
454
  default17 as VcSoundDuration,
446
- _sfc_main$15 as VcSoundPlayer,
455
+ _sfc_main$16 as VcSoundPlayer,
447
456
  default18 as VcSoundPlayerError,
448
457
  default19 as VcSoundPlayerProgress,
449
458
  VcSoundPlayerProvideKey,
450
459
  default20 as VcSoundPlayerWrapper,
451
460
  default21 as VcSoundVolume,
452
- _sfc_main$R as VcSparkline,
453
- _sfc_main$_ as VcSplitButton,
461
+ _sfc_main$S as VcSparkline,
462
+ _sfc_main$$ as VcSplitButton,
454
463
  _sfc_main$i as VcSwitch,
455
- _sfc_main$14 as VcSystemUserPrompt,
456
- _sfc_main$A as VcTabNav,
457
- _sfc_main$B as VcTabPane,
464
+ _sfc_main$15 as VcSystemUserPrompt,
465
+ _sfc_main$B as VcTabNav,
466
+ _sfc_main$C as VcTabPane,
458
467
  VcTabPaneProvideKey,
459
- _sfc_main$K as VcTable,
460
- _sfc_main$z as VcTabs,
468
+ _sfc_main$L as VcTable,
469
+ _sfc_main$A as VcTabs,
461
470
  VcTabsProvideKey,
462
- _sfc_main$P as VcTag,
471
+ _sfc_main$Q as VcTag,
463
472
  _sfc_main$r as VcTagInput,
464
473
  _sfc_main$p as VcTimeInput,
465
474
  _sfc_main$2 as VcToggleButton,
466
- _sfc_main$1b as VcTour,
467
- _sfc_main$O as VcTransfer,
468
- _sfc_main$M as VcTree,
469
- _sfc_main$N as VcTreeSelect,
470
- _sfc_main$C as VcVerticalTabs,
471
- _sfc_main$S as VcViewSwitcher,
472
- _sfc_main$H as VcWizard,
475
+ _sfc_main$1c as VcTour,
476
+ _sfc_main$P as VcTransfer,
477
+ _sfc_main$N as VcTree,
478
+ _sfc_main$O as VcTreeSelect,
479
+ _sfc_main$D as VcVerticalTabs,
480
+ _sfc_main$T as VcViewSwitcher,
481
+ _sfc_main$I as VcWizard,
473
482
  default9 as ZIndexUtils,
474
483
  add,
475
484
  addDays,
Binary file
Binary file