@farris/ui-vue 1.0.0-beta.5 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/accordion/index.esm.js +318 -56
- package/accordion/index.umd.js +1 -1
- package/accordion/package.json +2 -2
- package/avatar/index.esm.js +28 -1
- package/avatar/package.json +2 -2
- package/button/index.esm.js +133 -68
- package/button/index.umd.js +1 -1
- package/button/package.json +2 -2
- package/button-edit/index.esm.js +1130 -222
- package/button-edit/index.umd.js +1 -1
- package/button-edit/package.json +2 -2
- package/button-edit/style.css +1 -0
- package/calculator/index.esm.js +315 -0
- package/calculator/index.umd.js +1 -0
- package/calculator/package.json +8 -0
- package/calculator/style.css +1 -0
- package/calendar/index.esm.js +778 -0
- package/calendar/index.umd.js +1 -0
- package/calendar/package.json +8 -0
- package/calendar/style.css +1 -0
- package/capsule/index.esm.js +130 -0
- package/capsule/index.umd.js +1 -0
- package/capsule/package.json +8 -0
- package/capsule/style.css +1 -0
- package/checkbox/index.esm.js +217 -63
- package/checkbox/index.umd.js +1 -1
- package/checkbox/package.json +2 -2
- package/color-picker/index.esm.js +1551 -0
- package/color-picker/index.umd.js +16 -0
- package/color-picker/package.json +8 -0
- package/color-picker/style.css +1 -0
- package/combo-list/index.esm.js +2136 -374
- package/combo-list/index.umd.js +1 -1
- package/combo-list/package.json +2 -2
- package/combo-list/style.css +1 -0
- package/component/index.esm.js +176 -0
- package/component/index.umd.js +1 -0
- package/component/package.json +8 -0
- package/condition/index.esm.js +13562 -0
- package/condition/index.umd.js +1 -0
- package/condition/package.json +8 -0
- package/condition/style.css +1 -0
- package/content-container/index.esm.js +242 -0
- package/content-container/index.umd.js +1 -0
- package/content-container/package.json +8 -0
- package/data-grid/index.esm.js +13384 -1203
- package/data-grid/index.umd.js +1 -1
- package/data-grid/package.json +2 -2
- package/data-grid/style.css +1 -1
- package/date-picker/index.esm.js +2136 -1057
- package/date-picker/index.umd.js +1 -1
- package/date-picker/package.json +2 -2
- package/date-picker/style.css +1 -1
- package/designer-canvas/index.esm.js +15232 -0
- package/designer-canvas/index.umd.js +1 -0
- package/designer-canvas/package.json +8 -0
- package/designer-canvas/style.css +1 -0
- package/discussion-editor/index.esm.js +3559 -0
- package/discussion-editor/index.umd.js +16 -0
- package/discussion-editor/package.json +8 -0
- package/discussion-editor/style.css +1 -0
- package/discussion-list/index.esm.js +111 -0
- package/discussion-list/index.umd.js +1 -0
- package/discussion-list/package.json +8 -0
- package/discussion-list/style.css +1 -0
- package/dropdown/index.esm.js +214 -0
- package/dropdown/index.umd.js +1 -0
- package/dropdown/package.json +8 -0
- package/dropdown/style.css +1 -0
- package/dynamic-form/index.esm.js +13560 -0
- package/dynamic-form/index.umd.js +1 -0
- package/dynamic-form/package.json +8 -0
- package/dynamic-form/style.css +1 -0
- package/dynamic-resolver/index.esm.js +41 -0
- package/dynamic-resolver/index.umd.js +1 -0
- package/dynamic-resolver/package.json +8 -0
- package/dynamic-view/index.esm.js +13600 -0
- package/dynamic-view/index.umd.js +1 -0
- package/dynamic-view/package.json +8 -0
- package/dynamic-view/style.css +1 -0
- package/farris.all.esm.js +25213 -5571
- package/farris.all.umd.js +24 -1
- package/filter-bar/index.esm.js +549 -0
- package/filter-bar/index.umd.js +1 -0
- package/filter-bar/package.json +8 -0
- package/filter-bar/style.css +1 -0
- package/image-cropper/index.esm.js +720 -0
- package/image-cropper/index.umd.js +1 -0
- package/image-cropper/package.json +8 -0
- package/image-cropper/style.css +1 -0
- package/input-group/index.esm.js +549 -0
- package/input-group/index.umd.js +1 -0
- package/input-group/package.json +8 -0
- package/input-group/style.css +1 -0
- package/list-nav/index.esm.js +61 -0
- package/list-nav/index.umd.js +1 -0
- package/list-nav/package.json +8 -0
- package/list-nav/style.css +1 -0
- package/list-view/index.esm.js +516 -124
- package/list-view/index.umd.js +1 -1
- package/list-view/package.json +2 -2
- package/list-view/style.css +1 -1
- package/loading/index.esm.js +124 -0
- package/loading/index.umd.js +8 -0
- package/loading/package.json +8 -0
- package/loading/style.css +1 -0
- package/locale/index.esm.js +1868 -0
- package/locale/index.umd.js +1 -0
- package/locale/package.json +8 -0
- package/message-box/index.esm.js +420 -347
- package/message-box/index.umd.js +1 -1
- package/message-box/package.json +2 -2
- package/message-box/style.css +1 -0
- package/modal/index.esm.js +139 -92
- package/modal/index.umd.js +1 -1
- package/modal/package.json +2 -2
- package/modal/style.css +1 -0
- package/nav/index.esm.js +456 -0
- package/nav/index.umd.js +16 -0
- package/nav/package.json +8 -0
- package/nav/style.css +1 -0
- package/notify/index.esm.js +2 -2
- package/notify/package.json +2 -2
- package/order/index.esm.js +2270 -0
- package/order/index.umd.js +1 -0
- package/order/package.json +8 -0
- package/order/style.css +1 -0
- package/package.json +8 -5
- package/page-footer/index.esm.js +94 -0
- package/page-footer/index.umd.js +1 -0
- package/page-footer/package.json +8 -0
- package/page-header/index.esm.js +230 -0
- package/page-header/index.umd.js +1 -0
- package/page-header/package.json +8 -0
- package/pagination/index.esm.js +147 -141
- package/pagination/index.umd.js +1 -1
- package/pagination/package.json +2 -2
- package/popover/index.esm.js +194 -59
- package/popover/index.umd.js +1 -1
- package/popover/package.json +2 -2
- package/popover/style.css +1 -1
- package/propress/index.esm.js +108 -0
- package/propress/index.umd.js +1 -0
- package/propress/package.json +8 -0
- package/propress/style.css +1 -0
- package/radio-group/index.esm.js +192 -50
- package/radio-group/index.umd.js +1 -1
- package/radio-group/package.json +2 -2
- package/rate/index.esm.js +168 -0
- package/rate/index.umd.js +1 -0
- package/rate/package.json +8 -0
- package/rate/style.css +1 -0
- package/response-toolbar/index.esm.js +433 -0
- package/response-toolbar/index.umd.js +1 -0
- package/response-toolbar/package.json +8 -0
- package/search-box/index.esm.js +208 -0
- package/search-box/index.umd.js +1 -0
- package/search-box/package.json +8 -0
- package/search-box/style.css +1 -0
- package/section/index.esm.js +341 -45
- package/section/index.umd.js +1 -1
- package/section/package.json +2 -2
- package/section/style.css +1 -0
- package/splitter/index.esm.js +491 -0
- package/splitter/index.umd.js +1 -0
- package/splitter/package.json +8 -0
- package/splitter/style.css +1 -0
- package/step/index.esm.js +117 -0
- package/step/index.umd.js +1 -0
- package/step/package.json +8 -0
- package/step/style.css +1 -0
- package/style.css +3 -3
- package/switch/index.esm.js +159 -40
- package/switch/index.umd.js +1 -1
- package/switch/package.json +2 -2
- package/switch/style.css +1 -0
- package/tabs/index.esm.js +1563 -310
- package/tabs/index.umd.js +1 -1
- package/tabs/package.json +2 -2
- package/tabs/style.css +1 -1
- package/tags/index.esm.js +287 -0
- package/tags/index.umd.js +1 -0
- package/tags/package.json +8 -0
- package/tags/style.css +1 -0
- package/text/index.esm.js +4 -1
- package/text/package.json +2 -2
- package/time-picker/index.esm.js +1465 -0
- package/time-picker/index.umd.js +1 -0
- package/time-picker/package.json +8 -0
- package/time-picker/style.css +1 -0
- package/tooltip/index.esm.js +1 -1
- package/tooltip/package.json +2 -2
- package/transfer/index.esm.js +642 -0
- package/transfer/index.umd.js +1 -0
- package/transfer/package.json +8 -0
- package/transfer/style.css +1 -0
- package/tree-view/index.esm.js +701 -0
- package/tree-view/index.umd.js +1 -0
- package/tree-view/package.json +8 -0
- package/tree-view/style.css +1 -0
- package/types/accordion/index.d.ts +2 -0
- package/types/accordion/src/accordion.component.d.ts +4 -68
- package/types/accordion/src/accordion.props.d.ts +2 -33
- package/types/accordion/src/components/accordion-item.component.d.ts +4 -36
- package/types/accordion/src/components/accordion-item.props.d.ts +2 -17
- package/types/accordion/src/designer/accordion-item.design.component.d.ts +6 -0
- package/types/accordion/src/designer/accordion.design.component.d.ts +6 -0
- package/types/accordion/src/schema/schema-mapper.d.ts +2 -0
- package/types/avatar/src/avatar.component.d.ts +4 -2
- package/types/button/index.d.ts +2 -1
- package/types/button/src/button-group.component.d.ts +5 -3
- package/types/button/src/button.component.d.ts +11 -3
- package/types/button/src/button.props.d.ts +6 -0
- package/types/button-edit/index.d.ts +2 -0
- package/types/button-edit/src/button-edit.component.d.ts +6 -0
- package/types/button-edit/src/button-edit.props.d.ts +5 -119
- package/types/button-edit/src/components/button-group.component.d.ts +3 -0
- package/types/button-edit/src/components/popup-container.component.d.ts +4 -0
- package/types/button-edit/src/components/text-edit.component.d.ts +4 -0
- package/types/button-edit/src/composition/types.d.ts +15 -1
- package/types/button-edit/src/composition/use-button.d.ts +2 -2
- package/types/button-edit/src/composition/use-clear.d.ts +2 -2
- package/types/button-edit/src/composition/use-popup.d.ts +4 -0
- package/types/button-edit/src/composition/use-text-box.d.ts +2 -2
- package/types/button-edit/src/schema/schema-mapper.d.ts +2 -0
- package/types/{data-grid/src/composition/use-fit-column.d.ts → calculator/index.d.ts} +8 -5
- package/types/calculator/src/calculator.component.d.ts +8 -0
- package/types/calculator/src/calculator.props.d.ts +23 -0
- package/types/calculator/src/composition/use-calculator.d.ts +26 -0
- package/types/calendar/index.d.ts +21 -0
- package/types/calendar/src/calendar.props.d.ts +26 -0
- package/types/calendar/src/components/day/day-view.props.d.ts +34 -0
- package/types/calendar/src/components/header/header.props.d.ts +24 -0
- package/types/calendar/src/components/month/month-view.props.d.ts +69 -0
- package/types/calendar/src/components/week/week-view.component.d.ts +106 -0
- package/types/calendar/src/components/week/week-view.props.d.ts +51 -0
- package/types/calendar/src/composition/types.d.ts +57 -0
- package/types/calendar/src/composition/use-calendar.d.ts +2 -0
- package/types/calendar/src/composition/use-compare.d.ts +2 -0
- package/types/calendar/src/composition/use-date.d.ts +2 -0
- package/types/calendar/src/composition/use-event.d.ts +30 -0
- package/types/calendar/src/composition/use-month.d.ts +2 -0
- package/types/calendar/src/types/calendar.d.ts +13 -0
- package/types/calendar/src/types/common.d.ts +32 -0
- package/types/calendar/src/types/month-view.d.ts +23 -0
- package/types/calendar/src/types/month.d.ts +20 -0
- package/types/calendar/src/types/schedule.d.ts +35 -0
- package/types/capsule/index.d.ts +8 -0
- package/types/capsule/src/capsule.props.d.ts +67 -0
- package/types/checkbox/index.d.ts +1 -0
- package/types/checkbox/src/checkbox-group.component.d.ts +4 -146
- package/types/checkbox/src/checkbox-group.props.d.ts +2 -106
- package/types/checkbox/src/composition/types.d.ts +3 -3
- package/types/checkbox/src/schema/schema-mapper.d.ts +2 -0
- package/types/{combo-list/src/composition → color-picker}/index.d.ts +7 -3
- package/types/color-picker/src/color-picker.props.d.ts +62 -0
- package/types/color-picker/src/composition/class/base-color.class.d.ts +3 -0
- package/types/color-picker/src/composition/class/cmyk.class.d.ts +21 -0
- package/types/color-picker/src/composition/class/colors-table.class.d.ts +154 -0
- package/types/color-picker/src/composition/class/control.class.d.ts +47 -0
- package/types/color-picker/src/composition/class/helper.functions.d.ts +4 -0
- package/types/color-picker/src/composition/class/hsla.class.d.ts +21 -0
- package/types/color-picker/src/composition/class/hsva.class.d.ts +21 -0
- package/types/color-picker/src/composition/class/rgba.class.d.ts +21 -0
- package/types/color-picker/src/composition/component/alpha.d.ts +34 -0
- package/types/color-picker/src/composition/component/hue.d.ts +40 -0
- package/types/color-picker/src/composition/component/preset.d.ts +43 -0
- package/types/color-picker/src/composition/component/props/alpha.props.d.ts +16 -0
- package/types/color-picker/src/composition/component/props/hue.props.d.ts +19 -0
- package/types/color-picker/src/composition/component/props/preset.props.d.ts +20 -0
- package/types/color-picker/src/composition/component/props/sv-panel.props.d.ts +20 -0
- package/types/color-picker/src/composition/component/sv-panel.d.ts +43 -0
- package/types/combo-list/index.d.ts +2 -2
- package/types/combo-list/src/combo-list.props.d.ts +32 -263
- package/types/combo-list/src/components/list-container.props.d.ts +54 -0
- package/types/combo-list/src/composition/types.d.ts +10 -0
- package/types/combo-list/src/composition/use-data-source.d.ts +3 -0
- package/types/combo-list/src/designer/combo-list.design.component.d.ts +6 -0
- package/types/combo-list/src/schema/schema-mapper.d.ts +2 -0
- package/types/component/index.d.ts +26 -0
- package/types/component/src/component.props.d.ts +4 -0
- package/types/component/src/designer/types.d.ts +10 -0
- package/types/component/src/designer/use-designer-rules.d.ts +2 -0
- package/types/component/src/schema/schema-mapper.d.ts +2 -0
- package/types/{date-picker → condition}/index.d.ts +4 -8
- package/types/condition/src/composition/condition-value/checkbox-value.d.ts +13 -0
- package/types/condition/src/composition/condition-value/combo-lookup-value.d.ts +19 -0
- package/types/condition/src/composition/condition-value/date-picker-value.d.ts +25 -0
- package/types/condition/src/composition/condition-value/date-range-value.d.ts +18 -0
- package/types/condition/src/composition/condition-value/datetime-picker-value.d.ts +13 -0
- package/types/condition/src/composition/condition-value/dropdown-value.d.ts +18 -0
- package/types/condition/src/composition/condition-value/input-group-value.d.ts +21 -0
- package/types/condition/src/composition/condition-value/lookup-value.d.ts +21 -0
- package/types/condition/src/composition/condition-value/month-picker-value.d.ts +15 -0
- package/types/condition/src/composition/condition-value/month-range-value.d.ts +18 -0
- package/types/condition/src/composition/condition-value/number-range-value.d.ts +21 -0
- package/types/condition/src/composition/condition-value/number-spinner-value.d.ts +13 -0
- package/types/condition/src/composition/condition-value/radio-group-value.d.ts +13 -0
- package/types/condition/src/composition/condition-value/text-value.d.ts +13 -0
- package/types/condition/src/composition/condition-value/types.d.ts +9 -0
- package/types/condition/src/composition/types.d.ts +41 -0
- package/types/condition/src/composition/use-compare.d.ts +40 -0
- package/types/condition/src/composition/use-condition-value.d.ts +2 -0
- package/types/condition/src/composition/use-condition.d.ts +2 -0
- package/types/condition/src/composition/use-field-config.d.ts +4 -0
- package/types/condition/src/composition/use-selection.d.ts +4 -0
- package/types/condition/src/condition.props.d.ts +58 -0
- package/types/condition/src/types.d.ts +144 -0
- package/types/{number-spinner/src/composition/use-data.d.ts → content-container/index.d.ts} +11 -4
- package/types/content-container/src/content-container.props.d.ts +4 -0
- package/types/content-container/src/designer/use-designer-rules.d.ts +3 -0
- package/types/content-container/src/schema/schema-mapper.d.ts +2 -0
- package/types/data-grid/index.d.ts +3 -0
- package/types/data-grid/src/components/data/data-area.component.d.ts +1 -1
- package/types/data-grid/src/components/editors/commands.component.d.ts +18 -0
- package/types/data-grid/src/components/editors/date-picker.component.d.ts +18 -2
- package/types/data-grid/src/components/editors/text-area-editor.component.d.ts +3 -2
- package/types/data-grid/src/components/editors/text-editor.component.d.ts +3 -2
- package/types/data-grid/src/components/filter/boolean-filter-editor.component.d.ts +2 -0
- package/types/data-grid/src/components/filter/column-filter-container.component.d.ts +19 -0
- package/types/data-grid/src/components/filter/date-filter-editor.component.d.ts +2 -0
- package/types/data-grid/src/components/filter/enum-filter-editor.component.d.ts +3 -0
- package/types/data-grid/src/components/filter/list-filter-editor.component.d.ts +2 -0
- package/types/data-grid/src/components/filter/numeric-filter-editor.component.d.ts +2 -0
- package/types/data-grid/src/components/filter/text-filter-editor.component.d.ts +3 -0
- package/types/data-grid/src/components/group-panel/group-panel.component.d.ts +5 -0
- package/types/data-grid/src/components/header/data-grid-header-handler.component.d.ts +21 -0
- package/types/data-grid/src/components/header/data-grid-header.component.d.ts +2 -2
- package/types/data-grid/src/components/pagination/data-grid-pagination.component.d.ts +3 -3
- package/types/data-grid/src/components/scrollbar/horizontal-scrollbar.component.d.ts +1 -1
- package/types/data-grid/src/components/scrollbar/vertical-scrollbar.component.d.ts +1 -1
- package/types/data-grid/src/components/settings/data-grid-settings-icon.component.d.ts +21 -0
- package/types/data-grid/src/components/summary/data-grid-summary.component.d.ts +1 -1
- package/types/data-grid/src/composition/types.d.ts +137 -11
- package/types/data-grid/src/composition/use-column-filter.d.ts +3 -0
- package/types/data-grid/src/composition/use-column.d.ts +3 -0
- package/types/data-grid/src/composition/use-command-column.d.ts +3 -0
- package/types/data-grid/src/composition/use-data-view.d.ts +13 -3
- package/types/data-grid/src/composition/use-drag-column.d.ts +4 -0
- package/types/data-grid/src/composition/use-filter-history.d.ts +2 -0
- package/types/data-grid/src/composition/use-row.d.ts +18 -2
- package/types/data-grid/src/composition/use-selection.d.ts +3 -0
- package/types/data-grid/src/composition/use-sort.d.ts +3 -0
- package/types/data-grid/src/composition/use-virtual-scroll.d.ts +1 -1
- package/types/data-grid/src/composition/use-visual-data-bound.d.ts +2 -0
- package/types/data-grid/src/composition/use-visual-data-cell.d.ts +3 -0
- package/types/data-grid/src/composition/use-visual-data-row.d.ts +3 -0
- package/types/data-grid/src/composition/use-visual-data.d.ts +2 -2
- package/types/data-grid/src/composition/use-visual-summary-row.d.ts +3 -0
- package/types/data-grid/src/data-grid.props.d.ts +23 -161
- package/types/data-grid/src/schema/schema-mapper.d.ts +2 -0
- package/types/date-picker/src/components/calendar/calendar.component.d.ts +8 -6
- package/types/date-picker/src/components/calendar-navbar/calendar-navbar.component.d.ts +6 -4
- package/types/date-picker/src/components/date-picker-container/date-picker-container.component.d.ts +15 -13
- package/types/date-picker/src/components/month/month.component.d.ts +7 -5
- package/types/date-picker/src/components/year/year.component.d.ts +6 -4
- package/types/date-picker/src/date-picker.component.d.ts +6 -0
- package/types/date-picker/src/date-picker.props.d.ts +2 -151
- package/types/date-picker/src/designer/date-picker.design.component.d.ts +6 -0
- package/types/date-picker/src/schema/schema-mapper.d.ts +2 -0
- package/types/designer-canvas/index.d.ts +8 -0
- package/types/designer-canvas/src/components/designer-item.props.d.ts +3 -0
- package/types/designer-canvas/src/components/designer-placeholder.props.d.ts +7 -0
- package/types/designer-canvas/src/components/maps.d.ts +3 -0
- package/types/designer-canvas/src/components/toolbox.props.d.ts +11 -0
- package/types/designer-canvas/src/composition/types.d.ts +27 -0
- package/types/designer-canvas/src/designer-canvas.props.d.ts +3 -0
- package/types/designer-canvas/src/types.d.ts +40 -0
- package/types/discussion-editor/discussion-editor.component.d.ts +121 -0
- package/types/discussion-editor/discussion-editor.props.d.ts +69 -0
- package/types/discussion-editor/index.d.ts +23 -0
- package/types/discussion-editor/src/composition/use-discussion-editor.d.ts +15 -0
- package/types/discussion-editor/src/types/interface.d.ts +22 -0
- package/types/discussion-list/discussion-list.component.d.ts +70 -0
- package/types/discussion-list/discussion-list.props.d.ts +52 -0
- package/types/discussion-list/index.d.ts +23 -0
- package/types/dropdown/index.d.ts +9 -0
- package/types/dropdown/src/composition/function/use-dropdown.d.ts +26 -0
- package/types/dropdown/src/composition/props/dropdown.item.props.d.ts +46 -0
- package/types/dropdown/src/composition/props/dropdown.props.d.ts +99 -0
- package/types/dropdown/src/dropdown.component.d.ts +179 -0
- package/types/dropdown/src/dropdown.item.component.d.ts +76 -0
- package/types/dropdown/src/types.d.ts +46 -0
- package/types/dynamic-form/index.d.ts +14 -0
- package/types/dynamic-form/src/component/dynamic-form-group/dynamic-form-group.props.d.ts +4 -0
- package/types/dynamic-form/src/component/dynamic-form-label/dynamic-form-label.props.d.ts +15 -0
- package/types/dynamic-form/src/composition/types.d.ts +5 -0
- package/types/dynamic-form/src/dynamic-form.props.d.ts +3 -0
- package/types/dynamic-form/src/schema/schema-mapper.d.ts +2 -0
- package/types/dynamic-form/src/types.d.ts +17 -0
- package/types/dynamic-resolver/index.d.ts +3 -0
- package/types/dynamic-resolver/src/common/appearance-resolver.d.ts +6 -0
- package/types/dynamic-resolver/src/props-resolver.d.ts +2 -0
- package/types/dynamic-resolver/src/schema-resolver.d.ts +5 -0
- package/types/dynamic-resolver/src/types.d.ts +1 -0
- package/types/dynamic-view/index.d.ts +8 -0
- package/types/dynamic-view/src/components/maps.d.ts +4 -0
- package/types/dynamic-view/src/dynamic-view.props.d.ts +15 -0
- package/types/filter-bar/index.d.ts +7 -0
- package/types/filter-bar/src/components/ellipsis-button.component.d.ts +3 -0
- package/types/filter-bar/src/components/filter-item.component.d.ts +5 -0
- package/types/filter-bar/src/components/toolbar-component.d.ts +4 -0
- package/types/filter-bar/src/composition/types.d.ts +14 -0
- package/types/filter-bar/src/composition/use-filter-items.d.ts +4 -0
- package/types/filter-bar/src/filter-bar.props.d.ts +53 -0
- package/types/filter-bar/src/types.d.ts +9 -0
- package/types/image-cropper/index.d.ts +23 -0
- package/types/image-cropper/src/composition/type.d.ts +44 -0
- package/types/image-cropper/src/composition/use-check-aspect-ratio.d.ts +2 -0
- package/types/image-cropper/src/composition/use-image-cropper.d.ts +20 -0
- package/types/image-cropper/src/image-cropper.component.d.ts +248 -0
- package/types/image-cropper/src/image-cropper.props.d.ts +153 -0
- package/types/index.d.ts +5 -0
- package/types/input-group/index.d.ts +25 -0
- package/types/input-group/src/components/appended-button.component.d.ts +4 -0
- package/types/input-group/src/components/text-edit.component.d.ts +4 -0
- package/types/input-group/src/composition/types.d.ts +37 -0
- package/types/input-group/src/composition/use-appended-button.d.ts +4 -0
- package/types/input-group/src/composition/use-clear.d.ts +4 -0
- package/types/input-group/src/composition/use-password.d.ts +4 -0
- package/types/input-group/src/composition/use-text-box.d.ts +4 -0
- package/types/input-group/src/input-group.props.d.ts +4 -0
- package/types/input-group/src/schema/schema-mapper.d.ts +2 -0
- package/types/list-nav/index.d.ts +23 -0
- package/types/list-nav/src/list-nav.component.d.ts +61 -0
- package/types/list-nav/src/list-nav.props.d.ts +51 -0
- package/types/list-view/src/components/header/content-header.component.d.ts +6 -0
- package/types/list-view/src/components/header/search-header.component.d.ts +6 -0
- package/types/list-view/src/components/list-view-checkbox.props.d.ts +7 -0
- package/types/list-view/src/composition/types.d.ts +40 -0
- package/types/list-view/src/composition/use-data-view.d.ts +4 -0
- package/types/list-view/src/composition/use-draggable.d.ts +4 -0
- package/types/list-view/src/composition/use-hover.d.ts +2 -0
- package/types/list-view/src/composition/use-item.d.ts +4 -0
- package/types/list-view/src/composition/use-remove.d.ts +4 -0
- package/types/list-view/src/composition/use-search.d.ts +5 -0
- package/types/list-view/src/composition/use-selection.d.ts +4 -0
- package/types/list-view/src/list-view.component.d.ts +203 -0
- package/types/list-view/src/list-view.props.d.ts +76 -7
- package/types/loading/index.d.ts +23 -0
- package/types/loading/src/composition/types.d.ts +19 -0
- package/types/loading/src/loading.component.d.ts +43 -0
- package/types/loading/src/loading.props.d.ts +35 -0
- package/types/loading/src/loading.service.d.ts +4 -0
- package/types/locale/src/lib/locale.service.d.ts +26 -0
- package/types/locale/src/lib/locales/en-us/avatar.d.ts +7 -0
- package/types/locale/src/lib/locales/en-us/batch-edit-dialog.d.ts +15 -0
- package/types/locale/src/lib/locales/en-us/collapse.d.ts +4 -0
- package/types/locale/src/lib/locales/en-us/combo.d.ts +4 -0
- package/types/locale/src/lib/locales/en-us/datagrid.d.ts +103 -0
- package/types/locale/src/lib/locales/en-us/discussion-group.d.ts +25 -0
- package/types/locale/src/lib/locales/en-us/filter-editor.d.ts +50 -0
- package/types/locale/src/lib/locales/en-us/filter-panel.d.ts +25 -0
- package/types/locale/src/lib/locales/en-us/footer.d.ts +4 -0
- package/types/locale/src/lib/locales/en-us/index.d.ts +568 -0
- package/types/locale/src/lib/locales/en-us/language-label.d.ts +8 -0
- package/types/locale/src/lib/locales/en-us/list-filter.d.ts +6 -0
- package/types/locale/src/lib/locales/en-us/list-view.d.ts +3 -0
- package/types/locale/src/lib/locales/en-us/loading.d.ts +3 -0
- package/types/locale/src/lib/locales/en-us/lookup-config.d.ts +38 -0
- package/types/locale/src/lib/locales/en-us/lookup.d.ts +48 -0
- package/types/locale/src/lib/locales/en-us/messager.d.ts +28 -0
- package/types/locale/src/lib/locales/en-us/multi-select.d.ts +15 -0
- package/types/locale/src/lib/locales/en-us/notify.d.ts +3 -0
- package/types/locale/src/lib/locales/en-us/numeric.d.ts +7 -0
- package/types/locale/src/lib/locales/en-us/page-walker.d.ts +6 -0
- package/types/locale/src/lib/locales/en-us/pagination.d.ts +17 -0
- package/types/locale/src/lib/locales/en-us/progress-step.d.ts +3 -0
- package/types/locale/src/lib/locales/en-us/query-condition.d.ts +33 -0
- package/types/locale/src/lib/locales/en-us/query-solution.d.ts +41 -0
- package/types/locale/src/lib/locales/en-us/response-toolbar.d.ts +3 -0
- package/types/locale/src/lib/locales/en-us/scrollspy.d.ts +3 -0
- package/types/locale/src/lib/locales/en-us/section.d.ts +4 -0
- package/types/locale/src/lib/locales/en-us/sidebar.d.ts +3 -0
- package/types/locale/src/lib/locales/en-us/sort-editor.d.ts +15 -0
- package/types/locale/src/lib/locales/en-us/tabs.d.ts +3 -0
- package/types/locale/src/lib/locales/en-us/tag.d.ts +4 -0
- package/types/locale/src/lib/locales/en-us/text.d.ts +10 -0
- package/types/locale/src/lib/locales/en-us/treetable.d.ts +8 -0
- package/types/locale/src/lib/locales/en-us/verify-detail.d.ts +5 -0
- package/types/locale/src/lib/locales/index.d.ts +1712 -0
- package/types/locale/src/lib/locales/zh-CHT/avatar.d.ts +7 -0
- package/types/locale/src/lib/locales/zh-CHT/batch-edit-dialog.d.ts +15 -0
- package/types/locale/src/lib/locales/zh-CHT/collapse.d.ts +4 -0
- package/types/locale/src/lib/locales/zh-CHT/combo.d.ts +4 -0
- package/types/locale/src/lib/locales/zh-CHT/datagrid.d.ts +103 -0
- package/types/locale/src/lib/locales/zh-CHT/discussion-group.d.ts +25 -0
- package/types/locale/src/lib/locales/zh-CHT/filter-editor.d.ts +50 -0
- package/types/locale/src/lib/locales/zh-CHT/filter-panel.d.ts +25 -0
- package/types/locale/src/lib/locales/zh-CHT/footer.d.ts +4 -0
- package/types/locale/src/lib/locales/zh-CHT/index.d.ts +568 -0
- package/types/locale/src/lib/locales/zh-CHT/language-label.d.ts +8 -0
- package/types/locale/src/lib/locales/zh-CHT/list-filter.d.ts +6 -0
- package/types/locale/src/lib/locales/zh-CHT/list-view.d.ts +3 -0
- package/types/locale/src/lib/locales/zh-CHT/loading.d.ts +3 -0
- package/types/locale/src/lib/locales/zh-CHT/lookup-config.d.ts +38 -0
- package/types/locale/src/lib/locales/zh-CHT/lookup.d.ts +48 -0
- package/types/locale/src/lib/locales/zh-CHT/messager.d.ts +28 -0
- package/types/locale/src/lib/locales/zh-CHT/multi-select.d.ts +15 -0
- package/types/locale/src/lib/locales/zh-CHT/notify.d.ts +3 -0
- package/types/locale/src/lib/locales/zh-CHT/numeric.d.ts +7 -0
- package/types/locale/src/lib/locales/zh-CHT/page-walker.d.ts +6 -0
- package/types/locale/src/lib/locales/zh-CHT/pagination.d.ts +17 -0
- package/types/locale/src/lib/locales/zh-CHT/progress-step.d.ts +3 -0
- package/types/locale/src/lib/locales/zh-CHT/query-condition.d.ts +33 -0
- package/types/locale/src/lib/locales/zh-CHT/query-solution.d.ts +41 -0
- package/types/locale/src/lib/locales/zh-CHT/response-toolbar.d.ts +3 -0
- package/types/locale/src/lib/locales/zh-CHT/scrollspy.d.ts +3 -0
- package/types/locale/src/lib/locales/zh-CHT/section.d.ts +4 -0
- package/types/locale/src/lib/locales/zh-CHT/sidebar.d.ts +3 -0
- package/types/locale/src/lib/locales/zh-CHT/sort-editor.d.ts +15 -0
- package/types/locale/src/lib/locales/zh-CHT/tabs.d.ts +3 -0
- package/types/locale/src/lib/locales/zh-CHT/tag.d.ts +4 -0
- package/types/locale/src/lib/locales/zh-CHT/text.d.ts +10 -0
- package/types/locale/src/lib/locales/zh-CHT/treetable.d.ts +8 -0
- package/types/locale/src/lib/locales/zh-CHT/verify-detail.d.ts +5 -0
- package/types/locale/src/lib/locales/zh-cn/avatar.d.ts +7 -0
- package/types/locale/src/lib/locales/zh-cn/batch-edit-dialog.d.ts +15 -0
- package/types/locale/src/lib/locales/zh-cn/collapse.d.ts +4 -0
- package/types/locale/src/lib/locales/zh-cn/combo.d.ts +4 -0
- package/types/locale/src/lib/locales/zh-cn/datagrid.d.ts +105 -0
- package/types/locale/src/lib/locales/zh-cn/discussion-group.d.ts +25 -0
- package/types/locale/src/lib/locales/zh-cn/filter-editor.d.ts +50 -0
- package/types/locale/src/lib/locales/zh-cn/filter-panel.d.ts +25 -0
- package/types/locale/src/lib/locales/zh-cn/footer.d.ts +4 -0
- package/types/locale/src/lib/locales/zh-cn/index.d.ts +574 -0
- package/types/locale/src/lib/locales/zh-cn/language-label.d.ts +8 -0
- package/types/locale/src/lib/locales/zh-cn/list-filter.d.ts +6 -0
- package/types/locale/src/lib/locales/zh-cn/list-view.d.ts +3 -0
- package/types/locale/src/lib/locales/zh-cn/loading.d.ts +3 -0
- package/types/locale/src/lib/locales/zh-cn/lookup-config.d.ts +38 -0
- package/types/locale/src/lib/locales/zh-cn/lookup.d.ts +48 -0
- package/types/locale/src/lib/locales/zh-cn/messager.d.ts +32 -0
- package/types/locale/src/lib/locales/zh-cn/multi-select.d.ts +15 -0
- package/types/locale/src/lib/locales/zh-cn/notify.d.ts +3 -0
- package/types/locale/src/lib/locales/zh-cn/numeric.d.ts +7 -0
- package/types/locale/src/lib/locales/zh-cn/page-walker.d.ts +6 -0
- package/types/locale/src/lib/locales/zh-cn/pagination.d.ts +17 -0
- package/types/locale/src/lib/locales/zh-cn/progress-step.d.ts +3 -0
- package/types/locale/src/lib/locales/zh-cn/query-condition.d.ts +33 -0
- package/types/locale/src/lib/locales/zh-cn/query-solution.d.ts +41 -0
- package/types/locale/src/lib/locales/zh-cn/response-toolbar.d.ts +3 -0
- package/types/locale/src/lib/locales/zh-cn/scrollspy.d.ts +3 -0
- package/types/locale/src/lib/locales/zh-cn/section.d.ts +4 -0
- package/types/locale/src/lib/locales/zh-cn/sidebar.d.ts +3 -0
- package/types/locale/src/lib/locales/zh-cn/sort-editor.d.ts +15 -0
- package/types/locale/src/lib/locales/zh-cn/tabs.d.ts +3 -0
- package/types/locale/src/lib/locales/zh-cn/tag.d.ts +4 -0
- package/types/locale/src/lib/locales/zh-cn/text.d.ts +10 -0
- package/types/locale/src/lib/locales/zh-cn/treetable.d.ts +8 -0
- package/types/locale/src/lib/locales/zh-cn/verify-detail.d.ts +5 -0
- package/types/message-box/src/components/footer/footer.component.d.ts +4 -0
- package/types/message-box/src/components/message-content/reactive-content.component.d.ts +3 -0
- package/types/message-box/src/components/message-content/static-content.component.d.ts +3 -0
- package/types/message-box/src/components/message-detail/exception-message.component.d.ts +3 -0
- package/types/message-box/src/components/message-detail/static-message.component.d.ts +2 -0
- package/types/message-box/src/components/reactive-editor/textarea.component.d.ts +3 -0
- package/types/message-box/src/composition/types.d.ts +9 -0
- package/types/message-box/src/composition/use-copy.d.ts +1 -17
- package/types/message-box/src/composition/use-editor.d.ts +4 -0
- package/types/message-box/src/composition/use-feedback.d.ts +2 -0
- package/types/message-box/src/message-box.component.d.ts +21 -23
- package/types/message-box/src/message-box.props.d.ts +8 -6
- package/types/modal/index.d.ts +2 -1
- package/types/modal/src/modal.component.d.ts +7 -5
- package/types/modal/src/modal.service.d.ts +17 -0
- package/types/{data-grid/src/composition/use-edit.d.ts → nav/index.d.ts} +8 -3
- package/types/nav/src/composition/types.d.ts +6 -0
- package/types/nav/src/nav.component.d.ts +87 -0
- package/types/nav/src/nav.props.d.ts +62 -0
- package/types/notify/src/components/toast.component.d.ts +4 -2
- package/types/notify/src/notify.component.d.ts +130 -0
- package/types/notify/src/notify.service.d.ts +4 -0
- package/types/number-range/index.d.ts +1 -0
- package/types/number-range/src/components/spinner.component.d.ts +4 -0
- package/types/number-range/src/components/text-box.component.d.ts +4 -0
- package/types/number-range/src/composition/types.d.ts +31 -29
- package/types/number-range/src/composition/use-format.d.ts +4 -0
- package/types/number-range/src/composition/use-number.d.ts +4 -0
- package/types/number-range/src/composition/use-spinner.d.ts +4 -0
- package/types/number-range/src/composition/use-text-box.d.ts +4 -0
- package/types/number-range/src/number-range.component.d.ts +4 -245
- package/types/number-range/src/number-range.props.d.ts +3 -200
- package/types/number-range/src/schema/schema-mapper.d.ts +2 -0
- package/types/number-spinner/index.d.ts +2 -0
- package/types/number-spinner/src/components/spinner.component.d.ts +4 -0
- package/types/number-spinner/src/components/text-box.component.d.ts +4 -0
- package/types/number-spinner/src/composition/types.d.ts +33 -28
- package/types/number-spinner/src/composition/use-format.d.ts +4 -0
- package/types/number-spinner/src/composition/use-number.d.ts +4 -0
- package/types/number-spinner/src/composition/use-spinner.d.ts +4 -0
- package/types/number-spinner/src/composition/use-text-box.d.ts +4 -0
- package/types/number-spinner/src/designer/number-spinner.component.d.ts +6 -0
- package/types/number-spinner/src/number-spinner.component.d.ts +4 -200
- package/types/number-spinner/src/number-spinner.props.d.ts +3 -165
- package/types/number-spinner/src/schema/schema-mapper.d.ts +2 -0
- package/types/order/index.d.ts +8 -0
- package/types/order/src/order.props.d.ts +44 -0
- package/types/overlay/src/overlay.component.d.ts +10 -2
- package/types/overlay/src/overlay.props.d.ts +4 -1
- package/types/overlay/src/overlay.service.d.ts +16 -0
- package/types/page-footer/index.d.ts +8 -0
- package/types/page-footer/src/page-footer.props.d.ts +40 -0
- package/types/page-header/index.d.ts +10 -0
- package/types/page-header/src/page-header.props.d.ts +4 -0
- package/types/page-header/src/schema/schema-mapper.d.ts +2 -0
- package/types/pagination/src/components/pages/page-list.component.d.ts +1 -1
- package/types/pagination/src/pagination.components.d.ts +5 -3
- package/types/popover/src/composition/types.d.ts +24 -0
- package/types/popover/src/composition/use-host.d.ts +3 -0
- package/types/popover/src/composition/use-popup.d.ts +4 -0
- package/types/popover/src/composition/use-position.d.ts +4 -0
- package/types/popover/src/composition/use-resize.d.ts +4 -0
- package/types/popover/src/popover.component.d.ts +82 -2
- package/types/popover/src/popover.props.d.ts +37 -1
- package/types/propress/index.d.ts +8 -0
- package/types/propress/src/progress.props.d.ts +49 -0
- package/types/query-solution/index.d.ts +25 -0
- package/types/query-solution/src/designer/query-solution.design.component.d.ts +6 -0
- package/types/query-solution/src/query-solution.component.d.ts +6 -0
- package/types/query-solution/src/query-solution.d.ts +40 -0
- package/types/query-solution/src/query-solution.props.d.ts +19 -0
- package/types/query-solution/src/schema/preset-resolver.d.ts +5 -0
- package/types/query-solution/src/schema/schema-mapper.d.ts +2 -0
- package/types/radio-group/index.d.ts +1 -0
- package/types/radio-group/src/radio-group.component.d.ts +4 -89
- package/types/radio-group/src/radio-group.props.d.ts +2 -70
- package/types/radio-group/src/schema/schema-mapper.d.ts +2 -0
- package/types/{combo-list/src/composition/use-option.d.ts → rate/index.d.ts} +8 -4
- package/types/rate/src/rate.component.d.ts +124 -0
- package/types/rate/src/rate.props.d.ts +86 -0
- package/types/response-toolbar/index.d.ts +10 -0
- package/types/response-toolbar/src/components/dropdown/toolbar-dropdown-menu.component.d.ts +5 -0
- package/types/response-toolbar/src/components/dropdown/toolbar-dropdown.component.d.ts +7 -0
- package/types/response-toolbar/src/composition/types.d.ts +9 -0
- package/types/response-toolbar/src/composition/use-icon.d.ts +2 -0
- package/types/response-toolbar/src/composition/use-toolbar-item.d.ts +2 -0
- package/types/response-toolbar/src/response-toolbar.props.d.ts +26 -0
- package/types/response-toolbar/src/types/response-toolbar-dropdwon-item.d.ts +13 -0
- package/types/response-toolbar/src/types/response-toolbar-group.d.ts +19 -0
- package/types/response-toolbar/src/types/response-toolbar-item-base.d.ts +36 -0
- package/types/response-toolbar/src/types/response-toolbar-item.d.ts +4 -0
- package/types/search-box/index.d.ts +24 -0
- package/types/search-box/src/components/search-box-container.props.d.ts +21 -0
- package/types/search-box/src/schema/schema-mapper.d.ts +2 -0
- package/types/search-box/src/search-box.props.d.ts +4 -0
- package/types/section/index.d.ts +2 -0
- package/types/section/src/schema/schema-mapper.d.ts +2 -0
- package/types/section/src/section.component.d.ts +4 -185
- package/types/section/src/section.props.d.ts +3 -86
- package/types/splitter/index.d.ts +10 -0
- package/types/splitter/src/components/splitter-pane.props.d.ts +5 -0
- package/types/splitter/src/composition/types.d.ts +23 -0
- package/types/splitter/src/composition/use-resize-handle.d.ts +3 -0
- package/types/splitter/src/composition/use-resize-pane.d.ts +3 -0
- package/types/splitter/src/schema/splitter-pane-schema-mapper.d.ts +2 -0
- package/types/splitter/src/schema/splitter-schema-mapper.d.ts +2 -0
- package/types/splitter/src/splitter.props.d.ts +5 -0
- package/types/step/index.d.ts +8 -0
- package/types/step/src/step.props.d.ts +46 -0
- package/types/switch/index.d.ts +1 -0
- package/types/switch/src/schema/schema-mapper.d.ts +2 -0
- package/types/switch/src/switch.component.d.ts +4 -64
- package/types/switch/src/switch.props.d.ts +3 -35
- package/types/tabs/index.d.ts +2 -0
- package/types/tabs/src/components/more-pages-button.component.d.ts +5 -0
- package/types/tabs/src/components/tab-header-dropdown-menu.component.d.ts +5 -0
- package/types/tabs/src/components/tab-header-item.component.d.ts +4 -0
- package/types/tabs/src/components/tab-header.component.d.ts +4 -0
- package/types/tabs/src/components/tab-page.component.d.ts +4 -99
- package/types/tabs/src/components/tab-page.props.d.ts +3 -47
- package/types/tabs/src/composition/types.d.ts +36 -5
- package/types/tabs/src/composition/use-dropdown.d.ts +3 -0
- package/types/tabs/src/composition/use-nav.d.ts +4 -0
- package/types/tabs/src/composition/use-one-page.d.ts +4 -0
- package/types/tabs/src/composition/use-tabs.d.ts +3 -2
- package/types/tabs/src/schema/schema-mapper.d.ts +2 -0
- package/types/tabs/src/tabs.props.d.ts +5 -69
- package/types/tags/index.d.ts +8 -0
- package/types/tags/src/composition/types.d.ts +13 -0
- package/types/tags/src/composition/use-draggable.d.ts +4 -0
- package/types/tags/src/tags.props.d.ts +92 -0
- package/types/text/src/text.component.d.ts +4 -2
- package/types/time-picker/index.d.ts +11 -0
- package/types/time-picker/src/components/time-holder.d.ts +82 -0
- package/types/time-picker/src/components/time.props.d.ts +48 -0
- package/types/time-picker/src/components/utils/check.d.ts +1 -0
- package/types/time-picker/src/schema/schema-mapper.d.ts +2 -0
- package/types/time-picker/src/time-picker.props.d.ts +4 -0
- package/types/tooltip/src/composition/use-adjust-position.d.ts +15 -0
- package/types/tooltip/src/tooltip.component.d.ts +4 -2
- package/types/tooltip/src/tooltip.directive.d.ts +5 -0
- package/types/transfer/index.d.ts +8 -0
- package/types/transfer/src/transfer.props.d.ts +71 -0
- package/types/tree-view/index.d.ts +8 -0
- package/types/tree-view/src/components/data/control-tree-view.component.d.ts +108 -0
- package/types/tree-view/src/components/data/tree-area.component.d.ts +8 -0
- package/types/tree-view/src/composition/types.d.ts +97 -0
- package/types/tree-view/src/composition/use-auto-check-children-and-cascade.d.ts +4 -0
- package/types/tree-view/src/composition/use-tree-data-view.d.ts +21 -0
- package/types/tree-view/src/composition/use-tree-node-icon.d.ts +4 -0
- package/types/tree-view/src/composition/use-tree-node-lines.d.ts +3 -0
- package/types/tree-view/src/composition/use-visual-tree-node.d.ts +9 -0
- package/types/tree-view/src/control-tree-view.props.d.ts +58 -0
- package/types/tree-view/src/tree-view.component.d.ts +97 -0
- package/types/tree-view/src/tree-view.props.d.ts +54 -0
- package/types/uploader/index.d.ts +25 -0
- package/types/uploader/src/components/sub-component.props.d.ts +63 -0
- package/types/uploader/src/components/upload-progress.component.d.ts +41 -0
- package/types/uploader/src/composition/type.d.ts +135 -0
- package/types/uploader/src/service/get-service.d.ts +2 -0
- package/types/uploader/src/uploader.props.d.ts +156 -0
- package/types/verify-detail/index.d.ts +23 -0
- package/types/verify-detail/src/verify-detail.component.d.ts +70 -0
- package/types/verify-detail/src/verify-detail.props.d.ts +36 -0
- package/uploader/index.esm.js +1972 -0
- package/uploader/index.umd.js +17 -0
- package/uploader/package.json +8 -0
- package/uploader/style.css +1 -0
- package/verify-detail/index.esm.js +187 -0
- package/verify-detail/index.umd.js +1 -0
- package/verify-detail/package.json +8 -0
- package/verify-detail/style.css +1 -0
- package/types/combo-list/src/components/option.component.d.ts +0 -39
- package/types/combo-list/src/components/options.component.d.ts +0 -10
- package/types/combo-list/src/composition/use-combo-list.d.ts +0 -30
- package/types/combo-list/src/composition/use-options.d.ts +0 -2
- package/types/combo-list/src/composition/use-panel.d.ts +0 -8
- package/types/combo-list/src/const.d.ts +0 -40
- package/types/combo-list/src/types.d.ts +0 -186
- package/types/data-grid/src/data-grid.component.d.ts +0 -278
- package/types/list-view/src/components/list-view-checkbox.component.d.ts +0 -32
- package/types/number-range/src/composition/use-data.d.ts +0 -19
- package/types/number-range/src/composition/use-util.d.ts +0 -19
- package/types/number-spinner/src/composition/use-util.d.ts +0 -19
- package/types/tabs/src/tabs.component.d.ts +0 -149
package/button-edit/index.umd.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(m,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],t):(m=typeof globalThis<"u"?globalThis:m||self,t(m["button-edit"]={},m.Vue))})(this,function(m,t){"use strict";const w={id:String,buttonContent:{type:String,default:'<i class="f-icon f-icon-lookup"></i>'},autoComplete:{type:Boolean,default:!1},customClass:{type:String,default:""},disable:{type:Boolean,default:!1},editable:{type:Boolean,default:!0},enableClear:{type:Boolean,default:!1},modelValue:{type:String,default:""},readonly:{type:Boolean,default:!1},textAlign:{type:String,default:"left"},showButtonWhenDisabled:{type:Boolean,default:!1},enableTitle:{type:Boolean,default:!1},inputType:{type:String,default:"text"},forcePlaceholder:{type:Boolean,default:!1},placeholder:{type:String,default:""},minLength:Number,maxLength:Number,tabIndex:Number};function P(e,o,l){const f=t.computed(()=>({"input-group-append":!0,"append-force-show":e.showButtonWhenDisabled&&(e.readonly||e.disable)})),u=t.computed(()=>e.showButtonWhenDisabled||(!e.editable||!e.readonly)&&!e.disable);function a(c){u.value&&(l.value=!0,o.emit("clickButton",{origin:c,value:e.modelValue})),c.stopPropagation()}function i(c){o.emit("mouseEnterIcon",c)}function s(c){o.emit("mouseLeaveIcon",c)}function d(){o.emit("mouseOverButton")}return{buttonClass:f,onClickButton:a,onMouseEnterButton:i,onMouseLeaveButton:s,onMouseOverButton:d}}function M(e,o,l,f){const u=t.computed(()=>e.enableTitle?l.value:""),a=t.computed(()=>(e.disable||e.readonly)&&!e.forcePlaceholder?"":e.placeholder),i=t.computed(()=>e.readonly||!e.editable);let s=!1;const d=t.computed(()=>!e.disable&&s),c=t.computed(()=>({"text-left":e.textAlign==="left","text-center":e.textAlign==="center","text-right":e.textAlign==="right","form-control":!0,"f-utils-fill":!0}));function x(n,r=!0){l.value!==n&&(l.value=n,r&&o.emit("change",n),o.emit("update:modelValue",n))}t.watch(()=>e.modelValue,n=>{l.value=n,o.emit("change",n)});function g(n){s=!1,o.emit("blur",n),n.stopPropagation()}function B(n){o.emit("click",n)}function b(n){if(e.disable){s=!0;return}s=!0,i.value||o.emit("focus",n)}function y(n){o.emit("input",n.target.value);const r=n.target.value;f.value=r,l.value!==r&&x(r,!1)}function T(n){n.target.tagName!=="INPUT"&&n.preventDefault(),n.stopPropagation()}function v(n){o.emit("keydown",n)}function k(n){o.emit("keyup",n)}function V(n){const r=n.target.value;x(r)}return{hasFocusedTextBox:d,isTextBoxReadonly:i,textBoxClass:c,textBoxPlaceholder:a,textBoxTitle:u,changeTextBoxValue:x,onBlurTextBox:g,onClickTextBox:B,onFocusTextBox:b,onInput:y,onKeyDownTextBox:v,onKeyUpTextBox:k,onMouseDownTextBox:T,onTextBoxValueChange:V}}function N(e,o,l,f,u){const a=t.ref(!1),i=t.computed(()=>e.enableClear&&!e.readonly&&!e.disable),{changeTextBoxValue:s}=M(e,o,l,u);function d(B){a.value=B}t.watch(u,()=>{f.value?d(!!u.value):d(!1)});function c(B){const b=!e.readonly&&!e.disable&&e.editable,y=!e.editable;B.stopPropagation(),(b||y)&&(s("",!1),d(!a.value),o.emit("clear"))}function x(B){if(!!i.value){if(!l.value){d(!1);return}(!e.editable||!e.readonly)&&!e.disable&&d(!0)}}function g(B){!i.value||d(!1)}return{enableClearButton:i,showClearButton:a,onClearValue:c,onMouseEnterTextBox:x,onMouseLeaveTextBox:g}}const E={popupContentPosition:{type:Object,default:{left:0,top:0}}},S=t.defineComponent({name:"FOverlay",props:E,emits:["click"],setup(e,o){const l=t.ref(e.popupContentPosition);function f(a){o.emit("click"),a.preventDefault(),a.stopPropagation()}const u=t.computed(()=>({position:"relative",left:`${l.value.left}px`,top:`${l.value.top}px`}));return()=>t.createVNode(t.Teleport,{to:"body"},{default:()=>{var a,i;return[t.createVNode("div",{class:"overlay-container",style:"pointer-events: auto;",onClick:s=>f(s)},[t.createVNode("div",{style:u.value},[(i=(a=o.slots).default)==null?void 0:i.call(a)])])]}})}}),p=t.defineComponent({name:"FButtonEdit",props:w,emits:["updateExtendInfo","clear","change","click","clickButton","blur","focus","mouseEnterIcon","mouseLeaveIcon","keyup","keydown","inputClick","input","update:modelValue"],setup(e,o){const l=t.ref(),f=t.ref(e.modelValue),u=t.ref(!1),{buttonClass:a,onClickButton:i,onMouseEnterButton:s,onMouseLeaveButton:d}=P(e,o,u),c=t.ref(""),{hasFocusedTextBox:x,isTextBoxReadonly:g,textBoxClass:B,textBoxPlaceholder:b,textBoxTitle:y,onBlurTextBox:T,onClickTextBox:v,onFocusTextBox:k,onInput:V,onKeyDownTextBox:n,onKeyUpTextBox:r,onMouseDownTextBox:L,onTextBoxValueChange:O}=M(e,o,f,c),{enableClearButton:D,showClearButton:F,onClearValue:K,onMouseEnterTextBox:j,onMouseLeaveTextBox:A}=N(e,o,f,x,c),R=t.computed(()=>({"input-group":!0,"f-state-disable":e.disable,"f-state-editable":e.editable&&!e.disable&&!e.readonly,"f-state-readonly":e.readonly&&!e.disable,"f-state-focus":x}));function U(){u.value=!1}const W=t.computed(()=>u.value),_=()=>{if(l.value){const C=l.value.getBoundingClientRect(),{left:h,top:G,height:H}=C;return{left:h,top:G+H}}return{left:0,top:0}};function q(C){u.value=!1}return o.expose({commitValue:q}),()=>t.createVNode(t.Fragment,null,[t.createVNode("div",t.mergeProps(o.attrs,{ref:l,class:"f-cmp-inputgroup",id:e.id}),[t.createVNode("div",{class:[e.customClass,R.value],onMouseenter:j,onMouseleave:A},[t.createVNode("input",{name:"input-group-value",autocomplete:""+e.autoComplete,class:B.value,disabled:e.disable,maxlength:e.maxLength,minlength:e.minLength,placeholder:b.value,readonly:g.value,tabindex:e.tabIndex,title:y.value,type:e.inputType,value:f.value,onBlur:T,onChange:O,onClick:v,onFocus:k,onInput:V,onKeydown:n,onKeyup:r,onMousedown:L},null),t.createVNode("div",{class:a.value},[D.value&&t.withDirectives(t.createVNode("span",{class:"input-group-text input-group-clear",onClick:K},[t.createVNode("i",{class:"f-icon modal_close"},null)]),[[t.vShow,F.value]]),e.buttonContent&&t.createVNode("span",{class:"input-group-text input-group-append-button",onClick:i,onMouseenter:s,onMouseleave:d,innerHTML:e.buttonContent},null)])])]),W.value&&t.createVNode(S,{"popup-content-position":_(),onClick:U},{default:()=>{var C,h;return[(h=(C=o.slots).default)==null?void 0:h.call(C)]}})])}}),I={install(e){e.component(p.name,p)}};m.ButtonEdit=p,m.buttonEditProps=w,m.default=I,Object.defineProperties(m,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
1
|
+
(function(j,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],t):(j=typeof globalThis<"u"?globalThis:j||self,t(j["button-edit"]={},j.Vue))})(this,function(j,t){"use strict";const te={};function K(e){const{properties:n}=e;return Object.keys(n).reduce((i,o)=>(i[o]=n[o].type==="object"&&n[o].properties?K(n[o]):n[o].default,i),{})}function ne(e,n){const l=K(n);return Object.keys(e).reduce((i,o)=>(i[o]=e[o],i),l),l}function oe(e,n){return Object.keys(e).filter(i=>e[i]!=null).reduce((i,o)=>{if(n.has(o)){const r=n.get(o);if(typeof r=="string")i[r]=e[o];else{const d=r(o,e[o]);Object.assign(i,d)}}else i[o]=e[o];return i},{})}function ae(e,n,l=new Map){const i=ne(e,n);return oe(i,l)}function le(e,n,l=new Map){return te[n.title]=n,i=>{const o=ae(i,n,l),r=Object.keys(e).reduce((d,s)=>(d[s]=e[s].default,d),{});return Object.assign(r,o)}}function ie(e,n){return{customClass:n.class}}const se=new Map([["appearance",ie]]),ue={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://farris-design.gitee.io/button-edit.schema.json",title:"button-edit",description:"A Farris Input Component",type:"object",properties:{id:{description:"The unique identifier for a Input Group",type:"string"},type:{description:"The type string of Input Group component",type:"string",default:"button-edit"},appearance:{description:"",type:"object",properties:{class:{type:"string"},style:{type:"string"}},default:{}},binding:{description:"",type:"object",default:{}},disable:{type:"string",default:!1},editable:{description:"",type:"boolean",default:!0},enableLinkLabel:{description:"",type:"boolean",default:!1},label:{description:"",type:"string",default:""},lableWidth:{description:"",type:"number"},placeHolder:{description:"",type:"string",default:""},readonly:{description:"",type:"boolean",default:!1},require:{description:"",type:"boolean",default:!1},tabindex:{description:"",type:"number",default:-1},textAlign:{description:"",type:"string",enum:["left","middle","right"],default:"left"},visible:{description:"",type:"boolean",default:!0},onBlur:{description:"",type:"string",default:""},onClickLinkLabel:{description:"",type:"sting",default:""},autoComplete:{description:"",type:"boolean",default:!1},buttonContent:{description:"",type:"string",default:""},enableClear:{description:"",type:"boolean",default:!0},inputType:{description:"",type:"string",enum:["text","tag"],default:"text"},multiSelect:{description:"",type:"boolean",default:!1},popup:{description:"",type:"object",properties:{footerButtons:{type:"array",default:[]},height:{type:"number",default:600},dataMapping:{type:"object"},contents:{type:"array",default:[]},showMaxButton:{type:"boolean",default:!0},showCloseButton:{type:"boolean",default:!0},showFooter:{type:"boolean",default:!0},title:{type:"string",default:""},width:{type:"number",default:800}}},separator:{type:"string",default:","},showButtonWhenDisabled:{description:"",type:"boolean",default:!1},wrapText:{type:"boolean",default:!1},onClear:{description:"",type:"string",default:""}},required:["id","type"]},G={id:String,buttonContent:{type:String,default:'<i class="f-icon f-icon-lookup"></i>'},buttonBehavior:{type:String,default:"Popup"},autoComplete:{type:Boolean,default:!1},customClass:{type:String,default:""},disable:{type:Boolean,default:!1},editable:{type:Boolean,default:!0},enableClear:{type:Boolean,default:!1},modelValue:{type:String,default:""},readonly:{type:Boolean,default:!1},textAlign:{type:String,default:"left"},showButtonWhenDisabled:{type:Boolean,default:!1},enableTitle:{type:Boolean,default:!1},inputType:{type:String,default:"text"},forcePlaceholder:{type:Boolean,default:!1},placeholder:{type:String,default:""},minLength:Number,maxLength:Number,tabIndex:Number,popupHost:{type:Object},popupRightBoundary:{type:Object},popupOffsetX:{type:Object},popupOnInput:{type:Boolean,default:!1},popupOnFocus:{type:Boolean,default:!1},popupMinWidth:{type:Number,default:320},wrapText:{type:Boolean,default:!1},multiSelect:{type:Boolean,default:!1},separator:{type:String,default:","}},U=le(G,ue,se),re={popupContentPosition:{type:Object,default:{left:0,top:0}},host:{type:Object}},ce=t.defineComponent({name:"FOverlay",props:re,emits:["click"],setup(e,n){const l=t.ref(e.popupContentPosition),i=t.ref(e.host);function o(s){n.emit("click"),s.preventDefault(),s.stopPropagation()}const r=t.computed(()=>{const s=i.value;if(s){const y=s.getBoundingClientRect(),{left:f,top:m,height:g}=y;return{left:f,top:m+g}}return l.value}),d=t.computed(()=>({position:"relative",left:`${r.value.left}px`,top:`${r.value.top}px`}));return()=>t.createVNode(t.Teleport,{to:"body"},{default:()=>{var s,y;return[t.createVNode("div",{class:"overlay-container",style:"pointer-events: auto;",onClick:f=>o(f)},[t.createVNode("div",{style:d.value},[(y=(s=n.slots).default)==null?void 0:y.call(s)])])]}})}});function de(e){if(e.content&&e.content.render)return e.content.render;if(e.render&&typeof e.render=="function")return e.render}function fe(e){const n=document.createElement("div");n.style.display="contents";let l;const i=e.onClickCallback||(()=>{}),o=()=>{i(),l&&l.unmount()};return l=t.createApp({setup(){t.onUnmounted(()=>{document.body.removeChild(n)});const r=de(e);return()=>t.createVNode(ce,{"popup-content-position":e.popupPosition,host:e.host,onClick:o},{default:()=>[r&&r()]})}}),document.body.appendChild(n),l.mount(n),l}class pe{static show(n){return fe(n)}}function ge(e,n,l,i){const o=t.ref(e.buttonBehavior),r=t.ref(e.popupOnInput),d=t.computed(()=>({"input-group-append":!0,"append-force-show":e.showButtonWhenDisabled&&(e.readonly||e.disable)})),s=t.computed(()=>e.showButtonWhenDisabled||(!e.editable||!e.readonly)&&!e.disable);async function y(v){if(s.value){const C=!!n.slots.default;o.value==="Overlay"&&pe.show({host:l.value,render:()=>{if(n.slots.default)return n.slots.default()}}),C&&o.value==="Popup"&&i.togglePopup(),C&&r.value&&i.hidePopup(),n.emit("clickButton",{origin:v,value:e.modelValue})}v.stopPropagation()}function f(v){n.emit("mouseEnterIcon",v)}function m(v){n.emit("mouseLeaveIcon",v)}function g(){n.emit("mouseOverButton")}return{buttonClass:d,onClickButton:y,onMouseEnterButton:f,onMouseLeaveButton:m,onMouseOverButton:g}}function me(e,n,l,i,o,r){const d=t.ref(!1),s=t.computed(()=>e.enableClear&&!e.readonly&&!e.disable),{changeTextBoxValue:y}=r;function f(C){d.value=C}t.watch(o,()=>{i.value?f(!!o.value):f(!1)});function m(C){const T=!e.readonly&&!e.disable&&e.editable,b=!e.editable;C.stopPropagation(),(T||b)&&(y("",!1),f(!d.value),n.emit("clear"))}function g(C){if(s.value){if(!l.value){f(!1);return}(!e.editable||!e.readonly)&&!e.disable&&f(!0)}}function v(C){s.value&&f(!1)}return{enableClearButton:s,showClearButton:d,onClearValue:m,onMouseEnterTextBox:g,onMouseLeaveTextBox:v}}function he(e,n,l,i,o){const r=t.ref(e.popupOnInput),d=t.ref(e.popupOnFocus),{shouldPopupContent:s}=o,y=t.computed(()=>e.enableTitle?l.value:""),f=t.computed(()=>(e.disable||e.readonly)&&!e.forcePlaceholder?"":e.placeholder),m=t.computed(()=>e.readonly||!e.editable);let g=!1;const v=t.computed(()=>!e.disable&&g),C=t.computed(()=>({"text-left":e.textAlign==="left","text-center":e.textAlign==="center","text-right":e.textAlign==="right","form-control":!0,"f-utils-fill":!0})),T=t.computed(()=>({"input-group":!0,"f-state-disable":e.disable,"f-state-editable":e.editable&&!e.disable&&!e.readonly,"f-state-readonly":e.readonly&&!e.disable,"f-state-focus":v.value}));function b(p,V=!0){l.value!==p&&(l.value=p,V&&n.emit("change",p),n.emit("update:modelValue",p))}function M(p){s.value=!1,b(p,!0)}t.watch(()=>e.modelValue,p=>{l.value=p,n.emit("change",p)});function P(p){g=!1,n.emit("blur",p),p.stopPropagation()}function I(p){n.emit("click",p)}function w(p){if(e.disable){g=!0;return}g=!0,m.value||(n.emit("focus",p),d.value&&!s.value&&o.popup())}function O(p){n.emit("input",p.target.value);const V=p.target.value;i.value=V,l.value!==V&&b(V,!1),r.value&&!s.value&&o.popup()}function L(p){p.target.tagName!=="INPUT"&&p.preventDefault(),p.stopPropagation()}function R(p){n.emit("keydown",p)}function D(p){p.key==="Enter"&&(r.value||d.value)&&o.hidePopup(),n.emit("keyup",p)}function S(p){const V=p.target.value;p.stopPropagation(),b(V)}return{hasFocusedTextBox:v,isTextBoxReadonly:m,textBoxClass:C,textBoxPlaceholder:f,textBoxTitle:y,inputGroupClass:T,changeTextBoxValue:b,commitValue:M,onBlurTextBox:P,onClickTextBox:I,onFocusTextBox:w,onInput:O,onKeyDownTextBox:R,onKeyUpTextBox:D,onMouseDownTextBox:L,onTextBoxValueChange:S}}function ye(e,n,l){const i=t.ref(),o=t.ref(!1);function r(){const f=i.value;f&&f.show(l.value)}async function d(){!!n.slots.default&&(o.value=!o.value,await t.nextTick(),r())}async function s(){!!n.slots.default&&(o.value=!0,await t.nextTick(),r())}function y(){o.value=!1}return{hidePopup:y,popup:s,shouldPopupContent:o,togglePopup:d,popoverRef:i}}function ve(e,n,l){const{isTextBoxReadonly:i,textBoxClass:o,textBoxPlaceholder:r,textBoxTitle:d,onBlurTextBox:s,onClickTextBox:y,onFocusTextBox:f,onInput:m,onKeyDownTextBox:g,onKeyUpTextBox:v,onMouseDownTextBox:C,onTextBoxValueChange:T}=l;return()=>t.createVNode("input",{name:"input-group-value",autocomplete:e.autoComplete?"on":"off",class:o.value,disabled:e.disable,maxlength:e.maxLength,minlength:e.minLength,placeholder:r.value,readonly:i.value,tabindex:e.tabIndex,title:d.value,type:e.inputType,value:n.value,onBlur:s,onChange:T,onClick:y,onFocus:f,onInput:m,onKeydown:g,onKeyup:v,onMousedown:C},null)}const be={activeTag:{Type:String,default:""},addButtonText:{Type:String,default:""},customClass:{Type:String,default:""},customStyle:{Type:String,default:""},data:{type:Array,default:[]},enableAddButton:{Type:Boolean,default:!1},placeholder:{Type:String,default:""},selectable:{Type:Boolean,default:!1},showAddButton:{Type:Boolean,default:!1},showClose:{Type:Boolean,default:!1},showColor:{Type:Boolean,default:!1},showInput:{Type:Boolean,default:!1},tagType:{Type:String,default:""},tagStyle:{Type:String,default:""},wrapText:{Type:Boolean,default:!1},draggable:{Type:Boolean,default:!1}},Je="";function Be(e,n,l,i){const o=t.ref(-1),r=t.ref(!1);function d(m,g,v){m.stopPropagation(),g&&setTimeout(()=>{o.value=v,r.value=!0,g.moving=!0})}function s(m,g){if(m.preventDefault(),o.value!==g){const v=i.value[o.value],C=i.value;C.splice(o.value,1),C.splice(g,0,v),o.value=g}}function y(m,g){m.preventDefault(),m.dataTransfer&&(m.dataTransfer.dropEffect="move")}function f(m,g){g&&(g.moving=!1),l.value=i.value.filter(v=>v.type==="Tag").map(v=>v.payload),r.value=!1,n.emit("change",l.value)}return{dragstart:d,dragenter:s,dragover:y,dragend:f,isDragging:r}}const Ce=t.defineComponent({name:"FTags",props:be,emits:["remove","selectionChange","change"],setup(e,n){const l=t.ref(e.selectable),i=t.ref(e.customClass),o=t.ref(e.data),r=t.ref(e.tagType),d=t.ref(e.tagStyle),s=t.ref(e.showColor),y=t.ref(e.activeTag),f=t.ref(e.customStyle),m=t.ref(e.showClose),g=t.ref(e.showAddButton),v=t.ref(e.showInput),C=t.ref(e.addButtonText),T=t.ref(e.enableAddButton);t.ref(e.placeholder),t.ref(""),t.ref();const b=t.ref(),M=t.ref(e.wrapText),P=t.ref();function I(){const a=o.value.map(u=>({type:"Tag",payload:u}));return g.value&&a.push({type:"AddButton"}),a}const w=t.ref(I());function O(a){o.value=a,w.value=I()}const L=t.computed(()=>w.value.findIndex(a=>a.type==="Input")),R=Be(e,n,o,w),{dragstart:D,dragenter:S,dragover:p,dragend:V}=R;t.watch(()=>e.data,a=>O(a));const _=t.computed(()=>{const a={"farris-tags":!0,"farris-tags-checkable":l.value,"farris-tags-nowrap":!M.value};return i.value.split(" ").reduce((u,c)=>(u[c]=!0,u),a),a});function H(a){const u={"farris-tag-item":!0,"farris-tag-item-checked":l.value&&a.checked,"farris-tag-item-checkable":l.value,"farris-tag-item-has-color":s.value,"farris-tag-item-actived":y.value===a.name};if(r.value){const c=`farris-tag-item-${r.value}`;u[c]=!0}return u}const J=t.computed(()=>{const a={};return f.value&&f.value.split(";").reduce((u,c)=>{const k=c.split(":");return u[k[0]]=k[1],u},a),a});function z(a,u){l.value&&u.selectable&&(u.checked=!u.checked,y.value=u.checked?u.name:"",u.checked&&o.value.filter(c=>c.name!==u.name).forEach(c=>{c.checked=!u.checked}),n.emit("change",o.value),n.emit("selectionChange",u))}function h(a,u){let c;switch(a.key){case"Backspace":o.value=o.value.filter(k=>k.name!==u.name),n.emit("change",o.value);break;case"ArrowLeft":c=Math.max(b.value.scrollLeft+20,0),b.value.scrollLeft=c;break;case"ArrowRight":c=Math.max(b.value.scrollLeft-20,0),b.value.scrollLeft=c}}function B(a,u){const c=o.value.findIndex(k=>k.name===u.name);if(c>-1){const[k]=o.value.splice(c,1);w.value=I(),n.emit("change",o.value),n.emit("remove",o.value,k,c)}a.stopPropagation()}const x=t.computed(()=>({"farris-tag-item":!0,"farris-tag-add-button":!0,"farris-tag-add-button-disabled":!T.value}));function A(a){}function N(){return t.createVNode("li",{class:x.value,onClick:a=>void 0},[t.createVNode("span",{class:"f-icon f-icon-amplification"},null),t.createVNode("span",{class:"farris-tag-add-text"},[C.value])])}function W(a){if(a&&!a.innerText){const u=L.value;if(u>0){const[c]=o.value.splice(u-1,1);w.value.splice(u-1,1),n.emit("remove",o.value,c,u-1)}}}function X(a,u,c){a>-1&&(o.value.splice(a,0,{name:u,value:c,selectable:l.value}),w.value=I(),n.emit("change",o.value))}function q(a){if(a&&a.innerText){const u=a.innerText,c=L.value;X(c,u,u),a.innerText=""}}function Q(a){const u=a.target;u&&(u.innerText?q(u):n.emit("change",o.value))}function Ve(a){a.key==="Enter"&&q(a.target),a.key==="Backspace"&&(W(a.target),t.nextTick(()=>{P.value&&P.value.focus()}))}function Ne(){return t.createVNode("li",{class:"farris-tag-input-box"},[t.createVNode("div",{ref:P,class:"form-control",contenteditable:"true",onKeyup:Ve,onBlur:Q},null)])}function je(a,u){return t.createVNode("li",{class:H(a),style:J.value,tabindex:0,id:a.name,key:a.name,onClick:c=>z(c,a),onKeydown:c=>h(c,a),draggable:"true",onDragstart:c=>D(c,a,u),onDragenter:c=>S(c,u),onDragend:c=>V(c,a),onDragover:c=>p(c,u)},[t.createVNode("div",{title:a.name,class:"tag-box"},[a.name]),m.value&&t.createVNode("span",{class:"tag-delete"},[t.createVNode("i",{class:"f-icon f-icon-close",onClick:c=>B(c,a)},null)])])}function Me(){return w.value.map((a,u)=>{switch(a.type){case"Tag":return je(a.payload,u);case"AddButton":return N();case"Input":return Ne()}})}const De=t.computed(()=>({"farris-tags-item-container":!0,"farris-tag-item-capsule":d.value==="capsule"}));function Ae(a){const u=Math.max(b.value.scrollLeft-a.deltaX,0);b.value.scrollLeft=u}function We(a){const u=b.value,c=o.value.length-1;if(u){const k=Array.from(u.children).filter(E=>E.className.indexOf("farris-tag-item")>-1).findIndex(E=>{const F=E.getBoundingClientRect(),Y=window.getComputedStyle(E),ee=parseInt(Y["margin-left"],10)+F.width+parseInt(Y["margin-right"],10);return F.left+ee>a});if(k>-1)return k}return c}function Ee(a){if(v.value){const c=We(a.clientX)+1,E=w.value.filter(F=>F.type!=="Input");E.splice(c,0,{type:"Input"}),w.value=E,t.nextTick(()=>{P.value&&P.value.focus()})}}function Fe(a){var c;a.preventDefault(),a.stopPropagation();const u=(c=a.dataTransfer)==null?void 0:c.getData("Text");if(u){const k=u.split(":"),E=k[0],F=k[1];[...o.value].findIndex(Z=>(console.log(`${Z.value} === ${F} is ${Z.value===F}`),Z.value===F))>-1||X(o.value.length,E,F)}}function Xe(a){a.preventDefault()}return()=>t.createVNode("div",{class:_.value,onClick:Ee,onDrop:Fe,onDragover:Xe},[t.createVNode("ul",{ref:b,class:De.value,onWheel:a=>Ae(a)},[Me()])])}});function Te(e,n,l){const i=t.ref(e.separator),{changeTextBoxValue:o}=l,r=t.computed(()=>n.value?n.value.split(i.value).map(s=>({name:s,selectable:!0})):[]);function d(s){o(s.map(y=>y.name).join(i.value),!0)}return()=>t.createVNode(Ce,{class:"form-control",data:r.value,showClose:!0,showInput:!0,onChange:d},null)}function xe(e,n,l){const{buttonClass:i,onClickButton:o,onMouseEnterButton:r,onMouseLeaveButton:d}=n,{enableClearButton:s,showClearButton:y,onClearValue:f}=l;return()=>t.createVNode("div",{class:i.value},[s.value&&t.withDirectives(t.createVNode("span",{class:"input-group-text input-group-clear",onClick:f},[t.createVNode("i",{class:"f-icon modal_close"},null)]),[[t.vShow,y.value]]),e.buttonContent&&t.createVNode("span",{class:"input-group-text input-group-append-button",innerHTML:e.buttonContent,onClick:o,onMouseenter:r,onMouseleave:d},null)])}const we={title:{type:String},placement:{type:String,default:"bottom"},reference:{type:Object},host:{type:Object},leftBoundary:{type:Object},rightBoundary:{type:Object},visible:{type:Boolean,default:!1},class:{type:String},offsetX:{type:Object,default:t.ref(0)},zIndex:{type:Number,default:-1},keepWidthWithReference:{type:Boolean,default:!1},fitContent:{type:Boolean,default:!1},minWidth:{type:Number,default:-1}},Qe="";function ke(e){const n=e.host?e.host:"body",l=t.computed(()=>n==="body"?0:n?n.getBoundingClientRect().top:0),i=t.computed(()=>n==="body"?0:n?n.getBoundingClientRect().left:0),o=t.computed(()=>n==="body"?document.body.getBoundingClientRect().width:n?n.getBoundingClientRect().width-(e.rightBoundary?e.rightBoundary.getBoundingClientRect().width:0):document.body.getBoundingClientRect().width);return{host:n,hostLeft:i,hostTop:l,hostWidth:o}}function Pe(e,n,l,i){var z;const o=t.ref(0),r=t.ref(((z=e.offsetX)==null?void 0:z.value)||0),d=t.ref(-1),s=t.ref(-1),y=t.ref(-1),f=t.ref(e.placement),m=t.ref(0),g=t.ref(0),v=t.ref(0),C=t.ref(document.documentElement.scrollLeft),T=t.ref(document.documentElement.scrollTop),{hostLeft:b,hostTop:M,hostWidth:P}=i;t.watch(e.offsetX,h=>{o.value=h-r.value});const I=t.computed(()=>{const h={left:`${g.value}px`,top:`${v.value}px`,transform:`translateX(${o.value}px)`};return e.zIndex!==-1&&(h["z-index"]=e.zIndex),d.value!==-1&&(h.width=`${d.value}px`),h}),w=t.computed(()=>({left:`${m.value}px`}));function O(h){if(h&&e.keepWidthWithReference){const B=h.getBoundingClientRect();d.value=Math.max(e.minWidth,B.width)}}function L(h,B){const x=P.value-h.width-4;return x>0?x:B}function R(h,B,x){const A=m.value,N=B.left-b.value+B.width/2+C.value,W=B.top-M.value-(h.height+x.height)+T.value;return{popoverLeft:N,popoverTop:W,arrowLeft:A}}function D(h,B,x){return B.top-M.value+(B.height+x.height)+T.value}function S(h,B){const x=L(B,h),A=h<=x?m.value:h-x;return{popoverLeft:Math.min(h,x),arrowLeft:A}}function p(h,B,x){const A=B.left-b.value+B.width/2-(x.width/2-(h.left-b.value))+C.value,{arrowLeft:N,popoverLeft:W}=S(A,h),X=D(h,B,x);return{popoverLeft:W,popoverTop:X,arrowLeft:N}}function V(h,B,x){const A=B.left-b.value+C.value,{arrowLeft:N,popoverLeft:W}=S(A,h),X=D(h,B,x);return{popoverLeft:W,popoverTop:X,arrowLeft:N}}const _=new Map([["top",R],["bottom",p],["bottom-left",V]]);function H(h){var W;const B=h.getBoundingClientRect();s.value=B.top,y.value=B.left;const x=n.value.getBoundingClientRect(),A=(W=l.value)==null?void 0:W.getBoundingClientRect(),N=_.get(f.value);if(N){const{arrowLeft:X,popoverLeft:q,popoverTop:Q}=N(A,B,x);m.value=X,g.value=q,v.value=Q}e.keepWidthWithReference&&O(h)}function J(h){if(h){const B=h.getBoundingClientRect();(B.left!==y.value||B.top!==s.value)&&H(h)}}return{arrowStyle:w,popoverStyle:I,position:f,popoverWidth:d,fitToReference:O,followToReferencePosition:J,locateToReference:H}}function Ie(e,n,l,i,o,r,d){const s=t.ref(e.visible),y=t.computed(()=>s.value),{fitToReference:f,locateToReference:m}=d;let g;function v(){s.value=!1,document.body.removeEventListener("click",g),n.emit("hidden")}g=T=>{if(!o.value.contains(T.target)){const b=o.value.closest(".popover");b&&b.removeEventListener("click",g),v()}};async function C(T){if(i.value&&l.value&&T){s.value=!0,o.value=T,await t.nextTick(),m(T),r.value&&f(T),document.body.addEventListener("click",g);const b=T.closest(".popover");b&&b.addEventListener("click",g),n.emit("shown")}}return n.expose({hide:v,show:C,shown:y}),{showPopover:s,hidePopverOnClickBodyHandler:g}}function Oe(e,n,l,i,o){const{popoverWidth:r,fitToReference:d,followToReferencePosition:s}=o;function y(){if(l.value){s(l.value);const f=l.value.getBoundingClientRect();i.value&&f.width!==r.value&&d(l.value)}}return{onResize:y}}const Re=t.defineComponent({name:"FPopover",props:we,emits:["shown","hidden"],setup(e,n){const l=t.ref(),i=t.ref(),o=t.ref(e.reference),r=t.ref(e.keepWidthWithReference),d=t.computed(()=>!!e.title),s=ke(e),{host:y}=s,f=Pe(e,l,i,s),{position:m,arrowStyle:g,popoverStyle:v,fitToReference:C,locateToReference:T}=f,{showPopover:b,hidePopverOnClickBodyHandler:M}=Ie(e,n,l,i,o,r,f),{onResize:P}=Oe(e,n,o,r,f),I=t.computed(()=>{const O=`popover in popover-${m.value}`,L=`bs-popover-${m.value}`,R={"popover-fitcontent":e.fitContent};return R[O]=!0,R[L]=!0,(e.class||"").split(" ").reduce((S,p)=>(S[p]=!0,S),R),R}),w=t.computed(()=>({"popover-content":!0,"popover-body":!0}));return t.onMounted(()=>{e.reference&&T(o.value),r.value&&C(o.value),window.addEventListener("resize",P)}),t.onUnmounted(()=>{document.body.removeEventListener("click",M),window.removeEventListener("resize",P)}),()=>t.createVNode(t.Teleport,{to:y},{default:()=>{var O;return[t.withDirectives(t.createVNode("div",{ref:i,class:I.value,style:v.value,onClick:L=>{L.stopPropagation()}},[t.createVNode("div",{ref:l,class:"popover-arrow arrow",style:g.value},null),d.value&&t.createVNode("h3",{class:"popover-title popover-header"},[e.title]),t.createVNode("div",{class:w.value},[n.slots.default&&((O=n.slots)==null?void 0:O.default())])]),[[t.vShow,b.value]])]}})}});function Le(e,n,l){const i=t.ref(e.popupMinWidth),{hidePopup:o,popoverRef:r}=l;return()=>t.createVNode(Re,{ref:r,visible:!0,placement:"bottom-left",host:e.popupHost,"keep-width-with-reference":!0,fitContent:!0,"right-boundary":e.popupRightBoundary,minWidth:i.value,offsetX:e.popupOffsetX,onHidden:o},{default:()=>{var d,s;return[(s=(d=n.slots).default)==null?void 0:s.call(d)]}})}const Ye="",$=t.defineComponent({name:"FButtonEdit",props:G,emits:["updateExtendInfo","clear","change","click","clickButton","blur","focus","mouseEnterIcon","mouseLeaveIcon","keyup","keydown","inputClick","input","update:modelValue"],setup(e,n){const l=t.ref(),i=t.ref(e.customClass),o=t.ref(e.modelValue),r=ye(e,n,l),{shouldPopupContent:d,hidePopup:s}=r,y=ge(e,n,l,r),f=t.ref(""),m=he(e,n,o,f,r),{hasFocusedTextBox:g,commitValue:v,inputGroupClass:C}=m,T=me(e,n,o,g,f,m),{onMouseEnterTextBox:b,onMouseLeaveTextBox:M}=T,P=t.computed(()=>{const D={"f-button-edit":!0,"f-cmp-inputgroup":!0,"f-button-edit-nowrap":!e.wrapText};return i.value&&i.value.split(" ").reduce((S,p)=>(S[p]=!0,S),D),D});function I(){return e.multiSelect&&e.inputType==="tag"?Te(e,o,m):ve(e,o,m)}let w=I();t.watch([()=>e.multiSelect,()=>e.inputType],()=>{w=I()});const O=xe(e,y,T),L=Le(e,n,r),R={commitValue:v,elementRef:l,hidePopup:s};return t.onMounted(()=>{l.value.componentInstance=R}),n.expose(R),()=>t.createVNode(t.Fragment,null,[t.createVNode("div",t.mergeProps(n.attrs,{ref:l,class:P.value,id:e.id}),[t.createVNode("div",{class:C.value,onMouseenter:b,onMouseleave:M},[w(),O()])]),d.value&&L()])}}),Se={install(e){e.component($.name,$)},register(e,n){e["button-edit"]=$,n["button-eidt"]=U},registerDesigner(e,n){e["button-edit"]=$,n["button-eidt"]=U}};j.ButtonEdit=$,j.buttonEditProps=G,j.default=Se,j.propsResolver=U,Object.defineProperties(j,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
package/button-edit/package.json
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.farris-tags .farris-tags-item-container{margin:0;padding:0}.farris-tags .farris-tags-item-container .farris-tag-item{display:inline-flex!important;padding:0 8px;margin:3px 6px 3px 0;line-height:24px;font-size:13px;color:#2d314e;background:#f6faff;border:1px solid #e6e6e6!important;white-space:nowrap;border-radius:3px;cursor:default;opacity:1;transition:all .3s cubic-bezier(.78,.14,.15,.86);max-width:9rem}.farris-tags .farris-tags-item-container .farris-tag-item a,.farris-tags .farris-tags-item-container .farris-tag-item a:hover{color:#000000d9}.farris-tags .farris-tags-item-container .farris-tag-item>a:first-child:last-child{display:inline-flex;margin:0 -8px;padding:0 8px}.farris-tags .farris-tags-item-container .farris-tag-item .tag-box{text-overflow:ellipsis;overflow:hidden;word-break:break-all;white-space:nowrap;display:inline-flex;max-width:7rem;vertical-align:middle}.farris-tags .farris-tags-item-container .farris-tag-item .tag-delete{display:inline-block;margin-left:6px;color:#0003;cursor:pointer;transition:all .3s cubic-bezier(.78,.14,.15,.86)}.farris-tags .farris-tags-item-container .farris-tag-item .tag-delete:hover{color:#000000d9}.farris-tags .farris-tags-item-container .farris-tag-item>.f-icon{font-size:12px}.farris-tags .farris-tags-item-container .farris-tag-item>.f-icon+span,.farris-tags .farris-tags-item-container .farris-tag-item>span+.f-icon{margin-left:7px}.farris-tags .farris-tags-item-container .farris-tag-item.farris-tag-item-success{color:#52c41a;background:#f6ffed;border-color:#b7eb8f}.farris-tags .farris-tags-item-container .farris-tag-item.farris-tag-item-info{color:#1890ff;background:#e6f7ff;border-color:#91d5ff}.farris-tags .farris-tags-item-container .farris-tag-item.farris-tag-item-error{color:#f5222d;background:#fff1f0;border-color:#ffa39e}.farris-tags .farris-tags-item-container .farris-tag-item.farris-tag-item-warning{color:#fa8c16;background:#fff7e6;border-color:#ffd591}.farris-tags .farris-tags-item-container .farris-tag-item.farris-tag-item-default{color:#2d314e;background:#f6faff;border:1px solid #e6e6e6}.farris-tags .farris-tags-item-container .farris-tag-item.farris-tag-item-checkable:not(.farris-tag-item-checked){cursor:pointer}.farris-tags .farris-tags-item-container .farris-tag-item.farris-tag-item-checkable:not(.farris-tag-item-checked):active{color:#59a1ff}.farris-tags .farris-tags-item-container .farris-tag-item.farris-tag-item-checkable:not(.farris-tag-item-checked):hover{color:#59a1ff}.farris-tags .farris-tags-item-container .farris-tag-item.farris-tag-item-checkdisabled{background-color:transparent;border-color:transparent;cursor:not-allowed;color:#00000073}.farris-tags .farris-tags-item-container .farris-tag-item.farris-tag-item-checked{background-color:#fff;border-color:#2a87ff;color:#2a87ff}.farris-tags .farris-tags-item-container .farris-tag-item:last-child{margin-right:0}.farris-tags .farris-tags-item-container .farris-tag-item.farris-tag-item-actived,.farris-tags .farris-tags-item-container .farris-tag-item:active{background-color:#2a87ff;color:#fff}.farris-tags .farris-tags-item-container .farris-tag-item.farris-tag-item-actived .tag-delete,.farris-tags .farris-tags-item-container .farris-tag-item:active .tag-delete{color:#fff}.farris-tags .farris-tags-item-container .farris-tag-add-button{cursor:pointer;background:#f9f9f9;border:1px dashed #babdc9}.farris-tags .farris-tags-item-container .farris-tag-add-button .farris-tag-add-text{color:#00000073;line-height:24px}.farris-tags .farris-tags-item-container .farris-tag-add-button .f-icon{color:#0003;line-height:24px}.farris-tags .farris-tags-item-container .farris-tag-add-button:hover{background-color:#f9f9f9;border-color:#59a1ff}.farris-tags .farris-tags-item-container .farris-tag-add-button:hover .farris-tag-add-text,.farris-tags .farris-tags-item-container .farris-tag-add-button:hover .f-icon{color:#59a1ff}.farris-tags .farris-tags-item-container .farris-tag-add-button.farris-tag-add-button-disabled{background-color:#f7f7f7;border-color:#dcdcdc;border-style:solid;cursor:not-allowed}.farris-tags .farris-tags-item-container .farris-tag-add-button.farris-tag-add-button-disabled .farris-tag-add-text{color:#00000040}.farris-tags .farris-tags-item-container .farris-tag-add-button.farris-tag-add-button-disabled:hover{background-color:#f7f7f7;border-color:#dcdcdc}.farris-tags .farris-tags-item-container .farris-tag-add-button.farris-tag-add-button-disabled:hover .farris-tag-add-text,.farris-tags .farris-tags-item-container .farris-tag-add-button.farris-tag-add-button-disabled:hover .f-icon{color:#00000040}.farris-tags .farris-tags-item-container .farris-tag-input-box{display:inline-flex!important;padding:0;margin:2px 3px 2px -3px;line-height:22px;font-size:13px}.farris-tags .farris-tags-item-container .farris-tag-input-box .form-control{padding:2px 0;min-width:2px;border:none;background:none;line-height:inherit;text-wrap:nowrap;width:100%!important;height:22px!important}.farris-tags .farris-tags-item-container .farris-tag-input-box .form-control:focus{box-shadow:none}.farris-tags .farris-tags-item-container .farris-tag-input-box .form-control:focus-visible{outline:none}.farris-tags .farris-tags-item-container.farris-tag-item-capsule .farris-tag-item{border-radius:24px}.farris-tags .farris-tags-item-container.farris-tag-item-capsule .farris-tag-item.farris-tag-item-checkable:not(.farris-tag-item-checked){background:#ffffff;border:1px solid #e6e6e6;cursor:pointer}.farris-tags .farris-tags-item-container.farris-tag-item-capsule .farris-tag-item.farris-tag-item-checkable:not(.farris-tag-item-checked):active{color:#59a1ff}.farris-tags .farris-tags-item-container.farris-tag-item-capsule .farris-tag-item.farris-tag-item-checkable:not(.farris-tag-item-checked):hover{color:#59a1ff}.farris-tags .farris-tags-item-container.farris-tag-item-capsule .farris-tag-item.farris-tag-item-checked{background-color:#2a87ff0f;border-color:#2a87ff29;color:#2a87ff}.farris-tags.farris-tags-checkable .farris-tag-item{line-height:22px}.farris-tags.farris-tags-nowrap{overflow:hidden}.farris-tags.farris-tags-nowrap .farris-tags-item-container{display:flex;flex-wrap:nowrap;overflow:hidden}.farris-tags .farris-tags-item-container .farris-tag-item.farris-tag-item-warning{color:#f5a144;border-color:#fad0a1;background:#fef5ec}.bs3.popover-top{margin-bottom:10px}.bs3.popover.top>.arrow{margin-left:-2px}.bs3.popover.top{margin-bottom:10px}.popover.bottom>.arrow{margin-left:-4px}.bs3.bs-popover-left{margin-right:.5rem}.bs3.bs-popover-right .arrow,.bs3.bs-popover-left .arrow{margin:.3rem 0}.arrow-left .arrow{left:calc(50% - 10px)}.bs-popover-bottom-left .arrow{top:calc((.5rem + 1px)*-1)}.bs-popover-bottom-left .arrow:before{top:0;border-bottom-color:#fff6!important}.bs-popover-bottom-left .arrow:before,.bs-popover-bottom-left .arrow:after{border-width:0 .5rem .5rem}.bs-popover-bottom-left .arrow:after{top:1px;border-bottom-color:#fff!important}.popover.popover-fitcontent .popover-body{max-width:initial;padding:initial}.f-button-edit .farris-tags.form-control{padding:0}.f-button-edit .farris-tag-item,.f-button-edit .farris-tag-input-box{line-height:17px!important;margin:2px 6px 2px 0!important}.f-button-edit .farris-tag-input-box .form-control{height:inherit!important;padding:1px 0!important}.f-button-edit-nowrap .input-group{flex-wrap:nowrap!important}.f-button-edit-nowrap .farris-tags{overflow:hidden}.f-button-edit-nowrap .farris-tags-item-container{display:flex;flex-wrap:nowrap;overflow:hidden}
|
|
@@ -0,0 +1,315 @@
|
|
|
1
|
+
import { defineComponent as j, ref as E, computed as z, onBeforeMount as J, onMounted as K, createVNode as c, Fragment as Q, withModifiers as I, createTextVNode as n } from "vue";
|
|
2
|
+
const U = {
|
|
3
|
+
/**
|
|
4
|
+
* 组件标识
|
|
5
|
+
*/
|
|
6
|
+
id: String
|
|
7
|
+
};
|
|
8
|
+
function Y() {
|
|
9
|
+
function x(l, t = 12) {
|
|
10
|
+
return +parseFloat(l.toPrecision(t));
|
|
11
|
+
}
|
|
12
|
+
function d(l) {
|
|
13
|
+
const t = l.toString().split(/[eE]/), r = (t[0].split(".")[1] || "").length - +(t[1] || 0);
|
|
14
|
+
return r > 0 ? r : 0;
|
|
15
|
+
}
|
|
16
|
+
function i(l) {
|
|
17
|
+
if (l.toString().indexOf("e") === -1)
|
|
18
|
+
return Number(l.toString().replace(".", ""));
|
|
19
|
+
const t = d(l);
|
|
20
|
+
return t > 0 ? x(l * 10 ** t) : l;
|
|
21
|
+
}
|
|
22
|
+
function h(l) {
|
|
23
|
+
a && (l > Number.MAX_SAFE_INTEGER || l < Number.MIN_SAFE_INTEGER) && console.warn(
|
|
24
|
+
`${l} is beyond boundary when transfer to integer, the results may not be accurate`
|
|
25
|
+
);
|
|
26
|
+
}
|
|
27
|
+
function v(l, t, ...r) {
|
|
28
|
+
if (r.length > 0)
|
|
29
|
+
return v(v(l, t), r[0], ...r.slice(1));
|
|
30
|
+
const f = i(l), C = i(t), M = d(l) + d(t), S = f * C;
|
|
31
|
+
return h(S), S / 10 ** M;
|
|
32
|
+
}
|
|
33
|
+
function m(l, t, ...r) {
|
|
34
|
+
if (r.length > 0)
|
|
35
|
+
return m(m(l, t), r[0], ...r.slice(1));
|
|
36
|
+
const f = 10 ** Math.max(d(l), d(t));
|
|
37
|
+
return (v(l, f) + v(t, f)) / f;
|
|
38
|
+
}
|
|
39
|
+
function b(l, t, ...r) {
|
|
40
|
+
if (r.length > 0)
|
|
41
|
+
return b(b(l, t), r[0], ...r.slice(1));
|
|
42
|
+
const f = 10 ** Math.max(d(l), d(t));
|
|
43
|
+
return (v(l, f) - v(t, f)) / f;
|
|
44
|
+
}
|
|
45
|
+
function p(l, t, ...r) {
|
|
46
|
+
if (r.length > 0)
|
|
47
|
+
return p(p(l, t), r[0], ...r.slice(1));
|
|
48
|
+
const f = i(l), C = i(t);
|
|
49
|
+
return h(f), h(C), v(
|
|
50
|
+
f / C,
|
|
51
|
+
10 ** (d(t) - d(l))
|
|
52
|
+
);
|
|
53
|
+
}
|
|
54
|
+
function s(l, t) {
|
|
55
|
+
const r = 10 ** t;
|
|
56
|
+
return p(Math.round(v(l, r)), r);
|
|
57
|
+
}
|
|
58
|
+
let a = !1;
|
|
59
|
+
function o(l = !0) {
|
|
60
|
+
a = l;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
strip: x,
|
|
64
|
+
plus: m,
|
|
65
|
+
minus: b,
|
|
66
|
+
times: v,
|
|
67
|
+
divide: p,
|
|
68
|
+
round: s,
|
|
69
|
+
digitLength: d,
|
|
70
|
+
float2Fixed: i,
|
|
71
|
+
enableBoundaryChecking: o
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
const q = /* @__PURE__ */ j({
|
|
75
|
+
name: "FCalculator",
|
|
76
|
+
props: U,
|
|
77
|
+
emits: [],
|
|
78
|
+
setup(x, d) {
|
|
79
|
+
const i = E(), h = E(), v = E(), m = E(), b = E(), p = E();
|
|
80
|
+
let s = "", a = "0", o = [], l = [], t, r;
|
|
81
|
+
const {
|
|
82
|
+
plus: f,
|
|
83
|
+
minus: C,
|
|
84
|
+
times: M,
|
|
85
|
+
divide: S
|
|
86
|
+
} = Y();
|
|
87
|
+
function F() {
|
|
88
|
+
i.value && m.value && b.value && p.value && (i.value.scrollWidth > m.value.offsetWidth ? (b.value.style.display = "block", p.value.style.display = "block") : (b.value.style.display = "none", p.value.style.display = "none"));
|
|
89
|
+
}
|
|
90
|
+
function _(e) {
|
|
91
|
+
i.value && (i.value.innerHTML = e);
|
|
92
|
+
}
|
|
93
|
+
function A(e) {
|
|
94
|
+
h.value && (h.value.innerHTML = e);
|
|
95
|
+
}
|
|
96
|
+
function H() {
|
|
97
|
+
return s.lastIndexOf("+") !== -1 || s.lastIndexOf("-") !== -1 || s.lastIndexOf("×") !== -1 || s.lastIndexOf("÷") !== -1;
|
|
98
|
+
}
|
|
99
|
+
function B(e, u, k) {
|
|
100
|
+
let g = 0;
|
|
101
|
+
switch (e = Number(e), u = Number(u), k) {
|
|
102
|
+
case "+":
|
|
103
|
+
g = f(e, u);
|
|
104
|
+
break;
|
|
105
|
+
case "-":
|
|
106
|
+
g = C(e, u);
|
|
107
|
+
break;
|
|
108
|
+
case "×":
|
|
109
|
+
g = M(e, u);
|
|
110
|
+
break;
|
|
111
|
+
case "÷":
|
|
112
|
+
g = S(e, u);
|
|
113
|
+
break;
|
|
114
|
+
}
|
|
115
|
+
return g;
|
|
116
|
+
}
|
|
117
|
+
function R(e) {
|
|
118
|
+
a.indexOf("0") === 0 && a.indexOf(".") === -1 || t === !0 ? a = e : a += e, t = !1, r = !1;
|
|
119
|
+
}
|
|
120
|
+
function V(e) {
|
|
121
|
+
t === !0 ? a = "0" + e : a.indexOf(".") === -1 && (a += e), t = !1, r = !1;
|
|
122
|
+
}
|
|
123
|
+
function W() {
|
|
124
|
+
a.indexOf("-") === -1 && a !== "0" ? a = "-" + a : a.indexOf("-") > -1 && a !== "0" && (a = a.substring(1));
|
|
125
|
+
}
|
|
126
|
+
function $(e) {
|
|
127
|
+
if (o.length < 2 && (t !== !0 || r === !0) ? (a = parseFloat(a) + "", s = s + " " + a + " " + e, o.push(a), l.push(e), t = !0) : o.length < 2 && H() && (s = s.substring(0, s.length - 1) + "" + e, l.push(e)), o.length === 2) {
|
|
128
|
+
const u = l[l.length - 2];
|
|
129
|
+
if (o[1] === "0" && u === "÷") {
|
|
130
|
+
o = [], a = "除数不能为零", s = "", t = !0;
|
|
131
|
+
return;
|
|
132
|
+
}
|
|
133
|
+
const k = B(o[0], o[1], u);
|
|
134
|
+
o = [], o.push(k), a = k + "", t = !0;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
function D() {
|
|
138
|
+
if (o.length > 0) {
|
|
139
|
+
const e = l.pop();
|
|
140
|
+
if (a === "0" && e === "÷") {
|
|
141
|
+
o = [], a = "除数不能为零", s = "", t = !0, r = !0;
|
|
142
|
+
return;
|
|
143
|
+
}
|
|
144
|
+
const u = B(o[0], a, e);
|
|
145
|
+
o = [], a = u + "", s = "", t = !0, r = !0;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
function G() {
|
|
149
|
+
a = "0";
|
|
150
|
+
}
|
|
151
|
+
function P() {
|
|
152
|
+
a = "0", s = "", t = !0, o = [], l = [];
|
|
153
|
+
}
|
|
154
|
+
function X() {
|
|
155
|
+
a = a.length > 1 ? a.substring(0, a.length - 1) : "0";
|
|
156
|
+
}
|
|
157
|
+
const y = z(() => `fv-calculator-main${Math.floor(Math.random() * 1e3).toString()}`);
|
|
158
|
+
function N(e) {
|
|
159
|
+
i.value && (i.value.scrollLeft += 50);
|
|
160
|
+
}
|
|
161
|
+
function O(e) {
|
|
162
|
+
i.value && (i.value.scrollLeft -= 50);
|
|
163
|
+
}
|
|
164
|
+
function w(e) {
|
|
165
|
+
if (v.value && !v.value.contains(e.target))
|
|
166
|
+
return;
|
|
167
|
+
const u = e.target.innerHTML;
|
|
168
|
+
switch (u) {
|
|
169
|
+
case "0":
|
|
170
|
+
case "1":
|
|
171
|
+
case "2":
|
|
172
|
+
case "3":
|
|
173
|
+
case "4":
|
|
174
|
+
case "5":
|
|
175
|
+
case "6":
|
|
176
|
+
case "7":
|
|
177
|
+
case "8":
|
|
178
|
+
case "9":
|
|
179
|
+
R(u);
|
|
180
|
+
break;
|
|
181
|
+
case ".":
|
|
182
|
+
V(u);
|
|
183
|
+
break;
|
|
184
|
+
case "±":
|
|
185
|
+
W();
|
|
186
|
+
break;
|
|
187
|
+
case "+":
|
|
188
|
+
case "-":
|
|
189
|
+
case "×":
|
|
190
|
+
case "÷":
|
|
191
|
+
$(u);
|
|
192
|
+
break;
|
|
193
|
+
case "=":
|
|
194
|
+
D();
|
|
195
|
+
break;
|
|
196
|
+
case "CE":
|
|
197
|
+
G();
|
|
198
|
+
break;
|
|
199
|
+
case "C":
|
|
200
|
+
P();
|
|
201
|
+
break;
|
|
202
|
+
case "Back":
|
|
203
|
+
X();
|
|
204
|
+
break;
|
|
205
|
+
}
|
|
206
|
+
_(s), A(a);
|
|
207
|
+
}
|
|
208
|
+
return J(() => {
|
|
209
|
+
}), K(() => {
|
|
210
|
+
var e, u, k, g, T, L;
|
|
211
|
+
i.value = (e = document.getElementById(y.value)) == null ? void 0 : e.querySelector("#fv-calculator-pre-step"), h.value = (u = document.getElementById(y.value)) == null ? void 0 : u.querySelector("#fv-calculator-show-input"), v.value = (k = document.getElementById(y.value)) == null ? void 0 : k.querySelector("#fv-calculator-num-symbol"), m.value = (g = document.getElementById(y.value)) == null ? void 0 : g.querySelector(".fv-calculator-pre"), b.value = (T = document.getElementById(y.value)) == null ? void 0 : T.querySelector(".fv-calculator-pre-left"), p.value = (L = document.getElementById(y.value)) == null ? void 0 : L.querySelector(".fv-calculator-pre-right"), F();
|
|
212
|
+
}), () => c(Q, null, [c("div", {
|
|
213
|
+
class: "fv-calculator-standard-main",
|
|
214
|
+
id: y.value,
|
|
215
|
+
onMousedown: I((e) => w(e), ["prevent"]),
|
|
216
|
+
onTouchstart: I((e) => w(e), ["prevent"])
|
|
217
|
+
}, [c("div", {
|
|
218
|
+
class: "fv-calculator-title"
|
|
219
|
+
}, [n("计算器")]), c("div", {
|
|
220
|
+
class: "fv-calculator-result"
|
|
221
|
+
}, [c("div", {
|
|
222
|
+
class: "fv-calculator-type",
|
|
223
|
+
id: "fv-calculator-show-bar"
|
|
224
|
+
}, [n("Standard")]), c("div", {
|
|
225
|
+
class: "fv-calculator-pre"
|
|
226
|
+
}, [c("div", {
|
|
227
|
+
class: "fv-calculator-pre-left",
|
|
228
|
+
style: "display:none;",
|
|
229
|
+
onMousedown: I((e) => O(), ["prevent"]),
|
|
230
|
+
onTouchstart: I((e) => O(), ["prevent"])
|
|
231
|
+
}, [n("<")]), c("div", {
|
|
232
|
+
class: "fv-calculator-pre-content",
|
|
233
|
+
id: "fv-calculator-pre-step"
|
|
234
|
+
}, null), c("div", {
|
|
235
|
+
class: "fv-calculator-pre-right",
|
|
236
|
+
style: "display:none;",
|
|
237
|
+
onMousedown: I((e) => N(), ["prevent"]),
|
|
238
|
+
onTouchstart: I((e) => N(), ["prevent"])
|
|
239
|
+
}, [n(">")])]), c("div", {
|
|
240
|
+
class: "fv-calculator-result-out"
|
|
241
|
+
}, [c("div", {
|
|
242
|
+
class: "fv-calculator-second",
|
|
243
|
+
id: "fv-calculator-show-input"
|
|
244
|
+
}, [n("0")])])]), c("ul", {
|
|
245
|
+
id: "fv-calculator-num-symbol"
|
|
246
|
+
}, [c("li", {
|
|
247
|
+
value: "37",
|
|
248
|
+
class: "fv-calculator-letter"
|
|
249
|
+
}, [n("CE")]), c("li", {
|
|
250
|
+
value: "38",
|
|
251
|
+
class: "fv-calculator-letter"
|
|
252
|
+
}, [n("C")]), c("li", {
|
|
253
|
+
value: "39",
|
|
254
|
+
class: "fv-calculator-letter"
|
|
255
|
+
}, [n("Back")]), c("li", {
|
|
256
|
+
value: "16",
|
|
257
|
+
class: "fv-calculator-operator"
|
|
258
|
+
}, [n("÷")]), c("li", {
|
|
259
|
+
class: "fv-calculator-number",
|
|
260
|
+
value: "7"
|
|
261
|
+
}, [n("7")]), c("li", {
|
|
262
|
+
class: "fv-calculator-number",
|
|
263
|
+
value: "8"
|
|
264
|
+
}, [n("8")]), c("li", {
|
|
265
|
+
class: "fv-calculator-number",
|
|
266
|
+
value: "9"
|
|
267
|
+
}, [n("9")]), c("li", {
|
|
268
|
+
value: "15",
|
|
269
|
+
class: "fv-calculator-operator"
|
|
270
|
+
}, [n("×")]), c("li", {
|
|
271
|
+
class: "fv-calculator-number",
|
|
272
|
+
value: "4"
|
|
273
|
+
}, [n("4")]), c("li", {
|
|
274
|
+
class: "fv-calculator-number",
|
|
275
|
+
value: "5"
|
|
276
|
+
}, [n("5")]), c("li", {
|
|
277
|
+
class: "fv-calculator-number",
|
|
278
|
+
value: "6"
|
|
279
|
+
}, [n("6")]), c("li", {
|
|
280
|
+
value: "14",
|
|
281
|
+
class: "fv-calculator-operator"
|
|
282
|
+
}, [n("-")]), c("li", {
|
|
283
|
+
class: "fv-calculator-number",
|
|
284
|
+
value: "1"
|
|
285
|
+
}, [n("1")]), c("li", {
|
|
286
|
+
class: "fv-calculator-number",
|
|
287
|
+
value: "2"
|
|
288
|
+
}, [n("2")]), c("li", {
|
|
289
|
+
class: "fv-calculator-number",
|
|
290
|
+
value: "3"
|
|
291
|
+
}, [n("3")]), c("li", {
|
|
292
|
+
value: "13",
|
|
293
|
+
class: "fv-calculator-operator"
|
|
294
|
+
}, [n("+")]), c("li", {
|
|
295
|
+
value: "11"
|
|
296
|
+
}, [n("±")]), c("li", {
|
|
297
|
+
class: "fv-calculator-number",
|
|
298
|
+
value: "0"
|
|
299
|
+
}, [n("0")]), c("li", {
|
|
300
|
+
value: "10"
|
|
301
|
+
}, [n(".")]), c("li", {
|
|
302
|
+
value: "12",
|
|
303
|
+
class: "fv-calculator-operator"
|
|
304
|
+
}, [n("=")])])])]);
|
|
305
|
+
}
|
|
306
|
+
}), ee = {
|
|
307
|
+
install(x) {
|
|
308
|
+
x.component(q.name, q);
|
|
309
|
+
}
|
|
310
|
+
};
|
|
311
|
+
export {
|
|
312
|
+
q as calculator,
|
|
313
|
+
U as calculatorProps,
|
|
314
|
+
ee as default
|
|
315
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(p,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(p=typeof globalThis<"u"?globalThis:p||self,e(p.calculator={},p.Vue))})(this,function(p,e){"use strict";const E={id:String};function q(){function v(a,l=12){return+parseFloat(a.toPrecision(l))}function f(a){const l=a.toString().split(/[eE]/),r=(l[0].split(".")[1]||"").length-+(l[1]||0);return r>0?r:0}function i(a){if(a.toString().indexOf("e")===-1)return Number(a.toString().replace(".",""));const l=f(a);return l>0?v(a*10**l):a}function h(a){c&&(a>Number.MAX_SAFE_INTEGER||a<Number.MIN_SAFE_INTEGER)&&console.warn(`${a} is beyond boundary when transfer to integer, the results may not be accurate`)}function d(a,l,...r){if(r.length>0)return d(d(a,l),r[0],...r.slice(1));const u=i(a),m=i(l),C=f(a)+f(l),T=u*m;return h(T),T/10**C}function g(a,l,...r){if(r.length>0)return g(g(a,l),r[0],...r.slice(1));const u=10**Math.max(f(a),f(l));return(d(a,u)+d(l,u))/u}function V(a,l,...r){if(r.length>0)return V(V(a,l),r[0],...r.slice(1));const u=10**Math.max(f(a),f(l));return(d(a,u)-d(l,u))/u}function N(a,l,...r){if(r.length>0)return N(N(a,l),r[0],...r.slice(1));const u=i(a),m=i(l);return h(u),h(m),d(u/m,10**(f(l)-f(a)))}function s(a,l){const r=10**l;return N(Math.round(d(a,r)),r)}let c=!1;function n(a=!0){c=a}return{strip:v,plus:g,minus:V,times:d,divide:N,round:s,digitLength:f,float2Fixed:i,enableBoundaryChecking:n}}const z="",k=e.defineComponent({name:"FCalculator",props:E,emits:[],setup(v,f){const i=e.ref(),h=e.ref(),d=e.ref(),g=e.ref(),V=e.ref(),N=e.ref();let s="",c="0",n=[],a=[],l,r;const{plus:u,minus:m,times:C,divide:T}=q();function F(){i.value&&g.value&&V.value&&N.value&&(i.value.scrollWidth>g.value.offsetWidth?(V.value.style.display="block",N.value.style.display="block"):(V.value.style.display="none",N.value.style.display="none"))}function _(t){i.value&&(i.value.innerHTML=t)}function A(t){h.value&&(h.value.innerHTML=t)}function P(){return s.lastIndexOf("+")!==-1||s.lastIndexOf("-")!==-1||s.lastIndexOf("×")!==-1||s.lastIndexOf("÷")!==-1}function M(t,o,y){let b=0;switch(t=Number(t),o=Number(o),y){case"+":b=u(t,o);break;case"-":b=m(t,o);break;case"×":b=C(t,o);break;case"÷":b=T(t,o);break}return b}function H(t){c.indexOf("0")===0&&c.indexOf(".")===-1||l===!0?c=t:c+=t,l=!1,r=!1}function R(t){l===!0?c="0"+t:c.indexOf(".")===-1&&(c+=t),l=!1,r=!1}function W(){c.indexOf("-")===-1&&c!=="0"?c="-"+c:c.indexOf("-")>-1&&c!=="0"&&(c=c.substring(1))}function $(t){if(n.length<2&&(l!==!0||r===!0)?(c=parseFloat(c)+"",s=s+" "+c+" "+t,n.push(c),a.push(t),l=!0):n.length<2&&P()&&(s=s.substring(0,s.length-1)+""+t,a.push(t)),n.length===2){const o=a[a.length-2];if(n[1]==="0"&&o==="÷"){n=[],c="除数不能为零",s="",l=!0;return}const y=M(n[0],n[1],o);n=[],n.push(y),c=y+"",l=!0}}function j(){if(n.length>0){const t=a.pop();if(c==="0"&&t==="÷"){n=[],c="除数不能为零",s="",l=!0,r=!0;return}const o=M(n[0],c,t);n=[],c=o+"",s="",l=!0,r=!0}}function D(){c="0"}function G(){c="0",s="",l=!0,n=[],a=[]}function X(){c=c.length>1?c.substring(0,c.length-1):"0"}const x=e.computed(()=>`fv-calculator-main${Math.floor(Math.random()*1e3).toString()}`);function I(t){i.value&&(i.value.scrollLeft+=50)}function S(t){i.value&&(i.value.scrollLeft-=50)}function w(t){if(d.value&&!d.value.contains(t.target))return;const o=t.target.innerHTML;switch(o){case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":H(o);break;case".":R(o);break;case"±":W();break;case"+":case"-":case"×":case"÷":$(o);break;case"=":j();break;case"CE":D();break;case"C":G();break;case"Back":X();break}_(s),A(c)}return e.onBeforeMount(()=>{}),e.onMounted(()=>{var t,o,y,b,B,O;i.value=(t=document.getElementById(x.value))==null?void 0:t.querySelector("#fv-calculator-pre-step"),h.value=(o=document.getElementById(x.value))==null?void 0:o.querySelector("#fv-calculator-show-input"),d.value=(y=document.getElementById(x.value))==null?void 0:y.querySelector("#fv-calculator-num-symbol"),g.value=(b=document.getElementById(x.value))==null?void 0:b.querySelector(".fv-calculator-pre"),V.value=(B=document.getElementById(x.value))==null?void 0:B.querySelector(".fv-calculator-pre-left"),N.value=(O=document.getElementById(x.value))==null?void 0:O.querySelector(".fv-calculator-pre-right"),F()}),()=>e.createVNode(e.Fragment,null,[e.createVNode("div",{class:"fv-calculator-standard-main",id:x.value,onMousedown:e.withModifiers(t=>w(t),["prevent"]),onTouchstart:e.withModifiers(t=>w(t),["prevent"])},[e.createVNode("div",{class:"fv-calculator-title"},[e.createTextVNode("计算器")]),e.createVNode("div",{class:"fv-calculator-result"},[e.createVNode("div",{class:"fv-calculator-type",id:"fv-calculator-show-bar"},[e.createTextVNode("Standard")]),e.createVNode("div",{class:"fv-calculator-pre"},[e.createVNode("div",{class:"fv-calculator-pre-left",style:"display:none;",onMousedown:e.withModifiers(t=>S(),["prevent"]),onTouchstart:e.withModifiers(t=>S(),["prevent"])},[e.createTextVNode("<")]),e.createVNode("div",{class:"fv-calculator-pre-content",id:"fv-calculator-pre-step"},null),e.createVNode("div",{class:"fv-calculator-pre-right",style:"display:none;",onMousedown:e.withModifiers(t=>I(),["prevent"]),onTouchstart:e.withModifiers(t=>I(),["prevent"])},[e.createTextVNode(">")])]),e.createVNode("div",{class:"fv-calculator-result-out"},[e.createVNode("div",{class:"fv-calculator-second",id:"fv-calculator-show-input"},[e.createTextVNode("0")])])]),e.createVNode("ul",{id:"fv-calculator-num-symbol"},[e.createVNode("li",{value:"37",class:"fv-calculator-letter"},[e.createTextVNode("CE")]),e.createVNode("li",{value:"38",class:"fv-calculator-letter"},[e.createTextVNode("C")]),e.createVNode("li",{value:"39",class:"fv-calculator-letter"},[e.createTextVNode("Back")]),e.createVNode("li",{value:"16",class:"fv-calculator-operator"},[e.createTextVNode("÷")]),e.createVNode("li",{class:"fv-calculator-number",value:"7"},[e.createTextVNode("7")]),e.createVNode("li",{class:"fv-calculator-number",value:"8"},[e.createTextVNode("8")]),e.createVNode("li",{class:"fv-calculator-number",value:"9"},[e.createTextVNode("9")]),e.createVNode("li",{value:"15",class:"fv-calculator-operator"},[e.createTextVNode("×")]),e.createVNode("li",{class:"fv-calculator-number",value:"4"},[e.createTextVNode("4")]),e.createVNode("li",{class:"fv-calculator-number",value:"5"},[e.createTextVNode("5")]),e.createVNode("li",{class:"fv-calculator-number",value:"6"},[e.createTextVNode("6")]),e.createVNode("li",{value:"14",class:"fv-calculator-operator"},[e.createTextVNode("-")]),e.createVNode("li",{class:"fv-calculator-number",value:"1"},[e.createTextVNode("1")]),e.createVNode("li",{class:"fv-calculator-number",value:"2"},[e.createTextVNode("2")]),e.createVNode("li",{class:"fv-calculator-number",value:"3"},[e.createTextVNode("3")]),e.createVNode("li",{value:"13",class:"fv-calculator-operator"},[e.createTextVNode("+")]),e.createVNode("li",{value:"11"},[e.createTextVNode("±")]),e.createVNode("li",{class:"fv-calculator-number",value:"0"},[e.createTextVNode("0")]),e.createVNode("li",{value:"10"},[e.createTextVNode(".")]),e.createVNode("li",{value:"12",class:"fv-calculator-operator"},[e.createTextVNode("=")])])])])}}),L={install(v){v.component(k.name,k)}};p.calculator=k,p.calculatorProps=E,p.default=L,Object.defineProperties(p,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.fv-calculator-standard-main{background-color:#f1f1f1;margin:0 auto;box-shadow:0 0 15px #4d4d4d}.fv-calculator-standard-main ul{list-style:none;margin:0;padding:0}.fv-calculator-standard-main li{float:left;text-align:center;cursor:pointer}.fv-calculator-standard-main li img{height:14px}.fv-calculator-standard-main .fv-calculator-title{padding:5px 0;height:30px;line-height:30px;font-size:18px;margin-left:10px}.fv-calculator-standard-main .fv-calculator-result{height:140px;text-align:right;width:100%}.fv-calculator-standard-main .fv-calculator-result-out{margin:0 5px;height:48px;overflow:hidden}.fv-calculator-standard-main .fv-calculator-second{font-size:42px;font-weight:700;overflow-y:auto;white-space:nowrap;text-align:right}.fv-calculator-standard-main .fv-calculator-pre{color:#a7a7a7;padding:0 20px;font-size:16px;height:24px;width:100%;overflow:hidden;position:relative;z-index:99}.fv-calculator-standard-main .fv-calculator-pre .fv-calculator-pre-left{width:16px;text-align:center;line-height:20px;height:24px;position:absolute;z-index:101;left:0;top:0;font-weight:600;cursor:pointer;background:#f1f1f1}.fv-calculator-standard-main .fv-calculator-pre .fv-calculator-pre-right{width:16px;text-align:center;line-height:20px;height:24px;position:absolute;z-index:101;right:0;top:0;font-weight:600;cursor:pointer;background:#f1f1f1}.fv-calculator-pre .fv-calculator-pre-content{text-align:right;height:24px;line-height:24px;white-space:nowrap;overflow-y:auto;overflow-x:hidden}.fv-calculator-pre-left:hover,.fv-calculator-pre-right:hover{color:#1853d1;background:#9b9b9b}.fv-calculator-standard-main .fv-calculator-type{height:auto;text-align:left;font-weight:700;margin:10px 0 20px 10px;font-size:22px}.fv-calculator-standard-main .fv-calculator-type-bar{height:90px;width:100px;position:absolute;top:110px;background-color:#e6e6e6}.fv-calculator-standard-main .fv-calculator-type-bar li{float:left;width:100px;text-align:center;line-height:30px}.fv-calculator-standard-main .active{background-color:#cfcfcf}.fv-calculator-standard-main .fv-calculator-number{font-weight:700;border:1px solid #fff!important;background:#fff!important}.fv-calculator-standard-main .fv-calculator-number:hover{border:1px solid #f1f1f1!important;background:#c6c6c6!important}.fv-calculator-standard-main .fv-calculator-operator:hover{border:1px solid #f1f1f1!important;background:#82bceb!important;color:#fff}.fv-calculator-standard-main .fv-calculator-letter{font-size:16px}.fv-calculator-standard-main{width:500px;height:460px}#fv-calculator-num-symbol{height:270px;font-size:20px;display:flex;flex-wrap:wrap;justify-content:center}#fv-calculator-num-symbol li{line-height:48px;width:23%;margin:5px 0 0 5px;background:#dedede;border:1px solid #dedede;list-style-type:none}#fv-calculator-num-symbol li:hover{background:#c6c6c6;border:1px solid #f1f1f1}
|