bkui-vue 0.0.1-beta.202 → 0.0.1-beta.204

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 (94) hide show
  1. package/dist/index.cjs.js +31 -31
  2. package/dist/index.esm.js +51 -50
  3. package/dist/index.umd.js +30 -30
  4. package/dist/style.css +1 -1
  5. package/dist/style.variable.css +1 -1
  6. package/lib/affix/affix.variable.css +2 -2
  7. package/lib/alert/alert.variable.css +2 -2
  8. package/lib/backtop/backtop.variable.css +2 -2
  9. package/lib/badge/badge.variable.css +2 -2
  10. package/lib/breadcrumb/breadcrumb.variable.css +2 -2
  11. package/lib/button/button.variable.css +2 -2
  12. package/lib/card/card.variable.css +2 -2
  13. package/lib/cascader/cascader.variable.css +2 -2
  14. package/lib/checkbox/checkbox.variable.css +2 -2
  15. package/lib/code-diff/code-diff.variable.css +2 -2
  16. package/lib/collapse/collapse-panel.d.ts +0 -3
  17. package/lib/collapse/collapse.variable.css +2 -2
  18. package/lib/collapse/index.d.ts +0 -3
  19. package/lib/collapse/index.js +1 -1
  20. package/lib/collapse/props.d.ts +0 -2
  21. package/lib/color-picker/color-picker.variable.css +2 -2
  22. package/lib/container/container.variable.css +2 -2
  23. package/lib/date-picker/date-picker.d.ts +0 -2
  24. package/lib/date-picker/date-picker.variable.css +2 -2
  25. package/lib/date-picker/index.d.ts +0 -4
  26. package/lib/date-picker/index.js +1 -1
  27. package/lib/date-picker/panel/time.d.ts +0 -2
  28. package/lib/date-picker/props.d.ts +0 -1
  29. package/lib/date-picker/time-picker.d.ts +0 -2
  30. package/lib/divider/divider.variable.css +2 -2
  31. package/lib/dropdown/dropdown.variable.css +2 -2
  32. package/lib/exception/exception.variable.css +2 -2
  33. package/lib/fixed-navbar/fixed-navbar.variable.css +2 -2
  34. package/lib/form/form.css +1 -0
  35. package/lib/form/form.less +1 -0
  36. package/lib/form/form.variable.css +3 -2
  37. package/lib/input/input.variable.css +2 -2
  38. package/lib/link/link.variable.css +2 -2
  39. package/lib/loading/loading.variable.css +2 -2
  40. package/lib/menu/menu.variable.css +2 -2
  41. package/lib/menu/submenu.variable.css +2 -2
  42. package/lib/message/message.variable.css +2 -2
  43. package/lib/navigation/navigation.variable.css +2 -2
  44. package/lib/notify/notify.variable.css +2 -2
  45. package/lib/pagination/index.js +1 -1
  46. package/lib/pagination/pagination.variable.css +2 -2
  47. package/lib/plugin-popover/index.js +1 -1
  48. package/lib/popover/popover.variable.css +2 -2
  49. package/lib/popover2/index.js +1 -1
  50. package/lib/popover2/popover2.variable.css +2 -2
  51. package/lib/popover2/use-floating.d.ts +1 -0
  52. package/lib/popover2/utils.d.ts +1 -0
  53. package/lib/process/process.variable.css +2 -2
  54. package/lib/progress/progress.variable.css +2 -2
  55. package/lib/radio/radio.css +4 -4
  56. package/lib/radio/radio.less +2 -2
  57. package/lib/radio/radio.variable.css +4 -4
  58. package/lib/resize-layout/resize-layout.variable.css +2 -2
  59. package/lib/search-select/search-select.variable.css +2 -2
  60. package/lib/select/select.variable.css +2 -2
  61. package/lib/sideslider/sideslider.variable.css +2 -2
  62. package/lib/slider/slider.variable.css +2 -2
  63. package/lib/steps/steps.variable.css +2 -2
  64. package/lib/styles/mixins/scroll.variable.css +2 -2
  65. package/lib/styles/themes/themes.less +2 -2
  66. package/lib/switcher/switcher.css +5 -5
  67. package/lib/switcher/switcher.variable.css +2 -2
  68. package/lib/tab/tab.variable.css +2 -2
  69. package/lib/table/index.js +1 -1
  70. package/lib/table/plugins/head-filter.variable.css +2 -2
  71. package/lib/table/plugins/head-sort.variable.css +2 -2
  72. package/lib/table/plugins/settings.variable.css +2 -2
  73. package/lib/table/table.variable.css +2 -2
  74. package/lib/tag/tag.variable.css +2 -2
  75. package/lib/tag-input/index.d.ts +1 -60
  76. package/lib/tag-input/index.js +1 -1
  77. package/lib/tag-input/list-tag-render.d.ts +0 -3
  78. package/lib/tag-input/tag-input.d.ts +0 -23
  79. package/lib/tag-input/tag-input.variable.css +2 -2
  80. package/lib/tag-input/tag-props.d.ts +0 -5
  81. package/lib/tag-input/tag-render.d.ts +0 -3
  82. package/lib/time-picker/index.d.ts +0 -4
  83. package/lib/time-picker/time-picker.variable.css +2 -2
  84. package/lib/timeline/timeline.variable.css +2 -2
  85. package/lib/transfer/transfer.variable.css +2 -2
  86. package/lib/tree/tree.variable.css +2 -2
  87. package/lib/upload/index.d.ts +1 -15
  88. package/lib/upload/index.js +1 -1
  89. package/lib/upload/props.d.ts +0 -2
  90. package/lib/upload/upload-trigger.d.ts +0 -3
  91. package/lib/upload/upload.d.ts +0 -6
  92. package/lib/upload/upload.variable.css +2 -2
  93. package/lib/virtual-render/virtual-render.variable.css +2 -2
  94. package/package.json +1 -1
@@ -51,13 +51,13 @@
51
51
  --radio-active-color: #5594fa;
52
52
  --radio-hover-border-color: #979ba5;
53
53
  --radio-disabled-border: #dcdee5;
54
- --radio-disabled-font-color: #c4c6c;
54
+ --radio-disabled-font-color: #c4c6cc;
55
55
  --radio-distable-checked-bg: #fafbfd;
56
56
  --radio-button-checked-bg: #e1ecff;
57
57
  --fixed-navbar-background: #fff;
58
58
  --fixed-navbar-boxshadow-color: rgba(0, 0, 0, 0.1);
59
59
  --switch-default-color: #fff;
60
- --switch-grey-color: #c4c6cc;
60
+ --switch-grey-color: cc;
61
61
  --breadcrumb-black-color: #979ba5;
62
62
  --breadcrumb-primary-hover-color: #0082ff;
63
63
  --breadcrumb-fn-main-color: #63656e;
@@ -51,13 +51,13 @@
51
51
  --radio-active-color: #5594fa;
52
52
  --radio-hover-border-color: #979ba5;
53
53
  --radio-disabled-border: #dcdee5;
54
- --radio-disabled-font-color: #c4c6c;
54
+ --radio-disabled-font-color: #c4c6cc;
55
55
  --radio-distable-checked-bg: #fafbfd;
56
56
  --radio-button-checked-bg: #e1ecff;
57
57
  --fixed-navbar-background: #fff;
58
58
  --fixed-navbar-boxshadow-color: rgba(0, 0, 0, 0.1);
59
59
  --switch-default-color: #fff;
60
- --switch-grey-color: #c4c6cc;
60
+ --switch-grey-color: cc;
61
61
  --breadcrumb-black-color: #979ba5;
62
62
  --breadcrumb-primary-hover-color: #0082ff;
63
63
  --breadcrumb-fn-main-color: #63656e;
@@ -28,19 +28,6 @@ declare const TagInput: {
28
28
  allowNextFocus: boolean;
29
29
  allowAutoMatch: boolean;
30
30
  leftSpace: number;
31
- createTagValidator: (tag: any) => boolean;
32
- filterCallback: (value: string, searchKey: string | string[], list: any[]) => any[];
33
- tagTpl: (node: any, highlightKeyword: Function, h: Function, ctx: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
34
- [key: string]: any;
35
- }>) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
36
- [key: string]: any;
37
- }>;
38
- tpl: (node: any, h: Function, ctx: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
39
- [key: string]: any;
40
- }>) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
41
- [key: string]: any;
42
- }>;
43
- pasteFn: (value: string) => any[];
44
31
  popoverProps: {};
45
32
  }> & Omit<Readonly<import("vue").ExtractPropTypes<{
46
33
  modelValue: import("vue-types").VueTypeDef<string[]> & {
@@ -151,11 +138,9 @@ declare const TagInput: {
151
138
  };
152
139
  createTagValidator: {
153
140
  type: import("vue").PropType<(tag: any) => boolean>;
154
- default: any;
155
141
  };
156
142
  filterCallback: {
157
143
  type: import("vue").PropType<(value: string, searchKey: string | string[], list: any[]) => any[]>;
158
- default: any;
159
144
  };
160
145
  tagTpl: {
161
146
  type: import("vue").PropType<(node: any, highlightKeyword: Function, h: Function, ctx: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
@@ -163,7 +148,6 @@ declare const TagInput: {
163
148
  }>) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
164
149
  [key: string]: any;
165
150
  }>>;
166
- default: any;
167
151
  };
168
152
  tpl: {
169
153
  type: import("vue").PropType<(node: any, h: Function, ctx: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
@@ -171,11 +155,9 @@ declare const TagInput: {
171
155
  }>) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
172
156
  [key: string]: any;
173
157
  }>>;
174
- default: any;
175
158
  };
176
159
  pasteFn: {
177
160
  type: import("vue").PropType<(value: string) => any[]>;
178
- default: any;
179
161
  };
