@fastkit/vui 0.6.28 → 0.6.33

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/vui.d.ts CHANGED
@@ -4,6 +4,7 @@ import { ColorVariant , ThemeName, PaletteName, ScopeName } from '@fastkit/colo
4
4
  import { ComponentCustomProps } from 'vue';
5
5
  import { ComponentOptionsMixin } from 'vue';
6
6
  import { ComputedRef } from 'vue';
7
+ import { CSSProperties } from 'vue';
7
8
  import { DefineComponent } from 'vue';
8
9
  import { EmitsOptions } from 'vue';
9
10
  import { ExtractPropInput } from '@fastkit/vue-utils';
@@ -24,17 +25,24 @@ import { IMaskEvent } from '@fastkit/vue-kit';
24
25
  import { IMaskTypedValue } from '@fastkit/vue-kit';
25
26
  import { InjectionKey } from 'vue';
26
27
  import { LocationService } from '@fastkit/vue-utils';
28
+ import { NavigationableInheritProps } from '@fastkit/vue-utils';
29
+ import { NavigationFailure } from 'vue-router';
27
30
  import { Numberish } from '@fastkit/vue-kit';
28
31
  import { Prop } from 'vue';
29
32
  import { PropType } from 'vue';
30
33
  import { RawTextableFinishingProp } from '@fastkit/vue-kit';
31
34
  import { RawTextareaAutosizeSettings } from '@fastkit/vue-kit';
32
35
  import { Ref } from 'vue';
36
+ import { RendererElement } from 'vue';
37
+ import { RendererNode } from 'vue';
33
38
  import { ResolvedFormSelectorItemData } from '@fastkit/vue-kit';
34
39
  import { ResolveRawSlots } from '@fastkit/vue-kit';
35
40
  import { ResolveRawSlots as ResolveRawSlots_2 } from '@fastkit/vue-utils';
41
+ import { RouteLocation } from 'vue-router';
36
42
  import { RouteLocationRaw } from 'vue-router';
37
43
  import type { Router } from 'vue-router';
44
+ import { RouterLink } from 'vue-router';
45
+ import { RouterLinkProps } from 'vue-router';
38
46
  import { ScopeName } from '@fastkit/color-scheme';
39
47
  import { TextableCounterResult } from '@fastkit/vue-kit';
40
48
  import { TextableCounterSettings } from '@fastkit/vue-kit';
@@ -42,10 +50,12 @@ import { TextareaAutosizeSettings } from '@fastkit/vue-kit';
42
50
  import { TextareaControl } from '@fastkit/vue-kit';
43
51
  import { TextInputControl } from '@fastkit/vue-kit';
44
52
  import { TypedSlot } from '@fastkit/vue-kit';
53
+ import { useLink } from 'vue-router';
45
54
  import { ValidateTiming } from '@fastkit/vue-kit';
46
55
  import { ValidationResult } from '@fastkit/vue-kit';
47
56
  import { VDialog } from '@fastkit/vue-kit';
48
57
  import { VMenu } from '@fastkit/vue-kit';
58
+ import { VNode } from 'vue';
49
59
  import { VNodeChild } from 'vue';
50
60
  import { VNodeChildOrSlot } from '@fastkit/vue-kit';
51
61
  import { VNodeProps } from 'vue';
@@ -57,8 +67,27 @@ import { WritableComputedRef } from 'vue';
57
67
 
58
68
  declare type ARGS = Record<string, unknown> & VNodeProps;
59
69
 
70
+ export declare interface BreadcrumbsItem extends Pick<NavigationableInheritProps, 'to' | 'disabled'> {
71
+ /**
72
+ * "正確なマッチモード" を強制する場合true
73
+ */
74
+ icon?: RawIconProp;
75
+ text: VNodeChild | ((vui: VuiService) => VNodeChild);
76
+ }
77
+
60
78
  export declare function configureDataTableDefaults(defaults: Partial<DataTableDefaults>): void;
61
79
 
80
+ export declare interface ContentSwitcherSeeTopOptions {
81
+ /**
82
+ * スクロールする際のオフセット高px
83
+ */
84
+ offset?: number;
85
+ /**
86
+ * スクロール期間
87
+ */
88
+ duration?: number;
89
+ }
90
+
62
91
  export declare const CONTROL_FIELD_VARIANTS: readonly ["outlined", "filled", "flat"];
63
92
 
64
93
  export declare const CONTROL_SIZES: readonly ["sm", "md", "lg"];
