@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,102 +1,106 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { isPlainObject as
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as V, ref as O, computed as E, watch as H, createVNode as b, inject as G, onMounted as J } from "vue";
|
|
2
|
+
import { isPlainObject as z, cloneDeep as Q } from "lodash-es";
|
|
3
|
+
const q = {}, _ = {};
|
|
4
4
|
function B(t) {
|
|
5
|
-
const { properties: e, title:
|
|
6
|
-
|
|
5
|
+
const { properties: e, title: a, ignore: c } = t, l = c && Array.isArray(c), y = Object.keys(e).reduce((f, j) => ((!l || !c.find((d) => d === j)) && (f[j] = e[j].type === "object" && e[j].properties ? B(e[j]) : Q(e[j].default)), f), {});
|
|
6
|
+
if (a && (!l || !c.find((f) => f === "id"))) {
|
|
7
|
+
const f = a.toLowerCase().replace(/-/g, "_");
|
|
8
|
+
y.id = `${f}_${Math.random().toString().slice(2, 6)}`;
|
|
9
|
+
}
|
|
10
|
+
return y;
|
|
7
11
|
}
|
|
8
|
-
function
|
|
9
|
-
const
|
|
10
|
-
if (
|
|
11
|
-
let
|
|
12
|
-
const y =
|
|
13
|
-
return
|
|
12
|
+
function W(t, e = {}, a) {
|
|
13
|
+
const c = q[t];
|
|
14
|
+
if (c) {
|
|
15
|
+
let l = B(c);
|
|
16
|
+
const y = _[t];
|
|
17
|
+
return l = y ? y({ getSchemaByType: W }, l, e, a) : l, l;
|
|
14
18
|
}
|
|
15
19
|
return null;
|
|
16
20
|
}
|
|
17
|
-
function Q(t, e) {
|
|
18
|
-
const o = B(e);
|
|
19
|
-
return Object.keys(t).reduce((l, i) => (l[i] && F(l[i]) && F(t[i]) ? Object.assign(l[i], t[i]) : l[i] = t[i], l), o), o;
|
|
20
|
-
}
|
|
21
21
|
function U(t, e) {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
const a = B(e);
|
|
23
|
+
return Object.keys(a).reduce((c, l) => (c[l] && z(c[l]) && z(t[l] || !t[l]) ? Object.assign(c[l], t[l] || {}) : c[l] = t[l], c), a), a;
|
|
24
|
+
}
|
|
25
|
+
function X(t, e) {
|
|
26
|
+
return Object.keys(t).filter((c) => t[c] != null).reduce((c, l) => {
|
|
27
|
+
if (e.has(l)) {
|
|
28
|
+
const y = e.get(l);
|
|
25
29
|
if (typeof y == "string")
|
|
26
|
-
|
|
30
|
+
c[y] = t[l];
|
|
27
31
|
else {
|
|
28
|
-
const f = y(
|
|
29
|
-
Object.assign(
|
|
32
|
+
const f = y(l, t[l], t);
|
|
33
|
+
Object.assign(c, f);
|
|
30
34
|
}
|
|
31
35
|
} else
|
|
32
|
-
l
|
|
33
|
-
return
|
|
36
|
+
c[l] = t[l];
|
|
37
|
+
return c;
|
|
34
38
|
}, {});
|
|
35
39
|
}
|
|
36
|
-
function
|
|
37
|
-
const
|
|
38
|
-
return
|
|
40
|
+
function Y(t, e, a = /* @__PURE__ */ new Map()) {
|
|
41
|
+
const c = U(t, e);
|
|
42
|
+
return X(c, a);
|
|
39
43
|
}
|
|
40
|
-
function
|
|
41
|
-
function e(
|
|
42
|
-
if (typeof
|
|
43
|
-
return
|
|
44
|
-
if (typeof
|
|
45
|
-
const
|
|
46
|
-
if (
|
|
47
|
-
return Number(
|
|
48
|
-
if (
|
|
49
|
-
return Number(
|
|
50
|
-
if (
|
|
51
|
-
return Number(
|
|
44
|
+
function Z(t = {}) {
|
|
45
|
+
function e(n, u, p, v) {
|
|
46
|
+
if (typeof p == "number")
|
|
47
|
+
return v[n].length === p;
|
|
48
|
+
if (typeof p == "object") {
|
|
49
|
+
const k = Object.keys(p)[0], S = p[k];
|
|
50
|
+
if (k === "not")
|
|
51
|
+
return Number(v[n].length) !== Number(S);
|
|
52
|
+
if (k === "moreThan")
|
|
53
|
+
return Number(v[n].length) >= Number(S);
|
|
54
|
+
if (k === "lessThan")
|
|
55
|
+
return Number(v[n].length) <= Number(S);
|
|
52
56
|
}
|
|
53
57
|
return !1;
|
|
54
58
|
}
|
|
55
|
-
function
|
|
56
|
-
return
|
|
59
|
+
function a(n, u, p, v) {
|
|
60
|
+
return v[n] && v[n].propertyValue && String(v[n].propertyValue.value) === String(p);
|
|
57
61
|
}
|
|
58
|
-
const
|
|
62
|
+
const c = /* @__PURE__ */ new Map([
|
|
59
63
|
["length", e],
|
|
60
|
-
["getProperty",
|
|
64
|
+
["getProperty", a]
|
|
61
65
|
]);
|
|
62
|
-
Object.keys(t).reduce((
|
|
63
|
-
function
|
|
64
|
-
const
|
|
65
|
-
return typeof
|
|
66
|
-
if (
|
|
67
|
-
return { target:
|
|
68
|
-
const
|
|
69
|
-
return { target:
|
|
66
|
+
Object.keys(t).reduce((n, u) => (n.set(u, t[u]), n), c);
|
|
67
|
+
function l(n, u) {
|
|
68
|
+
const p = n;
|
|
69
|
+
return typeof u == "number" ? [{ target: p, operator: "length", param: null, value: Number(u) }] : typeof u == "boolean" ? [{ target: p, operator: "getProperty", param: n, value: !!u }] : typeof u == "object" ? Object.keys(u).map((v) => {
|
|
70
|
+
if (v === "length")
|
|
71
|
+
return { target: p, operator: "length", param: null, value: u[v] };
|
|
72
|
+
const k = v, S = u[v];
|
|
73
|
+
return { target: p, operator: "getProperty", param: k, value: S };
|
|
70
74
|
}) : [];
|
|
71
75
|
}
|
|
72
|
-
function y(
|
|
73
|
-
return Object.keys(
|
|
74
|
-
const
|
|
75
|
-
return
|
|
76
|
+
function y(n) {
|
|
77
|
+
return Object.keys(n).reduce((p, v) => {
|
|
78
|
+
const k = l(v, n[v]);
|
|
79
|
+
return p.push(...k), p;
|
|
76
80
|
}, []);
|
|
77
81
|
}
|
|
78
|
-
function f(
|
|
79
|
-
if (
|
|
80
|
-
const
|
|
81
|
-
return
|
|
82
|
+
function f(n, u) {
|
|
83
|
+
if (c.has(n.operator)) {
|
|
84
|
+
const p = c.get(n.operator);
|
|
85
|
+
return p && p(n.target, n.param, n.value, u) || !1;
|
|
82
86
|
}
|
|
83
87
|
return !1;
|
|
84
88
|
}
|
|
85
|
-
function
|
|
86
|
-
return y(
|
|
89
|
+
function j(n, u) {
|
|
90
|
+
return y(n).reduce((k, S) => k && f(S, u), !0);
|
|
87
91
|
}
|
|
88
|
-
function
|
|
89
|
-
const
|
|
90
|
-
return
|
|
92
|
+
function d(n, u) {
|
|
93
|
+
const p = Object.keys(n), v = p.includes("allOf"), k = p.includes("anyOf"), S = v || k, M = (S ? n[S ? v ? "allOf" : "anyOf" : "allOf"] : [n]).map((T) => j(T, u));
|
|
94
|
+
return v ? !M.includes(!1) : M.includes(!0);
|
|
91
95
|
}
|
|
92
|
-
return { parseValueSchema:
|
|
96
|
+
return { parseValueSchema: d };
|
|
93
97
|
}
|
|
94
|
-
const
|
|
95
|
-
|
|
96
|
-
function x(t, e,
|
|
97
|
-
return
|
|
98
|
-
const
|
|
99
|
-
return Object.assign(
|
|
98
|
+
const C = {}, K = {};
|
|
99
|
+
Z();
|
|
100
|
+
function x(t, e, a = /* @__PURE__ */ new Map(), c = (f, j, d, n) => j, l = {}, y = (f) => f) {
|
|
101
|
+
return q[e.title] = e, _[e.title] = c, C[e.title] = l, K[e.title] = y, (f = {}) => {
|
|
102
|
+
const j = Y(f, e, a), d = Object.keys(t).reduce((n, u) => (n[u] = t[u].default, n), {});
|
|
103
|
+
return Object.assign(d, j);
|
|
100
104
|
};
|
|
101
105
|
}
|
|
102
106
|
function I(t, e) {
|
|
@@ -105,10 +109,10 @@ function I(t, e) {
|
|
|
105
109
|
const ee = /* @__PURE__ */ new Map([
|
|
106
110
|
["appearance", I]
|
|
107
111
|
]);
|
|
108
|
-
function te(t, e,
|
|
112
|
+
function te(t, e, a) {
|
|
109
113
|
return e;
|
|
110
114
|
}
|
|
111
|
-
const se = "https://json-schema.org/draft/2020-12/schema",
|
|
115
|
+
const se = "https://json-schema.org/draft/2020-12/schema", ne = "https://farris-design.gitee.io/step.schema.json", re = "step", ce = "A Farris Component", le = "object", ae = {
|
|
112
116
|
id: {
|
|
113
117
|
description: "The unique identifier for step",
|
|
114
118
|
type: "string"
|
|
@@ -170,17 +174,17 @@ const se = "https://json-schema.org/draft/2020-12/schema", re = "https://farris-
|
|
|
170
174
|
type: "boolean",
|
|
171
175
|
default: !0
|
|
172
176
|
}
|
|
173
|
-
},
|
|
177
|
+
}, oe = [
|
|
174
178
|
"id",
|
|
175
179
|
"type"
|
|
176
|
-
],
|
|
180
|
+
], ie = {
|
|
177
181
|
$schema: se,
|
|
178
|
-
$id:
|
|
179
|
-
title:
|
|
182
|
+
$id: ne,
|
|
183
|
+
title: re,
|
|
180
184
|
description: ce,
|
|
181
185
|
type: le,
|
|
182
186
|
properties: ae,
|
|
183
|
-
required:
|
|
187
|
+
required: oe
|
|
184
188
|
}, ue = "step", pe = "A Farris Component", fe = "object", ve = {
|
|
185
189
|
basic: {
|
|
186
190
|
description: "Basic Infomation",
|
|
@@ -208,7 +212,7 @@ const se = "https://json-schema.org/draft/2020-12/schema", re = "https://farris-
|
|
|
208
212
|
description: pe,
|
|
209
213
|
type: fe,
|
|
210
214
|
categories: ve
|
|
211
|
-
},
|
|
215
|
+
}, A = {
|
|
212
216
|
/** 步骤条方向 */
|
|
213
217
|
direction: { type: String, default: "horizontal" },
|
|
214
218
|
/** 是否平铺 */
|
|
@@ -238,310 +242,309 @@ const se = "https://json-schema.org/draft/2020-12/schema", re = "https://farris-
|
|
|
238
242
|
/** 步骤条点击后事件 */
|
|
239
243
|
onClick: { type: Function, default: () => {
|
|
240
244
|
} }
|
|
241
|
-
},
|
|
245
|
+
}, F = x(A, ie, ee, te, he), L = /* @__PURE__ */ V({
|
|
242
246
|
name: "FStep",
|
|
243
|
-
props:
|
|
247
|
+
props: A,
|
|
244
248
|
emits: ["click"],
|
|
245
249
|
setup(t, e) {
|
|
246
|
-
const
|
|
247
|
-
"f-progress-step-list":
|
|
248
|
-
"f-progress-step-list-block":
|
|
249
|
-
"f-progress-step-horizontal-fill":
|
|
250
|
-
"f-progress-step-vertical-fill":
|
|
251
|
-
})),
|
|
252
|
-
height:
|
|
250
|
+
const a = O(t.direction), c = O(t.fill), l = O(t.height), y = O(t.steps), f = O(t.clickable), j = O(0), d = O(t.activeIndex), n = E(() => ({
|
|
251
|
+
"f-progress-step-list": a.value === "horizontal",
|
|
252
|
+
"f-progress-step-list-block": a.value === "vertical",
|
|
253
|
+
"f-progress-step-horizontal-fill": a.value === "horizontal" && c.value,
|
|
254
|
+
"f-progress-step-vertical-fill": a.value === "vertical" && c.value
|
|
255
|
+
})), u = E(() => ({
|
|
256
|
+
height: a.value === "vertical" ? `${l.value}px` : ""
|
|
253
257
|
}));
|
|
254
|
-
function
|
|
255
|
-
const
|
|
258
|
+
function p(r, s) {
|
|
259
|
+
const g = {
|
|
256
260
|
step: !0,
|
|
257
|
-
active:
|
|
261
|
+
active: s === d.value,
|
|
258
262
|
clickable: f.value,
|
|
259
263
|
// 'click-disable': step.disable,
|
|
260
|
-
current:
|
|
264
|
+
current: s === d.value
|
|
261
265
|
};
|
|
262
|
-
return
|
|
266
|
+
return s < d.value && (g.finish = !0), g;
|
|
263
267
|
}
|
|
264
|
-
function
|
|
265
|
-
const
|
|
266
|
-
step:
|
|
267
|
-
stepIndex:
|
|
268
|
+
function v(r, s) {
|
|
269
|
+
const g = {
|
|
270
|
+
step: r,
|
|
271
|
+
stepIndex: s
|
|
268
272
|
};
|
|
269
|
-
e.emit("click",
|
|
273
|
+
e.emit("click", g);
|
|
270
274
|
}
|
|
271
|
-
function
|
|
272
|
-
const
|
|
275
|
+
function k(r, s) {
|
|
276
|
+
const g = {
|
|
273
277
|
"f-progressstep-row": !0,
|
|
274
|
-
"step-active":
|
|
275
|
-
"step-current":
|
|
278
|
+
"step-active": s === d.value,
|
|
279
|
+
"step-current": s === d.value
|
|
276
280
|
};
|
|
277
|
-
return
|
|
281
|
+
return s < d.value && (g["step-finish"] = !0), g;
|
|
278
282
|
}
|
|
279
|
-
function
|
|
283
|
+
function S(r, s) {
|
|
280
284
|
return {
|
|
281
285
|
"step-icon": !0,
|
|
282
|
-
"step-success":
|
|
283
|
-
"f-icon":
|
|
284
|
-
"f-icon-check":
|
|
286
|
+
"step-success": s,
|
|
287
|
+
"f-icon": s,
|
|
288
|
+
"f-icon-check": s
|
|
285
289
|
};
|
|
286
290
|
}
|
|
287
|
-
function P(
|
|
288
|
-
const
|
|
289
|
-
return
|
|
291
|
+
function P(r, s) {
|
|
292
|
+
const g = [];
|
|
293
|
+
return s >= d.value || s === j.value ? g.push(b("span", {
|
|
290
294
|
class: "step-icon"
|
|
291
|
-
}, [
|
|
292
|
-
class:
|
|
293
|
-
}, null)),
|
|
295
|
+
}, [s + 1])) : g.push(b("span", {
|
|
296
|
+
class: S(r, !0)
|
|
297
|
+
}, null)), g;
|
|
294
298
|
}
|
|
295
|
-
function
|
|
299
|
+
function D(r, s) {
|
|
296
300
|
return {
|
|
297
301
|
"step-name": !0,
|
|
298
|
-
"step-name-success":
|
|
302
|
+
"step-name-success": s < d.value
|
|
299
303
|
};
|
|
300
304
|
}
|
|
301
|
-
function
|
|
302
|
-
return
|
|
305
|
+
function M(r, s) {
|
|
306
|
+
return b("div", {
|
|
303
307
|
class: "f-progress-step-title"
|
|
304
|
-
}, [
|
|
305
|
-
class:
|
|
306
|
-
}, [
|
|
308
|
+
}, [b("p", {
|
|
309
|
+
class: D(r, s)
|
|
310
|
+
}, [r.title])]);
|
|
307
311
|
}
|
|
308
|
-
function
|
|
312
|
+
function R(r, s) {
|
|
309
313
|
return {
|
|
310
314
|
"f-progress-step-line": !0,
|
|
311
|
-
"f-progress-step-line-success":
|
|
315
|
+
"f-progress-step-line-success": s === d.value
|
|
312
316
|
};
|
|
313
317
|
}
|
|
314
|
-
function T(
|
|
315
|
-
return
|
|
318
|
+
function T(r, s) {
|
|
319
|
+
return s !== y.value.length - 1;
|
|
316
320
|
}
|
|
317
|
-
const
|
|
321
|
+
const w = E(() => ({
|
|
318
322
|
triangle: !0,
|
|
319
|
-
"":
|
|
323
|
+
"": a.value === "vertical"
|
|
320
324
|
}));
|
|
321
|
-
function
|
|
322
|
-
return y.value.map((
|
|
323
|
-
class:
|
|
324
|
-
onClick: (
|
|
325
|
-
}, [
|
|
326
|
-
class:
|
|
327
|
-
}, [
|
|
325
|
+
function h() {
|
|
326
|
+
return y.value.map((r, s) => b("li", {
|
|
327
|
+
class: p(r, s),
|
|
328
|
+
onClick: (g) => v(r, s)
|
|
329
|
+
}, [b("div", {
|
|
330
|
+
class: k(r, s)
|
|
331
|
+
}, [b("div", {
|
|
328
332
|
class: "f-progress-step-content"
|
|
329
|
-
}, [P(
|
|
330
|
-
class:
|
|
331
|
-
}, [
|
|
332
|
-
class:
|
|
333
|
+
}, [P(r, s), M(r, s)]), T(r, s) && b("div", {
|
|
334
|
+
class: R(r, s)
|
|
335
|
+
}, [b("span", {
|
|
336
|
+
class: w.value
|
|
333
337
|
}, null)])])]));
|
|
334
338
|
}
|
|
335
|
-
return
|
|
336
|
-
t.activeIndex > -1 && t.activeIndex <= y.value.length && (
|
|
337
|
-
}), () =>
|
|
339
|
+
return H(() => t.activeIndex, () => {
|
|
340
|
+
t.activeIndex > -1 && t.activeIndex <= y.value.length && (d.value = t.activeIndex, h());
|
|
341
|
+
}), () => b("div", {
|
|
338
342
|
class: "f-progress-step"
|
|
339
|
-
}, [
|
|
340
|
-
class:
|
|
341
|
-
style:
|
|
342
|
-
}, [
|
|
343
|
+
}, [b("ul", {
|
|
344
|
+
class: n.value,
|
|
345
|
+
style: u.value
|
|
346
|
+
}, [h()])]);
|
|
343
347
|
}
|
|
344
348
|
});
|
|
345
|
-
function ge(t, e,
|
|
346
|
-
var
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
const i = "", y = "", f = m();
|
|
350
|
-
function O() {
|
|
349
|
+
function ge(t, e, a) {
|
|
350
|
+
var w;
|
|
351
|
+
const c = "", l = "", y = O();
|
|
352
|
+
function f() {
|
|
351
353
|
return (e == null ? void 0 : e.schema.componentType) !== "frame";
|
|
352
354
|
}
|
|
353
|
-
function
|
|
355
|
+
function j() {
|
|
354
356
|
return !1;
|
|
355
357
|
}
|
|
356
|
-
function
|
|
358
|
+
function d() {
|
|
357
359
|
return (e == null ? void 0 : e.schema.componentType) !== "frame";
|
|
358
360
|
}
|
|
359
|
-
function
|
|
361
|
+
function n() {
|
|
360
362
|
return (e == null ? void 0 : e.schema.componentType) === "frame";
|
|
361
363
|
}
|
|
362
|
-
function u(
|
|
363
|
-
if (!
|
|
364
|
+
function u(h) {
|
|
365
|
+
if (!h || !h.value)
|
|
364
366
|
return null;
|
|
365
|
-
if (
|
|
366
|
-
return
|
|
367
|
-
const r =
|
|
368
|
-
return
|
|
367
|
+
if (h.value.schema && h.value.schema.type === "component")
|
|
368
|
+
return h.value;
|
|
369
|
+
const r = O(h == null ? void 0 : h.value.parent), s = u(r);
|
|
370
|
+
return s || null;
|
|
369
371
|
}
|
|
370
|
-
function h
|
|
371
|
-
const { componentInstance: r, designerItemElementRef:
|
|
372
|
-
return !r || !r.value ? null : r.value.canMove ?
|
|
372
|
+
function p(h = e) {
|
|
373
|
+
const { componentInstance: r, designerItemElementRef: s } = h;
|
|
374
|
+
return !r || !r.value ? null : r.value.canMove ? s : p(h.parent);
|
|
373
375
|
}
|
|
374
|
-
function
|
|
375
|
-
return !!
|
|
376
|
+
function v(h) {
|
|
377
|
+
return !!a;
|
|
376
378
|
}
|
|
377
379
|
function k() {
|
|
378
380
|
return (e == null ? void 0 : e.schema.label) || (e == null ? void 0 : e.schema.title) || (e == null ? void 0 : e.schema.name);
|
|
379
381
|
}
|
|
380
|
-
function
|
|
382
|
+
function S() {
|
|
381
383
|
}
|
|
382
|
-
function
|
|
384
|
+
function P(h, r) {
|
|
383
385
|
}
|
|
384
|
-
function
|
|
385
|
-
const { componentType:
|
|
386
|
-
let
|
|
387
|
-
const
|
|
388
|
-
return
|
|
386
|
+
function D(h, r) {
|
|
387
|
+
const { componentType: s } = h;
|
|
388
|
+
let g = W(s, h, r);
|
|
389
|
+
const o = s.toLowerCase().replace(/-/g, "_");
|
|
390
|
+
return g && !g.id && g.type === s && (g.id = `${o}_${Math.random().toString().slice(2, 6)}`), g;
|
|
389
391
|
}
|
|
390
|
-
function
|
|
391
|
-
const p = String(s.getAttribute("data-controltype")), n = s.getAttribute("data-feature"), a = n ? JSON.parse(n) : {};
|
|
392
|
-
a.parentComponentInstance = f.value;
|
|
393
|
-
let g = L(p, a);
|
|
394
|
-
const D = p.toLowerCase().replace("-", "_");
|
|
395
|
-
return g && !g.id && g.type === p && (g.id = `${D}_${Math.random().toString().slice(2, 6)}`), g;
|
|
392
|
+
function M(h) {
|
|
396
393
|
}
|
|
397
|
-
function
|
|
394
|
+
function R(...h) {
|
|
398
395
|
}
|
|
399
|
-
function
|
|
396
|
+
function T() {
|
|
397
|
+
e != null && e.schema.contents && e.schema.contents.map((h) => {
|
|
398
|
+
var g;
|
|
399
|
+
let r = h.id;
|
|
400
|
+
h.type === "component-ref" && (r = h.component);
|
|
401
|
+
const s = t.value.querySelector(`#${r}-design-item`);
|
|
402
|
+
(g = s == null ? void 0 : s.componentInstance) != null && g.value.onRemoveComponent && s.componentInstance.value.onRemoveComponent();
|
|
403
|
+
});
|
|
400
404
|
}
|
|
401
|
-
return
|
|
402
|
-
canMove:
|
|
403
|
-
canSelectParent:
|
|
404
|
-
canDelete:
|
|
405
|
-
canNested: !
|
|
405
|
+
return y.value = {
|
|
406
|
+
canMove: f(),
|
|
407
|
+
canSelectParent: j(),
|
|
408
|
+
canDelete: d(),
|
|
409
|
+
canNested: !n(),
|
|
406
410
|
contents: e == null ? void 0 : e.schema.contents,
|
|
407
411
|
elementRef: t,
|
|
408
|
-
parent: (
|
|
412
|
+
parent: (w = e == null ? void 0 : e.parent) == null ? void 0 : w.componentInstance,
|
|
409
413
|
schema: e == null ? void 0 : e.schema,
|
|
410
|
-
styles:
|
|
411
|
-
designerClass:
|
|
412
|
-
canAccepts:
|
|
414
|
+
styles: c,
|
|
415
|
+
designerClass: l,
|
|
416
|
+
canAccepts: v,
|
|
413
417
|
getBelongedComponentInstance: u,
|
|
414
|
-
getDraggableDesignItemElement:
|
|
418
|
+
getDraggableDesignItemElement: p,
|
|
415
419
|
getDraggingDisplayText: k,
|
|
416
|
-
getPropConfig:
|
|
417
|
-
getDragScopeElement:
|
|
418
|
-
onAcceptMovedChildElement:
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
}, f;
|
|
420
|
+
getPropConfig: R,
|
|
421
|
+
getDragScopeElement: S,
|
|
422
|
+
onAcceptMovedChildElement: P,
|
|
423
|
+
onChildElementMovedOut: M,
|
|
424
|
+
addNewChildComponentSchema: D,
|
|
425
|
+
triggerBelongedComponentToMoveWhenMoved: O(!1),
|
|
426
|
+
triggerBelongedComponentToDeleteWhenDeleted: O(!1),
|
|
427
|
+
onRemoveComponent: T
|
|
428
|
+
}, y;
|
|
426
429
|
}
|
|
427
|
-
const
|
|
430
|
+
const ye = /* @__PURE__ */ V({
|
|
428
431
|
name: "FStepDesign",
|
|
429
|
-
props:
|
|
432
|
+
props: A,
|
|
430
433
|
emits: [],
|
|
431
434
|
setup(t, e) {
|
|
432
|
-
const
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
}), e.expose(
|
|
436
|
-
const
|
|
437
|
-
"f-progress-step-list":
|
|
438
|
-
"f-progress-step-list-block":
|
|
439
|
-
"f-progress-step-horizontal-fill":
|
|
440
|
-
"f-progress-step-vertical-fill":
|
|
441
|
-
})),
|
|
442
|
-
height:
|
|
435
|
+
const a = O(t.direction), c = O(t.fill), l = O(t.height), y = O(t.steps), f = O(0), j = O(t.clickable), d = O(0), n = O(), u = G("design-item-context"), p = ge(n, u);
|
|
436
|
+
J(() => {
|
|
437
|
+
n.value.componentInstance = p;
|
|
438
|
+
}), e.expose(p.value);
|
|
439
|
+
const v = E(() => ({
|
|
440
|
+
"f-progress-step-list": a.value === "horizontal",
|
|
441
|
+
"f-progress-step-list-block": a.value === "vertical",
|
|
442
|
+
"f-progress-step-horizontal-fill": a.value === "horizontal" && c.value,
|
|
443
|
+
"f-progress-step-vertical-fill": a.value === "vertical" && c.value
|
|
444
|
+
})), k = E(() => ({
|
|
445
|
+
height: a.value === "vertical" ? `${l.value}px` : ""
|
|
443
446
|
}));
|
|
444
|
-
function
|
|
445
|
-
const
|
|
447
|
+
function S(o, i) {
|
|
448
|
+
const m = {
|
|
446
449
|
step: !0,
|
|
447
|
-
active:
|
|
448
|
-
clickable:
|
|
449
|
-
"click-disable":
|
|
450
|
-
current:
|
|
450
|
+
active: i === f.value,
|
|
451
|
+
clickable: j.value,
|
|
452
|
+
"click-disable": o.disable,
|
|
453
|
+
current: i === f.value
|
|
451
454
|
};
|
|
452
|
-
return
|
|
455
|
+
return i < f.value && (m.finish = !0), o.status && (m[o.status] = !0), o.hasOwnProperty("class") && o.class.split(" ").reduce(($, N) => ($[N] = !0, $), m), m;
|
|
453
456
|
}
|
|
454
|
-
function P(
|
|
457
|
+
function P(o, i) {
|
|
455
458
|
}
|
|
456
|
-
function
|
|
457
|
-
const
|
|
459
|
+
function D(o, i) {
|
|
460
|
+
const m = {
|
|
458
461
|
"f-progressstep-row": !0,
|
|
459
|
-
"step-active":
|
|
460
|
-
"step-current":
|
|
462
|
+
"step-active": i === f.value,
|
|
463
|
+
"step-current": i === f.value
|
|
461
464
|
};
|
|
462
|
-
return
|
|
465
|
+
return i < f.value && (m["step-finish"] = !0), o.status && (m["step-" + o.status] = !0), m;
|
|
463
466
|
}
|
|
464
|
-
function
|
|
465
|
-
const
|
|
467
|
+
function M(o, i) {
|
|
468
|
+
const m = {
|
|
466
469
|
"step-icon": !0,
|
|
467
|
-
"step-success":
|
|
468
|
-
"k-icon":
|
|
469
|
-
"k-i-check":
|
|
470
|
+
"step-success": i,
|
|
471
|
+
"k-icon": i,
|
|
472
|
+
"k-i-check": i
|
|
470
473
|
};
|
|
471
|
-
return
|
|
474
|
+
return o.hasOwnProperty("icon") && o.class.split(" ").reduce(($, N) => ($[N] = !0, $), m), m;
|
|
472
475
|
}
|
|
473
|
-
function
|
|
474
|
-
const
|
|
475
|
-
return
|
|
476
|
-
class:
|
|
477
|
-
}, null)) :
|
|
476
|
+
function R(o, i) {
|
|
477
|
+
const m = [];
|
|
478
|
+
return o.icon ? m.push(b("span", {
|
|
479
|
+
class: M(o, !1)
|
|
480
|
+
}, null)) : i >= f.value || i === d.value ? m.push(b("span", {
|
|
478
481
|
class: "step-icon"
|
|
479
|
-
}, [
|
|
480
|
-
class:
|
|
481
|
-
}, null)),
|
|
482
|
+
}, [i + 1])) : m.push(b("span", {
|
|
483
|
+
class: M(o, !0)
|
|
484
|
+
}, null)), m;
|
|
482
485
|
}
|
|
483
|
-
function T(
|
|
486
|
+
function T(o, i) {
|
|
484
487
|
return {
|
|
485
488
|
"step-name": !0,
|
|
486
|
-
"step-name-success":
|
|
489
|
+
"step-name-success": i < f.value
|
|
487
490
|
};
|
|
488
491
|
}
|
|
489
|
-
function
|
|
490
|
-
return
|
|
492
|
+
function w(o, i) {
|
|
493
|
+
return b("div", {
|
|
491
494
|
class: "f-progress-step-title"
|
|
492
|
-
}, [
|
|
493
|
-
class: T(
|
|
494
|
-
}, [
|
|
495
|
+
}, [b("p", {
|
|
496
|
+
class: T(o, i)
|
|
497
|
+
}, [o.title])]);
|
|
495
498
|
}
|
|
496
|
-
function
|
|
499
|
+
function h(o, i) {
|
|
497
500
|
return {
|
|
498
501
|
"f-progress-step-line": !0,
|
|
499
|
-
"f-progress-step-line-success":
|
|
502
|
+
"f-progress-step-line-success": i === f.value
|
|
500
503
|
};
|
|
501
504
|
}
|
|
502
|
-
function
|
|
503
|
-
return
|
|
505
|
+
function r(o, i) {
|
|
506
|
+
return i !== y.value.length - 1;
|
|
504
507
|
}
|
|
505
|
-
const
|
|
508
|
+
const s = E(() => ({
|
|
506
509
|
triangle: !0,
|
|
507
|
-
"":
|
|
510
|
+
"": a.value === "vertical"
|
|
508
511
|
}));
|
|
509
|
-
function
|
|
510
|
-
return y.value.map((
|
|
511
|
-
class:
|
|
512
|
-
onClick: (
|
|
513
|
-
}, [
|
|
514
|
-
class:
|
|
515
|
-
}, [
|
|
512
|
+
function g() {
|
|
513
|
+
return y.value.map((o, i) => b("li", {
|
|
514
|
+
class: S(o, i),
|
|
515
|
+
onClick: (m) => void 0
|
|
516
|
+
}, [b("div", {
|
|
517
|
+
class: D(o, i)
|
|
518
|
+
}, [b("div", {
|
|
516
519
|
class: "f-progress-step-content"
|
|
517
|
-
}, [
|
|
518
|
-
class:
|
|
519
|
-
}, [
|
|
520
|
-
class:
|
|
520
|
+
}, [R(o, i), w(o, i)]), r(o, i) && b("div", {
|
|
521
|
+
class: h(o, i)
|
|
522
|
+
}, [b("span", {
|
|
523
|
+
class: s.value
|
|
521
524
|
}, null)])])]));
|
|
522
525
|
}
|
|
523
|
-
return () =>
|
|
524
|
-
ref:
|
|
526
|
+
return () => b("div", {
|
|
527
|
+
ref: n,
|
|
525
528
|
class: "f-progress-step"
|
|
526
|
-
}, [
|
|
527
|
-
class:
|
|
528
|
-
style:
|
|
529
|
-
}, [
|
|
529
|
+
}, [b("ul", {
|
|
530
|
+
class: v.value,
|
|
531
|
+
style: k.value
|
|
532
|
+
}, [g()])]);
|
|
530
533
|
}
|
|
531
534
|
}), me = {
|
|
532
535
|
install(t) {
|
|
533
|
-
t.component(
|
|
536
|
+
t.component(L.name, L);
|
|
534
537
|
},
|
|
535
|
-
register(t, e,
|
|
536
|
-
t.step =
|
|
538
|
+
register(t, e, a, c) {
|
|
539
|
+
t.step = L, e.step = F;
|
|
537
540
|
},
|
|
538
|
-
registerDesigner(t, e,
|
|
539
|
-
t.step =
|
|
541
|
+
registerDesigner(t, e, a) {
|
|
542
|
+
t.step = ye, e.step = F;
|
|
540
543
|
}
|
|
541
544
|
};
|
|
542
545
|
export {
|
|
543
|
-
|
|
546
|
+
L as Step,
|
|
544
547
|
me as default,
|
|
545
|
-
|
|
546
|
-
|
|
548
|
+
F as propsResolver,
|
|
549
|
+
A as stepProps
|
|
547
550
|
};
|