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