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