@antcde/component-library 0.1.33 → 0.1.35-rc.1
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/dist/build/uno.js +2 -0
- package/dist/build/uno.shortcuts.js +2 -2
- package/dist/index.js +35640 -35642
- package/dist/types/components/AntNoticeAlert.vue.d.ts +2 -2
- package/dist/types/components/AntTourZone/index.vue.d.ts +1 -1
- package/dist/types/components/BaseAppCard/index.vue.d.ts +2 -2
- package/dist/types/components/BaseAppCardSkeleton.vue.d.ts +1 -1
- package/dist/types/components/BaseConfirmDialog.vue.d.ts +2 -2
- package/dist/types/components/BaseDeleteDialog.vue.d.ts +5 -5
- package/dist/types/components/BaseDialog.vue.d.ts +2 -2
- package/dist/types/components/BaseLimitedButton.vue.d.ts +5 -5
- package/dist/types/components/BulkLabelsMenu.vue.d.ts +2 -2
- package/dist/types/components/FilePreviewContent/usePreviewDetails.d.ts +1 -1
- package/dist/types/components/ScriptTrigger/composables/useTableSelection.d.ts +16 -0
- package/dist/types/components/ScriptTrigger/context.d.ts +2 -2
- package/dist/types/components/StackedLabels/index.vue.d.ts +1 -1
- package/dist/types/components/TasksFlow/components/nodes/_DurationEditor.vue.d.ts +2 -2
- package/dist/types/components/TasksFlow/components/nodes/_UserPicker.vue.d.ts +2 -2
- package/dist/types/components/TasksFlow/composables/useEdgeConditionTables.d.ts +16 -0
- package/dist/types/components/TasksFlow/composables/useFlowEdgeConditionState.d.ts +1 -1
- package/dist/types/components/TasksFlow/composables/useTaskFlow.d.ts +1 -1
- package/dist/types/components/form/AntDialogShell.vue.d.ts +7 -7
- package/dist/types/components/form/AntScopePanel.vue.d.ts +2 -2
- package/dist/types/deprecated.d.ts +974 -0
- package/dist/types/index.d.ts +2 -45
- package/lib/build/fonts.css +26 -0
- package/lib/build/uno.shortcuts.ts +2 -2
- package/lib/build/uno.ts +2 -0
- package/lib/build/vuetify.ts +4 -1
- package/package.json +25 -36
- package/lib/ForgeViewer/ForgeViewer.vue +0 -43
- package/lib/ForgeViewer/index.ts +0 -4
- package/lib/ForgeViewer/lang/translations/de.json +0 -6
- package/lib/ForgeViewer/lang/translations/en.json +0 -6
- package/lib/ForgeViewer/lang/translations/nl.json +0 -6
- package/lib/ForgeViewer/useForgeViewer.ts +0 -401
- package/lib/GisViewer/GisViewer.vue +0 -67
- package/lib/GisViewer/GisViewerAppBar.vue +0 -34
- package/lib/GisViewer/index.ts +0 -3
- package/lib/GisViewer/useGisViewer.ts +0 -415
package/dist/types/index.d.ts
CHANGED
|
@@ -1,36 +1,12 @@
|
|
|
1
1
|
import { App } from 'vue';
|
|
2
2
|
import { default as BaseAntInput } from './components/BaseAntInput.vue';
|
|
3
|
-
import { default as BaseAppCard } from './components/BaseAppCard/index.vue';
|
|
4
|
-
import { default as BaseAppCardSkeleton } from './components/BaseAppCardSkeleton.vue';
|
|
5
3
|
import { default as BaseClickableIcon } from './components/BaseClickableIcon.vue';
|
|
6
4
|
import { default as BaseDeleteDialog } from './components/BaseDeleteDialog.vue';
|
|
7
|
-
import { default as BaseLimitedButton } from './components/BaseLimitedButton.vue';
|
|
8
|
-
import { default as BulkLabelsMenu } from './components/BulkLabelsMenu.vue';
|
|
9
|
-
import { default as DmsFilePicker } from './components/DmsFilePicker/index.vue';
|
|
10
|
-
import { default as GlobalLabelBadge } from './components/GlobalLabelBadge.vue';
|
|
11
|
-
import { default as PermissionCard } from './components/RBAC/Permissions/PermissionCard.vue';
|
|
12
|
-
import { default as StackedLabels } from './components/StackedLabels/index.vue';
|
|
13
|
-
import { default as LabelsMenuCard } from './components/StackedLabels/_LabelsMenuCard.vue';
|
|
14
5
|
import { default as RichTextEditor } from './components/RichTextEditor/index.vue';
|
|
15
|
-
import { default as FilePreviewContent } from './components/FilePreviewContent/index.vue';
|
|
16
|
-
import { default as FlowWindowContent } from './components/FlowWindowContent/index.vue';
|
|
17
|
-
import { default as UnifiedWindow } from './components/UnifiedWindow/index.vue';
|
|
18
|
-
import { default as TaskFlow } from './components/TasksFlow/index.vue';
|
|
19
|
-
import { default as VersionPublishDialog } from './components/VersionPublishDialog.vue';
|
|
20
6
|
import { default as AntTourZone } from './components/AntTourZone/index.vue';
|
|
21
|
-
import { default as ResourceTrash } from './components/Usage/ResourceTrash.vue';
|
|
22
|
-
import { default as UsageActions } from './components/Usage/UsageActions.vue';
|
|
23
|
-
import { default as UsagePanel } from './components/Usage/UsagePanel.vue';
|
|
24
7
|
import { default as AntNoticeAlert } from './components/AntNoticeAlert.vue';
|
|
25
|
-
import { default as AntDatasetFileSource } from './components/ScriptTrigger/AntDatasetFileSource.vue';
|
|
26
|
-
import { default as AntDatasetTableSource } from './components/ScriptTrigger/AntDatasetTableSource.vue';
|
|
27
|
-
import { default as AntPayloadFieldsEditor } from './components/ScriptTrigger/AntPayloadFieldsEditor.vue';
|
|
28
|
-
import { default as AntRunScriptFields } from './components/ScriptTrigger/AntRunScriptFields.vue';
|
|
29
|
-
import { default as AntTransformScriptFields } from './components/ScriptTrigger/AntTransformScriptFields.vue';
|
|
30
|
-
import { default as AntTriggerExecutionUser } from './components/ScriptTrigger/AntTriggerExecutionUser.vue';
|
|
31
8
|
import { default as AntActionMenu } from './components/form/AntActionMenu.vue';
|
|
32
9
|
import { default as AntCheckboxCards } from './components/form/AntCheckboxCards.vue';
|
|
33
|
-
import { default as AntColumnMapRow } from './components/form/AntColumnMapRow.vue';
|
|
34
10
|
import { default as AntDialogShell } from './components/form/AntDialogShell.vue';
|
|
35
11
|
import { default as AntField } from './components/form/AntField.vue';
|
|
36
12
|
import { default as AntFilterChips } from './components/form/AntFilterChips.vue';
|
|
@@ -43,15 +19,12 @@ import { default as AntNumberField } from './components/form/AntNumberField.vue'
|
|
|
43
19
|
import { default as AntOptionPicker } from './components/form/AntOptionPicker.vue';
|
|
44
20
|
import { default as AntPanelSection } from './components/form/AntPanelSection.vue';
|
|
45
21
|
import { default as AntRadioCards } from './components/form/AntRadioCards.vue';
|
|
46
|
-
import { default as AntResourceTile } from './components/form/AntResourceTile.vue';
|
|
47
22
|
import { default as AntSaveBar } from './components/form/AntSaveBar.vue';
|
|
48
|
-
import { default as AntScopePanel } from './components/form/AntScopePanel.vue';
|
|
49
23
|
import { default as AntSearchField } from './components/form/AntSearchField.vue';
|
|
50
24
|
import { default as AntSectionCard } from './components/form/AntSectionCard.vue';
|
|
51
25
|
import { default as AntSelect } from './components/form/AntSelect.vue';
|
|
52
26
|
import { default as AntStatusPill } from './components/form/AntStatusPill.vue';
|
|
53
27
|
import { default as AntToggle } from './components/form/AntToggle.vue';
|
|
54
|
-
export type { AppLike } from './components/BaseAppCard/index.vue';
|
|
55
28
|
export type { ActionMenuItem } from './components/form/AntActionMenu.vue';
|
|
56
29
|
export type { CheckboxCardOption } from './components/form/AntCheckboxCards.vue';
|
|
57
30
|
export type { FilterChipOption } from './components/form/AntFilterChips.types';
|
|
@@ -61,24 +34,8 @@ export type { RadioCardOption } from './components/form/AntRadioCards.vue';
|
|
|
61
34
|
export type { SelectOption } from './components/form/AntSelect.vue';
|
|
62
35
|
export type { PillTone } from './components/form/AntStatusPill.vue';
|
|
63
36
|
export type { MentionItem } from './components/RichTextEditor/index.vue';
|
|
64
|
-
export type { FieldIssue, FieldIssues } from './components/ScriptTrigger/composables/useFieldIssue';
|
|
65
|
-
export { FIELD_ISSUES_KEY, useFieldIssue } from './components/ScriptTrigger/composables/useFieldIssue';
|
|
66
|
-
export { useScriptSelection, WORKING_COPY } from './components/ScriptTrigger/composables/useScriptSelection';
|
|
67
|
-
export type { DatasetColumnChoice } from './components/ScriptTrigger/composables/useTableColumns';
|
|
68
|
-
export { useTableColumns } from './components/ScriptTrigger/composables/useTableColumns';
|
|
69
|
-
export { useTableSelection } from './components/ScriptTrigger/composables/useTableSelection';
|
|
70
|
-
export type { ScriptTriggerContext } from './components/ScriptTrigger/context';
|
|
71
|
-
export { provideScriptTriggerContext } from './components/ScriptTrigger/context';
|
|
72
|
-
export type { PayloadField } from './components/ScriptTrigger/utils/payloadFields';
|
|
73
|
-
export { convertPayloadFieldsToJson, initializePayloadFields } from './components/ScriptTrigger/utils/payloadFields';
|
|
74
|
-
export { withSavedOption } from './components/ScriptTrigger/utils/withSavedOption';
|
|
75
|
-
export type { StackedLabel } from './components/StackedLabels/index.vue';
|
|
76
|
-
export type { FlowChannelSubscriber } from './components/TasksFlow/composables/useTaskFlow';
|
|
77
|
-
export type { WindowSizePreset, WindowTab } from './components/UnifiedWindow/types';
|
|
78
37
|
export { formatBytes } from './components/Usage/formatBytes';
|
|
79
|
-
export
|
|
80
|
-
export { type UseResourceUsage, useResourceUsage, type UseResourceUsageOptions } from './components/Usage/useResourceUsage';
|
|
81
|
-
export { useShowUsageSizes } from './components/Usage/useShowUsageSizes';
|
|
38
|
+
export * from './deprecated';
|
|
82
39
|
export * from '@antcde/vue-utils';
|
|
83
40
|
/** @deprecated Unused on the platform; removed in the next minor. Use the `Ant*` components instead. */
|
|
84
41
|
export declare const BaseAntButton: import('vue').DefineComponent<{
|
|
@@ -358,7 +315,7 @@ export declare const BaseResizePanel: {
|
|
|
358
315
|
default?: (props: {}) => any;
|
|
359
316
|
};
|
|
360
317
|
});
|
|
361
|
-
export { AntActionMenu, AntCheckboxCards,
|
|
318
|
+
export { AntActionMenu, AntCheckboxCards, AntDialogShell, AntField, AntFilterChips, AntFilterSelect, AntHintBanner, AntHintTip, AntInput, AntMultiSelect, AntNoticeAlert, AntNumberField, AntOptionPicker, AntPanelSection, AntRadioCards, AntSaveBar, AntSearchField, AntSectionCard, AntSelect, AntStatusPill, AntToggle, AntTourZone, BaseAntInput, BaseClickableIcon, BaseDeleteDialog, RichTextEditor, };
|
|
362
319
|
/**
|
|
363
320
|
* ⚠️ `BaseAntInput` and `BaseAntDatePicker` are the SUPERSEDED field idiom: Vuetify-field
|
|
364
321
|
* wrappers whose border weight and floating notched label make forms read as "raw Vuetify".
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* ANT platform font: Inter, self-hosted from @fontsource-variable (OFL-1.1).
|
|
3
|
+
* Vuetify reads `--v-font-body` everywhere (heading falls back to it), so this
|
|
4
|
+
* one variable sets the font for every app; override it, never `font-family`.
|
|
5
|
+
*/
|
|
6
|
+
@import '@fontsource-variable/inter/wght.css';
|
|
7
|
+
@import '@fontsource-variable/inter/wght-italic.css';
|
|
8
|
+
|
|
9
|
+
/* Arial resized to Inter's metrics (fontaine), so the swap doesn't shift layout. */
|
|
10
|
+
@font-face {
|
|
11
|
+
font-family: 'Inter Fallback';
|
|
12
|
+
src: local('Arial');
|
|
13
|
+
size-adjust: 107.1194%;
|
|
14
|
+
ascent-override: 90.4365%;
|
|
15
|
+
descent-override: 22.518%;
|
|
16
|
+
line-gap-override: 0%;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
:root {
|
|
20
|
+
--v-font-body: 'Inter Variable', 'Inter Fallback', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
html {
|
|
24
|
+
-webkit-font-smoothing: antialiased;
|
|
25
|
+
-moz-osx-font-smoothing: grayscale;
|
|
26
|
+
}
|
|
@@ -125,7 +125,7 @@ export const antShortcuts: [string, string][] = [
|
|
|
125
125
|
['ant-install-another-btn', 'w-full mt-1.5 mb-1 h-[30px] bg-transparent border border-dashed border-ant text-muted [font-family:inherit] text-[12px] font-medium rounded-lg cursor-pointer inline-flex items-center justify-center gap-1 hover:bg-ant-hover'],
|
|
126
126
|
|
|
127
127
|
// Small metadata chip.
|
|
128
|
-
['ant-cat-chip', 'h-[22px] px-2 inline-flex items-center rounded-
|
|
128
|
+
['ant-cat-chip', 'h-[22px] px-2 inline-flex items-center rounded-full bg-ant-inset text-[11px] font-medium text-muted whitespace-nowrap cursor-pointer hover:bg-ant-hover'],
|
|
129
129
|
|
|
130
130
|
['ant-icon-button', 'inline-flex items-center justify-center w-7 h-7 rounded-lg bg-transparent border-0 text-muted cursor-pointer hover:bg-ant-hover hover:text-body'],
|
|
131
131
|
|
|
@@ -223,7 +223,7 @@ export const antShortcuts: [string, string][] = [
|
|
|
223
223
|
// Tiny uppercase tag for a fact about a row — "CUSTOM PATH", "TABLE". Inset
|
|
224
224
|
// rather than tinted: it qualifies the row it sits in, it does not report a state,
|
|
225
225
|
// so it must not read as a status pill.
|
|
226
|
-
['ant-tag-inset', 'text-[10px] font-semibold tracking-[0.03em] uppercase px-1.5 py-0.5 rounded bg-ant-inset text-muted'],
|
|
226
|
+
['ant-tag-inset', 'text-[10px] font-semibold tracking-[0.03em] uppercase px-1.5 py-0.5 rounded-full bg-ant-inset text-muted'],
|
|
227
227
|
|
|
228
228
|
// The chooser's radio. 18px, and the SELECTED one is FILLED with a white dot in
|
|
229
229
|
// it — not an outline with a coloured dot, which is the weaker treatment this
|
package/lib/build/uno.ts
CHANGED
|
@@ -145,6 +145,8 @@ export function createAntUnoConfig(overrides: Partial<UserConfig> = {}): UserCon
|
|
|
145
145
|
colors: { ...antColors, ...(overrideTheme?.colors ?? {}) },
|
|
146
146
|
breakpoints: { ...vuetifyBreakpoints, ...(overrideTheme?.breakpoints ?? {}) },
|
|
147
147
|
radius: { sm: '2px', xl: '24px', ...(overrideTheme?.radius ?? {}) },
|
|
148
|
+
// Follows Vuetify's font variable (set in fonts.css), so `font-sans` stays Inter.
|
|
149
|
+
font: { sans: 'var(--v-font-body)', ...(overrideTheme?.font ?? {}) },
|
|
148
150
|
},
|
|
149
151
|
presets: presets ?? [
|
|
150
152
|
presetRemToPx,
|
package/lib/build/vuetify.ts
CHANGED
|
@@ -8,6 +8,8 @@ import 'vuetify/styles'
|
|
|
8
8
|
import 'virtual:uno.css'
|
|
9
9
|
// CSS patches for Vuetify quirks not expressible via theme/defaults.
|
|
10
10
|
import './vuetify-overrides.css'
|
|
11
|
+
// Inter + `--v-font-body`, so every app gets the platform font.
|
|
12
|
+
import './fonts.css'
|
|
11
13
|
|
|
12
14
|
/** ANT platform light theme colors — exported for apps that need to reference them in `themes` overrides (e.g. when adding a dark theme). */
|
|
13
15
|
export const ANT_COLORS = {
|
|
@@ -120,8 +122,9 @@ export const ANT_DEFAULTS: VuetifyOptions['defaults'] = {
|
|
|
120
122
|
VBtnGroup: {
|
|
121
123
|
rounded: 'xl',
|
|
122
124
|
},
|
|
125
|
+
// Chips are pills, like every badge in the shell; `xl` (24px) read as squarer on tall chips.
|
|
123
126
|
VChip: {
|
|
124
|
-
rounded: '
|
|
127
|
+
rounded: 'pill',
|
|
125
128
|
},
|
|
126
129
|
// Form fields use `lg` (8px) — closest Vuetify scale to the 10px target shared
|
|
127
130
|
// with the storefront mockups. `xl` (24px) is reserved for cards/buttons/chips
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@antcde/component-library",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.35-rc.1",
|
|
5
5
|
"description": "Helper to use ant components in Vue 3",
|
|
6
6
|
"author": "CollaborAll",
|
|
7
7
|
"exports": {
|
|
@@ -27,6 +27,7 @@
|
|
|
27
27
|
"import": "./lib/build/vuetify.ts"
|
|
28
28
|
},
|
|
29
29
|
"./build/layer-order.css": "./lib/build/layer-order.css",
|
|
30
|
+
"./build/fonts.css": "./lib/build/fonts.css",
|
|
30
31
|
"./test": {
|
|
31
32
|
"import": "./lib/test/index.ts"
|
|
32
33
|
},
|
|
@@ -53,24 +54,12 @@
|
|
|
53
54
|
"./test/createTestRouter": {
|
|
54
55
|
"import": "./lib/test/createTestRouter.ts"
|
|
55
56
|
},
|
|
56
|
-
"./lib/ForgeViewer": {
|
|
57
|
-
"import": "./lib/ForgeViewer/index.ts"
|
|
58
|
-
},
|
|
59
|
-
"./lib/ForgeViewer/*": {
|
|
60
|
-
"import": "./lib/ForgeViewer/*"
|
|
61
|
-
},
|
|
62
57
|
"./lib/PdfViewer": {
|
|
63
58
|
"import": "./lib/PdfViewer/index.ts"
|
|
64
59
|
},
|
|
65
60
|
"./lib/PdfViewer/*": {
|
|
66
61
|
"import": "./lib/PdfViewer/*"
|
|
67
62
|
},
|
|
68
|
-
"./lib/GisViewer": {
|
|
69
|
-
"import": "./lib/GisViewer/index.ts"
|
|
70
|
-
},
|
|
71
|
-
"./lib/GisViewer/*": {
|
|
72
|
-
"import": "./lib/GisViewer/*"
|
|
73
|
-
},
|
|
74
63
|
"./lib/TableViewer": {
|
|
75
64
|
"import": "./lib/TableViewer/index.ts"
|
|
76
65
|
},
|
|
@@ -110,7 +99,7 @@
|
|
|
110
99
|
"build:safelist": "vite-node lib/build/genSafelist.mjs"
|
|
111
100
|
},
|
|
112
101
|
"peerDependencies": {
|
|
113
|
-
"@antcde/connect-ts": ">=0.
|
|
102
|
+
"@antcde/connect-ts": ">=0.6.0",
|
|
114
103
|
"@antcde/vue-utils": ">=0.2.0",
|
|
115
104
|
"@iconify/vue": ">=5.0.0",
|
|
116
105
|
"@intlify/unplugin-vue-i18n": ">=11.0.0",
|
|
@@ -190,49 +179,49 @@
|
|
|
190
179
|
}
|
|
191
180
|
},
|
|
192
181
|
"dependencies": {
|
|
193
|
-
"@
|
|
182
|
+
"@fontsource-variable/inter": "^5.3.0",
|
|
194
183
|
"@mdi/font": "^7.4.47",
|
|
195
|
-
"@tiptap/extension-link": "^3.31.
|
|
196
|
-
"@tiptap/extension-mention": "^3.31.
|
|
197
|
-
"@tiptap/extension-placeholder": "^3.31.
|
|
198
|
-
"@tiptap/starter-kit": "^3.31.
|
|
199
|
-
"@tiptap/suggestion": "^3.31.
|
|
200
|
-
"@tiptap/vue-3": "^3.31.
|
|
184
|
+
"@tiptap/extension-link": "^3.31.4",
|
|
185
|
+
"@tiptap/extension-mention": "^3.31.4",
|
|
186
|
+
"@tiptap/extension-placeholder": "^3.31.4",
|
|
187
|
+
"@tiptap/starter-kit": "^3.31.4",
|
|
188
|
+
"@tiptap/suggestion": "^3.31.4",
|
|
189
|
+
"@tiptap/vue-3": "^3.31.4",
|
|
201
190
|
"@vue-flow/background": "^1.3.2",
|
|
202
191
|
"@vue-flow/core": "^1.48.2",
|
|
203
192
|
"@vue-flow/minimap": "^1.5.4",
|
|
204
193
|
"@vueuse/core": "^14.4.0",
|
|
205
|
-
"pdfjs-dist": "^6.
|
|
194
|
+
"pdfjs-dist": "^6.4.299",
|
|
206
195
|
"qs": "^6.16.0",
|
|
207
|
-
"sanitize-html": "^2.
|
|
208
|
-
"vue-i18n": "^11.4.
|
|
196
|
+
"sanitize-html": "^2.18.0",
|
|
197
|
+
"vue-i18n": "^11.4.14"
|
|
209
198
|
},
|
|
210
199
|
"devDependencies": {
|
|
211
|
-
"@antcde/connect-ts": "0.4.
|
|
212
|
-
"@antcde/vue-utils": "0.2.
|
|
200
|
+
"@antcde/connect-ts": "0.4.37-rc.1",
|
|
201
|
+
"@antcde/vue-utils": "0.2.32-rc.1",
|
|
213
202
|
"@iconify-json/mdi": "^1.2.3",
|
|
214
203
|
"@iconify/vue": "^5.0.3",
|
|
215
204
|
"@intlify/unplugin-vue-i18n": "^11.2.5",
|
|
216
205
|
"@mdi/font": "^7.2.96",
|
|
217
206
|
"@tsconfig/node22": "^22.0.6",
|
|
218
|
-
"@types/node": "^22.20.
|
|
207
|
+
"@types/node": "^22.20.5",
|
|
219
208
|
"@types/qs": "^6.15.1",
|
|
220
|
-
"@vitejs/plugin-vue": "^6.0.
|
|
221
|
-
"@vue/language-core": "^3.3.
|
|
209
|
+
"@vitejs/plugin-vue": "^6.0.10",
|
|
210
|
+
"@vue/language-core": "^3.3.13",
|
|
222
211
|
"@vue/test-utils": "^2.5.1",
|
|
223
212
|
"@vue/tsconfig": "^0.9.1",
|
|
224
|
-
"happy-dom": "^20.14.
|
|
213
|
+
"happy-dom": "^20.14.6",
|
|
225
214
|
"pinia": "^3.0.4",
|
|
226
|
-
"sass": "^1.
|
|
215
|
+
"sass": "^1.105.1",
|
|
227
216
|
"typescript": "~6.0.3",
|
|
228
217
|
"unplugin-icons": "^23.0.1",
|
|
229
|
-
"vite": "^8.3.
|
|
218
|
+
"vite": "^8.3.4",
|
|
230
219
|
"vite-node": "^6.0.0",
|
|
231
220
|
"vite-plugin-css-injected-by-js": "^5.0.2",
|
|
232
|
-
"vite-plugin-dts": "^5.1.
|
|
221
|
+
"vite-plugin-dts": "^5.1.2",
|
|
233
222
|
"vite-plugin-vuetify": "^2.1.3",
|
|
234
|
-
"vitest": "^5.0.
|
|
235
|
-
"vue": "^3.5.
|
|
236
|
-
"vue-tsc": "^3.3.
|
|
223
|
+
"vitest": "^5.0.4",
|
|
224
|
+
"vue": "^3.5.44",
|
|
225
|
+
"vue-tsc": "^3.3.13"
|
|
237
226
|
}
|
|
238
227
|
}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
<script lang="ts" setup>
|
|
2
|
-
import type { ApplicationProps } from './useForgeViewer'
|
|
3
|
-
import { useAntI18n } from '@antcde/vue-utils'
|
|
4
|
-
import { computed, onMounted, onUnmounted } from 'vue'
|
|
5
|
-
|
|
6
|
-
const { viewer, client } = defineProps<ApplicationProps>()
|
|
7
|
-
const { t } = useAntI18n(client)
|
|
8
|
-
const showErrorDialog = computed(() => viewer.isLoading.value === null)
|
|
9
|
-
|
|
10
|
-
// handle resize evnet using resize observer
|
|
11
|
-
const resizeObserver = new ResizeObserver(() => viewer.resize())
|
|
12
|
-
|
|
13
|
-
onMounted(() => {
|
|
14
|
-
if (viewer.container.value) {
|
|
15
|
-
resizeObserver.observe(viewer.container.value)
|
|
16
|
-
}
|
|
17
|
-
})
|
|
18
|
-
|
|
19
|
-
onUnmounted(() => {
|
|
20
|
-
if (viewer.container.value) {
|
|
21
|
-
resizeObserver.unobserve(viewer.container.value)
|
|
22
|
-
}
|
|
23
|
-
})
|
|
24
|
-
</script>
|
|
25
|
-
|
|
26
|
-
<template>
|
|
27
|
-
<div class="relative w-full h-full">
|
|
28
|
-
<div
|
|
29
|
-
:ref="viewer.container"
|
|
30
|
-
class="relative w-full h-full"
|
|
31
|
-
:class="{ 'opacity-30 transition-opacity duration-700': viewer.isLoading.value }"
|
|
32
|
-
/>
|
|
33
|
-
<div v-if="viewer.isLoading.value === true" class="absolute items-center justify-center inset-0 flex z-1">
|
|
34
|
-
<div class="w-10 h-10 rounded-full border-4 border-black/10 border-l-black animate-spin" />
|
|
35
|
-
</div>
|
|
36
|
-
<v-dialog v-model="showErrorDialog" persistent width="500">
|
|
37
|
-
<v-card
|
|
38
|
-
:title="t('forgeViewer.errorTitle')"
|
|
39
|
-
:text="t('forgeViewer.errorDescription')"
|
|
40
|
-
/>
|
|
41
|
-
</v-dialog>
|
|
42
|
-
</div>
|
|
43
|
-
</template>
|
package/lib/ForgeViewer/index.ts
DELETED