bromcom-ui 2.8.0-rc.10-c → 2.8.0-rc.10-e
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-976f682f.entry.js → p-04e3d67d.entry.js} +1 -1
- package/dist/bromcom-ui/{p-14a0a646.entry.js → p-07f866f0.entry.js} +1 -1
- package/dist/bromcom-ui/p-08766a3b.entry.js +5 -0
- package/dist/bromcom-ui/p-099b2c87.entry.js +5 -0
- package/dist/bromcom-ui/p-0b06a718.entry.js +5 -0
- package/dist/bromcom-ui/p-0d3a847b.entry.js +5 -0
- package/dist/bromcom-ui/p-14b1b4b2.entry.js +5 -0
- package/dist/bromcom-ui/{p-c1d54c5b.js → p-182f2e54.js} +1 -1
- package/dist/bromcom-ui/p-1ac26471.entry.js +5 -0
- package/dist/bromcom-ui/{p-0b663779.entry.js → p-20ecbc71.entry.js} +1 -1
- package/dist/bromcom-ui/p-2251de8e.entry.js +5 -0
- package/dist/bromcom-ui/{p-221448f8.entry.js → p-230b4d0b.entry.js} +1 -1
- package/dist/bromcom-ui/p-261210e9.entry.js +5 -0
- package/dist/bromcom-ui/p-26d5447f.entry.js +5 -0
- package/dist/bromcom-ui/p-29c28298.entry.js +5 -0
- package/dist/bromcom-ui/p-302dae1e.entry.js +5 -0
- package/dist/bromcom-ui/{p-bc840f30.entry.js → p-33330368.entry.js} +1 -1
- package/dist/bromcom-ui/{p-da1055cb.js → p-35ea8fad.js} +1 -1
- package/dist/bromcom-ui/{p-ec16ca02.entry.js → p-38dc893a.entry.js} +1 -1
- package/dist/bromcom-ui/{p-8c018ae0.js → p-3c7a0345.js} +1 -1
- package/dist/bromcom-ui/p-3d554134.entry.js +5 -0
- package/dist/bromcom-ui/p-3edd3360.js +5 -0
- package/dist/bromcom-ui/{p-f8c20298.entry.js → p-3f7e7354.entry.js} +1 -1
- package/dist/bromcom-ui/{p-c85b8abc.entry.js → p-4371dc2d.entry.js} +1 -1
- package/dist/bromcom-ui/p-4737685a.entry.js +5 -0
- package/dist/bromcom-ui/p-47d31034.js +5 -0
- package/dist/bromcom-ui/p-493db9b2.entry.js +5 -0
- package/dist/bromcom-ui/p-4b38917f.entry.js +5 -0
- package/dist/bromcom-ui/{p-a60a2dd0.js → p-4df600d5.js} +1 -1
- package/dist/bromcom-ui/{p-e19e9dc1.entry.js → p-4f89942a.entry.js} +1 -1
- package/dist/bromcom-ui/p-534adb40.entry.js +5 -0
- package/dist/bromcom-ui/p-55ad940b.entry.js +5 -0
- package/dist/bromcom-ui/p-571ba4fb.entry.js +5 -0
- package/dist/bromcom-ui/p-58fb96e0.entry.js +5 -0
- package/dist/bromcom-ui/p-59cf94ef.entry.js +5 -0
- package/dist/bromcom-ui/{p-7e44e6b5.js → p-5ae0a59b.js} +1 -1
- package/dist/bromcom-ui/p-5e9f06c4.entry.js +5 -0
- package/dist/bromcom-ui/p-61050b86.entry.js +5 -0
- package/dist/bromcom-ui/p-64c899bf.entry.js +5 -0
- package/dist/bromcom-ui/{p-0a16fcfa.entry.js → p-64d74851.entry.js} +1 -1
- package/dist/bromcom-ui/p-64f16fde.entry.js +5 -0
- package/dist/bromcom-ui/{p-e8250f3b.entry.js → p-65c4ae21.entry.js} +1 -1
- package/dist/bromcom-ui/p-685b892c.js +5 -0
- package/dist/bromcom-ui/p-6876480b.entry.js +5 -0
- package/dist/bromcom-ui/{p-b072ad65.js → p-6e7db831.js} +1 -1
- package/dist/bromcom-ui/p-78d82111.js +5 -0
- package/dist/bromcom-ui/p-7e6e2600.entry.js +5 -0
- package/dist/bromcom-ui/p-7e8d8402.entry.js +5 -0
- package/dist/bromcom-ui/p-7edd1119.entry.js +5 -0
- package/dist/bromcom-ui/p-88097c57.entry.js +5 -0
- package/dist/bromcom-ui/p-8dbccc6c.entry.js +5 -0
- package/dist/bromcom-ui/p-9431336c.entry.js +5 -0
- package/dist/bromcom-ui/p-95115abd.entry.js +5 -0
- package/dist/bromcom-ui/{p-04d4c6e7.entry.js → p-979c517d.entry.js} +1 -1
- package/dist/bromcom-ui/{p-d644b6d9.entry.js → p-98cb5854.entry.js} +1 -1
- package/dist/bromcom-ui/p-a5c337be.entry.js +5 -0
- package/dist/bromcom-ui/{p-dbc4c30c.js → p-aaac4637.js} +1 -1
- package/dist/bromcom-ui/p-abff8ac0.js +5 -0
- package/dist/bromcom-ui/{p-39eda493.entry.js → p-ac746e1f.entry.js} +1 -1
- package/dist/bromcom-ui/p-b4297fa5.entry.js +5 -0
- package/dist/bromcom-ui/p-bc2ceb90.entry.js +5 -0
- package/dist/bromcom-ui/p-bcec1564.entry.js +5 -0
- package/dist/bromcom-ui/p-bdca15df.entry.js +5 -0
- package/dist/bromcom-ui/p-c0ba4ab5.entry.js +5 -0
- package/dist/bromcom-ui/p-c44fa1a6.js +5 -0
- package/dist/bromcom-ui/{p-6b7a9d96.entry.js → p-c89c3f46.entry.js} +1 -1
- package/dist/bromcom-ui/{p-5ddb8778.js → p-c8ca32d0.js} +1 -1
- package/dist/bromcom-ui/{p-a429e85b.js → p-c9bd85e9.js} +1 -1
- package/dist/bromcom-ui/p-ca6248ed.entry.js +5 -0
- package/dist/bromcom-ui/{p-24aefda6.js → p-d02b6aa2.js} +1 -1
- package/dist/bromcom-ui/{p-4fcf03c1.entry.js → p-d10a20eb.entry.js} +1 -1
- package/dist/bromcom-ui/p-d8215408.entry.js +5 -0
- package/dist/bromcom-ui/p-d8d34ab0.entry.js +5 -0
- package/dist/bromcom-ui/{p-533cb826.entry.js → p-da1aa726.entry.js} +1 -1
- package/dist/bromcom-ui/p-da93061e.entry.js +5 -0
- package/dist/bromcom-ui/{p-97933e31.entry.js → p-de1567c7.entry.js} +1 -1
- package/dist/bromcom-ui/p-e16dc0df.entry.js +5 -0
- package/dist/bromcom-ui/{p-b60bcecf.js → p-e8d18848.js} +1 -1
- package/dist/bromcom-ui/p-e9a4fe7f.js +5 -0
- package/dist/bromcom-ui/{p-8d0ca8c2.js → p-ea218e23.js} +1 -1
- package/dist/bromcom-ui/p-eb6f8ddf.js +5 -0
- package/dist/bromcom-ui/{p-f529ded0.entry.js → p-ee9eec69.entry.js} +1 -1
- package/dist/bromcom-ui/p-f6c08ac8.entry.js +5 -0
- package/dist/bromcom-ui/{p-8e2540d8.entry.js → p-f9aec5ea.entry.js} +1 -1
- package/dist/bromcom-ui/p-fd3a7ac3.entry.js +5 -0
- package/dist/bromcom-ui/{p-31226526.entry.js → p-fe8f6043.entry.js} +1 -1
- package/dist/cjs/{bcm-634604e3.js → bcm-2c51bf0c.js} +0 -1
- package/dist/cjs/bcm-accordion.cjs.entry.js +3 -5
- package/dist/cjs/bcm-alert.cjs.entry.js +6 -7
- package/dist/cjs/bcm-attendance.cjs.entry.js +5 -7
- package/dist/cjs/bcm-autocomplete.cjs.entry.js +2 -2
- package/dist/cjs/bcm-avatar_2.cjs.entry.js +11 -12
- package/dist/cjs/bcm-box.cjs.entry.js +2 -2
- package/dist/cjs/bcm-breadcrumb.cjs.entry.js +3 -4
- package/dist/cjs/bcm-button-group.cjs.entry.js +6 -7
- package/dist/cjs/bcm-button.cjs.entry.js +384 -0
- package/dist/cjs/bcm-card.cjs.entry.js +8 -9
- package/dist/cjs/bcm-checkbox-group.cjs.entry.js +415 -0
- package/dist/cjs/bcm-checkbox-lite_9.cjs.entry.js +5 -6
- package/dist/cjs/bcm-checkbox_2.cjs.entry.js +205 -0
- package/dist/cjs/bcm-chip.cjs.entry.js +7 -8
- package/dist/cjs/bcm-collapse-group.cjs.entry.js +2 -2
- package/dist/cjs/bcm-collapse.cjs.entry.js +3 -4
- package/dist/cjs/bcm-colorpicker.cjs.entry.js +2 -2
- package/dist/cjs/bcm-date-picker_7.cjs.entry.js +2257 -0
- package/dist/cjs/bcm-default.cjs.entry.js +3 -5
- package/dist/cjs/bcm-drawer.cjs.entry.js +9 -10
- package/dist/cjs/bcm-dropdown.cjs.entry.js +6 -7
- package/dist/cjs/bcm-error-layout.cjs.entry.js +3 -3
- package/dist/cjs/bcm-expansion-panel.cjs.entry.js +7 -8
- package/dist/cjs/bcm-form-2.cjs.entry.js +5 -6
- package/dist/cjs/bcm-form-group.cjs.entry.js +2 -2
- package/dist/cjs/bcm-form.cjs.entry.js +487 -0
- package/dist/cjs/bcm-input.cjs.entry.js +12 -41
- package/dist/cjs/bcm-item.cjs.entry.js +6 -7
- package/dist/cjs/bcm-items.cjs.entry.js +5 -6
- package/dist/cjs/bcm-link.cjs.entry.js +5 -5
- package/dist/cjs/bcm-linked_2.cjs.entry.js +308 -0
- package/dist/cjs/bcm-list.cjs.entry.js +25 -33
- package/dist/cjs/bcm-message.cjs.entry.js +2 -2
- package/dist/cjs/bcm-modal.cjs.entry.js +7 -8
- package/dist/cjs/bcm-notification.cjs.entry.js +2 -2
- package/dist/cjs/bcm-old-tag_2.cjs.entry.js +2 -2
- package/dist/cjs/bcm-popconfirm-box.cjs.entry.js +8 -9
- package/dist/cjs/bcm-popconfirm.cjs.entry.js +5 -6
- package/dist/cjs/bcm-popover.cjs.entry.js +42 -92
- package/dist/cjs/bcm-progress.cjs.entry.js +6 -7
- package/dist/cjs/bcm-radio-group.cjs.entry.js +210 -93
- package/dist/cjs/bcm-radio.cjs.entry.js +78 -37
- package/dist/cjs/bcm-range.cjs.entry.js +5 -6
- package/dist/cjs/bcm-result.cjs.entry.js +2 -2
- package/dist/cjs/bcm-search.cjs.entry.js +14 -21
- package/dist/cjs/bcm-select-group.cjs.entry.js +1 -1
- package/dist/cjs/bcm-select-option.cjs.entry.js +1 -1
- package/dist/cjs/bcm-select.cjs.entry.js +5 -5
- package/dist/cjs/bcm-skeleton.cjs.entry.js +8 -10
- package/dist/cjs/bcm-step.cjs.entry.js +5 -6
- package/dist/cjs/bcm-stepper.cjs.entry.js +25 -42
- package/dist/cjs/bcm-switch.cjs.entry.js +7 -8
- package/dist/cjs/bcm-tab-group.cjs.entry.js +114 -158
- package/dist/cjs/bcm-tab-pane.cjs.entry.js +2 -2
- package/dist/cjs/bcm-tab.cjs.entry.js +3 -3
- package/dist/cjs/bcm-table.cjs.entry.js +2 -2
- package/dist/cjs/bcm-tabs-content.cjs.entry.js +2 -2
- package/dist/cjs/bcm-tabs.cjs.entry.js +2 -2
- package/dist/cjs/bcm-tag.cjs.entry.js +6 -7
- package/dist/cjs/bcm-text.cjs.entry.js +7 -8
- package/dist/cjs/bcm-textarea.cjs.entry.js +8 -10
- package/dist/cjs/bcm-timeline-item.cjs.entry.js +2 -2
- package/dist/cjs/bcm-timeline.cjs.entry.js +2 -2
- package/dist/cjs/bcm-treeview-group.cjs.entry.js +1 -1
- package/dist/cjs/bromcom-ui.cjs.js +2 -2
- package/dist/cjs/{caption-template-8d099fd6.js → caption-template-1b6b0819.js} +1 -1
- package/dist/cjs/{colors-e1d142ad.js → color-helper-d1cb7959.js} +81 -4
- package/dist/cjs/{floating-ui-74eb26d6.js → floating-ui-ded9c11f.js} +1 -1
- package/dist/cjs/{generate-8bf1f8d1.js → generate-73f0e7fa.js} +16 -118
- package/dist/cjs/{index-ddfd6d8f.js → index-b4a2fb85.js} +1 -1
- package/dist/cjs/{index-4506fcd7.js → index-b6a28fdb.js} +1 -1
- package/dist/cjs/input-template-80bdebb9.js +86 -0
- package/dist/cjs/{is-load-decorator-137dded1.js → is-load-decorator-888172a8.js} +3 -1
- package/dist/cjs/{json-parse-decarator-c24d3e9a.js → json-parse-decarator-5ddb904f.js} +2 -2
- package/dist/cjs/{label-template-cc69bc21.js → label-template-5d3d6f6c.js} +3 -3
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{number-helper-5180add9.js → number-helper-9ec79895.js} +1 -1
- package/dist/cjs/old-bcm-popover-box.cjs.entry.js +9 -10
- package/dist/cjs/old-bcm-popover.cjs.entry.js +4 -5
- package/dist/cjs/{popover-placement-3c8f3a72.js → popover-placement-dd87671c.js} +1 -1
- package/dist/cjs/{slot-template-3e59d7d8.js → slot-template-720b35b8.js} +2 -2
- package/dist/cjs/{stepper-states-ae90a32e.js → stepper-states-4dd53227.js} +3 -3
- package/dist/cjs/{string-helper-45cffee0.js → string-helper-a54773f3.js} +1 -1
- package/dist/cjs/tooltip-helper-7a083cfa.js +105 -0
- package/dist/cjs/{validators-8f4d4a8c.js → validators-749ec256.js} +1 -1
- package/dist/collection/collection-manifest.json +5 -16
- package/dist/collection/components/atoms/avatar/avatar.css +1 -3
- package/dist/collection/components/atoms/badge/badge.css +1 -3
- package/dist/collection/components/atoms/button/button.css +1 -3
- package/dist/collection/components/atoms/button/button.js +1 -1
- package/dist/collection/components/atoms/chip/chip.css +1 -3
- package/dist/collection/components/atoms/chip/chip.js +3 -3
- package/dist/collection/components/atoms/label/label.css +1 -3
- package/dist/collection/components/atoms/link/link.css +1 -3
- package/dist/collection/components/atoms/link/link.js +1 -1
- package/dist/collection/components/molecules/button-group/button-group.css +1 -7
- package/dist/collection/components/molecules/card/card.css +1 -3
- package/dist/collection/components/molecules/checkbox/checkbox.css +3 -10
- package/dist/collection/components/molecules/checkbox/checkbox.js +1 -1
- package/dist/collection/components/molecules/drawer/drawer.css +1 -3
- package/dist/collection/components/molecules/dropdown/dropdown.css +1 -3
- package/dist/collection/components/molecules/error-layout/error-layout.css +1 -3
- package/dist/collection/components/molecules/expansion-panel/expansion-panel.css +1 -3
- package/dist/collection/components/molecules/input/input.css +5 -12
- package/dist/collection/components/molecules/input/input.js +3 -31
- package/dist/collection/components/molecules/item/item.css +1 -3
- package/dist/collection/components/molecules/linked/linked.js +31 -87
- package/dist/collection/components/molecules/menu/menu.css +1 -3
- package/dist/collection/components/molecules/menu/menu.js +1 -1
- package/dist/collection/components/molecules/modal/modal.css +1 -3
- package/dist/collection/components/molecules/popconfirm/popconfirm-box.css +1 -3
- package/dist/collection/components/molecules/popconfirm/popconfirm.js +1 -1
- package/dist/collection/components/molecules/popover/popover.js +12 -117
- package/dist/collection/components/molecules/progress/progress.css +1 -3
- package/dist/collection/components/molecules/radio/group.css +798 -0
- package/dist/collection/components/molecules/radio/{radio-group.js → group.js} +247 -185
- package/dist/collection/components/molecules/{colorful/colorful.css → radio/radio.css} +197 -170
- package/dist/collection/components/molecules/radio/radio.js +132 -42
- package/dist/collection/components/molecules/radio/types.js +30 -0
- package/dist/collection/components/molecules/range/range.css +1 -3
- package/dist/collection/components/molecules/search/search.css +5 -12
- package/dist/collection/components/molecules/search/search.js +2 -21
- package/dist/collection/components/molecules/skeleton/skeleton.js +8 -8
- package/dist/collection/components/molecules/states/radio-group.states.js +107 -0
- package/dist/collection/components/molecules/states/search.states.js +7 -12
- package/dist/collection/components/molecules/stepper/stepper.css +2 -5
- package/dist/collection/components/molecules/stepper/stepper.js +26 -33
- package/dist/collection/components/molecules/switch/switch.css +3 -9
- package/dist/collection/components/molecules/switch/switch.js +1 -1
- package/dist/collection/components/molecules/tab-group/tab-group.js +114 -177
- package/dist/collection/components/molecules/textarea/textarea.css +5 -12
- package/dist/collection/components/molecules/textarea/textarea.js +1 -2
- package/dist/collection/components/molecules/tooltip/tooltip.js +10 -143
- package/dist/collection/components/organism/datetime-picker/datetime-picker.css +3 -9
- package/dist/collection/components/organism/datetime-picker/datetime-picker.js +1 -1
- package/dist/collection/components/organism/form/form.js +1 -1
- package/dist/collection/components/organism/list/list.css +4 -13
- package/dist/collection/components/organism/list/list.js +2 -21
- package/dist/collection/components/other/attendance/attendance.css +1 -3
- package/dist/collection/components/other/attendance/attendance.js +1 -1
- package/dist/collection/components/other_deprecated/old-input/old-input.css +3 -9
- package/dist/collection/components/other_deprecated/old-popover/old-popover-box.css +1 -3
- package/dist/collection/components/other_deprecated/select/select.js +1 -1
- package/dist/collection/components/other_deprecated/tabs/tab.css +1 -3
- package/dist/collection/components/other_deprecated/text/text.css +1 -3
- package/dist/collection/decorators/is-load-decorator.js +2 -0
- package/dist/collection/global/components/_checkbox.css +1 -4
- package/dist/collection/helper/generate.js +19 -120
- package/dist/collection/helper/popover-helper.js +29 -57
- package/dist/collection/helper/tooltip-helper.js +26 -69
- package/dist/collection/models/bcm.js +0 -1
- package/dist/collection/templates/button-template.js +1 -1
- package/dist/collection/templates/input-template.js +29 -30
- package/dist/collection/templates/list-item-template.js +1 -1
- package/dist/collection/templates/list-template.js +4 -10
- package/dist/collection/templates/tag-template.js +1 -1
- package/dist/components/avatar.js +1 -1
- package/dist/components/badge.js +1 -1
- package/dist/components/bcm-attendance.js +2 -2
- package/dist/components/bcm-button-group.js +1 -1
- package/dist/components/bcm-card.js +1 -1
- package/dist/components/bcm-chip.js +3 -3
- package/dist/components/bcm-drawer.js +1 -1
- package/dist/components/bcm-dropdown.js +1 -1
- package/dist/components/bcm-error-layout.js +1 -1
- package/dist/components/bcm-expansion-panel.js +1 -1
- package/dist/components/bcm-form.js +1 -1
- package/dist/components/bcm-input.js +411 -1
- package/dist/components/bcm-item.js +1 -1
- package/dist/components/bcm-list.js +10 -18
- package/dist/components/bcm-modal.js +1 -1
- package/dist/components/bcm-popconfirm.js +1 -1
- package/dist/components/bcm-popover.js +33 -86
- package/dist/components/bcm-progress.js +1 -1
- package/dist/components/bcm-radio-group.js +228 -103
- package/dist/components/bcm-range.js +1 -1
- package/dist/components/bcm-select.js +1 -1
- package/dist/components/bcm-stepper.js +26 -34
- package/dist/components/bcm-switch.js +2 -2
- package/dist/components/bcm-tab-group.js +112 -154
- package/dist/components/bcm-tab.js +2 -2
- package/dist/components/bcm-tabs-content.js +1 -1
- package/dist/components/bcm-tabs.js +1 -1
- package/dist/components/bcm-tag.js +1 -1
- package/dist/components/bcm-textarea.js +2 -3
- package/dist/components/bcm.js +0 -1
- package/dist/components/button.js +3 -3
- package/dist/components/checkbox-lite.js +1 -1
- package/dist/components/checkbox.js +2 -2
- package/dist/components/color-helper.js +434 -8
- package/dist/components/datetime-picker.js +2 -2
- package/dist/components/generate.js +16 -117
- package/dist/components/index.d.ts +5 -16
- package/dist/components/index.js +0 -11
- package/dist/components/input-template.js +53 -46
- package/dist/components/is-load-decorator.js +2 -0
- package/dist/components/label.js +1 -1
- package/dist/components/link.js +2 -2
- package/dist/components/linked.js +29 -62
- package/dist/components/menu.js +2 -2
- package/dist/components/old-input.js +1 -1
- package/dist/components/old-popover-box.js +1 -1
- package/dist/components/popconfirm-box.js +1 -1
- package/dist/components/radio.js +82 -38
- package/dist/components/search.js +6 -13
- package/dist/components/skeleton.js +5 -5
- package/dist/components/text.js +1 -1
- package/dist/components/tooltip-helper.js +24 -68
- package/dist/components/tooltip.js +5 -35
- package/dist/components/types.js +27 -14
- package/dist/components/types2.js +25 -25
- package/dist/esm/bcm-accordion.entry.js +3 -5
- package/dist/esm/bcm-alert.entry.js +6 -7
- package/dist/esm/bcm-attendance.entry.js +5 -7
- package/dist/esm/bcm-autocomplete.entry.js +2 -2
- package/dist/esm/bcm-avatar_2.entry.js +13 -14
- package/dist/esm/{bcm-9f50af9c.js → bcm-b8d8a236.js} +0 -1
- package/dist/esm/bcm-box.entry.js +2 -2
- package/dist/esm/bcm-breadcrumb.entry.js +3 -4
- package/dist/esm/bcm-button-group.entry.js +6 -7
- package/dist/esm/bcm-button.entry.js +380 -0
- package/dist/esm/bcm-card.entry.js +9 -10
- package/dist/esm/bcm-checkbox-group.entry.js +411 -0
- package/dist/esm/bcm-checkbox-lite_9.entry.js +6 -7
- package/dist/esm/bcm-checkbox_2.entry.js +200 -0
- package/dist/esm/bcm-chip.entry.js +8 -9
- package/dist/esm/bcm-collapse-group.entry.js +3 -3
- package/dist/esm/bcm-collapse.entry.js +3 -4
- package/dist/esm/bcm-colorpicker.entry.js +4 -4
- package/dist/esm/bcm-date-picker_7.entry.js +2247 -0
- package/dist/esm/bcm-default.entry.js +3 -5
- package/dist/esm/bcm-drawer.entry.js +11 -12
- package/dist/esm/bcm-dropdown.entry.js +6 -7
- package/dist/esm/bcm-error-layout.entry.js +3 -3
- package/dist/esm/bcm-expansion-panel.entry.js +8 -9
- package/dist/esm/bcm-form-2.entry.js +5 -6
- package/dist/esm/bcm-form-group.entry.js +2 -2
- package/dist/esm/bcm-form.entry.js +483 -0
- package/dist/esm/bcm-input.entry.js +13 -42
- package/dist/esm/bcm-item.entry.js +7 -8
- package/dist/esm/bcm-items.entry.js +5 -6
- package/dist/esm/bcm-link.entry.js +5 -5
- package/dist/esm/bcm-linked_2.entry.js +303 -0
- package/dist/esm/bcm-list.entry.js +27 -35
- package/dist/esm/bcm-message.entry.js +2 -2
- package/dist/esm/bcm-modal.entry.js +7 -8
- package/dist/esm/bcm-notification.entry.js +2 -2
- package/dist/esm/bcm-old-tag_2.entry.js +3 -3
- package/dist/esm/bcm-popconfirm-box.entry.js +9 -10
- package/dist/esm/bcm-popconfirm.entry.js +5 -6
- package/dist/esm/bcm-popover.entry.js +43 -93
- package/dist/esm/bcm-progress.entry.js +7 -8
- package/dist/esm/bcm-radio-group.entry.js +206 -89
- package/dist/esm/bcm-radio.entry.js +78 -37
- package/dist/esm/bcm-range.entry.js +6 -7
- package/dist/esm/bcm-result.entry.js +2 -2
- package/dist/esm/bcm-search.entry.js +15 -22
- package/dist/esm/bcm-select-group.entry.js +1 -1
- package/dist/esm/bcm-select-option.entry.js +1 -1
- package/dist/esm/bcm-select.entry.js +6 -6
- package/dist/esm/bcm-skeleton.entry.js +8 -10
- package/dist/esm/bcm-step.entry.js +5 -6
- package/dist/esm/bcm-stepper.entry.js +23 -40
- package/dist/esm/bcm-switch.entry.js +8 -9
- package/dist/esm/bcm-tab-group.entry.js +112 -156
- package/dist/esm/bcm-tab-pane.entry.js +2 -2
- package/dist/esm/bcm-tab.entry.js +3 -3
- package/dist/esm/bcm-table.entry.js +3 -3
- package/dist/esm/bcm-tabs-content.entry.js +3 -3
- package/dist/esm/bcm-tabs.entry.js +3 -3
- package/dist/esm/bcm-tag.entry.js +7 -8
- package/dist/esm/bcm-text.entry.js +8 -9
- package/dist/esm/bcm-textarea.entry.js +9 -11
- package/dist/esm/bcm-timeline-item.entry.js +2 -2
- package/dist/esm/bcm-timeline.entry.js +2 -2
- package/dist/esm/bcm-treeview-group.entry.js +1 -1
- package/dist/esm/bromcom-ui.js +3 -3
- package/dist/esm/{caption-template-da16ba7b.js → caption-template-ced0e2ef.js} +1 -1
- package/dist/esm/{colors-44c95e7e.js → color-helper-99e2372d.js} +81 -4
- package/dist/esm/{element-dragger-89bb52fd.js → element-dragger-7ea06c76.js} +1 -1
- package/dist/esm/{floating-ui-e7341329.js → floating-ui-54c1f339.js} +1 -1
- package/dist/esm/{generate-e61526ce.js → generate-8c14a484.js} +16 -118
- package/dist/esm/{index-93e36fdb.js → index-0f68d8f0.js} +1 -1
- package/dist/esm/{index-39133086.js → index-85cce099.js} +1 -1
- package/dist/esm/input-template-b410853d.js +84 -0
- package/dist/esm/{is-load-decorator-bc14ec4b.js → is-load-decorator-87c09179.js} +3 -1
- package/dist/esm/{json-parse-decarator-f5f6cbd9.js → json-parse-decarator-46d7fb30.js} +2 -2
- package/dist/esm/{label-template-d74fe788.js → label-template-4f474794.js} +3 -3
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{number-helper-a3039a0f.js → number-helper-a73a8afd.js} +1 -1
- package/dist/esm/old-bcm-popover-box.entry.js +11 -12
- package/dist/esm/old-bcm-popover.entry.js +4 -5
- package/dist/esm/{popover-placement-78f86f15.js → popover-placement-0e158c8b.js} +1 -1
- package/dist/esm/{slot-template-5b2db362.js → slot-template-97e4665e.js} +2 -2
- package/dist/esm/{stepper-states-020074b0.js → stepper-states-72315d1c.js} +3 -3
- package/dist/esm/{string-helper-6bd24967.js → string-helper-8793366d.js} +1 -1
- package/dist/esm/tooltip-helper-03815ca5.js +103 -0
- package/dist/esm/{utils-57652744.js → utils-b3338faf.js} +1 -1
- package/dist/esm/{validators-bedd13f9.js → validators-17c10ac3.js} +1 -1
- package/dist/types/components/molecules/input/input.d.ts +1 -4
- package/dist/types/components/molecules/linked/linked.d.ts +3 -10
- package/dist/types/components/molecules/popover/popover.d.ts +3 -12
- package/dist/types/components/molecules/radio/{radio-group.d.ts → group.d.ts} +27 -22
- package/dist/types/components/molecules/radio/radio.d.ts +11 -5
- package/dist/types/components/molecules/radio/types.d.ts +29 -0
- package/dist/types/components/molecules/search/search.d.ts +0 -1
- package/dist/types/components/molecules/skeleton/skeleton.d.ts +1 -1
- package/dist/types/components/molecules/states/radio-group.states.d.ts +48 -0
- package/dist/types/components/molecules/states/search.states.d.ts +1 -1
- package/dist/types/components/molecules/stepper/stepper.d.ts +2 -2
- package/dist/types/components/molecules/tab-group/tab-group.d.ts +6 -15
- package/dist/types/components/molecules/textarea/textarea.d.ts +1 -1
- package/dist/types/components/molecules/tooltip/tooltip.d.ts +3 -13
- package/dist/types/components/organism/list/list.d.ts +0 -1
- package/dist/types/components.d.ts +41 -339
- package/dist/types/helper/generate.d.ts +0 -3
- package/dist/types/helper/popover-helper.d.ts +3 -13
- package/dist/types/helper/tooltip-helper.d.ts +3 -16
- package/dist/types/index.d.ts +1 -1
- package/dist/types/models/bcm.d.ts +1 -2
- package/dist/types/templates/input-template.d.ts +3 -5
- package/dist/types/templates/list-template.d.ts +0 -1
- package/package.json +70 -109
- package/dist/bromcom-ui/global/helper/index.ts +0 -1
- package/dist/bromcom-ui/global/helper/toast.ts +0 -136
- package/dist/bromcom-ui/p-09ef65b7.entry.js +0 -5
- package/dist/bromcom-ui/p-1491e7f7.entry.js +0 -5
- package/dist/bromcom-ui/p-23a21e41.entry.js +0 -5
- package/dist/bromcom-ui/p-2a11ca77.entry.js +0 -5
- package/dist/bromcom-ui/p-35b4eddd.entry.js +0 -5
- package/dist/bromcom-ui/p-35f7e2a2.entry.js +0 -5
- package/dist/bromcom-ui/p-36a7c677.entry.js +0 -5
- package/dist/bromcom-ui/p-37668c45.entry.js +0 -5
- package/dist/bromcom-ui/p-3779b363.entry.js +0 -5
- package/dist/bromcom-ui/p-3865a1df.entry.js +0 -5
- package/dist/bromcom-ui/p-3ed00b93.entry.js +0 -5
- package/dist/bromcom-ui/p-44b33163.entry.js +0 -5
- package/dist/bromcom-ui/p-4616779f.entry.js +0 -5
- package/dist/bromcom-ui/p-4a3bfc40.entry.js +0 -5
- package/dist/bromcom-ui/p-4aa0e6b1.js +0 -5
- package/dist/bromcom-ui/p-540bcf21.entry.js +0 -5
- package/dist/bromcom-ui/p-569baa10.entry.js +0 -5
- package/dist/bromcom-ui/p-58651d85.entry.js +0 -5
- package/dist/bromcom-ui/p-5b9a8b4f.entry.js +0 -5
- package/dist/bromcom-ui/p-5c059eba.entry.js +0 -5
- package/dist/bromcom-ui/p-6aa7a96d.entry.js +0 -5
- package/dist/bromcom-ui/p-6cc73d59.entry.js +0 -5
- package/dist/bromcom-ui/p-7332c6ae.entry.js +0 -5
- package/dist/bromcom-ui/p-769d38d5.entry.js +0 -10
- package/dist/bromcom-ui/p-79224fb7.entry.js +0 -5
- package/dist/bromcom-ui/p-79fd816c.js +0 -5
- package/dist/bromcom-ui/p-7d4e37e7.entry.js +0 -5
- package/dist/bromcom-ui/p-8076f4b9.entry.js +0 -5
- package/dist/bromcom-ui/p-843905c8.js +0 -5
- package/dist/bromcom-ui/p-87b9e457.entry.js +0 -5
- package/dist/bromcom-ui/p-87dbeaa2.entry.js +0 -5
- package/dist/bromcom-ui/p-88ace511.entry.js +0 -5
- package/dist/bromcom-ui/p-8c8e952a.entry.js +0 -5
- package/dist/bromcom-ui/p-8fd8d750.entry.js +0 -5
- package/dist/bromcom-ui/p-90b6a399.js +0 -5
- package/dist/bromcom-ui/p-9b6e0531.entry.js +0 -5
- package/dist/bromcom-ui/p-9d1f7c9c.entry.js +0 -5
- package/dist/bromcom-ui/p-9ee8c0e2.js +0 -5
- package/dist/bromcom-ui/p-9fae7851.entry.js +0 -5
- package/dist/bromcom-ui/p-9faeaaa8.entry.js +0 -5
- package/dist/bromcom-ui/p-a5cccf8d.entry.js +0 -5
- package/dist/bromcom-ui/p-ab79e6c5.entry.js +0 -5
- package/dist/bromcom-ui/p-ae59a20c.entry.js +0 -5
- package/dist/bromcom-ui/p-b6c0f7f6.entry.js +0 -5
- package/dist/bromcom-ui/p-b7b925f8.js +0 -5
- package/dist/bromcom-ui/p-bbbeab03.entry.js +0 -5
- package/dist/bromcom-ui/p-bf88410c.entry.js +0 -5
- package/dist/bromcom-ui/p-c23b6240.js +0 -5
- package/dist/bromcom-ui/p-c62e73b2.entry.js +0 -5
- package/dist/bromcom-ui/p-c85d5bb2.entry.js +0 -5
- package/dist/bromcom-ui/p-c8e13fd7.js +0 -5
- package/dist/bromcom-ui/p-cfede5d8.entry.js +0 -5
- package/dist/bromcom-ui/p-d0beb7ef.entry.js +0 -5
- package/dist/bromcom-ui/p-d34986ae.entry.js +0 -5
- package/dist/bromcom-ui/p-d3b006d2.entry.js +0 -5
- package/dist/bromcom-ui/p-d5392220.entry.js +0 -5
- package/dist/bromcom-ui/p-d66815eb.entry.js +0 -5
- package/dist/bromcom-ui/p-dceac6ce.entry.js +0 -5
- package/dist/bromcom-ui/p-dde64aa4.entry.js +0 -5
- package/dist/bromcom-ui/p-eae6a72a.entry.js +0 -5
- package/dist/bromcom-ui/p-eb1f9862.entry.js +0 -5
- package/dist/bromcom-ui/p-eb905c0c.js +0 -5
- package/dist/bromcom-ui/p-f85b3736.entry.js +0 -5
- package/dist/bromcom-ui/p-f8a36ced.entry.js +0 -5
- package/dist/bromcom-ui/p-ff8c0565.entry.js +0 -5
- package/dist/cjs/bcm-button_7.cjs.entry.js +0 -1570
- package/dist/cjs/bcm-color-input.cjs.entry.js +0 -76
- package/dist/cjs/bcm-colorful_2.cjs.entry.js +0 -17971
- package/dist/cjs/bcm-date-picker.cjs.entry.js +0 -180
- package/dist/cjs/bcm-datetime-picker.cjs.entry.js +0 -1437
- package/dist/cjs/bcm-input-custom.cjs.entry.js +0 -73
- package/dist/cjs/bcm-menu.cjs.entry.js +0 -138
- package/dist/cjs/bcm-modal-2-footer.cjs.entry.js +0 -50
- package/dist/cjs/bcm-modal-2-header.cjs.entry.js +0 -49
- package/dist/cjs/bcm-modal-2.cjs.entry.js +0 -172
- package/dist/cjs/bcm-old-input.cjs.entry.js +0 -411
- package/dist/cjs/bcm-overlay_2.cjs.entry.js +0 -48
- package/dist/cjs/bcm-tab-item-header.cjs.entry.js +0 -87
- package/dist/cjs/bcm-tab-item.cjs.entry.js +0 -104
- package/dist/cjs/bcm-time-picker.cjs.entry.js +0 -148
- package/dist/cjs/bcm-toast.cjs.entry.js +0 -115
- package/dist/cjs/bcm-typography.cjs.entry.js +0 -35
- package/dist/cjs/color-helper-d6d2028b.js +0 -86
- package/dist/cjs/input-template-693a0c91.js +0 -92
- package/dist/cjs/tooltip-helper-7148a937.js +0 -149
- package/dist/collection/components/molecules/color-input/color-input.js +0 -206
- package/dist/collection/components/molecules/colorful/colorful.js +0 -72
- package/dist/collection/components/molecules/tab-group/tab-item-header.js +0 -186
- package/dist/collection/components/molecules/tab-group/tab-item.js +0 -161
- package/dist/collection/components/other/input-custom/input-custom.js +0 -249
- package/dist/collection/components/other/modal-2/modal-2-footer.js +0 -54
- package/dist/collection/components/other/modal-2/modal-2-header.js +0 -53
- package/dist/collection/components/other/modal-2/modal-2.js +0 -450
- package/dist/collection/components/other/overlay/overlay.js +0 -101
- package/dist/collection/components/other/scroll-area/scroll-area.js +0 -77
- package/dist/collection/components/other/toast/toast.js +0 -365
- package/dist/collection/global/helper/index.js +0 -5
- package/dist/collection/global/helper/index.ts +0 -1
- package/dist/collection/global/helper/toast.js +0 -114
- package/dist/collection/global/helper/toast.ts +0 -136
- package/dist/collection/stories/assets/button/1.svg +0 -35
- package/dist/collection/stories/assets/button/10.svg +0 -24
- package/dist/collection/stories/assets/button/11.svg +0 -24
- package/dist/collection/stories/assets/button/12.svg +0 -24
- package/dist/collection/stories/assets/button/2.svg +0 -28
- package/dist/collection/stories/assets/button/3.svg +0 -41
- package/dist/collection/stories/assets/button/4.svg +0 -9
- package/dist/collection/stories/assets/button/5.svg +0 -65
- package/dist/collection/stories/assets/button/6.svg +0 -68
- package/dist/collection/stories/assets/button/7.svg +0 -203
- package/dist/collection/stories/assets/button/8.svg +0 -316
- package/dist/collection/stories/assets/button/9.svg +0 -9
- package/dist/components/bcm-color-input.d.ts +0 -11
- package/dist/components/bcm-color-input.js +0 -129
- package/dist/components/bcm-colorful.d.ts +0 -11
- package/dist/components/bcm-colorful.js +0 -10
- package/dist/components/bcm-input-custom.d.ts +0 -11
- package/dist/components/bcm-input-custom.js +0 -114
- package/dist/components/bcm-modal-2-footer.d.ts +0 -11
- package/dist/components/bcm-modal-2-footer.js +0 -60
- package/dist/components/bcm-modal-2-header.d.ts +0 -11
- package/dist/components/bcm-modal-2-header.js +0 -59
- package/dist/components/bcm-modal-2.d.ts +0 -11
- package/dist/components/bcm-modal-2.js +0 -207
- package/dist/components/bcm-overlay.d.ts +0 -11
- package/dist/components/bcm-overlay.js +0 -10
- package/dist/components/bcm-scroll-area.d.ts +0 -11
- package/dist/components/bcm-scroll-area.js +0 -10
- package/dist/components/bcm-tab-item-header.d.ts +0 -11
- package/dist/components/bcm-tab-item-header.js +0 -102
- package/dist/components/bcm-tab-item.d.ts +0 -11
- package/dist/components/bcm-tab-item.js +0 -117
- package/dist/components/bcm-toast.d.ts +0 -11
- package/dist/components/bcm-toast.js +0 -140
- package/dist/components/colorful.js +0 -17768
- package/dist/components/colors2.js +0 -433
- package/dist/components/input.js +0 -457
- package/dist/components/overlay.js +0 -47
- package/dist/components/scroll-area.js +0 -40
- package/dist/components/types3.js +0 -32
- package/dist/esm/bcm-button_7.entry.js +0 -1560
- package/dist/esm/bcm-color-input.entry.js +0 -72
- package/dist/esm/bcm-colorful_2.entry.js +0 -17966
- package/dist/esm/bcm-date-picker.entry.js +0 -176
- package/dist/esm/bcm-datetime-picker.entry.js +0 -1433
- package/dist/esm/bcm-input-custom.entry.js +0 -69
- package/dist/esm/bcm-menu.entry.js +0 -134
- package/dist/esm/bcm-modal-2-footer.entry.js +0 -46
- package/dist/esm/bcm-modal-2-header.entry.js +0 -45
- package/dist/esm/bcm-modal-2.entry.js +0 -168
- package/dist/esm/bcm-old-input.entry.js +0 -407
- package/dist/esm/bcm-overlay_2.entry.js +0 -43
- package/dist/esm/bcm-tab-item-header.entry.js +0 -83
- package/dist/esm/bcm-tab-item.entry.js +0 -100
- package/dist/esm/bcm-time-picker.entry.js +0 -144
- package/dist/esm/bcm-toast.entry.js +0 -111
- package/dist/esm/bcm-typography.entry.js +0 -31
- package/dist/esm/color-helper-e8ce23d7.js +0 -84
- package/dist/esm/input-template-71d6db95.js +0 -90
- package/dist/esm/tooltip-helper-1eb9d800.js +0 -147
- package/dist/types/components/molecules/color-input/color-input.d.ts +0 -20
- package/dist/types/components/molecules/colorful/colorful.d.ts +0 -8
- package/dist/types/components/molecules/tab-group/tab-item-header.d.ts +0 -13
- package/dist/types/components/molecules/tab-group/tab-item.d.ts +0 -17
- package/dist/types/components/other/input-custom/input-custom.d.ts +0 -20
- package/dist/types/components/other/modal-2/modal-2-footer.d.ts +0 -7
- package/dist/types/components/other/modal-2/modal-2-header.d.ts +0 -7
- package/dist/types/components/other/modal-2/modal-2.d.ts +0 -33
- package/dist/types/components/other/overlay/overlay.d.ts +0 -8
- package/dist/types/components/other/scroll-area/scroll-area.d.ts +0 -7
- package/dist/types/components/other/toast/toast.d.ts +0 -25
- package/dist/types/global/helper/index.d.ts +0 -1
- package/dist/types/global/helper/toast.d.ts +0 -96
- package/helper/index.d.ts +0 -2
- package/helper/index.d.ts.map +0 -1
- package/helper/index.js +0 -17
- package/helper/toast.d.ts +0 -97
- package/helper/toast.d.ts.map +0 -1
- package/helper/toast.js +0 -115
- /package/dist/bromcom-ui/{p-2e73d572.js → p-5fd7a8b6.js} +0 -0
- /package/dist/cjs/{types-7523fd99.js → types-6eb7e028.js} +0 -0
- /package/dist/collection/components/{other → atoms}/box/box.js +0 -0
- /package/dist/collection/components/{other_deprecated → atoms}/tag/tag.js +0 -0
- /package/dist/collection/components/{other_deprecated → atoms}/tag/types.js +0 -0
- /package/dist/collection/components/{other → atoms}/typography/typography.js +0 -0
- /package/dist/collection/components/{other_deprecated → organism}/colorpicker/colorpicker.css +0 -0
- /package/dist/collection/components/{other_deprecated → organism}/colorpicker/colorpicker.js +0 -0
- /package/dist/collection/components/{other_deprecated → organism}/colorpicker/static/chess.png +0 -0
- /package/dist/collection/components/{other_deprecated → organism}/colorpicker/static/color.svg +0 -0
- /package/dist/collection/components/{other_deprecated → organism}/colorpicker/static/colors.svg +0 -0
- /package/dist/esm/{types-9493a7ed.js → types-bfc3bba1.js} +0 -0
- /package/dist/types/components/{other → atoms}/box/box.d.ts +0 -0
- /package/dist/types/components/{other_deprecated → atoms}/tag/tag.d.ts +0 -0
- /package/dist/types/components/{other_deprecated → atoms}/tag/types.d.ts +0 -0
- /package/dist/types/components/{other → atoms}/typography/typography.d.ts +0 -0
- /package/dist/types/components/{other_deprecated → organism}/colorpicker/colorpicker.d.ts +0 -0
|
@@ -19,7 +19,4 @@ export declare class Generate {
|
|
|
19
19
|
static setAttributes: (item: any, obj: any) => void;
|
|
20
20
|
static computedStyle: (element: HTMLElement, property: string) => string;
|
|
21
21
|
static getAncestor: (el: any, selector: any) => any;
|
|
22
|
-
static findParentElement: (element: any, selector: any) => any;
|
|
23
|
-
static observeElementRemoval(element: Element, callback: () => void): void;
|
|
24
|
-
static getTwColor(color: string, variable?: string): {};
|
|
25
22
|
}
|
|
@@ -7,23 +7,14 @@ export declare class Popover {
|
|
|
7
7
|
color?: string;
|
|
8
8
|
el?: HTMLElement;
|
|
9
9
|
trigger?: string;
|
|
10
|
-
|
|
11
|
-
closeDelay: number;
|
|
12
|
-
emitShow: () => void;
|
|
13
|
-
emitHide: () => void;
|
|
14
|
-
constructor({ content, message, targetId, placement, color, trigger, openDelay, closeDelay, emitShow, emitHide }: {
|
|
10
|
+
constructor({ content, message, targetId, placement, color, trigger }: {
|
|
15
11
|
content: any;
|
|
16
12
|
message: any;
|
|
17
13
|
targetId: any;
|
|
18
14
|
placement?: string;
|
|
19
15
|
color?: string;
|
|
20
16
|
trigger?: string;
|
|
21
|
-
openDelay?: number;
|
|
22
|
-
closeDelay?: number;
|
|
23
|
-
emitShow?: () => void;
|
|
24
|
-
emitHide?: () => void;
|
|
25
17
|
});
|
|
26
|
-
destroy: () => void;
|
|
27
18
|
private bgColor;
|
|
28
19
|
exepcitonColors: {
|
|
29
20
|
white: string;
|
|
@@ -33,9 +24,8 @@ export declare class Popover {
|
|
|
33
24
|
private init;
|
|
34
25
|
update: () => void;
|
|
35
26
|
listener: () => void;
|
|
36
|
-
removeListener: () => void;
|
|
37
27
|
private calculatePosition;
|
|
38
|
-
show: () =>
|
|
39
|
-
hide: () =>
|
|
28
|
+
show: () => void;
|
|
29
|
+
hide: () => void;
|
|
40
30
|
toggle: () => void;
|
|
41
31
|
}
|
|
@@ -6,33 +6,20 @@ export declare class Tooltip {
|
|
|
6
6
|
color: string;
|
|
7
7
|
el: HTMLElement;
|
|
8
8
|
trigger: string;
|
|
9
|
-
|
|
10
|
-
openDelay: number;
|
|
11
|
-
closeDelay: number;
|
|
12
|
-
emitShow: () => void;
|
|
13
|
-
emitHide: () => void;
|
|
14
|
-
constructor({ message, targetId, placement, color, trigger, size, openDelay, closeDelay, emitShow, emitHide, }: {
|
|
9
|
+
constructor({ message, targetId, placement, color, trigger }: {
|
|
15
10
|
message: any;
|
|
16
11
|
targetId: any;
|
|
17
12
|
placement?: string;
|
|
18
13
|
color?: string;
|
|
19
14
|
trigger?: string;
|
|
20
|
-
size?: string;
|
|
21
|
-
openDelay?: number;
|
|
22
|
-
closeDelay?: number;
|
|
23
|
-
emitShow?: () => void;
|
|
24
|
-
emitHide?: () => void;
|
|
25
15
|
});
|
|
26
|
-
destroy: () => void;
|
|
27
16
|
private bgColor;
|
|
28
17
|
private target;
|
|
29
|
-
private sizeClass;
|
|
30
18
|
private init;
|
|
31
19
|
update: () => void;
|
|
32
20
|
listener: () => void;
|
|
33
|
-
removeListener: () => void;
|
|
34
21
|
private calculatePosition;
|
|
35
|
-
show: () =>
|
|
36
|
-
hide: () =>
|
|
22
|
+
show: () => void;
|
|
23
|
+
hide: () => void;
|
|
37
24
|
toggle: () => void;
|
|
38
25
|
}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Components, JSX } from
|
|
1
|
+
export { Components, JSX } from './components';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { FunctionalComponent } from
|
|
2
|
-
import Bcm from
|
|
1
|
+
import { FunctionalComponent } from '../stencil-public-runtime';
|
|
2
|
+
import Bcm from '../models/bcm';
|
|
3
3
|
interface InputTemplateProps extends Bcm.InputClickEvent {
|
|
4
|
-
elementType?:
|
|
4
|
+
elementType?: 'textarea' | 'input';
|
|
5
5
|
rows?: any;
|
|
6
6
|
id?: any;
|
|
7
7
|
internalId?: any;
|
|
@@ -29,8 +29,6 @@ interface InputTemplateProps extends Bcm.InputClickEvent {
|
|
|
29
29
|
changePasswordVisibility?: () => void;
|
|
30
30
|
handleClear?: (e: MouseEvent) => void;
|
|
31
31
|
steps?: (type: any) => void;
|
|
32
|
-
isEyeDropperSupported?: () => boolean;
|
|
33
|
-
eyeDropper?: () => void;
|
|
34
32
|
}
|
|
35
33
|
export declare const InputTemplate: FunctionalComponent<InputTemplateProps>;
|
|
36
34
|
export {};
|
package/package.json
CHANGED
|
@@ -1,111 +1,72 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
"
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
"prettier-plugin-organize-imports": "^3.2.2",
|
|
73
|
-
"prettier-plugin-tailwindcss": "^0.2.6",
|
|
74
|
-
"react": "^16.14.0",
|
|
75
|
-
"react-colorful": "^5.6.1",
|
|
76
|
-
"react-dom": "^16.14.0",
|
|
77
|
-
"rollup": "^2.58.0",
|
|
78
|
-
"@rollup/plugin-replace": "^3.1.0",
|
|
79
|
-
"rollup-plugin-dotenv": "latest",
|
|
80
|
-
"slugify": "^1.6.5",
|
|
81
|
-
"snq": "^1.0.3",
|
|
82
|
-
"storybook-fetch-addon": "^1.2.1",
|
|
83
|
-
"tailwindcss": "^3.1.8",
|
|
84
|
-
"ts-dedent": "^2.2.0",
|
|
85
|
-
"tsc-alias": "^1.7.0"
|
|
86
|
-
},
|
|
87
|
-
"__comment__": [
|
|
88
|
-
{
|
|
89
|
-
"@babel/core": "^7.12.3",
|
|
90
|
-
"@babel/plugin-syntax-jsx": "^7.12.1",
|
|
91
|
-
"@babel/plugin-transform-react-jsx": "^7.12.5",
|
|
92
|
-
"babel-loader": "^8.2.0",
|
|
93
|
-
"cpy-cli": "^3.1.1",
|
|
94
|
-
"fs-extra": "^9.0.1",
|
|
95
|
-
"glob": "^7.1.6",
|
|
96
|
-
"gulp": "^4.0.2",
|
|
97
|
-
"gulp-autoprefixer": "^8.0.0",
|
|
98
|
-
"gulp-concat": "^2.6.1",
|
|
99
|
-
"gulp-minify-css": "^1.2.4",
|
|
100
|
-
"gulp-sass": "^5.1.0",
|
|
101
|
-
"sass": "^1.49.8",
|
|
102
|
-
"@storybook/addon-actions": "^6.0.28",
|
|
103
|
-
"@storybook/addon-backgrounds": "^6.1.9",
|
|
104
|
-
"@storybook/addon-controls": "^6.0.28",
|
|
105
|
-
"@storybook/addon-docs": "^6.5.9",
|
|
106
|
-
"@storybook/addon-notes": "^5.3.21",
|
|
107
|
-
"@storybook/addon-viewport": "^6.1.9",
|
|
108
|
-
"@storybook/html": "^6.0.28"
|
|
109
|
-
}
|
|
110
|
-
]
|
|
2
|
+
"name": "bromcom-ui",
|
|
3
|
+
"version": "2.8.0-rc.10-e",
|
|
4
|
+
"description": "Stencil Component Starter",
|
|
5
|
+
"main": "dist/index.cjs.js",
|
|
6
|
+
"module": "dist/index.js",
|
|
7
|
+
"es2015": "dist/esm/index.mjs",
|
|
8
|
+
"es2017": "dist/esm/index.mjs",
|
|
9
|
+
"collection": "dist/collection/collection-manifest.json",
|
|
10
|
+
"collection:main": "dist/collection/index.js",
|
|
11
|
+
"types": "dist/types/components.d.ts",
|
|
12
|
+
"unpkg": "dist/bromcom-ui/bromcom-ui.js",
|
|
13
|
+
"files": [
|
|
14
|
+
"dist/",
|
|
15
|
+
"loader/"
|
|
16
|
+
],
|
|
17
|
+
"scripts": {
|
|
18
|
+
"start": "npm-run-all clean:www -p dev:*",
|
|
19
|
+
"clean:www": "rm -rf www",
|
|
20
|
+
"dev:stencil": "stencil build --dev --watch --serve",
|
|
21
|
+
"dev:tailwind": "tailwindcss -i ./src/directives.css -o ./src/global/tailwind.css --watch --minify",
|
|
22
|
+
"build": "run-s clean:dist clean:loader build:tailwind build:stencil build:aliases",
|
|
23
|
+
"clean:dist": "rm -rf dist",
|
|
24
|
+
"clean:loader": "rm -rf loader",
|
|
25
|
+
"build:tailwind": "tailwindcss -i ./src/directives.css -o ./src/global/tailwind.css --minify",
|
|
26
|
+
"build:stencil": "stencil build --prod",
|
|
27
|
+
"build:aliases": "tsc-alias -p tsconfig.aliases.json",
|
|
28
|
+
"generate": "stencil generate",
|
|
29
|
+
"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",
|
|
30
|
+
"pre-version": "npm run build && npm version prerelease --preid=rc && npm run build",
|
|
31
|
+
"ds-version": "npm run build && npm version patch && npm run build"
|
|
32
|
+
},
|
|
33
|
+
"license": "MIT",
|
|
34
|
+
"devDependencies": {
|
|
35
|
+
"@floating-ui/dom": "^1.0.1",
|
|
36
|
+
"@stencil/core": "^2.17.1",
|
|
37
|
+
"@stencil/sass": "^1.3.2",
|
|
38
|
+
"@stencil/store": "^1.5.0",
|
|
39
|
+
"@types/node": "^18.7.1",
|
|
40
|
+
"classnames": "^2.2.6",
|
|
41
|
+
"npm-run-all": "^4.1.5",
|
|
42
|
+
"rollup-plugin-dotenv": "^0.3.0",
|
|
43
|
+
"slugify": "^1.6.5",
|
|
44
|
+
"snq": "^1.0.3",
|
|
45
|
+
"tailwindcss": "^3.1.8",
|
|
46
|
+
"tsc-alias": "^1.7.0"
|
|
47
|
+
},
|
|
48
|
+
"__comment__": [
|
|
49
|
+
{
|
|
50
|
+
"@babel/core": "^7.12.3",
|
|
51
|
+
"@babel/plugin-syntax-jsx": "^7.12.1",
|
|
52
|
+
"@babel/plugin-transform-react-jsx": "^7.12.5",
|
|
53
|
+
"babel-loader": "^8.2.0",
|
|
54
|
+
"cpy-cli": "^3.1.1",
|
|
55
|
+
"fs-extra": "^9.0.1",
|
|
56
|
+
"glob": "^7.1.6",
|
|
57
|
+
"gulp": "^4.0.2",
|
|
58
|
+
"gulp-autoprefixer": "^8.0.0",
|
|
59
|
+
"gulp-concat": "^2.6.1",
|
|
60
|
+
"gulp-minify-css": "^1.2.4",
|
|
61
|
+
"gulp-sass": "^5.1.0",
|
|
62
|
+
"sass": "^1.49.8",
|
|
63
|
+
"@storybook/addon-actions": "^6.0.28",
|
|
64
|
+
"@storybook/addon-backgrounds": "^6.1.9",
|
|
65
|
+
"@storybook/addon-controls": "^6.0.28",
|
|
66
|
+
"@storybook/addon-docs": "^6.5.9",
|
|
67
|
+
"@storybook/addon-notes": "^5.3.21",
|
|
68
|
+
"@storybook/addon-viewport": "^6.1.9",
|
|
69
|
+
"@storybook/html": "^6.0.28"
|
|
70
|
+
}
|
|
71
|
+
]
|
|
111
72
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./toast";
|
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
interface ToastOptions {
|
|
2
|
-
"id"?: string;
|
|
3
|
-
"message"?: string;
|
|
4
|
-
"status"?: "success" | "error" | "warning" | "info";
|
|
5
|
-
"description"?: string;
|
|
6
|
-
"duration"?: number;
|
|
7
|
-
"position"?: "top" | "top-start" | "top-end" | "bottom" | "bottom-start" | "bottom-end";
|
|
8
|
-
"message-icon"?: string;
|
|
9
|
-
"view-button"?: boolean;
|
|
10
|
-
"close-button"?: boolean;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
interface ToastEvents {
|
|
14
|
-
bcmToastView?: (event: any) => void;
|
|
15
|
-
bcmToastClose?: (event: any) => void;
|
|
16
|
-
bcmToastOpen?: (event: any) => void;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export class Toast {
|
|
20
|
-
element: any;
|
|
21
|
-
options: ToastOptions & ToastEvents;
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* Creates an instance of Toast.
|
|
25
|
-
* @param {ToastOptions & ToastEvents} [options={}]
|
|
26
|
-
* @example
|
|
27
|
-
* const toast = new Toast();
|
|
28
|
-
* @example
|
|
29
|
-
* const toast = new Toast({
|
|
30
|
-
* id: "my-toast",
|
|
31
|
-
* message: "Hello World",
|
|
32
|
-
* status: "success",
|
|
33
|
-
* description: "This is a description",
|
|
34
|
-
* duration: 5000,
|
|
35
|
-
* position: "top",
|
|
36
|
-
* "message-icon": "check",
|
|
37
|
-
* "view-button": true,
|
|
38
|
-
* "close-button": true,
|
|
39
|
-
* bcmToastView: (event) => {
|
|
40
|
-
* // This Event fires when the view button is clicked
|
|
41
|
-
* // do something
|
|
42
|
-
* },
|
|
43
|
-
* bcmToastClose: (event) => {
|
|
44
|
-
* // This Event fires when the toast is closed
|
|
45
|
-
* // do something
|
|
46
|
-
* },
|
|
47
|
-
* bcmToastOpen: (event) => {
|
|
48
|
-
* // This Event fires when the toast is opened
|
|
49
|
-
* // do something
|
|
50
|
-
* }
|
|
51
|
-
* });
|
|
52
|
-
* toast.show();
|
|
53
|
-
*/
|
|
54
|
-
constructor(options: ToastOptions & ToastEvents) {
|
|
55
|
-
this.options = options;
|
|
56
|
-
|
|
57
|
-
this.createElement();
|
|
58
|
-
this.listeners();
|
|
59
|
-
this.setAttributes();
|
|
60
|
-
return this.element;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
private createElement() {
|
|
64
|
-
let el: any;
|
|
65
|
-
this.options?.id && (el = document.getElementById(this.options.id));
|
|
66
|
-
if (el) {
|
|
67
|
-
this.element = el;
|
|
68
|
-
} else {
|
|
69
|
-
const tag = "bcm-toast";
|
|
70
|
-
this.element = document.createElement(tag);
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
document.body.appendChild(this.element);
|
|
74
|
-
return this.element;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
private listeners() {
|
|
78
|
-
this.options.bcmToastView && this.element.addEventListener("bcm-toast-view", this.options.bcmToastView);
|
|
79
|
-
this.options.bcmToastClose && this.element.addEventListener("bcm-toast-close", this.options.bcmToastClose);
|
|
80
|
-
this.options.bcmToastOpen && this.element.addEventListener("bcm-toast-open", this.options.bcmToastOpen);
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
private setAttributes() {
|
|
84
|
-
for (let key in this.options) {
|
|
85
|
-
this.element.setAttribute(key, this.options[key]);
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
/**
|
|
90
|
-
* Shows the toast
|
|
91
|
-
* @returns {HTMLElement} The element that was shown
|
|
92
|
-
* @example
|
|
93
|
-
* const toast = new Toast();
|
|
94
|
-
* toast.show();
|
|
95
|
-
* @example
|
|
96
|
-
* const toast = new Toast();
|
|
97
|
-
* toast.show().then(() => {
|
|
98
|
-
* // do something
|
|
99
|
-
* });
|
|
100
|
-
* @example
|
|
101
|
-
* const toast = new Toast();
|
|
102
|
-
* toast.show().then(() => {
|
|
103
|
-
* // do something
|
|
104
|
-
* }).catch(() => {
|
|
105
|
-
* // do something else
|
|
106
|
-
* });
|
|
107
|
-
*/
|
|
108
|
-
show() {
|
|
109
|
-
this.element.show();
|
|
110
|
-
return this.element;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
/**
|
|
114
|
-
* Hides the toast
|
|
115
|
-
* @returns {HTMLElement} The element that was hidden
|
|
116
|
-
* @example
|
|
117
|
-
* const toast = new Toast();
|
|
118
|
-
* toast.hide();
|
|
119
|
-
* @example
|
|
120
|
-
* const toast = new Toast();
|
|
121
|
-
* toast.hide().then(() => {
|
|
122
|
-
* // do something
|
|
123
|
-
* });
|
|
124
|
-
* @example
|
|
125
|
-
* const toast = new Toast();
|
|
126
|
-
* toast.hide().then(() => {
|
|
127
|
-
* // do something
|
|
128
|
-
* }).catch(() => {
|
|
129
|
-
* // do something else
|
|
130
|
-
* });
|
|
131
|
-
*/
|
|
132
|
-
hide() {
|
|
133
|
-
this.element.hide();
|
|
134
|
-
return this.element;
|
|
135
|
-
}
|
|
136
|
-
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built with Stencil
|
|
3
|
-
* Copyright (c) Bromcom.
|
|
4
|
-
*/
|
|
5
|
-
import{r as t,c as s,h as i,H as e,g as a}from"./p-da1055cb.js";import{c as o}from"./p-d65a1e21.js";import{I as w}from"./p-c23b6240.js";import{G as r}from"./p-90b6a399.js";import{S as h}from"./p-8d0ca8c2.js";import{B as n}from"./p-a429e85b.js";import{d as c}from"./p-8c018ae0.js";import"./p-6f56f8ca.js";import"./p-4aa0e6b1.js";const l=class{constructor(i){t(this,i),this.bcmToastClose=s(this,"bcm-toast-close",7),this.bcmToastOpen=s(this,"bcm-toast-open",7),this.bcmToastView=s(this,"bcm-toast-view",7),this._id=r.UID(),this.status=void 0,this.message="",this.description="",this.duration=3e3,this.position=n.Placement.bottom,this.messageIcon=void 0,this.viewButton=!1,this.closeButton=!0,this.visible=!1,this.visibleContainer=!1}async show(){const t=document.getElementById(this._id+"-container");return t&&document.body.appendChild(t),this.visible=!0,await c(50),this.visibleContainer=!0,this.bcmToastOpen.emit(),this.timer&&clearTimeout(this.timer),this.timer=setTimeout((()=>this.hide()),this.duration),this.el}async hide(){this.visibleContainer=!1,clearTimeout(this.timer),this.bcmToastClose.emit(),await c(100),this.visible=!1}handleMouseEnter(){clearTimeout(this.timer)}handleMouseLeave(){this.visible&&(this.timer=setTimeout((()=>this.hide()),1e3))}render(){return i(e,{class:"tw-hidden"},i("div",{class:o({"tw-hidden":!this.visible}),id:this._id+"-container",onMouseEnter:()=>this.handleMouseEnter(),onMouseLeave:()=>this.handleMouseLeave()},i("div",{class:o("tw-pointer-events-auto tw-transform tw-transition tw-duration-300 tw-ease-in-out","tw-flex tw-min-w-[256px] tw-max-w-[420px] tw-flex-col tw-gap-2 tw-rounded-lg tw-border tw-font-sans tw-font-normal tw-shadow-2","tw-border-gray-300 tw-bg-white tw-text-slate-600",{"tw-p-4":!this.description,"tw-p-6":this.description},"tw-fixed tw-z-50","tw-transform tw-transition tw-duration-300 tw-ease-in-out ",{"tw-inset-x-0 tw-top-4 tw-mx-auto":this.position===n.Placement.top,"tw-inset-x-0 tw-bottom-4 tw-mx-auto":this.position===n.Placement.bottom,"tw-top-4 tw-left-4":this.position===n.Placement["top-start"],"tw-top-4 tw-right-4":this.position===n.Placement["top-end"],"tw-bottom-4 tw-left-4":this.position===n.Placement["bottom-start"],"tw-bottom-4 tw-right-4":this.position===n.Placement["bottom-end"],"tw-translate-y-0 tw-opacity-100 ":this.visibleContainer,"tw-opacity-0":!this.visibleContainer,"tw-translate-y-[-100%]":!this.visibleContainer&&"top"===this.position.split("-")[0],"tw-translate-y-[100%]":!this.visibleContainer&&"bottom"===this.position.split("-")[0]})},i("div",{class:"tw-flex tw-items-center tw-justify-between tw-gap-5"},i("div",{class:"tw-flex tw-items-center tw-gap-3 "},this.status&&i("i",{class:o("tw-text-6",this.messageIcon?this.messageIcon:"far",{"tw-text-emerald-500":"success"===this.status,"tw-text-red-500":"error"===this.status,"tw-text-amber-500":"warning"===this.status,"tw-text-blue-500":"info"===this.status},{"fa-check-circle":!this.messageIcon&&"success"===this.status,"fa-exclamation-circle":!this.messageIcon&&"error"===this.status,"fa-exclamation-triangle":!this.messageIcon&&"warning"===this.status,"fa-info-circle":!this.messageIcon&&"info"===this.status})}),i("span",{class:o({"tw-text-4":!this.description,"tw-text-6 tw-font-medium":this.description})},!this.description&&this.status&&i("span",null,h.capitalize(this.status),": "),this.message)),i("div",{class:"tw-flex tw-items-baseline tw-gap-2"},this.viewButton&&i("button",{onClick:()=>this.bcmToastView.emit(),title:"View details",class:o("tw-cursor-pointer tw-rounded tw-bg-transparent tw-p-0 tw-px-1 tw-text-4 tw-text-inherit","hover:tw-bg-gray-100 hover:tw-text-slate-800","active:tw-bg-gray-200","tw-transition tw-duration-300 tw-ease-in-out",{"tw-font-medium":this.description})},"View"),this.closeButton&&i("button",{title:"Close",onClick:()=>this.hide(),class:o("tw-rounded tw-bg-transparent tw-p-0","tw-flex tw-h-6 tw-w-6 tw-cursor-pointer tw-items-center tw-justify-center tw-text-3 tw-text-inherit","hover:tw-bg-gray-100 hover:tw-text-slate-800","active:tw-bg-gray-200")},i("i",{class:"fal fa-times"})))),this.description&&i("div",{class:"tw-text-3 "},this.description),i("slot",null))))}get el(){return a(this)}};!function(t,s,i,e){var a,o=arguments.length,w=o<3?s:null===e?e=Object.getOwnPropertyDescriptor(s,i):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)w=Reflect.decorate(t,s,i,e);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(w=(o<3?a(w):o>3?a(s,i,w):a(s,i))||w);o>3&&w&&Object.defineProperty(s,i,w)}([w()],l.prototype,"el",void 0);export{l as bcm_toast}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built with Stencil
|
|
3
|
-
* Copyright (c) Bromcom.
|
|
4
|
-
*/
|
|
5
|
-
import{r as e,h as i,H as t,g as n}from"./p-da1055cb.js";import{I as p}from"./p-c23b6240.js";import{G as a}from"./p-90b6a399.js";import"./p-4aa0e6b1.js";import"./p-6f56f8ca.js";const s=class{constructor(i){e(this,i),this._id=a.UID(),this.multi=!1}componentDidRender(){this.multi||this.checkExpandedCount()}checkExpandedCount(){var e,i;const t=this.el.querySelectorAll(".bcm-expansion-panel");if(t&&Array.from(t).map((e=>e.expanded)).filter(Boolean).length>1){const n=null===(i=null===(e=Array.from(t).filter((e=>e.expanded)))||void 0===e?void 0:e.pop())||void 0===i?void 0:i.id;Array.from(t).forEach((e=>{e.id!==n&&(e.expanded=!1)}))}}open(e){if(this.multi)return;const i=e.detail,t=this.el.querySelectorAll(".bcm-expansion-panel");t&&t.forEach((e=>{e.id!==i&&(e.expanded=!1)}))}isLoad(e){var i,t,n;if(!this.multi){var p=(null===(t=null===(i=null==e?void 0:e.target)||void 0===i?void 0:i.parentElement)||void 0===t?void 0:t.id)||null;"BCM-EXPANSION-PANEL"==((null===(n=null==e?void 0:e.target)||void 0===n?void 0:n.nodeName)||null)&&this._id==p&&this.checkExpandedCount()}}render(){return i(t,{id:this._id},i("slot",null))}get el(){return n(this)}};(function(e,i,t,n){var p,a=arguments.length,s=a<3?i:null===n?n=Object.getOwnPropertyDescriptor(i,t):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,i,t,n);else for(var o=e.length-1;o>=0;o--)(p=e[o])&&(s=(a<3?p(s):a>3?p(i,t,s):p(i,t))||s);a>3&&s&&Object.defineProperty(i,t,s)})([p()],s.prototype,"el",void 0),s.style='@import url("https://fonts.googleapis.com/css?family=Roboto:400,500");.size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.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}:host{display:block}';export{s as bcm_accordion}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built with Stencil
|
|
3
|
-
* Copyright (c) Bromcom.
|
|
4
|
-
*/
|
|
5
|
-
import{r as t,h as i,H as e,g as s}from"./p-da1055cb.js";import{c as a}from"./p-d65a1e21.js";import{I as n}from"./p-c23b6240.js";import{G as h}from"./p-90b6a399.js";import{B as p}from"./p-a429e85b.js";import{d as r}from"./p-8c018ae0.js";import"./p-6f56f8ca.js";import"./p-4aa0e6b1.js";const o=class{constructor(i){t(this,i),this._id=h.UID(),this.time=new Date,this.value=void 0,this.hidden=!1,this.name=void 0,this.fullWidth=!1,this.required=!1,this.label=void 0,this.placeholder=void 0,this.disabled=!1,this.noCaption=!1,this.caption="",this.captionError=void 0,this.captionType="default",this.alignment=void 0,this.placement=p.Placement["bottom-start"],this.linkedComponent=void 0,this.clearable=!1}componentWillLoad(){if("string"==typeof this.time){const t=!!/\b([01][0-9]|2[0-3]):([0-5][0-9])\b/.test(this.time)&&this.time.split(":");this.time=t?new Date((new Date).setHours(Number(t[0]),Number(t[1]))):new Date}}handlePickerLoad(){this.value=this.picker.value}handlePickerChange(t){this.value=t.detail}async set(t){return this.picker.set(t)}async get(){var t;return(null===(t=this.value)||void 0===t?void 0:t.timestamp)||null}async setDisabled(t){this.disabled=t}async getInput(){return await this.picker.getInput()}async getValue(){return this.value}async isValid(){return await this.picker.isValid()}async setClear(){return await this.picker.setClear(),await r(10),Promise.resolve()}async resetCaption(){return await r(10),await this.picker.resetCaption(),this.captionType="default",this.captionError=null,await r(10),Promise.resolve()}async open(){return await this.picker.open()}render(){const t=a(this.hidden?"hidden":null,{"full-width":this.fullWidth});return i(e,{class:t},i("bcm-datetime-picker",{"linked-component":this.linkedComponent,id:this._id,fullWidth:this.fullWidth,required:this.required,label:this.label,name:this.name,placeholder:this.placeholder,type:"time",clearable:this.clearable,date:this.time,ref:t=>this.picker=t,disabled:this.disabled,"on-bcm-load":()=>this.handlePickerLoad(),"on-bcm-change":t=>this.handlePickerChange(t),noCaption:this.noCaption,captionError:this.captionError,caption:this.caption,captionType:this.captionType,alignment:this.alignment,placement:this.placement}))}get el(){return s(this)}};(function(t,i,e,s){var a,n=arguments.length,h=n<3?i:null===s?s=Object.getOwnPropertyDescriptor(i,e):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)h=Reflect.decorate(t,i,e,s);else for(var p=t.length-1;p>=0;p--)(a=t[p])&&(h=(n<3?a(h):n>3?a(i,e,h):a(i,e))||h);n>3&&h&&Object.defineProperty(i,e,h)})([n()],o.prototype,"el",void 0),o.style='@import url("https://fonts.googleapis.com/css?family=Roboto:400,500");.size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.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}:host{display:inline-block;width:100%;max-width:256px}:host(.full-width){max-width:100%}:host(.hidden){display:none}:host(.linked-component){display:none}';export{o as bcm_time_picker}
|