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

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 (47) hide show
  1. package/README.md +50 -3
  2. package/library/components/VcPluginOverlays/VcPluginOverlays.vue.mjs +22 -2
  3. package/library/plugin.mjs +171 -168
  4. package/library/plugin.mjs.br +0 -0
  5. package/library/plugin.mjs.gz +0 -0
  6. package/library/types/components/VcAutocomplete/VcAutocomplete.vue.d.ts +6 -6
  7. package/library/types/components/VcButton/VcButton.vue.d.ts +1 -1
  8. package/library/types/components/VcButton/VcButtonIcon.vue.d.ts +2 -2
  9. package/library/types/components/VcButton/VcToggleButton.vue.d.ts +1 -1
  10. package/library/types/components/VcCheckbox/VcCheckbox.vue.d.ts +3 -3
  11. package/library/types/components/VcColorPicker/VcColorPicker.vue.d.ts +1 -1
  12. package/library/types/components/VcDatePicker/VcDatePicker.vue.d.ts +6 -6
  13. package/library/types/components/VcDatePickerPanel/VcDatePickerPanel.vue.d.ts +3 -3
  14. package/library/types/components/VcDropdown/VcDropdown.vue.d.ts +1 -1
  15. package/library/types/components/VcExtendedDatetimeRangePicker/ExtendedDatetimeRangePickerPart.vue.d.ts +1 -1
  16. package/library/types/components/VcExtendedDatetimeRangePicker/ExtendedDatetimeRangePickerRelative.vue.d.ts +1 -1
  17. package/library/types/components/VcExtendedDatetimeRangePicker/VcExtendedDatetimeRangePicker.vue.d.ts +2 -2
  18. package/library/types/components/VcFileUploader/VcFileUploader.vue.d.ts +1 -1
  19. package/library/types/components/VcForm/VcForm.vue.d.ts +1 -1
  20. package/library/types/components/VcHyperLink/VcHyperLink.vue.d.ts +1 -1
  21. package/library/types/components/VcImageUploader/VcImageUploader.vue.d.ts +1 -1
  22. package/library/types/components/VcInput/VcInput.vue.d.ts +1 -1
  23. package/library/types/components/VcOtpInput/VcOtpInput.vue.d.ts +1 -1
  24. package/library/types/components/VcPagination/VcPaginationButton.vue.d.ts +2 -2
  25. package/library/types/components/VcPhoneInput/VcPhoneInput.vue.d.ts +1 -1
  26. package/library/types/components/VcPluginOverlays/VcPluginOverlays.vue.d.ts +28 -1
  27. package/library/types/components/VcPopover/VcConfirmPopover.vue.d.ts +1 -1
  28. package/library/types/components/VcRadio/VcRadio.vue.d.ts +3 -3
  29. package/library/types/components/VcRadioButtons/VcRadioButtonsGroup.vue.d.ts +6 -6
  30. package/library/types/components/VcRadioGroup/VcRadioGroup.vue.d.ts +3 -3
  31. package/library/types/components/VcSegmented/VcSegmented.vue.d.ts +6 -6
  32. package/library/types/components/VcSelect/VcInfiniteScrollSelect.vue.d.ts +6 -6
  33. package/library/types/components/VcSelect/VcSelect.vue.d.ts +6 -6
  34. package/library/types/components/VcSelect/VcSelectGrouped.vue.d.ts +6 -6
  35. package/library/types/components/VcSplitButton/VcSplitButton.vue.d.ts +2 -2
  36. package/library/types/components/VcSwitch/VcSwitch.vue.d.ts +3 -3
  37. package/library/types/components/VcTag/VcTag.vue.d.ts +1 -1
  38. package/library/types/components/VcTagInput/VcTagInput.vue.d.ts +3 -3
  39. package/library/types/components/VcTimeInput/VcTimeInput.vue.d.ts +1 -1
  40. package/library/types/components/VcTree/VcTree.vue.d.ts +6 -6
  41. package/library/types/components/VcTree/VcTreeSelect.vue.d.ts +6 -6
  42. package/library/types/types/Entry.types.d.ts +8 -0
  43. package/library/types/types/Overlay.types.d.ts +15 -0
  44. package/library/types/types/index.d.ts +1 -0
  45. package/library/types/utils/mountPluginOverlays.d.ts +1 -1
  46. package/library/utils/mountPluginOverlays.mjs +2 -2
  47. package/package.json +1 -1
@@ -49,7 +49,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
49
49
  removeItem: typeof removeItem;
50
50
  disabled: import("vue").ComputedRef<boolean>;
51
51
  isError: import("vue").ComputedRef<boolean>;
