bkui-vue 0.0.2-table-refactor.9 → 0.0.3-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/dist/index.cjs.js +135 -161
- package/dist/index.esm.js +17059 -19431
- package/dist/index.umd.js +135 -161
- 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 +6 -2
- package/lib/affix/index.js +321 -1
- package/lib/alert/alert.variable.css +6 -2
- package/lib/alert/index.js +214 -1
- package/lib/animate-number/index.js +155 -1
- package/lib/backtop/backtop.variable.css +6 -2
- package/lib/backtop/index.js +188 -1
- package/lib/badge/badge.css +8 -2
- package/lib/badge/badge.less +8 -4
- package/lib/badge/badge.variable.css +14 -4
- package/lib/badge/index.js +235 -1
- package/lib/breadcrumb/breadcrumb.variable.css +6 -2
- package/lib/breadcrumb/index.js +309 -1
- package/lib/button/button-group.d.ts +2 -2
- package/lib/button/button.css +10 -7
- package/lib/button/button.d.ts +1 -1
- package/lib/button/button.less +98 -93
- package/lib/button/button.variable.css +24 -17
- package/lib/button/index.d.ts +5 -5
- package/lib/button/index.js +321 -1
- package/lib/card/card.css +7 -7
- package/lib/card/card.less +7 -7
- package/lib/card/card.variable.css +13 -9
- package/lib/card/index.js +285 -1
- package/lib/cascader/cascader-panel.d.ts +1 -0
- package/lib/cascader/cascader.css +3 -3
- package/lib/cascader/cascader.d.ts +1 -0
- package/lib/cascader/cascader.less +4 -6
- package/lib/cascader/cascader.variable.css +9 -5
- package/lib/cascader/index.d.ts +4 -0
- package/lib/cascader/index.js +2053 -2
- package/lib/checkbox/checkbox.css +13 -1
- package/lib/checkbox/checkbox.d.ts +13 -10
- package/lib/checkbox/checkbox.less +15 -1
- package/lib/checkbox/checkbox.variable.css +19 -3
- package/lib/checkbox/common.d.ts +1 -0
- package/lib/checkbox/index.d.ts +28 -19
- package/lib/checkbox/index.js +569 -1
- package/lib/code-diff/code-diff.variable.css +6 -2
- package/lib/code-diff/index.js +5501 -1
- package/lib/collapse/collapse.variable.css +6 -2
- package/lib/collapse/index.js +570 -1
- package/lib/collapse-transition/collapse-transition.variable.css +6 -2
- package/lib/collapse-transition/index.js +177 -1
- package/lib/color-picker/color-picker.variable.css +6 -2
- package/lib/color-picker/index.js +2665 -1
- package/lib/components.js +530 -1
- package/lib/config-provider/config-provider.d.ts +18 -0
- package/lib/config-provider/config-provider.variable.css +6 -2
- package/lib/config-provider/index.d.ts +24 -0
- package/lib/config-provider/index.js +365 -1
- package/lib/config-provider/token.d.ts +6 -0
- package/lib/container/container.variable.css +6 -2
- package/lib/container/index.js +391 -1
- package/lib/date-picker/common.d.ts +2 -0
- package/lib/date-picker/date-picker.d.ts +3 -1
- package/lib/date-picker/date-picker.variable.css +6 -2
- package/lib/date-picker/index.d.ts +9 -3
- package/lib/date-picker/index.js +5629 -1
- package/lib/date-picker/panel/date.d.ts +2 -2
- package/lib/date-picker/panel/time-range.d.ts +17 -0
- package/lib/date-picker/panel/time.d.ts +17 -1
- package/lib/date-picker/time-picker.d.ts +3 -1
- package/lib/dialog/dialog.css +7 -6
- package/lib/dialog/dialog.less +7 -6
- package/lib/dialog/dialog.variable.css +13 -8
- package/lib/dialog/index.js +971 -2
- package/lib/directives/index.js +1387 -2
- package/lib/dist.index.js +87 -1
- package/lib/divider/divider.variable.css +6 -2
- package/lib/divider/index.js +169 -1
- package/lib/dropdown/dropdown.css +1 -1
- package/lib/dropdown/dropdown.variable.css +7 -3
- package/lib/dropdown/index.js +369 -1
- package/lib/exception/exception.variable.css +6 -2
- package/lib/exception/index.js +385 -1
- package/lib/fixed-navbar/fixed-navbar.variable.css +6 -2
- package/lib/fixed-navbar/index.js +154 -1
- package/lib/form/form.css +2 -1
- package/lib/form/form.less +3 -2
- package/lib/form/form.variable.css +8 -3
- package/lib/form/index.js +952 -1
- package/lib/hooks.js +73 -1
- package/lib/icon/angle-double-down-line.js +191 -1
- package/lib/icon/angle-double-left-line.js +191 -1
- package/lib/icon/angle-double-left.js +191 -1
- package/lib/icon/angle-double-right-line.js +191 -1
- package/lib/icon/angle-double-right.js +191 -1
- package/lib/icon/angle-double-up-line.js +191 -1
- package/lib/icon/angle-down-fill.js +191 -1
- package/lib/icon/angle-down-line.js +191 -1
- package/lib/icon/angle-down.js +191 -1
- package/lib/icon/angle-left.js +191 -1
- package/lib/icon/angle-right.js +191 -1
- package/lib/icon/angle-up-fill.js +191 -1
- package/lib/icon/angle-up.js +191 -1
- package/lib/icon/archive-fill.js +191 -1
- package/lib/icon/arrows-left.js +191 -1
- package/lib/icon/arrows-right.js +191 -1
- package/lib/icon/assistant.js +191 -1
- package/lib/icon/audio-fill.js +191 -1
- package/lib/icon/bk.js +191 -1
- package/lib/icon/circle.js +191 -1
- package/lib/icon/close-line.js +191 -1
- package/lib/icon/close.js +191 -1
- package/lib/icon/code.js +191 -1
- package/lib/icon/cog-shape.js +191 -1
- package/lib/icon/collapse-left.js +191 -1
- package/lib/icon/copy-shape.js +191 -1
- package/lib/icon/copy.js +191 -1
- package/lib/icon/data-shape.js +191 -1
- package/lib/icon/del.js +191 -1
- package/lib/icon/doc-fill.js +191 -1
- package/lib/icon/done.js +191 -1
- package/lib/icon/down-shape.js +191 -1
- package/lib/icon/down-small.js +191 -1
- package/lib/icon/edit-line.js +191 -1
- package/lib/icon/ellipsis.js +191 -1
- package/lib/icon/enlarge-line.js +191 -1
- package/lib/icon/error.js +191 -1
- package/lib/icon/excel-fill.js +191 -1
- package/lib/icon/exclamation-circle-shape.js +191 -1
- package/lib/icon/eye.js +191 -1
- package/lib/icon/filliscreen-line.js +191 -1
- package/lib/icon/fix-line.js +191 -1
- package/lib/icon/fix-shape.js +191 -1
- package/lib/icon/folder-open.js +191 -1
- package/lib/icon/folder-shape-open.js +191 -1
- package/lib/icon/folder-shape.js +191 -1
- package/lib/icon/folder.js +191 -1
- package/lib/icon/funnel.js +191 -1
- package/lib/icon/help-document-fill.js +191 -1
- package/lib/icon/help-fill.js +191 -1
- package/lib/icon/help.js +191 -1
- package/lib/icon/image-fill.js +276 -1
- package/lib/icon/img-error.js +276 -1
- package/lib/icon/img-placehoulder.js +276 -1
- package/lib/icon/index.d.ts +1 -0
- package/lib/icon/index.js +2432 -1
- package/lib/icon/info-line.js +276 -1
- package/lib/icon/info.js +276 -1
- package/lib/icon/left-shape.js +276 -1
- package/lib/icon/left-turn-line.js +276 -1
- package/lib/icon/loading.d.ts +4 -0
- package/lib/icon/loading.js +276 -0
- package/lib/icon/narrow-line.js +276 -1
- package/lib/icon/original.js +276 -1
- package/lib/icon/pdf-fill.js +276 -1
- package/lib/icon/play-shape.js +276 -1
- package/lib/icon/plus.js +276 -1
- package/lib/icon/ppt-fill.js +276 -1
- package/lib/icon/qq.js +276 -1
- package/lib/icon/right-shape.js +276 -1
- package/lib/icon/right-turn-line.js +276 -1
- package/lib/icon/search.js +276 -1
- package/lib/icon/share.js +276 -1
- package/lib/icon/spinner.js +276 -1
- package/lib/icon/success.js +276 -1
- package/lib/icon/switcher-loading.js +276 -1
- package/lib/icon/text-file.js +276 -1
- package/lib/icon/text-fill.js +276 -1
- package/lib/icon/transfer.js +276 -1
- package/lib/icon/tree-application-shape.js +276 -1
- package/lib/icon/unfull-screen.js +276 -1
- package/lib/icon/unvisible.js +276 -1
- package/lib/icon/up-shape.js +276 -1
- package/lib/icon/upload.js +276 -1
- package/lib/icon/video-fill.js +276 -1
- package/lib/icon/warn.js +276 -1
- package/lib/icon/weixin-pro.js +276 -1
- package/lib/icon/weixin.js +276 -1
- package/lib/image/image-viewer.variable.css +6 -2
- package/lib/image/image.variable.css +6 -2
- package/lib/image/index.js +641 -1
- package/lib/index.js +97 -1
- package/lib/info-box/index.js +1161 -2
- package/lib/info-box/info-box.d.ts +4 -0
- package/lib/info-box/info-box.variable.css +6 -2
- package/lib/input/index.d.ts +4 -4
- package/lib/input/index.js +1233 -2
- package/lib/input/input.css +21 -5
- package/lib/input/input.d.ts +3 -3
- package/lib/input/input.less +19 -0
- package/lib/input/input.variable.css +27 -7
- package/lib/link/index.js +160 -1
- package/lib/link/link.variable.css +6 -2
- package/lib/loading/index.d.ts +3 -3
- package/lib/loading/index.js +381 -1
- package/lib/loading/loading.css +9 -9
- package/lib/loading/loading.d.ts +1 -1
- package/lib/loading/loading.less +14 -9
- package/lib/loading/loading.variable.css +15 -11
- package/lib/locale/index.js +477 -1
- package/lib/locale/lang/en.d.ts +6 -0
- package/lib/menu/index.js +724 -1
- package/lib/menu/menu.variable.css +6 -2
- package/lib/menu/submenu.variable.css +6 -2
- package/lib/message/index.js +1795 -2
- package/lib/message/message.variable.css +6 -2
- package/lib/modal/index.js +396 -1
- package/lib/modal/modal.variable.css +6 -2
- package/lib/navigation/index.js +367 -1
- package/lib/navigation/navigation.variable.css +6 -2
- package/lib/notify/index.js +397 -1
- package/lib/notify/notify.css +6 -6
- package/lib/notify/notify.less +6 -6
- package/lib/notify/notify.variable.css +12 -8
- package/lib/overflow-title/components/overflow-title.d.ts +0 -1
- package/lib/overflow-title/index.js +285 -1
- package/lib/pagination/index.d.ts +4 -4
- package/lib/pagination/index.js +880 -1
- package/lib/pagination/pagination.css +1 -0
- package/lib/pagination/pagination.d.ts +3 -3
- package/lib/pagination/pagination.less +1 -0
- package/lib/pagination/pagination.variable.css +7 -2
- package/lib/plugin-popover/index.js +3833 -1
- package/lib/plugins/index.js +63 -1
- package/lib/pop-confirm/index.d.ts +42 -3
- package/lib/pop-confirm/index.js +281 -1
- package/lib/pop-confirm/pop-confirm.css +4 -4
- package/lib/pop-confirm/pop-confirm.d.ts +14 -1
- package/lib/pop-confirm/pop-confirm.less +4 -4
- package/lib/pop-confirm/pop-confirm.variable.css +10 -6
- package/lib/popover/index.js +3841 -1
- package/lib/popover/popover.css +1 -1
- package/lib/popover/popover.less +1 -1
- package/lib/popover/popover.variable.css +7 -3
- package/lib/popover2/index.js +107 -1
- package/lib/preset.d.ts +12 -0
- package/lib/preset.js +93 -1
- package/lib/process/index.js +759 -2
- package/lib/process/process.variable.css +6 -2
- package/lib/progress/index.d.ts +4 -4
- package/lib/progress/index.js +431 -1
- package/lib/progress/progress.css +7 -3
- package/lib/progress/progress.d.ts +3 -3
- package/lib/progress/progress.less +8 -3
- package/lib/progress/progress.variable.css +13 -5
- package/lib/radio/common.d.ts +1 -0
- package/lib/radio/index.d.ts +8 -2
- package/lib/radio/index.js +635 -1
- package/lib/radio/radio-button.d.ts +4 -3
- package/lib/radio/radio-group.d.ts +3 -0
- package/lib/radio/radio.css +26 -12
- package/lib/radio/radio.d.ts +1 -0
- package/lib/radio/radio.less +42 -8
- package/lib/radio/radio.variable.css +26 -8
- package/lib/rate/index.d.ts +4 -4
- package/lib/rate/index.js +354 -1
- package/lib/rate/rate.d.ts +2 -2
- package/lib/rate/rate.variable.css +6 -2
- package/lib/rate/star.css +3 -0
- package/lib/rate/star.less +3 -0
- package/lib/rate/star.variable.css +9 -2
- package/lib/resize-layout/index.js +429 -1
- package/lib/resize-layout/resize-layout.css +2 -2
- package/lib/resize-layout/resize-layout.less +2 -2
- package/lib/resize-layout/resize-layout.variable.css +8 -4
- package/lib/search-select/index.js +2729 -2
- package/lib/search-select/search-select.css +2 -4
- package/lib/search-select/search-select.less +10 -12
- package/lib/search-select/search-select.variable.css +8 -6
- package/lib/select/common.d.ts +3 -1
- package/lib/select/index.d.ts +96 -30
- package/lib/select/index.js +2384 -2
- package/lib/select/option.d.ts +1 -0
- package/lib/select/select.css +3 -0
- package/lib/select/select.d.ts +40 -14
- package/lib/select/select.less +3 -0
- package/lib/select/select.variable.css +9 -2
- package/lib/select/selectTagInput.d.ts +2 -0
- package/lib/select/type.d.ts +3 -0
- package/lib/shared/index.js +2690 -1
- package/lib/shared/vue-types.d.ts +1 -1
- package/lib/sideslider/index.js +704 -2
- package/lib/sideslider/sideslider.variable.css +6 -2
- package/lib/slider/index.js +1297 -2
- package/lib/slider/slider.css +2 -0
- package/lib/slider/slider.less +2 -0
- package/lib/slider/slider.variable.css +8 -2
- package/lib/steps/index.d.ts +4 -4
- package/lib/steps/index.js +825 -2
- package/lib/steps/steps.css +18 -6
- package/lib/steps/steps.d.ts +3 -3
- package/lib/steps/steps.less +26 -5
- package/lib/steps/steps.variable.css +24 -8
- package/lib/styles/index.d.ts +1 -0
- package/lib/styles/mixins/animate.variable.css +6 -2
- package/lib/styles/mixins/popper.variable.css +6 -2
- package/lib/styles/mixins/scroll.variable.css +6 -2
- package/lib/styles/reset.variable.css +6 -2
- package/lib/styles/themes/themes.less +7 -3
- package/lib/swiper/index.js +336 -1
- package/lib/swiper/swiper.variable.css +6 -2
- package/lib/switcher/index.d.ts +4 -4
- package/lib/switcher/index.js +277 -1
- package/lib/switcher/switcher.d.ts +3 -3
- package/lib/switcher/switcher.variable.css +6 -2
- package/lib/tab/index.js +914 -1
- package/lib/tab/tab.variable.css +6 -2
- package/lib/table/components/table-column.d.ts +6 -5
- package/lib/table/index.d.ts +57 -7
- package/lib/table/index.js +6510 -1
- package/lib/table/plugins/body-empty.d.ts +1 -1
- package/lib/table/plugins/head-filter.css +1 -28
- package/lib/table/plugins/head-filter.less +2 -34
- package/lib/table/plugins/head-filter.variable.css +7 -30
- package/lib/table/plugins/head-sort.variable.css +6 -2
- package/lib/table/plugins/settings.d.ts +0 -7
- package/lib/table/plugins/settings.variable.css +6 -2
- package/lib/table/plugins/use-column-resize.d.ts +1 -1
- package/lib/table/plugins/use-head-cell.d.ts +7 -0
- package/lib/table/plugins/use-pagination.d.ts +2 -1
- package/lib/table/props.d.ts +2 -1
- package/lib/table/table.css +51 -59
- package/lib/table/table.d.ts +1 -1
- package/lib/table/table.less +28 -22
- package/lib/table/table.variable.css +57 -61
- package/lib/table/use-attributes.d.ts +5 -1
- package/lib/table/use-column.d.ts +87 -0
- package/lib/table/use-common.d.ts +0 -1
- package/lib/table/use-render.d.ts +1 -1
- package/lib/table/utils.d.ts +6 -4
- package/lib/table-column/index.d.ts +160 -10
- package/lib/table-column/index.js +775 -1
- package/lib/tag/index.d.ts +4 -21
- package/lib/tag/index.js +229 -1
- package/lib/tag/tag.css +14 -10
- package/lib/tag/tag.d.ts +2 -12
- package/lib/tag/tag.less +31 -27
- package/lib/tag/tag.variable.css +20 -12
- package/lib/tag-input/index.d.ts +3 -0
- package/lib/tag-input/index.js +1674 -1
- package/lib/tag-input/list-tag-render.d.ts +11 -0
- package/lib/tag-input/tag-input.d.ts +1 -0
- package/lib/tag-input/tag-input.variable.css +6 -2
- package/lib/time-picker/index.d.ts +9 -3
- package/lib/time-picker/index.js +71 -1
- package/lib/time-picker/time-picker.css +4 -3
- package/lib/time-picker/time-picker.less +5 -9
- package/lib/time-picker/time-picker.variable.css +10 -5
- package/lib/timeline/index.js +241 -1
- package/lib/timeline/timeline.variable.css +6 -2
- package/lib/transfer/index.js +673 -1
- package/lib/transfer/transfer.css +2 -2
- package/lib/transfer/transfer.less +2 -2
- package/lib/transfer/transfer.variable.css +8 -4
- package/lib/tree/index.d.ts +21 -33
- package/lib/tree/index.js +2584 -1
- package/lib/tree/props.d.ts +4 -8
- package/lib/tree/tree.css +13 -1
- package/lib/tree/tree.d.ts +15 -19
- package/lib/tree/tree.variable.css +19 -3
- package/lib/tree/use-empty.d.ts +1 -3
- package/lib/tree/util.d.ts +1 -0
- package/lib/upload/index.js +2874 -2
- package/lib/upload/upload.type.d.ts +1 -1
- package/lib/upload/upload.variable.css +6 -2
- package/lib/upload/use-file-handler.d.ts +2 -2
- package/lib/virtual-render/index.js +901 -1
- package/lib/virtual-render/use-fix-top.d.ts +18 -0
- package/lib/virtual-render/v-virtual-render.d.ts +6 -1
- package/lib/virtual-render/virtual-render.variable.css +6 -2
- package/package.json +17 -4
- package/lib/cascader/index.js.LICENSE.txt +0 -1
- package/lib/dialog/index.js.LICENSE.txt +0 -1
- package/lib/directives/index.js.LICENSE.txt +0 -14
- package/lib/info-box/index.js.LICENSE.txt +0 -1
- package/lib/input/index.js.LICENSE.txt +0 -1
- package/lib/message/index.js.LICENSE.txt +0 -6
- package/lib/process/index.js.LICENSE.txt +0 -1
- package/lib/search-select/index.js.LICENSE.txt +0 -1
- package/lib/select/index.js.LICENSE.txt +0 -1
- package/lib/sideslider/index.js.LICENSE.txt +0 -1
- package/lib/slider/index.js.LICENSE.txt +0 -1
- package/lib/steps/index.js.LICENSE.txt +0 -1
- package/lib/table/render.d.ts +0 -130
- package/lib/upload/index.js.LICENSE.txt +0 -1
- /package/lib/overflow-title/{overflow.css → overflow-title.css} +0 -0
- /package/lib/overflow-title/{overflow.less → overflow-title.less} +0 -0
- /package/lib/overflow-title/{overflow.variable.css → overflow-title.variable.css} +0 -0
package/lib/info-box/index.js
CHANGED
@@ -1,2 +1,1161 @@
|
|
1
|
-
|
2
|
-
import*as e from"../shared";import*as t from"vue";import*as o from"../config-provider";import*as n from"../button";import*as r from"../icon";import*as i from"../modal";var a={7609:(e,t,o)=>{var n=o(7425).default;function r(){e.exports=r=function(){return t},e.exports.__esModule=!0,e.exports.default=e.exports;var t={},o=Object.prototype,i=o.hasOwnProperty,a=Object.defineProperty||function(e,t,o){e[t]=o.value},l="function"==typeof Symbol?Symbol:{},c=l.iterator||"@@iterator",u=l.asyncIterator||"@@asyncIterator",s=l.toStringTag||"@@toStringTag";function f(e,t,o){return Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch(e){f=function(e,t,o){return e[t]=o}}function d(e,t,o,n){var r=t&&t.prototype instanceof h?t:h,i=Object.create(r.prototype),l=new P(n||[]);return a(i,"_invoke",{value:C(e,o,l)}),i}function p(e,t,o){try{return{type:"normal",arg:e.call(t,o)}}catch(e){return{type:"throw",arg:e}}}t.wrap=d;var v={};function h(){}function m(){}function y(){}var g={};f(g,c,(function(){return this}));var x=Object.getPrototypeOf,w=x&&x(x(k([])));w&&w!==o&&i.call(w,c)&&(g=w);var b=y.prototype=h.prototype=Object.create(g);function T(e){["next","throw","return"].forEach((function(t){f(e,t,(function(e){return this._invoke(t,e)}))}))}function N(e,t){function o(r,a,l,c){var u=p(e[r],e,a);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==n(f)&&i.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,l,c)}),(function(e){o("throw",e,l,c)})):t.resolve(f).then((function(e){s.value=e,l(s)}),(function(e){return o("throw",e,l,c)}))}c(u.arg)}var r;a(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,r){o(e,n,t,r)}))}return r=r?r.then(i,i):i()}})}function C(e,t,o){var n="suspendedStart";return function(r,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===r)throw i;return{value:void 0,done:!0}}for(o.method=r,o.arg=i;;){var a=o.delegate;if(a){var l=S(a,o);if(l){if(l===v)continue;return l}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===n)throw n="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);n="executing";var c=p(e,t,o);if("normal"===c.type){if(n=o.done?"completed":"suspendedYield",c.arg===v)continue;return{value:c.arg,done:o.done}}"throw"===c.type&&(n="completed",o.method="throw",o.arg=c.arg)}}}function S(e,t){var o=t.method,n=e.iterator[o];if(void 0===n)return t.delegate=null,"throw"===o&&e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method)||"return"!==o&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+o+"' method")),v;var r=p(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,v;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,v):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,v)}function L(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(L,this),this.reset(!0)}function k(e){if(e){var t=e[c];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,n=function t(){for(;++o<e.length;)if(i.call(e,o))return t.value=e[o],t.done=!1,t;return t.value=void 0,t.done=!0,t};return n.next=n}}return{next:O}}function O(){return{value:void 0,done:!0}}return m.prototype=y,a(b,"constructor",{value:y,configurable:!0}),a(y,"constructor",{value:m,configurable:!0}),m.displayName=f(y,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,f(e,s,"GeneratorFunction")),e.prototype=Object.create(b),e},t.awrap=function(e){return{__await:e}},T(N.prototype),f(N.prototype,u,(function(){return this})),t.AsyncIterator=N,t.async=function(e,o,n,r,i){void 0===i&&(i=Promise);var a=new N(d(e,o,n,r),i);return t.isGeneratorFunction(o)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},T(b),f(b,s,"Generator"),f(b,c,(function(){return this})),f(b,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),o=[];for(var n in t)o.push(n);return o.reverse(),function e(){for(;o.length;){var n=o.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=k,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&i.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function o(o,n){return a.type="throw",a.arg=e,t.next=o,n&&(t.method="next",t.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n],a=r.completion;if("root"===r.tryLoc)return o("end");if(r.tryLoc<=this.prev){var l=i.call(r,"catchLoc"),c=i.call(r,"finallyLoc");if(l&&c){if(this.prev<r.catchLoc)return o(r.catchLoc,!0);if(this.prev<r.finallyLoc)return o(r.finallyLoc)}else if(l){if(this.prev<r.catchLoc)return o(r.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<r.finallyLoc)return o(r.finallyLoc)}}}},abrupt:function(e,t){for(var o=this.tryEntries.length-1;o>=0;--o){var n=this.tryEntries[o];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var r=n;break}}r&&("break"===e||"continue"===e)&&r.tryLoc<=t&&t<=r.finallyLoc&&(r=null);var a=r?r.completion:{};return a.type=e,a.arg=t,r?(this.method="next",this.next=r.finallyLoc,v):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var o=this.tryEntries[t];if(o.finallyLoc===e)return this.complete(o.completion,o.afterLoc),E(o),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var o=this.tryEntries[t];if(o.tryLoc===e){var n=o.completion;if("throw"===n.type){var r=n.arg;E(o)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,o){return this.delegate={iterator:k(e),resultName:t,nextLoc:o},"next"===this.method&&(this.arg=void 0),v}},t}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports},7425:e=>{function t(o){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(o)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},2841:(e,t,o)=>{var n=o(7609)();e.exports=n;try{regeneratorRuntime=n}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}}},l={};function c(e){var t=l[e];if(void 0!==t)return t.exports;var o=l[e]={exports:{}};return a[e](o,o.exports,c),o.exports}c.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return c.d(t,{a:t}),t},c.d=(e,t)=>{for(var o in t)c.o(t,o)&&!c.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},c.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var u={};(()=>{c.d(u,{Z:()=>T});const a=(l={AlignEnum:()=>e.AlignEnum,PropTypes:()=>e.PropTypes,ThemeEnum:()=>e.ThemeEnum,alignType:()=>e.alignType,dialogTypeUnion:()=>e.dialogTypeUnion,withInstall:()=>e.withInstall},s={},c.d(s,l),s);var l,s;function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}var d=c(2841),p=c.n(d);function v(e,t,o,n){return new(o||(o=Promise))((function(r,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function l(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof o?t:new o((function(e){e(t)}))).then(a,l)}c((n=n.apply(e,t||[])).next())}))}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;const h=(e=>{var t={};return c.d(t,e),t})({Fragment:()=>t.Fragment,computed:()=>t.computed,createApp:()=>t.createApp,createVNode:()=>t.createVNode,defineComponent:()=>t.defineComponent,h:()=>t.h,isVNode:()=>t.isVNode,mergeProps:()=>t.mergeProps,onBeforeUnmount:()=>t.onBeforeUnmount,onMounted:()=>t.onMounted,reactive:()=>t.reactive,ref:()=>t.ref,shallowRef:()=>t.shallowRef,watch:()=>t.watch}),m=(e=>{var t={};return c.d(t,e),t})({useLocale:()=>o.useLocale,usePrefix:()=>o.usePrefix}),y=(e=>{var t={};return c.d(t,e),t})({default:()=>n.default}),g=(e=>{var t={};return c.d(t,e),t})({Close:()=>r.Close,Error:()=>r.Error,Spinner:()=>r.Spinner,Success:()=>r.Success,Warn:()=>r.Warn}),x=(e=>{var t={};return c.d(t,e),t})({default:()=>i.default,propsMixin:()=>i.propsMixin}),w=Object.assign(Object.assign({},x.propsMixin),{width:a.PropTypes.oneOfType([String,Number]).def(""),height:a.PropTypes.oneOfType([String,Number]).def(""),confirmText:a.PropTypes.string,cancelText:a.PropTypes.string,prevText:a.PropTypes.string,nextText:a.PropTypes.string,current:a.PropTypes.number.def(1),totalStep:a.PropTypes.number,title:a.PropTypes.string.def("title"),headerAlign:(0,a.alignType)().def(a.AlignEnum.LEFT),footerAlign:(0,a.alignType)().def(a.AlignEnum.RIGHT),theme:a.PropTypes.theme().def(a.ThemeEnum.PRIMARY),dialogType:(0,a.dialogTypeUnion)(),isLoading:a.PropTypes.bool.def(!1)}),b=(0,h.defineComponent)({name:"Dialog",components:{BkModal:x.default,BkButton:y.default},props:w,emits:["closed","update:isShow","confirm","prev","next","value-change"],setup:function(e,t){var o=this,n=t.emit,r=(0,m.useLocale)("dialog"),i=(0,h.computed)((function(){return void 0===e.confirmText?r.value.ok:e.confirmText})),a=(0,h.computed)((function(){return void 0===e.cancelText?r.value.cancel:e.cancelText})),l=(0,h.computed)((function(){return void 0===e.prevText?r.value.prev:e.prevText})),c=(0,h.computed)((function(){return void 0===e.nextText?r.value.next:e.nextText})),u=(0,h.reactive)({positionX:0,positionY:0,moveStyle:{top:"",left:""}}),s=(0,h.ref)(e.isShow);(0,h.onMounted)((function(){e.escClose&&addEventListener("keydown",y)})),(0,h.onBeforeUnmount)((function(){e.escClose&&removeEventListener("keydown",y)})),(0,h.watch)((function(){return e.isShow}),(function(e){e?s.value=!0:setTimeout((function(){u.moveStyle={top:"50%",left:"50%"},u.positionX=0,u.positionY=0,s.value=!1}),250),n("value-change",e)}));var f=function(){return v(o,void 0,void 0,p().mark((function t(){var o;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o=!0,"function"!=typeof e.beforeClose){t.next=5;break}return t.next=4,e.beforeClose();case 4:o=t.sent;case 5:o&&(n("update:isShow",!1),n("closed"),s.value=!1);case 6:case"end":return t.stop()}}),t)})))},d=(0,h.computed)((function(){return["process","operation","confirm"].includes(e.dialogType)})),y=function(t){e.isShow&&e.closeIcon&&27===t.keyCode&&f()},g=(0,m.usePrefix)().resolveClassName;return{data:u,handleClose:f,handleConfirm:function(){n("update:isShow",!1),n("confirm")},escCloseHandler:y,moveHandler:function(t){if(e.fullscreen)return!1;if(!e.draggable)return!1;var o,n,r=t.target,i=t.currentTarget.parentNode.parentNode.offsetHeight,a=t.currentTarget.parentNode.parentNode.offsetWidth;0!==u.positionX&&0!==u.positionY?(o=t.clientX-u.positionX,n=t.clientY-u.positionY):(o=t.clientX-r.offsetLeft,n=t.clientY-r.offsetTop),document.onmousemove=function(e){var t=window.innerWidth-a,r=window.innerHeight-i,l=e.clientX-o,c=e.clientY-n;t/2-l<=0?l=t/2:t/2+l<=0&&(l=-t/2),r/2-c<=0?c=r/2:r/2+c<=0&&(c=-r/2),u.positionX=l,u.positionY=c,u.moveStyle.left="calc(50% + ".concat(l,"px)"),u.moveStyle.top="calc(50% + ".concat(c,"px)")},document.onmouseup=function(){document.onmousemove=null,document.onmouseup=null}},handlePrevStep:function(){n("prev")},handleNextStep:function(){n("next")},hasFooter:d,isModalShow:s,localConfirmText:i,localCancelText:a,localPrevText:l,localNextText:c,resolveClassName:g}},render:function(){var e,t=this,o={header:function(){var e,o,n,r,i,a;return[(0,h.createVNode)("div",{class:[t.resolveClassName("dialog-tool"),t.fullscreen||!t.draggable?"":"move",t.draggable?"content-dragging":""],onMousedown:t.moveHandler},[null!==(n=null===(o=(e=t.$slots).tools)||void 0===o?void 0:o.call(e))&&void 0!==n?n:""]),(0,h.createVNode)("div",{class:t.resolveClassName("dialog-header")},[(0,h.createVNode)("div",{class:t.resolveClassName("header-icon")},[t.infoType?{loading:(0,h.createVNode)(g.Spinner,{class:[t.resolveClassName("info-icon"),"primary"]},null),warning:(0,h.createVNode)(g.Warn,{class:[t.resolveClassName("info-icon"),"warning"]},null),success:(0,h.createVNode)(g.Success,{class:[t.resolveClassName("info-icon"),"success"]},null),danger:(0,h.createVNode)(g.Close,{class:[t.resolveClassName("info-icon"),"danger"]},null)}[t.infoType]:(0,h.createVNode)("slot",{name:"info-icon"},null)]),(0,h.createVNode)("span",{class:t.resolveClassName("dialog-title"),style:"text-align: ".concat(t.headerAlign)},[null!==(a=null===(i=(r=t.$slots).header)||void 0===i?void 0:i.call(r))&&void 0!==a?a:t.title])])]},default:function(){var e,o,n;return null!==(n=null===(o=(e=t.$slots).default)||void 0===o?void 0:o.call(e))&&void 0!==n?n:"default"},footer:function(){var e,o,n,r,i,a,l,c,u;return(0,h.createVNode)("div",{class:t.resolveClassName("dialog-footer"),style:"text-align: ".concat(t.footerAlign)},["process"===t.dialogType?null!==(n=null===(o=(e=t.$slots).footer)||void 0===o?void 0:o.call(e))&&void 0!==n?n:(0,h.createVNode)(h.Fragment,null,[1===t.current?"":(0,h.createVNode)(y.default,{class:t.resolveClassName("dialog-perv"),onClick:t.handlePrevStep},{default:function(){return[t.localPrevText]}}),t.current===t.totalStep?"":(0,h.createVNode)(y.default,{class:t.resolveClassName("dialog-next"),onClick:t.handleNextStep},{default:function(){return[t.localNextText]}}),t.current===t.totalStep?(0,h.createVNode)(y.default,{onClick:t.handleConfirm,theme:t.theme,loading:t.isLoading},{default:function(){return[t.localConfirmText]}}):"",(0,h.createVNode)(y.default,{class:t.resolveClassName("dialog-cancel"),onClick:t.handleClose,disabled:t.isLoading},{default:function(){return[t.localCancelText]}})]):"","operation"===t.dialogType?null!==(a=null===(i=(r=t.$slots).footer)||void 0===i?void 0:i.call(r))&&void 0!==a?a:(0,h.createVNode)(h.Fragment,null,[(0,h.createVNode)(y.default,{onClick:t.handleConfirm,theme:t.theme,loading:t.isLoading},{default:function(){return[t.localConfirmText]}}),(0,h.createVNode)(y.default,{class:t.resolveClassName("dialog-cancel"),onClick:t.handleClose,disabled:t.isLoading},{default:function(){return[t.localCancelText]}})]):"","confirm"===t.dialogType?null!==(u=null===(c=(l=t.$slots).footer)||void 0===c?void 0:c.call(l))&&void 0!==u?u:(0,h.createVNode)(h.Fragment,null,[(0,h.createVNode)(y.default,{onClick:t.handleConfirm,theme:t.theme,loading:t.isLoading},{default:function(){return[t.localConfirmText]}})]):""])},close:function(){return(0,h.createVNode)(g.Error,{onClick:t.handleClose},null)}},n="".concat(this.resolveClassName("dialog-wrapper ")," ").concat(this.scrollable?"scroll-able":""," ").concat(this.multiInstance?"multi-instance":""," ").concat(this.hasFooter?"has-footer":"no-footer");return(0,h.createVNode)(x.default,(0,h.mergeProps)(this.$props,{class:n,onClose:this.handleClose,isShow:this.isModalShow,style:this.data.moveStyle}),"function"==typeof(e=o)||"[object Object]"===Object.prototype.toString.call(e)&&!(0,h.isVNode)(e)?o:{default:function(){return[o]}})}}),T=(0,a.withInstall)((function(e){var t=document.createElement("div"),o=(0,h.ref)(!1),n=(0,h.shallowRef)(e),r=(0,h.defineComponent)({name:"DialogConfirm",setup:function(e,t){var r=this,i=t.expose;(0,h.onMounted)((function(){(document.activeElement||document.body).blur(),!1!==n.value.isShow&&(o.value=!0)}));var a=function(){return v(r,void 0,void 0,p().mark((function e(){var t,r;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("function"!=typeof(null===(t=n.value)||void 0===t?void 0:t.onClosed)){e.next=3;break}return e.next=3,null===(r=n.value)||void 0===r?void 0:r.onClosed();case 3:o.value=!1;case 4:case"end":return e.stop()}}),e)})))},l=function(){return v(r,void 0,void 0,p().mark((function e(){var t,r;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("function"!=typeof(null===(t=n.value)||void 0===t?void 0:t.onConfirm)){e.next=3;break}return e.next=3,null===(r=n.value)||void 0===r?void 0:r.onConfirm();case 3:o.value=!1;case 4:case"end":return e.stop()}}),e)})))};i({update:function(e){n.value=Object.assign(Object.assign({},n.value),e)}});var c=(0,m.usePrefix)().resolveClassName;return function(){return(0,h.createVNode)(b,Object.assign(Object.assign({class:c("info-wrapper"),headerAlign:"center",footerAlign:"center",transfer:!0,fullscreen:!1},n.value),{isShow:o.value,onClosed:a,onConfirm:l}),function(){var e=[],t=[];if(n.value.subTitle)switch(f(n.value.subTitle)){case"string":default:e.push(n.value.subTitle);break;case"function":e.push(n.value.subTitle())}return e.length&&t.push((0,h.h)("div",{class:c("info-sub-title"),style:"text-Align:".concat(n.value.contentAlign||"center")},e)),t}())}}}),i=(0,h.createApp)(r).mount(t);return{show:function(){o.value=!0},hide:function(){o.value=!1},update:function(e){i.update(e)},destroy:function(){i.unmount(),i=null}}}))})();var s=u.Z;export{s as default};
|
1
|
+
import * as __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__ from "../shared";
|
2
|
+
import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
|
3
|
+
import * as __WEBPACK_EXTERNAL_MODULE__config_provider_9d0186d9__ from "../config-provider";
|
4
|
+
import * as __WEBPACK_EXTERNAL_MODULE__button_59c00871__ from "../button";
|
5
|
+
import * as __WEBPACK_EXTERNAL_MODULE__icon_85385c3e__ from "../icon";
|
6
|
+
import * as __WEBPACK_EXTERNAL_MODULE__modal_4c8fdca5__ from "../modal";
|
7
|
+
/******/ var __webpack_modules__ = ({
|
8
|
+
|
9
|
+
/***/ 7609:
|
10
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
11
|
+
|
12
|
+
var _typeof = (__webpack_require__(7425)["default"]);
|
13
|
+
function _regeneratorRuntime() {
|
14
|
+
"use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
15
|
+
module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
|
16
|
+
return exports;
|
17
|
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
18
|
+
var exports = {},
|
19
|
+
Op = Object.prototype,
|
20
|
+
hasOwn = Op.hasOwnProperty,
|
21
|
+
defineProperty = Object.defineProperty || function (obj, key, desc) {
|
22
|
+
obj[key] = desc.value;
|
23
|
+
},
|
24
|
+
$Symbol = "function" == typeof Symbol ? Symbol : {},
|
25
|
+
iteratorSymbol = $Symbol.iterator || "@@iterator",
|
26
|
+
asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
|
27
|
+
toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
28
|
+
function define(obj, key, value) {
|
29
|
+
return Object.defineProperty(obj, key, {
|
30
|
+
value: value,
|
31
|
+
enumerable: !0,
|
32
|
+
configurable: !0,
|
33
|
+
writable: !0
|
34
|
+
}), obj[key];
|
35
|
+
}
|
36
|
+
try {
|
37
|
+
define({}, "");
|
38
|
+
} catch (err) {
|
39
|
+
define = function define(obj, key, value) {
|
40
|
+
return obj[key] = value;
|
41
|
+
};
|
42
|
+
}
|
43
|
+
function wrap(innerFn, outerFn, self, tryLocsList) {
|
44
|
+
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
|
45
|
+
generator = Object.create(protoGenerator.prototype),
|
46
|
+
context = new Context(tryLocsList || []);
|
47
|
+
return defineProperty(generator, "_invoke", {
|
48
|
+
value: makeInvokeMethod(innerFn, self, context)
|
49
|
+
}), generator;
|
50
|
+
}
|
51
|
+
function tryCatch(fn, obj, arg) {
|
52
|
+
try {
|
53
|
+
return {
|
54
|
+
type: "normal",
|
55
|
+
arg: fn.call(obj, arg)
|
56
|
+
};
|
57
|
+
} catch (err) {
|
58
|
+
return {
|
59
|
+
type: "throw",
|
60
|
+
arg: err
|
61
|
+
};
|
62
|
+
}
|
63
|
+
}
|
64
|
+
exports.wrap = wrap;
|
65
|
+
var ContinueSentinel = {};
|
66
|
+
function Generator() {}
|
67
|
+
function GeneratorFunction() {}
|
68
|
+
function GeneratorFunctionPrototype() {}
|
69
|
+
var IteratorPrototype = {};
|
70
|
+
define(IteratorPrototype, iteratorSymbol, function () {
|
71
|
+
return this;
|
72
|
+
});
|
73
|
+
var getProto = Object.getPrototypeOf,
|
74
|
+
NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
75
|
+
NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
|
76
|
+
var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
|
77
|
+
function defineIteratorMethods(prototype) {
|
78
|
+
["next", "throw", "return"].forEach(function (method) {
|
79
|
+
define(prototype, method, function (arg) {
|
80
|
+
return this._invoke(method, arg);
|
81
|
+
});
|
82
|
+
});
|
83
|
+
}
|
84
|
+
function AsyncIterator(generator, PromiseImpl) {
|
85
|
+
function invoke(method, arg, resolve, reject) {
|
86
|
+
var record = tryCatch(generator[method], generator, arg);
|
87
|
+
if ("throw" !== record.type) {
|
88
|
+
var result = record.arg,
|
89
|
+
value = result.value;
|
90
|
+
return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
|
91
|
+
invoke("next", value, resolve, reject);
|
92
|
+
}, function (err) {
|
93
|
+
invoke("throw", err, resolve, reject);
|
94
|
+
}) : PromiseImpl.resolve(value).then(function (unwrapped) {
|
95
|
+
result.value = unwrapped, resolve(result);
|
96
|
+
}, function (error) {
|
97
|
+
return invoke("throw", error, resolve, reject);
|
98
|
+
});
|
99
|
+
}
|
100
|
+
reject(record.arg);
|
101
|
+
}
|
102
|
+
var previousPromise;
|
103
|
+
defineProperty(this, "_invoke", {
|
104
|
+
value: function value(method, arg) {
|
105
|
+
function callInvokeWithMethodAndArg() {
|
106
|
+
return new PromiseImpl(function (resolve, reject) {
|
107
|
+
invoke(method, arg, resolve, reject);
|
108
|
+
});
|
109
|
+
}
|
110
|
+
return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
111
|
+
}
|
112
|
+
});
|
113
|
+
}
|
114
|
+
function makeInvokeMethod(innerFn, self, context) {
|
115
|
+
var state = "suspendedStart";
|
116
|
+
return function (method, arg) {
|
117
|
+
if ("executing" === state) throw new Error("Generator is already running");
|
118
|
+
if ("completed" === state) {
|
119
|
+
if ("throw" === method) throw arg;
|
120
|
+
return doneResult();
|
121
|
+
}
|
122
|
+
for (context.method = method, context.arg = arg;;) {
|
123
|
+
var delegate = context.delegate;
|
124
|
+
if (delegate) {
|
125
|
+
var delegateResult = maybeInvokeDelegate(delegate, context);
|
126
|
+
if (delegateResult) {
|
127
|
+
if (delegateResult === ContinueSentinel) continue;
|
128
|
+
return delegateResult;
|
129
|
+
}
|
130
|
+
}
|
131
|
+
if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
|
132
|
+
if ("suspendedStart" === state) throw state = "completed", context.arg;
|
133
|
+
context.dispatchException(context.arg);
|
134
|
+
} else "return" === context.method && context.abrupt("return", context.arg);
|
135
|
+
state = "executing";
|
136
|
+
var record = tryCatch(innerFn, self, context);
|
137
|
+
if ("normal" === record.type) {
|
138
|
+
if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
|
139
|
+
return {
|
140
|
+
value: record.arg,
|
141
|
+
done: context.done
|
142
|
+
};
|
143
|
+
}
|
144
|
+
"throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
|
145
|
+
}
|
146
|
+
};
|
147
|
+
}
|
148
|
+
function maybeInvokeDelegate(delegate, context) {
|
149
|
+
var methodName = context.method,
|
150
|
+
method = delegate.iterator[methodName];
|
151
|
+
if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel;
|
152
|
+
var record = tryCatch(method, delegate.iterator, context.arg);
|
153
|
+
if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
|
154
|
+
var info = record.arg;
|
155
|
+
return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
|
156
|
+
}
|
157
|
+
function pushTryEntry(locs) {
|
158
|
+
var entry = {
|
159
|
+
tryLoc: locs[0]
|
160
|
+
};
|
161
|
+
1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
|
162
|
+
}
|
163
|
+
function resetTryEntry(entry) {
|
164
|
+
var record = entry.completion || {};
|
165
|
+
record.type = "normal", delete record.arg, entry.completion = record;
|
166
|
+
}
|
167
|
+
function Context(tryLocsList) {
|
168
|
+
this.tryEntries = [{
|
169
|
+
tryLoc: "root"
|
170
|
+
}], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
|
171
|
+
}
|
172
|
+
function values(iterable) {
|
173
|
+
if (iterable) {
|
174
|
+
var iteratorMethod = iterable[iteratorSymbol];
|
175
|
+
if (iteratorMethod) return iteratorMethod.call(iterable);
|
176
|
+
if ("function" == typeof iterable.next) return iterable;
|
177
|
+
if (!isNaN(iterable.length)) {
|
178
|
+
var i = -1,
|
179
|
+
next = function next() {
|
180
|
+
for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
|
181
|
+
return next.value = undefined, next.done = !0, next;
|
182
|
+
};
|
183
|
+
return next.next = next;
|
184
|
+
}
|
185
|
+
}
|
186
|
+
return {
|
187
|
+
next: doneResult
|
188
|
+
};
|
189
|
+
}
|
190
|
+
function doneResult() {
|
191
|
+
return {
|
192
|
+
value: undefined,
|
193
|
+
done: !0
|
194
|
+
};
|
195
|
+
}
|
196
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
|
197
|
+
value: GeneratorFunctionPrototype,
|
198
|
+
configurable: !0
|
199
|
+
}), defineProperty(GeneratorFunctionPrototype, "constructor", {
|
200
|
+
value: GeneratorFunction,
|
201
|
+
configurable: !0
|
202
|
+
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
|
203
|
+
var ctor = "function" == typeof genFun && genFun.constructor;
|
204
|
+
return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
|
205
|
+
}, exports.mark = function (genFun) {
|
206
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
|
207
|
+
}, exports.awrap = function (arg) {
|
208
|
+
return {
|
209
|
+
__await: arg
|
210
|
+
};
|
211
|
+
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
|
212
|
+
return this;
|
213
|
+
}), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
214
|
+
void 0 === PromiseImpl && (PromiseImpl = Promise);
|
215
|
+
var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
|
216
|
+
return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
|
217
|
+
return result.done ? result.value : iter.next();
|
218
|
+
});
|
219
|
+
}, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
|
220
|
+
return this;
|
221
|
+
}), define(Gp, "toString", function () {
|
222
|
+
return "[object Generator]";
|
223
|
+
}), exports.keys = function (val) {
|
224
|
+
var object = Object(val),
|
225
|
+
keys = [];
|
226
|
+
for (var key in object) keys.push(key);
|
227
|
+
return keys.reverse(), function next() {
|
228
|
+
for (; keys.length;) {
|
229
|
+
var key = keys.pop();
|
230
|
+
if (key in object) return next.value = key, next.done = !1, next;
|
231
|
+
}
|
232
|
+
return next.done = !0, next;
|
233
|
+
};
|
234
|
+
}, exports.values = values, Context.prototype = {
|
235
|
+
constructor: Context,
|
236
|
+
reset: function reset(skipTempReset) {
|
237
|
+
if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
|
238
|
+
},
|
239
|
+
stop: function stop() {
|
240
|
+
this.done = !0;
|
241
|
+
var rootRecord = this.tryEntries[0].completion;
|
242
|
+
if ("throw" === rootRecord.type) throw rootRecord.arg;
|
243
|
+
return this.rval;
|
244
|
+
},
|
245
|
+
dispatchException: function dispatchException(exception) {
|
246
|
+
if (this.done) throw exception;
|
247
|
+
var context = this;
|
248
|
+
function handle(loc, caught) {
|
249
|
+
return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
|
250
|
+
}
|
251
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
252
|
+
var entry = this.tryEntries[i],
|
253
|
+
record = entry.completion;
|
254
|
+
if ("root" === entry.tryLoc) return handle("end");
|
255
|
+
if (entry.tryLoc <= this.prev) {
|
256
|
+
var hasCatch = hasOwn.call(entry, "catchLoc"),
|
257
|
+
hasFinally = hasOwn.call(entry, "finallyLoc");
|
258
|
+
if (hasCatch && hasFinally) {
|
259
|
+
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
260
|
+
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
261
|
+
} else if (hasCatch) {
|
262
|
+
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
263
|
+
} else {
|
264
|
+
if (!hasFinally) throw new Error("try statement without catch or finally");
|
265
|
+
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
266
|
+
}
|
267
|
+
}
|
268
|
+
}
|
269
|
+
},
|
270
|
+
abrupt: function abrupt(type, arg) {
|
271
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
272
|
+
var entry = this.tryEntries[i];
|
273
|
+
if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
|
274
|
+
var finallyEntry = entry;
|
275
|
+
break;
|
276
|
+
}
|
277
|
+
}
|
278
|
+
finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
|
279
|
+
var record = finallyEntry ? finallyEntry.completion : {};
|
280
|
+
return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
|
281
|
+
},
|
282
|
+
complete: function complete(record, afterLoc) {
|
283
|
+
if ("throw" === record.type) throw record.arg;
|
284
|
+
return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
|
285
|
+
},
|
286
|
+
finish: function finish(finallyLoc) {
|
287
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
288
|
+
var entry = this.tryEntries[i];
|
289
|
+
if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
|
290
|
+
}
|
291
|
+
},
|
292
|
+
"catch": function _catch(tryLoc) {
|
293
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
294
|
+
var entry = this.tryEntries[i];
|
295
|
+
if (entry.tryLoc === tryLoc) {
|
296
|
+
var record = entry.completion;
|
297
|
+
if ("throw" === record.type) {
|
298
|
+
var thrown = record.arg;
|
299
|
+
resetTryEntry(entry);
|
300
|
+
}
|
301
|
+
return thrown;
|
302
|
+
}
|
303
|
+
}
|
304
|
+
throw new Error("illegal catch attempt");
|
305
|
+
},
|
306
|
+
delegateYield: function delegateYield(iterable, resultName, nextLoc) {
|
307
|
+
return this.delegate = {
|
308
|
+
iterator: values(iterable),
|
309
|
+
resultName: resultName,
|
310
|
+
nextLoc: nextLoc
|
311
|
+
}, "next" === this.method && (this.arg = undefined), ContinueSentinel;
|
312
|
+
}
|
313
|
+
}, exports;
|
314
|
+
}
|
315
|
+
module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
316
|
+
|
317
|
+
/***/ }),
|
318
|
+
|
319
|
+
/***/ 7425:
|
320
|
+
/***/ ((module) => {
|
321
|
+
|
322
|
+
function _typeof(obj) {
|
323
|
+
"@babel/helpers - typeof";
|
324
|
+
|
325
|
+
return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
326
|
+
return typeof obj;
|
327
|
+
} : function (obj) {
|
328
|
+
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
329
|
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj);
|
330
|
+
}
|
331
|
+
module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
332
|
+
|
333
|
+
/***/ }),
|
334
|
+
|
335
|
+
/***/ 2841:
|
336
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
337
|
+
|
338
|
+
// TODO(Babel 8): Remove this file.
|
339
|
+
|
340
|
+
var runtime = __webpack_require__(7609)();
|
341
|
+
module.exports = runtime;
|
342
|
+
|
343
|
+
// Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=
|
344
|
+
try {
|
345
|
+
regeneratorRuntime = runtime;
|
346
|
+
} catch (accidentalStrictMode) {
|
347
|
+
if (typeof globalThis === "object") {
|
348
|
+
globalThis.regeneratorRuntime = runtime;
|
349
|
+
} else {
|
350
|
+
Function("r", "regeneratorRuntime = r")(runtime);
|
351
|
+
}
|
352
|
+
}
|
353
|
+
|
354
|
+
|
355
|
+
/***/ })
|
356
|
+
|
357
|
+
/******/ });
|
358
|
+
/************************************************************************/
|
359
|
+
/******/ // The module cache
|
360
|
+
/******/ var __webpack_module_cache__ = {};
|
361
|
+
/******/
|
362
|
+
/******/ // The require function
|
363
|
+
/******/ function __webpack_require__(moduleId) {
|
364
|
+
/******/ // Check if module is in cache
|
365
|
+
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
366
|
+
/******/ if (cachedModule !== undefined) {
|
367
|
+
/******/ return cachedModule.exports;
|
368
|
+
/******/ }
|
369
|
+
/******/ // Create a new module (and put it into the cache)
|
370
|
+
/******/ var module = __webpack_module_cache__[moduleId] = {
|
371
|
+
/******/ // no module.id needed
|
372
|
+
/******/ // no module.loaded needed
|
373
|
+
/******/ exports: {}
|
374
|
+
/******/ };
|
375
|
+
/******/
|
376
|
+
/******/ // Execute the module function
|
377
|
+
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
378
|
+
/******/
|
379
|
+
/******/ // Return the exports of the module
|
380
|
+
/******/ return module.exports;
|
381
|
+
/******/ }
|
382
|
+
/******/
|
383
|
+
/************************************************************************/
|
384
|
+
/******/ /* webpack/runtime/compat get default export */
|
385
|
+
/******/ (() => {
|
386
|
+
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
387
|
+
/******/ __webpack_require__.n = (module) => {
|
388
|
+
/******/ var getter = module && module.__esModule ?
|
389
|
+
/******/ () => (module['default']) :
|
390
|
+
/******/ () => (module);
|
391
|
+
/******/ __webpack_require__.d(getter, { a: getter });
|
392
|
+
/******/ return getter;
|
393
|
+
/******/ };
|
394
|
+
/******/ })();
|
395
|
+
/******/
|
396
|
+
/******/ /* webpack/runtime/define property getters */
|
397
|
+
/******/ (() => {
|
398
|
+
/******/ // define getter functions for harmony exports
|
399
|
+
/******/ __webpack_require__.d = (exports, definition) => {
|
400
|
+
/******/ for(var key in definition) {
|
401
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
402
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
403
|
+
/******/ }
|
404
|
+
/******/ }
|
405
|
+
/******/ };
|
406
|
+
/******/ })();
|
407
|
+
/******/
|
408
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
409
|
+
/******/ (() => {
|
410
|
+
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
411
|
+
/******/ })();
|
412
|
+
/******/
|
413
|
+
/************************************************************************/
|
414
|
+
var __webpack_exports__ = {};
|
415
|
+
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
|
416
|
+
(() => {
|
417
|
+
|
418
|
+
// EXPORTS
|
419
|
+
__webpack_require__.d(__webpack_exports__, {
|
420
|
+
Z: () => (/* binding */ src)
|
421
|
+
});
|
422
|
+
|
423
|
+
;// CONCATENATED MODULE: external "../shared"
|
424
|
+
var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
425
|
+
var y = x => () => x
|
426
|
+
const external_shared_namespaceObject = x({ ["AlignEnum"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.AlignEnum, ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.PropTypes, ["ThemeEnum"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.ThemeEnum, ["alignType"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.alignType, ["dialogTypeUnion"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.dialogTypeUnion, ["withInstall"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.withInstall });
|
427
|
+
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
428
|
+
function _typeof(obj) {
|
429
|
+
"@babel/helpers - typeof";
|
430
|
+
|
431
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
432
|
+
return typeof obj;
|
433
|
+
} : function (obj) {
|
434
|
+
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
435
|
+
}, _typeof(obj);
|
436
|
+
}
|
437
|
+
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
438
|
+
|
439
|
+
function _toPrimitive(input, hint) {
|
440
|
+
if (_typeof(input) !== "object" || input === null) return input;
|
441
|
+
var prim = input[Symbol.toPrimitive];
|
442
|
+
if (prim !== undefined) {
|
443
|
+
var res = prim.call(input, hint || "default");
|
444
|
+
if (_typeof(res) !== "object") return res;
|
445
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
446
|
+
}
|
447
|
+
return (hint === "string" ? String : Number)(input);
|
448
|
+
}
|
449
|
+
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
450
|
+
|
451
|
+
|
452
|
+
function _toPropertyKey(arg) {
|
453
|
+
var key = _toPrimitive(arg, "string");
|
454
|
+
return _typeof(key) === "symbol" ? key : String(key);
|
455
|
+
}
|
456
|
+
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
457
|
+
|
458
|
+
function _defineProperty(obj, key, value) {
|
459
|
+
key = _toPropertyKey(key);
|
460
|
+
if (key in obj) {
|
461
|
+
Object.defineProperty(obj, key, {
|
462
|
+
value: value,
|
463
|
+
enumerable: true,
|
464
|
+
configurable: true,
|
465
|
+
writable: true
|
466
|
+
});
|
467
|
+
} else {
|
468
|
+
obj[key] = value;
|
469
|
+
}
|
470
|
+
return obj;
|
471
|
+
}
|
472
|
+
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
|
473
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
474
|
+
try {
|
475
|
+
var info = gen[key](arg);
|
476
|
+
var value = info.value;
|
477
|
+
} catch (error) {
|
478
|
+
reject(error);
|
479
|
+
return;
|
480
|
+
}
|
481
|
+
if (info.done) {
|
482
|
+
resolve(value);
|
483
|
+
} else {
|
484
|
+
Promise.resolve(value).then(_next, _throw);
|
485
|
+
}
|
486
|
+
}
|
487
|
+
function _asyncToGenerator(fn) {
|
488
|
+
return function () {
|
489
|
+
var self = this,
|
490
|
+
args = arguments;
|
491
|
+
return new Promise(function (resolve, reject) {
|
492
|
+
var gen = fn.apply(self, args);
|
493
|
+
function _next(value) {
|
494
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
495
|
+
}
|
496
|
+
function _throw(err) {
|
497
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
498
|
+
}
|
499
|
+
_next(undefined);
|
500
|
+
});
|
501
|
+
};
|
502
|
+
}
|
503
|
+
// EXTERNAL MODULE: ../../node_modules/@babel/runtime/regenerator/index.js
|
504
|
+
var regenerator = __webpack_require__(2841);
|
505
|
+
var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);
|
506
|
+
;// CONCATENATED MODULE: external "vue"
|
507
|
+
var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
508
|
+
var external_vue_y = x => () => x
|
509
|
+
const external_vue_namespaceObject = external_vue_x({ ["Fragment"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Fragment, ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createApp"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createApp, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["h"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.h, ["isVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.isVNode, ["mergeProps"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.mergeProps, ["onBeforeUnmount"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onBeforeUnmount, ["onMounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onMounted, ["reactive"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.reactive, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["shallowRef"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.shallowRef, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch });
|
510
|
+
;// CONCATENATED MODULE: external "../config-provider"
|
511
|
+
var external_config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
512
|
+
var external_config_provider_y = x => () => x
|
513
|
+
const external_config_provider_namespaceObject = external_config_provider_x({ ["useLocale"]: () => __WEBPACK_EXTERNAL_MODULE__config_provider_9d0186d9__.useLocale, ["usePrefix"]: () => __WEBPACK_EXTERNAL_MODULE__config_provider_9d0186d9__.usePrefix });
|
514
|
+
;// CONCATENATED MODULE: external "../button"
|
515
|
+
var external_button_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
516
|
+
var external_button_y = x => () => x
|
517
|
+
const external_button_namespaceObject = external_button_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE__button_59c00871__["default"] });
|
518
|
+
;// CONCATENATED MODULE: external "../icon"
|
519
|
+
var external_icon_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
520
|
+
var external_icon_y = x => () => x
|
521
|
+
const external_icon_namespaceObject = external_icon_x({ ["Close"]: () => __WEBPACK_EXTERNAL_MODULE__icon_85385c3e__.Close, ["Error"]: () => __WEBPACK_EXTERNAL_MODULE__icon_85385c3e__.Error, ["Spinner"]: () => __WEBPACK_EXTERNAL_MODULE__icon_85385c3e__.Spinner, ["Success"]: () => __WEBPACK_EXTERNAL_MODULE__icon_85385c3e__.Success, ["Warn"]: () => __WEBPACK_EXTERNAL_MODULE__icon_85385c3e__.Warn });
|
522
|
+
;// CONCATENATED MODULE: external "../modal"
|
523
|
+
var external_modal_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
524
|
+
var external_modal_y = x => () => x
|
525
|
+
const external_modal_namespaceObject = external_modal_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE__modal_4c8fdca5__["default"], ["propsMixin"]: () => __WEBPACK_EXTERNAL_MODULE__modal_4c8fdca5__.propsMixin });
|
526
|
+
;// CONCATENATED MODULE: ../../packages/dialog/src/props.ts
|
527
|
+
|
528
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
529
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
530
|
+
/*
|
531
|
+
* Tencent is pleased to support the open source community by making
|
532
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
533
|
+
*
|
534
|
+
* Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
|
535
|
+
*
|
536
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
537
|
+
*
|
538
|
+
* License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
|
539
|
+
*
|
540
|
+
* ---------------------------------------------------
|
541
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
|
542
|
+
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation
|
543
|
+
* the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
|
544
|
+
* to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
545
|
+
*
|
546
|
+
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of
|
547
|
+
* the Software.
|
548
|
+
*
|
549
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
|
550
|
+
* THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
551
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
|
552
|
+
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
553
|
+
* IN THE SOFTWARE.
|
554
|
+
*/
|
555
|
+
|
556
|
+
|
557
|
+
var props = _objectSpread(_objectSpread({}, external_modal_namespaceObject.propsMixin), {}, {
|
558
|
+
width: external_shared_namespaceObject.PropTypes.oneOfType([String, Number]).def(''),
|
559
|
+
height: external_shared_namespaceObject.PropTypes.oneOfType([String, Number]).def(''),
|
560
|
+
// 确认按钮文字
|
561
|
+
// confirmText: PropTypes.string.def('确定'),
|
562
|
+
confirmText: external_shared_namespaceObject.PropTypes.string,
|
563
|
+
// 取消按钮文字
|
564
|
+
// cancelText: PropTypes.string.def('取消'),
|
565
|
+
cancelText: external_shared_namespaceObject.PropTypes.string,
|
566
|
+
// 步骤按钮文字
|
567
|
+
// prevText: PropTypes.string.def('上一步'),
|
568
|
+
prevText: external_shared_namespaceObject.PropTypes.string,
|
569
|
+
// nextText: PropTypes.string.def('下一步'),
|
570
|
+
nextText: external_shared_namespaceObject.PropTypes.string,
|
571
|
+
// 当前步骤
|
572
|
+
current: external_shared_namespaceObject.PropTypes.number.def(1),
|
573
|
+
// 总步数
|
574
|
+
totalStep: external_shared_namespaceObject.PropTypes.number,
|
575
|
+
// 弹框的标题
|
576
|
+
title: external_shared_namespaceObject.PropTypes.string.def('title'),
|
577
|
+
// 显示 header 的位置
|
578
|
+
headerAlign: (0,external_shared_namespaceObject.alignType)().def(external_shared_namespaceObject.AlignEnum.LEFT),
|
579
|
+
// 显示 footer 的位置
|
580
|
+
footerAlign: (0,external_shared_namespaceObject.alignType)().def(external_shared_namespaceObject.AlignEnum.RIGHT),
|
581
|
+
// 颜色 按钮类型
|
582
|
+
theme: external_shared_namespaceObject.PropTypes.theme().def(external_shared_namespaceObject.ThemeEnum.PRIMARY),
|
583
|
+
// 对话框类型
|
584
|
+
dialogType: (0,external_shared_namespaceObject.dialogTypeUnion)(),
|
585
|
+
// 按钮loading
|
586
|
+
isLoading: external_shared_namespaceObject.PropTypes.bool.def(false)
|
587
|
+
});
|
588
|
+
/* harmony default export */ const src_props = (props);
|
589
|
+
;// CONCATENATED MODULE: ../../packages/dialog/src/dialog.tsx
|
590
|
+
|
591
|
+
|
592
|
+
|
593
|
+
/*
|
594
|
+
* Tencent is pleased to support the open source community by making
|
595
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
596
|
+
*
|
597
|
+
* Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
|
598
|
+
*
|
599
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
600
|
+
*
|
601
|
+
* License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
|
602
|
+
*
|
603
|
+
* ---------------------------------------------------
|
604
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
|
605
|
+
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation
|
606
|
+
* the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
|
607
|
+
* to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
608
|
+
*
|
609
|
+
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of
|
610
|
+
* the Software.
|
611
|
+
*
|
612
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
|
613
|
+
* THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
614
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
|
615
|
+
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
616
|
+
* IN THE SOFTWARE.
|
617
|
+
*/
|
618
|
+
|
619
|
+
|
620
|
+
|
621
|
+
|
622
|
+
|
623
|
+
|
624
|
+
function _isSlot(s) {
|
625
|
+
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !(0,external_vue_namespaceObject.isVNode)(s);
|
626
|
+
}
|
627
|
+
/* harmony default export */ const src_dialog = ((0,external_vue_namespaceObject.defineComponent)({
|
628
|
+
// eslint-disable-next-line vue/no-reserved-component-names
|
629
|
+
name: 'Dialog',
|
630
|
+
props: src_props,
|
631
|
+
emits: ['closed', 'update:isShow', 'confirm', 'prev', 'next', 'value-change'],
|
632
|
+
setup: function setup(props, _ref) {
|
633
|
+
var emit = _ref.emit;
|
634
|
+
var t = (0,external_config_provider_namespaceObject.useLocale)('dialog');
|
635
|
+
var localConfirmText = (0,external_vue_namespaceObject.computed)(function () {
|
636
|
+
if (props.confirmText === undefined) {
|
637
|
+
return t.value.ok;
|
638
|
+
}
|
639
|
+
return props.confirmText;
|
640
|
+
});
|
641
|
+
var localCancelText = (0,external_vue_namespaceObject.computed)(function () {
|
642
|
+
if (props.cancelText === undefined) {
|
643
|
+
return t.value.cancel;
|
644
|
+
}
|
645
|
+
return props.cancelText;
|
646
|
+
});
|
647
|
+
var localPrevText = (0,external_vue_namespaceObject.computed)(function () {
|
648
|
+
if (props.prevText === undefined) {
|
649
|
+
return t.value.prev;
|
650
|
+
}
|
651
|
+
return props.prevText;
|
652
|
+
});
|
653
|
+
var localNextText = (0,external_vue_namespaceObject.computed)(function () {
|
654
|
+
if (props.nextText === undefined) {
|
655
|
+
return t.value.next;
|
656
|
+
}
|
657
|
+
return props.nextText;
|
658
|
+
});
|
659
|
+
var data = (0,external_vue_namespaceObject.reactive)({
|
660
|
+
positionX: 0,
|
661
|
+
positionY: 0,
|
662
|
+
moveStyle: {
|
663
|
+
top: '',
|
664
|
+
left: ''
|
665
|
+
}
|
666
|
+
});
|
667
|
+
var isModalShow = (0,external_vue_namespaceObject.ref)(props.isShow);
|
668
|
+
(0,external_vue_namespaceObject.onMounted)(function () {
|
669
|
+
if (props.escClose) {
|
670
|
+
addEventListener('keydown', escCloseHandler);
|
671
|
+
}
|
672
|
+
});
|
673
|
+
(0,external_vue_namespaceObject.onBeforeUnmount)(function () {
|
674
|
+
if (props.escClose) {
|
675
|
+
removeEventListener('keydown', escCloseHandler);
|
676
|
+
}
|
677
|
+
});
|
678
|
+
(0,external_vue_namespaceObject.watch)(function () {
|
679
|
+
return props.isShow;
|
680
|
+
}, function (val) {
|
681
|
+
if (!val) {
|
682
|
+
setTimeout(function () {
|
683
|
+
data.moveStyle = {
|
684
|
+
top: '50%',
|
685
|
+
left: '50%'
|
686
|
+
};
|
687
|
+
data.positionX = 0;
|
688
|
+
data.positionY = 0;
|
689
|
+
isModalShow.value = false;
|
690
|
+
}, 250);
|
691
|
+
} else {
|
692
|
+
isModalShow.value = true;
|
693
|
+
}
|
694
|
+
emit('value-change', val);
|
695
|
+
});
|
696
|
+
// 关闭弹框
|
697
|
+
var handleClose = /*#__PURE__*/function () {
|
698
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee() {
|
699
|
+
var shouldClose;
|
700
|
+
return regenerator_default().wrap(function _callee$(_context) {
|
701
|
+
while (1) switch (_context.prev = _context.next) {
|
702
|
+
case 0:
|
703
|
+
shouldClose = true;
|
704
|
+
if (!(typeof props.beforeClose === 'function')) {
|
705
|
+
_context.next = 5;
|
706
|
+
break;
|
707
|
+
}
|
708
|
+
_context.next = 4;
|
709
|
+
return props.beforeClose();
|
710
|
+
case 4:
|
711
|
+
shouldClose = _context.sent;
|
712
|
+
case 5:
|
713
|
+
if (shouldClose) {
|
714
|
+
emit('update:isShow', false);
|
715
|
+
emit('closed');
|
716
|
+
isModalShow.value = false;
|
717
|
+
}
|
718
|
+
case 6:
|
719
|
+
case "end":
|
720
|
+
return _context.stop();
|
721
|
+
}
|
722
|
+
}, _callee);
|
723
|
+
}));
|
724
|
+
return function handleClose() {
|
725
|
+
return _ref2.apply(this, arguments);
|
726
|
+
};
|
727
|
+
}();
|
728
|
+
var handleConfirm = function handleConfirm() {
|
729
|
+
emit('update:isShow', false);
|
730
|
+
emit('confirm');
|
731
|
+
// isModalShow.value = false; 影响异步关闭
|
732
|
+
};
|
733
|
+
|
734
|
+
var hasFooter = (0,external_vue_namespaceObject.computed)(function () {
|
735
|
+
return ['process', 'operation', 'confirm'].includes(props.dialogType);
|
736
|
+
});
|
737
|
+
// 按 esc 关闭弹框
|
738
|
+
var escCloseHandler = function escCloseHandler(e) {
|
739
|
+
if (props.isShow && props.closeIcon) {
|
740
|
+
if (e.keyCode === 27) {
|
741
|
+
handleClose();
|
742
|
+
}
|
743
|
+
}
|
744
|
+
};
|
745
|
+
// 上一步
|
746
|
+
var handlePrevStep = function handlePrevStep() {
|
747
|
+
emit('prev');
|
748
|
+
};
|
749
|
+
// 下一步
|
750
|
+
var handleNextStep = function handleNextStep() {
|
751
|
+
emit('next');
|
752
|
+
};
|
753
|
+
// 拖拽事件
|
754
|
+
var moveHandler = function moveHandler(e) {
|
755
|
+
if (props.fullscreen) {
|
756
|
+
return false;
|
757
|
+
}
|
758
|
+
if (!props.draggable) {
|
759
|
+
return false;
|
760
|
+
}
|
761
|
+
var odiv = e.target;
|
762
|
+
var parentHeight = e.currentTarget.parentNode.parentNode.offsetHeight;
|
763
|
+
var parentWidth = e.currentTarget.parentNode.parentNode.offsetWidth;
|
764
|
+
var disX;
|
765
|
+
var disY;
|
766
|
+
if (data.positionX !== 0 && data.positionY !== 0) {
|
767
|
+
disX = e.clientX - data.positionX;
|
768
|
+
disY = e.clientY - data.positionY;
|
769
|
+
} else {
|
770
|
+
disX = e.clientX - odiv.offsetLeft;
|
771
|
+
disY = e.clientY - odiv.offsetTop;
|
772
|
+
}
|
773
|
+
document.onmousemove = function (e) {
|
774
|
+
var boxLeft = window.innerWidth - parentWidth;
|
775
|
+
var boxTop = window.innerHeight - parentHeight;
|
776
|
+
var left = e.clientX - disX;
|
777
|
+
var top = e.clientY - disY;
|
778
|
+
if (boxLeft / 2 - left <= 0) {
|
779
|
+
left = boxLeft / 2;
|
780
|
+
} else if (boxLeft / 2 + left <= 0) {
|
781
|
+
left = -boxLeft / 2;
|
782
|
+
}
|
783
|
+
if (boxTop / 2 - top <= 0) {
|
784
|
+
top = boxTop / 2;
|
785
|
+
} else if (boxTop / 2 + top <= 0) {
|
786
|
+
top = -boxTop / 2;
|
787
|
+
}
|
788
|
+
data.positionX = left;
|
789
|
+
data.positionY = top;
|
790
|
+
data.moveStyle.left = "calc(50% + ".concat(left, "px)");
|
791
|
+
data.moveStyle.top = "calc(50% + ".concat(top, "px)");
|
792
|
+
};
|
793
|
+
document.onmouseup = function () {
|
794
|
+
document.onmousemove = null;
|
795
|
+
document.onmouseup = null;
|
796
|
+
};
|
797
|
+
};
|
798
|
+
var _usePrefix = (0,external_config_provider_namespaceObject.usePrefix)(),
|
799
|
+
resolveClassName = _usePrefix.resolveClassName;
|
800
|
+
return {
|
801
|
+
data: data,
|
802
|
+
handleClose: handleClose,
|
803
|
+
handleConfirm: handleConfirm,
|
804
|
+
escCloseHandler: escCloseHandler,
|
805
|
+
moveHandler: moveHandler,
|
806
|
+
handlePrevStep: handlePrevStep,
|
807
|
+
handleNextStep: handleNextStep,
|
808
|
+
hasFooter: hasFooter,
|
809
|
+
isModalShow: isModalShow,
|
810
|
+
localConfirmText: localConfirmText,
|
811
|
+
localCancelText: localCancelText,
|
812
|
+
localPrevText: localPrevText,
|
813
|
+
localNextText: localNextText,
|
814
|
+
resolveClassName: resolveClassName
|
815
|
+
};
|
816
|
+
},
|
817
|
+
render: function render() {
|
818
|
+
var _this = this;
|
819
|
+
var renderIcon = function renderIcon() {
|
820
|
+
var iconMap = {
|
821
|
+
loading: (0,external_vue_namespaceObject.createVNode)(external_icon_namespaceObject.Spinner, {
|
822
|
+
"class": [_this.resolveClassName('info-icon'), 'primary']
|
823
|
+
}, null),
|
824
|
+
warning: (0,external_vue_namespaceObject.createVNode)(external_icon_namespaceObject.Warn, {
|
825
|
+
"class": [_this.resolveClassName('info-icon'), 'warning']
|
826
|
+
}, null),
|
827
|
+
success: (0,external_vue_namespaceObject.createVNode)(external_icon_namespaceObject.Success, {
|
828
|
+
"class": [_this.resolveClassName('info-icon'), 'success']
|
829
|
+
}, null),
|
830
|
+
danger: (0,external_vue_namespaceObject.createVNode)(external_icon_namespaceObject.Close, {
|
831
|
+
"class": [_this.resolveClassName('info-icon'), 'danger']
|
832
|
+
}, null)
|
833
|
+
};
|
834
|
+
return iconMap[_this.infoType];
|
835
|
+
};
|
836
|
+
var dialogSlot = {
|
837
|
+
header: function header() {
|
838
|
+
var _this$$slots$tools, _this$$slots$tools2, _this$$slots, _this$$slots$header, _this$$slots$header2, _this$$slots2;
|
839
|
+
return [(0,external_vue_namespaceObject.createVNode)("div", {
|
840
|
+
"class": [_this.resolveClassName('dialog-tool'), _this.fullscreen || !_this.draggable ? '' : 'move', _this.draggable ? 'content-dragging' : ''],
|
841
|
+
"onMousedown": _this.moveHandler
|
842
|
+
}, [(_this$$slots$tools = (_this$$slots$tools2 = (_this$$slots = _this.$slots).tools) === null || _this$$slots$tools2 === void 0 ? void 0 : _this$$slots$tools2.call(_this$$slots)) !== null && _this$$slots$tools !== void 0 ? _this$$slots$tools : '']), (0,external_vue_namespaceObject.createVNode)("div", {
|
843
|
+
"class": _this.resolveClassName('dialog-header')
|
844
|
+
}, [(0,external_vue_namespaceObject.createVNode)("div", {
|
845
|
+
"class": _this.resolveClassName('header-icon')
|
846
|
+
}, [_this.infoType ? renderIcon() : (0,external_vue_namespaceObject.createVNode)("slot", {
|
847
|
+
"name": "info-icon"
|
848
|
+
}, null)]), (0,external_vue_namespaceObject.createVNode)("span", {
|
849
|
+
"class": _this.resolveClassName('dialog-title'),
|
850
|
+
"style": "text-align: ".concat(_this.headerAlign)
|
851
|
+
}, [(_this$$slots$header = (_this$$slots$header2 = (_this$$slots2 = _this.$slots).header) === null || _this$$slots$header2 === void 0 ? void 0 : _this$$slots$header2.call(_this$$slots2)) !== null && _this$$slots$header !== void 0 ? _this$$slots$header : _this.title])])];
|
852
|
+
},
|
853
|
+
"default": function _default() {
|
854
|
+
var _this$$slots$default, _this$$slots$default2, _this$$slots3;
|
855
|
+
return (_this$$slots$default = (_this$$slots$default2 = (_this$$slots3 = _this.$slots)["default"]) === null || _this$$slots$default2 === void 0 ? void 0 : _this$$slots$default2.call(_this$$slots3)) !== null && _this$$slots$default !== void 0 ? _this$$slots$default : 'default';
|
856
|
+
},
|
857
|
+
footer: function footer() {
|
858
|
+
var _this$$slots$footer, _this$$slots$footer2, _this$$slots4, _this$$slots$footer3, _this$$slots$footer4, _this$$slots5, _this$$slots$footer5, _this$$slots$footer6, _this$$slots6;
|
859
|
+
return (0,external_vue_namespaceObject.createVNode)("div", {
|
860
|
+
"class": _this.resolveClassName('dialog-footer'),
|
861
|
+
"style": "text-align: ".concat(_this.footerAlign)
|
862
|
+
}, [_this.dialogType === 'process' ? (_this$$slots$footer = (_this$$slots$footer2 = (_this$$slots4 = _this.$slots).footer) === null || _this$$slots$footer2 === void 0 ? void 0 : _this$$slots$footer2.call(_this$$slots4)) !== null && _this$$slots$footer !== void 0 ? _this$$slots$footer : (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Fragment, null, [_this.current === 1 ? '' : (0,external_vue_namespaceObject.createVNode)(external_button_namespaceObject["default"], {
|
863
|
+
"class": _this.resolveClassName('dialog-perv'),
|
864
|
+
"onClick": _this.handlePrevStep
|
865
|
+
}, {
|
866
|
+
"default": function _default() {
|
867
|
+
return [_this.localPrevText];
|
868
|
+
}
|
869
|
+
}), _this.current === _this.totalStep ? '' : (0,external_vue_namespaceObject.createVNode)(external_button_namespaceObject["default"], {
|
870
|
+
"class": _this.resolveClassName('dialog-next'),
|
871
|
+
"onClick": _this.handleNextStep
|
872
|
+
}, {
|
873
|
+
"default": function _default() {
|
874
|
+
return [_this.localNextText];
|
875
|
+
}
|
876
|
+
}), _this.current === _this.totalStep ? (0,external_vue_namespaceObject.createVNode)(external_button_namespaceObject["default"], {
|
877
|
+
"onClick": _this.handleConfirm,
|
878
|
+
"theme": _this.theme,
|
879
|
+
"loading": _this.isLoading
|
880
|
+
}, {
|
881
|
+
"default": function _default() {
|
882
|
+
return [_this.localConfirmText];
|
883
|
+
}
|
884
|
+
}) : '', (0,external_vue_namespaceObject.createVNode)(external_button_namespaceObject["default"], {
|
885
|
+
"class": _this.resolveClassName('dialog-cancel'),
|
886
|
+
"onClick": _this.handleClose,
|
887
|
+
"disabled": _this.isLoading
|
888
|
+
}, {
|
889
|
+
"default": function _default() {
|
890
|
+
return [_this.localCancelText];
|
891
|
+
}
|
892
|
+
})]) : '', _this.dialogType === 'operation' ? (_this$$slots$footer3 = (_this$$slots$footer4 = (_this$$slots5 = _this.$slots).footer) === null || _this$$slots$footer4 === void 0 ? void 0 : _this$$slots$footer4.call(_this$$slots5)) !== null && _this$$slots$footer3 !== void 0 ? _this$$slots$footer3 : (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Fragment, null, [(0,external_vue_namespaceObject.createVNode)(external_button_namespaceObject["default"], {
|
893
|
+
"onClick": _this.handleConfirm,
|
894
|
+
"theme": _this.theme,
|
895
|
+
"loading": _this.isLoading
|
896
|
+
}, {
|
897
|
+
"default": function _default() {
|
898
|
+
return [_this.localConfirmText];
|
899
|
+
}
|
900
|
+
}), (0,external_vue_namespaceObject.createVNode)(external_button_namespaceObject["default"], {
|
901
|
+
"class": _this.resolveClassName('dialog-cancel'),
|
902
|
+
"onClick": _this.handleClose,
|
903
|
+
"disabled": _this.isLoading
|
904
|
+
}, {
|
905
|
+
"default": function _default() {
|
906
|
+
return [_this.localCancelText];
|
907
|
+
}
|
908
|
+
})]) : '', _this.dialogType === 'confirm' ? (_this$$slots$footer5 = (_this$$slots$footer6 = (_this$$slots6 = _this.$slots).footer) === null || _this$$slots$footer6 === void 0 ? void 0 : _this$$slots$footer6.call(_this$$slots6)) !== null && _this$$slots$footer5 !== void 0 ? _this$$slots$footer5 : (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Fragment, null, [(0,external_vue_namespaceObject.createVNode)(external_button_namespaceObject["default"], {
|
909
|
+
"onClick": _this.handleConfirm,
|
910
|
+
"theme": _this.theme,
|
911
|
+
"loading": _this.isLoading
|
912
|
+
}, {
|
913
|
+
"default": function _default() {
|
914
|
+
return [_this.localConfirmText];
|
915
|
+
}
|
916
|
+
})]) : '']);
|
917
|
+
},
|
918
|
+
// eslint-disable-next-line @typescript-eslint/no-misused-promises
|
919
|
+
close: function close() {
|
920
|
+
return (0,external_vue_namespaceObject.createVNode)(external_icon_namespaceObject.Error, {
|
921
|
+
"onClick": _this.handleClose
|
922
|
+
}, null);
|
923
|
+
}
|
924
|
+
};
|
925
|
+
var className = "".concat(this.resolveClassName('dialog-wrapper '), " ").concat(this.scrollable ? 'scroll-able' : '', " ").concat(this.multiInstance ? 'multi-instance' : '', " ").concat(this.hasFooter ? 'has-footer' : 'no-footer');
|
926
|
+
return (0,external_vue_namespaceObject.createVNode)(external_modal_namespaceObject["default"], (0,external_vue_namespaceObject.mergeProps)(this.$props, {
|
927
|
+
"class": className,
|
928
|
+
"onClose": this.handleClose,
|
929
|
+
"isShow": this.isModalShow,
|
930
|
+
"style": this.data.moveStyle
|
931
|
+
}), _isSlot(dialogSlot) ? dialogSlot : {
|
932
|
+
"default": function _default() {
|
933
|
+
return [dialogSlot];
|
934
|
+
}
|
935
|
+
});
|
936
|
+
}
|
937
|
+
}));
|
938
|
+
;// CONCATENATED MODULE: ../../packages/info-box/src/info-box.tsx
|
939
|
+
|
940
|
+
|
941
|
+
|
942
|
+
function info_box_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
943
|
+
function info_box_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? info_box_ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : info_box_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
944
|
+
|
945
|
+
/*
|
946
|
+
* Tencent is pleased to support the open source community by making
|
947
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
948
|
+
*
|
949
|
+
* Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
|
950
|
+
*
|
951
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
952
|
+
*
|
953
|
+
* License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
|
954
|
+
*
|
955
|
+
* ---------------------------------------------------
|
956
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
|
957
|
+
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation
|
958
|
+
* the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
|
959
|
+
* to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
960
|
+
*
|
961
|
+
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of
|
962
|
+
* the Software.
|
963
|
+
*
|
964
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
|
965
|
+
* THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
966
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
|
967
|
+
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
968
|
+
* IN THE SOFTWARE.
|
969
|
+
*/
|
970
|
+
/*
|
971
|
+
* Tencent is pleased to support the open source community by making
|
972
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
973
|
+
*
|
974
|
+
* Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
|
975
|
+
*
|
976
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
977
|
+
*
|
978
|
+
* License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
|
979
|
+
*
|
980
|
+
* ---------------------------------------------------
|
981
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
|
982
|
+
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation
|
983
|
+
* the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
|
984
|
+
* to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
985
|
+
*
|
986
|
+
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of
|
987
|
+
* the Software.
|
988
|
+
*
|
989
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
|
990
|
+
* THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
991
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
|
992
|
+
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
993
|
+
* IN THE SOFTWARE.
|
994
|
+
*/
|
995
|
+
|
996
|
+
|
997
|
+
|
998
|
+
var InfoBox = function InfoBox(config) {
|
999
|
+
var container = document.createElement('div');
|
1000
|
+
var isShow = (0,external_vue_namespaceObject.ref)(false);
|
1001
|
+
var modalFuncProps = (0,external_vue_namespaceObject.shallowRef)(config);
|
1002
|
+
var dialog = (0,external_vue_namespaceObject.defineComponent)({
|
1003
|
+
name: 'DialogConfirm',
|
1004
|
+
setup: function setup(_props, _ref) {
|
1005
|
+
var expose = _ref.expose;
|
1006
|
+
(0,external_vue_namespaceObject.onMounted)(function () {
|
1007
|
+
var dom = document.activeElement || document.body;
|
1008
|
+
dom.blur();
|
1009
|
+
if (modalFuncProps.value.isShow !== false) {
|
1010
|
+
isShow.value = true;
|
1011
|
+
}
|
1012
|
+
});
|
1013
|
+
var onClosed = /*#__PURE__*/function () {
|
1014
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee() {
|
1015
|
+
var _modalFuncProps$value;
|
1016
|
+
var _modalFuncProps$value2;
|
1017
|
+
return regenerator_default().wrap(function _callee$(_context) {
|
1018
|
+
while (1) switch (_context.prev = _context.next) {
|
1019
|
+
case 0:
|
1020
|
+
if (!(typeof ((_modalFuncProps$value = modalFuncProps.value) === null || _modalFuncProps$value === void 0 ? void 0 : _modalFuncProps$value.onClosed) === 'function')) {
|
1021
|
+
_context.next = 3;
|
1022
|
+
break;
|
1023
|
+
}
|
1024
|
+
_context.next = 3;
|
1025
|
+
return (_modalFuncProps$value2 = modalFuncProps.value) === null || _modalFuncProps$value2 === void 0 ? void 0 : _modalFuncProps$value2.onClosed();
|
1026
|
+
case 3:
|
1027
|
+
isShow.value = false;
|
1028
|
+
case 4:
|
1029
|
+
case "end":
|
1030
|
+
return _context.stop();
|
1031
|
+
}
|
1032
|
+
}, _callee);
|
1033
|
+
}));
|
1034
|
+
return function onClosed() {
|
1035
|
+
return _ref2.apply(this, arguments);
|
1036
|
+
};
|
1037
|
+
}();
|
1038
|
+
var onConfirm = /*#__PURE__*/function () {
|
1039
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee2() {
|
1040
|
+
var _modalFuncProps$value3;
|
1041
|
+
var _modalFuncProps$value4;
|
1042
|
+
return regenerator_default().wrap(function _callee2$(_context2) {
|
1043
|
+
while (1) switch (_context2.prev = _context2.next) {
|
1044
|
+
case 0:
|
1045
|
+
if (!(typeof ((_modalFuncProps$value3 = modalFuncProps.value) === null || _modalFuncProps$value3 === void 0 ? void 0 : _modalFuncProps$value3.onConfirm) === 'function')) {
|
1046
|
+
_context2.next = 3;
|
1047
|
+
break;
|
1048
|
+
}
|
1049
|
+
_context2.next = 3;
|
1050
|
+
return (_modalFuncProps$value4 = modalFuncProps.value) === null || _modalFuncProps$value4 === void 0 ? void 0 : _modalFuncProps$value4.onConfirm();
|
1051
|
+
case 3:
|
1052
|
+
isShow.value = false;
|
1053
|
+
case 4:
|
1054
|
+
case "end":
|
1055
|
+
return _context2.stop();
|
1056
|
+
}
|
1057
|
+
}, _callee2);
|
1058
|
+
}));
|
1059
|
+
return function onConfirm() {
|
1060
|
+
return _ref3.apply(this, arguments);
|
1061
|
+
};
|
1062
|
+
}();
|
1063
|
+
function update(newValue) {
|
1064
|
+
modalFuncProps.value = info_box_objectSpread(info_box_objectSpread({}, modalFuncProps.value), newValue);
|
1065
|
+
}
|
1066
|
+
expose({
|
1067
|
+
update: update
|
1068
|
+
});
|
1069
|
+
var _usePrefix = (0,external_config_provider_namespaceObject.usePrefix)(),
|
1070
|
+
resolveClassName = _usePrefix.resolveClassName;
|
1071
|
+
var getContent = function getContent() {
|
1072
|
+
var children = [];
|
1073
|
+
var subTitleBox = [];
|
1074
|
+
if (modalFuncProps.value.subTitle) {
|
1075
|
+
switch (_typeof(modalFuncProps.value.subTitle)) {
|
1076
|
+
case 'string':
|
1077
|
+
children.push(modalFuncProps.value.subTitle);
|
1078
|
+
break;
|
1079
|
+
case 'function':
|
1080
|
+
children.push(modalFuncProps.value.subTitle());
|
1081
|
+
break;
|
1082
|
+
default:
|
1083
|
+
children.push(modalFuncProps.value.subTitle);
|
1084
|
+
break;
|
1085
|
+
}
|
1086
|
+
}
|
1087
|
+
if (children.length) {
|
1088
|
+
subTitleBox.push((0,external_vue_namespaceObject.h)('div', {
|
1089
|
+
"class": resolveClassName('info-sub-title'),
|
1090
|
+
style: "text-Align:".concat(modalFuncProps.value.contentAlign || 'center')
|
1091
|
+
}, children));
|
1092
|
+
}
|
1093
|
+
return subTitleBox;
|
1094
|
+
};
|
1095
|
+
return function () {
|
1096
|
+
return (0,external_vue_namespaceObject.createVNode)(src_dialog, info_box_objectSpread(info_box_objectSpread({
|
1097
|
+
"class": resolveClassName('info-wrapper'),
|
1098
|
+
headerAlign: 'center',
|
1099
|
+
footerAlign: 'center',
|
1100
|
+
transfer: true,
|
1101
|
+
fullscreen: false
|
1102
|
+
}, modalFuncProps.value), {}, {
|
1103
|
+
isShow: isShow.value,
|
1104
|
+
onClosed: onClosed,
|
1105
|
+
onConfirm: onConfirm
|
1106
|
+
}), getContent());
|
1107
|
+
};
|
1108
|
+
}
|
1109
|
+
});
|
1110
|
+
var app = (0,external_vue_namespaceObject.createApp)(dialog).mount(container);
|
1111
|
+
return {
|
1112
|
+
show: function show() {
|
1113
|
+
isShow.value = true;
|
1114
|
+
},
|
1115
|
+
hide: function hide() {
|
1116
|
+
isShow.value = false;
|
1117
|
+
},
|
1118
|
+
update: function update(config) {
|
1119
|
+
app.update(config);
|
1120
|
+
},
|
1121
|
+
destroy: function destroy() {
|
1122
|
+
app.unmount();
|
1123
|
+
app = null;
|
1124
|
+
}
|
1125
|
+
};
|
1126
|
+
};
|
1127
|
+
/* harmony default export */ const info_box = (InfoBox);
|
1128
|
+
;// CONCATENATED MODULE: ../../packages/info-box/src/index.ts
|
1129
|
+
/*
|
1130
|
+
* Tencent is pleased to support the open source community by making
|
1131
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
1132
|
+
*
|
1133
|
+
* Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
|
1134
|
+
*
|
1135
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
1136
|
+
*
|
1137
|
+
* License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
|
1138
|
+
*
|
1139
|
+
* ---------------------------------------------------
|
1140
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
|
1141
|
+
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation
|
1142
|
+
* the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
|
1143
|
+
* to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
1144
|
+
*
|
1145
|
+
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of
|
1146
|
+
* the Software.
|
1147
|
+
*
|
1148
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
|
1149
|
+
* THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
1150
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
|
1151
|
+
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
1152
|
+
* IN THE SOFTWARE.
|
1153
|
+
*/
|
1154
|
+
|
1155
|
+
|
1156
|
+
var BkInfoBox = (0,external_shared_namespaceObject.withInstall)(info_box);
|
1157
|
+
/* harmony default export */ const src = (BkInfoBox);
|
1158
|
+
})();
|
1159
|
+
|
1160
|
+
var __webpack_exports__default = __webpack_exports__.Z;
|
1161
|
+
export { __webpack_exports__default as default };
|