bromcom-ui 2.3.57 → 2.3.58

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 (156) hide show
  1. package/dist/bromcom-ui/bromcom-ui.css +0 -0
  2. package/dist/bromcom-ui/bromcom-ui.esm.js +1 -1
  3. package/dist/bromcom-ui/index.esm.js +0 -0
  4. package/dist/bromcom-ui/{p-7b469915.entry.js → p-13d038f5.entry.js} +1 -1
  5. package/dist/bromcom-ui/p-1429a2b4.js +1 -0
  6. package/dist/bromcom-ui/{p-e02ea2a4.entry.js → p-20d03fa1.entry.js} +1 -1
  7. package/dist/bromcom-ui/p-37750343.entry.js +1 -0
  8. package/dist/bromcom-ui/{p-9bfd984c.entry.js → p-3f797656.entry.js} +1 -1
  9. package/dist/bromcom-ui/p-4a41ef80.entry.js +1 -0
  10. package/dist/bromcom-ui/p-53e9b679.entry.js +1 -0
  11. package/dist/bromcom-ui/p-8851e01e.entry.js +1 -0
  12. package/dist/bromcom-ui/p-9ffff762.entry.js +1 -0
  13. package/dist/bromcom-ui/p-af7e4741.entry.js +1 -0
  14. package/dist/bromcom-ui/{p-0d336381.entry.js → p-afb68492.entry.js} +1 -1
  15. package/dist/bromcom-ui/p-bbf99620.entry.js +1 -0
  16. package/dist/bromcom-ui/{p-b52eb625.entry.js → p-e21a8f2d.entry.js} +1 -1
  17. package/dist/bromcom-ui/p-e450ebda.entry.js +1 -0
  18. package/dist/bromcom-ui/p-f067821e.entry.js +1 -0
  19. package/dist/cjs/bcm-alert.cjs.entry.js +7 -26
  20. package/dist/cjs/{bcm-button_5.cjs.entry.js → bcm-button_11.cjs.entry.js} +1206 -2
  21. package/dist/cjs/{bcm-checkbox-lite_3.cjs.entry.js → bcm-checkbox-lite_4.cjs.entry.js} +64 -0
  22. package/dist/cjs/bcm-colorpicker.cjs.entry.js +1 -1
  23. package/dist/cjs/{bcm-datetime-picker_2.cjs.entry.js → bcm-datetime-picker.cjs.entry.js} +1 -135
  24. package/dist/cjs/bcm-list-select.cjs.entry.js +21 -6
  25. package/dist/cjs/bcm-list.cjs.entry.js +41 -4
  26. package/dist/cjs/{bcm-empty_6.cjs.entry.js → bcm-listbox_5.cjs.entry.js} +8 -75
  27. package/dist/cjs/bcm-popconfirm-box.cjs.entry.js +1 -1
  28. package/dist/cjs/bcm-popconfirm.cjs.entry.js +1 -1
  29. package/dist/cjs/bcm-popover-box.cjs.entry.js +1 -1
  30. package/dist/cjs/bcm-popover.cjs.entry.js +1 -1
  31. package/dist/cjs/bcm-radio-group.cjs.entry.js +1 -1
  32. package/dist/cjs/bcm-select.cjs.entry.js +1 -1
  33. package/dist/cjs/bromcom-ui.cjs.js +1 -1
  34. package/dist/cjs/loader.cjs.js +1 -1
  35. package/dist/cjs/types-37c8ced6.js +16 -0
  36. package/dist/collection/collection-manifest.json +1 -0
  37. package/dist/collection/components/atoms/label/label.css +70 -0
  38. package/dist/collection/components/atoms/label/label.js +203 -0
  39. package/dist/collection/components/molecules/checkbox/group.js +19 -6
  40. package/dist/collection/components/molecules/input/input.js +19 -6
  41. package/dist/collection/components/molecules/list/list-select.css +3 -7
  42. package/dist/collection/components/molecules/list/list-select.js +41 -12
  43. package/dist/collection/components/molecules/list/list.css +18 -0
  44. package/dist/collection/components/molecules/list/list.js +63 -11
  45. package/dist/collection/components/molecules/popconfirm/popconfirm-box.css +1 -0
  46. package/dist/collection/components/molecules/popconfirm/popconfirm.css +1 -0
  47. package/dist/collection/components/molecules/popover/popover-box.css +1 -0
  48. package/dist/collection/components/molecules/popover/popover.css +1 -0
  49. package/dist/collection/components/molecules/radio/group.js +19 -6
  50. package/dist/collection/components/molecules/select/select.js +19 -6
  51. package/dist/collection/components/molecules/switch/switch.css +0 -1
  52. package/dist/collection/components/molecules/switch/switch.js +20 -7
  53. package/dist/collection/components/molecules/textarea/textarea.js +19 -6
  54. package/dist/collection/components/molecules/tooltip/tooltip-box.css +1 -0
  55. package/dist/collection/components/molecules/tooltip/tooltip.css +1 -0
  56. package/dist/collection/components/organism/colorpicker/colorpicker.js +19 -6
  57. package/dist/collection/components/organism/listbox/listbox.js +26 -16
  58. package/dist/collection/helper/color-helper.js +33 -0
  59. package/dist/collection/helper/generate.js +47 -0
  60. package/dist/collection/helper/number-helper.js +10 -0
  61. package/dist/collection/helper/string-helper.js +21 -0
  62. package/dist/collection/helper/validators.js +21 -0
  63. package/dist/collection/models/bcm-types.js +1 -0
  64. package/dist/collection/models/bcm.js +451 -0
  65. package/dist/collection/templates/caption-template.js +22 -0
  66. package/dist/collection/templates/label-template.js +16 -0
  67. package/dist/collection/templates/slot-template.js +6 -0
  68. package/dist/esm/bcm-alert.entry.js +1 -20
  69. package/dist/esm/{bcm-button_5.entry.js → bcm-button_11.entry.js} +1202 -4
  70. package/dist/esm/{bcm-checkbox-lite_3.entry.js → bcm-checkbox-lite_4.entry.js} +65 -2
  71. package/dist/esm/bcm-colorpicker.entry.js +1 -1
  72. package/dist/esm/{bcm-datetime-picker_2.entry.js → bcm-datetime-picker.entry.js} +2 -135
  73. package/dist/esm/bcm-list-select.entry.js +21 -6
  74. package/dist/esm/bcm-list.entry.js +41 -4
  75. package/dist/esm/{bcm-empty_6.entry.js → bcm-listbox_5.entry.js} +10 -76
  76. package/dist/esm/bcm-popconfirm-box.entry.js +1 -1
  77. package/dist/esm/bcm-popconfirm.entry.js +1 -1
  78. package/dist/esm/bcm-popover-box.entry.js +1 -1
  79. package/dist/esm/bcm-popover.entry.js +1 -1
  80. package/dist/esm/bcm-radio-group.entry.js +1 -1
  81. package/dist/esm/bcm-select.entry.js +1 -1
  82. package/dist/esm/bromcom-ui.js +1 -1
  83. package/dist/esm/loader.js +1 -1
  84. package/dist/esm/polyfills/css-shim.js +0 -0
  85. package/dist/esm/types-911a8837.js +21 -0
  86. package/dist/types/assets/icons/index.d.ts +0 -0
  87. package/dist/types/assets/icons/index.example.d.ts +0 -0
  88. package/dist/types/components/atoms/avatar/avatar.d.ts +0 -0
  89. package/dist/types/components/atoms/badge/badge.d.ts +0 -0
  90. package/dist/types/components/atoms/button/button.d.ts +0 -0
  91. package/dist/types/components/atoms/divider/divider.d.ts +0 -0
  92. package/dist/types/components/atoms/icon/icon.d.ts +0 -0
  93. package/dist/types/components/atoms/icon/types.d.ts +0 -0
  94. package/dist/types/components/atoms/label/label.d.ts +16 -0
  95. package/dist/types/components/atoms/tag/tag.d.ts +0 -0
  96. package/dist/types/components/atoms/text/text.d.ts +0 -0
  97. package/dist/types/components/molecules/card/card-footer.d.ts +0 -0
  98. package/dist/types/components/molecules/card/card-header.d.ts +0 -0
  99. package/dist/types/components/molecules/card/card.d.ts +0 -0
  100. package/dist/types/components/molecules/checkbox/checkbox.d.ts +0 -0
  101. package/dist/types/components/molecules/checkbox/group.d.ts +1 -0
  102. package/dist/types/components/molecules/input/input.d.ts +1 -0
  103. package/dist/types/components/molecules/list/list-select.d.ts +6 -1
  104. package/dist/types/components/molecules/list/list.d.ts +1 -0
  105. package/dist/types/components/molecules/radio/group.d.ts +1 -0
  106. package/dist/types/components/molecules/radio/radio.d.ts +0 -0
  107. package/dist/types/components/molecules/select/group.d.ts +0 -0
  108. package/dist/types/components/molecules/select/option.d.ts +0 -0
  109. package/dist/types/components/molecules/select/select.d.ts +1 -0
  110. package/dist/types/components/molecules/switch/switch.d.ts +1 -0
  111. package/dist/types/components/molecules/textarea/textarea.d.ts +1 -0
  112. package/dist/types/components/organism/colorpicker/colorpicker.d.ts +1 -0
  113. package/dist/types/components/organism/listbox/listbox.d.ts +1 -0
  114. package/dist/types/components.d.ts +64 -3
  115. package/dist/types/global/variables/colors.d.ts +0 -0
  116. package/dist/types/helper/color-helper.d.ts +9 -0
  117. package/dist/types/helper/generate.d.ts +10 -0
  118. package/dist/types/helper/number-helper.d.ts +9 -0
  119. package/dist/types/helper/string-helper.d.ts +20 -0
  120. package/dist/types/helper/validators.d.ts +8 -0
  121. package/dist/types/index.d.ts +0 -0
  122. package/dist/types/models/bcm-types.d.ts +19 -0
  123. package/dist/types/models/bcm.d.ts +447 -0
  124. package/dist/types/stencil-public-runtime.d.ts +0 -0
  125. package/dist/types/templates/caption-template.d.ts +12 -0
  126. package/dist/types/templates/label-template.d.ts +12 -0
  127. package/dist/types/templates/slot-template.d.ts +8 -0
  128. package/dist/types/utils/utils.d.ts +0 -0
  129. package/loader/cdn.js +0 -0
  130. package/loader/index.cjs.js +0 -0
  131. package/loader/index.d.ts +0 -0
  132. package/loader/index.es2017.js +0 -0
  133. package/loader/index.js +0 -0
  134. package/loader/package.json +0 -0
  135. package/package.json +1 -1
  136. package/dist/bromcom-ui/p-013b6f5d.entry.js +0 -1
  137. package/dist/bromcom-ui/p-3a6625d7.entry.js +0 -1
  138. package/dist/bromcom-ui/p-3aef4844.entry.js +0 -1
  139. package/dist/bromcom-ui/p-5ff33d84.entry.js +0 -1
  140. package/dist/bromcom-ui/p-607bc9b3.entry.js +0 -1
  141. package/dist/bromcom-ui/p-6bd805f1.entry.js +0 -1
  142. package/dist/bromcom-ui/p-6ef403b0.entry.js +0 -1
  143. package/dist/bromcom-ui/p-865ccb94.entry.js +0 -1
  144. package/dist/bromcom-ui/p-9220ba9c.entry.js +0 -1
  145. package/dist/bromcom-ui/p-b81236b1.entry.js +0 -1
  146. package/dist/bromcom-ui/p-cdfd9ba0.entry.js +0 -1
  147. package/dist/bromcom-ui/p-cf6b0656.entry.js +0 -1
  148. package/dist/bromcom-ui/p-fc3e131c.entry.js +0 -1
  149. package/dist/cjs/bcm-checkbox-group.cjs.entry.js +0 -273
  150. package/dist/cjs/bcm-checkbox.cjs.entry.js +0 -143
  151. package/dist/cjs/bcm-switch.cjs.entry.js +0 -86
  152. package/dist/cjs/bcm-tooltip-box.cjs.entry.js +0 -36
  153. package/dist/esm/bcm-checkbox-group.entry.js +0 -269
  154. package/dist/esm/bcm-checkbox.entry.js +0 -139
  155. package/dist/esm/bcm-switch.entry.js +0 -82
  156. package/dist/esm/bcm-tooltip-box.entry.js +0 -32
@@ -6,6 +6,8 @@ const index = require('./index-ce8878ec.js');
6
6
  const index$1 = require('./index-2f62bdaf.js');
7
7
  const colors = require('./colors-7fb8d76f.js');
