@pequity/squirrel 6.0.14 → 6.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/cjs/chunks/p-action-bar.js +4 -4
- package/dist/cjs/chunks/p-btn.js +204 -0
- package/dist/cjs/chunks/p-select-btn.js +5 -4
- package/dist/cjs/index.js +2 -2
- package/dist/cjs/p-btn.js +2 -169
- package/dist/es/chunks/p-action-bar.js +8 -8
- package/dist/es/chunks/p-btn.js +205 -0
- package/dist/es/chunks/p-select-btn.js +5 -4
- package/dist/es/index.js +62 -62
- package/dist/es/p-btn.js +2 -169
- package/dist/squirrel/components/p-btn/p-btn.vue.d.ts +106 -46
- package/dist/squirrel/components/p-card/p-card.vue.d.ts +27 -14
- package/dist/squirrel/components/p-checkbox/p-checkbox.vue.d.ts +43 -12
- package/dist/squirrel/components/p-close-btn/p-close-btn.vue.d.ts +1 -1
- package/dist/squirrel/components/p-drawer/p-drawer.vue.d.ts +1 -1
- package/dist/squirrel/components/p-dropdown-select/p-dropdown-select.vue.d.ts +15 -422
- package/dist/squirrel/components/p-file-upload/p-file-upload.vue.d.ts +1 -3
- package/dist/squirrel/components/p-info-icon/p-info-icon.vue.d.ts +13 -11
- package/dist/squirrel/components/p-inline-date-picker/p-inline-date-picker.vue.d.ts +39 -14
- package/dist/squirrel/components/p-input/p-input.vue.d.ts +2 -2
- package/dist/squirrel/components/p-input-number/p-input-number.vue.d.ts +2 -2
- package/dist/squirrel/components/p-input-search/p-input-search.vue.d.ts +2 -2
- package/dist/squirrel/components/p-link/p-link.vue.d.ts +17 -13
- package/dist/squirrel/components/p-loading/p-loading.vue.d.ts +1 -3
- package/dist/squirrel/components/p-modal/p-modal.vue.d.ts +240 -22
- package/dist/squirrel/components/p-pagination-info/p-pagination-info.vue.d.ts +77 -10
- package/dist/squirrel/components/p-select/p-select.vue.d.ts +116 -14
- package/dist/squirrel/components/p-select-btn/p-select-btn.vue.d.ts +37 -13
- package/dist/squirrel/components/p-select-list/p-select-list.vue.d.ts +14 -418
- package/dist/squirrel/components/p-table/p-table.vue.d.ts +61 -19
- package/dist/squirrel/components/p-table-header-cell/p-table-header-cell.vue.d.ts +2 -2
- package/dist/squirrel/components/p-table-loader/p-table-loader.vue.d.ts +1 -1
- package/dist/squirrel/components/p-table-td/p-table-td.vue.d.ts +23 -11
- package/dist/squirrel/components/p-tabs/p-tabs.vue.d.ts +1 -1
- package/dist/squirrel/components/p-textarea/p-textarea.vue.d.ts +1 -1
- package/dist/squirrel/components/p-toggle/p-toggle.vue.d.ts +1 -1
- package/dist/squirrel/utils/inputClassesMixin.d.ts +1 -1
- package/package.json +25 -24
- package/squirrel/components/p-btn/p-btn.spec.js +227 -161
- package/squirrel/components/p-btn/p-btn.stories.js +32 -8
- package/squirrel/components/p-btn/p-btn.vue +106 -73
- package/squirrel/components/p-dropdown/p-dropdown.vue +0 -1
- package/squirrel/components/p-inline-date-picker/p-inline-date-picker.vue +1 -1
- package/squirrel/components/p-select-btn/p-select-btn.stories.js +45 -4
- package/squirrel/components/p-select-btn/p-select-btn.vue +2 -2
|
@@ -1,226 +1,16 @@
|
|
|
1
1
|
import { type AnyObject, type AnyValue, type ModelValue, type Size } from './p-select-list.types';
|
|
2
|
-
import { type PropType
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
itemTextSplit: string[];
|
|
14
|
-
}): unknown;
|
|
15
|
-
}> & {
|
|
16
|
-
'selected-item'(props: {
|
|
17
|
-
item: any;
|
|
18
|
-
}): unknown;
|
|
19
|
-
'no-items'(): unknown;
|
|
20
|
-
item(props: {
|
|
21
|
-
item: any;
|
|
22
|
-
isItemSelected: boolean;
|
|
23
|
-
itemTextSplit: string[];
|
|
24
|
-
}): unknown;
|
|
25
|
-
};
|
|
26
|
-
refs: {
|
|
27
|
-
formControl: HTMLDivElement;
|
|
28
|
-
actionsContainer: HTMLDivElement;
|
|
29
|
-
inputSearch: import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
|
|
30
|
-
modelValue: {
|
|
31
|
-
type: StringConstructor;
|
|
32
|
-
default: string;
|
|
33
|
-
};
|
|
34
|
-
size: {
|
|
35
|
-
type: PropType<import("..").Size>;
|
|
36
|
-
default: string;
|
|
37
|
-
validator(value: import("..").Size): boolean;
|
|
38
|
-
};
|
|
39
|
-
showEnterIcon: {
|
|
40
|
-
type: BooleanConstructor;
|
|
41
|
-
default: boolean;
|
|
42
|
-
};
|
|
43
|
-
}>> & Readonly<{
|
|
44
|
-
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
45
|
-
onEnter?: ((...args: any[]) => any) | undefined;
|
|
46
|
-
}>, {}, {
|
|
47
|
-
query: string;
|
|
48
|
-
showEnterIconOnFocus: boolean;
|
|
49
|
-
}, {
|
|
50
|
-
searchIconClasses(): string;
|
|
51
|
-
enterIconClasses(): string;
|
|
52
|
-
clearIconClasses(): string;
|
|
53
|
-
}, {
|
|
54
|
-
clearSearch(): void;
|
|
55
|
-
keydownEnter(): void;
|
|
56
|
-
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "enter")[], import("vue").PublicProps, {
|
|
57
|
-
size: "sm" | "md" | "lg";
|
|
58
|
-
modelValue: string;
|
|
59
|
-
showEnterIcon: boolean;
|
|
60
|
-
}, true, {}, {}, {
|
|
61
|
-
PInput: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
62
|
-
modelValue: {
|
|
63
|
-
type: (StringConstructor | NumberConstructor)[];
|
|
64
|
-
default: string;
|
|
65
|
-
};
|
|
66
|
-
type: {
|
|
67
|
-
type: PropType<string>;
|
|
68
|
-
default: string;
|
|
69
|
-
validator(value: string): boolean;
|
|
70
|
-
};
|
|
71
|
-
label: {
|
|
72
|
-
type: StringConstructor;
|
|
73
|
-
default: string;
|
|
74
|
-
};
|
|
75
|
-
errorMsg: {
|
|
76
|
-
type: StringConstructor;
|
|
77
|
-
default: string;
|
|
78
|
-
};
|
|
79
|
-
required: {
|
|
80
|
-
type: BooleanConstructor;
|
|
81
|
-
default: boolean;
|
|
82
|
-
};
|
|
83
|
-
rounded: {
|
|
84
|
-
type: BooleanConstructor;
|
|
85
|
-
default: boolean;
|
|
86
|
-
};
|
|
87
|
-
}>, {}, {}, {
|
|
88
|
-
attrs(): {
|
|
89
|
-
[x: string]: unknown;
|
|
90
|
-
};
|
|
91
|
-
style(): StyleValue;
|
|
92
|
-
}, {}, import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
93
|
-
size: {
|
|
94
|
-
type: PropType<import("..").Size>;
|
|
95
|
-
default: string;
|
|
96
|
-
validator(value: import("..").Size): boolean;
|
|
97
|
-
};
|
|
98
|
-
errorMsg: {
|
|
99
|
-
type: StringConstructor;
|
|
100
|
-
default: string;
|
|
101
|
-
};
|
|
102
|
-
required: {
|
|
103
|
-
type: BooleanConstructor;
|
|
104
|
-
default: boolean;
|
|
105
|
-
};
|
|
106
|
-
rounded: {
|
|
107
|
-
type: BooleanConstructor;
|
|
108
|
-
default: boolean;
|
|
109
|
-
};
|
|
110
|
-
}>, {}, {}, {
|
|
111
|
-
allClasses(): {
|
|
112
|
-
input: string;
|
|
113
|
-
label: string;
|
|
114
|
-
errorMessage: string;
|
|
115
|
-
};
|
|
116
|
-
inputClasses(): string;
|
|
117
|
-
labelClasses(): string;
|
|
118
|
-
errorMsgClasses(): string;
|
|
119
|
-
selectClasses(): string;
|
|
120
|
-
textareaClasses(): string;
|
|
121
|
-
}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
122
|
-
size: {
|
|
123
|
-
type: PropType<import("..").Size>;
|
|
124
|
-
default: string;
|
|
125
|
-
validator(value: import("..").Size): boolean;
|
|
126
|
-
};
|
|
127
|
-
errorMsg: {
|
|
128
|
-
type: StringConstructor;
|
|
129
|
-
default: string;
|
|
130
|
-
};
|
|
131
|
-
required: {
|
|
132
|
-
type: BooleanConstructor;
|
|
133
|
-
default: boolean;
|
|
134
|
-
};
|
|
135
|
-
rounded: {
|
|
136
|
-
type: BooleanConstructor;
|
|
137
|
-
default: boolean;
|
|
138
|
-
};
|
|
139
|
-
}>> & Readonly<{}>, {
|
|
140
|
-
size: "sm" | "md" | "lg";
|
|
141
|
-
rounded: boolean;
|
|
142
|
-
required: boolean;
|
|
143
|
-
errorMsg: string;
|
|
144
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
145
|
-
modelValue: {
|
|
146
|
-
type: (StringConstructor | NumberConstructor)[];
|
|
147
|
-
default: string;
|
|
148
|
-
};
|
|
149
|
-
type: {
|
|
150
|
-
type: PropType<string>;
|
|
151
|
-
default: string;
|
|
152
|
-
validator(value: string): boolean;
|
|
153
|
-
};
|
|
154
|
-
label: {
|
|
155
|
-
type: StringConstructor;
|
|
156
|
-
default: string;
|
|
157
|
-
};
|
|
158
|
-
errorMsg: {
|
|
159
|
-
type: StringConstructor;
|
|
160
|
-
default: string;
|
|
161
|
-
};
|
|
162
|
-
required: {
|
|
163
|
-
type: BooleanConstructor;
|
|
164
|
-
default: boolean;
|
|
165
|
-
};
|
|
166
|
-
rounded: {
|
|
167
|
-
type: BooleanConstructor;
|
|
168
|
-
default: boolean;
|
|
169
|
-
};
|
|
170
|
-
}>> & Readonly<{
|
|
171
|
-
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
172
|
-
}>, {
|
|
173
|
-
type: string;
|
|
174
|
-
label: string;
|
|
175
|
-
rounded: boolean;
|
|
176
|
-
required: boolean;
|
|
177
|
-
modelValue: string | number;
|
|
178
|
-
errorMsg: string;
|
|
179
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
180
|
-
} & import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
181
|
-
P: {};
|
|
182
|
-
B: {};
|
|
183
|
-
D: {};
|
|
184
|
-
C: {};
|
|
185
|
-
M: {};
|
|
186
|
-
Defaults: {};
|
|
187
|
-
}, Readonly<import("vue").ExtractPropTypes<{
|
|
188
|
-
modelValue: {
|
|
189
|
-
type: StringConstructor;
|
|
190
|
-
default: string;
|
|
191
|
-
};
|
|
192
|
-
size: {
|
|
193
|
-
type: PropType<import("..").Size>;
|
|
194
|
-
default: string;
|
|
195
|
-
validator(value: import("..").Size): boolean;
|
|
196
|
-
};
|
|
197
|
-
showEnterIcon: {
|
|
198
|
-
type: BooleanConstructor;
|
|
199
|
-
default: boolean;
|
|
200
|
-
};
|
|
201
|
-
}>> & Readonly<{
|
|
202
|
-
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
203
|
-
onEnter?: ((...args: any[]) => any) | undefined;
|
|
204
|
-
}>, {}, {
|
|
205
|
-
query: string;
|
|
206
|
-
showEnterIconOnFocus: boolean;
|
|
207
|
-
}, {
|
|
208
|
-
searchIconClasses(): string;
|
|
209
|
-
enterIconClasses(): string;
|
|
210
|
-
clearIconClasses(): string;
|
|
211
|
-
}, {
|
|
212
|
-
clearSearch(): void;
|
|
213
|
-
keydownEnter(): void;
|
|
214
|
-
}, {
|
|
215
|
-
size: "sm" | "md" | "lg";
|
|
216
|
-
modelValue: string;
|
|
217
|
-
showEnterIcon: boolean;
|
|
218
|
-
}> | null;
|
|
219
|
-
virtualizerRef: HTMLDivElement;
|
|
220
|
-
};
|
|
221
|
-
rootEl: any;
|
|
2
|
+
import { type PropType } from 'vue';
|
|
3
|
+
type __VLS_Slots = {
|
|
4
|
+
'selected-item'(props: {
|
|
5
|
+
item: any;
|
|
6
|
+
}): unknown;
|
|
7
|
+
'no-items'(): unknown;
|
|
8
|
+
item(props: {
|
|
9
|
+
item: any;
|
|
10
|
+
isItemSelected: boolean;
|
|
11
|
+
itemTextSplit: string[];
|
|
12
|
+
}): unknown;
|
|
222
13
|
};
|
|
223
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
224
14
|
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
225
15
|
modelValue: {
|
|
226
16
|
type: PropType<ModelValue>;
|
|
@@ -492,204 +282,10 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
492
282
|
topSectionClass: string;
|
|
493
283
|
closePopperOnSelect: boolean;
|
|
494
284
|
focusSearchOnMount: boolean;
|
|
495
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {
|
|
496
|
-
|
|
497
|
-
actionsContainer: HTMLDivElement;
|
|
498
|
-
inputSearch: import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
|
|
499
|
-
modelValue: {
|
|
500
|
-
type: StringConstructor;
|
|
501
|
-
default: string;
|
|
502
|
-
};
|
|
503
|
-
size: {
|
|
504
|
-
type: PropType<import("..").Size>;
|
|
505
|
-
default: string;
|
|
506
|
-
validator(value: import("..").Size): boolean;
|
|
507
|
-
};
|
|
508
|
-
showEnterIcon: {
|
|
509
|
-
type: BooleanConstructor;
|
|
510
|
-
default: boolean;
|
|
511
|
-
};
|
|
512
|
-
}>> & Readonly<{
|
|
513
|
-
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
514
|
-
onEnter?: ((...args: any[]) => any) | undefined;
|
|
515
|
-
}>, {}, {
|
|
516
|
-
query: string;
|
|
517
|
-
showEnterIconOnFocus: boolean;
|
|
518
|
-
}, {
|
|
519
|
-
searchIconClasses(): string;
|
|
520
|
-
enterIconClasses(): string;
|
|
521
|
-
clearIconClasses(): string;
|
|
522
|
-
}, {
|
|
523
|
-
clearSearch(): void;
|
|
524
|
-
keydownEnter(): void;
|
|
525
|
-
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "enter")[], import("vue").PublicProps, {
|
|
526
|
-
size: "sm" | "md" | "lg";
|
|
527
|
-
modelValue: string;
|
|
528
|
-
showEnterIcon: boolean;
|
|
529
|
-
}, true, {}, {}, {
|
|
530
|
-
PInput: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
531
|
-
modelValue: {
|
|
532
|
-
type: (StringConstructor | NumberConstructor)[];
|
|
533
|
-
default: string;
|
|
534
|
-
};
|
|
535
|
-
type: {
|
|
536
|
-
type: PropType<string>;
|
|
537
|
-
default: string;
|
|
538
|
-
validator(value: string): boolean;
|
|
539
|
-
};
|
|
540
|
-
label: {
|
|
541
|
-
type: StringConstructor;
|
|
542
|
-
default: string;
|
|
543
|
-
};
|
|
544
|
-
errorMsg: {
|
|
545
|
-
type: StringConstructor;
|
|
546
|
-
default: string;
|
|
547
|
-
};
|
|
548
|
-
required: {
|
|
549
|
-
type: BooleanConstructor;
|
|
550
|
-
default: boolean;
|
|
551
|
-
};
|
|
552
|
-
rounded: {
|
|
553
|
-
type: BooleanConstructor;
|
|
554
|
-
default: boolean;
|
|
555
|
-
};
|
|
556
|
-
}>, {}, {}, {
|
|
557
|
-
attrs(): {
|
|
558
|
-
[x: string]: unknown;
|
|
559
|
-
};
|
|
560
|
-
style(): StyleValue;
|
|
561
|
-
}, {}, import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
562
|
-
size: {
|
|
563
|
-
type: PropType<import("..").Size>;
|
|
564
|
-
default: string;
|
|
565
|
-
validator(value: import("..").Size): boolean;
|
|
566
|
-
};
|
|
567
|
-
errorMsg: {
|
|
568
|
-
type: StringConstructor;
|
|
569
|
-
default: string;
|
|
570
|
-
};
|
|
571
|
-
required: {
|
|
572
|
-
type: BooleanConstructor;
|
|
573
|
-
default: boolean;
|
|
574
|
-
};
|
|
575
|
-
rounded: {
|
|
576
|
-
type: BooleanConstructor;
|
|
577
|
-
default: boolean;
|
|
578
|
-
};
|
|
579
|
-
}>, {}, {}, {
|
|
580
|
-
allClasses(): {
|
|
581
|
-
input: string;
|
|
582
|
-
label: string;
|
|
583
|
-
errorMessage: string;
|
|
584
|
-
};
|
|
585
|
-
inputClasses(): string;
|
|
586
|
-
labelClasses(): string;
|
|
587
|
-
errorMsgClasses(): string;
|
|
588
|
-
selectClasses(): string;
|
|
589
|
-
textareaClasses(): string;
|
|
590
|
-
}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
591
|
-
size: {
|
|
592
|
-
type: PropType<import("..").Size>;
|
|
593
|
-
default: string;
|
|
594
|
-
validator(value: import("..").Size): boolean;
|
|
595
|
-
};
|
|
596
|
-
errorMsg: {
|
|
597
|
-
type: StringConstructor;
|
|
598
|
-
default: string;
|
|
599
|
-
};
|
|
600
|
-
required: {
|
|
601
|
-
type: BooleanConstructor;
|
|
602
|
-
default: boolean;
|
|
603
|
-
};
|
|
604
|
-
rounded: {
|
|
605
|
-
type: BooleanConstructor;
|
|
606
|
-
default: boolean;
|
|
607
|
-
};
|
|
608
|
-
}>> & Readonly<{}>, {
|
|
609
|
-
size: "sm" | "md" | "lg";
|
|
610
|
-
rounded: boolean;
|
|
611
|
-
required: boolean;
|
|
612
|
-
errorMsg: string;
|
|
613
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
614
|
-
modelValue: {
|
|
615
|
-
type: (StringConstructor | NumberConstructor)[];
|
|
616
|
-
default: string;
|
|
617
|
-
};
|
|
618
|
-
type: {
|
|
619
|
-
type: PropType<string>;
|
|
620
|
-
default: string;
|
|
621
|
-
validator(value: string): boolean;
|
|
622
|
-
};
|
|
623
|
-
label: {
|
|
624
|
-
type: StringConstructor;
|
|
625
|
-
default: string;
|
|
626
|
-
};
|
|
627
|
-
errorMsg: {
|
|
628
|
-
type: StringConstructor;
|
|
629
|
-
default: string;
|
|
630
|
-
};
|
|
631
|
-
required: {
|
|
632
|
-
type: BooleanConstructor;
|
|
633
|
-
default: boolean;
|
|
634
|
-
};
|
|
635
|
-
rounded: {
|
|
636
|
-
type: BooleanConstructor;
|
|
637
|
-
default: boolean;
|
|
638
|
-
};
|
|
639
|
-
}>> & Readonly<{
|
|
640
|
-
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
641
|
-
}>, {
|
|
642
|
-
type: string;
|
|
643
|
-
label: string;
|
|
644
|
-
rounded: boolean;
|
|
645
|
-
required: boolean;
|
|
646
|
-
modelValue: string | number;
|
|
647
|
-
errorMsg: string;
|
|
648
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
649
|
-
} & import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
650
|
-
P: {};
|
|
651
|
-
B: {};
|
|
652
|
-
D: {};
|
|
653
|
-
C: {};
|
|
654
|
-
M: {};
|
|
655
|
-
Defaults: {};
|
|
656
|
-
}, Readonly<import("vue").ExtractPropTypes<{
|
|
657
|
-
modelValue: {
|
|
658
|
-
type: StringConstructor;
|
|
659
|
-
default: string;
|
|
660
|
-
};
|
|
661
|
-
size: {
|
|
662
|
-
type: PropType<import("..").Size>;
|
|
663
|
-
default: string;
|
|
664
|
-
validator(value: import("..").Size): boolean;
|
|
665
|
-
};
|
|
666
|
-
showEnterIcon: {
|
|
667
|
-
type: BooleanConstructor;
|
|
668
|
-
default: boolean;
|
|
669
|
-
};
|
|
670
|
-
}>> & Readonly<{
|
|
671
|
-
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
672
|
-
onEnter?: ((...args: any[]) => any) | undefined;
|
|
673
|
-
}>, {}, {
|
|
674
|
-
query: string;
|
|
675
|
-
showEnterIconOnFocus: boolean;
|
|
676
|
-
}, {
|
|
677
|
-
searchIconClasses(): string;
|
|
678
|
-
enterIconClasses(): string;
|
|
679
|
-
clearIconClasses(): string;
|
|
680
|
-
}, {
|
|
681
|
-
clearSearch(): void;
|
|
682
|
-
keydownEnter(): void;
|
|
683
|
-
}, {
|
|
684
|
-
size: "sm" | "md" | "lg";
|
|
685
|
-
modelValue: string;
|
|
686
|
-
showEnterIcon: boolean;
|
|
687
|
-
}> | null;
|
|
688
|
-
virtualizerRef: HTMLDivElement;
|
|
689
|
-
}, any>;
|
|
690
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
285
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
286
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
691
287
|
export default _default;
|
|
692
|
-
type
|
|
288
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
693
289
|
new (): {
|
|
694
290
|
$slots: S;
|
|
695
291
|
};
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { type TableCol } from './p-table.types';
|
|
2
|
+
import PTableHeaderCell from '../p-table-header-cell/p-table-header-cell.vue';
|
|
3
|
+
import { kebabCase } from 'lodash-es';
|
|
2
4
|
type Props = {
|
|
3
5
|
cols: TableCol[];
|
|
4
6
|
colsResizable?: boolean;
|
|
@@ -11,20 +13,63 @@ type Props = {
|
|
|
11
13
|
paddingBottom: number;
|
|
12
14
|
};
|
|
13
15
|
};
|
|
14
|
-
declare
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
25
|
-
rootEl: HTMLDivElement;
|
|
16
|
+
declare const scrollWrapper: import("vue").Ref<HTMLElement | null, HTMLElement | null>;
|
|
17
|
+
declare const isColResizing: import("vue").Ref<boolean, boolean>, colResizeHandleLeft: import("vue").Ref<string, string>, colResize: (e: MouseEvent) => void, colResizeStart: (e: MouseEvent, i: number) => void, colResizeFitToData: (colIndex: number) => void;
|
|
18
|
+
declare const tbodyElement: import("vue").Ref<HTMLElement | null, HTMLElement | null>;
|
|
19
|
+
declare const updateThsRefs: (el: unknown, index: number) => void;
|
|
20
|
+
declare const thDivClasses: (i: number) => string[];
|
|
21
|
+
declare const thSubheaderClasses: (i: number) => string[];
|
|
22
|
+
declare const bgColorStyle: (col: TableCol) => {
|
|
23
|
+
backgroundColor: string;
|
|
24
|
+
} | {
|
|
25
|
+
backgroundColor?: undefined;
|
|
26
26
|
};
|
|
27
|
-
|
|
27
|
+
declare const headerCellTextColor: (col: TableCol) => string;
|
|
28
|
+
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
29
|
+
declare var __VLS_2: `prepend-header-cell-${string}`, __VLS_3: {
|
|
30
|
+
col: TableCol;
|
|
31
|
+
}, __VLS_13: `subheader-cell-${string}`, __VLS_14: {}, __VLS_16: {};
|
|
32
|
+
type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
|
|
33
|
+
[K in NonNullable<typeof __VLS_2>]?: (props: typeof __VLS_3) => any;
|
|
34
|
+
} & {
|
|
35
|
+
[K in NonNullable<typeof __VLS_13>]?: (props: typeof __VLS_14) => any;
|
|
36
|
+
} & {
|
|
37
|
+
default?: (props: typeof __VLS_16) => any;
|
|
38
|
+
}>;
|
|
39
|
+
declare const __VLS_self: import("vue").DefineComponent<Props, {
|
|
40
|
+
PTableHeaderCell: typeof PTableHeaderCell;
|
|
41
|
+
kebabCase: typeof kebabCase;
|
|
42
|
+
scrollWrapper: typeof scrollWrapper;
|
|
43
|
+
isColResizing: typeof isColResizing;
|
|
44
|
+
colResizeHandleLeft: typeof colResizeHandleLeft;
|
|
45
|
+
colResize: typeof colResize;
|
|
46
|
+
colResizeStart: typeof colResizeStart;
|
|
47
|
+
colResizeFitToData: typeof colResizeFitToData;
|
|
48
|
+
tbodyElement: typeof tbodyElement;
|
|
49
|
+
updateThsRefs: typeof updateThsRefs;
|
|
50
|
+
thDivClasses: typeof thDivClasses;
|
|
51
|
+
thSubheaderClasses: typeof thSubheaderClasses;
|
|
52
|
+
bgColorStyle: typeof bgColorStyle;
|
|
53
|
+
headerCellTextColor: typeof headerCellTextColor;
|
|
54
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
55
|
+
scroll: (val: Event) => any;
|
|
56
|
+
"col-resize": (colIndex: number, width: number) => any;
|
|
57
|
+
"click-filter-icon": (val: Event, col: any) => any;
|
|
58
|
+
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
59
|
+
onScroll?: ((val: Event) => any) | undefined;
|
|
60
|
+
"onCol-resize"?: ((colIndex: number, width: number) => any) | undefined;
|
|
61
|
+
"onClick-filter-icon"?: ((val: Event, col: any) => any) | undefined;
|
|
62
|
+
}>, {
|
|
63
|
+
isFirstColFixed: boolean;
|
|
64
|
+
isLastColFixed: boolean;
|
|
65
|
+
colsResizable: boolean;
|
|
66
|
+
lockScroll: boolean;
|
|
67
|
+
subheader: boolean;
|
|
68
|
+
virtualizer: {
|
|
69
|
+
paddingTop: number;
|
|
70
|
+
paddingBottom: number;
|
|
71
|
+
};
|
|
72
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
28
73
|
declare const __VLS_component: import("vue").DefineComponent<Props, {
|
|
29
74
|
tbodyElement: import("vue").Ref<HTMLElement | null, HTMLElement | null>;
|
|
30
75
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
@@ -45,13 +90,10 @@ declare const __VLS_component: import("vue").DefineComponent<Props, {
|
|
|
45
90
|
paddingTop: number;
|
|
46
91
|
paddingBottom: number;
|
|
47
92
|
};
|
|
48
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {
|
|
49
|
-
|
|
50
|
-
tbodyElement: HTMLTableSectionElement;
|
|
51
|
-
}, HTMLDivElement>;
|
|
52
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
93
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
94
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
53
95
|
export default _default;
|
|
54
|
-
type
|
|
96
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
55
97
|
new (): {
|
|
56
98
|
$slots: S;
|
|
57
99
|
};
|
|
@@ -26,7 +26,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
26
26
|
}>, {}, {
|
|
27
27
|
DEFAULT_CLASSES: string;
|
|
28
28
|
}, {
|
|
29
|
-
textColorClass(): "" | "text-
|
|
29
|
+
textColorClass(): "" | "text-active-blue" | "text-p-gray-60";
|
|
30
30
|
style(): {
|
|
31
31
|
color?: undefined;
|
|
32
32
|
} | {
|
|
@@ -106,7 +106,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
106
106
|
text: string | null;
|
|
107
107
|
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
108
108
|
$slots: {
|
|
109
|
-
default
|
|
109
|
+
default?: ((props: {}) => any) | undefined;
|
|
110
110
|
};
|
|
111
111
|
});
|
|
112
112
|
}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -46,5 +46,5 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
46
46
|
tdClasses: string;
|
|
47
47
|
tdSkeletonClasses: string;
|
|
48
48
|
withSubheader: boolean;
|
|
49
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {},
|
|
49
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
50
50
|
export default _default;
|
|
@@ -1,24 +1,36 @@
|
|
|
1
|
+
import { type Ref } from 'vue';
|
|
1
2
|
type Props = {
|
|
2
3
|
colIndex: number;
|
|
3
4
|
isEditable?: boolean;
|
|
4
5
|
isSelected?: boolean;
|
|
5
6
|
};
|
|
6
|
-
declare
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
7
|
+
declare const isLastColFixed: Ref<boolean, boolean>;
|
|
8
|
+
declare const isColsResizable: Ref<boolean, boolean>;
|
|
9
|
+
declare const isLastCol: import("vue").ComputedRef<boolean>;
|
|
10
|
+
declare const tdClass: import("vue").ComputedRef<string[]>;
|
|
11
|
+
declare const innerDivClass: import("vue").ComputedRef<string[]>;
|
|
12
|
+
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
13
|
+
declare var __VLS_1: {};
|
|
14
|
+
type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
|
|
15
|
+
default?: (props: typeof __VLS_1) => any;
|
|
16
|
+
}>;
|
|
17
|
+
declare const __VLS_self: import("vue").DefineComponent<Props, {
|
|
18
|
+
isLastColFixed: typeof isLastColFixed;
|
|
19
|
+
isColsResizable: typeof isColsResizable;
|
|
20
|
+
isLastCol: typeof isLastCol;
|
|
21
|
+
tdClass: typeof tdClass;
|
|
22
|
+
innerDivClass: typeof innerDivClass;
|
|
23
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
24
|
+
isSelected: boolean;
|
|
25
|
+
isEditable: boolean;
|
|
26
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
15
27
|
declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
16
28
|
isSelected: boolean;
|
|
17
29
|
isEditable: boolean;
|
|
18
30
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
19
|
-
declare const _default:
|
|
31
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
20
32
|
export default _default;
|
|
21
|
-
type
|
|
33
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
22
34
|
new (): {
|
|
23
35
|
$slots: S;
|
|
24
36
|
};
|
|
@@ -38,5 +38,5 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
38
38
|
"onClick:tab"?: ((...args: any[]) => any) | undefined;
|
|
39
39
|
}>, {
|
|
40
40
|
tabsLeftPadding: number;
|
|
41
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {},
|
|
41
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
42
42
|
export default _default;
|
|
@@ -72,8 +72,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
72
72
|
};
|
|
73
73
|
}>> & Readonly<{}>, {
|
|
74
74
|
size: "sm" | "md" | "lg";
|
|
75
|
-
rounded: boolean;
|
|
76
75
|
required: boolean;
|
|
76
|
+
rounded: boolean;
|
|
77
77
|
errorMsg: string;
|
|
78
78
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
79
79
|
modelValue: {
|
|
@@ -74,8 +74,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
74
74
|
};
|
|
75
75
|
}>> & Readonly<{}>, {
|
|
76
76
|
size: "sm" | "md" | "lg";
|
|
77
|
-
rounded: boolean;
|
|
78
77
|
required: boolean;
|
|
78
|
+
rounded: boolean;
|
|
79
79
|
errorMsg: string;
|
|
80
80
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
81
81
|
modelValue: {
|
|
@@ -49,8 +49,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
49
49
|
};
|
|
50
50
|
}>> & Readonly<{}>, {
|
|
51
51
|
size: "sm" | "md" | "lg";
|
|
52
|
-
rounded: boolean;
|
|
53
52
|
required: boolean;
|
|
53
|
+
rounded: boolean;
|
|
54
54
|
errorMsg: string;
|
|
55
55
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
56
56
|
export default _default;
|