180
162
  withValidate: {
181
163
  type: BooleanConstructor;
@@ -270,7 +252,7 @@ declare const TagInput: {
270
252
  "onUpdate:modelValue"?: (...args: any[]) => any;
271
253
  onRemove?: (...args: any[]) => any;
272
254
  onRemoveAll?: (...args: any[]) => any;
273
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "disabled" | "trigger" | "placeholder" | "list" | "separator" | "clearable" | "showClearOnlyHover" | "modelValue" | "withValidate" | "searchKey" | "allowCreate" | "displayKey" | "tooltipKey" | "saveKey" | "hasDeleteIcon" | "useGroup" | "maxData" | "maxResult" | "contentMaxHeight" | "contentWidth" | "allowNextFocus" | "allowAutoMatch" | "leftSpace" | "createTagValidator" | "filterCallback" | "tagTpl" | "tpl" | "pasteFn" | "popoverProps">;
255
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "disabled" | "trigger" | "placeholder" | "list" | "separator" | "clearable" | "showClearOnlyHover" | "modelValue" | "withValidate" | "searchKey" | "allowCreate" | "displayKey" | "tooltipKey" | "saveKey" | "hasDeleteIcon" | "useGroup" | "maxData" | "maxResult" | "contentMaxHeight" | "contentWidth" | "allowNextFocus" | "allowAutoMatch" | "leftSpace" | "popoverProps">;
274
256
  $attrs: {
275
257
  [x: string]: unknown;
276
258
  };
@@ -393,11 +375,9 @@ declare const TagInput: {
393
375
  };
394
376
  createTagValidator: {
395
377
  type: import("vue").PropType<(tag: any) => boolean>;
396
- default: any;
397
378
  };
398
379
  filterCallback: {
399
380
  type: import("vue").PropType<(value: string, searchKey: string | string[], list: any[]) => any[]>;
400
- default: any;
401
381
  };
402
382
  tagTpl: {
403
383
  type: import("vue").PropType<(node: any, highlightKeyword: Function, h: Function, ctx: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
@@ -405,7 +385,6 @@ declare const TagInput: {
405
385
  }>) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
406
386
  [key: string]: any;
407
387
  }>>;
408
- default: any;
409
388
  };
410
389
  tpl: {
411
390
  type: import("vue").PropType<(node: any, h: Function, ctx: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
@@ -413,11 +392,9 @@ declare const TagInput: {
413
392
  }>) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
414
393
  [key: string]: any;
415
394
  }>>;
416
- default: any;
417
395
  };
418
396
  pasteFn: {
419
397
  type: import("vue").PropType<(value: string) => any[]>;
420
- default: any;
421
398
  };
422
399
  withValidate: {
423
400
  type: BooleanConstructor;
@@ -593,19 +570,6 @@ declare const TagInput: {
593
570
  allowNextFocus: boolean;
594
571
  allowAutoMatch: boolean;
595
572
  leftSpace: number;
596
- createTagValidator: (tag: any) => boolean;
597
- filterCallback: (value: string, searchKey: string | string[], list: any[]) => any[];
598
- tagTpl: (node: any, highlightKeyword: Function, h: Function, ctx: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
599
- [key: string]: any;
600
- }>) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
601
- [key: string]: any;
602
- }>;
603
- tpl: (node: any, h: Function, ctx: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
604
- [key: string]: any;
605
- }>) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
606
- [key: string]: any;
607
- }>;
608
- pasteFn: (value: string) => any[];
609
573
  popoverProps: {};
610
574
  }> & {
611
575
  beforeCreate?: (() => void) | (() => void)[];
@@ -736,11 +700,9 @@ declare const TagInput: {
736
700
  };
737
701
  createTagValidator: {
738
702
  type: import("vue").PropType<(tag: any) => boolean>;
739
- default: any;
740
703
  };
741
704
  filterCallback: {
742
705
  type: import("vue").PropType<(value: string, searchKey: string | string[], list: any[]) => any[]>;
743
- default: any;
744
706
  };
745
707
  tagTpl: {
746
708
  type: import("vue").PropType<(node: any, highlightKeyword: Function, h: Function, ctx: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
@@ -748,7 +710,6 @@ declare const TagInput: {
748
710
  }>) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
749
711
  [key: string]: any;
750
712
  }>>;
751
- default: any;
752
713
  };
753
714
  tpl: {
754
715
  type: import("vue").PropType<(node: any, h: Function, ctx: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
@@ -756,11 +717,9 @@ declare const TagInput: {
756
717
  }>) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
757
718
  [key: string]: any;
758
719
  }>>;
759
- default: any;
760
720
  };
761
721
  pasteFn: {
762
722
  type: import("vue").PropType<(value: string) => any[]>;
763
- default: any;
764
723
  };
765
724
  withValidate: {
766
725
  type: BooleanConstructor;
@@ -1023,11 +982,9 @@ declare const TagInput: {
1023
982
  };
1024
983
  createTagValidator: {
1025
984
  type: import("vue").PropType<(tag: any) => boolean>;
1026
- default: any;
1027
985
  };
1028
986
  filterCallback: {
1029
987
  type: import("vue").PropType<(value: string, searchKey: string | string[], list: any[]) => any[]>;
1030
- default: any;
1031
988
  };
1032
989
  tagTpl: {
1033
990
  type: import("vue").PropType<(node: any, highlightKeyword: Function, h: Function, ctx: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
@@ -1035,7 +992,6 @@ declare const TagInput: {
1035
992
  }>) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
1036
993
  [key: string]: any;
1037
994
  }>>;
1038
- default: any;
1039
995
  };
1040
996
  tpl: {
1041
997
  type: import("vue").PropType<(node: any, h: Function, ctx: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
@@ -1043,11 +999,9 @@ declare const TagInput: {
1043
999
  }>) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
1044
1000
  [key: string]: any;
1045
1001
  }>>;
1046
- default: any;
1047
1002
  };
1048
1003
  pasteFn: {
1049
1004
  type: import("vue").PropType<(value: string) => any[]>;
1050
- default: any;
1051
1005
  };
1052
1006
  withValidate: {
1053
1007
  type: BooleanConstructor;
@@ -1223,19 +1177,6 @@ declare const TagInput: {
1223
1177
  allowNextFocus: boolean;
1224
1178
  allowAutoMatch: boolean;
1225
1179
  leftSpace: number;
1226
- createTagValidator: (tag: any) => boolean;
1227
- filterCallback: (value: string, searchKey: string | string[], list: any[]) => any[];
1228
- tagTpl: (node: any, highlightKeyword: Function, h: Function, ctx: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
1229
- [key: string]: any;
1230
- }>) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
1231
- [key: string]: any;
1232
- }>;
1233
- tpl: (node: any, h: Function, ctx: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
1234
- [key: string]: any;
1235
- }>) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
1236
- [key: string]: any;
1237
- }>;
1238
- pasteFn: (value: string) => any[];
1239
1180
  popoverProps: {};
1240
1181
  }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin;
1241
1182
  export default TagInput;
