@gct-paas/core-components 0.1.5-dev.10

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 (46) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/LICENSE +21 -0
  3. package/README.md +1 -0
  4. package/dist/IconNext-C8JnjNsP.js +1 -0
  5. package/dist/index.min.css +2 -0
  6. package/dist/loader.esm.min.js +1 -0
  7. package/dist/types-u7a7rngw.js +1 -0
  8. package/es/_virtual/_plugin-vue_export-helper.mjs +8 -0
  9. package/es/assets-svg-icon/assets-svg-icon.css +188 -0
  10. package/es/assets-svg-icon/assets-svg-icon.d.ts +134 -0
  11. package/es/assets-svg-icon/assets-svg-icon.mjs +167 -0
  12. package/es/assets-svg-icon/request.d.ts +2 -0
  13. package/es/assets-svg-icon/request.mjs +68 -0
  14. package/es/assets-svg-icon/utils.d.ts +9 -0
  15. package/es/assets-svg-icon/utils.mjs +23 -0
  16. package/es/assets-svg-icon/validate.d.ts +4 -0
  17. package/es/assets-svg-icon/validate.mjs +29 -0
  18. package/es/create-app-vue.d.ts +9 -0
  19. package/es/create-app-vue.mjs +23 -0
  20. package/es/icon-next/data/icons.data.d.ts +5 -0
  21. package/es/icon-next/hooks/useIconAsset.d.ts +16 -0
  22. package/es/icon-next/hooks/useIconAsset.mjs +36 -0
  23. package/es/icon-next/hooks/useIconPark.d.ts +16 -0
  24. package/es/icon-next/hooks/useIconPark.mjs +52 -0
  25. package/es/icon-next/hooks/useIconPlatform.d.ts +8 -0
  26. package/es/icon-next/hooks/useIconPlatform.mjs +43 -0
  27. package/es/icon-next/index.d.ts +43 -0
  28. package/es/icon-next/index.mjs +10 -0
  29. package/es/icon-next/src/IconNext.vue.d.ts +40 -0
  30. package/es/icon-next/src/IconNext.vue.mjs +7 -0
  31. package/es/icon-next/src/IconNext.vue_vue_type_script_setup_true_name_IconNext_lang.mjs +113 -0
  32. package/es/icon-next/src/IconNext.vue_vue_type_style_index_0_scoped_0940cc40_lang.css +18 -0
  33. package/es/icon-next/types/index.d.ts +17 -0
  34. package/es/icon-next/types/index.mjs +11 -0
  35. package/es/index.d.ts +6 -0
  36. package/es/index.mjs +10 -0
  37. package/es/loader.d.ts +1 -0
  38. package/es/svg-icon/svg-icon.vue.d.ts +40 -0
  39. package/es/svg-icon/svg-icon.vue.mjs +6 -0
  40. package/es/svg-icon/svg-icon.vue_vue_type_script_setup_true_name_SvgIcon_lang.mjs +53 -0
  41. package/es/svg-icon/svg-icon.vue_vue_type_style_index_0_lang.css +73 -0
  42. package/es/types/index.d.ts +1 -0
  43. package/es/wujie-container/wujie-container.css +74 -0
  44. package/es/wujie-container/wujie-container.d.ts +11 -0
  45. package/es/wujie-container/wujie-container.mjs +61 -0
  46. package/package.json +68 -0
