vueless 0.0.504 → 0.0.505
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/package.json +1 -1
- package/types.ts +6 -0
- package/ui.button/UButton.vue +101 -240
- package/ui.button/storybook/Docs.mdx +2 -2
- package/ui.button/storybook/{stories.js → stories.ts} +25 -12
- package/ui.button/types.ts +121 -0
- package/ui.button/{useAttrs.js → useAttrs.ts} +6 -3
- package/ui.button-link/ULink.vue +72 -223
- package/ui.button-link/storybook/Docs.mdx +2 -2
- package/ui.button-link/storybook/{stories.js → stories.ts} +30 -17
- package/ui.button-link/types.ts +131 -0
- package/ui.button-link/{useAttrs.js → useAttrs.ts} +15 -3
- package/ui.button-toggle/UToggle.vue +47 -165
- package/ui.button-toggle/storybook/Docs.mdx +2 -2
- package/ui.button-toggle/storybook/{stories.js → stories.ts} +13 -5
- package/ui.button-toggle/types.ts +85 -0
- package/ui.button-toggle/useAttrs.ts +18 -0
- package/ui.button-toggle-item/UToggleItem.vue +59 -110
- package/ui.button-toggle-item/storybook/Docs.mdx +2 -2
- package/ui.button-toggle-item/storybook/{stories.js → stories.ts} +10 -3
- package/ui.button-toggle-item/types.ts +40 -0
- package/ui.button-toggle-item/{useAttrs.js → useAttrs.ts} +16 -4
- package/web-types.json +134 -59
- package/ui.button-toggle/useAttrs.js +0 -15
- /package/ui.button/{config.js → config.ts} +0 -0
- /package/ui.button/{constants.js → constants.ts} +0 -0
- /package/ui.button-link/{config.js → config.ts} +0 -0
- /package/ui.button-link/{constants.js → constants.ts} +0 -0
- /package/ui.button-toggle/{config.js → config.ts} +0 -0
- /package/ui.button-toggle/{constants.js → constants.ts} +0 -0
- /package/ui.button-toggle-item/{config.js → config.ts} +0 -0
- /package/ui.button-toggle-item/{constants.js → constants.ts} +0 -0
package/web-types.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"framework": "vue",
|
|
3
3
|
"name": "vueless",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.505",
|
|
5
5
|
"contributions": {
|
|
6
6
|
"html": {
|
|
7
7
|
"description-markup": "markdown",
|
|
@@ -790,6 +790,7 @@
|
|
|
790
790
|
"attributes": [
|
|
791
791
|
{
|
|
792
792
|
"name": "variant",
|
|
793
|
+
"required": false,
|
|
793
794
|
"description": "Button variant.",
|
|
794
795
|
"enum": [
|
|
795
796
|
"primary",
|
|
@@ -798,12 +799,13 @@
|
|
|
798
799
|
],
|
|
799
800
|
"value": {
|
|
800
801
|
"kind": "expression",
|
|
801
|
-
"type": "
|
|
802
|
+
"type": "union"
|
|
802
803
|
},
|
|
803
804
|
"default": "primary"
|
|
804
805
|
},
|
|
805
806
|
{
|
|
806
807
|
"name": "color",
|
|
808
|
+
"required": false,
|
|
807
809
|
"description": "Button color.",
|
|
808
810
|
"enum": [
|
|
809
811
|
"brand",
|
|
@@ -830,12 +832,13 @@
|
|
|
830
832
|
],
|
|
831
833
|
"value": {
|
|
832
834
|
"kind": "expression",
|
|
833
|
-
"type": "
|
|
835
|
+
"type": "union"
|
|
834
836
|
},
|
|
835
837
|
"default": "brand"
|
|
836
838
|
},
|
|
837
839
|
{
|
|
838
840
|
"name": "size",
|
|
841
|
+
"required": false,
|
|
839
842
|
"description": "Button size.",
|
|
840
843
|
"enum": [
|
|
841
844
|
"2xs",
|
|
@@ -847,21 +850,22 @@
|
|
|
847
850
|
],
|
|
848
851
|
"value": {
|
|
849
852
|
"kind": "expression",
|
|
850
|
-
"type": "
|
|
853
|
+
"type": "union"
|
|
851
854
|
},
|
|
852
855
|
"default": "md"
|
|
853
856
|
},
|
|
854
857
|
{
|
|
855
858
|
"name": "label",
|
|
859
|
+
"required": false,
|
|
856
860
|
"description": "Button label.",
|
|
857
861
|
"value": {
|
|
858
862
|
"kind": "expression",
|
|
859
863
|
"type": "string"
|
|
860
|
-
}
|
|
861
|
-
"default": "\"\""
|
|
864
|
+
}
|
|
862
865
|
},
|
|
863
866
|
{
|
|
864
867
|
"name": "tag",
|
|
868
|
+
"required": false,
|
|
865
869
|
"description": "Allows changing button html tag.",
|
|
866
870
|
"value": {
|
|
867
871
|
"kind": "expression",
|
|
@@ -871,42 +875,48 @@
|
|
|
871
875
|
},
|
|
872
876
|
{
|
|
873
877
|
"name": "icon",
|
|
878
|
+
"required": false,
|
|
874
879
|
"description": "Icon name (appears instead of label).",
|
|
875
880
|
"value": {
|
|
876
881
|
"kind": "expression",
|
|
877
882
|
"type": "string"
|
|
878
|
-
}
|
|
879
|
-
"default": "\"\""
|
|
883
|
+
}
|
|
880
884
|
},
|
|
881
885
|
{
|
|
882
886
|
"name": "leftIcon",
|
|
887
|
+
"required": false,
|
|
883
888
|
"description": "Left icon name.",
|
|
884
889
|
"value": {
|
|
885
890
|
"kind": "expression",
|
|
886
891
|
"type": "string"
|
|
887
|
-
}
|
|
888
|
-
"default": "\"\""
|
|
892
|
+
}
|
|
889
893
|
},
|
|
890
894
|
{
|
|
891
895
|
"name": "rightIcon",
|
|
896
|
+
"required": false,
|
|
892
897
|
"description": "Right icon name.",
|
|
893
898
|
"value": {
|
|
894
899
|
"kind": "expression",
|
|
895
900
|
"type": "string"
|
|
896
|
-
}
|
|
897
|
-
"default": "\"\""
|
|
901
|
+
}
|
|
898
902
|
},
|
|
899
903
|
{
|
|
900
904
|
"name": "tabindex",
|
|
905
|
+
"required": false,
|
|
901
906
|
"description": "Controls the keyboard “Tab” focus order of elements.",
|
|
907
|
+
"enum": [
|
|
908
|
+
"string",
|
|
909
|
+
"number"
|
|
910
|
+
],
|
|
902
911
|
"value": {
|
|
903
912
|
"kind": "expression",
|
|
904
|
-
"type": "
|
|
913
|
+
"type": "union"
|
|
905
914
|
},
|
|
906
915
|
"default": "0"
|
|
907
916
|
},
|
|
908
917
|
{
|
|
909
918
|
"name": "filled",
|
|
919
|
+
"required": false,
|
|
910
920
|
"description": "Fill the background for thirdary variant.",
|
|
911
921
|
"value": {
|
|
912
922
|
"kind": "expression",
|
|
@@ -916,6 +926,7 @@
|
|
|
916
926
|
},
|
|
917
927
|
{
|
|
918
928
|
"name": "disabled",
|
|
929
|
+
"required": false,
|
|
919
930
|
"description": "Disable the button.",
|
|
920
931
|
"value": {
|
|
921
932
|
"kind": "expression",
|
|
@@ -925,6 +936,7 @@
|
|
|
925
936
|
},
|
|
926
937
|
{
|
|
927
938
|
"name": "block",
|
|
939
|
+
"required": false,
|
|
928
940
|
"description": "Make the Button fill the width with its container.",
|
|
929
941
|
"value": {
|
|
930
942
|
"kind": "expression",
|
|
@@ -934,6 +946,7 @@
|
|
|
934
946
|
},
|
|
935
947
|
{
|
|
936
948
|
"name": "round",
|
|
949
|
+
"required": false,
|
|
937
950
|
"description": "Set button corners rounded.",
|
|
938
951
|
"value": {
|
|
939
952
|
"kind": "expression",
|
|
@@ -943,6 +956,7 @@
|
|
|
943
956
|
},
|
|
944
957
|
{
|
|
945
958
|
"name": "square",
|
|
959
|
+
"required": false,
|
|
946
960
|
"description": "Set the same paddings for the button.",
|
|
947
961
|
"value": {
|
|
948
962
|
"kind": "expression",
|
|
@@ -952,6 +966,7 @@
|
|
|
952
966
|
},
|
|
953
967
|
{
|
|
954
968
|
"name": "loading",
|
|
969
|
+
"required": false,
|
|
955
970
|
"description": "Enable loader.",
|
|
956
971
|
"value": {
|
|
957
972
|
"kind": "expression",
|
|
@@ -961,6 +976,7 @@
|
|
|
961
976
|
},
|
|
962
977
|
{
|
|
963
978
|
"name": "noRing",
|
|
979
|
+
"required": false,
|
|
964
980
|
"description": "Remove button ring on focus.",
|
|
965
981
|
"value": {
|
|
966
982
|
"kind": "expression",
|
|
@@ -970,24 +986,28 @@
|
|
|
970
986
|
},
|
|
971
987
|
{
|
|
972
988
|
"name": "id",
|
|
989
|
+
"required": false,
|
|
973
990
|
"description": "Unique element id.",
|
|
974
991
|
"value": {
|
|
975
992
|
"kind": "expression",
|
|
976
993
|
"type": "string"
|
|
977
|
-
}
|
|
978
|
-
"default": "\"\""
|
|
994
|
+
}
|
|
979
995
|
},
|
|
980
996
|
{
|
|
981
997
|
"name": "config",
|
|
998
|
+
"required": false,
|
|
982
999
|
"description": "Component config object.",
|
|
1000
|
+
"enum": [
|
|
1001
|
+
"TSTypeQuery"
|
|
1002
|
+
],
|
|
983
1003
|
"value": {
|
|
984
1004
|
"kind": "expression",
|
|
985
|
-
"type": "
|
|
986
|
-
}
|
|
987
|
-
"default": "{}"
|
|
1005
|
+
"type": "Partial"
|
|
1006
|
+
}
|
|
988
1007
|
},
|
|
989
1008
|
{
|
|
990
1009
|
"name": "dataTest",
|
|
1010
|
+
"required": false,
|
|
991
1011
|
"description": "Data-test attribute for automated testing.",
|
|
992
1012
|
"value": {
|
|
993
1013
|
"kind": "expression",
|
|
@@ -7006,33 +7026,34 @@
|
|
|
7006
7026
|
"attributes": [
|
|
7007
7027
|
{
|
|
7008
7028
|
"name": "label",
|
|
7029
|
+
"required": false,
|
|
7009
7030
|
"description": "Button label.",
|
|
7010
7031
|
"value": {
|
|
7011
7032
|
"kind": "expression",
|
|
7012
7033
|
"type": "string"
|
|
7013
|
-
}
|
|
7014
|
-
"default": "\"\""
|
|
7034
|
+
}
|
|
7015
7035
|
},
|
|
7016
7036
|
{
|
|
7017
7037
|
"name": "href",
|
|
7038
|
+
"required": false,
|
|
7018
7039
|
"description": "Link href url.",
|
|
7019
7040
|
"value": {
|
|
7020
7041
|
"kind": "expression",
|
|
7021
7042
|
"type": "string"
|
|
7022
|
-
}
|
|
7023
|
-
"default": "\"\""
|
|
7043
|
+
}
|
|
7024
7044
|
},
|
|
7025
7045
|
{
|
|
7026
7046
|
"name": "to",
|
|
7047
|
+
"required": false,
|
|
7027
7048
|
"description": "Vue-router route object.",
|
|
7028
7049
|
"value": {
|
|
7029
7050
|
"kind": "expression",
|
|
7030
7051
|
"type": "object"
|
|
7031
|
-
}
|
|
7032
|
-
"default": "{}"
|
|
7052
|
+
}
|
|
7033
7053
|
},
|
|
7034
7054
|
{
|
|
7035
7055
|
"name": "size",
|
|
7056
|
+
"required": false,
|
|
7036
7057
|
"description": "Link size.",
|
|
7037
7058
|
"enum": [
|
|
7038
7059
|
"sm",
|
|
@@ -7041,12 +7062,13 @@
|
|
|
7041
7062
|
],
|
|
7042
7063
|
"value": {
|
|
7043
7064
|
"kind": "expression",
|
|
7044
|
-
"type": "
|
|
7065
|
+
"type": "union"
|
|
7045
7066
|
},
|
|
7046
7067
|
"default": "md"
|
|
7047
7068
|
},
|
|
7048
7069
|
{
|
|
7049
7070
|
"name": "color",
|
|
7071
|
+
"required": false,
|
|
7050
7072
|
"description": "Link color.",
|
|
7051
7073
|
"enum": [
|
|
7052
7074
|
"brand",
|
|
@@ -7073,12 +7095,13 @@
|
|
|
7073
7095
|
],
|
|
7074
7096
|
"value": {
|
|
7075
7097
|
"kind": "expression",
|
|
7076
|
-
"type": "
|
|
7098
|
+
"type": "union"
|
|
7077
7099
|
},
|
|
7078
7100
|
"default": "brand"
|
|
7079
7101
|
},
|
|
7080
7102
|
{
|
|
7081
7103
|
"name": "type",
|
|
7104
|
+
"required": false,
|
|
7082
7105
|
"description": "Link open type behaviour.",
|
|
7083
7106
|
"enum": [
|
|
7084
7107
|
"phone",
|
|
@@ -7087,12 +7110,13 @@
|
|
|
7087
7110
|
],
|
|
7088
7111
|
"value": {
|
|
7089
7112
|
"kind": "expression",
|
|
7090
|
-
"type": "
|
|
7113
|
+
"type": "union"
|
|
7091
7114
|
},
|
|
7092
7115
|
"default": "link"
|
|
7093
7116
|
},
|
|
7094
7117
|
{
|
|
7095
7118
|
"name": "targetBlank",
|
|
7119
|
+
"required": false,
|
|
7096
7120
|
"description": "Open link in the new tab.",
|
|
7097
7121
|
"value": {
|
|
7098
7122
|
"kind": "expression",
|
|
@@ -7102,6 +7126,7 @@
|
|
|
7102
7126
|
},
|
|
7103
7127
|
{
|
|
7104
7128
|
"name": "ariaCurrentValue",
|
|
7129
|
+
"required": false,
|
|
7105
7130
|
"description": "Pass value to the attribute aria-current when the link is exact active.",
|
|
7106
7131
|
"value": {
|
|
7107
7132
|
"kind": "expression",
|
|
@@ -7111,6 +7136,7 @@
|
|
|
7111
7136
|
},
|
|
7112
7137
|
{
|
|
7113
7138
|
"name": "custom",
|
|
7139
|
+
"required": false,
|
|
7114
7140
|
"description": "Whether RouterLink should not wrap its content in an a tag.",
|
|
7115
7141
|
"value": {
|
|
7116
7142
|
"kind": "expression",
|
|
@@ -7120,6 +7146,7 @@
|
|
|
7120
7146
|
},
|
|
7121
7147
|
{
|
|
7122
7148
|
"name": "replace",
|
|
7149
|
+
"required": false,
|
|
7123
7150
|
"description": "Whether RouterLink should not wrap its content in an a tag.",
|
|
7124
7151
|
"value": {
|
|
7125
7152
|
"kind": "expression",
|
|
@@ -7129,6 +7156,7 @@
|
|
|
7129
7156
|
},
|
|
7130
7157
|
{
|
|
7131
7158
|
"name": "activeClass",
|
|
7159
|
+
"required": false,
|
|
7132
7160
|
"description": "Apply classes to the link when its route is active or when it matches any parent route.",
|
|
7133
7161
|
"value": {
|
|
7134
7162
|
"kind": "expression",
|
|
@@ -7138,6 +7166,7 @@
|
|
|
7138
7166
|
},
|
|
7139
7167
|
{
|
|
7140
7168
|
"name": "exactActiveClass",
|
|
7169
|
+
"required": false,
|
|
7141
7170
|
"description": "Apply classes to the link when its route is active.",
|
|
7142
7171
|
"value": {
|
|
7143
7172
|
"kind": "expression",
|
|
@@ -7147,6 +7176,7 @@
|
|
|
7147
7176
|
},
|
|
7148
7177
|
{
|
|
7149
7178
|
"name": "wrapperActiveClass",
|
|
7179
|
+
"required": false,
|
|
7150
7180
|
"description": "Apply classes to the wrapper div when link route is active or when it matches any parent route.",
|
|
7151
7181
|
"value": {
|
|
7152
7182
|
"kind": "expression",
|
|
@@ -7156,6 +7186,7 @@
|
|
|
7156
7186
|
},
|
|
7157
7187
|
{
|
|
7158
7188
|
"name": "wrapperExactActiveClass",
|
|
7189
|
+
"required": false,
|
|
7159
7190
|
"description": "Apply classes to the wrapper div when link route is active.",
|
|
7160
7191
|
"value": {
|
|
7161
7192
|
"kind": "expression",
|
|
@@ -7165,6 +7196,7 @@
|
|
|
7165
7196
|
},
|
|
7166
7197
|
{
|
|
7167
7198
|
"name": "underlined",
|
|
7199
|
+
"required": false,
|
|
7168
7200
|
"description": "Show underline.",
|
|
7169
7201
|
"value": {
|
|
7170
7202
|
"kind": "expression",
|
|
@@ -7173,6 +7205,7 @@
|
|
|
7173
7205
|
},
|
|
7174
7206
|
{
|
|
7175
7207
|
"name": "dashed",
|
|
7208
|
+
"required": false,
|
|
7176
7209
|
"description": "Set link underline style as dashed.",
|
|
7177
7210
|
"value": {
|
|
7178
7211
|
"kind": "expression",
|
|
@@ -7182,6 +7215,7 @@
|
|
|
7182
7215
|
},
|
|
7183
7216
|
{
|
|
7184
7217
|
"name": "disabled",
|
|
7218
|
+
"required": false,
|
|
7185
7219
|
"description": "Disable the link.",
|
|
7186
7220
|
"value": {
|
|
7187
7221
|
"kind": "expression",
|
|
@@ -7191,6 +7225,7 @@
|
|
|
7191
7225
|
},
|
|
7192
7226
|
{
|
|
7193
7227
|
"name": "block",
|
|
7228
|
+
"required": false,
|
|
7194
7229
|
"description": "Make the Button fill the width with its container.",
|
|
7195
7230
|
"value": {
|
|
7196
7231
|
"kind": "expression",
|
|
@@ -7200,6 +7235,7 @@
|
|
|
7200
7235
|
},
|
|
7201
7236
|
{
|
|
7202
7237
|
"name": "noRing",
|
|
7238
|
+
"required": false,
|
|
7203
7239
|
"description": "Remove outline ring on focus.",
|
|
7204
7240
|
"value": {
|
|
7205
7241
|
"kind": "expression",
|
|
@@ -7209,15 +7245,19 @@
|
|
|
7209
7245
|
},
|
|
7210
7246
|
{
|
|
7211
7247
|
"name": "config",
|
|
7248
|
+
"required": false,
|
|
7212
7249
|
"description": "Component config object.",
|
|
7250
|
+
"enum": [
|
|
7251
|
+
"TSTypeQuery"
|
|
7252
|
+
],
|
|
7213
7253
|
"value": {
|
|
7214
7254
|
"kind": "expression",
|
|
7215
|
-
"type": "
|
|
7216
|
-
}
|
|
7217
|
-
"default": "{}"
|
|
7255
|
+
"type": "Partial"
|
|
7256
|
+
}
|
|
7218
7257
|
},
|
|
7219
7258
|
{
|
|
7220
7259
|
"name": "dataTest",
|
|
7260
|
+
"required": false,
|
|
7221
7261
|
"description": "Data-test attribute for automated testing.",
|
|
7222
7262
|
"value": {
|
|
7223
7263
|
"kind": "expression",
|
|
@@ -10841,24 +10881,33 @@
|
|
|
10841
10881
|
"attributes": [
|
|
10842
10882
|
{
|
|
10843
10883
|
"name": "modelValue",
|
|
10884
|
+
"required": false,
|
|
10844
10885
|
"description": "Selected value.",
|
|
10886
|
+
"enum": [
|
|
10887
|
+
"string",
|
|
10888
|
+
"number",
|
|
10889
|
+
"Array"
|
|
10890
|
+
],
|
|
10845
10891
|
"value": {
|
|
10846
10892
|
"kind": "expression",
|
|
10847
|
-
"type": "
|
|
10848
|
-
}
|
|
10849
|
-
"default": "\"\""
|
|
10893
|
+
"type": "union"
|
|
10894
|
+
}
|
|
10850
10895
|
},
|
|
10851
10896
|
{
|
|
10852
10897
|
"name": "options",
|
|
10898
|
+
"required": false,
|
|
10853
10899
|
"description": "Toggle item options.",
|
|
10900
|
+
"enum": [
|
|
10901
|
+
"union"
|
|
10902
|
+
],
|
|
10854
10903
|
"value": {
|
|
10855
10904
|
"kind": "expression",
|
|
10856
|
-
"type": "
|
|
10857
|
-
}
|
|
10858
|
-
"default": "[]"
|
|
10905
|
+
"type": "Array"
|
|
10906
|
+
}
|
|
10859
10907
|
},
|
|
10860
10908
|
{
|
|
10861
10909
|
"name": "variant",
|
|
10910
|
+
"required": false,
|
|
10862
10911
|
"description": "Toggle variant.",
|
|
10863
10912
|
"enum": [
|
|
10864
10913
|
"primary",
|
|
@@ -10867,12 +10916,13 @@
|
|
|
10867
10916
|
],
|
|
10868
10917
|
"value": {
|
|
10869
10918
|
"kind": "expression",
|
|
10870
|
-
"type": "
|
|
10919
|
+
"type": "union"
|
|
10871
10920
|
},
|
|
10872
10921
|
"default": "primary"
|
|
10873
10922
|
},
|
|
10874
10923
|
{
|
|
10875
10924
|
"name": "size",
|
|
10925
|
+
"required": false,
|
|
10876
10926
|
"description": "Toggle size.",
|
|
10877
10927
|
"enum": [
|
|
10878
10928
|
"2xs",
|
|
@@ -10884,12 +10934,13 @@
|
|
|
10884
10934
|
],
|
|
10885
10935
|
"value": {
|
|
10886
10936
|
"kind": "expression",
|
|
10887
|
-
"type": "
|
|
10937
|
+
"type": "union"
|
|
10888
10938
|
},
|
|
10889
10939
|
"default": "md"
|
|
10890
10940
|
},
|
|
10891
10941
|
{
|
|
10892
10942
|
"name": "labelAlign",
|
|
10943
|
+
"required": false,
|
|
10893
10944
|
"description": "Label placement.",
|
|
10894
10945
|
"enum": [
|
|
10895
10946
|
"top",
|
|
@@ -10899,27 +10950,27 @@
|
|
|
10899
10950
|
],
|
|
10900
10951
|
"value": {
|
|
10901
10952
|
"kind": "expression",
|
|
10902
|
-
"type": "
|
|
10953
|
+
"type": "union"
|
|
10903
10954
|
},
|
|
10904
10955
|
"default": "top"
|
|
10905
10956
|
},
|
|
10906
10957
|
{
|
|
10907
10958
|
"name": "label",
|
|
10959
|
+
"required": false,
|
|
10908
10960
|
"description": "Toggle label.",
|
|
10909
10961
|
"value": {
|
|
10910
10962
|
"kind": "expression",
|
|
10911
10963
|
"type": "string"
|
|
10912
|
-
}
|
|
10913
|
-
"default": "\"\""
|
|
10964
|
+
}
|
|
10914
10965
|
},
|
|
10915
10966
|
{
|
|
10916
10967
|
"name": "description",
|
|
10968
|
+
"required": false,
|
|
10917
10969
|
"description": "Toggle description.",
|
|
10918
10970
|
"value": {
|
|
10919
10971
|
"kind": "expression",
|
|
10920
10972
|
"type": "string"
|
|
10921
|
-
}
|
|
10922
|
-
"default": "\"\""
|
|
10973
|
+
}
|
|
10923
10974
|
},
|
|
10924
10975
|
{
|
|
10925
10976
|
"name": "name",
|
|
@@ -10932,6 +10983,7 @@
|
|
|
10932
10983
|
},
|
|
10933
10984
|
{
|
|
10934
10985
|
"name": "multiple",
|
|
10986
|
+
"required": false,
|
|
10935
10987
|
"description": "Allow selecting a few options and return them as an array.",
|
|
10936
10988
|
"value": {
|
|
10937
10989
|
"kind": "expression",
|
|
@@ -10941,6 +10993,7 @@
|
|
|
10941
10993
|
},
|
|
10942
10994
|
{
|
|
10943
10995
|
"name": "separated",
|
|
10996
|
+
"required": false,
|
|
10944
10997
|
"description": "Separate toggle items.",
|
|
10945
10998
|
"value": {
|
|
10946
10999
|
"kind": "expression",
|
|
@@ -10950,6 +11003,7 @@
|
|
|
10950
11003
|
},
|
|
10951
11004
|
{
|
|
10952
11005
|
"name": "disabled",
|
|
11006
|
+
"required": false,
|
|
10953
11007
|
"description": "Make toggle disabled.",
|
|
10954
11008
|
"value": {
|
|
10955
11009
|
"kind": "expression",
|
|
@@ -10959,6 +11013,7 @@
|
|
|
10959
11013
|
},
|
|
10960
11014
|
{
|
|
10961
11015
|
"name": "block",
|
|
11016
|
+
"required": false,
|
|
10962
11017
|
"description": "Make the toggle fill the width with its container.",
|
|
10963
11018
|
"value": {
|
|
10964
11019
|
"kind": "expression",
|
|
@@ -10968,6 +11023,7 @@
|
|
|
10968
11023
|
},
|
|
10969
11024
|
{
|
|
10970
11025
|
"name": "round",
|
|
11026
|
+
"required": false,
|
|
10971
11027
|
"description": "Set button corners rounded.",
|
|
10972
11028
|
"value": {
|
|
10973
11029
|
"kind": "expression",
|
|
@@ -10977,6 +11033,7 @@
|
|
|
10977
11033
|
},
|
|
10978
11034
|
{
|
|
10979
11035
|
"name": "square",
|
|
11036
|
+
"required": false,
|
|
10980
11037
|
"description": "Set the same paddings for the button.",
|
|
10981
11038
|
"value": {
|
|
10982
11039
|
"kind": "expression",
|
|
@@ -10986,15 +11043,19 @@
|
|
|
10986
11043
|
},
|
|
10987
11044
|
{
|
|
10988
11045
|
"name": "config",
|
|
11046
|
+
"required": false,
|
|
10989
11047
|
"description": "Component config object.",
|
|
11048
|
+
"enum": [
|
|
11049
|
+
"TSTypeQuery"
|
|
11050
|
+
],
|
|
10990
11051
|
"value": {
|
|
10991
11052
|
"kind": "expression",
|
|
10992
|
-
"type": "
|
|
10993
|
-
}
|
|
10994
|
-
"default": "{}"
|
|
11053
|
+
"type": "Partial"
|
|
11054
|
+
}
|
|
10995
11055
|
},
|
|
10996
11056
|
{
|
|
10997
11057
|
"name": "dataTest",
|
|
11058
|
+
"required": false,
|
|
10998
11059
|
"description": "Data-test attribute for automated testing.",
|
|
10999
11060
|
"value": {
|
|
11000
11061
|
"kind": "expression",
|
|
@@ -11034,33 +11095,43 @@
|
|
|
11034
11095
|
"attributes": [
|
|
11035
11096
|
{
|
|
11036
11097
|
"name": "modelValue",
|
|
11098
|
+
"required": false,
|
|
11037
11099
|
"description": "Selected value.",
|
|
11100
|
+
"enum": [
|
|
11101
|
+
"string",
|
|
11102
|
+
"number",
|
|
11103
|
+
"Array"
|
|
11104
|
+
],
|
|
11038
11105
|
"value": {
|
|
11039
11106
|
"kind": "expression",
|
|
11040
|
-
"type": "
|
|
11041
|
-
}
|
|
11042
|
-
"default": "\"\""
|
|
11107
|
+
"type": "union"
|
|
11108
|
+
}
|
|
11043
11109
|
},
|
|
11044
11110
|
{
|
|
11045
11111
|
"name": "value",
|
|
11112
|
+
"required": false,
|
|
11046
11113
|
"description": "Value for checkbox state.",
|
|
11114
|
+
"enum": [
|
|
11115
|
+
"string",
|
|
11116
|
+
"number"
|
|
11117
|
+
],
|
|
11047
11118
|
"value": {
|
|
11048
11119
|
"kind": "expression",
|
|
11049
|
-
"type": "
|
|
11050
|
-
}
|
|
11051
|
-
"default": "\"\""
|
|
11120
|
+
"type": "union"
|
|
11121
|
+
}
|
|
11052
11122
|
},
|
|
11053
11123
|
{
|
|
11054
11124
|
"name": "label",
|
|
11125
|
+
"required": false,
|
|
11055
11126
|
"description": "Toggle item label.",
|
|
11056
11127
|
"value": {
|
|
11057
11128
|
"kind": "expression",
|
|
11058
11129
|
"type": "string"
|
|
11059
|
-
}
|
|
11060
|
-
"default": "\"\""
|
|
11130
|
+
}
|
|
11061
11131
|
},
|
|
11062
11132
|
{
|
|
11063
11133
|
"name": "disabled",
|
|
11134
|
+
"required": false,
|
|
11064
11135
|
"description": "Make toggle item disabled.",
|
|
11065
11136
|
"value": {
|
|
11066
11137
|
"kind": "expression",
|
|
@@ -11070,24 +11141,28 @@
|
|
|
11070
11141
|
},
|
|
11071
11142
|
{
|
|
11072
11143
|
"name": "id",
|
|
11144
|
+
"required": false,
|
|
11073
11145
|
"description": "Unique element id.",
|
|
11074
11146
|
"value": {
|
|
11075
11147
|
"kind": "expression",
|
|
11076
11148
|
"type": "string"
|
|
11077
|
-
}
|
|
11078
|
-
"default": "\"\""
|
|
11149
|
+
}
|
|
11079
11150
|
},
|
|
11080
11151
|
{
|
|
11081
11152
|
"name": "config",
|
|
11153
|
+
"required": false,
|
|
11082
11154
|
"description": "Component config object.",
|
|
11155
|
+
"enum": [
|
|
11156
|
+
"TSTypeQuery"
|
|
11157
|
+
],
|
|
11083
11158
|
"value": {
|
|
11084
11159
|
"kind": "expression",
|
|
11085
|
-
"type": "
|
|
11086
|
-
}
|
|
11087
|
-
"default": "{}"
|
|
11160
|
+
"type": "Partial"
|
|
11161
|
+
}
|
|
11088
11162
|
},
|
|
11089
11163
|
{
|
|
11090
11164
|
"name": "dataTest",
|
|
11165
|
+
"required": false,
|
|
11091
11166
|
"description": "Data-test attribute for automated testing.",
|
|
11092
11167
|
"value": {
|
|
11093
11168
|
"kind": "expression",
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import useUI from "../composables/useUI.ts";
|
|
2
|
-
|
|
3
|
-
import defaultConfig from "./config.js";
|
|
4
|
-
|
|
5
|
-
export default function useAttrs(props) {
|
|
6
|
-
const { config, getKeysAttrs, hasSlotContent } = useUI(defaultConfig, () => props.config);
|
|
7
|
-
|
|
8
|
-
const keysAttrs = getKeysAttrs();
|
|
9
|
-
|
|
10
|
-
return {
|
|
11
|
-
config,
|
|
12
|
-
...keysAttrs,
|
|
13
|
-
hasSlotContent,
|
|
14
|
-
};
|
|
15
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|