@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,128 +1,172 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { isPlainObject as
|
|
1
|
+
import { ref as g, computed as C, defineComponent as M, provide as W, createVNode as w, inject as k, onMounted as q } from "vue";
|
|
2
|
+
import { isPlainObject as $, cloneDeep as I } from "lodash-es";
|
|
3
3
|
import "bignumber.js";
|
|
4
|
-
const
|
|
5
|
-
function
|
|
6
|
-
const { properties: e, title: n, ignore:
|
|
7
|
-
|
|
4
|
+
const G = {}, X = {};
|
|
5
|
+
function E(t) {
|
|
6
|
+
const { properties: e, title: n, ignore: a } = t, i = a && Array.isArray(a), s = Object.keys(e).reduce((o, f) => ((!i || !a.find((v) => v === f)) && (o[f] = e[f].type === "object" && e[f].properties ? E(e[f]) : I(e[f].default)), o), {});
|
|
7
|
+
if (n && (!i || !a.find((o) => o === "id"))) {
|
|
8
|
+
const o = n.toLowerCase().replace(/-/g, "_");
|
|
9
|
+
s.id = `${o}_${Math.random().toString().slice(2, 6)}`;
|
|
10
|
+
}
|
|
11
|
+
return s;
|
|
8
12
|
}
|
|
9
|
-
function
|
|
10
|
-
const
|
|
11
|
-
if (
|
|
12
|
-
let
|
|
13
|
-
const
|
|
14
|
-
return
|
|
13
|
+
function Y(t, e = {}, n) {
|
|
14
|
+
const a = G[t];
|
|
15
|
+
if (a) {
|
|
16
|
+
let i = E(a);
|
|
17
|
+
const s = X[t];
|
|
18
|
+
return i = s ? s({ getSchemaByType: Y }, i, e, n) : i, i;
|
|
15
19
|
}
|
|
16
20
|
return null;
|
|
17
21
|
}
|
|
18
|
-
function
|
|
19
|
-
const n =
|
|
20
|
-
return Object.keys(
|
|
22
|
+
function ee(t, e) {
|
|
23
|
+
const n = E(e);
|
|
24
|
+
return Object.keys(n).reduce((a, i) => (a[i] && $(a[i]) && $(t[i] || !t[i]) ? Object.assign(a[i], t[i] || {}) : a[i] = t[i], a), n), n;
|
|
21
25
|
}
|
|
22
|
-
function
|
|
23
|
-
return Object.keys(t).filter((
|
|
24
|
-
if (e.has(
|
|
25
|
-
const
|
|
26
|
-
if (typeof
|
|
27
|
-
|
|
26
|
+
function te(t, e) {
|
|
27
|
+
return Object.keys(t).filter((a) => t[a] != null).reduce((a, i) => {
|
|
28
|
+
if (e.has(i)) {
|
|
29
|
+
const s = e.get(i);
|
|
30
|
+
if (typeof s == "string")
|
|
31
|
+
a[s] = t[i];
|
|
28
32
|
else {
|
|
29
|
-
const
|
|
30
|
-
Object.assign(
|
|
33
|
+
const o = s(i, t[i], t);
|
|
34
|
+
Object.assign(a, o);
|
|
31
35
|
}
|
|
32
36
|
} else
|
|
33
|
-
|
|
34
|
-
return
|
|
37
|
+
a[i] = t[i];
|
|
38
|
+
return a;
|
|
35
39
|
}, {});
|
|
36
40
|
}
|
|
37
|
-
function
|
|
38
|
-
const
|
|
39
|
-
return
|
|
41
|
+
function ne(t, e, n = /* @__PURE__ */ new Map()) {
|
|
42
|
+
const a = ee(t, e);
|
|
43
|
+
return te(a, n);
|
|
40
44
|
}
|
|
41
|
-
function
|
|
42
|
-
function e(
|
|
43
|
-
if (typeof
|
|
44
|
-
return
|
|
45
|
-
if (typeof
|
|
46
|
-
const
|
|
47
|
-
if (
|
|
48
|
-
return Number(
|
|
49
|
-
if (
|
|
50
|
-
return Number(
|
|
51
|
-
if (
|
|
52
|
-
return Number(
|
|
45
|
+
function ae(t = {}) {
|
|
46
|
+
function e(l, c, m, r) {
|
|
47
|
+
if (typeof m == "number")
|
|
48
|
+
return r[l].length === m;
|
|
49
|
+
if (typeof m == "object") {
|
|
50
|
+
const y = Object.keys(m)[0], d = m[y];
|
|
51
|
+
if (y === "not")
|
|
52
|
+
return Number(r[l].length) !== Number(d);
|
|
53
|
+
if (y === "moreThan")
|
|
54
|
+
return Number(r[l].length) >= Number(d);
|
|
55
|
+
if (y === "lessThan")
|
|
56
|
+
return Number(r[l].length) <= Number(d);
|
|
53
57
|
}
|
|
54
58
|
return !1;
|
|
55
59
|
}
|
|
56
|
-
function n(
|
|
57
|
-
return
|
|
60
|
+
function n(l, c, m, r) {
|
|
61
|
+
return r[l] && r[l].propertyValue && String(r[l].propertyValue.value) === String(m);
|
|
58
62
|
}
|
|
59
|
-
const
|
|
63
|
+
const a = /* @__PURE__ */ new Map([
|
|
60
64
|
["length", e],
|
|
61
65
|
["getProperty", n]
|
|
62
66
|
]);
|
|
63
|
-
Object.keys(t).reduce((
|
|
64
|
-
function
|
|
65
|
-
const
|
|
66
|
-
return typeof
|
|
67
|
-
if (
|
|
68
|
-
return { target:
|
|
69
|
-
const
|
|
70
|
-
return { target:
|
|
67
|
+
Object.keys(t).reduce((l, c) => (l.set(c, t[c]), l), a);
|
|
68
|
+
function i(l, c) {
|
|
69
|
+
const m = l;
|
|
70
|
+
return typeof c == "number" ? [{ target: m, operator: "length", param: null, value: Number(c) }] : typeof c == "boolean" ? [{ target: m, operator: "getProperty", param: l, value: !!c }] : typeof c == "object" ? Object.keys(c).map((r) => {
|
|
71
|
+
if (r === "length")
|
|
72
|
+
return { target: m, operator: "length", param: null, value: c[r] };
|
|
73
|
+
const y = r, d = c[r];
|
|
74
|
+
return { target: m, operator: "getProperty", param: y, value: d };
|
|
71
75
|
}) : [];
|
|
72
76
|
}
|
|
73
|
-
function
|
|
74
|
-
return Object.keys(
|
|
75
|
-
const
|
|
76
|
-
return
|
|
77
|
+
function s(l) {
|
|
78
|
+
return Object.keys(l).reduce((m, r) => {
|
|
79
|
+
const y = i(r, l[r]);
|
|
80
|
+
return m.push(...y), m;
|
|
77
81
|
}, []);
|
|
78
82
|
}
|
|
79
|
-
function
|
|
80
|
-
if (
|
|
81
|
-
const
|
|
82
|
-
return
|
|
83
|
+
function o(l, c) {
|
|
84
|
+
if (a.has(l.operator)) {
|
|
85
|
+
const m = a.get(l.operator);
|
|
86
|
+
return m && m(l.target, l.param, l.value, c) || !1;
|
|
83
87
|
}
|
|
84
88
|
return !1;
|
|
85
89
|
}
|
|
86
|
-
function
|
|
87
|
-
return
|
|
90
|
+
function f(l, c) {
|
|
91
|
+
return s(l).reduce((y, d) => y && o(d, c), !0);
|
|
88
92
|
}
|
|
89
|
-
function
|
|
90
|
-
const
|
|
91
|
-
return
|
|
93
|
+
function v(l, c) {
|
|
94
|
+
const m = Object.keys(l), r = m.includes("allOf"), y = m.includes("anyOf"), d = r || y, R = (d ? l[d ? r ? "allOf" : "anyOf" : "allOf"] : [l]).map((u) => f(u, c));
|
|
95
|
+
return r ? !R.includes(!1) : R.includes(!0);
|
|
92
96
|
}
|
|
93
|
-
return { parseValueSchema:
|
|
97
|
+
return { parseValueSchema: v };
|
|
94
98
|
}
|
|
95
|
-
const
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
99
|
+
const O = {
|
|
100
|
+
button: { type: "button", name: "按钮", icon: "Button" },
|
|
101
|
+
"response-toolbar": { type: "response-toolbar", name: "工具栏", icon: "ButtonGroup" },
|
|
102
|
+
"response-toolbar-item": { type: "response-toolbar-item", name: "按钮", icon: "Button" },
|
|
103
|
+
"content-container": { type: "content-container", name: "容器", icon: "ContentContainer" },
|
|
104
|
+
"input-group": { type: "input-group", name: "文本", icon: "TextBox" },
|
|
105
|
+
textarea: { type: "textarea", name: "多行文本", icon: "MultiTextBox" },
|
|
106
|
+
lookup: { type: "lookup", name: "帮助", icon: "LookupEdit" },
|
|
107
|
+
"number-spinner": { type: "number-spinner", name: "数值", icon: "NumericBox" },
|
|
108
|
+
"date-picker": { type: "date-picker", name: "日期", icon: "DateBox" },
|
|
109
|
+
switch: { type: "switch", name: "开关", icon: "SwitchField" },
|
|
110
|
+
"radio-group": { type: "radio-group", name: "单选组", icon: "RadioGroup" },
|
|
111
|
+
"check-box": { type: "check-box", name: "复选框", icon: "CheckBox" },
|
|
112
|
+
"check-group": { type: "check-group", name: "复选框组", icon: "CheckGroup" },
|
|
113
|
+
"combo-list": { type: "combo-list", name: "下拉列表", icon: "EnumField" },
|
|
114
|
+
"response-form": { type: "response-form", name: "卡片面板", icon: "Form" },
|
|
115
|
+
"response-layout": { type: "response-layout", name: "布局容器", icon: "ResponseLayout3" },
|
|
116
|
+
"response-layout-item": { type: "response-layout-item", name: "布局", icon: "ResponseLayout1" },
|
|
117
|
+
"tree-grid": { type: "tree-grid", name: "树表格", icon: "TreeGrid" },
|
|
118
|
+
"tree-grid-column": { type: "tree-grid-column", name: "树表格列" },
|
|
119
|
+
"data-grid": { type: "data-grid", name: "表格", icon: "DataGrid" },
|
|
120
|
+
"data-grid-column": { type: "data-grid-column", name: "表格列" },
|
|
121
|
+
module: { type: "Module", name: "模块", icon: "Module" },
|
|
122
|
+
component: { type: "component", name: "组件", icon: "Component" },
|
|
123
|
+
tabs: { type: "tabs", name: "标签页", icon: "Tab" },
|
|
124
|
+
"tab-page": { type: "tab-page", name: "标签页项", dependentParentControl: "Tab" },
|
|
125
|
+
"tab-toolbar-item": { type: "tab-toolbar-item", name: "标签页工具栏按钮", icon: "Button" },
|
|
126
|
+
"time-picker": { type: "time-picker", name: "时间选择", icon: "TimePicker" },
|
|
127
|
+
section: { type: "section", name: "分组面板", icon: "Section" },
|
|
128
|
+
"section-toolbar": { type: "section-toolbar", name: "分组面板工具栏" },
|
|
129
|
+
"section-toolbar-item": { type: "section-toolbar-item", name: "分组面板按钮" },
|
|
130
|
+
splitter: { type: "splitter", name: "分栏面板", icon: "Splitter" },
|
|
131
|
+
"splitter-pane": { type: "splitter-pane", name: "分栏面板项", dependentParentControl: "Splitter" },
|
|
132
|
+
"component-ref": { type: "component-ref", name: "组件引用节点" },
|
|
133
|
+
uploader: { type: "uploader", name: "附件上传", icon: "FileUpload" },
|
|
134
|
+
"page-header": { type: "page-header", name: "页头", icon: "Header" },
|
|
135
|
+
"page-footer": { type: "page-footer", name: "页脚", icon: "ModalFooter" },
|
|
136
|
+
"tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏", icon: "TabToolbar" },
|
|
137
|
+
fieldset: { type: "fieldset", name: "分组", icon: "fieldset" },
|
|
138
|
+
"query-solution": { type: "query-solution", name: "筛选方案", icon: "QueryScheme" }
|
|
139
|
+
}, ie = {}, oe = {};
|
|
140
|
+
ae();
|
|
141
|
+
function _(t, e, n = /* @__PURE__ */ new Map(), a = (o, f, v, l) => f, i = {}, s = (o) => o) {
|
|
142
|
+
return G[e.title] = e, X[e.title] = a, ie[e.title] = i, oe[e.title] = s, (o = {}) => {
|
|
143
|
+
const f = ne(o, e, n), v = Object.keys(t).reduce((l, c) => (l[c] = t[c].default, l), {});
|
|
144
|
+
return Object.assign(v, f);
|
|
101
145
|
};
|
|
102
146
|
}
|
|
103
147
|
function U(t, e) {
|
|
104
148
|
return { customClass: e.class, customStyle: e.style };
|
|
105
149
|
}
|
|
106
|
-
const
|
|
150
|
+
const se = /* @__PURE__ */ new Map([
|
|
107
151
|
["appearance", U]
|
|
108
152
|
]);
|
|
109
|
-
function
|
|
110
|
-
const
|
|
111
|
-
return
|
|
153
|
+
function re(t, e, n) {
|
|
154
|
+
const a = t.getSchemaByType("splitter-pane");
|
|
155
|
+
return a.appearance = {
|
|
112
156
|
class: "f-col-w6 f-page-content-nav"
|
|
113
|
-
},
|
|
157
|
+
}, a.position = "left", e.contents.unshift(a), e;
|
|
114
158
|
}
|
|
115
|
-
function
|
|
116
|
-
const
|
|
117
|
-
return
|
|
159
|
+
function le(t, e, n) {
|
|
160
|
+
const a = t.getSchemaByType("splitter-pane");
|
|
161
|
+
return a.appearance = {
|
|
118
162
|
class: "f-page-content-main"
|
|
119
|
-
},
|
|
163
|
+
}, a.position = "main", e.contents.push(a), e;
|
|
120
164
|
}
|
|
121
|
-
function
|
|
122
|
-
const
|
|
123
|
-
return String(
|
|
165
|
+
function ce(t, e, n) {
|
|
166
|
+
const a = n.parentComponentInstance;
|
|
167
|
+
return String(a.schema.appearance.class || "").split(" ").includes("f-page-main") && (e.appearance = { class: "f-page-content" }), re(t, e), le(t, e), e;
|
|
124
168
|
}
|
|
125
|
-
const
|
|
169
|
+
const pe = "https://json-schema.org/draft/2020-12/schema", ue = "https://farris-design.gitee.io/splitter.schema.json", fe = "splitter", me = "A Farris Container Component", de = "object", ye = {
|
|
126
170
|
id: {
|
|
127
171
|
description: "The unique identifier for a splitter",
|
|
128
172
|
type: "string"
|
|
@@ -153,20 +197,20 @@ const fe = "https://json-schema.org/draft/2020-12/schema", de = "https://farris-
|
|
|
153
197
|
direction: {
|
|
154
198
|
description: "",
|
|
155
199
|
type: "string",
|
|
156
|
-
default: "
|
|
200
|
+
default: "row",
|
|
157
201
|
enum: [
|
|
158
202
|
"column",
|
|
159
203
|
"row"
|
|
160
204
|
]
|
|
161
205
|
}
|
|
162
|
-
},
|
|
163
|
-
$schema:
|
|
164
|
-
$id:
|
|
165
|
-
title:
|
|
166
|
-
description:
|
|
167
|
-
type:
|
|
168
|
-
properties:
|
|
169
|
-
}, ve = "splitter",
|
|
206
|
+
}, he = {
|
|
207
|
+
$schema: pe,
|
|
208
|
+
$id: ue,
|
|
209
|
+
title: fe,
|
|
210
|
+
description: me,
|
|
211
|
+
type: de,
|
|
212
|
+
properties: ye
|
|
213
|
+
}, ve = "splitter", be = "A Farris Container Component", ge = "object", ze = {
|
|
170
214
|
basic: {
|
|
171
215
|
description: "Basic Infomation",
|
|
172
216
|
title: "基本信息",
|
|
@@ -208,136 +252,125 @@ const fe = "https://json-schema.org/draft/2020-12/schema", de = "https://farris-
|
|
|
208
252
|
title: "style样式"
|
|
209
253
|
}
|
|
210
254
|
}
|
|
211
|
-
},
|
|
212
|
-
behavior: {
|
|
213
|
-
description: "",
|
|
214
|
-
title: "行为",
|
|
215
|
-
properties: {
|
|
216
|
-
visible: {
|
|
217
|
-
description: "运行时组件是否可见",
|
|
218
|
-
type: "boolean",
|
|
219
|
-
title: "是否可见"
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
255
|
}
|
|
223
|
-
},
|
|
256
|
+
}, Ce = {
|
|
224
257
|
title: ve,
|
|
225
|
-
description:
|
|
226
|
-
type:
|
|
227
|
-
categories:
|
|
228
|
-
},
|
|
258
|
+
description: be,
|
|
259
|
+
type: ge,
|
|
260
|
+
categories: ze
|
|
261
|
+
}, F = {
|
|
229
262
|
customStyle: { type: String, default: "" },
|
|
230
263
|
customClass: { type: String, default: "" },
|
|
231
|
-
direction: { Type: String, default: "
|
|
232
|
-
},
|
|
233
|
-
function
|
|
234
|
-
const e =
|
|
235
|
-
display:
|
|
236
|
-
left: `${
|
|
237
|
-
})),
|
|
238
|
-
display:
|
|
239
|
-
top: `${
|
|
240
|
-
})),
|
|
241
|
-
display:
|
|
264
|
+
direction: { Type: String, default: "row" }
|
|
265
|
+
}, N = _(F, he, se, ce, Ce);
|
|
266
|
+
function Q(t) {
|
|
267
|
+
const e = g(-1), n = g(-1), a = g(0), i = g(0), s = g(!1), o = g(!1), f = C(() => ({
|
|
268
|
+
display: s.value ? "block" : "none",
|
|
269
|
+
left: `${a.value}px`
|
|
270
|
+
})), v = C(() => ({
|
|
271
|
+
display: o.value ? "block" : "none",
|
|
272
|
+
top: `${i.value}px`
|
|
273
|
+
})), l = C(() => ({
|
|
274
|
+
display: o.value || s.value ? "block" : "none"
|
|
242
275
|
}));
|
|
243
|
-
function
|
|
244
|
-
const
|
|
245
|
-
if (
|
|
246
|
-
const { left:
|
|
247
|
-
|
|
276
|
+
function c(r) {
|
|
277
|
+
const y = t.value;
|
|
278
|
+
if (y) {
|
|
279
|
+
const { left: d } = y.getBoundingClientRect();
|
|
280
|
+
a.value = r.clientX - d;
|
|
248
281
|
}
|
|
249
282
|
}
|
|
250
|
-
function
|
|
251
|
-
const
|
|
252
|
-
if (
|
|
253
|
-
const { top:
|
|
254
|
-
|
|
283
|
+
function m(r) {
|
|
284
|
+
const y = t.value;
|
|
285
|
+
if (y) {
|
|
286
|
+
const { top: d } = y.getBoundingClientRect();
|
|
287
|
+
i.value = r.clientY - d;
|
|
255
288
|
}
|
|
256
289
|
}
|
|
257
290
|
return {
|
|
258
|
-
horizontalResizeHandleStyle:
|
|
259
|
-
verticalResizeHandleStyle:
|
|
260
|
-
resizeOverlayStyle:
|
|
261
|
-
showHorizontalResizeHandle:
|
|
262
|
-
showVerticalResizeHandle:
|
|
291
|
+
horizontalResizeHandleStyle: f,
|
|
292
|
+
verticalResizeHandleStyle: v,
|
|
293
|
+
resizeOverlayStyle: l,
|
|
294
|
+
showHorizontalResizeHandle: s,
|
|
295
|
+
showVerticalResizeHandle: o,
|
|
263
296
|
horizontalResizeBarPosition: e,
|
|
264
297
|
verticalResizeBarPosition: n,
|
|
265
|
-
verticalResizeHandleOffset:
|
|
266
|
-
horizontalResizeHandleOffset:
|
|
267
|
-
draggingHorizontalResizeHandle:
|
|
268
|
-
draggingVerticalResizeHandle:
|
|
298
|
+
verticalResizeHandleOffset: i,
|
|
299
|
+
horizontalResizeHandleOffset: a,
|
|
300
|
+
draggingHorizontalResizeHandle: c,
|
|
301
|
+
draggingVerticalResizeHandle: m
|
|
269
302
|
};
|
|
270
303
|
}
|
|
271
|
-
const
|
|
272
|
-
function
|
|
304
|
+
const Pe = ["moz", "ms", "webkit"];
|
|
305
|
+
function we() {
|
|
273
306
|
let t = 0;
|
|
274
307
|
return (e) => {
|
|
275
|
-
const n = (/* @__PURE__ */ new Date()).getTime(),
|
|
276
|
-
e(n +
|
|
277
|
-
},
|
|
278
|
-
return t = n +
|
|
308
|
+
const n = (/* @__PURE__ */ new Date()).getTime(), a = Math.max(0, 16 - (n - t)), i = setTimeout(() => {
|
|
309
|
+
e(n + a);
|
|
310
|
+
}, a);
|
|
311
|
+
return t = n + a, i;
|
|
279
312
|
};
|
|
280
313
|
}
|
|
281
|
-
function
|
|
314
|
+
function Re() {
|
|
282
315
|
if (typeof window > "u")
|
|
283
316
|
return () => 0;
|
|
284
317
|
if (window.requestAnimationFrame)
|
|
285
318
|
return window.requestAnimationFrame.bind(window);
|
|
286
|
-
const t =
|
|
287
|
-
return t ? window[`${t}RequestAnimationFrame`] :
|
|
288
|
-
}
|
|
289
|
-
Ae();
|
|
290
|
-
function H(t, e) {
|
|
291
|
-
return ((e == null ? void 0 : e.split(" ")) || []).reduce((o, r) => (r && (o[r] = !0), o), t), t;
|
|
319
|
+
const t = Pe.filter((e) => `${e}RequestAnimationFrame` in window)[0];
|
|
320
|
+
return t ? window[`${t}RequestAnimationFrame`] : we();
|
|
292
321
|
}
|
|
322
|
+
Re();
|
|
293
323
|
function B(t, e) {
|
|
294
|
-
return ((e == null ? void 0 : e.split("
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
324
|
+
return ((e == null ? void 0 : e.split(" ")) || []).reduce((a, i) => (i && (a[i] = !0), a), t), t;
|
|
325
|
+
}
|
|
326
|
+
function L(t, e) {
|
|
327
|
+
return ((e == null ? void 0 : e.split(";")) || []).reduce((a, i) => {
|
|
328
|
+
if (i) {
|
|
329
|
+
const s = i.split(":");
|
|
330
|
+
a[s[0]] = s[1];
|
|
298
331
|
}
|
|
299
|
-
return
|
|
332
|
+
return a;
|
|
300
333
|
}, t), t;
|
|
301
334
|
}
|
|
302
|
-
const
|
|
335
|
+
const H = /* @__PURE__ */ M({
|
|
303
336
|
name: "FSplitter",
|
|
304
|
-
props:
|
|
337
|
+
props: F,
|
|
305
338
|
emits: [],
|
|
306
339
|
setup(t, e) {
|
|
307
|
-
const n =
|
|
308
|
-
horizontalResizeHandleStyle:
|
|
309
|
-
verticalResizeHandleStyle:
|
|
310
|
-
resizeOverlayStyle:
|
|
311
|
-
} =
|
|
312
|
-
|
|
313
|
-
useResizeHandleComposition:
|
|
340
|
+
const n = g(), a = Q(n), {
|
|
341
|
+
horizontalResizeHandleStyle: i,
|
|
342
|
+
verticalResizeHandleStyle: s,
|
|
343
|
+
resizeOverlayStyle: o
|
|
344
|
+
} = a;
|
|
345
|
+
W("splitter", {
|
|
346
|
+
useResizeHandleComposition: a
|
|
314
347
|
});
|
|
315
|
-
const
|
|
348
|
+
const f = C(() => B({
|
|
316
349
|
"f-splitter": !0
|
|
317
|
-
}, t == null ? void 0 : t.customClass)),
|
|
318
|
-
const
|
|
319
|
-
"flex-direction": t.direction === "row" ? "
|
|
350
|
+
}, t == null ? void 0 : t.customClass)), v = C(() => {
|
|
351
|
+
const l = {
|
|
352
|
+
"flex-direction": t.direction === "row" ? "row" : "column"
|
|
320
353
|
};
|
|
321
|
-
return
|
|
354
|
+
return L(l, t == null ? void 0 : t.customStyle);
|
|
322
355
|
});
|
|
323
|
-
return () =>
|
|
324
|
-
class:
|
|
356
|
+
return () => w("div", {
|
|
357
|
+
class: f.value,
|
|
325
358
|
ref: n,
|
|
326
|
-
style:
|
|
327
|
-
}, [e.slots.default && e.slots.default(),
|
|
359
|
+
style: v.value
|
|
360
|
+
}, [e.slots.default && e.slots.default(), w("div", {
|
|
328
361
|
class: "f-splitter-resize-overlay",
|
|
329
|
-
style:
|
|
330
|
-
}, null),
|
|
362
|
+
style: o.value
|
|
363
|
+
}, null), w("div", {
|
|
331
364
|
class: "f-splitter-horizontal-resize-proxy",
|
|
332
|
-
style:
|
|
333
|
-
}, null),
|
|
365
|
+
style: i.value
|
|
366
|
+
}, null), w("div", {
|
|
334
367
|
class: "f-splitter-vertical-resize-proxy",
|
|
335
|
-
style:
|
|
368
|
+
style: s.value
|
|
336
369
|
}, null)]);
|
|
337
370
|
}
|
|
338
371
|
}), Se = /* @__PURE__ */ new Map([
|
|
339
372
|
["appearance", U]
|
|
340
|
-
]), Te = "https://json-schema.org/draft/2020-12/schema",
|
|
373
|
+
]), Te = "https://json-schema.org/draft/2020-12/schema", De = "https://farris-design.gitee.io/splitter-pane.schema.json", Oe = "splitter-pane", ke = "A Farris Container Component", Me = "object", Be = {
|
|
341
374
|
id: {
|
|
342
375
|
description: "The unique identifier for a splitter",
|
|
343
376
|
type: "string"
|
|
@@ -403,24 +436,24 @@ const N = /* @__PURE__ */ M({
|
|
|
403
436
|
"bottom"
|
|
404
437
|
]
|
|
405
438
|
},
|
|
406
|
-
|
|
439
|
+
resizable: {
|
|
407
440
|
description: "",
|
|
408
441
|
type: "boolean",
|
|
409
|
-
default: !
|
|
442
|
+
default: !1
|
|
410
443
|
},
|
|
411
444
|
visible: {
|
|
412
445
|
description: "",
|
|
413
446
|
type: "number",
|
|
414
447
|
default: !0
|
|
415
448
|
}
|
|
416
|
-
},
|
|
449
|
+
}, Le = {
|
|
417
450
|
$schema: Te,
|
|
418
|
-
$id:
|
|
419
|
-
title:
|
|
420
|
-
description:
|
|
421
|
-
type:
|
|
422
|
-
properties:
|
|
423
|
-
},
|
|
451
|
+
$id: De,
|
|
452
|
+
title: Oe,
|
|
453
|
+
description: ke,
|
|
454
|
+
type: Me,
|
|
455
|
+
properties: Be
|
|
456
|
+
}, He = "splitter-pane", je = "A Farris Container Component", Ee = "object", Fe = {
|
|
424
457
|
basic: {
|
|
425
458
|
description: "Basic Infomation",
|
|
426
459
|
title: "基本信息",
|
|
@@ -436,8 +469,15 @@ const N = /* @__PURE__ */ M({
|
|
|
436
469
|
title: "控件类型",
|
|
437
470
|
type: "select",
|
|
438
471
|
editor: {
|
|
439
|
-
type: "
|
|
440
|
-
|
|
472
|
+
type: "combo-list",
|
|
473
|
+
textField: "value",
|
|
474
|
+
valueField: "key",
|
|
475
|
+
data: [
|
|
476
|
+
{
|
|
477
|
+
key: "splitter-pane",
|
|
478
|
+
value: "分栏面板项"
|
|
479
|
+
}
|
|
480
|
+
]
|
|
441
481
|
}
|
|
442
482
|
}
|
|
443
483
|
}
|
|
@@ -464,12 +504,12 @@ const N = /* @__PURE__ */ M({
|
|
|
464
504
|
title: "高度(px)",
|
|
465
505
|
type: "number"
|
|
466
506
|
},
|
|
467
|
-
|
|
507
|
+
minWidth: {
|
|
468
508
|
description: "面板最小宽度",
|
|
469
509
|
title: "最小宽度(px)",
|
|
470
510
|
type: "number"
|
|
471
511
|
},
|
|
472
|
-
|
|
512
|
+
minHeight: {
|
|
473
513
|
description: "面板最小高度",
|
|
474
514
|
title: "最小高度(px)",
|
|
475
515
|
type: "number"
|
|
@@ -480,16 +520,13 @@ const N = /* @__PURE__ */ M({
|
|
|
480
520
|
description: "",
|
|
481
521
|
title: "行为",
|
|
482
522
|
properties: {
|
|
483
|
-
visible: {
|
|
484
|
-
description: "运行时组件是否可见",
|
|
485
|
-
type: "boolean",
|
|
486
|
-
title: "是否可见"
|
|
487
|
-
},
|
|
488
523
|
position: {
|
|
489
524
|
description: "",
|
|
490
525
|
title: "位置",
|
|
491
526
|
editor: {
|
|
492
527
|
type: "combo-list",
|
|
528
|
+
idField: "value",
|
|
529
|
+
valueField: "value",
|
|
493
530
|
data: [
|
|
494
531
|
{
|
|
495
532
|
value: "left",
|
|
@@ -516,15 +553,14 @@ const N = /* @__PURE__ */ M({
|
|
|
516
553
|
}
|
|
517
554
|
}
|
|
518
555
|
}
|
|
519
|
-
},
|
|
520
|
-
title:
|
|
521
|
-
description:
|
|
522
|
-
type:
|
|
556
|
+
}, Ae = {
|
|
557
|
+
title: He,
|
|
558
|
+
description: je,
|
|
559
|
+
type: Ee,
|
|
523
560
|
categories: Fe
|
|
524
|
-
},
|
|
561
|
+
}, A = {
|
|
525
562
|
customClass: { type: String, defaut: "" },
|
|
526
563
|
customStyle: { type: String, default: "" },
|
|
527
|
-
/** 记录原始定义宽度 */
|
|
528
564
|
width: { type: Number },
|
|
529
565
|
/** 记录原始定义高度 */
|
|
530
566
|
height: { type: Number },
|
|
@@ -533,1115 +569,450 @@ const N = /* @__PURE__ */ M({
|
|
|
533
569
|
/** 是否显示 */
|
|
534
570
|
visible: { type: Boolean, default: !0 },
|
|
535
571
|
/** True to allow the pane can be resized. */
|
|
536
|
-
resizable: { type: Boolean, default: !
|
|
572
|
+
resizable: { type: Boolean, default: !1 },
|
|
573
|
+
/** 指定拖拽的方向,可以指定多个方向,e向东,n向北,s向南,w向西
|
|
574
|
+
* 因为位置在右侧,不一定就是w方向可拖拽的
|
|
575
|
+
*/
|
|
576
|
+
resizeHandle: { type: String, default: "" },
|
|
537
577
|
/** True to allow the pane can be collapsed. */
|
|
538
578
|
collapsable: { type: Boolean, default: !1 },
|
|
539
579
|
/** 面板最小宽度 */
|
|
540
|
-
minWidth: { type: Number, default:
|
|
580
|
+
minWidth: { type: Number, default: 0 },
|
|
541
581
|
/** 面板最小高度 */
|
|
542
|
-
minHeight: { type: Number, default:
|
|
543
|
-
},
|
|
544
|
-
|
|
545
|
-
|
|
582
|
+
minHeight: { type: Number, default: 0 }
|
|
583
|
+
}, V = _(
|
|
584
|
+
A,
|
|
585
|
+
Le,
|
|
546
586
|
Se,
|
|
547
587
|
void 0,
|
|
548
|
-
|
|
588
|
+
Ae
|
|
549
589
|
);
|
|
550
|
-
function
|
|
551
|
-
const n =
|
|
552
|
-
horizontalResizeBarPosition:
|
|
553
|
-
horizontalResizeHandleOffset:
|
|
554
|
-
showHorizontalResizeHandle:
|
|
555
|
-
showVerticalResizeHandle:
|
|
556
|
-
verticalResizeBarPosition:
|
|
557
|
-
verticalResizeHandleOffset:
|
|
558
|
-
draggingHorizontalResizeHandle:
|
|
559
|
-
draggingVerticalResizeHandle:
|
|
590
|
+
function J(t, e) {
|
|
591
|
+
const n = g(t.width), a = g(t.height), {
|
|
592
|
+
horizontalResizeBarPosition: i,
|
|
593
|
+
horizontalResizeHandleOffset: s,
|
|
594
|
+
showHorizontalResizeHandle: o,
|
|
595
|
+
showVerticalResizeHandle: f,
|
|
596
|
+
verticalResizeBarPosition: v,
|
|
597
|
+
verticalResizeHandleOffset: l,
|
|
598
|
+
draggingHorizontalResizeHandle: c,
|
|
599
|
+
draggingVerticalResizeHandle: m
|
|
560
600
|
} = e;
|
|
561
|
-
let
|
|
562
|
-
function
|
|
563
|
-
if ((
|
|
564
|
-
const { left:
|
|
565
|
-
n.value = t.minWidth > 0 ? Math.max(t.minWidth,
|
|
601
|
+
let r = "", y, d;
|
|
602
|
+
function P(p) {
|
|
603
|
+
if ((r === "left" || r === "right") && d) {
|
|
604
|
+
const { left: u } = d.getBoundingClientRect(), { width: z } = y.getBoundingClientRect(), h = p.clientX - u, b = r === "left" ? (z || 0) + (h - i.value) : (z || 0) - (h - i.value);
|
|
605
|
+
n.value = t.minWidth > 0 ? Math.max(t.minWidth, b) : b;
|
|
566
606
|
}
|
|
567
|
-
if ((
|
|
568
|
-
const { top:
|
|
569
|
-
|
|
607
|
+
if ((r === "top" || r === "bottom") && d) {
|
|
608
|
+
const { top: u } = d.getBoundingClientRect(), { height: z } = y.getBoundingClientRect(), h = p.clientY - u, b = r === "top" ? (z || 0) + (h - v.value) : (z || 0) - (h - v.value);
|
|
609
|
+
a.value = t.minHeight > 0 ? Math.max(t.minHeight, b) : b;
|
|
570
610
|
}
|
|
571
|
-
|
|
611
|
+
s.value = 0, l.value = 0, i.value = -1, v.value = -1, o.value = !1, f.value = !1, document.removeEventListener("mousemove", c), document.removeEventListener("mouseup", P), document.body.style.userSelect = "", r = "", y = null, d = null;
|
|
572
612
|
}
|
|
573
|
-
function
|
|
574
|
-
if (
|
|
575
|
-
const { left:
|
|
576
|
-
|
|
613
|
+
function T(p, u, z) {
|
|
614
|
+
if (r = u, y = z, o.value = !0, d = p.composedPath().find((b) => b.className.split(" ")[0] === "f-splitter"), d) {
|
|
615
|
+
const { left: b } = d.getBoundingClientRect();
|
|
616
|
+
s.value = p.clientX - b, i.value = p.clientX - b, document.addEventListener("mousemove", c), document.addEventListener("mouseup", P), document.body.style.userSelect = "none";
|
|
577
617
|
}
|
|
578
618
|
}
|
|
579
|
-
function
|
|
580
|
-
if (
|
|
581
|
-
const { top:
|
|
582
|
-
|
|
619
|
+
function R(p, u, z) {
|
|
620
|
+
if (r = u, y = z, f.value = !0, d = p.composedPath().find((b) => b.className.split(" ")[0] === "f-splitter"), d) {
|
|
621
|
+
const { top: b } = d.getBoundingClientRect();
|
|
622
|
+
l.value = p.clientY - b, v.value = p.clientY - b, document.addEventListener("mousemove", m), document.addEventListener("mouseup", P), document.body.style.userSelect = "none";
|
|
583
623
|
}
|
|
584
624
|
}
|
|
585
625
|
return {
|
|
586
626
|
actualWidth: n,
|
|
587
|
-
actualHeight:
|
|
588
|
-
onClickSplitterHorizontalResizeBar:
|
|
589
|
-
onClickSplitterVerticalResizeBar:
|
|
627
|
+
actualHeight: a,
|
|
628
|
+
onClickSplitterHorizontalResizeBar: T,
|
|
629
|
+
onClickSplitterVerticalResizeBar: R
|
|
590
630
|
};
|
|
591
631
|
}
|
|
592
|
-
const
|
|
632
|
+
const j = /* @__PURE__ */ M({
|
|
593
633
|
name: "FSplitterPane",
|
|
594
|
-
props:
|
|
634
|
+
props: A,
|
|
595
635
|
emits: [],
|
|
596
636
|
setup(t, e) {
|
|
597
|
-
const n =
|
|
598
|
-
useResizeHandleComposition:
|
|
599
|
-
} =
|
|
600
|
-
actualHeight:
|
|
601
|
-
actualWidth:
|
|
602
|
-
onClickSplitterHorizontalResizeBar:
|
|
603
|
-
onClickSplitterVerticalResizeBar:
|
|
604
|
-
} =
|
|
605
|
-
const
|
|
637
|
+
const n = g(), a = k("splitter"), {
|
|
638
|
+
useResizeHandleComposition: i
|
|
639
|
+
} = a, s = J(t, i), {
|
|
640
|
+
actualHeight: o,
|
|
641
|
+
actualWidth: f,
|
|
642
|
+
onClickSplitterHorizontalResizeBar: v,
|
|
643
|
+
onClickSplitterVerticalResizeBar: l
|
|
644
|
+
} = s, c = g(t.position), m = C(() => {
|
|
645
|
+
const p = {
|
|
606
646
|
"f-splitter-pane": !0,
|
|
607
|
-
"f-splitter-pane-
|
|
608
|
-
"
|
|
609
|
-
"f-splitter-pane-main": i.value === "center"
|
|
647
|
+
"f-splitter-pane-main": c.value === "center",
|
|
648
|
+
"has-resize-bar": t.resizable
|
|
610
649
|
};
|
|
611
|
-
return
|
|
612
|
-
}), u =
|
|
613
|
-
const
|
|
614
|
-
return (
|
|
615
|
-
}),
|
|
650
|
+
return p["f-splitter-pane-" + c.value] = !0, B(p, t == null ? void 0 : t.customClass);
|
|
651
|
+
}), r = C(() => t.resizeHandle ? t.resizeHandle.split(",").filter((p) => ["e", "n", "s", "w"].find((u) => u === p)) : []), y = C(() => {
|
|
652
|
+
const p = {};
|
|
653
|
+
return (f.value && c.value === "left" || c.value === "right" || r.value.find((u) => u === "e") || r.value.find((u) => u === "w")) && (p.width = `${f.value}px`), (o.value && c.value === "bottom" || c.value === "top" || r.value.find((u) => u === "s") || r.value.find((u) => u === "n")) && (p.height = `${o.value}px`), L(p, t == null ? void 0 : t.customStyle);
|
|
654
|
+
}), d = C(() => ({
|
|
616
655
|
"f-splitter-resize-bar": !0,
|
|
617
|
-
"f-splitter-resize-bar-e":
|
|
618
|
-
"f-splitter-resize-bar-n":
|
|
619
|
-
"f-splitter-resize-bar-s":
|
|
620
|
-
"f-splitter-resize-bar-w":
|
|
656
|
+
"f-splitter-resize-bar-e": c.value === "left",
|
|
657
|
+
"f-splitter-resize-bar-n": c.value === "bottom",
|
|
658
|
+
"f-splitter-resize-bar-s": c.value === "top",
|
|
659
|
+
"f-splitter-resize-bar-w": c.value === "right"
|
|
621
660
|
}));
|
|
622
|
-
function
|
|
623
|
-
|
|
661
|
+
function P(p) {
|
|
662
|
+
return {
|
|
663
|
+
e: "left",
|
|
664
|
+
w: "right",
|
|
665
|
+
s: "top",
|
|
666
|
+
n: "bottom"
|
|
667
|
+
}[p] || p;
|
|
624
668
|
}
|
|
625
|
-
|
|
669
|
+
function T(p, u) {
|
|
670
|
+
u = P(u), ["left", "right"].find((z) => z === u) && v(p, u, n.value), ["top", "bottom"].find((z) => z === u) && l(p, u, n.value);
|
|
671
|
+
}
|
|
672
|
+
function R() {
|
|
673
|
+
return r.value.length > 0 ? r.value.map((p) => w("span", {
|
|
674
|
+
class: "f-splitter-resize-bar f-splitter-resize-bar-" + p,
|
|
675
|
+
onMousedown: (u) => T(u, p)
|
|
676
|
+
}, null)) : w("span", {
|
|
677
|
+
class: d.value,
|
|
678
|
+
onMousedown: (p) => T(p, c.value)
|
|
679
|
+
}, null);
|
|
680
|
+
}
|
|
681
|
+
return () => w("div", {
|
|
626
682
|
ref: n,
|
|
627
|
-
class:
|
|
628
|
-
style:
|
|
629
|
-
}, [e.slots.default && e.slots.default(),
|
|
630
|
-
class: b.value,
|
|
631
|
-
onMousedown: (a) => s(a, i.value)
|
|
632
|
-
}, null)]);
|
|
683
|
+
class: m.value,
|
|
684
|
+
style: y.value
|
|
685
|
+
}, [e.slots.default && e.slots.default(), t.resizable && R()]);
|
|
633
686
|
}
|
|
634
687
|
});
|
|
635
|
-
function
|
|
636
|
-
var
|
|
688
|
+
function Z(t, e, n) {
|
|
689
|
+
var z;
|
|
690
|
+
const a = n && n.getStyles && n.getStyles() || "", i = n && n.getDesignerClass && n.getDesignerClass() || "", s = g();
|
|
637
691
|
function o() {
|
|
638
|
-
n != null && n.resolveComponentContext && n.resolveComponentContext();
|
|
639
|
-
}
|
|
640
|
-
o();
|
|
641
|
-
const r = n && n.getStyles && n.getStyles() || "", d = n && n.getDesignerClass && n.getDesignerClass() || "", c = P();
|
|
642
|
-
function m() {
|
|
643
692
|
return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : n && n.checkCanMoveComponent ? n.checkCanMoveComponent() : !0;
|
|
644
693
|
}
|
|
645
|
-
function
|
|
694
|
+
function f() {
|
|
646
695
|
return !1;
|
|
647
696
|
}
|
|
648
|
-
function
|
|
697
|
+
function v() {
|
|
649
698
|
return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : n && n.checkCanDeleteComponent ? n.checkCanDeleteComponent() : !0;
|
|
650
699
|
}
|
|
651
|
-
function
|
|
700
|
+
function l() {
|
|
652
701
|
return (e == null ? void 0 : e.schema.componentType) === "frame" ? !0 : n && n.hideNestedPaddingInDesginerView ? n.hideNestedPaddingInDesginerView() : !1;
|
|
653
702
|
}
|
|
654
|
-
function
|
|
655
|
-
if (!
|
|
703
|
+
function c(h) {
|
|
704
|
+
if (!h || !h.value)
|
|
656
705
|
return null;
|
|
657
|
-
if (
|
|
658
|
-
return
|
|
659
|
-
const
|
|
660
|
-
return
|
|
706
|
+
if (h.value.schema && h.value.schema.type === "component")
|
|
707
|
+
return h.value;
|
|
708
|
+
const b = g(h == null ? void 0 : h.value.parent), S = c(b);
|
|
709
|
+
return S || null;
|
|
661
710
|
}
|
|
662
|
-
function
|
|
663
|
-
const { componentInstance:
|
|
664
|
-
return !
|
|
711
|
+
function m(h = e) {
|
|
712
|
+
const { componentInstance: b, designerItemElementRef: S } = h;
|
|
713
|
+
return !b || !b.value ? null : b.value.canMove ? S : m(h.parent);
|
|
665
714
|
}
|
|
666
|
-
function
|
|
667
|
-
return !!n && n.canAccepts(
|
|
715
|
+
function r(h) {
|
|
716
|
+
return !!n && n.canAccepts(h);
|
|
668
717
|
}
|
|
669
|
-
function
|
|
718
|
+
function y() {
|
|
670
719
|
return (e == null ? void 0 : e.schema.label) || (e == null ? void 0 : e.schema.title) || (e == null ? void 0 : e.schema.name);
|
|
671
720
|
}
|
|
672
|
-
function
|
|
673
|
-
}
|
|
674
|
-
function f(y, w) {
|
|
675
|
-
w && n != null && n.onAcceptMovedChildElement && n.onAcceptMovedChildElement(w);
|
|
721
|
+
function d() {
|
|
676
722
|
}
|
|
677
|
-
function h
|
|
678
|
-
|
|
679
|
-
let A = $(z, y, w);
|
|
680
|
-
n && n.onResolveNewComponentSchema && (A = n.onResolveNewComponentSchema(y, A));
|
|
681
|
-
const D = z.toLowerCase().replace("-", "_");
|
|
682
|
-
return A && !A.id && A.type === z && (A.id = `${D}_${Math.random().toString().slice(2, 6)}`), A;
|
|
723
|
+
function P(h, b) {
|
|
724
|
+
b && n != null && n.onAcceptMovedChildElement && n.onAcceptMovedChildElement(b);
|
|
683
725
|
}
|
|
684
|
-
function
|
|
685
|
-
const
|
|
686
|
-
D
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
return E && !E.id && E.type === z && (E.id = `${ee}_${Math.random().toString().slice(2, 6)}`), E;
|
|
726
|
+
function T(h, b) {
|
|
727
|
+
const { componentType: S } = h;
|
|
728
|
+
let D = Y(S, h, b);
|
|
729
|
+
n && n.onResolveNewComponentSchema && (D = n.onResolveNewComponentSchema(h, D));
|
|
730
|
+
const K = S.toLowerCase().replace(/-/g, "_");
|
|
731
|
+
return D && !D.id && D.type === S && (D.id = `${K}_${Math.random().toString().slice(2, 6)}`), D;
|
|
691
732
|
}
|
|
692
|
-
function
|
|
733
|
+
function R(h) {
|
|
693
734
|
}
|
|
694
|
-
function
|
|
735
|
+
function p(...h) {
|
|
695
736
|
if (n && n.getPropsConfig)
|
|
696
|
-
return n.getPropsConfig(...
|
|
737
|
+
return n.getPropsConfig(...h);
|
|
738
|
+
}
|
|
739
|
+
function u() {
|
|
740
|
+
n && n.onRemoveComponent && n.onRemoveComponent(), e != null && e.schema.contents && e.schema.contents.map((h) => {
|
|
741
|
+
var D;
|
|
742
|
+
let b = h.id;
|
|
743
|
+
h.type === "component-ref" && (b = h.component);
|
|
744
|
+
const S = t.value.querySelector(`#${b}-design-item`);
|
|
745
|
+
(D = S == null ? void 0 : S.componentInstance) != null && D.value.onRemoveComponent && S.componentInstance.value.onRemoveComponent();
|
|
746
|
+
});
|
|
697
747
|
}
|
|
698
|
-
return
|
|
699
|
-
canMove:
|
|
700
|
-
canSelectParent:
|
|
701
|
-
canDelete:
|
|
702
|
-
canNested: !
|
|
748
|
+
return s.value = {
|
|
749
|
+
canMove: o(),
|
|
750
|
+
canSelectParent: f(),
|
|
751
|
+
canDelete: v(),
|
|
752
|
+
canNested: !l(),
|
|
703
753
|
contents: e == null ? void 0 : e.schema.contents,
|
|
704
754
|
elementRef: t,
|
|
705
|
-
parent: (
|
|
755
|
+
parent: (z = e == null ? void 0 : e.parent) == null ? void 0 : z.componentInstance,
|
|
706
756
|
schema: e == null ? void 0 : e.schema,
|
|
707
|
-
styles:
|
|
708
|
-
designerClass:
|
|
709
|
-
canAccepts:
|
|
710
|
-
getBelongedComponentInstance:
|
|
711
|
-
getDraggableDesignItemElement:
|
|
712
|
-
getDraggingDisplayText:
|
|
713
|
-
getPropConfig:
|
|
714
|
-
getDragScopeElement:
|
|
715
|
-
onAcceptMovedChildElement:
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
}, c;
|
|
757
|
+
styles: a,
|
|
758
|
+
designerClass: i,
|
|
759
|
+
canAccepts: r,
|
|
760
|
+
getBelongedComponentInstance: c,
|
|
761
|
+
getDraggableDesignItemElement: m,
|
|
762
|
+
getDraggingDisplayText: y,
|
|
763
|
+
getPropConfig: p,
|
|
764
|
+
getDragScopeElement: d,
|
|
765
|
+
onAcceptMovedChildElement: P,
|
|
766
|
+
onChildElementMovedOut: R,
|
|
767
|
+
addNewChildComponentSchema: T,
|
|
768
|
+
triggerBelongedComponentToMoveWhenMoved: !!n && n.triggerBelongedComponentToMoveWhenMoved || g(!1),
|
|
769
|
+
triggerBelongedComponentToDeleteWhenDeleted: !!n && n.triggerBelongedComponentToDeleteWhenDeleted || g(!1),
|
|
770
|
+
onRemoveComponent: u
|
|
771
|
+
}, s;
|
|
723
772
|
}
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
"f-struct-form": {
|
|
751
|
-
description: "The class of form component which has a hierarchical structure of component -> section -> respnse-form.",
|
|
752
|
-
type: "object",
|
|
753
|
-
properties: {
|
|
754
|
-
contents: {
|
|
755
|
-
type: "object",
|
|
756
|
-
properties: {
|
|
757
|
-
"f-section-form": {
|
|
758
|
-
description: "The class of section which has wrapped a reponse-form component.",
|
|
759
|
-
type: "object",
|
|
760
|
-
properties: {
|
|
761
|
-
contents: {
|
|
762
|
-
type: "object",
|
|
763
|
-
properties: {
|
|
764
|
-
"f-form-layout": {
|
|
765
|
-
description: "The class of reponse form",
|
|
766
|
-
type: "object",
|
|
767
|
-
properties: {
|
|
768
|
-
rules: {
|
|
769
|
-
type: "object",
|
|
770
|
-
properties: {
|
|
771
|
-
canAccept: {
|
|
772
|
-
type: "boolean",
|
|
773
|
-
const: !0
|
|
774
|
-
},
|
|
775
|
-
fixed: {
|
|
776
|
-
type: "boolean",
|
|
777
|
-
const: !0
|
|
778
|
-
},
|
|
779
|
-
hidePadding: {
|
|
780
|
-
type: "boolean",
|
|
781
|
-
const: !1
|
|
782
|
-
}
|
|
783
|
-
}
|
|
784
|
-
}
|
|
785
|
-
}
|
|
786
|
-
}
|
|
787
|
-
}
|
|
788
|
-
},
|
|
789
|
-
rules: {
|
|
790
|
-
type: "object",
|
|
791
|
-
properties: {
|
|
792
|
-
canAccept: {
|
|
793
|
-
type: "boolean",
|
|
794
|
-
const: !1
|
|
795
|
-
},
|
|
796
|
-
fixed: {
|
|
797
|
-
type: "boolean",
|
|
798
|
-
const: !0
|
|
799
|
-
},
|
|
800
|
-
hidePadding: {
|
|
801
|
-
type: "boolean",
|
|
802
|
-
const: !0
|
|
803
|
-
}
|
|
804
|
-
}
|
|
805
|
-
}
|
|
806
|
-
}
|
|
807
|
-
}
|
|
808
|
-
}
|
|
809
|
-
},
|
|
810
|
-
rules: {
|
|
811
|
-
type: "object",
|
|
812
|
-
properties: {
|
|
813
|
-
canAccept: {
|
|
814
|
-
type: "boolean",
|
|
815
|
-
const: !1
|
|
816
|
-
},
|
|
817
|
-
fixed: {
|
|
818
|
-
type: "boolean",
|
|
819
|
-
const: !1
|
|
820
|
-
},
|
|
821
|
-
hidePadding: {
|
|
822
|
-
type: "boolean",
|
|
823
|
-
const: !0
|
|
824
|
-
}
|
|
825
|
-
}
|
|
826
|
-
}
|
|
827
|
-
}
|
|
828
|
-
},
|
|
829
|
-
"f-struct-wrapper": {
|
|
830
|
-
description: "",
|
|
831
|
-
type: "object",
|
|
832
|
-
properties: {
|
|
833
|
-
contents: {
|
|
834
|
-
type: "object",
|
|
835
|
-
properties: {
|
|
836
|
-
"f-section-tabs": {
|
|
837
|
-
description: "The class of section which has wrapped sub-grid tabs.",
|
|
838
|
-
type: "object",
|
|
839
|
-
properties: {
|
|
840
|
-
contents: {
|
|
841
|
-
type: "object",
|
|
842
|
-
properties: {
|
|
843
|
-
"f-tabs-in-card": {
|
|
844
|
-
description: "The class of tabs which contains sub-grid.",
|
|
845
|
-
type: "object",
|
|
846
|
-
properties: {
|
|
847
|
-
contents: {
|
|
848
|
-
type: "object",
|
|
849
|
-
properties: {
|
|
850
|
-
"f-struct-data-grid-in-card": {
|
|
851
|
-
description: "The class of sub-grid component",
|
|
852
|
-
type: "object",
|
|
853
|
-
properties: {
|
|
854
|
-
contents: {
|
|
855
|
-
type: "object",
|
|
856
|
-
properties: {
|
|
857
|
-
"f-grid-is-sub": {
|
|
858
|
-
description: "The class of sub-grid",
|
|
859
|
-
type: "object",
|
|
860
|
-
properties: {
|
|
861
|
-
rules: {
|
|
862
|
-
type: "object",
|
|
863
|
-
properties: {
|
|
864
|
-
canAccept: {
|
|
865
|
-
type: "boolean",
|
|
866
|
-
const: !0
|
|
867
|
-
},
|
|
868
|
-
fixed: {
|
|
869
|
-
type: "boolean",
|
|
870
|
-
const: !0
|
|
871
|
-
},
|
|
872
|
-
hidePadding: {
|
|
873
|
-
type: "boolean",
|
|
874
|
-
const: !1
|
|
875
|
-
}
|
|
876
|
-
}
|
|
877
|
-
}
|
|
878
|
-
}
|
|
879
|
-
}
|
|
880
|
-
}
|
|
881
|
-
},
|
|
882
|
-
rules: {
|
|
883
|
-
type: "object",
|
|
884
|
-
properties: {
|
|
885
|
-
canAccept: {
|
|
886
|
-
type: "boolean",
|
|
887
|
-
const: !1
|
|
888
|
-
},
|
|
889
|
-
fixed: {
|
|
890
|
-
type: "boolean",
|
|
891
|
-
const: !1
|
|
892
|
-
},
|
|
893
|
-
hidePadding: {
|
|
894
|
-
type: "boolean",
|
|
895
|
-
const: !0
|
|
896
|
-
}
|
|
897
|
-
}
|
|
898
|
-
}
|
|
899
|
-
}
|
|
900
|
-
}
|
|
901
|
-
}
|
|
902
|
-
},
|
|
903
|
-
rules: {
|
|
904
|
-
type: "object",
|
|
905
|
-
properties: {
|
|
906
|
-
canAccept: {
|
|
907
|
-
type: "boolean",
|
|
908
|
-
const: !1
|
|
909
|
-
},
|
|
910
|
-
fixed: {
|
|
911
|
-
type: "boolean",
|
|
912
|
-
const: !0
|
|
913
|
-
},
|
|
914
|
-
hidePadding: {
|
|
915
|
-
type: "boolean",
|
|
916
|
-
const: !0
|
|
917
|
-
}
|
|
918
|
-
}
|
|
919
|
-
}
|
|
920
|
-
}
|
|
921
|
-
}
|
|
922
|
-
}
|
|
923
|
-
},
|
|
924
|
-
rules: {
|
|
925
|
-
type: "object",
|
|
926
|
-
properties: {
|
|
927
|
-
canAccept: {
|
|
928
|
-
type: "boolean",
|
|
929
|
-
const: !1
|
|
930
|
-
},
|
|
931
|
-
fixed: {
|
|
932
|
-
type: "boolean",
|
|
933
|
-
const: !0
|
|
934
|
-
},
|
|
935
|
-
hidePadding: {
|
|
936
|
-
type: "boolean",
|
|
937
|
-
const: !0
|
|
938
|
-
}
|
|
939
|
-
}
|
|
940
|
-
}
|
|
941
|
-
}
|
|
942
|
-
},
|
|
943
|
-
"f-section-in-main": {
|
|
944
|
-
description: "The class of section which has wrapped a reponse-form component.",
|
|
945
|
-
type: "object",
|
|
946
|
-
properties: {
|
|
947
|
-
rules: {
|
|
948
|
-
type: "object",
|
|
949
|
-
properties: {
|
|
950
|
-
canAccept: {
|
|
951
|
-
type: "boolean",
|
|
952
|
-
const: !0
|
|
953
|
-
},
|
|
954
|
-
fixed: {
|
|
955
|
-
type: "boolean",
|
|
956
|
-
const: !0
|
|
957
|
-
},
|
|
958
|
-
hidePadding: {
|
|
959
|
-
type: "boolean",
|
|
960
|
-
const: !1
|
|
961
|
-
}
|
|
962
|
-
}
|
|
963
|
-
}
|
|
964
|
-
}
|
|
965
|
-
}
|
|
966
|
-
}
|
|
967
|
-
},
|
|
968
|
-
rules: {
|
|
969
|
-
type: "object",
|
|
970
|
-
properties: {
|
|
971
|
-
canAccept: {
|
|
972
|
-
type: "boolean",
|
|
973
|
-
const: !1
|
|
974
|
-
},
|
|
975
|
-
fixed: {
|
|
976
|
-
type: "boolean",
|
|
977
|
-
const: !1
|
|
978
|
-
},
|
|
979
|
-
hidePadding: {
|
|
980
|
-
type: "boolean",
|
|
981
|
-
const: !0
|
|
982
|
-
}
|
|
983
|
-
}
|
|
984
|
-
}
|
|
985
|
-
}
|
|
986
|
-
}
|
|
987
|
-
}
|
|
988
|
-
},
|
|
989
|
-
rules: {
|
|
990
|
-
type: "object",
|
|
991
|
-
properties: {
|
|
992
|
-
canAccept: {
|
|
993
|
-
type: "boolean",
|
|
994
|
-
const: !0
|
|
995
|
-
},
|
|
996
|
-
fixed: {
|
|
997
|
-
type: "boolean",
|
|
998
|
-
const: !0
|
|
999
|
-
},
|
|
1000
|
-
hidePadding: {
|
|
1001
|
-
type: "object",
|
|
1002
|
-
const: {
|
|
1003
|
-
allOf: [
|
|
1004
|
-
{
|
|
1005
|
-
sibling: 0,
|
|
1006
|
-
parent: {
|
|
1007
|
-
"f-page-main": !0
|
|
1008
|
-
}
|
|
1009
|
-
}
|
|
1010
|
-
]
|
|
1011
|
-
}
|
|
1012
|
-
}
|
|
1013
|
-
}
|
|
1014
|
-
}
|
|
1015
|
-
}
|
|
1016
|
-
},
|
|
1017
|
-
"f-struct-data-grid": {
|
|
1018
|
-
description: "",
|
|
1019
|
-
type: "object",
|
|
1020
|
-
properties: {
|
|
1021
|
-
rules: {
|
|
1022
|
-
type: "object",
|
|
1023
|
-
properties: {
|
|
1024
|
-
canAccept: {
|
|
1025
|
-
type: "object",
|
|
1026
|
-
const: !0
|
|
1027
|
-
},
|
|
1028
|
-
fixed: {
|
|
1029
|
-
type: "boolean",
|
|
1030
|
-
const: !0
|
|
1031
|
-
},
|
|
1032
|
-
hidePadding: {
|
|
1033
|
-
type: "boolean",
|
|
1034
|
-
const: !0
|
|
1035
|
-
}
|
|
1036
|
-
}
|
|
1037
|
-
}
|
|
1038
|
-
}
|
|
1039
|
-
},
|
|
1040
|
-
"f-page-main-content": {
|
|
1041
|
-
description: "",
|
|
1042
|
-
type: "object",
|
|
1043
|
-
properties: {
|
|
1044
|
-
contents: {
|
|
1045
|
-
type: "object",
|
|
1046
|
-
properties: {
|
|
1047
|
-
"f-page-content-nav": {
|
|
1048
|
-
description: "",
|
|
1049
|
-
type: "object",
|
|
1050
|
-
properties: {
|
|
1051
|
-
contents: {
|
|
1052
|
-
type: "object",
|
|
1053
|
-
properties: {
|
|
1054
|
-
"f-struct-data-grid-in-nav": {
|
|
1055
|
-
description: "",
|
|
1056
|
-
type: "object",
|
|
1057
|
-
properties: {
|
|
1058
|
-
contents: {
|
|
1059
|
-
type: "object",
|
|
1060
|
-
properties: {
|
|
1061
|
-
"f-page-content-nav-extend": {
|
|
1062
|
-
description: "",
|
|
1063
|
-
type: "object"
|
|
1064
|
-
},
|
|
1065
|
-
"f-section-in-nav": {
|
|
1066
|
-
description: "",
|
|
1067
|
-
type: "object",
|
|
1068
|
-
properties: {
|
|
1069
|
-
rules: {
|
|
1070
|
-
type: "object",
|
|
1071
|
-
properties: {
|
|
1072
|
-
canAccept: {
|
|
1073
|
-
type: "boolean",
|
|
1074
|
-
const: !1
|
|
1075
|
-
},
|
|
1076
|
-
fixed: {
|
|
1077
|
-
type: "boolean",
|
|
1078
|
-
const: !0
|
|
1079
|
-
},
|
|
1080
|
-
hidePadding: {
|
|
1081
|
-
type: "boolean",
|
|
1082
|
-
const: !1
|
|
1083
|
-
}
|
|
1084
|
-
}
|
|
1085
|
-
}
|
|
1086
|
-
}
|
|
1087
|
-
}
|
|
1088
|
-
}
|
|
1089
|
-
},
|
|
1090
|
-
rules: {
|
|
1091
|
-
type: "object",
|
|
1092
|
-
properties: {
|
|
1093
|
-
canAccept: {
|
|
1094
|
-
type: "boolean",
|
|
1095
|
-
const: !0
|
|
1096
|
-
},
|
|
1097
|
-
fixed: {
|
|
1098
|
-
type: "boolean",
|
|
1099
|
-
const: !1
|
|
1100
|
-
},
|
|
1101
|
-
hidePadding: {
|
|
1102
|
-
type: "boolean",
|
|
1103
|
-
const: !0
|
|
1104
|
-
}
|
|
1105
|
-
}
|
|
1106
|
-
}
|
|
1107
|
-
}
|
|
1108
|
-
}
|
|
1109
|
-
}
|
|
1110
|
-
}
|
|
1111
|
-
}
|
|
1112
|
-
},
|
|
1113
|
-
"f-page-content-main": {
|
|
1114
|
-
description: "",
|
|
1115
|
-
type: "object",
|
|
1116
|
-
properties: {}
|
|
1117
|
-
}
|
|
1118
|
-
}
|
|
1119
|
-
}
|
|
1120
|
-
}
|
|
1121
|
-
},
|
|
1122
|
-
"f-page-content": {
|
|
1123
|
-
description: "",
|
|
1124
|
-
type: "object",
|
|
1125
|
-
properties: {
|
|
1126
|
-
contents: {
|
|
1127
|
-
type: "object",
|
|
1128
|
-
properties: {
|
|
1129
|
-
"f-page-content-nav": {
|
|
1130
|
-
description: "",
|
|
1131
|
-
type: "object",
|
|
1132
|
-
properties: {
|
|
1133
|
-
contents: {
|
|
1134
|
-
type: "object",
|
|
1135
|
-
properties: {
|
|
1136
|
-
"f-list-nav": {
|
|
1137
|
-
description: "",
|
|
1138
|
-
type: "object"
|
|
1139
|
-
},
|
|
1140
|
-
"f-list-nav-left": {
|
|
1141
|
-
description: "",
|
|
1142
|
-
type: "object"
|
|
1143
|
-
},
|
|
1144
|
-
"f-struct-data-grid-in-nav": {
|
|
1145
|
-
description: "",
|
|
1146
|
-
type: "object",
|
|
1147
|
-
properties: {
|
|
1148
|
-
contents: {
|
|
1149
|
-
type: "object",
|
|
1150
|
-
properties: {
|
|
1151
|
-
"f-section-form": {
|
|
1152
|
-
description: "",
|
|
1153
|
-
type: "object",
|
|
1154
|
-
properties: {
|
|
1155
|
-
rules: {
|
|
1156
|
-
type: "object",
|
|
1157
|
-
properties: {
|
|
1158
|
-
canAccept: {
|
|
1159
|
-
type: "boolean",
|
|
1160
|
-
const: !1
|
|
1161
|
-
},
|
|
1162
|
-
fixed: {
|
|
1163
|
-
type: "boolean",
|
|
1164
|
-
const: !0
|
|
1165
|
-
},
|
|
1166
|
-
hidePadding: {
|
|
1167
|
-
type: "boolean",
|
|
1168
|
-
const: !0
|
|
1169
|
-
}
|
|
1170
|
-
}
|
|
1171
|
-
}
|
|
1172
|
-
}
|
|
1173
|
-
},
|
|
1174
|
-
"f-section-grid": {
|
|
1175
|
-
description: "",
|
|
1176
|
-
type: "object",
|
|
1177
|
-
properties: {
|
|
1178
|
-
rules: {
|
|
1179
|
-
type: "object",
|
|
1180
|
-
properties: {
|
|
1181
|
-
canAccept: {
|
|
1182
|
-
type: "boolean",
|
|
1183
|
-
const: !1
|
|
1184
|
-
},
|
|
1185
|
-
fixed: {
|
|
1186
|
-
type: "boolean",
|
|
1187
|
-
const: !0
|
|
1188
|
-
},
|
|
1189
|
-
hidePadding: {
|
|
1190
|
-
type: "boolean",
|
|
1191
|
-
const: !0
|
|
1192
|
-
}
|
|
1193
|
-
}
|
|
1194
|
-
}
|
|
1195
|
-
}
|
|
1196
|
-
}
|
|
1197
|
-
}
|
|
1198
|
-
},
|
|
1199
|
-
rules: {
|
|
1200
|
-
type: "object",
|
|
1201
|
-
properties: {
|
|
1202
|
-
canAccept: {
|
|
1203
|
-
type: "boolean",
|
|
1204
|
-
const: !1
|
|
1205
|
-
},
|
|
1206
|
-
fixed: {
|
|
1207
|
-
type: "boolean",
|
|
1208
|
-
const: !0
|
|
1209
|
-
},
|
|
1210
|
-
hidePadding: {
|
|
1211
|
-
type: "boolean",
|
|
1212
|
-
const: !0
|
|
1213
|
-
}
|
|
1214
|
-
}
|
|
1215
|
-
}
|
|
1216
|
-
}
|
|
1217
|
-
}
|
|
1218
|
-
}
|
|
1219
|
-
}
|
|
1220
|
-
},
|
|
1221
|
-
rules: {
|
|
1222
|
-
type: "object",
|
|
1223
|
-
properties: {
|
|
1224
|
-
canAccept: {
|
|
1225
|
-
type: "boolean",
|
|
1226
|
-
const: !1
|
|
1227
|
-
},
|
|
1228
|
-
fixed: {
|
|
1229
|
-
type: "boolean",
|
|
1230
|
-
const: !0
|
|
1231
|
-
},
|
|
1232
|
-
hidePadding: {
|
|
1233
|
-
type: "boolean",
|
|
1234
|
-
const: !0
|
|
1235
|
-
}
|
|
1236
|
-
}
|
|
1237
|
-
}
|
|
1238
|
-
},
|
|
1239
|
-
"f-page-content-main": {
|
|
1240
|
-
description: "",
|
|
1241
|
-
type: "object",
|
|
1242
|
-
properties: {
|
|
1243
|
-
rules: {
|
|
1244
|
-
type: "object",
|
|
1245
|
-
properties: {
|
|
1246
|
-
canAccept: {
|
|
1247
|
-
type: "boolean",
|
|
1248
|
-
const: !1
|
|
1249
|
-
},
|
|
1250
|
-
fixed: {
|
|
1251
|
-
type: "boolean",
|
|
1252
|
-
const: !1
|
|
1253
|
-
},
|
|
1254
|
-
hidePadding: {
|
|
1255
|
-
type: "boolean",
|
|
1256
|
-
const: !0
|
|
1257
|
-
}
|
|
1258
|
-
}
|
|
1259
|
-
}
|
|
1260
|
-
}
|
|
1261
|
-
}
|
|
1262
|
-
}
|
|
1263
|
-
},
|
|
1264
|
-
rules: {
|
|
1265
|
-
type: "object",
|
|
1266
|
-
properties: {
|
|
1267
|
-
canAccept: {
|
|
1268
|
-
type: "boolean",
|
|
1269
|
-
const: !1
|
|
1270
|
-
},
|
|
1271
|
-
fixed: {
|
|
1272
|
-
type: "boolean",
|
|
1273
|
-
const: !0
|
|
1274
|
-
},
|
|
1275
|
-
hidePadding: {
|
|
1276
|
-
type: "boolean",
|
|
1277
|
-
const: !0
|
|
1278
|
-
}
|
|
1279
|
-
}
|
|
1280
|
-
}
|
|
1281
|
-
}
|
|
1282
|
-
}
|
|
1283
|
-
}
|
|
1284
|
-
},
|
|
1285
|
-
rules: {
|
|
1286
|
-
type: "object",
|
|
1287
|
-
properties: {
|
|
1288
|
-
canAccept: {
|
|
1289
|
-
type: "object",
|
|
1290
|
-
const: {
|
|
1291
|
-
anyOf: [
|
|
1292
|
-
{
|
|
1293
|
-
children: 0
|
|
1294
|
-
},
|
|
1295
|
-
{
|
|
1296
|
-
children: {
|
|
1297
|
-
length: {
|
|
1298
|
-
not: 1
|
|
1299
|
-
},
|
|
1300
|
-
"f-struct-like-card": !0
|
|
1301
|
-
}
|
|
1302
|
-
},
|
|
1303
|
-
{
|
|
1304
|
-
children: {
|
|
1305
|
-
"scroll-spy": !1,
|
|
1306
|
-
"f-page-content": !1,
|
|
1307
|
-
"f-struct-like-card": !1
|
|
1308
|
-
}
|
|
1309
|
-
}
|
|
1310
|
-
]
|
|
1311
|
-
}
|
|
1312
|
-
},
|
|
1313
|
-
fixed: {
|
|
1314
|
-
type: "boolean",
|
|
1315
|
-
const: !0
|
|
1316
|
-
},
|
|
1317
|
-
hidePadding: {
|
|
1318
|
-
type: "boolean",
|
|
1319
|
-
const: !0
|
|
1320
|
-
}
|
|
1321
|
-
}
|
|
1322
|
-
}
|
|
1323
|
-
}
|
|
1324
|
-
},
|
|
1325
|
-
"f-page-footer": {
|
|
1326
|
-
description: "The class of page footer designed by farris.",
|
|
1327
|
-
type: "string"
|
|
773
|
+
class x {
|
|
774
|
+
getTemplateRule(e, n) {
|
|
775
|
+
const a = n == null ? void 0 : n.formSchemaUtils, i = a == null ? void 0 : a.getFormTemplateRule(), s = { canAccept: !0, canDelete: !0, canMove: !0 };
|
|
776
|
+
if (!i)
|
|
777
|
+
return s;
|
|
778
|
+
const o = this.getComponentContext(e), { componentClassList: f } = o;
|
|
779
|
+
return f.forEach((v) => {
|
|
780
|
+
if (!v || !i[v])
|
|
781
|
+
return;
|
|
782
|
+
const { canMove: l, canDelete: c, canAccept: m } = i[v];
|
|
783
|
+
s.canMove = s.canMove && this.resolveRuleValue(l, o), s.canDelete = s.canDelete && this.resolveRuleValue(c, o), s.canAccept = s.canAccept && this.resolveRuleValue(m, o);
|
|
784
|
+
}), s;
|
|
785
|
+
}
|
|
786
|
+
resolveRuleValue(e, n) {
|
|
787
|
+
return typeof e == "boolean" ? e : this.parseRuleValueSchema(e, n);
|
|
788
|
+
}
|
|
789
|
+
parseRuleValueSchema(e, n) {
|
|
790
|
+
const a = e.invalidContext || [];
|
|
791
|
+
let i = !0;
|
|
792
|
+
for (const s of a) {
|
|
793
|
+
if (s.firstLevelChild) {
|
|
794
|
+
if (s.firstLevelChild.class) {
|
|
795
|
+
const { firstLevelChildClassList: o } = n;
|
|
796
|
+
if (o && !o.includes(s.firstLevelChild.class)) {
|
|
797
|
+
i = !1;
|
|
798
|
+
continue;
|
|
1328
799
|
}
|
|
1329
800
|
}
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
type: "boolean",
|
|
1336
|
-
const: !1
|
|
1337
|
-
},
|
|
1338
|
-
fixed: {
|
|
1339
|
-
type: "boolean",
|
|
1340
|
-
const: !0
|
|
1341
|
-
},
|
|
1342
|
-
hidePadding: {
|
|
1343
|
-
type: "boolean",
|
|
1344
|
-
const: !0
|
|
801
|
+
if (s.firstLevelChild.type) {
|
|
802
|
+
const { firstLevelChildSchema: o } = n;
|
|
803
|
+
if (!o || o.type !== s.firstLevelChild.type) {
|
|
804
|
+
i = !1;
|
|
805
|
+
continue;
|
|
1345
806
|
}
|
|
1346
807
|
}
|
|
1347
808
|
}
|
|
809
|
+
if (s.secondLevelChild) {
|
|
810
|
+
if (s.secondLevelChild.class) {
|
|
811
|
+
const { secondLevelChildClassList: o } = n;
|
|
812
|
+
if (o && !o.includes(s.secondLevelChild.class)) {
|
|
813
|
+
i = !1;
|
|
814
|
+
continue;
|
|
815
|
+
}
|
|
816
|
+
}
|
|
817
|
+
if (s.secondLevelChild.type) {
|
|
818
|
+
const { secondLevelChildSchema: o } = n;
|
|
819
|
+
if (!o || o.type !== s.secondLevelChild.type) {
|
|
820
|
+
i = !1;
|
|
821
|
+
continue;
|
|
822
|
+
}
|
|
823
|
+
}
|
|
824
|
+
}
|
|
825
|
+
if (s.parent) {
|
|
826
|
+
if (s.parent.class) {
|
|
827
|
+
const { parentClassList: o } = n;
|
|
828
|
+
if (o && !o.includes(s.parent.class)) {
|
|
829
|
+
i = !1;
|
|
830
|
+
continue;
|
|
831
|
+
}
|
|
832
|
+
}
|
|
833
|
+
if (s.parent.type) {
|
|
834
|
+
const { parentSchema: o } = n;
|
|
835
|
+
if (o && o.type !== s.parent.type) {
|
|
836
|
+
i = !1;
|
|
837
|
+
continue;
|
|
838
|
+
}
|
|
839
|
+
}
|
|
840
|
+
}
|
|
841
|
+
i = !0;
|
|
842
|
+
break;
|
|
1348
843
|
}
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
type: Xe,
|
|
1368
|
-
properties: Ye
|
|
1369
|
-
}, F = /* @__PURE__ */ new Map();
|
|
1370
|
-
function Je() {
|
|
1371
|
-
function t(s, a, f, h) {
|
|
1372
|
-
var v;
|
|
1373
|
-
if (typeof f == "number")
|
|
1374
|
-
return ((v = h[s]) == null ? void 0 : v.length) === f;
|
|
1375
|
-
if (typeof f == "object") {
|
|
1376
|
-
const g = Object.keys(f)[0], C = f[g];
|
|
1377
|
-
if (g === "not")
|
|
1378
|
-
return Number(h[s].length) !== Number(C);
|
|
1379
|
-
if (g === "moreThan")
|
|
1380
|
-
return Number(h[s].length) >= Number(C);
|
|
1381
|
-
if (g === "lessThan")
|
|
1382
|
-
return Number(h[s].length) <= Number(C);
|
|
1383
|
-
}
|
|
1384
|
-
return !1;
|
|
1385
|
-
}
|
|
1386
|
-
function e(s, a, f, h) {
|
|
1387
|
-
return typeof f == "boolean" ? h.childrenClassList.includes(a) === !!f : !1;
|
|
1388
|
-
}
|
|
1389
|
-
function n(s, a, f, h) {
|
|
1390
|
-
return typeof f == "boolean" ? h.parentClassList.includes(a) === !!f : !1;
|
|
1391
|
-
}
|
|
1392
|
-
function o(s, a, f, h) {
|
|
1393
|
-
return typeof f == "boolean" ? h.parentClassList.includes(a) === !!f : !1;
|
|
1394
|
-
}
|
|
1395
|
-
const r = /* @__PURE__ */ new Map([
|
|
1396
|
-
["length", t],
|
|
1397
|
-
["hasChildren", e],
|
|
1398
|
-
["hasSibling", o],
|
|
1399
|
-
["hasParent", n]
|
|
1400
|
-
]);
|
|
1401
|
-
function d(s, a) {
|
|
1402
|
-
const f = s;
|
|
1403
|
-
return typeof a == "number" ? [{ target: f, operator: "length", param: null, value: Number(a) }] : typeof a == "object" ? Object.keys(a).map((h) => {
|
|
1404
|
-
if (h === "length")
|
|
1405
|
-
return { target: f, operator: "length", param: null, value: a[h] };
|
|
1406
|
-
const v = h, g = a[h];
|
|
1407
|
-
return { target: f, operator: s === "children" ? "hasChildren" : s === "parent" ? "hasParent" : "hasSibling", param: v, value: g };
|
|
1408
|
-
}) : [];
|
|
1409
|
-
}
|
|
1410
|
-
function c(s, a) {
|
|
1411
|
-
if (r.has(s.operator)) {
|
|
1412
|
-
const f = r.get(s.operator);
|
|
1413
|
-
return f && f(s.target, s.param, s.value, a) || !1;
|
|
1414
|
-
}
|
|
1415
|
-
return !1;
|
|
1416
|
-
}
|
|
1417
|
-
function m(s, a) {
|
|
1418
|
-
return Object.keys(s).reduce((g, C) => {
|
|
1419
|
-
const O = d(C, s[C]);
|
|
1420
|
-
return g.push(...O), g;
|
|
1421
|
-
}, []).reduce((g, C) => g && c(C, a), !0);
|
|
1422
|
-
}
|
|
1423
|
-
function j(s, a) {
|
|
1424
|
-
const f = Object.keys(s), h = f.includes("allOf"), v = f.includes("anyOf"), g = h || v, y = (g ? s[g ? h ? "allOf" : "anyOf" : "allOf"] : [s]).map((z) => m(z, a));
|
|
1425
|
-
return h ? !y.includes(!1) : y.includes(!0);
|
|
1426
|
-
}
|
|
1427
|
-
function p(s, a) {
|
|
1428
|
-
const f = s.const;
|
|
1429
|
-
return f ? typeof f == "boolean" ? f : typeof f == "object" ? j(f, a) : !1 : !1;
|
|
1430
|
-
}
|
|
1431
|
-
function i(s) {
|
|
1432
|
-
return (a) => {
|
|
1433
|
-
const f = { canAccept: !0, fixed: !1, hidePadding: !1 };
|
|
1434
|
-
return s && s.properties && Object.keys(s.properties).reduce((h, v) => {
|
|
1435
|
-
const g = s.properties[v];
|
|
1436
|
-
return h[v] = p(g, a), h;
|
|
1437
|
-
}, f), f;
|
|
844
|
+
return !i;
|
|
845
|
+
}
|
|
846
|
+
getComponentContext(e) {
|
|
847
|
+
var P, T, R, p;
|
|
848
|
+
const n = e.schema, a = n.appearance && n.appearance.class || "", i = a.split(" ") || [], s = n.contents || [], o = s.length ? s[0] : null, f = o && o.appearance ? o.appearance.class : "", v = f ? f.split(" ") : [], l = (P = o == null ? void 0 : o.contents) != null && P.length ? o == null ? void 0 : o.contents[0] : null, c = l && l.appearance ? l.appearance.class : "", m = c ? c.split(" ") : [], r = n.type === "component" ? (R = (T = e.parent) == null ? void 0 : T.parent) == null ? void 0 : R.schema : (p = e.parent) == null ? void 0 : p.schema, y = r && r.appearance && r.appearance.class || "", d = y ? y.split(" ") : [];
|
|
849
|
+
return {
|
|
850
|
+
componentClass: a,
|
|
851
|
+
componentClassList: i,
|
|
852
|
+
childContents: s,
|
|
853
|
+
firstLevelChildSchema: o,
|
|
854
|
+
firstLevelChildClass: f,
|
|
855
|
+
firstLevelChildClassList: v,
|
|
856
|
+
secondLevelChildSchema: l,
|
|
857
|
+
secondLevelChildClass: c,
|
|
858
|
+
secondLevelChildClassList: m,
|
|
859
|
+
parentSchema: r,
|
|
860
|
+
parentClass: y,
|
|
861
|
+
parentClassList: d
|
|
1438
862
|
};
|
|
1439
863
|
}
|
|
1440
|
-
function l(s, a, f) {
|
|
1441
|
-
if (a.type === "object" && a.properties) {
|
|
1442
|
-
const { rules: h, contents: v } = a.properties;
|
|
1443
|
-
f.set(s, i(h)), v && Object.keys(v.properties).forEach(
|
|
1444
|
-
(g) => l(g, v.properties[g], f)
|
|
1445
|
-
);
|
|
1446
|
-
}
|
|
1447
|
-
}
|
|
1448
|
-
function u() {
|
|
1449
|
-
const { properties: s } = _e;
|
|
1450
|
-
Object.keys(s).forEach((a) => {
|
|
1451
|
-
l(a, s[a], F);
|
|
1452
|
-
});
|
|
1453
|
-
}
|
|
1454
|
-
function b(s, a) {
|
|
1455
|
-
const f = { canAccept: !0, fixed: !1, hidePadding: !0 };
|
|
1456
|
-
return F.has(s) ? F.get(s)(a) : f;
|
|
1457
|
-
}
|
|
1458
|
-
return u(), { getRuleValue: b };
|
|
1459
864
|
}
|
|
1460
|
-
function
|
|
1461
|
-
const n =
|
|
1462
|
-
|
|
1463
|
-
function d() {
|
|
865
|
+
function $e(t, e) {
|
|
866
|
+
const n = new x(), { canMove: a, canDelete: i } = n.getTemplateRule(t, e);
|
|
867
|
+
function s() {
|
|
1464
868
|
return !1;
|
|
1465
869
|
}
|
|
1466
|
-
function
|
|
1467
|
-
return
|
|
1468
|
-
}
|
|
1469
|
-
function m() {
|
|
1470
|
-
return !r;
|
|
870
|
+
function o() {
|
|
871
|
+
return i;
|
|
1471
872
|
}
|
|
1472
|
-
function
|
|
1473
|
-
|
|
1474
|
-
const i = t, l = i.appearance && i.appearance.class || "", u = l.split(" "), b = i.contents || [], s = b.length ? b[0] : null, a = s && s.appearance ? s.appearance.class : "", f = a ? a.split(" ") : [], h = b.length ? b.reduce((y, w) => {
|
|
1475
|
-
const z = w && w.appearance ? w.appearance.class : "", A = z ? z.split(" ") : [];
|
|
1476
|
-
return y.push(...A), y;
|
|
1477
|
-
}, []) : [], v = e, g = v && v.appearance && v.appearance.class || "", C = g ? g.split(" ") : [];
|
|
1478
|
-
o = {
|
|
1479
|
-
componentClass: l,
|
|
1480
|
-
componentClassList: u,
|
|
1481
|
-
childContents: b,
|
|
1482
|
-
firstChildContent: s,
|
|
1483
|
-
firstChildClass: a,
|
|
1484
|
-
firstChildClassList: f,
|
|
1485
|
-
parent: v,
|
|
1486
|
-
parentClass: g,
|
|
1487
|
-
parentClassList: C,
|
|
1488
|
-
children: b,
|
|
1489
|
-
childrenClassList: h
|
|
1490
|
-
};
|
|
1491
|
-
const { fixed: O } = n.getRuleValue(u[0], o);
|
|
1492
|
-
return r = O, !0;
|
|
873
|
+
function f() {
|
|
874
|
+
return a;
|
|
1493
875
|
}
|
|
1494
|
-
function
|
|
876
|
+
function v() {
|
|
1495
877
|
return !0;
|
|
1496
878
|
}
|
|
1497
|
-
return { canAccepts:
|
|
879
|
+
return { canAccepts: s, checkCanDeleteComponent: o, checkCanMoveComponent: f, hideNestedPaddingInDesginerView: v };
|
|
1498
880
|
}
|
|
1499
|
-
const
|
|
881
|
+
const Ne = /* @__PURE__ */ M({
|
|
1500
882
|
name: "FSplitterDesign",
|
|
1501
|
-
props:
|
|
883
|
+
props: F,
|
|
1502
884
|
emits: [],
|
|
1503
885
|
setup(t, e) {
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
useResizeHandleComposition: c
|
|
886
|
+
const n = g(), a = k("designer-host-service"), i = k("design-item-context"), s = $e(i, a), o = Z(n, i, s);
|
|
887
|
+
o.value.canNested = !1;
|
|
888
|
+
const f = Q(n), {
|
|
889
|
+
horizontalResizeHandleStyle: v,
|
|
890
|
+
verticalResizeHandleStyle: l,
|
|
891
|
+
resizeOverlayStyle: c
|
|
892
|
+
} = f;
|
|
893
|
+
W("splitter", {
|
|
894
|
+
useResizeHandleComposition: f
|
|
1514
895
|
});
|
|
1515
|
-
const
|
|
896
|
+
const m = C(() => B({
|
|
1516
897
|
"f-splitter": !0
|
|
1517
|
-
}, t == null ? void 0 : t.customClass)),
|
|
1518
|
-
const
|
|
1519
|
-
"flex-direction": t.direction === "row" ? "
|
|
898
|
+
}, t == null ? void 0 : t.customClass)), r = C(() => {
|
|
899
|
+
const y = {
|
|
900
|
+
"flex-direction": t.direction === "row" ? "row" : "column"
|
|
1520
901
|
};
|
|
1521
|
-
return
|
|
902
|
+
return L(y, t == null ? void 0 : t.customStyle);
|
|
1522
903
|
});
|
|
1523
|
-
return
|
|
1524
|
-
n.value.componentInstance =
|
|
1525
|
-
}), e.expose(
|
|
1526
|
-
class:
|
|
904
|
+
return q(() => {
|
|
905
|
+
n.value.componentInstance = o;
|
|
906
|
+
}), e.expose(o.value), () => w("div", {
|
|
907
|
+
class: m.value,
|
|
1527
908
|
ref: n,
|
|
1528
|
-
style:
|
|
1529
|
-
}, [e.slots.default && e.slots.default(),
|
|
909
|
+
style: r.value
|
|
910
|
+
}, [e.slots.default && e.slots.default(), w("div", {
|
|
1530
911
|
class: "f-splitter-resize-overlay",
|
|
1531
|
-
style:
|
|
1532
|
-
}, null),
|
|
912
|
+
style: c.value
|
|
913
|
+
}, null), w("div", {
|
|
1533
914
|
class: "f-splitter-horizontal-resize-proxy",
|
|
1534
|
-
style:
|
|
1535
|
-
}, null),
|
|
915
|
+
style: v.value
|
|
916
|
+
}, null), w("div", {
|
|
1536
917
|
class: "f-splitter-vertical-resize-proxy",
|
|
1537
|
-
style:
|
|
918
|
+
style: l.value
|
|
1538
919
|
}, null)]);
|
|
1539
920
|
}
|
|
1540
921
|
});
|
|
1541
|
-
function
|
|
1542
|
-
function t(e) {
|
|
1543
|
-
var
|
|
922
|
+
function Ve() {
|
|
923
|
+
function t(e, n) {
|
|
924
|
+
var o;
|
|
1544
925
|
if (!e)
|
|
1545
926
|
return !1;
|
|
1546
|
-
const
|
|
1547
|
-
if (!
|
|
927
|
+
const a = ((o = e.targetContainer) == null ? void 0 : o.componentInstance) && e.targetContainer.componentInstance.value;
|
|
928
|
+
if (!a)
|
|
1548
929
|
return !1;
|
|
1549
|
-
const
|
|
1550
|
-
|
|
1551
|
-
const c = n.schema.type, m = (c === "response-form" || c === "content-container") && o && o.includes("farris-form");
|
|
1552
|
-
if (n.schema.type !== "response-layout-item" && !m)
|
|
1553
|
-
return !1;
|
|
1554
|
-
}
|
|
1555
|
-
return e.controlType !== "field-set";
|
|
930
|
+
const i = a.schema.type, s = n == null ? void 0 : n.formSchemaUtils.getComponentById(a.belongedComponentId);
|
|
931
|
+
return !((e.componentCategory === "input" || e.componentType === "form-group") && ![O["response-layout-item"].type, O["response-form"].type].includes(i) || (e.componentType === O.tabs.type || e.componentType === O.section.type) && ((s == null ? void 0 : s.componentType) !== "frame" || ![O["content-container"].type, O["splitter-pane"].type, O["response-layout-item"].type].includes(i)));
|
|
1556
932
|
}
|
|
1557
933
|
return {
|
|
1558
934
|
basalDragulaRuleForContainer: t
|
|
1559
935
|
};
|
|
1560
936
|
}
|
|
1561
|
-
function
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
return !1;
|
|
1566
|
-
if (((((j = t.appearance) == null ? void 0 : j.class) || "").split(" ") || []).includes("f-page-content-nav")) {
|
|
1567
|
-
const p = t.contents && t.contents[0];
|
|
1568
|
-
return !(p && p.type === "component");
|
|
1569
|
-
}
|
|
1570
|
-
return !0;
|
|
937
|
+
function We(t, e) {
|
|
938
|
+
const n = new x(), { canAccept: a } = n.getTemplateRule(t, e);
|
|
939
|
+
function i(f) {
|
|
940
|
+
return Ve().basalDragulaRuleForContainer(f, e) ? a : !1;
|
|
1571
941
|
}
|
|
1572
|
-
function
|
|
1573
|
-
|
|
1574
|
-
if (m.position === "main" && p.includes("f-page-content-main")) {
|
|
1575
|
-
if (c.type === "tabs") {
|
|
1576
|
-
const i = c.appearance && c.appearance.class ? String(c.appearance.class).split(" ") : [];
|
|
1577
|
-
i.unshift("f-tabs-in-card"), c.appearance = { class: i.join(" ") };
|
|
1578
|
-
const l = $("section");
|
|
1579
|
-
l.id = `${c.id}-section`, l.appearance = { class: "f-section-tabs f-section-in-mainsubcard" }, l.contents = [c];
|
|
1580
|
-
const u = $("content-container");
|
|
1581
|
-
return u.id = `${c.id}-struct-wrapper`, u.appearance = { class: "f-struct-wrapper" }, u.contents = [l], u;
|
|
1582
|
-
}
|
|
1583
|
-
if (c.type === "section") {
|
|
1584
|
-
const i = c.appearance && c.appearance.class ? String(c.appearance.class).split(" ") : [];
|
|
1585
|
-
i.unshift("f-section-in-main"), c.appearance = { class: i.join(" ") }, c.title = String(r.innerText);
|
|
1586
|
-
const l = $("content-container");
|
|
1587
|
-
return l.id = `${c.id}-struct-wrapper`, l.appearance = { class: "f-struct-wrapper" }, l.contents = [c], l;
|
|
1588
|
-
}
|
|
1589
|
-
}
|
|
1590
|
-
return c;
|
|
942
|
+
function s() {
|
|
943
|
+
return !1;
|
|
1591
944
|
}
|
|
1592
|
-
|
|
945
|
+
function o() {
|
|
946
|
+
return !1;
|
|
947
|
+
}
|
|
948
|
+
return {
|
|
949
|
+
canAccepts: i,
|
|
950
|
+
checkCanMoveComponent: s,
|
|
951
|
+
checkCanDeleteComponent: o
|
|
952
|
+
};
|
|
1593
953
|
}
|
|
1594
|
-
const
|
|
954
|
+
const qe = /* @__PURE__ */ M({
|
|
1595
955
|
name: "FSplitterPaneDesign",
|
|
1596
|
-
props:
|
|
956
|
+
props: A,
|
|
1597
957
|
emits: [],
|
|
1598
958
|
setup(t, e) {
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
const a = {
|
|
959
|
+
const n = g(), a = k("designer-host-service"), i = k("design-item-context"), s = We(i, a), o = Z(n, i, s);
|
|
960
|
+
o.value.styles = "padding:0;box-shadow:none;", o.value.canNested = !1, o.value.canMove = !1, o.value.canDelete = !1, q(() => {
|
|
961
|
+
n.value.componentInstance = o;
|
|
962
|
+
}), e.expose(o.value);
|
|
963
|
+
const f = k("splitter"), {
|
|
964
|
+
useResizeHandleComposition: v
|
|
965
|
+
} = f, l = J(t, v), {
|
|
966
|
+
actualHeight: c,
|
|
967
|
+
actualWidth: m
|
|
968
|
+
} = l, r = g(t.position), y = C(() => {
|
|
969
|
+
const p = {
|
|
1611
970
|
"f-splitter-pane": !0,
|
|
1612
|
-
"f-splitter-pane-
|
|
1613
|
-
"
|
|
1614
|
-
"f-splitter-pane-main": l.value === "center",
|
|
971
|
+
"f-splitter-pane-main": r.value === "center",
|
|
972
|
+
"has-resize-bar": t.resizable,
|
|
1615
973
|
"f-component-splitter-pane": !0,
|
|
1616
974
|
"drag-container": !0
|
|
1617
975
|
};
|
|
1618
|
-
return
|
|
1619
|
-
}),
|
|
1620
|
-
const
|
|
1621
|
-
return (
|
|
1622
|
-
})
|
|
1623
|
-
|
|
976
|
+
return p["f-splitter-pane-" + r.value] = !0, B(p, t == null ? void 0 : t.customClass);
|
|
977
|
+
}), d = C(() => t.resizeHandle ? t.resizeHandle.split(",").filter((p) => ["e", "n", "s", "w"].find((u) => u === p)) : []), P = C(() => {
|
|
978
|
+
const p = {};
|
|
979
|
+
return (m.value && r.value === "left" || r.value === "right" || d.value.find((u) => u === "e") || d.value.find((u) => u === "w")) && (p.width = `${m.value}px`), (c.value && r.value === "bottom" || r.value === "top" || d.value.find((u) => u === "s") || d.value.find((u) => u === "n")) && (p.height = `${c.value}px`), L(p, t == null ? void 0 : t.customStyle);
|
|
980
|
+
}), T = C(() => ({
|
|
981
|
+
"f-splitter-resize-bar": !0,
|
|
982
|
+
"f-splitter-resize-bar-e": r.value === "left",
|
|
983
|
+
"f-splitter-resize-bar-n": r.value === "bottom",
|
|
984
|
+
"f-splitter-resize-bar-s": r.value === "top",
|
|
985
|
+
"f-splitter-resize-bar-w": r.value === "right"
|
|
986
|
+
}));
|
|
987
|
+
function R() {
|
|
988
|
+
return d.value.length > 0 ? d.value.map((p) => w("span", {
|
|
989
|
+
class: "f-splitter-resize-bar f-splitter-resize-bar-" + p
|
|
990
|
+
}, null)) : w("span", {
|
|
991
|
+
class: T.value
|
|
992
|
+
}, null);
|
|
993
|
+
}
|
|
994
|
+
return () => w("div", {
|
|
1624
995
|
ref: n,
|
|
1625
|
-
"data-dragref": `${
|
|
1626
|
-
class:
|
|
1627
|
-
style:
|
|
1628
|
-
}, [e.slots.default && e.slots.default()]);
|
|
996
|
+
"data-dragref": `${i.schema.id}-container`,
|
|
997
|
+
class: y.value,
|
|
998
|
+
style: P.value
|
|
999
|
+
}, [e.slots.default && e.slots.default(), t.resizable && R()]);
|
|
1629
1000
|
}
|
|
1630
|
-
}),
|
|
1001
|
+
}), _e = {
|
|
1631
1002
|
install(t) {
|
|
1632
|
-
t.component(
|
|
1003
|
+
t.component(H.name, H), t.component(j.name, j);
|
|
1633
1004
|
},
|
|
1634
|
-
register(t, e, n,
|
|
1635
|
-
t.splitter =
|
|
1005
|
+
register(t, e, n, a) {
|
|
1006
|
+
t.splitter = H, e.splitter = N, t["splitter-pane"] = j, e["splitter-pane"] = V;
|
|
1636
1007
|
},
|
|
1637
1008
|
registerDesigner(t, e, n) {
|
|
1638
|
-
t.splitter =
|
|
1009
|
+
t.splitter = Ne, e.splitter = N, t["splitter-pane"] = qe, e["splitter-pane"] = V;
|
|
1639
1010
|
}
|
|
1640
1011
|
};
|
|
1641
1012
|
export {
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1013
|
+
H as FSplitter,
|
|
1014
|
+
j as FSplitterPane,
|
|
1015
|
+
_e as default,
|
|
1016
|
+
F as splitterProps,
|
|
1017
|
+
N as splitterPropsResolver
|
|
1647
1018
|
};
|