@@ -1 +1 @@
1
- !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"),require("lodash"),require("../directives"),require("../icon"),require("../loading"),require("../popover"));else if("function"==typeof define&&define.amd)define(["../shared","vue","lodash","../directives","../icon","../loading","../popover"],t);else{var r="object"==typeof exports?t(require("../shared"),require("vue"),require("lodash"),require("../directives"),require("../icon"),require("../loading"),require("../popover")):t(e["../shared"],e.vue,e.lodash,e["../directives"],e["../icon"],e["../loading"],e["../popover"]);for(var a in r)("object"==typeof exports?exports:e)[a]=r[a]}}(self,((e,t,r,a,n,o,l)=>(()=>{"use strict";var i={4061:e=>{e.exports=a},6870:e=>{e.exports=n},4870:e=>{e.exports=o},5537:e=>{e.exports=l},4212:t=>{t.exports=e},467:e=>{e.exports=r},748:e=>{e.exports=t}},s={};function u(e){var t=s[e];if(void 0!==t)return t.exports;var r=s[e]={exports:{}};return i[e](r,r.exports,u),r.exports}u.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return u.d(t,{a:t}),t},u.d=(e,t)=>{for(var r in t)u.o(t,r)&&!u.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},u.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),u.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var c={};return(()=>{u.r(c),u.d(c,{default:()=>L});var e=u(4212);function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}function a(e,t){if(e){if("string"==typeof e)return r(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?r(e,t):void 0}}function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e){return function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||a(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.")}()}var l=u(748),i=u(467),s=u(4061),d=u(6870),p=u(4870),f=u.n(p),v=u(5537),g=u.n(v),h=12,y=function(e){for(var t=e.length,r=0,a=0;a<t;a++)0!=(65280&e.charCodeAt(a))&&(r+=1),r+=1;return r};const m=(0,l.defineComponent)({name:"ListTagRender",props:{node:e.PropTypes.object,searchKey:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.arrayOf(e.PropTypes.string)]),displayKey:e.PropTypes.string,searchKeyword:e.PropTypes.string,tpl:{type:Function,default:null}},render:function(){var e=this,t=function(t){if(e.searchKeyword){var r=new RegExp("(".concat(e.searchKeyword,")"),"i");return t.replace(r,'<strong class="highlight-text">$1</strong>')}return t};if(this.tpl)return this.tpl(this.node,t,l.h,this);var r=this.node[this.displayKey];return(0,l.createVNode)("div",{class:"bk-selector-node"},[(0,l.createVNode)("span",{class:"text",innerHTML:t(r)},[r])])}}),b=(0,l.defineComponent)({name:"TagRender",props:{node:e.PropTypes.object,displayKey:e.PropTypes.string,tpl:{type:Function,default:null}},render:function(){return this.tpl?this.tpl(this.node,l.h,this):(0,l.createVNode)("div",{class:"tag"},[(0,l.createVNode)("span",{class:"text"},[this.node[this.displayKey]])])}}),T=(0,l.defineComponent)({name:"TagInput",directives:{bkTooltips:s.bkTooltips},props:{modelValue:e.PropTypes.arrayOf(e.PropTypes.string).def([]),placeholder:e.PropTypes.string.def("请输入并按 Enter 结束"),list:e.PropTypes.arrayOf(e.PropTypes.object).def([]),disabled:e.PropTypes.bool.def(!1),tooltipKey:e.PropTypes.string.def(""),saveKey:e.PropTypes.string.def("id"),displayKey:e.PropTypes.string.def("name"),hasDeleteIcon:e.PropTypes.bool.def(!1),clearable:e.PropTypes.bool.def(!0),trigger:e.PropTypes.commonType(["focus","search"]).def("search"),searchKey:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.arrayOf(e.PropTypes.string)]).def("name"),useGroup:e.PropTypes.bool.def(!1),allowCreate:e.PropTypes.bool.def(!1),maxData:e.PropTypes.number.def(-1),maxResult:e.PropTypes.number.def(10),contentMaxHeight:e.PropTypes.number.def(300),contentWidth:e.PropTypes.number.def(190),separator:e.PropTypes.string.def(""),allowNextFocus:e.PropTypes.bool.def(!0),allowAutoMatch:e.PropTypes.bool.def(!1),showClearOnlyHover:e.PropTypes.bool.def(!1),leftSpace:e.PropTypes.number.def(0),createTagValidator:{type:Function,default:null},filterCallback:{type:Function,default:null},tagTpl:{type:Function,default:null},tpl:{type:Function,default:null},pasteFn:{type:Function,default:null},withValidate:{type:Boolean,default:!0},popoverProps:{type:Object,default:function(){return{}}}},emits:["update:modelValue","change","select","blur","remove","removeAll"],setup:function(r,s){var u=s.emit,c=(0,e.useFormItem)(),d=(0,l.reactive)({isEdit:!1,isHover:!1,focusItemIndex:r.allowCreate?-1:0}),p=(0,l.reactive)(Object.assign({isShow:!1,width:190,modifiers:[{name:"offset",options:{offset:[0,4]}}]},r.popoverProps)),f=function(e){var t=(0,l.reactive)({curPage:1,totalSize:0,totalPage:0,pageSize:e,isPageLoading:!1,curPageList:[],renderListPaged:[]});return{pageState:t,initPage:function(){var e,r,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];t.curPage=1,t.totalSize=a.length,t.totalPage=Math.ceil(t.totalSize/t.pageSize)||1;var n=[];if(t.pageSize>0)for(var l=0;l<t.totalSize;l+=t.pageSize)n.push(a.slice(l,l+t.pageSize));(e=t.renderListPaged).splice.apply(e,[0,t.renderListPaged.length].concat(n)),(r=t.curPageList).splice.apply(r,[0,t.curPageList.length].concat(o(t.renderListPaged[t.curPage-1]||[])))},pageChange:function(e){var r;t.curPage=e,(r=t.curPageList).splice.apply(r,[t.curPageList.length,0].concat(o(t.renderListPaged[t.curPage-1]||[]))),t.isPageLoading=!1}}}((0,l.toRefs)(r).maxResult),v=f.pageState,g=f.initPage,m=f.pageChange,b=(0,l.ref)(""),T=(0,l.ref)(null),L=(0,l.ref)(null),w=(0,l.ref)(null),P=(0,l.ref)(null),x=(0,l.ref)(null),I=(0,l.ref)(null),C=(0,l.ref)(null),S=(0,l.computed)((function(){return!r.disabled&&r.hasDeleteIcon})),K=(0,l.computed)((function(){return 1===r.maxData})),k=(0,l.computed)((function(){return 0===O.selectedTagList.length&&""===b.value&&!d.isEdit})),V=(0,l.computed)((function(){return r.clearable&&!r.disabled&&0!==O.selectedTagList.length&&(!r.showClearOnlyHover||d.isHover)})),N=(0,l.computed)((function(){return{"bk-tag-input-trigger":!0,active:d.isEdit,disabled:r.disabled}})),O=(0,l.reactive)({localList:[],tagListCache:[],selectedTagList:[],selectedTagListCache:[]}),R=(0,l.computed)((function(){return O.selectedTagList.map((function(e){return e[r.saveKey]}))})),j=function(e){var t=(0,l.toRefs)(e),r=t.useGroup,a=t.saveKey,n=t.displayKey,o=t.list,i=(0,l.ref)([]),s=(0,l.ref)({});return(0,l.watch)([r,a,n,o],(function(){i.value=[];var e=(0,l.markRaw)(o.value);r.value&&(e=e.reduce((function(e,t){var r=[];return t.children&&(r=t.children.map((function(e){return Object.assign({group:{groupId:t[a.value],groupName:t[n.value]}},e)}))),e.concat(r)}),[])),i.value=e,s.value=e.reduce((function(e,t){return e[t[a.value]]=t,e}),{})}),{immediate:!0}),{flatList:i,saveKeyMap:s}}(r),A=j.flatList,E=j.saveKeyMap,D=(0,l.computed)((function(){if(r.useGroup){var e={};return v.curPageList.forEach((function(t,r){t.__index__=r,e[t.group.groupId]||(e[t.group.groupId]={id:t.group.groupId,name:t.group.groupName,children:[]}),e[t.group.groupId].children.push(t)})),Object.keys(e).map((function(t){return e[t]}))}return v.curPageList}));(0,l.watch)([function(){return A.value}],(function(){(0,l.nextTick)((function(){z()}))})),(0,l.watch)((function(){return r.modelValue}),(function(e){var t,a,n;n=e,(a=R.value).length===n.length&&n.every((function(e,t){return a[t]===e}))||((0,l.nextTick)((function(){z()})),r.withValidate&&(null===(t=null==c?void 0:c.validate)||void 0===t||t.call(c,"change")))})),(0,l.watch)(b,(0,i.debounce)((function(){var e=0!==v.curPageList.length,t=b.value;""!==t&&e||""===t&&"focus"===r.trigger&&e?p.isShow=!0:"focus"===r.trigger&&e||(p.isShow=!1)}),150)),(0,l.watch)((function(){return p.isShow}),(function(e){F(),e&&x.value&&((0,l.nextTick)((function(){x.value.scrollTop=0})),x.value.removeEventListener("scroll",M),x.value.addEventListener("scroll",M))})),(0,l.onMounted)((function(){z()}));var F=function(){var e,t,r=K.value?0:null===(e=P.value)||void 0===e?void 0:e.offsetLeft;p.modifiers=[{name:"offset",options:{offset:[r,4]}}],null===(t=I.value)||void 0===t||t.update()},M=function(){if(!v.isPageLoading&&0!==x.value.scrollTop){var e=x.value;if(e.scrollTop+e.offsetHeight>=e.scrollHeight){var t=v.curPage+1;t<=v.totalPage&&(v.isPageLoading=!0,setTimeout((function(){m(t)}),500))}}},q=function(){var e;return Array.from((null===(e=w.value)||void 0===e?void 0:e.childNodes)||[]).filter((function(e){return e.nodeType!==Node.TEXT_NODE}))},_=function(e){if(!r.disabled){if(null==e?void 0:e.target){var t=e.target.className;(t.indexOf("bk-tag-input-trigger")>-1||t.indexOf("tag-list")>-1)&&w.value.appendChild(P.value)}clearTimeout(C.value),K.value&&R.value.length&&(O.tagListCache=o(R.value),O.selectedTagListCache=o(O.selectedTagList),b.value=O.selectedTagListCache[0][r.saveKey],Y(O.selectedTagList[0],0),W()),d.isEdit=!0,(0,l.nextTick)((function(){var e;null===(e=T.value)||void 0===e||e.focus(),"focus"===r.trigger&&0!==O.localList.length&&(H(),p.isShow?F():p.isShow=!0)}))}},z=function(){var e=r.saveKey,t=r.modelValue,a=r.displayKey,o=r.allowCreate,l=r.trigger;if(O.selectedTagList=[],O.localList=A.value,t.length){var i={};O.selectedTagList=t.map((function(t){var r,l=E.value[t];return i[t]=1,!l&&o?(n(r={},e,t),n(r,a,t),r):l})).filter((function(e){return e})),K.value||(O.localList=O.localList.filter((function(t){return!i[t[e]]})))}"focus"===l&&H()},H=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=r.searchKey,a=r.filterCallback,n=e.toLowerCase().trim();if(""!==n){var o=[];o="function"==typeof a?a(n,t,O.localList)||[]:Array.isArray(t)?O.localList.filter((function(e){return t.some((function(t){return e[t].toLowerCase().indexOf(n)>-1}))})):O.localList.filter((function(e){return e[t].toLowerCase().indexOf(n)>-1})),g(o)}else g(O.localList)},B=function(){b.value=""},G=function(){if(K.value)return 0;var e=q().findIndex((function(e){return"tagInputItem"===e.id}));return e>=0?e:0},U=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&e){var a=t;r&&(a=t.nextElementSibling||null),t.parentNode.insertBefore(e,a)}},W=function(e){var t=r.maxData,a=r.trigger,n=r.allowCreate;if(-1===t||t>R.value.length){var o=((null==e?void 0:e.target)?e.target:b).value,l=y(o);l?(H(o),T.value.style.width="".concat(l*h,"px")):"focus"===a&&H()}else $(),b.value="",p.isShow=!1;d.isEdit=!0,d.focusItemIndex=n?-1:0},$=function(){C.value=setTimeout((function(){var e,t,n,o=b.value;if(B(),d.isEdit=!1,K.value){var l=(t=O.tagListCache,n=1,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a,n,o=[],l=!0,i=!1;try{for(r=r.call(e);!(l=(a=r.next()).done)&&(o.push(a.value),!t||o.length!==t);l=!0);}catch(e){i=!0,n=e}finally{try{l||null==r.return||r.return()}finally{if(i)throw n}}return o}}(t,n)||a(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0];o&&o===l&&O.selectedTagListCache.length?Q(O.selectedTagListCache[0],"select"):X("remove")}else if(r.allowAutoMatch&&o){var i=v.curPageList.find((function(e){return Array.isArray(r.searchKey)?r.searchKey.map((function(t){return e[t]})).includes(o):e[r.searchKey]===o}));i?Z(i,"select"):r.allowCreate&&Z(o,"custom")}p.isShow=!1,u("blur",o,R.value),null===(e=null==c?void 0:c.validate)||void 0===e||e.call(c,"blur")}),200)},Z=function(e,t,r){null==r||r.stopPropagation(),e&&!e.disabled&&(K.value&&(O.tagListCache=[],O.selectedTagListCache=[],O.selectedTagList=[]),Q(e,t),X("select"),B(),p.isShow=!1)},X=function(e,t){u("change",R.value),u(e,t),u("update:modelValue",R.value)},J=function(){var e=x.value.clientHeight,t=x.value.getBoundingClientRect().y;(0,l.nextTick)((function(){var r=x.value.querySelector(".bk-selector-actived");if(r){var a=r.clientHeight,n=r.getBoundingClientRect().y;n<t&&(x.value.scrollTop=x.value.scrollTop-(t-n));var o=n+a-t;o>e&&(x.value.scrollTop=x.value.scrollTop+o-e)}}))},Q=function(e,a){if(!(O.selectedTagList.length>=r.maxData&&-1!==r.maxData)){var i,s=r.separator,u=r.saveKey,c=r.displayKey,d=r.createTagValidator,p=G(),f=1,v=!1,g=function(e){return"function"!=typeof d||d(e)};if("custom"===a)if(s){var y,m=e.split(s),b=(m=m.filter((function(e){return(null==e?void 0:e.trim())&&!R.value.includes(e)&&g(e)}))).map((function(e){var t;return E.value[e]||(n(t={},u,e),n(t,c,e),t)}));m.length&&((y=O.selectedTagList).splice.apply(y,[p,0].concat(o(b))),f=b.length,v=!0)}else{var L="object"===t(e);if(void 0!==(i=(i=L?e[u]:e.trim()).replace(/\s+/g,""))&&!R.value.includes(i)&&g(i)){var w,x=E.value[i]||(L?e:(n(w={},u,i),n(w,c,i),w));O.selectedTagList.splice(p,0,x),v=!0}}else e&&(void 0===(i=e[u])||R.value.includes(i)||(O.selectedTagList.splice(p,0,e),v=!0));v&&(0,l.nextTick)((function(){for(var e=1;e<=f;e++){var t=q()[p+e];U(t,P.value)}if(T.value.style.width="".concat(h,"px"),!K.value){r.allowNextFocus&&_();var a=R.value.reduce((function(e,t){return e[t]=1,e}),{});O.localList=O.localList.filter((function(e){return!a[e[u]]}))}}))}},Y=function(e,t){O.selectedTagList.splice(t,1);var a=E.value[e[r.saveKey]];(r.allowCreate&&a||!r.allowCreate)&&!K.value&&O.localList.push(e)};return Object.assign(Object.assign(Object.assign(Object.assign({popoverProps:p},(0,l.toRefs)(d)),(0,l.toRefs)(O)),(0,l.toRefs)(v)),{isShowPlaceholder:k,isShowClear:V,curInputValue:b,renderList:D,showTagClose:S,tagInputRef:T,bkTagSelectorRef:L,tagListRef:w,tagInputItemRef:P,selectorListRef:x,popoverRef:I,triggerClass:N,focusInputTrigger:_,activeClass:function(e,t){var a={"bk-selector-actived":!1,"bk-selector-selected":R.value.includes(e[r.saveKey])};return r.useGroup?a["bk-selector-actived"]=e.__index__===d.focusItemIndex:a["bk-selector-actived"]=t===d.focusItemIndex,a},handleInput:W,handleFocus:function(){var e;p.width=K.value?null===(e=L.value)||void 0===e?void 0:e.clientWidth:r.contentWidth},handleBlur:$,handleTagSelected:Z,handleTagRemove:function(e,t,r){null==r||r.stopPropagation(),Y(e,t),B(),X("remove",e),T.value.style.width="".concat(h,"px")},handleClear:function(e){e.stopPropagation();var t=O.selectedTagList;O.selectedTagList=[];var a,n=t.filter((function(e){return E.value[e[r.saveKey]]}));(!r.allowCreate||0===n.length)&&r.allowCreate||K.value||(a=O.localList).push.apply(a,o(n)),X("removeAll")},tagFocus:function(e){r.disabled||(U(P.value,e.currentTarget,!0),T.value.style.width="".concat(h,"px"),p.isShow&&F())},handleKeydown:function(e){if(!v.isPageLoading){var t=e.target.value,a=y(t),n=G(),o=q();switch(e.code){case"ArrowUp":if(e.preventDefault(),!p.isShow)return;d.focusItemIndex=d.focusItemIndex-1,d.focusItemIndex=d.focusItemIndex<0?-1:d.focusItemIndex,-1===d.focusItemIndex&&(d.focusItemIndex=v.curPageList.length-1),J();break;case"ArrowDown":if(e.preventDefault(),!p.isShow)return;d.focusItemIndex=d.focusItemIndex+1,d.focusItemIndex=d.focusItemIndex>v.curPageList.length-1?v.curPageList.length:d.focusItemIndex,d.focusItemIndex===v.curPageList.length&&(d.focusItemIndex=0),J();break;case"ArrowLeft":if(d.isEdit=!0,!a){if(n<1)return;U(P.value,o[n-1]),_()}break;case"ArrowRight":if(d.isEdit=!0,!a){if(n===o.length-1)return;U(o[n+1],P.value),_()}break;case"Enter":case"NumpadEnter":!r.allowCreate&&p.isShow||r.allowCreate&&d.focusItemIndex>=0&&p.isShow?Z(v.curPageList[d.focusItemIndex],"select",e):r.allowCreate&&Z(b.value,"custom",e),e.preventDefault();break;case"Backspace":0===n||b.value||function(e,t){var a=q();U(P.value,a[e-1]),O.selectedTagList.splice(e-1,1),_();var n=E.value[t[r.saveKey]];(r.allowCreate&&n||!r.allowCreate)&&!K.value&&O.localList.push(t),T.value="".concat(h,"px"),X("remove")}(n,O.selectedTagList[n-1])}}},handlePaste:function(e){if(e.preventDefault(),K.value)return!1;var t=r.maxData,a=r.saveKey,l=r.displayKey,i=r.pasteFn,s=r.allowCreate,u=e.clipboardData.getData("text"),c=i?i(u):function(e){var t=[],a=e.split(";"),o=/^[a-zA-Z][a-zA-Z_]*/g;return a.forEach((function(e){var a=e.match(o);if(a){var l,i=a.join("");t.push((n(l={},r.saveKey,i),n(l,r.displayKey,i),l))}})),t}(u),d=c.map((function(e){return e[a]}));if(d.length){var p=q(),f=G(),v=O.localList.map((function(e){return e[a]}));if(d=d.filter((function(e){var t=(null==e?void 0:e.trim())&&!R.value.includes(e);return s?t:t&&v.includes(e)})),-1!==t){var g=O.selectedTagList.length;if(g<t){var y=t-g;d.length>y&&(d=o(d.slice(0,y)))}else d=[]}var m,b=s?d.map((function(e){var t,r=O.localList.find((function(t){return t[a]===e}));return null!=r?r:(n(t={},a,e),n(t,l,e),t)})):O.localList.filter((function(e){return d.includes(e[a])}));d.length&&((m=O.selectedTagList).splice.apply(m,[f,0].concat(o(b))),U(P.value,p[f]),T.value.style.width="".concat(h,"px"),O.localList=O.localList.filter((function(e){return!d.includes(e[a])})),X("select"),_())}}})},render:function(){var e=this;return(0,l.createVNode)("div",{class:"bk-tag-input",ref:"bkTagSelectorRef",onClick:this.focusInputTrigger,onMouseenter:function(){return e.isHover=!0},onMouseleave:function(){return e.isHover=!1}},[(0,l.createVNode)(g(),(0,l.mergeProps)({ref:"popoverRef",theme:"light",trigger:"manual",placement:"bottom-start","content-cls":"bk-tag-input-popover-content",arrow:!1},this.popoverProps),{default:function(){var t,r,a;return(0,l.createVNode)("div",{class:e.triggerClass},[(0,l.createVNode)("ul",{class:"tag-list",ref:"tagListRef",style:{marginLeft:"".concat(e.leftSpace,"px")}},[e.selectedTagList.map((function(t,r){var a={boundary:"window",theme:"light",distance:12,content:t[e.tooltipKey],disabled:!e.tooltipKey};return(0,l.withDirectives)((0,l.createVNode)("li",{class:"tag-item",onClick:e.tagFocus},[(0,l.createVNode)(b,{node:t,tpl:e.tagTpl,displayKey:e.displayKey},null),e.showTagClose?(0,l.createVNode)(d.Error,{class:"remove-tag",onClick:e.handleTagRemove.bind(e,t,r)},null):null]),[[(0,l.resolveDirective)("bk-tooltips"),a]])})),(0,l.withDirectives)((0,l.createVNode)("li",{ref:"tagInputItemRef",id:"tagInputItem",class:"tag-input-item",role:"input"},[(0,l.withDirectives)((0,l.createVNode)("input",{type:"text",class:"tag-input",ref:"tagInputRef","onUpdate:modelValue":function(t){return e.curInputValue=t},onInput:e.handleInput,onFocus:e.handleFocus,onBlur:e.handleBlur,onKeydown:e.handleKeydown,onPaste:e.handlePaste},null),[[l.vModelText,e.curInputValue]])]),[[l.vShow,e.isEdit]])]),(0,l.withDirectives)((0,l.createVNode)("p",{class:"placeholder"},[e.placeholder]),[[l.vShow,e.isShowPlaceholder]]),null!==(a=null===(r=null===(t=e.$slots)||void 0===t?void 0:t.suffix)||void 0===r?void 0:r.call(t))&&void 0!==a?a:e.isShowClear&&(0,l.createVNode)(d.Close,{class:"clear-icon",onClick:e.handleClear},null)])},content:function(){return(0,l.createVNode)("div",{class:"bk-selector-list"},[(0,l.createVNode)("ul",{ref:"selectorListRef",style:{"max-height":"".concat(e.contentMaxHeight,"px")},class:"outside-ul"},[e.renderList.map((function(t,r){return e.useGroup?(0,l.createVNode)("li",{class:"bk-selector-group-item"},[(0,l.createVNode)("span",{class:"group-name"},[t.name,(0,l.createTextVNode)(" ("),t.children.length,(0,l.createTextVNode)(")")]),(0,l.createVNode)("ul",{class:"bk-selector-group-list-item"},[t.children.map((function(t,r){return(0,l.createVNode)("li",{class:["bk-selector-list-item",{disabled:t.disabled},e.activeClass(t,r)],onClick:e.handleTagSelected.bind(e,t,"select")},[(0,l.createVNode)(m,{node:t,displayKey:e.displayKey,tpl:e.tpl,searchKey:e.searchKey,searchKeyword:e.curInputValue},null)])}))])]):(0,l.createVNode)("li",{class:["bk-selector-list-item",{disabled:t.disabled},e.activeClass(t,r)],onClick:e.handleTagSelected.bind(e,t,"select")},[(0,l.createVNode)(m,{node:t,displayKey:e.displayKey,tpl:e.tpl,searchKey:e.searchKey,searchKeyword:e.curInputValue},null)])})),e.isPageLoading?(0,l.createVNode)("li",{class:"bk-selector-list-item loading"},[(0,l.createVNode)(f(),{theme:"primary",size:p.BkLoadingSize.Small},null)]):null])])}})])}}),L=(0,e.withInstall)(T)})(),c})()));
1
+ !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"),require("lodash"),require("../directives"),require("../icon"),require("../loading"),require("../popover"));else if("function"==typeof define&&define.amd)define(["../shared","vue","lodash","../directives","../icon","../loading","../popover"],t);else{var r="object"==typeof exports?t(require("../shared"),require("vue"),require("lodash"),require("../directives"),require("../icon"),require("../loading"),require("../popover")):t(e["../shared"],e.vue,e.lodash,e["../directives"],e["../icon"],e["../loading"],e["../popover"]);for(var a in r)("object"==typeof exports?exports:e)[a]=r[a]}}(self,((e,t,r,a,n,o,l)=>(()=>{"use strict";var i={4061:e=>{e.exports=a},6870:e=>{e.exports=n},4870:e=>{e.exports=o},5537:e=>{e.exports=l},4212:t=>{t.exports=e},467:e=>{e.exports=r},748:e=>{e.exports=t}},s={};function u(e){var t=s[e];if(void 0!==t)return t.exports;var r=s[e]={exports:{}};return i[e](r,r.exports,u),r.exports}u.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return u.d(t,{a:t}),t},u.d=(e,t)=>{for(var r in t)u.o(t,r)&&!u.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},u.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),u.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var c={};return(()=>{u.r(c),u.d(c,{default:()=>L});var e=u(4212);function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}function a(e,t){if(e){if("string"==typeof e)return r(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?r(e,t):void 0}}function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e){return function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||a(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.")}()}var l=u(748),i=u(467),s=u(4061),d=u(6870),p=u(4870),f=u.n(p),v=u(5537),g=u.n(v),h=12,y=function(e){for(var t=e.length,r=0,a=0;a<t;a++)0!=(65280&e.charCodeAt(a))&&(r+=1),r+=1;return r};const m=(0,l.defineComponent)({name:"ListTagRender",props:{node:e.PropTypes.object,searchKey:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.arrayOf(e.PropTypes.string)]),displayKey:e.PropTypes.string,searchKeyword:e.PropTypes.string,tpl:{type:Function}},render:function(){var e=this,t=function(t){if(e.searchKeyword){var r=new RegExp("(".concat(e.searchKeyword,")"),"i");return t.replace(r,'<strong class="highlight-text">$1</strong>')}return t};if(this.tpl)return this.tpl(this.node,t,l.h,this);var r=this.node[this.displayKey];return(0,l.createVNode)("div",{class:"bk-selector-node"},[(0,l.createVNode)("span",{class:"text",innerHTML:t(r)},[r])])}}),b=(0,l.defineComponent)({name:"TagRender",props:{node:e.PropTypes.object,displayKey:e.PropTypes.string,tpl:{type:Function}},render:function(){return this.tpl?this.tpl(this.node,l.h,this):(0,l.createVNode)("div",{class:"tag"},[(0,l.createVNode)("span",{class:"text"},[this.node[this.displayKey]])])}}),T=(0,l.defineComponent)({name:"TagInput",directives:{bkTooltips:s.bkTooltips},props:{modelValue:e.PropTypes.arrayOf(e.PropTypes.string).def([]),placeholder:e.PropTypes.string.def("请输入并按 Enter 结束"),list:e.PropTypes.arrayOf(e.PropTypes.object).def([]),disabled:e.PropTypes.bool.def(!1),tooltipKey:e.PropTypes.string.def(""),saveKey:e.PropTypes.string.def("id"),displayKey:e.PropTypes.string.def("name"),hasDeleteIcon:e.PropTypes.bool.def(!1),clearable:e.PropTypes.bool.def(!0),trigger:e.PropTypes.commonType(["focus","search"]).def("search"),searchKey:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.arrayOf(e.PropTypes.string)]).def("name"),useGroup:e.PropTypes.bool.def(!1),allowCreate:e.PropTypes.bool.def(!1),maxData:e.PropTypes.number.def(-1),maxResult:e.PropTypes.number.def(10),contentMaxHeight:e.PropTypes.number.def(300),contentWidth:e.PropTypes.number.def(190),separator:e.PropTypes.string.def(""),allowNextFocus:e.PropTypes.bool.def(!0),allowAutoMatch:e.PropTypes.bool.def(!1),showClearOnlyHover:e.PropTypes.bool.def(!1),leftSpace:e.PropTypes.number.def(0),createTagValidator:{type:Function},filterCallback:{type:Function},tagTpl:{type:Function},tpl:{type:Function},pasteFn:{type:Function},withValidate:{type:Boolean,default:!0},popoverProps:{type:Object,default:function(){return{}}}},emits:["update:modelValue","change","select","blur","remove","removeAll"],setup:function(r,s){var u=s.emit,c=(0,e.useFormItem)(),d=(0,l.reactive)({isEdit:!1,isHover:!1,focusItemIndex:r.allowCreate?-1:0}),p=(0,l.reactive)(Object.assign({isShow:!1,width:190,modifiers:[{name:"offset",options:{offset:[0,4]}}]},r.popoverProps)),f=function(e){var t=(0,l.reactive)({curPage:1,totalSize:0,totalPage:0,pageSize:e,isPageLoading:!1,curPageList:[],renderListPaged:[]});return{pageState:t,initPage:function(){var e,r,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];t.curPage=1,t.totalSize=a.length,t.totalPage=Math.ceil(t.totalSize/t.pageSize)||1;var n=[];if(t.pageSize>0)for(var l=0;l<t.totalSize;l+=t.pageSize)n.push(a.slice(l,l+t.pageSize));(e=t.renderListPaged).splice.apply(e,[0,t.renderListPaged.length].concat(n)),(r=t.curPageList).splice.apply(r,[0,t.curPageList.length].concat(o(t.renderListPaged[t.curPage-1]||[])))},pageChange:function(e){var r;t.curPage=e,(r=t.curPageList).splice.apply(r,[t.curPageList.length,0].concat(o(t.renderListPaged[t.curPage-1]||[]))),t.isPageLoading=!1}}}((0,l.toRefs)(r).maxResult),v=f.pageState,g=f.initPage,m=f.pageChange,b=(0,l.ref)(""),T=(0,l.ref)(null),L=(0,l.ref)(null),w=(0,l.ref)(null),P=(0,l.ref)(null),x=(0,l.ref)(null),I=(0,l.ref)(null),C=(0,l.ref)(null),S=(0,l.computed)((function(){return!r.disabled&&r.hasDeleteIcon})),K=(0,l.computed)((function(){return 1===r.maxData})),k=(0,l.computed)((function(){return 0===O.selectedTagList.length&&""===b.value&&!d.isEdit})),V=(0,l.computed)((function(){return r.clearable&&!r.disabled&&0!==O.selectedTagList.length&&(!r.showClearOnlyHover||d.isHover)})),N=(0,l.computed)((function(){return{"bk-tag-input-trigger":!0,active:d.isEdit,disabled:r.disabled}})),O=(0,l.reactive)({localList:[],tagListCache:[],selectedTagList:[],selectedTagListCache:[]}),R=(0,l.computed)((function(){return O.selectedTagList.map((function(e){return e[r.saveKey]}))})),j=function(e){var t=(0,l.toRefs)(e),r=t.useGroup,a=t.saveKey,n=t.displayKey,o=t.list,i=(0,l.ref)([]),s=(0,l.ref)({});return(0,l.watch)([r,a,n,o],(function(){i.value=[];var e=(0,l.markRaw)(o.value);r.value&&(e=e.reduce((function(e,t){var r=[];return t.children&&(r=t.children.map((function(e){return Object.assign({group:{groupId:t[a.value],groupName:t[n.value]}},e)}))),e.concat(r)}),[])),i.value=e,s.value=e.reduce((function(e,t){return e[t[a.value]]=t,e}),{})}),{immediate:!0}),{flatList:i,saveKeyMap:s}}(r),A=j.flatList,E=j.saveKeyMap,D=(0,l.computed)((function(){if(r.useGroup){var e={};return v.curPageList.forEach((function(t,r){t.__index__=r,e[t.group.groupId]||(e[t.group.groupId]={id:t.group.groupId,name:t.group.groupName,children:[]}),e[t.group.groupId].children.push(t)})),Object.keys(e).map((function(t){return e[t]}))}return v.curPageList}));(0,l.watch)([function(){return A.value}],(function(){(0,l.nextTick)((function(){z()}))})),(0,l.watch)((function(){return r.modelValue}),(function(e){var t,a,n;n=e,(a=R.value).length===n.length&&n.every((function(e,t){return a[t]===e}))||((0,l.nextTick)((function(){z()})),r.withValidate&&(null===(t=null==c?void 0:c.validate)||void 0===t||t.call(c,"change")))})),(0,l.watch)(b,(0,i.debounce)((function(){var e=0!==v.curPageList.length,t=b.value;""!==t&&e||""===t&&"focus"===r.trigger&&e?p.isShow=!0:"focus"===r.trigger&&e||(p.isShow=!1)}),150)),(0,l.watch)((function(){return p.isShow}),(function(e){F(),e&&x.value&&((0,l.nextTick)((function(){x.value.scrollTop=0})),x.value.removeEventListener("scroll",M),x.value.addEventListener("scroll",M))})),(0,l.onMounted)((function(){z()}));var F=function(){var e,t,r=K.value?0:null===(e=P.value)||void 0===e?void 0:e.offsetLeft;p.modifiers=[{name:"offset",options:{offset:[r,4]}}],null===(t=I.value)||void 0===t||t.update()},M=function(){if(!v.isPageLoading&&0!==x.value.scrollTop){var e=x.value;if(e.scrollTop+e.offsetHeight>=e.scrollHeight){var t=v.curPage+1;t<=v.totalPage&&(v.isPageLoading=!0,setTimeout((function(){m(t)}),500))}}},q=function(){var e;return Array.from((null===(e=w.value)||void 0===e?void 0:e.childNodes)||[]).filter((function(e){return e.nodeType!==Node.TEXT_NODE}))},_=function(e){if(!r.disabled){if(null==e?void 0:e.target){var t=e.target.className;(t.indexOf("bk-tag-input-trigger")>-1||t.indexOf("tag-list")>-1)&&w.value.appendChild(P.value)}clearTimeout(C.value),K.value&&R.value.length&&(O.tagListCache=o(R.value),O.selectedTagListCache=o(O.selectedTagList),b.value=O.selectedTagListCache[0][r.saveKey],Y(O.selectedTagList[0],0),W()),d.isEdit=!0,(0,l.nextTick)((function(){var e;null===(e=T.value)||void 0===e||e.focus(),"focus"===r.trigger&&0!==O.localList.length&&(H(),p.isShow?F():p.isShow=!0)}))}},z=function(){var e=r.saveKey,t=r.modelValue,a=r.displayKey,o=r.allowCreate,l=r.trigger;if(O.selectedTagList=[],O.localList=A.value,t.length){var i={};O.selectedTagList=t.map((function(t){var r,l=E.value[t];return i[t]=1,!l&&o?(n(r={},e,t),n(r,a,t),r):l})).filter((function(e){return e})),K.value||(O.localList=O.localList.filter((function(t){return!i[t[e]]})))}"focus"===l&&H()},H=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=r.searchKey,a=r.filterCallback,n=e.toLowerCase().trim();if(""!==n){var o=[];o="function"==typeof a?a(n,t,O.localList)||[]:Array.isArray(t)?O.localList.filter((function(e){return t.some((function(t){return e[t].toLowerCase().indexOf(n)>-1}))})):O.localList.filter((function(e){return e[t].toLowerCase().indexOf(n)>-1})),g(o)}else g(O.localList)},B=function(){b.value=""},G=function(){if(K.value)return 0;var e=q().findIndex((function(e){return"tagInputItem"===e.id}));return e>=0?e:0},U=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&e){var a=t;r&&(a=t.nextElementSibling||null),t.parentNode.insertBefore(e,a)}},W=function(e){var t=r.maxData,a=r.trigger,n=r.allowCreate;if(-1===t||t>R.value.length){var o=((null==e?void 0:e.target)?e.target:b).value,l=y(o);l?(H(o),T.value.style.width="".concat(l*h,"px")):"focus"===a&&H()}else $(),b.value="",p.isShow=!1;d.isEdit=!0,d.focusItemIndex=n?-1:0},$=function(){C.value=setTimeout((function(){var e,t,n,o=b.value;if(B(),d.isEdit=!1,K.value){var l=(t=O.tagListCache,n=1,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a,n,o=[],l=!0,i=!1;try{for(r=r.call(e);!(l=(a=r.next()).done)&&(o.push(a.value),!t||o.length!==t);l=!0);}catch(e){i=!0,n=e}finally{try{l||null==r.return||r.return()}finally{if(i)throw n}}return o}}(t,n)||a(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0];o&&o===l&&O.selectedTagListCache.length?Q(O.selectedTagListCache[0],"select"):X("remove")}else if(r.allowAutoMatch&&o){var i=v.curPageList.find((function(e){return Array.isArray(r.searchKey)?r.searchKey.map((function(t){return e[t]})).includes(o):e[r.searchKey]===o}));i?Z(i,"select"):r.allowCreate&&Z(o,"custom")}p.isShow=!1,u("blur",o,R.value),null===(e=null==c?void 0:c.validate)||void 0===e||e.call(c,"blur")}),200)},Z=function(e,t,r){null==r||r.stopPropagation(),e&&!e.disabled&&(K.value&&(O.tagListCache=[],O.selectedTagListCache=[],O.selectedTagList=[]),Q(e,t),X("select"),B(),p.isShow=!1)},X=function(e,t){u("change",R.value),u(e,t),u("update:modelValue",R.value)},J=function(){var e=x.value.clientHeight,t=x.value.getBoundingClientRect().y;(0,l.nextTick)((function(){var r=x.value.querySelector(".bk-selector-actived");if(r){var a=r.clientHeight,n=r.getBoundingClientRect().y;n<t&&(x.value.scrollTop=x.value.scrollTop-(t-n));var o=n+a-t;o>e&&(x.value.scrollTop=x.value.scrollTop+o-e)}}))},Q=function(e,a){if(!(O.selectedTagList.length>=r.maxData&&-1!==r.maxData)){var i,s=r.separator,u=r.saveKey,c=r.displayKey,d=r.createTagValidator,p=G(),f=1,v=!1,g=function(e){return"function"!=typeof d||d(e)};if("custom"===a)if(s){var y,m=e.split(s),b=(m=m.filter((function(e){return(null==e?void 0:e.trim())&&!R.value.includes(e)&&g(e)}))).map((function(e){var t;return E.value[e]||(n(t={},u,e),n(t,c,e),t)}));m.length&&((y=O.selectedTagList).splice.apply(y,[p,0].concat(o(b))),f=b.length,v=!0)}else{var L="object"===t(e);if(void 0!==(i=(i=L?e[u]:e.trim()).replace(/\s+/g,""))&&!R.value.includes(i)&&g(i)){var w,x=E.value[i]||(L?e:(n(w={},u,i),n(w,c,i),w));O.selectedTagList.splice(p,0,x),v=!0}}else e&&(void 0===(i=e[u])||R.value.includes(i)||(O.selectedTagList.splice(p,0,e),v=!0));v&&(0,l.nextTick)((function(){for(var e=1;e<=f;e++){var t=q()[p+e];U(t,P.value)}if(T.value.style.width="".concat(h,"px"),!K.value){r.allowNextFocus&&_();var a=R.value.reduce((function(e,t){return e[t]=1,e}),{});O.localList=O.localList.filter((function(e){return!a[e[u]]}))}}))}},Y=function(e,t){O.selectedTagList.splice(t,1);var a=E.value[e[r.saveKey]];(r.allowCreate&&a||!r.allowCreate)&&!K.value&&O.localList.push(e)};return Object.assign(Object.assign(Object.assign(Object.assign({popoverProps:p},(0,l.toRefs)(d)),(0,l.toRefs)(O)),(0,l.toRefs)(v)),{isShowPlaceholder:k,isShowClear:V,curInputValue:b,renderList:D,showTagClose:S,tagInputRef:T,bkTagSelectorRef:L,tagListRef:w,tagInputItemRef:P,selectorListRef:x,popoverRef:I,triggerClass:N,focusInputTrigger:_,activeClass:function(e,t){var a={"bk-selector-actived":!1,"bk-selector-selected":R.value.includes(e[r.saveKey])};return r.useGroup?a["bk-selector-actived"]=e.__index__===d.focusItemIndex:a["bk-selector-actived"]=t===d.focusItemIndex,a},handleInput:W,handleFocus:function(){var e;p.width=K.value?null===(e=L.value)||void 0===e?void 0:e.clientWidth:r.contentWidth},handleBlur:$,handleTagSelected:Z,handleTagRemove:function(e,t,r){null==r||r.stopPropagation(),Y(e,t),B(),X("remove",e),T.value.style.width="".concat(h,"px")},handleClear:function(e){e.stopPropagation();var t=O.selectedTagList;O.selectedTagList=[];var a,n=t.filter((function(e){return E.value[e[r.saveKey]]}));(!r.allowCreate||0===n.length)&&r.allowCreate||K.value||(a=O.localList).push.apply(a,o(n)),X("removeAll")},tagFocus:function(e){r.disabled||(U(P.value,e.currentTarget,!0),T.value.style.width="".concat(h,"px"),p.isShow&&F())},handleKeydown:function(e){if(!v.isPageLoading){var t=e.target.value,a=y(t),n=G(),o=q();switch(e.code){case"ArrowUp":if(e.preventDefault(),!p.isShow)return;d.focusItemIndex=d.focusItemIndex-1,d.focusItemIndex=d.focusItemIndex<0?-1:d.focusItemIndex,-1===d.focusItemIndex&&(d.focusItemIndex=v.curPageList.length-1),J();break;case"ArrowDown":if(e.preventDefault(),!p.isShow)return;d.focusItemIndex=d.focusItemIndex+1,d.focusItemIndex=d.focusItemIndex>v.curPageList.length-1?v.curPageList.length:d.focusItemIndex,d.focusItemIndex===v.curPageList.length&&(d.focusItemIndex=0),J();break;case"ArrowLeft":if(d.isEdit=!0,!a){if(n<1)return;U(P.value,o[n-1]),_()}break;case"ArrowRight":if(d.isEdit=!0,!a){if(n===o.length-1)return;U(o[n+1],P.value),_()}break;case"Enter":case"NumpadEnter":!r.allowCreate&&p.isShow||r.allowCreate&&d.focusItemIndex>=0&&p.isShow?Z(v.curPageList[d.focusItemIndex],"select",e):r.allowCreate&&Z(b.value,"custom",e),e.preventDefault();break;case"Backspace":0===n||b.value||function(e,t){var a=q();U(P.value,a[e-1]),O.selectedTagList.splice(e-1,1),_();var n=E.value[t[r.saveKey]];(r.allowCreate&&n||!r.allowCreate)&&!K.value&&O.localList.push(t),T.value="".concat(h,"px"),X("remove")}(n,O.selectedTagList[n-1])}}},handlePaste:function(e){if(e.preventDefault(),K.value)return!1;var t=r.maxData,a=r.saveKey,l=r.displayKey,i=r.pasteFn,s=r.allowCreate,u=e.clipboardData.getData("text"),c=i?i(u):function(e){var t=[],a=e.split(";"),o=/^[a-zA-Z][a-zA-Z_]*/g;return a.forEach((function(e){var a=e.match(o);if(a){var l,i=a.join("");t.push((n(l={},r.saveKey,i),n(l,r.displayKey,i),l))}})),t}(u),d=c.map((function(e){return e[a]}));if(d.length){var p=q(),f=G(),v=O.localList.map((function(e){return e[a]}));if(d=d.filter((function(e){var t=(null==e?void 0:e.trim())&&!R.value.includes(e);return s?t:t&&v.includes(e)})),-1!==t){var g=O.selectedTagList.length;if(g<t){var y=t-g;d.length>y&&(d=o(d.slice(0,y)))}else d=[]}var m,b=s?d.map((function(e){var t,r=O.localList.find((function(t){return t[a]===e}));return null!=r?r:(n(t={},a,e),n(t,l,e),t)})):O.localList.filter((function(e){return d.includes(e[a])}));d.length&&((m=O.selectedTagList).splice.apply(m,[f,0].concat(o(b))),U(P.value,p[f]),T.value.style.width="".concat(h,"px"),O.localList=O.localList.filter((function(e){return!d.includes(e[a])})),X("select"),_())}}})},render:function(){var e=this;return(0,l.createVNode)("div",{class:"bk-tag-input",ref:"bkTagSelectorRef",onClick:this.focusInputTrigger,onMouseenter:function(){return e.isHover=!0},onMouseleave:function(){return e.isHover=!1}},[(0,l.createVNode)(g(),(0,l.mergeProps)({ref:"popoverRef",theme:"light",trigger:"manual",placement:"bottom-start","content-cls":"bk-tag-input-popover-content",arrow:!1},this.popoverProps),{default:function(){var t,r,a;return(0,l.createVNode)("div",{class:e.triggerClass},[(0,l.createVNode)("ul",{class:"tag-list",ref:"tagListRef",style:{marginLeft:"".concat(e.leftSpace,"px")}},[e.selectedTagList.map((function(t,r){var a={boundary:"window",theme:"light",distance:12,content:t[e.tooltipKey],disabled:!e.tooltipKey};return(0,l.withDirectives)((0,l.createVNode)("li",{class:"tag-item",onClick:e.tagFocus},[(0,l.createVNode)(b,{node:t,tpl:e.tagTpl,displayKey:e.displayKey},null),e.showTagClose?(0,l.createVNode)(d.Error,{class:"remove-tag",onClick:e.handleTagRemove.bind(e,t,r)},null):null]),[[(0,l.resolveDirective)("bk-tooltips"),a]])})),(0,l.withDirectives)((0,l.createVNode)("li",{ref:"tagInputItemRef",id:"tagInputItem",class:"tag-input-item",role:"input"},[(0,l.withDirectives)((0,l.createVNode)("input",{type:"text",class:"tag-input",ref:"tagInputRef","onUpdate:modelValue":function(t){return e.curInputValue=t},onInput:e.handleInput,onFocus:e.handleFocus,onBlur:e.handleBlur,onKeydown:e.handleKeydown,onPaste:e.handlePaste},null),[[l.vModelText,e.curInputValue]])]),[[l.vShow,e.isEdit]])]),(0,l.withDirectives)((0,l.createVNode)("p",{class:"placeholder"},[e.placeholder]),[[l.vShow,e.isShowPlaceholder]]),null!==(a=null===(r=null===(t=e.$slots)||void 0===t?void 0:t.suffix)||void 0===r?void 0:r.call(t))&&void 0!==a?a:e.isShowClear&&(0,l.createVNode)(d.Close,{class:"clear-icon",onClick:e.handleClear},null)])},content:function(){return(0,l.createVNode)("div",{class:"bk-selector-list"},[(0,l.createVNode)("ul",{ref:"selectorListRef",style:{"max-height":"".concat(e.contentMaxHeight,"px")},class:"outside-ul"},[e.renderList.map((function(t,r){return e.useGroup?(0,l.createVNode)("li",{class:"bk-selector-group-item"},[(0,l.createVNode)("span",{class:"group-name"},[t.name,(0,l.createTextVNode)(" ("),t.children.length,(0,l.createTextVNode)(")")]),(0,l.createVNode)("ul",{class:"bk-selector-group-list-item"},[t.children.map((function(t,r){return(0,l.createVNode)("li",{class:["bk-selector-list-item",{disabled:t.disabled},e.activeClass(t,r)],onClick:e.handleTagSelected.bind(e,t,"select")},[(0,l.createVNode)(m,{node:t,displayKey:e.displayKey,tpl:e.tpl,searchKey:e.searchKey,searchKeyword:e.curInputValue},null)])}))])]):(0,l.createVNode)("li",{class:["bk-selector-list-item",{disabled:t.disabled},e.activeClass(t,r)],onClick:e.handleTagSelected.bind(e,t,"select")},[(0,l.createVNode)(m,{node:t,displayKey:e.displayKey,tpl:e.tpl,searchKey:e.searchKey,searchKeyword:e.curInputValue},null)])})),e.isPageLoading?(0,l.createVNode)("li",{class:"bk-selector-list-item loading"},[(0,l.createVNode)(f(),{theme:"primary",size:p.BkLoadingSize.Small},null)]):null])])}})])}}),L=(0,e.withInstall)(T)})(),c})()));
@@ -15,7 +15,6 @@ declare const _default: import("vue").DefineComponent<{
15
15
  };
