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
|
@@ -1,365 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built with Stencil
|
|
3
|
-
* Copyright (c) Bromcom.
|
|
4
|
-
*/
|
|
5
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
6
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
7
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
8
|
-
r = Reflect.decorate(decorators, target, key, desc);
|
|
9
|
-
else
|
|
10
|
-
for (var i = decorators.length - 1; i >= 0; i--)
|
|
11
|
-
if (d = decorators[i])
|
|
12
|
-
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
13
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
14
|
-
};
|
|
15
|
-
import { h, Host } from "@stencil/core";
|
|
16
|
-
import cs from "classnames";
|
|
17
|
-
import { IsLoad } from "../../../decorators/is-load-decorator";
|
|
18
|
-
import { Generate } from "../../../helper/generate";
|
|
19
|
-
import { StringHelper } from "../../../helper/string-helper";
|
|
20
|
-
import Bcm from "../../../models/bcm";
|
|
21
|
-
import { delay } from "../../../utils/utils";
|
|
22
|
-
export class BcmToast {
|
|
23
|
-
constructor() {
|
|
24
|
-
this._id = Generate.UID();
|
|
25
|
-
this.status = undefined;
|
|
26
|
-
this.message = "";
|
|
27
|
-
this.description = "";
|
|
28
|
-
this.duration = 3000;
|
|
29
|
-
this.position = Bcm.Placement.bottom;
|
|
30
|
-
this.messageIcon = undefined;
|
|
31
|
-
this.viewButton = false;
|
|
32
|
-
this.closeButton = true;
|
|
33
|
-
this.visible = false;
|
|
34
|
-
this.visibleContainer = false;
|
|
35
|
-
}
|
|
36
|
-
async show() {
|
|
37
|
-
const container = document.getElementById(this._id + "-container");
|
|
38
|
-
if (container) {
|
|
39
|
-
document.body.appendChild(container);
|
|
40
|
-
}
|
|
41
|
-
this.visible = true;
|
|
42
|
-
await delay(50);
|
|
43
|
-
this.visibleContainer = true;
|
|
44
|
-
this.bcmToastOpen.emit();
|
|
45
|
-
if (this.timer) {
|
|
46
|
-
clearTimeout(this.timer);
|
|
47
|
-
}
|
|
48
|
-
this.timer = setTimeout(() => this.hide(), this.duration);
|
|
49
|
-
return this.el;
|
|
50
|
-
}
|
|
51
|
-
async hide() {
|
|
52
|
-
this.visibleContainer = false;
|
|
53
|
-
clearTimeout(this.timer);
|
|
54
|
-
this.bcmToastClose.emit();
|
|
55
|
-
await delay(100);
|
|
56
|
-
this.visible = false;
|
|
57
|
-
}
|
|
58
|
-
handleMouseEnter() {
|
|
59
|
-
clearTimeout(this.timer);
|
|
60
|
-
}
|
|
61
|
-
handleMouseLeave() {
|
|
62
|
-
if (this.visible) {
|
|
63
|
-
this.timer = setTimeout(() => this.hide(), 1000);
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
render() {
|
|
67
|
-
return (h(Host, { class: "tw-hidden" }, h("div", { class: cs({ "tw-hidden": !this.visible }), id: this._id + "-container", onMouseEnter: () => this.handleMouseEnter(), onMouseLeave: () => this.handleMouseLeave() }, h("div", { class: cs("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", {
|
|
68
|
-
"tw-p-4": !this.description,
|
|
69
|
-
"tw-p-6": this.description,
|
|
70
|
-
}, "tw-fixed tw-z-50", "tw-transform tw-transition tw-duration-300 tw-ease-in-out ", {
|
|
71
|
-
"tw-inset-x-0 tw-top-4 tw-mx-auto": this.position === Bcm.Placement.top,
|
|
72
|
-
"tw-inset-x-0 tw-bottom-4 tw-mx-auto": this.position === Bcm.Placement.bottom,
|
|
73
|
-
"tw-top-4 tw-left-4": this.position === Bcm.Placement["top-start"],
|
|
74
|
-
"tw-top-4 tw-right-4": this.position === Bcm.Placement["top-end"],
|
|
75
|
-
"tw-bottom-4 tw-left-4": this.position === Bcm.Placement["bottom-start"],
|
|
76
|
-
"tw-bottom-4 tw-right-4": this.position === Bcm.Placement["bottom-end"],
|
|
77
|
-
"tw-translate-y-0 tw-opacity-100 ": this.visibleContainer,
|
|
78
|
-
"tw-opacity-0": !this.visibleContainer,
|
|
79
|
-
"tw-translate-y-[-100%]": !this.visibleContainer && this.position.split("-")[0] === "top",
|
|
80
|
-
"tw-translate-y-[100%]": !this.visibleContainer && this.position.split("-")[0] === "bottom",
|
|
81
|
-
}) }, h("div", { class: "tw-flex tw-items-center tw-justify-between tw-gap-5" }, h("div", { class: "tw-flex tw-items-center tw-gap-3 " }, this.status && (h("i", { class: cs("tw-text-6", this.messageIcon ? this.messageIcon : "far", {
|
|
82
|
-
"tw-text-emerald-500": this.status === "success",
|
|
83
|
-
"tw-text-red-500": this.status === "error",
|
|
84
|
-
"tw-text-amber-500": this.status === "warning",
|
|
85
|
-
"tw-text-blue-500": this.status === "info",
|
|
86
|
-
}, {
|
|
87
|
-
"fa-check-circle": !this.messageIcon && this.status === "success",
|
|
88
|
-
"fa-exclamation-circle": !this.messageIcon && this.status === "error",
|
|
89
|
-
"fa-exclamation-triangle": !this.messageIcon && this.status === "warning",
|
|
90
|
-
"fa-info-circle": !this.messageIcon && this.status === "info",
|
|
91
|
-
}) })), h("span", { class: cs({
|
|
92
|
-
"tw-text-4": !this.description,
|
|
93
|
-
"tw-text-6 tw-font-medium": this.description,
|
|
94
|
-
}) }, !this.description && this.status && h("span", null, StringHelper.capitalize(this.status), ": "), this.message)), h("div", { class: "tw-flex tw-items-baseline tw-gap-2" }, this.viewButton && (h("button", { onClick: () => this.bcmToastView.emit(), title: "View details", class: cs("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", {
|
|
95
|
-
"tw-font-medium": this.description,
|
|
96
|
-
}) }, "View")), this.closeButton && (h("button", { title: "Close", onClick: () => this.hide(), class: cs("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") }, h("i", { class: "fal fa-times" }))))), this.description && h("div", { class: "tw-text-3 " }, this.description), h("slot", null)))));
|
|
97
|
-
}
|
|
98
|
-
static get is() { return "bcm-toast"; }
|
|
99
|
-
static get properties() {
|
|
100
|
-
return {
|
|
101
|
-
"_id": {
|
|
102
|
-
"type": "string",
|
|
103
|
-
"mutable": true,
|
|
104
|
-
"complexType": {
|
|
105
|
-
"original": "string",
|
|
106
|
-
"resolved": "string",
|
|
107
|
-
"references": {}
|
|
108
|
-
},
|
|
109
|
-
"required": false,
|
|
110
|
-
"optional": false,
|
|
111
|
-
"docs": {
|
|
112
|
-
"tags": [],
|
|
113
|
-
"text": ""
|
|
114
|
-
},
|
|
115
|
-
"attribute": "id",
|
|
116
|
-
"reflect": true,
|
|
117
|
-
"defaultValue": "Generate.UID()"
|
|
118
|
-
},
|
|
119
|
-
"status": {
|
|
120
|
-
"type": "string",
|
|
121
|
-
"mutable": false,
|
|
122
|
-
"complexType": {
|
|
123
|
-
"original": "\"success\" | \"error\" | \"warning\" | \"info\"",
|
|
124
|
-
"resolved": "\"error\" | \"info\" | \"success\" | \"warning\"",
|
|
125
|
-
"references": {}
|
|
126
|
-
},
|
|
127
|
-
"required": false,
|
|
128
|
-
"optional": false,
|
|
129
|
-
"docs": {
|
|
130
|
-
"tags": [],
|
|
131
|
-
"text": ""
|
|
132
|
-
},
|
|
133
|
-
"attribute": "status",
|
|
134
|
-
"reflect": false
|
|
135
|
-
},
|
|
136
|
-
"message": {
|
|
137
|
-
"type": "string",
|
|
138
|
-
"mutable": false,
|
|
139
|
-
"complexType": {
|
|
140
|
-
"original": "string",
|
|
141
|
-
"resolved": "string",
|
|
142
|
-
"references": {}
|
|
143
|
-
},
|
|
144
|
-
"required": false,
|
|
145
|
-
"optional": false,
|
|
146
|
-
"docs": {
|
|
147
|
-
"tags": [],
|
|
148
|
-
"text": ""
|
|
149
|
-
},
|
|
150
|
-
"attribute": "message",
|
|
151
|
-
"reflect": false,
|
|
152
|
-
"defaultValue": "\"\""
|
|
153
|
-
},
|
|
154
|
-
"description": {
|
|
155
|
-
"type": "string",
|
|
156
|
-
"mutable": false,
|
|
157
|
-
"complexType": {
|
|
158
|
-
"original": "string",
|
|
159
|
-
"resolved": "string",
|
|
160
|
-
"references": {}
|
|
161
|
-
},
|
|
162
|
-
"required": false,
|
|
163
|
-
"optional": false,
|
|
164
|
-
"docs": {
|
|
165
|
-
"tags": [],
|
|
166
|
-
"text": ""
|
|
167
|
-
},
|
|
168
|
-
"attribute": "description",
|
|
169
|
-
"reflect": false,
|
|
170
|
-
"defaultValue": "\"\""
|
|
171
|
-
},
|
|
172
|
-
"duration": {
|
|
173
|
-
"type": "number",
|
|
174
|
-
"mutable": false,
|
|
175
|
-
"complexType": {
|
|
176
|
-
"original": "number",
|
|
177
|
-
"resolved": "number",
|
|
178
|
-
"references": {}
|
|
179
|
-
},
|
|
180
|
-
"required": false,
|
|
181
|
-
"optional": false,
|
|
182
|
-
"docs": {
|
|
183
|
-
"tags": [],
|
|
184
|
-
"text": ""
|
|
185
|
-
},
|
|
186
|
-
"attribute": "duration",
|
|
187
|
-
"reflect": false,
|
|
188
|
-
"defaultValue": "3000"
|
|
189
|
-
},
|
|
190
|
-
"position": {
|
|
191
|
-
"type": "string",
|
|
192
|
-
"mutable": false,
|
|
193
|
-
"complexType": {
|
|
194
|
-
"original": "PlacementTypes",
|
|
195
|
-
"resolved": "\"bottom\" | \"bottom-end\" | \"bottom-start\" | \"left\" | \"left-end\" | \"left-start\" | \"right\" | \"right-end\" | \"right-start\" | \"top\" | \"top-end\" | \"top-start\"",
|
|
196
|
-
"references": {
|
|
197
|
-
"PlacementTypes": {
|
|
198
|
-
"location": "import",
|
|
199
|
-
"path": "../../../models/bcm-types"
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
},
|
|
203
|
-
"required": false,
|
|
204
|
-
"optional": false,
|
|
205
|
-
"docs": {
|
|
206
|
-
"tags": [],
|
|
207
|
-
"text": ""
|
|
208
|
-
},
|
|
209
|
-
"attribute": "position",
|
|
210
|
-
"reflect": false,
|
|
211
|
-
"defaultValue": "Bcm.Placement.bottom"
|
|
212
|
-
},
|
|
213
|
-
"messageIcon": {
|
|
214
|
-
"type": "any",
|
|
215
|
-
"mutable": false,
|
|
216
|
-
"complexType": {
|
|
217
|
-
"original": "any",
|
|
218
|
-
"resolved": "any",
|
|
219
|
-
"references": {}
|
|
220
|
-
},
|
|
221
|
-
"required": false,
|
|
222
|
-
"optional": false,
|
|
223
|
-
"docs": {
|
|
224
|
-
"tags": [],
|
|
225
|
-
"text": ""
|
|
226
|
-
},
|
|
227
|
-
"attribute": "message-icon",
|
|
228
|
-
"reflect": false
|
|
229
|
-
},
|
|
230
|
-
"viewButton": {
|
|
231
|
-
"type": "boolean",
|
|
232
|
-
"mutable": false,
|
|
233
|
-
"complexType": {
|
|
234
|
-
"original": "boolean",
|
|
235
|
-
"resolved": "boolean",
|
|
236
|
-
"references": {}
|
|
237
|
-
},
|
|
238
|
-
"required": false,
|
|
239
|
-
"optional": false,
|
|
240
|
-
"docs": {
|
|
241
|
-
"tags": [],
|
|
242
|
-
"text": ""
|
|
243
|
-
},
|
|
244
|
-
"attribute": "view-button",
|
|
245
|
-
"reflect": false,
|
|
246
|
-
"defaultValue": "false"
|
|
247
|
-
},
|
|
248
|
-
"closeButton": {
|
|
249
|
-
"type": "boolean",
|
|
250
|
-
"mutable": false,
|
|
251
|
-
"complexType": {
|
|
252
|
-
"original": "boolean",
|
|
253
|
-
"resolved": "boolean",
|
|
254
|
-
"references": {}
|
|
255
|
-
},
|
|
256
|
-
"required": false,
|
|
257
|
-
"optional": false,
|
|
258
|
-
"docs": {
|
|
259
|
-
"tags": [],
|
|
260
|
-
"text": ""
|
|
261
|
-
},
|
|
262
|
-
"attribute": "close-button",
|
|
263
|
-
"reflect": false,
|
|
264
|
-
"defaultValue": "true"
|
|
265
|
-
}
|
|
266
|
-
};
|
|
267
|
-
}
|
|
268
|
-
static get states() {
|
|
269
|
-
return {
|
|
270
|
-
"visible": {},
|
|
271
|
-
"visibleContainer": {}
|
|
272
|
-
};
|
|
273
|
-
}
|
|
274
|
-
static get events() {
|
|
275
|
-
return [{
|
|
276
|
-
"method": "bcmToastClose",
|
|
277
|
-
"name": "bcm-toast-close",
|
|
278
|
-
"bubbles": true,
|
|
279
|
-
"cancelable": true,
|
|
280
|
-
"composed": true,
|
|
281
|
-
"docs": {
|
|
282
|
-
"tags": [],
|
|
283
|
-
"text": ""
|
|
284
|
-
},
|
|
285
|
-
"complexType": {
|
|
286
|
-
"original": "any",
|
|
287
|
-
"resolved": "any",
|
|
288
|
-
"references": {}
|
|
289
|
-
}
|
|
290
|
-
}, {
|
|
291
|
-
"method": "bcmToastOpen",
|
|
292
|
-
"name": "bcm-toast-open",
|
|
293
|
-
"bubbles": true,
|
|
294
|
-
"cancelable": true,
|
|
295
|
-
"composed": true,
|
|
296
|
-
"docs": {
|
|
297
|
-
"tags": [],
|
|
298
|
-
"text": ""
|
|
299
|
-
},
|
|
300
|
-
"complexType": {
|
|
301
|
-
"original": "any",
|
|
302
|
-
"resolved": "any",
|
|
303
|
-
"references": {}
|
|
304
|
-
}
|
|
305
|
-
}, {
|
|
306
|
-
"method": "bcmToastView",
|
|
307
|
-
"name": "bcm-toast-view",
|
|
308
|
-
"bubbles": true,
|
|
309
|
-
"cancelable": true,
|
|
310
|
-
"composed": true,
|
|
311
|
-
"docs": {
|
|
312
|
-
"tags": [],
|
|
313
|
-
"text": ""
|
|
314
|
-
},
|
|
315
|
-
"complexType": {
|
|
316
|
-
"original": "any",
|
|
317
|
-
"resolved": "any",
|
|
318
|
-
"references": {}
|
|
319
|
-
}
|
|
320
|
-
}];
|
|
321
|
-
}
|
|
322
|
-
static get methods() {
|
|
323
|
-
return {
|
|
324
|
-
"show": {
|
|
325
|
-
"complexType": {
|
|
326
|
-
"signature": "() => Promise<HTMLElement>",
|
|
327
|
-
"parameters": [],
|
|
328
|
-
"references": {
|
|
329
|
-
"Promise": {
|
|
330
|
-
"location": "global"
|
|
331
|
-
},
|
|
332
|
-
"HTMLElement": {
|
|
333
|
-
"location": "global"
|
|
334
|
-
}
|
|
335
|
-
},
|
|
336
|
-
"return": "Promise<HTMLElement>"
|
|
337
|
-
},
|
|
338
|
-
"docs": {
|
|
339
|
-
"text": "",
|
|
340
|
-
"tags": []
|
|
341
|
-
}
|
|
342
|
-
},
|
|
343
|
-
"hide": {
|
|
344
|
-
"complexType": {
|
|
345
|
-
"signature": "() => Promise<void>",
|
|
346
|
-
"parameters": [],
|
|
347
|
-
"references": {
|
|
348
|
-
"Promise": {
|
|
349
|
-
"location": "global"
|
|
350
|
-
}
|
|
351
|
-
},
|
|
352
|
-
"return": "Promise<void>"
|
|
353
|
-
},
|
|
354
|
-
"docs": {
|
|
355
|
-
"text": "",
|
|
356
|
-
"tags": []
|
|
357
|
-
}
|
|
358
|
-
}
|
|
359
|
-
};
|
|
360
|
-
}
|
|
361
|
-
static get elementRef() { return "el"; }
|
|
362
|
-
}
|
|
363
|
-
__decorate([
|
|
364
|
-
IsLoad()
|
|
365
|
-
], BcmToast.prototype, "el", void 0);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./toast";
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built with Stencil
|
|
3
|
-
* Copyright (c) Bromcom.
|
|
4
|
-
*/
|
|
5
|
-
export class Toast {
|
|
6
|
-
/**
|
|
7
|
-
* Creates an instance of Toast.
|
|
8
|
-
* @param {ToastOptions & ToastEvents} [options={}]
|
|
9
|
-
* @example
|
|
10
|
-
* const toast = new Toast();
|
|
11
|
-
* @example
|
|
12
|
-
* const toast = new Toast({
|
|
13
|
-
* id: "my-toast",
|
|
14
|
-
* message: "Hello World",
|
|
15
|
-
* status: "success",
|
|
16
|
-
* description: "This is a description",
|
|
17
|
-
* duration: 5000,
|
|
18
|
-
* position: "top",
|
|
19
|
-
* "message-icon": "check",
|
|
20
|
-
* "view-button": true,
|
|
21
|
-
* "close-button": true,
|
|
22
|
-
* bcmToastView: (event) => {
|
|
23
|
-
* // This Event fires when the view button is clicked
|
|
24
|
-
* // do something
|
|
25
|
-
* },
|
|
26
|
-
* bcmToastClose: (event) => {
|
|
27
|
-
* // This Event fires when the toast is closed
|
|
28
|
-
* // do something
|
|
29
|
-
* },
|
|
30
|
-
* bcmToastOpen: (event) => {
|
|
31
|
-
* // This Event fires when the toast is opened
|
|
32
|
-
* // do something
|
|
33
|
-
* }
|
|
34
|
-
* });
|
|
35
|
-
* toast.show();
|
|
36
|
-
*/
|
|
37
|
-
constructor(options) {
|
|
38
|
-
this.options = options;
|
|
39
|
-
this.createElement();
|
|
40
|
-
this.listeners();
|
|
41
|
-
this.setAttributes();
|
|
42
|
-
return this.element;
|
|
43
|
-
}
|
|
44
|
-
createElement() {
|
|
45
|
-
var _a;
|
|
46
|
-
let el;
|
|
47
|
-
((_a = this.options) === null || _a === void 0 ? void 0 : _a.id) && (el = document.getElementById(this.options.id));
|
|
48
|
-
if (el) {
|
|
49
|
-
this.element = el;
|
|
50
|
-
}
|
|
51
|
-
else {
|
|
52
|
-
const tag = "bcm-toast";
|
|
53
|
-
this.element = document.createElement(tag);
|
|
54
|
-
}
|
|
55
|
-
document.body.appendChild(this.element);
|
|
56
|
-
return this.element;
|
|
57
|
-
}
|
|
58
|
-
listeners() {
|
|
59
|
-
this.options.bcmToastView && this.element.addEventListener("bcm-toast-view", this.options.bcmToastView);
|
|
60
|
-
this.options.bcmToastClose && this.element.addEventListener("bcm-toast-close", this.options.bcmToastClose);
|
|
61
|
-
this.options.bcmToastOpen && this.element.addEventListener("bcm-toast-open", this.options.bcmToastOpen);
|
|
62
|
-
}
|
|
63
|
-
setAttributes() {
|
|
64
|
-
for (let key in this.options) {
|
|
65
|
-
this.element.setAttribute(key, this.options[key]);
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
/**
|
|
69
|
-
* Shows the toast
|
|
70
|
-
* @returns {HTMLElement} The element that was shown
|
|
71
|
-
* @example
|
|
72
|
-
* const toast = new Toast();
|
|
73
|
-
* toast.show();
|
|
74
|
-
* @example
|
|
75
|
-
* const toast = new Toast();
|
|
76
|
-
* toast.show().then(() => {
|
|
77
|
-
* // do something
|
|
78
|
-
* });
|
|
79
|
-
* @example
|
|
80
|
-
* const toast = new Toast();
|
|
81
|
-
* toast.show().then(() => {
|
|
82
|
-
* // do something
|
|
83
|
-
* }).catch(() => {
|
|
84
|
-
* // do something else
|
|
85
|
-
* });
|
|
86
|
-
*/
|
|
87
|
-
show() {
|
|
88
|
-
this.element.show();
|
|
89
|
-
return this.element;
|
|
90
|
-
}
|
|
91
|
-
/**
|
|
92
|
-
* Hides the toast
|
|
93
|
-
* @returns {HTMLElement} The element that was hidden
|
|
94
|
-
* @example
|
|
95
|
-
* const toast = new Toast();
|
|
96
|
-
* toast.hide();
|
|
97
|
-
* @example
|
|
98
|
-
* const toast = new Toast();
|
|
99
|
-
* toast.hide().then(() => {
|
|
100
|
-
* // do something
|
|
101
|
-
* });
|
|
102
|
-
* @example
|
|
103
|
-
* const toast = new Toast();
|
|
104
|
-
* toast.hide().then(() => {
|
|
105
|
-
* // do something
|
|
106
|
-
* }).catch(() => {
|
|
107
|
-
* // do something else
|
|
108
|
-
* });
|
|
109
|
-
*/
|
|
110
|
-
hide() {
|
|
111
|
-
this.element.hide();
|
|
112
|
-
return this.element;
|
|
113
|
-
}
|
|
114
|
-
}
|
|
@@ -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,35 +0,0 @@
|
|
|
1
|
-
<svg width="443" height="265" viewBox="0 0 443 265" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<g filter="url(#filter0_d_40_24076)">
|
|
3
|
-
<path d="M428.143 4.83496H14.1434C9.72515 4.83496 6.14343 8.41668 6.14343 12.835V248.835C6.14343 253.253 9.72515 256.835 14.1434 256.835H428.143C432.562 256.835 436.143 253.253 436.143 248.835V12.835C436.143 8.41668 432.562 4.83496 428.143 4.83496Z" fill="white"/>
|
|
4
|
-
<path d="M221.144 40.835C206.785 40.835 195.144 52.4808 195.144 66.835C195.144 81.1975 206.785 92.835 221.144 92.835C235.502 92.835 247.144 81.1975 247.144 66.835C247.144 52.4808 235.502 40.835 221.144 40.835ZM221.144 87.8027C209.556 87.8027 200.176 78.4269 200.176 66.835C200.176 55.2508 209.556 45.8672 221.144 45.8672C232.728 45.8672 242.112 55.2472 242.112 66.835C242.112 78.4228 232.736 87.8027 221.144 87.8027ZM221.144 52.3672C223.576 52.3672 225.547 54.3386 225.547 56.7704C225.547 59.2023 223.576 61.1737 221.144 61.1737C218.712 61.1737 216.741 59.2023 216.741 56.7704C216.741 54.3386 218.712 52.3672 221.144 52.3672ZM227.015 78.9963C227.015 79.691 226.451 80.2543 225.757 80.2543H216.531C215.836 80.2543 215.273 79.691 215.273 78.9963V76.4801C215.273 75.7854 215.836 75.2221 216.531 75.2221H217.789V68.5124H216.531C215.836 68.5124 215.273 67.9491 215.273 67.2543V64.7382C215.273 64.0434 215.836 63.4801 216.531 63.4801H223.241C223.935 63.4801 224.499 64.0434 224.499 64.7382V75.2221H225.757C226.451 75.2221 227.015 75.7854 227.015 76.4801V78.9963Z" fill="#3B82F6"/>
|
|
5
|
-
<path d="M360.581 120.835H81.7052V136.835H360.581V120.835Z" fill="#D9D9D9"/>
|
|
6
|
-
<path d="M315.821 144.835H126.466V160.835H315.821V144.835Z" fill="#D9D9D9"/>
|
|
7
|
-
<path d="M213.144 193.335H155.144C153.211 193.335 151.644 194.902 151.644 196.835V220.835C151.644 222.768 153.211 224.335 155.144 224.335H213.144C215.077 224.335 216.644 222.768 216.644 220.835V196.835C216.644 194.902 215.077 193.335 213.144 193.335Z" fill="#F8FAFC"/>
|
|
8
|
-
<path d="M164.183 213.835V204.38H167.645C168.316 204.38 168.871 204.491 169.311 204.713C169.752 204.931 170.081 205.228 170.299 205.604C170.518 205.976 170.627 206.396 170.627 206.864C170.627 207.258 170.555 207.59 170.41 207.861C170.266 208.129 170.072 208.344 169.829 208.508C169.588 208.668 169.324 208.785 169.034 208.858V208.951C169.348 208.966 169.655 209.068 169.953 209.255C170.255 209.44 170.504 209.703 170.701 210.045C170.898 210.386 170.996 210.802 170.996 211.291C170.996 211.774 170.883 212.208 170.655 212.593C170.43 212.975 170.082 213.278 169.612 213.503C169.141 213.724 168.539 213.835 167.806 213.835H164.183ZM165.609 212.612H167.668C168.351 212.612 168.841 212.479 169.136 212.215C169.431 211.95 169.579 211.619 169.579 211.222C169.579 210.924 169.504 210.65 169.353 210.4C169.202 210.151 168.987 209.953 168.707 209.805C168.43 209.657 168.1 209.583 167.719 209.583H165.609V212.612ZM165.609 208.471H167.52C167.84 208.471 168.128 208.409 168.384 208.286C168.642 208.163 168.847 207.991 168.998 207.769C169.151 207.544 169.228 207.28 169.228 206.975C169.228 206.584 169.091 206.256 168.817 205.992C168.544 205.727 168.123 205.595 167.557 205.595H165.609V208.471ZM177.069 210.894V206.744H178.454V213.835H177.097V212.607H177.023C176.86 212.986 176.599 213.301 176.238 213.553C175.881 213.803 175.437 213.927 174.904 213.927C174.449 213.927 174.046 213.827 173.695 213.627C173.347 213.424 173.073 213.124 172.873 212.727C172.676 212.33 172.578 211.839 172.578 211.254V206.744H173.958V211.088C173.958 211.571 174.092 211.956 174.36 212.242C174.627 212.528 174.975 212.672 175.403 212.672C175.661 212.672 175.918 212.607 176.174 212.478C176.432 212.348 176.646 212.153 176.816 211.891C176.988 211.63 177.073 211.297 177.069 210.894ZM183.619 206.744V207.852H179.746V206.744H183.619ZM180.785 205.045H182.165V211.753C182.165 212.021 182.205 212.222 182.285 212.358C182.365 212.49 182.468 212.581 182.594 212.63C182.723 212.676 182.864 212.699 183.014 212.699C183.125 212.699 183.222 212.692 183.305 212.676C183.388 212.661 183.453 212.649 183.499 212.639L183.748 213.78C183.668 213.81 183.554 213.841 183.407 213.872C183.259 213.906 183.074 213.924 182.853 213.927C182.49 213.933 182.151 213.869 181.837 213.733C181.523 213.598 181.269 213.389 181.075 213.106C180.882 212.822 180.785 212.467 180.785 212.039V205.045ZM188.456 206.744V207.852H184.583V206.744H188.456ZM185.621 205.045H187.002V211.753C187.002 212.021 187.042 212.222 187.122 212.358C187.202 212.49 187.305 212.581 187.431 212.63C187.56 212.676 187.7 212.699 187.851 212.699C187.962 212.699 188.059 212.692 188.142 212.676C188.225 212.661 188.29 212.649 188.336 212.639L188.585 213.78C188.505 213.81 188.391 213.841 188.244 213.872C188.096 213.906 187.911 213.924 187.69 213.927C187.326 213.933 186.988 213.869 186.674 213.733C186.36 213.598 186.106 213.389 185.912 213.106C185.718 212.822 185.621 212.467 185.621 212.039V205.045ZM192.894 213.978C192.229 213.978 191.649 213.826 191.153 213.521C190.658 213.216 190.273 212.79 189.999 212.242C189.725 211.694 189.588 211.054 189.588 210.322C189.588 209.586 189.725 208.943 189.999 208.392C190.273 207.841 190.658 207.413 191.153 207.109C191.649 206.804 192.229 206.652 192.894 206.652C193.558 206.652 194.138 206.804 194.634 207.109C195.129 207.413 195.514 207.841 195.788 208.392C196.062 208.943 196.199 209.586 196.199 210.322C196.199 211.054 196.062 211.694 195.788 212.242C195.514 212.79 195.129 213.216 194.634 213.521C194.138 213.826 193.558 213.978 192.894 213.978ZM192.898 212.819C193.329 212.819 193.686 212.705 193.969 212.478C194.252 212.25 194.462 211.947 194.597 211.568C194.736 211.19 194.805 210.773 194.805 210.317C194.805 209.865 194.736 209.449 194.597 209.071C194.462 208.689 194.252 208.383 193.969 208.152C193.686 207.921 193.329 207.806 192.898 207.806C192.464 207.806 192.104 207.921 191.818 208.152C191.535 208.383 191.324 208.689 191.185 209.071C191.05 209.449 190.982 209.865 190.982 210.317C190.982 210.773 191.05 211.19 191.185 211.568C191.324 211.947 191.535 212.25 191.818 212.478C192.104 212.705 192.464 212.819 192.898 212.819ZM199.12 209.625V213.835H197.74V206.744H199.065V207.898H199.152C199.315 207.523 199.571 207.221 199.919 206.993C200.27 206.766 200.711 206.652 201.244 206.652C201.727 206.652 202.15 206.753 202.513 206.956C202.876 207.156 203.158 207.455 203.358 207.852C203.558 208.249 203.658 208.74 203.658 209.325V213.835H202.278V209.491C202.278 208.977 202.144 208.575 201.876 208.286C201.608 207.994 201.241 207.847 200.773 207.847C200.453 207.847 200.168 207.917 199.919 208.055C199.672 208.194 199.477 208.397 199.332 208.665C199.191 208.929 199.12 209.249 199.12 209.625Z" fill="#475568"/>
|
|
9
|
-
<path d="M213.144 193.335H155.144C153.211 193.335 151.644 194.902 151.644 196.835V220.835C151.644 222.768 153.211 224.335 155.144 224.335H213.144C215.077 224.335 216.644 222.768 216.644 220.835V196.835C216.644 194.902 215.077 193.335 213.144 193.335Z" stroke="#E2E8F0" stroke-linecap="round"/>
|
|
10
|
-
<mask id="mask0_40_24076" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="225" y="192" width="67" height="33">
|
|
11
|
-
<path d="M291.144 192.835H225.144V224.835H291.144V192.835Z" fill="white"/>
|
|
12
|
-
</mask>
|
|
13
|
-
<g mask="url(#mask0_40_24076)">
|
|
14
|
-
<path d="M287.144 192.835H229.144C226.934 192.835 225.144 194.626 225.144 196.835V220.835C225.144 223.044 226.934 224.835 229.144 224.835H287.144C289.353 224.835 291.144 223.044 291.144 220.835V196.835C291.144 194.626 289.353 192.835 287.144 192.835Z" fill="#3B82F6"/>
|
|
15
|
-
<mask id="mask1_40_24076" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="237" y="197" width="43" height="23">
|
|
16
|
-
<path d="M279.144 197.835H237.144V219.835H279.144V197.835Z" fill="white"/>
|
|
17
|
-
</mask>
|
|
18
|
-
<g mask="url(#mask1_40_24076)">
|
|
19
|
-
<path d="M238.183 213.835V204.38H241.645C242.316 204.38 242.871 204.491 243.311 204.713C243.752 204.931 244.081 205.228 244.299 205.604C244.518 205.976 244.627 206.396 244.627 206.864C244.627 207.258 244.555 207.59 244.41 207.861C244.265 208.129 244.072 208.344 243.828 208.508C243.588 208.668 243.324 208.785 243.034 208.858V208.951C243.348 208.966 243.655 209.068 243.953 209.255C244.255 209.44 244.504 209.703 244.701 210.045C244.898 210.386 244.996 210.802 244.996 211.291C244.996 211.774 244.883 212.208 244.655 212.593C244.43 212.975 244.082 213.278 243.611 213.503C243.141 213.724 242.539 213.835 241.806 213.835H238.183ZM239.609 212.612H241.668C242.351 212.612 242.841 212.479 243.136 212.215C243.431 211.95 243.579 211.619 243.579 211.222C243.579 210.924 243.504 210.65 243.353 210.4C243.202 210.151 242.987 209.953 242.707 209.805C242.43 209.657 242.1 209.583 241.719 209.583H239.609V212.612ZM239.609 208.471H241.52C241.84 208.471 242.128 208.409 242.384 208.286C242.642 208.163 242.847 207.991 242.998 207.769C243.151 207.544 243.228 207.28 243.228 206.975C243.228 206.584 243.091 206.256 242.817 205.992C242.544 205.727 242.123 205.595 241.557 205.595H239.609V208.471ZM251.069 210.894V206.744H252.454V213.835H251.097V212.607H251.023C250.86 212.986 250.599 213.301 250.238 213.553C249.881 213.803 249.437 213.927 248.904 213.927C248.449 213.927 248.046 213.827 247.695 213.627C247.347 213.424 247.073 213.124 246.873 212.727C246.676 212.33 246.578 211.839 246.578 211.254V206.744H247.958V211.088C247.958 211.571 248.092 211.956 248.36 212.242C248.627 212.528 248.975 212.672 249.403 212.672C249.661 212.672 249.918 212.607 250.174 212.478C250.432 212.348 250.646 212.153 250.816 211.891C250.988 211.63 251.072 211.297 251.069 210.894ZM257.619 206.744V207.852H253.746V206.744H257.619ZM254.785 205.045H256.165V211.753C256.165 212.021 256.205 212.222 256.285 212.358C256.365 212.49 256.468 212.581 256.594 212.63C256.723 212.676 256.863 212.699 257.014 212.699C257.125 212.699 257.222 212.692 257.305 212.676C257.388 212.661 257.453 212.649 257.499 212.639L257.748 213.78C257.668 213.81 257.554 213.841 257.407 213.872C257.259 213.906 257.074 213.924 256.853 213.927C256.49 213.933 256.151 213.869 255.837 213.733C255.523 213.598 255.269 213.389 255.075 213.106C254.881 212.822 254.785 212.467 254.785 212.039V205.045ZM262.456 206.744V207.852H258.583V206.744H262.456ZM259.621 205.045H261.002V211.753C261.002 212.021 261.042 212.222 261.122 212.358C261.202 212.49 261.305 212.581 261.431 212.63C261.56 212.676 261.7 212.699 261.851 212.699C261.962 212.699 262.059 212.692 262.142 212.676C262.225 212.661 262.29 212.649 262.336 212.639L262.585 213.78C262.505 213.81 262.391 213.841 262.244 213.872C262.096 213.906 261.911 213.924 261.69 213.927C261.326 213.933 260.988 213.869 260.674 213.733C260.36 213.598 260.106 213.389 259.912 213.106C259.718 212.822 259.621 212.467 259.621 212.039V205.045ZM266.894 213.978C266.229 213.978 265.649 213.826 265.153 213.521C264.658 213.216 264.273 212.79 263.999 212.242C263.725 211.694 263.588 211.054 263.588 210.322C263.588 209.586 263.725 208.943 263.999 208.392C264.273 207.841 264.658 207.413 265.153 207.109C265.649 206.804 266.229 206.652 266.894 206.652C267.558 206.652 268.138 206.804 268.634 207.109C269.129 207.413 269.514 207.841 269.788 208.392C270.062 208.943 270.199 209.586 270.199 210.322C270.199 211.054 270.062 211.694 269.788 212.242C269.514 212.79 269.129 213.216 268.634 213.521C268.138 213.826 267.558 213.978 266.894 213.978ZM266.898 212.819C267.329 212.819 267.686 212.705 267.969 212.478C268.252 212.25 268.462 211.947 268.597 211.568C268.736 211.19 268.805 210.773 268.805 210.317C268.805 209.865 268.736 209.449 268.597 209.071C268.462 208.689 268.252 208.383 267.969 208.152C267.686 207.921 267.329 207.806 266.898 207.806C266.464 207.806 266.104 207.921 265.818 208.152C265.535 208.383 265.324 208.689 265.185 209.071C265.05 209.449 264.982 209.865 264.982 210.317C264.982 210.773 265.05 211.19 265.185 211.568C265.324 211.947 265.535 212.25 265.818 212.478C266.104 212.705 266.464 212.819 266.898 212.819ZM273.12 209.625V213.835H271.74V206.744H273.065V207.898H273.152C273.315 207.523 273.571 207.221 273.919 206.993C274.27 206.766 274.711 206.652 275.244 206.652C275.727 206.652 276.15 206.753 276.513 206.956C276.876 207.156 277.158 207.455 277.358 207.852C277.558 208.249 277.658 208.74 277.658 209.325V213.835H276.278V209.491C276.278 208.977 276.144 208.575 275.876 208.286C275.608 207.994 275.241 207.847 274.773 207.847C274.453 207.847 274.168 207.917 273.919 208.055C273.672 208.194 273.477 208.397 273.332 208.665C273.191 208.929 273.12 209.249 273.12 209.625Z" fill="white"/>
|
|
20
|
-
</g>
|
|
21
|
-
</g>
|
|
22
|
-
</g>
|
|
23
|
-
<defs>
|
|
24
|
-
<filter id="filter0_d_40_24076" x="0.143433" y="0.834961" width="442" height="264" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
|
|
25
|
-
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
|
|
26
|
-
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
|
|
27
|
-
<feOffset dy="2"/>
|
|
28
|
-
<feGaussianBlur stdDeviation="3"/>
|
|
29
|
-
<feComposite in2="hardAlpha" operator="out"/>
|
|
30
|
-
<feColorMatrix type="matrix" values="0 0 0 0 0.0666667 0 0 0 0 0.0941176 0 0 0 0 0.14902 0 0 0 0.1 0"/>
|
|
31
|
-
<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_40_24076"/>
|
|
32
|
-
<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_40_24076" result="shape"/>
|
|
33
|
-
</filter>
|
|
34
|
-
</defs>
|
|
35
|
-
</svg>
|