@farris/ui-vue 1.7.1 → 1.7.2-beta.2
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 +312 -61
- package/components/accordion/index.umd.cjs +1 -1
- package/components/avatar/index.esm.js +1492 -59
- package/components/avatar/index.umd.cjs +1 -1
- package/components/binding-selector/index.esm.js +752 -8
- package/components/binding-selector/index.umd.cjs +1 -1
- package/components/button-edit/index.esm.js +1 -1
- package/components/button-edit/index.umd.cjs +1 -1
- package/components/button-group/index.esm.js +266 -110
- package/components/button-group/index.umd.cjs +1 -1
- package/components/calendar/index.esm.js +344 -341
- package/components/calendar/index.umd.cjs +3 -3
- package/components/code-editor/index.esm.js +237 -169
- package/components/code-editor/index.umd.cjs +3 -3
- package/components/collection-property-editor/index.esm.js +302 -299
- package/components/collection-property-editor/index.umd.cjs +2 -2
- package/components/color-picker/index.esm.js +812 -502
- package/components/color-picker/index.umd.cjs +1 -1
- package/components/combo-list/index.esm.js +329 -292
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/combo-tree/index.esm.js +355 -174
- package/components/combo-tree/index.umd.cjs +1 -1
- package/components/comment/index.esm.js +294 -291
- package/components/comment/index.umd.cjs +6 -6
- package/components/common/index.esm.js +1 -1
- package/components/common/index.umd.cjs +1 -1
- package/components/component/index.esm.js +4390 -2708
- package/components/component/index.umd.cjs +8 -1
- package/components/condition/index.esm.js +3140 -487
- package/components/condition/index.umd.cjs +8 -1
- package/components/data-grid/index.esm.js +4 -2
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/data-view/index.esm.js +1859 -1832
- package/components/data-view/index.umd.cjs +1 -1
- package/components/date-picker/index.esm.js +1 -1
- package/components/date-picker/index.umd.cjs +1 -1
- package/components/designer-canvas/index.esm.js +3731 -2717
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/drawer/index.esm.js +417 -405
- package/components/drawer/index.umd.cjs +2 -2
- package/components/dropdown/index.esm.js +373 -124
- package/components/dropdown/index.umd.cjs +2 -2
- package/components/dynamic-form/index.esm.js +1245 -1895
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/dynamic-resolver/index.esm.js +275 -271
- package/components/dynamic-resolver/index.umd.cjs +2 -2
- package/components/dynamic-view/index.esm.js +529 -450
- package/components/dynamic-view/index.umd.cjs +1 -1
- package/components/event-parameter/index.esm.js +1 -1
- package/components/event-parameter/index.umd.cjs +1 -1
- package/components/events-editor/index.esm.js +2613 -1544
- package/components/events-editor/index.umd.cjs +3 -3
- package/components/expression-editor/index.css +1 -1
- package/components/expression-editor/index.esm.js +7376 -2
- package/components/expression-editor/index.umd.cjs +427 -1
- package/components/fieldset/index.esm.js +1 -1
- package/components/fieldset/index.umd.cjs +1 -1
- package/components/filter-bar/index.esm.js +423 -415
- package/components/filter-bar/index.umd.cjs +2 -2
- package/components/filter-condition-editor/index.css +1 -1
- package/components/filter-condition-editor/index.esm.js +9049 -425
- package/components/filter-condition-editor/index.umd.cjs +427 -1
- package/components/html-template/index.esm.js +33 -36
- package/components/html-template/index.umd.cjs +1 -1
- package/components/image/index.esm.js +364 -355
- package/components/image/index.umd.cjs +2 -2
- package/components/image-cropper/index.esm.js +615 -361
- package/components/image-cropper/index.umd.cjs +1 -1
- package/components/json-editor/index.esm.js +325 -247
- package/components/json-editor/index.umd.cjs +1 -1
- package/components/language-textbox/index.esm.js +411 -409
- package/components/language-textbox/index.umd.cjs +2 -2
- package/components/layout/index.esm.js +549 -163
- package/components/layout/index.umd.cjs +1 -1
- package/components/list-nav/index.esm.js +837 -39
- package/components/list-nav/index.umd.cjs +1 -1
- package/components/list-view/index.esm.js +427 -646
- package/components/list-view/index.umd.cjs +6 -6
- package/components/lookup/index.esm.js +3624 -3625
- package/components/lookup/index.umd.cjs +1 -1
- package/components/mapping-editor/index.esm.js +5 -3
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/menu-lookup/index.esm.js +577 -536
- package/components/menu-lookup/index.umd.cjs +6 -6
- package/components/nav/index.esm.js +311 -31
- package/components/nav/index.umd.cjs +1 -1
- package/components/number-range/index.esm.js +1641 -189
- package/components/number-range/index.umd.cjs +1 -1
- package/components/number-spinner/index.esm.js +82 -82
- package/components/number-spinner/index.umd.cjs +1 -1
- package/components/order/index.esm.js +1196 -851
- package/components/order/index.umd.cjs +6 -6
- package/components/page-footer/index.esm.js +331 -48
- package/components/page-footer/index.umd.cjs +1 -1
- package/components/page-header/index.esm.js +110 -116
- package/components/page-header/index.umd.cjs +1 -1
- package/components/pagination/index.esm.js +509 -232
- package/components/pagination/index.umd.cjs +1 -1
- package/components/progress/index.esm.js +353 -148
- package/components/progress/index.umd.cjs +3 -3
- package/components/property-editor/index.esm.js +157 -153
- package/components/property-editor/index.umd.cjs +1 -1
- package/components/property-panel/index.esm.js +1817 -854
- package/components/property-panel/index.umd.cjs +12 -5
- package/components/query-solution/index.css +1 -1
- package/components/query-solution/index.esm.js +6858 -3984
- package/components/query-solution/index.umd.cjs +13 -6
- package/components/response-layout/index.esm.js +1 -1
- package/components/response-layout/index.umd.cjs +1 -1
- package/components/schema-selector/index.esm.js +2448 -2222
- package/components/schema-selector/index.umd.cjs +7 -7
- package/components/search-box/index.esm.js +244 -72
- package/components/search-box/index.umd.cjs +1 -1
- package/components/section/index.esm.js +212 -209
- package/components/section/index.umd.cjs +2 -2
- package/components/smoke-detector/index.esm.js +179 -8
- package/components/smoke-detector/index.umd.cjs +1 -1
- package/components/sort-condition-editor/index.css +1 -0
- package/components/sort-condition-editor/index.esm.js +9493 -4
- package/components/sort-condition-editor/index.umd.cjs +427 -1
- package/components/splitter/index.esm.js +1172 -142
- package/components/splitter/index.umd.cjs +1 -1
- package/components/step/index.esm.js +47 -48
- package/components/step/index.umd.cjs +1 -1
- package/components/tabs/index.esm.js +490 -419
- package/components/tabs/index.umd.cjs +1 -1
- package/components/text/index.esm.js +217 -73
- package/components/text/index.umd.cjs +1 -1
- package/components/textarea/index.esm.js +29 -27
- package/components/textarea/index.umd.cjs +2 -2
- package/components/transfer/index.esm.js +760 -543
- package/components/transfer/index.umd.cjs +5 -5
- package/components/tree-grid/index.esm.js +129 -128
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-view/index.esm.js +320 -153
- package/components/tree-view/index.umd.cjs +1 -1
- package/components/uploader/index.esm.js +1112 -607
- package/components/uploader/index.umd.cjs +2 -2
- package/components/verify-detail/index.esm.js +359 -106
- package/components/verify-detail/index.umd.cjs +1 -1
- package/components/video/index.esm.js +222 -89
- package/components/video/index.umd.cjs +1 -1
- package/components/weather/index.esm.js +290 -199
- package/components/weather/index.umd.cjs +1 -1
- package/designer/data-grid/index.esm.js +5301 -4507
- package/designer/data-grid/index.umd.cjs +17 -10
- package/designer/drawer/index.esm.js +626 -615
- package/designer/drawer/index.umd.cjs +2 -2
- package/designer/dynamic-form/index.esm.js +2043 -1290
- package/designer/dynamic-form/index.umd.cjs +8 -1
- package/designer/farris-designer.all.esm.js +14263 -12505
- package/designer/farris-designer.all.umd.cjs +16 -16
- package/designer/list-view/index.esm.js +327 -327
- package/designer/list-view/index.umd.cjs +3 -3
- package/designer/modal/index.esm.js +29 -137
- package/designer/modal/index.umd.cjs +1 -1
- package/designer/radio-group/index.esm.js +238 -232
- package/designer/radio-group/index.umd.cjs +1 -1
- package/designer/response-layout-editor/index.esm.js +178 -171
- package/designer/response-layout-editor/index.umd.cjs +1 -1
- package/designer/response-toolbar/index.esm.js +1 -1
- package/designer/response-toolbar/index.umd.cjs +1 -1
- package/designer/section/index.esm.js +1 -6
- package/designer/section/index.umd.cjs +1 -1
- package/designer/tabs/index.esm.js +3431 -2493
- package/designer/tabs/index.umd.cjs +2 -2
- package/designer/time-picker/index.esm.js +195 -188
- package/designer/time-picker/index.umd.cjs +1 -1
- package/designer/tree-grid/index.esm.js +822 -464
- package/designer/tree-grid/index.umd.cjs +1 -1
- package/farris.all.esm.js +77525 -74884
- package/farris.all.umd.cjs +93 -93
- package/index.css +1 -1
- package/package.json +1 -1
- package/types/accordion/src/accordion.props.d.ts +1 -0
- package/types/accordion/src/components/accordion-item.props.d.ts +1 -0
- package/types/avatar/src/avatar.props.d.ts +1 -0
- package/types/binding-selector/index.d.ts +54 -0
- package/types/binding-selector/src/binding-selector.props.d.ts +1 -0
- package/types/button-group/index.d.ts +0 -15
- package/types/button-group/src/button-group.props.d.ts +1 -0
- package/types/code-editor/index.d.ts +1 -0
- package/types/code-editor/src/code-textbox.component.d.ts +6 -6
- package/types/code-editor/src/code-textbox.props.d.ts +2 -0
- package/types/color-picker/index.d.ts +15 -0
- package/types/color-picker/src/color-picker.props.d.ts +1 -0
- package/types/combo-list/src/composition/use-data-source.d.ts +2 -1
- package/types/combo-tree/src/combo-tree.props.d.ts +1 -0
- package/types/component/index.d.ts +2 -0
- package/types/component/src/component.props.d.ts +8 -0
- package/types/components.d.ts +8 -1
- package/types/condition/index.d.ts +55 -0
- package/types/condition/src/composition/condition-value/dropdown-value.d.ts +4 -0
- package/types/data-view/composition/types.d.ts +1 -1
- package/types/designer-canvas/src/composition/dg-control.d.ts +24 -0
- package/types/designer-toolbox/index.d.ts +3 -0
- package/types/designer-toolbox/src/toolbox.component.d.ts +14 -0
- package/types/designer-toolbox/src/toolbox.props.d.ts +29 -0
- package/types/designer-toolbox/src/types.d.ts +21 -0
- package/types/designer.d.ts +13 -0
- package/types/dropdown/index.d.ts +6 -27
- package/types/dropdown/src/dropdown.item.component.d.ts +1 -1
- package/types/dropdown/src/dropdown.props.d.ts +1 -0
- package/types/dynamic-form/designer.d.ts +1 -4
- package/types/dynamic-form/index.d.ts +6 -11
- package/types/dynamic-form/src/component/dynamic-form-label/dynamic-form-label.component.d.ts +3 -3
- package/types/dynamic-form/src/designer/dynamic-form.design.component.d.ts +8 -0
- package/types/dynamic-form/src/designer/response-form.design.props.d.ts +14 -0
- package/types/dynamic-form/src/designer/use-dynamic-form-rules.d.ts +2 -0
- package/types/dynamic-form/src/dynamic-form.component.d.ts +8 -0
- package/types/dynamic-form/src/response-form.props.d.ts +13 -1
- package/types/dynamic-form/src/schema/response-form-schema-resolver.d.ts +1 -0
- package/types/dynamic-form/src/types.d.ts +1 -0
- package/types/dynamic-resolver/index.d.ts +0 -3
- package/types/dynamic-resolver/src/resolver/property-config/property-config-resolver-design.d.ts +1 -1
- package/types/dynamic-resolver/src/resolver/property-config/property-config-resolver.d.ts +1 -1
- package/types/dynamic-resolver/src/resolver/property-config/use-property-config-resolver.d.ts +2 -2
- package/types/dynamic-resolver/src/resolver/schema/schema-resolver-design.d.ts +1 -1
- package/types/dynamic-resolver/src/resolver/schema/schema-resolver.d.ts +1 -1
- package/types/dynamic-resolver/src/types.d.ts +1 -0
- package/types/dynamic-view/index.d.ts +43 -3
- package/types/dynamic-view/src/components/maps.d.ts +110 -98
- package/types/dynamic-view/src/composition/index.d.ts +5 -0
- package/types/dynamic-view/src/composition/use-utils.d.ts +12 -0
- package/types/dynamic-view/src/dynamic-view.component.d.ts +6 -6
- package/types/{binding-selector/designer.d.ts → expression-editor/index.d.ts} +6 -6
- package/types/filter-condition-editor/index.d.ts +9 -0
- package/types/filter-condition-editor/src/components/filter-condition-grid.component.d.ts +12 -12
- package/types/filter-condition-editor/src/components/sort-editor-grid.component.d.ts +12 -12
- package/types/filter-condition-editor/src/filter-condition-editor.props.d.ts +1 -0
- package/types/flow-canvas/index.d.ts +3 -0
- package/types/flow-canvas/src/components/flow-node-item.component.d.ts +8 -0
- package/types/flow-canvas/src/components/flow-node-item.props.d.ts +3 -0
- package/types/flow-canvas/src/composition/types.d.ts +42 -0
- package/types/flow-canvas/src/composition/use-bezier-curve.d.ts +2 -0
- package/types/flow-canvas/src/composition/use-connections.d.ts +2 -0
- package/types/flow-canvas/src/composition/use-curve.d.ts +4 -0
- package/types/flow-canvas/src/composition/use-drawing-bezier.d.ts +2 -0
- package/types/flow-canvas/src/composition/use-drawing.d.ts +4 -0
- package/types/flow-canvas/src/flow-canvas.component.d.ts +8 -0
- package/types/flow-canvas/src/flow-canvas.props.d.ts +3 -0
- package/types/image-cropper/src/image-cropper.props.d.ts +1 -0
- package/types/index.d.ts +1 -0
- package/types/json-editor/src/json-editor.props.d.ts +1 -0
- package/types/language-textbox/index.d.ts +3 -3
- package/types/language-textbox/src/components/language-contents.component.d.ts +1 -1
- package/types/language-textbox/src/language-textbox.component.d.ts +1 -1
- package/types/layout/index.d.ts +0 -1
- package/types/layout/src/components/layout-pane.props.d.ts +1 -0
- package/types/layout/src/designer/layout-pane-use-designer-rules.d.ts +2 -0
- package/types/layout/src/designer/layout-pane.design.component.d.ts +8 -0
- package/types/layout/src/designer/layout-use-designer-rules.d.ts +2 -0
- package/types/layout/src/designer/layout.design.component.d.ts +8 -0
- package/types/layout/src/layout.props.d.ts +1 -0
- package/types/layout/src/schema/schema-mapper.d.ts +2 -0
- package/types/layout/src/schema/schema-resolver.d.ts +2 -0
- package/types/list-nav/index.d.ts +5 -24
- package/types/list-nav/src/designer/use-designer-rules.d.ts +2 -0
- package/types/list-nav/src/list-nav.props.d.ts +1 -0
- package/types/list-nav/src/property-config/list-nav.property-config.d.ts +8 -0
- package/types/list-nav/src/schema/schema-mapper.d.ts +2 -0
- package/types/list-nav/src/schema/schema-resolver.d.ts +2 -0
- package/types/list-view/index.d.ts +0 -1
- package/types/list-view/src/composition/use-draggable.d.ts +1 -1
- package/types/lookup/index.d.ts +1 -1
- package/types/lookup/src/components/popup-container.component.d.ts +3 -3
- package/types/menu-lookup/src/menu-lookup.props.d.ts +1 -0
- package/types/modal/designer.d.ts +0 -2
- package/types/nav/index.d.ts +20 -24
- package/types/nav/src/nav.props.d.ts +1 -0
- package/types/number-range/src/number-range.props.d.ts +1 -0
- package/types/order/index.d.ts +5 -36
- package/types/order/src/designer/order.design.component.d.ts +1 -1
- package/types/order/src/order.props.d.ts +1 -0
- package/types/page-footer/index.d.ts +2 -0
- package/types/page-footer/src/page-footer.props.d.ts +1 -0
- package/types/pagination/index.d.ts +0 -15
- package/types/pagination/src/pagination.props.d.ts +1 -0
- package/types/progress/src/progress.props.d.ts +1 -0
- package/types/property-panel/src/property-panel.component.d.ts +3 -3
- package/types/query-solution/index.d.ts +2 -1
- package/types/radio-group/designer.d.ts +1 -2
- package/types/search-box/index.d.ts +17 -1
- package/types/search-box/src/search-box.props.d.ts +1 -0
- package/types/section/designer.d.ts +0 -1
- package/types/smoke-detector/index.d.ts +2 -0
- package/types/smoke-detector/src/smoke-detector.props.d.ts +1 -0
- package/types/sort-condition-editor/index.d.ts +7 -2
- package/types/sort-condition-editor/src/sort-condition-editor.props.d.ts +1 -0
- package/types/splitter/index.d.ts +0 -1
- package/types/splitter/src/components/splitter-pane.props.d.ts +1 -0
- package/types/splitter/src/splitter.props.d.ts +1 -0
- package/types/tabs/designer.d.ts +0 -1
- package/types/tabs/index.d.ts +1 -0
- package/types/text/index.d.ts +20 -24
- package/types/text/src/text.props.d.ts +1 -0
- package/types/transfer/src/transfer.props.d.ts +1 -0
- package/types/tree-view/src/tree-view.props.d.ts +1 -0
- package/types/uploader/src/uploader.props.d.ts +1 -0
- package/types/verify-detail/index.d.ts +5 -58
- package/types/verify-detail/src/designer/verify-detail.design.component.d.ts +8 -8
- package/types/verify-detail/src/verify-detail.props.d.ts +1 -0
- package/types/video/index.d.ts +20 -24
- package/types/video/src/video.props.d.ts +1 -0
- package/components/dynamic-form/index.css +0 -1
- package/designer/accordion/index.esm.js +0 -257
- package/designer/accordion/index.umd.cjs +0 -1
- package/designer/avatar/index.esm.js +0 -1460
- package/designer/avatar/index.umd.cjs +0 -1
- package/designer/binding-selector/index.esm.js +0 -792
- package/designer/binding-selector/index.umd.cjs +0 -1
- package/designer/button-group/index.esm.js +0 -282
- package/designer/button-group/index.umd.cjs +0 -1
- package/designer/code-editor/index.esm.js +0 -75
- package/designer/code-editor/index.umd.cjs +0 -1
- package/designer/color-picker/index.esm.js +0 -1096
- package/designer/color-picker/index.umd.cjs +0 -1
- package/designer/combo-list/index.esm.js +0 -1095
- package/designer/combo-list/index.umd.cjs +0 -1
- package/designer/combo-tree/index.esm.js +0 -186
- package/designer/combo-tree/index.umd.cjs +0 -1
- package/designer/component/index.css +0 -1
- package/designer/component/index.esm.js +0 -5002
- package/designer/component/index.umd.cjs +0 -1
- package/designer/condition/index.esm.js +0 -1899
- package/designer/condition/index.umd.cjs +0 -1
- package/designer/dropdown/index.esm.js +0 -261
- package/designer/dropdown/index.umd.cjs +0 -1
- package/designer/expression-editor/index.css +0 -1
- package/designer/expression-editor/index.esm.js +0 -7006
- package/designer/expression-editor/index.umd.cjs +0 -427
- package/designer/filter-condition-editor/index.css +0 -1
- package/designer/filter-condition-editor/index.esm.js +0 -4795
- package/designer/filter-condition-editor/index.umd.cjs +0 -1
- package/designer/html-template/index.esm.js +0 -718
- package/designer/html-template/index.umd.cjs +0 -1
- package/designer/image-cropper/index.esm.js +0 -765
- package/designer/image-cropper/index.umd.cjs +0 -1
- package/designer/json-editor/index.esm.js +0 -83
- package/designer/json-editor/index.umd.cjs +0 -1
- package/designer/language-textbox/index.esm.js +0 -783
- package/designer/language-textbox/index.umd.cjs +0 -8
- package/designer/layout/index.esm.js +0 -430
- package/designer/layout/index.umd.cjs +0 -1
- package/designer/list-nav/index.esm.js +0 -802
- package/designer/list-nav/index.umd.cjs +0 -1
- package/designer/lookup/index.esm.js +0 -2083
- package/designer/lookup/index.umd.cjs +0 -1
- package/designer/menu-lookup/index.esm.js +0 -46
- package/designer/menu-lookup/index.umd.cjs +0 -1
- package/designer/nav/index.esm.js +0 -284
- package/designer/nav/index.umd.cjs +0 -1
- package/designer/number-range/index.esm.js +0 -1616
- package/designer/number-range/index.umd.cjs +0 -1
- package/designer/order/index.css +0 -1
- package/designer/order/index.esm.js +0 -2196
- package/designer/order/index.umd.cjs +0 -18
- package/designer/page-footer/index.esm.js +0 -290
- package/designer/page-footer/index.umd.cjs +0 -1
- package/designer/page-header/index.esm.js +0 -1003
- package/designer/page-header/index.umd.cjs +0 -1
- package/designer/pagination/index.esm.js +0 -591
- package/designer/pagination/index.umd.cjs +0 -1
- package/designer/progress/index.esm.js +0 -213
- package/designer/progress/index.umd.cjs +0 -1
- package/designer/search-box/index.esm.js +0 -245
- package/designer/search-box/index.umd.cjs +0 -1
- package/designer/smoke-detector/index.css +0 -1
- package/designer/smoke-detector/index.esm.js +0 -178
- package/designer/smoke-detector/index.umd.cjs +0 -1
- package/designer/sort-condition-editor/index.esm.js +0 -138
- package/designer/sort-condition-editor/index.umd.cjs +0 -1
- package/designer/splitter/index.esm.js +0 -1120
- package/designer/splitter/index.umd.cjs +0 -1
- package/designer/step/index.esm.js +0 -226
- package/designer/step/index.umd.cjs +0 -1
- package/designer/text/index.esm.js +0 -147
- package/designer/text/index.umd.cjs +0 -1
- package/designer/transfer/index.esm.js +0 -254
- package/designer/transfer/index.umd.cjs +0 -1
- package/designer/tree-view/index.esm.js +0 -313
- package/designer/tree-view/index.umd.cjs +0 -1
- package/designer/uploader/index.esm.js +0 -1190
- package/designer/uploader/index.umd.cjs +0 -2
- package/designer/verify-detail/index.esm.js +0 -258
- package/designer/verify-detail/index.umd.cjs +0 -1
- package/designer/video/index.esm.js +0 -136
- package/designer/video/index.umd.cjs +0 -1
- package/designer/weather/index.css +0 -1
- package/designer/weather/index.esm.js +0 -6244
- package/designer/weather/index.umd.cjs +0 -14
- package/types/accordion/designer.d.ts +0 -44
- package/types/avatar/designer.d.ts +0 -29
- package/types/button-group/designer.d.ts +0 -29
- package/types/code-editor/designer.d.ts +0 -5
- package/types/color-picker/designer.d.ts +0 -29
- package/types/combo-list/designer.d.ts +0 -29
- package/types/combo-list/src/designer/combo-list.design.props.d.ts +0 -6
- package/types/combo-tree/designer.d.ts +0 -5
- package/types/component/designer.d.ts +0 -35
- package/types/condition/designer.d.ts +0 -56
- package/types/dropdown/designer.d.ts +0 -6
- package/types/dynamic-form/src/composition/use-input-type-resolver.d.ts +0 -11
- package/types/expression-editor/designer.d.ts +0 -9
- package/types/filter-condition-editor/designer.d.ts +0 -10
- package/types/html-template/designer.d.ts +0 -31
- package/types/html-template/src/designer/html-template.design.props.d.ts +0 -9
- package/types/image-cropper/designer.d.ts +0 -4
- package/types/json-editor/designer.d.ts +0 -5
- package/types/menu-lookup/designer.d.ts +0 -5
- package/types/nav/designer.d.ts +0 -6
- package/types/number-range/designer.d.ts +0 -29
- package/types/order/designer.d.ts +0 -6
- package/types/page-footer/designer.d.ts +0 -6
- package/types/page-header/src/designer/page-header.design.props.d.ts +0 -20
- package/types/pagination/designer.d.ts +0 -29
- package/types/progress/designer.d.ts +0 -29
- package/types/search-box/designer.d.ts +0 -52
- package/types/smoke-detector/designer.d.ts +0 -6
- package/types/sort-condition-editor/designer.d.ts +0 -9
- package/types/splitter/designer.d.ts +0 -32
- package/types/step/designer.d.ts +0 -6
- package/types/text/designer.d.ts +0 -6
- package/types/transfer/designer.d.ts +0 -35
- package/types/tree-view/designer.d.ts +0 -29
- package/types/uploader/designer.d.ts +0 -141
- package/types/verify-detail/designer.d.ts +0 -6
- package/types/video/designer.d.ts +0 -6
- /package/{designer → components}/condition/index.css +0 -0
- /package/{designer → components}/uploader/index.css +0 -0
- /package/types/{dynamic-form/src/component/form-control/form-control.component.d.ts → list-nav/src/designer/list-nav.design.component.d.ts} +0 -0
|
@@ -9,10 +9,10 @@ import { resolveField as K, useDateFormat as Wt, useResizeObserver as Re, getCus
|
|
|
9
9
|
import Bt from "../popover/index.esm.js";
|
|
10
10
|
import { LocaleService as $t } from "../locale/index.esm.js";
|
|
11
11
|
import { BaseControlProperty as Rt } from "../property-panel/index.esm.js";
|
|
12
|
-
const
|
|
12
|
+
const ze = /* @__PURE__ */ new Map([
|
|
13
13
|
["appearance", Vt]
|
|
14
14
|
]), At = "root-viewmodel";
|
|
15
|
-
function
|
|
15
|
+
function zt(e, t) {
|
|
16
16
|
const {
|
|
17
17
|
formSchemaUtils: n,
|
|
18
18
|
designViewModelUtils: o
|
|
@@ -38,8 +38,8 @@ function Ht(e, t) {
|
|
|
38
38
|
}), a;
|
|
39
39
|
}
|
|
40
40
|
function p(f, a, c) {
|
|
41
|
-
var v,
|
|
42
|
-
const y = (
|
|
41
|
+
var v, u, E, s;
|
|
42
|
+
const y = (u = (v = a == null ? void 0 : a.parentComponentInstance) == null ? void 0 : v.schema) == null ? void 0 : u.type, r = (s = (E = n.getFormSchema()) == null ? void 0 : E.module) == null ? void 0 : s.templateId;
|
|
43
43
|
if (["double-list-template", "tree-list-template", "list-template"].includes(r))
|
|
44
44
|
return f;
|
|
45
45
|
const i = [ye["content-container"].type, ye["response-layout-item"].type, ye["splitter-pane"].type, ye.drawer.type];
|
|
@@ -74,10 +74,10 @@ function Ht(e, t) {
|
|
|
74
74
|
}), [a];
|
|
75
75
|
}
|
|
76
76
|
function I(f) {
|
|
77
|
-
var i, v,
|
|
77
|
+
var i, v, u;
|
|
78
78
|
const a = e.getSchemaByType("component"), c = D(f);
|
|
79
79
|
let y = !1;
|
|
80
|
-
const r = (
|
|
80
|
+
const r = (u = (v = (i = f.parentComponentInstance) == null ? void 0 : i.schema) == null ? void 0 : v.appearance) == null ? void 0 : u.class;
|
|
81
81
|
return r && r.includes("f-page-main") && (y = !0), Object.assign(a, {
|
|
82
82
|
id: `${f.componentId}-component`,
|
|
83
83
|
viewModel: `${f.componentId}-component-viewmodel`,
|
|
@@ -106,12 +106,12 @@ function Ye(e, t, n, o) {
|
|
|
106
106
|
parentComponentInstance: m,
|
|
107
107
|
bindTo: ((I = n.bindingSourceContext) == null ? void 0 : I.bindTo) || "",
|
|
108
108
|
dataSource: (f = (C = n.bindingSourceContext) == null ? void 0 : C.bindingEntity) == null ? void 0 : f.label
|
|
109
|
-
}, { createComponent: y } =
|
|
109
|
+
}, { createComponent: y } = zt(e, o);
|
|
110
110
|
return y(c);
|
|
111
111
|
} else
|
|
112
112
|
return t;
|
|
113
113
|
}
|
|
114
|
-
const Yt = "https://json-schema.org/draft/2020-12/schema", qt = "https://farris-design.gitee.io/calendar.schema.json",
|
|
114
|
+
const Yt = "https://json-schema.org/draft/2020-12/schema", qt = "https://farris-design.gitee.io/calendar.schema.json", Ht = "calendar", Gt = "A Farris Input Component", Ut = "object", _t = {
|
|
115
115
|
id: {
|
|
116
116
|
description: "The unique identifier for calendar",
|
|
117
117
|
type: "string"
|
|
@@ -235,7 +235,7 @@ const Yt = "https://json-schema.org/draft/2020-12/schema", qt = "https://farris-
|
|
|
235
235
|
}, Me = {
|
|
236
236
|
$schema: Yt,
|
|
237
237
|
$id: qt,
|
|
238
|
-
title:
|
|
238
|
+
title: Ht,
|
|
239
239
|
description: Gt,
|
|
240
240
|
type: Ut,
|
|
241
241
|
properties: _t,
|
|
@@ -263,14 +263,14 @@ const Yt = "https://json-schema.org/draft/2020-12/schema", qt = "https://farris-
|
|
|
263
263
|
customStyle: { type: String, default: "" },
|
|
264
264
|
enableWeekdayBorder: { type: Boolean, default: !1 },
|
|
265
265
|
visible: { type: Boolean, default: !0 }
|
|
266
|
-
}, ia = Nt(Ne, Me,
|
|
266
|
+
}, ia = Nt(Ne, Me, ze, Ye), qe = Ot(
|
|
267
267
|
Me,
|
|
268
268
|
Me,
|
|
269
|
-
|
|
269
|
+
ze,
|
|
270
270
|
Ye
|
|
271
271
|
), X = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"];
|
|
272
272
|
var te = /* @__PURE__ */ ((e) => (e[e.previous = 1] = "previous", e[e.current = 2] = "current", e[e.next = 3] = "next", e))(te || {});
|
|
273
|
-
function
|
|
273
|
+
function ue() {
|
|
274
274
|
function e() {
|
|
275
275
|
return { year: 0, month: 0, day: 0 };
|
|
276
276
|
}
|
|
@@ -374,9 +374,9 @@ function Qt() {
|
|
|
374
374
|
return { daysInMonth: e, daysInPreMonth: n, getNextMonth: o, getPreviousMonth: m };
|
|
375
375
|
}
|
|
376
376
|
function Zt() {
|
|
377
|
-
const { getToday: e, getDayNumber: t, isWeekEnd: n } =
|
|
378
|
-
function D(
|
|
379
|
-
const { day: E, month: s, year: h } =
|
|
377
|
+
const { getToday: e, getDayNumber: t, isWeekEnd: n } = ue(), { daysInMonth: o, daysInPreMonth: m, getNextMonth: w, getPreviousMonth: p } = Qt();
|
|
378
|
+
function D(u) {
|
|
379
|
+
const { day: E, month: s, year: h } = u;
|
|
380
380
|
if (E === void 0 || s === void 0 || h === void 0)
|
|
381
381
|
throw new Error("invalided date.");
|
|
382
382
|
const N = E === 1, M = N ? m(s, h) : E - 1, $ = N ? s - 1 : s, S = $ < 1, P = S ? 12 : $;
|
|
@@ -386,8 +386,8 @@ function Zt() {
|
|
|
386
386
|
day: M
|
|
387
387
|
};
|
|
388
388
|
}
|
|
389
|
-
function I(
|
|
390
|
-
const { day: E, month: s, year: h } =
|
|
389
|
+
function I(u) {
|
|
390
|
+
const { day: E, month: s, year: h } = u;
|
|
391
391
|
if (E === void 0 || s === void 0 || h === void 0)
|
|
392
392
|
throw new Error("invalided date.");
|
|
393
393
|
const N = o(s, h), M = E === N, $ = M ? 1 : E + 1, S = M ? s + 1 : s, P = S > 12, x = P ? 1 : S;
|
|
@@ -397,59 +397,59 @@ function Zt() {
|
|
|
397
397
|
day: $
|
|
398
398
|
};
|
|
399
399
|
}
|
|
400
|
-
function C(
|
|
401
|
-
const E = p(
|
|
400
|
+
function C(u) {
|
|
401
|
+
const E = p(u.month || 1, u.year || 1), s = o(E.month || 1, E.year || 1);
|
|
402
402
|
return {
|
|
403
|
-
day: (
|
|
403
|
+
day: (u.day || 1) <= s ? u.day : s,
|
|
404
404
|
month: E.month,
|
|
405
405
|
year: E.year
|
|
406
406
|
};
|
|
407
407
|
}
|
|
408
|
-
function f(
|
|
409
|
-
const E = w(
|
|
408
|
+
function f(u) {
|
|
409
|
+
const E = w(u.month || 1, u.year || 1), s = o(E.month || 1, E.year || 1);
|
|
410
410
|
return {
|
|
411
|
-
day: (
|
|
411
|
+
day: (u.day || 1) <= s ? u.day : s,
|
|
412
412
|
month: E.month,
|
|
413
413
|
year: E.year
|
|
414
414
|
};
|
|
415
415
|
}
|
|
416
|
-
function a(
|
|
416
|
+
function a(u) {
|
|
417
417
|
return {
|
|
418
|
-
day:
|
|
419
|
-
month:
|
|
420
|
-
year: (
|
|
418
|
+
day: u.day,
|
|
419
|
+
month: u.month,
|
|
420
|
+
year: (u.year || 1) + 1
|
|
421
421
|
};
|
|
422
422
|
}
|
|
423
|
-
function c(
|
|
423
|
+
function c(u) {
|
|
424
424
|
return {
|
|
425
|
-
day:
|
|
426
|
-
month:
|
|
427
|
-
year: (
|
|
425
|
+
day: u.day,
|
|
426
|
+
month: u.month,
|
|
427
|
+
year: (u.year || 1) - 1
|
|
428
428
|
};
|
|
429
429
|
}
|
|
430
|
-
function y(
|
|
431
|
-
const s = (
|
|
430
|
+
function y(u) {
|
|
431
|
+
const s = (u.day || 1) - 7, h = s < 1, N = h ? o(u.month || 1, u.year || 1) + s : s, M = h ? p(u.month || 1, u.year || 1) : u;
|
|
432
432
|
return {
|
|
433
433
|
day: N,
|
|
434
434
|
month: M.month,
|
|
435
435
|
year: M.year
|
|
436
436
|
};
|
|
437
437
|
}
|
|
438
|
-
function r(
|
|
439
|
-
const s = (
|
|
438
|
+
function r(u) {
|
|
439
|
+
const s = (u.day || 1) + 7, h = o(u.month || 1, u.year || 1), N = s > h, M = N ? s - h : s, $ = N ? w(u.month || 1, u.year || 1) : u;
|
|
440
440
|
return {
|
|
441
441
|
day: M,
|
|
442
442
|
month: $.month,
|
|
443
443
|
year: $.year
|
|
444
444
|
};
|
|
445
445
|
}
|
|
446
|
-
function i(
|
|
447
|
-
if (
|
|
446
|
+
function i(u, E, s, h, N) {
|
|
447
|
+
if (u < 1 || E < 1 || s < 1)
|
|
448
448
|
throw new Error("Invalid date input");
|
|
449
|
-
const M = { day:
|
|
449
|
+
const M = { day: u, month: E, year: s }, $ = X.indexOf(h);
|
|
450
450
|
if ($ === -1)
|
|
451
451
|
throw new Error("Invalid firstDayOfWeek value");
|
|
452
|
-
const P = (t(M) - $ + 7) % 7, x = e(), g = (O) => O.day === x.day && O.month === x.month && O.year === x.year,
|
|
452
|
+
const P = (t(M) - $ + 7) % 7, x = e(), g = (O) => O.day === x.day && O.month === x.month && O.year === x.year, d = [];
|
|
453
453
|
let T = { ...M };
|
|
454
454
|
for (let O = 0; O < P; O++)
|
|
455
455
|
T = D(T);
|
|
@@ -462,7 +462,7 @@ function Zt() {
|
|
|
462
462
|
T.month === F.month && T.year === F.year ? b = te.previous : b = te.next;
|
|
463
463
|
}
|
|
464
464
|
const j = g(T), V = n(T);
|
|
465
|
-
|
|
465
|
+
d.push({
|
|
466
466
|
date: T,
|
|
467
467
|
monthTag: b,
|
|
468
468
|
isCurrent: j,
|
|
@@ -470,21 +470,21 @@ function Zt() {
|
|
|
470
470
|
}), O < 6 && (T = I(T));
|
|
471
471
|
}
|
|
472
472
|
return {
|
|
473
|
-
days:
|
|
473
|
+
days: d,
|
|
474
474
|
weekNumber: 0,
|
|
475
475
|
year: s
|
|
476
476
|
};
|
|
477
477
|
}
|
|
478
|
-
function v(
|
|
479
|
-
const N = [], M = { day: 1, month:
|
|
478
|
+
function v(u, E, s, h) {
|
|
479
|
+
const N = [], M = { day: 1, month: u, year: E }, $ = t(M), S = X.indexOf(s);
|
|
480
480
|
if (S === -1)
|
|
481
481
|
throw new Error("Invalid firstDayOfWeek value");
|
|
482
482
|
const P = ($ - S + 7) % 7;
|
|
483
483
|
let x = M;
|
|
484
|
-
for (let
|
|
484
|
+
for (let d = 0; d < P; d++)
|
|
485
485
|
x = D(x);
|
|
486
486
|
let g = x;
|
|
487
|
-
for (let
|
|
487
|
+
for (let d = 0; d < 6; d++) {
|
|
488
488
|
const T = i(g.day, g.month, g.year, s, h);
|
|
489
489
|
N.push(T);
|
|
490
490
|
for (let L = 0; L < 7; L++)
|
|
@@ -508,7 +508,7 @@ function Zt() {
|
|
|
508
508
|
const oe = ["year", "month", "week", "day"];
|
|
509
509
|
var ke = /* @__PURE__ */ ((e) => (e[e.Equal = 0] = "Equal", e[e.NotEqual = 1] = "NotEqual", e[e.Greater = 2] = "Greater", e[e.GreaterOrEqual = 3] = "GreaterOrEqual", e[e.Less = 4] = "Less", e[e.LessOrEqual = 5] = "LessOrEqual", e[e.Like = 6] = "Like", e[e.LikeStartWith = 7] = "LikeStartWith", e[e.LikeEndWith = 8] = "LikeEndWith", e[e.NotLike = 9] = "NotLike", e[e.NotLikeStartWith = 10] = "NotLikeStartWith", e[e.NotLikeEndWith = 11] = "NotLikeEndWith", e[e.Is = 12] = "Is", e[e.IsNot = 13] = "IsNot", e[e.In = 14] = "In", e[e.NotIn = 15] = "NotIn", e))(ke || {}), Se = /* @__PURE__ */ ((e) => (e[e.Empty = 0] = "Empty", e[e.And = 1] = "And", e[e.Or = 2] = "Or", e))(Se || {});
|
|
510
510
|
function Oe() {
|
|
511
|
-
const { getTimeInMilliseconds: e } =
|
|
511
|
+
const { getTimeInMilliseconds: e } = ue();
|
|
512
512
|
function t(r) {
|
|
513
513
|
return r && r.year !== 0 && r.month !== 0 && r.day !== 0;
|
|
514
514
|
}
|
|
@@ -582,7 +582,7 @@ const Kt = {
|
|
|
582
582
|
emits: ["viewChange", "previous", "next", "resetToToday"],
|
|
583
583
|
setup(e, t) {
|
|
584
584
|
const n = B(e.title), o = B(e.dailyViewTitle), m = B(e.weeklyViewTitle), w = B(e.monthlyViewTitle), p = B(e.yearViewTitle), D = 2, I = 62, C = B(e.activeView);
|
|
585
|
-
Y(() => e.activeView, (v,
|
|
585
|
+
Y(() => e.activeView, (v, u) => {
|
|
586
586
|
C.value = v;
|
|
587
587
|
}), Y(() => e.title, () => {
|
|
588
588
|
n.value = e.title;
|
|
@@ -592,8 +592,8 @@ const Kt = {
|
|
|
592
592
|
left: `${C.value * (D + 1) + (C.value - 1) * (I + 1)}px`
|
|
593
593
|
})), a = A(() => C.value === 4 ? o.value : C.value === 3 ? m.value : C.value === 1 ? p.value : w.value);
|
|
594
594
|
function c(v) {
|
|
595
|
-
const
|
|
596
|
-
C.value =
|
|
595
|
+
const u = oe.indexOf(v) + 1;
|
|
596
|
+
C.value = u, t.emit("viewChange", u);
|
|
597
597
|
}
|
|
598
598
|
function y() {
|
|
599
599
|
t.emit("previous", C.value);
|
|
@@ -682,8 +682,8 @@ const Kt = {
|
|
|
682
682
|
} = le("eventsComposition"), {
|
|
683
683
|
equal: f
|
|
684
684
|
} = C, a = B();
|
|
685
|
-
function c(g,
|
|
686
|
-
return e.enableCrossDay ? p(g,
|
|
685
|
+
function c(g, d) {
|
|
686
|
+
return e.enableCrossDay ? p(g, d) : D(g, d);
|
|
687
687
|
}
|
|
688
688
|
const y = B(c(e.dates, w.value));
|
|
689
689
|
Y(() => e.enableCrossDay, () => {
|
|
@@ -694,7 +694,7 @@ const Kt = {
|
|
|
694
694
|
m.value = e.activeDay;
|
|
695
695
|
}), Y(() => e.events, () => {
|
|
696
696
|
w.value = e.events, y.value = c(e.dates, e.events);
|
|
697
|
-
}), Y(() => e.daysInWeek, (g,
|
|
697
|
+
}), Y(() => e.daysInWeek, (g, d) => {
|
|
698
698
|
n.value = g;
|
|
699
699
|
});
|
|
700
700
|
function r(g) {
|
|
@@ -704,31 +704,31 @@ const Kt = {
|
|
|
704
704
|
day: m.value.day
|
|
705
705
|
}, g);
|
|
706
706
|
}
|
|
707
|
-
const i = (g,
|
|
707
|
+
const i = (g, d, T) => {
|
|
708
708
|
const O = {
|
|
709
709
|
"f-datepicker-no-currmonth": g.monthTag === te.previous || g.monthTag === te.next,
|
|
710
710
|
"f-calendar-weekday": g.weekEnd,
|
|
711
711
|
"f-calendar-workday": !g.weekEnd,
|
|
712
712
|
"f-calendar-today": g.isCurrent
|
|
713
|
-
}, b = `d_${
|
|
713
|
+
}, b = `d_${d}_${T}`;
|
|
714
714
|
return O[b] = !0, O;
|
|
715
715
|
}, v = (g) => {
|
|
716
|
-
const
|
|
716
|
+
const d = g.monthTag === te.current && r(g.date), T = g.isCurrent && o.value;
|
|
717
717
|
return {
|
|
718
718
|
"f-calendar-month-view-date": !0,
|
|
719
|
-
"f-calendar-month-view-selected":
|
|
719
|
+
"f-calendar-month-view-selected": d,
|
|
720
720
|
"f-calendar-month-view-current": T
|
|
721
721
|
};
|
|
722
722
|
};
|
|
723
|
-
function
|
|
724
|
-
e.disabled ||
|
|
725
|
-
date:
|
|
723
|
+
function u(g, d) {
|
|
724
|
+
e.disabled || d.showMore || (g.stopPropagation(), t.emit("click", {
|
|
725
|
+
date: d.date,
|
|
726
726
|
view: "month"
|
|
727
727
|
}));
|
|
728
728
|
}
|
|
729
|
-
function E(g,
|
|
729
|
+
function E(g, d) {
|
|
730
730
|
e.disabled || t.emit("moreClick", {
|
|
731
|
-
date:
|
|
731
|
+
date: d.date,
|
|
732
732
|
view: "month"
|
|
733
733
|
});
|
|
734
734
|
}
|
|
@@ -739,10 +739,10 @@ const Kt = {
|
|
|
739
739
|
const g = a.value;
|
|
740
740
|
if (!g)
|
|
741
741
|
return 0;
|
|
742
|
-
const
|
|
743
|
-
if (!
|
|
742
|
+
const d = g.querySelector(".f-calendar--daygrid-row");
|
|
743
|
+
if (!d)
|
|
744
744
|
return 0;
|
|
745
|
-
const T =
|
|
745
|
+
const T = d.offsetHeight;
|
|
746
746
|
return Math.max(0, Math.floor(T / 19) - 1);
|
|
747
747
|
};
|
|
748
748
|
function M() {
|
|
@@ -755,18 +755,18 @@ const Kt = {
|
|
|
755
755
|
}
|
|
756
756
|
}, [n.value && n.value.map((g) => l("th", null, [g]))])]);
|
|
757
757
|
}
|
|
758
|
-
function $(g,
|
|
758
|
+
function $(g, d) {
|
|
759
759
|
return l("div", {
|
|
760
760
|
class: "f-calendar--daygrid-row-header"
|
|
761
761
|
}, [l("table", null, [l("tbody", null, [l("tr", null, [g.days && g.days.map((T, L) => l("td", {
|
|
762
|
-
class: i(T,
|
|
763
|
-
onClick: (O) =>
|
|
762
|
+
class: i(T, d, L),
|
|
763
|
+
onClick: (O) => u(O, T),
|
|
764
764
|
style: "position: relative;"
|
|
765
765
|
}, null))])])])]);
|
|
766
766
|
}
|
|
767
|
-
function S(g,
|
|
767
|
+
function S(g, d) {
|
|
768
768
|
return g.days && g.days.map((T, L) => l("td", {
|
|
769
|
-
class: i(T,
|
|
769
|
+
class: i(T, d, L)
|
|
770
770
|
}, [l("div", {
|
|
771
771
|
class: "f-calendar-month-view-title"
|
|
772
772
|
}, [l("div", {
|
|
@@ -776,13 +776,13 @@ const Kt = {
|
|
|
776
776
|
}, [T.date.day === 1 ? e.monthLabels[T.date.month || 1] : ""])])]));
|
|
777
777
|
}
|
|
778
778
|
function P(g) {
|
|
779
|
-
const
|
|
779
|
+
const d = Math.max(0, h.value || N()), T = !!(g.events && g.events.length > d), L = ce([...g.events || []]), O = T ? L.slice(0, d) : L;
|
|
780
780
|
return T && O && O.length > 0 && O[O.length - 1].forEach((b) => {
|
|
781
|
-
b.data && (b.showMore = !0, b.moreCount = g.events.length -
|
|
781
|
+
b.data && (b.showMore = !0, b.moreCount = g.events.length - d + 1);
|
|
782
782
|
}), O.map((b, j) => l("tr", null, [b.map((V, F) => V.showMore ? l("td", {
|
|
783
783
|
colspan: 1,
|
|
784
784
|
rowspan: 1,
|
|
785
|
-
onClick: (q) =>
|
|
785
|
+
onClick: (q) => u(q, V)
|
|
786
786
|
}, [l("a", {
|
|
787
787
|
class: "f-calendar-event p-0 m-0 pl-1 more-events ",
|
|
788
788
|
onClick: (q) => E(q, g.days[F])
|
|
@@ -791,7 +791,7 @@ const Kt = {
|
|
|
791
791
|
}, [e.moreText.replace("#count#", V.moreCount)])])]) : l("td", {
|
|
792
792
|
colspan: V.colspan || 1,
|
|
793
793
|
rowspan: V.rowspan || 1,
|
|
794
|
-
onClick: (q) =>
|
|
794
|
+
onClick: (q) => u(q, g.days[F])
|
|
795
795
|
}, [V.data && I(V)]))]));
|
|
796
796
|
}
|
|
797
797
|
function x() {
|
|
@@ -799,14 +799,14 @@ const Kt = {
|
|
|
799
799
|
class: "w-100 h-100"
|
|
800
800
|
}, [l("div", {
|
|
801
801
|
class: "f-calendar--daygrid"
|
|
802
|
-
}, [y.value.map((g,
|
|
802
|
+
}, [y.value.map((g, d) => l("div", {
|
|
803
803
|
class: "f-calendar--daygrid-row"
|
|
804
|
-
}, [$(g,
|
|
804
|
+
}, [$(g, d), l("div", {
|
|
805
805
|
class: "f-calendar--daygrid-content"
|
|
806
|
-
}, [l("table", null, [l("thead", null, [l("tr", null, [S(g,
|
|
806
|
+
}, [l("table", null, [l("thead", null, [l("tr", null, [S(g, d)])]), l("tbody", null, [P(g)])])])]))])]);
|
|
807
807
|
}
|
|
808
|
-
return Y(() => e.height, (g,
|
|
809
|
-
g !==
|
|
808
|
+
return Y(() => e.height, (g, d) => {
|
|
809
|
+
g !== d && Ve(() => {
|
|
810
810
|
h.value = N(), y.value = [...y.value];
|
|
811
811
|
});
|
|
812
812
|
}), ie(() => {
|
|
@@ -843,7 +843,7 @@ const Kt = {
|
|
|
843
843
|
equal: I
|
|
844
844
|
} = Oe(), {
|
|
845
845
|
convertDateToDateObject: C
|
|
846
|
-
} =
|
|
846
|
+
} = ue();
|
|
847
847
|
function f(s) {
|
|
848
848
|
return m.value.days.map((N) => {
|
|
849
849
|
const M = {
|
|
@@ -934,7 +934,7 @@ const Kt = {
|
|
|
934
934
|
height: `${44 * ((s.ends.hour || 0) + (s.ends.minute || 0) / 60 - P) - 2 - 2 - 1 - 1}px`
|
|
935
935
|
};
|
|
936
936
|
}
|
|
937
|
-
function
|
|
937
|
+
function u() {
|
|
938
938
|
return D.value.map((s) => l("div", {
|
|
939
939
|
class: i(s)
|
|
940
940
|
}, [s.events.map((h) => l("div", {
|
|
@@ -950,7 +950,7 @@ const Kt = {
|
|
|
950
950
|
class: "f-calendar-content-primary"
|
|
951
951
|
}, [l("div", {
|
|
952
952
|
class: "f-calendar-content-data"
|
|
953
|
-
}, [
|
|
953
|
+
}, [u()])]);
|
|
954
954
|
}
|
|
955
955
|
return ie(() => {
|
|
956
956
|
t.value && t.value.scrollTo(0, 250);
|
|
@@ -974,7 +974,7 @@ const Kt = {
|
|
|
974
974
|
setup(e) {
|
|
975
975
|
const t = B(), n = B(), o = B(e.dayInWeek), m = B(e.day), w = B(e.enableMarkCurrent), p = B(e.events), D = B([]), {
|
|
976
976
|
convertDateToDateObject: I
|
|
977
|
-
} =
|
|
977
|
+
} = ue(), {
|
|
978
978
|
equal: C
|
|
979
979
|
} = Oe();
|
|
980
980
|
function f(s) {
|
|
@@ -1066,7 +1066,7 @@ const Kt = {
|
|
|
1066
1066
|
height: `${44 * ((((O = s.ends) == null ? void 0 : O.hour) || 0) + (((b = s.ends) == null ? void 0 : b.minute) || 0) / 60 - P) - 2 - 2 - 1 - 1}px`
|
|
1067
1067
|
};
|
|
1068
1068
|
}
|
|
1069
|
-
function
|
|
1069
|
+
function u() {
|
|
1070
1070
|
return D.value.map((s) => l("div", {
|
|
1071
1071
|
class: i(s)
|
|
1072
1072
|
}, [s.events.map((h) => l("div", {
|
|
@@ -1082,7 +1082,7 @@ const Kt = {
|
|
|
1082
1082
|
class: "f-calendar-content-primary"
|
|
1083
1083
|
}, [l("div", {
|
|
1084
1084
|
class: "f-calendar-content-data"
|
|
1085
|
-
}, [
|
|
1085
|
+
}, [u()])]);
|
|
1086
1086
|
}
|
|
1087
1087
|
return ie(() => {
|
|
1088
1088
|
t.value && t.value.scrollTo(0, 250);
|
|
@@ -1247,7 +1247,7 @@ function on() {
|
|
|
1247
1247
|
Thu: e("calendar.dayLabels.Thu"),
|
|
1248
1248
|
Fri: e("calendar.dayLabels.Fri"),
|
|
1249
1249
|
Sat: e("calendar.dayLabels.Sat")
|
|
1250
|
-
}, m = e("calendar.today"), w = e("calendar.thisYear"), p = e("calendar.yearView"), D = e("calendar.monthView"), I = e("calendar.weekView"), C = e("calendar.dayView"), f = e("calendar.titleFormat"), a = e("calendar.yearViewTitleFormat"), c = e("calendar.prevMonth"), y = e("calendar.nextMonth"), r = e("calendar.prevWeek"), i = e("calendar.nextWeek"), v = e("calendar.prevDay"),
|
|
1250
|
+
}, m = e("calendar.today"), w = e("calendar.thisYear"), p = e("calendar.yearView"), D = e("calendar.monthView"), I = e("calendar.weekView"), C = e("calendar.dayView"), f = e("calendar.titleFormat"), a = e("calendar.yearViewTitleFormat"), c = e("calendar.prevMonth"), y = e("calendar.nextMonth"), r = e("calendar.prevWeek"), i = e("calendar.nextWeek"), v = e("calendar.prevDay"), u = e("calendar.nextDay"), E = e("calendar.prevYear"), s = e("calendar.nextYear"), h = e("calendar.more", "") || "还有 #count# 项...";
|
|
1251
1251
|
return {
|
|
1252
1252
|
monthLabels: n,
|
|
1253
1253
|
weekDayLabels: o,
|
|
@@ -1261,7 +1261,7 @@ function on() {
|
|
|
1261
1261
|
prevWeek: r,
|
|
1262
1262
|
nextWeek: i,
|
|
1263
1263
|
prevDay: v,
|
|
1264
|
-
nextDay:
|
|
1264
|
+
nextDay: u,
|
|
1265
1265
|
yearViewTitle: p,
|
|
1266
1266
|
yearViewTitleFormat: a,
|
|
1267
1267
|
thisYear: w,
|
|
@@ -1284,7 +1284,7 @@ function cn(e) {
|
|
|
1284
1284
|
const t = ln(e);
|
|
1285
1285
|
return !isNaN(Number(t));
|
|
1286
1286
|
}
|
|
1287
|
-
function
|
|
1287
|
+
function un(e, t, n, o, m, w, p) {
|
|
1288
1288
|
const {
|
|
1289
1289
|
equalOrEarlier: D,
|
|
1290
1290
|
sameDay: I
|
|
@@ -1295,42 +1295,42 @@ function dn(e, t, n, o, m, w, p) {
|
|
|
1295
1295
|
formatTo: a
|
|
1296
1296
|
} = n;
|
|
1297
1297
|
function c(S, P) {
|
|
1298
|
-
S.forEach((
|
|
1299
|
-
|
|
1298
|
+
S.forEach((d) => {
|
|
1299
|
+
d.days.forEach((T) => {
|
|
1300
1300
|
T.events = [];
|
|
1301
1301
|
});
|
|
1302
1302
|
});
|
|
1303
|
-
const x = /* @__PURE__ */ new Map(), g = (
|
|
1304
|
-
if (!
|
|
1303
|
+
const x = /* @__PURE__ */ new Map(), g = (d) => {
|
|
1304
|
+
if (!d)
|
|
1305
1305
|
return null;
|
|
1306
|
-
if (x.has(
|
|
1307
|
-
return x.get(
|
|
1308
|
-
const T = f(
|
|
1306
|
+
if (x.has(d))
|
|
1307
|
+
return x.get(d);
|
|
1308
|
+
const T = f(d, "yyyy-MM-dd");
|
|
1309
1309
|
if (!T)
|
|
1310
1310
|
return null;
|
|
1311
1311
|
const L = C(T);
|
|
1312
|
-
return x.set(
|
|
1312
|
+
return x.set(d, L), L;
|
|
1313
1313
|
};
|
|
1314
|
-
return P.forEach((
|
|
1314
|
+
return P.forEach((d) => {
|
|
1315
1315
|
const {
|
|
1316
1316
|
eventDateField: T,
|
|
1317
1317
|
startDateField: L
|
|
1318
|
-
} = e, O = K(
|
|
1318
|
+
} = e, O = K(d, T) || K(d, L), b = g(O);
|
|
1319
1319
|
b && S.forEach((j) => {
|
|
1320
1320
|
j.days.forEach((V) => {
|
|
1321
1321
|
var F;
|
|
1322
1322
|
I(V.date, b) && ((F = V.events) == null || F.push({
|
|
1323
|
-
id:
|
|
1323
|
+
id: d[e.idField],
|
|
1324
1324
|
data: {
|
|
1325
|
-
...
|
|
1325
|
+
...d
|
|
1326
1326
|
},
|
|
1327
1327
|
eventDate: b,
|
|
1328
1328
|
isSingleDay: !0
|
|
1329
1329
|
}));
|
|
1330
1330
|
});
|
|
1331
1331
|
});
|
|
1332
|
-
}), S.forEach((
|
|
1333
|
-
const T = [], L =
|
|
1332
|
+
}), S.forEach((d) => {
|
|
1333
|
+
const T = [], L = d.days.map((b, j) => b.events && b.events.length > 0 ? b.events.map((V, F) => ({
|
|
1334
1334
|
...V,
|
|
1335
1335
|
// 在非跨天模式下,colspan为1,rowspan为1
|
|
1336
1336
|
colspan: 1,
|
|
@@ -1349,57 +1349,57 @@ function dn(e, t, n, o, m, w, p) {
|
|
|
1349
1349
|
});
|
|
1350
1350
|
T.push(j);
|
|
1351
1351
|
}
|
|
1352
|
-
|
|
1352
|
+
d.events = T;
|
|
1353
1353
|
}), S;
|
|
1354
1354
|
}
|
|
1355
1355
|
function y(S, P) {
|
|
1356
|
-
S.forEach((
|
|
1357
|
-
|
|
1356
|
+
S.forEach((d) => {
|
|
1357
|
+
d.events = [];
|
|
1358
1358
|
});
|
|
1359
|
-
const x = /* @__PURE__ */ new Map(), g = (
|
|
1360
|
-
if (!
|
|
1359
|
+
const x = /* @__PURE__ */ new Map(), g = (d) => {
|
|
1360
|
+
if (!d)
|
|
1361
1361
|
return null;
|
|
1362
|
-
if (x.has(
|
|
1363
|
-
return x.get(
|
|
1364
|
-
const T = f(
|
|
1362
|
+
if (x.has(d))
|
|
1363
|
+
return x.get(d);
|
|
1364
|
+
const T = f(d, "yyyy-MM-dd");
|
|
1365
1365
|
if (!T)
|
|
1366
1366
|
return null;
|
|
1367
1367
|
const L = C(T);
|
|
1368
|
-
return x.set(
|
|
1368
|
+
return x.set(d, L), L;
|
|
1369
1369
|
};
|
|
1370
|
-
return P.forEach((
|
|
1370
|
+
return P.forEach((d) => {
|
|
1371
1371
|
const {
|
|
1372
1372
|
startDateField: T,
|
|
1373
1373
|
endDateField: L
|
|
1374
|
-
} = e, O = g(K(
|
|
1374
|
+
} = e, O = g(K(d, T)), b = g(K(d, L));
|
|
1375
1375
|
!O || !b || S.forEach((j) => {
|
|
1376
|
-
var W,
|
|
1376
|
+
var W, z, G, _;
|
|
1377
1377
|
const V = j.days[0].date, F = j.days[j.days.length - 1].date;
|
|
1378
1378
|
if (!(D(b, V, !1) || D(F, O, !1)))
|
|
1379
1379
|
if (I(O, b))
|
|
1380
1380
|
(W = j.events) == null || W.push({
|
|
1381
|
-
id:
|
|
1381
|
+
id: d[e.idField],
|
|
1382
1382
|
data: {
|
|
1383
|
-
...
|
|
1383
|
+
...d
|
|
1384
1384
|
},
|
|
1385
1385
|
eventDate: O,
|
|
1386
1386
|
isSingleDay: !0
|
|
1387
1387
|
});
|
|
1388
1388
|
else {
|
|
1389
|
-
const J = D(V, O, !1) ? O : V,
|
|
1389
|
+
const J = D(V, O, !1) ? O : V, H = D(b, F, !1) ? b : F;
|
|
1390
1390
|
let Q = -1, ae = -1;
|
|
1391
|
-
j.days.forEach((
|
|
1392
|
-
I(
|
|
1393
|
-
}), Q !== -1 && ae !== -1 && ((
|
|
1394
|
-
id:
|
|
1391
|
+
j.days.forEach((de, fe) => {
|
|
1392
|
+
I(de.date, J) && (Q = fe), I(de.date, H) && (ae = fe);
|
|
1393
|
+
}), Q !== -1 && ae !== -1 && ((z = j.events) == null || z.push({
|
|
1394
|
+
id: d[e.idField],
|
|
1395
1395
|
data: {
|
|
1396
|
-
...
|
|
1396
|
+
...d
|
|
1397
1397
|
},
|
|
1398
1398
|
// 修复:eventDate 应该是事件在整个事件范围内的起始日期
|
|
1399
1399
|
eventDate: O,
|
|
1400
1400
|
// 添加在当前周的起始和结束日期
|
|
1401
1401
|
startDate: J,
|
|
1402
|
-
endDate:
|
|
1402
|
+
endDate: H,
|
|
1403
1403
|
// 添加在当前周的起始和结束索引
|
|
1404
1404
|
startIndex: Q,
|
|
1405
1405
|
endIndex: ae,
|
|
@@ -1409,29 +1409,29 @@ function dn(e, t, n, o, m, w, p) {
|
|
|
1409
1409
|
}
|
|
1410
1410
|
else
|
|
1411
1411
|
I(O, F) && !I(b, F) && ((G = j.events) == null || G.push({
|
|
1412
|
-
id: `${
|
|
1412
|
+
id: `${d[e.idField]}_start`,
|
|
1413
1413
|
data: {
|
|
1414
|
-
...
|
|
1414
|
+
...d
|
|
1415
1415
|
},
|
|
1416
1416
|
eventDate: O,
|
|
1417
1417
|
isSingleDay: !0,
|
|
1418
1418
|
isOverlapping: !0,
|
|
1419
|
-
originalId:
|
|
1419
|
+
originalId: d[e.idField]
|
|
1420
1420
|
})), I(b, V) && !I(O, V) && ((_ = j.events) == null || _.push({
|
|
1421
|
-
id: `${
|
|
1421
|
+
id: `${d[e.idField]}_end`,
|
|
1422
1422
|
data: {
|
|
1423
|
-
...
|
|
1423
|
+
...d
|
|
1424
1424
|
},
|
|
1425
1425
|
eventDate: b,
|
|
1426
1426
|
isSingleDay: !0,
|
|
1427
1427
|
isOverlapping: !0,
|
|
1428
|
-
originalId:
|
|
1428
|
+
originalId: d[e.idField]
|
|
1429
1429
|
}));
|
|
1430
1430
|
});
|
|
1431
|
-
}), S.forEach((
|
|
1432
|
-
|
|
1431
|
+
}), S.forEach((d) => {
|
|
1432
|
+
d.days.forEach((T, L) => {
|
|
1433
1433
|
var V;
|
|
1434
|
-
const O = (V =
|
|
1434
|
+
const O = (V = d.events) == null ? void 0 : V.filter((F) => F.isCrossDay ? L >= F.startIndex && L <= F.endIndex : F.isSingleDay ? I({
|
|
1435
1435
|
year: F.eventDate.year,
|
|
1436
1436
|
month: F.eventDate.month,
|
|
1437
1437
|
day: F.eventDate.day
|
|
@@ -1441,8 +1441,8 @@ function dn(e, t, n, o, m, w, p) {
|
|
|
1441
1441
|
day: T.date.day
|
|
1442
1442
|
}) : !1), b = O == null ? void 0 : O.find((F) => F.isCrossDay), j = (O == null ? void 0 : O.filter((F) => F.isSingleDay)) || [];
|
|
1443
1443
|
b && j.length > 0 && j.forEach((F) => {
|
|
1444
|
-
var W,
|
|
1445
|
-
((W =
|
|
1444
|
+
var W, z;
|
|
1445
|
+
((W = d.events) == null ? void 0 : W.some((G) => (G.originalId === F.id || G.id === F.id) && I({
|
|
1446
1446
|
year: G.eventDate.year,
|
|
1447
1447
|
month: G.eventDate.month,
|
|
1448
1448
|
day: G.eventDate.day
|
|
@@ -1450,7 +1450,7 @@ function dn(e, t, n, o, m, w, p) {
|
|
|
1450
1450
|
year: T.date.year,
|
|
1451
1451
|
month: T.date.month,
|
|
1452
1452
|
day: T.date.day
|
|
1453
|
-
}))) || (
|
|
1453
|
+
}))) || (z = d.events) == null || z.push({
|
|
1454
1454
|
id: F.id,
|
|
1455
1455
|
data: {
|
|
1456
1456
|
...F.data
|
|
@@ -1462,11 +1462,11 @@ function dn(e, t, n, o, m, w, p) {
|
|
|
1462
1462
|
});
|
|
1463
1463
|
});
|
|
1464
1464
|
});
|
|
1465
|
-
}), S.forEach((
|
|
1465
|
+
}), S.forEach((d) => {
|
|
1466
1466
|
const T = [];
|
|
1467
1467
|
for (let b = 0; b < 10; b++)
|
|
1468
1468
|
T[b] = Array(7).fill(null);
|
|
1469
|
-
[...
|
|
1469
|
+
[...d.events].sort((b, j) => {
|
|
1470
1470
|
if (b.isCrossDay && !j.isCrossDay)
|
|
1471
1471
|
return -1;
|
|
1472
1472
|
if (!b.isCrossDay && j.isCrossDay)
|
|
@@ -1477,7 +1477,7 @@ function dn(e, t, n, o, m, w, p) {
|
|
|
1477
1477
|
return V.year !== F.year ? V.year - F.year : V.month !== F.month ? V.month - F.month : V.day - F.day;
|
|
1478
1478
|
}).forEach((b) => {
|
|
1479
1479
|
let j = 0, V = !1, F = 0, q = 1;
|
|
1480
|
-
for (b.isCrossDay ? (F = b.startIndex, q = b.colspan) : (F =
|
|
1480
|
+
for (b.isCrossDay ? (F = b.startIndex, q = b.colspan) : (F = d.days.findIndex((W) => I({
|
|
1481
1481
|
year: b.eventDate.year,
|
|
1482
1482
|
month: b.eventDate.month,
|
|
1483
1483
|
day: b.eventDate.day
|
|
@@ -1487,17 +1487,17 @@ function dn(e, t, n, o, m, w, p) {
|
|
|
1487
1487
|
day: W.date.day
|
|
1488
1488
|
})), q = 1); !V && j < T.length; ) {
|
|
1489
1489
|
let W = !0;
|
|
1490
|
-
for (let
|
|
1491
|
-
if (T[j][
|
|
1490
|
+
for (let z = F; z < F + q; z++)
|
|
1491
|
+
if (T[j][z] !== null) {
|
|
1492
1492
|
W = !1;
|
|
1493
1493
|
break;
|
|
1494
1494
|
}
|
|
1495
1495
|
if (W) {
|
|
1496
|
-
for (let
|
|
1497
|
-
T[j][
|
|
1496
|
+
for (let z = F; z < F + q; z++)
|
|
1497
|
+
T[j][z] = z === F ? b : {
|
|
1498
1498
|
...b,
|
|
1499
1499
|
isPlaceholder: !0,
|
|
1500
|
-
colspan:
|
|
1500
|
+
colspan: z === F ? q : 0
|
|
1501
1501
|
};
|
|
1502
1502
|
V = !0;
|
|
1503
1503
|
} else
|
|
@@ -1518,16 +1518,16 @@ function dn(e, t, n, o, m, w, p) {
|
|
|
1518
1518
|
}
|
|
1519
1519
|
O.push(j);
|
|
1520
1520
|
}
|
|
1521
|
-
}),
|
|
1521
|
+
}), d.events = O;
|
|
1522
1522
|
}), S;
|
|
1523
1523
|
}
|
|
1524
1524
|
function r(S, P) {
|
|
1525
1525
|
const x = {};
|
|
1526
1526
|
return P.forEach((g) => {
|
|
1527
1527
|
const {
|
|
1528
|
-
eventDateField:
|
|
1528
|
+
eventDateField: d,
|
|
1529
1529
|
startDateField: T
|
|
1530
|
-
} = e, L = K(g,
|
|
1530
|
+
} = e, L = K(g, d) || K(g, T);
|
|
1531
1531
|
if (!L)
|
|
1532
1532
|
return;
|
|
1533
1533
|
const O = C(f(L, "yyyy-MM-dd"));
|
|
@@ -1551,7 +1551,7 @@ function dn(e, t, n, o, m, w, p) {
|
|
|
1551
1551
|
view: i()
|
|
1552
1552
|
});
|
|
1553
1553
|
}
|
|
1554
|
-
const
|
|
1554
|
+
const u = (S, P, x) => {
|
|
1555
1555
|
const g = K(S, P);
|
|
1556
1556
|
return typeof g == "string" ? g : g !== null && typeof g == "object" && !Array.isArray(g) && x ? g[x] || "" : g || "";
|
|
1557
1557
|
};
|
|
@@ -1559,13 +1559,13 @@ function dn(e, t, n, o, m, w, p) {
|
|
|
1559
1559
|
return Te(e.eventItemFormatter) ? e.eventItemFormatter(S.data, {
|
|
1560
1560
|
parseToDate: f,
|
|
1561
1561
|
formatTo: a,
|
|
1562
|
-
getValue:
|
|
1562
|
+
getValue: u,
|
|
1563
1563
|
view: i(),
|
|
1564
1564
|
locale: p
|
|
1565
1565
|
}) : K(S.data, e.textField || "title");
|
|
1566
1566
|
}
|
|
1567
1567
|
function s(S) {
|
|
1568
|
-
return Te(e.eventItemFormatter) ? "" :
|
|
1568
|
+
return Te(e.eventItemFormatter) ? "" : u(S.data, e.textField || "title", p);
|
|
1569
1569
|
}
|
|
1570
1570
|
const h = (S) => {
|
|
1571
1571
|
if (!S || !S.data)
|
|
@@ -1579,7 +1579,7 @@ function dn(e, t, n, o, m, w, p) {
|
|
|
1579
1579
|
const P = e.customEventStyles(S.data, {
|
|
1580
1580
|
parseToDate: f,
|
|
1581
1581
|
formatTo: a,
|
|
1582
|
-
getValue:
|
|
1582
|
+
getValue: u,
|
|
1583
1583
|
view: i(),
|
|
1584
1584
|
locale: p
|
|
1585
1585
|
});
|
|
@@ -1655,47 +1655,47 @@ const ne = /* @__PURE__ */ ee({
|
|
|
1655
1655
|
nextDay: r,
|
|
1656
1656
|
yearViewTitle: i,
|
|
1657
1657
|
yearViewTitleFormat: v,
|
|
1658
|
-
thisYear:
|
|
1658
|
+
thisYear: u,
|
|
1659
1659
|
prevYear: E,
|
|
1660
1660
|
nextYear: s,
|
|
1661
1661
|
moreText: h,
|
|
1662
1662
|
locale: N
|
|
1663
|
-
} = on(), M = Oe(), $ = Wt(), S =
|
|
1663
|
+
} = on(), M = Oe(), $ = Wt(), S = ue(), {
|
|
1664
1664
|
sameDay: P
|
|
1665
1665
|
} = M, {
|
|
1666
1666
|
getToday: x,
|
|
1667
1667
|
convertDateToDateObject: g
|
|
1668
1668
|
} = S, {
|
|
1669
|
-
parseToDate:
|
|
1670
|
-
} = $, T = B(e.firstDayOfTheWeek), L = B(e.events), O = B(e.enableCrossDay), b = x(), j = B(e.activeDate), V = B(0), F = B(e.visible), q =
|
|
1669
|
+
parseToDate: d
|
|
1670
|
+
} = $, T = B(e.firstDayOfTheWeek), L = B(e.events), O = B(e.enableCrossDay), b = x(), j = B(e.activeDate), V = B(0), F = B(e.visible), q = un(e, S, $, M, t, V, N);
|
|
1671
1671
|
Et("eventsComposition", q);
|
|
1672
1672
|
const W = B({
|
|
1673
1673
|
year: b.year || 1,
|
|
1674
1674
|
month: b.month || 1,
|
|
1675
1675
|
day: b.day || 1
|
|
1676
1676
|
});
|
|
1677
|
-
function
|
|
1678
|
-
typeof j.value == "string" && (j.value =
|
|
1677
|
+
function z() {
|
|
1678
|
+
typeof j.value == "string" && (j.value = d(j.value, "yyyy-MM-dd")), cn(j.value) && (W.value = g(j.value));
|
|
1679
1679
|
}
|
|
1680
|
-
|
|
1681
|
-
j.value = e.activeDate,
|
|
1680
|
+
z(), Y(() => e.activeDate, () => {
|
|
1681
|
+
j.value = e.activeDate, z();
|
|
1682
1682
|
}), Y(() => e.firstDayOfTheWeek, (k, R) => {
|
|
1683
1683
|
k !== R && (T.value = k);
|
|
1684
1684
|
}), Y(() => e.enableCrossDay, (k, R) => {
|
|
1685
1685
|
k !== R && (O.value = k);
|
|
1686
1686
|
});
|
|
1687
1687
|
const G = B(e.width), _ = B(e.height), J = B();
|
|
1688
|
-
function
|
|
1688
|
+
function H() {
|
|
1689
1689
|
const k = oe.some((R) => R === e.defaultView) ? e.defaultView : "month";
|
|
1690
1690
|
V.value = oe.indexOf(k) + 1;
|
|
1691
1691
|
}
|
|
1692
|
-
|
|
1693
|
-
|
|
1692
|
+
H(), Y(() => e.defaultView, (k, R) => {
|
|
1693
|
+
H();
|
|
1694
1694
|
});
|
|
1695
1695
|
const {
|
|
1696
1696
|
getMonthlyCalendar: Q,
|
|
1697
1697
|
getWeeklyCalendar: ae,
|
|
1698
|
-
getPreviousDay:
|
|
1698
|
+
getPreviousDay: de,
|
|
1699
1699
|
getNextDay: fe,
|
|
1700
1700
|
getDayInPreviousWeek: Je,
|
|
1701
1701
|
getDayInNextWeek: Xe,
|
|
@@ -1703,7 +1703,7 @@ const ne = /* @__PURE__ */ ee({
|
|
|
1703
1703
|
getDayInNextMonth: Ze,
|
|
1704
1704
|
getNextYear: Ke,
|
|
1705
1705
|
getPreviousYear: et
|
|
1706
|
-
} = Zt(), tt = A(() => V.value === 1 ? v.replace("yyyy", "" + W.value.year) : n.replace("yyyy", "" + W.value.year).replace("MM", "" + W.value.month)), nt = A(() => V.value === 1 ?
|
|
1706
|
+
} = Zt(), tt = A(() => V.value === 1 ? v.replace("yyyy", "" + W.value.year) : n.replace("yyyy", "" + W.value.year).replace("MM", "" + W.value.month)), nt = A(() => V.value === 1 ? u : o), at = A(() => {
|
|
1707
1707
|
const k = [], R = X.indexOf(T.value);
|
|
1708
1708
|
if (R !== -1) {
|
|
1709
1709
|
let U = R;
|
|
@@ -1754,15 +1754,15 @@ const ne = /* @__PURE__ */ ee({
|
|
|
1754
1754
|
});
|
|
1755
1755
|
};
|
|
1756
1756
|
function lt(k) {
|
|
1757
|
-
k === 1 && (W.value = et(W.value), be()), k === 2 && (W.value = Qe(W.value), ge()), k === 3 && (W.value = Je(W.value)), k === 4 && (W.value =
|
|
1757
|
+
k === 1 && (W.value = et(W.value), be()), k === 2 && (W.value = Qe(W.value), ge()), k === 3 && (W.value = Je(W.value)), k === 4 && (W.value = de(W.value));
|
|
1758
1758
|
}
|
|
1759
1759
|
function st(k) {
|
|
1760
1760
|
k === 1 && (W.value = Ke(W.value), be()), k === 2 && (W.value = Ze(W.value), ge()), k === 3 && (W.value = Xe(W.value)), k === 4 && (W.value = fe(W.value));
|
|
1761
1761
|
}
|
|
1762
1762
|
const We = () => {
|
|
1763
1763
|
oe[V.value - 1] === "year" ? be() : ge();
|
|
1764
|
-
}, ct = A(() => [E, m, a, y][V.value - 1]),
|
|
1765
|
-
function
|
|
1764
|
+
}, ct = A(() => [E, m, a, y][V.value - 1]), ut = A(() => [s, w, c, r][V.value - 1]);
|
|
1765
|
+
function dt() {
|
|
1766
1766
|
W.value = {
|
|
1767
1767
|
year: b.year || 1,
|
|
1768
1768
|
month: b.month || 1,
|
|
@@ -1856,7 +1856,7 @@ const ne = /* @__PURE__ */ ee({
|
|
|
1856
1856
|
title: tt.value,
|
|
1857
1857
|
enableMoreView: e.enableMoreView,
|
|
1858
1858
|
previousText: ct.value,
|
|
1859
|
-
nextText:
|
|
1859
|
+
nextText: ut.value,
|
|
1860
1860
|
monthlyViewTitle: D,
|
|
1861
1861
|
weeklyViewTitle: I,
|
|
1862
1862
|
dailyViewTitle: p,
|
|
@@ -1864,7 +1864,7 @@ const ne = /* @__PURE__ */ ee({
|
|
|
1864
1864
|
onViewChange: (k) => vt(k),
|
|
1865
1865
|
onPrevious: (k) => lt(k),
|
|
1866
1866
|
onNext: (k) => st(k),
|
|
1867
|
-
onResetToToday: () =>
|
|
1867
|
+
onResetToToday: () => dt()
|
|
1868
1868
|
}, null), l("div", {
|
|
1869
1869
|
class: "f-utils-fill"
|
|
1870
1870
|
}, [V.value === 4 && l(Ie, {
|
|
@@ -1959,9 +1959,14 @@ const ne = /* @__PURE__ */ ee({
|
|
|
1959
1959
|
"discussion-list": { type: "discussion-list", name: "评论列表" },
|
|
1960
1960
|
comment: { type: "comment", name: "评论区" },
|
|
1961
1961
|
"rich-text-editor": { type: "rich-text-editor", name: "富文本", icon: "rich-text-box" },
|
|
1962
|
-
calendar: { type: "calendar", name: "日历", icon: "date-picker" }
|
|
1962
|
+
calendar: { type: "calendar", name: "日历", icon: "date-picker" },
|
|
1963
|
+
wizard: { type: "wizard", name: "向导", icon: "wizard" },
|
|
1964
|
+
"wizard-page": { type: "wizard-page", name: "向导页", icon: "wizard" },
|
|
1965
|
+
"wizard-page-detail": { type: "wizard-page-detail", name: "向导详情", icon: "wizard" },
|
|
1966
|
+
step: { type: "step", name: "步骤条", icon: "step" },
|
|
1967
|
+
"dynamic-form": { type: "dynamic-form", name: "动态表单" }
|
|
1963
1968
|
};
|
|
1964
|
-
function
|
|
1969
|
+
function He(e, t) {
|
|
1965
1970
|
return l("h5", {
|
|
1966
1971
|
style: "display: flex;justify-content: space-between;align-items: center;"
|
|
1967
1972
|
}, [se("示例代码:"), l("button", {
|
|
@@ -1986,7 +1991,7 @@ context: 提供一些时间转换方法,以及获取日程数据的方法
|
|
|
1986
1991
|
// 当前语言编码
|
|
1987
1992
|
locale: string
|
|
1988
1993
|
${e ? "此方法返回一个字符串,可包括HTML代码,如:<div>...</div>" : "此方法返回一个对象,包含cls和styles两个属性,cls为事件样式类名,styles为事件样式对象"}
|
|
1989
|
-
*/`,
|
|
1994
|
+
*/`, dn = (e) => {
|
|
1990
1995
|
const t = `(data, context) => {
|
|
1991
1996
|
/**
|
|
1992
1997
|
* const {formatTo, view, locale, getValue} = context;
|
|
@@ -2001,7 +2006,7 @@ ${e ? "此方法返回一个字符串,可包括HTML代码,如:<div>...</di
|
|
|
2001
2006
|
styles: { fontWeight: 'bold' }
|
|
2002
2007
|
}
|
|
2003
2008
|
}`;
|
|
2004
|
-
return l(Ae, null, [
|
|
2009
|
+
return l(Ae, null, [He(e, t), l("pre", {
|
|
2005
2010
|
style: "height: calc(100% - 35px);margin: 0;"
|
|
2006
2011
|
}, [l("code", null, [se(" "), `${Ge(!1)}
|
|
2007
2012
|
${t}
|
|
@@ -2023,7 +2028,7 @@ ${t}
|
|
|
2023
2028
|
<div style="\${styles}">\${formatTo(data.beginTime, timeFmt)}</div>
|
|
2024
2029
|
</div>\`
|
|
2025
2030
|
}`;
|
|
2026
|
-
return l(Ae, null, [
|
|
2031
|
+
return l(Ae, null, [He(e, t), l("pre", {
|
|
2027
2032
|
style: "height: calc(100% - 35px);margin: 0;"
|
|
2028
2033
|
}, [l("code", null, [se(" "), `${Ge()}
|
|
2029
2034
|
${t}
|
|
@@ -2266,7 +2271,7 @@ class mn extends Rt {
|
|
|
2266
2271
|
editor: {
|
|
2267
2272
|
type: "code-editor",
|
|
2268
2273
|
language: "javascript",
|
|
2269
|
-
leftTemplate:
|
|
2274
|
+
leftTemplate: dn
|
|
2270
2275
|
}
|
|
2271
2276
|
}
|
|
2272
2277
|
},
|
|
@@ -2345,17 +2350,17 @@ function vn(e, t) {
|
|
|
2345
2350
|
var a, c, y, r;
|
|
2346
2351
|
if (e && t) {
|
|
2347
2352
|
const i = (a = e == null ? void 0 : e.componentInstance) == null ? void 0 : a.value.belongedComponentId;
|
|
2348
|
-
let v = "",
|
|
2353
|
+
let v = "", u = "";
|
|
2349
2354
|
const { formSchemaUtils: E } = t;
|
|
2350
2355
|
if (i) {
|
|
2351
2356
|
const h = E.getRootViewModelId(), N = E.getComponentByViewModelId(h), M = E.selectNode(N, ($) => $.contents && $.contents.find((S) => S.component === i));
|
|
2352
|
-
(M == null ? void 0 : M.type) === ((c = he["tab-page"]) == null ? void 0 : c.type) && ((y = M == null ? void 0 : M.contents) != null && y.length) && (v = M.title || ""), (M == null ? void 0 : M.type) === ((r = he.section) == null ? void 0 : r.type) && (M == null ? void 0 : M.showHeader) !== !1 && (v = M.mainTitle || ""), v = v ? `${v} > ` : "",
|
|
2357
|
+
(M == null ? void 0 : M.type) === ((c = he["tab-page"]) == null ? void 0 : c.type) && ((y = M == null ? void 0 : M.contents) != null && y.length) && (v = M.title || ""), (M == null ? void 0 : M.type) === ((r = he.section) == null ? void 0 : r.type) && (M == null ? void 0 : M.showHeader) !== !1 && (v = M.mainTitle || ""), v = v ? `${v} > ` : "", u = v ? M.id : "";
|
|
2353
2358
|
}
|
|
2354
2359
|
const s = he.calendar.name;
|
|
2355
2360
|
t == null || t.formSchemaUtils.getControlBasicInfoMap().set(e.schema.id, {
|
|
2356
2361
|
componentTitle: s,
|
|
2357
2362
|
parentPathName: `${v}${s}`,
|
|
2358
|
-
reliedComponentId:
|
|
2363
|
+
reliedComponentId: u
|
|
2359
2364
|
});
|
|
2360
2365
|
}
|
|
2361
2366
|
}
|
|
@@ -2397,7 +2402,85 @@ const yn = /* @__PURE__ */ ee({
|
|
|
2397
2402
|
}, null)]);
|
|
2398
2403
|
}
|
|
2399
2404
|
});
|
|
2400
|
-
function
|
|
2405
|
+
function Ue(e, t) {
|
|
2406
|
+
let n;
|
|
2407
|
+
function o(a) {
|
|
2408
|
+
const { properties: c, title: y, ignore: r } = a, i = r && Array.isArray(r), v = Object.keys(c).reduce((u, E) => ((!i || !r.find((s) => s === E)) && (u[E] = c[E].type === "object" && c[E].properties ? o(c[E]) : ce(c[E].default)), u), {});
|
|
2409
|
+
if (y && (!i || !r.find((u) => u === "id"))) {
|
|
2410
|
+
const u = y.toLowerCase().replace(/-/g, "_");
|
|
2411
|
+
v.id = `${u}_${Math.random().toString().slice(2, 6)}`;
|
|
2412
|
+
}
|
|
2413
|
+
return v;
|
|
2414
|
+
}
|
|
2415
|
+
function m(a) {
|
|
2416
|
+
const { properties: c, title: y, required: r } = a;
|
|
2417
|
+
if (r && Array.isArray(r)) {
|
|
2418
|
+
const i = r.reduce((v, u) => (v[u] = c[u].type === "object" && c[u].properties ? o(c[u]) : ce(c[u].default), v), {});
|
|
2419
|
+
if (y && r.find((v) => v === "id")) {
|
|
2420
|
+
const v = y.toLowerCase().replace(/-/g, "_");
|
|
2421
|
+
i.id = `${v}_${Math.random().toString().slice(2, 6)}`;
|
|
2422
|
+
}
|
|
2423
|
+
return i;
|
|
2424
|
+
}
|
|
2425
|
+
return {
|
|
2426
|
+
type: y
|
|
2427
|
+
};
|
|
2428
|
+
}
|
|
2429
|
+
function w(a, c = {}, y) {
|
|
2430
|
+
const r = e[a];
|
|
2431
|
+
if (r) {
|
|
2432
|
+
let i = m(r);
|
|
2433
|
+
const v = t[a];
|
|
2434
|
+
return i = v ? v({ getSchemaByType: w }, i, c, y) : i, n != null && n.appendIdentifyForNewControl && n.appendIdentifyForNewControl(i), i;
|
|
2435
|
+
}
|
|
2436
|
+
return null;
|
|
2437
|
+
}
|
|
2438
|
+
function p(a, c) {
|
|
2439
|
+
const y = o(c);
|
|
2440
|
+
return Object.keys(y).reduce((r, i) => (Object.prototype.hasOwnProperty.call(a, i) && (r[i] && $e(r[i]) && $e(a[i] || !a[i]) ? Object.assign(r[i], a[i] || {}) : r[i] = a[i]), r), y), y;
|
|
2441
|
+
}
|
|
2442
|
+
function D(a, c) {
|
|
2443
|
+
return Object.keys(a).filter((r) => a[r] != null).reduce((r, i) => {
|
|
2444
|
+
if (c.has(i)) {
|
|
2445
|
+
const v = c.get(i);
|
|
2446
|
+
if (typeof v == "string")
|
|
2447
|
+
r[v] = a[i];
|
|
2448
|
+
else {
|
|
2449
|
+
const u = v(i, a[i], a);
|
|
2450
|
+
Object.assign(r, u);
|
|
2451
|
+
}
|
|
2452
|
+
} else
|
|
2453
|
+
r[i] = a[i];
|
|
2454
|
+
return r;
|
|
2455
|
+
}, {});
|
|
2456
|
+
}
|
|
2457
|
+
function I(a, c, y = /* @__PURE__ */ new Map()) {
|
|
2458
|
+
const r = p(a, c);
|
|
2459
|
+
return D(r, y);
|
|
2460
|
+
}
|
|
2461
|
+
function C(a) {
|
|
2462
|
+
var y;
|
|
2463
|
+
const c = a.type;
|
|
2464
|
+
if (c) {
|
|
2465
|
+
const r = e[c];
|
|
2466
|
+
if (!r)
|
|
2467
|
+
return a;
|
|
2468
|
+
const i = p(a, r), v = ((y = a.editor) == null ? void 0 : y.type) || "";
|
|
2469
|
+
if (v) {
|
|
2470
|
+
const u = e[v], E = p(a.editor, u);
|
|
2471
|
+
i.editor = E;
|
|
2472
|
+
}
|
|
2473
|
+
return i;
|
|
2474
|
+
}
|
|
2475
|
+
return a;
|
|
2476
|
+
}
|
|
2477
|
+
function f(a) {
|
|
2478
|
+
n = a;
|
|
2479
|
+
}
|
|
2480
|
+
return { getSchemaByType: w, resolveSchemaWithDefaultValue: C, resolveSchemaToProps: I, mappingSchemaToProps: D, setDesignerContext: f };
|
|
2481
|
+
}
|
|
2482
|
+
const hn = {}, pn = {}, { resolveSchemaWithDefaultValue: gn } = Ue(hn, pn);
|
|
2483
|
+
function bn(e = {}) {
|
|
2401
2484
|
function t(C, f, a, c) {
|
|
2402
2485
|
if (typeof a == "number")
|
|
2403
2486
|
return c[C].length === a;
|
|
@@ -2446,35 +2529,35 @@ function hn(e = {}) {
|
|
|
2446
2529
|
return w(C).reduce((y, r) => y && p(r, f), !0);
|
|
2447
2530
|
}
|
|
2448
2531
|
function I(C, f) {
|
|
2449
|
-
const a = Object.keys(C), c = a.includes("allOf"), y = a.includes("anyOf"), r = c || y,
|
|
2450
|
-
return c ? !
|
|
2532
|
+
const a = Object.keys(C), c = a.includes("allOf"), y = a.includes("anyOf"), r = c || y, u = (r ? C[r ? c ? "allOf" : "anyOf" : "allOf"] : [C]).map((s) => D(s, f));
|
|
2533
|
+
return c ? !u.includes(!1) : u.includes(!0);
|
|
2451
2534
|
}
|
|
2452
2535
|
return { parseValueSchema: I };
|
|
2453
2536
|
}
|
|
2454
|
-
const
|
|
2537
|
+
const wn = {
|
|
2455
2538
|
convertTo: (e, t, n, o) => {
|
|
2456
2539
|
e.appearance || (e.appearance = {}), e.appearance[t] = n;
|
|
2457
2540
|
},
|
|
2458
2541
|
convertFrom: (e, t, n) => e.appearance ? e.appearance[t] : e[t]
|
|
2459
|
-
},
|
|
2542
|
+
}, Cn = {
|
|
2460
2543
|
convertFrom: (e, t, n) => e.buttons && e.buttons.length ? `共 ${e.buttons.length} 项` : "无"
|
|
2461
|
-
},
|
|
2544
|
+
}, Dn = {
|
|
2462
2545
|
convertTo: (e, t, n, o) => {
|
|
2463
2546
|
e.editor && (e.editor[t] = n);
|
|
2464
2547
|
},
|
|
2465
2548
|
convertFrom: (e, t, n) => e.editor && Object.prototype.hasOwnProperty.call(e.editor, t) ? e.editor[t] : e[t]
|
|
2466
|
-
},
|
|
2549
|
+
}, Tn = {
|
|
2467
2550
|
convertFrom: (e, t, n) => {
|
|
2468
2551
|
var m;
|
|
2469
2552
|
const o = e.editor && e.editor[t] ? e.editor[t] : e[t];
|
|
2470
2553
|
return ((m = he[o]) == null ? void 0 : m.name) || o;
|
|
2471
2554
|
}
|
|
2472
|
-
},
|
|
2555
|
+
}, Mn = {
|
|
2473
2556
|
convertTo: (e, t, n, o) => {
|
|
2474
2557
|
e[t] = e[t];
|
|
2475
2558
|
},
|
|
2476
2559
|
convertFrom: (e, t, n) => e.editor ? n.getRealEditorType(e.editor.type) : ""
|
|
2477
|
-
},
|
|
2560
|
+
}, kn = {
|
|
2478
2561
|
convertTo: (e, t, n, o) => {
|
|
2479
2562
|
(e.type === "data-grid-column" || e.type === "tree-grid-column") && (e.formatter ? e.formatter[t] = n : e.formatter = {
|
|
2480
2563
|
[t]: n
|
|
@@ -2502,10 +2585,12 @@ const pn = {
|
|
|
2502
2585
|
return e.formatter.customFormat;
|
|
2503
2586
|
if (t === "type")
|
|
2504
2587
|
return e.formatter.type || "none";
|
|
2588
|
+
if (t === "customFormat")
|
|
2589
|
+
return e.formmater.customFormat;
|
|
2505
2590
|
}
|
|
2506
2591
|
return "none";
|
|
2507
2592
|
}
|
|
2508
|
-
},
|
|
2593
|
+
}, Sn = {
|
|
2509
2594
|
convertTo: (e, t, n, o) => {
|
|
2510
2595
|
e.command ? e.command[t] = n : e.command = {
|
|
2511
2596
|
[t]: n
|
|
@@ -2523,29 +2608,17 @@ const pn = {
|
|
|
2523
2608
|
]), t === "enableType" && n === "custom" && (e.command.enable = !0, e.command.commands = [
|
|
2524
2609
|
{
|
|
2525
2610
|
value: "add",
|
|
2526
|
-
text:
|
|
2527
|
-
en: "add",
|
|
2528
|
-
"zh-CHS": "增加",
|
|
2529
|
-
"zh-CHT": "增加"
|
|
2530
|
-
},
|
|
2611
|
+
text: "增加",
|
|
2531
2612
|
type: "link"
|
|
2532
2613
|
},
|
|
2533
2614
|
{
|
|
2534
2615
|
value: "edit",
|
|
2535
|
-
text:
|
|
2536
|
-
en: "edit",
|
|
2537
|
-
"zh-CHS": "编辑",
|
|
2538
|
-
"zh-CHT": "編輯"
|
|
2539
|
-
},
|
|
2616
|
+
text: "编辑",
|
|
2540
2617
|
type: "danger"
|
|
2541
2618
|
},
|
|
2542
2619
|
{
|
|
2543
2620
|
value: "remove",
|
|
2544
|
-
text:
|
|
2545
|
-
en: "remove",
|
|
2546
|
-
"zh-CHS": "删除",
|
|
2547
|
-
"zh-CHT": "刪除"
|
|
2548
|
-
},
|
|
2621
|
+
text: "删除",
|
|
2549
2622
|
type: "remove"
|
|
2550
2623
|
}
|
|
2551
2624
|
]), t === "enableType" && n === "unable" && (e.command.enable = !1);
|
|
@@ -2563,10 +2636,12 @@ const pn = {
|
|
|
2563
2636
|
return e.command.formatter;
|
|
2564
2637
|
if (t === "count")
|
|
2565
2638
|
return e.command.count;
|
|
2639
|
+
if (t === "columnWidth")
|
|
2640
|
+
return e.command.columnWidth || 150;
|
|
2566
2641
|
}
|
|
2567
2642
|
return "";
|
|
2568
2643
|
}
|
|
2569
|
-
},
|
|
2644
|
+
}, xn = {
|
|
2570
2645
|
convertTo: (e, t, n, o) => {
|
|
2571
2646
|
e.column ? e.column[t] = n : e.column = {
|
|
2572
2647
|
[t]: n
|
|
@@ -2581,7 +2656,7 @@ const pn = {
|
|
|
2581
2656
|
}
|
|
2582
2657
|
return "";
|
|
2583
2658
|
}
|
|
2584
|
-
},
|
|
2659
|
+
}, Fn = {
|
|
2585
2660
|
convertTo: (e, t, n, o) => {
|
|
2586
2661
|
e.summary ? e.summary[t] = n : e.summary = {
|
|
2587
2662
|
[t]: n
|
|
@@ -2590,8 +2665,11 @@ const pn = {
|
|
|
2590
2665
|
groupFields: []
|
|
2591
2666
|
});
|
|
2592
2667
|
},
|
|
2593
|
-
convertFrom: (e, t, n) =>
|
|
2594
|
-
|
|
2668
|
+
convertFrom: (e, t, n) => {
|
|
2669
|
+
var o;
|
|
2670
|
+
return t === "customSummaryStyle" ? e.summary.customSummaryStyle : t === "position" ? ((o = e.summary) == null ? void 0 : o[t]) || "bottom" : e.summary && t === "enable" ? e.summary.enable : e.type === "data-grid-column" ? e.enableSummary === void 0 ? !1 : e.enableSummary : "";
|
|
2671
|
+
}
|
|
2672
|
+
}, En = {
|
|
2595
2673
|
convertTo: (e, t, n, o) => {
|
|
2596
2674
|
e.group ? e.group[t] = n : e.group = {
|
|
2597
2675
|
[t]: n
|
|
@@ -2609,7 +2687,7 @@ const pn = {
|
|
|
2609
2687
|
return e.group.showSummary;
|
|
2610
2688
|
}
|
|
2611
2689
|
}
|
|
2612
|
-
},
|
|
2690
|
+
}, In = {
|
|
2613
2691
|
convertFrom: (e, t) => e.binding ? e.binding.path : "",
|
|
2614
2692
|
convertTo: (e, t, n) => {
|
|
2615
2693
|
if (n && n.length > 0) {
|
|
@@ -2617,17 +2695,17 @@ const pn = {
|
|
|
2617
2695
|
e.binding || (e.binding = {}), e.binding.type = "Form", e.binding.path = o.bindingField, e.binding.field = o.id, e.binding.fullPath = o.path, e.path = o.bindingPath;
|
|
2618
2696
|
}
|
|
2619
2697
|
}
|
|
2620
|
-
},
|
|
2698
|
+
}, Vn = {
|
|
2621
2699
|
convertTo: (e, t, n, o) => {
|
|
2622
|
-
e.pagination || (e.pagination = {}), e.pagination[t] = n;
|
|
2700
|
+
e.pagination || (e.pagination = {}), t === "sizeLimits" ? e.pagination.sizeLimits = n.split(",") : e.pagination[t] = n;
|
|
2623
2701
|
},
|
|
2624
|
-
convertFrom: (e, t, n) => e.pagination ? e.pagination[t] : e[t]
|
|
2625
|
-
},
|
|
2702
|
+
convertFrom: (e, t, n) => e.pagination ? t === "sizeLimits" ? e.pagination.sizeLimits.join(",") : e.pagination[t] : e[t]
|
|
2703
|
+
}, Nn = {
|
|
2626
2704
|
convertTo: (e, t, n, o) => {
|
|
2627
2705
|
e.rowNumber || (e.rowNumber = {}), e.rowNumber[t] = n;
|
|
2628
2706
|
},
|
|
2629
2707
|
convertFrom: (e, t, n) => e.rowNumber ? e.rowNumber[t] : e[t]
|
|
2630
|
-
},
|
|
2708
|
+
}, On = {
|
|
2631
2709
|
convertTo: (e, t, n, o) => {
|
|
2632
2710
|
e.selection || (e.selection = {}), e.selection[t] = n;
|
|
2633
2711
|
},
|
|
@@ -2635,24 +2713,24 @@ const pn = {
|
|
|
2635
2713
|
var o, m;
|
|
2636
2714
|
return t === "showCheckbox" ? (o = e.selection) != null && o.multiSelect ? !0 : (m = e.selection) == null ? void 0 : m.showCheckbox : e.selection ? e.selection[t] : e[t];
|
|
2637
2715
|
}
|
|
2638
|
-
},
|
|
2716
|
+
}, Pn = {
|
|
2639
2717
|
convertFrom: (e, t, n) => e[t] && e[t].length ? `共 ${e[t].length} 项` : ""
|
|
2640
|
-
},
|
|
2718
|
+
}, Wn = {
|
|
2641
2719
|
convertFrom: (e, t) => e[t] || "",
|
|
2642
2720
|
convertTo: (e, t, n) => {
|
|
2643
2721
|
e[t] = n;
|
|
2644
2722
|
}
|
|
2645
|
-
},
|
|
2723
|
+
}, Ln = {
|
|
2646
2724
|
convertTo: (e, t, n, o) => {
|
|
2647
2725
|
e.size || (e.size = {}), e.size[t] = n;
|
|
2648
2726
|
},
|
|
2649
2727
|
convertFrom: (e, t, n) => e.size ? e.size[t] : e[t]
|
|
2650
|
-
},
|
|
2728
|
+
}, jn = {
|
|
2651
2729
|
convertFrom: (e, t, n) => {
|
|
2652
2730
|
var o, m;
|
|
2653
2731
|
return (o = e.formatter) != null && o.data && t === "formatterEnumData" && !e.formatterEnumData ? (m = e.formatter) == null ? void 0 : m.data : e.formatterEnumData;
|
|
2654
2732
|
}
|
|
2655
|
-
},
|
|
2733
|
+
}, Bn = {
|
|
2656
2734
|
convertTo: (e, t, n, o) => {
|
|
2657
2735
|
e.sort || (e.sort = {}), e.sort[t] = n;
|
|
2658
2736
|
},
|
|
@@ -2663,7 +2741,7 @@ const pn = {
|
|
|
2663
2741
|
if (t === "multiSort")
|
|
2664
2742
|
return !!((m = e.sort) != null && m.multiSort);
|
|
2665
2743
|
}
|
|
2666
|
-
},
|
|
2744
|
+
}, $n = {
|
|
2667
2745
|
convertTo: (e, t, n, o) => {
|
|
2668
2746
|
e.filter || (e.filter = {}), e.filter[t] = n;
|
|
2669
2747
|
},
|
|
@@ -2672,7 +2750,7 @@ const pn = {
|
|
|
2672
2750
|
if (t === "mode")
|
|
2673
2751
|
return ((o = e.filter) == null ? void 0 : o.mode) || "client";
|
|
2674
2752
|
}
|
|
2675
|
-
},
|
|
2753
|
+
}, Rn = {
|
|
2676
2754
|
convertTo: (e, t, n, o) => {
|
|
2677
2755
|
e.rowOption ? e.rowOption[t] = n : e.rowOption = {
|
|
2678
2756
|
[t]: n
|
|
@@ -2684,10 +2762,12 @@ const pn = {
|
|
|
2684
2762
|
return e.rowOption.customRowStyle;
|
|
2685
2763
|
if (t === "customCellStyle")
|
|
2686
2764
|
return e.rowOption.customCellStyle;
|
|
2765
|
+
if (t === "height")
|
|
2766
|
+
return e.rowOption.height;
|
|
2687
2767
|
}
|
|
2688
2768
|
return "";
|
|
2689
2769
|
}
|
|
2690
|
-
},
|
|
2770
|
+
}, An = {
|
|
2691
2771
|
convertTo: (e, t, n, o) => {
|
|
2692
2772
|
(e.type === "data-grid-column" || e.type === "tree-grid-column") && (e[t] = n, t === "columnTemplateType" && n === "hyperlink" && (e.onClickLinkCommand ? e.columnTemplate = `
|
|
2693
2773
|
<span class="f-pretend-link f-cursor-pointer"
|
|
@@ -2700,30 +2780,30 @@ const pn = {
|
|
|
2700
2780
|
},
|
|
2701
2781
|
convertFrom: (e, t, n) => t === "columnTemplate" ? e.columnTemplate : t === "columnTemplateType" ? e.columnTemplateType ? e.columnTemplateType || "default" : e.columnTemplate && !e.onClickLinkCommand ? "custom" : e.columnTemplate && e.onClickLinkCommand ? "hyperlink" : "default" : ""
|
|
2702
2782
|
};
|
|
2703
|
-
function
|
|
2783
|
+
function _e(e, t, n) {
|
|
2704
2784
|
const o = /* @__PURE__ */ new Map([
|
|
2705
|
-
["/converter/appearance.converter",
|
|
2706
|
-
["/converter/buttons.converter",
|
|
2707
|
-
["/converter/property-editor.converter",
|
|
2708
|
-
["/converter/items-count.converter",
|
|
2709
|
-
["/converter/type.converter",
|
|
2710
|
-
["/converter/change-editor.converter",
|
|
2711
|
-
["/converter/change-formatter.converter",
|
|
2712
|
-
["/converter/column-command.converter",
|
|
2713
|
-
["/converter/column-option.converter",
|
|
2714
|
-
["/converter/summary.converter",
|
|
2715
|
-
["/converter/group.converter",
|
|
2716
|
-
["/converter/form-group-label.converter",
|
|
2717
|
-
["/converter/field-selector.converter",
|
|
2718
|
-
["/converter/pagination.converter",
|
|
2719
|
-
["/converter/row-number.converter",
|
|
2720
|
-
["/converter/grid-selection.converter",
|
|
2721
|
-
["/converter/size.converter",
|
|
2722
|
-
["/converter/change-formatter-enum.converter",
|
|
2723
|
-
["/converter/grid-sort.converter",
|
|
2724
|
-
["/converter/grid-filter.converter",
|
|
2725
|
-
["/converter/row-option.converter",
|
|
2726
|
-
["/converter/change-formatter-type.converter",
|
|
2785
|
+
["/converter/appearance.converter", wn],
|
|
2786
|
+
["/converter/buttons.converter", Cn],
|
|
2787
|
+
["/converter/property-editor.converter", Dn],
|
|
2788
|
+
["/converter/items-count.converter", Pn],
|
|
2789
|
+
["/converter/type.converter", Tn],
|
|
2790
|
+
["/converter/change-editor.converter", Mn],
|
|
2791
|
+
["/converter/change-formatter.converter", kn],
|
|
2792
|
+
["/converter/column-command.converter", Sn],
|
|
2793
|
+
["/converter/column-option.converter", xn],
|
|
2794
|
+
["/converter/summary.converter", Fn],
|
|
2795
|
+
["/converter/group.converter", En],
|
|
2796
|
+
["/converter/form-group-label.converter", Wn],
|
|
2797
|
+
["/converter/field-selector.converter", In],
|
|
2798
|
+
["/converter/pagination.converter", Vn],
|
|
2799
|
+
["/converter/row-number.converter", Nn],
|
|
2800
|
+
["/converter/grid-selection.converter", On],
|
|
2801
|
+
["/converter/size.converter", Ln],
|
|
2802
|
+
["/converter/change-formatter-enum.converter", jn],
|
|
2803
|
+
["/converter/grid-sort.converter", Bn],
|
|
2804
|
+
["/converter/grid-filter.converter", $n],
|
|
2805
|
+
["/converter/row-option.converter", Rn],
|
|
2806
|
+
["/converter/change-formatter-type.converter", An]
|
|
2727
2807
|
]), m = /* @__PURE__ */ new Map([
|
|
2728
2808
|
["string", { type: "input-group", enableClear: !1 }],
|
|
2729
2809
|
["boolean", {
|
|
@@ -2748,7 +2828,7 @@ function Ue(e, t, n) {
|
|
|
2748
2828
|
["array", { type: "button-edit" }],
|
|
2749
2829
|
["number", { type: "number-spinner", placeholder: "" }],
|
|
2750
2830
|
["events-editor", { type: "events-editor", hide: !0 }]
|
|
2751
|
-
]), w =
|
|
2831
|
+
]), w = bn();
|
|
2752
2832
|
function p(r, i) {
|
|
2753
2833
|
return () => w.parseValueSchema(r, i);
|
|
2754
2834
|
}
|
|
@@ -2762,61 +2842,61 @@ function Ue(e, t, n) {
|
|
|
2762
2842
|
const v = r.$converter || i;
|
|
2763
2843
|
return typeof v == "string" && v && o.has(v) ? o.get(v) || null : v || null;
|
|
2764
2844
|
}
|
|
2765
|
-
function f(r, i, v,
|
|
2845
|
+
function f(r, i, v, u, E, s = "", h = "") {
|
|
2766
2846
|
return Object.keys(r).map((M) => {
|
|
2767
|
-
const $ = B(1), S = M, P = r[M], x = Object.keys(P), g = P.title,
|
|
2847
|
+
const $ = B(1), S = M, P = r[M], x = Object.keys(P), g = P.title, d = P.type, T = m.get(d) || { type: "input-group", enableClear: !1 }, L = P.editor ? Object.assign({}, T, P.editor) : Object.assign({}, T), O = D(x, P, i), b = I(x, P, i);
|
|
2768
2848
|
L.readonly = L.readonly === void 0 ? b() : L.readonly;
|
|
2769
|
-
const j = P.type === "cascade" ? f(P.properties, i, v,
|
|
2849
|
+
const j = P.type === "cascade" ? f(P.properties, i, v, u, E, s, h) : [], V = !0;
|
|
2770
2850
|
let F = C(P, h);
|
|
2771
2851
|
const q = A({
|
|
2772
2852
|
get() {
|
|
2773
2853
|
if ($.value) {
|
|
2774
2854
|
if (["class", "style"].find((Q) => Q === S) && !F && (F = o.get("/converter/appearance.converter") || null), F && F.convertFrom)
|
|
2775
2855
|
return F.convertFrom(v, M, E, s);
|
|
2776
|
-
const
|
|
2777
|
-
return Object.prototype.hasOwnProperty.call(P, "defaultValue") && (
|
|
2856
|
+
const H = v[M];
|
|
2857
|
+
return Object.prototype.hasOwnProperty.call(P, "defaultValue") && (H === void 0 || typeof H == "string" && H === "") ? P.type === "boolean" ? P.defaultValue : P.defaultValue || "" : H;
|
|
2778
2858
|
}
|
|
2779
2859
|
return null;
|
|
2780
2860
|
},
|
|
2781
|
-
set(
|
|
2782
|
-
$.value += 1, F && F.convertTo ? (F.convertTo(
|
|
2861
|
+
set(H) {
|
|
2862
|
+
$.value += 1, F && F.convertTo ? (F.convertTo(u, M, H, E, s), F.convertTo(v, M, H, E, s)) : (u[M] = H, v[M] = H);
|
|
2783
2863
|
}
|
|
2784
|
-
}), { refreshPanelAfterChanged: W, description:
|
|
2864
|
+
}), { refreshPanelAfterChanged: W, description: z, isExpand: G, parentPropertyID: _ } = P, J = { propertyID: S, propertyName: g, propertyType: d, propertyValue: q, editor: L, visible: O, readonly: b, cascadeConfig: j, hideCascadeTitle: V, refreshPanelAfterChanged: W, description: z, isExpand: G, parentPropertyID: _ };
|
|
2785
2865
|
return i[S] = J, J;
|
|
2786
2866
|
});
|
|
2787
2867
|
}
|
|
2788
2868
|
function a(r, i, v = {}) {
|
|
2789
|
-
const
|
|
2869
|
+
const u = {}, E = e[r];
|
|
2790
2870
|
return E && E.categories ? Object.keys(E.categories).map((h) => {
|
|
2791
|
-
const N = E.categories[h], M = N == null ? void 0 : N.title, $ = f(N.properties || {},
|
|
2871
|
+
const N = E.categories[h], M = N == null ? void 0 : N.title, $ = f(N.properties || {}, u, {}, v, i);
|
|
2792
2872
|
return { categoryId: h, categoryName: M, properties: $ };
|
|
2793
2873
|
}) : [];
|
|
2794
2874
|
}
|
|
2795
|
-
function c(r, i, v,
|
|
2875
|
+
function c(r, i, v, u, E = "") {
|
|
2796
2876
|
const s = i.$ref.schema, h = i.$ref.converter, N = v[s], M = N.type, $ = n(N), S = {}, P = e[M];
|
|
2797
2877
|
if (P && P.categories) {
|
|
2798
2878
|
const x = P.categories[r], g = x == null ? void 0 : x.title;
|
|
2799
2879
|
h && Object.keys(x.properties).forEach((L) => {
|
|
2800
2880
|
x.properties[L].$converter = h;
|
|
2801
2881
|
});
|
|
2802
|
-
const
|
|
2882
|
+
const d = (x == null ? void 0 : x.properties) || {}, T = f(d, S, $, N, u, E);
|
|
2803
2883
|
return { categoryId: r, categoryName: g, properties: T };
|
|
2804
2884
|
}
|
|
2805
2885
|
return { categoryId: r, categoryName: "", properties: [] };
|
|
2806
2886
|
}
|
|
2807
|
-
function y(r, i, v,
|
|
2887
|
+
function y(r, i, v, u, E) {
|
|
2808
2888
|
const s = r.type, h = n(r), N = {};
|
|
2809
2889
|
let M = E || e[s];
|
|
2810
|
-
if (!(M && Object.keys(M).length > 0) && v && v.getPropConfig && (M = v.getPropConfig(
|
|
2890
|
+
if (!(M && Object.keys(M).length > 0) && v && v.getPropConfig && (M = v.getPropConfig(u)), M && M.categories) {
|
|
2811
2891
|
const S = [];
|
|
2812
2892
|
return Object.keys(M.categories).map((P) => {
|
|
2813
2893
|
const x = M.categories[P];
|
|
2814
2894
|
if (x.$ref) {
|
|
2815
|
-
S.push(c(P, x, r, i,
|
|
2895
|
+
S.push(c(P, x, r, i, u));
|
|
2816
2896
|
return;
|
|
2817
2897
|
}
|
|
2818
|
-
const g = x == null ? void 0 : x.title,
|
|
2819
|
-
S.push({ categoryId: P, categoryName: g, tabId:
|
|
2898
|
+
const g = x == null ? void 0 : x.title, d = x == null ? void 0 : x.tabId, T = x == null ? void 0 : x.tabName, L = x == null ? void 0 : x.hide, O = x == null ? void 0 : x.hideTitle, b = f(x.properties || {}, N, h, r, i, u, x.$converter), { setPropertyRelates: j } = x, V = x == null ? void 0 : x.parentPropertyID;
|
|
2899
|
+
S.push({ categoryId: P, categoryName: g, tabId: d, tabName: T, hide: L, properties: b, hideTitle: O, setPropertyRelates: j, parentPropertyID: V });
|
|
2820
2900
|
}), S;
|
|
2821
2901
|
}
|
|
2822
2902
|
return [];
|
|
@@ -2827,87 +2907,10 @@ function Ue(e, t, n) {
|
|
|
2827
2907
|
propertyConverterMap: o
|
|
2828
2908
|
};
|
|
2829
2909
|
}
|
|
2830
|
-
|
|
2831
|
-
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
if (y && (!i || !r.find((d) => d === "id"))) {
|
|
2835
|
-
const d = y.toLowerCase().replace(/-/g, "_");
|
|
2836
|
-
v.id = `${d}_${Math.random().toString().slice(2, 6)}`;
|
|
2837
|
-
}
|
|
2838
|
-
return v;
|
|
2839
|
-
}
|
|
2840
|
-
function m(a) {
|
|
2841
|
-
const { properties: c, title: y, required: r } = a;
|
|
2842
|
-
if (r && Array.isArray(r)) {
|
|
2843
|
-
const i = r.reduce((v, d) => (v[d] = c[d].type === "object" && c[d].properties ? o(c[d]) : ce(c[d].default), v), {});
|
|
2844
|
-
if (y && r.find((v) => v === "id")) {
|
|
2845
|
-
const v = y.toLowerCase().replace(/-/g, "_");
|
|
2846
|
-
i.id = `${v}_${Math.random().toString().slice(2, 6)}`;
|
|
2847
|
-
}
|
|
2848
|
-
return i;
|
|
2849
|
-
}
|
|
2850
|
-
return {
|
|
2851
|
-
type: y
|
|
2852
|
-
};
|
|
2853
|
-
}
|
|
2854
|
-
function w(a, c = {}, y) {
|
|
2855
|
-
const r = e[a];
|
|
2856
|
-
if (r) {
|
|
2857
|
-
let i = m(r);
|
|
2858
|
-
const v = t[a];
|
|
2859
|
-
return i = v ? v({ getSchemaByType: w }, i, c, y) : i, n != null && n.appendIdentifyForNewControl && n.appendIdentifyForNewControl(i), i;
|
|
2860
|
-
}
|
|
2861
|
-
return null;
|
|
2862
|
-
}
|
|
2863
|
-
function p(a, c) {
|
|
2864
|
-
const y = o(c);
|
|
2865
|
-
return Object.keys(y).reduce((r, i) => (Object.prototype.hasOwnProperty.call(a, i) && (r[i] && $e(r[i]) && $e(a[i] || !a[i]) ? Object.assign(r[i], a[i] || {}) : r[i] = a[i]), r), y), y;
|
|
2866
|
-
}
|
|
2867
|
-
function D(a, c) {
|
|
2868
|
-
return Object.keys(a).filter((r) => a[r] != null).reduce((r, i) => {
|
|
2869
|
-
if (c.has(i)) {
|
|
2870
|
-
const v = c.get(i);
|
|
2871
|
-
if (typeof v == "string")
|
|
2872
|
-
r[v] = a[i];
|
|
2873
|
-
else {
|
|
2874
|
-
const d = v(i, a[i], a);
|
|
2875
|
-
Object.assign(r, d);
|
|
2876
|
-
}
|
|
2877
|
-
} else
|
|
2878
|
-
r[i] = a[i];
|
|
2879
|
-
return r;
|
|
2880
|
-
}, {});
|
|
2881
|
-
}
|
|
2882
|
-
function I(a, c, y = /* @__PURE__ */ new Map()) {
|
|
2883
|
-
const r = p(a, c);
|
|
2884
|
-
return D(r, y);
|
|
2885
|
-
}
|
|
2886
|
-
function C(a) {
|
|
2887
|
-
var y;
|
|
2888
|
-
const c = a.type;
|
|
2889
|
-
if (c) {
|
|
2890
|
-
const r = e[c];
|
|
2891
|
-
if (!r)
|
|
2892
|
-
return a;
|
|
2893
|
-
const i = p(a, r), v = ((y = a.editor) == null ? void 0 : y.type) || "";
|
|
2894
|
-
if (v) {
|
|
2895
|
-
const d = e[v], E = p(a.editor, d);
|
|
2896
|
-
i.editor = E;
|
|
2897
|
-
}
|
|
2898
|
-
return i;
|
|
2899
|
-
}
|
|
2900
|
-
return a;
|
|
2901
|
-
}
|
|
2902
|
-
function f(a) {
|
|
2903
|
-
n = a;
|
|
2904
|
-
}
|
|
2905
|
-
return { getSchemaByType: w, resolveSchemaWithDefaultValue: C, resolveSchemaToProps: I, mappingSchemaToProps: D, setDesignerContext: f };
|
|
2906
|
-
}
|
|
2907
|
-
const $n = {}, Rn = {}, { resolveSchemaWithDefaultValue: An } = _e($n, Rn), Hn = {}, Yn = {};
|
|
2908
|
-
Ue(Hn, Yn, An);
|
|
2909
|
-
const qn = {}, zn = {}, { resolveSchemaWithDefaultValue: Gn } = _e(qn, zn), Un = {}, _n = {};
|
|
2910
|
-
Ue(Un, _n, Gn);
|
|
2910
|
+
const zn = {}, Yn = {};
|
|
2911
|
+
_e(zn, Yn, gn);
|
|
2912
|
+
const qn = {}, Hn = {}, { resolveSchemaWithDefaultValue: Gn } = Ue(qn, Hn), Un = {}, _n = {};
|
|
2913
|
+
_e(Un, _n, Gn);
|
|
2911
2914
|
function Jn() {
|
|
2912
2915
|
function e(t, n) {
|
|
2913
2916
|
const { id: o } = t || {}, { dataSource: m } = t || {};
|