16
16
  tpl: {
17
17
  type: FunctionConstructor;
18
- default: any;
19
18
  };
20
19
  }, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
21
20
  node: import("vue-types").VueTypeValidableDef<{
@@ -34,11 +33,9 @@ declare const _default: import("vue").DefineComponent<{
34
33
  };
35
34
  tpl: {
36
35
  type: FunctionConstructor;
37
- default: any;
38
36
  };
39
37
  }>>, {
40
38
  displayKey: string;
41
- tpl: Function;
42
39
  node: {
43
40
  [key: string]: any;
44
41
  };
@@ -108,11 +108,9 @@ declare const _default: import("vue").DefineComponent<{
108
108
  };
109
109
  createTagValidator: {
110
110
  type: import("vue").PropType<(tag: any) => boolean>;
111
- default: any;
112
111
  };
113
112
  filterCallback: {
114
113
  type: import("vue").PropType<(value: string, searchKey: string | string[], list: any[]) => any[]>;
115
- default: any;
116
114
  };
117
115
  tagTpl: {
118
116
  type: import("vue").PropType<(node: any, highlightKeyword: Function, h: Function, ctx: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
@@ -120,7 +118,6 @@ declare const _default: import("vue").DefineComponent<{
120
118
  }>) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
121
119
  [key: string]: any;
122
120
  }>>;
123
- default: any;
124
121
  };
