@robot-admin/naive-ui-components 0.38.0 → 0.40.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 +25 -0
- package/README.md +18 -13
- package/README_EN.md +18 -13
- package/dist/C_DataPicker2.cjs +1 -1
- package/dist/C_DataPicker2.js +1 -1
- package/dist/C_Table.base.css +159 -150
- package/dist/C_Table.css +159 -150
- package/dist/C_Table2.cjs +4 -4
- package/dist/C_Table2.js +4 -4
- package/dist/C_WorkFlow.css +102 -91
- package/dist/C_WorkFlow2.cjs +1 -1
- package/dist/C_WorkFlow2.js +1 -1
- package/dist/component-config.d.ts +6 -2
- package/dist/constants.d.cts +1 -1
- package/dist/constants.d.ts +1 -1
- package/dist/constants3.d.cts +7 -7
- package/dist/constants3.d.ts +7 -7
- package/dist/constants4.d.cts +5 -5
- package/dist/constants4.d.ts +5 -5
- package/dist/constants5.d.cts +2 -2
- package/dist/constants5.d.ts +2 -2
- package/dist/context.d.cts +6 -2
- package/dist/data2.d.cts +4 -4
- package/dist/data2.d.ts +4 -4
- package/dist/editors.d.cts +11 -9
- package/dist/editors.d.ts +11 -9
- package/dist/graphics.d.cts +1 -1
- package/dist/graphics.d.ts +1 -1
- package/dist/index.vue.d.cts +6 -6
- package/dist/index.vue.d.ts +6 -6
- package/dist/index10.vue.d.ts +3 -3
- package/dist/index11.vue.d.cts +3 -3
- package/dist/index11.vue.d.ts +3 -3
- package/dist/index12.vue.d.cts +3 -3
- package/dist/index13.vue.d.ts +4 -4
- package/dist/index14.vue.d.cts +4 -4
- package/dist/index16.vue.d.ts +6 -6
- package/dist/index17.vue.d.cts +6 -6
- package/dist/index17.vue.d.ts +3 -3
- package/dist/index18.vue.d.cts +3 -3
- package/dist/index19.vue.d.ts +1 -1
- package/dist/index20.vue.d.cts +1 -1
- package/dist/index20.vue.d.ts +1 -1
- package/dist/index21.vue.d.cts +1 -1
- package/dist/index21.vue.d.ts +2 -2
- package/dist/index22.vue.d.cts +2 -2
- package/dist/index24.vue.d.cts +1 -1
- package/dist/index24.vue.d.ts +1 -1
- package/dist/index27.vue.d.cts +2 -2
- package/dist/index27.vue.d.ts +2 -2
- package/dist/index28.vue.d.cts +4 -4
- package/dist/index28.vue.d.ts +4 -4
- package/dist/index3.vue.d.cts +2 -2
- package/dist/index3.vue.d.ts +2 -2
- package/dist/index30.vue.d.cts +1 -1
- package/dist/index30.vue.d.ts +1 -1
- package/dist/index31.vue.d.cts +1 -1
- package/dist/index31.vue.d.ts +1 -1
- package/dist/index4.vue.d.cts +4 -4
- package/dist/index4.vue.d.ts +4 -4
- package/dist/mapUtils.d.cts +3 -3
- package/dist/mapUtils.d.ts +3 -3
- package/dist/presets.d.cts +1 -1
- package/dist/presets.d.ts +1 -1
- package/dist/shared-tokens.css +1 -1
- package/dist/style.css +263 -243
- package/dist/theme.cjs +1 -1
- package/dist/theme.d.cts +5 -0
- package/dist/theme.d.ts +5 -0
- package/dist/theme.js +1 -1
- package/dist/theme2.cjs +1 -1
- package/dist/theme2.js +1 -1
- package/dist/types3.d.ts +1 -0
- package/dist/types4.d.cts +1 -0
- package/dist/useCalendarEvents.d.cts +1 -1
- package/dist/useCalendarEvents.d.ts +1 -1
- package/dist/useCollapsePanel.d.cts +4 -4
- package/dist/useCollapsePanel.d.ts +4 -4
- package/dist/useComponentTheme.cjs +1 -1
- package/dist/useComponentTheme.js +1 -1
- package/dist/useCropperCore.d.cts +7 -7
- package/dist/useCropperCore.d.ts +7 -7
- package/dist/useDynamicFormState.cjs +1 -1
- package/dist/useDynamicFormState.d.cts +2 -2
- package/dist/useDynamicFormState.d.ts +2 -2
- package/dist/useDynamicFormState.js +1 -1
- package/dist/useEdgeInteraction.d.cts +2 -2
- package/dist/useEdgeInteraction.d.ts +2 -2
- 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 +3 -3
- package/dist/useQRCode.d.ts +3 -3
- package/dist/useSignatureHistory.d.cts +6 -6
- package/dist/useSignatureHistory.d.ts +6 -6
- package/dist/useSplitResize.d.cts +5 -5
- package/dist/useSplitResize.d.ts +5 -5
- package/dist/useWorkflowValidation.d.cts +104 -104
- package/dist/useWorkflowValidation.d.ts +104 -104
- package/dist/verification.d.cts +5 -5
- package/dist/verification.d.ts +5 -5
- package/docs/guides/data-picker.md +4 -1
- package/docs/guides/table-density.md +12 -0
- package/docs/guides/table-editing.md +18 -0
- package/docs/guides/theme.md +14 -10
- package/docs/wl-business-scenario-parity.md +53 -0
- package/package.json +1 -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,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=
|
|
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
|
@@ -10,6 +10,8 @@ interface ComponentThemeColors {
|
|
|
10
10
|
warning: string;
|
|
11
11
|
error: string;
|
|
12
12
|
info: string;
|
|
13
|
+
/** 品牌/语义实色面上的文字与图标,默认白色;亮色品牌可显式设黑色。 */
|
|
14
|
+
onSolid: string;
|
|
13
15
|
bgBody: string;
|
|
14
16
|
bgCard: string;
|
|
15
17
|
bgSurface: string;
|
|
@@ -42,6 +44,7 @@ declare const COMPONENT_COLOR_PALETTES: Readonly<{
|
|
|
42
44
|
warning: "#b45309";
|
|
43
45
|
error: "#b91c1c";
|
|
44
46
|
info: "#0369a1";
|
|
47
|
+
onSolid: "#ffffff";
|
|
45
48
|
bgBody: "#f6f8fc";
|
|
46
49
|
bgCard: "#ffffff";
|
|
47
50
|
bgSurface: "#ffffff";
|
|
@@ -61,6 +64,7 @@ declare const COMPONENT_COLOR_PALETTES: Readonly<{
|
|
|
61
64
|
warning: "#fbbf24";
|
|
62
65
|
error: "#f87171";
|
|
63
66
|
info: "#38bdf8";
|
|
67
|
+
onSolid: "#ffffff";
|
|
64
68
|
bgBody: "#111827";
|
|
65
69
|
bgCard: "#1f2937";
|
|
66
70
|
bgSurface: "#253246";
|
|
@@ -80,6 +84,7 @@ declare const COMPONENT_COLOR_PALETTES: Readonly<{
|
|
|
80
84
|
declare module 'naive-ui' {
|
|
81
85
|
interface CustomThemeCommonVars {
|
|
82
86
|
robotComponentSkeletonColor?: string;
|
|
87
|
+
robotComponentOnSolidColor?: string;
|
|
83
88
|
}
|
|
84
89
|
}
|
|
85
90
|
interface ComponentThemeConfig {
|
package/dist/theme.d.ts
CHANGED
|
@@ -10,6 +10,8 @@ interface ComponentThemeColors {
|
|
|
10
10
|
warning: string;
|
|
11
11
|
error: string;
|
|
12
12
|
info: string;
|
|
13
|
+
/** 品牌/语义实色面上的文字与图标,默认白色;亮色品牌可显式设黑色。 */
|
|
14
|
+
onSolid: string;
|
|
13
15
|
bgBody: string;
|
|
14
16
|
bgCard: string;
|
|
15
17
|
bgSurface: string;
|
|
@@ -42,6 +44,7 @@ declare const COMPONENT_COLOR_PALETTES: Readonly<{
|
|
|
42
44
|
warning: "#b45309";
|
|
43
45
|
error: "#b91c1c";
|
|
44
46
|
info: "#0369a1";
|
|
47
|
+
onSolid: "#ffffff";
|
|
45
48
|
bgBody: "#f6f8fc";
|
|
46
49
|
bgCard: "#ffffff";
|
|
47
50
|
bgSurface: "#ffffff";
|
|
@@ -61,6 +64,7 @@ declare const COMPONENT_COLOR_PALETTES: Readonly<{
|
|
|
61
64
|
warning: "#fbbf24";
|
|
62
65
|
error: "#f87171";
|
|
63
66
|
info: "#38bdf8";
|
|
67
|
+
onSolid: "#ffffff";
|
|
64
68
|
bgBody: "#111827";
|
|
65
69
|
bgCard: "#1f2937";
|
|
66
70
|
bgSurface: "#253246";
|
|
@@ -80,6 +84,7 @@ declare const COMPONENT_COLOR_PALETTES: Readonly<{
|
|
|
80
84
|
declare module 'naive-ui' {
|
|
81
85
|
interface CustomThemeCommonVars {
|
|
82
86
|
robotComponentSkeletonColor?: string;
|
|
87
|
+
robotComponentOnSolidColor?: string;
|
|
83
88
|
}
|
|
84
89
|
}
|
|
85
90
|
interface ComponentThemeConfig {
|
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,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=
|
|
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`);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,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},Button:{textColorPrimary:
|
|
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};
|
package/dist/types3.d.ts
CHANGED
|
@@ -30,6 +30,7 @@ interface DataPickerNavigationNode {
|
|
|
30
30
|
}
|
|
31
31
|
interface DataPickerNavigation<TFilters extends object> {
|
|
32
32
|
options: readonly DataPickerNavigationNode[];
|
|
33
|
+
/** 查询表单省略该字段时保留当前导航;显式提交(含 undefined)可覆盖或清除。 */
|
|
33
34
|
field: Extract<keyof TFilters, string>;
|
|
34
35
|
title?: string;
|
|
35
36
|
/** 自定义组织导航保留统一筛选会话;不接管候选或选择状态。 */
|
package/dist/types4.d.cts
CHANGED
|
@@ -30,6 +30,7 @@ interface DataPickerNavigationNode {
|
|
|
30
30
|
}
|
|
31
31
|
interface DataPickerNavigation<TFilters extends object> {
|
|
32
32
|
options: readonly DataPickerNavigationNode[];
|
|
33
|
+
/** 查询表单省略该字段时保留当前导航;显式提交(含 undefined)可覆盖或清除。 */
|
|
33
34
|
field: Extract<keyof TFilters, string>;
|
|
34
35
|
title?: string;
|
|
35
36
|
/** 自定义组织导航保留统一筛选会话;不接管候选或选择状态。 */
|
|
@@ -80,8 +80,8 @@ declare const __VLS_export: vue.DefineComponent<CalendarProps, CalendarExpose, {
|
|
|
80
80
|
"onEvent-resized"?: ((event: Partial<CalendarEvent>) => any) | undefined;
|
|
81
81
|
}>, {
|
|
82
82
|
editable: boolean;
|
|
83
|
-
initialView: CalendarViewType;
|
|
84
83
|
events: CalendarEvent[];
|
|
84
|
+
initialView: CalendarViewType;
|
|
85
85
|
showAddDialog: boolean;
|
|
86
86
|
showEditDialog: boolean;
|
|
87
87
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
@@ -80,8 +80,8 @@ declare const __VLS_export: vue.DefineComponent<CalendarProps, CalendarExpose, {
|
|
|
80
80
|
"onEvent-resized"?: ((event: Partial<CalendarEvent>) => any) | undefined;
|
|
81
81
|
}>, {
|
|
82
82
|
editable: boolean;
|
|
83
|
-
initialView: CalendarViewType;
|
|
84
83
|
events: CalendarEvent[];
|
|
84
|
+
initialView: CalendarViewType;
|
|
85
85
|
showAddDialog: boolean;
|
|
86
86
|
showEditDialog: boolean;
|
|
87
87
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
@@ -74,21 +74,21 @@ type __VLS_Slots = {} & { [K in NonNullable<typeof __VLS_7>]?: (props: typeof __
|
|
|
74
74
|
declare const __VLS_base: vue.DefineComponent<Props, CollapsePanelExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
75
75
|
change: (activeKeys: string[]) => any;
|
|
76
76
|
expand: (key: string) => any;
|
|
77
|
-
collapse: (key: string) => any;
|
|
78
77
|
"update:activeKeys": (keys: string[]) => any;
|
|
78
|
+
collapse: (key: string) => any;
|
|
79
79
|
}, string, vue.PublicProps, Readonly<Props> & Readonly<{
|
|
80
80
|
onChange?: ((activeKeys: string[]) => any) | undefined;
|
|
81
81
|
onExpand?: ((key: string) => any) | undefined;
|
|
82
|
-
onCollapse?: ((key: string) => any) | undefined;
|
|
83
82
|
"onUpdate:activeKeys"?: ((keys: string[]) => any) | undefined;
|
|
83
|
+
onCollapse?: ((key: string) => any) | undefined;
|
|
84
84
|
}>, {
|
|
85
85
|
bordered: boolean;
|
|
86
|
-
accordion: boolean;
|
|
87
|
-
persistKey: string;
|
|
88
86
|
activeKeys: string[];
|
|
89
87
|
defaultActiveKeys: string[];
|
|
88
|
+
accordion: boolean;
|
|
90
89
|
variant: CollapsePanelVariant;
|
|
91
90
|
expandIconPosition: ExpandIconPosition;
|
|
91
|
+
persistKey: string;
|
|
92
92
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
93
93
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
94
94
|
declare const _default: typeof __VLS_export;
|
|
@@ -74,21 +74,21 @@ type __VLS_Slots = {} & { [K in NonNullable<typeof __VLS_7>]?: (props: typeof __
|
|
|
74
74
|
declare const __VLS_base: vue.DefineComponent<Props, CollapsePanelExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
75
75
|
change: (activeKeys: string[]) => any;
|
|
76
76
|
expand: (key: string) => any;
|
|
77
|
-
collapse: (key: string) => any;
|
|
78
77
|
"update:activeKeys": (keys: string[]) => any;
|
|
78
|
+
collapse: (key: string) => any;
|
|
79
79
|
}, string, vue.PublicProps, Readonly<Props> & Readonly<{
|
|
80
80
|
onChange?: ((activeKeys: string[]) => any) | undefined;
|
|
81
81
|
onExpand?: ((key: string) => any) | undefined;
|
|
82
|
-
onCollapse?: ((key: string) => any) | undefined;
|
|
83
82
|
"onUpdate:activeKeys"?: ((keys: string[]) => any) | undefined;
|
|
83
|
+
onCollapse?: ((key: string) => any) | undefined;
|
|
84
84
|
}>, {
|
|
85
85
|
bordered: boolean;
|
|
86
|
-
accordion: boolean;
|
|
87
|
-
persistKey: string;
|
|
88
86
|
activeKeys: string[];
|
|
89
87
|
defaultActiveKeys: string[];
|
|
88
|
+
accordion: boolean;
|
|
90
89
|
variant: CollapsePanelVariant;
|
|
91
90
|
expandIconPosition: ExpandIconPosition;
|
|
91
|
+
persistKey: string;
|
|
92
92
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
93
93
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
94
94
|
declare const _default: typeof __VLS_export;
|
|
@@ -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`],"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}}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
|
+
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`],"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}}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};
|
|
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,31 +51,31 @@ 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
|
-
height: string | number;
|
|
67
|
-
src: string;
|
|
68
66
|
disabled: boolean;
|
|
67
|
+
height: string | number;
|
|
68
|
+
aspectRatio: number;
|
|
69
69
|
modal: boolean;
|
|
70
|
-
showToolbar: boolean;
|
|
71
70
|
showPreview: boolean;
|
|
72
|
-
|
|
73
|
-
|
|
71
|
+
showToolbar: boolean;
|
|
72
|
+
src: string;
|
|
74
73
|
outputFormat: CropOutputFormat;
|
|
75
74
|
outputQuality: number;
|
|
76
75
|
maxOutputWidth: number;
|
|
77
76
|
maxOutputHeight: number;
|
|
78
77
|
circular: boolean;
|
|
78
|
+
modalTitle: string;
|
|
79
79
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
80
80
|
declare const _default: typeof __VLS_export;
|
|
81
81
|
//#endregion
|
package/dist/useCropperCore.d.ts
CHANGED
|
@@ -51,31 +51,31 @@ 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
|
-
height: string | number;
|
|
67
|
-
src: string;
|
|
68
66
|
disabled: boolean;
|
|
67
|
+
height: string | number;
|
|
68
|
+
aspectRatio: number;
|
|
69
69
|
modal: boolean;
|
|
70
|
-
showToolbar: boolean;
|
|
71
70
|
showPreview: boolean;
|
|
72
|
-
|
|
73
|
-
|
|
71
|
+
showToolbar: boolean;
|
|
72
|
+
src: string;
|
|
74
73
|
outputFormat: CropOutputFormat;
|
|
75
74
|
outputQuality: number;
|
|
76
75
|
maxOutputWidth: number;
|
|
77
76
|
maxOutputHeight: number;
|
|
78
77
|
circular: boolean;
|
|
78
|
+
modalTitle: string;
|
|
79
79
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
80
80
|
declare const _default: typeof __VLS_export;
|
|
81
81
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
require(`./chunk.cjs`);let e=require(`vue`);const t={maxFields:20,autoSave:!1,enableSort:!0,showControls:!0,showItemControls:!0},n=[{label:`文本输入`,value:`input`},{label:`数字输入`,value:`inputNumber`},{label:`多行文本`,value:`textarea`},{label:`下拉选择`,value:`select`},{label:`开关切换`,value:`switch`},{label:`评分组件`,value:`rate`}];function r(e,t){let r=t.label||`动态字段 ${e}`;return{...t,id:t.id?.trim()||`dynamic_field_${e}`,type:t.type||n[0].value,prop:t.prop?.trim()||`dynamic_${e}`,label:r,placeholder:t.placeholder||`请输入${r||`内容`}`,visible:t.visible??!0,removable:t.removable??!0,created:t.created??Date.now(),layout:t.layout||{span:12}}}const i=()=>{let i=(0,e.reactive)({config:{...t},baseFields:[],dynamicFields:[],hiddenFieldIds:new Set,fieldCounter:0,isInitialized:!1}),a=(0,e.computed)(()=>[...i.baseFields,...i.dynamicFields.map(e=>({...e,show:!i.hiddenFieldIds.has(e.prop)}))
|
|
1
|
+
require(`./chunk.cjs`);let e=require(`vue`);const t={maxFields:20,autoSave:!1,enableSort:!0,showControls:!0,showItemControls:!0},n=[{label:`文本输入`,value:`input`},{label:`数字输入`,value:`inputNumber`},{label:`多行文本`,value:`textarea`},{label:`下拉选择`,value:`select`},{label:`开关切换`,value:`switch`},{label:`评分组件`,value:`rate`}];function r(e,t){let r=t.label||`动态字段 ${e}`;return{...t,id:t.id?.trim()||`dynamic_field_${e}`,type:t.type||n[0].value,prop:t.prop?.trim()||`dynamic_${e}`,label:r,placeholder:t.placeholder||`请输入${r||`内容`}`,visible:t.visible??!0,removable:t.removable??!0,created:t.created??Date.now(),layout:t.layout||{span:12}}}const i=()=>{let i=(0,e.reactive)({config:{...t},baseFields:[],dynamicFields:[],hiddenFieldIds:new Set,fieldCounter:0,isInitialized:!1}),a=(0,e.computed)(()=>[...i.baseFields,...i.dynamicFields].map(e=>({...e,show:!i.hiddenFieldIds.has(e.prop)}))),o=(0,e.computed)(()=>a.value.filter(e=>e.show!==!1)),s=(0,e.computed)(()=>i.dynamicFields.length),c=(0,e.computed)(()=>i.hiddenFieldIds.size),l=(0,e.computed)(()=>i.dynamicFields.length<i.config.maxFields),u=(0,e.computed)(()=>i.hiddenFieldIds.size===0),d=(e={})=>{if(!l.value)return null;i.fieldCounter++;let t=r(i.fieldCounter,e);return a.value.some(e=>e.prop===t.prop)?null:(t.visible||i.hiddenFieldIds.add(t.prop),i.dynamicFields.push(t),t)},f=e=>{if(i.dynamicFields.length===0)return null;let t=e??i.dynamicFields.length-1;if(t<0||t>=i.dynamicFields.length||i.dynamicFields[t]?.removable===!1)return null;let n=i.dynamicFields.splice(t,1)[0];return n&&i.hiddenFieldIds.delete(n.prop),n??null},p=()=>{let e=i.dynamicFields.length;return i.dynamicFields.forEach(e=>i.hiddenFieldIds.delete(e.prop)),i.dynamicFields.length=0,i.fieldCounter=0,e},m=e=>a.value.some(t=>t.prop===e)?(i.hiddenFieldIds.has(e)?i.hiddenFieldIds.delete(e):i.hiddenFieldIds.add(e),!i.hiddenFieldIds.has(e)):!1,h=()=>(u.value?a.value.forEach(e=>{i.hiddenFieldIds.add(e.prop)}):i.hiddenFieldIds.clear(),u.value),g=e=>{let t={...e};t.maxFields!==void 0&&(t.maxFields=Math.max(0,Math.trunc(t.maxFields))),Object.assign(i.config,t)};return{state:(0,e.readonly)(i),allFields:a,visibleFields:o,dynamicFieldsCount:s,hiddenFieldsCount:c,canAddMoreFields:l,allVisible:u,FIELD_TYPE_OPTIONS:n,addField:d,removeField:f,clearDynamicFields:p,toggleFieldVisibility:m,toggleAllVisibility:h,updateConfig:g,exportConfig:()=>{let e={baseFields:i.baseFields,dynamicFields:i.dynamicFields,config:i.config,hiddenFields:Array.from(i.hiddenFieldIds),timestamp:Date.now()};return JSON.stringify(e,null,2)},initialize:(e,n={})=>{i.baseFields=[...e],i.dynamicFields.length=0,i.hiddenFieldIds.clear(),e.forEach(e=>{e.show===!1&&i.hiddenFieldIds.add(e.prop)}),i.fieldCounter=0,Object.assign(i.config,t),g(n),i.isInitialized=!0}}},a=Symbol(`dynamicFormState`);Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return n}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return a}});
|
|
@@ -15,9 +15,9 @@ declare const __VLS_export: <T extends object = FormRecord>(__VLS_props: NonNull
|
|
|
15
15
|
renderers?: Record<string, FormRenderer>;
|
|
16
16
|
} & {
|
|
17
17
|
"onUpdate:modelValue"?: ((model: T) => any) | undefined;
|
|
18
|
+
"onValidate-error"?: ((errors: unknown) => any) | undefined;
|
|
18
19
|
onSubmit?: ((payload: SubmitEventPayload<T>) => any) | undefined;
|
|
19
20
|
"onValidate-success"?: ((model: T) => any) | undefined;
|
|
20
|
-
"onValidate-error"?: ((errors: unknown) => any) | undefined;
|
|
21
21
|
}> & (typeof globalThis extends {
|
|
22
22
|
__VLS_PROPS_FALLBACK: infer P;
|
|
23
23
|
} ? P : {});
|
|
@@ -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: "update:modelValue", model: T) => void) & ((evt: "
|
|
57
|
+
emit: ((evt: "update:modelValue", model: T) => void) & ((evt: "validate-error", errors: unknown) => void) & ((evt: "submit", payload: SubmitEventPayload<T>) => void) & ((evt: "validate-success", model: T) => void);
|
|
58
58
|
}>) => vue.VNode & {
|
|
59
59
|
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
60
60
|
};
|
|
@@ -15,9 +15,9 @@ declare const __VLS_export: <T extends object = FormRecord>(__VLS_props: NonNull
|
|
|
15
15
|
renderers?: Record<string, FormRenderer>;
|
|
16
16
|
} & {
|
|
17
17
|
"onUpdate:modelValue"?: ((model: T) => any) | undefined;
|
|
18
|
+
"onValidate-error"?: ((errors: unknown) => any) | undefined;
|
|
18
19
|
onSubmit?: ((payload: SubmitEventPayload<T>) => any) | undefined;
|
|
19
20
|
"onValidate-success"?: ((model: T) => any) | undefined;
|
|
20
|
-
"onValidate-error"?: ((errors: unknown) => any) | undefined;
|
|
21
21
|
}> & (typeof globalThis extends {
|
|
22
22
|
__VLS_PROPS_FALLBACK: infer P;
|
|
23
23
|
} ? P : {});
|
|
@@ -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: "update:modelValue", model: T) => void) & ((evt: "
|
|
57
|
+
emit: ((evt: "update:modelValue", model: T) => void) & ((evt: "validate-error", errors: unknown) => void) & ((evt: "submit", payload: SubmitEventPayload<T>) => void) & ((evt: "validate-success", model: T) => void);
|
|
58
58
|
}>) => vue.VNode & {
|
|
59
59
|
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
60
60
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{computed as e,reactive as t,readonly as n}from"vue";const r={maxFields:20,autoSave:!1,enableSort:!0,showControls:!0,showItemControls:!0},i=[{label:`文本输入`,value:`input`},{label:`数字输入`,value:`inputNumber`},{label:`多行文本`,value:`textarea`},{label:`下拉选择`,value:`select`},{label:`开关切换`,value:`switch`},{label:`评分组件`,value:`rate`}];function a(e,t){let n=t.label||`动态字段 ${e}`;return{...t,id:t.id?.trim()||`dynamic_field_${e}`,type:t.type||i[0].value,prop:t.prop?.trim()||`dynamic_${e}`,label:n,placeholder:t.placeholder||`请输入${n||`内容`}`,visible:t.visible??!0,removable:t.removable??!0,created:t.created??Date.now(),layout:t.layout||{span:12}}}const o=()=>{let o=t({config:{...r},baseFields:[],dynamicFields:[],hiddenFieldIds:new Set,fieldCounter:0,isInitialized:!1}),s=e(()=>[...o.baseFields,...o.dynamicFields.map(e=>({...e,show:!o.hiddenFieldIds.has(e.prop)}))
|
|
1
|
+
import{computed as e,reactive as t,readonly as n}from"vue";const r={maxFields:20,autoSave:!1,enableSort:!0,showControls:!0,showItemControls:!0},i=[{label:`文本输入`,value:`input`},{label:`数字输入`,value:`inputNumber`},{label:`多行文本`,value:`textarea`},{label:`下拉选择`,value:`select`},{label:`开关切换`,value:`switch`},{label:`评分组件`,value:`rate`}];function a(e,t){let n=t.label||`动态字段 ${e}`;return{...t,id:t.id?.trim()||`dynamic_field_${e}`,type:t.type||i[0].value,prop:t.prop?.trim()||`dynamic_${e}`,label:n,placeholder:t.placeholder||`请输入${n||`内容`}`,visible:t.visible??!0,removable:t.removable??!0,created:t.created??Date.now(),layout:t.layout||{span:12}}}const o=()=>{let o=t({config:{...r},baseFields:[],dynamicFields:[],hiddenFieldIds:new Set,fieldCounter:0,isInitialized:!1}),s=e(()=>[...o.baseFields,...o.dynamicFields].map(e=>({...e,show:!o.hiddenFieldIds.has(e.prop)}))),c=e(()=>s.value.filter(e=>e.show!==!1)),l=e(()=>o.dynamicFields.length),u=e(()=>o.hiddenFieldIds.size),d=e(()=>o.dynamicFields.length<o.config.maxFields),f=e(()=>o.hiddenFieldIds.size===0),p=(e={})=>{if(!d.value)return null;o.fieldCounter++;let t=a(o.fieldCounter,e);return s.value.some(e=>e.prop===t.prop)?null:(t.visible||o.hiddenFieldIds.add(t.prop),o.dynamicFields.push(t),t)},m=e=>{if(o.dynamicFields.length===0)return null;let t=e??o.dynamicFields.length-1;if(t<0||t>=o.dynamicFields.length||o.dynamicFields[t]?.removable===!1)return null;let n=o.dynamicFields.splice(t,1)[0];return n&&o.hiddenFieldIds.delete(n.prop),n??null},h=()=>{let e=o.dynamicFields.length;return o.dynamicFields.forEach(e=>o.hiddenFieldIds.delete(e.prop)),o.dynamicFields.length=0,o.fieldCounter=0,e},g=e=>s.value.some(t=>t.prop===e)?(o.hiddenFieldIds.has(e)?o.hiddenFieldIds.delete(e):o.hiddenFieldIds.add(e),!o.hiddenFieldIds.has(e)):!1,_=()=>(f.value?s.value.forEach(e=>{o.hiddenFieldIds.add(e.prop)}):o.hiddenFieldIds.clear(),f.value),v=e=>{let t={...e};t.maxFields!==void 0&&(t.maxFields=Math.max(0,Math.trunc(t.maxFields))),Object.assign(o.config,t)};return{state:n(o),allFields:s,visibleFields:c,dynamicFieldsCount:l,hiddenFieldsCount:u,canAddMoreFields:d,allVisible:f,FIELD_TYPE_OPTIONS:i,addField:p,removeField:m,clearDynamicFields:h,toggleFieldVisibility:g,toggleAllVisibility:_,updateConfig:v,exportConfig:()=>{let e={baseFields:o.baseFields,dynamicFields:o.dynamicFields,config:o.config,hiddenFields:Array.from(o.hiddenFieldIds),timestamp:Date.now()};return JSON.stringify(e,null,2)},initialize:(e,t={})=>{o.baseFields=[...e],o.dynamicFields.length=0,o.hiddenFieldIds.clear(),e.forEach(e=>{e.show===!1&&o.hiddenFieldIds.add(e.prop)}),o.fieldCounter=0,Object.assign(o.config,r),v(t),o.isInitialized=!0}}},s=Symbol(`dynamicFormState`);export{i as n,o as r,s as t};
|
|
@@ -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
|
-
width: string | number;
|
|
268
|
-
height: string | number;
|
|
269
267
|
readonly: boolean;
|
|
268
|
+
height: string | number;
|
|
269
|
+
width: string | number;
|
|
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
|
-
width: string | number;
|
|
268
|
-
height: string | number;
|
|
269
267
|
readonly: boolean;
|
|
268
|
+
height: string | number;
|
|
269
|
+
width: string | number;
|
|
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,8 +104,8 @@ 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
|
-
show: boolean;
|
|
108
107
|
inline: boolean;
|
|
108
|
+
show: boolean;
|
|
109
109
|
fileName: string;
|
|
110
110
|
autoPreview: boolean;
|
|
111
111
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
package/dist/useFullscreen.d.ts
CHANGED
|
@@ -104,8 +104,8 @@ 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
|
-
show: boolean;
|
|
108
107
|
inline: boolean;
|
|
108
|
+
show: boolean;
|
|
109
109
|
fileName: string;
|
|
110
110
|
autoPreview: boolean;
|
|
111
111
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
@@ -90,8 +90,8 @@ declare const __VLS_base: vue.DefineComponent<WaterFallProps, WaterFallExpose, {
|
|
|
90
90
|
loading: boolean;
|
|
91
91
|
columns: number;
|
|
92
92
|
virtualScroll: boolean;
|
|
93
|
-
gap: number;
|
|
94
93
|
infinite: boolean;
|
|
94
|
+
gap: number;
|
|
95
95
|
lazy: boolean;
|
|
96
96
|
skeleton: boolean;
|
|
97
97
|
skeletonCount: number;
|
|
@@ -90,8 +90,8 @@ declare const __VLS_base: vue.DefineComponent<WaterFallProps, WaterFallExpose, {
|
|
|
90
90
|
loading: boolean;
|
|
91
91
|
columns: number;
|
|
92
92
|
virtualScroll: boolean;
|
|
93
|
-
gap: number;
|
|
94
93
|
infinite: boolean;
|
|
94
|
+
gap: number;
|
|
95
95
|
lazy: boolean;
|
|
96
96
|
skeleton: boolean;
|
|
97
97
|
skeletonCount: number;
|
package/dist/useQRCode.d.cts
CHANGED
|
@@ -50,15 +50,15 @@ 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
|
-
label: string;
|
|
54
53
|
size: number;
|
|
55
|
-
color: string;
|
|
56
54
|
mode: RenderMode;
|
|
55
|
+
label: string;
|
|
56
|
+
color: string;
|
|
57
57
|
showBorder: boolean;
|
|
58
58
|
showLabel: boolean;
|
|
59
|
+
margin: number;
|
|
59
60
|
bgColor: string;
|
|
60
61
|
errorCorrectionLevel: ErrorCorrectionLevel;
|
|
61
|
-
margin: number;
|
|
62
62
|
logo: LogoOptions;
|
|
63
63
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
64
64
|
declare const _default: typeof __VLS_export;
|
package/dist/useQRCode.d.ts
CHANGED
|
@@ -50,15 +50,15 @@ 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
|
-
label: string;
|
|
54
53
|
size: number;
|
|
55
|
-
color: string;
|
|
56
54
|
mode: RenderMode;
|
|
55
|
+
label: string;
|
|
56
|
+
color: string;
|
|
57
57
|
showBorder: boolean;
|
|
58
58
|
showLabel: boolean;
|
|
59
|
+
margin: number;
|
|
59
60
|
bgColor: string;
|
|
60
61
|
errorCorrectionLevel: ErrorCorrectionLevel;
|
|
61
|
-
margin: number;
|
|
62
62
|
logo: LogoOptions;
|
|
63
63
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
64
64
|
declare const _default: typeof __VLS_export;
|
|
@@ -92,28 +92,28 @@ 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
|
-
error: (error: Error) => any;
|
|
96
|
-
clear: () => any;
|
|
97
95
|
change: (data: SignatureStroke[]) => any;
|
|
96
|
+
clear: () => any;
|
|
97
|
+
error: (error: Error) => any;
|
|
98
98
|
"start-draw": () => any;
|
|
99
99
|
drawing: (point: SignaturePoint) => any;
|
|
100
100
|
"end-draw": (stroke: SignatureStroke) => any;
|
|
101
101
|
undo: () => any;
|
|
102
102
|
redo: () => any;
|
|
103
103
|
}, string, vue.PublicProps, Readonly<SignatureProps> & Readonly<{
|
|
104
|
-
onError?: ((error: Error) => any) | undefined;
|
|
105
|
-
onClear?: (() => any) | undefined;
|
|
106
104
|
onChange?: ((data: SignatureStroke[]) => any) | undefined;
|
|
105
|
+
onClear?: (() => any) | undefined;
|
|
106
|
+
onError?: ((error: Error) => any) | undefined;
|
|
107
107
|
"onStart-draw"?: (() => any) | undefined;
|
|
108
108
|
onDrawing?: ((point: SignaturePoint) => any) | undefined;
|
|
109
109
|
"onEnd-draw"?: ((stroke: SignatureStroke) => any) | undefined;
|
|
110
110
|
onUndo?: (() => any) | undefined;
|
|
111
111
|
onRedo?: (() => any) | undefined;
|
|
112
112
|
}>, {
|
|
113
|
-
width: number | string;
|
|
114
|
-
height: number | string;
|
|
115
113
|
disabled: boolean;
|
|
116
114
|
readonly: boolean;
|
|
115
|
+
height: number | string;
|
|
116
|
+
width: number | string;
|
|
117
117
|
showToolbar: boolean;
|
|
118
118
|
maxHistory: number;
|
|
119
119
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
@@ -92,28 +92,28 @@ 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
|
-
error: (error: Error) => any;
|
|
96
|
-
clear: () => any;
|
|
97
95
|
change: (data: SignatureStroke[]) => any;
|
|
96
|
+
clear: () => any;
|
|
97
|
+
error: (error: Error) => any;
|
|
98
98
|
"start-draw": () => any;
|
|
99
99
|
drawing: (point: SignaturePoint) => any;
|
|
100
100
|
"end-draw": (stroke: SignatureStroke) => any;
|
|
101
101
|
undo: () => any;
|
|
102
102
|
redo: () => any;
|
|
103
103
|
}, string, vue.PublicProps, Readonly<SignatureProps> & Readonly<{
|
|
104
|
-
onError?: ((error: Error) => any) | undefined;
|
|
105
|
-
onClear?: (() => any) | undefined;
|
|
106
104
|
onChange?: ((data: SignatureStroke[]) => any) | undefined;
|
|
105
|
+
onClear?: (() => any) | undefined;
|
|
106
|
+
onError?: ((error: Error) => any) | undefined;
|
|
107
107
|
"onStart-draw"?: (() => any) | undefined;
|
|
108
108
|
onDrawing?: ((point: SignaturePoint) => any) | undefined;
|
|
109
109
|
"onEnd-draw"?: ((stroke: SignatureStroke) => any) | undefined;
|
|
110
110
|
onUndo?: (() => any) | undefined;
|
|
111
111
|
onRedo?: (() => any) | undefined;
|
|
112
112
|
}>, {
|
|
113
|
-
width: number | string;
|
|
114
|
-
height: number | string;
|
|
115
113
|
disabled: boolean;
|
|
116
114
|
readonly: boolean;
|
|
115
|
+
height: number | string;
|
|
116
|
+
width: number | string;
|
|
117
117
|
showToolbar: boolean;
|
|
118
118
|
maxHistory: number;
|
|
119
119
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
@@ -56,26 +56,26 @@ type __VLS_Slots = {
|
|
|
56
56
|
};
|
|
57
57
|
declare const __VLS_base: vue.DefineComponent<SplitPaneProps, SplitPaneExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
58
58
|
expand: (target: CollapseTarget) => any;
|
|
59
|
-
"update:size": (size: number) => any;
|
|
60
|
-
resize: (firstSize: number, secondSize: number) => any;
|
|
61
59
|
collapse: (target: CollapseTarget) => any;
|
|
60
|
+
resize: (firstSize: number, secondSize: number) => any;
|
|
62
61
|
"drag-start": (size: number) => any;
|
|
63
62
|
"drag-end": (size: number) => any;
|
|
63
|
+
"update:size": (size: number) => any;
|
|
64
64
|
}, string, vue.PublicProps, Readonly<SplitPaneProps> & Readonly<{
|
|
65
65
|
onExpand?: ((target: CollapseTarget) => any) | undefined;
|
|
66
|
-
"onUpdate:size"?: ((size: number) => any) | undefined;
|
|
67
|
-
onResize?: ((firstSize: number, secondSize: number) => any) | undefined;
|
|
68
66
|
onCollapse?: ((target: CollapseTarget) => any) | undefined;
|
|
67
|
+
onResize?: ((firstSize: number, secondSize: number) => any) | undefined;
|
|
69
68
|
"onDrag-start"?: ((size: number) => any) | undefined;
|
|
70
69
|
"onDrag-end"?: ((size: number) => any) | undefined;
|
|
70
|
+
"onUpdate:size"?: ((size: number) => any) | undefined;
|
|
71
71
|
}>, {
|
|
72
72
|
direction: SplitDirection;
|
|
73
73
|
collapsible: boolean;
|
|
74
74
|
disabled: boolean;
|
|
75
75
|
step: number;
|
|
76
|
+
maxSize: number;
|
|
76
77
|
defaultSize: number;
|
|
77
78
|
minSize: number;
|
|
78
|
-
maxSize: number;
|
|
79
79
|
minFirstSize: number;
|
|
80
80
|
minSecondSize: number;
|
|
81
81
|
showCollapseButton: boolean;
|