@winm/vue-workbench-ui 0.0.0-stage → 0.1.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.
Files changed (64) hide show
  1. package/README.md +54 -3
  2. package/dist/Toggle-DJwRG1Ev.js +387 -0
  3. package/dist/code-editor.css +189 -0
  4. package/dist/code-editor.d.ts +5 -0
  5. package/dist/code-editor.js +1272 -0
  6. package/dist/components/Badge.vue.d.ts +34 -0
  7. package/dist/components/BrandMark.vue.d.ts +6 -0
  8. package/dist/components/CodeEditor.vue.d.ts +32 -0
  9. package/dist/components/ConfirmationDialog.vue.d.ts +27 -0
  10. package/dist/components/ContextMenu.vue.d.ts +66 -0
  11. package/dist/components/CopyButton.vue.d.ts +35 -0
  12. package/dist/components/DataTable.vue.d.ts +87 -0
  13. package/dist/components/DatePicker.vue.d.ts +33 -0
  14. package/dist/components/DropdownMenu.vue.d.ts +88 -0
  15. package/dist/components/EmptyState.vue.d.ts +38 -0
  16. package/dist/components/ErrorBanner.vue.d.ts +30 -0
  17. package/dist/components/ExpandableCodeEditor.vue.d.ts +72 -0
  18. package/dist/components/Expander.vue.d.ts +75 -0
  19. package/dist/components/FilePicker.vue.d.ts +111 -0
  20. package/dist/components/Icon.vue.d.ts +8 -0
  21. package/dist/components/Ipv4Input.vue.d.ts +95 -0
  22. package/dist/components/KeyValueTable.vue.d.ts +96 -0
  23. package/dist/components/ModalDialog.vue.d.ts +75 -0
  24. package/dist/components/NumberInput.vue.d.ts +69 -0
  25. package/dist/components/Pagination.vue.d.ts +49 -0
  26. package/dist/components/PasswordInput.vue.d.ts +48 -0
  27. package/dist/components/PlaceholderInput.vue.d.ts +36 -0
  28. package/dist/components/PluginIcon.vue.d.ts +20 -0
  29. package/dist/components/Popover.vue.d.ts +91 -0
  30. package/dist/components/ProgressBar.vue.d.ts +46 -0
  31. package/dist/components/SearchInput.vue.d.ts +72 -0
  32. package/dist/components/SegmentedControl.vue.d.ts +45 -0
  33. package/dist/components/SliderInput.vue.d.ts +59 -0
  34. package/dist/components/StatusBadge.vue.d.ts +18 -0
  35. package/dist/components/SwitchField.vue.d.ts +38 -0
  36. package/dist/components/Tabs.vue.d.ts +51 -0
  37. package/dist/components/TextInput.vue.d.ts +120 -0
  38. package/dist/components/Toast.vue.d.ts +47 -0
  39. package/dist/components/Toggle.vue.d.ts +16 -0
  40. package/dist/components/Tooltip.vue.d.ts +32 -0
  41. package/dist/components/WorkbenchTabs.vue.d.ts +52 -0
  42. package/dist/components/flow/PanelResizer.vue.d.ts +23 -0
  43. package/dist/components/http/HttpJsonTree.vue.d.ts +6 -0
  44. package/dist/components/http/HttpJsonTreeNode.vue.d.ts +22 -0
  45. package/dist/composables/useClipboard.d.ts +23 -0
  46. package/dist/date-picker-range.d.ts +54 -0
  47. package/dist/date-picker.d.ts +31 -0
  48. package/dist/directives/tooltip.d.ts +32 -0
  49. package/dist/editors/languages.d.ts +10 -0
  50. package/dist/editors/script-completions.d.ts +23 -0
  51. package/dist/editors/script-linter.d.ts +7 -0
  52. package/dist/editors/theme.d.ts +3 -0
  53. package/dist/file-picker.d.ts +68 -0
  54. package/dist/index.d.ts +69 -0
  55. package/dist/index.js +6116 -0
  56. package/dist/media-icon.d.ts +5 -0
  57. package/dist/modal-enhancer.d.ts +28 -0
  58. package/dist/overlay-host.d.ts +2 -0
  59. package/dist/plugin.d.ts +22 -0
  60. package/dist/select-popup.d.ts +14 -0
  61. package/dist/style.css +2 -0
  62. package/dist/template-placeholders.d.ts +64 -0
  63. package/dist/ui-context.d.ts +18 -0
  64. package/package.json +71 -3
