bromcom-ui 2.10.1-rc.0 → 2.10.1-rc.2
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-0208acef.entry.js +7 -0
- package/dist/bromcom-ui/{p-d345d37b.entry.js → p-027e818d.entry.js} +1 -1
- package/dist/bromcom-ui/{p-61334720.entry.js → p-06071e98.entry.js} +1 -1
- package/dist/bromcom-ui/p-0e2cff0d.js +5 -0
- package/dist/bromcom-ui/{p-0207059a.js → p-1064895e.js} +1 -1
- 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-e037ee2b.js → p-170cf07d.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-0db33506.entry.js → p-21d98283.entry.js} +1 -1
- package/dist/bromcom-ui/p-228c74e9.entry.js +5 -0
- package/dist/bromcom-ui/{p-4542066c.js → p-2565ccce.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-5a97d31c.entry.js → p-2ee20f32.entry.js} +1 -1
- package/dist/bromcom-ui/{p-2ce15cc8.entry.js → p-313f3908.entry.js} +1 -1
- package/dist/bromcom-ui/{p-552dfb63.entry.js → p-33f3295e.entry.js} +1 -1
- package/dist/bromcom-ui/p-3432a82d.js +19 -0
- package/dist/bromcom-ui/{p-dca22282.entry.js → p-3ec44b04.entry.js} +1 -1
- package/dist/bromcom-ui/p-40b85b9b.entry.js +5 -0
- package/dist/bromcom-ui/{p-0efc9196.entry.js → p-430c0a24.entry.js} +1 -1
- package/dist/bromcom-ui/p-43a281a4.js +5 -0
- package/dist/bromcom-ui/{p-c39f002b.js → p-4b8f90ef.js} +1 -1
- package/dist/bromcom-ui/{p-05bd4980.entry.js → p-4e5006b1.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-ab3cd547.entry.js → p-55547a6e.entry.js} +1 -1
- package/dist/bromcom-ui/{p-468157a0.entry.js → p-5699f67d.entry.js} +1 -1
- package/dist/bromcom-ui/{p-c851688d.entry.js → p-56ec6518.entry.js} +1 -1
- package/dist/bromcom-ui/{p-6660ba14.entry.js → p-57c9904b.entry.js} +1 -1
- package/dist/bromcom-ui/{p-d3bd9ee0.entry.js → p-5b5f9b00.entry.js} +1 -1
- package/dist/bromcom-ui/{p-4d8067b9.entry.js → p-5c671967.entry.js} +1 -1
- package/dist/bromcom-ui/p-5da0f9ef.entry.js +5 -0
- 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-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-599889d7.entry.js → p-69eb7be7.entry.js} +1 -1
- package/dist/bromcom-ui/{p-034bbcdd.js → p-6edf985f.js} +1 -1
- package/dist/bromcom-ui/{p-7c94a7b0.entry.js → p-7149c15e.entry.js} +1 -1
- package/dist/bromcom-ui/{p-197aba37.js → p-74e6d2b6.js} +1 -1
- package/dist/bromcom-ui/p-752057b7.entry.js +5 -0
- package/dist/bromcom-ui/{p-dd1a0284.entry.js → p-7814999e.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-5ae0a59b.js → p-7e44e6b5.js} +1 -1
- package/dist/bromcom-ui/{p-51ba92e5.entry.js → p-7f1681e2.entry.js} +1 -1
- package/dist/bromcom-ui/{p-8fa5700a.entry.js → p-82caef35.entry.js} +1 -1
- package/dist/bromcom-ui/p-84089734.entry.js +5 -0
- package/dist/bromcom-ui/p-84307b0c.entry.js +5 -0
- package/dist/bromcom-ui/{p-e45c1546.js → p-85eedabc.js} +1 -1
- package/dist/bromcom-ui/{p-1d04942a.entry.js → p-8846b944.entry.js} +1 -1
- package/dist/bromcom-ui/{p-035c6dbc.entry.js → p-893ecfd7.entry.js} +1 -1
- package/dist/bromcom-ui/p-8b202d9e.js +5 -0
- package/dist/bromcom-ui/{p-3c7a0345.js → p-8c018ae0.js} +1 -1
- package/dist/bromcom-ui/p-8c1834d9.entry.js +5 -0
- package/dist/bromcom-ui/{p-704352eb.entry.js → p-8cbae172.entry.js} +1 -1
- package/dist/bromcom-ui/{p-f9988c3c.entry.js → p-95e3e645.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-da20e681.entry.js → p-9b9f36d5.entry.js} +1 -1
- package/dist/bromcom-ui/{p-2d59be96.js → p-9c31bd27.js} +1 -1
- package/dist/bromcom-ui/{p-3bae35e5.entry.js → p-9f67eec6.entry.js} +1 -1
- package/dist/bromcom-ui/p-a25c8a55.js +5 -0
- package/dist/bromcom-ui/{p-1a33d7a3.entry.js → p-a664cc20.entry.js} +1 -1
- package/dist/bromcom-ui/p-ae57f046.entry.js +5 -0
- package/dist/bromcom-ui/{p-47df8e77.entry.js → p-b193eb3a.entry.js} +1 -1
- package/dist/bromcom-ui/{p-a42879c1.entry.js → p-b2687899.entry.js} +1 -1
- package/dist/bromcom-ui/p-b27218ea.entry.js +5 -0
- package/dist/bromcom-ui/p-b77e861c.entry.js +5 -0
- package/dist/bromcom-ui/{p-6e7bb16f.entry.js → p-ba9eff2a.entry.js} +1 -1
- package/dist/bromcom-ui/{p-ddb6f31a.entry.js → p-bc26bfcc.entry.js} +1 -1
- package/dist/bromcom-ui/{p-5dd45752.entry.js → p-bda74b16.entry.js} +1 -1
- package/dist/bromcom-ui/{p-fa08ba52.entry.js → p-be778e45.entry.js} +1 -1
- package/dist/bromcom-ui/{p-107f11df.entry.js → p-c1a992e7.entry.js} +1 -1
- package/dist/bromcom-ui/p-c35c11a7.js +5 -0
- package/dist/bromcom-ui/{p-91623d42.entry.js → p-c8b1c1c6.entry.js} +1 -1
- package/dist/bromcom-ui/{p-d4755f0d.entry.js → p-cae90479.entry.js} +1 -1
- package/dist/bromcom-ui/{p-21fed956.entry.js → p-cd567621.entry.js} +1 -1
- package/dist/bromcom-ui/p-ceafe408.entry.js +5 -0
- package/dist/bromcom-ui/{p-751baf81.entry.js → p-d2f9f353.entry.js} +1 -1
- package/dist/bromcom-ui/p-d2fe5024.entry.js +5 -0
- package/dist/bromcom-ui/{p-daa45693.entry.js → p-d498d79b.entry.js} +1 -1
- package/dist/bromcom-ui/{p-63138ee5.entry.js → p-d551a51d.entry.js} +1 -1
- package/dist/bromcom-ui/{p-00e1c9bb.entry.js → p-d685ffff.entry.js} +1 -1
- package/dist/bromcom-ui/p-d9331f0f.entry.js +5 -0
- package/dist/bromcom-ui/{p-1ba21e9c.entry.js → p-d9ecc3d8.entry.js} +1 -1
- package/dist/bromcom-ui/{p-0c8abcd8.entry.js → p-dc6e9205.entry.js} +1 -1
- package/dist/bromcom-ui/{p-cd724916.js → p-e02e88fb.js} +1 -1
- package/dist/bromcom-ui/{p-4d7ea23c.entry.js → p-ece578ef.entry.js} +1 -1
- package/dist/bromcom-ui/p-f3133898.entry.js +5 -0
- package/dist/bromcom-ui/{p-f4576a4f.entry.js → p-f4af4e66.entry.js} +1 -1
- package/dist/bromcom-ui/p-f7dbd393.entry.js +5 -0
- package/dist/bromcom-ui/p-f800e665.js +5 -0
- package/dist/bromcom-ui/{p-5efc5c02.entry.js → p-f84d2e42.entry.js} +1 -1
- package/dist/bromcom-ui/{p-61ad661f.entry.js → p-f909d419.entry.js} +1 -1
- package/dist/bromcom-ui/{p-85d8092e.entry.js → p-f9739222.entry.js} +1 -1
- package/dist/bromcom-ui/p-fc1942c6.js +5 -0
- package/dist/bromcom-ui/{p-401a6ab5.entry.js → p-fcfc1a26.entry.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_11.cjs.entry.js +33041 -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-checkbox_2.cjs.entry.js +7 -7
- 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-list_3.cjs.entry.js +48 -28
- 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-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/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-f0d6805e.js} +10 -1
- package/dist/cjs/{global-532b40dc.js → global-c61c9656.js} +1 -1
- package/dist/cjs/{index-e05a7c6f.js → index-7eed931f.js} +1625 -24
- package/dist/cjs/{input-template-2b8e0195.js → input-template-38924cda.js} +2 -2
- package/dist/cjs/{json-parse-decarator-668b7724.js → json-parse-decarator-a2024131.js} +1 -1
- package/dist/cjs/label-template-8dc10d0a.js +24 -0
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{number-helper-3a911c0f.js → number-helper-7c3fefa2.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-a737bf36.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-3b876d4d.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-f98dd7a7.js} +6 -6
- package/dist/cjs/{validators-910556c5.js → validators-f2869ecb.js} +1 -1
- package/dist/collection/collection-manifest.json +1 -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/molecules/search/search.css +0 -89
- package/dist/collection/components/molecules/switch/switch.css +0 -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 +0 -89
- package/dist/collection/components/organism/list/list.js +46 -7
- 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 +9 -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 +5 -3
- 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-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 +10 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +1 -0
- package/dist/components/input.js +1 -1
- package/dist/components/label.js +43 -20
- package/dist/components/list.js +32 -10
- 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-colorful_2.entry.js → bcm-button_11.entry.js} +15746 -338
- 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-checkbox_2.entry.js +14 -14
- 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-list_3.entry.js +52 -32
- 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-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/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-fff9c034.js} +11 -2
- package/dist/esm/{global-34d95eec.js → global-446a0022.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/{index-a6d9d0af.js → index-e4b6a4ce.js} +1612 -26
- package/dist/esm/{input-template-1df1e8d3.js → input-template-ff26f463.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-3e533274.js} +2 -2
- package/dist/esm/label-template-989d1700.js +22 -0
- package/dist/esm/loader.js +5 -5
- package/dist/esm/{number-helper-a5eab393.js → number-helper-c1ee913b.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-7d8bb462.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-500cb902.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-c22623e4.js} +9 -9
- package/dist/esm/{utils-b3338faf.js → utils-57652744.js} +1 -1
- package/dist/esm/{validators-7979c137.js → validators-93758ad4.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/organism/list/list.d.ts +2 -0
- package/dist/types/components.d.ts +35 -6
- package/dist/types/helper/generate.d.ts +2 -0
- package/dist/types/models/bcm.d.ts +3 -0
- package/dist/types/templates/caption-template.d.ts +1 -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-32fd9854.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-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-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-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/label-template-d9bee58a.js +0 -23
- package/dist/cjs/moment-d06b012f.js +0 -4601
- package/dist/collection/components/atoms/label/label.css +0 -158
- package/dist/components/label-template.js +0 -21
- package/dist/esm/bcm-button.entry.js +0 -368
- 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-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-c4568336.js +0 -1594
- package/dist/esm/label-template-639fcd41.js +0 -21
- package/dist/esm/moment-15cd9198.js +0 -4598
|
@@ -111,6 +111,17 @@ export namespace Components {
|
|
|
111
111
|
"size": SizeTypes1;
|
|
112
112
|
"type": 'checkbox' | 'radio' | 'button';
|
|
113
113
|
}
|
|
114
|
+
interface BcmCaption {
|
|
115
|
+
"caption": string;
|
|
116
|
+
"captionClasses": any;
|
|
117
|
+
"captionError": string;
|
|
118
|
+
"captionType": StatusTypes1;
|
|
119
|
+
"customErrorMessage": string;
|
|
120
|
+
"maxLength": any;
|
|
121
|
+
"noCaption": boolean;
|
|
122
|
+
"size": SizeTypes1;
|
|
123
|
+
"value": any;
|
|
124
|
+
}
|
|
114
125
|
interface BcmCard {
|
|
115
126
|
"_id": string;
|
|
116
127
|
"color": string;
|
|
@@ -622,13 +633,11 @@ export namespace Components {
|
|
|
622
633
|
"_id": string;
|
|
623
634
|
}
|
|
624
635
|
interface BcmLabel {
|
|
625
|
-
/**
|
|
626
|
-
* Props *
|
|
627
|
-
*/
|
|
628
636
|
"_id": string;
|
|
629
637
|
"form": any;
|
|
630
638
|
"hidden": boolean;
|
|
631
639
|
"htmlFor": any;
|
|
640
|
+
"label": string;
|
|
632
641
|
"required": boolean;
|
|
633
642
|
"size": SizeTypes1;
|
|
634
643
|
"tooltip": string;
|
|
@@ -706,6 +715,7 @@ export namespace Components {
|
|
|
706
715
|
"show": () => Promise<void>;
|
|
707
716
|
"size": SizeTypes;
|
|
708
717
|
"stopDeepClean": boolean;
|
|
718
|
+
"tempId": string;
|
|
709
719
|
"template": string;
|
|
710
720
|
"tooltip": string;
|
|
711
721
|
"treeview": boolean;
|
|
@@ -1889,6 +1899,12 @@ declare global {
|
|
|
1889
1899
|
prototype: HTMLBcmButtonGroupElement;
|
|
1890
1900
|
new (): HTMLBcmButtonGroupElement;
|
|
1891
1901
|
};
|
|
1902
|
+
interface HTMLBcmCaptionElement extends Components.BcmCaption, HTMLStencilElement {
|
|
1903
|
+
}
|
|
1904
|
+
var HTMLBcmCaptionElement: {
|
|
1905
|
+
prototype: HTMLBcmCaptionElement;
|
|
1906
|
+
new (): HTMLBcmCaptionElement;
|
|
1907
|
+
};
|
|
1892
1908
|
interface HTMLBcmCardElement extends Components.BcmCard, HTMLStencilElement {
|
|
1893
1909
|
}
|
|
1894
1910
|
var HTMLBcmCardElement: {
|
|
@@ -2452,6 +2468,7 @@ declare global {
|
|
|
2452
2468
|
"bcm-breadcrumb": HTMLBcmBreadcrumbElement;
|
|
2453
2469
|
"bcm-button": HTMLBcmButtonElement;
|
|
2454
2470
|
"bcm-button-group": HTMLBcmButtonGroupElement;
|
|
2471
|
+
"bcm-caption": HTMLBcmCaptionElement;
|
|
2455
2472
|
"bcm-card": HTMLBcmCardElement;
|
|
2456
2473
|
"bcm-checkbox": HTMLBcmCheckboxElement;
|
|
2457
2474
|
"bcm-checkbox-group": HTMLBcmCheckboxGroupElement;
|
|
@@ -2637,6 +2654,17 @@ declare namespace LocalJSX {
|
|
|
2637
2654
|
"size"?: SizeTypes1;
|
|
2638
2655
|
"type"?: 'checkbox' | 'radio' | 'button';
|
|
2639
2656
|
}
|
|
2657
|
+
interface BcmCaption {
|
|
2658
|
+
"caption"?: string;
|
|
2659
|
+
"captionClasses"?: any;
|
|
2660
|
+
"captionError"?: string;
|
|
2661
|
+
"captionType"?: StatusTypes1;
|
|
2662
|
+
"customErrorMessage"?: string;
|
|
2663
|
+
"maxLength"?: any;
|
|
2664
|
+
"noCaption"?: boolean;
|
|
2665
|
+
"size"?: SizeTypes1;
|
|
2666
|
+
"value"?: any;
|
|
2667
|
+
}
|
|
2640
2668
|
interface BcmCard {
|
|
2641
2669
|
"_id"?: string;
|
|
2642
2670
|
"color"?: string;
|
|
@@ -3072,13 +3100,11 @@ declare namespace LocalJSX {
|
|
|
3072
3100
|
"onBcm-items"?: (event: BcmItemsCustomEvent<any>) => void;
|
|
3073
3101
|
}
|
|
3074
3102
|
interface BcmLabel {
|
|
3075
|
-
/**
|
|
3076
|
-
* Props *
|
|
3077
|
-
*/
|
|
3078
3103
|
"_id"?: string;
|
|
3079
3104
|
"form"?: any;
|
|
3080
3105
|
"hidden"?: boolean;
|
|
3081
3106
|
"htmlFor"?: any;
|
|
3107
|
+
"label"?: string;
|
|
3082
3108
|
"required"?: boolean;
|
|
3083
3109
|
"size"?: SizeTypes1;
|
|
3084
3110
|
"tooltip"?: string;
|
|
@@ -3150,6 +3176,7 @@ declare namespace LocalJSX {
|
|
|
3150
3176
|
"searchable"?: boolean;
|
|
3151
3177
|
"size"?: SizeTypes;
|
|
3152
3178
|
"stopDeepClean"?: boolean;
|
|
3179
|
+
"tempId"?: string;
|
|
3153
3180
|
"template"?: string;
|
|
3154
3181
|
"tooltip"?: string;
|
|
3155
3182
|
"treeview"?: boolean;
|
|
@@ -4013,6 +4040,7 @@ declare namespace LocalJSX {
|
|
|
4013
4040
|
"bcm-breadcrumb": BcmBreadcrumb;
|
|
4014
4041
|
"bcm-button": BcmButton;
|
|
4015
4042
|
"bcm-button-group": BcmButtonGroup;
|
|
4043
|
+
"bcm-caption": BcmCaption;
|
|
4016
4044
|
"bcm-card": BcmCard;
|
|
4017
4045
|
"bcm-checkbox": BcmCheckbox;
|
|
4018
4046
|
"bcm-checkbox-group": BcmCheckboxGroup;
|
|
@@ -4121,6 +4149,7 @@ declare module "@stencil/core" {
|
|
|
4121
4149
|
"bcm-breadcrumb": LocalJSX.BcmBreadcrumb & JSXBase.HTMLAttributes<HTMLBcmBreadcrumbElement>;
|
|
4122
4150
|
"bcm-button": LocalJSX.BcmButton & JSXBase.HTMLAttributes<HTMLBcmButtonElement>;
|
|
4123
4151
|
"bcm-button-group": LocalJSX.BcmButtonGroup & JSXBase.HTMLAttributes<HTMLBcmButtonGroupElement>;
|
|
4152
|
+
"bcm-caption": LocalJSX.BcmCaption & JSXBase.HTMLAttributes<HTMLBcmCaptionElement>;
|
|
4124
4153
|
"bcm-card": LocalJSX.BcmCard & JSXBase.HTMLAttributes<HTMLBcmCardElement>;
|
|
4125
4154
|
"bcm-checkbox": LocalJSX.BcmCheckbox & JSXBase.HTMLAttributes<HTMLBcmCheckboxElement>;
|
|
4126
4155
|
"bcm-checkbox-group": LocalJSX.BcmCheckboxGroup & JSXBase.HTMLAttributes<HTMLBcmCheckboxGroupElement>;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import { Bcm } from "../models";
|
|
1
2
|
export declare class Generate {
|
|
2
3
|
static UID: (prefix?: string) => string;
|
|
3
4
|
static getIconAttrWithStatusType: (status: any, loading?: boolean) => {
|
|
4
5
|
icon: string;
|
|
5
6
|
};
|
|
7
|
+
static prettify<T>(input: T): Bcm.Prettify<T>;
|
|
6
8
|
static createComponent: (el: any, props: any, area?: any) => HTMLElement;
|
|
7
9
|
static createElement: (tag: string, props: any) => HTMLElement;
|
|
8
10
|
static debounceInput: (func: any, wait: any, immediate: any, callBack?: any) => () => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bromcom-ui",
|
|
3
|
-
"version": "2.10.1-rc.
|
|
3
|
+
"version": "2.10.1-rc.2",
|
|
4
4
|
"description": "Bromcom UI is a collection of web components built with StencilJS",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"distRemove": "rm -rf ./dist/cjs && rm -rf ./dist/esm && rm -rf ./dist/types && rm -rf ./dist/collection && rm -r ./dist/index.cjs.js && rm -r ./dist/index.js",
|
|
32
32
|
"pre-version": "npm run build && npm version prerelease --preid=rc && npm run build && npm run create-locale-folder-to-esm",
|
|
33
33
|
"ds-version": "npm run build && npm version patch && npm run build",
|
|
34
|
-
"storybook": "start-storybook -p 8000",
|
|
34
|
+
"storybook": "start-storybook -p 8000 -c .storybook ",
|
|
35
35
|
"build:storybook": "build-storybook",
|
|
36
36
|
"generate:storybook": "npm run build && npm run build:storybook",
|
|
37
37
|
"tsc-helper": "npm run clean:helper && cd ./src/global/helper && tsc index.ts --declaration --declarationMap --allowJs --outDir ./../../../helper",
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built with Stencil
|
|
3
|
-
* Copyright (c) Bromcom.
|
|
4
|
-
*/
|
|
5
|
-
import{r as i,h as t,H as e,g as s,c as p}from"./p-e037ee2b.js";import{c as h}from"./p-bed627ab.js";import{G as a}from"./p-82a5033e.js";import{B as o,a as l}from"./p-a313fba6.js";import{L as n}from"./p-2a5d176d.js";import"./p-4798d827.js";import"./p-626a65e9.js";import"./p-7a4cc259.js";import"./p-6b5ed4d8.js";import"./p-32fd9854.js";import{T as r}from"./p-2d59be96.js";import"./p-5ae0a59b.js";import"./p-e45c1546.js";import"./p-0207059a.js";import"./p-034bbcdd.js";import"./p-4213ba24.js";import"./p-436364c8.js";import"./p-3c7a0345.js";import"./p-6e5f5f36.js";const m=class{constructor(t){i(this,t),this._id=a.UID(),this.required=!1,this.value=void 0,this.size="medium",this.form=void 0,this.htmlFor=void 0,this.hidden=!1,this.type=o.Status.default,this.tooltip=void 0}render(){const{required:i,value:s,size:p,form:a,htmlFor:o,hidden:l,type:r,tooltip:m}=this,c=h("bcm-label",{hidden:l}),x=t(n,{form:a,htmlFor:o,value:s,size:p,type:r,required:i});return t(e,{class:c},x,m&&t("bcm-tooltip",{message:m,placement:"top",trigger:"hover"},t("bcm-icon",{icon:"far fa-question-circle"})))}get el(){return s(this)}};m.style='@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-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)}';const c=class{constructor(t){i(this,t),this.bcmTooltipShow=p(this,"bcmTooltipShow",7),this.bcmTooltipHide=p(this,"bcmTooltipHide",7),this._id=a.UID(),this.message="",this.placement=l.Placement.top,this.trigger=l.TriggerType.click,this.open=!1,this.color="slate",this.size=l.Size.medium,this.openDelay=0,this.closeDelay=0,this.autoHide=!1,this.targetId=void 0,this.tooltip=void 0}emitShow(){this.bcmTooltipShow.emit()}emitHide(){this.bcmTooltipHide.emit()}connectedCallback(){this.tooltip=new r({targetId:this.targetId||this._id,message:this.message,placement:this.placement,color:this.color,trigger:this.trigger,size:this.size,openDelay:this.openDelay,closeDelay:this.closeDelay,autoHide:this.autoHide,emitShow:()=>this.emitShow(),emitHide:()=>this.emitHide()})}componentDidLoad(){this.tooltip.listener()}componentDidRender(){this.tooltip.message=this.message,this.tooltip.placement=this.placement,this.tooltip.color=this.color,this.tooltip.trigger=this.trigger,this.tooltip.size=this.size,this.tooltip.openDelay=this.openDelay,this.tooltip.closeDelay=this.closeDelay,this.tooltip.autoHide=this.autoHide,this.tooltip.update()}disconnectedCallback(){this.tooltip.destroy()}async show(){this.tooltip.show()}async hide(){this.tooltip.hide()}async toggle(){this.tooltip.toggle()}render(){return t(e,{class:"tw-inline-flex tw-h-fit tw-w-fit",role:"tooltip","aria-hidden":"true"},t("slot",null))}get el(){return s(this)}};export{m as bcm_label,c as bcm_tooltip}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built with Stencil
|
|
3
|
-
* Copyright (c) Bromcom.
|
|
4
|
-
*/
|
|
5
|
-
import{r as t,c as i,h as s,H as e,g as h}from"./p-e037ee2b.js";import{I as r}from"./p-8e5e362a.js";import"./p-4798d827.js";import"./p-626a65e9.js";import{G as a}from"./p-82a5033e.js";import"./p-7a4cc259.js";import"./p-6b5ed4d8.js";import"./p-32fd9854.js";import"./p-5ae0a59b.js";import{a as o}from"./p-a313fba6.js";import{C as m}from"./p-32df2233.js";import{c as p}from"./p-bed627ab.js";import"./p-3fac58f7.js";import{L as c}from"./p-2a5d176d.js";import"./p-2e73d572.js";import{h as n}from"./p-76edf59f.js";import"./p-436364c8.js";import"./p-3c7a0345.js";import"./p-034bbcdd.js";import"./p-e45c1546.js";import"./p-0207059a.js";import"./p-4213ba24.js";const d=class{constructor(s){t(this,s),this.change=i(this,"bcm-change",7),this.onChange=t=>{this.value=this.getValueObject(t.detail),this.change.emit(this.value)},this.getFormat=()=>{if(!this.format)switch(this.type){case"time":return this.showSecond?"HH:mm:ss":this.showMinute?"HH:mm":"HH";case"date":default:return"DD/MM/YYYY";case"datetime":return this.showSecond?"DD/MM/YYYY HH:mm:ss":this.showMinute?"DD/MM/YYYY HH:mm":"DD/MM/YYYY HH";case"week":return"YYYY-wo";case"month":return"MM/YYYY";case"year":return"YYYY"}return this.format},this.getValueObject=t=>this.range?this.getRangeValueObject(t):this.createValueObject(t),this.getRangeValueObject=t=>{const[i,s]=t._i||[],e=this.createValueObject(i),h=this.createValueObject(s);return Object.assign({isValid:e.isValid&&h.isValid,start:e,end:h,date:[e.date,h.date],timestamp:[e.timestamp,h.timestamp],value:`${e.value} - ${h.value}`},"time"===this.type&&{time:`${e.time} - ${h.time}`})},this.createValueObject=t=>t&&n(t).isValid()?Object.assign({isValid:n(t).isValid(),date:n(t).toDate(),timestamp:n(t).valueOf(),dateObject:{year:n(t).year(),day:n(t).date(),month:n(t).month(),dayOfWeek:n(t).day(),monthFirstDay:n(t).startOf("month").day()},value:n(t).format(this.getFormat())},"time"===this.type&&{time:n(t).format(this.getFormat()),timeObject:{hour:n(t).hour(),minute:n(t).minute(),second:n(t).second()}}):null,this._id=a.UID(),this.label=void 0,this.placeholder=void 0,this.size=o.Size.medium,this.fullWidth=!1,this.required=!1,this.clearable=!1,this.disabled=!1,this.noMargin=!1,this.caption=void 0,this.noCaption=!1,this.captionType=o.Status.default,this.captionError=void 0,this.name=void 0,this.value=void 0,this.type="date",this.format=void 0,this.range=!1,this.showTime=!1,this.showNow=!0,this.showHour=!0,this.showMinute=!0,this.showSecond=!1,this.use12Hours=!1,this.hourStep=1,this.minuteStep=1,this.secondStep=1,this.hideDisabledOptions=!1,this.disabledTime=void 0,this.showToday=!0,this.disabledDates=void 0}async getValue(){return this.value}async get(){var t;return(null===(t=this.value)||void 0===t?void 0:t.timestamp)||null}async set(t){this.getPickerElement().set(t)}async setClear(){this.getPickerElement().set(null)}async resetCaption(){this.captionType="default",this.captionError=null}async getInput(){return this.el.querySelector("input")}async isValid(){var t;return(null===(t=this.getValueObject(this.value))||void 0===t?void 0:t.isValid)||!1}getPickerElement(){return this.el.querySelector("bcm-rc-picker")}render(){const{label:t,size:i,captionType:h,required:r,_id:a}=this;return s(e,{class:p("bcm-ui-element bcm-ui-input","tw-relative tw-m-0 tw-inline-flex tw-w-full tw-flex-col",{"tw-max-w-[256px]":!this.fullWidth,"tw-mb-2":!this.noMargin})},t&&s(c,{size:i,type:h,value:t,required:r,htmlFor:a}),s("bcm-rc-picker",{id:a+"-picker",class:p("w-full tw-flex"),onBcmRCPickerChange:t=>this.onChange(t),disabled:this.disabled,clearable:this.clearable,size:i,placeholder:this.placeholder,error:"error"===this.captionType,type:this.type,format:this.getFormat(),range:this.range,showToday:this.showToday,disabledDates:this.disabledDates,showTime:this.showTime,showNow:this.showNow,showHour:this.showHour,showMinute:this.showMinute,showSecond:this.showSecond,use12Hours:this.use12Hours,hourStep:this.hourStep,minuteStep:this.minuteStep,secondStep:this.secondStep,hideDisabledOptions:this.hideDisabledOptions,disabledTime:this.disabledTime}),s(m,{noCaption:this.noCaption,captionType:this.captionType,captionError:this.captionError,caption:this.caption}))}get el(){return h(this)}};!function(t,i,s,e){var h,r=arguments.length,a=r<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,s):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,s,e);else for(var o=t.length-1;o>=0;o--)(h=t[o])&&(a=(r<3?h(a):r>3?h(i,s,a):h(i,s))||a);r>3&&a&&Object.defineProperty(i,s,a)}([r()],d.prototype,"el",void 0);export{d as bcm_date}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built with Stencil
|
|
3
|
-
* Copyright (c) Bromcom.
|
|
4
|
-
*/
|
|
5
|
-
import{r as t,c as i,f as e,h as o,H as n,g as l,F as s}from"./p-e037ee2b.js";import"./p-4798d827.js";import"./p-626a65e9.js";import{G as a}from"./p-82a5033e.js";import"./p-7a4cc259.js";import"./p-6b5ed4d8.js";import"./p-32fd9854.js";import"./p-5ae0a59b.js";import{a as r}from"./p-a313fba6.js";import{C as d}from"./p-32df2233.js";import{c}from"./p-bed627ab.js";import"./p-3fac58f7.js";import"./p-2e73d572.js";import{c as p}from"./p-08c75801.js";import"./p-436364c8.js";import"./p-3c7a0345.js";import"./p-034bbcdd.js";import"./p-e45c1546.js";import"./p-0207059a.js";const h=p({slots:{base:"tw-font-sans tw-flex tw-flex-col tw-items-start tw-justify-start tw-gap-2",content:"tw-flex tw-flex-row tw-items-center tw-justify-start tw-gap-3",inputArea:"tw-flex tw-flex-row tw-items-center tw-justify-start tw-gap-1 tw-box-content tw-border tw-border-solid tw-max-w-[100px] tw-uppercase tw-font-medium tw-text-center tw-border-gray-300 tw-rounded",input:"tw-flex-1 tw-text-inherit tw-uppercase tw-font-semibold tw-text-center tw-border-none tw-bg-transparent tw-outline-none tw-w-full",button:["input-dropdown-button tw-flex tw-flex-row tw-items-center tw-justify-center tw-gap-1 tw-rounded tw-outline-none tw-bg-slate-100","tw-border tw-border-solid tw-border-slate-300 tw-font-medium tw-text-slate-600","hover:tw-border-slate-400 hover:tw-bg-slate-200","tw-min-w-[32px]","tw-cursor-pointer","disabled:tw-cursor-not-allowed disabled:tw-text-slate-400 disabled:tw-pointer-events-none","readonly:tw-text-slate-700 readonly:tw-cursor-text"],menu:"tw-mt-1 tw-flex tw-flex-col tw-items-start tw-justify-center tw-gap-2 tw-overflow-auto tw-bg-white tw-p-3 tw-font-sans tw-text-3 tw-text-slate-700",menuItem:"tw-flex tw-w-full tw-cursor-pointer tw-flex-row tw-items-start tw-gap-1 tw-rounded tw-px-3 tw-py-1 tw-text-slate-700 hover:tw-bg-blue-100",selectedItem:"tw-flex tw-w-full tw-flex-row tw-items-start tw-gap-1 tw-rounded tw-px-3 tw-py-1 tw-text-slate-700 tw-bg-primary-200",disabledItem:"tw-flex tw-w-full tw-flex-row tw-items-start tw-gap-1 tw-rounded tw-px-3 tw-py-1 tw-cursor-not-allowed tw-text-slate-400 tw-bg-slate-100 hover:tw-bg-slate-100 tw-list-none",commentArea:"tw-flex tw-h-fit tw-w-full tw-min-w-[288px] tw-flex-col tw-items-start tw-gap-3 tw-rounded tw-p-4 tw-shadow-2"},variants:{size:{small:{button:"tw-h-[18px] tw-text-1 tw-leading-none"},medium:{button:"tw-h-[24px] tw-text-2",inputArea:"tw-p-0.5",input:"tw-text-4"},large:{button:"tw-h-[30px] tw-text-2",inputArea:"tw-p-1",input:"tw-text-6"}},invalid:{true:{inputArea:"tw-border-red-600 tw-bg-red-50",input:"tw-text-red-500"}},disabled:{true:{base:"tw-opacity-50 tw-cursor-not-allowed",input:"tw-cursor-not-allowed"}},hideComment:{true:{base:"tw-min-w-[98px]"},false:{base:"tw-min-w-[128px] "}},label:{true:""}},defaultVariants:{size:"medium",invalid:!1,hideComment:!1,disabled:!1}}),u=class{constructor(e){t(this,e),this.change=i(this,"bcm-change",7),this.onChangeDropdown=i(this,"bcm-input-dropdown-change",7),this.handleKeyPress=t=>{var i,e;(null===(e=null===(i=null==t?void 0:t.target)||void 0===i?void 0:i.value)||void 0===e?void 0:e.length)>=+this.maxCharacterLimit&&t.preventDefault()},this._id=a.UID(),this.value=void 0,this.defaultValue={},this.lateKeys="L",this.maxCharacterLimit=1,this.size=r.Size.medium,this.label=void 0,this.placeholder=void 0,this.name=void 0,this.fullWidth=!1,this.hideComment=!1,this.hideCaption=!0,this.disabled=!1,this.required=!1,this.readonly=!1,this.data=[{key:"/",value:"Present",color:"#00b050"},{key:"B",value:"Educated off site (NOT dual registration)",color:"#ffc000"},{key:"C",value:"Other authorised circumstance",color:"#ffc000"},{key:"D",value:"Dual registration",color:"#0070c0"},{key:"E",value:"Excluded",color:"#ff0000"},{key:"F",value:"Free Study",color:"#ffc000"},{key:"I",value:"Illness",color:"#ff0000"},{key:"J",value:"Interview",color:"#ffc000"},{key:"L",value:"Late before reg. closed",color:"#ffc000"}],this.caption=void 0,this.noCaption=!1,this.captionType=r.Status.default,this.captionError=void 0,this.customErrorMessage=void 0,this.captionCache=void 0,this.captionTypeCache=void 0,this.isOpenMenu=!1,this.invalid=!1}get overlayContainer(){return document.getElementById("bcm-overlay-container")}get menuContent(){var t,i;return null!==(i=null===(t=this.overlayContainer)||void 0===t?void 0:t.querySelector(`#i-dropdown-menu-${this._id}`))&&void 0!==i?i:this.el.querySelector(`#i-dropdown-menu-${this._id}`)}get keys(){return this.lateKeys.toLocaleLowerCase().split(",")}get isLate(){var t,i,e,o,n,l;return this.keys.includes(null===(i=null===(t=this.value)||void 0===t?void 0:t.key)||void 0===i?void 0:i.toLocaleLowerCase())||(null===(o=null===(e=this.data)||void 0===e?void 0:e.find((t=>{var i,e,o;return(null===(i=null==t?void 0:t.key)||void 0===i?void 0:i.toLowerCase())===(null===(o=null===(e=this.value)||void 0===e?void 0:e.key)||void 0===o?void 0:o.toLowerCase())})))||void 0===o?void 0:o.isLate)||(null===(l=null===(n=this.data)||void 0===n?void 0:n.find((t=>{var i,e,o;return(null===(i=null==t?void 0:t.key)||void 0===i?void 0:i.toLowerCase())===(null===(o=null===(e=this.value)||void 0===e?void 0:e.key)||void 0===o?void 0:o.toLowerCase())})))||void 0===l?void 0:l.lateMin)>0}componentWillLoad(){var t,i;this.captionCache=this.caption,this.captionTypeCache=this.captionType,(null===(t=Object.keys(this.defaultValue))||void 0===t?void 0:t.length)>0?this.watchDefaultValueHandler(this.defaultValue):this.value=null===(i=this.data)||void 0===i?void 0:i.find((t=>t.selected))}get commentContent(){var t,i;return null!==(i=null===(t=this.overlayContainer)||void 0===t?void 0:t.querySelector(`#i-dropdown-comment-${this._id}`))&&void 0!==i?i:this.el.querySelector(`#i-dropdown-comment-${this._id}`)}clickListener(t){var i,e;const o=a.findEventPath(t,this.el),n=a.findEventPathWithNodeName(t,"BCM-LINKED");o||n||this.keys.includes(null===(i=this.value)||void 0===i?void 0:i.key)||null===(e=this.commentContent)||void 0===e||e.hide()}watchDefaultValueHandler(t){var i,o;t&&(this.value=null===(i=this.data)||void 0===i?void 0:i.find((i=>{var e,o;return(null===(e=null==i?void 0:i.key)||void 0===e?void 0:e.toLowerCase())===(null===(o=t.key)||void 0===o?void 0:o.toLowerCase())})),this.data=this.data.map((i=>(i.key===(null==t?void 0:t.key)?(i=t).selected=!0:i.selected=!1,i))),this.value=null===(o=this.data)||void 0===o?void 0:o.find((t=>null==t?void 0:t.selected)),e(this.el))}async set(t){this.data="string"==typeof t?JSON.parse(t):t}async get(){return this.value}async setClear(){return this.value=null,Promise.resolve()}async resetCaption(){return this.caption=this.captionCache,this.captionType=this.captionTypeCache,this.captionError=null,this.invalid=!1,Promise.resolve()}onSelectItem(t){var i;this.invalid=!1,this.data=this.data.map((i=>Object.assign(Object.assign({},i),{selected:i.key===t.key}))),this.value=null===(i=this.data)||void 0===i?void 0:i.find((t=>null==t?void 0:t.selected)),this.onChangeDropdown.emit(this.value),this.change.emit()}async handleInput(t){var i,e,o,n,l,s,a;const r=null===(i=null==t?void 0:t.target)||void 0===i?void 0:i.value;if(this.isOpenMenu=!0,(null==r?void 0:r.length)>=+this.maxCharacterLimit){const i=null===(e=this.data)||void 0===e?void 0:e.find((t=>{var i;return(null===(i=null==t?void 0:t.key)||void 0===i?void 0:i.toLowerCase())===r.toLowerCase()}));i?(await(null===(o=this.menuContent)||void 0===o?void 0:o.hide()),(null==i?void 0:i.hideComment)||null===(n=this.commentContent)||void 0===n||n.show(),this.onSelectItem(i)):(this.invalid=!0,this.value=t.target.value,await(null===(l=this.menuContent)||void 0===l?void 0:l.show()),this._input.style.color="#ff0000")}else null===(s=this.commentContent)||void 0===s||s.hide(),null===(a=this.menuContent)||void 0===a||a.hide(),this.value=null,this._input.style.color="#000000",this.invalid=!1;this.change.emit()}onClickSave(){var t;null===(t=this.commentContent)||void 0===t||t.hide(),this.data=this.data.map((t=>Object.assign(Object.assign({},t),t.key===this.value.key&&{lateMin:this.value.lateMin,comment:this.value.comment}))),e(this.el),this.onChangeDropdown.emit(this.value),this.change.emit()}async onClick(t){var i,e;(null==t?void 0:t.hideComment)||null===(i=this.commentContent)||void 0===i||i.show(),await(null===(e=this.menuContent)||void 0===e?void 0:e.hide()),this.onSelectItem(t)}render(){var t,i,e,l,a;const{size:r,label:p,placeholder:u,required:m,disabled:w,readonly:x,_id:v,invalid:g,hideComment:b,noCaption:f,customErrorMessage:z,caption:y,captionType:j,captionError:k,hideCaption:_}=this,{base:C,inputArea:I,input:E,button:L,menu:O,menuItem:$,commentArea:A,disabledItem:D,content:M,selectedItem:B}=h({size:r,invalid:g,hideComment:b,disabled:w});return o(n,{class:C()},p&&o("bcm-label",{htmlFor:v+"-dropdown-input",size:r,value:p,required:m}),o("div",{class:M()},o("div",{class:I()},o("input",{id:v+"-dropdown-input",class:E(),style:{color:null===(t=this.value)||void 0===t?void 0:t.color},type:"text",tabIndex:-1,placeholder:u,value:null===(i=this.value)||void 0===i?void 0:i.key,disabled:w,required:m,autoComplete:"off",readOnly:x,onKeyPress:t=>this.handleKeyPress(t),onInput:t=>this.handleInput(t),ref:t=>this._input=t}),o("button",{disabled:w,id:`i-dropdown-button-${v}`,class:L(),onClick:()=>this.isOpenMenu=!0},o("i",{class:"fas fa-chevron-down"})),o("bcm-linked",{"onBcm-open":({detail:t})=>{var i;return t&&(null===(i=this.commentContent)||void 0===i?void 0:i.hide())},class:"tw-mt-1",id:`i-dropdown-menu-${v}`,"target-id":`i-dropdown-button-${v}`,placement:"bottom-start"},o((()=>{var t;return o(s,null,this.isOpenMenu?o("div",{class:O()},this.invalid&&o("li",{class:$()+" tw-bg-red-100 hover:tw-bg-red-100"},o("span",{class:"tw-text-red-900"},o("i",{class:"far fa-exclamation-circle"})),o("span",null,"There is not mark you entered, please use")),null===(t=this.data)||void 0===t?void 0:t.map((t=>o(s,null,o("li",(null==t?void 0:t.disabled)?{class:D()}:{class:(null==t?void 0:t.selected)?B():$(),onClick:()=>this.onClick(t)},o("span",null,t.key)," - ",o("span",null,t.value)))))):null)}),null)),o("bcm-linked",{id:`i-dropdown-comment-${v}`,"target-id":v,trigger:"custom",placement:"left"},o((()=>{var t,i,e;return o(s,null,this.isOpenMenu?o("div",{class:A()},this.isLate?o(s,null,o("bcm-input",{label:"Minus Late",required:!0,id:this._id+"-input-dropdown-late-content-input",type:"number","full-width":!0,"no-caption":!0,autocomplete:!1,value:null===(t=this.value)||void 0===t?void 0:t.lateMin,placeholder:"Enter Minus Late","onBcm-change":({detail:t})=>this.value.lateMin=+t},o("i",{slot:"prefix",class:"far fa-clock"}))):null,o("bcm-textarea",{"full-width":!0,value:null!==(e=null===(i=this.value)||void 0===i?void 0:i.comment)&&void 0!==e?e:"","onBcm-change":({detail:t})=>this.value.comment=t,label:"Description","no-caption":!0,rows:4}),o("footer",{class:"tw-flex tw-w-full tw-flex-row tw-items-center tw-justify-end tw-gap-2"},o("bcm-button",{icon:"fas fa-times",kind:"ghost","icon-position":"prefix",onClick:()=>{var t;return null===(t=this.commentContent)||void 0===t?void 0:t.hide()}},"Close"),o("bcm-button",{icon:"fas fa-save","icon-position":"prefix",onClick:()=>this.onClickSave()},"Save"))):null)}),null))),this.hideComment?null:o("span",{onClick:()=>{var t,i;(null===(t=this.value)||void 0===t?void 0:t.key)&&(this.isOpenMenu=!0,null===(i=this.commentContent)||void 0===i||i.show())},class:c((null===(e=this.value)||void 0===e?void 0:e.comment)||(null===(l=this.value)||void 0===l?void 0:l.lateMin)>0?"tw-text-slate-600":"tw-text-slate-400",{"tw-cursor-pointer":null===(a=this.value)||void 0===a?void 0:a.key})},o("i",{class:"fas fa-comment"}))),!_&&o(d,{noCaption:f,captionType:j,captionError:k,caption:y,customErrorMessage:z}))}get el(){return l(this)}static get watchers(){return{defaultValue:["watchDefaultValueHandler"]}}};u.style='@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"); .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}:host{display:flex;flex-direction:column;width:100%;position:relative}.input-dropdown-button i{transition:transform 0.2s ease-in-out}.input-dropdown-button[linked-is-open]>i{transform:rotate(-180deg);transition:transform 0.2s ease-in-out}';export{u as bcm_input_dropdown}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built with Stencil
|
|
3
|
-
* Copyright (c) Bromcom.
|
|
4
|
-
*/
|
|
5
|
-
import{h as e}from"./p-e037ee2b.js";import{c as m}from"./p-bed627ab.js";import{B as r}from"./p-a313fba6.js";import{S as a}from"./p-4213ba24.js";const o=({required:o,value:t,size:s,form:l,htmlFor:b,type:p})=>{const i=m("bcm-label__text","bcm-label__text-"+(p=p||r.Status.default),"bcm-label__size-"+(s=s||"medium"));return e("label",{form:l,htmlFor:b,class:i}," ",e(a,{value:t})," ",o&&"*")};export{o as L}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built with Stencil
|
|
3
|
-
* Copyright (c) Bromcom.
|
|
4
|
-
*/
|
|
5
|
-
import{r as t,h as e,H as s,g as a}from"./p-e037ee2b.js";import"./p-4798d827.js";import"./p-626a65e9.js";import{G as o}from"./p-82a5033e.js";import"./p-7a4cc259.js";import"./p-6b5ed4d8.js";import"./p-32fd9854.js";import"./p-5ae0a59b.js";import{a as i}from"./p-a313fba6.js";import{c as r}from"./p-bed627ab.js";import"./p-436364c8.js";import"./p-3c7a0345.js";import"./p-034bbcdd.js";import"./p-e45c1546.js";import"./p-0207059a.js";const p=class{constructor(e){t(this,e),this._id=o.UID(),this.active=!1,this.disabled=!1,this.index=void 0,this.color="blue",this.size=i.Size.medium}handleClick(){var t;this.disabled||null===(t=o.findParentElement(this.el,"bcm-tab-group"))||void 0===t||t.setActive(this.index)}render(){const{color:t,size:a,active:p,disabled:l}=this,c=o.getTwColor({color:t,tones:[500,600,700,800]});return e(s,{onClick:()=>this.handleClick(),class:r("tw-flex tw-flex-1 tw-items-center tw-justify-center tw-border-b-[2px] tw-border-b-slate-300 tw-transition-font tw-focus:outline-none",{"tw-text-2 tw-py-1 tw-gap-2":a===i.Size.small,"tw-text-3 tw-py-2 tw-gap-3":a===i.Size.medium,"tw-text-4 tw-py-3 tw-gap-4":a===i.Size.large},l?"tw-cursor-not-allowed tw-text-gray-400 tw-opacity-50":"tw-cursor-pointer",p?"tw-text-default-500 enabled:hover:tw-text-default-600 enabled:active:tw-text-default-700 enabled:focus-visible:tw-text-default-800":"tw-text-slate-400 enabled:hover:tw-text-slate-500 enabled:focus-visible:tw-text-slate-700 enabled:active:tw-text-slate-600"),style:c})}get el(){return a(this)}};export{p as bcm_tab_item_header}
|