bkui-vue 0.0.3-beta.4 → 0.0.3-beta.6

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.
Files changed (72) hide show
  1. package/dist/index.cjs.js +36 -36
  2. package/dist/index.esm.js +9815 -10064
  3. package/dist/index.umd.js +36 -36
  4. package/dist/locale/en.esm.js +1 -1
  5. package/dist/locale/en.esm.js.map +1 -1
  6. package/dist/locale/en.umd.js +1 -1
  7. package/dist/locale/en.umd.js.map +1 -1
  8. package/dist/locale/zh-cn.esm.js +1 -1
  9. package/dist/locale/zh-cn.esm.js.map +1 -1
  10. package/dist/locale/zh-cn.umd.js +1 -1
  11. package/dist/locale/zh-cn.umd.js.map +1 -1
  12. package/dist/style.css +1 -1
  13. package/dist/style.variable.css +1 -1
  14. package/lib/config-provider/config-provider.d.ts +9 -0
  15. package/lib/config-provider/index.d.ts +12 -0
  16. package/lib/config-provider/token.d.ts +3 -0
  17. package/lib/dialog/dialog.css +61 -35
  18. package/lib/dialog/dialog.d.ts +20 -11
  19. package/lib/dialog/dialog.less +2 -2
  20. package/lib/dialog/dialog.variable.css +61 -35
  21. package/lib/dialog/index.d.ts +38 -22
  22. package/lib/dialog/index.js +4 -3
  23. package/lib/dialog/props.d.ts +8 -4
  24. package/lib/form/form.css +3 -0
  25. package/lib/form/form.less +3 -0
  26. package/lib/form/form.variable.css +3 -0
  27. package/lib/form/index.js +4 -1
  28. package/lib/info-box/index.d.ts +1 -0
  29. package/lib/info-box/index.js +113 -17333
  30. package/lib/info-box/info-box.css +10 -10
  31. package/lib/info-box/info-box.d.ts +4 -3
  32. package/lib/info-box/info-box.less +37 -34
  33. package/lib/info-box/info-box.variable.css +10 -10
  34. package/lib/loading/index.d.ts +4 -4
  35. package/lib/loading/loading.d.ts +3 -3
  36. package/lib/locale/index.js +8 -10
  37. package/lib/locale/lang/en.d.ts +3 -0
  38. package/lib/modal/index.d.ts +108 -65
  39. package/lib/modal/index.js +160 -103
  40. package/lib/modal/modal.css +36 -10
  41. package/lib/modal/modal.d.ts +40 -22
  42. package/lib/modal/modal.less +34 -0
  43. package/lib/modal/modal.variable.css +36 -10
  44. package/lib/modal/props.mixin.d.ts +8 -4
  45. package/lib/preset.d.ts +6 -0
  46. package/lib/resize-layout/index.d.ts +3 -3
  47. package/lib/resize-layout/resize-layout.d.ts +1 -1
  48. package/lib/shared/index.d.ts +1 -2
  49. package/lib/shared/index.js +486 -1133
  50. package/lib/shared/mask.d.ts +11 -0
  51. package/lib/sideslider/index.d.ts +38 -22
  52. package/lib/sideslider/index.js +0 -1
  53. package/lib/sideslider/sideslider.css +12 -11
  54. package/lib/sideslider/sideslider.d.ts +20 -11
  55. package/lib/sideslider/sideslider.less +79 -77
  56. package/lib/sideslider/sideslider.variable.css +12 -11
  57. package/lib/styles/index.d.ts +1 -0
  58. package/lib/table/components/table-column.d.ts +1 -0
  59. package/lib/table/index.d.ts +1 -0
  60. package/lib/table/index.js +2 -1
  61. package/lib/table/props.d.ts +1 -0
  62. package/lib/table/use-column.d.ts +3 -0
  63. package/lib/table-column/index.d.ts +3 -0
  64. package/lib/version-log/index.d.ts +298 -0
  65. package/lib/version-log/index.js +9045 -0
  66. package/lib/version-log/version-log.css +224 -0
  67. package/lib/version-log/version-log.d.ts +203 -0
  68. package/lib/version-log/version-log.less +239 -0
  69. package/lib/version-log/version-log.variable.css +350 -0
  70. package/package.json +2 -1
  71. package/lib/shared/mask-manager.d.ts +0 -89
  72. package/lib/shared/pop-manager.d.ts +0 -41
@@ -1,6 +1,6 @@
1
1
  import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
2
- import * as __WEBPACK_EXTERNAL_MODULE_lodash_throttle_a7b7506a__ from "lodash/throttle";
3
2
  import * as __WEBPACK_EXTERNAL_MODULE__popperjs_core_a5c7319c__ from "@popperjs/core";
3
+ import * as __WEBPACK_EXTERNAL_MODULE_lodash_throttle_a7b7506a__ from "lodash/throttle";
4
4
  import * as __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__ from "vue-types";
5
5
  /******/ // The require scope
6
6
  /******/ var __webpack_require__ = {};
