@vunk/form 1.3.1 → 1.4.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/form-item-renderer/index.cjs +9 -14
- package/components/form-item-renderer/index.mjs +10 -16
- package/components/form-item-renderer/src/symbols.d.ts +1 -0
- package/components/index2.cjs +38 -0
- package/components/index2.mjs +37 -1
- package/components/input-collection/index.cjs +2214 -0
- package/components/input-collection/index.css +11 -0
- package/components/input-collection/index.d.ts +4 -0
- package/components/input-collection/index.mjs +2208 -0
- package/components/input-collection/src/ctx.d.ts +65 -0
- package/components/input-collection/src/index.vue.d.ts +1149 -0
- package/components/input-collection/src/types.d.ts +3 -0
- package/components/monaco-editor/index.css +1 -0
- package/components/monaco-editor/src/index.vue.d.ts +1 -1
- package/components/select/src/index.vue.d.ts +4 -4
- package/components/template-instances-provider/index.cjs +26 -0
- package/components/template-instances-provider/index.d.ts +3 -0
- package/components/template-instances-provider/index.mjs +21 -0
- package/components/template-instances-provider/src/index.vue.d.ts +4 -0
- package/components/upload/index.mjs +1 -1
- package/components/upload-plus/index.mjs +1 -1
- package/index.css +13 -0
- package/package.json +14 -1
|
@@ -154,8 +154,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
154
154
|
showMessage: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
155
155
|
modelValue: string;
|
|
156
156
|
defaultOptions: import("monaco-editor").editor.IStandaloneEditorConstructionOptions;
|
|
157
|
-
readOnly: boolean;
|
|
158
157
|
height: string;
|
|
158
|
+
readOnly: boolean;
|
|
159
159
|
}, {}, {
|
|
160
160
|
VkMonacoEditor: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
161
161
|
modelValue: {
|
|
@@ -161,8 +161,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
161
161
|
clearIcon: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
162
162
|
autocomplete: string;
|
|
163
163
|
suffixIcon: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
164
|
-
|
|
164
|
+
persistent: boolean;
|
|
165
165
|
effect: string;
|
|
166
|
+
automaticDropdown: boolean;
|
|
166
167
|
allowCreate: boolean;
|
|
167
168
|
remote: boolean;
|
|
168
169
|
loadingText: string;
|
|
@@ -173,7 +174,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
173
174
|
defaultFirstOption: boolean;
|
|
174
175
|
reserveKeyword: boolean;
|
|
175
176
|
valueKey: string;
|
|
176
|
-
persistent: boolean;
|
|
177
177
|
fitInputWidth: boolean;
|
|
178
178
|
}>;
|
|
179
179
|
selectOnEmits: {};
|
|
@@ -477,15 +477,15 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
477
477
|
clearIcon: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
478
478
|
autocomplete: string;
|
|
479
479
|
suffixIcon: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
480
|
-
|
|
480
|
+
persistent: boolean;
|
|
481
481
|
effect: string;
|
|
482
|
+
automaticDropdown: boolean;
|
|
482
483
|
allowCreate: boolean;
|
|
483
484
|
remote: boolean;
|
|
484
485
|
multipleLimit: number;
|
|
485
486
|
defaultFirstOption: boolean;
|
|
486
487
|
reserveKeyword: boolean;
|
|
487
488
|
valueKey: string;
|
|
488
|
-
persistent: boolean;
|
|
489
489
|
fitInputWidth: boolean;
|
|
490
490
|
selectSlots: import("./types").SelectSlots;
|
|
491
491
|
}, {}, {
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var vue = require('vue');
|
|
6
|
+
var formItemRenderer = require('@vunk/form/components/form-item-renderer');
|
|
7
|
+
var _pluginVue_exportHelper = require('../_plugin-vue_export-helper.cjs');
|
|
8
|
+
|
|
9
|
+
var _sfc_main = vue.defineComponent({
|
|
10
|
+
name: "VkfTemplateInstancesProvider",
|
|
11
|
+
setup(_, { slots }) {
|
|
12
|
+
const templateInstances = vue.shallowReactive({});
|
|
13
|
+
vue.provide(formItemRenderer.parentTemplateInstancesSymbol, templateInstances);
|
|
14
|
+
vue.provide(formItemRenderer.S_TEMPLATE_INSTANCES, templateInstances);
|
|
15
|
+
return () => slots.default?.();
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
var VkfTemplateInstancesProvider = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["__file", "/home/runner/work/private-vunk-form/private-vunk-form/packages/components/template-instances-provider/src/index.vue"]]);
|
|
20
|
+
|
|
21
|
+
VkfTemplateInstancesProvider.install = (app) => {
|
|
22
|
+
app.component(VkfTemplateInstancesProvider.name || "VkfTemplateInstancesProvider", VkfTemplateInstancesProvider);
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
exports.VkfTemplateInstancesProvider = VkfTemplateInstancesProvider;
|
|
26
|
+
exports.default = VkfTemplateInstancesProvider;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { defineComponent, shallowReactive, provide } from 'vue';
|
|
2
|
+
import { parentTemplateInstancesSymbol, S_TEMPLATE_INSTANCES } from '@vunk/form/components/form-item-renderer';
|
|
3
|
+
import { _ as _export_sfc } from '../_plugin-vue_export-helper.mjs';
|
|
4
|
+
|
|
5
|
+
var _sfc_main = defineComponent({
|
|
6
|
+
name: "VkfTemplateInstancesProvider",
|
|
7
|
+
setup(_, { slots }) {
|
|
8
|
+
const templateInstances = shallowReactive({});
|
|
9
|
+
provide(parentTemplateInstancesSymbol, templateInstances);
|
|
10
|
+
provide(S_TEMPLATE_INSTANCES, templateInstances);
|
|
11
|
+
return () => slots.default?.();
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
var VkfTemplateInstancesProvider = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/home/runner/work/private-vunk-form/private-vunk-form/packages/components/template-instances-provider/src/index.vue"]]);
|
|
16
|
+
|
|
17
|
+
VkfTemplateInstancesProvider.install = (app) => {
|
|
18
|
+
app.component(VkfTemplateInstancesProvider.name || "VkfTemplateInstancesProvider", VkfTemplateInstancesProvider);
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export { VkfTemplateInstancesProvider, VkfTemplateInstancesProvider as default };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
2
|
+
[key: string]: any;
|
|
3
|
+
}>[], {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
4
|
+
export default _default;
|
|
@@ -4,7 +4,7 @@ import { uploadProps, ElProgress, ElIcon, useNamespace, useLocale, ElUpload, ElL
|
|
|
4
4
|
import { defineComponent, resolveComponent, openBlock, createElementBlock, Fragment, createCommentVNode, normalizeClass, createBlock, createElementVNode, withModifiers, createVNode, withCtx, toDisplayString, normalizeStyle, shallowRef, normalizeProps, guardReactiveProps, mergeProps, createSlots, renderSlot, createTextVNode } from 'vue';
|
|
5
5
|
import { pickObject } from '@vunk/core/shared/utils-object';
|
|
6
6
|
import { createUploadBindProps } from '@vunk/form/shared/element-plus';
|
|
7
|
-
import {
|
|
7
|
+
import { g as check_default, z as zoom_in_default, h as delete_default, i as close_default, j as circle_check_default, k as document_default, d as download_default } from '../index2.mjs';
|
|
8
8
|
import { NOOP } from '@vunk/core/shared/utils-function';
|
|
9
9
|
import { RestFetch } from '@vunk/core/shared/utils-fetch';
|
|
10
10
|
import { _ as _export_sfc } from '../_plugin-vue_export-helper.mjs';
|
|
@@ -7,7 +7,7 @@ import '@vunk/core/shared/utils-promise';
|
|
|
7
7
|
import { isPlainObject as isPlainObject$1 } from '@vunk/core/shared/utils-object';
|
|
8
8
|
import { g as getToken } from '../index.mjs';
|
|
9
9
|
import { restFetch as restFetch$1 } from '@skzz/platform/shared/fetch/platform';
|
|
10
|
-
import { s as success_filled_default, c as circle_close_filled_default,
|
|
10
|
+
import { s as success_filled_default, c as circle_close_filled_default, l as upload_filled_default } from '../index2.mjs';
|
|
11
11
|
import { useModelComputed } from '@vunk/core/composables';
|
|
12
12
|
import { ToggleHandler } from '@vunk/core/shared/utils-class';
|
|
13
13
|
import { _ as _export_sfc } from '../_plugin-vue_export-helper.mjs';
|
package/index.css
CHANGED
|
@@ -225,6 +225,18 @@
|
|
|
225
225
|
flex: 1;
|
|
226
226
|
}
|
|
227
227
|
|
|
228
|
+
.vkf-input-collection-options{
|
|
229
|
+
width: 100%;
|
|
230
|
+
display: flex;
|
|
231
|
+
justify-content: flex-end;
|
|
232
|
+
}
|
|
233
|
+
.vkf-input-collection-table{
|
|
234
|
+
margin-top: var(--gap-m, 8px);
|
|
235
|
+
}
|
|
236
|
+
.vkf-input-collection-table .vkf-form-item {
|
|
237
|
+
margin-bottom: 0;
|
|
238
|
+
}
|
|
239
|
+
|
|
228
240
|
.vkf-input-link-icon{
|
|
229
241
|
color: var(--el-color-primary);
|
|
230
242
|
cursor: inherit;
|
|
@@ -249,6 +261,7 @@
|
|
|
249
261
|
|
|
250
262
|
.vkf-form-item .vk-monaco-editor{
|
|
251
263
|
margin-top: 0.5em;
|
|
264
|
+
width: 100%;
|
|
252
265
|
}
|
|
253
266
|
|
|
254
267
|
.el-radio-group.is-readonly,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vunk/form",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.esm.js",
|
|
6
6
|
"scripts": {
|
|
@@ -145,6 +145,11 @@
|
|
|
145
145
|
"types": "./components/templates-default/index.d.ts",
|
|
146
146
|
"require": "./components/templates-default/index.cjs"
|
|
147
147
|
},
|
|
148
|
+
"./components/template-instances-provider": {
|
|
149
|
+
"import": "./components/template-instances-provider/index.mjs",
|
|
150
|
+
"types": "./components/template-instances-provider/index.d.ts",
|
|
151
|
+
"require": "./components/template-instances-provider/index.cjs"
|
|
152
|
+
},
|
|
148
153
|
"./components/switch": {
|
|
149
154
|
"import": "./components/switch/index.mjs",
|
|
150
155
|
"types": "./components/switch/index.d.ts",
|
|
@@ -180,6 +185,11 @@
|
|
|
180
185
|
"types": "./components/input-link/index.d.ts",
|
|
181
186
|
"require": "./components/input-link/index.cjs"
|
|
182
187
|
},
|
|
188
|
+
"./components/input-collection": {
|
|
189
|
+
"import": "./components/input-collection/index.mjs",
|
|
190
|
+
"types": "./components/input-collection/index.d.ts",
|
|
191
|
+
"require": "./components/input-collection/index.cjs"
|
|
192
|
+
},
|
|
183
193
|
"./components/input": {
|
|
184
194
|
"import": "./components/input/index.mjs",
|
|
185
195
|
"types": "./components/input/index.d.ts",
|
|
@@ -296,6 +306,9 @@
|
|
|
296
306
|
"./components/input-link/index.css": {
|
|
297
307
|
"import": "./components/input-link/index.css"
|
|
298
308
|
},
|
|
309
|
+
"./components/input-collection/index.css": {
|
|
310
|
+
"import": "./components/input-collection/index.css"
|
|
311
|
+
},
|
|
299
312
|
"./components/geoinput-update/index.css": {
|
|
300
313
|
"import": "./components/geoinput-update/index.css"
|
|
301
314
|
},
|