@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,115 +1,159 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { isPlainObject as V, cloneDeep as
|
|
1
|
+
import { ref as z, computed as M, defineComponent as E, provide as q, createVNode as S, watch as te, inject as D, onMounted as W } from "vue";
|
|
2
|
+
import { isPlainObject as V, cloneDeep as ne } from "lodash-es";
|
|
3
3
|
import "bignumber.js";
|
|
4
|
-
const
|
|
5
|
-
function
|
|
6
|
-
const { properties: e, title: n, ignore: o } = t, r = o && Array.isArray(o), l = Object.keys(e).reduce((
|
|
7
|
-
|
|
4
|
+
const G = {}, Y = {};
|
|
5
|
+
function L(t) {
|
|
6
|
+
const { properties: e, title: n, ignore: o } = t, r = o && Array.isArray(o), l = Object.keys(e).reduce((u, v) => ((!r || !o.find((P) => P === v)) && (u[v] = e[v].type === "object" && e[v].properties ? L(e[v]) : ne(e[v].default)), u), {});
|
|
7
|
+
if (n && (!r || !o.find((u) => u === "id"))) {
|
|
8
|
+
const u = n.toLowerCase().replace(/-/g, "_");
|
|
9
|
+
l.id = `${u}_${Math.random().toString().slice(2, 6)}`;
|
|
10
|
+
}
|
|
11
|
+
return l;
|
|
8
12
|
}
|
|
9
|
-
function
|
|
10
|
-
const o =
|
|
13
|
+
function X(t, e = {}, n) {
|
|
14
|
+
const o = G[t];
|
|
11
15
|
if (o) {
|
|
12
|
-
let r =
|
|
13
|
-
const l =
|
|
14
|
-
return r = l ? l({ getSchemaByType:
|
|
16
|
+
let r = L(o);
|
|
17
|
+
const l = Y[t];
|
|
18
|
+
return r = l ? l({ getSchemaByType: X }, r, e, n) : r, r;
|
|
15
19
|
}
|
|
16
20
|
return null;
|
|
17
21
|
}
|
|
18
|
-
function ne(t, e) {
|
|
19
|
-
const n = N(e);
|
|
20
|
-
return Object.keys(t).reduce((o, r) => (o[r] && V(o[r]) && V(t[r]) ? Object.assign(o[r], t[r]) : o[r] = t[r], o), n), n;
|
|
21
|
-
}
|
|
22
22
|
function oe(t, e) {
|
|
23
|
+
const n = L(e);
|
|
24
|
+
return Object.keys(n).reduce((o, r) => (o[r] && V(o[r]) && V(t[r] || !t[r]) ? Object.assign(o[r], t[r] || {}) : o[r] = t[r], o), n), n;
|
|
25
|
+
}
|
|
26
|
+
function ae(t, e) {
|
|
23
27
|
return Object.keys(t).filter((o) => t[o] != null).reduce((o, r) => {
|
|
24
28
|
if (e.has(r)) {
|
|
25
29
|
const l = e.get(r);
|
|
26
30
|
if (typeof l == "string")
|
|
27
31
|
o[l] = t[r];
|
|
28
32
|
else {
|
|
29
|
-
const
|
|
30
|
-
Object.assign(o,
|
|
33
|
+
const u = l(r, t[r], t);
|
|
34
|
+
Object.assign(o, u);
|
|
31
35
|
}
|
|
32
36
|
} else
|
|
33
37
|
o[r] = t[r];
|
|
34
38
|
return o;
|
|
35
39
|
}, {});
|
|
36
40
|
}
|
|
37
|
-
function
|
|
38
|
-
const o =
|
|
39
|
-
return
|
|
41
|
+
function ie(t, e, n = /* @__PURE__ */ new Map()) {
|
|
42
|
+
const o = oe(t, e);
|
|
43
|
+
return ae(o, n);
|
|
40
44
|
}
|
|
41
|
-
function
|
|
42
|
-
function e(
|
|
45
|
+
function re(t = {}) {
|
|
46
|
+
function e(i, f, c, b) {
|
|
43
47
|
if (typeof c == "number")
|
|
44
|
-
return
|
|
48
|
+
return b[i].length === c;
|
|
45
49
|
if (typeof c == "object") {
|
|
46
|
-
const
|
|
47
|
-
if (
|
|
48
|
-
return Number(
|
|
49
|
-
if (
|
|
50
|
-
return Number(
|
|
51
|
-
if (
|
|
52
|
-
return Number(
|
|
50
|
+
const C = Object.keys(c)[0], O = c[C];
|
|
51
|
+
if (C === "not")
|
|
52
|
+
return Number(b[i].length) !== Number(O);
|
|
53
|
+
if (C === "moreThan")
|
|
54
|
+
return Number(b[i].length) >= Number(O);
|
|
55
|
+
if (C === "lessThan")
|
|
56
|
+
return Number(b[i].length) <= Number(O);
|
|
53
57
|
}
|
|
54
58
|
return !1;
|
|
55
59
|
}
|
|
56
|
-
function n(
|
|
57
|
-
return
|
|
60
|
+
function n(i, f, c, b) {
|
|
61
|
+
return b[i] && b[i].propertyValue && String(b[i].propertyValue.value) === String(c);
|
|
58
62
|
}
|
|
59
63
|
const o = /* @__PURE__ */ new Map([
|
|
60
64
|
["length", e],
|
|
61
65
|
["getProperty", n]
|
|
62
66
|
]);
|
|
63
|
-
Object.keys(t).reduce((
|
|
64
|
-
function r(
|
|
65
|
-
const c =
|
|
66
|
-
return typeof
|
|
67
|
-
if (
|
|
68
|
-
return { target: c, operator: "length", param: null, value:
|
|
69
|
-
const
|
|
70
|
-
return { target: c, operator: "getProperty", param:
|
|
67
|
+
Object.keys(t).reduce((i, f) => (i.set(f, t[f]), i), o);
|
|
68
|
+
function r(i, f) {
|
|
69
|
+
const c = i;
|
|
70
|
+
return typeof f == "number" ? [{ target: c, operator: "length", param: null, value: Number(f) }] : typeof f == "boolean" ? [{ target: c, operator: "getProperty", param: i, value: !!f }] : typeof f == "object" ? Object.keys(f).map((b) => {
|
|
71
|
+
if (b === "length")
|
|
72
|
+
return { target: c, operator: "length", param: null, value: f[b] };
|
|
73
|
+
const C = b, O = f[b];
|
|
74
|
+
return { target: c, operator: "getProperty", param: C, value: O };
|
|
71
75
|
}) : [];
|
|
72
76
|
}
|
|
73
|
-
function l(
|
|
74
|
-
return Object.keys(
|
|
75
|
-
const
|
|
76
|
-
return c.push(...
|
|
77
|
+
function l(i) {
|
|
78
|
+
return Object.keys(i).reduce((c, b) => {
|
|
79
|
+
const C = r(b, i[b]);
|
|
80
|
+
return c.push(...C), c;
|
|
77
81
|
}, []);
|
|
78
82
|
}
|
|
79
|
-
function
|
|
80
|
-
if (o.has(
|
|
81
|
-
const c = o.get(
|
|
82
|
-
return c && c(
|
|
83
|
+
function u(i, f) {
|
|
84
|
+
if (o.has(i.operator)) {
|
|
85
|
+
const c = o.get(i.operator);
|
|
86
|
+
return c && c(i.target, i.param, i.value, f) || !1;
|
|
83
87
|
}
|
|
84
88
|
return !1;
|
|
85
89
|
}
|
|
86
|
-
function
|
|
87
|
-
return l(
|
|
90
|
+
function v(i, f) {
|
|
91
|
+
return l(i).reduce((C, O) => C && u(O, f), !0);
|
|
88
92
|
}
|
|
89
|
-
function
|
|
90
|
-
const c = Object.keys(
|
|
91
|
-
return
|
|
93
|
+
function P(i, f) {
|
|
94
|
+
const c = Object.keys(i), b = c.includes("allOf"), C = c.includes("anyOf"), O = b || C, p = (O ? i[O ? b ? "allOf" : "anyOf" : "allOf"] : [i]).map((d) => v(d, f));
|
|
95
|
+
return b ? !p.includes(!1) : p.includes(!0);
|
|
92
96
|
}
|
|
93
|
-
return { parseValueSchema:
|
|
97
|
+
return { parseValueSchema: P };
|
|
94
98
|
}
|
|
95
|
-
const
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
99
|
+
const H = {
|
|
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
|
+
}, le = {}, se = {};
|
|
140
|
+
re();
|
|
141
|
+
function _(t, e, n = /* @__PURE__ */ new Map(), o = (u, v, P, i) => v, r = {}, l = (u) => u) {
|
|
142
|
+
return G[e.title] = e, Y[e.title] = o, le[e.title] = r, se[e.title] = l, (u = {}) => {
|
|
143
|
+
const v = ie(u, e, n), P = Object.keys(t).reduce((i, f) => (i[f] = t[f].default, i), {});
|
|
144
|
+
return Object.assign(P, v);
|
|
101
145
|
};
|
|
102
146
|
}
|
|
103
|
-
function
|
|
147
|
+
function ce(t, e) {
|
|
104
148
|
return { customClass: e.class, customStyle: e.style };
|
|
105
149
|
}
|
|
106
|
-
const
|
|
107
|
-
["appearance",
|
|
150
|
+
const U = /* @__PURE__ */ new Map([
|
|
151
|
+
["appearance", ce]
|
|
108
152
|
]);
|
|
109
|
-
function
|
|
153
|
+
function Q(t, e, n) {
|
|
110
154
|
return e;
|
|
111
155
|
}
|
|
112
|
-
const
|
|
156
|
+
const ue = "https://json-schema.org/draft/2020-12/schema", pe = "https://farris-design.gitee.io/layout.schema.json", fe = "layout", ye = "A Farris Container Component", me = "object", de = {
|
|
113
157
|
id: {
|
|
114
158
|
description: "The unique identifier for layout component",
|
|
115
159
|
type: "string"
|
|
@@ -152,19 +196,19 @@ const ce = "https://json-schema.org/draft/2020-12/schema", ue = "https://farris-
|
|
|
152
196
|
type: "boolean",
|
|
153
197
|
default: !0
|
|
154
198
|
}
|
|
155
|
-
},
|
|
199
|
+
}, he = [
|
|
156
200
|
"id",
|
|
157
201
|
"type",
|
|
158
202
|
"contents"
|
|
159
|
-
],
|
|
160
|
-
$schema:
|
|
161
|
-
$id:
|
|
203
|
+
], ve = {
|
|
204
|
+
$schema: ue,
|
|
205
|
+
$id: pe,
|
|
162
206
|
title: fe,
|
|
163
|
-
description:
|
|
164
|
-
type:
|
|
165
|
-
properties:
|
|
166
|
-
required:
|
|
167
|
-
},
|
|
207
|
+
description: ye,
|
|
208
|
+
type: me,
|
|
209
|
+
properties: de,
|
|
210
|
+
required: he
|
|
211
|
+
}, be = "layout", ge = "A Farris Component", ze = "object", Pe = {
|
|
168
212
|
basic: {
|
|
169
213
|
description: "Basic Infomation",
|
|
170
214
|
title: "基本信息",
|
|
@@ -199,96 +243,96 @@ const ce = "https://json-schema.org/draft/2020-12/schema", ue = "https://farris-
|
|
|
199
243
|
}
|
|
200
244
|
}
|
|
201
245
|
}
|
|
202
|
-
},
|
|
203
|
-
title:
|
|
246
|
+
}, we = {
|
|
247
|
+
title: be,
|
|
204
248
|
description: ge,
|
|
205
|
-
type:
|
|
206
|
-
categories:
|
|
207
|
-
},
|
|
249
|
+
type: ze,
|
|
250
|
+
categories: Pe
|
|
251
|
+
}, F = {
|
|
208
252
|
customStyle: { type: String, defaut: "" },
|
|
209
253
|
customClass: { type: String, defaut: "" }
|
|
210
|
-
},
|
|
211
|
-
function
|
|
212
|
-
const e =
|
|
254
|
+
}, J = _(F, ve, U, Q, we);
|
|
255
|
+
function Z(t) {
|
|
256
|
+
const e = z(-1), n = z(-1), o = z(0), r = z(0), l = z(!1), u = z(!1), v = M(() => ({
|
|
213
257
|
display: l.value ? "block" : "none",
|
|
214
258
|
left: `${o.value}px`,
|
|
215
259
|
cursor: "e-resize"
|
|
216
|
-
})),
|
|
217
|
-
display:
|
|
260
|
+
})), P = M(() => ({
|
|
261
|
+
display: u.value ? "block" : "none",
|
|
218
262
|
top: `${r.value}px`,
|
|
219
263
|
cursor: "n-resize"
|
|
220
|
-
})),
|
|
221
|
-
display:
|
|
264
|
+
})), i = M(() => ({
|
|
265
|
+
display: u.value || l.value ? "block" : "none"
|
|
222
266
|
}));
|
|
223
|
-
function
|
|
224
|
-
const
|
|
225
|
-
if (
|
|
226
|
-
const { left:
|
|
227
|
-
let
|
|
228
|
-
|
|
267
|
+
function f(h, p, m, d) {
|
|
268
|
+
const R = t.value;
|
|
269
|
+
if (R) {
|
|
270
|
+
const { left: a, right: s, width: g } = R.getBoundingClientRect();
|
|
271
|
+
let y = h.clientX - a;
|
|
272
|
+
d === "right" && (y = s - h.clientX), y > p && (y = p), y < m && (y = m), d === "right" && (y = g - y), o.value = y;
|
|
229
273
|
}
|
|
230
274
|
}
|
|
231
|
-
function c(
|
|
232
|
-
const
|
|
233
|
-
if (
|
|
234
|
-
const { top:
|
|
235
|
-
let
|
|
236
|
-
|
|
275
|
+
function c(h, p, m, d) {
|
|
276
|
+
const R = t.value;
|
|
277
|
+
if (R) {
|
|
278
|
+
const { top: a, bottom: s, height: g } = R.getBoundingClientRect();
|
|
279
|
+
let y = h.clientY - a;
|
|
280
|
+
d === "bottom" && (y = s - h.clientY), y > p && (y = p), y < m && (y = m), d === "bottom" && (y = g - y), r.value = y;
|
|
237
281
|
}
|
|
238
282
|
}
|
|
239
|
-
function
|
|
240
|
-
const
|
|
241
|
-
if (
|
|
242
|
-
const { width:
|
|
243
|
-
return { width:
|
|
283
|
+
function b() {
|
|
284
|
+
const h = t.value;
|
|
285
|
+
if (h) {
|
|
286
|
+
const { width: p, height: m } = h.getBoundingClientRect();
|
|
287
|
+
return { width: p, height: m };
|
|
244
288
|
}
|
|
245
289
|
return null;
|
|
246
290
|
}
|
|
247
|
-
function
|
|
248
|
-
const
|
|
249
|
-
return
|
|
250
|
-
const
|
|
251
|
-
return
|
|
291
|
+
function C() {
|
|
292
|
+
const h = t.value;
|
|
293
|
+
return h ? Array.from(h.querySelectorAll("[data-position]")).reduce((p, m) => {
|
|
294
|
+
const d = m.getAttribute("data-position");
|
|
295
|
+
return p = Object.assign(p, { [d]: m }), p;
|
|
252
296
|
}, {}) : null;
|
|
253
297
|
}
|
|
254
|
-
function
|
|
255
|
-
const
|
|
256
|
-
if (
|
|
257
|
-
const
|
|
258
|
-
if (
|
|
259
|
-
return
|
|
260
|
-
if (
|
|
261
|
-
return
|
|
298
|
+
function O(h, p) {
|
|
299
|
+
const m = b(), d = C();
|
|
300
|
+
if (m && d) {
|
|
301
|
+
const R = d == null ? void 0 : d.right, a = d == null ? void 0 : d.left;
|
|
302
|
+
if (h === "left" && a)
|
|
303
|
+
return R ? m.width - R.clientWidth - p : m.width - p;
|
|
304
|
+
if (h === "right" && R)
|
|
305
|
+
return a ? m.width - a.clientWidth - p : m.width - p;
|
|
262
306
|
}
|
|
263
307
|
}
|
|
264
|
-
function
|
|
265
|
-
const
|
|
266
|
-
if (
|
|
267
|
-
const
|
|
268
|
-
if (
|
|
269
|
-
return
|
|
270
|
-
if (
|
|
271
|
-
return
|
|
308
|
+
function w(h, p) {
|
|
309
|
+
const m = b(), d = C();
|
|
310
|
+
if (m && d) {
|
|
311
|
+
const R = d == null ? void 0 : d.bottom, a = d == null ? void 0 : d.top;
|
|
312
|
+
if (h === "top" && a)
|
|
313
|
+
return R ? m.height - R.clientHeight - p : m.height - p;
|
|
314
|
+
if (h === "bottom" && R)
|
|
315
|
+
return a ? m.height - a.clientHeight - p : m.height - p;
|
|
272
316
|
}
|
|
273
317
|
}
|
|
274
318
|
return {
|
|
275
|
-
horizontalResizeHandleStyle:
|
|
276
|
-
verticalResizeHandleStyle:
|
|
277
|
-
resizeOverlayStyle:
|
|
319
|
+
horizontalResizeHandleStyle: v,
|
|
320
|
+
verticalResizeHandleStyle: P,
|
|
321
|
+
resizeOverlayStyle: i,
|
|
278
322
|
showHorizontalResizeHandle: l,
|
|
279
|
-
showVerticalResizeHandle:
|
|
323
|
+
showVerticalResizeHandle: u,
|
|
280
324
|
horizontalResizeBarPosition: e,
|
|
281
325
|
verticalResizeBarPosition: n,
|
|
282
326
|
verticalResizeHandleOffset: r,
|
|
283
327
|
horizontalResizeHandleOffset: o,
|
|
284
|
-
draggingHorizontalResizeHandle:
|
|
328
|
+
draggingHorizontalResizeHandle: f,
|
|
285
329
|
draggingVerticalResizeHandle: c,
|
|
286
|
-
getPanelMaxHeight:
|
|
287
|
-
getPanelMaxWidth:
|
|
330
|
+
getPanelMaxHeight: w,
|
|
331
|
+
getPanelMaxWidth: O
|
|
288
332
|
};
|
|
289
333
|
}
|
|
290
|
-
const
|
|
291
|
-
function
|
|
334
|
+
const Ce = ["moz", "ms", "webkit"];
|
|
335
|
+
function Be() {
|
|
292
336
|
let t = 0;
|
|
293
337
|
return (e) => {
|
|
294
338
|
const n = (/* @__PURE__ */ new Date()).getTime(), o = Math.max(0, 16 - (n - t)), r = setTimeout(() => {
|
|
@@ -297,19 +341,19 @@ function Pe() {
|
|
|
297
341
|
return t = n + o, r;
|
|
298
342
|
};
|
|
299
343
|
}
|
|
300
|
-
function
|
|
344
|
+
function Re() {
|
|
301
345
|
if (typeof window > "u")
|
|
302
346
|
return () => 0;
|
|
303
347
|
if (window.requestAnimationFrame)
|
|
304
348
|
return window.requestAnimationFrame.bind(window);
|
|
305
|
-
const t =
|
|
306
|
-
return t ? window[`${t}RequestAnimationFrame`] :
|
|
349
|
+
const t = Ce.filter((e) => `${e}RequestAnimationFrame` in window)[0];
|
|
350
|
+
return t ? window[`${t}RequestAnimationFrame`] : Be();
|
|
307
351
|
}
|
|
308
|
-
|
|
309
|
-
function
|
|
352
|
+
Re();
|
|
353
|
+
function Oe(t, e) {
|
|
310
354
|
return ((e == null ? void 0 : e.split(" ")) || []).reduce((o, r) => (r && (o[r] = !0), o), t), t;
|
|
311
355
|
}
|
|
312
|
-
function
|
|
356
|
+
function Se(t, e) {
|
|
313
357
|
return ((e == null ? void 0 : e.split(";")) || []).reduce((o, r) => {
|
|
314
358
|
if (r) {
|
|
315
359
|
const l = r.split(":");
|
|
@@ -318,38 +362,38 @@ function He(t, e) {
|
|
|
318
362
|
return o;
|
|
319
363
|
}, t), t;
|
|
320
364
|
}
|
|
321
|
-
const
|
|
365
|
+
const j = /* @__PURE__ */ E({
|
|
322
366
|
name: "FLayout",
|
|
323
|
-
props:
|
|
367
|
+
props: F,
|
|
324
368
|
emits: [],
|
|
325
369
|
setup(t, e) {
|
|
326
|
-
const n =
|
|
370
|
+
const n = z(), o = Z(n), {
|
|
327
371
|
horizontalResizeHandleStyle: r,
|
|
328
372
|
verticalResizeHandleStyle: l,
|
|
329
|
-
resizeOverlayStyle:
|
|
373
|
+
resizeOverlayStyle: u
|
|
330
374
|
} = o;
|
|
331
|
-
|
|
375
|
+
q("layout", {
|
|
332
376
|
useResizeHandleComposition: o
|
|
333
377
|
});
|
|
334
|
-
const
|
|
378
|
+
const v = M(() => Oe({
|
|
335
379
|
"f-layout": !0
|
|
336
|
-
}, t == null ? void 0 : t.customClass)),
|
|
337
|
-
return () =>
|
|
338
|
-
class:
|
|
339
|
-
style:
|
|
380
|
+
}, t == null ? void 0 : t.customClass)), P = M(() => Se({}, t == null ? void 0 : t.customStyle));
|
|
381
|
+
return () => S("div", {
|
|
382
|
+
class: v.value,
|
|
383
|
+
style: P.value,
|
|
340
384
|
ref: n
|
|
341
|
-
}, [e.slots.default && e.slots.default(),
|
|
385
|
+
}, [e.slots.default && e.slots.default(), S("div", {
|
|
342
386
|
class: "f-layout-resize-overlay",
|
|
343
|
-
style:
|
|
344
|
-
}, null),
|
|
387
|
+
style: u.value
|
|
388
|
+
}, null), S("div", {
|
|
345
389
|
class: "f-layout-horizontal-resize-proxy",
|
|
346
390
|
style: r.value
|
|
347
|
-
}, null),
|
|
391
|
+
}, null), S("div", {
|
|
348
392
|
class: "f-layout-vertical-resize-proxy",
|
|
349
393
|
style: l.value
|
|
350
394
|
}, null)]);
|
|
351
395
|
}
|
|
352
|
-
}),
|
|
396
|
+
}), ke = "https://json-schema.org/draft/2020-12/schema", Me = "https://farris-design.gitee.io/layout-pane.schema.json", Te = "layout-pane", He = "A Farris Container Component", je = "object", De = {
|
|
353
397
|
id: {
|
|
354
398
|
description: "The unique identifier for a layout pane",
|
|
355
399
|
type: "string"
|
|
@@ -413,13 +457,13 @@ const A = /* @__PURE__ */ $({
|
|
|
413
457
|
default: !0
|
|
414
458
|
}
|
|
415
459
|
}, Ee = {
|
|
416
|
-
$schema:
|
|
417
|
-
$id:
|
|
418
|
-
title:
|
|
419
|
-
description:
|
|
420
|
-
type:
|
|
421
|
-
properties:
|
|
422
|
-
}, $e = "layout-pane",
|
|
460
|
+
$schema: ke,
|
|
461
|
+
$id: Me,
|
|
462
|
+
title: Te,
|
|
463
|
+
description: He,
|
|
464
|
+
type: je,
|
|
465
|
+
properties: De
|
|
466
|
+
}, $e = "layout-pane", Ae = "A Farris Container Component", Le = "object", Fe = {
|
|
423
467
|
basic: {
|
|
424
468
|
description: "Basic Infomation",
|
|
425
469
|
title: "基本信息",
|
|
@@ -452,7 +496,7 @@ const A = /* @__PURE__ */ $({
|
|
|
452
496
|
description: "Appearance",
|
|
453
497
|
properties: {
|
|
454
498
|
class: {
|
|
455
|
-
title: "class",
|
|
499
|
+
title: "class样式",
|
|
456
500
|
type: "string",
|
|
457
501
|
description: ""
|
|
458
502
|
},
|
|
@@ -514,12 +558,12 @@ const A = /* @__PURE__ */ $({
|
|
|
514
558
|
}
|
|
515
559
|
}
|
|
516
560
|
}
|
|
517
|
-
},
|
|
561
|
+
}, Ne = {
|
|
518
562
|
title: $e,
|
|
519
|
-
description:
|
|
520
|
-
type:
|
|
521
|
-
categories:
|
|
522
|
-
},
|
|
563
|
+
description: Ae,
|
|
564
|
+
type: Le,
|
|
565
|
+
categories: Fe
|
|
566
|
+
}, N = {
|
|
523
567
|
customClass: { type: String, defaut: "" },
|
|
524
568
|
customStyle: { type: String, defaut: "" },
|
|
525
569
|
/** 记录原始定义宽度 */
|
|
@@ -538,327 +582,317 @@ const A = /* @__PURE__ */ $({
|
|
|
538
582
|
minWidth: { type: Number, default: 100 },
|
|
539
583
|
/** 面板最小高度 */
|
|
540
584
|
minHeight: { type: Number, default: 100 }
|
|
541
|
-
},
|
|
542
|
-
function
|
|
585
|
+
}, x = _(N, Ee, U, Q, Ne);
|
|
586
|
+
function K(t, e, n, o, r) {
|
|
543
587
|
const {
|
|
544
588
|
horizontalResizeBarPosition: l,
|
|
545
|
-
horizontalResizeHandleOffset:
|
|
546
|
-
showHorizontalResizeHandle:
|
|
547
|
-
showVerticalResizeHandle:
|
|
548
|
-
verticalResizeBarPosition:
|
|
549
|
-
verticalResizeHandleOffset:
|
|
589
|
+
horizontalResizeHandleOffset: u,
|
|
590
|
+
showHorizontalResizeHandle: v,
|
|
591
|
+
showVerticalResizeHandle: P,
|
|
592
|
+
verticalResizeBarPosition: i,
|
|
593
|
+
verticalResizeHandleOffset: f,
|
|
550
594
|
draggingHorizontalResizeHandle: c,
|
|
551
|
-
draggingVerticalResizeHandle:
|
|
552
|
-
getPanelMaxHeight:
|
|
553
|
-
getPanelMaxWidth:
|
|
595
|
+
draggingVerticalResizeHandle: b,
|
|
596
|
+
getPanelMaxHeight: C,
|
|
597
|
+
getPanelMaxWidth: O
|
|
554
598
|
} = r;
|
|
555
|
-
let
|
|
556
|
-
function
|
|
557
|
-
if ((
|
|
558
|
-
const { left:
|
|
559
|
-
let
|
|
560
|
-
|
|
561
|
-
const
|
|
562
|
-
|
|
599
|
+
let w = "", h, p, m;
|
|
600
|
+
function d(s) {
|
|
601
|
+
if ((w === "left" || w === "right") && p) {
|
|
602
|
+
const { left: g } = p.getBoundingClientRect(), { width: y } = h.getBoundingClientRect(), T = s.clientX - g;
|
|
603
|
+
let B = w === "left" ? (y || 0) + (T - l.value) : (y || 0) - (T - l.value);
|
|
604
|
+
B = n.value > 0 ? Math.max(n.value, B) : B;
|
|
605
|
+
const k = O(w, n.value);
|
|
606
|
+
k != null && (B = k > B ? B : k), t.value = B;
|
|
563
607
|
}
|
|
564
|
-
if ((
|
|
565
|
-
const { top:
|
|
566
|
-
let
|
|
567
|
-
|
|
568
|
-
const
|
|
569
|
-
|
|
608
|
+
if ((w === "top" || w === "bottom") && p) {
|
|
609
|
+
const { top: g } = p.getBoundingClientRect(), { height: y } = h.getBoundingClientRect(), T = s.clientY - g;
|
|
610
|
+
let B = w === "top" ? (y || 0) + (T - i.value) : (y || 0) - (T - i.value);
|
|
611
|
+
B = o.value > 0 ? Math.max(o.value, B) : B;
|
|
612
|
+
const k = C(w, o.value);
|
|
613
|
+
k != null && (B = k > B ? B : k), e.value = B;
|
|
570
614
|
}
|
|
571
|
-
|
|
572
|
-
}
|
|
573
|
-
function
|
|
574
|
-
if (
|
|
575
|
-
const { left:
|
|
576
|
-
|
|
577
|
-
const
|
|
578
|
-
|
|
615
|
+
u.value = 0, f.value = 0, l.value = -1, i.value = -1, v.value = !1, P.value = !1, document.removeEventListener("mousemove", m), document.removeEventListener("mouseup", d), document.body.style.userSelect = "", w = "", h = null, p = null;
|
|
616
|
+
}
|
|
617
|
+
function R(s, g, y) {
|
|
618
|
+
if (w = g, h = y, v.value = !0, p = s.composedPath().find((B) => (B.className || "").split(" ")[0] === "f-layout"), p) {
|
|
619
|
+
const { left: B } = p.getBoundingClientRect(), k = s.clientX - B;
|
|
620
|
+
u.value = k, l.value = k;
|
|
621
|
+
const $ = O(w, n.value) || 0;
|
|
622
|
+
m = (ee) => c(ee, $, n.value, w), document.addEventListener("mousemove", m), document.addEventListener("mouseup", d), document.body.style.userSelect = "none";
|
|
579
623
|
}
|
|
580
624
|
}
|
|
581
|
-
function
|
|
582
|
-
if (
|
|
583
|
-
const { top:
|
|
584
|
-
|
|
585
|
-
const
|
|
586
|
-
|
|
625
|
+
function a(s, g, y) {
|
|
626
|
+
if (w = g, h = y, P.value = !0, p = s.composedPath().find((B) => (B.className || "").split(" ")[0] === "f-layout"), p) {
|
|
627
|
+
const { top: B } = p.getBoundingClientRect();
|
|
628
|
+
f.value = s.clientY - B, i.value = s.clientY - B;
|
|
629
|
+
const k = C(w, o.value) || 0;
|
|
630
|
+
m = ($) => b($, k, o.value, w), document.addEventListener("mousemove", m), document.addEventListener("mouseup", d), document.body.style.userSelect = "none";
|
|
587
631
|
}
|
|
588
632
|
}
|
|
589
|
-
return { onClickHorizontalResizeBar:
|
|
633
|
+
return { onClickHorizontalResizeBar: R, onClickVerticalResizeBar: a };
|
|
590
634
|
}
|
|
591
|
-
const
|
|
635
|
+
const A = /* @__PURE__ */ E({
|
|
592
636
|
name: "FLayoutPane",
|
|
593
|
-
props:
|
|
637
|
+
props: N,
|
|
594
638
|
emits: [],
|
|
595
639
|
setup(t, e) {
|
|
596
|
-
const n =
|
|
597
|
-
|
|
598
|
-
|
|
640
|
+
const n = z(t.minHeight <= 0 ? 100 : t.minHeight), o = z(t.minWidth <= 0 ? 100 : t.minWidth), r = z(t.width <= 0 ? 100 : t.width), l = z(t.height <= 100 ? 100 : t.height), u = z(Math.max(n.value, l.value)), v = z(Math.max(o.value, r.value)), P = z(), i = z(t.position), f = z(t.resizable);
|
|
641
|
+
te(() => t.resizable, (a) => {
|
|
642
|
+
f.value = a;
|
|
599
643
|
});
|
|
600
|
-
const c =
|
|
601
|
-
useResizeHandleComposition:
|
|
602
|
-
} = c,
|
|
603
|
-
onClickHorizontalResizeBar:
|
|
604
|
-
onClickVerticalResizeBar:
|
|
605
|
-
} =
|
|
644
|
+
const c = D("layout"), {
|
|
645
|
+
useResizeHandleComposition: b
|
|
646
|
+
} = c, C = K(v, u, o, n, b), {
|
|
647
|
+
onClickHorizontalResizeBar: O,
|
|
648
|
+
onClickVerticalResizeBar: w
|
|
649
|
+
} = C, h = M(() => ({
|
|
606
650
|
"f-layout-resize-bar": !0,
|
|
607
|
-
"f-layout-resize-bar-e":
|
|
608
|
-
"f-layout-resize-bar-n":
|
|
609
|
-
"f-layout-resize-bar-s":
|
|
610
|
-
"f-layout-resize-bar-w":
|
|
611
|
-
})),
|
|
612
|
-
function
|
|
613
|
-
(
|
|
651
|
+
"f-layout-resize-bar-e": i.value === "left",
|
|
652
|
+
"f-layout-resize-bar-n": i.value === "bottom",
|
|
653
|
+
"f-layout-resize-bar-s": i.value === "top",
|
|
654
|
+
"f-layout-resize-bar-w": i.value === "right"
|
|
655
|
+
})), p = M(() => i.value !== "center" && f.value);
|
|
656
|
+
function m(a, s) {
|
|
657
|
+
(s === "left" || s === "right") && O(a, s, P.value), (s === "top" || s === "bottom") && w(a, s, P.value);
|
|
614
658
|
}
|
|
615
|
-
const
|
|
616
|
-
const
|
|
659
|
+
const d = M(() => {
|
|
660
|
+
const a = {
|
|
617
661
|
"f-layout-pane": !0,
|
|
618
|
-
"f-page-content-nav":
|
|
619
|
-
"f-page-content-main":
|
|
662
|
+
"f-page-content-nav": i.value === "left" || i.value === "right",
|
|
663
|
+
"f-page-content-main": i.value === "center"
|
|
620
664
|
};
|
|
621
|
-
return t.customClass && String(t.customClass).split(" ").reduce((
|
|
622
|
-
}),
|
|
623
|
-
const
|
|
624
|
-
return (
|
|
665
|
+
return t.customClass && String(t.customClass).split(" ").reduce((s, g) => (s[g] = !0, s), a), a;
|
|
666
|
+
}), R = M(() => {
|
|
667
|
+
const a = {};
|
|
668
|
+
return (v.value && i.value === "left" || i.value === "right") && (a.width = `${v.value}px`), (u.value && i.value === "bottom" || i.value === "top") && (a.height = `${u.value}px`), t.visible || (a.display = "none"), a;
|
|
625
669
|
});
|
|
626
|
-
return () =>
|
|
627
|
-
ref:
|
|
670
|
+
return () => S("div", {
|
|
671
|
+
ref: P,
|
|
672
|
+
class: d.value,
|
|
673
|
+
style: R.value,
|
|
674
|
+
"data-position": i.value
|
|
675
|
+
}, [e.slots.default && e.slots.default(), p.value && S("span", {
|
|
628
676
|
class: h.value,
|
|
629
|
-
|
|
630
|
-
"data-position": a.value
|
|
631
|
-
}, [e.slots.default && e.slots.default(), u.value && B("span", {
|
|
632
|
-
class: b.value,
|
|
633
|
-
onMousedown: (v) => d(v, a.value)
|
|
677
|
+
onMousedown: (a) => m(a, i.value)
|
|
634
678
|
}, null)]);
|
|
635
679
|
}
|
|
636
680
|
});
|
|
637
|
-
function
|
|
681
|
+
function Ve(t, e) {
|
|
638
682
|
function n() {
|
|
639
683
|
return !1;
|
|
640
684
|
}
|
|
641
685
|
return { canAccepts: n };
|
|
642
686
|
}
|
|
643
|
-
function
|
|
644
|
-
var
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
}
|
|
648
|
-
o();
|
|
649
|
-
const r = n && n.getStyles && n.getStyles() || "", l = n && n.getDesignerClass && n.getDesignerClass() || "", s = C();
|
|
650
|
-
function m() {
|
|
687
|
+
function I(t, e, n) {
|
|
688
|
+
var R;
|
|
689
|
+
const o = n && n.getStyles && n.getStyles() || "", r = n && n.getDesignerClass && n.getDesignerClass() || "", l = z();
|
|
690
|
+
function u() {
|
|
651
691
|
return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : n && n.checkCanMoveComponent ? n.checkCanMoveComponent() : !0;
|
|
652
692
|
}
|
|
653
|
-
function
|
|
693
|
+
function v() {
|
|
654
694
|
return !1;
|
|
655
695
|
}
|
|
656
|
-
function
|
|
696
|
+
function P() {
|
|
657
697
|
return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : n && n.checkCanDeleteComponent ? n.checkCanDeleteComponent() : !0;
|
|
658
698
|
}
|
|
659
|
-
function
|
|
699
|
+
function i() {
|
|
660
700
|
return (e == null ? void 0 : e.schema.componentType) === "frame" ? !0 : n && n.hideNestedPaddingInDesginerView ? n.hideNestedPaddingInDesginerView() : !1;
|
|
661
701
|
}
|
|
662
|
-
function
|
|
663
|
-
if (!
|
|
702
|
+
function f(a) {
|
|
703
|
+
if (!a || !a.value)
|
|
664
704
|
return null;
|
|
665
|
-
if (
|
|
666
|
-
return
|
|
667
|
-
const
|
|
668
|
-
return
|
|
705
|
+
if (a.value.schema && a.value.schema.type === "component")
|
|
706
|
+
return a.value;
|
|
707
|
+
const s = z(a == null ? void 0 : a.value.parent), g = f(s);
|
|
708
|
+
return g || null;
|
|
669
709
|
}
|
|
670
|
-
function
|
|
671
|
-
const { componentInstance:
|
|
672
|
-
return !
|
|
710
|
+
function c(a = e) {
|
|
711
|
+
const { componentInstance: s, designerItemElementRef: g } = a;
|
|
712
|
+
return !s || !s.value ? null : s.value.canMove ? g : c(a.parent);
|
|
673
713
|
}
|
|
674
|
-
function
|
|
675
|
-
return !!n && n.canAccepts(
|
|
714
|
+
function b(a) {
|
|
715
|
+
return !!n && n.canAccepts(a);
|
|
676
716
|
}
|
|
677
|
-
function
|
|
717
|
+
function C() {
|
|
678
718
|
return (e == null ? void 0 : e.schema.label) || (e == null ? void 0 : e.schema.title) || (e == null ? void 0 : e.schema.name);
|
|
679
719
|
}
|
|
680
|
-
function
|
|
681
|
-
}
|
|
682
|
-
function b(i, y) {
|
|
683
|
-
y && n != null && n.onAcceptMovedChildElement && n.onAcceptMovedChildElement(y);
|
|
720
|
+
function O() {
|
|
684
721
|
}
|
|
685
|
-
function
|
|
686
|
-
|
|
687
|
-
let j = T(f, i, y);
|
|
688
|
-
n && n.onResolveNewComponentSchema && (j = n.onResolveNewComponentSchema(i, j));
|
|
689
|
-
const z = f.toLowerCase().replace("-", "_");
|
|
690
|
-
return j && !j.id && j.type === f && (j.id = `${z}_${Math.random().toString().slice(2, 6)}`), j;
|
|
722
|
+
function w(a, s) {
|
|
723
|
+
s && n != null && n.onAcceptMovedChildElement && n.onAcceptMovedChildElement(s);
|
|
691
724
|
}
|
|
692
|
-
function
|
|
693
|
-
const
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
return M && !M.id && M.type === f && (M.id = `${R}_${Math.random().toString().slice(2, 6)}`), M;
|
|
725
|
+
function h(a, s) {
|
|
726
|
+
const { componentType: g } = a;
|
|
727
|
+
let y = X(g, a, s);
|
|
728
|
+
n && n.onResolveNewComponentSchema && (y = n.onResolveNewComponentSchema(a, y));
|
|
729
|
+
const T = g.toLowerCase().replace(/-/g, "_");
|
|
730
|
+
return y && !y.id && y.type === g && (y.id = `${T}_${Math.random().toString().slice(2, 6)}`), y;
|
|
699
731
|
}
|
|
700
|
-
function
|
|
732
|
+
function p(a) {
|
|
701
733
|
}
|
|
702
|
-
function
|
|
734
|
+
function m(...a) {
|
|
703
735
|
if (n && n.getPropsConfig)
|
|
704
|
-
return n.getPropsConfig(...
|
|
736
|
+
return n.getPropsConfig(...a);
|
|
737
|
+
}
|
|
738
|
+
function d() {
|
|
739
|
+
n && n.onRemoveComponent && n.onRemoveComponent(), e != null && e.schema.contents && e.schema.contents.map((a) => {
|
|
740
|
+
var y;
|
|
741
|
+
let s = a.id;
|
|
742
|
+
a.type === "component-ref" && (s = a.component);
|
|
743
|
+
const g = t.value.querySelector(`#${s}-design-item`);
|
|
744
|
+
(y = g == null ? void 0 : g.componentInstance) != null && y.value.onRemoveComponent && g.componentInstance.value.onRemoveComponent();
|
|
745
|
+
});
|
|
705
746
|
}
|
|
706
|
-
return
|
|
707
|
-
canMove:
|
|
708
|
-
canSelectParent:
|
|
709
|
-
canDelete:
|
|
710
|
-
canNested: !
|
|
747
|
+
return l.value = {
|
|
748
|
+
canMove: u(),
|
|
749
|
+
canSelectParent: v(),
|
|
750
|
+
canDelete: P(),
|
|
751
|
+
canNested: !i(),
|
|
711
752
|
contents: e == null ? void 0 : e.schema.contents,
|
|
712
753
|
elementRef: t,
|
|
713
|
-
parent: (
|
|
754
|
+
parent: (R = e == null ? void 0 : e.parent) == null ? void 0 : R.componentInstance,
|
|
714
755
|
schema: e == null ? void 0 : e.schema,
|
|
715
|
-
styles:
|
|
716
|
-
designerClass:
|
|
717
|
-
canAccepts:
|
|
718
|
-
getBelongedComponentInstance:
|
|
719
|
-
getDraggableDesignItemElement:
|
|
720
|
-
getDraggingDisplayText:
|
|
721
|
-
getPropConfig:
|
|
722
|
-
getDragScopeElement:
|
|
723
|
-
onAcceptMovedChildElement:
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
}, s;
|
|
756
|
+
styles: o,
|
|
757
|
+
designerClass: r,
|
|
758
|
+
canAccepts: b,
|
|
759
|
+
getBelongedComponentInstance: f,
|
|
760
|
+
getDraggableDesignItemElement: c,
|
|
761
|
+
getDraggingDisplayText: C,
|
|
762
|
+
getPropConfig: m,
|
|
763
|
+
getDragScopeElement: O,
|
|
764
|
+
onAcceptMovedChildElement: w,
|
|
765
|
+
onChildElementMovedOut: p,
|
|
766
|
+
addNewChildComponentSchema: h,
|
|
767
|
+
triggerBelongedComponentToMoveWhenMoved: !!n && n.triggerBelongedComponentToMoveWhenMoved || z(!1),
|
|
768
|
+
triggerBelongedComponentToDeleteWhenDeleted: !!n && n.triggerBelongedComponentToDeleteWhenDeleted || z(!1),
|
|
769
|
+
onRemoveComponent: d
|
|
770
|
+
}, l;
|
|
731
771
|
}
|
|
732
|
-
const
|
|
772
|
+
const qe = /* @__PURE__ */ E({
|
|
733
773
|
name: "FLayoutDesign",
|
|
734
|
-
props:
|
|
774
|
+
props: F,
|
|
735
775
|
emits: [],
|
|
736
776
|
setup(t, e) {
|
|
737
|
-
var
|
|
738
|
-
const n =
|
|
777
|
+
var f;
|
|
778
|
+
const n = z(), o = D("design-item-context"), r = Ve(o.schema, (f = o.parent) == null ? void 0 : f.schema), l = I(n, o, r);
|
|
739
779
|
l.value.canNested = !1;
|
|
740
|
-
const
|
|
741
|
-
horizontalResizeHandleStyle:
|
|
742
|
-
verticalResizeHandleStyle:
|
|
743
|
-
resizeOverlayStyle:
|
|
744
|
-
} =
|
|
745
|
-
return
|
|
746
|
-
useResizeHandleComposition:
|
|
747
|
-
}),
|
|
780
|
+
const u = Z(n), {
|
|
781
|
+
horizontalResizeHandleStyle: v,
|
|
782
|
+
verticalResizeHandleStyle: P,
|
|
783
|
+
resizeOverlayStyle: i
|
|
784
|
+
} = u;
|
|
785
|
+
return q("layout", {
|
|
786
|
+
useResizeHandleComposition: u
|
|
787
|
+
}), W(() => {
|
|
748
788
|
n.value.componentInstance = l;
|
|
749
|
-
}), e.expose(l.value), () =>
|
|
789
|
+
}), e.expose(l.value), () => S("div", {
|
|
750
790
|
class: "f-layout f-page-content",
|
|
751
791
|
ref: n
|
|
752
|
-
}, [e.slots.default && e.slots.default(),
|
|
792
|
+
}, [e.slots.default && e.slots.default(), S("div", {
|
|
753
793
|
class: "f-layout-resize-overlay",
|
|
754
|
-
style:
|
|
755
|
-
}, null),
|
|
794
|
+
style: i.value
|
|
795
|
+
}, null), S("div", {
|
|
756
796
|
class: "f-layout-horizontal-resize-proxy",
|
|
757
|
-
style:
|
|
758
|
-
}, null),
|
|
797
|
+
style: v.value
|
|
798
|
+
}, null), S("div", {
|
|
759
799
|
class: "f-layout-vertical-resize-proxy",
|
|
760
|
-
style:
|
|
800
|
+
style: P.value
|
|
761
801
|
}, null)]);
|
|
762
802
|
}
|
|
763
803
|
});
|
|
764
804
|
function We() {
|
|
765
|
-
function t(e) {
|
|
766
|
-
var
|
|
805
|
+
function t(e, n) {
|
|
806
|
+
var u;
|
|
767
807
|
if (!e)
|
|
768
808
|
return !1;
|
|
769
|
-
const
|
|
770
|
-
if (!
|
|
809
|
+
const o = ((u = e.targetContainer) == null ? void 0 : u.componentInstance) && e.targetContainer.componentInstance.value;
|
|
810
|
+
if (!o)
|
|
771
811
|
return !1;
|
|
772
|
-
const
|
|
773
|
-
|
|
774
|
-
const s = n.schema.type, m = (s === "response-form" || s === "content-container") && o && o.includes("farris-form");
|
|
775
|
-
if (n.schema.type !== "response-layout-item" && !m)
|
|
776
|
-
return !1;
|
|
777
|
-
}
|
|
778
|
-
return e.controlType !== "field-set";
|
|
812
|
+
const r = o.schema.type, l = n == null ? void 0 : n.formSchemaUtils.getComponentById(o.belongedComponentId);
|
|
813
|
+
return !((e.componentCategory === "input" || e.componentType === "form-group") && ![H["response-layout-item"].type, H["response-form"].type].includes(r) || (e.componentType === H.tabs.type || e.componentType === H.section.type) && ((l == null ? void 0 : l.componentType) !== "frame" || ![H["content-container"].type, H["splitter-pane"].type, H["response-layout-item"].type].includes(r)));
|
|
779
814
|
}
|
|
780
815
|
return {
|
|
781
816
|
basalDragulaRuleForContainer: t
|
|
782
817
|
};
|
|
783
818
|
}
|
|
784
|
-
function
|
|
785
|
-
|
|
819
|
+
function Ge(t, e) {
|
|
820
|
+
const n = t.schema;
|
|
821
|
+
function o(l) {
|
|
786
822
|
return !!We().basalDragulaRuleForContainer(l);
|
|
787
823
|
}
|
|
788
|
-
function o(l, s, m) {
|
|
789
|
-
return m;
|
|
790
|
-
}
|
|
791
824
|
function r() {
|
|
792
825
|
const l = ["f-layout-pane"];
|
|
793
|
-
return (
|
|
826
|
+
return (n.position === "left" || n.position === "right") && l.push("f-page-content-nav"), n.position === "center" && l.push("f-page-content-main"), l.join(" ");
|
|
794
827
|
}
|
|
795
|
-
return { canAccepts:
|
|
828
|
+
return { canAccepts: o, getDesignerClass: r };
|
|
796
829
|
}
|
|
797
|
-
const Ye = /* @__PURE__ */
|
|
830
|
+
const Ye = /* @__PURE__ */ E({
|
|
798
831
|
name: "FLayoutPaneDesign",
|
|
799
|
-
props:
|
|
832
|
+
props: N,
|
|
800
833
|
emits: [],
|
|
801
834
|
setup(t, e) {
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
835
|
+
const n = z(), o = z();
|
|
836
|
+
D("designer-host-service");
|
|
837
|
+
const r = D("design-item-context"), l = Ge(r), u = I(o, r, l);
|
|
838
|
+
u.value.canNested = !1, u.value.canMove = !1, u.value.canDelete = !1, W(() => {
|
|
839
|
+
o.value.componentInstance = u;
|
|
840
|
+
}), e.expose(u.value);
|
|
841
|
+
const v = z(Math.max(t.minHeight, t.height)), P = z(Math.max(t.minWidth, t.width)), i = z(t.minHeight), f = z(t.minWidth), c = z(t.position), b = D("layout"), {
|
|
842
|
+
useResizeHandleComposition: C
|
|
843
|
+
} = b, O = K(P, v, f, i, C), {
|
|
844
|
+
onClickHorizontalResizeBar: w,
|
|
845
|
+
onClickVerticalResizeBar: h
|
|
846
|
+
} = O, p = M(() => ({
|
|
813
847
|
"f-layout-resize-bar": !0,
|
|
814
848
|
"f-layout-resize-bar-e": c.value === "left",
|
|
815
849
|
"f-layout-resize-bar-n": c.value === "bottom",
|
|
816
850
|
"f-layout-resize-bar-s": c.value === "top",
|
|
817
851
|
"f-layout-resize-bar-w": c.value === "right"
|
|
818
852
|
}));
|
|
819
|
-
function
|
|
820
|
-
(
|
|
853
|
+
function m(a, s) {
|
|
854
|
+
(s === "left" || s === "right") && w(a, s, n.value), (s === "top" || s === "bottom") && h(a, s, n.value);
|
|
821
855
|
}
|
|
822
|
-
const
|
|
823
|
-
const
|
|
856
|
+
const d = M(() => {
|
|
857
|
+
const a = {
|
|
824
858
|
"f-layout-pane": !0,
|
|
825
859
|
"f-page-content-nav": c.value === "left" || c.value === "right",
|
|
826
860
|
"f-page-content-main": c.value === "center"
|
|
827
861
|
};
|
|
828
|
-
return t.customClass && String(t.customClass).split(" ").reduce((
|
|
829
|
-
}),
|
|
830
|
-
const
|
|
862
|
+
return t.customClass && String(t.customClass).split(" ").reduce((s, g) => (s[g] = !0, s), a), a;
|
|
863
|
+
}), R = M(() => {
|
|
864
|
+
const a = {
|
|
831
865
|
flex: "1"
|
|
832
866
|
};
|
|
833
|
-
return (
|
|
867
|
+
return (P.value && c.value === "left" || c.value === "right") && (a.width = `${P.value}px`), (v.value && c.value === "bottom" || c.value === "top") && (a.height = `${v.value}px`), a;
|
|
834
868
|
});
|
|
835
|
-
return () =>
|
|
869
|
+
return () => S("div", {
|
|
836
870
|
ref: n,
|
|
837
|
-
class:
|
|
838
|
-
style:
|
|
839
|
-
}, [
|
|
871
|
+
class: d.value,
|
|
872
|
+
style: R.value
|
|
873
|
+
}, [S("div", {
|
|
840
874
|
ref: o,
|
|
841
875
|
class: "drag-container",
|
|
842
876
|
"data-dragref": `${r.schema.id}-container`
|
|
843
|
-
}, [e.slots.default && e.slots.default()]),
|
|
844
|
-
class:
|
|
845
|
-
onMousedown: (
|
|
877
|
+
}, [e.slots.default && e.slots.default()]), S("span", {
|
|
878
|
+
class: p.value,
|
|
879
|
+
onMousedown: (a) => m(a, c.value)
|
|
846
880
|
}, null)]);
|
|
847
881
|
}
|
|
848
882
|
});
|
|
849
|
-
|
|
850
|
-
t.component(
|
|
883
|
+
j.install = (t) => {
|
|
884
|
+
t.component(j.name, j), t.component(A.name, A);
|
|
851
885
|
};
|
|
852
|
-
|
|
853
|
-
t.layout =
|
|
886
|
+
j.register = (t, e, n, o) => {
|
|
887
|
+
t.layout = j, e.layout = J, t["layout-pane"] = A, e["layout-pane"] = x;
|
|
854
888
|
};
|
|
855
|
-
|
|
856
|
-
t.layout =
|
|
889
|
+
j.registerDesigner = (t, e, n) => {
|
|
890
|
+
t.layout = qe, e.layout = J, t["layout-pane"] = Ye, e["layout-pane"] = x;
|
|
857
891
|
};
|
|
858
892
|
export {
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
893
|
+
j as FLayout,
|
|
894
|
+
A as FLayoutPane,
|
|
895
|
+
j as default,
|
|
896
|
+
F as layoutProps,
|
|
897
|
+
J as layoutPropsResolver
|
|
864
898
|
};
|