@@ -31,9 +31,7 @@ __webpack_require__.d(__webpack_exports__, {
31
31
  oY: () => (/* reexport */ AlignEnum),
32
32
  p3: () => (/* reexport */ BKLAYERD_INDEX_EFAULT_VALUE),
33
33
  Ql: () => (/* reexport */ BKLAYERTYPE),
34
- Eo: () => (/* reexport */ BKPopIndexManager),
35
34
  mZ: () => (/* reexport */ BKPopover),
36
- Wg: () => (/* reexport */ BkMaskManager),
37
35
  _D: () => (/* reexport */ DialogTypeEnum),
38
36
  dq: () => (/* reexport */ DirectionEnum),
39
37
  kT: () => (/* binding */ EMPTY_OBJ),
@@ -60,8 +58,6 @@ __webpack_require__.d(__webpack_exports__, {
60
58
  os: () => (/* reexport */ TriggerEnum),
61
59
  WW: () => (/* reexport */ alignType),
62
60
  h6: () => (/* binding */ arrayEqual),
63
- Lx: () => (/* reexport */ bKMaskManager),
64
- aR: () => (/* reexport */ bkPopIndexManager),
65
61
  ue: () => (/* reexport */ bkZIndexManager),
66
62
  kC: () => (/* reexport */ capitalize),
67
63
  ao: () => (/* reexport */ checkOverflow),
@@ -85,6 +81,7 @@ __webpack_require__.d(__webpack_exports__, {
85
81
  sS: () => (/* reexport */ isNullOrUndef),
86
82
  Kn: () => (/* reexport */ isObject),
87
83
  zW: () => (/* reexport */ lineStyleType),
84
+ Ax: () => (/* reexport */ mask),
88
85
  oq: () => (/* reexport */ maybeShowTooltip),
89
86
  TS: () => (/* reexport */ merge),
90
87
  NG: () => (/* reexport */ mergeIf),
@@ -548,6 +545,43 @@ var useForm = function useForm() {
548
545
  var useFormItem = function useFormItem() {
549
546
  return (0,external_vue_namespaceObject.inject)(formItemKey, undefined);
550
547
  };
548
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
549
+ function _arrayLikeToArray(arr, len) {
550
+ if (len == null || len > arr.length) len = arr.length;
551
+ for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
552
+ return arr2;
553
+ }
554
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
555
+
556
+ function _arrayWithoutHoles(arr) {
557
+ if (Array.isArray(arr)) return _arrayLikeToArray(arr);
558
+ }
559
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/iterableToArray.js
560
+ function _iterableToArray(iter) {
561
+ if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
562
+ }
563
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
564
+
565
+ function _unsupportedIterableToArray(o, minLen) {
566
+ if (!o) return;
567
+ if (typeof o === "string") return _arrayLikeToArray(o, minLen);
568
+ var n = Object.prototype.toString.call(o).slice(8, -1);
569
+ if (n === "Object" && o.constructor) n = o.constructor.name;
570
+ if (n === "Map" || n === "Set") return Array.from(o);
571
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
572
+ }
573
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
574
+ function _nonIterableSpread() {
575
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
576
+ }
577
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
578
+
579
+
580
+
581
+
582
+ function _toConsumableArray(arr) {
583
+ return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
584
+ }
551
585
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/classCallCheck.js
552
586
  function _classCallCheck(instance, Constructor) {
553
587
  if (!(instance instanceof Constructor)) {
@@ -608,1094 +642,105 @@ function _defineProperty(obj, key, value) {
608
642
  }
609
643
  return obj;
610
644
  }
611
- ;// CONCATENATED MODULE: external "lodash/throttle"
612
- var throttle_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
613
- var throttle_y = x => () => x
614
- const throttle_namespaceObject = throttle_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_lodash_throttle_a7b7506a__["default"] });
615
- ;// CONCATENATED MODULE: ../../packages/shared/src/utils.ts
616
- /*
617
- * Tencent is pleased to support the open source community by making
618
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
619
- *
620
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
621
- *
622
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
623
- *
624
- * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
625
- *
626
- * ---------------------------------------------------
627
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
628
- * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
629
- * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
630
- * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
631
- *
632
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
633
- * the Software.
634
- *
635
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
636
- * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
637
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
638
- * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
639
- * IN THE SOFTWARE.
640
- */
645
+ ;// CONCATENATED MODULE: ../../node_modules/uuid/dist/esm-browser/native.js
646
+ const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);
647
+ /* harmony default export */ const esm_browser_native = ({
648
+ randomUUID
649
+ });
650
+ ;// CONCATENATED MODULE: ../../node_modules/uuid/dist/esm-browser/rng.js
651
+ // Unique ID creation requires a high quality random # generator. In the browser we therefore
652
+ // require the crypto API and do not support built-in fallback to lower quality random number
653
+ // generators (like Math.random()).
654
+ let getRandomValues;
655
+ const rnds8 = new Uint8Array(16);
656
+ function rng() {
657
+ // lazy load so that environments that need to polyfill have a chance to do so
658
+ if (!getRandomValues) {
659
+ // getRandomValues needs to be invoked in a context where "this" is a Crypto implementation.
660
+ getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto);
641
661
 
642
- var lowerStr = 'abcdefghijklmnopqrstuvwxyz0123456789';
643
- /**
644
- * 生成n位长度的字符串
645
- * @param {Number} n
646
- * @param str,默认26位字母及数字
647
- */
648
- var random = function random(n) {
649
- var str = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : lowerStr;
650
- var result = '';
651
- for (var i = 0; i < n; i++) {
652
- result += str[parseInt((Math.random() * str.length).toString(), 10)];
653
- }
654
- return result;
655
- };
656
- /**
657
- * 监听目标元素的Resize事件
658
- * @param root 目标元素
659
- * @param callbackFn 执行函数
660
- * @param delay 延迟执行时间,默认 60
661
- * @param immediate 是否立即执行回调函数
662
- * @returns "{ start: () => void, stop: () => void }"
663
- */
664
- var observerResize = function observerResize(root, callbackFn) {
665
- var delay = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 60;
666
- var immediate = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
667
- var callFn = (0,throttle_namespaceObject["default"])(function () {
668
- if (typeof callbackFn === 'function') {
669
- callbackFn();
670
- }
671
- }, delay);
672
- var resizeObserver = new ResizeObserver(function () {
673
- callFn();
674
- });
675
- if (immediate) {
676
- if (typeof callbackFn === 'function') {
677
- callbackFn();
662
+ if (!getRandomValues) {
663
+ throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');
678
664
  }
679
665
  }
680
- return {
681
- start: function start() {
682
- resizeObserver.observe(root);
683
- },
684
- stop: function stop() {
685
- resizeObserver.disconnect();
686
- resizeObserver.unobserve(root);
687
- }
688
- };
689
- };
690
- var capitalize = function capitalize(str) {
691
- return str[0].toUpperCase() + str.slice(1);
692
- };
666
+
667
+ return getRandomValues(rnds8);
668
+ }
669
+ ;// CONCATENATED MODULE: ../../node_modules/uuid/dist/esm-browser/stringify.js
670
+
693
671
  /**
694
- * 判断元素是否溢出容器
695
- * @param {*} el
696
- * @returns
672
+ * Convert array of 16 byte values to UUID string format of the form:
673
+ * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
697
674
  */
698
- function checkOverflow(el) {
699
- if (!el) return false;
700
- var createDom = function createDom(el, css) {
701
- var dom = document.createElement('div');
702
- var width = parseFloat(css.width) ? "".concat(Math.ceil(parseFloat(css.width)), "px") : css.width;
703
- dom.style.cssText = "\n width: ".concat(width, ";\n line-height: ").concat(css['line-height'], ";\n font-size: ").concat(css['font-size'], ";\n word-break: ").concat(css['word-break'], ";\n padding: ").concat(css.padding, ";\n ");
704
- dom.textContent = el.textContent;
705
- return dom;
706
- };
707
- var isOverflow = false;
708
- try {
709
- var css = window.getComputedStyle(el, null);
710
- var lineClamp = css.webkitLineClamp;
711
- if (lineClamp !== 'none') {
712
- var targetHeight = parseFloat(css.height);
713
- var dom = createDom(el, css);
714
- document.body.appendChild(dom);
715
- var domHeight = window.getComputedStyle(dom, null).height;
716
- document.body.removeChild(dom);
717
- isOverflow = targetHeight < parseFloat(domHeight);
718
- } else {
719
- isOverflow = el.clientWidth < el.scrollWidth || el.clientHeight < el.scrollHeight;
675
+
676
+ const byteToHex = [];
677
+
678
+ for (let i = 0; i < 256; ++i) {
679
+ byteToHex.push((i + 0x100).toString(16).slice(1));
680
+ }
681
+
682
+ function unsafeStringify(arr, offset = 0) {
683
+ // Note: Be careful editing this code! It's been tuned for performance
684
+ // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
685
+ return byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]];
686
+ }
687
+
688
+ function stringify(arr, offset = 0) {
689
+ const uuid = unsafeStringify(arr, offset); // Consistency check for valid UUID. If this throws, it's likely due to one
690
+ // of the following:
691
+ // - One or more input array values don't map to a hex octet (leading to
692
+ // "undefined" in the uuid)
693
+ // - Invalid input values for the RFC `version` or `variant` fields
694
+
695
+ if (!validate(uuid)) {
696
+ throw TypeError('Stringified UUID is invalid');
697
+ }
698
+
699
+ return uuid;
700
+ }
701
+
702
+ /* harmony default export */ const esm_browser_stringify = ((/* unused pure expression or super */ null && (stringify)));
703
+ ;// CONCATENATED MODULE: ../../node_modules/uuid/dist/esm-browser/v4.js
704
+
705
+
706
+
707
+
708
+ function v4(options, buf, offset) {
709
+ if (esm_browser_native.randomUUID && !buf && !options) {
710
+ return esm_browser_native.randomUUID();
711
+ }
712
+
713
+ options = options || {};
714
+ const rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
715
+
716
+ rnds[6] = rnds[6] & 0x0f | 0x40;
717
+ rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided
718
+
719
+ if (buf) {
720
+ offset = offset || 0;
721
+
722
+ for (let i = 0; i < 16; ++i) {
723
+ buf[offset + i] = rnds[i];
720
724
  }
721
- } catch (e) {
722
- console.warn('There is an error when check element overflow state: ', e);
725
+
726
+ return buf;
723
727
  }
724
- return isOverflow;
728
+
729
+ return unsafeStringify(rnds);
725
730
  }
726
- ;// CONCATENATED MODULE: ../../packages/shared/src/z-index-manager.ts
727
731
 
732
+ /* harmony default export */ const esm_browser_v4 = (v4);
733
+ ;// CONCATENATED MODULE: external "@popperjs/core"
734
+ var core_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
735
+ var core_y = x => () => x
736
+ const core_namespaceObject = core_x({ ["createPopper"]: () => __WEBPACK_EXTERNAL_MODULE__popperjs_core_a5c7319c__.createPopper });
737
+ ;// CONCATENATED MODULE: ../../packages/shared/src/popover.ts
728
738
 
729
739
 
730
- var _BKLAYERD_INDEX_EFAUL;
731
- /**
732
- * Tencent is pleased to support the open source community by making
733
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
734
- *
735
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
736
- *
737
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
738
- *
739
- * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
740
- *
741
- * ---------------------------------------------------
742
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
743
- * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
744
- * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
745
- * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
746
- *
747
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
748
- * the Software.
749
- *
750
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
751
- * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
752
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
753
- * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
754
- * IN THE SOFTWARE.
755
- */
756
- /**
757
- * 页面框架层级
758
- */
759
- var BKLAYERTYPE;
760
- (function (BKLAYERTYPE) {
761
- /** 网站内容的背景、拓扑的画布等 */
762
- BKLAYERTYPE["BOTTOM"] = "bottom";
763
- /** 页面呈现的各类内容 */
764
- BKLAYERTYPE["CONTENT"] = "content";
765
- /** 顶部导航、侧边导航以及用户信息等 */
766
- BKLAYERTYPE["NAVI"] = "navi";
767
- /** 页面需全屏操作的部分功能或编辑器的全屏模式 */
768
- BKLAYERTYPE["FULLSCREEN"] = "fullScreen";
769
- /** 各类功能插件 */
770
- BKLAYERTYPE["PLUGINS"] = "plugins";
771
- /** 各类弹窗或抽屉(非模态弹窗不考虑) */
772
- BKLAYERTYPE["MODAL"] = "modal";
773
- /** 各类消息提示 */
774
- BKLAYERTYPE["MESSAGE"] = "message";
775
- /** 各类popper提示 */
776
- BKLAYERTYPE["POPPER"] = "popper";
777
- })(BKLAYERTYPE || (BKLAYERTYPE = {}));
778
- /** 定义不同分层默认值 */
779
- var BKLAYERD_INDEX_EFAULT_VALUE = (_BKLAYERD_INDEX_EFAUL = {}, _defineProperty(_BKLAYERD_INDEX_EFAUL, BKLAYERTYPE.BOTTOM, 0), _defineProperty(_BKLAYERD_INDEX_EFAUL, BKLAYERTYPE.CONTENT, 1), _defineProperty(_BKLAYERD_INDEX_EFAUL, BKLAYERTYPE.NAVI, 100), _defineProperty(_BKLAYERD_INDEX_EFAUL, BKLAYERTYPE.FULLSCREEN, 1000), _defineProperty(_BKLAYERD_INDEX_EFAUL, BKLAYERTYPE.MODAL, 2000), _defineProperty(_BKLAYERD_INDEX_EFAUL, BKLAYERTYPE.PLUGINS, 5000), _defineProperty(_BKLAYERD_INDEX_EFAUL, BKLAYERTYPE.MESSAGE, 6000), _defineProperty(_BKLAYERD_INDEX_EFAUL, BKLAYERTYPE.POPPER, 8000), _BKLAYERD_INDEX_EFAUL);
780
- var BKZIndexManager = /*#__PURE__*/function () {
781
- function BKZIndexManager() {
782
- _classCallCheck(this, BKZIndexManager);
783
- _defineProperty(this, "storageLayerIndexValue", {});
784
- this.copyDefaultValue();
785
- }
786
- /**
787
- *
788
- * @param type
789
- * @returns
790
- */
791
- _createClass(BKZIndexManager, [{
792
- key: "getNextIndex",
793
- value: function getNextIndex(type) {
794
- if (Object.prototype.hasOwnProperty.call(this.storageLayerIndexValue, type)) {
795
- this.storageLayerIndexValue[type] = this.storageLayerIndexValue[type] + 1;
796
- return this.storageLayerIndexValue[type];
797
- }
798
- this.storageLayerIndexValue[BKLAYERTYPE.MODAL] = this.storageLayerIndexValue[BKLAYERTYPE.MODAL] + 1;
799
- return this.storageLayerIndexValue[BKLAYERTYPE.MODAL];
800
- }
801
- /** 获取弹窗类型最新zIndex的值 */
802
- }, {
803
- key: "getModalNextIndex",
804
- value: function getModalNextIndex() {
805
- return this.getNextIndex(BKLAYERTYPE.MODAL);
806
- }
807
- /** 获取Message类型最新zIndex的值 */
808
- }, {
809
- key: "getMessageNextIndex",
810
- value: function getMessageNextIndex() {
811
- return this.getNextIndex(BKLAYERTYPE.MESSAGE);
812
- }
813
- /** 获取全屏类型最新zIndex的值 */
814
- }, {
815
- key: "getFullScreenNextIndex",
816
- value: function getFullScreenNextIndex() {
817
- return this.getNextIndex(BKLAYERTYPE.FULLSCREEN);
818
- }
819
- /** 获取导航类型最新zIndex的值 */
820
- }, {
821
- key: "getNaviNextIndex",
822
- value: function getNaviNextIndex() {
823
- return this.getNextIndex(BKLAYERTYPE.NAVI);
824
- }
825
- /** 获取导航类型最新zIndex的值 */
826
- }, {
827
- key: "getPopperIndex",
828
- value: function getPopperIndex() {
829
- return this.getNextIndex(BKLAYERTYPE.POPPER);
830
- }
831
- /**
832
- * 更新自定义默认zIndex配置
833
- * @param config 配置项
834
- */
835
- }, {
836
- key: "setDefaultZIndex",
837
- value: function setDefaultZIndex(config) {
838
- var _this = this;
839
- Object.keys(config || {}).forEach(function (key) {
840
- if (Object.prototype.hasOwnProperty.call(_this.storageLayerIndexValue.__proto__, key)) {
841
- Object.assign(_this.storageLayerIndexValue.__proto__, _defineProperty({}, key, config[key]));
842
- }
843
- });
844
- this.copyDefaultValue();
845
- }
846
- /**
847
- * 重置zIndex
848
- * @param config 配置项
849
- */
850
- }, {
851
- key: "resetZIndex",
852
- value: function resetZIndex(config) {
853
- var _this2 = this;
854
- Object.keys(config || {}).forEach(function (key) {
855
- if (Object.prototype.hasOwnProperty.call(_this2.storageLayerIndexValue, key)) {
856
- Object.assign(_this2.storageLayerIndexValue, _defineProperty({}, key, config[key]));
857
- }
858
- });
859
- }
860
- /**
861
- * 根据默认设置创建副本
862
- */
863
- }, {
864
- key: "copyDefaultValue",
865
- value: function copyDefaultValue() {
866
- var properties = Object.keys(BKLAYERD_INDEX_EFAULT_VALUE).reduce(function (props, key) {
867
- return Object.assign(props, _defineProperty({}, key, {
868
- value: BKLAYERD_INDEX_EFAULT_VALUE[key],
869
- writable: true,
870
- configurable: true
871
- }));
872
- }, {});
873
- this.storageLayerIndexValue = Object.create(BKLAYERD_INDEX_EFAULT_VALUE, properties);
874
- }
875
- }]);
876
- return BKZIndexManager;
877
- }();
878
- var bkZIndexManager = new BKZIndexManager();
879
- ;// CONCATENATED MODULE: ../../packages/shared/src/mask-manager.ts
880
-
881
-
882
-
883
- 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; }
884
- 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; }
885
- /*
886
- * Tencent is pleased to support the open source community by making
887
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
888
- *
889
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
890
- *
891
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
892
- *
893
- * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
894
- *
895
- * ---------------------------------------------------
896
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
897
- * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
898
- * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
899
- * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
900
- *
901
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
902
- * the Software.
903
- *
904
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
905
- * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
906
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
907
- * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
908
- * IN THE SOFTWARE.
909
- */
910
-
911
-
912
- // eslint-disable-next-line @typescript-eslint/naming-convention
913
- var DEFAULT_MASK_UUID = function DEFAULT_MASK_UUID() {};
914
- DEFAULT_MASK_UUID.prototype.def_val = "__bk_mask_".concat(random(16));
915
- var MaskEventMap = new WeakMap();
916
- var getMaskEvent = function getMaskEvent(mask) {
917
- if (MaskEventMap.has(mask)) {
918
- return MaskEventMap.get(mask);
919
- }
920
- return [];
921
- };
922
- var setMaskEvent = function setMaskEvent(mask, event, args, content, instanceId) {
923
- var maskEvent = getMaskEvent(mask);
924
- if (maskEvent.some(function (evet) {
925
- return evet.instanceId === instanceId;
926
- })) {
927
- return;
928
- }
929
- maskEvent.push({
930
- event: event,
931
- args: args,
932
- content: content,
933
- instanceId: instanceId
934
- });
935
- MaskEventMap.set(mask, maskEvent);
936
- };
937
- var setMaskEventIns = function setMaskEventIns(mask, maskEvent) {
938
- MaskEventMap.set(mask, maskEvent);
939
- };
940
- var MaskQueueMaker = /*#__PURE__*/function () {
941
- function MaskQueueMaker() {
942
- _classCallCheck(this, MaskQueueMaker);
943
- _defineProperty(this, "timer", null);
944
- _defineProperty(this, "store", []);
945
- _defineProperty(this, "maskMap", new WeakMap());
946
- }
947
- _createClass(MaskQueueMaker, [{
948
- key: "appendMaker",
949
- value: function appendMaker(fn) {
950
- this.store.push(fn);
951
- this.executeMaker();
952
- }
953
- }, {
954
- key: "pushMaskStyle",
955
- value: function pushMaskStyle(parentNode, style) {
956
- var value = this.getMaskMap(parentNode);
957
- this.setMaskMap(parentNode, _objectSpread({
958
- styles: [style]
959
- }, value || {}));
960
- }
961
- }, {
962
- key: "getMaskStyles",
963
- value: function getMaskStyles(parentNode) {
964
- var _this$getMaskMap;
965
- return ((_this$getMaskMap = this.getMaskMap(parentNode)) === null || _this$getMaskMap === void 0 ? void 0 : _this$getMaskMap.styles) || [];
966
- }
967
- }, {
968
- key: "setMaskId",
969
- value: function setMaskId(parentNode, id) {
970
- var value = this.getMaskMap(parentNode);
971
- if (!value) {
972
- this.setMaskMap(parentNode, _objectSpread({
973
- id: id
974
- }, value || {}));
975
- } else {
976
- Object.assign(value, {
977
- id: id
978
- });
979
- this.setMaskMap(parentNode, value);
980
- }
981
- }
982
- }, {
983
- key: "getMaskId",
984
- value: function getMaskId(parentNode) {
985
- var _this$getMaskMap2;
986
- return (_this$getMaskMap2 = this.getMaskMap(parentNode)) === null || _this$getMaskMap2 === void 0 ? void 0 : _this$getMaskMap2.id;
987
- }
988
- }, {
989
- key: "setMaskMap",
990
- value: function setMaskMap(key, value) {
991
- this.maskMap.set(key, value);
992
- }
993
- }, {
994
- key: "getMaskMap",
995
- value: function getMaskMap(key) {
996
- return this.maskMap.get(key);
997
- }
998
- }, {
999
- key: "executeMaker",
1000
- value: function executeMaker() {
1001
- var _this = this;
1002
- this.timer && cancelAnimationFrame(this.timer);
1003
- this.timer = requestAnimationFrame(function () {
1004
- var fn = _this.store.pop();
1005
- if (typeof fn === 'function') {
1006
- Reflect.apply(fn, _this, []);
1007
- _this.executeMaker();
1008
- }
1009
- });
1010
- }
1011
- }]);
1012
- return MaskQueueMaker;
1013
- }();
1014
- var bkMaskMaker = new MaskQueueMaker();
1015
- var BkMaskManager = /*#__PURE__*/function () {
1016
- /**
1017
- * 遮罩管理器
1018
- *
1019
- * @param multiInstance 是否允许多实例
1020
- * @param maskAttrTag 遮罩DOM唯一标志,支持自定义和 auto
1021
- */
1022
- function BkMaskManager(config) {
1023
- var _this2 = this;
1024
- _classCallCheck(this, BkMaskManager);
1025
- /** 遮罩容器 */
1026
- /** 遮罩备份容器,用于多个组件实例显示,遮罩只显示最后一个 **/
1027
- /** 是否允许多个遮罩实例 */
1028
- _defineProperty(this, "multiInstance", false);
1029
- /** 遮罩控制器唯一标识 */
1030
- _defineProperty(this, "uniqueMaskAttrTag", '');
1031
- /** 设置弹出层父级组件,默认是body */
1032
- _defineProperty(this, "parentNode", document.body);
1033
- /** 遮罩当前显示组件实例 **/
1034
- _defineProperty(this, "activeInstance", undefined);
1035
- /** 记录已在使用的z-index */
1036
- _defineProperty(this, "zIndexStore", new Map());
1037
- /** 记录最后一个UUID */
1038
- _defineProperty(this, "lastUUID", null);
1039
- /** 遮罩样式 **/
1040
- _defineProperty(this, "maskStyle", {
1041
- position: 'fixed',
1042
- left: 0,
1043
- top: 0,
1044
- bottom: 0,
1045
- right: 0,
1046
- display: 'none',
1047
- 'background-color': 'rgba(0,0,0,.6)'
1048
- });
1049
- // 用于判定是否已经初始化过当前实例
1050
- _defineProperty(this, "isInit", false);
1051
- _defineProperty(this, "maskAttrTag", 'auto');
1052
- var _ref = config || {},
1053
- _ref$multiInstance = _ref.multiInstance,
1054
- multiInstance = _ref$multiInstance === void 0 ? false : _ref$multiInstance,
1055
- _ref$maskAttrTag = _ref.maskAttrTag,
1056
- maskAttrTag = _ref$maskAttrTag === void 0 ? 'auto' : _ref$maskAttrTag,
1057
- _ref$parentNode = _ref.parentNode,
1058
- parentNode = _ref$parentNode === void 0 ? document.body : _ref$parentNode,
1059
- _ref$maskStyle = _ref.maskStyle,
1060
- maskStyle = _ref$maskStyle === void 0 ? {} : _ref$maskStyle;
1061
- this.parentNode = parentNode || document;
1062
- this.maskAttrTag = maskAttrTag;
1063
- this.activeInstance = undefined;
1064
- this.multiInstance = multiInstance;
1065
- this.uniqueMaskAttrTag = this.getMaskAttrTag(maskAttrTag);
1066
- // 避免多个实例多处初始化,此处会做队列处理
1067
- // 合并重复的处理请求
1068
- // 如果当前实例初始化时,仍未执行完队列,则需要进行请求合并
1069
- bkMaskMaker.appendMaker(function () {
1070
- _this2.initInstance(maskStyle);
1071
- });
1072
- }
1073
- _createClass(BkMaskManager, [{
1074
- key: "setOption",
1075
- value: function setOption(option) {
1076
- var _ref2 = option || {},
1077
- _ref2$parentNode = _ref2.parentNode,
1078
- parentNode = _ref2$parentNode === void 0 ? document.body : _ref2$parentNode,
1079
- _ref2$maskStyle = _ref2.maskStyle,
1080
- maskStyle = _ref2$maskStyle === void 0 ? {} : _ref2$maskStyle,
1081
- _ref2$maskAttrTag = _ref2.maskAttrTag,
1082
- maskAttrTag = _ref2$maskAttrTag === void 0 ? this.maskAttrTag : _ref2$maskAttrTag;
1083
- this.parentNode = parentNode || document;
1084
- this.setMaskStyle(Object.assign({}, this.maskStyle, maskStyle));
1085
- this.uniqueMaskAttrTag = this.getMaskAttrTag(maskAttrTag);
1086
- }
1087
- }, {
1088
- key: "destroyEvent",
1089
- value: function destroyEvent(id) {
1090
- if (this.mask) {
1091
- var events = getMaskEvent(this.mask) || [];
1092
- var index = events.findIndex(function (evt) {
1093
- return evt.instanceId === id;
1094
- });
1095
- if (index >= 0) {
1096
- events.splice(index, 1);
1097
- setMaskEventIns(this.mask, events);
1098
- }
1099
- }
1100
- }
1101
- /**
1102
- * 显示遮罩
1103
- * @param content 遮罩内容
1104
- * @param zIndex z-index
1105
- * @param showMask 是否显示遮罩
1106
- * @param appendStyle 追加样式
1107
- * @param transfer 是否显示将内容加入遮罩下
1108
- */
1109
- }, {
1110
- key: "show",
1111
- value: function show(content, zIndex) {
1112
- var showMask = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
1113
- var appendStyle = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
1114
- var uuid = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : null;
1115
- var transfer = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : false;
1116
- var onMaskClick = arguments.length > 6 ? arguments[6] : undefined;
1117
- var instanceId = arguments.length > 7 ? arguments[7] : undefined;
1118
- var uid = uuid !== null && uuid !== void 0 ? uuid : random(16);
1119
- // @ts-ignore
1120
- var localZIndex = /-?\d+/.test("".concat(zIndex)) ? zIndex : bkZIndexManager.getModalNextIndex();
1121
- var style = Object.assign({}, this.maskStyle, appendStyle || {});
1122
- /**
1123
- * 如果不显示遮罩,此处遮罩继承父级
1124
- * 同时,如果父级弹出层有遮罩,此处不能覆盖
1125
- */
1126
- if (!showMask) {
1127
- if (this.lastUUID) {
1128
- var preStore = this.zIndexStore.get(this.lastUUID);
1129
- if (preStore) {
1130
- style = preStore === null || preStore === void 0 ? void 0 : preStore.style;
1131
- }
1132
- }
1133
- }
1134
- /** 缓存当前z-index */
1135
- this.storeMaskInsCfg({
1136
- zIndex: localZIndex,
1137
- style: _objectSpread({}, style),
1138
- uuid: uid,
1139
- preUID: this.lastUUID
1140
- });
1141
- Object.assign(style, {
1142
- display: 'block',
1143
- 'z-index': "".concat(localZIndex),
1144
- 'pointer-events': 'all'
1145
- });
1146
- this.initInstance(style);
1147
- if (onMaskClick) {
1148
- this.catchClickEvent(content, onMaskClick, instanceId);
1149
- }
1150
- this.setMaskStyle(style);
1151
- bkMaskMaker.pushMaskStyle(this.parentNode, _objectSpread({}, style));
1152
- this.backupMask.style.setProperty('z-index', "".concat(localZIndex - 1));
1153
- if (!showMask) {
1154
- this.mask.style.setProperty('pointer-events', 'none');
1155
- content === null || content === void 0 ? void 0 : content.style.setProperty('pointer-events', 'all');
1156
- }
1157
- if (content) {
1158
- if (transfer) content.style.setProperty('z-index', "".concat(localZIndex + 1)); // 表明内容不在遮罩下,内容区z-index + 1
1159
- this.activeInstance = content;
1160
- this.appendContentToMask(content); // 表明内容在body下,即在遮罩下
1161
- }
1162
- }
1163
- }, {
1164
- key: "hide",
1165
- value: function hide() {
1166
- var transfer = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
1167
- var content = arguments.length > 1 ? arguments[1] : undefined;
1168
- var uuid = arguments.length > 2 ? arguments[2] : undefined;
1169
- var uid = uuid !== null && uuid !== void 0 ? uuid : this.lastUUID;
1170
- if (!transfer) {
1171
- var _this$activeInstance;
1172
- content === null || content === void 0 ? void 0 : content.remove();
1173
- (_this$activeInstance = this.activeInstance) === null || _this$activeInstance === void 0 ? void 0 : _this$activeInstance.remove();
1174
- }
1175
- this.removeClickEvent();
1176
- this.activeInstance = undefined;
1177
- this.popIndexStore(uid);
1178
- var maskList = bkMaskMaker.getMaskStyles(this.parentNode);
1179
- maskList === null || maskList === void 0 ? void 0 : maskList.pop();
1180
- if (!(maskList !== null && maskList !== void 0 && maskList.length)) {
1181
- this.mask.style.setProperty('display', 'none');
1182
- } else {
1183
- var style = maskList.slice(-1)[0];
1184
- this.setMaskStyle(style);
1185
- }
1186
- }
1187
- }, {
1188
- key: "storeMaskInsCfg",
1189
- value: function storeMaskInsCfg(config) {
1190
- this.zIndexStore.set(config.uuid, config);
1191
- this.lastUUID = config.uuid;
1192
- return this.zIndexStore.get(config.uuid);
1193
- }
1194
- /**
1195
- * 移除最后一次缓存数据
1196
- */
1197
- }, {
1198
- key: "popIndexStore",
1199
- value: function popIndexStore(uuid) {
1200
- if (this.zIndexStore.has(uuid)) {
1201
- var rmIns = this.zIndexStore.get(uuid);
1202
- this.lastUUID = rmIns.preUID;
1203
- return this.zIndexStore["delete"](uuid);
1204
- }
1205
- this.lastUUID = null;
1206
- return false;
1207
- }
1208
- }, {
1209
- key: "backupActiveInstance",
1210
- value: function backupActiveInstance() {
1211
- if (this.activeInstance) {
1212
- this.backupMask.append(this.activeInstance);
1213
- }
1214
- }
1215
- }, {
1216
- key: "backupContentElement",
1217
- value: function backupContentElement(content) {
1218
- var _this$backupMask;
1219
- content && ((_this$backupMask = this.backupMask) === null || _this$backupMask === void 0 ? void 0 : _this$backupMask.append(content));
1220
- }
1221
- }, {
1222
- key: "getActiveContentInstance",
1223
- value: function getActiveContentInstance() {
1224
- return this.activeInstance;
1225
- }
1226
- }, {
1227
- key: "removeClickEvent",
1228
- value: function removeClickEvent() {
1229
- // if (this.mask) {
1230
- // const events = getMaskEvent(this.mask);
1231
- // if (!events.length) {
1232
- // console.log('removeEventListener handleMaskClick');
1233
- // this.mask.removeEventListener('click', this.handleMaskClick);
1234
- // }
1235
- // }
1236
- }
1237
- }, {
1238
- key: "initInstance",
1239
- value: function initInstance(maskStyle) {
1240
- if (!this.isInit) {
1241
- this.isInit = true;
1242
- this.backupMask = this.getBackupMask();
1243
- var _this$getMask = this.getMask(),
1244
- instance = _this$getMask.instance,
1245
- isExist = _this$getMask.isExist;
1246
- this.mask = instance;
1247
- !isExist && this.setMaskStyle(Object.assign({}, this.maskStyle, maskStyle));
1248
- }
1249
- }
1250
- /**
1251
- * 初始化当前遮罩管理器
1252
- * @returns 当前遮罩容器
1253
- */
1254
- }, {
1255
- key: "getMask",
1256
- value: function getMask() {
1257
- var _this3 = this;
1258
- if (this.multiInstance) {
1259
- return {
1260
- instance: this.createMask(),
1261
- isExist: false
1262
- };
1263
- }
1264
- var isExist = true;
1265
- var div = this.parentNode.querySelector("[data-bk-mask-uid='".concat(this.uniqueMaskAttrTag, "']"));
1266
- if (!div) {
1267
- isExist = false;
1268
- div = this.createMask();
1269
- // 选中 sideslider content 中的内容,将光标移动到 mask 处再松开鼠标,此时也会触发 mask 的 click,因此改为 mousedown
1270
- div.addEventListener('mousedown', function (e) {
1271
- return _this3.handleMaskClick(e);
1272
- }, true);
1273
- }
1274
- return {
1275
- instance: div,
1276
- isExist: isExist
1277
- };
1278
- }
1279
- }, {
1280
- key: "catchClickEvent",
1281
- value: function catchClickEvent(content, onMaskClick, instanceId) {
1282
- if (this.mask) {
1283
- setMaskEvent(this.mask, onMaskClick, [], content, instanceId);
1284
- }
1285
- }
1286
- }, {
1287
- key: "handleMaskClick",
1288
- value: function handleMaskClick(e) {
1289
- if (e.target !== this.mask) {
1290
- return;
1291
- }
1292
- var events = getMaskEvent(this.mask);
1293
- if (events.length) {
1294
- var event = events.slice(-1)[0].event;
1295
- if (typeof event === 'function') {
1296
- event(e);
1297
- }
1298
- }
1299
- }
1300
- }, {
1301
- key: "getBackupMask",
1302
- value: function getBackupMask() {
1303
- var attrName = 'data-bk-backup-uid';
1304
- var div = this.parentNode.querySelector("[".concat(attrName, "]"));
1305
- if (!div) {
1306
- div = this.createMask(attrName);
1307
- }
1308
- return div;
1309
- }
1310
- /**
1311
- * 创建遮罩层DOM
1312
- * @returns 返回DOM
1313
- */
1314
- }, {
1315
- key: "createMask",
1316
- value: function createMask() {
1317
- var attrName = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'data-bk-mask-uid';
1318
- var div = document.createElement('div');
1319
- div.setAttribute(attrName, this.uniqueMaskAttrTag);
1320
- this.parentNode.append(div);
1321
- return div;
1322
- }
1323
- }, {
1324
- key: "setMaskStyle",
1325
- value: function setMaskStyle() {
1326
- var _this4 = this;
1327
- var maskStyle = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
1328
- if (this.mask) {
1329
- Object.entries(maskStyle).forEach(function (cfg) {
1330
- return _this4.mask.style.setProperty(cfg[0], cfg[1]);
1331
- });
1332
- }
1333
- }
1334
- /**
1335
- * 根据输入生成唯一遮罩标识
1336
- * @param tag 输入标识
1337
- * @returns string 返回唯一标识
1338
- */
1339
- }, {
1340
- key: "getMaskAttrTag",
1341
- value: function getMaskAttrTag(tag) {
1342
- if (/^(auto|\s+)$/i.test(tag) || tag === null || tag === undefined || tag === '') {
1343
- if (!bkMaskMaker.getMaskId(this.parentNode)) {
1344
- bkMaskMaker.setMaskId(this.parentNode, "__bk_mask_".concat(random(16)));
1345
- }
1346
- return bkMaskMaker.getMaskId(this.parentNode);
1347
- }
1348
- return tag;
1349
- }
1350
- }, {
1351
- key: "appendContentToMask",
1352
- value: function appendContentToMask(content) {
1353
- this.mask.append(content);
1354
- }
1355
- }]);
1356
- return BkMaskManager;
1357
- }();
1358
- var bKMaskManager = new BkMaskManager({});
1359
- ;// CONCATENATED MODULE: ../../packages/shared/src/pop-manager.ts
1360
-
1361
-
1362
- /*
1363
- * Tencent is pleased to support the open source community by making
1364
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
1365
- *
1366
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
1367
- *
1368
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
1369
- *
1370
- * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
1371
- *
1372
- * ---------------------------------------------------
1373
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
1374
- * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
1375
- * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
1376
- * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
1377
- *
1378
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
1379
- * the Software.
1380
- *
1381
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
1382
- * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1383
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
1384
- * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
1385
- * IN THE SOFTWARE.
1386
- */
1387
-
1388
-
1389
-
1390
-
1391
- var popInstanceStore = new WeakMap();
1392
- var BKPopIndexManager = /*#__PURE__*/function () {
1393
- /** 用来缓存弹出层实例 */
1394
-
1395
- function BKPopIndexManager(options) {
1396
- _classCallCheck(this, BKPopIndexManager);
1397
- this.clickFn = undefined;
1398
- this.uuidAttrName = 'data-bk-pop-uuid';
1399
- this.uniqId = random(16);
1400
- this.transfer = this.getParentNode(options === null || options === void 0 ? void 0 : options.transfer);
1401
- this.bKMaskManagerInstance = new BkMaskManager({
1402
- parentNode: this.getParentNode(options === null || options === void 0 ? void 0 : options.transfer),
1403
- popInstance: this,
1404
- onClick: this.onMaskClickFn
1405
- });
1406
- }
1407
- _createClass(BKPopIndexManager, [{
1408
- key: "popInstanceList",
1409
- get: function get() {
1410
- if (!popInstanceStore.has(this.transfer)) {
1411
- popInstanceStore.set(this.transfer, []);
1412
- }
1413
- return popInstanceStore.get(this.transfer);
1414
- },
1415
- set: function set(val) {
1416
- popInstanceStore.set(this.transfer, val);
1417
- }
1418
- }, {
1419
- key: "getParentNode",
1420
- value: function getParentNode(transfer) {
1421
- if (typeof transfer === 'string') {
1422
- var target = document.querySelector(transfer);
1423
- if (target) {
1424
- return target;
1425
- }
1426
- }
1427
- if (helper_isElement(transfer)) {
1428
- return transfer;
1429
- }
1430
- return document.body;
1431
- }
1432
- }, {
1433
- key: "onMaskClick",
1434
- value: function onMaskClick(callFn, target) {
1435
- this.clickFn = {
1436
- fn: callFn,
1437
- target: target
1438
- };
1439
- }
1440
- /**
1441
- * 展示弹窗
1442
- * @param content 弹窗内容
1443
- * @param showMask 是否显示遮罩
1444
- * @param appendStyle 追加样式
1445
- * @param transfer 是否显示在body内(即是否显示在div#app内,默认为false)
1446
- * @returns
1447
- */
1448
- }, {
1449
- key: "show",
1450
- value: function show(content) {
1451
- var showMask = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
1452
- var appendStyle = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
1453
- var transfer = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
1454
- var zindex = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : undefined;
1455
- var onMaskClick = arguments.length > 5 ? arguments[5] : undefined;
1456
- if (!content) {
1457
- console.warn('pop show error: content is null or undefined');
1458
- return;
1459
- }
1460
- var zIndex = typeof zindex === 'number' ? zindex : bkZIndexManager.getModalNextIndex();
1461
- var uuid = random(16);
1462
- content.setAttribute(this.uuidAttrName, uuid);
1463
- if (this.popInstanceList.length > 0) {
1464
- showMask && this.bKMaskManagerInstance.backupContentElement(this.popInstanceList.slice(-1)[0].content);
1465
- }
1466
- this.popInstanceList.push({
1467
- uuid: uuid,
1468
- zIndex: zIndex,
1469
- content: content,
1470
- showMask: showMask,
1471
- appendStyle: appendStyle
1472
- });
1473
- this.bKMaskManagerInstance.show(content, zIndex, showMask, appendStyle, uuid, transfer, onMaskClick, this.uniqId);
1474
- }
1475
- /**
1476
- * 销毁指定实例
1477
- * @param content 指定实例内容
1478
- * @param transfer
1479
- */
1480
- }, {
1481
- key: "destroy",
1482
- value: function destroy(content) {
1483
- var transfer = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
1484
- this.clickFn = undefined;
1485
- this.hide(content, transfer);
1486
- }
1487
- /**
1488
- * 关闭最后一个弹窗 如果当前还有父级弹窗,则激活父级弹窗
1489
- * @param removeLastContent 默认:true 是否自动关闭最后一个弹窗实例 某些场景下,已经主动关闭最后一个弹窗,此处只需要处理其他逻辑
1490
- */
1491
- }, {
1492
- key: "popHide",
1493
- value: function popHide() {
1494
- var removeLastContent = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
1495
- if (this.popInstanceList.length) {
1496
- if (removeLastContent) {
1497
- var lastItem = this.popInstanceList.pop();
1498
- this.bKMaskManagerInstance.popIndexStore(lastItem.uuid);
1499
- lastItem.remove();
1500
- }
1501
- if (this.popInstanceList.length) {
1502
- var activeItem = this.popInstanceList.slice(-1)[0];
1503
- var zIndex = activeItem.zIndex,
1504
- content = activeItem.content,
1505
- showMask = activeItem.showMask,
1506
- appendStyle = activeItem.appendStyle,
1507
- uuid = activeItem.uuid;
1508
- this.bKMaskManagerInstance.show(content, zIndex, showMask, appendStyle, uuid);
1509
- } else {
1510
- this.bKMaskManagerInstance.hide();
1511
- // this.clickFn.length = 0;
1512
- }
1513
- }
1514
- }
1515
- /**
1516
- * 关闭指定弹窗
1517
- * @param content { HTMLElement } 关闭弹窗内容
1518
- * **/
1519
- }, {
1520
- key: "hide",
1521
- value: function hide(content) {
1522
- var transfer = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
1523
- /** 检查当前实例是否存在于已缓存列表 */
1524
- var uuid = content === null || content === void 0 ? void 0 : content.getAttribute(this.uuidAttrName);
1525
- if (uuid) {
1526
- var itemIndex = this.popInstanceList.findIndex(function (item) {
1527
- return item.uuid === uuid;
1528
- });
1529
- if (itemIndex >= 0) {
1530
- if (!transfer) this.popInstanceList[itemIndex].content.remove();
1531
- this.popInstanceList.splice(itemIndex, 1);
1532
- this.bKMaskManagerInstance.popIndexStore(uuid);
1533
- if (!this.popInstanceList.length) {
1534
- this.bKMaskManagerInstance.hide(transfer);
1535
- } else {
1536
- this.popHide(false);
1537
- }
1538
- }
1539
- } else {
1540
- content === null || content === void 0 ? void 0 : content.remove();
1541
- }
1542
- this.bKMaskManagerInstance.removeClickEvent();
1543
- }
1544
- }, {
1545
- key: "removeLastEvent",
1546
- value: function removeLastEvent() {
1547
- this.bKMaskManagerInstance.destroyEvent(this.uniqId);
1548
- }
1549
- }, {
1550
- key: "onMaskClickFn",
1551
- value: function onMaskClickFn(e) {
1552
- if (this.clickFn) {
1553
- var fn = this.clickFn.fn;
1554
- if (fn) {
1555
- Reflect.apply(fn, this, [e]);
1556
- }
1557
- }
1558
- }
1559
- }]);
1560
- return BKPopIndexManager;
1561
- }();
1562
- var bkPopIndexManager = new BKPopIndexManager();
1563
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
1564
- function _arrayLikeToArray(arr, len) {
1565
- if (len == null || len > arr.length) len = arr.length;
1566
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
1567
- return arr2;
1568
- }
1569
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
1570
-
1571
- function _arrayWithoutHoles(arr) {
1572
- if (Array.isArray(arr)) return _arrayLikeToArray(arr);
1573
- }
1574
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/iterableToArray.js
1575
- function _iterableToArray(iter) {
1576
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
1577
- }
1578
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
1579
-
1580
- function _unsupportedIterableToArray(o, minLen) {
1581
- if (!o) return;
1582
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
1583
- var n = Object.prototype.toString.call(o).slice(8, -1);
1584
- if (n === "Object" && o.constructor) n = o.constructor.name;
1585
- if (n === "Map" || n === "Set") return Array.from(o);
1586
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
1587
- }
1588
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
1589
- function _nonIterableSpread() {
1590
- throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1591
- }
1592
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
1593
-
1594
-
1595
-
1596
-
1597
- function _toConsumableArray(arr) {
1598
- return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
1599
- }
1600
- ;// CONCATENATED MODULE: ../../node_modules/uuid/dist/esm-browser/native.js
1601
- const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);
1602
- /* harmony default export */ const esm_browser_native = ({
1603
- randomUUID
1604
- });
1605
- ;// CONCATENATED MODULE: ../../node_modules/uuid/dist/esm-browser/rng.js
1606
- // Unique ID creation requires a high quality random # generator. In the browser we therefore
1607
- // require the crypto API and do not support built-in fallback to lower quality random number
1608
- // generators (like Math.random()).
1609
- let getRandomValues;
1610
- const rnds8 = new Uint8Array(16);
1611
- function rng() {
1612
- // lazy load so that environments that need to polyfill have a chance to do so
1613
- if (!getRandomValues) {
1614
- // getRandomValues needs to be invoked in a context where "this" is a Crypto implementation.
1615
- getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto);
1616
-
1617
- if (!getRandomValues) {
1618
- throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');
1619
- }
1620
- }
1621
-
1622
- return getRandomValues(rnds8);
1623
- }
1624
- ;// CONCATENATED MODULE: ../../node_modules/uuid/dist/esm-browser/stringify.js
1625
-
1626
- /**
1627
- * Convert array of 16 byte values to UUID string format of the form:
1628
- * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
1629
- */
1630
-
1631
- const byteToHex = [];
1632
-
1633
- for (let i = 0; i < 256; ++i) {
1634
- byteToHex.push((i + 0x100).toString(16).slice(1));
1635
- }
1636
-
1637
- function unsafeStringify(arr, offset = 0) {
1638
- // Note: Be careful editing this code! It's been tuned for performance
1639
- // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
1640
- return byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]];
1641
- }
1642
-
1643
- function stringify(arr, offset = 0) {
1644
- const uuid = unsafeStringify(arr, offset); // Consistency check for valid UUID. If this throws, it's likely due to one
1645
- // of the following:
1646
- // - One or more input array values don't map to a hex octet (leading to
1647
- // "undefined" in the uuid)
1648
- // - Invalid input values for the RFC `version` or `variant` fields
1649
-
1650
- if (!validate(uuid)) {
1651
- throw TypeError('Stringified UUID is invalid');
1652
- }
1653
-
1654
- return uuid;
1655
- }
1656
-
1657
- /* harmony default export */ const esm_browser_stringify = ((/* unused pure expression or super */ null && (stringify)));
1658
- ;// CONCATENATED MODULE: ../../node_modules/uuid/dist/esm-browser/v4.js
1659
-
1660
-
1661
-
1662
-
1663
- function v4(options, buf, offset) {
1664
- if (esm_browser_native.randomUUID && !buf && !options) {
1665
- return esm_browser_native.randomUUID();
1666
- }
1667
-
1668
- options = options || {};
1669
- const rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
1670
-
1671
- rnds[6] = rnds[6] & 0x0f | 0x40;
1672
- rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided
1673
-
1674
- if (buf) {
1675
- offset = offset || 0;
1676
-
1677
- for (let i = 0; i < 16; ++i) {
1678
- buf[offset + i] = rnds[i];
1679
- }
1680
-
1681
- return buf;
1682
- }
1683
-
1684
- return unsafeStringify(rnds);
1685
- }
1686
-
1687
- /* harmony default export */ const esm_browser_v4 = (v4);
1688
- ;// CONCATENATED MODULE: external "@popperjs/core"
1689
- var core_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
1690
- var core_y = x => () => x
1691
- const core_namespaceObject = core_x({ ["createPopper"]: () => __WEBPACK_EXTERNAL_MODULE__popperjs_core_a5c7319c__.createPopper });
1692
- ;// CONCATENATED MODULE: ../../packages/shared/src/popover.ts
1693
-
1694
-
1695
-
1696
-
1697
-
1698
- /*
740
+
741
+
742
+
743
+ /*
1699
744
  * Tencent is pleased to support the open source community by making
1700
745
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
1701
746
  *
@@ -2090,53 +1135,168 @@ var getPopContainerId = function getPopContainerId() {
2090
1135
  popContainer.setAttribute('data-popper-id', popContainerId);
2091
1136
  document.body.append(popContainer);
2092
1137
  }
2093
- return "".concat(prefix).concat(popContainerId);
1138
+ return "".concat(prefix).concat(popContainerId);
1139
+ };
1140
+ ;// CONCATENATED MODULE: ../../packages/shared/src/scrollbar-width.ts
1141
+ /*
1142
+ * Tencent is pleased to support the open source community by making
1143
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
1144
+ *
1145
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
1146
+ *
1147
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
1148
+ *
1149
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
1150
+ *
1151
+ * ---------------------------------------------------
1152
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
1153
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
1154
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
1155
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
1156
+ *
1157
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
1158
+ * the Software.
1159
+ *
1160
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
1161
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1162
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
1163
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
1164
+ * IN THE SOFTWARE.
1165
+ */
1166
+ var scrollBarWidth;
1167
+ function scrollbarWidth() {
1168
+ if (scrollBarWidth !== undefined) return scrollBarWidth;
1169
+ var outer = document.createElement('div');
1170
+ outer.className = 'bk-scrollbar-wrap';
1171
+ outer.style.visibility = 'hidden';
1172
+ outer.style.width = '100px';
1173
+ outer.style.position = 'absolute';
1174
+ outer.style.top = '-9999px';
1175
+ document.body.appendChild(outer);
1176
+ var widthNoScroll = outer.offsetWidth;
1177
+ outer.style.overflow = 'scroll';
1178
+ var inner = document.createElement('div');
1179
+ inner.style.width = '100%';
1180
+ outer.appendChild(inner);
1181
+ var widthWithScroll = inner.offsetWidth;
1182
+ outer.parentNode.removeChild(outer);
1183
+ scrollBarWidth = widthNoScroll - widthWithScroll;
1184
+ return scrollBarWidth;
1185
+ }
1186
+ ;// CONCATENATED MODULE: external "lodash/throttle"
1187
+ var throttle_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
1188
+ var throttle_y = x => () => x
1189
+ const throttle_namespaceObject = throttle_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_lodash_throttle_a7b7506a__["default"] });
1190
+ ;// CONCATENATED MODULE: ../../packages/shared/src/utils.ts
1191
+ /*
1192
+ * Tencent is pleased to support the open source community by making
1193
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
1194
+ *
1195
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
1196
+ *
1197
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
1198
+ *
1199
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
1200
+ *
1201
+ * ---------------------------------------------------
1202
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
1203
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
1204
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
1205
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
1206
+ *
1207
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
1208
+ * the Software.
1209
+ *
1210
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
1211
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1212
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
1213
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
1214
+ * IN THE SOFTWARE.
1215
+ */
1216
+
1217
+ var lowerStr = 'abcdefghijklmnopqrstuvwxyz0123456789';
1218
+ /**
1219
+ * 生成n位长度的字符串
1220
+ * @param {Number} n
1221
+ * @param str,默认26位字母及数字
1222
+ */
1223
+ var random = function random(n) {
1224
+ var str = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : lowerStr;
1225
+ var result = '';
1226
+ for (var i = 0; i < n; i++) {
1227
+ result += str[parseInt((Math.random() * str.length).toString(), 10)];
1228
+ }
1229
+ return result;
1230
+ };
1231
+ /**
1232
+ * 监听目标元素的Resize事件
1233
+ * @param root 目标元素
1234
+ * @param callbackFn 执行函数
1235
+ * @param delay 延迟执行时间,默认 60
1236
+ * @param immediate 是否立即执行回调函数
1237
+ * @returns "{ start: () => void, stop: () => void }"
1238
+ */
1239
+ var observerResize = function observerResize(root, callbackFn) {
1240
+ var delay = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 60;
1241
+ var immediate = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
1242
+ var callFn = (0,throttle_namespaceObject["default"])(function () {
1243
+ if (typeof callbackFn === 'function') {
1244
+ callbackFn();
1245
+ }
1246
+ }, delay);
1247
+ var resizeObserver = new ResizeObserver(function () {
1248
+ callFn();
1249
+ });
1250
+ if (immediate) {
1251
+ if (typeof callbackFn === 'function') {
1252
+ callbackFn();
1253
+ }
1254
+ }
1255
+ return {
1256
+ start: function start() {
1257
+ resizeObserver.observe(root);
1258
+ },
1259
+ stop: function stop() {
1260
+ resizeObserver.disconnect();
1261
+ resizeObserver.unobserve(root);
1262
+ }
1263
+ };
2094
1264
  };
