@farris/ui-vue 1.2.7 → 1.2.9
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/accordion/index.esm.js +136 -136
- package/components/accordion/index.umd.cjs +1 -1
- package/components/avatar/index.esm.js +418 -456
- package/components/avatar/index.umd.cjs +1 -1
- package/components/border-editor/index.esm.js +4 -4
- package/components/border-editor/index.umd.cjs +1 -1
- package/components/button/index.esm.js +1 -1
- package/components/button/index.umd.cjs +1 -1
- package/components/button-edit/index.esm.js +363 -436
- package/components/button-edit/index.umd.cjs +1 -1
- package/components/button-group/index.esm.js +5 -5
- package/components/button-group/index.umd.cjs +1 -1
- package/components/calendar/index.esm.js +417 -417
- package/components/calendar/index.umd.cjs +1 -1
- package/components/capsule/index.esm.js +176 -176
- package/components/capsule/index.umd.cjs +1 -1
- package/components/checkbox/index.esm.js +557 -594
- package/components/checkbox/index.umd.cjs +1 -1
- package/components/color-picker/index.esm.js +119 -119
- package/components/color-picker/index.umd.cjs +2 -2
- package/components/combo-list/index.esm.js +502 -535
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/combo-tree/index.esm.js +69 -69
- package/components/combo-tree/index.umd.cjs +1 -1
- package/components/component/index.esm.js +387 -275
- package/components/component/index.umd.cjs +1 -1
- package/components/condition/index.esm.js +1219 -983
- package/components/condition/index.umd.cjs +1 -1
- package/components/content-container/index.esm.js +292 -219
- package/components/content-container/index.umd.cjs +1 -1
- package/components/data-grid/index.css +1 -1
- package/components/data-grid/index.esm.js +5718 -5546
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/data-view/index.esm.js +3291 -2930
- package/components/data-view/index.umd.cjs +1 -1
- package/components/date-picker/index.esm.js +2650 -2682
- package/components/date-picker/index.umd.cjs +1 -1
- package/components/dependent-base/style.js +1 -0
- package/components/dependent-fluid/style.js +1 -0
- package/components/dependent-icon/style.js +1 -0
- package/components/dependent-input/style.js +1 -0
- package/components/dependent-table/style.js +1 -0
- package/components/designer-canvas/index.css +1 -1
- package/components/designer-canvas/index.esm.js +945 -932
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/designer-outline/index.css +1 -1
- package/components/designer-outline/index.esm.js +175 -133
- package/components/designer-outline/index.umd.cjs +1 -1
- package/components/designer-toolbox/index.esm.js +36 -12
- package/components/designer-toolbox/index.umd.cjs +1 -1
- package/components/discussion-editor/index.esm.js +1 -1
- package/components/discussion-editor/index.umd.cjs +1 -1
- package/components/dropdown/index.esm.js +246 -246
- package/components/dropdown/index.umd.cjs +2 -2
- package/components/dynamic-form/index.esm.js +1319 -1172
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/dynamic-resolver/index.esm.js +119 -82
- package/components/dynamic-resolver/index.umd.cjs +1 -1
- package/components/dynamic-view/index.esm.js +258 -249
- package/components/dynamic-view/index.umd.cjs +1 -1
- package/components/enum-editor/index.esm.js +3 -3
- package/components/enum-editor/index.umd.cjs +1 -1
- package/components/events-editor/index.esm.js +569 -514
- package/components/events-editor/index.umd.cjs +1 -1
- package/components/expression-editor/index.esm.js +104 -104
- package/components/expression-editor/index.umd.cjs +1 -1
- package/components/external-container/index.css +1 -1
- package/components/external-container/index.esm.js +3122 -2686
- package/components/external-container/index.umd.cjs +1 -1
- package/components/field-selector/index.css +1 -1
- package/components/field-selector/index.esm.js +6780 -6608
- package/components/field-selector/index.umd.cjs +1 -1
- package/components/filter-bar/index.css +1 -1
- package/components/filter-bar/index.esm.js +1466 -1523
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/flow-canvas/index.css +1 -1
- package/components/flow-canvas/index.esm.js +1048 -1035
- package/components/flow-canvas/index.umd.cjs +1 -1
- package/components/image-cropper/index.esm.js +422 -422
- package/components/image-cropper/index.umd.cjs +1 -1
- package/components/input-group/index.esm.js +674 -716
- package/components/input-group/index.umd.cjs +1 -1
- package/components/layout/index.esm.js +291 -291
- package/components/layout/index.umd.cjs +1 -1
- package/components/list-nav/index.esm.js +303 -230
- package/components/list-nav/index.umd.cjs +1 -1
- package/components/list-view/index.css +1 -1
- package/components/list-view/index.esm.js +2486 -2130
- package/components/list-view/index.umd.cjs +1 -1
- package/components/lookup/index.css +1 -1
- package/components/lookup/index.esm.js +7474 -7272
- package/components/lookup/index.umd.cjs +1 -1
- package/components/mapping-editor/index.css +1 -1
- package/components/mapping-editor/index.esm.js +6139 -5949
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/message-box/index.esm.js +1 -1
- package/components/message-box/index.umd.cjs +1 -1
- package/components/modal/index.esm.js +1 -1
- package/components/modal/index.umd.cjs +1 -1
- package/components/nav/index.esm.js +432 -371
- package/components/nav/index.umd.cjs +3 -3
- package/components/number-range/index.esm.js +1124 -0
- package/components/number-range/index.umd.cjs +1 -0
- package/components/number-range/package.json +8 -0
- package/components/number-range/style.js +6 -0
- package/components/number-spinner/index.esm.js +1155 -0
- package/components/number-spinner/index.umd.cjs +1 -0
- package/components/number-spinner/package.json +8 -0
- package/components/number-spinner/style.js +4 -0
- package/components/order/index.css +1 -1
- package/components/order/index.esm.js +1215 -1178
- package/components/order/index.umd.cjs +1 -1
- package/components/page-footer/index.esm.js +147 -147
- package/components/page-footer/index.umd.cjs +1 -1
- package/components/page-header/index.esm.js +1240 -1346
- package/components/page-header/index.umd.cjs +1 -1
- package/components/pagination/index.esm.js +489 -428
- package/components/pagination/index.umd.cjs +1 -1
- package/components/progress/index.esm.js +220 -220
- package/components/progress/index.umd.cjs +3 -3
- package/components/property-editor/index.esm.js +1512 -1540
- package/components/property-editor/index.umd.cjs +3 -3
- package/components/property-panel/index.css +1 -1
- package/components/property-panel/index.esm.js +749 -815
- package/components/property-panel/index.umd.cjs +1 -1
- package/components/query-solution/index.css +1 -0
- package/components/query-solution/index.esm.js +7074 -0
- package/components/query-solution/index.umd.cjs +1 -0
- package/components/query-solution/package.json +8 -0
- package/components/query-solution/style.js +2 -0
- package/components/radio-button/index.esm.js +86 -86
- package/components/radio-button/index.umd.cjs +1 -1
- package/components/radio-group/index.esm.js +442 -479
- package/components/radio-group/index.umd.cjs +1 -1
- package/components/rate/index.esm.js +213 -208
- package/components/rate/index.umd.cjs +1 -1
- package/components/response-layout/index.esm.js +116 -116
- package/components/response-layout/index.umd.cjs +1 -1
- package/components/response-layout-editor/index.esm.js +943 -918
- package/components/response-layout-editor/index.umd.cjs +1 -1
- package/components/response-toolbar/index.esm.js +1174 -1295
- package/components/response-toolbar/index.umd.cjs +1 -1
- package/components/schema-selector/index.css +1 -1
- package/components/schema-selector/index.esm.js +5383 -5171
- package/components/schema-selector/index.umd.cjs +2 -2
- package/components/search-box/index.esm.js +201 -201
- package/components/search-box/index.umd.cjs +1 -1
- package/components/section/index.esm.js +684 -542
- package/components/section/index.umd.cjs +1 -1
- package/components/smoke-detector/index.esm.js +121 -121
- package/components/smoke-detector/index.umd.cjs +1 -1
- package/components/spacing-editor/index.esm.js +2 -2
- package/components/spacing-editor/index.umd.cjs +1 -1
- package/components/splitter/index.esm.js +1158 -382
- package/components/splitter/index.umd.cjs +1 -1
- package/components/step/index.esm.js +232 -232
- package/components/step/index.umd.cjs +1 -1
- package/components/switch/index.esm.js +451 -487
- package/components/switch/index.umd.cjs +1 -1
- package/components/tabs/index.esm.js +2078 -2168
- package/components/tabs/index.umd.cjs +1 -1
- package/components/tags/index.esm.js +318 -320
- package/components/tags/index.umd.cjs +1 -1
- package/components/text/index.esm.js +192 -192
- package/components/text/index.umd.cjs +1 -1
- package/components/textarea/index.esm.js +471 -497
- package/components/textarea/index.umd.cjs +1 -1
- package/components/time-picker/index.esm.js +1421 -1441
- package/components/time-picker/index.umd.cjs +1 -1
- package/components/transfer/index.css +1 -1
- package/components/transfer/index.esm.js +430 -421
- package/components/transfer/index.umd.cjs +1 -1
- package/components/tree-grid/index.css +1 -1
- package/components/tree-grid/index.esm.js +6806 -6624
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-view/index.esm.js +2793 -2433
- package/components/tree-view/index.umd.cjs +1 -1
- package/components/uploader/index.esm.js +165 -165
- package/components/uploader/index.umd.cjs +2 -2
- package/components/verify-detail/index.esm.js +255 -255
- package/components/verify-detail/index.umd.cjs +1 -1
- package/components/video/index.esm.js +413 -334
- package/components/video/index.umd.cjs +1 -1
- package/components/weather/index.esm.js +902 -902
- package/components/weather/index.umd.cjs +4 -4
- package/farris.all.esm.js +54155 -52847
- package/farris.all.umd.cjs +9 -9
- package/index.css +1 -1
- package/package.json +1 -1
- package/types/button-edit/src/designer/button-group.design.component.d.ts +7 -0
- package/types/checkbox/index.d.ts +1 -0
- package/types/combo-list/src/components/list-container.component.d.ts +3 -0
- package/types/combo-list/src/components/list-container.props.d.ts +5 -1
- package/types/common/entity/entity-schema.d.ts +258 -0
- package/types/component/src/component-ref.props.d.ts +4 -0
- package/types/component/src/composition/inner-component-build-info.d.ts +27 -0
- package/types/component/src/designer/use-designer-rules.d.ts +2 -2
- package/types/data-grid/index.d.ts +5 -2
- package/types/data-grid/src/composition/data-grid-component-creator.service.d.ts +33 -0
- package/types/data-grid/src/data-grid.component.d.ts +2 -1
- package/types/data-grid/src/data-grid.props.d.ts +2 -2
- package/types/data-grid/src/designer/column-header.design.component.d.ts +1 -1
- package/types/data-grid/src/designer/data-grid-column.props.d.ts +1 -0
- package/types/data-grid/src/designer/use-group-column.d.ts +20 -0
- package/types/data-grid/src/property-config/data-grid.property-config.d.ts +4 -0
- package/types/data-grid/src/schema/schema-resolver.d.ts +2 -1
- package/types/data-view/components/column-format/boolean.component.d.ts +4 -0
- package/types/data-view/components/column-format/column-format.component.d.ts +4 -0
- package/types/data-view/components/column-format/date.component.d.ts +4 -0
- package/types/data-view/components/column-format/enum.component.d.ts +4 -0
- package/types/data-view/components/column-format/number.component.d.ts +4 -0
- package/types/data-view/composition/pagination/use-pagination.d.ts +1 -0
- package/types/data-view/composition/types.d.ts +19 -7
- package/types/data-view/composition/use-edit.d.ts +2 -1
- package/types/designer-canvas/src/composition/dg-control.d.ts +16 -350
- package/types/designer-canvas/src/composition/function/use-dragula.d.ts +2 -2
- package/types/designer-canvas/src/types.d.ts +3 -3
- package/types/dynamic-form/index.d.ts +3 -1
- package/types/dynamic-form/src/composition/response-form-component-creator.service.d.ts +31 -0
- package/types/dynamic-form/src/schema/schema-resolver.d.ts +2 -1
- package/types/dynamic-form/src/types.d.ts +1 -1
- package/types/dynamic-resolver/index.d.ts +1 -0
- package/types/dynamic-resolver/src/binding-resolver.d.ts +1 -0
- package/types/dynamic-resolver/src/schema-resolver.d.ts +2 -1
- package/types/dynamic-resolver/src/types.d.ts +3 -2
- package/types/dynamic-view/src/dynamic-view.component.d.ts +1 -1
- package/types/lookup/src/property-config/lookup.property-config.d.ts +2 -1
- package/types/modal/src/modal.props.d.ts +1 -4
- package/types/property-panel/src/composition/entity/base-property.d.ts +0 -12
- package/types/property-panel/src/composition/entity/input-base-property.d.ts +11 -26
- package/types/property-panel/src/composition/entity/schema-dom-mapping.d.ts +10 -8
- package/types/response-toolbar/src/response-toolbar.props.d.ts +2 -2
- package/types/response-toolbar/src/schema/schema-mapper.d.ts +4 -0
- package/types/section/src/property-config/section.property-config.d.ts +93 -0
- package/types/section/src/schema/schema-resolver.d.ts +2 -1
- package/types/tabs/src/composition/types.d.ts +2 -2
- package/types/tabs/src/designer/tab-header-item.design.component.d.ts +3 -1
- package/types/tabs/src/designer/tab-toolbar-item.props.d.ts +19 -0
- package/types/tabs/src/property-config/tab-page.property-config.d.ts +60 -0
- package/types/tabs/src/property-config/tabs.property-config.d.ts +6 -6
- package/types/tabs/src/schema/schema-resolver.d.ts +2 -1
- package/types/tags/index.d.ts +36 -5
- package/types/tree-grid/src/designer/use-designer-rules.d.ts +3 -0
- package/types/tree-grid/src/property-config/tree-grid.property-config.d.ts +11 -0
- package/types/tree-grid/src/schema/column-resolver.d.ts +1 -1
- package/types/tree-grid/src/tree-grid.props.d.ts +8 -0
|
@@ -1,108 +1,130 @@
|
|
|
1
|
-
import { cloneDeep as
|
|
1
|
+
import { cloneDeep as E } from "lodash-es";
|
|
2
2
|
import "vue";
|
|
3
|
-
const
|
|
4
|
-
function
|
|
5
|
-
const { properties: e, title: s } = t, n = Object.keys(e).reduce((
|
|
6
|
-
return n.id = `${s}-${Date.now()}
|
|
7
|
-
}
|
|
8
|
-
function
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
3
|
+
const m = {}, O = {};
|
|
4
|
+
function b(t) {
|
|
5
|
+
const { properties: e, title: s, ignore: n } = t, r = n && Array.isArray(n), i = Object.keys(e).reduce((l, f) => ((!r || !n.find((g) => g == f)) && (l[f] = e[f].type === "object" && e[f].properties ? b(e[f]) : E(e[f].default)), l), {});
|
|
6
|
+
return (!r || !n.find((l) => l == "id")) && (i.id = `${s}-${Date.now()}`), i;
|
|
7
|
+
}
|
|
8
|
+
function I(t, e = {}, s) {
|
|
9
|
+
const n = m[t];
|
|
10
|
+
if (n) {
|
|
11
|
+
let r = b(n);
|
|
12
|
+
const i = O[t];
|
|
13
|
+
return r = i ? i({ getSchemaByType: I }, r, e, s) : r, r;
|
|
14
|
+
}
|
|
15
|
+
return null;
|
|
16
|
+
}
|
|
17
|
+
function y(t, e) {
|
|
18
|
+
const s = b(e);
|
|
19
|
+
return Object.keys(t).reduce((n, r) => (n[r] && typeof n[r] == "object" ? Object.assign(n[r], t[r]) : n[r] = t[r], n), s), s;
|
|
20
|
+
}
|
|
21
|
+
function B(t, e) {
|
|
22
|
+
return Object.keys(t).filter((n) => t[n] != null).reduce((n, r) => {
|
|
23
|
+
if (e.has(r)) {
|
|
24
|
+
const i = e.get(r);
|
|
25
|
+
if (typeof i == "string")
|
|
26
|
+
n[i] = t[r];
|
|
18
27
|
else {
|
|
19
|
-
const l =
|
|
28
|
+
const l = i(r, t[r], t);
|
|
20
29
|
Object.assign(n, l);
|
|
21
30
|
}
|
|
22
31
|
} else
|
|
23
|
-
n[
|
|
32
|
+
n[r] = t[r];
|
|
24
33
|
return n;
|
|
25
34
|
}, {});
|
|
26
35
|
}
|
|
27
|
-
function
|
|
28
|
-
const n =
|
|
29
|
-
return
|
|
36
|
+
function j(t, e, s = /* @__PURE__ */ new Map()) {
|
|
37
|
+
const n = y(t, e);
|
|
38
|
+
return B(n, s);
|
|
39
|
+
}
|
|
40
|
+
function M(t) {
|
|
41
|
+
var s;
|
|
42
|
+
const e = t.type;
|
|
43
|
+
if (e) {
|
|
44
|
+
const n = m[e], r = y(t, n), i = ((s = t.editor) == null ? void 0 : s.type) || "";
|
|
45
|
+
if (i) {
|
|
46
|
+
const l = m[i], f = y(t.editor, l);
|
|
47
|
+
r.editor = f;
|
|
48
|
+
}
|
|
49
|
+
return r;
|
|
50
|
+
}
|
|
51
|
+
return t;
|
|
30
52
|
}
|
|
31
|
-
function
|
|
32
|
-
function e(
|
|
53
|
+
function T(t = {}) {
|
|
54
|
+
function e(o, u, c, a) {
|
|
33
55
|
if (typeof c == "number")
|
|
34
|
-
return
|
|
56
|
+
return a[o].length === c;
|
|
35
57
|
if (typeof c == "object") {
|
|
36
|
-
const p = Object.keys(c)[0],
|
|
58
|
+
const p = Object.keys(c)[0], d = c[p];
|
|
37
59
|
if (p === "not")
|
|
38
|
-
return Number(
|
|
60
|
+
return Number(a[o].length) !== Number(d);
|
|
39
61
|
if (p === "moreThan")
|
|
40
|
-
return Number(
|
|
62
|
+
return Number(a[o].length) >= Number(d);
|
|
41
63
|
if (p === "lessThan")
|
|
42
|
-
return Number(
|
|
64
|
+
return Number(a[o].length) <= Number(d);
|
|
43
65
|
}
|
|
44
66
|
return !1;
|
|
45
67
|
}
|
|
46
|
-
function s(
|
|
47
|
-
return
|
|
68
|
+
function s(o, u, c, a) {
|
|
69
|
+
return a[o] && a[o].propertyValue && String(a[o].propertyValue.value) === String(c);
|
|
48
70
|
}
|
|
49
71
|
const n = /* @__PURE__ */ new Map([
|
|
50
72
|
["length", e],
|
|
51
73
|
["getProperty", s]
|
|
52
74
|
]);
|
|
53
|
-
Object.keys(t).reduce((
|
|
54
|
-
function o
|
|
55
|
-
const c =
|
|
56
|
-
return typeof u == "number" ? [{ target: c, operator: "length", param: null, value: Number(u) }] : typeof u == "boolean" ? [{ target: c, operator: "getProperty", param:
|
|
57
|
-
if (
|
|
58
|
-
return { target: c, operator: "length", param: null, value: u[
|
|
59
|
-
const p =
|
|
60
|
-
return { target: c, operator: "getProperty", param: p, value:
|
|
75
|
+
Object.keys(t).reduce((o, u) => (o.set(u, t[u]), o), n);
|
|
76
|
+
function r(o, u) {
|
|
77
|
+
const c = o;
|
|
78
|
+
return typeof u == "number" ? [{ target: c, operator: "length", param: null, value: Number(u) }] : typeof u == "boolean" ? [{ target: c, operator: "getProperty", param: o, value: !!u }] : typeof u == "object" ? Object.keys(u).map((a) => {
|
|
79
|
+
if (a === "length")
|
|
80
|
+
return { target: c, operator: "length", param: null, value: u[a] };
|
|
81
|
+
const p = a, d = u[a];
|
|
82
|
+
return { target: c, operator: "getProperty", param: p, value: d };
|
|
61
83
|
}) : [];
|
|
62
84
|
}
|
|
63
|
-
function
|
|
64
|
-
return Object.keys(
|
|
65
|
-
const p =
|
|
85
|
+
function i(o) {
|
|
86
|
+
return Object.keys(o).reduce((c, a) => {
|
|
87
|
+
const p = r(a, o[a]);
|
|
66
88
|
return c.push(...p), c;
|
|
67
89
|
}, []);
|
|
68
90
|
}
|
|
69
|
-
function l(
|
|
70
|
-
if (n.has(
|
|
71
|
-
const c = n.get(
|
|
72
|
-
return c && c(
|
|
91
|
+
function l(o, u) {
|
|
92
|
+
if (n.has(o.operator)) {
|
|
93
|
+
const c = n.get(o.operator);
|
|
94
|
+
return c && c(o.target, o.param, o.value, u) || !1;
|
|
73
95
|
}
|
|
74
96
|
return !1;
|
|
75
97
|
}
|
|
76
|
-
function
|
|
77
|
-
return
|
|
98
|
+
function f(o, u) {
|
|
99
|
+
return i(o).reduce((p, d) => p && l(d, u), !0);
|
|
78
100
|
}
|
|
79
|
-
function g(
|
|
80
|
-
const c = Object.keys(
|
|
81
|
-
return
|
|
101
|
+
function g(o, u) {
|
|
102
|
+
const c = Object.keys(o), a = c.includes("allOf"), p = c.includes("anyOf"), d = a || p, v = (d ? o[d ? a ? "allOf" : "anyOf" : "allOf"] : [o]).map((R) => f(R, u));
|
|
103
|
+
return a ? !v.includes(!1) : v.includes(!0);
|
|
82
104
|
}
|
|
83
105
|
return { parseValueSchema: g };
|
|
84
106
|
}
|
|
85
|
-
const
|
|
86
|
-
|
|
87
|
-
function N(t, e, s = /* @__PURE__ */ new Map(), n = (l,
|
|
88
|
-
return
|
|
89
|
-
const
|
|
90
|
-
return Object.assign(g,
|
|
107
|
+
const V = {}, P = {};
|
|
108
|
+
T();
|
|
109
|
+
function N(t, e, s = /* @__PURE__ */ new Map(), n = (l, f, g) => f, r = {}, i = (l) => l) {
|
|
110
|
+
return m[e.title] = e, O[e.title] = n, V[e.title] = r, P[e.title] = i, (l = {}) => {
|
|
111
|
+
const f = j(l, e, s), g = Object.keys(t).reduce((o, u) => (o[u] = t[u].default, o), {});
|
|
112
|
+
return Object.assign(g, f);
|
|
91
113
|
};
|
|
92
114
|
}
|
|
93
115
|
function w(t, e) {
|
|
94
116
|
return { customClass: e.class, customStyle: e.style };
|
|
95
117
|
}
|
|
96
|
-
function
|
|
118
|
+
function A(t, e) {
|
|
97
119
|
return { buttons: e.buttons };
|
|
98
120
|
}
|
|
99
|
-
function
|
|
121
|
+
function G() {
|
|
100
122
|
function t(e, s) {
|
|
101
|
-
const { id: n } = e || {}, { field:
|
|
123
|
+
const { id: n } = e || {}, { field: r } = e.binding || {};
|
|
102
124
|
return {
|
|
103
125
|
modelValue: s.getValue(n),
|
|
104
|
-
"onUpdate:modelValue": (
|
|
105
|
-
s.setValue(n,
|
|
126
|
+
"onUpdate:modelValue": (i) => {
|
|
127
|
+
s.setValue(n, r, i);
|
|
106
128
|
}
|
|
107
129
|
};
|
|
108
130
|
}
|
|
@@ -110,12 +132,12 @@ function U() {
|
|
|
110
132
|
resolve: t
|
|
111
133
|
};
|
|
112
134
|
}
|
|
113
|
-
function
|
|
135
|
+
function U() {
|
|
114
136
|
function t(e, s) {
|
|
115
|
-
const { id: n } = e || {}, { dataSource:
|
|
116
|
-
return
|
|
137
|
+
const { id: n } = e || {}, { dataSource: r } = e || {};
|
|
138
|
+
return r === void 0 ? {} : {
|
|
117
139
|
data: s.getValue(n),
|
|
118
|
-
"onUpdate:data": (...
|
|
140
|
+
"onUpdate:data": (...i) => {
|
|
119
141
|
}
|
|
120
142
|
};
|
|
121
143
|
}
|
|
@@ -123,11 +145,20 @@ function $() {
|
|
|
123
145
|
resolve: t
|
|
124
146
|
};
|
|
125
147
|
}
|
|
148
|
+
function $() {
|
|
149
|
+
function t(e, s) {
|
|
150
|
+
const { dataSource: n } = e || {};
|
|
151
|
+
return n === void 0 ? {} : {};
|
|
152
|
+
}
|
|
153
|
+
return {
|
|
154
|
+
resolve: t
|
|
155
|
+
};
|
|
156
|
+
}
|
|
126
157
|
function x() {
|
|
127
158
|
function t(e, s) {
|
|
128
159
|
const { path: n } = e.binding || {};
|
|
129
160
|
return n ? {
|
|
130
|
-
"onUpdate:dataMapping": (...
|
|
161
|
+
"onUpdate:dataMapping": (...r) => {
|
|
131
162
|
}
|
|
132
163
|
} : {};
|
|
133
164
|
}
|
|
@@ -137,16 +168,16 @@ function x() {
|
|
|
137
168
|
}
|
|
138
169
|
function F() {
|
|
139
170
|
return (t, e, s) => {
|
|
140
|
-
const n = e.id, { type:
|
|
141
|
-
return
|
|
142
|
-
const g = `on${
|
|
143
|
-
return l[g] = (...
|
|
144
|
-
s.dispatch(n,
|
|
171
|
+
const n = e.id, { type: r } = e, i = t.emits;
|
|
172
|
+
return i ? i.filter((l) => l !== "update:modelValue").reduce((l, f) => {
|
|
173
|
+
const g = `on${f.charAt(0).toUpperCase()}${f.slice(1)}`;
|
|
174
|
+
return l[g] = (...o) => {
|
|
175
|
+
s.dispatch(n, f, r, o);
|
|
145
176
|
}, l;
|
|
146
177
|
}, {}) : {};
|
|
147
178
|
};
|
|
148
179
|
}
|
|
149
|
-
function
|
|
180
|
+
function L() {
|
|
150
181
|
function t(e, s) {
|
|
151
182
|
return e.selectItemById(s);
|
|
152
183
|
}
|
|
@@ -154,7 +185,7 @@ function G() {
|
|
|
154
185
|
selectItemById: t
|
|
155
186
|
};
|
|
156
187
|
}
|
|
157
|
-
function
|
|
188
|
+
function W() {
|
|
158
189
|
function t(e, s) {
|
|
159
190
|
return e.selectItemById(s);
|
|
160
191
|
}
|
|
@@ -162,7 +193,7 @@ function S() {
|
|
|
162
193
|
selectItemById: t
|
|
163
194
|
};
|
|
164
195
|
}
|
|
165
|
-
function
|
|
196
|
+
function q() {
|
|
166
197
|
function t(e) {
|
|
167
198
|
return e.editor;
|
|
168
199
|
}
|
|
@@ -170,7 +201,7 @@ function A() {
|
|
|
170
201
|
resolve: t
|
|
171
202
|
};
|
|
172
203
|
}
|
|
173
|
-
function
|
|
204
|
+
function z() {
|
|
174
205
|
function t(e) {
|
|
175
206
|
return Object.prototype.hasOwnProperty.call(e, "visible") ? e.visible : null;
|
|
176
207
|
}
|
|
@@ -179,15 +210,21 @@ function L() {
|
|
|
179
210
|
};
|
|
180
211
|
}
|
|
181
212
|
export {
|
|
182
|
-
|
|
183
|
-
|
|
213
|
+
U as createCollectionBindingResolver,
|
|
214
|
+
L as createDataGridSelectionItemResolver,
|
|
184
215
|
x as createDataMappingBindingResolver,
|
|
185
216
|
F as createEventsResolver,
|
|
186
|
-
|
|
187
|
-
|
|
217
|
+
G as createFormBindingResolver,
|
|
218
|
+
q as createFormGroupEditorResolver,
|
|
188
219
|
N as createPropsResolver,
|
|
189
|
-
|
|
190
|
-
|
|
220
|
+
$ as createTreeGridBindingResolver,
|
|
221
|
+
W as createTreeGridSelectionItemResolver,
|
|
222
|
+
z as createVisiblePropResolver,
|
|
223
|
+
I as getSchemaByType,
|
|
191
224
|
w as resolveAppearance,
|
|
192
|
-
|
|
225
|
+
j as resolveSchemaToProps,
|
|
226
|
+
M as resolveSchemaWithDefaultValue,
|
|
227
|
+
A as resolveToolbar,
|
|
228
|
+
m as schemaMap,
|
|
229
|
+
O as schemaResolverMap
|
|
193
230
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(i,y){typeof exports=="object"&&typeof module<"u"?y(exports,require("lodash-es"),require("vue")):typeof define=="function"&&define.amd?define(["exports","lodash-es","vue"],y):(i=typeof globalThis<"u"?globalThis:i||self,y(i["dynamic-resolver"]={},i.LodashES))})(this,function(i,y){"use strict";const v={},b={};function h(t){const{properties:e,title:s,ignore:n}=t,r=n&&Array.isArray(n),c=Object.keys(e).reduce((f,d)=>((!r||!n.find(m=>m==d))&&(f[d]=e[d].type==="object"&&e[d].properties?h(e[d]):y.cloneDeep(e[d].default)),f),{});return(!r||!n.find(f=>f=="id"))&&(c.id=`${s}-${Date.now()}`),c}function T(t,e={},s){const n=v[t];if(n){let r=h(n);const c=b[t];return r=c?c({getSchemaByType:T},r,e,s):r,r}return null}function R(t,e){const s=h(e);return Object.keys(t).reduce((n,r)=>(n[r]&&typeof n[r]=="object"?Object.assign(n[r],t[r]):n[r]=t[r],n),s),s}function B(t,e){return Object.keys(t).filter(n=>t[n]!=null).reduce((n,r)=>{if(e.has(r)){const c=e.get(r);if(typeof c=="string")n[c]=t[r];else{const f=c(r,t[r],t);Object.assign(n,f)}}else n[r]=t[r];return n},{})}function O(t,e,s=new Map){const n=R(t,e);return B(n,s)}function E(t){var s;const e=t.type;if(e){const n=v[e],r=R(t,n),c=((s=t.editor)==null?void 0:s.type)||"";if(c){const f=v[c],d=R(t.editor,f);r.editor=d}return r}return t}function I(t={}){function e(o,u,a,l){if(typeof a=="number")return l[o].length===a;if(typeof a=="object"){const p=Object.keys(a)[0],g=a[p];if(p==="not")return Number(l[o].length)!==Number(g);if(p==="moreThan")return Number(l[o].length)>=Number(g);if(p==="lessThan")return Number(l[o].length)<=Number(g)}return!1}function s(o,u,a,l){return l[o]&&l[o].propertyValue&&String(l[o].propertyValue.value)===String(a)}const n=new Map([["length",e],["getProperty",s]]);Object.keys(t).reduce((o,u)=>(o.set(u,t[u]),o),n);function r(o,u){const a=o;return typeof u=="number"?[{target:a,operator:"length",param:null,value:Number(u)}]:typeof u=="boolean"?[{target:a,operator:"getProperty",param:o,value:!!u}]:typeof u=="object"?Object.keys(u).map(l=>{if(l==="length")return{target:a,operator:"length",param:null,value:u[l]};const p=l,g=u[l];return{target:a,operator:"getProperty",param:p,value:g}}):[]}function c(o){return Object.keys(o).reduce((a,l)=>{const p=r(l,o[l]);return a.push(...p),a},[])}function f(o,u){if(n.has(o.operator)){const a=n.get(o.operator);return a&&a(o.target,o.param,o.value,u)||!1}return!1}function d(o,u){return c(o).reduce((p,g)=>p&&f(g,u),!0)}function m(o,u){const a=Object.keys(o),l=a.includes("allOf"),p=a.includes("anyOf"),g=l||p,S=(g?o[g?l?"allOf":"anyOf":"allOf"]:[o]).map(q=>d(q,u));return l?!S.includes(!1):S.includes(!0)}return{parseValueSchema:m}}const P={},j={};I();function V(t,e,s=new Map,n=(f,d,m)=>d,r={},c=f=>f){return v[e.title]=e,b[e.title]=n,P[e.title]=r,j[e.title]=c,(f={})=>{const d=O(f,e,s),m=Object.keys(t).reduce((o,u)=>(o[u]=t[u].default,o),{});return Object.assign(m,d)}}function M(t,e){return{customClass:e.class,customStyle:e.style}}function D(t,e){return{buttons:e.buttons}}function C(){function t(e,s){const{id:n}=e||{},{field:r}=e.binding||{};return{modelValue:s.getValue(n),"onUpdate:modelValue":c=>{s.setValue(n,r,c)}}}return{resolve:t}}function G(){function t(e,s){const{id:n}=e||{},{dataSource:r}=e||{};return r===void 0?{}:{data:s.getValue(n),"onUpdate:data":(...c)=>{}}}return{resolve:t}}function k(){function t(e,s){const{dataSource:n}=e||{};return n===void 0?{}:{}}return{resolve:t}}function N(){function t(e,s){const{path:n}=e.binding||{};return n?{"onUpdate:dataMapping":(...r)=>{}}:{}}return{resolve:t}}function w(){return(t,e,s)=>{const n=e.id,{type:r}=e,c=t.emits;return c?c.filter(f=>f!=="update:modelValue").reduce((f,d)=>{const m=`on${d.charAt(0).toUpperCase()}${d.slice(1)}`;return f[m]=(...o)=>{s.dispatch(n,d,r,o)},f},{}):{}}}function A(){function t(e,s){return e.selectItemById(s)}return{selectItemById:t}}function F(){function t(e,s){return e.selectItemById(s)}return{selectItemById:t}}function U(){function t(e){return e.editor}return{resolve:t}}function $(){function t(e){return Object.prototype.hasOwnProperty.call(e,"visible")?e.visible:null}return{resolve:t}}i.createCollectionBindingResolver=G,i.createDataGridSelectionItemResolver=A,i.createDataMappingBindingResolver=N,i.createEventsResolver=w,i.createFormBindingResolver=C,i.createFormGroupEditorResolver=U,i.createPropsResolver=V,i.createTreeGridBindingResolver=k,i.createTreeGridSelectionItemResolver=F,i.createVisiblePropResolver=$,i.getSchemaByType=T,i.resolveAppearance=M,i.resolveSchemaToProps=O,i.resolveSchemaWithDefaultValue=E,i.resolveToolbar=D,i.schemaMap=v,i.schemaResolverMap=b,Object.defineProperty(i,Symbol.toStringTag,{value:"Module"})});
|