@avakhula/ui 0.0.329 → 0.0.331
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/index.js +3515 -3419
- package/dist/index.umd.cjs +66 -68
- package/dist/style.css +1 -1
- package/package.json +64 -94
- package/src/components/Form/Checkbox/Checkbox.vue +6 -4
- package/src/components/TreeSelect/Select.vue +0 -2
- package/src/components/TreeSelect/TreeSelect.stories.js +34 -0
- package/src/components/TreeSelect/TriggerButton.vue +0 -3
package/package.json
CHANGED
|
@@ -1,95 +1,65 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
"Resources": {
|
|
67
|
-
"Api": {
|
|
68
|
-
"Type": "AWS::Serverless::Api",
|
|
69
|
-
"Properties": {
|
|
70
|
-
"Name": {
|
|
71
|
-
"Fn::Sub": [
|
|
72
|
-
"${ResourceName} From Stack ${AWS::StackName}",
|
|
73
|
-
{
|
|
74
|
-
"ResourceName": "Api"
|
|
75
|
-
}
|
|
76
|
-
]
|
|
77
|
-
},
|
|
78
|
-
"StageName": "Prod",
|
|
79
|
-
"DefinitionBody": {
|
|
80
|
-
"openapi": "3.0",
|
|
81
|
-
"info": {},
|
|
82
|
-
"paths": {
|
|
83
|
-
"/": {
|
|
84
|
-
"get": {
|
|
85
|
-
"responses": {}
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
},
|
|
90
|
-
"EndpointConfiguration": "REGIONAL",
|
|
91
|
-
"TracingEnabled": true
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
}
|
|
2
|
+
"name": "@avakhula/ui",
|
|
3
|
+
"version": "0.0.331",
|
|
4
|
+
"main": "dist/index.js",
|
|
5
|
+
"module": "dist/index.umd.cjs",
|
|
6
|
+
"source": "src/index.js",
|
|
7
|
+
"type": "module",
|
|
8
|
+
"private": false,
|
|
9
|
+
"publishConfig": {
|
|
10
|
+
"access": "public",
|
|
11
|
+
"registry": "https://registry.npmjs.org/"
|
|
12
|
+
},
|
|
13
|
+
"scripts": {
|
|
14
|
+
"dev": "vite",
|
|
15
|
+
"build": "vite build",
|
|
16
|
+
"preview": "vite preview",
|
|
17
|
+
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs --ignore-path .gitignore",
|
|
18
|
+
"test": "vitest",
|
|
19
|
+
"test:coverage": "vitest run --coverage",
|
|
20
|
+
"storybook": "storybook dev 6006",
|
|
21
|
+
"build-storybook": "storybook build"
|
|
22
|
+
},
|
|
23
|
+
"dependencies": {
|
|
24
|
+
"@vueup/vue-quill": "^1.2.0",
|
|
25
|
+
"mitt": "^3.0.0",
|
|
26
|
+
"vue": "^3.2.45"
|
|
27
|
+
},
|
|
28
|
+
"devDependencies": {
|
|
29
|
+
"@babel/core": "^7.20.7",
|
|
30
|
+
"@babel/preset-env": "^7.21.4",
|
|
31
|
+
"@rushstack/eslint-patch": "^1.1.4",
|
|
32
|
+
"@storybook/addon-a11y": "^7.1.0",
|
|
33
|
+
"@storybook/addon-actions": "^7.1.0",
|
|
34
|
+
"@storybook/addon-docs": "^7.1.0",
|
|
35
|
+
"@storybook/addon-essentials": "^7.1.0",
|
|
36
|
+
"@storybook/addon-interactions": "^7.1.0",
|
|
37
|
+
"@storybook/addon-links": "^7.1.0",
|
|
38
|
+
"@storybook/addon-mdx-gfm": "^7.1.0",
|
|
39
|
+
"@storybook/testing-library": "^0.2.0",
|
|
40
|
+
"@storybook/vue3": "^7.1.0",
|
|
41
|
+
"@storybook/vue3-vite": "^7.1.0",
|
|
42
|
+
"@vitejs/plugin-vue": "^4.0.0",
|
|
43
|
+
"@vitest/coverage-c8": "^0.28.4",
|
|
44
|
+
"@vue/eslint-config-prettier": "^7.0.0",
|
|
45
|
+
"@vue/test-utils": "^2.2.10",
|
|
46
|
+
"babel-loader": "^8.3.0",
|
|
47
|
+
"eslint": "^8.22.0",
|
|
48
|
+
"eslint-plugin-storybook": "^0.6.13",
|
|
49
|
+
"eslint-plugin-vue": "^9.3.0",
|
|
50
|
+
"flatpickr": "^4.6.13",
|
|
51
|
+
"jsdom": "^21.1.0",
|
|
52
|
+
"lodash.kebabcase": "^4.1.1",
|
|
53
|
+
"mark.js": "^8.11.1",
|
|
54
|
+
"prettier": "^2.7.1",
|
|
55
|
+
"react": "^18.2.0",
|
|
56
|
+
"react-dom": "^18.2.0",
|
|
57
|
+
"sass": "^1.57.1",
|
|
58
|
+
"sass-loader": "^13.2.0",
|
|
59
|
+
"storybook": "^7.1.0",
|
|
60
|
+
"vite": "^4.0.0",
|
|
61
|
+
"vitest": "^0.28.4",
|
|
62
|
+
"vue-loader": "^16.8.3",
|
|
63
|
+
"vue-tel-input": "^8.1.1"
|
|
64
|
+
}
|
|
65
|
+
}
|
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
:tabindex="disabled | disableFocus ? -1 : 0"
|
|
7
7
|
@keypress.prevent="onChange"
|
|
8
8
|
>
|
|
9
|
-
|
|
10
9
|
<input
|
|
11
10
|
tabindex="-1"
|
|
12
11
|
type="checkbox"
|
|
@@ -16,7 +15,7 @@
|
|
|
16
15
|
:disabled="disabled"
|
|
17
16
|
:required="required"
|
|
18
17
|
v-model="checked"
|
|
19
|
-
@click
|
|
18
|
+
@click="onChange"
|
|
20
19
|
/>
|
|
21
20
|
<div class="ib-checkbox-body">
|
|
22
21
|
<span
|
|
@@ -117,8 +116,11 @@ export default {
|
|
|
117
116
|
};
|
|
118
117
|
},
|
|
119
118
|
methods: {
|
|
120
|
-
onChange() {
|
|
121
|
-
if (this.readonly)
|
|
119
|
+
onChange(e) {
|
|
120
|
+
if (this.readonly) {
|
|
121
|
+
e.preventDefault();
|
|
122
|
+
return;
|
|
123
|
+
};
|
|
122
124
|
|
|
123
125
|
this.checked = !this.checked;
|
|
124
126
|
this.$emit("update:modelValue", this.checked);
|
|
@@ -108,6 +108,8 @@ const testData = [
|
|
|
108
108
|
selected: false,
|
|
109
109
|
initiallyVisible: true,
|
|
110
110
|
visible: true,
|
|
111
|
+
isDisabled: false,
|
|
112
|
+
checked: false,
|
|
111
113
|
},
|
|
112
114
|
{
|
|
113
115
|
id: 300,
|
|
@@ -115,10 +117,14 @@ const testData = [
|
|
|
115
117
|
selected: false,
|
|
116
118
|
initiallyVisible: true,
|
|
117
119
|
visible: true,
|
|
120
|
+
isDisabled: false,
|
|
121
|
+
checked: false,
|
|
118
122
|
},
|
|
119
123
|
],
|
|
120
124
|
initiallyVisible: true,
|
|
121
125
|
visible: true,
|
|
126
|
+
isDisabled: false,
|
|
127
|
+
checked: false,
|
|
122
128
|
isChildrenVisible: true,
|
|
123
129
|
},
|
|
124
130
|
{
|
|
@@ -127,6 +133,8 @@ const testData = [
|
|
|
127
133
|
selected: false,
|
|
128
134
|
initiallyVisible: true,
|
|
129
135
|
visible: true,
|
|
136
|
+
isDisabled: false,
|
|
137
|
+
checked: false,
|
|
130
138
|
},
|
|
131
139
|
{
|
|
132
140
|
id: 17,
|
|
@@ -134,6 +142,8 @@ const testData = [
|
|
|
134
142
|
selected: false,
|
|
135
143
|
initiallyVisible: true,
|
|
136
144
|
visible: true,
|
|
145
|
+
isDisabled: false,
|
|
146
|
+
checked: false,
|
|
137
147
|
},
|
|
138
148
|
{
|
|
139
149
|
id: 29,
|
|
@@ -141,6 +151,8 @@ const testData = [
|
|
|
141
151
|
selected: false,
|
|
142
152
|
initiallyVisible: true,
|
|
143
153
|
visible: true,
|
|
154
|
+
isDisabled: false,
|
|
155
|
+
checked: false,
|
|
144
156
|
},
|
|
145
157
|
{
|
|
146
158
|
id: 30,
|
|
@@ -148,6 +160,8 @@ const testData = [
|
|
|
148
160
|
selected: false,
|
|
149
161
|
initiallyVisible: true,
|
|
150
162
|
visible: true,
|
|
163
|
+
isDisabled: false,
|
|
164
|
+
checked: false,
|
|
151
165
|
},
|
|
152
166
|
{
|
|
153
167
|
id: 31,
|
|
@@ -155,6 +169,8 @@ const testData = [
|
|
|
155
169
|
selected: false,
|
|
156
170
|
initiallyVisible: true,
|
|
157
171
|
visible: true,
|
|
172
|
+
isDisabled: false,
|
|
173
|
+
checked: false,
|
|
158
174
|
},
|
|
159
175
|
{
|
|
160
176
|
id: 32,
|
|
@@ -162,10 +178,14 @@ const testData = [
|
|
|
162
178
|
selected: false,
|
|
163
179
|
initiallyVisible: true,
|
|
164
180
|
visible: true,
|
|
181
|
+
isDisabled: false,
|
|
182
|
+
checked: false,
|
|
165
183
|
},
|
|
166
184
|
],
|
|
167
185
|
initiallyVisible: true,
|
|
168
186
|
visible: true,
|
|
187
|
+
isDisabled: false,
|
|
188
|
+
checked: false,
|
|
169
189
|
isChildrenVisible: true,
|
|
170
190
|
},
|
|
171
191
|
{
|
|
@@ -174,6 +194,8 @@ const testData = [
|
|
|
174
194
|
selected: false,
|
|
175
195
|
initiallyVisible: true,
|
|
176
196
|
visible: true,
|
|
197
|
+
isDisabled: false,
|
|
198
|
+
checked: false,
|
|
177
199
|
},
|
|
178
200
|
{
|
|
179
201
|
id: 434,
|
|
@@ -181,6 +203,8 @@ const testData = [
|
|
|
181
203
|
selected: false,
|
|
182
204
|
initiallyVisible: true,
|
|
183
205
|
visible: true,
|
|
206
|
+
isDisabled: false,
|
|
207
|
+
checked: false,
|
|
184
208
|
},
|
|
185
209
|
{
|
|
186
210
|
id: 4324,
|
|
@@ -188,6 +212,8 @@ const testData = [
|
|
|
188
212
|
selected: false,
|
|
189
213
|
initiallyVisible: true,
|
|
190
214
|
visible: true,
|
|
215
|
+
isDisabled: false,
|
|
216
|
+
checked: false,
|
|
191
217
|
},
|
|
192
218
|
{
|
|
193
219
|
id: 41224,
|
|
@@ -195,6 +221,8 @@ const testData = [
|
|
|
195
221
|
selected: false,
|
|
196
222
|
initiallyVisible: true,
|
|
197
223
|
visible: true,
|
|
224
|
+
isDisabled: false,
|
|
225
|
+
checked: false,
|
|
198
226
|
},
|
|
199
227
|
{
|
|
200
228
|
id: 990,
|
|
@@ -202,6 +230,8 @@ const testData = [
|
|
|
202
230
|
selected: false,
|
|
203
231
|
initiallyVisible: true,
|
|
204
232
|
visible: true,
|
|
233
|
+
isDisabled: false,
|
|
234
|
+
checked: false,
|
|
205
235
|
},
|
|
206
236
|
{
|
|
207
237
|
id: 122324,
|
|
@@ -209,6 +239,8 @@ const testData = [
|
|
|
209
239
|
selected: false,
|
|
210
240
|
initiallyVisible: true,
|
|
211
241
|
visible: true,
|
|
242
|
+
isDisabled: false,
|
|
243
|
+
checked: false,
|
|
212
244
|
},
|
|
213
245
|
{
|
|
214
246
|
id: 9123123,
|
|
@@ -216,6 +248,8 @@ const testData = [
|
|
|
216
248
|
selected: false,
|
|
217
249
|
initiallyVisible: true,
|
|
218
250
|
visible: true,
|
|
251
|
+
isDisabled: false,
|
|
252
|
+
checked: false,
|
|
219
253
|
},
|
|
220
254
|
];
|
|
221
255
|
export const Default = Template.bind({});
|