125
122
  tpl: {
126
123
  type: import("vue").PropType<(node: any, h: Function, ctx: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
@@ -128,11 +125,9 @@ declare const _default: import("vue").DefineComponent<{
128
125
  }>) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
129
126
  [key: string]: any;
130
127
  }>>;
131
- default: any;
132
128
  };
133
129
  pasteFn: {
134
130
  type: import("vue").PropType<(value: string) => any[]>;
135
- default: any;
136
131
  };
137
132
  withValidate: {
138
133
  type: BooleanConstructor;
@@ -384,11 +379,9 @@ declare const _default: import("vue").DefineComponent<{
384
379
  };
385
380
  createTagValidator: {
386
381
  type: import("vue").PropType<(tag: any) => boolean>;
387
- default: any;
388
382
  };
389
383
  filterCallback: {
390
384
  type: import("vue").PropType<(value: string, searchKey: string | string[], list: any[]) => any[]>;
391
- default: any;
392
385
  };
393
386
  tagTpl: {
394
387
  type: import("vue").PropType<(node: any, highlightKeyword: Function, h: Function, ctx: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
@@ -396,7 +389,6 @@ declare const _default: import("vue").DefineComponent<{
396
389
  }>) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
397
390
  [key: string]: any;
398
391
  }>>;
399
- default: any;
400
392
  };
