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