@farris/ui-vue 1.0.0-beta.6 → 1.0.0
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/accordion/index.esm.js +318 -56
- package/accordion/index.umd.js +1 -1
- package/accordion/package.json +2 -2
- package/avatar/package.json +2 -2
- package/button/index.esm.js +64 -58
- package/button/index.umd.js +1 -1
- package/button/package.json +2 -2
- package/button-edit/index.esm.js +1075 -221
- package/button-edit/index.umd.js +1 -1
- package/button-edit/package.json +2 -2
- package/button-edit/style.css +1 -0
- package/calculator/index.esm.js +315 -0
- package/calculator/index.umd.js +1 -0
- package/calculator/package.json +8 -0
- package/calculator/style.css +1 -0
- package/calendar/index.esm.js +778 -0
- package/calendar/index.umd.js +1 -0
- package/calendar/package.json +8 -0
- package/calendar/style.css +1 -0
- package/capsule/index.esm.js +130 -0
- package/capsule/index.umd.js +1 -0
- package/capsule/package.json +8 -0
- package/capsule/style.css +1 -0
- package/checkbox/index.esm.js +192 -75
- package/checkbox/index.umd.js +1 -1
- package/checkbox/package.json +2 -2
- package/color-picker/index.esm.js +1551 -0
- package/color-picker/index.umd.js +16 -0
- package/color-picker/package.json +8 -0
- package/color-picker/style.css +1 -0
- package/combo-list/index.esm.js +2076 -434
- package/combo-list/index.umd.js +1 -1
- package/combo-list/package.json +2 -2
- package/combo-list/style.css +1 -0
- package/component/index.esm.js +176 -0
- package/component/index.umd.js +1 -0
- package/component/package.json +8 -0
- package/condition/index.esm.js +13562 -0
- package/condition/index.umd.js +1 -0
- package/condition/package.json +8 -0
- package/condition/style.css +1 -0
- package/content-container/index.esm.js +242 -0
- package/content-container/index.umd.js +1 -0
- package/content-container/package.json +8 -0
- package/data-grid/index.esm.js +13293 -1204
- package/data-grid/index.umd.js +1 -1
- package/data-grid/package.json +2 -2
- package/data-grid/style.css +1 -1
- package/date-picker/index.esm.js +2079 -1057
- package/date-picker/index.umd.js +1 -1
- package/date-picker/package.json +2 -2
- package/date-picker/style.css +1 -1
- package/designer-canvas/index.esm.js +15232 -0
- package/designer-canvas/index.umd.js +1 -0
- package/designer-canvas/package.json +8 -0
- package/designer-canvas/style.css +1 -0
- package/discussion-editor/index.esm.js +3559 -0
- package/discussion-editor/index.umd.js +16 -0
- package/discussion-editor/package.json +8 -0
- package/discussion-editor/style.css +1 -0
- package/discussion-list/index.esm.js +111 -0
- package/discussion-list/index.umd.js +1 -0
- package/discussion-list/package.json +8 -0
- package/discussion-list/style.css +1 -0
- package/dropdown/index.esm.js +214 -0
- package/dropdown/index.umd.js +1 -0
- package/dropdown/package.json +8 -0
- package/dropdown/style.css +1 -0
- package/dynamic-form/index.esm.js +13560 -0
- package/dynamic-form/index.umd.js +1 -0
- package/dynamic-form/package.json +8 -0
- package/dynamic-form/style.css +1 -0
- package/dynamic-resolver/index.esm.js +41 -0
- package/dynamic-resolver/index.umd.js +1 -0
- package/dynamic-resolver/package.json +8 -0
- package/dynamic-view/index.esm.js +13600 -0
- package/dynamic-view/index.umd.js +1 -0
- package/dynamic-view/package.json +8 -0
- package/dynamic-view/style.css +1 -0
- package/farris.all.esm.js +25009 -5886
- package/farris.all.umd.js +24 -1
- package/filter-bar/index.esm.js +549 -0
- package/filter-bar/index.umd.js +1 -0
- package/filter-bar/package.json +8 -0
- package/filter-bar/style.css +1 -0
- package/image-cropper/index.esm.js +720 -0
- package/image-cropper/index.umd.js +1 -0
- package/image-cropper/package.json +8 -0
- package/image-cropper/style.css +1 -0
- package/input-group/index.esm.js +549 -0
- package/input-group/index.umd.js +1 -0
- package/input-group/package.json +8 -0
- package/input-group/style.css +1 -0
- package/list-nav/index.esm.js +61 -0
- package/list-nav/index.umd.js +1 -0
- package/list-nav/package.json +8 -0
- package/list-nav/style.css +1 -0
- package/list-view/index.esm.js +516 -124
- package/list-view/index.umd.js +1 -1
- package/list-view/package.json +2 -2
- package/list-view/style.css +1 -1
- package/loading/index.esm.js +124 -0
- package/loading/index.umd.js +8 -0
- package/loading/package.json +8 -0
- package/loading/style.css +1 -0
- package/locale/index.esm.js +1868 -0
- package/locale/index.umd.js +1 -0
- package/locale/package.json +8 -0
- package/message-box/index.esm.js +408 -335
- package/message-box/index.umd.js +1 -1
- package/message-box/package.json +2 -2
- package/message-box/style.css +1 -0
- package/modal/index.esm.js +137 -90
- package/modal/index.umd.js +1 -1
- package/modal/package.json +2 -2
- package/modal/style.css +1 -0
- package/nav/index.esm.js +456 -0
- package/nav/index.umd.js +16 -0
- package/nav/package.json +8 -0
- package/nav/style.css +1 -0
- package/notify/package.json +2 -2
- package/order/index.esm.js +2270 -0
- package/order/index.umd.js +1 -0
- package/order/package.json +8 -0
- package/order/style.css +1 -0
- package/package.json +6 -4
- package/page-footer/index.esm.js +94 -0
- package/page-footer/index.umd.js +1 -0
- package/page-footer/package.json +8 -0
- package/page-header/index.esm.js +230 -0
- package/page-header/index.umd.js +1 -0
- package/page-header/package.json +8 -0
- package/pagination/index.esm.js +147 -141
- package/pagination/index.umd.js +1 -1
- package/pagination/package.json +2 -2
- package/popover/index.esm.js +194 -59
- package/popover/index.umd.js +1 -1
- package/popover/package.json +2 -2
- package/popover/style.css +1 -1
- package/propress/index.esm.js +108 -0
- package/propress/index.umd.js +1 -0
- package/propress/package.json +8 -0
- package/propress/style.css +1 -0
- package/radio-group/index.esm.js +174 -59
- package/radio-group/index.umd.js +1 -1
- package/radio-group/package.json +2 -2
- package/rate/index.esm.js +168 -0
- package/rate/index.umd.js +1 -0
- package/rate/package.json +8 -0
- package/rate/style.css +1 -0
- package/response-toolbar/index.esm.js +433 -0
- package/response-toolbar/index.umd.js +1 -0
- package/response-toolbar/package.json +8 -0
- package/search-box/index.esm.js +208 -0
- package/search-box/index.umd.js +1 -0
- package/search-box/package.json +8 -0
- package/search-box/style.css +1 -0
- package/section/index.esm.js +341 -45
- package/section/index.umd.js +1 -1
- package/section/package.json +2 -2
- package/section/style.css +1 -0
- package/splitter/index.esm.js +491 -0
- package/splitter/index.umd.js +1 -0
- package/splitter/package.json +8 -0
- package/splitter/style.css +1 -0
- package/step/index.esm.js +117 -0
- package/step/index.umd.js +1 -0
- package/step/package.json +8 -0
- package/step/style.css +1 -0
- package/style.css +3 -3
- package/switch/index.esm.js +156 -40
- package/switch/index.umd.js +1 -1
- package/switch/package.json +2 -2
- package/switch/style.css +1 -0
- package/tabs/index.esm.js +1563 -311
- package/tabs/index.umd.js +1 -1
- package/tabs/package.json +2 -2
- package/tabs/style.css +1 -1
- package/tags/index.esm.js +287 -0
- package/tags/index.umd.js +1 -0
- package/tags/package.json +8 -0
- package/tags/style.css +1 -0
- package/text/package.json +2 -2
- package/time-picker/index.esm.js +1465 -0
- package/time-picker/index.umd.js +1 -0
- package/time-picker/package.json +8 -0
- package/time-picker/style.css +1 -0
- package/tooltip/package.json +2 -2
- package/transfer/index.esm.js +642 -0
- package/transfer/index.umd.js +1 -0
- package/transfer/package.json +8 -0
- package/transfer/style.css +1 -0
- package/tree-view/index.esm.js +701 -0
- package/tree-view/index.umd.js +1 -0
- package/tree-view/package.json +8 -0
- package/tree-view/style.css +1 -0
- package/types/accordion/index.d.ts +2 -0
- package/types/accordion/src/accordion.component.d.ts +2 -68
- package/types/accordion/src/accordion.props.d.ts +2 -33
- package/types/accordion/src/components/accordion-item.component.d.ts +2 -36
- package/types/accordion/src/components/accordion-item.props.d.ts +2 -17
- package/types/accordion/src/designer/accordion-item.design.component.d.ts +6 -0
- package/types/accordion/src/designer/accordion.design.component.d.ts +6 -0
- package/types/accordion/src/schema/schema-mapper.d.ts +2 -0
- package/types/button/src/button-group.component.d.ts +1 -1
- package/types/button/src/button.component.d.ts +7 -1
- package/types/button/src/button.props.d.ts +6 -0
- package/types/button-edit/index.d.ts +2 -0
- package/types/button-edit/src/button-edit.component.d.ts +2 -137
- package/types/button-edit/src/button-edit.props.d.ts +5 -119
- package/types/button-edit/src/components/button-group.component.d.ts +3 -0
- package/types/button-edit/src/components/popup-container.component.d.ts +4 -0
- package/types/button-edit/src/components/text-edit.component.d.ts +4 -0
- package/types/button-edit/src/composition/types.d.ts +15 -1
- package/types/button-edit/src/composition/use-button.d.ts +2 -2
- package/types/button-edit/src/composition/use-clear.d.ts +2 -2
- package/types/button-edit/src/composition/use-popup.d.ts +4 -0
- package/types/button-edit/src/composition/use-text-box.d.ts +2 -2
- package/types/button-edit/src/schema/schema-mapper.d.ts +2 -0
- package/types/{data-grid/src/composition/use-fit-column.d.ts → calculator/index.d.ts} +8 -5
- package/types/{combo-list/src/components/options.component.d.ts → calculator/src/calculator.component.d.ts} +2 -6
- package/types/calculator/src/calculator.props.d.ts +23 -0
- package/types/calculator/src/composition/use-calculator.d.ts +26 -0
- package/types/calendar/index.d.ts +21 -0
- package/types/calendar/src/calendar.props.d.ts +26 -0
- package/types/calendar/src/components/day/day-view.props.d.ts +34 -0
- package/types/calendar/src/components/header/header.props.d.ts +24 -0
- package/types/calendar/src/components/month/month-view.props.d.ts +69 -0
- package/types/calendar/src/components/week/week-view.component.d.ts +106 -0
- package/types/calendar/src/components/week/week-view.props.d.ts +51 -0
- package/types/calendar/src/composition/types.d.ts +57 -0
- package/types/calendar/src/composition/use-calendar.d.ts +2 -0
- package/types/calendar/src/composition/use-compare.d.ts +2 -0
- package/types/calendar/src/composition/use-date.d.ts +2 -0
- package/types/calendar/src/composition/use-event.d.ts +30 -0
- package/types/calendar/src/composition/use-month.d.ts +2 -0
- package/types/calendar/src/types/calendar.d.ts +13 -0
- package/types/calendar/src/types/common.d.ts +32 -0
- package/types/calendar/src/types/month-view.d.ts +23 -0
- package/types/calendar/src/types/month.d.ts +20 -0
- package/types/calendar/src/types/schedule.d.ts +35 -0
- package/types/capsule/index.d.ts +8 -0
- package/types/capsule/src/capsule.props.d.ts +67 -0
- package/types/checkbox/index.d.ts +1 -0
- package/types/checkbox/src/checkbox-group.component.d.ts +2 -146
- package/types/checkbox/src/checkbox-group.props.d.ts +2 -106
- package/types/checkbox/src/composition/types.d.ts +3 -3
- package/types/checkbox/src/schema/schema-mapper.d.ts +2 -0
- package/types/{combo-list/src/composition → color-picker}/index.d.ts +7 -3
- package/types/color-picker/src/color-picker.props.d.ts +62 -0
- package/types/color-picker/src/composition/class/base-color.class.d.ts +3 -0
- package/types/color-picker/src/composition/class/cmyk.class.d.ts +21 -0
- package/types/color-picker/src/composition/class/colors-table.class.d.ts +154 -0
- package/types/color-picker/src/composition/class/control.class.d.ts +47 -0
- package/types/color-picker/src/composition/class/helper.functions.d.ts +4 -0
- package/types/color-picker/src/composition/class/hsla.class.d.ts +21 -0
- package/types/color-picker/src/composition/class/hsva.class.d.ts +21 -0
- package/types/color-picker/src/composition/class/rgba.class.d.ts +21 -0
- package/types/{list-view/src/components/list-view-checkbox.component.d.ts → color-picker/src/composition/component/alpha.d.ts} +17 -17
- package/types/color-picker/src/composition/component/hue.d.ts +40 -0
- package/types/color-picker/src/composition/component/preset.d.ts +43 -0
- package/types/color-picker/src/composition/component/props/alpha.props.d.ts +16 -0
- package/types/color-picker/src/composition/component/props/hue.props.d.ts +19 -0
- package/types/color-picker/src/composition/component/props/preset.props.d.ts +20 -0
- package/types/color-picker/src/composition/component/props/sv-panel.props.d.ts +20 -0
- package/types/color-picker/src/composition/component/sv-panel.d.ts +43 -0
- package/types/combo-list/index.d.ts +2 -2
- package/types/combo-list/src/combo-list.props.d.ts +32 -263
- package/types/combo-list/src/components/list-container.props.d.ts +54 -0
- package/types/combo-list/src/composition/types.d.ts +10 -0
- package/types/combo-list/src/composition/use-data-source.d.ts +3 -0
- package/types/combo-list/src/designer/combo-list.design.component.d.ts +6 -0
- package/types/combo-list/src/schema/schema-mapper.d.ts +2 -0
- package/types/component/index.d.ts +26 -0
- package/types/component/src/component.props.d.ts +4 -0
- package/types/component/src/designer/types.d.ts +10 -0
- package/types/component/src/designer/use-designer-rules.d.ts +2 -0
- package/types/component/src/schema/schema-mapper.d.ts +2 -0
- package/types/{date-picker → condition}/index.d.ts +4 -8
- package/types/condition/src/composition/condition-value/checkbox-value.d.ts +13 -0
- package/types/condition/src/composition/condition-value/combo-lookup-value.d.ts +19 -0
- package/types/condition/src/composition/condition-value/date-picker-value.d.ts +25 -0
- package/types/condition/src/composition/condition-value/date-range-value.d.ts +18 -0
- package/types/condition/src/composition/condition-value/datetime-picker-value.d.ts +13 -0
- package/types/condition/src/composition/condition-value/dropdown-value.d.ts +18 -0
- package/types/condition/src/composition/condition-value/input-group-value.d.ts +21 -0
- package/types/condition/src/composition/condition-value/lookup-value.d.ts +21 -0
- package/types/condition/src/composition/condition-value/month-picker-value.d.ts +15 -0
- package/types/condition/src/composition/condition-value/month-range-value.d.ts +18 -0
- package/types/condition/src/composition/condition-value/number-range-value.d.ts +21 -0
- package/types/condition/src/composition/condition-value/number-spinner-value.d.ts +13 -0
- package/types/condition/src/composition/condition-value/radio-group-value.d.ts +13 -0
- package/types/condition/src/composition/condition-value/text-value.d.ts +13 -0
- package/types/condition/src/composition/condition-value/types.d.ts +9 -0
- package/types/condition/src/composition/types.d.ts +41 -0
- package/types/condition/src/composition/use-compare.d.ts +40 -0
- package/types/condition/src/composition/use-condition-value.d.ts +2 -0
- package/types/condition/src/composition/use-condition.d.ts +2 -0
- package/types/condition/src/composition/use-field-config.d.ts +4 -0
- package/types/condition/src/composition/use-selection.d.ts +4 -0
- package/types/condition/src/condition.props.d.ts +58 -0
- package/types/condition/src/types.d.ts +144 -0
- package/types/{number-spinner/src/composition/use-data.d.ts → content-container/index.d.ts} +11 -4
- package/types/content-container/src/content-container.props.d.ts +4 -0
- package/types/content-container/src/designer/use-designer-rules.d.ts +3 -0
- package/types/content-container/src/schema/schema-mapper.d.ts +2 -0
- package/types/data-grid/index.d.ts +3 -0
- package/types/data-grid/src/components/data/data-area.component.d.ts +1 -1
- package/types/data-grid/src/components/editors/commands.component.d.ts +18 -0
- package/types/data-grid/src/components/editors/date-picker.component.d.ts +3 -2
- package/types/data-grid/src/components/editors/text-area-editor.component.d.ts +3 -2
- package/types/data-grid/src/components/editors/text-editor.component.d.ts +3 -2
- package/types/data-grid/src/components/filter/boolean-filter-editor.component.d.ts +2 -0
- package/types/data-grid/src/components/filter/column-filter-container.component.d.ts +19 -0
- package/types/data-grid/src/components/filter/date-filter-editor.component.d.ts +2 -0
- package/types/data-grid/src/components/filter/enum-filter-editor.component.d.ts +3 -0
- package/types/data-grid/src/components/filter/list-filter-editor.component.d.ts +2 -0
- package/types/data-grid/src/components/filter/numeric-filter-editor.component.d.ts +2 -0
- package/types/data-grid/src/components/filter/text-filter-editor.component.d.ts +3 -0
- package/types/data-grid/src/components/group-panel/group-panel.component.d.ts +5 -0
- package/types/data-grid/src/components/header/data-grid-header-handler.component.d.ts +21 -0
- package/types/data-grid/src/components/header/data-grid-header.component.d.ts +2 -2
- package/types/data-grid/src/components/pagination/data-grid-pagination.component.d.ts +3 -3
- package/types/data-grid/src/components/scrollbar/horizontal-scrollbar.component.d.ts +1 -1
- package/types/data-grid/src/components/scrollbar/vertical-scrollbar.component.d.ts +1 -1
- package/types/data-grid/src/components/settings/data-grid-settings-icon.component.d.ts +21 -0
- package/types/data-grid/src/components/summary/data-grid-summary.component.d.ts +1 -1
- package/types/data-grid/src/composition/types.d.ts +137 -11
- package/types/data-grid/src/composition/use-column-filter.d.ts +3 -0
- package/types/data-grid/src/composition/use-column.d.ts +3 -0
- package/types/data-grid/src/composition/use-command-column.d.ts +3 -0
- package/types/data-grid/src/composition/use-data-view.d.ts +13 -3
- package/types/data-grid/src/composition/use-drag-column.d.ts +4 -0
- package/types/data-grid/src/composition/use-filter-history.d.ts +2 -0
- package/types/data-grid/src/composition/use-row.d.ts +18 -2
- package/types/data-grid/src/composition/use-selection.d.ts +3 -0
- package/types/data-grid/src/composition/use-sort.d.ts +3 -0
- package/types/data-grid/src/composition/use-virtual-scroll.d.ts +1 -1
- package/types/data-grid/src/composition/use-visual-data-bound.d.ts +2 -0
- package/types/data-grid/src/composition/use-visual-data-cell.d.ts +3 -0
- package/types/data-grid/src/composition/use-visual-data-row.d.ts +3 -0
- package/types/data-grid/src/composition/use-visual-data.d.ts +2 -2
- package/types/data-grid/src/composition/use-visual-summary-row.d.ts +3 -0
- package/types/data-grid/src/data-grid.props.d.ts +23 -161
- package/types/data-grid/src/schema/schema-mapper.d.ts +2 -0
- package/types/date-picker/src/components/calendar/calendar.component.d.ts +4 -4
- package/types/date-picker/src/components/calendar-navbar/calendar-navbar.component.d.ts +2 -2
- package/types/date-picker/src/components/date-picker-container/date-picker-container.component.d.ts +11 -11
- package/types/date-picker/src/components/month/month.component.d.ts +3 -3
- package/types/date-picker/src/components/year/year.component.d.ts +2 -2
- package/types/date-picker/src/date-picker.component.d.ts +2 -332
- package/types/date-picker/src/date-picker.props.d.ts +2 -151
- package/types/date-picker/src/designer/date-picker.design.component.d.ts +6 -0
- package/types/date-picker/src/schema/schema-mapper.d.ts +2 -0
- package/types/designer-canvas/index.d.ts +8 -0
- package/types/designer-canvas/src/components/designer-item.props.d.ts +3 -0
- package/types/designer-canvas/src/components/designer-placeholder.props.d.ts +7 -0
- package/types/designer-canvas/src/components/maps.d.ts +3 -0
- package/types/designer-canvas/src/components/toolbox.props.d.ts +11 -0
- package/types/designer-canvas/src/composition/types.d.ts +27 -0
- package/types/designer-canvas/src/designer-canvas.props.d.ts +3 -0
- package/types/designer-canvas/src/types.d.ts +40 -0
- package/types/discussion-editor/discussion-editor.component.d.ts +121 -0
- package/types/discussion-editor/discussion-editor.props.d.ts +69 -0
- package/types/discussion-editor/index.d.ts +23 -0
- package/types/discussion-editor/src/composition/use-discussion-editor.d.ts +15 -0
- package/types/discussion-editor/src/types/interface.d.ts +22 -0
- package/types/discussion-list/discussion-list.component.d.ts +70 -0
- package/types/discussion-list/discussion-list.props.d.ts +52 -0
- package/types/discussion-list/index.d.ts +23 -0
- package/types/dropdown/index.d.ts +9 -0
- package/types/dropdown/src/composition/function/use-dropdown.d.ts +26 -0
- package/types/dropdown/src/composition/props/dropdown.item.props.d.ts +46 -0
- package/types/dropdown/src/composition/props/dropdown.props.d.ts +99 -0
- package/types/dropdown/src/dropdown.component.d.ts +179 -0
- package/types/dropdown/src/dropdown.item.component.d.ts +76 -0
- package/types/dropdown/src/types.d.ts +46 -0
- package/types/dynamic-form/index.d.ts +14 -0
- package/types/dynamic-form/src/component/dynamic-form-group/dynamic-form-group.props.d.ts +4 -0
- package/types/dynamic-form/src/component/dynamic-form-label/dynamic-form-label.props.d.ts +15 -0
- package/types/dynamic-form/src/composition/types.d.ts +5 -0
- package/types/dynamic-form/src/dynamic-form.props.d.ts +3 -0
- package/types/dynamic-form/src/schema/schema-mapper.d.ts +2 -0
- package/types/dynamic-form/src/types.d.ts +17 -0
- package/types/dynamic-resolver/index.d.ts +3 -0
- package/types/dynamic-resolver/src/common/appearance-resolver.d.ts +6 -0
- package/types/dynamic-resolver/src/props-resolver.d.ts +2 -0
- package/types/dynamic-resolver/src/schema-resolver.d.ts +5 -0
- package/types/dynamic-resolver/src/types.d.ts +1 -0
- package/types/dynamic-view/index.d.ts +8 -0
- package/types/dynamic-view/src/components/maps.d.ts +4 -0
- package/types/dynamic-view/src/dynamic-view.props.d.ts +15 -0
- package/types/filter-bar/index.d.ts +7 -0
- package/types/filter-bar/src/components/ellipsis-button.component.d.ts +3 -0
- package/types/filter-bar/src/components/filter-item.component.d.ts +5 -0
- package/types/filter-bar/src/components/toolbar-component.d.ts +4 -0
- package/types/filter-bar/src/composition/types.d.ts +14 -0
- package/types/filter-bar/src/composition/use-filter-items.d.ts +4 -0
- package/types/filter-bar/src/filter-bar.props.d.ts +53 -0
- package/types/filter-bar/src/types.d.ts +9 -0
- package/types/image-cropper/index.d.ts +23 -0
- package/types/image-cropper/src/composition/type.d.ts +44 -0
- package/types/image-cropper/src/composition/use-check-aspect-ratio.d.ts +2 -0
- package/types/image-cropper/src/composition/use-image-cropper.d.ts +20 -0
- package/types/image-cropper/src/image-cropper.component.d.ts +248 -0
- package/types/image-cropper/src/image-cropper.props.d.ts +153 -0
- package/types/index.d.ts +5 -0
- package/types/input-group/index.d.ts +25 -0
- package/types/input-group/src/components/appended-button.component.d.ts +4 -0
- package/types/input-group/src/components/text-edit.component.d.ts +4 -0
- package/types/input-group/src/composition/types.d.ts +37 -0
- package/types/input-group/src/composition/use-appended-button.d.ts +4 -0
- package/types/input-group/src/composition/use-clear.d.ts +4 -0
- package/types/input-group/src/composition/use-password.d.ts +4 -0
- package/types/input-group/src/composition/use-text-box.d.ts +4 -0
- package/types/input-group/src/input-group.props.d.ts +4 -0
- package/types/input-group/src/schema/schema-mapper.d.ts +2 -0
- package/types/list-nav/index.d.ts +23 -0
- package/types/list-nav/src/list-nav.component.d.ts +61 -0
- package/types/list-nav/src/list-nav.props.d.ts +51 -0
- package/types/list-view/src/components/header/content-header.component.d.ts +6 -0
- package/types/list-view/src/components/header/search-header.component.d.ts +6 -0
- package/types/list-view/src/components/list-view-checkbox.props.d.ts +7 -0
- package/types/list-view/src/composition/types.d.ts +40 -0
- package/types/list-view/src/composition/use-data-view.d.ts +4 -0
- package/types/list-view/src/composition/use-draggable.d.ts +4 -0
- package/types/list-view/src/composition/use-hover.d.ts +2 -0
- package/types/list-view/src/composition/use-item.d.ts +4 -0
- package/types/list-view/src/composition/use-remove.d.ts +4 -0
- package/types/list-view/src/composition/use-search.d.ts +5 -0
- package/types/list-view/src/composition/use-selection.d.ts +4 -0
- package/types/list-view/src/list-view.component.d.ts +157 -14
- package/types/list-view/src/list-view.props.d.ts +76 -7
- package/types/loading/index.d.ts +23 -0
- package/types/loading/src/composition/types.d.ts +19 -0
- package/types/{combo-list/src/components/option.component.d.ts → loading/src/loading.component.d.ts} +24 -22
- package/types/loading/src/loading.props.d.ts +35 -0
- package/types/loading/src/loading.service.d.ts +4 -0
- package/types/locale/src/lib/locale.service.d.ts +26 -0
- package/types/locale/src/lib/locales/en-us/avatar.d.ts +7 -0
- package/types/locale/src/lib/locales/en-us/batch-edit-dialog.d.ts +15 -0
- package/types/locale/src/lib/locales/en-us/collapse.d.ts +4 -0
- package/types/locale/src/lib/locales/en-us/combo.d.ts +4 -0
- package/types/locale/src/lib/locales/en-us/datagrid.d.ts +103 -0
- package/types/locale/src/lib/locales/en-us/discussion-group.d.ts +25 -0
- package/types/locale/src/lib/locales/en-us/filter-editor.d.ts +50 -0
- package/types/locale/src/lib/locales/en-us/filter-panel.d.ts +25 -0
- package/types/locale/src/lib/locales/en-us/footer.d.ts +4 -0
- package/types/locale/src/lib/locales/en-us/index.d.ts +568 -0
- package/types/locale/src/lib/locales/en-us/language-label.d.ts +8 -0
- package/types/locale/src/lib/locales/en-us/list-filter.d.ts +6 -0
- package/types/locale/src/lib/locales/en-us/list-view.d.ts +3 -0
- package/types/locale/src/lib/locales/en-us/loading.d.ts +3 -0
- package/types/locale/src/lib/locales/en-us/lookup-config.d.ts +38 -0
- package/types/locale/src/lib/locales/en-us/lookup.d.ts +48 -0
- package/types/locale/src/lib/locales/en-us/messager.d.ts +28 -0
- package/types/locale/src/lib/locales/en-us/multi-select.d.ts +15 -0
- package/types/locale/src/lib/locales/en-us/notify.d.ts +3 -0
- package/types/locale/src/lib/locales/en-us/numeric.d.ts +7 -0
- package/types/locale/src/lib/locales/en-us/page-walker.d.ts +6 -0
- package/types/locale/src/lib/locales/en-us/pagination.d.ts +17 -0
- package/types/locale/src/lib/locales/en-us/progress-step.d.ts +3 -0
- package/types/locale/src/lib/locales/en-us/query-condition.d.ts +33 -0
- package/types/locale/src/lib/locales/en-us/query-solution.d.ts +41 -0
- package/types/locale/src/lib/locales/en-us/response-toolbar.d.ts +3 -0
- package/types/locale/src/lib/locales/en-us/scrollspy.d.ts +3 -0
- package/types/locale/src/lib/locales/en-us/section.d.ts +4 -0
- package/types/locale/src/lib/locales/en-us/sidebar.d.ts +3 -0
- package/types/locale/src/lib/locales/en-us/sort-editor.d.ts +15 -0
- package/types/locale/src/lib/locales/en-us/tabs.d.ts +3 -0
- package/types/locale/src/lib/locales/en-us/tag.d.ts +4 -0
- package/types/locale/src/lib/locales/en-us/text.d.ts +10 -0
- package/types/locale/src/lib/locales/en-us/treetable.d.ts +8 -0
- package/types/locale/src/lib/locales/en-us/verify-detail.d.ts +5 -0
- package/types/locale/src/lib/locales/index.d.ts +1712 -0
- package/types/locale/src/lib/locales/zh-CHT/avatar.d.ts +7 -0
- package/types/locale/src/lib/locales/zh-CHT/batch-edit-dialog.d.ts +15 -0
- package/types/locale/src/lib/locales/zh-CHT/collapse.d.ts +4 -0
- package/types/locale/src/lib/locales/zh-CHT/combo.d.ts +4 -0
- package/types/locale/src/lib/locales/zh-CHT/datagrid.d.ts +103 -0
- package/types/locale/src/lib/locales/zh-CHT/discussion-group.d.ts +25 -0
- package/types/locale/src/lib/locales/zh-CHT/filter-editor.d.ts +50 -0
- package/types/locale/src/lib/locales/zh-CHT/filter-panel.d.ts +25 -0
- package/types/locale/src/lib/locales/zh-CHT/footer.d.ts +4 -0
- package/types/locale/src/lib/locales/zh-CHT/index.d.ts +568 -0
- package/types/locale/src/lib/locales/zh-CHT/language-label.d.ts +8 -0
- package/types/locale/src/lib/locales/zh-CHT/list-filter.d.ts +6 -0
- package/types/locale/src/lib/locales/zh-CHT/list-view.d.ts +3 -0
- package/types/locale/src/lib/locales/zh-CHT/loading.d.ts +3 -0
- package/types/locale/src/lib/locales/zh-CHT/lookup-config.d.ts +38 -0
- package/types/locale/src/lib/locales/zh-CHT/lookup.d.ts +48 -0
- package/types/locale/src/lib/locales/zh-CHT/messager.d.ts +28 -0
- package/types/locale/src/lib/locales/zh-CHT/multi-select.d.ts +15 -0
- package/types/locale/src/lib/locales/zh-CHT/notify.d.ts +3 -0
- package/types/locale/src/lib/locales/zh-CHT/numeric.d.ts +7 -0
- package/types/locale/src/lib/locales/zh-CHT/page-walker.d.ts +6 -0
- package/types/locale/src/lib/locales/zh-CHT/pagination.d.ts +17 -0
- package/types/locale/src/lib/locales/zh-CHT/progress-step.d.ts +3 -0
- package/types/locale/src/lib/locales/zh-CHT/query-condition.d.ts +33 -0
- package/types/locale/src/lib/locales/zh-CHT/query-solution.d.ts +41 -0
- package/types/locale/src/lib/locales/zh-CHT/response-toolbar.d.ts +3 -0
- package/types/locale/src/lib/locales/zh-CHT/scrollspy.d.ts +3 -0
- package/types/locale/src/lib/locales/zh-CHT/section.d.ts +4 -0
- package/types/locale/src/lib/locales/zh-CHT/sidebar.d.ts +3 -0
- package/types/locale/src/lib/locales/zh-CHT/sort-editor.d.ts +15 -0
- package/types/locale/src/lib/locales/zh-CHT/tabs.d.ts +3 -0
- package/types/locale/src/lib/locales/zh-CHT/tag.d.ts +4 -0
- package/types/locale/src/lib/locales/zh-CHT/text.d.ts +10 -0
- package/types/locale/src/lib/locales/zh-CHT/treetable.d.ts +8 -0
- package/types/locale/src/lib/locales/zh-CHT/verify-detail.d.ts +5 -0
- package/types/locale/src/lib/locales/zh-cn/avatar.d.ts +7 -0
- package/types/locale/src/lib/locales/zh-cn/batch-edit-dialog.d.ts +15 -0
- package/types/locale/src/lib/locales/zh-cn/collapse.d.ts +4 -0
- package/types/locale/src/lib/locales/zh-cn/combo.d.ts +4 -0
- package/types/locale/src/lib/locales/zh-cn/datagrid.d.ts +105 -0
- package/types/locale/src/lib/locales/zh-cn/discussion-group.d.ts +25 -0
- package/types/locale/src/lib/locales/zh-cn/filter-editor.d.ts +50 -0
- package/types/locale/src/lib/locales/zh-cn/filter-panel.d.ts +25 -0
- package/types/locale/src/lib/locales/zh-cn/footer.d.ts +4 -0
- package/types/locale/src/lib/locales/zh-cn/index.d.ts +574 -0
- package/types/locale/src/lib/locales/zh-cn/language-label.d.ts +8 -0
- package/types/locale/src/lib/locales/zh-cn/list-filter.d.ts +6 -0
- package/types/locale/src/lib/locales/zh-cn/list-view.d.ts +3 -0
- package/types/locale/src/lib/locales/zh-cn/loading.d.ts +3 -0
- package/types/locale/src/lib/locales/zh-cn/lookup-config.d.ts +38 -0
- package/types/locale/src/lib/locales/zh-cn/lookup.d.ts +48 -0
- package/types/locale/src/lib/locales/zh-cn/messager.d.ts +32 -0
- package/types/locale/src/lib/locales/zh-cn/multi-select.d.ts +15 -0
- package/types/locale/src/lib/locales/zh-cn/notify.d.ts +3 -0
- package/types/locale/src/lib/locales/zh-cn/numeric.d.ts +7 -0
- package/types/locale/src/lib/locales/zh-cn/page-walker.d.ts +6 -0
- package/types/locale/src/lib/locales/zh-cn/pagination.d.ts +17 -0
- package/types/locale/src/lib/locales/zh-cn/progress-step.d.ts +3 -0
- package/types/locale/src/lib/locales/zh-cn/query-condition.d.ts +33 -0
- package/types/locale/src/lib/locales/zh-cn/query-solution.d.ts +41 -0
- package/types/locale/src/lib/locales/zh-cn/response-toolbar.d.ts +3 -0
- package/types/locale/src/lib/locales/zh-cn/scrollspy.d.ts +3 -0
- package/types/locale/src/lib/locales/zh-cn/section.d.ts +4 -0
- package/types/locale/src/lib/locales/zh-cn/sidebar.d.ts +3 -0
- package/types/locale/src/lib/locales/zh-cn/sort-editor.d.ts +15 -0
- package/types/locale/src/lib/locales/zh-cn/tabs.d.ts +3 -0
- package/types/locale/src/lib/locales/zh-cn/tag.d.ts +4 -0
- package/types/locale/src/lib/locales/zh-cn/text.d.ts +10 -0
- package/types/locale/src/lib/locales/zh-cn/treetable.d.ts +8 -0
- package/types/locale/src/lib/locales/zh-cn/verify-detail.d.ts +5 -0
- package/types/message-box/src/components/footer/footer.component.d.ts +4 -0
- package/types/message-box/src/components/message-content/reactive-content.component.d.ts +3 -0
- package/types/message-box/src/components/message-content/static-content.component.d.ts +3 -0
- package/types/message-box/src/components/message-detail/exception-message.component.d.ts +3 -0
- package/types/message-box/src/components/message-detail/static-message.component.d.ts +2 -0
- package/types/message-box/src/components/reactive-editor/textarea.component.d.ts +3 -0
- package/types/message-box/src/composition/types.d.ts +9 -0
- package/types/message-box/src/composition/use-copy.d.ts +1 -17
- package/types/message-box/src/composition/use-editor.d.ts +4 -0
- package/types/message-box/src/composition/use-feedback.d.ts +2 -0
- package/types/message-box/src/message-box.component.d.ts +17 -21
- package/types/message-box/src/message-box.props.d.ts +8 -6
- package/types/modal/index.d.ts +2 -1
- package/types/modal/src/modal.component.d.ts +3 -3
- package/types/modal/src/modal.service.d.ts +17 -0
- package/types/{data-grid/src/composition/use-edit.d.ts → nav/index.d.ts} +8 -3
- package/types/nav/src/composition/types.d.ts +6 -0
- package/types/nav/src/nav.component.d.ts +87 -0
- package/types/nav/src/nav.props.d.ts +62 -0
- package/types/number-range/index.d.ts +1 -0
- package/types/number-range/src/components/spinner.component.d.ts +4 -0
- package/types/number-range/src/components/text-box.component.d.ts +4 -0
- package/types/number-range/src/composition/types.d.ts +31 -29
- package/types/number-range/src/composition/use-format.d.ts +4 -0
- package/types/number-range/src/composition/use-number.d.ts +4 -0
- package/types/number-range/src/composition/use-spinner.d.ts +4 -0
- package/types/number-range/src/composition/use-text-box.d.ts +4 -0
- package/types/number-range/src/number-range.component.d.ts +2 -245
- package/types/number-range/src/number-range.props.d.ts +3 -200
- package/types/number-range/src/schema/schema-mapper.d.ts +2 -0
- package/types/number-spinner/index.d.ts +2 -0
- package/types/number-spinner/src/components/spinner.component.d.ts +4 -0
- package/types/number-spinner/src/components/text-box.component.d.ts +4 -0
- package/types/number-spinner/src/composition/types.d.ts +33 -28
- package/types/number-spinner/src/composition/use-format.d.ts +4 -0
- package/types/number-spinner/src/composition/use-number.d.ts +4 -0
- package/types/number-spinner/src/composition/use-spinner.d.ts +4 -0
- package/types/number-spinner/src/composition/use-text-box.d.ts +4 -0
- package/types/number-spinner/src/designer/number-spinner.component.d.ts +6 -0
- package/types/number-spinner/src/number-spinner.component.d.ts +2 -200
- package/types/number-spinner/src/number-spinner.props.d.ts +3 -165
- package/types/number-spinner/src/schema/schema-mapper.d.ts +2 -0
- package/types/order/index.d.ts +8 -0
- package/types/order/src/order.props.d.ts +44 -0
- package/types/overlay/src/overlay.component.d.ts +6 -0
- package/types/overlay/src/overlay.props.d.ts +4 -1
- package/types/overlay/src/overlay.service.d.ts +16 -0
- package/types/page-footer/index.d.ts +8 -0
- package/types/page-footer/src/page-footer.props.d.ts +40 -0
- package/types/page-header/index.d.ts +10 -0
- package/types/page-header/src/page-header.props.d.ts +4 -0
- package/types/page-header/src/schema/schema-mapper.d.ts +2 -0
- package/types/pagination/src/components/pages/page-list.component.d.ts +1 -1
- package/types/pagination/src/pagination.components.d.ts +1 -1
- package/types/popover/src/composition/types.d.ts +24 -0
- package/types/popover/src/composition/use-host.d.ts +3 -0
- package/types/popover/src/composition/use-popup.d.ts +4 -0
- package/types/popover/src/composition/use-position.d.ts +4 -0
- package/types/popover/src/composition/use-resize.d.ts +4 -0
- package/types/popover/src/popover.component.d.ts +78 -0
- package/types/popover/src/popover.props.d.ts +37 -1
- package/types/propress/index.d.ts +8 -0
- package/types/propress/src/progress.props.d.ts +49 -0
- package/types/query-solution/index.d.ts +25 -0
- package/types/query-solution/src/designer/query-solution.design.component.d.ts +6 -0
- package/types/query-solution/src/query-solution.component.d.ts +6 -0
- package/types/query-solution/src/query-solution.d.ts +40 -0
- package/types/query-solution/src/query-solution.props.d.ts +19 -0
- package/types/query-solution/src/schema/preset-resolver.d.ts +5 -0
- package/types/query-solution/src/schema/schema-mapper.d.ts +2 -0
- package/types/radio-group/index.d.ts +1 -0
- package/types/radio-group/src/radio-group.component.d.ts +2 -89
- package/types/radio-group/src/radio-group.props.d.ts +2 -70
- package/types/radio-group/src/schema/schema-mapper.d.ts +2 -0
- package/types/{combo-list/src/composition/use-option.d.ts → rate/index.d.ts} +8 -4
- package/types/rate/src/rate.component.d.ts +124 -0
- package/types/rate/src/rate.props.d.ts +86 -0
- package/types/response-toolbar/index.d.ts +10 -0
- package/types/response-toolbar/src/components/dropdown/toolbar-dropdown-menu.component.d.ts +5 -0
- package/types/response-toolbar/src/components/dropdown/toolbar-dropdown.component.d.ts +7 -0
- package/types/response-toolbar/src/composition/types.d.ts +9 -0
- package/types/response-toolbar/src/composition/use-icon.d.ts +2 -0
- package/types/response-toolbar/src/composition/use-toolbar-item.d.ts +2 -0
- package/types/response-toolbar/src/response-toolbar.props.d.ts +26 -0
- package/types/response-toolbar/src/types/response-toolbar-dropdwon-item.d.ts +13 -0
- package/types/response-toolbar/src/types/response-toolbar-group.d.ts +19 -0
- package/types/response-toolbar/src/types/response-toolbar-item-base.d.ts +36 -0
- package/types/response-toolbar/src/types/response-toolbar-item.d.ts +4 -0
- package/types/search-box/index.d.ts +24 -0
- package/types/search-box/src/components/search-box-container.props.d.ts +21 -0
- package/types/search-box/src/schema/schema-mapper.d.ts +2 -0
- package/types/search-box/src/search-box.props.d.ts +4 -0
- package/types/section/index.d.ts +2 -0
- package/types/section/src/schema/schema-mapper.d.ts +2 -0
- package/types/section/src/section.component.d.ts +2 -185
- package/types/section/src/section.props.d.ts +3 -86
- package/types/splitter/index.d.ts +10 -0
- package/types/splitter/src/components/splitter-pane.props.d.ts +5 -0
- package/types/splitter/src/composition/types.d.ts +23 -0
- package/types/splitter/src/composition/use-resize-handle.d.ts +3 -0
- package/types/splitter/src/composition/use-resize-pane.d.ts +3 -0
- package/types/splitter/src/schema/splitter-pane-schema-mapper.d.ts +2 -0
- package/types/splitter/src/schema/splitter-schema-mapper.d.ts +2 -0
- package/types/splitter/src/splitter.props.d.ts +5 -0
- package/types/step/index.d.ts +8 -0
- package/types/step/src/step.props.d.ts +46 -0
- package/types/switch/index.d.ts +1 -0
- package/types/switch/src/schema/schema-mapper.d.ts +2 -0
- package/types/switch/src/switch.component.d.ts +2 -64
- package/types/switch/src/switch.props.d.ts +3 -35
- package/types/tabs/index.d.ts +2 -0
- package/types/tabs/src/components/more-pages-button.component.d.ts +5 -0
- package/types/tabs/src/components/tab-header-dropdown-menu.component.d.ts +5 -0
- package/types/tabs/src/components/tab-header-item.component.d.ts +4 -0
- package/types/tabs/src/components/tab-header.component.d.ts +4 -0
- package/types/tabs/src/components/tab-page.component.d.ts +2 -99
- package/types/tabs/src/components/tab-page.props.d.ts +3 -47
- package/types/tabs/src/composition/types.d.ts +36 -5
- package/types/tabs/src/composition/use-dropdown.d.ts +3 -0
- package/types/tabs/src/composition/use-nav.d.ts +4 -0
- package/types/tabs/src/composition/use-one-page.d.ts +4 -0
- package/types/tabs/src/composition/use-tabs.d.ts +3 -2
- package/types/tabs/src/schema/schema-mapper.d.ts +2 -0
- package/types/tabs/src/tabs.props.d.ts +5 -69
- package/types/tags/index.d.ts +8 -0
- package/types/tags/src/composition/types.d.ts +13 -0
- package/types/tags/src/composition/use-draggable.d.ts +4 -0
- package/types/tags/src/tags.props.d.ts +92 -0
- package/types/time-picker/index.d.ts +11 -0
- package/types/time-picker/src/components/time-holder.d.ts +82 -0
- package/types/time-picker/src/components/time.props.d.ts +48 -0
- package/types/time-picker/src/components/utils/check.d.ts +1 -0
- package/types/time-picker/src/schema/schema-mapper.d.ts +2 -0
- package/types/time-picker/src/time-picker.props.d.ts +4 -0
- package/types/transfer/index.d.ts +8 -0
- package/types/transfer/src/transfer.props.d.ts +71 -0
- package/types/tree-view/index.d.ts +8 -0
- package/types/tree-view/src/components/data/control-tree-view.component.d.ts +108 -0
- package/types/tree-view/src/components/data/tree-area.component.d.ts +8 -0
- package/types/tree-view/src/composition/types.d.ts +97 -0
- package/types/tree-view/src/composition/use-auto-check-children-and-cascade.d.ts +4 -0
- package/types/tree-view/src/composition/use-tree-data-view.d.ts +21 -0
- package/types/tree-view/src/composition/use-tree-node-icon.d.ts +4 -0
- package/types/tree-view/src/composition/use-tree-node-lines.d.ts +3 -0
- package/types/tree-view/src/composition/use-visual-tree-node.d.ts +9 -0
- package/types/tree-view/src/control-tree-view.props.d.ts +58 -0
- package/types/tree-view/src/tree-view.component.d.ts +97 -0
- package/types/tree-view/src/tree-view.props.d.ts +54 -0
- package/types/uploader/index.d.ts +25 -0
- package/types/uploader/src/components/sub-component.props.d.ts +63 -0
- package/types/uploader/src/components/upload-progress.component.d.ts +41 -0
- package/types/uploader/src/composition/type.d.ts +135 -0
- package/types/uploader/src/service/get-service.d.ts +2 -0
- package/types/uploader/src/uploader.props.d.ts +156 -0
- package/types/verify-detail/index.d.ts +23 -0
- package/types/verify-detail/src/verify-detail.component.d.ts +70 -0
- package/types/verify-detail/src/verify-detail.props.d.ts +36 -0
- package/uploader/index.esm.js +1972 -0
- package/uploader/index.umd.js +17 -0
- package/uploader/package.json +8 -0
- package/uploader/style.css +1 -0
- package/verify-detail/index.esm.js +187 -0
- package/verify-detail/index.umd.js +1 -0
- package/verify-detail/package.json +8 -0
- package/verify-detail/style.css +1 -0
- package/types/combo-list/src/combo-list.component.d.ts +0 -232
- package/types/combo-list/src/components/panel.component.d.ts +0 -25
- package/types/combo-list/src/composition/use-combo-list.d.ts +0 -30
- package/types/combo-list/src/composition/use-options.d.ts +0 -2
- package/types/combo-list/src/composition/use-panel.d.ts +0 -8
- package/types/combo-list/src/const.d.ts +0 -40
- package/types/combo-list/src/types.d.ts +0 -186
- package/types/data-grid/src/data-grid.component.d.ts +0 -278
- package/types/message-box/src/message-box.service.d.ts +0 -20
- package/types/number-range/src/composition/use-data.d.ts +0 -19
- package/types/number-range/src/composition/use-util.d.ts +0 -19
- package/types/number-spinner/src/composition/use-util.d.ts +0 -19
- package/types/tabs/src/tabs.component.d.ts +0 -151
package/combo-list/index.esm.js
CHANGED
|
@@ -1,538 +1,2189 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { ref as a, computed as B, watch as W, defineComponent as G, createVNode as p, withDirectives as Q, vModelCheckbox as Me, Fragment as re, withModifiers as Fe, vModelText as Oe, Teleport as de, createApp as Ve, onUnmounted as fe, nextTick as K, vShow as ve, onMounted as ne, mergeProps as Le, inject as De } from "vue";
|
|
2
|
+
const pe = {};
|
|
3
|
+
function oe(e) {
|
|
4
|
+
const { properties: t } = e;
|
|
5
|
+
return Object.keys(t).reduce((l, n) => (l[n] = t[n].type === "object" && t[n].properties ? oe(t[n]) : t[n].default, l), {});
|
|
6
|
+
}
|
|
7
|
+
function je(e) {
|
|
8
|
+
const t = pe[e];
|
|
9
|
+
return t ? oe(t) : null;
|
|
10
|
+
}
|
|
11
|
+
function Re(e, t) {
|
|
12
|
+
const o = oe(t);
|
|
13
|
+
return Object.keys(e).reduce((l, n) => (l[n] = e[n], l), o), o;
|
|
14
|
+
}
|
|
15
|
+
function Ae(e, t) {
|
|
16
|
+
return Object.keys(e).filter((l) => e[l] != null).reduce((l, n) => {
|
|
17
|
+
if (t.has(n)) {
|
|
18
|
+
const i = t.get(n);
|
|
19
|
+
if (typeof i == "string")
|
|
20
|
+
l[i] = e[n];
|
|
21
|
+
else {
|
|
22
|
+
const u = i(n, e[n]);
|
|
23
|
+
Object.assign(l, u);
|
|
24
|
+
}
|
|
25
|
+
} else
|
|
26
|
+
l[n] = e[n];
|
|
27
|
+
return l;
|
|
28
|
+
}, {});
|
|
29
|
+
}
|
|
30
|
+
function Ee(e, t, o = /* @__PURE__ */ new Map()) {
|
|
31
|
+
const l = Re(e, t);
|
|
32
|
+
return Ae(l, o);
|
|
33
|
+
}
|
|
34
|
+
function ge(e, t, o = /* @__PURE__ */ new Map()) {
|
|
35
|
+
return pe[t.title] = t, (l) => {
|
|
36
|
+
const n = Ee(l, t, o), i = Object.keys(e).reduce((u, c) => (u[c] = e[c].default, u), {});
|
|
37
|
+
return Object.assign(i, n);
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function me(e, t) {
|
|
41
|
+
return { customClass: t.class };
|
|
42
|
+
}
|
|
43
|
+
const He = /* @__PURE__ */ new Map([
|
|
44
|
+
["appearance", me]
|
|
45
|
+
]), We = "https://json-schema.org/draft/2020-12/schema", _e = "https://farris-design.gitee.io/combo-list.schema.json", $e = "combo-list", Ne = "A Farris Input Component", ze = "object", Xe = {
|
|
46
|
+
id: {
|
|
47
|
+
description: "The unique identifier for a combo list",
|
|
48
|
+
type: "string"
|
|
49
|
+
},
|
|
50
|
+
type: {
|
|
51
|
+
description: "The type string of number combo list component",
|
|
52
|
+
type: "string",
|
|
53
|
+
default: "combo-list"
|
|
54
|
+
},
|
|
55
|
+
appearance: {
|
|
56
|
+
description: "",
|
|
57
|
+
type: "object",
|
|
58
|
+
properties: {
|
|
59
|
+
class: {
|
|
60
|
+
type: "string"
|
|
61
|
+
},
|
|
62
|
+
style: {
|
|
63
|
+
type: "string"
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
default: {}
|
|
67
|
+
},
|
|
68
|
+
binding: {
|
|
69
|
+
description: "",
|
|
70
|
+
type: "object",
|
|
71
|
+
default: {}
|
|
72
|
+
},
|
|
73
|
+
editable: {
|
|
74
|
+
description: "",
|
|
75
|
+
type: "boolean",
|
|
76
|
+
default: !0
|
|
77
|
+
},
|
|
78
|
+
enableLinkLabel: {
|
|
79
|
+
description: "",
|
|
80
|
+
type: "boolean",
|
|
81
|
+
default: !1
|
|
82
|
+
},
|
|
83
|
+
label: {
|
|
84
|
+
description: "",
|
|
85
|
+
type: "string",
|
|
86
|
+
default: ""
|
|
87
|
+
},
|
|
88
|
+
lableWidth: {
|
|
89
|
+
description: "",
|
|
90
|
+
type: "number"
|
|
91
|
+
},
|
|
92
|
+
placeHolder: {
|
|
93
|
+
description: "",
|
|
94
|
+
type: "string",
|
|
95
|
+
default: ""
|
|
96
|
+
},
|
|
97
|
+
readonly: {
|
|
98
|
+
description: "",
|
|
99
|
+
type: "boolean",
|
|
100
|
+
default: !1
|
|
101
|
+
},
|
|
102
|
+
required: {
|
|
103
|
+
description: "",
|
|
104
|
+
type: "boolean",
|
|
105
|
+
default: !1
|
|
106
|
+
},
|
|
107
|
+
tabindex: {
|
|
108
|
+
description: "",
|
|
109
|
+
type: "number",
|
|
110
|
+
default: -1
|
|
111
|
+
},
|
|
112
|
+
textAlign: {
|
|
113
|
+
description: "",
|
|
114
|
+
type: "string",
|
|
115
|
+
enum: [
|
|
116
|
+
"left",
|
|
117
|
+
"middle",
|
|
118
|
+
"right"
|
|
119
|
+
],
|
|
120
|
+
default: "left"
|
|
121
|
+
},
|
|
122
|
+
visible: {
|
|
123
|
+
description: "",
|
|
124
|
+
type: "boolean",
|
|
125
|
+
default: !0
|
|
126
|
+
},
|
|
127
|
+
onBlur: {
|
|
128
|
+
description: "",
|
|
129
|
+
type: "string",
|
|
130
|
+
default: ""
|
|
131
|
+
},
|
|
132
|
+
onClickLinkLabel: {
|
|
133
|
+
description: "",
|
|
134
|
+
type: "sting",
|
|
135
|
+
default: ""
|
|
136
|
+
}
|
|
137
|
+
}, qe = [
|
|
138
|
+
"id",
|
|
139
|
+
"type"
|
|
140
|
+
], Ge = {
|
|
141
|
+
$schema: We,
|
|
142
|
+
$id: _e,
|
|
143
|
+
title: $e,
|
|
144
|
+
description: Ne,
|
|
145
|
+
type: ze,
|
|
146
|
+
properties: Xe,
|
|
147
|
+
required: qe
|
|
148
|
+
};
|
|
149
|
+
var Ue = /* @__PURE__ */ ((e) => (e.Text = "text", e.Tag = "tag", e))(Ue || {}), Ke = /* @__PURE__ */ ((e) => (e.top = "top", e.bottom = "bottom", e.auto = "auto", e))(Ke || {});
|
|
150
|
+
const ae = {
|
|
4
151
|
/**
|
|
5
152
|
* 组件标识
|
|
6
153
|
*/
|
|
7
154
|
id: { type: String },
|
|
8
155
|
/**
|
|
9
|
-
*
|
|
10
|
-
* 默认`false`
|
|
156
|
+
* 下拉数据源
|
|
11
157
|
*/
|
|
12
|
-
|
|
158
|
+
data: { type: Array, default: [] },
|
|
13
159
|
/**
|
|
14
|
-
*
|
|
15
|
-
*
|
|
160
|
+
* 可选,展示文本
|
|
161
|
+
* 默认为空字符串
|
|
16
162
|
*/
|
|
17
|
-
|
|
163
|
+
displayText: { type: String, default: "" },
|
|
18
164
|
/**
|
|
19
|
-
*
|
|
165
|
+
* 可选,是否禁用
|
|
20
166
|
* 默认为`false`
|
|
21
167
|
*/
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* 最大输入长度
|
|
25
|
-
*/
|
|
26
|
-
maxLength: { type: Number },
|
|
168
|
+
disabled: { default: !1, type: Boolean },
|
|
27
169
|
/**
|
|
28
|
-
*
|
|
170
|
+
* 可选,下拉图标
|
|
171
|
+
* 默认为'<span class="f-icon f-icon-arrow-60-down"></span>'
|
|
29
172
|
*/
|
|
30
|
-
|
|
173
|
+
dropDownIcon: { type: String, default: '<span class="f-icon f-icon-arrow-60-down"></span>' },
|
|
31
174
|
/**
|
|
32
|
-
*
|
|
175
|
+
* 可选,是否可编辑
|
|
33
176
|
* 默认`false`
|
|
34
177
|
*/
|
|
35
|
-
|
|
178
|
+
editable: { default: !1, type: Boolean },
|
|
36
179
|
/**
|
|
37
180
|
* 可选,是否启用清空
|
|
38
181
|
* 默认启用
|
|
39
182
|
*/
|
|
40
183
|
enableClear: { default: !0, type: Boolean },
|
|
184
|
+
/**
|
|
185
|
+
* 可选,启用搜索
|
|
186
|
+
* 默认为`false`
|
|
187
|
+
*/
|
|
188
|
+
enableSearch: { type: Boolean, default: !1 },
|
|
41
189
|
/**
|
|
42
190
|
* 可选,鼠标悬停时是否显示控件值
|
|
43
191
|
* 默认显示
|
|
44
192
|
*/
|
|
45
193
|
enableTitle: { default: !0, type: Boolean },
|
|
46
194
|
/**
|
|
47
|
-
*
|
|
48
|
-
*
|
|
49
|
-
*/
|
|
50
|
-
viewType: { default: x.Text, type: String },
|
|
51
|
-
/**
|
|
52
|
-
* 可选,字段映射
|
|
195
|
+
* 可选,强制显示占位符
|
|
196
|
+
* 默认`false`
|
|
53
197
|
*/
|
|
54
|
-
|
|
198
|
+
forcePlaceholder: { default: !1, type: Boolean },
|
|
55
199
|
/**
|
|
56
|
-
*
|
|
200
|
+
* 可选,清空值时隐藏面板
|
|
201
|
+
* 默认`true`
|
|
57
202
|
*/
|
|
58
|
-
|
|
203
|
+
hidePanelOnClear: { default: !0, type: Boolean },
|
|
59
204
|
/**
|
|
60
205
|
* 可选,数据源id字段
|
|
61
206
|
* 默认为`id`
|
|
62
207
|
*/
|
|
63
208
|
idField: { default: "id", type: String },
|
|
64
209
|
/**
|
|
65
|
-
*
|
|
66
|
-
* 默认为`id`
|
|
67
|
-
*/
|
|
68
|
-
valueField: { default: "id", type: String },
|
|
69
|
-
/**
|
|
70
|
-
* 可选,数据源显示字段
|
|
71
|
-
* 默认为`label`
|
|
72
|
-
*/
|
|
73
|
-
textField: { default: "label", type: String },
|
|
74
|
-
/**
|
|
75
|
-
* 可选,是否支持多选
|
|
76
|
-
* 默认`false`
|
|
77
|
-
*/
|
|
78
|
-
multiSelect: { default: !1, type: Boolean },
|
|
79
|
-
/**
|
|
80
|
-
* 远端数据源信息
|
|
210
|
+
* 可选,字段映射
|
|
81
211
|
*/
|
|
82
|
-
|
|
212
|
+
mapFields: { type: Object },
|
|
83
213
|
/**
|
|
84
214
|
* 可选,最大高度
|
|
85
215
|
* 默认`350`
|
|
86
216
|
*/
|
|
87
217
|
maxHeight: { default: 350, type: Number },
|
|
88
218
|
/**
|
|
89
|
-
*
|
|
90
|
-
* 默认`false`
|
|
91
|
-
*/
|
|
92
|
-
remoteSearch: { default: !1, type: Boolean },
|
|
93
|
-
/**
|
|
94
|
-
* 可选,清空值时隐藏面板
|
|
95
|
-
* 默认`true`
|
|
96
|
-
*/
|
|
97
|
-
hidePanelOnClear: { default: !0, type: Boolean },
|
|
98
|
-
/**
|
|
99
|
-
* 可选,分隔符
|
|
100
|
-
* 默认`,`
|
|
219
|
+
* 最大输入长度
|
|
101
220
|
*/
|
|
102
|
-
|
|
221
|
+
maxLength: { type: Number },
|
|
103
222
|
/**
|
|
104
|
-
*
|
|
105
|
-
*
|
|
223
|
+
* 可选,是否支持多选
|
|
224
|
+
* 默认`false`
|
|
106
225
|
*/
|
|
107
|
-
|
|
226
|
+
multiSelect: { default: !1, type: Boolean },
|
|
108
227
|
/**
|
|
109
228
|
* 绑定值
|
|
110
229
|
*/
|
|
111
|
-
modelValue: { type:
|
|
230
|
+
modelValue: { type: String, default: "" },
|
|
112
231
|
/**
|
|
113
|
-
*
|
|
114
|
-
* 默认为'<span class="f-icon f-icon-arrow-60-down"></span>'
|
|
232
|
+
* 占位符
|
|
115
233
|
*/
|
|
116
|
-
|
|
234
|
+
placeholder: { type: String },
|
|
117
235
|
/**
|
|
118
|
-
*
|
|
236
|
+
* 可选,下拉面板展示位置
|
|
237
|
+
* 默认为`auto`
|
|
119
238
|
*/
|
|
120
|
-
|
|
239
|
+
placement: {
|
|
240
|
+
type: String,
|
|
241
|
+
default: "auto"
|
|
242
|
+
/* auto */
|
|
243
|
+
},
|
|
121
244
|
/**
|
|
122
|
-
*
|
|
245
|
+
* 可选,是否只读
|
|
123
246
|
* 默认为`false`
|
|
124
247
|
*/
|
|
125
|
-
|
|
248
|
+
readonly: { default: !1, type: Boolean },
|
|
126
249
|
/**
|
|
127
|
-
*
|
|
128
|
-
* 默认为`auto`
|
|
250
|
+
* 远端数据源信息
|
|
129
251
|
*/
|
|
130
|
-
|
|
131
|
-
}, E = {
|
|
252
|
+
remote: { default: null, type: Object },
|
|
132
253
|
/**
|
|
133
|
-
*
|
|
254
|
+
* 可选,是否支持远端过滤
|
|
255
|
+
* 默认`false`
|
|
134
256
|
*/
|
|
135
|
-
|
|
257
|
+
remoteSearch: { default: !1, type: Boolean },
|
|
136
258
|
/**
|
|
137
|
-
*
|
|
259
|
+
* 可选,分隔符
|
|
260
|
+
* 默认`,`
|
|
138
261
|
*/
|
|
139
|
-
|
|
262
|
+
separator: { default: ",", type: String },
|
|
140
263
|
/**
|
|
141
|
-
*
|
|
142
|
-
* 默认`false`
|
|
264
|
+
* tabIndex
|
|
143
265
|
*/
|
|
144
|
-
|
|
266
|
+
tabIndex: { type: Number, default: -1 },
|
|
145
267
|
/**
|
|
146
|
-
*
|
|
268
|
+
* 可选,数据源显示字段
|
|
269
|
+
* 默认为`name`
|
|
147
270
|
*/
|
|
148
|
-
|
|
149
|
-
}, L = {
|
|
271
|
+
textField: { default: "name", type: String },
|
|
150
272
|
/**
|
|
151
|
-
*
|
|
273
|
+
* 可选,数据源值字段
|
|
274
|
+
* 默认为`id`
|
|
152
275
|
*/
|
|
153
|
-
|
|
276
|
+
valueField: { default: "id", type: String },
|
|
154
277
|
/**
|
|
155
|
-
*
|
|
156
|
-
*
|
|
278
|
+
* 可选,下拉列表值展示方式
|
|
279
|
+
* 支持text | tag,即文本或标签,默认为`ViewType.Text`,即文本方式`text`
|
|
157
280
|
*/
|
|
158
|
-
|
|
159
|
-
},
|
|
160
|
-
|
|
161
|
-
|
|
281
|
+
viewType: { default: "text", type: String }
|
|
282
|
+
}, ie = ge(ae, Ge, He), Je = {
|
|
283
|
+
dataSource: { type: Array, default: [] },
|
|
284
|
+
enableSearch: { type: Boolean, default: !1 },
|
|
285
|
+
idField: { type: String, default: "id" },
|
|
286
|
+
multiSelect: { default: !1, type: Boolean },
|
|
287
|
+
selectedValues: { type: String, default: "" },
|
|
288
|
+
separator: { type: String, default: "," },
|
|
289
|
+
textField: { type: String, default: "name" },
|
|
290
|
+
width: { type: Number, default: 300 },
|
|
291
|
+
valueField: { type: String, default: "id" }
|
|
292
|
+
}, Qe = {
|
|
293
|
+
data: { type: Array, default: [] },
|
|
294
|
+
draggable: { type: Boolean, default: !1 },
|
|
295
|
+
multiSelect: { Type: Boolean, default: !1 },
|
|
296
|
+
multiSelectMode: { Type: String, default: "OnCheck" },
|
|
297
|
+
idField: { Type: String, default: "id" },
|
|
298
|
+
valueField: { Type: String, default: "id" },
|
|
299
|
+
textField: { Type: String, default: "name" },
|
|
300
|
+
view: { Type: String, default: "ContentView" },
|
|
301
|
+
size: { Type: String, default: "default" },
|
|
302
|
+
placeholder: { type: String, default: "" },
|
|
303
|
+
header: { Type: String, default: "ContentHeader" },
|
|
304
|
+
headerClass: { Type: String, default: "" },
|
|
305
|
+
itemClass: { Type: String, default: "" },
|
|
306
|
+
selectionValues: { type: Array, default: [] },
|
|
307
|
+
keepOrder: { type: Boolean, default: !1 },
|
|
308
|
+
disableField: { type: String, default: "disabled" }
|
|
309
|
+
};
|
|
310
|
+
function Ye(e, t, o, l, n) {
|
|
311
|
+
const i = a(e.idField), u = a(e.disableField), c = a(e.draggable), h = a(e.itemClass), s = a(e.multiSelect), f = a(e.multiSelectMode);
|
|
312
|
+
a(!0);
|
|
313
|
+
const { isDragging: r } = o, { activeIndex: d, focusedItemId: b, hoverIndex: m } = l, { clearSelection: v, selectedItems: P, toggleSelectItem: F } = n;
|
|
314
|
+
function x(C, j) {
|
|
315
|
+
const V = {
|
|
316
|
+
"f-list-view-group-item": !0,
|
|
317
|
+
"f-list-view-draggable-item": c.value,
|
|
318
|
+
"f-un-click": !!C.unClick,
|
|
319
|
+
"f-un-select": !!C[u.value],
|
|
320
|
+
"f-listview-active": C.__fv_index__ === d.value,
|
|
321
|
+
"f-listview-hover": !r.value && j === m.value,
|
|
322
|
+
moving: !!C.moving
|
|
323
|
+
};
|
|
324
|
+
return h.value.split(" ").reduce((z, D) => (z[D] = !0, z), V), V;
|
|
162
325
|
}
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
const
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
}
|
|
184
|
-
|
|
326
|
+
function y(C, j) {
|
|
327
|
+
return C[i.value] || "";
|
|
328
|
+
}
|
|
329
|
+
const S = B(() => !s.value);
|
|
330
|
+
function I(C, j) {
|
|
331
|
+
C.unClick || C[u.value] || (S.value && (b.value = C[i.value]), F(C, j));
|
|
332
|
+
}
|
|
333
|
+
const k = B(() => s.value && f.value === "OnCheckClearByClick"), E = B(() => !s.value || s.value && (f.value === "OnCheckAndClick" || f.value === "OnClick"));
|
|
334
|
+
function L(C, j, V) {
|
|
335
|
+
if (j.unClick || j[u.value]) {
|
|
336
|
+
C.preventDefault(), C.stopPropagation();
|
|
337
|
+
return;
|
|
338
|
+
}
|
|
339
|
+
b.value = j[i.value], d.value = V, k.value && v(), E.value && F(j, V), t.emit("clickItem", { data: P.value, index: V });
|
|
340
|
+
}
|
|
341
|
+
return {
|
|
342
|
+
getKey: y,
|
|
343
|
+
listViewItemClass: x,
|
|
344
|
+
onCheckItem: I,
|
|
345
|
+
onClickItem: L
|
|
346
|
+
};
|
|
347
|
+
}
|
|
348
|
+
function Ze(e, t, o) {
|
|
349
|
+
const l = a(e.idField), n = a(e.multiSelect);
|
|
350
|
+
a(e.multiSelectMode);
|
|
351
|
+
const { getSelectionItems: i } = o, u = a(i(e.selectionValues));
|
|
352
|
+
W(() => e.selectionValues, (d) => {
|
|
353
|
+
u.value = a(i(d)).value;
|
|
354
|
+
});
|
|
355
|
+
const c = B(() => !n.value);
|
|
356
|
+
function h(d) {
|
|
357
|
+
return d[l.value] || "";
|
|
358
|
+
}
|
|
359
|
+
function s(d) {
|
|
360
|
+
return u.value.findIndex((m) => h(m) === h(d));
|
|
361
|
+
}
|
|
362
|
+
function f() {
|
|
363
|
+
u.value.forEach((d) => {
|
|
364
|
+
d.checked = !1;
|
|
365
|
+
}), u.value = [];
|
|
366
|
+
}
|
|
367
|
+
function r(d, b) {
|
|
368
|
+
c.value && f();
|
|
369
|
+
const m = s(d);
|
|
370
|
+
m > -1 ? (u.value.splice(m, 1), d.checked = !1) : (u.value.push(d), d.checked = !0), t.emit("selectionChange", u.value);
|
|
371
|
+
}
|
|
372
|
+
return { clearSelection: f, findIndexInSelectedItems: s, selectedItems: u, toggleSelectItem: r };
|
|
373
|
+
}
|
|
374
|
+
function et(e, t) {
|
|
185
375
|
function o(i) {
|
|
186
|
-
|
|
376
|
+
const u = [];
|
|
377
|
+
let c = i.nextNode();
|
|
378
|
+
for (; c; )
|
|
379
|
+
u.push(c), c = i.nextNode();
|
|
380
|
+
return u;
|
|
381
|
+
}
|
|
382
|
+
function l(i, u) {
|
|
383
|
+
const c = document.createTreeWalker(i, NodeFilter.SHOW_TEXT);
|
|
384
|
+
return o(c).map((r) => ({ textNode: r, text: (r.textContent || "").toLocaleLowerCase() })).map(({ textNode: r, text: d }) => {
|
|
385
|
+
const b = [];
|
|
386
|
+
let m = 0;
|
|
387
|
+
for (; m < d.length; ) {
|
|
388
|
+
const v = d.indexOf(u, m);
|
|
389
|
+
if (v === -1)
|
|
390
|
+
break;
|
|
391
|
+
b.push(v), m = v + u.length;
|
|
392
|
+
}
|
|
393
|
+
return b.map((v) => {
|
|
394
|
+
const P = new Range();
|
|
395
|
+
return P.setStart(r, v), P.setEnd(r, v + u.length), P;
|
|
396
|
+
});
|
|
397
|
+
}).flat();
|
|
398
|
+
}
|
|
399
|
+
function n(i) {
|
|
400
|
+
if (!CSS.highlights || (CSS.highlights.clear(), !i || !t))
|
|
401
|
+
return;
|
|
402
|
+
const u = l(t.value, i.toLocaleLowerCase()), c = new Highlight(...u);
|
|
403
|
+
CSS.highlights.set("search-result", c);
|
|
404
|
+
}
|
|
405
|
+
return { search: n };
|
|
406
|
+
}
|
|
407
|
+
const tt = {
|
|
408
|
+
checked: { Type: Boolean, default: !1 },
|
|
409
|
+
id: { Type: String, default: "" },
|
|
410
|
+
disabled: { Type: Boolean, default: !1 },
|
|
411
|
+
/**
|
|
412
|
+
* 组件值,字符串或者数组
|
|
413
|
+
*/
|
|
414
|
+
modelValue: { Type: Boolean, default: !1 }
|
|
415
|
+
}, le = /* @__PURE__ */ G({
|
|
416
|
+
name: "FListViewCheckBox",
|
|
417
|
+
props: tt,
|
|
418
|
+
emits: ["change", "update:modelValue"],
|
|
419
|
+
setup(e, t) {
|
|
420
|
+
const o = a(e.checked), l = a(e.disabled), n = a(e.id);
|
|
421
|
+
function i(u) {
|
|
422
|
+
u.stopPropagation(), u.preventDefault(), l.value || (o.value = !o.value, t.emit("change", {
|
|
423
|
+
originalEvent: u,
|
|
424
|
+
checked: o.value
|
|
425
|
+
}));
|
|
426
|
+
}
|
|
427
|
+
return W(() => e.checked, (u) => {
|
|
428
|
+
o.value = u;
|
|
429
|
+
}), () => p("div", {
|
|
430
|
+
class: "custom-control custom-checkbox custom-control-inline listview-checkbox"
|
|
431
|
+
}, [Q(p("input", {
|
|
432
|
+
id: n.value,
|
|
433
|
+
title: n.value,
|
|
434
|
+
type: "checkbox",
|
|
435
|
+
class: "custom-control-input",
|
|
436
|
+
"onUpdate:modelValue": (u) => o.value = u,
|
|
437
|
+
onChange: (u) => console.log(u)
|
|
438
|
+
}, null), [[Me, o.value]]), p("label", {
|
|
439
|
+
for: n.value,
|
|
440
|
+
class: "custom-control-label",
|
|
441
|
+
onClick: (u) => i(u)
|
|
442
|
+
}, null)]);
|
|
443
|
+
}
|
|
444
|
+
});
|
|
445
|
+
function se(e, t, o, l, n, i, u, c) {
|
|
446
|
+
const h = a(e.size), s = a(e.textField), f = a(e.multiSelect), r = a(e.disableField), {
|
|
447
|
+
onMouseenterItem: d,
|
|
448
|
+
onMouseoverItem: b,
|
|
449
|
+
onMouseoutItem: m
|
|
450
|
+
} = n, {
|
|
451
|
+
getKey: v,
|
|
452
|
+
listViewItemClass: P,
|
|
453
|
+
onCheckItem: F,
|
|
454
|
+
onClickItem: x
|
|
455
|
+
} = i, y = B(() => ({
|
|
456
|
+
margin: h.value === "small" ? "0.25rem 0" : "10px 0"
|
|
457
|
+
}));
|
|
458
|
+
function S(I, k, E) {
|
|
459
|
+
return I.checked = u.findIndexInSelectedItems(I) > -1, p("li", {
|
|
460
|
+
class: P(I, k),
|
|
461
|
+
id: v(I, k),
|
|
462
|
+
key: v(I, k),
|
|
463
|
+
onClick: (L) => x(L, I, k),
|
|
464
|
+
onMouseenter: (L) => d(L, I, k),
|
|
465
|
+
onMouseover: (L) => b(L, I, k),
|
|
466
|
+
onMouseout: (L) => m(L, I, k)
|
|
467
|
+
}, [f.value && p("div", {
|
|
468
|
+
class: "f-list-select",
|
|
469
|
+
onClick: (L) => L.stopPropagation()
|
|
470
|
+
}, [p(le, {
|
|
471
|
+
id: "list-" + v(I, k),
|
|
472
|
+
disabled: I[r.value] || I.unClick,
|
|
473
|
+
checked: I.checked,
|
|
474
|
+
onChange: (L) => F(I, k)
|
|
475
|
+
}, null)]), p("div", {
|
|
476
|
+
class: "f-list-content"
|
|
477
|
+
}, [p("div", {
|
|
478
|
+
style: y.value
|
|
479
|
+
}, [I[s.value]])])]);
|
|
480
|
+
}
|
|
481
|
+
return {
|
|
482
|
+
renderItem: S
|
|
483
|
+
};
|
|
484
|
+
}
|
|
485
|
+
function nt(e, t, o, l, n, i, u, c) {
|
|
486
|
+
const h = a(e.multiSelect), s = a(e.disableField), {
|
|
487
|
+
onMouseenterItem: f,
|
|
488
|
+
onMouseoverItem: r,
|
|
489
|
+
onMouseoutItem: d
|
|
490
|
+
} = n, {
|
|
491
|
+
getKey: b,
|
|
492
|
+
listViewItemClass: m,
|
|
493
|
+
onCheckItem: v,
|
|
494
|
+
onClickItem: P
|
|
495
|
+
} = i;
|
|
496
|
+
function F(y, S, I) {
|
|
497
|
+
return t.slots.content ? p(re, null, [t.slots.content && t.slots.content({
|
|
498
|
+
item: y,
|
|
499
|
+
index: S,
|
|
500
|
+
selectedItem: I
|
|
501
|
+
})]) : p("div", {
|
|
502
|
+
style: "margin: 10px 0;"
|
|
503
|
+
}, [y.name]);
|
|
504
|
+
}
|
|
505
|
+
function x(y, S, I) {
|
|
506
|
+
return p("li", {
|
|
507
|
+
class: m(y, S),
|
|
508
|
+
id: b(y, S),
|
|
509
|
+
key: b(y, S),
|
|
510
|
+
onClick: (k) => P(k, y, S),
|
|
511
|
+
onMouseenter: (k) => f(k, y, S),
|
|
512
|
+
onMouseover: (k) => r(k, y, S),
|
|
513
|
+
onMouseout: (k) => d(k, y, S)
|
|
514
|
+
}, [h.value && p("div", {
|
|
515
|
+
class: "f-list-select",
|
|
516
|
+
onClick: (k) => k.stopPropagation()
|
|
517
|
+
}, [p(le, {
|
|
518
|
+
id: "list-" + b(y, S),
|
|
519
|
+
disabled: y[s.value] || y.unClick,
|
|
520
|
+
checked: y.checked,
|
|
521
|
+
onChange: (k) => v(y, S)
|
|
522
|
+
}, null)]), p("div", {
|
|
523
|
+
class: "f-list-content"
|
|
524
|
+
}, [F(y, S, I)])]);
|
|
525
|
+
}
|
|
526
|
+
return {
|
|
527
|
+
renderItem: x
|
|
528
|
+
};
|
|
529
|
+
}
|
|
530
|
+
function ot(e, t, o, l, n, i, u, c) {
|
|
531
|
+
const h = a(e.multiSelect), s = a(e.disableField), {
|
|
532
|
+
onMouseenterItem: f,
|
|
533
|
+
onMouseoverItem: r,
|
|
534
|
+
onMouseoutItem: d
|
|
535
|
+
} = n, {
|
|
536
|
+
getKey: b,
|
|
537
|
+
listViewItemClass: m,
|
|
538
|
+
onCheckItem: v,
|
|
539
|
+
onClickItem: P
|
|
540
|
+
} = i, {
|
|
541
|
+
dragstart: F,
|
|
542
|
+
dragenter: x,
|
|
543
|
+
dragover: y,
|
|
544
|
+
dragend: S
|
|
545
|
+
} = l, {
|
|
546
|
+
removeItem: I
|
|
547
|
+
} = c, k = B(() => ({
|
|
548
|
+
margin: h.value ? "10px 0" : "10px 0px 10px 14px"
|
|
549
|
+
}));
|
|
550
|
+
function E(V) {
|
|
551
|
+
return p("div", {
|
|
552
|
+
style: k.value
|
|
553
|
+
}, [V.name]);
|
|
554
|
+
}
|
|
555
|
+
function L() {
|
|
556
|
+
return t.slots.itemContent ? t.slots.itemContent : E;
|
|
557
|
+
}
|
|
558
|
+
const C = L();
|
|
559
|
+
function j(V, R, z) {
|
|
560
|
+
return p("li", {
|
|
561
|
+
class: m(V, R),
|
|
562
|
+
id: b(V, R),
|
|
563
|
+
key: b(V, R),
|
|
564
|
+
onClick: (D) => P(D, V, R),
|
|
565
|
+
onMouseenter: (D) => f(D, V, R),
|
|
566
|
+
onMouseover: (D) => r(D, V, R),
|
|
567
|
+
onMouseout: (D) => d(D, V, R),
|
|
568
|
+
draggable: "true",
|
|
569
|
+
onDragstart: (D) => F(D, V, R),
|
|
570
|
+
onDragenter: (D) => x(D, R),
|
|
571
|
+
onDragend: (D) => S(D, V),
|
|
572
|
+
onDragover: (D) => y(D, R)
|
|
573
|
+
}, [h.value && p("div", {
|
|
574
|
+
class: "f-list-select",
|
|
575
|
+
onClick: (D) => D.stopPropagation()
|
|
576
|
+
}, [p(le, {
|
|
577
|
+
id: "list-" + b(V, R),
|
|
578
|
+
disabled: V[s.value] || V.unClick,
|
|
579
|
+
checked: V.checked,
|
|
580
|
+
onChange: (D) => v(V, R)
|
|
581
|
+
}, null)]), p("div", {
|
|
582
|
+
class: "f-list-content"
|
|
583
|
+
}, [C(V)]), p("div", {
|
|
584
|
+
class: "f-list-remove",
|
|
585
|
+
onClick: (D) => I(R)
|
|
586
|
+
}, [p("div", {
|
|
587
|
+
class: "f-list-remove-icon"
|
|
588
|
+
}, [p("i", {
|
|
589
|
+
class: "f-icon f-icon-remove_face"
|
|
590
|
+
}, null)])]), p("div", {
|
|
591
|
+
class: "f-list-handle"
|
|
592
|
+
}, [p("div", null, [p("i", {
|
|
593
|
+
class: "f-icon f-icon-drag-vertical"
|
|
594
|
+
}, null)])])]);
|
|
187
595
|
}
|
|
188
596
|
return {
|
|
189
|
-
|
|
190
|
-
modelValue: u,
|
|
191
|
-
isPanelVisible: t,
|
|
192
|
-
dataSource: a,
|
|
193
|
-
onValueChange: o
|
|
597
|
+
renderItem: j
|
|
194
598
|
};
|
|
195
599
|
}
|
|
196
|
-
function
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
600
|
+
function at(e, t, o) {
|
|
601
|
+
function l() {
|
|
602
|
+
return t.slots.header && p("div", {
|
|
603
|
+
class: "f-list-view-header"
|
|
604
|
+
}, [t.slots.header()]);
|
|
605
|
+
}
|
|
606
|
+
return {
|
|
607
|
+
renderHeader: l
|
|
201
608
|
};
|
|
202
|
-
|
|
203
|
-
|
|
609
|
+
}
|
|
610
|
+
function ce(e, t, o) {
|
|
611
|
+
const l = a(e.headerClass), n = a(e.placeholder), i = a(""), u = B(() => !i.value), c = B(() => !!i.value);
|
|
612
|
+
function h(d) {
|
|
613
|
+
i.value = "";
|
|
614
|
+
}
|
|
615
|
+
W(i, (d) => {
|
|
616
|
+
o.search(d);
|
|
617
|
+
});
|
|
618
|
+
const s = B(() => {
|
|
619
|
+
const d = {
|
|
620
|
+
"form-group": !0,
|
|
621
|
+
"farris-form-group": !0
|
|
622
|
+
};
|
|
623
|
+
return l.value && l.value.split(" ").reduce((m, v) => (m[v] = !0, m), d), d;
|
|
204
624
|
});
|
|
205
|
-
function
|
|
206
|
-
u.value = "", t.hidePanelOnClear && (n.value = !1), l.emit(j.update, ""), l.emit(j.clear);
|
|
625
|
+
function f(d) {
|
|
207
626
|
}
|
|
208
|
-
function
|
|
209
|
-
|
|
627
|
+
function r() {
|
|
628
|
+
return p("div", {
|
|
629
|
+
class: "f-list-view-header",
|
|
630
|
+
onClick: Fe(f, ["prevent", "stop"])
|
|
631
|
+
}, [p("div", {
|
|
632
|
+
class: s.value
|
|
633
|
+
}, [p("div", {
|
|
634
|
+
class: "farris-input-wrap"
|
|
635
|
+
}, [p("div", {
|
|
636
|
+
class: "f-cmp-inputgroup"
|
|
637
|
+
}, [p("div", {
|
|
638
|
+
class: "input-group f-state-editable"
|
|
639
|
+
}, [Q(p("input", {
|
|
640
|
+
class: "form-control f-utils-fill text-left",
|
|
641
|
+
"onUpdate:modelValue": (d) => i.value = d,
|
|
642
|
+
name: "input-group-value",
|
|
643
|
+
type: "text",
|
|
644
|
+
placeholder: n.value,
|
|
645
|
+
autocomplete: "off"
|
|
646
|
+
}, null), [[Oe, i.value]]), p("div", {
|
|
647
|
+
class: "input-group-append"
|
|
648
|
+
}, [c.value && p("span", {
|
|
649
|
+
class: "input-group-text input-group-clear",
|
|
650
|
+
onClick: (d) => h()
|
|
651
|
+
}, [p("i", {
|
|
652
|
+
class: "f-icon f-icon-close-circle"
|
|
653
|
+
}, null)]), u.value && p("span", {
|
|
654
|
+
class: "input-group-text"
|
|
655
|
+
}, [p("span", {
|
|
656
|
+
class: "f-icon f-icon-search"
|
|
657
|
+
}, null)])])])])])])]);
|
|
210
658
|
}
|
|
211
|
-
|
|
212
|
-
|
|
659
|
+
return {
|
|
660
|
+
renderHeader: r
|
|
661
|
+
};
|
|
662
|
+
}
|
|
663
|
+
function lt(e, t) {
|
|
664
|
+
const o = a(e.idField), l = a(e.data), n = a(e.data), i = a(e.keepOrder);
|
|
665
|
+
function u() {
|
|
666
|
+
const s = l.value.map((f, r) => typeof f != "object" ? { __fv_index__: r, name: f } : (f.__fv_index__ = r, f));
|
|
667
|
+
return n.value = s, s;
|
|
213
668
|
}
|
|
214
|
-
|
|
215
|
-
|
|
669
|
+
const c = a(u());
|
|
670
|
+
W(
|
|
671
|
+
() => e.data,
|
|
672
|
+
(s) => {
|
|
673
|
+
if (i.value) {
|
|
674
|
+
const f = s.reduce((m, v) => (m.set(v.id, !0), m), /* @__PURE__ */ new Map()), r = l.value.reduce((m, v) => (m.set(v.id, !0), m), /* @__PURE__ */ new Map()), d = c.value.filter((m) => f.has(m.id)), b = s.filter((m) => !r.has(m.id));
|
|
675
|
+
l.value = [...d, ...b];
|
|
676
|
+
} else
|
|
677
|
+
l.value = s;
|
|
678
|
+
c.value = u();
|
|
679
|
+
}
|
|
680
|
+
);
|
|
681
|
+
function h(s) {
|
|
682
|
+
return s.map((r) => {
|
|
683
|
+
const d = n.value.findIndex((b) => b[o.value] === r);
|
|
684
|
+
return d > -1 ? n.value[d] : null;
|
|
685
|
+
}).filter((r) => r != null);
|
|
216
686
|
}
|
|
217
687
|
return {
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
onButtonClick: d,
|
|
221
|
-
onPanelHidden: s
|
|
688
|
+
dataView: c,
|
|
689
|
+
getSelectionItems: h
|
|
222
690
|
};
|
|
223
691
|
}
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
692
|
+
function ut(e, t, o, l) {
|
|
693
|
+
const n = a(e.idField), { dataView: i } = o, u = a(-1), c = a(!1), { activeIndex: h, focusedItemId: s, hoverIndex: f, resumeHover: r, suspendHover: d } = l;
|
|
694
|
+
function b(F, x, y) {
|
|
695
|
+
F.stopPropagation(), d(), x && setTimeout(() => {
|
|
696
|
+
u.value = y, c.value = !0, x.moving = !0;
|
|
697
|
+
});
|
|
698
|
+
}
|
|
699
|
+
function m(F, x) {
|
|
700
|
+
if (F.preventDefault(), u.value !== x) {
|
|
701
|
+
const y = i.value[u.value], S = i.value;
|
|
702
|
+
S.splice(u.value, 1), S.splice(x, 0, y), u.value = x;
|
|
703
|
+
}
|
|
704
|
+
}
|
|
705
|
+
function v(F, x) {
|
|
706
|
+
F.preventDefault(), F.dataTransfer && (F.dataTransfer.dropEffect = "move");
|
|
707
|
+
}
|
|
708
|
+
function P(F, x) {
|
|
709
|
+
x && (x.moving = !1), i.value.forEach((y, S) => {
|
|
710
|
+
y.__fv_index__ = S;
|
|
711
|
+
}), c.value = !1, r(), f.value = x.__fv_index__, h.value = x.__fv_index__, s.value = x[n.value], t.emit("change", i.value);
|
|
712
|
+
}
|
|
713
|
+
return {
|
|
714
|
+
dragstart: b,
|
|
715
|
+
dragenter: m,
|
|
716
|
+
dragover: v,
|
|
717
|
+
dragend: P,
|
|
718
|
+
isDragging: c
|
|
719
|
+
};
|
|
720
|
+
}
|
|
721
|
+
function it(e, t, o) {
|
|
722
|
+
const { dataView: l } = o;
|
|
723
|
+
function n(i) {
|
|
724
|
+
if (i > -1 && i < l.value.length) {
|
|
725
|
+
const u = l.value.splice(i, 1);
|
|
726
|
+
t.emit("removeItem", u[0]);
|
|
727
|
+
}
|
|
728
|
+
}
|
|
729
|
+
return { removeItem: n };
|
|
730
|
+
}
|
|
731
|
+
function st() {
|
|
732
|
+
const e = a(-1), t = a(""), o = a(-1), l = a(!1);
|
|
733
|
+
function n(s, f, r) {
|
|
734
|
+
o.value = r;
|
|
735
|
+
}
|
|
736
|
+
function i(s, f, r) {
|
|
737
|
+
l.value || (o.value = r);
|
|
738
|
+
}
|
|
739
|
+
function u(s, f, r) {
|
|
740
|
+
o.value = -1;
|
|
741
|
+
}
|
|
742
|
+
function c() {
|
|
743
|
+
l.value = !0;
|
|
744
|
+
}
|
|
745
|
+
function h() {
|
|
746
|
+
l.value = !1;
|
|
747
|
+
}
|
|
748
|
+
return {
|
|
749
|
+
activeIndex: e,
|
|
750
|
+
focusedItemId: t,
|
|
751
|
+
hoverIndex: o,
|
|
752
|
+
onMouseenterItem: n,
|
|
753
|
+
onMouseoverItem: i,
|
|
754
|
+
onMouseoutItem: u,
|
|
755
|
+
resumeHover: h,
|
|
756
|
+
suspendHover: c
|
|
757
|
+
};
|
|
758
|
+
}
|
|
759
|
+
const ct = /* @__PURE__ */ G({
|
|
760
|
+
name: "FListView",
|
|
761
|
+
props: Qe,
|
|
762
|
+
emits: ["checkValuesChange", "clickItem", "selectionChange", "removeItem", "change"],
|
|
763
|
+
setup(e, t) {
|
|
764
|
+
const o = a(), l = a(e.view), n = a(e.header), i = a(e.multiSelect), u = a(e.view === "CardView"), c = a(!0), h = a({}), s = a("暂无数据");
|
|
765
|
+
a(!0), a(!1), a("id");
|
|
766
|
+
const f = lt(e), {
|
|
767
|
+
dataView: r
|
|
768
|
+
} = f, d = B(() => {
|
|
769
|
+
const M = {
|
|
770
|
+
"f-list-view": !0,
|
|
771
|
+
"f-list-view-multiple": i.value
|
|
772
|
+
};
|
|
773
|
+
return e.size !== "default" && (M[`${e.size}-item`] = !0), M;
|
|
774
|
+
}), b = B(() => ({
|
|
775
|
+
"f-list-view-group": !0,
|
|
776
|
+
"d-flex": u.value,
|
|
777
|
+
"flex-wrap": u.value
|
|
778
|
+
})), m = B(() => !!r.value && r.value.length > 0), v = st(), P = Ze(e, t, f), F = ut(e, t, f, v), x = it(e, t, f), y = Ye(e, t, F, v, P), S = et(e, o), I = B(() => r.value.length === 0), k = B(() => I.value && !t.slots.empty), E = B(() => !!t.slots.footer || c.value);
|
|
779
|
+
function L() {
|
|
780
|
+
return l.value === "SingleView" ? se : l.value === "DraggableView" ? ot : l.value === "ContentView" && t.slots.content ? nt : se;
|
|
781
|
+
}
|
|
782
|
+
const C = L(), {
|
|
783
|
+
renderItem: j
|
|
784
|
+
} = C(e, t, f, F, v, y, P, x);
|
|
785
|
+
function V() {
|
|
786
|
+
return n.value === "SearchBar" ? ce : n.value === "ContentHeader" ? at : ce;
|
|
787
|
+
}
|
|
788
|
+
const R = V(), {
|
|
789
|
+
renderHeader: z
|
|
790
|
+
} = R(e, t, S);
|
|
791
|
+
function D(M) {
|
|
792
|
+
S.search(M);
|
|
793
|
+
}
|
|
794
|
+
t.expose({
|
|
795
|
+
search: D
|
|
796
|
+
});
|
|
797
|
+
function O(M) {
|
|
798
|
+
i.value && (M.preventDefault(), M.stopPropagation());
|
|
799
|
+
}
|
|
800
|
+
return () => p("div", {
|
|
801
|
+
class: d.value,
|
|
802
|
+
onClick: O
|
|
803
|
+
}, [z(), p("div", {
|
|
804
|
+
ref: o,
|
|
805
|
+
class: "f-list-view-content"
|
|
806
|
+
}, [p("ul", {
|
|
807
|
+
class: b.value,
|
|
808
|
+
style: "list-style: none;"
|
|
809
|
+
}, [m.value && r.value.map((M, A) => j(M, A, h)), k.value && p("div", {
|
|
810
|
+
class: "f-list-view-emptydata"
|
|
811
|
+
}, [p("p", {
|
|
812
|
+
class: "f-empty-title"
|
|
813
|
+
}, [s.value])]), t.slots.empty && t.slots.empty()])]), E.value && p("div", {
|
|
814
|
+
class: "f-list-view-footer"
|
|
815
|
+
}, [t.slots.footer && t.slots.footer()])]);
|
|
816
|
+
}
|
|
817
|
+
}), rt = /* @__PURE__ */ G({
|
|
818
|
+
name: "FComboListContainer",
|
|
819
|
+
props: Je,
|
|
820
|
+
emits: ["selectionChange"],
|
|
821
|
+
setup(e, t) {
|
|
822
|
+
const o = a(e.dataSource), l = a([]), n = a(e.separator), i = a(e.selectedValues.split(n.value));
|
|
823
|
+
W(e.dataSource, () => {
|
|
824
|
+
o.value = e.dataSource;
|
|
825
|
+
});
|
|
826
|
+
const u = B(() => e.enableSearch ? "SearchBar" : "ContentHeader");
|
|
827
|
+
function c(h) {
|
|
828
|
+
l.value = h.map((s) => Object.assign({}, s)), i.value = h.map((s) => s[e.idField]), t.emit("selectionChange", l.value);
|
|
829
|
+
}
|
|
830
|
+
return () => p("div", {
|
|
831
|
+
class: "f-combo-list-container"
|
|
832
|
+
}, [p(ct, {
|
|
833
|
+
size: "small",
|
|
834
|
+
itemClass: "f-combo-list-item",
|
|
835
|
+
header: u.value,
|
|
836
|
+
headerClass: "f-combo-list-search-box",
|
|
837
|
+
data: o.value,
|
|
838
|
+
idField: e.idField,
|
|
839
|
+
textField: e.textField,
|
|
840
|
+
multiSelect: e.multiSelect,
|
|
841
|
+
multiSelectMode: "OnCheckAndClick",
|
|
842
|
+
"selection-values": i.value,
|
|
843
|
+
onSelectionChange: c
|
|
844
|
+
}, null)]);
|
|
845
|
+
}
|
|
846
|
+
}), dt = /* @__PURE__ */ new Map([
|
|
847
|
+
["appearance", me]
|
|
848
|
+
]), ft = "https://json-schema.org/draft/2020-12/schema", vt = "https://farris-design.gitee.io/button-edit.schema.json", pt = "button-edit", gt = "A Farris Input Component", mt = "object", ht = {
|
|
849
|
+
id: {
|
|
850
|
+
description: "The unique identifier for a Input Group",
|
|
851
|
+
type: "string"
|
|
852
|
+
},
|
|
853
|
+
type: {
|
|
854
|
+
description: "The type string of Input Group component",
|
|
855
|
+
type: "string",
|
|
856
|
+
default: "button-edit"
|
|
857
|
+
},
|
|
858
|
+
appearance: {
|
|
859
|
+
description: "",
|
|
860
|
+
type: "object",
|
|
861
|
+
properties: {
|
|
862
|
+
class: {
|
|
863
|
+
type: "string"
|
|
864
|
+
},
|
|
865
|
+
style: {
|
|
866
|
+
type: "string"
|
|
867
|
+
}
|
|
868
|
+
},
|
|
869
|
+
default: {}
|
|
870
|
+
},
|
|
871
|
+
binding: {
|
|
872
|
+
description: "",
|
|
873
|
+
type: "object",
|
|
874
|
+
default: {}
|
|
875
|
+
},
|
|
876
|
+
disable: {
|
|
877
|
+
type: "string",
|
|
878
|
+
default: !1
|
|
879
|
+
},
|
|
880
|
+
editable: {
|
|
881
|
+
description: "",
|
|
882
|
+
type: "boolean",
|
|
883
|
+
default: !0
|
|
884
|
+
},
|
|
885
|
+
enableLinkLabel: {
|
|
886
|
+
description: "",
|
|
887
|
+
type: "boolean",
|
|
888
|
+
default: !1
|
|
889
|
+
},
|
|
890
|
+
label: {
|
|
891
|
+
description: "",
|
|
892
|
+
type: "string",
|
|
893
|
+
default: ""
|
|
894
|
+
},
|
|
895
|
+
lableWidth: {
|
|
896
|
+
description: "",
|
|
897
|
+
type: "number"
|
|
898
|
+
},
|
|
899
|
+
placeHolder: {
|
|
900
|
+
description: "",
|
|
901
|
+
type: "string",
|
|
902
|
+
default: ""
|
|
903
|
+
},
|
|
904
|
+
readonly: {
|
|
905
|
+
description: "",
|
|
906
|
+
type: "boolean",
|
|
907
|
+
default: !1
|
|
908
|
+
},
|
|
909
|
+
require: {
|
|
910
|
+
description: "",
|
|
911
|
+
type: "boolean",
|
|
912
|
+
default: !1
|
|
913
|
+
},
|
|
914
|
+
tabindex: {
|
|
915
|
+
description: "",
|
|
916
|
+
type: "number",
|
|
917
|
+
default: -1
|
|
918
|
+
},
|
|
919
|
+
textAlign: {
|
|
920
|
+
description: "",
|
|
921
|
+
type: "string",
|
|
922
|
+
enum: [
|
|
923
|
+
"left",
|
|
924
|
+
"middle",
|
|
925
|
+
"right"
|
|
926
|
+
],
|
|
927
|
+
default: "left"
|
|
928
|
+
},
|
|
929
|
+
visible: {
|
|
930
|
+
description: "",
|
|
931
|
+
type: "boolean",
|
|
932
|
+
default: !0
|
|
933
|
+
},
|
|
934
|
+
onBlur: {
|
|
935
|
+
description: "",
|
|
936
|
+
type: "string",
|
|
937
|
+
default: ""
|
|
938
|
+
},
|
|
939
|
+
onClickLinkLabel: {
|
|
940
|
+
description: "",
|
|
941
|
+
type: "sting",
|
|
942
|
+
default: ""
|
|
943
|
+
},
|
|
944
|
+
autoComplete: {
|
|
945
|
+
description: "",
|
|
946
|
+
type: "boolean",
|
|
947
|
+
default: !1
|
|
948
|
+
},
|
|
949
|
+
buttonContent: {
|
|
950
|
+
description: "",
|
|
951
|
+
type: "string",
|
|
952
|
+
default: ""
|
|
953
|
+
},
|
|
954
|
+
enableClear: {
|
|
955
|
+
description: "",
|
|
956
|
+
type: "boolean",
|
|
957
|
+
default: !0
|
|
958
|
+
},
|
|
959
|
+
inputType: {
|
|
960
|
+
description: "",
|
|
961
|
+
type: "string",
|
|
962
|
+
enum: [
|
|
963
|
+
"text",
|
|
964
|
+
"tag"
|
|
965
|
+
],
|
|
966
|
+
default: "text"
|
|
967
|
+
},
|
|
968
|
+
multiSelect: {
|
|
969
|
+
description: "",
|
|
970
|
+
type: "boolean",
|
|
971
|
+
default: !1
|
|
972
|
+
},
|
|
973
|
+
popup: {
|
|
974
|
+
description: "",
|
|
975
|
+
type: "object",
|
|
976
|
+
properties: {
|
|
977
|
+
footerButtons: {
|
|
978
|
+
type: "array",
|
|
979
|
+
default: []
|
|
980
|
+
},
|
|
981
|
+
height: {
|
|
982
|
+
type: "number",
|
|
983
|
+
default: 600
|
|
984
|
+
},
|
|
985
|
+
dataMapping: {
|
|
986
|
+
type: "object"
|
|
987
|
+
},
|
|
988
|
+
contents: {
|
|
989
|
+
type: "array",
|
|
990
|
+
default: []
|
|
991
|
+
},
|
|
992
|
+
showMaxButton: {
|
|
993
|
+
type: "boolean",
|
|
994
|
+
default: !0
|
|
995
|
+
},
|
|
996
|
+
showCloseButton: {
|
|
997
|
+
type: "boolean",
|
|
998
|
+
default: !0
|
|
999
|
+
},
|
|
1000
|
+
showFooter: {
|
|
1001
|
+
type: "boolean",
|
|
1002
|
+
default: !0
|
|
1003
|
+
},
|
|
1004
|
+
title: {
|
|
1005
|
+
type: "string",
|
|
1006
|
+
default: ""
|
|
1007
|
+
},
|
|
1008
|
+
width: {
|
|
1009
|
+
type: "number",
|
|
1010
|
+
default: 800
|
|
1011
|
+
}
|
|
1012
|
+
}
|
|
1013
|
+
},
|
|
1014
|
+
separator: {
|
|
1015
|
+
type: "string",
|
|
1016
|
+
default: ","
|
|
1017
|
+
},
|
|
1018
|
+
showButtonWhenDisabled: {
|
|
1019
|
+
description: "",
|
|
1020
|
+
type: "boolean",
|
|
1021
|
+
default: !1
|
|
1022
|
+
},
|
|
1023
|
+
wrapText: {
|
|
1024
|
+
type: "boolean",
|
|
1025
|
+
default: !1
|
|
1026
|
+
},
|
|
1027
|
+
onClear: {
|
|
1028
|
+
description: "",
|
|
1029
|
+
type: "string",
|
|
1030
|
+
default: ""
|
|
1031
|
+
}
|
|
1032
|
+
}, yt = [
|
|
1033
|
+
"id",
|
|
1034
|
+
"type"
|
|
1035
|
+
], bt = {
|
|
1036
|
+
$schema: ft,
|
|
1037
|
+
$id: vt,
|
|
1038
|
+
title: pt,
|
|
1039
|
+
description: gt,
|
|
1040
|
+
type: mt,
|
|
1041
|
+
properties: ht,
|
|
1042
|
+
required: yt
|
|
1043
|
+
}, he = {
|
|
1044
|
+
/**
|
|
1045
|
+
* 组件标识
|
|
1046
|
+
*/
|
|
1047
|
+
id: String,
|
|
1048
|
+
/**
|
|
1049
|
+
* 扩展按钮显示内容,这是一段现在扩展按钮中的html标签
|
|
1050
|
+
*/
|
|
1051
|
+
buttonContent: { type: String, default: '<i class="f-icon f-icon-lookup"></i>' },
|
|
1052
|
+
buttonBehavior: { type: String, default: "Popup" },
|
|
1053
|
+
/**
|
|
1054
|
+
* 启用输入框自动完成功能
|
|
1055
|
+
*/
|
|
1056
|
+
autoComplete: { type: Boolean, default: !1 },
|
|
1057
|
+
/**
|
|
1058
|
+
* 组件自定义样式
|
|
1059
|
+
*/
|
|
1060
|
+
customClass: { type: String, default: "" },
|
|
1061
|
+
/**
|
|
1062
|
+
* 禁用组件,既不允许在输入框中录入,也不允许点击扩展按钮。
|
|
1063
|
+
*/
|
|
1064
|
+
disable: { type: Boolean, default: !1 },
|
|
1065
|
+
/**
|
|
1066
|
+
* 允许在输入框中录入文本。
|
|
1067
|
+
*/
|
|
1068
|
+
editable: { type: Boolean, default: !0 },
|
|
1069
|
+
/**
|
|
1070
|
+
* 显示清空文本按钮
|
|
1071
|
+
*/
|
|
1072
|
+
enableClear: { type: Boolean, default: !1 },
|
|
1073
|
+
/**
|
|
1074
|
+
* 组件值
|
|
1075
|
+
*/
|
|
1076
|
+
modelValue: { type: String, default: "" },
|
|
1077
|
+
/**
|
|
1078
|
+
* 将组件设置为只读,既不允许在输入框中录入,也不允许点击扩展按钮,但是允许复制输入框中的内容。
|
|
1079
|
+
*/
|
|
1080
|
+
readonly: { type: Boolean, default: !1 },
|
|
1081
|
+
/**
|
|
1082
|
+
* 文本对齐方式
|
|
1083
|
+
*/
|
|
1084
|
+
textAlign: { type: String, default: "left" },
|
|
1085
|
+
/**
|
|
1086
|
+
* 禁用组件时,是否显示扩展按钮
|
|
1087
|
+
*/
|
|
1088
|
+
showButtonWhenDisabled: { type: Boolean, default: !1 },
|
|
1089
|
+
/**
|
|
1090
|
+
* 显示输入框的标签
|
|
1091
|
+
*/
|
|
1092
|
+
enableTitle: { type: Boolean, default: !1 },
|
|
1093
|
+
/**
|
|
1094
|
+
* 输入框类型
|
|
1095
|
+
*/
|
|
1096
|
+
inputType: { type: String, default: "text" },
|
|
1097
|
+
/**
|
|
1098
|
+
* 显示输入框提示信息
|
|
1099
|
+
*/
|
|
1100
|
+
forcePlaceholder: { type: Boolean, default: !1 },
|
|
1101
|
+
/**
|
|
1102
|
+
* 输入框提示文本
|
|
1103
|
+
*/
|
|
1104
|
+
placeholder: { type: String, default: "" },
|
|
1105
|
+
/**
|
|
1106
|
+
* 输入框最小长度
|
|
1107
|
+
*/
|
|
1108
|
+
minLength: Number,
|
|
1109
|
+
/**
|
|
1110
|
+
* 输入框最大长度
|
|
1111
|
+
*/
|
|
1112
|
+
maxLength: Number,
|
|
1113
|
+
/**
|
|
1114
|
+
* 输入框Tab键索引
|
|
1115
|
+
*/
|
|
1116
|
+
tabIndex: Number,
|
|
1117
|
+
popupHost: { type: Object },
|
|
1118
|
+
popupRightBoundary: { type: Object },
|
|
1119
|
+
popupOffsetX: { type: Object },
|
|
1120
|
+
popupOnInput: { type: Boolean, default: !1 },
|
|
1121
|
+
popupOnFocus: { type: Boolean, default: !1 },
|
|
1122
|
+
popupMinWidth: { type: Number, default: 320 },
|
|
1123
|
+
wrapText: { type: Boolean, default: !1 },
|
|
1124
|
+
/**
|
|
1125
|
+
* 可选,是否支持多选
|
|
1126
|
+
* 默认`false`
|
|
1127
|
+
*/
|
|
1128
|
+
multiSelect: { type: Boolean, default: !1 },
|
|
1129
|
+
/**
|
|
1130
|
+
* 可选,分隔符
|
|
1131
|
+
* 默认`,`
|
|
1132
|
+
*/
|
|
1133
|
+
separator: { type: String, default: "," }
|
|
1134
|
+
};
|
|
1135
|
+
ge(he, bt, dt);
|
|
1136
|
+
const Ct = {
|
|
1137
|
+
popupContentPosition: { type: Object, default: { left: 0, top: 0 } },
|
|
1138
|
+
host: { type: Object }
|
|
1139
|
+
}, wt = /* @__PURE__ */ G({
|
|
227
1140
|
name: "FOverlay",
|
|
228
|
-
props:
|
|
1141
|
+
props: Ct,
|
|
229
1142
|
emits: ["click"],
|
|
230
|
-
setup(e,
|
|
231
|
-
const
|
|
232
|
-
function
|
|
233
|
-
|
|
1143
|
+
setup(e, t) {
|
|
1144
|
+
const o = a(e.popupContentPosition), l = a(e.host);
|
|
1145
|
+
function n(c) {
|
|
1146
|
+
t.emit("click"), c.preventDefault(), c.stopPropagation();
|
|
234
1147
|
}
|
|
235
|
-
const
|
|
1148
|
+
const i = B(() => {
|
|
1149
|
+
const c = l.value;
|
|
1150
|
+
if (c) {
|
|
1151
|
+
const h = c.getBoundingClientRect(), {
|
|
1152
|
+
left: s,
|
|
1153
|
+
top: f,
|
|
1154
|
+
height: r
|
|
1155
|
+
} = h;
|
|
1156
|
+
return {
|
|
1157
|
+
left: s,
|
|
1158
|
+
top: f + r
|
|
1159
|
+
};
|
|
1160
|
+
}
|
|
1161
|
+
return o.value;
|
|
1162
|
+
}), u = B(() => ({
|
|
236
1163
|
position: "relative",
|
|
237
|
-
left: `${
|
|
238
|
-
top: `${
|
|
1164
|
+
left: `${i.value.left}px`,
|
|
1165
|
+
top: `${i.value.top}px`
|
|
239
1166
|
}));
|
|
240
|
-
return () =>
|
|
1167
|
+
return () => p(de, {
|
|
241
1168
|
to: "body"
|
|
242
1169
|
}, {
|
|
243
1170
|
default: () => {
|
|
244
|
-
var
|
|
245
|
-
return [
|
|
1171
|
+
var c, h;
|
|
1172
|
+
return [p("div", {
|
|
246
1173
|
class: "overlay-container",
|
|
247
1174
|
style: "pointer-events: auto;",
|
|
248
|
-
onClick: (
|
|
249
|
-
}, [
|
|
250
|
-
style:
|
|
251
|
-
}, [(
|
|
1175
|
+
onClick: (s) => n(s)
|
|
1176
|
+
}, [p("div", {
|
|
1177
|
+
style: u.value
|
|
1178
|
+
}, [(h = (c = t.slots).default) == null ? void 0 : h.call(c)])])];
|
|
252
1179
|
}
|
|
253
1180
|
});
|
|
254
1181
|
}
|
|
255
1182
|
});
|
|
256
|
-
function
|
|
257
|
-
|
|
1183
|
+
function St(e) {
|
|
1184
|
+
if (e.content && e.content.render)
|
|
1185
|
+
return e.content.render;
|
|
1186
|
+
if (e.render && typeof e.render == "function")
|
|
1187
|
+
return e.render;
|
|
1188
|
+
}
|
|
1189
|
+
function Tt(e) {
|
|
1190
|
+
const t = document.createElement("div");
|
|
1191
|
+
t.style.display = "contents";
|
|
1192
|
+
let o;
|
|
1193
|
+
const l = e.onClickCallback || (() => {
|
|
1194
|
+
}), n = () => {
|
|
1195
|
+
l(), o && o.unmount();
|
|
1196
|
+
};
|
|
1197
|
+
return o = Ve({
|
|
1198
|
+
setup() {
|
|
1199
|
+
fe(() => {
|
|
1200
|
+
document.body.removeChild(t);
|
|
1201
|
+
});
|
|
1202
|
+
const i = St(e);
|
|
1203
|
+
return () => p(wt, {
|
|
1204
|
+
"popup-content-position": e.popupPosition,
|
|
1205
|
+
host: e.host,
|
|
1206
|
+
onClick: n
|
|
1207
|
+
}, {
|
|
1208
|
+
default: () => [i && i()]
|
|
1209
|
+
});
|
|
1210
|
+
}
|
|
1211
|
+
}), document.body.appendChild(t), o.mount(t), o;
|
|
1212
|
+
}
|
|
1213
|
+
class Bt {
|
|
1214
|
+
static show(t) {
|
|
1215
|
+
return Tt(t);
|
|
1216
|
+
}
|
|
1217
|
+
}
|
|
1218
|
+
function It(e, t, o, l) {
|
|
1219
|
+
const n = a(e.buttonBehavior), i = a(e.popupOnInput), u = B(() => ({
|
|
1220
|
+
"input-group-append": !0,
|
|
1221
|
+
"append-force-show": e.showButtonWhenDisabled && (e.readonly || e.disable)
|
|
1222
|
+
})), c = B(() => e.showButtonWhenDisabled || (!e.editable || !e.readonly) && !e.disable);
|
|
1223
|
+
async function h(d) {
|
|
1224
|
+
if (c.value) {
|
|
1225
|
+
const b = !!t.slots.default;
|
|
1226
|
+
n.value === "Overlay" && Bt.show({
|
|
1227
|
+
host: o.value,
|
|
1228
|
+
render: () => {
|
|
1229
|
+
if (t.slots.default)
|
|
1230
|
+
return t.slots.default();
|
|
1231
|
+
}
|
|
1232
|
+
}), b && n.value === "Popup" && l.togglePopup(), b && i.value && l.hidePopup(), t.emit("clickButton", { origin: d, value: e.modelValue });
|
|
1233
|
+
}
|
|
1234
|
+
d.stopPropagation();
|
|
1235
|
+
}
|
|
1236
|
+
function s(d) {
|
|
1237
|
+
t.emit("mouseEnterIcon", d);
|
|
1238
|
+
}
|
|
1239
|
+
function f(d) {
|
|
1240
|
+
t.emit("mouseLeaveIcon", d);
|
|
1241
|
+
}
|
|
1242
|
+
function r() {
|
|
1243
|
+
t.emit("mouseOverButton");
|
|
1244
|
+
}
|
|
258
1245
|
return {
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
1246
|
+
buttonClass: u,
|
|
1247
|
+
onClickButton: h,
|
|
1248
|
+
onMouseEnterButton: s,
|
|
1249
|
+
onMouseLeaveButton: f,
|
|
1250
|
+
onMouseOverButton: r
|
|
262
1251
|
};
|
|
263
1252
|
}
|
|
264
|
-
function
|
|
265
|
-
const
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
}
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
1253
|
+
function kt(e, t, o, l, n, i) {
|
|
1254
|
+
const u = a(!1), c = B(() => e.enableClear && !e.readonly && !e.disable), { changeTextBoxValue: h } = i;
|
|
1255
|
+
function s(b) {
|
|
1256
|
+
u.value = b;
|
|
1257
|
+
}
|
|
1258
|
+
W(n, () => {
|
|
1259
|
+
l.value ? s(!!n.value) : s(!1);
|
|
1260
|
+
});
|
|
1261
|
+
function f(b) {
|
|
1262
|
+
const m = !e.readonly && !e.disable && e.editable, v = !e.editable;
|
|
1263
|
+
b.stopPropagation(), (m || v) && (h("", !1), s(!u.value), t.emit("clear"));
|
|
1264
|
+
}
|
|
1265
|
+
function r(b) {
|
|
1266
|
+
if (c.value) {
|
|
1267
|
+
if (!o.value) {
|
|
1268
|
+
s(!1);
|
|
1269
|
+
return;
|
|
1270
|
+
}
|
|
1271
|
+
(!e.editable || !e.readonly) && !e.disable && s(!0);
|
|
1272
|
+
}
|
|
1273
|
+
}
|
|
1274
|
+
function d(b) {
|
|
1275
|
+
c.value && s(!1);
|
|
1276
|
+
}
|
|
1277
|
+
return {
|
|
1278
|
+
enableClearButton: c,
|
|
1279
|
+
showClearButton: u,
|
|
1280
|
+
onClearValue: f,
|
|
1281
|
+
onMouseEnterTextBox: r,
|
|
1282
|
+
onMouseLeaveTextBox: d
|
|
1283
|
+
};
|
|
1284
|
+
}
|
|
1285
|
+
function xt(e, t, o, l, n) {
|
|
1286
|
+
const i = a(e.popupOnInput), u = a(e.popupOnFocus), { shouldPopupContent: c } = n, h = B(() => e.enableTitle ? o.value : ""), s = B(() => (e.disable || e.readonly) && !e.forcePlaceholder ? "" : e.placeholder), f = B(() => e.readonly || !e.editable);
|
|
1287
|
+
let r = !1;
|
|
1288
|
+
const d = B(() => !e.disable && r), b = B(() => ({
|
|
1289
|
+
"text-left": e.textAlign === "left",
|
|
1290
|
+
"text-center": e.textAlign === "center",
|
|
1291
|
+
"text-right": e.textAlign === "right",
|
|
1292
|
+
"form-control": !0,
|
|
1293
|
+
"f-utils-fill": !0
|
|
1294
|
+
})), m = B(() => ({
|
|
1295
|
+
"input-group": !0,
|
|
1296
|
+
"f-state-disable": e.disable,
|
|
1297
|
+
"f-state-editable": e.editable && !e.disable && !e.readonly,
|
|
1298
|
+
"f-state-readonly": e.readonly && !e.disable,
|
|
1299
|
+
"f-state-focus": d.value
|
|
290
1300
|
}));
|
|
1301
|
+
function v(C, j = !0) {
|
|
1302
|
+
o.value !== C && (o.value = C, j && t.emit("change", C), t.emit("update:modelValue", C));
|
|
1303
|
+
}
|
|
1304
|
+
function P(C) {
|
|
1305
|
+
c.value = !1, v(C, !0);
|
|
1306
|
+
}
|
|
1307
|
+
W(
|
|
1308
|
+
() => e.modelValue,
|
|
1309
|
+
(C) => {
|
|
1310
|
+
o.value = C, t.emit("change", C);
|
|
1311
|
+
}
|
|
1312
|
+
);
|
|
1313
|
+
function F(C) {
|
|
1314
|
+
r = !1, t.emit("blur", C), C.stopPropagation();
|
|
1315
|
+
}
|
|
1316
|
+
function x(C) {
|
|
1317
|
+
t.emit("click", C);
|
|
1318
|
+
}
|
|
1319
|
+
function y(C) {
|
|
1320
|
+
if (e.disable) {
|
|
1321
|
+
r = !0;
|
|
1322
|
+
return;
|
|
1323
|
+
}
|
|
1324
|
+
r = !0, f.value || (t.emit("focus", C), u.value && !c.value && n.popup());
|
|
1325
|
+
}
|
|
1326
|
+
function S(C) {
|
|
1327
|
+
t.emit("input", C.target.value);
|
|
1328
|
+
const j = C.target.value;
|
|
1329
|
+
l.value = j, o.value !== j && v(j, !1), i.value && !c.value && n.popup();
|
|
1330
|
+
}
|
|
1331
|
+
function I(C) {
|
|
1332
|
+
C.target.tagName !== "INPUT" && C.preventDefault(), C.stopPropagation();
|
|
1333
|
+
}
|
|
1334
|
+
function k(C) {
|
|
1335
|
+
t.emit("keydown", C);
|
|
1336
|
+
}
|
|
1337
|
+
function E(C) {
|
|
1338
|
+
C.key === "Enter" && (i.value || u.value) && n.hidePopup(), t.emit("keyup", C);
|
|
1339
|
+
}
|
|
1340
|
+
function L(C) {
|
|
1341
|
+
const j = C.target.value;
|
|
1342
|
+
C.stopPropagation(), v(j);
|
|
1343
|
+
}
|
|
291
1344
|
return {
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
1345
|
+
hasFocusedTextBox: d,
|
|
1346
|
+
isTextBoxReadonly: f,
|
|
1347
|
+
textBoxClass: b,
|
|
1348
|
+
textBoxPlaceholder: s,
|
|
1349
|
+
textBoxTitle: h,
|
|
1350
|
+
inputGroupClass: m,
|
|
1351
|
+
changeTextBoxValue: v,
|
|
1352
|
+
commitValue: P,
|
|
1353
|
+
onBlurTextBox: F,
|
|
1354
|
+
onClickTextBox: x,
|
|
1355
|
+
onFocusTextBox: y,
|
|
1356
|
+
onInput: S,
|
|
1357
|
+
onKeyDownTextBox: k,
|
|
1358
|
+
onKeyUpTextBox: E,
|
|
1359
|
+
onMouseDownTextBox: I,
|
|
1360
|
+
onTextBoxValueChange: L
|
|
299
1361
|
};
|
|
300
1362
|
}
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
const {
|
|
307
|
-
name: l,
|
|
308
|
-
optionClass: u,
|
|
309
|
-
rowStyle: t,
|
|
310
|
-
multiSelect: a,
|
|
311
|
-
onOptionClick: o,
|
|
312
|
-
isChecked: i,
|
|
313
|
-
defaultOptionSlot: d
|
|
314
|
-
} = oe(e);
|
|
315
|
-
return () => f("li", {
|
|
316
|
-
style: t.value,
|
|
317
|
-
class: u.value,
|
|
318
|
-
onClick: _(o, ["prevent", "stop"])
|
|
319
|
-
}, [a.value && f("div", {
|
|
320
|
-
class: "custom-control custom-checkbox custom-control-inline",
|
|
321
|
-
style: "margin:0;padding-right:0;float:none;vertical-align: top;"
|
|
322
|
-
}, [G(f("input", {
|
|
323
|
-
class: "custom-control-input",
|
|
324
|
-
type: "checkbox",
|
|
325
|
-
title: "custom-input",
|
|
326
|
-
disabled: e.disabled,
|
|
327
|
-
"onUpdate:modelValue": (s) => i.value = s
|
|
328
|
-
}, null), [[J, i.value]]), f("label", {
|
|
329
|
-
class: "custom-control-label"
|
|
330
|
-
}, null)]), f("span", {
|
|
331
|
-
class: "f-datalist-item-text"
|
|
332
|
-
}, [d ? d({
|
|
333
|
-
name: l.value
|
|
334
|
-
}) : l.value])]);
|
|
335
|
-
}
|
|
336
|
-
}), re = /* @__PURE__ */ N({
|
|
337
|
-
name: "FOptions",
|
|
338
|
-
props: ee,
|
|
339
|
-
emits: [],
|
|
340
|
-
setup(e, n) {
|
|
341
|
-
const {
|
|
342
|
-
valueField: l = "id",
|
|
343
|
-
textField: u = "label"
|
|
344
|
-
} = ue();
|
|
345
|
-
return () => {
|
|
346
|
-
var t;
|
|
347
|
-
return f("ul", {
|
|
348
|
-
class: "list-group list-group-flush"
|
|
349
|
-
}, [(t = e == null ? void 0 : e.options) == null ? void 0 : t.map((a) => f(ie, {
|
|
350
|
-
value: a[l],
|
|
351
|
-
name: a[u],
|
|
352
|
-
disabled: a.disabled
|
|
353
|
-
}, null))]);
|
|
354
|
-
};
|
|
1363
|
+
function Pt(e, t, o) {
|
|
1364
|
+
const l = a(), n = a(!1);
|
|
1365
|
+
function i() {
|
|
1366
|
+
const s = l.value;
|
|
1367
|
+
s && s.show(o.value);
|
|
355
1368
|
}
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
1369
|
+
async function u() {
|
|
1370
|
+
!!t.slots.default && (n.value = !n.value, await K(), i());
|
|
1371
|
+
}
|
|
1372
|
+
async function c() {
|
|
1373
|
+
!!t.slots.default && (n.value = !0, await K(), i());
|
|
1374
|
+
}
|
|
1375
|
+
function h() {
|
|
1376
|
+
n.value = !1;
|
|
1377
|
+
}
|
|
1378
|
+
return { hidePopup: h, popup: c, shouldPopupContent: n, togglePopup: u, popoverRef: l };
|
|
1379
|
+
}
|
|
1380
|
+
function Mt(e, t, o) {
|
|
1381
|
+
const {
|
|
1382
|
+
isTextBoxReadonly: l,
|
|
1383
|
+
textBoxClass: n,
|
|
1384
|
+
textBoxPlaceholder: i,
|
|
1385
|
+
textBoxTitle: u,
|
|
1386
|
+
onBlurTextBox: c,
|
|
1387
|
+
onClickTextBox: h,
|
|
1388
|
+
onFocusTextBox: s,
|
|
1389
|
+
onInput: f,
|
|
1390
|
+
onKeyDownTextBox: r,
|
|
1391
|
+
onKeyUpTextBox: d,
|
|
1392
|
+
onMouseDownTextBox: b,
|
|
1393
|
+
onTextBoxValueChange: m
|
|
1394
|
+
} = o;
|
|
1395
|
+
return () => p("input", {
|
|
1396
|
+
name: "input-group-value",
|
|
1397
|
+
autocomplete: e.autoComplete ? "on" : "off",
|
|
1398
|
+
class: n.value,
|
|
1399
|
+
disabled: e.disable,
|
|
1400
|
+
maxlength: e.maxLength,
|
|
1401
|
+
minlength: e.minLength,
|
|
1402
|
+
placeholder: i.value,
|
|
1403
|
+
readonly: l.value,
|
|
1404
|
+
tabindex: e.tabIndex,
|
|
1405
|
+
title: u.value,
|
|
1406
|
+
type: e.inputType,
|
|
1407
|
+
value: t.value,
|
|
1408
|
+
onBlur: c,
|
|
1409
|
+
onChange: m,
|
|
1410
|
+
onClick: h,
|
|
1411
|
+
onFocus: s,
|
|
1412
|
+
onInput: f,
|
|
1413
|
+
onKeydown: r,
|
|
1414
|
+
onKeyup: d,
|
|
1415
|
+
onMousedown: b
|
|
1416
|
+
}, null);
|
|
1417
|
+
}
|
|
1418
|
+
const Ft = {
|
|
1419
|
+
activeTag: { Type: String, default: "" },
|
|
1420
|
+
addButtonText: { Type: String, default: "" },
|
|
1421
|
+
customClass: { Type: String, default: "" },
|
|
1422
|
+
customStyle: { Type: String, default: "" },
|
|
1423
|
+
data: { type: Array, default: [] },
|
|
1424
|
+
enableAddButton: { Type: Boolean, default: !1 },
|
|
1425
|
+
placeholder: { Type: String, default: "" },
|
|
1426
|
+
selectable: { Type: Boolean, default: !1 },
|
|
1427
|
+
showAddButton: { Type: Boolean, default: !1 },
|
|
1428
|
+
showClose: { Type: Boolean, default: !1 },
|
|
1429
|
+
showColor: { Type: Boolean, default: !1 },
|
|
1430
|
+
showInput: { Type: Boolean, default: !1 },
|
|
1431
|
+
tagType: { Type: String, default: "" },
|
|
1432
|
+
tagStyle: { Type: String, default: "" },
|
|
1433
|
+
wrapText: { Type: Boolean, default: !1 },
|
|
1434
|
+
draggable: { Type: Boolean, default: !1 }
|
|
1435
|
+
};
|
|
1436
|
+
function Ot(e, t, o, l) {
|
|
1437
|
+
const n = a(-1), i = a(!1);
|
|
1438
|
+
function u(f, r, d) {
|
|
1439
|
+
f.stopPropagation(), r && setTimeout(() => {
|
|
1440
|
+
n.value = d, i.value = !0, r.moving = !0;
|
|
1441
|
+
});
|
|
1442
|
+
}
|
|
1443
|
+
function c(f, r) {
|
|
1444
|
+
if (f.preventDefault(), n.value !== r) {
|
|
1445
|
+
const d = l.value[n.value], b = l.value;
|
|
1446
|
+
b.splice(n.value, 1), b.splice(r, 0, d), n.value = r;
|
|
381
1447
|
}
|
|
1448
|
+
}
|
|
1449
|
+
function h(f, r) {
|
|
1450
|
+
f.preventDefault(), f.dataTransfer && (f.dataTransfer.dropEffect = "move");
|
|
1451
|
+
}
|
|
1452
|
+
function s(f, r) {
|
|
1453
|
+
r && (r.moving = !1), o.value = l.value.filter((d) => d.type === "Tag").map((d) => d.payload), i.value = !1, t.emit("change", o.value);
|
|
1454
|
+
}
|
|
1455
|
+
return {
|
|
1456
|
+
dragstart: u,
|
|
1457
|
+
dragenter: c,
|
|
1458
|
+
dragover: h,
|
|
1459
|
+
dragend: s,
|
|
1460
|
+
isDragging: i
|
|
382
1461
|
};
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
1462
|
+
}
|
|
1463
|
+
const Vt = /* @__PURE__ */ G({
|
|
1464
|
+
name: "FTags",
|
|
1465
|
+
props: Ft,
|
|
1466
|
+
emits: ["remove", "selectionChange", "change"],
|
|
1467
|
+
setup(e, t) {
|
|
1468
|
+
const o = a(e.selectable), l = a(e.customClass), n = a(e.data), i = a(e.tagType), u = a(e.tagStyle), c = a(e.showColor), h = a(e.activeTag), s = a(e.customStyle), f = a(e.showClose), r = a(e.showAddButton), d = a(e.showInput), b = a(e.addButtonText), m = a(e.enableAddButton);
|
|
1469
|
+
a(e.placeholder), a(""), a();
|
|
1470
|
+
const v = a(), P = a(e.wrapText), F = a();
|
|
1471
|
+
function x() {
|
|
1472
|
+
const g = n.value.map((w) => ({
|
|
1473
|
+
type: "Tag",
|
|
1474
|
+
payload: w
|
|
1475
|
+
}));
|
|
1476
|
+
return r.value && g.push({
|
|
1477
|
+
type: "AddButton"
|
|
1478
|
+
}), g;
|
|
1479
|
+
}
|
|
1480
|
+
const y = a(x());
|
|
1481
|
+
function S(g) {
|
|
1482
|
+
n.value = g, y.value = x();
|
|
1483
|
+
}
|
|
1484
|
+
const I = B(() => y.value.findIndex((g) => g.type === "Input")), k = Ot(e, t, n, y), {
|
|
1485
|
+
dragstart: E,
|
|
1486
|
+
dragenter: L,
|
|
1487
|
+
dragover: C,
|
|
1488
|
+
dragend: j
|
|
1489
|
+
} = k;
|
|
1490
|
+
W(() => e.data, (g) => S(g));
|
|
1491
|
+
const V = B(() => {
|
|
1492
|
+
const g = {
|
|
1493
|
+
"farris-tags": !0,
|
|
1494
|
+
"farris-tags-checkable": o.value,
|
|
1495
|
+
"farris-tags-nowrap": !P.value
|
|
1496
|
+
};
|
|
1497
|
+
return l.value.split(" ").reduce((w, T) => (w[T] = !0, w), g), g;
|
|
1498
|
+
});
|
|
1499
|
+
function R(g) {
|
|
1500
|
+
const w = {
|
|
1501
|
+
"farris-tag-item": !0,
|
|
1502
|
+
"farris-tag-item-checked": o.value && g.checked,
|
|
1503
|
+
"farris-tag-item-checkable": o.value,
|
|
1504
|
+
"farris-tag-item-has-color": c.value,
|
|
1505
|
+
"farris-tag-item-actived": h.value === g.name
|
|
1506
|
+
};
|
|
1507
|
+
if (i.value) {
|
|
1508
|
+
const T = `farris-tag-item-${i.value}`;
|
|
1509
|
+
w[T] = !0;
|
|
390
1510
|
}
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
1511
|
+
return w;
|
|
1512
|
+
}
|
|
1513
|
+
const z = B(() => {
|
|
1514
|
+
const g = {};
|
|
1515
|
+
return s.value && s.value.split(";").reduce((w, T) => {
|
|
1516
|
+
const H = T.split(":");
|
|
1517
|
+
return w[H[0]] = H[1], w;
|
|
1518
|
+
}, g), g;
|
|
1519
|
+
});
|
|
1520
|
+
function D(g, w) {
|
|
1521
|
+
o.value && w.selectable && (w.checked = !w.checked, h.value = w.checked ? w.name : "", w.checked && n.value.filter((T) => T.name !== w.name).forEach((T) => {
|
|
1522
|
+
T.checked = !w.checked;
|
|
1523
|
+
}), t.emit("change", n.value), t.emit("selectionChange", w));
|
|
1524
|
+
}
|
|
1525
|
+
function O(g, w) {
|
|
1526
|
+
let T;
|
|
1527
|
+
switch (g.key) {
|
|
1528
|
+
case "Backspace":
|
|
1529
|
+
n.value = n.value.filter((H) => H.name !== w.name), t.emit("change", n.value);
|
|
1530
|
+
break;
|
|
1531
|
+
case "ArrowLeft":
|
|
1532
|
+
T = Math.max(v.value.scrollLeft + 20, 0), v.value.scrollLeft = T;
|
|
1533
|
+
break;
|
|
1534
|
+
case "ArrowRight":
|
|
1535
|
+
T = Math.max(v.value.scrollLeft - 20, 0), v.value.scrollLeft = T;
|
|
1536
|
+
}
|
|
1537
|
+
}
|
|
1538
|
+
function M(g, w) {
|
|
1539
|
+
const T = n.value.findIndex((H) => H.name === w.name);
|
|
1540
|
+
if (T > -1) {
|
|
1541
|
+
const [H] = n.value.splice(T, 1);
|
|
1542
|
+
y.value = x(), t.emit("change", n.value), t.emit("remove", n.value, H, T);
|
|
1543
|
+
}
|
|
1544
|
+
g.stopPropagation();
|
|
1545
|
+
}
|
|
1546
|
+
const A = B(() => ({
|
|
1547
|
+
"farris-tag-item": !0,
|
|
1548
|
+
"farris-tag-add-button": !0,
|
|
1549
|
+
"farris-tag-add-button-disabled": !m.value
|
|
1550
|
+
}));
|
|
1551
|
+
function $(g) {
|
|
1552
|
+
}
|
|
1553
|
+
function _() {
|
|
1554
|
+
return p("li", {
|
|
1555
|
+
class: A.value,
|
|
1556
|
+
onClick: (g) => void 0
|
|
1557
|
+
}, [p("span", {
|
|
1558
|
+
class: "f-icon f-icon-amplification"
|
|
1559
|
+
}, null), p("span", {
|
|
1560
|
+
class: "farris-tag-add-text"
|
|
1561
|
+
}, [b.value])]);
|
|
1562
|
+
}
|
|
1563
|
+
function N(g) {
|
|
1564
|
+
if (g && !g.innerText) {
|
|
1565
|
+
const w = I.value;
|
|
1566
|
+
if (w > 0) {
|
|
1567
|
+
const [T] = n.value.splice(w - 1, 1);
|
|
1568
|
+
y.value.splice(w - 1, 1), t.emit("remove", n.value, T, w - 1);
|
|
403
1569
|
}
|
|
404
|
-
|
|
405
|
-
}
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
1570
|
+
}
|
|
1571
|
+
}
|
|
1572
|
+
function U(g, w, T) {
|
|
1573
|
+
g > -1 && (n.value.splice(g, 0, {
|
|
1574
|
+
name: w,
|
|
1575
|
+
value: T,
|
|
1576
|
+
selectable: o.value
|
|
1577
|
+
}), y.value = x(), t.emit("change", n.value));
|
|
1578
|
+
}
|
|
1579
|
+
function J(g) {
|
|
1580
|
+
if (g && g.innerText) {
|
|
1581
|
+
const w = g.innerText, T = I.value;
|
|
1582
|
+
U(T, w, w), g.innerText = "";
|
|
1583
|
+
}
|
|
1584
|
+
}
|
|
1585
|
+
function Y(g) {
|
|
1586
|
+
const w = g.target;
|
|
1587
|
+
w && (w.innerText ? J(w) : t.emit("change", n.value));
|
|
1588
|
+
}
|
|
1589
|
+
function be(g) {
|
|
1590
|
+
g.key === "Enter" && J(g.target), g.key === "Backspace" && (N(g.target), K(() => {
|
|
1591
|
+
F.value && F.value.focus();
|
|
1592
|
+
}));
|
|
1593
|
+
}
|
|
1594
|
+
function Ce() {
|
|
1595
|
+
return p("li", {
|
|
1596
|
+
class: "farris-tag-input-box"
|
|
1597
|
+
}, [p("div", {
|
|
1598
|
+
ref: F,
|
|
1599
|
+
class: "form-control",
|
|
1600
|
+
contenteditable: "true",
|
|
1601
|
+
onKeyup: be,
|
|
1602
|
+
onBlur: Y
|
|
1603
|
+
}, null)]);
|
|
1604
|
+
}
|
|
1605
|
+
function we(g, w) {
|
|
1606
|
+
return p("li", {
|
|
1607
|
+
class: R(g),
|
|
1608
|
+
style: z.value,
|
|
1609
|
+
tabindex: 0,
|
|
1610
|
+
id: g.name,
|
|
1611
|
+
key: g.name,
|
|
1612
|
+
onClick: (T) => D(T, g),
|
|
1613
|
+
onKeydown: (T) => O(T, g),
|
|
1614
|
+
draggable: "true",
|
|
1615
|
+
onDragstart: (T) => E(T, g, w),
|
|
1616
|
+
onDragenter: (T) => L(T, w),
|
|
1617
|
+
onDragend: (T) => j(T, g),
|
|
1618
|
+
onDragover: (T) => C(T, w)
|
|
1619
|
+
}, [p("div", {
|
|
1620
|
+
title: g.name,
|
|
1621
|
+
class: "tag-box"
|
|
1622
|
+
}, [g.name]), f.value && p("span", {
|
|
1623
|
+
class: "tag-delete"
|
|
1624
|
+
}, [p("i", {
|
|
1625
|
+
class: "f-icon f-icon-close",
|
|
1626
|
+
onClick: (T) => M(T, g)
|
|
1627
|
+
}, null)])]);
|
|
1628
|
+
}
|
|
1629
|
+
function Se() {
|
|
1630
|
+
return y.value.map((g, w) => {
|
|
1631
|
+
switch (g.type) {
|
|
1632
|
+
case "Tag":
|
|
1633
|
+
return we(g.payload, w);
|
|
1634
|
+
case "AddButton":
|
|
1635
|
+
return _();
|
|
1636
|
+
case "Input":
|
|
1637
|
+
return Ce();
|
|
1638
|
+
}
|
|
1639
|
+
});
|
|
1640
|
+
}
|
|
1641
|
+
const Te = B(() => ({
|
|
1642
|
+
"farris-tags-item-container": !0,
|
|
1643
|
+
"farris-tag-item-capsule": u.value === "capsule"
|
|
1644
|
+
}));
|
|
1645
|
+
function Be(g) {
|
|
1646
|
+
const w = Math.max(v.value.scrollLeft - g.deltaX, 0);
|
|
1647
|
+
v.value.scrollLeft = w;
|
|
1648
|
+
}
|
|
1649
|
+
function Ie(g) {
|
|
1650
|
+
const w = v.value, T = n.value.length - 1;
|
|
1651
|
+
if (w) {
|
|
1652
|
+
const H = Array.from(w.children).filter((X) => X.className.indexOf("farris-tag-item") > -1).findIndex((X) => {
|
|
1653
|
+
const q = X.getBoundingClientRect(), Z = window.getComputedStyle(X), ue = parseInt(Z["margin-left"], 10) + q.width + parseInt(Z["margin-right"], 10);
|
|
1654
|
+
return q.left + ue > g;
|
|
1655
|
+
});
|
|
1656
|
+
if (H > -1)
|
|
1657
|
+
return H;
|
|
1658
|
+
}
|
|
1659
|
+
return T;
|
|
1660
|
+
}
|
|
1661
|
+
function ke(g) {
|
|
1662
|
+
if (d.value) {
|
|
1663
|
+
const T = Ie(g.clientX) + 1, X = y.value.filter((q) => q.type !== "Input");
|
|
1664
|
+
X.splice(T, 0, {
|
|
1665
|
+
type: "Input"
|
|
1666
|
+
}), y.value = X, K(() => {
|
|
1667
|
+
F.value && F.value.focus();
|
|
1668
|
+
});
|
|
1669
|
+
}
|
|
1670
|
+
}
|
|
1671
|
+
function xe(g) {
|
|
1672
|
+
var T;
|
|
1673
|
+
g.preventDefault(), g.stopPropagation();
|
|
1674
|
+
const w = (T = g.dataTransfer) == null ? void 0 : T.getData("Text");
|
|
1675
|
+
if (w) {
|
|
1676
|
+
const H = w.split(":"), X = H[0], q = H[1];
|
|
1677
|
+
[...n.value].findIndex((ee) => (console.log(`${ee.value} === ${q} is ${ee.value === q}`), ee.value === q)) > -1 || U(n.value.length, X, q);
|
|
1678
|
+
}
|
|
1679
|
+
}
|
|
1680
|
+
function Pe(g) {
|
|
1681
|
+
g.preventDefault();
|
|
1682
|
+
}
|
|
1683
|
+
return () => p("div", {
|
|
1684
|
+
class: V.value,
|
|
1685
|
+
onClick: ke,
|
|
1686
|
+
onDrop: xe,
|
|
1687
|
+
onDragover: Pe
|
|
1688
|
+
}, [p("ul", {
|
|
1689
|
+
ref: v,
|
|
1690
|
+
class: Te.value,
|
|
1691
|
+
onWheel: (g) => Be(g)
|
|
1692
|
+
}, [Se()])]);
|
|
1693
|
+
}
|
|
1694
|
+
});
|
|
1695
|
+
function Lt(e, t, o) {
|
|
1696
|
+
const l = a(e.separator), {
|
|
1697
|
+
changeTextBoxValue: n
|
|
1698
|
+
} = o, i = B(() => t.value ? t.value.split(l.value).map((c) => ({
|
|
1699
|
+
name: c,
|
|
1700
|
+
selectable: !0
|
|
1701
|
+
})) : []);
|
|
1702
|
+
function u(c) {
|
|
1703
|
+
n(c.map((h) => h.name).join(l.value), !0);
|
|
1704
|
+
}
|
|
1705
|
+
return () => p(Vt, {
|
|
1706
|
+
class: "form-control",
|
|
1707
|
+
data: i.value,
|
|
1708
|
+
showClose: !0,
|
|
1709
|
+
showInput: !0,
|
|
1710
|
+
onChange: u
|
|
1711
|
+
}, null);
|
|
1712
|
+
}
|
|
1713
|
+
function Dt(e, t, o) {
|
|
1714
|
+
const {
|
|
1715
|
+
buttonClass: l,
|
|
1716
|
+
onClickButton: n,
|
|
1717
|
+
onMouseEnterButton: i,
|
|
1718
|
+
onMouseLeaveButton: u
|
|
1719
|
+
} = t, {
|
|
1720
|
+
enableClearButton: c,
|
|
1721
|
+
showClearButton: h,
|
|
1722
|
+
onClearValue: s
|
|
1723
|
+
} = o;
|
|
1724
|
+
return () => p("div", {
|
|
1725
|
+
class: l.value
|
|
1726
|
+
}, [c.value && Q(p("span", {
|
|
1727
|
+
class: "input-group-text input-group-clear",
|
|
1728
|
+
onClick: s
|
|
1729
|
+
}, [p("i", {
|
|
1730
|
+
class: "f-icon modal_close"
|
|
1731
|
+
}, null)]), [[ve, h.value]]), e.buttonContent && p("span", {
|
|
1732
|
+
class: "input-group-text input-group-append-button",
|
|
1733
|
+
innerHTML: e.buttonContent,
|
|
1734
|
+
onClick: n,
|
|
1735
|
+
onMouseenter: i,
|
|
1736
|
+
onMouseleave: u
|
|
1737
|
+
}, null)]);
|
|
1738
|
+
}
|
|
1739
|
+
const jt = {
|
|
1740
|
+
title: { type: String },
|
|
1741
|
+
placement: { type: String, default: "bottom" },
|
|
1742
|
+
reference: {
|
|
1743
|
+
type: Object
|
|
1744
|
+
},
|
|
1745
|
+
host: {
|
|
1746
|
+
type: Object
|
|
1747
|
+
},
|
|
1748
|
+
leftBoundary: {
|
|
1749
|
+
type: Object
|
|
1750
|
+
},
|
|
1751
|
+
rightBoundary: {
|
|
1752
|
+
type: Object
|
|
1753
|
+
},
|
|
1754
|
+
visible: { type: Boolean, default: !1 },
|
|
1755
|
+
class: { type: String },
|
|
1756
|
+
offsetX: { type: Object, default: a(0) },
|
|
1757
|
+
zIndex: { type: Number, default: -1 },
|
|
1758
|
+
keepWidthWithReference: { type: Boolean, default: !1 },
|
|
1759
|
+
fitContent: { type: Boolean, default: !1 },
|
|
1760
|
+
minWidth: { type: Number, default: -1 }
|
|
1761
|
+
};
|
|
1762
|
+
function Rt(e) {
|
|
1763
|
+
const t = e.host ? e.host : "body", o = B(() => t === "body" ? 0 : t ? t.getBoundingClientRect().top : 0), l = B(() => t === "body" ? 0 : t ? t.getBoundingClientRect().left : 0), n = B(() => t === "body" ? document.body.getBoundingClientRect().width : t ? t.getBoundingClientRect().width - (e.rightBoundary ? e.rightBoundary.getBoundingClientRect().width : 0) : document.body.getBoundingClientRect().width);
|
|
1764
|
+
return { host: t, hostLeft: l, hostTop: o, hostWidth: n };
|
|
414
1765
|
}
|
|
415
|
-
function
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
1766
|
+
function At(e, t, o, l) {
|
|
1767
|
+
var D;
|
|
1768
|
+
const n = a(0), i = a(((D = e.offsetX) == null ? void 0 : D.value) || 0), u = a(-1), c = a(-1), h = a(-1), s = a(e.placement), f = a(0), r = a(0), d = a(0), b = a(document.documentElement.scrollLeft), m = a(document.documentElement.scrollTop), { hostLeft: v, hostTop: P, hostWidth: F } = l;
|
|
1769
|
+
W(e.offsetX, (O) => {
|
|
1770
|
+
n.value = O - i.value;
|
|
1771
|
+
});
|
|
1772
|
+
const x = B(() => {
|
|
1773
|
+
const O = {
|
|
1774
|
+
left: `${r.value}px`,
|
|
1775
|
+
top: `${d.value}px`,
|
|
1776
|
+
transform: `translateX(${n.value}px)`
|
|
1777
|
+
};
|
|
1778
|
+
return e.zIndex !== -1 && (O["z-index"] = e.zIndex), u.value !== -1 && (O.width = `${u.value}px`), O;
|
|
1779
|
+
}), y = B(() => ({
|
|
1780
|
+
left: `${f.value}px`
|
|
1781
|
+
}));
|
|
1782
|
+
function S(O) {
|
|
1783
|
+
if (O && e.keepWidthWithReference) {
|
|
1784
|
+
const M = O.getBoundingClientRect();
|
|
1785
|
+
u.value = Math.max(e.minWidth, M.width);
|
|
1786
|
+
}
|
|
1787
|
+
}
|
|
1788
|
+
function I(O, M) {
|
|
1789
|
+
const A = F.value - O.width - 4;
|
|
1790
|
+
return A > 0 ? A : M;
|
|
1791
|
+
}
|
|
1792
|
+
function k(O, M, A) {
|
|
1793
|
+
const $ = f.value, _ = M.left - v.value + M.width / 2 + b.value, N = M.top - P.value - (O.height + A.height) + m.value;
|
|
1794
|
+
return { popoverLeft: _, popoverTop: N, arrowLeft: $ };
|
|
1795
|
+
}
|
|
1796
|
+
function E(O, M, A) {
|
|
1797
|
+
return M.top - P.value + (M.height + A.height) + m.value;
|
|
419
1798
|
}
|
|
420
|
-
function
|
|
421
|
-
|
|
1799
|
+
function L(O, M) {
|
|
1800
|
+
const A = I(M, O), $ = O <= A ? f.value : O - A;
|
|
1801
|
+
return { popoverLeft: Math.min(O, A), arrowLeft: $ };
|
|
422
1802
|
}
|
|
423
|
-
function
|
|
1803
|
+
function C(O, M, A) {
|
|
1804
|
+
const $ = M.left - v.value + M.width / 2 - (A.width / 2 - (O.left - v.value)) + b.value, { arrowLeft: _, popoverLeft: N } = L($, O), U = E(O, M, A);
|
|
1805
|
+
return { popoverLeft: N, popoverTop: U, arrowLeft: _ };
|
|
1806
|
+
}
|
|
1807
|
+
function j(O, M, A) {
|
|
1808
|
+
const $ = M.left - v.value + b.value, { arrowLeft: _, popoverLeft: N } = L($, O), U = E(O, M, A);
|
|
1809
|
+
return { popoverLeft: N, popoverTop: U, arrowLeft: _ };
|
|
1810
|
+
}
|
|
1811
|
+
const V = /* @__PURE__ */ new Map([
|
|
1812
|
+
["top", k],
|
|
1813
|
+
["bottom", C],
|
|
1814
|
+
["bottom-left", j]
|
|
1815
|
+
]);
|
|
1816
|
+
function R(O) {
|
|
1817
|
+
var N;
|
|
1818
|
+
const M = O.getBoundingClientRect();
|
|
1819
|
+
c.value = M.top, h.value = M.left;
|
|
1820
|
+
const A = t.value.getBoundingClientRect(), $ = (N = o.value) == null ? void 0 : N.getBoundingClientRect(), _ = V.get(s.value);
|
|
1821
|
+
if (_) {
|
|
1822
|
+
const { arrowLeft: U, popoverLeft: J, popoverTop: Y } = _($, M, A);
|
|
1823
|
+
f.value = U, r.value = J, d.value = Y;
|
|
1824
|
+
}
|
|
1825
|
+
e.keepWidthWithReference && S(O);
|
|
424
1826
|
}
|
|
425
|
-
function
|
|
1827
|
+
function z(O) {
|
|
1828
|
+
if (O) {
|
|
1829
|
+
const M = O.getBoundingClientRect();
|
|
1830
|
+
(M.left !== h.value || M.top !== c.value) && R(O);
|
|
1831
|
+
}
|
|
426
1832
|
}
|
|
427
1833
|
return {
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
1834
|
+
arrowStyle: y,
|
|
1835
|
+
popoverStyle: x,
|
|
1836
|
+
position: s,
|
|
1837
|
+
popoverWidth: u,
|
|
1838
|
+
fitToReference: S,
|
|
1839
|
+
followToReferencePosition: z,
|
|
1840
|
+
locateToReference: R
|
|
432
1841
|
};
|
|
433
1842
|
}
|
|
434
|
-
function
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
1843
|
+
function Et(e, t, o, l, n, i, u) {
|
|
1844
|
+
const c = a(e.visible), h = B(() => c.value), { fitToReference: s, locateToReference: f } = u;
|
|
1845
|
+
let r;
|
|
1846
|
+
function d() {
|
|
1847
|
+
c.value = !1, document.body.removeEventListener("click", r), t.emit("hidden");
|
|
1848
|
+
}
|
|
1849
|
+
r = (m) => {
|
|
1850
|
+
if (!n.value.contains(m.target)) {
|
|
1851
|
+
const v = n.value.closest(".popover");
|
|
1852
|
+
v && v.removeEventListener("click", r), d();
|
|
1853
|
+
}
|
|
440
1854
|
};
|
|
1855
|
+
async function b(m) {
|
|
1856
|
+
if (l.value && o.value && m) {
|
|
1857
|
+
c.value = !0, n.value = m, await K(), f(m), i.value && s(m), document.body.addEventListener("click", r);
|
|
1858
|
+
const v = m.closest(".popover");
|
|
1859
|
+
v && v.addEventListener("click", r), t.emit("shown");
|
|
1860
|
+
}
|
|
1861
|
+
}
|
|
1862
|
+
return t.expose({ hide: d, show: b, shown: h }), { showPopover: c, hidePopverOnClickBodyHandler: r };
|
|
441
1863
|
}
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
}
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
} =
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
1864
|
+
function Ht(e, t, o, l, n) {
|
|
1865
|
+
const { popoverWidth: i, fitToReference: u, followToReferencePosition: c } = n;
|
|
1866
|
+
function h() {
|
|
1867
|
+
if (o.value) {
|
|
1868
|
+
c(o.value);
|
|
1869
|
+
const s = o.value.getBoundingClientRect();
|
|
1870
|
+
l.value && s.width !== i.value && u(o.value);
|
|
1871
|
+
}
|
|
1872
|
+
}
|
|
1873
|
+
return { onResize: h };
|
|
1874
|
+
}
|
|
1875
|
+
const Wt = /* @__PURE__ */ G({
|
|
1876
|
+
name: "FPopover",
|
|
1877
|
+
props: jt,
|
|
1878
|
+
emits: ["shown", "hidden"],
|
|
1879
|
+
setup(e, t) {
|
|
1880
|
+
const o = a(), l = a(), n = a(e.reference), i = a(e.keepWidthWithReference), u = B(() => !!e.title), c = Rt(e), {
|
|
1881
|
+
host: h
|
|
1882
|
+
} = c, s = At(e, o, l, c), {
|
|
1883
|
+
position: f,
|
|
1884
|
+
arrowStyle: r,
|
|
1885
|
+
popoverStyle: d,
|
|
1886
|
+
fitToReference: b,
|
|
1887
|
+
locateToReference: m
|
|
1888
|
+
} = s, {
|
|
1889
|
+
showPopover: v,
|
|
1890
|
+
hidePopverOnClickBodyHandler: P
|
|
1891
|
+
} = Et(e, t, o, l, n, i, s), {
|
|
1892
|
+
onResize: F
|
|
1893
|
+
} = Ht(e, t, n, i, s), x = B(() => {
|
|
1894
|
+
const S = `popover in popover-${f.value}`, I = `bs-popover-${f.value}`, k = {
|
|
1895
|
+
"popover-fitcontent": e.fitContent
|
|
1896
|
+
};
|
|
1897
|
+
return k[S] = !0, k[I] = !0, (e.class || "").split(" ").reduce((L, C) => (L[C] = !0, L), k), k;
|
|
1898
|
+
}), y = B(() => ({
|
|
1899
|
+
"popover-content": !0,
|
|
1900
|
+
"popover-body": !0
|
|
1901
|
+
}));
|
|
1902
|
+
return ne(() => {
|
|
1903
|
+
e.reference && m(n.value), i.value && b(n.value), window.addEventListener("resize", F);
|
|
1904
|
+
}), fe(() => {
|
|
1905
|
+
document.body.removeEventListener("click", P), window.removeEventListener("resize", F);
|
|
1906
|
+
}), () => p(de, {
|
|
1907
|
+
to: h
|
|
475
1908
|
}, {
|
|
476
|
-
default: () =>
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
}
|
|
495
|
-
options: s.value
|
|
496
|
-
}, null)])])])]
|
|
1909
|
+
default: () => {
|
|
1910
|
+
var S;
|
|
1911
|
+
return [Q(p("div", {
|
|
1912
|
+
ref: l,
|
|
1913
|
+
class: x.value,
|
|
1914
|
+
style: d.value,
|
|
1915
|
+
onClick: (I) => {
|
|
1916
|
+
I.stopPropagation();
|
|
1917
|
+
}
|
|
1918
|
+
}, [p("div", {
|
|
1919
|
+
ref: o,
|
|
1920
|
+
class: "popover-arrow arrow",
|
|
1921
|
+
style: r.value
|
|
1922
|
+
}, null), u.value && p("h3", {
|
|
1923
|
+
class: "popover-title popover-header"
|
|
1924
|
+
}, [e.title]), p("div", {
|
|
1925
|
+
class: y.value
|
|
1926
|
+
}, [t.slots.default && ((S = t.slots) == null ? void 0 : S.default())])]), [[ve, v.value]])];
|
|
1927
|
+
}
|
|
497
1928
|
});
|
|
498
1929
|
}
|
|
499
|
-
})
|
|
1930
|
+
});
|
|
1931
|
+
function _t(e, t, o) {
|
|
1932
|
+
const l = a(e.popupMinWidth), {
|
|
1933
|
+
hidePopup: n,
|
|
1934
|
+
popoverRef: i
|
|
1935
|
+
} = o;
|
|
1936
|
+
return () => p(Wt, {
|
|
1937
|
+
ref: i,
|
|
1938
|
+
visible: !0,
|
|
1939
|
+
placement: "bottom-left",
|
|
1940
|
+
host: e.popupHost,
|
|
1941
|
+
"keep-width-with-reference": !0,
|
|
1942
|
+
fitContent: !0,
|
|
1943
|
+
"right-boundary": e.popupRightBoundary,
|
|
1944
|
+
minWidth: l.value,
|
|
1945
|
+
offsetX: e.popupOffsetX,
|
|
1946
|
+
onHidden: n
|
|
1947
|
+
}, {
|
|
1948
|
+
default: () => {
|
|
1949
|
+
var u, c;
|
|
1950
|
+
return [(c = (u = t.slots).default) == null ? void 0 : c.call(u)];
|
|
1951
|
+
}
|
|
1952
|
+
});
|
|
1953
|
+
}
|
|
1954
|
+
const ye = /* @__PURE__ */ G({
|
|
1955
|
+
name: "FButtonEdit",
|
|
1956
|
+
props: he,
|
|
1957
|
+
emits: ["updateExtendInfo", "clear", "change", "click", "clickButton", "blur", "focus", "mouseEnterIcon", "mouseLeaveIcon", "keyup", "keydown", "inputClick", "input", "update:modelValue"],
|
|
1958
|
+
setup(e, t) {
|
|
1959
|
+
const o = a(), l = a(e.customClass), n = a(e.modelValue), i = Pt(e, t, o), {
|
|
1960
|
+
shouldPopupContent: u,
|
|
1961
|
+
hidePopup: c
|
|
1962
|
+
} = i, h = It(e, t, o, i), s = a(""), f = xt(e, t, n, s, i), {
|
|
1963
|
+
hasFocusedTextBox: r,
|
|
1964
|
+
commitValue: d,
|
|
1965
|
+
inputGroupClass: b
|
|
1966
|
+
} = f, m = kt(e, t, n, r, s, f), {
|
|
1967
|
+
onMouseEnterTextBox: v,
|
|
1968
|
+
onMouseLeaveTextBox: P
|
|
1969
|
+
} = m, F = B(() => {
|
|
1970
|
+
const E = {
|
|
1971
|
+
"f-button-edit": !0,
|
|
1972
|
+
"f-cmp-inputgroup": !0,
|
|
1973
|
+
"f-button-edit-nowrap": !e.wrapText
|
|
1974
|
+
};
|
|
1975
|
+
return l.value && l.value.split(" ").reduce((L, C) => (L[C] = !0, L), E), E;
|
|
1976
|
+
});
|
|
1977
|
+
function x() {
|
|
1978
|
+
return e.multiSelect && e.inputType === "tag" ? Lt(e, n, f) : Mt(e, n, f);
|
|
1979
|
+
}
|
|
1980
|
+
let y = x();
|
|
1981
|
+
W([() => e.multiSelect, () => e.inputType], () => {
|
|
1982
|
+
y = x();
|
|
1983
|
+
});
|
|
1984
|
+
const S = Dt(e, h, m), I = _t(e, t, i), k = {
|
|
1985
|
+
commitValue: d,
|
|
1986
|
+
elementRef: o,
|
|
1987
|
+
hidePopup: c
|
|
1988
|
+
};
|
|
1989
|
+
return ne(() => {
|
|
1990
|
+
o.value.componentInstance = k;
|
|
1991
|
+
}), t.expose(k), () => p(re, null, [p("div", Le(t.attrs, {
|
|
1992
|
+
ref: o,
|
|
1993
|
+
class: F.value,
|
|
1994
|
+
id: e.id
|
|
1995
|
+
}), [p("div", {
|
|
1996
|
+
class: b.value,
|
|
1997
|
+
onMouseenter: v,
|
|
1998
|
+
onMouseleave: P
|
|
1999
|
+
}, [y(), S()])]), u.value && I()]);
|
|
2000
|
+
}
|
|
2001
|
+
});
|
|
2002
|
+
function $t(e) {
|
|
2003
|
+
const t = a(""), o = a(e.modelValue), l = a(e.data || []), n = a(e.editable);
|
|
2004
|
+
function i(s) {
|
|
2005
|
+
const f = s.split(e.separator).map((d) => [d, !0]), r = new Map(f);
|
|
2006
|
+
return l.value.filter((d) => r.has(d[e.valueField]));
|
|
2007
|
+
}
|
|
2008
|
+
function u(s) {
|
|
2009
|
+
const f = i(s).map((r) => r[e.textField]).join(e.separator);
|
|
2010
|
+
t.value = n.value ? f || s : f;
|
|
2011
|
+
}
|
|
2012
|
+
function c(s) {
|
|
2013
|
+
const f = s.split(e.separator).map((d) => [d, !0]), r = new Map(f);
|
|
2014
|
+
return l.value.filter((d) => r.has(d[e.textField]));
|
|
2015
|
+
}
|
|
2016
|
+
function h() {
|
|
2017
|
+
const { url: s, method: f = "GET", headers: r = {}, body: d = null } = e.remote;
|
|
2018
|
+
fetch(s, { method: f, headers: r, body: d }).then((m) => {
|
|
2019
|
+
if (m.status === 200)
|
|
2020
|
+
return m.json();
|
|
2021
|
+
throw new Error(m.statusText);
|
|
2022
|
+
}).then((m) => {
|
|
2023
|
+
l.value = m;
|
|
2024
|
+
}).catch((m) => {
|
|
2025
|
+
console.error(m);
|
|
2026
|
+
});
|
|
2027
|
+
}
|
|
2028
|
+
return e.remote && h(), W(() => e.data, () => {
|
|
2029
|
+
l.value = e.data;
|
|
2030
|
+
}), W([l], ([s]) => {
|
|
2031
|
+
if (e.modelValue) {
|
|
2032
|
+
const f = s.find((r) => r[e.valueField] === e.modelValue);
|
|
2033
|
+
f && (t.value = f[e.textField]);
|
|
2034
|
+
}
|
|
2035
|
+
}), W(() => e.modelValue, (s) => {
|
|
2036
|
+
o.value = s, u(s);
|
|
2037
|
+
}), u(e.modelValue), { dataSource: l, displayText: t, editable: n, modelValue: o, getItemsByDisplayText: c, getItemsByValue: i };
|
|
2038
|
+
}
|
|
2039
|
+
const te = /* @__PURE__ */ G({
|
|
500
2040
|
name: "FComboList",
|
|
501
|
-
props:
|
|
502
|
-
emits: [
|
|
503
|
-
setup(e,
|
|
504
|
-
const
|
|
505
|
-
|
|
506
|
-
displayText:
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
} =
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
2041
|
+
props: ae,
|
|
2042
|
+
emits: ["clear", "update:modelValue", "change"],
|
|
2043
|
+
setup(e, t) {
|
|
2044
|
+
const o = a(), {
|
|
2045
|
+
dataSource: l,
|
|
2046
|
+
displayText: n,
|
|
2047
|
+
editable: i,
|
|
2048
|
+
modelValue: u,
|
|
2049
|
+
getItemsByDisplayText: c
|
|
2050
|
+
} = $t(e), h = B(() => e.multiSelect);
|
|
2051
|
+
function s() {
|
|
2052
|
+
!h.value && o.value && o.value.hidePopup();
|
|
2053
|
+
}
|
|
2054
|
+
function f(v) {
|
|
2055
|
+
n.value = v.map((P) => P[e.textField]).join(e.separator), u.value = v.map((P) => P[e.valueField]).join(e.separator), t.emit("update:modelValue", u.value), t.emit("change", v), s();
|
|
2056
|
+
}
|
|
2057
|
+
function r(v) {
|
|
2058
|
+
u.value = "", t.emit("update:modelValue", ""), t.emit("clear");
|
|
2059
|
+
}
|
|
2060
|
+
function d(v) {
|
|
2061
|
+
u.value = v, t.emit("update:modelValue", u.value);
|
|
2062
|
+
const P = {};
|
|
2063
|
+
P[e.idField] = v, P[e.textField] = v, t.emit("change", [P]);
|
|
2064
|
+
}
|
|
2065
|
+
function b(v) {
|
|
2066
|
+
if (i.value) {
|
|
2067
|
+
d(v);
|
|
2068
|
+
return;
|
|
2069
|
+
}
|
|
2070
|
+
const P = c(v);
|
|
2071
|
+
f(P);
|
|
2072
|
+
}
|
|
2073
|
+
function m() {
|
|
2074
|
+
return n.value;
|
|
2075
|
+
}
|
|
2076
|
+
return t.expose({
|
|
2077
|
+
getDisplayText: m
|
|
2078
|
+
}), () => p(ye, {
|
|
2079
|
+
ref: o,
|
|
2080
|
+
id: e.id,
|
|
2081
|
+
disable: e.disabled,
|
|
2082
|
+
readonly: e.readonly,
|
|
2083
|
+
forcePlaceholder: e.forcePlaceholder,
|
|
2084
|
+
editable: i.value,
|
|
2085
|
+
buttonContent: e.dropDownIcon,
|
|
2086
|
+
placeholder: e.placeholder,
|
|
2087
|
+
enableClear: e.enableClear,
|
|
2088
|
+
maxLength: e.maxLength,
|
|
2089
|
+
tabIndex: e.tabIndex,
|
|
2090
|
+
enableTitle: e.enableTitle,
|
|
2091
|
+
multiSelect: e.multiSelect,
|
|
2092
|
+
inputType: e.multiSelect ? "tag" : "text",
|
|
2093
|
+
modelValue: n.value,
|
|
2094
|
+
"onUpdate:modelValue": (v) => n.value = v,
|
|
2095
|
+
onClear: r,
|
|
2096
|
+
onChange: b
|
|
2097
|
+
}, {
|
|
2098
|
+
default: () => [p(rt, {
|
|
2099
|
+
idField: e.idField,
|
|
2100
|
+
valueField: e.valueField,
|
|
2101
|
+
textField: e.textField,
|
|
2102
|
+
dataSource: l.value,
|
|
2103
|
+
selectedValues: u.value,
|
|
2104
|
+
multiSelect: e.multiSelect,
|
|
2105
|
+
enableSearch: e.enableSearch,
|
|
2106
|
+
onSelectionChange: f
|
|
2107
|
+
}, null)]
|
|
528
2108
|
});
|
|
529
|
-
|
|
530
|
-
|
|
2109
|
+
}
|
|
2110
|
+
});
|
|
2111
|
+
function Nt(e, t, o) {
|
|
2112
|
+
var x;
|
|
2113
|
+
const l = o == null ? void 0 : o.checkIsInFixedContextRules(), n = o && o.getStyles && o.getStyles() || "";
|
|
2114
|
+
function i() {
|
|
2115
|
+
return !(t.schema.componentType || l);
|
|
2116
|
+
}
|
|
2117
|
+
function u() {
|
|
2118
|
+
return !1;
|
|
2119
|
+
}
|
|
2120
|
+
function c() {
|
|
2121
|
+
return !(t.schema.componentType || l);
|
|
2122
|
+
}
|
|
2123
|
+
function h() {
|
|
2124
|
+
return !!l;
|
|
2125
|
+
}
|
|
2126
|
+
function s(y) {
|
|
2127
|
+
if (!y)
|
|
2128
|
+
return null;
|
|
2129
|
+
if (y.schema.type === "Component")
|
|
2130
|
+
return y;
|
|
2131
|
+
const S = s(y.parent);
|
|
2132
|
+
return S || null;
|
|
2133
|
+
}
|
|
2134
|
+
function f(y, S, I) {
|
|
2135
|
+
return !!o && o.canAccepts();
|
|
2136
|
+
}
|
|
2137
|
+
function r() {
|
|
2138
|
+
return t.schema.label || t.schema.title || t.schema.name;
|
|
2139
|
+
}
|
|
2140
|
+
function d() {
|
|
2141
|
+
}
|
|
2142
|
+
function b(y, S) {
|
|
2143
|
+
S && (o == null || o.onAcceptMovedChildElement(S));
|
|
2144
|
+
}
|
|
2145
|
+
function m(y, S) {
|
|
2146
|
+
const I = String(y.getAttribute("data-controltype"));
|
|
2147
|
+
return je(I);
|
|
2148
|
+
}
|
|
2149
|
+
function v(y) {
|
|
2150
|
+
return y.contents ? y.contents.length : -1;
|
|
2151
|
+
}
|
|
2152
|
+
function P(y) {
|
|
2153
|
+
}
|
|
2154
|
+
const F = {
|
|
2155
|
+
canMove: i(),
|
|
2156
|
+
canSelectParent: u(),
|
|
2157
|
+
canDelete: c(),
|
|
2158
|
+
canNested: !h(),
|
|
2159
|
+
contents: t.schema.contents,
|
|
2160
|
+
elementRef: e,
|
|
2161
|
+
parent: (x = t.parent) == null ? void 0 : x.componentInstance.value,
|
|
2162
|
+
schema: t.schema,
|
|
2163
|
+
styles: n,
|
|
2164
|
+
canAccepts: f,
|
|
2165
|
+
getBelongedComponentInstance: s,
|
|
2166
|
+
getDraggingDisplayText: r,
|
|
2167
|
+
getDragScopeElement: d,
|
|
2168
|
+
onAcceptMovedChildElement: b,
|
|
2169
|
+
onAcceptNewChildElement: m,
|
|
2170
|
+
onAddNewChildElement: v,
|
|
2171
|
+
onChildElementMovedOut: P,
|
|
2172
|
+
triggerBelongedComponentToMoveWhenMoved: !!o && o.triggerBelongedComponentToMoveWhenMoved
|
|
2173
|
+
};
|
|
2174
|
+
return a(F);
|
|
2175
|
+
}
|
|
2176
|
+
const zt = /* @__PURE__ */ G({
|
|
2177
|
+
name: "FComboListDesign",
|
|
2178
|
+
props: ae,
|
|
2179
|
+
emits: ["clear", "update:modelValue", "change"],
|
|
2180
|
+
setup(e, t) {
|
|
2181
|
+
const o = a(), l = De("design-item-context"), n = Nt(o, l);
|
|
2182
|
+
return ne(() => {
|
|
2183
|
+
o.value.componentInstance = n;
|
|
2184
|
+
}), t.expose(n.value), () => p(ye, {
|
|
2185
|
+
ref: o,
|
|
531
2186
|
id: e.id,
|
|
532
|
-
class: {
|
|
533
|
-
active: o
|
|
534
|
-
}
|
|
535
|
-
}, n.attrs, {
|
|
536
2187
|
disable: e.disabled,
|
|
537
2188
|
readonly: e.readonly,
|
|
538
2189
|
forcePlaceholder: e.forcePlaceholder,
|
|
@@ -543,35 +2194,26 @@ const fe = /* @__PURE__ */ N({
|
|
|
543
2194
|
maxLength: e.maxLength,
|
|
544
2195
|
tabIndex: e.tabIndex,
|
|
545
2196
|
enableTitle: e.enableTitle,
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
onClear: d,
|
|
550
|
-
onClick: p,
|
|
551
|
-
onClickButton: s
|
|
552
|
-
}), null), o.value && f(fe, {
|
|
553
|
-
isPanelVisible: o.value,
|
|
554
|
-
onPanelHidden: y
|
|
555
|
-
}, null)]);
|
|
2197
|
+
multiSelect: e.multiSelect,
|
|
2198
|
+
inputType: e.multiSelect ? "tag" : "text"
|
|
2199
|
+
}, null);
|
|
556
2200
|
}
|
|
557
|
-
}),
|
|
2201
|
+
}), qt = {
|
|
558
2202
|
install(e) {
|
|
559
|
-
e.component(
|
|
2203
|
+
e.component(te.name, te);
|
|
2204
|
+
},
|
|
2205
|
+
register(e, t) {
|
|
2206
|
+
e["combo-list"] = te, t["combo-list"] = ie;
|
|
2207
|
+
},
|
|
2208
|
+
registerDesigner(e, t) {
|
|
2209
|
+
e["combo-list"] = zt, t["combo-list"] = ie;
|
|
560
2210
|
}
|
|
561
2211
|
};
|
|
562
2212
|
export {
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
E as optionProps,
|
|
570
|
-
ee as optionsProps,
|
|
571
|
-
L as panelProps,
|
|
572
|
-
le as useComboList,
|
|
573
|
-
te as useComboListEvent,
|
|
574
|
-
oe as useOption,
|
|
575
|
-
de as usePanel,
|
|
576
|
-
se as usePanelEvent
|
|
2213
|
+
te as FComboList,
|
|
2214
|
+
Ke as Placement,
|
|
2215
|
+
Ue as ViewType,
|
|
2216
|
+
ae as comboListProps,
|
|
2217
|
+
qt as default,
|
|
2218
|
+
ie as propsResolver
|
|
577
2219
|
};
|