@robot-admin/naive-ui-components 0.37.1 → 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.
- package/CHANGELOG.md +20 -0
- package/README.md +24 -3
- package/README_EN.md +23 -2
- package/dist/C_AntV.css +30 -30
- package/dist/C_AudioPlayer.css +4 -4
- package/dist/C_Captcha.css +31 -19
- package/dist/C_Captcha.d.ts +1 -1
- package/dist/C_DataPicker.d.ts +0 -1
- package/dist/C_Density2.cjs +1 -1
- package/dist/C_Density2.js +1 -1
- package/dist/C_FilePreview.css +1 -1
- package/dist/C_Form.base.css +61 -58
- package/dist/C_Form.css +61 -58
- package/dist/C_Form.d.cts +1 -1
- package/dist/C_Form.d.ts +2 -1
- package/dist/C_FormModal.d.ts +2 -1
- package/dist/C_FormSearch.d.ts +2 -2
- package/dist/C_GlobalSearch.css +12 -12
- package/dist/C_Guide.css +6 -6
- package/dist/C_Guide2.cjs +1 -1
- package/dist/C_Guide2.js +1 -1
- package/dist/C_Login.css +139 -112
- package/dist/C_Login.d.ts +1 -1
- package/dist/C_Login2.cjs +1 -1
- package/dist/C_Login2.js +1 -1
- package/dist/C_NotificationCenter.css +91 -91
- package/dist/C_NotificationCenter2.cjs +1 -1
- package/dist/C_NotificationCenter2.js +1 -1
- package/dist/C_Table.base.css +231 -212
- package/dist/C_Table.cjs +1 -1
- package/dist/C_Table.css +170 -154
- package/dist/C_Table.d.cts +2 -1
- package/dist/C_Table.d.ts +2 -3
- package/dist/C_Table.js +1 -1
- package/dist/C_Table2.cjs +4 -4
- package/dist/C_Table2.js +4 -4
- package/dist/C_Timeline.css +2 -2
- package/dist/C_Tree.d.cts +1 -0
- package/dist/C_Tree.d.ts +0 -1
- package/dist/C_UserPicker.d.ts +0 -1
- package/dist/C_VideoPlayer.css +26 -26
- package/dist/C_VideoPlayer2.cjs +1 -1
- package/dist/C_VideoPlayer2.js +1 -1
- package/dist/C_VtableGantt.css +34 -32
- package/dist/C_WorkFlow.css +35 -35
- package/dist/C_WorkFlow.d.ts +0 -1
- package/dist/C_WorkFlow2.cjs +1 -1
- package/dist/C_WorkFlow2.js +1 -1
- package/dist/Card.cjs +1 -1
- package/dist/Card.js +1 -1
- package/dist/UML.cjs +1 -1
- package/dist/UML.js +1 -1
- package/dist/component-config.d.ts +1723 -2
- package/dist/config.cjs +1 -1
- package/dist/config.d.cts +3 -3
- package/dist/config.d.ts +4 -3
- package/dist/config.js +1 -1
- package/dist/constants3.d.cts +5 -5
- package/dist/constants3.d.ts +5 -5
- package/dist/constants4.d.cts +5 -5
- package/dist/constants4.d.ts +5 -5
- package/dist/context.cjs +1 -1
- package/dist/context.d.cts +1118 -3
- package/dist/context.js +1 -1
- package/dist/data2.d.cts +3 -3
- package/dist/data2.d.ts +3 -3
- package/dist/dateRange.d.ts +1 -1
- package/dist/editors.d.cts +9 -7
- package/dist/editors.d.ts +9 -7
- package/dist/graphics.cjs +1 -1
- package/dist/graphics.d.cts +0 -45
- package/dist/graphics.d.ts +0 -45
- package/dist/graphics.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +5 -4
- package/dist/index.d.ts +4 -5
- package/dist/index.js +1 -1
- package/dist/index.vue.d.cts +4 -4
- package/dist/index.vue.d.ts +4 -4
- package/dist/index10.vue.d.ts +5 -5
- package/dist/index11.vue.d.cts +5 -5
- package/dist/index11.vue.d.ts +4 -4
- package/dist/index12.vue.d.cts +4 -4
- package/dist/index13.vue.d.ts +2 -2
- package/dist/index14.vue.d.cts +2 -2
- package/dist/index15.vue.d.ts +1 -1
- package/dist/index16.vue.d.cts +1 -1
- package/dist/index16.vue.d.ts +3 -3
- package/dist/index17.vue.d.cts +3 -3
- package/dist/index17.vue.d.ts +6 -6
- package/dist/index18.vue.d.cts +6 -6
- package/dist/index19.vue.d.ts +1 -1
- package/dist/index20.vue.d.cts +1 -1
- package/dist/index21.vue.d.ts +2 -2
- package/dist/index22.vue.d.cts +2 -2
- package/dist/index27.vue.d.cts +2 -2
- package/dist/index27.vue.d.ts +2 -2
- package/dist/index28.vue.d.cts +2 -2
- package/dist/index28.vue.d.ts +2 -2
- 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 +2 -2
- package/dist/index31.vue.d.ts +2 -2
- package/dist/index32.vue.d.cts +2 -2
- package/dist/index32.vue.d.ts +2 -2
- package/dist/index4.vue.d.cts +2 -2
- package/dist/index4.vue.d.ts +2 -2
- package/dist/index8.vue.d.ts +2 -2
- package/dist/index9.vue.d.cts +2 -2
- package/dist/presets.d.cts +1 -1
- package/dist/presets.d.ts +1 -1
- package/dist/style.css +612 -564
- package/dist/theme.cjs +1 -1
- package/dist/theme.d.cts +27 -8
- package/dist/theme.d.ts +27 -8
- package/dist/theme.js +1 -1
- package/dist/theme2.cjs +1 -1
- package/dist/theme2.js +1 -1
- package/dist/types3.d.ts +5 -1119
- package/dist/types4.d.cts +5 -1119
- package/dist/types6.d.ts +2 -1
- package/dist/types7.d.cts +2 -1
- package/dist/useCalendarEvents.d.cts +2 -2
- package/dist/useCalendarEvents.d.ts +2 -2
- package/dist/useCollapsePanel.d.cts +7 -7
- package/dist/useCollapsePanel.d.ts +7 -7
- package/dist/useComponentTheme.cjs +1 -1
- package/dist/useComponentTheme.js +1 -1
- package/dist/useCropperCore.d.cts +8 -8
- package/dist/useCropperCore.d.ts +8 -8
- package/dist/useDynamicFormState.d.cts +1 -1
- package/dist/useDynamicFormState.d.ts +1 -1
- package/dist/useEdgeInteraction.d.cts +1 -1
- package/dist/useEdgeInteraction.d.ts +1 -1
- package/dist/useFormRenderer.d.cts +1 -1
- package/dist/useFormRenderer.d.ts +1 -1
- package/dist/useGlobalSearch.d.cts +1 -1
- package/dist/useGlobalSearch.d.ts +1 -1
- package/dist/useInfiniteScroll.d.cts +4 -4
- package/dist/useInfiniteScroll.d.ts +4 -4
- package/dist/useQRCode.d.cts +3 -3
- package/dist/useQRCode.d.ts +3 -3
- package/dist/useSignatureHistory.d.cts +3 -3
- package/dist/useSignatureHistory.d.ts +3 -3
- package/dist/useSplitResize.d.cts +3 -3
- package/dist/useSplitResize.d.ts +3 -3
- package/dist/verification.d.cts +7 -7
- package/dist/verification.d.ts +7 -7
- package/docs/guides/table-density.md +19 -2
- package/docs/guides/theme.md +44 -2
- package/package.json +2 -1
- package/dist/context.d.ts +0 -610
- package/dist/useTableGlobalConfig.cjs +0 -1
- package/dist/useTableGlobalConfig.js +0 -1
package/dist/context.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=Symbol(`robot-component-feedback`),t=Symbol(`robot-component-locale`),n=Symbol(`robot-component-density`),r=Symbol(`c-form-global-config`);export{r as i,e as n,t as r,n as t};
|
|
1
|
+
const e=Symbol(`robot-component-feedback`),t=Symbol(`robot-component-locale`),n=Symbol(`robot-component-density`),r=Symbol(`c-form-global-config`),i=Symbol(`C_TABLE_GLOBAL_CONFIG`);export{i as a,r as i,e as n,t as r,n as t};
|
package/dist/data2.d.cts
CHANGED
|
@@ -81,12 +81,12 @@ declare const __VLS_base: vue.DefineComponent<CTabsProps, {
|
|
|
81
81
|
modelValue: TabsValue | null;
|
|
82
82
|
defaultValue: TabsValue | null;
|
|
83
83
|
placement: TabsPlacement;
|
|
84
|
-
|
|
84
|
+
displayDirective: TabsDisplayDirective;
|
|
85
85
|
animated: boolean;
|
|
86
|
-
closable: boolean;
|
|
87
86
|
addable: boolean;
|
|
87
|
+
justifyContent: TabsJustifyContent;
|
|
88
|
+
closable: boolean;
|
|
88
89
|
tabsOnly: boolean;
|
|
89
|
-
displayDirective: TabsDisplayDirective;
|
|
90
90
|
paneClass: string;
|
|
91
91
|
paneStyle: string | vue.CSSProperties;
|
|
92
92
|
beforeChange: (target: TabsValue, current: TabsValue | null) => boolean | Promise<boolean>;
|
package/dist/data2.d.ts
CHANGED
|
@@ -81,12 +81,12 @@ declare const __VLS_base: vue.DefineComponent<CTabsProps, {
|
|
|
81
81
|
modelValue: TabsValue | null;
|
|
82
82
|
defaultValue: TabsValue | null;
|
|
83
83
|
placement: TabsPlacement;
|
|
84
|
-
|
|
84
|
+
displayDirective: TabsDisplayDirective;
|
|
85
85
|
animated: boolean;
|
|
86
|
-
closable: boolean;
|
|
87
86
|
addable: boolean;
|
|
87
|
+
justifyContent: TabsJustifyContent;
|
|
88
|
+
closable: boolean;
|
|
88
89
|
tabsOnly: boolean;
|
|
89
|
-
displayDirective: TabsDisplayDirective;
|
|
90
90
|
paneClass: string;
|
|
91
91
|
paneStyle: string | vue.CSSProperties;
|
|
92
92
|
beforeChange: (target: TabsValue, current: TabsValue | null) => boolean | Promise<boolean>;
|
package/dist/dateRange.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { i as OptionValue, r as OptionSource } from "./optionSource.js";
|
|
2
2
|
import { t as ComponentDensity } from "./density.js";
|
|
3
3
|
import { n as ComponentLocale, t as ComponentFeedback } from "./contracts.js";
|
|
4
|
-
import {
|
|
4
|
+
import { vn as OptionsState } from "./component-config.js";
|
|
5
5
|
import * as vue from "vue";
|
|
6
6
|
import { MaybeRefOrGetter, Ref, VNodeChild } from "vue";
|
|
7
7
|
import { FormInst, FormItemRule } from "naive-ui";
|
package/dist/editors.d.cts
CHANGED
|
@@ -2,7 +2,7 @@ import { i as OptionValue, r as OptionSource } from "./optionSource.cjs";
|
|
|
2
2
|
import { n as ResolvedComponentDensity, t as ComponentDensity } from "./density.cjs";
|
|
3
3
|
import { n as ComponentLocale, t as ComponentFeedback } from "./contracts.cjs";
|
|
4
4
|
import { n as AutoCompleteProps$1, t as AutoCompleteOptionItem } from "./types2.cjs";
|
|
5
|
-
import {
|
|
5
|
+
import { A as RowDragConfig, C as ToolbarConfig, F as DynamicRowsReturn, J as DataRecord, O as ExportConfig, P as DynamicRowsOptions, S as TableConfig, T as VirtualScrollConfig, Y as EditMode, _ as ErrorConfig, _t as UseTableActionsReturn, b as SelectionConfig, bt as CrossPageSelectionConfig, ct as TableColumn, f as BatchActionsConfig, g as EditConfig, gt as UseTableActionsOptions, h as DisplayConfig, ht as TableRuntimeProps, mt as TableRowKeyIssue, nt as ParentChildLinkMode, o as FormatterConfig, ot as SimpleTableActions, p as ColumnDragConfig, pt as TableRowKey, st as StrictTableColumn, tt as PaginationConfig, ut as TableInstance, v as ExpandConfig, vt as UseTableExpandOptions, w as TreeConfig, x as SummaryConfig, y as ResolvedConfig, yt as UseTableExpandReturn } from "./context.cjs";
|
|
6
6
|
import { a as SelectProps$1, o as SelectSelection, r as SelectOptionItem, s as SelectValue, t as SelectModelValue } from "./types6.cjs";
|
|
7
7
|
import { E as TreeRenderContext, O as TreeSlots, T as TreeProps$1, _ as TreeExpose, f as DropInfo, g as TreeEmits, k as TreeUpdateMeta, p as IconConfig, u as ActionConfig, v as TreeKey, x as TreeNodeData, y as TreeMode } from "./types7.cjs";
|
|
8
8
|
import * as vue from "vue";
|
|
@@ -123,6 +123,8 @@ interface UseTableColumnsOptions {
|
|
|
123
123
|
outerWidth: number;
|
|
124
124
|
}>>;
|
|
125
125
|
nativeLayout?: () => boolean;
|
|
126
|
+
/** @internal 应用级范围变化也清理未启用存储的列偏好。 */
|
|
127
|
+
preferenceScope?: () => string | undefined;
|
|
126
128
|
/** 用户设定的 scrollX */
|
|
127
129
|
scrollX?: number | string;
|
|
128
130
|
/** 行键获取函数 */
|
|
@@ -552,16 +554,16 @@ declare function setupHighlight(app: App, options?: HighlightPluginOptions): Hig
|
|
|
552
554
|
//#region src/components/C_Tree/index.vue.d.ts
|
|
553
555
|
declare const __VLS_export: <T extends object = TreeNodeData>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
554
556
|
props: vue.PublicProps & __VLS_PrettifyLocal<TreeProps$1<T> & {
|
|
555
|
-
"onUpdate:expandedKeys"?: ((keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "select" | "filter" | "expand" | "
|
|
556
|
-
onAdd?: ((parentNode?: T | undefined) => any) | undefined;
|
|
557
|
+
"onUpdate:expandedKeys"?: ((keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "select" | "filter" | "expand" | "unselect" | "collapse" | "check" | "uncheck">) => any) | undefined;
|
|
557
558
|
onRefresh?: (() => any) | undefined;
|
|
559
|
+
onAdd?: ((parentNode?: T | undefined) => any) | undefined;
|
|
560
|
+
"onLoad-error"?: ((error: unknown, node: T) => any) | undefined;
|
|
558
561
|
"onUpdate:searchPattern"?: ((pattern: string) => any) | undefined;
|
|
559
|
-
"onUpdate:selectedKeys"?: ((keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "select" | "filter" | "expand" | "
|
|
560
|
-
"onUpdate:checkedKeys"?: ((keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "select" | "filter" | "expand" | "
|
|
562
|
+
"onUpdate:selectedKeys"?: ((keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "select" | "filter" | "expand" | "unselect" | "collapse" | "check" | "uncheck">) => any) | undefined;
|
|
563
|
+
"onUpdate:checkedKeys"?: ((keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "select" | "filter" | "expand" | "unselect" | "collapse" | "check" | "uncheck">) => any) | undefined;
|
|
561
564
|
"onNode-select"?: ((node: T | null, selectedKeys: TreeKey[]) => any) | undefined;
|
|
562
565
|
"onNode-action"?: ((action: string, node: T) => any) | undefined;
|
|
563
566
|
"onNode-drop"?: ((info: DropInfo<T>) => any) | undefined;
|
|
564
|
-
"onLoad-error"?: ((error: unknown, node: T) => any) | undefined;
|
|
565
567
|
"onSearch-error"?: ((error: unknown) => any) | undefined;
|
|
566
568
|
}> & (typeof globalThis extends {
|
|
567
569
|
__VLS_PROPS_FALLBACK: infer P;
|
|
@@ -577,7 +579,7 @@ declare const __VLS_export: <T extends object = TreeNodeData>(__VLS_props: NonNu
|
|
|
577
579
|
}>) => void;
|
|
578
580
|
attrs: any;
|
|
579
581
|
slots: TreeSlots<T>;
|
|
580
|
-
emit: ((evt: "update:expandedKeys", keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "select" | "filter" | "expand" | "
|
|
582
|
+
emit: ((evt: "update:expandedKeys", keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "select" | "filter" | "expand" | "unselect" | "collapse" | "check" | "uncheck">) => void) & ((evt: "refresh") => void) & ((evt: "add", parentNode?: T | undefined) => void) & ((evt: "load-error", error: unknown, node: T) => void) & ((evt: "update:searchPattern", pattern: string) => void) & ((evt: "update:selectedKeys", keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "select" | "filter" | "expand" | "unselect" | "collapse" | "check" | "uncheck">) => void) & ((evt: "update:checkedKeys", keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "select" | "filter" | "expand" | "unselect" | "collapse" | "check" | "uncheck">) => void) & ((evt: "node-select", node: T | null, selectedKeys: TreeKey[]) => void) & ((evt: "node-action", action: string, node: T) => void) & ((evt: "node-drop", info: DropInfo<T>) => void) & ((evt: "search-error", error: unknown) => void);
|
|
581
583
|
}>) => vue.VNode & {
|
|
582
584
|
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
583
585
|
};
|
package/dist/editors.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { i as OptionValue, r as OptionSource } from "./optionSource.js";
|
|
|
2
2
|
import { n as ResolvedComponentDensity, t as ComponentDensity } from "./density.js";
|
|
3
3
|
import { n as ComponentLocale, t as ComponentFeedback } from "./contracts.js";
|
|
4
4
|
import { n as AutoCompleteProps$1, t as AutoCompleteOptionItem } from "./types2.js";
|
|
5
|
-
import {
|
|
5
|
+
import { A as ExportConfig, C as SummaryConfig, D as VirtualScrollConfig, E as TreeConfig, I as DynamicRowsOptions, L as DynamicRowsReturn, M as RowDragConfig, S as SelectionConfig, St as CrossPageSelectionConfig, T as ToolbarConfig, X as DataRecord, Z as EditMode, _ as DisplayConfig, _t as TableRuntimeProps, b as ExpandConfig, bt as UseTableExpandOptions, c as FormatterConfig, ct as SimpleTableActions, ft as TableInstance, gt as TableRowKeyIssue, h as ColumnDragConfig, ht as TableRowKey, it as ParentChildLinkMode, lt as StrictTableColumn, m as BatchActionsConfig, rt as PaginationConfig, ut as TableColumn, v as EditConfig, vt as UseTableActionsOptions, w as TableConfig, x as ResolvedConfig, xt as UseTableExpandReturn, y as ErrorConfig, yt as UseTableActionsReturn } from "./component-config.js";
|
|
6
6
|
import { a as SelectProps$1, o as SelectSelection, r as SelectOptionItem, s as SelectValue, t as SelectModelValue } from "./types5.js";
|
|
7
7
|
import { E as TreeRenderContext, O as TreeSlots, T as TreeProps$1, _ as TreeExpose, f as DropInfo, g as TreeEmits, k as TreeUpdateMeta, p as IconConfig, u as ActionConfig, v as TreeKey, x as TreeNodeData, y as TreeMode } from "./types6.js";
|
|
8
8
|
import * as vue from "vue";
|
|
@@ -113,6 +113,8 @@ interface UseTableColumnsOptions {
|
|
|
113
113
|
outerWidth: number;
|
|
114
114
|
}>>;
|
|
115
115
|
nativeLayout?: () => boolean;
|
|
116
|
+
/** @internal 应用级范围变化也清理未启用存储的列偏好。 */
|
|
117
|
+
preferenceScope?: () => string | undefined;
|
|
116
118
|
/** 用户设定的 scrollX */
|
|
117
119
|
scrollX?: number | string;
|
|
118
120
|
/** 行键获取函数 */
|
|
@@ -542,16 +544,16 @@ declare function setupHighlight(app: App, options?: HighlightPluginOptions): Hig
|
|
|
542
544
|
//#region src/components/C_Tree/index.vue.d.ts
|
|
543
545
|
declare const __VLS_export: <T extends object = TreeNodeData>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
544
546
|
props: vue.PublicProps & __VLS_PrettifyLocal<TreeProps$1<T> & {
|
|
545
|
-
"onUpdate:expandedKeys"?: ((keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "select" | "filter" | "expand" | "
|
|
546
|
-
onAdd?: ((parentNode?: T | undefined) => any) | undefined;
|
|
547
|
+
"onUpdate:expandedKeys"?: ((keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "select" | "filter" | "expand" | "unselect" | "collapse" | "check" | "uncheck">) => any) | undefined;
|
|
547
548
|
onRefresh?: (() => any) | undefined;
|
|
549
|
+
onAdd?: ((parentNode?: T | undefined) => any) | undefined;
|
|
550
|
+
"onLoad-error"?: ((error: unknown, node: T) => any) | undefined;
|
|
548
551
|
"onUpdate:searchPattern"?: ((pattern: string) => any) | undefined;
|
|
549
|
-
"onUpdate:selectedKeys"?: ((keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "select" | "filter" | "expand" | "
|
|
550
|
-
"onUpdate:checkedKeys"?: ((keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "select" | "filter" | "expand" | "
|
|
552
|
+
"onUpdate:selectedKeys"?: ((keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "select" | "filter" | "expand" | "unselect" | "collapse" | "check" | "uncheck">) => any) | undefined;
|
|
553
|
+
"onUpdate:checkedKeys"?: ((keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "select" | "filter" | "expand" | "unselect" | "collapse" | "check" | "uncheck">) => any) | undefined;
|
|
551
554
|
"onNode-select"?: ((node: T | null, selectedKeys: TreeKey[]) => any) | undefined;
|
|
552
555
|
"onNode-action"?: ((action: string, node: T) => any) | undefined;
|
|
553
556
|
"onNode-drop"?: ((info: DropInfo<T>) => any) | undefined;
|
|
554
|
-
"onLoad-error"?: ((error: unknown, node: T) => any) | undefined;
|
|
555
557
|
"onSearch-error"?: ((error: unknown) => any) | undefined;
|
|
556
558
|
}> & (typeof globalThis extends {
|
|
557
559
|
__VLS_PROPS_FALLBACK: infer P;
|
|
@@ -567,7 +569,7 @@ declare const __VLS_export: <T extends object = TreeNodeData>(__VLS_props: NonNu
|
|
|
567
569
|
}>) => void;
|
|
568
570
|
attrs: any;
|
|
569
571
|
slots: TreeSlots<T>;
|
|
570
|
-
emit: ((evt: "update:expandedKeys", keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "select" | "filter" | "expand" | "
|
|
572
|
+
emit: ((evt: "update:expandedKeys", keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "select" | "filter" | "expand" | "unselect" | "collapse" | "check" | "uncheck">) => void) & ((evt: "refresh") => void) & ((evt: "add", parentNode?: T | undefined) => void) & ((evt: "load-error", error: unknown, node: T) => void) & ((evt: "update:searchPattern", pattern: string) => void) & ((evt: "update:selectedKeys", keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "select" | "filter" | "expand" | "unselect" | "collapse" | "check" | "uncheck">) => void) & ((evt: "update:checkedKeys", keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "select" | "filter" | "expand" | "unselect" | "collapse" | "check" | "uncheck">) => void) & ((evt: "node-select", node: T | null, selectedKeys: TreeKey[]) => void) & ((evt: "node-action", action: string, node: T) => void) & ((evt: "node-drop", info: DropInfo<T>) => void) & ((evt: "search-error", error: unknown) => void);
|
|
571
573
|
}>) => vue.VNode & {
|
|
572
574
|
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
573
575
|
};
|
package/dist/graphics.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
require(`./chunk.cjs`);const e=require(`./useComponentTheme.cjs`),t=require(`./export-helper.cjs`),n=require(`./C_Icon2.cjs`);let r=require(`vue`),i=require(`naive-ui`);const a={headerStyle:{borderColor:`rgba(128, 128, 128, 0.2)`,borderLineWidth:1,fontSize:14,fontWeight:`bold`},bodyStyle:{borderColor:`rgba(128, 128, 128, 0.2)`,borderLineWidth:[1,0,1,0],fontSize:13}},o={basic:{overscrollBehavior:`none`,headerRowHeight:40,rowHeight:40,taskListTable:{columns:[{field:`title`,title:`任务名称`,width:220,tree:!0},{field:`start`,title:`开始时间`,width:120},{field:`end`,title:`结束时间`,width:120},{field:`progress`,title:`进度`,width:80}],tableWidth:420,minTableWidth:300,theme:a},frame:{outerFrameStyle:{borderLineWidth:1,borderColor:`#e1e4e8`,cornerRadius:6},verticalSplitLineMoveable:!0,verticalSplitLine:{lineColor:`#e1e4e8`,lineWidth:2}},grid:{verticalLine:{lineWidth:1,lineColor:`rgba(128, 128, 128, 0.2)`},horizontalLine:{lineWidth:1,lineColor:`rgba(128, 128, 128, 0.2)`}},taskBar:{startDateField:`start`,endDateField:`end`,progressField:`progress`,moveable:!0,resizable:!0,labelText:`{title}`,labelTextStyle:{fontSize:12,textAlign:`left`},barStyle:{width:18,barColor:`#1890ff`,completedBarColor:`#52c41a`,cornerRadius:4,borderLineWidth:0},milestoneStyle:{borderColor:`#fa8c16`,borderLineWidth:1,fillColor:`#ffd666`,width:12}},timelineHeader:{colWidth:60,horizontalLine:{lineWidth:1,lineColor:`rgba(128, 128, 128, 0.2)`},verticalLine:{lineWidth:1,lineColor:`rgba(128, 128, 128, 0.2)`},scales:[{unit:`week`,step:1,format:e=>`第${e.dateIndex}周`,style:{fontSize:12,fontWeight:`bold`}},{unit:`day`,step:1,format:e=>`${e.dateIndex}`,style:{fontSize:11}}]},scrollStyle:{scrollRailColor:`rgba(246,246,246,0.5)`,visible:`scrolling`,width:6,scrollSliderCornerRadius:2,scrollSliderColor:`#1890ff`}},project:{overscrollBehavior:`none`,headerRowHeight:40,rowHeight:40,taskListTable:{columns:[{field:`title`,title:`任务名称`,width:200,tree:!0,editor:`input`},{field:`start`,title:`开始时间`,width:120,editor:`date-input`},{field:`end`,title:`结束时间`,width:120,editor:`date-input`},{field:`priority`,title:`优先级`,width:80,editor:`input`},{field:`progress`,title:`进度%`,width:80,editor:`input`}],tableWidth:480,minTableWidth:350,maxTableWidth:800,theme:a,hierarchyExpandLevel:2},frame:{outerFrameStyle:{borderLineWidth:2,borderColor:`#e1e4e8`,cornerRadius:8},verticalSplitLineMoveable:!0,verticalSplitLine:{lineColor:`#e1e4e8`,lineWidth:3}},grid:{verticalLine:{lineWidth:1,lineColor:`rgba(128, 128, 128, 0.2)`},horizontalLine:{lineWidth:1,lineColor:`rgba(128, 128, 128, 0.2)`}},taskBar:{startDateField:`start`,endDateField:`end`,progressField:`progress`,moveable:!0,resizable:!0,hoverBarStyle:{barOverlayColor:`rgba(24, 144, 255, 0.3)`},labelText:`{title} {progress}%`,labelTextStyle:{fontSize:12,textAlign:`left`,textOverflow:`ellipsis`},barStyle:{width:20,barColor:`#1890ff`,completedBarColor:`#52c41a`,cornerRadius:6,borderLineWidth:0}},timelineHeader:{colWidth:60,horizontalLine:{lineWidth:1,lineColor:`rgba(128, 128, 128, 0.2)`},verticalLine:{lineWidth:1,lineColor:`rgba(128, 128, 128, 0.2)`},scales:[{unit:`week`,step:1,startOfWeek:`monday`,format:e=>`第${e.dateIndex}周`,style:{fontSize:13,fontWeight:`bold`,textAlign:`center`}},{unit:`day`,step:1,format:e=>`${e.dateIndex}`,style:{fontSize:11,textAlign:`center`}}]},rowSeriesNumber:{title:`序号`,dragOrder:!0,headerStyle:{borderColor:`rgba(128, 128, 128, 0.2)`},style:{borderColor:`rgba(128, 128, 128, 0.2)`}},scrollStyle:{scrollRailColor:`rgba(246,246,246,0.5)`,visible:`scrolling`,width:6,scrollSliderCornerRadius:2,scrollSliderColor:`#1890ff`}},timeline:{overscrollBehavior:`none`,headerRowHeight:45,rowHeight:40,taskListTable:{columns:[{field:`title`,title:`事件名称`,width:250,tree:!0},{field:`start`,title:`时间`,width:150}],tableWidth:400,minTableWidth:300,theme:{headerStyle:{...a.headerStyle},bodyStyle:a.bodyStyle}},frame:{outerFrameStyle:{borderLineWidth:1,borderColor:`rgba(128, 128, 128, 0.3)`,cornerRadius:4},verticalSplitLineMoveable:!0},grid:{verticalLine:{lineWidth:1,lineColor:`rgba(128, 128, 128, 0.2)`},horizontalLine:{lineWidth:1,lineColor:`rgba(128, 128, 128, 0.2)`}},taskBar:{startDateField:`start`,endDateField:`end`,progressField:`progress`,moveable:!0,resizable:!0,labelText:`{title}`,labelTextStyle:{fontSize:12,textAlign:`left`},barStyle:{width:22,barColor:`#722ed1`,completedBarColor:`#b37feb`,cornerRadius:8,borderLineWidth:0}},timelineHeader:{colWidth:60,scales:[{unit:`month`,step:1,format:e=>`${e.dateIndex}月`,style:{fontSize:13,fontWeight:`bold`}},{unit:`day`,step:1,format:e=>`${e.dateIndex}`,style:{fontSize:11}}]},scrollStyle:{scrollRailColor:`rgba(246,246,246,0.5)`,visible:`scrolling`,width:6,scrollSliderCornerRadius:2,scrollSliderColor:`#1890ff`}},milestone:{overscrollBehavior:`none`,headerRowHeight:40,rowHeight:38,taskListTable:{columns:[{field:`title`,title:`里程碑`,width:200,tree:!0},{field:`start`,title:`目标日期`,width:120},{field:`priority`,title:`重要性`,width:100}],tableWidth:400,minTableWidth:300,theme:{headerStyle:{...a.headerStyle,borderColor:`#ffa940`},bodyStyle:{...a.bodyStyle,borderColor:`#ffa940`}}},frame:{outerFrameStyle:{borderLineWidth:2,borderColor:`#ffa940`,cornerRadius:6},verticalSplitLineMoveable:!0},grid:{verticalLine:{lineWidth:1,lineColor:`rgba(255, 168, 64, 0.3)`},horizontalLine:{lineWidth:1,lineColor:`rgba(255, 168, 64, 0.3)`}},taskBar:{startDateField:`start`,endDateField:`start`,labelText:`{title}`,labelTextStyle:{fontSize:12},barStyle:{width:0,barColor:`transparent`},milestoneStyle:{borderColor:`#fa8c16`,borderLineWidth:2,fillColor:`#ffd666`,width:16}},timelineHeader:{colWidth:80,scales:[{unit:`month`,step:1,format:e=>`${e.dateIndex}月`,style:{fontSize:13,fontWeight:`bold`}},{unit:`week`,step:1,format:e=>`第${e.dateIndex}周`,style:{fontSize:11}}]},scrollStyle:{scrollRailColor:`rgba(246,246,246,0.5)`,visible:`scrolling`,width:6,scrollSliderCornerRadius:2,scrollSliderColor:`#1890ff`}},official:{overscrollBehavior:`none`,headerRowHeight:40,rowHeight:40,taskListTable:{columns:[{field:`title`,title:`title`,width:180,sort:!0,tree:!0,editor:`input`},{field:`start`,title:`start`,width:120,sort:!0,editor:`date-input`},{field:`end`,title:`end`,width:120,sort:!0,editor:`date-input`},{field:`priority`,title:`priority`,width:80,sort:!0,editor:`input`},{field:`progress`,title:`progress`,width:80,sort:!0,editor:`input`}],tableWidth:460,minTableWidth:350,maxTableWidth:800,theme:{headerStyle:{...a.headerStyle,fontSize:18,color:`red`},bodyStyle:{...a.bodyStyle,fontSize:16,color:`#4D4D4D`}},hierarchyExpandLevel:2},frame:{outerFrameStyle:{borderLineWidth:2,borderColor:`#e1e4e8`,cornerRadius:8},verticalSplitLineMoveable:!0,verticalSplitLine:{lineColor:`#e1e4e8`,lineWidth:3},horizontalSplitLine:{lineColor:`#e1e4e8`,lineWidth:3}},grid:{verticalLine:{lineWidth:1,lineColor:`rgba(128, 128, 128, 0.2)`},horizontalLine:{lineWidth:1,lineColor:`rgba(128, 128, 128, 0.2)`}},taskBar:{startDateField:`start`,endDateField:`end`,progressField:`progress`,moveable:!0,resizable:!0,hoverBarStyle:{barOverlayColor:`rgba(99, 144, 0, 0.4)`},labelText:`{title} {progress}%`,labelTextStyle:{fontSize:16,textAlign:`left`,textOverflow:`ellipsis`},barStyle:{width:20,barColor:`#ee8800`,completedBarColor:`#91e8e0`,cornerRadius:8,borderLineWidth:1,borderColor:`black`},milestoneStyle:{borderColor:`red`,borderLineWidth:1,fillColor:`green`,width:15}},timelineHeader:{backgroundColor:`#EEF1F5`,colWidth:60,horizontalLine:{lineWidth:1,lineColor:`#e1e4e8`},verticalLine:{lineWidth:1,lineColor:`#e1e4e8`},scales:[{unit:`week`,step:1,startOfWeek:`sunday`,format:e=>`Week ${e.dateIndex}`,style:{fontSize:20,fontWeight:`bold`,color:`white`,strokeColor:`black`,textAlign:`right`,textBaseline:`bottom`,textStick:!0}},{unit:`day`,step:1,format:e=>e.dateIndex.toString(),style:{fontSize:20,fontWeight:`bold`,color:`white`,strokeColor:`black`,textAlign:`right`,textBaseline:`bottom`}}]},markLine:[{date:`2024-07-28`,style:{lineWidth:1,lineColor:`blue`,lineDash:[8,4]}},{date:`2024-08-17`,style:{lineWidth:2,lineColor:`red`,lineDash:[8,4]}}],rowSeriesNumber:{title:`行号`,dragOrder:!0,headerStyle:{borderColor:`rgba(128, 128, 128, 0.2)`},style:{borderColor:`rgba(128, 128, 128, 0.2)`}},scrollStyle:{scrollRailColor:`rgba(246,246,246,0.5)`,visible:`scrolling`,width:6,scrollSliderCornerRadius:2,scrollSliderColor:`#1890ff`}}},s=new Set([`__proto__`,`prototype`,`constructor`]),c=e=>{if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null};function l(e,t){let n=new WeakMap,r=(e,t)=>{let i=n.get(t);if(i)return i;let a={...e};n.set(t,a);for(let[n,i]of Object.entries(t))s.has(n)||(a[n]=c(i)?r(c(e[n])?e[n]:{},i):i);return a};return r(e,t)}function u(e,t,n){e.on(`click_task_bar`,e=>{e.record&&t(e.record,e.event)}),e.on(`change_date_range`,e=>{if(e.record){let t={start:e.startDate,end:e.endDate};n({...e.record,...t},t)}}),e.on(`progress_update`,e=>{if(e.record){let t={progress:e.progress};n({...e.record,...t},t)}});let r=e.taskListTableInstance;r&&(r.on(`click_cell`,e=>{let n=r.getCellOriginRecord(e.col,e.row);n&&typeof n==`object`&&`id`in n&&t(n,e.event)}),r.on(`change_cell_value`,e=>{let t=r.getCellOriginRecord(e.col,e.row),i=r.getHeaderField(e.col,e.row);t&&typeof i==`string`&&n({...t,[i]:e.changedValue},{[i]:e.changedValue})}))}const d={key:0,class:`gantt-toolbar`},f={class:`toolbar-left`},p={class:`gantt-title`},m={class:`toolbar-right`},h={class:`gantt-body`},g=(0,r.defineComponent)({name:`C_VtableGantt`,__name:`index`,props:{data:{default:()=>[]},options:{default:()=>({})},preset:{default:`basic`},height:{default:`600px`},title:{default:``},showToolbar:{type:Boolean,default:!0},showFullscreenButton:{type:Boolean,default:!0},theme:{}},emits:[`ganttCreated`,`taskClick`,`taskChange`,`error`],setup(t,{expose:a,emit:s}){let c=t,g=e.t(()=>c.theme),_=e.n(()=>c.theme),v=s,y=(0,r.ref)(),b=(0,r.shallowRef)(),x=(0,r.ref)(!1),S=(0,r.ref)(!1),C=(0,r.shallowRef)(),w=0,T,E=!1,D,O,k,A=(0,r.computed)(()=>typeof c.height==`number`?`${c.height}px`:c.height),j=(e,t)=>!E&&e===w&&y.value===t,M=e=>e.map(e=>({...e,title:e.title||`任务${e.id}`,children:e.children?M(e.children):void 0})),N=e=>String(_.value[`--c-${e}`]??_.value[`--c-theme-${e}`]),P=()=>({underlayBackgroundColor:N(`bg-body`),timelineHeaderBg:N(`bg-muted`),gridBg:N(`bg-card`),lineColor:N(`border`),textColor:N(`text-1`)}),F=(e,t)=>({...e,backgroundColor:t.timelineHeaderBg,horizontalLine:{...e?.horizontalLine,lineColor:t.lineColor},verticalLine:{...e?.verticalLine,lineColor:t.lineColor},scales:e?.scales?.map(e=>({...e,style:{...e.style,color:t.textColor}}))}),I=(e,t)=>({...e,backgroundColor:t.gridBg,horizontalLine:{...e?.horizontalLine,lineColor:t.lineColor},verticalLine:{...e?.verticalLine,lineColor:t.lineColor}}),L=(e,t,n,r)=>({...e,records:t,underlayBackgroundColor:r.underlayBackgroundColor,taskListTable:{...e.taskListTable,theme:n.extends(e.taskListTable?.theme??{})},timelineHeader:F(e.timelineHeader,r),grid:I(e.grid,r)}),R=(e,t,n)=>L(t,n,g.value===`dark`?e.DARK:e.DEFAULT,P()),z=e=>{if(e)try{e.release()}catch(e){console.warn(`销毁甘特图失败:`,e)}},B=(e,t,n)=>{e.editor(t)||e.editor(t,n())},V=async()=>{clearTimeout(T),T=void 0;let e=y.value;if(!e||E)return;let t=++w;S.value=!0,C.value=void 0;let n;try{let[{Gantt:r},{themes:i,register:a},{InputEditor:s,DateInputEditor:d}]=await Promise.all([import(`@visactor/vtable-gantt`),import(`@visactor/vtable`),import(`@visactor/vtable-editors`)]);if(!j(t,e))return;B(a,`input`,()=>new s),B(a,`date-input`,()=>new d);let f=l(o[c.preset]||o.basic,c.options),p=R(i,f,M(c.data));K();let m=new r(e,p);if(n=m,!j(t,e)){m.release();return}u(m,(e,t)=>v(`taskClick`,e,t),(e,t)=>v(`taskChange`,e,t)),b.value=m,D=p,O=f,k=i,n=void 0,v(`ganttCreated`,m)}catch(r){if(z(n),!j(t,e))return;C.value=r instanceof Error?r:Error(String(r)),v(`error`,C.value)}finally{j(t,e)&&(S.value=!1)}},H=async()=>{let e=y.value;if(e)try{document.fullscreenElement===e?await document.exitFullscreen():await e.requestFullscreen(),x.value=document.fullscreenElement===e}catch(t){console.warn(`全屏切换失败:`,t),x.value=document.fullscreenElement===e}},U=()=>{x.value=document.fullscreenElement===y.value},W=e=>{if(b.value&&e)try{let t=M(e);b.value.setRecords(t),D&&={...D,records:t}}catch(e){console.warn(`更新数据失败:`,e)}},G=e=>{if(b.value&&D&&O&&k)try{let t=l(O,e),n=R(k,t,D.records??[]);b.value.updateOption(n),D=n,O=t}catch(e){console.warn(`更新配置失败:`,e)}},K=()=>{let e=b.value;b.value=void 0,D=void 0,O=void 0,k=void 0,z(e)};return(0,r.watch)(()=>c.data,e=>{e&&b.value&&W(e)},{deep:!0}),(0,r.watch)(()=>[c.options,c.preset],()=>void V(),{deep:!0,flush:`post`}),(0,r.watch)(_,()=>{let e=b.value;if(!e)return;let{scrollTop:t,scrollLeft:n}=e;G({}),e.scrollTop=t,e.scrollLeft=n},{flush:`post`}),(0,r.onMounted)(()=>{E=!1,document.addEventListener(`fullscreenchange`,U),(0,r.nextTick)(()=>{E||w>0||(T=setTimeout(()=>V(),100))})}),(0,r.onUnmounted)(()=>{E=!0,S.value=!1,w+=1,T&&clearTimeout(T),document.removeEventListener(`fullscreenchange`,U),K()}),a({ganttInstance:b,loading:S,error:C,reload:V,updateData:W,updateOptions:G,toggleFullscreen:H}),(e,a)=>((0,r.openBlock)(),(0,r.createElementBlock)(`div`,{class:`c-vtable-gantt-wrapper`,style:(0,r.normalizeStyle)((0,r.unref)(_))},[t.showToolbar?((0,r.openBlock)(),(0,r.createElementBlock)(`div`,d,[(0,r.createElementVNode)(`div`,f,[(0,r.createElementVNode)(`span`,p,(0,r.toDisplayString)(t.title||`甘特图`),1)]),(0,r.createElementVNode)(`div`,m,[t.showFullscreenButton?((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(i.NButton),{key:0,size:`small`,onClick:H},{icon:(0,r.withCtx)(()=>[(0,r.createVNode)(n.t,{name:x.value?`carbon:minimize`:`carbon:maximize`,size:16,color:`currentColor`},null,8,[`name`])]),default:(0,r.withCtx)(()=>[(0,r.createTextVNode)(` `+(0,r.toDisplayString)(x.value?`退出全屏`:`全屏`),1)]),_:1})):(0,r.createCommentVNode)(`v-if`,!0)])])):(0,r.createCommentVNode)(`v-if`,!0),(0,r.createElementVNode)(`div`,h,[(0,r.createElementVNode)(`div`,{ref_key:`ganttContainerRef`,ref:y,class:`gantt-container`,style:(0,r.normalizeStyle)({height:A.value})},null,4),C.value?((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(i.NResult),{key:0,class:`gantt-error`,status:`error`,title:`甘特图加载失败`,description:C.value.message},{footer:(0,r.withCtx)(()=>[(0,r.createVNode)((0,r.unref)(i.NButton),{loading:S.value,onClick:V},{default:(0,r.withCtx)(()=>[...a[0]||=[(0,r.createTextVNode)(`重试`,-1)]]),_:1},8,[`loading`])]),_:1},8,[`description`])):(0,r.createCommentVNode)(`v-if`,!0)])],4))}});var _=t.t(g,[[`__scopeId`,`data-v-0a1c9ab7`]]);function v(e,t){e.add(t)}Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return _}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return v}});
|
|
1
|
+
require(`./chunk.cjs`);const e=require(`./useComponentTheme.cjs`),t=require(`./export-helper.cjs`),n=require(`./C_Icon2.cjs`);let r=require(`vue`),i=require(`naive-ui`);const a={headerStyle:{borderLineWidth:1,fontSize:14,fontWeight:`bold`},bodyStyle:{borderLineWidth:[1,0,1,0],fontSize:13}},o={basic:{overscrollBehavior:`none`,headerRowHeight:40,rowHeight:40,taskListTable:{columns:[{field:`title`,title:`任务名称`,width:220,tree:!0},{field:`start`,title:`开始时间`,width:120},{field:`end`,title:`结束时间`,width:120},{field:`progress`,title:`进度`,width:80}],tableWidth:420,minTableWidth:300,theme:a},frame:{outerFrameStyle:{borderLineWidth:1,cornerRadius:6},verticalSplitLineMoveable:!0,verticalSplitLine:{lineWidth:2}},grid:{verticalLine:{lineWidth:1},horizontalLine:{lineWidth:1}},taskBar:{startDateField:`start`,endDateField:`end`,progressField:`progress`,moveable:!0,resizable:!0,labelText:`{title}`,labelTextStyle:{fontSize:12,textAlign:`left`},barStyle:{width:18,barColor:`#1890ff`,completedBarColor:`#52c41a`,cornerRadius:4,borderLineWidth:0},milestoneStyle:{borderColor:`#fa8c16`,borderLineWidth:1,fillColor:`#ffd666`,width:12}},timelineHeader:{colWidth:60,horizontalLine:{lineWidth:1},verticalLine:{lineWidth:1},scales:[{unit:`week`,step:1,format:e=>`第${e.dateIndex}周`,style:{fontSize:12,fontWeight:`bold`}},{unit:`day`,step:1,format:e=>`${e.dateIndex}`,style:{fontSize:11}}]},scrollStyle:{visible:`scrolling`,width:6,scrollSliderCornerRadius:2}},project:{overscrollBehavior:`none`,headerRowHeight:40,rowHeight:40,taskListTable:{columns:[{field:`title`,title:`任务名称`,width:200,tree:!0,editor:`input`},{field:`start`,title:`开始时间`,width:120,editor:`date-input`},{field:`end`,title:`结束时间`,width:120,editor:`date-input`},{field:`priority`,title:`优先级`,width:80,editor:`input`},{field:`progress`,title:`进度%`,width:80,editor:`input`}],tableWidth:480,minTableWidth:350,maxTableWidth:800,theme:a,hierarchyExpandLevel:2},frame:{outerFrameStyle:{borderLineWidth:2,cornerRadius:8},verticalSplitLineMoveable:!0,verticalSplitLine:{lineWidth:3}},grid:{verticalLine:{lineWidth:1},horizontalLine:{lineWidth:1}},taskBar:{startDateField:`start`,endDateField:`end`,progressField:`progress`,moveable:!0,resizable:!0,hoverBarStyle:{barOverlayColor:`rgba(24, 144, 255, 0.3)`},labelText:`{title} {progress}%`,labelTextStyle:{fontSize:12,textAlign:`left`,textOverflow:`ellipsis`},barStyle:{width:20,barColor:`#1890ff`,completedBarColor:`#52c41a`,cornerRadius:6,borderLineWidth:0}},timelineHeader:{colWidth:60,horizontalLine:{lineWidth:1},verticalLine:{lineWidth:1},scales:[{unit:`week`,step:1,startOfWeek:`monday`,format:e=>`第${e.dateIndex}周`,style:{fontSize:13,fontWeight:`bold`,textAlign:`center`}},{unit:`day`,step:1,format:e=>`${e.dateIndex}`,style:{fontSize:11,textAlign:`center`}}]},rowSeriesNumber:{title:`序号`,dragOrder:!0},scrollStyle:{visible:`scrolling`,width:6,scrollSliderCornerRadius:2}},timeline:{overscrollBehavior:`none`,headerRowHeight:45,rowHeight:40,taskListTable:{columns:[{field:`title`,title:`事件名称`,width:250,tree:!0},{field:`start`,title:`时间`,width:150}],tableWidth:400,minTableWidth:300,theme:{headerStyle:{...a.headerStyle},bodyStyle:a.bodyStyle}},frame:{outerFrameStyle:{borderLineWidth:1,cornerRadius:4},verticalSplitLineMoveable:!0},grid:{verticalLine:{lineWidth:1},horizontalLine:{lineWidth:1}},taskBar:{startDateField:`start`,endDateField:`end`,progressField:`progress`,moveable:!0,resizable:!0,labelText:`{title}`,labelTextStyle:{fontSize:12,textAlign:`left`},barStyle:{width:22,barColor:`#722ed1`,completedBarColor:`#b37feb`,cornerRadius:8,borderLineWidth:0}},timelineHeader:{colWidth:60,scales:[{unit:`month`,step:1,format:e=>`${e.dateIndex}月`,style:{fontSize:13,fontWeight:`bold`}},{unit:`day`,step:1,format:e=>`${e.dateIndex}`,style:{fontSize:11}}]},scrollStyle:{visible:`scrolling`,width:6,scrollSliderCornerRadius:2}},milestone:{overscrollBehavior:`none`,headerRowHeight:40,rowHeight:38,taskListTable:{columns:[{field:`title`,title:`里程碑`,width:200,tree:!0},{field:`start`,title:`目标日期`,width:120},{field:`priority`,title:`重要性`,width:100}],tableWidth:400,minTableWidth:300,theme:{headerStyle:{...a.headerStyle,borderColor:`#ffa940`},bodyStyle:{...a.bodyStyle,borderColor:`#ffa940`}}},frame:{outerFrameStyle:{borderLineWidth:2,borderColor:`#ffa940`,cornerRadius:6},verticalSplitLineMoveable:!0},grid:{verticalLine:{lineWidth:1,lineColor:`rgba(255, 168, 64, 0.3)`},horizontalLine:{lineWidth:1,lineColor:`rgba(255, 168, 64, 0.3)`}},taskBar:{startDateField:`start`,endDateField:`start`,labelText:`{title}`,labelTextStyle:{fontSize:12},barStyle:{width:0,barColor:`transparent`},milestoneStyle:{borderColor:`#fa8c16`,borderLineWidth:2,fillColor:`#ffd666`,width:16}},timelineHeader:{colWidth:80,scales:[{unit:`month`,step:1,format:e=>`${e.dateIndex}月`,style:{fontSize:13,fontWeight:`bold`}},{unit:`week`,step:1,format:e=>`第${e.dateIndex}周`,style:{fontSize:11}}]},scrollStyle:{visible:`scrolling`,width:6,scrollSliderCornerRadius:2}},official:{overscrollBehavior:`none`,headerRowHeight:40,rowHeight:40,taskListTable:{columns:[{field:`title`,title:`title`,width:180,sort:!0,tree:!0,editor:`input`},{field:`start`,title:`start`,width:120,sort:!0,editor:`date-input`},{field:`end`,title:`end`,width:120,sort:!0,editor:`date-input`},{field:`priority`,title:`priority`,width:80,sort:!0,editor:`input`},{field:`progress`,title:`progress`,width:80,sort:!0,editor:`input`}],tableWidth:460,minTableWidth:350,maxTableWidth:800,theme:{headerStyle:{...a.headerStyle,fontSize:18,color:`red`},bodyStyle:{...a.bodyStyle,fontSize:16,color:`#4D4D4D`}},hierarchyExpandLevel:2},frame:{outerFrameStyle:{borderLineWidth:2,cornerRadius:8},verticalSplitLineMoveable:!0,verticalSplitLine:{lineWidth:3},horizontalSplitLine:{lineWidth:3}},grid:{verticalLine:{lineWidth:1},horizontalLine:{lineWidth:1}},taskBar:{startDateField:`start`,endDateField:`end`,progressField:`progress`,moveable:!0,resizable:!0,hoverBarStyle:{barOverlayColor:`rgba(99, 144, 0, 0.4)`},labelText:`{title} {progress}%`,labelTextStyle:{fontSize:16,textAlign:`left`,textOverflow:`ellipsis`},barStyle:{width:20,barColor:`#ee8800`,completedBarColor:`#91e8e0`,cornerRadius:8,borderLineWidth:1,borderColor:`black`},milestoneStyle:{borderColor:`red`,borderLineWidth:1,fillColor:`green`,width:15}},timelineHeader:{colWidth:60,horizontalLine:{lineWidth:1},verticalLine:{lineWidth:1},scales:[{unit:`week`,step:1,startOfWeek:`sunday`,format:e=>`Week ${e.dateIndex}`,style:{fontSize:20,fontWeight:`bold`,color:`white`,strokeColor:`black`,textAlign:`right`,textBaseline:`bottom`,textStick:!0}},{unit:`day`,step:1,format:e=>e.dateIndex.toString(),style:{fontSize:20,fontWeight:`bold`,color:`white`,strokeColor:`black`,textAlign:`right`,textBaseline:`bottom`}}]},markLine:[{date:`2024-07-28`,style:{lineWidth:1,lineColor:`blue`,lineDash:[8,4]}},{date:`2024-08-17`,style:{lineWidth:2,lineColor:`red`,lineDash:[8,4]}}],rowSeriesNumber:{title:`行号`,dragOrder:!0},scrollStyle:{visible:`scrolling`,width:6,scrollSliderCornerRadius:2}}},s=new Set([`__proto__`,`prototype`,`constructor`]),c=e=>{if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null};function l(e,t){let n=new WeakMap,r=(e,t)=>{let i=n.get(t);if(i)return i;let a={...e};n.set(t,a);for(let[n,i]of Object.entries(t))s.has(n)||(a[n]=c(i)?r(c(e[n])?e[n]:{},i):i);return a};return r(e,t)}function u(e,t,n){e.on(`click_task_bar`,e=>{e.record&&t(e.record,e.event)}),e.on(`change_date_range`,e=>{if(e.record){let t={start:e.startDate,end:e.endDate};n({...e.record,...t},t)}}),e.on(`progress_update`,e=>{if(e.record){let t={progress:e.progress};n({...e.record,...t},t)}});let r=e.taskListTableInstance;r&&(r.on(`click_cell`,e=>{let n=r.getCellOriginRecord(e.col,e.row);n&&typeof n==`object`&&`id`in n&&t(n,e.event)}),r.on(`change_cell_value`,e=>{let t=r.getCellOriginRecord(e.col,e.row),i=r.getHeaderField(e.col,e.row);t&&typeof i==`string`&&n({...t,[i]:e.changedValue},{[i]:e.changedValue})}))}const d={key:0,class:`gantt-toolbar`},f={class:`toolbar-left`},p={class:`gantt-title`},m={class:`toolbar-right`},h={class:`gantt-body`},g=(0,r.defineComponent)({name:`C_VtableGantt`,__name:`index`,props:{data:{default:()=>[]},options:{default:()=>({})},preset:{default:`basic`},height:{default:`600px`},title:{default:``},showToolbar:{type:Boolean,default:!0},showFullscreenButton:{type:Boolean,default:!0},theme:{}},emits:[`ganttCreated`,`taskClick`,`taskChange`,`error`],setup(t,{expose:a,emit:s}){let c=t,g=e.t(()=>c.theme),_=e.n(()=>c.theme),v=s,y=(0,r.ref)(),b=(0,r.shallowRef)(),x=(0,r.ref)(!1),S=(0,r.ref)(!1),C=(0,r.shallowRef)(),w=0,T,E=!1,D,O,k,A=(0,r.computed)(()=>typeof c.height==`number`?`${c.height}px`:c.height),j=(e,t)=>!E&&e===w&&y.value===t,M=e=>e.map(e=>({...e,title:e.title||`任务${e.id}`,children:e.children?M(e.children):void 0})),N=e=>String(_.value[`--c-${e}`]??_.value[`--c-theme-${e}`]),P=()=>({underlayBackgroundColor:N(`bg-body`),timelineHeaderBg:N(`bg-muted`),gridBg:N(`bg-card`),surfaceBg:N(`bg-surface`),hoverBg:N(`bg-hover`),lineColor:N(`border`),textColor:N(`text-1`),secondaryTextColor:N(`text-2`),mutedTextColor:N(`text-3`),primaryColor:N(`primary`)}),F=e=>{let t={bgColor:e.gridBg,color:e.textColor,borderColor:e.lineColor,hover:{cellBgColor:e.hoverBg,inlineRowBgColor:e.hoverBg,inlineColumnBgColor:e.hoverBg}},n={...t,bgColor:e.timelineHeaderBg,color:e.secondaryTextColor};return{underlayBackgroundColor:e.gridBg,defaultStyle:t,headerStyle:n,rowHeaderStyle:n,cornerHeaderStyle:n,bodyStyle:t,frameStyle:{borderColor:e.lineColor},selectionStyle:{cellBgColor:e.hoverBg,cellBorderColor:e.primaryColor},columnResize:{lineColor:e.primaryColor,bgColor:e.hoverBg},scrollStyle:{scrollRailColor:e.timelineHeaderBg,scrollSliderColor:e.mutedTextColor},tooltipStyle:{bgColor:e.surfaceBg,color:e.textColor}}},I=(e,t)=>typeof e==`function`?e:{...e,lineColor:e?.lineColor??t},L=(e,t)=>({...e,backgroundColor:e?.backgroundColor??t.timelineHeaderBg,horizontalLine:I(e?.horizontalLine,t.lineColor),verticalLine:I(e?.verticalLine,t.lineColor),scales:e?.scales?.map(e=>({...e,style:{...e.style,color:e.style?.color??t.textColor}}))}),R=(e,t)=>({...e,backgroundColor:e?.backgroundColor??t.gridBg,horizontalLine:I(e?.horizontalLine,t.lineColor),verticalLine:I(e?.verticalLine,t.lineColor)}),z=(e,t)=>({...e,outerFrameStyle:{...e?.outerFrameStyle,borderColor:e?.outerFrameStyle?.borderColor??t.lineColor},verticalSplitLine:I(e?.verticalSplitLine,t.lineColor),horizontalSplitLine:I(e?.horizontalSplitLine,t.lineColor)}),B=(e,t,n,r)=>({...e,records:t,underlayBackgroundColor:e.underlayBackgroundColor??r.underlayBackgroundColor,taskListTable:{...e.taskListTable,theme:n.extends(F(r)).extends(e.taskListTable?.theme??{})},timelineHeader:L(e.timelineHeader,r),grid:R(e.grid,r),frame:z(e.frame,r),scrollStyle:{...e.scrollStyle,scrollRailColor:e.scrollStyle?.scrollRailColor??r.hoverBg,scrollSliderColor:e.scrollStyle?.scrollSliderColor??r.mutedTextColor}}),V=(e,t,n)=>B(t,n,g.value===`dark`?e.DARK:e.DEFAULT,P()),H=e=>{if(e)try{e.release()}catch(e){console.warn(`销毁甘特图失败:`,e)}},U=(e,t,n)=>{e.editor(t)||e.editor(t,n())},W=async()=>{clearTimeout(T),T=void 0;let e=y.value;if(!e||E)return;let t=++w;S.value=!0,C.value=void 0;let n;try{let[{Gantt:r},{themes:i,register:a},{InputEditor:s,DateInputEditor:d}]=await Promise.all([import(`@visactor/vtable-gantt`),import(`@visactor/vtable`),import(`@visactor/vtable-editors`)]);if(!j(t,e))return;U(a,`input`,()=>new s),U(a,`date-input`,()=>new d);let f=l(o[c.preset]||o.basic,c.options),p=V(i,f,M(c.data));Y();let m=new r(e,p);if(n=m,!j(t,e)){m.release();return}u(m,(e,t)=>v(`taskClick`,e,t),(e,t)=>v(`taskChange`,e,t)),b.value=m,D=p,O=f,k=i,n=void 0,v(`ganttCreated`,m)}catch(r){if(H(n),!j(t,e))return;C.value=r instanceof Error?r:Error(String(r)),v(`error`,C.value)}finally{j(t,e)&&(S.value=!1)}},G=async()=>{let e=y.value;if(e)try{document.fullscreenElement===e?await document.exitFullscreen():await e.requestFullscreen(),x.value=document.fullscreenElement===e}catch(t){console.warn(`全屏切换失败:`,t),x.value=document.fullscreenElement===e}},K=()=>{x.value=document.fullscreenElement===y.value},q=e=>{if(b.value&&e)try{let t=M(e);b.value.setRecords(t),D&&={...D,records:t}}catch(e){console.warn(`更新数据失败:`,e)}},J=e=>{if(b.value&&D&&O&&k)try{let t=l(O,e),n=V(k,t,D.records??[]);b.value.updateOption(n),D=n,O=t}catch(e){console.warn(`更新配置失败:`,e)}},Y=()=>{let e=b.value;b.value=void 0,D=void 0,O=void 0,k=void 0,H(e)};return(0,r.watch)(()=>c.data,e=>{e&&b.value&&q(e)},{deep:!0}),(0,r.watch)(()=>[c.options,c.preset],()=>void W(),{deep:!0,flush:`post`}),(0,r.watch)(_,()=>{let e=b.value;if(!e)return;let{scrollTop:t,scrollLeft:n}=e;J({}),e.scrollTop=t,e.scrollLeft=n},{flush:`post`}),(0,r.onMounted)(()=>{E=!1,document.addEventListener(`fullscreenchange`,K),(0,r.nextTick)(()=>{E||w>0||(T=setTimeout(()=>W(),100))})}),(0,r.onUnmounted)(()=>{E=!0,S.value=!1,w+=1,T&&clearTimeout(T),document.removeEventListener(`fullscreenchange`,K),Y()}),a({ganttInstance:b,loading:S,error:C,reload:W,updateData:q,updateOptions:J,toggleFullscreen:G}),(e,a)=>((0,r.openBlock)(),(0,r.createElementBlock)(`div`,{class:`c-vtable-gantt-wrapper`,style:(0,r.normalizeStyle)((0,r.unref)(_))},[t.showToolbar?((0,r.openBlock)(),(0,r.createElementBlock)(`div`,d,[(0,r.createElementVNode)(`div`,f,[(0,r.createElementVNode)(`span`,p,(0,r.toDisplayString)(t.title||`甘特图`),1)]),(0,r.createElementVNode)(`div`,m,[t.showFullscreenButton?((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(i.NButton),{key:0,size:`small`,onClick:G},{icon:(0,r.withCtx)(()=>[(0,r.createVNode)(n.t,{name:x.value?`carbon:minimize`:`carbon:maximize`,size:16,color:`currentColor`},null,8,[`name`])]),default:(0,r.withCtx)(()=>[(0,r.createTextVNode)(` `+(0,r.toDisplayString)(x.value?`退出全屏`:`全屏`),1)]),_:1})):(0,r.createCommentVNode)(`v-if`,!0)])])):(0,r.createCommentVNode)(`v-if`,!0),(0,r.createElementVNode)(`div`,h,[(0,r.createElementVNode)(`div`,{ref_key:`ganttContainerRef`,ref:y,class:`gantt-container`,style:(0,r.normalizeStyle)({height:A.value})},null,4),C.value?((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(i.NResult),{key:0,class:`gantt-error`,status:`error`,title:`甘特图加载失败`,description:C.value.message},{footer:(0,r.withCtx)(()=>[(0,r.createVNode)((0,r.unref)(i.NButton),{loading:S.value,onClick:W},{default:(0,r.withCtx)(()=>[...a[0]||=[(0,r.createTextVNode)(`重试`,-1)]]),_:1},8,[`loading`])]),_:1},8,[`description`])):(0,r.createCommentVNode)(`v-if`,!0)])],4))}});var _=t.t(g,[[`__scopeId`,`data-v-c58a0295`]]);function v(e,t){e.add(t)}Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return _}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return v}});
|
package/dist/graphics.d.cts
CHANGED
|
@@ -118,23 +118,19 @@ declare const presetConfigs: {
|
|
|
118
118
|
frame: {
|
|
119
119
|
outerFrameStyle: {
|
|
120
120
|
borderLineWidth: number;
|
|
121
|
-
borderColor: string;
|
|
122
121
|
cornerRadius: number;
|
|
123
122
|
};
|
|
124
123
|
verticalSplitLineMoveable: true;
|
|
125
124
|
verticalSplitLine: {
|
|
126
|
-
lineColor: string;
|
|
127
125
|
lineWidth: number;
|
|
128
126
|
};
|
|
129
127
|
};
|
|
130
128
|
grid: {
|
|
131
129
|
verticalLine: {
|
|
132
130
|
lineWidth: number;
|
|
133
|
-
lineColor: string;
|
|
134
131
|
};
|
|
135
132
|
horizontalLine: {
|
|
136
133
|
lineWidth: number;
|
|
137
|
-
lineColor: string;
|
|
138
134
|
};
|
|
139
135
|
};
|
|
140
136
|
taskBar: {
|
|
@@ -166,11 +162,9 @@ declare const presetConfigs: {
|
|
|
166
162
|
colWidth: number;
|
|
167
163
|
horizontalLine: {
|
|
168
164
|
lineWidth: number;
|
|
169
|
-
lineColor: string;
|
|
170
165
|
};
|
|
171
166
|
verticalLine: {
|
|
172
167
|
lineWidth: number;
|
|
173
|
-
lineColor: string;
|
|
174
168
|
};
|
|
175
169
|
scales: ({
|
|
176
170
|
unit: "week";
|
|
@@ -191,11 +185,9 @@ declare const presetConfigs: {
|
|
|
191
185
|
})[];
|
|
192
186
|
};
|
|
193
187
|
scrollStyle: {
|
|
194
|
-
scrollRailColor: string;
|
|
195
188
|
visible: "scrolling";
|
|
196
189
|
width: number;
|
|
197
190
|
scrollSliderCornerRadius: number;
|
|
198
|
-
scrollSliderColor: string;
|
|
199
191
|
};
|
|
200
192
|
};
|
|
201
193
|
project: {
|
|
@@ -225,23 +217,19 @@ declare const presetConfigs: {
|
|
|
225
217
|
frame: {
|
|
226
218
|
outerFrameStyle: {
|
|
227
219
|
borderLineWidth: number;
|
|
228
|
-
borderColor: string;
|
|
229
220
|
cornerRadius: number;
|
|
230
221
|
};
|
|
231
222
|
verticalSplitLineMoveable: true;
|
|
232
223
|
verticalSplitLine: {
|
|
233
|
-
lineColor: string;
|
|
234
224
|
lineWidth: number;
|
|
235
225
|
};
|
|
236
226
|
};
|
|
237
227
|
grid: {
|
|
238
228
|
verticalLine: {
|
|
239
229
|
lineWidth: number;
|
|
240
|
-
lineColor: string;
|
|
241
230
|
};
|
|
242
231
|
horizontalLine: {
|
|
243
232
|
lineWidth: number;
|
|
244
|
-
lineColor: string;
|
|
245
233
|
};
|
|
246
234
|
};
|
|
247
235
|
taskBar: {
|
|
@@ -271,11 +259,9 @@ declare const presetConfigs: {
|
|
|
271
259
|
colWidth: number;
|
|
272
260
|
horizontalLine: {
|
|
273
261
|
lineWidth: number;
|
|
274
|
-
lineColor: string;
|
|
275
262
|
};
|
|
276
263
|
verticalLine: {
|
|
277
264
|
lineWidth: number;
|
|
278
|
-
lineColor: string;
|
|
279
265
|
};
|
|
280
266
|
scales: ({
|
|
281
267
|
unit: "week";
|
|
@@ -302,19 +288,11 @@ declare const presetConfigs: {
|
|
|
302
288
|
rowSeriesNumber: {
|
|
303
289
|
title: string;
|
|
304
290
|
dragOrder: true;
|
|
305
|
-
headerStyle: {
|
|
306
|
-
borderColor: string;
|
|
307
|
-
};
|
|
308
|
-
style: {
|
|
309
|
-
borderColor: string;
|
|
310
|
-
};
|
|
311
291
|
};
|
|
312
292
|
scrollStyle: {
|
|
313
|
-
scrollRailColor: string;
|
|
314
293
|
visible: "scrolling";
|
|
315
294
|
width: number;
|
|
316
295
|
scrollSliderCornerRadius: number;
|
|
317
|
-
scrollSliderColor: string;
|
|
318
296
|
};
|
|
319
297
|
};
|
|
320
298
|
timeline: {
|
|
@@ -381,7 +359,6 @@ declare const presetConfigs: {
|
|
|
381
359
|
frame: {
|
|
382
360
|
outerFrameStyle: {
|
|
383
361
|
borderLineWidth: number;
|
|
384
|
-
borderColor: string;
|
|
385
362
|
cornerRadius: number;
|
|
386
363
|
};
|
|
387
364
|
verticalSplitLineMoveable: true;
|
|
@@ -389,11 +366,9 @@ declare const presetConfigs: {
|
|
|
389
366
|
grid: {
|
|
390
367
|
verticalLine: {
|
|
391
368
|
lineWidth: number;
|
|
392
|
-
lineColor: string;
|
|
393
369
|
};
|
|
394
370
|
horizontalLine: {
|
|
395
371
|
lineWidth: number;
|
|
396
|
-
lineColor: string;
|
|
397
372
|
};
|
|
398
373
|
};
|
|
399
374
|
taskBar: {
|
|
@@ -436,11 +411,9 @@ declare const presetConfigs: {
|
|
|
436
411
|
})[];
|
|
437
412
|
};
|
|
438
413
|
scrollStyle: {
|
|
439
|
-
scrollRailColor: string;
|
|
440
414
|
visible: "scrolling";
|
|
441
415
|
width: number;
|
|
442
416
|
scrollSliderCornerRadius: number;
|
|
443
|
-
scrollSliderColor: string;
|
|
444
417
|
};
|
|
445
418
|
};
|
|
446
419
|
milestone: {
|
|
@@ -599,11 +572,9 @@ declare const presetConfigs: {
|
|
|
599
572
|
})[];
|
|
600
573
|
};
|
|
601
574
|
scrollStyle: {
|
|
602
|
-
scrollRailColor: string;
|
|
603
575
|
visible: "scrolling";
|
|
604
576
|
width: number;
|
|
605
577
|
scrollSliderCornerRadius: number;
|
|
606
|
-
scrollSliderColor: string;
|
|
607
578
|
};
|
|
608
579
|
};
|
|
609
580
|
official: {
|
|
@@ -714,27 +685,22 @@ declare const presetConfigs: {
|
|
|
714
685
|
frame: {
|
|
715
686
|
outerFrameStyle: {
|
|
716
687
|
borderLineWidth: number;
|
|
717
|
-
borderColor: string;
|
|
718
688
|
cornerRadius: number;
|
|
719
689
|
};
|
|
720
690
|
verticalSplitLineMoveable: true;
|
|
721
691
|
verticalSplitLine: {
|
|
722
|
-
lineColor: string;
|
|
723
692
|
lineWidth: number;
|
|
724
693
|
};
|
|
725
694
|
horizontalSplitLine: {
|
|
726
|
-
lineColor: string;
|
|
727
695
|
lineWidth: number;
|
|
728
696
|
};
|
|
729
697
|
};
|
|
730
698
|
grid: {
|
|
731
699
|
verticalLine: {
|
|
732
700
|
lineWidth: number;
|
|
733
|
-
lineColor: string;
|
|
734
701
|
};
|
|
735
702
|
horizontalLine: {
|
|
736
703
|
lineWidth: number;
|
|
737
|
-
lineColor: string;
|
|
738
704
|
};
|
|
739
705
|
};
|
|
740
706
|
taskBar: {
|
|
@@ -768,15 +734,12 @@ declare const presetConfigs: {
|
|
|
768
734
|
};
|
|
769
735
|
};
|
|
770
736
|
timelineHeader: {
|
|
771
|
-
backgroundColor: string;
|
|
772
737
|
colWidth: number;
|
|
773
738
|
horizontalLine: {
|
|
774
739
|
lineWidth: number;
|
|
775
|
-
lineColor: string;
|
|
776
740
|
};
|
|
777
741
|
verticalLine: {
|
|
778
742
|
lineWidth: number;
|
|
779
|
-
lineColor: string;
|
|
780
743
|
};
|
|
781
744
|
scales: ({
|
|
782
745
|
unit: "week";
|
|
@@ -819,19 +782,11 @@ declare const presetConfigs: {
|
|
|
819
782
|
rowSeriesNumber: {
|
|
820
783
|
title: string;
|
|
821
784
|
dragOrder: true;
|
|
822
|
-
headerStyle: {
|
|
823
|
-
borderColor: string;
|
|
824
|
-
};
|
|
825
|
-
style: {
|
|
826
|
-
borderColor: string;
|
|
827
|
-
};
|
|
828
785
|
};
|
|
829
786
|
scrollStyle: {
|
|
830
|
-
scrollRailColor: string;
|
|
831
787
|
visible: "scrolling";
|
|
832
788
|
width: number;
|
|
833
789
|
scrollSliderCornerRadius: number;
|
|
834
|
-
scrollSliderColor: string;
|
|
835
790
|
};
|
|
836
791
|
};
|
|
837
792
|
};
|
package/dist/graphics.d.ts
CHANGED
|
@@ -118,23 +118,19 @@ declare const presetConfigs: {
|
|
|
118
118
|
frame: {
|
|
119
119
|
outerFrameStyle: {
|
|
120
120
|
borderLineWidth: number;
|
|
121
|
-
borderColor: string;
|
|
122
121
|
cornerRadius: number;
|
|
123
122
|
};
|
|
124
123
|
verticalSplitLineMoveable: true;
|
|
125
124
|
verticalSplitLine: {
|
|
126
|
-
lineColor: string;
|
|
127
125
|
lineWidth: number;
|
|
128
126
|
};
|
|
129
127
|
};
|
|
130
128
|
grid: {
|
|
131
129
|
verticalLine: {
|
|
132
130
|
lineWidth: number;
|
|
133
|
-
lineColor: string;
|
|
134
131
|
};
|
|
135
132
|
horizontalLine: {
|
|
136
133
|
lineWidth: number;
|
|
137
|
-
lineColor: string;
|
|
138
134
|
};
|
|
139
135
|
};
|
|
140
136
|
taskBar: {
|
|
@@ -166,11 +162,9 @@ declare const presetConfigs: {
|
|
|
166
162
|
colWidth: number;
|
|
167
163
|
horizontalLine: {
|
|
168
164
|
lineWidth: number;
|
|
169
|
-
lineColor: string;
|
|
170
165
|
};
|
|
171
166
|
verticalLine: {
|
|
172
167
|
lineWidth: number;
|
|
173
|
-
lineColor: string;
|
|
174
168
|
};
|
|
175
169
|
scales: ({
|
|
176
170
|
unit: "week";
|
|
@@ -191,11 +185,9 @@ declare const presetConfigs: {
|
|
|
191
185
|
})[];
|
|
192
186
|
};
|
|
193
187
|
scrollStyle: {
|
|
194
|
-
scrollRailColor: string;
|
|
195
188
|
visible: "scrolling";
|
|
196
189
|
width: number;
|
|
197
190
|
scrollSliderCornerRadius: number;
|
|
198
|
-
scrollSliderColor: string;
|
|
199
191
|
};
|
|
200
192
|
};
|
|
201
193
|
project: {
|
|
@@ -225,23 +217,19 @@ declare const presetConfigs: {
|
|
|
225
217
|
frame: {
|
|
226
218
|
outerFrameStyle: {
|
|
227
219
|
borderLineWidth: number;
|
|
228
|
-
borderColor: string;
|
|
229
220
|
cornerRadius: number;
|
|
230
221
|
};
|
|
231
222
|
verticalSplitLineMoveable: true;
|
|
232
223
|
verticalSplitLine: {
|
|
233
|
-
lineColor: string;
|
|
234
224
|
lineWidth: number;
|
|
235
225
|
};
|
|
236
226
|
};
|
|
237
227
|
grid: {
|
|
238
228
|
verticalLine: {
|
|
239
229
|
lineWidth: number;
|
|
240
|
-
lineColor: string;
|
|
241
230
|
};
|
|
242
231
|
horizontalLine: {
|
|
243
232
|
lineWidth: number;
|
|
244
|
-
lineColor: string;
|
|
245
233
|
};
|
|
246
234
|
};
|
|
247
235
|
taskBar: {
|
|
@@ -271,11 +259,9 @@ declare const presetConfigs: {
|
|
|
271
259
|
colWidth: number;
|
|
272
260
|
horizontalLine: {
|
|
273
261
|
lineWidth: number;
|
|
274
|
-
lineColor: string;
|
|
275
262
|
};
|
|
276
263
|
verticalLine: {
|
|
277
264
|
lineWidth: number;
|
|
278
|
-
lineColor: string;
|
|
279
265
|
};
|
|
280
266
|
scales: ({
|
|
281
267
|
unit: "week";
|
|
@@ -302,19 +288,11 @@ declare const presetConfigs: {
|
|
|
302
288
|
rowSeriesNumber: {
|
|
303
289
|
title: string;
|
|
304
290
|
dragOrder: true;
|
|
305
|
-
headerStyle: {
|
|
306
|
-
borderColor: string;
|
|
307
|
-
};
|
|
308
|
-
style: {
|
|
309
|
-
borderColor: string;
|
|
310
|
-
};
|
|
311
291
|
};
|
|
312
292
|
scrollStyle: {
|
|
313
|
-
scrollRailColor: string;
|
|
314
293
|
visible: "scrolling";
|
|
315
294
|
width: number;
|
|
316
295
|
scrollSliderCornerRadius: number;
|
|
317
|
-
scrollSliderColor: string;
|
|
318
296
|
};
|
|
319
297
|
};
|
|
320
298
|
timeline: {
|
|
@@ -381,7 +359,6 @@ declare const presetConfigs: {
|
|
|
381
359
|
frame: {
|
|
382
360
|
outerFrameStyle: {
|
|
383
361
|
borderLineWidth: number;
|
|
384
|
-
borderColor: string;
|
|
385
362
|
cornerRadius: number;
|
|
386
363
|
};
|
|
387
364
|
verticalSplitLineMoveable: true;
|
|
@@ -389,11 +366,9 @@ declare const presetConfigs: {
|
|
|
389
366
|
grid: {
|
|
390
367
|
verticalLine: {
|
|
391
368
|
lineWidth: number;
|
|
392
|
-
lineColor: string;
|
|
393
369
|
};
|
|
394
370
|
horizontalLine: {
|
|
395
371
|
lineWidth: number;
|
|
396
|
-
lineColor: string;
|
|
397
372
|
};
|
|
398
373
|
};
|
|
399
374
|
taskBar: {
|
|
@@ -436,11 +411,9 @@ declare const presetConfigs: {
|
|
|
436
411
|
})[];
|
|
437
412
|
};
|
|
438
413
|
scrollStyle: {
|
|
439
|
-
scrollRailColor: string;
|
|
440
414
|
visible: "scrolling";
|
|
441
415
|
width: number;
|
|
442
416
|
scrollSliderCornerRadius: number;
|
|
443
|
-
scrollSliderColor: string;
|
|
444
417
|
};
|
|
445
418
|
};
|
|
446
419
|
milestone: {
|
|
@@ -599,11 +572,9 @@ declare const presetConfigs: {
|
|
|
599
572
|
})[];
|
|
600
573
|
};
|
|
601
574
|
scrollStyle: {
|
|
602
|
-
scrollRailColor: string;
|
|
603
575
|
visible: "scrolling";
|
|
604
576
|
width: number;
|
|
605
577
|
scrollSliderCornerRadius: number;
|
|
606
|
-
scrollSliderColor: string;
|
|
607
578
|
};
|
|
608
579
|
};
|
|
609
580
|
official: {
|
|
@@ -714,27 +685,22 @@ declare const presetConfigs: {
|
|
|
714
685
|
frame: {
|
|
715
686
|
outerFrameStyle: {
|
|
716
687
|
borderLineWidth: number;
|
|
717
|
-
borderColor: string;
|
|
718
688
|
cornerRadius: number;
|
|
719
689
|
};
|
|
720
690
|
verticalSplitLineMoveable: true;
|
|
721
691
|
verticalSplitLine: {
|
|
722
|
-
lineColor: string;
|
|
723
692
|
lineWidth: number;
|
|
724
693
|
};
|
|
725
694
|
horizontalSplitLine: {
|
|
726
|
-
lineColor: string;
|
|
727
695
|
lineWidth: number;
|
|
728
696
|
};
|
|
729
697
|
};
|
|
730
698
|
grid: {
|
|
731
699
|
verticalLine: {
|
|
732
700
|
lineWidth: number;
|
|
733
|
-
lineColor: string;
|
|
734
701
|
};
|
|
735
702
|
horizontalLine: {
|
|
736
703
|
lineWidth: number;
|
|
737
|
-
lineColor: string;
|
|
738
704
|
};
|
|
739
705
|
};
|
|
740
706
|
taskBar: {
|
|
@@ -768,15 +734,12 @@ declare const presetConfigs: {
|
|
|
768
734
|
};
|
|
769
735
|
};
|
|
770
736
|
timelineHeader: {
|
|
771
|
-
backgroundColor: string;
|
|
772
737
|
colWidth: number;
|
|
773
738
|
horizontalLine: {
|
|
774
739
|
lineWidth: number;
|
|
775
|
-
lineColor: string;
|
|
776
740
|
};
|
|
777
741
|
verticalLine: {
|
|
778
742
|
lineWidth: number;
|
|
779
|
-
lineColor: string;
|
|
780
743
|
};
|
|
781
744
|
scales: ({
|
|
782
745
|
unit: "week";
|
|
@@ -819,19 +782,11 @@ declare const presetConfigs: {
|
|
|
819
782
|
rowSeriesNumber: {
|
|
820
783
|
title: string;
|
|
821
784
|
dragOrder: true;
|
|
822
|
-
headerStyle: {
|
|
823
|
-
borderColor: string;
|
|
824
|
-
};
|
|
825
|
-
style: {
|
|
826
|
-
borderColor: string;
|
|
827
|
-
};
|
|
828
785
|
};
|
|
829
786
|
scrollStyle: {
|
|
830
|
-
scrollRailColor: string;
|
|
831
787
|
visible: "scrolling";
|
|
832
788
|
width: number;
|
|
833
789
|
scrollSliderCornerRadius: number;
|
|
834
|
-
scrollSliderColor: string;
|
|
835
790
|
};
|
|
836
791
|
};
|
|
837
792
|
};
|