@@ -0,0 +1,111 @@
1
+ import { type FilePickerItem, type FilePickerMode, type FilePickerRejectItem, type FilePickerVariant } from "../file-picker";
2
+ /**
3
+ * 通用文件与文件夹选择组件(FilePicker):
4
+ * - 支持选择单个/多个文件、选择整个文件夹(保留相对路径),或同时支持两者(mode="both")
5
+ * - 支持拖拽文件与文件夹直接放入,自动递归解析目录层级
6
+ * - 内置 accept 类型校验、maxSize 体积校验、maxCount 数量限制、去重与可编辑已选清单
7
+ */
8
+ type __VLS_Props = {
9
+ /** 受控已选文件列表(v-model;未传时使用非受控内部状态) */
10
+ modelValue?: FilePickerItem[];
11
+ /** 选择模式:file(仅文件)/ directory(仅文件夹)/ both(文件与文件夹同时支持) */
12
+ mode?: FilePickerMode;
13
+ /** 外观形态:dropzone(拖拽上传区)/ compact(紧凑表单条) */
14
+ variant?: FilePickerVariant;
15
+ /** 是否允许多文件选择(mode="directory" 时始终为多文件) */
16
+ multiple?: boolean;
17
+ /** 允许的文件类型(与原生 accept 一致,如 ".csv,.json" 或 "image/*") */
18
+ accept?: string;
19
+ /** 单文件大小上限(字节) */
20
+ maxSize?: number;
21
+ /** 最大文件数量上限 */
22
+ maxCount?: number;
23
+ /** 是否按相对路径+大小+修改时间去重 */
24
+ dedupe?: boolean;
25
+ /** 是否允许拖拽释放 */
26
+ draggable?: boolean;
27
+ /** 是否展示内置已选文件列表 */
28
+ showList?: boolean;
29
+ /** 拖拽区主标题 */
30
+ title?: string;
31
+ /** 拖拽区副说明(未传时根据模式与限制自动生成) */
32
+ description?: string;
33
+ /** 选择文件按钮文案 */
34
+ fileButtonLabel?: string;
35
+ /** 选择文件夹按钮文案 */
36
+ directoryButtonLabel?: string;
37
+ /** 是否禁用 */
38
+ disabled?: boolean;
39
+ /** 无障碍名称 */
40
+ ariaLabel?: string;
41
+ };
42
+ declare function openFiles(): void;
43
+ declare function openDirectory(): void;
44
+ declare function removeItem(id: string): void;
45
+ declare function clear(): void;
46
+ declare var __VLS_1: {
47
+ isDragging: boolean;
48
+ items: FilePickerItem[];
49
+ openFiles: typeof openFiles;
50
+ openDirectory: typeof openDirectory;
51
+ clear: typeof clear;
52
+ }, __VLS_8: {
53
+ openFiles: typeof openFiles;
54
+ openDirectory: typeof openDirectory;
55
+ clear: typeof clear;
56
+ }, __VLS_31: {
57
+ item: FilePickerItem;
58
+ remove: () => void;
59
+ };
60
+ type __VLS_Slots = {} & {
61
+ default?: (props: typeof __VLS_1) => any;
62
+ } & {
63
+ actions?: (props: typeof __VLS_8) => any;
64
+ } & {
65
+ item?: (props: typeof __VLS_31) => any;
66
+ };
67
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
68
+ openFiles: typeof openFiles;
69
+ openDirectory: typeof openDirectory;
70
+ remove: typeof removeItem;
71
+ clear: typeof clear;
72
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
73
+ "update:modelValue": (items: FilePickerItem[]) => any;
74
+ change: (items: FilePickerItem[]) => any;
75
+ add: (added: FilePickerItem[]) => any;
76
+ remove: (item: FilePickerItem) => any;
77
+ clear: () => any;
78
+ reject: (rejected: FilePickerRejectItem[]) => any;
79
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
80
+ "onUpdate:modelValue"?: ((items: FilePickerItem[]) => any) | undefined;
81
+ onChange?: ((items: FilePickerItem[]) => any) | undefined;
82
+ onAdd?: ((added: FilePickerItem[]) => any) | undefined;
83
+ onRemove?: ((item: FilePickerItem) => any) | undefined;
84
+ onClear?: (() => any) | undefined;
85
+ onReject?: ((rejected: FilePickerRejectItem[]) => any) | undefined;
86
+ }>, {
87
+ modelValue: FilePickerItem[];
88
+ title: string;
89
+ draggable: boolean;
90
+ ariaLabel: string;
91
+ disabled: boolean;
92
+ mode: FilePickerMode;
93
+ accept: string;
94
+ maxSize: number;
95
+ maxCount: number;
96
+ multiple: boolean;
97
+ dedupe: boolean;
98
+ variant: FilePickerVariant;
99
+ description: string;
100
+ showList: boolean;
101
+ fileButtonLabel: string;
102
+ directoryButtonLabel: string;
103
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
104
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
105
+ declare const _default: typeof __VLS_export;
106
+ export default _default;
107
+ type __VLS_WithSlots<T, S> = T & {
108
+ new (): {
109
+ $slots: S;
110
+ };
111
+ };
@@ -0,0 +1,8 @@
1
+ type __VLS_Props = {
2
+ name: string;
3
+ size?: number;
4
+ src?: string;
5
+ };
6
+ 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>;
7
+ declare const _default: typeof __VLS_export;
8
+ export default _default;
@@ -0,0 +1,95 @@
1
+ export type Ipv4TestStatus = "idle" | "testing" | "online" | "offline";
2
+ export interface Ipv4TestResult {
3
+ ok: boolean;
4
+ latencyMs?: number;
5
+ message?: string;
6
+ }
7
+ /**
8
+ * 通用 IPv4 地址输入框(Ipv4Input):
9
+ * - 四段独立数字输入,无需手动输入点号,自动过滤非数字并校验 0–255 范围。
10
+ * - 支持满 3 位自动跳段、超 255 智能溢出跳段、Backspace 无缝回退与完整 IP 粘贴。
11
+ * - 可选跟随通断测试按钮与实时通断状态显示(支持 onTest 异步托管或受控 testStatus)。
12
+ */
13
+ type __VLS_Props = {
14
+ /** 绑定的 IPv4 字符串(如 "192.168.1.10" 或 "") */
15
+ modelValue?: string;
16
+ /** 尺寸规格:default(30px)/ compact(26px) */
17
+ size?: "default" | "compact";
18
+ /** 底色变体:inset(--ui-bg)/ control(--ui-control) */
19
+ variant?: "inset" | "control";
20
+ /** 是否禁用 */
21
+ disabled?: boolean;
22
+ /** 是否只读 */
23
+ readonly?: boolean;
24
+ /** 是否必填 */
25
+ required?: boolean;
26
+ /** 无障碍名称 */
27
+ ariaLabel?: string;
28
+ /** 是否展示右侧通断测试按钮(传入 testConnection 时默认开启) */
29
+ showTest?: boolean;
30
+ /** 测试按钮文案 */
31
+ testLabel?: string;
32
+ /** 异步通断检测回调;返回 boolean 或 { ok, latencyMs?, message? } */
33
+ testConnection?: (ip: string) => Promise<Ipv4TestResult | boolean> | Ipv4TestResult | boolean;
34
+ /** 受控测试状态(未传时由组件内部管理) */
35
+ testStatus?: Ipv4TestStatus;
36
+ /** 受控测试结果提示文案 */
37
+ testMessage?: string;
38
+ /** 受控延迟毫秒数 */
39
+ latencyMs?: number;
40
+ };
41
+ declare function runTest(): Promise<void>;
42
+ declare function focus(): void;
43
+ declare function clear(): void;
44
+ declare var __VLS_1: {
45
+ ip: string;
46
+ complete: boolean;
47
+ status: Ipv4TestStatus;
48
+ }, __VLS_4: {
49
+ ip: string;
50
+ complete: boolean;
51
+ status: Ipv4TestStatus;
52
+ };
53
+ type __VLS_Slots = {} & {
54
+ prepend?: (props: typeof __VLS_1) => any;
55
+ } & {
56
+ append?: (props: typeof __VLS_4) => any;
57
+ };
58
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
59
+ focus: typeof focus;
60
+ clear: typeof clear;
61
+ runTest: typeof runTest;
62
+ isComplete: import("vue").ComputedRef<boolean>;
63
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
64
+ "update:modelValue": (value: string) => any;
65
+ change: (value: string) => any;
66
+ test: (ip: string) => any;
67
+ "test-result": (result: Ipv4TestResult) => any;
68
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
69
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
70
+ onChange?: ((value: string) => any) | undefined;
71
+ onTest?: ((ip: string) => any) | undefined;
72
+ "onTest-result"?: ((result: Ipv4TestResult) => any) | undefined;
73
+ }>, {
74
+ modelValue: string;
75
+ readonly: boolean;
76
+ size: "default" | "compact";
77
+ ariaLabel: string;
78
+ disabled: boolean;
79
+ required: boolean;
80
+ variant: "inset" | "control";
81
+ showTest: boolean;
82
+ testLabel: string;
83
+ testConnection: (ip: string) => Promise<Ipv4TestResult | boolean> | Ipv4TestResult | boolean;
84
+ testStatus: Ipv4TestStatus;
85
+ testMessage: string;
86
+ latencyMs: number;
87
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
88
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
89
+ declare const _default: typeof __VLS_export;
90
+ export default _default;
91
+ type __VLS_WithSlots<T, S> = T & {
92
+ new (): {
93
+ $slots: S;
94
+ };
95
+ };
@@ -0,0 +1,96 @@
1
+ export interface KeyValueRow {
2
+ id: number;
3
+ enabled: boolean;
4
+ key: string;
5
+ value: string;
6
+ description?: string;
7
+ }
8
+ export declare function createKeyValueRow(key?: string, value?: string, enabled?: boolean, description?: string): KeyValueRow;
9
+ export declare function formatBulkKeyValue(rows: KeyValueRow[], separator?: ":" | "="): string;
10
+ export declare function parseBulkKeyValue(text: string): KeyValueRow[];
11
+ declare const _default: typeof __VLS_export;
12
+ export default _default;
13
+ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
14
+ /** 键值对行数组(就地变更并触发 change) */
15
+ rows: KeyValueRow[];
16
+ /** 是否禁用全部编辑操作 */
17
+ disabled?: boolean;
18
+ /** 键名列标题 */
19
+ keyHeader?: string;
20
+ /** 值列标题 */
21
+ valueHeader?: string;
22
+ /** 键名输入占位提示 */
23
+ keyPlaceholder?: string;
24
+ /** 值输入占位提示 */
25
+ valuePlaceholder?: string;
26
+ /** 键名输入框无障碍前缀 */
27
+ keyLabelPrefix?: string;
28
+ /** 值输入框无障碍前缀 */
29
+ valueLabelPrefix?: string;
30
+ /** 启用复选框无障碍前缀 */
31
+ enableLabelPrefix?: string;
32
+ /** 删除按钮无障碍前缀 */
33
+ deleteLabelPrefix?: string;
34
+ /** 新增按钮文案 */
35
+ addLabel?: string;
36
+ /** 批量编辑模式下的分隔符 */
37
+ bulkSeparator?: ":" | "=";
38
+ /** 键名 datalist 联想建议 */
39
+ suggestions?: string[];
40
+ /** 是否显示可选“说明”列 */
41
+ showDescription?: boolean;
42
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
43
+ change: () => any;
44
+ }, string, import("vue").PublicProps, Readonly<{
45
+ /** 键值对行数组(就地变更并触发 change) */
46
+ rows: KeyValueRow[];
47
+ /** 是否禁用全部编辑操作 */
48
+ disabled?: boolean;
49
+ /** 键名列标题 */
50
+ keyHeader?: string;
51
+ /** 值列标题 */
52
+ valueHeader?: string;
53
+ /** 键名输入占位提示 */
54
+ keyPlaceholder?: string;
55
+ /** 值输入占位提示 */
56
+ valuePlaceholder?: string;
57
+ /** 键名输入框无障碍前缀 */
58
+ keyLabelPrefix?: string;
59
+ /** 值输入框无障碍前缀 */
60
+ valueLabelPrefix?: string;
61
+ /** 启用复选框无障碍前缀 */
62
+ enableLabelPrefix?: string;
63
+ /** 删除按钮无障碍前缀 */
64
+ deleteLabelPrefix?: string;
65
+ /** 新增按钮文案 */
66
+ addLabel?: string;
67
+ /** 批量编辑模式下的分隔符 */
68
+ bulkSeparator?: ":" | "=";
69
+ /** 键名 datalist 联想建议 */
70
+ suggestions?: string[];
71
+ /** 是否显示可选“说明”列 */
72
+ showDescription?: boolean;
73
+ }> & Readonly<{
74
+ onChange?: (() => any) | undefined;
75
+ }>, {
76
+ disabled: boolean;
77
+ keyHeader: string;
78
+ valueHeader: string;
79
+ keyPlaceholder: string;
80
+ valuePlaceholder: string;
81
+ keyLabelPrefix: string;
82
+ valueLabelPrefix: string;
83
+ enableLabelPrefix: string;
84
+ deleteLabelPrefix: string;
85
+ addLabel: string;
86
+ bulkSeparator: "=" | ":";
87
+ suggestions: string[];
88
+ showDescription: boolean;
89
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
90
+ 'toolbar-extra'?: (props: {}) => any;
91
+ }>;
92
+ type __VLS_WithSlots<T, S> = T & {
93
+ new (): {
94
+ $slots: S;
95
+ };
96
+ };
@@ -0,0 +1,75 @@
1
+ type ModalClassProp = string | Record<string, boolean> | (string | Record<string, boolean>)[];
2
+ type __VLS_Props = {
3
+ open?: boolean;
4
+ title?: string;
5
+ ariaLabel?: string;
6
+ ariaLabelledby?: string;
7
+ modalClass?: ModalClassProp;
8
+ headerClass?: ModalClassProp;
9
+ bodyClass?: ModalClassProp;
10
+ footerClass?: ModalClassProp;
11
+ closeLabel?: string;
12
+ closable?: boolean;
13
+ closeDisabled?: boolean;
14
+ dismissible?: boolean;
15
+ beforeClose?: () => boolean | Promise<boolean>;
16
+ useForm?: boolean;
17
+ hideHeader?: boolean;
18
+ hideFooter?: boolean;
19
+ };
20
+ declare function openModal(): void;
21
+ declare function closeModal(): void;
22
+ declare var __VLS_9: {}, __VLS_11: {}, __VLS_18: {}, __VLS_20: {}, __VLS_22: {}, __VLS_24: {};
23
+ type __VLS_Slots = {} & {
24
+ header?: (props: typeof __VLS_9) => any;
25
+ } & {
26
+ 'header-actions'?: (props: typeof __VLS_11) => any;
27
+ } & {
28
+ subheader?: (props: typeof __VLS_18) => any;
29
+ } & {
30
+ default?: (props: typeof __VLS_20) => any;
31
+ } & {
32
+ 'before-footer'?: (props: typeof __VLS_22) => any;
33
+ } & {
34
+ footer?: (props: typeof __VLS_24) => any;
35
+ };
36
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
37
+ openModal: typeof openModal;
38
+ closeModal: typeof closeModal;
39
+ dialogEl: import("vue").Ref<HTMLDialogElement | undefined, HTMLDialogElement | undefined>;
40
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
41
+ cancel: (event: Event) => any;
42
+ close: () => any;
43
+ submit: (event: Event) => any;
44
+ "update:open": (value: boolean) => any;
45
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
46
+ onCancel?: ((event: Event) => any) | undefined;
47
+ onClose?: (() => any) | undefined;
48
+ onSubmit?: ((event: Event) => any) | undefined;
49
+ "onUpdate:open"?: ((value: boolean) => any) | undefined;
50
+ }>, {
51
+ title: string;
52
+ open: boolean;
53
+ ariaLabel: string;
54
+ ariaLabelledby: string;
55
+ modalClass: ModalClassProp;
56
+ headerClass: ModalClassProp;
57
+ bodyClass: ModalClassProp;
58
+ footerClass: ModalClassProp;
59
+ closeLabel: string;
60
+ closable: boolean;
61
+ closeDisabled: boolean;
62
+ dismissible: boolean;
63
+ beforeClose: () => boolean | Promise<boolean>;
64
+ useForm: boolean;
65
+ hideHeader: boolean;
66
+ hideFooter: boolean;
67
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
68
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
69
+ declare const _default: typeof __VLS_export;
70
+ export default _default;
71
+ type __VLS_WithSlots<T, S> = T & {
72
+ new (): {
73
+ $slots: S;
74
+ };
75
+ };
@@ -0,0 +1,69 @@
1
+ declare const __VLS_export: <T extends number | null | undefined = number>(__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<{
2
+ props: import("vue").PublicProps & __VLS_PrettifyLocal<{
3
+ /** 当前数值(v-model,可为 number / undefined / null) */
4
+ modelValue?: T;
5
+ /** 布局形态:standard(左减右加)/ compact(右侧上下加减) */
6
+ layout?: "standard" | "compact";
7
+ /** 尺寸规格:default(30px)/ compact(26px) */
8
+ size?: "default" | "compact";
9
+ /** 底色变体:inset(表单内嵌 --ui-bg)/ control(工具栏 --ui-control) */
10
+ variant?: "inset" | "control";
11
+ /** 允许的最小值 */
12
+ min?: number;
13
+ /** 允许的最大值 */
14
+ max?: number;
15
+ /** 单次步进增量(支持小数) */
16
+ step?: number;
17
+ /** 展示与步进的小数精度(默认随 step 自动推断) */
18
+ precision?: number;
19
+ /** 可选后缀单位(如 秒 / ms / % / 条) */
20
+ unit?: string;
21
+ /** 空值占位文字 */
22
+ placeholder?: string;
23
+ /** 原生 input id */
24
+ id?: string;
25
+ /** 原生 input name */
26
+ name?: string;
27
+ /** 无障碍名称 */
28
+ ariaLabel?: string;
29
+ /** 是否禁用 */
30
+ disabled?: boolean;
31
+ /** 是否只读 */
32
+ readonly?: boolean;
33
+ /** 是否必填 */
34
+ required?: boolean;
35
+ /** 是否允许清空为空值(undefined) */
36
+ allowEmpty?: boolean;
37
+ /** 减号按钮无障碍名称 */
38
+ decrementLabel?: string;
39
+ /** 加号按钮无障碍名称 */
40
+ incrementLabel?: string;
41
+ } & {
42
+ "onUpdate:modelValue"?: ((value: T) => any) | undefined;
43
+ onFocus?: ((event: FocusEvent) => any) | undefined;
44
+ onBlur?: ((event: FocusEvent) => any) | undefined;
45
+ onChange?: ((value: T) => any) | undefined;
46
+ }> & (typeof globalThis extends {
47
+ __VLS_PROPS_FALLBACK: infer P;
48
+ } ? P : {});
49
+ expose: (exposed: import("vue").ShallowUnwrapRef<{
50
+ inputEl: import("vue").Ref<HTMLInputElement | undefined, HTMLInputElement | undefined>;
51
+ focus: () => void;
52
+ blur: () => void;
53
+ select: () => void;
54
+ stepUp: (multiplier?: number) => void;
55
+ stepDown: (multiplier?: number) => void;
56
+ }>) => void;
57
+ attrs: any;
58
+ slots: {};
59
+ emit: ((evt: "update:modelValue", value: T) => void) & ((evt: "focus", event: FocusEvent) => void) & ((evt: "blur", event: FocusEvent) => void) & ((evt: "change", value: T) => void);
60
+ }>) => import("vue").VNode & {
61
+ __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
62
+ };
63
+ declare const _default: typeof __VLS_export;
64
+ export default _default;
65
+ type __VLS_PrettifyLocal<T> = (T extends any ? {
66
+ [K in keyof T]: T[K];
67
+ } : {
68
+ [K in keyof T as K]: T[K];
69
+ }) & {};
@@ -0,0 +1,49 @@
1
+ type __VLS_Props = {
2
+ total: number;
3
+ page: number;
4
+ pageSize: number;
5
+ pageSizes?: number[];
6
+ unit?: string;
7
+ disabled?: boolean;
8
+ /** table:用于成组卡片底部的标准吸底分页;compact:用于设置卡片、日志区、窄栏及弹窗底部的自适应分页 */
9
+ variant?: "table" | "compact";
10
+ /** 是否吸底并保留列表最小宽度;未显式传入时仅 table 变体默认吸底 */
11
+ sticky?: boolean;
12
+ /** 是否显示每页条数选择器 */
13
+ showPageSize?: boolean;
14
+ /** 是否显示页码数字与首尾页按钮;关闭时精简为“上一页 / 下一页” */
15
+ showNumbers?: boolean;
16
+ /** 是否在摘要中展示“第 X / Y 页”(通常配合 showNumbers=false 的极窄栏使用) */
17
+ showPageRatio?: boolean;
18
+ /** 分页容器的无障碍区域标签 */
19
+ ariaLabel?: string;
20
+ };
21
+ declare var __VLS_3: {};
22
+ type __VLS_Slots = {} & {
23
+ extra?: (props: typeof __VLS_3) => any;
24
+ };
25
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
26
+ "update:page": (value: number) => any;
27
+ "update:page-size": (value: number) => any;
28
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
29
+ "onUpdate:page"?: ((value: number) => any) | undefined;
30
+ "onUpdate:page-size"?: ((value: number) => any) | undefined;
31
+ }>, {
32
+ ariaLabel: string;
33
+ disabled: boolean;
34
+ variant: "table" | "compact";
35
+ unit: string;
36
+ pageSizes: number[];
37
+ sticky: boolean;
38
+ showPageSize: boolean;
39
+ showNumbers: boolean;
40
+ showPageRatio: boolean;
41
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
42
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
43
+ declare const _default: typeof __VLS_export;
44
+ export default _default;
45
+ type __VLS_WithSlots<T, S> = T & {
46
+ new (): {
47
+ $slots: S;
48
+ };
49
+ };
@@ -0,0 +1,48 @@
1
+ type __VLS_Props = {
2
+ modelValue?: string;
3
+ id?: string;
4
+ name?: string;
5
+ placeholder?: string;
6
+ autocomplete?: string;
7
+ minlength?: number;
8
+ maxlength?: number;
9
+ required?: boolean;
10
+ disabled?: boolean;
11
+ readonly?: boolean;
12
+ variant?: "inset" | "control" | "bare";
13
+ ariaLabel?: string;
14
+ error?: string;
15
+ };
16
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
17
+ inputEl: import("vue").Ref<HTMLInputElement | undefined, HTMLInputElement | undefined>;
18
+ focus: () => void | undefined;
19
+ hide: () => void;
20
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
21
+ input: (event: Event) => any;
22
+ "update:modelValue": (value: string) => any;
23
+ focus: (event: FocusEvent) => any;
24
+ blur: (event: FocusEvent) => any;
25
+ change: (event: Event) => any;
26
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
27
+ onInput?: ((event: Event) => any) | undefined;
28
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
29
+ onFocus?: ((event: FocusEvent) => any) | undefined;
30
+ onBlur?: ((event: FocusEvent) => any) | undefined;
31
+ onChange?: ((event: Event) => any) | undefined;
32
+ }>, {
33
+ autocomplete: string;
34
+ modelValue: string;
35
+ readonly: boolean;
36
+ error: string;
37
+ name: string;
38
+ ariaLabel: string;
39
+ id: string;
40
+ disabled: boolean;
41
+ required: boolean;
42
+ variant: "inset" | "control" | "bare";
43
+ placeholder: string;
44
+ maxlength: number;
45
+ minlength: number;
46
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
47
+ declare const _default: typeof __VLS_export;
48
+ export default _default;
@@ -0,0 +1,36 @@
1
+ import { type PlaceholderContext, type PlaceholderMode, type PlaceholderOption } from "../template-placeholders";
2
+ type __VLS_Props = {
3
+ modelValue?: string;
4
+ id?: string;
5
+ ariaLabel?: string;
6
+ ariaDescribedby?: string;
7
+ placeholder?: string;
8
+ mode?: PlaceholderMode;
9
+ multiline?: boolean;
10
+ rows?: number;
11
+ readonly?: boolean;
12
+ context?: PlaceholderContext;
13
+ };
14
+ declare function insertOption(option: PlaceholderOption): void;
15
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
16
+ validate: () => string;
17
+ analysis: import("vue").ComputedRef<import("../template-placeholders").TemplateAnalysis>;
18
+ insertOption: typeof insertOption;
19
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
20
+ "update:modelValue": (value: string) => any;
21
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
22
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
23
+ }>, {
24
+ rows: number;
25
+ modelValue: string;
26
+ readonly: boolean;
27
+ ariaLabel: string;
28
+ id: string;
29
+ mode: PlaceholderMode;
30
+ placeholder: string;
31
+ ariaDescribedby: string;
32
+ multiline: boolean;
33
+ context: PlaceholderContext;
34
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
35
+ declare const _default: typeof __VLS_export;
36
+ export default _default;
@@ -0,0 +1,20 @@
1
+ /**
2
+ * 插件图标展示控件:
3
+ * 当提供有效图片(PNG Data URI)且加载正常时,直接渲染图片本身,不外加背景或边框容器;
4
+ * 当未提供图片、内置沿用矢量图标或图片加载失败回落时,保留带背景与边框的 `.plugin-icon-box` 容器。
5
+ */
6
+ type __VLS_Props = {
7
+ name: string;
8
+ src?: unknown;
9
+ size?: number;
10
+ iconSize?: number;
11
+ boxClass?: string;
12
+ };
13
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
14
+ size: number;
15
+ src: undefined;
16
+ iconSize: number;
17
+ boxClass: string;
18
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
19
+ declare const _default: typeof __VLS_export;
20
+ export default _default;