@farris/ui-vue 1.2.9 → 1.3.1
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 +64 -64
- package/components/accordion/index.umd.cjs +1 -1
- package/components/avatar/index.esm.js +521 -336
- package/components/avatar/index.umd.cjs +1 -1
- package/components/button-edit/index.css +1 -1
- package/components/button-edit/index.esm.js +99 -97
- package/components/button-edit/index.umd.cjs +1 -1
- package/components/calendar/index.esm.js +496 -504
- package/components/calendar/index.umd.cjs +1 -1
- package/components/capsule/index.esm.js +251 -259
- package/components/capsule/index.umd.cjs +1 -1
- package/components/checkbox/index.esm.js +696 -519
- package/components/checkbox/index.umd.cjs +1 -1
- package/components/color-picker/index.esm.js +368 -376
- package/components/color-picker/index.umd.cjs +2 -2
- package/components/combo-list/index.css +1 -0
- package/components/combo-list/index.esm.js +1141 -340
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/combo-tree/index.esm.js +116 -116
- package/components/combo-tree/index.umd.cjs +1 -1
- package/components/common/index.esm.js +986 -798
- package/components/common/index.umd.cjs +1 -1
- package/components/component/index.esm.js +463 -998
- package/components/component/index.umd.cjs +1 -1
- package/components/condition/index.css +1 -0
- package/components/condition/index.esm.js +2233 -1057
- package/components/condition/index.umd.cjs +1 -1
- package/components/content-container/index.esm.js +335 -1002
- package/components/content-container/index.umd.cjs +1 -1
- package/components/data-grid/index.css +1 -1
- package/components/data-grid/index.esm.js +6193 -4702
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/data-view/index.css +1 -0
- package/components/data-view/index.esm.js +4562 -3294
- package/components/data-view/index.umd.cjs +1 -1
- package/components/date-picker/index.css +1 -1
- package/components/date-picker/index.esm.js +3420 -2623
- package/components/date-picker/index.umd.cjs +1 -1
- package/components/designer-canvas/index.css +1 -1
- package/components/designer-canvas/index.esm.js +914 -883
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/designer-outline/index.esm.js +14 -13
- package/components/designer-outline/index.umd.cjs +1 -1
- package/components/dropdown/index.esm.js +204 -212
- package/components/dropdown/index.umd.cjs +2 -2
- package/components/dynamic-form/index.css +1 -0
- package/components/dynamic-form/index.esm.js +2795 -1835
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/dynamic-resolver/index.esm.js +180 -130
- package/components/dynamic-resolver/index.umd.cjs +1 -1
- package/components/dynamic-view/index.esm.js +303 -290
- package/components/dynamic-view/index.umd.cjs +1 -1
- package/components/events-editor/index.esm.js +328 -336
- package/components/events-editor/index.umd.cjs +1 -1
- package/components/expression-editor/index.esm.js +65 -65
- package/components/expression-editor/index.umd.cjs +1 -1
- package/components/external-container/index.css +1 -1
- package/components/external-container/index.esm.js +3349 -3626
- package/components/external-container/index.umd.cjs +1 -1
- package/components/field-selector/index.css +1 -1
- package/components/field-selector/index.esm.js +5344 -8588
- package/components/field-selector/index.umd.cjs +1 -1
- package/components/filter-bar/index.css +1 -1
- package/components/filter-bar/index.esm.js +2179 -2227
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/flow-canvas/index.css +1 -1
- package/components/flow-canvas/index.esm.js +684 -675
- package/components/flow-canvas/index.umd.cjs +1 -1
- package/components/image-cropper/index.esm.js +482 -490
- package/components/image-cropper/index.umd.cjs +1 -1
- package/components/input-group/index.esm.js +746 -569
- package/components/input-group/index.umd.cjs +1 -1
- package/components/layout/index.esm.js +409 -385
- package/components/layout/index.umd.cjs +1 -1
- package/components/list-nav/index.esm.js +348 -1019
- package/components/list-nav/index.umd.cjs +1 -1
- package/components/list-view/index.css +1 -1
- package/components/list-view/index.esm.js +3606 -2388
- package/components/list-view/index.umd.cjs +1 -1
- package/components/lookup/index.css +1 -1
- package/components/lookup/index.esm.js +10871 -8970
- package/components/lookup/index.umd.cjs +1 -1
- package/components/mapping-editor/index.css +1 -1
- package/components/mapping-editor/index.esm.js +6019 -5631
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/message-box/index.css +1 -1
- package/components/message-box/index.esm.js +511 -471
- package/components/message-box/index.umd.cjs +1 -1
- package/components/modal/index.css +1 -1
- package/components/modal/index.esm.js +438 -398
- package/components/modal/index.umd.cjs +1 -1
- package/components/nav/index.esm.js +912 -1281
- package/components/nav/index.umd.cjs +3 -3
- package/components/notify/index.esm.js +59 -53
- package/components/notify/index.umd.cjs +1 -1
- package/components/number-range/index.esm.js +660 -484
- package/components/number-range/index.umd.cjs +1 -1
- package/components/number-spinner/index.esm.js +682 -506
- package/components/number-spinner/index.umd.cjs +1 -1
- package/components/order/index.css +1 -1
- package/components/order/index.esm.js +1848 -1658
- package/components/order/index.umd.cjs +1 -1
- package/components/page-footer/index.esm.js +100 -100
- package/components/page-footer/index.umd.cjs +1 -1
- package/components/page-header/index.esm.js +1120 -1923
- package/components/page-header/index.umd.cjs +1 -1
- package/components/pagination/index.esm.js +875 -1214
- package/components/pagination/index.umd.cjs +1 -1
- package/components/popover/index.esm.js +71 -70
- package/components/popover/index.umd.cjs +1 -1
- package/components/progress/index.esm.js +229 -237
- package/components/progress/index.umd.cjs +3 -3
- package/components/property-editor/index.css +1 -1
- package/components/property-editor/index.esm.js +2314 -1521
- package/components/property-editor/index.umd.cjs +3 -3
- package/components/property-panel/index.esm.js +867 -868
- package/components/property-panel/index.umd.cjs +1 -1
- package/components/query-solution/index.css +1 -1
- package/components/query-solution/index.esm.js +4332 -3623
- package/components/query-solution/index.umd.cjs +1 -1
- package/components/radio-button/index.esm.js +72 -72
- package/components/radio-button/index.umd.cjs +1 -1
- package/components/radio-group/index.esm.js +613 -437
- package/components/radio-group/index.umd.cjs +1 -1
- package/components/rate/index.esm.js +255 -263
- package/components/rate/index.umd.cjs +1 -1
- package/components/response-layout/index.esm.js +144 -152
- package/components/response-layout/index.umd.cjs +1 -1
- package/components/response-layout-editor/index.css +1 -1
- package/components/response-layout-editor/index.esm.js +1101 -1038
- package/components/response-layout-editor/index.umd.cjs +1 -1
- package/components/response-toolbar/index.esm.js +935 -1750
- package/components/response-toolbar/index.umd.cjs +1 -1
- package/components/schema-selector/index.css +1 -1
- package/components/schema-selector/index.esm.js +5264 -5677
- package/components/schema-selector/index.umd.cjs +2 -2
- package/components/search-box/index.esm.js +151 -154
- package/components/search-box/index.umd.cjs +1 -1
- package/components/section/index.esm.js +438 -1125
- package/components/section/index.umd.cjs +1 -1
- package/components/smoke-detector/index.esm.js +93 -101
- package/components/smoke-detector/index.umd.cjs +1 -1
- package/components/splitter/index.esm.js +563 -1202
- package/components/splitter/index.umd.cjs +1 -1
- package/components/splitter/style.js +2 -0
- package/components/step/index.esm.js +248 -256
- package/components/step/index.umd.cjs +1 -1
- package/components/switch/index.esm.js +549 -373
- package/components/switch/index.umd.cjs +1 -1
- package/components/tabs/index.css +1 -1
- package/components/tabs/index.esm.js +2436 -3110
- package/components/tabs/index.umd.cjs +1 -1
- package/components/tags/index.esm.js +328 -336
- package/components/tags/index.umd.cjs +1 -1
- package/components/text/index.esm.js +339 -347
- package/components/text/index.umd.cjs +1 -1
- package/components/textarea/index.esm.js +554 -378
- package/components/textarea/index.umd.cjs +1 -1
- package/components/time-picker/index.css +1 -1
- package/components/time-picker/index.esm.js +1322 -1144
- package/components/time-picker/index.umd.cjs +1 -1
- package/components/transfer/index.css +1 -1
- package/components/transfer/index.esm.js +537 -543
- package/components/transfer/index.umd.cjs +1 -1
- package/components/tree-grid/index.css +1 -1
- package/components/tree-grid/index.esm.js +5113 -9426
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-view/index.css +1 -0
- package/components/tree-view/index.esm.js +3900 -2677
- package/components/tree-view/index.umd.cjs +1 -1
- package/components/uploader/index.esm.js +568 -570
- package/components/uploader/index.umd.cjs +2 -2
- package/components/verify-detail/index.esm.js +266 -274
- package/components/verify-detail/index.umd.cjs +1 -1
- package/components/video/index.esm.js +553 -1052
- package/components/video/index.umd.cjs +1 -1
- package/components/weather/index.esm.js +558 -566
- package/components/weather/index.umd.cjs +5 -5
- package/farris.all.esm.js +22009 -22688
- package/farris.all.umd.cjs +9 -9
- package/index.css +1 -1
- package/package.json +1 -1
- package/types/capsule/src/capsule.props.d.ts +2 -2
- package/types/combo-list/src/components/list-container.component.d.ts +0 -3
- package/types/combo-list/src/components/list-container.props.d.ts +0 -4
- package/types/common/directive/area-response.d.ts +10 -0
- package/types/common/index.d.ts +9 -0
- package/types/common/radio-checkbox/radio-checkbox.props.d.ts +1 -0
- package/types/common/types.d.ts +1 -1
- package/types/common/utils/encrypt.d.ts +2 -0
- package/types/common/utils/resolve-field.d.ts +2 -0
- package/types/common/utils/use-class.d.ts +7 -0
- package/types/component/src/component.props.d.ts +7 -0
- package/types/component/src/designer/use-designer-rules.d.ts +2 -2
- package/types/component/src/property-config/component.property-config.d.ts +9 -0
- package/types/components.d.ts +1 -0
- package/types/condition/src/types.d.ts +2 -1
- package/types/content-container/src/designer/use-designer-rules.d.ts +3 -3
- package/types/data-grid/index.d.ts +11 -5
- package/types/data-grid/src/data-grid.component.d.ts +4 -2
- package/types/data-grid/src/data-grid.props.d.ts +1 -0
- package/types/data-grid/src/designer/data-grid.design.component.d.ts +2 -2
- package/types/data-grid/src/designer/use-designer-rules.d.ts +2 -2
- package/types/data-view/components/row/hierarchy-row.component.d.ts +2 -2
- package/types/data-view/composition/data/use-tree-data.d.ts +1 -1
- package/types/data-view/composition/types.d.ts +19 -4
- package/types/data-view/composition/visualization/use-virtual-scroll.d.ts +0 -15
- package/types/designer-canvas/index.d.ts +2 -1
- package/types/designer-canvas/src/composition/dg-control.d.ts +5 -0
- package/types/designer-canvas/src/composition/rule/use-dragula-common-rule.d.ts +4 -0
- package/types/designer-canvas/src/composition/rule/use-template-rule.d.ts +30 -0
- package/types/designer-canvas/src/composition/types.d.ts +2 -3
- package/types/designer-canvas/src/types.d.ts +2 -1
- package/types/dynamic-form/src/composition/use-response-form-layout-setting.d.ts +2 -0
- package/types/dynamic-form/src/designer/response-form-layout-setting.component.d.ts +8 -0
- package/types/dynamic-form/src/designer/response-form-layout-setting.props.d.ts +4 -0
- package/types/dynamic-form/src/designer/response-form.design.component.d.ts +7 -1
- package/types/dynamic-form/src/designer/use-designer-rules.d.ts +1 -1
- package/types/dynamic-form/src/property-config/form.property-config.d.ts +9 -0
- package/types/dynamic-form/src/schema/schema-mapper.d.ts +1 -0
- package/types/dynamic-form/src/schema/schema-resolver.d.ts +1 -0
- package/types/dynamic-form/src/types.d.ts +12 -1
- package/types/dynamic-resolver/index.d.ts +1 -0
- package/types/dynamic-resolver/src/common/toolbar-resolver.d.ts +1 -1
- package/types/dynamic-resolver/src/event-handler-resolver.d.ts +4 -0
- package/types/dynamic-resolver/src/types.d.ts +9 -0
- package/types/dynamic-view/index.d.ts +1 -0
- package/types/dynamic-view/src/event-dispatcher.d.ts +1 -1
- package/types/external-container/src/designer/use-designer-rules.d.ts +3 -3
- package/types/index.d.ts +2 -0
- package/types/layout/src/designer/layout-pane-use-designer-rules.d.ts +3 -3
- package/types/list-nav/src/designer/use-designer-rules.d.ts +3 -0
- package/types/lookup/src/components/favorite/lookup-favorite.component.d.ts +29 -0
- package/types/lookup/src/components/favorite/lookup-favorite.props.d.ts +15 -0
- package/types/lookup/src/components/modal-container.component.d.ts +25 -0
- package/types/lookup/src/components/modal-container.props.d.ts +29 -0
- package/types/lookup/src/composition/types.d.ts +8 -0
- package/types/lookup/src/composition/use-check-props.d.ts +9 -2
- package/types/lookup/src/composition/use-dialog.d.ts +5 -1
- package/types/lookup/src/composition/use-favorite.d.ts +12 -0
- package/types/lookup/src/composition/use-http.d.ts +9 -5
- package/types/lookup/src/composition/use-input-change.d.ts +3 -0
- package/types/lookup/src/composition/use-user-data.d.ts +24 -0
- package/types/lookup/src/property-config/lookup.property-config.d.ts +6 -4
- package/types/mapping-editor/src/mapping-editor.component.d.ts +3 -0
- package/types/mapping-editor/src/mapping-editor.props.d.ts +0 -1
- package/types/modal/src/composition/use-draggable.d.ts +2 -1
- package/types/modal/src/composition/use-shortcut.d.ts +6 -0
- package/types/modal/src/modal.component.d.ts +3 -0
- package/types/modal/src/modal.props.d.ts +4 -0
- package/types/page-header/src/page-header.props.d.ts +1 -0
- package/types/pagination/src/components/buttons/goto-buttons.component.d.ts +2 -2
- package/types/pagination/src/components/buttons/next-buttons.component.d.ts +2 -2
- package/types/pagination/src/components/buttons/previous-buttons.component.d.ts +2 -2
- package/types/pagination/src/components/pages/page-list.component.d.ts +2 -2
- package/types/pagination/src/components/pages/page-number.component.d.ts +2 -2
- package/types/property-panel/index.d.ts +2 -1
- package/types/property-panel/src/composition/entity/base-property.d.ts +8 -0
- package/types/property-panel/src/composition/entity/input-base-property.d.ts +20 -1
- package/types/query-solution/src/designer/query-solution-config/composition/types.d.ts +34 -27
- package/types/query-solution/src/designer/query-solution-config/composition/use-panel.d.ts +2 -16
- package/types/{data-grid/src/designer/use-group-column.d.ts → query-solution/src/designer/query-solution-config/composition/use-property.d.ts} +4 -5
- package/types/query-solution/src/designer/query-solution-config/composition/use-querysolution-rules.d.ts +3 -0
- package/types/query-solution/src/designer/query-solution-config/composition/use-transfer.d.ts +1 -1
- package/types/query-solution/src/property-config/query-solution.property-config.d.ts +60 -0
- package/types/query-solution/src/solutions.d.ts +108 -509
- package/types/response-layout-editor/index.d.ts +3 -1
- package/types/response-layout-editor/src/composition/converter/use-response-layout-editor-setting.d.ts +2 -0
- package/types/response-layout-editor/src/type.d.ts +21 -0
- package/types/response-toolbar/src/designer/use-designer-rules.d.ts +3 -3
- package/types/response-toolbar/src/property-config/response-toolbar-item.property-config.d.ts +1 -0
- package/types/section/src/designer/use-designer-rules.d.ts +3 -3
- package/types/splitter/src/components/splitter-pane.component.d.ts +1 -1
- package/types/splitter/src/designer/splitter-pane-use-designer-rules.d.ts +3 -3
- package/types/splitter/src/designer/splitter-use-designer-rules.d.ts +3 -3
- package/types/tabs/src/designer/tab-page-use-designer-rules.d.ts +3 -3
- package/types/tabs/src/designer/tab-use-designer-rules.d.ts +3 -3
- package/types/tabs/src/tabs.props.d.ts +1 -0
- package/types/tree-grid/index.d.ts +8 -2
- package/types/tree-grid/src/tree-grid.component.d.ts +3 -1
- package/types/designer-canvas/src/composition/rule/use-drag-drop-rules.d.ts +0 -19
- package/types/designer-canvas/src/composition/use-dragula-common-rule.d.ts +0 -4
- package/types/list-nav/src/composition/use-designer-rules.d.ts +0 -3
- package/types/modal/src/composition/use-esc.d.ts +0 -1
- package/types/query-solution/src/designer/query-solution-config/composition/mock-data.d.ts +0 -6
- package/types/response-layout-editor/src/composition/converter/response-layout-editor.converter.d.ts +0 -3
- package/types/response-layout-editor/src/composition/converter/use-convert-property-value.d.ts +0 -20
|
@@ -1,230 +1,280 @@
|
|
|
1
|
-
import { cloneDeep as
|
|
1
|
+
import { cloneDeep as O, isPlainObject as h } from "lodash-es";
|
|
2
2
|
import "vue";
|
|
3
|
-
const m = {},
|
|
4
|
-
function b(
|
|
5
|
-
const { properties: e, title:
|
|
6
|
-
return (!r || !
|
|
7
|
-
}
|
|
8
|
-
function
|
|
9
|
-
const
|
|
10
|
-
if (
|
|
11
|
-
let r = b(
|
|
12
|
-
const
|
|
13
|
-
return r =
|
|
3
|
+
const m = {}, R = {};
|
|
4
|
+
function b(n) {
|
|
5
|
+
const { properties: e, title: o, ignore: t } = n, r = t && Array.isArray(t), u = Object.keys(e).reduce((i, c) => ((!r || !t.find((p) => p == c)) && (i[c] = e[c].type === "object" && e[c].properties ? b(e[c]) : O(e[c].default)), i), {});
|
|
6
|
+
return o && (!r || !t.find((i) => i == "id")) && (u.id = `${o}-${Date.now()}`), u;
|
|
7
|
+
}
|
|
8
|
+
function B(n, e = {}, o) {
|
|
9
|
+
const t = m[n];
|
|
10
|
+
if (t) {
|
|
11
|
+
let r = b(t);
|
|
12
|
+
const u = R[n];
|
|
13
|
+
return r = u ? u({ getSchemaByType: B }, r, e, o) : r, r;
|
|
14
14
|
}
|
|
15
15
|
return null;
|
|
16
16
|
}
|
|
17
|
-
function y(
|
|
18
|
-
const
|
|
19
|
-
return Object.keys(
|
|
17
|
+
function y(n, e) {
|
|
18
|
+
const o = b(e);
|
|
19
|
+
return Object.keys(n).reduce((t, r) => (t[r] && h(t[r]) && h(n[r]) ? Object.assign(t[r], n[r]) : t[r] = n[r], t), o), o;
|
|
20
20
|
}
|
|
21
|
-
function
|
|
22
|
-
return Object.keys(
|
|
21
|
+
function P(n, e) {
|
|
22
|
+
return Object.keys(n).filter((t) => n[t] != null).reduce((t, r) => {
|
|
23
23
|
if (e.has(r)) {
|
|
24
|
-
const
|
|
25
|
-
if (typeof
|
|
26
|
-
|
|
24
|
+
const u = e.get(r);
|
|
25
|
+
if (typeof u == "string")
|
|
26
|
+
t[u] = n[r];
|
|
27
27
|
else {
|
|
28
|
-
const
|
|
29
|
-
Object.assign(
|
|
28
|
+
const i = u(r, n[r], n);
|
|
29
|
+
Object.assign(t, i);
|
|
30
30
|
}
|
|
31
31
|
} else
|
|
32
|
-
|
|
33
|
-
return
|
|
32
|
+
t[r] = n[r];
|
|
33
|
+
return t;
|
|
34
34
|
}, {});
|
|
35
35
|
}
|
|
36
|
-
function
|
|
37
|
-
const
|
|
38
|
-
return
|
|
36
|
+
function T(n, e, o = /* @__PURE__ */ new Map()) {
|
|
37
|
+
const t = y(n, e);
|
|
38
|
+
return P(t, o);
|
|
39
39
|
}
|
|
40
|
-
function
|
|
41
|
-
var
|
|
42
|
-
const e =
|
|
40
|
+
function w(n) {
|
|
41
|
+
var o;
|
|
42
|
+
const e = n.type;
|
|
43
43
|
if (e) {
|
|
44
|
-
const
|
|
45
|
-
if (
|
|
46
|
-
const
|
|
47
|
-
r.editor =
|
|
44
|
+
const t = m[e], r = y(n, t), u = ((o = n.editor) == null ? void 0 : o.type) || "";
|
|
45
|
+
if (u) {
|
|
46
|
+
const i = m[u], c = y(n.editor, i);
|
|
47
|
+
r.editor = c;
|
|
48
48
|
}
|
|
49
49
|
return r;
|
|
50
50
|
}
|
|
51
|
-
return
|
|
52
|
-
}
|
|
53
|
-
function
|
|
54
|
-
function e(
|
|
55
|
-
if (typeof
|
|
56
|
-
return
|
|
57
|
-
if (typeof
|
|
58
|
-
const
|
|
59
|
-
if (
|
|
60
|
-
return Number(
|
|
61
|
-
if (
|
|
62
|
-
return Number(
|
|
63
|
-
if (
|
|
64
|
-
return Number(
|
|
51
|
+
return n;
|
|
52
|
+
}
|
|
53
|
+
function C(n = {}) {
|
|
54
|
+
function e(s, l, a, f) {
|
|
55
|
+
if (typeof a == "number")
|
|
56
|
+
return f[s].length === a;
|
|
57
|
+
if (typeof a == "object") {
|
|
58
|
+
const d = Object.keys(a)[0], g = a[d];
|
|
59
|
+
if (d === "not")
|
|
60
|
+
return Number(f[s].length) !== Number(g);
|
|
61
|
+
if (d === "moreThan")
|
|
62
|
+
return Number(f[s].length) >= Number(g);
|
|
63
|
+
if (d === "lessThan")
|
|
64
|
+
return Number(f[s].length) <= Number(g);
|
|
65
65
|
}
|
|
66
66
|
return !1;
|
|
67
67
|
}
|
|
68
|
-
function s
|
|
69
|
-
return
|
|
68
|
+
function o(s, l, a, f) {
|
|
69
|
+
return f[s] && f[s].propertyValue && String(f[s].propertyValue.value) === String(a);
|
|
70
70
|
}
|
|
71
|
-
const
|
|
71
|
+
const t = /* @__PURE__ */ new Map([
|
|
72
72
|
["length", e],
|
|
73
|
-
["getProperty",
|
|
73
|
+
["getProperty", o]
|
|
74
74
|
]);
|
|
75
|
-
Object.keys(
|
|
76
|
-
function r(
|
|
77
|
-
const
|
|
78
|
-
return typeof
|
|
79
|
-
if (
|
|
80
|
-
return { target:
|
|
81
|
-
const
|
|
82
|
-
return { target:
|
|
75
|
+
Object.keys(n).reduce((s, l) => (s.set(l, n[l]), s), t);
|
|
76
|
+
function r(s, l) {
|
|
77
|
+
const a = s;
|
|
78
|
+
return typeof l == "number" ? [{ target: a, operator: "length", param: null, value: Number(l) }] : typeof l == "boolean" ? [{ target: a, operator: "getProperty", param: s, value: !!l }] : typeof l == "object" ? Object.keys(l).map((f) => {
|
|
79
|
+
if (f === "length")
|
|
80
|
+
return { target: a, operator: "length", param: null, value: l[f] };
|
|
81
|
+
const d = f, g = l[f];
|
|
82
|
+
return { target: a, operator: "getProperty", param: d, value: g };
|
|
83
83
|
}) : [];
|
|
84
84
|
}
|
|
85
|
-
function
|
|
86
|
-
return Object.keys(
|
|
87
|
-
const
|
|
88
|
-
return
|
|
85
|
+
function u(s) {
|
|
86
|
+
return Object.keys(s).reduce((a, f) => {
|
|
87
|
+
const d = r(f, s[f]);
|
|
88
|
+
return a.push(...d), a;
|
|
89
89
|
}, []);
|
|
90
90
|
}
|
|
91
|
-
function
|
|
92
|
-
if (
|
|
93
|
-
const
|
|
94
|
-
return
|
|
91
|
+
function i(s, l) {
|
|
92
|
+
if (t.has(s.operator)) {
|
|
93
|
+
const a = t.get(s.operator);
|
|
94
|
+
return a && a(s.target, s.param, s.value, l) || !1;
|
|
95
95
|
}
|
|
96
96
|
return !1;
|
|
97
97
|
}
|
|
98
|
-
function
|
|
99
|
-
return
|
|
98
|
+
function c(s, l) {
|
|
99
|
+
return u(s).reduce((d, g) => d && i(g, l), !0);
|
|
100
100
|
}
|
|
101
|
-
function
|
|
102
|
-
const
|
|
103
|
-
return
|
|
101
|
+
function p(s, l) {
|
|
102
|
+
const a = Object.keys(s), f = a.includes("allOf"), d = a.includes("anyOf"), g = f || d, v = (g ? s[g ? f ? "allOf" : "anyOf" : "allOf"] : [s]).map((I) => c(I, l));
|
|
103
|
+
return f ? !v.includes(!1) : v.includes(!0);
|
|
104
104
|
}
|
|
105
|
-
return { parseValueSchema:
|
|
105
|
+
return { parseValueSchema: p };
|
|
106
106
|
}
|
|
107
|
-
const
|
|
108
|
-
|
|
109
|
-
function N(
|
|
110
|
-
return m[e.title] = e,
|
|
111
|
-
const
|
|
112
|
-
return Object.assign(
|
|
107
|
+
const k = {}, S = {};
|
|
108
|
+
C();
|
|
109
|
+
function N(n, e, o = /* @__PURE__ */ new Map(), t = (i, c, p) => c, r = {}, u = (i) => i) {
|
|
110
|
+
return m[e.title] = e, R[e.title] = t, k[e.title] = r, S[e.title] = u, (i = {}) => {
|
|
111
|
+
const c = T(i, e, o), p = Object.keys(n).reduce((s, l) => (s[l] = n[l].default, s), {});
|
|
112
|
+
return Object.assign(p, c);
|
|
113
113
|
};
|
|
114
114
|
}
|
|
115
|
-
function
|
|
115
|
+
function $(n, e) {
|
|
116
116
|
return { customClass: e.class, customStyle: e.style };
|
|
117
117
|
}
|
|
118
|
-
function A(
|
|
119
|
-
|
|
118
|
+
function A(n, e) {
|
|
119
|
+
const o = [];
|
|
120
|
+
return e == null || e.buttons.map((t) => {
|
|
121
|
+
const r = {};
|
|
122
|
+
Object.keys(t).map((u) => {
|
|
123
|
+
var i;
|
|
124
|
+
u == "appearance" ? r.class = ((i = t[u]) == null ? void 0 : i.class) || "" : r[u] = t[u];
|
|
125
|
+
}), o.push(r);
|
|
126
|
+
}), { buttons: o };
|
|
120
127
|
}
|
|
121
|
-
function
|
|
122
|
-
function
|
|
123
|
-
const { id:
|
|
128
|
+
function U() {
|
|
129
|
+
function n(e, o) {
|
|
130
|
+
const { id: t } = e || {}, { field: r } = e.binding || {};
|
|
124
131
|
return {
|
|
125
|
-
modelValue:
|
|
126
|
-
"onUpdate:modelValue": (
|
|
127
|
-
|
|
132
|
+
modelValue: o.getValue(t),
|
|
133
|
+
"onUpdate:modelValue": (u) => {
|
|
134
|
+
o.setValue(t, r, u);
|
|
128
135
|
}
|
|
129
136
|
};
|
|
130
137
|
}
|
|
131
138
|
return {
|
|
132
|
-
resolve:
|
|
139
|
+
resolve: n
|
|
133
140
|
};
|
|
134
141
|
}
|
|
135
|
-
function
|
|
136
|
-
function
|
|
137
|
-
const { id:
|
|
142
|
+
function G() {
|
|
143
|
+
function n(e, o) {
|
|
144
|
+
const { id: t } = e || {}, { dataSource: r } = e || {};
|
|
138
145
|
return r === void 0 ? {} : {
|
|
139
|
-
data:
|
|
140
|
-
"onUpdate:data": (...
|
|
146
|
+
data: o.getValue(t),
|
|
147
|
+
"onUpdate:data": (...u) => {
|
|
141
148
|
}
|
|
142
149
|
};
|
|
143
150
|
}
|
|
144
151
|
return {
|
|
145
|
-
resolve:
|
|
152
|
+
resolve: n
|
|
146
153
|
};
|
|
147
154
|
}
|
|
148
|
-
function
|
|
149
|
-
function
|
|
150
|
-
const { dataSource:
|
|
151
|
-
return
|
|
155
|
+
function H() {
|
|
156
|
+
function n(e, o) {
|
|
157
|
+
const { dataSource: t } = e || {};
|
|
158
|
+
return t === void 0 ? {} : {};
|
|
152
159
|
}
|
|
153
160
|
return {
|
|
154
|
-
resolve:
|
|
161
|
+
resolve: n
|
|
155
162
|
};
|
|
156
163
|
}
|
|
157
164
|
function x() {
|
|
158
|
-
function
|
|
159
|
-
const { path:
|
|
160
|
-
return
|
|
165
|
+
function n(e, o) {
|
|
166
|
+
const { path: t } = e.binding || {};
|
|
167
|
+
return t ? {
|
|
161
168
|
"onUpdate:dataMapping": (...r) => {
|
|
162
169
|
}
|
|
163
170
|
} : {};
|
|
164
171
|
}
|
|
165
172
|
return {
|
|
166
|
-
resolve:
|
|
173
|
+
resolve: n
|
|
167
174
|
};
|
|
168
175
|
}
|
|
169
176
|
function F() {
|
|
170
|
-
return (
|
|
171
|
-
const
|
|
172
|
-
return
|
|
173
|
-
const
|
|
174
|
-
return
|
|
175
|
-
|
|
176
|
-
},
|
|
177
|
+
return (n, e, o) => {
|
|
178
|
+
const t = e.id, { type: r } = e, u = n.emits;
|
|
179
|
+
return u ? u.filter((i) => i !== "update:modelValue").reduce((i, c) => {
|
|
180
|
+
const p = `on${c.charAt(0).toUpperCase()}${c.slice(1)}`;
|
|
181
|
+
return i[p] = (...s) => {
|
|
182
|
+
o.dispatch(t, c, r, s);
|
|
183
|
+
}, i;
|
|
177
184
|
}, {}) : {};
|
|
178
185
|
};
|
|
179
186
|
}
|
|
180
187
|
function L() {
|
|
181
|
-
function
|
|
182
|
-
return e.selectItemById(
|
|
188
|
+
function n(e, o) {
|
|
189
|
+
return e.selectItemById(o);
|
|
183
190
|
}
|
|
184
191
|
return {
|
|
185
|
-
selectItemById:
|
|
192
|
+
selectItemById: n
|
|
186
193
|
};
|
|
187
194
|
}
|
|
188
195
|
function W() {
|
|
189
|
-
function
|
|
190
|
-
return e.selectItemById(
|
|
196
|
+
function n(e, o) {
|
|
197
|
+
return e.selectItemById(o);
|
|
191
198
|
}
|
|
192
199
|
return {
|
|
193
|
-
selectItemById:
|
|
200
|
+
selectItemById: n
|
|
194
201
|
};
|
|
195
202
|
}
|
|
196
203
|
function q() {
|
|
197
|
-
function
|
|
204
|
+
function n(e) {
|
|
198
205
|
return e.editor;
|
|
199
206
|
}
|
|
200
207
|
return {
|
|
201
|
-
resolve:
|
|
208
|
+
resolve: n
|
|
202
209
|
};
|
|
203
210
|
}
|
|
204
211
|
function z() {
|
|
205
|
-
function
|
|
212
|
+
function n(e) {
|
|
206
213
|
return Object.prototype.hasOwnProperty.call(e, "visible") ? e.visible : null;
|
|
207
214
|
}
|
|
208
215
|
return {
|
|
209
|
-
resolve:
|
|
216
|
+
resolve: n
|
|
217
|
+
};
|
|
218
|
+
}
|
|
219
|
+
function J() {
|
|
220
|
+
function n(e, o) {
|
|
221
|
+
const { name: t } = o;
|
|
222
|
+
return e[`on${t.charAt(0).toUpperCase()}${t.slice(1)}`] || e[t];
|
|
223
|
+
}
|
|
224
|
+
return {
|
|
225
|
+
resolve: n
|
|
226
|
+
};
|
|
227
|
+
}
|
|
228
|
+
function Q() {
|
|
229
|
+
function n(e, o) {
|
|
230
|
+
var c;
|
|
231
|
+
const t = (c = e.toolbar) == null ? void 0 : c.buttons;
|
|
232
|
+
if (!t || t.length < 1)
|
|
233
|
+
return null;
|
|
234
|
+
const [r, u] = o.payloads, i = t.find((p) => p.id === u);
|
|
235
|
+
return i ? i.onClick || i.click : null;
|
|
236
|
+
}
|
|
237
|
+
return {
|
|
238
|
+
resolve: n
|
|
239
|
+
};
|
|
240
|
+
}
|
|
241
|
+
function X() {
|
|
242
|
+
function n(e, o) {
|
|
243
|
+
const t = e.contents;
|
|
244
|
+
if (!t || t.length < 1)
|
|
245
|
+
return null;
|
|
246
|
+
const r = t.reduce((p, s) => {
|
|
247
|
+
const l = s.toolbar && s.toolbar.buttons || [];
|
|
248
|
+
return p.push(...l), p;
|
|
249
|
+
}, []);
|
|
250
|
+
if (!r || r.length < 1)
|
|
251
|
+
return;
|
|
252
|
+
const [u, i] = o.payloads, c = r.find((p) => p.id === i);
|
|
253
|
+
return c ? c.onClick || c.click : null;
|
|
254
|
+
}
|
|
255
|
+
return {
|
|
256
|
+
resolve: n
|
|
210
257
|
};
|
|
211
258
|
}
|
|
212
259
|
export {
|
|
213
|
-
|
|
260
|
+
G as createCollectionBindingResolver,
|
|
214
261
|
L as createDataGridSelectionItemResolver,
|
|
215
262
|
x as createDataMappingBindingResolver,
|
|
263
|
+
J as createEventHandlerResolver,
|
|
216
264
|
F as createEventsResolver,
|
|
217
|
-
|
|
265
|
+
U as createFormBindingResolver,
|
|
218
266
|
q as createFormGroupEditorResolver,
|
|
267
|
+
Q as createPageHeaderEventHandlerResolver,
|
|
219
268
|
N as createPropsResolver,
|
|
220
|
-
|
|
269
|
+
X as createTabsEventHandlerResolver,
|
|
270
|
+
H as createTreeGridBindingResolver,
|
|
221
271
|
W as createTreeGridSelectionItemResolver,
|
|
222
272
|
z as createVisiblePropResolver,
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
273
|
+
B as getSchemaByType,
|
|
274
|
+
$ as resolveAppearance,
|
|
275
|
+
T as resolveSchemaToProps,
|
|
276
|
+
w as resolveSchemaWithDefaultValue,
|
|
227
277
|
A as resolveToolbar,
|
|
228
278
|
m as schemaMap,
|
|
229
|
-
|
|
279
|
+
R as schemaResolverMap
|
|
230
280
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(c,m){typeof exports=="object"&&typeof module<"u"?m(exports,require("lodash-es"),require("vue")):typeof define=="function"&&define.amd?define(["exports","lodash-es","vue"],m):(c=typeof globalThis<"u"?globalThis:c||self,m(c["dynamic-resolver"]={},c.LodashES))})(this,function(c,m){"use strict";const y={},b={};function R(t){const{properties:e,title:o,ignore:n}=t,r=n&&Array.isArray(n),i=Object.keys(e).reduce((u,a)=>((!r||!n.find(p=>p==a))&&(u[a]=e[a].type==="object"&&e[a].properties?R(e[a]):m.cloneDeep(e[a].default)),u),{});return o&&(!r||!n.find(u=>u=="id"))&&(i.id=`${o}-${Date.now()}`),i}function E(t,e={},o){const n=y[t];if(n){let r=R(n);const i=b[t];return r=i?i({getSchemaByType:E},r,e,o):r,r}return null}function h(t,e){const o=R(e);return Object.keys(t).reduce((n,r)=>(n[r]&&m.isPlainObject(n[r])&&m.isPlainObject(t[r])?Object.assign(n[r],t[r]):n[r]=t[r],n),o),o}function B(t,e){return Object.keys(t).filter(n=>t[n]!=null).reduce((n,r)=>{if(e.has(r)){const i=e.get(r);if(typeof i=="string")n[i]=t[r];else{const u=i(r,t[r],t);Object.assign(n,u)}}else n[r]=t[r];return n},{})}function T(t,e,o=new Map){const n=h(t,e);return B(n,o)}function S(t){var o;const e=t.type;if(e){const n=y[e],r=h(t,n),i=((o=t.editor)==null?void 0:o.type)||"";if(i){const u=y[i],a=h(t.editor,u);r.editor=a}return r}return t}function I(t={}){function e(s,l,f,d){if(typeof f=="number")return d[s].length===f;if(typeof f=="object"){const g=Object.keys(f)[0],v=f[g];if(g==="not")return Number(d[s].length)!==Number(v);if(g==="moreThan")return Number(d[s].length)>=Number(v);if(g==="lessThan")return Number(d[s].length)<=Number(v)}return!1}function o(s,l,f,d){return d[s]&&d[s].propertyValue&&String(d[s].propertyValue.value)===String(f)}const n=new Map([["length",e],["getProperty",o]]);Object.keys(t).reduce((s,l)=>(s.set(l,t[l]),s),n);function r(s,l){const f=s;return typeof l=="number"?[{target:f,operator:"length",param:null,value:Number(l)}]:typeof l=="boolean"?[{target:f,operator:"getProperty",param:s,value:!!l}]:typeof l=="object"?Object.keys(l).map(d=>{if(d==="length")return{target:f,operator:"length",param:null,value:l[d]};const g=d,v=l[d];return{target:f,operator:"getProperty",param:g,value:v}}):[]}function i(s){return Object.keys(s).reduce((f,d)=>{const g=r(d,s[d]);return f.push(...g),f},[])}function u(s,l){if(n.has(s.operator)){const f=n.get(s.operator);return f&&f(s.target,s.param,s.value,l)||!1}return!1}function a(s,l){return i(s).reduce((g,v)=>g&&u(v,l),!0)}function p(s,l){const f=Object.keys(s),d=f.includes("allOf"),g=f.includes("anyOf"),v=d||g,P=(v?s[v?d?"allOf":"anyOf":"allOf"]:[s]).map(z=>a(z,l));return d?!P.includes(!1):P.includes(!0)}return{parseValueSchema:p}}const O={},C={};I();function M(t,e,o=new Map,n=(u,a,p)=>a,r={},i=u=>u){return y[e.title]=e,b[e.title]=n,O[e.title]=r,C[e.title]=i,(u={})=>{const a=T(u,e,o),p=Object.keys(t).reduce((s,l)=>(s[l]=t[l].default,s),{});return Object.assign(p,a)}}function V(t,e){return{customClass:e.class,customStyle:e.style}}function j(t,e){const o=[];return e==null||e.buttons.map(n=>{const r={};Object.keys(n).map(i=>{var u;i=="appearance"?r.class=((u=n[i])==null?void 0:u.class)||"":r[i]=n[i]}),o.push(r)}),{buttons:o}}function D(){function t(e,o){const{id:n}=e||{},{field:r}=e.binding||{};return{modelValue:o.getValue(n),"onUpdate:modelValue":i=>{o.setValue(n,r,i)}}}return{resolve:t}}function k(){function t(e,o){const{id:n}=e||{},{dataSource:r}=e||{};return r===void 0?{}:{data:o.getValue(n),"onUpdate:data":(...i)=>{}}}return{resolve:t}}function G(){function t(e,o){const{dataSource:n}=e||{};return n===void 0?{}:{}}return{resolve:t}}function H(){function t(e,o){const{path:n}=e.binding||{};return n?{"onUpdate:dataMapping":(...r)=>{}}:{}}return{resolve:t}}function w(){return(t,e,o)=>{const n=e.id,{type:r}=e,i=t.emits;return i?i.filter(u=>u!=="update:modelValue").reduce((u,a)=>{const p=`on${a.charAt(0).toUpperCase()}${a.slice(1)}`;return u[p]=(...s)=>{o.dispatch(n,a,r,s)},u},{}):{}}}function A(){function t(e,o){return e.selectItemById(o)}return{selectItemById:t}}function N(){function t(e,o){return e.selectItemById(o)}return{selectItemById:t}}function $(){function t(e){return e.editor}return{resolve:t}}function F(){function t(e){return Object.prototype.hasOwnProperty.call(e,"visible")?e.visible:null}return{resolve:t}}function U(){function t(e,o){const{name:n}=o;return e[`on${n.charAt(0).toUpperCase()}${n.slice(1)}`]||e[n]}return{resolve:t}}function L(){function t(e,o){var a;const n=(a=e.toolbar)==null?void 0:a.buttons;if(!n||n.length<1)return null;const[r,i]=o.payloads,u=n.find(p=>p.id===i);return u?u.onClick||u.click:null}return{resolve:t}}function q(){function t(e,o){const n=e.contents;if(!n||n.length<1)return null;const r=n.reduce((p,s)=>{const l=s.toolbar&&s.toolbar.buttons||[];return p.push(...l),p},[]);if(!r||r.length<1)return;const[i,u]=o.payloads,a=r.find(p=>p.id===u);return a?a.onClick||a.click:null}return{resolve:t}}c.createCollectionBindingResolver=k,c.createDataGridSelectionItemResolver=A,c.createDataMappingBindingResolver=H,c.createEventHandlerResolver=U,c.createEventsResolver=w,c.createFormBindingResolver=D,c.createFormGroupEditorResolver=$,c.createPageHeaderEventHandlerResolver=L,c.createPropsResolver=M,c.createTabsEventHandlerResolver=q,c.createTreeGridBindingResolver=G,c.createTreeGridSelectionItemResolver=N,c.createVisiblePropResolver=F,c.getSchemaByType=E,c.resolveAppearance=V,c.resolveSchemaToProps=T,c.resolveSchemaWithDefaultValue=S,c.resolveToolbar=j,c.schemaMap=y,c.schemaResolverMap=b,Object.defineProperty(c,Symbol.toStringTag,{value:"Module"})});
|