bkui-vue 0.0.1-beta.467 → 0.0.1-beta.469

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 (97) hide show
  1. package/dist/index.cjs.js +5 -5
  2. package/dist/index.esm.js +294 -294
  3. package/dist/index.umd.js +5 -5
  4. package/lib/alert/alert.d.ts +5 -5
  5. package/lib/alert/index.d.ts +9 -9
  6. package/lib/cascader/cascader.d.ts +4 -4
  7. package/lib/cascader/index.d.ts +12 -12
  8. package/lib/code-diff/code-diff.d.ts +7 -7
  9. package/lib/code-diff/index.d.ts +9 -9
  10. package/lib/collapse/collapse-panel.d.ts +5 -5
  11. package/lib/collapse/index.d.ts +5 -5
  12. package/lib/collapse/props.d.ts +2 -2
  13. package/lib/date-picker/base/month-table.d.ts +1 -1
  14. package/lib/date-picker/base/year-table.d.ts +1 -1
  15. package/lib/date-picker/date-picker.d.ts +4 -4
  16. package/lib/date-picker/index.d.ts +9 -9
  17. package/lib/date-picker/panel/date.d.ts +1 -1
  18. package/lib/date-picker/panel/time-range.d.ts +4 -4
  19. package/lib/date-picker/panel/time.d.ts +5 -5
  20. package/lib/date-picker/props.d.ts +1 -1
  21. package/lib/date-picker/time-picker.d.ts +4 -4
  22. package/lib/dialog/dialog.d.ts +16 -16
  23. package/lib/dialog/index.d.ts +31 -31
  24. package/lib/dialog/props.d.ts +6 -6
  25. package/lib/divider/divider.d.ts +6 -6
  26. package/lib/divider/index.d.ts +12 -12
  27. package/lib/divider/index.js +1 -1
  28. package/lib/divider/props.d.ts +2 -2
  29. package/lib/dropdown/dropdown.d.ts +5 -5
  30. package/lib/dropdown/index.d.ts +9 -9
  31. package/lib/image/image-viewer.d.ts +1 -1
  32. package/lib/image/image.d.ts +1 -1
  33. package/lib/image/index.d.ts +3 -3
  34. package/lib/input/index.d.ts +9 -9
  35. package/lib/input/input.d.ts +7 -7
  36. package/lib/loading/index.d.ts +4 -4
  37. package/lib/loading/loading.d.ts +3 -3
  38. package/lib/message/index.js +1 -1
  39. package/lib/message/messageConstructor.d.ts +1 -1
  40. package/lib/modal/index.d.ts +15 -15
  41. package/lib/modal/modal.d.ts +6 -6
  42. package/lib/modal/props.mixin.d.ts +2 -2
  43. package/lib/navigation/index.d.ts +3 -3
  44. package/lib/navigation/navigation.d.ts +1 -1
  45. package/lib/notify/notifyConstructor.d.ts +2 -2
  46. package/lib/overflow-title/components/overflow-title.d.ts +5 -5
  47. package/lib/overflow-title/index.d.ts +9 -9
  48. package/lib/overflow-title/props.d.ts +4 -4
  49. package/lib/plugin-popover/index.js +1 -1
  50. package/lib/popover/index.d.ts +9 -9
  51. package/lib/popover/index.js +1 -1
  52. package/lib/popover/popover.d.ts +5 -5
  53. package/lib/popover/props.d.ts +2 -2
  54. package/lib/progress/index.d.ts +3 -3
  55. package/lib/progress/progress.d.ts +1 -1
  56. package/lib/rate/star.d.ts +1 -1
  57. package/lib/resize-layout/index.d.ts +15 -15
  58. package/lib/resize-layout/resize-layout.d.ts +7 -7
  59. package/lib/search-select/index.d.ts +15 -15
  60. package/lib/search-select/input.d.ts +1 -1
  61. package/lib/search-select/search-select.d.ts +5 -5
  62. package/lib/search-select/selected.d.ts +1 -1
  63. package/lib/select/index.d.ts +61 -61
  64. package/lib/select/index.js +1 -1
  65. package/lib/select/select.d.ts +26 -26
  66. package/lib/select/selectTagInput.d.ts +5 -5
  67. package/lib/shared/vue-types.d.ts +11 -11
  68. package/lib/sideslider/index.d.ts +13 -13
  69. package/lib/sideslider/sideslider.d.ts +6 -6
  70. package/lib/steps/index.d.ts +6 -6
  71. package/lib/steps/steps.d.ts +2 -2
  72. package/lib/tab/index.d.ts +19 -19
  73. package/lib/tab/props.d.ts +8 -8
  74. package/lib/tab/tab-nav.d.ts +5 -5
  75. package/lib/tab/tab-panel.d.ts +6 -6
  76. package/lib/tab/tab.d.ts +6 -6
  77. package/lib/table/components/table-column.d.ts +7 -7
  78. package/lib/table/index.d.ts +36 -36
  79. package/lib/table/plugins/body-empty.d.ts +1 -1
  80. package/lib/table/props.d.ts +9 -9
  81. package/lib/table/table.d.ts +11 -11
  82. package/lib/table-column/index.d.ts +13 -13
  83. package/lib/tag/index.d.ts +9 -9
  84. package/lib/tag/tag.d.ts +5 -5
  85. package/lib/tag-input/index.d.ts +9 -9
  86. package/lib/tag-input/tag-input.d.ts +5 -5
  87. package/lib/tag-input/tag-props.d.ts +2 -2
  88. package/lib/time-picker/index.d.ts +9 -9
  89. package/lib/transfer/index.d.ts +3 -3
  90. package/lib/transfer/transfer.d.ts +1 -1
  91. package/lib/tree/index.d.ts +6 -6
  92. package/lib/tree/tree.d.ts +2 -2
  93. package/lib/upload/index.d.ts +4 -4
  94. package/lib/upload/upload.d.ts +1 -1
  95. package/lib/virtual-render/index.d.ts +3 -3
  96. package/lib/virtual-render/virtual-render.d.ts +1 -1
  97. package/package.json +1 -1
