bromcom-ui 2.10.1-rc.0 → 2.10.1-rc.10
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.
- package/dist/bromcom-ui/bromcom-ui.css +1 -1
- package/dist/bromcom-ui/bromcom-ui.esm.js +1 -1
- package/dist/bromcom-ui/p-000670b6.js +5 -0
- package/dist/bromcom-ui/{p-401a6ab5.entry.js → p-073d177e.entry.js} +1 -1
- package/dist/bromcom-ui/{p-fa08ba52.entry.js → p-07e9b5e7.entry.js} +1 -1
- package/dist/bromcom-ui/p-0fc73cca.entry.js +5 -0
- package/dist/bromcom-ui/{p-fcc6f71e.js → p-125d6ed0.js} +1 -1
- package/dist/bromcom-ui/{p-4438d629.entry.js → p-14cafd64.entry.js} +1 -1
- package/dist/bromcom-ui/{p-6b5ed4d8.js → p-157359d6.js} +1 -1
- package/dist/bromcom-ui/{p-05bd4980.entry.js → p-16450a8b.entry.js} +1 -1
- package/dist/bromcom-ui/{p-e037ee2b.js → p-170cf07d.js} +1 -1
- package/dist/bromcom-ui/{p-3bae35e5.entry.js → p-175eb1c7.entry.js} +1 -1
- package/dist/bromcom-ui/{p-7c94a7b0.entry.js → p-17c0a72a.entry.js} +1 -1
- package/dist/bromcom-ui/{p-51ba92e5.entry.js → p-17eb0140.entry.js} +1 -1
- package/dist/bromcom-ui/{p-5a97d31c.entry.js → p-18d28737.entry.js} +1 -1
- package/dist/bromcom-ui/{p-08159d00.entry.js → p-19f27bd8.entry.js} +1 -1
- package/dist/bromcom-ui/{p-95a2c489.entry.js → p-1c801d0c.entry.js} +1 -1
- package/dist/bromcom-ui/{p-e32ab4da.entry.js → p-1c9314bd.entry.js} +1 -1
- package/dist/bromcom-ui/p-1f5ca41b.entry.js +5 -0
- package/dist/bromcom-ui/p-21cb3cfe.entry.js +5 -0
- package/dist/bromcom-ui/p-228c74e9.entry.js +5 -0
- package/dist/bromcom-ui/{p-1d04942a.entry.js → p-23eb79ac.entry.js} +1 -1
- package/dist/bromcom-ui/{p-18bc4e04.entry.js → p-26290ed5.entry.js} +1 -1
- package/dist/bromcom-ui/{p-188b9079.entry.js → p-2aaeb247.entry.js} +1 -1
- package/dist/bromcom-ui/{p-552dfb63.entry.js → p-2d965b60.entry.js} +1 -1
- package/dist/bromcom-ui/p-32d93221.entry.js +21 -0
- package/dist/bromcom-ui/p-33513345.entry.js +5 -0
- package/dist/bromcom-ui/{p-61ad661f.entry.js → p-3b5c36e8.entry.js} +1 -1
- package/dist/bromcom-ui/{p-dca22282.entry.js → p-3f127ea5.entry.js} +1 -1
- package/dist/bromcom-ui/p-40b85b9b.entry.js +5 -0
- package/dist/bromcom-ui/{p-2ce15cc8.entry.js → p-424b7562.entry.js} +1 -1
- package/dist/bromcom-ui/{p-0efc9196.entry.js → p-430c0a24.entry.js} +1 -1
- package/dist/bromcom-ui/{p-da20e681.entry.js → p-43a1f84c.entry.js} +1 -1
- package/dist/bromcom-ui/{p-c851688d.entry.js → p-4e436468.entry.js} +1 -1
- package/dist/bromcom-ui/{p-6e5f5f36.js → p-518b9b80.js} +1 -1
- package/dist/bromcom-ui/{p-be6595a2.entry.js → p-51b6a14a.entry.js} +1 -1
- package/dist/bromcom-ui/{p-32fd9854.js → p-52b7fc24.js} +1 -1
- package/dist/bromcom-ui/p-56187d14.entry.js +5 -0
- package/dist/bromcom-ui/{p-468157a0.entry.js → p-5699f67d.entry.js} +1 -1
- package/dist/bromcom-ui/{p-d4755f0d.entry.js → p-58d5775f.entry.js} +1 -1
- package/dist/bromcom-ui/{p-dd1a0284.entry.js → p-594953e7.entry.js} +1 -1
- package/dist/bromcom-ui/p-5b96272e.entry.js +5 -0
- package/dist/bromcom-ui/{p-21fed956.entry.js → p-5bf620b2.entry.js} +1 -1
- package/dist/bromcom-ui/{p-4d8067b9.entry.js → p-5c671967.entry.js} +1 -1
- package/dist/bromcom-ui/{p-599889d7.entry.js → p-5fc49f6f.entry.js} +1 -1
- package/dist/bromcom-ui/{p-00e1c9bb.entry.js → p-60a12878.entry.js} +1 -1
- package/dist/bromcom-ui/p-61314a43.js +5 -0
- package/dist/bromcom-ui/{p-5dd45752.entry.js → p-6153f889.entry.js} +1 -1
- package/dist/bromcom-ui/{p-4798d827.js → p-61db1f1f.js} +1 -1
- package/dist/bromcom-ui/{p-7a89243a.entry.js → p-626b805d.entry.js} +1 -1
- package/dist/bromcom-ui/{p-a313fba6.js → p-6369b73b.js} +1 -1
- package/dist/bromcom-ui/{p-6660ba14.entry.js → p-643a09b4.entry.js} +1 -1
- package/dist/bromcom-ui/p-64999c43.entry.js +5 -0
- package/dist/bromcom-ui/p-64fad38b.js +11 -0
- package/dist/bromcom-ui/{p-3b079331.entry.js → p-67343ad8.entry.js} +1 -1
- package/dist/bromcom-ui/{p-48f5a3c9.entry.js → p-69260d36.entry.js} +1 -1
- package/dist/bromcom-ui/{p-034bbcdd.js → p-6edf985f.js} +1 -1
- package/dist/bromcom-ui/{p-197aba37.js → p-74e6d2b6.js} +1 -1
- package/dist/bromcom-ui/{p-47df8e77.entry.js → p-79712823.entry.js} +1 -1
- package/dist/bromcom-ui/{p-03337609.entry.js → p-7c5763cc.entry.js} +1 -1
- package/dist/bromcom-ui/{p-181f2f4a.entry.js → p-7d18ce0e.entry.js} +1 -1
- package/dist/bromcom-ui/{p-ddb6f31a.entry.js → p-7e2da99e.entry.js} +1 -1
- package/dist/bromcom-ui/{p-5ae0a59b.js → p-7e44e6b5.js} +1 -1
- package/dist/bromcom-ui/{p-0db33506.entry.js → p-841f2b60.entry.js} +1 -1
- package/dist/bromcom-ui/{p-e45c1546.js → p-85eedabc.js} +1 -1
- package/dist/bromcom-ui/{p-3c7a0345.js → p-8c018ae0.js} +1 -1
- package/dist/bromcom-ui/{p-ab3cd547.entry.js → p-8c3a6509.entry.js} +1 -1
- package/dist/bromcom-ui/p-8c610886.js +5 -0
- package/dist/bromcom-ui/{p-5efc5c02.entry.js → p-8e772077.entry.js} +1 -1
- package/dist/bromcom-ui/{p-61334720.entry.js → p-8fbdb72f.entry.js} +1 -1
- package/dist/bromcom-ui/{p-91623d42.entry.js → p-910c935f.entry.js} +1 -1
- package/dist/bromcom-ui/{p-8e5e362a.js → p-9850cbce.js} +1 -1
- package/dist/bromcom-ui/{p-f9119bec.entry.js → p-99824717.entry.js} +1 -1
- package/dist/bromcom-ui/p-9ac757e9.entry.js +5 -0
- package/dist/bromcom-ui/{p-d345d37b.entry.js → p-9da1d897.entry.js} +1 -1
- package/dist/bromcom-ui/{p-d3bd9ee0.entry.js → p-9f1e6daa.entry.js} +1 -1
- package/dist/bromcom-ui/{p-cd724916.js → p-a1477028.js} +1 -1
- package/dist/bromcom-ui/p-a25c8a55.js +5 -0
- package/dist/bromcom-ui/{p-0207059a.js → p-a58b2664.js} +1 -1
- package/dist/bromcom-ui/{p-1a33d7a3.entry.js → p-a664cc20.entry.js} +1 -1
- package/dist/bromcom-ui/{p-8fa5700a.entry.js → p-a835bff0.entry.js} +1 -1
- package/dist/bromcom-ui/p-a889681e.entry.js +5 -0
- package/dist/bromcom-ui/{p-1ba21e9c.entry.js → p-aab72ea1.entry.js} +1 -1
- package/dist/bromcom-ui/p-abc44b58.entry.js +5 -0
- package/dist/bromcom-ui/p-ae57f046.entry.js +5 -0
- package/dist/bromcom-ui/{p-035c6dbc.entry.js → p-afde516e.entry.js} +1 -1
- package/dist/bromcom-ui/{p-6e7bb16f.entry.js → p-ba9eff2a.entry.js} +1 -1
- package/dist/bromcom-ui/{p-107f11df.entry.js → p-c1a992e7.entry.js} +1 -1
- package/dist/bromcom-ui/{p-0c8abcd8.entry.js → p-c977ed98.entry.js} +1 -1
- package/dist/bromcom-ui/p-cfd52d5f.entry.js +5 -0
- package/dist/bromcom-ui/{p-63138ee5.entry.js → p-d551a51d.entry.js} +1 -1
- package/dist/bromcom-ui/{p-f9988c3c.entry.js → p-da5fdda2.entry.js} +1 -1
- package/dist/bromcom-ui/p-e19a8e73.entry.js +5 -0
- package/dist/bromcom-ui/{p-4542066c.js → p-e2aaaece.js} +1 -1
- package/dist/bromcom-ui/{p-a42879c1.entry.js → p-e6faa2bb.entry.js} +1 -1
- package/dist/bromcom-ui/{p-751baf81.entry.js → p-ec36f5a0.entry.js} +1 -1
- package/dist/bromcom-ui/p-ec992ac3.entry.js +5 -0
- package/dist/bromcom-ui/{p-f4576a4f.entry.js → p-ecd8d70f.entry.js} +1 -1
- package/dist/bromcom-ui/{p-4d7ea23c.entry.js → p-ece578ef.entry.js} +1 -1
- package/dist/bromcom-ui/p-edbdd7dd.js +5 -0
- package/dist/bromcom-ui/{p-daa45693.entry.js → p-f077a1d7.entry.js} +1 -1
- package/dist/bromcom-ui/{p-704352eb.entry.js → p-f2776268.entry.js} +1 -1
- package/dist/bromcom-ui/p-f800e665.js +5 -0
- package/dist/bromcom-ui/{p-2d59be96.js → p-f83b3048.js} +1 -1
- package/dist/bromcom-ui/{p-c39f002b.js → p-fed84581.js} +1 -1
- package/dist/bromcom-ui/{p-1e8559ac.entry.js → p-fff1a0f9.entry.js} +1 -1
- package/dist/cjs/{bcm-489c9b1a.js → bcm-3c58a6d5.js} +28 -28
- package/dist/cjs/bcm-accordion.cjs.entry.js +2 -2
- package/dist/cjs/bcm-alert.cjs.entry.js +4 -4
- package/dist/cjs/bcm-attendance.cjs.entry.js +2 -2
- package/dist/cjs/bcm-avatar_2.cjs.entry.js +6 -6
- package/dist/cjs/bcm-breadcrumb.cjs.entry.js +2 -2
- package/dist/cjs/bcm-button-group.cjs.entry.js +4 -4
- package/dist/cjs/bcm-button_15.cjs.entry.js +37832 -0
- package/dist/cjs/bcm-caption.cjs.entry.js +47 -0
- package/dist/cjs/bcm-card.cjs.entry.js +5 -5
- package/dist/cjs/bcm-checkbox-group.cjs.entry.js +20 -22
- package/dist/cjs/bcm-checkbox-lite_9.cjs.entry.js +3 -3
- package/dist/cjs/bcm-chip-group.cjs.entry.js +8 -9
- package/dist/cjs/bcm-chip.cjs.entry.js +2 -2
- package/dist/cjs/bcm-collapse.cjs.entry.js +2 -2
- package/dist/cjs/bcm-color-input.cjs.entry.js +6 -6
- package/dist/cjs/bcm-date-picker.cjs.entry.js +3 -3
- package/dist/cjs/bcm-datetime-picker.cjs.entry.js +7 -8
- package/dist/cjs/bcm-default.cjs.entry.js +2 -2
- package/dist/cjs/bcm-drawer.cjs.entry.js +6 -6
- package/dist/cjs/bcm-dropdown.cjs.entry.js +4 -4
- package/dist/cjs/bcm-expansion-panel.cjs.entry.js +4 -4
- package/dist/cjs/bcm-form-2.cjs.entry.js +4 -4
- package/dist/cjs/bcm-input-custom.cjs.entry.js +2 -2
- package/dist/cjs/bcm-input-dropdown.cjs.entry.js +10 -10
- package/dist/cjs/bcm-item.cjs.entry.js +3 -3
- package/dist/cjs/bcm-items.cjs.entry.js +4 -4
- package/dist/cjs/bcm-link.cjs.entry.js +1 -1
- package/dist/cjs/bcm-menu.cjs.entry.js +8 -8
- package/dist/cjs/bcm-modal-2-footer.cjs.entry.js +6 -6
- package/dist/cjs/bcm-modal-2-header.cjs.entry.js +6 -6
- package/dist/cjs/bcm-modal-2.cjs.entry.js +6 -6
- package/dist/cjs/bcm-modal.cjs.entry.js +5 -5
- package/dist/cjs/bcm-number-input.cjs.entry.js +109 -0
- package/dist/cjs/bcm-old-input.cjs.entry.js +2 -2
- package/dist/cjs/bcm-popconfirm-box.cjs.entry.js +5 -5
- package/dist/cjs/bcm-popconfirm.cjs.entry.js +3 -3
- package/dist/cjs/bcm-popover.cjs.entry.js +7 -7
- package/dist/cjs/bcm-progress.cjs.entry.js +3 -3
- package/dist/cjs/bcm-radio-group.cjs.entry.js +7 -7
- package/dist/cjs/bcm-radio.cjs.entry.js +6 -6
- package/dist/cjs/bcm-range.cjs.entry.js +3 -3
- package/dist/cjs/bcm-select.cjs.entry.js +2 -2
- package/dist/cjs/bcm-shortcut.cjs.entry.js +6 -6
- package/dist/cjs/bcm-skeleton.cjs.entry.js +6 -6
- package/dist/cjs/bcm-step.cjs.entry.js +3 -3
- package/dist/cjs/bcm-stepper.cjs.entry.js +7 -7
- package/dist/cjs/bcm-tab-group.cjs.entry.js +6 -6
- package/dist/cjs/bcm-tab-item-header.cjs.entry.js +6 -6
- package/dist/cjs/bcm-tab-item.cjs.entry.js +6 -6
- package/dist/cjs/bcm-table.cjs.entry.js +6 -6
- package/dist/cjs/bcm-tag.cjs.entry.js +4 -4
- package/dist/cjs/bcm-text.cjs.entry.js +3 -3
- package/dist/cjs/bcm-textarea.cjs.entry.js +6 -6
- package/dist/cjs/bcm-time-picker.cjs.entry.js +3 -3
- package/dist/cjs/bcm-toast.cjs.entry.js +4 -4
- package/dist/cjs/bcm-typography.cjs.entry.js +21 -0
- package/dist/cjs/bromcom-ui.cjs.js +3 -3
- package/dist/cjs/caption-template-6f535b93.js +32 -0
- package/dist/cjs/{floating-ui-21890d11.js → floating-ui-555cd3d4.js} +1 -1
- package/dist/cjs/{generate-e214b3de.js → generate-c3a6c8c7.js} +15 -1
- package/dist/cjs/{global-532b40dc.js → global-9e8b5009.js} +1 -1
- package/dist/cjs/{input-template-2b8e0195.js → input-template-8eeb94e7.js} +2 -2
- package/dist/cjs/{json-parse-decarator-668b7724.js → json-parse-decarator-0932bec0.js} +1 -1
- package/dist/cjs/label-template-a6f51ef2.js +27 -0
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{number-helper-3a911c0f.js → number-helper-4e902d31.js} +1 -1
- package/dist/cjs/old-bcm-popover-box.cjs.entry.js +7 -7
- package/dist/cjs/old-bcm-popover.cjs.entry.js +3 -3
- package/dist/cjs/{package-f9f70acc.js → package-b23f7b7f.js} +1 -1
- package/dist/cjs/{popover-placement-e7d6eabd.js → popover-placement-9b4b4153.js} +1 -1
- package/dist/cjs/{slot-template-c8e2816c.js → slot-template-80b019d5.js} +1 -1
- package/dist/cjs/{stepper-states-7d2f2235.js → stepper-states-cb2339c3.js} +1 -1
- package/dist/cjs/{string-helper-f9184277.js → string-helper-3212f4ea.js} +1 -1
- package/dist/cjs/{tooltip-helper-410ac258.js → tooltip-helper-4ddec3b4.js} +6 -6
- package/dist/cjs/{validators-910556c5.js → validators-e2155072.js} +1 -1
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/atoms/caption/caption.js +195 -0
- package/dist/collection/components/atoms/label/label.js +48 -29
- package/dist/collection/components/molecules/checkbox/checkbox.css +0 -89
- package/dist/collection/components/molecules/input/input.css +0 -89
- package/dist/collection/components/molecules/input-dropdown/input-dropdown.css +0 -89
- package/dist/collection/components/molecules/input-dropdown/input-dropdown.js +1 -1
- package/dist/collection/components/molecules/input-dropdown/input-dropdown.style.js +1 -1
- package/dist/collection/components/{atoms/label/label.css → molecules/number-input/number-input.css} +12 -33
- package/dist/collection/components/molecules/number-input/number-input.js +425 -0
- package/dist/collection/components/molecules/number-input/number-input.style.js +45 -0
- package/dist/collection/components/molecules/search/search.css +0 -89
- package/dist/collection/components/molecules/switch/switch.css +1 -89
- package/dist/collection/components/molecules/textarea/textarea.css +0 -89
- package/dist/collection/components/organism/datetime-picker/datetime-picker.css +0 -89
- package/dist/collection/components/organism/list/list.css +2 -89
- package/dist/collection/components/organism/list/list.js +83 -15
- package/dist/collection/components/other_deprecated/old-input/old-input.css +0 -89
- package/dist/collection/components/third-parts/colorful/colorful.css +0 -89
- package/dist/collection/components/third-parts/rc-picker/date.js +7 -5
- package/dist/collection/components/third-parts/rc-picker/rc-picker.css +1 -376
- package/dist/collection/components/third-parts/rc-picker/rc-picker.js +3 -16
- package/dist/collection/helper/generate.js +14 -0
- package/dist/collection/models/bcm.js +28 -28
- package/dist/collection/stories/ui-library/components/date/argTypes_common.js +203 -0
- package/dist/collection/stories/ui-library/components/date/argTypes_date.js +47 -0
- package/dist/collection/stories/ui-library/components/date/argTypes_datetime.js +109 -0
- package/dist/collection/stories/ui-library/components/date/argTypes_time.js +91 -0
- package/dist/collection/templates/caption-template.js +15 -11
- package/dist/collection/templates/label-template.js +9 -7
- package/dist/collection/templates/list-item-template.js +3 -2
- package/dist/collection/templates/list-template.js +2 -2
- package/dist/components/bcm-caption.d.ts +11 -0
- package/dist/components/bcm-caption.js +64 -0
- package/dist/components/bcm-checkbox-group.js +7 -8
- package/dist/components/bcm-chip-group.js +1 -2
- package/dist/components/bcm-date.js +26 -7
- package/dist/components/bcm-input-dropdown.js +3 -3
- package/dist/components/bcm-number-input.d.ts +11 -0
- package/dist/components/bcm-number-input.js +157 -0
- package/dist/components/bcm-switch.js +1 -1
- package/dist/components/bcm.js +28 -28
- package/dist/components/caption-template.js +15 -17
- package/dist/components/checkbox.js +1 -1
- package/dist/components/colorful.js +1 -1
- package/dist/components/datetime-picker.js +2 -3
- package/dist/components/generate.js +15 -1
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +2 -0
- package/dist/components/input.js +1 -1
- package/dist/components/label.js +46 -20
- package/dist/components/list.js +49 -18
- package/dist/components/old-input.js +1 -1
- package/dist/components/rc-picker.js +4 -17
- package/dist/components/search.js +1 -1
- package/dist/components/textarea.js +1 -1
- package/dist/esm/{_commonjsHelpers-be0d4ec8.js → _commonjsHelpers-7002e5de.js} +1 -1
- package/dist/esm/{bcm-a50d55ba.js → bcm-0f9cc27c.js} +28 -28
- package/dist/esm/bcm-accordion.entry.js +5 -5
- package/dist/esm/bcm-alert.entry.js +9 -9
- package/dist/esm/bcm-attendance.entry.js +5 -5
- package/dist/esm/bcm-autocomplete.entry.js +3 -3
- package/dist/esm/bcm-avatar_2.entry.js +12 -12
- package/dist/esm/bcm-box.entry.js +1 -1
- package/dist/esm/bcm-breadcrumb.entry.js +6 -6
- package/dist/esm/bcm-button-group.entry.js +8 -8
- package/dist/esm/bcm-button_15.entry.js +37814 -0
- package/dist/esm/bcm-caption.entry.js +43 -0
- package/dist/esm/bcm-card.entry.js +11 -11
- package/dist/esm/bcm-checkbox-group.entry.js +17 -19
- package/dist/esm/bcm-checkbox-lite_9.entry.js +8 -8
- package/dist/esm/bcm-chip-group.entry.js +15 -16
- package/dist/esm/bcm-chip.entry.js +8 -8
- package/dist/esm/bcm-collapse-group.entry.js +2 -2
- package/dist/esm/bcm-collapse.entry.js +6 -6
- package/dist/esm/bcm-color-input.entry.js +12 -12
- package/dist/esm/bcm-colorpicker.entry.js +5 -5
- package/dist/esm/bcm-content.entry.js +1 -1
- package/dist/esm/bcm-date-picker.entry.js +9 -9
- package/dist/esm/bcm-datetime-picker.entry.js +14 -15
- package/dist/esm/bcm-default.entry.js +5 -5
- package/dist/esm/bcm-drawer.entry.js +13 -13
- package/dist/esm/bcm-dropdown.entry.js +9 -9
- package/dist/esm/bcm-error-layout.entry.js +3 -3
- package/dist/esm/bcm-expansion-panel.entry.js +10 -10
- package/dist/esm/bcm-form-2.entry.js +8 -8
- package/dist/esm/bcm-form-group.entry.js +1 -1
- package/dist/esm/bcm-input-custom.entry.js +6 -6
- package/dist/esm/bcm-input-dropdown.entry.js +17 -17
- package/dist/esm/bcm-item.entry.js +9 -9
- package/dist/esm/bcm-items.entry.js +7 -7
- package/dist/esm/bcm-link.entry.js +4 -4
- package/dist/esm/bcm-menu.entry.js +16 -16
- package/dist/esm/bcm-message.entry.js +3 -3
- package/dist/esm/bcm-modal-2-footer.entry.js +13 -13
- package/dist/esm/bcm-modal-2-header.entry.js +12 -12
- package/dist/esm/bcm-modal-2.entry.js +13 -13
- package/dist/esm/bcm-modal.entry.js +9 -9
- package/dist/esm/bcm-notification.entry.js +3 -3
- package/dist/esm/bcm-number-input.entry.js +105 -0
- package/dist/esm/bcm-old-input.entry.js +6 -6
- package/dist/esm/bcm-old-tag_2.entry.js +4 -4
- package/dist/esm/bcm-overlay_2.entry.js +4 -4
- package/dist/esm/bcm-popconfirm-box.entry.js +11 -11
- package/dist/esm/bcm-popconfirm.entry.js +7 -7
- package/dist/esm/bcm-popover.entry.js +13 -13
- package/dist/esm/bcm-progress.entry.js +9 -9
- package/dist/esm/bcm-radio-group.entry.js +15 -15
- package/dist/esm/bcm-radio.entry.js +13 -13
- package/dist/esm/bcm-range.entry.js +8 -8
- package/dist/esm/bcm-result.entry.js +3 -3
- package/dist/esm/bcm-select-group.entry.js +3 -3
- package/dist/esm/bcm-select-option.entry.js +3 -3
- package/dist/esm/bcm-select.entry.js +6 -6
- package/dist/esm/bcm-shortcut.entry.js +13 -13
- package/dist/esm/bcm-skeleton.entry.js +12 -12
- package/dist/esm/bcm-step.entry.js +8 -8
- package/dist/esm/bcm-stepper.entry.js +15 -15
- package/dist/esm/bcm-tab-group.entry.js +12 -12
- package/dist/esm/bcm-tab-item-header.entry.js +13 -13
- package/dist/esm/bcm-tab-item.entry.js +12 -12
- package/dist/esm/bcm-tab-pane.entry.js +3 -3
- package/dist/esm/bcm-tab.entry.js +3 -3
- package/dist/esm/bcm-table.entry.js +13 -13
- package/dist/esm/bcm-tabs-content.entry.js +4 -4
- package/dist/esm/bcm-tabs.entry.js +4 -4
- package/dist/esm/bcm-tag.entry.js +9 -9
- package/dist/esm/bcm-text.entry.js +9 -9
- package/dist/esm/bcm-textarea.entry.js +12 -12
- package/dist/esm/bcm-time-picker.entry.js +9 -9
- package/dist/esm/bcm-timeline-item.entry.js +3 -3
- package/dist/esm/bcm-timeline.entry.js +3 -3
- package/dist/esm/bcm-toast.entry.js +9 -9
- package/dist/esm/bcm-treeview-group.entry.js +1 -1
- package/dist/esm/bcm-typography.entry.js +17 -0
- package/dist/esm/bromcom-ui.js +5 -5
- package/dist/esm/caption-template-0c32ce16.js +30 -0
- package/dist/esm/{color-helper-c4fa9ebc.js → color-helper-845ba523.js} +2 -2
- package/dist/esm/{colors-e1c31f79.js → colors-ebea297f.js} +1 -1
- package/dist/esm/{element-dragger-7ea06c76.js → element-dragger-89bb52fd.js} +1 -1
- package/dist/esm/{floating-ui-3f4394da.js → floating-ui-a4e67246.js} +1 -1
- package/dist/esm/{generate-7d1e216b.js → generate-80f589b2.js} +16 -2
- package/dist/esm/{global-34d95eec.js → global-9afe304c.js} +2 -2
- package/dist/esm/{index-b84bc8c9.js → index-00c8a8f7.js} +1 -1
- package/dist/esm/{index-4614b7f0.js → index-0615c2b8.js} +1 -1
- package/dist/esm/{index-f38e3364.js → index-7e71bbc8.js} +1 -1
- package/dist/esm/{input-template-1df1e8d3.js → input-template-a5d07ba6.js} +4 -4
- package/dist/esm/{is-load-decorator-b8ca22f2.js → is-load-decorator-8277e3b8.js} +1 -1
- package/dist/esm/{json-parse-decarator-19a0db7a.js → json-parse-decarator-5195f510.js} +2 -2
- package/dist/esm/label-template-ad2e8119.js +25 -0
- package/dist/esm/loader.js +5 -5
- package/dist/esm/{number-helper-a5eab393.js → number-helper-aeb5881f.js} +1 -1
- package/dist/esm/old-bcm-popover-box.entry.js +13 -13
- package/dist/esm/old-bcm-popover.entry.js +7 -7
- package/dist/esm/{package-e0577fef.js → package-5e39e390.js} +1 -1
- package/dist/esm/{popover-placement-2f5939ea.js → popover-placement-279ce860.js} +1 -1
- package/dist/esm/{slot-template-08ed1fe4.js → slot-template-9234df88.js} +2 -2
- package/dist/esm/{stepper-states-10d7b726.js → stepper-states-97a648ff.js} +3 -3
- package/dist/esm/{string-helper-85990695.js → string-helper-8f5da9ec.js} +2 -2
- package/dist/esm/{tooltip-helper-59b661f8.js → tooltip-helper-d339c58a.js} +9 -9
- package/dist/esm/{utils-b3338faf.js → utils-57652744.js} +1 -1
- package/dist/esm/{validators-7979c137.js → validators-b5e106d5.js} +1 -1
- package/dist/types/components/atoms/caption/caption.d.ts +14 -0
- package/dist/types/components/atoms/label/label.d.ts +3 -3
- package/dist/types/components/molecules/number-input/number-input.d.ts +29 -0
- package/dist/types/components/molecules/number-input/number-input.style.d.ts +200 -0
- package/dist/types/components/organism/list/list.d.ts +5 -1
- package/dist/types/components.d.ts +90 -7
- package/dist/types/helper/generate.d.ts +3 -0
- package/dist/types/models/bcm.d.ts +3 -0
- package/dist/types/templates/caption-template.d.ts +1 -1
- package/dist/types/templates/label-template.d.ts +2 -1
- package/dist/types/templates/list-template.d.ts +1 -0
- package/package.json +2 -2
- package/dist/bromcom-ui/p-036877be.entry.js +0 -5
- package/dist/bromcom-ui/p-0d2b8bc4.entry.js +0 -5
- package/dist/bromcom-ui/p-1daf0fe1.entry.js +0 -5
- package/dist/bromcom-ui/p-2a5d176d.js +0 -5
- package/dist/bromcom-ui/p-2cbda5aa.entry.js +0 -5
- package/dist/bromcom-ui/p-3182df7e.js +0 -10
- package/dist/bromcom-ui/p-32df2233.js +0 -5
- package/dist/bromcom-ui/p-3ccb15ef.entry.js +0 -5
- package/dist/bromcom-ui/p-4213ba24.js +0 -5
- package/dist/bromcom-ui/p-43598b88.entry.js +0 -5
- package/dist/bromcom-ui/p-4a7c2381.entry.js +0 -5
- package/dist/bromcom-ui/p-5ea9881d.entry.js +0 -5
- package/dist/bromcom-ui/p-64ddda1d.entry.js +0 -5
- package/dist/bromcom-ui/p-6d0a02d7.entry.js +0 -5
- package/dist/bromcom-ui/p-6f11eb8e.entry.js +0 -5
- package/dist/bromcom-ui/p-76edf59f.js +0 -7
- package/dist/bromcom-ui/p-77035c08.entry.js +0 -5
- package/dist/bromcom-ui/p-7a4cc259.js +0 -5
- package/dist/bromcom-ui/p-7e3209a0.js +0 -14
- package/dist/bromcom-ui/p-8291e20e.js +0 -5
- package/dist/bromcom-ui/p-82a5033e.js +0 -5
- package/dist/bromcom-ui/p-85d8092e.entry.js +0 -5
- package/dist/bromcom-ui/p-8fbc35e7.entry.js +0 -5
- package/dist/bromcom-ui/p-903cbe6a.entry.js +0 -5
- package/dist/bromcom-ui/p-9339510a.entry.js +0 -5
- package/dist/bromcom-ui/p-94a8408e.entry.js +0 -5
- package/dist/bromcom-ui/p-a0909a04.entry.js +0 -5
- package/dist/bromcom-ui/p-b1a70ec2.entry.js +0 -5
- package/dist/bromcom-ui/p-ba315064.entry.js +0 -5
- package/dist/bromcom-ui/p-bb739bf8.entry.js +0 -5
- package/dist/bromcom-ui/p-bed627ab.js +0 -11
- package/dist/bromcom-ui/p-ec90b2c7.entry.js +0 -5
- package/dist/bromcom-ui/p-fce1d13c.entry.js +0 -5
- package/dist/bromcom-ui/p-ff5acf88.entry.js +0 -5
- package/dist/cjs/bcm-button.cjs.entry.js +0 -372
- package/dist/cjs/bcm-checkbox_2.cjs.entry.js +0 -194
- package/dist/cjs/bcm-colorful_2.cjs.entry.js +0 -17624
- package/dist/cjs/bcm-date.cjs.entry.js +0 -182
- package/dist/cjs/bcm-form.cjs.entry.js +0 -489
- package/dist/cjs/bcm-icon.cjs.entry.js +0 -39
- package/dist/cjs/bcm-label_2.cjs.entry.js +0 -126
- package/dist/cjs/bcm-linked.cjs.entry.js +0 -219
- package/dist/cjs/bcm-list_3.cjs.entry.js +0 -2516
- package/dist/cjs/bcm-rc-picker.cjs.entry.js +0 -9404
- package/dist/cjs/bcm-switch.cjs.entry.js +0 -151
- package/dist/cjs/caption-template-81dbc490.js +0 -34
- package/dist/cjs/index-3d67f613.js +0 -1610
- package/dist/cjs/index-e05a7c6f.js +0 -545
- package/dist/cjs/label-template-d9bee58a.js +0 -23
- package/dist/cjs/moment-d06b012f.js +0 -4601
- package/dist/components/label-template.js +0 -21
- package/dist/esm/bcm-button.entry.js +0 -368
- package/dist/esm/bcm-checkbox_2.entry.js +0 -189
- package/dist/esm/bcm-colorful_2.entry.js +0 -17619
- package/dist/esm/bcm-date.entry.js +0 -178
- package/dist/esm/bcm-form.entry.js +0 -485
- package/dist/esm/bcm-icon.entry.js +0 -35
- package/dist/esm/bcm-label_2.entry.js +0 -121
- package/dist/esm/bcm-linked.entry.js +0 -215
- package/dist/esm/bcm-list_3.entry.js +0 -2510
- package/dist/esm/bcm-rc-picker.entry.js +0 -9400
- package/dist/esm/bcm-switch.entry.js +0 -147
- package/dist/esm/caption-template-a1a968fd.js +0 -32
- package/dist/esm/index-a6d9d0af.js +0 -541
- package/dist/esm/index-c4568336.js +0 -1594
- package/dist/esm/label-template-639fcd41.js +0 -21
- package/dist/esm/moment-15cd9198.js +0 -4598
|
@@ -1,372 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built with Stencil
|
|
3
|
-
* Copyright (c) Bromcom.
|
|
4
|
-
*/
|
|
5
|
-
'use strict';
|
|
6
|
-
|
|
7
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
8
|
-
|
|
9
|
-
const index = require('./index-c591ecec.js');
|
|
10
|
-
const generate = require('./generate-e214b3de.js');
|
|
11
|
-
const bcm = require('./bcm-489c9b1a.js');
|
|
12
|
-
const index$2 = require('./index-95ae50d0.js');
|
|
13
|
-
const index$1 = require('./index-d321de96.js');
|
|
14
|
-
const slotTemplate = require('./slot-template-c8e2816c.js');
|
|
15
|
-
const colorHelper = require('./color-helper-c3a819ea.js');
|
|
16
|
-
require('./package-f9f70acc.js');
|
|
17
|
-
require('./colors-078851ec.js');
|
|
18
|
-
require('./_commonjsHelpers-ed84c3ca.js');
|
|
19
|
-
require('./string-helper-f9184277.js');
|
|
20
|
-
require('./colors-56282b00.js');
|
|
21
|
-
require('./utils-fc077139.js');
|
|
22
|
-
|
|
23
|
-
const ButtonTemplate = ({ value, type, componentClass, disabled, href, target, loading, isIconOnly, icon, iconPosition, id }) => {
|
|
24
|
-
const ButtonTagType = (href) ? bcm.Bcm.HtmlElementType.a : bcm.Bcm.HtmlElementType.button;
|
|
25
|
-
return (index.h(ButtonTagType, Object.assign({ id: id }, (type == bcm.Bcm.HtmlElementType.button && { type }), { class: componentClass, disabled: disabled, href: href, target: target, tabindex: "0" }),
|
|
26
|
-
index.h("span", { hidden: true },
|
|
27
|
-
index.h("slot", null)),
|
|
28
|
-
loading && index.h("span", { class: "bcm-button__container-loading" },
|
|
29
|
-
" ",
|
|
30
|
-
index.h("span", { class: "bcm-button__container-icon" },
|
|
31
|
-
index.h("i", { class: "far fa-spinner-third fa-spin" }),
|
|
32
|
-
" ")),
|
|
33
|
-
icon && index.h("span", { class: `${iconPosition} bcm-button__container-icon` },
|
|
34
|
-
index.h("i", { class: `${icon}` })),
|
|
35
|
-
!isIconOnly && (index.h(slotTemplate.SlotTemplate, { className: "bcm-button__container-text", value: value })),
|
|
36
|
-
index.h("slot", { name: "suffix" })));
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
const variantOptions = {
|
|
40
|
-
save: {
|
|
41
|
-
text: 'Save',
|
|
42
|
-
color: 'emerald',
|
|
43
|
-
icon: 'far fa-save',
|
|
44
|
-
iconPosition: 'prefix',
|
|
45
|
-
},
|
|
46
|
-
ok: {
|
|
47
|
-
text: 'Ok',
|
|
48
|
-
color: 'emerald',
|
|
49
|
-
icon: 'far fa-check',
|
|
50
|
-
iconPosition: 'prefix',
|
|
51
|
-
},
|
|
52
|
-
new: {
|
|
53
|
-
text: 'New',
|
|
54
|
-
color: 'emerald',
|
|
55
|
-
icon: 'far fa-plus',
|
|
56
|
-
iconPosition: 'prefix',
|
|
57
|
-
},
|
|
58
|
-
add: {
|
|
59
|
-
text: 'Add',
|
|
60
|
-
color: 'emerald',
|
|
61
|
-
icon: 'far fa-plus',
|
|
62
|
-
iconPosition: 'prefix',
|
|
63
|
-
},
|
|
64
|
-
create: {
|
|
65
|
-
text: 'Create',
|
|
66
|
-
color: 'emerald',
|
|
67
|
-
icon: 'far fa-plus',
|
|
68
|
-
iconPosition: 'prefix',
|
|
69
|
-
},
|
|
70
|
-
prev: {
|
|
71
|
-
text: 'Prev',
|
|
72
|
-
color: '',
|
|
73
|
-
icon: 'far fa-arrow-left',
|
|
74
|
-
iconPosition: 'prefix',
|
|
75
|
-
},
|
|
76
|
-
next: {
|
|
77
|
-
text: 'Next',
|
|
78
|
-
color: '',
|
|
79
|
-
icon: 'far fa-arrow-right',
|
|
80
|
-
iconPosition: 'suffix',
|
|
81
|
-
},
|
|
82
|
-
apply: {
|
|
83
|
-
text: 'Apply',
|
|
84
|
-
color: '',
|
|
85
|
-
icon: 'far fa-check-circle',
|
|
86
|
-
iconPosition: 'prefix',
|
|
87
|
-
},
|
|
88
|
-
submit: {
|
|
89
|
-
text: 'Submit',
|
|
90
|
-
color: '',
|
|
91
|
-
icon: 'far fa-save',
|
|
92
|
-
iconPosition: 'prefix',
|
|
93
|
-
},
|
|
94
|
-
send: {
|
|
95
|
-
text: 'Send',
|
|
96
|
-
color: 'emerald',
|
|
97
|
-
icon: 'far fa-paper-plane',
|
|
98
|
-
iconPosition: 'prefix',
|
|
99
|
-
},
|
|
100
|
-
delete: {
|
|
101
|
-
text: 'Delete',
|
|
102
|
-
color: 'red',
|
|
103
|
-
icon: 'far fa-trash',
|
|
104
|
-
iconPosition: 'prefix',
|
|
105
|
-
},
|
|
106
|
-
cancel: {
|
|
107
|
-
text: 'Cancel',
|
|
108
|
-
color: 'red',
|
|
109
|
-
icon: 'far fa-times',
|
|
110
|
-
iconPosition: 'prefix',
|
|
111
|
-
},
|
|
112
|
-
decline: {
|
|
113
|
-
text: 'Decline',
|
|
114
|
-
color: 'red',
|
|
115
|
-
icon: 'far fa-ban',
|
|
116
|
-
iconPosition: 'prefix',
|
|
117
|
-
},
|
|
118
|
-
close: {
|
|
119
|
-
text: 'Close',
|
|
120
|
-
color: 'red',
|
|
121
|
-
icon: 'far fa-times-circle',
|
|
122
|
-
iconPosition: 'prefix',
|
|
123
|
-
},
|
|
124
|
-
archive: {
|
|
125
|
-
text: 'Archive',
|
|
126
|
-
color: 'red',
|
|
127
|
-
icon: 'far fa-folder-open',
|
|
128
|
-
iconPosition: 'prefix',
|
|
129
|
-
},
|
|
130
|
-
remove: {
|
|
131
|
-
text: 'Remove',
|
|
132
|
-
color: 'red',
|
|
133
|
-
icon: 'far fa-minus-circle',
|
|
134
|
-
iconPosition: 'prefix',
|
|
135
|
-
},
|
|
136
|
-
edit: {
|
|
137
|
-
text: 'Edit',
|
|
138
|
-
color: '',
|
|
139
|
-
icon: 'far fa-edit',
|
|
140
|
-
iconPosition: 'prefix',
|
|
141
|
-
},
|
|
142
|
-
export: {
|
|
143
|
-
text: 'Export',
|
|
144
|
-
color: '',
|
|
145
|
-
icon: 'far fa-sign-out',
|
|
146
|
-
iconPosition: 'prefix',
|
|
147
|
-
},
|
|
148
|
-
import: {
|
|
149
|
-
text: 'Import',
|
|
150
|
-
color: '',
|
|
151
|
-
icon: 'far fa-sign-in',
|
|
152
|
-
iconPosition: 'prefix',
|
|
153
|
-
},
|
|
154
|
-
filter: {
|
|
155
|
-
text: 'Filter',
|
|
156
|
-
color: '',
|
|
157
|
-
icon: 'far fa-filter',
|
|
158
|
-
iconPosition: 'prefix',
|
|
159
|
-
},
|
|
160
|
-
update: {
|
|
161
|
-
text: 'Update',
|
|
162
|
-
color: '',
|
|
163
|
-
icon: 'far fa-sync',
|
|
164
|
-
iconPosition: 'prefix',
|
|
165
|
-
},
|
|
166
|
-
reset: {
|
|
167
|
-
text: "Reset",
|
|
168
|
-
color: "",
|
|
169
|
-
icon: 'far fa-sync',
|
|
170
|
-
iconPosition: "prefix",
|
|
171
|
-
},
|
|
172
|
-
download: {
|
|
173
|
-
text: 'Download',
|
|
174
|
-
color: '',
|
|
175
|
-
icon: 'far fa-download',
|
|
176
|
-
iconPosition: 'prefix',
|
|
177
|
-
},
|
|
178
|
-
};
|
|
179
|
-
var VariantProps;
|
|
180
|
-
(function (VariantProps) {
|
|
181
|
-
VariantProps["save"] = "save";
|
|
182
|
-
VariantProps["submit"] = "submit";
|
|
183
|
-
VariantProps["ok"] = "ok";
|
|
184
|
-
VariantProps["new"] = "new";
|
|
185
|
-
VariantProps["add"] = "add";
|
|
186
|
-
VariantProps["create"] = "create";
|
|
187
|
-
VariantProps["apply"] = "apply";
|
|
188
|
-
VariantProps["prev"] = "prev";
|
|
189
|
-
VariantProps["next"] = "next";
|
|
190
|
-
VariantProps["send"] = "send";
|
|
191
|
-
VariantProps["delete"] = "delete";
|
|
192
|
-
VariantProps["cancel"] = "cancel";
|
|
193
|
-
VariantProps["decline"] = "decline";
|
|
194
|
-
VariantProps["close"] = "close";
|
|
195
|
-
VariantProps["archive"] = "archive";
|
|
196
|
-
VariantProps["remove"] = "remove";
|
|
197
|
-
VariantProps["edit"] = "edit";
|
|
198
|
-
VariantProps["export"] = "export";
|
|
199
|
-
VariantProps["import"] = "import";
|
|
200
|
-
VariantProps["filter"] = "filter";
|
|
201
|
-
VariantProps["update"] = "update";
|
|
202
|
-
VariantProps["reset"] = "Reset";
|
|
203
|
-
VariantProps["download"] = "download";
|
|
204
|
-
})(VariantProps || (VariantProps = {}));
|
|
205
|
-
|
|
206
|
-
const { state } = index$1.createStore({
|
|
207
|
-
value: new Map(),
|
|
208
|
-
setData: {},
|
|
209
|
-
removeData: {}
|
|
210
|
-
});
|
|
211
|
-
const setValue = (val) => {
|
|
212
|
-
const data = Object.assign(Object.assign({}, val), (variantOptions[val.variant] && {
|
|
213
|
-
icon: variantOptions[val.variant].icon,
|
|
214
|
-
value: variantOptions[val.variant].text,
|
|
215
|
-
iconPosition: bcm.Bcm.IconPosition[variantOptions[val.variant].iconPosition],
|
|
216
|
-
variantColor: variantOptions[val.variant].color
|
|
217
|
-
}));
|
|
218
|
-
state.value.set(data.id, data);
|
|
219
|
-
};
|
|
220
|
-
const removeValue = (_id) => {
|
|
221
|
-
state.value.delete(_id);
|
|
222
|
-
};
|
|
223
|
-
const getValue = (id) => generate.snq(() => state.value.get(id), {});
|
|
224
|
-
const buttonState = {
|
|
225
|
-
setValue,
|
|
226
|
-
removeValue,
|
|
227
|
-
getValue
|
|
228
|
-
};
|
|
229
|
-
|
|
230
|
-
const buttonCss = "@import url(\"https://fonts.googleapis.com/css?family=Roboto:400,500\");@import url(\"https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap\"); .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}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}*{box-sizing:border-box}.bcm-button{display:inline-flex;width:fit-content;height:fit-content;--bcm-button-solid-color-default:var(--bcm-new-ds-color-white);--bcm-button-solid-background-color-default:var(--bcm-new-ds-color-blue-500);--bcm-button-solid-border-default:var(--bcm-new-ds-color-blue-500);--bcm-button-solid-color-hover:var(--bcm-new-ds-color-white);--bcm-button-solid-background-color-hover:var(--bcm-new-ds-color-blue-600);--bcm-button-solid-border-hover:var(--bcm-new-ds-color-blue-600);--bcm-button-solid-color-focus-visible:var(--bcm-new-ds-color-white);--bcm-button-solid-background-color-focus-visible:var(--bcm-new-ds-color-blue-800);--bcm-button-solid-border-focus-visible:var(--bcm-new-ds-color-blue-800);--bcm-button-solid-color-active:var(--bcm-new-ds-color-white);--bcm-button-solid-background-color-active:var(--bcm-new-ds-color-blue-700);--bcm-button-solid-border-active:var(--bcm-new-ds-color-blue-700);--bcm-button-solid-color-disabled:var(--bcm-new-ds-color-white);--bcm-button-solid-background-color-disabled:var(--bcm-new-ds-color-slate-400);--bcm-button-solid-border-disabled:var(--bcm-new-ds-color-slate-400);--bcm-button-ghost-color-default:var(--bcm-new-ds-color-slate-600);--bcm-button-ghost-background-color-default:var(--bcm-new-ds-color-slate-100);--bcm-button-ghost-border-default:var(--bcm-new-ds-color-slate-300);--bcm-button-ghost-color-hover:var(--bcm-new-ds-color-slate-600);--bcm-button-ghost-background-color-hover:var(--bcm-new-ds-color-slate-200);--bcm-button-ghost-border-hover:var(--bcm-new-ds-color-slate-400);--bcm-button-ghost-color-focus-visible:var(--bcm-new-ds-color-slate-600);--bcm-button-ghost-background-color-focus-visible:var(--bcm-new-ds-color-slate-400);--bcm-button-ghost-border-focus-visible:var(--bcm-new-ds-color-slate-600);--bcm-button-ghost-color-active:var(--bcm-new-ds-color-slate-600);--bcm-button-ghost-background-color-active:var(--bcm-new-ds-color-slate-300);--bcm-button-ghost-border-active:var(--bcm-new-ds-color-slate-500);--bcm-button-ghost-color-disabled:var(--bcm-new-ds-color-slate-300);--bcm-button-ghost-background-color-disabled:var(--bcm-new-ds-color-slate-50);--bcm-button-ghost-border-disabled:var(--bcm-new-ds-color-slate-200);--bcm-button-link-color-default:var(--bcm-new-ds-color-blue-500);--bcm-button-link-background-color-default:var(--bcm-new-ds-color-transparent);--bcm-button-link-border-default:var(--bcm-new-ds-color-transparent);--bcm-button-link-color-hover:var(--bcm-new-ds-color-blue-600);--bcm-button-link-background-color-hover:var(--bcm-new-ds-color-transparent);--bcm-button-link-border-hover:var(--bcm-new-ds-color-transparent);--bcm-button-link-color-focus-visible:var(--bcm-new-ds-color-blue-800);--bcm-button-link-background-color-focus-visible:var(--bcm-new-ds-color-slate-50);--bcm-button-link-border-focus-visible:var(--bcm-new-ds-color-slate-50);--bcm-button-link-color-active:var(--bcm-new-ds-color-blue-700);--bcm-button-link-background-color-active:var(--bcm-new-ds-color-slate-50);--bcm-button-link-border-active:var(--bcm-new-ds-color-slate-50);--bcm-button-link-color-disabled:var(--bcm-new-ds-color-slate-400);--bcm-button-link-background-color-disabled:var(--bcm-new-ds-color-transparent);--bcm-button-link-border-disabled:var(--bcm-new-ds-color-transparent);--bcm-button-ghost-link-color-default:var(--bcm-new-ds-color-slate-700);--bcm-button-ghost-link-background-color-default:var(--bcm-new-ds-color-transparent);--bcm-button-ghost-link-border-default:var(--bcm-new-ds-color-transparent);--bcm-button-ghost-link-color-hover:var(--bcm-new-ds-color-slate-700);--bcm-button-ghost-link-background-color-hover:var(--bcm-new-ds-color-slate-200);--bcm-button-ghost-link-border-hover:var(--bcm-new-ds-color-transparent);--bcm-button-ghost-link-color-focus-visible:var(--bcm-new-ds-color-slate-700);--bcm-button-ghost-link-background-color-focus-visible:var(--bcm-new-ds-color-slate-300);--bcm-button-ghost-link-border-focus-visible:var(--bcm-new-ds-color-transparent);--bcm-button-ghost-link-color-active:var(--bcm-new-ds-color-slate-700);--bcm-button-ghost-link-background-color-active:var(--bcm-new-ds-color-slate-300);--bcm-button-ghost-link-border-active:var(--bcm-new-ds-color-transparent);--bcm-button-ghost-link-color-disabled:var(--bcm-new-ds-color-slate-500);--bcm-button-ghost-link-background-color-disabled:var(--bcm-new-ds-color-transparent);--bcm-button-ghost-link-border-disabled:var(--bcm-new-ds-color-transparent)}.bcm-button.full-width{width:100%}.bcm-button.full-width .bcm-button__container{width:100%}.bcm-button:after,.bcm-button:before{content:\"\";clear:both}.bcm-button__container{border:none;color:inherit;background-color:inherit;padding:0;margin:0;font:inherit;cursor:pointer;outline:none;text-decoration:none;font-family:\"Inter\", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;font-weight:500;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:4px 12px;outline:none;border-radius:4px;transition:background-color 0.1s ease-in-out;position:relative;min-width:40px;border-width:1px;border-style:solid;border-color:initial}.bcm-button__container:hover,.bcm-button__container:focus,.bcm-button__container:active{outline:none;text-decoration:none}.bcm-button__container-loading{position:absolute;top:0;left:0;width:100%;height:100%;border-radius:4px;display:flex;align-items:center;justify-content:center}.bcm-button__container-kind-solid{color:var(--bcm-button-solid-color-default);background-color:var(--bcm-button-solid-background-color-default);border-color:var(--bcm-button-solid-border-default)}.bcm-button__container-kind-solid:hover{color:var(--bcm-button-solid-color-hover);background-color:var(--bcm-button-solid-background-color-hover);border-color:var(--bcm-button-solid-border-hover)}.bcm-button__container-kind-solid:focus-visible{color:var(--bcm-button-solid-color-focus-visible);background-color:var(--bcm-button-solid-background-color-focus-visible);border-color:var(--bcm-button-solid-border-focus-visible)}.bcm-button__container-kind-solid:active{color:var(--bcm-button-solid-color-active);background-color:var(--bcm-button-solid-background-color-active);border-color:var(--bcm-button-solid-border-active)}.bcm-button__container-kind-solid:disabled{color:var(--bcm-button-solid-color-disabled);background-color:var(--bcm-button-solid-background-color-disabled);border-color:var(--bcm-button-solid-border-disabled)}.bcm-button__container-kind-solid.checked{color:var(--bcm-button-solid-color-active);background-color:var(--bcm-button-solid-background-color-active);border-color:var(--bcm-button-solid-border-active)}.bcm-button__container-kind-solid.disabled{color:var(--bcm-button-solid-color-disabled);background-color:var(--bcm-button-solid-background-color-disabled);border-color:var(--bcm-button-solid-border-disabled)}.bcm-button__container-kind-solid .bcm-button__container-loading{color:var(--bcm-button-solid-color-default);background-color:var(--bcm-button-solid-background-color-default);border-color:var(--bcm-button-solid-border-default)}.bcm-button__container-kind-ghost{color:var(--bcm-button-ghost-color-default);background-color:var(--bcm-button-ghost-background-color-default);border-color:var(--bcm-button-ghost-border-default)}.bcm-button__container-kind-ghost:not([disabled]) .bcm-icon{color:var(--bcm-new-ds-color-slate-500)}.bcm-button__container-kind-ghost:hover{color:var(--bcm-button-ghost-color-hover);background-color:var(--bcm-button-ghost-background-color-hover);border-color:var(--bcm-button-ghost-border-hover)}.bcm-button__container-kind-ghost:focus-visible{color:var(--bcm-button-ghost-color-focus-visible);background-color:var(--bcm-button-ghost-background-color-focus-visible);border-color:var(--bcm-button-ghost-border-focus-visible)}.bcm-button__container-kind-ghost:active{color:var(--bcm-button-ghost-color-active);background-color:var(--bcm-button-ghost-background-color-active);border-color:var(--bcm-button-ghost-border-active)}.bcm-button__container-kind-ghost:disabled{color:var(--bcm-button-ghost-color-disabled);background-color:var(--bcm-button-ghost-background-color-disabled);border-color:var(--bcm-button-ghost-border-disabled)}.bcm-button__container-kind-ghost.checked{color:var(--bcm-button-ghost-color-active);background-color:var(--bcm-button-ghost-background-color-active);border-color:var(--bcm-button-ghost-border-active)}.bcm-button__container-kind-ghost.disabled{color:var(--bcm-button-ghost-color-disabled);background-color:var(--bcm-button-ghost-background-color-disabled);border-color:var(--bcm-button-ghost-border-disabled)}.bcm-button__container-kind-ghost .bcm-button__container-loading{color:var(--bcm-button-ghost-color-default);background-color:var(--bcm-button-ghost-background-color-default);border-color:var(--bcm-button-ghost-border-default)}.bcm-button__container-kind-link{color:var(--bcm-button-link-color-default);background-color:var(--bcm-button-link-background-color-default);border-color:var(--bcm-button-link-border-default)}.bcm-button__container-kind-link:hover{color:var(--bcm-button-link-color-hover);background-color:var(--bcm-button-link-background-color-hover);border-color:var(--bcm-button-link-border-hover)}.bcm-button__container-kind-link:focus-visible{color:var(--bcm-button-link-color-focus-visible);background-color:var(--bcm-button-link-background-color-focus-visible);border-color:var(--bcm-button-link-border-focus-visible)}.bcm-button__container-kind-link:active{color:var(--bcm-button-link-color-active);background-color:var(--bcm-button-link-background-color-active);border-color:var(--bcm-button-link-border-active)}.bcm-button__container-kind-link:disabled{color:var(--bcm-button-link-color-disabled);background-color:var(--bcm-button-link-background-color-disabled);border-color:var(--bcm-button-link-border-disabled)}.bcm-button__container-kind-link.checked{color:var(--bcm-button-link-color-active);background-color:var(--bcm-button-link-background-color-active);border-color:var(--bcm-button-link-border-active)}.bcm-button__container-kind-link.disabled{color:var(--bcm-button-link-color-disabled);background-color:var(--bcm-button-link-background-color-disabled);border-color:var(--bcm-button-link-border-disabled)}.bcm-button__container-kind-link .bcm-button__container-loading{color:var(--bcm-button-link-color-default);background-color:var(--bcm-button-link-background-color-default);border-color:var(--bcm-button-link-border-default)}.bcm-button__container-kind-ghost-link{color:var(--bcm-button-ghost-link-color-default);background-color:var(--bcm-button-ghost-link-background-color-default);border-color:var(--bcm-button-ghost-link-border-default)}.bcm-button__container-kind-ghost-link:hover{color:var(--bcm-button-ghost-link-color-hover);background-color:var(--bcm-button-ghost-link-background-color-hover);border-color:var(--bcm-button-ghost-link-border-hover)}.bcm-button__container-kind-ghost-link:focus-visible{color:var(--bcm-button-ghost-link-color-focus-visible);background-color:var(--bcm-button-ghost-link-background-color-focus-visible);border-color:var(--bcm-button-ghost-link-border-focus-visible)}.bcm-button__container-kind-ghost-link:active{color:var(--bcm-button-ghost-link-color-active);background-color:var(--bcm-button-ghost-link-background-color-active);border-color:var(--bcm-button-ghost-link-border-active)}.bcm-button__container-kind-ghost-link:disabled{color:var(--bcm-button-ghost-link-color-disabled);background-color:var(--bcm-button-ghost-link-background-color-disabled);border-color:var(--bcm-button-ghost-link-border-disabled)}.bcm-button__container-kind-ghost-link.checked{color:var(--bcm-button-ghost-link-color-active);background-color:var(--bcm-button-ghost-link-background-color-active);border-color:var(--bcm-button-ghost-link-border-active)}.bcm-button__container-kind-ghost-link.disabled{color:var(--bcm-button-ghost-link-color-disabled);background-color:var(--bcm-button-ghost-link-background-color-disabled);border-color:var(--bcm-button-ghost-link-border-disabled)}.bcm-button__container-kind-ghost-link .bcm-button__container-loading{color:var(--bcm-button-ghost-link-color-default);background-color:var(--bcm-button-ghost-link-background-color-default);border-color:var(--bcm-button-ghost-link-border-default)}.bcm-button__container[disabled]{cursor:not-allowed}.bcm-button__container-text{order:3;display:flex;align-items:center;gap:8px;white-space:nowrap}.bcm-button__container-icon{min-height:calc(12px + 8px)}.bcm-button__container-icon.prefix{order:2}.bcm-button__container-icon.suffix{order:4}.bcm-button__container-size-small{font-size:12px;line-height:calc(12px + 8px);padding:calc(4px - 3px) 12px;min-height:calc(calc(12px + 8px) + calc(calc(4px - 2px)) * 2)}.bcm-button__container-size-small .bcm-button__container-icon{min-height:calc(12px + 8px)}.bcm-button__container-size-medium{font-size:calc(12px + 1px);line-height:calc(12px + 8px);padding:calc(4px + 1px) 12px;min-height:calc(calc(12px + 8px) + calc(calc(4px + 2px)) * 2)}.bcm-button__container-size-medium .bcm-button__container-icon{min-height:calc(12px + 8px)}.bcm-button__container-size-large{font-size:16px;line-height:calc(16px + 8px);padding:calc(8px - 1px) 12px;min-height:calc(calc(16px + 8px) + (calc(8px) * 2))}.bcm-button__container-size-large .bcm-button__container-icon{min-height:calc(16px + 8px)}";
|
|
231
|
-
|
|
232
|
-
const BcmButton = class {
|
|
233
|
-
constructor(hostRef) {
|
|
234
|
-
index.registerInstance(this, hostRef);
|
|
235
|
-
this.bcmClick = index.createEvent(this, "bcm-click", 7);
|
|
236
|
-
this._id = generate.Generate.UID();
|
|
237
|
-
this.hidden = false;
|
|
238
|
-
this.type = bcm.Bcm.ButtonType.button;
|
|
239
|
-
this.size = bcm.Bcm.Size.medium;
|
|
240
|
-
this.disabled = false;
|
|
241
|
-
this.kind = bcm.Bcm.Kind.solid;
|
|
242
|
-
this.outline = false;
|
|
243
|
-
this.icon = undefined;
|
|
244
|
-
this.href = undefined;
|
|
245
|
-
this.target = undefined;
|
|
246
|
-
this.value = undefined;
|
|
247
|
-
this.loading = false;
|
|
248
|
-
this.variant = undefined;
|
|
249
|
-
this.dataDismiss = false;
|
|
250
|
-
this.fullWidth = false;
|
|
251
|
-
this.iconPosition = bcm.Bcm.IconPosition.prefix;
|
|
252
|
-
this.color = undefined;
|
|
253
|
-
this.checked = false;
|
|
254
|
-
}
|
|
255
|
-
handleOnClick(e) {
|
|
256
|
-
if (this.disabled) {
|
|
257
|
-
e.preventDefault();
|
|
258
|
-
e.stopPropagation();
|
|
259
|
-
return false;
|
|
260
|
-
}
|
|
261
|
-
}
|
|
262
|
-
componentWillRender() {
|
|
263
|
-
const { size, kind, icon, iconPosition, disabled, outline, href, type, target, loading, variant, fullWidth, hidden, value } = this;
|
|
264
|
-
buttonState.setValue({
|
|
265
|
-
id: this._id,
|
|
266
|
-
size,
|
|
267
|
-
type,
|
|
268
|
-
kind,
|
|
269
|
-
icon,
|
|
270
|
-
iconPosition,
|
|
271
|
-
disabled,
|
|
272
|
-
outline,
|
|
273
|
-
href,
|
|
274
|
-
target,
|
|
275
|
-
loading,
|
|
276
|
-
variant,
|
|
277
|
-
fullWidth,
|
|
278
|
-
hidden,
|
|
279
|
-
value,
|
|
280
|
-
isIconOnly: !!(this.isHaveChildNodes() && this.icon),
|
|
281
|
-
});
|
|
282
|
-
}
|
|
283
|
-
getStateData() {
|
|
284
|
-
return buttonState.getValue(this._id);
|
|
285
|
-
}
|
|
286
|
-
isHaveChildNodes() {
|
|
287
|
-
const childNodes = Array.from(this.el.childNodes);
|
|
288
|
-
return childNodes.find(node => node.nodeType === Node.TEXT_NODE) === undefined;
|
|
289
|
-
}
|
|
290
|
-
setColor(color = this.color) {
|
|
291
|
-
if (!color)
|
|
292
|
-
return;
|
|
293
|
-
const { kind } = this;
|
|
294
|
-
const prefix = `--bcm-button-${kind}`;
|
|
295
|
-
if (kind === 'solid') {
|
|
296
|
-
return {
|
|
297
|
-
[`${prefix}-color-default`]: colorHelper.ColorHelper.dsColor('white'),
|
|
298
|
-
[`${prefix}-color-hover`]: colorHelper.ColorHelper.dsColor('white'),
|
|
299
|
-
[`${prefix}-color-focus-visible`]: colorHelper.ColorHelper.dsColor('white'),
|
|
300
|
-
[`${prefix}-color-active`]: colorHelper.ColorHelper.dsColor('white'),
|
|
301
|
-
[`${prefix}-color-disabled`]: colorHelper.ColorHelper.dsColor('white'),
|
|
302
|
-
[`${prefix}-background-color-default`]: colorHelper.ColorHelper.dsColor(color + '-500'),
|
|
303
|
-
[`${prefix}-background-color-hover`]: colorHelper.ColorHelper.dsColor(color + '-600'),
|
|
304
|
-
[`${prefix}-background-color-focus-visible`]: colorHelper.ColorHelper.dsColor(color + '-700'),
|
|
305
|
-
[`${prefix}-background-color-active`]: colorHelper.ColorHelper.dsColor(color + '-800'),
|
|
306
|
-
[`${prefix}-background-color-disabled`]: colorHelper.ColorHelper.dsColor('slate-400'),
|
|
307
|
-
[`${prefix}-border-default`]: colorHelper.ColorHelper.dsColor(color + '-500'),
|
|
308
|
-
[`${prefix}-border-hover`]: colorHelper.ColorHelper.dsColor(color + '-600'),
|
|
309
|
-
[`${prefix}-border-focus-visible`]: colorHelper.ColorHelper.dsColor(color + '-700'),
|
|
310
|
-
[`${prefix}-border-active`]: colorHelper.ColorHelper.dsColor(color + '-800'),
|
|
311
|
-
[`${prefix}-border-disabled`]: colorHelper.ColorHelper.dsColor('slate-400')
|
|
312
|
-
};
|
|
313
|
-
}
|
|
314
|
-
else if (kind == 'link') {
|
|
315
|
-
return {
|
|
316
|
-
[`${prefix}-color-default`]: colorHelper.ColorHelper.dsColor(color + '-500'),
|
|
317
|
-
[`${prefix}-color-hover`]: colorHelper.ColorHelper.dsColor(color + '-600'),
|
|
318
|
-
[`${prefix}-color-focus-visible`]: colorHelper.ColorHelper.dsColor(color + '-800'),
|
|
319
|
-
[`${prefix}-color-active`]: colorHelper.ColorHelper.dsColor(color + '-700'),
|
|
320
|
-
[`${prefix}-color-disabled`]: colorHelper.ColorHelper.dsColor('slate-400'),
|
|
321
|
-
[`${prefix}-background-color-default`]: colorHelper.ColorHelper.dsColor('transparent'),
|
|
322
|
-
[`${prefix}-background-color-hover`]: colorHelper.ColorHelper.dsColor('transparent'),
|
|
323
|
-
[`${prefix}-background-color-focus-visible`]: colorHelper.ColorHelper.dsColor('slate-50'),
|
|
324
|
-
[`${prefix}-background-color-active`]: colorHelper.ColorHelper.dsColor('slate-50'),
|
|
325
|
-
[`${prefix}-background-color-disabled`]: colorHelper.ColorHelper.dsColor('transparent'),
|
|
326
|
-
[`${prefix}-border-default`]: colorHelper.ColorHelper.dsColor('transparent'),
|
|
327
|
-
[`${prefix}-border-hover`]: colorHelper.ColorHelper.dsColor('transparent'),
|
|
328
|
-
[`${prefix}-border-focus-visible`]: colorHelper.ColorHelper.dsColor('slate-50'),
|
|
329
|
-
[`${prefix}-border-active`]: colorHelper.ColorHelper.dsColor('slate-50'),
|
|
330
|
-
[`${prefix}-border-disabled`]: colorHelper.ColorHelper.dsColor('transparent')
|
|
331
|
-
};
|
|
332
|
-
}
|
|
333
|
-
else if (kind == 'ghost') {
|
|
334
|
-
return {
|
|
335
|
-
[`${prefix}-color-default`]: colorHelper.ColorHelper.dsColor(color + '-600'),
|
|
336
|
-
[`${prefix}-color-hover`]: colorHelper.ColorHelper.dsColor(color + '-600'),
|
|
337
|
-
[`${prefix}-color-focus-visible`]: colorHelper.ColorHelper.dsColor(color + '-600'),
|
|
338
|
-
[`${prefix}-color-active`]: colorHelper.ColorHelper.dsColor(color + '-600'),
|
|
339
|
-
[`${prefix}-color-disabled`]: colorHelper.ColorHelper.dsColor(color + '-300'),
|
|
340
|
-
[`${prefix}-background-color-default`]: colorHelper.ColorHelper.dsColor(color + '-100'),
|
|
341
|
-
[`${prefix}-background-color-hover`]: colorHelper.ColorHelper.dsColor(color + '-200'),
|
|
342
|
-
[`${prefix}-background-color-focus-visible`]: colorHelper.ColorHelper.dsColor(color + '-400'),
|
|
343
|
-
[`${prefix}-background-color-active`]: colorHelper.ColorHelper.dsColor(color + '-300'),
|
|
344
|
-
[`${prefix}-background-color-disabled`]: colorHelper.ColorHelper.dsColor(color + '-50'),
|
|
345
|
-
[`${prefix}-border-default`]: colorHelper.ColorHelper.dsColor(color + '-300'),
|
|
346
|
-
[`${prefix}-border-hover`]: colorHelper.ColorHelper.dsColor(color + '-400'),
|
|
347
|
-
[`${prefix}-border-focus-visible`]: colorHelper.ColorHelper.dsColor(color + '-600'),
|
|
348
|
-
[`${prefix}-border-active`]: colorHelper.ColorHelper.dsColor(color + '-500'),
|
|
349
|
-
[`${prefix}-border-disabled`]: colorHelper.ColorHelper.dsColor(color + '-200'),
|
|
350
|
-
};
|
|
351
|
-
}
|
|
352
|
-
return;
|
|
353
|
-
}
|
|
354
|
-
render() {
|
|
355
|
-
const { size, kind, disabled, outline, type, href, target, loading, variantColor, fullWidth, hidden, icon, iconPosition, value, isIconOnly, iconSize } = this.getStateData();
|
|
356
|
-
const classPrefix = 'bcm-button';
|
|
357
|
-
let componentClass = index$2.classnames('bcm-button__container', `bcm-button__container-size-${size}`, `bcm-button__container-kind-${outline ? 'ghost' : kind}`, {
|
|
358
|
-
'full-width': fullWidth,
|
|
359
|
-
'checked': this.checked,
|
|
360
|
-
'disabled': disabled,
|
|
361
|
-
});
|
|
362
|
-
const hostClasses = index$2.classnames(`${classPrefix}`, {
|
|
363
|
-
hidden,
|
|
364
|
-
'full-width': fullWidth,
|
|
365
|
-
});
|
|
366
|
-
return (index.h(index.Host, { class: hostClasses, style: this.setColor(variantColor), onClick: () => !disabled && this.bcmClick.emit(this.el) }, index.h(ButtonTemplate, { type: type, value: value, componentClass: componentClass, disabled: disabled, href: href, target: target, icon: icon, loading: loading, iconSize: iconSize, isIconOnly: isIconOnly, iconPosition: iconPosition })));
|
|
367
|
-
}
|
|
368
|
-
get el() { return index.getElement(this); }
|
|
369
|
-
};
|
|
370
|
-
BcmButton.style = buttonCss;
|
|
371
|
-
|
|
372
|
-
exports.bcm_button = BcmButton;
|
|
@@ -1,194 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built with Stencil
|
|
3
|
-
* Copyright (c) Bromcom.
|
|
4
|
-
*/
|
|
5
|
-
'use strict';
|
|
6
|
-
|
|
7
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
8
|
-
|
|
9
|
-
const index = require('./index-c591ecec.js');
|
|
10
|
-
const index$1 = require('./index-95ae50d0.js');
|
|
11
|
-
const captionTemplate = require('./caption-template-81dbc490.js');
|
|
12
|
-
const generate = require('./generate-e214b3de.js');
|
|
13
|
-
const slotTemplate = require('./slot-template-c8e2816c.js');
|
|
14
|
-
const bcm = require('./bcm-489c9b1a.js');
|
|
15
|
-
const utils = require('./utils-fc077139.js');
|
|
16
|
-
const colorHelper = require('./color-helper-c3a819ea.js');
|
|
17
|
-
const isLoadDecorator = require('./is-load-decorator-15036f37.js');
|
|
18
|
-
require('./_commonjsHelpers-ed84c3ca.js');
|
|
19
|
-
require('./package-f9f70acc.js');
|
|
20
|
-
require('./colors-078851ec.js');
|
|
21
|
-
require('./string-helper-f9184277.js');
|
|
22
|
-
require('./colors-56282b00.js');
|
|
23
|
-
|
|
24
|
-
const checkboxCss = "@import url(\"https://fonts.googleapis.com/css?family=Roboto:400,500\");@import url(\"https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap\"); @import url(\"https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap\"); @import url(\"https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap\"); .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}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}*{box-sizing:border-box}.bcm-caption-area{font-family:\"Inter\", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;font-size:12px;line-height:calc(12px + 8px);color:var(--bcm-new-ds-color-slate-400);display:flex;flex-direction:row;align-items:flex-start;justify-content:space-between;flex-wrap:nowrap;margin-top:2px}.bcm-caption-area__text{color:var(--bcm-new-ds-color-slate-400)}.bcm-caption-area__text.default{color:var(--bcm-new-ds-color-slate-400)}.bcm-caption-area__text.info{color:var(--bcm-new-ds-color-blue-500)}.bcm-caption-area__text.success{color:var(--bcm-new-ds-color-emerald-500)}.bcm-caption-area__text.warning{color:var(--bcm-new-ds-color-amber-500)}.bcm-caption-area__text.error{color:var(--bcm-new-ds-color-red-500)}.bcm-caption-area__size-small{font-size:10px;line-height:calc(10px + 8px);min-height:calc(10px + 8px)}.bcm-caption-area__size-medium{font-size:12px;line-height:calc(12px + 8px);min-height:calc(12px + 8px)}.bcm-caption-area__size-large{font-size:14px;line-height:calc(14px + 8px);min-height:calc(14px + 8px)}*{box-sizing:border-box}.bcm-label{display:inline-flex;align-items:flex-start;grid-gap:2px}.bcm-label__text{margin-bottom:2px;font-family:\"Inter\", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;display:inline-block;color:var(--bcm-new-ds-color-slate-600)}.bcm-label__size-small{font-size:10px;line-height:calc(10px + 8px);min-height:calc(10px + 8px)}.bcm-label__size-medium{font-size:12px;line-height:calc(12px + 8px);min-height:calc(12px + 8px)}.bcm-label__size-large{font-size:14px;line-height:calc(14px + 8px);min-height:calc(14px + 8px)}.bcm-input[no-margin]{margin:0}.bcm-textarea[no-margin]{margin:0}.bcm-switch[no-margin]{margin:0}.bcm-checkbox[no-margin]{margin:0}.bcm-radio-group[no-margin]{margin:0}.bcm-checkbox-group[no-margin]{margin:0}.bcm-range[no-margin]{margin:0}.bcm-form[no-margin]{margin:0}.bcm-form-group[no-margin]{margin:0}.bcm-list[no-margin]{margin:0}.bcm-colorpicker[no-margin]{margin:0}.bcm-date-picker[no-margin]{margin:0}.bcm-time-picker[no-margin]{margin:0}.bcm-datetime-picker[no-margin]{margin:0}.bcm-select[no-margin]{margin:0}.bcm-listbox[no-margin]{margin:0}*{box-sizing:border-box}.bcm-checkbox{outline:none;border:none;--bcm-checkbox-primary-color-default:var(--bcm-new-ds-color-blue-500);--bcm-checkbox-secondary-color-default:var(--bcm-new-ds-color-white);--bcm-checkbox-primary-color-hover:var(--bcm-new-ds-color-blue-600);--bcm-checkbox-secondary-color-hover:var(--bcm-new-ds-color-slate-50);--bcm-checkbox-primary-color-focus-visible:var(--bcm-new-ds-color-blue-800);--bcm-checkbox-secondary-color-focus-visible:var(--bcm-new-ds-color-slate-50);--bcm-checkbox-primary-color-active:var(--bcm-new-ds-color-blue-700);--bcm-checkbox-secondary-color-active:var(--bcm-new-ds-color-slate-50);--bcm-checkbox-primary-color-disabled:var(--bcm-new-ds-color-slate-300);--bcm-checkbox-secondary-color-disabled:var(--bcm-new-ds-color-slate-200);display:inline-flex;width:fit-content;flex-direction:column;margin-bottom:8px}.bcm-checkbox:focus,.bcm-checkbox:hover,.bcm-checkbox:active{outline:none;border:none}.bcm-checkbox *{box-sizing:border-box}.bcm-checkbox input[type=radio],.bcm-checkbox input[type=checkbox]{-webkit-appearance:none;appearance:none;background-color:#fff;margin:0;display:none}.bcm-checkbox__input{display:flex;flex-direction:row;align-items:flex-start;justify-content:flex-start;flex-wrap:nowrap;padding-top:4px}.bcm-checkbox.hidden{display:none}.bcm-checkbox :hover{cursor:pointer}.bcm-checkbox[disabled] :hover,.bcm-checkbox.disabled :hover{cursor:not-allowed}.bcm-checkbox .slot{font-family:\"Inter\", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;font-weight:500;color:var(--bcm-new-ds-color-slate-600)}.bcm-checkbox .slot:not(:empty){margin-left:8px;margin-right:8px}.bcm-checkbox-size-small .slot{font-size:12px;line-height:calc(12px + 8px);margin-top:-2.5px}.bcm-checkbox-size-small .bcm-checkbox__input{min-height:calc(24px - 4px)}.bcm-checkbox-size-small .bcm-checkbox__label-icon{width:14px;height:14px;min-width:14px;font-size:calc(10px - 2px)}.bcm-checkbox-size-medium .slot{font-size:calc(12px + 1px);line-height:calc(12px + 8px);margin-top:-1.5px}.bcm-checkbox-size-medium .bcm-checkbox__input{min-height:calc(32px - 4px)}.bcm-checkbox-size-medium .bcm-checkbox__label-icon{width:16px;height:16px;min-width:16px;font-size:10px}.bcm-checkbox-size-large .slot{font-size:16px;line-height:calc(16px + 8px);margin-top:-1.5px}.bcm-checkbox-size-large .bcm-checkbox__input{min-height:calc(32px - 4px)}.bcm-checkbox-size-large .bcm-checkbox__label-icon{width:18px;height:18px;min-width:18px;font-size:12px}.bcm-checkbox__label{display:flex;flex-direction:row;align-items:flex-start;justify-content:flex-start;flex-wrap:nowrap}.bcm-checkbox__label-icon{display:flex;flex-direction:column;align-items:center;justify-content:center;flex-wrap:nowrap;border-width:1px;border-style:solid;border-radius:2px}.bcm-checkbox__label-icon-indeterminate{position:relative}.bcm-checkbox__label-icon-indeterminate:after{content:\"\";display:block;position:absolute;width:70%;height:1.5px;background:var(--bcm-new-ds-color-white)}.bcm-checkbox__label-icon.bcm-radio__icon{width:16px;height:16px;box-sizing:border-box;border-radius:100px}.bcm-checkbox__label-icon.bcm-radio__icon .bcm-radio__icon-inner{width:10px;height:10px;border-radius:100px;background-color:var(--bcm-new-ds-color-white)}.bcm-checkbox .bcm-checkbox__label-icon{background:var(--bcm-checkbox-secondary-color-default);color:var(--bcm-checkbox-secondary-color-default);border-color:var(--bcm-new-ds-color-slate-300)}.bcm-checkbox .bcm-checkbox__label-icon-checked,.bcm-checkbox .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-new-ds-color-white);background-color:var(--bcm-checkbox-primary-color-default);border-color:var(--bcm-checkbox-primary-color-default)}.bcm-checkbox .bcm-checkbox__label-icon-checked.bcm-radio__icon,.bcm-checkbox .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon{border-color:var(--bcm-checkbox-primary-color-default);background-color:var(--bcm-checkbox-secondary-color-default)}.bcm-checkbox .bcm-checkbox__label-icon-checked.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon .bcm-radio__icon-inner{background-color:var(--bcm-checkbox-primary-color-default)}.bcm-checkbox .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-checkbox-primary-color-default)}.bcm-checkbox:hover .bcm-checkbox__label-icon{background:var(--bcm-checkbox-secondary-color-hover);color:var(--bcm-checkbox-secondary-color-hover);border-color:var(--bcm-checkbox-primary-color-hover)}.bcm-checkbox:hover .bcm-checkbox__label-icon-checked,.bcm-checkbox:hover .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-new-ds-color-white);background-color:var(--bcm-checkbox-primary-color-hover);border-color:var(--bcm-checkbox-primary-color-hover)}.bcm-checkbox:hover .bcm-checkbox__label-icon-checked.bcm-radio__icon,.bcm-checkbox:hover .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon{border-color:var(--bcm-checkbox-primary-color-hover);background-color:var(--bcm-checkbox-secondary-color-hover)}.bcm-checkbox:hover .bcm-checkbox__label-icon-checked.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox:hover .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon .bcm-radio__icon-inner{background-color:var(--bcm-checkbox-primary-color-hover)}.bcm-checkbox:hover .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-checkbox-primary-color-hover)}.bcm-checkbox:focus-visible .bcm-checkbox__label-icon{background:var(--bcm-checkbox-secondary-color-focus-visible);color:var(--bcm-checkbox-secondary-color-focus-visible);border-color:var(--bcm-checkbox-primary-color-focus-visible)}.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-checked,.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-new-ds-color-white);background-color:var(--bcm-checkbox-primary-color-focus-visible);border-color:var(--bcm-checkbox-primary-color-focus-visible)}.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-checked.bcm-radio__icon,.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon{border-color:var(--bcm-checkbox-primary-color-focus-visible);background-color:var(--bcm-checkbox-secondary-color-focus-visible)}.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-checked.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon .bcm-radio__icon-inner{background-color:var(--bcm-checkbox-primary-color-focus-visible)}.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-checkbox-primary-color-focus-visible)}.bcm-checkbox:active .bcm-checkbox__label-icon{background:var(--bcm-checkbox-secondary-color-active);color:var(--bcm-checkbox-secondary-color-active);border-color:var(--bcm-checkbox-primary-color-active)}.bcm-checkbox:active .bcm-checkbox__label-icon-checked,.bcm-checkbox:active .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-new-ds-color-white);background-color:var(--bcm-checkbox-primary-color-active);border-color:var(--bcm-checkbox-primary-color-active)}.bcm-checkbox:active .bcm-checkbox__label-icon-checked.bcm-radio__icon,.bcm-checkbox:active .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon{border-color:var(--bcm-checkbox-primary-color-active);background-color:var(--bcm-checkbox-secondary-color-active)}.bcm-checkbox:active .bcm-checkbox__label-icon-checked.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox:active .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon .bcm-radio__icon-inner{background-color:var(--bcm-checkbox-primary-color-active)}.bcm-checkbox:active .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-checkbox-primary-color-active)}.bcm-checkbox[disabled] .bcm-checkbox__label-icon,.bcm-checkbox.disabled .bcm-checkbox__label-icon{background:var(--bcm-checkbox-secondary-color-disabled);color:var(--bcm-checkbox-secondary-color-disabled);border-color:var(--bcm-checkbox-primary-color-disabled)}.bcm-checkbox[disabled] .bcm-checkbox__label-icon-checked,.bcm-checkbox[disabled] .bcm-checkbox__label-icon-indeterminate,.bcm-checkbox.disabled .bcm-checkbox__label-icon-checked,.bcm-checkbox.disabled .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-new-ds-color-white);background-color:var(--bcm-checkbox-primary-color-disabled);border-color:var(--bcm-checkbox-primary-color-disabled)}.bcm-checkbox[disabled] .bcm-checkbox__label-icon-checked.bcm-radio__icon,.bcm-checkbox[disabled] .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon,.bcm-checkbox.disabled .bcm-checkbox__label-icon-checked.bcm-radio__icon,.bcm-checkbox.disabled .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon{border-color:var(--bcm-checkbox-primary-color-disabled);background-color:var(--bcm-checkbox-secondary-color-disabled)}.bcm-checkbox[disabled] .bcm-checkbox__label-icon-checked.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox[disabled] .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox.disabled .bcm-checkbox__label-icon-checked.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox.disabled .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon .bcm-radio__icon-inner{background-color:var(--bcm-checkbox-primary-color-disabled)}.bcm-checkbox[disabled] .bcm-checkbox__label-icon-indeterminate,.bcm-checkbox.disabled .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-checkbox-primary-color-disabled)}.bcm-checkbox[no-margin] .bcm-checkbox__input{margin:0;min-height:0;padding:0}";
|
|
25
|
-
|
|
26
|
-
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
27
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
28
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
29
|
-
r = Reflect.decorate(decorators, target, key, desc);
|
|
30
|
-
else
|
|
31
|
-
for (var i = decorators.length - 1; i >= 0; i--)
|
|
32
|
-
if (d = decorators[i])
|
|
33
|
-
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
34
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
35
|
-
};
|
|
36
|
-
const BcmCheckbox = class {
|
|
37
|
-
constructor(hostRef) {
|
|
38
|
-
index.registerInstance(this, hostRef);
|
|
39
|
-
this.blur = index.createEvent(this, "bcm-blur", 7);
|
|
40
|
-
this.focus = index.createEvent(this, "bcm-focus", 7);
|
|
41
|
-
this.change = index.createEvent(this, "bcm-change", 7);
|
|
42
|
-
this.changeCheckbox = index.createEvent(this, "bcm-change-checkbox", 7);
|
|
43
|
-
this._id = generate.Generate.UID();
|
|
44
|
-
this.inGroup = false;
|
|
45
|
-
this.value = false;
|
|
46
|
-
this.checked = false;
|
|
47
|
-
this.name = undefined;
|
|
48
|
-
this.disabled = false;
|
|
49
|
-
this.hidden = false;
|
|
50
|
-
this.required = false;
|
|
51
|
-
this.label = undefined;
|
|
52
|
-
this.readonly = false;
|
|
53
|
-
this.size = bcm.Bcm.Size.medium;
|
|
54
|
-
this.indeterminate = null;
|
|
55
|
-
this.color = "blue";
|
|
56
|
-
this.caption = undefined;
|
|
57
|
-
this.noCaption = false;
|
|
58
|
-
this.captionError = undefined;
|
|
59
|
-
this.captionType = bcm.Bcm.Status.default;
|
|
60
|
-
this.captionCache = undefined;
|
|
61
|
-
this.captionTypeCache = undefined;
|
|
62
|
-
}
|
|
63
|
-
connectedCallback() {
|
|
64
|
-
this.captionCache = this.caption;
|
|
65
|
-
this.captionTypeCache = this.captionType;
|
|
66
|
-
this.value = this.checked;
|
|
67
|
-
}
|
|
68
|
-
componentDidRender() {
|
|
69
|
-
this.inputElement.checked = this.checked;
|
|
70
|
-
}
|
|
71
|
-
async onBcmFocus() {
|
|
72
|
-
this.el.focus();
|
|
73
|
-
}
|
|
74
|
-
async onBcmBlur() {
|
|
75
|
-
this.el.blur();
|
|
76
|
-
}
|
|
77
|
-
async setClear() {
|
|
78
|
-
this.check(false);
|
|
79
|
-
this.handleChange();
|
|
80
|
-
await utils.delay(10);
|
|
81
|
-
return Promise.resolve();
|
|
82
|
-
}
|
|
83
|
-
async resetCaption() {
|
|
84
|
-
await utils.delay(10);
|
|
85
|
-
this.caption = this.captionCache;
|
|
86
|
-
this.captionType = this.captionTypeCache;
|
|
87
|
-
this.captionError = null;
|
|
88
|
-
await utils.delay(10);
|
|
89
|
-
return Promise.resolve();
|
|
90
|
-
}
|
|
91
|
-
handleChange() {
|
|
92
|
-
this.checked = this.inputElement.checked;
|
|
93
|
-
this.value = this.checked;
|
|
94
|
-
if (!this.indeterminate) {
|
|
95
|
-
this.changeCheckbox.emit();
|
|
96
|
-
this.change.emit({
|
|
97
|
-
name: this.name,
|
|
98
|
-
value: this.checked
|
|
99
|
-
});
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
watchIndeterminate(newValue, oldValue) {
|
|
103
|
-
if (newValue != oldValue) {
|
|
104
|
-
this.inputElement.checked = this.indeterminate == bcm.Bcm.IndeterminateType.determinate ? true : false;
|
|
105
|
-
this.handleChange();
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
async set(data) {
|
|
109
|
-
if (typeof data === 'boolean') {
|
|
110
|
-
await this.check(data);
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
async get() {
|
|
114
|
-
return this.checked || false;
|
|
115
|
-
}
|
|
116
|
-
async check(uncheck = true) {
|
|
117
|
-
this.inputElement.checked = uncheck;
|
|
118
|
-
this.handleChange();
|
|
119
|
-
}
|
|
120
|
-
handleKeyUp(ev) {
|
|
121
|
-
if (ev.keyCode == bcm.Bcm.KeyCode.space || ev.keyCode == bcm.Bcm.KeyCode.enter) {
|
|
122
|
-
if (!this.disabled && !this.readonly) {
|
|
123
|
-
this.inputElement.checked = !this.inputElement.checked;
|
|
124
|
-
this.handleChange();
|
|
125
|
-
}
|
|
126
|
-
ev.stopPropagation();
|
|
127
|
-
ev.preventDefault();
|
|
128
|
-
return false;
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
watchChecked() {
|
|
132
|
-
if (this.checked) {
|
|
133
|
-
this.resetCaption();
|
|
134
|
-
}
|
|
135
|
-
this.value = this.checked;
|
|
136
|
-
}
|
|
137
|
-
setColor(color = this.color) {
|
|
138
|
-
if (!color)
|
|
139
|
-
return;
|
|
140
|
-
const prefix = `--bcm-checkbox`;
|
|
141
|
-
return {
|
|
142
|
-
[`${prefix}-primary-color-default`]: colorHelper.ColorHelper.dsColor(color + '-500'),
|
|
143
|
-
[`${prefix}-primary-color-hover`]: colorHelper.ColorHelper.dsColor(color + '-600'),
|
|
144
|
-
[`${prefix}-primary-color-focus-visible`]: colorHelper.ColorHelper.dsColor(color + '-800'),
|
|
145
|
-
[`${prefix}-primary-color-active`]: colorHelper.ColorHelper.dsColor(color + '-700'),
|
|
146
|
-
// [`${prefix}-primary-color-disabled`]: ColorHelper.dsColor(color + '-300'),
|
|
147
|
-
[`${prefix}-secondary-color-default`]: colorHelper.ColorHelper.dsColor('white'),
|
|
148
|
-
[`${prefix}-secondary-color-hover`]: colorHelper.ColorHelper.dsColor('slate-50'),
|
|
149
|
-
[`${prefix}-secondary-color-focus-visible`]: colorHelper.ColorHelper.dsColor('slate-50'),
|
|
150
|
-
[`${prefix}-secondary-color-active`]: colorHelper.ColorHelper.dsColor('slate-50'),
|
|
151
|
-
// [`${prefix}-secondary-color-disabled`]: ColorHelper.dsColor('slate-200')
|
|
152
|
-
};
|
|
153
|
-
}
|
|
154
|
-
render() {
|
|
155
|
-
const { label, _id, indeterminate, hidden, disabled, checked, readonly, required, caption, captionError, captionType, noCaption, size } = this;
|
|
156
|
-
//////
|
|
157
|
-
const bcmCheckboxClass = index$1.classnames('bcm-checkbox', `bcm-checkbox-size-${size}`, {
|
|
158
|
-
'error': captionType == bcm.Bcm.Status.error,
|
|
159
|
-
hidden,
|
|
160
|
-
checked,
|
|
161
|
-
disabled,
|
|
162
|
-
required,
|
|
163
|
-
readonly,
|
|
164
|
-
});
|
|
165
|
-
const bcmCheckboxIconClass = index$1.classnames('bcm-checkbox__label-icon', 'bcm-checkbox__label-icon-lite', 'bcm-checkbox__label-icon-' + indeterminate, {
|
|
166
|
-
'bcm-checkbox__label-icon-checked': checked,
|
|
167
|
-
});
|
|
168
|
-
const bcmCheckboxLabelClass = index$1.classnames('bcm-checkbox__label');
|
|
169
|
-
const bcmCheckboxInputClass = index$1.classnames('bcm-checkbox__input');
|
|
170
|
-
return (index.h(index.Host, { tabindex: "0", onFocus: () => this.focus.emit(this.el), onBlur: () => this.blur.emit(this.el), style: this.setColor(this.color), class: bcmCheckboxClass, disabled: disabled }, index.h("span", { hidden: true }, index.h("slot", null)), label && index.h("bcm-label", { htmlFor: `input-${_id}`, type: captionType, value: label, required: required }), index.h("div", { class: bcmCheckboxInputClass }, index.h("input", { id: `input-${_id}`, type: "checkbox", checked: checked, disabled: disabled, required: required, readonly: readonly, onChange: () => { !disabled && !readonly && (this.handleChange()); }, ref: el => (this.inputElement = el) }), index.h("label", { class: bcmCheckboxLabelClass, htmlFor: `input-${_id}` }, index.h("span", { class: bcmCheckboxIconClass }, index.h("bcm-icon", { icon: "far fa-check" })), index.h(slotTemplate.SlotTemplate, { className: "slot" }))), index.h(captionTemplate.CaptionTemplate, { noCaption: noCaption, captionType: captionType, captionError: captionError, caption: caption })));
|
|
171
|
-
}
|
|
172
|
-
get el() { return index.getElement(this); }
|
|
173
|
-
static get watchers() { return {
|
|
174
|
-
"indeterminate": ["watchIndeterminate"],
|
|
175
|
-
"checked": ["watchChecked"]
|
|
176
|
-
}; }
|
|
177
|
-
};
|
|
178
|
-
__decorate([
|
|
179
|
-
isLoadDecorator.IsLoad()
|
|
180
|
-
], BcmCheckbox.prototype, "el", void 0);
|
|
181
|
-
BcmCheckbox.style = checkboxCss;
|
|
182
|
-
|
|
183
|
-
const BcmTypography = class {
|
|
184
|
-
constructor(hostRef) {
|
|
185
|
-
index.registerInstance(this, hostRef);
|
|
186
|
-
}
|
|
187
|
-
render() {
|
|
188
|
-
return (index.h(index.Host, { class: "bcm-ui-element bcm-ui-content-display" }, index.h("slot", null)));
|
|
189
|
-
}
|
|
190
|
-
get el() { return index.getElement(this); }
|
|
191
|
-
};
|
|
192
|
-
|
|
193
|
-
exports.bcm_checkbox = BcmCheckbox;
|
|
194
|
-
exports.bcm_typography = BcmTypography;
|