@ibiz-template/vue3-components 0.7.41-alpha.109 → 0.7.41-alpha.110
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/dist/ibiz-markdown-editor-CWm3E2Yp.js +1 -0
- package/dist/{index-C4lAgt_Z.js → index-B_EuifAN.js} +1 -1
- package/dist/index-DWSenYP7.js +339 -0
- package/dist/{index-ClNlEUQb.js → index-DtplUClV.js} +1 -1
- package/dist/{index.es-Yk1WF_Zf.js → index.es-BsB4zr7o.js} +1 -1
- package/dist/index.min.css +1 -1
- package/dist/index.system.min.js +1 -1
- package/dist/wang-editor-DRSeYDm8.js +1 -0
- package/dist/{xlsx-util-D5pGZqDF.js → xlsx-util-BP1V2Kg2.js} +1 -1
- package/es/common/carousel/carousel.mjs +41 -15
- package/es/common/split/split.mjs +2 -0
- package/es/control/app-menu/app-menu.css +1 -1
- package/es/control/app-menu/app-menu.mjs +4 -4
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-form/form-mdctrl-form.mjs +5 -3
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-md/form-mdctrl-md.mjs +5 -3
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.mjs +11 -7
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid2/repeater-grid2.mjs +11 -7
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-single-form/repeater-single-form.mjs +3 -1
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl.mjs +6 -6
- package/es/control/form/form-detail/form-mdctrl/mdctrl-container/mdctrl-container.mjs +7 -6
- package/es/control/form/form-detail/form-mdctrl/mdctrl-container2/mdctrl-container2.mjs +4 -2
- package/es/control/kanban/swimlane-kanban/swimlane-kanban.mjs +2 -2
- package/es/control/toolbar/toolbar.mjs +4 -4
- package/es/directives/child-class/child-class.mjs +1 -1
- package/es/directives/child-style/child-style.mjs +4 -0
- package/es/editor/array/ibiz-array/ibiz-array.mjs +101 -32
- package/es/editor/autocomplete/ibiz-autocomplete/ibiz-autocomplete.css +1 -1
- package/es/editor/autocomplete/ibiz-autocomplete/ibiz-autocomplete.mjs +37 -23
- package/es/editor/cascader/ibiz-cascader/ibiz-cascader.mjs +41 -7
- package/es/editor/check-box-list/ibiz-checkbox-list/ibiz-checkbox-list.mjs +38 -5
- package/es/editor/code/monaco-editor/monaco-editor.mjs +103 -18
- package/es/editor/color-picker/ibiz-color-mpicker-custom/ibiz-color-mpicker-custom.mjs +65 -9
- package/es/editor/color-picker/ibiz-color-mpicker-default/ibiz-color-mpicker-default.mjs +56 -11
- package/es/editor/color-picker/ibiz-color-picker/ibiz-color-picker.mjs +55 -20
- package/es/editor/data-picker/ibiz-mpicker/ibiz-mpicker.mjs +68 -35
- package/es/editor/data-picker/ibiz-picker/ibiz-picker.css +1 -1
- package/es/editor/data-picker/ibiz-picker/ibiz-picker.mjs +56 -38
- package/es/editor/data-picker/ibiz-picker-dropdown/ibiz-picker-dropdown.mjs +44 -30
- package/es/editor/data-picker/ibiz-picker-embed-view/ibiz-picker-embed-view.mjs +1 -1
- package/es/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.css +1 -1
- package/es/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.mjs +32 -18
- package/es/editor/data-picker/ibiz-transfer-picker/components/transfer/transfer.mjs +7 -7
- package/es/editor/data-picker/ibiz-transfer-picker/components/transfer-panel/transfer-panel.css +1 -1
- package/es/editor/data-picker/ibiz-transfer-picker/components/transfer-panel/transfer-panel.mjs +5 -1
- package/es/editor/data-picker/ibiz-transfer-picker/ibiz-transfer-picker.mjs +105 -10
- package/es/editor/date-picker/ibiz-date-picker/ibiz-date-picker.mjs +30 -8
- package/es/editor/date-range/ibiz-date-range-picker/ibiz-date-range-picker.mjs +35 -5
- package/es/editor/date-range-select/date-range-select-picker/date-range-select.mjs +66 -13
- package/es/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.mjs +115 -47
- package/es/editor/dropdown-list/ibiz-emoji-picker/ibiz-emoji-picker.mjs +66 -11
- package/es/editor/dropdown-list/ibiz-tree-picker/ibiz-tree-picker.mjs +66 -17
- package/es/editor/dropdown-list/ibiz-virtualized-list/ibiz-virtualized-list.mjs +117 -21
- package/es/editor/html/html-editor.controller.mjs +3 -3
- package/es/editor/html/wang-editor/wang-editor.css +1 -1
- package/es/editor/html/wang-editor/wang-editor.mjs +108 -33
- package/es/editor/html-preview/html-preview-editor.controller.mjs +261 -0
- package/es/editor/html-preview/html-preview-editor.provider.mjs +22 -0
- package/es/editor/html-preview/ibiz-html-preview/ibiz-html-preview-icon.mjs +29 -0
- package/es/editor/html-preview/ibiz-html-preview/ibiz-html-preview-util.mjs +162 -0
- package/es/editor/html-preview/ibiz-html-preview/ibiz-html-preview.css +1 -0
- package/es/editor/html-preview/ibiz-html-preview/ibiz-html-preview.mjs +373 -0
- package/es/editor/html-preview/index.mjs +5 -0
- package/es/editor/index.mjs +8 -0
- package/es/editor/list-box/ibiz-list-box/ibiz-list-box.mjs +53 -15
- package/es/editor/map-picker/ibiz-map-picker/ibiz-map-picker.mjs +100 -18
- package/es/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.mjs +152 -18
- package/es/editor/radio-button-list/ibiz-radio/ibiz-radio.mjs +81 -33
- package/es/editor/rate/ibiz-rate/ibiz-rate.mjs +19 -3
- package/es/editor/slider/ibiz-slider/ibiz-slider.mjs +53 -7
- package/es/editor/stepper/ibiz-stepper/ibiz-stepper.mjs +25 -3
- package/es/editor/switch/ibiz-switch/ibiz-switch.mjs +25 -3
- package/es/editor/text-box/ibiz-input-ip/ibiz-input-ip.mjs +5 -2
- package/es/editor/text-box/ibiz-input-number/ibiz-input-number.mjs +15 -5
- package/es/editor/text-box/input/input.mjs +40 -11
- package/es/editor/text-box/signature/signature.mjs +2 -6
- package/es/editor/upload/ibiz-file-upload/ibiz-file-upload.mjs +63 -22
- package/es/editor/upload/ibiz-image-cropping/ibiz-image-cropping.mjs +70 -23
- package/es/editor/upload/ibiz-image-preview/ibiz-image-preview.mjs +15 -6
- package/es/editor/upload/ibiz-image-upload/ibiz-image-upload.mjs +24 -14
- package/es/locale/en/index.mjs +3 -1
- package/es/locale/zh-CN/index.mjs +3 -1
- package/es/panel-component/app-switch/app-switch.css +1 -1
- package/es/panel-component/app-switch/app-switch.mjs +6 -2
- package/es/panel-component/auth-userinfo/auth-userinfo.mjs +3 -2
- package/es/panel-component/coop-pos/coop-pos.mjs +2 -1
- package/es/panel-component/data-import/data-import-shell.mjs +2 -2
- package/es/panel-component/global-search/global-search.mjs +8 -5
- package/es/panel-component/index-blank-placeholder/index-blank-placeholder.mjs +7 -1
- package/es/panel-component/nav-breadcrumb/nav-breadcrumb.mjs +17 -5
- package/es/panel-component/nav-tabs/nav-tabs.mjs +14 -2
- package/es/panel-component/panel-static-carousel/panel-static-carousel.mjs +6 -7
- package/es/panel-component/searchform-buttons/searchform-buttons.mjs +7 -4
- package/es/panel-component/short-cut/short-cut.mjs +9 -5
- package/es/panel-component/user-message/user-message.mjs +6 -6
- package/es/util/app-util/app-util.mjs +4 -0
- package/es/util/xlsx-util/xlsx-util.mjs +7 -3
- package/es/web-app/adaptive-screen-width.mjs +34 -0
- package/lib/common/carousel/carousel.cjs +40 -14
- package/lib/common/split/split.cjs +2 -0
- package/lib/control/app-menu/app-menu.cjs +4 -4
- package/lib/control/app-menu/app-menu.css +1 -1
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-form/form-mdctrl-form.cjs +5 -3
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-md/form-mdctrl-md.cjs +5 -3
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.cjs +11 -7
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid2/repeater-grid2.cjs +11 -7
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-single-form/repeater-single-form.cjs +3 -1
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl.cjs +6 -6
- package/lib/control/form/form-detail/form-mdctrl/mdctrl-container/mdctrl-container.cjs +7 -6
- package/lib/control/form/form-detail/form-mdctrl/mdctrl-container2/mdctrl-container2.cjs +4 -2
- package/lib/control/kanban/swimlane-kanban/swimlane-kanban.cjs +2 -2
- package/lib/control/toolbar/toolbar.cjs +4 -4
- package/lib/directives/child-class/child-class.cjs +1 -1
- package/lib/directives/child-style/child-style.cjs +4 -0
- package/lib/editor/array/ibiz-array/ibiz-array.cjs +99 -30
- package/lib/editor/autocomplete/ibiz-autocomplete/ibiz-autocomplete.cjs +36 -22
- package/lib/editor/autocomplete/ibiz-autocomplete/ibiz-autocomplete.css +1 -1
- package/lib/editor/cascader/ibiz-cascader/ibiz-cascader.cjs +40 -6
- package/lib/editor/check-box-list/ibiz-checkbox-list/ibiz-checkbox-list.cjs +38 -5
- package/lib/editor/code/monaco-editor/monaco-editor.cjs +102 -17
- package/lib/editor/color-picker/ibiz-color-mpicker-custom/ibiz-color-mpicker-custom.cjs +64 -8
- package/lib/editor/color-picker/ibiz-color-mpicker-default/ibiz-color-mpicker-default.cjs +55 -10
- package/lib/editor/color-picker/ibiz-color-picker/ibiz-color-picker.cjs +53 -18
- package/lib/editor/data-picker/ibiz-mpicker/ibiz-mpicker.cjs +67 -34
- package/lib/editor/data-picker/ibiz-picker/ibiz-picker.cjs +55 -37
- package/lib/editor/data-picker/ibiz-picker/ibiz-picker.css +1 -1
- package/lib/editor/data-picker/ibiz-picker-dropdown/ibiz-picker-dropdown.cjs +43 -29
- package/lib/editor/data-picker/ibiz-picker-embed-view/ibiz-picker-embed-view.cjs +1 -1
- package/lib/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.cjs +31 -17
- package/lib/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.css +1 -1
- package/lib/editor/data-picker/ibiz-transfer-picker/components/transfer/transfer.cjs +7 -7
- package/lib/editor/data-picker/ibiz-transfer-picker/components/transfer-panel/transfer-panel.cjs +5 -1
- package/lib/editor/data-picker/ibiz-transfer-picker/components/transfer-panel/transfer-panel.css +1 -1
- package/lib/editor/data-picker/ibiz-transfer-picker/ibiz-transfer-picker.cjs +103 -8
- package/lib/editor/date-picker/ibiz-date-picker/ibiz-date-picker.cjs +29 -7
- package/lib/editor/date-range/ibiz-date-range-picker/ibiz-date-range-picker.cjs +34 -4
- package/lib/editor/date-range-select/date-range-select-picker/date-range-select.cjs +64 -11
- package/lib/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.cjs +114 -46
- package/lib/editor/dropdown-list/ibiz-emoji-picker/ibiz-emoji-picker.cjs +64 -9
- package/lib/editor/dropdown-list/ibiz-tree-picker/ibiz-tree-picker.cjs +64 -15
- package/lib/editor/dropdown-list/ibiz-virtualized-list/ibiz-virtualized-list.cjs +115 -19
- package/lib/editor/html/html-editor.controller.cjs +3 -3
- package/lib/editor/html/wang-editor/wang-editor.cjs +106 -31
- package/lib/editor/html/wang-editor/wang-editor.css +1 -1
- package/lib/editor/html-preview/html-preview-editor.controller.cjs +263 -0
- package/lib/editor/html-preview/html-preview-editor.provider.cjs +24 -0
- package/lib/editor/html-preview/ibiz-html-preview/ibiz-html-preview-icon.cjs +32 -0
- package/lib/editor/html-preview/ibiz-html-preview/ibiz-html-preview-util.cjs +170 -0
- package/lib/editor/html-preview/ibiz-html-preview/ibiz-html-preview.cjs +375 -0
- package/lib/editor/html-preview/ibiz-html-preview/ibiz-html-preview.css +1 -0
- package/lib/editor/html-preview/index.cjs +11 -0
- package/lib/editor/index.cjs +8 -0
- package/lib/editor/list-box/ibiz-list-box/ibiz-list-box.cjs +52 -14
- package/lib/editor/map-picker/ibiz-map-picker/ibiz-map-picker.cjs +98 -16
- package/lib/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.cjs +150 -16
- package/lib/editor/radio-button-list/ibiz-radio/ibiz-radio.cjs +80 -32
- package/lib/editor/rate/ibiz-rate/ibiz-rate.cjs +18 -2
- package/lib/editor/slider/ibiz-slider/ibiz-slider.cjs +52 -6
- package/lib/editor/stepper/ibiz-stepper/ibiz-stepper.cjs +24 -2
- package/lib/editor/switch/ibiz-switch/ibiz-switch.cjs +24 -2
- package/lib/editor/text-box/ibiz-input-ip/ibiz-input-ip.cjs +5 -2
- package/lib/editor/text-box/ibiz-input-number/ibiz-input-number.cjs +14 -4
- package/lib/editor/text-box/input/input.cjs +39 -10
- package/lib/editor/text-box/signature/signature.cjs +2 -6
- package/lib/editor/upload/ibiz-file-upload/ibiz-file-upload.cjs +61 -20
- package/lib/editor/upload/ibiz-image-cropping/ibiz-image-cropping.cjs +68 -21
- package/lib/editor/upload/ibiz-image-preview/ibiz-image-preview.cjs +14 -5
- package/lib/editor/upload/ibiz-image-upload/ibiz-image-upload.cjs +23 -13
- package/lib/locale/en/index.cjs +3 -1
- package/lib/locale/zh-CN/index.cjs +3 -1
- package/lib/panel-component/app-switch/app-switch.cjs +6 -2
- package/lib/panel-component/app-switch/app-switch.css +1 -1
- package/lib/panel-component/auth-userinfo/auth-userinfo.cjs +3 -2
- package/lib/panel-component/coop-pos/coop-pos.cjs +2 -1
- package/lib/panel-component/data-import/data-import-shell.cjs +2 -2
- package/lib/panel-component/global-search/global-search.cjs +8 -5
- package/lib/panel-component/index-blank-placeholder/index-blank-placeholder.cjs +7 -1
- package/lib/panel-component/nav-breadcrumb/nav-breadcrumb.cjs +16 -4
- package/lib/panel-component/nav-tabs/nav-tabs.cjs +13 -1
- package/lib/panel-component/panel-static-carousel/panel-static-carousel.cjs +5 -6
- package/lib/panel-component/searchform-buttons/searchform-buttons.cjs +7 -4
- package/lib/panel-component/short-cut/short-cut.cjs +9 -5
- package/lib/panel-component/user-message/user-message.cjs +6 -6
- package/lib/util/app-util/app-util.cjs +4 -0
- package/lib/util/xlsx-util/xlsx-util.cjs +7 -3
- package/lib/web-app/adaptive-screen-width.cjs +34 -0
- package/package.json +5 -5
- package/src/common/carousel/carousel.tsx +51 -24
- package/src/common/split/split.tsx +1 -0
- package/src/control/app-menu/app-menu.scss +10 -2
- package/src/control/app-menu/app-menu.tsx +4 -4
- package/src/control/form/form-detail/form-mdctrl/form-mdctrl-form/form-mdctrl-form.tsx +5 -0
- package/src/control/form/form-detail/form-mdctrl/form-mdctrl-md/form-mdctrl-md.tsx +5 -0
- package/src/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.tsx +14 -6
- package/src/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid2/repeater-grid2.tsx +14 -6
- package/src/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-single-form/repeater-single-form.tsx +10 -1
- package/src/control/form/form-detail/form-mdctrl/form-mdctrl.tsx +18 -9
- package/src/control/form/form-detail/form-mdctrl/mdctrl-container/mdctrl-container.tsx +7 -0
- package/src/control/form/form-detail/form-mdctrl/mdctrl-container2/mdctrl-container2.tsx +4 -0
- package/src/control/kanban/swimlane-kanban/swimlane-kanban.tsx +2 -2
- package/src/control/toolbar/toolbar.tsx +4 -4
- package/src/directives/child-class/child-class.ts +2 -2
- package/src/directives/child-style/child-style.ts +6 -2
- package/src/editor/array/ibiz-array/ibiz-array.tsx +135 -27
- package/src/editor/autocomplete/ibiz-autocomplete/ibiz-autocomplete.scss +6 -13
- package/src/editor/autocomplete/ibiz-autocomplete/ibiz-autocomplete.tsx +54 -33
- package/src/editor/cascader/ibiz-cascader/ibiz-cascader.tsx +56 -7
- package/src/editor/check-box-list/ibiz-checkbox-list/ibiz-checkbox-list.tsx +54 -5
- package/src/editor/code/monaco-editor/monaco-editor.tsx +133 -10
- package/src/editor/color-picker/ibiz-color-mpicker-custom/ibiz-color-mpicker-custom.tsx +89 -7
- package/src/editor/color-picker/ibiz-color-mpicker-default/ibiz-color-mpicker-default.tsx +72 -5
- package/src/editor/color-picker/ibiz-color-picker/ibiz-color-picker.tsx +67 -15
- package/src/editor/data-picker/ibiz-mpicker/ibiz-mpicker.tsx +98 -37
- package/src/editor/data-picker/ibiz-picker/ibiz-picker.scss +6 -12
- package/src/editor/data-picker/ibiz-picker/ibiz-picker.tsx +110 -92
- package/src/editor/data-picker/ibiz-picker-dropdown/ibiz-picker-dropdown.tsx +55 -26
- package/src/editor/data-picker/ibiz-picker-embed-view/ibiz-picker-embed-view.tsx +1 -1
- package/src/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.scss +4 -7
- package/src/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.tsx +59 -44
- package/src/editor/data-picker/ibiz-transfer-picker/components/transfer/transfer.tsx +9 -9
- package/src/editor/data-picker/ibiz-transfer-picker/components/transfer-panel/transfer-panel.scss +14 -15
- package/src/editor/data-picker/ibiz-transfer-picker/components/transfer-panel/transfer-panel.tsx +4 -2
- package/src/editor/data-picker/ibiz-transfer-picker/ibiz-transfer-picker.tsx +135 -5
- package/src/editor/date-picker/ibiz-date-picker/ibiz-date-picker.tsx +40 -11
- package/src/editor/date-range/ibiz-date-range-picker/ibiz-date-range-picker.tsx +49 -5
- package/src/editor/date-range-select/date-range-select-picker/date-range-select.tsx +87 -7
- package/src/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.tsx +152 -45
- package/src/editor/dropdown-list/ibiz-emoji-picker/ibiz-emoji-picker.tsx +89 -6
- package/src/editor/dropdown-list/ibiz-tree-picker/ibiz-tree-picker.tsx +106 -19
- package/src/editor/dropdown-list/ibiz-virtualized-list/ibiz-virtualized-list.tsx +169 -14
- package/src/editor/html/html-editor.controller.ts +3 -3
- package/src/editor/html/wang-editor/wang-editor.scss +1 -1
- package/src/editor/html/wang-editor/wang-editor.tsx +130 -24
- package/src/editor/html-preview/html-preview-editor.controller.ts +312 -0
- package/src/editor/html-preview/html-preview-editor.provider.ts +28 -0
- package/src/editor/html-preview/ibiz-html-preview/ibiz-html-preview-icon.tsx +27 -0
- package/src/editor/html-preview/ibiz-html-preview/ibiz-html-preview-util.ts +244 -0
- package/src/editor/html-preview/ibiz-html-preview/ibiz-html-preview.scss +189 -0
- package/src/editor/html-preview/ibiz-html-preview/ibiz-html-preview.tsx +536 -0
- package/src/editor/html-preview/index.ts +3 -0
- package/src/editor/index.ts +6 -0
- package/src/editor/list-box/ibiz-list-box/ibiz-list-box.tsx +66 -4
- package/src/editor/map-picker/ibiz-map-picker/ibiz-map-picker.tsx +138 -18
- package/src/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.tsx +203 -13
- package/src/editor/radio-button-list/ibiz-radio/ibiz-radio.tsx +91 -66
- package/src/editor/rate/ibiz-rate/ibiz-rate.tsx +28 -0
- package/src/editor/slider/ibiz-slider/ibiz-slider.tsx +70 -4
- package/src/editor/stepper/ibiz-stepper/ibiz-stepper.tsx +36 -0
- package/src/editor/switch/ibiz-switch/ibiz-switch.tsx +35 -0
- package/src/editor/text-box/ibiz-input-ip/ibiz-input-ip.tsx +15 -2
- package/src/editor/text-box/ibiz-input-number/ibiz-input-number.tsx +22 -2
- package/src/editor/text-box/input/input.tsx +55 -22
- package/src/editor/text-box/signature/signature.tsx +2 -4
- package/src/editor/upload/ibiz-file-upload/ibiz-file-upload.tsx +84 -11
- package/src/editor/upload/ibiz-image-cropping/ibiz-image-cropping.tsx +98 -19
- package/src/editor/upload/ibiz-image-preview/ibiz-image-preview.tsx +10 -3
- package/src/editor/upload/ibiz-image-upload/ibiz-image-upload.tsx +36 -12
- package/src/locale/en/index.ts +3 -0
- package/src/locale/zh-CN/index.ts +2 -0
- package/src/panel-component/app-switch/app-switch.scss +4 -0
- package/src/panel-component/app-switch/app-switch.tsx +8 -2
- package/src/panel-component/auth-userinfo/auth-userinfo.tsx +5 -2
- package/src/panel-component/coop-pos/coop-pos.tsx +7 -1
- package/src/panel-component/data-import/data-import-shell.tsx +2 -2
- package/src/panel-component/global-search/global-search.tsx +13 -4
- package/src/panel-component/index-blank-placeholder/index-blank-placeholder.tsx +2 -0
- package/src/panel-component/nav-breadcrumb/nav-breadcrumb.tsx +34 -3
- package/src/panel-component/nav-tabs/nav-tabs.tsx +34 -1
- package/src/panel-component/panel-static-carousel/panel-static-carousel.tsx +4 -4
- package/src/panel-component/searchform-buttons/searchform-buttons.tsx +13 -4
- package/src/panel-component/short-cut/short-cut.tsx +8 -5
- package/src/panel-component/user-message/user-message.tsx +4 -4
- package/src/util/app-util/app-util.ts +5 -0
- package/src/util/xlsx-util/xlsx-util.ts +5 -3
- package/src/web-app/adaptive-screen-width.ts +40 -0
- package/dist/ibiz-markdown-editor-BxT3t2N6.js +0 -1
- package/dist/index-DztmOyVK.js +0 -339
- package/dist/wang-editor-2Z1_fZ0o.js +0 -1
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
/* eslint-disable no-useless-escape */
|
|
2
|
+
/* eslint-disable no-plusplus */
|
|
3
|
+
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
|
|
4
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
5
|
+
/* eslint-disable no-cond-assign */
|
|
6
|
+
/* eslint-disable no-restricted-syntax */
|
|
7
|
+
/**
|
|
8
|
+
* 获取选中文本的像素位置(坐标)
|
|
9
|
+
* @returns {IData | null}
|
|
10
|
+
*/
|
|
11
|
+
export const getSelectionPosition = (container: HTMLElement): IData | null => {
|
|
12
|
+
const selection = window.getSelection();
|
|
13
|
+
|
|
14
|
+
if (!selection || !selection.rangeCount) {
|
|
15
|
+
return null;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
const range = selection.getRangeAt(0);
|
|
19
|
+
|
|
20
|
+
// 获取选区的边界矩形
|
|
21
|
+
const rects = range.getClientRects();
|
|
22
|
+
|
|
23
|
+
if (rects.length === 0) {
|
|
24
|
+
return null;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
// 最后一个矩形
|
|
28
|
+
const lastRect = rects[rects.length - 1];
|
|
29
|
+
const parentRect = container.getBoundingClientRect();
|
|
30
|
+
|
|
31
|
+
return {
|
|
32
|
+
left: lastRect.right - parentRect.left,
|
|
33
|
+
top: lastRect.bottom - parentRect.top,
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* 简单转义html
|
|
39
|
+
*/
|
|
40
|
+
export const escapeHTML = (html: string): string => {
|
|
41
|
+
const div = document.createElement('div');
|
|
42
|
+
div.textContent = html;
|
|
43
|
+
return div.innerHTML;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
export const unescapeHTML = (escapedHTML: string): string => {
|
|
47
|
+
const div = document.createElement('div');
|
|
48
|
+
div.innerHTML = escapedHTML;
|
|
49
|
+
return div.textContent || '';
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
// tab缩进
|
|
53
|
+
const tabSize = 4;
|
|
54
|
+
export const TAB = ' '.repeat(tabSize);
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* @description 获取当前选中范围
|
|
58
|
+
* @export
|
|
59
|
+
* @returns {*} {(Range | null)}
|
|
60
|
+
*/
|
|
61
|
+
function getSelectionRange(): Range | null {
|
|
62
|
+
const selection = window.getSelection();
|
|
63
|
+
if (!selection || !selection.rangeCount) {
|
|
64
|
+
return null;
|
|
65
|
+
}
|
|
66
|
+
return selection.getRangeAt(0);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* @description DOM位置转换
|
|
71
|
+
* @param {*} node
|
|
72
|
+
* @param {*} offset
|
|
73
|
+
* @returns {*}
|
|
74
|
+
*/
|
|
75
|
+
function getOffset(editor: HTMLElement, node: Node, offset: number) {
|
|
76
|
+
const range = document.createRange();
|
|
77
|
+
range.selectNodeContents(editor);
|
|
78
|
+
range.setEnd(node, offset);
|
|
79
|
+
return range.toString().length;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* @description 恢复光标位置
|
|
84
|
+
* @export
|
|
85
|
+
* @param {*} pos
|
|
86
|
+
* @param {*} [end=pos]
|
|
87
|
+
* @returns {*}
|
|
88
|
+
*/
|
|
89
|
+
function restoreCursor(editor: HTMLElement, pos: number, end = pos): void {
|
|
90
|
+
const walker = document.createTreeWalker(editor, NodeFilter.SHOW_TEXT);
|
|
91
|
+
let node: any;
|
|
92
|
+
let count = 0;
|
|
93
|
+
while ((node = walker.nextNode())) {
|
|
94
|
+
const len = node.length;
|
|
95
|
+
if (pos >= count && pos <= count + len) {
|
|
96
|
+
const range = document.createRange();
|
|
97
|
+
range.setStart(node, pos - count);
|
|
98
|
+
range.setEnd(node, end - count);
|
|
99
|
+
const sel = window.getSelection();
|
|
100
|
+
if (sel) {
|
|
101
|
+
sel.removeAllRanges();
|
|
102
|
+
sel.addRange(range);
|
|
103
|
+
}
|
|
104
|
+
return;
|
|
105
|
+
}
|
|
106
|
+
count += len;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* @description 恢复选区
|
|
112
|
+
* @param {HTMLElement} editor
|
|
113
|
+
* @param {number} start
|
|
114
|
+
* @param {number} end
|
|
115
|
+
* @param {number} startOffset
|
|
116
|
+
* @param {number} endOffset
|
|
117
|
+
* @returns {*}
|
|
118
|
+
*/
|
|
119
|
+
function restoreSelection(
|
|
120
|
+
editor: HTMLElement,
|
|
121
|
+
start: number,
|
|
122
|
+
end: number,
|
|
123
|
+
startOffset: number,
|
|
124
|
+
endOffset: number,
|
|
125
|
+
) {
|
|
126
|
+
const walker = document.createTreeWalker(editor, NodeFilter.SHOW_TEXT);
|
|
127
|
+
let node: any;
|
|
128
|
+
let pos = 0;
|
|
129
|
+
let startNode = null;
|
|
130
|
+
let endNode = null;
|
|
131
|
+
while ((node = walker.nextNode())) {
|
|
132
|
+
const next = pos + node.length;
|
|
133
|
+
if (!startNode && start >= pos && start <= next) {
|
|
134
|
+
startNode = node;
|
|
135
|
+
}
|
|
136
|
+
if (end >= pos && end <= next) {
|
|
137
|
+
endNode = node;
|
|
138
|
+
break;
|
|
139
|
+
}
|
|
140
|
+
pos = next;
|
|
141
|
+
}
|
|
142
|
+
if (!startNode || !endNode) return;
|
|
143
|
+
const range = document.createRange();
|
|
144
|
+
range.setStart(startNode, startOffset);
|
|
145
|
+
range.setEnd(endNode, endOffset);
|
|
146
|
+
const selection = window.getSelection();
|
|
147
|
+
selection!.removeAllRanges();
|
|
148
|
+
selection!.addRange(range);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* @description 插入文本
|
|
153
|
+
* @export
|
|
154
|
+
* @param {string} text
|
|
155
|
+
*/
|
|
156
|
+
export function insertText(text: string): void {
|
|
157
|
+
const selection = window.getSelection();
|
|
158
|
+
if (selection) {
|
|
159
|
+
const range = selection.getRangeAt(0);
|
|
160
|
+
range.deleteContents();
|
|
161
|
+
const node = document.createTextNode(text);
|
|
162
|
+
range.insertNode(node);
|
|
163
|
+
range.setStartAfter(node);
|
|
164
|
+
range.collapse(true);
|
|
165
|
+
selection.removeAllRanges();
|
|
166
|
+
selection.addRange(range);
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* @description shift+tab
|
|
172
|
+
* @export
|
|
173
|
+
* @param {HTMLElement} editor
|
|
174
|
+
* @returns {*}
|
|
175
|
+
*/
|
|
176
|
+
export function removeIndent(editor: HTMLElement) {
|
|
177
|
+
const range = getSelectionRange();
|
|
178
|
+
if (!range) {
|
|
179
|
+
return;
|
|
180
|
+
}
|
|
181
|
+
const text = editor.innerText;
|
|
182
|
+
const pos = getOffset(editor, range.startContainer, range.startOffset);
|
|
183
|
+
const lineStart = text.lastIndexOf('\n', pos - 1) + 1;
|
|
184
|
+
const line = text.substring(lineStart, pos);
|
|
185
|
+
const remove = line.match(/^ {1,4}/);
|
|
186
|
+
if (remove) {
|
|
187
|
+
insertText('');
|
|
188
|
+
const newText =
|
|
189
|
+
editor.innerText.substring(0, lineStart) +
|
|
190
|
+
line.replace(/^ {1,4}/, '') +
|
|
191
|
+
editor.innerText.substring(pos);
|
|
192
|
+
editor.innerText = newText;
|
|
193
|
+
restoreCursor(editor, pos - remove[0].length);
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* @description 多行缩进
|
|
199
|
+
* @export
|
|
200
|
+
* @param {HTMLElement} editor
|
|
201
|
+
* @param {boolean} [remove=false]
|
|
202
|
+
* @returns {*} {void}
|
|
203
|
+
*/
|
|
204
|
+
export function indentSelection(editor: HTMLElement, remove = false): void {
|
|
205
|
+
const text = editor.innerText;
|
|
206
|
+
const range = getSelectionRange();
|
|
207
|
+
if (!range) {
|
|
208
|
+
return undefined;
|
|
209
|
+
}
|
|
210
|
+
const startOffset = range.startOffset;
|
|
211
|
+
let start = getOffset(editor, range.startContainer, range.startOffset);
|
|
212
|
+
const startIndex = text.substring(0, start).lastIndexOf('\n');
|
|
213
|
+
if (startIndex !== -1) {
|
|
214
|
+
start = startIndex + 1;
|
|
215
|
+
}
|
|
216
|
+
const endOffset = range.endOffset;
|
|
217
|
+
let end = getOffset(editor, range.endContainer, range.endOffset);
|
|
218
|
+
const endIndex = text.substring(end).indexOf('\n');
|
|
219
|
+
if (endIndex !== -1) {
|
|
220
|
+
end += endIndex;
|
|
221
|
+
}
|
|
222
|
+
const before = text.substring(0, start);
|
|
223
|
+
const selected = text.substring(start, end);
|
|
224
|
+
let lines = selected.split('\n');
|
|
225
|
+
lines = lines.map(line => {
|
|
226
|
+
if (remove) {
|
|
227
|
+
return line.replace(/^ {1,4}/, '');
|
|
228
|
+
}
|
|
229
|
+
return TAB + line;
|
|
230
|
+
});
|
|
231
|
+
const result = before + lines.join('\n') + text.substring(end);
|
|
232
|
+
editor.innerText = result;
|
|
233
|
+
const indent = remove ? -tabSize : tabSize;
|
|
234
|
+
const contentLen = lines.slice(0, lines.length - 1).join('\n').length;
|
|
235
|
+
requestAnimationFrame(() => {
|
|
236
|
+
restoreSelection(
|
|
237
|
+
editor,
|
|
238
|
+
start + startOffset + indent,
|
|
239
|
+
before.length + contentLen + endOffset + indent,
|
|
240
|
+
startOffset + indent,
|
|
241
|
+
endOffset + indent,
|
|
242
|
+
);
|
|
243
|
+
});
|
|
244
|
+
}
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
// 预览富文本样式
|
|
2
|
+
$html-preview: (
|
|
3
|
+
height: 600px, // 默认高度
|
|
4
|
+
border-color: getCssVar('color', 'border'), // 边框颜色
|
|
5
|
+
);
|
|
6
|
+
|
|
7
|
+
// 预览富文本工具栏样式
|
|
8
|
+
$html-preview-toolbar: (
|
|
9
|
+
height: 48px, // 工具栏高度
|
|
10
|
+
padding: 0 getCssVar(spacing, base), // 工具栏内间距
|
|
11
|
+
gap: getCssVar(spacing, extra, tight), // 工具栏项间隔
|
|
12
|
+
);
|
|
13
|
+
|
|
14
|
+
// 预览富文本工具栏项样式
|
|
15
|
+
$html-preview-toolbar-item: (
|
|
16
|
+
width: 40px, // 工具栏项宽度
|
|
17
|
+
height: 40px, // 工具栏项高度
|
|
18
|
+
hover-bg-color: getCssVar('color', 'primary', light, default), // 鼠标悬停背景色
|
|
19
|
+
hover-color: getCssVar('color', 'primary'), // 鼠标悬停颜色
|
|
20
|
+
);
|
|
21
|
+
|
|
22
|
+
// 预览富文本编辑框样式
|
|
23
|
+
$html-preview-editor: (
|
|
24
|
+
padding: getCssVar(spacing, base, tight), // 预览富文本编辑框内边距
|
|
25
|
+
copy-size: getCssVar(font-size, header, 5), // 复制按钮大小
|
|
26
|
+
);
|
|
27
|
+
|
|
28
|
+
// 预览富文本预览区域样式
|
|
29
|
+
$html-preview-preview: (
|
|
30
|
+
padding: getCssVar(spacing, base, tight), // 预览富文本预览区域内边距
|
|
31
|
+
);
|
|
32
|
+
|
|
33
|
+
// 预览富文本弹窗样式
|
|
34
|
+
$html-preview-popup: (
|
|
35
|
+
height: 40px, // 预览富文本弹窗高度
|
|
36
|
+
button-width: 40px, // 预览富文本弹窗按钮宽度
|
|
37
|
+
padding: getCssVar(spacing, extra, tight), // 预览富文本弹窗内边距
|
|
38
|
+
bg-color: getCssVar(color, bg, 1), // 预览富文本弹窗背景色
|
|
39
|
+
hover-bg-color: getCssVar('color', 'primary', light, default), // 预览富文本弹窗鼠标悬停背景色
|
|
40
|
+
hover-color: getCssVar('color', 'primary'), // 预览富文本弹窗鼠标悬停文本颜色
|
|
41
|
+
border-radius: getCssVar(radius, small), // 预览富文本弹窗圆角
|
|
42
|
+
box-shadow: getCssVar(shadow, elevated), // 预览富文本弹窗阴影
|
|
43
|
+
);
|
|
44
|
+
|
|
45
|
+
@include b(html-preview) {
|
|
46
|
+
@include set-component-css-var('html-preview', $html-preview);
|
|
47
|
+
@include set-component-css-var('html-preview-toolbar', $html-preview-toolbar);
|
|
48
|
+
@include set-component-css-var('html-preview-toolbar-item', $html-preview-toolbar-item);
|
|
49
|
+
@include set-component-css-var('html-preview-editor', $html-preview-editor);
|
|
50
|
+
@include set-component-css-var('html-preview-preview', $html-preview-preview);
|
|
51
|
+
@include set-component-css-var('html-preview-popup', $html-preview-popup);
|
|
52
|
+
|
|
53
|
+
position: relative;
|
|
54
|
+
height: getCssVar('html-preview', 'height');
|
|
55
|
+
border: 1px solid getCssVar('html-preview', 'border-color');
|
|
56
|
+
|
|
57
|
+
@include e('toolbar') {
|
|
58
|
+
position: relative;
|
|
59
|
+
display: flex;
|
|
60
|
+
gap: getCssVar('html-preview-toolbar', 'gap');
|
|
61
|
+
align-items: center;
|
|
62
|
+
height: getCssVar('html-preview-toolbar', 'height');
|
|
63
|
+
padding: getCssVar('html-preview-toolbar', 'padding');
|
|
64
|
+
border-bottom: 1px solid getCssVar('html-preview', 'border-color');
|
|
65
|
+
}
|
|
66
|
+
@include e('toolbar-item') {
|
|
67
|
+
display: flex;
|
|
68
|
+
align-items: center;
|
|
69
|
+
justify-content: center;
|
|
70
|
+
width: getCssVar('html-preview-toolbar-item', 'width');
|
|
71
|
+
height: getCssVar('html-preview-toolbar-item', 'height');
|
|
72
|
+
cursor: pointer;
|
|
73
|
+
|
|
74
|
+
&:hover {
|
|
75
|
+
color: getCssVar('html-preview-toolbar-item', 'hover-color');
|
|
76
|
+
background-color: getCssVar('html-preview-toolbar-item', 'hover-bg-color');
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
@include e(full-screen-button) {
|
|
81
|
+
position: absolute;
|
|
82
|
+
right: 0;
|
|
83
|
+
margin: getCssVar('html-preview-toolbar', 'padding');
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
@include e('content') {
|
|
87
|
+
display: flex;
|
|
88
|
+
width: 100%;
|
|
89
|
+
height: calc(100% - getCssVar('html-preview-toolbar', 'height'));
|
|
90
|
+
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
@include e('editor') {
|
|
94
|
+
position: relative;
|
|
95
|
+
width: 100%;
|
|
96
|
+
height: 100%;
|
|
97
|
+
|
|
98
|
+
pre {
|
|
99
|
+
width: 100%;
|
|
100
|
+
height: 100%;
|
|
101
|
+
padding: getCssVar('html-preview-editor', 'padding');
|
|
102
|
+
margin: 0;
|
|
103
|
+
overflow: auto;
|
|
104
|
+
line-height: 1.5;
|
|
105
|
+
white-space: pre-wrap;
|
|
106
|
+
outline: none;
|
|
107
|
+
|
|
108
|
+
&:empty::before {
|
|
109
|
+
position: absolute;
|
|
110
|
+
top: getCssVar('html-preview-editor', 'padding');
|
|
111
|
+
left: getCssVar('html-preview-editor', 'padding');
|
|
112
|
+
color: var(--el-text-color-placeholder);
|
|
113
|
+
pointer-events: none;
|
|
114
|
+
content: attr(placeholder);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
@include e(copy) {
|
|
120
|
+
position: absolute;
|
|
121
|
+
top: getCssVar('html-preview-editor', 'padding');
|
|
122
|
+
right: getCssVar('html-preview-editor', 'padding');
|
|
123
|
+
font-size: getCssVar('html-preview-editor', 'copy-size');
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
@include e('preview') {
|
|
127
|
+
display: none;
|
|
128
|
+
flex-direction: column;
|
|
129
|
+
width: 100%;
|
|
130
|
+
height: 100%;
|
|
131
|
+
padding: getCssVar('html-preview-preview', 'padding');
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.#{bem(split-trigger-con)} {
|
|
135
|
+
display: none;
|
|
136
|
+
}
|
|
137
|
+
.#{bem(split-pane--right)} {
|
|
138
|
+
display: none;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
@include e(hover-toolbar) {
|
|
142
|
+
position: absolute;
|
|
143
|
+
height: getCssVar(html-preview-popup, height);
|
|
144
|
+
padding: getCssVar(html-preview-popup, padding);
|
|
145
|
+
background-color: getCssVar(html-preview-popup, bg-color);
|
|
146
|
+
border-radius: getCssVar(html-preview-popup, border-radius);
|
|
147
|
+
box-shadow: getCssVar(html-preview-popup, box-shadow);
|
|
148
|
+
|
|
149
|
+
.el-button.is-link {
|
|
150
|
+
width: getCssVar(html-preview-popup, button-width);
|
|
151
|
+
height: 100%;
|
|
152
|
+
|
|
153
|
+
&:hover {
|
|
154
|
+
color: getCssVar(html-preview-popup, hover-color);
|
|
155
|
+
background-color: getCssVar(html-preview-popup, hover-bg-color);
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
@include when(preview) {
|
|
161
|
+
@include e('preview') {
|
|
162
|
+
display: flex;
|
|
163
|
+
}
|
|
164
|
+
.#{bem(split-trigger-con)} {
|
|
165
|
+
display: block;
|
|
166
|
+
}
|
|
167
|
+
.#{bem(split-pane--right)} {
|
|
168
|
+
display: block;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
@include when(readonly) {
|
|
173
|
+
border: none;
|
|
174
|
+
@include e('toolbar') {
|
|
175
|
+
display: none;
|
|
176
|
+
border: none;
|
|
177
|
+
}
|
|
178
|
+
@include e('content') {
|
|
179
|
+
height: auto;
|
|
180
|
+
max-height: getCssVar('html-preview', 'height');
|
|
181
|
+
}
|
|
182
|
+
@include e('editor') {
|
|
183
|
+
pointer-events: none;
|
|
184
|
+
}
|
|
185
|
+
@include e('copy') {
|
|
186
|
+
display: none;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
}
|