bromcom-ui 2.12.1-test.1 → 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-91b72db1.js → p-014f7aa2.js} +1 -1
- package/dist/bromcom-ui/{p-c66192fb.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-3440e8b9.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-370b6020.entry.js +5 -0
- 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-9e755088.entry.js → p-3aa7e1ce.entry.js} +1 -1
- package/dist/bromcom-ui/{p-4e5491bc.entry.js → p-3db88841.entry.js} +1 -1
- package/dist/bromcom-ui/{p-d6dd26f2.entry.js → p-3f4d5368.entry.js} +1 -1
- package/dist/bromcom-ui/{p-bcf286cb.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-678b25bb.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-0def72fe.entry.js → p-a02650af.entry.js} +1 -1
- package/dist/bromcom-ui/p-aa370552.js +5 -0
- package/dist/bromcom-ui/{p-ef04fd6b.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-0ce727a4.entry.js → p-b702f1e5.entry.js} +1 -1
- package/dist/bromcom-ui/p-bc6ecf66.entry.js +5 -0
- package/dist/bromcom-ui/{p-9f8aed8c.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-9a92e61e.entry.js → p-ef84ca66.entry.js} +1 -1
- package/dist/bromcom-ui/{p-38b02377.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-db2551ef.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-920aff8f.js → generate-eda14f12.js} +13 -36
- package/dist/cjs/{global-1526173b.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-a99f8b57.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-fc8c9633.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/{icon/icon.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/{molecules/accordion/accordion.css → atoms/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/chip/chip-group.css → molecules/radio/radio.css} +9 -2
- 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/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 +4 -3
- 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-d71d0301.js → generate-8470dd6c.js} +14 -37
- package/dist/esm/{global-80fedcf7.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-407e89d0.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-dec9ed1a.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-01d5ea34.entry.js +0 -5
- package/dist/bromcom-ui/p-08c75801.js +0 -5
- package/dist/bromcom-ui/p-0c1ab9c7.entry.js +0 -5
- package/dist/bromcom-ui/p-228c74e9.entry.js +0 -5
- package/dist/bromcom-ui/p-23922dab.entry.js +0 -5
- package/dist/bromcom-ui/p-3238bf36.js +0 -5
- package/dist/bromcom-ui/p-3575cff5.js +0 -5
- package/dist/bromcom-ui/p-3fac58f7.js +0 -5
- package/dist/bromcom-ui/p-42111a9b.entry.js +0 -5
- package/dist/bromcom-ui/p-43c578cf.js +0 -5
- package/dist/bromcom-ui/p-44545e3c.entry.js +0 -16
- package/dist/bromcom-ui/p-641977db.entry.js +0 -5
- package/dist/bromcom-ui/p-6e5f5f36.js +0 -5
- package/dist/bromcom-ui/p-74e6d2b6.js +0 -5
- package/dist/bromcom-ui/p-7e608148.entry.js +0 -5
- package/dist/bromcom-ui/p-8811428c.entry.js +0 -5
- package/dist/bromcom-ui/p-8e683b32.js +0 -5
- package/dist/bromcom-ui/p-8f76ddd6.entry.js +0 -5
- package/dist/bromcom-ui/p-9a906583.entry.js +0 -5
- package/dist/bromcom-ui/p-a2324032.entry.js +0 -5
- package/dist/bromcom-ui/p-a313fba6.js +0 -5
- package/dist/bromcom-ui/p-a959de89.entry.js +0 -5
- package/dist/bromcom-ui/p-ae57f046.entry.js +0 -5
- package/dist/bromcom-ui/p-c1d7db8f.entry.js +0 -5
- package/dist/bromcom-ui/p-d1298c40.js +0 -5
- package/dist/bromcom-ui/p-d5931cf3.entry.js +0 -5
- package/dist/bromcom-ui/p-e896ce94.entry.js +0 -5
- package/dist/bromcom-ui/p-e9c348e7.js +0 -5
- package/dist/bromcom-ui/p-ece578ef.entry.js +0 -5
- package/dist/bromcom-ui/p-f8a795ec.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-aafcc99c.js +0 -33
- package/dist/collection/components/atoms/divider/divider.css +0 -142
- 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/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-2cce19e1.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
package/dist/components/input.js
CHANGED
|
@@ -3,24 +3,25 @@
|
|
|
3
3
|
* Copyright (c) Bromcom.
|
|
4
4
|
*/
|
|
5
5
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
6
|
+
import { c as classnames } from './index2.js';
|
|
7
|
+
import { I as IsLoad } from './is-load-decorator.js';
|
|
6
8
|
import { G as Generate } from './generate.js';
|
|
7
|
-
import {
|
|
8
|
-
import { S as StringHelper } from './string-helper.js';
|
|
9
|
-
import { V as Validators } from './validators.js';
|
|
10
|
-
import { a as Bcm } from './bcm.js';
|
|
9
|
+
import { B as Bcm } from './bcm.js';
|
|
11
10
|
import { C as CaptionTemplate } from './caption-template.js';
|
|
12
|
-
import {
|
|
13
|
-
import
|
|
11
|
+
import { i as inputStyle } from './input.style.js';
|
|
12
|
+
import './element-dragger.js';
|
|
13
|
+
import { S as StringHelper } from './string-helper.js';
|
|
14
14
|
import { d as delay } from './utils.js';
|
|
15
|
-
import
|
|
15
|
+
import './color-helper.js';
|
|
16
|
+
import { V as Validators } from './popover.style.js';
|
|
17
|
+
import { N as NumberHelper } from './number-helper.js';
|
|
18
|
+
import { d as defaultIcons } from './types.js';
|
|
16
19
|
import { d as defineCustomElement$5 } from './colorful.js';
|
|
17
20
|
import { d as defineCustomElement$4 } from './icon.js';
|
|
18
21
|
import { d as defineCustomElement$3 } from './label.js';
|
|
19
22
|
import { d as defineCustomElement$2 } from './linked.js';
|
|
20
23
|
import { d as defineCustomElement$1 } from './tooltip.js';
|
|
21
24
|
|
|
22
|
-
const inputCss = "@import url(\"https://fonts.googleapis.com/css?family=Roboto:400,500\");@import url(\"https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap\"); .size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}.bcm-input[no-margin]{margin:0}.bcm-textarea[no-margin]{margin:0}.bcm-switch[no-margin]{margin:0}.bcm-checkbox[no-margin]{margin:0}.bcm-radio-group[no-margin]{margin:0}.bcm-checkbox-group[no-margin]{margin:0}.bcm-range[no-margin]{margin:0}.bcm-form[no-margin]{margin:0}.bcm-form-group[no-margin]{margin:0}.bcm-list[no-margin]{margin:0}.bcm-colorpicker[no-margin]{margin:0}.bcm-date-picker[no-margin]{margin:0}.bcm-time-picker[no-margin]{margin:0}.bcm-datetime-picker[no-margin]{margin:0}.bcm-select[no-margin]{margin:0}.bcm-listbox[no-margin]{margin:0}*{box-sizing:border-box}.bcm-input{display:inline-flex;flex-direction:column;width:100%;max-width:256px;margin-bottom:8px}.bcm-input.full-width{max-width:100%}.bcm-input.hidden{display:none}.bcm-input__container{font-family:\"Inter\", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;display:flex;align-items:stretch;flex-direction:row;background-color:var(--bcm-new-ds-color-white);border:1px solid var(--bcm-new-ds-color-slate-300);border-radius:4px;box-sizing:border-box;cursor:text;padding:0 0 0 4px;position:relative;width:100%}.bcm-input__container.disabled{background-color:var(--bcm-new-ds-color-slate-50);cursor:not-allowed}.bcm-input__container.disabled .bcm-input-element{color:var(--bcm-new-ds-color-slate-500)}.bcm-input__container.readonly{background-color:var(--bcm-new-ds-color-slate-50);cursor:default}.bcm-input__container.readonly .bcm-input-element{color:var(--bcm-new-ds-color-slate-600)}.bcm-input__container:not(.disabled):hover .caret-container,.bcm-input__container:not(.disabled).focused .caret-container{opacity:1}.bcm-input__container:not(.disabled):hover .input-clear-button,.bcm-input__container:not(.disabled).focused .input-clear-button{opacity:1}.bcm-input__container:not(.disabled).focused{background-color:var(--bcm-new-ds-color-slate-50)}.bcm-input__container:not(.disabled):hover{border-color:var(--bcm-color-prime-blue-6)}.bcm-input__container.empty .input-clear-button{display:none}.bcm-input__container.invalid,.bcm-input__container.error{border-color:var(--bcm-new-ds-color-red-500)}.bcm-input__container .bcm-input-element{width:100%;color:var(--bcm-new-ds-color-slate-600);flex:1;border:none;background:transparent;box-shadow:unset;padding:0 4px;font-family:\"Inter\", sans-serif;cursor:inherit;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;text-overflow:ellipsis}.bcm-input__container .bcm-input-element::placeholder{font-family:\"Inter\", sans-serif;color:var(--bcm-new-ds-color-slate-300);user-select:none}.bcm-input__container .bcm-input-element::-webkit-search-decoration,.bcm-input__container .bcm-input-element::-webkit-search-cancel-button,.bcm-input__container .bcm-input-element::-webkit-search-results-button,.bcm-input__container .bcm-input-element::-webkit-search-results-decoration,.bcm-input__container .bcm-input-element::-webkit-calendar-picker-indicator,.bcm-input__container .bcm-input-element::-webkit-inner-spin-button,.bcm-input__container .bcm-input-element::-webkit-outer-spin-button{-webkit-appearance:none}.bcm-input__container .caret-container{width:30px;display:flex;flex-direction:column;justify-content:center;align-items:stretch;border-left:1px solid #D9D9D9;transition:0.2s opacity;user-select:none;box-sizing:border-box}.bcm-input__container .caret-container .bcm-input-caret{display:flex;align-items:center;justify-content:center;color:var(--bcm-color-grey-7);cursor:pointer;flex:1}.bcm-input__container .caret-container .bcm-input-caret bcm-icon{line-height:1}.bcm-input__container .caret-container .bcm-input-caret:hover{color:var(--bcm-color-prime-blue-6)}.bcm-input__container .caret-container .bcm-input-caret:active{background-color:var(--bcm-color-grey-3)}.bcm-input__container .caret-container .bcm-input-caret:last-child{border-top:1px solid #D9D9D9}.bcm-input__container .caret-container.disabled{background-color:var(--bcm-color-grey-3)}.bcm-input__container .caret-container.disabled .bcm-input-caret{cursor:not-allowed}.bcm-input__container .input-suffix-content{display:flex;align-items:center;justify-content:center}.bcm-input__container .input-prefix:not(:empty){padding-left:4px}.bcm-input__container .input-suffix:not(:empty){min-width:24px;padding-right:4px}.bcm-input__container .input-prefix:not(:empty),.bcm-input__container .input-suffix:not(:empty){display:flex;align-items:center;justify-content:center;cursor:default;color:#64748a}.bcm-input__container .input-prefix:not(:empty) .unit-prefix,.bcm-input__container .input-suffix:not(:empty) .unit-prefix{color:#64748a}.bcm-input__container .input-prefix-button:not(:empty),.bcm-input__container .input-suffix-button:not(:empty){cursor:pointer}.bcm-input__container .caret-container,.bcm-input__container .input-clear-button{opacity:0}.bcm-input__container--small{font-size:12px}.bcm-input__container--medium{font-size:14px}.bcm-input__container--large{font-size:16px}.bcm-input__textarea.clearable .bcm-input-element{padding-right:24px}.bcm-input__textarea .input-clear-button{position:absolute;top:4px;right:0}";
|
|
23
|
-
|
|
24
25
|
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
25
26
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
26
27
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
@@ -43,7 +44,7 @@ const BcmInput = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
43
44
|
this.isBlur = false;
|
|
44
45
|
this._id = Generate.UID();
|
|
45
46
|
this._internal_id = Generate.UID();
|
|
46
|
-
this.value =
|
|
47
|
+
this.value = "";
|
|
47
48
|
this.size = Bcm.Size.medium;
|
|
48
49
|
this.label = undefined;
|
|
49
50
|
this.pattern = undefined;
|
|
@@ -59,10 +60,8 @@ const BcmInput = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
59
60
|
this.required = false;
|
|
60
61
|
this.fullWidth = false;
|
|
61
62
|
this.noDefaultIcon = undefined;
|
|
62
|
-
this.disableWatchValue = false
|
|
63
|
-
;
|
|
64
|
-
this.passwordToggle = false // type password
|
|
65
|
-
;
|
|
63
|
+
this.disableWatchValue = false;
|
|
64
|
+
this.passwordToggle = false;
|
|
66
65
|
this.maxLength = null;
|
|
67
66
|
this.minLength = null;
|
|
68
67
|
this.unitPrefix = null;
|
|
@@ -81,7 +80,7 @@ const BcmInput = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
81
80
|
this.captionCache = undefined;
|
|
82
81
|
this.captionTypeCache = undefined;
|
|
83
82
|
this.inValid = false;
|
|
84
|
-
this.valueCache =
|
|
83
|
+
this.valueCache = "";
|
|
85
84
|
this.focused = false;
|
|
86
85
|
this.isPasswordVisible = false;
|
|
87
86
|
}
|
|
@@ -223,8 +222,8 @@ const BcmInput = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
223
222
|
return false;
|
|
224
223
|
}
|
|
225
224
|
handleClear(e) {
|
|
226
|
-
this.inputElement.value =
|
|
227
|
-
this.value =
|
|
225
|
+
this.inputElement.value = "";
|
|
226
|
+
this.value = "";
|
|
228
227
|
this.inputElement.focus();
|
|
229
228
|
this.clear.emit(e);
|
|
230
229
|
this.change.emit(this.value);
|
|
@@ -384,56 +383,80 @@ const BcmInput = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
384
383
|
}
|
|
385
384
|
}
|
|
386
385
|
render() {
|
|
387
|
-
const { value, size, label, type, captionType, caption, captionError, placeholder, fullWidth, disabled, readonly, clearable, passwordToggle, isPasswordVisible, noDefaultIcon, unit, inValid, focused,
|
|
386
|
+
const { value, size, label, type, captionType, caption, captionError, placeholder, fullWidth, disabled, readonly, clearable, passwordToggle, isPasswordVisible, noDefaultIcon, unit, inValid, focused,
|
|
387
|
+
// unitPrefix,
|
|
388
|
+
noCaption, required, hidden, _id, autocomplete, _prefix, _suffix, } = this;
|
|
388
389
|
const isActiveClearable = (value === null || value === void 0 ? void 0 : value.length) > 0 && clearable;
|
|
389
|
-
const
|
|
390
|
+
const { host, inputContainer, input, slotClass, clearButton, controls, controlsBtn, controlsBtnDown, controlsBtnUp, controlsDivider } = inputStyle({
|
|
391
|
+
size,
|
|
392
|
+
fullWidth,
|
|
393
|
+
// şüpheli kısımlar
|
|
394
|
+
focused: focused,
|
|
395
|
+
clearable: isActiveClearable,
|
|
396
|
+
disabled,
|
|
397
|
+
readonly,
|
|
398
|
+
invalid: inValid,
|
|
399
|
+
unit: (unit === null || unit === void 0 ? void 0 : unit.length) > 0,
|
|
400
|
+
// 'empty': value?.length < 1,
|
|
401
|
+
error: captionType === "error",
|
|
390
402
|
hidden,
|
|
391
|
-
// 'no-margin': noMargin,
|
|
392
|
-
'full-width': fullWidth
|
|
393
403
|
});
|
|
394
|
-
|
|
404
|
+
let _type = type;
|
|
405
|
+
switch (type) {
|
|
406
|
+
case "password":
|
|
407
|
+
_type = isPasswordVisible ? "text" : "password";
|
|
408
|
+
break;
|
|
409
|
+
case "color":
|
|
410
|
+
_type = "text";
|
|
411
|
+
break;
|
|
412
|
+
case "number":
|
|
413
|
+
_type = (unit === null || unit === void 0 ? void 0 : unit.length) > 0 && !focused ? "text" : type;
|
|
414
|
+
break;
|
|
415
|
+
}
|
|
416
|
+
return (h(Host, { class: host(), onClick: () => this.onBcmFocus() }, label && h("bcm-label", { onClick: () => this.toggleLinked(), tooltip: this.tooltip, type: captionType, value: label, required: required, htmlFor: _id }), h("div", { class: inputContainer(), id: _id + "-container" }, type === "color" && (h("i", { class: "tw-flex tw-h-4 tw-w-4 tw-items-center tw-justify-center tw-rounded-full tw-border tw-border-slate-300", style: {
|
|
417
|
+
backgroundColor: value,
|
|
418
|
+
} })), h("div", { class: slotClass() }, h("slot", { name: "prefix" }), _prefix && _prefix.length > 0 && h("span", { innerHTML: _prefix })), h("input", { class: input(), id: _id + "-input", type: _type, value: value, pattern: this.pattern, placeholder: placeholder, disabled: disabled, readonly: readonly, onInput: _event => this.handleInput(), onChange: _event => this.handleChange(), onFocus: _event => this.handleFocus(), onBlur: _event => this.handleBlur(), autoComplete: autocomplete ? "on" : "off", required: required, ref: el => (this.inputElement = el) }), h("div", { class: slotClass() }, isActiveClearable && (h("button", { type: "button", class: clearButton(), onClick: event => this.handleClear(event) }, h("i", { class: "far fa-times" }))), h("slot", { name: "suffix" }), _suffix && _suffix.length > 0 && h("span", { innerHTML: _suffix }), (type === "password" || type === "text") && passwordToggle && (h("button", { type: "button", class: clearButton(), onClick: () => this.changePasswordVisibility() }, h("i", { class: isPasswordVisible ? "far fa-eye-slash" : "far fa-eye" }))), Object.keys(defaultIcons).includes(type) && !noDefaultIcon && (h("i", { class: defaultIcons[type] })), type === "number" && (h("div", { class: controls() }, h("button", { type: "button", onClick: () => this.stepUpOrDown("up"), class: classnames(controlsBtn(), controlsBtnUp()) }, h("i", { class: "fas fa-caret-up" })), h("div", { class: controlsDivider() }), h("button", { type: "button", onClick: () => this.stepUpOrDown("down"), class: classnames(controlsBtn(), controlsBtnDown()) }, h("i", { class: "fas fa-caret-down" })))), type === "color" && this.isEyeDropperSupported() && (h("button", { type: "button", class: clearButton(), onClick: () => this.eyeDropper() }, h("i", { class: "far fa-eye-dropper" }))))), h(CaptionTemplate, { noCaption: noCaption, captionType: captionType, captionError: captionError, caption: caption, customErrorMessage: this.customErrorMessage }), type == Bcm.InputType.color &&
|
|
395
419
|
h("bcm-linked", { targetId: this._id + "-container", id: this._id + "-linked" }, h("bcm-colorful", { id: this._id + "-picker", color: this.value, onBcmChange: e => this.setValue(e.detail) }))));
|
|
396
420
|
}
|
|
397
421
|
static get watchers() { return {
|
|
398
422
|
"value": ["watchValue"]
|
|
399
423
|
}; }
|
|
400
|
-
static get style() { return inputCss; }
|
|
401
424
|
}, [4, "bcm-input", {
|
|
402
|
-
"_id": [
|
|
403
|
-
"_internal_id": [
|
|
425
|
+
"_id": [513, "id"],
|
|
426
|
+
"_internal_id": [1],
|
|
404
427
|
"value": [1032],
|
|
405
|
-
"size": [
|
|
406
|
-
"label": [
|
|
407
|
-
"pattern": [
|
|
408
|
-
"tooltip": [
|
|
409
|
-
"placeholder": [
|
|
410
|
-
"disabled": [
|
|
411
|
-
"readonly": [
|
|
412
|
-
"clearable": [
|
|
413
|
-
"autocomplete": [
|
|
414
|
-
"name": [
|
|
415
|
-
"type": [
|
|
416
|
-
"hidden": [
|
|
417
|
-
"required": [
|
|
418
|
-
"fullWidth": [
|
|
419
|
-
"noDefaultIcon": [
|
|
420
|
-
"disableWatchValue": [
|
|
421
|
-
"passwordToggle": [
|
|
422
|
-
"maxLength": [
|
|
423
|
-
"minLength": [
|
|
424
|
-
"unitPrefix": [
|
|
425
|
-
"unit": [
|
|
426
|
-
"decimal": [
|
|
427
|
-
"min": [
|
|
428
|
-
"max": [
|
|
429
|
-
"step": [
|
|
428
|
+
"size": [1],
|
|
429
|
+
"label": [1],
|
|
430
|
+
"pattern": [1],
|
|
431
|
+
"tooltip": [1],
|
|
432
|
+
"placeholder": [1],
|
|
433
|
+
"disabled": [4],
|
|
434
|
+
"readonly": [4],
|
|
435
|
+
"clearable": [4],
|
|
436
|
+
"autocomplete": [4],
|
|
437
|
+
"name": [1],
|
|
438
|
+
"type": [1],
|
|
439
|
+
"hidden": [4],
|
|
440
|
+
"required": [4],
|
|
441
|
+
"fullWidth": [4, "full-width"],
|
|
442
|
+
"noDefaultIcon": [4, "no-default-icon"],
|
|
443
|
+
"disableWatchValue": [4, "disable-watch-value"],
|
|
444
|
+
"passwordToggle": [4, "password-toggle"],
|
|
445
|
+
"maxLength": [2, "max-length"],
|
|
446
|
+
"minLength": [2, "min-length"],
|
|
447
|
+
"unitPrefix": [1, "unit-prefix"],
|
|
448
|
+
"unit": [1],
|
|
449
|
+
"decimal": [4],
|
|
450
|
+
"min": [2],
|
|
451
|
+
"max": [2],
|
|
452
|
+
"step": [8],
|
|
430
453
|
"caption": [1025],
|
|
431
|
-
"noCaption": [
|
|
454
|
+
"noCaption": [4, "no-caption"],
|
|
432
455
|
"captionType": [1025, "caption-type"],
|
|
433
456
|
"captionError": [1025, "caption-error"],
|
|
434
|
-
"customErrorMessage": [
|
|
435
|
-
"_prefix": [
|
|
436
|
-
"_suffix": [
|
|
457
|
+
"customErrorMessage": [1, "custom-error-message"],
|
|
458
|
+
"_prefix": [1],
|
|
459
|
+
"_suffix": [1],
|
|
437
460
|
"captionCache": [32],
|
|
438
461
|
"captionTypeCache": [32],
|
|
439
462
|
"inValid": [32],
|
|
@@ -2,20 +2,21 @@
|
|
|
2
2
|
* Built with Stencil
|
|
3
3
|
* Copyright (c) Bromcom.
|
|
4
4
|
*/
|
|
5
|
-
import { c as ce } from './
|
|
5
|
+
import { c as ce } from './index4.js';
|
|
6
6
|
|
|
7
7
|
const inputStyle = ce({
|
|
8
8
|
slots: {
|
|
9
|
-
host: "bcm-
|
|
9
|
+
host: "bcm-input bcm-ui-element tw-inline-flex tw-flex-col tw-w-full tw-max-w-64 tw-mb-2 ",
|
|
10
10
|
base: "",
|
|
11
|
-
inputContainer: ["bcm-
|
|
11
|
+
inputContainer: ["bcm-input__container", "tw-bg-color-base tw-border tw-border-solid tw-border-color tw-rounded", "tw-flex tw-items-center tw-justify-between tw-gap-2", "tw-px-3"],
|
|
12
12
|
input: [
|
|
13
|
-
"bcm-
|
|
14
|
-
"tw-text-color
|
|
15
|
-
"
|
|
13
|
+
"bcm-input-element tw-w-full tw-h-full tw-flex-1 tw-outline-none tw-bg-transparent tw-border-0 tw-appearance-none tw-text-ellipsis",
|
|
14
|
+
"tw-text-color placeholder:tw-text-color-placeholder placeholder:tw-font-normal",
|
|
15
|
+
"tw-font-sans tw-antialiased tw-font-medium",
|
|
16
|
+
"[appearance:textfield][&::-webkit-search-decoration]:tw-appearance-none [&::-webkit-search-cancel-button]:tw-appearance-none [&::-webkit-search-results-button]:tw-appearance-none [&::-webkit-search-results-decoration]:tw-appearance-none [&::-webkit-calendar-picker-indicator]:tw-appearance-none [&::-webkit-inner-spin-button]:tw-appearance-none [&::-webkit-outer-spin-button]:tw-appearance-none",
|
|
16
17
|
],
|
|
17
18
|
slotClass: "tw-flex tw-items-center tw-justify-between tw-gap-2 empty:tw-hidden tw-text-color-placeholder",
|
|
18
|
-
clearButton: ["clear-button tw-cursor-pointer tw-appearance-none tw-border-0 tw-text-color-placeholder tw-text-size-inherit tw-bg-transparent tw-py-1 tw-px-2 -tw-mx-2", "hover:tw-text-color"],
|
|
19
|
+
clearButton: ["clear-button tw-cursor-pointer tw-appearance-none tw-border-0 tw-text-color-placeholder tw-text-size-inherit tw-bg-transparent tw-py-1 tw-px-2 -tw-mx-2 tw-w-8 tw-flex tw-items-center tw-justify-center", "hover:tw-text-color"],
|
|
19
20
|
controls: "number-controls -tw-mr-3 tw-flex tw-h-full tw-w-fit tw-flex-col tw-items-center tw-justify-between",
|
|
20
21
|
controlsBtn: [
|
|
21
22
|
"number-control-button tw-w-7 tw-flex-1 tw-cursor-pointer tw-appearance-none tw-border-0 tw-border-l tw-border-solid tw-border-color tw-bg-transparent tw-p-0 tw-text-2 tw-leading-none tw-text-color-placeholder",
|
|
@@ -27,19 +28,19 @@ const inputStyle = ce({
|
|
|
27
28
|
variants: {
|
|
28
29
|
size: {
|
|
29
30
|
small: {
|
|
30
|
-
host: "bcm-
|
|
31
|
+
host: "bcm-input__container--small",
|
|
31
32
|
inputContainer: "input2-size-small tw-h-6",
|
|
32
|
-
input: "tw-text-
|
|
33
|
+
input: "tw-text-size-4",
|
|
33
34
|
},
|
|
34
35
|
medium: {
|
|
35
|
-
host: "bcm-
|
|
36
|
+
host: "bcm-input__container--medium",
|
|
36
37
|
inputContainer: "input2-size-medium tw-h-8",
|
|
37
|
-
input: "tw-text-
|
|
38
|
+
input: "tw-text-size-5",
|
|
38
39
|
},
|
|
39
40
|
large: {
|
|
40
|
-
host: "bcm-
|
|
41
|
+
host: "bcm-input__container--large",
|
|
41
42
|
inputContainer: "input2-size-large tw-h-10",
|
|
42
|
-
input: "tw-text-
|
|
43
|
+
input: "tw-text-size-6",
|
|
43
44
|
},
|
|
44
45
|
},
|
|
45
46
|
fullWidth: {
|
|
@@ -76,7 +77,7 @@ const inputStyle = ce({
|
|
|
76
77
|
},
|
|
77
78
|
false: {
|
|
78
79
|
controlsBtn: "hover:tw-bg-color-base-hover hover:tw-text-color",
|
|
79
|
-
inputContainer: ["has-[:not([disabled]):focus]:tw-ring", "has-[:not([disabled]):hover]:tw-border-color-primaryInfo"],
|
|
80
|
+
inputContainer: ["has-[:not([disabled]):focus-visible]:tw-ring", "has-[:not([disabled]):hover]:tw-border-color-primaryInfo"],
|
|
80
81
|
},
|
|
81
82
|
},
|
|
82
83
|
readonly: {
|
|
@@ -87,7 +88,7 @@ const inputStyle = ce({
|
|
|
87
88
|
invalid: {
|
|
88
89
|
true: {
|
|
89
90
|
host: "invalid",
|
|
90
|
-
inputContainer: "tw-border-color-error has-[:not([disabled]):focus]:tw-ring-color-error has-[:not([disabled]):hover]:!tw-border-color-error",
|
|
91
|
+
inputContainer: "tw-border-color-error has-[:not([disabled]):focus-visible]:tw-ring-color-error has-[:not([disabled]):hover]:!tw-border-color-error",
|
|
91
92
|
},
|
|
92
93
|
},
|
|
93
94
|
unit: {
|
package/dist/components/label.js
CHANGED
|
@@ -5,18 +5,19 @@
|
|
|
5
5
|
import { h, proxyCustomElement, HTMLElement, Host } from '@stencil/core/internal/client';
|
|
6
6
|
import { I as IsLoad } from './is-load-decorator.js';
|
|
7
7
|
import { G as Generate } from './generate.js';
|
|
8
|
-
import {
|
|
8
|
+
import { B as Bcm } from './bcm.js';
|
|
9
9
|
import { c as classnames } from './index2.js';
|
|
10
10
|
import { d as defineCustomElement$2 } from './icon.js';
|
|
11
11
|
import { d as defineCustomElement$1 } from './tooltip.js';
|
|
12
12
|
|
|
13
|
-
const LabelTemplate = ({ required, value, size, form, htmlFor, type, tooltip }) => {
|
|
13
|
+
const LabelTemplate = ({ required, value, size, form, htmlFor, type, tooltip, noMargin }) => {
|
|
14
14
|
size = size || "medium";
|
|
15
15
|
type = type || Bcm.Status.default;
|
|
16
|
-
return (h("label", { form: form, htmlFor: htmlFor, "aria-hidden": "true", class: classnames("bcm-ui-element bcm-ui-feedback bcm-label bcm-label__text tw-
|
|
17
|
-
"tw-text-
|
|
18
|
-
"tw-text-
|
|
19
|
-
"tw-text-
|
|
16
|
+
return (h("label", { form: form, htmlFor: htmlFor, "aria-hidden": "true", class: classnames("bcm-ui-element bcm-ui-feedback bcm-label bcm-label__text tw-font-medium tw-text-color-label ", {
|
|
17
|
+
"tw-text-size-3": size == "small",
|
|
18
|
+
"tw-text-size-4": size == "medium",
|
|
19
|
+
"tw-text-size-5": size == "large",
|
|
20
|
+
"tw-mb-1": !noMargin,
|
|
20
21
|
}) },
|
|
21
22
|
value,
|
|
22
23
|
" ",
|
|
@@ -50,10 +51,11 @@ const BcmLabel = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
50
51
|
this.hidden = false;
|
|
51
52
|
this.type = Bcm.Status.default;
|
|
52
53
|
this.tooltip = undefined;
|
|
54
|
+
this.noMargin = false;
|
|
53
55
|
}
|
|
54
56
|
render() {
|
|
55
|
-
const { required, value, label, size, form, htmlFor, type, tooltip } = this;
|
|
56
|
-
return (h(Host, { class: "tw-inline-block tw-leading-none" }, h(LabelTemplate, { form: form, htmlFor: htmlFor, value: value || label, size: size, type: type, required: required, tooltip: tooltip })));
|
|
57
|
+
const { required, value, label, size, form, htmlFor, type, tooltip, noMargin } = this;
|
|
58
|
+
return (h(Host, { class: "tw-inline-block tw-leading-none" }, h(LabelTemplate, { form: form, htmlFor: htmlFor, value: value || label, size: size, type: type, required: required, tooltip: tooltip, noMargin: noMargin })));
|
|
57
59
|
}
|
|
58
60
|
get el() { return this; }
|
|
59
61
|
}, [0, "bcm-label", {
|
|
@@ -66,7 +68,8 @@ const BcmLabel = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
66
68
|
"htmlFor": [8, "html-for"],
|
|
67
69
|
"hidden": [4],
|
|
68
70
|
"type": [8],
|
|
69
|
-
"tooltip": [1]
|
|
71
|
+
"tooltip": [1],
|
|
72
|
+
"noMargin": [4, "no-margin"]
|
|
70
73
|
}]);
|
|
71
74
|
__decorate([
|
|
72
75
|
IsLoad()
|
package/dist/components/link.js
CHANGED
|
@@ -2,71 +2,115 @@
|
|
|
2
2
|
* Built with Stencil
|
|
3
3
|
* Copyright (c) Bromcom.
|
|
4
4
|
*/
|
|
5
|
-
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { d as defineCustomElement$1 } from './icon.js';
|
|
5
|
+
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
6
|
+
import { B as Bcm } from './bcm.js';
|
|
7
|
+
import { c as ce } from './index4.js';
|
|
9
8
|
|
|
10
|
-
const
|
|
9
|
+
const linkStyle = ce({
|
|
10
|
+
slots: {
|
|
11
|
+
base: ["bcm-link__anchor tw-flex tw-items-baseline tw-justify-center tw-gap-2 tw-no-underline", "tw-outline-none"],
|
|
12
|
+
hostStyle: "bcm-link bcm-ui-element bcm-ui-action tw-inline tw-w-fit",
|
|
13
|
+
},
|
|
14
|
+
variants: {
|
|
15
|
+
size: {
|
|
16
|
+
small: {
|
|
17
|
+
base: "tw-text-size-4 tw-font-medium",
|
|
18
|
+
},
|
|
19
|
+
medium: {
|
|
20
|
+
base: "tw-text-size-5 tw-font-medium",
|
|
21
|
+
},
|
|
22
|
+
large: {
|
|
23
|
+
base: "tw-text-size-6 tw-font-medium",
|
|
24
|
+
},
|
|
25
|
+
inherit: {
|
|
26
|
+
base: "",
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
disabled: {
|
|
30
|
+
true: {
|
|
31
|
+
base: "tw-cursor-not-allowed tw-pointer-events-none tw-text-color-disabled",
|
|
32
|
+
},
|
|
33
|
+
false: {
|
|
34
|
+
base: "tw-cursor-pointer tw-text-color-primary hover:tw-underline visited:tw-text-color-visited focus-visible:tw-ring",
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
defaultVariants: {
|
|
39
|
+
size: "medium",
|
|
40
|
+
disabled: false
|
|
41
|
+
},
|
|
42
|
+
});
|
|
11
43
|
|
|
12
44
|
const BcmLink = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
13
45
|
constructor() {
|
|
14
46
|
super();
|
|
15
47
|
this.__registerHost();
|
|
16
|
-
this.
|
|
48
|
+
this.bcmLinkClick = createEvent(this, "bcm-link-click", 7);
|
|
49
|
+
this.bcmClick = createEvent(this, "bcm-click", 7);
|
|
50
|
+
this.isLink = () => !!this.href;
|
|
51
|
+
this.isExternal = (url) => url && !!(url.startsWith("http") || url.startsWith("//"));
|
|
17
52
|
this.href = undefined;
|
|
18
|
-
this.target =
|
|
53
|
+
this.target = Bcm.Target["_blank"];
|
|
54
|
+
this.rel = "noreferrer noopener";
|
|
55
|
+
this.download = undefined;
|
|
19
56
|
this.icon = undefined;
|
|
20
57
|
this.disabled = false;
|
|
21
58
|
this.iconPosition = Bcm.IconPosition.prefix;
|
|
22
|
-
|
|
23
|
-
handleOnClick(e) {
|
|
24
|
-
if (this.disabled) {
|
|
25
|
-
e.preventDefault();
|
|
26
|
-
e.stopPropagation();
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
linkIsExternal(url) {
|
|
30
|
-
return url && !!(url.startsWith('http') || url.startsWith('//'));
|
|
59
|
+
this.size = Bcm.Size.medium;
|
|
31
60
|
}
|
|
32
61
|
render() {
|
|
33
|
-
const {
|
|
34
|
-
|
|
62
|
+
const { icon, iconPosition, disabled, size } = this;
|
|
63
|
+
/* Link Attributes */
|
|
64
|
+
const { href, target, rel, download } = this;
|
|
65
|
+
const linkAttributes = {
|
|
66
|
+
href: href,
|
|
67
|
+
target: target,
|
|
68
|
+
rel: rel,
|
|
69
|
+
download: download,
|
|
70
|
+
};
|
|
71
|
+
const commonAttributes = Object.assign(Object.assign({ "aria-label": "link" }, (!disabled && {
|
|
72
|
+
onClick: e => {
|
|
73
|
+
this.bcmLinkClick.emit(e);
|
|
74
|
+
this.bcmClick.emit(e);
|
|
75
|
+
},
|
|
76
|
+
})), (disabled && {
|
|
77
|
+
"disabled": true,
|
|
78
|
+
"aria-disabled": true,
|
|
79
|
+
"tabindex": -1,
|
|
80
|
+
"onClick": e => {
|
|
81
|
+
e.preventDefault();
|
|
82
|
+
e.stopPropagation();
|
|
83
|
+
},
|
|
84
|
+
}));
|
|
85
|
+
/* Tag */
|
|
86
|
+
const Tag = this.isLink() ? "a" : "span";
|
|
87
|
+
const { hostStyle, base } = linkStyle({
|
|
88
|
+
size,
|
|
35
89
|
disabled,
|
|
36
|
-
hidden
|
|
37
|
-
});
|
|
38
|
-
const classes = classnames('bcm-link__anchor', iconPosition, {
|
|
39
|
-
'suffix': this.linkIsExternal(href)
|
|
40
90
|
});
|
|
41
|
-
|
|
42
|
-
return (h(Host, { disabled: disabled, class: hostClasses }, h(ElementTagType, { class: classes, href: href, target: this.linkIsExternal(href) ? '_blank' : target }, icon && iconPosition === Bcm.IconPosition.prefix && h("bcm-icon", { class: "prefix-icon", icon: icon }), h("slot", null), this.linkIsExternal(href) && h("bcm-icon", { class: "suffix-icon", icon: "far fa-external-link-alt" }))));
|
|
91
|
+
return (h(Host, { class: hostStyle() }, h(Tag, Object.assign({ class: base() }, (this.isLink() ? linkAttributes : {}), commonAttributes), icon && iconPosition === Bcm.IconPosition.prefix && h("i", { class: icon }), h("slot", null), this.isExternal(href) && h("i", { class: "far fa-external-link-alt" }))));
|
|
43
92
|
}
|
|
44
|
-
get el() { return this; }
|
|
45
|
-
static get style() { return linkCss; }
|
|
46
93
|
}, [4, "bcm-link", {
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
|
|
94
|
+
"href": [1],
|
|
95
|
+
"target": [1],
|
|
96
|
+
"rel": [1],
|
|
97
|
+
"download": [1],
|
|
98
|
+
"icon": [1],
|
|
99
|
+
"disabled": [516],
|
|
100
|
+
"iconPosition": [1, "icon-position"],
|
|
101
|
+
"size": [1]
|
|
102
|
+
}]);
|
|
54
103
|
function defineCustomElement() {
|
|
55
104
|
if (typeof customElements === "undefined") {
|
|
56
105
|
return;
|
|
57
106
|
}
|
|
58
|
-
const components = ["bcm-link"
|
|
107
|
+
const components = ["bcm-link"];
|
|
59
108
|
components.forEach(tagName => { switch (tagName) {
|
|
60
109
|
case "bcm-link":
|
|
61
110
|
if (!customElements.get(tagName)) {
|
|
62
111
|
customElements.define(tagName, BcmLink);
|
|
63
112
|
}
|
|
64
113
|
break;
|
|
65
|
-
case "bcm-icon":
|
|
66
|
-
if (!customElements.get(tagName)) {
|
|
67
|
-
defineCustomElement$1();
|
|
68
|
-
}
|
|
69
|
-
break;
|
|
70
114
|
} });
|
|
71
115
|
}
|
|
72
116
|
|
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
6
6
|
import './color-helper.js';
|
|
7
|
-
import './
|
|
7
|
+
import './popover.style.js';
|
|
8
8
|
import { G as Generate } from './generate.js';
|
|
9
9
|
import './number-helper.js';
|
|
10
10
|
import './string-helper.js';
|
|
11
11
|
import './element-dragger.js';
|
|
12
12
|
import { d as delay } from './utils.js';
|
|
13
13
|
import { F as FloatingUI } from './floating-ui.js';
|
|
14
|
-
import {
|
|
14
|
+
import { a as Bcm } from './bcm.js';
|
|
15
15
|
|
|
16
16
|
const BcmLinked = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
17
17
|
constructor() {
|