@salesql/sql_components_vue3 1.0.0 → 2.1.0
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/constants/events.d.ts +20 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +40 -6
- package/dist/index.es.js +2258 -613
- package/dist/index.es.js.map +1 -1
- package/dist/sql_components_vue3.css +1 -1
- package/dist/ui/DsAlert/DsAlert.vue.d.ts +15 -2
- package/dist/ui/DsAvatar/DsAvatar.types.d.ts +6 -0
- package/dist/ui/DsAvatar/DsAvatar.vue.d.ts +47 -2
- package/dist/ui/DsButton/DsButton.types.d.ts +6 -1
- package/dist/ui/DsButton/DsButton.vue.d.ts +11 -5
- package/dist/ui/DsCell/DsCell.types.d.ts +19 -0
- package/dist/ui/DsCell/DsCell.vue.d.ts +71 -0
- package/dist/ui/DsCell/index.d.ts +2 -0
- package/dist/ui/DsCheckbox/DsCheckbox.types.d.ts +2 -0
- package/dist/ui/DsCheckbox/DsCheckbox.vue.d.ts +10 -1
- package/dist/ui/DsContactValue/DsContactValue.types.d.ts +4 -0
- package/dist/ui/DsContactValue/DsContactValue.vue.d.ts +18 -0
- package/dist/ui/DsCustomTag/DsCustomTag.types.d.ts +9 -0
- package/dist/ui/DsCustomTag/DsCustomTag.vue.d.ts +29 -0
- package/dist/ui/DsCustomTag/index.d.ts +2 -0
- package/dist/ui/DsDataCard/DsDataCard.types.d.ts +2 -0
- package/dist/ui/DsDataCard/DsDataCard.vue.d.ts +58 -1
- package/dist/ui/DsEmptyState/DsEmptyState.types.d.ts +12 -0
- package/dist/ui/DsEmptyState/DsEmptyState.vue.d.ts +53 -0
- package/dist/ui/DsEmptyState/index.d.ts +2 -0
- package/dist/ui/DsInput/DsInput.vue.d.ts +36 -2
- package/dist/ui/DsItemSelectorButton/DsItemSelectorButton.types.d.ts +20 -0
- package/dist/ui/DsItemSelectorButton/DsItemSelectorButton.vue.d.ts +50 -0
- package/dist/ui/DsItemSelectorButton/index.d.ts +2 -0
- package/dist/ui/DsMenuItem/DsMenuItem.types.d.ts +6 -0
- package/dist/ui/DsMenuItem/DsMenuItem.vue.d.ts +42 -0
- package/dist/ui/DsMenuItem/index.d.ts +2 -0
- package/dist/ui/DsModal/DsModal.types.d.ts +10 -0
- package/dist/ui/DsModal/DsModal.vue.d.ts +42 -3
- package/dist/ui/DsNotification/DsNotification.types.d.ts +8 -0
- package/dist/ui/DsNotification/DsNotification.vue.d.ts +22 -2
- package/dist/ui/DsPaginator/DsPaginator.types.d.ts +12 -0
- package/dist/ui/DsPaginator/DsPaginator.vue.d.ts +101 -0
- package/dist/ui/DsPaginator/index.d.ts +2 -0
- package/dist/ui/DsPill/DsPill.types.d.ts +11 -0
- package/dist/ui/DsPill/DsPill.vue.d.ts +46 -0
- package/dist/ui/DsPill/index.d.ts +2 -0
- package/dist/ui/DsPillWithBorder/DsPillWithBorder.types.d.ts +2 -0
- package/dist/ui/DsPillWithBorder/DsPillWithBorder.vue.d.ts +18 -0
- package/dist/ui/DsPillWithBorder/index.d.ts +2 -0
- package/dist/ui/DsRadio/DsRadio.types.d.ts +7 -0
- package/dist/ui/DsRadio/DsRadio.vue.d.ts +55 -0
- package/dist/ui/DsRadio/index.d.ts +2 -0
- package/dist/ui/DsRow/DsRow.types.d.ts +6 -0
- package/dist/ui/DsRow/DsRow.vue.d.ts +37 -0
- package/dist/ui/DsRow/index.d.ts +2 -0
- package/dist/ui/DsSegmentedProgressBar/DsSegmentedProgressBar.types.d.ts +5 -0
- package/dist/ui/DsSegmentedProgressBar/DsSegmentedProgressBar.vue.d.ts +62 -0
- package/dist/ui/DsSegmentedProgressBar/index.d.ts +2 -0
- package/dist/ui/DsSelect/DsSelect.types.d.ts +33 -0
- package/dist/ui/DsSelect/DsSelect.vue.d.ts +126 -0
- package/dist/ui/DsSelect/index.d.ts +2 -0
- package/dist/ui/DsSpinner/DsSpinner.types.d.ts +6 -0
- package/dist/ui/DsSpinner/DsSpinner.vue.d.ts +4 -4
- package/dist/ui/DsSwitch/DsSwitch.types.d.ts +6 -0
- package/dist/ui/DsSwitch/DsSwitch.vue.d.ts +30 -0
- package/dist/ui/DsSwitch/index.d.ts +2 -0
- package/dist/ui/DsTable/DsTable.types.d.ts +11 -0
- package/dist/ui/DsTable/DsTable.vue.d.ts +112 -10
- package/dist/ui/DsTag/DsTag.types.d.ts +1 -0
- package/dist/ui/DsTag/DsTag.vue.d.ts +6 -0
- package/dist/ui/DsTextarea/DsTextarea.types.d.ts +8 -0
- package/dist/ui/DsTextarea/DsTextarea.vue.d.ts +14 -3
- package/dist/ui/DsTooltip/DsTooltip.types.d.ts +7 -0
- package/dist/ui/DsTooltip/DsTooltip.vue.d.ts +64 -0
- package/dist/ui/DsTooltip/index.d.ts +2 -0
- package/dist/ui/DsWizardStepper/DsWizardStepper.types.d.ts +13 -0
- package/dist/ui/DsWizardStepper/DsWizardStepper.vue.d.ts +58 -0
- package/dist/ui/DsWizardStepper/index.d.ts +2 -0
- package/package.json +1 -1
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import { type PropType } from 'vue';
|
|
2
2
|
import type { DsContactDatum } from './DsDataCard.types';
|
|
3
|
-
declare
|
|
3
|
+
declare var __VLS_17: {}, __VLS_23: {};
|
|
4
|
+
type __VLS_Slots = {} & {
|
|
5
|
+
loading?: (props: typeof __VLS_17) => any;
|
|
6
|
+
} & {
|
|
7
|
+
locked?: (props: typeof __VLS_23) => any;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
10
|
title: {
|
|
5
11
|
type: StringConstructor;
|
|
6
12
|
required: true;
|
|
@@ -9,6 +15,18 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
9
15
|
type: StringConstructor;
|
|
10
16
|
default: string;
|
|
11
17
|
};
|
|
18
|
+
loading: {
|
|
19
|
+
type: BooleanConstructor;
|
|
20
|
+
default: boolean;
|
|
21
|
+
};
|
|
22
|
+
loadingLabel: {
|
|
23
|
+
type: StringConstructor;
|
|
24
|
+
default: string;
|
|
25
|
+
};
|
|
26
|
+
locked: {
|
|
27
|
+
type: BooleanConstructor;
|
|
28
|
+
default: boolean;
|
|
29
|
+
};
|
|
12
30
|
mostLikely: {
|
|
13
31
|
type: PropType<DsContactDatum | null>;
|
|
14
32
|
default: null;
|
|
@@ -49,6 +67,14 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
49
67
|
type: StringConstructor;
|
|
50
68
|
default: string;
|
|
51
69
|
};
|
|
70
|
+
emptySubtitle: {
|
|
71
|
+
type: StringConstructor;
|
|
72
|
+
default: string;
|
|
73
|
+
};
|
|
74
|
+
lockedLabel: {
|
|
75
|
+
type: StringConstructor;
|
|
76
|
+
default: string;
|
|
77
|
+
};
|
|
52
78
|
mostLikelyLabel: {
|
|
53
79
|
type: StringConstructor;
|
|
54
80
|
default: string;
|
|
@@ -85,6 +111,18 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
85
111
|
type: StringConstructor;
|
|
86
112
|
default: string;
|
|
87
113
|
};
|
|
114
|
+
loading: {
|
|
115
|
+
type: BooleanConstructor;
|
|
116
|
+
default: boolean;
|
|
117
|
+
};
|
|
118
|
+
loadingLabel: {
|
|
119
|
+
type: StringConstructor;
|
|
120
|
+
default: string;
|
|
121
|
+
};
|
|
122
|
+
locked: {
|
|
123
|
+
type: BooleanConstructor;
|
|
124
|
+
default: boolean;
|
|
125
|
+
};
|
|
88
126
|
mostLikely: {
|
|
89
127
|
type: PropType<DsContactDatum | null>;
|
|
90
128
|
default: null;
|
|
@@ -125,6 +163,14 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
125
163
|
type: StringConstructor;
|
|
126
164
|
default: string;
|
|
127
165
|
};
|
|
166
|
+
emptySubtitle: {
|
|
167
|
+
type: StringConstructor;
|
|
168
|
+
default: string;
|
|
169
|
+
};
|
|
170
|
+
lockedLabel: {
|
|
171
|
+
type: StringConstructor;
|
|
172
|
+
default: string;
|
|
173
|
+
};
|
|
128
174
|
mostLikelyLabel: {
|
|
129
175
|
type: StringConstructor;
|
|
130
176
|
default: string;
|
|
@@ -153,12 +199,15 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
153
199
|
onIncorrect?: ((...args: any[]) => any) | undefined;
|
|
154
200
|
onEdit?: ((...args: any[]) => any) | undefined;
|
|
155
201
|
}>, {
|
|
202
|
+
loading: boolean;
|
|
156
203
|
closeLabel: string;
|
|
204
|
+
loadingLabel: string;
|
|
157
205
|
toggleLabel: string;
|
|
158
206
|
icon: string;
|
|
159
207
|
showClose: boolean;
|
|
160
208
|
isContactData: boolean;
|
|
161
209
|
showRate: boolean;
|
|
210
|
+
locked: boolean;
|
|
162
211
|
mostLikely: DsContactDatum | null;
|
|
163
212
|
more: DsContactDatum[];
|
|
164
213
|
collapsible: boolean;
|
|
@@ -166,8 +215,16 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
166
215
|
showEdit: boolean;
|
|
167
216
|
editLabel: string;
|
|
168
217
|
emptyLabel: string;
|
|
218
|
+
emptySubtitle: string;
|
|
219
|
+
lockedLabel: string;
|
|
169
220
|
mostLikelyLabel: string;
|
|
170
221
|
moreLabel: string;
|
|
171
222
|
sortLabel: string;
|
|
172
223
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
224
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
173
225
|
export default _default;
|
|
226
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
227
|
+
new (): {
|
|
228
|
+
$slots: S;
|
|
229
|
+
};
|
|
230
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface DsEmptyStateProps {
|
|
2
|
+
/** Illustration URL rendered above the title. Decorative — always renders with alt="". */
|
|
3
|
+
image?: string;
|
|
4
|
+
/** Empty-state heading. Rendered as a styled `<p>`, never an `<h1>` — a reusable
|
|
5
|
+
* component must not hardcode a heading level, or it would corrupt the consuming
|
|
6
|
+
* page's heading outline. */
|
|
7
|
+
title?: string;
|
|
8
|
+
/** Supporting copy under the title. Supports embedded line breaks (`white-space: pre-line`). */
|
|
9
|
+
subtitle?: string;
|
|
10
|
+
/** Rounds the panel corners (DS `radius-card-lg`) instead of the default square edge. */
|
|
11
|
+
roundedBorder?: boolean;
|
|
12
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
declare var __VLS_1: {}, __VLS_3: {};
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
3
|
+
'table-header'?: (props: typeof __VLS_1) => any;
|
|
4
|
+
} & {
|
|
5
|
+
button?: (props: typeof __VLS_3) => any;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
8
|
+
image: {
|
|
9
|
+
type: StringConstructor;
|
|
10
|
+
default: string;
|
|
11
|
+
};
|
|
12
|
+
title: {
|
|
13
|
+
type: StringConstructor;
|
|
14
|
+
default: string;
|
|
15
|
+
};
|
|
16
|
+
subtitle: {
|
|
17
|
+
type: StringConstructor;
|
|
18
|
+
default: string;
|
|
19
|
+
};
|
|
20
|
+
roundedBorder: {
|
|
21
|
+
type: BooleanConstructor;
|
|
22
|
+
default: boolean;
|
|
23
|
+
};
|
|
24
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
25
|
+
image: {
|
|
26
|
+
type: StringConstructor;
|
|
27
|
+
default: string;
|
|
28
|
+
};
|
|
29
|
+
title: {
|
|
30
|
+
type: StringConstructor;
|
|
31
|
+
default: string;
|
|
32
|
+
};
|
|
33
|
+
subtitle: {
|
|
34
|
+
type: StringConstructor;
|
|
35
|
+
default: string;
|
|
36
|
+
};
|
|
37
|
+
roundedBorder: {
|
|
38
|
+
type: BooleanConstructor;
|
|
39
|
+
default: boolean;
|
|
40
|
+
};
|
|
41
|
+
}>> & Readonly<{}>, {
|
|
42
|
+
title: string;
|
|
43
|
+
image: string;
|
|
44
|
+
subtitle: string;
|
|
45
|
+
roundedBorder: boolean;
|
|
46
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
47
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
48
|
+
export default _default;
|
|
49
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
50
|
+
new (): {
|
|
51
|
+
$slots: S;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
@@ -40,12 +40,29 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
40
40
|
type: StringConstructor;
|
|
41
41
|
default: string;
|
|
42
42
|
};
|
|
43
|
+
min: {
|
|
44
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
45
|
+
default: undefined;
|
|
46
|
+
};
|
|
47
|
+
max: {
|
|
48
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
49
|
+
default: undefined;
|
|
50
|
+
};
|
|
51
|
+
step: {
|
|
52
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
53
|
+
default: undefined;
|
|
54
|
+
};
|
|
43
55
|
modelValue: {
|
|
44
56
|
type: PropType<string>;
|
|
45
57
|
};
|
|
46
|
-
}>, {
|
|
58
|
+
}>, {
|
|
59
|
+
focus: () => void | undefined;
|
|
60
|
+
focusAtEnd: () => Promise<void>;
|
|
61
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
47
62
|
focus: (...args: any[]) => void;
|
|
48
63
|
blur: (...args: any[]) => void;
|
|
64
|
+
change: (...args: any[]) => void;
|
|
65
|
+
"field-blur": (...args: any[]) => void;
|
|
49
66
|
"update:modelValue": (value: string) => void;
|
|
50
67
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
51
68
|
type: {
|
|
@@ -83,25 +100,42 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
83
100
|
type: StringConstructor;
|
|
84
101
|
default: string;
|
|
85
102
|
};
|
|
103
|
+
min: {
|
|
104
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
105
|
+
default: undefined;
|
|
106
|
+
};
|
|
107
|
+
max: {
|
|
108
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
109
|
+
default: undefined;
|
|
110
|
+
};
|
|
111
|
+
step: {
|
|
112
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
113
|
+
default: undefined;
|
|
114
|
+
};
|
|
86
115
|
modelValue: {
|
|
87
116
|
type: PropType<string>;
|
|
88
117
|
};
|
|
89
118
|
}>> & Readonly<{
|
|
90
119
|
onFocus?: ((...args: any[]) => any) | undefined;
|
|
91
120
|
onBlur?: ((...args: any[]) => any) | undefined;
|
|
121
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
122
|
+
"onField-blur"?: ((...args: any[]) => any) | undefined;
|
|
92
123
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
93
124
|
}>, {
|
|
94
125
|
size: DsInputSize;
|
|
95
126
|
type: DsInputType;
|
|
127
|
+
step: string | number;
|
|
96
128
|
disabled: boolean;
|
|
97
129
|
error: boolean;
|
|
130
|
+
name: string;
|
|
98
131
|
id: string;
|
|
99
132
|
placeholder: string;
|
|
100
133
|
errorMessage: string;
|
|
101
134
|
showErrorIcon: boolean;
|
|
102
|
-
name: string;
|
|
103
135
|
autocomplete: string;
|
|
104
136
|
toggleLabel: string;
|
|
137
|
+
min: string | number;
|
|
138
|
+
max: string | number;
|
|
105
139
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
106
140
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
107
141
|
export default _default;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface DsSelectorItem {
|
|
2
|
+
name: string;
|
|
3
|
+
/** Icon color (e.g. a folder/tag color). */
|
|
4
|
+
color?: string;
|
|
5
|
+
}
|
|
6
|
+
export interface DsItemSelectorButtonProps {
|
|
7
|
+
/** Selected item, or null/undefined for the empty state. */
|
|
8
|
+
item?: DsSelectorItem | null;
|
|
9
|
+
/** Material Icons ligature name (e.g. `folder`). */
|
|
10
|
+
icon?: string;
|
|
11
|
+
/** Label shown when no item is selected (app owns the wording). */
|
|
12
|
+
emptyTitle?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Accessible name for the button. Required when the empty state has no
|
|
15
|
+
* `emptyTitle` (an icon-only/blank pill would otherwise be an unnamed button);
|
|
16
|
+
* when `item.name` or `emptyTitle` is shown, that visible text already names it.
|
|
17
|
+
*/
|
|
18
|
+
ariaLabel?: string;
|
|
19
|
+
disabled?: boolean;
|
|
20
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { type PropType } from 'vue';
|
|
2
|
+
import type { DsSelectorItem } from './DsItemSelectorButton.types';
|
|
3
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
|
+
item: {
|
|
5
|
+
type: PropType<DsSelectorItem | null>;
|
|
6
|
+
default: null;
|
|
7
|
+
};
|
|
8
|
+
icon: {
|
|
9
|
+
type: StringConstructor;
|
|
10
|
+
default: string;
|
|
11
|
+
};
|
|
12
|
+
emptyTitle: {
|
|
13
|
+
type: StringConstructor;
|
|
14
|
+
default: string;
|
|
15
|
+
};
|
|
16
|
+
ariaLabel: {
|
|
17
|
+
type: StringConstructor;
|
|
18
|
+
default: string;
|
|
19
|
+
};
|
|
20
|
+
disabled: BooleanConstructor;
|
|
21
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
22
|
+
click: (...args: any[]) => void;
|
|
23
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
24
|
+
item: {
|
|
25
|
+
type: PropType<DsSelectorItem | null>;
|
|
26
|
+
default: null;
|
|
27
|
+
};
|
|
28
|
+
icon: {
|
|
29
|
+
type: StringConstructor;
|
|
30
|
+
default: string;
|
|
31
|
+
};
|
|
32
|
+
emptyTitle: {
|
|
33
|
+
type: StringConstructor;
|
|
34
|
+
default: string;
|
|
35
|
+
};
|
|
36
|
+
ariaLabel: {
|
|
37
|
+
type: StringConstructor;
|
|
38
|
+
default: string;
|
|
39
|
+
};
|
|
40
|
+
disabled: BooleanConstructor;
|
|
41
|
+
}>> & Readonly<{
|
|
42
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
43
|
+
}>, {
|
|
44
|
+
ariaLabel: string;
|
|
45
|
+
disabled: boolean;
|
|
46
|
+
icon: string;
|
|
47
|
+
item: DsSelectorItem | null;
|
|
48
|
+
emptyTitle: string;
|
|
49
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
50
|
+
export default _default;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
declare var __VLS_1: {};
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
3
|
+
default?: (props: typeof __VLS_1) => any;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
6
|
+
icon: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
required: true;
|
|
9
|
+
};
|
|
10
|
+
text: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
default: string;
|
|
13
|
+
};
|
|
14
|
+
active: BooleanConstructor;
|
|
15
|
+
collapsed: BooleanConstructor;
|
|
16
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
17
|
+
select: (...args: any[]) => void;
|
|
18
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
19
|
+
icon: {
|
|
20
|
+
type: StringConstructor;
|
|
21
|
+
required: true;
|
|
22
|
+
};
|
|
23
|
+
text: {
|
|
24
|
+
type: StringConstructor;
|
|
25
|
+
default: string;
|
|
26
|
+
};
|
|
27
|
+
active: BooleanConstructor;
|
|
28
|
+
collapsed: BooleanConstructor;
|
|
29
|
+
}>> & Readonly<{
|
|
30
|
+
onSelect?: ((...args: any[]) => any) | undefined;
|
|
31
|
+
}>, {
|
|
32
|
+
text: string;
|
|
33
|
+
collapsed: boolean;
|
|
34
|
+
active: boolean;
|
|
35
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
36
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
37
|
+
export default _default;
|
|
38
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
39
|
+
new (): {
|
|
40
|
+
$slots: S;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
@@ -3,6 +3,16 @@ export interface DsModalProps {
|
|
|
3
3
|
title?: string;
|
|
4
4
|
showClose?: boolean;
|
|
5
5
|
width?: string;
|
|
6
|
+
/** Explicit dialog height (any CSS length). Unset = content height. */
|
|
7
|
+
height?: string;
|
|
8
|
+
/** Top offset of the dialog inside the fixed backdrop (portal mode). */
|
|
9
|
+
top?: string;
|
|
10
|
+
/** Center the body text. */
|
|
11
|
+
center?: boolean;
|
|
12
|
+
/** false = render in-flow (no backdrop / portal / scroll-lock) for specimen cards. */
|
|
13
|
+
fixed?: boolean;
|
|
6
14
|
closeOnBackdrop?: boolean;
|
|
15
|
+
/** Whether pressing Escape emits close (portal mode). Default true. */
|
|
16
|
+
closeOnEscape?: boolean;
|
|
7
17
|
closeLabel?: string;
|
|
8
18
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
declare var
|
|
1
|
+
declare var __VLS_17: {}, __VLS_19: {};
|
|
2
2
|
type __VLS_Slots = {} & {
|
|
3
|
-
default?: (props: typeof
|
|
3
|
+
default?: (props: typeof __VLS_17) => any;
|
|
4
4
|
} & {
|
|
5
|
-
footer?: (props: typeof
|
|
5
|
+
footer?: (props: typeof __VLS_19) => any;
|
|
6
6
|
};
|
|
7
7
|
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
8
8
|
open: BooleanConstructor;
|
|
@@ -18,10 +18,27 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
18
18
|
type: StringConstructor;
|
|
19
19
|
default: string;
|
|
20
20
|
};
|
|
21
|
+
height: {
|
|
22
|
+
type: StringConstructor;
|
|
23
|
+
default: string;
|
|
24
|
+
};
|
|
25
|
+
top: {
|
|
26
|
+
type: StringConstructor;
|
|
27
|
+
default: string;
|
|
28
|
+
};
|
|
29
|
+
center: BooleanConstructor;
|
|
30
|
+
fixed: {
|
|
31
|
+
type: BooleanConstructor;
|
|
32
|
+
default: boolean;
|
|
33
|
+
};
|
|
21
34
|
closeOnBackdrop: {
|
|
22
35
|
type: BooleanConstructor;
|
|
23
36
|
default: boolean;
|
|
24
37
|
};
|
|
38
|
+
closeOnEscape: {
|
|
39
|
+
type: BooleanConstructor;
|
|
40
|
+
default: boolean;
|
|
41
|
+
};
|
|
25
42
|
closeLabel: {
|
|
26
43
|
type: StringConstructor;
|
|
27
44
|
default: string;
|
|
@@ -42,10 +59,27 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
42
59
|
type: StringConstructor;
|
|
43
60
|
default: string;
|
|
44
61
|
};
|
|
62
|
+
height: {
|
|
63
|
+
type: StringConstructor;
|
|
64
|
+
default: string;
|
|
65
|
+
};
|
|
66
|
+
top: {
|
|
67
|
+
type: StringConstructor;
|
|
68
|
+
default: string;
|
|
69
|
+
};
|
|
70
|
+
center: BooleanConstructor;
|
|
71
|
+
fixed: {
|
|
72
|
+
type: BooleanConstructor;
|
|
73
|
+
default: boolean;
|
|
74
|
+
};
|
|
45
75
|
closeOnBackdrop: {
|
|
46
76
|
type: BooleanConstructor;
|
|
47
77
|
default: boolean;
|
|
48
78
|
};
|
|
79
|
+
closeOnEscape: {
|
|
80
|
+
type: BooleanConstructor;
|
|
81
|
+
default: boolean;
|
|
82
|
+
};
|
|
49
83
|
closeLabel: {
|
|
50
84
|
type: StringConstructor;
|
|
51
85
|
default: string;
|
|
@@ -55,10 +89,15 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
55
89
|
}>, {
|
|
56
90
|
title: string;
|
|
57
91
|
width: string;
|
|
92
|
+
height: string;
|
|
58
93
|
closeLabel: string;
|
|
94
|
+
center: boolean;
|
|
95
|
+
top: string;
|
|
96
|
+
fixed: boolean;
|
|
59
97
|
showClose: boolean;
|
|
60
98
|
open: boolean;
|
|
61
99
|
closeOnBackdrop: boolean;
|
|
100
|
+
closeOnEscape: boolean;
|
|
62
101
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
63
102
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
64
103
|
export default _default;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export declare const DS_NOTIFICATION_TYPES: {
|
|
2
|
+
readonly SUCCESS: "success";
|
|
2
3
|
readonly INFO: "info";
|
|
3
4
|
readonly WARNING: "warning";
|
|
4
5
|
readonly ERROR: "error";
|
|
@@ -12,3 +13,10 @@ export declare const DS_NOTIFICATION_POSITIONS: {
|
|
|
12
13
|
};
|
|
13
14
|
export type DsNotificationPosition = (typeof DS_NOTIFICATION_POSITIONS)[keyof typeof DS_NOTIFICATION_POSITIONS];
|
|
14
15
|
export declare const DS_NOTIFICATION_ICONS: Record<DsNotificationType, string>;
|
|
16
|
+
export declare const DS_NOTIFICATION_LINK_TARGETS: {
|
|
17
|
+
readonly BLANK: "_blank";
|
|
18
|
+
readonly SELF: "_self";
|
|
19
|
+
readonly PARENT: "_parent";
|
|
20
|
+
readonly TOP: "_top";
|
|
21
|
+
};
|
|
22
|
+
export type DsNotificationLinkTarget = (typeof DS_NOTIFICATION_LINK_TARGETS)[keyof typeof DS_NOTIFICATION_LINK_TARGETS];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type PropType } from 'vue';
|
|
2
|
-
import { type DsNotificationType, type DsNotificationPosition } from './DsNotification.types';
|
|
2
|
+
import { type DsNotificationType, type DsNotificationPosition, type DsNotificationLinkTarget } from './DsNotification.types';
|
|
3
3
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
4
|
type: {
|
|
5
5
|
type: PropType<DsNotificationType>;
|
|
@@ -25,6 +25,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
25
25
|
type: StringConstructor;
|
|
26
26
|
default: string;
|
|
27
27
|
};
|
|
28
|
+
linkTarget: {
|
|
29
|
+
type: PropType<DsNotificationLinkTarget>;
|
|
30
|
+
default: "_blank";
|
|
31
|
+
};
|
|
28
32
|
showClose: {
|
|
29
33
|
type: BooleanConstructor;
|
|
30
34
|
default: boolean;
|
|
@@ -33,8 +37,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
33
37
|
type: StringConstructor;
|
|
34
38
|
default: string;
|
|
35
39
|
};
|
|
40
|
+
duration: {
|
|
41
|
+
type: NumberConstructor;
|
|
42
|
+
default: number;
|
|
43
|
+
};
|
|
36
44
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
37
45
|
close: (...args: any[]) => void;
|
|
46
|
+
navigate: (...args: any[]) => void;
|
|
38
47
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
39
48
|
type: {
|
|
40
49
|
type: PropType<DsNotificationType>;
|
|
@@ -60,6 +69,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
60
69
|
type: StringConstructor;
|
|
61
70
|
default: string;
|
|
62
71
|
};
|
|
72
|
+
linkTarget: {
|
|
73
|
+
type: PropType<DsNotificationLinkTarget>;
|
|
74
|
+
default: "_blank";
|
|
75
|
+
};
|
|
63
76
|
showClose: {
|
|
64
77
|
type: BooleanConstructor;
|
|
65
78
|
default: boolean;
|
|
@@ -68,16 +81,23 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
68
81
|
type: StringConstructor;
|
|
69
82
|
default: string;
|
|
70
83
|
};
|
|
84
|
+
duration: {
|
|
85
|
+
type: NumberConstructor;
|
|
86
|
+
default: number;
|
|
87
|
+
};
|
|
71
88
|
}>> & Readonly<{
|
|
72
89
|
onClose?: ((...args: any[]) => any) | undefined;
|
|
90
|
+
onNavigate?: ((...args: any[]) => any) | undefined;
|
|
73
91
|
}>, {
|
|
74
92
|
type: DsNotificationType;
|
|
75
93
|
link: string;
|
|
76
94
|
title: string;
|
|
77
95
|
closeLabel: string;
|
|
78
|
-
description: string;
|
|
79
96
|
position: DsNotificationPosition;
|
|
97
|
+
description: string;
|
|
98
|
+
duration: number;
|
|
80
99
|
linkTitle: string;
|
|
100
|
+
linkTarget: DsNotificationLinkTarget;
|
|
81
101
|
showClose: boolean;
|
|
82
102
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
83
103
|
export default _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface DsPaginatorProps {
|
|
2
|
+
total: number;
|
|
3
|
+
pageSize?: number;
|
|
4
|
+
currentPage?: number;
|
|
5
|
+
pageSizes?: number[];
|
|
6
|
+
limitMessage?: string;
|
|
7
|
+
pageSizeSuffix?: string;
|
|
8
|
+
prevLabel?: string;
|
|
9
|
+
nextLabel?: string;
|
|
10
|
+
paginationLabel?: string;
|
|
11
|
+
pageSizeLabel?: string;
|
|
12
|
+
}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { type PropType } from 'vue';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
3
|
+
total: {
|
|
4
|
+
type: NumberConstructor;
|
|
5
|
+
required: true;
|
|
6
|
+
};
|
|
7
|
+
pageSize: {
|
|
8
|
+
type: NumberConstructor;
|
|
9
|
+
default: number;
|
|
10
|
+
};
|
|
11
|
+
currentPage: {
|
|
12
|
+
type: NumberConstructor;
|
|
13
|
+
default: number;
|
|
14
|
+
};
|
|
15
|
+
pageSizes: {
|
|
16
|
+
type: PropType<number[]>;
|
|
17
|
+
default: () => number[];
|
|
18
|
+
};
|
|
19
|
+
limitMessage: {
|
|
20
|
+
type: StringConstructor;
|
|
21
|
+
default: string;
|
|
22
|
+
};
|
|
23
|
+
pageSizeSuffix: {
|
|
24
|
+
type: StringConstructor;
|
|
25
|
+
default: string;
|
|
26
|
+
};
|
|
27
|
+
prevLabel: {
|
|
28
|
+
type: StringConstructor;
|
|
29
|
+
default: string;
|
|
30
|
+
};
|
|
31
|
+
nextLabel: {
|
|
32
|
+
type: StringConstructor;
|
|
33
|
+
default: string;
|
|
34
|
+
};
|
|
35
|
+
paginationLabel: {
|
|
36
|
+
type: StringConstructor;
|
|
37
|
+
default: string;
|
|
38
|
+
};
|
|
39
|
+
pageSizeLabel: {
|
|
40
|
+
type: StringConstructor;
|
|
41
|
+
default: string;
|
|
42
|
+
};
|
|
43
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
44
|
+
"page-change": (...args: any[]) => void;
|
|
45
|
+
"page-size-change": (...args: any[]) => void;
|
|
46
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
47
|
+
total: {
|
|
48
|
+
type: NumberConstructor;
|
|
49
|
+
required: true;
|
|
50
|
+
};
|
|
51
|
+
pageSize: {
|
|
52
|
+
type: NumberConstructor;
|
|
53
|
+
default: number;
|
|
54
|
+
};
|
|
55
|
+
currentPage: {
|
|
56
|
+
type: NumberConstructor;
|
|
57
|
+
default: number;
|
|
58
|
+
};
|
|
59
|
+
pageSizes: {
|
|
60
|
+
type: PropType<number[]>;
|
|
61
|
+
default: () => number[];
|
|
62
|
+
};
|
|
63
|
+
limitMessage: {
|
|
64
|
+
type: StringConstructor;
|
|
65
|
+
default: string;
|
|
66
|
+
};
|
|
67
|
+
pageSizeSuffix: {
|
|
68
|
+
type: StringConstructor;
|
|
69
|
+
default: string;
|
|
70
|
+
};
|
|
71
|
+
prevLabel: {
|
|
72
|
+
type: StringConstructor;
|
|
73
|
+
default: string;
|
|
74
|
+
};
|
|
75
|
+
nextLabel: {
|
|
76
|
+
type: StringConstructor;
|
|
77
|
+
default: string;
|
|
78
|
+
};
|
|
79
|
+
paginationLabel: {
|
|
80
|
+
type: StringConstructor;
|
|
81
|
+
default: string;
|
|
82
|
+
};
|
|
83
|
+
pageSizeLabel: {
|
|
84
|
+
type: StringConstructor;
|
|
85
|
+
default: string;
|
|
86
|
+
};
|
|
87
|
+
}>> & Readonly<{
|
|
88
|
+
"onPage-change"?: ((...args: any[]) => any) | undefined;
|
|
89
|
+
"onPage-size-change"?: ((...args: any[]) => any) | undefined;
|
|
90
|
+
}>, {
|
|
91
|
+
pageSize: number;
|
|
92
|
+
currentPage: number;
|
|
93
|
+
pageSizes: number[];
|
|
94
|
+
limitMessage: string;
|
|
95
|
+
pageSizeSuffix: string;
|
|
96
|
+
prevLabel: string;
|
|
97
|
+
nextLabel: string;
|
|
98
|
+
paginationLabel: string;
|
|
99
|
+
pageSizeLabel: string;
|
|
100
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
101
|
+
export default _default;
|