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