eco-vue-js 0.10.40 → 0.10.42
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/components/ActionsBar/WActionsBar.vue.d.ts +0 -1
- package/dist/components/ActionsBar/WActionsBar.vue.d.ts.map +1 -1
- package/dist/components/ActionsBar/WActionsBar.vue.js +24 -38
- package/dist/components/ActionsBar/WActionsBarFilter.vue.d.ts +24 -0
- package/dist/components/ActionsBar/WActionsBarFilter.vue.d.ts.map +1 -0
- package/dist/components/ActionsBar/WActionsBarFilter.vue.js +25 -0
- package/dist/components/ActionsBar/WActionsBarFilter.vue2.js +5 -0
- package/dist/components/ActionsBar/use/useActionsBarFilter.d.ts +12 -0
- package/dist/components/ActionsBar/use/useActionsBarFilter.d.ts.map +1 -0
- package/dist/components/ActionsBar/use/useActionsBarFilter.js +20 -0
- package/dist/components/BottomSheet/WBottomSheet.vue.d.ts.map +1 -1
- package/dist/components/BottomSheet/WBottomSheet.vue.js +16 -14
- package/dist/components/Button/WButtonDropdown.vue.d.ts.map +1 -1
- package/dist/components/Button/WButtonDropdown.vue.js +3 -4
- package/dist/components/Button/WButtonTab.vue.d.ts +42 -0
- package/dist/components/Button/WButtonTab.vue.d.ts.map +1 -0
- package/dist/components/Button/WButtonTab.vue.js +135 -0
- package/dist/components/Button/WButtonTab.vue2.js +5 -0
- package/dist/components/DatePicker/WDatePicker.vue.d.ts.map +1 -1
- package/dist/components/DatePicker/WDatePicker.vue.js +4 -2
- package/dist/components/DatePicker/WDatePickerSingle.vue.d.ts.map +1 -1
- package/dist/components/DatePicker/WDatePickerSingle.vue.js +4 -2
- package/dist/components/DatePicker/components/CalendarDay.vue.d.ts +1 -0
- package/dist/components/DatePicker/components/CalendarDay.vue.d.ts.map +1 -1
- package/dist/components/DatePicker/components/CalendarDay.vue.js +4 -2
- package/dist/components/DatePicker/components/CalendarMonth.vue.d.ts +1 -0
- package/dist/components/DatePicker/components/CalendarMonth.vue.d.ts.map +1 -1
- package/dist/components/DatePicker/components/CalendarMonth.vue.js +7 -4
- package/dist/components/DatePicker/components/CalendarWeek.vue.d.ts +1 -0
- package/dist/components/DatePicker/components/CalendarWeek.vue.d.ts.map +1 -1
- package/dist/components/DatePicker/components/CalendarWeek.vue.js +6 -3
- package/dist/components/Dropdown/WDropdown.vue.d.ts.map +1 -1
- package/dist/components/Dropdown/WDropdown.vue.js +4 -2
- package/dist/components/Dropdown/types.d.ts +2 -1
- package/dist/components/Dropdown/types.d.ts.map +1 -1
- package/dist/components/DropdownMenu/WDropdownMenu.vue.d.ts +4 -2
- package/dist/components/DropdownMenu/WDropdownMenu.vue.d.ts.map +1 -1
- package/dist/components/DropdownMenu/WDropdownMenu.vue.js +7 -7
- package/dist/components/DropdownMenu/types.d.ts +0 -1
- package/dist/components/DropdownMenu/types.d.ts.map +1 -1
- package/dist/components/Expansion/WExpansionItem.vue.d.ts +1 -0
- package/dist/components/Expansion/WExpansionItem.vue.d.ts.map +1 -1
- package/dist/components/Expansion/WExpansionItem.vue.js +16 -15
- package/dist/components/FieldWrapper/WFieldWrapper.vue.js +1 -1
- package/dist/components/Form/WForm.vue.d.ts.map +1 -1
- package/dist/components/Form/WForm.vue.js +3 -2
- package/dist/components/FormAsync/WFormAsyncSelect.vue.js +1 -1
- package/dist/components/FormAsync/WFormAsyncSelectInfiniteSingle.vue.js +1 -1
- package/dist/components/FormAsync/WFormAsyncSelectSingle.vue.js +1 -1
- package/dist/components/FormAsync/WFormAsyncSelectStringified.vue.js +1 -1
- package/dist/components/HeaderBar/WHeaderBar.vue.d.ts +1 -20
- package/dist/components/HeaderBar/WHeaderBar.vue.d.ts.map +1 -1
- package/dist/components/HeaderBar/WHeaderBar.vue.js +30 -79
- package/dist/components/HeaderBar/WHeaderBarSearch.vue.d.ts +27 -0
- package/dist/components/HeaderBar/WHeaderBarSearch.vue.d.ts.map +1 -0
- package/dist/components/HeaderBar/WHeaderBarSearch.vue.js +24 -0
- package/dist/components/HeaderBar/WHeaderBarSearch.vue2.js +5 -0
- package/dist/components/HeaderBar/use/useHeaderSearch.d.ts +10 -0
- package/dist/components/HeaderBar/use/useHeaderSearch.d.ts.map +1 -0
- package/dist/components/HeaderBar/use/useHeaderSearch.js +14 -0
- package/dist/components/HeaderBar/use/useHeaderSearchVisible.d.ts +5 -0
- package/dist/components/HeaderBar/use/useHeaderSearchVisible.d.ts.map +1 -0
- package/dist/components/HeaderBar/use/useHeaderSearchVisible.js +14 -0
- package/dist/components/InfiniteList/WInfiniteListWrapper.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/WInfiniteListWrapper.vue.js +12 -20
- package/dist/components/InfiniteList/use/useInfiniteListHeader.d.ts +8 -8
- package/dist/components/InfiniteList/use/useInfiniteListHeader.d.ts.map +1 -1
- package/dist/components/InfiniteList/use/useInfiniteListHeader.js +16 -3
- package/dist/components/Input/WInput.vue.d.ts +1 -1
- package/dist/components/Input/WInput.vue.d.ts.map +1 -1
- package/dist/components/Input/WInput.vue.js +8 -3
- package/dist/components/Input/WInputDate.vue.js +2 -2
- package/dist/components/Input/WInputOptions.vue.js +2 -2
- package/dist/components/Input/WInputSuggest.vue.d.ts.map +1 -1
- package/dist/components/Input/WInputSuggest.vue.js +2 -3
- package/dist/components/List/WList.vue.d.ts +11 -2
- package/dist/components/List/WList.vue.d.ts.map +1 -1
- package/dist/components/List/WList.vue.js +266 -228
- package/dist/components/List/WListHeader.vue.js +1 -1
- package/dist/components/List/WListHeaderItem.vue.d.ts +6 -2
- package/dist/components/List/WListHeaderItem.vue.d.ts.map +1 -1
- package/dist/components/List/WListHeaderItem.vue.js +22 -10
- package/dist/components/List/components/HeaderSort.vue.d.ts +3 -1
- package/dist/components/List/components/HeaderSort.vue.d.ts.map +1 -1
- package/dist/components/List/components/HeaderSort.vue.js +4 -3
- package/dist/components/List/components/HeaderSortItem.vue.d.ts +7 -5
- package/dist/components/List/components/HeaderSortItem.vue.d.ts.map +1 -1
- package/dist/components/List/components/HeaderSortItem.vue.js +23 -10
- package/dist/components/List/components/ListFilterGlobal.vue.d.ts +25 -0
- package/dist/components/List/components/ListFilterGlobal.vue.d.ts.map +1 -0
- package/dist/components/List/components/ListFilterGlobal.vue.js +154 -0
- package/dist/components/List/components/ListFilterGlobal.vue2.js +5 -0
- package/dist/components/List/components/ListFilterGlobalItem.vue.d.ts +29 -0
- package/dist/components/List/components/ListFilterGlobalItem.vue.d.ts.map +1 -0
- package/dist/components/List/components/ListFilterGlobalItem.vue.js +49 -0
- package/dist/components/List/components/ListFilterGlobalItem.vue2.js +5 -0
- package/dist/components/List/components/ListFilterLocal.vue.d.ts +23 -0
- package/dist/components/List/components/ListFilterLocal.vue.d.ts.map +1 -0
- package/dist/components/List/components/ListFilterLocal.vue.js +148 -0
- package/dist/components/List/components/ListFilterLocal.vue2.js +5 -0
- package/dist/components/List/components/ListFilterSelect.vue.d.ts +21 -0
- package/dist/components/List/components/ListFilterSelect.vue.d.ts.map +1 -0
- package/dist/components/List/components/ListFilterSelect.vue.js +72 -0
- package/dist/components/List/components/ListFilterSelect.vue2.js +5 -0
- package/dist/components/List/models/utils.d.ts +3 -0
- package/dist/components/List/models/utils.d.ts.map +1 -0
- package/dist/components/List/models/utils.js +7 -0
- package/dist/components/List/types.d.ts +11 -0
- package/dist/components/List/types.d.ts.map +1 -1
- package/dist/components/Modal/WModal.vue.d.ts.map +1 -1
- package/dist/components/Modal/WModal.vue.js +8 -7
- package/dist/components/Modal/WModalStepper.vue.d.ts +28 -52
- package/dist/components/Modal/WModalStepper.vue.d.ts.map +1 -1
- package/dist/components/Modal/WModalWrapper.vue.d.ts.map +1 -1
- package/dist/components/Modal/WModalWrapper.vue.js +11 -4
- package/dist/components/Modal/models/injection.d.ts +1 -1
- package/dist/components/Modal/models/injection.d.ts.map +1 -1
- package/dist/components/Modal/models/injection.js +2 -2
- package/dist/components/Nav/WNavBar.vue.d.ts.map +1 -1
- package/dist/components/Nav/WNavBar.vue.js +13 -8
- package/dist/components/Select/WSelect.vue.js +1 -1
- package/dist/components/Select/WSelectAsync.vue.js +1 -1
- package/dist/components/Select/WSelectAsyncList.vue.d.ts +2 -2
- package/dist/components/Select/WSelectAsyncSingle.vue.js +1 -1
- package/dist/components/Select/WSelectSingle.vue.js +1 -1
- package/dist/components/Select/WSelectStringified.vue.js +1 -1
- package/dist/components/Select/components/SelectAsyncList.vue.d.ts +2 -2
- package/dist/components/Tabs/WTabs.vue.d.ts +18 -45
- package/dist/components/Tabs/WTabs.vue.d.ts.map +1 -1
- package/dist/components/Tabs/WTabs.vue.js +9 -18
- package/dist/components/Tabs/components/TabItem.vue.d.ts +1 -1
- package/dist/components/Tabs/components/TabItem.vue.d.ts.map +1 -1
- package/dist/components/Tabs/components/TabTitleButton.vue.d.ts +2 -14
- package/dist/components/Tabs/components/TabTitleButton.vue.d.ts.map +1 -1
- package/dist/components/Tabs/components/TabTitleButton.vue.js +19 -119
- package/dist/components/Tabs/types.d.ts +2 -1
- package/dist/components/Tabs/types.d.ts.map +1 -1
- package/dist/imports/componentsPlugin.d.ts +4 -1
- package/dist/imports/componentsPlugin.d.ts.map +1 -1
- package/dist/main.js +6 -3
- package/dist/types/global.d.ts +19 -4
- package/dist/utils/api.d.ts +14 -0
- package/dist/utils/api.d.ts.map +1 -1
- package/dist/utils/api.js +46 -2
- package/dist/utils/dateTime.d.ts +1 -0
- package/dist/utils/dateTime.d.ts.map +1 -1
- package/dist/utils/dateTime.js +4 -1
- package/dist/utils/utils.d.ts +18 -3
- package/dist/utils/utils.d.ts.map +1 -1
- package/dist/utils/utils.js +42 -1
- package/package.json +10 -1
- package/tailwind-base/plugins/default.ts +1 -0
- package/tailwind-base/theme/sizes.ts +2 -0
- package/dist/components/List/use/useOrdering.d.ts +0 -7
- package/dist/components/List/use/useOrdering.d.ts.map +0 -1
- package/dist/components/List/use/useOrdering.js +0 -36
@@ -1,5 +1,4 @@
|
|
1
1
|
import { TabsProps } from './types';
|
2
|
-
import { CSSProperties } from 'vue';
|
3
2
|
import { default as WForm } from '../Form/WForm.vue';
|
4
3
|
declare function __VLS_template(): {
|
5
4
|
attrs: Partial<{}>;
|
@@ -125,7 +124,7 @@ declare function __VLS_template(): {
|
|
125
124
|
readonly hasError: boolean;
|
126
125
|
readonly hasChanges: boolean;
|
127
126
|
readonly hasValue: boolean;
|
128
|
-
readonly title
|
127
|
+
readonly title?: string | undefined;
|
129
128
|
readonly icon: SVGComponent | undefined;
|
130
129
|
readonly first: boolean;
|
131
130
|
readonly last: boolean;
|
@@ -134,7 +133,6 @@ declare function __VLS_template(): {
|
|
134
133
|
readonly showHasValue?: boolean | undefined;
|
135
134
|
readonly side?: boolean | undefined;
|
136
135
|
readonly onClick?: ((value: MouseEvent) => any) | undefined;
|
137
|
-
readonly "onUpdate:indicator-style"?: ((value: CSSProperties) => any) | undefined;
|
138
136
|
readonly "onUpdate:scroll-position"?: ((value: {
|
139
137
|
left: number;
|
140
138
|
} | {
|
@@ -155,7 +153,7 @@ declare function __VLS_template(): {
|
|
155
153
|
$root: import('vue').ComponentPublicInstance | null;
|
156
154
|
$parent: import('vue').ComponentPublicInstance | null;
|
157
155
|
$host: Element | null;
|
158
|
-
$emit: ((event: "click", value: MouseEvent) => void) & ((event: "update:
|
156
|
+
$emit: ((event: "click", value: MouseEvent) => void) & ((event: "update:scroll-position", value: {
|
159
157
|
left: number;
|
160
158
|
} | {
|
161
159
|
top: number;
|
@@ -167,7 +165,7 @@ declare function __VLS_template(): {
|
|
167
165
|
hasError: boolean;
|
168
166
|
hasChanges: boolean;
|
169
167
|
hasValue: boolean;
|
170
|
-
title
|
168
|
+
title?: string;
|
171
169
|
icon: SVGComponent | undefined;
|
172
170
|
first: boolean;
|
173
171
|
last: boolean;
|
@@ -177,7 +175,6 @@ declare function __VLS_template(): {
|
|
177
175
|
side?: boolean;
|
178
176
|
}> & Readonly<{
|
179
177
|
onClick?: ((value: MouseEvent) => any) | undefined;
|
180
|
-
"onUpdate:indicator-style"?: ((value: CSSProperties) => any) | undefined;
|
181
178
|
"onUpdate:scroll-position"?: ((value: {
|
182
179
|
left: number;
|
183
180
|
} | {
|
@@ -187,7 +184,6 @@ declare function __VLS_template(): {
|
|
187
184
|
update: () => void;
|
188
185
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
189
186
|
click: (value: MouseEvent) => any;
|
190
|
-
"update:indicator-style": (value: CSSProperties) => any;
|
191
187
|
"update:scroll-position": (value: {
|
192
188
|
left: number;
|
193
189
|
} | {
|
@@ -219,7 +215,7 @@ declare function __VLS_template(): {
|
|
219
215
|
hasError: boolean;
|
220
216
|
hasChanges: boolean;
|
221
217
|
hasValue: boolean;
|
222
|
-
title
|
218
|
+
title?: string;
|
223
219
|
icon: SVGComponent | undefined;
|
224
220
|
first: boolean;
|
225
221
|
last: boolean;
|
@@ -229,7 +225,6 @@ declare function __VLS_template(): {
|
|
229
225
|
side?: boolean;
|
230
226
|
}> & Readonly<{
|
231
227
|
onClick?: ((value: MouseEvent) => any) | undefined;
|
232
|
-
"onUpdate:indicator-style"?: ((value: CSSProperties) => any) | undefined;
|
233
228
|
"onUpdate:scroll-position"?: ((value: {
|
234
229
|
left: number;
|
235
230
|
} | {
|
@@ -239,16 +234,7 @@ declare function __VLS_template(): {
|
|
239
234
|
update: () => void;
|
240
235
|
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
241
236
|
$slots: {
|
242
|
-
title?(_: {
|
243
|
-
hasChanges: boolean;
|
244
|
-
hasError: boolean;
|
245
|
-
hasValue: boolean;
|
246
|
-
}): any;
|
247
|
-
suffix?(_: {
|
248
|
-
hasChanges: boolean;
|
249
|
-
hasError: boolean;
|
250
|
-
hasValue: boolean;
|
251
|
-
}): any;
|
237
|
+
title?(_: {}): any;
|
252
238
|
right?(_: {
|
253
239
|
hasChanges: boolean;
|
254
240
|
hasError: boolean;
|
@@ -261,7 +247,7 @@ declare function __VLS_template(): {
|
|
261
247
|
$data: {};
|
262
248
|
$props: {
|
263
249
|
readonly name: string;
|
264
|
-
readonly title: string;
|
250
|
+
readonly title: string | undefined;
|
265
251
|
readonly active: boolean;
|
266
252
|
readonly removable: boolean;
|
267
253
|
readonly "onTab:switch"?: ((value: string) => any) | undefined;
|
@@ -391,7 +377,7 @@ declare function __VLS_template(): {
|
|
391
377
|
$el: any;
|
392
378
|
$options: import('vue').ComponentOptionsBase<Readonly<{
|
393
379
|
name: string;
|
394
|
-
title: string;
|
380
|
+
title: string | undefined;
|
395
381
|
active: boolean;
|
396
382
|
removable: boolean;
|
397
383
|
}> & Readonly<{
|
@@ -427,7 +413,7 @@ declare function __VLS_template(): {
|
|
427
413
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
428
414
|
} & Readonly<{}> & Omit<Readonly<{
|
429
415
|
name: string;
|
430
|
-
title: string;
|
416
|
+
title: string | undefined;
|
431
417
|
active: boolean;
|
432
418
|
removable: boolean;
|
433
419
|
}> & Readonly<{
|
@@ -462,7 +448,7 @@ declare const __VLS_component: import('vue').DefineComponent<TabsProps, {
|
|
462
448
|
"update:last": (value: boolean) => any;
|
463
449
|
"update:current": (value: string) => any;
|
464
450
|
"update:current-index": (value: number) => any;
|
465
|
-
"update:current-title": (value: string) => any;
|
451
|
+
"update:current-title": (value: string | undefined) => any;
|
466
452
|
"update:tabs-length": (value: number) => any;
|
467
453
|
"update:progress": (value: number) => any;
|
468
454
|
}, string, import('vue').PublicProps, Readonly<TabsProps> & Readonly<{
|
@@ -471,7 +457,7 @@ declare const __VLS_component: import('vue').DefineComponent<TabsProps, {
|
|
471
457
|
"onUpdate:last"?: ((value: boolean) => any) | undefined;
|
472
458
|
"onUpdate:current"?: ((value: string) => any) | undefined;
|
473
459
|
"onUpdate:current-index"?: ((value: number) => any) | undefined;
|
474
|
-
"onUpdate:current-title"?: ((value: string) => any) | undefined;
|
460
|
+
"onUpdate:current-title"?: ((value: string | undefined) => any) | undefined;
|
475
461
|
"onUpdate:tabs-length"?: ((value: number) => any) | undefined;
|
476
462
|
"onUpdate:progress"?: ((value: number) => any) | undefined;
|
477
463
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
@@ -591,7 +577,7 @@ declare const __VLS_component: import('vue').DefineComponent<TabsProps, {
|
|
591
577
|
readonly hasError: boolean;
|
592
578
|
readonly hasChanges: boolean;
|
593
579
|
readonly hasValue: boolean;
|
594
|
-
readonly title
|
580
|
+
readonly title?: string | undefined;
|
595
581
|
readonly icon: SVGComponent | undefined;
|
596
582
|
readonly first: boolean;
|
597
583
|
readonly last: boolean;
|
@@ -600,7 +586,6 @@ declare const __VLS_component: import('vue').DefineComponent<TabsProps, {
|
|
600
586
|
readonly showHasValue?: boolean | undefined;
|
601
587
|
readonly side?: boolean | undefined;
|
602
588
|
readonly onClick?: ((value: MouseEvent) => any) | undefined;
|
603
|
-
readonly "onUpdate:indicator-style"?: ((value: CSSProperties) => any) | undefined;
|
604
589
|
readonly "onUpdate:scroll-position"?: ((value: {
|
605
590
|
left: number;
|
606
591
|
} | {
|
@@ -621,7 +606,7 @@ declare const __VLS_component: import('vue').DefineComponent<TabsProps, {
|
|
621
606
|
$root: import('vue').ComponentPublicInstance | null;
|
622
607
|
$parent: import('vue').ComponentPublicInstance | null;
|
623
608
|
$host: Element | null;
|
624
|
-
$emit: ((event: "click", value: MouseEvent) => void) & ((event: "update:
|
609
|
+
$emit: ((event: "click", value: MouseEvent) => void) & ((event: "update:scroll-position", value: {
|
625
610
|
left: number;
|
626
611
|
} | {
|
627
612
|
top: number;
|
@@ -633,7 +618,7 @@ declare const __VLS_component: import('vue').DefineComponent<TabsProps, {
|
|
633
618
|
hasError: boolean;
|
634
619
|
hasChanges: boolean;
|
635
620
|
hasValue: boolean;
|
636
|
-
title
|
621
|
+
title?: string;
|
637
622
|
icon: SVGComponent | undefined;
|
638
623
|
first: boolean;
|
639
624
|
last: boolean;
|
@@ -643,7 +628,6 @@ declare const __VLS_component: import('vue').DefineComponent<TabsProps, {
|
|
643
628
|
side?: boolean;
|
644
629
|
}> & Readonly<{
|
645
630
|
onClick?: ((value: MouseEvent) => any) | undefined;
|
646
|
-
"onUpdate:indicator-style"?: ((value: CSSProperties) => any) | undefined;
|
647
631
|
"onUpdate:scroll-position"?: ((value: {
|
648
632
|
left: number;
|
649
633
|
} | {
|
@@ -653,7 +637,6 @@ declare const __VLS_component: import('vue').DefineComponent<TabsProps, {
|
|
653
637
|
update: () => void;
|
654
638
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
655
639
|
click: (value: MouseEvent) => any;
|
656
|
-
"update:indicator-style": (value: CSSProperties) => any;
|
657
640
|
"update:scroll-position": (value: {
|
658
641
|
left: number;
|
659
642
|
} | {
|
@@ -685,7 +668,7 @@ declare const __VLS_component: import('vue').DefineComponent<TabsProps, {
|
|
685
668
|
hasError: boolean;
|
686
669
|
hasChanges: boolean;
|
687
670
|
hasValue: boolean;
|
688
|
-
title
|
671
|
+
title?: string;
|
689
672
|
icon: SVGComponent | undefined;
|
690
673
|
first: boolean;
|
691
674
|
last: boolean;
|
@@ -695,7 +678,6 @@ declare const __VLS_component: import('vue').DefineComponent<TabsProps, {
|
|
695
678
|
side?: boolean;
|
696
679
|
}> & Readonly<{
|
697
680
|
onClick?: ((value: MouseEvent) => any) | undefined;
|
698
|
-
"onUpdate:indicator-style"?: ((value: CSSProperties) => any) | undefined;
|
699
681
|
"onUpdate:scroll-position"?: ((value: {
|
700
682
|
left: number;
|
701
683
|
} | {
|
@@ -705,16 +687,7 @@ declare const __VLS_component: import('vue').DefineComponent<TabsProps, {
|
|
705
687
|
update: () => void;
|
706
688
|
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
707
689
|
$slots: {
|
708
|
-
title?(_: {
|
709
|
-
hasChanges: boolean;
|
710
|
-
hasError: boolean;
|
711
|
-
hasValue: boolean;
|
712
|
-
}): any;
|
713
|
-
suffix?(_: {
|
714
|
-
hasChanges: boolean;
|
715
|
-
hasError: boolean;
|
716
|
-
hasValue: boolean;
|
717
|
-
}): any;
|
690
|
+
title?(_: {}): any;
|
718
691
|
right?(_: {
|
719
692
|
hasChanges: boolean;
|
720
693
|
hasError: boolean;
|
@@ -727,7 +700,7 @@ declare const __VLS_component: import('vue').DefineComponent<TabsProps, {
|
|
727
700
|
$data: {};
|
728
701
|
$props: {
|
729
702
|
readonly name: string;
|
730
|
-
readonly title: string;
|
703
|
+
readonly title: string | undefined;
|
731
704
|
readonly active: boolean;
|
732
705
|
readonly removable: boolean;
|
733
706
|
readonly "onTab:switch"?: ((value: string) => any) | undefined;
|
@@ -857,7 +830,7 @@ declare const __VLS_component: import('vue').DefineComponent<TabsProps, {
|
|
857
830
|
$el: any;
|
858
831
|
$options: import('vue').ComponentOptionsBase<Readonly<{
|
859
832
|
name: string;
|
860
|
-
title: string;
|
833
|
+
title: string | undefined;
|
861
834
|
active: boolean;
|
862
835
|
removable: boolean;
|
863
836
|
}> & Readonly<{
|
@@ -893,7 +866,7 @@ declare const __VLS_component: import('vue').DefineComponent<TabsProps, {
|
|
893
866
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
894
867
|
} & Readonly<{}> & Omit<Readonly<{
|
895
868
|
name: string;
|
896
|
-
title: string;
|
869
|
+
title: string | undefined;
|
897
870
|
active: boolean;
|
898
871
|
removable: boolean;
|
899
872
|
}> & Readonly<{
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WTabs.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Tabs/WTabs.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"WTabs.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Tabs/WTabs.vue"],"names":[],"mappings":"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"}
|
@@ -21,7 +21,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
21
21
|
switchToNew: { type: Boolean },
|
22
22
|
stepper: { type: Boolean },
|
23
23
|
showHasValue: { type: Boolean },
|
24
|
-
noSwitchOnInvalid: { type: Boolean }
|
24
|
+
noSwitchOnInvalid: { type: Boolean },
|
25
|
+
wrap: { type: Boolean }
|
25
26
|
},
|
26
27
|
emits: ["update:current", "update:current-index", "update:has-changes", "update:current-title", "update:tabs-length", "update:progress", "update:first", "update:last"],
|
27
28
|
setup(__props, { expose: __expose, emit: __emit }) {
|
@@ -46,7 +47,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
46
47
|
const currentIndex = computed(() => defaultSlotsKeys.value.indexOf(current.value));
|
47
48
|
const isDirect = ref(true);
|
48
49
|
const buttonRef = useTemplateRef("button");
|
49
|
-
const indicatorStyle = ref(void 0);
|
50
50
|
const minHeight = ref(0);
|
51
51
|
const tabItemRef = useTemplateRef("tabItem");
|
52
52
|
const currentIsValid = computed(() => !formRef.value?.hasShownMap[current.value] || typeof formRef.value?.errorMessageMap[current.value] !== "string");
|
@@ -201,7 +201,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
201
201
|
name: _ctx.name,
|
202
202
|
class: normalizeClass(["grid gap-4", {
|
203
203
|
"grid grid-cols-1": !_ctx.side,
|
204
|
-
"sm-not:grid-cols-[repeat(2,100vw)] sm-not:snap-x sm-not:snap-mandatory sm-not:snap-always sm-not:overflow-x-auto sm-not:overscroll-x-contain grid grid-cols-[auto,1fr] items-start": _ctx.side
|
204
|
+
"sm-not:grid-cols-[repeat(2,100vw)] sm-not:snap-x sm-not:snap-mandatory sm-not:snap-always sm-not:overflow-x-auto sm-not:overscroll-x-contain grid grid-cols-[minmax(var(--w-tabs-side-width,auto),auto),1fr] items-start": _ctx.side
|
205
205
|
}])
|
206
206
|
}, {
|
207
207
|
default: withCtx(() => [
|
@@ -210,7 +210,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
210
210
|
ref: "buttonContainer",
|
211
211
|
class: normalizeClass(["relative", {
|
212
212
|
"sm-not:snap-start grid grid-cols-[1fr,auto]": _ctx.side,
|
213
|
-
"no-scrollbar sm-not:-pl--inner-margin sm-not:-mx---inner-margin flex snap-x snap-mandatory snap-always overflow-x-auto overscroll-x-contain
|
213
|
+
"no-scrollbar sm-not:-pl--inner-margin sm-not:-mx---inner-margin flex snap-x snap-mandatory snap-always overflow-x-auto overscroll-x-contain": !_ctx.side,
|
214
|
+
"flex-wrap": !_ctx.side && _ctx.wrap,
|
215
|
+
"pr-[50%]": !_ctx.side && !_ctx.wrap
|
214
216
|
}])
|
215
217
|
}, [
|
216
218
|
(openBlock(true), createElementBlock(Fragment, null, renderList(defaultSlotsAll.value, (slot, index) => {
|
@@ -237,7 +239,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
237
239
|
class: normalizeClass({
|
238
240
|
"snap-center": !_ctx.side
|
239
241
|
}),
|
240
|
-
"onUpdate:indicatorStyle": _cache[0] || (_cache[0] = ($event) => indicatorStyle.value = $event),
|
241
242
|
"onUpdate:scrollPosition": updateScrollPosition,
|
242
243
|
onClick: ($event) => unref(switchTab)(slot.props?.name)
|
243
244
|
}, createSlots({ _: 2 }, [
|
@@ -264,17 +265,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
264
265
|
} : void 0
|
265
266
|
]), 1032, ["active", "index", "title", "icon", "has-changes", "has-error", "has-value", "first", "last", "disabled", "stepper", "show-has-value", "side", "class", "onClick"])) : (openBlock(), createBlock(resolveDynamicComponent(slot), { key: 1 }))
|
266
267
|
], 64);
|
267
|
-
}), 128))
|
268
|
-
!_ctx.stepper ? (openBlock(), createElementBlock("div", {
|
269
|
-
key: 0,
|
270
|
-
class: normalizeClass(["absolute rounded-sm duration-500", {
|
271
|
-
"bg-primary dark:bg-primary-dark": currentIsValid.value !== false,
|
272
|
-
"bg-negative dark:bg-negative-dark": currentIsValid.value === false,
|
273
|
-
"transition-[left,width,background-color]": !_ctx.side && indicatorStyle.value !== void 0,
|
274
|
-
"transition-[top,height,background-color]": _ctx.side && indicatorStyle.value !== void 0
|
275
|
-
}]),
|
276
|
-
style: normalizeStyle(indicatorStyle.value)
|
277
|
-
}, null, 6)) : createCommentVNode("", true)
|
268
|
+
}), 128))
|
278
269
|
], 2)) : createCommentVNode("", true),
|
279
270
|
defaultSlots.value.some((slot) => slot.children?.default) ? (openBlock(), createElementBlock("div", {
|
280
271
|
key: 1,
|
@@ -299,8 +290,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
299
290
|
title: slot.props.title,
|
300
291
|
active: slot.props.name === current.value,
|
301
292
|
removable: slot.props.removable ?? false,
|
302
|
-
"onTab:switch": _cache[
|
303
|
-
"onUpdate:height": _cache[
|
293
|
+
"onTab:switch": _cache[0] || (_cache[0] = ($event) => !_ctx.noSwitchOnInvalid && unref(switchOnInvalid)($event)),
|
294
|
+
"onUpdate:height": _cache[1] || (_cache[1] = ($event) => !_ctx.disableMinHeight && updateHeight($event)),
|
304
295
|
"onUpdate:active": ($event) => _ctx.$emit("update:current-title", slot.props?.title)
|
305
296
|
}, {
|
306
297
|
default: withCtx(() => [
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"TabItem.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/Tabs/components/TabItem.vue"],"names":[],"mappings":"AAYA;AA2DA,OAAO,EAAC,QAAQ,EAA+B,MAAM,KAAK,CAAA;AAM1D,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;
|
1
|
+
{"version":3,"file":"TabItem.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/Tabs/components/TabItem.vue"],"names":[],"mappings":"AAYA;AA2DA,OAAO,EAAC,QAAQ,EAA+B,MAAM,KAAK,CAAA;AAM1D,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,GAAG,SAAS,CAAA;IACzB,MAAM,EAAE,OAAO,CAAA;IACf,SAAS,EAAE,OAAO,CAAA;CACnB,CAAC;AAyCF,iBAAS,cAAc;WAoDT,OAAO,IAA6B;;yBAXrB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAmDiyoB,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAnCt7oB;AAUD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;sBA/FE,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAuHsyoB,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAfr7oB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAQpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
@@ -1,11 +1,10 @@
|
|
1
|
-
import { CSSProperties } from 'vue';
|
2
1
|
type __VLS_Props = {
|
3
2
|
active: boolean;
|
4
3
|
index: number;
|
5
4
|
hasError: boolean;
|
6
5
|
hasChanges: boolean;
|
7
6
|
hasValue: boolean;
|
8
|
-
title
|
7
|
+
title?: string;
|
9
8
|
icon: SVGComponent | undefined;
|
10
9
|
first: boolean;
|
11
10
|
last: boolean;
|
@@ -17,16 +16,7 @@ type __VLS_Props = {
|
|
17
16
|
declare function __VLS_template(): {
|
18
17
|
attrs: Partial<{}>;
|
19
18
|
slots: {
|
20
|
-
title?(_: {
|
21
|
-
hasChanges: boolean;
|
22
|
-
hasError: boolean;
|
23
|
-
hasValue: boolean;
|
24
|
-
}): any;
|
25
|
-
suffix?(_: {
|
26
|
-
hasChanges: boolean;
|
27
|
-
hasError: boolean;
|
28
|
-
hasValue: boolean;
|
29
|
-
}): any;
|
19
|
+
title?(_: {}): any;
|
30
20
|
right?(_: {
|
31
21
|
hasChanges: boolean;
|
32
22
|
hasError: boolean;
|
@@ -43,7 +33,6 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
43
33
|
update: () => void;
|
44
34
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
45
35
|
click: (value: MouseEvent) => any;
|
46
|
-
"update:indicator-style": (value: CSSProperties) => any;
|
47
36
|
"update:scroll-position": (value: {
|
48
37
|
left: number;
|
49
38
|
} | {
|
@@ -51,7 +40,6 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
51
40
|
}) => any;
|
52
41
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
53
42
|
onClick?: ((value: MouseEvent) => any) | undefined;
|
54
|
-
"onUpdate:indicator-style"?: ((value: CSSProperties) => any) | undefined;
|
55
43
|
"onUpdate:scroll-position"?: ((value: {
|
56
44
|
left: number;
|
57
45
|
} | {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"TabTitleButton.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/Tabs/components/TabTitleButton.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"TabTitleButton.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/Tabs/components/TabTitleButton.vue"],"names":[],"mappings":"AAgCA;AAmGA,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,OAAO,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,OAAO,CAAA;IACjB,UAAU,EAAE,OAAO,CAAA;IACnB,QAAQ,EAAE,OAAO,CAAA;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,YAAY,GAAG,SAAS,CAAA;IAC9B,KAAK,EAAE,OAAO,CAAA;IACd,IAAI,EAAE,OAAO,CAAA;IACb,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,IAAI,CAAC,EAAE,OAAO,CAAA;CACf,CAAC;AAiDF,iBAAS,cAAc;WA0ET,OAAO,IAA6B;;uBAZvB,GAAG;;;;;YACH,GAAG;;;;;;EAgB7B;AAUD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;cAtIyB,MAAM;;aAAU,MAAM;;;;;cAAtB,MAAM;;aAAU,MAAM;;;;kBAgJlE,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAQpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
@@ -1,17 +1,6 @@
|
|
1
|
-
import { defineComponent, useTemplateRef, watch, nextTick, onMounted, createElementBlock, openBlock, normalizeClass,
|
2
|
-
import
|
3
|
-
import IconClose from '../../../assets/icons/sax/IconClose.svg.js';
|
4
|
-
import IconNegativeInfo from '../../../assets/icons/sax/IconNegativeInfo.svg.js';
|
1
|
+
import { defineComponent, useTemplateRef, watch, nextTick, onMounted, createElementBlock, openBlock, normalizeClass, createVNode, renderSlot, withCtx, createCommentVNode, normalizeProps, guardReactiveProps } from 'vue';
|
2
|
+
import _sfc_main$1 from '../../Button/WButtonTab.vue.js';
|
5
3
|
|
6
|
-
const _hoisted_1 = ["disabled"];
|
7
|
-
const _hoisted_2 = {
|
8
|
-
key: 0,
|
9
|
-
class: "p-8"
|
10
|
-
};
|
11
|
-
const _hoisted_3 = {
|
12
|
-
key: 2,
|
13
|
-
class: "absolute bottom-0 h-1 w-full rounded-sm bg-current"
|
14
|
-
};
|
15
4
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
16
5
|
__name: "TabTitleButton",
|
17
6
|
props: {
|
@@ -29,30 +18,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
29
18
|
showHasValue: { type: Boolean },
|
30
19
|
side: { type: Boolean }
|
31
20
|
},
|
32
|
-
emits: ["click", "update:
|
21
|
+
emits: ["click", "update:scroll-position"],
|
33
22
|
setup(__props, { expose: __expose, emit: __emit }) {
|
34
23
|
const props = __props;
|
35
24
|
const emit = __emit;
|
36
25
|
const containerRef = useTemplateRef("container");
|
37
|
-
const updateIndicator = () => {
|
38
|
-
if (!props.active || props.stepper) return;
|
39
|
-
if (!containerRef.value || !containerRef.value.offsetWidth) return;
|
40
|
-
if (props.side) {
|
41
|
-
emit("update:indicator-style", {
|
42
|
-
height: containerRef.value.offsetHeight + "px",
|
43
|
-
top: containerRef.value.offsetTop + "px",
|
44
|
-
left: "0",
|
45
|
-
width: "0.25rem"
|
46
|
-
});
|
47
|
-
} else {
|
48
|
-
emit("update:indicator-style", {
|
49
|
-
width: containerRef.value.offsetWidth + "px",
|
50
|
-
left: containerRef.value.offsetLeft + "px",
|
51
|
-
bottom: "0",
|
52
|
-
height: "0.25rem"
|
53
|
-
});
|
54
|
-
}
|
55
|
-
};
|
56
26
|
const updateScrollPosition = () => {
|
57
27
|
if (!props.active) return;
|
58
28
|
if (!containerRef.value || !containerRef.value.offsetWidth) return;
|
@@ -63,7 +33,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
63
33
|
}
|
64
34
|
};
|
65
35
|
const update = () => {
|
66
|
-
updateIndicator();
|
67
36
|
updateScrollPosition();
|
68
37
|
};
|
69
38
|
watch(() => props.active, () => {
|
@@ -88,92 +57,23 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
88
57
|
"grid-cols-[1fr,auto]": !_ctx.side
|
89
58
|
}])
|
90
59
|
}, [
|
91
|
-
|
60
|
+
createVNode(_sfc_main$1, {
|
61
|
+
active: _ctx.active,
|
92
62
|
disabled: _ctx.disabled,
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
"bg-positive dark:bg-positive-dark outline-positive/10 dark:outline-positive-dark/10": !_ctx.hasError && _ctx.hasValue,
|
108
|
-
"bg-gray-400 outline-gray-400/10 dark:bg-gray-600 dark:outline-gray-600/10": !_ctx.hasError && !_ctx.hasValue,
|
109
|
-
"outline-[1.5rem]": _ctx.active
|
110
|
-
}])
|
111
|
-
}, [
|
112
|
-
_ctx.hasError ? (openBlock(), createBlock(unref(IconNegativeInfo), {
|
113
|
-
key: 0,
|
114
|
-
class: "size-8"
|
115
|
-
})) : _ctx.hasValue ? (openBlock(), createBlock(unref(IconCheckCircle), {
|
116
|
-
key: 1,
|
117
|
-
class: "size-8"
|
118
|
-
})) : (openBlock(), createBlock(unref(IconClose), {
|
119
|
-
key: 2,
|
120
|
-
class: "size-8"
|
121
|
-
}))
|
122
|
-
], 2)
|
123
|
-
])) : createCommentVNode("", true),
|
124
|
-
createElementVNode("div", {
|
125
|
-
class: normalizeClass(["relative col-start-2 self-start", {
|
126
|
-
"mt-3": _ctx.stepper,
|
127
|
-
"w-ripple w-ripple-hover": !_ctx.disabled
|
128
|
-
}])
|
129
|
-
}, [
|
130
|
-
_ctx.$slots.title ? renderSlot(_ctx.$slots, "title", normalizeProps(mergeProps({ key: 0 }, { hasChanges: _ctx.hasChanges, hasError: _ctx.hasError, hasValue: _ctx.hasValue }))) : (openBlock(), createElementBlock("div", {
|
131
|
-
key: 1,
|
132
|
-
class: normalizeClass(["flex items-center", {
|
133
|
-
"h-10 justify-center text-center": !_ctx.side,
|
134
|
-
"py-3 text-start": _ctx.side
|
135
|
-
}])
|
136
|
-
}, [
|
137
|
-
createElementVNode("div", {
|
138
|
-
class: normalizeClass(["whitespace-nowrap px-4", {
|
139
|
-
"sm-not:-pl--inner-margin": _ctx.side
|
140
|
-
}])
|
141
|
-
}, [
|
142
|
-
_ctx.icon !== void 0 ? (openBlock(), createBlock(Suspense, { key: 0 }, {
|
143
|
-
fallback: withCtx(() => _cache[1] || (_cache[1] = [
|
144
|
-
createElementVNode("svg", { class: "square-5 -mt-1 inline" }, [
|
145
|
-
createElementVNode("g")
|
146
|
-
], -1)
|
147
|
-
])),
|
148
|
-
default: withCtx(() => [
|
149
|
-
(openBlock(), createBlock(resolveDynamicComponent(_ctx.icon), { class: "square-5 -mt-1 inline" }))
|
150
|
-
]),
|
151
|
-
_: 1
|
152
|
-
})) : createCommentVNode("", true),
|
153
|
-
createTextVNode(" " + toDisplayString(_ctx.title), 1)
|
154
|
-
], 2),
|
155
|
-
renderSlot(_ctx.$slots, "suffix", normalizeProps(guardReactiveProps({ hasChanges: _ctx.hasChanges, hasError: _ctx.hasError, hasValue: _ctx.hasValue })))
|
156
|
-
], 2)),
|
157
|
-
createVNode(Transition, {
|
158
|
-
"enter-active-class": "transition-opacity",
|
159
|
-
"leave-active-class": "transition-opacity",
|
160
|
-
"enter-from-class": "opacity-0",
|
161
|
-
"leave-to-class": "opacity-0"
|
162
|
-
}, {
|
163
|
-
default: withCtx(() => [
|
164
|
-
_ctx.hasChanges ? (openBlock(), createElementBlock("div", {
|
165
|
-
key: 0,
|
166
|
-
class: normalizeClass(["square-2 absolute right-0 top-0 rounded-full transition-colors duration-500", {
|
167
|
-
"bg-info dark:bg-info-dark": !_ctx.hasError,
|
168
|
-
"bg-negative dark:bg-negative-dark": _ctx.hasError
|
169
|
-
}])
|
170
|
-
}, null, 2)) : createCommentVNode("", true)
|
171
|
-
]),
|
172
|
-
_: 1
|
173
|
-
}),
|
174
|
-
_ctx.stepper ? (openBlock(), createElementBlock("div", _hoisted_3)) : createCommentVNode("", true)
|
175
|
-
], 2)
|
176
|
-
], 10, _hoisted_1),
|
63
|
+
"has-changes": _ctx.hasChanges,
|
64
|
+
"has-error": _ctx.hasError,
|
65
|
+
"has-value": _ctx.showHasValue && _ctx.hasValue,
|
66
|
+
indicator: _ctx.stepper,
|
67
|
+
side: _ctx.side,
|
68
|
+
title: _ctx.title,
|
69
|
+
icon: _ctx.icon,
|
70
|
+
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("click", $event))
|
71
|
+
}, {
|
72
|
+
default: withCtx(() => [
|
73
|
+
_ctx.$slots.title ? renderSlot(_ctx.$slots, "title", { key: 0 }) : createCommentVNode("", true)
|
74
|
+
]),
|
75
|
+
_: 3
|
76
|
+
}, 8, ["active", "disabled", "has-changes", "has-error", "has-value", "indicator", "side", "title", "icon"]),
|
177
77
|
renderSlot(_ctx.$slots, "right", normalizeProps(guardReactiveProps({ hasChanges: _ctx.hasChanges, hasError: _ctx.hasError, hasValue: _ctx.hasValue })))
|
178
78
|
], 2);
|
179
79
|
};
|
@@ -12,6 +12,7 @@ export interface TabsProps {
|
|
12
12
|
stepper?: boolean;
|
13
13
|
showHasValue?: boolean;
|
14
14
|
noSwitchOnInvalid?: boolean;
|
15
|
+
wrap?: boolean;
|
15
16
|
}
|
16
17
|
export type TabsItemScopedProps = {
|
17
18
|
hasError: boolean;
|
@@ -19,7 +20,7 @@ export type TabsItemScopedProps = {
|
|
19
20
|
hasValue: boolean;
|
20
21
|
};
|
21
22
|
export type TabsItemProps = {
|
22
|
-
title
|
23
|
+
title?: string;
|
23
24
|
name: string;
|
24
25
|
icon?: SVGComponent;
|
25
26
|
disabled?: boolean;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/Tabs/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,KAAK,EAAC,MAAM,KAAK,CAAA;AAE9B,MAAM,WAAW,SAAS;IACxB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,WAAW,CAAC,EAAE,KAAK,EAAE,CAAA;IACrB,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,iBAAiB,CAAC,EAAE,OAAO,CAAA;
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/Tabs/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,KAAK,EAAC,MAAM,KAAK,CAAA;AAE9B,MAAM,WAAW,SAAS;IACxB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,WAAW,CAAC,EAAE,KAAK,EAAE,CAAA;IACrB,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,IAAI,CAAC,EAAE,OAAO,CAAA;CACf;AAED,MAAM,MAAM,mBAAmB,GAAG;IAChC,QAAQ,EAAE,OAAO,CAAA;IACjB,UAAU,EAAE,OAAO,CAAA;IACnB,QAAQ,EAAE,OAAO,CAAA;CAClB,CAAA;AAED,MAAM,MAAM,aAAa,GAAG;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,CAAC,EAAE,YAAY,CAAA;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,IAAI,CAAC,EAAE,OAAO,CAAA;CACf,CAAA"}
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { App } from 'vue';
|
2
2
|
import { default as WActionsBar } from '../components/ActionsBar/WActionsBar.vue';
|
3
|
+
import { default as WActionsBarFilter } from '../components/ActionsBar/WActionsBarFilter.vue';
|
3
4
|
import { default as WBottomSheet } from '../components/BottomSheet/WBottomSheet.vue';
|
4
5
|
import { default as WButton } from '../components/Button/WButton.vue';
|
5
6
|
import { default as WButtonAction } from '../components/Button/WButtonAction.vue';
|
@@ -12,6 +13,7 @@ import { default as WButtonMoreItem } from '../components/Button/WButtonMoreItem
|
|
12
13
|
import { default as WButtonSelection } from '../components/Button/WButtonSelection.vue';
|
13
14
|
import { default as WButtonSelectionAction } from '../components/Button/WButtonSelectionAction.vue';
|
14
15
|
import { default as WButtonSelectionState } from '../components/Button/WButtonSelectionState.vue';
|
16
|
+
import { default as WButtonTab } from '../components/Button/WButtonTab.vue';
|
15
17
|
import { default as WButtonUnselect } from '../components/Button/WButtonUnselect.vue';
|
16
18
|
import { default as WCheckbox } from '../components/Checkbox/WCheckbox.vue';
|
17
19
|
import { default as WCheckboxGroup } from '../components/Checkbox/WCheckboxGroup.vue';
|
@@ -39,6 +41,7 @@ import { default as WFormAsyncSelectSingle } from '../components/FormAsync/WForm
|
|
39
41
|
import { default as WFormAsyncSelectStringified } from '../components/FormAsync/WFormAsyncSelectStringified.vue';
|
40
42
|
import { default as WFormAsyncToggle } from '../components/FormAsync/WFormAsyncToggle.vue';
|
41
43
|
import { default as WHeaderBar } from '../components/HeaderBar/WHeaderBar.vue';
|
44
|
+
import { default as WHeaderBarSearch } from '../components/HeaderBar/WHeaderBarSearch.vue';
|
42
45
|
import { default as WImageViewer } from '../components/ImageViewer/WImageViewer.vue';
|
43
46
|
import { default as WInfiniteList } from '../components/InfiniteList/WInfiniteList.vue';
|
44
47
|
import { default as WInfiniteListScrollingElement } from '../components/InfiniteList/WInfiniteListScrollingElement.vue';
|
@@ -96,5 +99,5 @@ declare const _default: {
|
|
96
99
|
install: (app: App | any) => void;
|
97
100
|
};
|
98
101
|
export default _default;
|
99
|
-
export { WActionsBar, WBottomSheet, WButton, WButtonAction, WButtonCopy, WButtonDropdown, WButtonGroup, WButtonInput, WButtonMore, WButtonMoreItem, WButtonSelection, WButtonSelectionAction, WButtonSelectionState, WButtonUnselect, WCheckbox, WCheckboxGroup, WChip, WClickOutside, WCounter, WDatePicker, WDatePickerSingle, WDropdown, WDropdownMenu, WEmptyComponent, WExpansion, WExpansionItem, WFieldWrapper, WFilePicker, WFilterWrapper, WForm, WFormValidator, WFormAsyncButtonGroup, WFormAsyncCheckboxGroup, WFormAsyncInput, WFormAsyncSelect, WFormAsyncSelectInfiniteSingle, WFormAsyncSelectSingle, WFormAsyncSelectStringified, WFormAsyncToggle, WHeaderBar, WImageViewer, WInfiniteList, WInfiniteListScrollingElement, WInfiniteListWrapper, WInfoCard, WInfoCardNegative, WInput, WInputAsync, WInputDate, WInputOptions, WInputSuggest, WLink, WLinkArrow, WList, WListCard, WListCardField, WListHeader, WListHeaderItem, WMenuItem, WModal, WModalExport, WModalImport, WModalStepper, WModalWrapper, WNavBar, WNavItem, WNavItemExpand, WNavItemTransition, WNotify, WNumberFormatter, WPage, WPageBreadcrumbs, WPageNumerator, WPageTitle, WProgress, WProgressStriped, WSelect, WSelectAsync, WSelectAsyncList, WSelectAsyncSingle, WSelectSingle, WSelectStringified, WShine, WShineEffect, WSkeleton, WSpinner, WTabs, WTabsColumns, WTabsItem, WToggle, WToggleTheme, WTooltip, WTooltipContainer, };
|
102
|
+
export { WActionsBar, WActionsBarFilter, WBottomSheet, WButton, WButtonAction, WButtonCopy, WButtonDropdown, WButtonGroup, WButtonInput, WButtonMore, WButtonMoreItem, WButtonSelection, WButtonSelectionAction, WButtonSelectionState, WButtonTab, WButtonUnselect, WCheckbox, WCheckboxGroup, WChip, WClickOutside, WCounter, WDatePicker, WDatePickerSingle, WDropdown, WDropdownMenu, WEmptyComponent, WExpansion, WExpansionItem, WFieldWrapper, WFilePicker, WFilterWrapper, WForm, WFormValidator, WFormAsyncButtonGroup, WFormAsyncCheckboxGroup, WFormAsyncInput, WFormAsyncSelect, WFormAsyncSelectInfiniteSingle, WFormAsyncSelectSingle, WFormAsyncSelectStringified, WFormAsyncToggle, WHeaderBar, WHeaderBarSearch, WImageViewer, WInfiniteList, WInfiniteListScrollingElement, WInfiniteListWrapper, WInfoCard, WInfoCardNegative, WInput, WInputAsync, WInputDate, WInputOptions, WInputSuggest, WLink, WLinkArrow, WList, WListCard, WListCardField, WListHeader, WListHeaderItem, WMenuItem, WModal, WModalExport, WModalImport, WModalStepper, WModalWrapper, WNavBar, WNavItem, WNavItemExpand, WNavItemTransition, WNotify, WNumberFormatter, WPage, WPageBreadcrumbs, WPageNumerator, WPageTitle, WProgress, WProgressStriped, WSelect, WSelectAsync, WSelectAsyncList, WSelectAsyncSingle, WSelectSingle, WSelectStringified, WShine, WShineEffect, WSkeleton, WSpinner, WTabs, WTabsColumns, WTabsItem, WToggle, WToggleTheme, WTooltip, WTooltipContainer, };
|
100
103
|
//# sourceMappingURL=componentsPlugin.d.ts.map
|