@@ -82,9 +82,9 @@ declare const _default: import("vue").DefineComponent<{
82
82
  onLoaded?: (...args: any[]) => any;
83
83
  }, {
84
84
  zIndex: number;
85
- maskClose: boolean;
86
85
  fit: "fill" | "none" | "contain" | "cover" | "scale-down";
87
86
  urlList: unknown[];
87
+ maskClose: boolean;
88
88
  src: string;
89
89
  fallback: string;
90
90
  lazy: boolean;
@@ -7,9 +7,9 @@ declare const BkImage: {
7
7
  $data: {};
8
8
  $props: {
9
9
  zIndex?: number;
10
- maskClose?: boolean;
11
10
  fit?: "fill" | "none" | "contain" | "cover" | "scale-down";
12
11
  urlList?: unknown[];
12
+ maskClose?: boolean;
13
13
  src?: string;
14
14
  fallback?: string;
15
15
  lazy?: boolean;
@@ -122,9 +122,9 @@ declare const BkImage: {
122
122
  onLoaded?: (...args: any[]) => any;
123
123
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "close" | "error" | "loaded")[], string, {
124
124
  zIndex: number;
125
- maskClose: boolean;
126
125
  fit: "fill" | "none" | "contain" | "cover" | "scale-down";
127
126
  urlList: unknown[];
127
+ maskClose: boolean;
128
128
  src: string;
129
129
  fallback: string;
130
130
  lazy: boolean;
@@ -241,9 +241,9 @@ declare const BkImage: {
241
241
  onLoaded?: (...args: any[]) => any;
242
242
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "close" | "error" | "loaded")[], "change" | "close" | "error" | "loaded", {
243
243
  zIndex: number;
244
- maskClose: boolean;
245
244
  fit: "fill" | "none" | "contain" | "cover" | "scale-down";
246
245
  urlList: unknown[];
246
+ maskClose: boolean;
247
247
  src: string;
248
248
  fallback: string;
249
249
  lazy: boolean;
@@ -5,13 +5,13 @@ declare const BkInput: {
5
5
  $props: {
6
6
  type?: string;
7
7
  prefix?: string;
8
- behavior?: "simplicity" | "normal";
9
8
  disabled?: boolean;
10
9
  placeholder?: string;
11
10
  step?: number;
12
11
  max?: number;
13
12
  min?: number;
14
13
  maxlength?: number;
14
+ behavior?: "normal" | "simplicity";
15
15
  clearable?: boolean;
16
16
  readonly?: boolean;
17
17
  prefixIcon?: string;
@@ -142,8 +142,8 @@ declare const BkInput: {
142
142
  maxlength: import("vue-types").VueTypeDef<number> & {
143
143
  default: number;
144
144
  };
145
- behavior: import("vue-types").VueTypeDef<"simplicity" | "normal"> & {
146
- default: "simplicity" | "normal";
145
+ behavior: import("vue-types").VueTypeDef<"normal" | "simplicity"> & {
146
+ default: "normal" | "simplicity";
147
147
  };
148
148
  showWordLimit: import("vue-types").VueTypeValidableDef<boolean> & {
149
149
  default: boolean;
@@ -213,13 +213,13 @@ declare const BkInput: {
213
213
  }, string, {
214
214
  type: string;
215
215
  prefix: string;
216
- behavior: "simplicity" | "normal";
217
216
  disabled: boolean;
218
217
  placeholder: string;
219
218
  step: number;
220
219
  max: number;
221
220
  min: number;
222
221
  maxlength: number;
222
+ behavior: "normal" | "simplicity";
223
223
  clearable: boolean;
224
224
  readonly: boolean;
225
225
  prefixIcon: string;
@@ -296,8 +296,8 @@ declare const BkInput: {
296
296
  maxlength: import("vue-types").VueTypeDef<number> & {
297
297
  default: number;
298
298
  };
299
- behavior: import("vue-types").VueTypeDef<"simplicity" | "normal"> & {
300
- default: "simplicity" | "normal";
299
+ behavior: import("vue-types").VueTypeDef<"normal" | "simplicity"> & {
300
+ default: "normal" | "simplicity";
301
301
  };
302
302
  showWordLimit: import("vue-types").VueTypeValidableDef<boolean> & {
303
303
  default: boolean;
@@ -397,8 +397,8 @@ declare const BkInput: {
397
397
  maxlength: import("vue-types").VueTypeDef<number> & {
398
398
  default: number;
399
399
  };
400
- behavior: import("vue-types").VueTypeDef<"simplicity" | "normal"> & {
401
- default: "simplicity" | "normal";
400
+ behavior: import("vue-types").VueTypeDef<"normal" | "simplicity"> & {
401
+ default: "normal" | "simplicity";
402
402
  };
403
403
  showWordLimit: import("vue-types").VueTypeValidableDef<boolean> & {
404
404
  default: boolean;
@@ -468,13 +468,13 @@ declare const BkInput: {
468
468
  }, string, {
469
469
  type: string;
470
470
  prefix: string;
471
- behavior: "simplicity" | "normal";
472
471
  disabled: boolean;
473
472
  placeholder: string;
474
473
  step: number;
475
474
  max: number;
476
475
  min: number;
477
476
  maxlength: number;
477
+ behavior: "normal" | "simplicity";
478
478
  clearable: boolean;
479
479
  readonly: boolean;
480
480
  prefixIcon: string;
@@ -43,8 +43,8 @@ export declare const inputType: {
43
43
  maxlength: import("vue-types").VueTypeDef<number> & {
44
44
  default: number;
45
45
  };
46
- behavior: import("vue-types").VueTypeDef<"simplicity" | "normal"> & {
47
- default: "simplicity" | "normal";
46
+ behavior: import("vue-types").VueTypeDef<"normal" | "simplicity"> & {
47
+ default: "normal" | "simplicity";
48
48
  };
49
49
  showWordLimit: import("vue-types").VueTypeValidableDef<boolean> & {
50
50
  default: boolean;
@@ -161,8 +161,8 @@ declare const _default: import("vue").DefineComponent<{
161
161
  maxlength: import("vue-types").VueTypeDef<number> & {
162
162
  default: number;
163
163
  };
164
- behavior: import("vue-types").VueTypeDef<"simplicity" | "normal"> & {
165
- default: "simplicity" | "normal";
164
+ behavior: import("vue-types").VueTypeDef<"normal" | "simplicity"> & {
165
+ default: "normal" | "simplicity";
166
166
  };
167
167
  showWordLimit: import("vue-types").VueTypeValidableDef<boolean> & {
168
168
  default: boolean;
@@ -258,8 +258,8 @@ declare const _default: import("vue").DefineComponent<{
258
258
  maxlength: import("vue-types").VueTypeDef<number> & {
259
259
  default: number;
260
260
  };
261
- behavior: import("vue-types").VueTypeDef<"simplicity" | "normal"> & {
262
- default: "simplicity" | "normal";
261
+ behavior: import("vue-types").VueTypeDef<"normal" | "simplicity"> & {
262
+ default: "normal" | "simplicity";
263
263
  };
264
264
  showWordLimit: import("vue-types").VueTypeValidableDef<boolean> & {
265
265
  default: boolean;
@@ -314,13 +314,13 @@ declare const _default: import("vue").DefineComponent<{
314
314
  }, {
315
315
  type: string;
316
316
  prefix: string;
317
- behavior: "simplicity" | "normal";
318
317
  disabled: boolean;
319
318
  placeholder: string;
320
319
  step: number;
321
320
  max: number;
322
321
  min: number;
323
322
  maxlength: number;
323
+ behavior: "normal" | "simplicity";
324
324
  clearable: boolean;
325
325
  readonly: boolean;
326
326
  prefixIcon: string;
@@ -15,7 +15,7 @@ declare const BkLoading: {
15
15
  isDirective?: boolean;
16
16
  class?: unknown;
17
17
  style?: unknown;
18
- readonly theme?: "success" | "warning" | "danger" | "primary" | "white";
18
+ readonly theme?: "white" | "success" | "warning" | "danger" | "primary";
19
19
  key?: string | number | symbol;
20
20
  ref?: import("vue").VNodeRef;
21
21
  ref_for?: boolean;
@@ -88,7 +88,7 @@ declare const BkLoading: {
88
88
  default: boolean;
89
89
  };
90
90
  theme: {
91
- type: import("vue").PropType<"success" | "warning" | "danger" | "primary" | "white">;
91
+ type: import("vue").PropType<"white" | "success" | "warning" | "danger" | "primary">;
92
92
  };
93
93
  title: import("vue-types").VueTypeValidableDef<string> & {
94
94
  default: string;
@@ -168,7 +168,7 @@ declare const BkLoading: {
168
168
  default: boolean;
169
169
  };
170
170
  theme: {
171
- type: import("vue").PropType<"success" | "warning" | "danger" | "primary" | "white">;
171
+ type: import("vue").PropType<"white" | "success" | "warning" | "danger" | "primary">;
172
172
  };
173
173
  title: import("vue-types").VueTypeValidableDef<string> & {
174
174
  default: string;
@@ -222,7 +222,7 @@ declare const BkLoading: {
222
222
  default: boolean;
223
223
  };
224
224
  theme: {
225
- type: import("vue").PropType<"success" | "warning" | "danger" | "primary" | "white">;
225
+ type: import("vue").PropType<"white" | "success" | "warning" | "danger" | "primary">;
226
226
  };
227
227
  title: import("vue-types").VueTypeValidableDef<string> & {
228
228
  default: string;
@@ -25,7 +25,7 @@ export declare const loadingTypes: {
25
25
  default: boolean;
26
26
  };
27
27
  theme: {
28
- type: PropType<"success" | "warning" | "danger" | "primary" | "white">;
28
+ type: PropType<"white" | "success" | "warning" | "danger" | "primary">;
29
29
  };
30
30
  title: import("vue-types").VueTypeValidableDef<string> & {
31
31
  default: string;
@@ -77,7 +77,7 @@ declare const _default: import("vue").DefineComponent<{
77
77
  default: boolean;
78
78
  };
79
79
  theme: {
80
- type: PropType<"success" | "warning" | "danger" | "primary" | "white">;
80
+ type: PropType<"white" | "success" | "warning" | "danger" | "primary">;
81
81
  };
82
82
  title: import("vue-types").VueTypeValidableDef<string> & {
83
83
  default: string;
@@ -127,7 +127,7 @@ declare const _default: import("vue").DefineComponent<{
127
127
  default: boolean;
128
128
  };
129
129
  theme: {
130
- type: PropType<"success" | "warning" | "danger" | "primary" | "white">;
130
+ type: PropType<"white" | "success" | "warning" | "danger" | "primary">;
131
131
  };
132
132
  title: import("vue-types").VueTypeValidableDef<string> & {
133
133
  default: string;
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see index.js.LICENSE.txt */
2
- !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("vue"),require("../shared"),require("./preset"),require("./components"),require("./directives"),require("./plugins"),require("./config-provider"),require("./hooks"),require("vue-types"),require("../icon"));else if("function"==typeof define&&define.amd)define(["vue","../shared","./preset","./components","./directives","./plugins","./config-provider","./hooks","vue-types","../icon"],t);else{var n="object"==typeof exports?t(require("vue"),require("../shared"),require("./preset"),require("./components"),require("./directives"),require("./plugins"),require("./config-provider"),require("./hooks"),require("vue-types"),require("../icon")):t(e.vue,e["../shared"],e["./preset"],e["./components"],e["./directives"],e["./plugins"],e["./config-provider"],e["./hooks"],e["vue-types"],e["../icon"]);for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}(self,((e,t,n,r,o,i,s,a,c,u)=>(()=>{var l={6064:(e,t,n)=>{"use strict";n(9887);var r=n(4689);n.o(r,"useLocale")&&n.d(t,{useLocale:function(){return r.useLocale}});var o=n(7257);n.o(o,"useLocale")&&n.d(t,{useLocale:function(){return o.useLocale}}),n(368);var i=n(7623);n.o(i,"useLocale")&&n.d(t,{useLocale:function(){return i.useLocale}});var s=n(5737);n.o(s,"useLocale")&&n.d(t,{useLocale:function(){return s.useLocale}})},7647:function(e){var t;t=function(){return function(){var e={686:function(e,t,n){"use strict";n.d(t,{default:function(){return b}});var r=n(279),o=n.n(r),i=n(370),s=n.n(i),a=n(817),c=n.n(a);function u(e){try{return document.execCommand(e)}catch(e){return!1}}var l=function(e){var t=c()(e);return u("cut"),t},f=function(e,t){var n=function(e){var t="rtl"===document.documentElement.getAttribute("dir"),n=document.createElement("textarea");n.style.fontSize="12pt",n.style.border="0",n.style.padding="0",n.style.margin="0",n.style.position="absolute",n.style[t?"right":"left"]="-9999px";var r=window.pageYOffset||document.documentElement.scrollTop;return n.style.top="".concat(r,"px"),n.setAttribute("readonly",""),n.value=e,n}(e);t.container.appendChild(n);var r=c()(n);return u("copy"),n.remove(),r},p=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body},n="";return"string"==typeof e?n=f(e,t):e instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(null==e?void 0:e.type)?n=f(e.value,t):(n=c()(e),u("copy")),n};function d(e){return d="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},d(e)}function m(e){return m="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},m(e)}function y(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(e,t)}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}function g(e,t){var n="data-clipboard-".concat(e);if(t.hasAttribute(n))return t.getAttribute(n)}var j=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(c,e);var t,n,r,o,i,a=(o=c,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=v(o);if(i){var n=v(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){return!t||"object"!==m(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,e)});function c(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(n=a.call(this)).resolveOptions(t),n.listenClick(e),n}return t=c,n=[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===m(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=s()(e,"click",(function(e){return t.onClick(e)}))}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget,n=this.action(t)||"copy",r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.action,n=void 0===t?"copy":t,r=e.container,o=e.target,i=e.text;if("copy"!==n&&"cut"!==n)throw new Error('Invalid "action" value, use either "copy" or "cut"');if(void 0!==o){if(!o||"object"!==d(o)||1!==o.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===n&&o.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===n&&(o.hasAttribute("readonly")||o.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes')}return i?p(i,{container:r}):o?"cut"===n?l(o):p(o,{container:r}):void 0}({action:n,container:this.container,target:this.target(t),text:this.text(t)});this.emit(r?"success":"error",{action:n,text:r,trigger:t,clearSelection:function(){t&&t.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(e){return g("action",e)}},{key:"defaultTarget",value:function(e){var t=g("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return g("text",e)}},{key:"destroy",value:function(){this.listener.destroy()}}],r=[{key:"copy",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body};return p(e,t)}},{key:"cut",value:function(e){return l(e)}},{key:"isSupported",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t="string"==typeof e?[e]:e,n=!!document.queryCommandSupported;return t.forEach((function(e){n=n&&!!document.queryCommandSupported(e)})),n}}],n&&y(t.prototype,n),r&&y(t,r),c}(o()),b=j},828:function(e){if("undefined"!=typeof Element&&!Element.prototype.matches){var t=Element.prototype;t.matches=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector}e.exports=function(e,t){for(;e&&9!==e.nodeType;){if("function"==typeof e.matches&&e.matches(t))return e;e=e.parentNode}}},438:function(e,t,n){var r=n(828);function o(e,t,n,r,o){var s=i.apply(this,arguments);return e.addEventListener(n,s,o),{destroy:function(){e.removeEventListener(n,s,o)}}}function i(e,t,n,o){return function(n){n.delegateTarget=r(n.target,t),n.delegateTarget&&o.call(e,n)}}e.exports=function(e,t,n,r,i){return"function"==typeof e.addEventListener?o.apply(null,arguments):"function"==typeof n?o.bind(null,document).apply(null,arguments):("string"==typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,(function(e){return o(e,t,n,r,i)})))}},879:function(e,t){t.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},t.nodeList=function(e){var n=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in e&&(0===e.length||t.node(e[0]))},t.string=function(e){return"string"==typeof e||e instanceof String},t.fn=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},370:function(e,t,n){var r=n(879),o=n(438);e.exports=function(e,t,n){if(!e&&!t&&!n)throw new Error("Missing required arguments");if(!r.string(t))throw new TypeError("Second argument must be a String");if(!r.fn(n))throw new TypeError("Third argument must be a Function");if(r.node(e))return function(e,t,n){return e.addEventListener(t,n),{destroy:function(){e.removeEventListener(t,n)}}}(e,t,n);if(r.nodeList(e))return function(e,t,n){return Array.prototype.forEach.call(e,(function(e){e.addEventListener(t,n)})),{destroy:function(){Array.prototype.forEach.call(e,(function(e){e.removeEventListener(t,n)}))}}}(e,t,n);if(r.string(e))return function(e,t,n){return o(document.body,e,t,n)}(e,t,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}},817:function(e){e.exports=function(e){var t;if("SELECT"===e.nodeName)e.focus(),t=e.value;else if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName){var n=e.hasAttribute("readonly");n||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),n||e.removeAttribute("readonly"),t=e.value}else{e.hasAttribute("contenteditable")&&e.focus();var r=window.getSelection(),o=document.createRange();o.selectNodeContents(e),r.removeAllRanges(),r.addRange(o),t=r.toString()}return t}},279:function(e){function t(){}t.prototype={on:function(e,t,n){var r=this.e||(this.e={});return(r[e]||(r[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var r=this;function o(){r.off(e,o),t.apply(n,arguments)}return o._=t,this.on(e,o,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),r=0,o=n.length;r<o;r++)n[r].fn.apply(n[r].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),r=n[e],o=[];if(r&&t)for(var i=0,s=r.length;i<s;i++)r[i].fn!==t&&r[i].fn._!==t&&o.push(r[i]);return o.length?n[e]=o:delete n[e],this}},e.exports=t,e.exports.TinyEmitter=t}},t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.exports}return n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n(686)}().default},e.exports=t()},4346:function(e){e.exports=function(){"use strict";function e(e){return null===e?"null":typeof e}function t(e){return!!e&&"object"==typeof e}function n(e){if(void 0===e)return"";if(null===e)return"Object";if("object"==typeof e&&!e.constructor)return"Object";var t=/function ([^(]*)/.exec(e.constructor.toString());return t&&t.length>1?t[1]:""}function r(e,t,n){return"null"===e||"undefined"===e?e:("string"!==e&&"stringifiable"!==e||(n='"'+n.replace(/"/g,'\\"')+'"'),"function"===e?t.toString().replace(/[\r\n]/g,"").replace(/\{.*\}/,"")+"{…}":n)}function o(o){var i="";return t(o)?(i=n(o),Array.isArray(o)&&(i+="["+o.length+"]")):i=r(e(o),o,o),i}function i(e){return"json-formatter-"+e}function s(e,t,n){var r=document.createElement(e);return t&&r.classList.add(i(t)),void 0!==n&&(n instanceof Node?r.appendChild(n):r.appendChild(document.createTextNode(String(n)))),r}!function(e){if(e&&"undefined"!=typeof window){var t=document.createElement("style");t.setAttribute("media","screen"),t.innerHTML=e,document.head.appendChild(t)}}('.json-formatter-row {\n font-family: monospace;\n}\n.json-formatter-row,\n.json-formatter-row a,\n.json-formatter-row a:hover {\n color: black;\n text-decoration: none;\n}\n.json-formatter-row .json-formatter-row {\n margin-left: 1rem;\n}\n.json-formatter-row .json-formatter-children.json-formatter-empty {\n opacity: 0.5;\n margin-left: 1rem;\n}\n.json-formatter-row .json-formatter-children.json-formatter-empty:after {\n display: none;\n}\n.json-formatter-row .json-formatter-children.json-formatter-empty.json-formatter-object:after {\n content: "No properties";\n}\n.json-formatter-row .json-formatter-children.json-formatter-empty.json-formatter-array:after {\n content: "[]";\n}\n.json-formatter-row .json-formatter-string,\n.json-formatter-row .json-formatter-stringifiable {\n color: green;\n white-space: pre;\n word-wrap: break-word;\n}\n.json-formatter-row .json-formatter-number {\n color: blue;\n}\n.json-formatter-row .json-formatter-boolean {\n color: red;\n}\n.json-formatter-row .json-formatter-null {\n color: #855A00;\n}\n.json-formatter-row .json-formatter-undefined {\n color: #ca0b69;\n}\n.json-formatter-row .json-formatter-function {\n color: #FF20ED;\n}\n.json-formatter-row .json-formatter-date {\n background-color: rgba(0, 0, 0, 0.05);\n}\n.json-formatter-row .json-formatter-url {\n text-decoration: underline;\n color: blue;\n cursor: pointer;\n}\n.json-formatter-row .json-formatter-bracket {\n color: blue;\n}\n.json-formatter-row .json-formatter-key {\n color: #00008B;\n padding-right: 0.2rem;\n}\n.json-formatter-row .json-formatter-toggler-link {\n cursor: pointer;\n}\n.json-formatter-row .json-formatter-toggler {\n line-height: 1.2rem;\n font-size: 0.7rem;\n vertical-align: middle;\n opacity: 0.6;\n cursor: pointer;\n padding-right: 0.2rem;\n}\n.json-formatter-row .json-formatter-toggler:after {\n display: inline-block;\n transition: transform 100ms ease-in;\n content: "►";\n}\n.json-formatter-row > a > .json-formatter-preview-text {\n opacity: 0;\n transition: opacity 0.15s ease-in;\n font-style: italic;\n}\n.json-formatter-row:hover > a > .json-formatter-preview-text {\n opacity: 0.6;\n}\n.json-formatter-row.json-formatter-open > .json-formatter-toggler-link .json-formatter-toggler:after {\n transform: rotate(90deg);\n}\n.json-formatter-row.json-formatter-open > .json-formatter-children:after {\n display: inline-block;\n}\n.json-formatter-row.json-formatter-open > a > .json-formatter-preview-text {\n display: none;\n}\n.json-formatter-row.json-formatter-open.json-formatter-empty:after {\n display: block;\n}\n.json-formatter-dark.json-formatter-row {\n font-family: monospace;\n}\n.json-formatter-dark.json-formatter-row,\n.json-formatter-dark.json-formatter-row a,\n.json-formatter-dark.json-formatter-row a:hover {\n color: white;\n text-decoration: none;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-row {\n margin-left: 1rem;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-children.json-formatter-empty {\n opacity: 0.5;\n margin-left: 1rem;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-children.json-formatter-empty:after {\n display: none;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-children.json-formatter-empty.json-formatter-object:after {\n content: "No properties";\n}\n.json-formatter-dark.json-formatter-row .json-formatter-children.json-formatter-empty.json-formatter-array:after {\n content: "[]";\n}\n.json-formatter-dark.json-formatter-row .json-formatter-string,\n.json-formatter-dark.json-formatter-row .json-formatter-stringifiable {\n color: #31F031;\n white-space: pre;\n word-wrap: break-word;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-number {\n color: #66C2FF;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-boolean {\n color: #EC4242;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-null {\n color: #EEC97D;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-undefined {\n color: #ef8fbe;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-function {\n color: #FD48CB;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-date {\n background-color: rgba(255, 255, 255, 0.05);\n}\n.json-formatter-dark.json-formatter-row .json-formatter-url {\n text-decoration: underline;\n color: #027BFF;\n cursor: pointer;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-bracket {\n color: #9494FF;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-key {\n color: #23A0DB;\n padding-right: 0.2rem;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-toggler-link {\n cursor: pointer;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-toggler {\n line-height: 1.2rem;\n font-size: 0.7rem;\n vertical-align: middle;\n opacity: 0.6;\n cursor: pointer;\n padding-right: 0.2rem;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-toggler:after {\n display: inline-block;\n transition: transform 100ms ease-in;\n content: "►";\n}\n.json-formatter-dark.json-formatter-row > a > .json-formatter-preview-text {\n opacity: 0;\n transition: opacity 0.15s ease-in;\n font-style: italic;\n}\n.json-formatter-dark.json-formatter-row:hover > a > .json-formatter-preview-text {\n opacity: 0.6;\n}\n.json-formatter-dark.json-formatter-row.json-formatter-open > .json-formatter-toggler-link .json-formatter-toggler:after {\n transform: rotate(90deg);\n}\n.json-formatter-dark.json-formatter-row.json-formatter-open > .json-formatter-children:after {\n display: inline-block;\n}\n.json-formatter-dark.json-formatter-row.json-formatter-open > a > .json-formatter-preview-text {\n display: none;\n}\n.json-formatter-dark.json-formatter-row.json-formatter-open.json-formatter-empty:after {\n display: block;\n}\n');var a=/(^\d{1,4}[\.|\\/|-]\d{1,2}[\.|\\/|-]\d{1,4})(\s*(?:0?[1-9]:[0-5]|1(?=[012])\d:[0-5])\d\s*[ap]m)?$/,c=/\d{2}:\d{2}:\d{2} GMT-\d{4}/,u=/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z/,l=window.requestAnimationFrame||function(e){return e(),0},f={hoverPreviewEnabled:!1,hoverPreviewArrayCount:100,hoverPreviewFieldCount:5,animateOpen:!0,animateClose:!0,theme:null,useToJSON:!0,sortPropertiesBy:null};return function(){function p(e,t,n,r){void 0===t&&(t=1),void 0===n&&(n=f),this.json=e,this.open=t,this.config=n,this.key=r,this._isOpen=null,void 0===this.config.hoverPreviewEnabled&&(this.config.hoverPreviewEnabled=f.hoverPreviewEnabled),void 0===this.config.hoverPreviewArrayCount&&(this.config.hoverPreviewArrayCount=f.hoverPreviewArrayCount),void 0===this.config.hoverPreviewFieldCount&&(this.config.hoverPreviewFieldCount=f.hoverPreviewFieldCount),void 0===this.config.useToJSON&&(this.config.useToJSON=f.useToJSON),""===this.key&&(this.key='""')}return Object.defineProperty(p.prototype,"isOpen",{get:function(){return null!==this._isOpen?this._isOpen:this.open>0},set:function(e){this._isOpen=e},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"isDate",{get:function(){return this.json instanceof Date||"string"===this.type&&(a.test(this.json)||u.test(this.json)||c.test(this.json))},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"isUrl",{get:function(){return"string"===this.type&&0===this.json.indexOf("http")},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"isArray",{get:function(){return Array.isArray(this.json)},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"isObject",{get:function(){return t(this.json)},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"isEmptyObject",{get:function(){return!this.keys.length&&!this.isArray},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"isEmpty",{get:function(){return this.isEmptyObject||this.keys&&!this.keys.length&&this.isArray},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"useToJSON",{get:function(){return this.config.useToJSON&&"stringifiable"===this.type},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"hasKey",{get:function(){return void 0!==this.key},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"constructorName",{get:function(){return n(this.json)},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"type",{get:function(){return this.config.useToJSON&&this.json&&this.json.toJSON?"stringifiable":e(this.json)},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"keys",{get:function(){if(this.isObject){var e=Object.keys(this.json);return!this.isArray&&this.config.sortPropertiesBy?e.sort(this.config.sortPropertiesBy):e}return[]},enumerable:!0,configurable:!0}),p.prototype.toggleOpen=function(){this.isOpen=!this.isOpen,this.element&&(this.isOpen?this.appendChildren(this.config.animateOpen):this.removeChildren(this.config.animateClose),this.element.classList.toggle(i("open")))},p.prototype.openAtDepth=function(e){void 0===e&&(e=1),e<0||(this.open=e,this.isOpen=0!==e,this.element&&(this.removeChildren(!1),0===e?this.element.classList.remove(i("open")):(this.appendChildren(this.config.animateOpen),this.element.classList.add(i("open")))))},p.prototype.getInlinepreview=function(){var e=this;if(this.isArray)return this.json.length>this.config.hoverPreviewArrayCount?"Array["+this.json.length+"]":"["+this.json.map(o).join(", ")+"]";var t=this.keys,n=t.slice(0,this.config.hoverPreviewFieldCount).map((function(t){return t+":"+o(e.json[t])})),r=t.length>=this.config.hoverPreviewFieldCount?"…":"";return"{"+n.join(", ")+r+"}"},p.prototype.render=function(){this.element=s("div","row");var e=this.isObject?s("a","toggler-link"):s("span");if(this.isObject&&!this.useToJSON&&e.appendChild(s("span","toggler")),this.hasKey&&e.appendChild(s("span","key",this.key+":")),this.isObject&&!this.useToJSON){var t=s("span","value"),n=s("span"),o=s("span","constructor-name",this.constructorName);if(n.appendChild(o),this.isArray){var a=s("span");a.appendChild(s("span","bracket","[")),a.appendChild(s("span","number",this.json.length)),a.appendChild(s("span","bracket","]")),n.appendChild(a)}t.appendChild(n),e.appendChild(t)}else{(t=this.isUrl?s("a"):s("span")).classList.add(i(this.type)),this.isDate&&t.classList.add(i("date")),this.isUrl&&(t.classList.add(i("url")),t.setAttribute("href",this.json));var c=r(this.type,this.json,this.useToJSON?this.json.toJSON():this.json);t.appendChild(document.createTextNode(c)),e.appendChild(t)}if(this.isObject&&this.config.hoverPreviewEnabled){var u=s("span","preview-text");u.appendChild(document.createTextNode(this.getInlinepreview())),e.appendChild(u)}var l=s("div","children");return this.isObject&&l.classList.add(i("object")),this.isArray&&l.classList.add(i("array")),this.isEmpty&&l.classList.add(i("empty")),this.config&&this.config.theme&&this.element.classList.add(i(this.config.theme)),this.isOpen&&this.element.classList.add(i("open")),this.element.appendChild(e),this.element.appendChild(l),this.isObject&&this.isOpen&&this.appendChildren(),this.isObject&&!this.useToJSON&&e.addEventListener("click",this.toggleOpen.bind(this)),this.element},p.prototype.appendChildren=function(e){var t=this;void 0===e&&(e=!1);var n=this.element.querySelector("div."+i("children"));if(n&&!this.isEmpty)if(e){var r=0,o=function(){var e=t.keys[r],i=new p(t.json[e],t.open-1,t.config,e);n.appendChild(i.render()),(r+=1)<t.keys.length&&(r>10?o():l(o))};l(o)}else this.keys.forEach((function(e){var r=new p(t.json[e],t.open-1,t.config,e);n.appendChild(r.render())}))},p.prototype.removeChildren=function(e){void 0===e&&(e=!1);var t=this.element.querySelector("div."+i("children"));if(e){var n=0,r=function(){t&&t.children.length&&(t.removeChild(t.children[0]),(n+=1)>10?r():l(r))};l(r)}else t&&(t.innerHTML="")},p}()}()},6870:e=>{"use strict";e.exports=u},4212:e=>{"use strict";e.exports=t},4689:e=>{"use strict";e.exports=r},7623:e=>{"use strict";e.exports=s},7257:e=>{"use strict";e.exports=o},5737:e=>{"use strict";e.exports=a},368:e=>{"use strict";e.exports=i},9887:e=>{"use strict";e.exports=n},748:t=>{"use strict";t.exports=e},210:e=>{"use strict";e.exports=c}},f={};function p(e){var t=f[e];if(void 0!==t)return t.exports;var n=f[e]={exports:{}};return l[e].call(n.exports,n,n.exports,p),n.exports}p.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return p.d(t,{a:t}),t},p.d=(e,t)=>{for(var n in t)p.o(t,n)&&!p.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},p.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),p.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var d={};return(()=>{"use strict";p.r(d),p.d(d,{default:()=>S});var e=p(748),t=p(4212),n={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]},r=1;function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function i(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e){return s="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},s(e)}function a(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==s(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===s(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c,u,l,f=p(6064),m=p(7647),y=p.n(m),h=p(4346),v=p.n(h),g=p(210),j=p(6870);!function(e){e.PRIMARY="primary",e.WARNING="warning",e.SUCCESS="success",e.ERROR="error"}(c||(c={})),function(e){e.KEY_VALUE="key-value",e.JSON="json"}(u||(u={})),function(e){e.ASSISTANT="assistant",e.DETAILS="details",e.FIX="fix",e.CLOSE="close"}(l||(l={}));var b={code:t.PropTypes.oneOfType([t.PropTypes.string,t.PropTypes.number]),overview:t.PropTypes.string,suggestion:t.PropTypes.string,details:t.PropTypes.string,assistant:t.PropTypes.string,type:(0,g.toType)("MessageContentType",{})},w={id:t.PropTypes.string.def(""),message:t.PropTypes.oneOfType([t.PropTypes.shape(b).loose,t.PropTypes.string]),theme:(0,g.toType)("messageTheme",{}).def(c.PRIMARY),delay:t.PropTypes.number,dismissable:t.PropTypes.bool.def(!0),offsetY:t.PropTypes.number.def(30),spacing:t.PropTypes.number.def(10),extCls:t.PropTypes.string.def(""),onClose:t.PropTypes.func,getContainer:t.PropTypes.instanceOf(HTMLElement),width:t.PropTypes.oneOfType([t.PropTypes.number,t.PropTypes.string]),actions:t.PropTypes.shape([])};const k=(0,e.defineComponent)({name:"Message",props:w,emits:["destroy"],setup:function(n,r){var o,c=this,p=r.emit,d=r.slots,m=(0,f.useLocale)("message"),h=(0,e.computed)((function(){return["bk-message","bk-message-".concat(n.theme),"".concat(n.extCls)]})),g=t.bkZIndexManager.getMessageNextIndex(),b=(0,e.computed)((function(){return/^\d+\.?\d*$/.test("".concat(n.delay))?n.delay:"object"!==s(n.message)||(0,e.isVNode)(n.message)?3e3:8e3})),w=(0,e.computed)((function(){return/^\d+/.test("".concat(n.width))?/^\d+\.?\d*$/.test("".concat(n.width))?"".concat(n.width,"px"):n.width:"object"!==s(n.message)||(0,e.isVNode)(n.message)?"".concat(560,"px"):"".concat(800,"px")})),k=(0,e.computed)((function(){return n.getContainer&&(0,t.isElement)(n.getContainer)})),S=(0,e.computed)((function(){return{top:"".concat(n.offsetY,"px"),zIndex:g,position:k.value?"absolute":"fixed",width:w.value}})),C=(0,e.ref)(null),T=(0,e.ref)(null),O=(0,e.ref)(null),x=(0,e.ref)(!1),E=(0,e.reactive)({isFix:!1,isDetailShow:!1}),L=null,N=function(){L=setTimeout((function(){E.isFix||(x.value=!1)}),b.value)},A=function(e){e.preventDefault(),e.stopPropagation(),x.value=!1},P=(0,e.ref)(!1),M=(0,e.ref)(null),V=function(e){var t=e;if("string"==typeof e)try{t=JSON.parse(e)}catch(e){console.error("Format Json Error: ".concat(e))}return t},F=function(t,r){if(E.isDetailShow=null!=r?r:!E.isDetailShow,I(t,E.isDetailShow),E.isDetailShow&&"object"===s(n.message)&&!(0,e.isVNode)(n.message)&&(n.message.type===u.JSON||!n.message.type)){var o=V(n.message.details),i=new(v())(o);setTimeout((function(){C.value&&(C.value.innerHTML="",C.value.append(i.render()))}))}},I=function(e,t){E.isFix=null!=t?t:!E.isFix};(0,e.onMounted)((function(){b.value&&N(),x.value=!0})),(0,e.onUnmounted)((function(){clearTimeout(L)})),(0,e.watch)(x,(function(){x.value||p("destroy",n.id)}));var D=(0,e.computed)((function(){var t;return a(t={},l.ASSISTANT,{id:l.ASSISTANT,icon:function(){return(0,e.createVNode)(j.WeixinPro,null,null)},text:function(){return m.value.assistant},onClick:function(e){n.message.assistant&&window.open(n.message.assistant,"_blank")}}),a(t,l.DETAILS,{id:l.DETAILS,icon:function(){return E.isDetailShow?(0,e.createVNode)(j.AngleDoubleUpLine,null,null):(0,e.createVNode)(j.AngleDoubleDownLine,null,null)},text:function(){return m.value.details},onClick:function(e){return F(e)}}),a(t,l.FIX,{id:l.FIX,icon:function(){return E.isFix?(0,e.createVNode)(j.FixShape,null,null):(0,e.createVNode)(j.FixLine,null,null)},classList:E.isFix?"fixed":"",onClick:function(e){return I(e)}}),a(t,l.CLOSE,{id:l.CLOSE,classList:"normal-color",icon:function(){return n.dismissable&&(0,e.createVNode)(j.Error,{class:"bk-message-close",onClick:A},null)},onClick:A}),t})),q=[l.ASSISTANT,l.DETAILS,l.FIX,l.CLOSE],R=(0,e.computed)((function(){var e;if((null===(e=n.actions)||void 0===e?void 0:e.length)>0){var t=n.actions.map((function(e){var t=e.id.toLocaleLowerCase(),n=D.value[t],r=null==n?void 0:n.onClick,o=Object.assign({},D.value[t]||{},e);if(o.id=t,void 0!==e.classList){var a=Array.isArray(e.classList)?e.classList:[e.classList],u=[];void 0!==n.classList&&(u=Array.isArray(n.classList)?n.classList:[n.classList]),o.classList=[].concat(i(u),i(a))}return"function"==typeof e.onClick?(o.onClick=function(){var t=Reflect.apply(e.onClick,c,[]);void 0!==s(t)&&!t||"function"!=typeof r||Reflect.apply(r,c,[])},o):(o.onClick=r,o)})),r=q.filter((function(e){return!t.some((function(t){return t.id===e}))})).map((function(e){return D.value[e]}));return t.push.apply(t,i(r)),t}return q.map((function(e){return D.value[e]}))}));return{classNames:h,styles:S,visible:x,close:A,setDetailsShow:F,fixMesage:I,copyMessage:function(e){if(!P.value){var t=new(y())(O.value,{text:function(){return n.message.details}});["success","error"].forEach((function(e){t.on(e,(function(){var t,n,r=T.value;M.value=e,r&&((t=r.classList).remove.apply(t,["success","error","is-hidden"]),(n=r.classList).add.apply(n,[e,"is-show"]),o&&clearTimeout(o),o=setTimeout((function(){var e,t;(e=r.classList).remove.apply(e,["is-show"]),(t=r.classList).add.apply(t,["is-hidden"])}),2e3))})),P.value=!0,setTimeout((function(){O.value.click()}))}))}},parseJson:V,handleMouseenter:function(e){clearTimeout(L)},handleMouseleave:function(e){b.value&&N()},renderMessageActions:function(){var t,n,r=function(t){var n=t.text,r=void 0;if("function"==typeof n&&(r=Reflect.apply(n,c,[])),void 0!==r)return"string"==typeof r?(0,e.createVNode)("span",{class:"message-action-text"},[r]):r};return null!==(n=null===(t=d.action)||void 0===t?void 0:t.call(d))&&void 0!==n?n:R.value.map((function(t){if(t.disabled)return null;if("function"==typeof t.render)return Reflect.apply(t.render,c,[]);var n,o,i=Array.isArray(t.classList)?t.classList.join(" "):t.classList;return(0,e.createVNode)("span",{class:["tool",t.id,i],onClick:function(e){return function(e,t){t.readonly||t.disabled||"function"==typeof t.onClick&&Reflect.apply(t.onClick,c,[e,t])}(e,t)}},[(n=t,o=n.icon,"function"==typeof o?Reflect.apply(o,c,[]):(0,e.createVNode)("span",{class:o},null)),r(t)])}))},refJsonContent:C,refCopyStatus:T,refCopyMsgDiv:O,toolOperation:E,copyStatus:M,t:m}},render:function(){var t=this,n=function(n){return{primary:(0,e.createVNode)(j.Info,null,null),warning:(0,e.createVNode)(j.Warn,null,null),success:(0,e.createVNode)(j.Success,null,null),error:(0,e.createVNode)(j.Close,null,null)}[null!=n?n:t.theme]},r=function(n){if(n.type===u.KEY_VALUE){var r=t.parseJson(n.details||{});return Object.keys(r).map((function(t){return(0,e.createVNode)("div",{class:"message-row"},[(0,e.createVNode)("label",null,[t]),r[t]])}))}};return(0,e.createVNode)(e.Transition,{name:"bk-message-fade"},{default:function(){return[(0,e.withDirectives)((0,e.createVNode)("div",{class:t.classNames,style:t.styles,onMouseenter:t.handleMouseenter,onMouseleave:t.handleMouseleave},["object"!==s(t.message)||(0,e.isVNode)(t.message)?(0,e.createVNode)(e.Fragment,null,[(0,e.createVNode)("div",{class:"bk-message-content"},[(0,e.createVNode)("div",{class:"bk-message-icon"},[n()]),t.message]),t.dismissable&&(0,e.createVNode)(j.Error,{class:"bk-message-close",onClick:t.close},null)]):(0,e.createVNode)("div",{class:"bk-message-content multi"},[(0,e.createVNode)("div",{class:"overview"},[(0,e.createVNode)("div",{class:"left-content"},[(0,e.createVNode)("div",{class:"bk-message-icon"},[n()]),(0,e.createVNode)("div",{class:"describe"},[null!==(a=null===(i=(o=t.$slots).title)||void 0===i?void 0:i.call(o))&&void 0!==a?a:"【".concat(t.message.code,"】").concat(t.message.overview," ").concat(t.message.suggestion)])]),(0,e.createVNode)("div",{class:"tools"},[t.renderMessageActions()])]),t.toolOperation.isDetailShow&&(0,e.createVNode)("div",{class:"message-detail"},[(0,e.createVNode)("div",{class:"message-copy",ref:"refCopyMsgDiv",onClick:t.copyMessage},[(0,e.createVNode)(j.CopyShape,null,null),(0,e.createVNode)("div",{class:"copy-status",ref:"refCopyStatus"},[(0,e.createVNode)("div",{class:"inner"},[n(t.copyStatus),"success"===t.copyStatus?t.t.copySuccess:t.t.copyFailed])])]),(0,e.createVNode)("div",{ref:"refJsonContent",class:"message-tree"},[r(t.message)])])])]),[[e.vShow,t.visible]])];var o,i,a}})}}),S=function(o){!function(o,i){var s=i,a=s.position||"top-right";"string"==typeof i&&(s={message:i});var c=i.onClose,u=s.offsetX||10,l=s.offsetY||30,f=s.spacing,p=void 0===f?10:f;n[a].forEach((function(e){l+=(e.el.offsetHeight||0)+p}));var d="message_".concat(r+=1);s=Object.assign(Object.assign({},s),{offsetX:u,offsetY:l,id:d});var m=document.createElement("div"),y=(0,e.createVNode)(o,s);y.props.onDestroy=function(t){!function(e,t,r,o){null==o||o();var i=t.startsWith("top")?"top":"bottom",s=-1;n[t].forEach((function(t,n){t.props.id===e&&(s=n)}));for(var a=n[t][s].el.offsetHeight,c=n[t].length,u=s;u<c;u++){var l=parseInt(n[t][u].el.style[i],10)-a-r;n[t][u].component.props.offsetY=l}n[t].splice(s,1)}(t,a,p,c),(0,e.render)(null,m)},(0,e.render)(y,m),n[a].push(y),(y.props.getContainer&&(0,t.isElement)(y.props.getContainer)?y.props.getContainer:document.body).appendChild(m.firstElementChild)}(k,o)}})(),d})()));
2
+ !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("vue"),require("../shared"),require("vue-types"),require("../config-provider"),require("../icon"));else if("function"==typeof define&&define.amd)define(["vue","../shared","vue-types","../config-provider","../icon"],t);else{var n="object"==typeof exports?t(require("vue"),require("../shared"),require("vue-types"),require("../config-provider"),require("../icon")):t(e.vue,e["../shared"],e["vue-types"],e["../config-provider"],e["../icon"]);for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}(self,((e,t,n,r,o)=>(()=>{var i={7647:function(e){var t;t=function(){return function(){var e={686:function(e,t,n){"use strict";n.d(t,{default:function(){return b}});var r=n(279),o=n.n(r),i=n(370),s=n.n(i),a=n(817),c=n.n(a);function l(e){try{return document.execCommand(e)}catch(e){return!1}}var u=function(e){var t=c()(e);return l("cut"),t},f=function(e,t){var n=function(e){var t="rtl"===document.documentElement.getAttribute("dir"),n=document.createElement("textarea");n.style.fontSize="12pt",n.style.border="0",n.style.padding="0",n.style.margin="0",n.style.position="absolute",n.style[t?"right":"left"]="-9999px";var r=window.pageYOffset||document.documentElement.scrollTop;return n.style.top="".concat(r,"px"),n.setAttribute("readonly",""),n.value=e,n}(e);t.container.appendChild(n);var r=c()(n);return l("copy"),n.remove(),r},p=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body},n="";return"string"==typeof e?n=f(e,t):e instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(null==e?void 0:e.type)?n=f(e.value,t):(n=c()(e),l("copy")),n};function d(e){return d="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},d(e)}function m(e){return m="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},m(e)}function y(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(e,t)}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}function g(e,t){var n="data-clipboard-".concat(e);if(t.hasAttribute(n))return t.getAttribute(n)}var j=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(c,e);var t,n,r,o,i,a=(o=c,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=v(o);if(i){var n=v(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){return!t||"object"!==m(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,e)});function c(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(n=a.call(this)).resolveOptions(t),n.listenClick(e),n}return t=c,n=[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===m(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=s()(e,"click",(function(e){return t.onClick(e)}))}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget,n=this.action(t)||"copy",r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.action,n=void 0===t?"copy":t,r=e.container,o=e.target,i=e.text;if("copy"!==n&&"cut"!==n)throw new Error('Invalid "action" value, use either "copy" or "cut"');if(void 0!==o){if(!o||"object"!==d(o)||1!==o.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===n&&o.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===n&&(o.hasAttribute("readonly")||o.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes')}return i?p(i,{container:r}):o?"cut"===n?u(o):p(o,{container:r}):void 0}({action:n,container:this.container,target:this.target(t),text:this.text(t)});this.emit(r?"success":"error",{action:n,text:r,trigger:t,clearSelection:function(){t&&t.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(e){return g("action",e)}},{key:"defaultTarget",value:function(e){var t=g("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return g("text",e)}},{key:"destroy",value:function(){this.listener.destroy()}}],r=[{key:"copy",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body};return p(e,t)}},{key:"cut",value:function(e){return u(e)}},{key:"isSupported",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t="string"==typeof e?[e]:e,n=!!document.queryCommandSupported;return t.forEach((function(e){n=n&&!!document.queryCommandSupported(e)})),n}}],n&&y(t.prototype,n),r&&y(t,r),c}(o()),b=j},828:function(e){if("undefined"!=typeof Element&&!Element.prototype.matches){var t=Element.prototype;t.matches=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector}e.exports=function(e,t){for(;e&&9!==e.nodeType;){if("function"==typeof e.matches&&e.matches(t))return e;e=e.parentNode}}},438:function(e,t,n){var r=n(828);function o(e,t,n,r,o){var s=i.apply(this,arguments);return e.addEventListener(n,s,o),{destroy:function(){e.removeEventListener(n,s,o)}}}function i(e,t,n,o){return function(n){n.delegateTarget=r(n.target,t),n.delegateTarget&&o.call(e,n)}}e.exports=function(e,t,n,r,i){return"function"==typeof e.addEventListener?o.apply(null,arguments):"function"==typeof n?o.bind(null,document).apply(null,arguments):("string"==typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,(function(e){return o(e,t,n,r,i)})))}},879:function(e,t){t.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},t.nodeList=function(e){var n=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in e&&(0===e.length||t.node(e[0]))},t.string=function(e){return"string"==typeof e||e instanceof String},t.fn=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},370:function(e,t,n){var r=n(879),o=n(438);e.exports=function(e,t,n){if(!e&&!t&&!n)throw new Error("Missing required arguments");if(!r.string(t))throw new TypeError("Second argument must be a String");if(!r.fn(n))throw new TypeError("Third argument must be a Function");if(r.node(e))return function(e,t,n){return e.addEventListener(t,n),{destroy:function(){e.removeEventListener(t,n)}}}(e,t,n);if(r.nodeList(e))return function(e,t,n){return Array.prototype.forEach.call(e,(function(e){e.addEventListener(t,n)})),{destroy:function(){Array.prototype.forEach.call(e,(function(e){e.removeEventListener(t,n)}))}}}(e,t,n);if(r.string(e))return function(e,t,n){return o(document.body,e,t,n)}(e,t,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}},817:function(e){e.exports=function(e){var t;if("SELECT"===e.nodeName)e.focus(),t=e.value;else if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName){var n=e.hasAttribute("readonly");n||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),n||e.removeAttribute("readonly"),t=e.value}else{e.hasAttribute("contenteditable")&&e.focus();var r=window.getSelection(),o=document.createRange();o.selectNodeContents(e),r.removeAllRanges(),r.addRange(o),t=r.toString()}return t}},279:function(e){function t(){}t.prototype={on:function(e,t,n){var r=this.e||(this.e={});return(r[e]||(r[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var r=this;function o(){r.off(e,o),t.apply(n,arguments)}return o._=t,this.on(e,o,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),r=0,o=n.length;r<o;r++)n[r].fn.apply(n[r].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),r=n[e],o=[];if(r&&t)for(var i=0,s=r.length;i<s;i++)r[i].fn!==t&&r[i].fn._!==t&&o.push(r[i]);return o.length?n[e]=o:delete n[e],this}},e.exports=t,e.exports.TinyEmitter=t}},t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.exports}return n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n(686)}().default},e.exports=t()},4346:function(e){e.exports=function(){"use strict";function e(e){return null===e?"null":typeof e}function t(e){return!!e&&"object"==typeof e}function n(e){if(void 0===e)return"";if(null===e)return"Object";if("object"==typeof e&&!e.constructor)return"Object";var t=/function ([^(]*)/.exec(e.constructor.toString());return t&&t.length>1?t[1]:""}function r(e,t,n){return"null"===e||"undefined"===e?e:("string"!==e&&"stringifiable"!==e||(n='"'+n.replace(/"/g,'\\"')+'"'),"function"===e?t.toString().replace(/[\r\n]/g,"").replace(/\{.*\}/,"")+"{…}":n)}function o(o){var i="";return t(o)?(i=n(o),Array.isArray(o)&&(i+="["+o.length+"]")):i=r(e(o),o,o),i}function i(e){return"json-formatter-"+e}function s(e,t,n){var r=document.createElement(e);return t&&r.classList.add(i(t)),void 0!==n&&(n instanceof Node?r.appendChild(n):r.appendChild(document.createTextNode(String(n)))),r}!function(e){if(e&&"undefined"!=typeof window){var t=document.createElement("style");t.setAttribute("media","screen"),t.innerHTML=e,document.head.appendChild(t)}}('.json-formatter-row {\n font-family: monospace;\n}\n.json-formatter-row,\n.json-formatter-row a,\n.json-formatter-row a:hover {\n color: black;\n text-decoration: none;\n}\n.json-formatter-row .json-formatter-row {\n margin-left: 1rem;\n}\n.json-formatter-row .json-formatter-children.json-formatter-empty {\n opacity: 0.5;\n margin-left: 1rem;\n}\n.json-formatter-row .json-formatter-children.json-formatter-empty:after {\n display: none;\n}\n.json-formatter-row .json-formatter-children.json-formatter-empty.json-formatter-object:after {\n content: "No properties";\n}\n.json-formatter-row .json-formatter-children.json-formatter-empty.json-formatter-array:after {\n content: "[]";\n}\n.json-formatter-row .json-formatter-string,\n.json-formatter-row .json-formatter-stringifiable {\n color: green;\n white-space: pre;\n word-wrap: break-word;\n}\n.json-formatter-row .json-formatter-number {\n color: blue;\n}\n.json-formatter-row .json-formatter-boolean {\n color: red;\n}\n.json-formatter-row .json-formatter-null {\n color: #855A00;\n}\n.json-formatter-row .json-formatter-undefined {\n color: #ca0b69;\n}\n.json-formatter-row .json-formatter-function {\n color: #FF20ED;\n}\n.json-formatter-row .json-formatter-date {\n background-color: rgba(0, 0, 0, 0.05);\n}\n.json-formatter-row .json-formatter-url {\n text-decoration: underline;\n color: blue;\n cursor: pointer;\n}\n.json-formatter-row .json-formatter-bracket {\n color: blue;\n}\n.json-formatter-row .json-formatter-key {\n color: #00008B;\n padding-right: 0.2rem;\n}\n.json-formatter-row .json-formatter-toggler-link {\n cursor: pointer;\n}\n.json-formatter-row .json-formatter-toggler {\n line-height: 1.2rem;\n font-size: 0.7rem;\n vertical-align: middle;\n opacity: 0.6;\n cursor: pointer;\n padding-right: 0.2rem;\n}\n.json-formatter-row .json-formatter-toggler:after {\n display: inline-block;\n transition: transform 100ms ease-in;\n content: "►";\n}\n.json-formatter-row > a > .json-formatter-preview-text {\n opacity: 0;\n transition: opacity 0.15s ease-in;\n font-style: italic;\n}\n.json-formatter-row:hover > a > .json-formatter-preview-text {\n opacity: 0.6;\n}\n.json-formatter-row.json-formatter-open > .json-formatter-toggler-link .json-formatter-toggler:after {\n transform: rotate(90deg);\n}\n.json-formatter-row.json-formatter-open > .json-formatter-children:after {\n display: inline-block;\n}\n.json-formatter-row.json-formatter-open > a > .json-formatter-preview-text {\n display: none;\n}\n.json-formatter-row.json-formatter-open.json-formatter-empty:after {\n display: block;\n}\n.json-formatter-dark.json-formatter-row {\n font-family: monospace;\n}\n.json-formatter-dark.json-formatter-row,\n.json-formatter-dark.json-formatter-row a,\n.json-formatter-dark.json-formatter-row a:hover {\n color: white;\n text-decoration: none;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-row {\n margin-left: 1rem;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-children.json-formatter-empty {\n opacity: 0.5;\n margin-left: 1rem;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-children.json-formatter-empty:after {\n display: none;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-children.json-formatter-empty.json-formatter-object:after {\n content: "No properties";\n}\n.json-formatter-dark.json-formatter-row .json-formatter-children.json-formatter-empty.json-formatter-array:after {\n content: "[]";\n}\n.json-formatter-dark.json-formatter-row .json-formatter-string,\n.json-formatter-dark.json-formatter-row .json-formatter-stringifiable {\n color: #31F031;\n white-space: pre;\n word-wrap: break-word;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-number {\n color: #66C2FF;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-boolean {\n color: #EC4242;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-null {\n color: #EEC97D;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-undefined {\n color: #ef8fbe;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-function {\n color: #FD48CB;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-date {\n background-color: rgba(255, 255, 255, 0.05);\n}\n.json-formatter-dark.json-formatter-row .json-formatter-url {\n text-decoration: underline;\n color: #027BFF;\n cursor: pointer;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-bracket {\n color: #9494FF;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-key {\n color: #23A0DB;\n padding-right: 0.2rem;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-toggler-link {\n cursor: pointer;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-toggler {\n line-height: 1.2rem;\n font-size: 0.7rem;\n vertical-align: middle;\n opacity: 0.6;\n cursor: pointer;\n padding-right: 0.2rem;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-toggler:after {\n display: inline-block;\n transition: transform 100ms ease-in;\n content: "►";\n}\n.json-formatter-dark.json-formatter-row > a > .json-formatter-preview-text {\n opacity: 0;\n transition: opacity 0.15s ease-in;\n font-style: italic;\n}\n.json-formatter-dark.json-formatter-row:hover > a > .json-formatter-preview-text {\n opacity: 0.6;\n}\n.json-formatter-dark.json-formatter-row.json-formatter-open > .json-formatter-toggler-link .json-formatter-toggler:after {\n transform: rotate(90deg);\n}\n.json-formatter-dark.json-formatter-row.json-formatter-open > .json-formatter-children:after {\n display: inline-block;\n}\n.json-formatter-dark.json-formatter-row.json-formatter-open > a > .json-formatter-preview-text {\n display: none;\n}\n.json-formatter-dark.json-formatter-row.json-formatter-open.json-formatter-empty:after {\n display: block;\n}\n');var a=/(^\d{1,4}[\.|\\/|-]\d{1,2}[\.|\\/|-]\d{1,4})(\s*(?:0?[1-9]:[0-5]|1(?=[012])\d:[0-5])\d\s*[ap]m)?$/,c=/\d{2}:\d{2}:\d{2} GMT-\d{4}/,l=/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z/,u=window.requestAnimationFrame||function(e){return e(),0},f={hoverPreviewEnabled:!1,hoverPreviewArrayCount:100,hoverPreviewFieldCount:5,animateOpen:!0,animateClose:!0,theme:null,useToJSON:!0,sortPropertiesBy:null};return function(){function p(e,t,n,r){void 0===t&&(t=1),void 0===n&&(n=f),this.json=e,this.open=t,this.config=n,this.key=r,this._isOpen=null,void 0===this.config.hoverPreviewEnabled&&(this.config.hoverPreviewEnabled=f.hoverPreviewEnabled),void 0===this.config.hoverPreviewArrayCount&&(this.config.hoverPreviewArrayCount=f.hoverPreviewArrayCount),void 0===this.config.hoverPreviewFieldCount&&(this.config.hoverPreviewFieldCount=f.hoverPreviewFieldCount),void 0===this.config.useToJSON&&(this.config.useToJSON=f.useToJSON),""===this.key&&(this.key='""')}return Object.defineProperty(p.prototype,"isOpen",{get:function(){return null!==this._isOpen?this._isOpen:this.open>0},set:function(e){this._isOpen=e},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"isDate",{get:function(){return this.json instanceof Date||"string"===this.type&&(a.test(this.json)||l.test(this.json)||c.test(this.json))},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"isUrl",{get:function(){return"string"===this.type&&0===this.json.indexOf("http")},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"isArray",{get:function(){return Array.isArray(this.json)},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"isObject",{get:function(){return t(this.json)},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"isEmptyObject",{get:function(){return!this.keys.length&&!this.isArray},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"isEmpty",{get:function(){return this.isEmptyObject||this.keys&&!this.keys.length&&this.isArray},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"useToJSON",{get:function(){return this.config.useToJSON&&"stringifiable"===this.type},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"hasKey",{get:function(){return void 0!==this.key},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"constructorName",{get:function(){return n(this.json)},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"type",{get:function(){return this.config.useToJSON&&this.json&&this.json.toJSON?"stringifiable":e(this.json)},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"keys",{get:function(){if(this.isObject){var e=Object.keys(this.json);return!this.isArray&&this.config.sortPropertiesBy?e.sort(this.config.sortPropertiesBy):e}return[]},enumerable:!0,configurable:!0}),p.prototype.toggleOpen=function(){this.isOpen=!this.isOpen,this.element&&(this.isOpen?this.appendChildren(this.config.animateOpen):this.removeChildren(this.config.animateClose),this.element.classList.toggle(i("open")))},p.prototype.openAtDepth=function(e){void 0===e&&(e=1),e<0||(this.open=e,this.isOpen=0!==e,this.element&&(this.removeChildren(!1),0===e?this.element.classList.remove(i("open")):(this.appendChildren(this.config.animateOpen),this.element.classList.add(i("open")))))},p.prototype.getInlinepreview=function(){var e=this;if(this.isArray)return this.json.length>this.config.hoverPreviewArrayCount?"Array["+this.json.length+"]":"["+this.json.map(o).join(", ")+"]";var t=this.keys,n=t.slice(0,this.config.hoverPreviewFieldCount).map((function(t){return t+":"+o(e.json[t])})),r=t.length>=this.config.hoverPreviewFieldCount?"…":"";return"{"+n.join(", ")+r+"}"},p.prototype.render=function(){this.element=s("div","row");var e=this.isObject?s("a","toggler-link"):s("span");if(this.isObject&&!this.useToJSON&&e.appendChild(s("span","toggler")),this.hasKey&&e.appendChild(s("span","key",this.key+":")),this.isObject&&!this.useToJSON){var t=s("span","value"),n=s("span"),o=s("span","constructor-name",this.constructorName);if(n.appendChild(o),this.isArray){var a=s("span");a.appendChild(s("span","bracket","[")),a.appendChild(s("span","number",this.json.length)),a.appendChild(s("span","bracket","]")),n.appendChild(a)}t.appendChild(n),e.appendChild(t)}else{(t=this.isUrl?s("a"):s("span")).classList.add(i(this.type)),this.isDate&&t.classList.add(i("date")),this.isUrl&&(t.classList.add(i("url")),t.setAttribute("href",this.json));var c=r(this.type,this.json,this.useToJSON?this.json.toJSON():this.json);t.appendChild(document.createTextNode(c)),e.appendChild(t)}if(this.isObject&&this.config.hoverPreviewEnabled){var l=s("span","preview-text");l.appendChild(document.createTextNode(this.getInlinepreview())),e.appendChild(l)}var u=s("div","children");return this.isObject&&u.classList.add(i("object")),this.isArray&&u.classList.add(i("array")),this.isEmpty&&u.classList.add(i("empty")),this.config&&this.config.theme&&this.element.classList.add(i(this.config.theme)),this.isOpen&&this.element.classList.add(i("open")),this.element.appendChild(e),this.element.appendChild(u),this.isObject&&this.isOpen&&this.appendChildren(),this.isObject&&!this.useToJSON&&e.addEventListener("click",this.toggleOpen.bind(this)),this.element},p.prototype.appendChildren=function(e){var t=this;void 0===e&&(e=!1);var n=this.element.querySelector("div."+i("children"));if(n&&!this.isEmpty)if(e){var r=0,o=function(){var e=t.keys[r],i=new p(t.json[e],t.open-1,t.config,e);n.appendChild(i.render()),(r+=1)<t.keys.length&&(r>10?o():u(o))};u(o)}else this.keys.forEach((function(e){var r=new p(t.json[e],t.open-1,t.config,e);n.appendChild(r.render())}))},p.prototype.removeChildren=function(e){void 0===e&&(e=!1);var t=this.element.querySelector("div."+i("children"));if(e){var n=0,r=function(){t&&t.children.length&&(t.removeChild(t.children[0]),(n+=1)>10?r():u(r))};u(r)}else t&&(t.innerHTML="")},p}()}()},2717:e=>{"use strict";e.exports=r},6870:e=>{"use strict";e.exports=o},4212:e=>{"use strict";e.exports=t},748:t=>{"use strict";t.exports=e},210:e=>{"use strict";e.exports=n}},s={};function a(e){var t=s[e];if(void 0!==t)return t.exports;var n=s[e]={exports:{}};return i[e].call(n.exports,n,n.exports,a),n.exports}a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var c={};return(()=>{"use strict";a.r(c),a.d(c,{default:()=>k});var e=a(748),t=a(4212),n={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]},r=1;function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function i(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e){return s="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},s(e)}function l(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==s(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===s(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u,f,p,d=a(7647),m=a.n(d),y=a(4346),h=a.n(y),v=a(210),g=a(2717),j=a(6870);!function(e){e.PRIMARY="primary",e.WARNING="warning",e.SUCCESS="success",e.ERROR="error"}(u||(u={})),function(e){e.KEY_VALUE="key-value",e.JSON="json"}(f||(f={})),function(e){e.ASSISTANT="assistant",e.DETAILS="details",e.FIX="fix",e.CLOSE="close"}(p||(p={}));var b={code:t.PropTypes.oneOfType([t.PropTypes.string,t.PropTypes.number]),overview:t.PropTypes.string,suggestion:t.PropTypes.string,details:t.PropTypes.string,assistant:t.PropTypes.string,type:(0,v.toType)("MessageContentType",{})},w={id:t.PropTypes.string.def(""),message:t.PropTypes.oneOfType([t.PropTypes.shape(b).loose,t.PropTypes.string]),theme:(0,v.toType)("messageTheme",{}).def(u.PRIMARY),delay:t.PropTypes.number,dismissable:t.PropTypes.bool.def(!0),offsetY:t.PropTypes.number.def(30),spacing:t.PropTypes.number.def(10),extCls:t.PropTypes.string.def(""),onClose:t.PropTypes.func,getContainer:t.PropTypes.instanceOf(HTMLElement),width:t.PropTypes.oneOfType([t.PropTypes.number,t.PropTypes.string]),actions:t.PropTypes.shape([])};const S=(0,e.defineComponent)({name:"Message",props:w,emits:["destroy"],setup:function(n,r){var o,a=this,c=r.emit,u=r.slots,d=(0,g.useLocale)("message"),y=(0,e.computed)((function(){return["bk-message","bk-message-".concat(n.theme),"".concat(n.extCls)]})),v=t.bkZIndexManager.getMessageNextIndex(),b=(0,e.computed)((function(){return/^\d+\.?\d*$/.test("".concat(n.delay))?n.delay:"object"!==s(n.message)||(0,e.isVNode)(n.message)?3e3:8e3})),w=(0,e.computed)((function(){return/^\d+/.test("".concat(n.width))?/^\d+\.?\d*$/.test("".concat(n.width))?"".concat(n.width,"px"):n.width:"object"!==s(n.message)||(0,e.isVNode)(n.message)?"".concat(560,"px"):"".concat(800,"px")})),S=(0,e.computed)((function(){return n.getContainer&&(0,t.isElement)(n.getContainer)})),k=(0,e.computed)((function(){return{top:"".concat(n.offsetY,"px"),zIndex:v,position:S.value?"absolute":"fixed",width:w.value}})),C=(0,e.ref)(null),T=(0,e.ref)(null),O=(0,e.ref)(null),x=(0,e.ref)(!1),E=(0,e.reactive)({isFix:!1,isDetailShow:!1}),N=null,A=function(){N=setTimeout((function(){E.isFix||(x.value=!1)}),b.value)},P=function(e){e.preventDefault(),e.stopPropagation(),x.value=!1},L=(0,e.ref)(!1),M=(0,e.ref)(null),V=function(e){var t=e;if("string"==typeof e)try{t=JSON.parse(e)}catch(e){console.error("Format Json Error: ".concat(e))}return t},F=function(t,r){if(E.isDetailShow=null!=r?r:!E.isDetailShow,I(t,E.isDetailShow),E.isDetailShow&&"object"===s(n.message)&&!(0,e.isVNode)(n.message)&&(n.message.type===f.JSON||!n.message.type)){var o=V(n.message.details),i=new(h())(o);setTimeout((function(){C.value&&(C.value.innerHTML="",C.value.append(i.render()))}))}},I=function(e,t){E.isFix=null!=t?t:!E.isFix};(0,e.onMounted)((function(){b.value&&A(),x.value=!0})),(0,e.onUnmounted)((function(){clearTimeout(N)})),(0,e.watch)(x,(function(){x.value||c("destroy",n.id)}));var D=(0,e.computed)((function(){var t;return l(t={},p.ASSISTANT,{id:p.ASSISTANT,icon:function(){return(0,e.createVNode)(j.WeixinPro,null,null)},text:function(){return d.value.assistant},onClick:function(e){n.message.assistant&&window.open(n.message.assistant,"_blank")}}),l(t,p.DETAILS,{id:p.DETAILS,icon:function(){return E.isDetailShow?(0,e.createVNode)(j.AngleDoubleUpLine,null,null):(0,e.createVNode)(j.AngleDoubleDownLine,null,null)},text:function(){return d.value.details},onClick:function(e){return F(e)}}),l(t,p.FIX,{id:p.FIX,icon:function(){return E.isFix?(0,e.createVNode)(j.FixShape,null,null):(0,e.createVNode)(j.FixLine,null,null)},classList:E.isFix?"fixed":"",onClick:function(e){return I(e)}}),l(t,p.CLOSE,{id:p.CLOSE,classList:"normal-color",icon:function(){return n.dismissable&&(0,e.createVNode)(j.Error,{class:"bk-message-close",onClick:P},null)},onClick:P}),t})),R=[p.ASSISTANT,p.DETAILS,p.FIX,p.CLOSE],_=(0,e.computed)((function(){var e;if((null===(e=n.actions)||void 0===e?void 0:e.length)>0){var t=n.actions.map((function(e){var t=e.id.toLocaleLowerCase(),n=D.value[t],r=null==n?void 0:n.onClick,o=Object.assign({},D.value[t]||{},e);if(o.id=t,void 0!==e.classList){var c=Array.isArray(e.classList)?e.classList:[e.classList],l=[];void 0!==n.classList&&(l=Array.isArray(n.classList)?n.classList:[n.classList]),o.classList=[].concat(i(l),i(c))}return"function"==typeof e.onClick?(o.onClick=function(){var t=Reflect.apply(e.onClick,a,[]);void 0!==s(t)&&!t||"function"!=typeof r||Reflect.apply(r,a,[])},o):(o.onClick=r,o)})),r=R.filter((function(e){return!t.some((function(t){return t.id===e}))})).map((function(e){return D.value[e]}));return t.push.apply(t,i(r)),t}return R.map((function(e){return D.value[e]}))}));return{classNames:y,styles:k,visible:x,close:P,setDetailsShow:F,fixMesage:I,copyMessage:function(e){if(!L.value){var t=new(m())(O.value,{text:function(){return n.message.details}});["success","error"].forEach((function(e){t.on(e,(function(){var t,n,r=T.value;M.value=e,r&&((t=r.classList).remove.apply(t,["success","error","is-hidden"]),(n=r.classList).add.apply(n,[e,"is-show"]),o&&clearTimeout(o),o=setTimeout((function(){var e,t;(e=r.classList).remove.apply(e,["is-show"]),(t=r.classList).add.apply(t,["is-hidden"])}),2e3))})),L.value=!0,setTimeout((function(){O.value.click()}))}))}},parseJson:V,handleMouseenter:function(e){clearTimeout(N)},handleMouseleave:function(e){b.value&&A()},renderMessageActions:function(){var t,n,r=function(t){var n=t.text,r=void 0;if("function"==typeof n&&(r=Reflect.apply(n,a,[])),void 0!==r)return"string"==typeof r?(0,e.createVNode)("span",{class:"message-action-text"},[r]):r};return null!==(n=null===(t=u.action)||void 0===t?void 0:t.call(u))&&void 0!==n?n:_.value.map((function(t){if(t.disabled)return null;if("function"==typeof t.render)return Reflect.apply(t.render,a,[]);var n,o,i=Array.isArray(t.classList)?t.classList.join(" "):t.classList;return(0,e.createVNode)("span",{class:["tool",t.id,i],onClick:function(e){return function(e,t){t.readonly||t.disabled||"function"==typeof t.onClick&&Reflect.apply(t.onClick,a,[e,t])}(e,t)}},[(n=t,o=n.icon,"function"==typeof o?Reflect.apply(o,a,[]):(0,e.createVNode)("span",{class:o},null)),r(t)])}))},refJsonContent:C,refCopyStatus:T,refCopyMsgDiv:O,toolOperation:E,copyStatus:M,t:d}},render:function(){var t=this,n=function(n){return{primary:(0,e.createVNode)(j.Info,null,null),warning:(0,e.createVNode)(j.Warn,null,null),success:(0,e.createVNode)(j.Success,null,null),error:(0,e.createVNode)(j.Close,null,null)}[null!=n?n:t.theme]},r=function(n){if(n.type===f.KEY_VALUE){var r=t.parseJson(n.details||{});return Object.keys(r).map((function(t){return(0,e.createVNode)("div",{class:"message-row"},[(0,e.createVNode)("label",null,[t]),r[t]])}))}};return(0,e.createVNode)(e.Transition,{name:"bk-message-fade"},{default:function(){return[(0,e.withDirectives)((0,e.createVNode)("div",{class:t.classNames,style:t.styles,onMouseenter:t.handleMouseenter,onMouseleave:t.handleMouseleave},["object"!==s(t.message)||(0,e.isVNode)(t.message)?(0,e.createVNode)(e.Fragment,null,[(0,e.createVNode)("div",{class:"bk-message-content"},[(0,e.createVNode)("div",{class:"bk-message-icon"},[n()]),t.message]),t.dismissable&&(0,e.createVNode)(j.Error,{class:"bk-message-close",onClick:t.close},null)]):(0,e.createVNode)("div",{class:"bk-message-content multi"},[(0,e.createVNode)("div",{class:"overview"},[(0,e.createVNode)("div",{class:"left-content"},[(0,e.createVNode)("div",{class:"bk-message-icon"},[n()]),(0,e.createVNode)("div",{class:"describe"},[null!==(a=null===(i=(o=t.$slots).title)||void 0===i?void 0:i.call(o))&&void 0!==a?a:"【".concat(t.message.code,"】").concat(t.message.overview," ").concat(t.message.suggestion)])]),(0,e.createVNode)("div",{class:"tools"},[t.renderMessageActions()])]),t.toolOperation.isDetailShow&&(0,e.createVNode)("div",{class:"message-detail"},[(0,e.createVNode)("div",{class:"message-copy",ref:"refCopyMsgDiv",onClick:t.copyMessage},[(0,e.createVNode)(j.CopyShape,null,null),(0,e.createVNode)("div",{class:"copy-status",ref:"refCopyStatus"},[(0,e.createVNode)("div",{class:"inner"},[n(t.copyStatus),"success"===t.copyStatus?t.t.copySuccess:t.t.copyFailed])])]),(0,e.createVNode)("div",{ref:"refJsonContent",class:"message-tree"},[r(t.message)])])])]),[[e.vShow,t.visible]])];var o,i,a}})}}),k=function(o){!function(o,i){var s=i,a=s.position||"top-right";"string"==typeof i&&(s={message:i});var c=i.onClose,l=s.offsetX||10,u=s.offsetY||30,f=s.spacing,p=void 0===f?10:f;n[a].forEach((function(e){u+=(e.el.offsetHeight||0)+p}));var d="message_".concat(r+=1);s=Object.assign(Object.assign({},s),{offsetX:l,offsetY:u,id:d});var m=document.createElement("div"),y=(0,e.createVNode)(o,s);y.props.onDestroy=function(t){!function(e,t,r,o){null==o||o();var i=t.startsWith("top")?"top":"bottom",s=-1;n[t].forEach((function(t,n){t.props.id===e&&(s=n)}));for(var a=n[t][s].el.offsetHeight,c=n[t].length,l=s;l<c;l++){var u=parseInt(n[t][l].el.style[i],10)-a-r;n[t][l].component.props.offsetY=u}n[t].splice(s,1)}(t,a,p,c),(0,e.render)(null,m)},(0,e.render)(y,m),n[a].push(y),(y.props.getContainer&&(0,t.isElement)(y.props.getContainer)?y.props.getContainer:document.body).appendChild(m.firstElementChild)}(S,o)}})(),c})()));
@@ -208,8 +208,8 @@ declare const _default: import("vue").DefineComponent<{
208
208
  id: string;
209
209
  onClose: (...args: any[]) => any;
210
210
  delay: number;
211
+ offsetY: number;
211
212
  spacing: number;
212
213
  dismissable: boolean;
213
- offsetY: number;
214
214
  }, {}>;
215
215
  export default _default;
@@ -14,13 +14,13 @@ declare const BkModal: {
14
14
  height?: string | number;
15
15
  maxHeight?: string;
16
16
  extCls?: string | unknown[];
17
- direction?: string;
18
17
  isShow?: boolean;
19
18
  zIndex?: string | number;
20
19
  draggable?: boolean;
21
20
  showMask?: boolean;
22
21
  multiInstance?: boolean;
23
- renderDirective?: "if" | "show";
22
+ direction?: string;
23
+ renderDirective?: "show" | "if";
24
24
  quickClose?: boolean;
25
25
  scrollable?: boolean;
26
26
  closeIcon?: boolean;
@@ -29,7 +29,6 @@ declare const BkModal: {
29
29
  animateType?: string;
30
30
  class?: unknown;
31
31
  style?: unknown;
32
- readonly dialogType?: "process" | "show" | "operation" | "confirm";
33
32
  key?: string | number | symbol;
34
33
  ref?: import("vue").VNodeRef;
35
34
  ref_for?: boolean;
@@ -73,6 +72,7 @@ declare const BkModal: {
73
72
  [key: string]: any;
74
73
  }>) => void)[];
75
74
  readonly size?: "small" | "medium" | "large" | "normal";
75
+ readonly dialogType?: "process" | "show" | "operation" | "confirm";
76
76
  onClose?: (...args: any[]) => any;
77
77
  onShown?: (...args: any[]) => any;
78
78
  onHidden?: (...args: any[]) => any;
@@ -169,8 +169,8 @@ declare const BkModal: {
169
169
  } & {
170
170
  default: string;
171
171
  };
172
- renderDirective: import("vue-types").VueTypeValidableDef<"if" | "show"> & {
173
- default: "if" | "show";
172
+ renderDirective: import("vue-types").VueTypeValidableDef<"show" | "if"> & {
173
+ default: "show" | "if";
174
174
  };
175
175
  beforeClose: import("vue-types").VueTypeDef<unknown>;
176
176
  dialogType: import("vue-types").VueTypeDef<"process" | "show" | "operation" | "confirm">;
@@ -204,13 +204,13 @@ declare const BkModal: {
204
204
  height: string | number;
205
205
  maxHeight: string;
206
206
  extCls: string | unknown[];
207
- direction: string;
208
207
  isShow: boolean;
209
208
  zIndex: string | number;
210
209
  draggable: boolean;
211
210
  showMask: boolean;
212
211
  multiInstance: boolean;
213
- renderDirective: "if" | "show";
212
+ direction: string;
213
+ renderDirective: "show" | "if";
214
214
  quickClose: boolean;
215
215
  scrollable: boolean;
216
216
  closeIcon: boolean;
@@ -312,8 +312,8 @@ declare const BkModal: {
312
312
  } & {
313
313
  default: string;
314
314
  };
315
- renderDirective: import("vue-types").VueTypeValidableDef<"if" | "show"> & {
316
- default: "if" | "show";
315
+ renderDirective: import("vue-types").VueTypeValidableDef<"show" | "if"> & {
316
+ default: "show" | "if";
317
317
  };
318
318
  beforeClose: import("vue-types").VueTypeDef<unknown>;
319
319
  dialogType: import("vue-types").VueTypeDef<"process" | "show" | "operation" | "confirm">;
@@ -419,8 +419,8 @@ declare const BkModal: {
419
419
  } & {
420
420
  default: string;
421
421
  };
422
- renderDirective: import("vue-types").VueTypeValidableDef<"if" | "show"> & {
423
- default: "if" | "show";
422
+ renderDirective: import("vue-types").VueTypeValidableDef<"show" | "if"> & {
423
+ default: "show" | "if";
424
424
  };
425
425
  beforeClose: import("vue-types").VueTypeDef<unknown>;
426
426
  dialogType: import("vue-types").VueTypeDef<"process" | "show" | "operation" | "confirm">;
@@ -454,13 +454,13 @@ declare const BkModal: {
454
454
  height: string | number;
455
455
  maxHeight: string;
456
456
  extCls: string | unknown[];
457
- direction: string;
458
457
  isShow: boolean;
459
458
  zIndex: string | number;
460
459
  draggable: boolean;
461
460
  showMask: boolean;
462
461
  multiInstance: boolean;
463
- renderDirective: "if" | "show";
462
+ direction: string;
463
+ renderDirective: "show" | "if";
464
464
  quickClose: boolean;
465
465
  scrollable: boolean;
466
466
  closeIcon: boolean;
@@ -543,8 +543,8 @@ declare const BkModal: {
543
543
  } & {
544
544
  default: string;
545
545
  };
546
- renderDirective: import("vue-types").VueTypeValidableDef<"if" | "show"> & {
547
- default: "if" | "show";
546
+ renderDirective: import("vue-types").VueTypeValidableDef<"show" | "if"> & {
547
+ default: "show" | "if";
548
548
  };
549
549
  beforeClose: import("vue-types").VueTypeDef<unknown>;
550
550
  dialogType: import("vue-types").VueTypeDef<"process" | "show" | "operation" | "confirm">;
@@ -73,8 +73,8 @@ declare const _default: import("vue").DefineComponent<{
73
73
  } & {
74
74
  default: string;
75
75
  };
76
- renderDirective: import("vue-types").VueTypeValidableDef<"if" | "show"> & {
77
- default: "if" | "show";
76
+ renderDirective: import("vue-types").VueTypeValidableDef<"show" | "if"> & {
77
+ default: "show" | "if";
78
78
  };
79
79
  beforeClose: import("vue-types").VueTypeDef<unknown>;
80
80
  dialogType: import("vue-types").VueTypeDef<"process" | "show" | "operation" | "confirm">;
@@ -170,8 +170,8 @@ declare const _default: import("vue").DefineComponent<{
170
170
  } & {
171
171
  default: string;
172
172
  };
173
- renderDirective: import("vue-types").VueTypeValidableDef<"if" | "show"> & {
174
- default: "if" | "show";
173
+ renderDirective: import("vue-types").VueTypeValidableDef<"show" | "if"> & {
174
+ default: "show" | "if";
175
175
  };
176
176
  beforeClose: import("vue-types").VueTypeDef<unknown>;
177
177
  dialogType: import("vue-types").VueTypeDef<"process" | "show" | "operation" | "confirm">;
@@ -194,13 +194,13 @@ declare const _default: import("vue").DefineComponent<{
194
194
  height: string | number;
195
195
  maxHeight: string;
196
196
  extCls: string | unknown[];
197
- direction: string;
198
197
  isShow: boolean;
199
198
  zIndex: string | number;
200
199
  draggable: boolean;
201
200
  showMask: boolean;
202
201
  multiInstance: boolean;
203
- renderDirective: "if" | "show";
202
+ direction: string;
203
+ renderDirective: "show" | "if";
204
204
  quickClose: boolean;
205
205
  scrollable: boolean;
206
206
  closeIcon: boolean;
@@ -73,8 +73,8 @@ export declare const propsMixin: {
73
73
  } & {
74
74
  default: string;
75
75
  };
76
- renderDirective: import("vue-types").VueTypeValidableDef<"if" | "show"> & {
77
- default: "if" | "show";
76
+ renderDirective: import("vue-types").VueTypeValidableDef<"show" | "if"> & {
77
+ default: "show" | "if";
78
78
  };
79
79
  beforeClose: import("vue-types").VueTypeDef<unknown>;
80
80
  dialogType: import("vue-types").VueTypeDef<"process" | "show" | "operation" | "confirm">;
@@ -3,7 +3,6 @@ declare const Navigation: {
3
3
  $: import("vue").ComponentInternalInstance;
4
4
  $data: {};
5
5
  $props: {
6
- headHeight?: string | number;
7
6
  sideTitle?: string;
8
7
  navigationType?: import("./navigation").BkNavigationType;
9
8
  navWidth?: string | number;
@@ -13,6 +12,7 @@ declare const Navigation: {
13
12
  hoverLeaveDelay?: number;
14
13
  hoverEnterDelay?: number;
15
14
  defaultOpen?: boolean;
15
+ headHeight?: string | number;
16
16
  needMenu?: boolean;
17
17
  class?: unknown;
18
18
  style?: unknown;
@@ -143,7 +143,6 @@ declare const Navigation: {
143
143
  handleMouseLeave: () => void;
144
144
  handleClick: () => void;
145
145
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("toggle" | "hover" | "leave" | "toggle-click")[], string, {
146
- headHeight: string | number;
147
146
  sideTitle: string;
148
147
  navigationType: import("./navigation").BkNavigationType;
149
148
  navWidth: string | number;
@@ -153,6 +152,7 @@ declare const Navigation: {
153
152
  hoverLeaveDelay: number;
154
153
  hoverEnterDelay: number;
155
154
  defaultOpen: boolean;
155
+ headHeight: string | number;
156
156
  needMenu: boolean;
157
157
  }, {}, string, import("vue").SlotsType<{
158
158
  default?: () => HTMLElement;
@@ -308,7 +308,6 @@ declare const Navigation: {
308
308
  handleMouseLeave: () => void;
309
309
  handleClick: () => void;
310
310
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("toggle" | "hover" | "leave" | "toggle-click")[], "toggle" | "hover" | "leave" | "toggle-click", {
311
- headHeight: string | number;
312
311
  sideTitle: string;
313
312
  navigationType: import("./navigation").BkNavigationType;
314
313
  navWidth: string | number;
@@ -318,6 +317,7 @@ declare const Navigation: {
318
317
  hoverLeaveDelay: number;
319
318
  hoverEnterDelay: number;
320
319
  defaultOpen: boolean;
320
+ headHeight: string | number;
321
321
  needMenu: boolean;
322
322
  }, {}, string, import("vue").SlotsType<{
323
323
  default?: () => HTMLElement;