@@ -0,0 +1,9 @@
1
+ export declare const isStr: (val: any) => val is string;
2
+ export declare const isSrc: (str: string) => boolean;
3
+ export declare const getSrc: (src: string | undefined) => string | null;
4
+ /**
5
+ * Returns `true` if the document or host element
6
+ * has a `dir` set to `rtl`. The host value will always
7
+ * take priority over the root document value.
8
+ */
9
+ export declare const isRTL: (hostEl?: Pick<HTMLElement, "dir">) => boolean;
@@ -0,0 +1,23 @@
1
+ //#region src/assets-svg-icon/utils.ts
2
+ var isStr = (val) => typeof val === "string";
3
+ var isSrc = (str) => str.length > 0 && /(\/|\.)/.test(str);
4
+ var getSrc = (src) => {
5
+ if (isStr(src)) {
6
+ src = src.trim();
7
+ if (isSrc(src)) return src;
8
+ }
9
+ return null;
10
+ };
11
+ /**
12
+ * Returns `true` if the document or host element
13
+ * has a `dir` set to `rtl`. The host value will always
14
+ * take priority over the root document value.
15
+ */
16
+ var isRTL = (hostEl) => {
17
+ if (hostEl) {
18
+ if (hostEl.dir !== "") return hostEl.dir.toLowerCase() === "rtl";
19
+ }
20
+ return document?.dir.toLowerCase() === "rtl";
21
+ };
22
+ //#endregion
23
+ export { getSrc, isRTL, isStr };
@@ -0,0 +1,4 @@
1
+ export declare const validateContent: (svgContent: string) => string;
2
+ export declare const isValid: (elm: HTMLElement) => boolean;
3
+ export declare const isSvgDataUrl: (url: string) => boolean;
4
+ export declare const isEncodedDataUrl: (url: string) => boolean;
@@ -0,0 +1,29 @@
1
+ import { isStr } from "./utils.mjs";
2
+ //#region src/assets-svg-icon/validate.ts
3
+ var validateContent = (svgContent) => {
4
+ const div = document.createElement("div");
5
+ div.innerHTML = svgContent;
6
+ for (let i = div.childNodes.length - 1; i >= 0; i--) if (div.childNodes[i].nodeName.toLowerCase() !== "svg") div.removeChild(div.childNodes[i]);
7
+ const svgElm = div.firstElementChild;
8
+ if (svgElm && svgElm.nodeName.toLowerCase() === "svg") {
9
+ const svgClass = svgElm.getAttribute("class") || "";
10
+ svgElm.setAttribute("class", (svgClass + " s-ion-icon").trim());
11
+ if (isValid(svgElm)) return div.innerHTML;
12
+ }
13
+ return "";
14
+ };
15
+ var isValid = (elm) => {
16
+ if (elm.nodeType === 1) {
17
+ if (elm.nodeName.toLowerCase() === "script") return false;
18
+ for (let i = 0; i < elm.attributes.length; i++) {
19
+ const name = elm.attributes[i].name;
20
+ if (isStr(name) && name.toLowerCase().indexOf("on") === 0) return false;
21
+ }
22
+ for (let i = 0; i < elm.childNodes.length; i++) if (!isValid(elm.childNodes[i])) return false;
23
+ }
24
+ return true;
25
+ };
26
+ var isSvgDataUrl = (url) => url.startsWith("data:image/svg+xml");
27
+ var isEncodedDataUrl = (url) => url.indexOf(";utf8,") !== -1;
28
+ //#endregion
29
+ export { isEncodedDataUrl, isSvgDataUrl, validateContent };
@@ -0,0 +1,9 @@
1
+ import { App } from 'vue';
2
+ /**
3
+ * 核心 Components 库的外部使用注册,在创建 app 时调用
4
+ *
5
+ * @export
6
+ * @param {App} app
7
+ * @return {*} {Promise<void>}
8
+ */
9
+ export declare function coreComponentsCreateAppVue(app: App): Promise<void>;
@@ -0,0 +1,23 @@
1
+ import { AssetsSvgIcon } from "./assets-svg-icon/assets-svg-icon.mjs";
2
+ import svg_icon_default from "./svg-icon/svg-icon.vue.mjs";
3
+ import { WuJieContainer } from "./wujie-container/wujie-container.mjs";
4
+ import { IconNext } from "./icon-next/index.mjs";
5
+ //#region src/create-app-vue.ts
6
+ var isRegistered = false;
7
+ /**
8
+ * 核心 Components 库的外部使用注册,在创建 app 时调用
9
+ *
10
+ * @export
11
+ * @param {App} app
12
+ * @return {*} {Promise<void>}
13
+ */
14
+ async function coreComponentsCreateAppVue(app) {
15
+ if (isRegistered) return;
16
+ isRegistered = true;
17
+ app.component(AssetsSvgIcon.name, AssetsSvgIcon);
18
+ app.component(svg_icon_default.name, svg_icon_default);
19
+ app.component(WuJieContainer.name, WuJieContainer);
20
+ app.component("IconNext", IconNext);
21
+ }
22
+ //#endregion
23
+ export { coreComponentsCreateAppVue };
@@ -0,0 +1,5 @@
1
+ declare const _default: {
2
+ prefix: string;
3
+ icons: string[];
4
+ };
5
+ export default _default;
@@ -0,0 +1,16 @@
1
+ export declare function useIconAsset(): {
2
+ getIconAssetCats: () => Promise<{
3
+ id: string;
4
+ name: string;
5
+ children: {
6
+ id: string;
7
+ name: string;
8
+ icons?: {
9
+ id: string;
10
+ name: string;
11
+ _filter_: string[];
12
+ }[] | undefined;
13
+ children?: /*elided*/ any[] | undefined;
14
+ }[];
15
+ }[]>;
16
+ };
@@ -0,0 +1,36 @@
1
+ import { IconNamespaceEnum } from "../types/index.mjs";
2
+ import { computed, ref } from "vue";
3
+ //#region src/icon-next/hooks/useIconAsset.ts
4
+ var iconAssetIcons = ref([]);
5
+ var iconParkCats = computed(() => {
6
+ return [{
7
+ id: "IconAsset",
8
+ name: "资产图标",
9
+ children: iconAssetIcons.value
10
+ }].filter((i) => i.children?.length);
11
+ });
12
+ function useIconAsset() {
13
+ async function getIconAssetCats() {
14
+ if (iconAssetIcons.value.length > 0) return iconParkCats.value;
15
+ const params = { assetsModule: "ICON" };
16
+ iconAssetIcons.value = await Promise.all([_api.platform.category.getList(params), _api.platform.assets.getList(params)]).then(([catRes, iconRes]) => {
17
+ return catRes?.map((c) => {
18
+ return {
19
+ id: `${c.id}`,
20
+ name: c.name,
21
+ icons: iconRes?.filter((i) => i.categoryId === c.id).map((item) => {
22
+ Object.assign(item, {
23
+ id: `${IconNamespaceEnum.Asset}:${item.path}`,
24
+ _filter_: [item.name]
25
+ });
26
+ return item;
27
+ })
28
+ };
29
+ }).filter((i) => i.icons?.length);
30
+ });
31
+ return iconParkCats.value;
32
+ }
33
+ return { getIconAssetCats };
34
+ }
35
+ //#endregion
36
+ export { useIconAsset };
@@ -0,0 +1,16 @@
1
+ export declare function useIconPark(): {
2
+ getIconParkCats: () => {
3
+ id: string;
4
+ name: string;
5
+ children: {
6
+ id: string;
7
+ name: string;
8
+ icons?: {
9
+ id: string;
10
+ name: string;
11
+ _filter_: string[];
12
+ }[] | undefined;
13
+ children?: /*elided*/ any[] | undefined;
14
+ }[];
15
+ }[];
16
+ };
@@ -0,0 +1,52 @@
1
+ import { IconNamespaceEnum } from "../types/index.mjs";
2
+ import { computed, ref } from "vue";
3
+ import IconParkJson from "@icon-park/vue-next/icons.json";
4
+ //#region src/icon-next/hooks/useIconPark.ts
5
+ var CategoyEnum = /* @__PURE__ */ function(CategoyEnum) {
6
+ CategoyEnum["Base"] = "Base";
7
+ CategoyEnum["Others"] = "Others";
8
+ return CategoyEnum;
9
+ }(CategoyEnum || {});
10
+ var iconParkIcons = ref([]);
11
+ var iconParkCats = computed(() => {
12
+ return [{
13
+ id: "IconPark",
14
+ name: "IconPark",
15
+ children: iconParkIcons.value
16
+ }];
17
+ });
18
+ function useIconPark() {
19
+ function getIconParkCats() {
20
+ if (iconParkIcons.value.length > 0) return iconParkCats.value;
21
+ const cats = [];
22
+ IconParkJson.forEach((item) => {
23
+ const icon = {
24
+ ...item,
25
+ id: `${IconNamespaceEnum.IconPark}:${item.name}`,
26
+ _filter_: [
27
+ ...item.tag,
28
+ item.title,
29
+ item.name
30
+ ]
31
+ };
32
+ let category = cats.find((c) => c.id === icon.category);
33
+ if (category) category.icons.push(icon);
34
+ else {
35
+ category = {
36
+ id: icon.category,
37
+ name: icon.categoryCN,
38
+ icons: [icon]
39
+ };
40
+ cats.push(category);
41
+ }
42
+ });
43
+ const base = cats.filter((c) => c.id === CategoyEnum.Base);
44
+ const others = cats.filter((c) => c.id === CategoyEnum.Others);
45
+ const middle = cats.filter((c) => ![CategoyEnum.Base, CategoyEnum.Others].includes(c.id));
46
+ iconParkIcons.value = base.concat(middle, others);
47
+ return iconParkCats.value;
48
+ }
49
+ return { getIconParkCats };
50
+ }
51
+ //#endregion
52
+ export { useIconPark };
@@ -0,0 +1,8 @@
1
+ import { ICategory } from '../types';
2
+ export declare function useIconPlatform(): {
3
+ getIconPlatformCats: () => {
4
+ id: string;
5
+ name: string;
6
+ icons: ICategory[];
7
+ }[];
8
+ };
@@ -0,0 +1,43 @@
1
+ import { IconNamespaceEnum } from "../types/index.mjs";
2
+ import { computed } from "vue";
3
+ import { iconsNames } from "@gct-paas/platform-icons";
4
+ //#region src/icon-next/hooks/useIconPlatform.ts
5
+ var iconPlatformCats = computed(() => {
6
+ return [{
7
+ id: "medicalCare",
8
+ name: "医疗器械",
9
+ icons: medicalCareIcons.value
10
+ }, {
11
+ id: "IconPlatform",
12
+ name: "平台图标",
13
+ icons: platformIcons.value
14
+ }];
15
+ });
16
+ var platformIcons = computed(() => {
17
+ return iconsNames.filter((e) => /^(icon-platform)/.test(e)).map((e) => {
18
+ const iconName = e.replace(/icon-/g, "");
19
+ return {
20
+ id: `${IconNamespaceEnum.Platform}:${iconName}`,
21
+ name: iconName,
22
+ _filter_: [iconName]
23
+ };
24
+ });
25
+ });
26
+ var medicalCareIcons = computed(() => {
27
+ return iconsNames.filter((e) => /^(icon-medicalCare)/.test(e)).map((e) => {
28
+ const iconName = e.replace(/icon-/g, "");
29
+ return {
30
+ id: `${IconNamespaceEnum.Platform}:${iconName}`,
31
+ name: e.replace(/icon-medicalCare-/g, ""),
32
+ _filter_: [iconName]
33
+ };
34
+ });
35
+ });
36
+ function useIconPlatform() {
37
+ function getIconPlatformCats() {
38
+ return iconPlatformCats.value;
39
+ }
40
+ return { getIconPlatformCats };
41
+ }
42
+ //#endregion
43
+ export { useIconPlatform };
@@ -0,0 +1,43 @@
1
+ export declare const IconNext: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
+ value: {
3
+ type: (ObjectConstructor | StringConstructor)[];
4
+ required: true;
5
+ };
6
+ color: {
7
+ type: StringConstructor;
8
+ default: string;
9
+ };
10
+ background: {
11
+ type: StringConstructor;
12
+ default: string;
13
+ };
14
+ size: {
15
+ type: NumberConstructor;
16
+ default: number;
17
+ };
18
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
19
+ value: {
20
+ type: (ObjectConstructor | StringConstructor)[];
21
+ required: true;
22
+ };
23
+ color: {
24
+ type: StringConstructor;
25
+ default: string;
26
+ };
27
+ background: {
28
+ type: StringConstructor;
29
+ default: string;
30
+ };
31
+ size: {
32
+ type: NumberConstructor;
33
+ default: number;
34
+ };
35
+ }>> & Readonly<{}>, {
36
+ color: string;
37
+ background: string;
38
+ size: number;
39
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
40
+ export * from './hooks/useIconAsset';
41
+ export * from './hooks/useIconPark';
42
+ export * from './hooks/useIconPlatform';
43
+ export * from './types/index';
@@ -0,0 +1,10 @@
1
+ import "./types/index.mjs";
2
+ import "./hooks/useIconAsset.mjs";
3
+ import "./hooks/useIconPark.mjs";
4
+ import "./hooks/useIconPlatform.mjs";
5
+ import { defineAsyncComponent } from "vue";
6
+ import "@gct-paas/platform-icons";
7
+ //#region src/icon-next/index.ts
8
+ var IconNext = defineAsyncComponent(() => import("./src/IconNext.vue.mjs"));
9
+ //#endregion
10
+ export { IconNext };
@@ -0,0 +1,40 @@
1
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
+ value: {
3
+ type: (ObjectConstructor | StringConstructor)[];
4
+ required: true;
5
+ };
6
+ color: {
7
+ type: StringConstructor;
8
+ default: string;
9
+ };
10
+ background: {
11
+ type: StringConstructor;
12
+ default: string;
13
+ };
14
+ size: {
15
+ type: NumberConstructor;
16
+ default: number;
17
+ };
18
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
19
+ value: {
20
+ type: (ObjectConstructor | StringConstructor)[];
21
+ required: true;
22
+ };
23
+ color: {
24
+ type: StringConstructor;
25
+ default: string;
26
+ };
27
+ background: {
28
+ type: StringConstructor;
29
+ default: string;
30
+ };
31
+ size: {
32
+ type: NumberConstructor;
33
+ default: number;
34
+ };
35
+ }>> & Readonly<{}>, {
36
+ color: string;
37
+ background: string;
38
+ size: number;
39
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
40
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import IconNext_vue_vue_type_script_setup_true_name_IconNext_lang_default from "./IconNext.vue_vue_type_script_setup_true_name_IconNext_lang.mjs";
2
+ import './IconNext.vue_vue_type_style_index_0_scoped_0940cc40_lang.css';/* empty css */
3
+ import _plugin_vue_export_helper_default from "../../_virtual/_plugin-vue_export-helper.mjs";
4
+ //#region src/icon-next/src/IconNext.vue
5
+ var IconNext_default = /* @__PURE__ */ _plugin_vue_export_helper_default(IconNext_vue_vue_type_script_setup_true_name_IconNext_lang_default, [["__scopeId", "data-v-0940cc40"]]);
6
+ //#endregion
7
+ export { IconNext_default as default };
@@ -0,0 +1,113 @@
1
+ import svg_icon_default from "../../svg-icon/svg-icon.vue.mjs";
2
+ import { IconNamespaceEnum } from "../types/index.mjs";
3
+ import { computed, createBlock, createElementBlock, defineComponent, normalizeClass, normalizeStyle, openBlock, unref } from "vue";
4
+ import { VITE_MINIO_PATH } from "@gct-paas/core";
5
+ import { IconPark } from "@icon-park/vue-next/es/all";
6
+ //#region src/icon-next/src/IconNext.vue?vue&type=script&setup=true&name=IconNext&lang.ts
7
+ var IconNext_vue_vue_type_script_setup_true_name_IconNext_lang_default = /* @__PURE__ */ defineComponent({
8
+ __name: "IconNext",
9
+ props: {
10
+ value: {
11
+ type: [String, Object],
12
+ required: true
13
+ },
14
+ color: {
15
+ type: String,
16
+ default: "#FFFFFF"
17
+ },
18
+ background: {
19
+ type: String,
20
+ default: "transparent"
21
+ },
22
+ size: {
23
+ type: Number,
24
+ default: 24
25
+ }
26
+ },
27
+ setup(__props) {
28
+ function fileUrlParser(url) {
29
+ if (!url) return url;
30
+ return `${VITE_MINIO_PATH}${url.startsWith("/") ? "" : "/"}${url}`;
31
+ }
32
+ const props = __props;
33
+ /**
34
+ * 图标命名空间
35
+ */
36
+ const namespace = computed(() => {
37
+ const value = props.value;
38
+ if (!value) return void 0;
39
+ if (value.includes(":")) return value.split(":")[0];
40
+ else if (value.startsWith("preset-")) return IconNamespaceEnum.Preset;
41
+ });
42
+ /**
43
+ * 图标实际名称
44
+ */
45
+ const iconName = computed(() => {
46
+ const value = props.value;
47
+ if (!value) return void 0;
48
+ if (value.includes(":")) return value.split(":")[1];
49
+ return props.value;
50
+ });
51
+ const iconBgImage = computed(() => {
52
+ return `url('${fileUrlParser(iconName.value)}')`;
53
+ });
54
+ return (_ctx, _cache) => {
55
+ return namespace.value === unref(IconNamespaceEnum).IconPark ? (openBlock(), createBlock(unref(IconPark), {
56
+ key: `${iconName.value}-${__props.size}`,
57
+ type: iconName.value,
58
+ style: normalizeStyle({
59
+ "--color": __props.color,
60
+ "--bg-color": __props.background
61
+ }),
62
+ class: "icon-next",
63
+ size: __props.size
64
+ }, null, 8, [
65
+ "type",
66
+ "style",
67
+ "size"
68
+ ])) : namespace.value === unref(IconNamespaceEnum).Preset || namespace.value === unref(IconNamespaceEnum).Platform ? (openBlock(), createBlock(svg_icon_default, {
69
+ key: 1,
70
+ name: iconName.value,
71
+ style: normalizeStyle({
72
+ "--color": __props.color,
73
+ "--bg-color": __props.background
74
+ }),
75
+ class: "icon-next",
76
+ size: __props.size
77
+ }, null, 8, [
78
+ "name",
79
+ "style",
80
+ "size"
81
+ ])) : namespace.value === unref(IconNamespaceEnum).Asset ? (openBlock(), createElementBlock("i", {
82
+ key: 2,
83
+ class: "icon-next",
84
+ style: normalizeStyle({
85
+ "--size": __props.size + "px",
86
+ "--bg-image": iconBgImage.value
87
+ })
88
+ }, null, 4)) : namespace.value === unref(IconNamespaceEnum).GctIconFont ? (openBlock(), createElementBlock("i", {
89
+ key: 3,
90
+ class: normalizeClass([`gct-iconfont ${iconName.value}`, "icon-next"]),
91
+ style: normalizeStyle({
92
+ fontSize: __props.size + "px",
93
+ lineHeight: 1,
94
+ "--color": __props.color,
95
+ "--bg-color": __props.background,
96
+ "--size": __props.size + "px"
97
+ })
98
+ }, null, 6)) : (openBlock(), createElementBlock("i", {
99
+ key: 4,
100
+ class: normalizeClass([`iconfont ${iconName.value}`, "icon-next"]),
101
+ style: normalizeStyle({
102
+ fontSize: __props.size + "px",
103
+ lineHeight: 1,
104
+ "--color": __props.color,
105
+ "--bg-color": __props.background,
106
+ "--size": __props.size + "px"
107
+ })
108
+ }, null, 6));
109
+ };
110
+ }
111
+ });
112
+ //#endregion
113
+ export { IconNext_vue_vue_type_script_setup_true_name_IconNext_lang_default as default };
@@ -0,0 +1,18 @@
1
+ .icon-next[data-v-0940cc40] {
2
+ display: inline-flex;
3
+ align-items: center;
4
+ color: var(--color);
5
+ background-color: var(--bg-color);
6
+ transition: all 0.3s;
7
+ }
8
+ .icon-next > svg[data-v-0940cc40] {
9
+ transform: translateY(1px);
10
+ }
11
+ i.icon-next[data-v-0940cc40] {
12
+ height: var(--size);
13
+ width: var(--size);
14
+ background-image: var(--bg-image);
15
+ background-size: contain;
16
+ background-position: center;
17
+ background-repeat: no-repeat;
18
+ }
@@ -0,0 +1,17 @@
1
+ export interface ICategory {
2
+ id: string;
3
+ name: string;
4
+ icons?: {
5
+ id: string;
6
+ name: string;
7
+ _filter_: string[];
8
+ }[];
9
+ children?: ICategory[];
10
+ }
11
+ export declare enum IconNamespaceEnum {
12
+ Preset = "icon-preset",
13
+ IconPark = "icon-park",
14
+ Asset = "icon-assert",
15
+ Platform = "icon-platform",
16
+ GctIconFont = "gct-iconfont"
17
+ }
@@ -0,0 +1,11 @@
1
+ //#region src/icon-next/types/index.ts
2
+ var IconNamespaceEnum = /* @__PURE__ */ function(IconNamespaceEnum) {
3
+ IconNamespaceEnum["Preset"] = "icon-preset";
4
+ IconNamespaceEnum["IconPark"] = "icon-park";
5
+ IconNamespaceEnum["Asset"] = "icon-assert";
6
+ IconNamespaceEnum["Platform"] = "icon-platform";
7
+ IconNamespaceEnum["GctIconFont"] = "gct-iconfont";
8
+ return IconNamespaceEnum;
9
+ }({});
10
+ //#endregion
11
+ export { IconNamespaceEnum };
package/es/index.d.ts ADDED
@@ -0,0 +1,6 @@
1
+ import { AssetsSvgIcon } from './assets-svg-icon/assets-svg-icon';
2
+ import { default as SvgIcon } from './svg-icon/svg-icon.vue';
3
+ import { WuJieContainer } from './wujie-container/wujie-container';
4
+ export { AssetsSvgIcon, SvgIcon, WuJieContainer };
5
+ export * from './icon-next';
6
+ export { coreComponentsCreateAppVue } from './create-app-vue';
package/es/index.mjs ADDED
@@ -0,0 +1,10 @@
1
+ import { AssetsSvgIcon } from "./assets-svg-icon/assets-svg-icon.mjs";
2
+ import svg_icon_default from "./svg-icon/svg-icon.vue.mjs";
3
+ import { WuJieContainer } from "./wujie-container/wujie-container.mjs";
4
+ import { IconNamespaceEnum } from "./icon-next/types/index.mjs";
5
+ import { useIconAsset } from "./icon-next/hooks/useIconAsset.mjs";
6
+ import { useIconPark } from "./icon-next/hooks/useIconPark.mjs";
7
+ import { useIconPlatform } from "./icon-next/hooks/useIconPlatform.mjs";
8
+ import { IconNext } from "./icon-next/index.mjs";
9
+ import { coreComponentsCreateAppVue } from "./create-app-vue.mjs";
10
+ export { AssetsSvgIcon, IconNamespaceEnum, IconNext, svg_icon_default as SvgIcon, WuJieContainer, coreComponentsCreateAppVue, useIconAsset, useIconPark, useIconPlatform };
package/es/loader.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from './index';
@@ -0,0 +1,40 @@
1
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
+ prefix: {
3
+ type: StringConstructor;
4
+ default: string;
5
+ };
6
+ name: {
7
+ type: StringConstructor;
8
+ required: true;
9
+ };
10
+ size: {
11
+ type: (NumberConstructor | StringConstructor)[];
12
+ default: number;
13
+ };
14
+ spin: {
15
+ type: BooleanConstructor;
16
+ default: boolean;
17
+ };
18
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
19
+ prefix: {
20
+ type: StringConstructor;
21
+ default: string;
22
+ };
23
+ name: {
24
+ type: StringConstructor;
25
+ required: true;
26
+ };
27
+ size: {
28
+ type: (NumberConstructor | StringConstructor)[];
29
+ default: number;
30
+ };
31
+ spin: {
32
+ type: BooleanConstructor;
33
+ default: boolean;
34
+ };
35
+ }>> & Readonly<{}>, {
36
+ prefix: string;
37
+ size: string | number;
38
+ spin: boolean;
39
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, SVGSVGElement>;
40
+ export default _default;
@@ -0,0 +1,6 @@
1
+ import svg_icon_vue_vue_type_script_setup_true_name_SvgIcon_lang_default from "./svg-icon.vue_vue_type_script_setup_true_name_SvgIcon_lang.mjs";
2
+ import './svg-icon.vue_vue_type_style_index_0_lang.css';/* empty css */
3
+ //#region src/svg-icon/svg-icon.vue
4
+ var svg_icon_default = svg_icon_vue_vue_type_script_setup_true_name_SvgIcon_lang_default;
5
+ //#endregion
6
+ export { svg_icon_default as default };