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