@antcde/component-library 0.1.32 → 0.1.33-rc.2

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.
@@ -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 { type UseResourceTrash, useResourceTrash } from './components/Usage/useResourceTrash';
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, AntColumnMapRow, AntDatasetFileSource, AntDatasetTableSource, AntDialogShell, AntField, AntFilterChips, AntFilterSelect, AntHintBanner, AntHintTip, AntInput, AntMultiSelect, AntNoticeAlert, AntNumberField, AntOptionPicker, AntPanelSection, AntPayloadFieldsEditor, AntRadioCards, AntResourceTile, AntRunScriptFields, AntSaveBar, AntScopePanel, AntSearchField, AntSectionCard, AntSelect, AntStatusPill, AntToggle, AntTourZone, AntTransformScriptFields, AntTriggerExecutionUser, BaseAntInput, BaseAppCard, BaseAppCardSkeleton, BaseClickableIcon, BaseDeleteDialog, BaseLimitedButton, BulkLabelsMenu, DmsFilePicker, FilePreviewContent, FlowWindowContent, GlobalLabelBadge, LabelsMenuCard, PermissionCard, ResourceTrash, RichTextEditor, StackedLabels, TaskFlow, UnifiedWindow, UsageActions, UsagePanel, VersionPublishDialog, };
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-md bg-ant-inset text-[11px] font-medium text-muted whitespace-nowrap cursor-pointer hover:bg-ant-hover'],
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,
@@ -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: 'xl',
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.32",
4
+ "version": "0.1.33-rc.2",
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.4.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,7 +179,7 @@
190
179
  }
191
180
  },
192
181
  "dependencies": {
193
- "@arcgis/core": "^4.34.8",
182
+ "@fontsource-variable/inter": "^5.3.0",
194
183
  "@mdi/font": "^7.4.47",
195
184
  "@tiptap/extension-link": "^3.31.3",
196
185
  "@tiptap/extension-mention": "^3.31.3",
@@ -208,8 +197,8 @@
208
197
  "vue-i18n": "^11.4.12"
209
198
  },
210
199
  "devDependencies": {
211
- "@antcde/connect-ts": "0.4.34",
212
- "@antcde/vue-utils": "0.2.29",
200
+ "@antcde/connect-ts": "0.4.35-rc.2",
201
+ "@antcde/vue-utils": "0.2.30-rc.2",
213
202
  "@iconify-json/mdi": "^1.2.3",
214
203
  "@iconify/vue": "^5.0.3",
215
204
  "@intlify/unplugin-vue-i18n": "^11.2.5",
@@ -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>
@@ -1,4 +0,0 @@
1
- import ForgeViewer from './ForgeViewer.vue'
2
- import { useForgeViewer } from './useForgeViewer'
3
-
4
- export { ForgeViewer, useForgeViewer }
@@ -1,6 +0,0 @@
1
- {
2
- "forgeViewer": {
3
- "errorTitle": "Fehler beim Laden des Viewers",
4
- "errorDescription": "Beim Laden des Viewers ist etwas schief gelaufen. Bitte wählen Sie ein anderes Projekt aus"
5
- }
6
- }
@@ -1,6 +0,0 @@
1
- {
2
- "forgeViewer": {
3
- "errorTitle": "Error Loading Viewer",
4
- "errorDescription": "Something went wrong while loading the viewer. Please select another project"
5
- }
6
- }
@@ -1,6 +0,0 @@
1
- {
2
- "forgeViewer": {
3
- "errorTitle": "Fout bij Laden van Viewer",
4
- "errorDescription": "Er is iets misgegaan bij het laden van de viewer. Selecteer alstublieft een ander project"
5
- }
6
- }