@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/message-box/index.umd.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(d,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(d=typeof globalThis<"u"?globalThis:d||self,e(d["message-box"]={},d.Vue))})(this,function(d,e){"use strict";const J={type:{Type:String,default:"info"},title:{Type:String,default:""},detail:{Type:String,default:""},okButtonText:{Type:String,default:"\u786E\u5B9A"},cancelButtonText:{Type:String,default:"\u53D6\u6D88"},exceptionInfo:{Type:Object,default:{date:"",message:"",detail:""}}};function O(){return new DOMException("The request is not allowed","NotAllowedError")}async function Z(o){if(!navigator.clipboard)throw O();return navigator.clipboard.writeText(o)}async function ee(o){const l=document.createElement("span");l.textContent=o,l.style.whiteSpace="pre",l.style.webkitUserSelect="auto",l.style.userSelect="all",document.body.appendChild(l);const t=window.getSelection(),n=window.document.createRange();t==null||t.removeAllRanges(),n.selectNode(l),t==null||t.addRange(n);let r=!1;try{r=window.document.execCommand("copy")}finally{t==null||t.removeAllRanges(),window.document.body.removeChild(l)}if(!r)throw O()}async function te(o){try{await Z(o)}catch(l){try{await ee(o)}catch(t){throw t||l||O()}}}function oe(o,l){async function t(n){await te(n)}return{onCopy:t}}const B=e.defineComponent({name:"FMessageBox",props:J,emits:["accept","reject","close"],setup(o,l){const t=e.ref(o.type),n=e.ref(o.title),r=e.ref(o.detail),c=e.ref(o.exceptionInfo);e.ref("");const C=e.ref(14),u=e.ref(140);e.ref(""),e.ref("");const h=e.ref(!1),g=e.ref(""),T=e.ref(r.value.length),m=e.ref([]),V=e.ref(o.okButtonText),x=e.ref(o.cancelButtonText),F=e.ref(!0),E=e.ref(!0),A=e.ref(!0),k=e.ref("\u590D\u5236\u8BE6\u7EC6\u4FE1\u606F"),b=e.ref(3),$=e.ref(480),w=e.computed(()=>{const a={"modal-tips":!0,"d-flex":!0,"flex-row":!0},p=`messager-type-${t.value}`;return a[p]=!0,a}),v=e.computed(()=>{const a={};return t.value==="prompt"?a.padding="0.5rem 0.5rem 1rem 1.5rem":t.value==="error"&&(a.padding="0.5rem 1.5rem 1rem 1.5rem"),a}),H=e.computed(()=>{const a={"f-icon":!0},p=`f-icon-${t.value}`;return a[p]=!0,a}),D=e.computed(()=>n.value||c.value&&c.value.message),S=e.computed(()=>r.value),z=e.computed(()=>!!r.value),I=e.computed(()=>!!c.value),R=e.computed(()=>!!c.value&&!!c.value.date),_=e.computed(()=>`\u53D1\u751F\u65F6\u95F4 : ${c.value&&c.value.date||""}`),q=e.computed(()=>!!c.value&&!!c.value.detail),L=e.computed(()=>{const a=`${$.value}px`;return{overflow:"hidden","text-overflow":"ellipsis",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":b.value,"max-height":a}}),M=e.computed(()=>c.value&&c.value.detail||""),P=e.computed(()=>!0),f=e.ref(!1),U=e.ref("\u5C55\u5F00"),W=e.ref("\u6536\u8D77"),G=e.computed(()=>{const a={display:"block",color:"#2A87FF"};return a["text-align"]=f.value?"":"right",a});function s(a,p){f.value=!f.value,b.value=f.value?20:3}function y(a){return s()}function i(a){return s()}const N=e.computed(()=>({"font-size":`${C.value}px`,height:"100%"}));function ce(a){if(a.currentTarget){const p=a.currentTarget.value||"";T.value=p.length}}e.computed(()=>h.value&&u.value);const re=e.computed(()=>!(m.value&&m.value.length)&&(V.value||x.value));e.computed(()=>t.value==="prompt"&&F.value);const ie=e.computed(()=>E.value&&x.value),de=e.computed(()=>A.value&&V.value);function ue(a){t.value==="question"&&l.emit("reject"),l.emit("close")}function pe(a){t.value==="question"&&l.emit("accept"),l.emit("close")}const me=e.computed(()=>!!(m.value&&m.value.length)),Q=e.computed(()=>c.value&&c.value.date&&c.value.message&&c.value.detail),{onCopy:fe}=oe(),X=e.ref("\u590D\u5236\u6210\u529F"),j=e.ref(!1);function Y(a){fe(M.value).catch(p=>{X.value="\u590D\u5236\u5931\u8D25"}).finally(()=>{j.value=!0,setTimeout(()=>{j.value=!1},700)})}const ye=e.computed(()=>{const a={position:"absolute",left:"50%",top:"50%",width:"100px",height:"40px",background:"#303C53","line-height":"40px","text-align":"center","margin-left":"-30px","margin-top":"-50px","border-radius":"10px","box-shadow":"0px 2px 8px 0px",color:"#fff",transition:"all .3s ease"};return a.opacity=j.value?"0.8":"0",a.display=j.value?"":"none",a});return()=>e.createVNode("div",{class:"farris-messager"},[t.value!=="prompt"&&e.createVNode("section",{class:w.value,style:v.value},[e.createVNode("div",{class:"float-left modal-tips-iconwrap"},[e.createVNode("span",{class:H.value},null)]),e.createVNode("div",{class:"modal-tips-content"},[e.createVNode("p",{class:"toast-msg-title",innerHTML:D.value},null),z.value&&e.createVNode("p",{class:"toast-msg-detail",innerHTML:S.value},null),I.value&&e.createVNode("div",{class:"toast-msg-detail"},[R.value&&e.createVNode("div",null,[_.value]),q.value&&e.createVNode("div",{id:"exception_error_msg",ref:"exceptionMessageRef",style:L.value},[e.createTextVNode("\u8BE6\u7EC6\u4FE1\u606F : "),e.createVNode("span",{innerHTML:M.value},null)]),P.value&&e.createVNode("span",{style:G.value},[f.value&&e.createVNode("span",{onClick:y,style:"cursor: pointer;"},[W.value]),!f.value&&e.createVNode("span",{onClick:i,style:"cursor: pointer;"},[U.value])])])])]),t.value==="prompt"&&e.createVNode(e.Fragment,null,[e.createVNode("section",{class:w.value,style:v.value},[e.createVNode("div",{class:"flex-fill fixdiv mb-1 mr-3"},[e.createVNode("textarea",{title:"promptMessage",name:"promptMessage",class:"form-control",style:N.value,rows:"4",maxlength:u.value,onInput:a=>ce(a)},[S.value])])]),e.createVNode("span",{class:"textarea-wordcount",title:g.value,style:"position: absolute; bottom: 76px; right: 32px; cursor: pointer; text-align: right;"},[T.value+" / "+u.value])]),re.value&&e.createVNode("div",{class:"modal-footer"},[Q.value&&e.createVNode("span",{style:"width: 100%;color: #2A87FF;padding-left: 37px;"},[e.createVNode("span",{onClick:Y,style:"cursor: pointer;"},[k.value])]),ie.value&&e.createVNode("button",{type:"button",class:"btn btn-secondary btn-lg",onClick:ue},[x.value]),de.value&&e.createVNode("button",{type:"button",class:"btn btn-primary btn-lg",onClick:pe},[V.value])]),me.value&&e.createVNode("div",{class:"modal-footer"},[Q.value&&e.createVNode("span",{style:"width: 100%;color: #2A87FF;padding-left: 37px;"},[e.createVNode("span",{onClick:Y,style:"cursor: pointer;"},[k.value])]),m.value.length&&m.value.map(a=>e.createVNode("button",{type:"button",onClick:a.handle,class:a.class},[a.iconClass&&e.createVNode("span",{class:a.iconClass},null),a.text]))]),e.createVNode("div",{style:ye.value},[X.value])])}}),ae={class:{type:String,default:""},title:{type:String,default:""},width:{type:Number,default:500},height:{type:Number,default:320},buttons:{type:Array,default:[]},modelValue:{type:Boolean,default:!1},showHeader:{type:Boolean,default:!0},showButtons:{type:Boolean,default:!0}},le=e.defineComponent({name:"FModal",props:ae,emits:["update:modelValue"],setup(o,l){const t=e.ref(o.width),n=e.ref(o.height),r=e.ref(o.modelValue),c=e.ref(""),C=e.ref(o.class),u=e.ref(!0),h=e.ref(o.showHeader),g=e.ref(""),T=e.ref(!0),m=e.ref(!1),V=e.ref(!1),x=e.ref(""),F=e.ref(""),E=e.ref(""),A=e.ref(o.showButtons),k=e.ref(o.title);function b(s,y){r.value=!1,l.emit("update:modelValue",!1)}const $=[{text:"\u53D6\u6D88",class:"btn btn-light",handle:s=>{b()}},{text:"\u786E\u5B9A",class:"btn btn-primary",handle:s=>{b()}}],w=e.ref(o.buttons&&o.buttons.length?o.buttons:$),v=e.computed(()=>!!g.value),H=e.computed(()=>!!A.value&&!!w.value);e.ref(),e.ref(),e.watch(()=>o.modelValue,()=>{r.value=o.modelValue});const D=e.ref(!1),S=e.computed(()=>r.value),z=e.computed(()=>{const s={modal:!0,"farris-modal":!0};return s["f-modal-fitContent"]=u.value,s}),I=e.computed(()=>({display:S.value?"block":"none !important"})),R=e.computed(()=>{const s={"modal-dialog":!0};return C.value.split(" ").reduce((i,N)=>(i[N]=!0,i),s),s}),_=e.computed(()=>({position:"absolute",top:"50%",left:"50%",width:`${t.value}px`,height:u.value?"auto":`${n.value}px`,"margin-left":`${0-t.value/2}px`,"margin-top":u.value?"auto":`${0-n.value/2}px`})),q=e.computed(()=>({"modal-content":!0,"modal-content-has-header":h.value})),L=e.computed(()=>({display:h.value?"":"none"})),M=e.computed(()=>({"f-icon":!0,modal_maximize:!0,modalrevert:D.value})),P=e.computed(()=>({height:"10px","z-index":1,display:h.value?"none":""})),f=e.computed(()=>({"modal-body":!0,"f-utils-flex-column":x.value==="iframe"}));function U(){return{}}const W=e.computed(()=>{const s={textAlgin:E.value},y=U();return Object.assign(s,y)});function G(s){}return()=>e.createVNode(e.Teleport,{to:"body"},{default:()=>{var s,y;return[e.createVNode("div",{class:z.value,style:I.value},[e.createVNode("div",{id:c.value,class:R.value,style:_.value},[e.createVNode("div",{class:q.value},[e.createVNode("div",{ref:"modalHeaderRef",class:"modal-header",style:L.value},[e.createVNode("div",{class:"modal-title"},[v.value&&e.createVNode("span",{class:g.value,style:"margin-right: 8px"},null),e.createVNode("span",{class:"modal-title-label"},[k.value])]),e.createVNode("div",{class:"actions"},[e.createVNode("ul",null,[V.value&&e.createVNode("li",{class:"f-btn-icon f-bare"},[e.createVNode("span",{class:"f-icon modal_minimize"},null)]),m.value&&e.createVNode("li",{onClick:G,class:"f-btn-icon f-bare"},[e.createVNode("span",{class:M.value},null)]),T.value&&e.createVNode("li",{class:"f-btn-icon f-bare",onClick:i=>b()},[e.createVNode("span",{class:"f-icon modal_close"},null)])])])]),e.createVNode("div",{ref:"dragableElementRef",class:"f-utils-absolute-all",style:P.value},null),e.createVNode("div",{class:f.value},[(y=(s=l.slots).default)==null?void 0:y.call(s),x.value==="iframe"&&e.createVNode("iframe",{title:c.value,class:"f-utils-fill",width:"100%",frameborder:"0",src:F.value},null)]),H.value&&e.createVNode("div",{class:"modal-footer",style:W.value},[w.value&&w.value.map(i=>e.createVNode("button",{type:"button",class:i.class,onClick:N=>{i.handle&&i.handle(N)}},[!!i.iconClass&&e.createVNode("span",{class:i.iconClass},[i.text]),!i.iconClass&&e.createVNode("span",null,[i.text])]))])])])])]}})}});function ne(o,l){const t=document.createElement("div");t.style.display="contents";const n=e.createApp({setup(){e.onUnmounted(()=>{document.body.removeChild(t)});const r=e.ref(!0),c=o.type==="error"||o.type==="prompt",C=o.type==="error"?"\u9519\u8BEF\u63D0\u793A":o.type==="prompt"?o.title:"",u=o.acceptCallback||(()=>{}),h=o.rejectCallback||(()=>{});return()=>e.createVNode(le,{class:"modal-message modal-message-type-info",title:C,modelValue:r.value,"onUpdate:modelValue":g=>r.value=g,"show-header":c,"show-buttons":!1},{default:()=>[e.createVNode(B,e.mergeProps(o,{onAccept:u,onReject:h,onClose:n.unmount}),null)]})}});return document.body.appendChild(t),n.mount(t),n}class K{static show(l){const t=e.reactive({...l});ne(t)}static info(l,t){const n=e.reactive({type:"info",title:l,detail:t,okButtonText:"\u77E5\u9053\u4E86",cancelButtonText:""});this.show(n)}static warning(l,t){const n=e.reactive({type:"warning",title:l,detail:t,okButtonText:"\u77E5\u9053\u4E86",cancelButtonText:""});this.show(n)}static success(l,t){const n=e.reactive({type:"success",title:l,detail:t,okButtonText:"\u5173\u95ED",cancelButtonText:""});this.show(n)}static error(l,t,n){const r=e.reactive({type:"error",okButtonText:"\u5173\u95ED",cancelButtonText:"",exceptionInfo:{date:n,message:l,detail:t}});this.show(r)}static prompt(l,t){const n=e.reactive({type:"prompt",title:l,detail:t,okButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88"});this.show(n)}static question(l,t,n,r){const c=e.reactive({type:"question",title:l,detail:t,okButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",acceptCallback:n,rejectCallback:r});this.show(c)}}const se={install(o){o.component(B.name,B),o.provide("MessageBoxService",K)}};d.FMessageBox=B,d.MessageBoxService=K,d.default=se,d.messageBoxProps=J,Object.defineProperties(d,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
1
|
+
(function(x,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(x=typeof globalThis<"u"?globalThis:x||self,e(x["message-box"]={},x.Vue))})(this,function(x,e){"use strict";const j={type:{Type:String,default:"info"},title:{Type:String,default:""},detail:{Type:String,default:""},okButtonText:{Type:String,default:"确定"},cancelButtonText:{Type:String,default:"取消"},exceptionInfo:{Type:Object,default:null},promptEditorType:{Type:String,default:"text-area"}};function k(){return new DOMException("The request is not allowed","NotAllowedError")}async function O(t){if(!navigator.clipboard)throw k();return navigator.clipboard.writeText(t)}async function E(t){const a=document.createElement("span");a.textContent=t,a.style.whiteSpace="pre",a.style.webkitUserSelect="auto",a.style.userSelect="all",document.body.appendChild(a);const o=window.getSelection(),n=window.document.createRange();o==null||o.removeAllRanges(),n.selectNode(a),o==null||o.addRange(n);let s=!1;try{s=window.document.execCommand("copy")}finally{o==null||o.removeAllRanges(),window.document.body.removeChild(a)}if(!s)throw k()}async function F(t){try{await O(t)}catch(a){try{await E(t)}catch(o){throw o||a||k()}}}function R(){async function t(a){await F(a)}return{onCopy:t}}function A(t,a,o,n){const s=e.ref(14),l=e.ref(140),d=e.ref(""),c=e.ref(n.value.length),r=e.computed(()=>n.value),i=e.computed(()=>({"font-size":`${s.value}px`,height:"100%"}));function m(f){if(f.currentTarget){const g=f.currentTarget.value||"";c.value=g.length}}return()=>e.createVNode(e.Fragment,null,[e.createVNode("textarea",{title:"promptMessage",name:"promptMessage",class:"form-control",style:i.value,rows:"4",maxlength:l.value,onInput:f=>m(f)},[r.value]),e.createVNode("span",{class:"textarea-wordcount",title:d.value,style:"position: absolute; bottom: 76px; right: 32px; cursor: pointer; text-align: right;"},[c.value+" / "+l.value])])}function H(t,a,o,n){const s=A(t,a,o,n),l=new Map([["text-area",s]]);function d(c){return l.get(c)||null}return{getEditorRender:d}}function $(){const t=e.ref(!1),a=e.ref("复制成功");return{feedbackStyle:e.computed(()=>{const n={position:"absolute",left:"50%",top:"50%",width:"100px",height:"40px",background:"#303C53","line-height":"40px","text-align":"center","margin-left":"-30px","margin-top":"-50px","border-radius":"10px","box-shadow":"0px 2px 8px 0px",color:"#fff",transition:"all .3s ease"};return n.opacity=t.value?"0.8":"0",n.display=t.value?"":"none",n}),feedbackMessage:a,toShowFeedback:t}}function D(t,a){const o=a.getEditorRender(t.promptEditorType);return()=>o&&o()}function z(t){const a=e.ref(3),o=e.ref(480),n=e.computed(()=>!!t.value&&!!t.value.date),s=e.computed(()=>`发生时间 : ${t.value&&t.value.date||""}`),l=e.computed(()=>!!t.value&&!!t.value.detail),d=e.computed(()=>{const p=`${o.value}px`;return{overflow:"hidden","text-overflow":"ellipsis",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":a.value,"max-height":p}}),c=e.computed(()=>t.value&&t.value.detail||""),r=e.computed(()=>!0),i=e.ref(!1),m=e.ref("展开"),f=e.ref("收起"),g=e.computed(()=>{const p={display:"block",color:"#2A87FF"};return p["text-align"]=i.value?"":"right",p});function h(p,V){i.value=!i.value,a.value=i.value?20:3}function w(p){return h()}function C(p){return h()}return()=>e.createVNode("div",{class:"toast-msg-detail"},[n.value&&e.createVNode("div",null,[s.value]),l.value&&e.createVNode("div",{id:"exception_error_msg",ref:"exceptionMessageRef",style:d.value},[e.createTextVNode("详细信息 : "),e.createVNode("span",{innerHTML:c.value},null)]),r.value&&e.createVNode("span",{style:g.value},[i.value&&e.createVNode("span",{onClick:w,style:"cursor: pointer;"},[f.value]),!i.value&&e.createVNode("span",{onClick:C,style:"cursor: pointer;"},[m.value])])])}function I(t){return()=>e.createVNode("p",{class:"toast-msg-detail",innerHTML:t.value},null)}function _(t,a,o,n){const s=e.ref(t.exceptionInfo),l=e.computed(()=>{const g={"f-icon":!0},h=`f-icon-${a.value}`;return g[h]=!0,g}),d=e.computed(()=>o.value||s.value&&s.value.message),c=e.computed(()=>n.value),r=e.computed(()=>!!n.value),i=e.computed(()=>!!s.value);function m(){return i.value?z(s):r.value?I(c):()=>e.createVNode(e.Fragment,null,null)}const f=m();return()=>e.createVNode(e.Fragment,null,[e.createVNode("div",{class:"float-left modal-tips-iconwrap"},[e.createVNode("span",{class:l.value},null)]),e.createVNode("div",{class:"modal-tips-content"},[e.createVNode("p",{class:"toast-msg-title",innerHTML:d.value},null),f()])])}function q(t,a,o){const{onCopy:n}=a,{toShowFeedback:s}=o,l=e.ref("复制成功"),d=e.ref("复制详细信息"),c=e.ref(t.exceptionInfo),r=e.computed(()=>c.value&&c.value.detail||"");function i(m){n(r.value).catch(f=>{l.value="复制失败"}).finally(()=>{s.value=!0,setTimeout(()=>{s.value=!1},700)})}return()=>e.createVNode("span",{style:"width: 100%;color: #2A87FF;padding-left: 37px;"},[e.createVNode("span",{onClick:i,style:"cursor: pointer;"},[d.value])])}function L(t,a,o,n){const s=e.ref(t.type),l=e.ref([]),d=e.ref(t.exceptionInfo),c=e.ref(t.okButtonText),r=e.ref(t.cancelButtonText),i=e.ref(!0),m=e.ref(!0),f=e.computed(()=>!!(l.value&&l.value.length)),g=e.computed(()=>d.value&&d.value.date&&d.value.message&&d.value.detail),h=e.computed(()=>!(l.value&&l.value.length)&&(c.value||r.value)),w=e.computed(()=>m.value&&c.value),C=e.computed(()=>i.value&&r.value),p=q(t,o,n);function V(b){s.value==="question"&&a.emit("reject"),a.emit("close")}function B(b){s.value==="question"&&a.emit("accept"),a.emit("close")}return()=>e.createVNode("div",{class:"modal-footer"},[g.value&&p(),h.value&&C.value&&e.createVNode("button",{type:"button",class:"btn btn-secondary btn-lg",onClick:V},[r.value]),h.value&&w.value&&e.createVNode("button",{type:"button",class:"btn btn-primary btn-lg",onClick:B},[c.value]),f.value&&l.value.length&&l.value.map(b=>e.createVNode("button",{type:"button",onClick:b.handle,class:b.class},[b.iconClass&&e.createVNode("span",{class:b.iconClass},null),b.text]))])}const N=e.defineComponent({name:"FMessageBox",props:j,emits:["accept","reject","close"],setup(t,a){const o=e.ref(t.type),n=e.ref(t.title),s=e.ref(t.detail),l=e.computed(()=>{const p={"modal-tips":!0,"d-flex":!0,"flex-row":!0},V=`messager-type-${o.value}`;return p[V]=!0,p}),d=e.computed(()=>{const p={};return o.value==="prompt"?p.padding="0.5rem 0.5rem 1rem 1.5rem":o.value==="error"&&(p.padding="0.5rem 1.5rem 1rem 1.5rem"),p}),c=R(),r=H(t,o,n,s),i=$(),{feedbackStyle:m,feedbackMessage:f}=i;function g(){return e.createVNode("div",{style:m.value},[f.value])}function h(){switch(o.value){case"prompt":return D(t,r);default:return _(t,o,n,s)}}const w=h(),C=L(t,a,c,i);return()=>e.createVNode("div",{class:"farris-messager"},[e.createVNode("section",{class:l.value,style:d.value},[w()]),C(),g()])}}),P={class:{type:String,default:""},title:{type:String,default:""},width:{type:Number,default:500},height:{type:Number,default:320},buttons:{type:Array,default:[]},modelValue:{type:Boolean,default:!1},showHeader:{type:Boolean,default:!0},showButtons:{type:Boolean,default:!0}},pe="",U=e.defineComponent({name:"FModal",props:P,emits:["update:modelValue","accept","cancel"],setup(t,a){const o=e.ref(t.width),n=e.ref(t.height),s=e.ref(t.modelValue),l=e.ref(""),d=e.ref(t.class),c=e.ref(!0),r=e.ref(t.showHeader),i=e.ref(""),m=e.ref(!0),f=e.ref(!1),g=e.ref(!1),h=e.ref(""),w=e.ref(""),C=e.ref(""),p=e.ref(t.showButtons),V=e.ref(t.title);function B(u,T){s.value=!1,a.emit("update:modelValue",!1),a.emit(T?"accept":"cancel")}const b=[{text:"取消",class:"btn btn-light",handle:u=>{B(u,!1)}},{text:"确定",class:"btn btn-primary",handle:u=>{B(u,!0)}}],M=e.ref(t.buttons&&t.buttons.length?t.buttons:b),W=e.computed(()=>!!i.value),X=e.computed(()=>!!p.value&&!!M.value);e.ref(),e.ref(),e.watch(()=>t.modelValue,()=>{s.value=t.modelValue});const Y=e.ref(!1),Z=e.computed(()=>s.value),ee=e.computed(()=>{const u={modal:!0,"farris-modal":!0};return u["f-modal-fitContent"]=c.value,u}),te=e.computed(()=>({display:Z.value?"block":"none !important"})),oe=e.computed(()=>{const u={"modal-dialog":!0};return d.value.split(" ").reduce((y,S)=>(y[S]=!0,y),u),u}),ae=e.computed(()=>({position:"absolute",top:"50%",left:"50%",width:`${o.value}px`,height:c.value?"auto":`${n.value}px`,"margin-left":`${0-o.value/2}px`,"margin-top":c.value?"auto":`${0-n.value/2}px`})),ne=e.computed(()=>({"modal-content":!0,"modal-content-has-header":r.value})),se=e.computed(()=>({display:r.value?"":"none"})),le=e.computed(()=>({"f-icon":!0,modal_maximize:!0,modalrevert:Y.value})),ce=e.computed(()=>({height:"10px","z-index":1,display:r.value?"none":""})),re=e.computed(()=>({"modal-body":!0,"f-utils-flex-column":h.value==="iframe"}));function ie(){return{}}const de=e.computed(()=>{const u={textAlgin:C.value},T=ie();return Object.assign(u,T)});function ue(u){}return()=>e.createVNode(e.Teleport,{to:"body"},{default:()=>{var u,T;return[e.createVNode("div",{class:ee.value,style:te.value},[e.createVNode("div",{id:l.value,class:oe.value,style:ae.value},[e.createVNode("div",{class:ne.value},[e.createVNode("div",{ref:"modalHeaderRef",class:"modal-header",style:se.value},[e.createVNode("div",{class:"modal-title"},[W.value&&e.createVNode("span",{class:i.value,style:"margin-right: 8px"},null),e.createVNode("span",{class:"modal-title-label"},[V.value])]),e.createVNode("div",{class:"actions"},[e.createVNode("ul",null,[g.value&&e.createVNode("li",{class:"f-btn-icon f-bare"},[e.createVNode("span",{class:"f-icon modal_minimize"},null)]),f.value&&e.createVNode("li",{onClick:ue,class:"f-btn-icon f-bare"},[e.createVNode("span",{class:le.value},null)]),m.value&&e.createVNode("li",{class:"f-btn-icon f-bare",onClick:y=>B(y,!0)},[e.createVNode("span",{class:"f-icon modal_close"},null)])])])]),e.createVNode("div",{ref:"dragableElementRef",class:"f-utils-absolute-all",style:ce.value},null),e.createVNode("div",{class:re.value},[(T=(u=a.slots).default)==null?void 0:T.call(u),h.value==="iframe"&&e.createVNode("iframe",{title:l.value,class:"f-utils-fill",width:"100%",frameborder:"0",src:w.value},null)]),X.value&&e.createVNode("div",{class:"modal-footer",style:de.value},[M.value&&M.value.map(y=>e.createVNode("button",{type:"button",class:y.class,onClick:S=>{y.handle&&y.handle(S)}},[!!y.iconClass&&e.createVNode("span",{class:y.iconClass},[y.text]),!y.iconClass&&e.createVNode("span",null,[y.text])]))])])])])]}})}});function G(t){if(t.content&&t.content.render)return t.content.render;if(t.render&&typeof t.render=="function")return t.render}function J(t){const a=document.createElement("div");a.style.display="contents";const o=e.createApp({setup(){e.onUnmounted(()=>{document.body.removeChild(a)});const n=e.ref(t.class||""),s=e.ref(!!t.showButtons),l=e.ref(!!t.showHeader),d=e.ref(!0),c=e.ref(t.title||""),r=t.acceptCallback||(()=>{}),i=t.rejectCallback||(()=>{}),m=G(t);return()=>e.createVNode(U,{class:n.value,modelValue:d.value,"onUpdate:modelValue":f=>d.value=f,title:c.value,width:t.width,"show-header":l.value,"show-buttons":s.value,onAccept:r,onCancel:i},{default:()=>[m&&m(o)]})}});return document.body.appendChild(a),o.mount(a),o}class K{static show(a){const o=Object.assign({title:"",showButtons:!0,showHeader:!0},a);return J(o)}}class v{static show(a){const o=e.reactive({...a}),n=!1,s=o.type==="error"||o.type==="prompt",l=o.type==="error"?"错误提示":o.type==="prompt"&&o.title||"",d=o.acceptCallback||(()=>{}),c=o.rejectCallback||(()=>{});let r;const i=()=>{r&&r.unmount()};r=K.show({class:"modal-message modal-message-type-info",title:l,showButtons:n,showHeader:s,render:()=>e.createVNode(N,e.mergeProps(o,{onAccept:d,onReject:c,onClose:i}),null)})}static info(a,o){const n=e.reactive({type:"info",title:a,detail:o,okButtonText:"知道了",cancelButtonText:""});this.show(n)}static warning(a,o){const n=e.reactive({type:"warning",title:a,detail:o,okButtonText:"知道了",cancelButtonText:""});this.show(n)}static success(a,o){const n=e.reactive({type:"success",title:a,detail:o,okButtonText:"关闭",cancelButtonText:""});this.show(n)}static error(a,o,n){const s=e.reactive({type:"error",okButtonText:"关闭",cancelButtonText:"",exceptionInfo:{date:n,message:a,detail:o}});this.show(s)}static prompt(a,o){const n=e.reactive({type:"prompt",title:a,detail:o,okButtonText:"确定",cancelButtonText:"取消"});this.show(n)}static question(a,o,n,s){const l=e.reactive({type:"question",title:a,detail:o,okButtonText:"确定",cancelButtonText:"取消",acceptCallback:n,rejectCallback:s});this.show(l)}}const Q={install(t){t.component(N.name,N),t.provide("MessageBoxService",v)}};x.FMessageBox=N,x.MessageBoxService=v,x.default=Q,x.messageBoxProps=j,Object.defineProperties(x,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
package/message-box/package.json
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.farris-modal{background-color:#00000073}.farris-modal .modal-content{border-radius:18px}
|
package/modal/index.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
const
|
|
1
|
+
import { defineComponent as G, ref as t, computed as n, watch as J, createVNode as l, Teleport as K, createApp as L, onUnmounted as Q } from "vue";
|
|
2
|
+
const W = {
|
|
3
3
|
class: { type: String, default: "" },
|
|
4
4
|
title: { type: String, default: "" },
|
|
5
5
|
width: { type: Number, default: 500 },
|
|
@@ -11,155 +11,202 @@ const Q = {
|
|
|
11
11
|
modelValue: { type: Boolean, default: !1 },
|
|
12
12
|
showHeader: { type: Boolean, default: !0 },
|
|
13
13
|
showButtons: { type: Boolean, default: !0 }
|
|
14
|
-
}
|
|
14
|
+
};
|
|
15
|
+
const j = /* @__PURE__ */ G({
|
|
15
16
|
name: "FModal",
|
|
16
|
-
props:
|
|
17
|
-
emits: ["update:modelValue"],
|
|
18
|
-
setup(
|
|
19
|
-
const
|
|
20
|
-
function
|
|
21
|
-
|
|
17
|
+
props: W,
|
|
18
|
+
emits: ["update:modelValue", "accept", "cancel"],
|
|
19
|
+
setup(e, o) {
|
|
20
|
+
const c = t(e.width), m = t(e.height), d = t(e.modelValue), v = t(""), f = t(e.class), r = t(!0), i = t(e.showHeader), h = t(""), b = t(!0), y = t(!1), O = t(!1), p = t(""), x = t(""), S = t(""), B = t(e.showButtons), M = t(e.title);
|
|
21
|
+
function C(a, u) {
|
|
22
|
+
d.value = !1, o.emit("update:modelValue", !1), o.emit(u ? "accept" : "cancel");
|
|
22
23
|
}
|
|
23
|
-
const
|
|
24
|
-
text: "
|
|
24
|
+
const V = [{
|
|
25
|
+
text: "取消",
|
|
25
26
|
class: "btn btn-light",
|
|
26
|
-
handle: (
|
|
27
|
-
|
|
27
|
+
handle: (a) => {
|
|
28
|
+
C(a, !1);
|
|
28
29
|
}
|
|
29
30
|
}, {
|
|
30
|
-
text: "
|
|
31
|
+
text: "确定",
|
|
31
32
|
class: "btn btn-primary",
|
|
32
|
-
handle: (
|
|
33
|
-
|
|
33
|
+
handle: (a) => {
|
|
34
|
+
C(a, !0);
|
|
34
35
|
}
|
|
35
|
-
}],
|
|
36
|
-
t(), t(),
|
|
37
|
-
|
|
36
|
+
}], w = t(e.buttons && e.buttons.length ? e.buttons : V), H = n(() => !!h.value), k = n(() => !!B.value && !!w.value);
|
|
37
|
+
t(), t(), J(() => e.modelValue, () => {
|
|
38
|
+
d.value = e.modelValue;
|
|
38
39
|
});
|
|
39
|
-
const
|
|
40
|
-
const
|
|
40
|
+
const z = t(!1), A = n(() => d.value), $ = n(() => {
|
|
41
|
+
const a = {
|
|
41
42
|
modal: !0,
|
|
42
43
|
"farris-modal": !0
|
|
43
44
|
};
|
|
44
|
-
return
|
|
45
|
-
}),
|
|
45
|
+
return a["f-modal-fitContent"] = r.value, a;
|
|
46
|
+
}), F = n(() => ({
|
|
46
47
|
display: A.value ? "block" : "none !important"
|
|
47
|
-
})),
|
|
48
|
-
const
|
|
48
|
+
})), I = n(() => {
|
|
49
|
+
const a = {
|
|
49
50
|
"modal-dialog": !0
|
|
50
51
|
};
|
|
51
|
-
return
|
|
52
|
-
}),
|
|
52
|
+
return f.value.split(" ").reduce((s, g) => (s[g] = !0, s), a), a;
|
|
53
|
+
}), R = n(() => ({
|
|
53
54
|
position: "absolute",
|
|
54
55
|
top: "50%",
|
|
55
56
|
left: "50%",
|
|
56
|
-
width: `${
|
|
57
|
-
height:
|
|
58
|
-
"margin-left": `${0 -
|
|
59
|
-
"margin-top":
|
|
60
|
-
})),
|
|
57
|
+
width: `${c.value}px`,
|
|
58
|
+
height: r.value ? "auto" : `${m.value}px`,
|
|
59
|
+
"margin-left": `${0 - c.value / 2}px`,
|
|
60
|
+
"margin-top": r.value ? "auto" : `${0 - m.value / 2}px`
|
|
61
|
+
})), D = n(() => ({
|
|
61
62
|
"modal-content": !0,
|
|
62
63
|
"modal-content-has-header": i.value
|
|
63
|
-
})),
|
|
64
|
+
})), E = n(() => ({
|
|
64
65
|
display: i.value ? "" : "none"
|
|
65
|
-
})),
|
|
66
|
+
})), N = n(() => ({
|
|
66
67
|
"f-icon": !0,
|
|
67
68
|
modal_maximize: !0,
|
|
68
|
-
modalrevert:
|
|
69
|
-
})),
|
|
69
|
+
modalrevert: z.value
|
|
70
|
+
})), T = n(() => ({
|
|
70
71
|
height: "10px",
|
|
71
72
|
"z-index": 1,
|
|
72
73
|
display: i.value ? "none" : ""
|
|
73
|
-
})),
|
|
74
|
+
})), _ = n(() => ({
|
|
74
75
|
"modal-body": !0,
|
|
75
|
-
"f-utils-flex-column":
|
|
76
|
+
"f-utils-flex-column": p.value === "iframe"
|
|
76
77
|
}));
|
|
77
|
-
function
|
|
78
|
+
function U() {
|
|
78
79
|
return {};
|
|
79
80
|
}
|
|
80
|
-
const
|
|
81
|
-
const
|
|
81
|
+
const P = n(() => {
|
|
82
|
+
const a = {
|
|
82
83
|
textAlgin: S.value
|
|
83
|
-
},
|
|
84
|
-
return Object.assign(
|
|
84
|
+
}, u = U();
|
|
85
|
+
return Object.assign(a, u);
|
|
85
86
|
});
|
|
86
|
-
function
|
|
87
|
+
function q(a) {
|
|
87
88
|
}
|
|
88
|
-
return () =>
|
|
89
|
+
return () => l(K, {
|
|
89
90
|
to: "body"
|
|
90
91
|
}, {
|
|
91
92
|
default: () => {
|
|
92
|
-
var
|
|
93
|
-
return [
|
|
94
|
-
class:
|
|
95
|
-
style:
|
|
96
|
-
}, [
|
|
97
|
-
id:
|
|
98
|
-
class:
|
|
99
|
-
style:
|
|
100
|
-
}, [
|
|
101
|
-
class:
|
|
102
|
-
}, [
|
|
93
|
+
var a, u;
|
|
94
|
+
return [l("div", {
|
|
95
|
+
class: $.value,
|
|
96
|
+
style: F.value
|
|
97
|
+
}, [l("div", {
|
|
98
|
+
id: v.value,
|
|
99
|
+
class: I.value,
|
|
100
|
+
style: R.value
|
|
101
|
+
}, [l("div", {
|
|
102
|
+
class: D.value
|
|
103
|
+
}, [l("div", {
|
|
103
104
|
ref: "modalHeaderRef",
|
|
104
105
|
class: "modal-header",
|
|
105
|
-
style:
|
|
106
|
-
}, [
|
|
106
|
+
style: E.value
|
|
107
|
+
}, [l("div", {
|
|
107
108
|
class: "modal-title"
|
|
108
|
-
}, [
|
|
109
|
+
}, [H.value && l("span", {
|
|
109
110
|
class: h.value,
|
|
110
111
|
style: "margin-right: 8px"
|
|
111
|
-
}, null),
|
|
112
|
+
}, null), l("span", {
|
|
112
113
|
class: "modal-title-label"
|
|
113
|
-
}, [
|
|
114
|
+
}, [M.value])]), l("div", {
|
|
114
115
|
class: "actions"
|
|
115
|
-
}, [
|
|
116
|
+
}, [l("ul", null, [O.value && l("li", {
|
|
116
117
|
class: "f-btn-icon f-bare"
|
|
117
|
-
}, [
|
|
118
|
+
}, [l("span", {
|
|
118
119
|
class: "f-icon modal_minimize"
|
|
119
|
-
}, null)]),
|
|
120
|
-
onClick:
|
|
120
|
+
}, null)]), y.value && l("li", {
|
|
121
|
+
onClick: q,
|
|
121
122
|
class: "f-btn-icon f-bare"
|
|
122
|
-
}, [
|
|
123
|
-
class:
|
|
124
|
-
}, null)]),
|
|
123
|
+
}, [l("span", {
|
|
124
|
+
class: N.value
|
|
125
|
+
}, null)]), b.value && l("li", {
|
|
125
126
|
class: "f-btn-icon f-bare",
|
|
126
|
-
onClick: (
|
|
127
|
-
}, [
|
|
127
|
+
onClick: (s) => C(s, !0)
|
|
128
|
+
}, [l("span", {
|
|
128
129
|
class: "f-icon modal_close"
|
|
129
|
-
}, null)])])])]),
|
|
130
|
+
}, null)])])])]), l("div", {
|
|
130
131
|
ref: "dragableElementRef",
|
|
131
132
|
class: "f-utils-absolute-all",
|
|
132
|
-
style:
|
|
133
|
-
}, null),
|
|
134
|
-
class:
|
|
135
|
-
}, [(
|
|
136
|
-
title:
|
|
133
|
+
style: T.value
|
|
134
|
+
}, null), l("div", {
|
|
135
|
+
class: _.value
|
|
136
|
+
}, [(u = (a = o.slots).default) == null ? void 0 : u.call(a), p.value === "iframe" && l("iframe", {
|
|
137
|
+
title: v.value,
|
|
137
138
|
class: "f-utils-fill",
|
|
138
139
|
width: "100%",
|
|
139
140
|
frameborder: "0",
|
|
140
|
-
src:
|
|
141
|
-
}, null)]),
|
|
141
|
+
src: x.value
|
|
142
|
+
}, null)]), k.value && l("div", {
|
|
142
143
|
class: "modal-footer",
|
|
143
|
-
style:
|
|
144
|
-
}, [
|
|
144
|
+
style: P.value
|
|
145
|
+
}, [w.value && w.value.map((s) => l("button", {
|
|
145
146
|
type: "button",
|
|
146
|
-
class:
|
|
147
|
-
onClick: (
|
|
148
|
-
|
|
147
|
+
class: s.class,
|
|
148
|
+
onClick: (g) => {
|
|
149
|
+
s.handle && s.handle(g);
|
|
149
150
|
}
|
|
150
|
-
}, [!!
|
|
151
|
-
class:
|
|
152
|
-
}, [
|
|
151
|
+
}, [!!s.iconClass && l("span", {
|
|
152
|
+
class: s.iconClass
|
|
153
|
+
}, [s.text]), !s.iconClass && l("span", null, [s.text])]))])])])])];
|
|
153
154
|
}
|
|
154
155
|
});
|
|
155
156
|
}
|
|
156
|
-
})
|
|
157
|
-
|
|
158
|
-
|
|
157
|
+
});
|
|
158
|
+
function X(e) {
|
|
159
|
+
if (e.content && e.content.render)
|
|
160
|
+
return e.content.render;
|
|
161
|
+
if (e.render && typeof e.render == "function")
|
|
162
|
+
return e.render;
|
|
163
|
+
}
|
|
164
|
+
function Y(e) {
|
|
165
|
+
const o = document.createElement("div");
|
|
166
|
+
o.style.display = "contents";
|
|
167
|
+
const c = L({
|
|
168
|
+
setup() {
|
|
169
|
+
Q(() => {
|
|
170
|
+
document.body.removeChild(o);
|
|
171
|
+
});
|
|
172
|
+
const m = t(e.class || ""), d = t(!!e.showButtons), v = t(!!e.showHeader), f = t(!0), r = t(e.title || ""), i = e.acceptCallback || (() => {
|
|
173
|
+
}), h = e.rejectCallback || (() => {
|
|
174
|
+
}), b = X(e);
|
|
175
|
+
return () => l(j, {
|
|
176
|
+
class: m.value,
|
|
177
|
+
modelValue: f.value,
|
|
178
|
+
"onUpdate:modelValue": (y) => f.value = y,
|
|
179
|
+
title: r.value,
|
|
180
|
+
width: e.width,
|
|
181
|
+
"show-header": v.value,
|
|
182
|
+
"show-buttons": d.value,
|
|
183
|
+
onAccept: i,
|
|
184
|
+
onCancel: h
|
|
185
|
+
}, {
|
|
186
|
+
default: () => [b && b(c)]
|
|
187
|
+
});
|
|
188
|
+
}
|
|
189
|
+
});
|
|
190
|
+
return document.body.appendChild(o), c.mount(o), c;
|
|
191
|
+
}
|
|
192
|
+
class Z {
|
|
193
|
+
static show(o) {
|
|
194
|
+
const c = Object.assign({
|
|
195
|
+
title: "",
|
|
196
|
+
showButtons: !0,
|
|
197
|
+
showHeader: !0
|
|
198
|
+
}, o);
|
|
199
|
+
return Y(c);
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
const te = {
|
|
203
|
+
install(e) {
|
|
204
|
+
e.component(j.name, j), e.provide("ModalService", Z);
|
|
159
205
|
}
|
|
160
206
|
};
|
|
161
207
|
export {
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
208
|
+
j as FModal,
|
|
209
|
+
Z as ModalService,
|
|
210
|
+
te as default,
|
|
211
|
+
W as modalProps
|
|
165
212
|
};
|
package/modal/index.umd.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(o,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(o=typeof globalThis<"u"?globalThis:o||self,e(o.modal={},o.Vue))})(this,function(o,e){"use strict";const
|
|
1
|
+
(function(o,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(o=typeof globalThis<"u"?globalThis:o||self,e(o.modal={},o.Vue))})(this,function(o,e){"use strict";const w={class:{type:String,default:""},title:{type:String,default:""},width:{type:Number,default:500},height:{type:Number,default:320},buttons:{type:Array,default:[]},modelValue:{type:Boolean,default:!1},showHeader:{type:Boolean,default:!0},showButtons:{type:Boolean,default:!0}},Q="",u=e.defineComponent({name:"FModal",props:w,emits:["update:modelValue","accept","cancel"],setup(t,n){const s=e.ref(t.width),m=e.ref(t.height),d=e.ref(t.modelValue),f=e.ref(""),h=e.ref(t.class),r=e.ref(!0),i=e.ref(t.showHeader),b=e.ref(""),y=e.ref(!0),p=e.ref(!1),M=e.ref(!1),j=e.ref(""),B=e.ref(""),H=e.ref(""),k=e.ref(t.showButtons),z=e.ref(t.title);function V(l,c){d.value=!1,n.emit("update:modelValue",!1),n.emit(c?"accept":"cancel")}const A=[{text:"取消",class:"btn btn-light",handle:l=>{V(l,!1)}},{text:"确定",class:"btn btn-primary",handle:l=>{V(l,!0)}}],C=e.ref(t.buttons&&t.buttons.length?t.buttons:A),v=e.computed(()=>!!b.value),F=e.computed(()=>!!k.value&&!!C.value);e.ref(),e.ref(),e.watch(()=>t.modelValue,()=>{d.value=t.modelValue});const T=e.ref(!1),$=e.computed(()=>d.value),_=e.computed(()=>{const l={modal:!0,"farris-modal":!0};return l["f-modal-fitContent"]=r.value,l}),I=e.computed(()=>({display:$.value?"block":"none !important"})),R=e.computed(()=>{const l={"modal-dialog":!0};return h.value.split(" ").reduce((a,g)=>(a[g]=!0,a),l),l}),D=e.computed(()=>({position:"absolute",top:"50%",left:"50%",width:`${s.value}px`,height:r.value?"auto":`${m.value}px`,"margin-left":`${0-s.value/2}px`,"margin-top":r.value?"auto":`${0-m.value/2}px`})),E=e.computed(()=>({"modal-content":!0,"modal-content-has-header":i.value})),P=e.computed(()=>({display:i.value?"":"none"})),U=e.computed(()=>({"f-icon":!0,modal_maximize:!0,modalrevert:T.value})),q=e.computed(()=>({height:"10px","z-index":1,display:i.value?"none":""})),G=e.computed(()=>({"modal-body":!0,"f-utils-flex-column":j.value==="iframe"}));function J(){return{}}const K=e.computed(()=>{const l={textAlgin:H.value},c=J();return Object.assign(l,c)});function L(l){}return()=>e.createVNode(e.Teleport,{to:"body"},{default:()=>{var l,c;return[e.createVNode("div",{class:_.value,style:I.value},[e.createVNode("div",{id:f.value,class:R.value,style:D.value},[e.createVNode("div",{class:E.value},[e.createVNode("div",{ref:"modalHeaderRef",class:"modal-header",style:P.value},[e.createVNode("div",{class:"modal-title"},[v.value&&e.createVNode("span",{class:b.value,style:"margin-right: 8px"},null),e.createVNode("span",{class:"modal-title-label"},[z.value])]),e.createVNode("div",{class:"actions"},[e.createVNode("ul",null,[M.value&&e.createVNode("li",{class:"f-btn-icon f-bare"},[e.createVNode("span",{class:"f-icon modal_minimize"},null)]),p.value&&e.createVNode("li",{onClick:L,class:"f-btn-icon f-bare"},[e.createVNode("span",{class:U.value},null)]),y.value&&e.createVNode("li",{class:"f-btn-icon f-bare",onClick:a=>V(a,!0)},[e.createVNode("span",{class:"f-icon modal_close"},null)])])])]),e.createVNode("div",{ref:"dragableElementRef",class:"f-utils-absolute-all",style:q.value},null),e.createVNode("div",{class:G.value},[(c=(l=n.slots).default)==null?void 0:c.call(l),j.value==="iframe"&&e.createVNode("iframe",{title:f.value,class:"f-utils-fill",width:"100%",frameborder:"0",src:B.value},null)]),F.value&&e.createVNode("div",{class:"modal-footer",style:K.value},[C.value&&C.value.map(a=>e.createVNode("button",{type:"button",class:a.class,onClick:g=>{a.handle&&a.handle(g)}},[!!a.iconClass&&e.createVNode("span",{class:a.iconClass},[a.text]),!a.iconClass&&e.createVNode("span",null,[a.text])]))])])])])]}})}});function O(t){if(t.content&&t.content.render)return t.content.render;if(t.render&&typeof t.render=="function")return t.render}function S(t){const n=document.createElement("div");n.style.display="contents";const s=e.createApp({setup(){e.onUnmounted(()=>{document.body.removeChild(n)});const m=e.ref(t.class||""),d=e.ref(!!t.showButtons),f=e.ref(!!t.showHeader),h=e.ref(!0),r=e.ref(t.title||""),i=t.acceptCallback||(()=>{}),b=t.rejectCallback||(()=>{}),y=O(t);return()=>e.createVNode(u,{class:m.value,modelValue:h.value,"onUpdate:modelValue":p=>h.value=p,title:r.value,width:t.width,"show-header":f.value,"show-buttons":d.value,onAccept:i,onCancel:b},{default:()=>[y&&y(s)]})}});return document.body.appendChild(n),s.mount(n),s}class N{static show(n){const s=Object.assign({title:"",showButtons:!0,showHeader:!0},n);return S(s)}}const x={install(t){t.component(u.name,u),t.provide("ModalService",N)}};o.FModal=u,o.ModalService=N,o.default=x,o.modalProps=w,Object.defineProperties(o,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
package/modal/package.json
CHANGED
package/modal/style.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.farris-modal{background-color:#00000073}.farris-modal .modal-content{border-radius:18px}
|