@farris/ui-vue 1.6.5-beta.7 → 1.6.5-beta.8
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 +65 -65
- package/components/accordion/index.umd.cjs +1 -1
- package/components/avatar/index.esm.js +28 -29
- package/components/avatar/index.umd.cjs +1 -1
- package/components/button-edit/index.esm.js +521 -517
- package/components/button-edit/index.umd.cjs +1 -1
- package/components/calendar/index.esm.js +134 -134
- package/components/calendar/index.umd.cjs +1 -1
- package/components/capsule/index.esm.js +192 -192
- package/components/capsule/index.umd.cjs +1 -1
- package/components/code-editor/index.esm.js +8 -8
- package/components/code-editor/index.umd.cjs +3 -3
- package/components/collection-property-editor/index.esm.js +72 -72
- package/components/collection-property-editor/index.umd.cjs +1 -1
- package/components/color-picker/index.esm.js +291 -289
- package/components/color-picker/index.umd.cjs +1 -1
- package/components/combo-list/index.esm.js +163 -157
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/combo-tree/index.esm.js +113 -112
- package/components/combo-tree/index.umd.cjs +1 -1
- package/components/common/index.esm.js +3 -1
- package/components/common/index.umd.cjs +1 -1
- package/components/component/index.esm.js +10 -10
- package/components/component/index.umd.cjs +1 -1
- package/components/condition/index.esm.js +1122 -1121
- package/components/condition/index.umd.cjs +1 -1
- package/components/content-container/index.esm.js +190 -190
- package/components/content-container/index.umd.cjs +1 -1
- package/components/data-view/index.esm.js +2693 -2693
- package/components/data-view/index.umd.cjs +1 -1
- package/components/date-picker/index.esm.js +1604 -1601
- package/components/date-picker/index.umd.cjs +1 -1
- package/components/designer-canvas/index.esm.js +1082 -1079
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/discussion-editor/index.esm.js +973 -1040
- package/components/discussion-editor/index.umd.cjs +6 -6
- package/components/dropdown/index.esm.js +335 -330
- package/components/dropdown/index.umd.cjs +2 -2
- package/components/dynamic-form/index.esm.js +8 -8
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/dynamic-resolver/index.esm.js +6 -6
- package/components/dynamic-resolver/index.umd.cjs +1 -1
- package/components/dynamic-view/index.esm.js +344 -344
- package/components/dynamic-view/index.umd.cjs +1 -1
- package/components/events-editor/index.esm.js +8 -8
- package/components/events-editor/index.umd.cjs +3 -3
- package/components/expression-editor/index.esm.js +1470 -1460
- package/components/expression-editor/index.umd.cjs +3 -3
- package/components/fieldset/index.esm.js +55 -55
- package/components/fieldset/index.umd.cjs +1 -1
- package/components/filter-bar/index.esm.js +853 -843
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/filter-condition-editor/index.esm.js +922 -911
- package/components/filter-condition-editor/index.umd.cjs +3 -3
- package/components/flow-canvas/index.esm.js +12 -12
- package/components/flow-canvas/index.umd.cjs +1 -1
- package/components/html-template/index.esm.js +164 -164
- package/components/html-template/index.umd.cjs +1 -1
- package/components/image-cropper/index.esm.js +198 -198
- package/components/image-cropper/index.umd.cjs +1 -1
- package/components/json-editor/index.esm.js +64 -64
- package/components/json-editor/index.umd.cjs +1 -1
- package/components/language-textbox/index.esm.js +140 -140
- package/components/language-textbox/index.umd.cjs +1 -1
- package/components/layout/index.esm.js +111 -111
- package/components/layout/index.umd.cjs +1 -1
- package/components/list-nav/index.esm.js +90 -90
- package/components/list-nav/index.umd.cjs +1 -1
- package/components/list-view/index.esm.js +104 -108
- package/components/list-view/index.umd.cjs +3 -3
- package/components/locale/index.esm.js +833 -901
- package/components/locale/index.umd.cjs +6 -6
- package/components/lookup/index.esm.js +1352 -1351
- package/components/lookup/index.umd.cjs +1 -1
- package/components/mapping-editor/index.esm.js +1311 -1307
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/menu-lookup/index.esm.js +1059 -1127
- package/components/menu-lookup/index.umd.cjs +6 -6
- package/components/message-box/index.esm.js +7 -7
- package/components/message-box/index.umd.cjs +1 -1
- package/components/modal/index.esm.js +9 -9
- package/components/modal/index.umd.cjs +1 -1
- package/components/nav/index.esm.js +106 -106
- package/components/nav/index.umd.cjs +1 -1
- package/components/number-range/index.esm.js +326 -326
- package/components/number-range/index.umd.cjs +1 -1
- package/components/number-spinner/index.esm.js +168 -167
- package/components/number-spinner/index.umd.cjs +1 -1
- package/components/order/index.esm.js +739 -737
- package/components/order/index.umd.cjs +4 -4
- package/components/page-footer/index.esm.js +94 -94
- package/components/page-footer/index.umd.cjs +1 -1
- package/components/page-header/index.esm.js +942 -939
- package/components/page-header/index.umd.cjs +1 -1
- package/components/pagination/index.esm.js +82 -82
- package/components/pagination/index.umd.cjs +1 -1
- package/components/popover/index.esm.js +1 -1
- package/components/popover/index.umd.cjs +1 -1
- package/components/progress/index.esm.js +113 -113
- package/components/progress/index.umd.cjs +2 -2
- package/components/property-editor/index.esm.js +151 -150
- package/components/property-editor/index.umd.cjs +1 -1
- package/components/property-panel/index.esm.js +565 -565
- package/components/property-panel/index.umd.cjs +2 -2
- package/components/query-solution/index.esm.js +4142 -4190
- package/components/query-solution/index.umd.cjs +6 -6
- package/components/radio-button/index.esm.js +182 -182
- package/components/radio-button/index.umd.cjs +1 -1
- package/components/rate/index.esm.js +106 -106
- package/components/rate/index.umd.cjs +1 -1
- package/components/response-layout/index.esm.js +409 -409
- package/components/response-layout/index.umd.cjs +1 -1
- package/components/response-layout-editor/index.esm.js +1488 -1478
- package/components/response-layout-editor/index.umd.cjs +1 -1
- package/components/response-toolbar/index.esm.js +779 -776
- package/components/response-toolbar/index.umd.cjs +1 -1
- package/components/schema-selector/index.esm.js +1765 -1762
- package/components/schema-selector/index.umd.cjs +5 -5
- package/components/search-box/index.esm.js +114 -114
- package/components/search-box/index.umd.cjs +1 -1
- package/components/section/index.esm.js +1184 -1181
- package/components/section/index.umd.cjs +1 -1
- package/components/smoke-detector/index.esm.js +163 -163
- package/components/smoke-detector/index.umd.cjs +1 -1
- package/components/sort-condition-editor/index.esm.js +927 -916
- package/components/sort-condition-editor/index.umd.cjs +3 -3
- package/components/splitter/index.esm.js +3 -3
- package/components/splitter/index.umd.cjs +1 -1
- package/components/step/index.esm.js +133 -133
- package/components/step/index.umd.cjs +1 -1
- package/components/switch/index.esm.js +76 -72
- package/components/switch/index.umd.cjs +1 -1
- package/components/tabs/index.esm.js +1527 -1524
- package/components/tabs/index.umd.cjs +2 -2
- package/components/tags/index.esm.js +93 -93
- package/components/tags/index.umd.cjs +1 -1
- package/components/text/index.esm.js +138 -138
- package/components/text/index.umd.cjs +1 -1
- package/components/textarea/index.esm.js +361 -361
- package/components/textarea/index.umd.cjs +2 -2
- package/components/tooltip/index.esm.js +173 -171
- package/components/tooltip/index.umd.cjs +1 -1
- package/components/transfer/index.esm.js +130 -134
- package/components/transfer/index.umd.cjs +4 -4
- package/components/tree-grid/index.esm.js +25 -25
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-view/index.esm.js +1746 -1743
- package/components/tree-view/index.umd.cjs +1 -1
- package/components/uploader/index.esm.js +170 -170
- package/components/uploader/index.umd.cjs +2 -2
- package/components/verify-detail/index.esm.js +196 -196
- package/components/verify-detail/index.umd.cjs +1 -1
- package/components/video/index.esm.js +8 -8
- package/components/video/index.umd.cjs +1 -1
- package/components/weather/index.esm.js +9 -9
- package/components/weather/index.umd.cjs +2 -2
- package/farris.all.esm.js +16987 -17002
- package/farris.all.umd.cjs +27 -27
- package/package.json +1 -1
- package/types/lookup/src/composition/use-dialog.d.ts +2 -0
- package/types/lookup/src/composition/use-input-change.d.ts +1 -0
- package/components/time-picker/index.css +0 -1
- package/components/time-picker/index.esm.js +0 -9793
- package/components/time-picker/index.umd.cjs +0 -1
- package/components/time-picker/package.json +0 -8
- package/components/time-picker/style.js +0 -6
- package/designer/button-edit/index.css +0 -1
- package/designer/button-edit/index.esm.js +0 -4856
- package/designer/button-edit/index.umd.cjs +0 -1
- package/designer/checkbox/index.esm.js +0 -250
- package/designer/checkbox/index.umd.cjs +0 -1
- package/designer/checkbox-group/index.esm.js +0 -377
- package/designer/checkbox-group/index.umd.cjs +0 -1
- package/designer/data-grid/index.css +0 -1
- package/designer/data-grid/index.esm.js +0 -15413
- package/designer/data-grid/index.umd.cjs +0 -23
- package/designer/data-view/index.esm.js +0 -854
- package/designer/data-view/index.umd.cjs +0 -38
- package/designer/drawer/index.css +0 -1
- package/designer/drawer/index.esm.js +0 -525
- package/designer/drawer/index.umd.cjs +0 -1
- package/designer/farris-designer.all.esm.js +0 -22320
- package/designer/farris-designer.all.umd.cjs +0 -34
- package/designer/index.css +0 -1
- package/designer/input-group/index.esm.js +0 -1098
- package/designer/input-group/index.umd.cjs +0 -1
- package/designer/list-view/index.css +0 -1
- package/designer/list-view/index.esm.js +0 -4675
- package/designer/list-view/index.umd.cjs +0 -40
- package/designer/radio-group/index.css +0 -1
- package/designer/radio-group/index.esm.js +0 -6980
- package/designer/radio-group/index.umd.cjs +0 -1
- package/designer/tree-grid/index.esm.js +0 -1099
- package/designer/tree-grid/index.umd.cjs +0 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import {
|
|
1
|
+
import { ref as C, computed as V, defineComponent as H, watch as z, createVNode as m, onMounted as ee, inject as De } from "vue";
|
|
2
|
+
import { cloneDeep as oe, isPlainObject as ae } from "lodash-es";
|
|
3
3
|
import { getSchemaByTypeForDesigner as Me } from "../dynamic-resolver/index.esm.js";
|
|
4
4
|
function ie(e, t) {
|
|
5
5
|
let n;
|
|
6
6
|
function v(d) {
|
|
7
|
-
const { properties: h, title: l, ignore: i } = d, o = i && Array.isArray(i), u = Object.keys(h).reduce((c, r) => ((!o || !i.find((s) => s === r)) && (c[r] = h[r].type === "object" && h[r].properties ? v(h[r]) :
|
|
7
|
+
const { properties: h, title: l, ignore: i } = d, o = i && Array.isArray(i), u = Object.keys(h).reduce((c, r) => ((!o || !i.find((s) => s === r)) && (c[r] = h[r].type === "object" && h[r].properties ? v(h[r]) : oe(h[r].default)), c), {});
|
|
8
8
|
if (l && (!o || !i.find((c) => c === "id"))) {
|
|
9
9
|
const c = l.toLowerCase().replace(/-/g, "_");
|
|
10
10
|
u.id = `${c}_${Math.random().toString().slice(2, 6)}`;
|
|
@@ -14,7 +14,7 @@ function ie(e, t) {
|
|
|
14
14
|
function k(d) {
|
|
15
15
|
const { properties: h, title: l, required: i } = d;
|
|
16
16
|
if (i && Array.isArray(i)) {
|
|
17
|
-
const o = i.reduce((u, c) => (u[c] = h[c].type === "object" && h[c].properties ? v(h[c]) :
|
|
17
|
+
const o = i.reduce((u, c) => (u[c] = h[c].type === "object" && h[c].properties ? v(h[c]) : oe(h[c].default), u), {});
|
|
18
18
|
if (l && i.find((u) => u === "id")) {
|
|
19
19
|
const u = l.toLowerCase().replace(/-/g, "_");
|
|
20
20
|
o.id = `${u}_${Math.random().toString().slice(2, 6)}`;
|
|
@@ -36,7 +36,7 @@ function ie(e, t) {
|
|
|
36
36
|
}
|
|
37
37
|
function f(d, h) {
|
|
38
38
|
const l = v(h);
|
|
39
|
-
return Object.keys(l).reduce((i, o) => (Object.prototype.hasOwnProperty.call(d, o) && (i[o] &&
|
|
39
|
+
return Object.keys(l).reduce((i, o) => (Object.prototype.hasOwnProperty.call(d, o) && (i[o] && ae(i[o]) && ae(d[o] || !d[o]) ? Object.assign(i[o], d[o] || {}) : i[o] = d[o]), i), l), l;
|
|
40
40
|
}
|
|
41
41
|
function y(d, h) {
|
|
42
42
|
return Object.keys(d).filter((i) => d[i] != null).reduce((i, o) => {
|
|
@@ -78,8 +78,8 @@ function ie(e, t) {
|
|
|
78
78
|
}
|
|
79
79
|
return { getSchemaByType: g, resolveSchemaWithDefaultValue: a, resolveSchemaToProps: P, mappingSchemaToProps: y, setDesignerContext: b };
|
|
80
80
|
}
|
|
81
|
-
const ce = {}, se = {}, { resolveSchemaWithDefaultValue: Se, resolveSchemaToProps: Pe, mappingSchemaToProps: Fe } = ie(ce, se);
|
|
82
|
-
function
|
|
81
|
+
const ce = {}, se = {}, { getSchemaByType: St, resolveSchemaWithDefaultValue: Se, resolveSchemaToProps: Pe, mappingSchemaToProps: Fe, setDesignerContext: Pt } = ie(ce, se);
|
|
82
|
+
function Ce(e = {}) {
|
|
83
83
|
function t(a, b, d, h) {
|
|
84
84
|
if (typeof d == "number")
|
|
85
85
|
return h[a].length === d;
|
|
@@ -133,7 +133,7 @@ function Oe(e = {}) {
|
|
|
133
133
|
}
|
|
134
134
|
return { parseValueSchema: P };
|
|
135
135
|
}
|
|
136
|
-
const
|
|
136
|
+
const Oe = {
|
|
137
137
|
convertTo: (e, t, n, v) => {
|
|
138
138
|
e.appearance || (e.appearance = {}), e.appearance[t] = n;
|
|
139
139
|
},
|
|
@@ -234,7 +234,7 @@ const Ce = {
|
|
|
234
234
|
}
|
|
235
235
|
return "none";
|
|
236
236
|
}
|
|
237
|
-
},
|
|
237
|
+
}, $e = {
|
|
238
238
|
convertTo: (e, t, n, v) => {
|
|
239
239
|
e.command ? e.command[t] = n : e.command = {
|
|
240
240
|
[t]: n
|
|
@@ -252,7 +252,7 @@ const Ce = {
|
|
|
252
252
|
]));
|
|
253
253
|
},
|
|
254
254
|
convertFrom: (e, t, n) => e.command && t === "enable" ? e.command.enable : ""
|
|
255
|
-
},
|
|
255
|
+
}, Be = {
|
|
256
256
|
convertTo: (e, t, n, v) => {
|
|
257
257
|
e.column ? e.column[t] = n : e.column = {
|
|
258
258
|
[t]: n
|
|
@@ -267,7 +267,7 @@ const Ce = {
|
|
|
267
267
|
}
|
|
268
268
|
return "";
|
|
269
269
|
}
|
|
270
|
-
},
|
|
270
|
+
}, Ae = {
|
|
271
271
|
convertTo: (e, t, n, v) => {
|
|
272
272
|
e.summary ? e.summary[t] = n : e.summary = {
|
|
273
273
|
[t]: n
|
|
@@ -295,7 +295,7 @@ const Ce = {
|
|
|
295
295
|
return e.group.showSummary;
|
|
296
296
|
}
|
|
297
297
|
}
|
|
298
|
-
},
|
|
298
|
+
}, xe = {
|
|
299
299
|
convertFrom: (e, t) => e.binding ? e.binding.path : "",
|
|
300
300
|
convertTo: (e, t, n) => {
|
|
301
301
|
if (n && n.length > 0) {
|
|
@@ -303,7 +303,7 @@ const Ce = {
|
|
|
303
303
|
e.binding || (e.binding = {}), e.binding.type = "Form", e.binding.path = v.bindingField, e.binding.field = v.id, e.binding.fullPath = v.path, e.path = v.bindingPath;
|
|
304
304
|
}
|
|
305
305
|
}
|
|
306
|
-
},
|
|
306
|
+
}, qe = {
|
|
307
307
|
convertTo: (e, t, n, v) => {
|
|
308
308
|
e.pagination || (e.pagination = {}), e.pagination[t] = n;
|
|
309
309
|
},
|
|
@@ -376,20 +376,20 @@ const Ce = {
|
|
|
376
376
|
};
|
|
377
377
|
function ue(e, t, n) {
|
|
378
378
|
const v = /* @__PURE__ */ new Map([
|
|
379
|
-
["/converter/appearance.converter",
|
|
379
|
+
["/converter/appearance.converter", Oe],
|
|
380
380
|
["/converter/buttons.converter", Ne],
|
|
381
381
|
["/converter/property-editor.converter", je],
|
|
382
382
|
["/converter/items-count.converter", _e],
|
|
383
383
|
["/converter/type.converter", Ee],
|
|
384
384
|
["/converter/change-editor.converter", We],
|
|
385
385
|
["/converter/change-formatter.converter", Ve],
|
|
386
|
-
["/converter/column-command.converter",
|
|
387
|
-
["/converter/column-option.converter",
|
|
388
|
-
["/converter/summary.converter",
|
|
386
|
+
["/converter/column-command.converter", $e],
|
|
387
|
+
["/converter/column-option.converter", Be],
|
|
388
|
+
["/converter/summary.converter", Ae],
|
|
389
389
|
["/converter/group.converter", Re],
|
|
390
390
|
["/converter/form-group-label.converter", Le],
|
|
391
|
-
["/converter/field-selector.converter",
|
|
392
|
-
["/converter/pagination.converter",
|
|
391
|
+
["/converter/field-selector.converter", xe],
|
|
392
|
+
["/converter/pagination.converter", qe],
|
|
393
393
|
["/converter/row-number.converter", Ge],
|
|
394
394
|
["/converter/grid-selection.converter", ze],
|
|
395
395
|
["/converter/size.converter", He],
|
|
@@ -421,7 +421,7 @@ function ue(e, t, n) {
|
|
|
421
421
|
["array", { type: "button-edit" }],
|
|
422
422
|
["number", { type: "number-spinner", placeholder: "" }],
|
|
423
423
|
["events-editor", { type: "events-editor", hide: !0 }]
|
|
424
|
-
]), g =
|
|
424
|
+
]), g = Ce();
|
|
425
425
|
function f(i, o) {
|
|
426
426
|
return () => g.parseValueSchema(i, o);
|
|
427
427
|
}
|
|
@@ -437,60 +437,60 @@ function ue(e, t, n) {
|
|
|
437
437
|
}
|
|
438
438
|
function b(i, o, u, c, r, s = "", w = "") {
|
|
439
439
|
return Object.keys(i).map((M) => {
|
|
440
|
-
const
|
|
440
|
+
const O = C(1), j = M, D = i[M], W = Object.keys(D), $ = D.title, p = D.type, N = k.get(p) || { type: "input-group", enableClear: !1 }, F = D.editor ? Object.assign({}, N, D.editor) : Object.assign({}, N), E = y(W, D, o), S = P(W, D, o);
|
|
441
441
|
F.readonly = F.readonly === void 0 ? S() : F.readonly;
|
|
442
|
-
const
|
|
443
|
-
let
|
|
444
|
-
const
|
|
442
|
+
const A = D.type === "cascade" ? b(D.properties, o, u, c, r, s, w) : [], R = !0;
|
|
443
|
+
let B = a(D, w);
|
|
444
|
+
const x = V({
|
|
445
445
|
get() {
|
|
446
|
-
if (
|
|
447
|
-
if (["class", "style"].find((
|
|
448
|
-
return
|
|
449
|
-
const
|
|
450
|
-
return Object.prototype.hasOwnProperty.call(
|
|
446
|
+
if (O.value) {
|
|
447
|
+
if (["class", "style"].find((Te) => Te === j) && !B && (B = v.get("/converter/appearance.converter") || null), B && B.convertFrom)
|
|
448
|
+
return B.convertFrom(u, M, r, s);
|
|
449
|
+
const q = u[M];
|
|
450
|
+
return Object.prototype.hasOwnProperty.call(D, "defaultValue") && (q === void 0 || typeof q == "string" && q === "") ? D.type === "boolean" ? D.defaultValue : D.defaultValue || "" : q;
|
|
451
451
|
}
|
|
452
452
|
return null;
|
|
453
453
|
},
|
|
454
|
-
set(
|
|
455
|
-
|
|
454
|
+
set(q) {
|
|
455
|
+
O.value += 1, B && B.convertTo ? (B.convertTo(c, M, q, r, s), B.convertTo(u, M, q, r, s)) : (c[M] = q, u[M] = q);
|
|
456
456
|
}
|
|
457
|
-
}), { refreshPanelAfterChanged: _, description: we, isExpand: be, parentPropertyID: ke } =
|
|
457
|
+
}), { refreshPanelAfterChanged: _, description: we, isExpand: be, parentPropertyID: ke } = D, re = { propertyID: j, propertyName: $, propertyType: p, propertyValue: x, editor: F, visible: E, readonly: S, cascadeConfig: A, hideCascadeTitle: R, refreshPanelAfterChanged: _, description: we, isExpand: be, parentPropertyID: ke };
|
|
458
458
|
return o[j] = re, re;
|
|
459
459
|
});
|
|
460
460
|
}
|
|
461
461
|
function d(i, o, u = {}) {
|
|
462
462
|
const c = {}, r = e[i];
|
|
463
463
|
return r && r.categories ? Object.keys(r.categories).map((w) => {
|
|
464
|
-
const
|
|
465
|
-
return { categoryId: w, categoryName: M, properties:
|
|
464
|
+
const T = r.categories[w], M = T == null ? void 0 : T.title, O = b(T.properties || {}, c, {}, u, o);
|
|
465
|
+
return { categoryId: w, categoryName: M, properties: O };
|
|
466
466
|
}) : [];
|
|
467
467
|
}
|
|
468
468
|
function h(i, o, u, c, r = "") {
|
|
469
|
-
const s = o.$ref.schema, w = o.$ref.converter,
|
|
470
|
-
if (
|
|
471
|
-
const W =
|
|
469
|
+
const s = o.$ref.schema, w = o.$ref.converter, T = u[s], M = T.type, O = n(T), j = {}, D = e[M];
|
|
470
|
+
if (D && D.categories) {
|
|
471
|
+
const W = D.categories[i], $ = W == null ? void 0 : W.title;
|
|
472
472
|
w && Object.keys(W.properties).forEach((F) => {
|
|
473
473
|
W.properties[F].$converter = w;
|
|
474
474
|
});
|
|
475
|
-
const p = (W == null ? void 0 : W.properties) || {}, N = b(p, j,
|
|
476
|
-
return { categoryId: i, categoryName:
|
|
475
|
+
const p = (W == null ? void 0 : W.properties) || {}, N = b(p, j, O, T, c, r);
|
|
476
|
+
return { categoryId: i, categoryName: $, properties: N };
|
|
477
477
|
}
|
|
478
478
|
return { categoryId: i, categoryName: "", properties: [] };
|
|
479
479
|
}
|
|
480
480
|
function l(i, o, u, c, r) {
|
|
481
|
-
const s = i.type, w = n(i),
|
|
481
|
+
const s = i.type, w = n(i), T = {};
|
|
482
482
|
let M = r || e[s];
|
|
483
483
|
if (M && Object.keys(M).length === 0 && u && u.getPropConfig && (M = u.getPropConfig(c)), M && M.categories) {
|
|
484
|
-
const
|
|
484
|
+
const O = [];
|
|
485
485
|
return Object.keys(M.categories).map((j) => {
|
|
486
|
-
const
|
|
487
|
-
if (
|
|
488
|
-
|
|
486
|
+
const D = M.categories[j];
|
|
487
|
+
if (D.$ref) {
|
|
488
|
+
O.push(h(j, D, i, o, c));
|
|
489
489
|
return;
|
|
490
490
|
}
|
|
491
|
-
const W =
|
|
492
|
-
|
|
493
|
-
}),
|
|
491
|
+
const W = D == null ? void 0 : D.title, $ = D == null ? void 0 : D.tabId, p = D == null ? void 0 : D.tabName, N = D == null ? void 0 : D.hide, F = D == null ? void 0 : D.hideTitle, E = b(D.properties || {}, T, w, i, o, c, D.$converter), { setPropertyRelates: S } = D, A = D == null ? void 0 : D.parentPropertyID;
|
|
492
|
+
O.push({ categoryId: j, categoryName: W, tabId: $, tabName: p, hide: N, properties: E, hideTitle: F, setPropertyRelates: S, parentPropertyID: A });
|
|
493
|
+
}), O;
|
|
494
494
|
}
|
|
495
495
|
return [];
|
|
496
496
|
}
|
|
@@ -502,7 +502,7 @@ function ue(e, t, n) {
|
|
|
502
502
|
}
|
|
503
503
|
const de = {}, fe = {};
|
|
504
504
|
ue(de, fe, Se);
|
|
505
|
-
const ve = {}, ye = {}, { resolveSchemaWithDefaultValue: Xe } = ie(ve, ye), me = {}, pe = {};
|
|
505
|
+
const ve = {}, ye = {}, { getSchemaByType: Ft, resolveSchemaWithDefaultValue: Xe, resolveSchemaToProps: Ct, mappingSchemaToProps: Ot, setDesignerContext: Nt } = ie(ve, ye), me = {}, pe = {};
|
|
506
506
|
ue(me, pe, Xe);
|
|
507
507
|
function Ze(e, t, n = /* @__PURE__ */ new Map(), v = (f, y, P, a) => y, k = {}, g = (f) => f) {
|
|
508
508
|
return ce[t.title] = t, se[t.title] = v, de[t.title] = k, fe[t.title] = g, ve[t.title] = t, ye[t.title] = v, me[t.title] = k, pe[t.title] = g, (f = {}, y = !0) => {
|
|
@@ -686,10 +686,10 @@ function ge() {
|
|
|
686
686
|
const { day: u, month: c, year: r } = o;
|
|
687
687
|
if (u === void 0 || c === void 0 || r === void 0)
|
|
688
688
|
throw new Error("invalided date.");
|
|
689
|
-
const s = u === 1, w = s ? v(c, r) : u - 1,
|
|
689
|
+
const s = u === 1, w = s ? v(c, r) : u - 1, T = s ? c - 1 : c, M = T < 1, O = M ? 12 : T;
|
|
690
690
|
return {
|
|
691
691
|
year: M ? r - 1 : r,
|
|
692
|
-
month:
|
|
692
|
+
month: O,
|
|
693
693
|
day: w
|
|
694
694
|
};
|
|
695
695
|
}
|
|
@@ -697,11 +697,11 @@ function ge() {
|
|
|
697
697
|
const { day: u, month: c, year: r } = o;
|
|
698
698
|
if (u === void 0 || c === void 0 || r === void 0)
|
|
699
699
|
throw new Error("invalided date.");
|
|
700
|
-
const s = n(c, r), w = u === s,
|
|
700
|
+
const s = n(c, r), w = u === s, T = w ? 1 : u + 1, M = w ? c + 1 : c, O = M > 12, j = O ? 1 : M;
|
|
701
701
|
return {
|
|
702
|
-
year:
|
|
702
|
+
year: O ? r + 1 : r,
|
|
703
703
|
month: j,
|
|
704
|
-
day:
|
|
704
|
+
day: T
|
|
705
705
|
};
|
|
706
706
|
}
|
|
707
707
|
function a(o) {
|
|
@@ -729,30 +729,30 @@ function ge() {
|
|
|
729
729
|
};
|
|
730
730
|
}
|
|
731
731
|
function h(o) {
|
|
732
|
-
const c = (o.day || 1) + 7, r = n(o.month || 1, o.year || 1), s = c > r, w = s ? c - r : c,
|
|
732
|
+
const c = (o.day || 1) + 7, r = n(o.month || 1, o.year || 1), s = c > r, w = s ? c - r : c, T = s ? k(o.month || 1, o.year || 1) : o;
|
|
733
733
|
return {
|
|
734
734
|
day: w,
|
|
735
|
-
month:
|
|
736
|
-
year:
|
|
735
|
+
month: T.month,
|
|
736
|
+
year: T.year
|
|
737
737
|
};
|
|
738
738
|
}
|
|
739
739
|
function l(o, u, c, r) {
|
|
740
|
-
const s = { day: o, month: u, year: c },
|
|
740
|
+
const s = { day: o, month: u, year: c }, T = f(r) === 0 ? 1 : 0, M = t(s) + T, O = e();
|
|
741
741
|
let j = y(s);
|
|
742
|
-
const
|
|
742
|
+
const D = [];
|
|
743
743
|
for (let F = M - 1; F >= 1; F--) {
|
|
744
|
-
const E = j.month !== s.month ? G.previous : G.current, S = j.month === u && j.day ===
|
|
745
|
-
|
|
744
|
+
const E = j.month !== s.month ? G.previous : G.current, S = j.month === u && j.day === O.day && j.month === O.month && j.year === O.year;
|
|
745
|
+
D.push({ date: j, monthTag: E, isCurrent: S }), F > 1 && (j = y(j));
|
|
746
746
|
}
|
|
747
747
|
let W = P(s);
|
|
748
|
-
const
|
|
748
|
+
const $ = [];
|
|
749
749
|
for (let F = M + 1; F <= 7; F++) {
|
|
750
|
-
const E = j.month !== s.month ? G.next : G.current, S = W.day ===
|
|
751
|
-
|
|
750
|
+
const E = j.month !== s.month ? G.next : G.current, S = W.day === O.day && W.month === O.month && W.year === O.year;
|
|
751
|
+
$.push({ date: W, monthTag: E, isCurrent: S }), F < 7 && (W = P(W));
|
|
752
752
|
}
|
|
753
|
-
const p = o ===
|
|
753
|
+
const p = o === O.day && u === O.month && c === O.year;
|
|
754
754
|
return {
|
|
755
|
-
days: [...
|
|
755
|
+
days: [...D.reverse(), { date: s, monthTag: G.current, isCurrent: p }, ...$],
|
|
756
756
|
weekNumber: 0,
|
|
757
757
|
year: c
|
|
758
758
|
};
|
|
@@ -760,8 +760,8 @@ function ge() {
|
|
|
760
760
|
function i(o, u, c) {
|
|
761
761
|
const r = [], s = n(o, u);
|
|
762
762
|
for (let w = 1; w <= s; w += 7) {
|
|
763
|
-
const
|
|
764
|
-
r.push(
|
|
763
|
+
const T = l(w, o, u, c);
|
|
764
|
+
r.push(T);
|
|
765
765
|
}
|
|
766
766
|
return r;
|
|
767
767
|
}
|
|
@@ -854,7 +854,7 @@ const ne = {
|
|
|
854
854
|
props: mt,
|
|
855
855
|
emits: ["ViewChange", "Previous", "Next", "ResetToToday"],
|
|
856
856
|
setup(e, t) {
|
|
857
|
-
const n =
|
|
857
|
+
const n = C(e.title), v = C(e.dailyViewTitle), k = C(e.weeklyViewTitle), g = C(e.monthlyViewTitle), f = 2, y = 62, P = C(e.activeView), a = C("Today");
|
|
858
858
|
z(() => e.title, () => {
|
|
859
859
|
n.value = e.title;
|
|
860
860
|
});
|
|
@@ -940,7 +940,7 @@ const X = /* @__PURE__ */ H({
|
|
|
940
940
|
props: pt,
|
|
941
941
|
emits: ["click", "keyDown"],
|
|
942
942
|
setup(e, t) {
|
|
943
|
-
const n =
|
|
943
|
+
const n = C(e.daysInWeek), v = C(e.enableKeyboadNavigate), k = C(e.enableMarkCurrent), g = C(e.activeDay), f = C(e.events), {
|
|
944
944
|
equal: y,
|
|
945
945
|
sameDay: P
|
|
946
946
|
} = U(), {
|
|
@@ -949,12 +949,12 @@ const X = /* @__PURE__ */ H({
|
|
|
949
949
|
function b(c, r) {
|
|
950
950
|
return c.forEach((s) => {
|
|
951
951
|
s.days.forEach((w) => {
|
|
952
|
-
const
|
|
953
|
-
|
|
952
|
+
const T = r.filter((M) => P(M.starts, w.date));
|
|
953
|
+
T && T.length && (w.events = [...T]);
|
|
954
954
|
});
|
|
955
955
|
}), c;
|
|
956
956
|
}
|
|
957
|
-
const d =
|
|
957
|
+
const d = C(b(e.dates, f.value));
|
|
958
958
|
z(() => e.dates, () => {
|
|
959
959
|
d.value = b(e.dates, f.value);
|
|
960
960
|
}), z(() => e.activeDay, () => {
|
|
@@ -970,10 +970,10 @@ const X = /* @__PURE__ */ H({
|
|
|
970
970
|
}, c);
|
|
971
971
|
}
|
|
972
972
|
const l = (c, r, s) => {
|
|
973
|
-
const
|
|
973
|
+
const T = {
|
|
974
974
|
"f-datepicker-no-currmonth": c.monthTag === G.previous || c.monthTag === G.next
|
|
975
975
|
}, M = `d_${r}_${s}`;
|
|
976
|
-
return
|
|
976
|
+
return T[M] = !0, T;
|
|
977
977
|
}, i = (c) => {
|
|
978
978
|
const r = c.monthTag === G.current && h(c.date), s = c.isCurrent && k.value;
|
|
979
979
|
return {
|
|
@@ -1001,17 +1001,17 @@ const X = /* @__PURE__ */ H({
|
|
|
1001
1001
|
id: `d_${r}_${w}`,
|
|
1002
1002
|
tabindex: "0",
|
|
1003
1003
|
class: l(s, r, w),
|
|
1004
|
-
onClick: (
|
|
1005
|
-
onKeydown: (
|
|
1004
|
+
onClick: (T) => o(T, s),
|
|
1005
|
+
onKeydown: (T) => u(T, s)
|
|
1006
1006
|
}, [m("div", {
|
|
1007
1007
|
class: "f-calendar-month-view-title"
|
|
1008
1008
|
}, [m("div", {
|
|
1009
1009
|
class: i(s)
|
|
1010
1010
|
}, [s.date.day]), m("div", {
|
|
1011
1011
|
class: "f-calendar-month-view-date-month"
|
|
1012
|
-
}, [s.date.day === 1 ? ne[s.date.month || 1] : ""])]), s.events && s.events.length && s.events.map((
|
|
1012
|
+
}, [s.date.day === 1 ? ne[s.date.month || 1] : ""])]), s.events && s.events.length && s.events.map((T) => m("div", {
|
|
1013
1013
|
class: "f-calendar-month-view-event-item"
|
|
1014
|
-
}, [
|
|
1014
|
+
}, [T.title]))]))]))])])]);
|
|
1015
1015
|
}
|
|
1016
1016
|
}), gt = {
|
|
1017
1017
|
daysInWeek: { Type: Array, default: Y },
|
|
@@ -1023,21 +1023,21 @@ const X = /* @__PURE__ */ H({
|
|
|
1023
1023
|
props: gt,
|
|
1024
1024
|
emits: [],
|
|
1025
1025
|
setup(e) {
|
|
1026
|
-
const t =
|
|
1026
|
+
const t = C(), n = C(), v = C(e.daysInWeek), k = C(e.week), g = C(e.enableMarkCurrent), f = C(e.events), y = C([]), {
|
|
1027
1027
|
equal: P
|
|
1028
1028
|
} = U();
|
|
1029
1029
|
function a(r) {
|
|
1030
1030
|
return k.value.days.map((w) => {
|
|
1031
|
-
const
|
|
1031
|
+
const T = {
|
|
1032
1032
|
year: w.date.year,
|
|
1033
1033
|
month: w.date.month,
|
|
1034
1034
|
day: w.date.day,
|
|
1035
1035
|
hour: r.hour,
|
|
1036
1036
|
minute: r.minute,
|
|
1037
1037
|
second: r.second
|
|
1038
|
-
}, M = f.value.filter((
|
|
1038
|
+
}, M = f.value.filter((O) => P(O.starts, T));
|
|
1039
1039
|
return {
|
|
1040
|
-
day:
|
|
1040
|
+
day: T,
|
|
1041
1041
|
events: M
|
|
1042
1042
|
};
|
|
1043
1043
|
});
|
|
@@ -1049,19 +1049,19 @@ const X = /* @__PURE__ */ H({
|
|
|
1049
1049
|
hour: s,
|
|
1050
1050
|
minute: 0,
|
|
1051
1051
|
second: 0
|
|
1052
|
-
},
|
|
1052
|
+
}, T = {
|
|
1053
1053
|
hour: s,
|
|
1054
1054
|
minute: 30,
|
|
1055
1055
|
second: 0
|
|
1056
|
-
}, M = a(w),
|
|
1056
|
+
}, M = a(w), O = a(T);
|
|
1057
1057
|
r.push({
|
|
1058
1058
|
time: w,
|
|
1059
1059
|
events: M,
|
|
1060
1060
|
title: s > 0 ? `${s}:00` : "",
|
|
1061
1061
|
part: "upper"
|
|
1062
1062
|
}), r.push({
|
|
1063
|
-
time:
|
|
1064
|
-
events:
|
|
1063
|
+
time: T,
|
|
1064
|
+
events: O,
|
|
1065
1065
|
title: `${s}:30`,
|
|
1066
1066
|
part: "lower"
|
|
1067
1067
|
});
|
|
@@ -1153,7 +1153,7 @@ const X = /* @__PURE__ */ H({
|
|
|
1153
1153
|
props: wt,
|
|
1154
1154
|
emits: [],
|
|
1155
1155
|
setup(e) {
|
|
1156
|
-
const t =
|
|
1156
|
+
const t = C(), n = C(), v = C(e.dayInWeek), k = C(e.day), g = C(e.enableMarkCurrent), f = C(e.events), y = C([]), {
|
|
1157
1157
|
equal: P
|
|
1158
1158
|
} = U();
|
|
1159
1159
|
function a(r) {
|
|
@@ -1164,7 +1164,7 @@ const X = /* @__PURE__ */ H({
|
|
|
1164
1164
|
hour: r.hour,
|
|
1165
1165
|
minute: r.minute,
|
|
1166
1166
|
second: r.second
|
|
1167
|
-
}, w = f.value.filter((
|
|
1167
|
+
}, w = f.value.filter((T) => P(T.starts, s));
|
|
1168
1168
|
return [{
|
|
1169
1169
|
day: s,
|
|
1170
1170
|
events: w
|
|
@@ -1177,19 +1177,19 @@ const X = /* @__PURE__ */ H({
|
|
|
1177
1177
|
hour: s,
|
|
1178
1178
|
minute: 0,
|
|
1179
1179
|
second: 0
|
|
1180
|
-
},
|
|
1180
|
+
}, T = {
|
|
1181
1181
|
hour: s,
|
|
1182
1182
|
minute: 30,
|
|
1183
1183
|
second: 0
|
|
1184
|
-
}, M = a(w),
|
|
1184
|
+
}, M = a(w), O = a(T);
|
|
1185
1185
|
r.push({
|
|
1186
1186
|
time: w,
|
|
1187
1187
|
events: M,
|
|
1188
1188
|
title: s > 0 ? `${s}:00` : "",
|
|
1189
1189
|
part: "upper"
|
|
1190
1190
|
}), r.push({
|
|
1191
|
-
time:
|
|
1192
|
-
events:
|
|
1191
|
+
time: T,
|
|
1192
|
+
events: O,
|
|
1193
1193
|
title: `${s}:30`,
|
|
1194
1194
|
part: "lower"
|
|
1195
1195
|
});
|
|
@@ -1280,11 +1280,11 @@ const X = /* @__PURE__ */ H({
|
|
|
1280
1280
|
sameDay: t
|
|
1281
1281
|
} = U(), {
|
|
1282
1282
|
getToday: n
|
|
1283
|
-
} = K(), v =
|
|
1283
|
+
} = K(), v = C(e.firstDayOfTheWeek), k = C(e.events), g = n(), f = C({
|
|
1284
1284
|
year: g.year || 1,
|
|
1285
1285
|
month: g.month || 1,
|
|
1286
1286
|
day: g.day || 1
|
|
1287
|
-
}), y =
|
|
1287
|
+
}), y = C(3), {
|
|
1288
1288
|
getMonthlyCalendar: P,
|
|
1289
1289
|
getWeeklyCalendar: a,
|
|
1290
1290
|
getPreviousDay: b,
|
|
@@ -1296,17 +1296,17 @@ const X = /* @__PURE__ */ H({
|
|
|
1296
1296
|
} = ge(), u = V(() => `${ne[f.value.month || 1]} ${f.value.year}`), c = V(() => P(f.value.month || 1, f.value.year || 1, v.value)), r = V(() => a(f.value.day || 1, f.value.month || 1, f.value.year || 1, v.value)), s = V(() => r.value.days.find((p) => t(p.date, f.value)) || r.value.days[1]), w = V(() => {
|
|
1297
1297
|
const p = r.value.days.findIndex((F) => t(F.date, f.value)), N = p > -1 ? p : 1;
|
|
1298
1298
|
return Y[N];
|
|
1299
|
-
}),
|
|
1299
|
+
}), T = V(() => y.value === 3), M = V(() => y.value === 2), O = V(() => y.value === 1);
|
|
1300
1300
|
function j(p) {
|
|
1301
1301
|
y.value = p;
|
|
1302
1302
|
}
|
|
1303
|
-
function
|
|
1303
|
+
function D(p) {
|
|
1304
1304
|
p === 1 && (f.value = b(f.value)), p === 2 && (f.value = h(f.value)), p === 3 && (f.value = i(f.value));
|
|
1305
1305
|
}
|
|
1306
1306
|
function W(p) {
|
|
1307
1307
|
p === 1 && (f.value = d(f.value)), p === 2 && (f.value = l(f.value)), p === 3 && (f.value = o(f.value));
|
|
1308
1308
|
}
|
|
1309
|
-
function
|
|
1309
|
+
function $() {
|
|
1310
1310
|
f.value = {
|
|
1311
1311
|
year: g.year || 1,
|
|
1312
1312
|
month: g.month || 1,
|
|
@@ -1319,17 +1319,17 @@ const X = /* @__PURE__ */ H({
|
|
|
1319
1319
|
activeView: y.value,
|
|
1320
1320
|
title: u.value,
|
|
1321
1321
|
onViewChange: (p) => j(p),
|
|
1322
|
-
onPrevious: (p) =>
|
|
1322
|
+
onPrevious: (p) => D(p),
|
|
1323
1323
|
onNext: (p) => W(p),
|
|
1324
|
-
onResetToToday: () =>
|
|
1325
|
-
}, null), m("div", null, [
|
|
1324
|
+
onResetToToday: () => $()
|
|
1325
|
+
}, null), m("div", null, [O.value && m(I, {
|
|
1326
1326
|
day: s.value,
|
|
1327
1327
|
dayInWeek: w.value,
|
|
1328
1328
|
events: k.value
|
|
1329
1329
|
}, null), M.value && m(Z, {
|
|
1330
1330
|
week: r.value,
|
|
1331
1331
|
events: k.value
|
|
1332
|
-
}, null),
|
|
1332
|
+
}, null), T.value && m(X, {
|
|
1333
1333
|
activeDay: f.value,
|
|
1334
1334
|
dates: c.value,
|
|
1335
1335
|
events: k.value
|
|
@@ -1337,8 +1337,8 @@ const X = /* @__PURE__ */ H({
|
|
|
1337
1337
|
}
|
|
1338
1338
|
});
|
|
1339
1339
|
function bt(e, t, n) {
|
|
1340
|
-
var
|
|
1341
|
-
const v = "", k = "", g =
|
|
1340
|
+
var $;
|
|
1341
|
+
const v = "", k = "", g = C();
|
|
1342
1342
|
let f;
|
|
1343
1343
|
function y() {
|
|
1344
1344
|
return (t == null ? void 0 : t.schema.componentType) !== "frame";
|
|
@@ -1357,7 +1357,7 @@ function bt(e, t, n) {
|
|
|
1357
1357
|
return null;
|
|
1358
1358
|
if (p.value.schema && p.value.schema.type === "component")
|
|
1359
1359
|
return p.value;
|
|
1360
|
-
const N =
|
|
1360
|
+
const N = C(p == null ? void 0 : p.value.parent), F = d(N);
|
|
1361
1361
|
return F || null;
|
|
1362
1362
|
}
|
|
1363
1363
|
function h(p = t) {
|
|
@@ -1369,7 +1369,7 @@ function bt(e, t, n) {
|
|
|
1369
1369
|
return N.value.canMove || E && ((S = E()) != null && S.length) ? F : h(p.parent);
|
|
1370
1370
|
}
|
|
1371
1371
|
function l(p) {
|
|
1372
|
-
return
|
|
1372
|
+
return !!n;
|
|
1373
1373
|
}
|
|
1374
1374
|
function i() {
|
|
1375
1375
|
return (t == null ? void 0 : t.schema.label) || (t == null ? void 0 : t.schema.title) || (t == null ? void 0 : t.schema.name);
|
|
@@ -1399,24 +1399,24 @@ function bt(e, t, n) {
|
|
|
1399
1399
|
E > -1 && F.getExpressions().splice(E, 1);
|
|
1400
1400
|
}
|
|
1401
1401
|
}
|
|
1402
|
-
function
|
|
1402
|
+
function T(p) {
|
|
1403
1403
|
if (!p || !(t != null && t.schema))
|
|
1404
1404
|
return;
|
|
1405
1405
|
const N = t.schema, { formSchemaUtils: F } = p;
|
|
1406
1406
|
F.removeCommunicationInComponent(N);
|
|
1407
1407
|
}
|
|
1408
1408
|
function M(p) {
|
|
1409
|
-
w(p),
|
|
1409
|
+
w(p), T(p), t != null && t.schema.contents && t.schema.contents.map((N) => {
|
|
1410
1410
|
let F = N.id;
|
|
1411
1411
|
N.type === "component-ref" && (F = N.component);
|
|
1412
1412
|
const E = e.value.querySelectorAll(`#${F}-design-item`);
|
|
1413
1413
|
E != null && E.length && Array.from(E).map((S) => {
|
|
1414
|
-
var
|
|
1415
|
-
(
|
|
1414
|
+
var A;
|
|
1415
|
+
(A = S == null ? void 0 : S.componentInstance) != null && A.value.onRemoveComponent && S.componentInstance.value.onRemoveComponent(p);
|
|
1416
1416
|
});
|
|
1417
1417
|
});
|
|
1418
1418
|
}
|
|
1419
|
-
function
|
|
1419
|
+
function O() {
|
|
1420
1420
|
}
|
|
1421
1421
|
function j(p) {
|
|
1422
1422
|
var F, E;
|
|
@@ -1425,30 +1425,30 @@ function bt(e, t, n) {
|
|
|
1425
1425
|
!f && p && (f = p.formSchemaUtils);
|
|
1426
1426
|
let N = "";
|
|
1427
1427
|
{
|
|
1428
|
-
const { text: S, title:
|
|
1429
|
-
N = S ||
|
|
1428
|
+
const { text: S, title: A, label: R, mainTitle: B, name: x, type: _ } = t.schema;
|
|
1429
|
+
N = S || A || R || B || x || ((E = le[_]) == null ? void 0 : E.name);
|
|
1430
1430
|
}
|
|
1431
1431
|
N && f.getControlBasicInfoMap().set(t.schema.id, {
|
|
1432
1432
|
componentTitle: N,
|
|
1433
1433
|
parentPathName: N
|
|
1434
1434
|
});
|
|
1435
1435
|
}
|
|
1436
|
-
function
|
|
1436
|
+
function D(p) {
|
|
1437
1437
|
var S;
|
|
1438
1438
|
const { changeObject: N } = p, { propertyID: F, propertyValue: E } = N;
|
|
1439
1439
|
if (["text", "title", "label", "name", "mainTitle"].includes((S = p == null ? void 0 : p.changeObject) == null ? void 0 : S.propertyID) && F && E && (j(), f)) {
|
|
1440
|
-
const
|
|
1441
|
-
var
|
|
1442
|
-
return ((
|
|
1440
|
+
const A = f.getControlBasicInfoMap(), R = A.keys().toArray().filter((B) => {
|
|
1441
|
+
var x, _;
|
|
1442
|
+
return ((x = A.get(B)) == null ? void 0 : x.reliedComponentId) === ((_ = t == null ? void 0 : t.schema) == null ? void 0 : _.id);
|
|
1443
1443
|
});
|
|
1444
|
-
R != null && R.length && R.forEach((
|
|
1445
|
-
const
|
|
1446
|
-
|
|
1444
|
+
R != null && R.length && R.forEach((B) => {
|
|
1445
|
+
const x = A.get(B).parentPathName.split(" > ");
|
|
1446
|
+
x[0] = E, A.get(B).parentPathName = x.join(" > ");
|
|
1447
1447
|
});
|
|
1448
1448
|
}
|
|
1449
1449
|
}
|
|
1450
1450
|
function W(p) {
|
|
1451
|
-
|
|
1451
|
+
D(p);
|
|
1452
1452
|
}
|
|
1453
1453
|
return g.value = {
|
|
1454
1454
|
canMove: y(),
|
|
@@ -1457,7 +1457,7 @@ function bt(e, t, n) {
|
|
|
1457
1457
|
canNested: !b(),
|
|
1458
1458
|
contents: t == null ? void 0 : t.schema.contents,
|
|
1459
1459
|
elementRef: e,
|
|
1460
|
-
parent: (
|
|
1460
|
+
parent: ($ = t == null ? void 0 : t.parent) == null ? void 0 : $.componentInstance,
|
|
1461
1461
|
schema: t == null ? void 0 : t.schema,
|
|
1462
1462
|
styles: v,
|
|
1463
1463
|
designerClass: k,
|
|
@@ -1470,10 +1470,10 @@ function bt(e, t, n) {
|
|
|
1470
1470
|
onAcceptMovedChildElement: u,
|
|
1471
1471
|
onChildElementMovedOut: r,
|
|
1472
1472
|
addNewChildComponentSchema: c,
|
|
1473
|
-
triggerBelongedComponentToMoveWhenMoved:
|
|
1474
|
-
triggerBelongedComponentToDeleteWhenDeleted:
|
|
1473
|
+
triggerBelongedComponentToMoveWhenMoved: C(!1),
|
|
1474
|
+
triggerBelongedComponentToDeleteWhenDeleted: C(!1),
|
|
1475
1475
|
onRemoveComponent: M,
|
|
1476
|
-
getCustomButtons:
|
|
1476
|
+
getCustomButtons: O,
|
|
1477
1477
|
onPropertyChanged: W,
|
|
1478
1478
|
setComponentBasicInfoMap: j,
|
|
1479
1479
|
updateContextSchema: t == null ? void 0 : t.updateContextSchema
|
|
@@ -1488,11 +1488,11 @@ const kt = /* @__PURE__ */ H({
|
|
|
1488
1488
|
sameDay: n
|
|
1489
1489
|
} = U(), {
|
|
1490
1490
|
getToday: v
|
|
1491
|
-
} = K(), k =
|
|
1491
|
+
} = K(), k = C(e.firstDayOfTheWeek), g = C(e.events), f = v(), y = C({
|
|
1492
1492
|
year: f.year || 1,
|
|
1493
1493
|
month: f.month || 1,
|
|
1494
1494
|
day: f.day || 1
|
|
1495
|
-
}), P =
|
|
1495
|
+
}), P = C(3), a = C(), b = De("design-item-context"), d = bt(a, b);
|
|
1496
1496
|
ee(() => {
|
|
1497
1497
|
a.value.componentInstance = d;
|
|
1498
1498
|
}), t.expose(d.value);
|
|
@@ -1505,10 +1505,10 @@ const kt = /* @__PURE__ */ H({
|
|
|
1505
1505
|
getDayInNextWeek: c,
|
|
1506
1506
|
getDayInPreviousMonth: r,
|
|
1507
1507
|
getDayInNextMonth: s
|
|
1508
|
-
} = ge(), w = V(() => `${ne[y.value.month || 1]} ${y.value.year}`),
|
|
1509
|
-
const S = M.value.days.findIndex((R) => n(R.date, y.value)),
|
|
1510
|
-
return Y[
|
|
1511
|
-
}),
|
|
1508
|
+
} = ge(), w = V(() => `${ne[y.value.month || 1]} ${y.value.year}`), T = V(() => h(y.value.month || 1, y.value.year || 1, k.value)), M = V(() => l(y.value.day || 1, y.value.month || 1, y.value.year || 1, k.value)), O = V(() => M.value.days.find((S) => n(S.date, y.value)) || M.value.days[1]), j = V(() => {
|
|
1509
|
+
const S = M.value.days.findIndex((R) => n(R.date, y.value)), A = S > -1 ? S : 1;
|
|
1510
|
+
return Y[A];
|
|
1511
|
+
}), D = V(() => P.value === 3), W = V(() => P.value === 2), $ = V(() => P.value === 1);
|
|
1512
1512
|
function p(S) {
|
|
1513
1513
|
P.value = S;
|
|
1514
1514
|
}
|
|
@@ -1535,16 +1535,16 @@ const kt = /* @__PURE__ */ H({
|
|
|
1535
1535
|
onPrevious: (S) => N(S),
|
|
1536
1536
|
onNext: (S) => F(S),
|
|
1537
1537
|
onResetToToday: () => E()
|
|
1538
|
-
}, null), m("div", null, [
|
|
1539
|
-
day:
|
|
1538
|
+
}, null), m("div", null, [$.value && m(I, {
|
|
1539
|
+
day: O.value,
|
|
1540
1540
|
dayInWeek: j.value,
|
|
1541
1541
|
events: g.value
|
|
1542
1542
|
}, null), W.value && m(Z, {
|
|
1543
1543
|
week: M.value,
|
|
1544
1544
|
events: g.value
|
|
1545
|
-
}, null),
|
|
1545
|
+
}, null), D.value && m(X, {
|
|
1546
1546
|
activeDay: y.value,
|
|
1547
|
-
dates:
|
|
1547
|
+
dates: T.value,
|
|
1548
1548
|
events: g.value
|
|
1549
1549
|
}, null)])]);
|
|
1550
1550
|
}
|