@robot-admin/naive-ui-components 0.37.2 → 0.39.0
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.
- package/CHANGELOG.md +19 -0
- package/README.md +7 -2
- package/README_EN.md +7 -2
- package/dist/C_AntV.css +30 -30
- package/dist/C_AudioPlayer.css +4 -4
- package/dist/C_Captcha.css +31 -19
- package/dist/C_FilePreview.css +1 -1
- package/dist/C_Form.base.css +61 -58
- package/dist/C_Form.css +61 -58
- package/dist/C_GlobalSearch.css +12 -12
- package/dist/C_Guide.css +6 -6
- package/dist/C_Guide2.cjs +1 -1
- package/dist/C_Guide2.js +1 -1
- package/dist/C_Login.css +139 -112
- package/dist/C_Login2.cjs +1 -1
- package/dist/C_Login2.js +1 -1
- package/dist/C_NotificationCenter.css +91 -91
- package/dist/C_NotificationCenter2.cjs +1 -1
- package/dist/C_NotificationCenter2.js +1 -1
- package/dist/C_Table.base.css +225 -215
- package/dist/C_Table.css +164 -157
- package/dist/C_Table.d.cts +1 -0
- package/dist/C_Table2.cjs +4 -4
- package/dist/C_Table2.js +4 -4
- package/dist/C_Timeline.css +2 -2
- package/dist/C_Tree.d.cts +1 -0
- package/dist/C_VideoPlayer.css +26 -26
- package/dist/C_VideoPlayer2.cjs +1 -1
- package/dist/C_VideoPlayer2.js +1 -1
- package/dist/C_VtableGantt.css +34 -32
- package/dist/C_WorkFlow.css +35 -35
- package/dist/C_WorkFlow2.cjs +1 -1
- package/dist/C_WorkFlow2.js +1 -1
- package/dist/Card.cjs +1 -1
- package/dist/Card.js +1 -1
- package/dist/UML.cjs +1 -1
- package/dist/UML.js +1 -1
- package/dist/component-config.d.ts +1 -1
- package/dist/config.d.cts +2 -2
- package/dist/config.d.ts +2 -2
- package/dist/constants3.d.cts +1 -1
- package/dist/constants3.d.ts +1 -1
- package/dist/constants4.d.cts +7 -7
- package/dist/constants4.d.ts +7 -7
- package/dist/constants5.d.cts +2 -2
- package/dist/constants5.d.ts +2 -2
- package/dist/context.d.cts +1 -1
- package/dist/data2.d.cts +4 -4
- package/dist/data2.d.ts +4 -4
- package/dist/editors.d.cts +6 -6
- package/dist/editors.d.ts +6 -6
- package/dist/graphics.cjs +1 -1
- package/dist/graphics.d.cts +0 -45
- package/dist/graphics.d.ts +0 -45
- package/dist/graphics.js +1 -1
- package/dist/index.d.cts +3 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.vue.d.cts +3 -3
- package/dist/index.vue.d.ts +3 -3
- package/dist/index10.vue.d.ts +4 -4
- package/dist/index11.vue.d.cts +4 -4
- package/dist/index11.vue.d.ts +4 -4
- package/dist/index12.vue.d.cts +4 -4
- package/dist/index13.vue.d.ts +3 -3
- package/dist/index14.vue.d.cts +3 -3
- package/dist/index15.vue.d.ts +2 -2
- package/dist/index16.vue.d.cts +2 -2
- package/dist/index16.vue.d.ts +1 -1
- package/dist/index17.vue.d.cts +1 -1
- package/dist/index17.vue.d.ts +6 -6
- package/dist/index18.vue.d.cts +6 -6
- package/dist/index18.vue.d.ts +1 -1
- package/dist/index19.vue.d.cts +1 -1
- package/dist/index20.vue.d.ts +1 -1
- package/dist/index21.vue.d.cts +1 -1
- package/dist/index27.vue.d.cts +2 -2
- package/dist/index27.vue.d.ts +2 -2
- package/dist/index28.vue.d.cts +1 -1
- package/dist/index28.vue.d.ts +1 -1
- package/dist/index3.vue.d.cts +2 -2
- package/dist/index3.vue.d.ts +2 -2
- package/dist/index31.vue.d.cts +3 -3
- package/dist/index31.vue.d.ts +3 -3
- package/dist/index32.vue.d.cts +2 -2
- package/dist/index32.vue.d.ts +2 -2
- package/dist/index4.vue.d.cts +5 -5
- package/dist/index4.vue.d.ts +5 -5
- package/dist/mapUtils.d.cts +3 -3
- package/dist/mapUtils.d.ts +3 -3
- package/dist/shared-tokens.css +1 -1
- package/dist/style.css +607 -568
- package/dist/theme.cjs +1 -1
- package/dist/theme.d.cts +32 -8
- package/dist/theme.d.ts +32 -8
- package/dist/theme.js +1 -1
- package/dist/theme2.cjs +1 -1
- package/dist/theme2.js +1 -1
- package/dist/useCollapsePanel.d.cts +3 -3
- package/dist/useCollapsePanel.d.ts +3 -3
- package/dist/useComponentTheme.cjs +1 -1
- package/dist/useComponentTheme.js +1 -1
- package/dist/useCropperCore.d.cts +6 -6
- package/dist/useCropperCore.d.ts +6 -6
- package/dist/useDynamicFormState.d.cts +2 -2
- package/dist/useDynamicFormState.d.ts +2 -2
- package/dist/useEdgeInteraction.d.cts +1 -1
- package/dist/useEdgeInteraction.d.ts +1 -1
- package/dist/useFullscreen.d.cts +1 -1
- package/dist/useFullscreen.d.ts +1 -1
- package/dist/useInfiniteScroll.d.cts +1 -1
- package/dist/useInfiniteScroll.d.ts +1 -1
- package/dist/useQRCode.d.cts +5 -5
- package/dist/useQRCode.d.ts +5 -5
- package/dist/useSignatureHistory.d.cts +3 -3
- package/dist/useSignatureHistory.d.ts +3 -3
- package/dist/useSplitResize.d.cts +8 -8
- package/dist/useSplitResize.d.ts +8 -8
- package/dist/useWorkflowValidation.d.cts +84 -84
- package/dist/useWorkflowValidation.d.ts +84 -84
- package/dist/verification.d.cts +2 -2
- package/dist/verification.d.ts +2 -2
- package/docs/guides/table-density.md +12 -0
- package/docs/guides/theme.md +49 -3
- package/package.json +2 -1
package/dist/theme.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=Object.freeze({tiny:22,small:28,medium:34,large:40}),t=Object.freeze({light:Object.freeze({primary:`#2563eb`,success:`#15803d`,warning:`#b45309`,error:`#b91c1c`,info:`#0369a1`,bgBody:`#f6f8fc`,bgCard:`#ffffff`,bgSurface:`#ffffff`,bgMuted:`#f1f5f9`,bgHover:`#eaf0f8`,bgActive:`#dfe8f5`,skeletonBg:`#e2e8f0`,text1:`#1f2937`,text2:`#475569`,text3:`#64748b`,text4:`#94a3b8`,border:`#dce3ed`}),dark:Object.freeze({primary:`#60a5fa`,success:`#4ade80`,warning:`#fbbf24`,error:`#f87171`,info:`#38bdf8`,bgBody:`#111827`,bgCard:`#1f2937`,bgSurface:`#253246`,bgMuted:`#293548`,bgHover:`#303e54`,bgActive:`#3b4d68`,skeletonBg:`#354256`,text1:`#f1f5f9`,text2:`#cbd5e1`,text3:`#94a3b8`,text4:`#64748b`,border:`#40516a`})});Object.freeze(`primary.primary-hover.primary-pressed.success.warning.error.info.bg-body.bg-card.bg-surface.bg-muted.bg-hover.bg-active.text-1.text-2.text-3.text-4.border.radius.radius-sm.radius-panel.radius-lg.focus-ring.skeleton-bg.shadow-sm.shadow-md.shadow-lg.control-height-tiny.control-height-small.control-height-medium.control-height-large`.split(`.`));function n(e){if(!/^#(?:[\da-f]{3}|[\da-f]{6})$/i.test(e))throw TypeError(`Component theme colors must use #RGB or #RRGGBB`);return e.length===4?`#${e.slice(1).split(``).map(e=>e+e).join(``)}`.toLowerCase():e.toLowerCase()}function r(e,t,r){let i=n(e).slice(1);return`#${[0,2,4].map(e=>{let n=Number.parseInt(i.slice(e,e+2),16);return Math.round(n*(1-r)+t*r).toString(16).padStart(2,`0`)}).join(``)}`}function
|
|
1
|
+
const e=Object.freeze({tiny:22,small:28,medium:34,large:40}),t=Object.freeze({light:Object.freeze({primary:`#2563eb`,success:`#15803d`,warning:`#b45309`,error:`#b91c1c`,info:`#0369a1`,onSolid:`#ffffff`,bgBody:`#f6f8fc`,bgCard:`#ffffff`,bgSurface:`#ffffff`,bgMuted:`#f1f5f9`,bgHover:`#eaf0f8`,bgActive:`#dfe8f5`,skeletonBg:`#e2e8f0`,text1:`#1f2937`,text2:`#475569`,text3:`#64748b`,text4:`#94a3b8`,border:`#dce3ed`}),dark:Object.freeze({primary:`#60a5fa`,success:`#4ade80`,warning:`#fbbf24`,error:`#f87171`,info:`#38bdf8`,onSolid:`#ffffff`,bgBody:`#111827`,bgCard:`#1f2937`,bgSurface:`#253246`,bgMuted:`#293548`,bgHover:`#303e54`,bgActive:`#3b4d68`,skeletonBg:`#354256`,text1:`#f1f5f9`,text2:`#cbd5e1`,text3:`#94a3b8`,text4:`#64748b`,border:`#40516a`})});Object.freeze(`primary.primary-hover.primary-pressed.success.warning.error.info.on-solid.bg-body.bg-card.bg-surface.bg-muted.bg-hover.bg-active.text-1.text-2.text-3.text-4.border.radius.radius-sm.radius-panel.radius-lg.focus-ring.skeleton-bg.shadow-sm.shadow-md.shadow-lg.control-height-tiny.control-height-small.control-height-medium.control-height-large`.split(`.`));function n(e){if(!/^#(?:[\da-f]{3}|[\da-f]{6})$/i.test(e))throw TypeError(`Component theme colors must use #RGB or #RRGGBB`);return e.length===4?`#${e.slice(1).split(``).map(e=>e+e).join(``)}`.toLowerCase():e.toLowerCase()}function r(e,r){let i={...t[r]},a=Object.keys(i);for(let t of a)i[t]=n(e[t]??i[t]);return i}function i(e,t,r){let i=n(e).slice(1);return`#${[0,2,4].map(e=>{let n=Number.parseInt(i.slice(e,e+2),16);return Math.round(n*(1-r)+t*r).toString(16).padStart(2,`0`)}).join(``)}`}function a(e){let t=e.trim().toLowerCase();if(/^#(?:000|000000)$/.test(t))return`dark`;if(/^#(?:fff|ffffff)$/.test(t))return`light`;let r=/^#([\da-f]{3}|[\da-f]{6})$/i.test(t)?n(t).slice(1).match(/../g).map(e=>Number.parseInt(e,16)):t.match(/^rgba?\(\s*([\d.]+)[,\s]+([\d.]+)[,\s]+([\d.]+)/)?.slice(1).map(Number);return r&&r.length===3&&r.every(Number.isFinite)&&r[0]*.2126+r[1]*.7152+r[2]*.0722<128?`dark`:`light`}Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return r}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return e}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return t}});
|
package/dist/theme.d.cts
CHANGED
|
@@ -3,14 +3,30 @@ import { GlobalTheme, GlobalThemeOverrides } from "naive-ui";
|
|
|
3
3
|
//#region src/core/theme.d.ts
|
|
4
4
|
/** 包内语义标准:无 Vue/Naive UI 依赖;品牌配置与供应商主题适配分开维护。 */
|
|
5
5
|
type ComponentColorMode = 'light' | 'dark';
|
|
6
|
-
|
|
6
|
+
/** 项目可覆盖的语义色;接受 #RGB / #RRGGBB,省略的角色沿用当前模式标准。 */
|
|
7
|
+
interface ComponentThemeColors {
|
|
8
|
+
primary: string;
|
|
9
|
+
success: string;
|
|
10
|
+
warning: string;
|
|
11
|
+
error: string;
|
|
12
|
+
info: string;
|
|
13
|
+
/** 品牌/语义实色面上的文字与图标,默认白色;亮色品牌可显式设黑色。 */
|
|
14
|
+
onSolid: string;
|
|
15
|
+
bgBody: string;
|
|
16
|
+
bgCard: string;
|
|
17
|
+
bgSurface: string;
|
|
18
|
+
bgMuted: string;
|
|
19
|
+
bgHover: string;
|
|
20
|
+
bgActive: string;
|
|
21
|
+
skeletonBg: string;
|
|
22
|
+
text1: string;
|
|
23
|
+
text2: string;
|
|
24
|
+
text3: string;
|
|
25
|
+
text4: string;
|
|
26
|
+
border: string;
|
|
27
|
+
}
|
|
28
|
+
interface ComponentThemeOptions extends Partial<ComponentThemeColors> {
|
|
7
29
|
mode?: ComponentColorMode;
|
|
8
|
-
/** 品牌与状态色接受 #RGB / #RRGGBB,衍生色由同一规则计算。 */
|
|
9
|
-
primary?: string;
|
|
10
|
-
success?: string;
|
|
11
|
-
warning?: string;
|
|
12
|
-
error?: string;
|
|
13
|
-
info?: string;
|
|
14
30
|
/** 控件圆角,单位 px;面板、卡片仍保留自己的角色层级。 */
|
|
15
31
|
radius?: number;
|
|
16
32
|
}
|
|
@@ -28,6 +44,7 @@ declare const COMPONENT_COLOR_PALETTES: Readonly<{
|
|
|
28
44
|
warning: "#b45309";
|
|
29
45
|
error: "#b91c1c";
|
|
30
46
|
info: "#0369a1";
|
|
47
|
+
onSolid: "#ffffff";
|
|
31
48
|
bgBody: "#f6f8fc";
|
|
32
49
|
bgCard: "#ffffff";
|
|
33
50
|
bgSurface: "#ffffff";
|
|
@@ -47,6 +64,7 @@ declare const COMPONENT_COLOR_PALETTES: Readonly<{
|
|
|
47
64
|
warning: "#fbbf24";
|
|
48
65
|
error: "#f87171";
|
|
49
66
|
info: "#38bdf8";
|
|
67
|
+
onSolid: "#ffffff";
|
|
50
68
|
bgBody: "#111827";
|
|
51
69
|
bgCard: "#1f2937";
|
|
52
70
|
bgSurface: "#253246";
|
|
@@ -63,6 +81,12 @@ declare const COMPONENT_COLOR_PALETTES: Readonly<{
|
|
|
63
81
|
}>;
|
|
64
82
|
//#endregion
|
|
65
83
|
//#region src/adapters/naive/theme.d.ts
|
|
84
|
+
declare module 'naive-ui' {
|
|
85
|
+
interface CustomThemeCommonVars {
|
|
86
|
+
robotComponentSkeletonColor?: string;
|
|
87
|
+
robotComponentOnSolidColor?: string;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
66
90
|
interface ComponentThemeConfig {
|
|
67
91
|
theme: GlobalTheme | null;
|
|
68
92
|
themeOverrides: GlobalThemeOverrides;
|
|
@@ -70,4 +94,4 @@ interface ComponentThemeConfig {
|
|
|
70
94
|
/** 一次配置现有 NConfigProvider;不创建第二个 Provider、不写全局样式。 */
|
|
71
95
|
declare function createComponentTheme(options?: ComponentThemeOptions): ComponentThemeConfig;
|
|
72
96
|
//#endregion
|
|
73
|
-
export { ComponentColorMode as a, COMPONENT_CONTROL_HEIGHTS as i, createComponentTheme as n,
|
|
97
|
+
export { ComponentColorMode as a, COMPONENT_CONTROL_HEIGHTS as i, createComponentTheme as n, ComponentThemeColors as o, COMPONENT_COLOR_PALETTES as r, ComponentThemeOptions as s, ComponentThemeConfig as t };
|
package/dist/theme.d.ts
CHANGED
|
@@ -3,14 +3,30 @@ import { GlobalTheme, GlobalThemeOverrides } from "naive-ui";
|
|
|
3
3
|
//#region src/core/theme.d.ts
|
|
4
4
|
/** 包内语义标准:无 Vue/Naive UI 依赖;品牌配置与供应商主题适配分开维护。 */
|
|
5
5
|
type ComponentColorMode = 'light' | 'dark';
|
|
6
|
-
|
|
6
|
+
/** 项目可覆盖的语义色;接受 #RGB / #RRGGBB,省略的角色沿用当前模式标准。 */
|
|
7
|
+
interface ComponentThemeColors {
|
|
8
|
+
primary: string;
|
|
9
|
+
success: string;
|
|
10
|
+
warning: string;
|
|
11
|
+
error: string;
|
|
12
|
+
info: string;
|
|
13
|
+
/** 品牌/语义实色面上的文字与图标,默认白色;亮色品牌可显式设黑色。 */
|
|
14
|
+
onSolid: string;
|
|
15
|
+
bgBody: string;
|
|
16
|
+
bgCard: string;
|
|
17
|
+
bgSurface: string;
|
|
18
|
+
bgMuted: string;
|
|
19
|
+
bgHover: string;
|
|
20
|
+
bgActive: string;
|
|
21
|
+
skeletonBg: string;
|
|
22
|
+
text1: string;
|
|
23
|
+
text2: string;
|
|
24
|
+
text3: string;
|
|
25
|
+
text4: string;
|
|
26
|
+
border: string;
|
|
27
|
+
}
|
|
28
|
+
interface ComponentThemeOptions extends Partial<ComponentThemeColors> {
|
|
7
29
|
mode?: ComponentColorMode;
|
|
8
|
-
/** 品牌与状态色接受 #RGB / #RRGGBB,衍生色由同一规则计算。 */
|
|
9
|
-
primary?: string;
|
|
10
|
-
success?: string;
|
|
11
|
-
warning?: string;
|
|
12
|
-
error?: string;
|
|
13
|
-
info?: string;
|
|
14
30
|
/** 控件圆角,单位 px;面板、卡片仍保留自己的角色层级。 */
|
|
15
31
|
radius?: number;
|
|
16
32
|
}
|
|
@@ -28,6 +44,7 @@ declare const COMPONENT_COLOR_PALETTES: Readonly<{
|
|
|
28
44
|
warning: "#b45309";
|
|
29
45
|
error: "#b91c1c";
|
|
30
46
|
info: "#0369a1";
|
|
47
|
+
onSolid: "#ffffff";
|
|
31
48
|
bgBody: "#f6f8fc";
|
|
32
49
|
bgCard: "#ffffff";
|
|
33
50
|
bgSurface: "#ffffff";
|
|
@@ -47,6 +64,7 @@ declare const COMPONENT_COLOR_PALETTES: Readonly<{
|
|
|
47
64
|
warning: "#fbbf24";
|
|
48
65
|
error: "#f87171";
|
|
49
66
|
info: "#38bdf8";
|
|
67
|
+
onSolid: "#ffffff";
|
|
50
68
|
bgBody: "#111827";
|
|
51
69
|
bgCard: "#1f2937";
|
|
52
70
|
bgSurface: "#253246";
|
|
@@ -63,6 +81,12 @@ declare const COMPONENT_COLOR_PALETTES: Readonly<{
|
|
|
63
81
|
}>;
|
|
64
82
|
//#endregion
|
|
65
83
|
//#region src/adapters/naive/theme.d.ts
|
|
84
|
+
declare module 'naive-ui' {
|
|
85
|
+
interface CustomThemeCommonVars {
|
|
86
|
+
robotComponentSkeletonColor?: string;
|
|
87
|
+
robotComponentOnSolidColor?: string;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
66
90
|
interface ComponentThemeConfig {
|
|
67
91
|
theme: GlobalTheme | null;
|
|
68
92
|
themeOverrides: GlobalThemeOverrides;
|
|
@@ -70,4 +94,4 @@ interface ComponentThemeConfig {
|
|
|
70
94
|
/** 一次配置现有 NConfigProvider;不创建第二个 Provider、不写全局样式。 */
|
|
71
95
|
declare function createComponentTheme(options?: ComponentThemeOptions): ComponentThemeConfig;
|
|
72
96
|
//#endregion
|
|
73
|
-
export { ComponentColorMode as a, COMPONENT_CONTROL_HEIGHTS as i, createComponentTheme as n,
|
|
97
|
+
export { ComponentColorMode as a, COMPONENT_CONTROL_HEIGHTS as i, createComponentTheme as n, ComponentThemeColors as o, COMPONENT_COLOR_PALETTES as r, ComponentThemeOptions as s, ComponentThemeConfig as t };
|
package/dist/theme.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=Object.freeze({tiny:22,small:28,medium:34,large:40}),t=Object.freeze({light:Object.freeze({primary:`#2563eb`,success:`#15803d`,warning:`#b45309`,error:`#b91c1c`,info:`#0369a1`,bgBody:`#f6f8fc`,bgCard:`#ffffff`,bgSurface:`#ffffff`,bgMuted:`#f1f5f9`,bgHover:`#eaf0f8`,bgActive:`#dfe8f5`,skeletonBg:`#e2e8f0`,text1:`#1f2937`,text2:`#475569`,text3:`#64748b`,text4:`#94a3b8`,border:`#dce3ed`}),dark:Object.freeze({primary:`#60a5fa`,success:`#4ade80`,warning:`#fbbf24`,error:`#f87171`,info:`#38bdf8`,bgBody:`#111827`,bgCard:`#1f2937`,bgSurface:`#253246`,bgMuted:`#293548`,bgHover:`#303e54`,bgActive:`#3b4d68`,skeletonBg:`#354256`,text1:`#f1f5f9`,text2:`#cbd5e1`,text3:`#94a3b8`,text4:`#64748b`,border:`#40516a`})});Object.freeze(`primary.primary-hover.primary-pressed.success.warning.error.info.bg-body.bg-card.bg-surface.bg-muted.bg-hover.bg-active.text-1.text-2.text-3.text-4.border.radius.radius-sm.radius-panel.radius-lg.focus-ring.skeleton-bg.shadow-sm.shadow-md.shadow-lg.control-height-tiny.control-height-small.control-height-medium.control-height-large`.split(`.`));function n(e){if(!/^#(?:[\da-f]{3}|[\da-f]{6})$/i.test(e))throw TypeError(`Component theme colors must use #RGB or #RRGGBB`);return e.length===4?`#${e.slice(1).split(``).map(e=>e+e).join(``)}`.toLowerCase():e.toLowerCase()}function r(e,t,r){let i=n(e).slice(1);return`#${[0,2,4].map(e=>{let n=Number.parseInt(i.slice(e,e+2),16);return Math.round(n*(1-r)+t*r).toString(16).padStart(2,`0`)}).join(``)}`}function
|
|
1
|
+
const e=Object.freeze({tiny:22,small:28,medium:34,large:40}),t=Object.freeze({light:Object.freeze({primary:`#2563eb`,success:`#15803d`,warning:`#b45309`,error:`#b91c1c`,info:`#0369a1`,onSolid:`#ffffff`,bgBody:`#f6f8fc`,bgCard:`#ffffff`,bgSurface:`#ffffff`,bgMuted:`#f1f5f9`,bgHover:`#eaf0f8`,bgActive:`#dfe8f5`,skeletonBg:`#e2e8f0`,text1:`#1f2937`,text2:`#475569`,text3:`#64748b`,text4:`#94a3b8`,border:`#dce3ed`}),dark:Object.freeze({primary:`#60a5fa`,success:`#4ade80`,warning:`#fbbf24`,error:`#f87171`,info:`#38bdf8`,onSolid:`#ffffff`,bgBody:`#111827`,bgCard:`#1f2937`,bgSurface:`#253246`,bgMuted:`#293548`,bgHover:`#303e54`,bgActive:`#3b4d68`,skeletonBg:`#354256`,text1:`#f1f5f9`,text2:`#cbd5e1`,text3:`#94a3b8`,text4:`#64748b`,border:`#40516a`})});Object.freeze(`primary.primary-hover.primary-pressed.success.warning.error.info.on-solid.bg-body.bg-card.bg-surface.bg-muted.bg-hover.bg-active.text-1.text-2.text-3.text-4.border.radius.radius-sm.radius-panel.radius-lg.focus-ring.skeleton-bg.shadow-sm.shadow-md.shadow-lg.control-height-tiny.control-height-small.control-height-medium.control-height-large`.split(`.`));function n(e){if(!/^#(?:[\da-f]{3}|[\da-f]{6})$/i.test(e))throw TypeError(`Component theme colors must use #RGB or #RRGGBB`);return e.length===4?`#${e.slice(1).split(``).map(e=>e+e).join(``)}`.toLowerCase():e.toLowerCase()}function r(e,r){let i={...t[r]},a=Object.keys(i);for(let t of a)i[t]=n(e[t]??i[t]);return i}function i(e,t,r){let i=n(e).slice(1);return`#${[0,2,4].map(e=>{let n=Number.parseInt(i.slice(e,e+2),16);return Math.round(n*(1-r)+t*r).toString(16).padStart(2,`0`)}).join(``)}`}function a(e){let t=e.trim().toLowerCase();if(/^#(?:000|000000)$/.test(t))return`dark`;if(/^#(?:fff|ffffff)$/.test(t))return`light`;let r=/^#([\da-f]{3}|[\da-f]{6})$/i.test(t)?n(t).slice(1).match(/../g).map(e=>Number.parseInt(e,16)):t.match(/^rgba?\(\s*([\d.]+)[,\s]+([\d.]+)[,\s]+([\d.]+)/)?.slice(1).map(Number);return r&&r.length===3&&r.every(Number.isFinite)&&r[0]*.2126+r[1]*.7152+r[2]*.0722<128?`dark`:`light`}export{r as a,i,e as n,a as r,t};
|
package/dist/theme2.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
require(`./chunk.cjs`);const e=require(`./theme.cjs`);let t=require(`naive-ui`);
|
|
1
|
+
require(`./chunk.cjs`);const e=require(`./theme.cjs`);let t=require(`naive-ui`);function n(e){let t=e??6;if(!Number.isFinite(t)||t<0)throw TypeError(`Component theme radius must be a finite non-negative number`);return t}function r(r={}){let i=r.mode??`light`;if(i!==`light`&&i!==`dark`)throw TypeError(`Component theme mode must be light or dark`);let a=e.a(r,i),o=n(r.radius),{primary:s,success:c,warning:l,error:u,info:d}=a,f=`1px solid ${a.border}`,p={baseColor:i===`dark`?`#000000`:`#ffffff`,textColorBase:i===`dark`?`#ffffff`:`#000000`,primaryColor:s,primaryColorHover:e.i(s,255,.14),primaryColorPressed:e.i(s,0,.14),primaryColorSuppl:s,successColor:c,successColorHover:e.i(c,255,.14),successColorPressed:e.i(c,0,.14),successColorSuppl:c,warningColor:l,warningColorHover:e.i(l,255,.14),warningColorPressed:e.i(l,0,.14),warningColorSuppl:l,errorColor:u,errorColorHover:e.i(u,255,.14),errorColorPressed:e.i(u,0,.14),errorColorSuppl:u,infoColor:d,infoColorHover:e.i(d,255,.14),infoColorPressed:e.i(d,0,.14),infoColorSuppl:d,bodyColor:a.bgBody,cardColor:a.bgCard,tableColor:a.bgCard,modalColor:a.bgSurface,popoverColor:a.bgSurface,inputColor:a.bgCard,inputColorDisabled:a.bgMuted,tableHeaderColor:a.bgMuted,tableColorHover:a.bgHover,tableColorStriped:a.bgMuted,tabColor:a.bgMuted,codeColor:a.bgMuted,tagColor:a.bgMuted,buttonColor2:a.bgMuted,buttonColor2Hover:a.bgHover,buttonColor2Pressed:a.bgActive,actionColor:a.bgMuted,hoverColor:a.bgHover,pressedColor:a.bgActive,robotComponentSkeletonColor:a.skeletonBg,robotComponentOnSolidColor:a.onSolid,borderColor:a.border,dividerColor:a.border,textColor1:a.text1,textColor2:a.text2,textColor3:a.text3,textColorDisabled:a.text4,placeholderColor:a.text3,placeholderColorDisabled:a.text4,iconColor:a.text3,iconColorHover:a.text2,iconColorPressed:a.text1,iconColorDisabled:a.text4,clearColor:a.text3,clearColorHover:a.text2,clearColorPressed:a.text1,closeIconColor:a.text3,closeIconColorHover:a.text2,closeIconColorPressed:a.text1,closeColorHover:a.bgHover,closeColorPressed:a.bgActive,progressRailColor:a.bgMuted,railColor:a.border,scrollbarColor:a.text4,scrollbarColorHover:a.text3,borderRadius:`${o}px`,borderRadiusSmall:`${Math.max(0,o-2)}px`,heightTiny:`${e.n.tiny}px`,heightSmall:`${e.n.small}px`,heightMedium:`${e.n.medium}px`,heightLarge:`${e.n.large}px`};return{theme:i===`dark`?t.darkTheme:null,themeOverrides:{common:p,Skeleton:{color:a.skeletonBg,colorEnd:a.bgHover},Tabs:{colorSegment:a.bgMuted,tabColorSegment:a.bgCard},Input:{border:f,borderDisabled:f},InternalSelection:{border:f},Checkbox:{checkMarkColor:a.onSolid,checkMarkColorDisabledChecked:a.onSolid},Radio:{colorActive:s,dotColorActive:a.onSolid,buttonColorActive:s,buttonTextColorActive:a.onSolid},Switch:{textColor:a.onSolid},Button:{textColorPrimary:a.onSolid,textColorDisabledPrimary:a.onSolid,textColorHoverPrimary:a.onSolid,textColorPressedPrimary:a.onSolid,textColorFocusPrimary:a.onSolid,textColorSuccess:a.onSolid,textColorDisabledSuccess:a.onSolid,textColorHoverSuccess:a.onSolid,textColorPressedSuccess:a.onSolid,textColorFocusSuccess:a.onSolid,textColorWarning:a.onSolid,textColorDisabledWarning:a.onSolid,textColorHoverWarning:a.onSolid,textColorPressedWarning:a.onSolid,textColorFocusWarning:a.onSolid,textColorError:a.onSolid,textColorDisabledError:a.onSolid,textColorHoverError:a.onSolid,textColorPressedError:a.onSolid,textColorFocusError:a.onSolid,textColorInfo:a.onSolid,textColorDisabledInfo:a.onSolid,textColorHoverInfo:a.onSolid,textColorPressedInfo:a.onSolid,textColorFocusInfo:a.onSolid}}}}Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return r}});
|
package/dist/theme2.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e,i as t,n
|
|
1
|
+
import{a as e,i as t,n}from"./theme.js";import{darkTheme as r}from"naive-ui";function i(e){let t=e??6;if(!Number.isFinite(t)||t<0)throw TypeError(`Component theme radius must be a finite non-negative number`);return t}function a(a={}){let o=a.mode??`light`;if(o!==`light`&&o!==`dark`)throw TypeError(`Component theme mode must be light or dark`);let s=e(a,o),c=i(a.radius),{primary:l,success:u,warning:d,error:f,info:p}=s,m=`1px solid ${s.border}`,h={baseColor:o===`dark`?`#000000`:`#ffffff`,textColorBase:o===`dark`?`#ffffff`:`#000000`,primaryColor:l,primaryColorHover:t(l,255,.14),primaryColorPressed:t(l,0,.14),primaryColorSuppl:l,successColor:u,successColorHover:t(u,255,.14),successColorPressed:t(u,0,.14),successColorSuppl:u,warningColor:d,warningColorHover:t(d,255,.14),warningColorPressed:t(d,0,.14),warningColorSuppl:d,errorColor:f,errorColorHover:t(f,255,.14),errorColorPressed:t(f,0,.14),errorColorSuppl:f,infoColor:p,infoColorHover:t(p,255,.14),infoColorPressed:t(p,0,.14),infoColorSuppl:p,bodyColor:s.bgBody,cardColor:s.bgCard,tableColor:s.bgCard,modalColor:s.bgSurface,popoverColor:s.bgSurface,inputColor:s.bgCard,inputColorDisabled:s.bgMuted,tableHeaderColor:s.bgMuted,tableColorHover:s.bgHover,tableColorStriped:s.bgMuted,tabColor:s.bgMuted,codeColor:s.bgMuted,tagColor:s.bgMuted,buttonColor2:s.bgMuted,buttonColor2Hover:s.bgHover,buttonColor2Pressed:s.bgActive,actionColor:s.bgMuted,hoverColor:s.bgHover,pressedColor:s.bgActive,robotComponentSkeletonColor:s.skeletonBg,robotComponentOnSolidColor:s.onSolid,borderColor:s.border,dividerColor:s.border,textColor1:s.text1,textColor2:s.text2,textColor3:s.text3,textColorDisabled:s.text4,placeholderColor:s.text3,placeholderColorDisabled:s.text4,iconColor:s.text3,iconColorHover:s.text2,iconColorPressed:s.text1,iconColorDisabled:s.text4,clearColor:s.text3,clearColorHover:s.text2,clearColorPressed:s.text1,closeIconColor:s.text3,closeIconColorHover:s.text2,closeIconColorPressed:s.text1,closeColorHover:s.bgHover,closeColorPressed:s.bgActive,progressRailColor:s.bgMuted,railColor:s.border,scrollbarColor:s.text4,scrollbarColorHover:s.text3,borderRadius:`${c}px`,borderRadiusSmall:`${Math.max(0,c-2)}px`,heightTiny:`${n.tiny}px`,heightSmall:`${n.small}px`,heightMedium:`${n.medium}px`,heightLarge:`${n.large}px`};return{theme:o===`dark`?r:null,themeOverrides:{common:h,Skeleton:{color:s.skeletonBg,colorEnd:s.bgHover},Tabs:{colorSegment:s.bgMuted,tabColorSegment:s.bgCard},Input:{border:m,borderDisabled:m},InternalSelection:{border:m},Checkbox:{checkMarkColor:s.onSolid,checkMarkColorDisabledChecked:s.onSolid},Radio:{colorActive:l,dotColorActive:s.onSolid,buttonColorActive:l,buttonTextColorActive:s.onSolid},Switch:{textColor:s.onSolid},Button:{textColorPrimary:s.onSolid,textColorDisabledPrimary:s.onSolid,textColorHoverPrimary:s.onSolid,textColorPressedPrimary:s.onSolid,textColorFocusPrimary:s.onSolid,textColorSuccess:s.onSolid,textColorDisabledSuccess:s.onSolid,textColorHoverSuccess:s.onSolid,textColorPressedSuccess:s.onSolid,textColorFocusSuccess:s.onSolid,textColorWarning:s.onSolid,textColorDisabledWarning:s.onSolid,textColorHoverWarning:s.onSolid,textColorPressedWarning:s.onSolid,textColorFocusWarning:s.onSolid,textColorError:s.onSolid,textColorDisabledError:s.onSolid,textColorHoverError:s.onSolid,textColorPressedError:s.onSolid,textColorFocusError:s.onSolid,textColorInfo:s.onSolid,textColorDisabledInfo:s.onSolid,textColorHoverInfo:s.onSolid,textColorPressedInfo:s.onSolid,textColorFocusInfo:s.onSolid}}}}export{a as t};
|
|
@@ -73,19 +73,19 @@ declare var __VLS_7: `header-${string}`, __VLS_8: {
|
|
|
73
73
|
type __VLS_Slots = {} & { [K in NonNullable<typeof __VLS_7>]?: (props: typeof __VLS_8) => any } & { [K in NonNullable<typeof __VLS_16>]?: (props: typeof __VLS_17) => any } & { [K in NonNullable<typeof __VLS_31>]?: (props: typeof __VLS_32) => any };
|
|
74
74
|
declare const __VLS_base: vue.DefineComponent<Props, CollapsePanelExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
75
75
|
change: (activeKeys: string[]) => any;
|
|
76
|
-
collapse: (key: string) => any;
|
|
77
76
|
expand: (key: string) => any;
|
|
77
|
+
collapse: (key: string) => any;
|
|
78
78
|
"update:activeKeys": (keys: string[]) => any;
|
|
79
79
|
}, string, vue.PublicProps, Readonly<Props> & Readonly<{
|
|
80
80
|
onChange?: ((activeKeys: string[]) => any) | undefined;
|
|
81
|
-
onCollapse?: ((key: string) => any) | undefined;
|
|
82
81
|
onExpand?: ((key: string) => any) | undefined;
|
|
82
|
+
onCollapse?: ((key: string) => any) | undefined;
|
|
83
83
|
"onUpdate:activeKeys"?: ((keys: string[]) => any) | undefined;
|
|
84
84
|
}>, {
|
|
85
85
|
bordered: boolean;
|
|
86
|
-
accordion: boolean;
|
|
87
86
|
activeKeys: string[];
|
|
88
87
|
defaultActiveKeys: string[];
|
|
88
|
+
accordion: boolean;
|
|
89
89
|
variant: CollapsePanelVariant;
|
|
90
90
|
expandIconPosition: ExpandIconPosition;
|
|
91
91
|
persistKey: string;
|
|
@@ -73,19 +73,19 @@ declare var __VLS_7: `header-${string}`, __VLS_8: {
|
|
|
73
73
|
type __VLS_Slots = {} & { [K in NonNullable<typeof __VLS_7>]?: (props: typeof __VLS_8) => any } & { [K in NonNullable<typeof __VLS_16>]?: (props: typeof __VLS_17) => any } & { [K in NonNullable<typeof __VLS_31>]?: (props: typeof __VLS_32) => any };
|
|
74
74
|
declare const __VLS_base: vue.DefineComponent<Props, CollapsePanelExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
75
75
|
change: (activeKeys: string[]) => any;
|
|
76
|
-
collapse: (key: string) => any;
|
|
77
76
|
expand: (key: string) => any;
|
|
77
|
+
collapse: (key: string) => any;
|
|
78
78
|
"update:activeKeys": (keys: string[]) => any;
|
|
79
79
|
}, string, vue.PublicProps, Readonly<Props> & Readonly<{
|
|
80
80
|
onChange?: ((activeKeys: string[]) => any) | undefined;
|
|
81
|
-
onCollapse?: ((key: string) => any) | undefined;
|
|
82
81
|
onExpand?: ((key: string) => any) | undefined;
|
|
82
|
+
onCollapse?: ((key: string) => any) | undefined;
|
|
83
83
|
"onUpdate:activeKeys"?: ((keys: string[]) => any) | undefined;
|
|
84
84
|
}>, {
|
|
85
85
|
bordered: boolean;
|
|
86
|
-
accordion: boolean;
|
|
87
86
|
activeKeys: string[];
|
|
88
87
|
defaultActiveKeys: string[];
|
|
88
|
+
accordion: boolean;
|
|
89
89
|
variant: CollapsePanelVariant;
|
|
90
90
|
expandIconPosition: ExpandIconPosition;
|
|
91
91
|
persistKey: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
require(`./chunk.cjs`);const e=require(`./theme.cjs`);let t=require(`vue`),n=require(`naive-ui`);const r={"bg-body":[`bgBody`,`bodyColor`],"bg-card":[`bgCard`,`cardColor`],"bg-surface":[`bgSurface`,`popoverColor`],"bg-muted":[`bgMuted`,`actionColor`],"bg-hover":[`bgHover`,`hoverColor`],"bg-active":[`bgActive`,`pressedColor`],"
|
|
1
|
+
require(`./chunk.cjs`);const e=require(`./theme.cjs`);let t=require(`vue`),n=require(`naive-ui`);const r={"bg-body":[`bgBody`,`bodyColor`],"bg-card":[`bgCard`,`cardColor`],"bg-surface":[`bgSurface`,`popoverColor`],"bg-muted":[`bgMuted`,`actionColor`],"bg-hover":[`bgHover`,`hoverColor`],"bg-active":[`bgActive`,`pressedColor`],"text-1":[`text1`,`textColor1`],"text-2":[`text2`,`textColor2`],"text-3":[`text3`,`textColor3`],"text-4":[`text4`,`textColorDisabled`],border:[`border`,`borderColor`]};function i(e,t){return{...Object.fromEntries(Object.entries(r).map(([n,[r,i]])=>[`--c-theme-${n}`,t?t[r]:e[i]])),"--c-theme-skeleton-bg":t?.skeletonBg??e.robotComponentSkeletonColor??e.actionColor,"--c-theme-on-solid":t?.onSolid??e.robotComponentOnSolidColor??`#ffffff`}}function a(r){let a=(0,n.useThemeVars)(),o=(0,t.useAttrs)();return(0,t.computed)(()=>{let{value:n}=a,s=e.r(n.baseColor),c=r?.()??s,l=c===s?void 0:e.t[c],{borderRadius:u}=n,d={"--c-theme-primary":n.primaryColor,"--c-theme-primary-hover":n.primaryColorHover,"--c-theme-primary-pressed":n.primaryColorPressed,"--c-theme-success":n.successColor,"--c-theme-warning":n.warningColor,"--c-theme-error":n.errorColor,"--c-theme-info":n.infoColor,...i(n,l),"--c-theme-radius":u,"--c-theme-radius-sm":n.borderRadiusSmall,"--c-theme-radius-panel":`max(8px, calc(${u} + 4px))`,"--c-theme-radius-lg":`max(12px, calc(${u} + 8px))`,"--c-theme-focus-ring":`color-mix(in srgb, ${n.primaryColor} 30%, transparent)`,"--c-theme-shadow-sm":n.boxShadow1,"--c-theme-shadow-md":n.boxShadow2,"--c-theme-shadow-lg":n.boxShadow3,"--c-theme-control-height-tiny":n.heightTiny,"--c-theme-control-height-small":n.heightSmall,"--c-theme-control-height-medium":n.heightMedium,"--c-theme-control-height-large":n.heightLarge},f=(0,t.normalizeStyle)([o.style]);if(f&&typeof f==`object`)for(let[e,t]of Object.entries(f))e.startsWith(`--c-`)&&(d[e]=t);return d})}function o(r){let i=(0,n.useThemeVars)();return(0,t.computed)(()=>r?.()??e.r(i.value.baseColor))}Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return o}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,t}from"./theme.js";import{computed as n,normalizeStyle as r,useAttrs as i}from"vue";import{useThemeVars as a}from"naive-ui";const o={"bg-body":[`bgBody`,`bodyColor`],"bg-card":[`bgCard`,`cardColor`],"bg-surface":[`bgSurface`,`popoverColor`],"bg-muted":[`bgMuted`,`actionColor`],"bg-hover":[`bgHover`,`hoverColor`],"bg-active":[`bgActive`,`pressedColor`],"
|
|
1
|
+
import{r as e,t}from"./theme.js";import{computed as n,normalizeStyle as r,useAttrs as i}from"vue";import{useThemeVars as a}from"naive-ui";const o={"bg-body":[`bgBody`,`bodyColor`],"bg-card":[`bgCard`,`cardColor`],"bg-surface":[`bgSurface`,`popoverColor`],"bg-muted":[`bgMuted`,`actionColor`],"bg-hover":[`bgHover`,`hoverColor`],"bg-active":[`bgActive`,`pressedColor`],"text-1":[`text1`,`textColor1`],"text-2":[`text2`,`textColor2`],"text-3":[`text3`,`textColor3`],"text-4":[`text4`,`textColorDisabled`],border:[`border`,`borderColor`]};function s(e,t){return{...Object.fromEntries(Object.entries(o).map(([n,[r,i]])=>[`--c-theme-${n}`,t?t[r]:e[i]])),"--c-theme-skeleton-bg":t?.skeletonBg??e.robotComponentSkeletonColor??e.actionColor,"--c-theme-on-solid":t?.onSolid??e.robotComponentOnSolidColor??`#ffffff`}}function c(o){let c=a(),l=i();return n(()=>{let{value:n}=c,i=e(n.baseColor),a=o?.()??i,u=a===i?void 0:t[a],{borderRadius:d}=n,f={"--c-theme-primary":n.primaryColor,"--c-theme-primary-hover":n.primaryColorHover,"--c-theme-primary-pressed":n.primaryColorPressed,"--c-theme-success":n.successColor,"--c-theme-warning":n.warningColor,"--c-theme-error":n.errorColor,"--c-theme-info":n.infoColor,...s(n,u),"--c-theme-radius":d,"--c-theme-radius-sm":n.borderRadiusSmall,"--c-theme-radius-panel":`max(8px, calc(${d} + 4px))`,"--c-theme-radius-lg":`max(12px, calc(${d} + 8px))`,"--c-theme-focus-ring":`color-mix(in srgb, ${n.primaryColor} 30%, transparent)`,"--c-theme-shadow-sm":n.boxShadow1,"--c-theme-shadow-md":n.boxShadow2,"--c-theme-shadow-lg":n.boxShadow3,"--c-theme-control-height-tiny":n.heightTiny,"--c-theme-control-height-small":n.heightSmall,"--c-theme-control-height-medium":n.heightMedium,"--c-theme-control-height-large":n.heightLarge},p=r([l.style]);if(p&&typeof p==`object`)for(let[e,t]of Object.entries(p))e.startsWith(`--c-`)&&(f[e]=t);return f})}function l(t){let r=a();return n(()=>t?.()??e(r.value.baseColor))}export{c as n,l as t};
|
|
@@ -51,30 +51,30 @@ interface ImageCropperEmits {
|
|
|
51
51
|
//#endregion
|
|
52
52
|
//#region src/components/C_ImageCropper/index.vue.d.ts
|
|
53
53
|
declare const __VLS_export: vue.DefineComponent<ImageCropperProps, ImageCropperExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
54
|
-
ready: () => any;
|
|
55
54
|
error: (error: Error) => any;
|
|
55
|
+
ready: () => any;
|
|
56
56
|
cancel: () => any;
|
|
57
57
|
confirm: (result: CropResult) => any;
|
|
58
58
|
crop: (result: CropResult) => any;
|
|
59
59
|
}, string, vue.PublicProps, Readonly<ImageCropperProps> & Readonly<{
|
|
60
|
-
onReady?: (() => any) | undefined;
|
|
61
60
|
onError?: ((error: Error) => any) | undefined;
|
|
61
|
+
onReady?: (() => any) | undefined;
|
|
62
62
|
onCancel?: (() => any) | undefined;
|
|
63
63
|
onConfirm?: ((result: CropResult) => any) | undefined;
|
|
64
64
|
onCrop?: ((result: CropResult) => any) | undefined;
|
|
65
65
|
}>, {
|
|
66
66
|
disabled: boolean;
|
|
67
67
|
height: string | number;
|
|
68
|
-
modalTitle: string;
|
|
69
|
-
src: string;
|
|
70
|
-
modal: boolean;
|
|
71
68
|
showToolbar: boolean;
|
|
72
69
|
aspectRatio: number;
|
|
70
|
+
src: string;
|
|
71
|
+
showPreview: boolean;
|
|
72
|
+
modalTitle: string;
|
|
73
|
+
modal: boolean;
|
|
73
74
|
outputFormat: CropOutputFormat;
|
|
74
75
|
outputQuality: number;
|
|
75
76
|
maxOutputWidth: number;
|
|
76
77
|
maxOutputHeight: number;
|
|
77
|
-
showPreview: boolean;
|
|
78
78
|
circular: boolean;
|
|
79
79
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
80
80
|
declare const _default: typeof __VLS_export;
|
package/dist/useCropperCore.d.ts
CHANGED
|
@@ -51,30 +51,30 @@ interface ImageCropperEmits {
|
|
|
51
51
|
//#endregion
|
|
52
52
|
//#region src/components/C_ImageCropper/index.vue.d.ts
|
|
53
53
|
declare const __VLS_export: vue.DefineComponent<ImageCropperProps, ImageCropperExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
54
|
-
ready: () => any;
|
|
55
54
|
error: (error: Error) => any;
|
|
55
|
+
ready: () => any;
|
|
56
56
|
cancel: () => any;
|
|
57
57
|
confirm: (result: CropResult) => any;
|
|
58
58
|
crop: (result: CropResult) => any;
|
|
59
59
|
}, string, vue.PublicProps, Readonly<ImageCropperProps> & Readonly<{
|
|
60
|
-
onReady?: (() => any) | undefined;
|
|
61
60
|
onError?: ((error: Error) => any) | undefined;
|
|
61
|
+
onReady?: (() => any) | undefined;
|
|
62
62
|
onCancel?: (() => any) | undefined;
|
|
63
63
|
onConfirm?: ((result: CropResult) => any) | undefined;
|
|
64
64
|
onCrop?: ((result: CropResult) => any) | undefined;
|
|
65
65
|
}>, {
|
|
66
66
|
disabled: boolean;
|
|
67
67
|
height: string | number;
|
|
68
|
-
modalTitle: string;
|
|
69
|
-
src: string;
|
|
70
|
-
modal: boolean;
|
|
71
68
|
showToolbar: boolean;
|
|
72
69
|
aspectRatio: number;
|
|
70
|
+
src: string;
|
|
71
|
+
showPreview: boolean;
|
|
72
|
+
modalTitle: string;
|
|
73
|
+
modal: boolean;
|
|
73
74
|
outputFormat: CropOutputFormat;
|
|
74
75
|
outputQuality: number;
|
|
75
76
|
maxOutputWidth: number;
|
|
76
77
|
maxOutputHeight: number;
|
|
77
|
-
showPreview: boolean;
|
|
78
78
|
circular: boolean;
|
|
79
79
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
80
80
|
declare const _default: typeof __VLS_export;
|
|
@@ -14,8 +14,8 @@ declare const __VLS_export: <T extends object = FormRecord>(__VLS_props: NonNull
|
|
|
14
14
|
config?: FormConfig<T>; /** 当前表单实例的自定义渲染器,不污染全局注册表 */
|
|
15
15
|
renderers?: Record<string, FormRenderer>;
|
|
16
16
|
} & {
|
|
17
|
-
onSubmit?: ((payload: SubmitEventPayload<T>) => any) | undefined;
|
|
18
17
|
"onUpdate:modelValue"?: ((model: T) => any) | undefined;
|
|
18
|
+
onSubmit?: ((payload: SubmitEventPayload<T>) => any) | undefined;
|
|
19
19
|
"onValidate-success"?: ((model: T) => any) | undefined;
|
|
20
20
|
"onValidate-error"?: ((errors: unknown) => any) | undefined;
|
|
21
21
|
}> & (typeof globalThis extends {
|
|
@@ -54,7 +54,7 @@ declare const __VLS_export: <T extends object = FormRecord>(__VLS_props: NonNull
|
|
|
54
54
|
}>) => void;
|
|
55
55
|
attrs: any;
|
|
56
56
|
slots: FormSlots<T>;
|
|
57
|
-
emit: ((evt: "
|
|
57
|
+
emit: ((evt: "update:modelValue", model: T) => void) & ((evt: "submit", payload: SubmitEventPayload<T>) => void) & ((evt: "validate-success", model: T) => void) & ((evt: "validate-error", errors: unknown) => void);
|
|
58
58
|
}>) => vue.VNode & {
|
|
59
59
|
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
60
60
|
};
|
|
@@ -14,8 +14,8 @@ declare const __VLS_export: <T extends object = FormRecord>(__VLS_props: NonNull
|
|
|
14
14
|
config?: FormConfig<T>; /** 当前表单实例的自定义渲染器,不污染全局注册表 */
|
|
15
15
|
renderers?: Record<string, FormRenderer>;
|
|
16
16
|
} & {
|
|
17
|
-
onSubmit?: ((payload: SubmitEventPayload<T>) => any) | undefined;
|
|
18
17
|
"onUpdate:modelValue"?: ((model: T) => any) | undefined;
|
|
18
|
+
onSubmit?: ((payload: SubmitEventPayload<T>) => any) | undefined;
|
|
19
19
|
"onValidate-success"?: ((model: T) => any) | undefined;
|
|
20
20
|
"onValidate-error"?: ((errors: unknown) => any) | undefined;
|
|
21
21
|
}> & (typeof globalThis extends {
|
|
@@ -54,7 +54,7 @@ declare const __VLS_export: <T extends object = FormRecord>(__VLS_props: NonNull
|
|
|
54
54
|
}>) => void;
|
|
55
55
|
attrs: any;
|
|
56
56
|
slots: FormSlots<T>;
|
|
57
|
-
emit: ((evt: "
|
|
57
|
+
emit: ((evt: "update:modelValue", model: T) => void) & ((evt: "submit", payload: SubmitEventPayload<T>) => void) & ((evt: "validate-success", model: T) => void) & ((evt: "validate-error", errors: unknown) => void);
|
|
58
58
|
}>) => vue.VNode & {
|
|
59
59
|
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
60
60
|
};
|
|
@@ -264,9 +264,9 @@ declare const __VLS_export: vue.DefineComponent<Props, {
|
|
|
264
264
|
onReady?: ((graph: Graph) => any) | undefined;
|
|
265
265
|
"onData-change"?: ((data: DiagramData) => any) | undefined;
|
|
266
266
|
}>, {
|
|
267
|
-
readonly: boolean;
|
|
268
267
|
height: string | number;
|
|
269
268
|
width: string | number;
|
|
269
|
+
readonly: boolean;
|
|
270
270
|
showToolbar: boolean;
|
|
271
271
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
272
272
|
declare const _default: typeof __VLS_export;
|
|
@@ -264,9 +264,9 @@ declare const __VLS_export: vue.DefineComponent<Props, {
|
|
|
264
264
|
onReady?: ((graph: Graph) => any) | undefined;
|
|
265
265
|
"onData-change"?: ((data: DiagramData) => any) | undefined;
|
|
266
266
|
}>, {
|
|
267
|
-
readonly: boolean;
|
|
268
267
|
height: string | number;
|
|
269
268
|
width: string | number;
|
|
269
|
+
readonly: boolean;
|
|
270
270
|
showToolbar: boolean;
|
|
271
271
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
272
272
|
declare const _default: typeof __VLS_export;
|
package/dist/useFullscreen.d.cts
CHANGED
|
@@ -104,10 +104,10 @@ declare const __VLS_export: vue.DefineComponent<FilePreviewProps, {}, {}, {}, {}
|
|
|
104
104
|
onDownload?: ((file: string | File) => any) | undefined;
|
|
105
105
|
"onUpdate:show"?: ((show: boolean) => any) | undefined;
|
|
106
106
|
}>, {
|
|
107
|
-
inline: boolean;
|
|
108
107
|
show: boolean;
|
|
109
108
|
fileName: string;
|
|
110
109
|
autoPreview: boolean;
|
|
110
|
+
inline: boolean;
|
|
111
111
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
112
112
|
declare const _default: typeof __VLS_export;
|
|
113
113
|
//#endregion
|
package/dist/useFullscreen.d.ts
CHANGED
|
@@ -104,10 +104,10 @@ declare const __VLS_export: vue.DefineComponent<FilePreviewProps, {}, {}, {}, {}
|
|
|
104
104
|
onDownload?: ((file: string | File) => any) | undefined;
|
|
105
105
|
"onUpdate:show"?: ((show: boolean) => any) | undefined;
|
|
106
106
|
}>, {
|
|
107
|
-
inline: boolean;
|
|
108
107
|
show: boolean;
|
|
109
108
|
fileName: string;
|
|
110
109
|
autoPreview: boolean;
|
|
110
|
+
inline: boolean;
|
|
111
111
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
112
112
|
declare const _default: typeof __VLS_export;
|
|
113
113
|
//#endregion
|
|
@@ -87,11 +87,11 @@ declare const __VLS_base: vue.DefineComponent<WaterFallProps, WaterFallExpose, {
|
|
|
87
87
|
"onImage-loaded"?: ((item: WaterFallItem) => any) | undefined;
|
|
88
88
|
"onImage-error"?: ((item: WaterFallItem) => any) | undefined;
|
|
89
89
|
}>, {
|
|
90
|
+
columns: number;
|
|
90
91
|
loading: boolean;
|
|
91
92
|
virtualScroll: boolean;
|
|
92
93
|
infinite: boolean;
|
|
93
94
|
gap: number;
|
|
94
|
-
columns: number;
|
|
95
95
|
lazy: boolean;
|
|
96
96
|
skeleton: boolean;
|
|
97
97
|
skeletonCount: number;
|
|
@@ -87,11 +87,11 @@ declare const __VLS_base: vue.DefineComponent<WaterFallProps, WaterFallExpose, {
|
|
|
87
87
|
"onImage-loaded"?: ((item: WaterFallItem) => any) | undefined;
|
|
88
88
|
"onImage-error"?: ((item: WaterFallItem) => any) | undefined;
|
|
89
89
|
}>, {
|
|
90
|
+
columns: number;
|
|
90
91
|
loading: boolean;
|
|
91
92
|
virtualScroll: boolean;
|
|
92
93
|
infinite: boolean;
|
|
93
94
|
gap: number;
|
|
94
|
-
columns: number;
|
|
95
95
|
lazy: boolean;
|
|
96
96
|
skeleton: boolean;
|
|
97
97
|
skeletonCount: number;
|
package/dist/useQRCode.d.cts
CHANGED
|
@@ -50,16 +50,16 @@ declare const __VLS_export: vue.DefineComponent<Props, QRCodeExpose, {}, {}, {},
|
|
|
50
50
|
}, string, vue.PublicProps, Readonly<Props> & Readonly<{
|
|
51
51
|
onError?: ((error: Error) => any) | undefined;
|
|
52
52
|
}>, {
|
|
53
|
-
size: number;
|
|
54
|
-
showBorder: boolean;
|
|
55
|
-
label: string;
|
|
56
|
-
showLabel: boolean;
|
|
57
53
|
mode: RenderMode;
|
|
54
|
+
size: number;
|
|
58
55
|
color: string;
|
|
56
|
+
margin: number;
|
|
59
57
|
bgColor: string;
|
|
58
|
+
label: string;
|
|
60
59
|
errorCorrectionLevel: ErrorCorrectionLevel;
|
|
61
|
-
margin: number;
|
|
62
60
|
logo: LogoOptions;
|
|
61
|
+
showBorder: boolean;
|
|
62
|
+
showLabel: boolean;
|
|
63
63
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
64
64
|
declare const _default: typeof __VLS_export;
|
|
65
65
|
//#endregion
|
package/dist/useQRCode.d.ts
CHANGED
|
@@ -50,16 +50,16 @@ declare const __VLS_export: vue.DefineComponent<Props, QRCodeExpose, {}, {}, {},
|
|
|
50
50
|
}, string, vue.PublicProps, Readonly<Props> & Readonly<{
|
|
51
51
|
onError?: ((error: Error) => any) | undefined;
|
|
52
52
|
}>, {
|
|
53
|
-
size: number;
|
|
54
|
-
showBorder: boolean;
|
|
55
|
-
label: string;
|
|
56
|
-
showLabel: boolean;
|
|
57
53
|
mode: RenderMode;
|
|
54
|
+
size: number;
|
|
58
55
|
color: string;
|
|
56
|
+
margin: number;
|
|
59
57
|
bgColor: string;
|
|
58
|
+
label: string;
|
|
60
59
|
errorCorrectionLevel: ErrorCorrectionLevel;
|
|
61
|
-
margin: number;
|
|
62
60
|
logo: LogoOptions;
|
|
61
|
+
showBorder: boolean;
|
|
62
|
+
showLabel: boolean;
|
|
63
63
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
64
64
|
declare const _default: typeof __VLS_export;
|
|
65
65
|
//#endregion
|
|
@@ -92,8 +92,8 @@ interface SignatureEmits {
|
|
|
92
92
|
//#endregion
|
|
93
93
|
//#region src/components/C_Signature/index.vue.d.ts
|
|
94
94
|
declare const __VLS_export: vue.DefineComponent<SignatureProps, SignatureExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
95
|
-
change: (data: SignatureStroke[]) => any;
|
|
96
95
|
error: (error: Error) => any;
|
|
96
|
+
change: (data: SignatureStroke[]) => any;
|
|
97
97
|
clear: () => any;
|
|
98
98
|
"start-draw": () => any;
|
|
99
99
|
drawing: (point: SignaturePoint) => any;
|
|
@@ -101,8 +101,8 @@ declare const __VLS_export: vue.DefineComponent<SignatureProps, SignatureExpose,
|
|
|
101
101
|
undo: () => any;
|
|
102
102
|
redo: () => any;
|
|
103
103
|
}, string, vue.PublicProps, Readonly<SignatureProps> & Readonly<{
|
|
104
|
-
onChange?: ((data: SignatureStroke[]) => any) | undefined;
|
|
105
104
|
onError?: ((error: Error) => any) | undefined;
|
|
105
|
+
onChange?: ((data: SignatureStroke[]) => any) | undefined;
|
|
106
106
|
onClear?: (() => any) | undefined;
|
|
107
107
|
"onStart-draw"?: (() => any) | undefined;
|
|
108
108
|
onDrawing?: ((point: SignaturePoint) => any) | undefined;
|
|
@@ -111,9 +111,9 @@ declare const __VLS_export: vue.DefineComponent<SignatureProps, SignatureExpose,
|
|
|
111
111
|
onRedo?: (() => any) | undefined;
|
|
112
112
|
}>, {
|
|
113
113
|
disabled: boolean;
|
|
114
|
-
readonly: boolean;
|
|
115
114
|
height: number | string;
|
|
116
115
|
width: number | string;
|
|
116
|
+
readonly: boolean;
|
|
117
117
|
showToolbar: boolean;
|
|
118
118
|
maxHistory: number;
|
|
119
119
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
@@ -92,8 +92,8 @@ interface SignatureEmits {
|
|
|
92
92
|
//#endregion
|
|
93
93
|
//#region src/components/C_Signature/index.vue.d.ts
|
|
94
94
|
declare const __VLS_export: vue.DefineComponent<SignatureProps, SignatureExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
95
|
-
change: (data: SignatureStroke[]) => any;
|
|
96
95
|
error: (error: Error) => any;
|
|
96
|
+
change: (data: SignatureStroke[]) => any;
|
|
97
97
|
clear: () => any;
|
|
98
98
|
"start-draw": () => any;
|
|
99
99
|
drawing: (point: SignaturePoint) => any;
|
|
@@ -101,8 +101,8 @@ declare const __VLS_export: vue.DefineComponent<SignatureProps, SignatureExpose,
|
|
|
101
101
|
undo: () => any;
|
|
102
102
|
redo: () => any;
|
|
103
103
|
}, string, vue.PublicProps, Readonly<SignatureProps> & Readonly<{
|
|
104
|
-
onChange?: ((data: SignatureStroke[]) => any) | undefined;
|
|
105
104
|
onError?: ((error: Error) => any) | undefined;
|
|
105
|
+
onChange?: ((data: SignatureStroke[]) => any) | undefined;
|
|
106
106
|
onClear?: (() => any) | undefined;
|
|
107
107
|
"onStart-draw"?: (() => any) | undefined;
|
|
108
108
|
onDrawing?: ((point: SignaturePoint) => any) | undefined;
|
|
@@ -111,9 +111,9 @@ declare const __VLS_export: vue.DefineComponent<SignatureProps, SignatureExpose,
|
|
|
111
111
|
onRedo?: (() => any) | undefined;
|
|
112
112
|
}>, {
|
|
113
113
|
disabled: boolean;
|
|
114
|
-
readonly: boolean;
|
|
115
114
|
height: number | string;
|
|
116
115
|
width: number | string;
|
|
116
|
+
readonly: boolean;
|
|
117
117
|
showToolbar: boolean;
|
|
118
118
|
maxHistory: number;
|
|
119
119
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
@@ -55,31 +55,31 @@ type __VLS_Slots = {
|
|
|
55
55
|
second(props: PanelInfo): unknown;
|
|
56
56
|
};
|
|
57
57
|
declare const __VLS_base: vue.DefineComponent<SplitPaneProps, SplitPaneExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
58
|
-
collapse: (target: CollapseTarget) => any;
|
|
59
|
-
"drag-start": (size: number) => any;
|
|
60
|
-
"drag-end": (size: number) => any;
|
|
61
58
|
resize: (firstSize: number, secondSize: number) => any;
|
|
62
59
|
expand: (target: CollapseTarget) => any;
|
|
63
60
|
"update:size": (size: number) => any;
|
|
61
|
+
collapse: (target: CollapseTarget) => any;
|
|
62
|
+
"drag-start": (size: number) => any;
|
|
63
|
+
"drag-end": (size: number) => any;
|
|
64
64
|
}, string, vue.PublicProps, Readonly<SplitPaneProps> & Readonly<{
|
|
65
|
-
onCollapse?: ((target: CollapseTarget) => any) | undefined;
|
|
66
|
-
"onDrag-start"?: ((size: number) => any) | undefined;
|
|
67
|
-
"onDrag-end"?: ((size: number) => any) | undefined;
|
|
68
65
|
onResize?: ((firstSize: number, secondSize: number) => any) | undefined;
|
|
69
66
|
onExpand?: ((target: CollapseTarget) => any) | undefined;
|
|
70
67
|
"onUpdate:size"?: ((size: number) => any) | undefined;
|
|
68
|
+
onCollapse?: ((target: CollapseTarget) => any) | undefined;
|
|
69
|
+
"onDrag-start"?: ((size: number) => any) | undefined;
|
|
70
|
+
"onDrag-end"?: ((size: number) => any) | undefined;
|
|
71
71
|
}>, {
|
|
72
72
|
direction: SplitDirection;
|
|
73
73
|
collapsible: boolean;
|
|
74
|
-
disabled: boolean;
|
|
75
74
|
maxSize: number;
|
|
76
|
-
|
|
75
|
+
disabled: boolean;
|
|
77
76
|
defaultSize: number;
|
|
78
77
|
minSize: number;
|
|
79
78
|
minFirstSize: number;
|
|
80
79
|
minSecondSize: number;
|
|
81
80
|
showCollapseButton: boolean;
|
|
82
81
|
gutterSize: number;
|
|
82
|
+
step: number;
|
|
83
83
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
84
84
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
85
85
|
declare const _default: typeof __VLS_export;
|