bromcom-ui 2.12.1-test.0 → 3.0.0-preview.0
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-0125212b.entry.js +5 -0
- package/dist/bromcom-ui/{p-58c0a1f5.js → p-014f7aa2.js} +1 -1
- package/dist/bromcom-ui/{p-c54aaa8c.entry.js → p-0167c2cc.entry.js} +1 -1
- package/dist/bromcom-ui/p-033f2926.entry.js +5 -0
- package/dist/bromcom-ui/{p-7d18ce0e.entry.js → p-0c494f44.entry.js} +1 -1
- package/dist/bromcom-ui/{p-daeb868a.js → p-0e65fd54.js} +1 -1
- package/dist/bromcom-ui/p-14ed2c86.js +5 -0
- package/dist/bromcom-ui/{p-7c5763cc.entry.js → p-1ca7e1a1.entry.js} +1 -1
- package/dist/bromcom-ui/{p-053dc717.entry.js → p-1d577d30.entry.js} +1 -1
- package/dist/bromcom-ui/p-2032843f.entry.js +5 -0
- package/dist/bromcom-ui/{p-2aaeb247.entry.js → p-23c01e93.entry.js} +1 -1
- package/dist/bromcom-ui/p-2663c49f.entry.js +5 -0
- package/dist/bromcom-ui/{p-bdc78a44.entry.js → p-2903e611.entry.js} +1 -1
- package/dist/bromcom-ui/p-2ecb8899.entry.js +5 -0
- package/dist/bromcom-ui/p-31368d21.entry.js +5 -0
- package/dist/bromcom-ui/{p-c02d4055.entry.js → p-370b6020.entry.js} +1 -1
- package/dist/bromcom-ui/{p-9850cbce.js → p-397c1438.js} +1 -1
- package/dist/bromcom-ui/p-3a944947.entry.js +5 -0
- package/dist/bromcom-ui/{p-cebe6c15.entry.js → p-3aa7e1ce.entry.js} +1 -1
- package/dist/bromcom-ui/p-3db88841.entry.js +5 -0
- package/dist/bromcom-ui/{p-c99dbd93.entry.js → p-3f4d5368.entry.js} +1 -1
- package/dist/bromcom-ui/{p-3a60a194.js → p-403d3912.js} +1 -1
- package/dist/bromcom-ui/p-40871628.js +5 -0
- package/dist/bromcom-ui/p-4254234c.entry.js +5 -0
- package/dist/bromcom-ui/p-42a7244e.entry.js +5 -0
- package/dist/bromcom-ui/p-4c5168fe.js +5 -0
- package/dist/bromcom-ui/{p-69260d36.entry.js → p-51341d24.entry.js} +1 -1
- package/dist/bromcom-ui/{p-0bda558d.js → p-588ba8fc.js} +1 -1
- package/dist/bromcom-ui/{p-d73d6a2f.entry.js → p-58fa6ecf.entry.js} +1 -1
- package/dist/bromcom-ui/p-5a65b538.js +5 -0
- package/dist/bromcom-ui/p-5f74f707.js +5 -0
- package/dist/bromcom-ui/{p-35f2e15a.js → p-5fbbf611.js} +1 -1
- package/dist/bromcom-ui/p-66d74084.js +5 -0
- package/dist/bromcom-ui/p-74912375.js +5 -0
- package/dist/bromcom-ui/p-7fa410eb.entry.js +5 -0
- package/dist/bromcom-ui/{p-626b805d.entry.js → p-87291a4f.entry.js} +1 -1
- package/dist/bromcom-ui/p-8d2e1aea.entry.js +5 -0
- package/dist/bromcom-ui/p-9acc7a1c.entry.js +5 -0
- package/dist/bromcom-ui/p-9f913f3e.entry.js +5 -0
- package/dist/bromcom-ui/{p-e82dab5a.entry.js → p-a02650af.entry.js} +1 -1
- package/dist/bromcom-ui/p-aa370552.js +5 -0
- package/dist/bromcom-ui/{p-7c223356.entry.js → p-ac200139.entry.js} +1 -1
- package/dist/bromcom-ui/p-afe35470.entry.js +16 -0
- package/dist/bromcom-ui/p-affe097a.entry.js +5 -0
- package/dist/bromcom-ui/{p-79d5c3d8.entry.js → p-b702f1e5.entry.js} +1 -1
- package/dist/bromcom-ui/p-bc6ecf66.entry.js +5 -0
- package/dist/bromcom-ui/{p-313b7bb0.entry.js → p-bdda1f76.entry.js} +1 -1
- package/dist/bromcom-ui/p-bde34843.entry.js +5 -0
- package/dist/bromcom-ui/{p-f0e30624.entry.js → p-c187994f.entry.js} +1 -1
- package/dist/bromcom-ui/p-cc583dbc.js +5 -0
- package/dist/bromcom-ui/p-ccc61045.js +5 -0
- package/dist/bromcom-ui/{p-67343ad8.entry.js → p-cd12ef44.entry.js} +1 -1
- package/dist/bromcom-ui/p-cf164584.js +5 -0
- package/dist/bromcom-ui/{p-594a57c3.entry.js → p-cfb0bdbe.entry.js} +1 -1
- package/dist/bromcom-ui/{p-d551a51d.entry.js → p-dc23865f.entry.js} +1 -1
- package/dist/bromcom-ui/p-ddf90943.entry.js +5 -0
- package/dist/bromcom-ui/{p-170cf07d.js → p-e3ce7150.js} +2 -2
- package/dist/bromcom-ui/p-e45072df.entry.js +5 -0
- package/dist/bromcom-ui/p-e747137c.entry.js +5 -0
- package/dist/bromcom-ui/{p-ba9eff2a.entry.js → p-e8f7282a.entry.js} +1 -1
- package/dist/bromcom-ui/{p-1c9314bd.entry.js → p-e9672b15.entry.js} +1 -1
- package/dist/bromcom-ui/p-ef34f278.entry.js +5 -0
- package/dist/bromcom-ui/{p-11a5ae6d.entry.js → p-ef84ca66.entry.js} +1 -1
- package/dist/bromcom-ui/{p-1c7ea00b.entry.js → p-ef8636fe.entry.js} +1 -1
- package/dist/bromcom-ui/p-f530cf23.js +5 -0
- package/dist/bromcom-ui/{p-5dea2654.entry.js → p-f65dae79.entry.js} +1 -1
- package/dist/bromcom-ui/p-f68a946f.js +5 -0
- package/dist/bromcom-ui/p-f9e5528f.entry.js +5 -0
- package/dist/bromcom-ui/{p-1bdfc73a.entry.js → p-fa1eae97.entry.js} +1 -1
- package/dist/bromcom-ui/{p-1c801d0c.entry.js → p-fb083e20.entry.js} +1 -1
- package/dist/bromcom-ui/p-fb490a1f.entry.js +5 -0
- package/dist/cjs/{bcm-1d1fcf21.js → bcm-51d38d17.js} +7 -1
- package/dist/cjs/{bcm-accordion_63.cjs.entry.js → bcm-accordion_68.cjs.entry.js} +2641 -1319
- package/dist/cjs/bcm-alert.cjs.entry.js +89 -75
- package/dist/cjs/bcm-arrow.cjs.entry.js +34 -0
- package/dist/cjs/bcm-attendance-actions-comment.cjs.entry.js +10 -9
- package/dist/cjs/bcm-attendance-actions-dropdown.cjs.entry.js +10 -9
- package/dist/cjs/bcm-autocomplete.cjs.entry.js +1 -1
- package/dist/cjs/bcm-box.cjs.entry.js +1 -1
- package/dist/cjs/bcm-breadcrumb.cjs.entry.js +3 -3
- package/dist/cjs/bcm-caption.cjs.entry.js +10 -9
- package/dist/cjs/bcm-card.cjs.entry.js +6 -6
- package/dist/cjs/bcm-chip-group.cjs.entry.js +15 -19
- package/dist/cjs/bcm-colorpicker.cjs.entry.js +1 -1
- package/dist/cjs/bcm-content.cjs.entry.js +1 -1
- package/dist/cjs/bcm-date-picker.cjs.entry.js +5 -5
- package/dist/cjs/bcm-datetime-picker.cjs.entry.js +9 -9
- package/dist/cjs/bcm-default.cjs.entry.js +3 -3
- package/dist/cjs/bcm-error-layout.cjs.entry.js +1 -1
- package/dist/cjs/bcm-form-2.cjs.entry.js +6 -6
- package/dist/cjs/bcm-form-group.cjs.entry.js +1 -1
- package/dist/cjs/bcm-input-custom.cjs.entry.js +3 -3
- package/dist/cjs/bcm-input-dropdown.cjs.entry.js +10 -10
- package/dist/cjs/bcm-message.cjs.entry.js +1 -1
- package/dist/cjs/bcm-modal-2-footer.cjs.entry.js +8 -7
- package/dist/cjs/bcm-modal-2-header.cjs.entry.js +8 -7
- package/dist/cjs/bcm-modal-2.cjs.entry.js +8 -7
- package/dist/cjs/bcm-notification.cjs.entry.js +1 -1
- package/dist/cjs/bcm-number-input.cjs.entry.js +12 -12
- package/dist/cjs/bcm-overlay_2.cjs.entry.js +1 -1
- package/dist/cjs/bcm-popconfirm-box-v2.cjs.entry.js +109 -0
- package/dist/cjs/bcm-popconfirm-host.cjs.entry.js +135 -0
- package/dist/cjs/bcm-range.cjs.entry.js +4 -4
- package/dist/cjs/bcm-react-number.cjs.entry.js +1 -1
- package/dist/cjs/bcm-resizable-pane.cjs.entry.js +42 -0
- package/dist/cjs/bcm-result-footer.cjs.entry.js +39 -0
- package/dist/cjs/bcm-result.cjs.entry.js +16 -47
- package/dist/cjs/bcm-segment-picker-item.cjs.entry.js +33 -0
- package/dist/cjs/bcm-segment-picker.cjs.entry.js +67 -0
- 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-skeleton.cjs.entry.js +8 -8
- package/dist/cjs/bcm-tab-pane.cjs.entry.js +1 -1
- package/dist/cjs/bcm-table.cjs.entry.js +9 -8
- package/dist/cjs/bcm-tabs-content.cjs.entry.js +1 -1
- package/dist/cjs/bcm-tag.cjs.entry.js +5 -5
- package/dist/cjs/bcm-time-picker.cjs.entry.js +5 -5
- package/dist/cjs/bcm-timeline-item.cjs.entry.js +1 -1
- package/dist/cjs/bcm-timeline.cjs.entry.js +1 -1
- package/dist/cjs/bcm-toast.cjs.entry.js +198 -42
- package/dist/cjs/bcm-treeview-group.cjs.entry.js +1 -1
- package/dist/cjs/bromcom-ui.cjs.js +4 -4
- package/dist/cjs/{caption-template-85a18b6d.js → caption-template-1ba40085.js} +10 -10
- package/dist/cjs/floating-ui-4c31473e.js +101 -0
- package/dist/{esm/floating-ui-3f4394da.js → cjs/floating-ui.dom.esm-f0638c44.js} +8 -93
- package/dist/cjs/{generate-7510539d.js → generate-eda14f12.js} +13 -36
- package/dist/cjs/{global-711c589c.js → global-971b32f6.js} +2 -2
- package/dist/cjs/{index-c591ecec.js → index-bb6ac306.js} +3 -0
- package/dist/cjs/{index-5279dea2.js → index-d3b89435.js} +386 -347
- package/dist/cjs/{input.style-b5676e6a.js → input.style-3e8b7803.js} +16 -15
- package/dist/cjs/{is-load-decorator-15036f37.js → is-load-decorator-60805e8b.js} +1 -1
- package/dist/cjs/{label-template-e83447b5.js → label-template-540044c9.js} +8 -7
- package/dist/cjs/loader.cjs.js +4 -4
- package/dist/cjs/{number-helper-9d2d1d5a.js → number-helper-d14c9546.js} +1 -1
- package/dist/cjs/old-bcm-popover-box.cjs.entry.js +10 -9
- package/dist/cjs/old-bcm-popover.cjs.entry.js +4 -4
- package/dist/cjs/{package-a60955f7.js → package-f644e6eb.js} +1 -1
- package/dist/cjs/{popover-placement-d1aa81f0.js → popover-placement-3c0ad75e.js} +1 -1
- package/dist/cjs/popover.style-e390b5a1.js +108 -0
- package/dist/cjs/result.style-f58d0ac4.js +56 -0
- package/dist/cjs/segment-picker.style-ce057603.js +55 -0
- package/dist/cjs/{slot-template-29229e8f.js → slot-template-d02ae4e4.js} +2 -2
- package/dist/cjs/{string-helper-1ee6dc21.js → string-helper-cc89c9d6.js} +1 -1
- package/dist/cjs/types-e4c4d1b2.js +175 -0
- package/dist/collection/collection-manifest.json +15 -5
- package/dist/collection/components/atoms/{chip/chip-group.css → avatar/avatar.css} +4 -2
- package/dist/collection/components/atoms/avatar/avatar.js +13 -3
- package/dist/collection/components/atoms/avatar/avatar.style.js +6 -6
- package/dist/collection/components/atoms/{icon/icon.css → badge/badge.css} +3 -2
- package/dist/collection/components/atoms/badge/badge.js +10 -0
- package/dist/collection/components/atoms/badge/badge.style.js +10 -10
- package/dist/collection/components/atoms/button/button.css +11 -332
- package/dist/collection/components/atoms/button/button.js +429 -241
- package/dist/collection/components/atoms/button/button.style.js +89 -0
- package/dist/collection/components/atoms/chip/chip-group.js +2 -14
- package/dist/collection/components/atoms/chip/chip.css +11 -87
- package/dist/collection/components/atoms/chip/chip.js +84 -45
- package/dist/collection/components/atoms/chip/chip.style.js +99 -0
- package/dist/collection/components/atoms/divider/divider.js +7 -38
- package/dist/collection/components/atoms/divider/divider.style.js +19 -0
- package/dist/collection/components/atoms/icon/icon.js +14 -37
- package/dist/collection/components/atoms/label/label.js +21 -2
- package/dist/collection/components/atoms/link/link.js +132 -58
- package/dist/collection/components/atoms/link/link.style.js +39 -0
- package/dist/collection/components/molecules/accordion/accordion.js +3 -13
- package/dist/collection/components/molecules/alert/alert.js +118 -137
- package/dist/collection/components/molecules/alert/alert.style.js +65 -0
- package/dist/collection/components/molecules/checkbox/checkbox.css +10 -317
- package/dist/collection/components/molecules/checkbox/checkbox.js +119 -142
- package/dist/collection/components/molecules/checkbox/checkbox.style.js +156 -0
- package/dist/collection/components/molecules/{checkbox/group.js → checkbox-group/checkbox-group.js} +23 -40
- package/dist/collection/components/molecules/checkbox-group/checkbox-group.style.js +40 -0
- package/dist/collection/components/molecules/color-input/color-input.js +3 -1
- package/dist/collection/components/molecules/color-input/color-input.style.js +17 -0
- package/dist/collection/components/molecules/drawer/drawer.css +0 -81
- package/dist/collection/components/molecules/drawer/drawer.js +7 -13
- package/dist/collection/components/molecules/drawer/drawer.style.js +55 -0
- package/dist/collection/components/molecules/dropdown/dropdown.js +13 -7
- package/dist/collection/components/molecules/empty/empty.js +91 -3
- package/dist/collection/components/molecules/empty/empty.style.js +64 -0
- package/dist/collection/components/molecules/expansion-panel/bcm-expansion-panel-description.js +16 -0
- package/dist/collection/components/molecules/expansion-panel/bcm-expansion-panel-extra.js +16 -0
- package/dist/collection/components/molecules/expansion-panel/bcm-expansion-panel-header.js +16 -0
- package/dist/collection/components/molecules/expansion-panel/expansion-panel.js +91 -57
- package/dist/collection/components/molecules/expansion-panel/expansion-panel.style.js +91 -0
- package/dist/collection/components/molecules/input/input.js +78 -66
- package/dist/collection/components/molecules/input/input.style.js +15 -14
- package/dist/collection/components/molecules/menu/menu.js +14 -0
- package/dist/collection/components/molecules/modal/modal-footer.js +41 -0
- package/dist/collection/components/molecules/modal/modal-header.js +39 -0
- package/dist/collection/components/molecules/modal/modal.css +1 -139
- package/dist/collection/components/molecules/modal/modal.js +9 -16
- package/dist/collection/components/molecules/modal/modal.style.js +111 -0
- package/dist/collection/components/molecules/number-input/number-input.js +1 -1
- package/dist/collection/components/molecules/number-input/react-input.js +1 -1
- package/dist/collection/components/molecules/popconfirm/popconfirm-box.css +22 -6
- package/dist/collection/components/molecules/popconfirm/popconfirm-box.js +11 -9
- package/dist/collection/components/molecules/popconfirm-v2/pop-confirm-host.js +309 -0
- package/dist/collection/components/molecules/popconfirm-v2/popconf.style.js +57 -0
- package/dist/collection/components/molecules/popconfirm-v2/popconfirm-v2.js +201 -0
- package/dist/collection/components/molecules/popover/popover.js +3 -1
- package/dist/collection/components/molecules/popover/popover.style.js +42 -0
- package/dist/collection/components/molecules/radio/radio-group.js +6 -2
- package/dist/collection/components/molecules/radio/radio-group.style.js +37 -0
- package/dist/collection/components/{atoms/divider/divider.css → molecules/radio/radio.css} +9 -17
- package/dist/collection/components/molecules/radio/radio.js +21 -22
- package/dist/collection/components/molecules/radio/radio.style.js +67 -0
- package/dist/collection/components/molecules/result/result-footer.js +41 -0
- package/dist/collection/components/molecules/result/result.js +36 -65
- package/dist/collection/components/molecules/result/result.style.js +51 -0
- package/dist/collection/components/molecules/search/search.js +10 -13
- package/dist/collection/components/molecules/stepper/stepper.css +41 -35
- package/dist/collection/components/molecules/switch/switch.js +11 -24
- package/dist/collection/components/molecules/switch/switch.style.js +182 -0
- package/dist/collection/components/molecules/tab-group/tab-group.js +3 -28
- package/dist/collection/components/molecules/tab-group/tab-group.syle.js +63 -0
- package/dist/collection/components/molecules/tab-group/tab-item-header.js +7 -32
- package/dist/collection/components/molecules/tab-group/tab-item.js +7 -6
- package/dist/collection/components/molecules/textarea/textarea.js +55 -44
- package/dist/collection/components/molecules/textarea/textarea.style.js +122 -0
- package/dist/collection/components/molecules/tooltip/tooltip.js +5 -3
- package/dist/collection/components/molecules/tooltip/tooltip.style.js +38 -0
- package/dist/collection/components/organism/datetime-picker/datetime-picker.css +20 -20
- package/dist/collection/components/organism/list/list.css +73 -324
- package/dist/collection/components/organism/list/list.js +2 -2
- package/dist/collection/components/{molecules/checkbox/group.css → other/arrow/arrow.css} +24 -31
- package/dist/collection/components/other/arrow/arrow.js +70 -0
- package/dist/collection/components/other/resizable-pane/resizable-pane.js +79 -0
- package/dist/collection/components/other/segment-picker/segment-picker-item.js +158 -0
- package/dist/collection/components/other/segment-picker/segment-picker.js +252 -0
- package/dist/collection/components/other/segment-picker/segment-picker.style.js +50 -0
- package/dist/collection/components/other/shortcut/shortcut.js +12 -6
- package/dist/collection/components/other/shortcut/shortcut.style.js +38 -0
- package/dist/collection/components/other/toast/toast.js +15 -31
- package/dist/collection/components/other/toast/toast.style.js +176 -0
- package/dist/collection/components/other_deprecated/listbox/listbox-item.js +1 -1
- package/dist/collection/components/other_deprecated/listbox/listbox.js +1 -1
- package/dist/collection/components/other_deprecated/old-input/old-input.css +38 -24
- package/dist/collection/components/other_deprecated/old-input/old-input.js +4 -2
- package/dist/collection/components/other_deprecated/old-popover/old-popover-box.css +3 -2
- package/dist/collection/components/third-parts/colorful/colorful.css +0 -242
- package/dist/collection/components/third-parts/rc-picker/rc-picker.css +31 -27
- package/dist/collection/helper/generate.js +11 -16
- package/dist/collection/helper/index.js +1 -0
- package/dist/collection/helper/pop-confirm-helper.js +76 -0
- package/dist/collection/helper/popover-helper.js +8 -7
- package/dist/collection/helper/tooltip-helper.js +3 -15
- package/dist/collection/models/bcm.js +9 -1
- package/dist/collection/templates/caption-template.js +9 -9
- package/dist/collection/templates/checkbox-template.js +11 -16
- package/dist/collection/templates/icon-template.js +4 -19
- package/dist/collection/templates/info-footer-template.js +1 -1
- package/dist/collection/templates/label-template.js +6 -5
- package/dist/collection/templates/list-item-template.js +3 -2
- package/dist/collection/templates/step-template.js +1 -1
- package/dist/components/avatar.js +17 -20
- package/dist/components/badge.js +16 -13
- package/dist/components/bcm-accordion.js +3 -6
- package/dist/components/bcm-alert.js +99 -88
- package/dist/components/{bcm-input-2.d.ts → bcm-arrow.d.ts} +4 -4
- package/dist/components/bcm-arrow.js +47 -0
- package/dist/components/bcm-attendance-actions-comment.js +3 -3
- package/dist/components/bcm-attendance-actions-dropdown.js +3 -3
- package/dist/components/bcm-attendance-actions.js +3 -3
- package/dist/components/bcm-autocomplete.js +6 -12
- package/dist/components/bcm-button-group.js +1 -1
- package/dist/components/bcm-caption.js +3 -2
- package/dist/components/bcm-checkbox-group.js +62 -40
- package/dist/components/bcm-chip-group.js +6 -9
- package/dist/components/bcm-color-input.js +17 -2
- package/dist/components/bcm-date-picker.js +2 -2
- package/dist/components/bcm-date.js +3 -2
- package/dist/components/bcm-drawer.js +61 -29
- package/dist/components/bcm-dropdown.js +3 -3
- package/dist/components/bcm-expansion-panel-description.d.ts +11 -0
- package/dist/components/bcm-expansion-panel-description.js +36 -0
- package/dist/components/bcm-expansion-panel-extra.d.ts +11 -0
- package/dist/components/bcm-expansion-panel-extra.js +36 -0
- package/dist/components/bcm-expansion-panel-header.d.ts +11 -0
- package/dist/components/bcm-expansion-panel-header.js +36 -0
- package/dist/components/bcm-expansion-panel.js +118 -52
- package/dist/components/bcm-form-2.js +1 -1
- package/dist/components/bcm-input-dropdown.js +4 -3
- package/dist/components/bcm-item.js +1 -1
- package/dist/components/bcm-modal-2-footer.js +1 -1
- package/dist/components/bcm-modal-2-header.js +1 -1
- package/dist/components/bcm-modal-2.js +2 -2
- package/dist/components/bcm-modal-footer.d.ts +11 -0
- package/dist/components/bcm-modal-footer.js +47 -0
- package/dist/components/bcm-modal-header.d.ts +11 -0
- package/dist/components/bcm-modal-header.js +45 -0
- package/dist/components/bcm-modal.js +12 -25
- package/dist/components/bcm-number-input.js +4 -3
- package/dist/components/bcm-popconfirm-box-v2.d.ts +11 -0
- package/dist/components/bcm-popconfirm-box-v2.js +132 -0
- package/dist/components/bcm-popconfirm-host.d.ts +11 -0
- package/dist/components/bcm-popconfirm-host.js +158 -0
- package/dist/components/bcm-popconfirm.js +5 -17
- package/dist/components/bcm-popover.js +11 -10
- package/dist/components/bcm-progress.js +1 -1
- package/dist/components/bcm-radio-group.js +43 -4
- package/dist/components/bcm-range.js +1 -1
- package/dist/components/bcm-resizable-pane.d.ts +11 -0
- package/dist/components/bcm-resizable-pane.js +60 -0
- package/dist/components/{bcm-checkbox-lite.d.ts → bcm-result-footer.d.ts} +4 -4
- package/dist/components/bcm-result-footer.js +47 -0
- package/dist/components/bcm-result.js +20 -61
- package/dist/components/bcm-segment-picker-item.d.ts +11 -0
- package/dist/components/bcm-segment-picker-item.js +51 -0
- package/dist/components/bcm-segment-picker.d.ts +11 -0
- package/dist/components/bcm-segment-picker.js +87 -0
- package/dist/components/bcm-select.js +6 -12
- package/dist/components/bcm-shortcut.js +48 -8
- package/dist/components/bcm-stepper.js +5 -4
- package/dist/components/bcm-switch.js +189 -17
- package/dist/components/bcm-tab-group.js +5 -13
- package/dist/components/bcm-tab-item-header.js +9 -17
- package/dist/components/bcm-tab-item.js +8 -7
- package/dist/components/bcm-table.js +2 -1
- package/dist/components/bcm-tag.js +1 -1
- package/dist/components/bcm-time-picker.js +1 -1
- package/dist/components/bcm-toast.js +188 -32
- package/dist/components/bcm.js +8 -2
- package/dist/components/button.js +232 -184
- package/dist/components/caption-template.js +9 -9
- package/dist/components/checkbox.js +94 -104
- package/dist/components/checkbox.style.js +159 -0
- package/dist/components/chip.js +152 -40
- package/dist/components/colorful.js +1 -1
- package/dist/components/datetime-picker.js +3 -3
- package/dist/components/divider.js +21 -13
- package/dist/components/empty.js +75 -3
- package/dist/{cjs/floating-ui-5b396838.js → components/floating-ui.dom.esm.js} +1 -96
- package/dist/components/floating-ui.js +2 -1407
- package/dist/components/generate.js +14 -37
- package/dist/components/icon.js +14 -13
- package/dist/components/index.d.ts +14 -4
- package/dist/components/index.js +12 -2
- package/dist/components/index4.js +2590 -173
- package/dist/components/index5.js +171 -2549
- package/dist/components/input.js +77 -54
- package/dist/components/input.style.js +16 -15
- package/dist/components/label.js +12 -9
- package/dist/components/link.js +83 -39
- package/dist/components/linked.js +2 -2
- package/dist/components/list.js +28 -33
- package/dist/components/listbox-item.js +21 -9
- package/dist/components/listbox.js +7 -13
- package/dist/components/menu.js +15 -1
- package/dist/components/modal.style.js +114 -0
- package/dist/components/old-bcm-popover.js +1 -1
- package/dist/components/old-input.js +5 -3
- package/dist/components/old-popover-box.js +1 -1
- package/dist/components/popconfirm-box.js +12 -22
- package/dist/components/popover.style.js +108 -0
- package/dist/components/radio.js +79 -24
- package/dist/components/rc-overflow.js +1 -1
- package/dist/components/rc-picker.js +2 -2
- package/dist/components/result.style.js +54 -0
- package/dist/components/search.js +14 -16
- package/dist/components/segment-picker.style.js +53 -0
- package/dist/components/select-box.js +6 -12
- package/dist/components/skeleton.js +2 -2
- package/dist/components/step.js +1 -1
- package/dist/components/string-helper.js +1 -1
- package/dist/components/tab-group.syle.js +66 -0
- package/dist/components/textarea.js +152 -36
- package/dist/components/tooltip-helper.js +3 -16
- package/dist/components/tooltip.js +5 -4
- package/dist/esm/{bcm-a50d55ba.js → bcm-7f07539b.js} +7 -1
- package/dist/esm/{bcm-accordion_63.entry.js → bcm-accordion_68.entry.js} +2198 -881
- package/dist/esm/bcm-alert.entry.js +89 -75
- package/dist/esm/bcm-arrow.entry.js +30 -0
- package/dist/esm/bcm-attendance-actions-comment.entry.js +10 -9
- package/dist/esm/bcm-attendance-actions-dropdown.entry.js +10 -9
- package/dist/esm/bcm-autocomplete.entry.js +1 -1
- package/dist/esm/bcm-box.entry.js +1 -1
- package/dist/esm/bcm-breadcrumb.entry.js +3 -3
- package/dist/esm/bcm-caption.entry.js +10 -9
- package/dist/esm/bcm-card.entry.js +6 -6
- package/dist/esm/bcm-chip-group.entry.js +15 -19
- package/dist/esm/bcm-colorpicker.entry.js +1 -1
- package/dist/esm/bcm-content.entry.js +1 -1
- package/dist/esm/bcm-date-picker.entry.js +5 -5
- package/dist/esm/bcm-datetime-picker.entry.js +9 -9
- package/dist/esm/bcm-default.entry.js +3 -3
- package/dist/esm/bcm-error-layout.entry.js +1 -1
- package/dist/esm/bcm-form-2.entry.js +6 -6
- package/dist/esm/bcm-form-group.entry.js +1 -1
- package/dist/esm/bcm-input-custom.entry.js +3 -3
- package/dist/esm/bcm-input-dropdown.entry.js +10 -10
- package/dist/esm/bcm-message.entry.js +1 -1
- package/dist/esm/bcm-modal-2-footer.entry.js +8 -7
- package/dist/esm/bcm-modal-2-header.entry.js +8 -7
- package/dist/esm/bcm-modal-2.entry.js +8 -7
- package/dist/esm/bcm-notification.entry.js +1 -1
- package/dist/esm/bcm-number-input.entry.js +12 -12
- package/dist/esm/bcm-overlay_2.entry.js +1 -1
- package/dist/esm/bcm-popconfirm-box-v2.entry.js +105 -0
- package/dist/esm/bcm-popconfirm-host.entry.js +131 -0
- package/dist/esm/bcm-range.entry.js +4 -4
- package/dist/esm/bcm-react-number.entry.js +1 -1
- package/dist/esm/bcm-resizable-pane.entry.js +38 -0
- package/dist/esm/bcm-result-footer.entry.js +35 -0
- package/dist/esm/bcm-result.entry.js +16 -47
- package/dist/esm/bcm-segment-picker-item.entry.js +29 -0
- package/dist/esm/bcm-segment-picker.entry.js +63 -0
- package/dist/esm/bcm-select-group.entry.js +1 -1
- package/dist/esm/bcm-select-option.entry.js +1 -1
- package/dist/esm/bcm-skeleton.entry.js +8 -8
- package/dist/esm/bcm-tab-pane.entry.js +1 -1
- package/dist/esm/bcm-table.entry.js +9 -8
- package/dist/esm/bcm-tabs-content.entry.js +1 -1
- package/dist/esm/bcm-tag.entry.js +5 -5
- package/dist/esm/bcm-time-picker.entry.js +5 -5
- package/dist/esm/bcm-timeline-item.entry.js +1 -1
- package/dist/esm/bcm-timeline.entry.js +1 -1
- package/dist/esm/bcm-toast.entry.js +192 -36
- package/dist/esm/bcm-treeview-group.entry.js +1 -1
- package/dist/esm/bromcom-ui.js +5 -5
- package/dist/esm/{caption-template-3cd42c3b.js → caption-template-56977835.js} +10 -10
- package/dist/esm/floating-ui-4016b544.js +99 -0
- package/dist/esm/floating-ui.dom.esm-40a07b59.js +1411 -0
- package/dist/esm/{generate-74379aca.js → generate-8470dd6c.js} +14 -37
- package/dist/esm/{global-e20393a3.js → global-e694da71.js} +2 -2
- package/dist/esm/{index-0615c2b8.js → index-15387314.js} +3 -1
- package/dist/esm/{index-3bc8c6e3.js → index-9f698d35.js} +386 -347
- package/dist/esm/{input.style-e855c0f3.js → input.style-fe41ebc8.js} +16 -15
- package/dist/esm/{is-load-decorator-8277e3b8.js → is-load-decorator-5b0610df.js} +1 -1
- package/dist/esm/{label-template-ef97aadb.js → label-template-c7e70e5f.js} +8 -7
- package/dist/esm/loader.js +5 -5
- package/dist/esm/{number-helper-6c691943.js → number-helper-56061510.js} +1 -1
- package/dist/esm/old-bcm-popover-box.entry.js +10 -9
- package/dist/esm/old-bcm-popover.entry.js +4 -4
- package/dist/esm/{package-0b936309.js → package-387afefd.js} +1 -1
- package/dist/esm/{popover-placement-1b15cc99.js → popover-placement-6391b815.js} +1 -1
- package/dist/esm/popover.style-be349acc.js +104 -0
- package/dist/esm/result.style-de3bc950.js +54 -0
- package/dist/esm/segment-picker.style-1e837fe7.js +53 -0
- package/dist/esm/{slot-template-0d958dcc.js → slot-template-250f6ed4.js} +2 -2
- package/dist/esm/{string-helper-b4602002.js → string-helper-243b3e1d.js} +1 -1
- package/dist/esm/types-ec7dcf4f.js +173 -0
- package/dist/types/components/atoms/avatar/avatar.style.d.ts +21 -21
- package/dist/types/components/atoms/button/button.d.ts +32 -20
- package/dist/types/components/atoms/button/button.style.d.ts +334 -0
- package/dist/types/components/atoms/chip/chip.d.ts +4 -14
- package/dist/types/components/atoms/chip/chip.style.d.ts +387 -0
- package/dist/types/components/atoms/divider/divider.d.ts +1 -2
- package/dist/types/components/atoms/divider/divider.style.d.ts +42 -0
- package/dist/types/components/atoms/icon/icon.d.ts +0 -2
- package/dist/types/components/atoms/label/label.d.ts +1 -0
- package/dist/types/components/atoms/link/link.d.ts +10 -6
- package/dist/types/components/atoms/link/link.style.d.ts +171 -0
- package/dist/types/components/molecules/alert/alert.d.ts +15 -17
- package/dist/types/components/molecules/alert/alert.style.d.ts +331 -0
- package/dist/types/components/molecules/checkbox/checkbox.d.ts +16 -29
- package/dist/types/components/molecules/checkbox/checkbox.style.d.ts +498 -0
- package/dist/types/components/molecules/checkbox-group/checkbox-group.style.d.ts +108 -0
- package/dist/types/components/molecules/color-input/color-input.d.ts +0 -1
- package/dist/types/components/molecules/color-input/color-input.style.d.ts +10 -0
- package/dist/types/components/molecules/drawer/drawer.style.d.ts +252 -0
- package/dist/types/components/molecules/dropdown/dropdown.d.ts +2 -2
- package/dist/types/components/molecules/empty/empty.d.ts +6 -0
- package/dist/types/components/molecules/empty/empty.style.d.ts +296 -0
- package/dist/types/components/molecules/expansion-panel/bcm-expansion-panel-description.d.ts +6 -0
- package/dist/types/components/molecules/expansion-panel/bcm-expansion-panel-extra.d.ts +6 -0
- package/dist/types/components/molecules/expansion-panel/bcm-expansion-panel-header.d.ts +6 -0
- package/dist/types/components/molecules/expansion-panel/expansion-panel.d.ts +6 -5
- package/dist/types/components/molecules/expansion-panel/expansion-panel.style.d.ts +437 -0
- package/dist/types/components/molecules/input/input.d.ts +2 -2
- package/dist/types/components/molecules/modal/modal-footer.d.ts +7 -0
- package/dist/types/components/molecules/modal/modal-header.d.ts +7 -0
- package/dist/types/components/molecules/modal/modal.style.d.ts +364 -0
- package/dist/types/components/molecules/popconfirm/popconfirm-box.d.ts +1 -1
- package/dist/types/components/molecules/popconfirm-v2/pop-confirm-host.d.ts +26 -0
- package/dist/types/components/molecules/popconfirm-v2/popconf.style.d.ts +277 -0
- package/dist/types/components/molecules/popconfirm-v2/popconfirm-v2.d.ts +15 -0
- package/dist/types/components/molecules/popover/popover.style.d.ts +103 -0
- package/dist/types/components/molecules/radio/radio-group.style.d.ts +108 -0
- package/dist/types/components/molecules/radio/radio.style.d.ts +202 -0
- package/dist/types/components/molecules/result/result-footer.d.ts +7 -0
- package/dist/types/components/molecules/result/result.d.ts +3 -7
- package/dist/types/components/molecules/result/result.style.d.ts +180 -0
- package/dist/types/components/molecules/switch/switch.style.d.ts +537 -0
- package/dist/types/components/molecules/tab-group/tab-group.d.ts +0 -1
- package/dist/types/components/molecules/tab-group/tab-group.syle.d.ts +236 -0
- package/dist/types/components/molecules/tab-group/tab-item-header.d.ts +0 -1
- package/dist/types/components/molecules/textarea/textarea.d.ts +2 -2
- package/dist/types/components/molecules/textarea/textarea.style.d.ts +610 -0
- package/dist/types/components/molecules/tooltip/tooltip.style.d.ts +94 -0
- package/dist/types/components/other/arrow/arrow.d.ts +7 -0
- package/dist/types/components/other/resizable-pane/resizable-pane.d.ts +11 -0
- package/dist/types/components/other/segment-picker/segment-picker-item.d.ts +12 -0
- package/dist/types/components/other/segment-picker/segment-picker.d.ts +35 -0
- package/dist/types/components/other/segment-picker/segment-picker.style.d.ts +150 -0
- package/dist/types/components/other/shortcut/shortcut.style.d.ts +91 -0
- package/dist/types/components/other/toast/toast.style.d.ts +539 -0
- package/dist/types/components.d.ts +448 -278
- package/dist/types/helper/generate.d.ts +0 -3
- package/dist/types/helper/index.d.ts +1 -0
- package/dist/types/helper/pop-confirm-helper.d.ts +23 -0
- package/dist/types/helper/tooltip-helper.d.ts +0 -1
- package/dist/types/models/bcm-types.d.ts +3 -2
- package/dist/types/models/bcm.d.ts +7 -1
- package/dist/types/templates/icon-template.d.ts +2 -2
- package/dist/types/templates/label-template.d.ts +1 -0
- package/package.json +2 -2
- package/dist/bromcom-ui/p-0345ed68.entry.js +0 -5
- package/dist/bromcom-ui/p-069ae664.entry.js +0 -5
- package/dist/bromcom-ui/p-08c75801.js +0 -5
- package/dist/bromcom-ui/p-193d926a.entry.js +0 -5
- package/dist/bromcom-ui/p-228c74e9.entry.js +0 -5
- package/dist/bromcom-ui/p-29c4dc0a.entry.js +0 -5
- package/dist/bromcom-ui/p-2d34eb30.entry.js +0 -5
- package/dist/bromcom-ui/p-2df6b47d.js +0 -5
- package/dist/bromcom-ui/p-2ee89105.entry.js +0 -5
- package/dist/bromcom-ui/p-305b0bc8.entry.js +0 -5
- package/dist/bromcom-ui/p-3238bf36.js +0 -5
- package/dist/bromcom-ui/p-3b863650.entry.js +0 -5
- package/dist/bromcom-ui/p-3fac58f7.js +0 -5
- package/dist/bromcom-ui/p-43c578cf.js +0 -5
- package/dist/bromcom-ui/p-4f05c6a4.entry.js +0 -5
- package/dist/bromcom-ui/p-4f6eb6d6.js +0 -5
- package/dist/bromcom-ui/p-6e5f5f36.js +0 -5
- package/dist/bromcom-ui/p-7400e3c3.entry.js +0 -5
- package/dist/bromcom-ui/p-74e6d2b6.js +0 -5
- package/dist/bromcom-ui/p-87d9dff7.entry.js +0 -5
- package/dist/bromcom-ui/p-8e683b32.js +0 -5
- package/dist/bromcom-ui/p-a2ed89f0.entry.js +0 -5
- package/dist/bromcom-ui/p-a313fba6.js +0 -5
- package/dist/bromcom-ui/p-ae57f046.entry.js +0 -5
- package/dist/bromcom-ui/p-bbae06ed.entry.js +0 -5
- package/dist/bromcom-ui/p-d1298c40.js +0 -5
- package/dist/bromcom-ui/p-e99cc26b.entry.js +0 -5
- package/dist/bromcom-ui/p-ea7368b4.entry.js +0 -5
- package/dist/bromcom-ui/p-ec1fe98f.entry.js +0 -16
- package/dist/bromcom-ui/p-ece578ef.entry.js +0 -5
- package/dist/cjs/bcm-input-2.cjs.entry.js +0 -153
- package/dist/cjs/bcm-popover.cjs.entry.js +0 -230
- package/dist/cjs/index-d321de96.js +0 -193
- package/dist/cjs/types-cc4adee7.js +0 -19
- package/dist/cjs/validators-9369c82a.js +0 -33
- package/dist/collection/components/atoms/link/link.css +0 -175
- package/dist/collection/components/atoms/states/button.states.js +0 -31
- package/dist/collection/components/molecules/accordion/accordion.css +0 -127
- package/dist/collection/components/molecules/alert/alert.css +0 -191
- package/dist/collection/components/molecules/alert/types.js +0 -23
- package/dist/collection/components/molecules/checkbox/checkbox-lite.js +0 -236
- package/dist/collection/components/molecules/expansion-panel/expansion-panel.css +0 -238
- package/dist/collection/components/molecules/input/input.css +0 -365
- package/dist/collection/components/molecules/input/input2.js +0 -918
- package/dist/collection/components/molecules/result/result.css +0 -164
- package/dist/collection/components/molecules/result/types.js +0 -22
- package/dist/collection/components/molecules/search/search.css +0 -365
- package/dist/collection/components/molecules/states/alert.states.js +0 -25
- package/dist/collection/components/molecules/switch/switch.css +0 -434
- package/dist/collection/components/molecules/textarea/textarea.css +0 -365
- package/dist/collection/components/molecules/textarea/types.js +0 -13
- package/dist/collection/global/components/_checkbox.css +0 -378
- package/dist/components/bcm-checkbox-lite.js +0 -10
- package/dist/components/bcm-input-2.js +0 -225
- package/dist/components/checkbox-lite.js +0 -97
- package/dist/components/input-template.js +0 -90
- package/dist/components/validators.js +0 -35
- package/dist/esm/bcm-input-2.entry.js +0 -149
- package/dist/esm/bcm-popover.entry.js +0 -226
- package/dist/esm/index-7e71bbc8.js +0 -191
- package/dist/esm/types-6f06fa1a.js +0 -19
- package/dist/esm/validators-c067048c.js +0 -31
- package/dist/types/components/atoms/states/button.states.d.ts +0 -7
- package/dist/types/components/molecules/alert/types.d.ts +0 -25
- package/dist/types/components/molecules/checkbox/checkbox-lite.d.ts +0 -14
- package/dist/types/components/molecules/input/input2.d.ts +0 -64
- package/dist/types/components/molecules/result/types.d.ts +0 -19
- package/dist/types/components/molecules/states/alert.states.d.ts +0 -7
- package/dist/types/components/molecules/textarea/types.d.ts +0 -9
- /package/dist/collection/components/{third-parts/rc-picker → organism/date}/date.js +0 -0
- /package/dist/types/components/molecules/{checkbox/group.d.ts → checkbox-group/checkbox-group.d.ts} +0 -0
- /package/dist/types/components/{third-parts/rc-picker → organism/date}/date.d.ts +0 -0
|
@@ -2,146 +2,138 @@
|
|
|
2
2
|
* Built with Stencil
|
|
3
3
|
* Copyright (c) Bromcom.
|
|
4
4
|
*/
|
|
5
|
-
import {
|
|
6
|
-
import { Generate } from
|
|
7
|
-
import Bcm from
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import { ButtonTemplate } from '../../../templates/button-template';
|
|
11
|
-
import { ColorHelper } from '../../../helper/color-helper';
|
|
5
|
+
import { Host, h } from "@stencil/core";
|
|
6
|
+
import { Generate } from "../../../helper/generate";
|
|
7
|
+
import Bcm from "../../../models/bcm";
|
|
8
|
+
import { buttonStyle } from "./button.style";
|
|
9
|
+
import { variantOptions } from "./types";
|
|
12
10
|
export class BcmButton {
|
|
13
11
|
constructor() {
|
|
14
|
-
|
|
15
|
-
this.
|
|
12
|
+
// isLink returns true if the button should be rendered as a link
|
|
13
|
+
this.isLink = () => !!this.href;
|
|
16
14
|
this.type = Bcm.ButtonType.button;
|
|
15
|
+
this.form = undefined;
|
|
16
|
+
this.formAction = undefined;
|
|
17
|
+
this.formMethod = undefined;
|
|
18
|
+
this.formEnctype = undefined;
|
|
19
|
+
this.formTarget = undefined;
|
|
20
|
+
this.formNoValidate = undefined;
|
|
21
|
+
this.href = undefined;
|
|
22
|
+
this.target = Bcm.Target["_blank"];
|
|
23
|
+
this.rel = "noreferrer noopener";
|
|
24
|
+
this.download = undefined;
|
|
25
|
+
this._id = Generate.UID();
|
|
26
|
+
this.value = undefined;
|
|
27
|
+
this.name = undefined;
|
|
28
|
+
this.variant = undefined;
|
|
29
|
+
this.dataDismiss = false;
|
|
30
|
+
this.color = undefined;
|
|
31
|
+
this.checked = false;
|
|
17
32
|
this.size = Bcm.Size.medium;
|
|
18
33
|
this.disabled = false;
|
|
34
|
+
this.hidden = false;
|
|
19
35
|
this.kind = Bcm.Kind.solid;
|
|
20
36
|
this.outline = false;
|
|
37
|
+
this.filled = true;
|
|
21
38
|
this.icon = undefined;
|
|
22
|
-
this.href = undefined;
|
|
23
|
-
this.target = undefined;
|
|
24
|
-
this.value = undefined;
|
|
25
39
|
this.loading = false;
|
|
26
|
-
this.
|
|
27
|
-
this.dataDismiss = false;
|
|
40
|
+
this.text = undefined;
|
|
28
41
|
this.fullWidth = false;
|
|
29
42
|
this.iconPosition = Bcm.IconPosition.prefix;
|
|
30
|
-
this.color = undefined;
|
|
31
|
-
this.checked = false;
|
|
32
|
-
}
|
|
33
|
-
handleOnClick(e) {
|
|
34
|
-
if (this.disabled) {
|
|
35
|
-
e.preventDefault();
|
|
36
|
-
e.stopPropagation();
|
|
37
|
-
return false;
|
|
38
|
-
}
|
|
39
43
|
}
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
+
render() {
|
|
45
|
+
/* style definitions */
|
|
46
|
+
const { color, kind, size, variant, fullWidth, outline } = this;
|
|
47
|
+
/* Common Attributes */
|
|
48
|
+
const { value, name, dataDismiss, disabled, loading, icon, iconPosition, text } = this;
|
|
49
|
+
/* Button Attributes */
|
|
50
|
+
const { type, form, formAction, formMethod, formEnctype, formTarget, formNoValidate, checked } = this;
|
|
51
|
+
/* Link Attributes */
|
|
52
|
+
const { href, target, rel, download } = this;
|
|
53
|
+
/* Tag */
|
|
54
|
+
const Tag = this.isLink() ? "a" : "button";
|
|
55
|
+
const buttonKind = outline ? "ghost" : kind;
|
|
56
|
+
const variantExists = variant && variantOptions[variant];
|
|
57
|
+
const buttonText = text || value || (variantExists && variantOptions[variant].text);
|
|
58
|
+
const buttonIcon = icon || (variantExists && variantOptions[variant].icon);
|
|
59
|
+
const buttonIconPosition = iconPosition || (variantExists && variantOptions[variant].iconPosition);
|
|
60
|
+
/* if kind is ghost, color is overridden. */
|
|
61
|
+
const buttonAttributes = {
|
|
62
|
+
"type": type,
|
|
63
|
+
"form": form,
|
|
64
|
+
"formaction": formAction,
|
|
65
|
+
"formmethod": formMethod,
|
|
66
|
+
"formenctype": formEnctype,
|
|
67
|
+
"formtarget": formTarget,
|
|
68
|
+
"formnovalidate": formNoValidate,
|
|
69
|
+
"value": value,
|
|
70
|
+
"name": name,
|
|
71
|
+
"data-dismiss": dataDismiss,
|
|
72
|
+
"data-checked": checked,
|
|
73
|
+
};
|
|
74
|
+
const linkAttributes = {
|
|
75
|
+
href: href,
|
|
76
|
+
target: target,
|
|
77
|
+
rel: rel,
|
|
78
|
+
download: download,
|
|
79
|
+
};
|
|
80
|
+
const commonAttributes = Object.assign(Object.assign({ "aria-label": buttonText || "button" }, (!disabled && {
|
|
81
|
+
onClick: e => {
|
|
82
|
+
this.bcmButtonClick.emit(e);
|
|
83
|
+
this.bcmClick.emit(e);
|
|
84
|
+
},
|
|
85
|
+
})), (disabled && {
|
|
86
|
+
"disabled": true,
|
|
87
|
+
"aria-disabled": true,
|
|
88
|
+
"tabindex": -1,
|
|
89
|
+
"onClick": e => {
|
|
90
|
+
e.preventDefault();
|
|
91
|
+
e.stopPropagation();
|
|
92
|
+
},
|
|
93
|
+
}));
|
|
94
|
+
const { hostStyle, containerStyle, textStyle } = buttonStyle({
|
|
44
95
|
size,
|
|
45
|
-
|
|
46
|
-
kind,
|
|
47
|
-
icon,
|
|
48
|
-
iconPosition,
|
|
49
|
-
disabled,
|
|
50
|
-
outline,
|
|
51
|
-
href,
|
|
52
|
-
target,
|
|
53
|
-
loading,
|
|
54
|
-
variant,
|
|
96
|
+
kind: buttonKind,
|
|
55
97
|
fullWidth,
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
isIconOnly: !!(this.isHaveChildNodes() && this.icon),
|
|
59
|
-
});
|
|
60
|
-
}
|
|
61
|
-
getStateData() {
|
|
62
|
-
return buttonState.getValue(this._id);
|
|
63
|
-
}
|
|
64
|
-
isHaveChildNodes() {
|
|
65
|
-
const childNodes = Array.from(this.el.childNodes);
|
|
66
|
-
return childNodes.find(node => node.nodeType === Node.TEXT_NODE) === undefined;
|
|
67
|
-
}
|
|
68
|
-
setColor(color = this.color) {
|
|
69
|
-
if (!color)
|
|
70
|
-
return;
|
|
71
|
-
const { kind } = this;
|
|
72
|
-
const prefix = `--bcm-button-${kind}`;
|
|
73
|
-
if (kind === 'solid') {
|
|
74
|
-
return {
|
|
75
|
-
[`${prefix}-color-default`]: ColorHelper.dsColor('white'),
|
|
76
|
-
[`${prefix}-color-hover`]: ColorHelper.dsColor('white'),
|
|
77
|
-
[`${prefix}-color-focus-visible`]: ColorHelper.dsColor('white'),
|
|
78
|
-
[`${prefix}-color-active`]: ColorHelper.dsColor('white'),
|
|
79
|
-
[`${prefix}-color-disabled`]: ColorHelper.dsColor('white'),
|
|
80
|
-
[`${prefix}-background-color-default`]: ColorHelper.dsColor(color + '-700'),
|
|
81
|
-
[`${prefix}-background-color-hover`]: ColorHelper.dsColor(color + '-800'),
|
|
82
|
-
[`${prefix}-background-color-focus-visible`]: ColorHelper.dsColor(color + '-900'),
|
|
83
|
-
[`${prefix}-background-color-active`]: ColorHelper.dsColor(color + '-900'),
|
|
84
|
-
[`${prefix}-background-color-disabled`]: ColorHelper.dsColor('slate-400'),
|
|
85
|
-
[`${prefix}-border-default`]: ColorHelper.dsColor(color + '-700'),
|
|
86
|
-
[`${prefix}-border-hover`]: ColorHelper.dsColor(color + '-800'),
|
|
87
|
-
[`${prefix}-border-focus-visible`]: ColorHelper.dsColor(color + '-900'),
|
|
88
|
-
[`${prefix}-border-active`]: ColorHelper.dsColor(color + '-900'),
|
|
89
|
-
[`${prefix}-border-disabled`]: ColorHelper.dsColor('slate-400')
|
|
90
|
-
};
|
|
91
|
-
}
|
|
92
|
-
else if (kind == 'link') {
|
|
93
|
-
return {
|
|
94
|
-
[`${prefix}-color-default`]: ColorHelper.dsColor(color + '-700'),
|
|
95
|
-
[`${prefix}-color-hover`]: ColorHelper.dsColor(color + '-800'),
|
|
96
|
-
[`${prefix}-color-focus-visible`]: ColorHelper.dsColor(color + '-900'),
|
|
97
|
-
[`${prefix}-color-active`]: ColorHelper.dsColor(color + '-900'),
|
|
98
|
-
[`${prefix}-color-disabled`]: ColorHelper.dsColor('slate-400'),
|
|
99
|
-
[`${prefix}-background-color-default`]: ColorHelper.dsColor('transparent'),
|
|
100
|
-
[`${prefix}-background-color-hover`]: ColorHelper.dsColor('transparent'),
|
|
101
|
-
[`${prefix}-background-color-focus-visible`]: ColorHelper.dsColor('slate-50'),
|
|
102
|
-
[`${prefix}-background-color-active`]: ColorHelper.dsColor('slate-50'),
|
|
103
|
-
[`${prefix}-background-color-disabled`]: ColorHelper.dsColor('transparent'),
|
|
104
|
-
[`${prefix}-border-default`]: ColorHelper.dsColor('transparent'),
|
|
105
|
-
[`${prefix}-border-hover`]: ColorHelper.dsColor('transparent'),
|
|
106
|
-
[`${prefix}-border-focus-visible`]: ColorHelper.dsColor('slate-50'),
|
|
107
|
-
[`${prefix}-border-active`]: ColorHelper.dsColor('slate-50'),
|
|
108
|
-
[`${prefix}-border-disabled`]: ColorHelper.dsColor('transparent')
|
|
109
|
-
};
|
|
110
|
-
}
|
|
111
|
-
else if (kind == 'ghost') {
|
|
112
|
-
return {
|
|
113
|
-
[`${prefix}-color-default`]: ColorHelper.dsColor(color + '-700'),
|
|
114
|
-
[`${prefix}-color-hover`]: ColorHelper.dsColor(color + '-800'),
|
|
115
|
-
[`${prefix}-color-focus-visible`]: ColorHelper.dsColor(color + '-600'),
|
|
116
|
-
[`${prefix}-color-active`]: ColorHelper.dsColor(color + '-600'),
|
|
117
|
-
[`${prefix}-color-disabled`]: ColorHelper.dsColor(color + '-300'),
|
|
118
|
-
[`${prefix}-background-color-default`]: ColorHelper.dsColor(color + '-100'),
|
|
119
|
-
[`${prefix}-background-color-hover`]: ColorHelper.dsColor(color + '-200'),
|
|
120
|
-
[`${prefix}-background-color-focus-visible`]: ColorHelper.dsColor(color + '-400'),
|
|
121
|
-
[`${prefix}-background-color-active`]: ColorHelper.dsColor(color + '-300'),
|
|
122
|
-
[`${prefix}-background-color-disabled`]: ColorHelper.dsColor(color + '-50'),
|
|
123
|
-
[`${prefix}-border-default`]: ColorHelper.dsColor(color + '-300'),
|
|
124
|
-
[`${prefix}-border-hover`]: ColorHelper.dsColor(color + '-400'),
|
|
125
|
-
[`${prefix}-border-focus-visible`]: ColorHelper.dsColor(color + '-600'),
|
|
126
|
-
[`${prefix}-border-active`]: ColorHelper.dsColor(color + '-500'),
|
|
127
|
-
[`${prefix}-border-disabled`]: ColorHelper.dsColor(color + '-200'),
|
|
128
|
-
};
|
|
129
|
-
}
|
|
130
|
-
return;
|
|
131
|
-
}
|
|
132
|
-
render() {
|
|
133
|
-
const { size, kind, disabled, outline, type, href, target, loading, variantColor, fullWidth, hidden, icon, iconPosition, value, isIconOnly, iconSize } = this.getStateData();
|
|
134
|
-
const classPrefix = 'bcm-button';
|
|
135
|
-
let componentClass = cs('bcm-button__container', `bcm-button__container-size-${size}`, `bcm-button__container-kind-${outline ? 'ghost' : kind}`, {
|
|
136
|
-
'full-width': fullWidth,
|
|
137
|
-
'checked': this.checked,
|
|
138
|
-
'disabled': disabled,
|
|
98
|
+
checked: this.checked,
|
|
99
|
+
disabled,
|
|
139
100
|
});
|
|
140
|
-
const
|
|
141
|
-
|
|
142
|
-
|
|
101
|
+
const tones = {
|
|
102
|
+
solid: {
|
|
103
|
+
"white": ["text", "text-hover", "text-active"],
|
|
104
|
+
"700": ["bg", "border"],
|
|
105
|
+
"800": ["bg-hover", "border-hover"],
|
|
106
|
+
"900": ["bg-active", "border-active"],
|
|
107
|
+
},
|
|
108
|
+
ghost: {
|
|
109
|
+
"700": ["text"],
|
|
110
|
+
"800": ["text-hover"],
|
|
111
|
+
"900": ["text-active"],
|
|
112
|
+
"100": ["bg"],
|
|
113
|
+
"200": ["bg-hover"],
|
|
114
|
+
"300": ["bg-active", "border"],
|
|
115
|
+
"400": ["border-hover"],
|
|
116
|
+
"500": ["border-active"],
|
|
117
|
+
},
|
|
118
|
+
link: {
|
|
119
|
+
"transparent": ["bg", "bg-hover", "bg-active", "border", "border-hover", "border-active"],
|
|
120
|
+
"700": ["text"],
|
|
121
|
+
"800": ["text-hover"],
|
|
122
|
+
"900": ["text-active"],
|
|
123
|
+
},
|
|
124
|
+
};
|
|
125
|
+
const buttonColor = {
|
|
126
|
+
solid: color || (variantExists && variantOptions[variant].color),
|
|
127
|
+
ghost: "slate",
|
|
128
|
+
link: color || (variantExists && variantOptions[variant].color) || "blue",
|
|
129
|
+
};
|
|
130
|
+
const dc = Generate.getTwColor({
|
|
131
|
+
color: buttonColor[buttonKind],
|
|
132
|
+
tones: tones[buttonKind],
|
|
133
|
+
variable: `--bcm-button`,
|
|
143
134
|
});
|
|
144
|
-
|
|
135
|
+
const style = Object.assign({}, dc);
|
|
136
|
+
return (h(Host, { class: hostStyle(), style: style }, h(Tag, Object.assign({ class: containerStyle() }, commonAttributes, (this.isLink() ? linkAttributes : buttonAttributes)), h("slot", { name: "prefix" }), buttonIcon && (h("span", { class: `${buttonIconPosition == "suffix" ? "tw-order-1" : "tw-order-0"} bcm-button__container-icon` }, h("i", { class: `${buttonIcon}` }))), h("span", { class: textStyle() }, h("slot", null, buttonText)), h("slot", { name: "suffix" }), loading && (h("div", { class: "tw-absolute tw-inset-0 tw-flex tw-items-center tw-justify-center tw-rounded-[--bcm-button-radius] tw-bg-inherit" }, h("i", { class: "far fa-spinner-third fa-spin" }))))));
|
|
145
137
|
}
|
|
146
138
|
static get is() { return "bcm-button"; }
|
|
147
139
|
static get originalStyleUrls() {
|
|
@@ -156,9 +148,32 @@ export class BcmButton {
|
|
|
156
148
|
}
|
|
157
149
|
static get properties() {
|
|
158
150
|
return {
|
|
159
|
-
"
|
|
151
|
+
"type": {
|
|
152
|
+
"type": "string",
|
|
153
|
+
"mutable": false,
|
|
154
|
+
"complexType": {
|
|
155
|
+
"original": "ButtonTypes",
|
|
156
|
+
"resolved": "\"button\" | \"reset\" | \"submit\"",
|
|
157
|
+
"references": {
|
|
158
|
+
"ButtonTypes": {
|
|
159
|
+
"location": "import",
|
|
160
|
+
"path": "../../../models/bcm-types"
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
"required": false,
|
|
165
|
+
"optional": false,
|
|
166
|
+
"docs": {
|
|
167
|
+
"tags": [],
|
|
168
|
+
"text": ""
|
|
169
|
+
},
|
|
170
|
+
"attribute": "type",
|
|
171
|
+
"reflect": false,
|
|
172
|
+
"defaultValue": "Bcm.ButtonType.button"
|
|
173
|
+
},
|
|
174
|
+
"form": {
|
|
160
175
|
"type": "string",
|
|
161
|
-
"mutable":
|
|
176
|
+
"mutable": false,
|
|
162
177
|
"complexType": {
|
|
163
178
|
"original": "string",
|
|
164
179
|
"resolved": "string",
|
|
@@ -170,16 +185,15 @@ export class BcmButton {
|
|
|
170
185
|
"tags": [],
|
|
171
186
|
"text": ""
|
|
172
187
|
},
|
|
173
|
-
"attribute": "
|
|
174
|
-
"reflect":
|
|
175
|
-
"defaultValue": "Generate.UID()"
|
|
188
|
+
"attribute": "form",
|
|
189
|
+
"reflect": false
|
|
176
190
|
},
|
|
177
|
-
"
|
|
178
|
-
"type": "
|
|
179
|
-
"mutable":
|
|
191
|
+
"formAction": {
|
|
192
|
+
"type": "string",
|
|
193
|
+
"mutable": false,
|
|
180
194
|
"complexType": {
|
|
181
|
-
"original": "
|
|
182
|
-
"resolved": "
|
|
195
|
+
"original": "string",
|
|
196
|
+
"resolved": "string",
|
|
183
197
|
"references": {}
|
|
184
198
|
},
|
|
185
199
|
"required": false,
|
|
@@ -188,22 +202,16 @@ export class BcmButton {
|
|
|
188
202
|
"tags": [],
|
|
189
203
|
"text": ""
|
|
190
204
|
},
|
|
191
|
-
"attribute": "
|
|
192
|
-
"reflect":
|
|
193
|
-
"defaultValue": "false"
|
|
205
|
+
"attribute": "formaction",
|
|
206
|
+
"reflect": false
|
|
194
207
|
},
|
|
195
|
-
"
|
|
208
|
+
"formMethod": {
|
|
196
209
|
"type": "string",
|
|
197
|
-
"mutable":
|
|
210
|
+
"mutable": false,
|
|
198
211
|
"complexType": {
|
|
199
|
-
"original": "
|
|
200
|
-
"resolved": "\"
|
|
201
|
-
"references": {
|
|
202
|
-
"ButtonTypes": {
|
|
203
|
-
"location": "import",
|
|
204
|
-
"path": "../../../models/bcm-types"
|
|
205
|
-
}
|
|
206
|
-
}
|
|
212
|
+
"original": "\"post\" | \"get\"",
|
|
213
|
+
"resolved": "\"get\" | \"post\"",
|
|
214
|
+
"references": {}
|
|
207
215
|
},
|
|
208
216
|
"required": false,
|
|
209
217
|
"optional": false,
|
|
@@ -211,22 +219,16 @@ export class BcmButton {
|
|
|
211
219
|
"tags": [],
|
|
212
220
|
"text": ""
|
|
213
221
|
},
|
|
214
|
-
"attribute": "
|
|
215
|
-
"reflect": false
|
|
216
|
-
"defaultValue": "Bcm.ButtonType.button"
|
|
222
|
+
"attribute": "formmethod",
|
|
223
|
+
"reflect": false
|
|
217
224
|
},
|
|
218
|
-
"
|
|
225
|
+
"formEnctype": {
|
|
219
226
|
"type": "string",
|
|
220
|
-
"mutable":
|
|
227
|
+
"mutable": false,
|
|
221
228
|
"complexType": {
|
|
222
|
-
"original": "
|
|
223
|
-
"resolved": "\"
|
|
224
|
-
"references": {
|
|
225
|
-
"SizeTypes": {
|
|
226
|
-
"location": "import",
|
|
227
|
-
"path": "../../../models/bcm-types"
|
|
228
|
-
}
|
|
229
|
-
}
|
|
229
|
+
"original": "\"application/x-www-form-urlencoded\" | \"multipart/form-data\" | \"text/plain\"",
|
|
230
|
+
"resolved": "\"application/x-www-form-urlencoded\" | \"multipart/form-data\" | \"text/plain\"",
|
|
231
|
+
"references": {}
|
|
230
232
|
},
|
|
231
233
|
"required": false,
|
|
232
234
|
"optional": false,
|
|
@@ -234,13 +236,29 @@ export class BcmButton {
|
|
|
234
236
|
"tags": [],
|
|
235
237
|
"text": ""
|
|
236
238
|
},
|
|
237
|
-
"attribute": "
|
|
238
|
-
"reflect": false
|
|
239
|
-
"defaultValue": "Bcm.Size.medium"
|
|
239
|
+
"attribute": "formenctype",
|
|
240
|
+
"reflect": false
|
|
240
241
|
},
|
|
241
|
-
"
|
|
242
|
+
"formTarget": {
|
|
243
|
+
"type": "string",
|
|
244
|
+
"mutable": false,
|
|
245
|
+
"complexType": {
|
|
246
|
+
"original": "\"_self\" | \"_blank\" | \"_parent\" | \"_top\" | string",
|
|
247
|
+
"resolved": "string",
|
|
248
|
+
"references": {}
|
|
249
|
+
},
|
|
250
|
+
"required": false,
|
|
251
|
+
"optional": false,
|
|
252
|
+
"docs": {
|
|
253
|
+
"tags": [],
|
|
254
|
+
"text": ""
|
|
255
|
+
},
|
|
256
|
+
"attribute": "formtarget",
|
|
257
|
+
"reflect": false
|
|
258
|
+
},
|
|
259
|
+
"formNoValidate": {
|
|
242
260
|
"type": "boolean",
|
|
243
|
-
"mutable":
|
|
261
|
+
"mutable": false,
|
|
244
262
|
"complexType": {
|
|
245
263
|
"original": "boolean",
|
|
246
264
|
"resolved": "boolean",
|
|
@@ -252,22 +270,16 @@ export class BcmButton {
|
|
|
252
270
|
"tags": [],
|
|
253
271
|
"text": ""
|
|
254
272
|
},
|
|
255
|
-
"attribute": "
|
|
256
|
-
"reflect":
|
|
257
|
-
"defaultValue": "false"
|
|
273
|
+
"attribute": "formnovalidate",
|
|
274
|
+
"reflect": false
|
|
258
275
|
},
|
|
259
|
-
"
|
|
276
|
+
"href": {
|
|
260
277
|
"type": "string",
|
|
261
|
-
"mutable":
|
|
278
|
+
"mutable": false,
|
|
262
279
|
"complexType": {
|
|
263
|
-
"original": "
|
|
264
|
-
"resolved": "
|
|
265
|
-
"references": {
|
|
266
|
-
"KindTypes": {
|
|
267
|
-
"location": "import",
|
|
268
|
-
"path": "../../../models/bcm-types"
|
|
269
|
-
}
|
|
270
|
-
}
|
|
280
|
+
"original": "string",
|
|
281
|
+
"resolved": "string",
|
|
282
|
+
"references": {}
|
|
271
283
|
},
|
|
272
284
|
"required": false,
|
|
273
285
|
"optional": false,
|
|
@@ -275,17 +287,21 @@ export class BcmButton {
|
|
|
275
287
|
"tags": [],
|
|
276
288
|
"text": ""
|
|
277
289
|
},
|
|
278
|
-
"attribute": "
|
|
279
|
-
"reflect": false
|
|
280
|
-
"defaultValue": "Bcm.Kind.solid"
|
|
290
|
+
"attribute": "href",
|
|
291
|
+
"reflect": false
|
|
281
292
|
},
|
|
282
|
-
"
|
|
283
|
-
"type": "
|
|
284
|
-
"mutable":
|
|
293
|
+
"target": {
|
|
294
|
+
"type": "string",
|
|
295
|
+
"mutable": false,
|
|
285
296
|
"complexType": {
|
|
286
|
-
"original": "
|
|
287
|
-
"resolved": "
|
|
288
|
-
"references": {
|
|
297
|
+
"original": "TargetTypes",
|
|
298
|
+
"resolved": "\"blank\" | \"parent\" | \"self\" | \"top\"",
|
|
299
|
+
"references": {
|
|
300
|
+
"TargetTypes": {
|
|
301
|
+
"location": "import",
|
|
302
|
+
"path": "../../../models/bcm-types"
|
|
303
|
+
}
|
|
304
|
+
}
|
|
289
305
|
},
|
|
290
306
|
"required": false,
|
|
291
307
|
"optional": false,
|
|
@@ -293,13 +309,13 @@ export class BcmButton {
|
|
|
293
309
|
"tags": [],
|
|
294
310
|
"text": ""
|
|
295
311
|
},
|
|
296
|
-
"attribute": "
|
|
312
|
+
"attribute": "target",
|
|
297
313
|
"reflect": false,
|
|
298
|
-
"defaultValue": "
|
|
314
|
+
"defaultValue": "Bcm.Target[\"_blank\"]"
|
|
299
315
|
},
|
|
300
|
-
"
|
|
316
|
+
"rel": {
|
|
301
317
|
"type": "string",
|
|
302
|
-
"mutable":
|
|
318
|
+
"mutable": false,
|
|
303
319
|
"complexType": {
|
|
304
320
|
"original": "string",
|
|
305
321
|
"resolved": "string",
|
|
@@ -311,29 +327,30 @@ export class BcmButton {
|
|
|
311
327
|
"tags": [],
|
|
312
328
|
"text": ""
|
|
313
329
|
},
|
|
314
|
-
"attribute": "
|
|
315
|
-
"reflect": false
|
|
330
|
+
"attribute": "rel",
|
|
331
|
+
"reflect": false,
|
|
332
|
+
"defaultValue": "\"noreferrer noopener\""
|
|
316
333
|
},
|
|
317
|
-
"
|
|
334
|
+
"download": {
|
|
318
335
|
"type": "string",
|
|
319
|
-
"mutable":
|
|
336
|
+
"mutable": false,
|
|
320
337
|
"complexType": {
|
|
321
338
|
"original": "string",
|
|
322
339
|
"resolved": "string",
|
|
323
340
|
"references": {}
|
|
324
341
|
},
|
|
325
342
|
"required": false,
|
|
326
|
-
"optional":
|
|
343
|
+
"optional": true,
|
|
327
344
|
"docs": {
|
|
328
345
|
"tags": [],
|
|
329
346
|
"text": ""
|
|
330
347
|
},
|
|
331
|
-
"attribute": "
|
|
348
|
+
"attribute": "download",
|
|
332
349
|
"reflect": false
|
|
333
350
|
},
|
|
334
|
-
"
|
|
351
|
+
"_id": {
|
|
335
352
|
"type": "string",
|
|
336
|
-
"mutable":
|
|
353
|
+
"mutable": false,
|
|
337
354
|
"complexType": {
|
|
338
355
|
"original": "string",
|
|
339
356
|
"resolved": "string",
|
|
@@ -345,12 +362,13 @@ export class BcmButton {
|
|
|
345
362
|
"tags": [],
|
|
346
363
|
"text": ""
|
|
347
364
|
},
|
|
348
|
-
"attribute": "
|
|
349
|
-
"reflect":
|
|
365
|
+
"attribute": "id",
|
|
366
|
+
"reflect": true,
|
|
367
|
+
"defaultValue": "Generate.UID()"
|
|
350
368
|
},
|
|
351
369
|
"value": {
|
|
352
370
|
"type": "string",
|
|
353
|
-
"mutable":
|
|
371
|
+
"mutable": false,
|
|
354
372
|
"complexType": {
|
|
355
373
|
"original": "string",
|
|
356
374
|
"resolved": "string",
|
|
@@ -365,12 +383,12 @@ export class BcmButton {
|
|
|
365
383
|
"attribute": "value",
|
|
366
384
|
"reflect": false
|
|
367
385
|
},
|
|
368
|
-
"
|
|
369
|
-
"type": "
|
|
370
|
-
"mutable":
|
|
386
|
+
"name": {
|
|
387
|
+
"type": "string",
|
|
388
|
+
"mutable": false,
|
|
371
389
|
"complexType": {
|
|
372
|
-
"original": "
|
|
373
|
-
"resolved": "
|
|
390
|
+
"original": "string",
|
|
391
|
+
"resolved": "string",
|
|
374
392
|
"references": {}
|
|
375
393
|
},
|
|
376
394
|
"required": false,
|
|
@@ -379,13 +397,12 @@ export class BcmButton {
|
|
|
379
397
|
"tags": [],
|
|
380
398
|
"text": ""
|
|
381
399
|
},
|
|
382
|
-
"attribute": "
|
|
383
|
-
"reflect": false
|
|
384
|
-
"defaultValue": "false"
|
|
400
|
+
"attribute": "name",
|
|
401
|
+
"reflect": false
|
|
385
402
|
},
|
|
386
403
|
"variant": {
|
|
387
404
|
"type": "string",
|
|
388
|
-
"mutable":
|
|
405
|
+
"mutable": false,
|
|
389
406
|
"complexType": {
|
|
390
407
|
"original": "VariantProp",
|
|
391
408
|
"resolved": "\"filter\" | \"remove\" | \"cancel\" | \"close\" | \"reset\" | \"submit\" | \"apply\" | \"download\" | \"save\" | \"ok\" | \"new\" | \"add\" | \"create\" | \"prev\" | \"next\" | \"send\" | \"delete\" | \"decline\" | \"archive\" | \"edit\" | \"export\" | \"import\" | \"update\"",
|
|
@@ -407,7 +424,7 @@ export class BcmButton {
|
|
|
407
424
|
},
|
|
408
425
|
"dataDismiss": {
|
|
409
426
|
"type": "boolean",
|
|
410
|
-
"mutable":
|
|
427
|
+
"mutable": false,
|
|
411
428
|
"complexType": {
|
|
412
429
|
"original": "boolean",
|
|
413
430
|
"resolved": "boolean",
|
|
@@ -423,9 +440,26 @@ export class BcmButton {
|
|
|
423
440
|
"reflect": false,
|
|
424
441
|
"defaultValue": "false"
|
|
425
442
|
},
|
|
426
|
-
"
|
|
443
|
+
"color": {
|
|
444
|
+
"type": "any",
|
|
445
|
+
"mutable": false,
|
|
446
|
+
"complexType": {
|
|
447
|
+
"original": "any",
|
|
448
|
+
"resolved": "any",
|
|
449
|
+
"references": {}
|
|
450
|
+
},
|
|
451
|
+
"required": false,
|
|
452
|
+
"optional": false,
|
|
453
|
+
"docs": {
|
|
454
|
+
"tags": [],
|
|
455
|
+
"text": ""
|
|
456
|
+
},
|
|
457
|
+
"attribute": "color",
|
|
458
|
+
"reflect": false
|
|
459
|
+
},
|
|
460
|
+
"checked": {
|
|
427
461
|
"type": "boolean",
|
|
428
|
-
"mutable":
|
|
462
|
+
"mutable": false,
|
|
429
463
|
"complexType": {
|
|
430
464
|
"original": "boolean",
|
|
431
465
|
"resolved": "boolean",
|
|
@@ -437,18 +471,18 @@ export class BcmButton {
|
|
|
437
471
|
"tags": [],
|
|
438
472
|
"text": ""
|
|
439
473
|
},
|
|
440
|
-
"attribute": "
|
|
474
|
+
"attribute": "checked",
|
|
441
475
|
"reflect": false,
|
|
442
476
|
"defaultValue": "false"
|
|
443
477
|
},
|
|
444
|
-
"
|
|
478
|
+
"size": {
|
|
445
479
|
"type": "string",
|
|
446
|
-
"mutable":
|
|
480
|
+
"mutable": false,
|
|
447
481
|
"complexType": {
|
|
448
|
-
"original": "
|
|
449
|
-
"resolved": "\"
|
|
482
|
+
"original": "SizeTypes",
|
|
483
|
+
"resolved": "\"large\" | \"medium\" | \"small\"",
|
|
450
484
|
"references": {
|
|
451
|
-
"
|
|
485
|
+
"SizeTypes": {
|
|
452
486
|
"location": "import",
|
|
453
487
|
"path": "../../../models/bcm-types"
|
|
454
488
|
}
|
|
@@ -460,16 +494,16 @@ export class BcmButton {
|
|
|
460
494
|
"tags": [],
|
|
461
495
|
"text": ""
|
|
462
496
|
},
|
|
463
|
-
"attribute": "
|
|
497
|
+
"attribute": "size",
|
|
464
498
|
"reflect": false,
|
|
465
|
-
"defaultValue": "Bcm.
|
|
499
|
+
"defaultValue": "Bcm.Size.medium"
|
|
466
500
|
},
|
|
467
|
-
"
|
|
468
|
-
"type": "
|
|
469
|
-
"mutable":
|
|
501
|
+
"disabled": {
|
|
502
|
+
"type": "boolean",
|
|
503
|
+
"mutable": false,
|
|
470
504
|
"complexType": {
|
|
471
|
-
"original": "
|
|
472
|
-
"resolved": "
|
|
505
|
+
"original": "boolean",
|
|
506
|
+
"resolved": "boolean",
|
|
473
507
|
"references": {}
|
|
474
508
|
},
|
|
475
509
|
"required": false,
|
|
@@ -478,12 +512,102 @@ export class BcmButton {
|
|
|
478
512
|
"tags": [],
|
|
479
513
|
"text": ""
|
|
480
514
|
},
|
|
481
|
-
"attribute": "
|
|
515
|
+
"attribute": "disabled",
|
|
516
|
+
"reflect": false,
|
|
517
|
+
"defaultValue": "false"
|
|
518
|
+
},
|
|
519
|
+
"hidden": {
|
|
520
|
+
"type": "boolean",
|
|
521
|
+
"mutable": false,
|
|
522
|
+
"complexType": {
|
|
523
|
+
"original": "boolean",
|
|
524
|
+
"resolved": "boolean",
|
|
525
|
+
"references": {}
|
|
526
|
+
},
|
|
527
|
+
"required": false,
|
|
528
|
+
"optional": false,
|
|
529
|
+
"docs": {
|
|
530
|
+
"tags": [],
|
|
531
|
+
"text": ""
|
|
532
|
+
},
|
|
533
|
+
"attribute": "hidden",
|
|
534
|
+
"reflect": false,
|
|
535
|
+
"defaultValue": "false"
|
|
536
|
+
},
|
|
537
|
+
"kind": {
|
|
538
|
+
"type": "string",
|
|
539
|
+
"mutable": false,
|
|
540
|
+
"complexType": {
|
|
541
|
+
"original": "\"solid\" | \"ghost\" | \"link\" | \"outline\"",
|
|
542
|
+
"resolved": "\"ghost\" | \"link\" | \"outline\" | \"solid\"",
|
|
543
|
+
"references": {}
|
|
544
|
+
},
|
|
545
|
+
"required": false,
|
|
546
|
+
"optional": false,
|
|
547
|
+
"docs": {
|
|
548
|
+
"tags": [],
|
|
549
|
+
"text": ""
|
|
550
|
+
},
|
|
551
|
+
"attribute": "kind",
|
|
552
|
+
"reflect": false,
|
|
553
|
+
"defaultValue": "Bcm.Kind.solid"
|
|
554
|
+
},
|
|
555
|
+
"outline": {
|
|
556
|
+
"type": "boolean",
|
|
557
|
+
"mutable": false,
|
|
558
|
+
"complexType": {
|
|
559
|
+
"original": "boolean",
|
|
560
|
+
"resolved": "boolean",
|
|
561
|
+
"references": {}
|
|
562
|
+
},
|
|
563
|
+
"required": false,
|
|
564
|
+
"optional": false,
|
|
565
|
+
"docs": {
|
|
566
|
+
"tags": [],
|
|
567
|
+
"text": ""
|
|
568
|
+
},
|
|
569
|
+
"attribute": "outline",
|
|
570
|
+
"reflect": false,
|
|
571
|
+
"defaultValue": "false"
|
|
572
|
+
},
|
|
573
|
+
"filled": {
|
|
574
|
+
"type": "boolean",
|
|
575
|
+
"mutable": false,
|
|
576
|
+
"complexType": {
|
|
577
|
+
"original": "boolean",
|
|
578
|
+
"resolved": "boolean",
|
|
579
|
+
"references": {}
|
|
580
|
+
},
|
|
581
|
+
"required": false,
|
|
582
|
+
"optional": false,
|
|
583
|
+
"docs": {
|
|
584
|
+
"tags": [],
|
|
585
|
+
"text": ""
|
|
586
|
+
},
|
|
587
|
+
"attribute": "filled",
|
|
588
|
+
"reflect": false,
|
|
589
|
+
"defaultValue": "true"
|
|
590
|
+
},
|
|
591
|
+
"icon": {
|
|
592
|
+
"type": "string",
|
|
593
|
+
"mutable": false,
|
|
594
|
+
"complexType": {
|
|
595
|
+
"original": "string",
|
|
596
|
+
"resolved": "string",
|
|
597
|
+
"references": {}
|
|
598
|
+
},
|
|
599
|
+
"required": false,
|
|
600
|
+
"optional": false,
|
|
601
|
+
"docs": {
|
|
602
|
+
"tags": [],
|
|
603
|
+
"text": ""
|
|
604
|
+
},
|
|
605
|
+
"attribute": "icon",
|
|
482
606
|
"reflect": false
|
|
483
607
|
},
|
|
484
|
-
"
|
|
608
|
+
"loading": {
|
|
485
609
|
"type": "boolean",
|
|
486
|
-
"mutable":
|
|
610
|
+
"mutable": false,
|
|
487
611
|
"complexType": {
|
|
488
612
|
"original": "boolean",
|
|
489
613
|
"resolved": "boolean",
|
|
@@ -495,14 +619,87 @@ export class BcmButton {
|
|
|
495
619
|
"tags": [],
|
|
496
620
|
"text": ""
|
|
497
621
|
},
|
|
498
|
-
"attribute": "
|
|
622
|
+
"attribute": "loading",
|
|
623
|
+
"reflect": false,
|
|
624
|
+
"defaultValue": "false"
|
|
625
|
+
},
|
|
626
|
+
"text": {
|
|
627
|
+
"type": "string",
|
|
628
|
+
"mutable": false,
|
|
629
|
+
"complexType": {
|
|
630
|
+
"original": "string",
|
|
631
|
+
"resolved": "string",
|
|
632
|
+
"references": {}
|
|
633
|
+
},
|
|
634
|
+
"required": false,
|
|
635
|
+
"optional": false,
|
|
636
|
+
"docs": {
|
|
637
|
+
"tags": [],
|
|
638
|
+
"text": ""
|
|
639
|
+
},
|
|
640
|
+
"attribute": "text",
|
|
641
|
+
"reflect": false
|
|
642
|
+
},
|
|
643
|
+
"fullWidth": {
|
|
644
|
+
"type": "boolean",
|
|
645
|
+
"mutable": false,
|
|
646
|
+
"complexType": {
|
|
647
|
+
"original": "boolean",
|
|
648
|
+
"resolved": "boolean",
|
|
649
|
+
"references": {}
|
|
650
|
+
},
|
|
651
|
+
"required": false,
|
|
652
|
+
"optional": false,
|
|
653
|
+
"docs": {
|
|
654
|
+
"tags": [],
|
|
655
|
+
"text": ""
|
|
656
|
+
},
|
|
657
|
+
"attribute": "full-width",
|
|
499
658
|
"reflect": false,
|
|
500
659
|
"defaultValue": "false"
|
|
660
|
+
},
|
|
661
|
+
"iconPosition": {
|
|
662
|
+
"type": "string",
|
|
663
|
+
"mutable": false,
|
|
664
|
+
"complexType": {
|
|
665
|
+
"original": "IconPositionTypes",
|
|
666
|
+
"resolved": "\"prefix\" | \"suffix\"",
|
|
667
|
+
"references": {
|
|
668
|
+
"IconPositionTypes": {
|
|
669
|
+
"location": "import",
|
|
670
|
+
"path": "../../../models/bcm-types"
|
|
671
|
+
}
|
|
672
|
+
}
|
|
673
|
+
},
|
|
674
|
+
"required": false,
|
|
675
|
+
"optional": false,
|
|
676
|
+
"docs": {
|
|
677
|
+
"tags": [],
|
|
678
|
+
"text": ""
|
|
679
|
+
},
|
|
680
|
+
"attribute": "icon-position",
|
|
681
|
+
"reflect": false,
|
|
682
|
+
"defaultValue": "Bcm.IconPosition.prefix"
|
|
501
683
|
}
|
|
502
684
|
};
|
|
503
685
|
}
|
|
504
686
|
static get events() {
|
|
505
687
|
return [{
|
|
688
|
+
"method": "bcmButtonClick",
|
|
689
|
+
"name": "bcm-button-click",
|
|
690
|
+
"bubbles": true,
|
|
691
|
+
"cancelable": true,
|
|
692
|
+
"composed": true,
|
|
693
|
+
"docs": {
|
|
694
|
+
"tags": [],
|
|
695
|
+
"text": "This is the button click event."
|
|
696
|
+
},
|
|
697
|
+
"complexType": {
|
|
698
|
+
"original": "any",
|
|
699
|
+
"resolved": "any",
|
|
700
|
+
"references": {}
|
|
701
|
+
}
|
|
702
|
+
}, {
|
|
506
703
|
"method": "bcmClick",
|
|
507
704
|
"name": "bcm-click",
|
|
508
705
|
"bubbles": true,
|
|
@@ -510,7 +707,7 @@ export class BcmButton {
|
|
|
510
707
|
"composed": true,
|
|
511
708
|
"docs": {
|
|
512
709
|
"tags": [],
|
|
513
|
-
"text": ""
|
|
710
|
+
"text": "This is the click event."
|
|
514
711
|
},
|
|
515
712
|
"complexType": {
|
|
516
713
|
"original": "any",
|
|
@@ -520,13 +717,4 @@ export class BcmButton {
|
|
|
520
717
|
}];
|
|
521
718
|
}
|
|
522
719
|
static get elementRef() { return "el"; }
|
|
523
|
-
static get listeners() {
|
|
524
|
-
return [{
|
|
525
|
-
"name": "click",
|
|
526
|
-
"method": "handleOnClick",
|
|
527
|
-
"target": undefined,
|
|
528
|
-
"capture": true,
|
|
529
|
-
"passive": false
|
|
530
|
-
}];
|
|
531
|
-
}
|
|
532
720
|
}
|