8
8
  const utils = require('./utils-60414768.js');
9
+ const types = require('./types-37c8ced6.js');
10
+ const popoverPlacement = require('./popover-placement-ac023521.js');
9
11
 
10
12
  /**
11
13
  * 'type' prop variantOption
@@ -245,6 +247,404 @@ const BcmButton = class {
245
247
  };
246
248
  BcmButton.style = buttonsCss;
247
249
 
250
+ /**
251
+ * 'color' prop predefined values
252
+ */
253
+ var ColorProps;
254
+ (function (ColorProps) {
255
+ ColorProps["black"] = "black";
256
+ ColorProps["white"] = "white";
257
+ ColorProps["prime-blue"] = "prime-blue";
258
+ ColorProps["grey"] = "grey";
259
+ ColorProps["blue"] = "blue";
260
+ ColorProps["warmyellow"] = "warmyellow";
261
+ ColorProps["yellow"] = "yellow";
262
+ ColorProps["limegreen"] = "limegreen";
263
+ ColorProps["red"] = "red";
264
+ ColorProps["darkorange"] = "darkorange";
265
+ ColorProps["orange"] = "orange";
266
+ ColorProps["green"] = "green";
267
+ ColorProps["turquosie"] = "turquosie";
268
+ ColorProps["cobaltblue"] = "cobaltblue";
269
+ ColorProps["magenta"] = "magenta";
270
+ ColorProps["purple"] = "purple";
271
+ ColorProps["bc-red"] = "bc-red";
272
+ ColorProps["bc-blue"] = "bc-blue";
273
+ ColorProps["bc-green"] = "bc-green";
274
+ ColorProps["bc-orange"] = "bc-orange";
275
+ })(ColorProps || (ColorProps = {}));
276
+
277
+ const checkboxCss = "@import url(\"https://fonts.googleapis.com/css?family=Roboto:400,500\");.size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}:host{display:inline-block}:host(.hidden){display:none}input{display:none}.svg-icon{filter:brightness(0) invert(1);width:12px;height:12px}label{display:flex;align-items:flex-start;font-size:14px;color:var(--bcm-color-grey-8);cursor:pointer}label span.icon{display:flex;align-items:center;justify-content:center;min-width:16px;min-height:16px;border:1px solid #D9D9D9;margin-right:8px;border-radius:2px;margin-top:2px;background-color:var(--bcm-color-grey-1)}:host(.indeterminate) label span.icon{position:relative}:host(.indeterminate) label span.icon::after{content:\"\";position:absolute;top:50%;left:8px;width:10px;height:10px;background-color:var(--bcm-color-prime-blue-6);transform:translate(-50%, -50%);opacity:1;z-index:1}:host(.indeterminate) label span.icon::before{content:\"\";position:absolute;top:-1px;left:-1px;width:16px;height:100%;border-radius:2px;background-color:var(--bcm-color-grey-1);border:1px solid var(--bcm-color-grey-5);opacity:1;z-index:1}:host(.indeterminate) label span.icon:hover:not(.disabled):before{border-color:var(--bcm-color-prime-blue-6);box-shadow:0px 2px 4px rgba(54, 121, 171, 0.5)}input:checked+label span.icon{background-color:var(--bcm-color-prime-blue-6);border-color:transparent}input:checked+label .icon-checked{display:block}bcm-icon{filter:brightness(0) invert(1)}input[disabled]+label{cursor:not-allowed}input[disabled]+label span.icon{background-color:var(--bcm-color-grey-3);border-color:var(--bcm-color-grey-5)}input[disabled]+label bcm-icon{filter:brightness(0);opacity:0.3}input:not([disabled])+label:hover span.icon{border-color:var(--bcm-color-prime-blue-6);box-shadow:0px 2px 4px rgba(54, 121, 171, 0.5)}:host(.error) input:not([disabled])+label span.icon{border-color:var(--bcm-color-red-6)}.caption-area{margin-bottom:8px;min-height:20px;display:block}.input-caption{display:block}.caption-default{color:#8C8C8C}.caption-primary{color:#4293CF}.caption-success{color:#52C41A}.caption-warning{color:#FA8C16}.caption-error{color:#F5222D}.radio-button{background-color:var(--bcm-color-grey-1);color:var(--bcm-color-grey-8);border:1px solid var(--bcm-color-grey-5);padding:0 16px;box-sizing:border-box;display:flex;align-items:center;justify-content:center}.radio-button>span.icon{display:none}.radio-button>span.slot{display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;user-select:none}.radio-button:hover:not(.disabled){color:var(--bcm-color-prime-blue-5)}.radio-button:active:not(.disabled){color:var(--bcm-color-prime-blue-7)}.radio-button.disabled{background-color:var(--bcm-color-grey-3);color:var(--bcm-color-grey-6);cursor:not-allowed}.radio-button.checked.disabled{background-color:var(--bcm-color-grey-4);color:var(--bcm-color-grey-1);border-color:var(--bcm-color-grey-5)}.radio-button.checked.solid{color:var(--bcm-color-grey-1);background-color:var(--bcm-color-prime-blue-6);border-color:var(--bcm-color-prime-blue-6)}.radio-button.checked.solid:hover{background-color:var(--bcm-color-prime-blue-5);border-color:var(--bcm-color-prime-blue-5)}.radio-button.checked.solid:active{background-color:var(--bcm-color-prime-blue-7);border-color:var(--bcm-color-prime-blue-7)}.radio-button.checked.outline{background-color:var(--bcm-color-grey-1);color:var(--bcm-color-prime-blue-6);border-color:var(--bcm-color-prime-blue-6)}.radio-button.checked.outline:hover{color:var(--bcm-color-prime-blue-5);border-color:var(--bcm-color-prime-blue-5)}.radio-button.checked.outline:active{color:var(--bcm-color-prime-blue-7);border-color:var(--bcm-color-prime-blue-7)}.radio-button.large{height:40px}.radio-button.medium{height:32px}.radio-button.small{height:24px}";
278
+
279
+ const BcmCheckbox = class {
280
+ constructor(hostRef) {
281
+ index.registerInstance(this, hostRef);
282
+ this.blur = index.createEvent(this, "bcm-blur", 7);
283
+ this.focus = index.createEvent(this, "bcm-focus", 7);
284
+ this.change = index.createEvent(this, "bcm-change", 7);
285
+ /**
286
+ * Component Properties
287
+ */
288
+ this.value = '';
289
+ this.name = 'checkbox';
290
+ this.checked = false;
291
+ this.disabled = false;
292
+ this.readOnly = false;
293
+ this.hidden = false;
294
+ this.required = false;
295
+ this.optionType = 'default';
296
+ this.buttonStyle = 'solid';
297
+ this.size = 'medium';
298
+ this.noCaption = false;
299
+ this.captionType = 'default';
300
+ }
301
+ /**
302
+ * @ComponentMethod
303
+ */
304
+ connectedCallback() {
305
+ this.handleChange = this.handleChange.bind(this);
306
+ this.captionCache = this.caption;
307
+ this.captionTypeCache = this.captionType;
308
+ }
309
+ async setClear() {
310
+ if (this.inputElement.checked == true) {
311
+ this.inputElement.checked = false;
312
+ this.handleChange();
313
+ }
314
+ }
315
+ async resetCaption() {
316
+ this.caption = this.captionCache;
317
+ this.captionType = this.captionTypeCache;
318
+ this.captionError = null;
319
+ }
320
+ componentDidLoad() {
321
+ this.value = this.inputElement.checked;
322
+ this.checked = this.value;
323
+ }
324
+ /**
325
+ * @desc
326
+ * @param event
327
+ * @returns
328
+ */
329
+ handleChange() {
330
+ this.value = this.inputElement.checked;
331
+ this.checked = this.value;
332
+ this.change.emit({
333
+ name: this.name,
334
+ value: this.value
335
+ });
336
+ }
337
+ handleFocus() {
338
+ this.focus.emit();
339
+ }
340
+ handleBlur() {
341
+ this.blur.emit();
342
+ }
343
+ /**
344
+ * @desc
345
+ * @param name -
346
+ * @returns {void}
347
+ */
348
+ async check(uncheck) {
349
+ this.inputElement.checked = uncheck;
350
+ this.handleChange();
351
+ }
352
+ getColor(color) {
353
+ if (this.color !== 'default' && this.optionType == 'button' && this.checked)
354
+ return {
355
+ // color: extractColor(ColorPalette, ColorProps[color] + '-6'),
356
+ borderColor: utils.extractColor(colors.ColorPalette, ColorProps[color] + '-5'),
357
+ backgroundColor: utils.extractColor(colors.ColorPalette, ColorProps[color] + '-5')
358
+ };
359
+ }
360
+ render() {
361
+ const { disabled, checked, readOnly, name, handleChange, required, caption, captionError, captionType, noCaption, buttonStyle, size, optionType } = this;
362
+ const hostClasses = index$1.classnames(this.hidden ? 'hidden' : null, {
363
+ 'error': captionType == 'error' ? true : false
364
+ });
365
+ const captionClasses = index$1.classnames('size-1', 'input-caption', 'caption-' + captionType);
366
+ const defaultClasses = index$1.classnames();
367
+ const buttonClasses = index$1.classnames('radio-button', buttonStyle, size, {
368
+ 'size-2': size === 'small' || size === 'medium',
369
+ 'size-3': size === 'large',
370
+ 'checked': checked,
371
+ 'disabled': disabled,
372
+ });
373
+ var fontColor = utils.extractColor(colors.ColorPalette, ColorProps[this.color] + '-6');
374
+ var style = "<style>.radio-button:not(.checked):hover{color: " + fontColor + "} </style>";
375
+ return (index.h(index.Host, { class: hostClasses, onFocus: () => this.handleFocus(), onBlur: () => this.handleBlur() }, index.h("input", { id: name, type: "checkbox", checked: checked, disabled: disabled, required: required, readOnly: readOnly, onChange: handleChange, ref: el => (this.inputElement = el) }), optionType == 'button' && (index.h("span", { innerHTML: style })), index.h("label", { title: optionType == 'button' ? this.el.innerHTML : null, htmlFor: name, class: optionType == 'default' ? defaultClasses : buttonClasses, style: this.getColor(this.color) }, index.h("span", { class: "icon" }, index.h("bcm-icon", { class: "icon-checked", icon: "component-check", size: "small", type: "default" })), index.h("span", { class: "slot" }, index.h("slot", null))), !noCaption && (index.h("div", { class: "caption-area" }, captionType == "error"
376
+ ? index.h("span", { class: captionClasses }, " ", captionError, " ")
377
+ : caption && index.h("span", { class: captionClasses }, " ", caption, " ")))));
378
+ }
379
+ get el() { return index.getElement(this); }
380
+ };
381
+ BcmCheckbox.style = checkboxCss;
382
+
383
+ const groupCss = "@import url(\"https://fonts.googleapis.com/css?family=Roboto:400,500\");.size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}:host{display:block;width:100%}:host(.hidden){display:none}:host(.error) .label{color:var(--bcm-color-red-6) !important}.group-container{display:flex;gap:24px}.group-container.vertical{gap:unset;flex-direction:column}.group-container.button{gap:unset}.group-container.full-width{max-width:100%}.indeterminate{padding:0 0 16px 0;margin-bottom:16px;border-bottom:1px solid #efefef;}.indeterminate input{display:none}.indeterminate label{display:flex;align-items:center;font-size:14px;color:var(--bcm-color-grey-8);cursor:pointer}.indeterminate label .icon-checked{display:none}.indeterminate span{position:relative;display:flex;align-items:center;justify-content:center;width:16px;height:16px;border:1px solid #D9D9D9;margin-right:8px;border-radius:2px}.indeterminate span:after{content:\"\";position:absolute;top:50%;left:50%;width:10px;height:10px;background-color:var(--bcm-color-prime-blue-6);transform:translate(-50%, -50%);opacity:0}.indeterminate bcm-icon{filter:brightness(0) invert(1)}.indeterminate input[disabled]+label{cursor:not-allowed}.indeterminate input[disabled]+label span{background-color:var(--bcm-color-grey-3);border-color:var(--bcm-color-grey-5)}.indeterminate input[disabled]+label span:after{background-color:var(--bcm-color-grey-6)}.indeterminate input[disabled]+label bcm-icon{filter:brightness(0);opacity:0.3}.indeterminate input:not([disabled])+label:hover span{border-color:var(--bcm-color-prime-blue-6);box-shadow:0px 2px 4px rgba(54, 121, 171, 0.5)}.indeterminate.bcm-uncheck label span{background-color:#ffffff}.indeterminate.bcm-determinate bcm-icon{display:block}.indeterminate.bcm-determinate label span{background-color:var(--bcm-color-prime-blue-6);border-color:transparent}.indeterminate.bcm-determinate label span:after{opacity:0}.indeterminate.bcm-indeterminate bcm-icon{display:none !important}.indeterminate.bcm-indeterminate label span{background-color:#ffffff}.indeterminate.bcm-indeterminate label span:after{opacity:1}.label{display:flex;flex-direction:column;color:var(--bcm-color-grey-9);margin-bottom:8px}";
384
+
385
+ const BcmCheckboxGroup = class {
386
+ constructor(hostRef) {
387
+ index.registerInstance(this, hostRef);
388
+ this.groupChange = index.createEvent(this, "bcm-group-change", 7);
389
+ this.groupCheckedList = index.createEvent(this, "bcm-group-checked-list", 7);
390
+ /**
391
+ * Private variables
392
+ */
393
+ this.checkboxes = [];
394
+ /**
395
+ * Component Properties
396
+ */
397
+ this.direction = 'horizontal';
398
+ this.items = [];
399
+ this.indeterminate = false;
400
+ this.disabled = false;
401
+ this.hidden = false;
402
+ this.required = false;
403
+ this.label = null;
404
+ this.gap = null;
405
+ this.fullWidth = "false";
406
+ this.optionType = 'default';
407
+ this.buttonStyle = 'solid';
408
+ this.size = 'medium';
409
+ this.noCaption = false;
410
+ this.captionType = 'default';
411
+ /**
412
+ * Component State Variables
413
+ */
414
+ this.indeterminateState = 'uncheck';
415
+ this.checkboxesProp = [];
416
+ }
417
+ /**
418
+ * @ComponentMethod
419
+ */
420
+ componentWillLoad() {
421
+ this.parseItems(this.items);
422
+ this.parseOptions();
423
+ }
424
+ /**
425
+ * @ComponentMethod
426
+ */
427
+ connectedCallback() { }
428
+ componentDidLoad() {
429
+ let checkboxesInit = [];
430
+ checkboxesInit = this.getAllInputs();
431
+ checkboxesInit.map(checkbox => {
432
+ if (this.fullWidth != "false") {
433
+ if (this.fullWidth === "flex") {
434
+ checkbox.style.flex = "auto";
435
+ }
436
+ else {
437
+ checkbox.style.width = "100%";
438
+ }
439
+ }
440
+ this.optionType && (checkbox.optionType = this.optionType);
441
+ this.buttonStyle && (checkbox.buttonStyle = this.buttonStyle);
442
+ this.size && (checkbox.size = this.size);
443
+ // this.required == true && checkbox.required == true && (
444
+ // checkbox.required = true
445
+ // )
446
+ this.disabled == true && (checkbox.disabled = true);
447
+ });
448
+ this.groupChecked().then(values => this.value = values);
449
+ }
450
+ async setClear() {
451
+ const checkboxesInit = this.getAllInputs();
452
+ checkboxesInit.map(checkbox => {
453
+ checkbox.setClear();
454
+ checkbox.noCaption = this.noCaption;
455
+ });
456
+ }
457
+ async resetCaption() {
458
+ const checkboxesInit = this.getAllInputs();
459
+ checkboxesInit.map(checkbox => {
460
+ checkbox.resetCaption();
461
+ checkbox.noCaption = this.noCaption;
462
+ });
463
+ }
464
+ /**
465
+ * @ComponentMethod
466
+ */
467
+ componentDidRender() {
468
+ let slotElements;
469
+ slotElements = this.el.shadowRoot.querySelector('slot').assignedElements();
470
+ this.checkboxes = [];
471
+ // Get only bcm-checkbox elements from
472
+ // slot childs
473
+ slotElements.map(element => {
474
+ String(element.tagName).toLowerCase() == 'bcm-checkbox'
475
+ && this.checkboxes.push(element);
476
+ });
477
+ this.setIndeterminateState();
478
+ if (this.items.length > 0) {
479
+ let checkboxesInit = [];
480
+ checkboxesInit = this.getAllInputs();
481
+ checkboxesInit.map(checkbox => {
482
+ this.defaultValueState && (this.defaultValueState.find(e => e === checkbox.name) && checkbox.check(checkbox.name));
483
+ });
484
+ }
485
+ }
486
+ componentDidUpdate() {
487
+ this.handleChange();
488
+ }
489
+ /**
490
+ * @desc
491
+ */
492
+ inputChange() {
493
+ this.groupChecked().then(values => this.value = values);
494
+ this.setIndeterminateState();
495
+ }
496
+ /**
497
+ * @desc Returns merged slot and prop
498
+ * checkbox items
499
+ * @returns {Array<BcmCheckbox>}
500
+ */
501
+ getAllInputs() {
502
+ return [
503
+ ...this.checkboxes,
504
+ ...this.el.shadowRoot.querySelectorAll('bcm-checkbox')
505
+ ];
506
+ }
507
+ /**
508
+ * @desc
509
+ * @returns {void}
510
+ */
511
+ setIndeterminateState() {
512
+ let state = 'uncheck';
513
+ let allChecked = true;
514
+ let allUnchecked = true;
515
+ this.getAllInputs().map((checkbox) => {
516
+ checkbox.checked && (allUnchecked = false);
517
+ !checkbox.checked && (allChecked = false);
518
+ });
519
+ !allChecked && !allUnchecked
520
+ ? state = 'indeterminate'
521
+ : allChecked
522
+ ? state = 'determinate'
523
+ : state = 'uncheck';
524
+ this.indeterminateState = state;
525
+ }
526
+ /**
527
+ * @desc
528
+ * @param event
529
+ */
530
+ indeterminateClick() {
531
+ if (this.disabled == false) {
532
+ let checkAll = true;
533
+ if (this.indeterminateState == 'determinate') {
534
+ checkAll = false;
535
+ }
536
+ this.getAllInputs().map((checkbox) => {
537
+ checkbox.check(checkAll);
538
+ });
539
+ }
540
+ }
541
+ parseOptions() {
542
+ if (this.defaultValue) {
543
+ this.defaultValueState = JSON.parse(this.defaultValue);
544
+ }
545
+ }
546
+ /**
547
+ * @desc
548
+ * @param newValue
549
+ * @returns {void}
550
+ */
551
+ parseItems(newValue) {
552
+ if (newValue) {
553
+ typeof newValue == 'string'
554
+ ? this.checkboxesProp = JSON.parse(newValue)
555
+ : this.checkboxesProp = newValue;
556
+ }
557
+ }
558
+ /**
559
+ * @desc
560
+ * @param name -
561
+ * @returns {boolean | Array<any>}
562
+ */
563
+ async check(options) {
564
+ if (options) {
565
+ typeof options == 'string'
566
+ ? options = JSON.parse(options)
567
+ : options = options;
568
+ }
569
+ let checkboxes = [];
570
+ checkboxes = this.getAllInputs();
571
+ const inBoth = (list1, list2) => list1.filter(a => true === list2.some(b => a.name === b.name));
572
+ let optionsArray = options;
573
+ inBoth(checkboxes, options).map(item => {
574
+ item.check(optionsArray.find(x => x.name === item.name).checked);
575
+ });
576
+ }
577
+ /**
578
+ * @desc
579
+ * @param name -
580
+ * @returns {boolean | Array<any>}
581
+ */
582
+ async groupChecked(name) {
583
+ let retVal = null;
584
+ let checkeds = {};
585
+ let checkboxes = [];
586
+ if (typeof retVal != 'boolean' && !retVal) {
587
+ retVal = checkeds;
588
+ }
589
+ // Merge slotted items with prop items
590
+ // #
591
+ checkboxes = this.getAllInputs();
592
+ checkboxes.map(checkbox => {
593
+ checkbox.checked && (checkeds[checkbox.name] = {
594
+ value: true,
595
+ name: checkbox.name
596
+ });
597
+ !checkbox.checked && (checkeds[checkbox.name] = {
598
+ value: false,
599
+ name: checkbox.name
600
+ });
601
+ if (checkbox.name === name) {
602
+ retVal = checkbox.checked;
603
+ }
604
+ });
605
+ return retVal;
606
+ }
607
+ handleChange() {
608
+ let checkeds = {};
609
+ let changes = {};
610
+ let checkboxes = [];
611
+ checkboxes = this.getAllInputs();
612
+ checkboxes.map(checkbox => {
613
+ checkbox.checked && (checkeds[checkbox.name] = {
614
+ value: true,
615
+ name: checkbox.name
616
+ });
617
+ changes[checkbox.name] = {
618
+ value: checkbox.checked ? true : false,
619
+ name: checkbox.name
620
+ };
621
+ });
622
+ this.groupChange.emit(changes);
623
+ this.groupCheckedList.emit(checkeds);
624
+ }
625
+ render() {
626
+ const { checkboxesProp, indeterminate, disabled, label, required, captionType } = this;
627
+ const groupContainerClasses = index$1.classnames('group-container', this.direction, this.optionType, this.fullWidth, {
628
+ 'full-width': this.fullWidth
629
+ });
630
+ const indeterminateClasses = index$1.classnames('indeterminate', 'bcm-' + this.indeterminateState, {
631
+ 'disabled': disabled
632
+ });
633
+ const hostClasses = index$1.classnames(this.hidden ? 'hidden' : null, {
634
+ 'error': captionType == 'error' ? true : false
635
+ });
636
+ var customStyle = {};
637
+ this.gap && (customStyle = { 'gap': this.gap });
638
+ return (index.h(index.Host, { class: hostClasses, "on-bcm-change": () => this.inputChange() }, label && index.h("div", null, index.h("bcm-label", { tooltip: this.tooltip, type: captionType, value: label, required: required })), indeterminate && (index.h("div", { class: indeterminateClasses }, index.h("input", { id: "bcm-indeterminate-element", type: "checkbox", disabled: disabled }), index.h("label", { htmlFor: "bcm-indeterminate-element", "on-click": () => this.indeterminateClick() }, index.h("span", null, index.h("bcm-icon", { class: "icon-checked", icon: "component-check", size: "small", type: "default" })), "Check All"))), index.h("div", { class: groupContainerClasses, style: customStyle }, checkboxesProp && this.checkboxesProp.map((checkbox) => index.h("bcm-checkbox", { name: checkbox.name, checked: checkbox.checked, disabled: checkbox.disabled, required: this.required === true && checkbox.required === true && (true), noCaption: this.noCaption, optionType: this.optionType, buttonStyle: this.buttonStyle, size: this.size, "full-width": this.fullWidth }, checkbox.label)), index.h("slot", null))));
639
+ }
640
+ get el() { return index.getElement(this); }
641
+ static get watchers() { return {
642
+ "defaultValue": ["parseOptions"],
643
+ "items": ["parseItems"]
644
+ }; }
645
+ };
646
+ BcmCheckboxGroup.style = groupCss;
647
+
248
648
  // /**
