@fastkit/vui 0.7.19 → 0.7.23
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/tool/index.js +6 -4
- package/dist/tool/vite-plugin.d.ts.map +1 -1
- package/dist/vui.cjs.js +122 -3
- package/dist/vui.cjs.prod.js +122 -3
- package/dist/vui.d.ts +89 -0
- package/dist/vui.mjs +119 -4
- package/package.json +6 -6
- package/src/components/VDataTable/VDataTable.tsx +49 -1
- package/src/components/VSelect/VSelect.tsx +19 -5
- package/src/plugin.tsx +26 -1
- package/src/service.tsx +73 -0
- package/src/tool/vite-plugin.ts +6 -4
package/dist/vui.d.ts
CHANGED
|
@@ -872,6 +872,7 @@ declare function createTextFieldProps(): {
|
|
|
872
872
|
autofocus: BooleanConstructor;
|
|
873
873
|
spellcheck: BooleanConstructor;
|
|
874
874
|
viewonly: BooleanConstructor;
|
|
875
|
+
clearable: BooleanConstructor;
|
|
875
876
|
validateTiming: {
|
|
876
877
|
type: PropType<ValidateTiming>;
|
|
877
878
|
default: ValidateTiming;
|
|
@@ -983,6 +984,7 @@ export declare function defineFormSelectorComponent(opts: DefineFormSelectorComp
|
|
|
983
984
|
autofocus: BooleanConstructor;
|
|
984
985
|
spellcheck: BooleanConstructor;
|
|
985
986
|
viewonly: BooleanConstructor;
|
|
987
|
+
clearable: BooleanConstructor;
|
|
986
988
|
validateTiming: {
|
|
987
989
|
type: PropType<ValidateTiming>;
|
|
988
990
|
default: ValidateTiming;
|
|
@@ -1083,6 +1085,7 @@ export declare function defineFormSelectorComponent(opts: DefineFormSelectorComp
|
|
|
1083
1085
|
autofocus?: unknown;
|
|
1084
1086
|
spellcheck?: unknown;
|
|
1085
1087
|
viewonly?: unknown;
|
|
1088
|
+
clearable?: unknown;
|
|
1086
1089
|
validateTiming?: unknown;
|
|
1087
1090
|
rules?: unknown;
|
|
1088
1091
|
error?: unknown;
|
|
@@ -1094,6 +1097,7 @@ export declare function defineFormSelectorComponent(opts: DefineFormSelectorComp
|
|
|
1094
1097
|
spellcheck: boolean;
|
|
1095
1098
|
viewonly: boolean;
|
|
1096
1099
|
required: boolean;
|
|
1100
|
+
clearable: boolean;
|
|
1097
1101
|
error: boolean;
|
|
1098
1102
|
tabindex: string | number;
|
|
1099
1103
|
validateTiming: ValidateTiming;
|
|
@@ -1137,6 +1141,7 @@ export declare function defineFormSelectorComponent(opts: DefineFormSelectorComp
|
|
|
1137
1141
|
spellcheck: boolean;
|
|
1138
1142
|
viewonly: boolean;
|
|
1139
1143
|
required: boolean;
|
|
1144
|
+
clearable: boolean;
|
|
1140
1145
|
error: boolean;
|
|
1141
1146
|
tabindex: string | number;
|
|
1142
1147
|
validateTiming: ValidateTiming;
|
|
@@ -1236,6 +1241,14 @@ export declare const listTileEmits: {
|
|
|
1236
1241
|
changeActive: (isActive: boolean) => boolean;
|
|
1237
1242
|
};
|
|
1238
1243
|
|
|
1244
|
+
export declare function mergeVuiPluginOptions(base: VuiPluginOptions, override?: RawVuiPluginOptions): VuiPluginOptions;
|
|
1245
|
+
|
|
1246
|
+
export declare function mergeVuiServiceIconSettings(base: VuiServiceIconSettings, overrides?: RawVuiServiceIconSettings): VuiServiceIconSettings;
|
|
1247
|
+
|
|
1248
|
+
export declare function mergeVuiServiceOptions(base: VuiServiceOptions, overrides?: RawVuiServiceOptions): VuiServiceOptions;
|
|
1249
|
+
|
|
1250
|
+
export declare function mergeVuiServiceUISettings(base: VuiServiceUISettings, overrides?: RawVuiServiceUISettings): VuiServiceUISettings;
|
|
1251
|
+
|
|
1239
1252
|
export declare interface NavigationItemInput extends ExtractPropInput<ReturnType<typeof createNavigationItemProps>> {
|
|
1240
1253
|
key: string | number;
|
|
1241
1254
|
label: VNodeChild | (() => VNodeChild);
|
|
@@ -1294,8 +1307,21 @@ export declare type RawVButtonIcon = IconName | VButtonIcon;
|
|
|
1294
1307
|
|
|
1295
1308
|
export declare type RawVButtonSpacer = boolean | VButtonSpacer;
|
|
1296
1309
|
|
|
1310
|
+
export declare interface RawVuiPluginOptions extends RawVuiServiceOptions {
|
|
1311
|
+
stack?: VuiPluginStackOptions;
|
|
1312
|
+
}
|
|
1313
|
+
|
|
1297
1314
|
export declare type RawVuiPromptOptions = string | VuiPromptOptions;
|
|
1298
1315
|
|
|
1316
|
+
export declare type RawVuiServiceIconSettings = Partial<VuiServiceIconSettings>;
|
|
1317
|
+
|
|
1318
|
+
export declare interface RawVuiServiceOptions extends Omit<Partial<VuiServiceOptions>, 'uiSettings' | 'icons'> {
|
|
1319
|
+
uiSettings?: RawVuiServiceUISettings;
|
|
1320
|
+
icons?: RawVuiServiceIconSettings;
|
|
1321
|
+
}
|
|
1322
|
+
|
|
1323
|
+
export declare type RawVuiServiceUISettings = Partial<VuiServiceUISettings>;
|
|
1324
|
+
|
|
1299
1325
|
declare type RawWysiwygEditorTool = WysiwygEditorTool | WysiwygEditorToolFactory<any>;
|
|
1300
1326
|
|
|
1301
1327
|
declare type RecursiveArray<T> = T | RecursiveArray<T>[];
|
|
@@ -3458,6 +3484,7 @@ export declare const VCheckbox: DefineComponent<{
|
|
|
3458
3484
|
spellcheck: BooleanConstructor;
|
|
3459
3485
|
viewonly: BooleanConstructor;
|
|
3460
3486
|
required: BooleanConstructor;
|
|
3487
|
+
clearable: BooleanConstructor;
|
|
3461
3488
|
validateTiming: {
|
|
3462
3489
|
type: PropType<ValidateTiming>;
|
|
3463
3490
|
default: ValidateTiming;
|
|
@@ -3529,6 +3556,7 @@ export declare const VCheckbox: DefineComponent<{
|
|
|
3529
3556
|
spellcheck?: unknown;
|
|
3530
3557
|
viewonly?: unknown;
|
|
3531
3558
|
required?: unknown;
|
|
3559
|
+
clearable?: unknown;
|
|
3532
3560
|
validateTiming?: unknown;
|
|
3533
3561
|
rules?: unknown;
|
|
3534
3562
|
error?: unknown;
|
|
@@ -3540,6 +3568,7 @@ export declare const VCheckbox: DefineComponent<{
|
|
|
3540
3568
|
spellcheck: boolean;
|
|
3541
3569
|
viewonly: boolean;
|
|
3542
3570
|
required: boolean;
|
|
3571
|
+
clearable: boolean;
|
|
3543
3572
|
error: boolean;
|
|
3544
3573
|
tabindex: string | number;
|
|
3545
3574
|
validateTiming: ValidateTiming;
|
|
@@ -3565,6 +3594,7 @@ export declare const VCheckbox: DefineComponent<{
|
|
|
3565
3594
|
spellcheck: boolean;
|
|
3566
3595
|
viewonly: boolean;
|
|
3567
3596
|
required: boolean;
|
|
3597
|
+
clearable: boolean;
|
|
3568
3598
|
error: boolean;
|
|
3569
3599
|
tabindex: string | number;
|
|
3570
3600
|
validateTiming: ValidateTiming;
|
|
@@ -3622,6 +3652,7 @@ export declare const VCheckboxGroup: DefineComponent<{
|
|
|
3622
3652
|
autofocus: BooleanConstructor;
|
|
3623
3653
|
spellcheck: BooleanConstructor;
|
|
3624
3654
|
viewonly: BooleanConstructor;
|
|
3655
|
+
clearable: BooleanConstructor;
|
|
3625
3656
|
validateTiming: {
|
|
3626
3657
|
type: PropType<ValidateTiming>;
|
|
3627
3658
|
default: ValidateTiming;
|
|
@@ -3722,6 +3753,7 @@ export declare const VCheckboxGroup: DefineComponent<{
|
|
|
3722
3753
|
autofocus?: unknown;
|
|
3723
3754
|
spellcheck?: unknown;
|
|
3724
3755
|
viewonly?: unknown;
|
|
3756
|
+
clearable?: unknown;
|
|
3725
3757
|
validateTiming?: unknown;
|
|
3726
3758
|
rules?: unknown;
|
|
3727
3759
|
error?: unknown;
|
|
@@ -3733,6 +3765,7 @@ export declare const VCheckboxGroup: DefineComponent<{
|
|
|
3733
3765
|
spellcheck: boolean;
|
|
3734
3766
|
viewonly: boolean;
|
|
3735
3767
|
required: boolean;
|
|
3768
|
+
clearable: boolean;
|
|
3736
3769
|
error: boolean;
|
|
3737
3770
|
tabindex: string | number;
|
|
3738
3771
|
validateTiming: ValidateTiming;
|
|
@@ -3776,6 +3809,7 @@ export declare const VCheckboxGroup: DefineComponent<{
|
|
|
3776
3809
|
spellcheck: boolean;
|
|
3777
3810
|
viewonly: boolean;
|
|
3778
3811
|
required: boolean;
|
|
3812
|
+
clearable: boolean;
|
|
3779
3813
|
error: boolean;
|
|
3780
3814
|
tabindex: string | number;
|
|
3781
3815
|
validateTiming: ValidateTiming;
|
|
@@ -3851,6 +3885,10 @@ export declare const VDataTable: DefineComponent<{
|
|
|
3851
3885
|
type: StringConstructor;
|
|
3852
3886
|
default: () => string;
|
|
3853
3887
|
};
|
|
3888
|
+
/**
|
|
3889
|
+
* 検索クエリ名
|
|
3890
|
+
*/
|
|
3891
|
+
searchQuery: PropType<string | string[]>;
|
|
3854
3892
|
/**
|
|
3855
3893
|
* リミット件数クエリ名
|
|
3856
3894
|
*/
|
|
@@ -3897,6 +3935,8 @@ export declare const VDataTable: DefineComponent<{
|
|
|
3897
3935
|
selectable: BooleanConstructor;
|
|
3898
3936
|
fixedHeader: BooleanConstructor;
|
|
3899
3937
|
maxHeight: (StringConstructor | NumberConstructor)[];
|
|
3938
|
+
noDataMessage: PropType<VNodeChild | (() => VNodeChild)>;
|
|
3939
|
+
noResultsMessage: PropType<VNodeChild | (() => VNodeChild)>;
|
|
3900
3940
|
}, () => JSX.Element, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
3901
3941
|
input: (selecteds: string[]) => true;
|
|
3902
3942
|
}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<{
|
|
@@ -3905,6 +3945,7 @@ export declare const VDataTable: DefineComponent<{
|
|
|
3905
3945
|
pageQuery?: unknown;
|
|
3906
3946
|
sortQuery?: unknown;
|
|
3907
3947
|
orderQuery?: unknown;
|
|
3948
|
+
searchQuery?: unknown;
|
|
3908
3949
|
limitQuery?: unknown;
|
|
3909
3950
|
defaultOrder?: unknown;
|
|
3910
3951
|
ascQueryValue?: unknown;
|
|
@@ -3918,6 +3959,8 @@ export declare const VDataTable: DefineComponent<{
|
|
|
3918
3959
|
selectable?: unknown;
|
|
3919
3960
|
fixedHeader?: unknown;
|
|
3920
3961
|
maxHeight?: unknown;
|
|
3962
|
+
noDataMessage?: unknown;
|
|
3963
|
+
noResultsMessage?: unknown;
|
|
3921
3964
|
} & {
|
|
3922
3965
|
itemKey: string;
|
|
3923
3966
|
pageQuery: string;
|
|
@@ -3938,6 +3981,9 @@ export declare const VDataTable: DefineComponent<{
|
|
|
3938
3981
|
fixedHeader: boolean;
|
|
3939
3982
|
} & {
|
|
3940
3983
|
maxHeight?: string | number | undefined;
|
|
3984
|
+
searchQuery?: string | string[] | undefined;
|
|
3985
|
+
noDataMessage?: VNodeChild | (() => VNodeChild);
|
|
3986
|
+
noResultsMessage?: VNodeChild | (() => VNodeChild);
|
|
3941
3987
|
}> & {
|
|
3942
3988
|
onInput?: ((selecteds: string[]) => any) | undefined;
|
|
3943
3989
|
}, {
|
|
@@ -4521,6 +4567,7 @@ export declare const VForm: DefineComponent<{
|
|
|
4521
4567
|
spellcheck: BooleanConstructor;
|
|
4522
4568
|
viewonly: BooleanConstructor;
|
|
4523
4569
|
required: BooleanConstructor;
|
|
4570
|
+
clearable: BooleanConstructor;
|
|
4524
4571
|
validateTiming: {
|
|
4525
4572
|
type: PropType<ValidateTiming>;
|
|
4526
4573
|
default: ValidateTiming;
|
|
@@ -4598,6 +4645,7 @@ export declare const VForm: DefineComponent<{
|
|
|
4598
4645
|
spellcheck?: unknown;
|
|
4599
4646
|
viewonly?: unknown;
|
|
4600
4647
|
required?: unknown;
|
|
4648
|
+
clearable?: unknown;
|
|
4601
4649
|
validateTiming?: unknown;
|
|
4602
4650
|
rules?: unknown;
|
|
4603
4651
|
error?: unknown;
|
|
@@ -4609,6 +4657,7 @@ export declare const VForm: DefineComponent<{
|
|
|
4609
4657
|
spellcheck: boolean;
|
|
4610
4658
|
viewonly: boolean;
|
|
4611
4659
|
required: boolean;
|
|
4660
|
+
clearable: boolean;
|
|
4612
4661
|
error: boolean;
|
|
4613
4662
|
tabindex: string | number;
|
|
4614
4663
|
validateTiming: ValidateTiming;
|
|
@@ -4638,6 +4687,7 @@ export declare const VForm: DefineComponent<{
|
|
|
4638
4687
|
spellcheck: boolean;
|
|
4639
4688
|
viewonly: boolean;
|
|
4640
4689
|
required: boolean;
|
|
4690
|
+
clearable: boolean;
|
|
4641
4691
|
error: boolean;
|
|
4642
4692
|
tabindex: string | number;
|
|
4643
4693
|
validateTiming: ValidateTiming;
|
|
@@ -6675,6 +6725,7 @@ export declare const VOption: DefineComponent<{
|
|
|
6675
6725
|
spellcheck: BooleanConstructor;
|
|
6676
6726
|
viewonly: BooleanConstructor;
|
|
6677
6727
|
required: BooleanConstructor;
|
|
6728
|
+
clearable: BooleanConstructor;
|
|
6678
6729
|
validateTiming: {
|
|
6679
6730
|
type: PropType<ValidateTiming>;
|
|
6680
6731
|
default: ValidateTiming;
|
|
@@ -6742,6 +6793,7 @@ export declare const VOption: DefineComponent<{
|
|
|
6742
6793
|
spellcheck?: unknown;
|
|
6743
6794
|
viewonly?: unknown;
|
|
6744
6795
|
required?: unknown;
|
|
6796
|
+
clearable?: unknown;
|
|
6745
6797
|
validateTiming?: unknown;
|
|
6746
6798
|
rules?: unknown;
|
|
6747
6799
|
error?: unknown;
|
|
@@ -6753,6 +6805,7 @@ export declare const VOption: DefineComponent<{
|
|
|
6753
6805
|
spellcheck: boolean;
|
|
6754
6806
|
viewonly: boolean;
|
|
6755
6807
|
required: boolean;
|
|
6808
|
+
clearable: boolean;
|
|
6756
6809
|
error: boolean;
|
|
6757
6810
|
tabindex: string | number;
|
|
6758
6811
|
validateTiming: ValidateTiming;
|
|
@@ -6777,6 +6830,7 @@ export declare const VOption: DefineComponent<{
|
|
|
6777
6830
|
spellcheck: boolean;
|
|
6778
6831
|
viewonly: boolean;
|
|
6779
6832
|
required: boolean;
|
|
6833
|
+
clearable: boolean;
|
|
6780
6834
|
error: boolean;
|
|
6781
6835
|
tabindex: string | number;
|
|
6782
6836
|
validateTiming: ValidateTiming;
|
|
@@ -7468,6 +7522,7 @@ export declare const VRadio: DefineComponent<{
|
|
|
7468
7522
|
spellcheck: BooleanConstructor;
|
|
7469
7523
|
viewonly: BooleanConstructor;
|
|
7470
7524
|
required: BooleanConstructor;
|
|
7525
|
+
clearable: BooleanConstructor;
|
|
7471
7526
|
validateTiming: {
|
|
7472
7527
|
type: PropType<ValidateTiming>;
|
|
7473
7528
|
default: ValidateTiming;
|
|
@@ -7537,6 +7592,7 @@ export declare const VRadio: DefineComponent<{
|
|
|
7537
7592
|
spellcheck?: unknown;
|
|
7538
7593
|
viewonly?: unknown;
|
|
7539
7594
|
required?: unknown;
|
|
7595
|
+
clearable?: unknown;
|
|
7540
7596
|
validateTiming?: unknown;
|
|
7541
7597
|
rules?: unknown;
|
|
7542
7598
|
error?: unknown;
|
|
@@ -7548,6 +7604,7 @@ export declare const VRadio: DefineComponent<{
|
|
|
7548
7604
|
spellcheck: boolean;
|
|
7549
7605
|
viewonly: boolean;
|
|
7550
7606
|
required: boolean;
|
|
7607
|
+
clearable: boolean;
|
|
7551
7608
|
error: boolean;
|
|
7552
7609
|
tabindex: string | number;
|
|
7553
7610
|
validateTiming: ValidateTiming;
|
|
@@ -7572,6 +7629,7 @@ export declare const VRadio: DefineComponent<{
|
|
|
7572
7629
|
spellcheck: boolean;
|
|
7573
7630
|
viewonly: boolean;
|
|
7574
7631
|
required: boolean;
|
|
7632
|
+
clearable: boolean;
|
|
7575
7633
|
error: boolean;
|
|
7576
7634
|
tabindex: string | number;
|
|
7577
7635
|
validateTiming: ValidateTiming;
|
|
@@ -7628,6 +7686,7 @@ export declare const VRadioGroup: DefineComponent<{
|
|
|
7628
7686
|
autofocus: BooleanConstructor;
|
|
7629
7687
|
spellcheck: BooleanConstructor;
|
|
7630
7688
|
viewonly: BooleanConstructor;
|
|
7689
|
+
clearable: BooleanConstructor;
|
|
7631
7690
|
validateTiming: {
|
|
7632
7691
|
type: PropType<ValidateTiming>;
|
|
7633
7692
|
default: ValidateTiming;
|
|
@@ -7728,6 +7787,7 @@ export declare const VRadioGroup: DefineComponent<{
|
|
|
7728
7787
|
autofocus?: unknown;
|
|
7729
7788
|
spellcheck?: unknown;
|
|
7730
7789
|
viewonly?: unknown;
|
|
7790
|
+
clearable?: unknown;
|
|
7731
7791
|
validateTiming?: unknown;
|
|
7732
7792
|
rules?: unknown;
|
|
7733
7793
|
error?: unknown;
|
|
@@ -7739,6 +7799,7 @@ export declare const VRadioGroup: DefineComponent<{
|
|
|
7739
7799
|
spellcheck: boolean;
|
|
7740
7800
|
viewonly: boolean;
|
|
7741
7801
|
required: boolean;
|
|
7802
|
+
clearable: boolean;
|
|
7742
7803
|
error: boolean;
|
|
7743
7804
|
tabindex: string | number;
|
|
7744
7805
|
validateTiming: ValidateTiming;
|
|
@@ -7782,6 +7843,7 @@ export declare const VRadioGroup: DefineComponent<{
|
|
|
7782
7843
|
spellcheck: boolean;
|
|
7783
7844
|
viewonly: boolean;
|
|
7784
7845
|
required: boolean;
|
|
7846
|
+
clearable: boolean;
|
|
7785
7847
|
error: boolean;
|
|
7786
7848
|
tabindex: string | number;
|
|
7787
7849
|
validateTiming: ValidateTiming;
|
|
@@ -7855,6 +7917,7 @@ export declare const VSelect: DefineComponent<{
|
|
|
7855
7917
|
autofocus: BooleanConstructor;
|
|
7856
7918
|
spellcheck: BooleanConstructor;
|
|
7857
7919
|
viewonly: BooleanConstructor;
|
|
7920
|
+
clearable: BooleanConstructor;
|
|
7858
7921
|
validateTiming: {
|
|
7859
7922
|
type: PropType<ValidateTiming>;
|
|
7860
7923
|
default: ValidateTiming;
|
|
@@ -7964,6 +8027,7 @@ export declare const VSelect: DefineComponent<{
|
|
|
7964
8027
|
autofocus?: unknown;
|
|
7965
8028
|
spellcheck?: unknown;
|
|
7966
8029
|
viewonly?: unknown;
|
|
8030
|
+
clearable?: unknown;
|
|
7967
8031
|
validateTiming?: unknown;
|
|
7968
8032
|
rules?: unknown;
|
|
7969
8033
|
error?: unknown;
|
|
@@ -7975,6 +8039,7 @@ export declare const VSelect: DefineComponent<{
|
|
|
7975
8039
|
spellcheck: boolean;
|
|
7976
8040
|
viewonly: boolean;
|
|
7977
8041
|
required: boolean;
|
|
8042
|
+
clearable: boolean;
|
|
7978
8043
|
error: boolean;
|
|
7979
8044
|
tabindex: string | number;
|
|
7980
8045
|
validateTiming: ValidateTiming;
|
|
@@ -8021,6 +8086,7 @@ export declare const VSelect: DefineComponent<{
|
|
|
8021
8086
|
spellcheck: boolean;
|
|
8022
8087
|
viewonly: boolean;
|
|
8023
8088
|
required: boolean;
|
|
8089
|
+
clearable: boolean;
|
|
8024
8090
|
error: boolean;
|
|
8025
8091
|
tabindex: string | number;
|
|
8026
8092
|
validateTiming: ValidateTiming;
|
|
@@ -8063,6 +8129,7 @@ export declare const VSwitch: DefineComponent<{
|
|
|
8063
8129
|
spellcheck: BooleanConstructor;
|
|
8064
8130
|
viewonly: BooleanConstructor;
|
|
8065
8131
|
required: BooleanConstructor;
|
|
8132
|
+
clearable: BooleanConstructor;
|
|
8066
8133
|
validateTiming: {
|
|
8067
8134
|
type: PropType<ValidateTiming>;
|
|
8068
8135
|
default: ValidateTiming;
|
|
@@ -8132,6 +8199,7 @@ export declare const VSwitch: DefineComponent<{
|
|
|
8132
8199
|
spellcheck?: unknown;
|
|
8133
8200
|
viewonly?: unknown;
|
|
8134
8201
|
required?: unknown;
|
|
8202
|
+
clearable?: unknown;
|
|
8135
8203
|
validateTiming?: unknown;
|
|
8136
8204
|
rules?: unknown;
|
|
8137
8205
|
error?: unknown;
|
|
@@ -8143,6 +8211,7 @@ export declare const VSwitch: DefineComponent<{
|
|
|
8143
8211
|
spellcheck: boolean;
|
|
8144
8212
|
viewonly: boolean;
|
|
8145
8213
|
required: boolean;
|
|
8214
|
+
clearable: boolean;
|
|
8146
8215
|
error: boolean;
|
|
8147
8216
|
tabindex: string | number;
|
|
8148
8217
|
validateTiming: ValidateTiming;
|
|
@@ -8167,6 +8236,7 @@ export declare const VSwitch: DefineComponent<{
|
|
|
8167
8236
|
spellcheck: boolean;
|
|
8168
8237
|
viewonly: boolean;
|
|
8169
8238
|
required: boolean;
|
|
8239
|
+
clearable: boolean;
|
|
8170
8240
|
error: boolean;
|
|
8171
8241
|
tabindex: string | number;
|
|
8172
8242
|
validateTiming: ValidateTiming;
|
|
@@ -8223,6 +8293,7 @@ export declare const VSwitchGroup: DefineComponent<{
|
|
|
8223
8293
|
autofocus: BooleanConstructor;
|
|
8224
8294
|
spellcheck: BooleanConstructor;
|
|
8225
8295
|
viewonly: BooleanConstructor;
|
|
8296
|
+
clearable: BooleanConstructor;
|
|
8226
8297
|
validateTiming: {
|
|
8227
8298
|
type: PropType<ValidateTiming>;
|
|
8228
8299
|
default: ValidateTiming;
|
|
@@ -8323,6 +8394,7 @@ export declare const VSwitchGroup: DefineComponent<{
|
|
|
8323
8394
|
autofocus?: unknown;
|
|
8324
8395
|
spellcheck?: unknown;
|
|
8325
8396
|
viewonly?: unknown;
|
|
8397
|
+
clearable?: unknown;
|
|
8326
8398
|
validateTiming?: unknown;
|
|
8327
8399
|
rules?: unknown;
|
|
8328
8400
|
error?: unknown;
|
|
@@ -8334,6 +8406,7 @@ export declare const VSwitchGroup: DefineComponent<{
|
|
|
8334
8406
|
spellcheck: boolean;
|
|
8335
8407
|
viewonly: boolean;
|
|
8336
8408
|
required: boolean;
|
|
8409
|
+
clearable: boolean;
|
|
8337
8410
|
error: boolean;
|
|
8338
8411
|
tabindex: string | number;
|
|
8339
8412
|
validateTiming: ValidateTiming;
|
|
@@ -8377,6 +8450,7 @@ export declare const VSwitchGroup: DefineComponent<{
|
|
|
8377
8450
|
spellcheck: boolean;
|
|
8378
8451
|
viewonly: boolean;
|
|
8379
8452
|
required: boolean;
|
|
8453
|
+
clearable: boolean;
|
|
8380
8454
|
error: boolean;
|
|
8381
8455
|
tabindex: string | number;
|
|
8382
8456
|
validateTiming: ValidateTiming;
|
|
@@ -8529,6 +8603,7 @@ export declare const VTextarea: DefineComponent<{
|
|
|
8529
8603
|
autofocus: BooleanConstructor;
|
|
8530
8604
|
spellcheck: BooleanConstructor;
|
|
8531
8605
|
viewonly: BooleanConstructor;
|
|
8606
|
+
clearable: BooleanConstructor;
|
|
8532
8607
|
validateTiming: {
|
|
8533
8608
|
type: PropType<ValidateTiming>;
|
|
8534
8609
|
default: ValidateTiming;
|
|
@@ -8640,6 +8715,7 @@ export declare const VTextarea: DefineComponent<{
|
|
|
8640
8715
|
autofocus?: unknown;
|
|
8641
8716
|
spellcheck?: unknown;
|
|
8642
8717
|
viewonly?: unknown;
|
|
8718
|
+
clearable?: unknown;
|
|
8643
8719
|
validateTiming?: unknown;
|
|
8644
8720
|
rules?: unknown;
|
|
8645
8721
|
error?: unknown;
|
|
@@ -8651,6 +8727,7 @@ export declare const VTextarea: DefineComponent<{
|
|
|
8651
8727
|
spellcheck: boolean;
|
|
8652
8728
|
viewonly: boolean;
|
|
8653
8729
|
required: boolean;
|
|
8730
|
+
clearable: boolean;
|
|
8654
8731
|
error: boolean;
|
|
8655
8732
|
tabindex: string | number;
|
|
8656
8733
|
validateTiming: ValidateTiming;
|
|
@@ -8707,6 +8784,7 @@ export declare const VTextarea: DefineComponent<{
|
|
|
8707
8784
|
spellcheck: boolean;
|
|
8708
8785
|
viewonly: boolean;
|
|
8709
8786
|
required: boolean;
|
|
8787
|
+
clearable: boolean;
|
|
8710
8788
|
error: boolean;
|
|
8711
8789
|
tabindex: string | number;
|
|
8712
8790
|
validateTiming: ValidateTiming;
|
|
@@ -8788,6 +8866,7 @@ export declare const VTextField: DefineComponent<{
|
|
|
8788
8866
|
autofocus: BooleanConstructor;
|
|
8789
8867
|
spellcheck: BooleanConstructor;
|
|
8790
8868
|
viewonly: BooleanConstructor;
|
|
8869
|
+
clearable: BooleanConstructor;
|
|
8791
8870
|
validateTiming: {
|
|
8792
8871
|
type: PropType<ValidateTiming>;
|
|
8793
8872
|
default: ValidateTiming;
|
|
@@ -8903,6 +8982,7 @@ export declare const VTextField: DefineComponent<{
|
|
|
8903
8982
|
autofocus?: unknown;
|
|
8904
8983
|
spellcheck?: unknown;
|
|
8905
8984
|
viewonly?: unknown;
|
|
8985
|
+
clearable?: unknown;
|
|
8906
8986
|
validateTiming?: unknown;
|
|
8907
8987
|
rules?: unknown;
|
|
8908
8988
|
error?: unknown;
|
|
@@ -8915,6 +8995,7 @@ export declare const VTextField: DefineComponent<{
|
|
|
8915
8995
|
spellcheck: boolean;
|
|
8916
8996
|
viewonly: boolean;
|
|
8917
8997
|
required: boolean;
|
|
8998
|
+
clearable: boolean;
|
|
8918
8999
|
error: boolean;
|
|
8919
9000
|
tabindex: string | number;
|
|
8920
9001
|
validateTiming: ValidateTiming;
|
|
@@ -8978,6 +9059,7 @@ export declare const VTextField: DefineComponent<{
|
|
|
8978
9059
|
spellcheck: boolean;
|
|
8979
9060
|
viewonly: boolean;
|
|
8980
9061
|
required: boolean;
|
|
9062
|
+
clearable: boolean;
|
|
8981
9063
|
error: boolean;
|
|
8982
9064
|
tabindex: string | number;
|
|
8983
9065
|
validateTiming: ValidateTiming;
|
|
@@ -10050,6 +10132,7 @@ export declare interface VuiServiceIconSettings {
|
|
|
10050
10132
|
editorUndo: IconName;
|
|
10051
10133
|
editorRedo: IconName;
|
|
10052
10134
|
hinttip: IconName;
|
|
10135
|
+
clear: IconName;
|
|
10053
10136
|
}
|
|
10054
10137
|
|
|
10055
10138
|
export declare interface VuiServiceOptions {
|
|
@@ -10088,6 +10171,8 @@ export declare interface VuiServiceUISettings {
|
|
|
10088
10171
|
color?: ScopeName;
|
|
10089
10172
|
variant?: ColorVariant;
|
|
10090
10173
|
};
|
|
10174
|
+
noDataMessage?: VNodeChild | (() => VNodeChild);
|
|
10175
|
+
noResultsMessage?: VNodeChild | (() => VNodeChild);
|
|
10091
10176
|
}
|
|
10092
10177
|
|
|
10093
10178
|
export declare type VuiVNodeResolver = () => VNodeChild;
|
|
@@ -10153,6 +10238,7 @@ export declare const VWysiwygEditor: DefineComponent<{
|
|
|
10153
10238
|
autofocus: BooleanConstructor;
|
|
10154
10239
|
spellcheck: BooleanConstructor;
|
|
10155
10240
|
viewonly: BooleanConstructor;
|
|
10241
|
+
clearable: BooleanConstructor;
|
|
10156
10242
|
validateTiming: {
|
|
10157
10243
|
type: PropType<ValidateTiming>;
|
|
10158
10244
|
default: ValidateTiming;
|
|
@@ -10262,6 +10348,7 @@ export declare const VWysiwygEditor: DefineComponent<{
|
|
|
10262
10348
|
autofocus?: unknown;
|
|
10263
10349
|
spellcheck?: unknown;
|
|
10264
10350
|
viewonly?: unknown;
|
|
10351
|
+
clearable?: unknown;
|
|
10265
10352
|
validateTiming?: unknown;
|
|
10266
10353
|
rules?: unknown;
|
|
10267
10354
|
error?: unknown;
|
|
@@ -10273,6 +10360,7 @@ export declare const VWysiwygEditor: DefineComponent<{
|
|
|
10273
10360
|
spellcheck: boolean;
|
|
10274
10361
|
viewonly: boolean;
|
|
10275
10362
|
required: boolean;
|
|
10363
|
+
clearable: boolean;
|
|
10276
10364
|
error: boolean;
|
|
10277
10365
|
tabindex: string | number;
|
|
10278
10366
|
validateTiming: ValidateTiming;
|
|
@@ -10330,6 +10418,7 @@ export declare const VWysiwygEditor: DefineComponent<{
|
|
|
10330
10418
|
spellcheck: boolean;
|
|
10331
10419
|
viewonly: boolean;
|
|
10332
10420
|
required: boolean;
|
|
10421
|
+
clearable: boolean;
|
|
10333
10422
|
error: boolean;
|
|
10334
10423
|
tabindex: string | number;
|
|
10335
10424
|
validateTiming: ValidateTiming;
|
package/dist/vui.mjs
CHANGED
|
@@ -2144,7 +2144,16 @@ const VSelect = defineComponent({
|
|
|
2144
2144
|
}, [createVNode("div", {
|
|
2145
2145
|
"class": "v-select__selections__inner"
|
|
2146
2146
|
}, [this.renderSelections(selectedItems)])])],
|
|
2147
|
-
endAdornment: () => createVNode(
|
|
2147
|
+
endAdornment: () => this.clearable && this.nodeControl.value != null && createVNode(VButton, {
|
|
2148
|
+
"key": "clear",
|
|
2149
|
+
"icon": this.$vui.icon('clear'),
|
|
2150
|
+
"rounded": true,
|
|
2151
|
+
"onClick": ev => {
|
|
2152
|
+
ev.stopPropagation();
|
|
2153
|
+
this.nodeControl.clear();
|
|
2154
|
+
}
|
|
2155
|
+
}, null) || createVNode(VIcon, {
|
|
2156
|
+
"key": "icon",
|
|
2148
2157
|
"name": this.iconName,
|
|
2149
2158
|
"rotate": this.menuOpened ? 180 : 0
|
|
2150
2159
|
}, null)
|
|
@@ -3418,6 +3427,11 @@ const VDataTable = defineComponent({
|
|
|
3418
3427
|
default: () => DATA_TABLE_DEFAULTS.orderQuery
|
|
3419
3428
|
},
|
|
3420
3429
|
|
|
3430
|
+
/**
|
|
3431
|
+
* 検索クエリ名
|
|
3432
|
+
*/
|
|
3433
|
+
searchQuery: [String, Array],
|
|
3434
|
+
|
|
3421
3435
|
/**
|
|
3422
3436
|
* リミット件数クエリ名
|
|
3423
3437
|
*/
|
|
@@ -3463,7 +3477,11 @@ const VDataTable = defineComponent({
|
|
|
3463
3477
|
},
|
|
3464
3478
|
selectable: Boolean,
|
|
3465
3479
|
fixedHeader: Boolean,
|
|
3466
|
-
maxHeight: [Number, String]
|
|
3480
|
+
maxHeight: [Number, String],
|
|
3481
|
+
// eslint-disable-next-line vue/require-prop-types
|
|
3482
|
+
noDataMessage: {},
|
|
3483
|
+
// eslint-disable-next-line vue/require-prop-types
|
|
3484
|
+
noResultsMessage: {}
|
|
3467
3485
|
},
|
|
3468
3486
|
emits: {
|
|
3469
3487
|
input: selecteds => true
|
|
@@ -3492,6 +3510,46 @@ const VDataTable = defineComponent({
|
|
|
3492
3510
|
ret.push(...headers.filter(h => !h.hidden));
|
|
3493
3511
|
return ret;
|
|
3494
3512
|
});
|
|
3513
|
+
const searchQueryValues = computed(() => {
|
|
3514
|
+
let {
|
|
3515
|
+
searchQuery
|
|
3516
|
+
} = props;
|
|
3517
|
+
|
|
3518
|
+
if (!searchQuery) {
|
|
3519
|
+
return [];
|
|
3520
|
+
}
|
|
3521
|
+
|
|
3522
|
+
if (!Array.isArray(searchQuery)) {
|
|
3523
|
+
searchQuery = [searchQuery];
|
|
3524
|
+
}
|
|
3525
|
+
|
|
3526
|
+
const values = [];
|
|
3527
|
+
searchQuery.forEach(query => {
|
|
3528
|
+
const value = vui.location.getQuery(query);
|
|
3529
|
+
|
|
3530
|
+
if (value == null || value === '') {
|
|
3531
|
+
return;
|
|
3532
|
+
}
|
|
3533
|
+
|
|
3534
|
+
if (typeof value === 'object' && !Object.keys(value).length) {
|
|
3535
|
+
return;
|
|
3536
|
+
}
|
|
3537
|
+
|
|
3538
|
+
values.push(value);
|
|
3539
|
+
});
|
|
3540
|
+
return values;
|
|
3541
|
+
});
|
|
3542
|
+
const emptyMessage = computed(() => {
|
|
3543
|
+
let message;
|
|
3544
|
+
|
|
3545
|
+
if (searchQueryValues.value.length) {
|
|
3546
|
+
message = props.noResultsMessage || vui.setting('noResultsMessage') || 'No search results found.'; // 検索結果が見つかりませんでした。
|
|
3547
|
+
} else {
|
|
3548
|
+
message = props.noDataMessage || vui.setting('noDataMessage') || 'No data was available.'; // データはありませんでした。
|
|
3549
|
+
}
|
|
3550
|
+
|
|
3551
|
+
return typeof message === 'function' ? message() : message;
|
|
3552
|
+
});
|
|
3495
3553
|
const classesRef = computed(() => [{
|
|
3496
3554
|
'v-data-table--fixed-header': props.fixedHeader
|
|
3497
3555
|
}]);
|
|
@@ -3958,7 +4016,7 @@ const VDataTable = defineComponent({
|
|
|
3958
4016
|
"class": "v-data-table__body container-pull"
|
|
3959
4017
|
}, [isEmpty ? createVNode("div", {
|
|
3960
4018
|
"class": "v-data-table__empty--message"
|
|
3961
|
-
},
|
|
4019
|
+
}, [emptyMessage.value]) : createVNode(VPaper, {
|
|
3962
4020
|
"class": "v-data-table__body__inner",
|
|
3963
4021
|
"style": bodyInnerStylesRef.value
|
|
3964
4022
|
}, {
|
|
@@ -4122,6 +4180,51 @@ const VToolbarTitle = defineComponent({
|
|
|
4122
4180
|
|
|
4123
4181
|
const DEFAULT_AUTO_SCROLL_TO_ELEMENT_OFFSET_TOP = -20;
|
|
4124
4182
|
const DEFAULT_TEXTAREA_ROWS = 3;
|
|
4183
|
+
function mergeVuiServiceUISettings(base, overrides) {
|
|
4184
|
+
if (!overrides) {
|
|
4185
|
+
return base;
|
|
4186
|
+
}
|
|
4187
|
+
|
|
4188
|
+
const merged = { ...base
|
|
4189
|
+
};
|
|
4190
|
+
Object.entries(overrides).forEach(([key, value]) => {
|
|
4191
|
+
if (value) {
|
|
4192
|
+
merged[key] = value;
|
|
4193
|
+
}
|
|
4194
|
+
});
|
|
4195
|
+
return merged;
|
|
4196
|
+
}
|
|
4197
|
+
function mergeVuiServiceIconSettings(base, overrides) {
|
|
4198
|
+
if (!overrides) {
|
|
4199
|
+
return base;
|
|
4200
|
+
}
|
|
4201
|
+
|
|
4202
|
+
const merged = { ...base
|
|
4203
|
+
};
|
|
4204
|
+
Object.entries(overrides).forEach(([key, value]) => {
|
|
4205
|
+
if (value) {
|
|
4206
|
+
merged[key] = value;
|
|
4207
|
+
}
|
|
4208
|
+
});
|
|
4209
|
+
return merged;
|
|
4210
|
+
}
|
|
4211
|
+
function mergeVuiServiceOptions(base, overrides) {
|
|
4212
|
+
if (!overrides) {
|
|
4213
|
+
return base;
|
|
4214
|
+
}
|
|
4215
|
+
|
|
4216
|
+
const merged = { ...base,
|
|
4217
|
+
uiSettings: mergeVuiServiceUISettings(base.uiSettings, overrides.uiSettings),
|
|
4218
|
+
icons: mergeVuiServiceIconSettings(base.icons, overrides.icons)
|
|
4219
|
+
};
|
|
4220
|
+
const excludes = ['uiSettings', 'icons'];
|
|
4221
|
+
Object.entries(overrides).forEach(([key, value]) => {
|
|
4222
|
+
if (value && !excludes.includes(key)) {
|
|
4223
|
+
merged[key] = value;
|
|
4224
|
+
}
|
|
4225
|
+
});
|
|
4226
|
+
return merged;
|
|
4227
|
+
}
|
|
4125
4228
|
class VuiService {
|
|
4126
4229
|
get scroller() {
|
|
4127
4230
|
return getDocumentScroller$1();
|
|
@@ -4258,6 +4361,18 @@ class VuiService {
|
|
|
4258
4361
|
|
|
4259
4362
|
}
|
|
4260
4363
|
|
|
4364
|
+
function mergeVuiPluginOptions(base, override) {
|
|
4365
|
+
if (!override) return base;
|
|
4366
|
+
const merged = mergeVuiServiceOptions(base, override);
|
|
4367
|
+
|
|
4368
|
+
if (override.stack) {
|
|
4369
|
+
merged.stack = { ...merged.stack,
|
|
4370
|
+
...override.stack
|
|
4371
|
+
};
|
|
4372
|
+
}
|
|
4373
|
+
|
|
4374
|
+
return merged;
|
|
4375
|
+
}
|
|
4261
4376
|
class VuiPlugin {
|
|
4262
4377
|
static installedApps = new Set();
|
|
4263
4378
|
|
|
@@ -4315,4 +4430,4 @@ function installVuiPlugin(app, opts) {
|
|
|
4315
4430
|
return app.use(VuiPlugin, opts);
|
|
4316
4431
|
}
|
|
4317
4432
|
|
|
4318
|
-
export { CONTROL_FIELD_VARIANTS, CONTROL_SIZES, PAGINATION_ALIGNS, VApp, VBreadcrumbs, VButton, VButtonGroup, VCard, VCardActions, VCardContent, VCheckbox, VCheckboxGroup, VContentSwitcher, VDataTable, VDrawerLayout, VForm, VFormControl, VGridContainer, VGridItem, VHero, VIcon, VListTile, VNavigation, VNavigationItem, VOption, VOptionGroup, VPagination, VPaper, VRadio, VRadioGroup, VSelect, VSwitch, VSwitchGroup, VTabs, VTextField, VTextarea, VToolbar, VToolbarEdge, VToolbarMenu, VToolbarTitle, VUI_CHECKBOX_GROUP_SYMBOL, VUI_CHECKBOX_SYMBOL, VUI_FORM_SYMBOL, VUI_OPTION_SYMBOL, VUI_RADIO_GROUP_SYMBOL, VUI_RADIO_SYMBOL, VUI_SELECT_SYMBOL, VUI_SWITCH_GROUP_SYMBOL, VUI_SWITCH_SYMBOL, VUI_TEXTAREA_SYMBOL, VUI_TEXT_FIELD_SYMBOL, VUI_WYSIWYG_EDITOR_SYMBOL, VWysiwygEditor, VuiColorProviderInjectionKey, VuiControlFieldInjectionKey, VuiControlInjectionKey, VuiInjectionKey, VuiPlugin, VuiService, WysiwygBulletListTool, WysiwygFormatBoldTool, WysiwygFormatItalicTool, WysiwygFormatUnderlineTool, WysiwygHistoryTool, WysiwygLinkTool, WysiwygOrderedListTool, WysiwygTextColorTool, configureDataTableDefaults, createCardProps, createControlFieldProviderProps, createControlProps, createElevationProps, createListTileProps, createNavigationItemProps, createPaperBaseProps, createPaperProps, createRequiredChipRenderer, defineFormSelectorComponent, iconProps, installVuiPlugin, listTileEmits, paginationProps, rawIconProp, renderNavigationItemInput, resolveNavigationItemInput, resolveRawIconProp, useControl, useControlField, useElevation, useVui, useVuiColorProvider, vueButtonProps };
|
|
4433
|
+
export { CONTROL_FIELD_VARIANTS, CONTROL_SIZES, PAGINATION_ALIGNS, VApp, VBreadcrumbs, VButton, VButtonGroup, VCard, VCardActions, VCardContent, VCheckbox, VCheckboxGroup, VContentSwitcher, VDataTable, VDrawerLayout, VForm, VFormControl, VGridContainer, VGridItem, VHero, VIcon, VListTile, VNavigation, VNavigationItem, VOption, VOptionGroup, VPagination, VPaper, VRadio, VRadioGroup, VSelect, VSwitch, VSwitchGroup, VTabs, VTextField, VTextarea, VToolbar, VToolbarEdge, VToolbarMenu, VToolbarTitle, VUI_CHECKBOX_GROUP_SYMBOL, VUI_CHECKBOX_SYMBOL, VUI_FORM_SYMBOL, VUI_OPTION_SYMBOL, VUI_RADIO_GROUP_SYMBOL, VUI_RADIO_SYMBOL, VUI_SELECT_SYMBOL, VUI_SWITCH_GROUP_SYMBOL, VUI_SWITCH_SYMBOL, VUI_TEXTAREA_SYMBOL, VUI_TEXT_FIELD_SYMBOL, VUI_WYSIWYG_EDITOR_SYMBOL, VWysiwygEditor, VuiColorProviderInjectionKey, VuiControlFieldInjectionKey, VuiControlInjectionKey, VuiInjectionKey, VuiPlugin, VuiService, WysiwygBulletListTool, WysiwygFormatBoldTool, WysiwygFormatItalicTool, WysiwygFormatUnderlineTool, WysiwygHistoryTool, WysiwygLinkTool, WysiwygOrderedListTool, WysiwygTextColorTool, configureDataTableDefaults, createCardProps, createControlFieldProviderProps, createControlProps, createElevationProps, createListTileProps, createNavigationItemProps, createPaperBaseProps, createPaperProps, createRequiredChipRenderer, defineFormSelectorComponent, iconProps, installVuiPlugin, listTileEmits, mergeVuiPluginOptions, mergeVuiServiceIconSettings, mergeVuiServiceOptions, mergeVuiServiceUISettings, paginationProps, rawIconProp, renderNavigationItemInput, resolveNavigationItemInput, resolveRawIconProp, useControl, useControlField, useElevation, useVui, useVuiColorProvider, vueButtonProps };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fastkit/vui",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.23",
|
|
4
4
|
"description": "@fastkit/vui",
|
|
5
5
|
"buildOptions": {
|
|
6
6
|
"name": "Vui",
|
|
@@ -32,11 +32,11 @@
|
|
|
32
32
|
"vue": "^3.2.26"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@fastkit/color-scheme": "0.7.
|
|
36
|
-
"@fastkit/icon-font": "0.7.
|
|
37
|
-
"@fastkit/tiny-logger": "0.7.
|
|
38
|
-
"@fastkit/vite-kit": "0.7.
|
|
39
|
-
"@fastkit/vue-kit": "0.7.
|
|
35
|
+
"@fastkit/color-scheme": "0.7.23",
|
|
36
|
+
"@fastkit/icon-font": "0.7.23",
|
|
37
|
+
"@fastkit/tiny-logger": "0.7.23",
|
|
38
|
+
"@fastkit/vite-kit": "0.7.23",
|
|
39
|
+
"@fastkit/vue-kit": "0.7.23",
|
|
40
40
|
"@tiptap/extension-link": "^2.0.0-beta.35",
|
|
41
41
|
"@tiptap/extension-underline": "^2.0.0-beta.22",
|
|
42
42
|
"@tiptap/starter-kit": "^2.0.0-beta.168",
|