@robot-admin/naive-ui-components 0.37.2 → 0.38.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.
Files changed (136) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/README.md +1 -1
  3. package/README_EN.md +1 -1
  4. package/dist/C_AntV.css +30 -30
  5. package/dist/C_AudioPlayer.css +4 -4
  6. package/dist/C_Captcha.css +31 -19
  7. package/dist/C_FilePreview.css +1 -1
  8. package/dist/C_Form.base.css +61 -58
  9. package/dist/C_Form.css +61 -58
  10. package/dist/C_GlobalSearch.css +12 -12
  11. package/dist/C_Guide.css +6 -6
  12. package/dist/C_Guide2.cjs +1 -1
  13. package/dist/C_Guide2.js +1 -1
  14. package/dist/C_Login.css +139 -112
  15. package/dist/C_Login2.cjs +1 -1
  16. package/dist/C_Login2.js +1 -1
  17. package/dist/C_NotificationCenter.css +91 -91
  18. package/dist/C_NotificationCenter2.cjs +1 -1
  19. package/dist/C_NotificationCenter2.js +1 -1
  20. package/dist/C_Table.base.css +104 -101
  21. package/dist/C_Table.css +43 -43
  22. package/dist/C_Table.d.cts +1 -0
  23. package/dist/C_Table2.cjs +1 -1
  24. package/dist/C_Table2.js +1 -1
  25. package/dist/C_Timeline.css +2 -2
  26. package/dist/C_Tree.d.cts +1 -0
  27. package/dist/C_VideoPlayer.css +26 -26
  28. package/dist/C_VideoPlayer2.cjs +1 -1
  29. package/dist/C_VideoPlayer2.js +1 -1
  30. package/dist/C_VtableGantt.css +34 -32
  31. package/dist/C_WorkFlow.css +35 -35
  32. package/dist/C_WorkFlow2.cjs +1 -1
  33. package/dist/C_WorkFlow2.js +1 -1
  34. package/dist/Card.cjs +1 -1
  35. package/dist/Card.js +1 -1
  36. package/dist/UML.cjs +1 -1
  37. package/dist/UML.js +1 -1
  38. package/dist/config.d.cts +2 -2
  39. package/dist/config.d.ts +2 -2
  40. package/dist/constants.d.cts +2 -2
  41. package/dist/constants.d.ts +2 -2
  42. package/dist/constants2.d.cts +2 -2
  43. package/dist/constants2.d.ts +2 -2
  44. package/dist/constants3.d.cts +4 -4
  45. package/dist/constants3.d.ts +4 -4
  46. package/dist/constants4.d.cts +5 -5
  47. package/dist/constants4.d.ts +5 -5
  48. package/dist/constants5.d.cts +2 -2
  49. package/dist/constants5.d.ts +2 -2
  50. package/dist/data2.d.cts +7 -7
  51. package/dist/data2.d.ts +7 -7
  52. package/dist/editors.d.cts +7 -7
  53. package/dist/editors.d.ts +7 -7
  54. package/dist/graphics.cjs +1 -1
  55. package/dist/graphics.d.cts +0 -45
  56. package/dist/graphics.d.ts +0 -45
  57. package/dist/graphics.js +1 -1
  58. package/dist/index.d.cts +3 -2
  59. package/dist/index.d.ts +2 -2
  60. package/dist/index.vue.d.cts +4 -4
  61. package/dist/index.vue.d.ts +4 -4
  62. package/dist/index10.vue.d.cts +2 -2
  63. package/dist/index10.vue.d.ts +5 -5
  64. package/dist/index11.vue.d.cts +5 -5
  65. package/dist/index11.vue.d.ts +1 -1
  66. package/dist/index12.vue.d.cts +1 -1
  67. package/dist/index13.vue.d.ts +4 -4
  68. package/dist/index14.vue.d.cts +4 -4
  69. package/dist/index15.vue.d.ts +2 -2
  70. package/dist/index16.vue.d.cts +2 -2
  71. package/dist/index16.vue.d.ts +3 -3
  72. package/dist/index17.vue.d.cts +3 -3
  73. package/dist/index17.vue.d.ts +7 -7
  74. package/dist/index18.vue.d.cts +7 -7
  75. package/dist/index18.vue.d.ts +3 -3
  76. package/dist/index19.vue.d.cts +3 -3
  77. package/dist/index19.vue.d.ts +1 -1
  78. package/dist/index20.vue.d.cts +1 -1
  79. package/dist/index20.vue.d.ts +1 -1
  80. package/dist/index21.vue.d.cts +1 -1
  81. package/dist/index21.vue.d.ts +5 -5
  82. package/dist/index22.vue.d.cts +5 -5
  83. package/dist/index24.vue.d.cts +2 -2
  84. package/dist/index24.vue.d.ts +2 -2
  85. package/dist/index28.vue.d.cts +1 -1
  86. package/dist/index28.vue.d.ts +1 -1
  87. package/dist/index3.vue.d.cts +3 -3
  88. package/dist/index3.vue.d.ts +3 -3
  89. package/dist/index30.vue.d.cts +1 -1
  90. package/dist/index30.vue.d.ts +1 -1
  91. package/dist/index31.vue.d.cts +4 -4
  92. package/dist/index31.vue.d.ts +4 -4
  93. package/dist/index32.vue.d.cts +2 -2
  94. package/dist/index32.vue.d.ts +2 -2
  95. package/dist/index4.vue.d.cts +4 -4
  96. package/dist/index4.vue.d.ts +4 -4
  97. package/dist/index7.vue.d.ts +2 -2
  98. package/dist/index8.vue.d.cts +2 -2
  99. package/dist/index9.vue.d.ts +2 -2
  100. package/dist/mapUtils.d.cts +3 -3
  101. package/dist/mapUtils.d.ts +3 -3
  102. package/dist/presets.d.cts +1 -1
  103. package/dist/presets.d.ts +1 -1
  104. package/dist/style.css +484 -452
  105. package/dist/theme.cjs +1 -1
  106. package/dist/theme.d.cts +27 -8
  107. package/dist/theme.d.ts +27 -8
  108. package/dist/theme.js +1 -1
  109. package/dist/theme2.cjs +1 -1
  110. package/dist/theme2.js +1 -1
  111. package/dist/useCollapsePanel.d.cts +3 -3
  112. package/dist/useCollapsePanel.d.ts +3 -3
  113. package/dist/useComponentTheme.cjs +1 -1
  114. package/dist/useComponentTheme.js +1 -1
  115. package/dist/useCropperCore.d.cts +3 -3
  116. package/dist/useCropperCore.d.ts +3 -3
  117. package/dist/useDynamicFormState.d.cts +2 -2
  118. package/dist/useDynamicFormState.d.ts +2 -2
  119. package/dist/useEdgeInteraction.d.cts +2 -2
  120. package/dist/useEdgeInteraction.d.ts +2 -2
  121. package/dist/useFullscreen.d.cts +1 -1
  122. package/dist/useFullscreen.d.ts +1 -1
  123. package/dist/useInfiniteScroll.d.cts +2 -2
  124. package/dist/useInfiniteScroll.d.ts +2 -2
  125. package/dist/useQRCode.d.cts +3 -3
  126. package/dist/useQRCode.d.ts +3 -3
  127. package/dist/useSignatureHistory.d.cts +4 -4
  128. package/dist/useSignatureHistory.d.ts +4 -4
  129. package/dist/useSplitResize.d.cts +7 -7
  130. package/dist/useSplitResize.d.ts +7 -7
  131. package/dist/useWorkflowValidation.d.cts +2 -2
  132. package/dist/useWorkflowValidation.d.ts +2 -2
  133. package/dist/verification.d.cts +5 -5
  134. package/dist/verification.d.ts +5 -5
  135. package/docs/guides/theme.md +44 -2
  136. 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 i(e){let t=n(e).slice(1),r=[0,2,4].map(e=>{let n=Number.parseInt(t.slice(e,e+2),16)/255;return n<=.04045?n/12.92:((n+.055)/1.055)**2.4}).reduce((e,t,n)=>e+t*[.2126,.7152,.0722][n],0);return(r+.05)/.05>1.05/(r+.05)?`#000000`:`#ffffff`}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 n}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return r}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return e}}),Object.defineProperty(exports,`o`,{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return 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`,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=n(e).slice(1),r=[0,2,4].map(e=>{let n=Number.parseInt(t.slice(e,e+2),16)/255;return n<=.04045?n/12.92:((n+.055)/1.055)**2.4}).reduce((e,t,n)=>e+t*[.2126,.7152,.0722][n],0);return(r+.05)/.05>1.05/(r+.05)?`#000000`:`#ffffff`}function o(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,`o`,{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return t}});
package/dist/theme.d.cts CHANGED
@@ -3,14 +3,28 @@ 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
- interface ComponentThemeOptions {
6
+ /** 项目可覆盖的语义色;接受 #RGB / #RRGGBB,省略的角色沿用当前模式标准。 */
7
+ interface ComponentThemeColors {
8
+ primary: string;
9
+ success: string;
10
+ warning: string;
11
+ error: string;
12
+ info: string;
13
+ bgBody: string;
14
+ bgCard: string;
15
+ bgSurface: string;
16
+ bgMuted: string;
17
+ bgHover: string;
18
+ bgActive: string;
19
+ skeletonBg: string;
20
+ text1: string;
21
+ text2: string;
22
+ text3: string;
23
+ text4: string;
24
+ border: string;
25
+ }
26
+ interface ComponentThemeOptions extends Partial<ComponentThemeColors> {
7
27
  mode?: ComponentColorMode;
8
- /** 品牌与状态色接受 #RGB / #RRGGBB,衍生色由同一规则计算。 */
9
- primary?: string;
10
- success?: string;
11
- warning?: string;
12
- error?: string;
13
- info?: string;
14
28
  /** 控件圆角,单位 px;面板、卡片仍保留自己的角色层级。 */
15
29
  radius?: number;
16
30
  }
@@ -63,6 +77,11 @@ declare const COMPONENT_COLOR_PALETTES: Readonly<{
63
77
  }>;
64
78
  //#endregion
65
79
  //#region src/adapters/naive/theme.d.ts
80
+ declare module 'naive-ui' {
81
+ interface CustomThemeCommonVars {
82
+ robotComponentSkeletonColor?: string;
83
+ }
84
+ }
66
85
  interface ComponentThemeConfig {
67
86
  theme: GlobalTheme | null;
68
87
  themeOverrides: GlobalThemeOverrides;
@@ -70,4 +89,4 @@ interface ComponentThemeConfig {
70
89
  /** 一次配置现有 NConfigProvider;不创建第二个 Provider、不写全局样式。 */
71
90
  declare function createComponentTheme(options?: ComponentThemeOptions): ComponentThemeConfig;
72
91
  //#endregion
73
- export { ComponentColorMode as a, COMPONENT_CONTROL_HEIGHTS as i, createComponentTheme as n, ComponentThemeOptions as o, COMPONENT_COLOR_PALETTES as r, ComponentThemeConfig as t };
92
+ 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,28 @@ 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
- interface ComponentThemeOptions {
6
+ /** 项目可覆盖的语义色;接受 #RGB / #RRGGBB,省略的角色沿用当前模式标准。 */
7
+ interface ComponentThemeColors {
8
+ primary: string;
9
+ success: string;
10
+ warning: string;
11
+ error: string;
12
+ info: string;
13
+ bgBody: string;
14
+ bgCard: string;
15
+ bgSurface: string;
16
+ bgMuted: string;
17
+ bgHover: string;
18
+ bgActive: string;
19
+ skeletonBg: string;
20
+ text1: string;
21
+ text2: string;
22
+ text3: string;
23
+ text4: string;
24
+ border: string;
25
+ }
26
+ interface ComponentThemeOptions extends Partial<ComponentThemeColors> {
7
27
  mode?: ComponentColorMode;
8
- /** 品牌与状态色接受 #RGB / #RRGGBB,衍生色由同一规则计算。 */
9
- primary?: string;
10
- success?: string;
11
- warning?: string;
12
- error?: string;
13
- info?: string;
14
28
  /** 控件圆角,单位 px;面板、卡片仍保留自己的角色层级。 */
15
29
  radius?: number;
16
30
  }
@@ -63,6 +77,11 @@ declare const COMPONENT_COLOR_PALETTES: Readonly<{
63
77
  }>;
64
78
  //#endregion
65
79
  //#region src/adapters/naive/theme.d.ts
80
+ declare module 'naive-ui' {
81
+ interface CustomThemeCommonVars {
82
+ robotComponentSkeletonColor?: string;
83
+ }
84
+ }
66
85
  interface ComponentThemeConfig {
67
86
  theme: GlobalTheme | null;
68
87
  themeOverrides: GlobalThemeOverrides;
@@ -70,4 +89,4 @@ interface ComponentThemeConfig {
70
89
  /** 一次配置现有 NConfigProvider;不创建第二个 Provider、不写全局样式。 */
71
90
  declare function createComponentTheme(options?: ComponentThemeOptions): ComponentThemeConfig;
72
91
  //#endregion
73
- export { ComponentColorMode as a, COMPONENT_CONTROL_HEIGHTS as i, createComponentTheme as n, ComponentThemeOptions as o, COMPONENT_COLOR_PALETTES as r, ComponentThemeConfig as t };
92
+ 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 i(e){let t=n(e).slice(1),r=[0,2,4].map(e=>{let n=Number.parseInt(t.slice(e,e+2),16)/255;return n<=.04045?n/12.92:((n+.055)/1.055)**2.4}).reduce((e,t,n)=>e+t*[.2126,.7152,.0722][n],0);return(r+.05)/.05>1.05/(r+.05)?`#000000`:`#ffffff`}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{n as a,r as i,e as n,i as o,a as r,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`,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=n(e).slice(1),r=[0,2,4].map(e=>{let n=Number.parseInt(t.slice(e,e+2),16)/255;return n<=.04045?n/12.92:((n+.055)/1.055)**2.4}).reduce((e,t,n)=>e+t*[.2126,.7152,.0722][n],0);return(r+.05)/.05>1.05/(r+.05)?`#000000`:`#ffffff`}function o(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 o,o as r,t};
package/dist/theme2.cjs CHANGED
@@ -1 +1 @@
1
- require(`./chunk.cjs`);const e=require(`./theme.cjs`);let t=require(`naive-ui`);const n=(t,n)=>e.a(t??n);function r(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 i(i={}){let a=i.mode??`light`;if(a!==`light`&&a!==`dark`)throw TypeError(`Component theme mode must be light or dark`);let o=e.t[a],s=r(i.radius),c=n(i.primary,o.primary),l=n(i.success,o.success),u=n(i.warning,o.warning),d=n(i.error,o.error),f=n(i.info,o.info),p={baseColor:a===`dark`?`#000000`:`#ffffff`,textColorBase:a===`dark`?`#ffffff`:`#000000`,primaryColor:c,primaryColorHover:e.i(c,255,.14),primaryColorPressed:e.i(c,0,.14),primaryColorSuppl:c,successColor:l,successColorHover:e.i(l,255,.14),successColorPressed:e.i(l,0,.14),successColorSuppl:l,warningColor:u,warningColorHover:e.i(u,255,.14),warningColorPressed:e.i(u,0,.14),warningColorSuppl:u,errorColor:d,errorColorHover:e.i(d,255,.14),errorColorPressed:e.i(d,0,.14),errorColorSuppl:d,infoColor:f,infoColorHover:e.i(f,255,.14),infoColorPressed:e.i(f,0,.14),infoColorSuppl:f,bodyColor:o.bgBody,cardColor:o.bgCard,modalColor:o.bgSurface,popoverColor:o.bgSurface,actionColor:o.bgMuted,hoverColor:o.bgHover,pressedColor:o.bgActive,borderColor:o.border,dividerColor:o.border,textColor1:o.text1,textColor2:o.text2,textColor3:o.text3,textColorDisabled:o.text4,borderRadius:`${s}px`,borderRadiusSmall:`${Math.max(0,s-2)}px`,heightTiny:`${e.n.tiny}px`,heightSmall:`${e.n.small}px`,heightMedium:`${e.n.medium}px`,heightLarge:`${e.n.large}px`};return{theme:a===`dark`?t.darkTheme:null,themeOverrides:{common:p,Skeleton:{color:o.skeletonBg,colorEnd:o.bgHover},Button:{textColorPrimary:e.o(c),textColorHoverPrimary:e.o(p.primaryColorHover),textColorPressedPrimary:e.o(p.primaryColorPressed),textColorFocusPrimary:e.o(p.primaryColorHover),textColorSuccess:e.o(l),textColorHoverSuccess:e.o(p.successColorHover),textColorPressedSuccess:e.o(p.successColorPressed),textColorFocusSuccess:e.o(p.successColorHover),textColorWarning:e.o(u),textColorHoverWarning:e.o(p.warningColorHover),textColorPressedWarning:e.o(p.warningColorPressed),textColorFocusWarning:e.o(p.warningColorHover),textColorError:e.o(d),textColorHoverError:e.o(p.errorColorHover),textColorPressedError:e.o(p.errorColorPressed),textColorFocusError:e.o(p.errorColorHover),textColorInfo:e.o(f),textColorHoverInfo:e.o(p.infoColorHover),textColorPressedInfo:e.o(p.infoColorPressed),textColorFocusInfo:e.o(p.infoColorHover)}}}}Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return i}});
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:e.o(s),textColorDisabledPrimary:e.o(s),textColorHoverPrimary:e.o(p.primaryColorHover),textColorPressedPrimary:e.o(p.primaryColorPressed),textColorFocusPrimary:e.o(p.primaryColorHover),textColorSuccess:e.o(c),textColorDisabledSuccess:e.o(c),textColorHoverSuccess:e.o(p.successColorHover),textColorPressedSuccess:e.o(p.successColorPressed),textColorFocusSuccess:e.o(p.successColorHover),textColorWarning:e.o(l),textColorDisabledWarning:e.o(l),textColorHoverWarning:e.o(p.warningColorHover),textColorPressedWarning:e.o(p.warningColorPressed),textColorFocusWarning:e.o(p.warningColorHover),textColorError:e.o(u),textColorDisabledError:e.o(u),textColorHoverError:e.o(p.errorColorHover),textColorPressedError:e.o(p.errorColorPressed),textColorFocusError:e.o(p.errorColorHover),textColorInfo:e.o(d),textColorDisabledInfo:e.o(d),textColorHoverInfo:e.o(p.infoColorHover),textColorPressedInfo:e.o(p.infoColorPressed),textColorFocusInfo:e.o(p.infoColorHover)}}}}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,o as r,t as i}from"./theme.js";import{darkTheme as a}from"naive-ui";const o=(t,n)=>e(t??n);function s(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 c(e={}){let c=e.mode??`light`;if(c!==`light`&&c!==`dark`)throw TypeError(`Component theme mode must be light or dark`);let l=i[c],u=s(e.radius),d=o(e.primary,l.primary),f=o(e.success,l.success),p=o(e.warning,l.warning),m=o(e.error,l.error),h=o(e.info,l.info),g={baseColor:c===`dark`?`#000000`:`#ffffff`,textColorBase:c===`dark`?`#ffffff`:`#000000`,primaryColor:d,primaryColorHover:t(d,255,.14),primaryColorPressed:t(d,0,.14),primaryColorSuppl:d,successColor:f,successColorHover:t(f,255,.14),successColorPressed:t(f,0,.14),successColorSuppl:f,warningColor:p,warningColorHover:t(p,255,.14),warningColorPressed:t(p,0,.14),warningColorSuppl:p,errorColor:m,errorColorHover:t(m,255,.14),errorColorPressed:t(m,0,.14),errorColorSuppl:m,infoColor:h,infoColorHover:t(h,255,.14),infoColorPressed:t(h,0,.14),infoColorSuppl:h,bodyColor:l.bgBody,cardColor:l.bgCard,modalColor:l.bgSurface,popoverColor:l.bgSurface,actionColor:l.bgMuted,hoverColor:l.bgHover,pressedColor:l.bgActive,borderColor:l.border,dividerColor:l.border,textColor1:l.text1,textColor2:l.text2,textColor3:l.text3,textColorDisabled:l.text4,borderRadius:`${u}px`,borderRadiusSmall:`${Math.max(0,u-2)}px`,heightTiny:`${n.tiny}px`,heightSmall:`${n.small}px`,heightMedium:`${n.medium}px`,heightLarge:`${n.large}px`};return{theme:c===`dark`?a:null,themeOverrides:{common:g,Skeleton:{color:l.skeletonBg,colorEnd:l.bgHover},Button:{textColorPrimary:r(d),textColorHoverPrimary:r(g.primaryColorHover),textColorPressedPrimary:r(g.primaryColorPressed),textColorFocusPrimary:r(g.primaryColorHover),textColorSuccess:r(f),textColorHoverSuccess:r(g.successColorHover),textColorPressedSuccess:r(g.successColorPressed),textColorFocusSuccess:r(g.successColorHover),textColorWarning:r(p),textColorHoverWarning:r(g.warningColorHover),textColorPressedWarning:r(g.warningColorPressed),textColorFocusWarning:r(g.warningColorHover),textColorError:r(m),textColorHoverError:r(g.errorColorHover),textColorPressedError:r(g.errorColorPressed),textColorFocusError:r(g.errorColorHover),textColorInfo:r(h),textColorHoverInfo:r(g.infoColorHover),textColorPressedInfo:r(g.infoColorPressed),textColorFocusInfo:r(g.infoColorHover)}}}}export{c as t};
1
+ import{a as e,i as t,n,o as r}from"./theme.js";import{darkTheme as i}from"naive-ui";function a(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 o(o={}){let s=o.mode??`light`;if(s!==`light`&&s!==`dark`)throw TypeError(`Component theme mode must be light or dark`);let c=e(o,s),l=a(o.radius),{primary:u,success:d,warning:f,error:p,info:m}=c,h=`1px solid ${c.border}`,g={baseColor:s===`dark`?`#000000`:`#ffffff`,textColorBase:s===`dark`?`#ffffff`:`#000000`,primaryColor:u,primaryColorHover:t(u,255,.14),primaryColorPressed:t(u,0,.14),primaryColorSuppl:u,successColor:d,successColorHover:t(d,255,.14),successColorPressed:t(d,0,.14),successColorSuppl:d,warningColor:f,warningColorHover:t(f,255,.14),warningColorPressed:t(f,0,.14),warningColorSuppl:f,errorColor:p,errorColorHover:t(p,255,.14),errorColorPressed:t(p,0,.14),errorColorSuppl:p,infoColor:m,infoColorHover:t(m,255,.14),infoColorPressed:t(m,0,.14),infoColorSuppl:m,bodyColor:c.bgBody,cardColor:c.bgCard,tableColor:c.bgCard,modalColor:c.bgSurface,popoverColor:c.bgSurface,inputColor:c.bgCard,inputColorDisabled:c.bgMuted,tableHeaderColor:c.bgMuted,tableColorHover:c.bgHover,tableColorStriped:c.bgMuted,tabColor:c.bgMuted,codeColor:c.bgMuted,tagColor:c.bgMuted,buttonColor2:c.bgMuted,buttonColor2Hover:c.bgHover,buttonColor2Pressed:c.bgActive,actionColor:c.bgMuted,hoverColor:c.bgHover,pressedColor:c.bgActive,robotComponentSkeletonColor:c.skeletonBg,borderColor:c.border,dividerColor:c.border,textColor1:c.text1,textColor2:c.text2,textColor3:c.text3,textColorDisabled:c.text4,placeholderColor:c.text3,placeholderColorDisabled:c.text4,iconColor:c.text3,iconColorHover:c.text2,iconColorPressed:c.text1,iconColorDisabled:c.text4,clearColor:c.text3,clearColorHover:c.text2,clearColorPressed:c.text1,closeIconColor:c.text3,closeIconColorHover:c.text2,closeIconColorPressed:c.text1,closeColorHover:c.bgHover,closeColorPressed:c.bgActive,progressRailColor:c.bgMuted,railColor:c.border,scrollbarColor:c.text4,scrollbarColorHover:c.text3,borderRadius:`${l}px`,borderRadiusSmall:`${Math.max(0,l-2)}px`,heightTiny:`${n.tiny}px`,heightSmall:`${n.small}px`,heightMedium:`${n.medium}px`,heightLarge:`${n.large}px`};return{theme:s===`dark`?i:null,themeOverrides:{common:g,Skeleton:{color:c.skeletonBg,colorEnd:c.bgHover},Tabs:{colorSegment:c.bgMuted,tabColorSegment:c.bgCard},Input:{border:h,borderDisabled:h},InternalSelection:{border:h},Button:{textColorPrimary:r(u),textColorDisabledPrimary:r(u),textColorHoverPrimary:r(g.primaryColorHover),textColorPressedPrimary:r(g.primaryColorPressed),textColorFocusPrimary:r(g.primaryColorHover),textColorSuccess:r(d),textColorDisabledSuccess:r(d),textColorHoverSuccess:r(g.successColorHover),textColorPressedSuccess:r(g.successColorPressed),textColorFocusSuccess:r(g.successColorHover),textColorWarning:r(f),textColorDisabledWarning:r(f),textColorHoverWarning:r(g.warningColorHover),textColorPressedWarning:r(g.warningColorPressed),textColorFocusWarning:r(g.warningColorHover),textColorError:r(p),textColorDisabledError:r(p),textColorHoverError:r(g.errorColorHover),textColorPressedError:r(g.errorColorPressed),textColorFocusError:r(g.errorColorHover),textColorInfo:r(m),textColorDisabledInfo:r(m),textColorHoverInfo:r(g.infoColorHover),textColorPressedInfo:r(g.infoColorPressed),textColorFocusInfo:r(g.infoColorHover)}}}}export{o as t};
@@ -73,22 +73,22 @@ 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
86
  accordion: boolean;
87
+ persistKey: string;
87
88
  activeKeys: string[];
88
89
  defaultActiveKeys: string[];
89
90
  variant: CollapsePanelVariant;
90
91
  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;
@@ -73,22 +73,22 @@ 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
86
  accordion: boolean;
87
+ persistKey: string;
87
88
  activeKeys: string[];
88
89
  defaultActiveKeys: string[];
89
90
  variant: CollapsePanelVariant;
90
91
  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`],"skeleton-bg":[`skeletonBg`,`actionColor`],"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]]))}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}}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`],"skeleton-bg":[`skeletonBg`,`actionColor`],"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]]))}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}}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};
@@ -63,18 +63,18 @@ declare const __VLS_export: vue.DefineComponent<ImageCropperProps, ImageCropperE
63
63
  onConfirm?: ((result: CropResult) => any) | undefined;
64
64
  onCrop?: ((result: CropResult) => any) | undefined;
65
65
  }>, {
66
- disabled: boolean;
67
66
  height: string | number;
68
- modalTitle: string;
69
67
  src: string;
68
+ disabled: boolean;
70
69
  modal: boolean;
71
70
  showToolbar: boolean;
71
+ showPreview: boolean;
72
72
  aspectRatio: number;
73
+ modalTitle: string;
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;
@@ -63,18 +63,18 @@ declare const __VLS_export: vue.DefineComponent<ImageCropperProps, ImageCropperE
63
63
  onConfirm?: ((result: CropResult) => any) | undefined;
64
64
  onCrop?: ((result: CropResult) => any) | undefined;
65
65
  }>, {
66
- disabled: boolean;
67
66
  height: string | number;
68
- modalTitle: string;
69
67
  src: string;
68
+ disabled: boolean;
70
69
  modal: boolean;
71
70
  showToolbar: boolean;
71
+ showPreview: boolean;
72
72
  aspectRatio: number;
73
+ modalTitle: string;
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: "submit", payload: SubmitEventPayload<T>) => void) & ((evt: "update:modelValue", model: T) => void) & ((evt: "validate-success", model: T) => void) & ((evt: "validate-error", errors: unknown) => void);
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: "submit", payload: SubmitEventPayload<T>) => void) & ((evt: "update:modelValue", model: T) => void) & ((evt: "validate-success", model: T) => void) & ((evt: "validate-error", errors: unknown) => void);
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
- height: string | number;
269
267
  width: string | number;
