@voicenter-team/voicenter-ui-plus 3.1.0 → 3.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  import '../../../assets/components/VcRadioTabs/UiComponents/VcRadioTabsNav.css';
2
- import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, Fragment, renderList, withKeys, createElementVNode, normalizeStyle, createVNode, toDisplayString } from "vue";
2
+ import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, Fragment, renderList, withKeys, renderSlot, createElementVNode, normalizeStyle, createVNode, toDisplayString } from "vue";
3
3
  import { convertToUnit } from "../../../utils/helpers.mjs";
4
4
  import useOptionMethods from "../../../composables/option/useOptionMethods.mjs";
5
5
  import _sfc_main$1 from "../../VcIcon/VcIcon.vue.mjs";
@@ -58,16 +58,21 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
58
58
  onClick: ($event) => onClick(option, index),
59
59
  onKeyup: withKeys(($event) => onClick(option, index), ["enter"])
60
60
  }, [
61
- createElementVNode("div", {
62
- class: normalizeClass([__props.tabItemClasses, "vc-radio-tabs-nav__item-content"]),
63
- style: normalizeStyle(contentWidthStyle.value)
64
- }, [
65
- createVNode(_sfc_main$1, {
66
- icon: option.icon,
67
- class: "radio-tab-nav-icon icon-base"
68
- }, null, 8, ["icon"]),
69
- createElementVNode("span", _hoisted_2, toDisplayString(option.label), 1)
70
- ], 6)
61
+ renderSlot(_ctx.$slots, "tab-item", {
62
+ option,
63
+ index
64
+ }, () => [
65
+ createElementVNode("div", {
66
+ class: normalizeClass([__props.tabItemClasses, "vc-radio-tabs-nav__item-content"]),
67
+ style: normalizeStyle(contentWidthStyle.value)
68
+ }, [
69
+ createVNode(_sfc_main$1, {
70
+ icon: option.icon,
71
+ class: "radio-tab-nav-icon icon-base"
72
+ }, null, 8, ["icon"]),
73
+ createElementVNode("span", _hoisted_2, toDisplayString(option.label), 1)
74
+ ], 6)
75
+ ])
71
76
  ], 42, _hoisted_1);
72
77
  }), 128))
73
78
  ], 2);
@@ -102,6 +102,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
102
102
  config: props.config,
103
103
  clearable: __props.clearable,
104
104
  filterable: __props.filterable,
105
+ disabled: props.disabled,
105
106
  loading: __props.loading,
106
107
  persistent: __props.persistent,
107
108
  teleported: __props.teleported,
@@ -170,7 +171,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
170
171
  ]),
171
172
  key: "0"
172
173
  } : void 0
173
- ]), 1032, ["modelValue", "options", "config", "clearable", "filterable", "loading", "persistent", "teleported", "fit-input-width", "name", "empty-text", "placeholder", "size", "filter-method", "remote-method", "multiple", "data-test-name"]);
174
+ ]), 1032, ["modelValue", "options", "config", "clearable", "filterable", "disabled", "loading", "persistent", "teleported", "fit-input-width", "name", "empty-text", "placeholder", "size", "filter-method", "remote-method", "multiple", "data-test-name"]);
174
175
  };
175
176
  }
176
177
  });
