@nuxt/ui 2.19.2 → 2.20.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/README.md +2 -2
- package/dist/module.json +1 -1
- package/dist/module.mjs +1 -1
- package/dist/runtime/components/data/Table.vue +75 -34
- package/dist/runtime/components/data/Table.vue.d.ts +74 -61
- package/dist/runtime/components/elements/Accordion.vue +3 -1
- package/dist/runtime/components/elements/Accordion.vue.d.ts +25 -24
- package/dist/runtime/components/elements/Alert.vue.d.ts +39 -39
- package/dist/runtime/components/elements/Avatar.vue.d.ts +3 -3
- package/dist/runtime/components/elements/AvatarGroup.d.ts +11 -9
- package/dist/runtime/components/elements/Badge.vue +69 -2
- package/dist/runtime/components/elements/Badge.vue.d.ts +131 -4
- package/dist/runtime/components/elements/Button.vue.d.ts +20 -20
- package/dist/runtime/components/elements/ButtonGroup.d.ts +15 -13
- package/dist/runtime/components/elements/Carousel.vue.d.ts +43 -41
- package/dist/runtime/components/elements/Chip.vue.d.ts +5 -5
- package/dist/runtime/components/elements/Dropdown.vue.d.ts +7 -7
- package/dist/runtime/components/elements/Link.vue +15 -4
- package/dist/runtime/components/elements/Link.vue.d.ts +30 -29
- package/dist/runtime/components/elements/Meter.vue.d.ts +3 -3
- package/dist/runtime/components/elements/MeterGroup.d.ts +20 -18
- package/dist/runtime/components/elements/Progress.vue.d.ts +2 -2
- package/dist/runtime/components/forms/Checkbox.vue.d.ts +2 -2
- package/dist/runtime/components/forms/Form.vue +6 -5
- package/dist/runtime/components/forms/FormGroup.vue.d.ts +2 -2
- package/dist/runtime/components/forms/Input.vue.d.ts +3 -3
- package/dist/runtime/components/forms/InputMenu.vue +35 -5
- package/dist/runtime/components/forms/InputMenu.vue.d.ts +13 -12
- package/dist/runtime/components/forms/Radio.vue.d.ts +2 -2
- package/dist/runtime/components/forms/RadioGroup.vue.d.ts +4 -4
- package/dist/runtime/components/forms/Range.vue.d.ts +2 -2
- package/dist/runtime/components/forms/Select.vue.d.ts +3 -3
- package/dist/runtime/components/forms/SelectMenu.vue +46 -23
- package/dist/runtime/components/forms/SelectMenu.vue.d.ts +12 -11
- package/dist/runtime/components/forms/Textarea.vue.d.ts +3 -3
- package/dist/runtime/components/forms/Toggle.vue.d.ts +1 -1
- package/dist/runtime/components/layout/Card.vue.d.ts +1 -1
- package/dist/runtime/components/layout/Container.vue.d.ts +1 -1
- package/dist/runtime/components/layout/Divider.vue.d.ts +19 -19
- package/dist/runtime/components/layout/Skeleton.vue.d.ts +1 -1
- package/dist/runtime/components/navigation/Breadcrumb.vue.d.ts +3 -3
- package/dist/runtime/components/navigation/CommandPalette.vue.d.ts +26 -26
- package/dist/runtime/components/navigation/CommandPaletteGroup.vue.d.ts +3 -3
- package/dist/runtime/components/navigation/HorizontalNavigation.vue.d.ts +164 -22
- package/dist/runtime/components/navigation/Pagination.vue.d.ts +38 -38
- package/dist/runtime/components/navigation/Tabs.vue.d.ts +2 -2
- package/dist/runtime/components/navigation/VerticalNavigation.vue.d.ts +186 -44
- package/dist/runtime/components/overlays/ContextMenu.vue.d.ts +1 -1
- package/dist/runtime/components/overlays/Notification.vue +6 -2
- package/dist/runtime/components/overlays/Notification.vue.d.ts +50 -41
- package/dist/runtime/components/overlays/Notifications.vue +2 -2
- package/dist/runtime/components/overlays/Notifications.vue.d.ts +55 -46
- package/dist/runtime/components/overlays/Popover.vue.d.ts +1 -1
- package/dist/runtime/components/overlays/Tooltip.vue.d.ts +2 -2
- package/dist/runtime/types/checkbox.d.ts +3 -0
- package/dist/runtime/types/divider.d.ts +1 -1
- package/dist/runtime/types/index.d.ts +1 -0
- package/dist/runtime/types/index.js +1 -0
- package/dist/runtime/types/link.d.ts +1 -1
- package/dist/runtime/types/utils.d.ts +1 -1
- package/dist/runtime/ui.config/data/table.d.ts +9 -8
- package/dist/runtime/ui.config/elements/accordion.d.ts +1 -1
- package/dist/runtime/ui.config/elements/alert.d.ts +5 -4
- package/dist/runtime/ui.config/elements/badge.d.ts +15 -0
- package/dist/runtime/ui.config/elements/badge.js +15 -0
- package/dist/runtime/ui.config/elements/carousel.d.ts +3 -2
- package/dist/runtime/ui.config/elements/dropdown.d.ts +2 -1
- package/dist/runtime/ui.config/forms/inputMenu.d.ts +2 -1
- package/dist/runtime/ui.config/forms/selectMenu.d.ts +1 -1
- package/dist/runtime/ui.config/layout/divider.d.ts +4 -3
- package/dist/runtime/ui.config/navigation/commandPalette.d.ts +2 -1
- package/dist/runtime/ui.config/navigation/horizontalNavigation.d.ts +5 -4
- package/dist/runtime/ui.config/navigation/pagination.d.ts +7 -6
- package/dist/runtime/ui.config/navigation/verticalNavigation.d.ts +5 -4
- package/dist/runtime/ui.config/overlays/notification.d.ts +6 -5
- package/package.json +20 -17
|
@@ -473,23 +473,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
473
473
|
class: any;
|
|
474
474
|
to: string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric;
|
|
475
475
|
disabled: boolean;
|
|
476
|
-
truncate: boolean;
|
|
477
|
-
target: "_blank" | "_parent" | "_self" | "_top" | (string & {});
|
|
478
|
-
activeClass: string;
|
|
479
|
-
exactActiveClass: string;
|
|
480
|
-
ariaCurrentValue: "page" | "step" | "location" | "date" | "time" | "true" | "false";
|
|
481
|
-
replace: boolean;
|
|
482
|
-
noRel: boolean;
|
|
483
|
-
prefetch: boolean;
|
|
484
|
-
noPrefetch: boolean;
|
|
485
|
-
prefetchedClass: string;
|
|
486
|
-
external: boolean;
|
|
487
|
-
leading: boolean;
|
|
488
|
-
color: ButtonColor;
|
|
489
|
-
variant: ButtonVariant;
|
|
490
|
-
href: string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric;
|
|
491
|
-
rel: any;
|
|
492
|
-
label: string;
|
|
493
476
|
ui: {
|
|
494
477
|
base?: string;
|
|
495
478
|
font?: string;
|
|
@@ -574,6 +557,23 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
574
557
|
} & {
|
|
575
558
|
strategy?: Strategy;
|
|
576
559
|
};
|
|
560
|
+
color: ButtonColor;
|
|
561
|
+
variant: ButtonVariant;
|
|
562
|
+
truncate: boolean;
|
|
563
|
+
target: "_blank" | "_parent" | "_self" | "_top" | (string & {});
|
|
564
|
+
activeClass: string;
|
|
565
|
+
exactActiveClass: string;
|
|
566
|
+
ariaCurrentValue: "page" | "step" | "location" | "date" | "time" | "true" | "false";
|
|
567
|
+
replace: boolean;
|
|
568
|
+
noRel: boolean;
|
|
569
|
+
prefetch: boolean;
|
|
570
|
+
noPrefetch: boolean;
|
|
571
|
+
prefetchedClass: string;
|
|
572
|
+
external: boolean;
|
|
573
|
+
leading: boolean;
|
|
574
|
+
href: string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric;
|
|
575
|
+
rel: any;
|
|
576
|
+
label: string;
|
|
577
577
|
icon: string;
|
|
578
578
|
block: boolean;
|
|
579
579
|
square: boolean;
|
|
@@ -651,7 +651,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
651
651
|
default: boolean;
|
|
652
652
|
};
|
|
653
653
|
exactQuery: {
|
|
654
|
-
type:
|
|
654
|
+
type: PropType<boolean | "partial">;
|
|
655
655
|
default: boolean;
|
|
656
656
|
};
|
|
657
657
|
exactHash: {
|
|
@@ -754,7 +754,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
754
754
|
default: boolean;
|
|
755
755
|
};
|
|
756
756
|
exactQuery: {
|
|
757
|
-
type:
|
|
757
|
+
type: PropType<boolean | "partial">;
|
|
758
758
|
default: boolean;
|
|
759
759
|
};
|
|
760
760
|
exactHash: {
|
|
@@ -847,7 +847,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
847
847
|
as: string;
|
|
848
848
|
active: boolean;
|
|
849
849
|
exact: boolean;
|
|
850
|
-
exactQuery: boolean;
|
|
850
|
+
exactQuery: boolean | "partial";
|
|
851
851
|
exactHash: boolean;
|
|
852
852
|
inactiveClass: string;
|
|
853
853
|
href: string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { PropType } from 'vue';
|
|
2
|
-
import type { ButtonSize, Strategy } from '../../types/index.js';
|
|
2
|
+
import type { ButtonSize, DeepPartial, Strategy } from '../../types/index.js';
|
|
3
3
|
declare const buttonGroupConfig: {
|
|
4
4
|
wrapper: {
|
|
5
5
|
horizontal: string;
|
|
@@ -116,7 +116,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
116
116
|
default: () => "";
|
|
117
117
|
};
|
|
118
118
|
ui: {
|
|
119
|
-
type: PropType<
|
|
119
|
+
type: PropType<DeepPartial<typeof buttonGroupConfig> & {
|
|
120
120
|
strategy?: Strategy;
|
|
121
121
|
}>;
|
|
122
122
|
default: () => {};
|
|
@@ -139,22 +139,20 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
139
139
|
default: () => "";
|
|
140
140
|
};
|
|
141
141
|
ui: {
|
|
142
|
-
type: PropType<
|
|
142
|
+
type: PropType<DeepPartial<typeof buttonGroupConfig> & {
|
|
143
143
|
strategy?: Strategy;
|
|
144
144
|
}>;
|
|
145
145
|
default: () => {};
|
|
146
146
|
};
|
|
147
147
|
}>> & Readonly<{}>, {
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
ui: Partial<{
|
|
151
|
-
wrapper: {
|
|
148
|
+
ui: {
|
|
149
|
+
wrapper?: DeepPartial<{
|
|
152
150
|
horizontal: string;
|
|
153
151
|
vertical: string;
|
|
154
|
-
}
|
|
155
|
-
rounded
|
|
156
|
-
shadow
|
|
157
|
-
orientation
|
|
152
|
+
}, any>;
|
|
153
|
+
rounded?: string;
|
|
154
|
+
shadow?: string;
|
|
155
|
+
orientation?: DeepPartial<{
|
|
158
156
|
'rounded-none': {
|
|
159
157
|
horizontal: {
|
|
160
158
|
start: string;
|
|
@@ -245,10 +243,14 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
245
243
|
end: string;
|
|
246
244
|
};
|
|
247
245
|
};
|
|
248
|
-
}
|
|
249
|
-
}
|
|
246
|
+
}, any>;
|
|
247
|
+
} & {
|
|
248
|
+
[key: string]: any;
|
|
249
|
+
} & {
|
|
250
250
|
strategy?: Strategy;
|
|
251
251
|
};
|
|
252
|
+
size: ButtonSize;
|
|
253
|
+
orientation: "horizontal" | "vertical";
|
|
252
254
|
class: any;
|
|
253
255
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
254
256
|
export default _default;
|
|
@@ -15,12 +15,12 @@ declare const config: {
|
|
|
15
15
|
};
|
|
16
16
|
default: {
|
|
17
17
|
prevButton: {
|
|
18
|
-
color: "
|
|
18
|
+
color: import("../../types/button").ButtonColor;
|
|
19
19
|
class: string;
|
|
20
20
|
icon: string;
|
|
21
21
|
};
|
|
22
22
|
nextButton: {
|
|
23
|
-
color: "
|
|
23
|
+
color: import("../../types/button").ButtonColor;
|
|
24
24
|
class: string;
|
|
25
25
|
icon: string;
|
|
26
26
|
};
|
|
@@ -64,9 +64,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
64
64
|
default: () => string;
|
|
65
65
|
};
|
|
66
66
|
ui: {
|
|
67
|
-
type: PropType<DeepPartial<typeof config & {
|
|
67
|
+
type: PropType<DeepPartial<typeof config> & {
|
|
68
68
|
strategy?: Strategy;
|
|
69
|
-
}
|
|
69
|
+
}>;
|
|
70
70
|
default: any;
|
|
71
71
|
};
|
|
72
72
|
}>, {
|
|
@@ -85,12 +85,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
85
85
|
};
|
|
86
86
|
default: {
|
|
87
87
|
prevButton: {
|
|
88
|
-
color: "
|
|
88
|
+
color: import("../../types/button").ButtonColor;
|
|
89
89
|
class: string;
|
|
90
90
|
icon: string;
|
|
91
91
|
};
|
|
92
92
|
nextButton: {
|
|
93
|
-
color: "
|
|
93
|
+
color: import("../../types/button").ButtonColor;
|
|
94
94
|
class: string;
|
|
95
95
|
icon: string;
|
|
96
96
|
};
|
|
@@ -146,41 +146,43 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
146
146
|
default: () => string;
|
|
147
147
|
};
|
|
148
148
|
ui: {
|
|
149
|
-
type: PropType<DeepPartial<typeof config & {
|
|
149
|
+
type: PropType<DeepPartial<typeof config> & {
|
|
150
150
|
strategy?: Strategy;
|
|
151
|
-
}
|
|
151
|
+
}>;
|
|
152
152
|
default: any;
|
|
153
153
|
};
|
|
154
154
|
}>> & Readonly<{}>, {
|
|
155
155
|
class: any;
|
|
156
|
-
ui:
|
|
157
|
-
wrapper
|
|
158
|
-
container
|
|
159
|
-
item
|
|
160
|
-
arrows
|
|
156
|
+
ui: {
|
|
157
|
+
wrapper?: string;
|
|
158
|
+
container?: string;
|
|
159
|
+
item?: string;
|
|
160
|
+
arrows?: DeepPartial<{
|
|
161
161
|
wrapper: string;
|
|
162
|
-
}
|
|
163
|
-
indicators
|
|
162
|
+
}, any>;
|
|
163
|
+
indicators?: DeepPartial<{
|
|
164
164
|
wrapper: string;
|
|
165
165
|
base: string;
|
|
166
166
|
active: string;
|
|
167
167
|
inactive: string;
|
|
168
|
-
}
|
|
169
|
-
default
|
|
168
|
+
}, any>;
|
|
169
|
+
default?: DeepPartial<{
|
|
170
170
|
prevButton: {
|
|
171
|
-
color: "
|
|
171
|
+
color: import("../../types/button").ButtonColor;
|
|
172
172
|
class: string;
|
|
173
173
|
icon: string;
|
|
174
174
|
};
|
|
175
175
|
nextButton: {
|
|
176
|
-
color: "
|
|
176
|
+
color: import("../../types/button").ButtonColor;
|
|
177
177
|
class: string;
|
|
178
178
|
icon: string;
|
|
179
179
|
};
|
|
180
|
-
}
|
|
180
|
+
}, any>;
|
|
181
|
+
} & {
|
|
182
|
+
[key: string]: any;
|
|
181
183
|
} & {
|
|
182
184
|
strategy?: Strategy;
|
|
183
|
-
}
|
|
185
|
+
};
|
|
184
186
|
items: any[];
|
|
185
187
|
arrows: boolean;
|
|
186
188
|
indicators: boolean;
|
|
@@ -743,23 +745,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
743
745
|
class: any;
|
|
744
746
|
to: string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric;
|
|
745
747
|
disabled: boolean;
|
|
746
|
-
truncate: boolean;
|
|
747
|
-
target: "_blank" | "_parent" | "_self" | "_top" | (string & {});
|
|
748
|
-
activeClass: string;
|
|
749
|
-
exactActiveClass: string;
|
|
750
|
-
ariaCurrentValue: "page" | "step" | "location" | "date" | "time" | "true" | "false";
|
|
751
|
-
replace: boolean;
|
|
752
|
-
noRel: boolean;
|
|
753
|
-
prefetch: boolean;
|
|
754
|
-
noPrefetch: boolean;
|
|
755
|
-
prefetchedClass: string;
|
|
756
|
-
external: boolean;
|
|
757
|
-
leading: boolean;
|
|
758
|
-
color: import("../../types/button").ButtonColor;
|
|
759
|
-
variant: import("../../types/button").ButtonVariant;
|
|
760
|
-
href: string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric;
|
|
761
|
-
rel: any;
|
|
762
|
-
label: string;
|
|
763
748
|
ui: {
|
|
764
749
|
base?: string;
|
|
765
750
|
font?: string;
|
|
@@ -844,6 +829,23 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
844
829
|
} & {
|
|
845
830
|
strategy?: Strategy;
|
|
846
831
|
};
|
|
832
|
+
color: import("../../types/button").ButtonColor;
|
|
833
|
+
variant: import("../../types/button").ButtonVariant;
|
|
834
|
+
truncate: boolean;
|
|
835
|
+
target: "_blank" | "_parent" | "_self" | "_top" | (string & {});
|
|
836
|
+
activeClass: string;
|
|
837
|
+
exactActiveClass: string;
|
|
838
|
+
ariaCurrentValue: "page" | "step" | "location" | "date" | "time" | "true" | "false";
|
|
839
|
+
replace: boolean;
|
|
840
|
+
noRel: boolean;
|
|
841
|
+
prefetch: boolean;
|
|
842
|
+
noPrefetch: boolean;
|
|
843
|
+
prefetchedClass: string;
|
|
844
|
+
external: boolean;
|
|
845
|
+
leading: boolean;
|
|
846
|
+
href: string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric;
|
|
847
|
+
rel: any;
|
|
848
|
+
label: string;
|
|
847
849
|
icon: string;
|
|
848
850
|
block: boolean;
|
|
849
851
|
square: boolean;
|
|
@@ -921,7 +923,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
921
923
|
default: boolean;
|
|
922
924
|
};
|
|
923
925
|
exactQuery: {
|
|
924
|
-
type:
|
|
926
|
+
type: PropType<boolean | "partial">;
|
|
925
927
|
default: boolean;
|
|
926
928
|
};
|
|
927
929
|
exactHash: {
|
|
@@ -1024,7 +1026,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1024
1026
|
default: boolean;
|
|
1025
1027
|
};
|
|
1026
1028
|
exactQuery: {
|
|
1027
|
-
type:
|
|
1029
|
+
type: PropType<boolean | "partial">;
|
|
1028
1030
|
default: boolean;
|
|
1029
1031
|
};
|
|
1030
1032
|
exactHash: {
|
|
@@ -1117,7 +1119,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1117
1119
|
as: string;
|
|
1118
1120
|
active: boolean;
|
|
1119
1121
|
exact: boolean;
|
|
1120
|
-
exactQuery: boolean;
|
|
1122
|
+
exactQuery: boolean | "partial";
|
|
1121
1123
|
exactHash: boolean;
|
|
1122
1124
|
inactiveClass: string;
|
|
1123
1125
|
href: string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric;
|
|
@@ -150,12 +150,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
150
150
|
default: () => {};
|
|
151
151
|
};
|
|
152
152
|
}>> & Readonly<{}>, {
|
|
153
|
-
size: "
|
|
153
|
+
size: "sm" | "xs" | "2xs" | "md" | "lg" | "xl" | "3xs" | "2xl" | "3xl";
|
|
154
154
|
class: any;
|
|
155
|
-
inset: boolean;
|
|
156
|
-
position: "top-right" | "bottom-right" | "top-left" | "bottom-left";
|
|
157
|
-
color: ChipColor;
|
|
158
|
-
text: string | number;
|
|
159
155
|
ui: {
|
|
160
156
|
wrapper?: string;
|
|
161
157
|
base?: string;
|
|
@@ -194,6 +190,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
194
190
|
} & {
|
|
195
191
|
strategy?: Strategy;
|
|
196
192
|
};
|
|
193
|
+
color: ChipColor;
|
|
194
|
+
inset: boolean;
|
|
195
|
+
position: "top-right" | "bottom-right" | "top-left" | "bottom-left";
|
|
196
|
+
text: string | number;
|
|
197
197
|
show: boolean;
|
|
198
198
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
199
199
|
export default _default;
|
|
@@ -29,7 +29,7 @@ declare const config: {
|
|
|
29
29
|
};
|
|
30
30
|
avatar: {
|
|
31
31
|
base: string;
|
|
32
|
-
size: "
|
|
32
|
+
size: import("../../types/avatar").AvatarSize;
|
|
33
33
|
};
|
|
34
34
|
label: string;
|
|
35
35
|
shortcuts: string;
|
|
@@ -128,7 +128,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
128
128
|
};
|
|
129
129
|
avatar: {
|
|
130
130
|
base: string;
|
|
131
|
-
size: "
|
|
131
|
+
size: import("../../types/avatar").AvatarSize;
|
|
132
132
|
};
|
|
133
133
|
label: string;
|
|
134
134
|
shortcuts: string;
|
|
@@ -244,7 +244,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
244
244
|
mode: "click" | "hover";
|
|
245
245
|
class: any;
|
|
246
246
|
disabled: boolean;
|
|
247
|
-
popper: PopperOptions;
|
|
248
247
|
ui: {
|
|
249
248
|
wrapper?: string;
|
|
250
249
|
container?: string;
|
|
@@ -273,7 +272,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
273
272
|
};
|
|
274
273
|
avatar: {
|
|
275
274
|
base: string;
|
|
276
|
-
size: "
|
|
275
|
+
size: import("../../types/avatar").AvatarSize;
|
|
277
276
|
};
|
|
278
277
|
label: string;
|
|
279
278
|
shortcuts: string;
|
|
@@ -307,6 +306,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
307
306
|
} & {
|
|
308
307
|
strategy?: Strategy;
|
|
309
308
|
};
|
|
309
|
+
popper: PopperOptions;
|
|
310
310
|
open: boolean;
|
|
311
311
|
items: DropdownItem[][];
|
|
312
312
|
openDelay: number;
|
|
@@ -786,9 +786,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
786
786
|
}>> & Readonly<{}>, {
|
|
787
787
|
size: import("../../types/avatar").AvatarSize;
|
|
788
788
|
class: any;
|
|
789
|
-
as: string | Record<string, any>;
|
|
790
|
-
text: string;
|
|
791
|
-
alt: string;
|
|
792
789
|
ui: {
|
|
793
790
|
wrapper?: string;
|
|
794
791
|
background?: string;
|
|
@@ -852,6 +849,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
852
849
|
} & {
|
|
853
850
|
strategy?: Strategy;
|
|
854
851
|
};
|
|
852
|
+
as: string | Record<string, any>;
|
|
853
|
+
text: string;
|
|
854
|
+
alt: string;
|
|
855
855
|
icon: string;
|
|
856
856
|
src: string | boolean;
|
|
857
857
|
chipColor: import("../../types/avatar").AvatarChipColor;
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
</template>
|
|
33
33
|
|
|
34
34
|
<script>
|
|
35
|
-
import { isEqual } from "ohash";
|
|
35
|
+
import { isEqual, diff } from "ohash";
|
|
36
36
|
import { defineComponent } from "vue";
|
|
37
37
|
import { nuxtLinkProps } from "../../utils";
|
|
38
38
|
export default defineComponent({
|
|
@@ -60,7 +60,7 @@ export default defineComponent({
|
|
|
60
60
|
default: false
|
|
61
61
|
},
|
|
62
62
|
exactQuery: {
|
|
63
|
-
type: Boolean,
|
|
63
|
+
type: [Boolean, String],
|
|
64
64
|
default: false
|
|
65
65
|
},
|
|
66
66
|
exactHash: {
|
|
@@ -73,9 +73,20 @@ export default defineComponent({
|
|
|
73
73
|
}
|
|
74
74
|
},
|
|
75
75
|
setup(props) {
|
|
76
|
+
function isPartiallyEqual(item1, item2) {
|
|
77
|
+
const diffedKeys = diff(item1, item2).reduce((filtered, q) => {
|
|
78
|
+
if (q.type === "added") {
|
|
79
|
+
filtered.push(q.key);
|
|
80
|
+
}
|
|
81
|
+
return filtered;
|
|
82
|
+
}, []);
|
|
83
|
+
return isEqual(item1, item2, { excludeKeys: (key) => diffedKeys.includes(key) });
|
|
84
|
+
}
|
|
76
85
|
function resolveLinkClass(route, $route, { isActive, isExactActive }) {
|
|
77
|
-
if (props.exactQuery
|
|
78
|
-
return props.inactiveClass;
|
|
86
|
+
if (props.exactQuery === "partial") {
|
|
87
|
+
if (!isPartiallyEqual(route.query, $route.query)) return props.inactiveClass;
|
|
88
|
+
} else if (props.exactQuery === true) {
|
|
89
|
+
if (!isEqual(route.query, $route.query)) return props.inactiveClass;
|
|
79
90
|
}
|
|
80
91
|
if (props.exactHash && route.hash !== $route.hash) {
|
|
81
92
|
return props.inactiveClass;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type PropType } from 'vue';
|
|
1
2
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
3
|
as: {
|
|
3
4
|
type: StringConstructor;
|
|
@@ -20,7 +21,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
20
21
|
default: boolean;
|
|
21
22
|
};
|
|
22
23
|
exactQuery: {
|
|
23
|
-
type:
|
|
24
|
+
type: PropType<boolean | "partial">;
|
|
24
25
|
default: boolean;
|
|
25
26
|
};
|
|
26
27
|
exactHash: {
|
|
@@ -32,67 +33,67 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
32
33
|
default: any;
|
|
33
34
|
};
|
|
34
35
|
to: {
|
|
35
|
-
readonly type:
|
|
36
|
+
readonly type: PropType<import("vue-router").RouteLocationRaw>;
|
|
36
37
|
readonly default: any;
|
|
37
38
|
readonly required: false;
|
|
38
39
|
};
|
|
39
40
|
href: {
|
|
40
|
-
readonly type:
|
|
41
|
+
readonly type: PropType<import("vue-router").RouteLocationRaw>;
|
|
41
42
|
readonly default: any;
|
|
42
43
|
readonly required: false;
|
|
43
44
|
};
|
|
44
45
|
target: {
|
|
45
|
-
readonly type:
|
|
46
|
+
readonly type: PropType<import("#app").NuxtLinkProps["target"]>;
|
|
46
47
|
readonly default: any;
|
|
47
48
|
readonly required: false;
|
|
48
49
|
};
|
|
49
50
|
rel: {
|
|
50
|
-
readonly type:
|
|
51
|
+
readonly type: PropType<any>;
|
|
51
52
|
readonly default: any;
|
|
52
53
|
readonly required: false;
|
|
53
54
|
};
|
|
54
55
|
noRel: {
|
|
55
|
-
readonly type:
|
|
56
|
+
readonly type: PropType<import("#app").NuxtLinkProps["noRel"]>;
|
|
56
57
|
readonly default: any;
|
|
57
58
|
readonly required: false;
|
|
58
59
|
};
|
|
59
60
|
prefetch: {
|
|
60
|
-
readonly type:
|
|
61
|
+
readonly type: PropType<import("#app").NuxtLinkProps["prefetch"]>;
|
|
61
62
|
readonly default: any;
|
|
62
63
|
readonly required: false;
|
|
63
64
|
};
|
|
64
65
|
noPrefetch: {
|
|
65
|
-
readonly type:
|
|
66
|
+
readonly type: PropType<import("#app").NuxtLinkProps["noPrefetch"]>;
|
|
66
67
|
readonly default: any;
|
|
67
68
|
readonly required: false;
|
|
68
69
|
};
|
|
69
70
|
activeClass: {
|
|
70
|
-
readonly type:
|
|
71
|
+
readonly type: PropType<import("#app").NuxtLinkProps["activeClass"]>;
|
|
71
72
|
readonly default: any;
|
|
72
73
|
readonly required: false;
|
|
73
74
|
};
|
|
74
75
|
exactActiveClass: {
|
|
75
|
-
readonly type:
|
|
76
|
+
readonly type: PropType<import("#app").NuxtLinkProps["exactActiveClass"]>;
|
|
76
77
|
readonly default: any;
|
|
77
78
|
readonly required: false;
|
|
78
79
|
};
|
|
79
80
|
prefetchedClass: {
|
|
80
|
-
readonly type:
|
|
81
|
+
readonly type: PropType<import("#app").NuxtLinkProps["prefetchedClass"]>;
|
|
81
82
|
readonly default: any;
|
|
82
83
|
readonly required: false;
|
|
83
84
|
};
|
|
84
85
|
replace: {
|
|
85
|
-
readonly type:
|
|
86
|
+
readonly type: PropType<import("#app").NuxtLinkProps["replace"]>;
|
|
86
87
|
readonly default: any;
|
|
87
88
|
readonly required: false;
|
|
88
89
|
};
|
|
89
90
|
ariaCurrentValue: {
|
|
90
|
-
readonly type:
|
|
91
|
+
readonly type: PropType<import("#app").NuxtLinkProps["ariaCurrentValue"]>;
|
|
91
92
|
readonly default: any;
|
|
92
93
|
readonly required: false;
|
|
93
94
|
};
|
|
94
95
|
external: {
|
|
95
|
-
readonly type:
|
|
96
|
+
readonly type: PropType<import("#app").NuxtLinkProps["external"]>;
|
|
96
97
|
readonly default: any;
|
|
97
98
|
readonly required: false;
|
|
98
99
|
};
|
|
@@ -123,7 +124,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
123
124
|
default: boolean;
|
|
124
125
|
};
|
|
125
126
|
exactQuery: {
|
|
126
|
-
type:
|
|
127
|
+
type: PropType<boolean | "partial">;
|
|
127
128
|
default: boolean;
|
|
128
129
|
};
|
|
129
130
|
exactHash: {
|
|
@@ -135,67 +136,67 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
135
136
|
default: any;
|
|
136
137
|
};
|
|
137
138
|
to: {
|
|
138
|
-
readonly type:
|
|
139
|
+
readonly type: PropType<import("vue-router").RouteLocationRaw>;
|
|
139
140
|
readonly default: any;
|
|
140
141
|
readonly required: false;
|
|
141
142
|
};
|
|
142
143
|
href: {
|
|
143
|
-
readonly type:
|
|
144
|
+
readonly type: PropType<import("vue-router").RouteLocationRaw>;
|
|
144
145
|
readonly default: any;
|
|
145
146
|
readonly required: false;
|
|
146
147
|
};
|
|
147
148
|
target: {
|
|
148
|
-
readonly type:
|
|
149
|
+
readonly type: PropType<import("#app").NuxtLinkProps["target"]>;
|
|
149
150
|
readonly default: any;
|
|
150
151
|
readonly required: false;
|
|
151
152
|
};
|
|
152
153
|
rel: {
|
|
153
|
-
readonly type:
|
|
154
|
+
readonly type: PropType<any>;
|
|
154
155
|
readonly default: any;
|
|
155
156
|
readonly required: false;
|
|
156
157
|
};
|
|
157
158
|
noRel: {
|
|
158
|
-
readonly type:
|
|
159
|
+
readonly type: PropType<import("#app").NuxtLinkProps["noRel"]>;
|
|
159
160
|
readonly default: any;
|
|
160
161
|
readonly required: false;
|
|
161
162
|
};
|
|
162
163
|
prefetch: {
|
|
163
|
-
readonly type:
|
|
164
|
+
readonly type: PropType<import("#app").NuxtLinkProps["prefetch"]>;
|
|
164
165
|
readonly default: any;
|
|
165
166
|
readonly required: false;
|
|
166
167
|
};
|
|
167
168
|
noPrefetch: {
|
|
168
|
-
readonly type:
|
|
169
|
+
readonly type: PropType<import("#app").NuxtLinkProps["noPrefetch"]>;
|
|
169
170
|
readonly default: any;
|
|
170
171
|
readonly required: false;
|
|
171
172
|
};
|
|
172
173
|
activeClass: {
|
|
173
|
-
readonly type:
|
|
174
|
+
readonly type: PropType<import("#app").NuxtLinkProps["activeClass"]>;
|
|
174
175
|
readonly default: any;
|
|
175
176
|
readonly required: false;
|
|
176
177
|
};
|
|
177
178
|
exactActiveClass: {
|
|
178
|
-
readonly type:
|
|
179
|
+
readonly type: PropType<import("#app").NuxtLinkProps["exactActiveClass"]>;
|
|
179
180
|
readonly default: any;
|
|
180
181
|
readonly required: false;
|
|
181
182
|
};
|
|
182
183
|
prefetchedClass: {
|
|
183
|
-
readonly type:
|
|
184
|
+
readonly type: PropType<import("#app").NuxtLinkProps["prefetchedClass"]>;
|
|
184
185
|
readonly default: any;
|
|
185
186
|
readonly required: false;
|
|
186
187
|
};
|
|
187
188
|
replace: {
|
|
188
|
-
readonly type:
|
|
189
|
+
readonly type: PropType<import("#app").NuxtLinkProps["replace"]>;
|
|
189
190
|
readonly default: any;
|
|
190
191
|
readonly required: false;
|
|
191
192
|
};
|
|
192
193
|
ariaCurrentValue: {
|
|
193
|
-
readonly type:
|
|
194
|
+
readonly type: PropType<import("#app").NuxtLinkProps["ariaCurrentValue"]>;
|
|
194
195
|
readonly default: any;
|
|
195
196
|
readonly required: false;
|
|
196
197
|
};
|
|
197
198
|
external: {
|
|
198
|
-
readonly type:
|
|
199
|
+
readonly type: PropType<import("#app").NuxtLinkProps["external"]>;
|
|
199
200
|
readonly default: any;
|
|
200
201
|
readonly required: false;
|
|
201
202
|
};
|
|
@@ -216,7 +217,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
216
217
|
as: string;
|
|
217
218
|
active: boolean;
|
|
218
219
|
exact: boolean;
|
|
219
|
-
exactQuery: boolean;
|
|
220
|
+
exactQuery: boolean | "partial";
|
|
220
221
|
exactHash: boolean;
|
|
221
222
|
inactiveClass: string;
|
|
222
223
|
href: string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric;
|
|
@@ -256,11 +256,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
256
256
|
default: () => {};
|
|
257
257
|
};
|
|
258
258
|
}>> & Readonly<{}>, {
|
|
259
|
-
size: "
|
|
259
|
+
size: "sm" | "xs" | "2xs" | "md" | "lg" | "xl" | "2xl";
|
|
260
260
|
class: any;
|
|
261
261
|
max: number;
|
|
262
|
-
color: MeterColor;
|
|
263
|
-
label: string;
|
|
264
262
|
ui: {
|
|
265
263
|
wrapper?: string;
|
|
266
264
|
indicator?: DeepPartial<{
|
|
@@ -341,6 +339,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
341
339
|
} & {
|
|
342
340
|
strategy?: Strategy;
|
|
343
341
|
};
|
|
342
|
+
color: MeterColor;
|
|
343
|
+
label: string;
|
|
344
344
|
icon: string;
|
|
345
345
|
value: number;
|
|
346
346
|
indicator: boolean;
|