@farris/ui-vue 1.7.0-beta.3 → 1.7.0-beta.4
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/avatar/index.esm.js +10 -1
- package/components/avatar/index.umd.cjs +1 -1
- package/components/calendar/index.esm.js +178 -176
- package/components/calendar/index.umd.cjs +2 -2
- package/components/collection-property-editor/index.esm.js +48 -46
- package/components/collection-property-editor/index.umd.cjs +2 -2
- package/components/combo-list/index.esm.js +319 -300
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/comment/index.esm.js +2287 -1161
- package/components/comment/index.umd.cjs +7 -7
- package/components/component/index.esm.js +3 -1
- package/components/component/index.umd.cjs +2 -2
- package/components/condition/index.esm.js +926 -901
- package/components/condition/index.umd.cjs +2 -2
- package/components/data-view/index.esm.js +898 -899
- package/components/data-view/index.umd.cjs +1 -1
- package/components/drawer/index.esm.js +3 -1
- package/components/drawer/index.umd.cjs +2 -2
- package/components/dynamic-form/index.esm.js +239 -221
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/dynamic-resolver/index.esm.js +11 -9
- package/components/dynamic-resolver/index.umd.cjs +2 -2
- package/components/expression-editor/index.esm.js +1299 -1279
- package/components/expression-editor/index.umd.cjs +4 -4
- package/components/filter-bar/index.esm.js +731 -678
- package/components/filter-bar/index.umd.cjs +2 -2
- package/components/filter-condition-editor/index.esm.js +1792 -1772
- package/components/filter-condition-editor/index.umd.cjs +4 -4
- package/components/image/index.esm.js +246 -240
- package/components/image/index.umd.cjs +2 -2
- package/components/language-textbox/index.esm.js +9 -7
- package/components/language-textbox/index.umd.cjs +2 -2
- package/components/list-view/index.esm.js +1 -1
- package/components/list-view/index.umd.cjs +1 -1
- package/components/locale/index.esm.js +2009 -886
- package/components/locale/index.umd.cjs +6 -6
- package/components/number-range/index.esm.js +190 -181
- package/components/number-range/index.umd.cjs +1 -1
- package/components/order/index.esm.js +734 -714
- package/components/order/index.umd.cjs +5 -5
- package/components/property-panel/index.esm.js +60 -49
- package/components/property-panel/index.umd.cjs +3 -3
- package/components/query-solution/index.esm.js +2461 -2500
- package/components/query-solution/index.umd.cjs +6 -6
- package/components/radio-group/index.esm.js +30 -30
- package/components/radio-group/index.umd.cjs +1 -1
- package/components/schema-selector/index.esm.js +238 -238
- package/components/schema-selector/index.umd.cjs +4 -4
- package/components/section/index.esm.js +217 -302
- package/components/section/index.umd.cjs +2 -2
- package/components/sort-condition-editor/index.esm.js +1793 -1773
- package/components/sort-condition-editor/index.umd.cjs +4 -4
- package/components/transfer/index.esm.js +155 -155
- package/components/transfer/index.umd.cjs +3 -3
- package/designer/data-grid/index.esm.js +895 -867
- package/designer/data-grid/index.umd.cjs +5 -5
- package/designer/data-view/index.esm.js +145 -144
- package/designer/data-view/index.umd.cjs +2 -2
- package/designer/drawer/index.esm.js +73 -71
- package/designer/drawer/index.umd.cjs +2 -2
- package/designer/dynamic-form/index.esm.js +87 -65
- package/designer/dynamic-form/index.umd.cjs +2 -2
- package/designer/farris-designer.all.esm.js +14 -3
- package/designer/farris-designer.all.umd.cjs +3 -3
- package/designer/input-group/index.esm.js +34 -14
- package/designer/input-group/index.umd.cjs +1 -1
- package/designer/list-view/index.esm.js +1 -1
- package/designer/list-view/index.umd.cjs +1 -1
- package/designer/radio-group/index.esm.js +15 -2
- package/designer/radio-group/index.umd.cjs +1 -1
- package/designer/section/index.esm.js +129 -119
- package/designer/section/index.umd.cjs +1 -1
- package/designer/time-picker/index.esm.js +140 -131
- package/designer/time-picker/index.umd.cjs +1 -1
- package/farris.all.esm.js +13578 -12394
- package/farris.all.umd.cjs +26 -26
- package/index.css +1 -1
- package/locales/data-grid/ui/en.json +2 -1
- package/locales/data-grid/ui/zh-CHS.json +2 -1
- package/locales/data-grid/ui/zh-CHT.json +2 -1
- package/locales/designer/en.json +12 -10
- package/locales/designer/zh-CHS.json +19 -17
- package/locales/designer/zh-CHT.json +19 -17
- package/locales/ui/en.json +4 -2
- package/locales/ui/zh-CHS.json +11 -9
- package/locales/ui/zh-CHT.json +11 -9
- package/package.json +1 -1
- package/package.zip +0 -0
- package/types/combo-list/src/composition/types.d.ts +1 -0
- package/types/condition/src/composition/condition-value/number-spinner-value.d.ts +1 -1
- package/types/condition/src/composition/use-field-config.d.ts +1 -1
- package/types/condition/src/condition.props.d.ts +1 -1
- package/types/data-view/designer/property-config/use-command-option.d.ts +12 -0
- package/types/image/src/property-config/image.property-config.d.ts +5 -5
- package/types/locale/src/lib/locale.service.d.ts +2 -2
- package/types/property-panel/src/composition/entity/input-base-property.d.ts +7 -0
- package/types/query-solution/src/designer/query-solution-config/composition/use-util.d.ts +0 -20
- package/types/section/src/designer/section.design.props.d.ts +17 -0
- package/types/section/src/section.props.d.ts +0 -25
|
@@ -37,7 +37,7 @@ function It(e, t) {
|
|
|
37
37
|
component: `${v.componentId}-component`
|
|
38
38
|
}), a;
|
|
39
39
|
}
|
|
40
|
-
function g(v, a,
|
|
40
|
+
function g(v, a, u) {
|
|
41
41
|
var y, f, E, s;
|
|
42
42
|
const w = (f = (y = a == null ? void 0 : a.parentComponentInstance) == null ? void 0 : y.schema) == null ? void 0 : f.type, r = (s = (E = n.getFormSchema()) == null ? void 0 : E.module) == null ? void 0 : s.templateId;
|
|
43
43
|
if (["double-list-template", "tree-list-template", "list-template"].includes(r))
|
|
@@ -74,18 +74,18 @@ function It(e, t) {
|
|
|
74
74
|
}), [a];
|
|
75
75
|
}
|
|
76
76
|
function O(v) {
|
|
77
|
-
const a = e.getSchemaByType("component"),
|
|
77
|
+
const a = e.getSchemaByType("component"), u = b(v);
|
|
78
78
|
return Object.assign(a, {
|
|
79
79
|
id: `${v.componentId}-component`,
|
|
80
80
|
viewModel: `${v.componentId}-component-viewmodel`,
|
|
81
81
|
componentType: v.componentType,
|
|
82
82
|
appearance: { class: "f-grid-is-sub f-utils-overflow-auto" },
|
|
83
|
-
contents:
|
|
83
|
+
contents: u
|
|
84
84
|
}), a;
|
|
85
85
|
}
|
|
86
86
|
function T(v) {
|
|
87
|
-
const a = M(v),
|
|
88
|
-
return r.module.viewmodels.push(w), r.module.components.push(
|
|
87
|
+
const a = M(v), u = O(v), w = p(v), r = n.getFormSchema();
|
|
88
|
+
return r.module.viewmodels.push(w), r.module.components.push(u), o.assembleDesignViewModel(), g(a, v);
|
|
89
89
|
}
|
|
90
90
|
return { createComponent: T };
|
|
91
91
|
}
|
|
@@ -93,7 +93,7 @@ function Vt(e, t, n, o) {
|
|
|
93
93
|
var M, g, b, O, T, v;
|
|
94
94
|
const p = n.parentComponentInstance;
|
|
95
95
|
if (p && o) {
|
|
96
|
-
const a = Math.random().toString(36).slice(2, 6),
|
|
96
|
+
const a = Math.random().toString(36).slice(2, 6), u = {
|
|
97
97
|
componentId: `calendar-${a}`,
|
|
98
98
|
componentName: ((M = n.bindingSourceContext) == null ? void 0 : M.entityTitle) || ((b = (g = n.bindingSourceContext) == null ? void 0 : g.bindingEntity) == null ? void 0 : b.name) || `日历-${a}`,
|
|
99
99
|
componentType: "calendar",
|
|
@@ -102,7 +102,7 @@ function Vt(e, t, n, o) {
|
|
|
102
102
|
bindTo: ((O = n.bindingSourceContext) == null ? void 0 : O.bindTo) || "",
|
|
103
103
|
dataSource: (v = (T = n.bindingSourceContext) == null ? void 0 : T.bindingEntity) == null ? void 0 : v.label
|
|
104
104
|
}, { createComponent: w } = It(e, o);
|
|
105
|
-
return w(
|
|
105
|
+
return w(u);
|
|
106
106
|
} else
|
|
107
107
|
return t;
|
|
108
108
|
}
|
|
@@ -275,8 +275,8 @@ function se() {
|
|
|
275
275
|
);
|
|
276
276
|
}
|
|
277
277
|
function n(a) {
|
|
278
|
-
const
|
|
279
|
-
return a.year || (a.year =
|
|
278
|
+
const u = /* @__PURE__ */ new Date();
|
|
279
|
+
return a.year || (a.year = u.getFullYear()), a.month || (a.month = u.getMonth() + 1), a.day || (a.day = 1), new Date(
|
|
280
280
|
a.year,
|
|
281
281
|
a.month - 1,
|
|
282
282
|
a.day,
|
|
@@ -306,9 +306,9 @@ function se() {
|
|
|
306
306
|
function g(a) {
|
|
307
307
|
return Math.round(M(a) / 1e3);
|
|
308
308
|
}
|
|
309
|
-
function b(a,
|
|
310
|
-
const r = M(
|
|
311
|
-
return i - y > y - r ?
|
|
309
|
+
function b(a, u, w) {
|
|
310
|
+
const r = M(u), i = M(w), y = M(a);
|
|
311
|
+
return i - y > y - r ? u : w;
|
|
312
312
|
}
|
|
313
313
|
function O() {
|
|
314
314
|
const a = /* @__PURE__ */ new Date();
|
|
@@ -332,8 +332,8 @@ function se() {
|
|
|
332
332
|
} : e();
|
|
333
333
|
}
|
|
334
334
|
function v(a) {
|
|
335
|
-
const
|
|
336
|
-
return
|
|
335
|
+
const u = o(a);
|
|
336
|
+
return u === 0 || u === 6;
|
|
337
337
|
}
|
|
338
338
|
return { convertDateToDateObject: T, emptyDate: e, getDate: t, getDate2: n, getDayNumber: o, getEpocTime: g, getNearDate: b, getWeekdayIndex: p, getTimeInMilliseconds: M, getToday: O, isWeekEnd: v };
|
|
339
339
|
}
|
|
@@ -409,7 +409,7 @@ function Yt() {
|
|
|
409
409
|
year: (f.year || 1) + 1
|
|
410
410
|
};
|
|
411
411
|
}
|
|
412
|
-
function
|
|
412
|
+
function u(f) {
|
|
413
413
|
return {
|
|
414
414
|
day: f.day,
|
|
415
415
|
month: f.month,
|
|
@@ -439,24 +439,24 @@ function Yt() {
|
|
|
439
439
|
if (P === -1)
|
|
440
440
|
throw new Error("Invalid firstDayOfWeek value");
|
|
441
441
|
const c = (t(h) - P + 7) % 7, N = e(), C = (x) => x.day === N.day && x.month === N.month && x.year === N.year, k = [];
|
|
442
|
-
let
|
|
442
|
+
let d = { ...h };
|
|
443
443
|
for (let x = 0; x < c; x++)
|
|
444
|
-
|
|
444
|
+
d = b(d);
|
|
445
445
|
for (let x = 0; x < 7; x++) {
|
|
446
446
|
let S;
|
|
447
|
-
if (
|
|
447
|
+
if (d.month === m.month && d.year === m.year)
|
|
448
448
|
S = K.current;
|
|
449
449
|
else {
|
|
450
450
|
const F = g(h.month, h.year);
|
|
451
|
-
|
|
451
|
+
d.month === F.month && d.year === F.year ? S = K.previous : S = K.next;
|
|
452
452
|
}
|
|
453
|
-
const L = C(
|
|
453
|
+
const L = C(d), $ = n(d);
|
|
454
454
|
k.push({
|
|
455
|
-
date:
|
|
455
|
+
date: d,
|
|
456
456
|
monthTag: S,
|
|
457
457
|
isCurrent: L,
|
|
458
458
|
weekEnd: $
|
|
459
|
-
}), x < 6 && (
|
|
459
|
+
}), x < 6 && (d = O(d));
|
|
460
460
|
}
|
|
461
461
|
return {
|
|
462
462
|
days: k,
|
|
@@ -474,8 +474,8 @@ function Yt() {
|
|
|
474
474
|
N = b(N);
|
|
475
475
|
let C = N;
|
|
476
476
|
for (let k = 0; k < 6; k++) {
|
|
477
|
-
const
|
|
478
|
-
m.push(
|
|
477
|
+
const d = i(C.day, C.month, C.year, s, D);
|
|
478
|
+
m.push(d);
|
|
479
479
|
for (let I = 0; I < 7; I++)
|
|
480
480
|
C = O(C);
|
|
481
481
|
}
|
|
@@ -491,7 +491,7 @@ function Yt() {
|
|
|
491
491
|
getDayInPreviousMonth: T,
|
|
492
492
|
getDayInNextMonth: v,
|
|
493
493
|
getNextYear: a,
|
|
494
|
-
getPreviousYear:
|
|
494
|
+
getPreviousYear: u
|
|
495
495
|
};
|
|
496
496
|
}
|
|
497
497
|
const ae = ["year", "month", "week", "day"];
|
|
@@ -532,7 +532,7 @@ function Me() {
|
|
|
532
532
|
function a(r, i) {
|
|
533
533
|
return t(i) && e(r) <= e(i);
|
|
534
534
|
}
|
|
535
|
-
function
|
|
535
|
+
function u(r, i) {
|
|
536
536
|
return e({ year: r.year, month: r.month, day: r.day }) === e({ year: i.year, month: i.month, day: i.day });
|
|
537
537
|
}
|
|
538
538
|
function w(r, i) {
|
|
@@ -550,7 +550,7 @@ function Me() {
|
|
|
550
550
|
isMonthDisabledByDisableSince: v,
|
|
551
551
|
isMonthDisabledByDisableUntil: a,
|
|
552
552
|
sameTime: w,
|
|
553
|
-
sameDay:
|
|
553
|
+
sameDay: u
|
|
554
554
|
};
|
|
555
555
|
}
|
|
556
556
|
const qt = {
|
|
@@ -580,7 +580,7 @@ const qt = {
|
|
|
580
580
|
top: `${b}px`,
|
|
581
581
|
left: `${T.value * (b + 1) + (T.value - 1) * (O + 1)}px`
|
|
582
582
|
})), a = R(() => T.value === 4 ? o.value : T.value === 3 ? p.value : T.value === 1 ? g.value : M.value);
|
|
583
|
-
function
|
|
583
|
+
function u(y) {
|
|
584
584
|
const f = ae.indexOf(y) + 1;
|
|
585
585
|
T.value = f, t.emit("viewChange", f);
|
|
586
586
|
}
|
|
@@ -625,10 +625,10 @@ const qt = {
|
|
|
625
625
|
style: "width: 134px;"
|
|
626
626
|
}, [l("span", {
|
|
627
627
|
class: "f-calendar-view-switch-monthly",
|
|
628
|
-
onClick: (y) =>
|
|
628
|
+
onClick: (y) => u("year")
|
|
629
629
|
}, [g.value]), l("span", {
|
|
630
630
|
class: "f-calendar-view-switch-monthly",
|
|
631
|
-
onClick: (y) =>
|
|
631
|
+
onClick: (y) => u("month")
|
|
632
632
|
}, [M.value])]), l("div", {
|
|
633
633
|
class: "f-calendar-view-switch-active-view",
|
|
634
634
|
style: v.value
|
|
@@ -671,18 +671,18 @@ const qt = {
|
|
|
671
671
|
} = oe("eventsComposition"), {
|
|
672
672
|
equal: v
|
|
673
673
|
} = T, a = W();
|
|
674
|
-
function
|
|
674
|
+
function u(C, k) {
|
|
675
675
|
return e.enableCrossDay ? g(C, k) : b(C, k);
|
|
676
676
|
}
|
|
677
|
-
const w = W(
|
|
677
|
+
const w = W(u(e.dates, M.value));
|
|
678
678
|
Y(() => e.enableCrossDay, () => {
|
|
679
|
-
w.value =
|
|
679
|
+
w.value = u(e.dates, e.events);
|
|
680
680
|
}), Y(() => e.dates, () => {
|
|
681
|
-
w.value =
|
|
681
|
+
w.value = u(e.dates, M.value);
|
|
682
682
|
}), Y(() => e.activeDay, () => {
|
|
683
683
|
p.value = e.activeDay;
|
|
684
684
|
}), Y(() => e.events, () => {
|
|
685
|
-
M.value = e.events, w.value =
|
|
685
|
+
M.value = e.events, w.value = u(e.dates, e.events);
|
|
686
686
|
}), Y(() => e.daysInWeek, (C, k) => {
|
|
687
687
|
n.value = C;
|
|
688
688
|
});
|
|
@@ -693,20 +693,20 @@ const qt = {
|
|
|
693
693
|
day: p.value.day
|
|
694
694
|
}, C);
|
|
695
695
|
}
|
|
696
|
-
const i = (C, k,
|
|
696
|
+
const i = (C, k, d) => {
|
|
697
697
|
const x = {
|
|
698
698
|
"f-datepicker-no-currmonth": C.monthTag === K.previous || C.monthTag === K.next,
|
|
699
699
|
"f-calendar-weekday": C.weekEnd,
|
|
700
700
|
"f-calendar-workday": !C.weekEnd,
|
|
701
701
|
"f-calendar-today": C.isCurrent
|
|
702
|
-
}, S = `d_${k}_${
|
|
702
|
+
}, S = `d_${k}_${d}`;
|
|
703
703
|
return x[S] = !0, x;
|
|
704
704
|
}, y = (C) => {
|
|
705
|
-
const k = C.monthTag === K.current && r(C.date),
|
|
705
|
+
const k = C.monthTag === K.current && r(C.date), d = C.isCurrent && o.value;
|
|
706
706
|
return {
|
|
707
707
|
"f-calendar-month-view-date": !0,
|
|
708
708
|
"f-calendar-month-view-selected": k,
|
|
709
|
-
"f-calendar-month-view-current":
|
|
709
|
+
"f-calendar-month-view-current": d
|
|
710
710
|
};
|
|
711
711
|
};
|
|
712
712
|
function f(C, k) {
|
|
@@ -731,8 +731,8 @@ const qt = {
|
|
|
731
731
|
const k = C.querySelector(".f-calendar--daygrid-row");
|
|
732
732
|
if (!k)
|
|
733
733
|
return 0;
|
|
734
|
-
const
|
|
735
|
-
return Math.max(0, Math.floor(
|
|
734
|
+
const d = k.offsetHeight;
|
|
735
|
+
return Math.max(0, Math.floor(d / 19) - 1);
|
|
736
736
|
};
|
|
737
737
|
function h() {
|
|
738
738
|
return l("div", {
|
|
@@ -747,26 +747,26 @@ const qt = {
|
|
|
747
747
|
function P(C, k) {
|
|
748
748
|
return l("div", {
|
|
749
749
|
class: "f-calendar--daygrid-row-header"
|
|
750
|
-
}, [l("table", null, [l("tbody", null, [l("tr", null, [C.days && C.days.map((
|
|
751
|
-
class: i(
|
|
752
|
-
onClick: (x) => f(x,
|
|
750
|
+
}, [l("table", null, [l("tbody", null, [l("tr", null, [C.days && C.days.map((d, I) => l("td", {
|
|
751
|
+
class: i(d, k, I),
|
|
752
|
+
onClick: (x) => f(x, d),
|
|
753
753
|
style: "position: relative;"
|
|
754
754
|
}, null))])])])]);
|
|
755
755
|
}
|
|
756
756
|
function j(C, k) {
|
|
757
|
-
return C.days && C.days.map((
|
|
758
|
-
class: i(
|
|
757
|
+
return C.days && C.days.map((d, I) => l("td", {
|
|
758
|
+
class: i(d, k, I)
|
|
759
759
|
}, [l("div", {
|
|
760
760
|
class: "f-calendar-month-view-title"
|
|
761
761
|
}, [l("div", {
|
|
762
|
-
class: y(
|
|
763
|
-
}, [
|
|
762
|
+
class: y(d)
|
|
763
|
+
}, [d.date.day]), l("div", {
|
|
764
764
|
class: "f-calendar-month-view-date-month"
|
|
765
|
-
}, [
|
|
765
|
+
}, [d.date.day === 1 ? e.monthLabels[d.date.month || 1] : ""])])]));
|
|
766
766
|
}
|
|
767
767
|
function c(C) {
|
|
768
|
-
const k = Math.max(0, D.value || 0),
|
|
769
|
-
return
|
|
768
|
+
const k = Math.max(0, D.value || 0), d = !!(C.events && C.events.length > k), I = le([...C.events || []]), x = d ? I.slice(0, k) : I;
|
|
769
|
+
return d && x && x.length > 0 && x[x.length - 1].forEach((S) => {
|
|
770
770
|
S.data && (S.showMore = !0, S.moreCount = C.events.length - k + 1);
|
|
771
771
|
}), x.map((S, L) => l("tr", null, [S.map(($, F) => $.showMore ? l("td", {
|
|
772
772
|
colspan: 1,
|
|
@@ -880,7 +880,7 @@ const qt = {
|
|
|
880
880
|
}), Y(() => e.events, () => {
|
|
881
881
|
g.value = e.events, a();
|
|
882
882
|
});
|
|
883
|
-
const
|
|
883
|
+
const u = (s) => ({
|
|
884
884
|
"f-calendar-week-view-date": !0,
|
|
885
885
|
"f-calendar-week-view-current": s.isCurrent && M.value
|
|
886
886
|
});
|
|
@@ -896,7 +896,7 @@ const qt = {
|
|
|
896
896
|
}, [o.value.map((s, D) => l("div", {
|
|
897
897
|
class: "f-calendar-week-view-header-cell"
|
|
898
898
|
}, [l("div", {
|
|
899
|
-
class:
|
|
899
|
+
class: u(p.value.days[D])
|
|
900
900
|
}, [p.value.days[D].date.day]), l("span", null, [s])]))])])]);
|
|
901
901
|
}
|
|
902
902
|
function r() {
|
|
@@ -1011,7 +1011,7 @@ const qt = {
|
|
|
1011
1011
|
}), Y(() => e.events, () => {
|
|
1012
1012
|
g.value = e.events, a();
|
|
1013
1013
|
});
|
|
1014
|
-
const
|
|
1014
|
+
const u = (s) => ({
|
|
1015
1015
|
"f-calendar-day-view-date": !0,
|
|
1016
1016
|
"f-calendar-day-view-current": s.isCurrent && M.value
|
|
1017
1017
|
});
|
|
@@ -1027,7 +1027,7 @@ const qt = {
|
|
|
1027
1027
|
}, [l("div", {
|
|
1028
1028
|
class: "f-calendar-day-view-header-cell"
|
|
1029
1029
|
}, [l("div", {
|
|
1030
|
-
class:
|
|
1030
|
+
class: u(p.value)
|
|
1031
1031
|
}, [p.value.date.day]), l("span", null, [o.value])])])])]);
|
|
1032
1032
|
}
|
|
1033
1033
|
function r() {
|
|
@@ -1049,8 +1049,8 @@ const qt = {
|
|
|
1049
1049
|
};
|
|
1050
1050
|
}
|
|
1051
1051
|
function y(s) {
|
|
1052
|
-
var
|
|
1053
|
-
const c = (((
|
|
1052
|
+
var d, I, x, S;
|
|
1053
|
+
const c = (((d = s.starts) == null ? void 0 : d.hour) || 0) + (((I = s.starts) == null ? void 0 : I.minute) || 0) / 60;
|
|
1054
1054
|
return {
|
|
1055
1055
|
height: `${44 * ((((x = s.ends) == null ? void 0 : x.hour) || 0) + (((S = s.ends) == null ? void 0 : S.minute) || 0) / 60 - c) - 2 - 2 - 1 - 1}px`
|
|
1056
1056
|
};
|
|
@@ -1122,9 +1122,9 @@ const qt = {
|
|
|
1122
1122
|
const w = a.querySelector(".yearview-monthitem").offsetHeight;
|
|
1123
1123
|
return Math.max(0, Math.floor((w - 40) / 24));
|
|
1124
1124
|
}, O = (a) => {
|
|
1125
|
-
const
|
|
1126
|
-
if (
|
|
1127
|
-
const w = le(a), r =
|
|
1125
|
+
const u = !!(a && a.length > g.value);
|
|
1126
|
+
if (u) {
|
|
1127
|
+
const w = le(a), r = u ? w == null ? void 0 : w.slice(0, g.value) : w;
|
|
1128
1128
|
if (r && r.length > 0) {
|
|
1129
1129
|
const i = r[r.length - 1];
|
|
1130
1130
|
i.data && (i.showMore = !0, i.moreCount = a.length - g.value + 1);
|
|
@@ -1133,18 +1133,18 @@ const qt = {
|
|
|
1133
1133
|
}
|
|
1134
1134
|
return a;
|
|
1135
1135
|
}, T = R(() => p(e.activeYear, e.events));
|
|
1136
|
-
function v(a,
|
|
1136
|
+
function v(a, u) {
|
|
1137
1137
|
const w = {
|
|
1138
1138
|
year: e.activeYear,
|
|
1139
|
-
month: parseInt(
|
|
1139
|
+
month: parseInt(u, 10)
|
|
1140
1140
|
};
|
|
1141
1141
|
t.emit("moreClick", a, {
|
|
1142
1142
|
date: w,
|
|
1143
1143
|
view: "year"
|
|
1144
1144
|
});
|
|
1145
1145
|
}
|
|
1146
|
-
return Y(() => e.height, (a,
|
|
1147
|
-
a !==
|
|
1146
|
+
return Y(() => e.height, (a, u) => {
|
|
1147
|
+
a !== u && De(() => {
|
|
1148
1148
|
g.value = b(), o.value = {
|
|
1149
1149
|
...e.monthLabels
|
|
1150
1150
|
};
|
|
@@ -1156,10 +1156,10 @@ const qt = {
|
|
|
1156
1156
|
ref: n
|
|
1157
1157
|
}, [l("ul", {
|
|
1158
1158
|
style: "height: 100%;overflow: auto; display: flex;flex-wrap: wrap;"
|
|
1159
|
-
}, [Object.keys(e.monthLabels).map((a,
|
|
1159
|
+
}, [Object.keys(e.monthLabels).map((a, u) => {
|
|
1160
1160
|
var w;
|
|
1161
1161
|
return l("li", {
|
|
1162
|
-
key:
|
|
1162
|
+
key: u,
|
|
1163
1163
|
class: "col-md-4 col-lg-3 col-sm-12 yearview-monthitem"
|
|
1164
1164
|
}, [l("div", {
|
|
1165
1165
|
class: "f-calendar-year-view-content w-100 h-100 d-flex flex-column",
|
|
@@ -1236,7 +1236,7 @@ function Jt() {
|
|
|
1236
1236
|
Thu: e("calendar.dayLabels.Thu"),
|
|
1237
1237
|
Fri: e("calendar.dayLabels.Fri"),
|
|
1238
1238
|
Sat: e("calendar.dayLabels.Sat")
|
|
1239
|
-
}, o = e("calendar.today"), p = e("calendar.thisYear"), M = e("calendar.yearView"), g = e("calendar.monthView"), b = e("calendar.weekView"), O = e("calendar.dayView"), T = e("calendar.titleFormat"), v = e("calendar.yearViewTitleFormat"), a = e("calendar.prevMonth"),
|
|
1239
|
+
}, o = e("calendar.today"), p = e("calendar.thisYear"), M = e("calendar.yearView"), g = e("calendar.monthView"), b = e("calendar.weekView"), O = e("calendar.dayView"), T = e("calendar.titleFormat"), v = e("calendar.yearViewTitleFormat"), a = e("calendar.prevMonth"), u = e("calendar.nextMonth"), w = e("calendar.prevWeek"), r = e("calendar.nextWeek"), i = e("calendar.prevDay"), y = e("calendar.nextDay"), f = e("calendar.prevYear"), E = e("calendar.nextYear"), s = e("calendar.more", "") || "还有 #count# 项...";
|
|
1240
1240
|
return {
|
|
1241
1241
|
monthLabels: t,
|
|
1242
1242
|
weekDayLabels: n,
|
|
@@ -1246,7 +1246,7 @@ function Jt() {
|
|
|
1246
1246
|
dayViewTitle: O,
|
|
1247
1247
|
titleFormat: T,
|
|
1248
1248
|
prevMonth: a,
|
|
1249
|
-
nextMonth:
|
|
1249
|
+
nextMonth: u,
|
|
1250
1250
|
prevWeek: w,
|
|
1251
1251
|
nextWeek: r,
|
|
1252
1252
|
prevDay: i,
|
|
@@ -1303,22 +1303,22 @@ function Kt(e, t, n, o, p, M) {
|
|
|
1303
1303
|
const {
|
|
1304
1304
|
eventDateField: N,
|
|
1305
1305
|
startDateField: C
|
|
1306
|
-
} = e, k = _(c, N) || _(c, C),
|
|
1307
|
-
|
|
1306
|
+
} = e, k = _(c, N) || _(c, C), d = j(k);
|
|
1307
|
+
d && m.forEach((I) => {
|
|
1308
1308
|
I.days.forEach((x) => {
|
|
1309
1309
|
var S;
|
|
1310
|
-
b(x.date,
|
|
1310
|
+
b(x.date, d) && ((S = x.events) == null || S.push({
|
|
1311
1311
|
id: c[e.idField],
|
|
1312
1312
|
data: {
|
|
1313
1313
|
...c
|
|
1314
1314
|
},
|
|
1315
|
-
eventDate:
|
|
1315
|
+
eventDate: d,
|
|
1316
1316
|
isSingleDay: !0
|
|
1317
1317
|
}));
|
|
1318
1318
|
});
|
|
1319
1319
|
});
|
|
1320
1320
|
}), m.forEach((c) => {
|
|
1321
|
-
const N = [], C = c.days.map((
|
|
1321
|
+
const N = [], C = c.days.map((d, I) => d.events && d.events.length > 0 ? d.events.map((x, S) => ({
|
|
1322
1322
|
...x,
|
|
1323
1323
|
// 在非跨天模式下,colspan为1,rowspan为1
|
|
1324
1324
|
colspan: 1,
|
|
@@ -1326,11 +1326,11 @@ function Kt(e, t, n, o, p, M) {
|
|
|
1326
1326
|
// 添加位置信息
|
|
1327
1327
|
startIndex: I,
|
|
1328
1328
|
endIndex: I
|
|
1329
|
-
})) : []), k = Math.max(...C.map((
|
|
1330
|
-
for (let
|
|
1329
|
+
})) : []), k = Math.max(...C.map((d) => d.length), 0);
|
|
1330
|
+
for (let d = 0; d < k; d++) {
|
|
1331
1331
|
const I = [];
|
|
1332
1332
|
for (let x = 0; x < 7; x++)
|
|
1333
|
-
C[x][
|
|
1333
|
+
C[x][d] ? I.push(C[x][d]) : I.push({
|
|
1334
1334
|
colspan: 1,
|
|
1335
1335
|
rowspan: 1,
|
|
1336
1336
|
data: null
|
|
@@ -1340,7 +1340,7 @@ function Kt(e, t, n, o, p, M) {
|
|
|
1340
1340
|
c.events = N;
|
|
1341
1341
|
}), m;
|
|
1342
1342
|
}
|
|
1343
|
-
function
|
|
1343
|
+
function u(m, h) {
|
|
1344
1344
|
m.forEach((c) => {
|
|
1345
1345
|
c.events = [];
|
|
1346
1346
|
});
|
|
@@ -1359,12 +1359,12 @@ function Kt(e, t, n, o, p, M) {
|
|
|
1359
1359
|
const {
|
|
1360
1360
|
startDateField: N,
|
|
1361
1361
|
endDateField: C
|
|
1362
|
-
} = e, k = j(_(c, N)),
|
|
1363
|
-
!k || !
|
|
1362
|
+
} = e, k = j(_(c, N)), d = j(_(c, C));
|
|
1363
|
+
!k || !d || m.forEach((I) => {
|
|
1364
1364
|
var $, F, A, Q;
|
|
1365
1365
|
const x = I.days[0].date, S = I.days[I.days.length - 1].date;
|
|
1366
|
-
if (!(g(
|
|
1367
|
-
if (b(k,
|
|
1366
|
+
if (!(g(d, x, !1) || g(S, k, !1)))
|
|
1367
|
+
if (b(k, d))
|
|
1368
1368
|
($ = I.events) == null || $.push({
|
|
1369
1369
|
id: c[e.idField],
|
|
1370
1370
|
data: {
|
|
@@ -1374,7 +1374,7 @@ function Kt(e, t, n, o, p, M) {
|
|
|
1374
1374
|
isSingleDay: !0
|
|
1375
1375
|
});
|
|
1376
1376
|
else {
|
|
1377
|
-
const J = g(x, k, !1) ? k : x, G = g(
|
|
1377
|
+
const J = g(x, k, !1) ? k : x, G = g(d, S, !1) ? d : S;
|
|
1378
1378
|
let z = -1, U = -1;
|
|
1379
1379
|
I.days.forEach((q, te) => {
|
|
1380
1380
|
b(q.date, J) && (z = te), b(q.date, G) && (U = te);
|
|
@@ -1396,7 +1396,7 @@ function Kt(e, t, n, o, p, M) {
|
|
|
1396
1396
|
}));
|
|
1397
1397
|
}
|
|
1398
1398
|
else
|
|
1399
|
-
b(k, S) && !b(
|
|
1399
|
+
b(k, S) && !b(d, S) && ((A = I.events) == null || A.push({
|
|
1400
1400
|
id: `${c[e.idField]}_start`,
|
|
1401
1401
|
data: {
|
|
1402
1402
|
...c
|
|
@@ -1405,12 +1405,12 @@ function Kt(e, t, n, o, p, M) {
|
|
|
1405
1405
|
isSingleDay: !0,
|
|
1406
1406
|
isOverlapping: !0,
|
|
1407
1407
|
originalId: c[e.idField]
|
|
1408
|
-
})), b(
|
|
1408
|
+
})), b(d, x) && !b(k, x) && ((Q = I.events) == null || Q.push({
|
|
1409
1409
|
id: `${c[e.idField]}_end`,
|
|
1410
1410
|
data: {
|
|
1411
1411
|
...c
|
|
1412
1412
|
},
|
|
1413
|
-
eventDate:
|
|
1413
|
+
eventDate: d,
|
|
1414
1414
|
isSingleDay: !0,
|
|
1415
1415
|
isOverlapping: !0,
|
|
1416
1416
|
originalId: c[e.idField]
|
|
@@ -1427,8 +1427,8 @@ function Kt(e, t, n, o, p, M) {
|
|
|
1427
1427
|
year: N.date.year,
|
|
1428
1428
|
month: N.date.month,
|
|
1429
1429
|
day: N.date.day
|
|
1430
|
-
}) : !1),
|
|
1431
|
-
|
|
1430
|
+
}) : !1), d = k == null ? void 0 : k.find((S) => S.isCrossDay), I = (k == null ? void 0 : k.filter((S) => S.isSingleDay)) || [];
|
|
1431
|
+
d && I.length > 0 && I.forEach((S) => {
|
|
1432
1432
|
var $, F;
|
|
1433
1433
|
(($ = c.events) == null ? void 0 : $.some((A) => (A.originalId === S.id || A.id === S.id) && b({
|
|
1434
1434
|
year: A.eventDate.year,
|
|
@@ -1452,23 +1452,23 @@ function Kt(e, t, n, o, p, M) {
|
|
|
1452
1452
|
});
|
|
1453
1453
|
}), m.forEach((c) => {
|
|
1454
1454
|
const N = [];
|
|
1455
|
-
for (let
|
|
1456
|
-
N[
|
|
1457
|
-
[...c.events].sort((
|
|
1458
|
-
if (
|
|
1455
|
+
for (let d = 0; d < 10; d++)
|
|
1456
|
+
N[d] = Array(7).fill(null);
|
|
1457
|
+
[...c.events].sort((d, I) => {
|
|
1458
|
+
if (d.isCrossDay && !I.isCrossDay)
|
|
1459
1459
|
return -1;
|
|
1460
|
-
if (!
|
|
1460
|
+
if (!d.isCrossDay && I.isCrossDay)
|
|
1461
1461
|
return 1;
|
|
1462
|
-
if (
|
|
1463
|
-
return
|
|
1464
|
-
const x =
|
|
1462
|
+
if (d.isCrossDay && I.isCrossDay)
|
|
1463
|
+
return d.startIndex - I.startIndex;
|
|
1464
|
+
const x = d.eventDate, S = I.eventDate;
|
|
1465
1465
|
return x.year !== S.year ? x.year - S.year : x.month !== S.month ? x.month - S.month : x.day - S.day;
|
|
1466
|
-
}).forEach((
|
|
1466
|
+
}).forEach((d) => {
|
|
1467
1467
|
let I = 0, x = !1, S = 0, L = 1;
|
|
1468
|
-
for (
|
|
1469
|
-
year:
|
|
1470
|
-
month:
|
|
1471
|
-
day:
|
|
1468
|
+
for (d.isCrossDay ? (S = d.startIndex, L = d.colspan) : (S = c.days.findIndex(($) => b({
|
|
1469
|
+
year: d.eventDate.year,
|
|
1470
|
+
month: d.eventDate.month,
|
|
1471
|
+
day: d.eventDate.day
|
|
1472
1472
|
}, {
|
|
1473
1473
|
year: $.date.year,
|
|
1474
1474
|
month: $.date.month,
|
|
@@ -1482,8 +1482,8 @@ function Kt(e, t, n, o, p, M) {
|
|
|
1482
1482
|
}
|
|
1483
1483
|
if ($) {
|
|
1484
1484
|
for (let F = S; F < S + L; F++)
|
|
1485
|
-
N[I][F] = F === S ?
|
|
1486
|
-
...
|
|
1485
|
+
N[I][F] = F === S ? d : {
|
|
1486
|
+
...d,
|
|
1487
1487
|
isPlaceholder: !0,
|
|
1488
1488
|
colspan: F === S ? L : 0
|
|
1489
1489
|
};
|
|
@@ -1493,11 +1493,11 @@ function Kt(e, t, n, o, p, M) {
|
|
|
1493
1493
|
}
|
|
1494
1494
|
});
|
|
1495
1495
|
const k = [];
|
|
1496
|
-
N.forEach((
|
|
1497
|
-
if (
|
|
1496
|
+
N.forEach((d) => {
|
|
1497
|
+
if (d.some((I) => I !== null)) {
|
|
1498
1498
|
const I = [];
|
|
1499
|
-
for (let x = 0; x <
|
|
1500
|
-
const S =
|
|
1499
|
+
for (let x = 0; x < d.length; x++) {
|
|
1500
|
+
const S = d[x];
|
|
1501
1501
|
S === null ? I.push({
|
|
1502
1502
|
colspan: 1,
|
|
1503
1503
|
rowspan: 1,
|
|
@@ -1520,8 +1520,8 @@ function Kt(e, t, n, o, p, M) {
|
|
|
1520
1520
|
return;
|
|
1521
1521
|
const k = O(T(C, "yyyy-MM-dd"));
|
|
1522
1522
|
if (k.year === m) {
|
|
1523
|
-
const
|
|
1524
|
-
P[
|
|
1523
|
+
const d = "" + k.month;
|
|
1524
|
+
P[d] = P[d] || [], P[d].push({
|
|
1525
1525
|
data: {
|
|
1526
1526
|
...j
|
|
1527
1527
|
},
|
|
@@ -1594,7 +1594,7 @@ function Kt(e, t, n, o, p, M) {
|
|
|
1594
1594
|
}
|
|
1595
1595
|
return {
|
|
1596
1596
|
assignEventsToDays: a,
|
|
1597
|
-
assignEventsToWeeks:
|
|
1597
|
+
assignEventsToWeeks: u,
|
|
1598
1598
|
renderEventItem: E,
|
|
1599
1599
|
useCompareCompsition: o,
|
|
1600
1600
|
useDateComposition: t,
|
|
@@ -1621,7 +1621,7 @@ const ee = /* @__PURE__ */ X({
|
|
|
1621
1621
|
weekDayLabels: T,
|
|
1622
1622
|
monthLabels: v,
|
|
1623
1623
|
prevWeek: a,
|
|
1624
|
-
nextWeek:
|
|
1624
|
+
nextWeek: u,
|
|
1625
1625
|
prevDay: w,
|
|
1626
1626
|
nextDay: r,
|
|
1627
1627
|
yearViewTitle: i,
|
|
@@ -1637,7 +1637,7 @@ const ee = /* @__PURE__ */ X({
|
|
|
1637
1637
|
convertDateToDateObject: N
|
|
1638
1638
|
} = P, {
|
|
1639
1639
|
parseToDate: C
|
|
1640
|
-
} = h, k = W(e.firstDayOfTheWeek),
|
|
1640
|
+
} = h, k = W(e.firstDayOfTheWeek), d = W(e.events), I = W(e.enableCrossDay), x = c(), S = W(e.activeDate), L = W(0), $ = Kt(e, P, h, m, t, L);
|
|
1641
1641
|
pt("eventsComposition", $);
|
|
1642
1642
|
const F = W({
|
|
1643
1643
|
year: x.year || 1,
|
|
@@ -1698,7 +1698,7 @@ const ee = /* @__PURE__ */ X({
|
|
|
1698
1698
|
rbracket: "",
|
|
1699
1699
|
relation: pe.Empty,
|
|
1700
1700
|
compare: he.LessOrEqual
|
|
1701
|
-
}],
|
|
1701
|
+
}], ue = () => {
|
|
1702
1702
|
const V = fe.value[0].days[0].date, B = fe.value[5].days[6].date;
|
|
1703
1703
|
t.emit("dateChange", {
|
|
1704
1704
|
conditions: ke(V, B),
|
|
@@ -1724,18 +1724,18 @@ const ee = /* @__PURE__ */ X({
|
|
|
1724
1724
|
});
|
|
1725
1725
|
};
|
|
1726
1726
|
function et(V) {
|
|
1727
|
-
V === 1 && (F.value = Ue(F.value), me()), V === 2 && (F.value = He(F.value),
|
|
1727
|
+
V === 1 && (F.value = Ue(F.value), me()), V === 2 && (F.value = He(F.value), ue()), V === 3 && (F.value = Ye(F.value)), V === 4 && (F.value = te(F.value));
|
|
1728
1728
|
}
|
|
1729
1729
|
function tt(V) {
|
|
1730
|
-
V === 1 && (F.value = ze(F.value), me()), V === 2 && (F.value = Ge(F.value),
|
|
1730
|
+
V === 1 && (F.value = ze(F.value), me()), V === 2 && (F.value = Ge(F.value), ue()), V === 3 && (F.value = qe(F.value)), V === 4 && (F.value = Ae(F.value));
|
|
1731
1731
|
}
|
|
1732
|
-
const nt = R(() => [E, p, a, w][L.value - 1]), at = R(() => [s, M,
|
|
1732
|
+
const nt = R(() => [E, p, a, w][L.value - 1]), at = R(() => [s, M, u, r][L.value - 1]);
|
|
1733
1733
|
function rt() {
|
|
1734
1734
|
F.value = {
|
|
1735
1735
|
year: x.year || 1,
|
|
1736
1736
|
month: x.month || 1,
|
|
1737
1737
|
day: x.day || 1
|
|
1738
|
-
},
|
|
1738
|
+
}, ue();
|
|
1739
1739
|
}
|
|
1740
1740
|
const ot = (V) => {
|
|
1741
1741
|
t.emit("dayClick", V);
|
|
@@ -1759,7 +1759,7 @@ const ee = /* @__PURE__ */ X({
|
|
|
1759
1759
|
}
|
|
1760
1760
|
}
|
|
1761
1761
|
}, it = () => {
|
|
1762
|
-
ae[L.value - 1] === "year" ? me() :
|
|
1762
|
+
ae[L.value - 1] === "year" ? me() : ue();
|
|
1763
1763
|
};
|
|
1764
1764
|
function lt(V) {
|
|
1765
1765
|
L.value = V, it(), De(() => {
|
|
@@ -1778,13 +1778,13 @@ const ee = /* @__PURE__ */ X({
|
|
|
1778
1778
|
"f-calendar-highlight-weekend": e.highLightWeekend
|
|
1779
1779
|
}, "f-calendar-activeview-" + ae[L.value - 1]], e.customClass));
|
|
1780
1780
|
function ct(V) {
|
|
1781
|
-
|
|
1781
|
+
d.value = V || [];
|
|
1782
1782
|
}
|
|
1783
1783
|
const Fe = W([]), Ee = W();
|
|
1784
|
-
function
|
|
1784
|
+
function ut(V) {
|
|
1785
1785
|
Fe.value = V.events || [], t.emit("moreClick", V);
|
|
1786
1786
|
}
|
|
1787
|
-
function
|
|
1787
|
+
function dt(V, B) {
|
|
1788
1788
|
t.emit("moreClick", B);
|
|
1789
1789
|
}
|
|
1790
1790
|
const ft = R(() => {
|
|
@@ -1820,16 +1820,16 @@ const ee = /* @__PURE__ */ X({
|
|
|
1820
1820
|
}, [L.value === 4 && l(Ce, {
|
|
1821
1821
|
day: Qe.value,
|
|
1822
1822
|
dayInWeek: Ze.value,
|
|
1823
|
-
events:
|
|
1823
|
+
events: d.value
|
|
1824
1824
|
}, null), L.value === 3 && l(we, {
|
|
1825
1825
|
week: ce.value,
|
|
1826
|
-
events:
|
|
1826
|
+
events: d.value
|
|
1827
1827
|
}, null), L.value === 2 && l(be, {
|
|
1828
1828
|
daysInWeek: Xe.value,
|
|
1829
1829
|
monthLabels: v,
|
|
1830
1830
|
activeDay: F.value,
|
|
1831
1831
|
dates: fe.value,
|
|
1832
|
-
events:
|
|
1832
|
+
events: d.value,
|
|
1833
1833
|
width: Q.value,
|
|
1834
1834
|
height: J.value - 60,
|
|
1835
1835
|
eventDateField: e.eventDateField,
|
|
@@ -1842,20 +1842,20 @@ const ee = /* @__PURE__ */ X({
|
|
|
1842
1842
|
moreText: D,
|
|
1843
1843
|
onClick: ot,
|
|
1844
1844
|
showBorder: e.enableWeekdayBorder,
|
|
1845
|
-
onMoreClick:
|
|
1845
|
+
onMoreClick: ut
|
|
1846
1846
|
}, null), L.value === 1 && l(Ut, {
|
|
1847
1847
|
activeYear: F.value.year,
|
|
1848
1848
|
monthLabels: v,
|
|
1849
|
-
events:
|
|
1849
|
+
events: d.value,
|
|
1850
1850
|
height: J.value - 60,
|
|
1851
1851
|
moreText: D,
|
|
1852
|
-
onMoreClick: (V, B) =>
|
|
1852
|
+
onMoreClick: (V, B) => dt(V, B)
|
|
1853
1853
|
}, null)]), l(_t, {
|
|
1854
1854
|
ref: Ee,
|
|
1855
1855
|
events: Fe.value
|
|
1856
1856
|
}, null)]);
|
|
1857
1857
|
}
|
|
1858
|
-
}),
|
|
1858
|
+
}), de = {
|
|
1859
1859
|
button: { type: "button", name: "按钮" },
|
|
1860
1860
|
"response-toolbar": { type: "response-toolbar", name: "工具栏" },
|
|
1861
1861
|
"response-toolbar-item": { type: "response-toolbar-item", name: "按钮" },
|
|
@@ -2024,10 +2024,10 @@ class nn extends xt {
|
|
|
2024
2024
|
setPropertyRelates(v, a) {
|
|
2025
2025
|
switch (v && v.propertyID) {
|
|
2026
2026
|
case "dataSource": {
|
|
2027
|
-
const
|
|
2028
|
-
if (
|
|
2027
|
+
const u = M.formSchemaUtils.getViewModelById(M.viewModelId);
|
|
2028
|
+
if (u) {
|
|
2029
2029
|
const w = p.find((r) => r.label === v.propertyValue);
|
|
2030
|
-
|
|
2030
|
+
u.bindTo = w.bindTo;
|
|
2031
2031
|
}
|
|
2032
2032
|
M.designViewModelUtils.assembleDesignViewModel();
|
|
2033
2033
|
break;
|
|
@@ -2271,16 +2271,16 @@ function an(e, t) {
|
|
|
2271
2271
|
return new nn(a, t).getPropertyConfig(n);
|
|
2272
2272
|
}
|
|
2273
2273
|
function v() {
|
|
2274
|
-
var a,
|
|
2274
|
+
var a, u, w, r;
|
|
2275
2275
|
if (e && t) {
|
|
2276
2276
|
const i = (a = e == null ? void 0 : e.componentInstance) == null ? void 0 : a.value.belongedComponentId;
|
|
2277
2277
|
let y = "", f = "";
|
|
2278
2278
|
const { formSchemaUtils: E } = t;
|
|
2279
2279
|
if (i) {
|
|
2280
2280
|
const D = E.getRootViewModelId(), m = E.getComponentByViewModelId(D), h = E.selectNode(m, (P) => P.contents && P.contents.find((j) => j.component === i));
|
|
2281
|
-
(h == null ? void 0 : h.type) === ((
|
|
2281
|
+
(h == null ? void 0 : h.type) === ((u = de["tab-page"]) == null ? void 0 : u.type) && ((w = h == null ? void 0 : h.contents) != null && w.length) && (y = h.title || ""), (h == null ? void 0 : h.type) === ((r = de.section) == null ? void 0 : r.type) && (h == null ? void 0 : h.showHeader) !== !1 && (y = h.mainTitle || ""), y = y ? `${y} > ` : "", f = y ? h.id : "";
|
|
2282
2282
|
}
|
|
2283
|
-
const s =
|
|
2283
|
+
const s = de.calendar.name;
|
|
2284
2284
|
t == null || t.formSchemaUtils.getControlBasicInfoMap().set(e.schema.id, {
|
|
2285
2285
|
componentTitle: s,
|
|
2286
2286
|
parentPathName: `${y}${s}`,
|
|
@@ -2327,7 +2327,7 @@ const rn = /* @__PURE__ */ X({
|
|
|
2327
2327
|
function $e(e, t) {
|
|
2328
2328
|
let n;
|
|
2329
2329
|
function o(a) {
|
|
2330
|
-
const { properties:
|
|
2330
|
+
const { properties: u, title: w, ignore: r } = a, i = r && Array.isArray(r), y = Object.keys(u).reduce((f, E) => ((!i || !r.find((s) => s === E)) && (f[E] = u[E].type === "object" && u[E].properties ? o(u[E]) : le(u[E].default)), f), {});
|
|
2331
2331
|
if (w && (!i || !r.find((f) => f === "id"))) {
|
|
2332
2332
|
const f = w.toLowerCase().replace(/-/g, "_");
|
|
2333
2333
|
y.id = `${f}_${Math.random().toString().slice(2, 6)}`;
|
|
@@ -2335,9 +2335,9 @@ function $e(e, t) {
|
|
|
2335
2335
|
return y;
|
|
2336
2336
|
}
|
|
2337
2337
|
function p(a) {
|
|
2338
|
-
const { properties:
|
|
2338
|
+
const { properties: u, title: w, required: r } = a;
|
|
2339
2339
|
if (r && Array.isArray(r)) {
|
|
2340
|
-
const i = r.reduce((y, f) => (y[f] =
|
|
2340
|
+
const i = r.reduce((y, f) => (y[f] = u[f].type === "object" && u[f].properties ? o(u[f]) : le(u[f].default), y), {});
|
|
2341
2341
|
if (w && r.find((y) => y === "id")) {
|
|
2342
2342
|
const y = w.toLowerCase().replace(/-/g, "_");
|
|
2343
2343
|
i.id = `${y}_${Math.random().toString().slice(2, 6)}`;
|
|
@@ -2348,23 +2348,23 @@ function $e(e, t) {
|
|
|
2348
2348
|
type: w
|
|
2349
2349
|
};
|
|
2350
2350
|
}
|
|
2351
|
-
function M(a,
|
|
2351
|
+
function M(a, u = {}, w) {
|
|
2352
2352
|
const r = e[a];
|
|
2353
2353
|
if (r) {
|
|
2354
2354
|
let i = p(r);
|
|
2355
2355
|
const y = t[a];
|
|
2356
|
-
return i = y ? y({ getSchemaByType: M }, i,
|
|
2356
|
+
return i = y ? y({ getSchemaByType: M }, i, u, w) : i, n != null && n.appendIdentifyForNewControl && n.appendIdentifyForNewControl(i), i;
|
|
2357
2357
|
}
|
|
2358
2358
|
return null;
|
|
2359
2359
|
}
|
|
2360
|
-
function g(a,
|
|
2361
|
-
const w = o(
|
|
2360
|
+
function g(a, u) {
|
|
2361
|
+
const w = o(u);
|
|
2362
2362
|
return Object.keys(w).reduce((r, i) => (Object.prototype.hasOwnProperty.call(a, i) && (r[i] && Pe(r[i]) && Pe(a[i] || !a[i]) ? Object.assign(r[i], a[i] || {}) : r[i] = a[i]), r), w), w;
|
|
2363
2363
|
}
|
|
2364
|
-
function b(a,
|
|
2364
|
+
function b(a, u) {
|
|
2365
2365
|
return Object.keys(a).filter((r) => a[r] != null).reduce((r, i) => {
|
|
2366
|
-
if (
|
|
2367
|
-
const y =
|
|
2366
|
+
if (u.has(i)) {
|
|
2367
|
+
const y = u.get(i);
|
|
2368
2368
|
if (typeof y == "string")
|
|
2369
2369
|
r[y] = a[i];
|
|
2370
2370
|
else {
|
|
@@ -2376,15 +2376,15 @@ function $e(e, t) {
|
|
|
2376
2376
|
return r;
|
|
2377
2377
|
}, {});
|
|
2378
2378
|
}
|
|
2379
|
-
function O(a,
|
|
2380
|
-
const r = g(a,
|
|
2379
|
+
function O(a, u, w = /* @__PURE__ */ new Map()) {
|
|
2380
|
+
const r = g(a, u);
|
|
2381
2381
|
return b(r, w);
|
|
2382
2382
|
}
|
|
2383
2383
|
function T(a) {
|
|
2384
2384
|
var w;
|
|
2385
|
-
const
|
|
2386
|
-
if (
|
|
2387
|
-
const r = e[
|
|
2385
|
+
const u = a.type;
|
|
2386
|
+
if (u) {
|
|
2387
|
+
const r = e[u];
|
|
2388
2388
|
if (!r)
|
|
2389
2389
|
return a;
|
|
2390
2390
|
const i = g(a, r), y = ((w = a.editor) == null ? void 0 : w.type) || "";
|
|
@@ -2403,22 +2403,22 @@ function $e(e, t) {
|
|
|
2403
2403
|
}
|
|
2404
2404
|
const on = {}, ln = {}, { resolveSchemaWithDefaultValue: sn } = $e(on, ln);
|
|
2405
2405
|
function cn(e = {}) {
|
|
2406
|
-
function t(T, v, a,
|
|
2406
|
+
function t(T, v, a, u) {
|
|
2407
2407
|
if (typeof a == "number")
|
|
2408
|
-
return
|
|
2408
|
+
return u[T].length === a;
|
|
2409
2409
|
if (typeof a == "object") {
|
|
2410
2410
|
const w = Object.keys(a)[0], r = a[w];
|
|
2411
2411
|
if (w === "not")
|
|
2412
|
-
return Number(
|
|
2412
|
+
return Number(u[T].length) !== Number(r);
|
|
2413
2413
|
if (w === "moreThan")
|
|
2414
|
-
return Number(
|
|
2414
|
+
return Number(u[T].length) >= Number(r);
|
|
2415
2415
|
if (w === "lessThan")
|
|
2416
|
-
return Number(
|
|
2416
|
+
return Number(u[T].length) <= Number(r);
|
|
2417
2417
|
}
|
|
2418
2418
|
return !1;
|
|
2419
2419
|
}
|
|
2420
|
-
function n(T, v, a,
|
|
2421
|
-
return
|
|
2420
|
+
function n(T, v, a, u) {
|
|
2421
|
+
return u[T] && u[T].propertyValue && String(u[T].propertyValue.value) === String(a);
|
|
2422
2422
|
}
|
|
2423
2423
|
const o = /* @__PURE__ */ new Map([
|
|
2424
2424
|
["length", t],
|
|
@@ -2427,16 +2427,16 @@ function cn(e = {}) {
|
|
|
2427
2427
|
Object.keys(e).reduce((T, v) => (T.set(v, e[v]), T), o);
|
|
2428
2428
|
function p(T, v) {
|
|
2429
2429
|
const a = T;
|
|
2430
|
-
return typeof v == "number" ? [{ target: a, operator: "length", param: null, value: Number(v) }] : typeof v == "boolean" ? [{ target: a, operator: "getProperty", param: T, value: !!v }] : typeof v == "object" ? Object.keys(v).map((
|
|
2431
|
-
if (
|
|
2432
|
-
return { target: a, operator: "length", param: null, value: v[
|
|
2433
|
-
const w =
|
|
2430
|
+
return typeof v == "number" ? [{ target: a, operator: "length", param: null, value: Number(v) }] : typeof v == "boolean" ? [{ target: a, operator: "getProperty", param: T, value: !!v }] : typeof v == "object" ? Object.keys(v).map((u) => {
|
|
2431
|
+
if (u === "length")
|
|
2432
|
+
return { target: a, operator: "length", param: null, value: v[u] };
|
|
2433
|
+
const w = u, r = v[u];
|
|
2434
2434
|
return { target: a, operator: "getProperty", param: w, value: r };
|
|
2435
2435
|
}) : [];
|
|
2436
2436
|
}
|
|
2437
2437
|
function M(T) {
|
|
2438
|
-
return Object.keys(T).reduce((a,
|
|
2439
|
-
const w = p(
|
|
2438
|
+
return Object.keys(T).reduce((a, u) => {
|
|
2439
|
+
const w = p(u, T[u]);
|
|
2440
2440
|
return a.push(...w), a;
|
|
2441
2441
|
}, []);
|
|
2442
2442
|
}
|
|
@@ -2451,17 +2451,17 @@ function cn(e = {}) {
|
|
|
2451
2451
|
return M(T).reduce((w, r) => w && g(r, v), !0);
|
|
2452
2452
|
}
|
|
2453
2453
|
function O(T, v) {
|
|
2454
|
-
const a = Object.keys(T),
|
|
2455
|
-
return
|
|
2454
|
+
const a = Object.keys(T), u = a.includes("allOf"), w = a.includes("anyOf"), r = u || w, f = (r ? T[r ? u ? "allOf" : "anyOf" : "allOf"] : [T]).map((s) => b(s, v));
|
|
2455
|
+
return u ? !f.includes(!1) : f.includes(!0);
|
|
2456
2456
|
}
|
|
2457
2457
|
return { parseValueSchema: O };
|
|
2458
2458
|
}
|
|
2459
|
-
const
|
|
2459
|
+
const un = {
|
|
2460
2460
|
convertTo: (e, t, n, o) => {
|
|
2461
2461
|
e.appearance || (e.appearance = {}), e.appearance[t] = n;
|
|
2462
2462
|
},
|
|
2463
2463
|
convertFrom: (e, t, n) => e.appearance ? e.appearance[t] : e[t]
|
|
2464
|
-
},
|
|
2464
|
+
}, dn = {
|
|
2465
2465
|
convertFrom: (e, t, n) => e.buttons && e.buttons.length ? `共 ${e.buttons.length} 项` : "无"
|
|
2466
2466
|
}, fn = {
|
|
2467
2467
|
convertTo: (e, t, n, o) => {
|
|
@@ -2472,7 +2472,7 @@ const dn = {
|
|
|
2472
2472
|
convertFrom: (e, t, n) => {
|
|
2473
2473
|
var p;
|
|
2474
2474
|
const o = e.editor && e.editor[t] ? e.editor[t] : e[t];
|
|
2475
|
-
return ((p =
|
|
2475
|
+
return ((p = de[o]) == null ? void 0 : p.name) || o;
|
|
2476
2476
|
}
|
|
2477
2477
|
}, vn = {
|
|
2478
2478
|
convertTo: (e, t, n, o) => {
|
|
@@ -2552,6 +2552,8 @@ const dn = {
|
|
|
2552
2552
|
}
|
|
2553
2553
|
if (t === "commands")
|
|
2554
2554
|
return e.command.enableType === "custom" ? e.command.commands : [];
|
|
2555
|
+
if (t === "formatter")
|
|
2556
|
+
return e.command.formatter;
|
|
2555
2557
|
}
|
|
2556
2558
|
return "";
|
|
2557
2559
|
}
|
|
@@ -2685,14 +2687,14 @@ const dn = {
|
|
|
2685
2687
|
</span>` : e.columnTemplate = `
|
|
2686
2688
|
<span class="f-pretend-link f-cursor-pointer">
|
|
2687
2689
|
{{rowData.${e.field}}}
|
|
2688
|
-
</span>`), t === "columnTemplateType" && n === "default" && (e.columnTemplate = ""));
|
|
2690
|
+
</span>`), t === "columnTemplateType" && n === "default" && (e.columnTemplate = ""), t === "columnTemplateType" && n === "custom" && (e.columnTemplate = ""));
|
|
2689
2691
|
},
|
|
2690
2692
|
convertFrom: (e, t, n) => t === "columnTemplate" ? e.columnTemplate : t === "columnTemplateType" ? e.columnTemplateType ? e.columnTemplateType || "default" : e.columnTemplate && !e.onClickLinkCommand ? "custom" : e.columnTemplate && e.onClickLinkCommand ? "hyperlink" : "default" : ""
|
|
2691
2693
|
};
|
|
2692
2694
|
function Re(e, t, n) {
|
|
2693
2695
|
const o = /* @__PURE__ */ new Map([
|
|
2694
|
-
["/converter/appearance.converter",
|
|
2695
|
-
["/converter/buttons.converter",
|
|
2696
|
+
["/converter/appearance.converter", un],
|
|
2697
|
+
["/converter/buttons.converter", dn],
|
|
2696
2698
|
["/converter/property-editor.converter", fn],
|
|
2697
2699
|
["/converter/items-count.converter", Mn],
|
|
2698
2700
|
["/converter/type.converter", mn],
|
|
@@ -2753,7 +2755,7 @@ function Re(e, t, n) {
|
|
|
2753
2755
|
}
|
|
2754
2756
|
function v(r, i, y, f, E, s = "", D = "") {
|
|
2755
2757
|
return Object.keys(r).map((h) => {
|
|
2756
|
-
const P = W(1), j = h, c = r[h], N = Object.keys(c), C = c.title, k = c.type,
|
|
2758
|
+
const P = W(1), j = h, c = r[h], N = Object.keys(c), C = c.title, k = c.type, d = p.get(k) || { type: "input-group", enableClear: !1 }, I = c.editor ? Object.assign({}, d, c.editor) : Object.assign({}, d), x = b(N, c, i), S = O(N, c, i);
|
|
2757
2759
|
I.readonly = I.readonly === void 0 ? S() : I.readonly;
|
|
2758
2760
|
const L = c.type === "cascade" ? v(c.properties, i, y, f, E, s, D) : [], $ = !0;
|
|
2759
2761
|
let F = T(c, D);
|
|
@@ -2781,15 +2783,15 @@ function Re(e, t, n) {
|
|
|
2781
2783
|
return { categoryId: D, categoryName: h, properties: P };
|
|
2782
2784
|
}) : [];
|
|
2783
2785
|
}
|
|
2784
|
-
function
|
|
2786
|
+
function u(r, i, y, f, E = "") {
|
|
2785
2787
|
const s = i.$ref.schema, D = i.$ref.converter, m = y[s], h = m.type, P = n(m), j = {}, c = e[h];
|
|
2786
2788
|
if (c && c.categories) {
|
|
2787
2789
|
const N = c.categories[r], C = N == null ? void 0 : N.title;
|
|
2788
2790
|
D && Object.keys(N.properties).forEach((I) => {
|
|
2789
2791
|
N.properties[I].$converter = D;
|
|
2790
2792
|
});
|
|
2791
|
-
const k = (N == null ? void 0 : N.properties) || {},
|
|
2792
|
-
return { categoryId: r, categoryName: C, properties:
|
|
2793
|
+
const k = (N == null ? void 0 : N.properties) || {}, d = v(k, j, P, m, f, E);
|
|
2794
|
+
return { categoryId: r, categoryName: C, properties: d };
|
|
2793
2795
|
}
|
|
2794
2796
|
return { categoryId: r, categoryName: "", properties: [] };
|
|
2795
2797
|
}
|
|
@@ -2801,11 +2803,11 @@ function Re(e, t, n) {
|
|
|
2801
2803
|
return Object.keys(h.categories).map((j) => {
|
|
2802
2804
|
const c = h.categories[j];
|
|
2803
2805
|
if (c.$ref) {
|
|
2804
|
-
P.push(
|
|
2806
|
+
P.push(u(j, c, r, i, f));
|
|
2805
2807
|
return;
|
|
2806
2808
|
}
|
|
2807
|
-
const N = c == null ? void 0 : c.title, C = c == null ? void 0 : c.tabId, k = c == null ? void 0 : c.tabName,
|
|
2808
|
-
P.push({ categoryId: j, categoryName: N, tabId: C, tabName: k, hide:
|
|
2809
|
+
const N = c == null ? void 0 : c.title, C = c == null ? void 0 : c.tabId, k = c == null ? void 0 : c.tabName, d = c == null ? void 0 : c.hide, I = c == null ? void 0 : c.hideTitle, x = v(c.properties || {}, m, D, r, i, f, c.$converter), { setPropertyRelates: S } = c, L = c == null ? void 0 : c.parentPropertyID;
|
|
2810
|
+
P.push({ categoryId: j, categoryName: N, tabId: C, tabName: k, hide: d, properties: x, hideTitle: I, setPropertyRelates: S, parentPropertyID: L });
|
|
2809
2811
|
}), P;
|
|
2810
2812
|
}
|
|
2811
2813
|
return [];
|