bromcom-ui 2.8.1-rc.5 → 2.8.1-rc.7

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 (191) hide show
  1. package/dist/bromcom-ui/bromcom-ui.esm.js +1 -1
  2. package/dist/bromcom-ui/{p-eff216e3.entry.js → p-089fcee9.entry.js} +1 -1
  3. package/dist/bromcom-ui/{p-5ed89e1e.entry.js → p-099bdffd.entry.js} +1 -1
  4. package/dist/bromcom-ui/{p-229278b4.entry.js → p-0ccb5661.entry.js} +1 -1
  5. package/dist/bromcom-ui/{p-d5bcb8fd.entry.js → p-0cf7b77c.entry.js} +1 -1
  6. package/dist/bromcom-ui/{p-f9f382e5.entry.js → p-1111b66f.entry.js} +1 -1
  7. package/dist/bromcom-ui/{p-e973892b.js → p-1277d746.js} +1 -1
  8. package/dist/bromcom-ui/{p-d94818e1.entry.js → p-1705a810.entry.js} +1 -1
  9. package/dist/bromcom-ui/{p-1695203c.entry.js → p-224281ad.entry.js} +1 -1
  10. package/dist/bromcom-ui/{p-f6d4cb32.entry.js → p-247ba43c.entry.js} +1 -1
  11. package/dist/bromcom-ui/p-27449f4e.entry.js +5 -0
  12. package/dist/bromcom-ui/{p-d56d38f3.entry.js → p-28616298.entry.js} +1 -1
  13. package/dist/bromcom-ui/{p-25e18bd4.entry.js → p-2bc7c6fd.entry.js} +1 -1
  14. package/dist/bromcom-ui/{p-446698c4.entry.js → p-379ed4f7.entry.js} +1 -1
  15. package/dist/bromcom-ui/{p-fb8c2500.entry.js → p-3a62dd08.entry.js} +1 -1
  16. package/dist/bromcom-ui/p-3a9bd078.entry.js +5 -0
  17. package/dist/bromcom-ui/{p-fcfd1d9c.entry.js → p-3afbdc3b.entry.js} +1 -1
  18. package/dist/bromcom-ui/{p-8800fca1.entry.js → p-4807f4c8.entry.js} +1 -1
  19. package/dist/bromcom-ui/{p-1fd901e6.entry.js → p-5e16dc0d.entry.js} +1 -1
  20. package/dist/bromcom-ui/{p-ec8e55e9.entry.js → p-5e1ccb81.entry.js} +1 -1
  21. package/dist/bromcom-ui/{p-6c82021e.entry.js → p-6142e665.entry.js} +1 -1
  22. package/dist/bromcom-ui/{p-d4af120b.entry.js → p-6a4f8e4c.entry.js} +1 -1
  23. package/dist/bromcom-ui/{p-3b80078f.entry.js → p-70379604.entry.js} +1 -1
  24. package/dist/bromcom-ui/{p-902b3636.entry.js → p-71d1cbb0.entry.js} +1 -1
  25. package/dist/bromcom-ui/{p-06f63b5b.entry.js → p-77a197bf.entry.js} +1 -1
  26. package/dist/bromcom-ui/{p-d277e201.entry.js → p-7d1521d0.entry.js} +1 -1
  27. package/dist/bromcom-ui/{p-90b11be8.entry.js → p-7db15a47.entry.js} +1 -1
  28. package/dist/bromcom-ui/{p-e98a28fd.entry.js → p-8014c999.entry.js} +1 -1
  29. package/dist/bromcom-ui/{p-bae61528.entry.js → p-81f5c47a.entry.js} +1 -1
  30. package/dist/bromcom-ui/{p-64e1e106.entry.js → p-8401a784.entry.js} +1 -1
  31. package/dist/bromcom-ui/{p-a41bd204.entry.js → p-84ade15c.entry.js} +1 -1
  32. package/dist/bromcom-ui/p-90cbe5f5.js +5 -0
  33. package/dist/bromcom-ui/{p-151e9c34.entry.js → p-95c1da48.entry.js} +1 -1
  34. package/dist/bromcom-ui/{p-1db72ad5.js → p-960562fe.js} +1 -1
  35. package/dist/bromcom-ui/{p-75148a0c.entry.js → p-9abb6abe.entry.js} +1 -1
  36. package/dist/bromcom-ui/{p-9308bc4a.entry.js → p-9da02687.entry.js} +1 -1
  37. package/dist/bromcom-ui/{p-2d3cdb0a.entry.js → p-a701d70b.entry.js} +1 -1
  38. package/dist/bromcom-ui/{p-4bfb9f8c.entry.js → p-b46319c6.entry.js} +1 -1
  39. package/dist/bromcom-ui/{p-cd0d6898.entry.js → p-b68ce4fa.entry.js} +1 -1
  40. package/dist/bromcom-ui/{p-91dfcc62.entry.js → p-b90c5be6.entry.js} +1 -1
  41. package/dist/bromcom-ui/{p-ae95d4b5.entry.js → p-bc622c0a.entry.js} +1 -1
  42. package/dist/bromcom-ui/{p-1e3a8987.js → p-bde7d664.js} +1 -1
  43. package/dist/bromcom-ui/{p-e7a01364.entry.js → p-bf3f15b8.entry.js} +1 -1
  44. package/dist/bromcom-ui/{p-7e4be84b.js → p-c39213da.js} +1 -1
  45. package/dist/bromcom-ui/{p-b822c508.entry.js → p-c78c29f2.entry.js} +1 -1
  46. package/dist/bromcom-ui/{p-4d26bc11.entry.js → p-c7af1847.entry.js} +1 -1
  47. package/dist/bromcom-ui/{p-f753a7dd.entry.js → p-c9f7da49.entry.js} +1 -1
  48. package/dist/bromcom-ui/{p-cb40423c.entry.js → p-caa3f649.entry.js} +1 -1
  49. package/dist/bromcom-ui/{p-4ce84324.entry.js → p-d4582e3a.entry.js} +1 -1
  50. package/dist/bromcom-ui/{p-e2bc75f9.entry.js → p-dac5b02f.entry.js} +1 -1
  51. package/dist/bromcom-ui/{p-2f692044.entry.js → p-ea231da5.entry.js} +1 -1
  52. package/dist/bromcom-ui/{p-10a2318a.entry.js → p-eadedc9d.entry.js} +1 -1
  53. package/dist/bromcom-ui/{p-097bddb5.js → p-eb263e83.js} +1 -1
  54. package/dist/bromcom-ui/{p-5ffd877c.entry.js → p-ec9999ae.entry.js} +1 -1
  55. package/dist/bromcom-ui/{p-ed011bf3.entry.js → p-f064c29d.entry.js} +1 -1
  56. package/dist/bromcom-ui/{p-b2b8724c.entry.js → p-f0decd2c.entry.js} +1 -1
  57. package/dist/bromcom-ui/{p-62ce673e.entry.js → p-f7e0e546.entry.js} +1 -1
  58. package/dist/bromcom-ui/{p-4da24157.entry.js → p-f80f3faa.entry.js} +1 -1
  59. package/dist/bromcom-ui/{p-ae3b38fc.js → p-fc0e42e7.js} +1 -1
  60. package/dist/cjs/bcm-accordion.cjs.entry.js +1 -1
  61. package/dist/cjs/bcm-alert.cjs.entry.js +1 -1
  62. package/dist/cjs/bcm-attendance.cjs.entry.js +1 -1
  63. package/dist/cjs/bcm-avatar_2.cjs.entry.js +3 -3
  64. package/dist/cjs/bcm-breadcrumb.cjs.entry.js +1 -1
  65. package/dist/cjs/bcm-button-group.cjs.entry.js +1 -1
  66. package/dist/cjs/bcm-button_7.cjs.entry.js +4 -4
  67. package/dist/cjs/bcm-card.cjs.entry.js +1 -1
  68. package/dist/cjs/bcm-checkbox-lite_9.cjs.entry.js +1 -1
  69. package/dist/cjs/bcm-chip.cjs.entry.js +1 -1
  70. package/dist/cjs/bcm-collapse.cjs.entry.js +1 -1
  71. package/dist/cjs/bcm-color-input.cjs.entry.js +3 -3
  72. package/dist/cjs/bcm-colorful_2.cjs.entry.js +3 -3
  73. package/dist/cjs/bcm-date-picker.cjs.entry.js +1 -1
  74. package/dist/cjs/bcm-datetime-picker.cjs.entry.js +1 -1
  75. package/dist/cjs/bcm-default.cjs.entry.js +1 -1
  76. package/dist/cjs/bcm-drawer.cjs.entry.js +3 -3
  77. package/dist/cjs/bcm-dropdown.cjs.entry.js +2 -2
  78. package/dist/cjs/bcm-expansion-panel.cjs.entry.js +1 -1
  79. package/dist/cjs/bcm-form-2.cjs.entry.js +1 -1
  80. package/dist/cjs/bcm-input-custom.cjs.entry.js +1 -1
  81. package/dist/cjs/bcm-input.cjs.entry.js +4 -4
  82. package/dist/cjs/bcm-item.cjs.entry.js +1 -1
  83. package/dist/cjs/bcm-items.cjs.entry.js +1 -1
  84. package/dist/cjs/bcm-list.cjs.entry.js +7 -7
  85. package/dist/cjs/bcm-menu.cjs.entry.js +4 -4
  86. package/dist/cjs/bcm-modal-2-footer.cjs.entry.js +3 -3
  87. package/dist/cjs/bcm-modal-2-header.cjs.entry.js +3 -3
  88. package/dist/cjs/bcm-modal-2.cjs.entry.js +3 -3
  89. package/dist/cjs/bcm-modal.cjs.entry.js +34 -10
  90. package/dist/cjs/bcm-popconfirm-box.cjs.entry.js +1 -1
  91. package/dist/cjs/bcm-popconfirm.cjs.entry.js +1 -1
  92. package/dist/cjs/bcm-popover.cjs.entry.js +3 -3
  93. package/dist/cjs/bcm-progress.cjs.entry.js +1 -1
  94. package/dist/cjs/bcm-radio-group.cjs.entry.js +3 -3
  95. package/dist/cjs/bcm-radio.cjs.entry.js +3 -3
  96. package/dist/cjs/bcm-range.cjs.entry.js +1 -1
  97. package/dist/cjs/bcm-rc-overflow_2.cjs.entry.js +4 -4
  98. package/dist/cjs/bcm-skeleton.cjs.entry.js +1 -1
  99. package/dist/cjs/bcm-step.cjs.entry.js +2 -2
  100. package/dist/cjs/bcm-stepper.cjs.entry.js +4 -4
  101. package/dist/cjs/bcm-switch.cjs.entry.js +1 -1
  102. package/dist/cjs/bcm-tab-group.cjs.entry.js +3 -3
  103. package/dist/cjs/bcm-tab-item-header.cjs.entry.js +3 -3
  104. package/dist/cjs/bcm-tab-item.cjs.entry.js +3 -3
  105. package/dist/cjs/bcm-tag.cjs.entry.js +2 -2
  106. package/dist/cjs/bcm-textarea.cjs.entry.js +2 -2
  107. package/dist/cjs/bcm-time-picker.cjs.entry.js +1 -1
  108. package/dist/cjs/bcm-toast.cjs.entry.js +1 -1
  109. package/dist/cjs/bromcom-ui.cjs.js +1 -1
  110. package/dist/cjs/{generate-a2b11afa.js → generate-3b515be0.js} +1 -1
  111. package/dist/cjs/{input-template-f607d028.js → input-template-1b14f694.js} +1 -1
  112. package/dist/cjs/{json-parse-decarator-47b9e3f0.js → json-parse-decarator-1e0b27fc.js} +1 -1
  113. package/dist/cjs/loader.cjs.js +1 -1
  114. package/dist/cjs/{number-helper-1501b654.js → number-helper-78bef435.js} +1 -1
  115. package/dist/cjs/old-bcm-popover-box.cjs.entry.js +2 -2
  116. package/dist/cjs/old-bcm-popover.cjs.entry.js +1 -1
  117. package/dist/cjs/{stepper-states-1f6b09e3.js → stepper-states-a173b2f9.js} +1 -1
  118. package/dist/cjs/{tooltip-helper-29d5fdae.js → tooltip-helper-cbdb9694.js} +3 -3
  119. package/dist/cjs/{validators-f0b09a54.js → validators-d05e58ec.js} +1 -1
  120. package/dist/collection/components/molecules/modal/modal.js +59 -17
  121. package/dist/collection/components/organism/list/list.js +1 -1
  122. package/dist/collection/templates/list-template.js +2 -2
  123. package/dist/components/bcm-list.js +3 -3
  124. package/dist/components/bcm-modal.js +34 -10
  125. package/dist/components/generate.js +1 -1
  126. package/dist/esm/bcm-accordion.entry.js +1 -1
  127. package/dist/esm/bcm-alert.entry.js +1 -1
  128. package/dist/esm/bcm-attendance.entry.js +1 -1
  129. package/dist/esm/bcm-avatar_2.entry.js +3 -3
  130. package/dist/esm/bcm-breadcrumb.entry.js +1 -1
  131. package/dist/esm/bcm-button-group.entry.js +1 -1
  132. package/dist/esm/bcm-button_7.entry.js +4 -4
  133. package/dist/esm/bcm-card.entry.js +1 -1
  134. package/dist/esm/bcm-checkbox-lite_9.entry.js +1 -1
  135. package/dist/esm/bcm-chip.entry.js +1 -1
  136. package/dist/esm/bcm-collapse.entry.js +1 -1
  137. package/dist/esm/bcm-color-input.entry.js +3 -3
  138. package/dist/esm/bcm-colorful_2.entry.js +3 -3
  139. package/dist/esm/bcm-date-picker.entry.js +1 -1
  140. package/dist/esm/bcm-datetime-picker.entry.js +1 -1
  141. package/dist/esm/bcm-default.entry.js +1 -1
  142. package/dist/esm/bcm-drawer.entry.js +3 -3
  143. package/dist/esm/bcm-dropdown.entry.js +2 -2
  144. package/dist/esm/bcm-expansion-panel.entry.js +1 -1
  145. package/dist/esm/bcm-form-2.entry.js +1 -1
  146. package/dist/esm/bcm-input-custom.entry.js +1 -1
  147. package/dist/esm/bcm-input.entry.js +4 -4
  148. package/dist/esm/bcm-item.entry.js +1 -1
  149. package/dist/esm/bcm-items.entry.js +1 -1
  150. package/dist/esm/bcm-list.entry.js +7 -7
  151. package/dist/esm/bcm-menu.entry.js +4 -4
  152. package/dist/esm/bcm-modal-2-footer.entry.js +3 -3
  153. package/dist/esm/bcm-modal-2-header.entry.js +3 -3
  154. package/dist/esm/bcm-modal-2.entry.js +3 -3
  155. package/dist/esm/bcm-modal.entry.js +34 -10
  156. package/dist/esm/bcm-popconfirm-box.entry.js +1 -1
  157. package/dist/esm/bcm-popconfirm.entry.js +1 -1
  158. package/dist/esm/bcm-popover.entry.js +3 -3
  159. package/dist/esm/bcm-progress.entry.js +1 -1
  160. package/dist/esm/bcm-radio-group.entry.js +3 -3
  161. package/dist/esm/bcm-radio.entry.js +3 -3
  162. package/dist/esm/bcm-range.entry.js +1 -1
  163. package/dist/esm/bcm-rc-overflow_2.entry.js +4 -4
  164. package/dist/esm/bcm-skeleton.entry.js +1 -1
  165. package/dist/esm/bcm-step.entry.js +2 -2
  166. package/dist/esm/bcm-stepper.entry.js +4 -4
  167. package/dist/esm/bcm-switch.entry.js +1 -1
  168. package/dist/esm/bcm-tab-group.entry.js +3 -3
  169. package/dist/esm/bcm-tab-item-header.entry.js +3 -3
  170. package/dist/esm/bcm-tab-item.entry.js +3 -3
  171. package/dist/esm/bcm-tag.entry.js +2 -2
  172. package/dist/esm/bcm-textarea.entry.js +2 -2
  173. package/dist/esm/bcm-time-picker.entry.js +1 -1
  174. package/dist/esm/bcm-toast.entry.js +1 -1
  175. package/dist/esm/bromcom-ui.js +1 -1
  176. package/dist/esm/{generate-d1b46990.js → generate-e10b1934.js} +1 -1
  177. package/dist/esm/{input-template-223732ac.js → input-template-1623e33b.js} +1 -1
  178. package/dist/esm/{json-parse-decarator-0f5e3c9b.js → json-parse-decarator-a189d280.js} +1 -1
  179. package/dist/esm/loader.js +1 -1
  180. package/dist/esm/{number-helper-ee656d1d.js → number-helper-b716bb66.js} +1 -1
  181. package/dist/esm/old-bcm-popover-box.entry.js +2 -2
  182. package/dist/esm/old-bcm-popover.entry.js +1 -1
  183. package/dist/esm/{stepper-states-f358bd3d.js → stepper-states-e3f05768.js} +1 -1
  184. package/dist/esm/{tooltip-helper-5ba44074.js → tooltip-helper-964c44e7.js} +3 -3
  185. package/dist/esm/{validators-b6228259.js → validators-4bd10aec.js} +1 -1
  186. package/dist/types/components/molecules/modal/modal.d.ts +10 -4
  187. package/dist/types/components.d.ts +4 -4
  188. package/package.json +1 -1
  189. package/dist/bromcom-ui/p-0e38100c.entry.js +0 -5
  190. package/dist/bromcom-ui/p-161c47c4.js +0 -5
  191. package/dist/bromcom-ui/p-9f60b424.entry.js +0 -5
