@antcde/component-library 0.1.14-rc.44f7de3 → 0.1.14-rc.528dd66
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/README.md +2 -2
- package/dist/index.js +43188 -35133
- package/dist/types/{components → src/components}/BaseDeleteDialog.vue.d.ts +8 -1
- package/dist/types/src/components/DmsFilePicker/composables/usePickerNavigation.d.ts +196 -0
- package/dist/types/src/components/DmsFilePicker/composables/usePickerUpload.d.ts +22 -0
- package/dist/types/src/components/DmsFilePicker/index.vue.d.ts +28 -0
- package/dist/types/src/components/DmsFilePicker/utils/fileFormatting.d.ts +6 -0
- package/dist/types/src/components/FilePreviewContent/index.vue.d.ts +31 -0
- package/dist/types/src/components/FlowWindowContent/index.vue.d.ts +113 -0
- package/dist/types/src/components/RichTextEditor/index.vue.d.ts +51 -0
- package/dist/types/{components → src/components}/StackedLabels/_LabelsMenuCard.vue.d.ts +1 -1
- package/dist/types/src/components/TasksFlow/components/_FlowBreadcrumb.vue.d.ts +17 -0
- package/dist/types/src/components/TasksFlow/components/_FlowEdgeConditionsDialog.vue.d.ts +10 -0
- package/dist/types/{components/TasksFlow/components/nodes/_triggerNode.vue.d.ts → src/components/TasksFlow/components/_FlowSearch.vue.d.ts} +4 -3
- package/dist/types/src/components/TasksFlow/components/_FlowStats.vue.d.ts +5 -0
- package/dist/types/src/components/TasksFlow/components/_InsertTemplateDialog.vue.d.ts +17 -0
- package/dist/types/src/components/TasksFlow/components/_SubflowPanel.vue.d.ts +125 -0
- package/dist/types/src/components/TasksFlow/components/_VersionDiffView.vue.d.ts +14 -0
- package/dist/types/src/components/TasksFlow/components/_VersionPublishDialog.vue.d.ts +14 -0
- package/dist/types/src/components/TasksFlow/components/_flowEditor.vue.d.ts +13 -0
- package/dist/types/src/components/TasksFlow/components/nodes/_DurationEditor.vue.d.ts +33 -0
- package/dist/types/src/components/TasksFlow/components/nodes/_NodeContextMenu.vue.d.ts +35 -0
- package/dist/types/src/components/TasksFlow/components/nodes/_UserPicker.vue.d.ts +32 -0
- package/dist/types/{components → src/components}/TasksFlow/components/nodes/_taskNode.vue.d.ts +2 -2
- package/dist/types/src/components/TasksFlow/components/nodes/_triggerNode.vue.d.ts +10 -0
- package/dist/types/src/components/TasksFlow/components/nodes/useTaskNodeState.d.ts +86 -0
- package/dist/types/src/components/TasksFlow/composables/useAutoLayout.d.ts +22 -0
- package/dist/types/src/components/TasksFlow/composables/useCriticalPath.d.ts +8 -0
- package/dist/types/src/components/TasksFlow/composables/useFlowCache.d.ts +17 -0
- package/dist/types/src/components/TasksFlow/composables/useFlowCrud.d.ts +21 -0
- package/dist/types/src/components/TasksFlow/composables/useFlowEditor.d.ts +54 -0
- package/dist/types/src/components/TasksFlow/composables/useFlowFetch.d.ts +33 -0
- package/dist/types/src/components/TasksFlow/composables/useFlowKeyboard.d.ts +15 -0
- package/dist/types/src/components/TasksFlow/composables/useFlowNotifications.d.ts +15 -0
- package/dist/types/src/components/TasksFlow/composables/useFlowOperations.d.ts +8 -0
- package/dist/types/src/components/TasksFlow/composables/useFlowRealtime.d.ts +23 -0
- package/dist/types/src/components/TasksFlow/composables/useFlowSearch.d.ts +14 -0
- package/dist/types/src/components/TasksFlow/composables/useFlowSubflows.d.ts +22 -0
- package/dist/types/src/components/TasksFlow/composables/useFlowUsers.d.ts +27 -0
- package/dist/types/src/components/TasksFlow/composables/useFlowViewport.d.ts +28 -0
- package/dist/types/src/components/TasksFlow/composables/useTaskFlow.d.ts +321 -0
- package/dist/types/{components → src/components}/TasksFlow/composables/useTaskFlowDragDrop.d.ts +0 -1
- package/dist/types/src/components/TasksFlow/composables/useTaskFlowEdgeConditions.d.ts +10 -0
- package/dist/types/src/components/TasksFlow/composables/useTaskFlowEdges.d.ts +18 -0
- package/dist/types/src/components/TasksFlow/composables/useTaskFlowMappers.d.ts +4 -0
- package/dist/types/src/components/TasksFlow/composables/useTaskFlowTypes.d.ts +76 -0
- package/dist/types/src/components/TasksFlow/composables/useTemplateVersioning.d.ts +188 -0
- package/dist/types/src/components/TasksFlow/composables/useTemplateVersioningState.d.ts +176 -0
- package/dist/types/src/components/TasksFlow/composables/useTriggerExecution.d.ts +21 -0
- package/dist/types/src/components/TasksFlow/index.vue.d.ts +39 -0
- package/dist/types/src/components/UnifiedWindow/index.vue.d.ts +67 -0
- package/dist/types/src/components/UnifiedWindow/useWindowDrag.d.ts +28 -0
- package/dist/types/src/components/VersionPublishDialog.vue.d.ts +24 -0
- package/dist/types/{index.d.ts → src/index.d.ts} +11 -1
- package/lib/GisViewer/GisViewer.vue +3 -2
- package/lib/build/layer-order.css +33 -0
- package/lib/build/uno.ts +117 -0
- package/lib/build/vite.ts +104 -0
- package/lib/build/vuetify-overrides.css +14 -0
- package/lib/build/vuetify.ts +230 -0
- package/lib/test/TESTING.claude.md +225 -0
- package/lib/test/createMockAppContext.ts +211 -0
- package/lib/test/createTestPinia.ts +31 -0
- package/lib/test/createTestRouter.ts +31 -0
- package/lib/test/index.ts +41 -0
- package/lib/test/mockVueRouter.ts +93 -0
- package/lib/test/mocks/createMockApi.ts +43 -0
- package/lib/test/mocks/createMockContext.ts +109 -0
- package/lib/test/mocks/createMockSignal.ts +30 -0
- package/lib/test/mocks/createMockUser.ts +87 -0
- package/lib/test/mocks/index.ts +11 -0
- package/lib/test/mountApp.ts +47 -0
- package/lib/test/mountWithContext.ts +94 -0
- package/lib/test/setup.ts +151 -0
- package/lib/test/testAppSetup.ts +110 -0
- package/lib/test/vitest.ts +69 -0
- package/package.json +127 -30
- package/dist/types/components/TasksFlow/components/_flowEditor.vue.d.ts +0 -16
- package/dist/types/components/TasksFlow/composables/useTaskFlow.d.ts +0 -103
- package/dist/types/components/TasksFlow/index.vue.d.ts +0 -51
- /package/dist/types/{components → src/components}/BaseAntButton.vue.d.ts +0 -0
- /package/dist/types/{components → src/components}/BaseAntCard.vue.d.ts +0 -0
- /package/dist/types/{components → src/components}/BaseAntCreateCard.vue.d.ts +0 -0
- /package/dist/types/{components → src/components}/BaseAntDatePicker.vue.d.ts +0 -0
- /package/dist/types/{components → src/components}/BaseAntInput.vue.d.ts +0 -0
- /package/dist/types/{components → src/components}/BaseAntLoading.vue.d.ts +0 -0
- /package/dist/types/{components → src/components}/BaseAppCard.vue.d.ts +0 -0
- /package/dist/types/{components → src/components}/BaseAppCardSkeleton.vue.d.ts +0 -0
- /package/dist/types/{components → src/components}/BaseClickableIcon.vue.d.ts +0 -0
- /package/dist/types/{components → src/components}/BaseConfirmDialog.vue.d.ts +0 -0
- /package/dist/types/{components → src/components}/BaseDialog.vue.d.ts +0 -0
- /package/dist/types/{components → src/components}/BaseLimitedButton.vue.d.ts +0 -0
- /package/dist/types/{components → src/components}/BaseResizePanel.vue.d.ts +0 -0
- /package/dist/types/{components → src/components}/BulkLabelsMenu.vue.d.ts +0 -0
- /package/dist/types/{components → src/components}/GlobalLabelBadge.vue.d.ts +0 -0
- /package/dist/types/{components → src/components}/RBAC/Permissions/PermissionCard.vue.d.ts +0 -0
- /package/dist/types/{components → src/components}/StackedLabels/index.vue.d.ts +0 -0
- /package/dist/types/{components → src/components}/TasksFlow/components/_dropzoneBackground.vue.d.ts +0 -0
- /package/dist/types/{components → src/components}/TasksFlow/components/_flowEdge.vue.d.ts +0 -0
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
import { Task, TaskTemplateVersion, VersionCheck, VersionDiff } from '@antcde/connect-ts';
|
|
2
|
+
import { Ref } from 'vue';
|
|
3
|
+
import { TaskFlowEdge, TaskFlowNode } from './useTaskFlowTypes';
|
|
4
|
+
export type DiffStatus = 'added' | 'removed' | 'modified';
|
|
5
|
+
export declare function useTemplateVersioningState(flowParent: Ref<Task | null>, flowEdges: Ref<TaskFlowEdge[]>): {
|
|
6
|
+
versions: Ref<{
|
|
7
|
+
id: string;
|
|
8
|
+
template_id: string;
|
|
9
|
+
version: number;
|
|
10
|
+
change_summary: string | null;
|
|
11
|
+
created_by: string | {
|
|
12
|
+
id: string;
|
|
13
|
+
firstname: string;
|
|
14
|
+
lastname: string;
|
|
15
|
+
email: string;
|
|
16
|
+
};
|
|
17
|
+
created_at: string;
|
|
18
|
+
snapshot?: any;
|
|
19
|
+
}[], TaskTemplateVersion[] | {
|
|
20
|
+
id: string;
|
|
21
|
+
template_id: string;
|
|
22
|
+
version: number;
|
|
23
|
+
change_summary: string | null;
|
|
24
|
+
created_by: string | {
|
|
25
|
+
id: string;
|
|
26
|
+
firstname: string;
|
|
27
|
+
lastname: string;
|
|
28
|
+
email: string;
|
|
29
|
+
};
|
|
30
|
+
created_at: string;
|
|
31
|
+
snapshot?: any;
|
|
32
|
+
}[]>;
|
|
33
|
+
versionCheck: Ref<{
|
|
34
|
+
has_update: boolean;
|
|
35
|
+
current_version: number;
|
|
36
|
+
latest_version: number;
|
|
37
|
+
template_id: string;
|
|
38
|
+
} | null, VersionCheck | {
|
|
39
|
+
has_update: boolean;
|
|
40
|
+
current_version: number;
|
|
41
|
+
latest_version: number;
|
|
42
|
+
template_id: string;
|
|
43
|
+
} | null>;
|
|
44
|
+
versionDiff: Ref<{
|
|
45
|
+
added: {
|
|
46
|
+
source_id: string;
|
|
47
|
+
title: string;
|
|
48
|
+
change_type: "added" | "removed";
|
|
49
|
+
duration_days?: number | null | undefined;
|
|
50
|
+
position_x?: number | undefined;
|
|
51
|
+
position_y?: number | undefined;
|
|
52
|
+
checks?: {
|
|
53
|
+
name: string;
|
|
54
|
+
}[] | undefined;
|
|
55
|
+
}[];
|
|
56
|
+
removed: {
|
|
57
|
+
source_id: string;
|
|
58
|
+
title: string;
|
|
59
|
+
change_type: "added" | "removed";
|
|
60
|
+
duration_days?: number | null | undefined;
|
|
61
|
+
position_x?: number | undefined;
|
|
62
|
+
position_y?: number | undefined;
|
|
63
|
+
checks?: {
|
|
64
|
+
name: string;
|
|
65
|
+
}[] | undefined;
|
|
66
|
+
}[];
|
|
67
|
+
modified: {
|
|
68
|
+
source_id: string;
|
|
69
|
+
title: string;
|
|
70
|
+
change_type: "modified";
|
|
71
|
+
changes: Record<string, {
|
|
72
|
+
old: any;
|
|
73
|
+
new: any;
|
|
74
|
+
}>;
|
|
75
|
+
}[];
|
|
76
|
+
relations_added: {
|
|
77
|
+
source_ref: string;
|
|
78
|
+
target_ref: string;
|
|
79
|
+
type: string;
|
|
80
|
+
lag_days: number;
|
|
81
|
+
}[];
|
|
82
|
+
relations_removed: {
|
|
83
|
+
source_ref: string;
|
|
84
|
+
target_ref: string;
|
|
85
|
+
type: string;
|
|
86
|
+
lag_days: number;
|
|
87
|
+
}[];
|
|
88
|
+
from_version: number;
|
|
89
|
+
to_version: number;
|
|
90
|
+
task_mapping?: Record<string, string> | undefined;
|
|
91
|
+
target_version_id?: string | undefined;
|
|
92
|
+
from_version_id?: string | undefined;
|
|
93
|
+
} | null, VersionDiff | {
|
|
94
|
+
added: {
|
|
95
|
+
source_id: string;
|
|
96
|
+
title: string;
|
|
97
|
+
change_type: "added" | "removed";
|
|
98
|
+
duration_days?: number | null | undefined;
|
|
99
|
+
position_x?: number | undefined;
|
|
100
|
+
position_y?: number | undefined;
|
|
101
|
+
checks?: {
|
|
102
|
+
name: string;
|
|
103
|
+
}[] | undefined;
|
|
104
|
+
}[];
|
|
105
|
+
removed: {
|
|
106
|
+
source_id: string;
|
|
107
|
+
title: string;
|
|
108
|
+
change_type: "added" | "removed";
|
|
109
|
+
duration_days?: number | null | undefined;
|
|
110
|
+
position_x?: number | undefined;
|
|
111
|
+
position_y?: number | undefined;
|
|
112
|
+
checks?: {
|
|
113
|
+
name: string;
|
|
114
|
+
}[] | undefined;
|
|
115
|
+
}[];
|
|
116
|
+
modified: {
|
|
117
|
+
source_id: string;
|
|
118
|
+
title: string;
|
|
119
|
+
change_type: "modified";
|
|
120
|
+
changes: Record<string, {
|
|
121
|
+
old: any;
|
|
122
|
+
new: any;
|
|
123
|
+
}>;
|
|
124
|
+
}[];
|
|
125
|
+
relations_added: {
|
|
126
|
+
source_ref: string;
|
|
127
|
+
target_ref: string;
|
|
128
|
+
type: string;
|
|
129
|
+
lag_days: number;
|
|
130
|
+
}[];
|
|
131
|
+
relations_removed: {
|
|
132
|
+
source_ref: string;
|
|
133
|
+
target_ref: string;
|
|
134
|
+
type: string;
|
|
135
|
+
lag_days: number;
|
|
136
|
+
}[];
|
|
137
|
+
from_version: number;
|
|
138
|
+
to_version: number;
|
|
139
|
+
task_mapping?: Record<string, string> | undefined;
|
|
140
|
+
target_version_id?: string | undefined;
|
|
141
|
+
from_version_id?: string | undefined;
|
|
142
|
+
} | null>;
|
|
143
|
+
isPublishing: Ref<boolean, boolean>;
|
|
144
|
+
isSyncing: Ref<boolean, boolean>;
|
|
145
|
+
isDiffLoading: Ref<boolean, boolean>;
|
|
146
|
+
isCompareMode: Ref<boolean, boolean>;
|
|
147
|
+
isCompareOriginal: Ref<boolean, boolean>;
|
|
148
|
+
isCompareTwoVersions: Ref<boolean, boolean>;
|
|
149
|
+
selectedTargetVersionId: Ref<string | null, string | null>;
|
|
150
|
+
selectedFromVersionId: Ref<string | null, string | null>;
|
|
151
|
+
isTemplate: import('vue').ComputedRef<boolean>;
|
|
152
|
+
hasUpdate: import('vue').ComputedRef<boolean>;
|
|
153
|
+
currentVersion: import('vue').ComputedRef<number>;
|
|
154
|
+
latestVersion: import('vue').ComputedRef<number>;
|
|
155
|
+
hasVersions: import('vue').ComputedRef<boolean>;
|
|
156
|
+
availableVersions: import('vue').ComputedRef<{
|
|
157
|
+
id: string;
|
|
158
|
+
template_id: string;
|
|
159
|
+
version: number;
|
|
160
|
+
change_summary: string | null;
|
|
161
|
+
created_by: string | {
|
|
162
|
+
id: string;
|
|
163
|
+
firstname: string;
|
|
164
|
+
lastname: string;
|
|
165
|
+
email: string;
|
|
166
|
+
};
|
|
167
|
+
created_at: string;
|
|
168
|
+
snapshot?: any;
|
|
169
|
+
}[]>;
|
|
170
|
+
diffNodeMap: import('vue').ComputedRef<Map<string, DiffStatus>>;
|
|
171
|
+
diffEdgeMap: import('vue').ComputedRef<Map<string, DiffStatus>>;
|
|
172
|
+
ghostNodes: import('vue').ComputedRef<TaskFlowNode[]>;
|
|
173
|
+
ghostEdges: import('vue').ComputedRef<TaskFlowEdge[]>;
|
|
174
|
+
canApplyCompare: import('vue').ComputedRef<boolean>;
|
|
175
|
+
totalChanges: import('vue').ComputedRef<number>;
|
|
176
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { AntConnect, Task } from '@antcde/connect-ts';
|
|
2
|
+
import { Ref } from 'vue';
|
|
3
|
+
import { TaskFlowNode } from './useTaskFlowTypes';
|
|
4
|
+
export interface TriggerExecutionStatus {
|
|
5
|
+
status: 'success' | 'error' | 'never';
|
|
6
|
+
executedAt: string | null;
|
|
7
|
+
durationMs: number | null;
|
|
8
|
+
}
|
|
9
|
+
export declare function useTriggerExecution(antConnect: AntConnect, flowParent: Ref<Task | null>, flowNodes: Ref<TaskFlowNode[]>): {
|
|
10
|
+
getTriggerStatus: (nodeId: string) => TriggerExecutionStatus | null;
|
|
11
|
+
executionMap: Ref<Map<string, {
|
|
12
|
+
status: "success" | "error" | "never";
|
|
13
|
+
executedAt: string | null;
|
|
14
|
+
durationMs: number | null;
|
|
15
|
+
}> & Omit<Map<string, TriggerExecutionStatus>, keyof Map<any, any>>, Map<string, TriggerExecutionStatus> | (Map<string, {
|
|
16
|
+
status: "success" | "error" | "never";
|
|
17
|
+
executedAt: string | null;
|
|
18
|
+
durationMs: number | null;
|
|
19
|
+
}> & Omit<Map<string, TriggerExecutionStatus>, keyof Map<any, any>>)>;
|
|
20
|
+
refetchExecutions: () => Promise<void>;
|
|
21
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { AntConnect, Notepad, Task } from '@antcde/connect-ts';
|
|
2
|
+
import { FlowChannelSubscriber } from './composables/useTaskFlow';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
flowId: string;
|
|
5
|
+
highlightId: string | null;
|
|
6
|
+
userId: string;
|
|
7
|
+
antConnect: AntConnect;
|
|
8
|
+
notepad: Notepad;
|
|
9
|
+
isDark: boolean;
|
|
10
|
+
channelSubscriber?: FlowChannelSubscriber;
|
|
11
|
+
canManageTemplates?: boolean;
|
|
12
|
+
isAdmin?: boolean;
|
|
13
|
+
fallbackProjectId?: string | null;
|
|
14
|
+
};
|
|
15
|
+
declare function reloadFlow(): void;
|
|
16
|
+
declare function updateFlowTask(task: Task): void;
|
|
17
|
+
declare function refreshFromExternal(): void;
|
|
18
|
+
declare function handleTaskEvent(payload: {
|
|
19
|
+
id: string;
|
|
20
|
+
action: string;
|
|
21
|
+
data?: any;
|
|
22
|
+
}): void;
|
|
23
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
24
|
+
reloadFlow: typeof reloadFlow;
|
|
25
|
+
updateFlowTask: typeof updateFlowTask;
|
|
26
|
+
refreshFromExternal: typeof refreshFromExternal;
|
|
27
|
+
handleTaskEvent: typeof handleTaskEvent;
|
|
28
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
29
|
+
updated: () => any;
|
|
30
|
+
parentTaskNotFound: () => any;
|
|
31
|
+
deletedFlowId: (id: string) => any;
|
|
32
|
+
share: (task: Task) => any;
|
|
33
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
34
|
+
onUpdated?: (() => any) | undefined;
|
|
35
|
+
onParentTaskNotFound?: (() => any) | undefined;
|
|
36
|
+
onDeletedFlowId?: ((id: string) => any) | undefined;
|
|
37
|
+
onShare?: ((task: Task) => any) | undefined;
|
|
38
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
39
|
+
export default _default;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
export type WindowSizePreset = 'fit' | 'wide' | 'compact' | 'max';
|
|
2
|
+
export interface WindowTab {
|
|
3
|
+
id: string;
|
|
4
|
+
type: 'flow' | 'preview';
|
|
5
|
+
label: string;
|
|
6
|
+
icon: string;
|
|
7
|
+
}
|
|
8
|
+
type __VLS_Props = {
|
|
9
|
+
windowId: string;
|
|
10
|
+
tabs: WindowTab[];
|
|
11
|
+
activeTab: number;
|
|
12
|
+
isDark: boolean;
|
|
13
|
+
allWindowIds: string[];
|
|
14
|
+
initialX?: number;
|
|
15
|
+
initialY?: number;
|
|
16
|
+
initialW?: number;
|
|
17
|
+
initialH?: number;
|
|
18
|
+
currentPreset?: WindowSizePreset | null;
|
|
19
|
+
};
|
|
20
|
+
declare function __VLS_template(): {
|
|
21
|
+
attrs: Partial<{}>;
|
|
22
|
+
slots: {
|
|
23
|
+
toolbar?(_: {}): any;
|
|
24
|
+
default?(_: {
|
|
25
|
+
width: number;
|
|
26
|
+
}): any;
|
|
27
|
+
};
|
|
28
|
+
refs: {
|
|
29
|
+
windowEl: HTMLDivElement;
|
|
30
|
+
};
|
|
31
|
+
rootEl: HTMLDivElement;
|
|
32
|
+
};
|
|
33
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
34
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
35
|
+
x: import('vue').Ref<number, number>;
|
|
36
|
+
y: import('vue').Ref<number, number>;
|
|
37
|
+
w: import('vue').Ref<number, number>;
|
|
38
|
+
h: import('vue').Ref<number, number>;
|
|
39
|
+
setGeometry: (nx: number, ny: number, nw: number, nh: number) => void;
|
|
40
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
41
|
+
close: () => any;
|
|
42
|
+
closeTab: (index: number) => any;
|
|
43
|
+
selectTab: (index: number) => any;
|
|
44
|
+
detachTab: (index: number) => any;
|
|
45
|
+
merge: (targetWindowId: string) => any;
|
|
46
|
+
minimize: () => any;
|
|
47
|
+
setPreset: (preset: WindowSizePreset) => any;
|
|
48
|
+
userGeometryChange: () => any;
|
|
49
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
50
|
+
onClose?: (() => any) | undefined;
|
|
51
|
+
onCloseTab?: ((index: number) => any) | undefined;
|
|
52
|
+
onSelectTab?: ((index: number) => any) | undefined;
|
|
53
|
+
onDetachTab?: ((index: number) => any) | undefined;
|
|
54
|
+
onMerge?: ((targetWindowId: string) => any) | undefined;
|
|
55
|
+
onMinimize?: (() => any) | undefined;
|
|
56
|
+
onSetPreset?: ((preset: WindowSizePreset) => any) | undefined;
|
|
57
|
+
onUserGeometryChange?: (() => any) | undefined;
|
|
58
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
59
|
+
windowEl: HTMLDivElement;
|
|
60
|
+
}, HTMLDivElement>;
|
|
61
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
62
|
+
export default _default;
|
|
63
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
64
|
+
new (): {
|
|
65
|
+
$slots: S;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export declare function useWindowDrag(options: {
|
|
2
|
+
initialX?: number;
|
|
3
|
+
initialY?: number;
|
|
4
|
+
initialW?: number;
|
|
5
|
+
initialH?: number;
|
|
6
|
+
minW?: number;
|
|
7
|
+
minH?: number;
|
|
8
|
+
}): {
|
|
9
|
+
x: import('vue').Ref<number, number>;
|
|
10
|
+
y: import('vue').Ref<number, number>;
|
|
11
|
+
w: import('vue').Ref<number, number>;
|
|
12
|
+
h: import('vue').Ref<number, number>;
|
|
13
|
+
isDragging: import('vue').Ref<boolean, boolean>;
|
|
14
|
+
isResizing: import('vue').Ref<boolean, boolean>;
|
|
15
|
+
setGeometry: (nx: number, ny: number, nw: number, nh: number) => void;
|
|
16
|
+
dragHandlers: {
|
|
17
|
+
onDragStart: (e: PointerEvent) => void;
|
|
18
|
+
onDragMove: (e: PointerEvent) => void;
|
|
19
|
+
onDragEnd: (e: PointerEvent) => void;
|
|
20
|
+
onDragCancel: () => void;
|
|
21
|
+
};
|
|
22
|
+
resizeHandlers: {
|
|
23
|
+
onResizeStart: (e: PointerEvent) => void;
|
|
24
|
+
onResizeMove: (e: PointerEvent) => void;
|
|
25
|
+
onResizeEnd: (e: PointerEvent) => void;
|
|
26
|
+
onResizeCancel: () => void;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { TaskTemplateVersion } from '@antcde/connect-ts';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
nextVersion: number;
|
|
4
|
+
versions?: TaskTemplateVersion[];
|
|
5
|
+
loading?: boolean;
|
|
6
|
+
title?: string;
|
|
7
|
+
subtitle?: string;
|
|
8
|
+
publishLabel?: string;
|
|
9
|
+
cancelLabel?: string;
|
|
10
|
+
placeholder?: string;
|
|
11
|
+
historyLabel?: string;
|
|
12
|
+
noSummaryLabel?: string;
|
|
13
|
+
};
|
|
14
|
+
type __VLS_PublicProps = {
|
|
15
|
+
modelValue: boolean;
|
|
16
|
+
} & __VLS_Props;
|
|
17
|
+
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
18
|
+
"update:modelValue": (value: boolean) => any;
|
|
19
|
+
publish: (changeSummary: string) => any;
|
|
20
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
21
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
22
|
+
onPublish?: ((changeSummary: string) => any) | undefined;
|
|
23
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
24
|
+
export default _default;
|
|
@@ -14,14 +14,24 @@ import { default as BaseDialog } from './components/BaseDialog.vue';
|
|
|
14
14
|
import { default as BaseLimitedButton } from './components/BaseLimitedButton.vue';
|
|
15
15
|
import { default as BaseResizePanel } from './components/BaseResizePanel.vue';
|
|
16
16
|
import { default as BulkLabelsMenu } from './components/BulkLabelsMenu.vue';
|
|
17
|
+
import { default as DmsFilePicker } from './components/DmsFilePicker/index.vue';
|
|
17
18
|
import { default as GlobalLabelBadge } from './components/GlobalLabelBadge.vue';
|
|
18
19
|
import { default as PermissionCard } from './components/RBAC/Permissions/PermissionCard.vue';
|
|
19
20
|
import { default as StackedLabels } from './components/StackedLabels/index.vue';
|
|
21
|
+
import { default as LabelsMenuCard } from './components/StackedLabels/_LabelsMenuCard.vue';
|
|
22
|
+
import { default as RichTextEditor } from './components/RichTextEditor/index.vue';
|
|
23
|
+
import { default as FilePreviewContent } from './components/FilePreviewContent/index.vue';
|
|
24
|
+
import { default as FlowWindowContent } from './components/FlowWindowContent/index.vue';
|
|
25
|
+
import { default as UnifiedWindow } from './components/UnifiedWindow/index.vue';
|
|
20
26
|
import { default as TaskFlow } from './components/TasksFlow/index.vue';
|
|
27
|
+
import { default as VersionPublishDialog } from './components/VersionPublishDialog.vue';
|
|
21
28
|
export type { AppLike } from './components/BaseAppCard.vue';
|
|
29
|
+
export type { MentionItem } from './components/RichTextEditor/index.vue';
|
|
22
30
|
export type { StackedLabel } from './components/StackedLabels/index.vue';
|
|
31
|
+
export type { FlowChannelSubscriber } from './components/TasksFlow/composables/useTaskFlow';
|
|
32
|
+
export type { WindowSizePreset } from './components/UnifiedWindow/index.vue';
|
|
23
33
|
export * from '@antcde/vue-utils';
|
|
24
|
-
export { BaseAntButton, BaseAntCard, BaseAntCreateCard, BaseAntDatePicker, BaseAntInput, BaseAntLoading, BaseAppCard, BaseAppCardSkeleton, BaseClickableIcon, BaseConfirmDialog, BaseDeleteDialog, BaseDialog, BaseLimitedButton, BaseResizePanel, BulkLabelsMenu, GlobalLabelBadge, PermissionCard, StackedLabels, TaskFlow, };
|
|
34
|
+
export { BaseAntButton, BaseAntCard, BaseAntCreateCard, BaseAntDatePicker, BaseAntInput, BaseAntLoading, BaseAppCard, BaseAppCardSkeleton, BaseClickableIcon, BaseConfirmDialog, BaseDeleteDialog, BaseDialog, BaseLimitedButton, BaseResizePanel, BulkLabelsMenu, DmsFilePicker, FilePreviewContent, FlowWindowContent, GlobalLabelBadge, LabelsMenuCard, PermissionCard, RichTextEditor, StackedLabels, TaskFlow, UnifiedWindow, VersionPublishDialog, };
|
|
25
35
|
declare const _default: {
|
|
26
36
|
install: (app: App) => void;
|
|
27
37
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
<script lang="ts" setup>
|
|
2
|
+
import type { ApplicationProps } from './useGisViewer'
|
|
2
3
|
import { watch } from 'vue'
|
|
3
4
|
import GisViewerAppBar from './GisViewerAppBar.vue'
|
|
4
|
-
import {
|
|
5
|
+
import { useGisViewer } from './useGisViewer'
|
|
5
6
|
|
|
6
7
|
const { client, widgets, drawings, toolbar = true } = defineProps<ApplicationProps & { toolbar?: boolean }>()
|
|
7
8
|
const {
|
|
@@ -43,7 +44,7 @@ watch(() => drawings, (newDrawings) => {
|
|
|
43
44
|
<slot name="toolbar-right" />
|
|
44
45
|
</template>
|
|
45
46
|
</GisViewerAppBar>
|
|
46
|
-
<div :class="`w-
|
|
47
|
+
<div :class="`w-full gis-wrapper bg-grey-lighten-3 position-relative ${toolbar ? 'toolbar' : ''}`">
|
|
47
48
|
<div id="gisViewer" />
|
|
48
49
|
</div>
|
|
49
50
|
</template>
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* ANT Platform — CSS Layer Order
|
|
3
|
+
*
|
|
4
|
+
* Registers the layer cascade order BEFORE any Vuetify component CSS loads.
|
|
5
|
+
* CSS layer priority is set by the first declaration of each name. UnoCSS
|
|
6
|
+
* layers are prefixed with `uno-` (via `cssLayerName` in uno.config) to
|
|
7
|
+
* avoid collisions with Vuetify's own layer names.
|
|
8
|
+
*
|
|
9
|
+
* Order rationale:
|
|
10
|
+
* uno-base — UnoCSS preflights / resets (lowest priority)
|
|
11
|
+
* uno-theme — UnoCSS theme utilities
|
|
12
|
+
* vuetify-core — Vuetify resets (button { font: inherit }, etc.)
|
|
13
|
+
* vuetify-components — Vuetify component styles (.v-btn, .v-card, …)
|
|
14
|
+
* vuetify-overrides — Vuetify component overrides
|
|
15
|
+
* vuetify-utilities — Vuetify utility classes
|
|
16
|
+
* uno-shortcuts — UnoCSS shortcuts
|
|
17
|
+
* uno-default — UnoCSS utilities (above Vuetify so `p-4` beats `.v-card` padding)
|
|
18
|
+
* vuetify-final — Vuetify !important overrides (highest priority)
|
|
19
|
+
*
|
|
20
|
+
* This file is imported as a side-effect by:
|
|
21
|
+
* - `src/index.ts` (component library main entry — for apps using AntComponentLibrary plugin)
|
|
22
|
+
* - `lib/build/vuetify.ts` (createAntVuetify factory — for apps using the factory directly)
|
|
23
|
+
*/
|
|
24
|
+
@layer
|
|
25
|
+
uno-base,
|
|
26
|
+
uno-theme,
|
|
27
|
+
vuetify-core,
|
|
28
|
+
vuetify-components,
|
|
29
|
+
vuetify-overrides,
|
|
30
|
+
vuetify-utilities,
|
|
31
|
+
uno-shortcuts,
|
|
32
|
+
uno-default,
|
|
33
|
+
vuetify-final;
|
package/lib/build/uno.ts
ADDED
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import type { UserConfig } from 'unocss'
|
|
2
|
+
import presetRemToPx from '@unocss/preset-rem-to-px'
|
|
3
|
+
import presetWind4 from '@unocss/preset-wind4'
|
|
4
|
+
import { defineConfig, transformerDirectives, transformerVariantGroup } from 'unocss'
|
|
5
|
+
|
|
6
|
+
const antColors = {
|
|
7
|
+
primary: '#125CFF',
|
|
8
|
+
secondary: '#64748B',
|
|
9
|
+
info: '#2196F3',
|
|
10
|
+
success: '#4CAF50',
|
|
11
|
+
warning: '#FB8C00',
|
|
12
|
+
} as const
|
|
13
|
+
|
|
14
|
+
const vuetifyBreakpoints = {
|
|
15
|
+
xs: '0px',
|
|
16
|
+
sm: '600px',
|
|
17
|
+
md: '960px',
|
|
18
|
+
lg: '1280px',
|
|
19
|
+
xl: '1920px',
|
|
20
|
+
xxl: '2560px',
|
|
21
|
+
} as const
|
|
22
|
+
|
|
23
|
+
// ANT design-system tokens built on Vuetify CSS custom properties. These
|
|
24
|
+
// exist because UnoCSS shortcuts can only expand to UnoCSS-generated
|
|
25
|
+
// utilities — Vuetify's own classes (bg-surface, etc.) are invisible to the
|
|
26
|
+
// shortcut resolver. Text tokens use unprefixed names (text-heading,
|
|
27
|
+
// text-muted) since they have no Vuetify namesake. Background and border
|
|
28
|
+
// tokens use the `ant-` prefix to avoid shadowing Vuetify's own bg-surface.
|
|
29
|
+
const antDesignTokens: NonNullable<UserConfig['rules']> = [
|
|
30
|
+
['bg-ant-surface', { 'background-color': 'rgb(var(--v-theme-surface))' }],
|
|
31
|
+
['bg-ant-panel', { 'background-color': 'rgba(var(--v-theme-on-surface), 0.03)' }],
|
|
32
|
+
['bg-ant-inset', { 'background-color': 'rgba(var(--v-border-color), 0.08)' }],
|
|
33
|
+
['bg-ant-hover', { 'background-color': 'rgba(var(--v-border-color), 0.04)' }],
|
|
34
|
+
['text-heading', { color: 'rgb(var(--v-theme-on-surface))' }],
|
|
35
|
+
['text-body', { color: 'rgba(var(--v-theme-on-surface), 0.7)' }],
|
|
36
|
+
['text-muted', { color: 'rgba(var(--v-theme-on-surface), 0.5)' }],
|
|
37
|
+
['text-disabled', { color: 'rgba(var(--v-theme-on-surface), 0.38)' }],
|
|
38
|
+
['border-ant', { 'border-color': 'rgba(var(--v-border-color), var(--v-border-opacity))' }],
|
|
39
|
+
]
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Normalizes shortcuts from either array or object form to array form.
|
|
43
|
+
*
|
|
44
|
+
* UnoCSS accepts shortcuts as either:
|
|
45
|
+
* - Array: `[['pattern', 'replacement'], ...]`
|
|
46
|
+
* - Object: `{ 'pattern': 'replacement', ... }`
|
|
47
|
+
*
|
|
48
|
+
* This helper ensures both forms are supported in overrides.
|
|
49
|
+
*/
|
|
50
|
+
function normalizeShortcuts(shortcuts: any): [string, string][] {
|
|
51
|
+
if (Array.isArray(shortcuts))
|
|
52
|
+
return shortcuts
|
|
53
|
+
if (shortcuts != null && typeof shortcuts === 'object')
|
|
54
|
+
return Object.entries(shortcuts) as [string, string][]
|
|
55
|
+
return []
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Creates a UnoCSS config pre-configured for the ANT platform with Vuetify 4.
|
|
60
|
+
*
|
|
61
|
+
* Includes:
|
|
62
|
+
* - Correct `outputToCssLayers` with `uno-` prefix (required for Vuetify 4 layer compatibility)
|
|
63
|
+
* - `presetWind4` with Vuetify dark mode selector (`.v-theme--dark`)
|
|
64
|
+
* - `presetRemToPx` for pixel-based design
|
|
65
|
+
* - Vuetify breakpoints matching Vuetify's built-in breakpoints
|
|
66
|
+
* - ANT design tokens (`bg-ant-surface`, `text-muted`, `border-ant`, etc.)
|
|
67
|
+
* - Standard transformers (directives + variant group)
|
|
68
|
+
*
|
|
69
|
+
* @example
|
|
70
|
+
* ```ts
|
|
71
|
+
* // uno.config.ts — zero-arg default (most apps)
|
|
72
|
+
* import { createAntUnoConfig } from '@antcde/component-library/build/uno'
|
|
73
|
+
* export default createAntUnoConfig()
|
|
74
|
+
*
|
|
75
|
+
* // With overrides
|
|
76
|
+
* export default createAntUnoConfig({
|
|
77
|
+
* rules: [['my-rule', { color: 'red' }]],
|
|
78
|
+
* theme: { colors: { primary: '#009688' } },
|
|
79
|
+
* })
|
|
80
|
+
* ```
|
|
81
|
+
*/
|
|
82
|
+
export function createAntUnoConfig(overrides: Partial<UserConfig> = {}): UserConfig {
|
|
83
|
+
const { rules, presets, transformers, theme, shortcuts, preflights, ...rest } = overrides
|
|
84
|
+
// UnoCSS types `theme` as `object` on `UserConfig`, so destructured fields
|
|
85
|
+
// lose their shape. Cast to a loose record to access `colors`/`breakpoints`/`radius`.
|
|
86
|
+
const overrideTheme = theme as Record<string, any> | undefined
|
|
87
|
+
const overrideRules = (rules ?? []) as NonNullable<UserConfig['rules']>
|
|
88
|
+
|
|
89
|
+
return defineConfig({
|
|
90
|
+
outputToCssLayers: {
|
|
91
|
+
cssLayerName: (layer: string) => layer === 'properties' ? null : `uno-${layer}`,
|
|
92
|
+
},
|
|
93
|
+
preflights: preflights ?? [],
|
|
94
|
+
rules: [
|
|
95
|
+
...antDesignTokens,
|
|
96
|
+
...overrideRules,
|
|
97
|
+
],
|
|
98
|
+
theme: {
|
|
99
|
+
...overrideTheme,
|
|
100
|
+
colors: { ...antColors, ...(overrideTheme?.colors ?? {}) },
|
|
101
|
+
breakpoints: { ...vuetifyBreakpoints, ...(overrideTheme?.breakpoints ?? {}) },
|
|
102
|
+
radius: { sm: '2px', xl: '24px', ...(overrideTheme?.radius ?? {}) },
|
|
103
|
+
},
|
|
104
|
+
presets: presets ?? [
|
|
105
|
+
presetRemToPx,
|
|
106
|
+
presetWind4({ dark: { dark: '.v-theme--dark' } }),
|
|
107
|
+
],
|
|
108
|
+
shortcuts: [
|
|
109
|
+
...normalizeShortcuts(shortcuts),
|
|
110
|
+
],
|
|
111
|
+
transformers: transformers ?? [
|
|
112
|
+
transformerDirectives(),
|
|
113
|
+
transformerVariantGroup(),
|
|
114
|
+
],
|
|
115
|
+
...rest,
|
|
116
|
+
})
|
|
117
|
+
}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import type { UserConfig } from 'vite'
|
|
2
|
+
import { fileURLToPath, URL } from 'node:url'
|
|
3
|
+
import VueI18nPlugin from '@intlify/unplugin-vue-i18n/vite'
|
|
4
|
+
import vue from '@vitejs/plugin-vue'
|
|
5
|
+
import UnoCSS from 'unocss/vite'
|
|
6
|
+
import AutoImport from 'unplugin-auto-import/rolldown'
|
|
7
|
+
import IconsResolver from 'unplugin-icons/resolver'
|
|
8
|
+
import Icons from 'unplugin-icons/rolldown'
|
|
9
|
+
import Components from 'unplugin-vue-components/rolldown'
|
|
10
|
+
import { defineConfig, mergeConfig } from 'vite'
|
|
11
|
+
import vuetify from 'vite-plugin-vuetify'
|
|
12
|
+
|
|
13
|
+
const RE_DIST = /dist/
|
|
14
|
+
const RE_VUETIFY_PLUGIN = /src\/plugins\/vuetify\.ts$/
|
|
15
|
+
const RE_NODE_MODULES = /\bnode_modules\b/
|
|
16
|
+
|
|
17
|
+
/** Canonical CSS layer order declaration — single source of truth for Vuetify 4 + UnoCSS cascade. */
|
|
18
|
+
export const CSS_LAYER_ORDER = '@layer uno-base, uno-theme, vuetify-core, vuetify-components, vuetify-overrides, vuetify-utilities, uno-shortcuts, uno-default, vuetify-final;'
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Creates a Vite config pre-configured for ANT platform apps.
|
|
22
|
+
*
|
|
23
|
+
* Includes: vue, UnoCSS, Vuetify auto-import, AutoImport, Components,
|
|
24
|
+
* Icons, VueI18nPlugin, and sensible defaults for optimizeDeps, resolve, and build.
|
|
25
|
+
*
|
|
26
|
+
* @param appRoot - Pass `import.meta.url` from your vite.config.ts.
|
|
27
|
+
* Used to resolve relative paths (i18n translations, `@` alias) correctly.
|
|
28
|
+
* @param overrides - Additional Vite config merged via `mergeConfig()`.
|
|
29
|
+
* Plugins are appended, objects are deep-merged.
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```ts
|
|
33
|
+
* // vite.config.ts — zero-override default (most apps)
|
|
34
|
+
* import { createAntViteConfig } from '@antcde/component-library/build/vite'
|
|
35
|
+
* export default createAntViteConfig(import.meta.url)
|
|
36
|
+
*
|
|
37
|
+
* // With overrides
|
|
38
|
+
* export default createAntViteConfig(import.meta.url, {
|
|
39
|
+
* server: { port: 5174 },
|
|
40
|
+
* })
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
43
|
+
export function createAntViteConfig(appRoot: string | URL, overrides: UserConfig = {}): UserConfig {
|
|
44
|
+
const resolve = (relative: string) => fileURLToPath(new URL(relative, appRoot))
|
|
45
|
+
|
|
46
|
+
const baseConfig = defineConfig({
|
|
47
|
+
base: '/__APP_URL__/',
|
|
48
|
+
optimizeDeps: { exclude: ['vuetify'] },
|
|
49
|
+
plugins: [
|
|
50
|
+
// Inject CSS layer order into <head> before any JS-loaded CSS.
|
|
51
|
+
// This guarantees the cascade order is set before vite-plugin-vuetify
|
|
52
|
+
// auto-imports component CSS — no manual import ordering required.
|
|
53
|
+
{
|
|
54
|
+
name: 'ant-css-layer-order',
|
|
55
|
+
transformIndexHtml() {
|
|
56
|
+
return [{ tag: 'style', children: CSS_LAYER_ORDER, injectTo: 'head-prepend' }]
|
|
57
|
+
},
|
|
58
|
+
},
|
|
59
|
+
vue(),
|
|
60
|
+
UnoCSS('uno.config.ts'),
|
|
61
|
+
vuetify({ autoImport: { labs: true } }),
|
|
62
|
+
Icons({ autoInstall: true }),
|
|
63
|
+
AutoImport({
|
|
64
|
+
imports: [
|
|
65
|
+
'vue',
|
|
66
|
+
'@vueuse/core',
|
|
67
|
+
'@vueuse/math',
|
|
68
|
+
{ vuetify: ['useDisplay'] },
|
|
69
|
+
],
|
|
70
|
+
dirs: ['src/composables', 'src/stores', 'src/plugins'],
|
|
71
|
+
dts: true,
|
|
72
|
+
eslintrc: { enabled: true },
|
|
73
|
+
exclude: [RE_DIST, RE_VUETIFY_PLUGIN, RE_NODE_MODULES],
|
|
74
|
+
}),
|
|
75
|
+
Components({
|
|
76
|
+
dirs: ['src/components'],
|
|
77
|
+
extensions: ['vue'],
|
|
78
|
+
globs: [
|
|
79
|
+
'src/components/**/*.vue',
|
|
80
|
+
'!src/components/**/_*/**',
|
|
81
|
+
'!src/components/**/_*.vue',
|
|
82
|
+
'!src/components/**/components/**',
|
|
83
|
+
],
|
|
84
|
+
resolvers: [IconsResolver()],
|
|
85
|
+
}),
|
|
86
|
+
VueI18nPlugin({
|
|
87
|
+
include: resolve('./src/lang/translations/**'),
|
|
88
|
+
strictMessage: false,
|
|
89
|
+
}),
|
|
90
|
+
],
|
|
91
|
+
resolve: {
|
|
92
|
+
dedupe: ['vuetify'],
|
|
93
|
+
extensions: ['.mjs', '.js', '.mts', '.ts', '.jsx', '.tsx', '.json', '.vue'],
|
|
94
|
+
alias: {
|
|
95
|
+
'@': resolve('./src'),
|
|
96
|
+
},
|
|
97
|
+
},
|
|
98
|
+
build: {
|
|
99
|
+
cssMinify: 'esbuild',
|
|
100
|
+
},
|
|
101
|
+
})
|
|
102
|
+
|
|
103
|
+
return mergeConfig(baseConfig, overrides)
|
|
104
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* ANT Platform — Vuetify CSS overrides
|
|
3
|
+
*
|
|
4
|
+
* Holds CSS patches for Vuetify quirks that cannot be expressed via
|
|
5
|
+
* `theme.variables`, `theme.colors`, or component `defaults`. New patches drop
|
|
6
|
+
* in below as additional sections inside the `vuetify-overrides` cascade layer.
|
|
7
|
+
*/
|
|
8
|
+
@layer vuetify-overrides {
|
|
9
|
+
/* Outlined VCard: Vuetify uses `currentColor` for the border, ignoring the
|
|
10
|
+
`borderColor` default. Pin to hairline. */
|
|
11
|
+
.v-card--variant-outlined {
|
|
12
|
+
border-color: rgb(var(--v-theme-hairline));
|
|
13
|
+
}
|
|
14
|
+
}
|