@@ -121,70 +150,76 @@ export declare function createElevationProps(): {
121
150
  export declare function createListTileProps(): {
122
151
  startIcon: PropType<RawIconProp>;
123
152
  endIcon: PropType<RawIconProp>;
124
- fallbackTag: {
153
+ linkFallbackTag: {
125
154
  type: StringConstructor;
126
155
  default: string;
127
156
  };
128
157
  startIconEmptySpace: BooleanConstructor;
129
158
  color: PropType<ScopeName>;
130
159
  exactMatch: BooleanConstructor;
131
- tag: StringConstructor;
160
+ tag: PropType<string>;
161
+ class: PropType<any>;
162
+ style: PropType<CSSProperties>;
132
163
  to: PropType<RouteLocationRaw>;
133
- replace: BooleanConstructor;
134
- activeClass: StringConstructor;
135
- exactActiveClass: StringConstructor;
136
- custom: BooleanConstructor;
164
+ replace: PropType<boolean>;
165
+ activeClass: PropType<string>;
166
+ exactActiveClass: PropType<string>;
167
+ custom: PropType<boolean>;
137
168
  ariaCurrentValue: {
138
- readonly type: PropType<"page" | "step" | "location" | "date" | "time" | "true" | "false" | undefined>;
139
- readonly default: "page";
140
- };
141
- disabled: BooleanConstructor;
142
- href: StringConstructor;
143
- target: StringConstructor;
144
- rel: StringConstructor;
145
- name: StringConstructor;
146
- charset: StringConstructor;
147
- hreflang: StringConstructor;
169
+ type: PropType<"page" | "step" | "location" | "date" | "time" | "true" | "false" | undefined>;
170
+ default: "page";
171
+ };
172
+ disabled: PropType<boolean>;
173
+ href: PropType<string>;
174
+ target: PropType<string>;
175
+ rel: PropType<string>;
176
+ name: PropType<string>;
177
+ charset: PropType<string>;
178
+ hreflang: PropType<string>;
148
179
  download: PropType<string | boolean>;
149
- media: StringConstructor;
150
- ping: StringConstructor;
151
- referrerpolicy: StringConstructor;
180
+ media: PropType<string>;
181
+ ping: PropType<string>;
182
+ referrerpolicy: PropType<string>;
152
183
  type: PropType<"submit" | "reset" | "button" | undefined>;
184
+ onClick: PropType<(ev: MouseEvent) => any>;
153
185
  };
154
186
 
155
187
  export declare function createNavigationItemProps(): {
156
188
  match: StringConstructor;
157
189
  startIcon: PropType<RawIconProp>;
158
190
  endIcon: PropType<RawIconProp>;
159
- fallbackTag: {
191
+ linkFallbackTag: {
160
192
  type: StringConstructor;
161
193
  default: string;
162
194
  };
163
195
  startIconEmptySpace: BooleanConstructor;
164
196
  color: PropType<ScopeName>;
165
197
  exactMatch: BooleanConstructor;
166
- tag: StringConstructor;
198
+ tag: PropType<string>;
199
+ class: PropType<any>;
200
+ style: PropType<CSSProperties>;
167
201
  to: PropType<RouteLocationRaw>;
168
- replace: BooleanConstructor;
169
- activeClass: StringConstructor;
170
- exactActiveClass: StringConstructor;
171
- custom: BooleanConstructor;
202
+ replace: PropType<boolean>;
203
+ activeClass: PropType<string>;
204
+ exactActiveClass: PropType<string>;
205
+ custom: PropType<boolean>;
172
206
  ariaCurrentValue: {
173
- readonly type: PropType<"page" | "step" | "location" | "date" | "time" | "true" | "false" | undefined>;
174
- readonly default: "page";
175
- };
176
- disabled: BooleanConstructor;
177
- href: StringConstructor;
178
- target: StringConstructor;
179
- rel: StringConstructor;
180
- name: StringConstructor;
181
- charset: StringConstructor;
182
- hreflang: StringConstructor;
207
+ type: PropType<"page" | "step" | "location" | "date" | "time" | "true" | "false" | undefined>;
208
+ default: "page";
209
+ };
210
+ disabled: PropType<boolean>;
211
+ href: PropType<string>;
212
+ target: PropType<string>;
213
+ rel: PropType<string>;
214
+ name: PropType<string>;
215
+ charset: PropType<string>;
216
+ hreflang: PropType<string>;
183
217
  download: PropType<string | boolean>;
184
- media: StringConstructor;
185
- ping: StringConstructor;
186
- referrerpolicy: StringConstructor;
218
+ media: PropType<string>;
219
+ ping: PropType<string>;
220
+ referrerpolicy: PropType<string>;
187
221
  type: PropType<"submit" | "reset" | "button" | undefined>;
222
+ onClick: PropType<(ev: MouseEvent) => any>;
188
223
  };
189
224
 
190
225
  export declare function createPaperBaseProps(): {
@@ -532,7 +567,6 @@ export declare function installVuiPlugin(app: App, opts: VuiPluginOptions): App<
532
567
 
533
568
  export declare const listTileEmits: {
534
569
  changeActive: (isActive: boolean) => boolean;
535
- click: (ev: MouseEvent) => boolean;
536
570
  };
537
571
 
538
572
  export declare interface NavigationItemInput extends ExtractPropInput<ReturnType<typeof createNavigationItemProps>> {
@@ -579,6 +613,8 @@ export declare function paginationProps(): {
579
613
  color: PropType<ScopeName>;
580
614
  };
581
615
 
616
+ export declare type RawBreadcrumbsItem = string | BreadcrumbsItem;
617
+
582
618
  export declare type RawIconProp = IconName | EmptyIconSymbol | ToggleableIconHook;
583
619
 
584
620
  export declare function rawIconProp(): PropType<RawIconProp>;
@@ -705,6 +741,23 @@ declare const ValidationErrorSymbol = "ValidationError";
705
741
 
706
742
  export declare const VApp: DefineComponent<{}, () => JSX.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, EmitsOptions, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<{} & {} & {}>, {}>;
707
743
 
744
+ export declare const VBreadcrumbs: DefineComponent<{
745
+ items: {
746
+ type: PropType<BreadcrumbsItem[]>;
747
+ default: () => never[];
748
+ };
749
+ divider: PropType<VNodeChild | ((vui: VuiService) => VNodeChild)>;
750
+ }, () => JSX.Element | undefined, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, Record<string, any>, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<{
751
+ items?: unknown;
752
+ divider?: unknown;
753
+ } & {
754
+ items: BreadcrumbsItem[];
755
+ } & {
756
+ divider?: VNodeChild | ((vui: VuiService) => VNodeChild);
757
+ }>, {
758
+ items: BreadcrumbsItem[];
759
+ }>;
760
+
708
761
  export declare const VButton: DefineComponent<{
709
762
  size: {
710
763
  type: PropType<"sm" | "md" | "lg">;
@@ -716,36 +769,38 @@ export declare const VButton: DefineComponent<{
716
769
  icon: PropType<RawVButtonIcon>;
717
770
  startIcon: PropType<RawVButtonIcon>;
718
771
  endIcon: PropType<RawVButtonIcon>;
719
- tag: StringConstructor;
772
+ tag: PropType<string>;
773
+ class: PropType<any>;
774
+ style: PropType<CSSProperties>;
720
775
  to: PropType<RouteLocationRaw>;
721
- replace: BooleanConstructor;
722
- activeClass: StringConstructor;
723
- exactActiveClass: StringConstructor;
724
- custom: BooleanConstructor;
776
+ replace: PropType<boolean>;
777
+ activeClass: PropType<string>;
778
+ exactActiveClass: PropType<string>;
779
+ custom: PropType<boolean>;
725
780
  ariaCurrentValue: {
726
- readonly type: PropType<"page" | "step" | "location" | "date" | "time" | "true" | "false" | undefined>;
727
- readonly default: "page";
728
- };
729
- disabled: BooleanConstructor;
730
- href: StringConstructor;
731
- target: StringConstructor;
732
- rel: StringConstructor;
733
- name: StringConstructor;
734
- charset: StringConstructor;
735
- hreflang: StringConstructor;
781
+ type: PropType<"page" | "step" | "location" | "date" | "time" | "true" | "false" | undefined>;
782
+ default: "page";
783
+ };
784
+ disabled: PropType<boolean>;
785
+ href: PropType<string>;
786
+ target: PropType<string>;
787
+ rel: PropType<string>;
788
+ name: PropType<string>;
789
+ charset: PropType<string>;
790
+ hreflang: PropType<string>;
736
791
  download: PropType<string | boolean>;
737
- media: StringConstructor;
738
- ping: StringConstructor;
739
- referrerpolicy: StringConstructor;
792
+ media: PropType<string>;
793
+ ping: PropType<string>;
794
+ referrerpolicy: PropType<string>;
740
795
  type: PropType<"submit" | "reset" | "button" | undefined>;
796
+ linkFallbackTag: PropType<string | (() => string | undefined)>;
797
+ onClick: PropType<(ev: MouseEvent) => any>;
741
798
  variant: PropType<ColorVariant>;
742
799
  theme: PropType<ThemeName>;
743
800
  color: PropType<ScopeName>;
744
801
  textColor: PropType<PaletteName>;
745
802
  borderColor: PropType<PaletteName>;
746
- }, () => JSX.Element, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
747
- click: (ev: MouseEvent) => boolean;
748
- }, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<{
803
+ }, () => JSX.Element, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, Record<string, any>, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<{
749
804
  size?: unknown;
750
805
  spacer?: unknown;
751
806
  loading?: unknown;
@@ -754,6 +809,8 @@ export declare const VButton: DefineComponent<{
754
809
  startIcon?: unknown;
755
810
  endIcon?: unknown;
756
811
  tag?: unknown;
812
+ class?: unknown;
813
+ style?: unknown;
757
814
  to?: unknown;
758
815
  replace?: unknown;
759
816
  activeClass?: unknown;
@@ -772,6 +829,8 @@ export declare const VButton: DefineComponent<{
772
829
  ping?: unknown;
773
830
  referrerpolicy?: unknown;
774
831
  type?: unknown;
832
+ linkFallbackTag?: unknown;
833
+ onClick?: unknown;
775
834
  variant?: unknown;
776
835
  theme?: unknown;
777
836
  color?: unknown;
@@ -781,24 +840,27 @@ export declare const VButton: DefineComponent<{
781
840
  loading: boolean;
782
841
  rounded: boolean;
783
842
  ariaCurrentValue: "page" | "step" | "location" | "date" | "time" | "true" | "false" | undefined;
784
- replace: boolean;
785
- custom: boolean;
786
- disabled: boolean;
787
843
  } & {
788
844
  theme?: ThemeName | undefined;
789
845
  color?: ScopeName | undefined;
790
846
  textColor?: PaletteName | undefined;
791
847
  borderColor?: PaletteName | undefined;
792
- type?: "submit" | "reset" | "button" | undefined;
848
+ replace?: boolean | undefined;
793
849
  size?: "sm" | "md" | "lg" | undefined;
850
+ type?: "submit" | "reset" | "button" | undefined;
851
+ onClick?: ((ev: MouseEvent) => any) | undefined;
794
852
  spacer?: RawVButtonSpacer | undefined;
795
853
  icon?: RawVButtonIcon | undefined;
796
854
  startIcon?: RawVButtonIcon | undefined;
797
855
  endIcon?: RawVButtonIcon | undefined;
798
856
  tag?: string | undefined;
857
+ class?: any;
858
+ style?: CSSProperties | undefined;
799
859
  to?: RouteLocationRaw | undefined;
800
860
  activeClass?: string | undefined;
801
861
  exactActiveClass?: string | undefined;
862
+ custom?: boolean | undefined;
863
+ disabled?: boolean | undefined;
802
864
  href?: string | undefined;
803
865
  target?: string | undefined;
804
866
  rel?: string | undefined;
@@ -809,16 +871,12 @@ export declare const VButton: DefineComponent<{
809
871
  media?: string | undefined;
810
872
  ping?: string | undefined;
811
873
  referrerpolicy?: string | undefined;
874
+ linkFallbackTag?: string | (() => string | undefined) | undefined;
812
875
  variant?: ColorVariant | undefined;
813
- }> & {
814
- onClick?: ((ev: MouseEvent) => any) | undefined;
815
- }, {
876
+ }>, {
816
877
  loading: boolean;
817
878
  rounded: boolean;
818
879
  ariaCurrentValue: "page" | "step" | "location" | "date" | "time" | "true" | "false" | undefined;
819
- replace: boolean;
820
- custom: boolean;
821
- disabled: boolean;
822
880
  }>;
823
881
 
824
882
  export declare type VButtonIcon = () => VNodeChild;
@@ -1231,6 +1289,30 @@ export declare const VCheckboxGroup: DefineComponent<{
1231
1289
  stacked: boolean;
1232
1290
  }>;
1233
1291
 
1292
+ export declare const VContentSwitcher: DefineComponent<{
1293
+ modelValue: StringConstructor;
1294
+ order: {
1295
+ type: PropType<(string | VTabsItem)[]>;
1296
+ default: () => never[];
1297
+ };
1298
+ autotop: PropType<boolean | ContentSwitcherSeeTopOptions>;
1299
+ }, () => JSX.Element, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1300
+ 'update:modelValue': (modelValue: string) => true;
1301
+ }, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<{
1302
+ modelValue?: unknown;
1303
+ order?: unknown;
1304
+ autotop?: unknown;
1305
+ } & {
1306
+ order: (string | VTabsItem)[];
1307
+ } & {
1308
+ modelValue?: string | undefined;
1309
+ autotop?: boolean | ContentSwitcherSeeTopOptions | undefined;
1310
+ }> & {
1311
+ "onUpdate:modelValue"?: ((modelValue: string) => any) | undefined;
1312
+ }, {
1313
+ order: (string | VTabsItem)[];
1314
+ }>;
1315
+
1234
1316
  export declare const VDataTable: DefineComponent<{
1235
1317
  /** 選択中のkeyの配列 */
1236
1318
  modelValue: {
@@ -1602,46 +1684,50 @@ export declare const VIcon: DefineComponent<{
1602
1684
  export declare const VListTile: DefineComponent<{
1603
1685
  startIcon: PropType<RawIconProp>;
1604
1686
  endIcon: PropType<RawIconProp>;
1605
- fallbackTag: {
1687
+ linkFallbackTag: {
1606
1688
  type: StringConstructor;
1607
1689
  default: string;
1608
1690
  };
1609
1691
  startIconEmptySpace: BooleanConstructor;
1610
1692
  color: PropType<ScopeName>;
1611
1693
  exactMatch: BooleanConstructor;
1612
- tag: StringConstructor;
1694
+ tag: PropType<string>;
1695
+ class: PropType<any>;
1696
+ style: PropType<CSSProperties>;
1613
1697
  to: PropType<RouteLocationRaw>;
1614
- replace: BooleanConstructor;
1615
- activeClass: StringConstructor;
1616
- exactActiveClass: StringConstructor;
1617
- custom: BooleanConstructor;
1698
+ replace: PropType<boolean>;
1699
+ activeClass: PropType<string>;
1700
+ exactActiveClass: PropType<string>;
1701
+ custom: PropType<boolean>;
1618
1702
  ariaCurrentValue: {
1619
- readonly type: PropType<"page" | "step" | "location" | "date" | "time" | "true" | "false" | undefined>;
1620
- readonly default: "page";
1621
- };
1622
- disabled: BooleanConstructor;
1623
- href: StringConstructor;
1624
- target: StringConstructor;
1625
- rel: StringConstructor;
1626
- name: StringConstructor;
1627
- charset: StringConstructor;
1628
- hreflang: StringConstructor;
1703
+ type: PropType<"page" | "step" | "location" | "date" | "time" | "true" | "false" | undefined>;
1704
+ default: "page";
1705
+ };
1706
+ disabled: PropType<boolean>;
1707
+ href: PropType<string>;
1708
+ target: PropType<string>;
1709
+ rel: PropType<string>;
1710
+ name: PropType<string>;
1711
+ charset: PropType<string>;
1712
+ hreflang: PropType<string>;
1629
1713
  download: PropType<string | boolean>;
1630
- media: StringConstructor;
1631
- ping: StringConstructor;
1632
- referrerpolicy: StringConstructor;
1714
+ media: PropType<string>;
1715
+ ping: PropType<string>;
1716
+ referrerpolicy: PropType<string>;
1633
1717
  type: PropType<"submit" | "reset" | "button" | undefined>;
1718
+ onClick: PropType<(ev: MouseEvent) => any>;
1634
1719
  }, () => JSX.Element, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1635
1720
  changeActive: (isActive: boolean) => boolean;
1636
- click: (ev: MouseEvent) => boolean;
1637
1721
  }, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<{
1638
1722
  startIcon?: unknown;
1639
1723
  endIcon?: unknown;
1640
- fallbackTag?: unknown;
1724
+ linkFallbackTag?: unknown;
1641
1725
  startIconEmptySpace?: unknown;
1642
1726
  color?: unknown;
1643
1727
  exactMatch?: unknown;
1644
1728
  tag?: unknown;
1729
+ class?: unknown;
1730
+ style?: unknown;
1645
1731
  to?: unknown;
1646
1732
  replace?: unknown;
1647
1733
  activeClass?: unknown;
@@ -1660,24 +1746,28 @@ export declare const VListTile: DefineComponent<{
1660
1746
  ping?: unknown;
1661
1747
  referrerpolicy?: unknown;
1662
1748
  type?: unknown;
1749
+ onClick?: unknown;
1663
1750
  } & {
1664
- replace: boolean;
1665
- ariaCurrentValue: "page" | "step" | "location" | "date" | "time" | "true" | "false" | undefined;
1666
1751
  startIconEmptySpace: boolean;
1667
1752
  exactMatch: boolean;
1668
- fallbackTag: string;
1669
- custom: boolean;
1670
- disabled: boolean;
1753
+ linkFallbackTag: string;
1754
+ ariaCurrentValue: "page" | "step" | "location" | "date" | "time" | "true" | "false" | undefined;
1671
1755
  } & {
1672
- type?: "submit" | "reset" | "button" | undefined;
1756
+ replace?: boolean | undefined;
1673
1757
  startIcon?: RawIconProp | undefined;
1674
1758
  endIcon?: RawIconProp | undefined;
1759
+ type?: "submit" | "reset" | "button" | undefined;
1675
1760
  color?: ScopeName | undefined;
1761
+ onClick?: ((ev: MouseEvent) => any) | undefined;
1676
1762
  name?: string | undefined;
1677
1763
  tag?: string | undefined;
1764
+ class?: any;
1765
+ style?: CSSProperties | undefined;
1678
1766
  to?: RouteLocationRaw | undefined;
1679
1767
  activeClass?: string | undefined;
1680
1768
  exactActiveClass?: string | undefined;
1769
+ custom?: boolean | undefined;
1770
+ disabled?: boolean | undefined;
1681
1771
  href?: string | undefined;
1682
1772
  target?: string | undefined;
1683
1773
  rel?: string | undefined;
@@ -1688,16 +1778,12 @@ export declare const VListTile: DefineComponent<{
1688
1778
  ping?: string | undefined;
1689
1779
  referrerpolicy?: string | undefined;
1690
1780
  }> & {
1691
- onClick?: ((ev: MouseEvent) => any) | undefined;
1692
1781
  onChangeActive?: ((isActive: boolean) => any) | undefined;
1693
1782
  }, {
1694
- replace: boolean;
1695
- ariaCurrentValue: "page" | "step" | "location" | "date" | "time" | "true" | "false" | undefined;
1696
1783
  startIconEmptySpace: boolean;
1697
1784
  exactMatch: boolean;
1698
- fallbackTag: string;
1699
- custom: boolean;
1700
- disabled: boolean;
1785
+ linkFallbackTag: string;
1786
+ ariaCurrentValue: "page" | "step" | "location" | "date" | "time" | "true" | "false" | undefined;
1701
1787
  }>;
1702
1788
 
1703
1789
  export { VMenu }
@@ -1733,48 +1819,52 @@ export declare const VNavigationItem: DefineComponent<{
1733
1819
  match: StringConstructor;
1734
1820
  startIcon: PropType<RawIconProp>;
1735
1821
  endIcon: PropType<RawIconProp>;
1736
- fallbackTag: {
1822
+ linkFallbackTag: {
1737
1823
  type: StringConstructor;
1738
1824
  default: string;
1739
1825
  };
1740
1826
  startIconEmptySpace: BooleanConstructor;
1741
1827
  color: PropType<ScopeName>;
1742
1828
  exactMatch: BooleanConstructor;
1743
- tag: StringConstructor;
1829
+ tag: PropType<string>;
1830
+ class: PropType<any>;
1831
+ style: PropType<CSSProperties>;
1744
1832
  to: PropType<RouteLocationRaw>;
1745
- replace: BooleanConstructor;
1746
- activeClass: StringConstructor;
1747
- exactActiveClass: StringConstructor;
1748
- custom: BooleanConstructor;
1833
+ replace: PropType<boolean>;
1834
+ activeClass: PropType<string>;
1835
+ exactActiveClass: PropType<string>;
1836
+ custom: PropType<boolean>;
1749
1837
  ariaCurrentValue: {
1750
- readonly type: PropType<"page" | "step" | "location" | "date" | "time" | "true" | "false" | undefined>;
1751
- readonly default: "page";
1752
- };
1753
- disabled: BooleanConstructor;
1754
- href: StringConstructor;
1755
- target: StringConstructor;
1756
- rel: StringConstructor;
1757
- name: StringConstructor;
1758
- charset: StringConstructor;
1759
- hreflang: StringConstructor;
1838
+ type: PropType<"page" | "step" | "location" | "date" | "time" | "true" | "false" | undefined>;
1839
+ default: "page";
1840
+ };
1841
+ disabled: PropType<boolean>;
1842
+ href: PropType<string>;
1843
+ target: PropType<string>;
1844
+ rel: PropType<string>;
1845
+ name: PropType<string>;
1846
+ charset: PropType<string>;
1847
+ hreflang: PropType<string>;
1760
1848
  download: PropType<string | boolean>;
1761
- media: StringConstructor;
1762
- ping: StringConstructor;
1763
- referrerpolicy: StringConstructor;
1849
+ media: PropType<string>;
1850
+ ping: PropType<string>;
1851
+ referrerpolicy: PropType<string>;
1764
1852
  type: PropType<"submit" | "reset" | "button" | undefined>;
1853
+ onClick: PropType<(ev: MouseEvent) => any>;
1765
1854
  }, () => JSX.Element, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1766
1855
  changeActive: (isActive: boolean) => boolean;
1767
- click: (ev: MouseEvent) => boolean;
1768
1856
  }, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<{
1769
1857
  children?: unknown;
1770
1858
  match?: unknown;
1771
1859
  startIcon?: unknown;
1772
1860
  endIcon?: unknown;
1773
- fallbackTag?: unknown;
1861
+ linkFallbackTag?: unknown;
1774
1862
  startIconEmptySpace?: unknown;
1775
1863
  color?: unknown;
1776
1864
  exactMatch?: unknown;
1777
1865
  tag?: unknown;
1866
+ class?: unknown;
1867
+ style?: unknown;
1778
1868
  to?: unknown;
1779
1869
  replace?: unknown;
1780
1870
  activeClass?: unknown;
@@ -1793,24 +1883,28 @@ export declare const VNavigationItem: DefineComponent<{
1793
1883
  ping?: unknown;
1794
1884
  referrerpolicy?: unknown;
1795
1885
  type?: unknown;
1886
+ onClick?: unknown;
1796
1887
  } & {
1797
- ariaCurrentValue: "page" | "step" | "location" | "date" | "time" | "true" | "false" | undefined;
1798
- replace: boolean;
1799
1888
  startIconEmptySpace: boolean;
1800
1889
  exactMatch: boolean;
1801
- fallbackTag: string;
1802
- custom: boolean;
1803
- disabled: boolean;
1890
+ linkFallbackTag: string;
1891
+ ariaCurrentValue: "page" | "step" | "location" | "date" | "time" | "true" | "false" | undefined;
1804
1892
  } & {
1805
- match?: string | undefined;
1806
- type?: "submit" | "reset" | "button" | undefined;
1807
1893
  startIcon?: RawIconProp | undefined;
1808
1894
  endIcon?: RawIconProp | undefined;
1895
+ match?: string | undefined;
1896
+ replace?: boolean | undefined;
1897
+ type?: "submit" | "reset" | "button" | undefined;
1809
1898
  color?: ScopeName | undefined;
1899
+ onClick?: ((ev: MouseEvent) => any) | undefined;
1810
1900
  tag?: string | undefined;
1901
+ class?: any;
1902
+ style?: CSSProperties | undefined;
1811
1903
  to?: RouteLocationRaw | undefined;
1812
1904
  activeClass?: string | undefined;
1813
1905
  exactActiveClass?: string | undefined;
1906
+ custom?: boolean | undefined;
1907
+ disabled?: boolean | undefined;
1814
1908
  href?: string | undefined;
1815
1909
  target?: string | undefined;
1816
1910
  rel?: string | undefined;
@@ -1823,16 +1917,12 @@ export declare const VNavigationItem: DefineComponent<{
1823
1917
  referrerpolicy?: string | undefined;
1824
1918
  children?: NavigationItemInput[] | undefined;
1825
1919
  }> & {
1826
- onClick?: ((ev: MouseEvent) => any) | undefined;
1827
1920
  onChangeActive?: ((isActive: boolean) => any) | undefined;
1828
1921
  }, {
1829
- ariaCurrentValue: "page" | "step" | "location" | "date" | "time" | "true" | "false" | undefined;
1830
- replace: boolean;
1831
1922
  startIconEmptySpace: boolean;
1832
1923
  exactMatch: boolean;
1833
- fallbackTag: string;
1834
- custom: boolean;
1835
- disabled: boolean;
1924
+ linkFallbackTag: string;
1925
+ ariaCurrentValue: "page" | "step" | "location" | "date" | "time" | "true" | "false" | undefined;
1836
1926
  }>;
1837
1927
 
1838
1928
  export declare const VOption: DefineComponent<{
@@ -3048,6 +3138,78 @@ export declare const VSwitchGroup: DefineComponent<{
3048
3138
  stacked: boolean;
3049
3139
  }>;
3050
3140
 
3141
+ export declare const VTabs: DefineComponent<{
3142
+ color: PropType<ScopeName>;
3143
+ 'v-slots': PropType<ResolveRawSlots_2<{
3144
+ item: VTabsItemLabelSlotCtx;
3145
+ }>>;
3146
+ modelValue: StringConstructor;
3147
+ items: {
3148
+ type: PropType<VTabsItem[]>;
3149
+ required: true;
3150
+ };
3151
+ /**
3152
+ * 自動スクロールする際の余剰オフセット幅(px)
3153
+ */
3154
+ autoScrollOffset: {
3155
+ type: NumberConstructor;
3156
+ default: number;
3157
+ };
3158
+ /**
3159
+ * ルーター同期する場合設定する
3160
+ */
3161
+ router: PropType<VTabsRouterHandler>;
3162
+ /**
3163
+ * ルーティング連携を行う際に、クエリベースのURLマッチングを行う
3164
+ * タブのURLが /page1?tab=xxx のようになる時に設定する
3165
+ */
3166
+ withQuery: BooleanConstructor;
3167
+ }, () => JSX.Element, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
3168
+ 'update:modelValue': (newValue: string) => true;
3169
+ change: (newValue: string) => true;
3170
+ }, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<{
3171
+ color?: unknown;
3172
+ 'v-slots'?: unknown;
3173
+ modelValue?: unknown;
3174
+ items?: unknown;
3175
+ autoScrollOffset?: unknown;
3176
+ router?: unknown;
3177
+ withQuery?: unknown;
3178
+ } & {
3179
+ items: VTabsItem[];
3180
+ autoScrollOffset: number;
3181
+ withQuery: boolean;
3182
+ } & {
3183
+ modelValue?: string | undefined;
3184
+ color?: ScopeName | undefined;
3185
+ "v-slots"?: ResolveRawSlots_2<{
3186
+ item: VTabsItemLabelSlotCtx;
3187
+ }> | undefined;
3188
+ router?: VTabsRouterHandler | undefined;
3189
+ }> & {
3190
+ "onUpdate:modelValue"?: ((newValue: string) => any) | undefined;
3191
+ onChange?: ((newValue: string) => any) | undefined;
3192
+ }, {
3193
+ autoScrollOffset: number;
3194
+ withQuery: boolean;
3195
+ }>;
3196
+
3197
+ export declare interface VTabsItem {
3198
+ value: string;
3199
+ icon?: RawIconProp;
3200
+ label?: VNodeChild | VTabsItemLabelSlot;
3201
+ }
3202
+
3203
+ export declare type VTabsItemLabelSlot = (ctx: VTabsItemLabelSlotCtx) => VNodeChild;
3204
+
3205
+ export declare interface VTabsItemLabelSlotCtx {
3206
+ value: string;
3207
+ active: boolean;
3208
+ vui: VuiService;
3209
+ }
3210
+
3211
+ export declare type VTabsRouterHandler = (value: string) => RouteLocationRaw;
3212
+
3051
3213
  export declare const VTextarea: DefineComponent<{
3052
3214
  'v-slots': PropType<ResolveRawSlots<FormControlSlots & InputBoxSlots>>;
3053
3215
  size: {
@@ -3616,28 +3778,32 @@ export declare const VToolbarMenu: DefineComponent<{
3616
3778
  icon: PropType<RawVButtonIcon>;
3617
3779
  startIcon: PropType<RawVButtonIcon>;
3618
3780
  endIcon: PropType<RawVButtonIcon>;
3619
- tag: StringConstructor;
3781
+ tag: PropType<string>;
3782
+ class: PropType<any>;
3783
+ style: PropType<CSSProperties>;
3620
3784
  to: PropType<RouteLocationRaw>;
3621
- replace: BooleanConstructor;
3622
- activeClass: StringConstructor;
3623
- exactActiveClass: StringConstructor;
3624
- custom: BooleanConstructor;
3785
+ replace: PropType<boolean>;
3786
+ activeClass: PropType<string>;
3787
+ exactActiveClass: PropType<string>;
3788
+ custom: PropType<boolean>;
3625
3789
  ariaCurrentValue: {
3626
- readonly type: PropType<"page" | "step" | "location" | "date" | "time" | "true" | "false" | undefined>;
3627
- readonly default: "page";
3628
- };
3629
- disabled: BooleanConstructor;
3630
- href: StringConstructor;
3631
- target: StringConstructor;
3632
- rel: StringConstructor;
3633
- name: StringConstructor;
3634
- charset: StringConstructor;
3635
- hreflang: StringConstructor;
3790
+ type: PropType<"page" | "step" | "location" | "date" | "time" | "true" | "false" | undefined>;
3791
+ default: "page";
3792
+ };
3793
+ disabled: PropType<boolean>;
3794
+ href: PropType<string>;
3795
+ target: PropType<string>;
3796
+ rel: PropType<string>;
3797
+ name: PropType<string>;
3798
+ charset: PropType<string>;
3799
+ hreflang: PropType<string>;
3636
3800
  download: PropType<string | boolean>;
3637
- media: StringConstructor;
3638
- ping: StringConstructor;
3639
- referrerpolicy: StringConstructor;
3801
+ media: PropType<string>;
3802
+ ping: PropType<string>;
3803
+ referrerpolicy: PropType<string>;
3640
3804
  type: PropType<"submit" | "reset" | "button" | undefined>;
3805
+ linkFallbackTag: PropType<string | (() => string | undefined)>;
3806
+ onClick: PropType<(ev: MouseEvent) => any>;
3641
3807
  variant: PropType<ColorVariant>;
3642
3808
  theme: PropType<ThemeName>;
3643
3809
  color: PropType<ScopeName>;
@@ -3652,6 +3818,8 @@ export declare const VToolbarMenu: DefineComponent<{
3652
3818
  startIcon?: unknown;
3653
3819
  endIcon?: unknown;
3654
3820
  tag?: unknown;
3821
+ class?: unknown;
3822
+ style?: unknown;
3655
3823
  to?: unknown;
3656
3824
  replace?: unknown;
3657
3825
  activeClass?: unknown;
@@ -3670,6 +3838,8 @@ export declare const VToolbarMenu: DefineComponent<{
3670
3838
  ping?: unknown;
3671
3839
  referrerpolicy?: unknown;
3672
3840
  type?: unknown;
3841
+ linkFallbackTag?: unknown;
3842
+ onClick?: unknown;
3673
3843
  variant?: unknown;
3674
3844
  theme?: unknown;
3675
3845
  color?: unknown;
@@ -3679,24 +3849,27 @@ export declare const VToolbarMenu: DefineComponent<{
3679
3849
  loading: boolean;
3680
3850
  rounded: boolean;
3681
3851
  ariaCurrentValue: "page" | "step" | "location" | "date" | "time" | "true" | "false" | undefined;
3682
- replace: boolean;
3683
- custom: boolean;
3684
- disabled: boolean;
3685
3852
  } & {
3686
3853
  theme?: ThemeName | undefined;
3687
3854
  color?: ScopeName | undefined;
3688
3855
  textColor?: PaletteName | undefined;
3689
3856
  borderColor?: PaletteName | undefined;
3690
- type?: "submit" | "reset" | "button" | undefined;
3857
+ replace?: boolean | undefined;
3691
3858
  size?: "sm" | "md" | "lg" | undefined;
3859
+ type?: "submit" | "reset" | "button" | undefined;
3860
+ onClick?: ((ev: MouseEvent) => any) | undefined;
3692
3861
  spacer?: RawVButtonSpacer | undefined;
3693
3862
  icon?: RawVButtonIcon | undefined;
3694
3863
  startIcon?: RawVButtonIcon | undefined;
3695
3864
  endIcon?: RawVButtonIcon | undefined;
3696
3865
  tag?: string | undefined;
3866
+ class?: any;
3867
+ style?: CSSProperties | undefined;
3697
3868
  to?: RouteLocationRaw | undefined;
3698
3869
  activeClass?: string | undefined;
3699
3870
  exactActiveClass?: string | undefined;
3871
+ custom?: boolean | undefined;
3872
+ disabled?: boolean | undefined;
3700
3873
  href?: string | undefined;
3701
3874
  target?: string | undefined;
3702
3875
  rel?: string | undefined;
@@ -3707,14 +3880,12 @@ export declare const VToolbarMenu: DefineComponent<{
3707
3880
  media?: string | undefined;
3708
3881
  ping?: string | undefined;
3709
3882
  referrerpolicy?: string | undefined;
3883
+ linkFallbackTag?: string | (() => string | undefined) | undefined;
3710
3884
  variant?: ColorVariant | undefined;
3711
3885
  }>, {
3712
3886
  loading: boolean;
3713
3887
  rounded: boolean;
3714
3888
  ariaCurrentValue: "page" | "step" | "location" | "date" | "time" | "true" | "false" | undefined;
3715
- replace: boolean;
3716
- custom: boolean;
3717
- disabled: boolean;
3718
3889
  }>;
3719
3890
 
3720
3891
  export declare type VToolbarMenuEdge = 'start' | 'end';
@@ -3743,28 +3914,32 @@ export declare const vueButtonProps: {
3743
3914
  icon: PropType<RawVButtonIcon>;
3744
3915
  startIcon: PropType<RawVButtonIcon>;
3745
3916
  endIcon: PropType<RawVButtonIcon>;
3746
- tag: StringConstructor;
3917
+ tag: PropType<string>;
3918
+ class: PropType<any>;
3919
+ style: PropType<CSSProperties>;
3747
3920
  to: PropType<RouteLocationRaw>;
3748
- replace: BooleanConstructor;
3749
- activeClass: StringConstructor;
3750
- exactActiveClass: StringConstructor;
3751
- custom: BooleanConstructor;
3921
+ replace: PropType<boolean>;
3922
+ activeClass: PropType<string>;
3923
+ exactActiveClass: PropType<string>;
3924
+ custom: PropType<boolean>;
3752
3925
  ariaCurrentValue: {
3753
- readonly type: PropType<"page" | "step" | "location" | "date" | "time" | "true" | "false" | undefined>;
3754
- readonly default: "page";
3755
- };
3756
- disabled: BooleanConstructor;
3757
- href: StringConstructor;
3758
- target: StringConstructor;
3759
- rel: StringConstructor;
3760
- name: StringConstructor;
3761
- charset: StringConstructor;
3762
- hreflang: StringConstructor;
3926
+ type: PropType<"page" | "step" | "location" | "date" | "time" | "true" | "false" | undefined>;
3927
+ default: "page";
3928
+ };
3929
+ disabled: PropType<boolean>;
3930
+ href: PropType<string>;
3931
+ target: PropType<string>;
3932
+ rel: PropType<string>;
3933
+ name: PropType<string>;
3934
+ charset: PropType<string>;
3935
+ hreflang: PropType<string>;
3763
3936
  download: PropType<string | boolean>;
3764
- media: StringConstructor;
3765
- ping: StringConstructor;
3766
- referrerpolicy: StringConstructor;
3937
+ media: PropType<string>;
3938
+ ping: PropType<string>;
3939
+ referrerpolicy: PropType<string>;
3767
3940
  type: PropType<"submit" | "reset" | "button" | undefined>;
3941
+ linkFallbackTag: PropType<string | (() => string | undefined)>;
3942
+ onClick: PropType<(ev: MouseEvent) => any>;
3768
3943
  variant: PropType<ColorVariant>;
3769
3944
  theme: PropType<ThemeName>;
3770
3945
  color: PropType<ScopeName>;
@@ -3831,6 +4006,26 @@ export declare class VuiService {
3831
4006
  readonly router: Router;
3832
4007
  readonly location: LocationService;
3833
4008
  constructor(options: VuiServiceOptions);
4009
+ configure(options?: Partial<VuiServiceOptions>): void;
4010
+ getRouterLink(): {
4011
+ new (): {
4012
+ $props: AllowedComponentProps & ComponentCustomProps & VNodeProps & RouterLinkProps;
4013
+ $slots: {
4014
+ default: (arg: {
4015
+ route: RouteLocation & {
4016
+ href: string;
4017
+ };
4018
+ href: string;
4019
+ isActive: boolean;
4020
+ isExactActive: boolean;
4021
+ navigate: (e?: MouseEvent | undefined) => Promise<void | NavigationFailure>;
4022
+ }) => VNode<RendererNode, RendererElement, {
4023
+ [key: string]: any;
4024
+ }>[];
4025
+ };
4026
+ };
4027
+ useLink: typeof useLink;
4028
+ };
3834
4029
  setting<K extends keyof VuiServiceUISettings>(key: K): VuiServiceUISettings[K];
3835
4030
  icon<K extends keyof VuiServiceIconSettings>(iconType: K): VuiServiceIconSettings[K];
3836
4031
  getAutoScrollToElementOffsetTop(): number;
@@ -3847,6 +4042,7 @@ export declare interface VuiServiceIconSettings {
3847
4042
 
3848
4043
  export declare interface VuiServiceOptions {
3849
4044
  router: Router;
4045
+ RouterLink?: typeof RouterLink;
3850
4046
  colorScheme: VueColorSchemePluginSettings;
3851
4047
  uiSettings: VuiServiceUISettings;
3852
4048
  icons: VuiServiceIconSettings;
@@ -3865,6 +4061,9 @@ export declare interface VuiServiceUISettings {
3865
4061
  color: ScopeName;
3866
4062
  variant: ColorVariant;
3867
4063
  };
4064
+ tabDefault: {
4065
+ color: ScopeName;
4066
+ };
3868
4067
  dialogOk?: {
3869
4068
  color?: ScopeName;
3870
4069
  variant?: ColorVariant;