401
393
  tpl: {
402
394
  type: import("vue").PropType<(node: any, h: Function, ctx: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
@@ -404,11 +396,9 @@ declare const _default: import("vue").DefineComponent<{
404
396
  }>) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
405
397
  [key: string]: any;
406
398
  }>>;
407
- default: any;
408
399
  };
409
400
  pasteFn: {
410
401
  type: import("vue").PropType<(value: string) => any[]>;
411
- default: any;
412
402
  };
413
403
  withValidate: {
414
404
  type: BooleanConstructor;
@@ -529,19 +519,6 @@ declare const _default: import("vue").DefineComponent<{
529
519
  allowNextFocus: boolean;
530
520
  allowAutoMatch: boolean;
531
521
  leftSpace: number;
532
- createTagValidator: (tag: any) => boolean;
533
- filterCallback: (value: string, searchKey: string | string[], list: any[]) => any[];
534
- tagTpl: (node: any, highlightKeyword: Function, h: Function, ctx: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
535
- [key: string]: any;
536
- }>) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
537
- [key: string]: any;
538
- }>;
539
- tpl: (node: any, h: Function, ctx: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
540
- [key: string]: any;
541
- }>) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
542
- [key: string]: any;
543
- }>;
544
- pasteFn: (value: string) => any[];
545
522
  popoverProps: {};
