@choosemycompany/ui 0.3.1 → 0.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/index.css +1 -1
- package/dist/index.d.ts +197 -20
- package/dist/index.js +3155 -790
- package/dist/index.umd.js +23 -2
- package/package.json +27 -21
package/dist/index.d.ts
CHANGED
|
@@ -1,39 +1,76 @@
|
|
|
1
|
+
import { ColumnDefinition } from './CmcTable.d.ts';
|
|
2
|
+
import { ColumnDefinition as ColumnDefinition_2 } from '../../Molecules/CmcTable/CmcTable';
|
|
1
3
|
import { ComponentOptionsMixin } from 'vue';
|
|
2
4
|
import { ComponentProvideOptions } from 'vue';
|
|
3
5
|
import { DefineComponent } from 'vue';
|
|
4
6
|
import { PublicProps } from 'vue';
|
|
7
|
+
import { Row } from './CmcTable.d.ts';
|
|
8
|
+
import { Row as Row_2 } from '../../Molecules/CmcTable/CmcTable';
|
|
5
9
|
|
|
6
10
|
declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
7
11
|
click: () => any;
|
|
8
12
|
}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
9
13
|
onClick?: (() => any) | undefined;
|
|
10
14
|
}>, {
|
|
11
|
-
|
|
15
|
+
loading: boolean;
|
|
12
16
|
kind: ButtonKind;
|
|
13
17
|
variant: ButtonVariant;
|
|
18
|
+
size: ButtonSize;
|
|
14
19
|
disabled: boolean;
|
|
15
|
-
loading: boolean;
|
|
16
20
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLButtonElement>;
|
|
17
21
|
|
|
18
22
|
declare const __VLS_component_2: DefineComponent<__VLS_Props_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_2> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
19
23
|
|
|
20
24
|
declare const __VLS_component_3: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
21
25
|
|
|
22
|
-
declare const __VLS_component_4: DefineComponent<
|
|
23
|
-
|
|
26
|
+
declare const __VLS_component_4: DefineComponent<__VLS_PublicProps_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
27
|
+
"update:modelValue": (value: string | number) => any;
|
|
28
|
+
}, string, PublicProps, Readonly<__VLS_PublicProps_2> & Readonly<{
|
|
29
|
+
"onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
|
|
30
|
+
}>, {
|
|
31
|
+
type: InputTextType;
|
|
32
|
+
required: boolean;
|
|
33
|
+
variant: InputTextVariant;
|
|
34
|
+
size: InputTextSize;
|
|
35
|
+
disabled: boolean;
|
|
24
36
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
25
37
|
|
|
26
|
-
declare const __VLS_component_5: DefineComponent<
|
|
38
|
+
declare const __VLS_component_5: DefineComponent<__VLS_Props_8, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_8> & Readonly<{}>, {
|
|
27
39
|
gap: ButtonGroupGap;
|
|
28
40
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
29
41
|
|
|
30
42
|
declare type __VLS_Props = {
|
|
31
|
-
kind
|
|
32
|
-
variant
|
|
33
|
-
size
|
|
43
|
+
kind?: ButtonKind;
|
|
44
|
+
variant?: ButtonVariant;
|
|
45
|
+
size?: ButtonSize;
|
|
34
46
|
icon?: IconName;
|
|
35
|
-
disabled
|
|
36
|
-
loading
|
|
47
|
+
disabled?: boolean;
|
|
48
|
+
loading?: boolean;
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
declare type __VLS_Props_10 = Props;
|
|
52
|
+
|
|
53
|
+
declare type __VLS_Props_11 = {
|
|
54
|
+
itemsPerPage: number;
|
|
55
|
+
currentPage: number;
|
|
56
|
+
rows?: Row_2[];
|
|
57
|
+
columns?: ColumnDefinition_2[];
|
|
58
|
+
totalItems?: number;
|
|
59
|
+
emptyText?: string;
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
declare type __VLS_Props_12 = {
|
|
63
|
+
steps: Step[];
|
|
64
|
+
current: number;
|
|
65
|
+
clickable?: boolean;
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
declare type __VLS_Props_13 = {
|
|
69
|
+
items: string[];
|
|
70
|
+
label?: string;
|
|
71
|
+
loading?: boolean;
|
|
72
|
+
placeholder?: string;
|
|
73
|
+
emptyValue?: string;
|
|
37
74
|
};
|
|
38
75
|
|
|
39
76
|
declare type __VLS_Props_2 = {
|
|
@@ -41,25 +78,67 @@ declare type __VLS_Props_2 = {
|
|
|
41
78
|
};
|
|
42
79
|
|
|
43
80
|
declare type __VLS_Props_3 = {
|
|
81
|
+
text: string;
|
|
44
82
|
status?: Status;
|
|
45
83
|
};
|
|
46
84
|
|
|
47
85
|
declare type __VLS_Props_4 = {
|
|
48
86
|
name: IconName;
|
|
49
|
-
size?: IconSize;
|
|
50
87
|
color?: IconColor;
|
|
51
88
|
};
|
|
52
89
|
|
|
53
90
|
declare type __VLS_Props_5 = {
|
|
54
|
-
|
|
91
|
+
size?: InputTextSize;
|
|
92
|
+
variant?: InputTextVariant;
|
|
93
|
+
placeholder?: string;
|
|
55
94
|
};
|
|
56
95
|
|
|
57
96
|
declare type __VLS_Props_6 = {
|
|
97
|
+
id: string;
|
|
98
|
+
label?: string;
|
|
99
|
+
placeholder?: string;
|
|
100
|
+
required?: boolean;
|
|
101
|
+
disabled?: boolean;
|
|
102
|
+
errorMessage?: string;
|
|
103
|
+
type?: InputTextType;
|
|
104
|
+
variant?: InputTextVariant;
|
|
105
|
+
size?: InputTextSize;
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
declare type __VLS_Props_7 = {
|
|
109
|
+
id: string;
|
|
110
|
+
options: SelectOption[];
|
|
111
|
+
label?: string;
|
|
112
|
+
placeholder?: string;
|
|
113
|
+
required?: boolean;
|
|
114
|
+
disabled?: boolean;
|
|
115
|
+
errorMessage?: string;
|
|
116
|
+
variant?: SelectVariant;
|
|
117
|
+
};
|
|
118
|
+
|
|
119
|
+
declare type __VLS_Props_8 = {
|
|
120
|
+
gap: ButtonGroupGap;
|
|
121
|
+
};
|
|
122
|
+
|
|
123
|
+
declare type __VLS_Props_9 = {
|
|
58
124
|
currentPage: number;
|
|
59
125
|
totalItems: number;
|
|
60
126
|
itemsPerPage: number;
|
|
127
|
+
visibleRange?: number;
|
|
61
128
|
};
|
|
62
129
|
|
|
130
|
+
declare type __VLS_PublicProps = {
|
|
131
|
+
modelValue?: string;
|
|
132
|
+
} & __VLS_Props_5;
|
|
133
|
+
|
|
134
|
+
declare type __VLS_PublicProps_2 = {
|
|
135
|
+
modelValue?: string | number;
|
|
136
|
+
} & __VLS_Props_6;
|
|
137
|
+
|
|
138
|
+
declare type __VLS_PublicProps_3 = {
|
|
139
|
+
modelValue?: string | number;
|
|
140
|
+
} & __VLS_Props_7;
|
|
141
|
+
|
|
63
142
|
declare function __VLS_template(): {
|
|
64
143
|
attrs: Partial<{}>;
|
|
65
144
|
slots: {
|
|
@@ -95,7 +174,8 @@ declare function __VLS_template_3(): {
|
|
|
95
174
|
declare function __VLS_template_4(): {
|
|
96
175
|
attrs: Partial<{}>;
|
|
97
176
|
slots: {
|
|
98
|
-
|
|
177
|
+
left?(_: {}): any;
|
|
178
|
+
right?(_: {}): any;
|
|
99
179
|
};
|
|
100
180
|
refs: {};
|
|
101
181
|
rootEl: HTMLDivElement;
|
|
@@ -177,6 +257,15 @@ export declare const buttonVariantOptions: {
|
|
|
177
257
|
readonly danger: "danger";
|
|
178
258
|
};
|
|
179
259
|
|
|
260
|
+
export declare const CmcAutocomplete: DefineComponent<__VLS_Props_13, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_13> & Readonly<{}>, {
|
|
261
|
+
loading: boolean;
|
|
262
|
+
placeholder: string;
|
|
263
|
+
label: string;
|
|
264
|
+
emptyValue: string;
|
|
265
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
266
|
+
autocompleteRef: HTMLDivElement;
|
|
267
|
+
}, HTMLDivElement>;
|
|
268
|
+
|
|
180
269
|
export declare const CmcButton: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
181
270
|
|
|
182
271
|
export declare const CmcButtonGroup: __VLS_WithTemplateSlots_5<typeof __VLS_component_5, __VLS_TemplateResult_5["slots"]>;
|
|
@@ -185,20 +274,66 @@ export declare const CmcHeading: __VLS_WithTemplateSlots_2<typeof __VLS_componen
|
|
|
185
274
|
|
|
186
275
|
export declare const CmcIcon: DefineComponent<__VLS_Props_4, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_4> & Readonly<{}>, {
|
|
187
276
|
name: IconName;
|
|
188
|
-
size: IconSize;
|
|
189
|
-
color: IconColor;
|
|
190
277
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
191
278
|
|
|
192
|
-
export declare const
|
|
279
|
+
export declare const CmcInputText: __VLS_WithTemplateSlots_4<typeof __VLS_component_4, __VLS_TemplateResult_4["slots"]>;
|
|
280
|
+
|
|
281
|
+
export declare const CmcLoading: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLImageElement>;
|
|
282
|
+
|
|
283
|
+
export declare const CmcPagination: DefineComponent<__VLS_Props_9, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
193
284
|
"update:currentPage": (page: number) => any;
|
|
194
|
-
}, string, PublicProps, Readonly<
|
|
285
|
+
}, string, PublicProps, Readonly<__VLS_Props_9> & Readonly<{
|
|
195
286
|
"onUpdate:currentPage"?: ((page: number) => any) | undefined;
|
|
196
287
|
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLElement>;
|
|
197
288
|
|
|
198
|
-
export declare const
|
|
289
|
+
export declare const CmcSearch: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
290
|
+
"update:modelValue": (value: string) => any;
|
|
291
|
+
}, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
292
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
293
|
+
}>, {
|
|
294
|
+
placeholder: string;
|
|
295
|
+
size: InputTextSize;
|
|
296
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
297
|
+
|
|
298
|
+
export declare const CmcSelect: DefineComponent<__VLS_PublicProps_3, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
299
|
+
"update:modelValue": (value: string | number) => any;
|
|
300
|
+
}, string, PublicProps, Readonly<__VLS_PublicProps_3> & Readonly<{
|
|
301
|
+
"onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
|
|
302
|
+
}>, {
|
|
303
|
+
required: boolean;
|
|
304
|
+
variant: SelectVariant;
|
|
305
|
+
disabled: boolean;
|
|
306
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
307
|
+
|
|
308
|
+
export declare const CmcStatus: DefineComponent<__VLS_Props_3, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_3> & Readonly<{}>, {
|
|
309
|
+
status: Status;
|
|
310
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
311
|
+
|
|
312
|
+
export declare const CmcTable: DefineComponent<__VLS_Props_10, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_10> & Readonly<{}>, {
|
|
313
|
+
rows: Row[];
|
|
314
|
+
emptyText: string;
|
|
315
|
+
columns: ColumnDefinition[];
|
|
316
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLTableElement>;
|
|
317
|
+
|
|
318
|
+
export declare const CmcTablePagination: DefineComponent<__VLS_Props_11, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
319
|
+
"update:currentPage": (page: number) => any;
|
|
320
|
+
}, string, PublicProps, Readonly<__VLS_Props_11> & Readonly<{
|
|
321
|
+
"onUpdate:currentPage"?: ((page: number) => any) | undefined;
|
|
322
|
+
}>, {
|
|
323
|
+
currentPage: number;
|
|
324
|
+
itemsPerPage: number;
|
|
325
|
+
rows: Row_2[];
|
|
326
|
+
columns: ColumnDefinition_2[];
|
|
327
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
199
328
|
|
|
200
329
|
export declare const CmcTitle: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
|
|
201
330
|
|
|
331
|
+
export declare const CmcWizard: DefineComponent<__VLS_Props_12, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
332
|
+
"update:current": (value: number) => any;
|
|
333
|
+
}, string, PublicProps, Readonly<__VLS_Props_12> & Readonly<{
|
|
334
|
+
"onUpdate:current"?: ((value: number) => any) | undefined;
|
|
335
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
336
|
+
|
|
202
337
|
export declare const headingLevelOptions: {
|
|
203
338
|
readonly h1: "h1";
|
|
204
339
|
readonly h2: "h2";
|
|
@@ -218,12 +353,54 @@ declare type IconName = keyof typeof iconNameOptions;
|
|
|
218
353
|
|
|
219
354
|
export declare const iconNameOptions: Record<string, string>;
|
|
220
355
|
|
|
221
|
-
declare type
|
|
356
|
+
declare type InputTextSize = keyof typeof inputTextSizeOptions;
|
|
357
|
+
|
|
358
|
+
export declare const inputTextSizeOptions: {
|
|
359
|
+
readonly small: "small";
|
|
360
|
+
readonly medium: "medium";
|
|
361
|
+
};
|
|
362
|
+
|
|
363
|
+
declare type InputTextType = keyof typeof inputTextTypeOptions;
|
|
364
|
+
|
|
365
|
+
export declare const inputTextTypeOptions: {
|
|
366
|
+
readonly text: "text";
|
|
367
|
+
readonly search: "search";
|
|
368
|
+
};
|
|
369
|
+
|
|
370
|
+
declare type InputTextVariant = keyof typeof inputTextVariantOptions;
|
|
222
371
|
|
|
223
|
-
export declare const
|
|
372
|
+
export declare const inputTextVariantOptions: {
|
|
373
|
+
readonly outlined: "outlined";
|
|
374
|
+
readonly filled: "filled";
|
|
375
|
+
readonly underline: "underline";
|
|
376
|
+
};
|
|
377
|
+
|
|
378
|
+
declare type Props<TRow extends Row = Row> = {
|
|
379
|
+
rows?: TRow[];
|
|
380
|
+
columns?: ColumnDefinition[];
|
|
381
|
+
emptyText?: string;
|
|
382
|
+
};
|
|
383
|
+
|
|
384
|
+
declare interface SelectOption {
|
|
385
|
+
value: string | number;
|
|
386
|
+
label: string;
|
|
387
|
+
disabled?: boolean;
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
declare type SelectVariant = keyof typeof selectVariantOptions;
|
|
391
|
+
|
|
392
|
+
export declare const selectVariantOptions: {
|
|
393
|
+
readonly outlined: "outlined";
|
|
394
|
+
readonly filled: "filled";
|
|
395
|
+
readonly underline: "underline";
|
|
396
|
+
};
|
|
224
397
|
|
|
225
398
|
declare type Status = keyof typeof statusOptions;
|
|
226
399
|
|
|
227
400
|
export declare const statusOptions: Record<string, string>;
|
|
228
401
|
|
|
402
|
+
declare type Step = {
|
|
403
|
+
label: string;
|
|
404
|
+
};
|
|
405
|
+
|
|
229
406
|
export { }
|