@@ -1,4 +1,4 @@
1
- import { ConfigOptionType, ExtractValueType, NavigationPositionType, OptionValueType } from '../../../types';
1
+ import { ConfigOptionType, ExtractValueType, NavigationPositionType, OptionMappedType, OptionValueType } from '../../../types';
2
2
  declare const _default: <Option extends OptionValueType, Config extends ConfigOptionType<Option>, Model extends ExtractValueType<Option, Config>>(__VLS_props: {
3
3
  options?: Option[] | undefined;
4
4
  activeTab: Model;
@@ -11,7 +11,12 @@ declare const _default: <Option extends OptionValueType, Config extends ConfigOp
11
11
  borderPosition?: "top" | "bottom" | undefined;
12
12
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, __VLS_ctx?: {
13
13
  attrs: any;
14
- slots: {};
14
+ slots: {
15
+ "tab-item"?(_: {
16
+ option: OptionMappedType<Option, Config>;
17
+ index: number;
18
+ }): any;
19
+ };
15
20
  emit: (e: 'tab-click', option: Option, index: number) => void;
16
21
  } | undefined, __VLS_expose?: ((exposed: import('vue').ShallowUnwrapRef<{}>) => void) | undefined, __VLS_setup?: Promise<{
17
22
  props: {
@@ -27,7 +32,12 @@ declare const _default: <Option extends OptionValueType, Config extends ConfigOp
27
32
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
28
33
  expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
29
34
  attrs: any;
30
- slots: {};
35
+ slots: {
36
+ "tab-item"?(_: {
37
+ option: OptionMappedType<Option, Config>;
38
+ index: number;
39
+ }): any;
40
+ };
31
41
  emit: (e: 'tab-click', option: Option, index: number) => void;
32
42
  }>) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
33
43
  [key: string]: any;
@@ -46,7 +56,12 @@ declare const _default: <Option extends OptionValueType, Config extends ConfigOp
46
56
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
47
57
  expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
48
58
  attrs: any;
49
- slots: {};
59
+ slots: {
60
+ "tab-item"?(_: {
61
+ option: OptionMappedType<Option, Config>;
62
+ index: number;
63
+ }): any;
64
+ };
50
65
  emit: (e: 'tab-click', option: Option, index: number) => void;
51
66
  } | undefined;
52
67
  };