546
523
  }>;
547
524
  export default _default;
@@ -51,13 +51,13 @@
51
51
  --radio-active-color: #5594fa;
52
52
  --radio-hover-border-color: #979ba5;
53
53
  --radio-disabled-border: #dcdee5;
54
- --radio-disabled-font-color: #c4c6c;
54
+ --radio-disabled-font-color: #c4c6cc;
55
55
  --radio-distable-checked-bg: #fafbfd;
56
56
  --radio-button-checked-bg: #e1ecff;
57
57
  --fixed-navbar-background: #fff;
58
58
  --fixed-navbar-boxshadow-color: rgba(0, 0, 0, 0.1);
59
59
  --switch-default-color: #fff;
60
- --switch-grey-color: #c4c6cc;
60
+ --switch-grey-color: cc;
61
61
  --breadcrumb-black-color: #979ba5;
62
62
  --breadcrumb-primary-hover-color: #0082ff;
63
63
  --breadcrumb-fn-main-color: #63656e;
@@ -108,23 +108,18 @@ declare const tagProps: () => {
108
108
  };
109
109
  createTagValidator: {
110
110
  type: PropType<(tag: any) => boolean>;
111
- default: any;
112
111
  };
113
112
  filterCallback: {
114
113
  type: PropType<(value: string, searchKey: string | string[], list: any[]) => any[]>;
115
- default: any;
116
114
  };