2095
- ;// CONCATENATED MODULE: ../../packages/shared/src/scrollbar-width.ts
2096
- /*
2097
- * Tencent is pleased to support the open source community by making
2098
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
2099
- *
2100
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
2101
- *
2102
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
2103
- *
2104
- * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
2105
- *
2106
- * ---------------------------------------------------
2107
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
2108
- * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
2109
- * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
2110
- * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
2111
- *
2112
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
2113
- * the Software.
2114
- *
2115
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
2116
- * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
2117
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
2118
- * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
2119
- * IN THE SOFTWARE.
1265
+ var capitalize = function capitalize(str) {
1266
+ return str[0].toUpperCase() + str.slice(1);
1267
+ };
1268
+ /**
1269
+ * 判断元素是否溢出容器
1270
+ * @param {*} el
1271
+ * @returns
2120
1272
  */
2121
- var scrollBarWidth;
2122
- function scrollbarWidth() {
2123
- if (scrollBarWidth !== undefined) return scrollBarWidth;
2124
- var outer = document.createElement('div');
2125
- outer.className = 'bk-scrollbar-wrap';
2126
- outer.style.visibility = 'hidden';
2127
- outer.style.width = '100px';
2128
- outer.style.position = 'absolute';
2129
- outer.style.top = '-9999px';
2130
- document.body.appendChild(outer);
2131
- var widthNoScroll = outer.offsetWidth;
2132
- outer.style.overflow = 'scroll';
2133
- var inner = document.createElement('div');
2134
- inner.style.width = '100%';
2135
- outer.appendChild(inner);
2136
- var widthWithScroll = inner.offsetWidth;
2137
- outer.parentNode.removeChild(outer);
2138
- scrollBarWidth = widthNoScroll - widthWithScroll;
2139
- return scrollBarWidth;
1273
+ function checkOverflow(el) {
1274
+ if (!el) return false;
1275
+ var createDom = function createDom(el, css) {
1276
+ var dom = document.createElement('div');
1277
+ var width = parseFloat(css.width) ? "".concat(Math.ceil(parseFloat(css.width)), "px") : css.width;
1278
+ dom.style.cssText = "\n width: ".concat(width, ";\n line-height: ").concat(css['line-height'], ";\n font-size: ").concat(css['font-size'], ";\n word-break: ").concat(css['word-break'], ";\n padding: ").concat(css.padding, ";\n ");
1279
+ dom.textContent = el.textContent;
1280
+ return dom;
1281
+ };
1282
+ var isOverflow = false;
1283
+ try {
1284
+ var css = window.getComputedStyle(el, null);
1285
+ var lineClamp = css.webkitLineClamp;
1286
+ if (lineClamp !== 'none') {
1287
+ var targetHeight = parseFloat(css.height);
1288
+ var dom = createDom(el, css);
1289
+ document.body.appendChild(dom);
1290
+ var domHeight = window.getComputedStyle(dom, null).height;
1291
+ document.body.removeChild(dom);
1292
+ isOverflow = targetHeight < parseFloat(domHeight);
1293
+ } else {
1294
+ isOverflow = el.clientWidth < el.scrollWidth || el.clientHeight < el.scrollHeight;
1295
+ }
1296
+ } catch (e) {
1297
+ console.warn('There is an error when check element overflow state: ', e);
1298
+ }
1299
+ return isOverflow;
2140
1300
  }
2141
1301
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
2142
1302
  function _setPrototypeOf(o, p) {
@@ -2483,8 +1643,204 @@ var SelectedTypeEnum;
2483
1643
  function SelectedType() {
2484
1644
  return (0,external_vue_types_namespaceObject.toType)('selectedStyle', {}).def(SelectedTypeEnum.CHECK);
2485
1645
  }
2486
- ;// CONCATENATED MODULE: ../../packages/shared/src/index.ts
1646
+ ;// CONCATENATED MODULE: ../../packages/shared/src/z-index-manager.ts
1647
+
1648
+
1649
+
1650
+ var _BKLAYERD_INDEX_EFAUL;
1651
+ /**
1652
+ * Tencent is pleased to support the open source community by making
1653
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
1654
+ *
1655
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
1656
+ *
1657
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
1658
+ *
1659
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
1660
+ *
1661
+ * ---------------------------------------------------
1662
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
1663
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
1664
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
1665
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
1666
+ *
1667
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
1668
+ * the Software.
1669
+ *
1670
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
1671
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1672
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
1673
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
1674
+ * IN THE SOFTWARE.
1675
+ */
1676
+ /**
1677
+ * 页面框架层级
1678
+ */
1679
+ var BKLAYERTYPE;
1680
+ (function (BKLAYERTYPE) {
1681
+ /** 网站内容的背景、拓扑的画布等 */
1682
+ BKLAYERTYPE["BOTTOM"] = "bottom";
1683
+ /** 页面呈现的各类内容 */
1684
+ BKLAYERTYPE["CONTENT"] = "content";
1685
+ /** 顶部导航、侧边导航以及用户信息等 */
1686
+ BKLAYERTYPE["NAVI"] = "navi";
1687
+ /** 页面需全屏操作的部分功能或编辑器的全屏模式 */
1688
+ BKLAYERTYPE["FULLSCREEN"] = "fullScreen";
1689
+ /** 各类功能插件 */
1690
+ BKLAYERTYPE["PLUGINS"] = "plugins";
1691
+ /** 各类弹窗或抽屉(非模态弹窗不考虑) */
1692
+ BKLAYERTYPE["MODAL"] = "modal";
1693
+ /** 各类消息提示 */
1694
+ BKLAYERTYPE["MESSAGE"] = "message";
1695
+ /** 各类popper提示 */
1696
+ BKLAYERTYPE["POPPER"] = "popper";
1697
+ })(BKLAYERTYPE || (BKLAYERTYPE = {}));
1698
+ /** 定义不同分层默认值 */
1699
+ var BKLAYERD_INDEX_EFAULT_VALUE = (_BKLAYERD_INDEX_EFAUL = {}, _defineProperty(_BKLAYERD_INDEX_EFAUL, BKLAYERTYPE.BOTTOM, 0), _defineProperty(_BKLAYERD_INDEX_EFAUL, BKLAYERTYPE.CONTENT, 1), _defineProperty(_BKLAYERD_INDEX_EFAUL, BKLAYERTYPE.NAVI, 100), _defineProperty(_BKLAYERD_INDEX_EFAUL, BKLAYERTYPE.FULLSCREEN, 1000), _defineProperty(_BKLAYERD_INDEX_EFAUL, BKLAYERTYPE.MODAL, 2000), _defineProperty(_BKLAYERD_INDEX_EFAUL, BKLAYERTYPE.PLUGINS, 5000), _defineProperty(_BKLAYERD_INDEX_EFAUL, BKLAYERTYPE.MESSAGE, 6000), _defineProperty(_BKLAYERD_INDEX_EFAUL, BKLAYERTYPE.POPPER, 8000), _BKLAYERD_INDEX_EFAUL);
1700
+ var BKZIndexManager = /*#__PURE__*/function () {
1701
+ function BKZIndexManager() {
1702
+ _classCallCheck(this, BKZIndexManager);
1703
+ _defineProperty(this, "storageLayerIndexValue", {});
1704
+ this.copyDefaultValue();
1705
+ }
1706
+ /**
1707
+ *
1708
+ * @param type
1709
+ * @returns
1710
+ */
1711
+ _createClass(BKZIndexManager, [{
1712
+ key: "getNextIndex",
1713
+ value: function getNextIndex(type) {
1714
+ if (Object.prototype.hasOwnProperty.call(this.storageLayerIndexValue, type)) {
1715
+ this.storageLayerIndexValue[type] = this.storageLayerIndexValue[type] + 1;
1716
+ return this.storageLayerIndexValue[type];
1717
+ }
1718
+ this.storageLayerIndexValue[BKLAYERTYPE.MODAL] = this.storageLayerIndexValue[BKLAYERTYPE.MODAL] + 1;
1719
+ return this.storageLayerIndexValue[BKLAYERTYPE.MODAL];
1720
+ }
1721
+ /** 获取弹窗类型最新zIndex的值 */
1722
+ }, {
1723
+ key: "getModalNextIndex",
1724
+ value: function getModalNextIndex() {
1725
+ return this.getNextIndex(BKLAYERTYPE.MODAL);
1726
+ }
1727
+ /** 获取Message类型最新zIndex的值 */
1728
+ }, {
1729
+ key: "getMessageNextIndex",
1730
+ value: function getMessageNextIndex() {
1731
+ return this.getNextIndex(BKLAYERTYPE.MESSAGE);
1732
+ }
1733
+ /** 获取全屏类型最新zIndex的值 */
1734
+ }, {
1735
+ key: "getFullScreenNextIndex",
1736
+ value: function getFullScreenNextIndex() {
1737
+ return this.getNextIndex(BKLAYERTYPE.FULLSCREEN);
1738
+ }
1739
+ /** 获取导航类型最新zIndex的值 */
1740
+ }, {
1741
+ key: "getNaviNextIndex",
1742
+ value: function getNaviNextIndex() {
1743
+ return this.getNextIndex(BKLAYERTYPE.NAVI);
1744
+ }
1745
+ /** 获取导航类型最新zIndex的值 */
1746
+ }, {
1747
+ key: "getPopperIndex",
1748
+ value: function getPopperIndex() {
1749
+ return this.getNextIndex(BKLAYERTYPE.POPPER);
1750
+ }
1751
+ /**
1752
+ * 更新自定义默认zIndex配置
1753
+ * @param config 配置项
1754
+ */
1755
+ }, {
1756
+ key: "setDefaultZIndex",
1757
+ value: function setDefaultZIndex(config) {
1758
+ var _this = this;
1759
+ Object.keys(config || {}).forEach(function (key) {
1760
+ if (Object.prototype.hasOwnProperty.call(_this.storageLayerIndexValue.__proto__, key)) {
1761
+ Object.assign(_this.storageLayerIndexValue.__proto__, _defineProperty({}, key, config[key]));
1762
+ }
1763
+ });
1764
+ this.copyDefaultValue();
1765
+ }
1766
+ /**
1767
+ * 重置zIndex
1768
+ * @param config 配置项
1769
+ */
1770
+ }, {
1771
+ key: "resetZIndex",
1772
+ value: function resetZIndex(config) {
1773
+ var _this2 = this;
1774
+ Object.keys(config || {}).forEach(function (key) {
1775
+ if (Object.prototype.hasOwnProperty.call(_this2.storageLayerIndexValue, key)) {
1776
+ Object.assign(_this2.storageLayerIndexValue, _defineProperty({}, key, config[key]));
1777
+ }
1778
+ });
1779
+ }
1780
+ /**
1781
+ * 根据默认设置创建副本
1782
+ */
1783
+ }, {
1784
+ key: "copyDefaultValue",
1785
+ value: function copyDefaultValue() {
1786
+ var properties = Object.keys(BKLAYERD_INDEX_EFAULT_VALUE).reduce(function (props, key) {
1787
+ return Object.assign(props, _defineProperty({}, key, {
1788
+ value: BKLAYERD_INDEX_EFAULT_VALUE[key],
1789
+ writable: true,
1790
+ configurable: true
1791
+ }));
1792
+ }, {});
1793
+ this.storageLayerIndexValue = Object.create(BKLAYERD_INDEX_EFAULT_VALUE, properties);
1794
+ }
1795
+ }]);
1796
+ return BKZIndexManager;
1797
+ }();
1798
+ var bkZIndexManager = new BKZIndexManager();
1799
+ ;// CONCATENATED MODULE: ../../packages/shared/src/mask.ts
2487
1800
 
1801
+ 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; }
1802
+ 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; }
1803
+ var instanceStore = new WeakMap();
1804
+ var activeModal;
1805
+ var loopSetMaskStyle = function loopSetMaskStyle(modal, show) {
1806
+ if (!modal) {
1807
+ return;
1808
+ }
1809
+ if (instanceStore.has(modal)) {
1810
+ var _instanceStore$get = instanceStore.get(modal),
1811
+ _mask = _instanceStore$get.mask,
1812
+ backgroundColor = _instanceStore$get.backgroundColor;
1813
+ _mask === null || _mask === void 0 ? void 0 : _mask.style.setProperty('background-color', show ? 'transparent' : backgroundColor);
1814
+ }
1815
+ };
1816
+ var showMask = function showMask(options) {
1817
+ if (!options.el) {
1818
+ return;
1819
+ }
1820
+ if (!instanceStore.has(options.el)) {
1821
+ instanceStore.set(options.el, _objectSpread(_objectSpread({}, options), {}, {
1822
+ referenceParent: activeModal
1823
+ }));
1824
+ }
1825
+ var mask = options.mask,
1826
+ backgroundColor = options.backgroundColor;
1827
+ mask === null || mask === void 0 ? void 0 : mask.style.setProperty('background-color', backgroundColor);
1828
+ loopSetMaskStyle(activeModal, options.showMask);
1829
+ activeModal = options.el;
1830
+ };
1831
+ var hideMask = function hideMask(options) {
1832
+ if (options.el && instanceStore.has(options.el)) {
1833
+ var _instanceStore$get2 = instanceStore.get(options.el),
1834
+ referenceParent = _instanceStore$get2.referenceParent;
1835
+ activeModal = referenceParent;
1836
+ loopSetMaskStyle(referenceParent, false);
1837
+ }
1838
+ };
1839
+ var mask = {
1840
+ showMask: showMask,
1841
+ hideMask: hideMask
1842
+ };
1843
+ ;// CONCATENATED MODULE: ../../packages/shared/src/index.ts
2488
1844
 
