@fastkit/vui 0.18.27 → 0.18.29
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 +22 -0
- package/dist/vui.mjs +9 -1
- package/dist/vui.mjs.map +1 -1
- package/package.json +14 -14
- package/src/service.tsx +12 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fastkit/vui",
|
|
3
|
-
"version": "0.18.
|
|
3
|
+
"version": "0.18.29",
|
|
4
4
|
"description": "A simple, extensible UI kit for Vue applications.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"fastkit",
|
|
@@ -46,29 +46,29 @@
|
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"@fastkit/color-scheme": "1.0.14",
|
|
48
48
|
"@fastkit/dom": "0.1.7",
|
|
49
|
-
"@fastkit/color-scheme-gen": "0.13.14",
|
|
50
49
|
"@fastkit/helpers": "0.13.7",
|
|
50
|
+
"@fastkit/color-scheme-gen": "0.13.14",
|
|
51
51
|
"@fastkit/icon-font": "1.0.9",
|
|
52
|
-
"@fastkit/media-match": "1.0.9",
|
|
53
|
-
"@fastkit/media-match-gen": "0.13.14",
|
|
54
52
|
"@fastkit/rules": "0.13.9",
|
|
55
53
|
"@fastkit/stylebase": "0.13.1",
|
|
56
|
-
"@fastkit/
|
|
54
|
+
"@fastkit/media-match": "1.0.9",
|
|
57
55
|
"@fastkit/tiny-logger": "0.13.7",
|
|
58
|
-
"@fastkit/
|
|
56
|
+
"@fastkit/media-match-gen": "0.13.14",
|
|
57
|
+
"@fastkit/vue-body-scroll-lock": "0.1.18",
|
|
59
58
|
"@fastkit/vue-click-outside": "0.1.19",
|
|
60
|
-
"@fastkit/vue-
|
|
61
|
-
"@fastkit/vue-
|
|
59
|
+
"@fastkit/vue-app-layout": "0.14.21",
|
|
60
|
+
"@fastkit/vue-action": "0.2.20",
|
|
62
61
|
"@fastkit/vue-keyboard": "0.1.7",
|
|
63
|
-
"@fastkit/vue-location": "0.1.25",
|
|
64
62
|
"@fastkit/vue-loading": "0.14.19",
|
|
65
|
-
"@fastkit/vue-
|
|
66
|
-
"@fastkit/vue-
|
|
63
|
+
"@fastkit/vue-color-scheme": "0.14.18",
|
|
64
|
+
"@fastkit/vue-location": "0.1.25",
|
|
67
65
|
"@fastkit/vue-media-match": "0.13.14",
|
|
68
|
-
"@fastkit/vue-
|
|
66
|
+
"@fastkit/vue-resize": "0.1.18",
|
|
67
|
+
"@fastkit/vue-form-control": "0.19.18",
|
|
69
68
|
"@fastkit/vue-scroller": "0.14.20",
|
|
70
|
-
"@fastkit/vue-
|
|
71
|
-
"@fastkit/vue-
|
|
69
|
+
"@fastkit/vue-transitions": "0.1.22",
|
|
70
|
+
"@fastkit/vue-stack": "0.15.50",
|
|
71
|
+
"@fastkit/vue-utils": "0.14.16"
|
|
72
72
|
},
|
|
73
73
|
"peerDependencies": {
|
|
74
74
|
"vue": "^3.3.0",
|
package/src/service.tsx
CHANGED
|
@@ -426,11 +426,22 @@ export class VuiService {
|
|
|
426
426
|
key,
|
|
427
427
|
content: ({ control, key }) => {
|
|
428
428
|
const onClick = (ev: MouseEvent) => _onClick(control, ev);
|
|
429
|
+
control.guardInProgress;
|
|
430
|
+
|
|
431
|
+
const _attrs: any = {
|
|
432
|
+
disabled: control.guardInProgress,
|
|
433
|
+
...attrs,
|
|
434
|
+
};
|
|
435
|
+
|
|
436
|
+
if (key === 'ok' && control.guardInProgress) {
|
|
437
|
+
_attrs.loading = true;
|
|
438
|
+
}
|
|
439
|
+
|
|
429
440
|
return factory({
|
|
430
441
|
service: this.stack,
|
|
431
442
|
control,
|
|
432
443
|
key,
|
|
433
|
-
bindings: { onClick, ...
|
|
444
|
+
bindings: { onClick, ..._attrs },
|
|
434
445
|
});
|
|
435
446
|
},
|
|
436
447
|
...override,
|