bromcom-ui 2.4.32 → 2.4.33

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 (79) 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-052ac20b.entry.js +1 -0
  4. package/dist/bromcom-ui/p-072c24b5.js +1 -0
  5. package/dist/bromcom-ui/p-3ed8c65b.entry.js +1 -0
  6. package/dist/bromcom-ui/p-40b3e4b9.js +1 -0
  7. package/dist/bromcom-ui/p-43a2dc90.js +1 -0
  8. package/dist/bromcom-ui/{p-13e143a5.entry.js → p-61385f1e.entry.js} +1 -1
  9. package/dist/bromcom-ui/p-68d9dd67.js +1 -0
  10. package/dist/bromcom-ui/p-9330c810.entry.js +1 -0
  11. package/dist/bromcom-ui/p-a6b11a46.entry.js +1 -0
  12. package/dist/bromcom-ui/{p-8ad580f2.entry.js → p-a8800df8.entry.js} +1 -1
  13. package/dist/bromcom-ui/p-d1dc11c5.entry.js +1 -0
  14. package/dist/bromcom-ui/p-d3c5255a.entry.js +1 -0
  15. package/dist/bromcom-ui/p-d665b89d.entry.js +1 -0
  16. package/dist/bromcom-ui/{p-073fe976.entry.js → p-e62a5e66.entry.js} +1 -1
  17. package/dist/cjs/{bcm-button_14.cjs.entry.js → bcm-button_12.cjs.entry.js} +477 -369
  18. package/dist/cjs/bcm-icon-2_2.cjs.entry.js +7 -6
  19. package/dist/cjs/bcm-popconfirm-box.cjs.entry.js +1 -1
  20. package/dist/cjs/bcm-popconfirm.cjs.entry.js +98 -0
  21. package/dist/cjs/bcm-popover-box.cjs.entry.js +78 -0
  22. package/dist/cjs/bcm-popover.cjs.entry.js +95 -0
  23. package/dist/cjs/bcm-select-box_2.cjs.entry.js +138 -0
  24. package/dist/cjs/bcm-select.cjs.entry.js +23 -20
  25. package/dist/cjs/bcm-stepper.cjs.entry.js +4 -4
  26. package/dist/cjs/bcm-tag-2.cjs.entry.js +48 -45
  27. package/dist/cjs/bromcom-ui.cjs.js +1 -1
  28. package/dist/cjs/{property-decorators-c405d518.js → color-helper-04636625.js} +0 -35
  29. package/dist/cjs/{generate-df748d90.js → generate-84dce6ea.js} +5 -1
  30. package/dist/cjs/loader.cjs.js +1 -1
  31. package/dist/cjs/property-decorators-476df1c5.js +38 -0
  32. package/dist/cjs/{stepper-states-991b5b89.js → stepper-states-c11f78f7.js} +1 -1
  33. package/dist/collection/components/atoms/tag-2/tag-2.css +0 -18629
  34. package/dist/collection/components/atoms/tag-2/tag-2.js +1 -28
  35. package/dist/collection/components/molecules/select/select.js +23 -20
  36. package/dist/collection/components/organism/list/list.css +23 -0
  37. package/dist/collection/components/organism/list/list.js +39 -10
  38. package/dist/collection/components/organism/states/bcm-list2.states.js +2 -2
  39. package/dist/collection/helper/generate.js +4 -0
  40. package/dist/collection/templates/tag-template.js +39 -10
  41. package/dist/esm/{bcm-button_14.entry.js → bcm-button_12.entry.js} +471 -361
  42. package/dist/esm/bcm-icon-2_2.entry.js +5 -4
  43. package/dist/esm/bcm-popconfirm-box.entry.js +1 -1
  44. package/dist/esm/bcm-popconfirm.entry.js +94 -0
  45. package/dist/esm/bcm-popover-box.entry.js +74 -0
  46. package/dist/esm/bcm-popover.entry.js +91 -0
  47. package/dist/esm/bcm-select-box_2.entry.js +133 -0
  48. package/dist/esm/bcm-select.entry.js +23 -20
  49. package/dist/esm/bcm-stepper.entry.js +4 -4
  50. package/dist/esm/bcm-tag-2.entry.js +41 -38
  51. package/dist/esm/bromcom-ui.js +1 -1
  52. package/dist/esm/{property-decorators-d09918fe.js → color-helper-ff728802.js} +1 -35
  53. package/dist/esm/{generate-a97a04fc.js → generate-5aa9d89a.js} +5 -1
  54. package/dist/esm/loader.js +1 -1
  55. package/dist/esm/property-decorators-681ae42e.js +36 -0
  56. package/dist/esm/{stepper-states-638eb20f.js → stepper-states-525936b7.js} +1 -1
  57. package/dist/types/components/atoms/tag-2/tag-2.d.ts +0 -6
  58. package/dist/types/components/organism/list/list.d.ts +3 -1
  59. package/dist/types/helper/generate.d.ts +1 -0
  60. package/dist/types/templates/tag-template.d.ts +6 -1
  61. package/package.json +1 -1
  62. package/dist/bromcom-ui/p-3bca790c.entry.js +0 -1
  63. package/dist/bromcom-ui/p-4054d5e3.js +0 -1
  64. package/dist/bromcom-ui/p-573ec2ec.js +0 -1
  65. package/dist/bromcom-ui/p-73720a30.entry.js +0 -1
  66. package/dist/bromcom-ui/p-7b9c963c.js +0 -1
  67. package/dist/bromcom-ui/p-7f6b81ef.entry.js +0 -1
  68. package/dist/bromcom-ui/p-920b5044.entry.js +0 -1
  69. package/dist/bromcom-ui/p-aa697b33.entry.js +0 -1
  70. package/dist/bromcom-ui/p-d16cf22d.entry.js +0 -1
  71. package/dist/bromcom-ui/p-e1aca7d8.js +0 -1
  72. package/dist/cjs/bcm-input.cjs.entry.js +0 -382
  73. package/dist/cjs/bcm-label.cjs.entry.js +0 -35
  74. package/dist/cjs/bcm-select-box.cjs.entry.js +0 -38
  75. package/dist/cjs/label-template-39ce726c.js +0 -26
  76. package/dist/esm/bcm-input.entry.js +0 -378
  77. package/dist/esm/bcm-label.entry.js +0 -31
  78. package/dist/esm/bcm-select-box.entry.js +0 -34
  79. package/dist/esm/label-template-6989c6ba.js +0 -24
