@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,492 +1,493 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { isPlainObject as
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
} || function(e, r) {
|
|
10
|
-
for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (e[o] = r[o]);
|
|
11
|
-
}, Y(n, t);
|
|
1
|
+
import { defineComponent as Q, ref as g, watch as ne, computed as T, createVNode as b, createTextVNode as X, inject as ie, onMounted as ae } from "vue";
|
|
2
|
+
import { isPlainObject as U, cloneDeep as oe } from "lodash-es";
|
|
3
|
+
var k = function(t, e) {
|
|
4
|
+
return k = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
5
|
+
r.__proto__ = n;
|
|
6
|
+
} || function(r, n) {
|
|
7
|
+
for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
8
|
+
}, k(t, e);
|
|
12
9
|
};
|
|
13
|
-
function
|
|
14
|
-
if (typeof
|
|
15
|
-
throw new TypeError("Class extends value " + String(
|
|
16
|
-
|
|
17
|
-
function
|
|
18
|
-
this.constructor =
|
|
10
|
+
function Z(t, e) {
|
|
11
|
+
if (typeof e != "function" && e !== null)
|
|
12
|
+
throw new TypeError("Class extends value " + String(e) + " is not a constructor or null");
|
|
13
|
+
k(t, e);
|
|
14
|
+
function r() {
|
|
15
|
+
this.constructor = t;
|
|
19
16
|
}
|
|
20
|
-
|
|
17
|
+
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
|
|
21
18
|
}
|
|
22
|
-
function
|
|
23
|
-
var
|
|
24
|
-
if (
|
|
25
|
-
if (
|
|
19
|
+
function z(t) {
|
|
20
|
+
var e = typeof Symbol == "function" && Symbol.iterator, r = e && t[e], n = 0;
|
|
21
|
+
if (r) return r.call(t);
|
|
22
|
+
if (t && typeof t.length == "number") return {
|
|
26
23
|
next: function() {
|
|
27
|
-
return
|
|
24
|
+
return t && n >= t.length && (t = void 0), { value: t && t[n++], done: !t };
|
|
28
25
|
}
|
|
29
26
|
};
|
|
30
|
-
throw new TypeError(
|
|
27
|
+
throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
31
28
|
}
|
|
32
|
-
function
|
|
33
|
-
var
|
|
34
|
-
if (!
|
|
35
|
-
var
|
|
29
|
+
function A(t, e) {
|
|
30
|
+
var r = typeof Symbol == "function" && t[Symbol.iterator];
|
|
31
|
+
if (!r) return t;
|
|
32
|
+
var n = r.call(t), i, a = [], c;
|
|
36
33
|
try {
|
|
37
|
-
for (; (
|
|
38
|
-
} catch (
|
|
39
|
-
|
|
34
|
+
for (; (e === void 0 || e-- > 0) && !(i = n.next()).done; ) a.push(i.value);
|
|
35
|
+
} catch (l) {
|
|
36
|
+
c = { error: l };
|
|
40
37
|
} finally {
|
|
41
38
|
try {
|
|
42
|
-
|
|
39
|
+
i && !i.done && (r = n.return) && r.call(n);
|
|
43
40
|
} finally {
|
|
44
|
-
if (
|
|
41
|
+
if (c) throw c.error;
|
|
45
42
|
}
|
|
46
43
|
}
|
|
47
|
-
return
|
|
44
|
+
return a;
|
|
48
45
|
}
|
|
49
|
-
function
|
|
50
|
-
if (
|
|
51
|
-
(
|
|
52
|
-
return
|
|
46
|
+
function M(t, e, r) {
|
|
47
|
+
if (r || arguments.length === 2) for (var n = 0, i = e.length, a; n < i; n++)
|
|
48
|
+
(a || !(n in e)) && (a || (a = Array.prototype.slice.call(e, 0, n)), a[n] = e[n]);
|
|
49
|
+
return t.concat(a || Array.prototype.slice.call(e));
|
|
53
50
|
}
|
|
54
|
-
function
|
|
55
|
-
return typeof
|
|
51
|
+
function E(t) {
|
|
52
|
+
return typeof t == "function";
|
|
56
53
|
}
|
|
57
|
-
function
|
|
58
|
-
var
|
|
59
|
-
Error.call(
|
|
60
|
-
},
|
|
61
|
-
return
|
|
54
|
+
function se(t) {
|
|
55
|
+
var e = function(n) {
|
|
56
|
+
Error.call(n), n.stack = new Error().stack;
|
|
57
|
+
}, r = t(e);
|
|
58
|
+
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
62
59
|
}
|
|
63
|
-
var
|
|
64
|
-
return function(
|
|
65
|
-
|
|
66
|
-
` +
|
|
67
|
-
return
|
|
60
|
+
var N = se(function(t) {
|
|
61
|
+
return function(r) {
|
|
62
|
+
t(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
63
|
+
` + r.map(function(n, i) {
|
|
64
|
+
return i + 1 + ") " + n.toString();
|
|
68
65
|
}).join(`
|
|
69
|
-
`) : "", this.name = "UnsubscriptionError", this.errors =
|
|
66
|
+
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
70
67
|
};
|
|
71
68
|
});
|
|
72
|
-
function
|
|
73
|
-
if (
|
|
74
|
-
var
|
|
75
|
-
0 <=
|
|
69
|
+
function H(t, e) {
|
|
70
|
+
if (t) {
|
|
71
|
+
var r = t.indexOf(e);
|
|
72
|
+
0 <= r && t.splice(r, 1);
|
|
76
73
|
}
|
|
77
74
|
}
|
|
78
|
-
var
|
|
79
|
-
function
|
|
80
|
-
this.initialTeardown =
|
|
75
|
+
var F = function() {
|
|
76
|
+
function t(e) {
|
|
77
|
+
this.initialTeardown = e, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
81
78
|
}
|
|
82
|
-
return
|
|
83
|
-
var
|
|
79
|
+
return t.prototype.unsubscribe = function() {
|
|
80
|
+
var e, r, n, i, a;
|
|
84
81
|
if (!this.closed) {
|
|
85
82
|
this.closed = !0;
|
|
86
|
-
var
|
|
87
|
-
if (
|
|
88
|
-
if (this._parentage = null, Array.isArray(
|
|
83
|
+
var c = this._parentage;
|
|
84
|
+
if (c)
|
|
85
|
+
if (this._parentage = null, Array.isArray(c))
|
|
89
86
|
try {
|
|
90
|
-
for (var
|
|
91
|
-
var
|
|
92
|
-
|
|
87
|
+
for (var l = z(c), v = l.next(); !v.done; v = l.next()) {
|
|
88
|
+
var u = v.value;
|
|
89
|
+
u.remove(this);
|
|
93
90
|
}
|
|
94
|
-
} catch (
|
|
95
|
-
|
|
91
|
+
} catch (y) {
|
|
92
|
+
e = { error: y };
|
|
96
93
|
} finally {
|
|
97
94
|
try {
|
|
98
|
-
|
|
95
|
+
v && !v.done && (r = l.return) && r.call(l);
|
|
99
96
|
} finally {
|
|
100
|
-
if (
|
|
97
|
+
if (e) throw e.error;
|
|
101
98
|
}
|
|
102
99
|
}
|
|
103
100
|
else
|
|
104
|
-
|
|
105
|
-
var
|
|
106
|
-
if (
|
|
101
|
+
c.remove(this);
|
|
102
|
+
var o = this.initialTeardown;
|
|
103
|
+
if (E(o))
|
|
107
104
|
try {
|
|
108
|
-
|
|
109
|
-
} catch (
|
|
110
|
-
|
|
105
|
+
o();
|
|
106
|
+
} catch (y) {
|
|
107
|
+
a = y instanceof N ? y.errors : [y];
|
|
111
108
|
}
|
|
112
|
-
var
|
|
113
|
-
if (
|
|
109
|
+
var s = this._finalizers;
|
|
110
|
+
if (s) {
|
|
114
111
|
this._finalizers = null;
|
|
115
112
|
try {
|
|
116
|
-
for (var
|
|
117
|
-
var
|
|
113
|
+
for (var p = z(s), f = p.next(); !f.done; f = p.next()) {
|
|
114
|
+
var d = f.value;
|
|
118
115
|
try {
|
|
119
|
-
|
|
120
|
-
} catch (
|
|
121
|
-
|
|
116
|
+
W(d);
|
|
117
|
+
} catch (y) {
|
|
118
|
+
a = a ?? [], y instanceof N ? a = M(M([], A(a)), A(y.errors)) : a.push(y);
|
|
122
119
|
}
|
|
123
120
|
}
|
|
124
|
-
} catch (
|
|
125
|
-
|
|
121
|
+
} catch (y) {
|
|
122
|
+
n = { error: y };
|
|
126
123
|
} finally {
|
|
127
124
|
try {
|
|
128
|
-
|
|
125
|
+
f && !f.done && (i = p.return) && i.call(p);
|
|
129
126
|
} finally {
|
|
130
|
-
if (
|
|
127
|
+
if (n) throw n.error;
|
|
131
128
|
}
|
|
132
129
|
}
|
|
133
130
|
}
|
|
134
|
-
if (
|
|
135
|
-
throw new
|
|
131
|
+
if (a)
|
|
132
|
+
throw new N(a);
|
|
136
133
|
}
|
|
137
|
-
},
|
|
138
|
-
var
|
|
139
|
-
if (
|
|
134
|
+
}, t.prototype.add = function(e) {
|
|
135
|
+
var r;
|
|
136
|
+
if (e && e !== this)
|
|
140
137
|
if (this.closed)
|
|
141
|
-
|
|
138
|
+
W(e);
|
|
142
139
|
else {
|
|
143
|
-
if (
|
|
144
|
-
if (
|
|
140
|
+
if (e instanceof t) {
|
|
141
|
+
if (e.closed || e._hasParent(this))
|
|
145
142
|
return;
|
|
146
|
-
|
|
143
|
+
e._addParent(this);
|
|
147
144
|
}
|
|
148
|
-
(this._finalizers = (
|
|
145
|
+
(this._finalizers = (r = this._finalizers) !== null && r !== void 0 ? r : []).push(e);
|
|
149
146
|
}
|
|
150
|
-
},
|
|
151
|
-
var
|
|
152
|
-
return
|
|
153
|
-
},
|
|
154
|
-
var
|
|
155
|
-
this._parentage = Array.isArray(
|
|
156
|
-
},
|
|
157
|
-
var
|
|
158
|
-
|
|
159
|
-
},
|
|
160
|
-
var
|
|
161
|
-
|
|
162
|
-
},
|
|
163
|
-
var
|
|
164
|
-
return
|
|
165
|
-
}(),
|
|
147
|
+
}, t.prototype._hasParent = function(e) {
|
|
148
|
+
var r = this._parentage;
|
|
149
|
+
return r === e || Array.isArray(r) && r.includes(e);
|
|
150
|
+
}, t.prototype._addParent = function(e) {
|
|
151
|
+
var r = this._parentage;
|
|
152
|
+
this._parentage = Array.isArray(r) ? (r.push(e), r) : r ? [r, e] : e;
|
|
153
|
+
}, t.prototype._removeParent = function(e) {
|
|
154
|
+
var r = this._parentage;
|
|
155
|
+
r === e ? this._parentage = null : Array.isArray(r) && H(r, e);
|
|
156
|
+
}, t.prototype.remove = function(e) {
|
|
157
|
+
var r = this._finalizers;
|
|
158
|
+
r && H(r, e), e instanceof t && e._removeParent(this);
|
|
159
|
+
}, t.EMPTY = function() {
|
|
160
|
+
var e = new t();
|
|
161
|
+
return e.closed = !0, e;
|
|
162
|
+
}(), t;
|
|
166
163
|
}();
|
|
167
|
-
|
|
168
|
-
function
|
|
169
|
-
return
|
|
164
|
+
F.EMPTY;
|
|
165
|
+
function x(t) {
|
|
166
|
+
return t instanceof F || t && "closed" in t && E(t.remove) && E(t.add) && E(t.unsubscribe);
|
|
170
167
|
}
|
|
171
|
-
function
|
|
172
|
-
|
|
168
|
+
function W(t) {
|
|
169
|
+
E(t) ? t() : t.unsubscribe();
|
|
173
170
|
}
|
|
174
|
-
var
|
|
171
|
+
var K = {
|
|
175
172
|
onUnhandledError: null,
|
|
176
173
|
onStoppedNotification: null,
|
|
177
174
|
Promise: void 0,
|
|
178
175
|
useDeprecatedSynchronousErrorHandling: !1,
|
|
179
176
|
useDeprecatedNextContext: !1
|
|
180
|
-
},
|
|
181
|
-
setTimeout: function(
|
|
182
|
-
for (var
|
|
183
|
-
|
|
184
|
-
return setTimeout.apply(void 0,
|
|
177
|
+
}, ce = {
|
|
178
|
+
setTimeout: function(t, e) {
|
|
179
|
+
for (var r = [], n = 2; n < arguments.length; n++)
|
|
180
|
+
r[n - 2] = arguments[n];
|
|
181
|
+
return setTimeout.apply(void 0, M([t, e], A(r)));
|
|
185
182
|
},
|
|
186
|
-
clearTimeout: function(
|
|
187
|
-
return clearTimeout(
|
|
183
|
+
clearTimeout: function(t) {
|
|
184
|
+
return clearTimeout(t);
|
|
188
185
|
},
|
|
189
186
|
delegate: void 0
|
|
190
187
|
};
|
|
191
|
-
function
|
|
192
|
-
|
|
193
|
-
throw
|
|
188
|
+
function ue(t) {
|
|
189
|
+
ce.setTimeout(function() {
|
|
190
|
+
throw t;
|
|
194
191
|
});
|
|
195
192
|
}
|
|
196
|
-
function
|
|
193
|
+
function Y() {
|
|
197
194
|
}
|
|
198
|
-
function
|
|
199
|
-
|
|
195
|
+
function le(t) {
|
|
196
|
+
t();
|
|
200
197
|
}
|
|
201
|
-
var
|
|
202
|
-
|
|
203
|
-
function
|
|
204
|
-
var
|
|
205
|
-
return
|
|
198
|
+
var C = function(t) {
|
|
199
|
+
Z(e, t);
|
|
200
|
+
function e(r) {
|
|
201
|
+
var n = t.call(this) || this;
|
|
202
|
+
return n.isStopped = !1, r ? (n.destination = r, x(r) && r.add(n)) : n.destination = de, n;
|
|
206
203
|
}
|
|
207
|
-
return
|
|
208
|
-
return new
|
|
209
|
-
},
|
|
210
|
-
this.isStopped || this._next(
|
|
211
|
-
},
|
|
212
|
-
this.isStopped || (this.isStopped = !0, this._error(
|
|
213
|
-
},
|
|
204
|
+
return e.create = function(r, n, i) {
|
|
205
|
+
return new R(r, n, i);
|
|
206
|
+
}, e.prototype.next = function(r) {
|
|
207
|
+
this.isStopped || this._next(r);
|
|
208
|
+
}, e.prototype.error = function(r) {
|
|
209
|
+
this.isStopped || (this.isStopped = !0, this._error(r));
|
|
210
|
+
}, e.prototype.complete = function() {
|
|
214
211
|
this.isStopped || (this.isStopped = !0, this._complete());
|
|
215
|
-
},
|
|
216
|
-
this.closed || (this.isStopped = !0,
|
|
217
|
-
},
|
|
218
|
-
this.destination.next(
|
|
219
|
-
},
|
|
212
|
+
}, e.prototype.unsubscribe = function() {
|
|
213
|
+
this.closed || (this.isStopped = !0, t.prototype.unsubscribe.call(this), this.destination = null);
|
|
214
|
+
}, e.prototype._next = function(r) {
|
|
215
|
+
this.destination.next(r);
|
|
216
|
+
}, e.prototype._error = function(r) {
|
|
220
217
|
try {
|
|
221
|
-
this.destination.error(
|
|
218
|
+
this.destination.error(r);
|
|
222
219
|
} finally {
|
|
223
220
|
this.unsubscribe();
|
|
224
221
|
}
|
|
225
|
-
},
|
|
222
|
+
}, e.prototype._complete = function() {
|
|
226
223
|
try {
|
|
227
224
|
this.destination.complete();
|
|
228
225
|
} finally {
|
|
229
226
|
this.unsubscribe();
|
|
230
227
|
}
|
|
231
|
-
},
|
|
232
|
-
}(
|
|
233
|
-
function
|
|
234
|
-
return
|
|
228
|
+
}, e;
|
|
229
|
+
}(F), fe = Function.prototype.bind;
|
|
230
|
+
function O(t, e) {
|
|
231
|
+
return fe.call(t, e);
|
|
235
232
|
}
|
|
236
|
-
var
|
|
237
|
-
function
|
|
238
|
-
this.partialObserver =
|
|
233
|
+
var pe = function() {
|
|
234
|
+
function t(e) {
|
|
235
|
+
this.partialObserver = e;
|
|
239
236
|
}
|
|
240
|
-
return
|
|
241
|
-
var
|
|
242
|
-
if (
|
|
237
|
+
return t.prototype.next = function(e) {
|
|
238
|
+
var r = this.partialObserver;
|
|
239
|
+
if (r.next)
|
|
243
240
|
try {
|
|
244
|
-
|
|
245
|
-
} catch (
|
|
246
|
-
|
|
241
|
+
r.next(e);
|
|
242
|
+
} catch (n) {
|
|
243
|
+
D(n);
|
|
247
244
|
}
|
|
248
|
-
},
|
|
249
|
-
var
|
|
250
|
-
if (
|
|
245
|
+
}, t.prototype.error = function(e) {
|
|
246
|
+
var r = this.partialObserver;
|
|
247
|
+
if (r.error)
|
|
251
248
|
try {
|
|
252
|
-
|
|
253
|
-
} catch (
|
|
254
|
-
|
|
249
|
+
r.error(e);
|
|
250
|
+
} catch (n) {
|
|
251
|
+
D(n);
|
|
255
252
|
}
|
|
256
253
|
else
|
|
257
|
-
|
|
258
|
-
},
|
|
259
|
-
var
|
|
260
|
-
if (
|
|
254
|
+
D(e);
|
|
255
|
+
}, t.prototype.complete = function() {
|
|
256
|
+
var e = this.partialObserver;
|
|
257
|
+
if (e.complete)
|
|
261
258
|
try {
|
|
262
|
-
|
|
263
|
-
} catch (
|
|
264
|
-
|
|
259
|
+
e.complete();
|
|
260
|
+
} catch (r) {
|
|
261
|
+
D(r);
|
|
265
262
|
}
|
|
266
|
-
},
|
|
267
|
-
}(),
|
|
268
|
-
|
|
269
|
-
function
|
|
270
|
-
var
|
|
271
|
-
if (
|
|
272
|
-
|
|
273
|
-
next:
|
|
274
|
-
error:
|
|
275
|
-
complete:
|
|
263
|
+
}, t;
|
|
264
|
+
}(), R = function(t) {
|
|
265
|
+
Z(e, t);
|
|
266
|
+
function e(r, n, i) {
|
|
267
|
+
var a = t.call(this) || this, c;
|
|
268
|
+
if (E(r) || !r)
|
|
269
|
+
c = {
|
|
270
|
+
next: r ?? void 0,
|
|
271
|
+
error: n ?? void 0,
|
|
272
|
+
complete: i ?? void 0
|
|
276
273
|
};
|
|
277
274
|
else {
|
|
278
|
-
var
|
|
279
|
-
|
|
280
|
-
return
|
|
281
|
-
},
|
|
282
|
-
next:
|
|
283
|
-
error:
|
|
284
|
-
complete:
|
|
285
|
-
}) :
|
|
275
|
+
var l;
|
|
276
|
+
a && K.useDeprecatedNextContext ? (l = Object.create(r), l.unsubscribe = function() {
|
|
277
|
+
return a.unsubscribe();
|
|
278
|
+
}, c = {
|
|
279
|
+
next: r.next && O(r.next, l),
|
|
280
|
+
error: r.error && O(r.error, l),
|
|
281
|
+
complete: r.complete && O(r.complete, l)
|
|
282
|
+
}) : c = r;
|
|
286
283
|
}
|
|
287
|
-
return
|
|
284
|
+
return a.destination = new pe(c), a;
|
|
288
285
|
}
|
|
289
|
-
return
|
|
290
|
-
}(
|
|
291
|
-
function
|
|
292
|
-
|
|
286
|
+
return e;
|
|
287
|
+
}(C);
|
|
288
|
+
function D(t) {
|
|
289
|
+
ue(t);
|
|
293
290
|
}
|
|
294
|
-
function
|
|
295
|
-
throw
|
|
291
|
+
function ve(t) {
|
|
292
|
+
throw t;
|
|
296
293
|
}
|
|
297
|
-
var
|
|
294
|
+
var de = {
|
|
298
295
|
closed: !0,
|
|
299
|
-
next:
|
|
300
|
-
error:
|
|
301
|
-
complete:
|
|
302
|
-
},
|
|
296
|
+
next: Y,
|
|
297
|
+
error: ve,
|
|
298
|
+
complete: Y
|
|
299
|
+
}, he = function() {
|
|
303
300
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
304
301
|
}();
|
|
305
|
-
function
|
|
306
|
-
return
|
|
302
|
+
function ye(t) {
|
|
303
|
+
return t;
|
|
307
304
|
}
|
|
308
|
-
function
|
|
309
|
-
return
|
|
310
|
-
return
|
|
311
|
-
return
|
|
312
|
-
},
|
|
305
|
+
function be(t) {
|
|
306
|
+
return t.length === 0 ? ye : t.length === 1 ? t[0] : function(r) {
|
|
307
|
+
return t.reduce(function(n, i) {
|
|
308
|
+
return i(n);
|
|
309
|
+
}, r);
|
|
313
310
|
};
|
|
314
311
|
}
|
|
315
|
-
var
|
|
316
|
-
function
|
|
317
|
-
|
|
318
|
-
}
|
|
319
|
-
return
|
|
320
|
-
var
|
|
321
|
-
return
|
|
322
|
-
},
|
|
323
|
-
var
|
|
324
|
-
return
|
|
325
|
-
var
|
|
326
|
-
|
|
327
|
-
}),
|
|
328
|
-
},
|
|
312
|
+
var me = function() {
|
|
313
|
+
function t(e) {
|
|
314
|
+
e && (this._subscribe = e);
|
|
315
|
+
}
|
|
316
|
+
return t.prototype.lift = function(e) {
|
|
317
|
+
var r = new t();
|
|
318
|
+
return r.source = this, r.operator = e, r;
|
|
319
|
+
}, t.prototype.subscribe = function(e, r, n) {
|
|
320
|
+
var i = this, a = Se(e) ? e : new R(e, r, n);
|
|
321
|
+
return le(function() {
|
|
322
|
+
var c = i, l = c.operator, v = c.source;
|
|
323
|
+
a.add(l ? l.call(a, v) : v ? i._subscribe(a) : i._trySubscribe(a));
|
|
324
|
+
}), a;
|
|
325
|
+
}, t.prototype._trySubscribe = function(e) {
|
|
329
326
|
try {
|
|
330
|
-
return this._subscribe(
|
|
331
|
-
} catch (
|
|
332
|
-
|
|
327
|
+
return this._subscribe(e);
|
|
328
|
+
} catch (r) {
|
|
329
|
+
e.error(r);
|
|
333
330
|
}
|
|
334
|
-
},
|
|
335
|
-
var
|
|
336
|
-
return
|
|
337
|
-
var
|
|
338
|
-
next: function(
|
|
331
|
+
}, t.prototype.forEach = function(e, r) {
|
|
332
|
+
var n = this;
|
|
333
|
+
return r = G(r), new r(function(i, a) {
|
|
334
|
+
var c = new R({
|
|
335
|
+
next: function(l) {
|
|
339
336
|
try {
|
|
340
|
-
|
|
341
|
-
} catch (
|
|
342
|
-
|
|
337
|
+
e(l);
|
|
338
|
+
} catch (v) {
|
|
339
|
+
a(v), c.unsubscribe();
|
|
343
340
|
}
|
|
344
341
|
},
|
|
345
|
-
error:
|
|
346
|
-
complete:
|
|
342
|
+
error: a,
|
|
343
|
+
complete: i
|
|
347
344
|
});
|
|
348
|
-
|
|
345
|
+
n.subscribe(c);
|
|
349
346
|
});
|
|
350
|
-
},
|
|
351
|
-
var
|
|
352
|
-
return (
|
|
353
|
-
},
|
|
347
|
+
}, t.prototype._subscribe = function(e) {
|
|
348
|
+
var r;
|
|
349
|
+
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(e);
|
|
350
|
+
}, t.prototype[he] = function() {
|
|
354
351
|
return this;
|
|
355
|
-
},
|
|
356
|
-
for (var
|
|
357
|
-
|
|
358
|
-
return
|
|
359
|
-
},
|
|
360
|
-
var
|
|
361
|
-
return
|
|
362
|
-
var
|
|
363
|
-
|
|
364
|
-
return
|
|
365
|
-
}, function(
|
|
366
|
-
return
|
|
352
|
+
}, t.prototype.pipe = function() {
|
|
353
|
+
for (var e = [], r = 0; r < arguments.length; r++)
|
|
354
|
+
e[r] = arguments[r];
|
|
355
|
+
return be(e)(this);
|
|
356
|
+
}, t.prototype.toPromise = function(e) {
|
|
357
|
+
var r = this;
|
|
358
|
+
return e = G(e), new e(function(n, i) {
|
|
359
|
+
var a;
|
|
360
|
+
r.subscribe(function(c) {
|
|
361
|
+
return a = c;
|
|
362
|
+
}, function(c) {
|
|
363
|
+
return i(c);
|
|
367
364
|
}, function() {
|
|
368
|
-
return
|
|
365
|
+
return n(a);
|
|
369
366
|
});
|
|
370
367
|
});
|
|
371
|
-
},
|
|
372
|
-
return new
|
|
373
|
-
},
|
|
368
|
+
}, t.create = function(e) {
|
|
369
|
+
return new t(e);
|
|
370
|
+
}, t;
|
|
374
371
|
}();
|
|
375
|
-
function
|
|
376
|
-
var
|
|
377
|
-
return (
|
|
372
|
+
function G(t) {
|
|
373
|
+
var e;
|
|
374
|
+
return (e = t ?? K.Promise) !== null && e !== void 0 ? e : Promise;
|
|
378
375
|
}
|
|
379
|
-
function
|
|
380
|
-
return
|
|
376
|
+
function ge(t) {
|
|
377
|
+
return t && E(t.next) && E(t.error) && E(t.complete);
|
|
381
378
|
}
|
|
382
|
-
function
|
|
383
|
-
return
|
|
379
|
+
function Se(t) {
|
|
380
|
+
return t && t instanceof C || ge(t) && x(t);
|
|
384
381
|
}
|
|
385
|
-
const
|
|
386
|
-
function
|
|
387
|
-
const { properties:
|
|
388
|
-
|
|
382
|
+
const I = {}, ee = {};
|
|
383
|
+
function $(t) {
|
|
384
|
+
const { properties: e, title: r, ignore: n } = t, i = n && Array.isArray(n), a = Object.keys(e).reduce((c, l) => ((!i || !n.find((v) => v === l)) && (c[l] = e[l].type === "object" && e[l].properties ? $(e[l]) : oe(e[l].default)), c), {});
|
|
385
|
+
if (r && (!i || !n.find((c) => c === "id"))) {
|
|
386
|
+
const c = r.toLowerCase().replace(/-/g, "_");
|
|
387
|
+
a.id = `${c}_${Math.random().toString().slice(2, 6)}`;
|
|
388
|
+
}
|
|
389
|
+
return a;
|
|
389
390
|
}
|
|
390
|
-
function
|
|
391
|
-
const
|
|
392
|
-
if (
|
|
393
|
-
let
|
|
394
|
-
const
|
|
395
|
-
return
|
|
391
|
+
function te(t, e = {}, r) {
|
|
392
|
+
const n = I[t];
|
|
393
|
+
if (n) {
|
|
394
|
+
let i = $(n);
|
|
395
|
+
const a = ee[t];
|
|
396
|
+
return i = a ? a({ getSchemaByType: te }, i, e, r) : i, i;
|
|
396
397
|
}
|
|
397
398
|
return null;
|
|
398
399
|
}
|
|
399
|
-
function
|
|
400
|
-
const
|
|
401
|
-
return Object.keys(
|
|
400
|
+
function Ee(t, e) {
|
|
401
|
+
const r = $(e);
|
|
402
|
+
return Object.keys(r).reduce((n, i) => (n[i] && U(n[i]) && U(t[i] || !t[i]) ? Object.assign(n[i], t[i] || {}) : n[i] = t[i], n), r), r;
|
|
402
403
|
}
|
|
403
|
-
function
|
|
404
|
-
return Object.keys(
|
|
405
|
-
if (
|
|
406
|
-
const
|
|
407
|
-
if (typeof
|
|
408
|
-
|
|
404
|
+
function Pe(t, e) {
|
|
405
|
+
return Object.keys(t).filter((n) => t[n] != null).reduce((n, i) => {
|
|
406
|
+
if (e.has(i)) {
|
|
407
|
+
const a = e.get(i);
|
|
408
|
+
if (typeof a == "string")
|
|
409
|
+
n[a] = t[i];
|
|
409
410
|
else {
|
|
410
|
-
const
|
|
411
|
-
Object.assign(
|
|
411
|
+
const c = a(i, t[i], t);
|
|
412
|
+
Object.assign(n, c);
|
|
412
413
|
}
|
|
413
414
|
} else
|
|
414
|
-
|
|
415
|
-
return
|
|
415
|
+
n[i] = t[i];
|
|
416
|
+
return n;
|
|
416
417
|
}, {});
|
|
417
418
|
}
|
|
418
|
-
function
|
|
419
|
-
const
|
|
420
|
-
return
|
|
421
|
-
}
|
|
422
|
-
function
|
|
423
|
-
function
|
|
424
|
-
if (typeof
|
|
425
|
-
return
|
|
426
|
-
if (typeof
|
|
427
|
-
const
|
|
428
|
-
if (
|
|
429
|
-
return Number(
|
|
430
|
-
if (
|
|
431
|
-
return Number(
|
|
432
|
-
if (
|
|
433
|
-
return Number(
|
|
419
|
+
function Te(t, e, r = /* @__PURE__ */ new Map()) {
|
|
420
|
+
const n = Ee(t, e);
|
|
421
|
+
return Pe(n, r);
|
|
422
|
+
}
|
|
423
|
+
function _e(t = {}) {
|
|
424
|
+
function e(u, o, s, p) {
|
|
425
|
+
if (typeof s == "number")
|
|
426
|
+
return p[u].length === s;
|
|
427
|
+
if (typeof s == "object") {
|
|
428
|
+
const f = Object.keys(s)[0], d = s[f];
|
|
429
|
+
if (f === "not")
|
|
430
|
+
return Number(p[u].length) !== Number(d);
|
|
431
|
+
if (f === "moreThan")
|
|
432
|
+
return Number(p[u].length) >= Number(d);
|
|
433
|
+
if (f === "lessThan")
|
|
434
|
+
return Number(p[u].length) <= Number(d);
|
|
434
435
|
}
|
|
435
436
|
return !1;
|
|
436
437
|
}
|
|
437
|
-
function
|
|
438
|
-
return
|
|
438
|
+
function r(u, o, s, p) {
|
|
439
|
+
return p[u] && p[u].propertyValue && String(p[u].propertyValue.value) === String(s);
|
|
439
440
|
}
|
|
440
|
-
const
|
|
441
|
-
["length",
|
|
442
|
-
["getProperty",
|
|
441
|
+
const n = /* @__PURE__ */ new Map([
|
|
442
|
+
["length", e],
|
|
443
|
+
["getProperty", r]
|
|
443
444
|
]);
|
|
444
|
-
Object.keys(
|
|
445
|
-
function
|
|
446
|
-
const
|
|
447
|
-
return typeof
|
|
448
|
-
if (
|
|
449
|
-
return { target:
|
|
450
|
-
const
|
|
451
|
-
return { target:
|
|
445
|
+
Object.keys(t).reduce((u, o) => (u.set(o, t[o]), u), n);
|
|
446
|
+
function i(u, o) {
|
|
447
|
+
const s = u;
|
|
448
|
+
return typeof o == "number" ? [{ target: s, operator: "length", param: null, value: Number(o) }] : typeof o == "boolean" ? [{ target: s, operator: "getProperty", param: u, value: !!o }] : typeof o == "object" ? Object.keys(o).map((p) => {
|
|
449
|
+
if (p === "length")
|
|
450
|
+
return { target: s, operator: "length", param: null, value: o[p] };
|
|
451
|
+
const f = p, d = o[p];
|
|
452
|
+
return { target: s, operator: "getProperty", param: f, value: d };
|
|
452
453
|
}) : [];
|
|
453
454
|
}
|
|
454
|
-
function
|
|
455
|
-
return Object.keys(
|
|
456
|
-
const
|
|
457
|
-
return
|
|
455
|
+
function a(u) {
|
|
456
|
+
return Object.keys(u).reduce((s, p) => {
|
|
457
|
+
const f = i(p, u[p]);
|
|
458
|
+
return s.push(...f), s;
|
|
458
459
|
}, []);
|
|
459
460
|
}
|
|
460
|
-
function
|
|
461
|
-
if (
|
|
462
|
-
const
|
|
463
|
-
return
|
|
461
|
+
function c(u, o) {
|
|
462
|
+
if (n.has(u.operator)) {
|
|
463
|
+
const s = n.get(u.operator);
|
|
464
|
+
return s && s(u.target, u.param, u.value, o) || !1;
|
|
464
465
|
}
|
|
465
466
|
return !1;
|
|
466
467
|
}
|
|
467
|
-
function
|
|
468
|
-
return
|
|
468
|
+
function l(u, o) {
|
|
469
|
+
return a(u).reduce((f, d) => f && c(d, o), !0);
|
|
469
470
|
}
|
|
470
|
-
function
|
|
471
|
-
const
|
|
472
|
-
return
|
|
471
|
+
function v(u, o) {
|
|
472
|
+
const s = Object.keys(u), p = s.includes("allOf"), f = s.includes("anyOf"), d = p || f, _ = (d ? u[d ? p ? "allOf" : "anyOf" : "allOf"] : [u]).map((w) => l(w, o));
|
|
473
|
+
return p ? !_.includes(!1) : _.includes(!0);
|
|
473
474
|
}
|
|
474
|
-
return { parseValueSchema:
|
|
475
|
+
return { parseValueSchema: v };
|
|
475
476
|
}
|
|
476
|
-
const
|
|
477
|
-
|
|
478
|
-
function
|
|
479
|
-
return
|
|
480
|
-
const
|
|
481
|
-
return Object.assign(
|
|
477
|
+
const De = {}, we = {};
|
|
478
|
+
_e();
|
|
479
|
+
function Ne(t, e, r = /* @__PURE__ */ new Map(), n = (c, l, v, u) => l, i = {}, a = (c) => c) {
|
|
480
|
+
return I[e.title] = e, ee[e.title] = n, De[e.title] = i, we[e.title] = a, (c = {}) => {
|
|
481
|
+
const l = Te(c, e, r), v = Object.keys(t).reduce((u, o) => (u[o] = t[o].default, u), {});
|
|
482
|
+
return Object.assign(v, l);
|
|
482
483
|
};
|
|
483
484
|
}
|
|
484
|
-
function
|
|
485
|
-
return { customClass:
|
|
485
|
+
function Oe(t, e) {
|
|
486
|
+
return { customClass: e.class, customStyle: e.style };
|
|
486
487
|
}
|
|
487
|
-
const
|
|
488
|
-
["appearance",
|
|
489
|
-
]),
|
|
488
|
+
const je = /* @__PURE__ */ new Map([
|
|
489
|
+
["appearance", Oe]
|
|
490
|
+
]), ke = "https://json-schema.org/draft/2020-12/schema", Ae = "https://farris-design.gitee.io/nav.schema.json", Me = "nav", Re = "A Farris Component", Fe = "object", $e = {
|
|
490
491
|
id: {
|
|
491
492
|
description: "The unique identifier for a nav",
|
|
492
493
|
type: "string"
|
|
@@ -578,22 +579,22 @@ const Ze = /* @__PURE__ */ new Map([
|
|
|
578
579
|
type: "sting",
|
|
579
580
|
default: ""
|
|
580
581
|
}
|
|
581
|
-
},
|
|
582
|
+
}, Be = [
|
|
582
583
|
"id",
|
|
583
584
|
"type"
|
|
584
|
-
],
|
|
585
|
-
$schema:
|
|
586
|
-
$id:
|
|
587
|
-
title:
|
|
588
|
-
description:
|
|
589
|
-
type:
|
|
590
|
-
properties:
|
|
591
|
-
required:
|
|
585
|
+
], Le = {
|
|
586
|
+
$schema: ke,
|
|
587
|
+
$id: Ae,
|
|
588
|
+
title: Me,
|
|
589
|
+
description: Re,
|
|
590
|
+
type: Fe,
|
|
591
|
+
properties: $e,
|
|
592
|
+
required: Be
|
|
592
593
|
};
|
|
593
|
-
function
|
|
594
|
-
return
|
|
594
|
+
function Ve(t, e, r) {
|
|
595
|
+
return e;
|
|
595
596
|
}
|
|
596
|
-
const
|
|
597
|
+
const qe = "nav", Ue = "A Farris Component", ze = "object", He = {
|
|
597
598
|
basic: {
|
|
598
599
|
description: "Basic Infomation",
|
|
599
600
|
title: "基本信息",
|
|
@@ -664,7 +665,7 @@ const it = "nav", ct = "A Farris Component", lt = "object", pt = {
|
|
|
664
665
|
},
|
|
665
666
|
{
|
|
666
667
|
value: "center",
|
|
667
|
-
name: "
|
|
668
|
+
name: "居中"
|
|
668
669
|
},
|
|
669
670
|
{
|
|
670
671
|
value: "right",
|
|
@@ -675,12 +676,12 @@ const it = "nav", ct = "A Farris Component", lt = "object", pt = {
|
|
|
675
676
|
}
|
|
676
677
|
}
|
|
677
678
|
}
|
|
678
|
-
},
|
|
679
|
-
title:
|
|
680
|
-
description:
|
|
681
|
-
type:
|
|
682
|
-
categories:
|
|
683
|
-
},
|
|
679
|
+
}, We = {
|
|
680
|
+
title: qe,
|
|
681
|
+
description: Ue,
|
|
682
|
+
type: ze,
|
|
683
|
+
categories: He
|
|
684
|
+
}, B = {
|
|
684
685
|
/** 未读最大值 */
|
|
685
686
|
maxNum: { Type: Number, default: 99 },
|
|
686
687
|
/** 导航数据 */
|
|
@@ -713,1195 +714,244 @@ const it = "nav", ct = "A Farris Component", lt = "object", pt = {
|
|
|
713
714
|
/** 当前激活的id */
|
|
714
715
|
activeNavId: { Type: String, default: "1" },
|
|
715
716
|
/** nav切换前事件 */
|
|
716
|
-
navPicking: { Type: Function, default: (
|
|
717
|
-
},
|
|
717
|
+
navPicking: { Type: Function, default: (t) => me }
|
|
718
|
+
}, J = Ne(B, Le, je, Ve, We), j = /* @__PURE__ */ Q({
|
|
718
719
|
name: "FNav",
|
|
719
|
-
props:
|
|
720
|
+
props: B,
|
|
720
721
|
emits: ["nav", "update:activeNavId"],
|
|
721
|
-
setup(
|
|
722
|
-
const
|
|
723
|
-
|
|
724
|
-
|
|
722
|
+
setup(t, e) {
|
|
723
|
+
const r = g(t.activeNavId), n = g(t.navData), i = g(t.horizontal);
|
|
724
|
+
g(t.navPicking), ne(() => t.activeNavId, (o, s) => {
|
|
725
|
+
o !== s && (r.value = o);
|
|
725
726
|
});
|
|
726
|
-
const
|
|
727
|
+
const a = T({
|
|
727
728
|
get() {
|
|
728
|
-
return
|
|
729
|
+
return n.value;
|
|
729
730
|
},
|
|
730
|
-
set(
|
|
731
|
-
|
|
731
|
+
set(o) {
|
|
732
|
+
n.value = o, v();
|
|
732
733
|
}
|
|
733
|
-
}),
|
|
734
|
+
}), c = T({
|
|
734
735
|
get() {
|
|
735
|
-
return
|
|
736
|
+
return r.value;
|
|
736
737
|
},
|
|
737
|
-
set(
|
|
738
|
-
if (
|
|
739
|
-
const
|
|
740
|
-
|
|
738
|
+
set(o) {
|
|
739
|
+
if (r.value = o, r.value && a && a.value.length) {
|
|
740
|
+
const s = a.value.find((p) => p.id === r.value);
|
|
741
|
+
s && e.emit("nav", s);
|
|
741
742
|
}
|
|
742
743
|
}
|
|
743
|
-
}),
|
|
744
|
-
set(
|
|
745
|
-
|
|
744
|
+
}), l = T({
|
|
745
|
+
set(o) {
|
|
746
|
+
i.value = o;
|
|
746
747
|
},
|
|
747
748
|
get() {
|
|
748
|
-
return
|
|
749
|
+
return i.value;
|
|
749
750
|
}
|
|
750
751
|
});
|
|
751
|
-
function
|
|
752
|
-
if (
|
|
753
|
-
const
|
|
754
|
-
|
|
752
|
+
function v() {
|
|
753
|
+
if (a.value && a.value.length && !r.value) {
|
|
754
|
+
const o = a.value.find((s) => !s.disable);
|
|
755
|
+
o && (r.value = o.id);
|
|
755
756
|
}
|
|
756
757
|
}
|
|
757
|
-
function
|
|
758
|
-
|
|
758
|
+
function u(o) {
|
|
759
|
+
o.disable || o.id === r.value || (r.value = o.id, e.emit("update:activeNavId", o.id), e.emit("nav", o));
|
|
759
760
|
}
|
|
760
761
|
return () => {
|
|
761
|
-
var
|
|
762
|
-
return
|
|
762
|
+
var o;
|
|
763
|
+
return b("div", {
|
|
763
764
|
class: ["farris-nav", {
|
|
764
|
-
"farris-nav-vertical": !
|
|
765
|
+
"farris-nav-vertical": !l.value
|
|
765
766
|
}]
|
|
766
|
-
}, [(
|
|
767
|
+
}, [(o = a.value) == null ? void 0 : o.map((s) => b("div", {
|
|
767
768
|
class: ["farris-nav-item", {
|
|
768
|
-
active:
|
|
769
|
+
active: s.id === c.value
|
|
769
770
|
}, {
|
|
770
|
-
disabled:
|
|
771
|
+
disabled: s.disable
|
|
771
772
|
}],
|
|
772
|
-
onClick: () =>
|
|
773
|
-
}, [
|
|
773
|
+
onClick: () => u(s)
|
|
774
|
+
}, [b("div", {
|
|
774
775
|
class: "farris-nav-item-link"
|
|
775
|
-
}, [
|
|
776
|
+
}, [b("span", {
|
|
776
777
|
class: "farris-nav-item-link-text"
|
|
777
|
-
}, [typeof
|
|
778
|
+
}, [typeof s.text == "function" ? s.text() : s.text, s.num && b("div", {
|
|
778
779
|
class: "farris-nav-item-tag"
|
|
779
|
-
}, [
|
|
780
|
+
}, [s.num <= t.maxNum && b("span", {
|
|
780
781
|
class: "tag-text"
|
|
781
|
-
}, [
|
|
782
|
+
}, [s.num]), s.num > t.maxNum && b("span", {
|
|
782
783
|
class: "tag-text"
|
|
783
|
-
}, [
|
|
784
|
+
}, [t.maxNum, X("+")])])])])]))]);
|
|
784
785
|
};
|
|
785
786
|
}
|
|
786
787
|
});
|
|
787
|
-
function
|
|
788
|
-
var
|
|
789
|
-
|
|
790
|
-
e != null && e.resolveComponentContext && e.resolveComponentContext();
|
|
791
|
-
}
|
|
792
|
-
r();
|
|
793
|
-
const o = e && e.getStyles && e.getStyles() || "", s = e && e.getDesignerClass && e.getDesignerClass() || "", f = w();
|
|
794
|
-
function d() {
|
|
795
|
-
return (t == null ? void 0 : t.schema.componentType) === "frame" ? !1 : e && e.checkCanMoveComponent ? e.checkCanMoveComponent() : !0;
|
|
796
|
-
}
|
|
797
|
-
function y() {
|
|
798
|
-
return !1;
|
|
799
|
-
}
|
|
800
|
-
function a() {
|
|
801
|
-
return (t == null ? void 0 : t.schema.componentType) === "frame" ? !1 : e && e.checkCanDeleteComponent ? e.checkCanDeleteComponent() : !0;
|
|
802
|
-
}
|
|
803
|
-
function l() {
|
|
804
|
-
return (t == null ? void 0 : t.schema.componentType) === "frame" ? !0 : e && e.hideNestedPaddingInDesginerView ? e.hideNestedPaddingInDesginerView() : !1;
|
|
805
|
-
}
|
|
806
|
-
function i(b) {
|
|
807
|
-
if (!b || !b.value)
|
|
808
|
-
return null;
|
|
809
|
-
if (b.value.schema && b.value.schema.type === "component")
|
|
810
|
-
return b.value;
|
|
811
|
-
const D = w(b == null ? void 0 : b.value.parent), E = i(D);
|
|
812
|
-
return E || null;
|
|
813
|
-
}
|
|
814
|
-
function h(b = t) {
|
|
815
|
-
const { componentInstance: D, designerItemElementRef: E } = b;
|
|
816
|
-
return !D || !D.value ? null : D.value.canMove ? E : h(b.parent);
|
|
817
|
-
}
|
|
818
|
-
function g(b) {
|
|
819
|
-
return !!e && e.canAccepts(b);
|
|
820
|
-
}
|
|
821
|
-
function p() {
|
|
822
|
-
return (t == null ? void 0 : t.schema.label) || (t == null ? void 0 : t.schema.title) || (t == null ? void 0 : t.schema.name);
|
|
823
|
-
}
|
|
788
|
+
function Ye(t, e, r) {
|
|
789
|
+
var q;
|
|
790
|
+
const n = "", i = "", a = g();
|
|
824
791
|
function c() {
|
|
792
|
+
return (e == null ? void 0 : e.schema.componentType) !== "frame";
|
|
825
793
|
}
|
|
826
|
-
function
|
|
827
|
-
D && e != null && e.onAcceptMovedChildElement && e.onAcceptMovedChildElement(D);
|
|
828
|
-
}
|
|
829
|
-
function m(b, D) {
|
|
830
|
-
const { componentType: E } = b;
|
|
831
|
-
let v = $(E, b, D);
|
|
832
|
-
e && e.onResolveNewComponentSchema && (v = e.onResolveNewComponentSchema(b, v));
|
|
833
|
-
const P = E.toLowerCase().replace("-", "_");
|
|
834
|
-
return v && !v.id && v.type === E && (v.id = `${P}_${Math.random().toString().slice(2, 6)}`), v;
|
|
835
|
-
}
|
|
836
|
-
function A(b, D) {
|
|
837
|
-
const E = String(b.getAttribute("data-controltype")), v = b.getAttribute("data-feature"), P = v ? JSON.parse(v) : {};
|
|
838
|
-
P.parentComponentInstance = f.value;
|
|
839
|
-
let T = $(E, P);
|
|
840
|
-
e && e.onAcceptNewChildElement && (T = e.onAcceptNewChildElement(b, D, T));
|
|
841
|
-
const S = E.toLowerCase().replace("-", "_");
|
|
842
|
-
return T && !T.id && T.type === E && (T.id = `${S}_${Math.random().toString().slice(2, 6)}`), T;
|
|
843
|
-
}
|
|
844
|
-
function C(b) {
|
|
845
|
-
}
|
|
846
|
-
function j(...b) {
|
|
847
|
-
if (e && e.getPropsConfig)
|
|
848
|
-
return e.getPropsConfig(...b);
|
|
849
|
-
}
|
|
850
|
-
return f.value = {
|
|
851
|
-
canMove: d(),
|
|
852
|
-
canSelectParent: y(),
|
|
853
|
-
canDelete: a(),
|
|
854
|
-
canNested: !l(),
|
|
855
|
-
contents: t == null ? void 0 : t.schema.contents,
|
|
856
|
-
elementRef: n,
|
|
857
|
-
parent: (M = t == null ? void 0 : t.parent) == null ? void 0 : M.componentInstance,
|
|
858
|
-
schema: t == null ? void 0 : t.schema,
|
|
859
|
-
styles: o,
|
|
860
|
-
designerClass: s,
|
|
861
|
-
canAccepts: g,
|
|
862
|
-
getBelongedComponentInstance: i,
|
|
863
|
-
getDraggableDesignItemElement: h,
|
|
864
|
-
getDraggingDisplayText: p,
|
|
865
|
-
getPropConfig: j,
|
|
866
|
-
getDragScopeElement: c,
|
|
867
|
-
onAcceptMovedChildElement: u,
|
|
868
|
-
onAcceptNewChildElement: A,
|
|
869
|
-
onChildElementMovedOut: C,
|
|
870
|
-
addNewChildComponentSchema: m,
|
|
871
|
-
updateDragAndDropRules: r,
|
|
872
|
-
triggerBelongedComponentToMoveWhenMoved: !!e && e.triggerBelongedComponentToMoveWhenMoved || w(!1),
|
|
873
|
-
triggerBelongedComponentToDeleteWhenDeleted: !!e && e.triggerBelongedComponentToDeleteWhenDeleted || w(!1)
|
|
874
|
-
}, f;
|
|
875
|
-
}
|
|
876
|
-
function dt() {
|
|
877
|
-
function n(t) {
|
|
878
|
-
var o, s;
|
|
879
|
-
if (!t)
|
|
880
|
-
return !1;
|
|
881
|
-
const e = ((o = t.targetContainer) == null ? void 0 : o.componentInstance) && t.targetContainer.componentInstance.value;
|
|
882
|
-
if (!e)
|
|
883
|
-
return !1;
|
|
884
|
-
const r = (s = e.schema.appearance) == null ? void 0 : s.class;
|
|
885
|
-
if (t.controlCategory === "input" || t.controlType === "form-group") {
|
|
886
|
-
const f = e.schema.type, d = (f === "response-form" || f === "content-container") && r && r.includes("farris-form");
|
|
887
|
-
if (e.schema.type !== "response-layout-item" && !d)
|
|
888
|
-
return !1;
|
|
889
|
-
}
|
|
890
|
-
return t.controlType !== "field-set";
|
|
891
|
-
}
|
|
892
|
-
return {
|
|
893
|
-
basalDragulaRuleForContainer: n
|
|
894
|
-
};
|
|
895
|
-
}
|
|
896
|
-
const yt = "https://json-schema.org/draft/2020-12/schema", ht = "https://farris-design.gitee.io/dragging-rules.schema.json", bt = "Dragging Rules", mt = "The rules of designer canvas", vt = "object", gt = {
|
|
897
|
-
"f-page": {
|
|
898
|
-
description: "The root class of page designed by farris.",
|
|
899
|
-
type: "object",
|
|
900
|
-
properties: {
|
|
901
|
-
contents: {
|
|
902
|
-
type: "object",
|
|
903
|
-
properties: {
|
|
904
|
-
"f-page-header": {
|
|
905
|
-
description: "The class of page header designed by farris.",
|
|
906
|
-
type: "string"
|
|
907
|
-
},
|
|
908
|
-
"f-page-main": {
|
|
909
|
-
description: "The class of page body designed by farris.",
|
|
910
|
-
type: "object",
|
|
911
|
-
properties: {
|
|
912
|
-
contents: {
|
|
913
|
-
type: "object",
|
|
914
|
-
properties: {
|
|
915
|
-
"f-struct-like-card": {
|
|
916
|
-
description: "",
|
|
917
|
-
type: "object",
|
|
918
|
-
properties: {
|
|
919
|
-
contents: {
|
|
920
|
-
type: "object",
|
|
921
|
-
properties: {
|
|
922
|
-
"f-struct-form": {
|
|
923
|
-
description: "The class of form component which has a hierarchical structure of component -> section -> respnse-form.",
|
|
924
|
-
type: "object",
|
|
925
|
-
properties: {
|
|
926
|
-
contents: {
|
|
927
|
-
type: "object",
|
|
928
|
-
properties: {
|
|
929
|
-
"f-section-form": {
|
|
930
|
-
description: "The class of section which has wrapped a reponse-form component.",
|
|
931
|
-
type: "object",
|
|
932
|
-
properties: {
|
|
933
|
-
contents: {
|
|
934
|
-
type: "object",
|
|
935
|
-
properties: {
|
|
936
|
-
"f-form-layout": {
|
|
937
|
-
description: "The class of reponse form",
|
|
938
|
-
type: "object",
|
|
939
|
-
properties: {
|
|
940
|
-
rules: {
|
|
941
|
-
type: "object",
|
|
942
|
-
properties: {
|
|
943
|
-
canAccept: {
|
|
944
|
-
type: "boolean",
|
|
945
|
-
const: !0
|
|
946
|
-
},
|
|
947
|
-
fixed: {
|
|
948
|
-
type: "boolean",
|
|
949
|
-
const: !0
|
|
950
|
-
},
|
|
951
|
-
hidePadding: {
|
|
952
|
-
type: "boolean",
|
|
953
|
-
const: !1
|
|
954
|
-
}
|
|
955
|
-
}
|
|
956
|
-
}
|
|
957
|
-
}
|
|
958
|
-
}
|
|
959
|
-
}
|
|
960
|
-
},
|
|
961
|
-
rules: {
|
|
962
|
-
type: "object",
|
|
963
|
-
properties: {
|
|
964
|
-
canAccept: {
|
|
965
|
-
type: "boolean",
|
|
966
|
-
const: !1
|
|
967
|
-
},
|
|
968
|
-
fixed: {
|
|
969
|
-
type: "boolean",
|
|
970
|
-
const: !0
|
|
971
|
-
},
|
|
972
|
-
hidePadding: {
|
|
973
|
-
type: "boolean",
|
|
974
|
-
const: !0
|
|
975
|
-
}
|
|
976
|
-
}
|
|
977
|
-
}
|
|
978
|
-
}
|
|
979
|
-
}
|
|
980
|
-
}
|
|
981
|
-
},
|
|
982
|
-
rules: {
|
|
983
|
-
type: "object",
|
|
984
|
-
properties: {
|
|
985
|
-
canAccept: {
|
|
986
|
-
type: "boolean",
|
|
987
|
-
const: !1
|
|
988
|
-
},
|
|
989
|
-
fixed: {
|
|
990
|
-
type: "boolean",
|
|
991
|
-
const: !1
|
|
992
|
-
},
|
|
993
|
-
hidePadding: {
|
|
994
|
-
type: "boolean",
|
|
995
|
-
const: !0
|
|
996
|
-
}
|
|
997
|
-
}
|
|
998
|
-
}
|
|
999
|
-
}
|
|
1000
|
-
},
|
|
1001
|
-
"f-struct-wrapper": {
|
|
1002
|
-
description: "",
|
|
1003
|
-
type: "object",
|
|
1004
|
-
properties: {
|
|
1005
|
-
contents: {
|
|
1006
|
-
type: "object",
|
|
1007
|
-
properties: {
|
|
1008
|
-
"f-section-tabs": {
|
|
1009
|
-
description: "The class of section which has wrapped sub-grid tabs.",
|
|
1010
|
-
type: "object",
|
|
1011
|
-
properties: {
|
|
1012
|
-
contents: {
|
|
1013
|
-
type: "object",
|
|
1014
|
-
properties: {
|
|
1015
|
-
"f-tabs-in-card": {
|
|
1016
|
-
description: "The class of tabs which contains sub-grid.",
|
|
1017
|
-
type: "object",
|
|
1018
|
-
properties: {
|
|
1019
|
-
contents: {
|
|
1020
|
-
type: "object",
|
|
1021
|
-
properties: {
|
|
1022
|
-
"f-struct-data-grid-in-card": {
|
|
1023
|
-
description: "The class of sub-grid component",
|
|
1024
|
-
type: "object",
|
|
1025
|
-
properties: {
|
|
1026
|
-
contents: {
|
|
1027
|
-
type: "object",
|
|
1028
|
-
properties: {
|
|
1029
|
-
"f-grid-is-sub": {
|
|
1030
|
-
description: "The class of sub-grid",
|
|
1031
|
-
type: "object",
|
|
1032
|
-
properties: {
|
|
1033
|
-
rules: {
|
|
1034
|
-
type: "object",
|
|
1035
|
-
properties: {
|
|
1036
|
-
canAccept: {
|
|
1037
|
-
type: "boolean",
|
|
1038
|
-
const: !0
|
|
1039
|
-
},
|
|
1040
|
-
fixed: {
|
|
1041
|
-
type: "boolean",
|
|
1042
|
-
const: !0
|
|
1043
|
-
},
|
|
1044
|
-
hidePadding: {
|
|
1045
|
-
type: "boolean",
|
|
1046
|
-
const: !1
|
|
1047
|
-
}
|
|
1048
|
-
}
|
|
1049
|
-
}
|
|
1050
|
-
}
|
|
1051
|
-
}
|
|
1052
|
-
}
|
|
1053
|
-
},
|
|
1054
|
-
rules: {
|
|
1055
|
-
type: "object",
|
|
1056
|
-
properties: {
|
|
1057
|
-
canAccept: {
|
|
1058
|
-
type: "boolean",
|
|
1059
|
-
const: !1
|
|
1060
|
-
},
|
|
1061
|
-
fixed: {
|
|
1062
|
-
type: "boolean",
|
|
1063
|
-
const: !1
|
|
1064
|
-
},
|
|
1065
|
-
hidePadding: {
|
|
1066
|
-
type: "boolean",
|
|
1067
|
-
const: !0
|
|
1068
|
-
}
|
|
1069
|
-
}
|
|
1070
|
-
}
|
|
1071
|
-
}
|
|
1072
|
-
}
|
|
1073
|
-
}
|
|
1074
|
-
},
|
|
1075
|
-
rules: {
|
|
1076
|
-
type: "object",
|
|
1077
|
-
properties: {
|
|
1078
|
-
canAccept: {
|
|
1079
|
-
type: "boolean",
|
|
1080
|
-
const: !1
|
|
1081
|
-
},
|
|
1082
|
-
fixed: {
|
|
1083
|
-
type: "boolean",
|
|
1084
|
-
const: !0
|
|
1085
|
-
},
|
|
1086
|
-
hidePadding: {
|
|
1087
|
-
type: "boolean",
|
|
1088
|
-
const: !0
|
|
1089
|
-
}
|
|
1090
|
-
}
|
|
1091
|
-
}
|
|
1092
|
-
}
|
|
1093
|
-
}
|
|
1094
|
-
}
|
|
1095
|
-
},
|
|
1096
|
-
rules: {
|
|
1097
|
-
type: "object",
|
|
1098
|
-
properties: {
|
|
1099
|
-
canAccept: {
|
|
1100
|
-
type: "boolean",
|
|
1101
|
-
const: !1
|
|
1102
|
-
},
|
|
1103
|
-
fixed: {
|
|
1104
|
-
type: "boolean",
|
|
1105
|
-
const: !0
|
|
1106
|
-
},
|
|
1107
|
-
hidePadding: {
|
|
1108
|
-
type: "boolean",
|
|
1109
|
-
const: !0
|
|
1110
|
-
}
|
|
1111
|
-
}
|
|
1112
|
-
}
|
|
1113
|
-
}
|
|
1114
|
-
},
|
|
1115
|
-
"f-section-in-main": {
|
|
1116
|
-
description: "The class of section which has wrapped a reponse-form component.",
|
|
1117
|
-
type: "object",
|
|
1118
|
-
properties: {
|
|
1119
|
-
rules: {
|
|
1120
|
-
type: "object",
|
|
1121
|
-
properties: {
|
|
1122
|
-
canAccept: {
|
|
1123
|
-
type: "boolean",
|
|
1124
|
-
const: !0
|
|
1125
|
-
},
|
|
1126
|
-
fixed: {
|
|
1127
|
-
type: "boolean",
|
|
1128
|
-
const: !0
|
|
1129
|
-
},
|
|
1130
|
-
hidePadding: {
|
|
1131
|
-
type: "boolean",
|
|
1132
|
-
const: !1
|
|
1133
|
-
}
|
|
1134
|
-
}
|
|
1135
|
-
}
|
|
1136
|
-
}
|
|
1137
|
-
}
|
|
1138
|
-
}
|
|
1139
|
-
},
|
|
1140
|
-
rules: {
|
|
1141
|
-
type: "object",
|
|
1142
|
-
properties: {
|
|
1143
|
-
canAccept: {
|
|
1144
|
-
type: "boolean",
|
|
1145
|
-
const: !1
|
|
1146
|
-
},
|
|
1147
|
-
fixed: {
|
|
1148
|
-
type: "boolean",
|
|
1149
|
-
const: !1
|
|
1150
|
-
},
|
|
1151
|
-
hidePadding: {
|
|
1152
|
-
type: "boolean",
|
|
1153
|
-
const: !0
|
|
1154
|
-
}
|
|
1155
|
-
}
|
|
1156
|
-
}
|
|
1157
|
-
}
|
|
1158
|
-
}
|
|
1159
|
-
}
|
|
1160
|
-
},
|
|
1161
|
-
rules: {
|
|
1162
|
-
type: "object",
|
|
1163
|
-
properties: {
|
|
1164
|
-
canAccept: {
|
|
1165
|
-
type: "boolean",
|
|
1166
|
-
const: !0
|
|
1167
|
-
},
|
|
1168
|
-
fixed: {
|
|
1169
|
-
type: "boolean",
|
|
1170
|
-
const: !0
|
|
1171
|
-
},
|
|
1172
|
-
hidePadding: {
|
|
1173
|
-
type: "object",
|
|
1174
|
-
const: {
|
|
1175
|
-
allOf: [
|
|
1176
|
-
{
|
|
1177
|
-
sibling: 0,
|
|
1178
|
-
parent: {
|
|
1179
|
-
"f-page-main": !0
|
|
1180
|
-
}
|
|
1181
|
-
}
|
|
1182
|
-
]
|
|
1183
|
-
}
|
|
1184
|
-
}
|
|
1185
|
-
}
|
|
1186
|
-
}
|
|
1187
|
-
}
|
|
1188
|
-
},
|
|
1189
|
-
"f-struct-data-grid": {
|
|
1190
|
-
description: "",
|
|
1191
|
-
type: "object",
|
|
1192
|
-
properties: {
|
|
1193
|
-
rules: {
|
|
1194
|
-
type: "object",
|
|
1195
|
-
properties: {
|
|
1196
|
-
canAccept: {
|
|
1197
|
-
type: "object",
|
|
1198
|
-
const: !0
|
|
1199
|
-
},
|
|
1200
|
-
fixed: {
|
|
1201
|
-
type: "boolean",
|
|
1202
|
-
const: !0
|
|
1203
|
-
},
|
|
1204
|
-
hidePadding: {
|
|
1205
|
-
type: "boolean",
|
|
1206
|
-
const: !0
|
|
1207
|
-
}
|
|
1208
|
-
}
|
|
1209
|
-
}
|
|
1210
|
-
}
|
|
1211
|
-
},
|
|
1212
|
-
"f-page-main-content": {
|
|
1213
|
-
description: "",
|
|
1214
|
-
type: "object",
|
|
1215
|
-
properties: {
|
|
1216
|
-
contents: {
|
|
1217
|
-
type: "object",
|
|
1218
|
-
properties: {
|
|
1219
|
-
"f-page-content-nav": {
|
|
1220
|
-
description: "",
|
|
1221
|
-
type: "object",
|
|
1222
|
-
properties: {
|
|
1223
|
-
contents: {
|
|
1224
|
-
type: "object",
|
|
1225
|
-
properties: {
|
|
1226
|
-
"f-struct-data-grid-in-nav": {
|
|
1227
|
-
description: "",
|
|
1228
|
-
type: "object",
|
|
1229
|
-
properties: {
|
|
1230
|
-
contents: {
|
|
1231
|
-
type: "object",
|
|
1232
|
-
properties: {
|
|
1233
|
-
"f-page-content-nav-extend": {
|
|
1234
|
-
description: "",
|
|
1235
|
-
type: "object"
|
|
1236
|
-
},
|
|
1237
|
-
"f-section-in-nav": {
|
|
1238
|
-
description: "",
|
|
1239
|
-
type: "object",
|
|
1240
|
-
properties: {
|
|
1241
|
-
rules: {
|
|
1242
|
-
type: "object",
|
|
1243
|
-
properties: {
|
|
1244
|
-
canAccept: {
|
|
1245
|
-
type: "boolean",
|
|
1246
|
-
const: !1
|
|
1247
|
-
},
|
|
1248
|
-
fixed: {
|
|
1249
|
-
type: "boolean",
|
|
1250
|
-
const: !0
|
|
1251
|
-
},
|
|
1252
|
-
hidePadding: {
|
|
1253
|
-
type: "boolean",
|
|
1254
|
-
const: !1
|
|
1255
|
-
}
|
|
1256
|
-
}
|
|
1257
|
-
}
|
|
1258
|
-
}
|
|
1259
|
-
}
|
|
1260
|
-
}
|
|
1261
|
-
},
|
|
1262
|
-
rules: {
|
|
1263
|
-
type: "object",
|
|
1264
|
-
properties: {
|
|
1265
|
-
canAccept: {
|
|
1266
|
-
type: "boolean",
|
|
1267
|
-
const: !0
|
|
1268
|
-
},
|
|
1269
|
-
fixed: {
|
|
1270
|
-
type: "boolean",
|
|
1271
|
-
const: !1
|
|
1272
|
-
},
|
|
1273
|
-
hidePadding: {
|
|
1274
|
-
type: "boolean",
|
|
1275
|
-
const: !0
|
|
1276
|
-
}
|
|
1277
|
-
}
|
|
1278
|
-
}
|
|
1279
|
-
}
|
|
1280
|
-
}
|
|
1281
|
-
}
|
|
1282
|
-
}
|
|
1283
|
-
}
|
|
1284
|
-
},
|
|
1285
|
-
"f-page-content-main": {
|
|
1286
|
-
description: "",
|
|
1287
|
-
type: "object",
|
|
1288
|
-
properties: {}
|
|
1289
|
-
}
|
|
1290
|
-
}
|
|
1291
|
-
}
|
|
1292
|
-
}
|
|
1293
|
-
},
|
|
1294
|
-
"f-page-content": {
|
|
1295
|
-
description: "",
|
|
1296
|
-
type: "object",
|
|
1297
|
-
properties: {
|
|
1298
|
-
contents: {
|
|
1299
|
-
type: "object",
|
|
1300
|
-
properties: {
|
|
1301
|
-
"f-page-content-nav": {
|
|
1302
|
-
description: "",
|
|
1303
|
-
type: "object",
|
|
1304
|
-
properties: {
|
|
1305
|
-
contents: {
|
|
1306
|
-
type: "object",
|
|
1307
|
-
properties: {
|
|
1308
|
-
"f-list-nav": {
|
|
1309
|
-
description: "",
|
|
1310
|
-
type: "object"
|
|
1311
|
-
},
|
|
1312
|
-
"f-list-nav-left": {
|
|
1313
|
-
description: "",
|
|
1314
|
-
type: "object"
|
|
1315
|
-
},
|
|
1316
|
-
"f-struct-data-grid-in-nav": {
|
|
1317
|
-
description: "",
|
|
1318
|
-
type: "object",
|
|
1319
|
-
properties: {
|
|
1320
|
-
contents: {
|
|
1321
|
-
type: "object",
|
|
1322
|
-
properties: {
|
|
1323
|
-
"f-section-form": {
|
|
1324
|
-
description: "",
|
|
1325
|
-
type: "object",
|
|
1326
|
-
properties: {
|
|
1327
|
-
rules: {
|
|
1328
|
-
type: "object",
|
|
1329
|
-
properties: {
|
|
1330
|
-
canAccept: {
|
|
1331
|
-
type: "boolean",
|
|
1332
|
-
const: !1
|
|
1333
|
-
},
|
|
1334
|
-
fixed: {
|
|
1335
|
-
type: "boolean",
|
|
1336
|
-
const: !0
|
|
1337
|
-
},
|
|
1338
|
-
hidePadding: {
|
|
1339
|
-
type: "boolean",
|
|
1340
|
-
const: !0
|
|
1341
|
-
}
|
|
1342
|
-
}
|
|
1343
|
-
}
|
|
1344
|
-
}
|
|
1345
|
-
},
|
|
1346
|
-
"f-section-grid": {
|
|
1347
|
-
description: "",
|
|
1348
|
-
type: "object",
|
|
1349
|
-
properties: {
|
|
1350
|
-
rules: {
|
|
1351
|
-
type: "object",
|
|
1352
|
-
properties: {
|
|
1353
|
-
canAccept: {
|
|
1354
|
-
type: "boolean",
|
|
1355
|
-
const: !1
|
|
1356
|
-
},
|
|
1357
|
-
fixed: {
|
|
1358
|
-
type: "boolean",
|
|
1359
|
-
const: !0
|
|
1360
|
-
},
|
|
1361
|
-
hidePadding: {
|
|
1362
|
-
type: "boolean",
|
|
1363
|
-
const: !0
|
|
1364
|
-
}
|
|
1365
|
-
}
|
|
1366
|
-
}
|
|
1367
|
-
}
|
|
1368
|
-
}
|
|
1369
|
-
}
|
|
1370
|
-
},
|
|
1371
|
-
rules: {
|
|
1372
|
-
type: "object",
|
|
1373
|
-
properties: {
|
|
1374
|
-
canAccept: {
|
|
1375
|
-
type: "boolean",
|
|
1376
|
-
const: !1
|
|
1377
|
-
},
|
|
1378
|
-
fixed: {
|
|
1379
|
-
type: "boolean",
|
|
1380
|
-
const: !0
|
|
1381
|
-
},
|
|
1382
|
-
hidePadding: {
|
|
1383
|
-
type: "boolean",
|
|
1384
|
-
const: !0
|
|
1385
|
-
}
|
|
1386
|
-
}
|
|
1387
|
-
}
|
|
1388
|
-
}
|
|
1389
|
-
}
|
|
1390
|
-
}
|
|
1391
|
-
}
|
|
1392
|
-
},
|
|
1393
|
-
rules: {
|
|
1394
|
-
type: "object",
|
|
1395
|
-
properties: {
|
|
1396
|
-
canAccept: {
|
|
1397
|
-
type: "boolean",
|
|
1398
|
-
const: !1
|
|
1399
|
-
},
|
|
1400
|
-
fixed: {
|
|
1401
|
-
type: "boolean",
|
|
1402
|
-
const: !0
|
|
1403
|
-
},
|
|
1404
|
-
hidePadding: {
|
|
1405
|
-
type: "boolean",
|
|
1406
|
-
const: !0
|
|
1407
|
-
}
|
|
1408
|
-
}
|
|
1409
|
-
}
|
|
1410
|
-
},
|
|
1411
|
-
"f-page-content-main": {
|
|
1412
|
-
description: "",
|
|
1413
|
-
type: "object",
|
|
1414
|
-
properties: {
|
|
1415
|
-
rules: {
|
|
1416
|
-
type: "object",
|
|
1417
|
-
properties: {
|
|
1418
|
-
canAccept: {
|
|
1419
|
-
type: "boolean",
|
|
1420
|
-
const: !1
|
|
1421
|
-
},
|
|
1422
|
-
fixed: {
|
|
1423
|
-
type: "boolean",
|
|
1424
|
-
const: !1
|
|
1425
|
-
},
|
|
1426
|
-
hidePadding: {
|
|
1427
|
-
type: "boolean",
|
|
1428
|
-
const: !0
|
|
1429
|
-
}
|
|
1430
|
-
}
|
|
1431
|
-
}
|
|
1432
|
-
}
|
|
1433
|
-
}
|
|
1434
|
-
}
|
|
1435
|
-
},
|
|
1436
|
-
rules: {
|
|
1437
|
-
type: "object",
|
|
1438
|
-
properties: {
|
|
1439
|
-
canAccept: {
|
|
1440
|
-
type: "boolean",
|
|
1441
|
-
const: !1
|
|
1442
|
-
},
|
|
1443
|
-
fixed: {
|
|
1444
|
-
type: "boolean",
|
|
1445
|
-
const: !0
|
|
1446
|
-
},
|
|
1447
|
-
hidePadding: {
|
|
1448
|
-
type: "boolean",
|
|
1449
|
-
const: !0
|
|
1450
|
-
}
|
|
1451
|
-
}
|
|
1452
|
-
}
|
|
1453
|
-
}
|
|
1454
|
-
}
|
|
1455
|
-
}
|
|
1456
|
-
},
|
|
1457
|
-
rules: {
|
|
1458
|
-
type: "object",
|
|
1459
|
-
properties: {
|
|
1460
|
-
canAccept: {
|
|
1461
|
-
type: "object",
|
|
1462
|
-
const: {
|
|
1463
|
-
anyOf: [
|
|
1464
|
-
{
|
|
1465
|
-
children: 0
|
|
1466
|
-
},
|
|
1467
|
-
{
|
|
1468
|
-
children: {
|
|
1469
|
-
length: {
|
|
1470
|
-
not: 1
|
|
1471
|
-
},
|
|
1472
|
-
"f-struct-like-card": !0
|
|
1473
|
-
}
|
|
1474
|
-
},
|
|
1475
|
-
{
|
|
1476
|
-
children: {
|
|
1477
|
-
"scroll-spy": !1,
|
|
1478
|
-
"f-page-content": !1,
|
|
1479
|
-
"f-struct-like-card": !1
|
|
1480
|
-
}
|
|
1481
|
-
}
|
|
1482
|
-
]
|
|
1483
|
-
}
|
|
1484
|
-
},
|
|
1485
|
-
fixed: {
|
|
1486
|
-
type: "boolean",
|
|
1487
|
-
const: !0
|
|
1488
|
-
},
|
|
1489
|
-
hidePadding: {
|
|
1490
|
-
type: "boolean",
|
|
1491
|
-
const: !0
|
|
1492
|
-
}
|
|
1493
|
-
}
|
|
1494
|
-
}
|
|
1495
|
-
}
|
|
1496
|
-
},
|
|
1497
|
-
"f-page-footer": {
|
|
1498
|
-
description: "The class of page footer designed by farris.",
|
|
1499
|
-
type: "string"
|
|
1500
|
-
}
|
|
1501
|
-
}
|
|
1502
|
-
},
|
|
1503
|
-
rules: {
|
|
1504
|
-
type: "object",
|
|
1505
|
-
properties: {
|
|
1506
|
-
canAccept: {
|
|
1507
|
-
type: "boolean",
|
|
1508
|
-
const: !1
|
|
1509
|
-
},
|
|
1510
|
-
fixed: {
|
|
1511
|
-
type: "boolean",
|
|
1512
|
-
const: !0
|
|
1513
|
-
},
|
|
1514
|
-
hidePadding: {
|
|
1515
|
-
type: "boolean",
|
|
1516
|
-
const: !0
|
|
1517
|
-
}
|
|
1518
|
-
}
|
|
1519
|
-
}
|
|
1520
|
-
}
|
|
1521
|
-
},
|
|
1522
|
-
"f-page-is-managelist": {
|
|
1523
|
-
description: "The root class of mangement list page.",
|
|
1524
|
-
type: "string"
|
|
1525
|
-
},
|
|
1526
|
-
"f-page-card": {
|
|
1527
|
-
description: "",
|
|
1528
|
-
type: "object"
|
|
1529
|
-
},
|
|
1530
|
-
"f-page-is-mainsubcard": {
|
|
1531
|
-
description: "",
|
|
1532
|
-
type: "object"
|
|
1533
|
-
}
|
|
1534
|
-
}, Ct = {
|
|
1535
|
-
$schema: yt,
|
|
1536
|
-
$id: ht,
|
|
1537
|
-
title: bt,
|
|
1538
|
-
description: mt,
|
|
1539
|
-
type: vt,
|
|
1540
|
-
properties: gt
|
|
1541
|
-
}, z = /* @__PURE__ */ new Map();
|
|
1542
|
-
function jt() {
|
|
1543
|
-
function n(p, c, u, m) {
|
|
1544
|
-
var A;
|
|
1545
|
-
if (typeof u == "number")
|
|
1546
|
-
return ((A = m[p]) == null ? void 0 : A.length) === u;
|
|
1547
|
-
if (typeof u == "object") {
|
|
1548
|
-
const C = Object.keys(u)[0], j = u[C];
|
|
1549
|
-
if (C === "not")
|
|
1550
|
-
return Number(m[p].length) !== Number(j);
|
|
1551
|
-
if (C === "moreThan")
|
|
1552
|
-
return Number(m[p].length) >= Number(j);
|
|
1553
|
-
if (C === "lessThan")
|
|
1554
|
-
return Number(m[p].length) <= Number(j);
|
|
1555
|
-
}
|
|
1556
|
-
return !1;
|
|
1557
|
-
}
|
|
1558
|
-
function t(p, c, u, m) {
|
|
1559
|
-
return typeof u == "boolean" ? m.childrenClassList.includes(c) === !!u : !1;
|
|
1560
|
-
}
|
|
1561
|
-
function e(p, c, u, m) {
|
|
1562
|
-
return typeof u == "boolean" ? m.parentClassList.includes(c) === !!u : !1;
|
|
1563
|
-
}
|
|
1564
|
-
function r(p, c, u, m) {
|
|
1565
|
-
return typeof u == "boolean" ? m.parentClassList.includes(c) === !!u : !1;
|
|
1566
|
-
}
|
|
1567
|
-
const o = /* @__PURE__ */ new Map([
|
|
1568
|
-
["length", n],
|
|
1569
|
-
["hasChildren", t],
|
|
1570
|
-
["hasSibling", r],
|
|
1571
|
-
["hasParent", e]
|
|
1572
|
-
]);
|
|
1573
|
-
function s(p, c) {
|
|
1574
|
-
const u = p;
|
|
1575
|
-
return typeof c == "number" ? [{ target: u, operator: "length", param: null, value: Number(c) }] : typeof c == "object" ? Object.keys(c).map((m) => {
|
|
1576
|
-
if (m === "length")
|
|
1577
|
-
return { target: u, operator: "length", param: null, value: c[m] };
|
|
1578
|
-
const A = m, C = c[m];
|
|
1579
|
-
return { target: u, operator: p === "children" ? "hasChildren" : p === "parent" ? "hasParent" : "hasSibling", param: A, value: C };
|
|
1580
|
-
}) : [];
|
|
1581
|
-
}
|
|
1582
|
-
function f(p, c) {
|
|
1583
|
-
if (o.has(p.operator)) {
|
|
1584
|
-
const u = o.get(p.operator);
|
|
1585
|
-
return u && u(p.target, p.param, p.value, c) || !1;
|
|
1586
|
-
}
|
|
794
|
+
function l() {
|
|
1587
795
|
return !1;
|
|
1588
796
|
}
|
|
1589
|
-
function
|
|
1590
|
-
return
|
|
1591
|
-
const M = s(j, p[j]);
|
|
1592
|
-
return C.push(...M), C;
|
|
1593
|
-
}, []).reduce((C, j) => C && f(j, c), !0);
|
|
797
|
+
function v() {
|
|
798
|
+
return (e == null ? void 0 : e.schema.componentType) !== "frame";
|
|
1594
799
|
}
|
|
1595
|
-
function
|
|
1596
|
-
|
|
1597
|
-
return m ? !b.includes(!1) : b.includes(!0);
|
|
800
|
+
function u() {
|
|
801
|
+
return (e == null ? void 0 : e.schema.componentType) === "frame";
|
|
1598
802
|
}
|
|
1599
|
-
function
|
|
1600
|
-
|
|
1601
|
-
|
|
803
|
+
function o(h) {
|
|
804
|
+
if (!h || !h.value)
|
|
805
|
+
return null;
|
|
806
|
+
if (h.value.schema && h.value.schema.type === "component")
|
|
807
|
+
return h.value;
|
|
808
|
+
const S = g(h == null ? void 0 : h.value.parent), m = o(S);
|
|
809
|
+
return m || null;
|
|
1602
810
|
}
|
|
1603
|
-
function
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
return p && p.properties && Object.keys(p.properties).reduce((m, A) => {
|
|
1607
|
-
const C = p.properties[A];
|
|
1608
|
-
return m[A] = a(C, c), m;
|
|
1609
|
-
}, u), u;
|
|
1610
|
-
};
|
|
811
|
+
function s(h = e) {
|
|
812
|
+
const { componentInstance: S, designerItemElementRef: m } = h;
|
|
813
|
+
return !S || !S.value ? null : S.value.canMove ? m : s(h.parent);
|
|
1611
814
|
}
|
|
1612
|
-
function
|
|
1613
|
-
|
|
1614
|
-
const { rules: m, contents: A } = c.properties;
|
|
1615
|
-
u.set(p, l(m)), A && Object.keys(A.properties).forEach(
|
|
1616
|
-
(C) => i(C, A.properties[C], u)
|
|
1617
|
-
);
|
|
1618
|
-
}
|
|
815
|
+
function p(h) {
|
|
816
|
+
return !!r;
|
|
1619
817
|
}
|
|
1620
|
-
function
|
|
1621
|
-
|
|
1622
|
-
Object.keys(p).forEach((c) => {
|
|
1623
|
-
i(c, p[c], z);
|
|
1624
|
-
});
|
|
818
|
+
function f() {
|
|
819
|
+
return (e == null ? void 0 : e.schema.label) || (e == null ? void 0 : e.schema.title) || (e == null ? void 0 : e.schema.name);
|
|
1625
820
|
}
|
|
1626
|
-
function
|
|
1627
|
-
const u = { canAccept: !0, fixed: !1, hidePadding: !0 };
|
|
1628
|
-
return z.has(p) ? z.get(p)(c) : u;
|
|
821
|
+
function d() {
|
|
1629
822
|
}
|
|
1630
|
-
|
|
1631
|
-
}
|
|
1632
|
-
function Pt(n, t) {
|
|
1633
|
-
function e(y, a = null) {
|
|
1634
|
-
if (a) return a;
|
|
1635
|
-
const l = n.getComponentById(t);
|
|
1636
|
-
return n.selectNode(l, (i) => i.id === y);
|
|
823
|
+
function y(h, S) {
|
|
1637
824
|
}
|
|
1638
|
-
function
|
|
1639
|
-
const
|
|
1640
|
-
|
|
825
|
+
function L(h, S) {
|
|
826
|
+
const { componentType: m } = h;
|
|
827
|
+
let P = te(m, h, S);
|
|
828
|
+
const re = m.toLowerCase().replace(/-/g, "_");
|
|
829
|
+
return P && !P.id && P.type === m && (P.id = `${re}_${Math.random().toString().slice(2, 6)}`), P;
|
|
1641
830
|
}
|
|
1642
|
-
function
|
|
1643
|
-
const a = e(y.id), l = De(n), i = [];
|
|
1644
|
-
l.getResonseFormLayoutConfig(a, i, 1);
|
|
1645
|
-
const h = i.map((j) => j.columnInSM), g = i.map((j) => j.columnInMD), p = i.map((j) => j.columnInLG), c = i.map((j) => j.columnInEL), u = s(h) ? h[0] : 0, m = s(g) ? g[0] : 0, A = s(p) ? p[0] : 0, C = s(c) ? c[0] : 0;
|
|
1646
|
-
return {
|
|
1647
|
-
uniqueColClassInSM: u,
|
|
1648
|
-
uniqueColClassInMD: m,
|
|
1649
|
-
uniqueColClassInLG: A,
|
|
1650
|
-
uniqueColClassInEL: C
|
|
1651
|
-
};
|
|
831
|
+
function _(h) {
|
|
1652
832
|
}
|
|
1653
|
-
function
|
|
1654
|
-
const a = new Set(y);
|
|
1655
|
-
return Array.from(a).length === 1;
|
|
833
|
+
function V(...h) {
|
|
1656
834
|
}
|
|
1657
|
-
function
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
}
|
|
1663
|
-
|
|
1664
|
-
const h = i.appearance.class;
|
|
1665
|
-
i.appearance.class = d(h, a);
|
|
835
|
+
function w() {
|
|
836
|
+
e != null && e.schema.contents && e.schema.contents.map((h) => {
|
|
837
|
+
var P;
|
|
838
|
+
let S = h.id;
|
|
839
|
+
h.type === "component-ref" && (S = h.component);
|
|
840
|
+
const m = t.value.querySelector(`#${S}-design-item`);
|
|
841
|
+
(P = m == null ? void 0 : m.componentInstance) != null && P.value.onRemoveComponent && m.componentInstance.value.onRemoveComponent();
|
|
1666
842
|
});
|
|
1667
843
|
}
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
initialState: s(t)
|
|
1695
|
-
}
|
|
1696
|
-
}, d.setPropertyRelates = function(y, a) {
|
|
1697
|
-
if (y)
|
|
1698
|
-
switch (y && y.propertyID) {
|
|
1699
|
-
case "unifiedLayout": {
|
|
1700
|
-
f(null, y.propertyValue, t.id), r.updateElementByParentContainer(t.id, e);
|
|
1701
|
-
break;
|
|
1702
|
-
}
|
|
1703
|
-
}
|
|
1704
|
-
}, this.propertyConfig.categories.appearance = d, this.propertyConfig;
|
|
1705
|
-
}
|
|
1706
|
-
}
|
|
1707
|
-
function Tt(n, t) {
|
|
1708
|
-
var E;
|
|
1709
|
-
const e = n.schema, r = (E = n.parent) == null ? void 0 : E.schema, o = jt(), s = w(!1), f = w(!1);
|
|
1710
|
-
let d = !0, y = !1, a, l = !1;
|
|
1711
|
-
function i(v) {
|
|
1712
|
-
return a && a.componentClassList && a.componentClassList.includes("f-form-layout") && a.componentClassList.includes("farris-form") ? v.sourceType === "control" && v.controlCategory === "input" || v.sourceType === "move" && v.controlType === "form-group" : !0;
|
|
1713
|
-
}
|
|
1714
|
-
function h(v) {
|
|
1715
|
-
return !(!dt().basalDragulaRuleForContainer(v) || !d || !i(v));
|
|
1716
|
-
}
|
|
1717
|
-
function g() {
|
|
1718
|
-
s.value = !1, f.value = !1;
|
|
1719
|
-
const v = e, P = v.appearance && v.appearance.class || "", T = P.split(" "), S = v.contents || [], L = S.length ? S[0] : null, F = L && L.appearance ? L.appearance.class : "", k = F ? F.split(" ") : [], B = S.length ? S.reduce((K, V) => {
|
|
1720
|
-
const ee = V && V.appearance ? V.appearance.class : "", Ce = ee ? ee.split(" ") : [];
|
|
1721
|
-
return K.push(...Ce), K;
|
|
1722
|
-
}, []) : [], x = r, q = x && x.appearance && x.appearance.class || "", be = q ? q.split(" ") : [];
|
|
1723
|
-
a = {
|
|
1724
|
-
componentClass: P,
|
|
1725
|
-
componentClassList: T,
|
|
1726
|
-
childContents: S,
|
|
1727
|
-
firstChildContent: L,
|
|
1728
|
-
firstChildClass: F,
|
|
1729
|
-
firstChildClassList: k,
|
|
1730
|
-
parent: x,
|
|
1731
|
-
parentClass: q,
|
|
1732
|
-
parentClassList: be,
|
|
1733
|
-
children: S,
|
|
1734
|
-
childrenClassList: B
|
|
1735
|
-
};
|
|
1736
|
-
const { canAccept: me, fixed: ve, hidePadding: ge } = o.getRuleValue(T[0], a);
|
|
1737
|
-
return d = me, y = ge, l = ve, !0;
|
|
1738
|
-
}
|
|
1739
|
-
function p(v) {
|
|
1740
|
-
Pe();
|
|
1741
|
-
}
|
|
1742
|
-
function c() {
|
|
1743
|
-
return e.componentType ? "display:inherit;flex-direction:inherit;margin-bottom:10px" : "";
|
|
1744
|
-
}
|
|
1745
|
-
function u(v, P) {
|
|
1746
|
-
const T = e;
|
|
1747
|
-
if ((T.appearance && T.appearance.class || "").split(" ").includes("f-form-layout")) {
|
|
1748
|
-
const { label: F } = v, k = $("form-group");
|
|
1749
|
-
return k.editor = P, k.label = F, m(k), delete k.editor.id, delete k.editor.binding, delete k.editor.appearance, delete k.editor.visible, k;
|
|
1750
|
-
}
|
|
1751
|
-
return P;
|
|
1752
|
-
}
|
|
1753
|
-
function m(v) {
|
|
1754
|
-
const P = n.componentInstance.value.getBelongedComponentInstance(n.componentInstance);
|
|
1755
|
-
if (P && P.schema && P.schema.componentType) {
|
|
1756
|
-
const T = P.schema.formColumns;
|
|
1757
|
-
let S = A(T);
|
|
1758
|
-
S = t.formSchemaUtils.getControlClassByFormUnifiedLayout(S, "", n.schema), v.appearance || (v.appearance = {}), v.appearance.class = S;
|
|
1759
|
-
}
|
|
1760
|
-
}
|
|
1761
|
-
function A(v) {
|
|
1762
|
-
let P = "";
|
|
1763
|
-
switch (v) {
|
|
1764
|
-
case 1: {
|
|
1765
|
-
P = "col-12 col-md-12 col-xl-12 col-el-12";
|
|
1766
|
-
break;
|
|
1767
|
-
}
|
|
1768
|
-
case 2: {
|
|
1769
|
-
P = "col-12 col-md-6 col-xl-6 col-el-6";
|
|
1770
|
-
break;
|
|
1771
|
-
}
|
|
1772
|
-
case 3: {
|
|
1773
|
-
P = "col-12 col-md-6 col-xl-4 col-el-4";
|
|
1774
|
-
break;
|
|
1775
|
-
}
|
|
1776
|
-
case 4: {
|
|
1777
|
-
P = "col-12 col-md-6 col-xl-3 col-el-2";
|
|
1778
|
-
break;
|
|
1779
|
-
}
|
|
1780
|
-
}
|
|
1781
|
-
return P;
|
|
1782
|
-
}
|
|
1783
|
-
function C(v, P, T) {
|
|
1784
|
-
const S = e;
|
|
1785
|
-
if ((S.appearance && S.appearance.class || "").split(" ").includes("f-form-layout")) {
|
|
1786
|
-
const k = String(v.innerText), B = $("form-group");
|
|
1787
|
-
return B.editor = T, B.label = k, B;
|
|
1788
|
-
}
|
|
1789
|
-
return T;
|
|
1790
|
-
}
|
|
1791
|
-
function j() {
|
|
1792
|
-
return !l;
|
|
1793
|
-
}
|
|
1794
|
-
function M() {
|
|
1795
|
-
return !l;
|
|
1796
|
-
}
|
|
1797
|
-
function b() {
|
|
1798
|
-
return y;
|
|
1799
|
-
}
|
|
1800
|
-
function D(v) {
|
|
1801
|
-
return new At(v, t).getPropertyConfig(e, n.componentInstance.value);
|
|
1802
|
-
}
|
|
1803
|
-
return {
|
|
1804
|
-
canAccepts: h,
|
|
1805
|
-
checkCanDeleteComponent: M,
|
|
1806
|
-
checkCanMoveComponent: j,
|
|
1807
|
-
getStyles: c,
|
|
1808
|
-
getPropsConfig: D,
|
|
1809
|
-
hideNestedPaddingInDesginerView: b,
|
|
1810
|
-
onAcceptNewChildElement: C,
|
|
1811
|
-
onAcceptMovedChildElement: p,
|
|
1812
|
-
resolveComponentContext: g,
|
|
1813
|
-
onResolveNewComponentSchema: u,
|
|
1814
|
-
triggerBelongedComponentToMoveWhenMoved: s,
|
|
1815
|
-
triggerBelongedComponentToDeleteWhenDeleted: f
|
|
1816
|
-
};
|
|
1817
|
-
}
|
|
1818
|
-
const Et = /* @__PURE__ */ ce({
|
|
844
|
+
return a.value = {
|
|
845
|
+
canMove: c(),
|
|
846
|
+
canSelectParent: l(),
|
|
847
|
+
canDelete: v(),
|
|
848
|
+
canNested: !u(),
|
|
849
|
+
contents: e == null ? void 0 : e.schema.contents,
|
|
850
|
+
elementRef: t,
|
|
851
|
+
parent: (q = e == null ? void 0 : e.parent) == null ? void 0 : q.componentInstance,
|
|
852
|
+
schema: e == null ? void 0 : e.schema,
|
|
853
|
+
styles: n,
|
|
854
|
+
designerClass: i,
|
|
855
|
+
canAccepts: p,
|
|
856
|
+
getBelongedComponentInstance: o,
|
|
857
|
+
getDraggableDesignItemElement: s,
|
|
858
|
+
getDraggingDisplayText: f,
|
|
859
|
+
getPropConfig: V,
|
|
860
|
+
getDragScopeElement: d,
|
|
861
|
+
onAcceptMovedChildElement: y,
|
|
862
|
+
onChildElementMovedOut: _,
|
|
863
|
+
addNewChildComponentSchema: L,
|
|
864
|
+
triggerBelongedComponentToMoveWhenMoved: g(!1),
|
|
865
|
+
triggerBelongedComponentToDeleteWhenDeleted: g(!1),
|
|
866
|
+
onRemoveComponent: w
|
|
867
|
+
}, a;
|
|
868
|
+
}
|
|
869
|
+
const Ge = /* @__PURE__ */ Q({
|
|
1819
870
|
name: "FNavDesign",
|
|
1820
|
-
props:
|
|
871
|
+
props: B,
|
|
1821
872
|
emits: ["nav"],
|
|
1822
|
-
setup(
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
const a = _({
|
|
873
|
+
setup(t, e) {
|
|
874
|
+
const r = g(t.activeNavId), n = g(t.navData), i = g(t.horizontal);
|
|
875
|
+
g(t.navPicking);
|
|
876
|
+
const a = g(), c = ie("design-item-context"), l = Ye(a, c);
|
|
877
|
+
ae(() => {
|
|
878
|
+
a.value.componentInstance = l;
|
|
879
|
+
}), e.expose(l.value);
|
|
880
|
+
const v = T({
|
|
1831
881
|
get() {
|
|
1832
|
-
return
|
|
882
|
+
return n.value;
|
|
1833
883
|
},
|
|
1834
|
-
set(
|
|
1835
|
-
|
|
884
|
+
set(f) {
|
|
885
|
+
n.value = f, s();
|
|
1836
886
|
}
|
|
1837
|
-
}),
|
|
887
|
+
}), u = T({
|
|
1838
888
|
get() {
|
|
1839
|
-
return
|
|
889
|
+
return r.value;
|
|
1840
890
|
},
|
|
1841
|
-
set(
|
|
1842
|
-
if (
|
|
1843
|
-
const
|
|
1844
|
-
|
|
891
|
+
set(f) {
|
|
892
|
+
if (r.value = f, r.value && v && v.value.length) {
|
|
893
|
+
const d = v.value.find((y) => y.id === r.value);
|
|
894
|
+
d && e.emit("nav", d);
|
|
1845
895
|
}
|
|
1846
896
|
}
|
|
1847
|
-
}),
|
|
1848
|
-
set(
|
|
1849
|
-
|
|
897
|
+
}), o = T({
|
|
898
|
+
set(f) {
|
|
899
|
+
i.value = f;
|
|
1850
900
|
},
|
|
1851
901
|
get() {
|
|
1852
|
-
return
|
|
902
|
+
return i.value;
|
|
1853
903
|
}
|
|
1854
904
|
});
|
|
1855
|
-
function
|
|
1856
|
-
if (
|
|
1857
|
-
const
|
|
1858
|
-
|
|
905
|
+
function s() {
|
|
906
|
+
if (v.value && v.value.length && !r.value) {
|
|
907
|
+
const f = v.value.find((d) => !d.disable);
|
|
908
|
+
f && (r.value = f.id);
|
|
1859
909
|
}
|
|
1860
910
|
}
|
|
1861
|
-
function
|
|
1862
|
-
|
|
911
|
+
function p(f) {
|
|
912
|
+
f.disable || f.id === r.value || (r.value = f.id, e.emit("nav", f));
|
|
1863
913
|
}
|
|
1864
914
|
return () => {
|
|
1865
|
-
var
|
|
1866
|
-
return
|
|
1867
|
-
ref:
|
|
915
|
+
var f;
|
|
916
|
+
return b("div", {
|
|
917
|
+
ref: a,
|
|
1868
918
|
class: ["farris-nav", {
|
|
1869
|
-
"farris-nav-vertical": !
|
|
919
|
+
"farris-nav-vertical": !o.value
|
|
1870
920
|
}]
|
|
1871
|
-
}, [(
|
|
921
|
+
}, [(f = v.value) == null ? void 0 : f.map((d) => b("div", {
|
|
1872
922
|
class: ["farris-nav-item", {
|
|
1873
|
-
active:
|
|
923
|
+
active: d.id === u.value
|
|
1874
924
|
}, {
|
|
1875
|
-
disabled:
|
|
925
|
+
disabled: d.disable
|
|
1876
926
|
}],
|
|
1877
|
-
onClick: () =>
|
|
1878
|
-
}, [
|
|
927
|
+
onClick: () => p(d)
|
|
928
|
+
}, [b("div", {
|
|
1879
929
|
class: "farris-nav-item-link"
|
|
1880
|
-
}, [
|
|
930
|
+
}, [b("span", {
|
|
1881
931
|
class: "farris-nav-item-link-text"
|
|
1882
|
-
}, [
|
|
932
|
+
}, [d.text, d.num && b("div", {
|
|
1883
933
|
class: "farris-nav-item-tag"
|
|
1884
|
-
}, [
|
|
934
|
+
}, [d.num <= t.maxNum && b("span", {
|
|
1885
935
|
class: "tag-text"
|
|
1886
|
-
}, [
|
|
936
|
+
}, [d.num]), d.num > t.maxNum && b("span", {
|
|
1887
937
|
class: "tag-text"
|
|
1888
|
-
}, [
|
|
938
|
+
}, [t.maxNum, X("+")])])])])]))]);
|
|
1889
939
|
};
|
|
1890
940
|
}
|
|
1891
|
-
}),
|
|
1892
|
-
install(
|
|
1893
|
-
|
|
941
|
+
}), Xe = {
|
|
942
|
+
install(t) {
|
|
943
|
+
t.component(j.name, j);
|
|
1894
944
|
},
|
|
1895
|
-
register(
|
|
1896
|
-
|
|
945
|
+
register(t, e, r, n) {
|
|
946
|
+
t.nav = j, e.nav = J;
|
|
1897
947
|
},
|
|
1898
|
-
registerDesigner(
|
|
1899
|
-
|
|
948
|
+
registerDesigner(t, e, r) {
|
|
949
|
+
t.nav = Ge, e.nav = J;
|
|
1900
950
|
}
|
|
1901
951
|
};
|
|
1902
952
|
export {
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
953
|
+
j as FNav,
|
|
954
|
+
Xe as default,
|
|
955
|
+
B as navProps,
|
|
956
|
+
J as propsResolver
|
|
1907
957
|
};
|