52
- color: import("vue").ComputedRef<"" | "primary" | "secondary" | "destructive" | "success" | "warning" | "active" | "primary-alternative">;
52
+ color: import("vue").ComputedRef<"" | "success" | "warning" | "primary" | "secondary" | "destructive" | "active" | "primary-alternative">;
53
53
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
54
54
  "update:modelValue": (value: (string | number)[]) => void;
55
55
  add: (value: {
@@ -97,7 +97,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
97
97
  }>, {
98
98
  id: string;
99
99
  class: string;
100
- color: "" | "primary" | "secondary" | "destructive" | "success" | "warning" | "active" | "primary-alternative";
100
+ color: "" | "success" | "warning" | "primary" | "secondary" | "destructive" | "active" | "primary-alternative";
101
101
  style: string | false | import("vue").CSSProperties | StyleValue[] | null;
102
102
  disabled: boolean;
103
103
  max: number;
@@ -115,7 +115,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
115
115
  allowDuplicate: boolean;
116
116
  tagBorderless: boolean;
117
117
  tagSquare: boolean;
118
- tagColor: "" | "primary" | "secondary" | "destructive" | "success" | "warning" | "active" | "primary-alternative";
118
+ tagColor: "" | "success" | "warning" | "primary" | "secondary" | "destructive" | "active" | "primary-alternative";
119
119
  tagMaxContent: string | number;
120
120
  valueType: "string" | "number";
121
121
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -59,7 +59,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
59
59
  }) => any) | undefined;