2489
1845
 
2490
1846
 
@@ -2622,9 +1978,7 @@ function arrayEqual() {
2622
1978
  var __webpack_exports__AlignEnum = __webpack_exports__.oY;
2623
1979
  var __webpack_exports__BKLAYERD_INDEX_EFAULT_VALUE = __webpack_exports__.p3;
2624
1980
  var __webpack_exports__BKLAYERTYPE = __webpack_exports__.Ql;
2625
- var __webpack_exports__BKPopIndexManager = __webpack_exports__.Eo;
2626
1981
  var __webpack_exports__BKPopover = __webpack_exports__.mZ;
2627
- var __webpack_exports__BkMaskManager = __webpack_exports__.Wg;
2628
1982
  var __webpack_exports__DialogTypeEnum = __webpack_exports__._D;
2629
1983
  var __webpack_exports__DirectionEnum = __webpack_exports__.dq;
2630
1984
  var __webpack_exports__EMPTY_OBJ = __webpack_exports__.kT;
@@ -2651,8 +2005,6 @@ var __webpack_exports__ThemeEnum = __webpack_exports__.bY;
2651
2005
  var __webpack_exports__TriggerEnum = __webpack_exports__.os;
2652
2006
  var __webpack_exports__alignType = __webpack_exports__.WW;
2653
2007
  var __webpack_exports__arrayEqual = __webpack_exports__.h6;
2654
- var __webpack_exports__bKMaskManager = __webpack_exports__.Lx;
2655
- var __webpack_exports__bkPopIndexManager = __webpack_exports__.aR;
2656
2008
  var __webpack_exports__bkZIndexManager = __webpack_exports__.ue;
2657
2009
  var __webpack_exports__capitalize = __webpack_exports__.kC;
2658
2010
  var __webpack_exports__checkOverflow = __webpack_exports__.ao;
@@ -2676,6 +2028,7 @@ var __webpack_exports__isFinite = __webpack_exports__.xV;
2676
2028
  var __webpack_exports__isNullOrUndef = __webpack_exports__.sS;
2677
2029
  var __webpack_exports__isObject = __webpack_exports__.Kn;
2678
2030
  var __webpack_exports__lineStyleType = __webpack_exports__.zW;
2031
+ var __webpack_exports__mask = __webpack_exports__.Ax;
2679
2032
  var __webpack_exports__maybeShowTooltip = __webpack_exports__.oq;
2680
2033
  var __webpack_exports__merge = __webpack_exports__.TS;
2681
2034
  var __webpack_exports__mergeIf = __webpack_exports__.NG;
@@ -2700,4 +2053,4 @@ var __webpack_exports__useFormItem = __webpack_exports__.A9;
2700
2053
  var __webpack_exports__valueOrDefault = __webpack_exports__.Be;
2701
2054
  var __webpack_exports__withInstall = __webpack_exports__.nz;
2702
2055
  var __webpack_exports__withInstallProps = __webpack_exports__.B;
2703
- export { __webpack_exports__AlignEnum as AlignEnum, __webpack_exports__BKLAYERD_INDEX_EFAULT_VALUE as BKLAYERD_INDEX_EFAULT_VALUE, __webpack_exports__BKLAYERTYPE as BKLAYERTYPE, __webpack_exports__BKPopIndexManager as BKPopIndexManager, __webpack_exports__BKPopover as BKPopover, __webpack_exports__BkMaskManager as BkMaskManager, __webpack_exports__DialogTypeEnum as DialogTypeEnum, __webpack_exports__DirectionEnum as DirectionEnum, __webpack_exports__EMPTY_OBJ as EMPTY_OBJ, __webpack_exports__InputBehaviorEnum as InputBehaviorEnum, __webpack_exports__InputBehaviorType as InputBehaviorType, __webpack_exports__LineStyleEnum as LineStyleEnum, __webpack_exports__PlacementEnum as PlacementEnum, __webpack_exports__Placements as Placements, __webpack_exports__ProgressEnum as ProgressEnum, __webpack_exports__ProgressStrokeLineCapEnum as ProgressStrokeLineCapEnum, __webpack_exports__ProgressStrokeLineCapType as ProgressStrokeLineCapType, __webpack_exports__ProgressType as ProgressType, __webpack_exports__PropTypes as PropTypes, __webpack_exports__RenderDirectiveEnum as RenderDirectiveEnum, __webpack_exports__RenderType as RenderType, __webpack_exports__SelectedType as SelectedType, __webpack_exports__SelectedTypeEnum as SelectedTypeEnum, __webpack_exports__SizeEnum as SizeEnum, __webpack_exports__SwitcherThemeEnum as SwitcherThemeEnum, __webpack_exports__SwitcherThemeType as SwitcherThemeType, __webpack_exports__TagThemeEnum as TagThemeEnum, __webpack_exports__TagThemeType as TagThemeType, __webpack_exports__ThemeEnum as ThemeEnum, __webpack_exports__TriggerEnum as TriggerEnum, __webpack_exports__alignType as alignType, __webpack_exports__arrayEqual as arrayEqual, __webpack_exports__bKMaskManager as bKMaskManager, __webpack_exports__bkPopIndexManager as bkPopIndexManager, __webpack_exports__bkZIndexManager as bkZIndexManager, __webpack_exports__capitalize as capitalize, __webpack_exports__checkOverflow as checkOverflow, __webpack_exports__classes as classes, __webpack_exports__clone as clone, __webpack_exports__debounce as debounce, __webpack_exports__dialogTypeUnion as dialogTypeUnion, __webpack_exports__directionType as directionType, __webpack_exports__elementsEqual as elementsEqual, __webpack_exports__filterProperty as filterProperty, __webpack_exports__finiteOrDefault as finiteOrDefault, __webpack_exports__formItemKey as formItemKey, __webpack_exports__formKey as formKey, __webpack_exports__getPopContainerId as getPopContainerId, __webpack_exports__hasOverflowEllipsis as hasOverflowEllipsis, __webpack_exports__isArray as isArray, __webpack_exports__isElement as isElement, __webpack_exports__isEmpty as isEmpty, __webpack_exports__isEmptyObj as isEmptyObj, __webpack_exports__isFinite as isFinite, __webpack_exports__isNullOrUndef as isNullOrUndef, __webpack_exports__isObject as isObject, __webpack_exports__lineStyleType as lineStyleType, __webpack_exports__maybeShowTooltip as maybeShowTooltip, __webpack_exports__merge as merge, __webpack_exports__mergeIf as mergeIf, __webpack_exports__mergerFn as mergerFn, __webpack_exports__mergerIfFn as mergerIfFn, __webpack_exports__noop as noop, __webpack_exports__observerResize as observerResize, __webpack_exports__off as off, __webpack_exports__on as on, __webpack_exports__placementType as placementType, __webpack_exports__random as random, __webpack_exports__renderDirectiveType as renderDirectiveType, __webpack_exports__renderEmptyVNode as renderEmptyVNode, __webpack_exports__renderType as renderType, __webpack_exports__resolveClassName as resolveClassName, __webpack_exports__scrollTop as scrollTop, __webpack_exports__scrollbarWidth as scrollbarWidth, __webpack_exports__stringEnum as stringEnum, __webpack_exports__triggerType as triggerType, __webpack_exports__useForm as useForm, __webpack_exports__useFormItem as useFormItem, __webpack_exports__valueOrDefault as valueOrDefault, __webpack_exports__withInstall as withInstall, __webpack_exports__withInstallProps as withInstallProps };
2056
+ export { __webpack_exports__AlignEnum as AlignEnum, __webpack_exports__BKLAYERD_INDEX_EFAULT_VALUE as BKLAYERD_INDEX_EFAULT_VALUE, __webpack_exports__BKLAYERTYPE as BKLAYERTYPE, __webpack_exports__BKPopover as BKPopover, __webpack_exports__DialogTypeEnum as DialogTypeEnum, __webpack_exports__DirectionEnum as DirectionEnum, __webpack_exports__EMPTY_OBJ as EMPTY_OBJ, __webpack_exports__InputBehaviorEnum as InputBehaviorEnum, __webpack_exports__InputBehaviorType as InputBehaviorType, __webpack_exports__LineStyleEnum as LineStyleEnum, __webpack_exports__PlacementEnum as PlacementEnum, __webpack_exports__Placements as Placements, __webpack_exports__ProgressEnum as ProgressEnum, __webpack_exports__ProgressStrokeLineCapEnum as ProgressStrokeLineCapEnum, __webpack_exports__ProgressStrokeLineCapType as ProgressStrokeLineCapType, __webpack_exports__ProgressType as ProgressType, __webpack_exports__PropTypes as PropTypes, __webpack_exports__RenderDirectiveEnum as RenderDirectiveEnum, __webpack_exports__RenderType as RenderType, __webpack_exports__SelectedType as SelectedType, __webpack_exports__SelectedTypeEnum as SelectedTypeEnum, __webpack_exports__SizeEnum as SizeEnum, __webpack_exports__SwitcherThemeEnum as SwitcherThemeEnum, __webpack_exports__SwitcherThemeType as SwitcherThemeType, __webpack_exports__TagThemeEnum as TagThemeEnum, __webpack_exports__TagThemeType as TagThemeType, __webpack_exports__ThemeEnum as ThemeEnum, __webpack_exports__TriggerEnum as TriggerEnum, __webpack_exports__alignType as alignType, __webpack_exports__arrayEqual as arrayEqual, __webpack_exports__bkZIndexManager as bkZIndexManager, __webpack_exports__capitalize as capitalize, __webpack_exports__checkOverflow as checkOverflow, __webpack_exports__classes as classes, __webpack_exports__clone as clone, __webpack_exports__debounce as debounce, __webpack_exports__dialogTypeUnion as dialogTypeUnion, __webpack_exports__directionType as directionType, __webpack_exports__elementsEqual as elementsEqual, __webpack_exports__filterProperty as filterProperty, __webpack_exports__finiteOrDefault as finiteOrDefault, __webpack_exports__formItemKey as formItemKey, __webpack_exports__formKey as formKey, __webpack_exports__getPopContainerId as getPopContainerId, __webpack_exports__hasOverflowEllipsis as hasOverflowEllipsis, __webpack_exports__isArray as isArray, __webpack_exports__isElement as isElement, __webpack_exports__isEmpty as isEmpty, __webpack_exports__isEmptyObj as isEmptyObj, __webpack_exports__isFinite as isFinite, __webpack_exports__isNullOrUndef as isNullOrUndef, __webpack_exports__isObject as isObject, __webpack_exports__lineStyleType as lineStyleType, __webpack_exports__mask as mask, __webpack_exports__maybeShowTooltip as maybeShowTooltip, __webpack_exports__merge as merge, __webpack_exports__mergeIf as mergeIf, __webpack_exports__mergerFn as mergerFn, __webpack_exports__mergerIfFn as mergerIfFn, __webpack_exports__noop as noop, __webpack_exports__observerResize as observerResize, __webpack_exports__off as off, __webpack_exports__on as on, __webpack_exports__placementType as placementType, __webpack_exports__random as random, __webpack_exports__renderDirectiveType as renderDirectiveType, __webpack_exports__renderEmptyVNode as renderEmptyVNode, __webpack_exports__renderType as renderType, __webpack_exports__resolveClassName as resolveClassName, __webpack_exports__scrollTop as scrollTop, __webpack_exports__scrollbarWidth as scrollbarWidth, __webpack_exports__stringEnum as stringEnum, __webpack_exports__triggerType as triggerType, __webpack_exports__useForm as useForm, __webpack_exports__useFormItem as useFormItem, __webpack_exports__valueOrDefault as valueOrDefault, __webpack_exports__withInstall as withInstall, __webpack_exports__withInstallProps as withInstallProps };