@antcde/component-library 0.1.25-rc.9 → 0.1.26-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/README.md +2 -1
- package/dist/build/uno.js +40 -1
- package/dist/build/uno.safelist.d.ts +10 -0
- package/dist/build/uno.safelist.js +52 -0
- package/dist/build/uno.shortcuts.d.ts +27 -0
- package/dist/build/uno.shortcuts.js +209 -0
- package/dist/index.js +10695 -9459
- package/dist/test/vitest.js +3 -0
- package/dist/types/{src/components → components}/AntTourZone/_TourInfoCard.vue.d.ts +3 -2
- package/dist/types/components/AntTourZone/_TourRing.vue.d.ts +16 -0
- package/dist/types/{src/components → components}/AntTourZone/index.vue.d.ts +8 -16
- package/dist/types/components/BaseAntButton.vue.d.ts +9 -0
- package/dist/types/components/BaseAntCard.vue.d.ts +28 -0
- package/dist/types/components/BaseAntCreateCard.vue.d.ts +7 -0
- package/dist/types/{src/components → components}/BaseAntDatePicker.vue.d.ts +3 -2
- package/dist/types/components/BaseAntInput.types.d.ts +111 -0
- package/dist/types/components/BaseAntInput.vue.d.ts +44 -0
- package/dist/types/components/BaseAntLoading.vue.d.ts +3 -0
- package/dist/types/{src/components → components}/BaseAppCard/_BaseAppCardHint.vue.d.ts +2 -1
- package/dist/types/components/BaseAppCard/_BaseAppCardMedia.vue.d.ts +23 -0
- package/dist/types/components/BaseAppCard/_BaseAppCardTitle.vue.d.ts +6 -0
- package/dist/types/{src/components → components}/BaseAppCard/_BaseAppCardToolbar.vue.d.ts +3 -2
- package/dist/types/components/BaseAppCard/_BaseAppCardUpdate.vue.d.ts +9 -0
- package/dist/types/{src/components → components}/BaseAppCard/index.vue.d.ts +9 -13
- package/dist/types/components/BaseAppCardSkeleton.vue.d.ts +14 -0
- package/dist/types/{src/components → components}/BaseClickableIcon.vue.d.ts +2 -1
- package/dist/types/{src/components → components}/BaseConfirmDialog.vue.d.ts +7 -11
- package/dist/types/components/BaseDeleteDialog.vue.d.ts +43 -0
- package/dist/types/{src/components → components}/BaseDialog.vue.d.ts +7 -11
- package/dist/types/{src/components → components}/BaseLimitedButton.vue.d.ts +8 -12
- package/dist/types/{src/components → components}/BaseResizePanel.vue.d.ts +16 -19
- package/dist/types/{src/components → components}/BulkLabelsMenu.vue.d.ts +10 -14
- package/dist/types/{src/components → components}/DmsFilePicker/index.vue.d.ts +6 -7
- package/dist/types/{src/components → components}/FilePreviewContent/_PreviewDetails.vue.d.ts +3 -2
- package/dist/types/{src/components → components}/FilePreviewContent/_PreviewMeta.vue.d.ts +2 -1
- package/dist/types/{src/components → components}/FilePreviewContent/_PreviewUsages.vue.d.ts +2 -1
- package/dist/types/{src/components → components}/FilePreviewContent/index.vue.d.ts +11 -15
- package/dist/types/components/FilePreviewWindow/index.vue.d.ts +40 -0
- package/dist/types/components/FlowWindow/index.vue.d.ts +28 -0
- package/dist/types/components/FlowWindowContent/index.vue.d.ts +26 -0
- package/dist/types/components/GlobalLabelBadge.vue.d.ts +12 -0
- package/dist/types/{src/components → components}/RBAC/Permissions/PermissionCard.vue.d.ts +2 -1
- package/dist/types/components/RBAC/Permissions/PermissionsGroups.vue.d.ts +14 -0
- package/dist/types/{src/components → components}/RichTextEditor/_MentionPanel.vue.d.ts +3 -2
- package/dist/types/components/RichTextEditor/_Toolbar.vue.d.ts +7 -0
- package/dist/types/{src/components → components}/RichTextEditor/index.vue.d.ts +6 -6
- package/dist/types/{src/components → components}/StackedLabels/_LabelsMenuCard.vue.d.ts +3 -2
- package/dist/types/{src/components → components}/StackedLabels/index.vue.d.ts +3 -2
- package/dist/types/{src/components → components}/TasksFlow/components/_FlowBreadcrumb.vue.d.ts +2 -1
- package/dist/types/components/TasksFlow/components/_FlowEdgeConditionBooleanMode.vue.d.ts +10 -0
- package/dist/types/components/TasksFlow/components/_FlowEdgeConditionForm.vue.d.ts +27 -0
- package/dist/types/components/TasksFlow/components/_FlowEdgeConditionRow.vue.d.ts +13 -0
- package/dist/types/components/TasksFlow/components/_FlowEdgeConditionsDialog.vue.d.ts +14 -0
- package/dist/types/{src/components → components}/TasksFlow/components/_FlowEdgeDeleteDialog.vue.d.ts +4 -3
- package/dist/types/{src/components → components}/TasksFlow/components/_FlowEdgeLagMenu.vue.d.ts +5 -3
- package/dist/types/{src/components → components}/TasksFlow/components/_FlowLifecycleBar.vue.d.ts +3 -2
- package/dist/types/components/TasksFlow/components/_FlowSearch.vue.d.ts +6 -0
- package/dist/types/components/TasksFlow/components/_FlowStats.vue.d.ts +6 -0
- package/dist/types/{src/components → components}/TasksFlow/components/_FlowStructureTree.vue.d.ts +6 -6
- package/dist/types/{src/components → components}/TasksFlow/components/_FlowToolbar.vue.d.ts +3 -2
- package/dist/types/{src/components → components}/TasksFlow/components/_FlowTriggerMenu.vue.d.ts +2 -1
- package/dist/types/{src/components → components}/TasksFlow/components/_FlowVersionBar.vue.d.ts +2 -1
- package/dist/types/{src/components → components}/TasksFlow/components/_InsertTemplateDialog.vue.d.ts +7 -5
- package/dist/types/{src/components → components}/TasksFlow/components/_SubflowPanel.vue.d.ts +3 -2
- package/dist/types/{src/components → components}/TasksFlow/components/_VersionDiffView.vue.d.ts +5 -3
- package/dist/types/{src/components → components}/TasksFlow/components/_VersionPublishDialog.vue.d.ts +5 -3
- package/dist/types/components/TasksFlow/components/_dropzoneBackground.vue.d.ts +13 -0
- package/dist/types/components/TasksFlow/components/_flowEdge.vue.d.ts +7 -0
- package/dist/types/{src/components → components}/TasksFlow/components/_flowEditor.vue.d.ts +3 -2
- package/dist/types/components/TasksFlow/components/nodes/_DurationEditor.vue.d.ts +30 -0
- package/dist/types/{src/components → components}/TasksFlow/components/nodes/_NodeContextMenu.vue.d.ts +5 -3
- package/dist/types/components/TasksFlow/components/nodes/_NodeMeta.vue.d.ts +15 -0
- package/dist/types/components/TasksFlow/components/nodes/_UserPicker.vue.d.ts +29 -0
- package/dist/types/{src/components → components}/TasksFlow/components/nodes/_endpointNode.vue.d.ts +2 -1
- package/dist/types/components/TasksFlow/components/nodes/_swimlaneNode.vue.d.ts +7 -0
- package/dist/types/{src/components → components}/TasksFlow/components/nodes/_taskNode.vue.d.ts +2 -1
- package/dist/types/{src/components → components}/TasksFlow/components/nodes/_triggerNode.vue.d.ts +2 -1
- package/dist/types/components/TasksFlow/composables/__tests__/useTaskFlowDragDrop.spec.d.ts +1 -0
- package/dist/types/components/TasksFlow/composables/useEdgeConditionTables.d.ts +228 -0
- package/dist/types/components/TasksFlow/composables/useFlowEdgeConditionState.d.ts +21 -0
- package/dist/types/{src/components → components}/TasksFlow/composables/useTaskFlow.d.ts +3 -3
- package/dist/types/{src/components → components}/TasksFlow/composables/useTaskFlowEdgeConditions.d.ts +2 -2
- package/dist/types/{src/components → components}/TasksFlow/composables/useTaskFlowEdges.d.ts +3 -3
- package/dist/types/{src/components → components}/TasksFlow/index.vue.d.ts +3 -2
- package/dist/types/components/TasksFlow/utils/conditionOperators.d.ts +3 -0
- package/dist/types/{src/components → components}/UnifiedWindow/_WindowPresetMenu.vue.d.ts +2 -1
- package/dist/types/{src/components → components}/UnifiedWindow/_WindowTabs.vue.d.ts +2 -1
- package/dist/types/{src/components → components}/UnifiedWindow/index.vue.d.ts +12 -19
- package/dist/types/{src/components → components}/VersionPublishDialog.vue.d.ts +5 -3
- package/dist/types/components/_BaseAntInputField.vue.d.ts +33 -0
- package/dist/types/components/_BaseAntInputLabel.vue.d.ts +29 -0
- package/dist/types/components/form/AntActionMenu.vue.d.ts +30 -0
- package/dist/types/components/form/AntCheckboxCards.vue.d.ts +47 -0
- package/dist/types/components/form/AntDialogShell.vue.d.ts +66 -0
- package/dist/types/components/form/AntField.vue.d.ts +57 -0
- package/dist/types/components/form/AntFilterChips.types.d.ts +12 -0
- package/dist/types/components/form/AntFilterChips.vue.d.ts +31 -0
- package/dist/types/components/form/AntFilterSelect.types.d.ts +13 -0
- package/dist/types/components/form/AntFilterSelect.vue.d.ts +26 -0
- package/dist/types/components/form/AntHintBanner.vue.d.ts +36 -0
- package/dist/types/components/form/AntHintTip.vue.d.ts +24 -0
- package/dist/types/components/form/AntInput.vue.d.ts +98 -0
- package/dist/types/components/form/AntNumberField.vue.d.ts +32 -0
- package/dist/types/components/form/AntOptionPicker.types.d.ts +19 -0
- package/dist/types/components/form/AntOptionPicker.vue.d.ts +46 -0
- package/dist/types/components/form/AntPanelSection.vue.d.ts +34 -0
- package/dist/types/components/form/AntRadioCards.vue.d.ts +54 -0
- package/dist/types/components/form/AntSaveBar.vue.d.ts +70 -0
- package/dist/types/components/form/AntSearchField.vue.d.ts +32 -0
- package/dist/types/components/form/AntSectionCard.vue.d.ts +47 -0
- package/dist/types/components/form/AntSelect.vue.d.ts +79 -0
- package/dist/types/components/form/AntStatusPill.vue.d.ts +38 -0
- package/dist/types/components/form/AntToggle.vue.d.ts +30 -0
- package/dist/types/components/useResizePanel.d.ts +38 -0
- package/dist/types/index.d.ts +79 -0
- package/lib/PdfViewer/usePdfDocument.ts +49 -5
- package/lib/build/genSafelist.mjs +135 -0
- package/lib/build/qualifyIcon.ts +28 -0
- package/lib/build/uno.safelist.ts +52 -0
- package/lib/build/uno.shortcuts.ts +235 -0
- package/lib/build/uno.ts +41 -1
- package/lib/build/vuetify.ts +3 -1
- package/lib/test/mockVueRouter.ts +41 -1
- package/lib/test/vitest.ts +3 -0
- package/package.json +38 -35
- package/dist/types/src/components/AntTourZone/_TourRing.vue.d.ts +0 -15
- package/dist/types/src/components/BaseAntButton.vue.d.ts +0 -8
- package/dist/types/src/components/BaseAntCard.vue.d.ts +0 -30
- package/dist/types/src/components/BaseAntCreateCard.vue.d.ts +0 -6
- package/dist/types/src/components/BaseAntInput.vue.d.ts +0 -124
- package/dist/types/src/components/BaseAntLoading.vue.d.ts +0 -2
- package/dist/types/src/components/BaseAppCard/_BaseAppCardMedia.vue.d.ts +0 -27
- package/dist/types/src/components/BaseAppCard/_BaseAppCardTitle.vue.d.ts +0 -5
- package/dist/types/src/components/BaseAppCard/_BaseAppCardUpdate.vue.d.ts +0 -8
- package/dist/types/src/components/BaseAppCardSkeleton.vue.d.ts +0 -7
- package/dist/types/src/components/BaseDeleteDialog.vue.d.ts +0 -48
- package/dist/types/src/components/FlowWindowContent/index.vue.d.ts +0 -55
- package/dist/types/src/components/GlobalLabelBadge.vue.d.ts +0 -11
- package/dist/types/src/components/RichTextEditor/_Toolbar.vue.d.ts +0 -6
- package/dist/types/src/components/TasksFlow/components/_FlowEdgeConditionsDialog.vue.d.ts +0 -10
- package/dist/types/src/components/TasksFlow/components/_FlowSearch.vue.d.ts +0 -7
- package/dist/types/src/components/TasksFlow/components/_FlowStats.vue.d.ts +0 -5
- package/dist/types/src/components/TasksFlow/components/_dropzoneBackground.vue.d.ts +0 -17
- package/dist/types/src/components/TasksFlow/components/_flowEdge.vue.d.ts +0 -9
- package/dist/types/src/components/TasksFlow/components/nodes/_DurationEditor.vue.d.ts +0 -33
- package/dist/types/src/components/TasksFlow/components/nodes/_NodeMeta.vue.d.ts +0 -14
- package/dist/types/src/components/TasksFlow/components/nodes/_UserPicker.vue.d.ts +0 -32
- package/dist/types/src/components/TasksFlow/components/nodes/_swimlaneNode.vue.d.ts +0 -6
- package/dist/types/src/components/_BaseAntInputLabel.vue.d.ts +0 -27
- package/dist/types/src/index.d.ts +0 -39
- /package/dist/types/{src/components → components}/DmsFilePicker/composables/usePickerNavigation.d.ts +0 -0
- /package/dist/types/{src/components → components}/DmsFilePicker/composables/usePickerUpload.d.ts +0 -0
- /package/dist/types/{src/components → components}/DmsFilePicker/utils/fileFormatting.d.ts +0 -0
- /package/dist/types/{src/components → components}/FilePreviewContent/fileFormat.d.ts +0 -0
- /package/dist/types/{src/components → components}/FilePreviewContent/types.d.ts +0 -0
- /package/dist/types/{src/components → components}/FilePreviewContent/usePreviewDetails.d.ts +0 -0
- /package/dist/types/{src/components → components}/RichTextEditor/_useInlineEdit.d.ts +0 -0
- /package/dist/types/{src/components → components}/RichTextEditor/_useMentionPicker.d.ts +0 -0
- /package/dist/types/{src/components → components}/TasksFlow/components/nodes/useTaskNodeState.d.ts +0 -0
- /package/dist/types/{src/components → components}/TasksFlow/composables/_layoutEngine.d.ts +0 -0
- /package/dist/types/{src/components → components}/TasksFlow/composables/useAutoLayout.d.ts +0 -0
- /package/dist/types/{src/components → components}/TasksFlow/composables/useCriticalPath.d.ts +0 -0
- /package/dist/types/{src/components → components}/TasksFlow/composables/useFlowAutoLayout.d.ts +0 -0
- /package/dist/types/{src/components → components}/TasksFlow/composables/useFlowCache.d.ts +0 -0
- /package/dist/types/{src/components → components}/TasksFlow/composables/useFlowCrud.d.ts +0 -0
- /package/dist/types/{src/components → components}/TasksFlow/composables/useFlowDisplayElements.d.ts +0 -0
- /package/dist/types/{src/components → components}/TasksFlow/composables/useFlowEditor.d.ts +0 -0
- /package/dist/types/{src/components → components}/TasksFlow/composables/useFlowEndpoints.d.ts +0 -0
- /package/dist/types/{src/components → components}/TasksFlow/composables/useFlowFetch.d.ts +0 -0
- /package/dist/types/{src/components → components}/TasksFlow/composables/useFlowKeyboard.d.ts +0 -0
- /package/dist/types/{src/components → components}/TasksFlow/composables/useFlowLifecycle.d.ts +0 -0
- /package/dist/types/{src/components → components}/TasksFlow/composables/useFlowNotifications.d.ts +0 -0
- /package/dist/types/{src/components → components}/TasksFlow/composables/useFlowOperations.d.ts +0 -0
- /package/dist/types/{src/components → components}/TasksFlow/composables/useFlowRealtime.d.ts +0 -0
- /package/dist/types/{src/components → components}/TasksFlow/composables/useFlowSearch.d.ts +0 -0
- /package/dist/types/{src/components → components}/TasksFlow/composables/useFlowStructureTree.d.ts +0 -0
- /package/dist/types/{src/components → components}/TasksFlow/composables/useFlowSubflows.d.ts +0 -0
- /package/dist/types/{src/components → components}/TasksFlow/composables/useFlowToolbarDrag.d.ts +0 -0
- /package/dist/types/{src/components → components}/TasksFlow/composables/useFlowUsers.d.ts +0 -0
- /package/dist/types/{src/components → components}/TasksFlow/composables/useFlowViewport.d.ts +0 -0
- /package/dist/types/{src/components → components}/TasksFlow/composables/useSwimlaneLayout.d.ts +0 -0
- /package/dist/types/{src/components → components}/TasksFlow/composables/useTaskFlowDragDrop.d.ts +0 -0
- /package/dist/types/{src/components → components}/TasksFlow/composables/useTaskFlowMappers.d.ts +0 -0
- /package/dist/types/{src/components → components}/TasksFlow/composables/useTaskFlowTypes.d.ts +0 -0
- /package/dist/types/{src/components → components}/TasksFlow/composables/useTemplateVersioning.d.ts +0 -0
- /package/dist/types/{src/components → components}/TasksFlow/composables/useTemplateVersioningState.d.ts +0 -0
- /package/dist/types/{src/components → components}/TasksFlow/composables/useTriggerExecution.d.ts +0 -0
- /package/dist/types/{src/components → components}/UnifiedWindow/types.d.ts +0 -0
- /package/dist/types/{src/components → components}/UnifiedWindow/useNativeFullscreen.d.ts +0 -0
- /package/dist/types/{src/components → components}/UnifiedWindow/useWindowDrag.d.ts +0 -0
|
@@ -3,9 +3,10 @@ type __VLS_Props = {
|
|
|
3
3
|
currentPreset?: WindowSizePreset | null;
|
|
4
4
|
isDark: boolean;
|
|
5
5
|
};
|
|
6
|
-
declare const
|
|
6
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
7
7
|
pick: (preset: WindowSizePreset) => any;
|
|
8
8
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
9
9
|
onPick?: ((preset: WindowSizePreset) => any) | undefined;
|
|
10
10
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
11
|
+
declare const _default: typeof __VLS_export;
|
|
11
12
|
export default _default;
|
|
@@ -4,7 +4,7 @@ type __VLS_Props = {
|
|
|
4
4
|
activeTab: number;
|
|
5
5
|
isDark: boolean;
|
|
6
6
|
};
|
|
7
|
-
declare const
|
|
7
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
8
8
|
selectTab: (index: number) => any;
|
|
9
9
|
closeTab: (index: number) => any;
|
|
10
10
|
detachTab: (index: number) => any;
|
|
@@ -13,4 +13,5 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
13
13
|
onCloseTab?: ((index: number) => any) | undefined;
|
|
14
14
|
onDetachTab?: ((index: number) => any) | undefined;
|
|
15
15
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
16
|
+
declare const _default: typeof __VLS_export;
|
|
16
17
|
export default _default;
|
|
@@ -11,21 +11,15 @@ type __VLS_Props = {
|
|
|
11
11
|
initialH?: number;
|
|
12
12
|
currentPreset?: WindowSizePreset | null;
|
|
13
13
|
};
|
|
14
|
-
declare
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
};
|
|
22
|
-
refs: {
|
|
23
|
-
windowEl: HTMLDivElement;
|
|
24
|
-
};
|
|
25
|
-
rootEl: HTMLDivElement;
|
|
14
|
+
declare var __VLS_15: {}, __VLS_34: {
|
|
15
|
+
width: number;
|
|
16
|
+
};
|
|
17
|
+
type __VLS_Slots = {} & {
|
|
18
|
+
toolbar?: (props: typeof __VLS_15) => any;
|
|
19
|
+
} & {
|
|
20
|
+
default?: (props: typeof __VLS_34) => any;
|
|
26
21
|
};
|
|
27
|
-
|
|
28
|
-
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
22
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {
|
|
29
23
|
x: import('vue').Ref<number, number>;
|
|
30
24
|
y: import('vue').Ref<number, number>;
|
|
31
25
|
w: import('vue').Ref<number, number>;
|
|
@@ -49,12 +43,11 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
|
49
43
|
onMinimize?: (() => any) | undefined;
|
|
50
44
|
onSetPreset?: ((preset: WindowSizePreset) => any) | undefined;
|
|
51
45
|
onUserGeometryChange?: (() => any) | undefined;
|
|
52
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
46
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
47
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
48
|
+
declare const _default: typeof __VLS_export;
|
|
56
49
|
export default _default;
|
|
57
|
-
type
|
|
50
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
58
51
|
new (): {
|
|
59
52
|
$slots: S;
|
|
60
53
|
};
|
|
@@ -11,14 +11,16 @@ type __VLS_Props = {
|
|
|
11
11
|
historyLabel?: string;
|
|
12
12
|
noSummaryLabel?: string;
|
|
13
13
|
};
|
|
14
|
-
type
|
|
14
|
+
type __VLS_ModelProps = {
|
|
15
15
|
modelValue: boolean;
|
|
16
|
-
}
|
|
17
|
-
|
|
16
|
+
};
|
|
17
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
18
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
18
19
|
"update:modelValue": (value: boolean) => any;
|
|
19
20
|
publish: (changeSummary: string) => any;
|
|
20
21
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
21
22
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
22
23
|
onPublish?: ((changeSummary: string) => any) | undefined;
|
|
23
24
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
25
|
+
declare const _default: typeof __VLS_export;
|
|
24
26
|
export default _default;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { BaseAntInputFieldProps } from './BaseAntInput.types';
|
|
2
|
+
type __VLS_Props = BaseAntInputFieldProps;
|
|
3
|
+
type __VLS_ModelProps = {
|
|
4
|
+
modelValue?: unknown;
|
|
5
|
+
};
|
|
6
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
7
|
+
declare var __VLS_43: {};
|
|
8
|
+
type __VLS_Slots = {} & {
|
|
9
|
+
input?: (props: typeof __VLS_43) => any;
|
|
10
|
+
};
|
|
11
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
12
|
+
"click:append-inner": (value: any) => any;
|
|
13
|
+
"click:prepend-inner": (value: any) => any;
|
|
14
|
+
"click:append": (value: any) => any;
|
|
15
|
+
"click:prepend": (value: any) => any;
|
|
16
|
+
"update:model-value": (value: any) => any;
|
|
17
|
+
"update:modelValue": (value: unknown) => any;
|
|
18
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
19
|
+
"onClick:append-inner"?: ((value: any) => any) | undefined;
|
|
20
|
+
"onClick:prepend-inner"?: ((value: any) => any) | undefined;
|
|
21
|
+
"onClick:append"?: ((value: any) => any) | undefined;
|
|
22
|
+
"onClick:prepend"?: ((value: any) => any) | undefined;
|
|
23
|
+
"onUpdate:model-value"?: ((value: any) => any) | undefined;
|
|
24
|
+
"onUpdate:modelValue"?: ((value: unknown) => any) | undefined;
|
|
25
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
26
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
27
|
+
declare const _default: typeof __VLS_export;
|
|
28
|
+
export default _default;
|
|
29
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
30
|
+
new (): {
|
|
31
|
+
$slots: S;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
label: string;
|
|
3
|
+
required?: boolean;
|
|
4
|
+
/**
|
|
5
|
+
* Text for the required marker's tooltip and screen-reader label. Pass this to
|
|
6
|
+
* keep the component off the host's translation keys; when omitted it falls
|
|
7
|
+
* back to `common.requiredField`, and to English if the host lacks that key.
|
|
8
|
+
*/
|
|
9
|
+
requiredLabel?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Id of the field this labels. Renders a real `<label for>`, which is what
|
|
12
|
+
* makes the visible text the field's accessible name — as a bare `<span>` it
|
|
13
|
+
* was decorative, and every field under it announced as unlabelled.
|
|
14
|
+
*/
|
|
15
|
+
inputId?: string;
|
|
16
|
+
};
|
|
17
|
+
declare var __VLS_11: {};
|
|
18
|
+
type __VLS_Slots = {} & {
|
|
19
|
+
append?: (props: typeof __VLS_11) => any;
|
|
20
|
+
};
|
|
21
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
22
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
23
|
+
declare const _default: typeof __VLS_export;
|
|
24
|
+
export default _default;
|
|
25
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
26
|
+
new (): {
|
|
27
|
+
$slots: S;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export interface ActionMenuItem {
|
|
2
|
+
value: string;
|
|
3
|
+
label: string;
|
|
4
|
+
icon?: string;
|
|
5
|
+
danger?: boolean;
|
|
6
|
+
/** Render a divider above this item (e.g. to set off a destructive action). */
|
|
7
|
+
divider?: boolean;
|
|
8
|
+
}
|
|
9
|
+
declare const _default: typeof __VLS_export;
|
|
10
|
+
export default _default;
|
|
11
|
+
declare const __VLS_export: __VLS_WithSlots<import('vue').DefineComponent<{
|
|
12
|
+
items: ActionMenuItem[];
|
|
13
|
+
triggerLabel: string;
|
|
14
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
15
|
+
select: (value: string) => any;
|
|
16
|
+
}, string, import('vue').PublicProps, Readonly<{
|
|
17
|
+
items: ActionMenuItem[];
|
|
18
|
+
triggerLabel: string;
|
|
19
|
+
}> & Readonly<{
|
|
20
|
+
onSelect?: ((value: string) => any) | undefined;
|
|
21
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
|
|
22
|
+
activator?: (props: {
|
|
23
|
+
props: any;
|
|
24
|
+
}) => any;
|
|
25
|
+
}>;
|
|
26
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
27
|
+
new (): {
|
|
28
|
+
$slots: S;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Multi-select card grid.
|
|
3
|
+
*
|
|
4
|
+
* Same construction as AntRadioCards; enforces a minimum of one selection.
|
|
5
|
+
*
|
|
6
|
+
* ── Which idiom is this? ──────────────────────────────────────────────────
|
|
7
|
+
* CURRENT. UnoCSS-first: native controls plus Vuetify only where it provides
|
|
8
|
+
* costly behaviour (overlay stack, popover anchoring, focus management).
|
|
9
|
+
* Owns no copy — every label arrives as a prop.
|
|
10
|
+
*
|
|
11
|
+
* The `BaseAnt*` components are the SUPERSEDED idiom: thin wrappers around
|
|
12
|
+
* Vuetify fields. Do not use them for new work, and do not mix the two in one
|
|
13
|
+
* form — the border weights and label treatments do not match.
|
|
14
|
+
* ─────────────────────────────────────────────────────────────────────────
|
|
15
|
+
*/
|
|
16
|
+
export interface CheckboxCardOption<V extends string> {
|
|
17
|
+
value: V;
|
|
18
|
+
label: string;
|
|
19
|
+
icon?: string;
|
|
20
|
+
description?: string;
|
|
21
|
+
}
|
|
22
|
+
declare const __VLS_export: <T extends string>(__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<{
|
|
23
|
+
props: import('vue').PublicProps & __VLS_PrettifyLocal<({
|
|
24
|
+
options: CheckboxCardOption<T>[];
|
|
25
|
+
columns?: number;
|
|
26
|
+
disabled?: boolean;
|
|
27
|
+
} & {
|
|
28
|
+
modelValue: T[];
|
|
29
|
+
}) & {
|
|
30
|
+
"onUpdate:modelValue"?: ((value: T[]) => any) | undefined;
|
|
31
|
+
}> & (typeof globalThis extends {
|
|
32
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
33
|
+
} ? P : {});
|
|
34
|
+
expose: (exposed: {}) => void;
|
|
35
|
+
attrs: any;
|
|
36
|
+
slots: {};
|
|
37
|
+
emit: (event: "update:modelValue", value: T[]) => void;
|
|
38
|
+
}>) => import('vue').VNode & {
|
|
39
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
40
|
+
};
|
|
41
|
+
declare const _default: typeof __VLS_export;
|
|
42
|
+
export default _default;
|
|
43
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
44
|
+
[K in keyof T]: T[K];
|
|
45
|
+
} : {
|
|
46
|
+
[K in keyof T as K]: T[K];
|
|
47
|
+
}) & {};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dialog chrome: header, body, footer.
|
|
3
|
+
*
|
|
4
|
+
* `v-dialog` for the overlay and focus stack only; all chrome inside is markup. Provides `headerLead`, `titleExtra`, `headerEnd`, `hint` and `actions` slots.
|
|
5
|
+
*
|
|
6
|
+
* ── Which idiom is this? ──────────────────────────────────────────────────
|
|
7
|
+
* CURRENT. UnoCSS-first: native controls plus Vuetify only where it provides
|
|
8
|
+
* costly behaviour (overlay stack, popover anchoring, focus management).
|
|
9
|
+
* Owns no copy — every label arrives as a prop.
|
|
10
|
+
*
|
|
11
|
+
* The `BaseAnt*` components are the SUPERSEDED idiom: thin wrappers around
|
|
12
|
+
* Vuetify fields. Do not use them for new work, and do not mix the two in one
|
|
13
|
+
* form — the border weights and label treatments do not match.
|
|
14
|
+
* ─────────────────────────────────────────────────────────────────────────
|
|
15
|
+
*/
|
|
16
|
+
type __VLS_Props = {
|
|
17
|
+
width?: number | string;
|
|
18
|
+
eyebrow?: string;
|
|
19
|
+
title?: string;
|
|
20
|
+
subtitle?: string;
|
|
21
|
+
persistent?: boolean;
|
|
22
|
+
busy?: boolean;
|
|
23
|
+
scrollable?: boolean;
|
|
24
|
+
bodyClass?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Accessible name for the close button.
|
|
27
|
+
*
|
|
28
|
+
* A shared component must not own a HOST translation key, so this is a prop.
|
|
29
|
+
* It falls back to the host's `system.buttons.close` when that key exists —
|
|
30
|
+
* `te()`-guarded, the same pattern `_BaseAntInputLabel.vue` uses — so every
|
|
31
|
+
* existing ant-os call site keeps its translation with no change, and an app
|
|
32
|
+
* without that key still gets a usable name instead of an empty one.
|
|
33
|
+
*/
|
|
34
|
+
closeLabel?: string;
|
|
35
|
+
};
|
|
36
|
+
type __VLS_ModelProps = {
|
|
37
|
+
modelValue: boolean;
|
|
38
|
+
};
|
|
39
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
40
|
+
declare var __VLS_8: {}, __VLS_10: {}, __VLS_12: {}, __VLS_19: {}, __VLS_21: {}, __VLS_23: {};
|
|
41
|
+
type __VLS_Slots = {} & {
|
|
42
|
+
headerLead?: (props: typeof __VLS_8) => any;
|
|
43
|
+
} & {
|
|
44
|
+
titleExtra?: (props: typeof __VLS_10) => any;
|
|
45
|
+
} & {
|
|
46
|
+
headerEnd?: (props: typeof __VLS_12) => any;
|
|
47
|
+
} & {
|
|
48
|
+
default?: (props: typeof __VLS_19) => any;
|
|
49
|
+
} & {
|
|
50
|
+
hint?: (props: typeof __VLS_21) => any;
|
|
51
|
+
} & {
|
|
52
|
+
actions?: (props: typeof __VLS_23) => any;
|
|
53
|
+
};
|
|
54
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
55
|
+
"update:modelValue": (value: boolean) => any;
|
|
56
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
57
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
58
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
59
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
60
|
+
declare const _default: typeof __VLS_export;
|
|
61
|
+
export default _default;
|
|
62
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
63
|
+
new (): {
|
|
64
|
+
$slots: S;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Label above a control, plus the one line underneath that explains or corrects it.
|
|
3
|
+
*
|
|
4
|
+
* The minimal-form building block: stack these `gap-5` (20px) inside a section.
|
|
5
|
+
* The label is 12px/600 in body tone with a red asterisk when required — never
|
|
6
|
+
* Vuetify's floating outlined label.
|
|
7
|
+
*
|
|
8
|
+
* Named because the pattern was hand-rolled in roughly thirty places across the
|
|
9
|
+
* store and the triggers app, each with slightly different spacing and a label
|
|
10
|
+
* that was 12px/500 at muted tone rather than 12px/600 at body tone.
|
|
11
|
+
*
|
|
12
|
+
* `error` wins over `hint` on the line below: a field that is wrong should say so
|
|
13
|
+
* where it would otherwise have been explaining itself.
|
|
14
|
+
*
|
|
15
|
+
* ── Which idiom is this? ──────────────────────────────────────────────────
|
|
16
|
+
* CURRENT. UnoCSS-first: native controls plus Vuetify only where it provides
|
|
17
|
+
* costly behaviour (overlay stack, popover anchoring, focus management).
|
|
18
|
+
* Owns no copy — every label arrives as a prop.
|
|
19
|
+
* ─────────────────────────────────────────────────────────────────────────
|
|
20
|
+
*/
|
|
21
|
+
type __VLS_Props = {
|
|
22
|
+
label?: string;
|
|
23
|
+
/** Renders the red asterisk. Does not itself validate anything. */
|
|
24
|
+
required?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Say "optional" beside the label, for a field a reader would otherwise assume
|
|
27
|
+
* is required.
|
|
28
|
+
*
|
|
29
|
+
* ⚠️ NOT the inverse of `required`, and deliberately not automatic. Most optional
|
|
30
|
+
* fields need no marking at all — the absence of an asterisk is enough. This is
|
|
31
|
+
* for the case where the surrounding form makes a field LOOK mandatory: a
|
|
32
|
+
* trigger's custom path sits beside a required HTTP method, and read as a pair
|
|
33
|
+
* the empty one reads as unfinished rather than as an override of a default that
|
|
34
|
+
* already works. Passed as a string so the copy stays with the caller.
|
|
35
|
+
*/
|
|
36
|
+
optionalLabel?: string;
|
|
37
|
+
/** Hover-only nuance for this one field. Section-wide guidance is `AntHintBanner`. */
|
|
38
|
+
tip?: string;
|
|
39
|
+
/** Shown instead of `hint`, in error tone. */
|
|
40
|
+
error?: string | null;
|
|
41
|
+
hint?: string | null;
|
|
42
|
+
};
|
|
43
|
+
declare var __VLS_1: {}, __VLS_8: {};
|
|
44
|
+
type __VLS_Slots = {} & {
|
|
45
|
+
label?: (props: typeof __VLS_1) => any;
|
|
46
|
+
} & {
|
|
47
|
+
default?: (props: typeof __VLS_8) => any;
|
|
48
|
+
};
|
|
49
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
50
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
51
|
+
declare const _default: typeof __VLS_export;
|
|
52
|
+
export default _default;
|
|
53
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
54
|
+
new (): {
|
|
55
|
+
$slots: S;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Option shape for `AntFilterChips`.
|
|
3
|
+
*
|
|
4
|
+
* Its own module because `AntFilterChips` is a `generic` <script setup> carrying
|
|
5
|
+
* `defineOptions()`, and that combination makes a top-level export illegal (TS1184).
|
|
6
|
+
*/
|
|
7
|
+
export interface FilterChipOption<T = string> {
|
|
8
|
+
value: T;
|
|
9
|
+
label: string;
|
|
10
|
+
/** Colour this chip in warning tone while unselected and its count is non-zero. */
|
|
11
|
+
attention?: boolean;
|
|
12
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { FilterChipOption } from './AntFilterChips.types';
|
|
2
|
+
declare const __VLS_export: <T extends string>(__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<{
|
|
3
|
+
props: import('vue').PublicProps & __VLS_PrettifyLocal<({
|
|
4
|
+
options: FilterChipOption<T>[];
|
|
5
|
+
/**
|
|
6
|
+
* Keyed by option value. A MISSING count renders no number at all, which is not
|
|
7
|
+
* the same as a count of 0 — an empty bucket and an uncounted one read differently.
|
|
8
|
+
*/
|
|
9
|
+
counts?: Partial<Record<T, number>>;
|
|
10
|
+
ariaLabel?: string;
|
|
11
|
+
} & {
|
|
12
|
+
modelValue: T;
|
|
13
|
+
}) & {
|
|
14
|
+
"onUpdate:modelValue"?: ((value: T) => any) | undefined;
|
|
15
|
+
}> & (typeof globalThis extends {
|
|
16
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
17
|
+
} ? P : {});
|
|
18
|
+
expose: (exposed: {}) => void;
|
|
19
|
+
attrs: any;
|
|
20
|
+
slots: {};
|
|
21
|
+
emit: (event: "update:modelValue", value: T) => void;
|
|
22
|
+
}>) => import('vue').VNode & {
|
|
23
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
24
|
+
};
|
|
25
|
+
declare const _default: typeof __VLS_export;
|
|
26
|
+
export default _default;
|
|
27
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
28
|
+
[K in keyof T]: T[K];
|
|
29
|
+
} : {
|
|
30
|
+
[K in keyof T as K]: T[K];
|
|
31
|
+
}) & {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Option shape for `AntFilterSelect`.
|
|
3
|
+
*
|
|
4
|
+
* Lives in its own module rather than in the component: `AntFilterSelect` needs
|
|
5
|
+
* `defineOptions()` to carry a component name through a `generic` <script setup>
|
|
6
|
+
* block, and that transform makes a top-level `export` inside the block illegal
|
|
7
|
+
* (TS1184). Siblings without `defineOptions` can export their option type inline.
|
|
8
|
+
*/
|
|
9
|
+
export interface FilterSelectOption<T = string> {
|
|
10
|
+
value: T;
|
|
11
|
+
title: string;
|
|
12
|
+
prependIcon?: string;
|
|
13
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { FilterSelectOption } from './AntFilterSelect.types';
|
|
2
|
+
declare const __VLS_export: <T extends string | number | null>(__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<{
|
|
3
|
+
props: import('vue').PublicProps & __VLS_PrettifyLocal<{
|
|
4
|
+
modelValue: T;
|
|
5
|
+
options: FilterSelectOption<T>[];
|
|
6
|
+
prependIcon: string;
|
|
7
|
+
labelPrefix: string;
|
|
8
|
+
} & {
|
|
9
|
+
"onUpdate:modelValue"?: ((value: T) => any) | undefined;
|
|
10
|
+
}> & (typeof globalThis extends {
|
|
11
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
12
|
+
} ? P : {});
|
|
13
|
+
expose: (exposed: {}) => void;
|
|
14
|
+
attrs: any;
|
|
15
|
+
slots: {};
|
|
16
|
+
emit: (evt: "update:modelValue", value: T) => void;
|
|
17
|
+
}>) => import('vue').VNode & {
|
|
18
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
19
|
+
};
|
|
20
|
+
declare const _default: typeof __VLS_export;
|
|
21
|
+
export default _default;
|
|
22
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
23
|
+
[K in keyof T]: T[K];
|
|
24
|
+
} : {
|
|
25
|
+
[K in keyof T as K]: T[K];
|
|
26
|
+
}) & {};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Always-on guidance at the top of a complex section.
|
|
3
|
+
*
|
|
4
|
+
* The design system's FIRST form rule: every complex screen or section opens with
|
|
5
|
+
* one of these, because "titles alone don't teach". A 6% primary wash, 12px
|
|
6
|
+
* radius, leading info glyph, 12.5px body text at 1.6 leading — deliberately not
|
|
7
|
+
* a semantic alert. It is not warning about anything; it says what the section is
|
|
8
|
+
* for, in plain language, before the fields start.
|
|
9
|
+
*
|
|
10
|
+
* Pairs with `AntField`'s `hint` (hover-only, one field's nuance). Use this one
|
|
11
|
+
* when the whole section needs explaining.
|
|
12
|
+
*
|
|
13
|
+
* ── Which idiom is this? ──────────────────────────────────────────────────
|
|
14
|
+
* CURRENT. UnoCSS-first: native controls plus Vuetify only where it provides
|
|
15
|
+
* costly behaviour (overlay stack, popover anchoring, focus management).
|
|
16
|
+
* Owns no copy — every label arrives as a prop.
|
|
17
|
+
* ─────────────────────────────────────────────────────────────────────────
|
|
18
|
+
*/
|
|
19
|
+
type __VLS_Props = {
|
|
20
|
+
/** The explanation. A full sentence naming the consequence, not a label. */
|
|
21
|
+
text?: string;
|
|
22
|
+
icon?: string;
|
|
23
|
+
};
|
|
24
|
+
declare var __VLS_6: {};
|
|
25
|
+
type __VLS_Slots = {} & {
|
|
26
|
+
default?: (props: typeof __VLS_6) => any;
|
|
27
|
+
};
|
|
28
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
29
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
30
|
+
declare const _default: typeof __VLS_export;
|
|
31
|
+
export default _default;
|
|
32
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
33
|
+
new (): {
|
|
34
|
+
$slots: S;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Small help tooltip.
|
|
3
|
+
*
|
|
4
|
+
* Text is passed in; the component owns no copy.
|
|
5
|
+
*
|
|
6
|
+
* ── Which idiom is this? ──────────────────────────────────────────────────
|
|
7
|
+
* CURRENT. UnoCSS-first: native controls plus Vuetify only where it provides
|
|
8
|
+
* costly behaviour (overlay stack, popover anchoring, focus management).
|
|
9
|
+
* Owns no copy — every label arrives as a prop.
|
|
10
|
+
*
|
|
11
|
+
* The `BaseAnt*` components are the SUPERSEDED idiom: thin wrappers around
|
|
12
|
+
* Vuetify fields. Do not use them for new work, and do not mix the two in one
|
|
13
|
+
* form — the border weights and label treatments do not match.
|
|
14
|
+
* ─────────────────────────────────────────────────────────────────────────
|
|
15
|
+
*/
|
|
16
|
+
type __VLS_Props = {
|
|
17
|
+
text: string;
|
|
18
|
+
icon?: string;
|
|
19
|
+
location?: 'top' | 'bottom' | 'start' | 'end';
|
|
20
|
+
size?: number | string;
|
|
21
|
+
};
|
|
22
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
23
|
+
declare const _default: typeof __VLS_export;
|
|
24
|
+
export default _default;
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Text or textarea field, with optional prefix and monospace.
|
|
3
|
+
*
|
|
4
|
+
* A `<label>` wrapper around a native input. Carries no floating label and no Vuetify field chrome.
|
|
5
|
+
*
|
|
6
|
+
* ── Geometry is from the design system ────────────────────────────────────
|
|
7
|
+
* 44px tall, 12px radius, 14px horizontal padding. Focus changes the BORDER
|
|
8
|
+
* COLOUR ONLY — the system is explicit that there is "never a blue glow" on an
|
|
9
|
+
* input except the search pill's deliberate 3px ring, and this shipped with
|
|
10
|
+
* `focus-within:ring-3` on every field. The 8px in the system's radii table is
|
|
11
|
+
* for Vuetify's own `v-text-field`; a bespoke input is 12px, the same step as
|
|
12
|
+
* the inner card and the pill input. Written as `rounded-[12px]`, NOT
|
|
13
|
+
* `rounded-xl` — `createAntUnoConfig` overrides `theme.radius.xl` to 24px, so
|
|
14
|
+
* `rounded-xl` rendered this 44px field as a full stadium.
|
|
15
|
+
*
|
|
16
|
+
* ── Which idiom is this? ──────────────────────────────────────────────────
|
|
17
|
+
* CURRENT. UnoCSS-first: native controls plus Vuetify only where it provides
|
|
18
|
+
* costly behaviour (overlay stack, popover anchoring, focus management).
|
|
19
|
+
* Owns no copy — every label arrives as a prop.
|
|
20
|
+
*
|
|
21
|
+
* The `BaseAnt*` components are the SUPERSEDED idiom: thin wrappers around
|
|
22
|
+
* Vuetify fields. Do not use them for new work, and do not mix the two in one
|
|
23
|
+
* form — the border weights and label treatments do not match.
|
|
24
|
+
* ─────────────────────────────────────────────────────────────────────────
|
|
25
|
+
*/
|
|
26
|
+
type __VLS_Props = {
|
|
27
|
+
multiline?: boolean;
|
|
28
|
+
rows?: number;
|
|
29
|
+
monospace?: boolean;
|
|
30
|
+
prefix?: string;
|
|
31
|
+
placeholder?: string;
|
|
32
|
+
error?: boolean;
|
|
33
|
+
disabled?: boolean;
|
|
34
|
+
maxLength?: number;
|
|
35
|
+
/**
|
|
36
|
+
* The native input type. `password` masks the value.
|
|
37
|
+
*
|
|
38
|
+
* ⚠️ **IT HAS TO BE A PROP.** The root of this component is the `<label>`, so a
|
|
39
|
+
* `type` written on the tag falls through onto the LABEL and the inner input stays
|
|
40
|
+
* `text` — silently. A secret-token field shipped that way: the value was never
|
|
41
|
+
* masked, so the reveal toggle it was paired with had nothing to toggle and read
|
|
42
|
+
* as a dead button. Ignored for `multiline`, which is a textarea.
|
|
43
|
+
*/
|
|
44
|
+
type?: 'text' | 'password' | 'email' | 'url';
|
|
45
|
+
/**
|
|
46
|
+
* Accessible name for the control.
|
|
47
|
+
*
|
|
48
|
+
* The wrapping `<label>` carries no text — callers render their own heading
|
|
49
|
+
* above the field — so without this the input is announced as just "edit text".
|
|
50
|
+
* Pass it whenever there is no visible label the control is associated with.
|
|
51
|
+
*
|
|
52
|
+
* ⚠️ ONE OF `ariaLabel`, `ariaLabelledby` OR `inputId` (paired with a `<label
|
|
53
|
+
* for>`) IS REQUIRED. Not enforced in the type only because a handful of call
|
|
54
|
+
* sites are named by their surroundings today; a field with none of the three
|
|
55
|
+
* has no accessible name at all, and `placeholder` is not one — it is a
|
|
56
|
+
* last-resort fallback that vanishes the moment the user types.
|
|
57
|
+
*/
|
|
58
|
+
ariaLabel?: string;
|
|
59
|
+
/**
|
|
60
|
+
* Space-separated ids of the elements that name this control — for the common
|
|
61
|
+
* case where the caller already renders a visible heading above the field and
|
|
62
|
+
* should not repeat it as an `aria-label`.
|
|
63
|
+
*
|
|
64
|
+
* Prefer this over `ariaLabel` when a visible label exists: two different
|
|
65
|
+
* strings for the same field is how a screen reader ends up announcing
|
|
66
|
+
* something the sighted user cannot see.
|
|
67
|
+
*/
|
|
68
|
+
ariaLabelledby?: string;
|
|
69
|
+
/**
|
|
70
|
+
* `id` for the native control, so a caller's own `<label for>` can point at it.
|
|
71
|
+
*
|
|
72
|
+
* The component's root IS a `<label>`, but an empty one contributes no text to
|
|
73
|
+
* the accessible name — a `for`-associated label is what actually names the
|
|
74
|
+
* control, and this is the only way to give it a target.
|
|
75
|
+
*/
|
|
76
|
+
inputId?: string;
|
|
77
|
+
};
|
|
78
|
+
type __VLS_ModelProps = {
|
|
79
|
+
modelValue?: string;
|
|
80
|
+
};
|
|
81
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
82
|
+
declare var __VLS_1: {};
|
|
83
|
+
type __VLS_Slots = {} & {
|
|
84
|
+
trailing?: (props: typeof __VLS_1) => any;
|
|
85
|
+
};
|
|
86
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
87
|
+
"update:modelValue": (value: string) => any;
|
|
88
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
89
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
90
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
91
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
92
|
+
declare const _default: typeof __VLS_export;
|
|
93
|
+
export default _default;
|
|
94
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
95
|
+
new (): {
|
|
96
|
+
$slots: S;
|
|
97
|
+
};
|
|
98
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Numeric field with optional prefix and suffix.
|
|
3
|
+
*
|
|
4
|
+
* Native `<input type="number">` in a bordered wrapper that takes focus styling via `focus-within`. Generalised from the store's price field.
|
|
5
|
+
*
|
|
6
|
+
* ── Which idiom is this? ──────────────────────────────────────────────────
|
|
7
|
+
* CURRENT. UnoCSS-first: native controls plus Vuetify only where it provides
|
|
8
|
+
* costly behaviour (overlay stack, popover anchoring, focus management).
|
|
9
|
+
* Owns no copy — every label arrives as a prop.
|
|
10
|
+
*
|
|
11
|
+
* The `BaseAnt*` components are the SUPERSEDED idiom: thin wrappers around
|
|
12
|
+
* Vuetify fields. Do not use them for new work, and do not mix the two in one
|
|
13
|
+
* form — the border weights and label treatments do not match.
|
|
14
|
+
* ─────────────────────────────────────────────────────────────────────────
|
|
15
|
+
*/
|
|
16
|
+
type __VLS_Props = {
|
|
17
|
+
label: string;
|
|
18
|
+
prefix?: string;
|
|
19
|
+
suffix?: string;
|
|
20
|
+
min?: number;
|
|
21
|
+
};
|
|
22
|
+
type __VLS_ModelProps = {
|
|
23
|
+
modelValue?: number | null;
|
|
24
|
+
};
|
|
25
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
26
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
27
|
+
"update:modelValue": (value: number | null) => any;
|
|
28
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
29
|
+
"onUpdate:modelValue"?: ((value: number | null) => any) | undefined;
|
|
30
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
31
|
+
declare const _default: typeof __VLS_export;
|
|
32
|
+
export default _default;
|