@ebscn/ui 1.0.0 → 1.0.1-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -28
- package/assets/images/delete.png +0 -0
- package/assets/images/hand.png +0 -0
- package/assets/images/loading.webp +0 -0
- package/assets/images/pull_loading_grey.png +0 -0
- package/assets/images/pull_loading_refreshing_grey.gif +0 -0
- package/assets/images/pull_loading_refreshing_white.gif +0 -0
- package/assets/images/pull_loading_white.png +0 -0
- package/cjs/assets/images/delete.png +0 -0
- package/cjs/assets/images/hand.png +0 -0
- package/cjs/assets/images/loading.webp +0 -0
- package/cjs/assets/images/pull_loading_grey.png +0 -0
- package/cjs/assets/images/pull_loading_refreshing_grey.gif +0 -0
- package/cjs/assets/images/pull_loading_refreshing_white.gif +0 -0
- package/cjs/assets/images/pull_loading_white.png +0 -0
- package/cjs/components/alphabet-keyboard/alphabet-keyboard.css +1 -1
- package/cjs/components/alphabet-keyboard/alphabet-keyboard.d.ts +1 -1
- package/cjs/components/alphabet-keyboard/alphabet-keyboard.js +1 -1
- package/cjs/components/auto-center/auto-center.css +7 -0
- package/cjs/components/auto-center/auto-center.d.ts +6 -0
- package/cjs/components/auto-center/auto-center.js +18 -0
- package/cjs/components/auto-center/index.d.ts +4 -0
- package/cjs/components/auto-center/index.js +9 -0
- package/cjs/components/button/button.d.ts +2 -2
- package/cjs/components/button/button.js +2 -2
- package/cjs/components/button/index.d.ts +3 -1
- package/cjs/components/button/index.js +13 -2
- package/cjs/components/button/selectorButton.css +15 -0
- package/cjs/components/button/selectorButton.d.ts +11 -0
- package/cjs/components/button/selectorButton.js +157 -0
- package/cjs/components/card/card.css +2 -2
- package/cjs/components/card/card.d.ts +1 -1
- package/cjs/components/checkbox/checkbox.css +1 -0
- package/cjs/components/checkbox/checkbox.js +3 -3
- package/cjs/components/date-picker/date-picker-date-utils.d.ts +7 -0
- package/cjs/components/date-picker/date-picker-date-utils.js +178 -0
- package/cjs/components/date-picker/date-picker-utils.d.ts +10 -0
- package/cjs/components/date-picker/date-picker-utils.js +51 -0
- package/cjs/components/date-picker/date-picker-week-utils.d.ts +7 -0
- package/cjs/components/date-picker/date-picker-week-utils.js +115 -0
- package/cjs/components/date-picker/date-picker.css +0 -0
- package/cjs/components/date-picker/date-picker.d.ts +40 -0
- package/cjs/components/date-picker/date-picker.js +92 -0
- package/cjs/components/date-picker/index.d.ts +28 -0
- package/cjs/components/date-picker/index.js +15 -0
- package/cjs/components/date-picker/prompt.d.ts +3 -0
- package/cjs/components/date-picker/prompt.js +53 -0
- package/cjs/components/date-picker/util.d.ts +4 -0
- package/cjs/components/date-picker/util.js +7 -0
- package/cjs/components/date-picker-view/date-picker-view.d.ts +18 -0
- package/cjs/components/date-picker-view/date-picker-view.js +60 -0
- package/cjs/components/date-picker-view/index.d.ts +4 -0
- package/cjs/components/date-picker-view/index.js +8 -0
- package/cjs/components/date-picker-view/useRenderLabel.d.ts +2 -0
- package/cjs/components/date-picker-view/useRenderLabel.js +25 -0
- package/cjs/components/date-range-picker/date-range-picker.css +94 -0
- package/cjs/components/date-range-picker/date-range-picker.d.ts +78 -0
- package/cjs/components/date-range-picker/date-range-picker.js +339 -0
- package/cjs/components/date-range-picker/index.d.ts +79 -0
- package/cjs/components/date-range-picker/index.js +13 -0
- package/cjs/components/divider/divider.css +39 -0
- package/cjs/components/divider/divider.d.ts +9 -0
- package/cjs/components/divider/divider.js +36 -0
- package/cjs/components/divider/index.d.ts +4 -0
- package/cjs/components/divider/index.js +9 -0
- package/cjs/components/grid/grid.css +2 -2
- package/cjs/components/grid/grid.js +1 -1
- package/cjs/components/handRead/handRead.css +54 -0
- package/cjs/components/handRead/handRead.d.ts +6 -0
- package/cjs/components/handRead/handRead.js +242 -0
- package/cjs/components/handRead/index.d.ts +25 -0
- package/cjs/components/handRead/index.js +9 -0
- package/cjs/components/header/header.css +62 -0
- package/cjs/components/header/header.d.ts +14 -0
- package/cjs/components/header/header.js +39 -0
- package/cjs/components/header/index.d.ts +4 -0
- package/cjs/components/header/index.js +10 -0
- package/cjs/components/icons/back-icon.d.ts +4 -0
- package/cjs/components/icons/back-icon.js +38 -0
- package/cjs/components/icons/check-icon.js +2 -1
- package/cjs/components/icons/check-only-icon.js +2 -1
- package/cjs/components/icons/clear-icon.js +1 -1
- package/cjs/components/icons/close-icon.d.ts +4 -0
- package/cjs/components/icons/close-icon.js +36 -0
- package/cjs/components/icons/gdlogo-icon.d.ts +4 -0
- package/cjs/components/icons/gdlogo-icon.js +41 -0
- package/cjs/components/icons/indeterminate-icon.js +2 -1
- package/cjs/components/icons/index.d.ts +7 -0
- package/cjs/components/icons/index.js +49 -0
- package/cjs/components/icons/loading-icon.js +2 -1
- package/cjs/components/icons/notice-icon.d.ts +4 -0
- package/cjs/components/icons/notice-icon.js +24 -0
- package/cjs/components/icons/right-icon.d.ts +4 -0
- package/cjs/components/icons/right-icon.js +24 -0
- package/cjs/components/icons/search-icon.js +1 -1
- package/cjs/components/icons/selector-icon.d.ts +4 -0
- package/cjs/components/icons/selector-icon.js +33 -0
- package/cjs/components/icons/spin-icon.js +2 -1
- package/cjs/components/icons/uncheck-icon.js +2 -1
- package/cjs/components/icons/warning-icon.d.ts +4 -0
- package/cjs/components/icons/warning-icon.js +34 -0
- package/cjs/components/mask/index.d.ts +4 -0
- package/cjs/components/mask/index.js +9 -0
- package/cjs/components/mask/mask.css +22 -0
- package/cjs/components/mask/mask.d.ts +20 -0
- package/cjs/components/mask/mask.js +113 -0
- package/cjs/components/mask/mask.patch.css +3 -0
- package/cjs/components/notice-bar/index.d.ts +10 -0
- package/cjs/components/notice-bar/index.js +20 -0
- package/cjs/components/notice-bar/notice-bar-graph-item.d.ts +10 -0
- package/cjs/components/notice-bar/notice-bar-graph-item.js +16 -0
- package/cjs/components/notice-bar/notice-bar-graph.d.ts +19 -0
- package/cjs/components/notice-bar/notice-bar-graph.js +237 -0
- package/cjs/components/notice-bar/notice-bar.css +109 -0
- package/cjs/components/notice-bar/notice-bar.d.ts +19 -0
- package/cjs/components/notice-bar/notice-bar.js +132 -0
- package/cjs/components/number-keyboard/number-keyboard.css +2 -2
- package/cjs/components/number-keyboard/number-keyboard.d.ts +2 -1
- package/cjs/components/number-keyboard/number-keyboard.js +2 -2
- package/cjs/components/page-indicator/index.d.ts +4 -0
- package/cjs/components/page-indicator/index.js +9 -0
- package/cjs/components/page-indicator/page-indicator.css +47 -0
- package/cjs/components/page-indicator/page-indicator.d.ts +9 -0
- package/cjs/components/page-indicator/page-indicator.js +32 -0
- package/cjs/components/pdfLink/pdfLink.js +3 -4
- package/cjs/components/picker/index.d.ts +59 -0
- package/cjs/components/picker/index.js +13 -0
- package/cjs/components/picker/picker-utils.d.ts +3 -0
- package/cjs/components/picker/picker-utils.js +10 -0
- package/cjs/components/picker/picker.css +55 -0
- package/cjs/components/picker/picker.d.ts +57 -0
- package/cjs/components/picker/picker.js +160 -0
- package/cjs/components/picker/prompt.d.ts +2 -0
- package/cjs/components/picker/prompt.js +53 -0
- package/cjs/components/picker-view/columns-extend.d.ts +3 -0
- package/cjs/components/picker-view/columns-extend.js +46 -0
- package/cjs/components/picker-view/index.d.ts +4 -0
- package/cjs/components/picker-view/index.js +9 -0
- package/cjs/components/picker-view/picker-view.css +129 -0
- package/cjs/components/picker-view/picker-view.d.ts +25 -0
- package/cjs/components/picker-view/picker-view.js +94 -0
- package/cjs/components/picker-view/wheel.d.ts +13 -0
- package/cjs/components/picker-view/wheel.js +252 -0
- package/cjs/components/popup/index.d.ts +4 -0
- package/cjs/components/popup/index.js +9 -0
- package/cjs/components/popup/popup-base-props.d.ts +51 -0
- package/cjs/components/popup/popup-base-props.js +19 -0
- package/cjs/components/popup/popup.css +57 -0
- package/cjs/components/popup/popup.d.ts +8 -0
- package/cjs/components/popup/popup.js +145 -0
- package/cjs/components/pro-selector/index.d.ts +30 -0
- package/cjs/components/pro-selector/index.js +12 -0
- package/cjs/components/pro-selector/pro-selector.css +11 -0
- package/cjs/components/pro-selector/pro-selector.d.ts +60 -0
- package/cjs/components/pro-selector/pro-selector.js +310 -0
- package/cjs/components/protocol/protocol.js +4 -4
- package/cjs/components/pull-to-refresh/index.d.ts +4 -0
- package/cjs/components/pull-to-refresh/index.js +9 -0
- package/cjs/components/pull-to-refresh/pull-to-refresh.css +58 -0
- package/cjs/components/pull-to-refresh/pull-to-refresh.d.ts +26 -0
- package/cjs/components/pull-to-refresh/pull-to-refresh.js +345 -0
- package/cjs/components/radio/group.d.ts +1 -1
- package/cjs/components/radio/radio.css +1 -0
- package/cjs/components/radio/radio.js +3 -3
- package/cjs/components/safe-area/index.d.ts +4 -0
- package/cjs/components/safe-area/index.js +9 -0
- package/cjs/components/safe-area/safe-area.css +11 -0
- package/cjs/components/safe-area/safe-area.d.ts +6 -0
- package/cjs/components/safe-area/safe-area.js +17 -0
- package/cjs/components/search/search.js +3 -3
- package/cjs/components/selector/check-mark.d.ts +2 -0
- package/cjs/components/selector/check-mark.js +37 -0
- package/cjs/components/selector/index.d.ts +4 -0
- package/cjs/components/selector/index.js +9 -0
- package/cjs/components/selector/selector.css +71 -0
- package/cjs/components/selector/selector.d.ts +27 -0
- package/cjs/components/selector/selector.js +94 -0
- package/cjs/components/skeleton/index.d.ts +11 -0
- package/cjs/components/skeleton/index.js +16 -0
- package/cjs/components/skeleton/skeleton.css +65 -0
- package/cjs/components/skeleton/skeleton.d.ts +29 -0
- package/cjs/components/skeleton/skeleton.js +71 -0
- package/cjs/components/space/index.d.ts +4 -0
- package/cjs/components/space/index.js +9 -0
- package/cjs/components/space/space.css +70 -0
- package/cjs/components/space/space.d.ts +13 -0
- package/cjs/components/space/space.js +30 -0
- package/cjs/components/squared-grid/index.d.ts +7 -0
- package/cjs/components/squared-grid/index.js +12 -0
- package/cjs/components/squared-grid/squared-grid.css +30 -0
- package/cjs/components/squared-grid/squared-grid.d.ts +17 -0
- package/cjs/components/squared-grid/squared-grid.js +91 -0
- package/cjs/components/stock-count-keyboard/stock-count-keyboard.css +2 -2
- package/cjs/components/stock-keyboard/stock-keyboard.css +2 -2
- package/cjs/components/swiper/index.d.ts +35 -0
- package/cjs/components/swiper/index.js +13 -0
- package/cjs/components/swiper/swiper-item.d.ts +9 -0
- package/cjs/components/swiper/swiper-item.js +16 -0
- package/cjs/components/swiper/swiper.css +80 -0
- package/cjs/components/swiper/swiper.d.ts +68 -0
- package/cjs/components/swiper/swiper.js +378 -0
- package/cjs/components/switch/switch.js +2 -2
- package/cjs/components/tabs/index.d.ts +7 -0
- package/cjs/components/tabs/index.js +12 -0
- package/cjs/components/tabs/tabs.css +76 -0
- package/cjs/components/tabs/tabs.d.ts +27 -0
- package/cjs/components/tabs/tabs.js +294 -0
- package/cjs/components/tabs/tabs.patch.css +23 -0
- package/cjs/components/tip/index.d.ts +4 -0
- package/cjs/components/tip/index.js +9 -0
- package/cjs/components/tip/tip.css +22 -0
- package/cjs/components/tip/tip.d.ts +7 -0
- package/cjs/components/tip/tip.js +31 -0
- package/cjs/components/toastLoading/toastLoading.css +0 -1
- package/cjs/components/toastLoading/toastLoading.js +9 -3
- package/cjs/global/global.css +4 -1
- package/cjs/global/theme-default.css +1 -1
- package/cjs/hooks/index.d.ts +5 -0
- package/cjs/hooks/index.js +12 -0
- package/cjs/hooks/useFieldNames.d.ts +7 -0
- package/cjs/hooks/useFieldNames.js +25 -0
- package/cjs/index.d.ts +33 -12
- package/cjs/index.js +206 -24
- package/cjs/utils/convert-px.js +2 -2
- package/cjs/utils/use-lock-scroll.js +1 -1
- package/es/assets/images/delete.png +0 -0
- package/es/assets/images/hand.png +0 -0
- package/es/assets/images/loading.webp +0 -0
- package/es/assets/images/pull_loading_grey.png +0 -0
- package/es/assets/images/pull_loading_refreshing_grey.gif +0 -0
- package/es/assets/images/pull_loading_refreshing_white.gif +0 -0
- package/es/assets/images/pull_loading_white.png +0 -0
- package/es/components/alphabet-keyboard/alphabet-keyboard.css +1 -1
- package/es/components/alphabet-keyboard/alphabet-keyboard.d.ts +1 -1
- package/es/components/alphabet-keyboard/alphabet-keyboard.js +1 -1
- package/es/components/auto-center/auto-center.css +7 -0
- package/es/components/auto-center/auto-center.d.ts +6 -0
- package/es/components/auto-center/auto-center.js +10 -0
- package/es/components/auto-center/index.d.ts +4 -0
- package/es/components/auto-center/index.js +3 -0
- package/es/components/button/button.d.ts +2 -2
- package/es/components/button/button.js +1 -1
- package/es/components/button/index.d.ts +3 -1
- package/es/components/button/index.js +2 -1
- package/es/components/button/selectorButton.css +15 -0
- package/es/components/button/selectorButton.d.ts +11 -0
- package/es/components/button/selectorButton.js +149 -0
- package/es/components/card/card.css +2 -2
- package/es/components/card/card.d.ts +1 -1
- package/es/components/checkbox/checkbox.css +1 -0
- package/es/components/checkbox/checkbox.js +1 -1
- package/es/components/date-picker/date-picker-date-utils.d.ts +7 -0
- package/es/components/date-picker/date-picker-date-utils.js +169 -0
- package/es/components/date-picker/date-picker-utils.d.ts +10 -0
- package/es/components/date-picker/date-picker-utils.js +40 -0
- package/es/components/date-picker/date-picker-week-utils.d.ts +7 -0
- package/es/components/date-picker/date-picker-week-utils.js +106 -0
- package/es/components/date-picker/date-picker.css +0 -0
- package/es/components/date-picker/date-picker.d.ts +40 -0
- package/es/components/date-picker/date-picker.js +83 -0
- package/es/components/date-picker/index.d.ts +28 -0
- package/es/components/date-picker/index.js +9 -0
- package/es/components/date-picker/prompt.d.ts +3 -0
- package/es/components/date-picker/prompt.js +45 -0
- package/es/components/date-picker/util.d.ts +4 -0
- package/es/components/date-picker/util.js +1 -0
- package/es/components/date-picker-view/date-picker-view.d.ts +18 -0
- package/es/components/date-picker-view/date-picker-view.js +50 -0
- package/es/components/date-picker-view/index.d.ts +4 -0
- package/es/components/date-picker-view/index.js +2 -0
- package/es/components/date-picker-view/useRenderLabel.d.ts +2 -0
- package/es/components/date-picker-view/useRenderLabel.js +19 -0
- package/es/components/date-range-picker/date-range-picker.css +94 -0
- package/es/components/date-range-picker/date-range-picker.d.ts +78 -0
- package/es/components/date-range-picker/date-range-picker.js +330 -0
- package/es/components/date-range-picker/index.d.ts +79 -0
- package/es/components/date-range-picker/index.js +7 -0
- package/es/components/divider/divider.css +39 -0
- package/es/components/divider/divider.d.ts +9 -0
- package/es/components/divider/divider.js +28 -0
- package/es/components/divider/index.d.ts +4 -0
- package/es/components/divider/index.js +3 -0
- package/es/components/grid/grid.css +2 -2
- package/es/components/grid/grid.js +1 -1
- package/es/components/handRead/handRead.css +54 -0
- package/es/components/handRead/handRead.d.ts +6 -0
- package/es/components/handRead/handRead.js +233 -0
- package/es/components/handRead/index.d.ts +25 -0
- package/es/components/handRead/index.js +2 -0
- package/es/components/header/header.css +62 -0
- package/es/components/header/header.d.ts +14 -0
- package/es/components/header/header.js +32 -0
- package/es/components/header/index.d.ts +4 -0
- package/es/components/header/index.js +3 -0
- package/es/components/icons/back-icon.d.ts +4 -0
- package/es/components/icons/back-icon.js +30 -0
- package/es/components/icons/check-icon.js +2 -1
- package/es/components/icons/check-only-icon.js +2 -1
- package/es/components/icons/clear-icon.js +1 -1
- package/es/components/icons/close-icon.d.ts +4 -0
- package/es/components/icons/close-icon.js +28 -0
- package/es/components/icons/gdlogo-icon.d.ts +4 -0
- package/es/components/icons/gdlogo-icon.js +33 -0
- package/es/components/icons/indeterminate-icon.js +2 -1
- package/es/components/icons/index.d.ts +7 -0
- package/es/components/icons/index.js +8 -1
- package/es/components/icons/loading-icon.js +2 -1
- package/es/components/icons/notice-icon.d.ts +4 -0
- package/es/components/icons/notice-icon.js +16 -0
- package/es/components/icons/right-icon.d.ts +4 -0
- package/es/components/icons/right-icon.js +16 -0
- package/es/components/icons/search-icon.js +1 -1
- package/es/components/icons/selector-icon.d.ts +4 -0
- package/es/components/icons/selector-icon.js +25 -0
- package/es/components/icons/spin-icon.js +2 -1
- package/es/components/icons/uncheck-icon.js +2 -1
- package/es/components/icons/warning-icon.d.ts +4 -0
- package/es/components/icons/warning-icon.js +26 -0
- package/es/components/mask/index.d.ts +4 -0
- package/es/components/mask/index.js +3 -0
- package/es/components/mask/mask.css +22 -0
- package/es/components/mask/mask.d.ts +20 -0
- package/es/components/mask/mask.js +104 -0
- package/es/components/mask/mask.patch.css +3 -0
- package/es/components/notice-bar/index.d.ts +10 -0
- package/es/components/notice-bar/index.js +9 -0
- package/es/components/notice-bar/notice-bar-graph-item.d.ts +10 -0
- package/es/components/notice-bar/notice-bar-graph-item.js +8 -0
- package/es/components/notice-bar/notice-bar-graph.d.ts +19 -0
- package/es/components/notice-bar/notice-bar-graph.js +228 -0
- package/es/components/notice-bar/notice-bar.css +109 -0
- package/es/components/notice-bar/notice-bar.d.ts +19 -0
- package/es/components/notice-bar/notice-bar.js +123 -0
- package/es/components/number-keyboard/number-keyboard.css +2 -2
- package/es/components/number-keyboard/number-keyboard.d.ts +2 -1
- package/es/components/number-keyboard/number-keyboard.js +2 -2
- package/es/components/page-indicator/index.d.ts +4 -0
- package/es/components/page-indicator/index.js +3 -0
- package/es/components/page-indicator/page-indicator.css +47 -0
- package/es/components/page-indicator/page-indicator.d.ts +9 -0
- package/es/components/page-indicator/page-indicator.js +23 -0
- package/es/components/pdfLink/pdfLink.js +1 -2
- package/es/components/picker/index.d.ts +59 -0
- package/es/components/picker/index.js +7 -0
- package/es/components/picker/picker-utils.d.ts +3 -0
- package/es/components/picker/picker-utils.js +3 -0
- package/es/components/picker/picker.css +55 -0
- package/es/components/picker/picker.d.ts +57 -0
- package/es/components/picker/picker.js +151 -0
- package/es/components/picker/prompt.d.ts +2 -0
- package/es/components/picker/prompt.js +45 -0
- package/es/components/picker-view/columns-extend.d.ts +3 -0
- package/es/components/picker-view/columns-extend.js +39 -0
- package/es/components/picker-view/index.d.ts +4 -0
- package/es/components/picker-view/index.js +3 -0
- package/es/components/picker-view/picker-view.css +129 -0
- package/es/components/picker-view/picker-view.d.ts +25 -0
- package/es/components/picker-view/picker-view.js +86 -0
- package/es/components/picker-view/wheel.d.ts +13 -0
- package/es/components/picker-view/wheel.js +243 -0
- package/es/components/popup/index.d.ts +4 -0
- package/es/components/popup/index.js +3 -0
- package/es/components/popup/popup-base-props.d.ts +51 -0
- package/es/components/popup/popup-base-props.js +13 -0
- package/es/components/popup/popup.css +57 -0
- package/es/components/popup/popup.d.ts +8 -0
- package/es/components/popup/popup.js +135 -0
- package/es/components/pro-selector/index.d.ts +30 -0
- package/es/components/pro-selector/index.js +6 -0
- package/es/components/pro-selector/pro-selector.css +11 -0
- package/es/components/pro-selector/pro-selector.d.ts +60 -0
- package/es/components/pro-selector/pro-selector.js +299 -0
- package/es/components/protocol/protocol.js +1 -1
- package/es/components/pull-to-refresh/index.d.ts +4 -0
- package/es/components/pull-to-refresh/index.js +3 -0
- package/es/components/pull-to-refresh/pull-to-refresh.css +58 -0
- package/es/components/pull-to-refresh/pull-to-refresh.d.ts +26 -0
- package/es/components/pull-to-refresh/pull-to-refresh.js +335 -0
- package/es/components/radio/group.d.ts +1 -1
- package/es/components/radio/radio.css +1 -0
- package/es/components/radio/radio.js +1 -1
- package/es/components/safe-area/index.d.ts +4 -0
- package/es/components/safe-area/index.js +3 -0
- package/es/components/safe-area/safe-area.css +11 -0
- package/es/components/safe-area/safe-area.d.ts +6 -0
- package/es/components/safe-area/safe-area.js +9 -0
- package/es/components/search/search.js +1 -1
- package/es/components/selector/check-mark.d.ts +2 -0
- package/es/components/selector/check-mark.js +29 -0
- package/es/components/selector/index.d.ts +4 -0
- package/es/components/selector/index.js +3 -0
- package/es/components/selector/selector.css +71 -0
- package/es/components/selector/selector.d.ts +27 -0
- package/es/components/selector/selector.js +86 -0
- package/es/components/skeleton/index.d.ts +11 -0
- package/es/components/skeleton/index.js +10 -0
- package/es/components/skeleton/skeleton.css +65 -0
- package/es/components/skeleton/skeleton.d.ts +29 -0
- package/es/components/skeleton/skeleton.js +58 -0
- package/es/components/space/index.d.ts +4 -0
- package/es/components/space/index.js +3 -0
- package/es/components/space/space.css +70 -0
- package/es/components/space/space.d.ts +13 -0
- package/es/components/space/space.js +22 -0
- package/es/components/squared-grid/index.d.ts +7 -0
- package/es/components/squared-grid/index.js +6 -0
- package/es/components/squared-grid/squared-grid.css +30 -0
- package/es/components/squared-grid/squared-grid.d.ts +17 -0
- package/es/components/squared-grid/squared-grid.js +82 -0
- package/es/components/stock-count-keyboard/stock-count-keyboard.css +2 -2
- package/es/components/stock-keyboard/stock-keyboard.css +2 -2
- package/es/components/swiper/index.d.ts +35 -0
- package/es/components/swiper/index.js +7 -0
- package/es/components/swiper/swiper-item.d.ts +9 -0
- package/es/components/swiper/swiper-item.js +8 -0
- package/es/components/swiper/swiper.css +80 -0
- package/es/components/swiper/swiper.d.ts +68 -0
- package/es/components/swiper/swiper.js +369 -0
- package/es/components/switch/switch.js +1 -1
- package/es/components/tabs/index.d.ts +7 -0
- package/es/components/tabs/index.js +6 -0
- package/es/components/tabs/tabs.css +76 -0
- package/es/components/tabs/tabs.d.ts +27 -0
- package/es/components/tabs/tabs.js +283 -0
- package/es/components/tabs/tabs.patch.css +23 -0
- package/es/components/tip/index.d.ts +4 -0
- package/es/components/tip/index.js +3 -0
- package/es/components/tip/tip.css +22 -0
- package/es/components/tip/tip.d.ts +7 -0
- package/es/components/tip/tip.js +23 -0
- package/es/components/toastLoading/toastLoading.css +0 -1
- package/es/components/toastLoading/toastLoading.js +8 -3
- package/es/global/global.css +4 -1
- package/es/global/theme-default.css +1 -1
- package/es/hooks/index.d.ts +5 -0
- package/es/hooks/index.js +1 -0
- package/es/hooks/useFieldNames.d.ts +7 -0
- package/es/hooks/useFieldNames.js +18 -0
- package/es/index.d.ts +33 -12
- package/es/index.js +33 -12
- package/es/utils/convert-px.js +2 -2
- package/es/utils/use-lock-scroll.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.Divider = void 0;
|
|
7
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _nativeProps = require("../../utils/native-props");
|
|
10
|
+
var _withDefaultProps = require("../../utils/with-default-props");
|
|
11
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
|
+
var classPrefix = "ebscn-divider";
|
|
13
|
+
var defaultProps = {
|
|
14
|
+
color: 'default',
|
|
15
|
+
contentPosition: 'center',
|
|
16
|
+
direction: 'horizontal'
|
|
17
|
+
};
|
|
18
|
+
var Divider = function (p) {
|
|
19
|
+
var _a;
|
|
20
|
+
var props = (0, _withDefaultProps.mergeProps)(defaultProps, p);
|
|
21
|
+
var colorRecord = {
|
|
22
|
+
primary: 'var(--ebscn-color-primary,#e84225)',
|
|
23
|
+
typing: 'var(--ebscn-color-blue, #4c7cf1)',
|
|
24
|
+
default: 'var(--ebscn-color-split-line #ebebeb)'
|
|
25
|
+
};
|
|
26
|
+
var style = {
|
|
27
|
+
'--color': (_a = colorRecord[props.color || 'default']) !== null && _a !== void 0 ? _a : props.color
|
|
28
|
+
};
|
|
29
|
+
return (0, _nativeProps.withNativeProps)(props, _react.default.createElement("div", {
|
|
30
|
+
style: style,
|
|
31
|
+
className: (0, _classnames.default)(classPrefix, "".concat(classPrefix, "-").concat(props.direction), "".concat(classPrefix, "-").concat(props.contentPosition))
|
|
32
|
+
}, props.children && _react.default.createElement("div", {
|
|
33
|
+
className: "".concat(classPrefix, "-content")
|
|
34
|
+
}, props.children)));
|
|
35
|
+
};
|
|
36
|
+
exports.Divider = Divider;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.
|
|
1
|
+
.ebscn-grid {
|
|
2
2
|
--gap: 0;
|
|
3
3
|
--gap-horizontal: var(--gap);
|
|
4
4
|
--gap-vertical: var(--gap);
|
|
@@ -10,6 +10,6 @@
|
|
|
10
10
|
grid-template-columns: repeat(var(--columns), minmax(0, 1fr));
|
|
11
11
|
align-items: stretch;
|
|
12
12
|
}
|
|
13
|
-
.
|
|
13
|
+
.ebscn-grid-item {
|
|
14
14
|
grid-column-end: span var(--item-span);
|
|
15
15
|
}
|
|
@@ -9,7 +9,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
var _nativeProps = require("../../utils/native-props");
|
|
10
10
|
var _toCssLength = require("../../utils/to-css-length");
|
|
11
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
|
-
var classPrefix = "
|
|
12
|
+
var classPrefix = "ebscn-grid";
|
|
13
13
|
var Grid = function (props) {
|
|
14
14
|
var style = {
|
|
15
15
|
'--columns': props.columns.toString()
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
@keyframes actionTip {
|
|
2
|
+
from {
|
|
3
|
+
transform: translateX(0%);
|
|
4
|
+
}
|
|
5
|
+
to {
|
|
6
|
+
transform: translateX(880%);
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
.ebscn-handread-pdfBox {
|
|
10
|
+
display: flex;
|
|
11
|
+
padding: 10px;
|
|
12
|
+
position: relative;
|
|
13
|
+
}
|
|
14
|
+
.ebscn-handread-pdfWarp {
|
|
15
|
+
position: relative;
|
|
16
|
+
width: 90%;
|
|
17
|
+
min-height: 300px;
|
|
18
|
+
}
|
|
19
|
+
.ebscn-handread-pdfImg {
|
|
20
|
+
width: 100%;
|
|
21
|
+
}
|
|
22
|
+
.ebscn-handread-pdfView {
|
|
23
|
+
position: absolute;
|
|
24
|
+
left: 0px;
|
|
25
|
+
top: 0px;
|
|
26
|
+
width: 100%;
|
|
27
|
+
height: 450px;
|
|
28
|
+
}
|
|
29
|
+
.ebscn-handread-pdfView .defaultSeal {
|
|
30
|
+
position: absolute;
|
|
31
|
+
color: white;
|
|
32
|
+
padding: 0px 2px;
|
|
33
|
+
font-size: 12px;
|
|
34
|
+
}
|
|
35
|
+
.ebscn-handread-pagination {
|
|
36
|
+
width: 10%;
|
|
37
|
+
display: flex;
|
|
38
|
+
flex-direction: column;
|
|
39
|
+
align-items: flex-end;
|
|
40
|
+
position: absolute;
|
|
41
|
+
right: 0px;
|
|
42
|
+
}
|
|
43
|
+
.ebscn-handread-pagination-vertivalBtn {
|
|
44
|
+
margin-bottom: 5px;
|
|
45
|
+
}
|
|
46
|
+
.ebscn-handread-pagination-vertivalBtn div {
|
|
47
|
+
-webkit-writing-mode: vertical-lr;
|
|
48
|
+
writing-mode: vertical-lr;
|
|
49
|
+
padding: 10px 0px;
|
|
50
|
+
height: auto;
|
|
51
|
+
white-space: nowrap;
|
|
52
|
+
color: white;
|
|
53
|
+
letter-spacing: 1px;
|
|
54
|
+
}
|
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _reactDraggable = _interopRequireDefault(require("react-draggable"));
|
|
8
|
+
require("./handRead.css");
|
|
9
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
10
|
+
var _antdMobile = require("antd-mobile");
|
|
11
|
+
var _dayjs = _interopRequireDefault(require("dayjs"));
|
|
12
|
+
var _hand = _interopRequireDefault(require("../../assets/images/hand.png"));
|
|
13
|
+
var _imageViewer = _interopRequireDefault(require("../imageViewer"));
|
|
14
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
15
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
16
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
|
+
var classPrefix = "ebscn-handread";
|
|
18
|
+
function HandRead(props) {
|
|
19
|
+
var documentJson = props.documentJson,
|
|
20
|
+
mandatoryReading = props.mandatoryReading,
|
|
21
|
+
done = props.done;
|
|
22
|
+
if (!documentJson || !mandatoryReading) {
|
|
23
|
+
return _react.default.createElement("div", null, "\u534F\u8BAE\u5185\u5BB9\u7F3A\u5931");
|
|
24
|
+
}
|
|
25
|
+
var container = (0, _react.useRef)(null);
|
|
26
|
+
var PDF_WIDTH = props.pdfWidth || 600;
|
|
27
|
+
var PDF_HEIGHT = props.pdfHeight || 840;
|
|
28
|
+
var PDF_SCALE = (0, _react.useRef)(0);
|
|
29
|
+
var documentImgUrl = documentJson.documentImgUrl,
|
|
30
|
+
documentPages = documentJson.documentPages;
|
|
31
|
+
var _a = (0, _react.useState)(false),
|
|
32
|
+
imgFlag = _a[0],
|
|
33
|
+
setImgFlag = _a[1];
|
|
34
|
+
var _b = (0, _react.useState)(1),
|
|
35
|
+
currentPageNum = _b[0],
|
|
36
|
+
setCurrentPageNum = _b[1];
|
|
37
|
+
var _c = (0, _react.useState)(0),
|
|
38
|
+
currentSign = _c[0],
|
|
39
|
+
setCurrentSign = _c[1];
|
|
40
|
+
var _d = (0, _react.useState)({}),
|
|
41
|
+
_ = _d[0],
|
|
42
|
+
setForceUpdate = _d[1];
|
|
43
|
+
var handleInfo = (0, _react.useRef)({
|
|
44
|
+
type: "",
|
|
45
|
+
touchStartTime: "",
|
|
46
|
+
touchEndTime: ""
|
|
47
|
+
});
|
|
48
|
+
(0, _react.useLayoutEffect)(function () {
|
|
49
|
+
if (container.current && !PDF_SCALE.current) {
|
|
50
|
+
PDF_SCALE.current = container.current.clientWidth / PDF_WIDTH;
|
|
51
|
+
forceUpdate();
|
|
52
|
+
}
|
|
53
|
+
}, [container.current]);
|
|
54
|
+
function forceUpdate() {
|
|
55
|
+
setForceUpdate({});
|
|
56
|
+
}
|
|
57
|
+
function handleOnMouseDown() {}
|
|
58
|
+
function handleOnStop(item, e) {
|
|
59
|
+
var stopClientX = e.changedTouches[0].clientX;
|
|
60
|
+
// const { mandatoryReading } = this.props.data;
|
|
61
|
+
var dragDistance = stopClientX + 10; // 拖拽的距离
|
|
62
|
+
if (dragDistance >= (item.right - item.left) * PDF_SCALE.current) {
|
|
63
|
+
item.hasRead = true;
|
|
64
|
+
handleInfo.current.type = "滑动";
|
|
65
|
+
handleInfo.current.touchEndTime = (0, _dayjs.default)().format("YYYY-MM-DD HH:mm:ss");
|
|
66
|
+
nextConfim();
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
// 判断是否所有的确认确认项都已完成
|
|
70
|
+
function isAllSure() {
|
|
71
|
+
var isAll = false;
|
|
72
|
+
var reads = mandatoryReading.filter(function (item) {
|
|
73
|
+
return !item.hasRead;
|
|
74
|
+
});
|
|
75
|
+
if (reads.length === 0) {
|
|
76
|
+
isAll = true;
|
|
77
|
+
}
|
|
78
|
+
return isAll;
|
|
79
|
+
}
|
|
80
|
+
// 上一页
|
|
81
|
+
var onPrev = function () {
|
|
82
|
+
if (currentPageNum === 1) return;
|
|
83
|
+
setCurrentPageNum(function () {
|
|
84
|
+
return currentPageNum - 1;
|
|
85
|
+
});
|
|
86
|
+
};
|
|
87
|
+
// 下一页
|
|
88
|
+
var onNext = function () {
|
|
89
|
+
if (currentPageNum < documentPages) {
|
|
90
|
+
setCurrentPageNum(function () {
|
|
91
|
+
return currentPageNum + 1;
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
};
|
|
95
|
+
// 获取下一确认项的index
|
|
96
|
+
var nextConfim = function () {
|
|
97
|
+
var recordIndex = currentSign;
|
|
98
|
+
if (isAllSure()) {
|
|
99
|
+
forceUpdate();
|
|
100
|
+
done && done(documentJson.fileId);
|
|
101
|
+
return;
|
|
102
|
+
}
|
|
103
|
+
var nextRecordIndex = 0;
|
|
104
|
+
if (recordIndex < mandatoryReading.length - 1) {
|
|
105
|
+
for (var i = recordIndex + 1; i < mandatoryReading.length; i++) {
|
|
106
|
+
if (!mandatoryReading[i].hasRead) {
|
|
107
|
+
nextRecordIndex = i;
|
|
108
|
+
break;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
} else {
|
|
112
|
+
for (var i = 0; i < mandatoryReading.length; i++) {
|
|
113
|
+
if (!mandatoryReading[i].hasRead) {
|
|
114
|
+
nextRecordIndex = i;
|
|
115
|
+
break;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
var newPageNum = mandatoryReading[nextRecordIndex].pageNo * 1;
|
|
120
|
+
setCurrentSign(nextRecordIndex);
|
|
121
|
+
setCurrentPageNum(newPageNum);
|
|
122
|
+
};
|
|
123
|
+
function lastConfim() {
|
|
124
|
+
var index = currentSign;
|
|
125
|
+
while (true) {
|
|
126
|
+
if (--index < 0) {
|
|
127
|
+
break;
|
|
128
|
+
} else {
|
|
129
|
+
if (!mandatoryReading[index].hasRead) {
|
|
130
|
+
setCurrentSign(index);
|
|
131
|
+
setCurrentPageNum(mandatoryReading[index].pageNo);
|
|
132
|
+
break;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
// 获取图片地址
|
|
138
|
+
var getImageList = function (baseUrl, maxPages) {
|
|
139
|
+
var arr = [];
|
|
140
|
+
if (!baseUrl) return arr;
|
|
141
|
+
if (!maxPages) return arr;
|
|
142
|
+
for (var i = 1; i <= maxPages; i++) {
|
|
143
|
+
arr.push("".concat(baseUrl, "/").concat(i, ".jpg"));
|
|
144
|
+
}
|
|
145
|
+
return arr;
|
|
146
|
+
};
|
|
147
|
+
return _react.default.createElement("div", {
|
|
148
|
+
className: "".concat(classPrefix, "-pdfBox"),
|
|
149
|
+
style: {
|
|
150
|
+
height: PDF_HEIGHT * PDF_SCALE.current
|
|
151
|
+
}
|
|
152
|
+
}, documentImgUrl ? _react.default.createElement("div", {
|
|
153
|
+
className: "".concat(classPrefix, "-pdfWarp")
|
|
154
|
+
}, _react.default.createElement("img", {
|
|
155
|
+
onClick: function () {
|
|
156
|
+
return setImgFlag(true);
|
|
157
|
+
},
|
|
158
|
+
className: "".concat(classPrefix, "-pdfImg"),
|
|
159
|
+
src: "".concat(documentImgUrl + "/" + currentPageNum, ".jpg"),
|
|
160
|
+
alt: "\u52A0\u8F7D\u4E2D"
|
|
161
|
+
}), _react.default.createElement("div", {
|
|
162
|
+
className: "".concat(classPrefix, "-pdfView"),
|
|
163
|
+
ref: container
|
|
164
|
+
}, mandatoryReading.map(function (item, index) {
|
|
165
|
+
return item.pageNo * 1 === currentPageNum && _react.default.createElement("div", {
|
|
166
|
+
key: Math.random() + item.pageNo,
|
|
167
|
+
style: {
|
|
168
|
+
position: "absolute",
|
|
169
|
+
width: (item.right - item.left) * PDF_SCALE.current,
|
|
170
|
+
height: (item.top - item.bottom) * PDF_SCALE.current,
|
|
171
|
+
top: (PDF_HEIGHT - item.top) * PDF_SCALE.current,
|
|
172
|
+
left: item.left * PDF_SCALE.current,
|
|
173
|
+
border: "1px solid #ccc",
|
|
174
|
+
borderColor: item.hasRead ? "#93b4fb" : "#FF9933"
|
|
175
|
+
},
|
|
176
|
+
onClick: function () {
|
|
177
|
+
setCurrentSign(index);
|
|
178
|
+
}
|
|
179
|
+
}, _react.default.createElement(_reactDraggable.default, {
|
|
180
|
+
handle: ".handle",
|
|
181
|
+
axis: "x",
|
|
182
|
+
bounds: "parent",
|
|
183
|
+
onMouseDown: handleOnMouseDown,
|
|
184
|
+
onStop: function (e) {
|
|
185
|
+
return handleOnStop(item, e);
|
|
186
|
+
}
|
|
187
|
+
}, currentSign === index && !item.hasRead ? _react.default.createElement("div", {
|
|
188
|
+
className: "handle",
|
|
189
|
+
style: {
|
|
190
|
+
width: 30,
|
|
191
|
+
height: 30,
|
|
192
|
+
background: "url(".concat(_hand.default, ") 0 center/cover no-repeat")
|
|
193
|
+
}
|
|
194
|
+
}) : _react.default.createElement("div", null)
|
|
195
|
+
// <div className="handle" style={{ width: 40, height: 40, border: '1px solid #f00', background: `url(${require('../../../../../assets/logo.png')}) 0 center/cover no-repeat` }}></div> : <div className="handle"></div>
|
|
196
|
+
));
|
|
197
|
+
}))) : _react.default.createElement("div", null, "loading"), _react.default.createElement("div", {
|
|
198
|
+
className: "".concat(classPrefix, "-pagination")
|
|
199
|
+
}, _react.default.createElement(_antdMobile.Button, {
|
|
200
|
+
className: "".concat(classPrefix, "-pagination-vertivalBtn"),
|
|
201
|
+
color: "primary",
|
|
202
|
+
size: "small",
|
|
203
|
+
disabled: currentPageNum === 1,
|
|
204
|
+
onClick: onPrev
|
|
205
|
+
}, _react.default.createElement("div", null, "\u4E0A\u4E00\u9875")), _react.default.createElement(_antdMobile.Button, {
|
|
206
|
+
className: "".concat(classPrefix, "-pagination-vertivalBtn"),
|
|
207
|
+
color: "primary",
|
|
208
|
+
size: "small",
|
|
209
|
+
disabled: currentPageNum === documentPages,
|
|
210
|
+
onClick: onNext
|
|
211
|
+
}, _react.default.createElement("div", null, _react.default.createElement("span", null, "\u4E0B\u4E00\u9875"), _react.default.createElement("span", null, "".concat(currentPageNum, "/").concat(documentPages)))), _react.default.createElement(_antdMobile.Button, {
|
|
212
|
+
className: "".concat(classPrefix, "-pagination-vertivalBtn"),
|
|
213
|
+
color: "primary",
|
|
214
|
+
size: "small",
|
|
215
|
+
disabled: isAllSure() || currentSign == 0,
|
|
216
|
+
onClick: function () {
|
|
217
|
+
return lastConfim();
|
|
218
|
+
}
|
|
219
|
+
}, _react.default.createElement("div", null, "\u4E0A\u4E00\u786E\u8BA4\u9879")), _react.default.createElement(_antdMobile.Button, {
|
|
220
|
+
className: "".concat(classPrefix, "-pagination-vertivalBtn"),
|
|
221
|
+
color: "primary",
|
|
222
|
+
size: "small",
|
|
223
|
+
disabled: isAllSure() || currentSign == mandatoryReading.length - 1,
|
|
224
|
+
onClick: function () {
|
|
225
|
+
return nextConfim();
|
|
226
|
+
}
|
|
227
|
+
}, _react.default.createElement("div", null, "\u4E0B\u4E00\u786E\u8BA4\u9879")), _react.default.createElement(_antdMobile.Button, {
|
|
228
|
+
className: "".concat(classPrefix, "-pagination-vertivalBtn"),
|
|
229
|
+
color: "primary",
|
|
230
|
+
size: "small",
|
|
231
|
+
onClick: function () {
|
|
232
|
+
return setImgFlag(true);
|
|
233
|
+
}
|
|
234
|
+
}, _react.default.createElement("div", null, "\u9884 \u89C8"))), imgFlag && _react.default.createElement(_imageViewer.default, {
|
|
235
|
+
currentIndex: currentPageNum - 1,
|
|
236
|
+
onClose: function () {
|
|
237
|
+
return setImgFlag(false);
|
|
238
|
+
},
|
|
239
|
+
images: getImageList(documentImgUrl, documentPages)
|
|
240
|
+
}));
|
|
241
|
+
}
|
|
242
|
+
var _default = exports.default = _react.default.memo(HandRead);
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import HandRead from "./handRead";
|
|
2
|
+
export declare type DocumentJson = {
|
|
3
|
+
fileId?: number | string;
|
|
4
|
+
documentUrl: string;
|
|
5
|
+
documentImgUrl: string;
|
|
6
|
+
createDate: string;
|
|
7
|
+
documentPages: number;
|
|
8
|
+
preUrl: string;
|
|
9
|
+
};
|
|
10
|
+
export declare type MandatoryReading = {
|
|
11
|
+
pageNo: number;
|
|
12
|
+
top: number;
|
|
13
|
+
bottom: number;
|
|
14
|
+
left: number;
|
|
15
|
+
right: number;
|
|
16
|
+
hasRead?: boolean;
|
|
17
|
+
};
|
|
18
|
+
export declare type HandReadProps = {
|
|
19
|
+
documentJson: DocumentJson;
|
|
20
|
+
mandatoryReading: MandatoryReading[];
|
|
21
|
+
done?: Function;
|
|
22
|
+
pdfWidth?: number;
|
|
23
|
+
pdfHeight?: number;
|
|
24
|
+
};
|
|
25
|
+
export default HandRead;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _handRead = _interopRequireDefault(require("./handRead"));
|
|
8
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9
|
+
var _default = exports.default = _handRead.default;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
.ebscn-header {
|
|
2
|
+
--color: #333333;
|
|
3
|
+
--bgColor: #FFFFFF;
|
|
4
|
+
--subTitleColor: #666666;
|
|
5
|
+
--buttonColor: #666666;
|
|
6
|
+
display: flex;
|
|
7
|
+
align-items: center;
|
|
8
|
+
height: 44px;
|
|
9
|
+
border-bottom: none;
|
|
10
|
+
padding: 0 12px;
|
|
11
|
+
white-space: nowrap;
|
|
12
|
+
color: var(--color);
|
|
13
|
+
background-color: var(--bgColor);
|
|
14
|
+
}
|
|
15
|
+
.ebscn-header-left,
|
|
16
|
+
.ebscn-header-right {
|
|
17
|
+
flex: 1;
|
|
18
|
+
font-size: 28px;
|
|
19
|
+
}
|
|
20
|
+
.ebscn-header-title {
|
|
21
|
+
flex: auto;
|
|
22
|
+
text-align: center;
|
|
23
|
+
overflow: hidden;
|
|
24
|
+
text-overflow: ellipsis;
|
|
25
|
+
}
|
|
26
|
+
.ebscn-header-subtitle {
|
|
27
|
+
font-size: 12px;
|
|
28
|
+
line-height: 17px;
|
|
29
|
+
color: var(--subTitleColor);
|
|
30
|
+
}
|
|
31
|
+
.ebscn-header-back {
|
|
32
|
+
display: flex;
|
|
33
|
+
align-items: center;
|
|
34
|
+
margin-right: 16px;
|
|
35
|
+
padding: 6px 0;
|
|
36
|
+
cursor: pointer;
|
|
37
|
+
}
|
|
38
|
+
.ebscn-header-back-arrow {
|
|
39
|
+
font-size: 24px;
|
|
40
|
+
margin-right: 4px;
|
|
41
|
+
}
|
|
42
|
+
.ebscn-header-left {
|
|
43
|
+
display: flex;
|
|
44
|
+
justify-content: flex-start;
|
|
45
|
+
align-items: center;
|
|
46
|
+
}
|
|
47
|
+
.ebscn-header-title {
|
|
48
|
+
justify-content: center;
|
|
49
|
+
white-space: nowrap;
|
|
50
|
+
font-size: 18px;
|
|
51
|
+
line-height: 25px;
|
|
52
|
+
}
|
|
53
|
+
.ebscn-header-right {
|
|
54
|
+
display: flex;
|
|
55
|
+
justify-content: flex-end;
|
|
56
|
+
align-items: center;
|
|
57
|
+
}
|
|
58
|
+
.ebscn-header-text-button {
|
|
59
|
+
font-size: 15px;
|
|
60
|
+
line-height: 21px;
|
|
61
|
+
color: var(--buttonColor);
|
|
62
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { FC, ReactNode } from 'react';
|
|
2
|
+
import { NativeProps } from '../../utils/native-props';
|
|
3
|
+
export type HeaderProps = {
|
|
4
|
+
left?: ReactNode;
|
|
5
|
+
showLeftIcon?: boolean;
|
|
6
|
+
onLeftClick?: () => void;
|
|
7
|
+
title?: string;
|
|
8
|
+
subTitle?: string;
|
|
9
|
+
right?: ReactNode;
|
|
10
|
+
onRightClick?: () => void;
|
|
11
|
+
children?: ReactNode;
|
|
12
|
+
} & NativeProps<'--height' | '--border-bottom'>;
|
|
13
|
+
declare const Header: FC<HeaderProps>;
|
|
14
|
+
export default Header;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _nativeProps = require("../../utils/native-props");
|
|
10
|
+
var _withDefaultProps = require("../../utils/with-default-props");
|
|
11
|
+
var _backIcon = _interopRequireDefault(require("../icons/back-icon"));
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
+
var classPrefix = "ebscn-header";
|
|
14
|
+
var defaultProps = {
|
|
15
|
+
showLeftIcon: true,
|
|
16
|
+
onLeftClick: function () {},
|
|
17
|
+
onRightClick: function () {}
|
|
18
|
+
};
|
|
19
|
+
var Header = function (p) {
|
|
20
|
+
var props = (0, _withDefaultProps.mergeProps)(defaultProps, p);
|
|
21
|
+
return (0, _nativeProps.withNativeProps)(props, _react.default.createElement("div", {
|
|
22
|
+
className: (0, _classnames.default)(classPrefix)
|
|
23
|
+
}, _react.default.createElement("div", {
|
|
24
|
+
className: "".concat(classPrefix, "-left"),
|
|
25
|
+
onClick: function () {
|
|
26
|
+
return props.onLeftClick();
|
|
27
|
+
}
|
|
28
|
+
}, props.showLeftIcon && _react.default.createElement(_backIcon.default, null), props.left), _react.default.createElement("div", {
|
|
29
|
+
className: "".concat(classPrefix, "-title")
|
|
30
|
+
}, props.title && _react.default.createElement("div", null, props.title), props.subTitle && _react.default.createElement("div", {
|
|
31
|
+
className: "".concat(classPrefix, "-subtitle")
|
|
32
|
+
}, props.subTitle), props.children), _react.default.createElement("div", {
|
|
33
|
+
className: "".concat(classPrefix, "-right"),
|
|
34
|
+
onClick: function () {
|
|
35
|
+
return props.onRightClick();
|
|
36
|
+
}
|
|
37
|
+
}, props.right)));
|
|
38
|
+
};
|
|
39
|
+
var _default = exports.default = Header;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _header = _interopRequireDefault(require("./header"));
|
|
8
|
+
require("./header.css");
|
|
9
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
|
+
var _default = exports.default = _header.default;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _nativeProps = require("../../utils/native-props");
|
|
9
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
10
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
11
|
+
var BackIcon = (0, _react.memo)(function (props) {
|
|
12
|
+
return (0, _nativeProps.withNativeProps)(props, _react.default.createElement("svg", {
|
|
13
|
+
width: "1em",
|
|
14
|
+
height: "1em",
|
|
15
|
+
viewBox: "0 0 56 56",
|
|
16
|
+
version: "1.1",
|
|
17
|
+
className: "ebscn-ui-icon"
|
|
18
|
+
}, _react.default.createElement("g", {
|
|
19
|
+
stroke: "none",
|
|
20
|
+
strokeWidth: "1",
|
|
21
|
+
fill: "none",
|
|
22
|
+
fillRule: "evenodd"
|
|
23
|
+
}, _react.default.createElement("rect", {
|
|
24
|
+
fill: "none",
|
|
25
|
+
opacity: "0",
|
|
26
|
+
x: "8",
|
|
27
|
+
y: "8",
|
|
28
|
+
width: "40",
|
|
29
|
+
height: "40",
|
|
30
|
+
rx: "8"
|
|
31
|
+
}), _react.default.createElement("path", {
|
|
32
|
+
d: "M24.2637318,14 L10.6051328,26.5589714 C9.79204002,27.3066037 9.73897377,28.5718213 10.486606,29.384914 C10.5255617,29.4272805 10.566328,29.4679458 10.6087911,29.5067962 L24.2637318,42 L24.2637318,42",
|
|
33
|
+
stroke: "currentColor",
|
|
34
|
+
strokeWidth: "3",
|
|
35
|
+
strokeLinecap: "round"
|
|
36
|
+
}))));
|
|
37
|
+
});
|
|
38
|
+
var _default = exports.default = BackIcon;
|
|
@@ -12,7 +12,8 @@ var CheckIcon = (0, _react.memo)(function (props) {
|
|
|
12
12
|
return (0, _nativeProps.withNativeProps)(props, _react.default.createElement("svg", {
|
|
13
13
|
width: "1em",
|
|
14
14
|
height: "1em",
|
|
15
|
-
viewBox: "0 0 48 48"
|
|
15
|
+
viewBox: "0 0 48 48",
|
|
16
|
+
className: "ebscn-ui-icon"
|
|
16
17
|
}, _react.default.createElement("g", {
|
|
17
18
|
stroke: "none",
|
|
18
19
|
strokeWidth: "1",
|
|
@@ -12,7 +12,8 @@ var CheckOnlyIcon = (0, _react.memo)(function (props) {
|
|
|
12
12
|
return (0, _nativeProps.withNativeProps)(props, _react.default.createElement("svg", {
|
|
13
13
|
width: "1em",
|
|
14
14
|
height: "1em",
|
|
15
|
-
viewBox: "0 0 32 32"
|
|
15
|
+
viewBox: "0 0 32 32",
|
|
16
|
+
className: "ebscn-ui-icon"
|
|
16
17
|
}, _react.default.createElement("path", {
|
|
17
18
|
d: "M30.5986424,6.1055493 C30.9712631,6.53987855 30.9531134,7.18617346 30.5567048,7.59890623 L12.3166884,26.5900478 C11.9341206,26.9883697 11.3010844,27.001141 10.9027625,26.6185732 C10.8828778,26.5994749 10.8637913,26.5795625 10.8455522,26.5588869 L1.39075001,15.8410716 C1.02539196,15.4269074 1.06495712,14.7949798 1.47912126,14.4296218 C1.8340823,14.1164902 2.35996301,14.0951176 2.73916366,14.3784118 L10.9224935,20.4920347 C11.2975514,20.7722339 11.8168072,20.7547169 12.172129,20.4498784 L29.0316484,5.98571934 C29.497452,5.58609604 30.1990191,5.63974574 30.5986424,6.1055493 Z",
|
|
18
19
|
fill: "currentColor"
|