@farris/ui-vue 1.8.0-alpha.0 → 1.8.0-beta.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/avatar/index.esm.js +138 -1526
- package/components/avatar/index.umd.cjs +1 -6
- package/components/button/index.css +1 -1
- package/components/button/index.esm.js +15951 -15410
- package/components/button/index.umd.cjs +27 -27
- package/components/calendar/index.esm.js +269 -255
- package/components/calendar/index.umd.cjs +3 -3
- package/components/collection-property-editor/index.esm.js +243 -229
- package/components/collection-property-editor/index.umd.cjs +2 -2
- package/components/combo-list/index.esm.js +32 -32
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/comment/index.esm.js +473 -456
- package/components/comment/index.umd.cjs +6 -6
- package/components/component/index.css +1 -1
- package/components/component/index.esm.js +2503 -2239
- package/components/component/index.umd.cjs +2 -2
- package/components/condition/index.esm.js +1064 -954
- package/components/condition/index.umd.cjs +2 -2
- package/components/data-grid/index.esm.js +1 -1
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/designer-canvas/index.css +1 -1
- package/components/designer-canvas/index.esm.js +3894 -3058
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/drawer/index.esm.js +91 -77
- package/components/drawer/index.umd.cjs +2 -2
- package/components/dynamic-form/index.esm.js +220 -215
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/dynamic-resolver/index.esm.js +145 -131
- package/components/dynamic-resolver/index.umd.cjs +2 -2
- package/components/dynamic-view/index.esm.js +336 -329
- package/components/dynamic-view/index.umd.cjs +1 -1
- package/components/events-editor/index.esm.js +1611 -1536
- package/components/events-editor/index.umd.cjs +3 -3
- package/components/expression-editor/index.esm.js +219 -219
- package/components/expression-editor/index.umd.cjs +2 -2
- package/components/external-container/index.esm.js +179 -178
- package/components/external-container/index.umd.cjs +1 -1
- package/components/fieldset/index.esm.js +285 -221
- package/components/fieldset/index.umd.cjs +1 -1
- package/components/filter-bar/index.css +1 -0
- package/components/filter-bar/index.esm.js +1512 -1290
- package/components/filter-bar/index.umd.cjs +7 -7
- package/components/filter-condition-editor/index.esm.js +851 -831
- package/components/filter-condition-editor/index.umd.cjs +3 -3
- package/components/flow-canvas/index.esm.js +520 -501
- package/components/flow-canvas/index.umd.cjs +8 -8
- package/components/image/index.esm.js +101 -79
- package/components/image/index.umd.cjs +3 -3
- package/components/language-textbox/index.esm.js +330 -251
- package/components/language-textbox/index.umd.cjs +2 -2
- package/components/list-nav/index.esm.js +399 -313
- package/components/list-nav/index.umd.cjs +1 -1
- package/components/locale/index.esm.js +3 -0
- package/components/locale/index.umd.cjs +1 -1
- package/components/lookup/index.esm.js +997 -976
- package/components/lookup/index.umd.cjs +2 -2
- package/components/mapping-editor/index.esm.js +725 -705
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/message-box/index.esm.js +542 -522
- package/components/message-box/index.umd.cjs +1 -1
- package/components/nav/index.esm.js +95 -308
- package/components/nav/index.umd.cjs +1 -1
- package/components/number-range/index.esm.js +115 -107
- package/components/number-range/index.umd.cjs +2 -2
- package/components/order/index.esm.js +56 -54
- package/components/order/index.umd.cjs +1 -1
- package/components/page-footer/index.esm.js +135 -123
- package/components/page-footer/index.umd.cjs +1 -1
- package/components/page-header/index.esm.js +266 -222
- package/components/page-header/index.umd.cjs +1 -1
- package/components/property-panel/index.esm.js +402 -375
- package/components/property-panel/index.umd.cjs +4 -4
- package/components/query-solution/index.esm.js +3171 -3061
- package/components/query-solution/index.umd.cjs +7 -7
- package/components/response-toolbar/index.esm.js +1 -1
- package/components/response-toolbar/index.umd.cjs +1 -1
- package/components/schema-selector/index.esm.js +1620 -1608
- package/components/schema-selector/index.umd.cjs +5 -5
- package/components/scroll-navbar/index.esm.js +150 -136
- package/components/scroll-navbar/index.umd.cjs +2 -2
- package/components/section/index.esm.js +323 -311
- package/components/section/index.umd.cjs +2 -2
- package/components/sort-condition-editor/index.esm.js +850 -830
- package/components/sort-condition-editor/index.umd.cjs +3 -3
- package/components/step/index.esm.js +991 -224
- package/components/step/index.umd.cjs +1 -1
- package/components/tabs/index.esm.js +356 -334
- package/components/tabs/index.umd.cjs +1 -1
- package/components/wizard/index.esm.js +159 -162
- package/components/wizard/index.umd.cjs +1 -1
- package/designer/avatar/index.esm.js +1721 -0
- package/designer/avatar/index.umd.cjs +6 -0
- package/designer/button-edit/index.esm.js +2 -1
- package/designer/button-edit/index.umd.cjs +1 -1
- package/designer/data-grid/index.esm.js +693 -659
- package/designer/data-grid/index.umd.cjs +6 -6
- package/designer/data-view/index.esm.js +90 -78
- package/designer/data-view/index.umd.cjs +2 -2
- package/designer/date-picker/index.esm.js +203 -203
- package/designer/date-picker/index.umd.cjs +1 -1
- package/designer/drawer/index.esm.js +181 -167
- package/designer/drawer/index.umd.cjs +2 -2
- package/designer/dynamic-form/index.esm.js +228 -206
- package/designer/dynamic-form/index.umd.cjs +2 -2
- package/designer/farris-designer.all.esm.js +10014 -9692
- package/designer/farris-designer.all.umd.cjs +18 -18
- package/designer/index.css +1 -1
- package/designer/input-group/index.esm.js +15 -15
- package/designer/input-group/index.umd.cjs +1 -1
- package/designer/nav/index.esm.js +1719 -0
- package/designer/nav/index.umd.cjs +6 -0
- package/designer/number-spinner/index.esm.js +8 -7
- package/designer/number-spinner/index.umd.cjs +1 -1
- package/designer/radio-group/index.esm.js +133 -125
- package/designer/radio-group/index.umd.cjs +2 -2
- package/designer/response-toolbar/index.esm.js +864 -863
- package/designer/response-toolbar/index.umd.cjs +1 -1
- package/designer/section/index.esm.js +245 -183
- package/designer/section/index.umd.cjs +1 -1
- package/designer/tabs/index.css +1 -1
- package/designer/tabs/index.esm.js +3667 -2810
- package/designer/tabs/index.umd.cjs +2 -2
- package/designer/time-picker/index.esm.js +26 -17
- package/designer/time-picker/index.umd.cjs +2 -2
- package/designer/tree-grid/index.esm.js +69 -37
- package/designer/tree-grid/index.umd.cjs +1 -1
- package/designer/wizard/index.esm.js +110 -110
- package/designer/wizard/index.umd.cjs +3 -3
- package/farris.all.esm.js +39993 -39089
- package/farris.all.umd.cjs +36 -36
- package/index.css +1 -1
- package/locales/filter-bar/ui/en.json +1 -0
- package/locales/filter-bar/ui/zh-CHS.json +1 -0
- package/locales/filter-bar/ui/zh-CHT.json +1 -0
- package/locales/ui/en.json +1 -0
- package/locales/ui/zh-CHS.json +1 -0
- package/locales/ui/zh-CHT.json +1 -0
- package/package.json +1 -1
- package/types/avatar/designer.d.ts +28 -0
- package/types/avatar/index.d.ts +0 -15
- package/types/avatar/src/composition/types.d.ts +3 -0
- package/types/avatar/src/composition/use-file.d.ts +19 -0
- package/types/avatar/src/composition/use-image.d.ts +1 -1
- package/types/avatar/src/designer/avatar.design.props.d.ts +24 -0
- package/types/avatar/src/property-config/avatar.property-config.d.ts +11 -13
- package/types/avatar/src/schema/schema-mapper.d.ts +2 -0
- package/types/components.d.ts +3 -0
- package/types/condition/index.d.ts +18 -6
- package/types/condition/src/condition-fields.component.d.ts +9 -3
- package/types/condition/src/condition-fields.design.component.d.ts +9 -3
- package/types/condition/src/condition-list.component.d.ts +9 -3
- package/types/condition/src/condition.props.d.ts +11 -0
- package/types/data-view/designer/property-config/use-appearance.d.ts +17 -10
- package/types/data-view/designer/property-config/use-pagination.d.ts +0 -6
- package/types/designer-canvas/src/composition/dg-control.d.ts +13 -0
- package/types/dynamic-form/src/component/dynamic-form-label/dynamic-form-label.component.d.ts +3 -0
- package/types/dynamic-form/src/component/dynamic-form-label/dynamic-form-label.props.d.ts +4 -0
- package/types/dynamic-resolver/src/converter/tree-auto-check.converter.d.ts +3 -0
- package/types/dynamic-view/src/components/maps.d.ts +130 -4
- package/types/filter-bar/src/composition/types.d.ts +2 -0
- package/types/filter-bar/src/filter-bar.props.d.ts +0 -1
- package/types/filter-bar/src/locale/locale.d.ts +2 -1
- package/types/filter-bar/src/property-config/filter-bar.property-config.d.ts +0 -1
- package/types/language-textbox/index.d.ts +65 -2
- package/types/language-textbox/src/designer/language-textbox.design.component.d.ts +36 -0
- package/types/language-textbox/src/language-textbox.component.d.ts +38 -1
- package/types/language-textbox/src/language-textbox.props.d.ts +20 -0
- package/types/lookup/src/components/popup-container.component.d.ts +3 -3
- package/types/lookup/src/composition/use-compat.d.ts +28 -0
- package/types/lookup/src/composition/use-state.d.ts +1 -0
- package/types/message-box/src/message-box.service.d.ts +2 -1
- package/types/nav/designer.d.ts +28 -0
- package/types/nav/index.d.ts +24 -20
- package/types/nav/src/designer/nav.design.props.d.ts +29 -0
- package/types/nav/src/designer/use-design-rules.d.ts +3 -0
- package/types/nav/src/property-config/nav.property-config.d.ts +9 -0
- package/types/nav/src/schema/schema-mapper.d.ts +4 -0
- package/types/page-footer/src/designer/use-designer-rules.d.ts +2 -2
- package/types/page-header/src/designer/use-designer-rules.d.ts +2 -2
- package/types/property-panel/src/composition/entity/input-base-property.d.ts +1 -0
- package/types/query-solution/src/designer/query-solution-config/composition/use-util.d.ts +1 -1
- package/types/query-solution/src/designer/query-solution-config/query-solution-config.props.d.ts +1 -1
- package/types/section/src/designer/section.design.props.d.ts +4 -0
- package/types/section/src/property-config/section.property-config.d.ts +39 -0
- package/types/section/src/schema/toolbar-resolver.d.ts +0 -1
- package/types/step/src/designer/use-designer-rules.d.ts +3 -0
- package/types/step/src/designer/use-step-creator.d.ts +6 -0
- package/types/step/src/property-config/step.property-config.d.ts +15 -0
- package/types/step/src/schema/schema-resolver.d.ts +2 -1
- package/types/tabs/src/composition/types.d.ts +4 -0
- package/types/tabs/src/tabs.props.d.ts +6 -0
- package/types/tooltip/index.d.ts +3 -3
- package/types/tooltip/src/tooltip.component.d.ts +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var Be = (e, t, n) =>
|
|
1
|
+
var Ft = Object.defineProperty;
|
|
2
|
+
var xt = (e, t, n) => t in e ? Ft(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
|
+
var Be = (e, t, n) => xt(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
4
|
import { defineComponent as ee, ref as B, watch as H, computed as A, createVNode as l, inject as le, nextTick as Ve, onMounted as ie, createTextVNode as se, provide as Et, onUnmounted as It, Fragment as Ae } from "vue";
|
|
5
5
|
import { resolveAppearance as Vt, createPropsResolver as Nt, getPropsResolverGenerator as Ot } from "../dynamic-resolver/index.esm.js";
|
|
6
6
|
import { DgControl as ye, useDesignerComponent as Pt } from "../designer-canvas/index.esm.js";
|
|
@@ -38,8 +38,8 @@ function zt(e, t) {
|
|
|
38
38
|
}), a;
|
|
39
39
|
}
|
|
40
40
|
function p(f, a, c) {
|
|
41
|
-
var v,
|
|
42
|
-
const y = (
|
|
41
|
+
var v, d, E, s;
|
|
42
|
+
const y = (d = (v = a == null ? void 0 : a.parentComponentInstance) == null ? void 0 : v.schema) == null ? void 0 : d.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))
|
|
44
44
|
return f;
|
|
45
45
|
const i = [ye["content-container"].type, ye["response-layout-item"].type, ye["splitter-pane"].type, ye.drawer.type];
|
|
@@ -74,10 +74,10 @@ function zt(e, t) {
|
|
|
74
74
|
}), [a];
|
|
75
75
|
}
|
|
76
76
|
function I(f) {
|
|
77
|
-
var i, v,
|
|
77
|
+
var i, v, d;
|
|
78
78
|
const a = e.getSchemaByType("component"), c = D(f);
|
|
79
79
|
let y = !1;
|
|
80
|
-
const r = (
|
|
80
|
+
const r = (d = (v = (i = f.parentComponentInstance) == null ? void 0 : i.schema) == null ? void 0 : v.appearance) == null ? void 0 : d.class;
|
|
81
81
|
return r && r.includes("f-page-main") && (y = !0), Object.assign(a, {
|
|
82
82
|
id: `${f.componentId}-component`,
|
|
83
83
|
viewModel: `${f.componentId}-component-viewmodel`,
|
|
@@ -263,14 +263,14 @@ const Ht = "https://json-schema.org/draft/2020-12/schema", Yt = "https://farris-
|
|
|
263
263
|
customStyle: { type: String, default: "" },
|
|
264
264
|
enableWeekdayBorder: { type: Boolean, default: !1 },
|
|
265
265
|
visible: { type: Boolean, default: !0 }
|
|
266
|
-
},
|
|
266
|
+
}, la = Nt(Ne, Me, ze, He), Ye = Ot(
|
|
267
267
|
Me,
|
|
268
268
|
Me,
|
|
269
269
|
ze,
|
|
270
270
|
He
|
|
271
271
|
), X = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"];
|
|
272
272
|
var te = /* @__PURE__ */ ((e) => (e[e.previous = 1] = "previous", e[e.current = 2] = "current", e[e.next = 3] = "next", e))(te || {});
|
|
273
|
-
function
|
|
273
|
+
function de() {
|
|
274
274
|
function e() {
|
|
275
275
|
return { year: 0, month: 0, day: 0 };
|
|
276
276
|
}
|
|
@@ -374,9 +374,9 @@ function Qt() {
|
|
|
374
374
|
return { daysInMonth: e, daysInPreMonth: n, getNextMonth: o, getPreviousMonth: m };
|
|
375
375
|
}
|
|
376
376
|
function Zt() {
|
|
377
|
-
const { getToday: e, getDayNumber: t, isWeekEnd: n } =
|
|
378
|
-
function D(
|
|
379
|
-
const { day: E, month: s, year: h } =
|
|
377
|
+
const { getToday: e, getDayNumber: t, isWeekEnd: n } = de(), { daysInMonth: o, daysInPreMonth: m, getNextMonth: w, getPreviousMonth: p } = Qt();
|
|
378
|
+
function D(d) {
|
|
379
|
+
const { day: E, month: s, year: h } = d;
|
|
380
380
|
if (E === void 0 || s === void 0 || h === void 0)
|
|
381
381
|
throw new Error("invalided date.");
|
|
382
382
|
const N = E === 1, M = N ? m(s, h) : E - 1, $ = N ? s - 1 : s, S = $ < 1, P = S ? 12 : $;
|
|
@@ -386,70 +386,70 @@ function Zt() {
|
|
|
386
386
|
day: M
|
|
387
387
|
};
|
|
388
388
|
}
|
|
389
|
-
function I(
|
|
390
|
-
const { day: E, month: s, year: h } =
|
|
389
|
+
function I(d) {
|
|
390
|
+
const { day: E, month: s, year: h } = d;
|
|
391
391
|
if (E === void 0 || s === void 0 || h === void 0)
|
|
392
392
|
throw new Error("invalided date.");
|
|
393
|
-
const N = o(s, h), M = E === N, $ = M ? 1 : E + 1, S = M ? s + 1 : s, P = S > 12,
|
|
393
|
+
const N = o(s, h), M = E === N, $ = M ? 1 : E + 1, S = M ? s + 1 : s, P = S > 12, F = P ? 1 : S;
|
|
394
394
|
return {
|
|
395
395
|
year: P ? h + 1 : h,
|
|
396
|
-
month:
|
|
396
|
+
month: F,
|
|
397
397
|
day: $
|
|
398
398
|
};
|
|
399
399
|
}
|
|
400
|
-
function C(
|
|
401
|
-
const E = p(
|
|
400
|
+
function C(d) {
|
|
401
|
+
const E = p(d.month || 1, d.year || 1), s = o(E.month || 1, E.year || 1);
|
|
402
402
|
return {
|
|
403
|
-
day: (
|
|
403
|
+
day: (d.day || 1) <= s ? d.day : s,
|
|
404
404
|
month: E.month,
|
|
405
405
|
year: E.year
|
|
406
406
|
};
|
|
407
407
|
}
|
|
408
|
-
function f(
|
|
409
|
-
const E = w(
|
|
408
|
+
function f(d) {
|
|
409
|
+
const E = w(d.month || 1, d.year || 1), s = o(E.month || 1, E.year || 1);
|
|
410
410
|
return {
|
|
411
|
-
day: (
|
|
411
|
+
day: (d.day || 1) <= s ? d.day : s,
|
|
412
412
|
month: E.month,
|
|
413
413
|
year: E.year
|
|
414
414
|
};
|
|
415
415
|
}
|
|
416
|
-
function a(
|
|
416
|
+
function a(d) {
|
|
417
417
|
return {
|
|
418
|
-
day:
|
|
419
|
-
month:
|
|
420
|
-
year: (
|
|
418
|
+
day: d.day,
|
|
419
|
+
month: d.month,
|
|
420
|
+
year: (d.year || 1) + 1
|
|
421
421
|
};
|
|
422
422
|
}
|
|
423
|
-
function c(
|
|
423
|
+
function c(d) {
|
|
424
424
|
return {
|
|
425
|
-
day:
|
|
426
|
-
month:
|
|
427
|
-
year: (
|
|
425
|
+
day: d.day,
|
|
426
|
+
month: d.month,
|
|
427
|
+
year: (d.year || 1) - 1
|
|
428
428
|
};
|
|
429
429
|
}
|
|
430
|
-
function y(
|
|
431
|
-
const s = (
|
|
430
|
+
function y(d) {
|
|
431
|
+
const s = (d.day || 1) - 7, h = s < 1, N = h ? o(d.month || 1, d.year || 1) + s : s, M = h ? p(d.month || 1, d.year || 1) : d;
|
|
432
432
|
return {
|
|
433
433
|
day: N,
|
|
434
434
|
month: M.month,
|
|
435
435
|
year: M.year
|
|
436
436
|
};
|
|
437
437
|
}
|
|
438
|
-
function r(
|
|
439
|
-
const s = (
|
|
438
|
+
function r(d) {
|
|
439
|
+
const s = (d.day || 1) + 7, h = o(d.month || 1, d.year || 1), N = s > h, M = N ? s - h : s, $ = N ? w(d.month || 1, d.year || 1) : d;
|
|
440
440
|
return {
|
|
441
441
|
day: M,
|
|
442
442
|
month: $.month,
|
|
443
443
|
year: $.year
|
|
444
444
|
};
|
|
445
445
|
}
|
|
446
|
-
function i(
|
|
447
|
-
if (
|
|
446
|
+
function i(d, E, s, h, N) {
|
|
447
|
+
if (d < 1 || E < 1 || s < 1)
|
|
448
448
|
throw new Error("Invalid date input");
|
|
449
|
-
const M = { day:
|
|
449
|
+
const M = { day: d, month: E, year: s }, $ = X.indexOf(h);
|
|
450
450
|
if ($ === -1)
|
|
451
451
|
throw new Error("Invalid firstDayOfWeek value");
|
|
452
|
-
const P = (t(M) - $ + 7) % 7,
|
|
452
|
+
const P = (t(M) - $ + 7) % 7, F = e(), g = (O) => O.day === F.day && O.month === F.month && O.year === F.year, u = [];
|
|
453
453
|
let T = { ...M };
|
|
454
454
|
for (let O = 0; O < P; O++)
|
|
455
455
|
T = D(T);
|
|
@@ -458,11 +458,11 @@ function Zt() {
|
|
|
458
458
|
if (T.month === N.month && T.year === N.year)
|
|
459
459
|
b = te.current;
|
|
460
460
|
else {
|
|
461
|
-
const
|
|
462
|
-
T.month ===
|
|
461
|
+
const x = p(M.month, M.year);
|
|
462
|
+
T.month === x.month && T.year === x.year ? b = te.previous : b = te.next;
|
|
463
463
|
}
|
|
464
464
|
const j = g(T), V = n(T);
|
|
465
|
-
|
|
465
|
+
u.push({
|
|
466
466
|
date: T,
|
|
467
467
|
monthTag: b,
|
|
468
468
|
isCurrent: j,
|
|
@@ -470,21 +470,21 @@ function Zt() {
|
|
|
470
470
|
}), O < 6 && (T = I(T));
|
|
471
471
|
}
|
|
472
472
|
return {
|
|
473
|
-
days:
|
|
473
|
+
days: u,
|
|
474
474
|
weekNumber: 0,
|
|
475
475
|
year: s
|
|
476
476
|
};
|
|
477
477
|
}
|
|
478
|
-
function v(
|
|
479
|
-
const N = [], M = { day: 1, month:
|
|
478
|
+
function v(d, E, s, h) {
|
|
479
|
+
const N = [], M = { day: 1, month: d, year: E }, $ = t(M), S = X.indexOf(s);
|
|
480
480
|
if (S === -1)
|
|
481
481
|
throw new Error("Invalid firstDayOfWeek value");
|
|
482
482
|
const P = ($ - S + 7) % 7;
|
|
483
|
-
let
|
|
484
|
-
for (let
|
|
485
|
-
|
|
486
|
-
let g =
|
|
487
|
-
for (let
|
|
483
|
+
let F = M;
|
|
484
|
+
for (let u = 0; u < P; u++)
|
|
485
|
+
F = D(F);
|
|
486
|
+
let g = F;
|
|
487
|
+
for (let u = 0; u < 6; u++) {
|
|
488
488
|
const T = i(g.day, g.month, g.year, s, h);
|
|
489
489
|
N.push(T);
|
|
490
490
|
for (let L = 0; L < 7; L++)
|
|
@@ -508,7 +508,7 @@ function Zt() {
|
|
|
508
508
|
const oe = ["year", "month", "week", "day"];
|
|
509
509
|
var ke = /* @__PURE__ */ ((e) => (e[e.Equal = 0] = "Equal", e[e.NotEqual = 1] = "NotEqual", e[e.Greater = 2] = "Greater", e[e.GreaterOrEqual = 3] = "GreaterOrEqual", e[e.Less = 4] = "Less", e[e.LessOrEqual = 5] = "LessOrEqual", e[e.Like = 6] = "Like", e[e.LikeStartWith = 7] = "LikeStartWith", e[e.LikeEndWith = 8] = "LikeEndWith", e[e.NotLike = 9] = "NotLike", e[e.NotLikeStartWith = 10] = "NotLikeStartWith", e[e.NotLikeEndWith = 11] = "NotLikeEndWith", e[e.Is = 12] = "Is", e[e.IsNot = 13] = "IsNot", e[e.In = 14] = "In", e[e.NotIn = 15] = "NotIn", e))(ke || {}), Se = /* @__PURE__ */ ((e) => (e[e.Empty = 0] = "Empty", e[e.And = 1] = "And", e[e.Or = 2] = "Or", e))(Se || {});
|
|
510
510
|
function Oe() {
|
|
511
|
-
const { getTimeInMilliseconds: e } =
|
|
511
|
+
const { getTimeInMilliseconds: e } = de();
|
|
512
512
|
function t(r) {
|
|
513
513
|
return r && r.year !== 0 && r.month !== 0 && r.day !== 0;
|
|
514
514
|
}
|
|
@@ -576,13 +576,13 @@ const Kt = {
|
|
|
576
576
|
enableMoreView: { type: Boolean, default: !1 },
|
|
577
577
|
isCurrent: { type: Boolean, default: !1 },
|
|
578
578
|
yearViewTitle: { type: String, default: "Year" }
|
|
579
|
-
},
|
|
579
|
+
}, Fe = /* @__PURE__ */ ee({
|
|
580
580
|
name: "FCalendarHeader",
|
|
581
581
|
props: Kt,
|
|
582
582
|
emits: ["viewChange", "previous", "next", "resetToToday"],
|
|
583
583
|
setup(e, t) {
|
|
584
584
|
const n = B(e.title), o = B(e.dailyViewTitle), m = B(e.weeklyViewTitle), w = B(e.monthlyViewTitle), p = B(e.yearViewTitle), D = 2, I = 62, C = B(e.activeView);
|
|
585
|
-
H(() => e.activeView, (v,
|
|
585
|
+
H(() => e.activeView, (v, d) => {
|
|
586
586
|
C.value = v;
|
|
587
587
|
}), H(() => e.title, () => {
|
|
588
588
|
n.value = e.title;
|
|
@@ -592,8 +592,8 @@ const Kt = {
|
|
|
592
592
|
left: `${C.value * (D + 1) + (C.value - 1) * (I + 1)}px`
|
|
593
593
|
})), a = A(() => C.value === 4 ? o.value : C.value === 3 ? m.value : C.value === 1 ? p.value : w.value);
|
|
594
594
|
function c(v) {
|
|
595
|
-
const
|
|
596
|
-
C.value =
|
|
595
|
+
const d = oe.indexOf(v) + 1;
|
|
596
|
+
C.value = d, t.emit("viewChange", d);
|
|
597
597
|
}
|
|
598
598
|
function y() {
|
|
599
599
|
t.emit("previous", C.value);
|
|
@@ -667,7 +667,7 @@ const Kt = {
|
|
|
667
667
|
/** 月视图头部应用边框线条与背景色,默认不启用 */
|
|
668
668
|
showBorder: { type: Boolean, default: !1 },
|
|
669
669
|
moreText: { type: String, default: "更多" }
|
|
670
|
-
},
|
|
670
|
+
}, xe = /* @__PURE__ */ ee({
|
|
671
671
|
name: "FCalendarMonthView",
|
|
672
672
|
props: en,
|
|
673
673
|
emits: ["click", "keyDown", "moreClick"],
|
|
@@ -682,8 +682,8 @@ const Kt = {
|
|
|
682
682
|
} = le("eventsComposition"), {
|
|
683
683
|
equal: f
|
|
684
684
|
} = C, a = B();
|
|
685
|
-
function c(g,
|
|
686
|
-
return e.enableCrossDay ? p(g,
|
|
685
|
+
function c(g, u) {
|
|
686
|
+
return e.enableCrossDay ? p(g, u) : D(g, u);
|
|
687
687
|
}
|
|
688
688
|
const y = B(c(e.dates, w.value));
|
|
689
689
|
H(() => e.enableCrossDay, () => {
|
|
@@ -694,7 +694,7 @@ const Kt = {
|
|
|
694
694
|
m.value = e.activeDay;
|
|
695
695
|
}), H(() => e.events, () => {
|
|
696
696
|
w.value = e.events, y.value = c(e.dates, e.events);
|
|
697
|
-
}), H(() => e.daysInWeek, (g,
|
|
697
|
+
}), H(() => e.daysInWeek, (g, u) => {
|
|
698
698
|
n.value = g;
|
|
699
699
|
});
|
|
700
700
|
function r(g) {
|
|
@@ -704,31 +704,31 @@ const Kt = {
|
|
|
704
704
|
day: m.value.day
|
|
705
705
|
}, g);
|
|
706
706
|
}
|
|
707
|
-
const i = (g,
|
|
707
|
+
const i = (g, u, T) => {
|
|
708
708
|
const O = {
|
|
709
709
|
"f-datepicker-no-currmonth": g.monthTag === te.previous || g.monthTag === te.next,
|
|
710
710
|
"f-calendar-weekday": g.weekEnd,
|
|
711
711
|
"f-calendar-workday": !g.weekEnd,
|
|
712
712
|
"f-calendar-today": g.isCurrent
|
|
713
|
-
}, b = `d_${
|
|
713
|
+
}, b = `d_${u}_${T}`;
|
|
714
714
|
return O[b] = !0, O;
|
|
715
715
|
}, v = (g) => {
|
|
716
|
-
const
|
|
716
|
+
const u = g.monthTag === te.current && r(g.date), T = g.isCurrent && o.value;
|
|
717
717
|
return {
|
|
718
718
|
"f-calendar-month-view-date": !0,
|
|
719
|
-
"f-calendar-month-view-selected":
|
|
719
|
+
"f-calendar-month-view-selected": u,
|
|
720
720
|
"f-calendar-month-view-current": T
|
|
721
721
|
};
|
|
722
722
|
};
|
|
723
|
-
function
|
|
724
|
-
e.disabled ||
|
|
725
|
-
date:
|
|
723
|
+
function d(g, u) {
|
|
724
|
+
e.disabled || u.showMore || (g.stopPropagation(), t.emit("click", {
|
|
725
|
+
date: u.date,
|
|
726
726
|
view: "month"
|
|
727
727
|
}));
|
|
728
728
|
}
|
|
729
|
-
function E(g,
|
|
729
|
+
function E(g, u) {
|
|
730
730
|
e.disabled || t.emit("moreClick", {
|
|
731
|
-
date:
|
|
731
|
+
date: u.date,
|
|
732
732
|
view: "month"
|
|
733
733
|
});
|
|
734
734
|
}
|
|
@@ -739,10 +739,10 @@ const Kt = {
|
|
|
739
739
|
const g = a.value;
|
|
740
740
|
if (!g)
|
|
741
741
|
return 0;
|
|
742
|
-
const
|
|
743
|
-
if (!
|
|
742
|
+
const u = g.querySelector(".f-calendar--daygrid-row");
|
|
743
|
+
if (!u)
|
|
744
744
|
return 0;
|
|
745
|
-
const T =
|
|
745
|
+
const T = u.offsetHeight;
|
|
746
746
|
return Math.max(0, Math.floor(T / 19) - 1);
|
|
747
747
|
};
|
|
748
748
|
function M() {
|
|
@@ -755,18 +755,18 @@ const Kt = {
|
|
|
755
755
|
}
|
|
756
756
|
}, [n.value && n.value.map((g) => l("th", null, [g]))])]);
|
|
757
757
|
}
|
|
758
|
-
function $(g,
|
|
758
|
+
function $(g, u) {
|
|
759
759
|
return l("div", {
|
|
760
760
|
class: "f-calendar--daygrid-row-header"
|
|
761
761
|
}, [l("table", null, [l("tbody", null, [l("tr", null, [g.days && g.days.map((T, L) => l("td", {
|
|
762
|
-
class: i(T,
|
|
763
|
-
onClick: (O) =>
|
|
762
|
+
class: i(T, u, L),
|
|
763
|
+
onClick: (O) => d(O, T),
|
|
764
764
|
style: "position: relative;"
|
|
765
765
|
}, null))])])])]);
|
|
766
766
|
}
|
|
767
|
-
function S(g,
|
|
767
|
+
function S(g, u) {
|
|
768
768
|
return g.days && g.days.map((T, L) => l("td", {
|
|
769
|
-
class: i(T,
|
|
769
|
+
class: i(T, u, L)
|
|
770
770
|
}, [l("div", {
|
|
771
771
|
class: "f-calendar-month-view-title"
|
|
772
772
|
}, [l("div", {
|
|
@@ -776,37 +776,37 @@ const Kt = {
|
|
|
776
776
|
}, [T.date.day === 1 ? e.monthLabels[T.date.month || 1] : ""])])]));
|
|
777
777
|
}
|
|
778
778
|
function P(g) {
|
|
779
|
-
const
|
|
779
|
+
const u = Math.max(0, h.value || N()), T = !!(g.events && g.events.length > u), L = ce([...g.events || []]), O = T ? L.slice(0, u) : L;
|
|
780
780
|
return T && O && O.length > 0 && O[O.length - 1].forEach((b) => {
|
|
781
|
-
b.data && (b.showMore = !0, b.moreCount = g.events.length -
|
|
782
|
-
}), O.map((b, j) => l("tr", null, [b.map((V,
|
|
781
|
+
b.data && (b.showMore = !0, b.moreCount = g.events.length - u + 1);
|
|
782
|
+
}), O.map((b, j) => l("tr", null, [b.map((V, x) => V.showMore ? l("td", {
|
|
783
783
|
colspan: 1,
|
|
784
784
|
rowspan: 1,
|
|
785
|
-
onClick: (Y) =>
|
|
785
|
+
onClick: (Y) => d(Y, V)
|
|
786
786
|
}, [l("a", {
|
|
787
787
|
class: "f-calendar-event p-0 m-0 pl-1 more-events ",
|
|
788
|
-
onClick: (Y) => E(Y, g.days[
|
|
788
|
+
onClick: (Y) => E(Y, g.days[x])
|
|
789
789
|
}, [l("div", {
|
|
790
790
|
class: "event-title"
|
|
791
791
|
}, [e.moreText.replace("#count#", V.moreCount)])])]) : l("td", {
|
|
792
792
|
colspan: V.colspan || 1,
|
|
793
793
|
rowspan: V.rowspan || 1,
|
|
794
|
-
onClick: (Y) =>
|
|
794
|
+
onClick: (Y) => d(Y, g.days[x])
|
|
795
795
|
}, [V.data && I(V)]))]));
|
|
796
796
|
}
|
|
797
|
-
function
|
|
797
|
+
function F() {
|
|
798
798
|
return l("div", {
|
|
799
799
|
class: "w-100 h-100"
|
|
800
800
|
}, [l("div", {
|
|
801
801
|
class: "f-calendar--daygrid"
|
|
802
|
-
}, [y.value.map((g,
|
|
802
|
+
}, [y.value.map((g, u) => l("div", {
|
|
803
803
|
class: "f-calendar--daygrid-row"
|
|
804
|
-
}, [$(g,
|
|
804
|
+
}, [$(g, u), l("div", {
|
|
805
805
|
class: "f-calendar--daygrid-content"
|
|
806
|
-
}, [l("table", null, [l("thead", null, [l("tr", null, [S(g,
|
|
806
|
+
}, [l("table", null, [l("thead", null, [l("tr", null, [S(g, u)])]), l("tbody", null, [P(g)])])])]))])]);
|
|
807
807
|
}
|
|
808
|
-
return H(() => e.height, (g,
|
|
809
|
-
g !==
|
|
808
|
+
return H(() => e.height, (g, u) => {
|
|
809
|
+
g !== u && Ve(() => {
|
|
810
810
|
h.value = N(), y.value = [...y.value];
|
|
811
811
|
});
|
|
812
812
|
}), ie(() => {
|
|
@@ -824,7 +824,7 @@ const Kt = {
|
|
|
824
824
|
style: "height: 100%"
|
|
825
825
|
}, [l("td", {
|
|
826
826
|
class: "f-calendar-content"
|
|
827
|
-
}, [
|
|
827
|
+
}, [F()])])])])]);
|
|
828
828
|
}
|
|
829
829
|
}), tn = {
|
|
830
830
|
daysInWeek: { type: Array, default: X },
|
|
@@ -843,7 +843,7 @@ const Kt = {
|
|
|
843
843
|
equal: I
|
|
844
844
|
} = Oe(), {
|
|
845
845
|
convertDateToDateObject: C
|
|
846
|
-
} =
|
|
846
|
+
} = de();
|
|
847
847
|
function f(s) {
|
|
848
848
|
return m.value.days.map((N) => {
|
|
849
849
|
const M = {
|
|
@@ -934,7 +934,7 @@ const Kt = {
|
|
|
934
934
|
height: `${44 * ((s.ends.hour || 0) + (s.ends.minute || 0) / 60 - P) - 2 - 2 - 1 - 1}px`
|
|
935
935
|
};
|
|
936
936
|
}
|
|
937
|
-
function
|
|
937
|
+
function d() {
|
|
938
938
|
return D.value.map((s) => l("div", {
|
|
939
939
|
class: i(s)
|
|
940
940
|
}, [s.events.map((h) => l("div", {
|
|
@@ -950,7 +950,7 @@ const Kt = {
|
|
|
950
950
|
class: "f-calendar-content-primary"
|
|
951
951
|
}, [l("div", {
|
|
952
952
|
class: "f-calendar-content-data"
|
|
953
|
-
}, [
|
|
953
|
+
}, [d()])]);
|
|
954
954
|
}
|
|
955
955
|
return ie(() => {
|
|
956
956
|
t.value && t.value.scrollTo(0, 250);
|
|
@@ -974,7 +974,7 @@ const Kt = {
|
|
|
974
974
|
setup(e) {
|
|
975
975
|
const t = B(), n = B(), o = B(e.dayInWeek), m = B(e.day), w = B(e.enableMarkCurrent), p = B(e.events), D = B([]), {
|
|
976
976
|
convertDateToDateObject: I
|
|
977
|
-
} =
|
|
977
|
+
} = de(), {
|
|
978
978
|
equal: C
|
|
979
979
|
} = Oe();
|
|
980
980
|
function f(s) {
|
|
@@ -1066,7 +1066,7 @@ const Kt = {
|
|
|
1066
1066
|
height: `${44 * ((((O = s.ends) == null ? void 0 : O.hour) || 0) + (((b = s.ends) == null ? void 0 : b.minute) || 0) / 60 - P) - 2 - 2 - 1 - 1}px`
|
|
1067
1067
|
};
|
|
1068
1068
|
}
|
|
1069
|
-
function
|
|
1069
|
+
function d() {
|
|
1070
1070
|
return D.value.map((s) => l("div", {
|
|
1071
1071
|
class: i(s)
|
|
1072
1072
|
}, [s.events.map((h) => l("div", {
|
|
@@ -1082,7 +1082,7 @@ const Kt = {
|
|
|
1082
1082
|
class: "f-calendar-content-primary"
|
|
1083
1083
|
}, [l("div", {
|
|
1084
1084
|
class: "f-calendar-content-data"
|
|
1085
|
-
}, [
|
|
1085
|
+
}, [d()])]);
|
|
1086
1086
|
}
|
|
1087
1087
|
return ie(() => {
|
|
1088
1088
|
t.value && t.value.scrollTo(0, 250);
|
|
@@ -1247,7 +1247,7 @@ function on() {
|
|
|
1247
1247
|
Thu: e("calendar.dayLabels.Thu"),
|
|
1248
1248
|
Fri: e("calendar.dayLabels.Fri"),
|
|
1249
1249
|
Sat: e("calendar.dayLabels.Sat")
|
|
1250
|
-
}, m = e("calendar.today"), w = e("calendar.thisYear"), p = e("calendar.yearView"), D = e("calendar.monthView"), I = e("calendar.weekView"), C = e("calendar.dayView"), f = e("calendar.titleFormat"), a = e("calendar.yearViewTitleFormat"), c = e("calendar.prevMonth"), y = e("calendar.nextMonth"), r = e("calendar.prevWeek"), i = e("calendar.nextWeek"), v = e("calendar.prevDay"),
|
|
1250
|
+
}, m = e("calendar.today"), w = e("calendar.thisYear"), p = e("calendar.yearView"), D = e("calendar.monthView"), I = e("calendar.weekView"), C = e("calendar.dayView"), f = e("calendar.titleFormat"), a = e("calendar.yearViewTitleFormat"), c = e("calendar.prevMonth"), y = e("calendar.nextMonth"), r = e("calendar.prevWeek"), i = e("calendar.nextWeek"), v = e("calendar.prevDay"), d = e("calendar.nextDay"), E = e("calendar.prevYear"), s = e("calendar.nextYear"), h = e("calendar.more", "") || "还有 #count# 项...";
|
|
1251
1251
|
return {
|
|
1252
1252
|
monthLabels: n,
|
|
1253
1253
|
weekDayLabels: o,
|
|
@@ -1261,7 +1261,7 @@ function on() {
|
|
|
1261
1261
|
prevWeek: r,
|
|
1262
1262
|
nextWeek: i,
|
|
1263
1263
|
prevDay: v,
|
|
1264
|
-
nextDay:
|
|
1264
|
+
nextDay: d,
|
|
1265
1265
|
yearViewTitle: p,
|
|
1266
1266
|
yearViewTitleFormat: a,
|
|
1267
1267
|
thisYear: w,
|
|
@@ -1284,7 +1284,7 @@ function cn(e) {
|
|
|
1284
1284
|
const t = ln(e);
|
|
1285
1285
|
return !isNaN(Number(t));
|
|
1286
1286
|
}
|
|
1287
|
-
function
|
|
1287
|
+
function dn(e, t, n, o, m, w, p) {
|
|
1288
1288
|
const {
|
|
1289
1289
|
equalOrEarlier: D,
|
|
1290
1290
|
sameDay: I
|
|
@@ -1295,42 +1295,42 @@ function un(e, t, n, o, m, w, p) {
|
|
|
1295
1295
|
formatTo: a
|
|
1296
1296
|
} = n;
|
|
1297
1297
|
function c(S, P) {
|
|
1298
|
-
S.forEach((
|
|
1299
|
-
|
|
1298
|
+
S.forEach((u) => {
|
|
1299
|
+
u.days.forEach((T) => {
|
|
1300
1300
|
T.events = [];
|
|
1301
1301
|
});
|
|
1302
1302
|
});
|
|
1303
|
-
const
|
|
1304
|
-
if (!
|
|
1303
|
+
const F = /* @__PURE__ */ new Map(), g = (u) => {
|
|
1304
|
+
if (!u)
|
|
1305
1305
|
return null;
|
|
1306
|
-
if (
|
|
1307
|
-
return
|
|
1308
|
-
const T = f(
|
|
1306
|
+
if (F.has(u))
|
|
1307
|
+
return F.get(u);
|
|
1308
|
+
const T = f(u, "yyyy-MM-dd");
|
|
1309
1309
|
if (!T)
|
|
1310
1310
|
return null;
|
|
1311
1311
|
const L = C(T);
|
|
1312
|
-
return
|
|
1312
|
+
return F.set(u, L), L;
|
|
1313
1313
|
};
|
|
1314
|
-
return P.forEach((
|
|
1314
|
+
return P.forEach((u) => {
|
|
1315
1315
|
const {
|
|
1316
1316
|
eventDateField: T,
|
|
1317
1317
|
startDateField: L
|
|
1318
|
-
} = e, O = K(
|
|
1318
|
+
} = e, O = K(u, T) || K(u, L), b = g(O);
|
|
1319
1319
|
b && S.forEach((j) => {
|
|
1320
1320
|
j.days.forEach((V) => {
|
|
1321
|
-
var
|
|
1322
|
-
I(V.date, b) && ((
|
|
1323
|
-
id:
|
|
1321
|
+
var x;
|
|
1322
|
+
I(V.date, b) && ((x = V.events) == null || x.push({
|
|
1323
|
+
id: u[e.idField],
|
|
1324
1324
|
data: {
|
|
1325
|
-
...
|
|
1325
|
+
...u
|
|
1326
1326
|
},
|
|
1327
1327
|
eventDate: b,
|
|
1328
1328
|
isSingleDay: !0
|
|
1329
1329
|
}));
|
|
1330
1330
|
});
|
|
1331
1331
|
});
|
|
1332
|
-
}), S.forEach((
|
|
1333
|
-
const T = [], L =
|
|
1332
|
+
}), S.forEach((u) => {
|
|
1333
|
+
const T = [], L = u.days.map((b, j) => b.events && b.events.length > 0 ? b.events.map((V, x) => ({
|
|
1334
1334
|
...V,
|
|
1335
1335
|
// 在非跨天模式下,colspan为1,rowspan为1
|
|
1336
1336
|
colspan: 1,
|
|
@@ -1349,51 +1349,51 @@ function un(e, t, n, o, m, w, p) {
|
|
|
1349
1349
|
});
|
|
1350
1350
|
T.push(j);
|
|
1351
1351
|
}
|
|
1352
|
-
|
|
1352
|
+
u.events = T;
|
|
1353
1353
|
}), S;
|
|
1354
1354
|
}
|
|
1355
1355
|
function y(S, P) {
|
|
1356
|
-
S.forEach((
|
|
1357
|
-
|
|
1356
|
+
S.forEach((u) => {
|
|
1357
|
+
u.events = [];
|
|
1358
1358
|
});
|
|
1359
|
-
const
|
|
1360
|
-
if (!
|
|
1359
|
+
const F = /* @__PURE__ */ new Map(), g = (u) => {
|
|
1360
|
+
if (!u)
|
|
1361
1361
|
return null;
|
|
1362
|
-
if (
|
|
1363
|
-
return
|
|
1364
|
-
const T = f(
|
|
1362
|
+
if (F.has(u))
|
|
1363
|
+
return F.get(u);
|
|
1364
|
+
const T = f(u, "yyyy-MM-dd");
|
|
1365
1365
|
if (!T)
|
|
1366
1366
|
return null;
|
|
1367
1367
|
const L = C(T);
|
|
1368
|
-
return
|
|
1368
|
+
return F.set(u, L), L;
|
|
1369
1369
|
};
|
|
1370
|
-
return P.forEach((
|
|
1370
|
+
return P.forEach((u) => {
|
|
1371
1371
|
const {
|
|
1372
1372
|
startDateField: T,
|
|
1373
1373
|
endDateField: L
|
|
1374
|
-
} = e, O = g(K(
|
|
1374
|
+
} = e, O = g(K(u, T)), b = g(K(u, L));
|
|
1375
1375
|
!O || !b || S.forEach((j) => {
|
|
1376
1376
|
var W, z, G, _;
|
|
1377
|
-
const V = j.days[0].date,
|
|
1378
|
-
if (!(D(b, V, !1) || D(
|
|
1377
|
+
const V = j.days[0].date, x = j.days[j.days.length - 1].date;
|
|
1378
|
+
if (!(D(b, V, !1) || D(x, O, !1)))
|
|
1379
1379
|
if (I(O, b))
|
|
1380
1380
|
(W = j.events) == null || W.push({
|
|
1381
|
-
id:
|
|
1381
|
+
id: u[e.idField],
|
|
1382
1382
|
data: {
|
|
1383
|
-
...
|
|
1383
|
+
...u
|
|
1384
1384
|
},
|
|
1385
1385
|
eventDate: O,
|
|
1386
1386
|
isSingleDay: !0
|
|
1387
1387
|
});
|
|
1388
1388
|
else {
|
|
1389
|
-
const J = D(V, O, !1) ? O : V, q = D(b,
|
|
1389
|
+
const J = D(V, O, !1) ? O : V, q = D(b, x, !1) ? b : x;
|
|
1390
1390
|
let Q = -1, ae = -1;
|
|
1391
|
-
j.days.forEach((
|
|
1392
|
-
I(
|
|
1391
|
+
j.days.forEach((ue, fe) => {
|
|
1392
|
+
I(ue.date, J) && (Q = fe), I(ue.date, q) && (ae = fe);
|
|
1393
1393
|
}), Q !== -1 && ae !== -1 && ((z = j.events) == null || z.push({
|
|
1394
|
-
id:
|
|
1394
|
+
id: u[e.idField],
|
|
1395
1395
|
data: {
|
|
1396
|
-
...
|
|
1396
|
+
...u
|
|
1397
1397
|
},
|
|
1398
1398
|
// 修复:eventDate 应该是事件在整个事件范围内的起始日期
|
|
1399
1399
|
eventDate: O,
|
|
@@ -1408,41 +1408,41 @@ function un(e, t, n, o, m, w, p) {
|
|
|
1408
1408
|
}));
|
|
1409
1409
|
}
|
|
1410
1410
|
else
|
|
1411
|
-
I(O,
|
|
1412
|
-
id: `${
|
|
1411
|
+
I(O, x) && !I(b, x) && ((G = j.events) == null || G.push({
|
|
1412
|
+
id: `${u[e.idField]}_start`,
|
|
1413
1413
|
data: {
|
|
1414
|
-
...
|
|
1414
|
+
...u
|
|
1415
1415
|
},
|
|
1416
1416
|
eventDate: O,
|
|
1417
1417
|
isSingleDay: !0,
|
|
1418
1418
|
isOverlapping: !0,
|
|
1419
|
-
originalId:
|
|
1419
|
+
originalId: u[e.idField]
|
|
1420
1420
|
})), I(b, V) && !I(O, V) && ((_ = j.events) == null || _.push({
|
|
1421
|
-
id: `${
|
|
1421
|
+
id: `${u[e.idField]}_end`,
|
|
1422
1422
|
data: {
|
|
1423
|
-
...
|
|
1423
|
+
...u
|
|
1424
1424
|
},
|
|
1425
1425
|
eventDate: b,
|
|
1426
1426
|
isSingleDay: !0,
|
|
1427
1427
|
isOverlapping: !0,
|
|
1428
|
-
originalId:
|
|
1428
|
+
originalId: u[e.idField]
|
|
1429
1429
|
}));
|
|
1430
1430
|
});
|
|
1431
|
-
}), S.forEach((
|
|
1432
|
-
|
|
1431
|
+
}), S.forEach((u) => {
|
|
1432
|
+
u.days.forEach((T, L) => {
|
|
1433
1433
|
var V;
|
|
1434
|
-
const O = (V =
|
|
1435
|
-
year:
|
|
1436
|
-
month:
|
|
1437
|
-
day:
|
|
1434
|
+
const O = (V = u.events) == null ? void 0 : V.filter((x) => x.isCrossDay ? L >= x.startIndex && L <= x.endIndex : x.isSingleDay ? I({
|
|
1435
|
+
year: x.eventDate.year,
|
|
1436
|
+
month: x.eventDate.month,
|
|
1437
|
+
day: x.eventDate.day
|
|
1438
1438
|
}, {
|
|
1439
1439
|
year: T.date.year,
|
|
1440
1440
|
month: T.date.month,
|
|
1441
1441
|
day: T.date.day
|
|
1442
|
-
}) : !1), b = O == null ? void 0 : O.find((
|
|
1443
|
-
b && j.length > 0 && j.forEach((
|
|
1442
|
+
}) : !1), b = O == null ? void 0 : O.find((x) => x.isCrossDay), j = (O == null ? void 0 : O.filter((x) => x.isSingleDay)) || [];
|
|
1443
|
+
b && j.length > 0 && j.forEach((x) => {
|
|
1444
1444
|
var W, z;
|
|
1445
|
-
((W =
|
|
1445
|
+
((W = u.events) == null ? void 0 : W.some((G) => (G.originalId === x.id || G.id === x.id) && I({
|
|
1446
1446
|
year: G.eventDate.year,
|
|
1447
1447
|
month: G.eventDate.month,
|
|
1448
1448
|
day: G.eventDate.day
|
|
@@ -1450,34 +1450,34 @@ function un(e, t, n, o, m, w, p) {
|
|
|
1450
1450
|
year: T.date.year,
|
|
1451
1451
|
month: T.date.month,
|
|
1452
1452
|
day: T.date.day
|
|
1453
|
-
}))) || (z =
|
|
1454
|
-
id:
|
|
1453
|
+
}))) || (z = u.events) == null || z.push({
|
|
1454
|
+
id: x.id,
|
|
1455
1455
|
data: {
|
|
1456
|
-
...
|
|
1456
|
+
...x.data
|
|
1457
1457
|
},
|
|
1458
1458
|
eventDate: T.date,
|
|
1459
1459
|
isSingleDay: !0,
|
|
1460
1460
|
isOverlapping: !0,
|
|
1461
|
-
originalId:
|
|
1461
|
+
originalId: x.id
|
|
1462
1462
|
});
|
|
1463
1463
|
});
|
|
1464
1464
|
});
|
|
1465
|
-
}), S.forEach((
|
|
1465
|
+
}), S.forEach((u) => {
|
|
1466
1466
|
const T = [];
|
|
1467
1467
|
for (let b = 0; b < 10; b++)
|
|
1468
1468
|
T[b] = Array(7).fill(null);
|
|
1469
|
-
[...
|
|
1469
|
+
[...u.events].sort((b, j) => {
|
|
1470
1470
|
if (b.isCrossDay && !j.isCrossDay)
|
|
1471
1471
|
return -1;
|
|
1472
1472
|
if (!b.isCrossDay && j.isCrossDay)
|
|
1473
1473
|
return 1;
|
|
1474
1474
|
if (b.isCrossDay && j.isCrossDay)
|
|
1475
1475
|
return b.startIndex - j.startIndex;
|
|
1476
|
-
const V = b.eventDate,
|
|
1477
|
-
return V.year !==
|
|
1476
|
+
const V = b.eventDate, x = j.eventDate;
|
|
1477
|
+
return V.year !== x.year ? V.year - x.year : V.month !== x.month ? V.month - x.month : V.day - x.day;
|
|
1478
1478
|
}).forEach((b) => {
|
|
1479
|
-
let j = 0, V = !1,
|
|
1480
|
-
for (b.isCrossDay ? (
|
|
1479
|
+
let j = 0, V = !1, x = 0, Y = 1;
|
|
1480
|
+
for (b.isCrossDay ? (x = b.startIndex, Y = b.colspan) : (x = u.days.findIndex((W) => I({
|
|
1481
1481
|
year: b.eventDate.year,
|
|
1482
1482
|
month: b.eventDate.month,
|
|
1483
1483
|
day: b.eventDate.day
|
|
@@ -1487,17 +1487,17 @@ function un(e, t, n, o, m, w, p) {
|
|
|
1487
1487
|
day: W.date.day
|
|
1488
1488
|
})), Y = 1); !V && j < T.length; ) {
|
|
1489
1489
|
let W = !0;
|
|
1490
|
-
for (let z =
|
|
1490
|
+
for (let z = x; z < x + Y; z++)
|
|
1491
1491
|
if (T[j][z] !== null) {
|
|
1492
1492
|
W = !1;
|
|
1493
1493
|
break;
|
|
1494
1494
|
}
|
|
1495
1495
|
if (W) {
|
|
1496
|
-
for (let z =
|
|
1497
|
-
T[j][z] = z ===
|
|
1496
|
+
for (let z = x; z < x + Y; z++)
|
|
1497
|
+
T[j][z] = z === x ? b : {
|
|
1498
1498
|
...b,
|
|
1499
1499
|
isPlaceholder: !0,
|
|
1500
|
-
colspan: z ===
|
|
1500
|
+
colspan: z === x ? Y : 0
|
|
1501
1501
|
};
|
|
1502
1502
|
V = !0;
|
|
1503
1503
|
} else
|
|
@@ -1509,38 +1509,38 @@ function un(e, t, n, o, m, w, p) {
|
|
|
1509
1509
|
if (b.some((j) => j !== null)) {
|
|
1510
1510
|
const j = [];
|
|
1511
1511
|
for (let V = 0; V < b.length; V++) {
|
|
1512
|
-
const
|
|
1513
|
-
|
|
1512
|
+
const x = b[V];
|
|
1513
|
+
x === null ? j.push({
|
|
1514
1514
|
colspan: 1,
|
|
1515
1515
|
rowspan: 1,
|
|
1516
1516
|
data: null
|
|
1517
|
-
}) :
|
|
1517
|
+
}) : x.isPlaceholder || j.push(x), x && (x.colspan = x.colspan || 1, x.colspan > 1 && (V += x.colspan - 1));
|
|
1518
1518
|
}
|
|
1519
1519
|
O.push(j);
|
|
1520
1520
|
}
|
|
1521
|
-
}),
|
|
1521
|
+
}), u.events = O;
|
|
1522
1522
|
}), S;
|
|
1523
1523
|
}
|
|
1524
1524
|
function r(S, P) {
|
|
1525
|
-
const
|
|
1525
|
+
const F = {};
|
|
1526
1526
|
return P.forEach((g) => {
|
|
1527
1527
|
const {
|
|
1528
|
-
eventDateField:
|
|
1528
|
+
eventDateField: u,
|
|
1529
1529
|
startDateField: T
|
|
1530
|
-
} = e, L = K(g,
|
|
1530
|
+
} = e, L = K(g, u) || K(g, T);
|
|
1531
1531
|
if (!L)
|
|
1532
1532
|
return;
|
|
1533
1533
|
const O = C(f(L, "yyyy-MM-dd"));
|
|
1534
1534
|
if (O.year === S) {
|
|
1535
1535
|
const b = "" + O.month;
|
|
1536
|
-
|
|
1536
|
+
F[b] = F[b] || [], F[b].push({
|
|
1537
1537
|
data: {
|
|
1538
1538
|
...g
|
|
1539
1539
|
},
|
|
1540
1540
|
eventDate: O
|
|
1541
1541
|
});
|
|
1542
1542
|
}
|
|
1543
|
-
}),
|
|
1543
|
+
}), F;
|
|
1544
1544
|
}
|
|
1545
1545
|
function i() {
|
|
1546
1546
|
return oe[w.value - 1];
|
|
@@ -1551,21 +1551,21 @@ function un(e, t, n, o, m, w, p) {
|
|
|
1551
1551
|
view: i()
|
|
1552
1552
|
});
|
|
1553
1553
|
}
|
|
1554
|
-
const
|
|
1554
|
+
const d = (S, P, F) => {
|
|
1555
1555
|
const g = K(S, P);
|
|
1556
|
-
return typeof g == "string" ? g : g !== null && typeof g == "object" && !Array.isArray(g) &&
|
|
1556
|
+
return typeof g == "string" ? g : g !== null && typeof g == "object" && !Array.isArray(g) && F ? g[F] || "" : g || "";
|
|
1557
1557
|
};
|
|
1558
1558
|
function E(S) {
|
|
1559
1559
|
return Te(e.eventItemFormatter) ? e.eventItemFormatter(S.data, {
|
|
1560
1560
|
parseToDate: f,
|
|
1561
1561
|
formatTo: a,
|
|
1562
|
-
getValue:
|
|
1562
|
+
getValue: d,
|
|
1563
1563
|
view: i(),
|
|
1564
1564
|
locale: p
|
|
1565
1565
|
}) : K(S.data, e.textField || "title");
|
|
1566
1566
|
}
|
|
1567
1567
|
function s(S) {
|
|
1568
|
-
return Te(e.eventItemFormatter) ? "" :
|
|
1568
|
+
return Te(e.eventItemFormatter) ? "" : d(S.data, e.textField || "title", p);
|
|
1569
1569
|
}
|
|
1570
1570
|
const h = (S) => {
|
|
1571
1571
|
if (!S || !S.data)
|
|
@@ -1579,7 +1579,7 @@ function un(e, t, n, o, m, w, p) {
|
|
|
1579
1579
|
const P = e.customEventStyles(S.data, {
|
|
1580
1580
|
parseToDate: f,
|
|
1581
1581
|
formatTo: a,
|
|
1582
|
-
getValue:
|
|
1582
|
+
getValue: d,
|
|
1583
1583
|
view: i(),
|
|
1584
1584
|
locale: p
|
|
1585
1585
|
});
|
|
@@ -1588,11 +1588,11 @@ function un(e, t, n, o, m, w, p) {
|
|
|
1588
1588
|
function N(S) {
|
|
1589
1589
|
const {
|
|
1590
1590
|
cls: P,
|
|
1591
|
-
styles:
|
|
1591
|
+
styles: F
|
|
1592
1592
|
} = h(S);
|
|
1593
1593
|
return l("a", {
|
|
1594
1594
|
onClick: (g) => v(g, S),
|
|
1595
|
-
style:
|
|
1595
|
+
style: F || {},
|
|
1596
1596
|
class: "f-calendar-event p-0 mx-1 my-0 " + (P || "")
|
|
1597
1597
|
}, [l("div", {
|
|
1598
1598
|
class: "event-title",
|
|
@@ -1606,11 +1606,11 @@ function un(e, t, n, o, m, w, p) {
|
|
|
1606
1606
|
function $(S) {
|
|
1607
1607
|
const {
|
|
1608
1608
|
cls: P,
|
|
1609
|
-
styles:
|
|
1609
|
+
styles: F
|
|
1610
1610
|
} = h(S);
|
|
1611
1611
|
return l("li", {
|
|
1612
1612
|
style: {
|
|
1613
|
-
...
|
|
1613
|
+
...F || {},
|
|
1614
1614
|
"padding-bottom": "2px"
|
|
1615
1615
|
},
|
|
1616
1616
|
class: P,
|
|
@@ -1655,19 +1655,19 @@ const ne = /* @__PURE__ */ ee({
|
|
|
1655
1655
|
nextDay: r,
|
|
1656
1656
|
yearViewTitle: i,
|
|
1657
1657
|
yearViewTitleFormat: v,
|
|
1658
|
-
thisYear:
|
|
1658
|
+
thisYear: d,
|
|
1659
1659
|
prevYear: E,
|
|
1660
1660
|
nextYear: s,
|
|
1661
1661
|
moreText: h,
|
|
1662
1662
|
locale: N
|
|
1663
|
-
} = on(), M = Oe(), $ = Wt(), S =
|
|
1663
|
+
} = on(), M = Oe(), $ = Wt(), S = de(), {
|
|
1664
1664
|
sameDay: P
|
|
1665
1665
|
} = M, {
|
|
1666
|
-
getToday:
|
|
1666
|
+
getToday: F,
|
|
1667
1667
|
convertDateToDateObject: g
|
|
1668
1668
|
} = S, {
|
|
1669
|
-
parseToDate:
|
|
1670
|
-
} = $, T = B(e.firstDayOfTheWeek), L = B(e.events), O = B(e.enableCrossDay), b =
|
|
1669
|
+
parseToDate: u
|
|
1670
|
+
} = $, T = B(e.firstDayOfTheWeek), L = B(e.events), O = B(e.enableCrossDay), b = F(), j = B(e.activeDate), V = B(0), x = B(e.visible), Y = dn(e, S, $, M, t, V, N);
|
|
1671
1671
|
Et("eventsComposition", Y);
|
|
1672
1672
|
const W = B({
|
|
1673
1673
|
year: b.year || 1,
|
|
@@ -1675,7 +1675,7 @@ const ne = /* @__PURE__ */ ee({
|
|
|
1675
1675
|
day: b.day || 1
|
|
1676
1676
|
});
|
|
1677
1677
|
function z() {
|
|
1678
|
-
typeof j.value == "string" && (j.value =
|
|
1678
|
+
typeof j.value == "string" && (j.value = u(j.value, "yyyy-MM-dd")), cn(j.value) && (W.value = g(j.value));
|
|
1679
1679
|
}
|
|
1680
1680
|
z(), H(() => e.activeDate, () => {
|
|
1681
1681
|
j.value = e.activeDate, z();
|
|
@@ -1695,7 +1695,7 @@ const ne = /* @__PURE__ */ ee({
|
|
|
1695
1695
|
const {
|
|
1696
1696
|
getMonthlyCalendar: Q,
|
|
1697
1697
|
getWeeklyCalendar: ae,
|
|
1698
|
-
getPreviousDay:
|
|
1698
|
+
getPreviousDay: ue,
|
|
1699
1699
|
getNextDay: fe,
|
|
1700
1700
|
getDayInPreviousWeek: Je,
|
|
1701
1701
|
getDayInNextWeek: Xe,
|
|
@@ -1703,7 +1703,7 @@ const ne = /* @__PURE__ */ ee({
|
|
|
1703
1703
|
getDayInNextMonth: Ze,
|
|
1704
1704
|
getNextYear: Ke,
|
|
1705
1705
|
getPreviousYear: et
|
|
1706
|
-
} = Zt(), tt = A(() => V.value === 1 ? v.replace("yyyy", "" + W.value.year) : n.replace("yyyy", "" + W.value.year).replace("MM", "" + W.value.month)), nt = A(() => V.value === 1 ?
|
|
1706
|
+
} = Zt(), tt = A(() => V.value === 1 ? v.replace("yyyy", "" + W.value.year) : n.replace("yyyy", "" + W.value.year).replace("MM", "" + W.value.month)), nt = A(() => V.value === 1 ? d : o), at = A(() => {
|
|
1707
1707
|
const k = [], R = X.indexOf(T.value);
|
|
1708
1708
|
if (R !== -1) {
|
|
1709
1709
|
let U = R;
|
|
@@ -1754,15 +1754,15 @@ const ne = /* @__PURE__ */ ee({
|
|
|
1754
1754
|
});
|
|
1755
1755
|
};
|
|
1756
1756
|
function lt(k) {
|
|
1757
|
-
k === 1 && (W.value = et(W.value), be()), k === 2 && (W.value = Qe(W.value), ge()), k === 3 && (W.value = Je(W.value)), k === 4 && (W.value =
|
|
1757
|
+
k === 1 && (W.value = et(W.value), be()), k === 2 && (W.value = Qe(W.value), ge()), k === 3 && (W.value = Je(W.value)), k === 4 && (W.value = ue(W.value));
|
|
1758
1758
|
}
|
|
1759
1759
|
function st(k) {
|
|
1760
1760
|
k === 1 && (W.value = Ke(W.value), be()), k === 2 && (W.value = Ze(W.value), ge()), k === 3 && (W.value = Xe(W.value)), k === 4 && (W.value = fe(W.value));
|
|
1761
1761
|
}
|
|
1762
1762
|
const We = () => {
|
|
1763
1763
|
oe[V.value - 1] === "year" ? be() : ge();
|
|
1764
|
-
}, ct = A(() => [E, m, a, y][V.value - 1]),
|
|
1765
|
-
function
|
|
1764
|
+
}, ct = A(() => [E, m, a, y][V.value - 1]), dt = A(() => [s, w, c, r][V.value - 1]);
|
|
1765
|
+
function ut() {
|
|
1766
1766
|
W.value = {
|
|
1767
1767
|
year: b.year || 1,
|
|
1768
1768
|
month: b.month || 1,
|
|
@@ -1812,12 +1812,12 @@ const ne = /* @__PURE__ */ ee({
|
|
|
1812
1812
|
}
|
|
1813
1813
|
let re = null;
|
|
1814
1814
|
H(() => e.visible, (k, R) => {
|
|
1815
|
-
k !== R && (
|
|
1815
|
+
k !== R && (x.value = k, k ? setTimeout(() => {
|
|
1816
1816
|
re = Re(J.value, we);
|
|
1817
1817
|
}) : re && re());
|
|
1818
1818
|
}), ie(() => {
|
|
1819
1819
|
setTimeout(() => {
|
|
1820
|
-
|
|
1820
|
+
x.value && (re = Re(J.value, we));
|
|
1821
1821
|
});
|
|
1822
1822
|
}), It(() => {
|
|
1823
1823
|
re && re();
|
|
@@ -1845,18 +1845,18 @@ const ne = /* @__PURE__ */ ee({
|
|
|
1845
1845
|
}, e == null ? void 0 : e.customStyle));
|
|
1846
1846
|
return t.expose({
|
|
1847
1847
|
loadEvents: ht
|
|
1848
|
-
}), () =>
|
|
1848
|
+
}), () => x.value && l("div", {
|
|
1849
1849
|
class: yt.value,
|
|
1850
1850
|
ref: J,
|
|
1851
1851
|
style: wt.value
|
|
1852
|
-
}, [l(
|
|
1852
|
+
}, [l(Fe, {
|
|
1853
1853
|
activeView: V.value,
|
|
1854
1854
|
isCurrent: it.value,
|
|
1855
1855
|
todayText: nt.value,
|
|
1856
1856
|
title: tt.value,
|
|
1857
1857
|
enableMoreView: e.enableMoreView,
|
|
1858
1858
|
previousText: ct.value,
|
|
1859
|
-
nextText:
|
|
1859
|
+
nextText: dt.value,
|
|
1860
1860
|
monthlyViewTitle: D,
|
|
1861
1861
|
weeklyViewTitle: I,
|
|
1862
1862
|
dailyViewTitle: p,
|
|
@@ -1864,7 +1864,7 @@ const ne = /* @__PURE__ */ ee({
|
|
|
1864
1864
|
onViewChange: (k) => vt(k),
|
|
1865
1865
|
onPrevious: (k) => lt(k),
|
|
1866
1866
|
onNext: (k) => st(k),
|
|
1867
|
-
onResetToToday: () =>
|
|
1867
|
+
onResetToToday: () => ut()
|
|
1868
1868
|
}, null), l("div", {
|
|
1869
1869
|
class: "f-utils-fill"
|
|
1870
1870
|
}, [V.value === 4 && l(Ie, {
|
|
@@ -1874,7 +1874,7 @@ const ne = /* @__PURE__ */ ee({
|
|
|
1874
1874
|
}, null), V.value === 3 && l(Ee, {
|
|
1875
1875
|
week: me.value,
|
|
1876
1876
|
events: L.value
|
|
1877
|
-
}, null), V.value === 2 && l(
|
|
1877
|
+
}, null), V.value === 2 && l(xe, {
|
|
1878
1878
|
daysInWeek: at.value,
|
|
1879
1879
|
monthLabels: f,
|
|
1880
1880
|
activeDay: W.value,
|
|
@@ -1951,10 +1951,12 @@ const ne = /* @__PURE__ */ ee({
|
|
|
1951
1951
|
drawer: { type: "drawer", name: "抽屉" },
|
|
1952
1952
|
"external-container": { type: "external-container", name: "外部容器", icon: "content-container" },
|
|
1953
1953
|
"list-nav": { type: "list-nav", name: "列表导航" },
|
|
1954
|
+
nav: { type: "nav", name: "标签类导航" },
|
|
1954
1955
|
"list-view": { type: "list-view", name: "列表" },
|
|
1955
1956
|
"filter-bar": { type: "filter-bar", name: "筛选条" },
|
|
1956
1957
|
"language-textbox": { type: "language-textbox", name: "多语输入框" },
|
|
1957
1958
|
image: { type: "image", name: "图像" },
|
|
1959
|
+
avatar: { type: "avatar", name: "头像" },
|
|
1958
1960
|
"discussion-editor": { type: "discussion-editor", name: "评论编辑区" },
|
|
1959
1961
|
"discussion-list": { type: "discussion-list", name: "评论列表" },
|
|
1960
1962
|
comment: { type: "comment", name: "评论区" },
|
|
@@ -1962,7 +1964,8 @@ const ne = /* @__PURE__ */ ee({
|
|
|
1962
1964
|
calendar: { type: "calendar", name: "日历", icon: "date-picker" },
|
|
1963
1965
|
wizard: { type: "wizard", name: "向导", icon: "wizard" },
|
|
1964
1966
|
"wizard-page": { type: "wizard-page", name: "向导页", icon: "wizard" },
|
|
1965
|
-
"wizard-page-detail": { type: "wizard-page-detail", name: "向导详情", icon: "wizard" }
|
|
1967
|
+
"wizard-page-detail": { type: "wizard-page-detail", name: "向导详情", icon: "wizard" },
|
|
1968
|
+
step: { type: "step", name: "步骤条", icon: "step" }
|
|
1966
1969
|
};
|
|
1967
1970
|
function qe(e, t) {
|
|
1968
1971
|
return l("h5", {
|
|
@@ -1989,7 +1992,7 @@ context: 提供一些时间转换方法,以及获取日程数据的方法
|
|
|
1989
1992
|
// 当前语言编码
|
|
1990
1993
|
locale: string
|
|
1991
1994
|
${e ? "此方法返回一个字符串,可包括HTML代码,如:<div>...</div>" : "此方法返回一个对象,包含cls和styles两个属性,cls为事件样式类名,styles为事件样式对象"}
|
|
1992
|
-
*/`,
|
|
1995
|
+
*/`, un = (e) => {
|
|
1993
1996
|
const t = `(data, context) => {
|
|
1994
1997
|
/**
|
|
1995
1998
|
* const {formatTo, view, locale, getValue} = context;
|
|
@@ -2269,7 +2272,7 @@ class mn extends Rt {
|
|
|
2269
2272
|
editor: {
|
|
2270
2273
|
type: "code-editor",
|
|
2271
2274
|
language: "javascript",
|
|
2272
|
-
leftTemplate:
|
|
2275
|
+
leftTemplate: un
|
|
2273
2276
|
}
|
|
2274
2277
|
}
|
|
2275
2278
|
},
|
|
@@ -2348,17 +2351,17 @@ function vn(e, t) {
|
|
|
2348
2351
|
var a, c, y, r;
|
|
2349
2352
|
if (e && t) {
|
|
2350
2353
|
const i = (a = e == null ? void 0 : e.componentInstance) == null ? void 0 : a.value.belongedComponentId;
|
|
2351
|
-
let v = "",
|
|
2354
|
+
let v = "", d = "";
|
|
2352
2355
|
const { formSchemaUtils: E } = t;
|
|
2353
2356
|
if (i) {
|
|
2354
2357
|
const h = E.getRootViewModelId(), N = E.getComponentByViewModelId(h), M = E.selectNode(N, ($) => $.contents && $.contents.find((S) => S.component === i));
|
|
2355
|
-
(M == null ? void 0 : M.type) === ((c = he["tab-page"]) == null ? void 0 : c.type) && ((y = M == null ? void 0 : M.contents) != null && y.length) && (v = M.title || ""), (M == null ? void 0 : M.type) === ((r = he.section) == null ? void 0 : r.type) && (M == null ? void 0 : M.showHeader) !== !1 && (v = M.mainTitle || ""), v = v ? `${v} > ` : "",
|
|
2358
|
+
(M == null ? void 0 : M.type) === ((c = he["tab-page"]) == null ? void 0 : c.type) && ((y = M == null ? void 0 : M.contents) != null && y.length) && (v = M.title || ""), (M == null ? void 0 : M.type) === ((r = he.section) == null ? void 0 : r.type) && (M == null ? void 0 : M.showHeader) !== !1 && (v = M.mainTitle || ""), v = v ? `${v} > ` : "", d = v ? M.id : "";
|
|
2356
2359
|
}
|
|
2357
2360
|
const s = he.calendar.name;
|
|
2358
2361
|
t == null || t.formSchemaUtils.getControlBasicInfoMap().set(e.schema.id, {
|
|
2359
2362
|
componentTitle: s,
|
|
2360
2363
|
parentPathName: `${v}${s}`,
|
|
2361
|
-
reliedComponentId:
|
|
2364
|
+
reliedComponentId: d
|
|
2362
2365
|
});
|
|
2363
2366
|
}
|
|
2364
2367
|
}
|
|
@@ -2403,17 +2406,17 @@ const yn = /* @__PURE__ */ ee({
|
|
|
2403
2406
|
function Ue(e, t) {
|
|
2404
2407
|
let n;
|
|
2405
2408
|
function o(a) {
|
|
2406
|
-
const { properties: c, title: y, ignore: r } = a, i = r && Array.isArray(r), v = Object.keys(c).reduce((
|
|
2407
|
-
if (y && (!i || !r.find((
|
|
2408
|
-
const
|
|
2409
|
-
v.id = `${
|
|
2409
|
+
const { properties: c, title: y, ignore: r } = a, i = r && Array.isArray(r), v = Object.keys(c).reduce((d, E) => ((!i || !r.find((s) => s === E)) && (d[E] = c[E].type === "object" && c[E].properties ? o(c[E]) : ce(c[E].default)), d), {});
|
|
2410
|
+
if (y && (!i || !r.find((d) => d === "id"))) {
|
|
2411
|
+
const d = y.toLowerCase().replace(/-/g, "_");
|
|
2412
|
+
v.id = `${d}_${Math.random().toString().slice(2, 6)}`;
|
|
2410
2413
|
}
|
|
2411
2414
|
return v;
|
|
2412
2415
|
}
|
|
2413
2416
|
function m(a) {
|
|
2414
2417
|
const { properties: c, title: y, required: r } = a;
|
|
2415
2418
|
if (r && Array.isArray(r)) {
|
|
2416
|
-
const i = r.reduce((v,
|
|
2419
|
+
const i = r.reduce((v, d) => (v[d] = c[d].type === "object" && c[d].properties ? o(c[d]) : ce(c[d].default), v), {});
|
|
2417
2420
|
if (y && r.find((v) => v === "id")) {
|
|
2418
2421
|
const v = y.toLowerCase().replace(/-/g, "_");
|
|
2419
2422
|
i.id = `${v}_${Math.random().toString().slice(2, 6)}`;
|
|
@@ -2444,8 +2447,8 @@ function Ue(e, t) {
|
|
|
2444
2447
|
if (typeof v == "string")
|
|
2445
2448
|
r[v] = a[i];
|
|
2446
2449
|
else {
|
|
2447
|
-
const
|
|
2448
|
-
Object.assign(r,
|
|
2450
|
+
const d = v(i, a[i], a);
|
|
2451
|
+
Object.assign(r, d);
|
|
2449
2452
|
}
|
|
2450
2453
|
} else
|
|
2451
2454
|
r[i] = a[i];
|
|
@@ -2465,7 +2468,7 @@ function Ue(e, t) {
|
|
|
2465
2468
|
return a;
|
|
2466
2469
|
const i = p(a, r), v = ((y = a.editor) == null ? void 0 : y.type) || "";
|
|
2467
2470
|
if (v) {
|
|
2468
|
-
const
|
|
2471
|
+
const d = e[v], E = p(a.editor, d);
|
|
2469
2472
|
i.editor = E;
|
|
2470
2473
|
}
|
|
2471
2474
|
return i;
|
|
@@ -2527,8 +2530,8 @@ function bn(e = {}) {
|
|
|
2527
2530
|
return w(C).reduce((y, r) => y && p(r, f), !0);
|
|
2528
2531
|
}
|
|
2529
2532
|
function I(C, f) {
|
|
2530
|
-
const a = Object.keys(C), c = a.includes("allOf"), y = a.includes("anyOf"), r = c || y,
|
|
2531
|
-
return c ? !
|
|
2533
|
+
const a = Object.keys(C), c = a.includes("allOf"), y = a.includes("anyOf"), r = c || y, d = (r ? C[r ? c ? "allOf" : "anyOf" : "allOf"] : [C]).map((s) => D(s, f));
|
|
2534
|
+
return c ? !d.includes(!1) : d.includes(!0);
|
|
2532
2535
|
}
|
|
2533
2536
|
return { parseValueSchema: I };
|
|
2534
2537
|
}
|
|
@@ -2649,7 +2652,7 @@ const wn = {
|
|
|
2649
2652
|
}
|
|
2650
2653
|
return "";
|
|
2651
2654
|
}
|
|
2652
|
-
},
|
|
2655
|
+
}, Fn = {
|
|
2653
2656
|
convertTo: (e, t, n, o) => {
|
|
2654
2657
|
e.column ? e.column[t] = n : e.column = {
|
|
2655
2658
|
[t]: n
|
|
@@ -2664,7 +2667,7 @@ const wn = {
|
|
|
2664
2667
|
}
|
|
2665
2668
|
return "";
|
|
2666
2669
|
}
|
|
2667
|
-
},
|
|
2670
|
+
}, xn = {
|
|
2668
2671
|
convertTo: (e, t, n, o) => {
|
|
2669
2672
|
e.summary ? e.summary[t] = n : e.summary = {
|
|
2670
2673
|
[t]: n
|
|
@@ -2787,6 +2790,16 @@ const wn = {
|
|
|
2787
2790
|
</span>`), t === "columnTemplateType" && n === "default" && (e.columnTemplate = ""), t === "columnTemplateType" && n === "custom" && (e.columnTemplate = ""));
|
|
2788
2791
|
},
|
|
2789
2792
|
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" : ""
|
|
2793
|
+
}, zn = {
|
|
2794
|
+
convertTo: (e, t, n, o) => {
|
|
2795
|
+
e.hierarchy || (e.hierarchy = {
|
|
2796
|
+
cascadeOption: {}
|
|
2797
|
+
}), e.hierarchy.cascadeOption || (e.hierarchy.cascadeOption = {}), e.hierarchy.cascadeOption[t] = n;
|
|
2798
|
+
},
|
|
2799
|
+
convertFrom: (e, t, n) => {
|
|
2800
|
+
var o, m;
|
|
2801
|
+
return !!((m = (o = e.hierarchy) == null ? void 0 : o.cascadeOption) != null && m[t]);
|
|
2802
|
+
}
|
|
2790
2803
|
};
|
|
2791
2804
|
function _e(e, t, n) {
|
|
2792
2805
|
const o = /* @__PURE__ */ new Map([
|
|
@@ -2798,8 +2811,8 @@ function _e(e, t, n) {
|
|
|
2798
2811
|
["/converter/change-editor.converter", Mn],
|
|
2799
2812
|
["/converter/change-formatter.converter", kn],
|
|
2800
2813
|
["/converter/column-command.converter", Sn],
|
|
2801
|
-
["/converter/column-option.converter",
|
|
2802
|
-
["/converter/summary.converter",
|
|
2814
|
+
["/converter/column-option.converter", Fn],
|
|
2815
|
+
["/converter/summary.converter", xn],
|
|
2803
2816
|
["/converter/group.converter", En],
|
|
2804
2817
|
["/converter/form-group-label.converter", Wn],
|
|
2805
2818
|
["/converter/field-selector.converter", In],
|
|
@@ -2811,7 +2824,8 @@ function _e(e, t, n) {
|
|
|
2811
2824
|
["/converter/grid-sort.converter", Bn],
|
|
2812
2825
|
["/converter/grid-filter.converter", $n],
|
|
2813
2826
|
["/converter/row-option.converter", Rn],
|
|
2814
|
-
["/converter/change-formatter-type.converter", An]
|
|
2827
|
+
["/converter/change-formatter-type.converter", An],
|
|
2828
|
+
["/converter/tree-auto-check.converter", zn]
|
|
2815
2829
|
]), m = /* @__PURE__ */ new Map([
|
|
2816
2830
|
["string", { type: "input-group", enableClear: !1 }],
|
|
2817
2831
|
["boolean", {
|
|
@@ -2850,61 +2864,61 @@ function _e(e, t, n) {
|
|
|
2850
2864
|
const v = r.$converter || i;
|
|
2851
2865
|
return typeof v == "string" && v && o.has(v) ? o.get(v) || null : v || null;
|
|
2852
2866
|
}
|
|
2853
|
-
function f(r, i, v,
|
|
2867
|
+
function f(r, i, v, d, E, s = "", h = "") {
|
|
2854
2868
|
return Object.keys(r).map((M) => {
|
|
2855
|
-
const $ = B(1), S = M, P = r[M],
|
|
2869
|
+
const $ = B(1), S = M, P = r[M], F = Object.keys(P), g = P.title, u = P.type, T = m.get(u) || { type: "input-group", enableClear: !1 }, L = P.editor ? Object.assign({}, T, P.editor) : Object.assign({}, T), O = D(F, P, i), b = I(F, P, i);
|
|
2856
2870
|
L.readonly = L.readonly === void 0 ? b() : L.readonly;
|
|
2857
|
-
const j = P.type === "cascade" ? f(P.properties, i, v,
|
|
2858
|
-
let
|
|
2871
|
+
const j = P.type === "cascade" ? f(P.properties, i, v, d, E, s, h) : [], V = !0;
|
|
2872
|
+
let x = C(P, h);
|
|
2859
2873
|
const Y = A({
|
|
2860
2874
|
get() {
|
|
2861
2875
|
if ($.value) {
|
|
2862
|
-
if (["class", "style"].find((Q) => Q === S) && !
|
|
2863
|
-
return
|
|
2876
|
+
if (["class", "style"].find((Q) => Q === S) && !x && (x = o.get("/converter/appearance.converter") || null), x && x.convertFrom)
|
|
2877
|
+
return x.convertFrom(v, M, E, s);
|
|
2864
2878
|
const q = v[M];
|
|
2865
2879
|
return Object.prototype.hasOwnProperty.call(P, "defaultValue") && (q === void 0 || typeof q == "string" && q === "") ? P.type === "boolean" ? P.defaultValue : P.defaultValue || "" : q;
|
|
2866
2880
|
}
|
|
2867
2881
|
return null;
|
|
2868
2882
|
},
|
|
2869
2883
|
set(q) {
|
|
2870
|
-
$.value += 1,
|
|
2884
|
+
$.value += 1, x && x.convertTo ? (x.convertTo(d, M, q, E, s), x.convertTo(v, M, q, E, s)) : (d[M] = q, v[M] = q);
|
|
2871
2885
|
}
|
|
2872
|
-
}), { refreshPanelAfterChanged: W, description: z, isExpand: G, parentPropertyID: _ } = P, J = { propertyID: S, propertyName: g, propertyType:
|
|
2886
|
+
}), { refreshPanelAfterChanged: W, description: z, isExpand: G, parentPropertyID: _ } = P, J = { propertyID: S, propertyName: g, propertyType: u, propertyValue: Y, editor: L, visible: O, readonly: b, cascadeConfig: j, hideCascadeTitle: V, refreshPanelAfterChanged: W, description: z, isExpand: G, parentPropertyID: _ };
|
|
2873
2887
|
return i[S] = J, J;
|
|
2874
2888
|
});
|
|
2875
2889
|
}
|
|
2876
2890
|
function a(r, i, v = {}) {
|
|
2877
|
-
const
|
|
2891
|
+
const d = {}, E = e[r];
|
|
2878
2892
|
return E && E.categories ? Object.keys(E.categories).map((h) => {
|
|
2879
|
-
const N = E.categories[h], M = N == null ? void 0 : N.title, $ = f(N.properties || {},
|
|
2893
|
+
const N = E.categories[h], M = N == null ? void 0 : N.title, $ = f(N.properties || {}, d, {}, v, i);
|
|
2880
2894
|
return { categoryId: h, categoryName: M, properties: $ };
|
|
2881
2895
|
}) : [];
|
|
2882
2896
|
}
|
|
2883
|
-
function c(r, i, v,
|
|
2897
|
+
function c(r, i, v, d, E = "") {
|
|
2884
2898
|
const s = i.$ref.schema, h = i.$ref.converter, N = v[s], M = N.type, $ = n(N), S = {}, P = e[M];
|
|
2885
2899
|
if (P && P.categories) {
|
|
2886
|
-
const
|
|
2887
|
-
h && Object.keys(
|
|
2888
|
-
|
|
2900
|
+
const F = P.categories[r], g = F == null ? void 0 : F.title;
|
|
2901
|
+
h && Object.keys(F.properties).forEach((L) => {
|
|
2902
|
+
F.properties[L].$converter = h;
|
|
2889
2903
|
});
|
|
2890
|
-
const
|
|
2904
|
+
const u = (F == null ? void 0 : F.properties) || {}, T = f(u, S, $, N, d, E);
|
|
2891
2905
|
return { categoryId: r, categoryName: g, properties: T };
|
|
2892
2906
|
}
|
|
2893
2907
|
return { categoryId: r, categoryName: "", properties: [] };
|
|
2894
2908
|
}
|
|
2895
|
-
function y(r, i, v,
|
|
2909
|
+
function y(r, i, v, d, E) {
|
|
2896
2910
|
const s = r.type, h = n(r), N = {};
|
|
2897
2911
|
let M = E || e[s];
|
|
2898
|
-
if (!(M && Object.keys(M).length > 0) && v && v.getPropConfig && (M = v.getPropConfig(
|
|
2912
|
+
if (!(M && Object.keys(M).length > 0) && v && v.getPropConfig && (M = v.getPropConfig(d)), M && M.categories) {
|
|
2899
2913
|
const S = [];
|
|
2900
2914
|
return Object.keys(M.categories).map((P) => {
|
|
2901
|
-
const
|
|
2902
|
-
if (
|
|
2903
|
-
S.push(c(P,
|
|
2915
|
+
const F = M.categories[P];
|
|
2916
|
+
if (F.$ref) {
|
|
2917
|
+
S.push(c(P, F, r, i, d));
|
|
2904
2918
|
return;
|
|
2905
2919
|
}
|
|
2906
|
-
const g =
|
|
2907
|
-
S.push({ categoryId: P, categoryName: g, tabId:
|
|
2920
|
+
const g = F == null ? void 0 : F.title, u = F == null ? void 0 : F.tabId, T = F == null ? void 0 : F.tabName, L = F == null ? void 0 : F.hide, O = F == null ? void 0 : F.hideTitle, b = f(F.properties || {}, N, h, r, i, d, F.$converter), { setPropertyRelates: j } = F, V = F == null ? void 0 : F.parentPropertyID;
|
|
2921
|
+
S.push({ categoryId: P, categoryName: g, tabId: u, tabName: T, hide: L, properties: b, hideTitle: O, setPropertyRelates: j, parentPropertyID: V });
|
|
2908
2922
|
}), S;
|
|
2909
2923
|
}
|
|
2910
2924
|
return [];
|
|
@@ -2915,11 +2929,11 @@ function _e(e, t, n) {
|
|
|
2915
2929
|
propertyConverterMap: o
|
|
2916
2930
|
};
|
|
2917
2931
|
}
|
|
2918
|
-
const
|
|
2919
|
-
_e(
|
|
2920
|
-
const
|
|
2921
|
-
_e(
|
|
2922
|
-
function
|
|
2932
|
+
const Hn = {}, Yn = {};
|
|
2933
|
+
_e(Hn, Yn, gn);
|
|
2934
|
+
const qn = {}, Gn = {}, { resolveSchemaWithDefaultValue: Un } = Ue(qn, Gn), _n = {}, Jn = {};
|
|
2935
|
+
_e(_n, Jn, Un);
|
|
2936
|
+
function Xn() {
|
|
2923
2937
|
function e(t, n) {
|
|
2924
2938
|
const { id: o } = t || {}, { dataSource: m } = t || {};
|
|
2925
2939
|
return m === void 0 ? {} : {
|
|
@@ -2930,7 +2944,7 @@ function Jn() {
|
|
|
2930
2944
|
resolve: e
|
|
2931
2945
|
};
|
|
2932
2946
|
}
|
|
2933
|
-
const
|
|
2947
|
+
const sa = {
|
|
2934
2948
|
1: "Jan",
|
|
2935
2949
|
2: "Feb",
|
|
2936
2950
|
3: "Mar",
|
|
@@ -2943,12 +2957,12 @@ const la = {
|
|
|
2943
2957
|
10: "Oct",
|
|
2944
2958
|
11: "Nov",
|
|
2945
2959
|
12: "Dec"
|
|
2946
|
-
},
|
|
2960
|
+
}, Qn = Xn();
|
|
2947
2961
|
ne.install = (e) => {
|
|
2948
|
-
e.component(ne.name, ne).component(Ie.name, Ie).component(
|
|
2962
|
+
e.component(ne.name, ne).component(Ie.name, Ie).component(Fe.name, Fe).component(xe.name, xe).component(Ee.name, Ee);
|
|
2949
2963
|
};
|
|
2950
2964
|
ne.register = (e, t, n, o, m) => {
|
|
2951
|
-
e.calendar = ne, t.calendar = Ye(m), o.calendar = { bindingResolver:
|
|
2965
|
+
e.calendar = ne, t.calendar = Ye(m), o.calendar = { bindingResolver: Qn };
|
|
2952
2966
|
};
|
|
2953
2967
|
ne.registerDesigner = (e, t, n, o) => {
|
|
2954
2968
|
e.calendar = yn, t.calendar = Ye(o);
|
|
@@ -2958,18 +2972,18 @@ export {
|
|
|
2958
2972
|
ke as Compare,
|
|
2959
2973
|
ne as FCalendar,
|
|
2960
2974
|
Ie as FCalendarDayView,
|
|
2961
|
-
|
|
2962
|
-
|
|
2975
|
+
Fe as FCalendarHeader,
|
|
2976
|
+
xe as FCalendarMonthView,
|
|
2963
2977
|
Ee as FCalendarWeekView,
|
|
2964
2978
|
Se as FilterRelation,
|
|
2965
2979
|
te as MonthTag,
|
|
2966
2980
|
Ne as calendarProps,
|
|
2967
2981
|
nn as dayViewProps,
|
|
2968
2982
|
ne as default,
|
|
2969
|
-
|
|
2983
|
+
sa as defaultNameOfMonths,
|
|
2970
2984
|
Kt as headerProps,
|
|
2971
2985
|
en as monthViewProps,
|
|
2972
|
-
|
|
2986
|
+
la as propsResolver,
|
|
2973
2987
|
Ye as propsResolverGenerator,
|
|
2974
2988
|
X as weekDays,
|
|
2975
2989
|
tn as weekViewProps
|