@@ -9,7 +9,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
9
9
  const index = require('./index-ddfd6d8f.js');
10
10
  const index$1 = require('./index-fdbf5226.js');
11
11
  const bcm = require('./bcm-634604e3.js');
12
- const generate = require('./generate-a2b11afa.js');
12
+ const generate = require('./generate-3b515be0.js');
13
13
  require('./_commonjsHelpers-bd20f4c0.js');
14
14
  require('./colors-e1d142ad.js');
15
15
 
@@ -5,7 +5,7 @@
5
5
  'use strict';
6
6
 
7
7
  const index = require('./index-4506fcd7.js');
8
- const generate = require('./generate-a2b11afa.js');
8
+ const generate = require('./generate-3b515be0.js');
9
9
  const index$1 = require('./index-ddfd6d8f.js');
10
10
 
11
11
  const { state } = index.createStore({
@@ -10,9 +10,9 @@ const utils = require('./utils-fc077139.js');
10
10
  const floatingUi = require('./floating-ui-74eb26d6.js');
11
11
  const colorHelper = require('./color-helper-d6d2028b.js');
12
12
  require('./datetime-helper-eaf4fadb.js');
13
- const generate = require('./generate-a2b11afa.js');
14
- require('./number-helper-1501b654.js');
15
- require('./validators-f0b09a54.js');
13
+ const generate = require('./generate-3b515be0.js');
14
+ require('./number-helper-78bef435.js');
15
+ require('./validators-d05e58ec.js');
16
16
  const bcm = require('./bcm-634604e3.js');
17
17
 
18
18
  class Tooltip {
@@ -4,7 +4,7 @@
4
4
  */
5
5
  'use strict';
6
6
 
7
- const generate = require('./generate-a2b11afa.js');
7
+ const generate = require('./generate-3b515be0.js');
8
8
 
9
9
  class Validators {
10
10
  }
@@ -54,14 +54,20 @@ export class BcmModal {
54
54
  this.hide();
55
55
  }
56
56
  }
57
- async hide() {
58
- this.beforeClose.emit(this.el);
59
- this.isShow = false;
60
- this.close.emit(this);
57
+ async hide(obj = { force: false }) {
58
+ if (obj === null || obj === void 0 ? void 0 : obj.force) {
59
+ this.isShow = false;
60
+ this.close.emit(); // Deprecated
61
+ return;
62
+ }
63
+ this.modalBeforeClose.emit(this.el);
61
64
  }
62
- async show() {
63
- this.beforeOpen.emit(this.el);
64
- this.isShow = true;
65
+ async show(obj = { force: false }) {
66
+ if (obj === null || obj === void 0 ? void 0 : obj.force) {
67
+ this.isShow = true;
68
+ return;
69
+ }
70
+ this.modalBeforeOpen.emit(this.el);
65
71
  }
66
72
  keyboardNavigation(e) {
67
73
  if (this.backdrop == true) {
@@ -72,6 +78,24 @@ export class BcmModal {
72
78
  }
73
79
  }
74
80
  }
81
+ async showModal(e) {
82
+ if (e.defaultPrevented) {
83
+ return;
84
+ }
85
+ if (e.target === this.el) {
86
+ this.isShow = true;
87
+ // document.body.appendChild(this.el); A solution must be found for this.
88
+ }
89
+ }
90
+ async hideModal(e) {
91
+ if (e.defaultPrevented) {
92
+ return;
93
+ }
94
+ if (e.target === this.el) {
95
+ this.isShow = false;
96
+ this.close.emit(); // Deprecated
97
+ }
98
+ }
75
99
  _openHandler() {
76
100
  const disableScrollClass = `bcm-modal--disable-scroll-${this._id}`;
77
101
  if (this.isShow) {
@@ -265,8 +289,8 @@ export class BcmModal {
265
289
  }
266
290
  static get events() {
267
291
  return [{
268
- "method": "beforeOpen",
269
- "name": "beforeOpen",
292
+ "method": "close",
293
+ "name": "bcm-close",
270
294
  "bubbles": true,
271
295
  "cancelable": true,
272
296
  "composed": true,
@@ -280,8 +304,8 @@ export class BcmModal {
280
304
  "references": {}
281
305
  }
282
306
  }, {
283
- "method": "beforeClose",
284
- "name": "beforeClose",
307
+ "method": "modalBeforeClose",
308
+ "name": "bcm-modal-before-close",
285
309
  "bubbles": true,
286
310
  "cancelable": true,
287
311
  "composed": true,
@@ -295,8 +319,8 @@ export class BcmModal {
295
319
  "references": {}
296
320
  }
297
321
  }, {
298
- "method": "close",
299
- "name": "bcm-close",
322
+ "method": "modalBeforeOpen",
323
+ "name": "bcm-modal-before-open",
300
324
  "bubbles": true,
301
325
  "cancelable": true,
302
326
  "composed": true,
@@ -315,8 +339,11 @@ export class BcmModal {
315
339
  return {
316
340
  "hide": {
317
341
  "complexType": {
318
- "signature": "() => Promise<void>",
319
- "parameters": [],
342
+ "signature": "(obj?: { force: boolean; }) => Promise<void>",
343
+ "parameters": [{
344
+ "tags": [],
345
+ "text": ""
346
+ }],
320
347
  "references": {
321
348
  "Promise": {
322
349
  "location": "global"
@@ -331,8 +358,11 @@ export class BcmModal {
331
358
  },
332
359
  "show": {
333
360
  "complexType": {
334
- "signature": "() => Promise<void>",
335
- "parameters": [],
361
+ "signature": "(obj?: { force: boolean; }) => Promise<void>",
362
+ "parameters": [{
363
+ "tags": [],
364
+ "text": ""
365
+ }],
336
366
  "references": {
337
367
  "Promise": {
338
368
  "location": "global"
@@ -367,6 +397,18 @@ export class BcmModal {
367
397
  "target": "document",
368
398
  "capture": false,
369
399
  "passive": false
400
+ }, {
401
+ "name": "bcm-modal-before-open",
402
+ "method": "showModal",
403
+ "target": "document",
404
+ "capture": false,
405
+ "passive": false
406
+ }, {
407
+ "name": "bcm-modal-before-close",
408
+ "method": "hideModal",
409
+ "target": "document",
410
+ "capture": false,
411
+ "passive": false
370
412
  }];
371
413
  }
372
414
  }
@@ -177,7 +177,7 @@ export class BcmList {
177
177
  }
178
178
  }
179
179
  else {
180
- if ((newVal === null || newVal === void 0 ? void 0 : newVal.text) != (oldVal === null || oldVal === void 0 ? void 0 : oldVal.text)) {
180
+ if ((newVal === null || newVal === void 0 ? void 0 : newVal.id) != (oldVal === null || oldVal === void 0 ? void 0 : oldVal.id)) {
181
181
  this.change.emit(this.value);
182
182
  }
183
183
  }
@@ -9,8 +9,8 @@ export const ListTemplate = ({ highlight, selectAllItem, bcmListContainer, treev
9
9
  const showSelectAll = !(treeview && searchFound > 0) && !(searchFound > 0);
10
10
  const setScrollHeight = () => {
11
11
  const itemHeight = size === 'small' ? 28 : size === 'medium' ? 36 : 48;
12
- const itemCount = searchFound >= 0 || (treeview ? items.length : totalData);
13
- let scrollHeight = itemCount * itemHeight || 0;
12
+ const itemCount = searchFound == null ? (treeview ? items.length : totalData) : searchFound;
13
+ const scrollHeight = itemCount * itemHeight || 0;
14
14
  return {
15
15
  'min-height': `${scrollHeight}px`,
16
16
  'overscroll-behavior': 'none',
@@ -116,8 +116,8 @@ const ListTemplate = ({ highlight, selectAllItem, bcmListContainer, treeview, ch
116
116
  const showSelectAll = !(treeview && searchFound > 0) && !(searchFound > 0);
117
117
  const setScrollHeight = () => {
118
118
  const itemHeight = size === 'small' ? 28 : size === 'medium' ? 36 : 48;
119
- const itemCount = searchFound >= 0 || (treeview ? items.length : totalData);
120
- let scrollHeight = itemCount * itemHeight || 0;
119
+ const itemCount = searchFound == null ? (treeview ? items.length : totalData) : searchFound;
120
+ const scrollHeight = itemCount * itemHeight || 0;
121
121
  return {
122
122
  'min-height': `${scrollHeight}px`,
123
123
  'overscroll-behavior': 'none',
@@ -1013,7 +1013,7 @@ const BcmList$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
1013
1013
  }
1014
1014
  }
1015
1015
  else {
1016
- if ((newVal === null || newVal === void 0 ? void 0 : newVal.text) != (oldVal === null || oldVal === void 0 ? void 0 : oldVal.text)) {
1016
+ if ((newVal === null || newVal === void 0 ? void 0 : newVal.id) != (oldVal === null || oldVal === void 0 ? void 0 : oldVal.id)) {
1017
1017
  this.change.emit(this.value);
1018
1018
  }
1019
1019
  }
@@ -16,9 +16,9 @@ const BcmModal$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
16
16
  constructor() {
17
17
  super();
18
18
  this.__registerHost();
19
- this.beforeOpen = createEvent(this, "beforeOpen", 7);
20
- this.beforeClose = createEvent(this, "beforeClose", 7);
21
19
  this.close = createEvent(this, "bcm-close", 7);
20
+ this.modalBeforeClose = createEvent(this, "bcm-modal-before-close", 7);
21
+ this.modalBeforeOpen = createEvent(this, "bcm-modal-before-open", 7);
22
22
  this.modalSlots = {};
23
23
  this._id = Generate.UID();
24
24
  this.isShow = false;
@@ -63,14 +63,20 @@ const BcmModal$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
63
63
  this.hide();
64
64
  }
65
65
  }
66
- async hide() {
67
- this.beforeClose.emit(this.el);
68
- this.isShow = false;
69
- this.close.emit(this);
66
+ async hide(obj = { force: false }) {
67
+ if (obj === null || obj === void 0 ? void 0 : obj.force) {
68
+ this.isShow = false;
69
+ this.close.emit(); // Deprecated
70
+ return;
71
+ }
72
+ this.modalBeforeClose.emit(this.el);
70
73
  }
71
- async show() {
72
- this.beforeOpen.emit(this.el);
73
- this.isShow = true;
74
+ async show(obj = { force: false }) {
75
+ if (obj === null || obj === void 0 ? void 0 : obj.force) {
76
+ this.isShow = true;
77
+ return;
78
+ }
79
+ this.modalBeforeOpen.emit(this.el);
74
80
  }
75
81
  keyboardNavigation(e) {
76
82
  if (this.backdrop == true) {
@@ -81,6 +87,24 @@ const BcmModal$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
81
87
  }
82
88
  }
83
89
  }
90
+ async showModal(e) {
91
+ if (e.defaultPrevented) {
92
+ return;
93
+ }
94
+ if (e.target === this.el) {
95
+ this.isShow = true;
96
+ // document.body.appendChild(this.el); A solution must be found for this.
97
+ }
98
+ }
99
+ async hideModal(e) {
100
+ if (e.defaultPrevented) {
101
+ return;
102
+ }
103
+ if (e.target === this.el) {
104
+ this.isShow = false;
105
+ this.close.emit(); // Deprecated
106
+ }
107
+ }
84
108
  _openHandler() {
85
109
  const disableScrollClass = `bcm-modal--disable-scroll-${this._id}`;
86
110
  if (this.isShow) {
@@ -131,7 +155,7 @@ const BcmModal$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
131
155
  "fullWidth": [1028, "full-width"],
132
156
  "hide": [64],
133
157
  "show": [64]
134
- }, [[8, "click", "handleSubmit"], [4, "keydown", "keyboardNavigation"]]]);
158
+ }, [[8, "click", "handleSubmit"], [4, "keydown", "keyboardNavigation"], [4, "bcm-modal-before-open", "showModal"], [4, "bcm-modal-before-close", "hideModal"]]]);
135
159
  function defineCustomElement$1() {
136
160
  if (typeof customElements === "undefined") {
137
161
  return;
@@ -25,7 +25,7 @@ var TypeProps;
25
25
  TypeProps["basic"] = "basic";
26
26
  })(TypeProps || (TypeProps = {}));
27
27
 
28
- const version = "2.8.1-rc.5";
28
+ const version = "2.8.1-rc.7";
29
29
 
30
30
  function snq(callback, defaultValue) {
31
31
  try {
@@ -3,7 +3,7 @@
3
3
  * Copyright (c) Bromcom.
4
4
  */
5
5
  import { r as registerInstance, h, H as Host, g as getElement } from './index-39133086.js';
6
- import { G as Generate } from './generate-d1b46990.js';
6
+ import { G as Generate } from './generate-e10b1934.js';
7
7
  import './colors-44c95e7e.js';
8
8
  import './_commonjsHelpers-3016b722.js';
9
9
 
@@ -3,7 +3,7 @@
3
3
  * Copyright (c) Bromcom.
4
4
  */
5
5
  import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-39133086.js';
6
- import { G as Generate, s as snq, S as StatusProps, T as TypeProps } from './generate-d1b46990.js';
6
+ import { G as Generate, s as snq, S as StatusProps, T as TypeProps } from './generate-e10b1934.js';
7
7
  import { c as classnames } from './index-ed9652af.js';
8
8
  import { c as createStore } from './index-93e36fdb.js';
9
9
  import { S as StringHelper } from './string-helper-6bd24967.js';
@@ -3,7 +3,7 @@
3
3
  * Copyright (c) Bromcom.
4
4
  */
5
5
  import { r as registerInstance, h, H as Host, g as getElement } from './index-39133086.js';
6
- import { G as Generate } from './generate-d1b46990.js';
6
+ import { G as Generate } from './generate-e10b1934.js';
7
7
  import './colors-44c95e7e.js';
8
8
  import './_commonjsHelpers-3016b722.js';
9
9
 
@@ -5,10 +5,10 @@
5
5
  import { r as registerInstance, h, H as Host, g as getElement } from './index-39133086.js';
6
6
  import { C as ColorHelper } from './color-helper-e8ce23d7.js';
7
7
  import './datetime-helper-df25808a.js';
8
- import { G as Generate } from './generate-d1b46990.js';
9
- import { N as NumberHelper } from './number-helper-ee656d1d.js';
8
+ import { G as Generate } from './generate-e10b1934.js';
9
+ import { N as NumberHelper } from './number-helper-b716bb66.js';
10
10
  import './string-helper-6bd24967.js';
11
- import './validators-b6228259.js';
11
+ import './validators-4bd10aec.js';
12
12
  import './element-dragger-89bb52fd.js';
13
13
  import { a as Bcm } from './bcm-9f50af9c.js';
14
14
  import { c as classnames } from './index-ed9652af.js';
@@ -4,7 +4,7 @@
4
4
  */
5
5
  import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-39133086.js';
6
6
  import { c as classnames } from './index-ed9652af.js';
7
- import { G as Generate } from './generate-d1b46990.js';
7
+ import { G as Generate } from './generate-e10b1934.js';
8
8
  import './_commonjsHelpers-3016b722.js';
9
9
  import './colors-44c95e7e.js';
10
10
 
@@ -3,7 +3,7 @@
3
3
  * Copyright (c) Bromcom.
4
4
  */
5
5
  import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-39133086.js';
6
- import { G as Generate, s as snq } from './generate-d1b46990.js';
6
+ import { G as Generate, s as snq } from './generate-e10b1934.js';
7
7
  import { B as Bcm } from './bcm-9f50af9c.js';
8
8
  import { c as classnames } from './index-ed9652af.js';
9
9
  import { S as StringHelper } from './string-helper-6bd24967.js';
@@ -3,7 +3,7 @@
3
3
  * Copyright (c) Bromcom.
4
4
  */
5
5
  import { h, r as registerInstance, c as createEvent, H as Host, g as getElement } from './index-39133086.js';
6
- import { s as snq, G as Generate } from './generate-d1b46990.js';
6
+ import { s as snq, G as Generate } from './generate-e10b1934.js';
7
7
  import { B as Bcm, a as Bcm$1 } from './bcm-9f50af9c.js';
8
8
  import { c as classnames } from './index-ed9652af.js';
9
9
  import { c as createStore } from './index-93e36fdb.js';
@@ -15,9 +15,9 @@ import { I as IsLoad } from './is-load-decorator-bc14ec4b.js';
15
15
  import { L as LabelTemplate } from './label-template-d74fe788.js';
16
16
  import { S as StringHelper } from './string-helper-6bd24967.js';
17
17
  import './datetime-helper-df25808a.js';
18
- import './number-helper-ee656d1d.js';
19
- import './validators-b6228259.js';
20
- import { T as Tooltip } from './tooltip-helper-5ba44074.js';
18
+ import './number-helper-b716bb66.js';
19
+ import './validators-4bd10aec.js';
20
+ import { T as Tooltip } from './tooltip-helper-964c44e7.js';
21
21
  import './element-dragger-89bb52fd.js';
22
22
  import './colors-44c95e7e.js';
23
23
  import './_commonjsHelpers-3016b722.js';
@@ -5,7 +5,7 @@
5
5
  import { r as registerInstance, h, H as Host, g as getElement } from './index-39133086.js';
6
6
  import { c as classnames } from './index-ed9652af.js';
7
7
  import { C as ColorHelper } from './color-helper-e8ce23d7.js';
8
- import { G as Generate } from './generate-d1b46990.js';
8
+ import { G as Generate } from './generate-e10b1934.js';
9
9
  import { S as StringHelper } from './string-helper-6bd24967.js';
10
10
  import { S as SlotTemplate } from './slot-template-5b2db362.js';
11
11
  import './_commonjsHelpers-3016b722.js';
@@ -4,7 +4,7 @@
4
4
  */
5
5
  import { r as registerInstance, h, H as Host, g as getElement, c as createEvent } from './index-39133086.js';
6
6
  import { c as classnames } from './index-ed9652af.js';
7
- import { G as Generate } from './generate-d1b46990.js';
7
+ import { G as Generate } from './generate-e10b1934.js';
8
8
  import { B as Bcm } from './bcm-9f50af9c.js';
9
9
  import { c as getChilds, d as delay } from './utils-57652744.js';
10
10
  import './_commonjsHelpers-3016b722.js';
@@ -3,7 +3,7 @@
3
3
  * Copyright (c) Bromcom.
4
4
  */
5
5
  import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-39133086.js';
6
- import { G as Generate } from './generate-d1b46990.js';
6
+ import { G as Generate } from './generate-e10b1934.js';
7
7
  import { c as classnames } from './index-ed9652af.js';
8
8
  import { C as ColorHelper } from './color-helper-e8ce23d7.js';
9
9
  import './colors-44c95e7e.js';
@@ -4,7 +4,7 @@
4
4
  */
5
5
  import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-39133086.js';
6
6
  import { c as classnames } from './index-ed9652af.js';
7
- import { G as Generate } from './generate-d1b46990.js';
7
+ import { G as Generate } from './generate-e10b1934.js';
8
8
  import './_commonjsHelpers-3016b722.js';
9
9
  import './colors-44c95e7e.js';
10
10
 
@@ -5,10 +5,10 @@
5
5
  import { r as registerInstance, f as forceUpdate, h, H as Host, g as getElement } from './index-39133086.js';
6
6
  import './color-helper-e8ce23d7.js';
7
7
  import './datetime-helper-df25808a.js';
8
- import { G as Generate } from './generate-d1b46990.js';
9
- import './number-helper-ee656d1d.js';
8
+ import { G as Generate } from './generate-e10b1934.js';
9
+ import './number-helper-b716bb66.js';
10
10
  import './string-helper-6bd24967.js';
11
- import './validators-b6228259.js';
11
+ import './validators-4bd10aec.js';
12
12
  import './element-dragger-89bb52fd.js';
13
13
  import './bcm-9f50af9c.js';
14
14
  import './colors-1d7854ea.js';
@@ -7,10 +7,10 @@ import { r as react, a as reactDom } from './index-6310a048.js';
7
7
  import { c as createCommonjsModule, a as commonjsGlobal } from './_commonjsHelpers-3016b722.js';
8
8
  import './color-helper-e8ce23d7.js';
9
9
  import './datetime-helper-df25808a.js';
10
- import { G as Generate } from './generate-d1b46990.js';
11
- import './number-helper-ee656d1d.js';
10
+ import { G as Generate } from './generate-e10b1934.js';
11
+ import './number-helper-b716bb66.js';
12
12
  import './string-helper-6bd24967.js';
13
- import './validators-b6228259.js';
13
+ import './validators-4bd10aec.js';
14
14
  import './element-dragger-89bb52fd.js';
15
15
  import { d as delay } from './utils-57652744.js';
16
16
  import { F as FloatingUI } from './floating-ui-e7341329.js';
@@ -6,7 +6,7 @@ import { r as registerInstance, h, H as Host, g as getElement } from './index-39
6
6
  import { c as classnames } from './index-ed9652af.js';
7
7
  import { I as IsLoad } from './is-load-decorator-bc14ec4b.js';
8
8
  import { D as DateTimeHelper } from './datetime-helper-df25808a.js';
9
- import { G as Generate } from './generate-d1b46990.js';
9
+ import { G as Generate } from './generate-e10b1934.js';
10
10
  import { B as Bcm } from './bcm-9f50af9c.js';
11
11
  import { d as delay } from './utils-57652744.js';
12
12
  import './_commonjsHelpers-3016b722.js';
@@ -7,7 +7,7 @@ import { D as DragDirections, E as ElementDragger } from './element-dragger-89bb
7
7
  import { c as classnames } from './index-ed9652af.js';
8
8
  import { D as DateTimeHelper } from './datetime-helper-df25808a.js';
9
9
  import { d as delay } from './utils-57652744.js';
10
- import { G as Generate } from './generate-d1b46990.js';
10
+ import { G as Generate } from './generate-e10b1934.js';
11
11
  import { B as Bcm } from './bcm-9f50af9c.js';
12
12
  import { g as getPlacement, s as setPosition } from './popover-placement-78f86f15.js';
13
13
  import { L as LabelTemplate } from './label-template-d74fe788.js';
@@ -3,7 +3,7 @@
3
3
  * Copyright (c) Bromcom.
4
4
  */
5
5
  import { r as registerInstance, h, H as Host, g as getElement } from './index-39133086.js';
6
- import { G as Generate } from './generate-d1b46990.js';
6
+ import { G as Generate } from './generate-e10b1934.js';
7
7
  import './colors-44c95e7e.js';
8
8
  import './_commonjsHelpers-3016b722.js';
9
9
 
@@ -5,10 +5,10 @@
5
5
  import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-39133086.js';
6
6
  import './color-helper-e8ce23d7.js';
7
7
  import './datetime-helper-df25808a.js';
8
- import { G as Generate } from './generate-d1b46990.js';
9
- import './number-helper-ee656d1d.js';
8
+ import { G as Generate } from './generate-e10b1934.js';
9
+ import './number-helper-b716bb66.js';
10
10
  import './string-helper-6bd24967.js';
11
- import './validators-b6228259.js';
11
+ import './validators-4bd10aec.js';
12
12
  import './element-dragger-89bb52fd.js';
13
13
  import { a as Bcm } from './bcm-9f50af9c.js';
14
14
  import { c as classnames } from './index-ed9652af.js';
@@ -5,8 +5,8 @@
5
5
  import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-39133086.js';
6
6
  import { c as classnames } from './index-ed9652af.js';
7
7
  import { I as IsLoad } from './is-load-decorator-bc14ec4b.js';
8
- import { J as JsonParse } from './json-parse-decarator-0f5e3c9b.js';
9
- import { G as Generate } from './generate-d1b46990.js';
8
+ import { J as JsonParse } from './json-parse-decarator-a189d280.js';
9
+ import { G as Generate } from './generate-e10b1934.js';
10
10
  import { B as Bcm } from './bcm-9f50af9c.js';
11
11
  import './_commonjsHelpers-3016b722.js';
12
12
  import './colors-44c95e7e.js';
@@ -3,7 +3,7 @@
3
3
  * Copyright (c) Bromcom.
4
4
  */
5
5
  import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-39133086.js';
6
- import { G as Generate } from './generate-d1b46990.js';
6
+ import { G as Generate } from './generate-e10b1934.js';
7
7
  import { c as classnames } from './index-ed9652af.js';
8
8
  import { S as StringHelper } from './string-helper-6bd24967.js';
9
9
  import { C as ColorHelper } from './color-helper-e8ce23d7.js';
@@ -4,7 +4,7 @@
4
4
  */
5
5
  import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, g as getElement } from './index-39133086.js';
6
6
  import { I as IsLoad } from './is-load-decorator-bc14ec4b.js';
7
- import { G as Generate, s as snq } from './generate-d1b46990.js';
7
+ import { G as Generate, s as snq } from './generate-e10b1934.js';
8
8
  import { S as StringHelper } from './string-helper-6bd24967.js';
9
9
  import { B as Bcm } from './bcm-9f50af9c.js';
10
10
  import './colors-44c95e7e.js';
@@ -3,7 +3,7 @@
3
3
  * Copyright (c) Bromcom.
4
4
  */
5
5
  import { r as registerInstance, h, H as Host, g as getElement } from './index-39133086.js';
6
- import { G as Generate } from './generate-d1b46990.js';
6
+ import { G as Generate } from './generate-e10b1934.js';
7
7
  import { c as classnames } from './index-ed9652af.js';
8
8
  import './colors-44c95e7e.js';
9
9
  import './_commonjsHelpers-3016b722.js';
@@ -3,13 +3,13 @@
3
3
  * Copyright (c) Bromcom.
4
4
  */
5
5
  import { r as registerInstance, c as createEvent, h, H as Host } from './index-39133086.js';
6
- import { G as Generate } from './generate-d1b46990.js';
7
- import { N as NumberHelper } from './number-helper-ee656d1d.js';
6
+ import { G as Generate } from './generate-e10b1934.js';
7
+ import { N as NumberHelper } from './number-helper-b716bb66.js';
8
8
  import { S as StringHelper } from './string-helper-6bd24967.js';
9
- import { V as Validators } from './validators-b6228259.js';
9
+ import { V as Validators } from './validators-4bd10aec.js';
10
10
  import { B as Bcm } from './bcm-9f50af9c.js';
11
11
  import { C as CaptionTemplate } from './caption-template-da16ba7b.js';
12
- import { I as InputTemplate } from './input-template-223732ac.js';
12
+ import { I as InputTemplate } from './input-template-1623e33b.js';
13
13
  import { c as classnames } from './index-ed9652af.js';
14
14
  import { d as delay } from './utils-57652744.js';
15
15
  import { I as IsLoad } from './is-load-decorator-bc14ec4b.js';
@@ -3,7 +3,7 @@
3
3
  * Copyright (c) Bromcom.
4
4
  */
5
5
  import { r as registerInstance, h, H as Host, g as getElement } from './index-39133086.js';
6
- import { G as Generate } from './generate-d1b46990.js';
6
+ import { G as Generate } from './generate-e10b1934.js';
7
7
  import { B as Bcm } from './bcm-9f50af9c.js';
8
8
  import { c as classnames } from './index-ed9652af.js';
9
9
  import { C as ColorHelper } from './color-helper-e8ce23d7.js';
@@ -3,7 +3,7 @@
3
3
  * Copyright (c) Bromcom.
4
4
  */
5
5
  import { r as registerInstance, c as createEvent, h, g as getElement } from './index-39133086.js';
6
- import { G as Generate, s as snq } from './generate-d1b46990.js';
6
+ import { G as Generate, s as snq } from './generate-e10b1934.js';
7
7
  import { S as StringHelper } from './string-helper-6bd24967.js';
8
8
  import './colors-44c95e7e.js';
9
9
  import './_commonjsHelpers-3016b722.js';
@@ -4,13 +4,13 @@
4
4
  */
5
5
  import { h, r as registerInstance, c as createEvent, H as Host, g as getElement } from './index-39133086.js';
6
6
  import { I as IsLoad } from './is-load-decorator-bc14ec4b.js';
7
- import { J as JsonParse } from './json-parse-decarator-0f5e3c9b.js';
7
+ import { J as JsonParse } from './json-parse-decarator-a189d280.js';
8
8
  import './color-helper-e8ce23d7.js';
9
9
  import './datetime-helper-df25808a.js';
10
- import { s as snq, G as Generate } from './generate-d1b46990.js';
11
- import { N as NumberHelper } from './number-helper-ee656d1d.js';
10
+ import { s as snq, G as Generate } from './generate-e10b1934.js';
11
+ import { N as NumberHelper } from './number-helper-b716bb66.js';
12
12
  import { S as StringHelper } from './string-helper-6bd24967.js';
13
- import { V as Validators } from './validators-b6228259.js';
13
+ import { V as Validators } from './validators-4bd10aec.js';
14
14
  import './element-dragger-89bb52fd.js';
15
15
  import { g as getPlacement, s as setPosition } from './popover-placement-78f86f15.js';
16
16
  import { p as pluralize, d as delay } from './utils-57652744.js';
@@ -117,8 +117,8 @@ const ListTemplate = ({ highlight, selectAllItem, bcmListContainer, treeview, ch
117
117
  const showSelectAll = !(treeview && searchFound > 0) && !(searchFound > 0);
118
118
  const setScrollHeight = () => {
119
119
  const itemHeight = size === 'small' ? 28 : size === 'medium' ? 36 : 48;
120
- const itemCount = searchFound >= 0 || (treeview ? items.length : totalData);
121
- let scrollHeight = itemCount * itemHeight || 0;
120
+ const itemCount = searchFound == null ? (treeview ? items.length : totalData) : searchFound;
121
+ const scrollHeight = itemCount * itemHeight || 0;
122
122
  return {
123
123
  'min-height': `${scrollHeight}px`,
124
124
  'overscroll-behavior': 'none',
@@ -1013,7 +1013,7 @@ const BcmList = class {
1013
1013
  }
1014
1014
  }
1015
1015
  else {
1016
- if ((newVal === null || newVal === void 0 ? void 0 : newVal.text) != (oldVal === null || oldVal === void 0 ? void 0 : oldVal.text)) {
1016
+ if ((newVal === null || newVal === void 0 ? void 0 : newVal.id) != (oldVal === null || oldVal === void 0 ? void 0 : oldVal.id)) {
1017
1017
  this.change.emit(this.value);
1018
1018
  }
1019
1019
  }