268
+ height: 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
- height: string | number;
269
267
  width: string | number;
268
+ height: string | number;
269
+ readonly: boolean;
270
270
  showToolbar: boolean;
271
271
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
272
272
  declare const _default: typeof __VLS_export;
@@ -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
- inline: boolean;
108
107
  show: boolean;
108
+ inline: boolean;
109
109
  fileName: string;
110
110
  autoPreview: boolean;
111
111
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
@@ -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
- inline: boolean;
108
107
  show: boolean;
108
+ inline: boolean;
109
109
  fileName: string;
110
110
  autoPreview: boolean;
111
111
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
@@ -88,10 +88,10 @@ declare const __VLS_base: vue.DefineComponent<WaterFallProps, WaterFallExpose, {
88
88
  "onImage-error"?: ((item: WaterFallItem) => any) | undefined;
89
89
  }>, {
90
90
  loading: boolean;
91
+ columns: number;
91
92
  virtualScroll: boolean;
92
- infinite: boolean;
93
93
  gap: number;
94
- columns: number;
94
+ infinite: boolean;
95
95
  lazy: boolean;
96
96
  skeleton: boolean;
97
97
  skeletonCount: number;
@@ -88,10 +88,10 @@ declare const __VLS_base: vue.DefineComponent<WaterFallProps, WaterFallExpose, {
88
88
  "onImage-error"?: ((item: WaterFallItem) => any) | undefined;
89
89
  }>, {
90
90
  loading: boolean;
91
+ columns: number;
91
92
  virtualScroll: boolean;
92
- infinite: boolean;
93
93
  gap: number;
94
- columns: number;
94
+ infinite: boolean;
95
95
  lazy: boolean;
96
96
  skeleton: boolean;
97
97
  skeletonCount: number;
@@ -50,12 +50,12 @@ 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;
53
54
  size: number;
55
+ color: string;
56
+ mode: RenderMode;
54
57
  showBorder: boolean;
55
- label: string;
56
58
  showLabel: boolean;
57
- mode: RenderMode;
58
- color: string;
59
59
  bgColor: string;
60
60
  errorCorrectionLevel: ErrorCorrectionLevel;
61
61
  margin: number;
@@ -50,12 +50,12 @@ 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;
53
54
  size: number;
55
+ color: string;
56
+ mode: RenderMode;
54
57
  showBorder: boolean;
55
- label: string;
56
58
  showLabel: boolean;
57
- mode: RenderMode;
58
- color: string;
59
59
  bgColor: string;
60
60
  errorCorrectionLevel: ErrorCorrectionLevel;
61
61
  margin: number;
@@ -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
- change: (data: SignatureStroke[]) => any;
96
95
  error: (error: Error) => any;
97
96
  clear: () => any;
97
+ change: (data: SignatureStroke[]) => 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
- onChange?: ((data: SignatureStroke[]) => any) | undefined;
105
104
  onError?: ((error: Error) => any) | undefined;
106
105
  onClear?: (() => any) | undefined;
106
+ onChange?: ((data: SignatureStroke[]) => 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;
113
115
  disabled: boolean;
114
116
  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
- change: (data: SignatureStroke[]) => any;
96
95
  error: (error: Error) => any;
97
96
  clear: () => any;
97
+ change: (data: SignatureStroke[]) => 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
- onChange?: ((data: SignatureStroke[]) => any) | undefined;
105
104
  onError?: ((error: Error) => any) | undefined;
106
105
  onClear?: (() => any) | undefined;
106
+ onChange?: ((data: SignatureStroke[]) => 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;
113
115
  disabled: boolean;
114
116
  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>;
@@ -55,27 +55,27 @@ 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
+ expand: (target: CollapseTarget) => any;
59
+ "update:size": (size: number) => any;
60
+ resize: (firstSize: number, secondSize: number) => any;
58
61
  collapse: (target: CollapseTarget) => any;
59
62
  "drag-start": (size: number) => any;
60
63
  "drag-end": (size: number) => any;
61
- resize: (firstSize: number, secondSize: number) => any;
62
- expand: (target: CollapseTarget) => any;
63
- "update:size": (size: number) => any;
64
64
  }, string, vue.PublicProps, Readonly<SplitPaneProps> & Readonly<{
65
+ onExpand?: ((target: CollapseTarget) => any) | undefined;
66
+ "onUpdate:size"?: ((size: number) => any) | undefined;
67
+ onResize?: ((firstSize: number, secondSize: number) => any) | undefined;
65
68
  onCollapse?: ((target: CollapseTarget) => any) | undefined;
66
69
  "onDrag-start"?: ((size: number) => any) | undefined;
67
70
  "onDrag-end"?: ((size: number) => any) | undefined;
68
- onResize?: ((firstSize: number, secondSize: number) => any) | undefined;
69
- onExpand?: ((target: CollapseTarget) => any) | undefined;
70
- "onUpdate:size"?: ((size: number) => any) | undefined;
71
71
  }>, {
72
72
  direction: SplitDirection;
73
73
  collapsible: boolean;
74
74
  disabled: boolean;
75
- maxSize: number;
76
75
  step: number;
77
76
  defaultSize: number;
78
77
  minSize: number;
78
+ maxSize: number;
79
79
  minFirstSize: number;
80
80
  minSecondSize: number;
81
81
  showCollapseButton: boolean;
@@ -55,27 +55,27 @@ 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
+ expand: (target: CollapseTarget) => any;
59
+ "update:size": (size: number) => any;
60
+ resize: (firstSize: number, secondSize: number) => any;
58
61
  collapse: (target: CollapseTarget) => any;
59
62
  "drag-start": (size: number) => any;
60
63
  "drag-end": (size: number) => any;
61
- resize: (firstSize: number, secondSize: number) => any;
62
- expand: (target: CollapseTarget) => any;
63
- "update:size": (size: number) => any;
64
64
  }, string, vue.PublicProps, Readonly<SplitPaneProps> & Readonly<{
65
+ onExpand?: ((target: CollapseTarget) => any) | undefined;
66
+ "onUpdate:size"?: ((size: number) => any) | undefined;
67
+ onResize?: ((firstSize: number, secondSize: number) => any) | undefined;
65
68
  onCollapse?: ((target: CollapseTarget) => any) | undefined;
66
69
  "onDrag-start"?: ((size: number) => any) | undefined;
67
70
  "onDrag-end"?: ((size: number) => any) | undefined;
68
- onResize?: ((firstSize: number, secondSize: number) => any) | undefined;
69
- onExpand?: ((target: CollapseTarget) => any) | undefined;
70
- "onUpdate:size"?: ((size: number) => any) | undefined;
71
71
  }>, {
72
72
  direction: SplitDirection;
73
73
  collapsible: boolean;
74
74
  disabled: boolean;
75
- maxSize: number;
76
75
  step: number;
77
76
  defaultSize: number;
78
77
  minSize: number;
78
+ maxSize: number;
79
79
  minFirstSize: number;
80
80
  minSecondSize: number;
81
81
  showCollapseButton: boolean;
@@ -307,15 +307,15 @@ declare const __VLS_base: vue.DefineComponent<WorkflowProps, {
307
307
  }>;
308
308
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
309
309
  "node-click": (node: WorkflowNode<NodeType>) => any;
310
- "update:modelValue": (value: WorkflowData) => any;
311
310
  change: (value: WorkflowData) => any;
311
+ "update:modelValue": (value: WorkflowData) => any;
312
312
  save: (data: WorkflowData) => any;
313
313
  "validate-error": (errors: ValidationError[]) => any;
314
314
  "edge-click": (edge: WorkflowEdge) => any;
315
315
  }, string, vue.PublicProps, Readonly<WorkflowProps> & Readonly<{
316
316
  "onNode-click"?: ((node: WorkflowNode<NodeType>) => any) | undefined;
317
- "onUpdate:modelValue"?: ((value: WorkflowData) => any) | undefined;
318
317
  onChange?: ((value: WorkflowData) => any) | undefined;
318
+ "onUpdate:modelValue"?: ((value: WorkflowData) => any) | undefined;
319
319
  onSave?: ((data: WorkflowData) => any) | undefined;
320
320
  "onValidate-error"?: ((errors: ValidationError[]) => any) | undefined;
321
321
  "onEdge-click"?: ((edge: WorkflowEdge) => any) | undefined;
@@ -307,15 +307,15 @@ declare const __VLS_base: vue.DefineComponent<WorkflowProps, {
307
307
  }>;
308
308
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
309
309
  "node-click": (node: WorkflowNode<NodeType>) => any;
310
- "update:modelValue": (value: WorkflowData) => any;
311
310
  change: (value: WorkflowData) => any;
311
+ "update:modelValue": (value: WorkflowData) => any;
312
312
  save: (data: WorkflowData) => any;
313
313
  "validate-error": (errors: ValidationError[]) => any;
314
314
  "edge-click": (edge: WorkflowEdge) => any;
315
315
  }, string, vue.PublicProps, Readonly<WorkflowProps> & Readonly<{
316
316
  "onNode-click"?: ((node: WorkflowNode<NodeType>) => any) | undefined;
317
- "onUpdate:modelValue"?: ((value: WorkflowData) => any) | undefined;
318
317
  onChange?: ((value: WorkflowData) => any) | undefined;
318
+ "onUpdate:modelValue"?: ((value: WorkflowData) => any) | undefined;
319
319
  onSave?: ((data: WorkflowData) => any) | undefined;
320
320
  "onValidate-error"?: ((errors: ValidationError[]) => any) | undefined;
321
321
  "onEdge-click"?: ((edge: WorkflowEdge) => any) | undefined;