@@ -451,13 +451,15 @@ const BcmSelect = class {
451
451
  this.captionTypeCache = this.captionType;
452
452
  }
453
453
  handleChange(newValue, oldValue) {
454
- if (oldValue != newValue) {
454
+ const oldVal = oldValue ? oldValue : null;
455
+ const newVal = newValue ? newValue : null;
456
+ if (oldVal != newVal) {
455
457
  if (this.checkboxes == true) {
456
- this.change.emit(newValue);
458
+ this.change.emit(newVal);
457
459
  }
458
460
  else {
459
- if (newValue[this.objectMapping['id']] != (oldValue && oldValue[this.objectMapping['id']])) {
460
- this.change.emit(newValue);
461
+ if (newVal[this.objectMapping['id']] != (oldVal && oldVal[this.objectMapping['id']])) {
462
+ this.change.emit(newVal);
461
463
  }
462
464
  }
463
465
  }
@@ -491,21 +493,21 @@ const BcmSelect = class {
491
493
  }
492
494
  if (this.isOpen && this.searchable && !otherTag) {
493
495
  // await this.createElement()
494
- // setTimeout(() => {
495
- var searchInput = null;
496
- if (document.getElementById("select-box" + this._internal_id)
497
- && document.getElementById("select-box" + this._internal_id).shadowRoot.querySelector("bcm-listbox")) {
498
- if (this.treeview) {
499
- searchInput = document.getElementById("select-box" + this._internal_id).shadowRoot.querySelector("bcm-listbox").shadowRoot.querySelector("bcm-treeview");
500
- }
501
- else {
502
- searchInput = document.getElementById("select-box" + this._internal_id).shadowRoot.querySelector("bcm-listbox");
503
- }
504
- if (searchInput) {
505
- searchInput.clearAndSelectSearch();
496
+ setTimeout(() => {
497
+ var searchInput = null;
498
+ if (document.getElementById("select-box" + this._internal_id)
499
+ && document.getElementById("select-box" + this._internal_id).shadowRoot.querySelector("bcm-listbox")) {
500
+ if (this.treeview) {
501
+ searchInput = document.getElementById("select-box" + this._internal_id).shadowRoot.querySelector("bcm-listbox").shadowRoot.querySelector("bcm-treeview");
502
+ }
503
+ else {
504
+ searchInput = document.getElementById("select-box" + this._internal_id).shadowRoot.querySelector("bcm-listbox");
505
+ }
506
+ if (searchInput) {
507
+ searchInput.clearAndSelectSearch();
508
+ }
506
509
  }
507
- }
508
- // }, 50);
510
+ }, 100);
509
511
  }
510
512
  if (this.isOpen == true && this.isRendered == false) {
511
513
  this.renderListbox();
@@ -661,6 +663,7 @@ const BcmSelect = class {
661
663
  }
662
664
  }
663
665
  handleClickOutside(event) {
666
+ var _a;
664
667
  var path = event.path || (event.composedPath && event.composedPath());
665
668
  if (path && path.filter((input) => input['id'] == "other-tag")[0] == undefined
666
669
  && path && path.filter((input) => input['id'] == "listbox")[0] == undefined) {
@@ -671,8 +674,8 @@ const BcmSelect = class {
671
674
  }
672
675
  }, 50);
673
676
  }
674
- if (this.el.contains(event.target)
675
- || path && path.filter((input) => input['id'] == "select-box" + this._internal_id)[0] != undefined) {
677
+ if (((event === null || event === void 0 ? void 0 : event.target) && ((_a = this.el) === null || _a === void 0 ? void 0 : _a.contains(event.target)))
678
+ || (path && path.filter((input) => input['id'] == "select-box" + this._internal_id)[0] != undefined)) {
676
679
  // this.searchResults = []
677
680
  // this.watchSearchResults()
678
681
  this.optionViewportStyleAlignment = {};
@@ -1,13 +1,13 @@
1
1
  import { h, r as registerInstance, c as createEvent, H as Host, g as getElement } from './index-2a0ccf17.js';
2
2
  import { c as classnames } from './index-1597de83.js';
3
3
  import { c as getChildElements } from './utils-b0af8e4d.js';
4
- import { s as snq } from './snq.es5-946822b8.js';
5
- import { J as JsonParse } from './json-parse-decarator-8563927a.js';
6
4
  import './types-911a8837.js';
7
- import { G as Generate } from './generate-a97a04fc.js';
5
+ import { G as Generate } from './generate-5aa9d89a.js';
8
6
  import { B as Bcm } from './bcm-1571bb45.js';
7
+ import { s as snq } from './snq.es5-946822b8.js';
8
+ import { J as JsonParse } from './json-parse-decarator-8563927a.js';
9
9
  import './index-3c5b7898.js';
10
- import { s as stepperStates } from './stepper-states-638eb20f.js';
10
+ import { s as stepperStates } from './stepper-states-525936b7.js';
11
11
 
12
12
  const StepperHeaderTemplate = ({ title, description, status, valid, index, loading, active, stepChange, statusIcon, icon, disabled }) => {
13
13
  const classes = classnames('bcm-stepper__header-item', `bcm-stepper__header-item--${status}`, {