bkui-vue 1.0.3-beta.9 → 2.0.1-beta.10
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/index.cjs.js +162 -164
- package/dist/index.esm.js +31999 -29678
- package/dist/index.umd.js +162 -164
- package/dist/locale/en.esm.js +1 -1
- package/dist/locale/en.esm.js.map +1 -1
- package/dist/locale/en.umd.js +1 -1
- package/dist/locale/en.umd.js.map +1 -1
- package/dist/locale/zh-cn.esm.js +1 -1
- package/dist/locale/zh-cn.esm.js.map +1 -1
- package/dist/locale/zh-cn.umd.js +1 -1
- package/dist/locale/zh-cn.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/affix/affix.variable.css +3 -0
- package/lib/affix/index.js +7 -7
- package/lib/alert/alert.d.ts +5 -5
- package/lib/alert/alert.variable.css +3 -0
- package/lib/alert/index.d.ts +11 -11
- package/lib/backtop/backtop.d.ts +1 -1
- package/lib/backtop/backtop.variable.css +3 -0
- package/lib/backtop/index.d.ts +3 -3
- package/lib/backtop/index.js +6 -6
- package/lib/badge/badge.variable.css +3 -0
- package/lib/badge/index.js +1 -1
- package/lib/breadcrumb/breadcrumb.variable.css +3 -0
- package/lib/button/button.d.ts +7 -7
- package/lib/button/button.variable.css +3 -0
- package/lib/button/index.d.ts +8 -8
- package/lib/button/index.js +6 -6
- package/lib/card/card.variable.css +3 -0
- package/lib/cascader/cascader-panel.d.ts +1 -1
- package/lib/cascader/cascader.css +3 -3
- package/lib/cascader/cascader.d.ts +1 -1
- package/lib/cascader/cascader.less +4 -4
- package/lib/cascader/cascader.variable.css +6 -3
- package/lib/cascader/index.js +35 -36
- package/lib/cascader/interface.d.ts +1 -1
- package/lib/checkbox/checkbox.variable.css +3 -0
- package/lib/checkbox/index.js +7 -7
- package/lib/checkbox/type.d.ts +1 -1
- package/lib/code-diff/code-diff.variable.css +3 -0
- package/lib/code-diff/index.js +8 -8
- package/lib/collapse/collapse.css +11 -0
- package/lib/collapse/collapse.d.ts +11 -0
- package/lib/collapse/collapse.less +15 -1
- package/lib/collapse/collapse.variable.css +14 -0
- package/lib/collapse/index.d.ts +23 -0
- package/lib/collapse/index.js +11 -3
- package/lib/collapse/props.d.ts +8 -0
- package/lib/collapse/utils.d.ts +2 -2
- package/lib/collapse-transition/collapse-transition.variable.css +3 -0
- package/lib/color-picker/color-picker.css +3 -3
- package/lib/color-picker/color-picker.less +3 -3
- package/lib/color-picker/color-picker.variable.css +6 -3
- package/lib/color-picker/index.js +45 -45
- package/lib/components.d.ts +32 -30
- package/lib/components.js +31 -29
- package/lib/config-provider/config-provider.d.ts +3 -0
- package/lib/config-provider/config-provider.variable.css +3 -0
- package/lib/config-provider/index.d.ts +5 -1
- package/lib/config-provider/token.d.ts +1 -0
- package/lib/container/container.variable.css +3 -0
- package/lib/container/index.js +6 -6
- package/lib/date-picker/base/date-table.d.ts +1 -1
- package/lib/date-picker/base/month-table.d.ts +3 -3
- package/lib/date-picker/base/picker-dropdown.d.ts +1 -1
- package/lib/date-picker/base/year-table.d.ts +3 -3
- package/lib/date-picker/date-picker.d.ts +1 -0
- package/lib/date-picker/date-picker.variable.css +3 -0
- package/lib/date-picker/index.d.ts +3 -0
- package/lib/date-picker/index.js +340 -224
- package/lib/date-picker/interface.d.ts +9 -9
- package/lib/date-picker/panel/date-range.d.ts +2 -64
- package/lib/date-picker/panel/date.d.ts +1 -1
- package/lib/date-picker/panel/time-range.d.ts +1 -1
- package/lib/date-picker/panel/time.d.ts +1 -1
- package/lib/date-picker/props.d.ts +1 -1
- package/lib/date-picker/time-picker.d.ts +1 -0
- package/lib/date-picker/utils.d.ts +9 -1
- package/lib/dialog/dialog.css +172 -150
- package/lib/dialog/dialog.d.ts +55 -124
- package/lib/dialog/dialog.less +51 -124
- package/lib/dialog/dialog.variable.css +175 -150
- package/lib/dialog/index.d.ts +132 -296
- package/lib/dialog/index.js +244 -246
- package/lib/dialog/props.d.ts +16 -41
- package/lib/directives/index.d.ts +3 -3
- package/lib/directives/index.js +166 -167
- package/lib/directives/tooltips.d.ts +1 -1
- package/lib/dist.index.js +2 -2
- package/lib/divider/divider.d.ts +5 -5
- package/lib/divider/divider.variable.css +3 -0
- package/lib/divider/index.d.ts +11 -11
- package/lib/divider/index.js +2 -2
- package/lib/divider/props.d.ts +2 -2
- package/lib/dropdown/dropdown.css +3 -1
- package/lib/dropdown/dropdown.d.ts +5 -5
- package/lib/dropdown/dropdown.variable.css +6 -1
- package/lib/dropdown/index.d.ts +11 -11
- package/lib/dropdown/index.js +7 -7
- package/lib/exception/exception.d.ts +9 -9
- package/lib/exception/exception.variable.css +3 -0
- package/lib/exception/index.d.ts +11 -11
- package/lib/exception/index.js +10 -10
- package/lib/exception/typings/index.d.ts +1 -1
- package/lib/fixed-navbar/fixed-navbar.variable.css +3 -0
- package/lib/fixed-navbar/index.js +2 -2
- package/lib/form/form.d.ts +2 -2
- package/lib/form/form.variable.css +3 -0
- package/lib/form/index.js +17 -15
- package/lib/form/type.d.ts +2 -2
- package/lib/icon/image-fill.js +82 -167
- package/lib/icon/img-error.js +82 -167
- package/lib/icon/img-placehoulder.js +82 -167
- package/lib/icon/index.d.ts +12 -11
- package/lib/icon/index.js +87 -2427
- package/lib/icon/info-line.js +82 -167
- package/lib/icon/info.js +82 -167
- package/lib/icon/left-shape.js +82 -167
- package/lib/icon/left-turn-line.js +82 -167
- package/lib/icon/loading.js +82 -167
- package/lib/icon/narrow-line.js +82 -167
- package/lib/icon/original.js +82 -167
- package/lib/icon/pdf-fill.js +82 -167
- package/lib/icon/play-shape.js +82 -167
- package/lib/icon/plus.js +82 -167
- package/lib/icon/ppt-fill.js +82 -167
- package/lib/icon/qq.js +82 -167
- package/lib/icon/right-shape.js +82 -167
- package/lib/icon/right-turn-line.js +82 -167
- package/lib/icon/search.js +82 -167
- package/lib/icon/share.js +82 -167
- package/lib/icon/spinner.js +82 -167
- package/lib/icon/success.js +82 -167
- package/lib/icon/switcher-loading.js +82 -167
- package/lib/icon/text-all.d.ts +4 -0
- package/lib/icon/text-all.js +191 -0
- package/lib/icon/text-file.js +82 -167
- package/lib/icon/text-fill.js +82 -167
- package/lib/icon/transfer.js +82 -167
- package/lib/icon/tree-application-shape.js +82 -167
- package/lib/icon/unfull-screen.js +82 -167
- package/lib/icon/unvisible.js +82 -167
- package/lib/icon/up-shape.js +82 -167
- package/lib/icon/upload.js +82 -167
- package/lib/icon/video-fill.js +82 -167
- package/lib/icon/warn.js +82 -167
- package/lib/icon/weixin-pro.js +82 -167
- package/lib/icon/weixin.js +82 -167
- package/lib/image/image-viewer.d.ts +1 -1
- package/lib/image/image-viewer.variable.css +3 -0
- package/lib/image/image.variable.css +3 -0
- package/lib/image/index.js +25 -22
- package/lib/index.d.ts +3 -3
- package/lib/index.js +3 -3
- package/lib/info-box/index.d.ts +2 -2
- package/lib/info-box/index.js +257 -516
- package/lib/info-box/info-box.css +58 -28
- package/lib/info-box/info-box.d.ts +25 -23
- package/lib/info-box/info-box.less +82 -51
- package/lib/info-box/info-box.variable.css +61 -28
- package/lib/info-box/render-component.d.ts +4 -0
- package/lib/input/index.d.ts +15 -15
- package/lib/input/index.js +23 -17
- package/lib/input/input.d.ts +15 -15
- package/lib/input/input.variable.css +3 -0
- package/lib/link/index.d.ts +11 -11
- package/lib/link/index.js +3 -3
- package/lib/link/link.d.ts +5 -5
- package/lib/link/link.variable.css +3 -0
- package/lib/loading/index.d.ts +4 -4
- package/lib/loading/index.js +6 -6
- package/lib/loading/loading.d.ts +6 -6
- package/lib/loading/loading.variable.css +3 -0
- package/lib/locale/index.d.ts +1 -1
- package/lib/locale/index.js +4 -2
- package/lib/locale/lang/en.d.ts +1 -0
- package/lib/menu/index.js +0 -1
- package/lib/menu/menu.variable.css +3 -0
- package/lib/menu/submenu.variable.css +3 -0
- package/lib/menu/utils.d.ts +3 -3
- package/lib/message/index.js +18 -18
- package/lib/message/message.variable.css +3 -0
- package/lib/message/messageConstructor.d.ts +11 -11
- package/lib/modal/hooks.d.ts +6 -0
- package/lib/modal/index.d.ts +44 -312
- package/lib/modal/index.js +286 -672
- package/lib/modal/mask.d.ts +6 -0
- package/lib/modal/modal.css +151 -76
- package/lib/modal/modal.d.ts +19 -117
- package/lib/modal/modal.less +103 -56
- package/lib/modal/modal.variable.css +154 -76
- package/lib/modal/props.mixin.d.ts +5 -41
- package/lib/navigation/index.js +20 -20
- package/lib/navigation/navigation.d.ts +1 -1
- package/lib/navigation/navigation.variable.css +3 -0
- package/lib/notify/index.js +4 -4
- package/lib/notify/notify.variable.css +3 -0
- package/lib/overflow-title/components/overflow-title.d.ts +9 -9
- package/lib/overflow-title/index.d.ts +19 -19
- package/lib/overflow-title/index.js +107 -63
- package/lib/overflow-title/props.d.ts +18 -18
- package/lib/pagination/index.js +16 -15
- package/lib/pagination/pagination.variable.css +3 -0
- package/lib/pagination/type.d.ts +1 -1
- package/lib/pagination/use-limit.d.ts +1 -1
- package/lib/pagination/use-total.d.ts +1 -1
- package/lib/plugin-popover/index.d.ts +1 -1
- package/lib/plugin-popover/index.js +62 -44
- package/lib/pop-confirm/index.js +17 -14
- package/lib/pop-confirm/pop-confirm.variable.css +3 -0
- package/lib/pop-confirm/props.d.ts +2 -2
- package/lib/popover/const.d.ts +3 -3
- package/lib/popover/content.d.ts +1 -1
- package/lib/popover/index.d.ts +19 -19
- package/lib/popover/index.js +62 -44
- package/lib/popover/plugin-popover.d.ts +4 -1
- package/lib/popover/popover.css +3 -1
- package/lib/popover/popover.d.ts +7 -7
- package/lib/popover/popover.less +4 -1
- package/lib/popover/popover.variable.css +6 -1
- package/lib/popover/props.d.ts +4 -4
- package/lib/preset.d.ts +2 -0
- package/lib/process/index.js +3 -3
- package/lib/process/process.variable.css +3 -0
- package/lib/progress/index.d.ts +11 -11
- package/lib/progress/index.js +10 -10
- package/lib/progress/progress.d.ts +7 -7
- package/lib/progress/progress.variable.css +3 -0
- package/lib/radio/index.d.ts +29 -0
- package/lib/radio/index.js +49 -31
- package/lib/radio/radio-button.d.ts +10 -0
- package/lib/radio/radio-group.d.ts +10 -0
- package/lib/radio/radio.d.ts +10 -0
- package/lib/radio/radio.variable.css +3 -0
- package/lib/radio/type.d.ts +1 -1
- package/lib/rate/index.js +8 -8
- package/lib/rate/rate.css +27 -0
- package/lib/rate/rate.less +33 -0
- package/lib/rate/rate.variable.css +30 -0
- package/lib/resize-layout/index.d.ts +11 -11
- package/lib/resize-layout/index.js +8 -9
- package/lib/resize-layout/resize-layout.d.ts +5 -5
- package/lib/resize-layout/resize-layout.variable.css +3 -0
- package/lib/scrollbar/index.d.ts +15 -0
- package/lib/scrollbar/index.js +18762 -0
- package/lib/scrollbar/scrollbar-core/can-use-dom.d.ts +2 -0
- package/lib/scrollbar/scrollbar-core/helpers.d.ts +5 -0
- package/lib/scrollbar/scrollbar-core/index.d.ts +241 -0
- package/lib/scrollbar/scrollbar-core/mouse-wheel.d.ts +5 -0
- package/lib/scrollbar/scrollbar-core/scrollbar-width.d.ts +1 -0
- package/lib/scrollbar/scrollbar.css +75 -0
- package/lib/scrollbar/scrollbar.less +94 -0
- package/lib/{rate/star.variable.css → scrollbar/scrollbar.variable.css} +70 -19
- package/lib/search-select/index.d.ts +375 -16
- package/lib/search-select/index.js +754 -419
- package/lib/search-select/input.d.ts +14 -5
- package/lib/search-select/menu.d.ts +1 -1
- package/lib/search-select/search-select.css +20 -6
- package/lib/search-select/search-select.d.ts +129 -7
- package/lib/search-select/search-select.less +16 -12
- package/lib/search-select/search-select.variable.css +23 -6
- package/lib/search-select/selected.d.ts +117 -7
- package/lib/search-select/utils.d.ts +22 -9
- package/lib/select/index.d.ts +185 -67
- package/lib/select/index.js +1396 -136
- package/lib/select/option.d.ts +3 -1
- package/lib/select/pinyin/core.d.ts +14 -0
- package/lib/select/pinyin/dict.d.ts +34 -0
- package/lib/select/pinyin/index.d.ts +2 -0
- package/lib/select/select.css +56 -14
- package/lib/select/select.d.ts +74 -26
- package/lib/select/select.less +70 -21
- package/lib/select/select.variable.css +59 -14
- package/lib/select/selectTagInput.d.ts +13 -6
- package/lib/select/type.d.ts +4 -5
- package/lib/shared/index.d.ts +1 -2
- package/lib/shared/index.js +108 -96
- package/lib/shared/popover.d.ts +3 -3
- package/lib/shared/token.d.ts +1 -1
- package/lib/shared/utils.d.ts +12 -0
- package/lib/shared/vue-types.d.ts +51 -46
- package/lib/shared/z-index-manager.d.ts +6 -6
- package/lib/sideslider/index.d.ts +58 -188
- package/lib/sideslider/index.js +83 -57
- package/lib/sideslider/sideslider.css +26 -90
- package/lib/sideslider/sideslider.d.ts +26 -88
- package/lib/sideslider/sideslider.less +56 -132
- package/lib/sideslider/sideslider.variable.css +29 -90
- package/lib/slider/index.d.ts +19 -0
- package/lib/slider/index.js +64 -26
- package/lib/slider/slider.css +14 -0
- package/lib/slider/slider.d.ts +9 -0
- package/lib/slider/slider.less +15 -0
- package/lib/slider/slider.variable.css +17 -0
- package/lib/steps/index.d.ts +11 -11
- package/lib/steps/index.js +3 -3
- package/lib/steps/steps.d.ts +7 -7
- package/lib/steps/steps.variable.css +3 -0
- package/lib/styles/index.d.ts +0 -1
- package/lib/styles/mixins/animate.variable.css +3 -0
- package/lib/styles/mixins/popper.variable.css +3 -0
- package/lib/styles/mixins/scroll.variable.css +3 -0
- package/lib/styles/reset.css +1 -3
- package/lib/styles/reset.less +3 -6
- package/lib/styles/reset.variable.css +4 -3
- package/lib/styles/themes/themes.less +5 -0
- package/lib/swiper/index.js +5 -5
- package/lib/swiper/swiper.variable.css +3 -0
- package/lib/switcher/index.js +2 -2
- package/lib/switcher/switcher.d.ts +2 -2
- package/lib/switcher/switcher.variable.css +3 -0
- package/lib/tab/index.d.ts +22 -22
- package/lib/tab/index.js +15 -15
- package/lib/tab/props.d.ts +15 -15
- package/lib/tab/tab-nav.d.ts +10 -10
- package/lib/tab/tab.d.ts +10 -10
- package/lib/tab/tab.variable.css +3 -0
- package/lib/table/cache.d.ts +11 -3
- package/lib/table/components/table-cell.d.ts +3 -2
- package/lib/table/components/table-column.d.ts +30 -100
- package/lib/table/const.d.ts +12 -12
- package/lib/table/events.d.ts +21 -21
- package/lib/table/index.d.ts +220 -305
- package/lib/table/index.js +18165 -688
- package/lib/table/plugins/head-filter.css +8 -4
- package/lib/table/plugins/head-filter.less +6 -3
- package/lib/table/plugins/head-filter.variable.css +11 -4
- package/lib/table/plugins/head-sort.variable.css +3 -0
- package/lib/table/plugins/settings.variable.css +3 -0
- package/lib/table/plugins/use-active-columns.d.ts +2 -2
- package/lib/table/plugins/use-column-template.d.ts +7 -0
- package/lib/table/plugins/use-draggable.d.ts +2 -2
- package/lib/table/plugins/use-fixed-column.d.ts +1 -1
- package/lib/table/plugins/use-observer-resize.d.ts +5 -0
- package/lib/table/plugins/use-pagination.d.ts +3 -1
- package/lib/table/plugins/use-shift-key.d.ts +13 -0
- package/lib/table/props.d.ts +49 -39
- package/lib/table/table.css +112 -58
- package/lib/table/table.d.ts +58 -47
- package/lib/table/table.less +46 -58
- package/lib/table/table.variable.css +115 -58
- package/lib/table/use-attributes.d.ts +9 -46
- package/lib/table/use-column.d.ts +18 -139
- package/lib/table/use-common.d.ts +5 -5
- package/lib/table/use-render.d.ts +1 -1
- package/lib/table/utils.d.ts +6 -6
- package/lib/table-column/index.d.ts +127 -431
- package/lib/table-column/index.js +43 -117
- package/lib/tag/index.d.ts +11 -11
- package/lib/tag/index.js +2 -2
- package/lib/tag/tag.d.ts +5 -5
- package/lib/tag/tag.variable.css +3 -0
- package/lib/tag-input/common.d.ts +1 -1
- package/lib/tag-input/index.d.ts +12 -12
- package/lib/tag-input/index.js +30 -30
- package/lib/tag-input/tag-input.d.ts +6 -6
- package/lib/tag-input/tag-input.variable.css +3 -0
- package/lib/tag-input/tag-props.d.ts +3 -3
- package/lib/tag-input/tag-render.d.ts +1 -1
- package/lib/time-picker/index.d.ts +38 -35
- package/lib/time-picker/time-picker.variable.css +3 -0
- package/lib/timeline/index.d.ts +80 -44
- package/lib/timeline/index.js +56 -67
- package/lib/timeline/timeline.d.ts +46 -29
- package/lib/timeline/timeline.variable.css +3 -0
- package/lib/transfer/const.d.ts +2 -2
- package/lib/transfer/index.js +19 -19
- package/lib/transfer/transfer.css +9 -9
- package/lib/transfer/transfer.less +3 -3
- package/lib/transfer/transfer.variable.css +12 -9
- package/lib/tree/constant.d.ts +22 -20
- package/lib/tree/index.d.ts +64 -20
- package/lib/tree/index.js +17595 -72
- package/lib/tree/props.d.ts +24 -6
- package/lib/tree/tree.css +76 -2
- package/lib/tree/tree.d.ts +34 -8
- package/lib/tree/tree.less +1 -1
- package/lib/tree/tree.variable.css +79 -2
- package/lib/tree/use-empty.d.ts +1 -1
- package/lib/tree/use-intersection-observer.d.ts +27 -0
- package/lib/tree/use-node-action.d.ts +2 -2
- package/lib/tree/use-node-attribute.d.ts +9 -0
- package/lib/tree/use-search.d.ts +1 -1
- package/lib/tree/util.d.ts +1 -1
- package/lib/upload/index.d.ts +12 -0
- package/lib/upload/index.js +62 -65
- package/lib/upload/props.d.ts +4 -1
- package/lib/upload/upload-trigger.d.ts +6 -0
- package/lib/upload/upload.d.ts +6 -0
- package/lib/upload/upload.type.d.ts +7 -7
- package/lib/upload/upload.variable.css +3 -0
- package/lib/upload/use-file-handler.d.ts +1 -1
- package/lib/virtual-render/index.d.ts +36 -9
- package/lib/virtual-render/index.js +295 -80
- package/lib/virtual-render/props.d.ts +16 -0
- package/lib/virtual-render/use-fix-top.d.ts +2 -7
- package/lib/virtual-render/use-scrollbar.d.ts +24 -0
- package/lib/virtual-render/v-virtual-render.d.ts +2 -1
- package/lib/virtual-render/virtual-render.css +76 -2
- package/lib/virtual-render/virtual-render.d.ts +16 -3
- package/lib/virtual-render/virtual-render.less +3 -3
- package/lib/virtual-render/virtual-render.variable.css +79 -2
- package/package.json +13 -49
- package/lib/rate/star.css +0 -27
- package/lib/rate/star.less +0 -34
- package/lib/shared/mask.d.ts +0 -11
package/lib/shared/index.js
CHANGED
@@ -56,6 +56,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
56
56
|
TagThemeEnum: () => (/* reexport */ TagThemeEnum),
|
57
57
|
TagThemeType: () => (/* reexport */ TagThemeType),
|
58
58
|
ThemeEnum: () => (/* reexport */ ThemeEnum),
|
59
|
+
TimelineNodeTypeEnum: () => (/* reexport */ TimelineNodeTypeEnum),
|
59
60
|
TriggerEnum: () => (/* reexport */ TriggerEnum),
|
60
61
|
alignType: () => (/* reexport */ alignType),
|
61
62
|
arrayEqual: () => (/* binding */ arrayEqual),
|
@@ -72,6 +73,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
72
73
|
finiteOrDefault: () => (/* reexport */ finiteOrDefault),
|
73
74
|
formItemKey: () => (/* reexport */ formItemKey),
|
74
75
|
formKey: () => (/* reexport */ formKey),
|
76
|
+
getFullscreenRoot: () => (/* reexport */ getFullscreenRoot),
|
75
77
|
getPopContainerId: () => (/* reexport */ getPopContainerId),
|
76
78
|
hasOverflowEllipsis: () => (/* reexport */ hasOverflowEllipsis),
|
77
79
|
isArray: () => (/* reexport */ isArray),
|
@@ -79,6 +81,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
79
81
|
isEmpty: () => (/* reexport */ isEmpty),
|
80
82
|
isEmptyObj: () => (/* binding */ isEmptyObj),
|
81
83
|
isFinite: () => (/* reexport */ isNumberFinite),
|
84
|
+
isFullScreenContainsElement: () => (/* reexport */ isFullScreenContainsElement),
|
82
85
|
isFunction: () => (/* reexport */ isFunction),
|
83
86
|
isNullOrUndef: () => (/* reexport */ isNullOrUndef),
|
84
87
|
isObject: () => (/* reexport */ isObject),
|
@@ -86,7 +89,6 @@ __webpack_require__.d(__webpack_exports__, {
|
|
86
89
|
isString: () => (/* reexport */ isString),
|
87
90
|
isSymbol: () => (/* reexport */ isSymbol),
|
88
91
|
lineStyleType: () => (/* reexport */ lineStyleType),
|
89
|
-
mask: () => (/* reexport */ mask),
|
90
92
|
maybeShowTooltip: () => (/* reexport */ maybeShowTooltip),
|
91
93
|
merge: () => (/* reexport */ merge),
|
92
94
|
mergeIf: () => (/* reexport */ mergeIf),
|
@@ -233,7 +235,6 @@ function _typeof(o) {
|
|
233
235
|
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
234
236
|
* IN THE SOFTWARE.
|
235
237
|
*/
|
236
|
-
/* eslint-disable no-underscore-dangle */
|
237
238
|
/**
|
238
239
|
* Returns true if `value` is neither null nor undefined, else returns false.
|
239
240
|
* @param {*} value - The value to test.
|
@@ -359,10 +360,8 @@ function mergerFn(key, target, source, options) {
|
|
359
360
|
var tval = target[key];
|
360
361
|
var sval = source[key];
|
361
362
|
if (isObject(tval) && isObject(sval)) {
|
362
|
-
// eslint-disable-next-line no-use-before-define
|
363
363
|
merge(tval, sval, options);
|
364
364
|
} else {
|
365
|
-
// eslint-disable-next-line no-param-reassign
|
366
365
|
target[key] = clone(sval);
|
367
366
|
}
|
368
367
|
}
|
@@ -381,11 +380,9 @@ function merge(target, source, options) {
|
|
381
380
|
if (!isObject(target)) {
|
382
381
|
return target;
|
383
382
|
}
|
384
|
-
// eslint-disable-next-line no-param-reassign
|
385
383
|
options = options || {};
|
386
384
|
var merger = options.merger || mergerFn;
|
387
385
|
for (var i = 0; i < ilen; ++i) {
|
388
|
-
// eslint-disable-next-line no-param-reassign
|
389
386
|
source = sources[i];
|
390
387
|
if (!isObject(source)) {
|
391
388
|
continue;
|
@@ -405,7 +402,6 @@ function merge(target, source, options) {
|
|
405
402
|
* @returns {object} The `target` object.
|
406
403
|
*/
|
407
404
|
function mergeIf(target, source) {
|
408
|
-
// eslint-disable-next-line no-use-before-define
|
409
405
|
return merge(target, source, {
|
410
406
|
merger: mergerIfFn
|
411
407
|
});
|
@@ -423,7 +419,6 @@ function mergerIfFn(key, target, source) {
|
|
423
419
|
if (isObject(tval) && isObject(sval)) {
|
424
420
|
mergeIf(tval, sval);
|
425
421
|
} else if (!Object.prototype.hasOwnProperty.call(target, key)) {
|
426
|
-
// eslint-disable-next-line no-param-reassign
|
427
422
|
target[key] = clone(sval);
|
428
423
|
}
|
429
424
|
}
|
@@ -443,6 +438,9 @@ function helper_isElement(obj) {
|
|
443
438
|
* Whether the text content is clipped due to CSS overflow, as in showing `...`.
|
444
439
|
*/
|
445
440
|
function hasOverflowEllipsis(element) {
|
441
|
+
if (!element) {
|
442
|
+
return false;
|
443
|
+
}
|
446
444
|
return element.offsetWidth < element.scrollWidth || element.offsetHeight < element.scrollHeight;
|
447
445
|
}
|
448
446
|
/**
|
@@ -659,6 +657,10 @@ function _defineProperty(obj, key, value) {
|
|
659
657
|
}
|
660
658
|
return obj;
|
661
659
|
}
|
660
|
+
;// CONCATENATED MODULE: external "@popperjs/core"
|
661
|
+
var core_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
662
|
+
var core_y = x => () => x
|
663
|
+
const core_namespaceObject = core_x({ ["createPopper"]: () => __WEBPACK_EXTERNAL_MODULE__popperjs_core_a5c7319c__.createPopper });
|
662
664
|
;// CONCATENATED MODULE: ../../node_modules/uuid/dist/esm-browser/native.js
|
663
665
|
const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);
|
664
666
|
/* harmony default export */ const esm_browser_native = ({
|
@@ -747,10 +749,6 @@ function v4(options, buf, offset) {
|
|
747
749
|
}
|
748
750
|
|
749
751
|
/* harmony default export */ const esm_browser_v4 = (v4);
|
750
|
-
;// CONCATENATED MODULE: external "@popperjs/core"
|
751
|
-
var core_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
752
|
-
var core_y = x => () => x
|
753
|
-
const core_namespaceObject = core_x({ ["createPopper"]: () => __WEBPACK_EXTERNAL_MODULE__popperjs_core_a5c7319c__.createPopper });
|
754
752
|
;// CONCATENATED MODULE: ../../packages/shared/src/popover.ts
|
755
753
|
|
756
754
|
|
@@ -1231,6 +1229,7 @@ const throttle_namespaceObject = throttle_x({ ["default"]: () => __WEBPACK_EXTER
|
|
1231
1229
|
* IN THE SOFTWARE.
|
1232
1230
|
*/
|
1233
1231
|
|
1232
|
+
|
1234
1233
|
var lowerStr = 'abcdefghijklmnopqrstuvwxyz0123456789';
|
1235
1234
|
/**
|
1236
1235
|
* 生成n位长度的字符串
|
@@ -1315,6 +1314,46 @@ function checkOverflow(el) {
|
|
1315
1314
|
}
|
1316
1315
|
return isOverflow;
|
1317
1316
|
}
|
1317
|
+
/**
|
1318
|
+
* 判定是否在全屏模式下包含指定元素
|
1319
|
+
* @param target
|
1320
|
+
* @returns
|
1321
|
+
*/
|
1322
|
+
var isFullScreenContainsElement = function isFullScreenContainsElement(target) {
|
1323
|
+
var _document$fullscreenE, _document$fullscreenE2;
|
1324
|
+
if ((_document$fullscreenE = document.fullscreenElement) !== null && _document$fullscreenE !== void 0 && _document$fullscreenE.shadowRoot) {
|
1325
|
+
return document.fullscreenElement.shadowRoot.contains(target);
|
1326
|
+
}
|
1327
|
+
return (_document$fullscreenE2 = document.fullscreenElement) === null || _document$fullscreenE2 === void 0 ? void 0 : _document$fullscreenE2.contains(target);
|
1328
|
+
};
|
1329
|
+
/**
|
1330
|
+
* 当全屏模式开启,获取指定选择器下面的全屏元素
|
1331
|
+
* 如果是启用了webcomponent组件,则返回shadowRoot内指定的目标元素
|
1332
|
+
* @returns
|
1333
|
+
*/
|
1334
|
+
var getFullscreenRoot = function getFullscreenRoot(selector) {
|
1335
|
+
if (!selector) {
|
1336
|
+
return 'body';
|
1337
|
+
}
|
1338
|
+
if (helper_isElement(selector)) {
|
1339
|
+
if (isFullScreenContainsElement(selector)) {
|
1340
|
+
return selector;
|
1341
|
+
}
|
1342
|
+
}
|
1343
|
+
if (typeof selector === 'string') {
|
1344
|
+
var target = document.body.querySelector(selector);
|
1345
|
+
return getFullscreenRoot(target);
|
1346
|
+
}
|
1347
|
+
if (document.fullscreenElement) {
|
1348
|
+
var _document$fullscreenE3;
|
1349
|
+
if ((_document$fullscreenE3 = document.fullscreenElement) !== null && _document$fullscreenE3 !== void 0 && _document$fullscreenE3.shadowRoot) {
|
1350
|
+
var _document$fullscreenE4;
|
1351
|
+
return (_document$fullscreenE4 = document.fullscreenElement) === null || _document$fullscreenE4 === void 0 ? void 0 : _document$fullscreenE4.shadowRoot;
|
1352
|
+
}
|
1353
|
+
return document.fullscreenElement;
|
1354
|
+
}
|
1355
|
+
return helper_isElement(document.body) ? document.body : 'body';
|
1356
|
+
};
|
1318
1357
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
|
1319
1358
|
function _assertThisInitialized(self) {
|
1320
1359
|
if (self === void 0) {
|
@@ -1414,16 +1453,16 @@ function stringEnum(o) {
|
|
1414
1453
|
}
|
1415
1454
|
var SizeEnum;
|
1416
1455
|
(function (SizeEnum) {
|
1417
|
-
SizeEnum["SMALL"] = "small";
|
1418
|
-
SizeEnum["LARGE"] = "large";
|
1419
1456
|
SizeEnum["DEFAULT"] = "default";
|
1457
|
+
SizeEnum["LARGE"] = "large";
|
1458
|
+
SizeEnum["SMALL"] = "small";
|
1420
1459
|
})(SizeEnum || (SizeEnum = {}));
|
1421
1460
|
var Placements;
|
1422
1461
|
(function (Placements) {
|
1423
|
-
Placements["
|
1462
|
+
Placements["Bottom"] = "bottom";
|
1424
1463
|
Placements["Left"] = "left";
|
1425
1464
|
Placements["Right"] = "right";
|
1426
|
-
Placements["
|
1465
|
+
Placements["Top"] = "top";
|
1427
1466
|
})(Placements || (Placements = {}));
|
1428
1467
|
var RenderDirectiveEnum;
|
1429
1468
|
(function (RenderDirectiveEnum) {
|
@@ -1435,8 +1474,8 @@ function renderDirectiveType() {
|
|
1435
1474
|
}
|
1436
1475
|
var AlignEnum;
|
1437
1476
|
(function (AlignEnum) {
|
1438
|
-
AlignEnum["LEFT"] = "left";
|
1439
1477
|
AlignEnum["CENTER"] = "center";
|
1478
|
+
AlignEnum["LEFT"] = "left";
|
1440
1479
|
AlignEnum["RIGHT"] = "right";
|
1441
1480
|
})(AlignEnum || (AlignEnum = {}));
|
1442
1481
|
function alignType() {
|
@@ -1444,29 +1483,29 @@ function alignType() {
|
|
1444
1483
|
}
|
1445
1484
|
var ThemeEnum;
|
1446
1485
|
(function (ThemeEnum) {
|
1486
|
+
ThemeEnum["DANGER"] = "danger";
|
1447
1487
|
ThemeEnum["PRIMARY"] = "primary";
|
1448
|
-
ThemeEnum["WARNING"] = "warning";
|
1449
1488
|
ThemeEnum["SUCCESS"] = "success";
|
1450
|
-
ThemeEnum["
|
1489
|
+
ThemeEnum["WARNING"] = "warning";
|
1451
1490
|
})(ThemeEnum || (ThemeEnum = {}));
|
1452
1491
|
/** 弹层出现位置选项 */
|
1453
1492
|
var PlacementEnum;
|
1454
1493
|
(function (PlacementEnum) {
|
1455
1494
|
PlacementEnum["AUTO"] = "auto";
|
1456
|
-
PlacementEnum["AUTO_START"] = "auto-start";
|
1457
1495
|
PlacementEnum["AUTO_END"] = "auto-end";
|
1458
|
-
PlacementEnum["
|
1459
|
-
PlacementEnum["RIGHT"] = "right";
|
1496
|
+
PlacementEnum["AUTO_START"] = "auto-start";
|
1460
1497
|
PlacementEnum["BOTTOM"] = "bottom";
|
1461
|
-
PlacementEnum["LEFT"] = "left";
|
1462
|
-
PlacementEnum["TOP_START"] = "top-start";
|
1463
|
-
PlacementEnum["TOP_END"] = "top-end";
|
1464
|
-
PlacementEnum["BOTTOM_START"] = "bottom-start";
|
1465
1498
|
PlacementEnum["BOTTOM_END"] = "bottom-end";
|
1466
|
-
PlacementEnum["
|
1467
|
-
PlacementEnum["
|
1468
|
-
PlacementEnum["LEFT_START"] = "left-start";
|
1499
|
+
PlacementEnum["BOTTOM_START"] = "bottom-start";
|
1500
|
+
PlacementEnum["LEFT"] = "left";
|
1469
1501
|
PlacementEnum["LEFT_END"] = "left-end";
|
1502
|
+
PlacementEnum["LEFT_START"] = "left-start";
|
1503
|
+
PlacementEnum["RIGHT"] = "right";
|
1504
|
+
PlacementEnum["RIGHT_END"] = "right-end";
|
1505
|
+
PlacementEnum["RIGHT_START"] = "right-start";
|
1506
|
+
PlacementEnum["TOP"] = "top";
|
1507
|
+
PlacementEnum["TOP_END"] = "top-end";
|
1508
|
+
PlacementEnum["TOP_START"] = "top-start";
|
1470
1509
|
})(PlacementEnum || (PlacementEnum = {}));
|
1471
1510
|
function placementType() {
|
1472
1511
|
return (0,external_vue_types_namespaceObject.string)().def(PlacementEnum.BOTTOM);
|
@@ -1474,8 +1513,8 @@ function placementType() {
|
|
1474
1513
|
/** 弹层触发选项 */
|
1475
1514
|
var TriggerEnum;
|
1476
1515
|
(function (TriggerEnum) {
|
1477
|
-
TriggerEnum["HOVER"] = "hover";
|
1478
1516
|
TriggerEnum["CLICK"] = "click";
|
1517
|
+
TriggerEnum["HOVER"] = "hover";
|
1479
1518
|
TriggerEnum["MANUAL"] = "manual";
|
1480
1519
|
})(TriggerEnum || (TriggerEnum = {}));
|
1481
1520
|
function triggerType() {
|
@@ -1492,10 +1531,10 @@ function renderType() {
|
|
1492
1531
|
}
|
1493
1532
|
var DialogTypeEnum;
|
1494
1533
|
(function (DialogTypeEnum) {
|
1495
|
-
DialogTypeEnum["SHOW"] = "show";
|
1496
|
-
DialogTypeEnum["OPERATION"] = "operation";
|
1497
1534
|
DialogTypeEnum["CONFIRM"] = "confirm";
|
1535
|
+
DialogTypeEnum["OPERATION"] = "operation";
|
1498
1536
|
DialogTypeEnum["PROCESS"] = "process";
|
1537
|
+
DialogTypeEnum["SHOW"] = "show";
|
1499
1538
|
})(DialogTypeEnum || (DialogTypeEnum = {}));
|
1500
1539
|
function dialogTypeUnion() {
|
1501
1540
|
return (0,external_vue_types_namespaceObject.toType)('dialogType', {
|
@@ -1520,37 +1559,42 @@ function lineStyleType() {
|
|
1520
1559
|
}
|
1521
1560
|
var TagThemeEnum;
|
1522
1561
|
(function (TagThemeEnum) {
|
1523
|
-
TagThemeEnum["
|
1524
|
-
TagThemeEnum["SUCCESS"] = "success";
|
1562
|
+
TagThemeEnum["DANGER"] = "danger";
|
1525
1563
|
TagThemeEnum["INFO"] = "info";
|
1564
|
+
TagThemeEnum["SUCCESS"] = "success";
|
1565
|
+
TagThemeEnum["UNKNOWN"] = "";
|
1526
1566
|
TagThemeEnum["WARNING"] = "warning";
|
1527
|
-
TagThemeEnum["DANGER"] = "danger";
|
1528
1567
|
})(TagThemeEnum || (TagThemeEnum = {}));
|
1529
1568
|
function TagThemeType() {
|
1530
1569
|
return (0,external_vue_types_namespaceObject.toType)('tagTheme', {}).def();
|
1531
1570
|
}
|
1532
1571
|
var InputBehaviorEnum;
|
1533
1572
|
(function (InputBehaviorEnum) {
|
1534
|
-
InputBehaviorEnum["SIMPLICITY"] = "simplicity";
|
1535
1573
|
InputBehaviorEnum["NORMAL"] = "normal";
|
1574
|
+
InputBehaviorEnum["SIMPLICITY"] = "simplicity";
|
1536
1575
|
})(InputBehaviorEnum || (InputBehaviorEnum = {}));
|
1537
1576
|
var ProgressStrokeLineCapEnum;
|
1538
1577
|
(function (ProgressStrokeLineCapEnum) {
|
1539
1578
|
ProgressStrokeLineCapEnum["BUTT"] = "butt";
|
1540
|
-
ProgressStrokeLineCapEnum["SQUARE"] = "square";
|
1541
1579
|
ProgressStrokeLineCapEnum["ROUNDE"] = "round";
|
1580
|
+
ProgressStrokeLineCapEnum["SQUARE"] = "square";
|
1542
1581
|
})(ProgressStrokeLineCapEnum || (ProgressStrokeLineCapEnum = {}));
|
1543
1582
|
var ProgressEnum;
|
1544
1583
|
(function (ProgressEnum) {
|
1545
|
-
ProgressEnum["LINE"] = "line";
|
1546
1584
|
ProgressEnum["CIRCLE"] = "circle";
|
1547
1585
|
ProgressEnum["DASHBOARD"] = "dashboard";
|
1586
|
+
ProgressEnum["LINE"] = "line";
|
1548
1587
|
})(ProgressEnum || (ProgressEnum = {}));
|
1549
1588
|
var SwitcherThemeEnum;
|
1550
1589
|
(function (SwitcherThemeEnum) {
|
1551
|
-
SwitcherThemeEnum["SUCCESS"] = "success";
|
1552
1590
|
SwitcherThemeEnum["PRIMARY"] = "primary";
|
1591
|
+
SwitcherThemeEnum["SUCCESS"] = "success";
|
1553
1592
|
})(SwitcherThemeEnum || (SwitcherThemeEnum = {}));
|
1593
|
+
var TimelineNodeTypeEnum;
|
1594
|
+
(function (TimelineNodeTypeEnum) {
|
1595
|
+
TimelineNodeTypeEnum["TEMPLATE"] = "template";
|
1596
|
+
TimelineNodeTypeEnum["VNODE"] = "vnode";
|
1597
|
+
})(TimelineNodeTypeEnum || (TimelineNodeTypeEnum = {}));
|
1554
1598
|
function SwitcherThemeType() {
|
1555
1599
|
return (0,external_vue_types_namespaceObject.toType)('switcherTheme', {}).def(SwitcherThemeEnum.SUCCESS);
|
1556
1600
|
}
|
@@ -1648,13 +1692,26 @@ var PropTypes = /*#__PURE__*/function (_propTypesNS) {
|
|
1648
1692
|
}
|
1649
1693
|
});
|
1650
1694
|
}
|
1695
|
+
}, {
|
1696
|
+
key: "timelineNodeType",
|
1697
|
+
value: function timelineNodeType() {
|
1698
|
+
var types = ['template', 'vnode'];
|
1699
|
+
return (0,external_vue_types_namespaceObject.toType)('TimelineNodeType', {
|
1700
|
+
validator: function validator(val) {
|
1701
|
+
if (!val || types.includes(val)) {
|
1702
|
+
return true;
|
1703
|
+
}
|
1704
|
+
return false;
|
1705
|
+
}
|
1706
|
+
});
|
1707
|
+
}
|
1651
1708
|
}]);
|
1652
1709
|
return PropTypes;
|
1653
1710
|
}(propTypesNS);
|
1654
1711
|
var SelectedTypeEnum;
|
1655
1712
|
(function (SelectedTypeEnum) {
|
1656
|
-
SelectedTypeEnum["CHECKBOX"] = "checkbox";
|
1657
1713
|
SelectedTypeEnum["CHECK"] = "check";
|
1714
|
+
SelectedTypeEnum["CHECKBOX"] = "checkbox";
|
1658
1715
|
})(SelectedTypeEnum || (SelectedTypeEnum = {}));
|
1659
1716
|
function SelectedType() {
|
1660
1717
|
return (0,external_vue_types_namespaceObject.toType)('selectedStyle', {}).def(SelectedTypeEnum.CHECK);
|
@@ -1697,16 +1754,16 @@ var BKLAYERTYPE;
|
|
1697
1754
|
BKLAYERTYPE["BOTTOM"] = "bottom";
|
1698
1755
|
/** 页面呈现的各类内容 */
|
1699
1756
|
BKLAYERTYPE["CONTENT"] = "content";
|
1700
|
-
/** 顶部导航、侧边导航以及用户信息等 */
|
1701
|
-
BKLAYERTYPE["NAVI"] = "navi";
|
1702
1757
|
/** 页面需全屏操作的部分功能或编辑器的全屏模式 */
|
1703
1758
|
BKLAYERTYPE["FULLSCREEN"] = "fullScreen";
|
1704
|
-
/** 各类功能插件 */
|
1705
|
-
BKLAYERTYPE["PLUGINS"] = "plugins";
|
1706
|
-
/** 各类弹窗或抽屉(非模态弹窗不考虑) */
|
1707
|
-
BKLAYERTYPE["MODAL"] = "modal";
|
1708
1759
|
/** 各类消息提示 */
|
1709
1760
|
BKLAYERTYPE["MESSAGE"] = "message";
|
1761
|
+
/** 各类弹窗或抽屉(非模态弹窗不考虑) */
|
1762
|
+
BKLAYERTYPE["MODAL"] = "modal";
|
1763
|
+
/** 顶部导航、侧边导航以及用户信息等 */
|
1764
|
+
BKLAYERTYPE["NAVI"] = "navi";
|
1765
|
+
/** 各类功能插件 */
|
1766
|
+
BKLAYERTYPE["PLUGINS"] = "plugins";
|
1710
1767
|
/** 各类popper提示 */
|
1711
1768
|
BKLAYERTYPE["POPPER"] = "popper";
|
1712
1769
|
})(BKLAYERTYPE || (BKLAYERTYPE = {}));
|
@@ -1730,8 +1787,7 @@ var BKZIndexManager = /*#__PURE__*/function () {
|
|
1730
1787
|
this.storageLayerIndexValue[type] = this.storageLayerIndexValue[type] + 1;
|
1731
1788
|
return this.storageLayerIndexValue[type];
|
1732
1789
|
}
|
1733
|
-
this.
|
1734
|
-
return this.storageLayerIndexValue[BKLAYERTYPE.MODAL];
|
1790
|
+
this.getNextIndex(BKLAYERTYPE.MODAL);
|
1735
1791
|
}
|
1736
1792
|
/** 获取弹窗类型最新zIndex的值 */
|
1737
1793
|
}, {
|
@@ -1811,50 +1867,6 @@ var BKZIndexManager = /*#__PURE__*/function () {
|
|
1811
1867
|
return BKZIndexManager;
|
1812
1868
|
}();
|
1813
1869
|
var bkZIndexManager = new BKZIndexManager();
|
1814
|
-
;// CONCATENATED MODULE: ../../packages/shared/src/mask.ts
|
1815
|
-
|
1816
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
1817
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
1818
|
-
var instanceStore = new WeakMap();
|
1819
|
-
var activeModal;
|
1820
|
-
var loopSetMaskStyle = function loopSetMaskStyle(modal, show) {
|
1821
|
-
if (!modal) {
|
1822
|
-
return;
|
1823
|
-
}
|
1824
|
-
if (instanceStore.has(modal)) {
|
1825
|
-
var _instanceStore$get = instanceStore.get(modal),
|
1826
|
-
_mask = _instanceStore$get.mask,
|
1827
|
-
backgroundColor = _instanceStore$get.backgroundColor;
|
1828
|
-
_mask === null || _mask === void 0 || _mask.style.setProperty('background-color', show ? 'transparent' : backgroundColor);
|
1829
|
-
}
|
1830
|
-
};
|
1831
|
-
var showMask = function showMask(options) {
|
1832
|
-
if (!options.el) {
|
1833
|
-
return;
|
1834
|
-
}
|
1835
|
-
if (!instanceStore.has(options.el)) {
|
1836
|
-
instanceStore.set(options.el, _objectSpread(_objectSpread({}, options), {}, {
|
1837
|
-
referenceParent: activeModal
|
1838
|
-
}));
|
1839
|
-
}
|
1840
|
-
var mask = options.mask,
|
1841
|
-
backgroundColor = options.backgroundColor;
|
1842
|
-
mask === null || mask === void 0 || mask.style.setProperty('background-color', backgroundColor);
|
1843
|
-
loopSetMaskStyle(activeModal, options.showMask);
|
1844
|
-
activeModal = options.el;
|
1845
|
-
};
|
1846
|
-
var hideMask = function hideMask(options) {
|
1847
|
-
if (options.el && instanceStore.has(options.el)) {
|
1848
|
-
var _instanceStore$get2 = instanceStore.get(options.el),
|
1849
|
-
referenceParent = _instanceStore$get2.referenceParent;
|
1850
|
-
activeModal = referenceParent;
|
1851
|
-
loopSetMaskStyle(referenceParent, false);
|
1852
|
-
}
|
1853
|
-
};
|
1854
|
-
var mask = {
|
1855
|
-
showMask: showMask,
|
1856
|
-
hideMask: hideMask
|
1857
|
-
};
|
1858
1870
|
;// CONCATENATED MODULE: ../../packages/shared/src/index.ts
|
1859
1871
|
|
1860
1872
|
|
@@ -1866,7 +1878,6 @@ var mask = {
|
|
1866
1878
|
|
1867
1879
|
|
1868
1880
|
|
1869
|
-
|
1870
1881
|
function classes(dynamicCls) {
|
1871
1882
|
var constCls = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
1872
1883
|
return Object.entries(dynamicCls).filter(function (entry) {
|
@@ -1937,7 +1948,6 @@ function debounce() {
|
|
1937
1948
|
var debounced = function debounced() {
|
1938
1949
|
// eslint-disable-next-line @typescript-eslint/no-this-alias
|
1939
1950
|
var ctx = this; // 当前上下文
|
1940
|
-
// eslint-disable-next-line prefer-rest-params
|
1941
1951
|
var args = arguments; // fn的参数
|
1942
1952
|
// 取消之前的延时调用
|
1943
1953
|
if (timeout) clearTimeout(timeout);
|
@@ -2017,6 +2027,7 @@ var __webpack_exports__SwitcherThemeType = __webpack_exports__.SwitcherThemeType
|
|
2017
2027
|
var __webpack_exports__TagThemeEnum = __webpack_exports__.TagThemeEnum;
|
2018
2028
|
var __webpack_exports__TagThemeType = __webpack_exports__.TagThemeType;
|
2019
2029
|
var __webpack_exports__ThemeEnum = __webpack_exports__.ThemeEnum;
|
2030
|
+
var __webpack_exports__TimelineNodeTypeEnum = __webpack_exports__.TimelineNodeTypeEnum;
|
2020
2031
|
var __webpack_exports__TriggerEnum = __webpack_exports__.TriggerEnum;
|
2021
2032
|
var __webpack_exports__alignType = __webpack_exports__.alignType;
|
2022
2033
|
var __webpack_exports__arrayEqual = __webpack_exports__.arrayEqual;
|
@@ -2033,6 +2044,7 @@ var __webpack_exports__filterProperty = __webpack_exports__.filterProperty;
|
|
2033
2044
|
var __webpack_exports__finiteOrDefault = __webpack_exports__.finiteOrDefault;
|
2034
2045
|
var __webpack_exports__formItemKey = __webpack_exports__.formItemKey;
|
2035
2046
|
var __webpack_exports__formKey = __webpack_exports__.formKey;
|
2047
|
+
var __webpack_exports__getFullscreenRoot = __webpack_exports__.getFullscreenRoot;
|
2036
2048
|
var __webpack_exports__getPopContainerId = __webpack_exports__.getPopContainerId;
|
2037
2049
|
var __webpack_exports__hasOverflowEllipsis = __webpack_exports__.hasOverflowEllipsis;
|
2038
2050
|
var __webpack_exports__isArray = __webpack_exports__.isArray;
|
@@ -2040,6 +2052,7 @@ var __webpack_exports__isElement = __webpack_exports__.isElement;
|
|
2040
2052
|
var __webpack_exports__isEmpty = __webpack_exports__.isEmpty;
|
2041
2053
|
var __webpack_exports__isEmptyObj = __webpack_exports__.isEmptyObj;
|
2042
2054
|
var __webpack_exports__isFinite = __webpack_exports__.isFinite;
|
2055
|
+
var __webpack_exports__isFullScreenContainsElement = __webpack_exports__.isFullScreenContainsElement;
|
2043
2056
|
var __webpack_exports__isFunction = __webpack_exports__.isFunction;
|
2044
2057
|
var __webpack_exports__isNullOrUndef = __webpack_exports__.isNullOrUndef;
|
2045
2058
|
var __webpack_exports__isObject = __webpack_exports__.isObject;
|
@@ -2047,7 +2060,6 @@ var __webpack_exports__isPromise = __webpack_exports__.isPromise;
|
|
2047
2060
|
var __webpack_exports__isString = __webpack_exports__.isString;
|
2048
2061
|
var __webpack_exports__isSymbol = __webpack_exports__.isSymbol;
|
2049
2062
|
var __webpack_exports__lineStyleType = __webpack_exports__.lineStyleType;
|
2050
|
-
var __webpack_exports__mask = __webpack_exports__.mask;
|
2051
2063
|
var __webpack_exports__maybeShowTooltip = __webpack_exports__.maybeShowTooltip;
|
2052
2064
|
var __webpack_exports__merge = __webpack_exports__.merge;
|
2053
2065
|
var __webpack_exports__mergeIf = __webpack_exports__.mergeIf;
|
@@ -2072,4 +2084,4 @@ var __webpack_exports__useFormItem = __webpack_exports__.useFormItem;
|
|
2072
2084
|
var __webpack_exports__valueOrDefault = __webpack_exports__.valueOrDefault;
|
2073
2085
|
var __webpack_exports__withInstall = __webpack_exports__.withInstall;
|
2074
2086
|
var __webpack_exports__withInstallProps = __webpack_exports__.withInstallProps;
|
2075
|
-
export { __webpack_exports__AlignEnum as AlignEnum, __webpack_exports__BKLAYERD_INDEX_EFAULT_VALUE as BKLAYERD_INDEX_EFAULT_VALUE, __webpack_exports__BKLAYERTYPE as BKLAYERTYPE, __webpack_exports__BKPopover as BKPopover, __webpack_exports__DialogTypeEnum as DialogTypeEnum, __webpack_exports__DirectionEnum as DirectionEnum, __webpack_exports__EMPTY_OBJ as EMPTY_OBJ, __webpack_exports__InputBehaviorEnum as InputBehaviorEnum, __webpack_exports__InputBehaviorType as InputBehaviorType, __webpack_exports__LineStyleEnum as LineStyleEnum, __webpack_exports__PlacementEnum as PlacementEnum, __webpack_exports__Placements as Placements, __webpack_exports__ProgressEnum as ProgressEnum, __webpack_exports__ProgressStrokeLineCapEnum as ProgressStrokeLineCapEnum, __webpack_exports__ProgressStrokeLineCapType as ProgressStrokeLineCapType, __webpack_exports__ProgressType as ProgressType, __webpack_exports__PropTypes as PropTypes, __webpack_exports__RenderDirectiveEnum as RenderDirectiveEnum, __webpack_exports__RenderType as RenderType, __webpack_exports__SelectedType as SelectedType, __webpack_exports__SelectedTypeEnum as SelectedTypeEnum, __webpack_exports__SizeEnum as SizeEnum, __webpack_exports__SwitcherThemeEnum as SwitcherThemeEnum, __webpack_exports__SwitcherThemeType as SwitcherThemeType, __webpack_exports__TagThemeEnum as TagThemeEnum, __webpack_exports__TagThemeType as TagThemeType, __webpack_exports__ThemeEnum as ThemeEnum, __webpack_exports__TriggerEnum as TriggerEnum, __webpack_exports__alignType as alignType, __webpack_exports__arrayEqual as arrayEqual, __webpack_exports__bkZIndexManager as bkZIndexManager, __webpack_exports__capitalize as capitalize, __webpack_exports__checkOverflow as checkOverflow, __webpack_exports__classes as classes, __webpack_exports__clone as clone, __webpack_exports__debounce as debounce, __webpack_exports__dialogTypeUnion as dialogTypeUnion, __webpack_exports__directionType as directionType, __webpack_exports__elementsEqual as elementsEqual, __webpack_exports__filterProperty as filterProperty, __webpack_exports__finiteOrDefault as finiteOrDefault, __webpack_exports__formItemKey as formItemKey, __webpack_exports__formKey as formKey, __webpack_exports__getPopContainerId as getPopContainerId, __webpack_exports__hasOverflowEllipsis as hasOverflowEllipsis, __webpack_exports__isArray as isArray, __webpack_exports__isElement as isElement, __webpack_exports__isEmpty as isEmpty, __webpack_exports__isEmptyObj as isEmptyObj, __webpack_exports__isFinite as isFinite, __webpack_exports__isFunction as isFunction, __webpack_exports__isNullOrUndef as isNullOrUndef, __webpack_exports__isObject as isObject, __webpack_exports__isPromise as isPromise, __webpack_exports__isString as isString, __webpack_exports__isSymbol as isSymbol, __webpack_exports__lineStyleType as lineStyleType,
|
2087
|
+
export { __webpack_exports__AlignEnum as AlignEnum, __webpack_exports__BKLAYERD_INDEX_EFAULT_VALUE as BKLAYERD_INDEX_EFAULT_VALUE, __webpack_exports__BKLAYERTYPE as BKLAYERTYPE, __webpack_exports__BKPopover as BKPopover, __webpack_exports__DialogTypeEnum as DialogTypeEnum, __webpack_exports__DirectionEnum as DirectionEnum, __webpack_exports__EMPTY_OBJ as EMPTY_OBJ, __webpack_exports__InputBehaviorEnum as InputBehaviorEnum, __webpack_exports__InputBehaviorType as InputBehaviorType, __webpack_exports__LineStyleEnum as LineStyleEnum, __webpack_exports__PlacementEnum as PlacementEnum, __webpack_exports__Placements as Placements, __webpack_exports__ProgressEnum as ProgressEnum, __webpack_exports__ProgressStrokeLineCapEnum as ProgressStrokeLineCapEnum, __webpack_exports__ProgressStrokeLineCapType as ProgressStrokeLineCapType, __webpack_exports__ProgressType as ProgressType, __webpack_exports__PropTypes as PropTypes, __webpack_exports__RenderDirectiveEnum as RenderDirectiveEnum, __webpack_exports__RenderType as RenderType, __webpack_exports__SelectedType as SelectedType, __webpack_exports__SelectedTypeEnum as SelectedTypeEnum, __webpack_exports__SizeEnum as SizeEnum, __webpack_exports__SwitcherThemeEnum as SwitcherThemeEnum, __webpack_exports__SwitcherThemeType as SwitcherThemeType, __webpack_exports__TagThemeEnum as TagThemeEnum, __webpack_exports__TagThemeType as TagThemeType, __webpack_exports__ThemeEnum as ThemeEnum, __webpack_exports__TimelineNodeTypeEnum as TimelineNodeTypeEnum, __webpack_exports__TriggerEnum as TriggerEnum, __webpack_exports__alignType as alignType, __webpack_exports__arrayEqual as arrayEqual, __webpack_exports__bkZIndexManager as bkZIndexManager, __webpack_exports__capitalize as capitalize, __webpack_exports__checkOverflow as checkOverflow, __webpack_exports__classes as classes, __webpack_exports__clone as clone, __webpack_exports__debounce as debounce, __webpack_exports__dialogTypeUnion as dialogTypeUnion, __webpack_exports__directionType as directionType, __webpack_exports__elementsEqual as elementsEqual, __webpack_exports__filterProperty as filterProperty, __webpack_exports__finiteOrDefault as finiteOrDefault, __webpack_exports__formItemKey as formItemKey, __webpack_exports__formKey as formKey, __webpack_exports__getFullscreenRoot as getFullscreenRoot, __webpack_exports__getPopContainerId as getPopContainerId, __webpack_exports__hasOverflowEllipsis as hasOverflowEllipsis, __webpack_exports__isArray as isArray, __webpack_exports__isElement as isElement, __webpack_exports__isEmpty as isEmpty, __webpack_exports__isEmptyObj as isEmptyObj, __webpack_exports__isFinite as isFinite, __webpack_exports__isFullScreenContainsElement as isFullScreenContainsElement, __webpack_exports__isFunction as isFunction, __webpack_exports__isNullOrUndef as isNullOrUndef, __webpack_exports__isObject as isObject, __webpack_exports__isPromise as isPromise, __webpack_exports__isString as isString, __webpack_exports__isSymbol as isSymbol, __webpack_exports__lineStyleType as lineStyleType, __webpack_exports__maybeShowTooltip as maybeShowTooltip, __webpack_exports__merge as merge, __webpack_exports__mergeIf as mergeIf, __webpack_exports__mergerFn as mergerFn, __webpack_exports__mergerIfFn as mergerIfFn, __webpack_exports__noop as noop, __webpack_exports__observerResize as observerResize, __webpack_exports__off as off, __webpack_exports__on as on, __webpack_exports__placementType as placementType, __webpack_exports__random as random, __webpack_exports__renderDirectiveType as renderDirectiveType, __webpack_exports__renderEmptyVNode as renderEmptyVNode, __webpack_exports__renderType as renderType, __webpack_exports__resolveClassName as resolveClassName, __webpack_exports__scrollTop as scrollTop, __webpack_exports__scrollbarWidth as scrollbarWidth, __webpack_exports__stringEnum as stringEnum, __webpack_exports__triggerType as triggerType, __webpack_exports__useForm as useForm, __webpack_exports__useFormItem as useFormItem, __webpack_exports__valueOrDefault as valueOrDefault, __webpack_exports__withInstall as withInstall, __webpack_exports__withInstallProps as withInstallProps };
|
package/lib/shared/popover.d.ts
CHANGED
@@ -10,7 +10,7 @@ export declare type IOptions = {
|
|
10
10
|
theme?: string;
|
11
11
|
trigger?: string;
|
12
12
|
disabled?: boolean;
|
13
|
-
appendTo?:
|
13
|
+
appendTo?: HTMLElement | string;
|
14
14
|
afterShow?: () => void;
|
15
15
|
afterHidden?: () => void;
|
16
16
|
/**
|
@@ -18,7 +18,7 @@ export declare type IOptions = {
|
|
18
18
|
* 是否将弹出内容固定到目标元素位置
|
19
19
|
* 例如:appendTo = document.body, fixOnBoundary = true,则弹出内容会一直固定到body
|
20
20
|
*/
|
21
|
-
fixOnBoundary?:
|
21
|
+
fixOnBoundary?: boolean;
|
22
22
|
};
|
23
23
|
export declare type IBKPopover = Instance & {
|
24
24
|
show: () => void;
|
@@ -63,7 +63,7 @@ export declare class BKPopover {
|
|
63
63
|
* 例如:appendTo = document.body, fixOnBoundary = true,则弹出内容会一直固定到body
|
64
64
|
*/
|
65
65
|
private fixOnBoundary;
|
66
|
-
constructor(reference?:
|
66
|
+
constructor(reference?: HTMLElement | string, popperRefer?: HTMLElement | string, options?: IOptions);
|
67
67
|
forceUpdate(): void;
|
68
68
|
update(): void;
|
69
69
|
updateOptions(options: IOptions): void;
|
package/lib/shared/token.d.ts
CHANGED
package/lib/shared/utils.d.ts
CHANGED
@@ -23,3 +23,15 @@ export declare const capitalize: (str: any) => any;
|
|
23
23
|
* @returns
|
24
24
|
*/
|
25
25
|
export declare function checkOverflow(el: any): boolean;
|
26
|
+
/**
|
27
|
+
* 判定是否在全屏模式下包含指定元素
|
28
|
+
* @param target
|
29
|
+
* @returns
|
30
|
+
*/
|
31
|
+
export declare const isFullScreenContainsElement: (target: HTMLElement) => boolean;
|
32
|
+
/**
|
33
|
+
* 当全屏模式开启,获取指定选择器下面的全屏元素
|
34
|
+
* 如果是启用了webcomponent组件,则返回shadowRoot内指定的目标元素
|
35
|
+
* @returns
|
36
|
+
*/
|
37
|
+
export declare const getFullscreenRoot: (selector?: HTMLElement | string) => any;
|