bromcom-ui 2.8.1-rc.2 → 2.8.1-rc.3

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 (218) hide show
  1. package/dist/bromcom-ui/bromcom-ui.css +1 -1
  2. package/dist/bromcom-ui/bromcom-ui.esm.js +1 -1
  3. package/dist/bromcom-ui/{p-dac557b6.entry.js → p-05852df3.entry.js} +1 -1
  4. package/dist/bromcom-ui/{p-b7cc2017.entry.js → p-1b1f82cf.entry.js} +1 -1
  5. package/dist/bromcom-ui/{p-3567551d.entry.js → p-1c1f02a8.entry.js} +1 -1
  6. package/dist/bromcom-ui/{p-8b855df0.entry.js → p-1d591e1e.entry.js} +1 -1
  7. package/dist/bromcom-ui/p-1eabd5dc.js +10 -0
  8. package/dist/bromcom-ui/{p-56106366.entry.js → p-23b6f1b6.entry.js} +1 -1
  9. package/dist/bromcom-ui/{p-419de710.entry.js → p-25e6e25d.entry.js} +1 -1
  10. package/dist/bromcom-ui/{p-d5a01b74.entry.js → p-2c93afb8.entry.js} +1 -1
  11. package/dist/bromcom-ui/{p-4127fc78.entry.js → p-2d1124ca.entry.js} +1 -1
  12. package/dist/bromcom-ui/{p-4d331d46.entry.js → p-50b59f5f.entry.js} +1 -1
  13. package/dist/bromcom-ui/p-5358bb45.entry.js +5 -0
  14. package/dist/bromcom-ui/p-53658089.entry.js +13 -0
  15. package/dist/bromcom-ui/{p-c8e8b60e.entry.js → p-538a13af.entry.js} +1 -1
  16. package/dist/bromcom-ui/{p-7ba96cf2.js → p-594fbc80.js} +1 -1
  17. package/dist/bromcom-ui/p-59efe1da.js +5 -0
  18. package/dist/bromcom-ui/{p-7cf1f3de.entry.js → p-5bb7e3b7.entry.js} +1 -1
  19. package/dist/bromcom-ui/{p-f09dbef5.entry.js → p-5bf4d697.entry.js} +1 -1
  20. package/dist/bromcom-ui/{p-be825c0f.entry.js → p-5c718986.entry.js} +1 -1
  21. package/dist/bromcom-ui/{p-a5cd708f.entry.js → p-5e72a278.entry.js} +1 -1
  22. package/dist/bromcom-ui/{p-3c065d74.entry.js → p-63608aaa.entry.js} +1 -1
  23. package/dist/bromcom-ui/{p-cf31f51c.entry.js → p-6b988756.entry.js} +1 -1
  24. package/dist/bromcom-ui/{p-78258c6a.entry.js → p-6db0f8dd.entry.js} +1 -1
  25. package/dist/bromcom-ui/{p-bb7e043b.entry.js → p-6eefda1d.entry.js} +1 -1
  26. package/dist/bromcom-ui/{p-d8dc6cbc.entry.js → p-6f5bd54d.entry.js} +1 -1
  27. package/dist/bromcom-ui/{p-70d0ec99.entry.js → p-702a285b.entry.js} +1 -1
  28. package/dist/bromcom-ui/{p-7fca36fc.entry.js → p-70b210af.entry.js} +1 -1
  29. package/dist/bromcom-ui/{p-ba983d4d.js → p-75a2820f.js} +1 -1
  30. package/dist/bromcom-ui/{p-80961b1f.entry.js → p-76182c8b.entry.js} +1 -1
  31. package/dist/bromcom-ui/{p-5a828ce3.entry.js → p-78527fcd.entry.js} +1 -1
  32. package/dist/bromcom-ui/{p-8c25cbe7.entry.js → p-7baef152.entry.js} +1 -1
  33. package/dist/bromcom-ui/{p-cd5a2b60.entry.js → p-8aa4fee3.entry.js} +1 -1
  34. package/dist/bromcom-ui/{p-58122b12.js → p-8e7a489e.js} +1 -1
  35. package/dist/bromcom-ui/{p-2e29836f.entry.js → p-962fee18.entry.js} +1 -1
  36. package/dist/bromcom-ui/{p-7c3d76b0.entry.js → p-97e22a22.entry.js} +1 -1
  37. package/dist/bromcom-ui/{p-dd908a30.js → p-9bc739ac.js} +1 -1
  38. package/dist/bromcom-ui/{p-612462f9.entry.js → p-9c2f39ab.entry.js} +1 -1
  39. package/dist/bromcom-ui/{p-d47493db.entry.js → p-9d00bf3c.entry.js} +1 -1
  40. package/dist/bromcom-ui/{p-b707b27a.js → p-aea6f62f.js} +1 -1
  41. package/dist/bromcom-ui/{p-1a64f637.entry.js → p-af81e5fa.entry.js} +1 -1
  42. package/dist/bromcom-ui/{p-9bb0596c.entry.js → p-b1b64c8b.entry.js} +1 -1
  43. package/dist/bromcom-ui/{p-b95ef982.entry.js → p-b29766b2.entry.js} +1 -1
  44. package/dist/bromcom-ui/{p-889c98a7.entry.js → p-b4b06540.entry.js} +1 -1
  45. package/dist/bromcom-ui/{p-92a86fe4.entry.js → p-b685ca73.entry.js} +1 -1
  46. package/dist/bromcom-ui/{p-b8d63188.entry.js → p-b7919ac8.entry.js} +1 -1
  47. package/dist/bromcom-ui/{p-5f8993f5.entry.js → p-bae55354.entry.js} +1 -1
  48. package/dist/bromcom-ui/{p-ce7c5d82.entry.js → p-bbd80e20.entry.js} +1 -1
  49. package/dist/bromcom-ui/{p-ba6d4f9b.entry.js → p-c0bb9cfc.entry.js} +1 -1
  50. package/dist/bromcom-ui/{p-e3ea3b39.entry.js → p-c4e92744.entry.js} +1 -1
  51. package/dist/bromcom-ui/{p-32ce5b3d.entry.js → p-c863ba72.entry.js} +1 -1
  52. package/dist/bromcom-ui/{p-661f583b.entry.js → p-d019f179.entry.js} +1 -1
  53. package/dist/bromcom-ui/{p-1f7deee4.entry.js → p-d497bc00.entry.js} +1 -1
  54. package/dist/bromcom-ui/{p-db7096a8.entry.js → p-d9838751.entry.js} +1 -1
  55. package/dist/bromcom-ui/{p-d59d8968.entry.js → p-dd4c1650.entry.js} +1 -1
  56. package/dist/bromcom-ui/{p-e8e33954.js → p-e1119ff2.js} +1 -1
  57. package/dist/bromcom-ui/{p-d79a5538.entry.js → p-e1898d81.entry.js} +1 -1
  58. package/dist/bromcom-ui/p-ea6c32e1.entry.js +5 -0
  59. package/dist/bromcom-ui/{p-1e6a0c27.entry.js → p-f1eefc73.entry.js} +1 -1
  60. package/dist/bromcom-ui/{p-43f4cac9.entry.js → p-f2699133.entry.js} +1 -1
  61. package/dist/bromcom-ui/{p-103314ff.entry.js → p-f35d0fc2.entry.js} +1 -1
  62. package/dist/cjs/bcm-accordion.cjs.entry.js +1 -1
  63. package/dist/cjs/bcm-alert.cjs.entry.js +1 -1
  64. package/dist/cjs/bcm-attendance.cjs.entry.js +1 -1
  65. package/dist/cjs/bcm-avatar_2.cjs.entry.js +3 -3
  66. package/dist/cjs/bcm-breadcrumb.cjs.entry.js +1 -1
  67. package/dist/cjs/bcm-button-group.cjs.entry.js +1 -1
  68. package/dist/cjs/bcm-button_7.cjs.entry.js +4 -4
  69. package/dist/cjs/bcm-card.cjs.entry.js +1 -1
  70. package/dist/cjs/bcm-checkbox-lite_9.cjs.entry.js +1 -1
  71. package/dist/cjs/bcm-chip.cjs.entry.js +1 -1
  72. package/dist/cjs/bcm-collapse.cjs.entry.js +1 -1
  73. package/dist/cjs/bcm-color-input.cjs.entry.js +3 -3
  74. package/dist/cjs/bcm-colorful_2.cjs.entry.js +15 -544
  75. package/dist/cjs/bcm-date-picker.cjs.entry.js +1 -1
  76. package/dist/cjs/bcm-datetime-picker.cjs.entry.js +1 -1
  77. package/dist/cjs/bcm-default.cjs.entry.js +1 -1
  78. package/dist/cjs/bcm-drawer.cjs.entry.js +3 -3
  79. package/dist/cjs/bcm-dropdown.cjs.entry.js +2 -2
  80. package/dist/cjs/bcm-expansion-panel.cjs.entry.js +1 -1
  81. package/dist/cjs/bcm-form-2.cjs.entry.js +1 -1
  82. package/dist/cjs/bcm-input-custom.cjs.entry.js +1 -1
  83. package/dist/cjs/bcm-input.cjs.entry.js +4 -4
  84. package/dist/cjs/bcm-item.cjs.entry.js +1 -1
  85. package/dist/cjs/bcm-items.cjs.entry.js +1 -1
  86. package/dist/cjs/bcm-list.cjs.entry.js +139 -327
  87. package/dist/cjs/bcm-menu.cjs.entry.js +4 -4
  88. package/dist/cjs/bcm-modal-2-footer.cjs.entry.js +3 -3
  89. package/dist/cjs/bcm-modal-2-header.cjs.entry.js +3 -3
  90. package/dist/cjs/bcm-modal-2.cjs.entry.js +3 -3
  91. package/dist/cjs/bcm-modal.cjs.entry.js +1 -1
  92. package/dist/cjs/bcm-popconfirm-box.cjs.entry.js +1 -1
  93. package/dist/cjs/bcm-popconfirm.cjs.entry.js +1 -1
  94. package/dist/cjs/bcm-popover.cjs.entry.js +3 -3
  95. package/dist/cjs/bcm-progress.cjs.entry.js +1 -1
  96. package/dist/cjs/bcm-radio-group.cjs.entry.js +3 -3
  97. package/dist/cjs/bcm-radio.cjs.entry.js +3 -3
  98. package/dist/cjs/bcm-range.cjs.entry.js +1 -1
  99. package/dist/cjs/bcm-rc-overflow_2.cjs.entry.js +2443 -0
  100. package/dist/cjs/bcm-skeleton.cjs.entry.js +1 -1
  101. package/dist/cjs/bcm-step.cjs.entry.js +2 -2
  102. package/dist/cjs/bcm-stepper.cjs.entry.js +4 -4
  103. package/dist/cjs/bcm-switch.cjs.entry.js +1 -1
  104. package/dist/cjs/bcm-tab-group.cjs.entry.js +3 -3
  105. package/dist/cjs/bcm-tab-item-header.cjs.entry.js +3 -3
  106. package/dist/cjs/bcm-tab-item.cjs.entry.js +3 -3
  107. package/dist/cjs/bcm-tag.cjs.entry.js +2 -2
  108. package/dist/cjs/bcm-textarea.cjs.entry.js +2 -2
  109. package/dist/cjs/bcm-time-picker.cjs.entry.js +1 -1
  110. package/dist/cjs/bcm-toast.cjs.entry.js +1 -1
  111. package/dist/cjs/bromcom-ui.cjs.js +1 -1
  112. package/dist/cjs/{generate-227da8fb.js → generate-5564014f.js} +1 -1
  113. package/dist/cjs/index-906fb4e5.js +540 -0
  114. package/dist/cjs/{input-template-3af2733b.js → input-template-b8eb3568.js} +1 -1
  115. package/dist/cjs/{json-parse-decarator-97c404e9.js → json-parse-decarator-c9d01873.js} +1 -1
  116. package/dist/cjs/loader.cjs.js +1 -1
  117. package/dist/cjs/{number-helper-724bd3c0.js → number-helper-57fc05a9.js} +1 -1
  118. package/dist/cjs/old-bcm-popover-box.cjs.entry.js +2 -2
  119. package/dist/cjs/old-bcm-popover.cjs.entry.js +1 -1
  120. package/dist/cjs/{stepper-states-c08457f9.js → stepper-states-47bcb1a4.js} +1 -1
  121. package/dist/cjs/{tooltip-helper-dc91538e.js → tooltip-helper-4ca7648e.js} +3 -3
  122. package/dist/cjs/{validators-4277e26c.js → validators-f1b75654.js} +1 -1
  123. package/dist/collection/collection-manifest.json +3 -2
  124. package/dist/collection/components/organism/list/list.css +4 -3
  125. package/dist/collection/components/organism/list/list.js +171 -176
  126. package/dist/collection/components/{molecules → third-parts}/colorful/colorful.css +1 -1
  127. package/dist/collection/components/third-parts/rc-overflow/rc-overflow.css +138 -0
  128. package/dist/collection/components/third-parts/rc-overflow/rc-overflow.js +194 -0
  129. package/dist/components/bcm-alert.js +1 -1
  130. package/dist/components/bcm-checkbox-group.js +1 -1
  131. package/dist/components/bcm-list.js +153 -328
  132. package/dist/components/bcm-rc-overflow.d.ts +11 -0
  133. package/dist/components/bcm-rc-overflow.js +10 -0
  134. package/dist/components/button.js +1 -1
  135. package/dist/components/colorful.js +2 -531
  136. package/dist/components/generate.js +1 -1
  137. package/dist/components/index.d.ts +2 -1
  138. package/dist/components/index.js +1 -0
  139. package/dist/components/index3.js +523 -177
  140. package/dist/components/index4.js +191 -0
  141. package/dist/components/rc-overflow.js +2238 -0
  142. package/dist/components/search.js +1 -1
  143. package/dist/components/step.js +1 -1
  144. package/dist/esm/bcm-accordion.entry.js +1 -1
  145. package/dist/esm/bcm-alert.entry.js +1 -1
  146. package/dist/esm/bcm-attendance.entry.js +1 -1
  147. package/dist/esm/bcm-avatar_2.entry.js +3 -3
  148. package/dist/esm/bcm-breadcrumb.entry.js +1 -1
  149. package/dist/esm/bcm-button-group.entry.js +1 -1
  150. package/dist/esm/bcm-button_7.entry.js +4 -4
  151. package/dist/esm/bcm-card.entry.js +1 -1
  152. package/dist/esm/bcm-checkbox-lite_9.entry.js +1 -1
  153. package/dist/esm/bcm-chip.entry.js +1 -1
  154. package/dist/esm/bcm-collapse.entry.js +1 -1
  155. package/dist/esm/bcm-color-input.entry.js +3 -3
  156. package/dist/esm/bcm-colorful_2.entry.js +5 -534
  157. package/dist/esm/bcm-date-picker.entry.js +1 -1
  158. package/dist/esm/bcm-datetime-picker.entry.js +1 -1
  159. package/dist/esm/bcm-default.entry.js +1 -1
  160. package/dist/esm/bcm-drawer.entry.js +3 -3
  161. package/dist/esm/bcm-dropdown.entry.js +2 -2
  162. package/dist/esm/bcm-expansion-panel.entry.js +1 -1
  163. package/dist/esm/bcm-form-2.entry.js +1 -1
  164. package/dist/esm/bcm-input-custom.entry.js +1 -1
  165. package/dist/esm/bcm-input.entry.js +4 -4
  166. package/dist/esm/bcm-item.entry.js +1 -1
  167. package/dist/esm/bcm-items.entry.js +1 -1
  168. package/dist/esm/bcm-list.entry.js +139 -327
  169. package/dist/esm/bcm-menu.entry.js +4 -4
  170. package/dist/esm/bcm-modal-2-footer.entry.js +3 -3
  171. package/dist/esm/bcm-modal-2-header.entry.js +3 -3
  172. package/dist/esm/bcm-modal-2.entry.js +3 -3
  173. package/dist/esm/bcm-modal.entry.js +1 -1
  174. package/dist/esm/bcm-popconfirm-box.entry.js +1 -1
  175. package/dist/esm/bcm-popconfirm.entry.js +1 -1
  176. package/dist/esm/bcm-popover.entry.js +3 -3
  177. package/dist/esm/bcm-progress.entry.js +1 -1
  178. package/dist/esm/bcm-radio-group.entry.js +3 -3
  179. package/dist/esm/bcm-radio.entry.js +3 -3
  180. package/dist/esm/bcm-range.entry.js +1 -1
  181. package/dist/esm/bcm-rc-overflow_2.entry.js +2438 -0
  182. package/dist/esm/bcm-skeleton.entry.js +1 -1
  183. package/dist/esm/bcm-step.entry.js +2 -2
  184. package/dist/esm/bcm-stepper.entry.js +4 -4
  185. package/dist/esm/bcm-switch.entry.js +1 -1
  186. package/dist/esm/bcm-tab-group.entry.js +3 -3
  187. package/dist/esm/bcm-tab-item-header.entry.js +3 -3
  188. package/dist/esm/bcm-tab-item.entry.js +3 -3
  189. package/dist/esm/bcm-tag.entry.js +2 -2
  190. package/dist/esm/bcm-textarea.entry.js +2 -2
  191. package/dist/esm/bcm-time-picker.entry.js +1 -1
  192. package/dist/esm/bcm-toast.entry.js +1 -1
  193. package/dist/esm/bromcom-ui.js +1 -1
  194. package/dist/esm/{generate-ae8dfae8.js → generate-5684c743.js} +1 -1
  195. package/dist/esm/index-6310a048.js +537 -0
  196. package/dist/esm/{input-template-56b65f6e.js → input-template-846cd4f3.js} +1 -1
  197. package/dist/esm/{json-parse-decarator-463c98c9.js → json-parse-decarator-5cdef266.js} +1 -1
  198. package/dist/esm/loader.js +1 -1
  199. package/dist/esm/{number-helper-8ae3f523.js → number-helper-3c971b4e.js} +1 -1
  200. package/dist/esm/old-bcm-popover-box.entry.js +2 -2
  201. package/dist/esm/old-bcm-popover.entry.js +1 -1
  202. package/dist/esm/{stepper-states-fd4a335e.js → stepper-states-2f1dd0bd.js} +1 -1
  203. package/dist/esm/{tooltip-helper-d3858d00.js → tooltip-helper-86b9b16e.js} +3 -3
  204. package/dist/esm/{validators-d4d1cbd1.js → validators-d6dd6432.js} +1 -1
  205. package/dist/types/components/organism/list/list.d.ts +9 -5
  206. package/dist/types/components/third-parts/rc-overflow/rc-overflow.d.ts +17 -0
  207. package/dist/types/components.d.ts +26 -0
  208. package/package.json +2 -1
  209. package/dist/bromcom-ui/p-01a2410a.entry.js +0 -5
  210. package/dist/bromcom-ui/p-026a22c1.entry.js +0 -5
  211. package/dist/bromcom-ui/p-a53b91a2.entry.js +0 -10
  212. package/dist/bromcom-ui/p-b9d70b21.js +0 -5
  213. package/dist/cjs/bcm-search.cjs.entry.js +0 -245
  214. package/dist/collection/components/organism/list/list-tag-control.js +0 -173
  215. package/dist/esm/bcm-search.entry.js +0 -241
  216. package/dist/types/components/organism/list/list-tag-control.d.ts +0 -18
  217. /package/dist/collection/components/{molecules → third-parts}/colorful/colorful.js +0 -0
  218. /package/dist/types/components/{molecules → third-parts}/colorful/colorful.d.ts +0 -0