249
649
  // *
250
650
  // * @param type
@@ -6329,7 +6729,7 @@ const BcmInput = class {
6329
6729
  const inputClass = size === 'large' ? 'size-3' : 'size-2';
6330
6730
  const captionClasses = index$1.classnames('size-1', 'input-caption', 'caption-' + captionType);
6331
6731
  const hostClasses = index$1.classnames(this.hidden ? 'hidden' : null, this.noMargin ? 'no-margin' : null);
6332
- return (index.h(index.Host, { class: hostClasses }, index.h("div", { class: containerClasses }, label && index.h("label", { htmlFor: this.inputId, class: "label size-1" }, " ", label, " ", required && ('*'), " "), index.h("div", { class: baseClasses }, index.h("span", { class: "input-prefix" }, index.h("slot", { name: "prefix" }), unitPrefix && index.h("span", { class: index$1.classnames(inputClass, 'unit-prefix') }, unitPrefix)), index.h("input", { "bcm-internal-id": this._id, id: this.inputId, class: inputClass, ref: el => (this.inputElement = el), onFocus: this.handleFocus, onBlur: this.handleBlur, onChange: this.handleChange, onInput: this.handleInput, maxLength: this.maxLength, type: type === 'password' && isPasswordVisible ? 'text' :
6732
+ return (index.h(index.Host, { class: hostClasses }, index.h("div", { class: containerClasses }, label && index.h("div", null, index.h("bcm-label", { tooltip: this.tooltip, type: captionType, value: label, required: required, htmlFor: this.inputId })), index.h("div", { class: baseClasses }, index.h("span", { class: "input-prefix" }, index.h("slot", { name: "prefix" }), unitPrefix && index.h("span", { class: index$1.classnames(inputClass, 'unit-prefix') }, unitPrefix)), index.h("input", { "bcm-internal-id": this._id, id: this.inputId, class: inputClass, ref: el => (this.inputElement = el), onFocus: this.handleFocus, onBlur: this.handleBlur, onChange: this.handleChange, onInput: this.handleInput, maxLength: this.maxLength, type: type === 'password' && isPasswordVisible ? 'text' :
6333
6733
  type === 'number' ? 'text' : type, placeholder: placeholder, value: type === 'number' && !this.hasFocus
6334
6734
  ? value + (value && (unit === null || unit === void 0 ? void 0 : unit.length) > 0 ? ' ' + unit : '')
6335
6735
  : value, disabled: this.disabled, readonly: this.readonly }), clearable && !this.disabled && (index.h("button", { class: "input-clear-button", onClick: this.handleClear }, index.h("bcm-icon", { icon: "close-circle", type: "fill", size: iconSizes$1[size], color: "grey-7" }))), type === 'password' && passwordToggle && (index.h("button", { class: "input-password-toggle", onClick: this.changePasswordVisibility }, index.h("bcm-icon", { icon: isPasswordVisible ? "eye-invisible" : "eye", type: "outlined", size: iconSizes$1[size], color: "grey-7" }))), Object.keys(defaultIcons).includes(type) && !noDefaultIcon && (index.h("span", { class: "input-suffix default-icon" }, index.h("bcm-icon", { icon: defaultIcons[type], type: "outlined", size: iconSizes$1[size], color: "grey-7" }))), type === 'number' && (index.h("div", { class: index$1.classnames('caret-container', { 'unit': (unit === null || unit === void 0 ? void 0 : unit.length) > 0 }, { 'disabled': inValid }, { 'disabled': readonly }) }, index.h("span", { class: "caret", onClick: inValid == false && this.incrementNumber }, index.h("bcm-icon", { icon: "caret-up", type: "outlined", color: "grey-7", size: 8 })), index.h("span", { class: "caret", onClick: inValid == false && this.decrementNumber }, index.h("bcm-icon", { icon: "caret-down", type: "outlined", color: "grey-7", size: 8 })))), type !== 'number' && (index.h("span", { class: "input-suffix" }, index.h("slot", { name: "suffix" })))), !noCaption && (index.h("div", { class: "caption-area" }, captionType == "error"
@@ -6343,6 +6743,644 @@ const BcmInput = class {
6343
6743
  };
6344
6744
  BcmInput.style = inputCss;
6345
6745
 
6746
+ class Generate {
6747
+ }
6748
+ Generate.UID = () => Math.random().toString(36).substr(2, 9);
6749
+ Generate.getIconAttrWithStatusType = (status, loading = false) => {
6750
+ if (loading)
6751
+ return { icon: 'loading', color: 'blue-6' };
6752
+ switch (status) {
6753
+ case types.StatusProps.info:
6754
+ return { color: 'blue-6', icon: 'info-circle' };
6755
+ case types.StatusProps.error:
6756
+ return { color: 'red-6', icon: 'close-circle' };
6757
+ case types.StatusProps.warning:
6758
+ return { color: 'warmyellow-6', icon: 'exclamation-circle' };
6759
+ case types.StatusProps.success:
6760
+ return { color: 'green-6', icon: 'check-circle' };
6761
+ }
6762
+ };
6763
+ Generate.createComponent = (element, props) => {
6764
+ let box = document.createElement(element);
6765
+ Object.keys(props).forEach(key => {
6766
+ box[key] = props[key];
6767
+ });
6768
+ document.body.appendChild(box);
6769
+ return box;
6770
+ };
6771
+ Generate.debounceInput = (func, wait, immediate) => {
6772
+ let timeout;
6773
+ return function () {
6774
+ let context = this, args = arguments;
6775
+ let later = function () {
6776
+ timeout = null;
6777
+ if (!immediate)
6778
+ func.apply(context, args);
6779
+ };
6780
+ let callNow = immediate && !timeout;
6781
+ clearTimeout(timeout);
6782
+ timeout = setTimeout(later, wait);
6783
+ if (callNow)
6784
+ func.apply(context, args);
6785
+ };
6786
+ };
6787
+ Generate.flatArray = (arr) => {
6788
+ return arr.reduce((acc, val) => {
6789
+ return acc.concat(Array.isArray(val) ? Generate.flatArray(val) : val);
6790
+ }, []);
6791
+ };
6792
+
6793
+ var Bcm;
6794
+ (function (Bcm) {
6795
+ let HtmlElementType;
6796
+ (function (HtmlElementType) {
6797
+ HtmlElementType["div"] = "div";
6798
+ HtmlElementType["span"] = "span";
6799
+ HtmlElementType["button"] = "button";
6800
+ HtmlElementType["a"] = "a";
6801
+ HtmlElementType["input"] = "input";
6802
+ HtmlElementType["textarea"] = "textarea";
6803
+ HtmlElementType["select"] = "select";
6804
+ HtmlElementType["option"] = "option";
6805
+ HtmlElementType["img"] = "img";
6806
+ HtmlElementType["table"] = "table";
6807
+ HtmlElementType["tr"] = "tr";
6808
+ HtmlElementType["td"] = "td";
6809
+ HtmlElementType["th"] = "th";
6810
+ HtmlElementType["tbody"] = "tbody";
6811
+ HtmlElementType["thead"] = "thead";
6812
+ HtmlElementType["tfoot"] = "tfoot";
6813
+ HtmlElementType["ul"] = "ul";
6814
+ HtmlElementType["li"] = "li";
6815
+ HtmlElementType["form"] = "form";
6816
+ HtmlElementType["label"] = "label";
6817
+ HtmlElementType["main"] = "main";
6818
+ HtmlElementType["header"] = "header";
6819
+ HtmlElementType["footer"] = "footer";
6820
+ HtmlElementType["section"] = "section";
6821
+ HtmlElementType["article"] = "article";
6822
+ HtmlElementType["nav"] = "nav";
6823
+ HtmlElementType["aside"] = "aside";
6824
+ })(HtmlElementType = Bcm.HtmlElementType || (Bcm.HtmlElementType = {}));
6825
+ let Status;
6826
+ (function (Status) {
6827
+ Status["info"] = "info";
6828
+ Status["error"] = "error";
6829
+ Status["warning"] = "warning";
6830
+ Status["success"] = "success";
6831
+ Status["default"] = "default";
6832
+ })(Status = Bcm.Status || (Bcm.Status = {}));
6833
+ let Shape;
6834
+ (function (Shape) {
6835
+ Shape["ellipse"] = "ellipse";
6836
+ Shape["square"] = "square";
6837
+ })(Shape = Bcm.Shape || (Bcm.Shape = {}));
6838
+ let Direction;
6839
+ (function (Direction) {
6840
+ Direction["horizontal"] = "horizontal";
6841
+ Direction["vertical"] = "vertical";
6842
+ })(Direction = Bcm.Direction || (Bcm.Direction = {}));
6843
+ let PreDefinedIconSize;
6844
+ (function (PreDefinedIconSize) {
6845
+ PreDefinedIconSize[PreDefinedIconSize["large"] = 48] = "large";
6846
+ PreDefinedIconSize[PreDefinedIconSize["medium"] = 24] = "medium";
6847
+ PreDefinedIconSize[PreDefinedIconSize["default"] = 16] = "default";
6848
+ PreDefinedIconSize[PreDefinedIconSize["small"] = 12] = "small";
6849
+ PreDefinedIconSize[PreDefinedIconSize["xsmall"] = 8] = "xsmall";
6850
+ })(PreDefinedIconSize = Bcm.PreDefinedIconSize || (Bcm.PreDefinedIconSize = {}));
6851
+ let IconSize;
6852
+ (function (IconSize) {
6853
+ IconSize["small"] = "16";
6854
+ IconSize["medium"] = "20";
6855
+ IconSize["large"] = "24";
6856
+ })(IconSize = Bcm.IconSize || (Bcm.IconSize = {}));
6857
+ let Size;
6858
+ (function (Size) {
6859
+ Size["small"] = "small";
6860
+ Size["medium"] = "medium";
6861
+ Size["large"] = "large";
6862
+ Size["xsmall"] = "xsmall";
6863
+ Size["xlarge"] = "xlarge";
6864
+ Size["xxlarge"] = "xxlarge";
6865
+ Size["xxxlarge"] = "xxxlarge";
6866
+ })(Size = Bcm.Size || (Bcm.Size = {}));
6867
+ let Kind;
6868
+ (function (Kind) {
6869
+ Kind["solid"] = "solid";
6870
+ Kind["ghost"] = "ghost";
6871
+ Kind["link"] = "link";
6872
+ Kind["solid-link"] = "solid-link";
6873
+ Kind["ghost-link"] = "ghost-link";
6874
+ })(Kind = Bcm.Kind || (Bcm.Kind = {}));
6875
+ let ButtonType;
6876
+ (function (ButtonType) {
6877
+ ButtonType["button"] = "button";
6878
+ ButtonType["reset"] = "reset";
6879
+ ButtonType["submit"] = "submit";
6880
+ })(ButtonType = Bcm.ButtonType || (Bcm.ButtonType = {}));
6881
+ let IconPosition;
6882
+ (function (IconPosition) {
6883
+ IconPosition["prefix"] = "prefix";
6884
+ IconPosition["suffix"] = "suffix";
6885
+ })(IconPosition = Bcm.IconPosition || (Bcm.IconPosition = {}));
6886
+ let TagType;
6887
+ (function (TagType) {
6888
+ TagType["basic"] = "basic";
6889
+ TagType["add"] = "add";
6890
+ TagType["checkable"] = "checkable";
6891
+ TagType["dissmisable"] = "dissmisable";
6892
+ })(TagType = Bcm.TagType || (Bcm.TagType = {}));
6893
+ let FontSize;
6894
+ (function (FontSize) {
6895
+ FontSize["size-1"] = "size-1";
6896
+ FontSize["size-2"] = "size-2";
6897
+ FontSize["size-3"] = "size-3";
6898
+ FontSize["size-4"] = "size-4";
6899
+ FontSize["size-5"] = "size-5";
6900
+ FontSize["size-6"] = "size-6";
6901
+ FontSize["size-7"] = "size-7";
6902
+ FontSize["size-8"] = "size-8";
6903
+ FontSize["size-9"] = "size-9";
6904
+ })(FontSize = Bcm.FontSize || (Bcm.FontSize = {}));
6905
+ let FontSizeValue;
6906
+ (function (FontSizeValue) {
6907
+ FontSizeValue[FontSizeValue["size-1"] = 12] = "size-1";
6908
+ FontSizeValue[FontSizeValue["size-2"] = 14] = "size-2";
6909
+ FontSizeValue[FontSizeValue["size-3"] = 16] = "size-3";
6910
+ FontSizeValue[FontSizeValue["size-4"] = 20] = "size-4";
6911
+ FontSizeValue[FontSizeValue["size-5"] = 24] = "size-5";
6912
+ FontSizeValue[FontSizeValue["size-6"] = 30] = "size-6";
6913
+ FontSizeValue[FontSizeValue["size-7"] = 38] = "size-7";
6914
+ FontSizeValue[FontSizeValue["size-8"] = 46] = "size-8";
6915
+ FontSizeValue[FontSizeValue["size-9"] = 56] = "size-9";
6916
+ })(FontSizeValue = Bcm.FontSizeValue || (Bcm.FontSizeValue = {}));
6917
+ let FontWeight;
6918
+ (function (FontWeight) {
6919
+ FontWeight["thin"] = "thin";
6920
+ FontWeight["light"] = "light";
6921
+ FontWeight["regular"] = "regular";
6922
+ FontWeight["medium"] = "medium";
6923
+ FontWeight["bold"] = "bold";
6924
+ FontWeight["black"] = "black";
6925
+ })(FontWeight = Bcm.FontWeight || (Bcm.FontWeight = {}));
6926
+ let ColorPalette;
6927
+ (function (ColorPalette) {
6928
+ ColorPalette["default"] = "default";
6929
+ ColorPalette["black"] = "black";
6930
+ ColorPalette["white"] = "white";
6931
+ ColorPalette["prime-blue"] = "prime-blue";
6932
+ ColorPalette["prime-blue-1"] = "prime-blue-1";
6933
+ ColorPalette["prime-blue-2"] = "prime-blue-2";
6934
+ ColorPalette["prime-blue-3"] = "prime-blue-3";
6935
+ ColorPalette["prime-blue-4"] = "prime-blue-4";
6936
+ ColorPalette["prime-blue-5"] = "prime-blue-5";
6937
+ ColorPalette["prime-blue-6"] = "prime-blue-6";
6938
+ ColorPalette["prime-blue-7"] = "prime-blue-7";
6939
+ ColorPalette["prime-blue-8"] = "prime-blue-8";
6940
+ ColorPalette["prime-blue-9"] = "prime-blue-9";
6941
+ ColorPalette["prime-blue-10"] = "prime-blue-10";
6942
+ ColorPalette["grey"] = "grey";
6943
+ ColorPalette["grey-1"] = "grey-1";
6944
+ ColorPalette["grey-2"] = "grey-2";
6945
+ ColorPalette["grey-3"] = "grey-3";
6946
+ ColorPalette["grey-4"] = "grey-4";
6947
+ ColorPalette["grey-5"] = "grey-5";
6948
+ ColorPalette["grey-6"] = "grey-6";
6949
+ ColorPalette["grey-7"] = "grey-7";
6950
+ ColorPalette["grey-8"] = "grey-8";
6951
+ ColorPalette["grey-9"] = "grey-9";
6952
+ ColorPalette["grey-10"] = "grey-10";
6953
+ ColorPalette["blue"] = "blue";
6954
+ ColorPalette["blue-1"] = "blue-1";
6955
+ ColorPalette["blue-2"] = "blue-2";
6956
+ ColorPalette["blue-3"] = "blue-3";
6957
+ ColorPalette["blue-4"] = "blue-4";
6958
+ ColorPalette["blue-5"] = "blue-5";
6959
+ ColorPalette["blue-6"] = "blue-6";
6960
+ ColorPalette["blue-7"] = "blue-7";
6961
+ ColorPalette["blue-8"] = "blue-8";
6962
+ ColorPalette["blue-9"] = "blue-9";
6963
+ ColorPalette["blue-10"] = "blue-10";
6964
+ ColorPalette["warmyellow"] = "warmyellow";
6965
+ ColorPalette["warmyellow-1"] = "warmyellow-1";
6966
+ ColorPalette["warmyellow-2"] = "warmyellow-2";
6967
+ ColorPalette["warmyellow-3"] = "warmyellow-3";
6968
+ ColorPalette["warmyellow-4"] = "warmyellow-4";
6969
+ ColorPalette["warmyellow-5"] = "warmyellow-5";
6970
+ ColorPalette["warmyellow-6"] = "warmyellow-6";
6971
+ ColorPalette["warmyellow-7"] = "warmyellow-7";
6972
+ ColorPalette["warmyellow-8"] = "warmyellow-8";
6973
+ ColorPalette["warmyellow-9"] = "warmyellow-9";
6974
+ ColorPalette["warmyellow-10"] = "warmyellow-10";
6975
+ ColorPalette["yellow"] = "yellow";
6976
+ ColorPalette["yellow-1"] = "yellow-1";
6977
+ ColorPalette["yellow-2"] = "yellow-2";
6978
+ ColorPalette["yellow-3"] = "yellow-3";
6979
+ ColorPalette["yellow-4"] = "yellow-4";
6980
+ ColorPalette["yellow-5"] = "yellow-5";
6981
+ ColorPalette["yellow-6"] = "yellow-6";
6982
+ ColorPalette["yellow-7"] = "yellow-7";
6983
+ ColorPalette["yellow-8"] = "yellow-8";
6984
+ ColorPalette["yellow-9"] = "yellow-9";
6985
+ ColorPalette["yellow-10"] = "yellow-10";
6986
+ ColorPalette["limegreen"] = "limegreen";
6987
+ ColorPalette["limegreen-1"] = "limegreen-1";
6988
+ ColorPalette["limegreen-2"] = "limegreen-2";
6989
+ ColorPalette["limegreen-3"] = "limegreen-3";
6990
+ ColorPalette["limegreen-4"] = "limegreen-4";
6991
+ ColorPalette["limegreen-5"] = "limegreen-5";
6992
+ ColorPalette["limegreen-6"] = "limegreen-6";
6993
+ ColorPalette["limegreen-7"] = "limegreen-7";
6994
+ ColorPalette["limegreen-8"] = "limegreen-8";
6995
+ ColorPalette["limegreen-9"] = "limegreen-9";
6996
+ ColorPalette["limegreen-10"] = "limegreen-10";
6997
+ ColorPalette["red"] = "red";
6998
+ ColorPalette["red-1"] = "red-1";
6999
+ ColorPalette["red-2"] = "red-2";
7000
+ ColorPalette["red-3"] = "red-3";
7001
+ ColorPalette["red-4"] = "red-4";
7002
+ ColorPalette["red-5"] = "red-5";
7003
+ ColorPalette["red-6"] = "red-6";
7004
+ ColorPalette["red-7"] = "red-7";
7005
+ ColorPalette["red-8"] = "red-8";
7006
+ ColorPalette["red-9"] = "red-9";
7007
+ ColorPalette["red-10"] = "red-10";
7008
+ ColorPalette["darkorange"] = "darkorange";
7009
+ ColorPalette["darkorange-1"] = "darkorange-1";
7010
+ ColorPalette["darkorange-2"] = "darkorange-2";
7011
+ ColorPalette["darkorange-3"] = "darkorange-3";
7012
+ ColorPalette["darkorange-4"] = "darkorange-4";
7013
+ ColorPalette["darkorange-5"] = "darkorange-5";
7014
+ ColorPalette["darkorange-6"] = "darkorange-6";
7015
+ ColorPalette["darkorange-7"] = "darkorange-7";
7016
+ ColorPalette["darkorange-8"] = "darkorange-8";
7017
+ ColorPalette["darkorange-9"] = "darkorange-9";
7018
+ ColorPalette["darkorange-10"] = "darkorange-10";
7019
+ ColorPalette["orange"] = "orange";
7020
+ ColorPalette["orange-1"] = "orange-1";
7021
+ ColorPalette["orange-2"] = "orange-2";
7022
+ ColorPalette["orange-3"] = "orange-3";
7023
+ ColorPalette["orange-4"] = "orange-4";
7024
+ ColorPalette["orange-5"] = "orange-5";
7025
+ ColorPalette["orange-6"] = "orange-6";
7026
+ ColorPalette["orange-7"] = "orange-7";
7027
+ ColorPalette["orange-8"] = "orange-8";
7028
+ ColorPalette["orange-9"] = "orange-9";
7029
+ ColorPalette["orange-10"] = "orange-10";
7030
+ ColorPalette["green"] = "green";
7031
+ ColorPalette["green-1"] = "green-1";
7032
+ ColorPalette["green-2"] = "green-2";
7033
+ ColorPalette["green-3"] = "green-3";
7034
+ ColorPalette["green-4"] = "green-4";
7035
+ ColorPalette["green-5"] = "green-5";
7036
+ ColorPalette["green-6"] = "green-6";
7037
+ ColorPalette["green-7"] = "green-7";
7038
+ ColorPalette["green-8"] = "green-8";
7039
+ ColorPalette["green-9"] = "green-9";
7040
+ ColorPalette["green-10"] = "green-10";
7041
+ ColorPalette["turquosie"] = "turquosie";
7042
+ ColorPalette["turquosie-1"] = "turquosie-1";
7043
+ ColorPalette["turquosie-2"] = "turquosie-2";
7044
+ ColorPalette["turquosie-3"] = "turquosie-3";
7045
+ ColorPalette["turquosie-4"] = "turquosie-4";
7046
+ ColorPalette["turquosie-5"] = "turquosie-5";
7047
+ ColorPalette["turquosie-6"] = "turquosie-6";
7048
+ ColorPalette["turquosie-7"] = "turquosie-7";
7049
+ ColorPalette["turquosie-8"] = "turquosie-8";
7050
+ ColorPalette["turquosie-9"] = "turquosie-9";
7051
+ ColorPalette["turquosie-10"] = "turquosie-10";
7052
+ ColorPalette["cobaltblue"] = "cobaltblue";
7053
+ ColorPalette["cobaltblue-1"] = "cobaltblue-1";
7054
+ ColorPalette["cobaltblue-2"] = "cobaltblue-2";
7055
+ ColorPalette["cobaltblue-3"] = "cobaltblue-3";
7056
+ ColorPalette["cobaltblue-4"] = "cobaltblue-4";
7057
+ ColorPalette["cobaltblue-5"] = "cobaltblue-5";
7058
+ ColorPalette["cobaltblue-6"] = "cobaltblue-6";
7059
+ ColorPalette["cobaltblue-7"] = "cobaltblue-7";
7060
+ ColorPalette["cobaltblue-8"] = "cobaltblue-8";
7061
+ ColorPalette["cobaltblue-9"] = "cobaltblue-9";
7062
+ ColorPalette["cobaltblue-10"] = "cobaltblue-10";
7063
+ ColorPalette["magenta"] = "magenta";
7064
+ ColorPalette["magenta-1"] = "magenta-1";
7065
+ ColorPalette["magenta-2"] = "magenta-2";
7066
+ ColorPalette["magenta-3"] = "magenta-3";
7067
+ ColorPalette["magenta-4"] = "magenta-4";
7068
+ ColorPalette["magenta-5"] = "magenta-5";
7069
+ ColorPalette["magenta-6"] = "magenta-6";
7070
+ ColorPalette["magenta-7"] = "magenta-7";
7071
+ ColorPalette["magenta-8"] = "magenta-8";
7072
+ ColorPalette["magenta-9"] = "magenta-9";
7073
+ ColorPalette["magenta-10"] = "magenta-10";
7074
+ ColorPalette["purple"] = "purple";
7075
+ ColorPalette["purple-1"] = "purple-1";
7076
+ ColorPalette["purple-2"] = "purple-2";
7077
+ ColorPalette["purple-3"] = "purple-3";
7078
+ ColorPalette["purple-4"] = "purple-4";
7079
+ ColorPalette["purple-5"] = "purple-5";
7080
+ ColorPalette["purple-6"] = "purple-6";
7081
+ ColorPalette["purple-7"] = "purple-7";
7082
+ ColorPalette["purple-8"] = "purple-8";
7083
+ ColorPalette["purple-9"] = "purple-9";
7084
+ ColorPalette["purple-10"] = "purple-10";
7085
+ ColorPalette["bc-red"] = "bc-red";
7086
+ ColorPalette["bc-red-1"] = "bc-red-1";
7087
+ ColorPalette["bc-red-2"] = "bc-red-2";
7088
+ ColorPalette["bc-red-3"] = "bc-red-3";
7089
+ ColorPalette["bc-red-4"] = "bc-red-4";
7090
+ ColorPalette["bc-red-5"] = "bc-red-5";
7091
+ ColorPalette["bc-red-6"] = "bc-red-6";
7092
+ ColorPalette["bc-red-7"] = "bc-red-7";
7093
+ ColorPalette["bc-red-8"] = "bc-red-8";
7094
+ ColorPalette["bc-red-9"] = "bc-red-9";
7095
+ ColorPalette["bc-blue"] = "bc-blue";
7096
+ ColorPalette["bc-blue-1"] = "bc-blue-1";
7097
+ ColorPalette["bc-blue-2"] = "bc-blue-2";
7098
+ ColorPalette["bc-blue-3"] = "bc-blue-3";
7099
+ ColorPalette["bc-blue-4"] = "bc-blue-4";
7100
+ ColorPalette["bc-blue-5"] = "bc-blue-5";
7101
+ ColorPalette["bc-blue-6"] = "bc-blue-6";
7102
+ ColorPalette["bc-blue-7"] = "bc-blue-7";
7103
+ ColorPalette["bc-blue-8"] = "bc-blue-8";
7104
+ ColorPalette["bc-blue-9"] = "bc-blue-9";
7105
+ ColorPalette["bc-green"] = "bc-green";
7106
+ ColorPalette["bc-green-1"] = "bc-green-1";
7107
+ ColorPalette["bc-green-2"] = "bc-green-2";
7108
+ ColorPalette["bc-green-3"] = "bc-green-3";
7109
+ ColorPalette["bc-green-4"] = "bc-green-4";
7110
+ ColorPalette["bc-green-5"] = "bc-green-5";
7111
+ ColorPalette["bc-green-6"] = "bc-green-6";
7112
+ ColorPalette["bc-green-7"] = "bc-green-7";
7113
+ ColorPalette["bc-green-8"] = "bc-green-8";
7114
+ ColorPalette["bc-green-9"] = "bc-green-9";
7115
+ ColorPalette["bc-orange"] = "bc-orange";
7116
+ ColorPalette["bc-orange-1"] = "bc-orange-1";
7117
+ ColorPalette["bc-orange-2"] = "bc-orange-2";
7118
+ ColorPalette["bc-orange-3"] = "bc-orange-3";
7119
+ ColorPalette["bc-orange-4"] = "bc-orange-4";
7120
+ ColorPalette["bc-orange-5"] = "bc-orange-5";
7121
+ ColorPalette["bc-orange-6"] = "bc-orange-6";
7122
+ ColorPalette["bc-orange-7"] = "bc-orange-7";
7123
+ ColorPalette["bc-orange-8"] = "bc-orange-8";
7124
+ ColorPalette["bc-orange-9"] = "bc-orange-9";
7125
+ })(ColorPalette = Bcm.ColorPalette || (Bcm.ColorPalette = {}));
7126
+ let InputType;
7127
+ (function (InputType) {
7128
+ InputType["text"] = "text";
7129
+ InputType["number"] = "number";
7130
+ InputType["email"] = "email";
7131
+ InputType["password"] = "password";
7132
+ InputType["url"] = "url";
7133
+ InputType["search"] = "search";
7134
+ InputType["tel"] = "tel";
7135
+ InputType["hidden"] = "hidden";
7136
+ })(InputType = Bcm.InputType || (Bcm.InputType = {}));
7137
+ let KeyCode;
7138
+ (function (KeyCode) {
7139
+ KeyCode[KeyCode["backspace"] = 8] = "backspace";
7140
+ KeyCode[KeyCode["tab"] = 9] = "tab";
7141
+ KeyCode[KeyCode["enter"] = 13] = "enter";
7142
+ KeyCode[KeyCode["shift"] = 16] = "shift";
7143
+ KeyCode[KeyCode["ctrl"] = 17] = "ctrl";
7144
+ KeyCode[KeyCode["alt"] = 18] = "alt";
7145
+ KeyCode[KeyCode["pause"] = 19] = "pause";
7146
+ KeyCode[KeyCode["capslock"] = 20] = "capslock";
7147
+ KeyCode[KeyCode["escape"] = 27] = "escape";
7148
+ KeyCode[KeyCode["space"] = 32] = "space";
7149
+ KeyCode[KeyCode["pageup"] = 33] = "pageup";
7150
+ KeyCode[KeyCode["pagedown"] = 34] = "pagedown";
7151
+ KeyCode[KeyCode["end"] = 35] = "end";
7152
+ KeyCode[KeyCode["home"] = 36] = "home";
7153
+ KeyCode[KeyCode["left"] = 37] = "left";
7154
+ KeyCode[KeyCode["up"] = 38] = "up";
7155
+ KeyCode[KeyCode["right"] = 39] = "right";
7156
+ KeyCode[KeyCode["down"] = 40] = "down";
7157
+ KeyCode[KeyCode["insert"] = 45] = "insert";
7158
+ KeyCode[KeyCode["delete"] = 46] = "delete";
7159
+ KeyCode[KeyCode["f1"] = 112] = "f1";
7160
+ KeyCode[KeyCode["f2"] = 113] = "f2";
7161
+ KeyCode[KeyCode["f3"] = 114] = "f3";
7162
+ KeyCode[KeyCode["f4"] = 115] = "f4";
7163
+ KeyCode[KeyCode["f5"] = 116] = "f5";
7164
+ KeyCode[KeyCode["f6"] = 117] = "f6";
7165
+ KeyCode[KeyCode["f7"] = 118] = "f7";
7166
+ KeyCode[KeyCode["f8"] = 119] = "f8";
7167
+ KeyCode[KeyCode["f9"] = 120] = "f9";
7168
+ KeyCode[KeyCode["f10"] = 121] = "f10";
7169
+ KeyCode[KeyCode["f11"] = 122] = "f11";
7170
+ KeyCode[KeyCode["f12"] = 123] = "f12";
7171
+ KeyCode[KeyCode["numlock"] = 144] = "numlock";
7172
+ KeyCode[KeyCode["scrolllock"] = 145] = "scrolllock";
7173
+ KeyCode[KeyCode["semicolon"] = 186] = "semicolon";
7174
+ KeyCode[KeyCode["equal"] = 187] = "equal";
7175
+ KeyCode[KeyCode["comma"] = 188] = "comma";
7176
+ KeyCode[KeyCode["dash"] = 189] = "dash";
7177
+ KeyCode[KeyCode["period"] = 190] = "period";
7178
+ KeyCode[KeyCode["slash"] = 191] = "slash";
7179
+ KeyCode[KeyCode["backslash"] = 220] = "backslash";
7180
+ KeyCode[KeyCode["bracketleft"] = 219] = "bracketleft";
7181
+ KeyCode[KeyCode["bracketright"] = 221] = "bracketright";
7182
+ KeyCode[KeyCode["quote"] = 222] = "quote";
7183
+ KeyCode[KeyCode["backtick"] = 192] = "backtick";
7184
+ KeyCode[KeyCode["a"] = 65] = "a";
7185
+ })(KeyCode = Bcm.KeyCode || (Bcm.KeyCode = {}));
7186
+ Bcm.FormErrorMessages = {
7187
+ 'email': 'Please enter a valid email address',
7188
+ 'password': 'Please enter a valid password',
7189
+ 'url': 'Please enter a valid URL',
7190
+ 'phone': 'Please enter a valid phone number',
7191
+ 'search': 'Please enter a valid search term',
7192
+ 'number': 'Please enter a valid number',
7193
+ 'text': 'Please enter a valid text',
7194
+ 'required': 'This field is required',
7195
+ 'minlength': 'This field must be at least {0} characters long',
7196
+ 'maxlength': 'This field must be at most {0} characters long',
7197
+ 'min': 'This field must be at least {0}',
7198
+ 'max': 'This field must be at most {0}',
7199
+ 'between': 'This field must be between {0} and {1}',
7200
+ 'pattern': 'This field is invalid',
7201
+ 'date': 'Please enter a valid date',
7202
+ 'time': 'Please enter a valid time',
7203
+ 'datetime': 'Please enter a valid date and time',
7204
+ 'datetime-local': 'Please enter a valid date and time',
7205
+ 'month': 'Please enter a valid month',
7206
+ 'week': 'Please enter a valid week',
7207
+ 'color': 'Please enter a valid color',
7208
+ 'file': 'Please enter a valid file',
7209
+ 'range': 'Please enter a valid range',
7210
+ 'radio': 'Please select a valid option',
7211
+ 'checkbox': 'Please select a valid option',
7212
+ 'select': 'Please select a valid option',
7213
+ 'multiple': 'Please select a valid option',
7214
+ };
7215
+ let IndeterminateType;
7216
+ (function (IndeterminateType) {
7217
+ IndeterminateType["uncheck"] = "uncheck";
7218
+ IndeterminateType["indeterminate"] = "indeterminate";
7219
+ IndeterminateType["determinate"] = "determinate"; // true
7220
+ })(IndeterminateType = Bcm.IndeterminateType || (Bcm.IndeterminateType = {}));
7221
+ let Placement;
7222
+ (function (Placement) {
7223
+ Placement["top"] = "top";
7224
+ Placement["top-start"] = "top-start";
7225
+ Placement["top-end"] = "top-end";
7226
+ Placement["bottom"] = "bottom";
7227
+ Placement["bottom-start"] = "bottom-start";
7228
+ Placement["bottom-end"] = "bottom-end";
7229
+ Placement["left"] = "left";
7230
+ Placement["left-start"] = "left-start";
7231
+ Placement["left-end"] = "left-end";
7232
+ Placement["right"] = "right";
7233
+ Placement["right-start"] = "right-start";
7234
+ Placement["right-end"] = "right-end";
7235
+ })(Placement = Bcm.Placement || (Bcm.Placement = {}));
7236
+ let TriggerType;
7237
+ (function (TriggerType) {
7238
+ TriggerType["hover"] = "hover";
7239
+ TriggerType["click"] = "click";
7240
+ TriggerType["focus"] = "focus";
7241
+ })(TriggerType = Bcm.TriggerType || (Bcm.TriggerType = {}));
7242
+ })(Bcm || (Bcm = {}));
7243
+ const Bcm$1 = Bcm;
7244
+
7245
+ class StringHelper {
7246
+ }
7247
+ StringHelper.lowercase = (str) => str.toLowerCase();
7248
+ StringHelper.uppercase = (str) => str.toUpperCase();
7249
+ StringHelper.capitalize = (str) => str.charAt(0).toUpperCase() + str.slice(1);
7250
+ StringHelper.camelCase = (str) => str.replace(/\s(.)/g, function ($1) { return $1.toUpperCase(); }).replace(/\s/g, '');
7251
+ StringHelper.kebabCase = (str) => str.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();
7252
+ StringHelper.snakeCase = (str) => str.replace(/([a-z])([A-Z])/g, '$1_$2').toLowerCase();
7253
+ StringHelper.titleCase = (str) => str.replace(/\w\S*/g, function (txt) { return txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase(); });
7254
+ StringHelper.trim = (str) => str.trim();
7255
+ StringHelper.trimLeft = (str) => str.trimLeft();
7256
+ StringHelper.trimRight = (str) => str.trimRight();
7257
+ StringHelper.trimAll = (str) => str.trim().replace(/\s+/g, ' ');
7258
+ StringHelper.replace = (str, search, replace) => str.replace(search, replace);
7259
+ StringHelper.remove = (str, search) => str.replace(search, '');
7260
+ StringHelper.isNullOrEmpty = (str) => str === null || str === undefined || str === '';
7261
+ StringHelper.localizationMessage = (str, args) => str.replace(/{(\d+)}/g, (match, number) => typeof args[number] != 'undefined' ? args[number] : match);
7262
+ StringHelper.getMessage = (type, args) => StringHelper.localizationMessage(Bcm$1.FormErrorMessages[type], args);
7263
+ StringHelper.split = (str, separator) => str.split(separator);
7264
+ StringHelper.textContains = (str, search) => str.indexOf(search) !== -1;
7265
+
7266
+ const SlotTemplate = ({ value, className, name }) => {
7267
+ return StringHelper.isNullOrEmpty(value) ? index.h("span", { class: className },
7268
+ index.h("slot", Object.assign({}, (name && { name: name })))) : index.h("span", { class: className }, value);
7269
+ };
7270
+
7271
+ const LabelTemplate = ({ required, value, size, form, htmlFor, type }) => {
7272
+ size = size || Bcm$1.FontSize['size-1'];
7273
+ type = type || Bcm$1.Status.default;
7274
+ const labelClasses = index$1.classnames('bcm-label__text', size, {
7275
+ 'bcm-label__text-error': type === Bcm$1.Status.error,
7276
+ });
7277
+ return (index.h("label", { form: form, htmlFor: htmlFor, class: labelClasses },
7278
+ " ",
7279
+ index.h(SlotTemplate, { value: value }),
7280
+ " ",
7281
+ required && ('*')));
7282
+ };
7283
+
7284
+ const labelCss = "@import url(\"https://fonts.googleapis.com/css?family=Roboto:400,500\");.size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.bcm-label{display:flex;align-items:center;grid-gap:2px}.bcm-label__text{display:inline-block;color:var(--bcm-color-grey-9);margin-bottom:4px}.bcm-label__text-error{color:var(--bcm-color-red-6)}";
7285
+
7286
+ const BcmLabel = class {
7287
+ constructor(hostRef) {
7288
+ index.registerInstance(this, hostRef);
7289
+ /** Props **/
7290
+ this._id = Generate.UID();
7291
+ this.required = false;
7292
+ this.size = Bcm$1.FontSize['size-1'];
7293
+ this.hidden = false;
7294
+ this.type = Bcm$1.Status.default;
7295
+ }
7296
+ render() {
7297
+ const { required, value, size, form, htmlFor, hidden, type, tooltip } = this;
7298
+ const hostClasses = index$1.classnames('bcm-label', { hidden });
7299
+ const Label = (index.h(LabelTemplate, { form: form, htmlFor: htmlFor, value: value, size: size, type: type, required: required }));
7300
+ return (index.h(index.Host, null, index.h("div", { class: hostClasses }, Label, tooltip && (index.h("bcm-tooltip", { message: tooltip, placement: 'top', trigger: 'hover' }, index.h("bcm-icon", { color: "grey-8", icon: "question-circle", type: "fill" }))))));
7301
+ }
7302
+ get el() { return index.getElement(this); }
7303
+ };
7304
+ BcmLabel.style = labelCss;
7305
+
7306
+ const switchCss = "@import url(\"https://fonts.googleapis.com/css?family=Roboto:400,500\");.size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}:host{display:inline-block;margin:0 0 8px 0}:host(.hidden){display:none}*{box-sizing:border-box}.wrapper{display:inline-flex;padding-top:0px;padding-bottom:5px}.wrapper .active-text{color:var(--bcm-color-prime-blue-6);margin-left:4px}.wrapper .inactive-text{color:var(--bcm-color-grey-6);margin-right:4px}.container{display:flex;justify-content:space-between;align-items:center;border-radius:16px;background-color:var(--bcm-color-grey-6);position:relative}.container .handle{padding:1px;position:absolute;background-color:var(--bcm-color-grey-1);display:inline-flex;align-items:center;justify-content:center;border-radius:16px;transition:all 0.2s ease-in-out;box-shadow:0px 2px 2px rgba(0, 0, 0, 0.1), 0px 3px 1px rgba(0, 0, 0, 0.05), 0px 1px 5px rgba(0, 0, 0, 0.1)}.container .icon-active{opacity:0}.container .icon-inactive{opacity:1}.container.small{width:28px;min-width:28px;height:16px;padding:4px}.container.small .handle{width:12px;height:12px;left:4px}.container.small.switch-checked .handle{left:12px}.container.small:active:not(.disabled) .handle{width:16px}.container.small:active.switch-checked:not(.disabled) .handle{left:8px}.container.small .spinner{box-sizing:border-box;display:inline-flex;width:9px;height:9px;border-radius:50%;border:1px solid var(--bcm-color-grey-1);border-top-color:var(--bcm-color-grey-6);animation:spinner 1.5s linear infinite}.container.medium{width:44px;min-width:44px;height:22px;padding:4px}.container.medium .handle{width:16px;height:16px;left:4px}.container.medium.switch-checked .handle{left:24px}.container.medium:active:not(.disabled) .handle{width:22px}.container.medium:active.switch-checked:not(.disabled) .handle{left:18px}.container.medium .spinner{box-sizing:border-box;display:inline-flex;width:13px;height:13px;border-radius:50%;border:1px solid var(--bcm-color-grey-1);border-top-color:var(--bcm-color-grey-6);animation:spinner 1.5s linear infinite}.container.switch-checked{background-color:var(--bcm-color-prime-blue-6)}.container.switch-checked .icon-active{color:var(--bcm-color-grey-1);opacity:1}.container.switch-checked .icon-inactive{opacity:0}.container.switch-checked .spinner{border-top-color:var(--bcm-color-prime-blue-6)}.wrapper.disabled{opacity:40%;cursor:not-allowed}@keyframes spinner{to{transform:rotate(360deg)}}input[type=checkbox]{position:absolute;width:0;height:0;opacity:0}.label{display:flex;flex-direction:column;color:var(--bcm-color-grey-9);padding-right:4px;margin-right:8px;margin-bottom:8px}.caption-area{min-height:20px}.input-caption{display:block}:host(.error) .label{color:var(--bcm-color-red-6) !important}.caption-default{color:#8C8C8C}.caption-primary{color:#4293CF}.caption-success{color:#52C41A}.caption-warning{color:#FA8C16}.caption-error{color:#F5222D}";
7307
+
7308
+ const BcmSwitch = class {
7309
+ constructor(hostRef) {
7310
+ index.registerInstance(this, hostRef);
7311
+ this.change = index.createEvent(this, "bcm-change", 7);
7312
+ this.focus = index.createEvent(this, "bcm-focus", 7);
7313
+ this.blur = index.createEvent(this, "bcm-blur", 7);
7314
+ this.checked = false;
7315
+ this.size = 'medium';
7316
+ this.pending = false;
7317
+ this.disabled = false;
7318
+ this.hidden = false;
7319
+ this.value = '';
7320
+ this.label = null;
7321
+ this.required = false;
7322
+ this.noCaption = false;
7323
+ this.captionType = 'default';
7324
+ }
7325
+ connectedCallback() {
7326
+ this.captionCache = this.caption;
7327
+ this.captionTypeCache = this.captionType;
7328
+ }
7329
+ handleClick() {
7330
+ this.checked = this.input.checked;
7331
+ this.value = this.checked;
7332
+ this.change.emit(this.checked);
7333
+ }
7334
+ componentDidLoad() {
7335
+ this.value = this.checked;
7336
+ }
7337
+ handleFocus() {
7338
+ this.focus.emit();
7339
+ }
7340
+ handleBlur() {
7341
+ this.blur.emit();
7342
+ }
7343
+ componentWillRender() {
7344
+ if (this.pending) {
7345
+ this.disabled = true;
7346
+ }
7347
+ }
7348
+ async setClear() {
7349
+ if (this.input.checked == true) {
7350
+ this.input.checked = false;
7351
+ this.checked = this.input.checked;
7352
+ this.value = this.checked;
7353
+ this.change.emit(this.checked);
7354
+ }
7355
+ }
7356
+ async resetCaption() {
7357
+ this.caption = this.captionCache;
7358
+ this.captionType = this.captionTypeCache;
7359
+ this.captionError = null;
7360
+ }
7361
+ render() {
7362
+ const { checked, size, activeIcon, inactiveIcon, activeText, inactiveText, pending, disabled, label, required, noCaption, captionType, captionError, caption } = this;
7363
+ const classes = index$1.classnames('container', size, {
7364
+ 'switch-checked': checked,
7365
+ 'disabled': disabled
7366
+ });
7367
+ const wrapperClass = index$1.classnames('wrapper', {
7368
+ 'checked': checked,
7369
+ 'disabled': disabled
7370
+ });
7371
+ const captionClasses = index$1.classnames('size-1', 'input-caption', 'caption-' + captionType);
7372
+ const isPermitted = (condition) => {
7373
+ return (condition && size === 'medium');
7374
+ };
7375
+ const isMedium = size === 'medium';
7376
+ const hostClasses = index$1.classnames('bcm-switch', this.hidden ? 'hidden' : null);
7377
+ return (index.h(index.Host, { class: hostClasses }, label && index.h("div", null, index.h("bcm-label", { tooltip: this.tooltip, type: captionType, value: label, required: required })), index.h("label", { class: wrapperClass }, isPermitted(inactiveText) && index.h("span", { class: "inactive-text size-1" }, inactiveText), index.h("div", { class: classes }, isMedium && index.h("bcm-icon", { icon: activeIcon, size: 14, class: "icon-active" }), index.h("span", { class: "handle" }, pending && index.h("span", { class: "spinner" })), isMedium && index.h("bcm-icon", { icon: inactiveIcon, size: 14, class: "icon-inactive" })), index.h("input", { onClick: () => this.handleClick(), onFocus: () => this.handleFocus(), onBlur: () => this.handleBlur(), ref: el => (this.input = el), checked: checked, type: "checkbox", class: "switch", disabled: disabled }), isPermitted(activeText) && index.h("span", { class: "active-text size-1" }, activeText)), !noCaption && (index.h("div", { class: "caption-area" }, captionType == "error"
7378
+ ? index.h("span", { class: captionClasses }, " ", captionError, " ")
7379
+ : caption && index.h("span", { class: captionClasses }, " ", caption, " ")))));
7380
+ }
7381
+ };
7382
+ BcmSwitch.style = switchCss;
7383
+
6346
7384
  const textareaCss = "@import url(\"https://fonts.googleapis.com/css?family=Roboto:400,500\");.size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}:host{display:inline-block;width:100%;margin:0 0 8px 0}:host(.hidden){display:none}.textarea-wrapper{width:256px}.textarea-wrapper.full-width{width:100%}.textarea-wrapper:hover .clear-button{opacity:1}.textarea-container{position:relative;width:100%;border:1px solid var(--bcm-color-grey-5);border-radius:2px}.textarea-container.empty .clear-button{display:none}.textarea-container.focused:not(.disabled){outline:none;border-color:var(--bcm-color-prime-blue-5);box-shadow:0px 0px 4px var(--bcm-color-prime-blue-6)}.textarea-container:hover:not(:disabled){border-color:var(--bcm-color-prime-blue-6)}.textarea-container textarea{resize:vertical;display:flex;flex:1 1 auto;align-items:center;color:var(--bcm-color-grey-8);width:100%;background-color:var(--bcm-color-grey-1);border:none;border-radius:2px;box-shadow:none;font-family:\"Roboto\", sans-serif;-webkit-appearance:none;box-sizing:border-box}.textarea-container textarea::-webkit-search-decoration,.textarea-container textarea::-webkit-search-cancel-button,.textarea-container textarea::-webkit-search-results-button,.textarea-container textarea::-webkit-search-results-decoration{-webkit-appearance:none}.textarea-container textarea::placeholder{color:var(--bcm-color-grey-6);user-select:none}.textarea-container textarea:focus:not(:disabled){outline:none;border-color:none;box-shadow:none}.textarea-container textarea:hover:not(:disabled){border-color:none}.textarea-container textarea:disabled{background-color:var(--bcm-color-grey-3);cursor:not-allowed}.textarea-container textarea.clearable{padding-right:32px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.label{display:flex;flex-direction:column;color:var(--bcm-color-grey-9);margin-bottom:4px}.caption-area{min-height:20px;display:flex;flex-direction:row;justify-content:space-between}.input-caption{display:block}.clear-button{position:absolute;opacity:0;right:10px;top:7px;display:inline-flex;align-items:center;border:none;background:none;padding:0;cursor:pointer}.clear-button:focus{outline:none}.textarea-footer{display:flex;justify-content:space-between;margin-bottom:8px;min-height:20px}.textarea-footer .count{color:var(--bcm-color-grey-7);margin-left:4px}.textarea-footer .count:only-child{margin-left:auto}.size-large{padding:7px 12px;min-height:38px}.size-large~.clear-button{top:12px}.size-medium{padding:4px 12px;min-height:30px}.size-medium~.clear-button{top:7px}.size-small{padding:0px 12px;min-height:20px}.size-small~.clear-button{top:2px}.caption-default{color:#8C8C8C}.caption-primary{color:#4293CF}.caption-success{color:#52C41A}.caption-warning{color:#FA8C16}.caption-error{color:#F5222D}.error .label{color:var(--bcm-color-red-6) !important}.error .textarea-container{border:1px solid var(--bcm-color-red-6) !important}";
6347
7385
 
6348
7386
  let id$1 = 0;
@@ -6462,7 +7500,7 @@ const BcmTextarea = class {
6462
7500
  'clearable': clearable
6463
7501
  });
6464
7502
  const hostClasses = index$1.classnames(this.hidden ? 'hidden' : null);
6465
- return (index.h(index.Host, { class: hostClasses }, index.h("div", { class: wrapperClasses }, label && index.h("label", { class: "label size-1", htmlFor: this.textareaId }, " ", label, " ", required && ('*'), " "), index.h("div", { class: contanerClasses }, index.h("textarea", { ref: el => (this.textarea = el), onInput: this.handleInput, onFocus: this.handleFocus, onChange: this.handleChange, onBlur: this.handleBlur, class: textareaClasses, id: this.textareaId, value: value, rows: rows, disabled: disabled, maxlength: maxLength, placeholder: placeholder }), clearable && (index.h("button", { class: "clear-button", onClick: this.handleClear }, index.h("bcm-icon", { icon: "close-circle", type: "fill", size: 18, color: "grey-7" })))), !noCaption || maxLength ? (index.h("div", { class: "caption-area" }, index.h("span", null, captionType == "error"
7503
+ return (index.h(index.Host, { class: hostClasses }, index.h("div", { class: wrapperClasses }, label && index.h("div", null, index.h("bcm-label", { tooltip: this.tooltip, type: captionType, value: label, required: required, htmlFor: this.textareaId })), index.h("div", { class: contanerClasses }, index.h("textarea", { ref: el => (this.textarea = el), onInput: this.handleInput, onFocus: this.handleFocus, onChange: this.handleChange, onBlur: this.handleBlur, class: textareaClasses, id: this.textareaId, value: value, rows: rows, disabled: disabled, maxlength: maxLength, placeholder: placeholder }), clearable && (index.h("button", { class: "clear-button", onClick: this.handleClear }, index.h("bcm-icon", { icon: "close-circle", type: "fill", size: 18, color: "grey-7" })))), !noCaption || maxLength ? (index.h("div", { class: "caption-area" }, index.h("span", null, captionType == "error"
6466
7504
  ? index.h("span", { class: captionClasses }, " ", captionError, " ")
6467
7505
  : caption && index.h("span", { class: captionClasses }, " ", caption, " ")), maxLength && index.h("span", { class: countClasses }, " ", `${valueLength}/${maxLength}`, " "))) : null)));
6468
7506
  }
@@ -6473,8 +7511,174 @@ const BcmTextarea = class {
6473
7511
  };
6474
7512
  BcmTextarea.style = textareaCss;
6475
7513
 
7514
+ const tooltipCss = "@import url(\"https://fonts.googleapis.com/css?family=Roboto:400,500\");.size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}:host{display:inline-flex}:host(.hidden){display:none}:host(:focus){outline:none}.tooltip{position:relative;}.tooltip .box{position:absolute;display:none;box-sizing:border-box;background-color:#262626;border:1px solid #262626;border-radius:2px;z-index:10700;width:max-content;padding:4px 8px;color:var(--bcm-color-grey-1)}.tooltip::after{content:\"\";position:absolute;display:none;border:6px solid;z-index:10700;pointer-events:none}.tooltip.open .box,.tooltip.open::after{display:block}.tooltip.top .box{bottom:100%;margin-bottom:8px}.tooltip.top::after{bottom:100%;margin-bottom:-4px;border-color:#262626 transparent transparent transparent}.tooltip.bottom .box{top:100%;margin-top:8px}.tooltip.bottom::after{top:100%;margin-top:-4px;border-color:transparent transparent #262626 transparent}.tooltip.left .box{right:100%;margin-right:8px}.tooltip.left::after{right:100%;margin-right:-4px;border-color:transparent transparent transparent #262626}.tooltip.right .box{left:100%;margin-left:8px}.tooltip.right::after{left:100%;margin-left:-4px;border-color:transparent #262626 transparent transparent}.tooltip.top.center .box,.tooltip.bottom.center .box{left:50%;transform:translateX(-50%)}.tooltip.top.center::after,.tooltip.bottom.center::after{left:50%;transform:translateX(-50%)}.tooltip.top.start .box,.tooltip.bottom.start .box{left:0}.tooltip.top.start::after,.tooltip.bottom.start::after{left:8px}.tooltip.top.end .box,.tooltip.bottom.end .box{right:0}.tooltip.top.end::after,.tooltip.bottom.end::after{right:8px}.tooltip.left.center .box,.tooltip.right.center .box{top:50%;transform:translateY(-50%)}.tooltip.left.center::after,.tooltip.right.center::after{top:50%;transform:translateY(-50%)}.tooltip.left.start .box,.tooltip.right.start .box{top:0}.tooltip.left.start::after,.tooltip.right.start::after{top:4px}.tooltip.left.end .box,.tooltip.right.end .box{bottom:0}.tooltip.left.end::after,.tooltip.right.end::after{bottom:4px}";
7515
+
7516
+ const BcmTooltip = class {
7517
+ constructor(hostRef) {
7518
+ index.registerInstance(this, hostRef);
7519
+ this.onShow = index.createEvent(this, "bcm-show", 7);
7520
+ this.onHide = index.createEvent(this, "bcm-hide", 7);
7521
+ this.placement = 'top';
7522
+ this.trigger = 'hover';
7523
+ this.hidden = false;
7524
+ this._internal_id = (Math.random() * 4).toString(16).replace('.', '');
7525
+ }
7526
+ async show() {
7527
+ // Prevent subsequent calls
7528
+ if (this.open) {
7529
+ return;
7530
+ }
7531
+ this.open = true;
7532
+ this.onShow.emit();
7533
+ }
7534
+ async hide() {
7535
+ // Prevent subsequent calls
7536
+ if (!this.open) {
7537
+ return;
7538
+ }
7539
+ this.open = false;
7540
+ this.onHide.emit();
7541
+ }
7542
+ handleClickOutside(e) {
7543
+ if (!this.host.contains(e.target)) {
7544
+ if (this.open) {
7545
+ this.open = false;
7546
+ }
7547
+ }
7548
+ }
7549
+ async handleOpen() {
7550
+ await this.createElement();
7551
+ var tooltipBox = document.getElementById("box" + this._internal_id).shadowRoot.querySelector(".tooltip-box");
7552
+ if (tooltipBox && tooltipBox.querySelector(".box")) {
7553
+ var tooltipBoxIn = tooltipBox.querySelector(".box");
7554
+ popoverPlacement.popoverPlacement(tooltipBoxIn, this.host, this.placement, (place) => this.placement = place);
7555
+ tooltipBox.classList.toggle("open");
7556
+ }
7557
+ }
7558
+ async createElement() {
7559
+ var target = this.host.getBoundingClientRect();
7560
+ var placementString = String([...this.getPlacement()]).replace(',', ' ');
7561
+ var element;
7562
+ if (!document.getElementById("box" + this._internal_id)) {
7563
+ element = document.createElement("bcm-tooltip-box");
7564
+ element.setAttribute("id", "box" + this._internal_id);
7565
+ }
7566
+ else {
7567
+ element = document.getElementById("box" + this._internal_id);
7568
+ }
7569
+ element.setAttribute("message", this.message);
7570
+ // element.setAttribute("placement", placementString)
7571
+ element.style.position = "absolute";
7572
+ // element.style.top = target.top + "px"
7573
+ // element.style.left = (target.left + (target.width / 2)) + "px"
7574
+ element.setAttribute("placement", placementString);
7575
+ // element.style.zIndex = "999999999"
7576
+ document.body.appendChild(element);
7577
+ await utils.delay(50);
7578
+ var tooltipBox = document.getElementById("box" + this._internal_id).shadowRoot.querySelector(".tooltip-box");
7579
+ if (tooltipBox && tooltipBox.querySelector(".box")) {
7580
+ var tooltipBoxIn = tooltipBox.querySelector(".box");
7581
+ popoverPlacement.popoverPlacement(tooltipBoxIn, this.host, this.placement, (place) => this.placement = place);
7582
+ }
7583
+ element.style.top = popoverPlacement.popoverBoxPlacement(this.placement, target)[0] + "px";
7584
+ element.style.left = popoverPlacement.popoverBoxPlacement(this.placement, target)[1] + "px";
7585
+ }
7586
+ hasTrigger(trigger) {
7587
+ return this.trigger === trigger;
7588
+ }
7589
+ getPlacement() {
7590
+ const placements = this.placement.split('-');
7591
+ if (placements.length === 1) {
7592
+ placements.push('center');
7593
+ }
7594
+ return placements;
7595
+ }
7596
+ /*
7597
+ Trigger Functions
7598
+ */
7599
+ handleMouseOver() {
7600
+ if (this.hasTrigger('hover')) {
7601
+ this.show();
7602
+ }
7603
+ }
7604
+ handleMouseOut() {
7605
+ if (this.hasTrigger('hover')) {
7606
+ this.hide();
7607
+ }
7608
+ }
7609
+ handleClick() {
7610
+ if (this.hasTrigger('click')) {
7611
+ this.open ? this.hide() : this.show();
7612
+ }
7613
+ }
7614
+ handleFocus() {
7615
+ if (this.hasTrigger('focus')) {
7616
+ this.show();
7617
+ }
7618
+ }
7619
+ handleBlur() {
7620
+ if (this.hasTrigger('focus')) {
7621
+ this.hide();
7622
+ }
7623
+ }
7624
+ async componentDidRender() {
7625
+ await this.createElement();
7626
+ var tooltipBox = document.getElementById("box" + this._internal_id).shadowRoot.querySelector(".tooltip-box");
7627
+ if (tooltipBox && tooltipBox.querySelector(".box")) {
7628
+ var tooltipBoxIn = tooltipBox.querySelector(".box");
7629
+ popoverPlacement.popoverPlacement(tooltipBoxIn, this.host, this.placement, (place) => this.placement = place);
7630
+ }
7631
+ }
7632
+ render() {
7633
+ const classes = index$1.classnames('tooltip', ...this.getPlacement(), {
7634
+ // 'open': this.open
7635
+ });
7636
+ const hostClasses = index$1.classnames(this.hidden ? 'hidden' : null);
7637
+ return (index.h(index.Host, { class: hostClasses, onClick: () => this.handleClick(), onMouseOver: () => this.handleMouseOver(), onMouseOut: () => this.handleMouseOut(), onFocus: () => this.handleFocus(), onBlur: () => this.handleBlur(), tabindex: 0 }, index.h("span", { class: classes }, index.h("span", { class: "box size-2" }, this.message), index.h("slot", null))));
7638
+ }
7639
+ get host() { return index.getElement(this); }
7640
+ static get watchers() { return {
7641
+ "open": ["handleOpen"]
7642
+ }; }
7643
+ };
7644
+ BcmTooltip.style = tooltipCss;
7645
+
7646
+ const tooltipBoxCss = "@import url(\"https://fonts.googleapis.com/css?family=Roboto:400,500\");.size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}:host{display:inline-flex}:host(.hidden){display:none}:host(:focus){outline:none}.tooltip-box{position:relative;}.tooltip-box .box{position:absolute;display:none;box-sizing:border-box;background-color:#262626;border:1px solid #262626;border-radius:2px;z-index:10700;width:max-content;padding:4px 8px;color:var(--bcm-color-grey-1)}.tooltip-box::after{content:\"\";position:absolute;display:none;border:6px solid;z-index:10700;pointer-events:none}.tooltip-box.open .box,.tooltip-box.open::after{display:block}.tooltip-box.top .box{bottom:100%;margin-bottom:8px}.tooltip-box.top::after{bottom:100%;margin-bottom:-4px;border-color:#262626 transparent transparent transparent}.tooltip-box.bottom .box{top:100%;margin-top:8px}.tooltip-box.bottom::after{top:100%;margin-top:-4px;border-color:transparent transparent #262626 transparent}.tooltip-box.left .box{right:100%;margin-right:8px}.tooltip-box.left::after{right:100%;margin-right:-4px;border-color:transparent transparent transparent #262626}.tooltip-box.right .box{left:100%;margin-left:8px}.tooltip-box.right::after{left:100%;margin-left:-4px;border-color:transparent #262626 transparent transparent}.tooltip-box.top.center .box,.tooltip-box.bottom.center .box{left:50%;transform:translateX(-50%)}.tooltip-box.top.center::after,.tooltip-box.bottom.center::after{left:50%;transform:translateX(-50%)}.tooltip-box.top.start .box,.tooltip-box.bottom.start .box{left:0}.tooltip-box.top.start::after,.tooltip-box.bottom.start::after{left:8px}.tooltip-box.top.end .box,.tooltip-box.bottom.end .box{right:0}.tooltip-box.top.end::after,.tooltip-box.bottom.end::after{right:8px}.tooltip-box.left.center .box,.tooltip-box.right.center .box{top:50%;transform:translateY(-50%)}.tooltip-box.left.center::after,.tooltip-box.right.center::after{top:50%;transform:translateY(-50%)}.tooltip-box.left.start .box,.tooltip-box.right.start .box{top:0}.tooltip-box.left.start::after,.tooltip-box.right.start::after{top:4px}.tooltip-box.left.end .box,.tooltip-box.right.end .box{bottom:0}.tooltip-box.left.end::after,.tooltip-box.right.end::after{bottom:4px}.tooltip-box a{color:var(--bcm-color-grey-1)}";
7647
+
7648
+ const BcmTooltipBox = class {
7649
+ constructor(hostRef) {
7650
+ index.registerInstance(this, hostRef);
7651
+ this.hidden = false;
7652
+ }
7653
+ connectedCallback() { }
7654
+ disconnectedCallback() { }
7655
+ componentWillLoad() { }
7656
+ componentDidLoad() { }
7657
+ componentWillRender() { }
7658
+ componentDidRender() { }
7659
+ componentWillUpdate() { }
7660
+ componentDidUpdate() { }
7661
+ async openBox(open) {
7662
+ this.open = open;
7663
+ }
7664
+ render() {
7665
+ const classes = index$1.classnames('tooltip-box', this.open, this.placement);
7666
+ const boxClasses = index$1.classnames('box');
7667
+ const hostClasses = index$1.classnames(this.hidden ? 'hidden' : null);
7668
+ return (index.h(index.Host, { class: hostClasses }, index.h("div", { class: classes }, index.h("div", { class: boxClasses, innerHTML: this.message }))));
7669
+ }
7670
+ get el() { return index.getElement(this); }
7671
+ };
7672
+ BcmTooltipBox.style = tooltipBoxCss;
7673
+
6476
7674
  exports.bcm_button = BcmButton;
7675
+ exports.bcm_checkbox = BcmCheckbox;
7676
+ exports.bcm_checkbox_group = BcmCheckboxGroup;
6477
7677
  exports.bcm_form = BcmForm;
6478
7678
  exports.bcm_icon = BcmIcon;
6479
7679
  exports.bcm_input = BcmInput;
7680
+ exports.bcm_label = BcmLabel;
7681
+ exports.bcm_switch = BcmSwitch;
6480
7682
  exports.bcm_textarea = BcmTextarea;
7683
+ exports.bcm_tooltip = BcmTooltip;
7684
+ exports.bcm_tooltip_box = BcmTooltipBox;