@aminnausin/cedar-ui 0.0.1 → 0.0.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/LICENSE +21 -0
- package/README.md +26 -0
- package/dist/cedar-ui.mjs +721 -3047
- package/dist/cedar-ui.umd.js +1 -13
- package/dist/index.d.ts +2 -357
- package/package.json +61 -61
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { AllowedComponentProps } from 'vue';
|
|
2
1
|
import { Component } from 'vue';
|
|
3
|
-
import { ComponentCustomProps } from 'vue';
|
|
4
2
|
import { ComponentOptions } from 'vue';
|
|
5
3
|
import { ComponentOptionsMixin } from 'vue';
|
|
6
4
|
import { ComponentProvideOptions } from 'vue';
|
|
@@ -13,291 +11,7 @@ import { ModelRef } from 'vue';
|
|
|
13
11
|
import { PublicProps } from 'vue';
|
|
14
12
|
import { Ref } from 'vue';
|
|
15
13
|
import { ShallowRef } from 'vue';
|
|
16
|
-
import { ShallowUnwrapRef } from 'vue';
|
|
17
14
|
import { UnwrapRef } from 'vue';
|
|
18
|
-
import { VNode } from 'vue';
|
|
19
|
-
import { VNodeProps } from 'vue';
|
|
20
|
-
|
|
21
|
-
declare const __VLS_component: DefineComponent<__VLS_Props_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_2> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
22
|
-
|
|
23
|
-
declare const __VLS_component_2: DefineComponent<{
|
|
24
|
-
label?: any;
|
|
25
|
-
colour?: any;
|
|
26
|
-
textClass?: any;
|
|
27
|
-
URL?: any;
|
|
28
|
-
removeable?: any;
|
|
29
|
-
}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{
|
|
30
|
-
label?: any;
|
|
31
|
-
colour?: any;
|
|
32
|
-
textClass?: any;
|
|
33
|
-
URL?: any;
|
|
34
|
-
removeable?: any;
|
|
35
|
-
}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
36
|
-
|
|
37
|
-
declare const __VLS_component_3: DefineComponent<__VLS_Props_4, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_4> & Readonly<{}>, {
|
|
38
|
-
hoverCardDelay: number;
|
|
39
|
-
hoverCardLeaveDelay: number;
|
|
40
|
-
icon: Component;
|
|
41
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
42
|
-
|
|
43
|
-
declare const __VLS_component_4: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLElement>;
|
|
44
|
-
|
|
45
|
-
declare const __VLS_component_5: DefineComponent<__VLS_Props_5, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_5> & Readonly<{}>, {
|
|
46
|
-
disabled: boolean;
|
|
47
|
-
hoverCardDelay: number;
|
|
48
|
-
hoverCardLeaveDelay: number;
|
|
49
|
-
icon: Component;
|
|
50
|
-
margin: number;
|
|
51
|
-
paddingLeft: number;
|
|
52
|
-
scrollContainer: "body" | "window";
|
|
53
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
54
|
-
|
|
55
|
-
declare const __VLS_component_6: DefineComponent<__VLS_Props_6, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_6> & Readonly<{}>, {
|
|
56
|
-
type: "button" | "submit" | "reset";
|
|
57
|
-
disabled: boolean;
|
|
58
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLButtonElement>;
|
|
59
|
-
|
|
60
|
-
declare const __VLS_component_7: DefineComponent<__VLS_Props_9, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_9> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
61
|
-
modalTitle: HTMLHeadingElement;
|
|
62
|
-
}, any>;
|
|
63
|
-
|
|
64
|
-
declare const __VLS_component_8: DefineComponent<__VLS_Props_10, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_10> & Readonly<{}>, {
|
|
65
|
-
disabled: boolean;
|
|
66
|
-
underline: boolean;
|
|
67
|
-
sticky: boolean;
|
|
68
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLLIElement>;
|
|
69
|
-
|
|
70
|
-
declare type __VLS_PrettifyLocal<T> = {
|
|
71
|
-
[K in keyof T]: T[K];
|
|
72
|
-
} & {};
|
|
73
|
-
|
|
74
|
-
declare type __VLS_Props = {
|
|
75
|
-
field: FormField;
|
|
76
|
-
textSize?: string;
|
|
77
|
-
class?: string;
|
|
78
|
-
};
|
|
79
|
-
|
|
80
|
-
declare type __VLS_Props_10 = {
|
|
81
|
-
currentPage?: number;
|
|
82
|
-
pageNumber?: number;
|
|
83
|
-
text?: string;
|
|
84
|
-
underline?: boolean;
|
|
85
|
-
sticky?: boolean;
|
|
86
|
-
disabled?: boolean;
|
|
87
|
-
};
|
|
88
|
-
|
|
89
|
-
declare type __VLS_Props_11 = {
|
|
90
|
-
listLength: number;
|
|
91
|
-
currentPage: number;
|
|
92
|
-
itemsPerPage: number;
|
|
93
|
-
useIcons: boolean;
|
|
94
|
-
maxVisiblePages?: number;
|
|
95
|
-
};
|
|
96
|
-
|
|
97
|
-
declare type __VLS_Props_2 = {
|
|
98
|
-
errors: Record<string, any>;
|
|
99
|
-
fieldName?: string;
|
|
100
|
-
};
|
|
101
|
-
|
|
102
|
-
declare type __VLS_Props_3 = {
|
|
103
|
-
name?: string;
|
|
104
|
-
text?: string;
|
|
105
|
-
subtext?: string;
|
|
106
|
-
class?: string;
|
|
107
|
-
subtextClass?: string;
|
|
108
|
-
};
|
|
109
|
-
|
|
110
|
-
declare type __VLS_Props_4 = {
|
|
111
|
-
content?: string;
|
|
112
|
-
positionClasses?: string;
|
|
113
|
-
hoverCardDelay?: number;
|
|
114
|
-
hoverCardLeaveDelay?: number;
|
|
115
|
-
iconHidden?: boolean;
|
|
116
|
-
icon?: Component;
|
|
117
|
-
};
|
|
118
|
-
|
|
119
|
-
declare type __VLS_Props_5 = {
|
|
120
|
-
content?: string;
|
|
121
|
-
contentTitle?: string;
|
|
122
|
-
positionClasses?: string;
|
|
123
|
-
hoverCardDelay?: number;
|
|
124
|
-
hoverCardLeaveDelay?: number;
|
|
125
|
-
margin?: number;
|
|
126
|
-
iconHidden?: boolean;
|
|
127
|
-
paddingLeft?: number;
|
|
128
|
-
scrollContainer?: 'body' | 'window';
|
|
129
|
-
disabled?: boolean;
|
|
130
|
-
icon?: Component;
|
|
131
|
-
};
|
|
132
|
-
|
|
133
|
-
declare type __VLS_Props_6 = {
|
|
134
|
-
disabled?: boolean;
|
|
135
|
-
type?: 'button' | 'submit' | 'reset';
|
|
136
|
-
variant?: 'default' | 'submit' | 'reset' | 'auth';
|
|
137
|
-
};
|
|
138
|
-
|
|
139
|
-
declare type __VLS_Props_7 = {
|
|
140
|
-
field: FormField;
|
|
141
|
-
};
|
|
142
|
-
|
|
143
|
-
declare type __VLS_Props_8 = {
|
|
144
|
-
onSuccess?: () => void;
|
|
145
|
-
};
|
|
146
|
-
|
|
147
|
-
declare type __VLS_Props_9 = {
|
|
148
|
-
modal: ReturnType<typeof createModalCore>;
|
|
149
|
-
};
|
|
150
|
-
|
|
151
|
-
declare type __VLS_PublicProps = {
|
|
152
|
-
modelValue?: any;
|
|
153
|
-
} & __VLS_Props_7;
|
|
154
|
-
|
|
155
|
-
declare function __VLS_template(): {
|
|
156
|
-
attrs: Partial<{}>;
|
|
157
|
-
slots: {
|
|
158
|
-
default?(_: {}): any;
|
|
159
|
-
};
|
|
160
|
-
refs: {};
|
|
161
|
-
rootEl: any;
|
|
162
|
-
};
|
|
163
|
-
|
|
164
|
-
declare function __VLS_template_2(): {
|
|
165
|
-
attrs: Partial<{}>;
|
|
166
|
-
slots: {
|
|
167
|
-
content?(_: {}): any;
|
|
168
|
-
content?(_: {}): any;
|
|
169
|
-
};
|
|
170
|
-
refs: {};
|
|
171
|
-
rootEl: any;
|
|
172
|
-
};
|
|
173
|
-
|
|
174
|
-
declare function __VLS_template_3(): {
|
|
175
|
-
attrs: Partial<{}>;
|
|
176
|
-
slots: {
|
|
177
|
-
trigger?(_: {}): any;
|
|
178
|
-
icon?(_: {}): any;
|
|
179
|
-
content?(_: {}): any;
|
|
180
|
-
};
|
|
181
|
-
refs: {};
|
|
182
|
-
rootEl: HTMLDivElement;
|
|
183
|
-
};
|
|
184
|
-
|
|
185
|
-
declare function __VLS_template_4(): {
|
|
186
|
-
attrs: Partial<{}>;
|
|
187
|
-
slots: {
|
|
188
|
-
heading?(_: {}): any;
|
|
189
|
-
content?(_: {}): any;
|
|
190
|
-
};
|
|
191
|
-
refs: {};
|
|
192
|
-
rootEl: HTMLElement;
|
|
193
|
-
};
|
|
194
|
-
|
|
195
|
-
declare function __VLS_template_5(): {
|
|
196
|
-
attrs: Partial<{}>;
|
|
197
|
-
slots: {
|
|
198
|
-
trigger?(_: {}): any;
|
|
199
|
-
icon?(_: {}): any;
|
|
200
|
-
content?(_: {}): any;
|
|
201
|
-
};
|
|
202
|
-
refs: {};
|
|
203
|
-
rootEl: HTMLDivElement;
|
|
204
|
-
};
|
|
205
|
-
|
|
206
|
-
declare function __VLS_template_6(): {
|
|
207
|
-
attrs: Partial<{}>;
|
|
208
|
-
slots: {
|
|
209
|
-
text?(_: {}): any;
|
|
210
|
-
default?(_: {}): any;
|
|
211
|
-
};
|
|
212
|
-
refs: {};
|
|
213
|
-
rootEl: HTMLButtonElement;
|
|
214
|
-
};
|
|
215
|
-
|
|
216
|
-
declare function __VLS_template_7(): {
|
|
217
|
-
attrs: Partial<{}>;
|
|
218
|
-
slots: {
|
|
219
|
-
title?(_: {}): any;
|
|
220
|
-
description?(_: {}): any;
|
|
221
|
-
default?(_: {}): any;
|
|
222
|
-
};
|
|
223
|
-
refs: {
|
|
224
|
-
modalTitle: HTMLHeadingElement;
|
|
225
|
-
};
|
|
226
|
-
rootEl: any;
|
|
227
|
-
};
|
|
228
|
-
|
|
229
|
-
declare function __VLS_template_8(): {
|
|
230
|
-
attrs: Partial<{}>;
|
|
231
|
-
slots: {
|
|
232
|
-
content?(_: {}): any;
|
|
233
|
-
};
|
|
234
|
-
refs: {};
|
|
235
|
-
rootEl: HTMLLIElement;
|
|
236
|
-
};
|
|
237
|
-
|
|
238
|
-
declare type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
239
|
-
|
|
240
|
-
declare type __VLS_TemplateResult_2 = ReturnType<typeof __VLS_template_2>;
|
|
241
|
-
|
|
242
|
-
declare type __VLS_TemplateResult_3 = ReturnType<typeof __VLS_template_3>;
|
|
243
|
-
|
|
244
|
-
declare type __VLS_TemplateResult_4 = ReturnType<typeof __VLS_template_4>;
|
|
245
|
-
|
|
246
|
-
declare type __VLS_TemplateResult_5 = ReturnType<typeof __VLS_template_5>;
|
|
247
|
-
|
|
248
|
-
declare type __VLS_TemplateResult_6 = ReturnType<typeof __VLS_template_6>;
|
|
249
|
-
|
|
250
|
-
declare type __VLS_TemplateResult_7 = ReturnType<typeof __VLS_template_7>;
|
|
251
|
-
|
|
252
|
-
declare type __VLS_TemplateResult_8 = ReturnType<typeof __VLS_template_8>;
|
|
253
|
-
|
|
254
|
-
declare type __VLS_WithTemplateSlots<T, S> = T & {
|
|
255
|
-
new (): {
|
|
256
|
-
$slots: S;
|
|
257
|
-
};
|
|
258
|
-
};
|
|
259
|
-
|
|
260
|
-
declare type __VLS_WithTemplateSlots_2<T, S> = T & {
|
|
261
|
-
new (): {
|
|
262
|
-
$slots: S;
|
|
263
|
-
};
|
|
264
|
-
};
|
|
265
|
-
|
|
266
|
-
declare type __VLS_WithTemplateSlots_3<T, S> = T & {
|
|
267
|
-
new (): {
|
|
268
|
-
$slots: S;
|
|
269
|
-
};
|
|
270
|
-
};
|
|
271
|
-
|
|
272
|
-
declare type __VLS_WithTemplateSlots_4<T, S> = T & {
|
|
273
|
-
new (): {
|
|
274
|
-
$slots: S;
|
|
275
|
-
};
|
|
276
|
-
};
|
|
277
|
-
|
|
278
|
-
declare type __VLS_WithTemplateSlots_5<T, S> = T & {
|
|
279
|
-
new (): {
|
|
280
|
-
$slots: S;
|
|
281
|
-
};
|
|
282
|
-
};
|
|
283
|
-
|
|
284
|
-
declare type __VLS_WithTemplateSlots_6<T, S> = T & {
|
|
285
|
-
new (): {
|
|
286
|
-
$slots: S;
|
|
287
|
-
};
|
|
288
|
-
};
|
|
289
|
-
|
|
290
|
-
declare type __VLS_WithTemplateSlots_7<T, S> = T & {
|
|
291
|
-
new (): {
|
|
292
|
-
$slots: S;
|
|
293
|
-
};
|
|
294
|
-
};
|
|
295
|
-
|
|
296
|
-
declare type __VLS_WithTemplateSlots_8<T, S> = T & {
|
|
297
|
-
new (): {
|
|
298
|
-
$slots: S;
|
|
299
|
-
};
|
|
300
|
-
};
|
|
301
15
|
|
|
302
16
|
export declare interface AccordionItem {
|
|
303
17
|
id: string;
|
|
@@ -305,18 +19,12 @@ export declare interface AccordionItem {
|
|
|
305
19
|
content: string;
|
|
306
20
|
}
|
|
307
21
|
|
|
308
|
-
export declare const BaseModal: __VLS_WithTemplateSlots_7<typeof __VLS_component_7, __VLS_TemplateResult_7["slots"]>;
|
|
309
|
-
|
|
310
22
|
export declare interface BreadCrumbItem {
|
|
311
23
|
name: string;
|
|
312
24
|
url: string;
|
|
313
25
|
icon?: Component;
|
|
314
26
|
}
|
|
315
27
|
|
|
316
|
-
export declare const ButtonForm: __VLS_WithTemplateSlots_6<typeof __VLS_component_6, __VLS_TemplateResult_6["slots"]>;
|
|
317
|
-
|
|
318
|
-
export declare const ChipTag: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
|
|
319
|
-
|
|
320
28
|
export declare const CompareStrategies: {
|
|
321
29
|
stringInsensitive: (a: any, b: any) => number;
|
|
322
30
|
date: (a: any, b: any) => number;
|
|
@@ -373,8 +81,6 @@ declare interface DatePickerProps {
|
|
|
373
81
|
|
|
374
82
|
export declare const DEFAULT_GAP = 16;
|
|
375
83
|
|
|
376
|
-
export declare const DeleteAccountModal: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
377
|
-
|
|
378
84
|
export declare interface DropdownMenuItem {
|
|
379
85
|
name: string;
|
|
380
86
|
url?: string;
|
|
@@ -397,8 +103,6 @@ export declare interface ExternalToast {
|
|
|
397
103
|
|
|
398
104
|
export declare type FieldType = 'text' | 'textArea' | 'number' | 'date' | 'url' | 'multi' | 'select' | 'password';
|
|
399
105
|
|
|
400
|
-
export declare const FormErrorList: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
401
|
-
|
|
402
106
|
export declare interface FormField {
|
|
403
107
|
name: string;
|
|
404
108
|
text?: string;
|
|
@@ -429,14 +133,6 @@ export declare interface FormHooks {
|
|
|
429
133
|
onFinish?: () => any;
|
|
430
134
|
}
|
|
431
135
|
|
|
432
|
-
export declare const FormInput: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
433
|
-
"update:modelValue": (value: any) => any;
|
|
434
|
-
}, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
435
|
-
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
436
|
-
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLInputElement>;
|
|
437
|
-
|
|
438
|
-
export declare const FormInputLabel: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
439
|
-
|
|
440
136
|
export declare interface FormState<T> {
|
|
441
137
|
fields: FormFields<T>;
|
|
442
138
|
errors: {
|
|
@@ -455,16 +151,8 @@ export declare interface FormState<T> {
|
|
|
455
151
|
}) => void;
|
|
456
152
|
}
|
|
457
153
|
|
|
458
|
-
export declare const GlobalModal: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
459
|
-
|
|
460
|
-
export declare const HoverCard: __VLS_WithTemplateSlots_5<typeof __VLS_component_5, __VLS_TemplateResult_5["slots"]>;
|
|
461
|
-
|
|
462
|
-
export declare const InputLabel: DefineComponent<__VLS_Props_3, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_3> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
463
|
-
|
|
464
154
|
export declare function isInputLikeElement(element: EventTarget | null, key: string): boolean;
|
|
465
155
|
|
|
466
|
-
export declare const LogoutSessionsModal: DefineComponent<__VLS_Props_8, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_8> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
467
|
-
|
|
468
156
|
export declare interface Message<T extends Component = Component> {
|
|
469
157
|
id: string;
|
|
470
158
|
title: string;
|
|
@@ -519,8 +207,6 @@ export declare interface PopoverItem {
|
|
|
519
207
|
selectedIcon?: Component;
|
|
520
208
|
}
|
|
521
209
|
|
|
522
|
-
export declare const RelativeHoverCard: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
|
|
523
|
-
|
|
524
210
|
export declare const SCALE_STEP = 0.06;
|
|
525
211
|
|
|
526
212
|
export declare interface SelectItem {
|
|
@@ -529,8 +215,6 @@ export declare interface SelectItem {
|
|
|
529
215
|
relationships?: any;
|
|
530
216
|
}
|
|
531
217
|
|
|
532
|
-
export declare const SettingsCard: __VLS_WithTemplateSlots_4<typeof __VLS_component_4, __VLS_TemplateResult_4["slots"]>;
|
|
533
|
-
|
|
534
218
|
export declare type SortDir = 1 | -1;
|
|
535
219
|
|
|
536
220
|
export declare interface SortKey<T> {
|
|
@@ -546,45 +230,6 @@ export declare const SWIPE_THRESHOLD = 45;
|
|
|
546
230
|
|
|
547
231
|
export declare type SwipeDirection = 'top' | 'right' | 'bottom' | 'left';
|
|
548
232
|
|
|
549
|
-
export declare const TableBase: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
550
|
-
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
551
|
-
readonly onSearch?: ((value: string) => any) | undefined;
|
|
552
|
-
readonly "onUpdate:modelValue"?: ((value: string | undefined) => any) | undefined;
|
|
553
|
-
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onUpdate:modelValue" | "onSearch"> & ({
|
|
554
|
-
modelValue?: string | undefined;
|
|
555
|
-
} & TableProps<T>) & Partial<{}>> & PublicProps;
|
|
556
|
-
expose(exposed: ShallowUnwrapRef<{}>): void;
|
|
557
|
-
attrs: any;
|
|
558
|
-
slots: Readonly<{
|
|
559
|
-
row(props: {
|
|
560
|
-
row: T;
|
|
561
|
-
index: number;
|
|
562
|
-
selectedID: any;
|
|
563
|
-
}): any;
|
|
564
|
-
}> & {
|
|
565
|
-
row(props: {
|
|
566
|
-
row: T;
|
|
567
|
-
index: number;
|
|
568
|
-
selectedID: any;
|
|
569
|
-
}): any;
|
|
570
|
-
};
|
|
571
|
-
emit: ((e: "search", value: string) => void) & ((evt: "update:modelValue", value: string | undefined) => void);
|
|
572
|
-
}>) => VNode & {
|
|
573
|
-
__ctx?: Awaited<typeof __VLS_setup>;
|
|
574
|
-
};
|
|
575
|
-
|
|
576
|
-
export declare const TablePagination: DefineComponent<__VLS_Props_11, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
577
|
-
setPage: (...args: any[]) => void;
|
|
578
|
-
}, string, PublicProps, Readonly<__VLS_Props_11> & Readonly<{
|
|
579
|
-
onSetPage?: ((...args: any[]) => any) | undefined;
|
|
580
|
-
}>, {
|
|
581
|
-
maxVisiblePages: number;
|
|
582
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
583
|
-
$element: HTMLDivElement;
|
|
584
|
-
}, HTMLDivElement>;
|
|
585
|
-
|
|
586
|
-
export declare const TablePaginationButton: __VLS_WithTemplateSlots_8<typeof __VLS_component_8, __VLS_TemplateResult_8["slots"]>;
|
|
587
|
-
|
|
588
233
|
export declare interface TableProps<T> {
|
|
589
234
|
useToolbar?: boolean;
|
|
590
235
|
usePagination?: boolean;
|
|
@@ -710,7 +355,7 @@ export declare function useDatePicker(props: DatePickerProps, datePickerInput: R
|
|
|
710
355
|
datePickerCalendar: Ref<HTMLElement | null, HTMLElement | null>;
|
|
711
356
|
datePickerOpen: Ref<boolean, boolean>;
|
|
712
357
|
datePickerValue: Ref<string, string>;
|
|
713
|
-
datePickerPanel: Ref<"
|
|
358
|
+
datePickerPanel: Ref<"Y" | "M" | "D", "Y" | "M" | "D">;
|
|
714
359
|
datePickerFormat: Ref<"F d, Y" | "d M, Y" | "Y M d" | "MM-DD-YYYY" | "DD-MM-YYYY" | "YYYY-MM-DD" | "D d M, Y", "F d, Y" | "d M, Y" | "Y M d" | "MM-DD-YYYY" | "DD-MM-YYYY" | "YYYY-MM-DD" | "D d M, Y">;
|
|
715
360
|
datePickerMonth: Ref<number, number>;
|
|
716
361
|
datePickerMonthVerbose: ComputedRef<string>;
|
|
@@ -721,7 +366,7 @@ export declare function useDatePicker(props: DatePickerProps, datePickerInput: R
|
|
|
721
366
|
datePickerBlankDaysInMonth: Ref<number[], number[]>;
|
|
722
367
|
datePickerMonthNames: string[];
|
|
723
368
|
datePickerDays: string[];
|
|
724
|
-
datePickerPosition: Ref<"
|
|
369
|
+
datePickerPosition: Ref<"bottom" | "top", "bottom" | "top">;
|
|
725
370
|
toggleDatePicker: (state?: boolean) => void;
|
|
726
371
|
datePickerValueClicked: (value: number) => void;
|
|
727
372
|
datePickerPrevious: () => void;
|
package/package.json
CHANGED
|
@@ -1,61 +1,61 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@aminnausin/cedar-ui",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"main": "./dist/cedar-ui.umd.mjs",
|
|
5
|
-
"module": "./dist/cedar-ui.mjs",
|
|
6
|
-
"types": "./dist/index.d.ts",
|
|
7
|
-
"exports": {
|
|
8
|
-
".": {
|
|
9
|
-
"types": "./dist/index.d.ts",
|
|
10
|
-
"import": "./dist/cedar-ui.mjs",
|
|
11
|
-
"require": "./dist/cedar-ui.umd.mjs"
|
|
12
|
-
}
|
|
13
|
-
},
|
|
14
|
-
"files": [
|
|
15
|
-
"./dist"
|
|
16
|
-
],
|
|
17
|
-
"scripts": {
|
|
18
|
-
"dev": "vite",
|
|
19
|
-
"build": "npm run type-check && npm run build-only",
|
|
20
|
-
"preview": "vite preview",
|
|
21
|
-
"build-only": "vite build",
|
|
22
|
-
"type-check": "vue-tsc --build",
|
|
23
|
-
"lint": "eslint . --fix",
|
|
24
|
-
"format": "prettier --write src/"
|
|
25
|
-
},
|
|
26
|
-
"dependencies": {
|
|
27
|
-
"@tailwindcss/aspect-ratio": "^0.4.2",
|
|
28
|
-
"@tailwindcss/forms": "^0.5.
|
|
29
|
-
"@vueuse/components": "^10.11.
|
|
30
|
-
"@vueuse/core": "^10.11.
|
|
31
|
-
"@vueuse/integrations": "^11.
|
|
32
|
-
"fast-deep-equal": "^3.1.3",
|
|
33
|
-
"focus-trap": "^7.5
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
},
|
|
37
|
-
"peerDependencies": {
|
|
38
|
-
"vue": "^3.5.13",
|
|
39
|
-
"vue-router": "^4.5.0"
|
|
40
|
-
},
|
|
41
|
-
"devDependencies": {
|
|
42
|
-
"@eslint/js": "^9.
|
|
43
|
-
"@iconify/vue": "^5.0.0",
|
|
44
|
-
"@tsconfig/node22": "^22.0.
|
|
45
|
-
"@types/node": "^22.
|
|
46
|
-
"@vitejs/plugin-vue": "^5.2.
|
|
47
|
-
"@vue/eslint-config-prettier": "^10.
|
|
48
|
-
"@vue/eslint-config-typescript": "^14.
|
|
49
|
-
"@vue/tsconfig": "^0.7.0",
|
|
50
|
-
"autoprefixer": "^10.4.
|
|
51
|
-
"eslint": "^9.
|
|
52
|
-
"eslint-plugin-vue": "~10.
|
|
53
|
-
"postcss": "^8.
|
|
54
|
-
"prettier": "3.5.3",
|
|
55
|
-
"typescript": "~5.
|
|
56
|
-
"vite": "^6.
|
|
57
|
-
"vite-plugin-dts": "^4.5.4",
|
|
58
|
-
"vite-plugin-vue-devtools": "^7.
|
|
59
|
-
"vue-tsc": "^2.2.
|
|
60
|
-
}
|
|
61
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@aminnausin/cedar-ui",
|
|
3
|
+
"version": "0.0.2",
|
|
4
|
+
"main": "./dist/cedar-ui.umd.mjs",
|
|
5
|
+
"module": "./dist/cedar-ui.mjs",
|
|
6
|
+
"types": "./dist/index.d.ts",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
10
|
+
"import": "./dist/cedar-ui.mjs",
|
|
11
|
+
"require": "./dist/cedar-ui.umd.mjs"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"files": [
|
|
15
|
+
"./dist"
|
|
16
|
+
],
|
|
17
|
+
"scripts": {
|
|
18
|
+
"dev": "vite",
|
|
19
|
+
"build": "npm run type-check && npm run build-only",
|
|
20
|
+
"preview": "vite preview",
|
|
21
|
+
"build-only": "vite build",
|
|
22
|
+
"type-check": "vue-tsc --build",
|
|
23
|
+
"lint": "eslint . --fix",
|
|
24
|
+
"format": "prettier --write src/"
|
|
25
|
+
},
|
|
26
|
+
"dependencies": {
|
|
27
|
+
"@tailwindcss/aspect-ratio": "^0.4.2",
|
|
28
|
+
"@tailwindcss/forms": "^0.5.10",
|
|
29
|
+
"@vueuse/components": "^10.11.1",
|
|
30
|
+
"@vueuse/core": "^10.11.1",
|
|
31
|
+
"@vueuse/integrations": "^11.3.0",
|
|
32
|
+
"fast-deep-equal": "^3.1.3",
|
|
33
|
+
"focus-trap": "^7.6.5",
|
|
34
|
+
"tailwind-scrollbar-hide": "^2.0.0",
|
|
35
|
+
"tailwindcss": "^3.4.17"
|
|
36
|
+
},
|
|
37
|
+
"peerDependencies": {
|
|
38
|
+
"vue": "^3.5.13",
|
|
39
|
+
"vue-router": "^4.5.0"
|
|
40
|
+
},
|
|
41
|
+
"devDependencies": {
|
|
42
|
+
"@eslint/js": "^9.32.0",
|
|
43
|
+
"@iconify/vue": "^5.0.0",
|
|
44
|
+
"@tsconfig/node22": "^22.0.2",
|
|
45
|
+
"@types/node": "^22.17.0",
|
|
46
|
+
"@vitejs/plugin-vue": "^5.2.4",
|
|
47
|
+
"@vue/eslint-config-prettier": "^10.2.0",
|
|
48
|
+
"@vue/eslint-config-typescript": "^14.6.0",
|
|
49
|
+
"@vue/tsconfig": "^0.7.0",
|
|
50
|
+
"autoprefixer": "^10.4.21",
|
|
51
|
+
"eslint": "^9.32.0",
|
|
52
|
+
"eslint-plugin-vue": "~10.4.0",
|
|
53
|
+
"postcss": "^8.5.6",
|
|
54
|
+
"prettier": "3.5.3",
|
|
55
|
+
"typescript": "~5.9.2",
|
|
56
|
+
"vite": "^6.3.5",
|
|
57
|
+
"vite-plugin-dts": "^4.5.4",
|
|
58
|
+
"vite-plugin-vue-devtools": "^7.7.7",
|
|
59
|
+
"vue-tsc": "^2.2.12"
|
|
60
|
+
}
|
|
61
|
+
}
|