@@ -463,7 +463,7 @@ bcm-colorful {
463
463
  flex-direction: column;
464
464
  width: 256px;
465
465
  padding: 8px;
466
- background-color: var(--bcm-new-ds-color-white);
466
+ background-color: #fff;
467
467
  border-radius: 4px;
468
468
  }
469
469
 
@@ -0,0 +1,138 @@
1
+ @import url("https://fonts.googleapis.com/css?family=Roboto:400,500");
2
+ .size-1 {
3
+ font-size: 12px;
4
+ line-height: 20px;
5
+ }
6
+
7
+ .size-2 {
8
+ font-size: 14px;
9
+ line-height: 22px;
10
+ }
11
+
12
+ .size-3 {
13
+ font-size: 16px;
14
+ line-height: 24px;
15
+ }
16
+
17
+ .size-4 {
18
+ font-size: 20px;
19
+ line-height: 28px;
20
+ }
21
+
22
+ .size-5 {
23
+ font-size: 24px;
24
+ line-height: 32px;
25
+ }
26
+
27
+ .size-6 {
28
+ font-size: 30px;
29
+ line-height: 38px;
30
+ }
31
+
32
+ .size-7 {
33
+ font-size: 38px;
34
+ line-height: 46px;
35
+ }
36
+
37
+ .size-8 {
38
+ font-size: 46px;
39
+ line-height: 54px;
40
+ }
41
+
42
+ .size-9 {
43
+ font-size: 56px;
44
+ line-height: 64px;
45
+ }
46
+
47
+ .weight-regular {
48
+ font-weight: 400;
49
+ }
50
+
51
+ .weight-semibold {
52
+ font-weight: 500;
53
+ }
54
+
55
+ /**
56
+ * Generator
57
+ */
58
+ .input-size-large {
59
+ height: 40px;
60
+ }
61
+
62
+ .input-size-medium {
63
+ height: 32px;
64
+ }
65
+
66
+ .input-size-small {
67
+ height: 24px;
68
+ }
69
+
70
+ .resize-none textarea {
71
+ resize: none;
72
+ }
73
+
74
+ .resize-vertical textarea {
75
+ resize: vertical;
76
+ }
77
+
78
+ .resize-auto textarea {
79
+ height: auto;
80
+ resize: none;
81
+ }
82
+
83
+ .textarea-size-large {
84
+ padding: 4px 0 0 4px;
85
+ min-height: 40px;
86
+ }
87
+ .textarea-size-large .bcm-input-element {
88
+ min-height: calc((40px - 8px) + 2px);
89
+ }
90
+ .textarea-size-large .input-clear-button {
91
+ height: calc( 40px - 16px );
92
+ top: 8px;
93
+ padding: 0;
94
+ margin-right: 8px;
95
+ }
96
+
97
+ .textarea-size-medium {
98
+ padding: 4px 0 0 4px;
99
+ min-height: 32px;
100
+ }
101
+ .textarea-size-medium .bcm-input-element {
102
+ min-height: calc((32px - 8px) + 2px);
103
+ }
104
+ .textarea-size-medium .input-clear-button {
105
+ height: calc( 32px - 16px );
106
+ top: 8px;
107
+ padding: 0;
108
+ margin-right: 8px;
109
+ }
110
+
111
+ .textarea-size-small {
112
+ padding: 0px 0 0 4px;
113
+ min-height: 24px;
114
+ }
115
+ .textarea-size-small .bcm-input-element {
116
+ min-height: calc((24px - 8px) + 2px);
117
+ }
118
+ .textarea-size-small .input-clear-button {
119
+ height: calc( 24px - 16px );
120
+ top: 8px;
121
+ padding: 0;
122
+ margin-right: 8px;
123
+ }
124
+
125
+ .rc-overflow {
126
+ display: flex;
127
+ flex-direction: row;
128
+ flex-wrap: nowrap;
129
+ width: 100%;
130
+ }
131
+
132
+ .rc-overflow-item {
133
+ transition: all 0.3s ease;
134
+ padding: 0 2px;
135
+ display: flex;
136
+ align-items: center;
137
+ justify-content: center;
138
+ }
@@ -0,0 +1,194 @@
1
+ /*!
2
+ * Built with Stencil
3
+ * Copyright (c) Bromcom.
4
+ */
5
+ import { Generate, StringHelper } from "@bcm/helpers";
6
+ import Overflow from "rc-overflow";
7
+ import React from "react";
8
+ import ReactDOM from "react-dom";
9
+ export class BcmRcOverflow {
10
+ constructor() {
11
+ this.renderItem = item => {
12
+ return React.createElement("bcm-tooltip", {
13
+ placement: "bottom",
14
+ message: item.text,
15
+ trigger: "hover",
16
+ }, React.createElement("div", {
17
+ id: item.value + "-tag",
18
+ className: "bcm-tag",
19
+ onClick: ({ target }) => this.onClickControl(target, item, false),
20
+ }, React.createElement("span", { className: "bcm-tag__content dismissable" },
21
+ // .bcm-tag__content span {
22
+ // display: block;
23
+ // max-width: 38px;
24
+ // white-space: nowrap;
25
+ // overflow: hidden;
26
+ // text-overflow: ellipsis;
27
+ React.createElement("div", { className: "value tw-block tw-max-w-[38px] tw-overflow-hidden tw-overflow-ellipsis tw-whitespace-nowrap" }, item.text), React.createElement("span", {
28
+ className: "right close-button",
29
+ }, React.createElement("bcm-icon", {
30
+ icon: "fa fa-times",
31
+ })))));
32
+ };
33
+ this.renderRest = items => {
34
+ const titles = (items === null || items === void 0 ? void 0 : items.sort((a, b) => +a.ct - +b.ct).slice(0, 15).map(item => StringHelper.textLimitter(item.text, 40, true)).toString().split(",").join("\r\n")) + (items.length > 15 ? "\r\n..." : "");
35
+ return React.createElement("bcm-tooltip", {
36
+ placement: "bottom",
37
+ message: titles,
38
+ trigger: "hover",
39
+ }, React.createElement("div", {
40
+ className: "bcm-tag bcm-tag--other",
41
+ onClick: ({ target }) => this.onClickControl(target, items, true),
42
+ }, React.createElement("span", { className: `bcm-tag__content dismissable ${this.checked ? "checkable checked" : ""}` }, React.createElement("span", { className: "value" }, `+${items === null || items === void 0 ? void 0 : items.length}`), React.createElement("span", { className: "right close-button" }, React.createElement("bcm-icon", {
43
+ icon: "fa fa-times",
44
+ })))));
45
+ };
46
+ this._id = Generate.UID();
47
+ this.maxCount = 1;
48
+ this.data = [];
49
+ this.checked = false;
50
+ }
51
+ isClickDismiss(e) {
52
+ return e["s-hn"] === "BCM-ICON";
53
+ }
54
+ onClickControl(e, item, isOtherTag = false) {
55
+ const isClickClose = this.isClickDismiss(e);
56
+ isClickClose && this.deleteTag.emit({ id: Array.isArray(item) ? item.map(i => i.value) : item.value }) && this.checked && (this.checked = false);
57
+ !isOtherTag && this.selectTag.emit({ id: item.value }) && this.checked && (this.checked = false);
58
+ if (isOtherTag && !isClickClose) {
59
+ this.checked = !this.checked;
60
+ this.selectOtherTag.emit({ id: item === null || item === void 0 ? void 0 : item.map(i => i.value), checked: this.checked });
61
+ }
62
+ }
63
+ componentWillRender() {
64
+ const { data, renderItem, renderRest, maxCount } = this;
65
+ this.overflowInstance = React.createElement(Overflow, {
66
+ data,
67
+ renderItem,
68
+ renderRest,
69
+ maxCount,
70
+ });
71
+ ReactDOM.render(this.overflowInstance, this.el);
72
+ }
73
+ static get is() { return "bcm-rc-overflow"; }
74
+ static get originalStyleUrls() {
75
+ return {
76
+ "$": ["rc-overflow.scss"]
77
+ };
78
+ }
79
+ static get styleUrls() {
80
+ return {
81
+ "$": ["rc-overflow.css"]
82
+ };
83
+ }
84
+ static get properties() {
85
+ return {
86
+ "_id": {
87
+ "type": "string",
88
+ "mutable": false,
89
+ "complexType": {
90
+ "original": "string",
91
+ "resolved": "string",
92
+ "references": {}
93
+ },
94
+ "required": false,
95
+ "optional": false,
96
+ "docs": {
97
+ "tags": [],
98
+ "text": ""
99
+ },
100
+ "attribute": "id",
101
+ "reflect": true,
102
+ "defaultValue": "Generate.UID()"
103
+ },
104
+ "maxCount": {
105
+ "type": "any",
106
+ "mutable": false,
107
+ "complexType": {
108
+ "original": "number | \"responsive\" | \"invalidate\"",
109
+ "resolved": "\"invalidate\" | \"responsive\" | number",
110
+ "references": {}
111
+ },
112
+ "required": false,
113
+ "optional": false,
114
+ "docs": {
115
+ "tags": [],
116
+ "text": ""
117
+ },
118
+ "attribute": "max-count",
119
+ "reflect": false,
120
+ "defaultValue": "1"
121
+ },
122
+ "data": {
123
+ "type": "unknown",
124
+ "mutable": false,
125
+ "complexType": {
126
+ "original": "[]",
127
+ "resolved": "[]",
128
+ "references": {}
129
+ },
130
+ "required": false,
131
+ "optional": false,
132
+ "docs": {
133
+ "tags": [],
134
+ "text": ""
135
+ },
136
+ "defaultValue": "[]"
137
+ }
138
+ };
139
+ }
140
+ static get states() {
141
+ return {
142
+ "checked": {}
143
+ };
144
+ }
145
+ static get events() {
146
+ return [{
147
+ "method": "selectOtherTag",
148
+ "name": "bcm-select-other-tag",
149
+ "bubbles": true,
150
+ "cancelable": true,
151
+ "composed": true,
152
+ "docs": {
153
+ "tags": [],
154
+ "text": ""
155
+ },
156
+ "complexType": {
157
+ "original": "any",
158
+ "resolved": "any",
159
+ "references": {}
160
+ }
161
+ }, {
162
+ "method": "selectTag",
163
+ "name": "bcm-select-tag",
164
+ "bubbles": true,
165
+ "cancelable": true,
166
+ "composed": true,
167
+ "docs": {
168
+ "tags": [],
169
+ "text": ""
170
+ },
171
+ "complexType": {
172
+ "original": "any",
173
+ "resolved": "any",
174
+ "references": {}
175
+ }
176
+ }, {
177
+ "method": "deleteTag",
178
+ "name": "bcm-delete-tag",
179
+ "bubbles": true,
180
+ "cancelable": true,
181
+ "composed": true,
182
+ "docs": {
183
+ "tags": [],
184
+ "text": ""
185
+ },
186
+ "complexType": {
187
+ "original": "any",
188
+ "resolved": "any",
189
+ "references": {}
190
+ }
191
+ }];
192
+ }
193
+ static get elementRef() { return "el"; }
194
+ }
@@ -5,7 +5,7 @@
5
5
  import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
6
6
  import { G as Generate, s as snq, S as StatusProps, T as TypeProps } from './generate.js';
7
7
  import { c as classnames } from './index2.js';
8
- import { c as createStore } from './index3.js';
8
+ import { c as createStore } from './index4.js';
9
9
  import { S as StringHelper } from './string-helper.js';
10
10
  import { d as defineCustomElement$2 } from './icon.js';
11
11
 
@@ -7,7 +7,7 @@ import { c as classnames } from './index2.js';
7
7
  import { G as Generate, s as snq } from './generate.js';
8
8
  import { B as Bcm } from './bcm.js';
9
9
  import { d as delay, g as getChildElements } from './utils.js';
10
- import { c as createStore } from './index3.js';
10
+ import { c as createStore } from './index4.js';
11
11
  import { L as LabelTemplate } from './label-template.js';
12
12
  import { I as IsLoad } from './is-load-decorator.js';
13
13
  import { d as defineCustomElement$5 } from './checkbox.js';