@vunk/form 2.18.2 → 2.19.0
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/components/_plugin-vue_export-helper.cjs +1 -11
- package/components/api-tables-select/index.cjs +1 -467
- package/components/api-tables-select/index.mjs +56 -413
- package/components/api-tables-select/src/ctx.d.ts +152 -172
- package/components/api-tables-select/src/index.vue.d.ts +394 -983
- package/components/button/index.cjs +1 -112
- package/components/button/index.mjs +57 -85
- package/components/button/src/ctx.d.ts +28 -113
- package/components/button/src/index.vue.d.ts +317 -625
- package/components/card-input-collection/index.cjs +1 -370
- package/components/card-input-collection/index.mjs +175 -277
- package/components/card-input-collection/src/core.vue.d.ts +54 -951
- package/components/card-input-collection/src/ctx.d.ts +19 -49
- package/components/card-input-collection/src/index.vue.d.ts +46 -110
- package/components/cascader/index.cjs +1 -150
- package/components/cascader/index.mjs +88 -116
- package/components/cascader/src/ctx.d.ts +140 -207
- package/components/cascader/src/index.vue.d.ts +315 -522
- package/components/cascader/src/use.d.ts +1 -1
- package/components/checkbox/index.cjs +1 -152
- package/components/checkbox/index.mjs +75 -119
- package/components/checkbox/src/ctx.d.ts +46 -69
- package/components/checkbox/src/index.vue.d.ts +448 -1016
- package/components/cloneDeep.cjs +1 -2106
- package/components/color-picker/index.cjs +1 -80
- package/components/color-picker/index.mjs +46 -69
- package/components/color-picker/src/ctx.d.ts +130 -107
- package/components/color-picker/src/index.vue.d.ts +285 -255
- package/components/date-picker/index.cjs +1 -119
- package/components/date-picker/index.mjs +63 -97
- package/components/date-picker/src/ctx.d.ts +123 -206
- package/components/date-picker/src/index.vue.d.ts +269 -1358
- package/components/date-picker/src/types.d.ts +7 -7
- package/components/date-picker-range/index.cjs +1 -177
- package/components/date-picker-range/index.mjs +62 -113
- package/components/date-picker-range/src/ctx.d.ts +130 -206
- package/components/date-picker-range/src/index.vue.d.ts +861 -448
- package/components/debounce.cjs +1 -0
- package/components/dialog/index.cjs +1 -126
- package/components/dialog/index.mjs +65 -99
- package/components/dialog/src/ctx.d.ts +17 -108
- package/components/dialog/src/index.vue.d.ts +77 -1072
- package/components/dialog-input-collection/index.cjs +1 -624
- package/components/dialog-input-collection/index.mjs +276 -498
- package/components/dialog-input-collection/src/ctx.d.ts +21 -52
- package/components/dialog-input-collection/src/dialog-form.vue.d.ts +29 -6371
- package/components/dialog-input-collection/src/index.vue.d.ts +65 -7630
- package/components/dialog-input-collection/src/layout.vue.d.ts +13 -73
- package/components/download-plus/index.cjs +1 -456
- package/components/download-plus/index.mjs +215 -358
- package/components/download-plus/src/api.d.ts +1 -1
- package/components/download-plus/src/ctx.d.ts +21 -52
- package/components/download-plus/src/index.vue.d.ts +437 -1177
- package/components/editable-text/index.cjs +1 -295
- package/components/editable-text/index.mjs +113 -239
- package/components/editable-text/src/ctx.d.ts +24 -50
- package/components/editable-text/src/index.vue.d.ts +59 -3258
- package/components/el-slider/index.cjs +1 -0
- package/components/el-slider/index.d.ts +5 -0
- package/components/el-slider/index.mjs +475 -0
- package/components/el-slider/src/button.d.ts +36 -0
- package/components/el-slider/src/button.vue.d.ts +41 -0
- package/components/el-slider/src/composables/index.cjs +1 -0
- package/components/el-slider/src/composables/index.d.ts +6 -0
- package/components/el-slider/src/composables/index.mjs +9 -0
- package/components/el-slider/src/composables/use-lifecycle.d.ts +4 -0
- package/components/el-slider/src/composables/use-marks.d.ts +7 -0
- package/components/el-slider/src/composables/use-slide.d.ts +23 -0
- package/components/el-slider/src/composables/use-slider-button.d.ts +18 -0
- package/components/el-slider/src/composables/use-stops.d.ts +8 -0
- package/components/el-slider/src/composables/use-watch.d.ts +4 -0
- package/components/el-slider/src/constants.d.ts +14 -0
- package/components/el-slider/src/marker.d.ts +37 -0
- package/components/el-slider/src/slider-core.vue.d.ts +218 -0
- package/components/el-slider/src/slider.d.ts +174 -0
- package/components/esri-input-geojson/index.cjs +2 -1604
- package/components/esri-input-geojson/index.mjs +682 -1290
- package/components/esri-input-geojson/src/append.vue.d.ts +239 -1099
- package/components/esri-input-geojson/src/const.d.ts +1 -1
- package/components/esri-input-geojson/src/ctx.d.ts +66 -161
- package/components/esri-input-geojson/src/default-view.vue.d.ts +8 -132
- package/components/esri-input-geojson/src/index.vue.d.ts +982 -708
- package/components/esri-input-geojson/src/types.d.ts +1 -0
- package/components/esri-input-geojson/src/viewer.vue.d.ts +53 -282
- package/components/fieldset/index.cjs +1 -110
- package/components/fieldset/index.mjs +63 -76
- package/components/fieldset/src/ctx.d.ts +4 -4
- package/components/fieldset/src/index.vue.d.ts +7 -7
- package/components/form/index.cjs +1 -248
- package/components/form/index.mjs +107 -161
- package/components/form/src/ctx.d.ts +15 -64
- package/components/form/src/index.vue.d.ts +374 -2431
- package/components/form-item/index.cjs +1 -294
- package/components/form-item/index.mjs +140 -229
- package/components/form-item/src/core.vue.d.ts +32 -1854
- package/components/form-item/src/ctx.d.ts +19 -51
- package/components/form-item/src/index.vue.d.ts +38 -101
- package/components/form-item-renderer/index.cjs +1 -193
- package/components/form-item-renderer/index.mjs +103 -162
- package/components/form-item-renderer/src/core.vue.d.ts +9 -9
- package/components/form-item-renderer/src/ctx.d.ts +3 -3
- package/components/form-item-renderer/src/index.vue.d.ts +24 -74
- package/components/form-item-renderer-template/index.cjs +1 -47
- package/components/form-item-renderer-template/index.mjs +20 -33
- package/components/form-item-renderer-template/src/index.vue.d.ts +1 -1
- package/components/forms-provider/index.cjs +1 -99
- package/components/forms-provider/index.mjs +44 -73
- package/components/forms-provider/src/core.d.ts +3 -2
- package/components/forms-provider/src/segment.vue.d.ts +8 -8
- package/components/forms-provider/src/view.vue.d.ts +14 -4
- package/components/index.cjs +1 -399
- package/components/index2.cjs +1 -17
- package/components/information/index.cjs +1 -65
- package/components/information/index.mjs +28 -38
- package/components/information/src/ctx.d.ts +2 -2
- package/components/information/src/index.vue.d.ts +4 -4
- package/components/information-collection/index.cjs +1 -81
- package/components/information-collection/index.mjs +44 -48
- package/components/information-collection/src/ctx.d.ts +29 -65
- package/components/information-collection/src/index.vue.d.ts +64 -136
- package/components/information-renderer/index.cjs +1 -16
- package/components/information-renderer/index.d.ts +9 -9
- package/components/information-renderer/index.mjs +9 -10
- package/components/information-tag/index.cjs +1 -101
- package/components/information-tag/index.mjs +44 -54
- package/components/information-tag/src/ctx.d.ts +6 -21
- package/components/information-tag/src/index.vue.d.ts +23 -51
- package/components/information-templates-default/index.cjs +1 -101
- package/components/information-templates-default/index.mjs +63 -73
- package/components/information-templates-default/src/index.vue.d.ts +1 -1
- package/components/input/index.cjs +1 -115
- package/components/input/index.mjs +60 -83
- package/components/input/src/ctx.d.ts +51 -152
- package/components/input/src/index.vue.d.ts +392 -951
- package/components/input-array/index.cjs +1 -310
- package/components/input-array/index.mjs +114 -244
- package/components/input-array/src/ctx.d.ts +19 -49
- package/components/input-array/src/form-template.vue.d.ts +1 -901
- package/components/input-array/src/index.vue.d.ts +43 -730
- package/components/input-collection/index.cjs +1 -452
- package/components/input-collection/index.mjs +195 -355
- package/components/input-collection/src/core.vue.d.ts +64 -1026
- package/components/input-collection/src/ctx.d.ts +21 -51
- package/components/input-collection/src/index.vue.d.ts +50 -114
- package/components/input-file/index.cjs +1 -142
- package/components/input-file/index.mjs +68 -100
- package/components/input-file/src/ctx.d.ts +8 -29
- package/components/input-file/src/index.vue.d.ts +444 -74
- package/components/input-file/src/template.vue.d.ts +1 -124
- package/components/input-link/index.cjs +1 -167
- package/components/input-link/index.mjs +60 -83
- package/components/input-link/src/ctx.d.ts +52 -137
- package/components/input-link/src/index.vue.d.ts +833 -311
- package/components/input-number/index.cjs +1 -119
- package/components/input-number/index.mjs +73 -87
- package/components/input-number/src/ctx.d.ts +38 -131
- package/components/input-number/src/index.vue.d.ts +321 -683
- package/components/input-tag/index.cjs +1 -100
- package/components/input-tag/index.mjs +51 -78
- package/components/input-tag/src/ctx.d.ts +43 -145
- package/components/input-tag/src/index.vue.d.ts +324 -778
- package/components/isObject.cjs +1 -165
- package/components/monaco-editor/index.cjs +1 -83
- package/components/monaco-editor/index.mjs +40 -59
- package/components/monaco-editor/src/ctx.d.ts +19 -44
- package/components/monaco-editor/src/index.vue.d.ts +209 -109
- package/components/radio/index.cjs +1 -267
- package/components/radio/index.mjs +110 -209
- package/components/radio/src/ctx.d.ts +27 -91
- package/components/radio/src/index.vue.d.ts +298 -1279
- package/components/radio/src/option.vue.d.ts +29 -881
- package/components/radio/src/wraper.vue.d.ts +64 -196
- package/components/renderer-data/index.cjs +1 -41
- package/components/renderer-data/index.mjs +19 -26
- package/components/renderer-data/src/ctx.d.ts +1 -1
- package/components/renderer-data/src/index.vue.d.ts +2 -2
- package/components/select/index.cjs +1 -311
- package/components/select/index.mjs +156 -214
- package/components/select/src/core.vue.d.ts +638 -1080
- package/components/select/src/ctx.d.ts +140 -223
- package/components/select/src/index.vue.d.ts +334 -610
- package/components/select/src/options.vue.d.ts +1 -1
- package/components/slider/index.cjs +1 -88
- package/components/slider/index.mjs +41 -70
- package/components/slider/src/ctx.d.ts +63 -174
- package/components/slider/src/index.vue.d.ts +151 -420
- package/components/style.css +1 -0
- package/components/switch/index.cjs +1 -88
- package/components/switch/index.mjs +37 -69
- package/components/switch/src/ctx.d.ts +34 -113
- package/components/switch/src/index.vue.d.ts +88 -699
- package/components/switch/src/types.d.ts +2 -2
- package/components/tables-select/index.cjs +1 -263
- package/components/tables-select/index.mjs +102 -172
- package/components/tables-select/src/ctx.d.ts +76 -91
- package/components/tables-select/src/index.vue.d.ts +228 -4969
- package/components/template-instances-provider/index.cjs +1 -31
- package/components/template-instances-provider/index.mjs +18 -22
- package/components/template-instances-provider/src/index.vue.d.ts +2 -2
- package/components/templates-default/index.cjs +1 -235
- package/components/templates-default/index.mjs +152 -211
- package/components/templates-default/src/ctx.d.ts +5 -3
- package/components/templates-default/src/index.vue.d.ts +7298 -157
- package/components/templates-element-plus/index.cjs +1 -112
- package/components/templates-element-plus/index.mjs +49 -91
- package/components/templates-element-plus/src/ctx.d.ts +1 -1
- package/components/templates-element-plus/src/index.vue.d.ts +65 -258
- package/components/templates-esri/index.cjs +1 -65
- package/components/templates-esri/index.mjs +29 -39
- package/components/templates-esri/src/ctx.d.ts +1 -1
- package/components/templates-esri/src/index.vue.d.ts +1776 -24
- package/components/templates-layout/index.cjs +1 -137
- package/components/templates-layout/index.mjs +78 -116
- package/components/templates-layout/src/ctx.d.ts +1 -1
- package/components/templates-layout/src/index.vue.d.ts +79 -411
- package/components/templates-variant/index.cjs +1 -70
- package/components/templates-variant/index.mjs +33 -43
- package/components/templates-variant/src/ctx.d.ts +1 -1
- package/components/templates-variant/src/index.vue.d.ts +1238 -24
- package/components/time-picker/index.cjs +1 -104
- package/components/time-picker/index.mjs +57 -87
- package/components/time-picker/src/ctx.d.ts +121 -211
- package/components/time-picker/src/index.vue.d.ts +263 -1368
- package/components/upload/index.cjs +1 -663
- package/components/upload/index.mjs +343 -537
- package/components/upload/src/ctx.d.ts +108 -195
- package/components/upload/src/file.vue.d.ts +197 -776
- package/components/upload/src/index.vue.d.ts +689 -1931
- package/components/upload/src/types.d.ts +1 -1
- package/components/upload/src/wraper.vue.d.ts +232 -407
- package/components/upload-plus/index.cjs +21 -18673
- package/components/upload-plus/index.mjs +4598 -18372
- package/components/upload-plus/src/api.d.ts +2 -2
- package/components/upload-plus/src/ctx.d.ts +24 -51
- package/components/upload-plus/src/index.vue.d.ts +51 -1656
- package/components/use-watch.cjs +1 -0
- package/components/van-cascader/index.cjs +1 -125
- package/components/van-cascader/index.mjs +51 -96
- package/components/van-cascader/src/ctx.d.ts +135 -203
- package/components/van-cascader/src/index.vue.d.ts +312 -985
- package/components/var-datetime-picker/index.cjs +1 -333
- package/components/var-datetime-picker/index.mjs +175 -254
- package/components/var-datetime-picker/src/ctx.d.ts +19 -50
- package/components/var-datetime-picker/src/index.vue.d.ts +688 -1115
- package/components/vditor/index.cjs +1 -86
- package/components/vditor/index.mjs +40 -66
- package/components/vditor/src/ctx.d.ts +16 -45
- package/components/vditor/src/index.vue.d.ts +195 -120
- package/composables/element-plus/index.cjs +1 -23
- package/composables/element-plus/index.mjs +14 -18
- package/composables/index.cjs +1 -161
- package/composables/index.d.ts +1 -0
- package/composables/index.mjs +102 -135
- package/composables/useForm.d.ts +2 -2
- package/composables/useRtl.d.ts +18 -0
- package/composables/useSourceManager.d.ts +2 -2
- package/composables/useTemplateInstances.d.ts +3 -3
- package/index.css +1 -562
- package/index.d.ts +0 -3
- package/index.esm.js +23 -48
- package/locale/index.cjs +1 -102
- package/locale/index.mjs +34 -34
- package/locale/lang/index.cjs +1 -2
- package/locale/lang/index.d.ts +1 -0
- package/package.json +14 -85
- package/shared/const/index.cjs +1 -59
- package/shared/const/index.d.ts +1 -1
- package/shared/const/index.mjs +18 -20
- package/shared/element-plus/ctx.d.ts +40 -37
- package/shared/element-plus/index.cjs +1 -211
- package/shared/element-plus/index.mjs +93 -161
- package/shared/element-plus/instances.d.ts +207 -321
- package/shared/form/index.cjs +1 -33
- package/shared/form/index.mjs +23 -25
- package/shared/helper/index.cjs +1 -11
- package/shared/helper/index.mjs +7 -8
- package/shared/index.cjs +1 -8
- package/shared/index.mjs +5 -1
- package/shared/infer-prop/index.cjs +1 -36
- package/shared/infer-prop/index.mjs +22 -28
- package/shared/progress-it/index.cjs +1 -42
- package/shared/progress-it/index.mjs +15 -31
- package/shared/rules/index.cjs +1 -56
- package/shared/rules/index.mjs +19 -18
- package/shared/types/form/index.cjs +1 -2
- package/shared/types/index.cjs +1 -2
- package/shared/types/source/index.cjs +1 -2
- package/shared/types/source-manager/index.cjs +1 -2
- package/shared/upload/index.cjs +1 -774
- package/shared/upload/index.mjs +180 -764
- package/component.d.ts +0 -3
- package/components/_plugin-vue_export-helper.mjs +0 -9
- package/components/card-input-collection/index.css +0 -21
- package/components/cascader/index.css +0 -9
- package/components/checkbox/index.css +0 -30
- package/components/cloneDeep.mjs +0 -2104
- package/components/date-picker-range/index.css +0 -18
- package/components/dialog-input-collection/index.css +0 -21
- package/components/download-plus/index.css +0 -68
- package/components/editable-text/index.css +0 -9
- package/components/esri-input-geojson/index.css +0 -32
- package/components/fieldset/index.css +0 -5
- package/components/form-item/index.css +0 -35
- package/components/index.mjs +0 -378
- package/components/index2.mjs +0 -14
- package/components/information-tag/index.css +0 -6
- package/components/information-templates-default/index.css +0 -16
- package/components/input-array/index.css +0 -14
- package/components/input-collection/index.css +0 -20
- package/components/input-link/index.css +0 -4
- package/components/input-number/index.css +0 -13
- package/components/isObject.mjs +0 -158
- package/components/monaco-editor/index.css +0 -4
- package/components/radio/index.css +0 -40
- package/components/select/index.css +0 -15
- package/components/switch/index.css +0 -10
- package/components/tables-select/index.css +0 -3
- package/components/templates-layout/index.css +0 -3
- package/components/upload/index.css +0 -34
- package/components/upload-plus/index.css +0 -84
- package/components/van-cascader/index.css +0 -6
- package/components/var-datetime-picker/index.css +0 -17
- package/defaults.d.ts +0 -5
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const s=require("./isObject.cjs");var N="[object Symbol]";function A(e){return typeof e=="symbol"||s.isObjectLike(e)&&s.baseGetTag(e)==N}var C=/\s/;function M(e){for(var t=e.length;t--&&C.test(e.charAt(t)););return t}var B=/^\s+/;function R(e){return e&&e.slice(0,M(e)+1).replace(B,"")}var k=NaN,$=/^[-+]0x[0-9a-f]+$/i,F=/^0b[01]+$/i,_=/^0o[0-7]+$/i,q=parseInt;function h(e){if(typeof e=="number")return e;if(A(e))return k;if(s.isObject(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=s.isObject(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=R(e);var r=F.test(e);return r||_.test(e)?q(e.slice(2),r?2:8):$.test(e)?k:+e}var I=function(){return s.root.Date.now()},D="Expected a function",G=Math.max,H=Math.min;function P(e,t,r){var u,o,b,c,i,f,d=0,v=!1,m=!1,T=!0;if(typeof e!="function")throw new TypeError(D);t=h(t)||0,s.isObject(r)&&(v=!!r.leading,m="maxWait"in r,b=m?G(h(r.maxWait)||0,t):b,T="trailing"in r?!!r.trailing:T);function y(n){var a=u,l=o;return u=o=void 0,d=n,c=e.apply(l,a),c}function S(n){return d=n,i=setTimeout(g,t),v?y(n):c}function j(n){var a=n-f,l=n-d,E=t-a;return m?H(E,b-l):E}function O(n){var a=n-f,l=n-d;return f===void 0||a>=t||a<0||m&&l>=b}function g(){var n=I();if(O(n))return p(n);i=setTimeout(g,j(n))}function p(n){return i=void 0,T&&u?y(n):(u=o=void 0,c)}function W(){i!==void 0&&clearTimeout(i),d=0,u=f=o=i=void 0}function L(){return i===void 0?c:p(I())}function x(){var n=I(),a=O(n);if(u=arguments,o=this,f=n,a){if(i===void 0)return S(f);if(m)return clearTimeout(i),i=setTimeout(g,t),y(f)}return i===void 0&&(i=setTimeout(g,t)),c}return x.cancel=W,x.flush=L,x}exports.debounce=P;exports.toNumber=h;
|
|
@@ -1,126 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var vue = require('vue');
|
|
6
|
-
var elementPlus = require('element-plus');
|
|
7
|
-
var utilsVue = require('@vunk/core/shared/utils-vue');
|
|
8
|
-
var formsProvider = require('@vunk/form/components/forms-provider');
|
|
9
|
-
var _pluginVue_exportHelper = require('../_plugin-vue_export-helper.cjs');
|
|
10
|
-
|
|
11
|
-
const props = {
|
|
12
|
-
...elementPlus.dialogProps,
|
|
13
|
-
draggable: {
|
|
14
|
-
type: Boolean,
|
|
15
|
-
default: true
|
|
16
|
-
},
|
|
17
|
-
closeOnClickModal: {
|
|
18
|
-
type: Boolean,
|
|
19
|
-
default: false
|
|
20
|
-
}
|
|
21
|
-
};
|
|
22
|
-
const createBindProps = utilsVue.bindPropsFactory(props);
|
|
23
|
-
const emits = {
|
|
24
|
-
...elementPlus.dialogEmits
|
|
25
|
-
};
|
|
26
|
-
const createOnEmits = utilsVue.onEmitsFactory(emits);
|
|
27
|
-
|
|
28
|
-
var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
29
|
-
...{
|
|
30
|
-
name: "VkfDialog",
|
|
31
|
-
inheritAttrs: false
|
|
32
|
-
},
|
|
33
|
-
__name: "index",
|
|
34
|
-
props: props,
|
|
35
|
-
emits,
|
|
36
|
-
setup(__props, { expose: __expose, emit: __emit }) {
|
|
37
|
-
__expose();
|
|
38
|
-
const props = __props;
|
|
39
|
-
const emit = __emit;
|
|
40
|
-
const coreProps = createBindProps(props);
|
|
41
|
-
const coreEmits = createOnEmits(emit);
|
|
42
|
-
const formsRef = vue.ref();
|
|
43
|
-
const slots = vue.useSlots();
|
|
44
|
-
const hasFooterSlot = vue.computed(() => !!slots.footer);
|
|
45
|
-
vue.watch(() => props.modelValue, () => {
|
|
46
|
-
props.modelValue && vue.nextTick(() => {
|
|
47
|
-
console.log("reset forms", formsRef.value?.forms);
|
|
48
|
-
formsRef.value?.forms.forEach(({ form }) => form.clearValidate?.());
|
|
49
|
-
});
|
|
50
|
-
});
|
|
51
|
-
async function validate() {
|
|
52
|
-
return formsRef.value?.validate() ?? [];
|
|
53
|
-
}
|
|
54
|
-
const elForm = vue.computed(() => formsRef.value?.forms[0]?.form);
|
|
55
|
-
const forms = vue.computed(() => formsRef.value?.forms ?? []);
|
|
56
|
-
const __returned__ = { props, emit, coreProps, coreEmits, formsRef, slots, hasFooterSlot, validate, elForm, forms, get ElDialog() {
|
|
57
|
-
return elementPlus.ElDialog;
|
|
58
|
-
}, get VkfFormsProvider() {
|
|
59
|
-
return formsProvider.VkfFormsProvider;
|
|
60
|
-
}, get VkfFormsView() {
|
|
61
|
-
return formsProvider.VkfFormsView;
|
|
62
|
-
} };
|
|
63
|
-
Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
|
|
64
|
-
return __returned__;
|
|
65
|
-
}
|
|
66
|
-
});
|
|
67
|
-
|
|
68
|
-
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
69
|
-
return vue.openBlock(), vue.createBlock($setup["VkfFormsProvider"], null, {
|
|
70
|
-
default: vue.withCtx(() => [
|
|
71
|
-
vue.createVNode(
|
|
72
|
-
$setup["ElDialog"],
|
|
73
|
-
vue.mergeProps({
|
|
74
|
-
...$setup.coreProps,
|
|
75
|
-
..._ctx.$attrs
|
|
76
|
-
}, vue.toHandlers($setup.coreEmits)),
|
|
77
|
-
vue.createSlots({
|
|
78
|
-
header: vue.withCtx(() => [
|
|
79
|
-
vue.renderSlot(_ctx.$slots, "header")
|
|
80
|
-
]),
|
|
81
|
-
default: vue.withCtx(() => [
|
|
82
|
-
vue.renderSlot(_ctx.$slots, "default"),
|
|
83
|
-
vue.createVNode(
|
|
84
|
-
$setup["VkfFormsView"],
|
|
85
|
-
{ ref: "formsRef" },
|
|
86
|
-
null,
|
|
87
|
-
512
|
|
88
|
-
/* NEED_PATCH */
|
|
89
|
-
)
|
|
90
|
-
]),
|
|
91
|
-
_: 2
|
|
92
|
-
/* DYNAMIC */
|
|
93
|
-
}, [
|
|
94
|
-
$setup.hasFooterSlot ? {
|
|
95
|
-
name: "footer",
|
|
96
|
-
fn: vue.withCtx(() => [
|
|
97
|
-
vue.renderSlot(_ctx.$slots, "footer", {
|
|
98
|
-
forms: $setup.forms,
|
|
99
|
-
validate: $setup.validate,
|
|
100
|
-
elForm: $setup.elForm
|
|
101
|
-
})
|
|
102
|
-
]),
|
|
103
|
-
key: "0"
|
|
104
|
-
} : void 0
|
|
105
|
-
]),
|
|
106
|
-
1040
|
|
107
|
-
/* FULL_PROPS, DYNAMIC_SLOTS */
|
|
108
|
-
)
|
|
109
|
-
]),
|
|
110
|
-
_: 3
|
|
111
|
-
/* FORWARDED */
|
|
112
|
-
});
|
|
113
|
-
}
|
|
114
|
-
var VkfDialog = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/home/runner/work/private-vunk-form/private-vunk-form/packages/components/dialog/src/index.vue"]]);
|
|
115
|
-
|
|
116
|
-
var types = /*#__PURE__*/Object.freeze({
|
|
117
|
-
__proto__: null
|
|
118
|
-
});
|
|
119
|
-
|
|
120
|
-
VkfDialog.install = (app) => {
|
|
121
|
-
app.component(VkfDialog.name || "VkfDialog", VkfDialog);
|
|
122
|
-
};
|
|
123
|
-
|
|
124
|
-
exports.VkfDialog = VkfDialog;
|
|
125
|
-
exports.__VkfDialog = types;
|
|
126
|
-
exports.default = VkfDialog;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),a=require("element-plus"),c=require("@vunk/core/shared/utils-vue"),u=require("@vunk/form/components/forms-provider"),i={...a.dialogProps,draggable:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!1}},S=c.bindPropsFactory(i),f={...a.dialogEmits},b=c.onEmitsFactory(f),d=e.defineComponent({name:"VkfDialog",inheritAttrs:!1,__name:"index",props:i,emits:f,setup(m,{emit:p}){const s=m,v=p,g=S(s),_=b(v),t=e.ref(),V=e.useSlots(),h=e.computed(()=>!!V.footer);e.watch(()=>s.modelValue,()=>{s.modelValue&&e.nextTick(()=>{var o,r;console.log("reset forms",(o=t.value)==null?void 0:o.forms),(r=t.value)==null||r.forms.forEach(({form:l})=>{var n;return(n=l.clearValidate)==null?void 0:n.call(l)})})});async function k(){var o;return((o=t.value)==null?void 0:o.validate())??[]}const y=e.computed(()=>{var o,r;return(r=(o=t.value)==null?void 0:o.forms[0])==null?void 0:r.form}),P=e.computed(()=>{var o;return((o=t.value)==null?void 0:o.forms)??[]});return(o,r)=>(e.openBlock(),e.createBlock(e.unref(u.VkfFormsProvider),null,{default:e.withCtx(()=>[e.createVNode(e.unref(a.ElDialog),e.mergeProps({...e.unref(g),...o.$attrs},e.toHandlers(e.unref(_))),e.createSlots({header:e.withCtx(()=>[e.renderSlot(o.$slots,"header")]),default:e.withCtx(()=>[e.renderSlot(o.$slots,"default"),e.createVNode(e.unref(u.VkfFormsView),{ref_key:"formsRef",ref:t},null,512)]),_:2},[h.value?{name:"footer",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"footer",{forms:P.value,validate:k,elForm:y.value})]),key:"0"}:void 0]),1040)]),_:3}))}}),F=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));exports.VkfDialog=d;exports.__VkfDialog=F;exports.default=d;
|
|
@@ -1,120 +1,86 @@
|
|
|
1
|
-
import { defineComponent, ref, useSlots, computed, watch, nextTick, openBlock, createBlock, withCtx, createVNode, mergeProps
|
|
2
|
-
import { dialogProps, dialogEmits, ElDialog } from
|
|
3
|
-
import { bindPropsFactory, onEmitsFactory } from
|
|
4
|
-
import { VkfFormsProvider, VkfFormsView } from
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const props = {
|
|
8
|
-
...dialogProps,
|
|
1
|
+
import { defineComponent as P, ref as E, useSlots as S, computed as n, watch as b, nextTick as B, openBlock as D, createBlock as O, unref as r, withCtx as s, createVNode as i, mergeProps as $, toHandlers as w, createSlots as C, renderSlot as f } from "vue";
|
|
2
|
+
import { dialogProps as j, dialogEmits as M, ElDialog as R } from "element-plus";
|
|
3
|
+
import { bindPropsFactory as T, onEmitsFactory as x } from "@vunk/core/shared/utils-vue";
|
|
4
|
+
import { VkfFormsProvider as z, VkfFormsView as A } from "@vunk/form/components/forms-provider";
|
|
5
|
+
const m = {
|
|
6
|
+
...j,
|
|
9
7
|
draggable: {
|
|
10
8
|
type: Boolean,
|
|
11
|
-
default:
|
|
9
|
+
default: !0
|
|
12
10
|
},
|
|
13
11
|
closeOnClickModal: {
|
|
14
12
|
type: Boolean,
|
|
15
|
-
default:
|
|
13
|
+
default: !1
|
|
16
14
|
}
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
const createOnEmits = onEmitsFactory(emits);
|
|
23
|
-
|
|
24
|
-
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
25
|
-
...{
|
|
26
|
-
name: "VkfDialog",
|
|
27
|
-
inheritAttrs: false
|
|
28
|
-
},
|
|
15
|
+
}, H = T(m), u = {
|
|
16
|
+
...M
|
|
17
|
+
}, N = x(u), K = /* @__PURE__ */ P({
|
|
18
|
+
name: "VkfDialog",
|
|
19
|
+
inheritAttrs: !1,
|
|
29
20
|
__name: "index",
|
|
30
|
-
props:
|
|
31
|
-
emits,
|
|
32
|
-
setup(
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
watch(() => props.modelValue, () => {
|
|
42
|
-
props.modelValue && nextTick(() => {
|
|
43
|
-
console.log("reset forms", formsRef.value?.forms);
|
|
44
|
-
formsRef.value?.forms.forEach(({ form }) => form.clearValidate?.());
|
|
21
|
+
props: m,
|
|
22
|
+
emits: u,
|
|
23
|
+
setup(d, { emit: p }) {
|
|
24
|
+
const a = d, v = p, g = H(a), k = N(v), o = E(), _ = S(), y = n(() => !!_.footer);
|
|
25
|
+
b(() => a.modelValue, () => {
|
|
26
|
+
a.modelValue && B(() => {
|
|
27
|
+
var e, t;
|
|
28
|
+
console.log("reset forms", (e = o.value) == null ? void 0 : e.forms), (t = o.value) == null || t.forms.forEach(({ form: l }) => {
|
|
29
|
+
var c;
|
|
30
|
+
return (c = l.clearValidate) == null ? void 0 : c.call(l);
|
|
31
|
+
});
|
|
45
32
|
});
|
|
46
33
|
});
|
|
47
|
-
async function
|
|
48
|
-
|
|
34
|
+
async function V() {
|
|
35
|
+
var e;
|
|
36
|
+
return ((e = o.value) == null ? void 0 : e.validate()) ?? [];
|
|
49
37
|
}
|
|
50
|
-
const
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
return
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
})
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
return openBlock(), createBlock($setup["VkfFormsProvider"], null, {
|
|
66
|
-
default: withCtx(() => [
|
|
67
|
-
createVNode(
|
|
68
|
-
$setup["ElDialog"],
|
|
69
|
-
mergeProps({
|
|
70
|
-
...$setup.coreProps,
|
|
71
|
-
..._ctx.$attrs
|
|
72
|
-
}, toHandlers($setup.coreEmits)),
|
|
73
|
-
createSlots({
|
|
74
|
-
header: withCtx(() => [
|
|
75
|
-
renderSlot(_ctx.$slots, "header")
|
|
38
|
+
const h = n(() => {
|
|
39
|
+
var e, t;
|
|
40
|
+
return (t = (e = o.value) == null ? void 0 : e.forms[0]) == null ? void 0 : t.form;
|
|
41
|
+
}), F = n(() => {
|
|
42
|
+
var e;
|
|
43
|
+
return ((e = o.value) == null ? void 0 : e.forms) ?? [];
|
|
44
|
+
});
|
|
45
|
+
return (e, t) => (D(), O(r(z), null, {
|
|
46
|
+
default: s(() => [
|
|
47
|
+
i(r(R), $({
|
|
48
|
+
...r(g),
|
|
49
|
+
...e.$attrs
|
|
50
|
+
}, w(r(k))), C({
|
|
51
|
+
header: s(() => [
|
|
52
|
+
f(e.$slots, "header")
|
|
76
53
|
]),
|
|
77
|
-
default:
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
512
|
|
84
|
-
/* NEED_PATCH */
|
|
85
|
-
)
|
|
54
|
+
default: s(() => [
|
|
55
|
+
f(e.$slots, "default"),
|
|
56
|
+
i(r(A), {
|
|
57
|
+
ref_key: "formsRef",
|
|
58
|
+
ref: o
|
|
59
|
+
}, null, 512)
|
|
86
60
|
]),
|
|
87
61
|
_: 2
|
|
88
|
-
/* DYNAMIC */
|
|
89
62
|
}, [
|
|
90
|
-
|
|
63
|
+
y.value ? {
|
|
91
64
|
name: "footer",
|
|
92
|
-
fn:
|
|
93
|
-
|
|
94
|
-
forms:
|
|
95
|
-
validate:
|
|
96
|
-
elForm:
|
|
65
|
+
fn: s(() => [
|
|
66
|
+
f(e.$slots, "footer", {
|
|
67
|
+
forms: F.value,
|
|
68
|
+
validate: V,
|
|
69
|
+
elForm: h.value
|
|
97
70
|
})
|
|
98
71
|
]),
|
|
99
72
|
key: "0"
|
|
100
73
|
} : void 0
|
|
101
|
-
]),
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
/* FORWARDED */
|
|
108
|
-
});
|
|
109
|
-
}
|
|
110
|
-
var VkfDialog = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/home/runner/work/private-vunk-form/private-vunk-form/packages/components/dialog/src/index.vue"]]);
|
|
111
|
-
|
|
112
|
-
var types = /*#__PURE__*/Object.freeze({
|
|
74
|
+
]), 1040)
|
|
75
|
+
]),
|
|
76
|
+
_: 3
|
|
77
|
+
}));
|
|
78
|
+
}
|
|
79
|
+
}), L = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
113
80
|
__proto__: null
|
|
114
|
-
});
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
81
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
82
|
+
export {
|
|
83
|
+
K as VkfDialog,
|
|
84
|
+
L as __VkfDialog,
|
|
85
|
+
K as default
|
|
118
86
|
};
|
|
119
|
-
|
|
120
|
-
export { VkfDialog, types as __VkfDialog, VkfDialog as default };
|
|
@@ -8,14 +8,7 @@ export declare const props: {
|
|
|
8
8
|
default: boolean;
|
|
9
9
|
};
|
|
10
10
|
appendToBody: BooleanConstructor;
|
|
11
|
-
appendTo:
|
|
12
|
-
readonly type: import("vue").PropType<string | HTMLElement>;
|
|
13
|
-
readonly required: false;
|
|
14
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
15
|
-
__epPropKey: true;
|
|
16
|
-
} & {
|
|
17
|
-
readonly default: "body";
|
|
18
|
-
};
|
|
11
|
+
appendTo: import("element-plus/es/utils/index.mjs").EpPropFinalized<(new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement) | ((new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement) | null)[], unknown, unknown, "body", boolean>;
|
|
19
12
|
beforeClose: {
|
|
20
13
|
readonly type: import("vue").PropType<import("element-plus").DialogBeforeCloseFn>;
|
|
21
14
|
readonly required: false;
|
|
@@ -23,47 +16,12 @@ export declare const props: {
|
|
|
23
16
|
__epPropKey: true;
|
|
24
17
|
};
|
|
25
18
|
destroyOnClose: BooleanConstructor;
|
|
26
|
-
closeOnPressEscape:
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
30
|
-
__epPropKey: true;
|
|
31
|
-
} & {
|
|
32
|
-
readonly default: true;
|
|
33
|
-
};
|
|
34
|
-
lockScroll: {
|
|
35
|
-
readonly type: import("vue").PropType<boolean>;
|
|
36
|
-
readonly required: false;
|
|
37
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
38
|
-
__epPropKey: true;
|
|
39
|
-
} & {
|
|
40
|
-
readonly default: true;
|
|
41
|
-
};
|
|
42
|
-
modal: {
|
|
43
|
-
readonly type: import("vue").PropType<boolean>;
|
|
44
|
-
readonly required: false;
|
|
45
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
46
|
-
__epPropKey: true;
|
|
47
|
-
} & {
|
|
48
|
-
readonly default: true;
|
|
49
|
-
};
|
|
19
|
+
closeOnPressEscape: import("element-plus/es/utils/index.mjs").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
20
|
+
lockScroll: import("element-plus/es/utils/index.mjs").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
21
|
+
modal: import("element-plus/es/utils/index.mjs").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
50
22
|
modalPenetrable: BooleanConstructor;
|
|
51
|
-
openDelay:
|
|
52
|
-
|
|
53
|
-
readonly required: false;
|
|
54
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
55
|
-
__epPropKey: true;
|
|
56
|
-
} & {
|
|
57
|
-
readonly default: 0;
|
|
58
|
-
};
|
|
59
|
-
closeDelay: {
|
|
60
|
-
readonly type: import("vue").PropType<number>;
|
|
61
|
-
readonly required: false;
|
|
62
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
63
|
-
__epPropKey: true;
|
|
64
|
-
} & {
|
|
65
|
-
readonly default: 0;
|
|
66
|
-
};
|
|
23
|
+
openDelay: import("element-plus/es/utils/index.mjs").EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
|
|
24
|
+
closeDelay: import("element-plus/es/utils/index.mjs").EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
|
|
67
25
|
top: {
|
|
68
26
|
readonly type: import("vue").PropType<string>;
|
|
69
27
|
readonly required: false;
|
|
@@ -76,7 +34,7 @@ export declare const props: {
|
|
|
76
34
|
bodyClass: StringConstructor;
|
|
77
35
|
footerClass: StringConstructor;
|
|
78
36
|
width: {
|
|
79
|
-
readonly type: import("vue").PropType<
|
|
37
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>>;
|
|
80
38
|
readonly required: false;
|
|
81
39
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
82
40
|
__epPropKey: true;
|
|
@@ -88,72 +46,23 @@ export declare const props: {
|
|
|
88
46
|
__epPropKey: true;
|
|
89
47
|
};
|
|
90
48
|
trapFocus: BooleanConstructor;
|
|
91
|
-
headerAriaLevel:
|
|
92
|
-
|
|
93
|
-
readonly required: false;
|
|
94
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
95
|
-
__epPropKey: true;
|
|
96
|
-
} & {
|
|
97
|
-
readonly default: "2";
|
|
98
|
-
};
|
|
99
|
-
transition: {
|
|
100
|
-
readonly type: import("vue").PropType<unknown>;
|
|
101
|
-
readonly required: false;
|
|
102
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
103
|
-
__epPropKey: true;
|
|
104
|
-
} & {
|
|
105
|
-
readonly default: undefined;
|
|
106
|
-
};
|
|
49
|
+
headerAriaLevel: import("element-plus/es/utils/index.mjs").EpPropFinalized<StringConstructor, unknown, unknown, "2", boolean>;
|
|
50
|
+
transition: import("element-plus/es/utils/index.mjs").EpPropFinalized<(new (...args: any[]) => string | import("vue").TransitionProps) | (() => import("element-plus").DialogTransition) | ((new (...args: any[]) => string | import("vue").TransitionProps) | (() => import("element-plus").DialogTransition) | null)[], unknown, unknown, undefined, boolean>;
|
|
107
51
|
center: BooleanConstructor;
|
|
108
|
-
alignCenter:
|
|
109
|
-
readonly type: import("vue").PropType<boolean>;
|
|
110
|
-
readonly required: false;
|
|
111
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
112
|
-
__epPropKey: true;
|
|
113
|
-
} & {
|
|
114
|
-
readonly default: undefined;
|
|
115
|
-
};
|
|
52
|
+
alignCenter: import("element-plus/es/utils/index.mjs").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
116
53
|
closeIcon: {
|
|
117
|
-
readonly type: import("vue").PropType<unknown
|
|
118
|
-
readonly required: false;
|
|
119
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
120
|
-
__epPropKey: true;
|
|
121
|
-
};
|
|
122
|
-
overflow: {
|
|
123
|
-
readonly type: import("vue").PropType<boolean>;
|
|
54
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions, {}, any>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions, {}, any>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions, {}, any>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions, {}, any>) | null)[], unknown, unknown>>;
|
|
124
55
|
readonly required: false;
|
|
125
56
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
126
57
|
__epPropKey: true;
|
|
127
|
-
} & {
|
|
128
|
-
readonly default: undefined;
|
|
129
58
|
};
|
|
59
|
+
overflow: import("element-plus/es/utils/index.mjs").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
130
60
|
fullscreen: BooleanConstructor;
|
|
131
|
-
showClose:
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
135
|
-
__epPropKey: true;
|
|
136
|
-
} & {
|
|
137
|
-
readonly default: true;
|
|
138
|
-
};
|
|
139
|
-
title: {
|
|
140
|
-
readonly type: import("vue").PropType<string>;
|
|
141
|
-
readonly required: false;
|
|
142
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
143
|
-
__epPropKey: true;
|
|
144
|
-
} & {
|
|
145
|
-
readonly default: "";
|
|
146
|
-
};
|
|
147
|
-
ariaLevel: {
|
|
148
|
-
readonly type: import("vue").PropType<string>;
|
|
149
|
-
readonly required: false;
|
|
150
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
151
|
-
__epPropKey: true;
|
|
152
|
-
} & {
|
|
153
|
-
readonly default: "2";
|
|
154
|
-
};
|
|
61
|
+
showClose: import("element-plus/es/utils/index.mjs").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
62
|
+
title: import("element-plus/es/utils/index.mjs").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
63
|
+
ariaLevel: import("element-plus/es/utils/index.mjs").EpPropFinalized<StringConstructor, unknown, unknown, "2", boolean>;
|
|
155
64
|
};
|
|
156
|
-
export declare const createBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"top", keyof T2> | Extract<"
|
|
65
|
+
export declare const createBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"top", keyof T2> | Extract<"center", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"title", keyof T2> | Extract<"width", keyof T2> | Extract<"appendTo", keyof T2> | Extract<"transition", keyof T2> | Extract<"draggable", keyof T2> | Extract<"showClose", keyof T2> | Extract<"zIndex", keyof T2> | Extract<"headerClass", keyof T2> | Extract<"bodyClass", keyof T2> | Extract<"footerClass", keyof T2> | Extract<"overflow", keyof T2> | Extract<"fullscreen", keyof T2> | Extract<"modalClass", keyof T2> | Extract<"appendToBody", keyof T2> | Extract<"closeOnClickModal", keyof T2> | Extract<"beforeClose", keyof T2> | Extract<"destroyOnClose", keyof T2> | Extract<"closeOnPressEscape", keyof T2> | Extract<"lockScroll", keyof T2> | Extract<"modal", keyof T2> | Extract<"modalPenetrable", keyof T2> | Extract<"openDelay", keyof T2> | Extract<"closeDelay", keyof T2> | Extract<"trapFocus", keyof T2> | Extract<"headerAriaLevel", keyof T2> | Extract<"alignCenter", keyof T2> | Extract<"closeIcon", keyof T2> | Extract<"ariaLevel", keyof T2>)[]>(propsArg: T2, excludes?: EX | undefined) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"top", keyof T2>, KE> | Exclude<Extract<"center", keyof T2>, KE> | Exclude<Extract<"modelValue", keyof T2>, KE> | Exclude<Extract<"title", keyof T2>, KE> | Exclude<Extract<"width", keyof T2>, KE> | Exclude<Extract<"appendTo", keyof T2>, KE> | Exclude<Extract<"transition", keyof T2>, KE> | Exclude<Extract<"draggable", keyof T2>, KE> | Exclude<Extract<"showClose", keyof T2>, KE> | Exclude<Extract<"zIndex", keyof T2>, KE> | Exclude<Extract<"headerClass", keyof T2>, KE> | Exclude<Extract<"bodyClass", keyof T2>, KE> | Exclude<Extract<"footerClass", keyof T2>, KE> | Exclude<Extract<"overflow", keyof T2>, KE> | Exclude<Extract<"fullscreen", keyof T2>, KE> | Exclude<Extract<"modalClass", keyof T2>, KE> | Exclude<Extract<"appendToBody", keyof T2>, KE> | Exclude<Extract<"closeOnClickModal", keyof T2>, KE> | Exclude<Extract<"beforeClose", keyof T2>, KE> | Exclude<Extract<"destroyOnClose", keyof T2>, KE> | Exclude<Extract<"closeOnPressEscape", keyof T2>, KE> | Exclude<Extract<"lockScroll", keyof T2>, KE> | Exclude<Extract<"modal", keyof T2>, KE> | Exclude<Extract<"modalPenetrable", keyof T2>, KE> | Exclude<Extract<"openDelay", keyof T2>, KE> | Exclude<Extract<"closeDelay", keyof T2>, KE> | Exclude<Extract<"trapFocus", keyof T2>, KE> | Exclude<Extract<"headerAriaLevel", keyof T2>, KE> | Exclude<Extract<"alignCenter", keyof T2>, KE> | Exclude<Extract<"closeIcon", keyof T2>, KE> | Exclude<Extract<"ariaLevel", keyof T2>, KE> : Extract<"top", keyof T2> | Extract<"center", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"title", keyof T2> | Extract<"width", keyof T2> | Extract<"appendTo", keyof T2> | Extract<"transition", keyof T2> | Extract<"draggable", keyof T2> | Extract<"showClose", keyof T2> | Extract<"zIndex", keyof T2> | Extract<"headerClass", keyof T2> | Extract<"bodyClass", keyof T2> | Extract<"footerClass", keyof T2> | Extract<"overflow", keyof T2> | Extract<"fullscreen", keyof T2> | Extract<"modalClass", keyof T2> | Extract<"appendToBody", keyof T2> | Extract<"closeOnClickModal", keyof T2> | Extract<"beforeClose", keyof T2> | Extract<"destroyOnClose", keyof T2> | Extract<"closeOnPressEscape", keyof T2> | Extract<"lockScroll", keyof T2> | Extract<"modal", keyof T2> | Extract<"modalPenetrable", keyof T2> | Extract<"openDelay", keyof T2> | Extract<"closeDelay", keyof T2> | Extract<"trapFocus", keyof T2> | Extract<"headerAriaLevel", keyof T2> | Extract<"alignCenter", keyof T2> | Extract<"closeIcon", keyof T2> | Extract<"ariaLevel", keyof T2>]: { [k in Extract<"top", keyof T2> | Extract<"center", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"title", keyof T2> | Extract<"width", keyof T2> | Extract<"appendTo", keyof T2> | Extract<"transition", keyof T2> | Extract<"draggable", keyof T2> | Extract<"showClose", keyof T2> | Extract<"zIndex", keyof T2> | Extract<"headerClass", keyof T2> | Extract<"bodyClass", keyof T2> | Extract<"footerClass", keyof T2> | Extract<"overflow", keyof T2> | Extract<"fullscreen", keyof T2> | Extract<"modalClass", keyof T2> | Extract<"appendToBody", keyof T2> | Extract<"closeOnClickModal", keyof T2> | Extract<"beforeClose", keyof T2> | Extract<"destroyOnClose", keyof T2> | Extract<"closeOnPressEscape", keyof T2> | Extract<"lockScroll", keyof T2> | Extract<"modal", keyof T2> | Extract<"modalPenetrable", keyof T2> | Extract<"openDelay", keyof T2> | Extract<"closeDelay", keyof T2> | Extract<"trapFocus", keyof T2> | Extract<"headerAriaLevel", keyof T2> | Extract<"alignCenter", keyof T2> | Extract<"closeIcon", keyof T2> | Extract<"ariaLevel", keyof T2>]: T2[k]; }[P]; }>;
|
|
157
66
|
export declare const emits: {
|
|
158
67
|
open: () => boolean;
|
|
159
68
|
opened: () => boolean;
|
|
@@ -163,7 +72,7 @@ export declare const emits: {
|
|
|
163
72
|
openAutoFocus: () => boolean;
|
|
164
73
|
closeAutoFocus: () => boolean;
|
|
165
74
|
};
|
|
166
|
-
export declare const createOnEmits: <T2 extends import("@vunk/core").AnyFunc, EX extends ("
|
|
75
|
+
export declare const createOnEmits: <T2 extends import("@vunk/core").AnyFunc, EX extends ("update:modelValue" | "close" | "open" | "opened" | "closed" | "openAutoFocus" | "closeAutoFocus")[]>(emit: T2, excludes?: EX | undefined) => { [P in EX extends (infer KE)[] ? Exclude<"update:modelValue", KE> | Exclude<"close", KE> | Exclude<"open", KE> | Exclude<"opened", KE> | Exclude<"closed", KE> | Exclude<"openAutoFocus", KE> | Exclude<"closeAutoFocus", KE> : "update:modelValue" | "close" | "open" | "opened" | "closed" | "openAutoFocus" | "closeAutoFocus"]: {
|
|
167
76
|
open: (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
168
77
|
opened: (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
169
78
|
close: (...e: import("@vunk/core").RestParameters<T2>) => void;
|