@farris/ui-vue 1.3.1 → 1.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/accordion/index.esm.js +103 -99
- package/components/accordion/index.umd.cjs +1 -1
- package/components/avatar/index.esm.js +301 -351
- package/components/avatar/index.umd.cjs +1 -1
- package/components/binding-selector/index.esm.js +444 -0
- package/components/binding-selector/index.umd.cjs +1 -0
- package/components/binding-selector/package.json +8 -0
- package/components/border-editor/index.esm.js +5 -3
- package/components/border-editor/index.umd.cjs +1 -1
- package/components/button-edit/index.esm.js +143 -139
- package/components/button-edit/index.umd.cjs +1 -1
- package/components/calendar/index.esm.js +407 -396
- package/components/calendar/index.umd.cjs +1 -1
- package/components/capsule/index.esm.js +266 -255
- package/components/capsule/index.umd.cjs +1 -1
- package/components/checkbox/index.esm.js +628 -641
- package/components/checkbox/index.umd.cjs +1 -1
- package/components/color-picker/index.esm.js +379 -374
- package/components/color-picker/index.umd.cjs +2 -2
- package/components/combo-list/index.esm.js +471 -471
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/combo-tree/index.esm.js +155 -148
- package/components/combo-tree/index.umd.cjs +1 -1
- package/components/common/index.esm.js +487 -478
- package/components/common/index.umd.cjs +1 -1
- package/components/component/index.esm.js +330 -279
- package/components/component/index.umd.cjs +1 -1
- package/components/condition/index.esm.js +1171 -1277
- package/components/condition/index.umd.cjs +1 -1
- package/components/content-container/index.esm.js +220 -204
- package/components/content-container/index.umd.cjs +1 -1
- package/components/data-grid/index.esm.js +4743 -4641
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/data-view/index.esm.js +2916 -3019
- package/components/data-view/index.umd.cjs +1 -1
- package/components/date-picker/index.esm.js +2375 -2590
- package/components/date-picker/index.umd.cjs +1 -1
- package/components/designer-canvas/index.css +1 -1
- package/components/designer-canvas/index.esm.js +9518 -1198
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/designer-outline/index.esm.js +2 -1
- package/components/designer-outline/index.umd.cjs +1 -1
- package/components/drawer/index.esm.js +34 -38
- package/components/drawer/index.umd.cjs +1 -1
- package/components/dropdown/index.esm.js +149 -138
- package/components/dropdown/index.umd.cjs +2 -2
- package/components/dynamic-form/index.esm.js +1602 -1740
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/dynamic-resolver/index.esm.js +159 -151
- package/components/dynamic-resolver/index.umd.cjs +1 -1
- package/components/dynamic-view/index.esm.js +218 -218
- package/components/dynamic-view/index.umd.cjs +1 -1
- package/components/event-parameter/index.esm.js +311 -0
- package/components/event-parameter/index.umd.cjs +1 -0
- package/components/event-parameter/package.json +8 -0
- package/components/events-editor/index.css +1 -1
- package/components/events-editor/index.esm.js +533 -563
- package/components/events-editor/index.umd.cjs +1 -1
- package/components/expression-editor/index.esm.js +95 -91
- package/components/expression-editor/index.umd.cjs +1 -1
- package/components/external-container/index.esm.js +2356 -2455
- package/components/external-container/index.umd.cjs +1 -1
- package/components/field-selector/index.esm.js +3048 -3308
- package/components/field-selector/index.umd.cjs +1 -1
- package/components/filter-bar/index.css +1 -1
- package/components/filter-bar/index.esm.js +10537 -3249
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/flow-canvas/index.css +1 -1
- package/components/flow-canvas/index.esm.js +9781 -1327
- package/components/flow-canvas/index.umd.cjs +1 -1
- package/components/image-cropper/index.esm.js +353 -341
- package/components/image-cropper/index.umd.cjs +1 -1
- package/components/input-group/index.esm.js +510 -827
- package/components/input-group/index.umd.cjs +1 -1
- package/components/layout/index.esm.js +278 -268
- package/components/layout/index.umd.cjs +1 -1
- package/components/list-nav/index.esm.js +144 -136
- package/components/list-nav/index.umd.cjs +1 -1
- package/components/list-view/index.esm.js +2139 -2237
- package/components/list-view/index.umd.cjs +1 -1
- package/components/lookup/index.esm.js +6414 -6367
- package/components/lookup/index.umd.cjs +1 -1
- package/components/mapping-editor/index.esm.js +5216 -5114
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/message-box/index.esm.js +252 -252
- package/components/message-box/index.umd.cjs +1 -1
- package/components/modal/index.esm.js +70 -70
- package/components/modal/index.umd.cjs +1 -1
- package/components/nav/index.esm.js +486 -984
- package/components/nav/index.umd.cjs +3 -3
- package/components/number-range/index.esm.js +446 -498
- package/components/number-range/index.umd.cjs +1 -1
- package/components/number-spinner/index.esm.js +363 -388
- package/components/number-spinner/index.umd.cjs +1 -1
- package/components/order/index.esm.js +1050 -1308
- package/components/order/index.umd.cjs +1 -1
- package/components/page-footer/index.esm.js +134 -131
- package/components/page-footer/index.umd.cjs +1 -1
- package/components/page-header/index.esm.js +1072 -1082
- package/components/page-header/index.umd.cjs +1 -1
- package/components/pagination/index.esm.js +412 -910
- package/components/pagination/index.umd.cjs +1 -1
- package/components/progress/index.esm.js +214 -203
- package/components/progress/index.umd.cjs +3 -3
- package/components/property-editor/index.esm.js +1361 -1536
- package/components/property-editor/index.umd.cjs +2 -2
- package/components/property-panel/index.esm.js +650 -677
- package/components/property-panel/index.umd.cjs +1 -1
- package/components/query-solution/index.css +1 -1
- package/components/query-solution/index.esm.js +12344 -5048
- package/components/query-solution/index.umd.cjs +6 -1
- package/components/radio-button/index.esm.js +97 -97
- package/components/radio-button/index.umd.cjs +1 -1
- package/components/radio-group/index.css +1 -1
- package/components/radio-group/index.esm.js +1821 -565
- package/components/radio-group/index.umd.cjs +1 -1
- package/components/rate/index.esm.js +251 -244
- package/components/rate/index.umd.cjs +1 -1
- package/components/response-layout/index.esm.js +151 -140
- package/components/response-layout/index.umd.cjs +1 -1
- package/components/response-layout-editor/index.esm.js +707 -676
- package/components/response-layout-editor/index.umd.cjs +1 -1
- package/components/response-toolbar/index.esm.js +719 -740
- package/components/response-toolbar/index.umd.cjs +1 -1
- package/components/schema-selector/index.esm.js +4977 -5249
- package/components/schema-selector/index.umd.cjs +2 -2
- package/components/search-box/index.esm.js +145 -134
- package/components/search-box/index.umd.cjs +1 -1
- package/components/section/index.esm.js +348 -337
- package/components/section/index.umd.cjs +1 -1
- package/components/smoke-detector/index.esm.js +141 -130
- package/components/smoke-detector/index.umd.cjs +1 -1
- package/components/splitter/index.esm.js +311 -301
- package/components/splitter/index.umd.cjs +1 -1
- package/components/step/index.esm.js +231 -220
- package/components/step/index.umd.cjs +1 -1
- package/components/switch/index.esm.js +385 -432
- package/components/switch/index.umd.cjs +1 -1
- package/components/tabs/index.esm.js +1932 -1914
- package/components/tabs/index.umd.cjs +1 -1
- package/components/tags/index.esm.js +351 -340
- package/components/tags/index.umd.cjs +1 -1
- package/components/text/index.esm.js +209 -199
- package/components/text/index.umd.cjs +1 -1
- package/components/textarea/index.esm.js +388 -415
- package/components/textarea/index.umd.cjs +1 -1
- package/components/time-picker/index.esm.js +619 -666
- package/components/time-picker/index.umd.cjs +1 -1
- package/components/transfer/index.esm.js +493 -486
- package/components/transfer/index.umd.cjs +1 -1
- package/components/tree-grid/index.esm.js +3169 -3278
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-view/index.esm.js +2320 -2418
- package/components/tree-view/index.umd.cjs +1 -1
- package/components/uploader/index.esm.js +563 -554
- package/components/uploader/index.umd.cjs +2 -2
- package/components/verify-detail/index.esm.js +287 -276
- package/components/verify-detail/index.umd.cjs +1 -1
- package/components/video/index.esm.js +368 -324
- package/components/video/index.umd.cjs +1 -1
- package/components/weather/index.esm.js +498 -487
- package/components/weather/index.umd.cjs +5 -5
- package/farris.all.esm.js +51302 -47651
- package/farris.all.umd.cjs +14 -9
- package/index.css +1 -1
- package/package.json +1 -1
- package/types/binding-selector/index.d.ts +55 -0
- package/types/binding-selector/src/binding-selector.component.d.ts +11 -0
- package/types/binding-selector/src/binding-selector.props.d.ts +52 -0
- package/types/binding-selector/src/components/binding-selector-container.component.d.ts +13 -0
- package/types/binding-selector/src/composition/use-field-selection.d.ts +9 -0
- package/types/combo-list/src/components/list-container.component.d.ts +6 -6
- package/types/combo-list/src/components/list-container.props.d.ts +1 -1
- package/types/combo-tree/src/components/tree-container.component.d.ts +5 -5
- package/types/common/entity/entity-schema.d.ts +26 -11
- package/types/common/index.d.ts +1 -0
- package/types/common/types.d.ts +2 -2
- package/types/condition/src/condition-fields.design.component.d.ts +18 -0
- package/types/condition/src/types.d.ts +6 -6
- package/types/data-grid/src/composition/data-grid-component-creator.service.d.ts +20 -0
- package/types/data-grid/src/{designer/data-grid-column.props.d.ts → data-grid-column.props.d.ts} +1 -1
- package/types/data-grid/src/data-grid.props.d.ts +2 -2
- package/types/data-grid/src/designer/grid-field-editor.component.d.ts +14 -14
- package/types/data-grid/src/schema/schema-resolver.d.ts +1 -1
- package/types/data-view/composition/types.d.ts +2 -2
- package/types/date-picker/src/components/calendar/calendar.component.d.ts +3 -3
- package/types/date-picker/src/components/month/month.component.d.ts +3 -3
- package/types/date-picker/src/components/year/year.component.d.ts +3 -3
- package/types/designer-canvas/index.d.ts +2 -1
- package/types/designer-canvas/src/composition/dg-control.d.ts +5 -0
- package/types/designer-canvas/src/composition/function/drag-resolve.d.ts +5 -0
- package/types/designer-canvas/src/composition/types.d.ts +49 -40
- package/types/designer-canvas/src/types.d.ts +8 -20
- package/types/dynamic-form/index.d.ts +1 -1
- package/types/dynamic-form/src/designer/form-group-use-designer-rules.d.ts +3 -0
- package/types/dynamic-form/src/schema/{schema-resolver.d.ts → response-form-schema-resolver.d.ts} +1 -1
- package/types/dynamic-form/src/types.d.ts +1 -1
- package/types/dynamic-resolver/src/common/toolbar-resolver.d.ts +5 -0
- package/types/dynamic-resolver/src/converter/row-number.converter.d.ts +3 -0
- package/types/entity-binding-selector/composition/use-entity-tree.d.ts +7 -0
- package/types/entity-binding-selector/entity-binding-selector.component.d.ts +11 -0
- package/types/entity-binding-selector/entity-binding-selector.props.d.ts +3 -0
- package/types/enum-editor/src/components/enum-editor-container.component.d.ts +3 -3
- package/types/enum-editor/src/enum-editor.component.d.ts +3 -3
- package/types/event-parameter/index.d.ts +31 -0
- package/types/event-parameter/src/composition/type.d.ts +77 -0
- package/types/event-parameter/src/composition/use-editor-combotree.d.ts +3 -0
- package/types/event-parameter/src/composition/use-editor-input.d.ts +3 -0
- package/types/event-parameter/src/composition/use-editor-select.d.ts +3 -0
- package/types/event-parameter/src/composition/use-editor-switch.d.ts +3 -0
- package/types/event-parameter/src/composition/use-editor.d.ts +3 -0
- package/types/event-parameter/src/event-parameter.component.d.ts +8 -0
- package/types/event-parameter/src/event-parameter.props.d.ts +34 -0
- package/types/external-container/src/designer/import-external-schema.component.d.ts +1 -1
- package/types/field-selector/src/field-selector.component.d.ts +1 -2
- package/types/field-selector/src/field-selector.props.d.ts +0 -9
- package/types/input-group/src/designer/use-input-group-rules.d.ts +1 -2
- package/types/list-view/src/designer/list-view-table.design.component.d.ts +15 -0
- package/types/list-view/src/list-view-table.component.d.ts +15 -0
- package/types/lookup/src/composition/use-user-data.d.ts +2 -2
- package/types/lookup/src/property-config/lookup.property-config.d.ts +2 -6
- package/types/modal/src/composition/modal.service.d.ts +2 -1
- package/types/page-header/src/designer/page-header.design.component.d.ts +1 -1
- package/types/page-header/src/page-header.component.d.ts +1 -1
- package/types/property-panel/index.d.ts +2 -1
- package/types/property-panel/src/composition/entity/property-entity.d.ts +1 -1
- package/types/property-panel/src/composition/type.d.ts +0 -13
- package/types/query-solution/src/composition/types.d.ts +35 -4
- package/types/query-solution/src/composition/use-header.d.ts +21 -0
- package/types/query-solution/src/composition/{use-filter.d.ts → use-http.d.ts} +2 -2
- package/types/query-solution/src/composition/use-solution.d.ts +20 -0
- package/types/query-solution/src/designer/query-solution-config/composition/types.d.ts +17 -16
- package/types/query-solution/src/designer/query-solution-config/query-solution-config.props.d.ts +14 -14
- package/types/query-solution/src/property-config/query-solution.property-config.d.ts +3 -51
- package/types/query-solution/src/query-solution.d.ts +10 -2
- package/types/radio-group/src/designer/item-collection-editor-inner.component.d.ts +29 -0
- package/types/radio-group/src/designer/item-collection-editor.component.d.ts +29 -0
- package/types/radio-group/src/designer/item-collection-editor.props.d.ts +21 -0
- package/types/radio-group/src/schema/schema-mapper.d.ts +1 -0
- package/types/radio-group/src/schema/schema-resolver.d.ts +1 -0
- package/types/response-toolbar/src/property-config/response-toolbar.property-config.d.ts +1 -0
- package/types/section/src/property-config/section.property-config.d.ts +17 -17
- package/types/section/src/schema/schema-resolver.d.ts +1 -2
- package/types/section/src/schema/toolbar-resolver.d.ts +1 -1
- package/types/tabs/src/composition/types.d.ts +4 -1
- package/types/tabs/src/property-config/tab-page.property-config.d.ts +9 -59
- package/types/tabs/src/property-config/tabs.property-config.d.ts +8 -71
- package/types/tabs/src/schema/schema-resolver.d.ts +1 -2
- package/types/text/src/composition/types.d.ts +4 -4
- package/types/textarea/src/property-config/textarea.property-config.d.ts +23 -0
- package/types/weather/src/composition/use-weather-charts.d.ts +15 -0
- package/types/weather/src/composition/use-weather-color.d.ts +15 -0
- package/types/weather/src/composition/use-weather-data.d.ts +15 -0
- package/types/weather/src/composition/use-weather-format-number.d.ts +15 -0
- package/types/property-panel/src/composition/entity/use-input-rules.d.ts +0 -3
- package/types/tree-grid/src/schema/column-resolver.d.ts +0 -3
- package/types/weather/src/composition/types.d.ts +0 -2
- /package/types/dynamic-form/src/designer/{use-designer-rules.d.ts → response-form-use-designer-rules.d.ts} +0 -0
- /package/types/dynamic-form/src/property-config/{form.property-config.d.ts → response-form.property-config.d.ts} +0 -0
|
@@ -1,104 +1,109 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var I = (e, n, t) =>
|
|
4
|
-
import { ref as
|
|
5
|
-
import { isPlainObject as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import { resolveAppearance as
|
|
9
|
-
import { useDesignerComponent as
|
|
10
|
-
import
|
|
1
|
+
var tn = Object.defineProperty;
|
|
2
|
+
var nn = (e, n, t) => n in e ? tn(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
|
|
3
|
+
var I = (e, n, t) => nn(e, typeof n != "symbol" ? n + "" : n, t);
|
|
4
|
+
import { ref as b, defineComponent as D, computed as E, watch as O, createVNode as C, Teleport as on, createApp as rn, onUnmounted as an, inject as _, nextTick as te, onMounted as U, mergeProps as ln, reactive as un, withDirectives as de, resolveDirective as sn, Fragment as pe, vModelText as Ie } from "vue";
|
|
5
|
+
import { isPlainObject as Me, cloneDeep as F } from "lodash-es";
|
|
6
|
+
import cn from "../list-view/index.esm.js";
|
|
7
|
+
import dn from "../button-edit/index.esm.js";
|
|
8
|
+
import { resolveAppearance as pn } from "../dynamic-resolver/index.esm.js";
|
|
9
|
+
import { useDesignerComponent as ve, DgControl as Pe } from "../designer-canvas/index.esm.js";
|
|
10
|
+
import { withInstall as me, useTextBox as fn, useClear as De, useTextBoxDesign as yn } from "../common/index.esm.js";
|
|
11
11
|
import { useNumber as vn, useFormat as mn, useSpinner as hn, useTextBox as bn } from "../number-spinner/index.esm.js";
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
import L from "bignumber.js";
|
|
13
|
+
const Ue = {}, Re = {};
|
|
14
|
+
function he(e) {
|
|
15
|
+
const { properties: n, title: t, ignore: o } = e, r = o && Array.isArray(o), a = Object.keys(n).reduce((i, s) => ((!r || !o.find((d) => d === s)) && (i[s] = n[s].type === "object" && n[s].properties ? he(n[s]) : F(n[s].default)), i), {});
|
|
16
|
+
if (t && (!r || !o.find((i) => i === "id"))) {
|
|
17
|
+
const i = t.toLowerCase().replace(/-/g, "_");
|
|
18
|
+
a.id = `${i}_${Math.random().toString().slice(2, 6)}`;
|
|
19
|
+
}
|
|
20
|
+
return a;
|
|
16
21
|
}
|
|
17
|
-
function
|
|
18
|
-
const o =
|
|
22
|
+
function Ge(e, n = {}, t) {
|
|
23
|
+
const o = Ue[e];
|
|
19
24
|
if (o) {
|
|
20
|
-
let r =
|
|
21
|
-
const a =
|
|
22
|
-
return r = a ? a({ getSchemaByType:
|
|
25
|
+
let r = he(o);
|
|
26
|
+
const a = Re[e];
|
|
27
|
+
return r = a ? a({ getSchemaByType: Ge }, r, n, t) : r, r;
|
|
23
28
|
}
|
|
24
29
|
return null;
|
|
25
30
|
}
|
|
26
31
|
function gn(e, n) {
|
|
27
|
-
const t =
|
|
28
|
-
return Object.keys(
|
|
32
|
+
const t = he(n);
|
|
33
|
+
return Object.keys(t).reduce((o, r) => (o[r] && Me(o[r]) && Me(e[r] || !e[r]) ? Object.assign(o[r], e[r] || {}) : o[r] = e[r], o), t), t;
|
|
29
34
|
}
|
|
30
|
-
function
|
|
35
|
+
function Sn(e, n) {
|
|
31
36
|
return Object.keys(e).filter((o) => e[o] != null).reduce((o, r) => {
|
|
32
37
|
if (n.has(r)) {
|
|
33
38
|
const a = n.get(r);
|
|
34
39
|
if (typeof a == "string")
|
|
35
40
|
o[a] = e[r];
|
|
36
41
|
else {
|
|
37
|
-
const
|
|
38
|
-
Object.assign(o,
|
|
42
|
+
const i = a(r, e[r], e);
|
|
43
|
+
Object.assign(o, i);
|
|
39
44
|
}
|
|
40
45
|
} else
|
|
41
46
|
o[r] = e[r];
|
|
42
47
|
return o;
|
|
43
48
|
}, {});
|
|
44
49
|
}
|
|
45
|
-
function
|
|
50
|
+
function Cn(e, n, t = /* @__PURE__ */ new Map()) {
|
|
46
51
|
const o = gn(e, n);
|
|
47
|
-
return
|
|
52
|
+
return Sn(o, t);
|
|
48
53
|
}
|
|
49
54
|
function wn(e = {}) {
|
|
50
|
-
function n(
|
|
55
|
+
function n(l, c, u, f) {
|
|
51
56
|
if (typeof u == "number")
|
|
52
|
-
return f[
|
|
57
|
+
return f[l].length === u;
|
|
53
58
|
if (typeof u == "object") {
|
|
54
59
|
const p = Object.keys(u)[0], y = u[p];
|
|
55
60
|
if (p === "not")
|
|
56
|
-
return Number(f[
|
|
61
|
+
return Number(f[l].length) !== Number(y);
|
|
57
62
|
if (p === "moreThan")
|
|
58
|
-
return Number(f[
|
|
63
|
+
return Number(f[l].length) >= Number(y);
|
|
59
64
|
if (p === "lessThan")
|
|
60
|
-
return Number(f[
|
|
65
|
+
return Number(f[l].length) <= Number(y);
|
|
61
66
|
}
|
|
62
67
|
return !1;
|
|
63
68
|
}
|
|
64
|
-
function t(
|
|
65
|
-
return f[
|
|
69
|
+
function t(l, c, u, f) {
|
|
70
|
+
return f[l] && f[l].propertyValue && String(f[l].propertyValue.value) === String(u);
|
|
66
71
|
}
|
|
67
72
|
const o = /* @__PURE__ */ new Map([
|
|
68
73
|
["length", n],
|
|
69
74
|
["getProperty", t]
|
|
70
75
|
]);
|
|
71
|
-
Object.keys(e).reduce((
|
|
72
|
-
function r(
|
|
73
|
-
const u =
|
|
74
|
-
return typeof
|
|
76
|
+
Object.keys(e).reduce((l, c) => (l.set(c, e[c]), l), o);
|
|
77
|
+
function r(l, c) {
|
|
78
|
+
const u = l;
|
|
79
|
+
return typeof c == "number" ? [{ target: u, operator: "length", param: null, value: Number(c) }] : typeof c == "boolean" ? [{ target: u, operator: "getProperty", param: l, value: !!c }] : typeof c == "object" ? Object.keys(c).map((f) => {
|
|
75
80
|
if (f === "length")
|
|
76
|
-
return { target: u, operator: "length", param: null, value:
|
|
77
|
-
const p = f, y =
|
|
81
|
+
return { target: u, operator: "length", param: null, value: c[f] };
|
|
82
|
+
const p = f, y = c[f];
|
|
78
83
|
return { target: u, operator: "getProperty", param: p, value: y };
|
|
79
84
|
}) : [];
|
|
80
85
|
}
|
|
81
|
-
function a(
|
|
82
|
-
return Object.keys(
|
|
83
|
-
const p = r(f,
|
|
86
|
+
function a(l) {
|
|
87
|
+
return Object.keys(l).reduce((u, f) => {
|
|
88
|
+
const p = r(f, l[f]);
|
|
84
89
|
return u.push(...p), u;
|
|
85
90
|
}, []);
|
|
86
91
|
}
|
|
87
|
-
function l
|
|
88
|
-
if (o.has(
|
|
89
|
-
const u = o.get(
|
|
90
|
-
return u && u(
|
|
92
|
+
function i(l, c) {
|
|
93
|
+
if (o.has(l.operator)) {
|
|
94
|
+
const u = o.get(l.operator);
|
|
95
|
+
return u && u(l.target, l.param, l.value, c) || !1;
|
|
91
96
|
}
|
|
92
97
|
return !1;
|
|
93
98
|
}
|
|
94
|
-
function s(
|
|
95
|
-
return a(
|
|
99
|
+
function s(l, c) {
|
|
100
|
+
return a(l).reduce((p, y) => p && i(y, c), !0);
|
|
96
101
|
}
|
|
97
|
-
function
|
|
98
|
-
const u = Object.keys(
|
|
99
|
-
return f ? !
|
|
102
|
+
function d(l, c) {
|
|
103
|
+
const u = Object.keys(l), f = u.includes("allOf"), p = u.includes("anyOf"), y = f || p, S = (y ? l[y ? f ? "allOf" : "anyOf" : "allOf"] : [l]).map((k) => s(k, c));
|
|
104
|
+
return f ? !S.includes(!1) : S.includes(!0);
|
|
100
105
|
}
|
|
101
|
-
return { parseValueSchema:
|
|
106
|
+
return { parseValueSchema: d };
|
|
102
107
|
}
|
|
103
108
|
const B = {
|
|
104
109
|
button: { type: "button", name: "按钮", icon: "Button" },
|
|
@@ -138,25 +143,26 @@ const B = {
|
|
|
138
143
|
"page-header": { type: "page-header", name: "页头", icon: "Header" },
|
|
139
144
|
"page-footer": { type: "page-footer", name: "页脚", icon: "ModalFooter" },
|
|
140
145
|
"tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏", icon: "TabToolbar" },
|
|
141
|
-
fieldset: { type: "fieldset", name: "分组", icon: "fieldset" }
|
|
142
|
-
|
|
146
|
+
fieldset: { type: "fieldset", name: "分组", icon: "fieldset" },
|
|
147
|
+
"query-solution": { type: "query-solution", name: "筛选方案", icon: "QueryScheme" }
|
|
148
|
+
}, Vn = {}, xn = {};
|
|
143
149
|
wn();
|
|
144
|
-
function
|
|
145
|
-
return
|
|
146
|
-
const s =
|
|
147
|
-
return Object.assign(
|
|
150
|
+
function J(e, n, t = /* @__PURE__ */ new Map(), o = (i, s, d, l) => s, r = {}, a = (i) => i) {
|
|
151
|
+
return Ue[n.title] = n, Re[n.title] = o, Vn[n.title] = r, xn[n.title] = a, (i = {}) => {
|
|
152
|
+
const s = Cn(i, n, t), d = Object.keys(e).reduce((l, c) => (l[c] = e[c].default, l), {});
|
|
153
|
+
return Object.assign(d, s);
|
|
148
154
|
};
|
|
149
155
|
}
|
|
150
|
-
function
|
|
156
|
+
function ie(e, n) {
|
|
151
157
|
return { customClass: n.class, customStyle: n.style };
|
|
152
158
|
}
|
|
153
159
|
const Bn = /* @__PURE__ */ new Map([
|
|
154
|
-
["appearance",
|
|
160
|
+
["appearance", ie]
|
|
155
161
|
]);
|
|
156
|
-
function
|
|
162
|
+
function Fn(e, n, t) {
|
|
157
163
|
return n;
|
|
158
164
|
}
|
|
159
|
-
const
|
|
165
|
+
const Tn = "https://json-schema.org/draft/2020-12/schema", kn = "https://farris-design.gitee.io/property-editor.schema.json", En = "property-editor", In = "A Farris Component", Mn = "object", Pn = {
|
|
160
166
|
id: {
|
|
161
167
|
description: "The unique identifier for property-editor",
|
|
162
168
|
type: "string"
|
|
@@ -221,15 +227,15 @@ const Fn = "https://json-schema.org/draft/2020-12/schema", kn = "https://farris-
|
|
|
221
227
|
}, An = [
|
|
222
228
|
"id",
|
|
223
229
|
"type"
|
|
224
|
-
],
|
|
225
|
-
$schema:
|
|
230
|
+
], Nn = {
|
|
231
|
+
$schema: Tn,
|
|
226
232
|
$id: kn,
|
|
227
|
-
title:
|
|
228
|
-
description:
|
|
229
|
-
type:
|
|
233
|
+
title: En,
|
|
234
|
+
description: In,
|
|
235
|
+
type: Mn,
|
|
230
236
|
properties: Pn,
|
|
231
237
|
required: An
|
|
232
|
-
},
|
|
238
|
+
}, On = "property-editor", Ln = "A Farris Component", jn = "object", $n = {
|
|
233
239
|
basic: {
|
|
234
240
|
description: "Basic Infomation",
|
|
235
241
|
title: "基本信息",
|
|
@@ -251,12 +257,12 @@ const Fn = "https://json-schema.org/draft/2020-12/schema", kn = "https://farris-
|
|
|
251
257
|
}
|
|
252
258
|
}
|
|
253
259
|
}
|
|
254
|
-
},
|
|
255
|
-
title:
|
|
256
|
-
description:
|
|
257
|
-
type:
|
|
258
|
-
categories:
|
|
259
|
-
},
|
|
260
|
+
}, Dn = {
|
|
261
|
+
title: On,
|
|
262
|
+
description: Ln,
|
|
263
|
+
type: jn,
|
|
264
|
+
categories: $n
|
|
265
|
+
}, _e = {}, Un = J(_e, Nn, Bn, Fn, Dn), P = b({
|
|
260
266
|
/** 常量值 */
|
|
261
267
|
constValue: {
|
|
262
268
|
/** 值类型:常量(const), 变量(variable), 状态机(state), 自定义(custom) */
|
|
@@ -294,7 +300,7 @@ const Fn = "https://json-schema.org/draft/2020-12/schema", kn = "https://farris-
|
|
|
294
300
|
type: "dataStates",
|
|
295
301
|
value: ""
|
|
296
302
|
}
|
|
297
|
-
}),
|
|
303
|
+
}), Rn = b([
|
|
298
304
|
{
|
|
299
305
|
id: "const",
|
|
300
306
|
label: "常量"
|
|
@@ -319,7 +325,7 @@ const Fn = "https://json-schema.org/draft/2020-12/schema", kn = "https://farris-
|
|
|
319
325
|
id: "dataStates",
|
|
320
326
|
label: "数据状态"
|
|
321
327
|
}
|
|
322
|
-
]),
|
|
328
|
+
]), Gn = {
|
|
323
329
|
controlName: "userName",
|
|
324
330
|
propertyName: "readonly",
|
|
325
331
|
propertyType: "enum",
|
|
@@ -445,8 +451,8 @@ const Fn = "https://json-schema.org/draft/2020-12/schema", kn = "https://farris-
|
|
|
445
451
|
/** 状态机是否有前缀viewModel.stateMachine && */
|
|
446
452
|
hasPrefix: 2
|
|
447
453
|
}, _n = /* @__PURE__ */ new Map([
|
|
448
|
-
["appearance",
|
|
449
|
-
]), qn = "https://json-schema.org/draft/2020-12/schema",
|
|
454
|
+
["appearance", ie]
|
|
455
|
+
]), qn = "https://json-schema.org/draft/2020-12/schema", Hn = "https://farris-design.gitee.io/combo-list.schema.json", Wn = "combo-list", zn = "A Farris Input Component", Yn = "object", Zn = {
|
|
450
456
|
id: {
|
|
451
457
|
description: "The unique identifier for a combo list",
|
|
452
458
|
type: "string"
|
|
@@ -479,6 +485,11 @@ const Fn = "https://json-schema.org/draft/2020-12/schema", kn = "https://farris-
|
|
|
479
485
|
type: "boolean",
|
|
480
486
|
default: !1
|
|
481
487
|
},
|
|
488
|
+
enableClear: {
|
|
489
|
+
description: "",
|
|
490
|
+
type: "boolean",
|
|
491
|
+
default: !0
|
|
492
|
+
},
|
|
482
493
|
editable: {
|
|
483
494
|
description: "",
|
|
484
495
|
type: "boolean",
|
|
@@ -503,6 +514,11 @@ const Fn = "https://json-schema.org/draft/2020-12/schema", kn = "https://farris-
|
|
|
503
514
|
type: "string",
|
|
504
515
|
default: ""
|
|
505
516
|
},
|
|
517
|
+
idField: {
|
|
518
|
+
description: "",
|
|
519
|
+
type: "string",
|
|
520
|
+
default: "id"
|
|
521
|
+
},
|
|
506
522
|
valueField: {
|
|
507
523
|
description: "",
|
|
508
524
|
type: "string",
|
|
@@ -568,11 +584,12 @@ const Fn = "https://json-schema.org/draft/2020-12/schema", kn = "https://farris-
|
|
|
568
584
|
], Jn = [
|
|
569
585
|
"id",
|
|
570
586
|
"appearance",
|
|
571
|
-
"binding"
|
|
587
|
+
"binding",
|
|
588
|
+
"visible"
|
|
572
589
|
], Qn = {
|
|
573
590
|
$schema: qn,
|
|
574
|
-
$id:
|
|
575
|
-
title:
|
|
591
|
+
$id: Hn,
|
|
592
|
+
title: Wn,
|
|
576
593
|
description: zn,
|
|
577
594
|
type: Yn,
|
|
578
595
|
properties: Zn,
|
|
@@ -582,7 +599,7 @@ const Fn = "https://json-schema.org/draft/2020-12/schema", kn = "https://farris-
|
|
|
582
599
|
function Kn(e, n, t) {
|
|
583
600
|
return n;
|
|
584
601
|
}
|
|
585
|
-
const
|
|
602
|
+
const be = {
|
|
586
603
|
/**
|
|
587
604
|
* 组件标识
|
|
588
605
|
*/
|
|
@@ -743,12 +760,12 @@ const we = {
|
|
|
743
760
|
*/
|
|
744
761
|
beforeOpen: { type: Function, default: null },
|
|
745
762
|
searchOption: {
|
|
746
|
-
type:
|
|
763
|
+
type: [Boolean, Function],
|
|
747
764
|
default: !1
|
|
748
765
|
},
|
|
749
766
|
// 搜索启用高亮
|
|
750
767
|
enableHighlightSearch: { type: Boolean, default: !0 }
|
|
751
|
-
},
|
|
768
|
+
}, qe = J(be, Qn, _n, Kn), eo = {
|
|
752
769
|
dataSource: { type: Array, default: [] },
|
|
753
770
|
enableSearch: { type: Boolean, default: !1 },
|
|
754
771
|
idField: { type: String, default: "id" },
|
|
@@ -764,46 +781,49 @@ const we = {
|
|
|
764
781
|
onSelectionChange: { type: Function, default: () => {
|
|
765
782
|
} },
|
|
766
783
|
searchOption: {
|
|
767
|
-
type:
|
|
784
|
+
type: [Boolean, Function],
|
|
768
785
|
default: !1
|
|
769
786
|
},
|
|
770
787
|
// 搜索启用高亮
|
|
771
788
|
enableHighlightSearch: { type: Boolean, default: !0 }
|
|
772
|
-
}, to = /* @__PURE__ */
|
|
789
|
+
}, to = /* @__PURE__ */ D({
|
|
773
790
|
name: "FComboListContainer",
|
|
774
791
|
props: eo,
|
|
775
792
|
emits: ["selectionChange"],
|
|
776
793
|
setup(e, n) {
|
|
777
|
-
const t =
|
|
794
|
+
const t = b(), o = b(e.dataSource), r = b([]), a = b(e.separator), i = b(e.width), s = b(e.maxHeight), d = b(String(e.selectedValues).split(a.value)), l = E(() => e.multiSelect), c = E(() => ({
|
|
778
795
|
enableSelectRow: !0,
|
|
779
796
|
multiSelect: e.multiSelect,
|
|
780
797
|
multiSelectMode: "OnCheckAndClick",
|
|
781
|
-
showCheckbox:
|
|
798
|
+
showCheckbox: l.value,
|
|
782
799
|
showSelectAll: !1,
|
|
783
800
|
showSelection: !0
|
|
784
801
|
}));
|
|
785
802
|
O(e.dataSource, () => {
|
|
786
803
|
o.value = e.dataSource;
|
|
787
804
|
});
|
|
788
|
-
const u =
|
|
805
|
+
const u = E(() => e.enableSearch ? "SearchBar" : "ContentHeader"), f = E(() => {
|
|
789
806
|
const v = {};
|
|
790
|
-
return
|
|
807
|
+
return i.value !== void 0 && (v.width = `${i.value}px`), s.value !== void 0 && s.value > 0 && (v.maxHeight = `${s.value}px`), v;
|
|
791
808
|
});
|
|
792
809
|
function p(v) {
|
|
793
|
-
r.value = v.map((
|
|
810
|
+
r.value = v.map((m) => Object.assign({}, m)), d.value = v.map((m) => m[e.idField]), n.emit("selectionChange", r.value);
|
|
794
811
|
}
|
|
795
812
|
function y(v) {
|
|
796
813
|
if (e.enableHighlightSearch)
|
|
797
814
|
return;
|
|
798
|
-
let
|
|
799
|
-
|
|
815
|
+
let m = [];
|
|
816
|
+
const {
|
|
817
|
+
searchOption: S
|
|
818
|
+
} = e;
|
|
819
|
+
typeof S == "function" ? m = o.value.filter((V) => S(v, V)) : m = o.value.filter((V) => V[e.valueField].indexOf(v) > -1 || V[e.textField].indexOf(v) > -1), t.value.updateDataSource(m);
|
|
800
820
|
}
|
|
801
821
|
return O([() => e.selectedValues], ([v]) => {
|
|
802
|
-
|
|
803
|
-
}), () =>
|
|
822
|
+
d.value = v.split(a.value);
|
|
823
|
+
}), () => C("div", {
|
|
804
824
|
class: "f-combo-list-container pl-1",
|
|
805
825
|
style: f.value
|
|
806
|
-
}, [
|
|
826
|
+
}, [C(cn, {
|
|
807
827
|
ref: t,
|
|
808
828
|
size: "small",
|
|
809
829
|
itemClass: "f-combo-list-item",
|
|
@@ -814,24 +834,24 @@ const we = {
|
|
|
814
834
|
textField: e.textField,
|
|
815
835
|
titleField: e.titleField,
|
|
816
836
|
multiSelect: e.multiSelect,
|
|
817
|
-
selection:
|
|
837
|
+
selection: c.value,
|
|
818
838
|
enableHighlightSearch: e.enableHighlightSearch,
|
|
819
|
-
selectionValues:
|
|
839
|
+
selectionValues: d.value,
|
|
820
840
|
onSelectionChange: p,
|
|
821
841
|
onAfterSearch: y
|
|
822
842
|
}, null)]);
|
|
823
843
|
}
|
|
824
844
|
});
|
|
825
845
|
function no(e) {
|
|
826
|
-
const n =
|
|
846
|
+
const n = b(""), t = b(e.modelValue), o = b(e.data || []), r = b(e.editable);
|
|
827
847
|
function a(u) {
|
|
828
|
-
const f = String(u).split(e.separator), p = f.map((
|
|
829
|
-
return o.value.filter((
|
|
830
|
-
const V = f.indexOf(
|
|
831
|
-
return V -
|
|
848
|
+
const f = String(u).split(e.separator), p = f.map((m) => [m, !0]), y = new Map(p);
|
|
849
|
+
return o.value.filter((m) => y.has(String(m[e.valueField]))).sort((m, S) => {
|
|
850
|
+
const V = f.indexOf(m[e.valueField]), k = f.indexOf(S[e.valueField]);
|
|
851
|
+
return V - k;
|
|
832
852
|
});
|
|
833
853
|
}
|
|
834
|
-
function
|
|
854
|
+
function i(u) {
|
|
835
855
|
const f = a(u).map((p) => p[e.textField]).join(e.separator);
|
|
836
856
|
n.value = r.value ? f || u : f;
|
|
837
857
|
}
|
|
@@ -839,30 +859,30 @@ function no(e) {
|
|
|
839
859
|
const f = u.split(e.separator).map((y) => [y, !0]), p = new Map(f);
|
|
840
860
|
return o.value.filter((y) => p.has(y[e.textField]));
|
|
841
861
|
}
|
|
842
|
-
function
|
|
862
|
+
function d(u) {
|
|
843
863
|
const f = {};
|
|
844
864
|
return f[e.idField] = u, f[e.textField] = u, [f];
|
|
845
865
|
}
|
|
846
|
-
function
|
|
866
|
+
function l(u) {
|
|
847
867
|
let f = s(u);
|
|
848
868
|
const p = f && f.length > 0;
|
|
849
|
-
return r.value && !p && (f =
|
|
869
|
+
return r.value && !p && (f = d(u)), f;
|
|
850
870
|
}
|
|
851
|
-
function
|
|
852
|
-
const { url: u, method: f = "GET", headers: p = {}, body: y = null } = e.remote, v = f.toLowerCase()
|
|
853
|
-
let
|
|
854
|
-
fetch(u, v).then((
|
|
855
|
-
var
|
|
856
|
-
if (
|
|
857
|
-
return
|
|
858
|
-
throw new Error(
|
|
859
|
-
}).then((
|
|
860
|
-
o.value =
|
|
861
|
-
}).catch((
|
|
862
|
-
console.error(
|
|
871
|
+
function c() {
|
|
872
|
+
const { url: u, method: f = "GET", headers: p = {}, body: y = null } = e.remote, v = f.toLowerCase() === "get" ? { method: f, headers: p } : { method: f, headers: p, body: y };
|
|
873
|
+
let m = !1;
|
|
874
|
+
fetch(u, v).then((S) => {
|
|
875
|
+
var k, w;
|
|
876
|
+
if (S.status === 200)
|
|
877
|
+
return m = !!((w = (k = S.headers) == null ? void 0 : k.get("content-type")) != null && w.includes("application/json")), m ? S.text() : S.json();
|
|
878
|
+
throw new Error(S.statusText);
|
|
879
|
+
}).then((S) => {
|
|
880
|
+
o.value = m ? JSON.parse(S) : S;
|
|
881
|
+
}).catch((S) => {
|
|
882
|
+
console.error(S);
|
|
863
883
|
});
|
|
864
884
|
}
|
|
865
|
-
return e.remote &&
|
|
885
|
+
return e.remote && c(), O(() => e.data, () => {
|
|
866
886
|
o.value = e.data;
|
|
867
887
|
}), O([o], ([u]) => {
|
|
868
888
|
if (e.modelValue != null) {
|
|
@@ -870,54 +890,54 @@ function no(e) {
|
|
|
870
890
|
f && (n.value = f[e.textField]);
|
|
871
891
|
}
|
|
872
892
|
}), O(() => e.modelValue, (u) => {
|
|
873
|
-
t.value = u,
|
|
874
|
-
}),
|
|
893
|
+
t.value = u, i(u);
|
|
894
|
+
}), i(e.modelValue), { dataSource: o, displayText: n, editable: r, modelValue: t, getItemsByDisplayText: s, getItemsByValue: a, getSelectedItemsByDisplayText: l };
|
|
875
895
|
}
|
|
876
|
-
const
|
|
896
|
+
const G = /* @__PURE__ */ D({
|
|
877
897
|
name: "FComboList",
|
|
878
|
-
props:
|
|
898
|
+
props: be,
|
|
879
899
|
emits: ["clear", "update:modelValue", "change", "input"],
|
|
880
900
|
setup(e, n) {
|
|
881
|
-
const t =
|
|
901
|
+
const t = b(), o = b(e.disabled), r = b(e.enableClear), a = b(e.enableSearch), i = b(e.readonly), {
|
|
882
902
|
dataSource: s,
|
|
883
|
-
displayText:
|
|
884
|
-
editable:
|
|
885
|
-
modelValue:
|
|
903
|
+
displayText: d,
|
|
904
|
+
editable: l,
|
|
905
|
+
modelValue: c,
|
|
886
906
|
getSelectedItemsByDisplayText: u
|
|
887
|
-
} = no(e), f =
|
|
907
|
+
} = no(e), f = E(() => e.multiSelect), p = E(() => t.value ? t.value.elementRef.getBoundingClientRect().width : 0);
|
|
888
908
|
function y() {
|
|
889
909
|
!f.value && t.value && t.value.hidePopup();
|
|
890
910
|
}
|
|
891
|
-
function v(
|
|
892
|
-
|
|
911
|
+
function v(g) {
|
|
912
|
+
d.value = g.map((x) => x[e.textField]).join(e.separator), g.length === 1 ? c.value = g[0][e.valueField] : c.value = g.map((x) => x[e.valueField]).join(e.separator), n.emit("update:modelValue", c.value), n.emit("change", g, c.value), y();
|
|
893
913
|
}
|
|
894
|
-
function
|
|
895
|
-
|
|
914
|
+
function m() {
|
|
915
|
+
i.value || t.value.togglePopup();
|
|
896
916
|
}
|
|
897
|
-
function g
|
|
898
|
-
|
|
917
|
+
function S(g) {
|
|
918
|
+
c.value = "", n.emit("update:modelValue", ""), n.emit("clear");
|
|
899
919
|
}
|
|
900
|
-
function V(
|
|
901
|
-
const
|
|
902
|
-
v(
|
|
920
|
+
function V(g) {
|
|
921
|
+
const x = u(g);
|
|
922
|
+
v(x);
|
|
903
923
|
}
|
|
904
|
-
function
|
|
905
|
-
return
|
|
924
|
+
function k() {
|
|
925
|
+
return d.value;
|
|
906
926
|
}
|
|
907
|
-
function w(
|
|
908
|
-
n.emit("input",
|
|
927
|
+
function w(g) {
|
|
928
|
+
n.emit("input", g);
|
|
909
929
|
}
|
|
910
930
|
return n.expose({
|
|
911
|
-
getDisplayText:
|
|
912
|
-
}), O([() => e.disabled, () => e.editable, () => e.enableClear, () => e.enableSearch, () => e.readonly], ([
|
|
913
|
-
o.value =
|
|
914
|
-
}), () =>
|
|
931
|
+
getDisplayText: k
|
|
932
|
+
}), O([() => e.disabled, () => e.editable, () => e.enableClear, () => e.enableSearch, () => e.readonly], ([g, x, T, M, R]) => {
|
|
933
|
+
o.value = g, l.value = x, r.value = T, a.value = M, i.value = R;
|
|
934
|
+
}), () => C(dn, {
|
|
915
935
|
ref: t,
|
|
916
936
|
id: e.id,
|
|
917
937
|
disable: o.value,
|
|
918
|
-
readonly:
|
|
938
|
+
readonly: i.value,
|
|
919
939
|
forcePlaceholder: e.forcePlaceholder,
|
|
920
|
-
editable:
|
|
940
|
+
editable: l.value,
|
|
921
941
|
buttonContent: e.dropDownIcon,
|
|
922
942
|
placeholder: e.placeholder,
|
|
923
943
|
enableClear: r.value,
|
|
@@ -926,23 +946,23 @@ const q = /* @__PURE__ */ R({
|
|
|
926
946
|
enableTitle: e.enableTitle,
|
|
927
947
|
multiSelect: e.multiSelect,
|
|
928
948
|
inputType: e.multiSelect ? e.viewType : "text",
|
|
929
|
-
modelValue:
|
|
930
|
-
"onUpdate:modelValue": (
|
|
949
|
+
modelValue: d.value,
|
|
950
|
+
"onUpdate:modelValue": (g) => d.value = g,
|
|
931
951
|
focusOnCreated: e.focusOnCreated,
|
|
932
952
|
selectOnCreated: e.selectOnCreated,
|
|
933
|
-
onClear:
|
|
934
|
-
onClick:
|
|
953
|
+
onClear: S,
|
|
954
|
+
onClick: m,
|
|
935
955
|
onChange: V,
|
|
936
956
|
onInput: w,
|
|
937
957
|
beforeOpen: e.beforeOpen
|
|
938
958
|
}, {
|
|
939
|
-
default: () => [
|
|
959
|
+
default: () => [C(to, {
|
|
940
960
|
idField: e.idField,
|
|
941
961
|
valueField: e.valueField,
|
|
942
962
|
textField: e.textField,
|
|
943
963
|
titleField: e.titleField,
|
|
944
964
|
dataSource: s.value,
|
|
945
|
-
selectedValues:
|
|
965
|
+
selectedValues: c.value,
|
|
946
966
|
multiSelect: e.multiSelect,
|
|
947
967
|
enableSearch: a.value,
|
|
948
968
|
maxHeight: e.maxHeight,
|
|
@@ -953,12 +973,12 @@ const q = /* @__PURE__ */ R({
|
|
|
953
973
|
});
|
|
954
974
|
}
|
|
955
975
|
}), oo = /* @__PURE__ */ new Map([
|
|
956
|
-
["appearance",
|
|
976
|
+
["appearance", pn]
|
|
957
977
|
]);
|
|
958
978
|
function ro(e, n, t) {
|
|
959
979
|
return n;
|
|
960
980
|
}
|
|
961
|
-
const ao = "https://json-schema.org/draft/2020-12/schema",
|
|
981
|
+
const ao = "https://json-schema.org/draft/2020-12/schema", io = "https://farris-design.gitee.io/button-edit.schema.json", lo = "button-edit", uo = "A Farris Input Component", so = "object", co = {
|
|
962
982
|
id: {
|
|
963
983
|
description: "The unique identifier for a Input Group",
|
|
964
984
|
type: "string"
|
|
@@ -1147,8 +1167,8 @@ const ao = "https://json-schema.org/draft/2020-12/schema", lo = "https://farris-
|
|
|
1147
1167
|
"type"
|
|
1148
1168
|
], fo = {
|
|
1149
1169
|
$schema: ao,
|
|
1150
|
-
$id:
|
|
1151
|
-
title:
|
|
1170
|
+
$id: io,
|
|
1171
|
+
title: lo,
|
|
1152
1172
|
description: uo,
|
|
1153
1173
|
type: so,
|
|
1154
1174
|
properties: co,
|
|
@@ -1224,7 +1244,7 @@ const ao = "https://json-schema.org/draft/2020-12/schema", lo = "https://farris-
|
|
|
1224
1244
|
},
|
|
1225
1245
|
{
|
|
1226
1246
|
value: "center",
|
|
1227
|
-
name: "
|
|
1247
|
+
name: "居中"
|
|
1228
1248
|
},
|
|
1229
1249
|
{
|
|
1230
1250
|
value: "right",
|
|
@@ -1240,7 +1260,7 @@ const ao = "https://json-schema.org/draft/2020-12/schema", lo = "https://farris-
|
|
|
1240
1260
|
description: vo,
|
|
1241
1261
|
type: mo,
|
|
1242
1262
|
categories: ho
|
|
1243
|
-
},
|
|
1263
|
+
}, He = {
|
|
1244
1264
|
/**
|
|
1245
1265
|
* 组件标识
|
|
1246
1266
|
*/
|
|
@@ -1349,60 +1369,60 @@ const ao = "https://json-schema.org/draft/2020-12/schema", lo = "https://farris-
|
|
|
1349
1369
|
/** 更新方式 blur | change */
|
|
1350
1370
|
updateOn: { type: String, default: "change" }
|
|
1351
1371
|
};
|
|
1352
|
-
|
|
1372
|
+
J(He, fo, oo, ro, bo);
|
|
1353
1373
|
const go = {
|
|
1354
1374
|
popupContentPosition: { type: Object, default: { left: 0, top: 0 } },
|
|
1355
1375
|
host: { type: Object },
|
|
1356
1376
|
backgroundColor: { type: String, default: "" }
|
|
1357
|
-
},
|
|
1377
|
+
}, So = /* @__PURE__ */ D({
|
|
1358
1378
|
name: "FOverlay",
|
|
1359
1379
|
props: go,
|
|
1360
1380
|
emits: ["click"],
|
|
1361
1381
|
setup(e, n) {
|
|
1362
|
-
const t =
|
|
1382
|
+
const t = b(e.popupContentPosition), o = b(e.host), r = E(() => ({
|
|
1363
1383
|
backgroundColor: e.backgroundColor || "",
|
|
1364
1384
|
pointerEvents: "auto"
|
|
1365
1385
|
}));
|
|
1366
1386
|
function a(s) {
|
|
1367
1387
|
n.emit("click"), s.preventDefault(), s.stopPropagation();
|
|
1368
1388
|
}
|
|
1369
|
-
|
|
1389
|
+
E(() => {
|
|
1370
1390
|
const s = o.value;
|
|
1371
1391
|
if (s) {
|
|
1372
|
-
const
|
|
1373
|
-
left:
|
|
1374
|
-
top:
|
|
1392
|
+
const d = s.getBoundingClientRect(), {
|
|
1393
|
+
left: l,
|
|
1394
|
+
top: c,
|
|
1375
1395
|
height: u
|
|
1376
|
-
} =
|
|
1396
|
+
} = d;
|
|
1377
1397
|
return {
|
|
1378
|
-
left:
|
|
1379
|
-
top:
|
|
1398
|
+
left: l,
|
|
1399
|
+
top: c + u
|
|
1380
1400
|
};
|
|
1381
1401
|
}
|
|
1382
1402
|
return t.value;
|
|
1383
1403
|
});
|
|
1384
|
-
const
|
|
1404
|
+
const i = E(() => ({
|
|
1385
1405
|
// position: 'relative',
|
|
1386
1406
|
// left: `${position.value.left}px`,
|
|
1387
1407
|
// top: `${position.value.top}px`
|
|
1388
1408
|
}));
|
|
1389
|
-
return () =>
|
|
1409
|
+
return () => C(on, {
|
|
1390
1410
|
to: "body"
|
|
1391
1411
|
}, {
|
|
1392
1412
|
default: () => {
|
|
1393
|
-
var s,
|
|
1394
|
-
return [
|
|
1413
|
+
var s, d;
|
|
1414
|
+
return [C("div", {
|
|
1395
1415
|
class: "overlay-container",
|
|
1396
|
-
onClick: (
|
|
1416
|
+
onClick: (l) => a(l),
|
|
1397
1417
|
style: r.value
|
|
1398
|
-
}, [
|
|
1399
|
-
style:
|
|
1400
|
-
}, [(
|
|
1418
|
+
}, [C("div", {
|
|
1419
|
+
style: i.value
|
|
1420
|
+
}, [(d = (s = n.slots).default) == null ? void 0 : d.call(s)])])];
|
|
1401
1421
|
}
|
|
1402
1422
|
});
|
|
1403
1423
|
}
|
|
1404
1424
|
});
|
|
1405
|
-
function
|
|
1425
|
+
function Co(e) {
|
|
1406
1426
|
if (e.content && e.content.render)
|
|
1407
1427
|
return e.content.render;
|
|
1408
1428
|
if (e.render && typeof e.render == "function")
|
|
@@ -1416,13 +1436,13 @@ function wo(e) {
|
|
|
1416
1436
|
}), r = () => {
|
|
1417
1437
|
o(), t && t.unmount();
|
|
1418
1438
|
};
|
|
1419
|
-
return t =
|
|
1439
|
+
return t = rn({
|
|
1420
1440
|
setup() {
|
|
1421
|
-
|
|
1441
|
+
an(() => {
|
|
1422
1442
|
document.body.removeChild(n);
|
|
1423
1443
|
});
|
|
1424
|
-
const a =
|
|
1425
|
-
return () =>
|
|
1444
|
+
const a = Co(e);
|
|
1445
|
+
return () => C(So, {
|
|
1426
1446
|
"popup-content-position": e.popupPosition,
|
|
1427
1447
|
host: e.host,
|
|
1428
1448
|
onClick: r,
|
|
@@ -1433,13 +1453,13 @@ function wo(e) {
|
|
|
1433
1453
|
}
|
|
1434
1454
|
}), document.body.appendChild(n), t.mount(n), t;
|
|
1435
1455
|
}
|
|
1436
|
-
class
|
|
1456
|
+
class Vo {
|
|
1437
1457
|
static show(n) {
|
|
1438
1458
|
return wo(n);
|
|
1439
1459
|
}
|
|
1440
1460
|
}
|
|
1441
|
-
const
|
|
1442
|
-
function
|
|
1461
|
+
const xo = Symbol("FModalService");
|
|
1462
|
+
function We(e, n) {
|
|
1443
1463
|
function t() {
|
|
1444
1464
|
const o = e.beforeOpen || e.beforeClickButton || null;
|
|
1445
1465
|
let r = Promise.resolve(!0);
|
|
@@ -1454,26 +1474,26 @@ function Qe(e, n) {
|
|
|
1454
1474
|
return { judgeCanOpen: t };
|
|
1455
1475
|
}
|
|
1456
1476
|
function Bo(e, n, t, o, r) {
|
|
1457
|
-
const a =
|
|
1477
|
+
const a = b(e.buttonBehavior), i = b(e.popupOnInput), s = E(() => ({
|
|
1458
1478
|
"input-group-append": !0,
|
|
1459
1479
|
"append-force-show": e.showButtonWhenDisabled && (e.readonly || e.disable)
|
|
1460
|
-
})), { judgeCanOpen:
|
|
1480
|
+
})), { judgeCanOpen: d } = We(e, r), l = E(() => e.showButtonWhenDisabled || (!e.editable || !e.readonly) && !e.disable), c = _(xo, null), u = b();
|
|
1461
1481
|
async function f(v) {
|
|
1462
|
-
if (await
|
|
1463
|
-
const
|
|
1482
|
+
if (await d() && l.value) {
|
|
1483
|
+
const m = !!n.slots.default;
|
|
1464
1484
|
if (a.value === "Modal") {
|
|
1465
|
-
const
|
|
1466
|
-
...
|
|
1485
|
+
const S = e.modalOptions, V = c == null ? void 0 : c.open({
|
|
1486
|
+
...S,
|
|
1467
1487
|
render: () => n.slots.default && n.slots.default()
|
|
1468
1488
|
});
|
|
1469
1489
|
u.value = V == null ? void 0 : V.modalRef;
|
|
1470
1490
|
}
|
|
1471
|
-
a.value === "Overlay" &&
|
|
1491
|
+
a.value === "Overlay" && Vo.show({
|
|
1472
1492
|
// host: buttonEditRef.value,
|
|
1473
1493
|
host: document.body,
|
|
1474
1494
|
backgroundColor: "rgba(0,0,0,.15)",
|
|
1475
1495
|
render: () => n.slots.default && n.slots.default()
|
|
1476
|
-
}),
|
|
1496
|
+
}), m && a.value === "Popup" && o.togglePopup(!0), m && i.value && o.hidePopup(), n.emit("clickButton", { origin: v, value: e.modelValue });
|
|
1477
1497
|
}
|
|
1478
1498
|
}
|
|
1479
1499
|
function p(v) {
|
|
@@ -1490,42 +1510,42 @@ function Bo(e, n, t, o, r) {
|
|
|
1490
1510
|
modalRef: u
|
|
1491
1511
|
};
|
|
1492
1512
|
}
|
|
1493
|
-
function
|
|
1494
|
-
const r =
|
|
1513
|
+
function Fo(e, n, t, o) {
|
|
1514
|
+
const r = b(), a = b(!1), { judgeCanOpen: i } = We(e, o);
|
|
1495
1515
|
function s() {
|
|
1496
1516
|
const u = r.value;
|
|
1497
1517
|
u && u.show(t.value);
|
|
1498
1518
|
}
|
|
1499
|
-
async function
|
|
1519
|
+
async function d(u = !1) {
|
|
1500
1520
|
if (!!n.slots.default) {
|
|
1501
|
-
if (!u && !a.value && !await
|
|
1521
|
+
if (!u && !a.value && !await i())
|
|
1502
1522
|
return;
|
|
1503
|
-
a.value = !a.value, await
|
|
1523
|
+
a.value = !a.value, await te(), s();
|
|
1504
1524
|
}
|
|
1505
1525
|
}
|
|
1506
|
-
async function
|
|
1526
|
+
async function l(u = !1) {
|
|
1507
1527
|
if (!!n.slots.default) {
|
|
1508
|
-
if (!u && !await
|
|
1528
|
+
if (!u && !await i())
|
|
1509
1529
|
return;
|
|
1510
|
-
a.value = !0, await
|
|
1530
|
+
a.value = !0, await te(), s();
|
|
1511
1531
|
}
|
|
1512
1532
|
}
|
|
1513
|
-
function
|
|
1533
|
+
function c() {
|
|
1514
1534
|
a.value = !1;
|
|
1515
1535
|
}
|
|
1516
|
-
return { hidePopup:
|
|
1536
|
+
return { hidePopup: c, popup: l, shouldPopupContent: a, togglePopup: d, popoverRef: r };
|
|
1517
1537
|
}
|
|
1518
|
-
function
|
|
1538
|
+
function To(e, n, t) {
|
|
1519
1539
|
const {
|
|
1520
1540
|
buttonGroupClass: o
|
|
1521
|
-
} = t, r =
|
|
1541
|
+
} = t, r = b();
|
|
1522
1542
|
return {
|
|
1523
|
-
renderButtonGroup: () =>
|
|
1543
|
+
renderButtonGroup: () => C("div", {
|
|
1524
1544
|
id: `${e.id}-button-group`,
|
|
1525
1545
|
class: o.value
|
|
1526
|
-
}, [n.slots.buttonContent ?
|
|
1546
|
+
}, [n.slots.buttonContent ? C("span", {
|
|
1527
1547
|
class: "input-group-text input-group-append-button"
|
|
1528
|
-
}, [n.slots.buttonContent()]) : e.buttonContent ?
|
|
1548
|
+
}, [n.slots.buttonContent()]) : e.buttonContent ? C("span", {
|
|
1529
1549
|
class: "input-group-text input-group-append-button",
|
|
1530
1550
|
innerHTML: e.buttonContent,
|
|
1531
1551
|
ref: r
|
|
@@ -1533,22 +1553,22 @@ function Fo(e, n, t) {
|
|
|
1533
1553
|
buttonHandleElement: r
|
|
1534
1554
|
};
|
|
1535
1555
|
}
|
|
1536
|
-
const ko = /* @__PURE__ */
|
|
1556
|
+
const ko = /* @__PURE__ */ D({
|
|
1537
1557
|
name: "FButtonEdit",
|
|
1538
|
-
props:
|
|
1558
|
+
props: He,
|
|
1539
1559
|
emits: ["updateExtendInfo", "clear", "change", "click", "clickButton", "blur", "focus", "mouseEnterIcon", "mouseLeaveIcon", "keyup", "keydown", "inputClick", "input", "update:modelValue"],
|
|
1540
1560
|
setup(e, n) {
|
|
1541
|
-
const t =
|
|
1561
|
+
const t = b(), o = _("design-item-context"), r = ve(t, o), a = b(e.customClass), i = b(e.modelValue), s = Fo(e, n, t, i), d = Bo(e, n, t, s, i), l = b(), c = E(() => ({
|
|
1542
1562
|
"f-cmp-inputgroup": !0,
|
|
1543
1563
|
"input-group": !0,
|
|
1544
1564
|
"f-state-disable": !0,
|
|
1545
1565
|
"f-state-editable": !1,
|
|
1546
1566
|
"f-state-readonly": !0
|
|
1547
1567
|
}));
|
|
1548
|
-
|
|
1568
|
+
U(() => {
|
|
1549
1569
|
t.value.componentInstance = r;
|
|
1550
1570
|
}), n.expose(r.value);
|
|
1551
|
-
const u =
|
|
1571
|
+
const u = E(() => {
|
|
1552
1572
|
const p = {
|
|
1553
1573
|
"f-button-edit": !0,
|
|
1554
1574
|
"f-cmp-inputgroup": !0,
|
|
@@ -1557,56 +1577,22 @@ const ko = /* @__PURE__ */ R({
|
|
|
1557
1577
|
return a.value && a.value.split(" ").reduce((y, v) => (y[v] = !0, y), p), p;
|
|
1558
1578
|
}), {
|
|
1559
1579
|
renderButtonGroup: f
|
|
1560
|
-
} =
|
|
1561
|
-
return () =>
|
|
1580
|
+
} = To(e, n, d);
|
|
1581
|
+
return () => C("div", ln(n.attrs, {
|
|
1562
1582
|
ref: t,
|
|
1563
1583
|
class: u.value,
|
|
1564
1584
|
id: e.id
|
|
1565
|
-
}), [
|
|
1566
|
-
class:
|
|
1567
|
-
}, [
|
|
1568
|
-
ref:
|
|
1585
|
+
}), [C("div", {
|
|
1586
|
+
class: c.value
|
|
1587
|
+
}, [C("input", {
|
|
1588
|
+
ref: l,
|
|
1569
1589
|
class: "form-control",
|
|
1570
1590
|
readonly: !0,
|
|
1571
1591
|
placeholder: e.placeholder
|
|
1572
1592
|
}, null), f()])]);
|
|
1573
1593
|
}
|
|
1574
1594
|
});
|
|
1575
|
-
|
|
1576
|
-
e.schema;
|
|
1577
|
-
const t = m(!0), o = m(!0);
|
|
1578
|
-
function r(u) {
|
|
1579
|
-
return !1;
|
|
1580
|
-
}
|
|
1581
|
-
function a() {
|
|
1582
|
-
return !1;
|
|
1583
|
-
}
|
|
1584
|
-
function l() {
|
|
1585
|
-
return !1;
|
|
1586
|
-
}
|
|
1587
|
-
function s() {
|
|
1588
|
-
return !0;
|
|
1589
|
-
}
|
|
1590
|
-
function c(u) {
|
|
1591
|
-
}
|
|
1592
|
-
function i() {
|
|
1593
|
-
}
|
|
1594
|
-
function d(u) {
|
|
1595
|
-
return null;
|
|
1596
|
-
}
|
|
1597
|
-
return {
|
|
1598
|
-
canAccepts: r,
|
|
1599
|
-
checkCanDeleteComponent: a,
|
|
1600
|
-
checkCanMoveComponent: l,
|
|
1601
|
-
hideNestedPaddingInDesginerView: s,
|
|
1602
|
-
onAcceptMovedChildElement: c,
|
|
1603
|
-
resolveComponentContext: i,
|
|
1604
|
-
triggerBelongedComponentToMoveWhenMoved: t,
|
|
1605
|
-
triggerBelongedComponentToDeleteWhenDeleted: o,
|
|
1606
|
-
getPropsConfig: d
|
|
1607
|
-
};
|
|
1608
|
-
}
|
|
1609
|
-
class Mo {
|
|
1595
|
+
class Eo {
|
|
1610
1596
|
constructor(n, t) {
|
|
1611
1597
|
I(this, "componentId");
|
|
1612
1598
|
I(this, "viewModelId");
|
|
@@ -1631,13 +1617,14 @@ class Mo {
|
|
|
1631
1617
|
return (n = this.schemaService) == null ? void 0 : n.getTableInfoByViewModelId(this.viewModelId);
|
|
1632
1618
|
}
|
|
1633
1619
|
setDesignViewModelField(n) {
|
|
1620
|
+
var o;
|
|
1634
1621
|
const t = n.binding && n.binding.type === "Form" && n.binding.field;
|
|
1635
1622
|
if (t) {
|
|
1636
1623
|
if (!this.designViewModelField) {
|
|
1637
|
-
const
|
|
1638
|
-
this.designViewModelField =
|
|
1624
|
+
const r = this.designViewModelUtils.getDgViewModel(this.viewModelId);
|
|
1625
|
+
this.designViewModelField = r.fields.find((a) => a.id === t);
|
|
1639
1626
|
}
|
|
1640
|
-
n.updateOn = this.designViewModelField.updateOn;
|
|
1627
|
+
n.updateOn = (o = this.designViewModelField) == null ? void 0 : o.updateOn;
|
|
1641
1628
|
}
|
|
1642
1629
|
}
|
|
1643
1630
|
changeFieldEditorType(n, t) {
|
|
@@ -1697,16 +1684,16 @@ class Mo {
|
|
|
1697
1684
|
const o = t && t.parent && t.parent.schema;
|
|
1698
1685
|
if (!o)
|
|
1699
1686
|
return;
|
|
1700
|
-
const r = o.contents.findIndex((
|
|
1687
|
+
const r = o.contents.findIndex((i) => i.id === n), a = F(o.contents[r]);
|
|
1701
1688
|
o.contents.splice(r, 1), o.contents.splice(r, 0, a);
|
|
1702
1689
|
}
|
|
1703
1690
|
}
|
|
1704
|
-
const
|
|
1691
|
+
const W = class W {
|
|
1705
1692
|
/**
|
|
1706
1693
|
* 根据绑定字段类型获取可用的输入类控件
|
|
1707
1694
|
*/
|
|
1708
1695
|
static getEditorTypesByMDataType(n) {
|
|
1709
|
-
const t =
|
|
1696
|
+
const t = W.fieldControlTypeMapping[n];
|
|
1710
1697
|
return t || [{ key: "", value: "" }];
|
|
1711
1698
|
}
|
|
1712
1699
|
/**
|
|
@@ -1714,8 +1701,8 @@ const Y = class Y {
|
|
|
1714
1701
|
*/
|
|
1715
1702
|
static getAllInputTypes() {
|
|
1716
1703
|
const n = [];
|
|
1717
|
-
for (
|
|
1718
|
-
|
|
1704
|
+
for (const t in W.fieldControlTypeMapping)
|
|
1705
|
+
W.fieldControlTypeMapping[t].forEach((o) => {
|
|
1719
1706
|
n.find((r) => r.key === o.key && r.value === o.value) || n.push({ key: o.key, value: o.value });
|
|
1720
1707
|
});
|
|
1721
1708
|
return n;
|
|
@@ -1724,7 +1711,7 @@ const Y = class Y {
|
|
|
1724
1711
|
/**
|
|
1725
1712
|
* <字段类型,可配置的控件类型列表>的映射
|
|
1726
1713
|
*/
|
|
1727
|
-
I(
|
|
1714
|
+
I(W, "fieldControlTypeMapping", {
|
|
1728
1715
|
String: [
|
|
1729
1716
|
{ key: B["input-group"].type, value: B["input-group"].name },
|
|
1730
1717
|
{ key: B.lookup.type, value: B.lookup.name },
|
|
@@ -1771,9 +1758,9 @@ I(Y, "fieldControlTypeMapping", {
|
|
|
1771
1758
|
{ key: B["radio-group"].type, value: B["radio-group"].name }
|
|
1772
1759
|
]
|
|
1773
1760
|
});
|
|
1774
|
-
let
|
|
1775
|
-
const
|
|
1776
|
-
class
|
|
1761
|
+
let ne = W;
|
|
1762
|
+
const Io = b(0);
|
|
1763
|
+
class Mo {
|
|
1777
1764
|
constructor() {
|
|
1778
1765
|
/** 控件标题 */
|
|
1779
1766
|
I(this, "label", "");
|
|
@@ -1807,79 +1794,79 @@ function Po(e) {
|
|
|
1807
1794
|
let n, t;
|
|
1808
1795
|
const o = /* @__PURE__ */ new Map();
|
|
1809
1796
|
let r = [];
|
|
1810
|
-
function a(
|
|
1811
|
-
const p =
|
|
1797
|
+
function a(c, u) {
|
|
1798
|
+
const p = c.split(" ").filter((V) => V.startsWith("col-"));
|
|
1812
1799
|
if (p.length === 0) {
|
|
1813
1800
|
u.isSupportedClass = !1;
|
|
1814
1801
|
return;
|
|
1815
1802
|
}
|
|
1816
|
-
let y = p.find((V) => /^col-([1-9]|10|11|12)$/.test(V)), v = p.find((V) => /^col-md-([1-9]|10|11|12)$/.test(V)),
|
|
1817
|
-
y = y || "col-12", u.columnInSM = parseInt(y.replace("col-", ""), 10), u.displayWidthInSM = u.columnInSM / 12, u.displayWidthInSM !== 1 && (u.isSupportedClass = !1), v = v || "col-md-" + u.columnInSM, u.columnInMD = parseInt(v.replace("col-md-", ""), 10), u.displayWidthInMD = u.columnInMD / 6, [1, 2].includes(u.displayWidthInMD) || (u.isSupportedClass = !1),
|
|
1803
|
+
let y = p.find((V) => /^col-([1-9]|10|11|12)$/.test(V)), v = p.find((V) => /^col-md-([1-9]|10|11|12)$/.test(V)), m = p.find((V) => /^col-xl-([1-9]|10|11|12)$/.test(V)), S = p.find((V) => /^col-el-([1-9]|10|11|12)$/.test(V));
|
|
1804
|
+
y = y || "col-12", u.columnInSM = parseInt(y.replace("col-", ""), 10), u.displayWidthInSM = u.columnInSM / 12, u.displayWidthInSM !== 1 && (u.isSupportedClass = !1), v = v || "col-md-" + u.columnInSM, u.columnInMD = parseInt(v.replace("col-md-", ""), 10), u.displayWidthInMD = u.columnInMD / 6, [1, 2].includes(u.displayWidthInMD) || (u.isSupportedClass = !1), m = m || "col-xl-" + u.columnInMD, u.columnInLG = parseInt(m.replace("col-xl-", ""), 10), u.displayWidthInLG = u.columnInLG / 3, [1, 2, 3, 4].includes(u.displayWidthInLG) || (u.isSupportedClass = !1), S = S || "col-el-" + u.columnInLG, u.columnInEL = parseInt(S.replace("col-el-", ""), 10), u.displayWidthInEL = u.columnInEL / 2, [1, 2, 3, 4, 5, 6].includes(u.displayWidthInEL) || (u.isSupportedClass = !1);
|
|
1818
1805
|
}
|
|
1819
|
-
function
|
|
1806
|
+
function i(c, u, f, p = !1) {
|
|
1820
1807
|
let y = !1;
|
|
1821
|
-
|
|
1808
|
+
c.contents.forEach((v) => {
|
|
1822
1809
|
if (v.type === "fieldset") {
|
|
1823
|
-
f += 1,
|
|
1810
|
+
f += 1, i(v, u, f, !0), y = !0;
|
|
1824
1811
|
return;
|
|
1825
1812
|
}
|
|
1826
1813
|
y && (f += 1, y = !1);
|
|
1827
|
-
const
|
|
1828
|
-
|
|
1814
|
+
const m = v.appearance && v.appearance.class, S = new Mo();
|
|
1815
|
+
m ? a(m, S) : S.isSupportedClass = !1, S.label = v.label || v.id, S.id = v.id, S.group = f, p && (S.fieldSetId = c.id), t === v.id && (n = f), o.set(v.id, v), u.push(S);
|
|
1829
1816
|
});
|
|
1830
1817
|
}
|
|
1831
|
-
function s(
|
|
1832
|
-
const u = e.getComponentById(
|
|
1818
|
+
function s(c) {
|
|
1819
|
+
const u = e.getComponentById(c);
|
|
1833
1820
|
if (!u || !u.componentType || !u.componentType.startsWith("form"))
|
|
1834
1821
|
return { result: !1, message: "只可以在响应式表单组件中调整响应式布局配置" };
|
|
1835
|
-
const f = e.selectNode(u, (p) => p.type ===
|
|
1822
|
+
const f = e.selectNode(u, (p) => p.type === Pe["response-form"].type);
|
|
1836
1823
|
return !f || !f.contents || f.contents.length === 0 ? { result: !1, message: "Form区域内没有控件,请先添加控件" } : { result: !0, message: "", formNode: f };
|
|
1837
1824
|
}
|
|
1838
|
-
function c
|
|
1839
|
-
u = u ||
|
|
1825
|
+
function d(c, u) {
|
|
1826
|
+
u = u || c.id;
|
|
1840
1827
|
const { result: f, message: p, formNode: y } = s(u);
|
|
1841
1828
|
if (!f)
|
|
1842
1829
|
return { result: f, message: p };
|
|
1843
|
-
t =
|
|
1844
|
-
const v = y.contents[0].type ===
|
|
1845
|
-
|
|
1846
|
-
const
|
|
1830
|
+
t = c.id, r = [], o.clear();
|
|
1831
|
+
const v = y.contents[0].type === Pe.fieldset.type ? 0 : 1;
|
|
1832
|
+
i(y, r, v);
|
|
1833
|
+
const m = r.find((V) => !V.isSupportedClass);
|
|
1847
1834
|
return {
|
|
1848
1835
|
defaultState: {
|
|
1849
1836
|
defaultGroupNumber: n || 1,
|
|
1850
|
-
model:
|
|
1837
|
+
model: m ? "customize" : "standard"
|
|
1851
1838
|
},
|
|
1852
1839
|
importData: r
|
|
1853
1840
|
};
|
|
1854
1841
|
}
|
|
1855
|
-
function
|
|
1842
|
+
function l(c, u) {
|
|
1856
1843
|
u = u;
|
|
1857
1844
|
const { result: f, formNode: p } = s(u);
|
|
1858
1845
|
if (!f)
|
|
1859
1846
|
return "";
|
|
1860
1847
|
const y = [];
|
|
1861
|
-
return
|
|
1848
|
+
return c.forEach((v) => {
|
|
1862
1849
|
var V;
|
|
1863
|
-
const
|
|
1864
|
-
if (
|
|
1865
|
-
const w =
|
|
1866
|
-
|
|
1850
|
+
const m = o.get(v.id), S = m.appearance && m.appearance.class;
|
|
1851
|
+
if (S) {
|
|
1852
|
+
const w = S.split(" ").filter((le) => !le.startsWith("col-")), g = "col-" + v.columnInSM, x = "col-md-" + v.columnInMD, T = "col-xl-" + v.columnInLG, M = "col-el-" + v.columnInEL, R = [g, x, T, M].concat(w);
|
|
1853
|
+
m.appearance.class = R.join(" ");
|
|
1867
1854
|
}
|
|
1868
1855
|
if (v.fieldSetId) {
|
|
1869
|
-
const
|
|
1870
|
-
w ? (V = w.contents) == null || V.push(
|
|
1856
|
+
const k = p.contents.find((g) => g.id === v.fieldSetId), w = y.find((g) => g.id === v.fieldSetId);
|
|
1857
|
+
w ? (V = w.contents) == null || V.push(m) : (y.push(k), k.contents = [m]);
|
|
1871
1858
|
} else
|
|
1872
|
-
y.push(
|
|
1859
|
+
y.push(m);
|
|
1873
1860
|
}), p.contents = y, p.id;
|
|
1874
1861
|
}
|
|
1875
1862
|
return {
|
|
1876
1863
|
checkCanFindFormNode: s,
|
|
1877
|
-
checkCanOpenLayoutEditor:
|
|
1878
|
-
changeFormControlsByResponseLayoutConfig:
|
|
1879
|
-
getResonseFormLayoutConfig:
|
|
1864
|
+
checkCanOpenLayoutEditor: d,
|
|
1865
|
+
changeFormControlsByResponseLayoutConfig: l,
|
|
1866
|
+
getResonseFormLayoutConfig: i
|
|
1880
1867
|
};
|
|
1881
1868
|
}
|
|
1882
|
-
class
|
|
1869
|
+
class ge extends Eo {
|
|
1883
1870
|
constructor(t, o) {
|
|
1884
1871
|
super(t, o);
|
|
1885
1872
|
I(this, "responseLayoutEditorFunction");
|
|
@@ -1889,11 +1876,9 @@ class Ve extends Mo {
|
|
|
1889
1876
|
return this.propertyConfig.categories.basic = this.getBasicProperties(t, o), this.propertyConfig.categories.appearance = this.getAppearanceProperties(t, o), this.propertyConfig.categories.editor = this.getEditorProperties(t), this.propertyConfig;
|
|
1890
1877
|
}
|
|
1891
1878
|
getBasicProperties(t, o) {
|
|
1892
|
-
var
|
|
1893
|
-
|
|
1894
|
-
this.setDesignViewModelField(t)
|
|
1895
|
-
const a = this.formSchemaUtils.getFormMetadataBasicInfo(), l = this.designViewModelUtils.getAllFields2TreeByVMId(this.viewModelId);
|
|
1896
|
-
return {
|
|
1879
|
+
var a;
|
|
1880
|
+
const r = this;
|
|
1881
|
+
return this.setDesignViewModelField(t), this.formSchemaUtils.getFormMetadataBasicInfo(), {
|
|
1897
1882
|
description: "Basic Information",
|
|
1898
1883
|
title: "基本信息",
|
|
1899
1884
|
properties: {
|
|
@@ -1914,7 +1899,7 @@ class Ve extends Mo {
|
|
|
1914
1899
|
textField: "value",
|
|
1915
1900
|
valueField: "key",
|
|
1916
1901
|
editable: !1,
|
|
1917
|
-
data: r.designViewModelField ?
|
|
1902
|
+
data: r.designViewModelField ? ne.getEditorTypesByMDataType((a = r.designViewModelField.type) == null ? void 0 : a.name) : ne.getAllInputTypes()
|
|
1918
1903
|
}
|
|
1919
1904
|
},
|
|
1920
1905
|
label: {
|
|
@@ -1925,33 +1910,29 @@ class Ve extends Mo {
|
|
|
1925
1910
|
binding: {
|
|
1926
1911
|
description: "绑定的表单字段",
|
|
1927
1912
|
title: "绑定",
|
|
1928
|
-
$converter: "/converter/field-selector.converter",
|
|
1929
1913
|
editor: {
|
|
1930
|
-
type: "
|
|
1914
|
+
type: "binding-selector",
|
|
1931
1915
|
bindingType: { enable: !1 },
|
|
1932
1916
|
editorParams: {
|
|
1933
|
-
|
|
1934
|
-
|
|
1917
|
+
componentSchema: t,
|
|
1918
|
+
needSyncToViewModel: !0,
|
|
1919
|
+
viewModelId: this.viewModelId,
|
|
1920
|
+
designerHostService: this.designerHostService,
|
|
1921
|
+
disableOccupiedFields: !0
|
|
1935
1922
|
},
|
|
1936
|
-
|
|
1937
|
-
{ field: "name", title: "字段名称" },
|
|
1938
|
-
{ field: "bindingField", title: "绑定字段" },
|
|
1939
|
-
{ field: "fieldType", title: "字段类型" }
|
|
1940
|
-
],
|
|
1941
|
-
textField: "bindingField",
|
|
1942
|
-
data: l
|
|
1923
|
+
textField: "bindingField"
|
|
1943
1924
|
}
|
|
1944
1925
|
}
|
|
1945
1926
|
},
|
|
1946
|
-
setPropertyRelates(
|
|
1947
|
-
if (
|
|
1948
|
-
switch (
|
|
1927
|
+
setPropertyRelates(i, s) {
|
|
1928
|
+
if (i)
|
|
1929
|
+
switch (i && i.propertyID) {
|
|
1949
1930
|
case "type": {
|
|
1950
|
-
r.changeControlType(t,
|
|
1931
|
+
r.changeControlType(t, i, o);
|
|
1951
1932
|
break;
|
|
1952
1933
|
}
|
|
1953
1934
|
case "label": {
|
|
1954
|
-
|
|
1935
|
+
i.needRefreshControlTree = !0;
|
|
1955
1936
|
break;
|
|
1956
1937
|
}
|
|
1957
1938
|
}
|
|
@@ -1959,7 +1940,7 @@ class Ve extends Mo {
|
|
|
1959
1940
|
};
|
|
1960
1941
|
}
|
|
1961
1942
|
getAppearanceProperties(t, o) {
|
|
1962
|
-
|
|
1943
|
+
const r = this;
|
|
1963
1944
|
return {
|
|
1964
1945
|
title: "样式",
|
|
1965
1946
|
description: "Appearance",
|
|
@@ -1989,7 +1970,7 @@ class Ve extends Mo {
|
|
|
1989
1970
|
}
|
|
1990
1971
|
}
|
|
1991
1972
|
},
|
|
1992
|
-
setPropertyRelates(a,
|
|
1973
|
+
setPropertyRelates(a, i) {
|
|
1993
1974
|
if (a)
|
|
1994
1975
|
switch (a && a.propertyID) {
|
|
1995
1976
|
case "responseLayout":
|
|
@@ -2011,12 +1992,12 @@ class Ve extends Mo {
|
|
|
2011
1992
|
* @param newControlType 新控件类型
|
|
2012
1993
|
*/
|
|
2013
1994
|
changeControlType(t, o, r) {
|
|
2014
|
-
var
|
|
2015
|
-
const a = o.propertyValue,
|
|
2016
|
-
if (!
|
|
1995
|
+
var c, u, f, p;
|
|
1996
|
+
const a = o.propertyValue, i = r && r.parent && r.parent.schema;
|
|
1997
|
+
if (!i)
|
|
2017
1998
|
return;
|
|
2018
|
-
const s =
|
|
2019
|
-
let
|
|
1999
|
+
const s = i.contents.findIndex((y) => y.id === t.id), d = i.contents[s];
|
|
2000
|
+
let l;
|
|
2020
2001
|
this.designViewModelField && (this.designViewModelUtils.getDgViewModel(this.viewModelId).changeField(this.designViewModelField.id, {
|
|
2021
2002
|
editor: {
|
|
2022
2003
|
$type: a
|
|
@@ -2024,22 +2005,22 @@ class Ve extends Mo {
|
|
|
2024
2005
|
name: this.designViewModelField.name,
|
|
2025
2006
|
require: this.designViewModelField.require,
|
|
2026
2007
|
readonly: this.designViewModelField.readonly
|
|
2027
|
-
}, !1),
|
|
2028
|
-
id:
|
|
2029
|
-
appearance:
|
|
2030
|
-
size:
|
|
2031
|
-
label:
|
|
2032
|
-
binding:
|
|
2033
|
-
visible:
|
|
2034
|
-
}), Object.assign(
|
|
2035
|
-
isTextArea:
|
|
2036
|
-
placeholder: (
|
|
2037
|
-
holdPlace: (u =
|
|
2038
|
-
readonly: (f =
|
|
2039
|
-
require: (p =
|
|
2040
|
-
}),
|
|
2008
|
+
}, !1), l = this.controlCreatorUtils.setFormFieldProperty(this.designViewModelField, a)), l || (l = this.controlCreatorUtils.createFormGroupWithoutField(a)), Object.assign(l, {
|
|
2009
|
+
id: d.id,
|
|
2010
|
+
appearance: d.appearance,
|
|
2011
|
+
size: d.size,
|
|
2012
|
+
label: d.label,
|
|
2013
|
+
binding: d.binding,
|
|
2014
|
+
visible: d.visible
|
|
2015
|
+
}), Object.assign(l.editor, {
|
|
2016
|
+
isTextArea: l.isTextArea && d.isTextArea,
|
|
2017
|
+
placeholder: (c = d.editor) == null ? void 0 : c.placeholder,
|
|
2018
|
+
holdPlace: (u = d.editor) == null ? void 0 : u.holdPlace,
|
|
2019
|
+
readonly: (f = d.editor) == null ? void 0 : f.readonly,
|
|
2020
|
+
require: (p = d.editor) == null ? void 0 : p.require
|
|
2021
|
+
}), i.contents.splice(s, 1), i.contents.splice(s, 0, l), r.schema = Object.assign(d, l), Array.from(document.getElementsByClassName("dgComponentSelected")).forEach(
|
|
2041
2022
|
(y) => y.classList.remove("dgComponentSelected")
|
|
2042
|
-
),
|
|
2023
|
+
), Io.value++;
|
|
2043
2024
|
}
|
|
2044
2025
|
getComponentConfig(t, o = {}, r = {}) {
|
|
2045
2026
|
const a = Object.assign({
|
|
@@ -2047,7 +2028,7 @@ class Ve extends Mo {
|
|
|
2047
2028
|
title: "编辑器",
|
|
2048
2029
|
type: "input-group",
|
|
2049
2030
|
$converter: "/converter/property-editor.converter"
|
|
2050
|
-
}, o),
|
|
2031
|
+
}, o), i = Object.assign({
|
|
2051
2032
|
readonly: {
|
|
2052
2033
|
description: "",
|
|
2053
2034
|
title: "只读",
|
|
@@ -2069,7 +2050,7 @@ class Ve extends Mo {
|
|
|
2069
2050
|
type: "string"
|
|
2070
2051
|
}
|
|
2071
2052
|
}, r);
|
|
2072
|
-
return { ...a, properties: { ...
|
|
2053
|
+
return { ...a, properties: { ...i } };
|
|
2073
2054
|
}
|
|
2074
2055
|
/**
|
|
2075
2056
|
* 修改某一输入控件的样式后更新Form的统一布局配置
|
|
@@ -2079,16 +2060,16 @@ class Ve extends Mo {
|
|
|
2079
2060
|
*/
|
|
2080
2061
|
updateUnifiedLayoutAfterControlChanged(t, o, r) {
|
|
2081
2062
|
const a = t.split(" ");
|
|
2082
|
-
let
|
|
2083
|
-
|
|
2084
|
-
const
|
|
2063
|
+
let i = a.find((u) => /^col-([1-9]|10|11|12)$/.test(u)), s = a.find((u) => /^col-md-([1-9]|10|11|12)$/.test(u)), d = a.find((u) => /^col-xl-([1-9]|10|11|12)$/.test(u)), l = a.find((u) => /^col-el-([1-9]|10|11|12)$/.test(u));
|
|
2064
|
+
i = i || "col-12", s = s || "col-md-" + i.replace("col-", ""), d = d || "col-xl-" + s.replace("col-md-", ""), l = l || "col-el-" + d.replace("col-xl-", "");
|
|
2065
|
+
const c = {
|
|
2085
2066
|
id: o,
|
|
2086
|
-
columnInSM: parseInt(
|
|
2067
|
+
columnInSM: parseInt(i.replace("col-", ""), 10),
|
|
2087
2068
|
columnInMD: parseInt(s.replace("col-md-", ""), 10),
|
|
2088
|
-
columnInLG: parseInt(
|
|
2089
|
-
columnInEL: parseInt(
|
|
2069
|
+
columnInLG: parseInt(d.replace("col-xl-", ""), 10),
|
|
2070
|
+
columnInEL: parseInt(l.replace("col-el-", ""), 10)
|
|
2090
2071
|
};
|
|
2091
|
-
this.updateUnifiedLayoutAfterResponseLayoutChanged(r,
|
|
2072
|
+
this.updateUnifiedLayoutAfterResponseLayoutChanged(r, c);
|
|
2092
2073
|
}
|
|
2093
2074
|
/**
|
|
2094
2075
|
* 修改控件布局配置后更新Form统一布局配置
|
|
@@ -2104,9 +2085,9 @@ class Ve extends Mo {
|
|
|
2104
2085
|
const y = a.find((v) => v.id === o.id);
|
|
2105
2086
|
Object.assign(y || {}, o);
|
|
2106
2087
|
}
|
|
2107
|
-
const
|
|
2088
|
+
const i = a.map((y) => y.columnInSM), s = a.map((y) => y.columnInMD), d = a.map((y) => y.columnInLG), l = a.map((y) => y.columnInEL), c = this.checkIsUniqueColumn(i) ? i[0] : null, u = this.checkIsUniqueColumn(s) ? s[0] : null, f = this.checkIsUniqueColumn(d) ? d[0] : null, p = this.checkIsUniqueColumn(l) ? l[0] : null;
|
|
2108
2089
|
Object.assign(r.unifiedLayout, {
|
|
2109
|
-
uniqueColClassInSM:
|
|
2090
|
+
uniqueColClassInSM: c,
|
|
2110
2091
|
uniqueColClassInMD: u,
|
|
2111
2092
|
uniqueColClassInLG: f,
|
|
2112
2093
|
uniqueColClassInEL: p
|
|
@@ -2120,65 +2101,89 @@ class Ve extends Mo {
|
|
|
2120
2101
|
return Array.from(o).length === 1;
|
|
2121
2102
|
}
|
|
2122
2103
|
}
|
|
2123
|
-
class Ao extends
|
|
2104
|
+
class Ao extends ge {
|
|
2124
2105
|
constructor(n, t) {
|
|
2125
2106
|
super(n, t);
|
|
2126
2107
|
}
|
|
2127
2108
|
getEditorProperties(n) {
|
|
2128
|
-
|
|
2109
|
+
const t = this.getComponentConfig(n, { type: "combo-list" }, {
|
|
2129
2110
|
editable: {
|
|
2130
2111
|
description: "",
|
|
2131
2112
|
title: "允许编辑",
|
|
2132
2113
|
type: "boolean"
|
|
2133
2114
|
},
|
|
2115
|
+
enableClear: {
|
|
2116
|
+
description: "",
|
|
2117
|
+
title: "启用清空",
|
|
2118
|
+
type: "boolean"
|
|
2119
|
+
},
|
|
2134
2120
|
textField: {
|
|
2121
|
+
visible: !1,
|
|
2135
2122
|
description: "",
|
|
2136
2123
|
title: "数据源显示字段",
|
|
2137
2124
|
type: "string"
|
|
2138
2125
|
},
|
|
2139
|
-
|
|
2126
|
+
valueField: {
|
|
2127
|
+
visible: !1,
|
|
2140
2128
|
description: "",
|
|
2141
2129
|
title: "数据源值字段",
|
|
2142
2130
|
type: "string"
|
|
2131
|
+
},
|
|
2132
|
+
idField: {
|
|
2133
|
+
visible: !1,
|
|
2134
|
+
description: "",
|
|
2135
|
+
title: "数据源标识字段",
|
|
2136
|
+
type: "string"
|
|
2137
|
+
},
|
|
2138
|
+
data: {
|
|
2139
|
+
description: "",
|
|
2140
|
+
title: "数据",
|
|
2141
|
+
type: "array",
|
|
2142
|
+
editor: {
|
|
2143
|
+
columns: [
|
|
2144
|
+
{ field: n.editor.valueField, title: "值", dataType: "string" },
|
|
2145
|
+
{ field: n.editor.textField, title: "名称", dataType: "string" },
|
|
2146
|
+
{ field: "disabled", title: "禁用", visible: !1, dataType: "boolean", editor: { type: "switch" } }
|
|
2147
|
+
],
|
|
2148
|
+
type: "item-collection-editor",
|
|
2149
|
+
valueField: n.editor.valueField,
|
|
2150
|
+
nameField: n.editor.textField,
|
|
2151
|
+
requiredFields: [n.editor.valueField, n.editor.textField],
|
|
2152
|
+
uniqueFields: [n.editor.valueField, n.editor.textField]
|
|
2153
|
+
},
|
|
2154
|
+
// 这个属性,标记当属性变更得时候触发重新更新属性
|
|
2155
|
+
refreshPanelAfterChanged: !0
|
|
2143
2156
|
}
|
|
2144
2157
|
});
|
|
2158
|
+
return t.setPropertyRelates = function(o) {
|
|
2159
|
+
if (o)
|
|
2160
|
+
switch (o.propertyID) {
|
|
2161
|
+
case "data": {
|
|
2162
|
+
o.propertyValue.parameters && (n.editor.valueField = o.propertyValue.parameters.valueField, n.editor.textField = o.propertyValue.parameters.nameField), n.editor.data = o.propertyValue.value;
|
|
2163
|
+
break;
|
|
2164
|
+
}
|
|
2165
|
+
}
|
|
2166
|
+
}, t;
|
|
2145
2167
|
}
|
|
2146
2168
|
}
|
|
2147
|
-
function
|
|
2148
|
-
const
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
checkCanMoveComponent: r,
|
|
2152
|
-
hideNestedPaddingInDesginerView: a,
|
|
2153
|
-
onAcceptMovedChildElement: l,
|
|
2154
|
-
resolveComponentContext: s,
|
|
2155
|
-
triggerBelongedComponentToMoveWhenMoved: c,
|
|
2156
|
-
triggerBelongedComponentToDeleteWhenDeleted: i
|
|
2157
|
-
} = xe(e), d = e.schema;
|
|
2158
|
-
function u(f, p) {
|
|
2159
|
-
return new Ao(f, n).getPropertyConfig(d, p);
|
|
2169
|
+
function No(e, n) {
|
|
2170
|
+
const t = e.schema;
|
|
2171
|
+
function o(r, a) {
|
|
2172
|
+
return new Ao(r, n).getPropertyConfig(t, a);
|
|
2160
2173
|
}
|
|
2161
2174
|
return {
|
|
2162
|
-
|
|
2163
|
-
checkCanDeleteComponent: o,
|
|
2164
|
-
checkCanMoveComponent: r,
|
|
2165
|
-
hideNestedPaddingInDesginerView: a,
|
|
2166
|
-
onAcceptMovedChildElement: l,
|
|
2167
|
-
resolveComponentContext: s,
|
|
2168
|
-
triggerBelongedComponentToMoveWhenMoved: c,
|
|
2169
|
-
triggerBelongedComponentToDeleteWhenDeleted: i,
|
|
2170
|
-
getPropsConfig: u
|
|
2175
|
+
getPropsConfig: o
|
|
2171
2176
|
};
|
|
2172
2177
|
}
|
|
2173
|
-
const
|
|
2178
|
+
const Oo = /* @__PURE__ */ D({
|
|
2174
2179
|
name: "FComboListDesign",
|
|
2175
|
-
props:
|
|
2180
|
+
props: be,
|
|
2176
2181
|
emits: ["clear", "update:modelValue", "change"],
|
|
2177
2182
|
setup(e, n) {
|
|
2178
|
-
const t =
|
|
2179
|
-
return
|
|
2180
|
-
t.value.componentInstance =
|
|
2181
|
-
}), n.expose(
|
|
2183
|
+
const t = b(), o = _("designer-host-service"), r = _("design-item-context"), a = No(r, o), i = ve(t, r, a);
|
|
2184
|
+
return U(() => {
|
|
2185
|
+
t.value.componentInstance = i;
|
|
2186
|
+
}), n.expose(i.value), () => C(ko, {
|
|
2182
2187
|
ref: t,
|
|
2183
2188
|
buttonContent: e.dropDownIcon,
|
|
2184
2189
|
readonly: !0,
|
|
@@ -2188,26 +2193,21 @@ const No = /* @__PURE__ */ R({
|
|
|
2188
2193
|
enableClear: !0
|
|
2189
2194
|
}, null);
|
|
2190
2195
|
}
|
|
2191
|
-
})
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
t.component(n.name, e);
|
|
2195
|
-
}, e;
|
|
2196
|
-
};
|
|
2197
|
-
q.register = (e, n, t, o) => {
|
|
2198
|
-
e["combo-list"] = q, n["combo-list"] = Xe;
|
|
2196
|
+
});
|
|
2197
|
+
G.register = (e, n, t, o) => {
|
|
2198
|
+
e["combo-list"] = G, n["combo-list"] = qe;
|
|
2199
2199
|
};
|
|
2200
|
-
|
|
2201
|
-
e["combo-list"] =
|
|
2200
|
+
G.registerDesigner = (e, n, t) => {
|
|
2201
|
+
e["combo-list"] = Oo, n["combo-list"] = qe;
|
|
2202
2202
|
};
|
|
2203
|
-
|
|
2204
|
-
const
|
|
2205
|
-
["appearance",
|
|
2203
|
+
me(G);
|
|
2204
|
+
const Lo = /* @__PURE__ */ new Map([
|
|
2205
|
+
["appearance", ie]
|
|
2206
2206
|
]);
|
|
2207
|
-
function
|
|
2207
|
+
function jo(e, n, t) {
|
|
2208
2208
|
return n;
|
|
2209
2209
|
}
|
|
2210
|
-
const
|
|
2210
|
+
const $o = "https://json-schema.org/draft/2020-12/schema", Do = "https://farris-design.gitee.io/input-group.schema.json", Uo = "input-group", Ro = "A Farris Input Component", Go = "object", _o = {
|
|
2211
2211
|
id: {
|
|
2212
2212
|
description: "The unique identifier for a Input Group",
|
|
2213
2213
|
type: "string"
|
|
@@ -2269,11 +2269,6 @@ const Do = "https://json-schema.org/draft/2020-12/schema", $o = "https://farris-
|
|
|
2269
2269
|
type: "boolean",
|
|
2270
2270
|
default: !1
|
|
2271
2271
|
},
|
|
2272
|
-
required: {
|
|
2273
|
-
description: "",
|
|
2274
|
-
type: "boolean",
|
|
2275
|
-
default: !1
|
|
2276
|
-
},
|
|
2277
2272
|
tabIndex: {
|
|
2278
2273
|
description: "",
|
|
2279
2274
|
type: "number",
|
|
@@ -2412,15 +2407,21 @@ const Do = "https://json-schema.org/draft/2020-12/schema", $o = "https://farris-
|
|
|
2412
2407
|
}, qo = [
|
|
2413
2408
|
"id",
|
|
2414
2409
|
"type"
|
|
2410
|
+
], Ho = [
|
|
2411
|
+
"id",
|
|
2412
|
+
"appearance",
|
|
2413
|
+
"binding",
|
|
2414
|
+
"visible"
|
|
2415
2415
|
], Wo = {
|
|
2416
|
-
$schema:
|
|
2417
|
-
$id:
|
|
2416
|
+
$schema: $o,
|
|
2417
|
+
$id: Do,
|
|
2418
2418
|
title: Uo,
|
|
2419
|
-
description:
|
|
2420
|
-
type:
|
|
2419
|
+
description: Ro,
|
|
2420
|
+
type: Go,
|
|
2421
2421
|
properties: _o,
|
|
2422
|
-
required: qo
|
|
2423
|
-
|
|
2422
|
+
required: qo,
|
|
2423
|
+
ignore: Ho
|
|
2424
|
+
}, Se = {
|
|
2424
2425
|
id: { Type: String, default: "" },
|
|
2425
2426
|
/** 是否自动完成 */
|
|
2426
2427
|
autocomplete: { Type: String, default: "off" },
|
|
@@ -2487,208 +2488,38 @@ const Do = "https://json-schema.org/draft/2020-12/schema", $o = "https://farris-
|
|
|
2487
2488
|
* - input: 输入时更新
|
|
2488
2489
|
*/
|
|
2489
2490
|
updateOn: { type: String, default: "blur" }
|
|
2490
|
-
},
|
|
2491
|
-
function
|
|
2492
|
-
const
|
|
2493
|
-
|
|
2494
|
-
"f-utils-fill": !0,
|
|
2495
|
-
"text-left": c.value === "left",
|
|
2496
|
-
"text-center": c.value === "center",
|
|
2497
|
-
"text-right": c.value === "right"
|
|
2498
|
-
})), V = x(() => {
|
|
2499
|
-
const M = {
|
|
2500
|
-
"f-cmp-inputgroup": !0,
|
|
2501
|
-
"input-group": !0,
|
|
2502
|
-
"f-state-disable": r.value,
|
|
2503
|
-
"f-state-editable": u.value,
|
|
2504
|
-
"f-state-readonly": v.value,
|
|
2505
|
-
"f-state-focus": f.value
|
|
2506
|
-
};
|
|
2507
|
-
return (e.customClass || "").split(" ").reduce((ne, fe) => (ne[fe] = !0, ne), M), M;
|
|
2508
|
-
}), E = x(() => s.value ? "" : "border-width : 0 ");
|
|
2509
|
-
function w(M, L = !0) {
|
|
2510
|
-
t.value = M, o.value !== M && (o.value = M), L && n.emit("change", M), n.emit("update:modelValue", M), n.emit("update:value", M);
|
|
2511
|
-
}
|
|
2512
|
-
O(
|
|
2513
|
-
() => e.modelValue,
|
|
2514
|
-
(M, L) => {
|
|
2515
|
-
M !== L && (t.value = M, o.value = M);
|
|
2516
|
-
}
|
|
2517
|
-
), O(() => e.disabled, (M, L) => {
|
|
2518
|
-
M !== L && (r.value = M);
|
|
2519
|
-
});
|
|
2520
|
-
function C(M) {
|
|
2521
|
-
return a.value = !1, n.emit("blur", M), M.stopPropagation(), !1;
|
|
2522
|
-
}
|
|
2523
|
-
function T(M) {
|
|
2524
|
-
n.emit("click", M);
|
|
2525
|
-
}
|
|
2526
|
-
function k(M) {
|
|
2527
|
-
e.disabled || (s.value && (a.value = !0), d.value && n.emit("focus", M));
|
|
2528
|
-
}
|
|
2529
|
-
function P(M) {
|
|
2530
|
-
n.emit("input", M.target.value);
|
|
2531
|
-
const L = M.target.value;
|
|
2532
|
-
o.value = L, i.value === "change" && (n.emit("update:modelValue", L), n.emit("update:value", L));
|
|
2533
|
-
}
|
|
2534
|
-
function U(M) {
|
|
2535
|
-
n.emit("keydown", M);
|
|
2536
|
-
}
|
|
2537
|
-
function J(M) {
|
|
2538
|
-
n.emit("keyup", M);
|
|
2539
|
-
}
|
|
2540
|
-
function de(M) {
|
|
2541
|
-
M.target.tagName !== "INPUT" && M.preventDefault(), M.stopPropagation();
|
|
2542
|
-
}
|
|
2543
|
-
function pe(M) {
|
|
2544
|
-
if (i.value === "blur") {
|
|
2545
|
-
const L = M.target.value;
|
|
2546
|
-
M.stopPropagation(), w(L);
|
|
2547
|
-
}
|
|
2548
|
-
}
|
|
2549
|
-
return {
|
|
2550
|
-
changeTextBoxValue: w,
|
|
2551
|
-
disabled: r,
|
|
2552
|
-
displayText: o,
|
|
2553
|
-
editable: u,
|
|
2554
|
-
hasFocused: f,
|
|
2555
|
-
inputGroupClass: V,
|
|
2556
|
-
inputType: l,
|
|
2557
|
-
isEmpty: p,
|
|
2558
|
-
modelValue: t,
|
|
2559
|
-
readonly: v,
|
|
2560
|
-
onBlur: C,
|
|
2561
|
-
onClick: T,
|
|
2562
|
-
onFocus: k,
|
|
2563
|
-
onInput: P,
|
|
2564
|
-
onKeydown: U,
|
|
2565
|
-
onKeyup: J,
|
|
2566
|
-
onMousedown: de,
|
|
2567
|
-
onTextBoxValueChange: pe,
|
|
2568
|
-
placeholder: y,
|
|
2569
|
-
textBoxClass: g,
|
|
2570
|
-
textBoxTitle: h,
|
|
2571
|
-
inputGroupStyle: E
|
|
2572
|
-
};
|
|
2573
|
-
}
|
|
2574
|
-
function zo(e, n, t, o) {
|
|
2575
|
-
const r = m(e.disabled), a = m(!1), l = m("text"), s = m(e.showBorder), c = m(e.textAlign);
|
|
2576
|
-
x(() => e.editable || !e.readonly);
|
|
2577
|
-
const i = x(() => e.editable && !e.disabled && !e.readonly), d = x(() => !e.disabled && a.value), u = x(() => t.value === "" || t.value === null || t.value === void 0), f = x(() => e.placeholder), p = x(() => e.readonly || !e.editable), y = x(() => e.enableTitle ? t.value : ""), v = x(() => ({
|
|
2578
|
-
"form-control": !0,
|
|
2579
|
-
// 'f-utils-fill': true,
|
|
2580
|
-
"text-left": c.value === "left",
|
|
2581
|
-
"text-center": c.value === "center",
|
|
2582
|
-
"text-right": c.value === "right"
|
|
2583
|
-
})), h = x(() => ({
|
|
2584
|
-
"f-cmp-inputgroup": !0,
|
|
2585
|
-
"input-group": !0,
|
|
2586
|
-
"f-state-disable": !0,
|
|
2587
|
-
"f-state-editable": !1,
|
|
2588
|
-
"f-state-readonly": !0
|
|
2589
|
-
// 'f-state-focus': hasFocused.value
|
|
2590
|
-
})), g = x(() => s.value ? "" : "border-width : 0 ");
|
|
2591
|
-
return {
|
|
2592
|
-
// changeTextBoxValue,
|
|
2593
|
-
disabled: r,
|
|
2594
|
-
displayText: o,
|
|
2595
|
-
editable: i,
|
|
2596
|
-
hasFocused: d,
|
|
2597
|
-
inputGroupClass: h,
|
|
2598
|
-
inputType: l,
|
|
2599
|
-
isEmpty: u,
|
|
2600
|
-
modelValue: t,
|
|
2601
|
-
readonly: p,
|
|
2602
|
-
// onBlur,
|
|
2603
|
-
// onClick,
|
|
2604
|
-
// onFocus,
|
|
2605
|
-
// onInput,
|
|
2606
|
-
// onKeydown,
|
|
2607
|
-
// onKeyup,
|
|
2608
|
-
// onMousedown,
|
|
2609
|
-
// onTextBoxValueChange,
|
|
2610
|
-
placeholder: f,
|
|
2611
|
-
textBoxClass: v,
|
|
2612
|
-
textBoxTitle: y,
|
|
2613
|
-
inputGroupStyle: g
|
|
2614
|
-
};
|
|
2615
|
-
}
|
|
2616
|
-
function et(e, n, t) {
|
|
2617
|
-
const o = m(!1), r = x(() => e.enableClear && !e.readonly && !e.disabled), { changeTextBoxValue: a, displayText: l, hasFocused: s, isEmpty: c } = t;
|
|
2618
|
-
function i(v) {
|
|
2619
|
-
o.value = v;
|
|
2620
|
-
}
|
|
2621
|
-
O(l, () => {
|
|
2622
|
-
s != null && s.value ? i(!!(l != null && l.value)) : i(!1);
|
|
2623
|
-
});
|
|
2624
|
-
const d = x(() => ({
|
|
2625
|
-
"input-group-text": !0,
|
|
2626
|
-
"input-group-clear": !0
|
|
2627
|
-
})), u = x(() => ({
|
|
2628
|
-
width: "24px",
|
|
2629
|
-
display: o.value ? "flex" : "none"
|
|
2630
|
-
}));
|
|
2631
|
-
function f(v) {
|
|
2632
|
-
v.stopPropagation(), r.value && (a("", !0), i(!o.value), n.emit("clear"));
|
|
2633
|
-
}
|
|
2634
|
-
function p(v) {
|
|
2635
|
-
r.value && !c.value && i(!0);
|
|
2636
|
-
}
|
|
2637
|
-
function y(v) {
|
|
2638
|
-
r.value && i(!1);
|
|
2639
|
-
}
|
|
2640
|
-
return { clearButtonClass: d, clearButtonStyle: u, hasShownClearButton: o, onClearValue: f, onMouseEnter: p, onMouseLeave: y, shouldShowClearButton: r };
|
|
2641
|
-
}
|
|
2642
|
-
const Yo = ["moz", "ms", "webkit"];
|
|
2643
|
-
function Zo() {
|
|
2644
|
-
let e = 0;
|
|
2645
|
-
return (n) => {
|
|
2646
|
-
const t = (/* @__PURE__ */ new Date()).getTime(), o = Math.max(0, 16 - (t - e)), r = setTimeout(() => {
|
|
2647
|
-
n(t + o);
|
|
2648
|
-
}, o);
|
|
2649
|
-
return e = t + o, r;
|
|
2650
|
-
};
|
|
2651
|
-
}
|
|
2652
|
-
function Xo() {
|
|
2653
|
-
if (typeof window > "u")
|
|
2654
|
-
return () => 0;
|
|
2655
|
-
if (window.requestAnimationFrame)
|
|
2656
|
-
return window.requestAnimationFrame.bind(window);
|
|
2657
|
-
const e = Yo.filter((n) => `${n}RequestAnimationFrame` in window)[0];
|
|
2658
|
-
return e ? window[`${e}RequestAnimationFrame`] : Zo();
|
|
2659
|
-
}
|
|
2660
|
-
Xo();
|
|
2661
|
-
function tt(e, n) {
|
|
2662
|
-
const t = m(e.groupText), o = x(() => e.showButtonWhenDisabled && (e.readonly || e.disabled)), r = x(() => e.enableClear || !!e.groupText);
|
|
2663
|
-
return { appendedButtonClass: x(() => ({
|
|
2491
|
+
}, ze = J(Se, Wo, Lo, jo);
|
|
2492
|
+
function Ye(e, n) {
|
|
2493
|
+
const t = b(e.groupText), o = E(() => e.showButtonWhenDisabled && (e.readonly || e.disabled)), r = E(() => e.enableClear || !!e.groupText);
|
|
2494
|
+
return { appendedButtonClass: E(() => ({
|
|
2664
2495
|
"input-group-append": !0,
|
|
2665
2496
|
"append-force-show": o.value
|
|
2666
2497
|
})), appendedContent: t, shouldShowAppendedButton: r };
|
|
2667
2498
|
}
|
|
2668
|
-
function
|
|
2669
|
-
const { appendedContent: r } = o, a =
|
|
2499
|
+
function Ze(e, n, t, o) {
|
|
2500
|
+
const { appendedContent: r } = o, a = b(e.enableViewPassword), i = E(() => e.type === "password"), s = '<span class="f-icon f-icon-eye" style="color: rgb(56, 143, 255);"></span>', d = '<span class="f-icon f-icon-eye"></span>', l = b(!1);
|
|
2670
2501
|
O(() => [e.readonly, e.disabled], ([f, p]) => {
|
|
2671
|
-
|
|
2502
|
+
i.value && (t.value = f || p ? "password" : t.value, r.value = f || p ? d : r.value);
|
|
2672
2503
|
});
|
|
2673
|
-
function
|
|
2674
|
-
return
|
|
2504
|
+
function c() {
|
|
2505
|
+
return l.value = !l.value, t.value = l.value ? "text" : "password", r.value = l.value ? s : d, !1;
|
|
2675
2506
|
}
|
|
2676
2507
|
function u() {
|
|
2677
|
-
t.value =
|
|
2508
|
+
t.value = i.value ? "password" : "text", r.value = i.value ? a.value ? d : "" : r.value;
|
|
2678
2509
|
}
|
|
2679
|
-
return u(), { isPassword:
|
|
2510
|
+
return u(), { isPassword: i, onClickAppendedButton: c };
|
|
2680
2511
|
}
|
|
2681
|
-
function
|
|
2682
|
-
const o =
|
|
2512
|
+
function Xe(e, n, t) {
|
|
2513
|
+
const o = b(), {
|
|
2683
2514
|
onBlurTextBox: r,
|
|
2684
2515
|
onFocusTextBox: a,
|
|
2685
|
-
onInput:
|
|
2516
|
+
onInput: i,
|
|
2686
2517
|
onKeyDown: s,
|
|
2687
|
-
textBoxValue:
|
|
2688
|
-
} = t,
|
|
2518
|
+
textBoxValue: d
|
|
2519
|
+
} = t, l = E(() => e.disabled || e.readonly || !e.editable ? "" : e.placeholder), c = E(() => ({
|
|
2689
2520
|
"form-control": !0,
|
|
2690
2521
|
"f-utils-fill": !0
|
|
2691
|
-
})), u =
|
|
2522
|
+
})), u = E(() => ({
|
|
2692
2523
|
"text-align": e.textAlign
|
|
2693
2524
|
}));
|
|
2694
2525
|
function f(v) {
|
|
@@ -2698,392 +2529,293 @@ function ot(e, n, t) {
|
|
|
2698
2529
|
e.selectOnCreated, e.focusOnCreated;
|
|
2699
2530
|
}
|
|
2700
2531
|
async function y(v) {
|
|
2701
|
-
a(v), await
|
|
2532
|
+
a(v), await te, p();
|
|
2702
2533
|
}
|
|
2703
|
-
return
|
|
2704
|
-
await
|
|
2705
|
-
}), () =>
|
|
2534
|
+
return U(async () => {
|
|
2535
|
+
await te, p();
|
|
2536
|
+
}), () => C("input", {
|
|
2706
2537
|
ref: o,
|
|
2707
|
-
class:
|
|
2538
|
+
class: c.value,
|
|
2708
2539
|
style: u.value,
|
|
2709
2540
|
type: "text",
|
|
2710
|
-
value:
|
|
2541
|
+
value: d.value,
|
|
2711
2542
|
disabled: e.disabled,
|
|
2712
2543
|
readonly: e.readonly || !e.editable,
|
|
2713
|
-
placeholder:
|
|
2544
|
+
placeholder: l.value,
|
|
2714
2545
|
onBlur: r,
|
|
2715
2546
|
onChange: f,
|
|
2716
2547
|
onFocus: y,
|
|
2717
|
-
onInput:
|
|
2548
|
+
onInput: i,
|
|
2718
2549
|
onKeydown: s
|
|
2719
2550
|
}, null);
|
|
2720
2551
|
}
|
|
2721
|
-
function
|
|
2552
|
+
function Ce(e, n, t) {
|
|
2722
2553
|
const {
|
|
2723
2554
|
canDownward: o,
|
|
2724
2555
|
canUpward: r,
|
|
2725
2556
|
onClickDownButton: a,
|
|
2726
|
-
onClickUpButton:
|
|
2727
|
-
} = t, s =
|
|
2557
|
+
onClickUpButton: i
|
|
2558
|
+
} = t, s = E(() => ({
|
|
2728
2559
|
"input-group-append": !0,
|
|
2729
2560
|
"btn-group": !0,
|
|
2730
2561
|
"btn-group-number": !0
|
|
2731
|
-
})),
|
|
2562
|
+
})), d = E(() => ({
|
|
2732
2563
|
btn: !0,
|
|
2733
2564
|
"btn-secondary": !0,
|
|
2734
2565
|
"btn-number-flag": !0
|
|
2735
|
-
})),
|
|
2566
|
+
})), l = E(() => ({
|
|
2736
2567
|
cursor: r() ? "pointer" : "not-allowed",
|
|
2737
2568
|
"margin-left": 0
|
|
2738
|
-
})),
|
|
2569
|
+
})), c = E(() => ({
|
|
2739
2570
|
cursor: o() ? "pointer" : "not-allowed",
|
|
2740
2571
|
"margin-left": 0
|
|
2741
2572
|
}));
|
|
2742
|
-
return () =>
|
|
2573
|
+
return () => C("div", {
|
|
2743
2574
|
class: s.value
|
|
2744
|
-
}, [
|
|
2575
|
+
}, [C("button", {
|
|
2745
2576
|
title: "upButton",
|
|
2746
|
-
class:
|
|
2747
|
-
style:
|
|
2748
|
-
onClick:
|
|
2577
|
+
class: d.value,
|
|
2578
|
+
style: l.value,
|
|
2579
|
+
onClick: i,
|
|
2749
2580
|
disabled: !r()
|
|
2750
|
-
}, [
|
|
2581
|
+
}, [C("span", {
|
|
2751
2582
|
class: "f-icon f-icon-arrow-chevron-up number-arrow-chevron"
|
|
2752
|
-
}, null)]),
|
|
2583
|
+
}, null)]), C("button", {
|
|
2753
2584
|
title: "downButton",
|
|
2754
|
-
class:
|
|
2755
|
-
style:
|
|
2585
|
+
class: d.value,
|
|
2586
|
+
style: c.value,
|
|
2756
2587
|
onClick: a,
|
|
2757
2588
|
disabled: !o()
|
|
2758
|
-
}, [
|
|
2589
|
+
}, [C("span", {
|
|
2759
2590
|
class: "f-icon f-icon-arrow-chevron-down number-arrow-chevron"
|
|
2760
2591
|
}, null)])]);
|
|
2761
2592
|
}
|
|
2762
|
-
function
|
|
2763
|
-
const t = vn(e, n), o = mn(e, n, t), r = hn(e, n, o, t), a = bn(e, n, o, t, r),
|
|
2593
|
+
function zo(e, n) {
|
|
2594
|
+
const t = vn(e, n), o = mn(e, n, t), r = hn(e, n, o, t), a = bn(e, n, o, t, r), i = Ce(e, n, r), {
|
|
2764
2595
|
displayValue: s,
|
|
2765
|
-
modelValue:
|
|
2766
|
-
getRealValue:
|
|
2767
|
-
} = t,
|
|
2596
|
+
modelValue: d,
|
|
2597
|
+
getRealValue: l
|
|
2598
|
+
} = t, c = Xe(e, n, a), {
|
|
2768
2599
|
format: u
|
|
2769
2600
|
} = o, {
|
|
2770
2601
|
isFocus: f
|
|
2771
|
-
} = a, p =
|
|
2772
|
-
return
|
|
2773
|
-
const y =
|
|
2602
|
+
} = a, p = E(() => !e.disabled && !e.readonly);
|
|
2603
|
+
return U(() => {
|
|
2604
|
+
const y = l(e.modelValue);
|
|
2774
2605
|
s.value = u(y);
|
|
2775
2606
|
}), O(() => [e.value], ([y]) => {
|
|
2776
|
-
const v =
|
|
2777
|
-
|
|
2607
|
+
const v = l(y);
|
|
2608
|
+
d.value = v, s.value = u(v);
|
|
2778
2609
|
}), O(() => [e.modelValue], ([y]) => {
|
|
2779
|
-
y !==
|
|
2610
|
+
y !== d.value && (d.value = y, !f.value && (s.value = u(l(y))));
|
|
2780
2611
|
}), O(() => [e.precision, e.useThousands, e.prefix, e.suffix, e.showZero], () => {
|
|
2781
|
-
s.value = u(
|
|
2782
|
-
}), () =>
|
|
2612
|
+
s.value = u(d.value);
|
|
2613
|
+
}), () => C("div", {
|
|
2783
2614
|
class: "input-group f-state-hover flex-row f-cmp-number-spinner"
|
|
2784
|
-
}, [
|
|
2615
|
+
}, [c(), p.value && i()]);
|
|
2785
2616
|
}
|
|
2786
|
-
function
|
|
2787
|
-
const r =
|
|
2617
|
+
function Yo(e, n, t, o) {
|
|
2618
|
+
const r = b(), a = b(e.autocomplete), i = b(e.enableTitle), {
|
|
2788
2619
|
isPassword: s
|
|
2789
|
-
} = t,
|
|
2620
|
+
} = t, d = b(e.minLength), l = b(e.maxLength), c = b(e.tabIndex), {
|
|
2790
2621
|
disabled: u,
|
|
2791
2622
|
displayText: f,
|
|
2792
2623
|
inputType: p,
|
|
2793
2624
|
onBlur: y,
|
|
2794
2625
|
onFocus: v,
|
|
2795
|
-
onInput:
|
|
2796
|
-
onClick:
|
|
2626
|
+
onInput: m,
|
|
2627
|
+
onClick: S,
|
|
2797
2628
|
onKeydown: V,
|
|
2798
|
-
onKeyup:
|
|
2629
|
+
onKeyup: k,
|
|
2799
2630
|
onMousedown: w,
|
|
2800
|
-
onTextBoxValueChange:
|
|
2801
|
-
readonly:
|
|
2802
|
-
placeholder:
|
|
2803
|
-
textBoxClass:
|
|
2804
|
-
textBoxTitle:
|
|
2631
|
+
onTextBoxValueChange: g,
|
|
2632
|
+
readonly: x,
|
|
2633
|
+
placeholder: T,
|
|
2634
|
+
textBoxClass: M,
|
|
2635
|
+
textBoxTitle: R
|
|
2805
2636
|
} = o;
|
|
2806
|
-
return
|
|
2637
|
+
return U(() => {
|
|
2807
2638
|
e.selectOnCreated, e.focusOnCreated;
|
|
2808
|
-
}), () =>
|
|
2639
|
+
}), () => C("input", {
|
|
2809
2640
|
ref: r,
|
|
2810
2641
|
name: "input-group-value",
|
|
2811
2642
|
autocomplete: a.value,
|
|
2812
|
-
class:
|
|
2643
|
+
class: M.value,
|
|
2813
2644
|
disabled: u == null ? void 0 : u.value,
|
|
2814
|
-
maxlength:
|
|
2815
|
-
minlength:
|
|
2816
|
-
placeholder:
|
|
2817
|
-
readonly:
|
|
2818
|
-
tabindex:
|
|
2819
|
-
title:
|
|
2645
|
+
maxlength: l.value,
|
|
2646
|
+
minlength: d.value,
|
|
2647
|
+
placeholder: T.value,
|
|
2648
|
+
readonly: x == null ? void 0 : x.value,
|
|
2649
|
+
tabindex: c.value,
|
|
2650
|
+
title: i.value && !s.value ? R.value : "",
|
|
2820
2651
|
type: p.value,
|
|
2821
2652
|
value: f == null ? void 0 : f.value,
|
|
2822
2653
|
onBlur: y,
|
|
2823
|
-
onClick:
|
|
2824
|
-
onChange:
|
|
2654
|
+
onClick: S,
|
|
2655
|
+
onChange: g,
|
|
2825
2656
|
onFocus: v,
|
|
2826
|
-
onInput:
|
|
2657
|
+
onInput: m,
|
|
2827
2658
|
onKeydown: V,
|
|
2828
|
-
onKeyup:
|
|
2659
|
+
onKeyup: k,
|
|
2829
2660
|
onMousedown: w
|
|
2830
2661
|
}, null);
|
|
2831
2662
|
}
|
|
2832
|
-
function
|
|
2833
|
-
const t =
|
|
2663
|
+
function Zo(e, n) {
|
|
2664
|
+
const t = E(() => e.useExtendInfo && !!e.extendInfo), o = un({
|
|
2834
2665
|
content: e.extendInfo
|
|
2835
2666
|
});
|
|
2836
2667
|
function r() {
|
|
2837
2668
|
n.emit("updateExtendInfo");
|
|
2838
2669
|
}
|
|
2839
|
-
return () => t.value &&
|
|
2670
|
+
return () => t.value && de(C("span", {
|
|
2840
2671
|
class: "input-group-before-tips",
|
|
2841
2672
|
onMouseenter: r
|
|
2842
|
-
}, [
|
|
2673
|
+
}, [C("i", {
|
|
2843
2674
|
class: "f-icon f-icon-info-circle"
|
|
2844
|
-
}, null),
|
|
2675
|
+
}, null), C("b", {
|
|
2845
2676
|
class: "tips-arrow"
|
|
2846
|
-
}, null)]), [[
|
|
2677
|
+
}, null)]), [[sn("tooltip"), o]]);
|
|
2847
2678
|
}
|
|
2848
|
-
function
|
|
2679
|
+
function Je(e, n, t, o, r) {
|
|
2849
2680
|
const {
|
|
2850
2681
|
appendedButtonClass: a,
|
|
2851
|
-
appendedContent:
|
|
2852
|
-
} = t, s =
|
|
2853
|
-
clearButtonClass:
|
|
2682
|
+
appendedContent: i
|
|
2683
|
+
} = t, s = E(() => e.showButtonWhenDisabled && (!e.editable || !e.readonly) && !e.disabled), d = E(() => i.value && !n.slots.groupTextTemplate), l = E(() => !!n.slots.groupTextTemplate), {
|
|
2684
|
+
clearButtonClass: c,
|
|
2854
2685
|
clearButtonStyle: u,
|
|
2855
2686
|
onClearValue: f,
|
|
2856
2687
|
shouldShowClearButton: p
|
|
2857
2688
|
} = o;
|
|
2858
2689
|
function y() {
|
|
2859
|
-
return
|
|
2690
|
+
return C("span", {
|
|
2860
2691
|
id: "clearIcon",
|
|
2861
|
-
class:
|
|
2692
|
+
class: c.value,
|
|
2862
2693
|
style: u.value,
|
|
2863
|
-
onClick: (
|
|
2864
|
-
}, [
|
|
2694
|
+
onClick: (T) => f(T)
|
|
2695
|
+
}, [C("i", {
|
|
2865
2696
|
class: "f-icon modal_close"
|
|
2866
2697
|
}, null)]);
|
|
2867
2698
|
}
|
|
2868
|
-
function v(
|
|
2869
|
-
n.emit("iconMouseEnter",
|
|
2699
|
+
function v(T) {
|
|
2700
|
+
n.emit("iconMouseEnter", T);
|
|
2870
2701
|
}
|
|
2871
|
-
function
|
|
2872
|
-
n.emit("iconMouseLeave",
|
|
2702
|
+
function m(T) {
|
|
2703
|
+
n.emit("iconMouseLeave", T);
|
|
2873
2704
|
}
|
|
2874
|
-
function
|
|
2705
|
+
function S(T) {
|
|
2875
2706
|
s.value && n.emit("clickHandle", {
|
|
2876
|
-
originalEvent:
|
|
2877
|
-
}),
|
|
2707
|
+
originalEvent: T
|
|
2708
|
+
}), T.stopPropagation();
|
|
2878
2709
|
}
|
|
2879
|
-
const V = e.type === "password" ? r.onClickAppendedButton :
|
|
2880
|
-
function
|
|
2881
|
-
return
|
|
2710
|
+
const V = e.type === "password" ? r.onClickAppendedButton : S;
|
|
2711
|
+
function k() {
|
|
2712
|
+
return C("span", {
|
|
2882
2713
|
class: "input-group-text",
|
|
2883
|
-
onMouseenter: (
|
|
2884
|
-
onMouseleave: (
|
|
2885
|
-
innerHTML:
|
|
2886
|
-
onClick: (
|
|
2714
|
+
onMouseenter: (T) => v(T),
|
|
2715
|
+
onMouseleave: (T) => m(T),
|
|
2716
|
+
innerHTML: i.value,
|
|
2717
|
+
onClick: (T) => V(T)
|
|
2887
2718
|
}, null);
|
|
2888
2719
|
}
|
|
2889
2720
|
function w() {
|
|
2890
2721
|
return n.slots.groupTextTemplate && n.slots.groupTextTemplate();
|
|
2891
2722
|
}
|
|
2892
|
-
function
|
|
2893
|
-
return
|
|
2723
|
+
function g() {
|
|
2724
|
+
return d.value ? k : l.value ? w : "";
|
|
2894
2725
|
}
|
|
2895
|
-
const
|
|
2896
|
-
return () =>
|
|
2726
|
+
const x = g();
|
|
2727
|
+
return () => C("div", {
|
|
2897
2728
|
class: a.value
|
|
2898
|
-
}, [p.value && y(),
|
|
2729
|
+
}, [p.value && y(), x && x()]);
|
|
2899
2730
|
}
|
|
2900
|
-
const
|
|
2731
|
+
const Z = /* @__PURE__ */ D({
|
|
2901
2732
|
name: "FInputGroup",
|
|
2902
|
-
props:
|
|
2733
|
+
props: Se,
|
|
2903
2734
|
emits: ["clear", "change", "blur", "click", "clickHandle", "focus", "input", "keydown", "keyup", "iconMouseEnter", "iconMouseLeave", "update:modelValue", "update:value", "updateExtendInfo", "valueChange"],
|
|
2904
2735
|
setup(e, n) {
|
|
2905
|
-
const t =
|
|
2736
|
+
const t = b(e.modelValue), o = b(e.modelValue), r = fn(e, n, t, o), {
|
|
2906
2737
|
inputGroupClass: a,
|
|
2907
|
-
inputType:
|
|
2738
|
+
inputType: i,
|
|
2908
2739
|
inputGroupStyle: s
|
|
2909
|
-
} = r,
|
|
2910
|
-
shouldShowAppendedButton:
|
|
2911
|
-
} =
|
|
2740
|
+
} = r, d = Ye(e), {
|
|
2741
|
+
shouldShowAppendedButton: l
|
|
2742
|
+
} = d, c = De(e, n, r), {
|
|
2912
2743
|
onMouseEnter: u,
|
|
2913
2744
|
onMouseLeave: f
|
|
2914
|
-
} =
|
|
2745
|
+
} = c, p = Ze(e, n, i, d), y = zo(e, n), v = Yo(e, n, p, r), m = Je(e, n, d, c, p), S = Zo(e, n), V = E(() => e.type === "number");
|
|
2915
2746
|
O(() => [e.value], ([w]) => {
|
|
2916
2747
|
t.value = w, o.value = w;
|
|
2917
2748
|
}), O(() => [e.modelValue], ([w]) => {
|
|
2918
2749
|
t.value = w, o.value = w;
|
|
2919
|
-
}),
|
|
2750
|
+
}), U(() => {
|
|
2920
2751
|
e.value && (t.value = e.value, o.value = e.value);
|
|
2921
2752
|
});
|
|
2922
|
-
const
|
|
2753
|
+
const k = () => C(pe, null, [C("div", {
|
|
2923
2754
|
id: e.id,
|
|
2924
2755
|
class: a.value,
|
|
2925
2756
|
style: s.value,
|
|
2926
2757
|
onMouseenter: u,
|
|
2927
2758
|
onMouseleave: f
|
|
2928
|
-
}, [V.value ? y() :
|
|
2929
|
-
return () =>
|
|
2759
|
+
}, [V.value ? y() : C(pe, null, [S(), v(), l.value && m()])])]);
|
|
2760
|
+
return () => k();
|
|
2930
2761
|
}
|
|
2931
2762
|
});
|
|
2932
|
-
class
|
|
2763
|
+
class Xo extends ge {
|
|
2933
2764
|
constructor(n, t) {
|
|
2934
2765
|
super(n, t);
|
|
2935
2766
|
}
|
|
2936
2767
|
}
|
|
2937
|
-
function
|
|
2938
|
-
const
|
|
2939
|
-
|
|
2940
|
-
|
|
2941
|
-
checkCanMoveComponent: r,
|
|
2942
|
-
hideNestedPaddingInDesginerView: a,
|
|
2943
|
-
onAcceptMovedChildElement: l,
|
|
2944
|
-
resolveComponentContext: s,
|
|
2945
|
-
triggerBelongedComponentToMoveWhenMoved: c,
|
|
2946
|
-
triggerBelongedComponentToDeleteWhenDeleted: i
|
|
2947
|
-
} = xe(e), d = e.schema;
|
|
2948
|
-
function u(f, p) {
|
|
2949
|
-
return new er(f, n).getPropertyConfig(d, p);
|
|
2950
|
-
}
|
|
2951
|
-
return {
|
|
2952
|
-
canAccepts: t,
|
|
2953
|
-
checkCanDeleteComponent: o,
|
|
2954
|
-
checkCanMoveComponent: r,
|
|
2955
|
-
hideNestedPaddingInDesginerView: a,
|
|
2956
|
-
onAcceptMovedChildElement: l,
|
|
2957
|
-
resolveComponentContext: s,
|
|
2958
|
-
triggerBelongedComponentToMoveWhenMoved: c,
|
|
2959
|
-
triggerBelongedComponentToDeleteWhenDeleted: i,
|
|
2960
|
-
getPropsConfig: u
|
|
2961
|
-
};
|
|
2962
|
-
}
|
|
2963
|
-
function at(e, n, t) {
|
|
2964
|
-
var w;
|
|
2965
|
-
function o() {
|
|
2966
|
-
t != null && t.resolveComponentContext && t.resolveComponentContext();
|
|
2967
|
-
}
|
|
2968
|
-
o();
|
|
2969
|
-
const r = t && t.getStyles && t.getStyles() || "", a = t && t.getDesignerClass && t.getDesignerClass() || "", l = m();
|
|
2970
|
-
function s() {
|
|
2971
|
-
return (n == null ? void 0 : n.schema.componentType) === "frame" ? !1 : t && t.checkCanMoveComponent ? t.checkCanMoveComponent() : !0;
|
|
2972
|
-
}
|
|
2973
|
-
function c() {
|
|
2974
|
-
return !1;
|
|
2975
|
-
}
|
|
2976
|
-
function i() {
|
|
2977
|
-
return (n == null ? void 0 : n.schema.componentType) === "frame" ? !1 : t && t.checkCanDeleteComponent ? t.checkCanDeleteComponent() : !0;
|
|
2978
|
-
}
|
|
2979
|
-
function d() {
|
|
2980
|
-
return (n == null ? void 0 : n.schema.componentType) === "frame" ? !0 : t && t.hideNestedPaddingInDesginerView ? t.hideNestedPaddingInDesginerView() : !1;
|
|
2981
|
-
}
|
|
2982
|
-
function u(C) {
|
|
2983
|
-
if (!C || !C.value)
|
|
2984
|
-
return null;
|
|
2985
|
-
if (C.value.schema && C.value.schema.type === "component")
|
|
2986
|
-
return C.value;
|
|
2987
|
-
const T = m(C == null ? void 0 : C.value.parent), k = u(T);
|
|
2988
|
-
return k || null;
|
|
2989
|
-
}
|
|
2990
|
-
function f(C = n) {
|
|
2991
|
-
const { componentInstance: T, designerItemElementRef: k } = C;
|
|
2992
|
-
return !T || !T.value ? null : T.value.canMove ? k : f(C.parent);
|
|
2993
|
-
}
|
|
2994
|
-
function p(C) {
|
|
2995
|
-
return !!t && t.canAccepts(C);
|
|
2996
|
-
}
|
|
2997
|
-
function y() {
|
|
2998
|
-
return (n == null ? void 0 : n.schema.label) || (n == null ? void 0 : n.schema.title) || (n == null ? void 0 : n.schema.name);
|
|
2999
|
-
}
|
|
3000
|
-
function v() {
|
|
3001
|
-
}
|
|
3002
|
-
function h(C, T) {
|
|
3003
|
-
T && t != null && t.onAcceptMovedChildElement && t.onAcceptMovedChildElement(T);
|
|
3004
|
-
}
|
|
3005
|
-
function g(C, T) {
|
|
3006
|
-
const { componentType: k } = C;
|
|
3007
|
-
let P = Ye(k, C, T);
|
|
3008
|
-
t && t.onResolveNewComponentSchema && (P = t.onResolveNewComponentSchema(C, P));
|
|
3009
|
-
const U = k.toLowerCase().replace("-", "_");
|
|
3010
|
-
return P && !P.id && P.type === k && (P.id = `${U}_${Math.random().toString().slice(2, 6)}`), P;
|
|
3011
|
-
}
|
|
3012
|
-
function V(C) {
|
|
3013
|
-
}
|
|
3014
|
-
function E(...C) {
|
|
3015
|
-
if (t && t.getPropsConfig)
|
|
3016
|
-
return t.getPropsConfig(...C);
|
|
2768
|
+
function Jo(e, n) {
|
|
2769
|
+
const t = e.schema;
|
|
2770
|
+
function o(r, a) {
|
|
2771
|
+
return new Xo(r, n).getPropertyConfig(t, a);
|
|
3017
2772
|
}
|
|
3018
|
-
return
|
|
3019
|
-
canMove: s(),
|
|
3020
|
-
canSelectParent: c(),
|
|
3021
|
-
canDelete: i(),
|
|
3022
|
-
canNested: !d(),
|
|
3023
|
-
contents: n == null ? void 0 : n.schema.contents,
|
|
3024
|
-
elementRef: e,
|
|
3025
|
-
parent: (w = n == null ? void 0 : n.parent) == null ? void 0 : w.componentInstance,
|
|
3026
|
-
schema: n == null ? void 0 : n.schema,
|
|
3027
|
-
styles: r,
|
|
3028
|
-
designerClass: a,
|
|
3029
|
-
canAccepts: p,
|
|
3030
|
-
getBelongedComponentInstance: u,
|
|
3031
|
-
getDraggableDesignItemElement: f,
|
|
3032
|
-
getDraggingDisplayText: y,
|
|
3033
|
-
getPropConfig: E,
|
|
3034
|
-
getDragScopeElement: v,
|
|
3035
|
-
onAcceptMovedChildElement: h,
|
|
3036
|
-
onChildElementMovedOut: V,
|
|
3037
|
-
addNewChildComponentSchema: g,
|
|
3038
|
-
updateDragAndDropRules: o,
|
|
3039
|
-
triggerBelongedComponentToMoveWhenMoved: !!t && t.triggerBelongedComponentToMoveWhenMoved || m(!1),
|
|
3040
|
-
triggerBelongedComponentToDeleteWhenDeleted: !!t && t.triggerBelongedComponentToDeleteWhenDeleted || m(!1)
|
|
3041
|
-
}, l;
|
|
2773
|
+
return { getPropsConfig: o };
|
|
3042
2774
|
}
|
|
3043
|
-
const
|
|
2775
|
+
const Qo = /* @__PURE__ */ D({
|
|
3044
2776
|
name: "FInputGroupDesign",
|
|
3045
|
-
props:
|
|
2777
|
+
props: Se,
|
|
3046
2778
|
emits: ["updateExtendInfo", "clear", "valueChange", "clickHandle", "blurHandle", "focusHandle", "enterHandle", "iconMouseEnter", "iconMouseLeave", "keyupHandle", "keydownHandle", "inputClick"],
|
|
3047
2779
|
setup(e, n) {
|
|
3048
|
-
const t =
|
|
2780
|
+
const t = b(e.modelValue), o = b(e.modelValue), r = yn(e, n, t, o), {
|
|
3049
2781
|
inputGroupClass: a,
|
|
3050
|
-
inputType:
|
|
2782
|
+
inputType: i,
|
|
3051
2783
|
inputGroupStyle: s
|
|
3052
|
-
} = r,
|
|
3053
|
-
shouldShowAppendedButton:
|
|
3054
|
-
} =
|
|
2784
|
+
} = r, d = Ye(e), {
|
|
2785
|
+
shouldShowAppendedButton: l
|
|
2786
|
+
} = d, c = De(e, n, r), {
|
|
3055
2787
|
onMouseEnter: u,
|
|
3056
2788
|
onMouseLeave: f
|
|
3057
|
-
} =
|
|
3058
|
-
|
|
2789
|
+
} = c, p = Ze(e, n, i, d), y = b(), v = _("designer-host-service"), m = _("design-item-context"), S = Jo(m, v), V = ve(y, m, S);
|
|
2790
|
+
U(() => {
|
|
3059
2791
|
y.value.componentInstance = V;
|
|
3060
2792
|
}), n.expose(V.value);
|
|
3061
|
-
const
|
|
3062
|
-
return () =>
|
|
2793
|
+
const k = Je(e, n, d, c, p), w = b();
|
|
2794
|
+
return () => C("div", {
|
|
3063
2795
|
id: "inputGroup",
|
|
3064
2796
|
ref: y,
|
|
3065
2797
|
class: a.value,
|
|
3066
2798
|
style: s.value,
|
|
3067
2799
|
onMouseenter: u,
|
|
3068
2800
|
onMouseleave: f
|
|
3069
|
-
}, [
|
|
2801
|
+
}, [C("input", {
|
|
3070
2802
|
ref: w,
|
|
3071
2803
|
class: "form-control",
|
|
3072
2804
|
readonly: !0,
|
|
3073
2805
|
placeholder: e.placeholder
|
|
3074
|
-
}, null),
|
|
2806
|
+
}, null), l.value && k()]);
|
|
3075
2807
|
}
|
|
3076
2808
|
});
|
|
3077
|
-
|
|
3078
|
-
e["input-group"] =
|
|
2809
|
+
Z.register = (e, n, t, o) => {
|
|
2810
|
+
e["input-group"] = Z, n["input-group"] = ze;
|
|
3079
2811
|
};
|
|
3080
|
-
|
|
3081
|
-
e["input-group"] =
|
|
2812
|
+
Z.registerDesigner = (e, n, t) => {
|
|
2813
|
+
e["input-group"] = Qo, n["input-group"] = ze;
|
|
3082
2814
|
};
|
|
3083
|
-
|
|
3084
|
-
const
|
|
3085
|
-
["appearance",
|
|
3086
|
-
]),
|
|
2815
|
+
me(Z);
|
|
2816
|
+
const Ko = /* @__PURE__ */ new Map([
|
|
2817
|
+
["appearance", ie]
|
|
2818
|
+
]), er = "https://json-schema.org/draft/2020-12/schema", tr = "https://farris-design.gitee.io/number-spinner.schema.json", nr = "number-spinner", or = "A Farris Input Component", rr = "object", ar = {
|
|
3087
2819
|
id: {
|
|
3088
2820
|
description: "The unique identifier for a number spinner",
|
|
3089
2821
|
type: "string"
|
|
@@ -3116,20 +2848,6 @@ const or = /* @__PURE__ */ new Map([
|
|
|
3116
2848
|
type: "boolean",
|
|
3117
2849
|
default: !0
|
|
3118
2850
|
},
|
|
3119
|
-
enableLinkLabel: {
|
|
3120
|
-
description: "",
|
|
3121
|
-
type: "boolean",
|
|
3122
|
-
default: !1
|
|
3123
|
-
},
|
|
3124
|
-
label: {
|
|
3125
|
-
description: "",
|
|
3126
|
-
type: "string",
|
|
3127
|
-
default: ""
|
|
3128
|
-
},
|
|
3129
|
-
lableWidth: {
|
|
3130
|
-
description: "",
|
|
3131
|
-
type: "number"
|
|
3132
|
-
},
|
|
3133
2851
|
placeholder: {
|
|
3134
2852
|
description: "",
|
|
3135
2853
|
type: "string",
|
|
@@ -3150,6 +2868,20 @@ const or = /* @__PURE__ */ new Map([
|
|
|
3150
2868
|
type: "boolean",
|
|
3151
2869
|
default: !1
|
|
3152
2870
|
},
|
|
2871
|
+
precision: {
|
|
2872
|
+
description: "",
|
|
2873
|
+
type: "number",
|
|
2874
|
+
default: 0
|
|
2875
|
+
},
|
|
2876
|
+
min: {
|
|
2877
|
+
description: "",
|
|
2878
|
+
type: "number"
|
|
2879
|
+
},
|
|
2880
|
+
step: {
|
|
2881
|
+
description: "",
|
|
2882
|
+
type: "number",
|
|
2883
|
+
default: 1
|
|
2884
|
+
},
|
|
3153
2885
|
tabindex: {
|
|
3154
2886
|
description: "",
|
|
3155
2887
|
type: "number",
|
|
@@ -3184,27 +2916,28 @@ const or = /* @__PURE__ */ new Map([
|
|
|
3184
2916
|
type: "sting",
|
|
3185
2917
|
default: ""
|
|
3186
2918
|
}
|
|
3187
|
-
},
|
|
2919
|
+
}, ir = [
|
|
3188
2920
|
"id",
|
|
3189
2921
|
"type"
|
|
3190
|
-
],
|
|
2922
|
+
], lr = [
|
|
3191
2923
|
"id",
|
|
3192
2924
|
"appearance",
|
|
3193
|
-
"binding"
|
|
3194
|
-
|
|
3195
|
-
|
|
3196
|
-
$
|
|
3197
|
-
|
|
3198
|
-
|
|
3199
|
-
|
|
3200
|
-
|
|
3201
|
-
|
|
3202
|
-
|
|
2925
|
+
"binding",
|
|
2926
|
+
"visible"
|
|
2927
|
+
], ur = {
|
|
2928
|
+
$schema: er,
|
|
2929
|
+
$id: tr,
|
|
2930
|
+
title: nr,
|
|
2931
|
+
description: or,
|
|
2932
|
+
type: rr,
|
|
2933
|
+
properties: ar,
|
|
2934
|
+
required: ir,
|
|
2935
|
+
ignore: lr
|
|
3203
2936
|
};
|
|
3204
|
-
function
|
|
2937
|
+
function sr(e, n, t) {
|
|
3205
2938
|
return n;
|
|
3206
2939
|
}
|
|
3207
|
-
const
|
|
2940
|
+
const we = {
|
|
3208
2941
|
/**
|
|
3209
2942
|
* 组件标识
|
|
3210
2943
|
*/
|
|
@@ -3308,24 +3041,24 @@ const ke = {
|
|
|
3308
3041
|
* 作为内嵌编辑器被创建后默认选中文本
|
|
3309
3042
|
*/
|
|
3310
3043
|
selectOnCreated: { type: Boolean, default: !1 }
|
|
3311
|
-
},
|
|
3312
|
-
function
|
|
3313
|
-
const { format: r } = t, { displayValue: a, getRealValue:
|
|
3314
|
-
function
|
|
3315
|
-
const
|
|
3316
|
-
return !(e.max && !new
|
|
3044
|
+
}, Qe = J(we, ur, Ko, sr);
|
|
3045
|
+
function Ke(e, n, t, o) {
|
|
3046
|
+
const { format: r } = t, { displayValue: a, getRealValue: i, modelValue: s, onNumberValueChanged: d } = o;
|
|
3047
|
+
function l() {
|
|
3048
|
+
const m = new L(s.value || 0);
|
|
3049
|
+
return !(e.max && !new L(e.max).isNaN() && m.gte(new L(e.max)));
|
|
3317
3050
|
}
|
|
3318
|
-
function
|
|
3319
|
-
const
|
|
3320
|
-
return !(e.min && !new
|
|
3051
|
+
function c() {
|
|
3052
|
+
const m = new L(s.value || 0);
|
|
3053
|
+
return !(e.min && !new L(e.min).isNaN() && m.lte(new L(e.min)));
|
|
3321
3054
|
}
|
|
3322
|
-
function u(
|
|
3055
|
+
function u(m) {
|
|
3323
3056
|
if (e.readonly || e.disabled)
|
|
3324
3057
|
return;
|
|
3325
|
-
const
|
|
3326
|
-
if (
|
|
3327
|
-
const w = new
|
|
3328
|
-
a.value = r(
|
|
3058
|
+
const S = m === "up" ? l : c, V = m === "up" ? "plus" : "minus";
|
|
3059
|
+
if (S()) {
|
|
3060
|
+
const w = new L(s.value || 0)[V](Number(e.step)), g = w.toFixed();
|
|
3061
|
+
a.value = r(g), d(i(w));
|
|
3329
3062
|
}
|
|
3330
3063
|
}
|
|
3331
3064
|
function f() {
|
|
@@ -3334,54 +3067,54 @@ function it(e, n, t, o) {
|
|
|
3334
3067
|
function p() {
|
|
3335
3068
|
u("down");
|
|
3336
3069
|
}
|
|
3337
|
-
function y(
|
|
3338
|
-
f(),
|
|
3070
|
+
function y(m) {
|
|
3071
|
+
f(), m.stopPropagation();
|
|
3339
3072
|
}
|
|
3340
|
-
function v(
|
|
3341
|
-
p(),
|
|
3073
|
+
function v(m) {
|
|
3074
|
+
p(), m.stopPropagation();
|
|
3342
3075
|
}
|
|
3343
|
-
return { canDownward:
|
|
3076
|
+
return { canDownward: c, canUpward: l, downward: p, onClickDownButton: v, onClickUpButton: y, upward: f };
|
|
3344
3077
|
}
|
|
3345
|
-
function
|
|
3346
|
-
const o =
|
|
3078
|
+
function et(e, n, t) {
|
|
3079
|
+
const o = E(() => ({
|
|
3347
3080
|
prefix: e.prefix,
|
|
3348
3081
|
suffix: e.suffix,
|
|
3349
3082
|
decimalSeparator: e.decimalSeparator,
|
|
3350
3083
|
groupSeparator: e.useThousands ? e.groupSeparator : "",
|
|
3351
3084
|
groupSize: e.groupSize
|
|
3352
3085
|
})), { getValidNumberObject: r, precision: a } = t;
|
|
3353
|
-
function l
|
|
3354
|
-
return
|
|
3086
|
+
function i(l) {
|
|
3087
|
+
return l = l == null || l === "" ? "" : String(l), l = l.replace(new RegExp(e.prefix, "g"), "").replace(new RegExp(e.suffix, "g"), "").replace(/,/g, ""), e.groupSeparator && e.groupSeparator !== "," && (l = l.replace(new RegExp(`\\${e.groupSeparator}`, "g"), "")), e.decimalSeparator && e.decimalSeparator !== "." && (l = l.replace(new RegExp(`\\${e.decimalSeparator}`, "g"), ".")), l;
|
|
3355
3088
|
}
|
|
3356
|
-
function s(
|
|
3357
|
-
return e.precision !== null && e.precision !== void 0 ?
|
|
3089
|
+
function s(l, c) {
|
|
3090
|
+
return e.precision !== null && e.precision !== void 0 ? l.toFormat(a.value, c) : l.toFormat(c);
|
|
3358
3091
|
}
|
|
3359
|
-
function
|
|
3360
|
-
const
|
|
3092
|
+
function d(l) {
|
|
3093
|
+
const c = i(l), u = new L(c, 10), f = r(u);
|
|
3361
3094
|
return f.valueOf() === "0" && !e.showZero || f.isNaN() ? "" : e.formatter ? e.formatter(f.toNumber()) : s(f, o.value);
|
|
3362
3095
|
}
|
|
3363
|
-
return { cleanFormat:
|
|
3096
|
+
return { cleanFormat: i, format: d };
|
|
3364
3097
|
}
|
|
3365
|
-
function
|
|
3366
|
-
const t =
|
|
3367
|
-
function a(
|
|
3368
|
-
return
|
|
3098
|
+
function tt(e, n) {
|
|
3099
|
+
const t = b(""), o = b(e.modelValue), r = E(() => Number(e.precision) || 0);
|
|
3100
|
+
function a(c) {
|
|
3101
|
+
return c.toFixed(r.value);
|
|
3369
3102
|
}
|
|
3370
|
-
function
|
|
3371
|
-
return isNaN(
|
|
3103
|
+
function i(c) {
|
|
3104
|
+
return isNaN(c) || c === null || c === void 0 || c === "";
|
|
3372
3105
|
}
|
|
3373
|
-
function s(
|
|
3374
|
-
const u =
|
|
3375
|
-
return u &&
|
|
3106
|
+
function s(c) {
|
|
3107
|
+
const u = i(e.max) ? null : new L(String(e.max), 10), f = i(e.min) ? null : new L(String(e.min), 10);
|
|
3108
|
+
return u && c.gt(u) ? u : f && c.lt(f) ? f : c;
|
|
3376
3109
|
}
|
|
3377
|
-
function c
|
|
3110
|
+
function d(c) {
|
|
3378
3111
|
if (e.parser)
|
|
3379
|
-
return isNaN(Number(
|
|
3380
|
-
let u = s(new
|
|
3112
|
+
return isNaN(Number(c)) ? e.parser(c) : c;
|
|
3113
|
+
let u = s(new L(c, 10));
|
|
3381
3114
|
if (u.isNaN()) {
|
|
3382
3115
|
if (e.canNull)
|
|
3383
3116
|
return null;
|
|
3384
|
-
const p = new
|
|
3117
|
+
const p = new L("" + e.min, 10), y = new L("" + e.max, 10);
|
|
3385
3118
|
if (!p.isNaN())
|
|
3386
3119
|
u = p;
|
|
3387
3120
|
else if (!y.isNaN())
|
|
@@ -3391,74 +3124,185 @@ function st(e, n) {
|
|
|
3391
3124
|
}
|
|
3392
3125
|
return a(u);
|
|
3393
3126
|
}
|
|
3394
|
-
function
|
|
3395
|
-
const u = Number(
|
|
3127
|
+
function l(c) {
|
|
3128
|
+
const u = Number(c);
|
|
3396
3129
|
o.value = u, n.emit("update:modelValue", u), n.emit("valueChange", u), n.emit("change", u);
|
|
3397
3130
|
}
|
|
3398
|
-
return { displayValue: t, getRealValue:
|
|
3131
|
+
return { displayValue: t, getRealValue: d, modelValue: o, isEmpty: i, onNumberValueChanged: l, precision: r, getValidNumberObject: s };
|
|
3399
3132
|
}
|
|
3400
|
-
function
|
|
3401
|
-
const { cleanFormat: a, format:
|
|
3402
|
-
function
|
|
3403
|
-
var
|
|
3133
|
+
function cr(e, n, t, o, r) {
|
|
3134
|
+
const { cleanFormat: a, format: i } = t, { displayValue: s, getRealValue: d, modelValue: l, isEmpty: c, onNumberValueChanged: u } = o, { downward: f, upward: p } = r, y = b(!1), v = E(() => s.value);
|
|
3135
|
+
function m(w) {
|
|
3136
|
+
var T;
|
|
3404
3137
|
if (w.stopPropagation(), y.value = !1, e.readonly || e.disabled)
|
|
3405
3138
|
return;
|
|
3406
|
-
let
|
|
3407
|
-
e.canNull || (
|
|
3408
|
-
const
|
|
3409
|
-
s.value =
|
|
3139
|
+
let g = (T = w.target) == null ? void 0 : T.value;
|
|
3140
|
+
e.canNull || (g = g || 0);
|
|
3141
|
+
const x = a(g);
|
|
3142
|
+
s.value = i(x), u(d(x)), n.emit("blur", { event: w, formatted: s.value, value: l.value });
|
|
3410
3143
|
}
|
|
3411
|
-
function
|
|
3412
|
-
w.stopPropagation(), y.value = !0, !(e.readonly || e.disabled) && (s.value =
|
|
3144
|
+
function S(w) {
|
|
3145
|
+
w.stopPropagation(), y.value = !0, !(e.readonly || e.disabled) && (s.value = c(l.value) || !e.showZero && l.value === "0" ? "" : String(l.value), n.emit("focus", { event: w, formatted: s.value, value: l.value }));
|
|
3413
3146
|
}
|
|
3414
3147
|
function V(w) {
|
|
3415
|
-
var
|
|
3148
|
+
var T;
|
|
3416
3149
|
w.stopPropagation();
|
|
3417
|
-
let
|
|
3418
|
-
e.canNull || (
|
|
3419
|
-
const
|
|
3420
|
-
s.value =
|
|
3150
|
+
let g = (T = w.target) == null ? void 0 : T.value;
|
|
3151
|
+
e.canNull || (g = g || 0);
|
|
3152
|
+
const x = a(g);
|
|
3153
|
+
s.value = x, u(d(x));
|
|
3421
3154
|
}
|
|
3422
|
-
function
|
|
3155
|
+
function k(w) {
|
|
3423
3156
|
w.key === "ArrowDown" && (w.preventDefault(), f()), w.key === "ArrowUp" && (w.preventDefault(), p()), w.stopPropagation();
|
|
3424
3157
|
}
|
|
3425
|
-
return { textBoxValue: v, onBlurTextBox:
|
|
3158
|
+
return { textBoxValue: v, onBlurTextBox: m, onFocusTextBox: S, onInput: V, onKeyDown: k, isFocus: y };
|
|
3426
3159
|
}
|
|
3427
|
-
const
|
|
3160
|
+
const X = /* @__PURE__ */ D({
|
|
3428
3161
|
name: "FNumberSpinner",
|
|
3429
|
-
props:
|
|
3162
|
+
props: we,
|
|
3430
3163
|
emits: ["update:modelValue", "valueChange", "change", "blur", "focus", "click", "input"],
|
|
3431
3164
|
setup(e, n) {
|
|
3432
|
-
const t =
|
|
3165
|
+
const t = tt(e, n), o = et(e, n, t), r = Ke(e, n, o, t), a = cr(e, n, o, t, r), i = Ce(e, n, r), {
|
|
3433
3166
|
displayValue: s,
|
|
3434
|
-
modelValue:
|
|
3435
|
-
getRealValue:
|
|
3436
|
-
} = t,
|
|
3167
|
+
modelValue: d,
|
|
3168
|
+
getRealValue: l
|
|
3169
|
+
} = t, c = Xe(e, n, a), {
|
|
3437
3170
|
format: u
|
|
3438
3171
|
} = o, {
|
|
3439
3172
|
isFocus: f
|
|
3440
|
-
} = a, p =
|
|
3441
|
-
return
|
|
3442
|
-
const y =
|
|
3173
|
+
} = a, p = E(() => !e.disabled && !e.readonly && e.showButton);
|
|
3174
|
+
return U(() => {
|
|
3175
|
+
const y = l(e.modelValue);
|
|
3443
3176
|
s.value = u(y);
|
|
3444
3177
|
}), O(() => [e.value], ([y]) => {
|
|
3445
|
-
const v =
|
|
3446
|
-
|
|
3178
|
+
const v = l(y);
|
|
3179
|
+
d.value = v, s.value = u(v);
|
|
3447
3180
|
}), O(() => [e.modelValue], ([y]) => {
|
|
3448
|
-
y !==
|
|
3181
|
+
y !== d.value && (d.value = y, !f.value && (s.value = u(l(y))));
|
|
3449
3182
|
}), O(() => [e.precision, e.useThousands, e.prefix, e.suffix, e.showZero], () => {
|
|
3450
|
-
s.value = u(
|
|
3451
|
-
}), () =>
|
|
3183
|
+
s.value = u(d.value);
|
|
3184
|
+
}), () => C("div", {
|
|
3452
3185
|
class: "input-group f-state-hover flex-row f-cmp-number-spinner"
|
|
3453
|
-
}, [
|
|
3186
|
+
}, [c(), p.value && i()]);
|
|
3454
3187
|
}
|
|
3455
3188
|
});
|
|
3456
|
-
|
|
3189
|
+
function dr(e, n, t) {
|
|
3190
|
+
var w;
|
|
3191
|
+
const o = t && t.getStyles && t.getStyles() || "", r = t && t.getDesignerClass && t.getDesignerClass() || "", a = b();
|
|
3192
|
+
function i() {
|
|
3193
|
+
return (n == null ? void 0 : n.schema.componentType) === "frame" ? !1 : t && t.checkCanMoveComponent ? t.checkCanMoveComponent() : !0;
|
|
3194
|
+
}
|
|
3195
|
+
function s() {
|
|
3196
|
+
return !1;
|
|
3197
|
+
}
|
|
3198
|
+
function d() {
|
|
3199
|
+
return (n == null ? void 0 : n.schema.componentType) === "frame" ? !1 : t && t.checkCanDeleteComponent ? t.checkCanDeleteComponent() : !0;
|
|
3200
|
+
}
|
|
3201
|
+
function l() {
|
|
3202
|
+
return (n == null ? void 0 : n.schema.componentType) === "frame" ? !0 : t && t.hideNestedPaddingInDesginerView ? t.hideNestedPaddingInDesginerView() : !1;
|
|
3203
|
+
}
|
|
3204
|
+
function c(g) {
|
|
3205
|
+
if (!g || !g.value)
|
|
3206
|
+
return null;
|
|
3207
|
+
if (g.value.schema && g.value.schema.type === "component")
|
|
3208
|
+
return g.value;
|
|
3209
|
+
const x = b(g == null ? void 0 : g.value.parent), T = c(x);
|
|
3210
|
+
return T || null;
|
|
3211
|
+
}
|
|
3212
|
+
function u(g = n) {
|
|
3213
|
+
const { componentInstance: x, designerItemElementRef: T } = g;
|
|
3214
|
+
return !x || !x.value ? null : x.value.canMove ? T : u(g.parent);
|
|
3215
|
+
}
|
|
3216
|
+
function f(g) {
|
|
3217
|
+
return !!t && t.canAccepts(g);
|
|
3218
|
+
}
|
|
3219
|
+
function p() {
|
|
3220
|
+
return (n == null ? void 0 : n.schema.label) || (n == null ? void 0 : n.schema.title) || (n == null ? void 0 : n.schema.name);
|
|
3221
|
+
}
|
|
3222
|
+
function y() {
|
|
3223
|
+
}
|
|
3224
|
+
function v(g, x) {
|
|
3225
|
+
x && t != null && t.onAcceptMovedChildElement && t.onAcceptMovedChildElement(x);
|
|
3226
|
+
}
|
|
3227
|
+
function m(g, x) {
|
|
3228
|
+
const { componentType: T } = g;
|
|
3229
|
+
let M = Ge(T, g, x);
|
|
3230
|
+
t && t.onResolveNewComponentSchema && (M = t.onResolveNewComponentSchema(g, M));
|
|
3231
|
+
const R = T.toLowerCase().replace(/-/g, "_");
|
|
3232
|
+
return M && !M.id && M.type === T && (M.id = `${R}_${Math.random().toString().slice(2, 6)}`), M;
|
|
3233
|
+
}
|
|
3234
|
+
function S(g) {
|
|
3235
|
+
}
|
|
3236
|
+
function V(...g) {
|
|
3237
|
+
if (t && t.getPropsConfig)
|
|
3238
|
+
return t.getPropsConfig(...g);
|
|
3239
|
+
}
|
|
3240
|
+
function k() {
|
|
3241
|
+
t && t.onRemoveComponent && t.onRemoveComponent(), n != null && n.schema.contents && n.schema.contents.map((g) => {
|
|
3242
|
+
var M;
|
|
3243
|
+
let x = g.id;
|
|
3244
|
+
g.type === "component-ref" && (x = g.component);
|
|
3245
|
+
const T = e.value.querySelector(`#${x}-design-item`);
|
|
3246
|
+
(M = T == null ? void 0 : T.componentInstance) != null && M.value.onRemoveComponent && T.componentInstance.value.onRemoveComponent();
|
|
3247
|
+
});
|
|
3248
|
+
}
|
|
3249
|
+
return a.value = {
|
|
3250
|
+
canMove: i(),
|
|
3251
|
+
canSelectParent: s(),
|
|
3252
|
+
canDelete: d(),
|
|
3253
|
+
canNested: !l(),
|
|
3254
|
+
contents: n == null ? void 0 : n.schema.contents,
|
|
3255
|
+
elementRef: e,
|
|
3256
|
+
parent: (w = n == null ? void 0 : n.parent) == null ? void 0 : w.componentInstance,
|
|
3257
|
+
schema: n == null ? void 0 : n.schema,
|
|
3258
|
+
styles: o,
|
|
3259
|
+
designerClass: r,
|
|
3260
|
+
canAccepts: f,
|
|
3261
|
+
getBelongedComponentInstance: c,
|
|
3262
|
+
getDraggableDesignItemElement: u,
|
|
3263
|
+
getDraggingDisplayText: p,
|
|
3264
|
+
getPropConfig: V,
|
|
3265
|
+
getDragScopeElement: y,
|
|
3266
|
+
onAcceptMovedChildElement: v,
|
|
3267
|
+
onChildElementMovedOut: S,
|
|
3268
|
+
addNewChildComponentSchema: m,
|
|
3269
|
+
triggerBelongedComponentToMoveWhenMoved: !!t && t.triggerBelongedComponentToMoveWhenMoved || b(!1),
|
|
3270
|
+
triggerBelongedComponentToDeleteWhenDeleted: !!t && t.triggerBelongedComponentToDeleteWhenDeleted || b(!1),
|
|
3271
|
+
onRemoveComponent: k
|
|
3272
|
+
}, a;
|
|
3273
|
+
}
|
|
3274
|
+
class pr extends ge {
|
|
3457
3275
|
constructor(n, t) {
|
|
3458
3276
|
super(n, t);
|
|
3459
3277
|
}
|
|
3460
3278
|
getEditorProperties(n) {
|
|
3461
3279
|
return this.getComponentConfig(n, { type: "number-spinner" }, {
|
|
3280
|
+
precision: {
|
|
3281
|
+
description: "",
|
|
3282
|
+
title: "精度",
|
|
3283
|
+
type: "number"
|
|
3284
|
+
},
|
|
3285
|
+
step: {
|
|
3286
|
+
description: "",
|
|
3287
|
+
title: "步长",
|
|
3288
|
+
type: "number"
|
|
3289
|
+
},
|
|
3290
|
+
max: {
|
|
3291
|
+
description: "",
|
|
3292
|
+
title: "最大值",
|
|
3293
|
+
type: "number",
|
|
3294
|
+
editor: {
|
|
3295
|
+
canNull: !0
|
|
3296
|
+
}
|
|
3297
|
+
},
|
|
3298
|
+
min: {
|
|
3299
|
+
description: "",
|
|
3300
|
+
title: "最小值",
|
|
3301
|
+
type: "number",
|
|
3302
|
+
editor: {
|
|
3303
|
+
canNull: !0
|
|
3304
|
+
}
|
|
3305
|
+
},
|
|
3462
3306
|
textAlign: {
|
|
3463
3307
|
description: "",
|
|
3464
3308
|
title: "对齐方式",
|
|
@@ -3474,7 +3318,7 @@ class vr extends Ve {
|
|
|
3474
3318
|
},
|
|
3475
3319
|
{
|
|
3476
3320
|
value: "center",
|
|
3477
|
-
name: "
|
|
3321
|
+
name: "居中"
|
|
3478
3322
|
},
|
|
3479
3323
|
{
|
|
3480
3324
|
value: "right",
|
|
@@ -3486,46 +3330,27 @@ class vr extends Ve {
|
|
|
3486
3330
|
});
|
|
3487
3331
|
}
|
|
3488
3332
|
}
|
|
3489
|
-
function
|
|
3490
|
-
const
|
|
3491
|
-
|
|
3492
|
-
|
|
3493
|
-
checkCanMoveComponent: r,
|
|
3494
|
-
hideNestedPaddingInDesginerView: a,
|
|
3495
|
-
onAcceptMovedChildElement: l,
|
|
3496
|
-
resolveComponentContext: s,
|
|
3497
|
-
triggerBelongedComponentToMoveWhenMoved: c,
|
|
3498
|
-
triggerBelongedComponentToDeleteWhenDeleted: i
|
|
3499
|
-
} = xe(e), d = e.schema;
|
|
3500
|
-
function u(f, p) {
|
|
3501
|
-
return new vr(f, n).getPropertyConfig(d, p);
|
|
3333
|
+
function fr(e, n) {
|
|
3334
|
+
const t = e.schema;
|
|
3335
|
+
function o(r, a) {
|
|
3336
|
+
return new pr(r, n).getPropertyConfig(t, a);
|
|
3502
3337
|
}
|
|
3503
|
-
return {
|
|
3504
|
-
canAccepts: t,
|
|
3505
|
-
checkCanDeleteComponent: o,
|
|
3506
|
-
checkCanMoveComponent: r,
|
|
3507
|
-
hideNestedPaddingInDesginerView: a,
|
|
3508
|
-
onAcceptMovedChildElement: l,
|
|
3509
|
-
resolveComponentContext: s,
|
|
3510
|
-
triggerBelongedComponentToMoveWhenMoved: c,
|
|
3511
|
-
triggerBelongedComponentToDeleteWhenDeleted: i,
|
|
3512
|
-
getPropsConfig: u
|
|
3513
|
-
};
|
|
3338
|
+
return { getPropsConfig: o };
|
|
3514
3339
|
}
|
|
3515
|
-
const
|
|
3340
|
+
const yr = /* @__PURE__ */ D({
|
|
3516
3341
|
name: "FNumberSpinnerDesign",
|
|
3517
|
-
props:
|
|
3342
|
+
props: we,
|
|
3518
3343
|
emits: ["update:modelValue", "valueChange", "change", "blur", "focus", "click", "input"],
|
|
3519
3344
|
setup(e, n) {
|
|
3520
|
-
const t =
|
|
3521
|
-
|
|
3522
|
-
|
|
3523
|
-
}), n.expose(
|
|
3524
|
-
const u =
|
|
3525
|
-
return () =>
|
|
3526
|
-
ref:
|
|
3345
|
+
const t = tt(e, n), o = et(e, n, t), r = Ke(e, n, o, t), a = Ce(e, n, r), i = b(), s = _("designer-host-service"), d = _("design-item-context"), l = fr(d, s), c = dr(i, d, l);
|
|
3346
|
+
U(() => {
|
|
3347
|
+
i.value.componentInstance = c, e.readonly = !0;
|
|
3348
|
+
}), n.expose(c.value);
|
|
3349
|
+
const u = b();
|
|
3350
|
+
return () => C("div", {
|
|
3351
|
+
ref: i,
|
|
3527
3352
|
class: "input-group f-state-hover flex-row f-cmp-number-spinner test"
|
|
3528
|
-
}, [
|
|
3353
|
+
}, [C("input", {
|
|
3529
3354
|
ref: u,
|
|
3530
3355
|
class: "form-control",
|
|
3531
3356
|
readonly: !0,
|
|
@@ -3533,17 +3358,17 @@ const hr = /* @__PURE__ */ R({
|
|
|
3533
3358
|
}, null), a()]);
|
|
3534
3359
|
}
|
|
3535
3360
|
});
|
|
3536
|
-
|
|
3537
|
-
e["number-spinner"] =
|
|
3361
|
+
X.register = (e, n, t, o) => {
|
|
3362
|
+
e["number-spinner"] = X, n["number-spinner"] = Qe;
|
|
3538
3363
|
};
|
|
3539
|
-
|
|
3540
|
-
e["number-spinner"] =
|
|
3364
|
+
X.registerDesigner = (e, n, t) => {
|
|
3365
|
+
e["number-spinner"] = yr, n["number-spinner"] = Qe;
|
|
3541
3366
|
};
|
|
3542
|
-
|
|
3543
|
-
function
|
|
3544
|
-
const s =
|
|
3367
|
+
me(X);
|
|
3368
|
+
function vr(e, n, t, o, r, a, i) {
|
|
3369
|
+
const s = b(0), d = b(""), l = b([]), c = b(""), u = b("");
|
|
3545
3370
|
function f() {
|
|
3546
|
-
e.value.propertyType === "enum" && e.value.propertyValue.type === "const" && (
|
|
3371
|
+
e.value.propertyType === "enum" && e.value.propertyValue.type === "const" && (c.value = F(e.value.propertyValue.value), n.value = F(e.value.editorOptions.enums));
|
|
3547
3372
|
}
|
|
3548
3373
|
function p() {
|
|
3549
3374
|
e.value.propertyType === "number" && (s.value = e.value.propertyValue.value);
|
|
@@ -3552,17 +3377,17 @@ function br(e, n, t, o, r, a, l) {
|
|
|
3552
3377
|
t.value.id === "stateMachine" && (o = F(e.value.propertyValue.value.id), o ? r.value = F(e.value.propertyValue.value.exist) : r.value = "否");
|
|
3553
3378
|
}
|
|
3554
3379
|
function v() {
|
|
3555
|
-
if (t.value.id === "dataStates" && (
|
|
3556
|
-
const w = e.value.propertyValue.value,
|
|
3557
|
-
|
|
3380
|
+
if (t.value.id === "dataStates" && (l.value = F(e.value.editorOptions.dataStates), e.value.propertyValue.value)) {
|
|
3381
|
+
const w = e.value.propertyValue.value, g = l.value.filter((x) => w.includes(x.value)).map((x) => x.value).join(",");
|
|
3382
|
+
d.value = F(g);
|
|
3558
3383
|
}
|
|
3559
3384
|
}
|
|
3560
|
-
function
|
|
3385
|
+
function m() {
|
|
3561
3386
|
t.value.id === "variable" && (u.value = e.value.propertyValue.value.path);
|
|
3562
3387
|
}
|
|
3563
|
-
function
|
|
3388
|
+
function S() {
|
|
3564
3389
|
if (t.value.id === "expression") {
|
|
3565
|
-
|
|
3390
|
+
i.value = !0;
|
|
3566
3391
|
const { handleExpressionValue: w } = e.value.editorOptions.expressionConfig;
|
|
3567
3392
|
w ? a.value = w().value.value : a.value = e.value.editorOptions.expressionConfig.expressionValue.value.value;
|
|
3568
3393
|
}
|
|
@@ -3570,20 +3395,20 @@ function br(e, n, t, o, r, a, l) {
|
|
|
3570
3395
|
function V() {
|
|
3571
3396
|
t.value.id;
|
|
3572
3397
|
}
|
|
3573
|
-
function
|
|
3574
|
-
f(), p(),
|
|
3398
|
+
function k() {
|
|
3399
|
+
f(), p(), m(), y(), v(), S(), V();
|
|
3575
3400
|
}
|
|
3576
3401
|
return {
|
|
3577
3402
|
numberConstValue: s,
|
|
3578
3403
|
bindVariableValue: u,
|
|
3579
|
-
dataStatesBindValue:
|
|
3580
|
-
dataStatesValueArray:
|
|
3581
|
-
constEnumBindValue:
|
|
3582
|
-
setValue:
|
|
3404
|
+
dataStatesBindValue: d,
|
|
3405
|
+
dataStatesValueArray: l,
|
|
3406
|
+
constEnumBindValue: c,
|
|
3407
|
+
setValue: k
|
|
3583
3408
|
};
|
|
3584
3409
|
}
|
|
3585
|
-
function
|
|
3586
|
-
const f =
|
|
3410
|
+
function mr(e, n, t, o, r, a, i, s, d, l, c, u) {
|
|
3411
|
+
const f = b(!1), p = b({
|
|
3587
3412
|
propertyName: "",
|
|
3588
3413
|
/** 属性类型:boolean, string, number, enum */
|
|
3589
3414
|
propertyType: "",
|
|
@@ -3604,160 +3429,160 @@ function gr(e, n, t, o, r, a, l, s, c, i, d, u) {
|
|
|
3604
3429
|
exist: ""
|
|
3605
3430
|
}, s.value = "否"));
|
|
3606
3431
|
}
|
|
3607
|
-
function
|
|
3608
|
-
n.value.propertyValue.type === "dataStates" && (n.value.propertyValue.value = F(r.value.dataStatesValue.value),
|
|
3432
|
+
function m() {
|
|
3433
|
+
n.value.propertyValue.type === "dataStates" && (n.value.propertyValue.value = F(r.value.dataStatesValue.value), d.value = F(n.value.editorOptions.dataStates));
|
|
3609
3434
|
}
|
|
3610
|
-
function
|
|
3611
|
-
|
|
3435
|
+
function S() {
|
|
3436
|
+
l.value = "", r.value.expressionValue && (r.value.expressionValue.value = "");
|
|
3612
3437
|
}
|
|
3613
3438
|
function V() {
|
|
3614
|
-
|
|
3439
|
+
c.value || (s.value = s.value === "否" ? "是" : "否", n.value.propertyValue.value.exist = s, r.value.stateMachineValue.value.exist = s, g());
|
|
3615
3440
|
}
|
|
3616
|
-
function
|
|
3441
|
+
function k() {
|
|
3617
3442
|
p.value.propertyValue.value && p.value.propertyValue.value.includes("viewModel.stateMachine") && (r.value.customValue.value = "");
|
|
3618
3443
|
}
|
|
3619
3444
|
function w() {
|
|
3620
3445
|
p.value.propertyName = F(n.value.propertyName), p.value.propertyType = F(n.value.propertyType), p.value.propertyValue = F(n.value.propertyValue), p.value.hasPrefix = F(f);
|
|
3621
3446
|
}
|
|
3622
|
-
function
|
|
3623
|
-
if (!
|
|
3447
|
+
function g() {
|
|
3448
|
+
if (!c.value)
|
|
3624
3449
|
switch (w(), p.value.propertyValue.type) {
|
|
3625
3450
|
case "const":
|
|
3626
|
-
(p.value.propertyType === "enum" && p.value.propertyValue.value !== "" || p.value.propertyType === "number" && p.value.propertyValue.value != null || p.value.propertyType === "string") && (
|
|
3451
|
+
(p.value.propertyType === "enum" && p.value.propertyValue.value !== "" || p.value.propertyType === "number" && p.value.propertyValue.value != null || p.value.propertyType === "string") && (S(), e.emit("propertyEditorValueChanged", p));
|
|
3627
3452
|
break;
|
|
3628
3453
|
case "variable":
|
|
3629
|
-
p.value.propertyValue.value.path !== "" && (
|
|
3454
|
+
p.value.propertyValue.value.path !== "" && (S(), e.emit("propertyEditorValueChanged", p));
|
|
3630
3455
|
break;
|
|
3631
3456
|
case "custom":
|
|
3632
|
-
|
|
3457
|
+
S(), k(), e.emit("propertyEditorValueChanged", p);
|
|
3633
3458
|
break;
|
|
3634
3459
|
case "expression":
|
|
3635
|
-
|
|
3460
|
+
l.value && e.emit("propertyEditorValueChanged", p);
|
|
3636
3461
|
break;
|
|
3637
3462
|
case "stateMachine":
|
|
3638
|
-
p.value.propertyValue.value.id && (
|
|
3463
|
+
p.value.propertyValue.value.id && (S(), e.emit("propertyEditorValueChanged", p));
|
|
3639
3464
|
break;
|
|
3640
3465
|
case "dataStates":
|
|
3641
3466
|
if (p.value.propertyValue.value !== "") {
|
|
3642
|
-
|
|
3467
|
+
S(), e.emit("propertyEditorValueChanged", p);
|
|
3643
3468
|
break;
|
|
3644
3469
|
}
|
|
3645
3470
|
}
|
|
3646
3471
|
}
|
|
3647
|
-
function
|
|
3648
|
-
n.value.propertyValue = r.value[`${u.value.id}Value`], y(), v(),
|
|
3472
|
+
function x() {
|
|
3473
|
+
n.value.propertyValue = r.value[`${u.value.id}Value`], y(), v(), m(), g(), p.value.isNewVariable = !1;
|
|
3649
3474
|
}
|
|
3650
3475
|
return {
|
|
3651
|
-
updateData:
|
|
3476
|
+
updateData: x,
|
|
3652
3477
|
changeState: V,
|
|
3653
3478
|
prefix: f,
|
|
3654
3479
|
propertyEditorValueChange: p
|
|
3655
3480
|
};
|
|
3656
3481
|
}
|
|
3657
|
-
var
|
|
3658
|
-
return
|
|
3482
|
+
var fe = function(e, n) {
|
|
3483
|
+
return fe = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, o) {
|
|
3659
3484
|
t.__proto__ = o;
|
|
3660
3485
|
} || function(t, o) {
|
|
3661
3486
|
for (var r in o) Object.prototype.hasOwnProperty.call(o, r) && (t[r] = o[r]);
|
|
3662
|
-
},
|
|
3487
|
+
}, fe(e, n);
|
|
3663
3488
|
};
|
|
3664
|
-
function
|
|
3489
|
+
function q(e, n) {
|
|
3665
3490
|
if (typeof n != "function" && n !== null)
|
|
3666
3491
|
throw new TypeError("Class extends value " + String(n) + " is not a constructor or null");
|
|
3667
|
-
|
|
3492
|
+
fe(e, n);
|
|
3668
3493
|
function t() {
|
|
3669
3494
|
this.constructor = e;
|
|
3670
3495
|
}
|
|
3671
3496
|
e.prototype = n === null ? Object.create(n) : (t.prototype = n.prototype, new t());
|
|
3672
3497
|
}
|
|
3673
|
-
function
|
|
3498
|
+
function hr(e, n, t, o) {
|
|
3674
3499
|
function r(a) {
|
|
3675
|
-
return a instanceof t ? a : new t(function(
|
|
3676
|
-
|
|
3500
|
+
return a instanceof t ? a : new t(function(i) {
|
|
3501
|
+
i(a);
|
|
3677
3502
|
});
|
|
3678
3503
|
}
|
|
3679
|
-
return new (t || (t = Promise))(function(a,
|
|
3680
|
-
function s(
|
|
3504
|
+
return new (t || (t = Promise))(function(a, i) {
|
|
3505
|
+
function s(c) {
|
|
3681
3506
|
try {
|
|
3682
|
-
|
|
3507
|
+
l(o.next(c));
|
|
3683
3508
|
} catch (u) {
|
|
3684
|
-
|
|
3509
|
+
i(u);
|
|
3685
3510
|
}
|
|
3686
3511
|
}
|
|
3687
|
-
function c
|
|
3512
|
+
function d(c) {
|
|
3688
3513
|
try {
|
|
3689
|
-
|
|
3514
|
+
l(o.throw(c));
|
|
3690
3515
|
} catch (u) {
|
|
3691
|
-
|
|
3516
|
+
i(u);
|
|
3692
3517
|
}
|
|
3693
3518
|
}
|
|
3694
|
-
function
|
|
3695
|
-
|
|
3519
|
+
function l(c) {
|
|
3520
|
+
c.done ? a(c.value) : r(c.value).then(s, d);
|
|
3696
3521
|
}
|
|
3697
|
-
|
|
3522
|
+
l((o = o.apply(e, n || [])).next());
|
|
3698
3523
|
});
|
|
3699
3524
|
}
|
|
3700
|
-
function
|
|
3525
|
+
function nt(e, n) {
|
|
3701
3526
|
var t = { label: 0, sent: function() {
|
|
3702
3527
|
if (a[0] & 1) throw a[1];
|
|
3703
3528
|
return a[1];
|
|
3704
|
-
}, trys: [], ops: [] }, o, r, a,
|
|
3705
|
-
return
|
|
3529
|
+
}, trys: [], ops: [] }, o, r, a, i = Object.create((typeof Iterator == "function" ? Iterator : Object).prototype);
|
|
3530
|
+
return i.next = s(0), i.throw = s(1), i.return = s(2), typeof Symbol == "function" && (i[Symbol.iterator] = function() {
|
|
3706
3531
|
return this;
|
|
3707
|
-
}),
|
|
3708
|
-
function s(
|
|
3709
|
-
return function(
|
|
3710
|
-
return
|
|
3532
|
+
}), i;
|
|
3533
|
+
function s(l) {
|
|
3534
|
+
return function(c) {
|
|
3535
|
+
return d([l, c]);
|
|
3711
3536
|
};
|
|
3712
3537
|
}
|
|
3713
|
-
function
|
|
3538
|
+
function d(l) {
|
|
3714
3539
|
if (o) throw new TypeError("Generator is already executing.");
|
|
3715
|
-
for (;
|
|
3716
|
-
if (o = 1, r && (a =
|
|
3717
|
-
switch (r = 0, a && (
|
|
3540
|
+
for (; i && (i = 0, l[0] && (t = 0)), t; ) try {
|
|
3541
|
+
if (o = 1, r && (a = l[0] & 2 ? r.return : l[0] ? r.throw || ((a = r.return) && a.call(r), 0) : r.next) && !(a = a.call(r, l[1])).done) return a;
|
|
3542
|
+
switch (r = 0, a && (l = [l[0] & 2, a.value]), l[0]) {
|
|
3718
3543
|
case 0:
|
|
3719
3544
|
case 1:
|
|
3720
|
-
a =
|
|
3545
|
+
a = l;
|
|
3721
3546
|
break;
|
|
3722
3547
|
case 4:
|
|
3723
|
-
return t.label++, { value:
|
|
3548
|
+
return t.label++, { value: l[1], done: !1 };
|
|
3724
3549
|
case 5:
|
|
3725
|
-
t.label++, r =
|
|
3550
|
+
t.label++, r = l[1], l = [0];
|
|
3726
3551
|
continue;
|
|
3727
3552
|
case 7:
|
|
3728
|
-
|
|
3553
|
+
l = t.ops.pop(), t.trys.pop();
|
|
3729
3554
|
continue;
|
|
3730
3555
|
default:
|
|
3731
|
-
if (a = t.trys, !(a = a.length > 0 && a[a.length - 1]) && (
|
|
3556
|
+
if (a = t.trys, !(a = a.length > 0 && a[a.length - 1]) && (l[0] === 6 || l[0] === 2)) {
|
|
3732
3557
|
t = 0;
|
|
3733
3558
|
continue;
|
|
3734
3559
|
}
|
|
3735
|
-
if (
|
|
3736
|
-
t.label =
|
|
3560
|
+
if (l[0] === 3 && (!a || l[1] > a[0] && l[1] < a[3])) {
|
|
3561
|
+
t.label = l[1];
|
|
3737
3562
|
break;
|
|
3738
3563
|
}
|
|
3739
|
-
if (
|
|
3740
|
-
t.label = a[1], a =
|
|
3564
|
+
if (l[0] === 6 && t.label < a[1]) {
|
|
3565
|
+
t.label = a[1], a = l;
|
|
3741
3566
|
break;
|
|
3742
3567
|
}
|
|
3743
3568
|
if (a && t.label < a[2]) {
|
|
3744
|
-
t.label = a[2], t.ops.push(
|
|
3569
|
+
t.label = a[2], t.ops.push(l);
|
|
3745
3570
|
break;
|
|
3746
3571
|
}
|
|
3747
3572
|
a[2] && t.ops.pop(), t.trys.pop();
|
|
3748
3573
|
continue;
|
|
3749
3574
|
}
|
|
3750
|
-
|
|
3751
|
-
} catch (
|
|
3752
|
-
|
|
3575
|
+
l = n.call(e, t);
|
|
3576
|
+
} catch (c) {
|
|
3577
|
+
l = [6, c], r = 0;
|
|
3753
3578
|
} finally {
|
|
3754
3579
|
o = a = 0;
|
|
3755
3580
|
}
|
|
3756
|
-
if (
|
|
3757
|
-
return { value:
|
|
3581
|
+
if (l[0] & 5) throw l[1];
|
|
3582
|
+
return { value: l[0] ? l[1] : void 0, done: !0 };
|
|
3758
3583
|
}
|
|
3759
3584
|
}
|
|
3760
|
-
function
|
|
3585
|
+
function Y(e) {
|
|
3761
3586
|
var n = typeof Symbol == "function" && Symbol.iterator, t = n && e[n], o = 0;
|
|
3762
3587
|
if (t) return t.call(e);
|
|
3763
3588
|
if (e && typeof e.length == "number") return {
|
|
@@ -3767,98 +3592,98 @@ function X(e) {
|
|
|
3767
3592
|
};
|
|
3768
3593
|
throw new TypeError(n ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
3769
3594
|
}
|
|
3770
|
-
function
|
|
3595
|
+
function oe(e, n) {
|
|
3771
3596
|
var t = typeof Symbol == "function" && e[Symbol.iterator];
|
|
3772
3597
|
if (!t) return e;
|
|
3773
|
-
var o = t.call(e), r, a = [],
|
|
3598
|
+
var o = t.call(e), r, a = [], i;
|
|
3774
3599
|
try {
|
|
3775
3600
|
for (; (n === void 0 || n-- > 0) && !(r = o.next()).done; ) a.push(r.value);
|
|
3776
3601
|
} catch (s) {
|
|
3777
|
-
|
|
3602
|
+
i = { error: s };
|
|
3778
3603
|
} finally {
|
|
3779
3604
|
try {
|
|
3780
3605
|
r && !r.done && (t = o.return) && t.call(o);
|
|
3781
3606
|
} finally {
|
|
3782
|
-
if (
|
|
3607
|
+
if (i) throw i.error;
|
|
3783
3608
|
}
|
|
3784
3609
|
}
|
|
3785
3610
|
return a;
|
|
3786
3611
|
}
|
|
3787
|
-
function
|
|
3612
|
+
function re(e, n, t) {
|
|
3788
3613
|
if (t || arguments.length === 2) for (var o = 0, r = n.length, a; o < r; o++)
|
|
3789
3614
|
(a || !(o in n)) && (a || (a = Array.prototype.slice.call(n, 0, o)), a[o] = n[o]);
|
|
3790
3615
|
return e.concat(a || Array.prototype.slice.call(n));
|
|
3791
3616
|
}
|
|
3792
|
-
function
|
|
3793
|
-
return this instanceof
|
|
3617
|
+
function z(e) {
|
|
3618
|
+
return this instanceof z ? (this.v = e, this) : new z(e);
|
|
3794
3619
|
}
|
|
3795
|
-
function
|
|
3620
|
+
function br(e, n, t) {
|
|
3796
3621
|
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
3797
3622
|
var o = t.apply(e, n || []), r, a = [];
|
|
3798
|
-
return r = Object.create((typeof AsyncIterator == "function" ? AsyncIterator : Object).prototype), s("next"), s("throw"), s("return",
|
|
3623
|
+
return r = Object.create((typeof AsyncIterator == "function" ? AsyncIterator : Object).prototype), s("next"), s("throw"), s("return", i), r[Symbol.asyncIterator] = function() {
|
|
3799
3624
|
return this;
|
|
3800
3625
|
}, r;
|
|
3801
|
-
function
|
|
3626
|
+
function i(p) {
|
|
3802
3627
|
return function(y) {
|
|
3803
3628
|
return Promise.resolve(y).then(p, u);
|
|
3804
3629
|
};
|
|
3805
3630
|
}
|
|
3806
3631
|
function s(p, y) {
|
|
3807
3632
|
o[p] && (r[p] = function(v) {
|
|
3808
|
-
return new Promise(function(
|
|
3809
|
-
a.push([p, v,
|
|
3633
|
+
return new Promise(function(m, S) {
|
|
3634
|
+
a.push([p, v, m, S]) > 1 || d(p, v);
|
|
3810
3635
|
});
|
|
3811
3636
|
}, y && (r[p] = y(r[p])));
|
|
3812
3637
|
}
|
|
3813
|
-
function
|
|
3638
|
+
function d(p, y) {
|
|
3814
3639
|
try {
|
|
3815
|
-
|
|
3640
|
+
l(o[p](y));
|
|
3816
3641
|
} catch (v) {
|
|
3817
3642
|
f(a[0][3], v);
|
|
3818
3643
|
}
|
|
3819
3644
|
}
|
|
3820
|
-
function
|
|
3821
|
-
p.value instanceof
|
|
3645
|
+
function l(p) {
|
|
3646
|
+
p.value instanceof z ? Promise.resolve(p.value.v).then(c, u) : f(a[0][2], p);
|
|
3822
3647
|
}
|
|
3823
|
-
function
|
|
3824
|
-
|
|
3648
|
+
function c(p) {
|
|
3649
|
+
d("next", p);
|
|
3825
3650
|
}
|
|
3826
3651
|
function u(p) {
|
|
3827
|
-
|
|
3652
|
+
d("throw", p);
|
|
3828
3653
|
}
|
|
3829
3654
|
function f(p, y) {
|
|
3830
|
-
p(y), a.shift(), a.length &&
|
|
3655
|
+
p(y), a.shift(), a.length && d(a[0][0], a[0][1]);
|
|
3831
3656
|
}
|
|
3832
3657
|
}
|
|
3833
|
-
function
|
|
3658
|
+
function gr(e) {
|
|
3834
3659
|
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
3835
3660
|
var n = e[Symbol.asyncIterator], t;
|
|
3836
|
-
return n ? n.call(e) : (e = typeof
|
|
3661
|
+
return n ? n.call(e) : (e = typeof Y == "function" ? Y(e) : e[Symbol.iterator](), t = {}, o("next"), o("throw"), o("return"), t[Symbol.asyncIterator] = function() {
|
|
3837
3662
|
return this;
|
|
3838
3663
|
}, t);
|
|
3839
3664
|
function o(a) {
|
|
3840
|
-
t[a] = e[a] && function(
|
|
3841
|
-
return new Promise(function(s,
|
|
3842
|
-
|
|
3665
|
+
t[a] = e[a] && function(i) {
|
|
3666
|
+
return new Promise(function(s, d) {
|
|
3667
|
+
i = e[a](i), r(s, d, i.done, i.value);
|
|
3843
3668
|
});
|
|
3844
3669
|
};
|
|
3845
3670
|
}
|
|
3846
|
-
function r(a,
|
|
3847
|
-
Promise.resolve(
|
|
3848
|
-
a({ value:
|
|
3849
|
-
},
|
|
3671
|
+
function r(a, i, s, d) {
|
|
3672
|
+
Promise.resolve(d).then(function(l) {
|
|
3673
|
+
a({ value: l, done: s });
|
|
3674
|
+
}, i);
|
|
3850
3675
|
}
|
|
3851
3676
|
}
|
|
3852
|
-
function
|
|
3677
|
+
function A(e) {
|
|
3853
3678
|
return typeof e == "function";
|
|
3854
3679
|
}
|
|
3855
|
-
function
|
|
3680
|
+
function ot(e) {
|
|
3856
3681
|
var n = function(o) {
|
|
3857
3682
|
Error.call(o), o.stack = new Error().stack;
|
|
3858
3683
|
}, t = e(n);
|
|
3859
3684
|
return t.prototype = Object.create(Error.prototype), t.prototype.constructor = t, t;
|
|
3860
3685
|
}
|
|
3861
|
-
var
|
|
3686
|
+
var ue = ot(function(e) {
|
|
3862
3687
|
return function(t) {
|
|
3863
3688
|
e(this), this.message = t ? t.length + ` errors occurred during unsubscription:
|
|
3864
3689
|
` + t.map(function(o, r) {
|
|
@@ -3867,13 +3692,13 @@ var ye = dt(function(e) {
|
|
|
3867
3692
|
`) : "", this.name = "UnsubscriptionError", this.errors = t;
|
|
3868
3693
|
};
|
|
3869
3694
|
});
|
|
3870
|
-
function
|
|
3695
|
+
function ae(e, n) {
|
|
3871
3696
|
if (e) {
|
|
3872
3697
|
var t = e.indexOf(n);
|
|
3873
3698
|
0 <= t && e.splice(t, 1);
|
|
3874
3699
|
}
|
|
3875
3700
|
}
|
|
3876
|
-
var
|
|
3701
|
+
var Q = function() {
|
|
3877
3702
|
function e(n) {
|
|
3878
3703
|
this.initialTeardown = n, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
3879
3704
|
}
|
|
@@ -3881,42 +3706,42 @@ var te = function() {
|
|
|
3881
3706
|
var n, t, o, r, a;
|
|
3882
3707
|
if (!this.closed) {
|
|
3883
3708
|
this.closed = !0;
|
|
3884
|
-
var
|
|
3885
|
-
if (
|
|
3886
|
-
if (this._parentage = null, Array.isArray(
|
|
3709
|
+
var i = this._parentage;
|
|
3710
|
+
if (i)
|
|
3711
|
+
if (this._parentage = null, Array.isArray(i))
|
|
3887
3712
|
try {
|
|
3888
|
-
for (var s =
|
|
3889
|
-
var
|
|
3890
|
-
|
|
3713
|
+
for (var s = Y(i), d = s.next(); !d.done; d = s.next()) {
|
|
3714
|
+
var l = d.value;
|
|
3715
|
+
l.remove(this);
|
|
3891
3716
|
}
|
|
3892
3717
|
} catch (v) {
|
|
3893
3718
|
n = { error: v };
|
|
3894
3719
|
} finally {
|
|
3895
3720
|
try {
|
|
3896
|
-
|
|
3721
|
+
d && !d.done && (t = s.return) && t.call(s);
|
|
3897
3722
|
} finally {
|
|
3898
3723
|
if (n) throw n.error;
|
|
3899
3724
|
}
|
|
3900
3725
|
}
|
|
3901
3726
|
else
|
|
3902
|
-
|
|
3903
|
-
var
|
|
3904
|
-
if (
|
|
3727
|
+
i.remove(this);
|
|
3728
|
+
var c = this.initialTeardown;
|
|
3729
|
+
if (A(c))
|
|
3905
3730
|
try {
|
|
3906
|
-
|
|
3731
|
+
c();
|
|
3907
3732
|
} catch (v) {
|
|
3908
|
-
a = v instanceof
|
|
3733
|
+
a = v instanceof ue ? v.errors : [v];
|
|
3909
3734
|
}
|
|
3910
3735
|
var u = this._finalizers;
|
|
3911
3736
|
if (u) {
|
|
3912
3737
|
this._finalizers = null;
|
|
3913
3738
|
try {
|
|
3914
|
-
for (var f =
|
|
3739
|
+
for (var f = Y(u), p = f.next(); !p.done; p = f.next()) {
|
|
3915
3740
|
var y = p.value;
|
|
3916
3741
|
try {
|
|
3917
|
-
|
|
3742
|
+
Ae(y);
|
|
3918
3743
|
} catch (v) {
|
|
3919
|
-
a = a ?? [], v instanceof
|
|
3744
|
+
a = a ?? [], v instanceof ue ? a = re(re([], oe(a)), oe(v.errors)) : a.push(v);
|
|
3920
3745
|
}
|
|
3921
3746
|
}
|
|
3922
3747
|
} catch (v) {
|
|
@@ -3930,13 +3755,13 @@ var te = function() {
|
|
|
3930
3755
|
}
|
|
3931
3756
|
}
|
|
3932
3757
|
if (a)
|
|
3933
|
-
throw new
|
|
3758
|
+
throw new ue(a);
|
|
3934
3759
|
}
|
|
3935
3760
|
}, e.prototype.add = function(n) {
|
|
3936
3761
|
var t;
|
|
3937
3762
|
if (n && n !== this)
|
|
3938
3763
|
if (this.closed)
|
|
3939
|
-
|
|
3764
|
+
Ae(n);
|
|
3940
3765
|
else {
|
|
3941
3766
|
if (n instanceof e) {
|
|
3942
3767
|
if (n.closed || n._hasParent(this))
|
|
@@ -3953,56 +3778,56 @@ var te = function() {
|
|
|
3953
3778
|
this._parentage = Array.isArray(t) ? (t.push(n), t) : t ? [t, n] : n;
|
|
3954
3779
|
}, e.prototype._removeParent = function(n) {
|
|
3955
3780
|
var t = this._parentage;
|
|
3956
|
-
t === n ? this._parentage = null : Array.isArray(t) &&
|
|
3781
|
+
t === n ? this._parentage = null : Array.isArray(t) && ae(t, n);
|
|
3957
3782
|
}, e.prototype.remove = function(n) {
|
|
3958
3783
|
var t = this._finalizers;
|
|
3959
|
-
t &&
|
|
3784
|
+
t && ae(t, n), n instanceof e && n._removeParent(this);
|
|
3960
3785
|
}, e.EMPTY = function() {
|
|
3961
3786
|
var n = new e();
|
|
3962
3787
|
return n.closed = !0, n;
|
|
3963
3788
|
}(), e;
|
|
3964
|
-
}(),
|
|
3965
|
-
function
|
|
3966
|
-
return e instanceof
|
|
3789
|
+
}(), rt = Q.EMPTY;
|
|
3790
|
+
function at(e) {
|
|
3791
|
+
return e instanceof Q || e && "closed" in e && A(e.remove) && A(e.add) && A(e.unsubscribe);
|
|
3967
3792
|
}
|
|
3968
|
-
function
|
|
3969
|
-
|
|
3793
|
+
function Ae(e) {
|
|
3794
|
+
A(e) ? e() : e.unsubscribe();
|
|
3970
3795
|
}
|
|
3971
|
-
var
|
|
3796
|
+
var it = {
|
|
3972
3797
|
onUnhandledError: null,
|
|
3973
3798
|
onStoppedNotification: null,
|
|
3974
3799
|
Promise: void 0,
|
|
3975
3800
|
useDeprecatedSynchronousErrorHandling: !1,
|
|
3976
3801
|
useDeprecatedNextContext: !1
|
|
3977
|
-
},
|
|
3802
|
+
}, Sr = {
|
|
3978
3803
|
setTimeout: function(e, n) {
|
|
3979
3804
|
for (var t = [], o = 2; o < arguments.length; o++)
|
|
3980
3805
|
t[o - 2] = arguments[o];
|
|
3981
|
-
return setTimeout.apply(void 0,
|
|
3806
|
+
return setTimeout.apply(void 0, re([e, n], oe(t)));
|
|
3982
3807
|
},
|
|
3983
3808
|
clearTimeout: function(e) {
|
|
3984
3809
|
return clearTimeout(e);
|
|
3985
3810
|
},
|
|
3986
3811
|
delegate: void 0
|
|
3987
3812
|
};
|
|
3988
|
-
function
|
|
3989
|
-
|
|
3813
|
+
function lt(e) {
|
|
3814
|
+
Sr.setTimeout(function() {
|
|
3990
3815
|
throw e;
|
|
3991
3816
|
});
|
|
3992
3817
|
}
|
|
3993
|
-
function
|
|
3818
|
+
function Ne() {
|
|
3994
3819
|
}
|
|
3995
|
-
function
|
|
3820
|
+
function ee(e) {
|
|
3996
3821
|
e();
|
|
3997
3822
|
}
|
|
3998
|
-
var
|
|
3999
|
-
|
|
3823
|
+
var Ve = function(e) {
|
|
3824
|
+
q(n, e);
|
|
4000
3825
|
function n(t) {
|
|
4001
3826
|
var o = e.call(this) || this;
|
|
4002
|
-
return o.isStopped = !1, t ? (o.destination = t,
|
|
3827
|
+
return o.isStopped = !1, t ? (o.destination = t, at(t) && t.add(o)) : o.destination = xr, o;
|
|
4003
3828
|
}
|
|
4004
3829
|
return n.create = function(t, o, r) {
|
|
4005
|
-
return new
|
|
3830
|
+
return new ye(t, o, r);
|
|
4006
3831
|
}, n.prototype.next = function(t) {
|
|
4007
3832
|
this.isStopped || this._next(t);
|
|
4008
3833
|
}, n.prototype.error = function(t) {
|
|
@@ -4026,11 +3851,11 @@ var Me = function(e) {
|
|
|
4026
3851
|
this.unsubscribe();
|
|
4027
3852
|
}
|
|
4028
3853
|
}, n;
|
|
4029
|
-
}(
|
|
4030
|
-
function
|
|
4031
|
-
return
|
|
3854
|
+
}(Q), Cr = Function.prototype.bind;
|
|
3855
|
+
function se(e, n) {
|
|
3856
|
+
return Cr.call(e, n);
|
|
4032
3857
|
}
|
|
4033
|
-
var
|
|
3858
|
+
var wr = function() {
|
|
4034
3859
|
function e(n) {
|
|
4035
3860
|
this.partialObserver = n;
|
|
4036
3861
|
}
|
|
@@ -4040,7 +3865,7 @@ var Br = function() {
|
|
|
4040
3865
|
try {
|
|
4041
3866
|
t.next(n);
|
|
4042
3867
|
} catch (o) {
|
|
4043
|
-
|
|
3868
|
+
K(o);
|
|
4044
3869
|
}
|
|
4045
3870
|
}, e.prototype.error = function(n) {
|
|
4046
3871
|
var t = this.partialObserver;
|
|
@@ -4048,68 +3873,68 @@ var Br = function() {
|
|
|
4048
3873
|
try {
|
|
4049
3874
|
t.error(n);
|
|
4050
3875
|
} catch (o) {
|
|
4051
|
-
|
|
3876
|
+
K(o);
|
|
4052
3877
|
}
|
|
4053
3878
|
else
|
|
4054
|
-
|
|
3879
|
+
K(n);
|
|
4055
3880
|
}, e.prototype.complete = function() {
|
|
4056
3881
|
var n = this.partialObserver;
|
|
4057
3882
|
if (n.complete)
|
|
4058
3883
|
try {
|
|
4059
3884
|
n.complete();
|
|
4060
3885
|
} catch (t) {
|
|
4061
|
-
|
|
3886
|
+
K(t);
|
|
4062
3887
|
}
|
|
4063
3888
|
}, e;
|
|
4064
|
-
}(),
|
|
4065
|
-
|
|
3889
|
+
}(), ye = function(e) {
|
|
3890
|
+
q(n, e);
|
|
4066
3891
|
function n(t, o, r) {
|
|
4067
|
-
var a = e.call(this) || this,
|
|
4068
|
-
if (
|
|
4069
|
-
|
|
3892
|
+
var a = e.call(this) || this, i;
|
|
3893
|
+
if (A(t) || !t)
|
|
3894
|
+
i = {
|
|
4070
3895
|
next: t ?? void 0,
|
|
4071
3896
|
error: o ?? void 0,
|
|
4072
3897
|
complete: r ?? void 0
|
|
4073
3898
|
};
|
|
4074
3899
|
else {
|
|
4075
3900
|
var s;
|
|
4076
|
-
a &&
|
|
3901
|
+
a && it.useDeprecatedNextContext ? (s = Object.create(t), s.unsubscribe = function() {
|
|
4077
3902
|
return a.unsubscribe();
|
|
4078
|
-
},
|
|
4079
|
-
next: t.next &&
|
|
4080
|
-
error: t.error &&
|
|
4081
|
-
complete: t.complete &&
|
|
4082
|
-
}) :
|
|
3903
|
+
}, i = {
|
|
3904
|
+
next: t.next && se(t.next, s),
|
|
3905
|
+
error: t.error && se(t.error, s),
|
|
3906
|
+
complete: t.complete && se(t.complete, s)
|
|
3907
|
+
}) : i = t;
|
|
4083
3908
|
}
|
|
4084
|
-
return a.destination = new
|
|
3909
|
+
return a.destination = new wr(i), a;
|
|
4085
3910
|
}
|
|
4086
3911
|
return n;
|
|
4087
|
-
}(
|
|
4088
|
-
function
|
|
4089
|
-
|
|
3912
|
+
}(Ve);
|
|
3913
|
+
function K(e) {
|
|
3914
|
+
lt(e);
|
|
4090
3915
|
}
|
|
4091
|
-
function
|
|
3916
|
+
function Vr(e) {
|
|
4092
3917
|
throw e;
|
|
4093
3918
|
}
|
|
4094
|
-
var
|
|
3919
|
+
var xr = {
|
|
4095
3920
|
closed: !0,
|
|
4096
|
-
next:
|
|
4097
|
-
error:
|
|
4098
|
-
complete:
|
|
4099
|
-
},
|
|
3921
|
+
next: Ne,
|
|
3922
|
+
error: Vr,
|
|
3923
|
+
complete: Ne
|
|
3924
|
+
}, xe = function() {
|
|
4100
3925
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
4101
3926
|
}();
|
|
4102
|
-
function
|
|
3927
|
+
function Br(e) {
|
|
4103
3928
|
return e;
|
|
4104
3929
|
}
|
|
4105
|
-
function
|
|
4106
|
-
return e.length === 0 ?
|
|
3930
|
+
function Fr(e) {
|
|
3931
|
+
return e.length === 0 ? Br : e.length === 1 ? e[0] : function(t) {
|
|
4107
3932
|
return e.reduce(function(o, r) {
|
|
4108
3933
|
return r(o);
|
|
4109
3934
|
}, t);
|
|
4110
3935
|
};
|
|
4111
3936
|
}
|
|
4112
|
-
var
|
|
3937
|
+
var $ = function() {
|
|
4113
3938
|
function e(n) {
|
|
4114
3939
|
n && (this._subscribe = n);
|
|
4115
3940
|
}
|
|
@@ -4117,10 +3942,10 @@ var G = function() {
|
|
|
4117
3942
|
var t = new e();
|
|
4118
3943
|
return t.source = this, t.operator = n, t;
|
|
4119
3944
|
}, e.prototype.subscribe = function(n, t, o) {
|
|
4120
|
-
var r = this, a =
|
|
4121
|
-
return
|
|
4122
|
-
var
|
|
4123
|
-
a.add(s ? s.call(a,
|
|
3945
|
+
var r = this, a = kr(n) ? n : new ye(n, t, o);
|
|
3946
|
+
return ee(function() {
|
|
3947
|
+
var i = r, s = i.operator, d = i.source;
|
|
3948
|
+
a.add(s ? s.call(a, d) : d ? r._subscribe(a) : r._trySubscribe(a));
|
|
4124
3949
|
}), a;
|
|
4125
3950
|
}, e.prototype._trySubscribe = function(n) {
|
|
4126
3951
|
try {
|
|
@@ -4130,37 +3955,37 @@ var G = function() {
|
|
|
4130
3955
|
}
|
|
4131
3956
|
}, e.prototype.forEach = function(n, t) {
|
|
4132
3957
|
var o = this;
|
|
4133
|
-
return t =
|
|
4134
|
-
var
|
|
3958
|
+
return t = Oe(t), new t(function(r, a) {
|
|
3959
|
+
var i = new ye({
|
|
4135
3960
|
next: function(s) {
|
|
4136
3961
|
try {
|
|
4137
3962
|
n(s);
|
|
4138
|
-
} catch (
|
|
4139
|
-
a(
|
|
3963
|
+
} catch (d) {
|
|
3964
|
+
a(d), i.unsubscribe();
|
|
4140
3965
|
}
|
|
4141
3966
|
},
|
|
4142
3967
|
error: a,
|
|
4143
3968
|
complete: r
|
|
4144
3969
|
});
|
|
4145
|
-
o.subscribe(
|
|
3970
|
+
o.subscribe(i);
|
|
4146
3971
|
});
|
|
4147
3972
|
}, e.prototype._subscribe = function(n) {
|
|
4148
3973
|
var t;
|
|
4149
3974
|
return (t = this.source) === null || t === void 0 ? void 0 : t.subscribe(n);
|
|
4150
|
-
}, e.prototype[
|
|
3975
|
+
}, e.prototype[xe] = function() {
|
|
4151
3976
|
return this;
|
|
4152
3977
|
}, e.prototype.pipe = function() {
|
|
4153
3978
|
for (var n = [], t = 0; t < arguments.length; t++)
|
|
4154
3979
|
n[t] = arguments[t];
|
|
4155
|
-
return
|
|
3980
|
+
return Fr(n)(this);
|
|
4156
3981
|
}, e.prototype.toPromise = function(n) {
|
|
4157
3982
|
var t = this;
|
|
4158
|
-
return n =
|
|
3983
|
+
return n = Oe(n), new n(function(o, r) {
|
|
4159
3984
|
var a;
|
|
4160
|
-
t.subscribe(function(
|
|
4161
|
-
return a =
|
|
4162
|
-
}, function(
|
|
4163
|
-
return r(
|
|
3985
|
+
t.subscribe(function(i) {
|
|
3986
|
+
return a = i;
|
|
3987
|
+
}, function(i) {
|
|
3988
|
+
return r(i);
|
|
4164
3989
|
}, function() {
|
|
4165
3990
|
return o(a);
|
|
4166
3991
|
});
|
|
@@ -4169,22 +3994,22 @@ var G = function() {
|
|
|
4169
3994
|
return new e(n);
|
|
4170
3995
|
}, e;
|
|
4171
3996
|
}();
|
|
4172
|
-
function
|
|
3997
|
+
function Oe(e) {
|
|
4173
3998
|
var n;
|
|
4174
|
-
return (n = e ??
|
|
3999
|
+
return (n = e ?? it.Promise) !== null && n !== void 0 ? n : Promise;
|
|
4175
4000
|
}
|
|
4176
|
-
function
|
|
4177
|
-
return e &&
|
|
4001
|
+
function Tr(e) {
|
|
4002
|
+
return e && A(e.next) && A(e.error) && A(e.complete);
|
|
4178
4003
|
}
|
|
4179
|
-
function
|
|
4180
|
-
return e && e instanceof
|
|
4004
|
+
function kr(e) {
|
|
4005
|
+
return e && e instanceof Ve || Tr(e) && at(e);
|
|
4181
4006
|
}
|
|
4182
|
-
function
|
|
4183
|
-
return
|
|
4007
|
+
function Er(e) {
|
|
4008
|
+
return A(e == null ? void 0 : e.lift);
|
|
4184
4009
|
}
|
|
4185
|
-
function
|
|
4010
|
+
function Be(e) {
|
|
4186
4011
|
return function(n) {
|
|
4187
|
-
if (
|
|
4012
|
+
if (Er(n))
|
|
4188
4013
|
return n.lift(function(t) {
|
|
4189
4014
|
try {
|
|
4190
4015
|
return e(t, this);
|
|
@@ -4195,36 +4020,36 @@ function Ie(e) {
|
|
|
4195
4020
|
throw new TypeError("Unable to lift unknown Observable type");
|
|
4196
4021
|
};
|
|
4197
4022
|
}
|
|
4198
|
-
function
|
|
4199
|
-
return new
|
|
4023
|
+
function ut(e, n, t, o, r) {
|
|
4024
|
+
return new Ir(e, n, t, o, r);
|
|
4200
4025
|
}
|
|
4201
|
-
var
|
|
4202
|
-
|
|
4203
|
-
function n(t, o, r, a,
|
|
4204
|
-
var
|
|
4205
|
-
return
|
|
4026
|
+
var Ir = function(e) {
|
|
4027
|
+
q(n, e);
|
|
4028
|
+
function n(t, o, r, a, i, s) {
|
|
4029
|
+
var d = e.call(this, t) || this;
|
|
4030
|
+
return d.onFinalize = i, d.shouldUnsubscribe = s, d._next = o ? function(l) {
|
|
4206
4031
|
try {
|
|
4207
|
-
o(
|
|
4208
|
-
} catch (
|
|
4209
|
-
t.error(
|
|
4032
|
+
o(l);
|
|
4033
|
+
} catch (c) {
|
|
4034
|
+
t.error(c);
|
|
4210
4035
|
}
|
|
4211
|
-
} : e.prototype._next,
|
|
4036
|
+
} : e.prototype._next, d._error = a ? function(l) {
|
|
4212
4037
|
try {
|
|
4213
|
-
a(
|
|
4214
|
-
} catch (
|
|
4215
|
-
t.error(
|
|
4038
|
+
a(l);
|
|
4039
|
+
} catch (c) {
|
|
4040
|
+
t.error(c);
|
|
4216
4041
|
} finally {
|
|
4217
4042
|
this.unsubscribe();
|
|
4218
4043
|
}
|
|
4219
|
-
} : e.prototype._error,
|
|
4044
|
+
} : e.prototype._error, d._complete = r ? function() {
|
|
4220
4045
|
try {
|
|
4221
4046
|
r();
|
|
4222
|
-
} catch (
|
|
4223
|
-
t.error(
|
|
4047
|
+
} catch (l) {
|
|
4048
|
+
t.error(l);
|
|
4224
4049
|
} finally {
|
|
4225
4050
|
this.unsubscribe();
|
|
4226
4051
|
}
|
|
4227
|
-
} : e.prototype._complete,
|
|
4052
|
+
} : e.prototype._complete, d;
|
|
4228
4053
|
}
|
|
4229
4054
|
return n.prototype.unsubscribe = function() {
|
|
4230
4055
|
var t;
|
|
@@ -4233,38 +4058,38 @@ var Ar = function(e) {
|
|
|
4233
4058
|
e.prototype.unsubscribe.call(this), !o && ((t = this.onFinalize) === null || t === void 0 || t.call(this));
|
|
4234
4059
|
}
|
|
4235
4060
|
}, n;
|
|
4236
|
-
}(
|
|
4061
|
+
}(Ve), Mr = ot(function(e) {
|
|
4237
4062
|
return function() {
|
|
4238
4063
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
4239
4064
|
};
|
|
4240
|
-
}),
|
|
4241
|
-
|
|
4065
|
+
}), st = function(e) {
|
|
4066
|
+
q(n, e);
|
|
4242
4067
|
function n() {
|
|
4243
4068
|
var t = e.call(this) || this;
|
|
4244
4069
|
return t.closed = !1, t.currentObservers = null, t.observers = [], t.isStopped = !1, t.hasError = !1, t.thrownError = null, t;
|
|
4245
4070
|
}
|
|
4246
4071
|
return n.prototype.lift = function(t) {
|
|
4247
|
-
var o = new
|
|
4072
|
+
var o = new Le(this, this);
|
|
4248
4073
|
return o.operator = t, o;
|
|
4249
4074
|
}, n.prototype._throwIfClosed = function() {
|
|
4250
4075
|
if (this.closed)
|
|
4251
|
-
throw new
|
|
4076
|
+
throw new Mr();
|
|
4252
4077
|
}, n.prototype.next = function(t) {
|
|
4253
4078
|
var o = this;
|
|
4254
|
-
|
|
4079
|
+
ee(function() {
|
|
4255
4080
|
var r, a;
|
|
4256
4081
|
if (o._throwIfClosed(), !o.isStopped) {
|
|
4257
4082
|
o.currentObservers || (o.currentObservers = Array.from(o.observers));
|
|
4258
4083
|
try {
|
|
4259
|
-
for (var
|
|
4260
|
-
var
|
|
4261
|
-
|
|
4084
|
+
for (var i = Y(o.currentObservers), s = i.next(); !s.done; s = i.next()) {
|
|
4085
|
+
var d = s.value;
|
|
4086
|
+
d.next(t);
|
|
4262
4087
|
}
|
|
4263
|
-
} catch (
|
|
4264
|
-
r = { error:
|
|
4088
|
+
} catch (l) {
|
|
4089
|
+
r = { error: l };
|
|
4265
4090
|
} finally {
|
|
4266
4091
|
try {
|
|
4267
|
-
s && !s.done && (a =
|
|
4092
|
+
s && !s.done && (a = i.return) && a.call(i);
|
|
4268
4093
|
} finally {
|
|
4269
4094
|
if (r) throw r.error;
|
|
4270
4095
|
}
|
|
@@ -4273,7 +4098,7 @@ var Ar = function(e) {
|
|
|
4273
4098
|
});
|
|
4274
4099
|
}, n.prototype.error = function(t) {
|
|
4275
4100
|
var o = this;
|
|
4276
|
-
|
|
4101
|
+
ee(function() {
|
|
4277
4102
|
if (o._throwIfClosed(), !o.isStopped) {
|
|
4278
4103
|
o.hasError = o.isStopped = !0, o.thrownError = t;
|
|
4279
4104
|
for (var r = o.observers; r.length; )
|
|
@@ -4282,7 +4107,7 @@ var Ar = function(e) {
|
|
|
4282
4107
|
});
|
|
4283
4108
|
}, n.prototype.complete = function() {
|
|
4284
4109
|
var t = this;
|
|
4285
|
-
|
|
4110
|
+
ee(function() {
|
|
4286
4111
|
if (t._throwIfClosed(), !t.isStopped) {
|
|
4287
4112
|
t.isStopped = !0;
|
|
4288
4113
|
for (var o = t.observers; o.length; )
|
|
@@ -4303,21 +4128,21 @@ var Ar = function(e) {
|
|
|
4303
4128
|
}, n.prototype._subscribe = function(t) {
|
|
4304
4129
|
return this._throwIfClosed(), this._checkFinalizedStatuses(t), this._innerSubscribe(t);
|
|
4305
4130
|
}, n.prototype._innerSubscribe = function(t) {
|
|
4306
|
-
var o = this, r = this, a = r.hasError,
|
|
4307
|
-
return a ||
|
|
4308
|
-
o.currentObservers = null,
|
|
4131
|
+
var o = this, r = this, a = r.hasError, i = r.isStopped, s = r.observers;
|
|
4132
|
+
return a || i ? rt : (this.currentObservers = null, s.push(t), new Q(function() {
|
|
4133
|
+
o.currentObservers = null, ae(s, t);
|
|
4309
4134
|
}));
|
|
4310
4135
|
}, n.prototype._checkFinalizedStatuses = function(t) {
|
|
4311
|
-
var o = this, r = o.hasError, a = o.thrownError,
|
|
4312
|
-
r ? t.error(a) :
|
|
4136
|
+
var o = this, r = o.hasError, a = o.thrownError, i = o.isStopped;
|
|
4137
|
+
r ? t.error(a) : i && t.complete();
|
|
4313
4138
|
}, n.prototype.asObservable = function() {
|
|
4314
|
-
var t = new
|
|
4139
|
+
var t = new $();
|
|
4315
4140
|
return t.source = this, t;
|
|
4316
4141
|
}, n.create = function(t, o) {
|
|
4317
|
-
return new
|
|
4142
|
+
return new Le(t, o);
|
|
4318
4143
|
}, n;
|
|
4319
|
-
}(
|
|
4320
|
-
|
|
4144
|
+
}($), Le = function(e) {
|
|
4145
|
+
q(n, e);
|
|
4321
4146
|
function n(t, o) {
|
|
4322
4147
|
var r = e.call(this) || this;
|
|
4323
4148
|
return r.destination = t, r.source = o, r;
|
|
@@ -4333,33 +4158,33 @@ var Ar = function(e) {
|
|
|
4333
4158
|
(o = (t = this.destination) === null || t === void 0 ? void 0 : t.complete) === null || o === void 0 || o.call(t);
|
|
4334
4159
|
}, n.prototype._subscribe = function(t) {
|
|
4335
4160
|
var o, r;
|
|
4336
|
-
return (r = (o = this.source) === null || o === void 0 ? void 0 : o.subscribe(t)) !== null && r !== void 0 ? r :
|
|
4161
|
+
return (r = (o = this.source) === null || o === void 0 ? void 0 : o.subscribe(t)) !== null && r !== void 0 ? r : rt;
|
|
4337
4162
|
}, n;
|
|
4338
|
-
}(
|
|
4163
|
+
}(st), Pr = {
|
|
4339
4164
|
now: function() {
|
|
4340
4165
|
return Date.now();
|
|
4341
4166
|
},
|
|
4342
4167
|
delegate: void 0
|
|
4343
|
-
},
|
|
4344
|
-
|
|
4168
|
+
}, Ar = function(e) {
|
|
4169
|
+
q(n, e);
|
|
4345
4170
|
function n(t, o) {
|
|
4346
4171
|
return e.call(this) || this;
|
|
4347
4172
|
}
|
|
4348
4173
|
return n.prototype.schedule = function(t, o) {
|
|
4349
4174
|
return this;
|
|
4350
4175
|
}, n;
|
|
4351
|
-
}(
|
|
4176
|
+
}(Q), je = {
|
|
4352
4177
|
setInterval: function(e, n) {
|
|
4353
4178
|
for (var t = [], o = 2; o < arguments.length; o++)
|
|
4354
4179
|
t[o - 2] = arguments[o];
|
|
4355
|
-
return setInterval.apply(void 0,
|
|
4180
|
+
return setInterval.apply(void 0, re([e, n], oe(t)));
|
|
4356
4181
|
},
|
|
4357
4182
|
clearInterval: function(e) {
|
|
4358
4183
|
return clearInterval(e);
|
|
4359
4184
|
},
|
|
4360
4185
|
delegate: void 0
|
|
4361
|
-
},
|
|
4362
|
-
|
|
4186
|
+
}, Nr = function(e) {
|
|
4187
|
+
q(n, e);
|
|
4363
4188
|
function n(t, o) {
|
|
4364
4189
|
var r = e.call(this, t, o) || this;
|
|
4365
4190
|
return r.scheduler = t, r.work = o, r.pending = !1, r;
|
|
@@ -4369,14 +4194,14 @@ var Ar = function(e) {
|
|
|
4369
4194
|
if (o === void 0 && (o = 0), this.closed)
|
|
4370
4195
|
return this;
|
|
4371
4196
|
this.state = t;
|
|
4372
|
-
var a = this.id,
|
|
4373
|
-
return a != null && (this.id = this.recycleAsyncId(
|
|
4197
|
+
var a = this.id, i = this.scheduler;
|
|
4198
|
+
return a != null && (this.id = this.recycleAsyncId(i, a, o)), this.pending = !0, this.delay = o, this.id = (r = this.id) !== null && r !== void 0 ? r : this.requestAsyncId(i, this.id, o), this;
|
|
4374
4199
|
}, n.prototype.requestAsyncId = function(t, o, r) {
|
|
4375
|
-
return r === void 0 && (r = 0),
|
|
4200
|
+
return r === void 0 && (r = 0), je.setInterval(t.flush.bind(t, this), r);
|
|
4376
4201
|
}, n.prototype.recycleAsyncId = function(t, o, r) {
|
|
4377
4202
|
if (r === void 0 && (r = 0), r != null && this.delay === r && this.pending === !1)
|
|
4378
4203
|
return o;
|
|
4379
|
-
o != null &&
|
|
4204
|
+
o != null && je.clearInterval(o);
|
|
4380
4205
|
}, n.prototype.execute = function(t, o) {
|
|
4381
4206
|
if (this.closed)
|
|
4382
4207
|
return new Error("executing a cancelled action");
|
|
@@ -4389,28 +4214,28 @@ var Ar = function(e) {
|
|
|
4389
4214
|
var r = !1, a;
|
|
4390
4215
|
try {
|
|
4391
4216
|
this.work(t);
|
|
4392
|
-
} catch (
|
|
4393
|
-
r = !0, a =
|
|
4217
|
+
} catch (i) {
|
|
4218
|
+
r = !0, a = i || new Error("Scheduled action threw falsy error");
|
|
4394
4219
|
}
|
|
4395
4220
|
if (r)
|
|
4396
4221
|
return this.unsubscribe(), a;
|
|
4397
4222
|
}, n.prototype.unsubscribe = function() {
|
|
4398
4223
|
if (!this.closed) {
|
|
4399
4224
|
var t = this, o = t.id, r = t.scheduler, a = r.actions;
|
|
4400
|
-
this.work = this.state = this.scheduler = null, this.pending = !1,
|
|
4225
|
+
this.work = this.state = this.scheduler = null, this.pending = !1, ae(a, this), o != null && (this.id = this.recycleAsyncId(r, o, null)), this.delay = null, e.prototype.unsubscribe.call(this);
|
|
4401
4226
|
}
|
|
4402
4227
|
}, n;
|
|
4403
|
-
}(
|
|
4228
|
+
}(Ar), $e = function() {
|
|
4404
4229
|
function e(n, t) {
|
|
4405
4230
|
t === void 0 && (t = e.now), this.schedulerActionCtor = n, this.now = t;
|
|
4406
4231
|
}
|
|
4407
4232
|
return e.prototype.schedule = function(n, t, o) {
|
|
4408
4233
|
return t === void 0 && (t = 0), new this.schedulerActionCtor(this, n).schedule(o, t);
|
|
4409
|
-
}, e.now =
|
|
4410
|
-
}(),
|
|
4411
|
-
|
|
4234
|
+
}, e.now = Pr.now, e;
|
|
4235
|
+
}(), Or = function(e) {
|
|
4236
|
+
q(n, e);
|
|
4412
4237
|
function n(t, o) {
|
|
4413
|
-
o === void 0 && (o =
|
|
4238
|
+
o === void 0 && (o = $e.now);
|
|
4414
4239
|
var r = e.call(this, t, o) || this;
|
|
4415
4240
|
return r.actions = [], r._active = !1, r;
|
|
4416
4241
|
}
|
|
@@ -4432,59 +4257,59 @@ var Ar = function(e) {
|
|
|
4432
4257
|
throw r;
|
|
4433
4258
|
}
|
|
4434
4259
|
}, n;
|
|
4435
|
-
}(
|
|
4436
|
-
function
|
|
4437
|
-
return e &&
|
|
4260
|
+
}($e), Lr = new Or(Nr);
|
|
4261
|
+
function jr(e) {
|
|
4262
|
+
return e && A(e.schedule);
|
|
4438
4263
|
}
|
|
4439
|
-
function
|
|
4264
|
+
function $r(e) {
|
|
4440
4265
|
return e[e.length - 1];
|
|
4441
4266
|
}
|
|
4442
|
-
function
|
|
4443
|
-
return
|
|
4267
|
+
function Dr(e) {
|
|
4268
|
+
return jr($r(e)) ? e.pop() : void 0;
|
|
4444
4269
|
}
|
|
4445
|
-
var
|
|
4270
|
+
var ct = function(e) {
|
|
4446
4271
|
return e && typeof e.length == "number" && typeof e != "function";
|
|
4447
4272
|
};
|
|
4448
|
-
function
|
|
4449
|
-
return
|
|
4273
|
+
function dt(e) {
|
|
4274
|
+
return A(e == null ? void 0 : e.then);
|
|
4450
4275
|
}
|
|
4451
|
-
function
|
|
4452
|
-
return
|
|
4276
|
+
function pt(e) {
|
|
4277
|
+
return A(e[xe]);
|
|
4453
4278
|
}
|
|
4454
|
-
function
|
|
4455
|
-
return Symbol.asyncIterator &&
|
|
4279
|
+
function ft(e) {
|
|
4280
|
+
return Symbol.asyncIterator && A(e == null ? void 0 : e[Symbol.asyncIterator]);
|
|
4456
4281
|
}
|
|
4457
|
-
function
|
|
4282
|
+
function yt(e) {
|
|
4458
4283
|
return new TypeError("You provided " + (e !== null && typeof e == "object" ? "an invalid object" : "'" + e + "'") + " where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.");
|
|
4459
4284
|
}
|
|
4460
|
-
function
|
|
4285
|
+
function Ur() {
|
|
4461
4286
|
return typeof Symbol != "function" || !Symbol.iterator ? "@@iterator" : Symbol.iterator;
|
|
4462
4287
|
}
|
|
4463
|
-
var
|
|
4464
|
-
function
|
|
4465
|
-
return
|
|
4288
|
+
var vt = Ur();
|
|
4289
|
+
function mt(e) {
|
|
4290
|
+
return A(e == null ? void 0 : e[vt]);
|
|
4466
4291
|
}
|
|
4467
|
-
function
|
|
4468
|
-
return
|
|
4292
|
+
function ht(e) {
|
|
4293
|
+
return br(this, arguments, function() {
|
|
4469
4294
|
var t, o, r, a;
|
|
4470
|
-
return
|
|
4471
|
-
switch (
|
|
4295
|
+
return nt(this, function(i) {
|
|
4296
|
+
switch (i.label) {
|
|
4472
4297
|
case 0:
|
|
4473
|
-
t = e.getReader(),
|
|
4298
|
+
t = e.getReader(), i.label = 1;
|
|
4474
4299
|
case 1:
|
|
4475
|
-
|
|
4300
|
+
i.trys.push([1, , 9, 10]), i.label = 2;
|
|
4476
4301
|
case 2:
|
|
4477
|
-
return [4,
|
|
4302
|
+
return [4, z(t.read())];
|
|
4478
4303
|
case 3:
|
|
4479
|
-
return o =
|
|
4304
|
+
return o = i.sent(), r = o.value, a = o.done, a ? [4, z(void 0)] : [3, 5];
|
|
4480
4305
|
case 4:
|
|
4481
|
-
return [2,
|
|
4306
|
+
return [2, i.sent()];
|
|
4482
4307
|
case 5:
|
|
4483
|
-
return [4,
|
|
4308
|
+
return [4, z(r)];
|
|
4484
4309
|
case 6:
|
|
4485
|
-
return [4,
|
|
4310
|
+
return [4, i.sent()];
|
|
4486
4311
|
case 7:
|
|
4487
|
-
return
|
|
4312
|
+
return i.sent(), [3, 2];
|
|
4488
4313
|
case 8:
|
|
4489
4314
|
return [3, 10];
|
|
4490
4315
|
case 9:
|
|
@@ -4495,59 +4320,59 @@ function Bt(e) {
|
|
|
4495
4320
|
});
|
|
4496
4321
|
});
|
|
4497
4322
|
}
|
|
4498
|
-
function
|
|
4499
|
-
return
|
|
4323
|
+
function bt(e) {
|
|
4324
|
+
return A(e == null ? void 0 : e.getReader);
|
|
4500
4325
|
}
|
|
4501
|
-
function
|
|
4502
|
-
if (e instanceof
|
|
4326
|
+
function Fe(e) {
|
|
4327
|
+
if (e instanceof $)
|
|
4503
4328
|
return e;
|
|
4504
4329
|
if (e != null) {
|
|
4505
|
-
if (
|
|
4330
|
+
if (pt(e))
|
|
4331
|
+
return Rr(e);
|
|
4332
|
+
if (ct(e))
|
|
4333
|
+
return Gr(e);
|
|
4334
|
+
if (dt(e))
|
|
4335
|
+
return _r(e);
|
|
4336
|
+
if (ft(e))
|
|
4337
|
+
return gt(e);
|
|
4338
|
+
if (mt(e))
|
|
4506
4339
|
return qr(e);
|
|
4507
4340
|
if (bt(e))
|
|
4508
|
-
return Wr(e);
|
|
4509
|
-
if (gt(e))
|
|
4510
4341
|
return Hr(e);
|
|
4511
|
-
|
|
4512
|
-
|
|
4513
|
-
if (Vt(e))
|
|
4514
|
-
return zr(e);
|
|
4515
|
-
if (Tt(e))
|
|
4516
|
-
return Yr(e);
|
|
4517
|
-
}
|
|
4518
|
-
throw wt(e);
|
|
4342
|
+
}
|
|
4343
|
+
throw yt(e);
|
|
4519
4344
|
}
|
|
4520
|
-
function
|
|
4521
|
-
return new
|
|
4522
|
-
var t = e[
|
|
4523
|
-
if (
|
|
4345
|
+
function Rr(e) {
|
|
4346
|
+
return new $(function(n) {
|
|
4347
|
+
var t = e[xe]();
|
|
4348
|
+
if (A(t.subscribe))
|
|
4524
4349
|
return t.subscribe(n);
|
|
4525
4350
|
throw new TypeError("Provided object does not correctly implement Symbol.observable");
|
|
4526
4351
|
});
|
|
4527
4352
|
}
|
|
4528
|
-
function
|
|
4529
|
-
return new
|
|
4353
|
+
function Gr(e) {
|
|
4354
|
+
return new $(function(n) {
|
|
4530
4355
|
for (var t = 0; t < e.length && !n.closed; t++)
|
|
4531
4356
|
n.next(e[t]);
|
|
4532
4357
|
n.complete();
|
|
4533
4358
|
});
|
|
4534
4359
|
}
|
|
4535
|
-
function
|
|
4536
|
-
return new
|
|
4360
|
+
function _r(e) {
|
|
4361
|
+
return new $(function(n) {
|
|
4537
4362
|
e.then(function(t) {
|
|
4538
4363
|
n.closed || (n.next(t), n.complete());
|
|
4539
4364
|
}, function(t) {
|
|
4540
4365
|
return n.error(t);
|
|
4541
|
-
}).then(null,
|
|
4366
|
+
}).then(null, lt);
|
|
4542
4367
|
});
|
|
4543
4368
|
}
|
|
4544
|
-
function
|
|
4545
|
-
return new
|
|
4369
|
+
function qr(e) {
|
|
4370
|
+
return new $(function(n) {
|
|
4546
4371
|
var t, o;
|
|
4547
4372
|
try {
|
|
4548
|
-
for (var r =
|
|
4549
|
-
var
|
|
4550
|
-
if (n.next(
|
|
4373
|
+
for (var r = Y(e), a = r.next(); !a.done; a = r.next()) {
|
|
4374
|
+
var i = a.value;
|
|
4375
|
+
if (n.next(i), n.closed)
|
|
4551
4376
|
return;
|
|
4552
4377
|
}
|
|
4553
4378
|
} catch (s) {
|
|
@@ -4562,41 +4387,41 @@ function zr(e) {
|
|
|
4562
4387
|
n.complete();
|
|
4563
4388
|
});
|
|
4564
4389
|
}
|
|
4565
|
-
function
|
|
4566
|
-
return new
|
|
4567
|
-
|
|
4390
|
+
function gt(e) {
|
|
4391
|
+
return new $(function(n) {
|
|
4392
|
+
Wr(e, n).catch(function(t) {
|
|
4568
4393
|
return n.error(t);
|
|
4569
4394
|
});
|
|
4570
4395
|
});
|
|
4571
4396
|
}
|
|
4572
|
-
function
|
|
4573
|
-
return
|
|
4397
|
+
function Hr(e) {
|
|
4398
|
+
return gt(ht(e));
|
|
4574
4399
|
}
|
|
4575
|
-
function
|
|
4400
|
+
function Wr(e, n) {
|
|
4576
4401
|
var t, o, r, a;
|
|
4577
|
-
return
|
|
4578
|
-
var
|
|
4579
|
-
return
|
|
4580
|
-
switch (
|
|
4402
|
+
return hr(this, void 0, void 0, function() {
|
|
4403
|
+
var i, s;
|
|
4404
|
+
return nt(this, function(d) {
|
|
4405
|
+
switch (d.label) {
|
|
4581
4406
|
case 0:
|
|
4582
|
-
|
|
4407
|
+
d.trys.push([0, 5, 6, 11]), t = gr(e), d.label = 1;
|
|
4583
4408
|
case 1:
|
|
4584
4409
|
return [4, t.next()];
|
|
4585
4410
|
case 2:
|
|
4586
|
-
if (o =
|
|
4587
|
-
if (
|
|
4411
|
+
if (o = d.sent(), !!o.done) return [3, 4];
|
|
4412
|
+
if (i = o.value, n.next(i), n.closed)
|
|
4588
4413
|
return [2];
|
|
4589
|
-
|
|
4414
|
+
d.label = 3;
|
|
4590
4415
|
case 3:
|
|
4591
4416
|
return [3, 1];
|
|
4592
4417
|
case 4:
|
|
4593
4418
|
return [3, 11];
|
|
4594
4419
|
case 5:
|
|
4595
|
-
return s =
|
|
4420
|
+
return s = d.sent(), r = { error: s }, [3, 11];
|
|
4596
4421
|
case 6:
|
|
4597
|
-
return
|
|
4422
|
+
return d.trys.push([6, , 9, 10]), o && !o.done && (a = t.return) ? [4, a.call(t)] : [3, 8];
|
|
4598
4423
|
case 7:
|
|
4599
|
-
|
|
4424
|
+
d.sent(), d.label = 8;
|
|
4600
4425
|
case 8:
|
|
4601
4426
|
return [3, 10];
|
|
4602
4427
|
case 9:
|
|
@@ -4610,7 +4435,7 @@ function Zr(e, n) {
|
|
|
4610
4435
|
});
|
|
4611
4436
|
});
|
|
4612
4437
|
}
|
|
4613
|
-
function
|
|
4438
|
+
function H(e, n, t, o, r) {
|
|
4614
4439
|
o === void 0 && (o = 0), r === void 0 && (r = !1);
|
|
4615
4440
|
var a = n.schedule(function() {
|
|
4616
4441
|
t(), r ? e.add(this.schedule(null, o)) : this.unsubscribe();
|
|
@@ -4618,70 +4443,70 @@ function z(e, n, t, o, r) {
|
|
|
4618
4443
|
if (e.add(a), !r)
|
|
4619
4444
|
return a;
|
|
4620
4445
|
}
|
|
4621
|
-
function
|
|
4622
|
-
return n === void 0 && (n = 0),
|
|
4623
|
-
t.subscribe(
|
|
4624
|
-
return
|
|
4446
|
+
function St(e, n) {
|
|
4447
|
+
return n === void 0 && (n = 0), Be(function(t, o) {
|
|
4448
|
+
t.subscribe(ut(o, function(r) {
|
|
4449
|
+
return H(o, e, function() {
|
|
4625
4450
|
return o.next(r);
|
|
4626
4451
|
}, n);
|
|
4627
4452
|
}, function() {
|
|
4628
|
-
return
|
|
4453
|
+
return H(o, e, function() {
|
|
4629
4454
|
return o.complete();
|
|
4630
4455
|
}, n);
|
|
4631
4456
|
}, function(r) {
|
|
4632
|
-
return
|
|
4457
|
+
return H(o, e, function() {
|
|
4633
4458
|
return o.error(r);
|
|
4634
4459
|
}, n);
|
|
4635
4460
|
}));
|
|
4636
4461
|
});
|
|
4637
4462
|
}
|
|
4638
|
-
function
|
|
4639
|
-
return n === void 0 && (n = 0),
|
|
4463
|
+
function Ct(e, n) {
|
|
4464
|
+
return n === void 0 && (n = 0), Be(function(t, o) {
|
|
4640
4465
|
o.add(e.schedule(function() {
|
|
4641
4466
|
return t.subscribe(o);
|
|
4642
4467
|
}, n));
|
|
4643
4468
|
});
|
|
4644
4469
|
}
|
|
4645
|
-
function
|
|
4646
|
-
return
|
|
4470
|
+
function zr(e, n) {
|
|
4471
|
+
return Fe(e).pipe(Ct(n), St(n));
|
|
4647
4472
|
}
|
|
4648
|
-
function
|
|
4649
|
-
return
|
|
4473
|
+
function Yr(e, n) {
|
|
4474
|
+
return Fe(e).pipe(Ct(n), St(n));
|
|
4650
4475
|
}
|
|
4651
|
-
function
|
|
4652
|
-
return new
|
|
4476
|
+
function Zr(e, n) {
|
|
4477
|
+
return new $(function(t) {
|
|
4653
4478
|
var o = 0;
|
|
4654
4479
|
return n.schedule(function() {
|
|
4655
4480
|
o === e.length ? t.complete() : (t.next(e[o++]), t.closed || this.schedule());
|
|
4656
4481
|
});
|
|
4657
4482
|
});
|
|
4658
4483
|
}
|
|
4659
|
-
function
|
|
4660
|
-
return new
|
|
4484
|
+
function Xr(e, n) {
|
|
4485
|
+
return new $(function(t) {
|
|
4661
4486
|
var o;
|
|
4662
|
-
return
|
|
4663
|
-
o = e[
|
|
4664
|
-
var r, a,
|
|
4487
|
+
return H(t, n, function() {
|
|
4488
|
+
o = e[vt](), H(t, n, function() {
|
|
4489
|
+
var r, a, i;
|
|
4665
4490
|
try {
|
|
4666
|
-
r = o.next(), a = r.value,
|
|
4491
|
+
r = o.next(), a = r.value, i = r.done;
|
|
4667
4492
|
} catch (s) {
|
|
4668
4493
|
t.error(s);
|
|
4669
4494
|
return;
|
|
4670
4495
|
}
|
|
4671
|
-
|
|
4496
|
+
i ? t.complete() : t.next(a);
|
|
4672
4497
|
}, 0, !0);
|
|
4673
4498
|
}), function() {
|
|
4674
|
-
return
|
|
4499
|
+
return A(o == null ? void 0 : o.return) && o.return();
|
|
4675
4500
|
};
|
|
4676
4501
|
});
|
|
4677
4502
|
}
|
|
4678
|
-
function
|
|
4503
|
+
function wt(e, n) {
|
|
4679
4504
|
if (!e)
|
|
4680
4505
|
throw new Error("Iterable cannot be null");
|
|
4681
|
-
return new
|
|
4682
|
-
|
|
4506
|
+
return new $(function(t) {
|
|
4507
|
+
H(t, n, function() {
|
|
4683
4508
|
var o = e[Symbol.asyncIterator]();
|
|
4684
|
-
|
|
4509
|
+
H(t, n, function() {
|
|
4685
4510
|
o.next().then(function(r) {
|
|
4686
4511
|
r.done ? t.complete() : t.next(r.value);
|
|
4687
4512
|
});
|
|
@@ -4689,54 +4514,54 @@ function Et(e, n) {
|
|
|
4689
4514
|
});
|
|
4690
4515
|
});
|
|
4691
4516
|
}
|
|
4692
|
-
function
|
|
4693
|
-
return
|
|
4517
|
+
function Jr(e, n) {
|
|
4518
|
+
return wt(ht(e), n);
|
|
4694
4519
|
}
|
|
4695
|
-
function
|
|
4520
|
+
function Qr(e, n) {
|
|
4696
4521
|
if (e != null) {
|
|
4697
|
-
if (
|
|
4522
|
+
if (pt(e))
|
|
4523
|
+
return zr(e, n);
|
|
4524
|
+
if (ct(e))
|
|
4525
|
+
return Zr(e, n);
|
|
4526
|
+
if (dt(e))
|
|
4527
|
+
return Yr(e, n);
|
|
4528
|
+
if (ft(e))
|
|
4529
|
+
return wt(e, n);
|
|
4530
|
+
if (mt(e))
|
|
4698
4531
|
return Xr(e, n);
|
|
4699
4532
|
if (bt(e))
|
|
4700
|
-
return Qr(e, n);
|
|
4701
|
-
if (gt(e))
|
|
4702
4533
|
return Jr(e, n);
|
|
4703
|
-
|
|
4704
|
-
|
|
4705
|
-
if (Vt(e))
|
|
4706
|
-
return Kr(e, n);
|
|
4707
|
-
if (Tt(e))
|
|
4708
|
-
return ea(e, n);
|
|
4709
|
-
}
|
|
4710
|
-
throw wt(e);
|
|
4534
|
+
}
|
|
4535
|
+
throw yt(e);
|
|
4711
4536
|
}
|
|
4712
|
-
function
|
|
4713
|
-
return n ?
|
|
4537
|
+
function Kr(e, n) {
|
|
4538
|
+
return n ? Qr(e, n) : Fe(e);
|
|
4714
4539
|
}
|
|
4715
|
-
function
|
|
4540
|
+
function ea() {
|
|
4716
4541
|
for (var e = [], n = 0; n < arguments.length; n++)
|
|
4717
4542
|
e[n] = arguments[n];
|
|
4718
|
-
var t =
|
|
4719
|
-
return
|
|
4543
|
+
var t = Dr(e);
|
|
4544
|
+
return Kr(e, t);
|
|
4720
4545
|
}
|
|
4721
|
-
function
|
|
4722
|
-
return n === void 0 && (n =
|
|
4723
|
-
var r = null, a = null,
|
|
4546
|
+
function ta(e, n) {
|
|
4547
|
+
return n === void 0 && (n = Lr), Be(function(t, o) {
|
|
4548
|
+
var r = null, a = null, i = null, s = function() {
|
|
4724
4549
|
if (r) {
|
|
4725
4550
|
r.unsubscribe(), r = null;
|
|
4726
|
-
var
|
|
4727
|
-
a = null, o.next(
|
|
4551
|
+
var l = a;
|
|
4552
|
+
a = null, o.next(l);
|
|
4728
4553
|
}
|
|
4729
4554
|
};
|
|
4730
|
-
function
|
|
4731
|
-
var
|
|
4732
|
-
if (
|
|
4733
|
-
r = this.schedule(void 0,
|
|
4555
|
+
function d() {
|
|
4556
|
+
var l = i + e, c = n.now();
|
|
4557
|
+
if (c < l) {
|
|
4558
|
+
r = this.schedule(void 0, l - c), o.add(r);
|
|
4734
4559
|
return;
|
|
4735
4560
|
}
|
|
4736
4561
|
s();
|
|
4737
4562
|
}
|
|
4738
|
-
t.subscribe(
|
|
4739
|
-
a =
|
|
4563
|
+
t.subscribe(ut(o, function(l) {
|
|
4564
|
+
a = l, i = n.now(), r || (r = n.schedule(d, e), o.add(r));
|
|
4740
4565
|
}, function() {
|
|
4741
4566
|
s(), o.complete();
|
|
4742
4567
|
}, void 0, function() {
|
|
@@ -4744,180 +4569,180 @@ function ra(e, n) {
|
|
|
4744
4569
|
}));
|
|
4745
4570
|
});
|
|
4746
4571
|
}
|
|
4747
|
-
const
|
|
4572
|
+
const ce = /* @__PURE__ */ D({
|
|
4748
4573
|
name: "FPropertyEditor",
|
|
4749
|
-
props:
|
|
4574
|
+
props: _e,
|
|
4750
4575
|
emits: ["propertyEditorValueChanged"],
|
|
4751
4576
|
setup(e, n) {
|
|
4752
|
-
const t =
|
|
4577
|
+
const t = b(Gn), o = b(""), r = b("const"), a = b([]), i = b(!1);
|
|
4753
4578
|
let s;
|
|
4754
|
-
const
|
|
4579
|
+
const d = b(""), l = b(""), c = b([]);
|
|
4755
4580
|
let u;
|
|
4756
|
-
const f =
|
|
4757
|
-
|
|
4758
|
-
const y =
|
|
4581
|
+
const f = b([]), p = b("是");
|
|
4582
|
+
b("");
|
|
4583
|
+
const y = b(!1), v = b("<span class='f-icon f-icon-more-horizontal'></span>"), m = b(!1), S = b([]), {
|
|
4759
4584
|
numberConstValue: V,
|
|
4760
|
-
bindVariableValue:
|
|
4585
|
+
bindVariableValue: k,
|
|
4761
4586
|
dataStatesBindValue: w,
|
|
4762
|
-
dataStatesValueArray:
|
|
4763
|
-
constEnumBindValue:
|
|
4764
|
-
setValue:
|
|
4765
|
-
} =
|
|
4766
|
-
updateData:
|
|
4767
|
-
changeState:
|
|
4768
|
-
prefix:
|
|
4769
|
-
propertyEditorValueChange:
|
|
4770
|
-
} =
|
|
4771
|
-
function
|
|
4772
|
-
|
|
4587
|
+
dataStatesValueArray: g,
|
|
4588
|
+
constEnumBindValue: x,
|
|
4589
|
+
setValue: T
|
|
4590
|
+
} = vr(t, a, r, u, p, o, y), {
|
|
4591
|
+
updateData: M,
|
|
4592
|
+
changeState: R,
|
|
4593
|
+
prefix: le,
|
|
4594
|
+
propertyEditorValueChange: Vt
|
|
4595
|
+
} = mr(n, t, x, a, P, f, u, p, g, o, m, r);
|
|
4596
|
+
function xt() {
|
|
4597
|
+
S.value = Rn.value.filter((h) => t.value.editorOptions.types.includes(h.id));
|
|
4773
4598
|
}
|
|
4774
|
-
function
|
|
4775
|
-
r.value = F(
|
|
4599
|
+
function Bt() {
|
|
4600
|
+
r.value = F(S.value.find((h) => h.id === t.value.propertyValue.type));
|
|
4776
4601
|
}
|
|
4777
|
-
function
|
|
4778
|
-
|
|
4602
|
+
function Ft() {
|
|
4603
|
+
Bt(), r.value.id === "variable" && t.value.propertyValue.value === void 0 && (t.value.propertyValue = F(P.value.variableValue)), P.value[`${r.value.id}Value`] = F(t.value.propertyValue), T();
|
|
4779
4604
|
}
|
|
4780
|
-
function
|
|
4781
|
-
r.value = F(
|
|
4605
|
+
function Tt(h) {
|
|
4606
|
+
r.value = F(S.value.find((N) => N.label === h[0].label)), r.value.id === "expression" && (P.value.expressionValue.value && (o.value = P.value.expressionValue.value.value), y.value = !0), r.value.id === "custom" && Ut(), M();
|
|
4782
4607
|
}
|
|
4783
|
-
function
|
|
4784
|
-
|
|
4608
|
+
function kt(h) {
|
|
4609
|
+
x.value = F(h.value), t.value.propertyValue.value = F(h.value), P.value.constValue.value = F(h.value), M();
|
|
4785
4610
|
}
|
|
4786
|
-
function
|
|
4787
|
-
|
|
4611
|
+
function Et(h) {
|
|
4612
|
+
P.value.constValue.value = h, M();
|
|
4788
4613
|
}
|
|
4789
|
-
function
|
|
4790
|
-
|
|
4614
|
+
function It(h) {
|
|
4615
|
+
P.value.constValue.value = h, M();
|
|
4791
4616
|
}
|
|
4792
|
-
function
|
|
4793
|
-
const
|
|
4794
|
-
s = `${
|
|
4617
|
+
function Mt() {
|
|
4618
|
+
const h = t.value.propertyName, N = h[0].toUpperCase() + h.substr(1), j = t.value.controlName, Ee = t.value.editorOptions.newVariablePrefix || "", en = Ee ? j[0].toUpperCase() + j.substr(1) : j[0].toLowerCase() + j.substr(1);
|
|
4619
|
+
s = `${Ee}${en}${N}`, Pt();
|
|
4795
4620
|
}
|
|
4796
|
-
function
|
|
4797
|
-
|
|
4621
|
+
function Pt() {
|
|
4622
|
+
At(), r.value.id === "variable" && (k.value = t.value.propertyValue.value.path), Te(), l.value !== t.value.propertyValue.value.path && M();
|
|
4798
4623
|
}
|
|
4799
|
-
function
|
|
4800
|
-
var
|
|
4801
|
-
let
|
|
4802
|
-
(
|
|
4803
|
-
|
|
4804
|
-
}),
|
|
4624
|
+
function At() {
|
|
4625
|
+
var N;
|
|
4626
|
+
let h = 0;
|
|
4627
|
+
(N = t.value.editorOptions.variables) == null || N.forEach((j) => {
|
|
4628
|
+
j.path !== s ? h += 1 : (l.value = t.value.propertyValue.value.path, t.value.propertyValue.value = F(j), P.value.variableValue.value = F(j));
|
|
4629
|
+
}), Nt(h);
|
|
4805
4630
|
}
|
|
4806
|
-
function
|
|
4807
|
-
var
|
|
4808
|
-
|
|
4631
|
+
function Nt(h) {
|
|
4632
|
+
var N;
|
|
4633
|
+
h === ((N = t.value.editorOptions.variables) == null ? void 0 : N.length) && (t.value.propertyValue.value.category = "local", t.value.propertyValue.value.path = s, t.value.propertyValue.value.field = d, t.value.propertyValue.value.fullPath = s, t.value.propertyValue.value.newVariableType = t.value.editorOptions.newVariableType, Vt.value.isNewVariable = !0, t.value.editorOptions.variables.push(F(t.value.propertyValue.value)), P.value.variableValue.value = F(t.value.propertyValue.value));
|
|
4809
4634
|
}
|
|
4810
|
-
function
|
|
4811
|
-
!
|
|
4635
|
+
function Ot(h) {
|
|
4636
|
+
!h || !h.selections || h.selections.length < 1 || (P.value.variableValue.value.category = F(h.selections[0].category), P.value.variableValue.value.path = F(h.selections[0].path), P.value.variableValue.value.fullPath = F(h.selections[0].fullPath), P.value.variableValue.value.field = F(h.selections[0].field), k.value = F(h.value), M());
|
|
4812
4637
|
}
|
|
4813
|
-
function
|
|
4814
|
-
t.value.propertyValue.value.category = "", t.value.propertyValue.value.path = "", t.value.propertyValue.value.field = "", t.value.propertyValue.value.fullPath = "", r.value.id === "variable" && (
|
|
4638
|
+
function Lt() {
|
|
4639
|
+
t.value.propertyValue.value.category = "", t.value.propertyValue.value.path = "", t.value.propertyValue.value.field = "", t.value.propertyValue.value.fullPath = "", r.value.id === "variable" && (k.value = t.value.propertyValue.value.path), M();
|
|
4815
4640
|
}
|
|
4816
|
-
function
|
|
4817
|
-
|
|
4641
|
+
function Te() {
|
|
4642
|
+
c.value = F(t.value.editorOptions.variables);
|
|
4818
4643
|
}
|
|
4819
|
-
const
|
|
4820
|
-
const
|
|
4644
|
+
const jt = (h) => {
|
|
4645
|
+
const N = t.value.editorOptions.getVariables, j = {
|
|
4821
4646
|
showDialog: !0
|
|
4822
4647
|
};
|
|
4823
|
-
return
|
|
4648
|
+
return N && (c.value = N(), h && (h.data = c)), ea(j);
|
|
4824
4649
|
};
|
|
4825
|
-
function
|
|
4826
|
-
const
|
|
4827
|
-
id:
|
|
4828
|
-
name:
|
|
4829
|
-
exist:
|
|
4650
|
+
function $t(h) {
|
|
4651
|
+
const N = {
|
|
4652
|
+
id: h[0].id,
|
|
4653
|
+
name: h[0].exist,
|
|
4654
|
+
exist: h[0].name
|
|
4830
4655
|
};
|
|
4831
|
-
|
|
4656
|
+
P.value.stateMachineValue.value = F(N), p.value = t.value.propertyValue.value.exist === "是" ? "是" : "否", u = F(N.id), M();
|
|
4832
4657
|
}
|
|
4833
|
-
function
|
|
4834
|
-
f.value = F(t.value.editorOptions.stateMachine), p.value =
|
|
4658
|
+
function Dt() {
|
|
4659
|
+
f.value = F(t.value.editorOptions.stateMachine), p.value = P.value.stateMachineValue.value.exist === "是" ? "是" : "否";
|
|
4835
4660
|
}
|
|
4836
|
-
const
|
|
4837
|
-
function
|
|
4838
|
-
|
|
4839
|
-
|
|
4661
|
+
const ke = new st();
|
|
4662
|
+
function Ut() {
|
|
4663
|
+
ke.pipe(ta(700)).subscribe((h) => {
|
|
4664
|
+
P.value.customValue.value = h, M();
|
|
4840
4665
|
});
|
|
4841
4666
|
}
|
|
4842
|
-
function
|
|
4843
|
-
|
|
4667
|
+
function Rt(h) {
|
|
4668
|
+
ke.next(h);
|
|
4844
4669
|
}
|
|
4845
|
-
function
|
|
4670
|
+
function Gt() {
|
|
4846
4671
|
}
|
|
4847
|
-
function
|
|
4848
|
-
t.value.propertyValue.value = F(
|
|
4849
|
-
const
|
|
4850
|
-
w.value = F(
|
|
4672
|
+
function _t(h) {
|
|
4673
|
+
t.value.propertyValue.value = F(h), P.value.dataStatesValue.value = F(h);
|
|
4674
|
+
const N = h.map((j) => j.valueField).join(",");
|
|
4675
|
+
w.value = F(N), M();
|
|
4851
4676
|
}
|
|
4852
|
-
function
|
|
4853
|
-
return
|
|
4677
|
+
function qt() {
|
|
4678
|
+
return C("div", {
|
|
4854
4679
|
class: "f-page-single-property-editor-component-right-variable"
|
|
4855
|
-
}, [
|
|
4680
|
+
}, [C(G, {
|
|
4856
4681
|
class: [{
|
|
4857
|
-
"form-control-select-show":
|
|
4682
|
+
"form-control-select-show": i.value
|
|
4858
4683
|
}, {
|
|
4859
|
-
"form-control-select-hide": !
|
|
4684
|
+
"form-control-select-hide": !i.value
|
|
4860
4685
|
}],
|
|
4861
|
-
modelValue:
|
|
4862
|
-
"onUpdate:modelValue": (
|
|
4686
|
+
modelValue: k.value,
|
|
4687
|
+
"onUpdate:modelValue": (h) => k.value = h,
|
|
4863
4688
|
placeholder: "",
|
|
4864
4689
|
viewType: "text",
|
|
4865
4690
|
enableClear: !0,
|
|
4866
4691
|
valueField: "path",
|
|
4867
4692
|
textField: "fullPath",
|
|
4868
|
-
data:
|
|
4869
|
-
beforeShow:
|
|
4870
|
-
readonly:
|
|
4693
|
+
data: c.value,
|
|
4694
|
+
beforeShow: jt,
|
|
4695
|
+
readonly: m.value,
|
|
4871
4696
|
editable: !1,
|
|
4872
|
-
onValueChange: (
|
|
4873
|
-
onClear:
|
|
4874
|
-
}, null),
|
|
4697
|
+
onValueChange: (h) => Ot(h),
|
|
4698
|
+
onClear: Lt
|
|
4699
|
+
}, null), i.value ? C("div", {
|
|
4875
4700
|
class: "f-page-single-property-editor-component-variable-button"
|
|
4876
|
-
}, [
|
|
4701
|
+
}, [C("button", {
|
|
4877
4702
|
title: "variable-button",
|
|
4878
4703
|
class: "f-variable-button",
|
|
4879
|
-
onClick:
|
|
4880
|
-
}, [
|
|
4704
|
+
onClick: Mt
|
|
4705
|
+
}, [C("span", {
|
|
4881
4706
|
class: "f-icon f-icon-add",
|
|
4882
4707
|
style: "margin:unset;"
|
|
4883
4708
|
}, null)])]) : ""]);
|
|
4884
4709
|
}
|
|
4885
|
-
function
|
|
4886
|
-
return
|
|
4710
|
+
function Ht() {
|
|
4711
|
+
return C("div", {
|
|
4887
4712
|
class: "f-page-single-property-editor-component-right-customize"
|
|
4888
|
-
}, [
|
|
4713
|
+
}, [de(C("input", {
|
|
4889
4714
|
class: "form-control",
|
|
4890
4715
|
placeholder: "输入自定义内容",
|
|
4891
|
-
"onUpdate:modelValue": (
|
|
4892
|
-
onChange: (
|
|
4893
|
-
disabled:
|
|
4894
|
-
}, null), [[
|
|
4716
|
+
"onUpdate:modelValue": (h) => P.value.customValue.value = h,
|
|
4717
|
+
onChange: (h) => Rt(h.target.value),
|
|
4718
|
+
disabled: m.value
|
|
4719
|
+
}, null), [[Ie, P.value.customValue.value]])]);
|
|
4895
4720
|
}
|
|
4896
|
-
function
|
|
4897
|
-
return
|
|
4721
|
+
function Wt() {
|
|
4722
|
+
return C("div", {
|
|
4898
4723
|
class: "f-page-single-property-editor-component-right-expression"
|
|
4899
|
-
}, [
|
|
4724
|
+
}, [C(Z, {
|
|
4900
4725
|
editable: !1,
|
|
4901
4726
|
enableClear: !1,
|
|
4902
|
-
readonly:
|
|
4727
|
+
readonly: m.value,
|
|
4903
4728
|
groupText: v.value,
|
|
4904
4729
|
modelValue: o.value,
|
|
4905
|
-
"onUpdate:modelValue": (
|
|
4906
|
-
onClickHandle:
|
|
4730
|
+
"onUpdate:modelValue": (h) => o.value = h,
|
|
4731
|
+
onClickHandle: Gt
|
|
4907
4732
|
}, null)]);
|
|
4908
4733
|
}
|
|
4909
|
-
function
|
|
4910
|
-
return
|
|
4734
|
+
function zt() {
|
|
4735
|
+
return C("div", {
|
|
4911
4736
|
class: "f-page-single-property-editor-component-right-stateMachine"
|
|
4912
|
-
}, [
|
|
4737
|
+
}, [C("div", {
|
|
4913
4738
|
class: "f-stateMachine-exist",
|
|
4914
|
-
onClick:
|
|
4915
|
-
}, [p.value]),
|
|
4739
|
+
onClick: R
|
|
4740
|
+
}, [p.value]), C("div", {
|
|
4916
4741
|
class: "f-stateMachine-combo",
|
|
4917
4742
|
style: "border:unset"
|
|
4918
|
-
}, [
|
|
4743
|
+
}, [C(G, {
|
|
4919
4744
|
modelValue: u,
|
|
4920
|
-
"onUpdate:modelValue": (
|
|
4745
|
+
"onUpdate:modelValue": (h) => u = h,
|
|
4921
4746
|
placeholder: "",
|
|
4922
4747
|
viewType: "text",
|
|
4923
4748
|
enableClear: !1,
|
|
@@ -4925,18 +4750,18 @@ const me = /* @__PURE__ */ R({
|
|
|
4925
4750
|
textField: "name",
|
|
4926
4751
|
data: f.value,
|
|
4927
4752
|
editable: !1,
|
|
4928
|
-
readonly:
|
|
4929
|
-
onChange: (
|
|
4930
|
-
|
|
4753
|
+
readonly: m.value,
|
|
4754
|
+
onChange: (h) => {
|
|
4755
|
+
$t(h);
|
|
4931
4756
|
}
|
|
4932
4757
|
}, null)])]);
|
|
4933
4758
|
}
|
|
4934
|
-
function
|
|
4935
|
-
return
|
|
4759
|
+
function Yt() {
|
|
4760
|
+
return C("div", {
|
|
4936
4761
|
class: "f-page-single-property-editor-component-right-dataStates"
|
|
4937
|
-
}, [
|
|
4762
|
+
}, [C(G, {
|
|
4938
4763
|
modelValue: w.value,
|
|
4939
|
-
"onUpdate:modelValue": (
|
|
4764
|
+
"onUpdate:modelValue": (h) => w.value = h,
|
|
4940
4765
|
placeholder: "",
|
|
4941
4766
|
viewType: "text",
|
|
4942
4767
|
enableClear: !1,
|
|
@@ -4945,27 +4770,27 @@ const me = /* @__PURE__ */ R({
|
|
|
4945
4770
|
valueField: "valueField",
|
|
4946
4771
|
textField: "textField",
|
|
4947
4772
|
titleField: "titleField",
|
|
4948
|
-
data:
|
|
4773
|
+
data: g.value,
|
|
4949
4774
|
editable: !1,
|
|
4950
|
-
readonly:
|
|
4951
|
-
onChange: (
|
|
4775
|
+
readonly: m.value,
|
|
4776
|
+
onChange: (h) => _t(h)
|
|
4952
4777
|
}, null)]);
|
|
4953
4778
|
}
|
|
4954
|
-
function
|
|
4955
|
-
return
|
|
4779
|
+
function Zt() {
|
|
4780
|
+
return de(C("input", {
|
|
4956
4781
|
class: "form-control",
|
|
4957
|
-
"onUpdate:modelValue": (
|
|
4958
|
-
onChange: (
|
|
4959
|
-
|
|
4782
|
+
"onUpdate:modelValue": (h) => P.value.constValue.value = h,
|
|
4783
|
+
onChange: (h) => {
|
|
4784
|
+
It(h);
|
|
4960
4785
|
},
|
|
4961
|
-
disabled:
|
|
4786
|
+
disabled: m.value,
|
|
4962
4787
|
placeholder: "输入自定义内容"
|
|
4963
|
-
}, null), [[
|
|
4788
|
+
}, null), [[Ie, P.value.constValue.value]]);
|
|
4964
4789
|
}
|
|
4965
|
-
function
|
|
4966
|
-
return
|
|
4967
|
-
modelValue:
|
|
4968
|
-
"onUpdate:modelValue": (
|
|
4790
|
+
function Xt() {
|
|
4791
|
+
return C(G, {
|
|
4792
|
+
modelValue: x.value,
|
|
4793
|
+
"onUpdate:modelValue": (h) => x.value = h,
|
|
4969
4794
|
placeholder: "",
|
|
4970
4795
|
viewType: "text",
|
|
4971
4796
|
enableClear: !1,
|
|
@@ -4973,62 +4798,62 @@ const me = /* @__PURE__ */ R({
|
|
|
4973
4798
|
textField: "value",
|
|
4974
4799
|
data: a.value,
|
|
4975
4800
|
editable: !1,
|
|
4976
|
-
readonly:
|
|
4977
|
-
onValueChange: (
|
|
4801
|
+
readonly: m.value,
|
|
4802
|
+
onValueChange: (h) => kt(h)
|
|
4978
4803
|
}, null);
|
|
4979
4804
|
}
|
|
4980
|
-
function
|
|
4981
|
-
return
|
|
4805
|
+
function Jt() {
|
|
4806
|
+
return C(X, {
|
|
4982
4807
|
canNull: !0,
|
|
4983
|
-
readonly:
|
|
4808
|
+
readonly: m.value,
|
|
4984
4809
|
modelValue: V.value,
|
|
4985
|
-
"onUpdate:modelValue": (
|
|
4986
|
-
onValueChange: (
|
|
4987
|
-
|
|
4810
|
+
"onUpdate:modelValue": (h) => V.value = h,
|
|
4811
|
+
onValueChange: (h) => {
|
|
4812
|
+
Et(h);
|
|
4988
4813
|
},
|
|
4989
4814
|
class: "f-page-single-property-editor-component-const-number"
|
|
4990
4815
|
}, null);
|
|
4991
4816
|
}
|
|
4992
|
-
function
|
|
4993
|
-
return
|
|
4817
|
+
function Qt() {
|
|
4818
|
+
return C("div", {
|
|
4994
4819
|
class: "f-page-single-property-editor-component-left-controller"
|
|
4995
|
-
}, [
|
|
4820
|
+
}, [C(G, {
|
|
4996
4821
|
modelValue: r.value.id,
|
|
4997
|
-
"onUpdate:modelValue": (
|
|
4822
|
+
"onUpdate:modelValue": (h) => r.value.id = h,
|
|
4998
4823
|
placeholder: "",
|
|
4999
4824
|
enableClear: !1,
|
|
5000
4825
|
valueField: "id",
|
|
5001
4826
|
textField: "label",
|
|
5002
|
-
data:
|
|
4827
|
+
data: S.value,
|
|
5003
4828
|
editable: !1,
|
|
5004
|
-
readonly:
|
|
5005
|
-
onChange: (
|
|
4829
|
+
readonly: m.value,
|
|
4830
|
+
onChange: (h) => Tt(h)
|
|
5006
4831
|
}, null)]);
|
|
5007
4832
|
}
|
|
5008
|
-
function
|
|
5009
|
-
return
|
|
4833
|
+
function Kt() {
|
|
4834
|
+
return C("div", {
|
|
5010
4835
|
class: "f-page-single-property-editor-component-right-controller"
|
|
5011
|
-
}, [r.value.id === "const" ?
|
|
4836
|
+
}, [r.value.id === "const" ? C("div", {
|
|
5012
4837
|
class: "f-page-single-property-editor-component-right-const"
|
|
5013
|
-
}, [t.value.propertyType === "string" ?
|
|
4838
|
+
}, [t.value.propertyType === "string" ? Zt() : "", t.value.propertyType === "enum" ? Xt() : "", t.value.propertyType === "number" ? Jt() : ""]) : "", r.value.id === "variable" ? qt() : "", r.value.id === "custom" ? Ht() : "", r.value.id === "expression" && y.value ? Wt() : "", r.value.id === "stateMachine" ? zt() : "", r.value.id === "dataStates" ? Yt() : ""]);
|
|
5014
4839
|
}
|
|
5015
|
-
return
|
|
5016
|
-
|
|
5017
|
-
}), () =>
|
|
4840
|
+
return U(() => {
|
|
4841
|
+
xt(), Ft(), Te(), Dt(), t.value.hasPrefix && t.value.hasPrefix === 2 && (le.value = !0), t.value.controlName !== void 0 && (i.value = !0);
|
|
4842
|
+
}), () => C(pe, null, [C("div", {
|
|
5018
4843
|
class: "f-page-single-property-editor-component clearfix"
|
|
5019
|
-
}, [
|
|
4844
|
+
}, [Qt(), Kt()])]);
|
|
5020
4845
|
}
|
|
5021
|
-
}),
|
|
4846
|
+
}), pa = {
|
|
5022
4847
|
install(e) {
|
|
5023
|
-
e.component(
|
|
4848
|
+
e.component(ce.name, ce);
|
|
5024
4849
|
},
|
|
5025
4850
|
register(e, n, t, o) {
|
|
5026
|
-
e["property-editor"] =
|
|
4851
|
+
e["property-editor"] = ce, n["property-editor"] = Un;
|
|
5027
4852
|
}
|
|
5028
4853
|
};
|
|
5029
4854
|
export {
|
|
5030
|
-
|
|
5031
|
-
|
|
5032
|
-
|
|
4855
|
+
pa as default,
|
|
4856
|
+
ce as propertyEditor,
|
|
4857
|
+
_e as propertyEditorProps,
|
|
5033
4858
|
Un as propsResolver
|
|
5034
4859
|
};
|