@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,114 +1,158 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { isPlainObject as
|
|
3
|
-
const
|
|
4
|
-
function
|
|
5
|
-
const { properties: e, title: t, ignore: r } =
|
|
6
|
-
|
|
1
|
+
import { defineComponent as O, ref as g, computed as j, createVNode as d, inject as A, onMounted as z } from "vue";
|
|
2
|
+
import { isPlainObject as F, cloneDeep as G } from "lodash-es";
|
|
3
|
+
const V = {}, $ = {};
|
|
4
|
+
function B(s) {
|
|
5
|
+
const { properties: e, title: t, ignore: r } = s, a = r && Array.isArray(r), o = Object.keys(e).reduce((n, u) => ((!a || !r.find((f) => f === u)) && (n[u] = e[u].type === "object" && e[u].properties ? B(e[u]) : G(e[u].default)), n), {});
|
|
6
|
+
if (t && (!a || !r.find((n) => n === "id"))) {
|
|
7
|
+
const n = t.toLowerCase().replace(/-/g, "_");
|
|
8
|
+
o.id = `${n}_${Math.random().toString().slice(2, 6)}`;
|
|
9
|
+
}
|
|
10
|
+
return o;
|
|
7
11
|
}
|
|
8
|
-
function
|
|
9
|
-
const r =
|
|
12
|
+
function R(s, e = {}, t) {
|
|
13
|
+
const r = V[s];
|
|
10
14
|
if (r) {
|
|
11
|
-
let
|
|
12
|
-
const
|
|
13
|
-
return
|
|
15
|
+
let a = B(r);
|
|
16
|
+
const o = $[s];
|
|
17
|
+
return a = o ? o({ getSchemaByType: R }, a, e, t) : a, a;
|
|
14
18
|
}
|
|
15
19
|
return null;
|
|
16
20
|
}
|
|
17
|
-
function
|
|
18
|
-
const t =
|
|
19
|
-
return Object.keys(
|
|
21
|
+
function W(s, e) {
|
|
22
|
+
const t = B(e);
|
|
23
|
+
return Object.keys(t).reduce((r, a) => (r[a] && F(r[a]) && F(s[a] || !s[a]) ? Object.assign(r[a], s[a] || {}) : r[a] = s[a], r), t), t;
|
|
20
24
|
}
|
|
21
|
-
function
|
|
22
|
-
return Object.keys(
|
|
23
|
-
if (e.has(
|
|
24
|
-
const
|
|
25
|
-
if (typeof
|
|
26
|
-
r[
|
|
25
|
+
function _(s, e) {
|
|
26
|
+
return Object.keys(s).filter((r) => s[r] != null).reduce((r, a) => {
|
|
27
|
+
if (e.has(a)) {
|
|
28
|
+
const o = e.get(a);
|
|
29
|
+
if (typeof o == "string")
|
|
30
|
+
r[o] = s[a];
|
|
27
31
|
else {
|
|
28
|
-
const
|
|
29
|
-
Object.assign(r,
|
|
32
|
+
const n = o(a, s[a], s);
|
|
33
|
+
Object.assign(r, n);
|
|
30
34
|
}
|
|
31
35
|
} else
|
|
32
|
-
r[
|
|
36
|
+
r[a] = s[a];
|
|
33
37
|
return r;
|
|
34
38
|
}, {});
|
|
35
39
|
}
|
|
36
|
-
function
|
|
37
|
-
const r =
|
|
38
|
-
return
|
|
40
|
+
function U(s, e, t = /* @__PURE__ */ new Map()) {
|
|
41
|
+
const r = W(s, e);
|
|
42
|
+
return _(r, t);
|
|
39
43
|
}
|
|
40
|
-
function
|
|
41
|
-
function e(
|
|
42
|
-
if (typeof
|
|
43
|
-
return
|
|
44
|
-
if (typeof
|
|
45
|
-
const
|
|
46
|
-
if (
|
|
47
|
-
return Number(
|
|
48
|
-
if (
|
|
49
|
-
return Number(
|
|
50
|
-
if (
|
|
51
|
-
return Number(
|
|
44
|
+
function Q(s = {}) {
|
|
45
|
+
function e(l, c, i, p) {
|
|
46
|
+
if (typeof i == "number")
|
|
47
|
+
return p[l].length === i;
|
|
48
|
+
if (typeof i == "object") {
|
|
49
|
+
const v = Object.keys(i)[0], y = i[v];
|
|
50
|
+
if (v === "not")
|
|
51
|
+
return Number(p[l].length) !== Number(y);
|
|
52
|
+
if (v === "moreThan")
|
|
53
|
+
return Number(p[l].length) >= Number(y);
|
|
54
|
+
if (v === "lessThan")
|
|
55
|
+
return Number(p[l].length) <= Number(y);
|
|
52
56
|
}
|
|
53
57
|
return !1;
|
|
54
58
|
}
|
|
55
|
-
function t(
|
|
56
|
-
return
|
|
59
|
+
function t(l, c, i, p) {
|
|
60
|
+
return p[l] && p[l].propertyValue && String(p[l].propertyValue.value) === String(i);
|
|
57
61
|
}
|
|
58
62
|
const r = /* @__PURE__ */ new Map([
|
|
59
63
|
["length", e],
|
|
60
64
|
["getProperty", t]
|
|
61
65
|
]);
|
|
62
|
-
Object.keys(
|
|
63
|
-
function
|
|
64
|
-
const
|
|
65
|
-
return typeof
|
|
66
|
-
if (
|
|
67
|
-
return { target:
|
|
68
|
-
const
|
|
69
|
-
return { target:
|
|
66
|
+
Object.keys(s).reduce((l, c) => (l.set(c, s[c]), l), r);
|
|
67
|
+
function a(l, c) {
|
|
68
|
+
const i = l;
|
|
69
|
+
return typeof c == "number" ? [{ target: i, operator: "length", param: null, value: Number(c) }] : typeof c == "boolean" ? [{ target: i, operator: "getProperty", param: l, value: !!c }] : typeof c == "object" ? Object.keys(c).map((p) => {
|
|
70
|
+
if (p === "length")
|
|
71
|
+
return { target: i, operator: "length", param: null, value: c[p] };
|
|
72
|
+
const v = p, y = c[p];
|
|
73
|
+
return { target: i, operator: "getProperty", param: v, value: y };
|
|
70
74
|
}) : [];
|
|
71
75
|
}
|
|
72
|
-
function
|
|
73
|
-
return Object.keys(
|
|
74
|
-
const
|
|
75
|
-
return
|
|
76
|
+
function o(l) {
|
|
77
|
+
return Object.keys(l).reduce((i, p) => {
|
|
78
|
+
const v = a(p, l[p]);
|
|
79
|
+
return i.push(...v), i;
|
|
76
80
|
}, []);
|
|
77
81
|
}
|
|
78
|
-
function
|
|
79
|
-
if (r.has(
|
|
80
|
-
const
|
|
81
|
-
return
|
|
82
|
+
function n(l, c) {
|
|
83
|
+
if (r.has(l.operator)) {
|
|
84
|
+
const i = r.get(l.operator);
|
|
85
|
+
return i && i(l.target, l.param, l.value, c) || !1;
|
|
82
86
|
}
|
|
83
87
|
return !1;
|
|
84
88
|
}
|
|
85
|
-
function
|
|
86
|
-
return
|
|
89
|
+
function u(l, c) {
|
|
90
|
+
return o(l).reduce((v, y) => v && n(y, c), !0);
|
|
87
91
|
}
|
|
88
|
-
function
|
|
89
|
-
const
|
|
90
|
-
return
|
|
92
|
+
function f(l, c) {
|
|
93
|
+
const i = Object.keys(l), p = i.includes("allOf"), v = i.includes("anyOf"), y = p || v, T = (y ? l[y ? p ? "allOf" : "anyOf" : "allOf"] : [l]).map((N) => u(N, c));
|
|
94
|
+
return p ? !T.includes(!1) : T.includes(!0);
|
|
91
95
|
}
|
|
92
|
-
return { parseValueSchema:
|
|
96
|
+
return { parseValueSchema: f };
|
|
93
97
|
}
|
|
94
|
-
const
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
98
|
+
const D = {
|
|
99
|
+
button: { type: "button", name: "按钮", icon: "Button" },
|
|
100
|
+
"response-toolbar": { type: "response-toolbar", name: "工具栏", icon: "ButtonGroup" },
|
|
101
|
+
"response-toolbar-item": { type: "response-toolbar-item", name: "按钮", icon: "Button" },
|
|
102
|
+
"content-container": { type: "content-container", name: "容器", icon: "ContentContainer" },
|
|
103
|
+
"input-group": { type: "input-group", name: "文本", icon: "TextBox" },
|
|
104
|
+
textarea: { type: "textarea", name: "多行文本", icon: "MultiTextBox" },
|
|
105
|
+
lookup: { type: "lookup", name: "帮助", icon: "LookupEdit" },
|
|
106
|
+
"number-spinner": { type: "number-spinner", name: "数值", icon: "NumericBox" },
|
|
107
|
+
"date-picker": { type: "date-picker", name: "日期", icon: "DateBox" },
|
|
108
|
+
switch: { type: "switch", name: "开关", icon: "SwitchField" },
|
|
109
|
+
"radio-group": { type: "radio-group", name: "单选组", icon: "RadioGroup" },
|
|
110
|
+
"check-box": { type: "check-box", name: "复选框", icon: "CheckBox" },
|
|
111
|
+
"check-group": { type: "check-group", name: "复选框组", icon: "CheckGroup" },
|
|
112
|
+
"combo-list": { type: "combo-list", name: "下拉列表", icon: "EnumField" },
|
|
113
|
+
"response-form": { type: "response-form", name: "卡片面板", icon: "Form" },
|
|
114
|
+
"response-layout": { type: "response-layout", name: "布局容器", icon: "ResponseLayout3" },
|
|
115
|
+
"response-layout-item": { type: "response-layout-item", name: "布局", icon: "ResponseLayout1" },
|
|
116
|
+
"tree-grid": { type: "tree-grid", name: "树表格", icon: "TreeGrid" },
|
|
117
|
+
"tree-grid-column": { type: "tree-grid-column", name: "树表格列" },
|
|
118
|
+
"data-grid": { type: "data-grid", name: "表格", icon: "DataGrid" },
|
|
119
|
+
"data-grid-column": { type: "data-grid-column", name: "表格列" },
|
|
120
|
+
module: { type: "Module", name: "模块", icon: "Module" },
|
|
121
|
+
component: { type: "component", name: "组件", icon: "Component" },
|
|
122
|
+
tabs: { type: "tabs", name: "标签页", icon: "Tab" },
|
|
123
|
+
"tab-page": { type: "tab-page", name: "标签页项", dependentParentControl: "Tab" },
|
|
124
|
+
"tab-toolbar-item": { type: "tab-toolbar-item", name: "标签页工具栏按钮", icon: "Button" },
|
|
125
|
+
"time-picker": { type: "time-picker", name: "时间选择", icon: "TimePicker" },
|
|
126
|
+
section: { type: "section", name: "分组面板", icon: "Section" },
|
|
127
|
+
"section-toolbar": { type: "section-toolbar", name: "分组面板工具栏" },
|
|
128
|
+
"section-toolbar-item": { type: "section-toolbar-item", name: "分组面板按钮" },
|
|
129
|
+
splitter: { type: "splitter", name: "分栏面板", icon: "Splitter" },
|
|
130
|
+
"splitter-pane": { type: "splitter-pane", name: "分栏面板项", dependentParentControl: "Splitter" },
|
|
131
|
+
"component-ref": { type: "component-ref", name: "组件引用节点" },
|
|
132
|
+
uploader: { type: "uploader", name: "附件上传", icon: "FileUpload" },
|
|
133
|
+
"page-header": { type: "page-header", name: "页头", icon: "Header" },
|
|
134
|
+
"page-footer": { type: "page-footer", name: "页脚", icon: "ModalFooter" },
|
|
135
|
+
"tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏", icon: "TabToolbar" },
|
|
136
|
+
fieldset: { type: "fieldset", name: "分组", icon: "fieldset" },
|
|
137
|
+
"query-solution": { type: "query-solution", name: "筛选方案", icon: "QueryScheme" }
|
|
138
|
+
}, H = {}, J = {};
|
|
139
|
+
Q();
|
|
140
|
+
function X(s, e, t = /* @__PURE__ */ new Map(), r = (n, u, f, l) => u, a = {}, o = (n) => n) {
|
|
141
|
+
return V[e.title] = e, $[e.title] = r, H[e.title] = a, J[e.title] = o, (n = {}) => {
|
|
142
|
+
const u = U(n, e, t), f = Object.keys(s).reduce((l, c) => (l[c] = s[c].default, l), {});
|
|
143
|
+
return Object.assign(f, u);
|
|
100
144
|
};
|
|
101
145
|
}
|
|
102
|
-
function
|
|
146
|
+
function Y(s, e) {
|
|
103
147
|
return { customClass: e.class, customStyle: e.style };
|
|
104
148
|
}
|
|
105
|
-
const
|
|
106
|
-
["appearance",
|
|
149
|
+
const Z = /* @__PURE__ */ new Map([
|
|
150
|
+
["appearance", Y]
|
|
107
151
|
]);
|
|
108
|
-
function
|
|
152
|
+
function K(s, e, t) {
|
|
109
153
|
return e;
|
|
110
154
|
}
|
|
111
|
-
const
|
|
155
|
+
const I = "https://json-schema.org/draft/2020-12/schema", x = "https://farris-design.gitee.io/list-nav.schema.json", ee = "list-nav", te = "A Farris Container Component", ne = "object", ae = {
|
|
112
156
|
id: {
|
|
113
157
|
description: "The unique identifier for a list-nav",
|
|
114
158
|
type: "string"
|
|
@@ -154,19 +198,19 @@ const le = "https://json-schema.org/draft/2020-12/schema", ue = "https://farris-
|
|
|
154
198
|
type: "boolean",
|
|
155
199
|
default: !0
|
|
156
200
|
}
|
|
157
|
-
},
|
|
201
|
+
}, oe = [
|
|
158
202
|
"id",
|
|
159
203
|
"type",
|
|
160
204
|
"contents"
|
|
161
|
-
],
|
|
162
|
-
$schema:
|
|
163
|
-
$id:
|
|
164
|
-
title:
|
|
165
|
-
description:
|
|
166
|
-
type:
|
|
167
|
-
properties:
|
|
168
|
-
required:
|
|
169
|
-
},
|
|
205
|
+
], se = {
|
|
206
|
+
$schema: I,
|
|
207
|
+
$id: x,
|
|
208
|
+
title: ee,
|
|
209
|
+
description: te,
|
|
210
|
+
type: ne,
|
|
211
|
+
properties: ae,
|
|
212
|
+
required: oe
|
|
213
|
+
}, re = "list-nav", le = "A Farris Component", ce = "object", ie = {
|
|
170
214
|
basic: {
|
|
171
215
|
description: "Basic Infomation",
|
|
172
216
|
title: "基本信息",
|
|
@@ -185,12 +229,12 @@ const le = "https://json-schema.org/draft/2020-12/schema", ue = "https://farris-
|
|
|
185
229
|
}
|
|
186
230
|
}
|
|
187
231
|
}
|
|
188
|
-
},
|
|
189
|
-
title:
|
|
190
|
-
description:
|
|
191
|
-
type:
|
|
192
|
-
categories:
|
|
193
|
-
},
|
|
232
|
+
}, pe = {
|
|
233
|
+
title: re,
|
|
234
|
+
description: le,
|
|
235
|
+
type: ce,
|
|
236
|
+
categories: ie
|
|
237
|
+
}, S = {
|
|
194
238
|
/** 位置 */
|
|
195
239
|
position: { Type: String, default: "left" },
|
|
196
240
|
/** listNav名称 */
|
|
@@ -205,1026 +249,319 @@ const le = "https://json-schema.org/draft/2020-12/schema", ue = "https://farris-
|
|
|
205
249
|
disabled: { Type: Boolean, default: !1 },
|
|
206
250
|
/** 是否启用拖拽 TODO */
|
|
207
251
|
draggable: { Type: Boolean, default: !1 }
|
|
208
|
-
},
|
|
252
|
+
}, E = X(S, se, Z, K, pe), P = /* @__PURE__ */ O({
|
|
209
253
|
name: "FListNav",
|
|
210
|
-
props:
|
|
254
|
+
props: S,
|
|
211
255
|
emits: ["collapse"],
|
|
212
|
-
setup(
|
|
213
|
-
const t =
|
|
214
|
-
function
|
|
215
|
-
|
|
256
|
+
setup(s, e) {
|
|
257
|
+
const t = g(s.position), r = g(s.title), a = g(s.folded), o = g(!1);
|
|
258
|
+
function n(f) {
|
|
259
|
+
f && f.stopPropagation(), !s.disabled && (o.value = !0, a.value = !a.value, e.emit("collapse", a.value));
|
|
216
260
|
}
|
|
217
|
-
const
|
|
218
|
-
const
|
|
219
|
-
|
|
220
|
-
return v[c] = s.value ? "0px" : n.size + "px", v;
|
|
261
|
+
const u = j(() => {
|
|
262
|
+
const f = {}, l = ["top", "bottom"].indexOf(t.value) > -1 ? "height" : "width";
|
|
263
|
+
return f[l] = a.value ? "0px" : s.size + "px", f;
|
|
221
264
|
});
|
|
222
|
-
return () =>
|
|
265
|
+
return () => d("div", {
|
|
223
266
|
class: `f-list-nav f-list-nav-${t.value}`
|
|
224
|
-
}, [
|
|
267
|
+
}, [d("div", {
|
|
225
268
|
class: "f-list-nav-in",
|
|
226
|
-
style:
|
|
227
|
-
}, [
|
|
269
|
+
style: u.value
|
|
270
|
+
}, [d("div", {
|
|
228
271
|
class: "f-list-nav-main"
|
|
229
|
-
}, [e.slots.navHeader &&
|
|
272
|
+
}, [e.slots.navHeader && d("div", {
|
|
230
273
|
class: "f-list-nav-header"
|
|
231
|
-
}, [e.slots.navHeader()]), !e.slots.navHeader && r.value &&
|
|
274
|
+
}, [e.slots.navHeader()]), !e.slots.navHeader && r.value && d("div", {
|
|
232
275
|
class: "f-list-nav-header"
|
|
233
|
-
}, [
|
|
276
|
+
}, [d("div", {
|
|
234
277
|
class: "f-list-nav-title"
|
|
235
|
-
}, [r.value])]), e.slots.navContent &&
|
|
278
|
+
}, [r.value])]), e.slots.navContent && d("div", {
|
|
236
279
|
class: "f-list-nav-content"
|
|
237
|
-
}, [e.slots.navContent()]), e.slots.navFooter &&
|
|
280
|
+
}, [e.slots.navContent()]), e.slots.navFooter && d("div", {
|
|
238
281
|
class: "f-list-nav-footer"
|
|
239
|
-
}, [e.slots.navFooter()])]),
|
|
282
|
+
}, [e.slots.navFooter()])]), s.collapsible && d("div", {
|
|
240
283
|
class: ["f-list-nav-toggle-sidebar", {
|
|
241
|
-
disabled:
|
|
242
|
-
active:
|
|
243
|
-
"splitter-pane-collapse-animate":
|
|
284
|
+
disabled: s.disabled,
|
|
285
|
+
active: a.value,
|
|
286
|
+
"splitter-pane-collapse-animate": o.value
|
|
244
287
|
}],
|
|
245
|
-
onClick: (
|
|
246
|
-
}, [
|
|
288
|
+
onClick: (f) => n(f)
|
|
289
|
+
}, [d("span", {
|
|
247
290
|
class: "triangle"
|
|
248
291
|
}, null)])])]);
|
|
249
292
|
}
|
|
250
293
|
});
|
|
251
|
-
function
|
|
252
|
-
var
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
}
|
|
256
|
-
r();
|
|
257
|
-
const s = t && t.getStyles && t.getStyles() || "", d = t && t.getDesignerClass && t.getDesignerClass() || "", h = D();
|
|
258
|
-
function m() {
|
|
294
|
+
function ue(s, e, t) {
|
|
295
|
+
var w;
|
|
296
|
+
const r = t && t.getStyles && t.getStyles() || "", a = t && t.getDesignerClass && t.getDesignerClass() || "", o = g();
|
|
297
|
+
function n() {
|
|
259
298
|
return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : t && t.checkCanMoveComponent ? t.checkCanMoveComponent() : !0;
|
|
260
299
|
}
|
|
261
|
-
function
|
|
300
|
+
function u() {
|
|
262
301
|
return !1;
|
|
263
302
|
}
|
|
264
|
-
function
|
|
303
|
+
function f() {
|
|
265
304
|
return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : t && t.checkCanDeleteComponent ? t.checkCanDeleteComponent() : !0;
|
|
266
305
|
}
|
|
267
|
-
function
|
|
306
|
+
function l() {
|
|
268
307
|
return (e == null ? void 0 : e.schema.componentType) === "frame" ? !0 : t && t.hideNestedPaddingInDesginerView ? t.hideNestedPaddingInDesginerView() : !1;
|
|
269
308
|
}
|
|
270
|
-
function
|
|
271
|
-
if (!
|
|
309
|
+
function c(m) {
|
|
310
|
+
if (!m || !m.value)
|
|
272
311
|
return null;
|
|
273
|
-
if (
|
|
274
|
-
return
|
|
275
|
-
const
|
|
276
|
-
return
|
|
312
|
+
if (m.value.schema && m.value.schema.type === "component")
|
|
313
|
+
return m.value;
|
|
314
|
+
const h = g(m == null ? void 0 : m.value.parent), b = c(h);
|
|
315
|
+
return b || null;
|
|
277
316
|
}
|
|
278
|
-
function
|
|
279
|
-
const { componentInstance:
|
|
280
|
-
return !
|
|
317
|
+
function i(m = e) {
|
|
318
|
+
const { componentInstance: h, designerItemElementRef: b } = m;
|
|
319
|
+
return !h || !h.value ? null : h.value.canMove ? b : i(m.parent);
|
|
281
320
|
}
|
|
282
|
-
function
|
|
283
|
-
return !!t && t.canAccepts(
|
|
321
|
+
function p(m) {
|
|
322
|
+
return !!t && t.canAccepts(m);
|
|
284
323
|
}
|
|
285
|
-
function
|
|
324
|
+
function v() {
|
|
286
325
|
return (e == null ? void 0 : e.schema.label) || (e == null ? void 0 : e.schema.title) || (e == null ? void 0 : e.schema.name);
|
|
287
326
|
}
|
|
288
|
-
function
|
|
289
|
-
}
|
|
290
|
-
function a(p, P) {
|
|
291
|
-
P && t != null && t.onAcceptMovedChildElement && t.onAcceptMovedChildElement(P);
|
|
327
|
+
function y() {
|
|
292
328
|
}
|
|
293
|
-
function
|
|
294
|
-
|
|
295
|
-
let N = S(g, p, P);
|
|
296
|
-
t && t.onResolveNewComponentSchema && (N = t.onResolveNewComponentSchema(p, N));
|
|
297
|
-
const M = g.toLowerCase().replace("-", "_");
|
|
298
|
-
return N && !N.id && N.type === g && (N.id = `${M}_${Math.random().toString().slice(2, 6)}`), N;
|
|
329
|
+
function M(m, h) {
|
|
330
|
+
h && t != null && t.onAcceptMovedChildElement && t.onAcceptMovedChildElement(h);
|
|
299
331
|
}
|
|
300
|
-
function
|
|
301
|
-
const
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
return w && !w.id && w.type === g && (w.id = `${E}_${Math.random().toString().slice(2, 6)}`), w;
|
|
332
|
+
function L(m, h) {
|
|
333
|
+
const { componentType: b } = m;
|
|
334
|
+
let C = R(b, m, h);
|
|
335
|
+
t && t.onResolveNewComponentSchema && (C = t.onResolveNewComponentSchema(m, C));
|
|
336
|
+
const q = b.toLowerCase().replace(/-/g, "_");
|
|
337
|
+
return C && !C.id && C.type === b && (C.id = `${q}_${Math.random().toString().slice(2, 6)}`), C;
|
|
307
338
|
}
|
|
308
|
-
function
|
|
339
|
+
function T(m) {
|
|
309
340
|
}
|
|
310
|
-
function
|
|
341
|
+
function k(...m) {
|
|
311
342
|
if (t && t.getPropsConfig)
|
|
312
|
-
return t.getPropsConfig(...
|
|
343
|
+
return t.getPropsConfig(...m);
|
|
344
|
+
}
|
|
345
|
+
function N() {
|
|
346
|
+
t && t.onRemoveComponent && t.onRemoveComponent(), e != null && e.schema.contents && e.schema.contents.map((m) => {
|
|
347
|
+
var C;
|
|
348
|
+
let h = m.id;
|
|
349
|
+
m.type === "component-ref" && (h = m.component);
|
|
350
|
+
const b = s.value.querySelector(`#${h}-design-item`);
|
|
351
|
+
(C = b == null ? void 0 : b.componentInstance) != null && C.value.onRemoveComponent && b.componentInstance.value.onRemoveComponent();
|
|
352
|
+
});
|
|
313
353
|
}
|
|
314
|
-
return
|
|
315
|
-
canMove:
|
|
316
|
-
canSelectParent:
|
|
317
|
-
canDelete:
|
|
318
|
-
canNested: !
|
|
354
|
+
return o.value = {
|
|
355
|
+
canMove: n(),
|
|
356
|
+
canSelectParent: u(),
|
|
357
|
+
canDelete: f(),
|
|
358
|
+
canNested: !l(),
|
|
319
359
|
contents: e == null ? void 0 : e.schema.contents,
|
|
320
|
-
elementRef:
|
|
321
|
-
parent: (
|
|
360
|
+
elementRef: s,
|
|
361
|
+
parent: (w = e == null ? void 0 : e.parent) == null ? void 0 : w.componentInstance,
|
|
322
362
|
schema: e == null ? void 0 : e.schema,
|
|
323
|
-
styles:
|
|
324
|
-
designerClass:
|
|
325
|
-
canAccepts:
|
|
326
|
-
getBelongedComponentInstance:
|
|
327
|
-
getDraggableDesignItemElement:
|
|
328
|
-
getDraggingDisplayText:
|
|
329
|
-
getPropConfig:
|
|
330
|
-
getDragScopeElement:
|
|
331
|
-
onAcceptMovedChildElement:
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
}, h;
|
|
363
|
+
styles: r,
|
|
364
|
+
designerClass: a,
|
|
365
|
+
canAccepts: p,
|
|
366
|
+
getBelongedComponentInstance: c,
|
|
367
|
+
getDraggableDesignItemElement: i,
|
|
368
|
+
getDraggingDisplayText: v,
|
|
369
|
+
getPropConfig: k,
|
|
370
|
+
getDragScopeElement: y,
|
|
371
|
+
onAcceptMovedChildElement: M,
|
|
372
|
+
onChildElementMovedOut: T,
|
|
373
|
+
addNewChildComponentSchema: L,
|
|
374
|
+
triggerBelongedComponentToMoveWhenMoved: !!t && t.triggerBelongedComponentToMoveWhenMoved || g(!1),
|
|
375
|
+
triggerBelongedComponentToDeleteWhenDeleted: !!t && t.triggerBelongedComponentToDeleteWhenDeleted || g(!1),
|
|
376
|
+
onRemoveComponent: N
|
|
377
|
+
}, o;
|
|
339
378
|
}
|
|
340
|
-
function
|
|
341
|
-
function
|
|
342
|
-
var
|
|
379
|
+
function fe() {
|
|
380
|
+
function s(e, t) {
|
|
381
|
+
var n;
|
|
343
382
|
if (!e)
|
|
344
383
|
return !1;
|
|
345
|
-
const
|
|
346
|
-
if (!
|
|
384
|
+
const r = ((n = e.targetContainer) == null ? void 0 : n.componentInstance) && e.targetContainer.componentInstance.value;
|
|
385
|
+
if (!r)
|
|
347
386
|
return !1;
|
|
348
|
-
const
|
|
349
|
-
|
|
350
|
-
const h = t.schema.type, m = (h === "response-form" || h === "content-container") && r && r.includes("farris-form");
|
|
351
|
-
if (t.schema.type !== "response-layout-item" && !m)
|
|
352
|
-
return !1;
|
|
353
|
-
}
|
|
354
|
-
return e.controlType !== "field-set";
|
|
387
|
+
const a = r.schema.type, o = t == null ? void 0 : t.formSchemaUtils.getComponentById(r.belongedComponentId);
|
|
388
|
+
return !((e.componentCategory === "input" || e.componentType === "form-group") && ![D["response-layout-item"].type, D["response-form"].type].includes(a) || (e.componentType === D.tabs.type || e.componentType === D.section.type) && ((o == null ? void 0 : o.componentType) !== "frame" || ![D["content-container"].type, D["splitter-pane"].type, D["response-layout-item"].type].includes(a)));
|
|
355
389
|
}
|
|
356
390
|
return {
|
|
357
|
-
basalDragulaRuleForContainer:
|
|
391
|
+
basalDragulaRuleForContainer: s
|
|
358
392
|
};
|
|
359
393
|
}
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
"f-struct-form": {
|
|
387
|
-
description: "The class of form component which has a hierarchical structure of component -> section -> respnse-form.",
|
|
388
|
-
type: "object",
|
|
389
|
-
properties: {
|
|
390
|
-
contents: {
|
|
391
|
-
type: "object",
|
|
392
|
-
properties: {
|
|
393
|
-
"f-section-form": {
|
|
394
|
-
description: "The class of section which has wrapped a reponse-form component.",
|
|
395
|
-
type: "object",
|
|
396
|
-
properties: {
|
|
397
|
-
contents: {
|
|
398
|
-
type: "object",
|
|
399
|
-
properties: {
|
|
400
|
-
"f-form-layout": {
|
|
401
|
-
description: "The class of reponse form",
|
|
402
|
-
type: "object",
|
|
403
|
-
properties: {
|
|
404
|
-
rules: {
|
|
405
|
-
type: "object",
|
|
406
|
-
properties: {
|
|
407
|
-
canAccept: {
|
|
408
|
-
type: "boolean",
|
|
409
|
-
const: !0
|
|
410
|
-
},
|
|
411
|
-
fixed: {
|
|
412
|
-
type: "boolean",
|
|
413
|
-
const: !0
|
|
414
|
-
},
|
|
415
|
-
hidePadding: {
|
|
416
|
-
type: "boolean",
|
|
417
|
-
const: !1
|
|
418
|
-
}
|
|
419
|
-
}
|
|
420
|
-
}
|
|
421
|
-
}
|
|
422
|
-
}
|
|
423
|
-
}
|
|
424
|
-
},
|
|
425
|
-
rules: {
|
|
426
|
-
type: "object",
|
|
427
|
-
properties: {
|
|
428
|
-
canAccept: {
|
|
429
|
-
type: "boolean",
|
|
430
|
-
const: !1
|
|
431
|
-
},
|
|
432
|
-
fixed: {
|
|
433
|
-
type: "boolean",
|
|
434
|
-
const: !0
|
|
435
|
-
},
|
|
436
|
-
hidePadding: {
|
|
437
|
-
type: "boolean",
|
|
438
|
-
const: !0
|
|
439
|
-
}
|
|
440
|
-
}
|
|
441
|
-
}
|
|
442
|
-
}
|
|
443
|
-
}
|
|
444
|
-
}
|
|
445
|
-
},
|
|
446
|
-
rules: {
|
|
447
|
-
type: "object",
|
|
448
|
-
properties: {
|
|
449
|
-
canAccept: {
|
|
450
|
-
type: "boolean",
|
|
451
|
-
const: !1
|
|
452
|
-
},
|
|
453
|
-
fixed: {
|
|
454
|
-
type: "boolean",
|
|
455
|
-
const: !1
|
|
456
|
-
},
|
|
457
|
-
hidePadding: {
|
|
458
|
-
type: "boolean",
|
|
459
|
-
const: !0
|
|
460
|
-
}
|
|
461
|
-
}
|
|
462
|
-
}
|
|
463
|
-
}
|
|
464
|
-
},
|
|
465
|
-
"f-struct-wrapper": {
|
|
466
|
-
description: "",
|
|
467
|
-
type: "object",
|
|
468
|
-
properties: {
|
|
469
|
-
contents: {
|
|
470
|
-
type: "object",
|
|
471
|
-
properties: {
|
|
472
|
-
"f-section-tabs": {
|
|
473
|
-
description: "The class of section which has wrapped sub-grid tabs.",
|
|
474
|
-
type: "object",
|
|
475
|
-
properties: {
|
|
476
|
-
contents: {
|
|
477
|
-
type: "object",
|
|
478
|
-
properties: {
|
|
479
|
-
"f-tabs-in-card": {
|
|
480
|
-
description: "The class of tabs which contains sub-grid.",
|
|
481
|
-
type: "object",
|
|
482
|
-
properties: {
|
|
483
|
-
contents: {
|
|
484
|
-
type: "object",
|
|
485
|
-
properties: {
|
|
486
|
-
"f-struct-data-grid-in-card": {
|
|
487
|
-
description: "The class of sub-grid component",
|
|
488
|
-
type: "object",
|
|
489
|
-
properties: {
|
|
490
|
-
contents: {
|
|
491
|
-
type: "object",
|
|
492
|
-
properties: {
|
|
493
|
-
"f-grid-is-sub": {
|
|
494
|
-
description: "The class of sub-grid",
|
|
495
|
-
type: "object",
|
|
496
|
-
properties: {
|
|
497
|
-
rules: {
|
|
498
|
-
type: "object",
|
|
499
|
-
properties: {
|
|
500
|
-
canAccept: {
|
|
501
|
-
type: "boolean",
|
|
502
|
-
const: !0
|
|
503
|
-
},
|
|
504
|
-
fixed: {
|
|
505
|
-
type: "boolean",
|
|
506
|
-
const: !0
|
|
507
|
-
},
|
|
508
|
-
hidePadding: {
|
|
509
|
-
type: "boolean",
|
|
510
|
-
const: !1
|
|
511
|
-
}
|
|
512
|
-
}
|
|
513
|
-
}
|
|
514
|
-
}
|
|
515
|
-
}
|
|
516
|
-
}
|
|
517
|
-
},
|
|
518
|
-
rules: {
|
|
519
|
-
type: "object",
|
|
520
|
-
properties: {
|
|
521
|
-
canAccept: {
|
|
522
|
-
type: "boolean",
|
|
523
|
-
const: !1
|
|
524
|
-
},
|
|
525
|
-
fixed: {
|
|
526
|
-
type: "boolean",
|
|
527
|
-
const: !1
|
|
528
|
-
},
|
|
529
|
-
hidePadding: {
|
|
530
|
-
type: "boolean",
|
|
531
|
-
const: !0
|
|
532
|
-
}
|
|
533
|
-
}
|
|
534
|
-
}
|
|
535
|
-
}
|
|
536
|
-
}
|
|
537
|
-
}
|
|
538
|
-
},
|
|
539
|
-
rules: {
|
|
540
|
-
type: "object",
|
|
541
|
-
properties: {
|
|
542
|
-
canAccept: {
|
|
543
|
-
type: "boolean",
|
|
544
|
-
const: !1
|
|
545
|
-
},
|
|
546
|
-
fixed: {
|
|
547
|
-
type: "boolean",
|
|
548
|
-
const: !0
|
|
549
|
-
},
|
|
550
|
-
hidePadding: {
|
|
551
|
-
type: "boolean",
|
|
552
|
-
const: !0
|
|
553
|
-
}
|
|
554
|
-
}
|
|
555
|
-
}
|
|
556
|
-
}
|
|
557
|
-
}
|
|
558
|
-
}
|
|
559
|
-
},
|
|
560
|
-
rules: {
|
|
561
|
-
type: "object",
|
|
562
|
-
properties: {
|
|
563
|
-
canAccept: {
|
|
564
|
-
type: "boolean",
|
|
565
|
-
const: !1
|
|
566
|
-
},
|
|
567
|
-
fixed: {
|
|
568
|
-
type: "boolean",
|
|
569
|
-
const: !0
|
|
570
|
-
},
|
|
571
|
-
hidePadding: {
|
|
572
|
-
type: "boolean",
|
|
573
|
-
const: !0
|
|
574
|
-
}
|
|
575
|
-
}
|
|
576
|
-
}
|
|
577
|
-
}
|
|
578
|
-
},
|
|
579
|
-
"f-section-in-main": {
|
|
580
|
-
description: "The class of section which has wrapped a reponse-form component.",
|
|
581
|
-
type: "object",
|
|
582
|
-
properties: {
|
|
583
|
-
rules: {
|
|
584
|
-
type: "object",
|
|
585
|
-
properties: {
|
|
586
|
-
canAccept: {
|
|
587
|
-
type: "boolean",
|
|
588
|
-
const: !0
|
|
589
|
-
},
|
|
590
|
-
fixed: {
|
|
591
|
-
type: "boolean",
|
|
592
|
-
const: !0
|
|
593
|
-
},
|
|
594
|
-
hidePadding: {
|
|
595
|
-
type: "boolean",
|
|
596
|
-
const: !1
|
|
597
|
-
}
|
|
598
|
-
}
|
|
599
|
-
}
|
|
600
|
-
}
|
|
601
|
-
}
|
|
602
|
-
}
|
|
603
|
-
},
|
|
604
|
-
rules: {
|
|
605
|
-
type: "object",
|
|
606
|
-
properties: {
|
|
607
|
-
canAccept: {
|
|
608
|
-
type: "boolean",
|
|
609
|
-
const: !1
|
|
610
|
-
},
|
|
611
|
-
fixed: {
|
|
612
|
-
type: "boolean",
|
|
613
|
-
const: !1
|
|
614
|
-
},
|
|
615
|
-
hidePadding: {
|
|
616
|
-
type: "boolean",
|
|
617
|
-
const: !0
|
|
618
|
-
}
|
|
619
|
-
}
|
|
620
|
-
}
|
|
621
|
-
}
|
|
622
|
-
}
|
|
623
|
-
}
|
|
624
|
-
},
|
|
625
|
-
rules: {
|
|
626
|
-
type: "object",
|
|
627
|
-
properties: {
|
|
628
|
-
canAccept: {
|
|
629
|
-
type: "boolean",
|
|
630
|
-
const: !0
|
|
631
|
-
},
|
|
632
|
-
fixed: {
|
|
633
|
-
type: "boolean",
|
|
634
|
-
const: !0
|
|
635
|
-
},
|
|
636
|
-
hidePadding: {
|
|
637
|
-
type: "object",
|
|
638
|
-
const: {
|
|
639
|
-
allOf: [
|
|
640
|
-
{
|
|
641
|
-
sibling: 0,
|
|
642
|
-
parent: {
|
|
643
|
-
"f-page-main": !0
|
|
644
|
-
}
|
|
645
|
-
}
|
|
646
|
-
]
|
|
647
|
-
}
|
|
648
|
-
}
|
|
649
|
-
}
|
|
650
|
-
}
|
|
651
|
-
}
|
|
652
|
-
},
|
|
653
|
-
"f-struct-data-grid": {
|
|
654
|
-
description: "",
|
|
655
|
-
type: "object",
|
|
656
|
-
properties: {
|
|
657
|
-
rules: {
|
|
658
|
-
type: "object",
|
|
659
|
-
properties: {
|
|
660
|
-
canAccept: {
|
|
661
|
-
type: "object",
|
|
662
|
-
const: !0
|
|
663
|
-
},
|
|
664
|
-
fixed: {
|
|
665
|
-
type: "boolean",
|
|
666
|
-
const: !0
|
|
667
|
-
},
|
|
668
|
-
hidePadding: {
|
|
669
|
-
type: "boolean",
|
|
670
|
-
const: !0
|
|
671
|
-
}
|
|
672
|
-
}
|
|
673
|
-
}
|
|
674
|
-
}
|
|
675
|
-
},
|
|
676
|
-
"f-page-main-content": {
|
|
677
|
-
description: "",
|
|
678
|
-
type: "object",
|
|
679
|
-
properties: {
|
|
680
|
-
contents: {
|
|
681
|
-
type: "object",
|
|
682
|
-
properties: {
|
|
683
|
-
"f-page-content-nav": {
|
|
684
|
-
description: "",
|
|
685
|
-
type: "object",
|
|
686
|
-
properties: {
|
|
687
|
-
contents: {
|
|
688
|
-
type: "object",
|
|
689
|
-
properties: {
|
|
690
|
-
"f-struct-data-grid-in-nav": {
|
|
691
|
-
description: "",
|
|
692
|
-
type: "object",
|
|
693
|
-
properties: {
|
|
694
|
-
contents: {
|
|
695
|
-
type: "object",
|
|
696
|
-
properties: {
|
|
697
|
-
"f-page-content-nav-extend": {
|
|
698
|
-
description: "",
|
|
699
|
-
type: "object"
|
|
700
|
-
},
|
|
701
|
-
"f-section-in-nav": {
|
|
702
|
-
description: "",
|
|
703
|
-
type: "object",
|
|
704
|
-
properties: {
|
|
705
|
-
rules: {
|
|
706
|
-
type: "object",
|
|
707
|
-
properties: {
|
|
708
|
-
canAccept: {
|
|
709
|
-
type: "boolean",
|
|
710
|
-
const: !1
|
|
711
|
-
},
|
|
712
|
-
fixed: {
|
|
713
|
-
type: "boolean",
|
|
714
|
-
const: !0
|
|
715
|
-
},
|
|
716
|
-
hidePadding: {
|
|
717
|
-
type: "boolean",
|
|
718
|
-
const: !1
|
|
719
|
-
}
|
|
720
|
-
}
|
|
721
|
-
}
|
|
722
|
-
}
|
|
723
|
-
}
|
|
724
|
-
}
|
|
725
|
-
},
|
|
726
|
-
rules: {
|
|
727
|
-
type: "object",
|
|
728
|
-
properties: {
|
|
729
|
-
canAccept: {
|
|
730
|
-
type: "boolean",
|
|
731
|
-
const: !0
|
|
732
|
-
},
|
|
733
|
-
fixed: {
|
|
734
|
-
type: "boolean",
|
|
735
|
-
const: !1
|
|
736
|
-
},
|
|
737
|
-
hidePadding: {
|
|
738
|
-
type: "boolean",
|
|
739
|
-
const: !0
|
|
740
|
-
}
|
|
741
|
-
}
|
|
742
|
-
}
|
|
743
|
-
}
|
|
744
|
-
}
|
|
745
|
-
}
|
|
746
|
-
}
|
|
747
|
-
}
|
|
748
|
-
},
|
|
749
|
-
"f-page-content-main": {
|
|
750
|
-
description: "",
|
|
751
|
-
type: "object",
|
|
752
|
-
properties: {}
|
|
753
|
-
}
|
|
754
|
-
}
|
|
755
|
-
}
|
|
756
|
-
}
|
|
757
|
-
},
|
|
758
|
-
"f-page-content": {
|
|
759
|
-
description: "",
|
|
760
|
-
type: "object",
|
|
761
|
-
properties: {
|
|
762
|
-
contents: {
|
|
763
|
-
type: "object",
|
|
764
|
-
properties: {
|
|
765
|
-
"f-page-content-nav": {
|
|
766
|
-
description: "",
|
|
767
|
-
type: "object",
|
|
768
|
-
properties: {
|
|
769
|
-
contents: {
|
|
770
|
-
type: "object",
|
|
771
|
-
properties: {
|
|
772
|
-
"f-list-nav": {
|
|
773
|
-
description: "",
|
|
774
|
-
type: "object"
|
|
775
|
-
},
|
|
776
|
-
"f-list-nav-left": {
|
|
777
|
-
description: "",
|
|
778
|
-
type: "object"
|
|
779
|
-
},
|
|
780
|
-
"f-struct-data-grid-in-nav": {
|
|
781
|
-
description: "",
|
|
782
|
-
type: "object",
|
|
783
|
-
properties: {
|
|
784
|
-
contents: {
|
|
785
|
-
type: "object",
|
|
786
|
-
properties: {
|
|
787
|
-
"f-section-form": {
|
|
788
|
-
description: "",
|
|
789
|
-
type: "object",
|
|
790
|
-
properties: {
|
|
791
|
-
rules: {
|
|
792
|
-
type: "object",
|
|
793
|
-
properties: {
|
|
794
|
-
canAccept: {
|
|
795
|
-
type: "boolean",
|
|
796
|
-
const: !1
|
|
797
|
-
},
|
|
798
|
-
fixed: {
|
|
799
|
-
type: "boolean",
|
|
800
|
-
const: !0
|
|
801
|
-
},
|
|
802
|
-
hidePadding: {
|
|
803
|
-
type: "boolean",
|
|
804
|
-
const: !0
|
|
805
|
-
}
|
|
806
|
-
}
|
|
807
|
-
}
|
|
808
|
-
}
|
|
809
|
-
},
|
|
810
|
-
"f-section-grid": {
|
|
811
|
-
description: "",
|
|
812
|
-
type: "object",
|
|
813
|
-
properties: {
|
|
814
|
-
rules: {
|
|
815
|
-
type: "object",
|
|
816
|
-
properties: {
|
|
817
|
-
canAccept: {
|
|
818
|
-
type: "boolean",
|
|
819
|
-
const: !1
|
|
820
|
-
},
|
|
821
|
-
fixed: {
|
|
822
|
-
type: "boolean",
|
|
823
|
-
const: !0
|
|
824
|
-
},
|
|
825
|
-
hidePadding: {
|
|
826
|
-
type: "boolean",
|
|
827
|
-
const: !0
|
|
828
|
-
}
|
|
829
|
-
}
|
|
830
|
-
}
|
|
831
|
-
}
|
|
832
|
-
}
|
|
833
|
-
}
|
|
834
|
-
},
|
|
835
|
-
rules: {
|
|
836
|
-
type: "object",
|
|
837
|
-
properties: {
|
|
838
|
-
canAccept: {
|
|
839
|
-
type: "boolean",
|
|
840
|
-
const: !1
|
|
841
|
-
},
|
|
842
|
-
fixed: {
|
|
843
|
-
type: "boolean",
|
|
844
|
-
const: !0
|
|
845
|
-
},
|
|
846
|
-
hidePadding: {
|
|
847
|
-
type: "boolean",
|
|
848
|
-
const: !0
|
|
849
|
-
}
|
|
850
|
-
}
|
|
851
|
-
}
|
|
852
|
-
}
|
|
853
|
-
}
|
|
854
|
-
}
|
|
855
|
-
}
|
|
856
|
-
},
|
|
857
|
-
rules: {
|
|
858
|
-
type: "object",
|
|
859
|
-
properties: {
|
|
860
|
-
canAccept: {
|
|
861
|
-
type: "boolean",
|
|
862
|
-
const: !1
|
|
863
|
-
},
|
|
864
|
-
fixed: {
|
|
865
|
-
type: "boolean",
|
|
866
|
-
const: !0
|
|
867
|
-
},
|
|
868
|
-
hidePadding: {
|
|
869
|
-
type: "boolean",
|
|
870
|
-
const: !0
|
|
871
|
-
}
|
|
872
|
-
}
|
|
873
|
-
}
|
|
874
|
-
},
|
|
875
|
-
"f-page-content-main": {
|
|
876
|
-
description: "",
|
|
877
|
-
type: "object",
|
|
878
|
-
properties: {
|
|
879
|
-
rules: {
|
|
880
|
-
type: "object",
|
|
881
|
-
properties: {
|
|
882
|
-
canAccept: {
|
|
883
|
-
type: "boolean",
|
|
884
|
-
const: !1
|
|
885
|
-
},
|
|
886
|
-
fixed: {
|
|
887
|
-
type: "boolean",
|
|
888
|
-
const: !1
|
|
889
|
-
},
|
|
890
|
-
hidePadding: {
|
|
891
|
-
type: "boolean",
|
|
892
|
-
const: !0
|
|
893
|
-
}
|
|
894
|
-
}
|
|
895
|
-
}
|
|
896
|
-
}
|
|
897
|
-
}
|
|
898
|
-
}
|
|
899
|
-
},
|
|
900
|
-
rules: {
|
|
901
|
-
type: "object",
|
|
902
|
-
properties: {
|
|
903
|
-
canAccept: {
|
|
904
|
-
type: "boolean",
|
|
905
|
-
const: !1
|
|
906
|
-
},
|
|
907
|
-
fixed: {
|
|
908
|
-
type: "boolean",
|
|
909
|
-
const: !0
|
|
910
|
-
},
|
|
911
|
-
hidePadding: {
|
|
912
|
-
type: "boolean",
|
|
913
|
-
const: !0
|
|
914
|
-
}
|
|
915
|
-
}
|
|
916
|
-
}
|
|
917
|
-
}
|
|
918
|
-
}
|
|
919
|
-
}
|
|
920
|
-
},
|
|
921
|
-
rules: {
|
|
922
|
-
type: "object",
|
|
923
|
-
properties: {
|
|
924
|
-
canAccept: {
|
|
925
|
-
type: "object",
|
|
926
|
-
const: {
|
|
927
|
-
anyOf: [
|
|
928
|
-
{
|
|
929
|
-
children: 0
|
|
930
|
-
},
|
|
931
|
-
{
|
|
932
|
-
children: {
|
|
933
|
-
length: {
|
|
934
|
-
not: 1
|
|
935
|
-
},
|
|
936
|
-
"f-struct-like-card": !0
|
|
937
|
-
}
|
|
938
|
-
},
|
|
939
|
-
{
|
|
940
|
-
children: {
|
|
941
|
-
"scroll-spy": !1,
|
|
942
|
-
"f-page-content": !1,
|
|
943
|
-
"f-struct-like-card": !1
|
|
944
|
-
}
|
|
945
|
-
}
|
|
946
|
-
]
|
|
947
|
-
}
|
|
948
|
-
},
|
|
949
|
-
fixed: {
|
|
950
|
-
type: "boolean",
|
|
951
|
-
const: !0
|
|
952
|
-
},
|
|
953
|
-
hidePadding: {
|
|
954
|
-
type: "boolean",
|
|
955
|
-
const: !0
|
|
956
|
-
}
|
|
957
|
-
}
|
|
958
|
-
}
|
|
959
|
-
}
|
|
960
|
-
},
|
|
961
|
-
"f-page-footer": {
|
|
962
|
-
description: "The class of page footer designed by farris.",
|
|
963
|
-
type: "string"
|
|
394
|
+
class me {
|
|
395
|
+
getTemplateRule(e, t) {
|
|
396
|
+
const r = t == null ? void 0 : t.formSchemaUtils, a = r == null ? void 0 : r.getFormTemplateRule(), o = { canAccept: !0, canDelete: !0, canMove: !0 };
|
|
397
|
+
if (!a)
|
|
398
|
+
return o;
|
|
399
|
+
const n = this.getComponentContext(e), { componentClassList: u } = n;
|
|
400
|
+
return u.forEach((f) => {
|
|
401
|
+
if (!f || !a[f])
|
|
402
|
+
return;
|
|
403
|
+
const { canMove: l, canDelete: c, canAccept: i } = a[f];
|
|
404
|
+
o.canMove = o.canMove && this.resolveRuleValue(l, n), o.canDelete = o.canDelete && this.resolveRuleValue(c, n), o.canAccept = o.canAccept && this.resolveRuleValue(i, n);
|
|
405
|
+
}), o;
|
|
406
|
+
}
|
|
407
|
+
resolveRuleValue(e, t) {
|
|
408
|
+
return typeof e == "boolean" ? e : this.parseRuleValueSchema(e, t);
|
|
409
|
+
}
|
|
410
|
+
parseRuleValueSchema(e, t) {
|
|
411
|
+
const r = e.invalidContext || [];
|
|
412
|
+
let a = !0;
|
|
413
|
+
for (const o of r) {
|
|
414
|
+
if (o.firstLevelChild) {
|
|
415
|
+
if (o.firstLevelChild.class) {
|
|
416
|
+
const { firstLevelChildClassList: n } = t;
|
|
417
|
+
if (n && !n.includes(o.firstLevelChild.class)) {
|
|
418
|
+
a = !1;
|
|
419
|
+
continue;
|
|
964
420
|
}
|
|
965
421
|
}
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
type: "boolean",
|
|
972
|
-
const: !1
|
|
973
|
-
},
|
|
974
|
-
fixed: {
|
|
975
|
-
type: "boolean",
|
|
976
|
-
const: !0
|
|
977
|
-
},
|
|
978
|
-
hidePadding: {
|
|
979
|
-
type: "boolean",
|
|
980
|
-
const: !0
|
|
422
|
+
if (o.firstLevelChild.type) {
|
|
423
|
+
const { firstLevelChildSchema: n } = t;
|
|
424
|
+
if (!n || n.type !== o.firstLevelChild.type) {
|
|
425
|
+
a = !1;
|
|
426
|
+
continue;
|
|
981
427
|
}
|
|
982
428
|
}
|
|
983
429
|
}
|
|
430
|
+
if (o.secondLevelChild) {
|
|
431
|
+
if (o.secondLevelChild.class) {
|
|
432
|
+
const { secondLevelChildClassList: n } = t;
|
|
433
|
+
if (n && !n.includes(o.secondLevelChild.class)) {
|
|
434
|
+
a = !1;
|
|
435
|
+
continue;
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
if (o.secondLevelChild.type) {
|
|
439
|
+
const { secondLevelChildSchema: n } = t;
|
|
440
|
+
if (!n || n.type !== o.secondLevelChild.type) {
|
|
441
|
+
a = !1;
|
|
442
|
+
continue;
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
if (o.parent) {
|
|
447
|
+
if (o.parent.class) {
|
|
448
|
+
const { parentClassList: n } = t;
|
|
449
|
+
if (n && !n.includes(o.parent.class)) {
|
|
450
|
+
a = !1;
|
|
451
|
+
continue;
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
if (o.parent.type) {
|
|
455
|
+
const { parentSchema: n } = t;
|
|
456
|
+
if (n && n.type !== o.parent.type) {
|
|
457
|
+
a = !1;
|
|
458
|
+
continue;
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
}
|
|
462
|
+
a = !0;
|
|
463
|
+
break;
|
|
984
464
|
}
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
type: Me,
|
|
1004
|
-
properties: Ee
|
|
1005
|
-
}, F = /* @__PURE__ */ new Map();
|
|
1006
|
-
function $e() {
|
|
1007
|
-
function n(o, l, a, f) {
|
|
1008
|
-
var T;
|
|
1009
|
-
if (typeof a == "number")
|
|
1010
|
-
return ((T = f[o]) == null ? void 0 : T.length) === a;
|
|
1011
|
-
if (typeof a == "object") {
|
|
1012
|
-
const i = Object.keys(a)[0], C = a[i];
|
|
1013
|
-
if (i === "not")
|
|
1014
|
-
return Number(f[o].length) !== Number(C);
|
|
1015
|
-
if (i === "moreThan")
|
|
1016
|
-
return Number(f[o].length) >= Number(C);
|
|
1017
|
-
if (i === "lessThan")
|
|
1018
|
-
return Number(f[o].length) <= Number(C);
|
|
1019
|
-
}
|
|
1020
|
-
return !1;
|
|
1021
|
-
}
|
|
1022
|
-
function e(o, l, a, f) {
|
|
1023
|
-
return typeof a == "boolean" ? f.childrenClassList.includes(l) === !!a : !1;
|
|
1024
|
-
}
|
|
1025
|
-
function t(o, l, a, f) {
|
|
1026
|
-
return typeof a == "boolean" ? f.parentClassList.includes(l) === !!a : !1;
|
|
1027
|
-
}
|
|
1028
|
-
function r(o, l, a, f) {
|
|
1029
|
-
return typeof a == "boolean" ? f.parentClassList.includes(l) === !!a : !1;
|
|
1030
|
-
}
|
|
1031
|
-
const s = /* @__PURE__ */ new Map([
|
|
1032
|
-
["length", n],
|
|
1033
|
-
["hasChildren", e],
|
|
1034
|
-
["hasSibling", r],
|
|
1035
|
-
["hasParent", t]
|
|
1036
|
-
]);
|
|
1037
|
-
function d(o, l) {
|
|
1038
|
-
const a = o;
|
|
1039
|
-
return typeof l == "number" ? [{ target: a, operator: "length", param: null, value: Number(l) }] : typeof l == "object" ? Object.keys(l).map((f) => {
|
|
1040
|
-
if (f === "length")
|
|
1041
|
-
return { target: a, operator: "length", param: null, value: l[f] };
|
|
1042
|
-
const T = f, i = l[f];
|
|
1043
|
-
return { target: a, operator: o === "children" ? "hasChildren" : o === "parent" ? "hasParent" : "hasSibling", param: T, value: i };
|
|
1044
|
-
}) : [];
|
|
1045
|
-
}
|
|
1046
|
-
function h(o, l) {
|
|
1047
|
-
if (s.has(o.operator)) {
|
|
1048
|
-
const a = s.get(o.operator);
|
|
1049
|
-
return a && a(o.target, o.param, o.value, l) || !1;
|
|
1050
|
-
}
|
|
1051
|
-
return !1;
|
|
1052
|
-
}
|
|
1053
|
-
function m(o, l) {
|
|
1054
|
-
return Object.keys(o).reduce((i, C) => {
|
|
1055
|
-
const O = d(C, o[C]);
|
|
1056
|
-
return i.push(...O), i;
|
|
1057
|
-
}, []).reduce((i, C) => i && h(C, l), !0);
|
|
1058
|
-
}
|
|
1059
|
-
function v(o, l) {
|
|
1060
|
-
const a = Object.keys(o), f = a.includes("allOf"), T = a.includes("anyOf"), i = f || T, p = (i ? o[i ? f ? "allOf" : "anyOf" : "allOf"] : [o]).map((g) => m(g, l));
|
|
1061
|
-
return f ? !p.includes(!1) : p.includes(!0);
|
|
1062
|
-
}
|
|
1063
|
-
function c(o, l) {
|
|
1064
|
-
const a = o.const;
|
|
1065
|
-
return a ? typeof a == "boolean" ? a : typeof a == "object" ? v(a, l) : !1 : !1;
|
|
1066
|
-
}
|
|
1067
|
-
function y(o) {
|
|
1068
|
-
return (l) => {
|
|
1069
|
-
const a = { canAccept: !0, fixed: !1, hidePadding: !1 };
|
|
1070
|
-
return o && o.properties && Object.keys(o.properties).reduce((f, T) => {
|
|
1071
|
-
const i = o.properties[T];
|
|
1072
|
-
return f[T] = c(i, l), f;
|
|
1073
|
-
}, a), a;
|
|
465
|
+
return !a;
|
|
466
|
+
}
|
|
467
|
+
getComponentContext(e) {
|
|
468
|
+
var M, L, T, k;
|
|
469
|
+
const t = e.schema, r = t.appearance && t.appearance.class || "", a = r.split(" ") || [], o = t.contents || [], n = o.length ? o[0] : null, u = n && n.appearance ? n.appearance.class : "", f = u ? u.split(" ") : [], l = (M = n == null ? void 0 : n.contents) != null && M.length ? n == null ? void 0 : n.contents[0] : null, c = l && l.appearance ? l.appearance.class : "", i = c ? c.split(" ") : [], p = t.type === "component" ? (T = (L = e.parent) == null ? void 0 : L.parent) == null ? void 0 : T.schema : (k = e.parent) == null ? void 0 : k.schema, v = p && p.appearance && p.appearance.class || "", y = v ? v.split(" ") : [];
|
|
470
|
+
return {
|
|
471
|
+
componentClass: r,
|
|
472
|
+
componentClassList: a,
|
|
473
|
+
childContents: o,
|
|
474
|
+
firstLevelChildSchema: n,
|
|
475
|
+
firstLevelChildClass: u,
|
|
476
|
+
firstLevelChildClassList: f,
|
|
477
|
+
secondLevelChildSchema: l,
|
|
478
|
+
secondLevelChildClass: c,
|
|
479
|
+
secondLevelChildClassList: i,
|
|
480
|
+
parentSchema: p,
|
|
481
|
+
parentClass: v,
|
|
482
|
+
parentClassList: y
|
|
1074
483
|
};
|
|
1075
484
|
}
|
|
1076
|
-
function u(o, l, a) {
|
|
1077
|
-
if (l.type === "object" && l.properties) {
|
|
1078
|
-
const { rules: f, contents: T } = l.properties;
|
|
1079
|
-
a.set(o, y(f)), T && Object.keys(T.properties).forEach(
|
|
1080
|
-
(i) => u(i, T.properties[i], a)
|
|
1081
|
-
);
|
|
1082
|
-
}
|
|
1083
|
-
}
|
|
1084
|
-
function b() {
|
|
1085
|
-
const { properties: o } = Se;
|
|
1086
|
-
Object.keys(o).forEach((l) => {
|
|
1087
|
-
u(l, o[l], F);
|
|
1088
|
-
});
|
|
1089
|
-
}
|
|
1090
|
-
function j(o, l) {
|
|
1091
|
-
const a = { canAccept: !0, fixed: !1, hidePadding: !0 };
|
|
1092
|
-
return F.has(o) ? F.get(o)(l) : a;
|
|
1093
|
-
}
|
|
1094
|
-
return b(), { getRuleValue: j };
|
|
1095
485
|
}
|
|
1096
|
-
function
|
|
1097
|
-
const t =
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
return m && m.componentClassList && m.componentClassList.includes("f-form-layout") && m.componentClassList.includes("farris-form") ? i.sourceType === "control" && i.controlCategory === "input" || i.sourceType === "move" && i.controlType === "form-group" : !0;
|
|
1101
|
-
}
|
|
1102
|
-
function y(i) {
|
|
1103
|
-
return !(!Te().basalDragulaRuleForContainer(i) || !d || !c(i));
|
|
486
|
+
function ve(s, e) {
|
|
487
|
+
const t = new me(), { canMove: r, canAccept: a, canDelete: o } = t.getTemplateRule(s, e);
|
|
488
|
+
function n(i) {
|
|
489
|
+
return fe().basalDragulaRuleForContainer(i, e) ? a : !1;
|
|
1104
490
|
}
|
|
1105
491
|
function u() {
|
|
1106
|
-
|
|
1107
|
-
const i = n, C = i.appearance && i.appearance.class || "", O = C.split(" "), p = i.contents || [], P = p.length ? p[0] : null, g = P && P.appearance ? P.appearance.class : "", N = g ? g.split(" ") : [], M = p.length ? p.reduce((V, $) => {
|
|
1108
|
-
const z = $ && $.appearance ? $.appearance.class : "", Z = z ? z.split(" ") : [];
|
|
1109
|
-
return V.push(...Z), V;
|
|
1110
|
-
}, []) : [], w = e, E = w && w.appearance && w.appearance.class || "", Q = E ? E.split(" ") : [];
|
|
1111
|
-
m = {
|
|
1112
|
-
componentClass: C,
|
|
1113
|
-
componentClassList: O,
|
|
1114
|
-
childContents: p,
|
|
1115
|
-
firstChildContent: P,
|
|
1116
|
-
firstChildClass: g,
|
|
1117
|
-
firstChildClassList: N,
|
|
1118
|
-
parent: w,
|
|
1119
|
-
parentClass: E,
|
|
1120
|
-
parentClassList: Q,
|
|
1121
|
-
children: p,
|
|
1122
|
-
childrenClassList: M
|
|
1123
|
-
};
|
|
1124
|
-
const { canAccept: U, fixed: X, hidePadding: Y } = t.getRuleValue(O[0], m);
|
|
1125
|
-
return d = U, h = Y, v = X, !0;
|
|
1126
|
-
}
|
|
1127
|
-
function b(i) {
|
|
1128
|
-
R();
|
|
1129
|
-
}
|
|
1130
|
-
function j() {
|
|
1131
|
-
return n.componentType ? "display:inherit;flex-direction:inherit;margin-bottom:10px" : "";
|
|
1132
|
-
}
|
|
1133
|
-
function o(i, C) {
|
|
1134
|
-
const O = n;
|
|
1135
|
-
if ((O.appearance && O.appearance.class || "").split(" ").includes("f-form-layout")) {
|
|
1136
|
-
const { label: g } = i, N = S("form-group");
|
|
1137
|
-
return N.editor = C, N.label = g, N;
|
|
1138
|
-
}
|
|
1139
|
-
return C;
|
|
1140
|
-
}
|
|
1141
|
-
function l(i, C, O) {
|
|
1142
|
-
const p = n;
|
|
1143
|
-
if ((p.appearance && p.appearance.class || "").split(" ").includes("f-form-layout")) {
|
|
1144
|
-
const N = String(i.innerText), M = S("form-group");
|
|
1145
|
-
return M.editor = O, M.label = N, M;
|
|
1146
|
-
}
|
|
1147
|
-
return O;
|
|
1148
|
-
}
|
|
1149
|
-
function a() {
|
|
1150
|
-
return !v;
|
|
492
|
+
return "display: flex;flex-direction:column;height:100%";
|
|
1151
493
|
}
|
|
1152
494
|
function f() {
|
|
1153
|
-
return
|
|
495
|
+
return r;
|
|
496
|
+
}
|
|
497
|
+
function l() {
|
|
498
|
+
return o;
|
|
1154
499
|
}
|
|
1155
|
-
function
|
|
1156
|
-
return
|
|
500
|
+
function c() {
|
|
501
|
+
return !r && !o;
|
|
1157
502
|
}
|
|
1158
503
|
return {
|
|
1159
|
-
canAccepts:
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
onResolveNewComponentSchema: o,
|
|
1165
|
-
triggerBelongedComponentToMoveWhenMoved: r,
|
|
1166
|
-
triggerBelongedComponentToDeleteWhenDeleted: s,
|
|
1167
|
-
checkCanMoveComponent: a,
|
|
1168
|
-
checkCanDeleteComponent: f,
|
|
1169
|
-
hideNestedPaddingInDesginerView: T
|
|
504
|
+
canAccepts: n,
|
|
505
|
+
getStyles: u,
|
|
506
|
+
checkCanMoveComponent: f,
|
|
507
|
+
checkCanDeleteComponent: l,
|
|
508
|
+
hideNestedPaddingInDesginerView: c
|
|
1170
509
|
};
|
|
1171
510
|
}
|
|
1172
|
-
const
|
|
511
|
+
const de = /* @__PURE__ */ O({
|
|
1173
512
|
name: "FListNavDesign",
|
|
1174
|
-
props:
|
|
513
|
+
props: S,
|
|
1175
514
|
emits: [],
|
|
1176
|
-
setup(
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
let j = ["top", "bottom"].indexOf(h.value) > -1 ? "height" : "width";
|
|
1183
|
-
return b[j] = v.value ? "0px" : n.size + "px", b;
|
|
515
|
+
setup(s, e) {
|
|
516
|
+
const t = g(), r = A("designer-host-service"), a = A("design-item-context"), o = ve(a, r), n = ue(t, a, o);
|
|
517
|
+
n.value.canMove = !1, n.value.canNested = !1;
|
|
518
|
+
const u = g(s.position), f = g(s.title), l = g(!1), c = g(!1), i = j(() => {
|
|
519
|
+
const p = {}, v = ["top", "bottom"].indexOf(u.value) > -1 ? "height" : "width";
|
|
520
|
+
return p[v] = l.value ? "0px" : s.size + "px", p;
|
|
1184
521
|
});
|
|
1185
|
-
return
|
|
1186
|
-
t.value.componentInstance =
|
|
1187
|
-
}), e.expose(
|
|
1188
|
-
class: `f-list-nav f-list-nav-${
|
|
1189
|
-
}, [
|
|
522
|
+
return z(() => {
|
|
523
|
+
t.value.componentInstance = n;
|
|
524
|
+
}), e.expose(n.value), () => d("div", {
|
|
525
|
+
class: `f-list-nav f-list-nav-${u.value}`
|
|
526
|
+
}, [d("div", {
|
|
1190
527
|
class: "f-list-nav-in",
|
|
1191
|
-
style:
|
|
1192
|
-
}, [
|
|
528
|
+
style: i.value
|
|
529
|
+
}, [d("div", {
|
|
1193
530
|
class: "f-list-nav-main"
|
|
1194
|
-
}, [e.slots.navHeader &&
|
|
531
|
+
}, [e.slots.navHeader && d("div", {
|
|
1195
532
|
class: "f-list-nav-header"
|
|
1196
|
-
}, [e.slots.navHeader()]), !e.slots.navHeader &&
|
|
533
|
+
}, [e.slots.navHeader()]), !e.slots.navHeader && f.value && d("div", {
|
|
1197
534
|
class: "f-list-nav-header"
|
|
1198
|
-
}, [
|
|
535
|
+
}, [d("div", {
|
|
1199
536
|
class: "f-list-nav-title"
|
|
1200
|
-
}, [
|
|
537
|
+
}, [f.value])]), e.slots.navContent && d("div", {
|
|
1201
538
|
class: "f-list-nav-content"
|
|
1202
|
-
}, [e.slots.navContent()]), e.slots.navFooter &&
|
|
539
|
+
}, [e.slots.navContent()]), e.slots.navFooter && d("div", {
|
|
1203
540
|
class: "f-list-nav-footer"
|
|
1204
|
-
}, [e.slots.navFooter()])]),
|
|
541
|
+
}, [e.slots.navFooter()])]), s.collapsible && d("div", {
|
|
1205
542
|
class: ["f-list-nav-toggle-sidebar", {
|
|
1206
|
-
disabled:
|
|
1207
|
-
active:
|
|
543
|
+
disabled: s.disabled,
|
|
544
|
+
active: l.value,
|
|
1208
545
|
"splitter-pane-collapse-animate": c.value
|
|
1209
546
|
}]
|
|
1210
|
-
}, [
|
|
547
|
+
}, [d("span", {
|
|
1211
548
|
class: "triangle"
|
|
1212
549
|
}, null)])])]);
|
|
1213
550
|
}
|
|
1214
|
-
}),
|
|
1215
|
-
install(
|
|
1216
|
-
|
|
551
|
+
}), be = {
|
|
552
|
+
install(s) {
|
|
553
|
+
s.component(P.name, P);
|
|
1217
554
|
},
|
|
1218
|
-
register(
|
|
1219
|
-
|
|
555
|
+
register(s, e, t, r) {
|
|
556
|
+
s["list-nav"] = P, e["list-nav"] = E;
|
|
1220
557
|
},
|
|
1221
|
-
registerDesigner(
|
|
1222
|
-
|
|
558
|
+
registerDesigner(s, e, t) {
|
|
559
|
+
s["list-nav"] = de, e["list-nav"] = E;
|
|
1223
560
|
}
|
|
1224
561
|
};
|
|
1225
562
|
export {
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
563
|
+
P as FListNav,
|
|
564
|
+
be as default,
|
|
565
|
+
S as listNavProps,
|
|
566
|
+
E as propsResolver
|
|
1230
567
|
};
|