117
115
  tagTpl: {
118
116
  type: PropType<(node: any, highlightKeyword: Function, h: Function, ctx: VNode) => VNode>;
119
- default: any;
120
117
  };
121
118
  tpl: {
122
119
  type: PropType<(node: any, h: Function, ctx: VNode) => VNode>;
123
- default: any;
124
120
  };
125
121
  pasteFn: {
126
122
  type: PropType<(value: string) => any[]>;
127
- default: any;
128
123
  };
129
124
  withValidate: {
130
125
  type: BooleanConstructor;
@@ -11,7 +11,6 @@ declare const _default: import("vue").DefineComponent<{
11
11
  };
12
12
  tpl: {
13
13
  type: FunctionConstructor;
14
- default: any;
15
14
  };
16
15
  }, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
17
16
  node: import("vue-types").VueTypeValidableDef<{
@@ -26,11 +25,9 @@ declare const _default: import("vue").DefineComponent<{
26
25
  };
27
26
  tpl: {
28
27
  type: FunctionConstructor;
29
- default: any;
30
28
  };
31
29
  }>>, {
32
30
  displayKey: string;
33
- tpl: Function;
34
31
  node: {
35
32
  [key: string]: any;
36
33
  };
@@ -92,7 +92,6 @@ declare const BkTimePicker: {
92
92
  };
93
93
  open: {
94
94
  readonly type: BooleanConstructor;
95
- readonly default: any;
96
95
  };
97
96
  multiple: {
98
97
  readonly type: BooleanConstructor;
@@ -255,7 +254,6 @@ declare const BkTimePicker: {
255
254
  };
256
255
  open: {
257
256
  readonly type: BooleanConstructor;
258
- readonly default: any;
259
257
  };
260
258
  multiple: {
261
259
  readonly type: BooleanConstructor;
@@ -512,7 +510,6 @@ declare const BkTimePicker: {
512
510
  };
513
511
  open: {
514
512
  readonly type: BooleanConstructor;
515
- readonly default: any;
516
513
  };
517
514
  multiple: {
518
515
  readonly type: BooleanConstructor;
@@ -720,7 +717,6 @@ declare const BkTimePicker: {
720
717
  };
721
718
  open: {
722
719
  readonly type: BooleanConstructor;
723
- readonly default: any;
724
720
  };
725
721
  multiple: {
726
722
  readonly type: BooleanConstructor;
@@ -51,13 +51,13 @@
51
51
  --radio-active-color: #5594fa;
52
52
  --radio-hover-border-color: #979ba5;
53
53
  --radio-disabled-border: #dcdee5;
54
- --radio-disabled-font-color: #c4c6c;
54
+ --radio-disabled-font-color: #c4c6cc;
55
55
  --radio-distable-checked-bg: #fafbfd;
56
56
  --radio-button-checked-bg: #e1ecff;
57
57
  --fixed-navbar-background: #fff;
58
58
  --fixed-navbar-boxshadow-color: rgba(0, 0, 0, 0.1);
59
59
  --switch-default-color: #fff;
60
- --switch-grey-color: #c4c6cc;
60
+ --switch-grey-color: cc;
61
61
  --breadcrumb-black-color: #979ba5;
62
62
  --breadcrumb-primary-hover-color: #0082ff;
63
63
  --breadcrumb-fn-main-color: #63656e;
@@ -51,13 +51,13 @@
51
51
  --radio-active-color: #5594fa;
52
52
  --radio-hover-border-color: #979ba5;
53
53
  --radio-disabled-border: #dcdee5;
54
- --radio-disabled-font-color: #c4c6c;
54
+ --radio-disabled-font-color: #c4c6cc;
55
55
  --radio-distable-checked-bg: #fafbfd;
56
56
  --radio-button-checked-bg: #e1ecff;
57
57
  --fixed-navbar-background: #fff;
58
58
  --fixed-navbar-boxshadow-color: rgba(0, 0, 0, 0.1);
59
59
  --switch-default-color: #fff;
60
- --switch-grey-color: #c4c6cc;
60
+ --switch-grey-color: cc;
61
61
  --breadcrumb-black-color: #979ba5;
62
62
  --breadcrumb-primary-hover-color: #0082ff;
63
63
  --breadcrumb-fn-main-color: #63656e;
@@ -51,13 +51,13 @@
51
51
  --radio-active-color: #5594fa;
52
52
  --radio-hover-border-color: #979ba5;
53
53
  --radio-disabled-border: #dcdee5;
54
- --radio-disabled-font-color: #c4c6c;
54
+ --radio-disabled-font-color: #c4c6cc;
55
55
  --radio-distable-checked-bg: #fafbfd;
56
56
  --radio-button-checked-bg: #e1ecff;
57
57
  --fixed-navbar-background: #fff;
58
58
  --fixed-navbar-boxshadow-color: rgba(0, 0, 0, 0.1);
59
59
  --switch-default-color: #fff;
60
- --switch-grey-color: #c4c6cc;
60
+ --switch-grey-color: cc;
61
61
  --breadcrumb-black-color: #979ba5;
62
62
  --breadcrumb-primary-hover-color: #0082ff;
63
63
  --breadcrumb-fn-main-color: #63656e;
@@ -51,13 +51,13 @@
51
51
  --radio-active-color: #5594fa;
52
52
  --radio-hover-border-color: #979ba5;
53
53
  --radio-disabled-border: #dcdee5;
54
- --radio-disabled-font-color: #c4c6c;
54
+ --radio-disabled-font-color: #c4c6cc;
55
55
  --radio-distable-checked-bg: #fafbfd;
56
56
  --radio-button-checked-bg: #e1ecff;
57
57
  --fixed-navbar-background: #fff;
58
58
  --fixed-navbar-boxshadow-color: rgba(0, 0, 0, 0.1);
59
59
  --switch-default-color: #fff;
60
- --switch-grey-color: #c4c6cc;
60
+ --switch-grey-color: cc;
61
61
  --breadcrumb-black-color: #979ba5;
62
62
  --breadcrumb-primary-hover-color: #0082ff;
63
63
  --breadcrumb-fn-main-color: #63656e;