package/package.json CHANGED
@@ -1,156 +1,156 @@
1
- {
2
- "name": "@voicenter-team/voicenter-ui-plus",
3
- "version": "3.1.0",
4
- "scripts": {
5
- "dev": "vite",
6
- "build": "vite build",
7
- "analyze": "cross-env ANALYZE=true vite build",
8
- "build:documentation": "npm run build && cross-env TARGET=doc vite build",
9
- "ts-check": "vue-tsc --noEmit -p tsconfig.prod.json",
10
- "ts-check-all": "vue-tsc --noEmit",
11
- "generate-icon-list": "node ./script/generate/generateIconList.js",
12
- "preview": "vite preview",
13
- "test": "vitest",
14
- "test:ui": "vitest --ui",
15
- "test:coverage": "vitest run --coverage",
16
- "test:coverage:watch": "vitest --coverage",
17
- "test:coverage:ui": "vitest --coverage --ui",
18
- "upload-icons": "node ./script/icons-publish/index.js",
19
- "scan-for-remote": "npm run build && node ./script/scan-for-remote-sources.js",
20
- "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts --fix --ignore-path .gitignore",
21
- "mcp:install": "cd mcp-server && npm install",
22
- "mcp:generate": "cd mcp-server && npm run generate:all",
23
- "mcp:dev": "cd mcp-server && npm run dev",
24
- "mcp:build": "cd mcp-server && npm run build",
25
- "mcp:start": "cd mcp-server && npm start",
26
- "release": "npm ci && npm run build && npm publish"
27
- },
28
- "main": "./library/index.mjs",
29
- "module": "./library/index.mjs",
30
- "types": "./library/types/index.d.ts",
31
- "sideEffects": [
32
- "**/*.css",
33
- "./library/plugin.mjs"
34
- ],
35
- "exports": {
36
- ".": {
37
- "types": "./library/types/index.d.ts",
38
- "import": "./library/index.mjs",
39
- "default": "./library/index.mjs"
40
- },
41
- "./plugin": {
42
- "types": "./library/types/plugin.d.ts",
43
- "import": "./library/plugin.mjs",
44
- "default": "./library/plugin.mjs"
45
- },
46
- "./services": {
47
- "types": "./library/types/services/index.d.ts",
48
- "import": "./library/services/index.mjs",
49
- "default": "./library/services/index.mjs"
50
- },
51
- "./theme": {
52
- "types": "./library/types/theme/index.d.ts",
53
- "import": "./library/theme/index.mjs",
54
- "default": "./library/theme/index.mjs"
55
- },
56
- "./style.css": "./library/style.css",
57
- "./base.css": "./library/assets/assets/sass/main.css",
58
- "./src/theme/*": "./src/theme/*",
59
- "./src/theme/tailwindScheme": "./src/theme/tailwindScheme.js",
60
- "./src/theme/themes.json": "./src/theme/themes.json",
61
- "./tailwind.config": "./tailwind.config.js",
62
- "./library/types/*": "./library/types/*.d.ts"
63
- },
64
- "files": [
65
- "library",
66
- "src/theme",
67
- "tailwind.config.js",
68
- "tailwind.config.d.ts"
69
- ],
70
- "engines": {
71
- "node": ">= 20"
72
- },
73
- "peerDependencies": {
74
- "@codemirror/lang-html": "^6.0.0",
75
- "@codemirror/lang-json": "^6.0.1",
76
- "@codemirror/lang-markdown": "^6.0.0",
77
- "@lucide/vue": "^1.16.0",
78
- "@milkdown/crepe": "^7.15.5",
79
- "@milkdown/kit": "^7.15.5",
80
- "@milkdown/utils": "^7.15.5",
81
- "@milkdown/vue": "^7.15.5",
82
- "@prosemirror-adapter/vue": "^0.4.1",
83
- "@vueuse/core": ">=10.7.2",
84
- "codemirror": "^6.0.1",
85
- "dayjs": "^1.11.19",
86
- "element-plus": "^2.11.3",
87
- "highlight.js": "^11.6.0",
88
- "libphonenumber-js": "^1.10.13",
89
- "lodash-es": "^4.17.21",
90
- "maska": "^3.2.0",
91
- "pdfjs-dist": "^2.9.359",
92
- "vue": "^3.5.13",
93
- "vue-advanced-cropper": "^2.8.3",
94
- "vue-codemirror6": "^1.3.12",
95
- "wavesurfer.js": "^7.7.15",
96
- "xlsx": "^0.18.5"
97
- },
98
- "devDependencies": {
99
- "@codemirror/lang-json": "^6.0.1",
100
- "@fullhuman/postcss-purgecss": "^7.0.2",
101
- "@highlightjs/vue-plugin": "^2.1.0",
102
- "@lucide/vue": "^1.16.0",
103
- "@milkdown/crepe": "7.15.5",
104
- "@milkdown/kit": "7.15.5",
105
- "@milkdown/utils": "7.15.5",
106
- "@milkdown/vue": "7.15.5",
107
- "@prosemirror-adapter/vue": "^0.4.1",
108
- "@types/json-schema": "^7.0.15",
109
- "@types/lodash-es": "^4.17.12",
110
- "@types/node": "^18.7.6",
111
- "@types/wavesurfer.js": "^6.0.3",
112
- "@types/webfontloader": "^1.6.38",
113
- "@vitejs/plugin-vue": "5.0.3",
114
- "@vitest/coverage-v8": "3.2.4",
115
- "@vitest/ui": "3.2.4",
116
- "@voicenter-team/aws-uploader": "^1.0.10",
117
- "@voicenter-team/eslint-config-vue": "^1.0.21",
118
- "@vue/server-renderer": "^3.5.13",
119
- "@vue/test-utils": "^2.4.6",
120
- "@vueuse/core": "10.7.2",
121
- "autoprefixer": "10.4.17",
122
- "axios": "^1.6.0",
123
- "chalk": "4.1.2",
124
- "codemirror": "^6.0.1",
125
- "cross-env": "^7.0.3",
126
- "dotenv": "^16.4.7",
127
- "eslint": "^8.57.1",
128
- "eslint-plugin-standard": "^5.0.0",
129
- "eslint-plugin-vue": "9.21.1",
130
- "highlight.js": "^11.6.0",
131
- "jsdom": "^26.1.0",
132
- "pdfjs-dist": "2.9.359",
133
- "postcss": "8.4.34",
134
- "readline-sync": "^1.4.10",
135
- "sass": "1.93.3",
136
- "tailwindcss": "^3.1.8",
137
- "terser": "^5.44.0",
138
- "typescript": "5.3.3",
139
- "unplugin-element-plus": "^0.4.1",
140
- "vite": "^5.4.6",
141
- "vite-bundle-analyzer": "^0.15.2",
142
- "vite-plugin-compression": "^0.5.1",
143
- "vite-plugin-dts": "3.7.2",
144
- "vite-plugin-inspect": "0.8.1",
145
- "vite-plugin-lib-inject-css": "^2.2.2",
146
- "vite-plugin-static-copy": "0.17.1",
147
- "vitest": "^3.2.4",
148
- "vue-advanced-cropper": "^2.8.3",
149
- "vue-codemirror6": "^1.3.12",
150
- "vue-component-type-helpers": "^1.8.27",
151
- "vue-router": "4.2.5",
152
- "vue-tsc": "1.8.27",
153
- "wavesurfer.js": "^7.7.15",
154
- "xlsx": "0.18.5"
155
- }
156
- }
1
+ {
2
+ "name": "@voicenter-team/voicenter-ui-plus",
3
+ "version": "3.1.1",
4
+ "scripts": {
5
+ "dev": "vite",
6
+ "build": "vite build",
7
+ "analyze": "cross-env ANALYZE=true vite build",
8
+ "build:documentation": "npm run build && cross-env TARGET=doc vite build",
9
+ "ts-check": "vue-tsc --noEmit -p tsconfig.prod.json",
10
+ "ts-check-all": "vue-tsc --noEmit",
11
+ "generate-icon-list": "node ./script/generate/generateIconList.js",
12
+ "preview": "vite preview",
13
+ "test": "vitest",
14
+ "test:ui": "vitest --ui",
15
+ "test:coverage": "vitest run --coverage",
16
+ "test:coverage:watch": "vitest --coverage",
17
+ "test:coverage:ui": "vitest --coverage --ui",
18
+ "upload-icons": "node ./script/icons-publish/index.js",
19
+ "scan-for-remote": "npm run build && node ./script/scan-for-remote-sources.js",
20
+ "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts --fix --ignore-path .gitignore",
21
+ "mcp:install": "cd mcp-server && npm install",
22
+ "mcp:generate": "cd mcp-server && npm run generate:all",
23
+ "mcp:dev": "cd mcp-server && npm run dev",
24
+ "mcp:build": "cd mcp-server && npm run build",
25
+ "mcp:start": "cd mcp-server && npm start",
26
+ "release": "npm ci && npm run build && npm publish"
27
+ },
28
+ "main": "./library/index.mjs",
29
+ "module": "./library/index.mjs",
30
+ "types": "./library/types/index.d.ts",
31
+ "sideEffects": [
32
+ "**/*.css",
33
+ "./library/plugin.mjs"
34
+ ],
35
+ "exports": {
36
+ ".": {
37
+ "types": "./library/types/index.d.ts",
38
+ "import": "./library/index.mjs",
39
+ "default": "./library/index.mjs"
40
+ },
41
+ "./plugin": {
42
+ "types": "./library/types/plugin.d.ts",
43
+ "import": "./library/plugin.mjs",
44
+ "default": "./library/plugin.mjs"
45
+ },
46
+ "./services": {
47
+ "types": "./library/types/services/index.d.ts",
48
+ "import": "./library/services/index.mjs",
49
+ "default": "./library/services/index.mjs"
50
+ },
51
+ "./theme": {
52
+ "types": "./library/types/theme/index.d.ts",
53
+ "import": "./library/theme/index.mjs",
54
+ "default": "./library/theme/index.mjs"
55
+ },
56
+ "./style.css": "./library/style.css",
57
+ "./base.css": "./library/assets/assets/sass/main.css",
58
+ "./src/theme/*": "./src/theme/*",
59
+ "./src/theme/tailwindScheme": "./src/theme/tailwindScheme.js",
60
+ "./src/theme/themes.json": "./src/theme/themes.json",
61
+ "./tailwind.config": "./tailwind.config.js",
62
+ "./library/types/*": "./library/types/*.d.ts"
63
+ },
64
+ "files": [
65
+ "library",
66
+ "src/theme",
67
+ "tailwind.config.js",
68
+ "tailwind.config.d.ts"
69
+ ],
70
+ "engines": {
71
+ "node": ">= 20"
72
+ },
73
+ "peerDependencies": {
74
+ "@codemirror/lang-html": "^6.0.0",
75
+ "@codemirror/lang-json": "^6.0.1",
76
+ "@codemirror/lang-markdown": "^6.0.0",
77
+ "@lucide/vue": "^1.16.0",
78
+ "@milkdown/crepe": "^7.15.5",
79
+ "@milkdown/kit": "^7.15.5",
80
+ "@milkdown/utils": "^7.15.5",
81
+ "@milkdown/vue": "^7.15.5",
82
+ "@prosemirror-adapter/vue": "^0.4.1",
83
+ "@vueuse/core": ">=10.7.2",
84
+ "codemirror": "^6.0.1",
85
+ "dayjs": "^1.11.19",
86
+ "element-plus": "^2.11.3",
87
+ "highlight.js": "^11.6.0",
88
+ "libphonenumber-js": "^1.10.13",
89
+ "lodash-es": "^4.17.21",
90
+ "maska": "^3.2.0",
91
+ "pdfjs-dist": "^2.9.359",
92
+ "vue": "^3.5.13",
93
+ "vue-advanced-cropper": "^2.8.3",
94
+ "vue-codemirror6": "^1.3.12",
95
+ "wavesurfer.js": "^7.7.15",
96
+ "xlsx": "^0.18.5"
97
+ },
98
+ "devDependencies": {
99
+ "@codemirror/lang-json": "^6.0.1",
100
+ "@fullhuman/postcss-purgecss": "^7.0.2",
101
+ "@highlightjs/vue-plugin": "^2.1.0",
102
+ "@lucide/vue": "^1.16.0",
103
+ "@milkdown/crepe": "7.15.5",
104
+ "@milkdown/kit": "7.15.5",
105
+ "@milkdown/utils": "7.15.5",
106
+ "@milkdown/vue": "7.15.5",
107
+ "@prosemirror-adapter/vue": "^0.4.1",
108
+ "@types/json-schema": "^7.0.15",
109
+ "@types/lodash-es": "^4.17.12",
110
+ "@types/node": "^18.7.6",
111
+ "@types/wavesurfer.js": "^6.0.3",
112
+ "@types/webfontloader": "^1.6.38",
113
+ "@vitejs/plugin-vue": "5.0.3",
114
+ "@vitest/coverage-v8": "3.2.4",
115
+ "@vitest/ui": "3.2.4",
116
+ "@voicenter-team/aws-uploader": "^1.0.10",
117
+ "@voicenter-team/eslint-config-vue": "^1.0.21",
118
+ "@vue/server-renderer": "^3.5.13",
119
+ "@vue/test-utils": "^2.4.6",
120
+ "@vueuse/core": "10.7.2",
121
+ "autoprefixer": "10.4.17",
122
+ "axios": "^1.6.0",
123
+ "chalk": "4.1.2",
124
+ "codemirror": "^6.0.1",
125
+ "cross-env": "^7.0.3",
126
+ "dotenv": "^16.4.7",
127
+ "eslint": "^8.57.1",
128
+ "eslint-plugin-standard": "^5.0.0",
129
+ "eslint-plugin-vue": "9.21.1",
130
+ "highlight.js": "^11.6.0",
131
+ "jsdom": "^26.1.0",
132
+ "pdfjs-dist": "2.9.359",
133
+ "postcss": "8.4.34",
134
+ "readline-sync": "^1.4.10",
135
+ "sass": "1.93.3",
136
+ "tailwindcss": "^3.1.8",
137
+ "terser": "^5.44.0",
138
+ "typescript": "5.3.3",
139
+ "unplugin-element-plus": "^0.4.1",
140
+ "vite": "^5.4.6",
141
+ "vite-bundle-analyzer": "^0.15.2",
142
+ "vite-plugin-compression": "^0.5.1",
143
+ "vite-plugin-dts": "3.7.2",
144
+ "vite-plugin-inspect": "0.8.1",
145
+ "vite-plugin-lib-inject-css": "^2.2.2",
146
+ "vite-plugin-static-copy": "0.17.1",
147
+ "vitest": "^3.2.4",
148
+ "vue-advanced-cropper": "^2.8.3",
149
+ "vue-codemirror6": "^1.3.12",
150
+ "vue-component-type-helpers": "^1.8.27",
151
+ "vue-router": "4.2.5",
152
+ "vue-tsc": "1.8.27",
153
+ "wavesurfer.js": "^7.7.15",
154
+ "xlsx": "0.18.5"
155
+ }
156
+ }