60
60
  }>, {
61
61
  id: string;
62
- color: "" | "primary" | "secondary" | "destructive" | "success" | "warning" | "active" | "primary-alternative";
62
+ color: "" | "success" | "warning" | "primary" | "secondary" | "destructive" | "active" | "primary-alternative";
63
63
  disabled: boolean;
64
64
  name: string;
65
65
  placeholder: string;
@@ -4,7 +4,7 @@ import type Node from 'element-plus/es/components/tree/src/model/node';
4
4
  declare const _default: <VcTreeNodeGenericType extends VcTreeNodeType, Config extends VcTreeConfig<VcTreeNodeGenericType>>(__VLS_props: {
5
5
  scrollHeight?: string | number | undefined;
6
6
  lazy?: boolean | undefined;
7
- color?: "" | "primary" | "secondary" | "destructive" | "success" | "warning" | "active" | "primary-alternative" | undefined;
7
+ color?: "" | "success" | "warning" | "primary" | "secondary" | "destructive" | "active" | "primary-alternative" | undefined;
8
8
  loading?: boolean | undefined;
9
9
  options?: VcTreeNodeGenericType[] | undefined;
10
10
  config: Config;
@@ -19,7 +19,7 @@ declare const _default: <VcTreeNodeGenericType extends VcTreeNodeType, Config ex
19
19
  expandedKeys?: (string | number)[] | undefined;
20
20
  defaultCheckedKeys?: (string | number)[] | undefined;
21
21
  filterPrefixIcon?: TIcon | undefined;
22
- filterPrefixIconColor?: "" | "primary" | "secondary" | "destructive" | "success" | "warning" | "active" | "primary-alternative" | undefined;
22
+ filterPrefixIconColor?: "" | "success" | "warning" | "primary" | "secondary" | "destructive" | "active" | "primary-alternative" | undefined;
23
23
  useTypes?: VcTreeNodeGenericType["type"][] | undefined;
24
24
  clearFilterOnOptionsChange?: boolean | undefined;
25
25
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, __VLS_ctx?: {
@@ -50,7 +50,7 @@ declare const _default: <VcTreeNodeGenericType extends VcTreeNodeType, Config ex
50
50
  props: {
51
51
  scrollHeight?: string | number | undefined;
52
52
  lazy?: boolean | undefined;
53
- color?: "" | "primary" | "secondary" | "destructive" | "success" | "warning" | "active" | "primary-alternative" | undefined;
53
+ color?: "" | "success" | "warning" | "primary" | "secondary" | "destructive" | "active" | "primary-alternative" | undefined;
54
54
  loading?: boolean | undefined;
55
55
  options?: VcTreeNodeGenericType[] | undefined;
56
56
  config: Config;
@@ -65,7 +65,7 @@ declare const _default: <VcTreeNodeGenericType extends VcTreeNodeType, Config ex
65
65
  expandedKeys?: (string | number)[] | undefined;
66
66
  defaultCheckedKeys?: (string | number)[] | undefined;
67
67
  filterPrefixIcon?: TIcon | undefined;
68
- filterPrefixIconColor?: "" | "primary" | "secondary" | "destructive" | "success" | "warning" | "active" | "primary-alternative" | undefined;
68
+ filterPrefixIconColor?: "" | "success" | "warning" | "primary" | "secondary" | "destructive" | "active" | "primary-alternative" | undefined;
69
69
  useTypes?: VcTreeNodeGenericType["type"][] | undefined;
70
70
  clearFilterOnOptionsChange?: boolean | undefined;
71
71
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
@@ -100,7 +100,7 @@ declare const _default: <VcTreeNodeGenericType extends VcTreeNodeType, Config ex
100
100
  props: {
101
101
  scrollHeight?: string | number | undefined;
102
102
  lazy?: boolean | undefined;
103
- color?: "" | "primary" | "secondary" | "destructive" | "success" | "warning" | "active" | "primary-alternative" | undefined;
103
+ color?: "" | "success" | "warning" | "primary" | "secondary" | "destructive" | "active" | "primary-alternative" | undefined;
104
104
  loading?: boolean | undefined;
105
105
  options?: VcTreeNodeGenericType[] | undefined;
106
106
  config: Config;
@@ -115,7 +115,7 @@ declare const _default: <VcTreeNodeGenericType extends VcTreeNodeType, Config ex
115
115
  expandedKeys?: (string | number)[] | undefined;
116
116
  defaultCheckedKeys?: (string | number)[] | undefined;
117
117
  filterPrefixIcon?: TIcon | undefined;
118
- filterPrefixIconColor?: "" | "primary" | "secondary" | "destructive" | "success" | "warning" | "active" | "primary-alternative" | undefined;
118
+ filterPrefixIconColor?: "" | "success" | "warning" | "primary" | "secondary" | "destructive" | "active" | "primary-alternative" | undefined;
119
119
  useTypes?: VcTreeNodeGenericType["type"][] | undefined;
120
120
  clearFilterOnOptionsChange?: boolean | undefined;
121
121
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
@@ -3,7 +3,7 @@ import { VcTreeConfig, VcTreeNodeType } from '../../types';
3
3
  declare const _default: <VcTreeNodeGenericType extends VcTreeNodeType, Config extends VcTreeConfig<VcTreeNodeGenericType>, Model extends ExtractValueType<VcTreeNodeGenericType, Config>>(__VLS_props: {
4
4
  id?: string | undefined;
5
5
  scrollHeight?: string | number | undefined;
6
- color?: "" | "primary" | "secondary" | "destructive" | "success" | "warning" | "active" | "primary-alternative" | undefined;
6
+ color?: "" | "success" | "warning" | "primary" | "secondary" | "destructive" | "active" | "primary-alternative" | undefined;
7
7
  loading?: boolean | undefined;
8
8
  disabled?: boolean | undefined;
9
9
  name?: string | undefined;
@@ -21,7 +21,7 @@ declare const _default: <VcTreeNodeGenericType extends VcTreeNodeType, Config ex
21
21
  config: Config;
22
22
  emptyText?: string | undefined;
23
23
  tagBorderless?: boolean | undefined;
24
- tagColor?: "" | "primary" | "secondary" | "destructive" | "success" | "warning" | "active" | "primary-alternative" | undefined;
24
+ tagColor?: "" | "success" | "warning" | "primary" | "secondary" | "destructive" | "active" | "primary-alternative" | undefined;
25
25
  nodeKey?: keyof VcTreeNodeGenericType | undefined;
26
26
  useTypes?: VcTreeNodeGenericType["type"][] | undefined;
27
27
  clearFilterOnOptionsChange?: boolean | undefined;
@@ -456,7 +456,7 @@ declare const _default: <VcTreeNodeGenericType extends VcTreeNodeType, Config ex
456
456
  props: {
457
457
  id?: string | undefined;
458
458
  scrollHeight?: string | number | undefined;
459
- color?: "" | "primary" | "secondary" | "destructive" | "success" | "warning" | "active" | "primary-alternative" | undefined;
459
+ color?: "" | "success" | "warning" | "primary" | "secondary" | "destructive" | "active" | "primary-alternative" | undefined;
460
460
  loading?: boolean | undefined;
461
461
  disabled?: boolean | undefined;
462
462
  name?: string | undefined;
@@ -474,7 +474,7 @@ declare const _default: <VcTreeNodeGenericType extends VcTreeNodeType, Config ex
474
474
  config: Config;
475
475
  emptyText?: string | undefined;
476
476
  tagBorderless?: boolean | undefined;
477
- tagColor?: "" | "primary" | "secondary" | "destructive" | "success" | "warning" | "active" | "primary-alternative" | undefined;
477
+ tagColor?: "" | "success" | "warning" | "primary" | "secondary" | "destructive" | "active" | "primary-alternative" | undefined;
478
478
  nodeKey?: keyof VcTreeNodeGenericType | undefined;
479
479
  useTypes?: VcTreeNodeGenericType["type"][] | undefined;
480
480
  clearFilterOnOptionsChange?: boolean | undefined;
@@ -913,7 +913,7 @@ declare const _default: <VcTreeNodeGenericType extends VcTreeNodeType, Config ex
913
913
  props: {
914
914
  id?: string | undefined;
915
915
  scrollHeight?: string | number | undefined;
916
- color?: "" | "primary" | "secondary" | "destructive" | "success" | "warning" | "active" | "primary-alternative" | undefined;
916
+ color?: "" | "success" | "warning" | "primary" | "secondary" | "destructive" | "active" | "primary-alternative" | undefined;
917
917
  loading?: boolean | undefined;
918
918
  disabled?: boolean | undefined;
919
919
  name?: string | undefined;
@@ -931,7 +931,7 @@ declare const _default: <VcTreeNodeGenericType extends VcTreeNodeType, Config ex
931
931
  config: Config;
932
932
  emptyText?: string | undefined;
933
933
  tagBorderless?: boolean | undefined;
934
- tagColor?: "" | "primary" | "secondary" | "destructive" | "success" | "warning" | "active" | "primary-alternative" | undefined;
934
+ tagColor?: "" | "success" | "warning" | "primary" | "secondary" | "destructive" | "active" | "primary-alternative" | undefined;
935
935
  nodeKey?: keyof VcTreeNodeGenericType | undefined;
936
936
  useTypes?: VcTreeNodeGenericType["type"][] | undefined;
937
937
  clearFilterOnOptionsChange?: boolean | undefined;
@@ -1,5 +1,6 @@
1
1
  import { LanguageType } from '../localization/Localization.types';
2
2
  import { UIThemeConfig } from '../theme/theme.types';
3
+ import type { OverlayNotificationsConfig } from './Overlay.types';
3
4
  export declare type UIConfig = {
4
5
  lang?: LanguageType;
5
6
  themeConfig?: UIThemeConfig;
@@ -17,4 +18,11 @@ export declare type UIConfig = {
17
18
  * Set to `false` if you mount `<VcPluginOverlays />` yourself.
18
19
  */
19
20
  mountOverlays?: boolean;
21
+ /**
22
+ * Notification hosts inside auto-mounted `VcPluginOverlays`.
23
+ * - `'default'` — one top-right container (default)
24
+ * - `'none'` — no notification host; add your own `<VcNotification />` in App.vue
25
+ * - array — multiple `{ group, position }` hosts (pass matching `group` in `$notify.add`)
26
+ */
27
+ overlayNotifications?: OverlayNotificationsConfig;
20
28
  };
@@ -0,0 +1,15 @@
1
+ import type { ToastPositionType } from './VcNotification.types';
2
+ export type OverlayNotificationHost = {
3
+ group?: string;
4
+ position?: ToastPositionType;
5
+ };
6
+ /**
7
+ * Controls which `VcNotification` hosts are rendered inside `VcPluginOverlays`.
8
+ * - `'default'` — single container (top-right, ungrouped messages)
9
+ * - `'none'` — skip notifications; mount your own `<VcNotification />` in App.vue
10
+ * - `OverlayNotificationHost[]` — multiple positioned/grouped containers
11
+ */
12
+ export type OverlayNotificationsConfig = 'default' | 'none' | OverlayNotificationHost[];
13
+ export type VcPluginOverlaysProps = {
14
+ notifications?: OverlayNotificationsConfig;
15
+ };
@@ -50,3 +50,4 @@ export * from './Tabs';
50
50
  export * from './VcEditableTabs.types';
51
51
  export * from './VcSipFlow.types';
52
52
  export * from './VcTour.types';
53
+ export * from './Overlay.types';
@@ -7,4 +7,4 @@ import type { App, Component } from 'vue';
7
7
  * Plugin mode calls this automatically. Tree-shake consumers can either mount
8
8
  * `<VcPluginOverlays />` in App.vue or call this helper after `createApp`.
9
9
  */
10
- export declare function mountPluginOverlays(app: App, component: Component): () => void;
10
+ export declare function mountPluginOverlays(app: App, component: Component, props?: Record<string, unknown>): () => void;
@@ -1,6 +1,6 @@
1
1
  import { createVNode, render } from "vue";
2
2
  const HOST_ATTR = "data-vc-plugin-overlays";
3
- function mountPluginOverlays(app, component) {
3
+ function mountPluginOverlays(app, component, props) {
4
4
  if (typeof document === "undefined") {
5
5
  return () => {
6
6
  };
@@ -11,7 +11,7 @@ function mountPluginOverlays(app, component) {
11
11
  container.setAttribute(HOST_ATTR, "");
12
12
  document.body.appendChild(container);
13
13
  }
14
- const vnode = createVNode(component);
14
+ const vnode = createVNode(component, props);
15
15
  vnode.appContext = app._context;
16
16
  render(vnode, container);
17
17
  return () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voicenter-team/voicenter-ui-plus",
3
- "version": "3.0.3",
3
+ "version": "3.0.4",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "vite build",