bromcom-ui 2.8.0-rc.10-g → 2.8.0-rc.10-i
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/global/helper/index.ts +1 -0
- package/dist/bromcom-ui/global/helper/toast.ts +136 -0
- package/dist/bromcom-ui/p-000067ff.entry.js +5 -0
- package/dist/bromcom-ui/p-01c4dc30.entry.js +5 -0
- package/dist/bromcom-ui/{p-00a0bbb0.entry.js → p-04d4c6e7.entry.js} +1 -1
- package/dist/bromcom-ui/p-08372949.entry.js +5 -0
- package/dist/bromcom-ui/{p-3bf3f141.entry.js → p-0a16fcfa.entry.js} +1 -1
- package/dist/bromcom-ui/{p-20ecbc71.entry.js → p-0b663779.entry.js} +1 -1
- package/dist/bromcom-ui/p-0e406a4e.js +5 -0
- package/dist/bromcom-ui/p-0fd628b2.entry.js +5 -0
- package/dist/bromcom-ui/{p-d5f9c429.entry.js → p-14a0a646.entry.js} +1 -1
- package/dist/bromcom-ui/p-16a19e2f.js +5 -0
- package/dist/bromcom-ui/p-1f6e9103.entry.js +5 -0
- package/dist/bromcom-ui/{p-19769caf.entry.js → p-221448f8.entry.js} +1 -1
- package/dist/bromcom-ui/p-22d7649d.entry.js +5 -0
- package/dist/bromcom-ui/p-23704eb1.entry.js +5 -0
- package/dist/bromcom-ui/{p-d02b6aa2.js → p-24aefda6.js} +1 -1
- package/dist/bromcom-ui/p-28135e84.entry.js +5 -0
- package/dist/bromcom-ui/p-29e3acd9.entry.js +5 -0
- package/dist/bromcom-ui/p-2ccd07e1.js +5 -0
- package/dist/bromcom-ui/{p-fe8f6043.entry.js → p-31226526.entry.js} +1 -1
- package/dist/bromcom-ui/p-352689cd.entry.js +5 -0
- package/dist/bromcom-ui/{p-4f77fafe.entry.js → p-39eda493.entry.js} +1 -1
- package/dist/bromcom-ui/p-4648b3a5.entry.js +5 -0
- package/dist/bromcom-ui/p-4aa0e6b1.js +5 -0
- package/dist/bromcom-ui/p-4da9adc0.entry.js +5 -0
- package/dist/bromcom-ui/{p-d10a20eb.entry.js → p-4fcf03c1.entry.js} +1 -1
- package/dist/bromcom-ui/{p-da1aa726.entry.js → p-533cb826.entry.js} +1 -1
- package/dist/bromcom-ui/p-5c059eba.entry.js +5 -0
- package/dist/bromcom-ui/p-61b8bf60.entry.js +5 -0
- package/dist/bromcom-ui/p-657b1c5c.entry.js +5 -0
- package/dist/bromcom-ui/{p-c89c3f46.entry.js → p-6b7a9d96.entry.js} +1 -1
- package/dist/bromcom-ui/p-6cc73d59.entry.js +5 -0
- package/dist/bromcom-ui/p-7283714f.entry.js +5 -0
- package/dist/bromcom-ui/p-7786c855.entry.js +5 -0
- package/dist/bromcom-ui/p-79fd816c.js +5 -0
- package/dist/bromcom-ui/p-7c2ac500.entry.js +5 -0
- package/dist/bromcom-ui/p-80d6acf4.entry.js +5 -0
- package/dist/bromcom-ui/p-82844ea0.entry.js +5 -0
- package/dist/bromcom-ui/p-843905c8.js +5 -0
- package/dist/bromcom-ui/{p-72197523.js → p-87dfb1b0.js} +1 -1
- package/dist/bromcom-ui/p-8aa0217f.entry.js +5 -0
- package/dist/bromcom-ui/p-8c6057d0.entry.js +5 -0
- package/dist/bromcom-ui/{p-ea218e23.js → p-8d0ca8c2.js} +1 -1
- package/dist/bromcom-ui/{p-c7e245a3.entry.js → p-8e2540d8.entry.js} +1 -1
- package/dist/bromcom-ui/p-8fd8d750.entry.js +5 -0
- package/dist/bromcom-ui/p-8fe51c14.entry.js +5 -0
- package/dist/bromcom-ui/p-92991934.entry.js +5 -0
- package/dist/bromcom-ui/p-935dccc5.entry.js +5 -0
- package/dist/bromcom-ui/p-95839eaa.entry.js +5 -0
- package/dist/bromcom-ui/p-96b56338.entry.js +5 -0
- package/dist/bromcom-ui/{p-04e3d67d.entry.js → p-976f682f.entry.js} +1 -1
- package/dist/bromcom-ui/{p-de1567c7.entry.js → p-97933e31.entry.js} +1 -1
- package/dist/bromcom-ui/p-98f78850.entry.js +5 -0
- package/dist/bromcom-ui/p-9f6c06b3.entry.js +5 -0
- package/dist/bromcom-ui/p-a00f9c8c.entry.js +5 -0
- package/dist/bromcom-ui/p-a292f09f.entry.js +5 -0
- package/dist/bromcom-ui/{p-c9bd85e9.js → p-a429e85b.js} +1 -1
- package/dist/bromcom-ui/p-a50d5428.entry.js +5 -0
- package/dist/bromcom-ui/{p-4df600d5.js → p-a60a2dd0.js} +1 -1
- package/dist/bromcom-ui/p-a6edeb5e.js +5 -0
- package/dist/bromcom-ui/p-a7227776.entry.js +5 -0
- package/dist/bromcom-ui/p-a8014347.entry.js +5 -0
- package/dist/bromcom-ui/p-a9d47b67.entry.js +5 -0
- package/dist/bromcom-ui/p-a9e06ace.entry.js +5 -0
- package/dist/bromcom-ui/p-ab74d877.js +5 -0
- package/dist/bromcom-ui/p-ace88791.entry.js +5 -0
- package/dist/bromcom-ui/p-b50b4789.entry.js +5 -0
- package/dist/bromcom-ui/{p-e8d18848.js → p-b60bcecf.js} +1 -1
- package/dist/bromcom-ui/p-b93d2841.entry.js +5 -0
- package/dist/bromcom-ui/p-b97b56ae.entry.js +10 -0
- package/dist/bromcom-ui/{p-33330368.entry.js → p-bc840f30.entry.js} +1 -1
- package/dist/bromcom-ui/p-bf69e868.entry.js +5 -0
- package/dist/bromcom-ui/p-c1e1771d.entry.js +5 -0
- package/dist/bromcom-ui/p-c23b6240.js +5 -0
- package/dist/bromcom-ui/p-c26dd56a.entry.js +5 -0
- package/dist/bromcom-ui/{p-4371dc2d.entry.js → p-c85b8abc.entry.js} +1 -1
- package/dist/bromcom-ui/p-c8e13fd7.js +5 -0
- package/dist/bromcom-ui/p-ce2aa51c.entry.js +5 -0
- package/dist/bromcom-ui/p-d3c0cf36.entry.js +5 -0
- package/dist/bromcom-ui/p-d61332d6.entry.js +5 -0
- package/dist/bromcom-ui/{p-39b8a477.entry.js → p-d644b6d9.entry.js} +1 -1
- package/dist/bromcom-ui/p-d97ffad2.entry.js +5 -0
- package/dist/bromcom-ui/{p-35ea8fad.js → p-da1055cb.js} +1 -1
- package/dist/bromcom-ui/p-dacb0861.entry.js +5 -0
- package/dist/bromcom-ui/p-db87e4b5.entry.js +5 -0
- package/dist/bromcom-ui/p-db9c020c.entry.js +5 -0
- package/dist/bromcom-ui/{p-aaac4637.js → p-dbc4c30c.js} +1 -1
- package/dist/bromcom-ui/{p-4f89942a.entry.js → p-e19e9dc1.entry.js} +1 -1
- package/dist/bromcom-ui/p-e3b158a2.entry.js +5 -0
- package/dist/bromcom-ui/p-e570257f.entry.js +5 -0
- package/dist/bromcom-ui/p-e7544b04.entry.js +5 -0
- package/dist/bromcom-ui/{p-9b93939a.js → p-e9c4e931.js} +1 -1
- package/dist/bromcom-ui/p-ed19dcb4.entry.js +5 -0
- package/dist/bromcom-ui/p-f1c374c6.entry.js +5 -0
- package/dist/bromcom-ui/p-f399d7dd.entry.js +5 -0
- package/dist/bromcom-ui/p-f53d08d4.entry.js +5 -0
- package/dist/bromcom-ui/{p-3f7e7354.entry.js → p-f8c20298.entry.js} +1 -1
- package/dist/cjs/{bcm-2c51bf0c.js → bcm-634604e3.js} +1 -0
- package/dist/cjs/bcm-accordion.cjs.entry.js +5 -3
- package/dist/cjs/bcm-alert.cjs.entry.js +7 -6
- package/dist/cjs/bcm-attendance.cjs.entry.js +7 -5
- package/dist/cjs/bcm-autocomplete.cjs.entry.js +2 -2
- package/dist/cjs/bcm-avatar_2.cjs.entry.js +12 -11
- package/dist/cjs/bcm-box.cjs.entry.js +2 -2
- package/dist/cjs/bcm-breadcrumb.cjs.entry.js +4 -3
- package/dist/cjs/bcm-button-group.cjs.entry.js +7 -6
- package/dist/cjs/bcm-button_7.cjs.entry.js +1570 -0
- package/dist/cjs/bcm-card.cjs.entry.js +9 -8
- package/dist/cjs/bcm-checkbox-lite_9.cjs.entry.js +6 -5
- package/dist/cjs/bcm-chip.cjs.entry.js +7 -6
- package/dist/cjs/bcm-collapse-group.cjs.entry.js +2 -2
- package/dist/cjs/bcm-collapse.cjs.entry.js +4 -3
- package/dist/cjs/bcm-color-input.cjs.entry.js +76 -0
- package/dist/cjs/bcm-colorful_2.cjs.entry.js +17971 -0
- package/dist/cjs/bcm-colorpicker.cjs.entry.js +2 -2
- package/dist/cjs/bcm-date-picker.cjs.entry.js +5 -4
- package/dist/cjs/bcm-datetime-picker.cjs.entry.js +11 -10
- package/dist/cjs/bcm-default.cjs.entry.js +5 -3
- package/dist/cjs/bcm-drawer.cjs.entry.js +10 -9
- package/dist/cjs/bcm-dropdown.cjs.entry.js +7 -6
- package/dist/cjs/bcm-error-layout.cjs.entry.js +3 -3
- package/dist/cjs/bcm-expansion-panel.cjs.entry.js +8 -7
- package/dist/cjs/bcm-form-2.cjs.entry.js +6 -5
- package/dist/cjs/bcm-form-group.cjs.entry.js +2 -2
- package/dist/cjs/bcm-input-custom.cjs.entry.js +73 -0
- package/dist/cjs/bcm-input.cjs.entry.js +41 -12
- package/dist/cjs/bcm-item.cjs.entry.js +7 -6
- package/dist/cjs/bcm-items.cjs.entry.js +6 -5
- package/dist/cjs/bcm-link.cjs.entry.js +5 -5
- package/dist/cjs/bcm-list.cjs.entry.js +25 -23
- package/dist/cjs/bcm-menu.cjs.entry.js +138 -0
- package/dist/cjs/bcm-message.cjs.entry.js +2 -2
- package/dist/cjs/bcm-modal-2-footer.cjs.entry.js +50 -0
- package/dist/cjs/bcm-modal-2-header.cjs.entry.js +49 -0
- package/dist/cjs/bcm-modal-2.cjs.entry.js +172 -0
- package/dist/cjs/bcm-modal.cjs.entry.js +8 -7
- package/dist/cjs/bcm-notification.cjs.entry.js +2 -2
- package/dist/cjs/bcm-old-input.cjs.entry.js +4 -4
- package/dist/cjs/bcm-old-tag_2.cjs.entry.js +2 -2
- package/dist/cjs/bcm-overlay_2.cjs.entry.js +48 -0
- package/dist/cjs/bcm-popconfirm-box.cjs.entry.js +9 -8
- package/dist/cjs/bcm-popconfirm.cjs.entry.js +6 -5
- package/dist/cjs/bcm-popover.cjs.entry.js +92 -42
- package/dist/cjs/bcm-progress.cjs.entry.js +7 -6
- package/dist/cjs/bcm-radio-group.cjs.entry.js +93 -210
- package/dist/cjs/bcm-radio.cjs.entry.js +37 -78
- package/dist/cjs/bcm-range.cjs.entry.js +6 -5
- package/dist/cjs/bcm-result.cjs.entry.js +2 -2
- package/dist/cjs/bcm-search.cjs.entry.js +21 -14
- 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 +10 -8
- package/dist/cjs/bcm-step.cjs.entry.js +6 -5
- package/dist/cjs/bcm-stepper.cjs.entry.js +42 -25
- package/dist/cjs/bcm-switch.cjs.entry.js +8 -7
- package/dist/cjs/bcm-tab-group.cjs.entry.js +158 -114
- package/dist/cjs/bcm-tab-item-header.cjs.entry.js +87 -0
- package/dist/cjs/bcm-tab-item.cjs.entry.js +104 -0
- 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 +7 -6
- package/dist/cjs/bcm-text.cjs.entry.js +8 -7
- package/dist/cjs/bcm-textarea.cjs.entry.js +10 -8
- package/dist/cjs/bcm-time-picker.cjs.entry.js +5 -4
- 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-toast.cjs.entry.js +115 -0
- package/dist/cjs/bcm-treeview-group.cjs.entry.js +1 -1
- package/dist/cjs/bcm-typography.cjs.entry.js +35 -0
- package/dist/cjs/bromcom-ui.cjs.js +2 -2
- package/dist/cjs/{caption-template-1b6b0819.js → caption-template-8d099fd6.js} +1 -1
- package/dist/cjs/color-helper-d6d2028b.js +86 -0
- package/dist/cjs/{color-helper-d1cb7959.js → colors-e1d142ad.js} +4 -81
- package/dist/cjs/{floating-ui-ded9c11f.js → floating-ui-74eb26d6.js} +1 -1
- package/dist/cjs/{generate-62c3a20c.js → generate-f03672ef.js} +118 -16
- package/dist/cjs/{index-b6a28fdb.js → index-4506fcd7.js} +1 -1
- package/dist/cjs/{index-b4a2fb85.js → index-ddfd6d8f.js} +1 -1
- package/dist/cjs/input-template-acd483b7.js +92 -0
- package/dist/cjs/{is-load-decorator-888172a8.js → is-load-decorator-137dded1.js} +1 -3
- package/dist/cjs/{json-parse-decarator-935df068.js → json-parse-decarator-cd868f86.js} +2 -2
- package/dist/cjs/{label-template-5d3d6f6c.js → label-template-cc69bc21.js} +3 -3
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{number-helper-4cfa88f0.js → number-helper-ad416645.js} +1 -1
- package/dist/cjs/old-bcm-popover-box.cjs.entry.js +10 -9
- package/dist/cjs/old-bcm-popover.cjs.entry.js +5 -4
- package/dist/cjs/{popover-placement-dd87671c.js → popover-placement-3c8f3a72.js} +1 -1
- package/dist/cjs/{slot-template-720b35b8.js → slot-template-3e59d7d8.js} +2 -2
- package/dist/cjs/{stepper-states-50ec45ff.js → stepper-states-761d6b0a.js} +3 -3
- package/dist/cjs/{string-helper-a54773f3.js → string-helper-45cffee0.js} +1 -1
- package/dist/cjs/tooltip-helper-f98ef4c6.js +149 -0
- package/dist/cjs/{validators-2a28c1ed.js → validators-09ab57aa.js} +1 -1
- package/dist/collection/collection-manifest.json +16 -5
- package/dist/collection/components/atoms/avatar/avatar.css +0 -252
- package/dist/collection/components/atoms/badge/badge.css +0 -252
- package/dist/collection/components/atoms/button/button.css +0 -252
- package/dist/collection/components/atoms/button/button.js +1 -1
- package/dist/collection/components/atoms/chip/chip.css +0 -252
- package/dist/collection/components/atoms/chip/chip.js +1 -1
- package/dist/collection/components/atoms/label/label.css +0 -252
- package/dist/collection/components/atoms/link/link.css +0 -252
- package/dist/collection/components/atoms/link/link.js +1 -1
- package/dist/collection/components/molecules/button-group/button-group.css +0 -252
- package/dist/collection/components/molecules/card/card.css +0 -252
- package/dist/collection/components/molecules/checkbox/checkbox.css +1 -756
- package/dist/collection/components/molecules/checkbox/checkbox.js +1 -1
- package/dist/collection/components/molecules/color-input/color-input.js +206 -0
- package/dist/collection/components/molecules/colorful/colorful.css +497 -0
- package/dist/collection/components/molecules/colorful/colorful.js +72 -0
- package/dist/collection/components/molecules/drawer/drawer.css +0 -252
- package/dist/collection/components/molecules/dropdown/dropdown.css +0 -252
- package/dist/collection/components/molecules/error-layout/error-layout.css +0 -252
- package/dist/collection/components/molecules/expansion-panel/expansion-panel.css +0 -252
- package/dist/collection/components/molecules/input/input.css +3 -758
- package/dist/collection/components/molecules/input/input.js +31 -3
- package/dist/collection/components/molecules/item/item.css +0 -252
- package/dist/collection/components/molecules/linked/linked.js +87 -31
- package/dist/collection/components/molecules/menu/menu.css +0 -252
- package/dist/collection/components/molecules/menu/menu.js +1 -1
- package/dist/collection/components/molecules/modal/modal.css +0 -252
- package/dist/collection/components/molecules/popconfirm/popconfirm-box.css +0 -252
- package/dist/collection/components/molecules/popconfirm/popconfirm.js +1 -1
- package/dist/collection/components/molecules/popover/popover.js +117 -12
- package/dist/collection/components/molecules/progress/progress.css +0 -252
- package/dist/collection/components/molecules/radio/{group.js → radio-group.js} +185 -247
- package/dist/collection/components/molecules/radio/radio.js +42 -132
- package/dist/collection/components/molecules/range/range.css +0 -252
- package/dist/collection/components/molecules/search/search.css +3 -758
- package/dist/collection/components/molecules/search/search.js +21 -2
- package/dist/collection/components/molecules/skeleton/skeleton.js +8 -8
- package/dist/collection/components/molecules/states/search.states.js +12 -7
- package/dist/collection/components/molecules/stepper/stepper.css +0 -252
- package/dist/collection/components/molecules/stepper/stepper.js +33 -26
- package/dist/collection/components/molecules/switch/switch.css +0 -756
- package/dist/collection/components/molecules/switch/switch.js +1 -1
- package/dist/collection/components/molecules/tab-group/tab-group.js +177 -114
- package/dist/collection/components/molecules/tab-group/tab-item-header.js +186 -0
- package/dist/collection/components/molecules/tab-group/tab-item.js +161 -0
- package/dist/collection/components/molecules/textarea/textarea.css +3 -758
- package/dist/collection/components/molecules/textarea/textarea.js +2 -1
- package/dist/collection/components/molecules/tooltip/tooltip.js +143 -10
- package/dist/collection/components/organism/datetime-picker/datetime-picker.css +0 -756
- 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 +1 -1008
- package/dist/collection/components/organism/list/list.js +21 -2
- package/dist/collection/components/other/attendance/attendance.css +0 -252
- package/dist/collection/components/other/attendance/attendance.js +1 -1
- package/dist/collection/components/other/input-custom/input-custom.js +249 -0
- package/dist/collection/components/other/modal-2/modal-2-footer.js +54 -0
- package/dist/collection/components/other/modal-2/modal-2-header.js +53 -0
- package/dist/collection/components/other/modal-2/modal-2.js +450 -0
- package/dist/collection/components/other/overlay/overlay.js +101 -0
- package/dist/collection/components/other/scroll-area/scroll-area.js +77 -0
- package/dist/collection/components/other/toast/toast.js +365 -0
- package/dist/collection/components/other_deprecated/old-input/old-input.css +0 -756
- package/dist/collection/components/other_deprecated/old-popover/old-popover-box.css +0 -252
- package/dist/collection/components/other_deprecated/select/select.js +1 -1
- package/dist/collection/components/other_deprecated/tabs/tab.css +0 -252
- package/dist/collection/components/other_deprecated/text/text.css +0 -252
- package/dist/collection/decorators/is-load-decorator.js +0 -2
- package/dist/collection/global/components/_checkbox.css +1 -252
- package/dist/collection/global/helper/index.js +5 -0
- package/dist/collection/global/helper/index.ts +1 -0
- package/dist/collection/global/helper/toast.js +114 -0
- package/dist/collection/global/helper/toast.ts +136 -0
- package/dist/collection/helper/generate.js +120 -19
- package/dist/collection/helper/popover-helper.js +57 -29
- package/dist/collection/helper/tooltip-helper.js +69 -26
- package/dist/collection/models/bcm.js +1 -0
- package/dist/collection/stories/assets/button/1.svg +35 -0
- package/dist/collection/stories/assets/button/10.svg +24 -0
- package/dist/collection/stories/assets/button/11.svg +24 -0
- package/dist/collection/stories/assets/button/12.svg +24 -0
- package/dist/collection/stories/assets/button/2.svg +28 -0
- package/dist/collection/stories/assets/button/3.svg +41 -0
- package/dist/collection/stories/assets/button/4.svg +9 -0
- package/dist/collection/stories/assets/button/5.svg +65 -0
- package/dist/collection/stories/assets/button/6.svg +68 -0
- package/dist/collection/stories/assets/button/7.svg +203 -0
- package/dist/collection/stories/assets/button/8.svg +316 -0
- package/dist/collection/stories/assets/button/9.svg +9 -0
- package/dist/collection/templates/button-template.js +1 -1
- package/dist/collection/templates/input-template.js +30 -29
- package/dist/collection/templates/list-item-template.js +1 -1
- package/dist/collection/templates/list-template.js +2 -2
- 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 +2 -2
- package/dist/components/bcm-color-input.d.ts +11 -0
- package/dist/components/bcm-color-input.js +129 -0
- package/dist/components/bcm-colorful.d.ts +11 -0
- package/dist/components/bcm-colorful.js +10 -0
- 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-custom.d.ts +11 -0
- package/dist/components/bcm-input-custom.js +114 -0
- package/dist/components/bcm-input.js +1 -411
- package/dist/components/bcm-item.js +1 -1
- package/dist/components/bcm-list.js +10 -8
- package/dist/components/bcm-modal-2-footer.d.ts +11 -0
- package/dist/components/bcm-modal-2-footer.js +60 -0
- package/dist/components/bcm-modal-2-header.d.ts +11 -0
- package/dist/components/bcm-modal-2-header.js +59 -0
- package/dist/components/bcm-modal-2.d.ts +11 -0
- package/dist/components/bcm-modal-2.js +207 -0
- package/dist/components/bcm-modal.js +1 -1
- package/dist/components/bcm-overlay.d.ts +11 -0
- package/dist/components/bcm-overlay.js +10 -0
- package/dist/components/bcm-popconfirm.js +1 -1
- package/dist/components/bcm-popover.js +86 -33
- package/dist/components/bcm-progress.js +1 -1
- package/dist/components/bcm-radio-group.js +103 -228
- package/dist/components/bcm-range.js +1 -1
- package/dist/components/bcm-scroll-area.d.ts +11 -0
- package/dist/components/bcm-scroll-area.js +10 -0
- package/dist/components/bcm-select.js +1 -1
- package/dist/components/bcm-stepper.js +34 -26
- package/dist/components/bcm-switch.js +2 -2
- package/dist/components/bcm-tab-group.js +154 -112
- package/dist/components/bcm-tab-item-header.d.ts +11 -0
- package/dist/components/bcm-tab-item-header.js +102 -0
- package/dist/components/bcm-tab-item.d.ts +11 -0
- package/dist/components/bcm-tab-item.js +117 -0
- 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 +3 -2
- package/dist/components/bcm-toast.d.ts +11 -0
- package/dist/components/bcm-toast.js +140 -0
- package/dist/components/bcm.js +1 -0
- 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 +8 -434
- package/dist/components/colorful.js +17768 -0
- package/dist/components/colors2.js +433 -0
- package/dist/components/datetime-picker.js +2 -2
- package/dist/components/generate.js +117 -16
- package/dist/components/index.d.ts +16 -5
- package/dist/components/index.js +11 -0
- package/dist/components/input-template.js +46 -53
- package/dist/components/input.js +457 -0
- package/dist/components/is-load-decorator.js +0 -2
- package/dist/components/label.js +1 -1
- package/dist/components/link.js +2 -2
- package/dist/components/linked.js +62 -29
- 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/overlay.js +47 -0
- package/dist/components/popconfirm-box.js +1 -1
- package/dist/components/radio.js +38 -82
- package/dist/components/scroll-area.js +40 -0
- package/dist/components/search.js +13 -6
- package/dist/components/skeleton.js +5 -5
- package/dist/components/text.js +1 -1
- package/dist/components/tooltip-helper.js +68 -24
- package/dist/components/tooltip.js +35 -5
- package/dist/components/types.js +14 -27
- package/dist/components/types2.js +25 -25
- package/dist/components/types3.js +32 -0
- package/dist/esm/{bcm-b8d8a236.js → bcm-9f50af9c.js} +1 -0
- package/dist/esm/bcm-accordion.entry.js +5 -3
- package/dist/esm/bcm-alert.entry.js +7 -6
- package/dist/esm/bcm-attendance.entry.js +7 -5
- package/dist/esm/bcm-autocomplete.entry.js +2 -2
- package/dist/esm/bcm-avatar_2.entry.js +12 -11
- package/dist/esm/bcm-box.entry.js +2 -2
- package/dist/esm/bcm-breadcrumb.entry.js +4 -3
- package/dist/esm/bcm-button-group.entry.js +7 -6
- package/dist/esm/bcm-button_7.entry.js +1560 -0
- package/dist/esm/bcm-card.entry.js +9 -8
- package/dist/esm/bcm-checkbox-lite_9.entry.js +6 -5
- package/dist/esm/bcm-chip.entry.js +7 -6
- package/dist/esm/bcm-collapse-group.entry.js +2 -2
- package/dist/esm/bcm-collapse.entry.js +4 -3
- package/dist/esm/bcm-color-input.entry.js +72 -0
- package/dist/esm/bcm-colorful_2.entry.js +17966 -0
- package/dist/esm/bcm-colorpicker.entry.js +2 -2
- package/dist/esm/bcm-date-picker.entry.js +5 -4
- package/dist/esm/bcm-datetime-picker.entry.js +11 -10
- package/dist/esm/bcm-default.entry.js +5 -3
- package/dist/esm/bcm-drawer.entry.js +10 -9
- package/dist/esm/bcm-dropdown.entry.js +7 -6
- package/dist/esm/bcm-error-layout.entry.js +3 -3
- package/dist/esm/bcm-expansion-panel.entry.js +8 -7
- package/dist/esm/bcm-form-2.entry.js +6 -5
- package/dist/esm/bcm-form-group.entry.js +2 -2
- package/dist/esm/bcm-input-custom.entry.js +69 -0
- package/dist/esm/bcm-input.entry.js +41 -12
- package/dist/esm/bcm-item.entry.js +7 -6
- package/dist/esm/bcm-items.entry.js +6 -5
- package/dist/esm/bcm-link.entry.js +5 -5
- package/dist/esm/bcm-list.entry.js +25 -23
- package/dist/esm/bcm-menu.entry.js +134 -0
- package/dist/esm/bcm-message.entry.js +2 -2
- package/dist/esm/bcm-modal-2-footer.entry.js +46 -0
- package/dist/esm/bcm-modal-2-header.entry.js +45 -0
- package/dist/esm/bcm-modal-2.entry.js +168 -0
- package/dist/esm/bcm-modal.entry.js +8 -7
- package/dist/esm/bcm-notification.entry.js +2 -2
- package/dist/esm/bcm-old-input.entry.js +4 -4
- package/dist/esm/bcm-old-tag_2.entry.js +2 -2
- package/dist/esm/bcm-overlay_2.entry.js +43 -0
- package/dist/esm/bcm-popconfirm-box.entry.js +9 -8
- package/dist/esm/bcm-popconfirm.entry.js +6 -5
- package/dist/esm/bcm-popover.entry.js +92 -42
- package/dist/esm/bcm-progress.entry.js +7 -6
- package/dist/esm/bcm-radio-group.entry.js +89 -206
- package/dist/esm/bcm-radio.entry.js +36 -77
- package/dist/esm/bcm-range.entry.js +6 -5
- package/dist/esm/bcm-result.entry.js +2 -2
- package/dist/esm/bcm-search.entry.js +21 -14
- 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 +5 -5
- package/dist/esm/bcm-skeleton.entry.js +10 -8
- package/dist/esm/bcm-step.entry.js +6 -5
- package/dist/esm/bcm-stepper.entry.js +40 -23
- package/dist/esm/bcm-switch.entry.js +8 -7
- package/dist/esm/bcm-tab-group.entry.js +156 -112
- package/dist/esm/bcm-tab-item-header.entry.js +83 -0
- package/dist/esm/bcm-tab-item.entry.js +100 -0
- 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 +2 -2
- package/dist/esm/bcm-tabs-content.entry.js +2 -2
- package/dist/esm/bcm-tabs.entry.js +2 -2
- package/dist/esm/bcm-tag.entry.js +7 -6
- package/dist/esm/bcm-text.entry.js +8 -7
- package/dist/esm/bcm-textarea.entry.js +10 -8
- package/dist/esm/bcm-time-picker.entry.js +5 -4
- package/dist/esm/bcm-timeline-item.entry.js +2 -2
- package/dist/esm/bcm-timeline.entry.js +2 -2
- package/dist/esm/bcm-toast.entry.js +111 -0
- package/dist/esm/bcm-treeview-group.entry.js +1 -1
- package/dist/esm/bcm-typography.entry.js +31 -0
- package/dist/esm/bromcom-ui.js +3 -3
- package/dist/esm/{caption-template-ced0e2ef.js → caption-template-da16ba7b.js} +1 -1
- package/dist/esm/color-helper-e8ce23d7.js +84 -0
- package/dist/esm/{color-helper-cb1cfc1e.js → colors-44c95e7e.js} +4 -81
- package/dist/esm/{floating-ui-54c1f339.js → floating-ui-e7341329.js} +1 -1
- package/dist/esm/{generate-e03db45c.js → generate-49601889.js} +118 -16
- package/dist/esm/{index-85cce099.js → index-39133086.js} +1 -1
- package/dist/esm/{index-0f68d8f0.js → index-93e36fdb.js} +1 -1
- package/dist/esm/input-template-0cb5cdf2.js +90 -0
- package/dist/esm/{is-load-decorator-87c09179.js → is-load-decorator-bc14ec4b.js} +1 -3
- package/dist/esm/{json-parse-decarator-ba60b5d7.js → json-parse-decarator-f2743235.js} +2 -2
- package/dist/esm/{label-template-4f474794.js → label-template-d74fe788.js} +3 -3
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{number-helper-3c965a72.js → number-helper-9455777a.js} +1 -1
- package/dist/esm/old-bcm-popover-box.entry.js +10 -9
- package/dist/esm/old-bcm-popover.entry.js +5 -4
- package/dist/esm/{popover-placement-0e158c8b.js → popover-placement-78f86f15.js} +1 -1
- package/dist/esm/{slot-template-97e4665e.js → slot-template-5b2db362.js} +2 -2
- package/dist/esm/{stepper-states-0837281e.js → stepper-states-50b8df79.js} +3 -3
- package/dist/esm/{string-helper-8793366d.js → string-helper-6bd24967.js} +1 -1
- package/dist/esm/tooltip-helper-c958db34.js +147 -0
- package/dist/esm/{validators-827e76f0.js → validators-1d43a22c.js} +1 -1
- package/dist/types/components/molecules/color-input/color-input.d.ts +20 -0
- package/dist/types/components/molecules/colorful/colorful.d.ts +8 -0
- package/dist/types/components/molecules/input/input.d.ts +4 -1
- package/dist/types/components/molecules/linked/linked.d.ts +10 -3
- package/dist/types/components/molecules/popover/popover.d.ts +12 -3
- package/dist/types/components/molecules/radio/{group.d.ts → radio-group.d.ts} +22 -27
- package/dist/types/components/molecules/radio/radio.d.ts +5 -11
- package/dist/types/components/molecules/search/search.d.ts +1 -0
- package/dist/types/components/molecules/skeleton/skeleton.d.ts +1 -1
- 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 +15 -6
- package/dist/types/components/molecules/tab-group/tab-item-header.d.ts +13 -0
- package/dist/types/components/molecules/tab-group/tab-item.d.ts +17 -0
- package/dist/types/components/molecules/textarea/textarea.d.ts +1 -1
- package/dist/types/components/molecules/tooltip/tooltip.d.ts +13 -3
- package/dist/types/components/organism/list/list.d.ts +1 -0
- package/dist/types/components/other/input-custom/input-custom.d.ts +20 -0
- package/dist/types/components/other/modal-2/modal-2-footer.d.ts +7 -0
- package/dist/types/components/other/modal-2/modal-2-header.d.ts +7 -0
- package/dist/types/components/other/modal-2/modal-2.d.ts +33 -0
- package/dist/types/components/other/overlay/overlay.d.ts +8 -0
- package/dist/types/components/other/scroll-area/scroll-area.d.ts +7 -0
- package/dist/types/components/other/toast/toast.d.ts +25 -0
- package/dist/types/components.d.ts +339 -41
- package/dist/types/global/helper/index.d.ts +1 -0
- package/dist/types/global/helper/toast.d.ts +96 -0
- package/dist/types/helper/generate.d.ts +3 -0
- package/dist/types/helper/popover-helper.d.ts +13 -3
- package/dist/types/helper/tooltip-helper.d.ts +16 -3
- package/dist/types/index.d.ts +1 -1
- package/dist/types/models/bcm.d.ts +2 -1
- package/dist/types/templates/input-template.d.ts +5 -3
- package/dist/types/templates/list-template.d.ts +1 -0
- package/helper/index.d.ts +2 -0
- package/helper/index.d.ts.map +1 -0
- package/helper/index.js +17 -0
- package/helper/toast.d.ts +97 -0
- package/helper/toast.d.ts.map +1 -0
- package/helper/toast.js +115 -0
- package/package.json +30 -19
- package/dist/bromcom-ui/p-0175104f.entry.js +0 -5
- package/dist/bromcom-ui/p-0248c4f7.entry.js +0 -5
- package/dist/bromcom-ui/p-036b5e90.js +0 -5
- package/dist/bromcom-ui/p-0a759563.entry.js +0 -5
- package/dist/bromcom-ui/p-0de1747d.entry.js +0 -5
- package/dist/bromcom-ui/p-0f7a532c.js +0 -5
- package/dist/bromcom-ui/p-11cab8a3.entry.js +0 -5
- package/dist/bromcom-ui/p-14b1b4b2.entry.js +0 -5
- package/dist/bromcom-ui/p-1760fbc1.entry.js +0 -5
- package/dist/bromcom-ui/p-198f27f0.entry.js +0 -5
- package/dist/bromcom-ui/p-1c09af4f.js +0 -5
- package/dist/bromcom-ui/p-1dd4c23d.entry.js +0 -5
- package/dist/bromcom-ui/p-1e202809.entry.js +0 -5
- package/dist/bromcom-ui/p-284f33d1.entry.js +0 -5
- package/dist/bromcom-ui/p-2a01c091.entry.js +0 -5
- package/dist/bromcom-ui/p-2d7a2ff7.js +0 -5
- package/dist/bromcom-ui/p-2fed40df.entry.js +0 -5
- package/dist/bromcom-ui/p-309c9146.entry.js +0 -5
- package/dist/bromcom-ui/p-30d7353f.entry.js +0 -5
- package/dist/bromcom-ui/p-316ccc1d.entry.js +0 -5
- package/dist/bromcom-ui/p-33540594.entry.js +0 -5
- package/dist/bromcom-ui/p-3edd3360.js +0 -5
- package/dist/bromcom-ui/p-3eea9349.entry.js +0 -5
- package/dist/bromcom-ui/p-44bd0e80.entry.js +0 -5
- package/dist/bromcom-ui/p-4ad5bcfe.entry.js +0 -5
- package/dist/bromcom-ui/p-4b76af90.entry.js +0 -5
- package/dist/bromcom-ui/p-50bf8630.entry.js +0 -5
- package/dist/bromcom-ui/p-53ca66f4.entry.js +0 -5
- package/dist/bromcom-ui/p-53f39686.entry.js +0 -5
- package/dist/bromcom-ui/p-55d1f990.entry.js +0 -5
- package/dist/bromcom-ui/p-561cf7fb.entry.js +0 -5
- package/dist/bromcom-ui/p-578dc2f2.entry.js +0 -5
- package/dist/bromcom-ui/p-5ac33f6a.entry.js +0 -5
- package/dist/bromcom-ui/p-6510ae4a.entry.js +0 -5
- package/dist/bromcom-ui/p-685b892c.js +0 -5
- package/dist/bromcom-ui/p-71b3a42b.entry.js +0 -5
- package/dist/bromcom-ui/p-78d82111.js +0 -5
- package/dist/bromcom-ui/p-79e7cb18.entry.js +0 -5
- package/dist/bromcom-ui/p-804fb116.entry.js +0 -5
- package/dist/bromcom-ui/p-89a75f62.entry.js +0 -5
- package/dist/bromcom-ui/p-90ce53df.entry.js +0 -5
- package/dist/bromcom-ui/p-9318f783.entry.js +0 -5
- package/dist/bromcom-ui/p-96db5ce1.entry.js +0 -5
- package/dist/bromcom-ui/p-a0f65dfc.entry.js +0 -5
- package/dist/bromcom-ui/p-a11d59ec.entry.js +0 -5
- package/dist/bromcom-ui/p-ae332cfe.js +0 -5
- package/dist/bromcom-ui/p-c04cc95a.entry.js +0 -5
- package/dist/bromcom-ui/p-c09a1784.entry.js +0 -5
- package/dist/bromcom-ui/p-c4eac148.entry.js +0 -5
- package/dist/bromcom-ui/p-c526e41e.entry.js +0 -5
- package/dist/bromcom-ui/p-c54c2a46.entry.js +0 -5
- package/dist/bromcom-ui/p-ca7b2bb3.entry.js +0 -5
- package/dist/bromcom-ui/p-d2a85ae7.js +0 -5
- package/dist/bromcom-ui/p-dc16be5b.entry.js +0 -5
- package/dist/bromcom-ui/p-dfc3394e.entry.js +0 -5
- package/dist/bromcom-ui/p-eb0ab3d9.entry.js +0 -5
- package/dist/bromcom-ui/p-ed94e252.entry.js +0 -5
- package/dist/bromcom-ui/p-ef5ee2e6.entry.js +0 -5
- package/dist/bromcom-ui/p-f0fd61b3.entry.js +0 -5
- package/dist/bromcom-ui/p-f4fc571c.entry.js +0 -5
- package/dist/bromcom-ui/p-fc23f069.entry.js +0 -5
- package/dist/bromcom-ui/p-fda04acb.entry.js +0 -5
- package/dist/cjs/bcm-button.cjs.entry.js +0 -384
- package/dist/cjs/bcm-checkbox-group.cjs.entry.js +0 -415
- package/dist/cjs/bcm-checkbox_2.cjs.entry.js +0 -205
- package/dist/cjs/bcm-form.cjs.entry.js +0 -487
- package/dist/cjs/bcm-icon.cjs.entry.js +0 -41
- package/dist/cjs/bcm-label_2.cjs.entry.js +0 -122
- package/dist/cjs/bcm-linked_2.cjs.entry.js +0 -308
- package/dist/cjs/input-template-da75023a.js +0 -86
- package/dist/cjs/tooltip-helper-3f7ad52d.js +0 -105
- package/dist/collection/components/molecules/radio/group.css +0 -802
- package/dist/collection/components/molecules/radio/radio.css +0 -1286
- package/dist/collection/components/molecules/radio/types.js +0 -30
- package/dist/collection/components/molecules/states/radio-group.states.js +0 -107
- package/dist/esm/bcm-button.entry.js +0 -380
- package/dist/esm/bcm-checkbox-group.entry.js +0 -411
- package/dist/esm/bcm-checkbox_2.entry.js +0 -200
- package/dist/esm/bcm-form.entry.js +0 -483
- package/dist/esm/bcm-icon.entry.js +0 -37
- package/dist/esm/bcm-label_2.entry.js +0 -117
- package/dist/esm/bcm-linked_2.entry.js +0 -303
- package/dist/esm/input-template-3e2dfbe2.js +0 -84
- package/dist/esm/tooltip-helper-3e7c4148.js +0 -103
- package/dist/types/components/molecules/radio/types.d.ts +0 -29
- package/dist/types/components/molecules/states/radio-group.states.d.ts +0 -48
- /package/dist/bromcom-ui/{p-5fd7a8b6.js → p-2e73d572.js} +0 -0
- /package/dist/cjs/{types-6eb7e028.js → types-7523fd99.js} +0 -0
- /package/dist/collection/components/{atoms → other}/box/box.js +0 -0
- /package/dist/collection/components/{atoms → other}/typography/typography.js +0 -0
- /package/dist/collection/components/{organism → other_deprecated}/colorpicker/colorpicker.css +0 -0
- /package/dist/collection/components/{organism → other_deprecated}/colorpicker/colorpicker.js +0 -0
- /package/dist/collection/components/{organism → other_deprecated}/colorpicker/static/chess.png +0 -0
- /package/dist/collection/components/{organism → other_deprecated}/colorpicker/static/color.svg +0 -0
- /package/dist/collection/components/{organism → other_deprecated}/colorpicker/static/colors.svg +0 -0
- /package/dist/collection/components/{atoms → other_deprecated}/tag/tag.js +0 -0
- /package/dist/collection/components/{atoms → other_deprecated}/tag/types.js +0 -0
- /package/dist/esm/{types-bfc3bba1.js → types-9493a7ed.js} +0 -0
- /package/dist/types/components/{atoms → other}/box/box.d.ts +0 -0
- /package/dist/types/components/{atoms → other}/typography/typography.d.ts +0 -0
- /package/dist/types/components/{organism → other_deprecated}/colorpicker/colorpicker.d.ts +0 -0
- /package/dist/types/components/{atoms → other_deprecated}/tag/tag.d.ts +0 -0
- /package/dist/types/components/{atoms → other_deprecated}/tag/types.d.ts +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./toast";
|
|
@@ -0,0 +1,96 @@
|
|
|
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
|
+
interface ToastEvents {
|
|
13
|
+
bcmToastView?: (event: any) => void;
|
|
14
|
+
bcmToastClose?: (event: any) => void;
|
|
15
|
+
bcmToastOpen?: (event: any) => void;
|
|
16
|
+
}
|
|
17
|
+
export declare class Toast {
|
|
18
|
+
element: any;
|
|
19
|
+
options: ToastOptions & ToastEvents;
|
|
20
|
+
/**
|
|
21
|
+
* Creates an instance of Toast.
|
|
22
|
+
* @param {ToastOptions & ToastEvents} [options={}]
|
|
23
|
+
* @example
|
|
24
|
+
* const toast = new Toast();
|
|
25
|
+
* @example
|
|
26
|
+
* const toast = new Toast({
|
|
27
|
+
* id: "my-toast",
|
|
28
|
+
* message: "Hello World",
|
|
29
|
+
* status: "success",
|
|
30
|
+
* description: "This is a description",
|
|
31
|
+
* duration: 5000,
|
|
32
|
+
* position: "top",
|
|
33
|
+
* "message-icon": "check",
|
|
34
|
+
* "view-button": true,
|
|
35
|
+
* "close-button": true,
|
|
36
|
+
* bcmToastView: (event) => {
|
|
37
|
+
* // This Event fires when the view button is clicked
|
|
38
|
+
* // do something
|
|
39
|
+
* },
|
|
40
|
+
* bcmToastClose: (event) => {
|
|
41
|
+
* // This Event fires when the toast is closed
|
|
42
|
+
* // do something
|
|
43
|
+
* },
|
|
44
|
+
* bcmToastOpen: (event) => {
|
|
45
|
+
* // This Event fires when the toast is opened
|
|
46
|
+
* // do something
|
|
47
|
+
* }
|
|
48
|
+
* });
|
|
49
|
+
* toast.show();
|
|
50
|
+
*/
|
|
51
|
+
constructor(options: ToastOptions & ToastEvents);
|
|
52
|
+
private createElement;
|
|
53
|
+
private listeners;
|
|
54
|
+
private setAttributes;
|
|
55
|
+
/**
|
|
56
|
+
* Shows the toast
|
|
57
|
+
* @returns {HTMLElement} The element that was shown
|
|
58
|
+
* @example
|
|
59
|
+
* const toast = new Toast();
|
|
60
|
+
* toast.show();
|
|
61
|
+
* @example
|
|
62
|
+
* const toast = new Toast();
|
|
63
|
+
* toast.show().then(() => {
|
|
64
|
+
* // do something
|
|
65
|
+
* });
|
|
66
|
+
* @example
|
|
67
|
+
* const toast = new Toast();
|
|
68
|
+
* toast.show().then(() => {
|
|
69
|
+
* // do something
|
|
70
|
+
* }).catch(() => {
|
|
71
|
+
* // do something else
|
|
72
|
+
* });
|
|
73
|
+
*/
|
|
74
|
+
show(): any;
|
|
75
|
+
/**
|
|
76
|
+
* Hides the toast
|
|
77
|
+
* @returns {HTMLElement} The element that was hidden
|
|
78
|
+
* @example
|
|
79
|
+
* const toast = new Toast();
|
|
80
|
+
* toast.hide();
|
|
81
|
+
* @example
|
|
82
|
+
* const toast = new Toast();
|
|
83
|
+
* toast.hide().then(() => {
|
|
84
|
+
* // do something
|
|
85
|
+
* });
|
|
86
|
+
* @example
|
|
87
|
+
* const toast = new Toast();
|
|
88
|
+
* toast.hide().then(() => {
|
|
89
|
+
* // do something
|
|
90
|
+
* }).catch(() => {
|
|
91
|
+
* // do something else
|
|
92
|
+
* });
|
|
93
|
+
*/
|
|
94
|
+
hide(): any;
|
|
95
|
+
}
|
|
96
|
+
export {};
|
|
@@ -19,4 +19,7 @@ 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): {};
|
|
22
25
|
}
|
|
@@ -7,14 +7,23 @@ export declare class Popover {
|
|
|
7
7
|
color?: string;
|
|
8
8
|
el?: HTMLElement;
|
|
9
9
|
trigger?: string;
|
|
10
|
-
|
|
10
|
+
openDelay: number;
|
|
11
|
+
closeDelay: number;
|
|
12
|
+
emitShow: () => void;
|
|
13
|
+
emitHide: () => void;
|
|
14
|
+
constructor({ content, message, targetId, placement, color, trigger, openDelay, closeDelay, emitShow, emitHide }: {
|
|
11
15
|
content: any;
|
|
12
16
|
message: any;
|
|
13
17
|
targetId: any;
|
|
14
18
|
placement?: string;
|
|
15
19
|
color?: string;
|
|
16
20
|
trigger?: string;
|
|
21
|
+
openDelay?: number;
|
|
22
|
+
closeDelay?: number;
|
|
23
|
+
emitShow?: () => void;
|
|
24
|
+
emitHide?: () => void;
|
|
17
25
|
});
|
|
26
|
+
destroy: () => void;
|
|
18
27
|
private bgColor;
|
|
19
28
|
exepcitonColors: {
|
|
20
29
|
white: string;
|
|
@@ -24,8 +33,9 @@ export declare class Popover {
|
|
|
24
33
|
private init;
|
|
25
34
|
update: () => void;
|
|
26
35
|
listener: () => void;
|
|
36
|
+
removeListener: () => void;
|
|
27
37
|
private calculatePosition;
|
|
28
|
-
show: () => void
|
|
29
|
-
hide: () => void
|
|
38
|
+
show: () => Promise<void>;
|
|
39
|
+
hide: () => Promise<void>;
|
|
30
40
|
toggle: () => void;
|
|
31
41
|
}
|
|
@@ -6,20 +6,33 @@ export declare class Tooltip {
|
|
|
6
6
|
color: string;
|
|
7
7
|
el: HTMLElement;
|
|
8
8
|
trigger: string;
|
|
9
|
-
|
|
9
|
+
size: string;
|
|
10
|
+
openDelay: number;
|
|
11
|
+
closeDelay: number;
|
|
12
|
+
emitShow: () => void;
|
|
13
|
+
emitHide: () => void;
|
|
14
|
+
constructor({ message, targetId, placement, color, trigger, size, openDelay, closeDelay, emitShow, emitHide, }: {
|
|
10
15
|
message: any;
|
|
11
16
|
targetId: any;
|
|
12
17
|
placement?: string;
|
|
13
18
|
color?: string;
|
|
14
19
|
trigger?: string;
|
|
20
|
+
size?: string;
|
|
21
|
+
openDelay?: number;
|
|
22
|
+
closeDelay?: number;
|
|
23
|
+
emitShow?: () => void;
|
|
24
|
+
emitHide?: () => void;
|
|
15
25
|
});
|
|
26
|
+
destroy: () => void;
|
|
16
27
|
private bgColor;
|
|
17
28
|
private target;
|
|
29
|
+
private sizeClass;
|
|
18
30
|
private init;
|
|
19
31
|
update: () => void;
|
|
20
32
|
listener: () => void;
|
|
33
|
+
removeListener: () => void;
|
|
21
34
|
private calculatePosition;
|
|
22
|
-
show: () => void
|
|
23
|
-
hide: () => void
|
|
35
|
+
show: () => Promise<void>;
|
|
36
|
+
hide: () => Promise<void>;
|
|
24
37
|
toggle: () => void;
|
|
25
38
|
}
|
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,6 +29,8 @@ 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;
|
|
32
34
|
}
|
|
33
35
|
export declare const InputTemplate: FunctionalComponent<InputTemplateProps>;
|
|
34
36
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/global/helper/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC"}
|
package/helper/index.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./toast"), exports);
|
|
@@ -0,0 +1,97 @@
|
|
|
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
|
+
interface ToastEvents {
|
|
13
|
+
bcmToastView?: (event: any) => void;
|
|
14
|
+
bcmToastClose?: (event: any) => void;
|
|
15
|
+
bcmToastOpen?: (event: any) => void;
|
|
16
|
+
}
|
|
17
|
+
export declare class Toast {
|
|
18
|
+
element: any;
|
|
19
|
+
options: ToastOptions & ToastEvents;
|
|
20
|
+
/**
|
|
21
|
+
* Creates an instance of Toast.
|
|
22
|
+
* @param {ToastOptions & ToastEvents} [options={}]
|
|
23
|
+
* @example
|
|
24
|
+
* const toast = new Toast();
|
|
25
|
+
* @example
|
|
26
|
+
* const toast = new Toast({
|
|
27
|
+
* id: "my-toast",
|
|
28
|
+
* message: "Hello World",
|
|
29
|
+
* status: "success",
|
|
30
|
+
* description: "This is a description",
|
|
31
|
+
* duration: 5000,
|
|
32
|
+
* position: "top",
|
|
33
|
+
* "message-icon": "check",
|
|
34
|
+
* "view-button": true,
|
|
35
|
+
* "close-button": true,
|
|
36
|
+
* bcmToastView: (event) => {
|
|
37
|
+
* // This Event fires when the view button is clicked
|
|
38
|
+
* // do something
|
|
39
|
+
* },
|
|
40
|
+
* bcmToastClose: (event) => {
|
|
41
|
+
* // This Event fires when the toast is closed
|
|
42
|
+
* // do something
|
|
43
|
+
* },
|
|
44
|
+
* bcmToastOpen: (event) => {
|
|
45
|
+
* // This Event fires when the toast is opened
|
|
46
|
+
* // do something
|
|
47
|
+
* }
|
|
48
|
+
* });
|
|
49
|
+
* toast.show();
|
|
50
|
+
*/
|
|
51
|
+
constructor(options: ToastOptions & ToastEvents);
|
|
52
|
+
private createElement;
|
|
53
|
+
private listeners;
|
|
54
|
+
private setAttributes;
|
|
55
|
+
/**
|
|
56
|
+
* Shows the toast
|
|
57
|
+
* @returns {HTMLElement} The element that was shown
|
|
58
|
+
* @example
|
|
59
|
+
* const toast = new Toast();
|
|
60
|
+
* toast.show();
|
|
61
|
+
* @example
|
|
62
|
+
* const toast = new Toast();
|
|
63
|
+
* toast.show().then(() => {
|
|
64
|
+
* // do something
|
|
65
|
+
* });
|
|
66
|
+
* @example
|
|
67
|
+
* const toast = new Toast();
|
|
68
|
+
* toast.show().then(() => {
|
|
69
|
+
* // do something
|
|
70
|
+
* }).catch(() => {
|
|
71
|
+
* // do something else
|
|
72
|
+
* });
|
|
73
|
+
*/
|
|
74
|
+
show(): any;
|
|
75
|
+
/**
|
|
76
|
+
* Hides the toast
|
|
77
|
+
* @returns {HTMLElement} The element that was hidden
|
|
78
|
+
* @example
|
|
79
|
+
* const toast = new Toast();
|
|
80
|
+
* toast.hide();
|
|
81
|
+
* @example
|
|
82
|
+
* const toast = new Toast();
|
|
83
|
+
* toast.hide().then(() => {
|
|
84
|
+
* // do something
|
|
85
|
+
* });
|
|
86
|
+
* @example
|
|
87
|
+
* const toast = new Toast();
|
|
88
|
+
* toast.hide().then(() => {
|
|
89
|
+
* // do something
|
|
90
|
+
* }).catch(() => {
|
|
91
|
+
* // do something else
|
|
92
|
+
* });
|
|
93
|
+
*/
|
|
94
|
+
hide(): any;
|
|
95
|
+
}
|
|
96
|
+
export {};
|
|
97
|
+
//# sourceMappingURL=toast.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toast.d.ts","sourceRoot":"","sources":["../src/global/helper/toast.ts"],"names":[],"mappings":"AAAA,UAAU,YAAY;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,CAAC;IACpD,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,KAAK,GAAG,WAAW,GAAG,SAAS,GAAG,QAAQ,GAAG,cAAc,GAAG,YAAY,CAAC;IACxF,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,cAAc,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED,UAAU,WAAW;IACjB,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,CAAC;IACpC,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,CAAC;IACrC,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,CAAC;CACvC;AAED,qBAAa,KAAK;IACd,OAAO,EAAE,GAAG,CAAC;IACb,OAAO,EAAE,YAAY,GAAG,WAAW,CAAC;IAEpC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA8BG;gBACS,OAAO,EAAE,YAAY,GAAG,WAAW;IAS/C,OAAO,CAAC,aAAa;IAcrB,OAAO,CAAC,SAAS;IAMjB,OAAO,CAAC,aAAa;IAMrB;;;;;;;;;;;;;;;;;;OAkBG;IACH,IAAI;IAKJ;;;;;;;;;;;;;;;;;;OAkBG;IACH,IAAI;CAIP"}
|
package/helper/toast.js
ADDED
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Toast = void 0;
|
|
4
|
+
var Toast = /** @class */ (function () {
|
|
5
|
+
/**
|
|
6
|
+
* Creates an instance of Toast.
|
|
7
|
+
* @param {ToastOptions & ToastEvents} [options={}]
|
|
8
|
+
* @example
|
|
9
|
+
* const toast = new Toast();
|
|
10
|
+
* @example
|
|
11
|
+
* const toast = new Toast({
|
|
12
|
+
* id: "my-toast",
|
|
13
|
+
* message: "Hello World",
|
|
14
|
+
* status: "success",
|
|
15
|
+
* description: "This is a description",
|
|
16
|
+
* duration: 5000,
|
|
17
|
+
* position: "top",
|
|
18
|
+
* "message-icon": "check",
|
|
19
|
+
* "view-button": true,
|
|
20
|
+
* "close-button": true,
|
|
21
|
+
* bcmToastView: (event) => {
|
|
22
|
+
* // This Event fires when the view button is clicked
|
|
23
|
+
* // do something
|
|
24
|
+
* },
|
|
25
|
+
* bcmToastClose: (event) => {
|
|
26
|
+
* // This Event fires when the toast is closed
|
|
27
|
+
* // do something
|
|
28
|
+
* },
|
|
29
|
+
* bcmToastOpen: (event) => {
|
|
30
|
+
* // This Event fires when the toast is opened
|
|
31
|
+
* // do something
|
|
32
|
+
* }
|
|
33
|
+
* });
|
|
34
|
+
* toast.show();
|
|
35
|
+
*/
|
|
36
|
+
function Toast(options) {
|
|
37
|
+
this.options = options;
|
|
38
|
+
this.createElement();
|
|
39
|
+
this.listeners();
|
|
40
|
+
this.setAttributes();
|
|
41
|
+
return this.element;
|
|
42
|
+
}
|
|
43
|
+
Toast.prototype.createElement = function () {
|
|
44
|
+
var _a;
|
|
45
|
+
var el;
|
|
46
|
+
((_a = this.options) === null || _a === void 0 ? void 0 : _a.id) && (el = document.getElementById(this.options.id));
|
|
47
|
+
if (el) {
|
|
48
|
+
this.element = el;
|
|
49
|
+
}
|
|
50
|
+
else {
|
|
51
|
+
var tag = "bcm-toast";
|
|
52
|
+
this.element = document.createElement(tag);
|
|
53
|
+
}
|
|
54
|
+
document.body.appendChild(this.element);
|
|
55
|
+
return this.element;
|
|
56
|
+
};
|
|
57
|
+
Toast.prototype.listeners = function () {
|
|
58
|
+
this.options.bcmToastView && this.element.addEventListener("bcm-toast-view", this.options.bcmToastView);
|
|
59
|
+
this.options.bcmToastClose && this.element.addEventListener("bcm-toast-close", this.options.bcmToastClose);
|
|
60
|
+
this.options.bcmToastOpen && this.element.addEventListener("bcm-toast-open", this.options.bcmToastOpen);
|
|
61
|
+
};
|
|
62
|
+
Toast.prototype.setAttributes = function () {
|
|
63
|
+
for (var key in this.options) {
|
|
64
|
+
this.element.setAttribute(key, this.options[key]);
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
/**
|
|
68
|
+
* Shows the toast
|
|
69
|
+
* @returns {HTMLElement} The element that was shown
|
|
70
|
+
* @example
|
|
71
|
+
* const toast = new Toast();
|
|
72
|
+
* toast.show();
|
|
73
|
+
* @example
|
|
74
|
+
* const toast = new Toast();
|
|
75
|
+
* toast.show().then(() => {
|
|
76
|
+
* // do something
|
|
77
|
+
* });
|
|
78
|
+
* @example
|
|
79
|
+
* const toast = new Toast();
|
|
80
|
+
* toast.show().then(() => {
|
|
81
|
+
* // do something
|
|
82
|
+
* }).catch(() => {
|
|
83
|
+
* // do something else
|
|
84
|
+
* });
|
|
85
|
+
*/
|
|
86
|
+
Toast.prototype.show = function () {
|
|
87
|
+
this.element.show();
|
|
88
|
+
return this.element;
|
|
89
|
+
};
|
|
90
|
+
/**
|
|
91
|
+
* Hides the toast
|
|
92
|
+
* @returns {HTMLElement} The element that was hidden
|
|
93
|
+
* @example
|
|
94
|
+
* const toast = new Toast();
|
|
95
|
+
* toast.hide();
|
|
96
|
+
* @example
|
|
97
|
+
* const toast = new Toast();
|
|
98
|
+
* toast.hide().then(() => {
|
|
99
|
+
* // do something
|
|
100
|
+
* });
|
|
101
|
+
* @example
|
|
102
|
+
* const toast = new Toast();
|
|
103
|
+
* toast.hide().then(() => {
|
|
104
|
+
* // do something
|
|
105
|
+
* }).catch(() => {
|
|
106
|
+
* // do something else
|
|
107
|
+
* });
|
|
108
|
+
*/
|
|
109
|
+
Toast.prototype.hide = function () {
|
|
110
|
+
this.element.hide();
|
|
111
|
+
return this.element;
|
|
112
|
+
};
|
|
113
|
+
return Toast;
|
|
114
|
+
}());
|
|
115
|
+
exports.Toast = Toast;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bromcom-ui",
|
|
3
|
-
"version": "2.8.0-rc.10-
|
|
3
|
+
"version": "2.8.0-rc.10-i",
|
|
4
4
|
"description": "Stencil Component Starter",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -12,16 +12,18 @@
|
|
|
12
12
|
"unpkg": "dist/bromcom-ui/bromcom-ui.js",
|
|
13
13
|
"files": [
|
|
14
14
|
"dist/",
|
|
15
|
-
"loader/"
|
|
15
|
+
"loader/",
|
|
16
|
+
"helper/"
|
|
16
17
|
],
|
|
17
18
|
"scripts": {
|
|
18
19
|
"start": "npm-run-all clean:www -p dev:*",
|
|
19
20
|
"clean:www": "rm -rf www",
|
|
20
21
|
"dev:stencil": "stencil build --dev --watch --serve",
|
|
21
22
|
"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
|
+
"build": "run-s clean:dist clean:loader clean:helper tsc-helper build:tailwind build:stencil build:aliases",
|
|
23
24
|
"clean:dist": "rm -rf dist",
|
|
24
25
|
"clean:loader": "rm -rf loader",
|
|
26
|
+
"clean:helper": "rm -rf helper",
|
|
25
27
|
"build:tailwind": "tailwindcss -i ./src/directives.css -o ./src/global/tailwind.css --minify",
|
|
26
28
|
"build:stencil": "stencil build --prod",
|
|
27
29
|
"build:aliases": "tsc-alias -p tsconfig.aliases.json",
|
|
@@ -31,7 +33,9 @@
|
|
|
31
33
|
"ds-version": "npm run build && npm version patch && npm run build",
|
|
32
34
|
"storybook": "start-storybook -p 8000",
|
|
33
35
|
"build:storybook": "build-storybook",
|
|
34
|
-
"generate:storybook": "npm run build && npm run build:storybook"
|
|
36
|
+
"generate:storybook": "npm run build && npm run build:storybook",
|
|
37
|
+
"tsc-helper": "npm run clean:helper && cd ./src/global/helper && tsc index.ts --declaration --declarationMap --allowJs --outDir ./../../../helper",
|
|
38
|
+
"format": "prettier --write \"src/**/*.tsx\""
|
|
35
39
|
},
|
|
36
40
|
"license": "MIT",
|
|
37
41
|
"devDependencies": {
|
|
@@ -43,29 +47,36 @@
|
|
|
43
47
|
"@stencil/core": "^2.17.1",
|
|
44
48
|
"@stencil/sass": "^1.3.2",
|
|
45
49
|
"@stencil/store": "^1.5.0",
|
|
46
|
-
"@storybook/addon-a11y": "^6.5.
|
|
47
|
-
"@storybook/addon-actions": "^6.5.
|
|
48
|
-
"@storybook/addon-docs": "^6.5.
|
|
49
|
-
"@storybook/addon-essentials": "^6.5.
|
|
50
|
-
"@storybook/addon-interactions": "^6.5.
|
|
51
|
-
"@storybook/addon-links": "^6.5.
|
|
50
|
+
"@storybook/addon-a11y": "^6.5.16",
|
|
51
|
+
"@storybook/addon-actions": "^6.5.16",
|
|
52
|
+
"@storybook/addon-docs": "^6.5.16",
|
|
53
|
+
"@storybook/addon-essentials": "^6.5.16",
|
|
54
|
+
"@storybook/addon-interactions": "^6.5.16",
|
|
55
|
+
"@storybook/addon-links": "^6.5.16",
|
|
52
56
|
"@storybook/addon-notes": "^5.3.21",
|
|
53
|
-
"@storybook/builder-webpack4": "^6.5.
|
|
54
|
-
"@storybook/builder-webpack5": "^6.5.
|
|
55
|
-
"@storybook/html": "^6.5.
|
|
56
|
-
"@storybook/manager-webpack4": "^6.5.
|
|
57
|
-
"@storybook/manager-webpack5": "^6.5.
|
|
57
|
+
"@storybook/builder-webpack4": "^6.5.16",
|
|
58
|
+
"@storybook/builder-webpack5": "^6.5.16",
|
|
59
|
+
"@storybook/html": "^6.5.16",
|
|
60
|
+
"@storybook/manager-webpack4": "^6.5.16",
|
|
61
|
+
"@storybook/manager-webpack5": "^6.5.16",
|
|
58
62
|
"@storybook/testing-library": "^0.0.13",
|
|
59
|
-
"@types/
|
|
63
|
+
"@types/estree": "^1.0.0",
|
|
64
|
+
"@types/node": "^18.15.3",
|
|
60
65
|
"babel-loader": "^8.2.0",
|
|
61
66
|
"classnames": "^2.2.6",
|
|
62
67
|
"cpy-cli": "^4.2.0",
|
|
63
68
|
"fs-extra": "^11.1.0",
|
|
64
69
|
"jsx-dom": "^6.4.23",
|
|
65
70
|
"npm-run-all": "^4.1.5",
|
|
66
|
-
"prettier": "^2.8.
|
|
67
|
-
"prettier-plugin-
|
|
68
|
-
"
|
|
71
|
+
"prettier": "^2.8.7",
|
|
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",
|
|
69
80
|
"slugify": "^1.6.5",
|
|
70
81
|
"snq": "^1.0.3",
|
|
71
82
|
"storybook-fetch-addon": "^1.2.1",
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built with Stencil
|
|
3
|
-
* Copyright (c) Bromcom.
|
|
4
|
-
*/
|
|
5
|
-
import{r as e,c as t,h as i,g as c}from"./p-35ea8fad.js";import{G as s,s as l}from"./p-2d7a2ff7.js";import{I as o}from"./p-3edd3360.js";import{S as r}from"./p-ea218e23.js";import"./p-c9bd85e9.js";import"./p-6f56f8ca.js";const n=class{constructor(i){e(this,i),this.bcmItems=t(this,"bcm-items",7),this._id=s.UID()}connectedCallback(){if(this.el.children&&this.el.children.length>0){let e=this.nestedItems(this.el);this.bcmItems.emit(e),this.el.remove()}}mapItems(e){var t;const i=null===(t=null==e?void 0:e.innerHTML)||void 0===t?void 0:t.replace(/<bcm-item>.*<\/bcm-item>/g,"").replace(/<bcm-item .*>.*<\/bcm-item>/g,"").replace(/<!--(.|\s)*?-->/g,"").trim(),c=t=>r.elementBooleanCheck(e.getAttribute(t));return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({id:e.getAttribute("id")||s.UID(),text:e.getAttribute("text")||i},e.innerHTML.trim()&&{isHtmlContent:e.textContent.length>0?e.innerHTML.trim():null}),c("disabled")&&{disabled:c("disabled")}),c("selected")&&{selected:c("selected")}),c("checked")&&{checked:c("checked")}),c("readonly")&&{readonly:c("readonly")}),c("active")&&{active:c("active")}),c("icon")&&{icon:e.getAttribute("icon")}),c("link")&&{link:e.getAttribute("link")})}nestedItems(e){return l((()=>Array.from(null==e?void 0:e.children).map((e=>{var t;return Object.assign(Object.assign({},"bcm-item"===(null===(t=null==e?void 0:e.tagName)||void 0===t?void 0:t.toLowerCase())&&this.mapItems(e)),{items:this.nestedItems(e)})}))),[])}render(){return i("slot",null)}get el(){return c(this)}};!function(e,t,i,c){var s,l=arguments.length,o=l<3?t:null===c?c=Object.getOwnPropertyDescriptor(t,i):c;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,c);else for(var r=e.length-1;r>=0;r--)(s=e[r])&&(o=(l<3?s(o):l>3?s(t,i,o):s(t,i))||o);l>3&&o&&Object.defineProperty(t,i,o)}([o()],n.prototype,"el",void 0);export{n as bcm_items}
|
|
@@ -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-35ea8fad.js";import{c as a}from"./p-d65a1e21.js";import{I as n}from"./p-3edd3360.js";import{G as h}from"./p-2d7a2ff7.js";import{B as p}from"./p-c9bd85e9.js";import{d as r}from"./p-8c018ae0.js";import"./p-6f56f8ca.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}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built with Stencil
|
|
3
|
-
* Copyright (c) Bromcom.
|
|
4
|
-
*/
|
|
5
|
-
import"./p-7e44e6b5.js";import{S as t}from"./p-ea218e23.js";import{F as s}from"./p-e8d18848.js";import{C as i}from"./p-1c09af4f.js";import"./p-626a65e9.js";import{G as h}from"./p-2d7a2ff7.js";import"./p-0f7a532c.js";import"./p-9b93939a.js";class o{constructor({message:o,targetId:e,placement:r="top",color:a="slate-700",trigger:w="none"}){this.bgColor=()=>i.twColor(this.color,700),this.target=()=>document.getElementById(this.targetId),this.init=()=>{this.el=h.createElement("div",{id:`${this.targetId}-tooltip-box`,class:`\n tw-whitespace-normal tw-break-words tw-block tw-font-sans tw-pointer-events-none tw-max-w-xs tw-py-1 tw-px-2 tw-rounded tw-bg-${this.bgColor()} tw-text-white tw-text-1 tw-absolute tw-top-0 tw-left-0 tw-z-tooltip tw-opacity-0 tw-transition-opacity tw-duration-300`,role:"tooltip","aria-hidden":"true",style:`color: ${i.twColorReverse(this.bgColor())}`,innerHTML:t.trim(this.message)})},this.update=()=>{this.el=document.getElementById(this.id),this.el&&(this.hide(),this.show())},this.listener=()=>{if(window.addEventListener("resize",this.calculatePosition.bind(this)),window.addEventListener("scroll",this.calculatePosition.bind(this),!0),window.addEventListener("wheel",this.calculatePosition.bind(this)),this.trigger&&this.target())switch(this.trigger){case"click":this.target().addEventListener("click",this.toggle.bind(this));break;case"hover":this.target().addEventListener("mouseenter",this.show.bind(this)),this.target().addEventListener("mouseleave",this.hide.bind(this));break;case"focus":this.target().addEventListener("focus",this.show.bind(this),!0),this.target().addEventListener("blur",this.hide.bind(this),!0)}this.calculatePosition()},this.calculatePosition=()=>{this.el=document.getElementById(this.id),this.el&&s({ref:this.target(),floating:this.el,placement:this.placement,offset:8,arrow:!0,arrowColor:`tw-bg-${this.bgColor()}`})},this.show=()=>{this.message?(this.init(),this.calculatePosition()):this.hide()},this.hide=()=>{this.el=document.getElementById(this.id),this.el&&this.el.remove()},this.toggle=()=>{this.el=document.getElementById(this.id),this.el?this.hide():this.show()},this.message=o,this.targetId=e,this.placement=r,this.color=a,this.id=e+"-tooltip-box",this.trigger=w}}export{o as T}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built with Stencil
|
|
3
|
-
* Copyright (c) Bromcom.
|
|
4
|
-
*/
|
|
5
|
-
import{r as t,h as e,H as i,g as s}from"./p-35ea8fad.js";import{c as a}from"./p-d65a1e21.js";import{I as h}from"./p-3edd3360.js";import{D as n}from"./p-626a65e9.js";import{G as p}from"./p-2d7a2ff7.js";import{B as r}from"./p-c9bd85e9.js";import{d as l}from"./p-8c018ae0.js";import"./p-6f56f8ca.js";const o=class{constructor(e){t(this,e),this._id=p.UID(),this.date=new Date,this.value=void 0,this.endDate=null,this.range=!1,this.hidden=!1,this.name=void 0,this.fullWidth=!1,this.required=!1,this.label=void 0,this.placeholder=void 0,this.disabledDates="",this.disabled=!1,this.noCaption=!1,this.caption="",this.captionError=void 0,this.captionType="default",this.alignment=void 0,this._internal_id=(4*Math.random()).toString(16).replace(".",""),this.placement=r.Placement["bottom-start"],this.linkedComponent=void 0,this.clearable=!1,this.stateStartDate=null,this.stateEndDate=null}handleStartDateChange(){this.handleDate()}handleEndDateChange(){this.handleDate()}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 setClear(){return await this.picker.setClear(),await l(10),Promise.resolve()}async setStartDate(t){t?(t=n.convertTimeStampToDate(new Date(t).getTime()),this.stateStartDate=t):this.setClear()}async setEndDate(t){t?(t=n.convertTimeStampToDate(new Date(t).getTime()),this.stateEndDate=t):this.setClear()}handleDate(){this.range?this.stateStartDate&&this.stateEndDate&&this.set(this.stateStartDate+"-"+this.stateEndDate):this.set(this.stateStartDate)}async getInput(){return await this.picker.getInput()}async open(){return await this.picker.open()}async getValue(){return this.value}async isValid(){return await this.picker.isValid()}async resetCaption(){return await l(10),await this.picker.resetCaption(),this.captionType="default",this.captionError=null,await l(10),Promise.resolve()}render(){const t=a(this.hidden?"hidden":null,{"full-width":this.fullWidth,"linked-component":this.linkedComponent});return e(i,{class:t},e("bcm-datetime-picker",{"linked-component":this.linkedComponent,id:this._id,name:this.name,type:this.range?"range":"date",date:this.date,placeholder:this.placeholder,fullWidth:this.fullWidth,ref:t=>this.picker=t,required:this.required,clearable:this.clearable,label:this.label,"end-date":this.endDate,disabled:this.disabled,disabledDates:this.disabledDates,"on-bcm-load":()=>this.handlePickerLoad(),"on-bcm-change":t=>this.handlePickerChange(t),noCaption:this.noCaption,caption:this.caption,captionError:this.captionError,captionType:this.captionType,alignment:this.alignment,placement:this.placement}))}get el(){return s(this)}static get watchers(){return{stateStartDate:["handleStartDateChange"],stateEndDate:["handleEndDateChange"]}}};(function(t,e,i,s){var a,h=arguments.length,n=h<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,s);else for(var p=t.length-1;p>=0;p--)(a=t[p])&&(n=(h<3?a(n):h>3?a(e,i,n):a(e,i))||n);h>3&&n&&Object.defineProperty(e,i,n)})([h()],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_date_picker}
|