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,35 +2,34 @@
|
|
|
2
2
|
* Built with Stencil
|
|
3
3
|
* Copyright (c) Bromcom.
|
|
4
4
|
*/
|
|
5
|
-
import { r as registerInstance, h as h$2, H as Host, g as getElement, c as createEvent, f as forceUpdate,
|
|
6
|
-
import { G as Generate, s as snq } from './generate-
|
|
5
|
+
import { r as registerInstance, h as h$2, H as Host, g as getElement, c as createEvent, a as getRenderingRef, f as forceUpdate, d as getAssetPath } from './index-15387314.js';
|
|
6
|
+
import { G as Generate, s as snq } from './generate-8470dd6c.js';
|
|
7
7
|
import { C as ColorHelper } from './color-helper-ba15b0d8.js';
|
|
8
8
|
import './datetime-helper-df25808a.js';
|
|
9
|
-
import { N as NumberHelper } from './number-helper-
|
|
10
|
-
import { S as StringHelper } from './string-helper-
|
|
11
|
-
import { V as Validators } from './
|
|
9
|
+
import { N as NumberHelper } from './number-helper-56061510.js';
|
|
10
|
+
import { S as StringHelper } from './string-helper-243b3e1d.js';
|
|
11
|
+
import { t as tooltipStyle, p as popoverStyle, V as Validators } from './popover.style-be349acc.js';
|
|
12
12
|
import './element-dragger-b75266e6.js';
|
|
13
|
-
import { B as Bcm, a as Bcm$1 } from './bcm-
|
|
13
|
+
import { B as Bcm, a as Bcm$1 } from './bcm-7f07539b.js';
|
|
14
14
|
import { c as classnames } from './index-00c8a8f7.js';
|
|
15
|
-
import { c as ce } from './index-
|
|
16
|
-
import { c as
|
|
17
|
-
import {
|
|
18
|
-
import
|
|
19
|
-
import { d as delay$1,
|
|
20
|
-
import { I as IsLoad } from './is-load-decorator-
|
|
21
|
-
import { L as LabelTemplate } from './label-template-ef97aadb.js';
|
|
15
|
+
import { c as ce } from './index-9f698d35.js';
|
|
16
|
+
import { c as checkboxStyle, d as defaultIcons$1 } from './types-ec7dcf4f.js';
|
|
17
|
+
import { C as CaptionTemplate } from './caption-template-56977835.js';
|
|
18
|
+
import './types-9493a7ed.js';
|
|
19
|
+
import { d as delay$1, p as pluralize, g as getChildElements, a as getChilds, e as extractColor, b as dropInComponent } from './utils-7727d09e.js';
|
|
20
|
+
import { I as IsLoad } from './is-load-decorator-5b0610df.js';
|
|
22
21
|
import { c as createCommonjsModule, a as commonjsGlobal, g as getAugmentedNamespace, b as getDefaultExportFromCjs } from './_commonjsHelpers-7002e5de.js';
|
|
23
22
|
import { r as react, a as reactDom, R as React } from './index-0d3a56ec.js';
|
|
24
|
-
import {
|
|
25
|
-
import './
|
|
26
|
-
import { F as FloatingUI } from './floating-ui-
|
|
27
|
-
import { g as getPlacement, s as setPosition } from './popover-placement-
|
|
23
|
+
import { i as inputStyle } from './input.style-fe41ebc8.js';
|
|
24
|
+
import { L as LabelTemplate } from './label-template-c7e70e5f.js';
|
|
25
|
+
import { F as FloatingUI } from './floating-ui-4016b544.js';
|
|
26
|
+
import { g as getPlacement, s as setPosition } from './popover-placement-6391b815.js';
|
|
27
|
+
import { S as SlotTemplate } from './slot-template-250f6ed4.js';
|
|
28
28
|
import { C as ColorPalette } from './colors-1d7854ea.js';
|
|
29
29
|
import { T as TypeProps, S as SizeProps, D as DirectionProps } from './types-b211a5eb.js';
|
|
30
|
-
import './package-
|
|
30
|
+
import './package-387afefd.js';
|
|
31
31
|
import './colors-ed4e7579.js';
|
|
32
|
-
|
|
33
|
-
const accordionCss = "@import url(\"https://fonts.googleapis.com/css?family=Roboto:400,500\");.size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}:host{display:block}";
|
|
32
|
+
import './floating-ui.dom.esm-40a07b59.js';
|
|
34
33
|
|
|
35
34
|
const BcmAccordion = class {
|
|
36
35
|
constructor(hostRef) {
|
|
@@ -83,11 +82,10 @@ const BcmAccordion = class {
|
|
|
83
82
|
}
|
|
84
83
|
}
|
|
85
84
|
render() {
|
|
86
|
-
return (h$2(Host, { id: this._id }, h$2("slot", null)));
|
|
85
|
+
return (h$2(Host, { id: this._id, class: "tw-block" }, h$2("slot", null)));
|
|
87
86
|
}
|
|
88
87
|
get el() { return getElement(this); }
|
|
89
88
|
};
|
|
90
|
-
BcmAccordion.style = accordionCss;
|
|
91
89
|
|
|
92
90
|
const attendanceCss = "@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}*{box-sizing:border-box}.bcm-attendance{width:fit-content;display:inline-flex;align-items:center;flex-direction:row;gap:4px}.bcm-attendance__item{display:flex;flex-direction:row;align-items:center;gap:1px}.bcm-attendance__item-am,.bcm-attendance__item-pm{display:block;width:calc( calc( 12px + 1px ) / 2 );height:calc( 12px + 1px );background-color:var(--bcm-new-ds-color-blue-500)}.bcm-attendance__item-am:hover,.bcm-attendance__item-pm:hover{background-color:var(--bcm-new-ds-color-blue-600)}.bcm-attendance__item-am{border-top-left-radius:100px;border-bottom-left-radius:100px}.bcm-attendance__item-pm{border-top-right-radius:100px;border-bottom-right-radius:100px}.bcm-attendance__item-status-present{background-color:var(--bcm-new-ds-color-emerald-500)}.bcm-attendance__item-status-present:hover{background-color:var(--bcm-new-ds-color-emerald-600)}.bcm-attendance__item-status-late{background-color:var(--bcm-new-ds-color-amber-500)}.bcm-attendance__item-status-late:hover{background-color:var(--bcm-new-ds-color-amber-600)}.bcm-attendance__item-status-absent{background-color:var(--bcm-new-ds-color-red-500)}.bcm-attendance__item-status-absent:hover{background-color:var(--bcm-new-ds-color-red-600)}.bcm-attendance__item-status-default{background-color:var(--bcm-new-ds-color-slate-300)}.bcm-attendance__item-status-default:hover{background-color:var(--bcm-new-ds-color-slate-400)}";
|
|
93
91
|
|
|
@@ -164,18 +162,6 @@ class Tooltip {
|
|
|
164
162
|
this.removeListener();
|
|
165
163
|
};
|
|
166
164
|
this.target = () => document.getElementById(this.targetId);
|
|
167
|
-
this.sizeClass = () => {
|
|
168
|
-
switch (this.size) {
|
|
169
|
-
case Bcm.Size.small:
|
|
170
|
-
return "tw-text-1";
|
|
171
|
-
case Bcm.Size.medium:
|
|
172
|
-
return "tw-text-2";
|
|
173
|
-
case Bcm.Size.large:
|
|
174
|
-
return "tw-text-3";
|
|
175
|
-
default:
|
|
176
|
-
return "tw-text-2";
|
|
177
|
-
}
|
|
178
|
-
};
|
|
179
165
|
this.init = () => {
|
|
180
166
|
const { tone, colorName } = ColorHelper.parseColor(this.color, 700);
|
|
181
167
|
const dc = Generate.getTwColor({
|
|
@@ -186,10 +172,10 @@ class Tooltip {
|
|
|
186
172
|
variable: "--bcm-tooltip",
|
|
187
173
|
});
|
|
188
174
|
const style = Object.assign(Object.assign({}, dc), (dc["--bcm-tooltip-bg"] && { "--bcm-tooltip-text": ColorHelper.reverseColor(dc["--bcm-tooltip-bg"]) }));
|
|
175
|
+
const { tooltip } = tooltipStyle({ size: this.size });
|
|
189
176
|
this.el = Generate.createElement("div", {
|
|
190
177
|
"id": `${this.targetId}-tooltip-box`,
|
|
191
|
-
"class":
|
|
192
|
-
tw-whitespace-normal tw-break-words tw-block tw-font-sans tw-pointer-events-none tw-max-w-xs tw-py-1 tw-px-2 tw-rounded tw-bg-[--bcm-tooltip-bg] tw-text-[--bcm-tooltip-text] ${this.sizeClass()} tw-absolute tw-top-0 tw-left-0 tw-z-tooltip tw-opacity-0 tw-transition-opacity tw-duration-300`,
|
|
178
|
+
"class": tooltip(),
|
|
193
179
|
"role": "tooltip",
|
|
194
180
|
"aria-hidden": "true",
|
|
195
181
|
"style": ColorHelper.generateStyleString(style),
|
|
@@ -293,6 +279,139 @@ class Tooltip {
|
|
|
293
279
|
}
|
|
294
280
|
}
|
|
295
281
|
|
|
282
|
+
class Popover {
|
|
283
|
+
constructor({ content, message, targetId, placement = "top", color = "slate-700", trigger = "none", openDelay = 0, closeDelay = 0, autoHide = false, emitShow = () => { }, emitHide = () => { } }) {
|
|
284
|
+
this.destroy = () => {
|
|
285
|
+
this.el = document.getElementById(this.id);
|
|
286
|
+
if (this.el) {
|
|
287
|
+
this.el.remove();
|
|
288
|
+
this.emitHide();
|
|
289
|
+
}
|
|
290
|
+
this.removeListener();
|
|
291
|
+
};
|
|
292
|
+
this.target = () => document.getElementById(this.targetId);
|
|
293
|
+
this.init = () => {
|
|
294
|
+
const { tone, colorName } = ColorHelper.parseColor(this.color, 700);
|
|
295
|
+
const dc = Generate.getTwColor({
|
|
296
|
+
color: colorName,
|
|
297
|
+
tones: {
|
|
298
|
+
[tone]: ["bg"],
|
|
299
|
+
},
|
|
300
|
+
variable: "--bcm-popover",
|
|
301
|
+
});
|
|
302
|
+
const style = Object.assign(Object.assign({}, dc), (dc["--bcm-popover-bg"] && { "--bcm-popover-text": ColorHelper.reverseColor(dc["--bcm-popover-bg"]) }));
|
|
303
|
+
const { popover, messageStyle, contentStyle, dividerStyle } = popoverStyle({ size: "medium" });
|
|
304
|
+
const inner = `<div class="tw-z-[1] tw-rounded-md">
|
|
305
|
+
${this.message ? `<div class="${messageStyle()}">${StringHelper.trim(this.message)}</div>` : ""}
|
|
306
|
+
${this.message && this.content ? `<div class="${dividerStyle()}"></div>` : ""}
|
|
307
|
+
${this.content ? `<div class="${contentStyle()}">${StringHelper.trim(this.content)}</div>` : ""}
|
|
308
|
+
</div>`;
|
|
309
|
+
this.el = Generate.createElement("div", {
|
|
310
|
+
"id": `${this.targetId}-popover-box`,
|
|
311
|
+
"class": popover(),
|
|
312
|
+
"role": "popover",
|
|
313
|
+
"aria-hidden": "true",
|
|
314
|
+
"style": ColorHelper.generateStyleString(style),
|
|
315
|
+
"innerHTML": inner,
|
|
316
|
+
});
|
|
317
|
+
};
|
|
318
|
+
this.update = () => {
|
|
319
|
+
this.el = document.getElementById(this.id);
|
|
320
|
+
if (this.el) {
|
|
321
|
+
this.hide();
|
|
322
|
+
this.show();
|
|
323
|
+
}
|
|
324
|
+
};
|
|
325
|
+
this.listener = () => {
|
|
326
|
+
window.addEventListener("resize", this.calculatePosition.bind(this));
|
|
327
|
+
window.addEventListener("scroll", this.calculatePosition.bind(this), true);
|
|
328
|
+
window.addEventListener("wheel", this.calculatePosition.bind(this));
|
|
329
|
+
if (this.trigger && this.target()) {
|
|
330
|
+
switch (this.trigger) {
|
|
331
|
+
case "click":
|
|
332
|
+
this.target().addEventListener("click", this.toggle.bind(this));
|
|
333
|
+
this.autoHide && this.target().addEventListener("mouseleave", this.hide.bind(this));
|
|
334
|
+
break;
|
|
335
|
+
case "hover":
|
|
336
|
+
this.target().addEventListener("mouseenter", this.show.bind(this));
|
|
337
|
+
this.target().addEventListener("mouseleave", this.hide.bind(this));
|
|
338
|
+
break;
|
|
339
|
+
case "focus":
|
|
340
|
+
this.target().addEventListener("focus", this.show.bind(this), true);
|
|
341
|
+
this.target().addEventListener("blur", this.hide.bind(this), true);
|
|
342
|
+
break;
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
this.calculatePosition();
|
|
346
|
+
};
|
|
347
|
+
this.removeListener = () => {
|
|
348
|
+
window.removeEventListener("resize", this.calculatePosition.bind(this));
|
|
349
|
+
window.removeEventListener("scroll", this.calculatePosition.bind(this), true);
|
|
350
|
+
window.removeEventListener("wheel", this.calculatePosition.bind(this));
|
|
351
|
+
if (this.target()) {
|
|
352
|
+
this.target().removeEventListener("click", this.toggle.bind(this));
|
|
353
|
+
this.target().removeEventListener("mouseenter", this.show.bind(this));
|
|
354
|
+
this.target().removeEventListener("mouseleave", this.hide.bind(this));
|
|
355
|
+
this.target().removeEventListener("focus", this.show.bind(this), true);
|
|
356
|
+
this.target().removeEventListener("blur", this.hide.bind(this), true);
|
|
357
|
+
}
|
|
358
|
+
};
|
|
359
|
+
this.calculatePosition = () => {
|
|
360
|
+
this.el = document.getElementById(this.id);
|
|
361
|
+
if (this.el) {
|
|
362
|
+
FloatingUI({
|
|
363
|
+
ref: this.target(),
|
|
364
|
+
floating: this.el,
|
|
365
|
+
placement: this.placement,
|
|
366
|
+
offset: 8,
|
|
367
|
+
arrow: true,
|
|
368
|
+
arrowColor: `tw-bg-[--bcm-popover-bg]`,
|
|
369
|
+
});
|
|
370
|
+
}
|
|
371
|
+
};
|
|
372
|
+
this.show = async () => {
|
|
373
|
+
if (this.message || this.content) {
|
|
374
|
+
this.init();
|
|
375
|
+
await delay$1(this.openDelay);
|
|
376
|
+
this.calculatePosition();
|
|
377
|
+
this.emitShow();
|
|
378
|
+
}
|
|
379
|
+
else {
|
|
380
|
+
this.hide();
|
|
381
|
+
}
|
|
382
|
+
};
|
|
383
|
+
this.hide = async () => {
|
|
384
|
+
this.el = document.getElementById(this.id);
|
|
385
|
+
if (this.el) {
|
|
386
|
+
await delay$1(this.closeDelay);
|
|
387
|
+
this.el.remove();
|
|
388
|
+
this.emitHide();
|
|
389
|
+
}
|
|
390
|
+
};
|
|
391
|
+
this.toggle = () => {
|
|
392
|
+
this.el = document.getElementById(this.id);
|
|
393
|
+
if (this.el) {
|
|
394
|
+
this.hide();
|
|
395
|
+
}
|
|
396
|
+
else {
|
|
397
|
+
this.show();
|
|
398
|
+
}
|
|
399
|
+
};
|
|
400
|
+
this.content = content;
|
|
401
|
+
this.message = message;
|
|
402
|
+
this.targetId = targetId;
|
|
403
|
+
this.placement = placement;
|
|
404
|
+
this.color = color;
|
|
405
|
+
this.trigger = trigger;
|
|
406
|
+
this.id = targetId + "-popover-box";
|
|
407
|
+
this.openDelay = openDelay;
|
|
408
|
+
this.closeDelay = closeDelay;
|
|
409
|
+
this.autoHide = autoHide;
|
|
410
|
+
this.emitShow = emitShow;
|
|
411
|
+
this.emitHide = emitHide;
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
|
|
296
415
|
// --bcm-attendance-actions-button-bg: #F1F5F9; /* slate-100 */
|
|
297
416
|
// --bcm-attendance-actions-button-text: #334155; /* slate-700 */
|
|
298
417
|
// --bcm-attendance-actions-button-border: #CBD5E1; /* slate-300 */
|
|
@@ -599,15 +718,15 @@ BcmAttendanceActions.style = attendanceActionsCss;
|
|
|
599
718
|
|
|
600
719
|
const avatarStyle = ce({
|
|
601
720
|
slots: {
|
|
602
|
-
base: "bcm-avatar bcm-ui-element bcm-ui-content-display tw-uppercase tw-inline-flex tw-items-center tw-justify-center tw-bg-[--bcm-avatar-bg] tw-text-[--bcm-avatar-text]",
|
|
721
|
+
base: "bcm-avatar bcm-ui-element bcm-ui-content-display tw-uppercase tw-font-medium tw-inline-flex tw-items-center tw-justify-center tw-bg-[--bcm-avatar-bg] tw-text-[--bcm-avatar-text]",
|
|
603
722
|
image: "tw-w-full tw-h-full",
|
|
604
723
|
badge: "",
|
|
605
724
|
},
|
|
606
725
|
variants: {
|
|
607
726
|
size: {
|
|
608
|
-
small: "bcm-avatar__size-small tw-text-
|
|
609
|
-
medium: "bcm-avatar__size-medium tw-text-
|
|
610
|
-
large: "bcm-avatar__size-large tw-text-
|
|
727
|
+
small: "bcm-avatar__size-small tw-text-size-4 tw-w-6 tw-h-6",
|
|
728
|
+
medium: "bcm-avatar__size-medium tw-text-size-5 tw-w-8 tw-h-8",
|
|
729
|
+
large: "bcm-avatar__size-large tw-text-size-6 tw-w-10 tw-h-10",
|
|
611
730
|
},
|
|
612
731
|
shape: {
|
|
613
732
|
ellipse: {
|
|
@@ -616,8 +735,8 @@ const avatarStyle = ce({
|
|
|
616
735
|
badge: "tw-top-0 tw-right-0",
|
|
617
736
|
},
|
|
618
737
|
square: {
|
|
619
|
-
base: "bcm-avatar__shape-square tw-rounded",
|
|
620
|
-
image: "tw-rounded",
|
|
738
|
+
base: "bcm-avatar__shape-square tw-rounded-[--bcm-ui-radius]",
|
|
739
|
+
image: "tw-rounded-[--bcm-ui-radius]",
|
|
621
740
|
badge: "tw--top-0.5 tw--right-0.5",
|
|
622
741
|
},
|
|
623
742
|
},
|
|
@@ -635,6 +754,8 @@ const avatarStyle = ce({
|
|
|
635
754
|
},
|
|
636
755
|
});
|
|
637
756
|
|
|
757
|
+
const avatarCss = "@import url(\"https://fonts.googleapis.com/css?family=Roboto:400,500\");.size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}:root{--bcm-avatar-bg:var(--bcm-ui-color-background);--bcm-avatar-text:var(--bcm-ui-color-text);--bcm-avatar-radius:50%}";
|
|
758
|
+
|
|
638
759
|
const BcmAvatar = class {
|
|
639
760
|
constructor(hostRef) {
|
|
640
761
|
registerInstance(this, hostRef);
|
|
@@ -656,7 +777,7 @@ const BcmAvatar = class {
|
|
|
656
777
|
return initials.substring(0, 2);
|
|
657
778
|
}
|
|
658
779
|
renderDefaultIcon() {
|
|
659
|
-
return h$2("
|
|
780
|
+
return h$2("i", { class: this.icon });
|
|
660
781
|
}
|
|
661
782
|
render() {
|
|
662
783
|
const { shape, size, status, color, blink } = this;
|
|
@@ -664,7 +785,7 @@ const BcmAvatar = class {
|
|
|
664
785
|
const dc = Generate.getTwColor({
|
|
665
786
|
color: color,
|
|
666
787
|
tones: {
|
|
667
|
-
|
|
788
|
+
100: ["bg"],
|
|
668
789
|
700: ["text"],
|
|
669
790
|
},
|
|
670
791
|
variable: "--bcm-avatar",
|
|
@@ -673,7 +794,7 @@ const BcmAvatar = class {
|
|
|
673
794
|
? {
|
|
674
795
|
width: `${size}px`,
|
|
675
796
|
height: `${size}px`,
|
|
676
|
-
fontSize: `${+size /
|
|
797
|
+
fontSize: `${+size / 2}px`,
|
|
677
798
|
}
|
|
678
799
|
: {};
|
|
679
800
|
const RenderContent = () => {
|
|
@@ -699,6 +820,7 @@ const BcmAvatar = class {
|
|
|
699
820
|
}
|
|
700
821
|
get el() { return getElement(this); }
|
|
701
822
|
};
|
|
823
|
+
BcmAvatar.style = avatarCss;
|
|
702
824
|
|
|
703
825
|
const badgeStyle = ce({
|
|
704
826
|
slots: {
|
|
@@ -708,26 +830,26 @@ const badgeStyle = ce({
|
|
|
708
830
|
"tw-flex tw-items-center tw-justify-center tw-flex-row",
|
|
709
831
|
"tw-rounded-full tw-text-center",
|
|
710
832
|
"tw-bg-[--bcm-badge-bg] tw-text-[--bcm-badge-text]",
|
|
711
|
-
"tw-whitespace-nowrap",
|
|
833
|
+
"tw-whitespace-nowrap tw-font-medium",
|
|
712
834
|
],
|
|
713
835
|
dotText: "empty:tw-hidden",
|
|
714
836
|
},
|
|
715
837
|
variants: {
|
|
716
838
|
size: {
|
|
717
839
|
small: {
|
|
718
|
-
host: "tw-text-
|
|
719
|
-
base: "bcm-badge__dot-size-small
|
|
720
|
-
dotText: "tw-px-1
|
|
840
|
+
host: "tw-text-size-3 tw-gap-1",
|
|
841
|
+
base: "bcm-badge__dot-size-small tw-min-w-1.5 tw-min-h-1.5",
|
|
842
|
+
dotText: "tw-px-1 tw-min-w-4",
|
|
721
843
|
},
|
|
722
844
|
medium: {
|
|
723
|
-
host: "tw-text-
|
|
724
|
-
base: "bcm-badge__dot-size-medium
|
|
725
|
-
dotText: "tw-px-1.5 tw-min-w-
|
|
845
|
+
host: "tw-text-size-4 tw-gap-1.5",
|
|
846
|
+
base: "bcm-badge__dot-size-medium tw-min-w-2 tw-min-h-2",
|
|
847
|
+
dotText: "tw-px-1.5 tw-py-0.5 tw-min-w-6",
|
|
726
848
|
},
|
|
727
849
|
large: {
|
|
728
|
-
host: "tw-text-
|
|
729
|
-
base: "bcm-badge__dot-size-large
|
|
730
|
-
dotText: "tw-px-2 tw-min-w-
|
|
850
|
+
host: "tw-text-size-5 tw-gap-2",
|
|
851
|
+
base: "bcm-badge__dot-size-large tw-min-w-2.5 tw-min-h-2.5",
|
|
852
|
+
dotText: "tw-px-2 tw-py-1 tw-min-w-8",
|
|
731
853
|
},
|
|
732
854
|
},
|
|
733
855
|
blink: {
|
|
@@ -747,6 +869,8 @@ const badgeStyle = ce({
|
|
|
747
869
|
},
|
|
748
870
|
});
|
|
749
871
|
|
|
872
|
+
const badgeCss = "@import url(\"https://fonts.googleapis.com/css?family=Roboto:400,500\");.size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}:root{--bcm-badge-bg:var(--bcm-ui-color-background);--bcm-badge-text:var(--bcm-ui-color-text)}";
|
|
873
|
+
|
|
750
874
|
const BcmBadge = class {
|
|
751
875
|
constructor(hostRef) {
|
|
752
876
|
registerInstance(this, hostRef);
|
|
@@ -780,6 +904,92 @@ const BcmBadge = class {
|
|
|
780
904
|
}
|
|
781
905
|
get el() { return getElement(this); }
|
|
782
906
|
};
|
|
907
|
+
BcmBadge.style = badgeCss;
|
|
908
|
+
|
|
909
|
+
const buttonStyle = ce({
|
|
910
|
+
slots: {
|
|
911
|
+
base: "",
|
|
912
|
+
hostStyle: "bcm-button bcm-ui-element bcm-ui-action tw-w-fit tw-relative tw-inline-block",
|
|
913
|
+
containerStyle: ["bcm-button__container tw-button-reset", "tw-font-medium tw-no-underline", "tw-flex tw-items-center tw-justify-center tw-gap-2", "tw-rounded-[--bcm-button-radius] tw-border tw-border-solid"],
|
|
914
|
+
iconStyle: "",
|
|
915
|
+
textStyle: "empty:tw-hidden tw-flex tw-items-center tw-justify-center tw-gap-2",
|
|
916
|
+
},
|
|
917
|
+
variants: {
|
|
918
|
+
size: {
|
|
919
|
+
small: {
|
|
920
|
+
containerStyle: ["bcm-button__container-size-small", "tw-text-size-4 tw-py-px tw-px-2", "tw-min-h-6"],
|
|
921
|
+
},
|
|
922
|
+
medium: {
|
|
923
|
+
containerStyle: ["bcm-button__container-size-medium", "tw-text-size-5 tw-py-0.5 tw-px-3", "tw-min-h-8"],
|
|
924
|
+
},
|
|
925
|
+
large: {
|
|
926
|
+
containerStyle: ["bcm-button__container-size-large", "tw-text-size-6 tw-py-1 tw-px-3", "tw-min-h-10"],
|
|
927
|
+
},
|
|
928
|
+
},
|
|
929
|
+
kind: {
|
|
930
|
+
solid: {
|
|
931
|
+
containerStyle: "bcm-button__container-kind-solid",
|
|
932
|
+
},
|
|
933
|
+
ghost: {
|
|
934
|
+
containerStyle: "bcm-button__container-kind-ghost",
|
|
935
|
+
},
|
|
936
|
+
link: {
|
|
937
|
+
containerStyle: ["bcm-button__container-kind-link"],
|
|
938
|
+
},
|
|
939
|
+
outline: {
|
|
940
|
+
containerStyle: "bcm-button__container-kind-outline",
|
|
941
|
+
},
|
|
942
|
+
},
|
|
943
|
+
fullWidth: {
|
|
944
|
+
true: {
|
|
945
|
+
containerStyle: "full-width tw-w-full",
|
|
946
|
+
hostStyle: "full-width tw-w-full",
|
|
947
|
+
},
|
|
948
|
+
},
|
|
949
|
+
checked: {
|
|
950
|
+
true: {
|
|
951
|
+
containerStyle: "checked !tw-bg-[--bcm-button-bg-active]",
|
|
952
|
+
},
|
|
953
|
+
},
|
|
954
|
+
disabled: {
|
|
955
|
+
true: {
|
|
956
|
+
containerStyle: "disabled tw-cursor-not-allowed",
|
|
957
|
+
},
|
|
958
|
+
false: {
|
|
959
|
+
containerStyle: [
|
|
960
|
+
"tw-cursor-pointer",
|
|
961
|
+
"tw-bg-[--bcm-button-bg] tw-text-[--bcm-button-text] tw-border-[--bcm-button-border]",
|
|
962
|
+
"hover:tw-bg-[--bcm-button-bg-hover] hover:tw-text-[--bcm-button-text-hover] hover:tw-border-[--bcm-button-border-hover]",
|
|
963
|
+
"active:tw-bg-[--bcm-button-bg-active] active:tw-text-[--bcm-button-text-active] active:tw-border-[--bcm-button-border-active]",
|
|
964
|
+
"focus-visible:tw-ring",
|
|
965
|
+
],
|
|
966
|
+
},
|
|
967
|
+
},
|
|
968
|
+
},
|
|
969
|
+
compoundVariants: [
|
|
970
|
+
{
|
|
971
|
+
disabled: true,
|
|
972
|
+
kind: ["solid", "ghost"],
|
|
973
|
+
class: {
|
|
974
|
+
containerStyle: "tw-bg-color-disabled tw-text-color-disabled tw-border-color-disabled",
|
|
975
|
+
},
|
|
976
|
+
},
|
|
977
|
+
{
|
|
978
|
+
disabled: true,
|
|
979
|
+
kind: ["link"],
|
|
980
|
+
class: {
|
|
981
|
+
containerStyle: "tw-text-color-disabled tw-border-transparent tw-bg-transparent",
|
|
982
|
+
},
|
|
983
|
+
},
|
|
984
|
+
],
|
|
985
|
+
defaultVariants: {
|
|
986
|
+
size: "medium",
|
|
987
|
+
kind: "solid",
|
|
988
|
+
fullWidth: false,
|
|
989
|
+
checked: false,
|
|
990
|
+
disabled: false,
|
|
991
|
+
},
|
|
992
|
+
});
|
|
783
993
|
|
|
784
994
|
const variantOptions = {
|
|
785
995
|
save: {
|
|
@@ -948,183 +1158,138 @@ var VariantProps;
|
|
|
948
1158
|
VariantProps["download"] = "download";
|
|
949
1159
|
})(VariantProps || (VariantProps = {}));
|
|
950
1160
|
|
|
951
|
-
const {
|
|
952
|
-
value: new Map(),
|
|
953
|
-
setData: {},
|
|
954
|
-
removeData: {}
|
|
955
|
-
});
|
|
956
|
-
const setValue$4 = (val) => {
|
|
957
|
-
const data = Object.assign(Object.assign({}, val), (variantOptions[val.variant] && {
|
|
958
|
-
icon: variantOptions[val.variant].icon,
|
|
959
|
-
value: variantOptions[val.variant].text,
|
|
960
|
-
iconPosition: Bcm$1.IconPosition[variantOptions[val.variant].iconPosition],
|
|
961
|
-
variantColor: variantOptions[val.variant].color
|
|
962
|
-
}));
|
|
963
|
-
state$4.value.set(data.id, data);
|
|
964
|
-
};
|
|
965
|
-
const removeValue$2 = (_id) => {
|
|
966
|
-
state$4.value.delete(_id);
|
|
967
|
-
};
|
|
968
|
-
const getValue$4 = (id) => snq(() => state$4.value.get(id), {});
|
|
969
|
-
const buttonState = {
|
|
970
|
-
setValue: setValue$4,
|
|
971
|
-
removeValue: removeValue$2,
|
|
972
|
-
getValue: getValue$4
|
|
973
|
-
};
|
|
974
|
-
|
|
975
|
-
const ButtonTemplate = ({ value, type, componentClass, disabled, href, target, loading, isIconOnly, icon, iconPosition, id }) => {
|
|
976
|
-
const ButtonTagType = (href) ? Bcm$1.HtmlElementType.a : Bcm$1.HtmlElementType.button;
|
|
977
|
-
return (h$2(ButtonTagType, Object.assign({ id: id }, (type == Bcm$1.HtmlElementType.button && { type }), { class: componentClass, disabled: disabled, href: href, target: target, tabindex: "0", "aria-label": "button" }),
|
|
978
|
-
h$2("span", { hidden: true },
|
|
979
|
-
h$2("slot", null)),
|
|
980
|
-
loading && h$2("span", { class: "bcm-button__container-loading" },
|
|
981
|
-
" ",
|
|
982
|
-
h$2("span", { class: "bcm-button__container-icon" },
|
|
983
|
-
h$2("i", { class: "far fa-spinner-third fa-spin" }),
|
|
984
|
-
" ")),
|
|
985
|
-
icon && h$2("span", { class: `${iconPosition} bcm-button__container-icon` },
|
|
986
|
-
h$2("i", { class: `${icon}` })),
|
|
987
|
-
!isIconOnly && (h$2(SlotTemplate, { className: "bcm-button__container-text", value: value })),
|
|
988
|
-
h$2("slot", { name: "suffix" })));
|
|
989
|
-
};
|
|
990
|
-
|
|
991
|
-
const buttonCss = "@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}*{box-sizing:border-box}.bcm-button{display:inline-flex;width:fit-content;height:fit-content;--bcm-button-solid-color-default:var(--bcm-new-ds-color-white);--bcm-button-solid-background-color-default:var(--bcm-new-ds-color-blue-700);--bcm-button-solid-border-default:var(--bcm-new-ds-color-blue-700);--bcm-button-solid-color-hover:var(--bcm-new-ds-color-white);--bcm-button-solid-background-color-hover:var(--bcm-new-ds-color-blue-800);--bcm-button-solid-border-hover:var(--bcm-new-ds-color-blue-800);--bcm-button-solid-color-focus-visible:var(--bcm-new-ds-color-white);--bcm-button-solid-background-color-focus-visible:var(--bcm-new-ds-color-blue-900);--bcm-button-solid-border-focus-visible:var(--bcm-new-ds-color-blue-900);--bcm-button-solid-color-active:var(--bcm-new-ds-color-white);--bcm-button-solid-background-color-active:var(--bcm-new-ds-color-blue-900);--bcm-button-solid-border-active:var(--bcm-new-ds-color-blue-900);--bcm-button-solid-color-disabled:var(--bcm-new-ds-color-white);--bcm-button-solid-background-color-disabled:var(--bcm-new-ds-color-slate-400);--bcm-button-solid-border-disabled:var(--bcm-new-ds-color-slate-400);--bcm-button-ghost-color-default:var(--bcm-new-ds-color-slate-700);--bcm-button-ghost-background-color-default:var(--bcm-new-ds-color-slate-100);--bcm-button-ghost-border-default:var(--bcm-new-ds-color-slate-300);--bcm-button-ghost-color-hover:var(--bcm-new-ds-color-slate-700);--bcm-button-ghost-background-color-hover:var(--bcm-new-ds-color-slate-200);--bcm-button-ghost-border-hover:var(--bcm-new-ds-color-slate-400);--bcm-button-ghost-color-focus-visible:var(--bcm-new-ds-color-slate-700);--bcm-button-ghost-background-color-focus-visible:var(--bcm-new-ds-color-slate-400);--bcm-button-ghost-border-focus-visible:var(--bcm-new-ds-color-slate-600);--bcm-button-ghost-color-active:var(--bcm-new-ds-color-slate-700);--bcm-button-ghost-background-color-active:var(--bcm-new-ds-color-slate-300);--bcm-button-ghost-border-active:var(--bcm-new-ds-color-slate-500);--bcm-button-ghost-color-disabled:var(--bcm-new-ds-color-slate-300);--bcm-button-ghost-background-color-disabled:var(--bcm-new-ds-color-slate-50);--bcm-button-ghost-border-disabled:var(--bcm-new-ds-color-slate-200);--bcm-button-link-color-default:var(--bcm-new-ds-color-blue-700);--bcm-button-link-background-color-default:var(--bcm-new-ds-color-transparent);--bcm-button-link-border-default:var(--bcm-new-ds-color-transparent);--bcm-button-link-color-hover:var(--bcm-new-ds-color-blue-600);--bcm-button-link-background-color-hover:var(--bcm-new-ds-color-transparent);--bcm-button-link-border-hover:var(--bcm-new-ds-color-transparent);--bcm-button-link-color-focus-visible:var(--bcm-new-ds-color-blue-800);--bcm-button-link-background-color-focus-visible:var(--bcm-new-ds-color-slate-50);--bcm-button-link-border-focus-visible:var(--bcm-new-ds-color-slate-50);--bcm-button-link-color-active:var(--bcm-new-ds-color-blue-700);--bcm-button-link-background-color-active:var(--bcm-new-ds-color-slate-50);--bcm-button-link-border-active:var(--bcm-new-ds-color-slate-50);--bcm-button-link-color-disabled:var(--bcm-new-ds-color-slate-400);--bcm-button-link-background-color-disabled:var(--bcm-new-ds-color-transparent);--bcm-button-link-border-disabled:var(--bcm-new-ds-color-transparent);--bcm-button-ghost-link-color-default:var(--bcm-new-ds-color-slate-700);--bcm-button-ghost-link-background-color-default:var(--bcm-new-ds-color-transparent);--bcm-button-ghost-link-border-default:var(--bcm-new-ds-color-transparent);--bcm-button-ghost-link-color-hover:var(--bcm-new-ds-color-slate-700);--bcm-button-ghost-link-background-color-hover:var(--bcm-new-ds-color-slate-200);--bcm-button-ghost-link-border-hover:var(--bcm-new-ds-color-transparent);--bcm-button-ghost-link-color-focus-visible:var(--bcm-new-ds-color-slate-700);--bcm-button-ghost-link-background-color-focus-visible:var(--bcm-new-ds-color-slate-300);--bcm-button-ghost-link-border-focus-visible:var(--bcm-new-ds-color-transparent);--bcm-button-ghost-link-color-active:var(--bcm-new-ds-color-slate-700);--bcm-button-ghost-link-background-color-active:var(--bcm-new-ds-color-slate-300);--bcm-button-ghost-link-border-active:var(--bcm-new-ds-color-transparent);--bcm-button-ghost-link-color-disabled:var(--bcm-new-ds-color-slate-500);--bcm-button-ghost-link-background-color-disabled:var(--bcm-new-ds-color-transparent);--bcm-button-ghost-link-border-disabled:var(--bcm-new-ds-color-transparent)}.bcm-button.full-width{width:100%}.bcm-button.full-width .bcm-button__container{width:100%}.bcm-button:after,.bcm-button:before{content:\"\";clear:both}.bcm-button__container{border:none;color:inherit;background-color:inherit;padding:0;margin:0;font:inherit;cursor:pointer;outline:none;text-decoration:none;font-family:\"Inter\", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;font-weight:500;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:4px 12px;outline:none;border-radius:4px;transition:background-color 0.1s ease-in-out;position:relative;min-width:40px;border-width:1px;border-style:solid;border-color:initial}.bcm-button__container:hover,.bcm-button__container:focus,.bcm-button__container:active{outline:none;text-decoration:none}.bcm-button__container-loading{position:absolute;top:0;left:0;width:100%;height:100%;border-radius:4px;display:flex;align-items:center;justify-content:center}.bcm-button__container-kind-solid{color:var(--bcm-button-solid-color-default);background-color:var(--bcm-button-solid-background-color-default);border-color:var(--bcm-button-solid-border-default)}.bcm-button__container-kind-solid:hover{color:var(--bcm-button-solid-color-hover);background-color:var(--bcm-button-solid-background-color-hover);border-color:var(--bcm-button-solid-border-hover)}.bcm-button__container-kind-solid:focus-visible{color:var(--bcm-button-solid-color-focus-visible);background-color:var(--bcm-button-solid-background-color-focus-visible);border-color:var(--bcm-button-solid-border-focus-visible)}.bcm-button__container-kind-solid:active{color:var(--bcm-button-solid-color-active);background-color:var(--bcm-button-solid-background-color-active);border-color:var(--bcm-button-solid-border-active)}.bcm-button__container-kind-solid:disabled{color:var(--bcm-button-solid-color-disabled);background-color:var(--bcm-button-solid-background-color-disabled);border-color:var(--bcm-button-solid-border-disabled)}.bcm-button__container-kind-solid.checked{color:var(--bcm-button-solid-color-active);background-color:var(--bcm-button-solid-background-color-active);border-color:var(--bcm-button-solid-border-active)}.bcm-button__container-kind-solid.disabled{color:var(--bcm-button-solid-color-disabled);background-color:var(--bcm-button-solid-background-color-disabled);border-color:var(--bcm-button-solid-border-disabled)}.bcm-button__container-kind-solid .bcm-button__container-loading{color:var(--bcm-button-solid-color-default);background-color:var(--bcm-button-solid-background-color-default);border-color:var(--bcm-button-solid-border-default)}.bcm-button__container-kind-ghost{color:var(--bcm-button-ghost-color-default);background-color:var(--bcm-button-ghost-background-color-default);border-color:var(--bcm-button-ghost-border-default)}.bcm-button__container-kind-ghost:not([disabled]) .bcm-icon{color:var(--bcm-new-ds-color-slate-500)}.bcm-button__container-kind-ghost:hover{color:var(--bcm-button-ghost-color-hover);background-color:var(--bcm-button-ghost-background-color-hover);border-color:var(--bcm-button-ghost-border-hover)}.bcm-button__container-kind-ghost:focus-visible{color:var(--bcm-button-ghost-color-focus-visible);background-color:var(--bcm-button-ghost-background-color-focus-visible);border-color:var(--bcm-button-ghost-border-focus-visible)}.bcm-button__container-kind-ghost:active{color:var(--bcm-button-ghost-color-active);background-color:var(--bcm-button-ghost-background-color-active);border-color:var(--bcm-button-ghost-border-active)}.bcm-button__container-kind-ghost:disabled{color:var(--bcm-button-ghost-color-disabled);background-color:var(--bcm-button-ghost-background-color-disabled);border-color:var(--bcm-button-ghost-border-disabled)}.bcm-button__container-kind-ghost.checked{color:var(--bcm-button-ghost-color-active);background-color:var(--bcm-button-ghost-background-color-active);border-color:var(--bcm-button-ghost-border-active)}.bcm-button__container-kind-ghost.disabled{color:var(--bcm-button-ghost-color-disabled);background-color:var(--bcm-button-ghost-background-color-disabled);border-color:var(--bcm-button-ghost-border-disabled)}.bcm-button__container-kind-ghost .bcm-button__container-loading{color:var(--bcm-button-ghost-color-default);background-color:var(--bcm-button-ghost-background-color-default);border-color:var(--bcm-button-ghost-border-default)}.bcm-button__container-kind-link{color:var(--bcm-button-link-color-default);background-color:var(--bcm-button-link-background-color-default);border-color:var(--bcm-button-link-border-default)}.bcm-button__container-kind-link:hover{color:var(--bcm-button-link-color-hover);background-color:var(--bcm-button-link-background-color-hover);border-color:var(--bcm-button-link-border-hover)}.bcm-button__container-kind-link:focus-visible{color:var(--bcm-button-link-color-focus-visible);background-color:var(--bcm-button-link-background-color-focus-visible);border-color:var(--bcm-button-link-border-focus-visible)}.bcm-button__container-kind-link:active{color:var(--bcm-button-link-color-active);background-color:var(--bcm-button-link-background-color-active);border-color:var(--bcm-button-link-border-active)}.bcm-button__container-kind-link:disabled{color:var(--bcm-button-link-color-disabled);background-color:var(--bcm-button-link-background-color-disabled);border-color:var(--bcm-button-link-border-disabled)}.bcm-button__container-kind-link.checked{color:var(--bcm-button-link-color-active);background-color:var(--bcm-button-link-background-color-active);border-color:var(--bcm-button-link-border-active)}.bcm-button__container-kind-link.disabled{color:var(--bcm-button-link-color-disabled);background-color:var(--bcm-button-link-background-color-disabled);border-color:var(--bcm-button-link-border-disabled)}.bcm-button__container-kind-link .bcm-button__container-loading{color:var(--bcm-button-link-color-default);background-color:var(--bcm-button-link-background-color-default);border-color:var(--bcm-button-link-border-default)}.bcm-button__container-kind-ghost-link{color:var(--bcm-button-ghost-link-color-default);background-color:var(--bcm-button-ghost-link-background-color-default);border-color:var(--bcm-button-ghost-link-border-default)}.bcm-button__container-kind-ghost-link:hover{color:var(--bcm-button-ghost-link-color-hover);background-color:var(--bcm-button-ghost-link-background-color-hover);border-color:var(--bcm-button-ghost-link-border-hover)}.bcm-button__container-kind-ghost-link:focus-visible{color:var(--bcm-button-ghost-link-color-focus-visible);background-color:var(--bcm-button-ghost-link-background-color-focus-visible);border-color:var(--bcm-button-ghost-link-border-focus-visible)}.bcm-button__container-kind-ghost-link:active{color:var(--bcm-button-ghost-link-color-active);background-color:var(--bcm-button-ghost-link-background-color-active);border-color:var(--bcm-button-ghost-link-border-active)}.bcm-button__container-kind-ghost-link:disabled{color:var(--bcm-button-ghost-link-color-disabled);background-color:var(--bcm-button-ghost-link-background-color-disabled);border-color:var(--bcm-button-ghost-link-border-disabled)}.bcm-button__container-kind-ghost-link.checked{color:var(--bcm-button-ghost-link-color-active);background-color:var(--bcm-button-ghost-link-background-color-active);border-color:var(--bcm-button-ghost-link-border-active)}.bcm-button__container-kind-ghost-link.disabled{color:var(--bcm-button-ghost-link-color-disabled);background-color:var(--bcm-button-ghost-link-background-color-disabled);border-color:var(--bcm-button-ghost-link-border-disabled)}.bcm-button__container-kind-ghost-link .bcm-button__container-loading{color:var(--bcm-button-ghost-link-color-default);background-color:var(--bcm-button-ghost-link-background-color-default);border-color:var(--bcm-button-ghost-link-border-default)}.bcm-button__container[disabled]{cursor:not-allowed}.bcm-button__container-text{order:3;display:flex;align-items:center;gap:8px;white-space:nowrap}.bcm-button__container-icon{min-height:calc(12px + 8px)}.bcm-button__container-icon.prefix{order:2}.bcm-button__container-icon.suffix{order:4}.bcm-button__container-size-small{font-size:12px;line-height:calc(12px + 8px);padding:calc(4px - 3px) 12px;min-height:calc(calc(12px + 8px) + calc(calc(4px - 2px)) * 2)}.bcm-button__container-size-small .bcm-button__container-icon{min-height:calc(12px + 8px)}.bcm-button__container-size-medium{font-size:calc(12px + 1px);line-height:calc(12px + 8px);padding:calc(4px + 1px) 12px;min-height:calc(calc(12px + 8px) + calc(calc(4px + 2px)) * 2)}.bcm-button__container-size-medium .bcm-button__container-icon{min-height:calc(12px + 8px)}.bcm-button__container-size-large{font-size:16px;line-height:calc(16px + 8px);padding:calc(8px - 1px) 12px;min-height:calc(calc(16px + 8px) + (calc(8px) * 2))}.bcm-button__container-size-large .bcm-button__container-icon{min-height:calc(16px + 8px)}";
|
|
1161
|
+
const buttonCss = "@import url(\"https://fonts.googleapis.com/css?family=Roboto:400,500\");.size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}:root{--bcm-button-bg:var(--bcm-ui-color-background-primary-info-default);--bcm-button-bg-hover:var(--bcm-ui-color-background-primary-info-hover);--bcm-button-bg-active:var(--bcm-ui-color-background-primary-info-active);--bcm-button-text:var(--bcm-ui-color-text-base);--bcm-button-text-hover:var(--bcm-ui-color-text-base);--bcm-button-text-active:var(--bcm-ui-color-text-base);--bcm-button-border:var(--bcm-ui-color-background-primary-info-default);--bcm-button-border-hover:var(--bcm-ui-color-background-primary-info-hover);--bcm-button-border-active:var(--bcm-ui-color-background-primary-info-active);--bcm-button-radius:var(--bcm-ui-radius)}";
|
|
992
1162
|
|
|
993
1163
|
const BcmButton = class {
|
|
994
1164
|
constructor(hostRef) {
|
|
995
1165
|
registerInstance(this, hostRef);
|
|
1166
|
+
this.bcmButtonClick = createEvent(this, "bcm-button-click", 7);
|
|
996
1167
|
this.bcmClick = createEvent(this, "bcm-click", 7);
|
|
997
|
-
|
|
998
|
-
this.
|
|
1168
|
+
// isLink returns true if the button should be rendered as a link
|
|
1169
|
+
this.isLink = () => !!this.href;
|
|
999
1170
|
this.type = Bcm$1.ButtonType.button;
|
|
1171
|
+
this.form = undefined;
|
|
1172
|
+
this.formAction = undefined;
|
|
1173
|
+
this.formMethod = undefined;
|
|
1174
|
+
this.formEnctype = undefined;
|
|
1175
|
+
this.formTarget = undefined;
|
|
1176
|
+
this.formNoValidate = undefined;
|
|
1177
|
+
this.href = undefined;
|
|
1178
|
+
this.target = Bcm$1.Target["_blank"];
|
|
1179
|
+
this.rel = "noreferrer noopener";
|
|
1180
|
+
this.download = undefined;
|
|
1181
|
+
this._id = Generate.UID();
|
|
1182
|
+
this.value = undefined;
|
|
1183
|
+
this.name = undefined;
|
|
1184
|
+
this.variant = undefined;
|
|
1185
|
+
this.dataDismiss = false;
|
|
1186
|
+
this.color = undefined;
|
|
1187
|
+
this.checked = false;
|
|
1000
1188
|
this.size = Bcm$1.Size.medium;
|
|
1001
1189
|
this.disabled = false;
|
|
1190
|
+
this.hidden = false;
|
|
1002
1191
|
this.kind = Bcm$1.Kind.solid;
|
|
1003
1192
|
this.outline = false;
|
|
1193
|
+
this.filled = true;
|
|
1004
1194
|
this.icon = undefined;
|
|
1005
|
-
this.href = undefined;
|
|
1006
|
-
this.target = undefined;
|
|
1007
|
-
this.value = undefined;
|
|
1008
1195
|
this.loading = false;
|
|
1009
|
-
this.
|
|
1010
|
-
this.dataDismiss = false;
|
|
1196
|
+
this.text = undefined;
|
|
1011
1197
|
this.fullWidth = false;
|
|
1012
1198
|
this.iconPosition = Bcm$1.IconPosition.prefix;
|
|
1013
|
-
this.color = undefined;
|
|
1014
|
-
this.checked = false;
|
|
1015
1199
|
}
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
const {
|
|
1025
|
-
|
|
1026
|
-
|
|
1200
|
+
render() {
|
|
1201
|
+
/* style definitions */
|
|
1202
|
+
const { color, kind, size, variant, fullWidth, outline } = this;
|
|
1203
|
+
/* Common Attributes */
|
|
1204
|
+
const { value, name, dataDismiss, disabled, loading, icon, iconPosition, text } = this;
|
|
1205
|
+
/* Button Attributes */
|
|
1206
|
+
const { type, form, formAction, formMethod, formEnctype, formTarget, formNoValidate, checked } = this;
|
|
1207
|
+
/* Link Attributes */
|
|
1208
|
+
const { href, target, rel, download } = this;
|
|
1209
|
+
/* Tag */
|
|
1210
|
+
const Tag = this.isLink() ? "a" : "button";
|
|
1211
|
+
const buttonKind = outline ? "ghost" : kind;
|
|
1212
|
+
const variantExists = variant && variantOptions[variant];
|
|
1213
|
+
const buttonText = text || value || (variantExists && variantOptions[variant].text);
|
|
1214
|
+
const buttonIcon = icon || (variantExists && variantOptions[variant].icon);
|
|
1215
|
+
const buttonIconPosition = iconPosition || (variantExists && variantOptions[variant].iconPosition);
|
|
1216
|
+
/* if kind is ghost, color is overridden. */
|
|
1217
|
+
const buttonAttributes = {
|
|
1218
|
+
"type": type,
|
|
1219
|
+
"form": form,
|
|
1220
|
+
"formaction": formAction,
|
|
1221
|
+
"formmethod": formMethod,
|
|
1222
|
+
"formenctype": formEnctype,
|
|
1223
|
+
"formtarget": formTarget,
|
|
1224
|
+
"formnovalidate": formNoValidate,
|
|
1225
|
+
"value": value,
|
|
1226
|
+
"name": name,
|
|
1227
|
+
"data-dismiss": dataDismiss,
|
|
1228
|
+
"data-checked": checked,
|
|
1229
|
+
};
|
|
1230
|
+
const linkAttributes = {
|
|
1231
|
+
href: href,
|
|
1232
|
+
target: target,
|
|
1233
|
+
rel: rel,
|
|
1234
|
+
download: download,
|
|
1235
|
+
};
|
|
1236
|
+
const commonAttributes = Object.assign(Object.assign({ "aria-label": buttonText || "button" }, (!disabled && {
|
|
1237
|
+
onClick: e => {
|
|
1238
|
+
this.bcmButtonClick.emit(e);
|
|
1239
|
+
this.bcmClick.emit(e);
|
|
1240
|
+
},
|
|
1241
|
+
})), (disabled && {
|
|
1242
|
+
"disabled": true,
|
|
1243
|
+
"aria-disabled": true,
|
|
1244
|
+
"tabindex": -1,
|
|
1245
|
+
"onClick": e => {
|
|
1246
|
+
e.preventDefault();
|
|
1247
|
+
e.stopPropagation();
|
|
1248
|
+
},
|
|
1249
|
+
}));
|
|
1250
|
+
const { hostStyle, containerStyle, textStyle } = buttonStyle({
|
|
1027
1251
|
size,
|
|
1028
|
-
|
|
1029
|
-
kind,
|
|
1030
|
-
icon,
|
|
1031
|
-
iconPosition,
|
|
1032
|
-
disabled,
|
|
1033
|
-
outline,
|
|
1034
|
-
href,
|
|
1035
|
-
target,
|
|
1036
|
-
loading,
|
|
1037
|
-
variant,
|
|
1252
|
+
kind: buttonKind,
|
|
1038
1253
|
fullWidth,
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
isIconOnly: !!(this.isHaveChildNodes() && this.icon),
|
|
1042
|
-
});
|
|
1043
|
-
}
|
|
1044
|
-
getStateData() {
|
|
1045
|
-
return buttonState.getValue(this._id);
|
|
1046
|
-
}
|
|
1047
|
-
isHaveChildNodes() {
|
|
1048
|
-
const childNodes = Array.from(this.el.childNodes);
|
|
1049
|
-
return childNodes.find(node => node.nodeType === Node.TEXT_NODE) === undefined;
|
|
1050
|
-
}
|
|
1051
|
-
setColor(color = this.color) {
|
|
1052
|
-
if (!color)
|
|
1053
|
-
return;
|
|
1054
|
-
const { kind } = this;
|
|
1055
|
-
const prefix = `--bcm-button-${kind}`;
|
|
1056
|
-
if (kind === 'solid') {
|
|
1057
|
-
return {
|
|
1058
|
-
[`${prefix}-color-default`]: ColorHelper.dsColor('white'),
|
|
1059
|
-
[`${prefix}-color-hover`]: ColorHelper.dsColor('white'),
|
|
1060
|
-
[`${prefix}-color-focus-visible`]: ColorHelper.dsColor('white'),
|
|
1061
|
-
[`${prefix}-color-active`]: ColorHelper.dsColor('white'),
|
|
1062
|
-
[`${prefix}-color-disabled`]: ColorHelper.dsColor('white'),
|
|
1063
|
-
[`${prefix}-background-color-default`]: ColorHelper.dsColor(color + '-700'),
|
|
1064
|
-
[`${prefix}-background-color-hover`]: ColorHelper.dsColor(color + '-800'),
|
|
1065
|
-
[`${prefix}-background-color-focus-visible`]: ColorHelper.dsColor(color + '-900'),
|
|
1066
|
-
[`${prefix}-background-color-active`]: ColorHelper.dsColor(color + '-900'),
|
|
1067
|
-
[`${prefix}-background-color-disabled`]: ColorHelper.dsColor('slate-400'),
|
|
1068
|
-
[`${prefix}-border-default`]: ColorHelper.dsColor(color + '-700'),
|
|
1069
|
-
[`${prefix}-border-hover`]: ColorHelper.dsColor(color + '-800'),
|
|
1070
|
-
[`${prefix}-border-focus-visible`]: ColorHelper.dsColor(color + '-900'),
|
|
1071
|
-
[`${prefix}-border-active`]: ColorHelper.dsColor(color + '-900'),
|
|
1072
|
-
[`${prefix}-border-disabled`]: ColorHelper.dsColor('slate-400')
|
|
1073
|
-
};
|
|
1074
|
-
}
|
|
1075
|
-
else if (kind == 'link') {
|
|
1076
|
-
return {
|
|
1077
|
-
[`${prefix}-color-default`]: ColorHelper.dsColor(color + '-700'),
|
|
1078
|
-
[`${prefix}-color-hover`]: ColorHelper.dsColor(color + '-800'),
|
|
1079
|
-
[`${prefix}-color-focus-visible`]: ColorHelper.dsColor(color + '-900'),
|
|
1080
|
-
[`${prefix}-color-active`]: ColorHelper.dsColor(color + '-900'),
|
|
1081
|
-
[`${prefix}-color-disabled`]: ColorHelper.dsColor('slate-400'),
|
|
1082
|
-
[`${prefix}-background-color-default`]: ColorHelper.dsColor('transparent'),
|
|
1083
|
-
[`${prefix}-background-color-hover`]: ColorHelper.dsColor('transparent'),
|
|
1084
|
-
[`${prefix}-background-color-focus-visible`]: ColorHelper.dsColor('slate-50'),
|
|
1085
|
-
[`${prefix}-background-color-active`]: ColorHelper.dsColor('slate-50'),
|
|
1086
|
-
[`${prefix}-background-color-disabled`]: ColorHelper.dsColor('transparent'),
|
|
1087
|
-
[`${prefix}-border-default`]: ColorHelper.dsColor('transparent'),
|
|
1088
|
-
[`${prefix}-border-hover`]: ColorHelper.dsColor('transparent'),
|
|
1089
|
-
[`${prefix}-border-focus-visible`]: ColorHelper.dsColor('slate-50'),
|
|
1090
|
-
[`${prefix}-border-active`]: ColorHelper.dsColor('slate-50'),
|
|
1091
|
-
[`${prefix}-border-disabled`]: ColorHelper.dsColor('transparent')
|
|
1092
|
-
};
|
|
1093
|
-
}
|
|
1094
|
-
else if (kind == 'ghost') {
|
|
1095
|
-
return {
|
|
1096
|
-
[`${prefix}-color-default`]: ColorHelper.dsColor(color + '-700'),
|
|
1097
|
-
[`${prefix}-color-hover`]: ColorHelper.dsColor(color + '-800'),
|
|
1098
|
-
[`${prefix}-color-focus-visible`]: ColorHelper.dsColor(color + '-600'),
|
|
1099
|
-
[`${prefix}-color-active`]: ColorHelper.dsColor(color + '-600'),
|
|
1100
|
-
[`${prefix}-color-disabled`]: ColorHelper.dsColor(color + '-300'),
|
|
1101
|
-
[`${prefix}-background-color-default`]: ColorHelper.dsColor(color + '-100'),
|
|
1102
|
-
[`${prefix}-background-color-hover`]: ColorHelper.dsColor(color + '-200'),
|
|
1103
|
-
[`${prefix}-background-color-focus-visible`]: ColorHelper.dsColor(color + '-400'),
|
|
1104
|
-
[`${prefix}-background-color-active`]: ColorHelper.dsColor(color + '-300'),
|
|
1105
|
-
[`${prefix}-background-color-disabled`]: ColorHelper.dsColor(color + '-50'),
|
|
1106
|
-
[`${prefix}-border-default`]: ColorHelper.dsColor(color + '-300'),
|
|
1107
|
-
[`${prefix}-border-hover`]: ColorHelper.dsColor(color + '-400'),
|
|
1108
|
-
[`${prefix}-border-focus-visible`]: ColorHelper.dsColor(color + '-600'),
|
|
1109
|
-
[`${prefix}-border-active`]: ColorHelper.dsColor(color + '-500'),
|
|
1110
|
-
[`${prefix}-border-disabled`]: ColorHelper.dsColor(color + '-200'),
|
|
1111
|
-
};
|
|
1112
|
-
}
|
|
1113
|
-
return;
|
|
1114
|
-
}
|
|
1115
|
-
render() {
|
|
1116
|
-
const { size, kind, disabled, outline, type, href, target, loading, variantColor, fullWidth, hidden, icon, iconPosition, value, isIconOnly, iconSize } = this.getStateData();
|
|
1117
|
-
const classPrefix = 'bcm-button';
|
|
1118
|
-
let componentClass = classnames('bcm-button__container', `bcm-button__container-size-${size}`, `bcm-button__container-kind-${outline ? 'ghost' : kind}`, {
|
|
1119
|
-
'full-width': fullWidth,
|
|
1120
|
-
'checked': this.checked,
|
|
1121
|
-
'disabled': disabled,
|
|
1254
|
+
checked: this.checked,
|
|
1255
|
+
disabled,
|
|
1122
1256
|
});
|
|
1123
|
-
const
|
|
1124
|
-
|
|
1125
|
-
|
|
1257
|
+
const tones = {
|
|
1258
|
+
solid: {
|
|
1259
|
+
"white": ["text", "text-hover", "text-active"],
|
|
1260
|
+
"700": ["bg", "border"],
|
|
1261
|
+
"800": ["bg-hover", "border-hover"],
|
|
1262
|
+
"900": ["bg-active", "border-active"],
|
|
1263
|
+
},
|
|
1264
|
+
ghost: {
|
|
1265
|
+
"700": ["text"],
|
|
1266
|
+
"800": ["text-hover"],
|
|
1267
|
+
"900": ["text-active"],
|
|
1268
|
+
"100": ["bg"],
|
|
1269
|
+
"200": ["bg-hover"],
|
|
1270
|
+
"300": ["bg-active", "border"],
|
|
1271
|
+
"400": ["border-hover"],
|
|
1272
|
+
"500": ["border-active"],
|
|
1273
|
+
},
|
|
1274
|
+
link: {
|
|
1275
|
+
"transparent": ["bg", "bg-hover", "bg-active", "border", "border-hover", "border-active"],
|
|
1276
|
+
"700": ["text"],
|
|
1277
|
+
"800": ["text-hover"],
|
|
1278
|
+
"900": ["text-active"],
|
|
1279
|
+
},
|
|
1280
|
+
};
|
|
1281
|
+
const buttonColor = {
|
|
1282
|
+
solid: color || (variantExists && variantOptions[variant].color),
|
|
1283
|
+
ghost: "slate",
|
|
1284
|
+
link: color || (variantExists && variantOptions[variant].color) || "blue",
|
|
1285
|
+
};
|
|
1286
|
+
const dc = Generate.getTwColor({
|
|
1287
|
+
color: buttonColor[buttonKind],
|
|
1288
|
+
tones: tones[buttonKind],
|
|
1289
|
+
variable: `--bcm-button`,
|
|
1126
1290
|
});
|
|
1127
|
-
|
|
1291
|
+
const style = Object.assign({}, dc);
|
|
1292
|
+
return (h$2(Host, { class: hostStyle(), style: style }, h$2(Tag, Object.assign({ class: containerStyle() }, commonAttributes, (this.isLink() ? linkAttributes : buttonAttributes)), h$2("slot", { name: "prefix" }), buttonIcon && (h$2("span", { class: `${buttonIconPosition == "suffix" ? "tw-order-1" : "tw-order-0"} bcm-button__container-icon` }, h$2("i", { class: `${buttonIcon}` }))), h$2("span", { class: textStyle() }, h$2("slot", null, buttonText)), h$2("slot", { name: "suffix" }), loading && (h$2("div", { class: "tw-absolute tw-inset-0 tw-flex tw-items-center tw-justify-center tw-rounded-[--bcm-button-radius] tw-bg-inherit" }, h$2("i", { class: "far fa-spinner-third fa-spin" }))))));
|
|
1128
1293
|
}
|
|
1129
1294
|
get el() { return getElement(this); }
|
|
1130
1295
|
};
|
|
@@ -1204,18 +1369,139 @@ const BcmButtonGroup = class {
|
|
|
1204
1369
|
};
|
|
1205
1370
|
BcmButtonGroup.style = buttonGroupCss;
|
|
1206
1371
|
|
|
1207
|
-
const checkboxCss$1 = "@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-checkbox{outline:none;border:none;--bcm-checkbox-primary-color-default:var(--bcm-new-ds-color-blue-500);--bcm-checkbox-secondary-color-default:var(--bcm-new-ds-color-white);--bcm-checkbox-primary-color-hover:var(--bcm-new-ds-color-blue-600);--bcm-checkbox-secondary-color-hover:var(--bcm-new-ds-color-slate-50);--bcm-checkbox-primary-color-focus-visible:var(--bcm-new-ds-color-blue-800);--bcm-checkbox-secondary-color-focus-visible:var(--bcm-new-ds-color-slate-50);--bcm-checkbox-primary-color-active:var(--bcm-new-ds-color-blue-700);--bcm-checkbox-secondary-color-active:var(--bcm-new-ds-color-slate-50);--bcm-checkbox-primary-color-disabled:var(--bcm-new-ds-color-slate-300);--bcm-checkbox-secondary-color-disabled:var(--bcm-new-ds-color-slate-200);display:inline-flex;width:fit-content;flex-direction:column;margin-bottom:8px}.bcm-checkbox:focus,.bcm-checkbox:hover,.bcm-checkbox:active{outline:none;border:none}.bcm-checkbox *{box-sizing:border-box}.bcm-checkbox input[type=radio],.bcm-checkbox input[type=checkbox]{-webkit-appearance:none;appearance:none;background-color:#fff;margin:0;display:none}.bcm-checkbox__input{display:flex;flex-direction:row;align-items:flex-start;justify-content:flex-start;flex-wrap:nowrap;padding-top:4px}.bcm-checkbox.hidden{display:none}.bcm-checkbox :hover{cursor:pointer}.bcm-checkbox[disabled] :hover,.bcm-checkbox.disabled :hover{cursor:not-allowed}.bcm-checkbox .slot{font-family:\"Inter\", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;font-weight:500;color:var(--bcm-new-ds-color-slate-600)}.bcm-checkbox .slot:not(:empty){margin-left:8px;margin-right:8px}.bcm-checkbox-size-small .slot{font-size:12px;line-height:calc(12px + 8px);margin-top:-2.5px}.bcm-checkbox-size-small .bcm-checkbox__input{min-height:calc(24px - 4px)}.bcm-checkbox-size-small .bcm-checkbox__label-icon{width:14px;height:14px;min-width:14px;font-size:calc(10px - 2px)}.bcm-checkbox-size-medium .slot{font-size:calc(12px + 1px);line-height:calc(12px + 8px);margin-top:-1.5px}.bcm-checkbox-size-medium .bcm-checkbox__input{min-height:calc(32px - 4px)}.bcm-checkbox-size-medium .bcm-checkbox__label-icon{width:16px;height:16px;min-width:16px;font-size:10px}.bcm-checkbox-size-large .slot{font-size:16px;line-height:calc(16px + 8px);margin-top:-1.5px}.bcm-checkbox-size-large .bcm-checkbox__input{min-height:calc(32px - 4px)}.bcm-checkbox-size-large .bcm-checkbox__label-icon{width:18px;height:18px;min-width:18px;font-size:12px}.bcm-checkbox__label{display:flex;flex-direction:row;align-items:flex-start;justify-content:flex-start;flex-wrap:nowrap}.bcm-checkbox__label-icon{display:flex;flex-direction:column;align-items:center;justify-content:center;flex-wrap:nowrap;border-width:1px;border-style:solid;border-radius:2px}.bcm-checkbox__label-icon-indeterminate{position:relative}.bcm-checkbox__label-icon-indeterminate:after{content:\"\";display:block;position:absolute;width:70%;height:1.5px;background:var(--bcm-new-ds-color-white)}.bcm-checkbox__label-icon.bcm-radio__icon{width:16px;height:16px;box-sizing:border-box;border-radius:100px}.bcm-checkbox__label-icon.bcm-radio__icon .bcm-radio__icon-inner{width:10px;height:10px;border-radius:100px;background-color:var(--bcm-new-ds-color-white)}.bcm-checkbox .bcm-checkbox__label-icon{background:var(--bcm-checkbox-secondary-color-default);color:var(--bcm-checkbox-secondary-color-default);border-color:var(--bcm-new-ds-color-slate-300)}.bcm-checkbox .bcm-checkbox__label-icon-checked,.bcm-checkbox .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-new-ds-color-white);background-color:var(--bcm-checkbox-primary-color-default);border-color:var(--bcm-checkbox-primary-color-default)}.bcm-checkbox .bcm-checkbox__label-icon-checked.bcm-radio__icon,.bcm-checkbox .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon{border-color:var(--bcm-checkbox-primary-color-default);background-color:var(--bcm-checkbox-secondary-color-default)}.bcm-checkbox .bcm-checkbox__label-icon-checked.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon .bcm-radio__icon-inner{background-color:var(--bcm-checkbox-primary-color-default)}.bcm-checkbox .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-checkbox-primary-color-default)}.bcm-checkbox:hover .bcm-checkbox__label-icon{background:var(--bcm-checkbox-secondary-color-hover);color:var(--bcm-checkbox-secondary-color-hover);border-color:var(--bcm-checkbox-primary-color-hover)}.bcm-checkbox:hover .bcm-checkbox__label-icon-checked,.bcm-checkbox:hover .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-new-ds-color-white);background-color:var(--bcm-checkbox-primary-color-hover);border-color:var(--bcm-checkbox-primary-color-hover)}.bcm-checkbox:hover .bcm-checkbox__label-icon-checked.bcm-radio__icon,.bcm-checkbox:hover .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon{border-color:var(--bcm-checkbox-primary-color-hover);background-color:var(--bcm-checkbox-secondary-color-hover)}.bcm-checkbox:hover .bcm-checkbox__label-icon-checked.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox:hover .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon .bcm-radio__icon-inner{background-color:var(--bcm-checkbox-primary-color-hover)}.bcm-checkbox:hover .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-checkbox-primary-color-hover)}.bcm-checkbox:focus-visible .bcm-checkbox__label-icon{background:var(--bcm-checkbox-secondary-color-focus-visible);color:var(--bcm-checkbox-secondary-color-focus-visible);border-color:var(--bcm-checkbox-primary-color-focus-visible)}.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-checked,.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-new-ds-color-white);background-color:var(--bcm-checkbox-primary-color-focus-visible);border-color:var(--bcm-checkbox-primary-color-focus-visible)}.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-checked.bcm-radio__icon,.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon{border-color:var(--bcm-checkbox-primary-color-focus-visible);background-color:var(--bcm-checkbox-secondary-color-focus-visible)}.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-checked.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon .bcm-radio__icon-inner{background-color:var(--bcm-checkbox-primary-color-focus-visible)}.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-checkbox-primary-color-focus-visible)}.bcm-checkbox:active .bcm-checkbox__label-icon{background:var(--bcm-checkbox-secondary-color-active);color:var(--bcm-checkbox-secondary-color-active);border-color:var(--bcm-checkbox-primary-color-active)}.bcm-checkbox:active .bcm-checkbox__label-icon-checked,.bcm-checkbox:active .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-new-ds-color-white);background-color:var(--bcm-checkbox-primary-color-active);border-color:var(--bcm-checkbox-primary-color-active)}.bcm-checkbox:active .bcm-checkbox__label-icon-checked.bcm-radio__icon,.bcm-checkbox:active .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon{border-color:var(--bcm-checkbox-primary-color-active);background-color:var(--bcm-checkbox-secondary-color-active)}.bcm-checkbox:active .bcm-checkbox__label-icon-checked.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox:active .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon .bcm-radio__icon-inner{background-color:var(--bcm-checkbox-primary-color-active)}.bcm-checkbox:active .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-checkbox-primary-color-active)}.bcm-checkbox[disabled] .bcm-checkbox__label-icon,.bcm-checkbox.disabled .bcm-checkbox__label-icon{background:var(--bcm-checkbox-secondary-color-disabled);color:var(--bcm-checkbox-secondary-color-disabled);border-color:var(--bcm-checkbox-primary-color-disabled)}.bcm-checkbox[disabled] .bcm-checkbox__label-icon-checked,.bcm-checkbox[disabled] .bcm-checkbox__label-icon-indeterminate,.bcm-checkbox.disabled .bcm-checkbox__label-icon-checked,.bcm-checkbox.disabled .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-new-ds-color-white);background-color:var(--bcm-checkbox-primary-color-disabled);border-color:var(--bcm-checkbox-primary-color-disabled)}.bcm-checkbox[disabled] .bcm-checkbox__label-icon-checked.bcm-radio__icon,.bcm-checkbox[disabled] .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon,.bcm-checkbox.disabled .bcm-checkbox__label-icon-checked.bcm-radio__icon,.bcm-checkbox.disabled .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon{border-color:var(--bcm-checkbox-primary-color-disabled);background-color:var(--bcm-checkbox-secondary-color-disabled)}.bcm-checkbox[disabled] .bcm-checkbox__label-icon-checked.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox[disabled] .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox.disabled .bcm-checkbox__label-icon-checked.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox.disabled .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon .bcm-radio__icon-inner{background-color:var(--bcm-checkbox-primary-color-disabled)}.bcm-checkbox[disabled] .bcm-checkbox__label-icon-indeterminate,.bcm-checkbox.disabled .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-checkbox-primary-color-disabled)}.bcm-checkbox[no-margin] .bcm-checkbox__input{margin:0;min-height:0;padding:0}";
|
|
1372
|
+
const CheckboxTemplate = ({ disabled, checked, readonly, required, indeterminate, hidden, captionType, _id }) => {
|
|
1373
|
+
const { inputContainer, labelContainer, input, checkmark } = checkboxStyle({
|
|
1374
|
+
size: "medium",
|
|
1375
|
+
error: captionType === Bcm$1.Status.error,
|
|
1376
|
+
disabled,
|
|
1377
|
+
hidden,
|
|
1378
|
+
readonly,
|
|
1379
|
+
indeterminate: indeterminate === Bcm$1.IndeterminateType.indeterminate,
|
|
1380
|
+
checked: checked || indeterminate === Bcm$1.IndeterminateType.indeterminate,
|
|
1381
|
+
noMargin: true
|
|
1382
|
+
});
|
|
1383
|
+
return (h$2("div", { class: inputContainer() },
|
|
1384
|
+
h$2("input", { tabindex: "-1", id: _id, type: "checkbox", checked: checked, disabled: disabled, required: required, readonly: readonly, class: input() }),
|
|
1385
|
+
h$2("label", { class: labelContainer(), htmlFor: _id },
|
|
1386
|
+
h$2("span", { class: checkmark() }, indeterminate === Bcm$1.IndeterminateType.indeterminate
|
|
1387
|
+
? h$2("i", { class: "fa-sharp fa-regular fa-minus" })
|
|
1388
|
+
: h$2("i", { class: "fa-sharp fa-regular fa-check" })))));
|
|
1389
|
+
};
|
|
1390
|
+
|
|
1391
|
+
const InfoFooterTemplate = ({ selected, total, found, multiple, variableText }) => {
|
|
1392
|
+
total = total || 0;
|
|
1393
|
+
variableText = variableText ? pluralize(variableText, total) : 'items';
|
|
1394
|
+
return (h$2("footer", { class: "bcm-info-footer" },
|
|
1395
|
+
(multiple && selected > 0) && ` ( ${selected} selected ) `,
|
|
1396
|
+
` Total ${total} `,
|
|
1397
|
+
found != null && ` / ${found} `,
|
|
1398
|
+
` ${variableText} found. `));
|
|
1399
|
+
};
|
|
1208
1400
|
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1401
|
+
const ListItemTemplate = ({ item, treeview, highlight, checkboxes, size, selectedItem, openGroup, checkedItem, focusItem, searchIsOnlyChilds }) => {
|
|
1402
|
+
const isHaveChildren = item.items && item.items.length > 0;
|
|
1403
|
+
var text = StringHelper.htmlEntities(item.text);
|
|
1404
|
+
let intersection = [];
|
|
1405
|
+
if (highlight && StringHelper.slugify(text).includes(StringHelper.slugify(highlight))) {
|
|
1406
|
+
if (!searchIsOnlyChilds || (searchIsOnlyChilds && (!isHaveChildren || (!treeview && item.type != "group")))) {
|
|
1407
|
+
text = StringHelper.highlight(text, highlight);
|
|
1408
|
+
}
|
|
1409
|
+
}
|
|
1410
|
+
if (item.type != 'group' && item.template) {
|
|
1411
|
+
const match = item.template
|
|
1412
|
+
.replace(/\s/g, '')
|
|
1413
|
+
.match(/\{{[^}}]+\}/g)
|
|
1414
|
+
.map(x => x.replace(/[{}]/g, ''));
|
|
1415
|
+
const keys = Object.keys(item.itemObject);
|
|
1416
|
+
intersection = match.filter(x => keys.includes(x));
|
|
1417
|
+
}
|
|
1418
|
+
text = item.isHtmlContent ? item.isHtmlContent : item.template && intersection.length > 0 ? StringHelper.templateParser(item.template, Object.assign(Object.assign({}, item.itemObject), { text })) : text;
|
|
1419
|
+
const domText = item.template ? text : Generate.domParser(text);
|
|
1420
|
+
const unClickable = !treeview && item.type == "group" && !item.clickable;
|
|
1421
|
+
const disabled = item.disabled;
|
|
1422
|
+
const readonly = item.readonly;
|
|
1423
|
+
const itemClick = (event) => {
|
|
1424
|
+
let path = event.path || event.composedPath();
|
|
1425
|
+
if (path.filter(x => x.attributes && x.attributes.getNamedItem("unlinked"))[0]) {
|
|
1426
|
+
return;
|
|
1427
|
+
}
|
|
1428
|
+
// if (readonly) {
|
|
1429
|
+
// collapseClick();
|
|
1430
|
+
// }
|
|
1431
|
+
!unClickable && !disabled && !readonly && (checkboxes ? checkedItem(item.id) : selectedItem(item.id));
|
|
1432
|
+
};
|
|
1433
|
+
const collapseClick = (e) => {
|
|
1434
|
+
// if (disabled) {
|
|
1435
|
+
// return;
|
|
1436
|
+
// }
|
|
1437
|
+
e.stopPropagation();
|
|
1438
|
+
item.open = item.isSearching;
|
|
1439
|
+
openGroup(item.id);
|
|
1440
|
+
};
|
|
1441
|
+
return (h$2("div", { id: item.id, hidden: item.hidden, "on-focus": e => !unClickable && !disabled && focusItem(e), tabIndex: unClickable || disabled ? -1 : 0, class: classnames('bcm-list__item',
|
|
1442
|
+
// size === 'large' ? 'size-3' : 'size-2',
|
|
1443
|
+
'bcm-list__item-' + size, {
|
|
1444
|
+
'bcm-list__item--group': !treeview && item.type == 'group',
|
|
1445
|
+
'bcm-list__item--readonly': readonly,
|
|
1446
|
+
}) },
|
|
1447
|
+
h$2("div", { class: classnames('bcm-list__item-content', !checkboxes && item.selected && 'selected', { disabled, readonly }), onClick: (e) => itemClick(e) },
|
|
1448
|
+
treeview && (h$2("div", { class: "bcm-list__item-content-collapse-icon", onClick: (e) => isHaveChildren && collapseClick(e) }, isHaveChildren && h$2("i", { class: classnames('fa-regular fa-angle-' + (item.isSearching || item.open ? 'down' : 'right')) }))),
|
|
1449
|
+
h$2("div", { class: classnames('bcm-list__item-content-text', { treeview }) },
|
|
1450
|
+
checkboxes && (treeview || (!treeview && item.type != 'group')) && (h$2("div", { class: "bcm-list__item-content-text-checkbox" },
|
|
1451
|
+
h$2(CheckboxTemplate, { indeterminate: item.indeterminate, checked: item.checked, disabled: item.disabled }))),
|
|
1452
|
+
h$2("span", Object.assign({ class: "bcm-list__item-content-text-inner" }, (item.title && { "title": item.title }), { innerHTML: domText })))),
|
|
1453
|
+
(treeview || !treeview && item.type == "group") && isHaveChildren && (h$2("div", { class: "bcm-list__item-childs" }, (item.isSearching || item.open || (!treeview && item.type == "group")) &&
|
|
1454
|
+
item.items.map((item) => (h$2(ListItemTemplate, { highlight: highlight, item: item, searchIsOnlyChilds: searchIsOnlyChilds, treeview: treeview, checkboxes: checkboxes, size: size, selectedItem: selectedItem, checkedItem: checkedItem, openGroup: parentId => openGroup(parentId), focusItem: itemId => focusItem(itemId) })))))));
|
|
1455
|
+
};
|
|
1456
|
+
|
|
1457
|
+
const ListTemplate = ({ type, highlight, selectAllItem, bcmListContainer, treeview, checkboxes, checkAll, infoFooter, value, totalData, searchFound, variableText, _id, tempId, data, width, height, size, searchPlaceholder, minSearchLength, selectedItem, openGroup, checkedItem, onScrollEvent, focusItem, items, searchable, searchIsOnlyChilds, emptyText, emptyIcon, handleTransitionEnd, }) => {
|
|
1458
|
+
const showSelectAll = !(treeview && searchFound > 0) && !(searchFound > 0);
|
|
1459
|
+
const setScrollHeight = () => {
|
|
1460
|
+
const itemHeight = size === 'small' ? 28 : size === 'medium' ? 36 : 48;
|
|
1461
|
+
const itemCount = searchFound == null ? (treeview ? items.length : totalData) : searchFound;
|
|
1462
|
+
const scrollHeight = itemCount * itemHeight || 0;
|
|
1463
|
+
return Object.assign(Object.assign({ 'min-height': `${scrollHeight}px` }, (type === 'select' && { 'overscroll-behavior': 'none' })), { 'height': '100%', 'display': 'flex', 'flex-direction': 'column' });
|
|
1464
|
+
};
|
|
1465
|
+
return (h$2("div", { id: `bcm-list-${_id}`, class: bcmListContainer, "temp-id": `bcm-list-${tempId}`, style: { '--height': height, '--width': width }, onTransitionEnd: e => handleTransitionEnd(e) },
|
|
1466
|
+
data && searchable && (h$2("section", { class: "bcm-list__container-search" },
|
|
1467
|
+
h$2("bcm-search", { size: size, id: `bcm-list-${_id}-search`, data: data, clearable: true, placeholder: searchPlaceholder, "min-search-length": minSearchLength, searchIsOnlyChilds: searchIsOnlyChilds }))),
|
|
1468
|
+
h$2("main", { onScroll: e => onScrollEvent(e), class: "scrolling", style: Object.assign({}, (type === 'select' && { 'overscroll-behavior': 'none' })) },
|
|
1469
|
+
h$2("div", { style: setScrollHeight() },
|
|
1470
|
+
checkAll && searchFound != 0 && items && items.length > 0 && checkboxes && showSelectAll && (h$2("section", { class: "bcm-list__container-select-all" },
|
|
1471
|
+
h$2(ListItemTemplate, { size: size, item: selectAllItem, treeview: false, checkboxes: true, selectedItem: itemId => selectedItem(itemId), checkedItem: itemId => checkedItem(itemId), openGroup: parentId => openGroup(parentId), focusItem: itemId => focusItem(itemId) }))),
|
|
1472
|
+
items.map((item) => (h$2(ListItemTemplate, { highlight: highlight, size: size, item: item, searchIsOnlyChilds: searchIsOnlyChilds, treeview: treeview, checkboxes: checkboxes, selectedItem: itemId => selectedItem(itemId), checkedItem: itemId => checkedItem(itemId), openGroup: parentId => openGroup(parentId), focusItem: itemId => focusItem(itemId) }))),
|
|
1473
|
+
(!items || items.length === 0) && searchFound != 0 && (h$2("section", { class: "bcm-list__container-no-data" },
|
|
1474
|
+
h$2("bcm-empty", { style: { height: 'auto' }, icon: emptyIcon },
|
|
1475
|
+
h$2("span", { innerHTML: emptyText || 'No data' })))),
|
|
1476
|
+
searchFound == 0 && (h$2("section", { class: "bcm-list__container-no-data" },
|
|
1477
|
+
h$2("bcm-empty", { style: { height: 'auto' }, icon: emptyIcon },
|
|
1478
|
+
h$2("span", { innerHTML: emptyText || 'No Data Found' })))))),
|
|
1479
|
+
infoFooter && data && data.length > 0 && (h$2(InfoFooterTemplate, { selected: value === null || value === void 0 ? void 0 : value.length, total: totalData, found: searchFound, multiple: checkboxes, variableText: variableText }))));
|
|
1480
|
+
};
|
|
1481
|
+
|
|
1482
|
+
const StepperHeaderTemplate = ({ _title, description, status, valid, index, loading, active, stepChange, statusIcon, icon, disabled, headerHidden, }) => {
|
|
1483
|
+
const classes = classnames('bcm-stepper__header-item', `bcm-stepper__header-item--${status}`, {
|
|
1484
|
+
'bcm-stepper__header-item--active': active,
|
|
1485
|
+
'bcm-stepper__header-item--valid': valid,
|
|
1486
|
+
'bcm-stepper__header-item--invalid': !valid,
|
|
1487
|
+
'bcm-stepper__header-item--disabled': disabled,
|
|
1488
|
+
'hidden': headerHidden,
|
|
1489
|
+
});
|
|
1490
|
+
const defaultIcons = {
|
|
1491
|
+
success: 'fal fa-check',
|
|
1492
|
+
warning: 'fal fa-exclamation-triangle',
|
|
1493
|
+
error: 'fal fa-times',
|
|
1494
|
+
};
|
|
1495
|
+
const customIcon = (icon || (statusIcon && defaultIcons[status])) && h$2("bcm-icon", { icon: icon ? icon : defaultIcons[status] });
|
|
1496
|
+
return (h$2("div", { class: classes },
|
|
1497
|
+
h$2("div", { class: "bcm-stepper__header-item--container", onClick: () => !disabled && stepChange(index) },
|
|
1498
|
+
h$2("div", { class: "bcm-stepper__header-item-icon size-3" }, loading ? h$2("bcm-icon", { icon: "far fa-spinner-third fa-spin" }) : customIcon || index),
|
|
1499
|
+
h$2("div", { class: "bcm-stepper__header-item-title size-2" }, _title),
|
|
1500
|
+
h$2("div", { class: "bcm-stepper__header-item-description size-1 tw-text-center", innerHTML: description }))));
|
|
1218
1501
|
};
|
|
1502
|
+
|
|
1503
|
+
const checkboxCss = "@import url(\"https://fonts.googleapis.com/css?family=Roboto:400,500\");.size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}:root{--bcm-checkbox-text:var(--bcm-ui-color-text-default);--bcm-checkbox-border:var(--bcm-ui-color-border-default);--bcm-checkbox-border-hover:var(--bcm-ui-color-border-primary-info);--bcm-checkbox-bg:var(--bcm-ui-color-background-default-default);--bcm-checkbox-bg-hover:var(--bcm-ui-color-background-default-default);--bcm-checkbox-checked-border:var(--bcm-ui-color-background-primary-info-default);--bcm-checkbox-checked-border-hover:var(--bcm-ui-color-background-primary-info-hover);--bcm-checkbox-checked-bg:var(--bcm-ui-color-background-primary-info-default);--bcm-checkbox-checked-bg-hover:var(--bcm-ui-color-background-primary-info-hover)}";
|
|
1504
|
+
|
|
1219
1505
|
const BcmCheckbox = class {
|
|
1220
1506
|
constructor(hostRef) {
|
|
1221
1507
|
registerInstance(this, hostRef);
|
|
@@ -1224,32 +1510,33 @@ const BcmCheckbox = class {
|
|
|
1224
1510
|
this.change = createEvent(this, "bcm-change", 7);
|
|
1225
1511
|
this.changeCheckbox = createEvent(this, "bcm-change-checkbox", 7);
|
|
1226
1512
|
this._id = Generate.UID();
|
|
1227
|
-
this.inGroup = false;
|
|
1228
1513
|
this.value = false;
|
|
1229
1514
|
this.checked = false;
|
|
1230
|
-
this.name =
|
|
1515
|
+
this.name = "";
|
|
1231
1516
|
this.disabled = false;
|
|
1232
1517
|
this.hidden = false;
|
|
1233
1518
|
this.required = false;
|
|
1234
1519
|
this.label = undefined;
|
|
1235
1520
|
this.readonly = false;
|
|
1236
|
-
this.size = Bcm
|
|
1237
|
-
this.indeterminate =
|
|
1238
|
-
this.color =
|
|
1521
|
+
this.size = Bcm.Size.medium;
|
|
1522
|
+
this.indeterminate = undefined;
|
|
1523
|
+
this.color = undefined;
|
|
1239
1524
|
this.caption = undefined;
|
|
1240
1525
|
this.noCaption = false;
|
|
1241
1526
|
this.captionError = undefined;
|
|
1242
|
-
this.captionType = Bcm
|
|
1243
|
-
this.
|
|
1244
|
-
this.captionTypeCache = undefined;
|
|
1527
|
+
this.captionType = Bcm.Status.default;
|
|
1528
|
+
this.noMargin = false;
|
|
1245
1529
|
}
|
|
1246
|
-
|
|
1247
|
-
this.captionCache = this.caption;
|
|
1248
|
-
this.captionTypeCache = this.captionType;
|
|
1249
|
-
this.value = this.checked;
|
|
1530
|
+
componentDidLoad() {
|
|
1531
|
+
this.caption && (this.captionCache = this.caption);
|
|
1532
|
+
this.captionType && (this.captionTypeCache = this.captionType);
|
|
1250
1533
|
}
|
|
1251
|
-
|
|
1534
|
+
toggleChecked() {
|
|
1535
|
+
this.checked = !this.checked;
|
|
1536
|
+
this.value = this.checked;
|
|
1252
1537
|
this.inputElement.checked = this.checked;
|
|
1538
|
+
this.change.emit({ name: this.name, value: this.checked });
|
|
1539
|
+
this.changeCheckbox.emit();
|
|
1253
1540
|
}
|
|
1254
1541
|
async onBcmFocus() {
|
|
1255
1542
|
this.el.focus();
|
|
@@ -1258,35 +1545,43 @@ const BcmCheckbox = class {
|
|
|
1258
1545
|
this.el.blur();
|
|
1259
1546
|
}
|
|
1260
1547
|
async setClear() {
|
|
1261
|
-
this.
|
|
1548
|
+
this.inputElement.checked = false;
|
|
1262
1549
|
this.handleChange();
|
|
1263
|
-
await delay$1(10);
|
|
1264
1550
|
return Promise.resolve();
|
|
1265
1551
|
}
|
|
1266
1552
|
async resetCaption() {
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
this.
|
|
1271
|
-
|
|
1553
|
+
if (this.caption !== this.captionCache) {
|
|
1554
|
+
this.caption = this.captionCache;
|
|
1555
|
+
}
|
|
1556
|
+
if (this.captionType !== this.captionTypeCache) {
|
|
1557
|
+
this.captionType = this.captionTypeCache;
|
|
1558
|
+
}
|
|
1559
|
+
if (this.captionError) {
|
|
1560
|
+
this.captionError = undefined;
|
|
1561
|
+
}
|
|
1272
1562
|
return Promise.resolve();
|
|
1273
1563
|
}
|
|
1274
1564
|
handleChange() {
|
|
1275
|
-
|
|
1276
|
-
this.
|
|
1277
|
-
|
|
1278
|
-
this.
|
|
1565
|
+
const isChecked = this.inputElement.checked;
|
|
1566
|
+
if (this.checked !== isChecked) {
|
|
1567
|
+
this.checked = isChecked;
|
|
1568
|
+
this.value = isChecked;
|
|
1279
1569
|
this.change.emit({
|
|
1280
1570
|
name: this.name,
|
|
1281
|
-
value:
|
|
1571
|
+
value: isChecked
|
|
1282
1572
|
});
|
|
1573
|
+
this.changeCheckbox.emit();
|
|
1283
1574
|
}
|
|
1284
1575
|
}
|
|
1285
|
-
watchIndeterminate(newValue
|
|
1286
|
-
if (newValue
|
|
1287
|
-
this.inputElement.
|
|
1288
|
-
|
|
1576
|
+
watchIndeterminate(newValue) {
|
|
1577
|
+
if (newValue === Bcm.IndeterminateType.indeterminate) {
|
|
1578
|
+
this.inputElement.indeterminate = true;
|
|
1579
|
+
}
|
|
1580
|
+
else {
|
|
1581
|
+
this.inputElement.checked = newValue === Bcm.IndeterminateType.determinate;
|
|
1582
|
+
this.inputElement.indeterminate = false;
|
|
1289
1583
|
}
|
|
1584
|
+
this.handleChange();
|
|
1290
1585
|
}
|
|
1291
1586
|
async set(data) {
|
|
1292
1587
|
if (typeof data === 'boolean') {
|
|
@@ -1294,63 +1589,55 @@ const BcmCheckbox = class {
|
|
|
1294
1589
|
}
|
|
1295
1590
|
}
|
|
1296
1591
|
async get() {
|
|
1297
|
-
return this.checked
|
|
1592
|
+
return this.checked;
|
|
1298
1593
|
}
|
|
1299
|
-
async check(
|
|
1300
|
-
this.
|
|
1301
|
-
|
|
1594
|
+
async check(shouldCheck = true) {
|
|
1595
|
+
if (this.checked !== shouldCheck) {
|
|
1596
|
+
this.inputElement.checked = shouldCheck;
|
|
1597
|
+
this.handleChange();
|
|
1598
|
+
}
|
|
1302
1599
|
}
|
|
1303
|
-
|
|
1304
|
-
if (ev.
|
|
1305
|
-
if (
|
|
1306
|
-
|
|
1307
|
-
|
|
1600
|
+
handleKeyDown(ev) {
|
|
1601
|
+
if (ev.key === ' ' || ev.key === 'Enter') {
|
|
1602
|
+
if (this.disabled || this.readonly) {
|
|
1603
|
+
ev.stopPropagation();
|
|
1604
|
+
ev.preventDefault();
|
|
1605
|
+
return;
|
|
1308
1606
|
}
|
|
1607
|
+
this.toggleChecked();
|
|
1309
1608
|
ev.stopPropagation();
|
|
1310
1609
|
ev.preventDefault();
|
|
1311
|
-
return false;
|
|
1312
1610
|
}
|
|
1313
1611
|
}
|
|
1314
1612
|
watchChecked() {
|
|
1315
|
-
|
|
1613
|
+
this.value = this.checked;
|
|
1614
|
+
if (this.checked && this.captionType === Bcm.Status.error) {
|
|
1316
1615
|
this.resetCaption();
|
|
1317
1616
|
}
|
|
1318
|
-
this.value = this.checked;
|
|
1319
|
-
}
|
|
1320
|
-
setColor(color = this.color) {
|
|
1321
|
-
if (!color)
|
|
1322
|
-
return;
|
|
1323
|
-
const prefix = `--bcm-checkbox`;
|
|
1324
|
-
return {
|
|
1325
|
-
[`${prefix}-primary-color-default`]: ColorHelper.dsColor(color + '-500'),
|
|
1326
|
-
[`${prefix}-primary-color-hover`]: ColorHelper.dsColor(color + '-600'),
|
|
1327
|
-
[`${prefix}-primary-color-focus-visible`]: ColorHelper.dsColor(color + '-800'),
|
|
1328
|
-
[`${prefix}-primary-color-active`]: ColorHelper.dsColor(color + '-700'),
|
|
1329
|
-
// [`${prefix}-primary-color-disabled`]: ColorHelper.dsColor(color + '-300'),
|
|
1330
|
-
[`${prefix}-secondary-color-default`]: ColorHelper.dsColor('white'),
|
|
1331
|
-
[`${prefix}-secondary-color-hover`]: ColorHelper.dsColor('slate-50'),
|
|
1332
|
-
[`${prefix}-secondary-color-focus-visible`]: ColorHelper.dsColor('slate-50'),
|
|
1333
|
-
[`${prefix}-secondary-color-active`]: ColorHelper.dsColor('slate-50'),
|
|
1334
|
-
// [`${prefix}-secondary-color-disabled`]: ColorHelper.dsColor('slate-200')
|
|
1335
|
-
};
|
|
1336
1617
|
}
|
|
1337
1618
|
render() {
|
|
1338
|
-
const { label,
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
hidden,
|
|
1343
|
-
checked,
|
|
1619
|
+
const { _id, label, captionType, size, required, checked, disabled, hidden, readonly, indeterminate, noCaption, captionError, caption, noMargin, color } = this;
|
|
1620
|
+
const { host, inputContainer, input, slot, labelContainer, checkmark } = checkboxStyle({
|
|
1621
|
+
size,
|
|
1622
|
+
error: captionType === Bcm.Status.error,
|
|
1344
1623
|
disabled,
|
|
1345
|
-
|
|
1624
|
+
hidden,
|
|
1346
1625
|
readonly,
|
|
1626
|
+
indeterminate: indeterminate === Bcm.IndeterminateType.indeterminate,
|
|
1627
|
+
checked: checked || indeterminate === Bcm.IndeterminateType.indeterminate,
|
|
1628
|
+
noMargin
|
|
1347
1629
|
});
|
|
1348
|
-
const
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1630
|
+
const style = Object.assign({}, color && Generate.getTwColor({
|
|
1631
|
+
color: color,
|
|
1632
|
+
tones: {
|
|
1633
|
+
700: ["border-hover", "checked-bg", "checked-border"],
|
|
1634
|
+
800: ["checked-border-hover", "checked-bg-hover"],
|
|
1635
|
+
},
|
|
1636
|
+
variable: "--bcm-checkbox",
|
|
1637
|
+
}));
|
|
1638
|
+
return (h$2(Host, { tabindex: "0", onFocus: () => this.focus.emit(this.el), onBlur: () => this.blur.emit(this.el), style: style, class: host(), disabled: disabled }, label && h$2("bcm-label", { htmlFor: `input-${_id}`, type: captionType, value: label, required: required }), h$2("div", { class: inputContainer() }, h$2("input", { id: `input-${_id}`, type: "checkbox", checked: checked, disabled: disabled, required: required, readonly: readonly, onChange: () => { !disabled && !readonly && (this.handleChange()); }, ref: el => (this.inputElement = el), class: input() }), h$2("label", { class: labelContainer(), htmlFor: `input-${_id}` }, h$2("span", { class: checkmark() }, indeterminate === Bcm.IndeterminateType.indeterminate
|
|
1639
|
+
? h$2("i", { class: "fa-sharp fa-regular fa-minus" })
|
|
1640
|
+
: h$2("i", { class: "fa-sharp fa-regular fa-check" })), h$2("span", { class: slot() }, h$2("slot", null)))), h$2(CaptionTemplate, { noCaption: noCaption, captionType: captionType, captionError: captionError, caption: caption })));
|
|
1354
1641
|
}
|
|
1355
1642
|
get el() { return getElement(this); }
|
|
1356
1643
|
static get watchers() { return {
|
|
@@ -1358,10 +1645,191 @@ const BcmCheckbox = class {
|
|
|
1358
1645
|
"checked": ["watchChecked"]
|
|
1359
1646
|
}; }
|
|
1360
1647
|
};
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1648
|
+
BcmCheckbox.style = checkboxCss;
|
|
1649
|
+
|
|
1650
|
+
const appendToMap = (map, propName, value) => {
|
|
1651
|
+
const items = map.get(propName);
|
|
1652
|
+
if (!items) {
|
|
1653
|
+
map.set(propName, [value]);
|
|
1654
|
+
}
|
|
1655
|
+
else if (!items.includes(value)) {
|
|
1656
|
+
items.push(value);
|
|
1657
|
+
}
|
|
1658
|
+
};
|
|
1659
|
+
const debounce = (fn, ms) => {
|
|
1660
|
+
let timeoutId;
|
|
1661
|
+
return (...args) => {
|
|
1662
|
+
if (timeoutId) {
|
|
1663
|
+
clearTimeout(timeoutId);
|
|
1664
|
+
}
|
|
1665
|
+
timeoutId = setTimeout(() => {
|
|
1666
|
+
timeoutId = 0;
|
|
1667
|
+
fn(...args);
|
|
1668
|
+
}, ms);
|
|
1669
|
+
};
|
|
1670
|
+
};
|
|
1671
|
+
|
|
1672
|
+
/**
|
|
1673
|
+
* Check if a possible element isConnected.
|
|
1674
|
+
* The property might not be there, so we check for it.
|
|
1675
|
+
*
|
|
1676
|
+
* We want it to return true if isConnected is not a property,
|
|
1677
|
+
* otherwise we would remove these elements and would not update.
|
|
1678
|
+
*
|
|
1679
|
+
* Better leak in Edge than to be useless.
|
|
1680
|
+
*/
|
|
1681
|
+
const isConnected = (maybeElement) => !('isConnected' in maybeElement) || maybeElement.isConnected;
|
|
1682
|
+
const cleanupElements = debounce((map) => {
|
|
1683
|
+
for (let key of map.keys()) {
|
|
1684
|
+
map.set(key, map.get(key).filter(isConnected));
|
|
1685
|
+
}
|
|
1686
|
+
}, 2000);
|
|
1687
|
+
const stencilSubscription = () => {
|
|
1688
|
+
if (typeof getRenderingRef !== 'function') {
|
|
1689
|
+
// If we are not in a stencil project, we do nothing.
|
|
1690
|
+
// This function is not really exported by @stencil/core.
|
|
1691
|
+
return {};
|
|
1692
|
+
}
|
|
1693
|
+
const elmsToUpdate = new Map();
|
|
1694
|
+
return {
|
|
1695
|
+
dispose: () => elmsToUpdate.clear(),
|
|
1696
|
+
get: (propName) => {
|
|
1697
|
+
const elm = getRenderingRef();
|
|
1698
|
+
if (elm) {
|
|
1699
|
+
appendToMap(elmsToUpdate, propName, elm);
|
|
1700
|
+
}
|
|
1701
|
+
},
|
|
1702
|
+
set: (propName) => {
|
|
1703
|
+
const elements = elmsToUpdate.get(propName);
|
|
1704
|
+
if (elements) {
|
|
1705
|
+
elmsToUpdate.set(propName, elements.filter(forceUpdate));
|
|
1706
|
+
}
|
|
1707
|
+
cleanupElements(elmsToUpdate);
|
|
1708
|
+
},
|
|
1709
|
+
reset: () => {
|
|
1710
|
+
elmsToUpdate.forEach((elms) => elms.forEach(forceUpdate));
|
|
1711
|
+
cleanupElements(elmsToUpdate);
|
|
1712
|
+
},
|
|
1713
|
+
};
|
|
1714
|
+
};
|
|
1715
|
+
|
|
1716
|
+
const createObservableMap = (defaultState, shouldUpdate = (a, b) => a !== b) => {
|
|
1717
|
+
let states = new Map(Object.entries(defaultState !== null && defaultState !== void 0 ? defaultState : {}));
|
|
1718
|
+
const handlers = {
|
|
1719
|
+
dispose: [],
|
|
1720
|
+
get: [],
|
|
1721
|
+
set: [],
|
|
1722
|
+
reset: [],
|
|
1723
|
+
};
|
|
1724
|
+
const reset = () => {
|
|
1725
|
+
states = new Map(Object.entries(defaultState !== null && defaultState !== void 0 ? defaultState : {}));
|
|
1726
|
+
handlers.reset.forEach((cb) => cb());
|
|
1727
|
+
};
|
|
1728
|
+
const dispose = () => {
|
|
1729
|
+
// Call first dispose as resetting the state would
|
|
1730
|
+
// cause less updates ;)
|
|
1731
|
+
handlers.dispose.forEach((cb) => cb());
|
|
1732
|
+
reset();
|
|
1733
|
+
};
|
|
1734
|
+
const get = (propName) => {
|
|
1735
|
+
handlers.get.forEach((cb) => cb(propName));
|
|
1736
|
+
return states.get(propName);
|
|
1737
|
+
};
|
|
1738
|
+
const set = (propName, value) => {
|
|
1739
|
+
const oldValue = states.get(propName);
|
|
1740
|
+
if (shouldUpdate(value, oldValue, propName)) {
|
|
1741
|
+
states.set(propName, value);
|
|
1742
|
+
handlers.set.forEach((cb) => cb(propName, value, oldValue));
|
|
1743
|
+
}
|
|
1744
|
+
};
|
|
1745
|
+
const state = (typeof Proxy === 'undefined'
|
|
1746
|
+
? {}
|
|
1747
|
+
: new Proxy(defaultState, {
|
|
1748
|
+
get(_, propName) {
|
|
1749
|
+
return get(propName);
|
|
1750
|
+
},
|
|
1751
|
+
ownKeys(_) {
|
|
1752
|
+
return Array.from(states.keys());
|
|
1753
|
+
},
|
|
1754
|
+
getOwnPropertyDescriptor() {
|
|
1755
|
+
return {
|
|
1756
|
+
enumerable: true,
|
|
1757
|
+
configurable: true,
|
|
1758
|
+
};
|
|
1759
|
+
},
|
|
1760
|
+
has(_, propName) {
|
|
1761
|
+
return states.has(propName);
|
|
1762
|
+
},
|
|
1763
|
+
set(_, propName, value) {
|
|
1764
|
+
set(propName, value);
|
|
1765
|
+
return true;
|
|
1766
|
+
},
|
|
1767
|
+
}));
|
|
1768
|
+
const on = (eventName, callback) => {
|
|
1769
|
+
handlers[eventName].push(callback);
|
|
1770
|
+
return () => {
|
|
1771
|
+
removeFromArray(handlers[eventName], callback);
|
|
1772
|
+
};
|
|
1773
|
+
};
|
|
1774
|
+
const onChange = (propName, cb) => {
|
|
1775
|
+
const unSet = on('set', (key, newValue) => {
|
|
1776
|
+
if (key === propName) {
|
|
1777
|
+
cb(newValue);
|
|
1778
|
+
}
|
|
1779
|
+
});
|
|
1780
|
+
const unReset = on('reset', () => cb(defaultState[propName]));
|
|
1781
|
+
return () => {
|
|
1782
|
+
unSet();
|
|
1783
|
+
unReset();
|
|
1784
|
+
};
|
|
1785
|
+
};
|
|
1786
|
+
const use = (...subscriptions) => {
|
|
1787
|
+
const unsubs = subscriptions.reduce((unsubs, subscription) => {
|
|
1788
|
+
if (subscription.set) {
|
|
1789
|
+
unsubs.push(on('set', subscription.set));
|
|
1790
|
+
}
|
|
1791
|
+
if (subscription.get) {
|
|
1792
|
+
unsubs.push(on('get', subscription.get));
|
|
1793
|
+
}
|
|
1794
|
+
if (subscription.reset) {
|
|
1795
|
+
unsubs.push(on('reset', subscription.reset));
|
|
1796
|
+
}
|
|
1797
|
+
if (subscription.dispose) {
|
|
1798
|
+
unsubs.push(on('dispose', subscription.dispose));
|
|
1799
|
+
}
|
|
1800
|
+
return unsubs;
|
|
1801
|
+
}, []);
|
|
1802
|
+
return () => unsubs.forEach((unsub) => unsub());
|
|
1803
|
+
};
|
|
1804
|
+
const forceUpdate = (key) => {
|
|
1805
|
+
const oldValue = states.get(key);
|
|
1806
|
+
handlers.set.forEach((cb) => cb(key, oldValue, oldValue));
|
|
1807
|
+
};
|
|
1808
|
+
return {
|
|
1809
|
+
state,
|
|
1810
|
+
get,
|
|
1811
|
+
set,
|
|
1812
|
+
on,
|
|
1813
|
+
onChange,
|
|
1814
|
+
use,
|
|
1815
|
+
dispose,
|
|
1816
|
+
reset,
|
|
1817
|
+
forceUpdate,
|
|
1818
|
+
};
|
|
1819
|
+
};
|
|
1820
|
+
const removeFromArray = (array, item) => {
|
|
1821
|
+
const index = array.indexOf(item);
|
|
1822
|
+
if (index >= 0) {
|
|
1823
|
+
array[index] = array[array.length - 1];
|
|
1824
|
+
array.length--;
|
|
1825
|
+
}
|
|
1826
|
+
};
|
|
1827
|
+
|
|
1828
|
+
const createStore = (defaultState, shouldUpdate) => {
|
|
1829
|
+
const map = createObservableMap(defaultState, shouldUpdate);
|
|
1830
|
+
map.use(stencilSubscription());
|
|
1831
|
+
return map;
|
|
1832
|
+
};
|
|
1365
1833
|
|
|
1366
1834
|
const { state: state$3 } = createStore({
|
|
1367
1835
|
group: new Map(),
|
|
@@ -1556,15 +2024,43 @@ const checkBoxGroupState = {
|
|
|
1556
2024
|
changeIndeterminate,
|
|
1557
2025
|
};
|
|
1558
2026
|
|
|
1559
|
-
const
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
2027
|
+
const checkboxGroupStyle = ce({
|
|
2028
|
+
slots: {
|
|
2029
|
+
host: [
|
|
2030
|
+
"bcm-checkbox-group",
|
|
2031
|
+
"bcm-ui-element bcm-ui-inputs",
|
|
2032
|
+
"tw-flex tw-flex-col tw-items-start tw-w-full",
|
|
2033
|
+
"tw-mb-2 tw-gap-1",
|
|
2034
|
+
],
|
|
2035
|
+
checkboxGroupContainer: [
|
|
2036
|
+
"bcm-checkbox-group__container",
|
|
2037
|
+
"tw-flex tw-w-full",
|
|
2038
|
+
"tw-items-start tw-justify-start",
|
|
2039
|
+
],
|
|
2040
|
+
},
|
|
2041
|
+
variants: {
|
|
2042
|
+
direction: {
|
|
2043
|
+
vertical: {
|
|
2044
|
+
checkboxGroupContainer: ["tw-flex-col tw-gap-2"],
|
|
2045
|
+
},
|
|
2046
|
+
horizontal: {
|
|
2047
|
+
checkboxGroupContainer: ["tw-flex-row tw-gap-2.5"],
|
|
2048
|
+
},
|
|
2049
|
+
},
|
|
2050
|
+
indeterminate: {
|
|
2051
|
+
true: {
|
|
2052
|
+
checkboxGroupContainer: ["indeterminate tw-pt-2 tw-border-0 tw-border-t tw-border-solid tw-border-color"],
|
|
2053
|
+
}
|
|
2054
|
+
},
|
|
2055
|
+
},
|
|
2056
|
+
defaultVariants: {
|
|
2057
|
+
direction: "vertical",
|
|
2058
|
+
fullWidth: false,
|
|
2059
|
+
indeterminate: false,
|
|
2060
|
+
},
|
|
2061
|
+
});
|
|
1566
2062
|
|
|
1567
|
-
var __decorate$
|
|
2063
|
+
var __decorate$a = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
1568
2064
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1569
2065
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
1570
2066
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -1732,96 +2228,121 @@ const BcmCheckboxGroup = class {
|
|
|
1732
2228
|
}
|
|
1733
2229
|
render() {
|
|
1734
2230
|
const items = this.getItems();
|
|
1735
|
-
const { disabled, captionType, label, indeterminate, indeterminateState, required, direction,
|
|
1736
|
-
const
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
});
|
|
1740
|
-
const bcmChechboxGroupContainer = classnames('bcm-checkbox-group__container', optionType, {
|
|
1741
|
-
[direction]: optionType === 'default',
|
|
1742
|
-
indeterminate,
|
|
1743
|
-
hidden,
|
|
1744
|
-
'full-width': fullWidth
|
|
2231
|
+
const { disabled, captionType, label, indeterminate, indeterminateState, required, direction, gap } = items;
|
|
2232
|
+
const { host, checkboxGroupContainer } = checkboxGroupStyle({
|
|
2233
|
+
direction,
|
|
2234
|
+
indeterminate
|
|
1745
2235
|
});
|
|
1746
|
-
return (h$2(Host, { class:
|
|
1747
|
-
h$2("
|
|
1748
|
-
h$2("bcm-checkbox", {
|
|
2236
|
+
return (h$2(Host, { class: host() }, h$2("span", { hidden: true, id: `bcm-checkbox-group__items-${this._id}` }, h$2("slot", null)), label && h$2("bcm-label", { type: captionType, value: label, required: required }), indeterminate &&
|
|
2237
|
+
h$2("bcm-checkbox", { onClick: (e) => { this.indeterminateClick(), e.preventDefault(); }, "no-caption": true, "no-margin": true, id: "bcm-indeterminate-element", indeterminate: indeterminateState, disabled: disabled }, "Check All"), h$2("div", { class: checkboxGroupContainer(), style: gap && ({ 'gap': gap }) }, items.childs && items.childs.map((checkbox) => {
|
|
2238
|
+
return (h$2("bcm-checkbox", { id: checkbox.id, name: checkbox.name, color: checkbox.color, checked: checkbox.checked, disabled: checkbox.disabled, readonly: checkbox.readonly, required: checkbox.required, noCaption: checkbox.noCaption, "no-margin": true, size: checkbox.size, "full-width": checkbox.fullWidth, onClick: (e) => { !checkbox.disabled && !checkbox.readonly && (this.changeCheckBox(checkbox.id), e.preventDefault()); } }, checkbox.slot || checkbox.label));
|
|
2239
|
+
}))));
|
|
1749
2240
|
}
|
|
1750
2241
|
get el() { return getElement(this); }
|
|
1751
2242
|
static get watchers() { return {
|
|
1752
2243
|
"items": ["handleItemsChange"]
|
|
1753
2244
|
}; }
|
|
1754
2245
|
};
|
|
1755
|
-
__decorate$
|
|
2246
|
+
__decorate$a([
|
|
1756
2247
|
IsLoad()
|
|
1757
2248
|
], BcmCheckboxGroup.prototype, "el", void 0);
|
|
1758
|
-
BcmCheckboxGroup.style = groupCss;
|
|
1759
|
-
|
|
1760
|
-
const checkboxCss = "@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}*{box-sizing:border-box}.bcm-checkbox{outline:none;border:none;--bcm-checkbox-primary-color-default:var(--bcm-new-ds-color-blue-500);--bcm-checkbox-secondary-color-default:var(--bcm-new-ds-color-white);--bcm-checkbox-primary-color-hover:var(--bcm-new-ds-color-blue-600);--bcm-checkbox-secondary-color-hover:var(--bcm-new-ds-color-slate-50);--bcm-checkbox-primary-color-focus-visible:var(--bcm-new-ds-color-blue-800);--bcm-checkbox-secondary-color-focus-visible:var(--bcm-new-ds-color-slate-50);--bcm-checkbox-primary-color-active:var(--bcm-new-ds-color-blue-700);--bcm-checkbox-secondary-color-active:var(--bcm-new-ds-color-slate-50);--bcm-checkbox-primary-color-disabled:var(--bcm-new-ds-color-slate-300);--bcm-checkbox-secondary-color-disabled:var(--bcm-new-ds-color-slate-200);display:inline-flex;width:fit-content;flex-direction:column;margin-bottom:8px}.bcm-checkbox:focus,.bcm-checkbox:hover,.bcm-checkbox:active{outline:none;border:none}.bcm-checkbox *{box-sizing:border-box}.bcm-checkbox input[type=radio],.bcm-checkbox input[type=checkbox]{-webkit-appearance:none;appearance:none;background-color:#fff;margin:0;display:none}.bcm-checkbox__input{display:flex;flex-direction:row;align-items:flex-start;justify-content:flex-start;flex-wrap:nowrap;padding-top:4px}.bcm-checkbox.hidden{display:none}.bcm-checkbox :hover{cursor:pointer}.bcm-checkbox[disabled] :hover,.bcm-checkbox.disabled :hover{cursor:not-allowed}.bcm-checkbox .slot{font-family:\"Inter\", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;font-weight:500;color:var(--bcm-new-ds-color-slate-600)}.bcm-checkbox .slot:not(:empty){margin-left:8px;margin-right:8px}.bcm-checkbox-size-small .slot{font-size:12px;line-height:calc(12px + 8px);margin-top:-2.5px}.bcm-checkbox-size-small .bcm-checkbox__input{min-height:calc(24px - 4px)}.bcm-checkbox-size-small .bcm-checkbox__label-icon{width:14px;height:14px;min-width:14px;font-size:calc(10px - 2px)}.bcm-checkbox-size-medium .slot{font-size:calc(12px + 1px);line-height:calc(12px + 8px);margin-top:-1.5px}.bcm-checkbox-size-medium .bcm-checkbox__input{min-height:calc(32px - 4px)}.bcm-checkbox-size-medium .bcm-checkbox__label-icon{width:16px;height:16px;min-width:16px;font-size:10px}.bcm-checkbox-size-large .slot{font-size:16px;line-height:calc(16px + 8px);margin-top:-1.5px}.bcm-checkbox-size-large .bcm-checkbox__input{min-height:calc(32px - 4px)}.bcm-checkbox-size-large .bcm-checkbox__label-icon{width:18px;height:18px;min-width:18px;font-size:12px}.bcm-checkbox__label{display:flex;flex-direction:row;align-items:flex-start;justify-content:flex-start;flex-wrap:nowrap}.bcm-checkbox__label-icon{display:flex;flex-direction:column;align-items:center;justify-content:center;flex-wrap:nowrap;border-width:1px;border-style:solid;border-radius:2px}.bcm-checkbox__label-icon-indeterminate{position:relative}.bcm-checkbox__label-icon-indeterminate:after{content:\"\";display:block;position:absolute;width:70%;height:1.5px;background:var(--bcm-new-ds-color-white)}.bcm-checkbox__label-icon.bcm-radio__icon{width:16px;height:16px;box-sizing:border-box;border-radius:100px}.bcm-checkbox__label-icon.bcm-radio__icon .bcm-radio__icon-inner{width:10px;height:10px;border-radius:100px;background-color:var(--bcm-new-ds-color-white)}.bcm-checkbox .bcm-checkbox__label-icon{background:var(--bcm-checkbox-secondary-color-default);color:var(--bcm-checkbox-secondary-color-default);border-color:var(--bcm-new-ds-color-slate-300)}.bcm-checkbox .bcm-checkbox__label-icon-checked,.bcm-checkbox .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-new-ds-color-white);background-color:var(--bcm-checkbox-primary-color-default);border-color:var(--bcm-checkbox-primary-color-default)}.bcm-checkbox .bcm-checkbox__label-icon-checked.bcm-radio__icon,.bcm-checkbox .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon{border-color:var(--bcm-checkbox-primary-color-default);background-color:var(--bcm-checkbox-secondary-color-default)}.bcm-checkbox .bcm-checkbox__label-icon-checked.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon .bcm-radio__icon-inner{background-color:var(--bcm-checkbox-primary-color-default)}.bcm-checkbox .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-checkbox-primary-color-default)}.bcm-checkbox:hover .bcm-checkbox__label-icon{background:var(--bcm-checkbox-secondary-color-hover);color:var(--bcm-checkbox-secondary-color-hover);border-color:var(--bcm-checkbox-primary-color-hover)}.bcm-checkbox:hover .bcm-checkbox__label-icon-checked,.bcm-checkbox:hover .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-new-ds-color-white);background-color:var(--bcm-checkbox-primary-color-hover);border-color:var(--bcm-checkbox-primary-color-hover)}.bcm-checkbox:hover .bcm-checkbox__label-icon-checked.bcm-radio__icon,.bcm-checkbox:hover .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon{border-color:var(--bcm-checkbox-primary-color-hover);background-color:var(--bcm-checkbox-secondary-color-hover)}.bcm-checkbox:hover .bcm-checkbox__label-icon-checked.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox:hover .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon .bcm-radio__icon-inner{background-color:var(--bcm-checkbox-primary-color-hover)}.bcm-checkbox:hover .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-checkbox-primary-color-hover)}.bcm-checkbox:focus-visible .bcm-checkbox__label-icon{background:var(--bcm-checkbox-secondary-color-focus-visible);color:var(--bcm-checkbox-secondary-color-focus-visible);border-color:var(--bcm-checkbox-primary-color-focus-visible)}.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-checked,.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-new-ds-color-white);background-color:var(--bcm-checkbox-primary-color-focus-visible);border-color:var(--bcm-checkbox-primary-color-focus-visible)}.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-checked.bcm-radio__icon,.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon{border-color:var(--bcm-checkbox-primary-color-focus-visible);background-color:var(--bcm-checkbox-secondary-color-focus-visible)}.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-checked.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon .bcm-radio__icon-inner{background-color:var(--bcm-checkbox-primary-color-focus-visible)}.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-checkbox-primary-color-focus-visible)}.bcm-checkbox:active .bcm-checkbox__label-icon{background:var(--bcm-checkbox-secondary-color-active);color:var(--bcm-checkbox-secondary-color-active);border-color:var(--bcm-checkbox-primary-color-active)}.bcm-checkbox:active .bcm-checkbox__label-icon-checked,.bcm-checkbox:active .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-new-ds-color-white);background-color:var(--bcm-checkbox-primary-color-active);border-color:var(--bcm-checkbox-primary-color-active)}.bcm-checkbox:active .bcm-checkbox__label-icon-checked.bcm-radio__icon,.bcm-checkbox:active .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon{border-color:var(--bcm-checkbox-primary-color-active);background-color:var(--bcm-checkbox-secondary-color-active)}.bcm-checkbox:active .bcm-checkbox__label-icon-checked.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox:active .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon .bcm-radio__icon-inner{background-color:var(--bcm-checkbox-primary-color-active)}.bcm-checkbox:active .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-checkbox-primary-color-active)}.bcm-checkbox[disabled] .bcm-checkbox__label-icon,.bcm-checkbox.disabled .bcm-checkbox__label-icon{background:var(--bcm-checkbox-secondary-color-disabled);color:var(--bcm-checkbox-secondary-color-disabled);border-color:var(--bcm-checkbox-primary-color-disabled)}.bcm-checkbox[disabled] .bcm-checkbox__label-icon-checked,.bcm-checkbox[disabled] .bcm-checkbox__label-icon-indeterminate,.bcm-checkbox.disabled .bcm-checkbox__label-icon-checked,.bcm-checkbox.disabled .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-new-ds-color-white);background-color:var(--bcm-checkbox-primary-color-disabled);border-color:var(--bcm-checkbox-primary-color-disabled)}.bcm-checkbox[disabled] .bcm-checkbox__label-icon-checked.bcm-radio__icon,.bcm-checkbox[disabled] .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon,.bcm-checkbox.disabled .bcm-checkbox__label-icon-checked.bcm-radio__icon,.bcm-checkbox.disabled .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon{border-color:var(--bcm-checkbox-primary-color-disabled);background-color:var(--bcm-checkbox-secondary-color-disabled)}.bcm-checkbox[disabled] .bcm-checkbox__label-icon-checked.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox[disabled] .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox.disabled .bcm-checkbox__label-icon-checked.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox.disabled .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon .bcm-radio__icon-inner{background-color:var(--bcm-checkbox-primary-color-disabled)}.bcm-checkbox[disabled] .bcm-checkbox__label-icon-indeterminate,.bcm-checkbox.disabled .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-checkbox-primary-color-disabled)}.bcm-checkbox[no-margin] .bcm-checkbox__input{margin:0;min-height:0;padding:0}";
|
|
1761
2249
|
|
|
1762
|
-
const
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
}
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
2250
|
+
const chipStyle = ce({
|
|
2251
|
+
slots: {
|
|
2252
|
+
base: "",
|
|
2253
|
+
hostStyle: ["bcm-chip bcm-ui-element bcm-ui-action tw-w-fit", "tw-inline-flex tw-items-center tw-gap-1 tw-px-2", "tw-rounded-[--bcm-chip-radius] tw-border tw-border-solid", "tw-outline-none"],
|
|
2254
|
+
avatarStyle: "",
|
|
2255
|
+
actionStyle: "",
|
|
2256
|
+
},
|
|
2257
|
+
variants: {
|
|
2258
|
+
size: {
|
|
2259
|
+
small: {
|
|
2260
|
+
hostStyle: "bcm-chip__size-small tw-text-size-3 tw-leading-none tw-min-h-4",
|
|
2261
|
+
avatarStyle: "!tw-w-3 !tw-h-3",
|
|
2262
|
+
},
|
|
2263
|
+
medium: {
|
|
2264
|
+
hostStyle: "bcm-chip__size-medium tw-text-size-4 tw-py-0.5 tw-leading-none tw-min-h-6",
|
|
2265
|
+
avatarStyle: "!tw-w-4 !tw-h-4",
|
|
2266
|
+
},
|
|
2267
|
+
large: {
|
|
2268
|
+
hostStyle: "bcm-chip__size-large tw-text-size-5 tw-py-1 tw-leading-none tw-min-h-8",
|
|
2269
|
+
avatarStyle: "!tw-w-6 !tw-h-6",
|
|
2270
|
+
},
|
|
2271
|
+
},
|
|
2272
|
+
kind: {
|
|
2273
|
+
filled: {
|
|
2274
|
+
hostStyle: "bcm-chip__kind-filled",
|
|
2275
|
+
},
|
|
2276
|
+
outline: {
|
|
2277
|
+
hostStyle: "bcm-chip__kind-outline",
|
|
2278
|
+
},
|
|
2279
|
+
text: {
|
|
2280
|
+
hostStyle: "bcm-chip__kind-text",
|
|
2281
|
+
},
|
|
2282
|
+
},
|
|
2283
|
+
type: {
|
|
2284
|
+
default: {
|
|
2285
|
+
hostStyle: "bcm-chip__type-default ",
|
|
2286
|
+
},
|
|
2287
|
+
addable: {
|
|
2288
|
+
hostStyle: "bcm-chip__type-addable",
|
|
2289
|
+
},
|
|
2290
|
+
dismissable: {
|
|
2291
|
+
hostStyle: "bcm-chip__type-dismissable",
|
|
2292
|
+
},
|
|
2293
|
+
},
|
|
2294
|
+
avatar: {
|
|
2295
|
+
true: {
|
|
2296
|
+
hostStyle: "bcm-chip--avatar",
|
|
2297
|
+
avatarStyle: "!-tw-ml-1",
|
|
2298
|
+
},
|
|
2299
|
+
false: {},
|
|
2300
|
+
},
|
|
2301
|
+
disabled: {
|
|
2302
|
+
true: {
|
|
2303
|
+
hostStyle: "bcm-chip--disabled disabled tw-cursor-not-allowed",
|
|
2304
|
+
},
|
|
2305
|
+
false: {
|
|
2306
|
+
hostStyle: [
|
|
2307
|
+
"tw-bg-[--bcm-chip-bg] tw-text-[--bcm-chip-text] tw-border-[--bcm-chip-border]",
|
|
2308
|
+
"hover:tw-bg-[--bcm-chip-bg-hover] hover:tw-border-[--bcm-chip-border-hover]",
|
|
2309
|
+
"active:tw-bg-[--bcm-chip-bg-active] active:tw-border-[--bcm-chip-border-active]",
|
|
2310
|
+
"focus-visible:tw-ring",
|
|
2311
|
+
],
|
|
2312
|
+
actionStyle: [
|
|
2313
|
+
"tw-cursor-pointer",
|
|
2314
|
+
"hover:tw-text-[--bcm-chip-text-hover]",
|
|
2315
|
+
"active:tw-text-[--bcm-chip-text-active]",
|
|
2316
|
+
],
|
|
2317
|
+
},
|
|
2318
|
+
},
|
|
2319
|
+
},
|
|
2320
|
+
compoundVariants: [
|
|
2321
|
+
{
|
|
2322
|
+
disabled: true,
|
|
2323
|
+
kind: ["filled", "outline"],
|
|
2324
|
+
class: {
|
|
2325
|
+
hostStyle: "tw-bg-color-disabled tw-text-color-disabled tw-border-color-disabled",
|
|
2326
|
+
},
|
|
2327
|
+
},
|
|
2328
|
+
{
|
|
2329
|
+
disabled: true,
|
|
2330
|
+
kind: ["text"],
|
|
2331
|
+
class: {
|
|
2332
|
+
hostStyle: "tw-text-color-disabled tw-border-transparent tw-bg-transparent",
|
|
2333
|
+
},
|
|
2334
|
+
},
|
|
2335
|
+
],
|
|
2336
|
+
defaultVariants: {
|
|
2337
|
+
size: "medium",
|
|
2338
|
+
disabled: false,
|
|
2339
|
+
type: "default",
|
|
2340
|
+
avatar: false,
|
|
2341
|
+
kind: "filled",
|
|
2342
|
+
},
|
|
2343
|
+
});
|
|
1823
2344
|
|
|
1824
|
-
const chipCss = "@import url(\"https://fonts.googleapis.com/css?family=Roboto:400,500\")
|
|
2345
|
+
const chipCss = "@import url(\"https://fonts.googleapis.com/css?family=Roboto:400,500\");.size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}:root{--bcm-chip-text:var(--bcm-ui-color-text-default);--bcm-chip-text-hover:var(--bcm-ui-color-text-default-hover);--bcm-chip-text-active:var(--bcm-ui-color-text-default-active);--bcm-chip-bg:var(--bcm-ui-color-background-default-default);--bcm-chip-bg-hover:var(--bcm-ui-color-background-default-hover);--bcm-chip-bg-active:var(--bcm-ui-color-background-default-active);--bcm-chip-border:var(--bcm-ui-color-background-default-default);--bcm-chip-border-hover:var(--bcm-ui-color-background-default-hover);--bcm-chip-border-active:var(--bcm-ui-color-background-default-active);--bcm-chip-radius:var(--bcm-ui-radius)}";
|
|
1825
2346
|
|
|
1826
2347
|
const BcmChip = class {
|
|
1827
2348
|
constructor(hostRef) {
|
|
@@ -1832,7 +2353,8 @@ const BcmChip = class {
|
|
|
1832
2353
|
this.bcmChipSelectItem = createEvent(this, "bcm-chip-select-item", 7);
|
|
1833
2354
|
this._id = Generate.UID();
|
|
1834
2355
|
this.type = "default";
|
|
1835
|
-
this.
|
|
2356
|
+
this.kind = "filled";
|
|
2357
|
+
this.size = Bcm.Size.medium;
|
|
1836
2358
|
this.avatar = undefined;
|
|
1837
2359
|
this.icon = undefined;
|
|
1838
2360
|
this.disabled = undefined;
|
|
@@ -1841,24 +2363,6 @@ const BcmChip = class {
|
|
|
1841
2363
|
this.value = undefined;
|
|
1842
2364
|
this.data = [];
|
|
1843
2365
|
}
|
|
1844
|
-
// @ts-ignore
|
|
1845
|
-
setColor() {
|
|
1846
|
-
if (!this.color && !this.selected)
|
|
1847
|
-
return;
|
|
1848
|
-
const color = this.selected ? "indigo" : this.color; // Important: Find a solution for this in V3! ( selected ? this.color : "indigo" )
|
|
1849
|
-
return {
|
|
1850
|
-
"--bcm-chip-color": ColorHelper.dsColor(color + "-700"),
|
|
1851
|
-
"--bcm-chip-color-hover": ColorHelper.dsColor(color + "-700"),
|
|
1852
|
-
"--bcm-chip-color-focus": ColorHelper.dsColor(color + "-700"),
|
|
1853
|
-
"--bcm-chip-color-active": ColorHelper.dsColor(color + "-700"),
|
|
1854
|
-
"--bcm-chip-color-disabled": ColorHelper.dsColor("slate" + "-300"),
|
|
1855
|
-
"--bcm-chip-background-color": ColorHelper.dsColor(color + "-100"),
|
|
1856
|
-
"--bcm-chip-background-color-hover": ColorHelper.dsColor(color + "-200"),
|
|
1857
|
-
"--bcm-chip-background-color-focus": ColorHelper.dsColor(color + "-300"),
|
|
1858
|
-
"--bcm-chip-background-color-active": ColorHelper.dsColor(color + "-200"),
|
|
1859
|
-
"--bcm-chip-background-color-disabled": ColorHelper.dsColor("slate" + "-100"),
|
|
1860
|
-
};
|
|
1861
|
-
}
|
|
1862
2366
|
handleDismiss(e) {
|
|
1863
2367
|
e.stopPropagation();
|
|
1864
2368
|
e.preventDefault();
|
|
@@ -1870,7 +2374,6 @@ const BcmChip = class {
|
|
|
1870
2374
|
this.bcmChipAddable.emit(this.el);
|
|
1871
2375
|
}
|
|
1872
2376
|
listSelectedItems(e) {
|
|
1873
|
-
// To be added to v3
|
|
1874
2377
|
e.stopPropagation();
|
|
1875
2378
|
e.preventDefault();
|
|
1876
2379
|
if (e.detail) {
|
|
@@ -1880,14 +2383,48 @@ const BcmChip = class {
|
|
|
1880
2383
|
}
|
|
1881
2384
|
}
|
|
1882
2385
|
render() {
|
|
1883
|
-
const { type, size, avatar, disabled, color } = this;
|
|
1884
|
-
const
|
|
1885
|
-
|
|
1886
|
-
|
|
2386
|
+
const { type, size, avatar, disabled, color, kind, selected } = this;
|
|
2387
|
+
const { hostStyle, avatarStyle, actionStyle } = chipStyle({
|
|
2388
|
+
size,
|
|
2389
|
+
disabled,
|
|
2390
|
+
type,
|
|
2391
|
+
kind,
|
|
2392
|
+
avatar: avatar ? true : false,
|
|
2393
|
+
});
|
|
2394
|
+
const tones = {
|
|
2395
|
+
filled: {
|
|
2396
|
+
"700": ["text"],
|
|
2397
|
+
"800": ["text-hover"],
|
|
2398
|
+
"900": ["text-active"],
|
|
2399
|
+
"100": ["bg", "border"],
|
|
2400
|
+
"200": ["bg-hover", "border-hover"],
|
|
2401
|
+
"300": ["bg-active", "border-active"],
|
|
2402
|
+
},
|
|
2403
|
+
outline: {
|
|
2404
|
+
"700": ["text"],
|
|
2405
|
+
"800": ["text-hover"],
|
|
2406
|
+
"900": ["text-active"],
|
|
2407
|
+
"transparent": ["bg"],
|
|
2408
|
+
"200": ["bg-hover"],
|
|
2409
|
+
"300": ["bg-active", "border", "border-hover", "border-active"],
|
|
2410
|
+
},
|
|
2411
|
+
text: {
|
|
2412
|
+
"700": ["text"],
|
|
2413
|
+
"800": ["text-hover"],
|
|
2414
|
+
"900": ["text-active"],
|
|
2415
|
+
"transparent": ["bg", "border"],
|
|
2416
|
+
"200": ["bg-hover", "border-hover"],
|
|
2417
|
+
"300": ["bg-active", "border-active"],
|
|
2418
|
+
},
|
|
2419
|
+
};
|
|
2420
|
+
const dc = Generate.getTwColor({
|
|
2421
|
+
color: selected ? "indigo" : color || "slate",
|
|
2422
|
+
tones: tones[kind],
|
|
2423
|
+
variable: `--bcm-chip`,
|
|
1887
2424
|
});
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
2425
|
+
const style = Object.assign({}, dc);
|
|
2426
|
+
return (h$2(Host, { class: hostStyle(), tabindex: "0", disabled: disabled, style: style, onClick: e => this.bcmChipSelect.emit(e) }, selected && h$2("i", { class: "fal fa-check" }), avatar && h$2("bcm-avatar", Object.assign({ class: avatarStyle() }, (color && { color }), (avatar && { image: avatar }))), type === "addable" && (h$2("div", { class: actionStyle(), onClick: e => this.handleAddable(e), title: "Add button" }, h$2("i", { class: "far fa-plus" }))), h$2("slot", null), type === "dismissable" && (h$2("div", { class: actionStyle(), onClick: e => this.handleDismiss(e), title: "Dismiss button" }, h$2("i", { class: "fal fa-times" }))), this.data &&
|
|
2427
|
+
this.data.length > 0 && (h$2("bcm-list", { "onBcm-change": e => this.listSelectedItems(e), id: this._id + "-list", data: this.data, linkedComponent: this._id, searchable: true, highlight: true }))));
|
|
1891
2428
|
}
|
|
1892
2429
|
get el() { return getElement(this); }
|
|
1893
2430
|
};
|
|
@@ -19159,6 +19696,19 @@ const BcmCollapseGroup = class {
|
|
|
19159
19696
|
get el() { return getElement(this); }
|
|
19160
19697
|
};
|
|
19161
19698
|
|
|
19699
|
+
const colorInputStyle = ce({
|
|
19700
|
+
slots: {
|
|
19701
|
+
host: [
|
|
19702
|
+
"bcm-color-input",
|
|
19703
|
+
"bcm-ui-element bcm-ui-inputs",
|
|
19704
|
+
"tw-block",
|
|
19705
|
+
],
|
|
19706
|
+
prefixIcon: "tw-flex tw-h-4 tw-w-4 tw-items-center tw-justify-center tw-rounded-full tw-border tw-border-gray-100",
|
|
19707
|
+
},
|
|
19708
|
+
variants: {},
|
|
19709
|
+
defaultVariants: {},
|
|
19710
|
+
});
|
|
19711
|
+
|
|
19162
19712
|
const BcmColorInput = class {
|
|
19163
19713
|
constructor(hostRef) {
|
|
19164
19714
|
registerInstance(this, hostRef);
|
|
@@ -19205,7 +19755,8 @@ const BcmColorInput = class {
|
|
|
19205
19755
|
return typeof window !== "undefined" && "EyeDropper" in window;
|
|
19206
19756
|
}
|
|
19207
19757
|
render() {
|
|
19208
|
-
|
|
19758
|
+
const { host, prefixIcon } = colorInputStyle();
|
|
19759
|
+
return (h$2(Host, { class: host() }, h$2("bcm-input", { id: this._id + "-color", fullWidth: this.fullWidth, label: this.label, placeholder: this.placeholder, type: "text", "onBcm-change": e => this.handleInputChanged(e), value: this.value }, h$2("i", { slot: "prefix", class: prefixIcon(), style: {
|
|
19209
19760
|
backgroundColor: this.value,
|
|
19210
19761
|
} }), this.isEyeDropperSupported() && h$2("i", { slot: "suffix", class: "far fa-eye-dropper", onClick: () => this.eyeDropper() })), h$2("bcm-linked", { targetId: this._id + "-color-container" }, h$2("bcm-colorful", { id: this._id + "-picker", color: this.value, onBcmChange: e => this.handleChange(e.detail) }))));
|
|
19211
19762
|
}
|
|
@@ -19214,7 +19765,7 @@ const BcmColorInput = class {
|
|
|
19214
19765
|
|
|
19215
19766
|
function u$1(){return (u$1=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);}return e}).apply(this,arguments)}function c$1(e,r){if(null==e)return {};var t,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r.indexOf(t=a[n])>=0||(o[t]=e[t]);return o}function i(e){var t=react.useRef(e),n=react.useRef(function(e){t.current&&t.current(e);});return t.current=e,n.current}var s=function(e,r,t){return void 0===r&&(r=0),void 0===t&&(t=1),e>t?t:e<r?r:e},f$1=function(e){return "touches"in e},v$1=function(e){return e&&e.ownerDocument.defaultView||self},d$1=function(e,r,t){var n=e.getBoundingClientRect(),o=f$1(r)?function(e,r){for(var t=0;t<e.length;t++)if(e[t].identifier===r)return e[t];return e[0]}(r.touches,t):r;return {left:s((o.pageX-(n.left+v$1(e).pageXOffset))/n.width),top:s((o.pageY-(n.top+v$1(e).pageYOffset))/n.height)}},h$1=function(e){!f$1(e)&&e.preventDefault();},m$1=react.memo(function(o){var a=o.onMove,l=o.onKey,s=c$1(o,["onMove","onKey"]),m=react.useRef(null),g=i(a),p=i(l),b=react.useRef(null),_=react.useRef(!1),x=react.useMemo(function(){var e=function(e){h$1(e),(f$1(e)?e.touches.length>0:e.buttons>0)&&m.current?g(d$1(m.current,e,b.current)):t(!1);},r=function(){return t(!1)};function t(t){var n=_.current,o=v$1(m.current),a=t?o.addEventListener:o.removeEventListener;a(n?"touchmove":"mousemove",e),a(n?"touchend":"mouseup",r);}return [function(e){var r=e.nativeEvent,n=m.current;if(n&&(h$1(r),!function(e,r){return r&&!f$1(e)}(r,_.current)&&n)){if(f$1(r)){_.current=!0;var o=r.changedTouches||[];o.length&&(b.current=o[0].identifier);}n.focus(),g(d$1(n,r,b.current)),t(!0);}},function(e){var r=e.which||e.keyCode;r<37||r>40||(e.preventDefault(),p({left:39===r?.05:37===r?-.05:0,top:40===r?.05:38===r?-.05:0}));},t]},[p,g]),C=x[0],E=x[1],H=x[2];return react.useEffect(function(){return H},[H]),react.createElement("div",u$1({},s,{onTouchStart:C,onMouseDown:C,className:"react-colorful__interactive",ref:m,onKeyDown:E,tabIndex:0,role:"slider"}))}),g$1=function(e){return e.filter(Boolean).join(" ")},p$1=function(r){var t=r.color,n=r.left,o=r.top,a=void 0===o?.5:o,l=g$1(["react-colorful__pointer",r.className]);return react.createElement("div",{className:l,style:{top:100*a+"%",left:100*n+"%"}},react.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},b$1=function(e,r,t){return void 0===r&&(r=0),void 0===t&&(t=Math.pow(10,r)),Math.round(t*e)/t},x=function(e){return L(C(e))},C=function(e){return "#"===e[0]&&(e=e.substring(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?b$1(parseInt(e[3]+e[3],16)/255,2):1}:{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16),a:8===e.length?b$1(parseInt(e.substring(6,8),16)/255,2):1}},w=function(e){return K(I(e))},y=function(e){var r=e.s,t=e.v,n=e.a,o=(200-r)*t/100;return {h:b$1(e.h),s:b$1(o>0&&o<200?r*t/100/(o<=100?o:200-o)*100:0),l:b$1(o/2),a:b$1(n,2)}},q$1=function(e){var r=y(e);return "hsl("+r.h+", "+r.s+"%, "+r.l+"%)"},I=function(e){var r=e.h,t=e.s,n=e.v,o=e.a;r=r/360*6,t/=100,n/=100;var a=Math.floor(r),l=n*(1-t),u=n*(1-(r-a)*t),c=n*(1-(1-r+a)*t),i=a%6;return {r:b$1(255*[n,u,l,l,c,n][i]),g:b$1(255*[c,n,n,u,l,l][i]),b:b$1(255*[l,l,c,n,n,u][i]),a:b$1(o,2)}},D=function(e){var r=e.toString(16);return r.length<2?"0"+r:r},K=function(e){var r=e.r,t=e.g,n=e.b,o=e.a,a=o<1?D(b$1(255*o)):"";return "#"+D(r)+D(t)+D(n)+a},L=function(e){var r=e.r,t=e.g,n=e.b,o=e.a,a=Math.max(r,t,n),l=a-Math.min(r,t,n),u=l?a===r?(t-n)/l:a===t?2+(n-r)/l:4+(r-t)/l:0;return {h:b$1(60*(u<0?u+6:u)),s:b$1(a?l/a*100:0),v:b$1(a/255*100),a:o}},S=react.memo(function(r){var t=r.hue,n=r.onChange,o=g$1(["react-colorful__hue",r.className]);return react.createElement("div",{className:o},react.createElement(m$1,{onMove:function(e){n({h:360*e.left});},onKey:function(e){n({h:s(t+360*e.left,0,360)});},"aria-label":"Hue","aria-valuenow":b$1(t),"aria-valuemax":"360","aria-valuemin":"0"},react.createElement(p$1,{className:"react-colorful__hue-pointer",left:t/360,color:q$1({h:t,s:100,v:100,a:1})})))}),T=react.memo(function(r){var t=r.hsva,n=r.onChange,o={backgroundColor:q$1({h:t.h,s:100,v:100,a:1})};return react.createElement("div",{className:"react-colorful__saturation",style:o},react.createElement(m$1,{onMove:function(e){n({s:100*e.left,v:100-100*e.top});},onKey:function(e){n({s:s(t.s+100*e.left,0,100),v:s(t.v-100*e.top,0,100)});},"aria-label":"Color","aria-valuetext":"Saturation "+b$1(t.s)+"%, Brightness "+b$1(t.v)+"%"},react.createElement(p$1,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:q$1(t)})))}),F=function(e,r){if(e===r)return !0;for(var t in e)if(e[t]!==r[t])return !1;return !0},X=function(e,r){return e.toLowerCase()===r.toLowerCase()||F(C(e),C(r))};function Y(e,t,l){var u=i(l),c=react.useState(function(){return e.toHsva(t)}),s=c[0],f=c[1],v=react.useRef({color:t,hsva:s});react.useEffect(function(){if(!e.equal(t,v.current.color)){var r=e.toHsva(t);v.current={hsva:r,color:t},f(r);}},[t,e]),react.useEffect(function(){var r;F(s,v.current.hsva)||e.equal(r=e.fromHsva(s),v.current.color)||(v.current={hsva:s,color:r},u(r));},[s,e,u]);var d=react.useCallback(function(e){f(function(r){return Object.assign({},r,e)});},[]);return [s,d]}var V="undefined"!=typeof window?react.useLayoutEffect:react.useEffect,$=function(){return ("undefined"!=typeof __webpack_nonce__?__webpack_nonce__:void 0)},J=new Map,Q=function(e){V(function(){var r=e.current?e.current.ownerDocument:document;if(void 0!==r&&!J.has(r)){var t=r.createElement("style");t.innerHTML='.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>\')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}',J.set(r,t);var n=$();n&&t.setAttribute("nonce",n),r.head.appendChild(t);}},[]);},U=function(t){var n=t.className,o=t.colorModel,a=t.color,l=void 0===a?o.defaultColor:a,i=t.onChange,s=c$1(t,["className","colorModel","color","onChange"]),f=react.useRef(null);Q(f);var v=Y(o,l,i),d=v[0],h=v[1],m=g$1(["react-colorful",n]);return react.createElement("div",u$1({},s,{ref:f,className:m}),react.createElement(T,{hsva:d,onChange:h}),react.createElement(S,{hue:d.h,onChange:h,className:"react-colorful__last-control"}))},W={defaultColor:"000",toHsva:x,fromHsva:function(e){return w({h:e.h,s:e.s,v:e.v,a:1})},equal:X},Z=function(r){return react.createElement(U,u$1({},r,{colorModel:W}))};
|
|
19216
19767
|
|
|
19217
|
-
const colorfulCss = "@import url(\"https://fonts.googleapis.com/css?family=Roboto:400,500\")
|
|
19768
|
+
const colorfulCss = "@import url(\"https://fonts.googleapis.com/css?family=Roboto:400,500\");.size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}bcm-colorful{display:flex;flex-direction:column;width:256px;padding:8px;background-color:#fff;border-radius:4px}bcm-colorful .react-colorful{width:100%;gap:4px}bcm-colorful .react-colorful__saturation{margin:0 0 4px 0;border-radius:2px;border-bottom:none}bcm-colorful .react-colorful__hue,bcm-colorful .react-colorful__alpha{height:20px;border-radius:2px}bcm-colorful .react-colorful__hue-pointer,bcm-colorful .react-colorful__alpha-pointer{width:15px;height:15px}bcm-colorful .react-colorful__saturation-pointer{width:20px;height:20px}";
|
|
19218
19769
|
|
|
19219
19770
|
const BcmColorful = class {
|
|
19220
19771
|
constructor(hostRef) {
|
|
@@ -19266,222 +19817,6 @@ function JsonParse(attribute, isMethod = false) {
|
|
|
19266
19817
|
};
|
|
19267
19818
|
}
|
|
19268
19819
|
|
|
19269
|
-
const CheckboxTemplate = ({ disabled, checked, readonly, required, indeterminate, hidden, captionType, _id }) => {
|
|
19270
|
-
// if ( indeterminate ) {
|
|
19271
|
-
// checked = indeterminate == 'determinate' ? true : false
|
|
19272
|
-
// }
|
|
19273
|
-
const hostClasses = classnames('bcm-checkbox', 'bcm-checkbox__type-default', `bcm-checkbox-size-medium`, {
|
|
19274
|
-
// 'size-2': size === Bcm.Size.small || size === Bcm.Size.medium,
|
|
19275
|
-
// 'size-3': optionType === 'button' && size === Bcm.Size.large,
|
|
19276
|
-
'error': captionType == Bcm$1.Status.error,
|
|
19277
|
-
hidden,
|
|
19278
|
-
checked,
|
|
19279
|
-
disabled,
|
|
19280
|
-
required,
|
|
19281
|
-
readonly,
|
|
19282
|
-
});
|
|
19283
|
-
const bcmCheckboxIconClass = classnames('bcm-checkbox__label-icon', 'bcm-checkbox__label-icon-lite', 'bcm-checkbox__label-icon-' + indeterminate, {
|
|
19284
|
-
'bcm-checkbox__label-icon-checked': checked,
|
|
19285
|
-
});
|
|
19286
|
-
const bcmCheckboxLabelClass = classnames('bcm-checkbox__label');
|
|
19287
|
-
return (h$2("div", { class: hostClasses },
|
|
19288
|
-
h$2("input", { tabindex: "-1", id: _id, type: "checkbox", checked: checked, disabled: disabled, required: required, readonly: readonly }),
|
|
19289
|
-
h$2("label", { class: bcmCheckboxLabelClass, htmlFor: _id },
|
|
19290
|
-
h$2("span", { class: bcmCheckboxIconClass },
|
|
19291
|
-
h$2("bcm-icon", { icon: "far fa-check" })))));
|
|
19292
|
-
};
|
|
19293
|
-
|
|
19294
|
-
const InfoFooterTemplate = ({ selected, total, found, multiple, variableText }) => {
|
|
19295
|
-
total = total || 0;
|
|
19296
|
-
variableText = variableText ? pluralize(variableText, total) : 'items';
|
|
19297
|
-
return (h$2("footer", { class: "bcm-info-footer" },
|
|
19298
|
-
h$2("bcm-text", { scale: "size-1", color: "grey-8" },
|
|
19299
|
-
(multiple && selected > 0) && ` ( ${selected} selected ) `,
|
|
19300
|
-
` Total ${total} `,
|
|
19301
|
-
found != null && ` / ${found} `,
|
|
19302
|
-
` ${variableText} found. `)));
|
|
19303
|
-
};
|
|
19304
|
-
|
|
19305
|
-
const InputTemplate = ({ elementType,
|
|
19306
|
-
//textarea
|
|
19307
|
-
rows,
|
|
19308
|
-
//props
|
|
19309
|
-
id, internalId, type, placeholder, value, size, pattern,
|
|
19310
|
-
//,
|
|
19311
|
-
unit, unitPrefix, maxLength,
|
|
19312
|
-
//boolean
|
|
19313
|
-
disabled, clearable, focused, readonly, isPasswordVisible, passwordToggle, noDefaultIcon, inValid, captionType, resize, autocomplete, _suffix, _prefix,
|
|
19314
|
-
// custom functions
|
|
19315
|
-
changePasswordVisibility, handleClear, steps,
|
|
19316
|
-
//event functions
|
|
19317
|
-
ref, handleBlur, handleFocus, handleInput, handleChange, isEyeDropperSupported, eyeDropper, }) => {
|
|
19318
|
-
const ElementTagType = Bcm$1.HtmlElementType[elementType] || Bcm$1.HtmlElementType.input;
|
|
19319
|
-
type = type === "password" && isPasswordVisible ? "text" : type;
|
|
19320
|
-
value = snq(() => value, "");
|
|
19321
|
-
type = (unit === null || unit === void 0 ? void 0 : unit.length) > 0 && !focused ? "text" : type;
|
|
19322
|
-
value = !focused ? value + (value && (unit === null || unit === void 0 ? void 0 : unit.length) > 0 ? " " + unit : "") : value;
|
|
19323
|
-
const typeColor = type === "color";
|
|
19324
|
-
type = type === "color" ? "text" : type;
|
|
19325
|
-
const templateHandleFocus = e => {
|
|
19326
|
-
e.target.parentElement.classList.add("focused");
|
|
19327
|
-
handleFocus(e);
|
|
19328
|
-
};
|
|
19329
|
-
const templateHandleBlur = e => {
|
|
19330
|
-
e.target.parentElement.classList.remove("focused");
|
|
19331
|
-
handleBlur(e);
|
|
19332
|
-
};
|
|
19333
|
-
var containerClass = classnames("bcm-input__container", ElementTagType === Bcm$1.HtmlElementType.textarea && classnames("bcm-input__textarea", "textarea-size-" + Bcm$1.Size[size], "resize-" + resize, "textarea-" + size), ElementTagType === Bcm$1.HtmlElementType.input && classnames("input-size-" + Bcm$1.Size[size]), {
|
|
19334
|
-
focused: focused,
|
|
19335
|
-
clearable: clearable,
|
|
19336
|
-
disabled,
|
|
19337
|
-
readonly,
|
|
19338
|
-
invalid: inValid,
|
|
19339
|
-
unit: (unit === null || unit === void 0 ? void 0 : unit.length) > 0,
|
|
19340
|
-
// 'empty': value?.length < 1,
|
|
19341
|
-
error: captionType === "error",
|
|
19342
|
-
});
|
|
19343
|
-
const caretContainer = classnames("caret-container", {
|
|
19344
|
-
unit: (unit === null || unit === void 0 ? void 0 : unit.length) > 0,
|
|
19345
|
-
disabled: disabled || readonly || inValid,
|
|
19346
|
-
});
|
|
19347
|
-
const inputClass = "bcm-input__container--" + size;
|
|
19348
|
-
const unitClass = classnames(inputClass, "unit-prefix");
|
|
19349
|
-
return (h$2("div", { class: containerClass, id: id + "-container" },
|
|
19350
|
-
h$2("span", { hidden: true },
|
|
19351
|
-
h$2("slot", null)),
|
|
19352
|
-
h$2("span", { class: "input-prefix" },
|
|
19353
|
-
h$2("slot", { name: "prefix" }),
|
|
19354
|
-
_prefix && _prefix.length > 0 && h$2("span", { innerHTML: _prefix }),
|
|
19355
|
-
unitPrefix && h$2("span", { class: unitClass }, unitPrefix),
|
|
19356
|
-
typeColor && (h$2("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: {
|
|
19357
|
-
backgroundColor: value,
|
|
19358
|
-
} }))),
|
|
19359
|
-
h$2(ElementTagType, Object.assign({ tabindex: "0", id: id + "-input", "bcm-internal-id": internalId, class: "bcm-input-element " + inputClass }, (ElementTagType === Bcm$1.HtmlElementType.input && {
|
|
19360
|
-
type,
|
|
19361
|
-
autocomplete: autocomplete ? "on" : "off",
|
|
19362
|
-
pattern,
|
|
19363
|
-
}), (ElementTagType === Bcm$1.HtmlElementType.textarea && { rows: rows, resize: resize }), { value: value, maxLength: maxLength, "aria-label": placeholder || "Enter text", "aria-labelledby": id + "-label", title: "", placeholder: placeholder, disabled: disabled, readOnly: readonly, ref: el => ref(el), onBlur: e => templateHandleBlur(e), onFocus: e => templateHandleFocus(e), onInput: e => handleInput(e), onChange: e => handleChange(e) })),
|
|
19364
|
-
h$2("span", { class: "input-suffix-content" }, clearable && !disabled && !readonly && (h$2("span", { class: "input-suffix input-suffix-button input-clear-button", onClick: e => handleClear(e) },
|
|
19365
|
-
h$2("bcm-icon", { icon: "far fa-times" })))),
|
|
19366
|
-
h$2("span", { class: "input-suffix-content" }, (type === "password" || type === "text") && passwordToggle && (h$2("span", { class: "input-suffix input-suffix-button", onClick: () => changePasswordVisibility() },
|
|
19367
|
-
h$2("bcm-icon", { icon: isPasswordVisible ? "far fa-eye-slash" : "far fa-eye" })))),
|
|
19368
|
-
h$2("span", { class: "input-suffix-content" }, Object.keys(defaultIcons$1).includes(type) && !noDefaultIcon && (h$2("span", { class: "input-suffix" },
|
|
19369
|
-
h$2("bcm-icon", { icon: defaultIcons$1[type] })))),
|
|
19370
|
-
h$2("span", { class: "input-suffix-content" }, type === "number" && (h$2("div", { class: caretContainer },
|
|
19371
|
-
h$2("span", { class: "bcm-input-caret", onClick: () => steps("up") },
|
|
19372
|
-
h$2("bcm-icon", { icon: "fas fa-caret-up" })),
|
|
19373
|
-
h$2("span", { class: "bcm-input-caret", onClick: () => steps("down") },
|
|
19374
|
-
h$2("bcm-icon", { icon: "fas fa-caret-down" }))))),
|
|
19375
|
-
h$2("span", { class: "input-suffix-content" },
|
|
19376
|
-
type !== "number" && (h$2("span", { class: "input-suffix" },
|
|
19377
|
-
h$2("slot", { name: "suffix" }),
|
|
19378
|
-
_suffix && _suffix.length > 0 && h$2("span", { innerHTML: _suffix }))),
|
|
19379
|
-
typeColor && isEyeDropperSupported() && (h$2("span", { class: "input-suffix" },
|
|
19380
|
-
h$2("span", null,
|
|
19381
|
-
h$2("i", { class: "far fa-eye-dropper", onClick: () => eyeDropper() })))))));
|
|
19382
|
-
};
|
|
19383
|
-
|
|
19384
|
-
const ListItemTemplate = ({ item, treeview, highlight, checkboxes, size, selectedItem, openGroup, checkedItem, focusItem, searchIsOnlyChilds }) => {
|
|
19385
|
-
const isHaveChildren = item.items && item.items.length > 0;
|
|
19386
|
-
var text = StringHelper.htmlEntities(item.text);
|
|
19387
|
-
let intersection = [];
|
|
19388
|
-
if (highlight && StringHelper.slugify(text).includes(StringHelper.slugify(highlight))) {
|
|
19389
|
-
if (!searchIsOnlyChilds || (searchIsOnlyChilds && (!isHaveChildren || (!treeview && item.type != "group")))) {
|
|
19390
|
-
text = StringHelper.highlight(text, highlight);
|
|
19391
|
-
}
|
|
19392
|
-
}
|
|
19393
|
-
if (item.type != 'group' && item.template) {
|
|
19394
|
-
const match = item.template
|
|
19395
|
-
.replace(/\s/g, '')
|
|
19396
|
-
.match(/\{{[^}}]+\}/g)
|
|
19397
|
-
.map(x => x.replace(/[{}]/g, ''));
|
|
19398
|
-
const keys = Object.keys(item.itemObject);
|
|
19399
|
-
intersection = match.filter(x => keys.includes(x));
|
|
19400
|
-
}
|
|
19401
|
-
text = item.isHtmlContent ? item.isHtmlContent : item.template && intersection.length > 0 ? StringHelper.templateParser(item.template, Object.assign(Object.assign({}, item.itemObject), { text })) : text;
|
|
19402
|
-
const domText = item.template ? text : Generate.domParser(text);
|
|
19403
|
-
const unClickable = !treeview && item.type == "group" && !item.clickable;
|
|
19404
|
-
const disabled = item.disabled;
|
|
19405
|
-
const readonly = item.readonly;
|
|
19406
|
-
const itemClick = (event) => {
|
|
19407
|
-
let path = event.path || event.composedPath();
|
|
19408
|
-
if (path.filter(x => x.attributes && x.attributes.getNamedItem("unlinked"))[0]) {
|
|
19409
|
-
return;
|
|
19410
|
-
}
|
|
19411
|
-
// if (readonly) {
|
|
19412
|
-
// collapseClick();
|
|
19413
|
-
// }
|
|
19414
|
-
!unClickable && !disabled && !readonly && (checkboxes ? checkedItem(item.id) : selectedItem(item.id));
|
|
19415
|
-
};
|
|
19416
|
-
const collapseClick = () => {
|
|
19417
|
-
// if (disabled) {
|
|
19418
|
-
// return;
|
|
19419
|
-
// }
|
|
19420
|
-
item.open = item.isSearching;
|
|
19421
|
-
openGroup(item.id);
|
|
19422
|
-
};
|
|
19423
|
-
return (h$2("div", { id: item.id, hidden: item.hidden, "on-focus": e => !unClickable && !disabled && focusItem(e), tabIndex: unClickable || disabled ? -1 : 0, class: classnames('bcm-list__item',
|
|
19424
|
-
// size === 'large' ? 'size-3' : 'size-2',
|
|
19425
|
-
'bcm-list__item-' + size, {
|
|
19426
|
-
'bcm-list__item--group': !treeview && item.type == 'group',
|
|
19427
|
-
'bcm-list__item--readonly': readonly,
|
|
19428
|
-
}) },
|
|
19429
|
-
h$2("div", { class: classnames('bcm-list__item-content', !checkboxes && item.selected && 'selected', { disabled, readonly }) },
|
|
19430
|
-
treeview && (h$2("div", { class: "bcm-list__item-content-collapse-icon", onClick: () => collapseClick() }, isHaveChildren && h$2("bcm-icon", { icon: classnames('fas fa-caret-' + (item.isSearching || item.open ? 'down' : 'right')) }))),
|
|
19431
|
-
h$2("div", { class: classnames('bcm-list__item-content-text', { treeview }), onClick: (e) => itemClick(e) },
|
|
19432
|
-
checkboxes && (treeview || (!treeview && item.type != 'group')) && (h$2("div", { class: "bcm-list__item-content-text-checkbox" },
|
|
19433
|
-
h$2(CheckboxTemplate, { indeterminate: item.indeterminate, checked: item.checked, disabled: item.disabled }))),
|
|
19434
|
-
h$2("span", Object.assign({ class: "bcm-list__item-content-text-inner" }, (item.title && { "title": item.title }), { innerHTML: domText })))),
|
|
19435
|
-
(treeview || !treeview && item.type == "group") && isHaveChildren && (h$2("div", { class: "bcm-list__item-childs" }, (item.isSearching || item.open || (!treeview && item.type == "group")) &&
|
|
19436
|
-
item.items.map((item) => (h$2(ListItemTemplate, { highlight: highlight, item: item, searchIsOnlyChilds: searchIsOnlyChilds, treeview: treeview, checkboxes: checkboxes, size: size, selectedItem: selectedItem, checkedItem: checkedItem, openGroup: parentId => openGroup(parentId), focusItem: itemId => focusItem(itemId) })))))));
|
|
19437
|
-
};
|
|
19438
|
-
|
|
19439
|
-
const ListTemplate = ({ type, highlight, selectAllItem, bcmListContainer, treeview, checkboxes, checkAll, infoFooter, value, totalData, searchFound, variableText, _id, tempId, data, width, height, size, searchPlaceholder, minSearchLength, selectedItem, openGroup, checkedItem, onScrollEvent, focusItem, items, searchable, searchIsOnlyChilds, emptyText, emptyIcon, handleTransitionEnd, }) => {
|
|
19440
|
-
const showSelectAll = !(treeview && searchFound > 0) && !(searchFound > 0);
|
|
19441
|
-
const setScrollHeight = () => {
|
|
19442
|
-
const itemHeight = size === 'small' ? 28 : size === 'medium' ? 36 : 48;
|
|
19443
|
-
const itemCount = searchFound == null ? (treeview ? items.length : totalData) : searchFound;
|
|
19444
|
-
const scrollHeight = itemCount * itemHeight || 0;
|
|
19445
|
-
return Object.assign(Object.assign({ 'min-height': `${scrollHeight}px` }, (type === 'select' && { 'overscroll-behavior': 'none' })), { 'height': '100%', 'display': 'flex', 'flex-direction': 'column' });
|
|
19446
|
-
};
|
|
19447
|
-
return (h$2("div", { id: `bcm-list-${_id}`, class: bcmListContainer, "temp-id": `bcm-list-${tempId}`, style: { '--height': height, '--width': width }, onTransitionEnd: e => handleTransitionEnd(e) },
|
|
19448
|
-
data && searchable && (h$2("section", { class: "bcm-list__container-search" },
|
|
19449
|
-
h$2("bcm-search", { size: size, id: `bcm-list-${_id}-search`, data: data, clearable: true, placeholder: searchPlaceholder, "min-search-length": minSearchLength, searchIsOnlyChilds: searchIsOnlyChilds }))),
|
|
19450
|
-
h$2("main", { onScroll: e => onScrollEvent(e), class: "scrolling", style: Object.assign({}, (type === 'select' && { 'overscroll-behavior': 'none' })) },
|
|
19451
|
-
h$2("div", { style: setScrollHeight() },
|
|
19452
|
-
checkAll && searchFound != 0 && items && items.length > 0 && checkboxes && showSelectAll && (h$2("section", { class: "bcm-list__container-select-all" },
|
|
19453
|
-
h$2(ListItemTemplate, { size: size, item: selectAllItem, treeview: false, checkboxes: true, selectedItem: itemId => selectedItem(itemId), checkedItem: itemId => checkedItem(itemId), openGroup: parentId => openGroup(parentId), focusItem: itemId => focusItem(itemId) }))),
|
|
19454
|
-
items.map((item) => (h$2(ListItemTemplate, { highlight: highlight, size: size, item: item, searchIsOnlyChilds: searchIsOnlyChilds, treeview: treeview, checkboxes: checkboxes, selectedItem: itemId => selectedItem(itemId), checkedItem: itemId => checkedItem(itemId), openGroup: parentId => openGroup(parentId), focusItem: itemId => focusItem(itemId) }))),
|
|
19455
|
-
(!items || items.length === 0) && searchFound != 0 && (h$2("section", { class: "bcm-list__container-no-data" },
|
|
19456
|
-
h$2("bcm-empty", { style: { height: 'auto' }, icon: emptyIcon },
|
|
19457
|
-
h$2("span", { innerHTML: emptyText || 'No data' })))),
|
|
19458
|
-
searchFound == 0 && (h$2("section", { class: "bcm-list__container-no-data" },
|
|
19459
|
-
h$2("bcm-empty", { style: { height: 'auto' }, icon: emptyIcon },
|
|
19460
|
-
h$2("span", { innerHTML: emptyText || 'No Data Found' })))))),
|
|
19461
|
-
infoFooter && data && data.length > 0 && (h$2(InfoFooterTemplate, { selected: value === null || value === void 0 ? void 0 : value.length, total: totalData, found: searchFound, multiple: checkboxes, variableText: variableText }))));
|
|
19462
|
-
};
|
|
19463
|
-
|
|
19464
|
-
const StepperHeaderTemplate = ({ _title, description, status, valid, index, loading, active, stepChange, statusIcon, icon, disabled, headerHidden, }) => {
|
|
19465
|
-
const classes = classnames('bcm-stepper__header-item', `bcm-stepper__header-item--${status}`, {
|
|
19466
|
-
'bcm-stepper__header-item--active': active,
|
|
19467
|
-
'bcm-stepper__header-item--valid': valid,
|
|
19468
|
-
'bcm-stepper__header-item--invalid': !valid,
|
|
19469
|
-
'bcm-stepper__header-item--disabled': disabled,
|
|
19470
|
-
'hidden': headerHidden,
|
|
19471
|
-
});
|
|
19472
|
-
const defaultIcons = {
|
|
19473
|
-
success: 'fal fa-check',
|
|
19474
|
-
warning: 'fal fa-exclamation-triangle',
|
|
19475
|
-
error: 'fal fa-times',
|
|
19476
|
-
};
|
|
19477
|
-
const customIcon = (icon || (statusIcon && defaultIcons[status])) && h$2("bcm-icon", { icon: icon ? icon : defaultIcons[status] });
|
|
19478
|
-
return (h$2("div", { class: classes },
|
|
19479
|
-
h$2("div", { class: "bcm-stepper__header-item--container", onClick: () => !disabled && stepChange(index) },
|
|
19480
|
-
h$2("div", { class: "bcm-stepper__header-item-icon size-3" }, loading ? h$2("bcm-icon", { icon: "far fa-spinner-third fa-spin" }) : customIcon || index),
|
|
19481
|
-
h$2("div", { class: "bcm-stepper__header-item-title size-2" }, _title),
|
|
19482
|
-
h$2("div", { class: "bcm-stepper__header-item-description size-1" }, description))));
|
|
19483
|
-
};
|
|
19484
|
-
|
|
19485
19820
|
var hookCallback;
|
|
19486
19821
|
|
|
19487
19822
|
function hooks () {
|
|
@@ -24075,7 +24410,7 @@ const moment$1 = /*#__PURE__*/Object.freeze({
|
|
|
24075
24410
|
'default': hooks
|
|
24076
24411
|
});
|
|
24077
24412
|
|
|
24078
|
-
var __decorate$
|
|
24413
|
+
var __decorate$9 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
24079
24414
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
24080
24415
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
24081
24416
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -24223,30 +24558,90 @@ const BcmDate = class {
|
|
|
24223
24558
|
}
|
|
24224
24559
|
get el() { return getElement(this); }
|
|
24225
24560
|
};
|
|
24226
|
-
__decorate$
|
|
24561
|
+
__decorate$9([
|
|
24227
24562
|
IsLoad()
|
|
24228
24563
|
], BcmDate.prototype, "el", void 0);
|
|
24229
24564
|
|
|
24230
|
-
const
|
|
24565
|
+
const dividerStyle = ce({
|
|
24566
|
+
slots: {
|
|
24567
|
+
base: "bcm-divider bcm-ui-element bcm-ui-divider tw-block tw-border-color-default",
|
|
24568
|
+
},
|
|
24569
|
+
variants: {
|
|
24570
|
+
direction: {
|
|
24571
|
+
horizontal: "bcm-divider__direction-horizontal tw-border-b tw-w-full tw-h-px tw-my-1",
|
|
24572
|
+
vertical: "bcm-divider__direction-vertical tw-border-l tw-h-full tw-w-px tw-mx-1",
|
|
24573
|
+
},
|
|
24574
|
+
},
|
|
24575
|
+
defaultVariants: {
|
|
24576
|
+
direction: "horizontal",
|
|
24577
|
+
},
|
|
24578
|
+
});
|
|
24231
24579
|
|
|
24232
24580
|
const BcmDivider = class {
|
|
24233
24581
|
constructor(hostRef) {
|
|
24234
24582
|
registerInstance(this, hostRef);
|
|
24235
|
-
this.hidden = false;
|
|
24236
24583
|
this.direction = Bcm$1.Direction.horizontal;
|
|
24237
24584
|
}
|
|
24238
24585
|
render() {
|
|
24239
|
-
const {
|
|
24240
|
-
const
|
|
24241
|
-
|
|
24242
|
-
});
|
|
24243
|
-
return (h$2(Host, { class: hostClasses }, h$2("span", { hidden: true }, h$2("slot", null))));
|
|
24586
|
+
const { direction } = this;
|
|
24587
|
+
const { base } = dividerStyle({ direction });
|
|
24588
|
+
return h$2(Host, { class: base() });
|
|
24244
24589
|
}
|
|
24245
24590
|
get el() { return getElement(this); }
|
|
24246
24591
|
};
|
|
24247
|
-
BcmDivider.style = dividerCss;
|
|
24248
24592
|
|
|
24249
|
-
const
|
|
24593
|
+
const drawerStyle = ce({
|
|
24594
|
+
slots: {
|
|
24595
|
+
host: ["bcm-drawer bcm-ui-element bcm-ui-content-display", "tw-user-select-none tw-absolute tw-overflow-hidden", "tw-w-screen tw-h-screen"],
|
|
24596
|
+
content: ["bcm-drawer__content", "tw-flex tw-flex-col tw-items-stretch tw-justify-start", "tw-w-full tw-h-full tw-bg-color-surface-modal", "tw-fixed tw-user-select-text", "tw-z-drawer tw-overflow-hidden"],
|
|
24597
|
+
contentHeader: ["bcm-drawer__content-header", "tw-px-6 tw-pt-6 tw-pb-0 tw-flex tw-justify-between tw-items-start", "tw-text-color tw-mb-2"],
|
|
24598
|
+
contentHeaderTitle: ["bcm-drawer__content-header-title", "tw-text-size-6 tw-font-semibold"],
|
|
24599
|
+
contentHeaderClose: ["bcm-drawer__content-header-close tw-text-size-6", "tw-px-2 tw-py-1 -tw-mr-1 -tw-mt-1 tw-text-color", "hover:tw-cursor-pointer"],
|
|
24600
|
+
contentBody: ["bcm-drawer__content-body", "tw-px-6 tw-pt-0 tw-pb-6"],
|
|
24601
|
+
contentFooter: ["bcm-drawer__content-footer", "tw-py-3 tw-px-6"],
|
|
24602
|
+
overlay: ["bcm-drawer__overlay", "tw-fixed tw-bg-color-transparent-background tw-z-drawer-bd", "tw-top-0 tw-left-0 tw-w-full tw-h-full"],
|
|
24603
|
+
},
|
|
24604
|
+
variants: {
|
|
24605
|
+
isShow: {
|
|
24606
|
+
true: {
|
|
24607
|
+
host: ["bcm-drawer--open", "tw-visible tw-top-0 tw-left-0"],
|
|
24608
|
+
content: ["bcm-drawer__content--open"],
|
|
24609
|
+
overlay: ["bcm-drawer__overlay--open", "tw-opacity-100 tw-visible tw-transform tw--translate-x-0"],
|
|
24610
|
+
},
|
|
24611
|
+
false: {
|
|
24612
|
+
host: ["-tw-top-full -tw-left-full tw-invisible"],
|
|
24613
|
+
content: ["bcm-drawer__content--close"],
|
|
24614
|
+
overlay: ["bcm-drawer__overlay--close", "tw-opacity-0 tw-invisible tw-transform tw--translate-x-full"],
|
|
24615
|
+
},
|
|
24616
|
+
},
|
|
24617
|
+
fullWidth: {
|
|
24618
|
+
true: {
|
|
24619
|
+
content: ["full-width tw-max-w-full"],
|
|
24620
|
+
},
|
|
24621
|
+
},
|
|
24622
|
+
position: {
|
|
24623
|
+
right: {
|
|
24624
|
+
content: ["bcm-drawer__content--position-right"],
|
|
24625
|
+
},
|
|
24626
|
+
left: {
|
|
24627
|
+
content: ["bcm-drawer__content--position-left"],
|
|
24628
|
+
},
|
|
24629
|
+
top: {
|
|
24630
|
+
content: ["bcm-drawer__content--position-top"],
|
|
24631
|
+
},
|
|
24632
|
+
bottom: {
|
|
24633
|
+
content: ["bcm-drawer__content--position-bottom"],
|
|
24634
|
+
},
|
|
24635
|
+
},
|
|
24636
|
+
},
|
|
24637
|
+
defaultVariants: {
|
|
24638
|
+
isShow: false,
|
|
24639
|
+
fullWidth: false,
|
|
24640
|
+
position: "right",
|
|
24641
|
+
},
|
|
24642
|
+
});
|
|
24643
|
+
|
|
24644
|
+
const drawerCss = "@import url(\"https://fonts.googleapis.com/css?family=Roboto:400,500\");.size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}.bcm-drawer__content{transition:transform 0.2s ease-in-out;transform:translateX(-100%);visibility:hidden}.bcm-drawer__content--position-left,.bcm-drawer__content--position-right{max-width:500px}.bcm-drawer__content--position-left.full-width,.bcm-drawer__content--position-right.full-width{max-width:100%}.bcm-drawer__content--position-top,.bcm-drawer__content--position-bottom{max-height:500px}.bcm-drawer__content--position-top.full-width,.bcm-drawer__content--position-bottom.full-width{max-height:100%}.bcm-drawer__content--position-left{transform:translateX(-100%);top:0;left:0}.bcm-drawer__content--position-top{transform:translateY(-100%);top:0;left:0}.bcm-drawer__content--position-right{transform:translateX(100%);top:0;right:0}.bcm-drawer__content--position-bottom{transform:translateY(100%);bottom:0;left:0}.bcm-drawer__content--open{transform:translateX(0);visibility:visible}.bcm-drawer__content--close{visibility:visible}.bcm-drawer__overlay{transition:opacity 0.3s ease-in-out}";
|
|
24250
24645
|
|
|
24251
24646
|
const BcmDrawer = class {
|
|
24252
24647
|
constructor(hostRef) {
|
|
@@ -24296,19 +24691,12 @@ const BcmDrawer = class {
|
|
|
24296
24691
|
this.el.remove();
|
|
24297
24692
|
}
|
|
24298
24693
|
render() {
|
|
24299
|
-
const
|
|
24300
|
-
|
|
24694
|
+
const { host, content, overlay, contentHeader, contentHeaderTitle, contentHeaderClose, contentBody, contentFooter } = drawerStyle({
|
|
24695
|
+
isShow: this._open,
|
|
24696
|
+
fullWidth: this.fullWidth,
|
|
24697
|
+
position: this.position,
|
|
24301
24698
|
});
|
|
24302
|
-
|
|
24303
|
-
'bcm-drawer__content--open': this._open,
|
|
24304
|
-
'bcm-drawer__content--close': this._close,
|
|
24305
|
-
'full-width': this.fullWidth,
|
|
24306
|
-
});
|
|
24307
|
-
const overlay = classnames('bcm-drawer__overlay', {
|
|
24308
|
-
'bcm-drawer__overlay--open': this._open,
|
|
24309
|
-
'bcm-drawer__overlay--close': this._close,
|
|
24310
|
-
});
|
|
24311
|
-
return (h$2(Host, { class: hostClasses }, h$2("div", { class: overlay, onClick: () => this.hide() }), h$2("div", { class: contentClasses }, h$2("div", { class: "bcm-drawer__content-header" }, h$2("bcm-text", { class: "bcm-drawer__content-header-title", "font-size": "6", weight: "600", color: "slate-800" }, this._title, " ", h$2("slot", { name: "header" })), h$2("div", { class: "bcm-drawer__content-header-close size-4", onClick: () => this.hide() }, h$2("bcm-icon", { icon: "fal fa-times" }))), h$2("div", { style: { 'overflow': 'auto', 'flex': '1' } }, h$2("div", { class: "bcm-drawer__content-body" }, h$2("slot", null))), h$2("div", { class: "bcm-drawer__content-footer" }, h$2("slot", { name: "footer" })))));
|
|
24699
|
+
return (h$2(Host, { class: host() }, h$2("div", { class: overlay(), onClick: () => this.hide() }), h$2("div", { class: content() }, h$2("div", { class: contentHeader() }, h$2("span", { class: contentHeaderTitle() }, this._title, " ", h$2("slot", { name: "header" })), h$2("div", { class: contentHeaderClose(), onClick: () => this.hide() }, h$2("i", { class: "fa-solid fa-xmark" }))), h$2("div", { class: "tw-overflow-auto tw-flex-1" }, h$2("div", { class: contentBody() }, h$2("slot", null))), h$2("div", { class: contentFooter() }, h$2("slot", { name: "footer" })))));
|
|
24312
24700
|
}
|
|
24313
24701
|
get el() { return getElement(this); }
|
|
24314
24702
|
static get watchers() { return {
|
|
@@ -24319,7 +24707,7 @@ BcmDrawer.style = drawerCss;
|
|
|
24319
24707
|
|
|
24320
24708
|
const dropdownCss = "@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}*{box-sizing:border-box}.bcm-dropdown{width:fit-content;display:inline-flex;flex-direction:row}.bcm-dropdown.hidden{display:none}.bcm-dropdown.no-style{cursor:pointer}.bcm-dropdown.full-width{width:100%}.bcm-dropdown.full-width .bcm-button__container-text{flex:1;justify-content:space-between}.bcm-dropdown__type-split .main-button .bcm-button__container{border-top-right-radius:0;border-bottom-right-radius:0}.bcm-dropdown__type-split .split-button .bcm-button__container{border-top-left-radius:0;border-bottom-left-radius:0;margin-left:1px;min-width:auto}.bcm-dropdown__icon{display:flex;flex-direction:row;align-items:center;justify-content:center;flex-wrap:nowrap;transform:rotate(0deg);transition:transform 0.2s ease;padding-top:2px}.bcm-dropdown__icon--open{transform:rotate(180deg)}";
|
|
24321
24709
|
|
|
24322
|
-
var __decorate$
|
|
24710
|
+
var __decorate$8 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
24323
24711
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
24324
24712
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
24325
24713
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -24344,7 +24732,7 @@ const BcmDropdown = class {
|
|
|
24344
24732
|
this.kind = Bcm$1.Kind.solid;
|
|
24345
24733
|
this.icon = undefined;
|
|
24346
24734
|
this.href = undefined;
|
|
24347
|
-
this.target =
|
|
24735
|
+
this.target = Bcm$1.Target["_blank"];
|
|
24348
24736
|
this.value = undefined;
|
|
24349
24737
|
this.noStyle = false;
|
|
24350
24738
|
this.dropdownIcon = 'fas fa-angle-down';
|
|
@@ -24409,53 +24797,204 @@ const BcmDropdown = class {
|
|
|
24409
24797
|
"data": ["dataChanged"]
|
|
24410
24798
|
}; }
|
|
24411
24799
|
};
|
|
24412
|
-
__decorate$
|
|
24800
|
+
__decorate$8([
|
|
24413
24801
|
IsLoad()
|
|
24414
24802
|
], BcmDropdown.prototype, "el", void 0);
|
|
24415
|
-
__decorate$
|
|
24803
|
+
__decorate$8([
|
|
24416
24804
|
JsonParse('data', true)
|
|
24417
24805
|
], BcmDropdown.prototype, "dataChanged", null);
|
|
24418
24806
|
BcmDropdown.style = dropdownCss;
|
|
24419
24807
|
|
|
24808
|
+
const emptyStyle = ce({
|
|
24809
|
+
slots: {
|
|
24810
|
+
host: [
|
|
24811
|
+
"bcm-empty bcm-ui-element bcm-ui-feedback",
|
|
24812
|
+
"tw-flex tw-flex-1 tw-flex-col tw-items-center tw-justify-center tw-gap-2",
|
|
24813
|
+
"tw-h-full tw-w-fulltw-text-center",
|
|
24814
|
+
"tw-text-color-caption",
|
|
24815
|
+
"tw-font-medium"
|
|
24816
|
+
],
|
|
24817
|
+
iconStyle: "tw-mb-1 tw-rounded-3xl tw-p-4",
|
|
24818
|
+
textStyle: "tw-font-semibold tw-text-color",
|
|
24819
|
+
descriptionStyle: "",
|
|
24820
|
+
},
|
|
24821
|
+
variants: {
|
|
24822
|
+
size: {
|
|
24823
|
+
small: {
|
|
24824
|
+
host: "tw-text-size-3",
|
|
24825
|
+
textStyle: "tw-text-size-4",
|
|
24826
|
+
iconStyle: "tw-text-size-8",
|
|
24827
|
+
},
|
|
24828
|
+
medium: {
|
|
24829
|
+
host: "tw-text-size-4",
|
|
24830
|
+
textStyle: "tw-text-size-5",
|
|
24831
|
+
iconStyle: "tw-text-size-9",
|
|
24832
|
+
},
|
|
24833
|
+
large: {
|
|
24834
|
+
host: "tw-text-size-5",
|
|
24835
|
+
textStyle: "tw-text-size-6",
|
|
24836
|
+
iconStyle: "tw-text-size-10",
|
|
24837
|
+
},
|
|
24838
|
+
},
|
|
24839
|
+
status: {
|
|
24840
|
+
default: {
|
|
24841
|
+
host: "",
|
|
24842
|
+
iconStyle: "tw-bg-blue-50 tw-text-color-primary",
|
|
24843
|
+
},
|
|
24844
|
+
success: {
|
|
24845
|
+
host: "",
|
|
24846
|
+
iconStyle: "tw-bg-emerald-50 tw-text-color-success",
|
|
24847
|
+
},
|
|
24848
|
+
warning: {
|
|
24849
|
+
host: "",
|
|
24850
|
+
iconStyle: "tw-bg-amber-50 tw-text-color-warning",
|
|
24851
|
+
},
|
|
24852
|
+
error: {
|
|
24853
|
+
host: "",
|
|
24854
|
+
iconStyle: "tw-bg-red-50 tw-text-color-error",
|
|
24855
|
+
},
|
|
24856
|
+
info: {
|
|
24857
|
+
host: "",
|
|
24858
|
+
iconStyle: "tw-bg-blue-50 tw-text-color-primary",
|
|
24859
|
+
},
|
|
24860
|
+
},
|
|
24861
|
+
},
|
|
24862
|
+
defaultVariants: {
|
|
24863
|
+
size: "medium",
|
|
24864
|
+
status: "default",
|
|
24865
|
+
},
|
|
24866
|
+
});
|
|
24867
|
+
|
|
24420
24868
|
const BcmEmpty = class {
|
|
24421
24869
|
constructor(hostRef) {
|
|
24422
24870
|
registerInstance(this, hostRef);
|
|
24423
|
-
this.icon =
|
|
24871
|
+
this.icon = "fa-duotone fa-folder-open";
|
|
24872
|
+
this.text = undefined;
|
|
24873
|
+
this.description = undefined;
|
|
24874
|
+
this.status = Bcm$1.Status.default;
|
|
24875
|
+
this.size = Bcm$1.Size.medium;
|
|
24424
24876
|
}
|
|
24425
24877
|
render() {
|
|
24426
|
-
|
|
24878
|
+
const { text, description, status, size, icon } = this;
|
|
24879
|
+
const { host, textStyle, iconStyle, descriptionStyle } = emptyStyle({ size, status });
|
|
24880
|
+
return (h$2(Host, { class: host() }, icon && (h$2("div", { class: iconStyle() }, h$2("i", { class: `${icon}` }))), text && h$2("bcm-typography", { class: textStyle() }, text), description && h$2("bcm-typography", { class: descriptionStyle() }, description), h$2("bcm-typography", { class: descriptionStyle() }, h$2("slot", null))));
|
|
24427
24881
|
}
|
|
24428
24882
|
get el() { return getElement(this); }
|
|
24429
24883
|
};
|
|
24430
24884
|
|
|
24431
|
-
const
|
|
24885
|
+
const expansionPanelStyle = ce({
|
|
24886
|
+
slots: {
|
|
24887
|
+
base: "",
|
|
24888
|
+
host: ["bcm-expansion-panel bcm-ui-element bcm-ui-feedback", "tw-block tw-w-full tw-bg-color-surface-card tw-rounded-cards tw-border tw-border-solid tw-border-color", "[&+.bcm-expansion-panel]:tw-mt-1"],
|
|
24889
|
+
header: [
|
|
24890
|
+
"bcm-expansion-panel__header",
|
|
24891
|
+
"tw-flex tw-items-center tw-justify-start tw-gap-2 tw-select-none tw-min-h-14 tw-p-4 tw-text-color tw-cursor-pointer",
|
|
24892
|
+
"tw-border-solid tw-border-t-0 tw-border-x-0 tw-border-b",
|
|
24893
|
+
],
|
|
24894
|
+
headerTitle: ["bcm-expansion-panel__header-title", "tw-order-1 tw-select-none tw-w-full tw-flex tw-items-baseline tw-justify-start tw-gap-2", "tw-text-size-6 tw-font-semibold "],
|
|
24895
|
+
headerTitleDescription: ["bcm-expansion-panel__header-title-description", "tw-text-color-helper tw-text-size-3 tw-font-normal"],
|
|
24896
|
+
headerTooltip: ["bcm-expansion-panel__header-tooltip", "tw-leading-none tw-text-size-5 tw-text-color-helper"],
|
|
24897
|
+
headerExtra: ["bcm-expansion-panel__header-extra", "empty:tw-hidden tw-flex tw-items-center tw-order-5 tw-leading-none tw-py-0 tw-px-2"],
|
|
24898
|
+
headerToggle: ["bcm-expansion-panel__header-toggle", "tw-h-full tw-w-5 tw-flex tw-items-center tw-justify-center tw-transition-transform tw-duration-200 tw-text-size-5"],
|
|
24899
|
+
body: "bcm-expansion-panel__body tw-p-4",
|
|
24900
|
+
},
|
|
24901
|
+
variants: {
|
|
24902
|
+
valid: {
|
|
24903
|
+
true: {
|
|
24904
|
+
host: "bcm-expansion-panel--valid",
|
|
24905
|
+
},
|
|
24906
|
+
false: {
|
|
24907
|
+
host: "bcm-expansion-panel--invalid",
|
|
24908
|
+
headerToggle: "tw-text-red-500",
|
|
24909
|
+
headerTitle: "tw-text-red-500",
|
|
24910
|
+
},
|
|
24911
|
+
},
|
|
24912
|
+
expanded: {
|
|
24913
|
+
true: {
|
|
24914
|
+
host: ["bcm-expansion-panel--expanded", "tw-border-b"],
|
|
24915
|
+
header: "tw-rounded-t-cards tw-rounded-b-none tw-border-b-color",
|
|
24916
|
+
headerToggle: "tw-rotate-180",
|
|
24917
|
+
body: "tw-block",
|
|
24918
|
+
},
|
|
24919
|
+
false: {
|
|
24920
|
+
host: "bcm-expansion-panel--collapsed",
|
|
24921
|
+
header: "tw-rounded-cards tw-border-b-transparent",
|
|
24922
|
+
headerToggle: "tw-rotate-0 ",
|
|
24923
|
+
body: "tw-hidden",
|
|
24924
|
+
},
|
|
24925
|
+
},
|
|
24926
|
+
disabled: {
|
|
24927
|
+
true: {
|
|
24928
|
+
host: "bcm-expansion-panel--disabled ",
|
|
24929
|
+
},
|
|
24930
|
+
false: {
|
|
24931
|
+
host: "",
|
|
24932
|
+
},
|
|
24933
|
+
},
|
|
24934
|
+
hideToggle: {
|
|
24935
|
+
true: {
|
|
24936
|
+
host: "bcm-expansion-panel--hide-toggle",
|
|
24937
|
+
},
|
|
24938
|
+
false: {
|
|
24939
|
+
host: "",
|
|
24940
|
+
},
|
|
24941
|
+
},
|
|
24942
|
+
expandIconPosition: {
|
|
24943
|
+
right: {
|
|
24944
|
+
host: "bcm-expansion-panel--icon-right",
|
|
24945
|
+
// header: "tw-justify-between tw-pl-6",
|
|
24946
|
+
headerToggle: "tw-order-6",
|
|
24947
|
+
},
|
|
24948
|
+
left: {
|
|
24949
|
+
host: "bcm-expansion-panel--icon-left ",
|
|
24950
|
+
// headerToggle: "tw-pr-6",
|
|
24951
|
+
},
|
|
24952
|
+
},
|
|
24953
|
+
hidden: {
|
|
24954
|
+
true: {
|
|
24955
|
+
host: "hidden",
|
|
24956
|
+
},
|
|
24957
|
+
false: {
|
|
24958
|
+
host: "",
|
|
24959
|
+
},
|
|
24960
|
+
},
|
|
24961
|
+
},
|
|
24962
|
+
defaultVariants: {
|
|
24963
|
+
valid: true,
|
|
24964
|
+
expanded: false,
|
|
24965
|
+
disabled: false,
|
|
24966
|
+
hideToggle: false,
|
|
24967
|
+
expandIconPosition: "right",
|
|
24968
|
+
hidden: false,
|
|
24969
|
+
},
|
|
24970
|
+
});
|
|
24432
24971
|
|
|
24433
24972
|
const BcmExpansionPanel = class {
|
|
24434
24973
|
constructor(hostRef) {
|
|
24435
24974
|
registerInstance(this, hostRef);
|
|
24436
24975
|
this.bcmOpen = createEvent(this, "bcm-open", 7);
|
|
24976
|
+
this.bcmExpansionPanelOpen = createEvent(this, "bcm-expansion-panel-open", 7);
|
|
24437
24977
|
this.bcmClose = createEvent(this, "bcm-close", 7);
|
|
24978
|
+
this.bcmExpansionPanelClose = createEvent(this, "bcm-expansion-panel-close", 7);
|
|
24438
24979
|
this.bcmExtra = createEvent(this, "bcm-extra", 7);
|
|
24980
|
+
this.bcmExpansionPanelExtra = createEvent(this, "bcm-expansion-panel-extra", 7);
|
|
24981
|
+
this.bcmExpansionPanelToggle = createEvent(this, "bcm-expansion-panel-toggle", 7);
|
|
24439
24982
|
this._id = Generate.UID();
|
|
24440
24983
|
this.expanded = false;
|
|
24441
24984
|
this.disabled = false;
|
|
24442
24985
|
this.hidden = false;
|
|
24443
24986
|
this.valid = true;
|
|
24444
24987
|
this.hideToggle = false;
|
|
24445
|
-
this.expandIconPosition =
|
|
24446
|
-
this.headerColor = 'white';
|
|
24988
|
+
this.expandIconPosition = "right";
|
|
24447
24989
|
this.tooltip = undefined;
|
|
24448
24990
|
this.tooltipDefaultValue = {
|
|
24449
|
-
message:
|
|
24450
|
-
placement:
|
|
24451
|
-
trigger:
|
|
24452
|
-
icon:
|
|
24453
|
-
color:
|
|
24991
|
+
message: "",
|
|
24992
|
+
placement: "top",
|
|
24993
|
+
trigger: "hover",
|
|
24994
|
+
icon: "fas fa-question-circle",
|
|
24995
|
+
color: "slate-700",
|
|
24454
24996
|
};
|
|
24455
24997
|
}
|
|
24456
|
-
componentWillRender() {
|
|
24457
|
-
this.restoreSlots();
|
|
24458
|
-
}
|
|
24459
24998
|
componentDidLoad() {
|
|
24460
24999
|
this.checkExpanded();
|
|
24461
25000
|
}
|
|
@@ -24474,58 +25013,80 @@ const BcmExpansionPanel = class {
|
|
|
24474
25013
|
return tool;
|
|
24475
25014
|
}
|
|
24476
25015
|
checkExpanded() {
|
|
24477
|
-
this.expanded = !!this.el[
|
|
24478
|
-
}
|
|
24479
|
-
restoreSlots() {
|
|
24480
|
-
const slots = this.el.querySelectorAll('bcm-expansion-panel-header, bcm-expansion-panel-description, bcm-expansion-panel-extra');
|
|
24481
|
-
if (slots) {
|
|
24482
|
-
slots.forEach(element => {
|
|
24483
|
-
let slotName = StringHelper.lowercase(StringHelper.split(element.nodeName, '-').pop());
|
|
24484
|
-
element.slot = slotName;
|
|
24485
|
-
element.classList.add(`bcm-expansion-panel__${slotName}-content`);
|
|
24486
|
-
let color = element.getAttribute('color');
|
|
24487
|
-
if (color) {
|
|
24488
|
-
color = color == 'white' ? color : color + '-50';
|
|
24489
|
-
this.headerColor = color;
|
|
24490
|
-
}
|
|
24491
|
-
});
|
|
24492
|
-
}
|
|
25016
|
+
this.expanded = !!this.el["expanded"];
|
|
24493
25017
|
}
|
|
24494
25018
|
toggle() {
|
|
24495
25019
|
if (this.disabled) {
|
|
24496
25020
|
return;
|
|
24497
25021
|
}
|
|
24498
25022
|
this.expanded = !this.expanded;
|
|
25023
|
+
this.bcmExpansionPanelToggle.emit(this._id);
|
|
24499
25024
|
if (this.expanded) {
|
|
24500
25025
|
this.bcmOpen.emit(this._id);
|
|
25026
|
+
this.bcmExpansionPanelOpen.emit(this._id);
|
|
24501
25027
|
}
|
|
24502
25028
|
else {
|
|
24503
25029
|
this.bcmClose.emit(this._id);
|
|
25030
|
+
this.bcmExpansionPanelClose.emit(this._id);
|
|
24504
25031
|
}
|
|
24505
25032
|
}
|
|
24506
25033
|
clickExtra(e) {
|
|
24507
25034
|
e.stopPropagation();
|
|
24508
25035
|
this.bcmExtra.emit(e);
|
|
25036
|
+
this.bcmExpansionPanelExtra.emit(e);
|
|
24509
25037
|
}
|
|
24510
25038
|
render() {
|
|
24511
25039
|
const { _id, expanded, disabled, hidden, hideToggle, tooltip, valid } = this;
|
|
24512
25040
|
const { message, placement, icon, trigger, color } = tooltip ? this.createTooltip() : {};
|
|
24513
|
-
const
|
|
24514
|
-
|
|
24515
|
-
|
|
24516
|
-
|
|
24517
|
-
|
|
25041
|
+
const { host, header, headerTitle, headerTitleDescription, headerTooltip, headerExtra, headerToggle, body } = expansionPanelStyle({
|
|
25042
|
+
valid,
|
|
25043
|
+
expanded,
|
|
25044
|
+
disabled,
|
|
25045
|
+
hideToggle,
|
|
25046
|
+
expandIconPosition: this.expandIconPosition,
|
|
24518
25047
|
hidden,
|
|
24519
25048
|
});
|
|
24520
|
-
return (h$2(Host, { class:
|
|
25049
|
+
return (h$2(Host, { class: host() }, h$2("div", { class: header(), onClick: () => this.toggle() }, h$2("div", { class: headerTitle() }, h$2("span", { id: _id + "-header" }, h$2("slot", { name: "header" })), tooltip && (h$2("span", { class: headerTooltip(), style: Object.assign({}, (color && { color: ColorHelper.getTwColor(color) })) }, h$2("bcm-tooltip", { message: message, placement: placement, trigger: trigger, "aria-label": message }, h$2("i", { class: icon })))), h$2("span", { id: _id + "-description", class: headerTitleDescription() }, h$2("slot", { name: "description" }))), h$2("span", { id: _id + "-extra", class: headerExtra(), onClick: e => this.clickExtra(e) }, h$2("slot", { name: "extra" })), !hideToggle && (h$2("div", { class: headerToggle() }, h$2("i", { class: "fas fa-chevron-down" })))), h$2("div", { class: body(), id: _id + "-body" }, h$2("slot", null))));
|
|
25050
|
+
}
|
|
25051
|
+
get el() { return getElement(this); }
|
|
25052
|
+
};
|
|
25053
|
+
|
|
25054
|
+
const BcmExpansionPanelDescription = class {
|
|
25055
|
+
constructor(hostRef) {
|
|
25056
|
+
registerInstance(this, hostRef);
|
|
25057
|
+
this.el.slot = "description";
|
|
25058
|
+
}
|
|
25059
|
+
render() {
|
|
25060
|
+
return (h$2(Host, { class: classnames("") }, h$2("slot", null)));
|
|
25061
|
+
}
|
|
25062
|
+
get el() { return getElement(this); }
|
|
25063
|
+
};
|
|
25064
|
+
|
|
25065
|
+
const BcmExpansionPanelExtra = class {
|
|
25066
|
+
constructor(hostRef) {
|
|
25067
|
+
registerInstance(this, hostRef);
|
|
25068
|
+
this.el.slot = "extra";
|
|
25069
|
+
}
|
|
25070
|
+
render() {
|
|
25071
|
+
return (h$2(Host, { class: classnames("bcm-expansion-panel__header-content tw-flex tw-items-center tw-gap-1") }, h$2("slot", null)));
|
|
25072
|
+
}
|
|
25073
|
+
get el() { return getElement(this); }
|
|
25074
|
+
};
|
|
25075
|
+
|
|
25076
|
+
const BcmExpansionPanelHeader = class {
|
|
25077
|
+
constructor(hostRef) {
|
|
25078
|
+
registerInstance(this, hostRef);
|
|
25079
|
+
this.el.slot = "header";
|
|
25080
|
+
}
|
|
25081
|
+
render() {
|
|
25082
|
+
return (h$2(Host, { class: classnames("bcm-expansion-panel__header-content tw-flex tw-items-center tw-justify-start tw-gap-1") }, h$2("slot", null)));
|
|
24521
25083
|
}
|
|
24522
25084
|
get el() { return getElement(this); }
|
|
24523
25085
|
};
|
|
24524
|
-
BcmExpansionPanel.style = expansionPanelCss;
|
|
24525
25086
|
|
|
24526
25087
|
const formCss = "@import url(\"https://fonts.googleapis.com/css?family=Roboto:400,500\");.size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}:host{display:block;margin-bottom:8px}:host(.hidden){display:none}";
|
|
24527
25088
|
|
|
24528
|
-
var __decorate$
|
|
25089
|
+
var __decorate$7 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
24529
25090
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
24530
25091
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
24531
25092
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -24949,42 +25510,42 @@ const BcmForm = class {
|
|
|
24949
25510
|
}
|
|
24950
25511
|
get el() { return getElement(this); }
|
|
24951
25512
|
};
|
|
24952
|
-
__decorate$
|
|
25513
|
+
__decorate$7([
|
|
24953
25514
|
IsLoad()
|
|
24954
25515
|
], BcmForm.prototype, "el", void 0);
|
|
24955
25516
|
BcmForm.style = formCss;
|
|
24956
25517
|
|
|
24957
|
-
const iconCss = "@import url(\"https://fonts.googleapis.com/css?family=Roboto:400,500\");.size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}.bcm-icon.hidden{display:none}";
|
|
24958
|
-
|
|
24959
25518
|
const customIconList = {
|
|
24960
|
-
"message-bot":
|
|
25519
|
+
"message-bot": {
|
|
25520
|
+
icon: "message-bot.svg",
|
|
25521
|
+
type: "image", // font, image
|
|
25522
|
+
},
|
|
24961
25523
|
};
|
|
24962
25524
|
const BcmIcon = class {
|
|
24963
25525
|
constructor(hostRef) {
|
|
24964
25526
|
registerInstance(this, hostRef);
|
|
24965
|
-
this.hidden = false;
|
|
24966
25527
|
this.icon = undefined;
|
|
24967
25528
|
}
|
|
24968
25529
|
getIcon() {
|
|
24969
25530
|
const { icon } = this;
|
|
24970
|
-
if (icon
|
|
24971
|
-
|
|
24972
|
-
|
|
25531
|
+
if (customIconList[icon]) {
|
|
25532
|
+
if (customIconList[icon].type === "image") {
|
|
25533
|
+
const _icon = getAssetPath("./static/" + customIconList[icon].icon);
|
|
25534
|
+
return (h$2("div", { class: "tw-flex tw-h-fit tw-w-fit tw-items-center tw-justify-center" }, h$2("img", { src: `${_icon}`, alt: icon, class: "tw-h-fit tw-w-fit" })));
|
|
25535
|
+
}
|
|
25536
|
+
else {
|
|
25537
|
+
return h$2("i", { class: `${customIconList[icon].icon}` });
|
|
25538
|
+
}
|
|
24973
25539
|
}
|
|
24974
25540
|
return h$2("i", { class: `${icon}` });
|
|
24975
25541
|
}
|
|
24976
25542
|
render() {
|
|
24977
|
-
|
|
24978
|
-
return h$2(Host, { class: `bcm-icon fa ${hidden ? "hidden" : ""}` }, this.getIcon());
|
|
25543
|
+
return h$2(Host, { class: "bcm-icon" }, this.getIcon());
|
|
24979
25544
|
}
|
|
24980
25545
|
static get assetsDirs() { return ["static"]; }
|
|
24981
|
-
get el() { return getElement(this); }
|
|
24982
25546
|
};
|
|
24983
|
-
BcmIcon.style = iconCss;
|
|
24984
25547
|
|
|
24985
|
-
|
|
24986
|
-
|
|
24987
|
-
var __decorate$5 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
25548
|
+
var __decorate$6 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
24988
25549
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
24989
25550
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
24990
25551
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -25005,7 +25566,7 @@ const BcmInput = class {
|
|
|
25005
25566
|
this.isBlur = false;
|
|
25006
25567
|
this._id = Generate.UID();
|
|
25007
25568
|
this._internal_id = Generate.UID();
|
|
25008
|
-
this.value =
|
|
25569
|
+
this.value = "";
|
|
25009
25570
|
this.size = Bcm$1.Size.medium;
|
|
25010
25571
|
this.label = undefined;
|
|
25011
25572
|
this.pattern = undefined;
|
|
@@ -25021,10 +25582,8 @@ const BcmInput = class {
|
|
|
25021
25582
|
this.required = false;
|
|
25022
25583
|
this.fullWidth = false;
|
|
25023
25584
|
this.noDefaultIcon = undefined;
|
|
25024
|
-
this.disableWatchValue = false
|
|
25025
|
-
;
|
|
25026
|
-
this.passwordToggle = false // type password
|
|
25027
|
-
;
|
|
25585
|
+
this.disableWatchValue = false;
|
|
25586
|
+
this.passwordToggle = false;
|
|
25028
25587
|
this.maxLength = null;
|
|
25029
25588
|
this.minLength = null;
|
|
25030
25589
|
this.unitPrefix = null;
|
|
@@ -25043,7 +25602,7 @@ const BcmInput = class {
|
|
|
25043
25602
|
this.captionCache = undefined;
|
|
25044
25603
|
this.captionTypeCache = undefined;
|
|
25045
25604
|
this.inValid = false;
|
|
25046
|
-
this.valueCache =
|
|
25605
|
+
this.valueCache = "";
|
|
25047
25606
|
this.focused = false;
|
|
25048
25607
|
this.isPasswordVisible = false;
|
|
25049
25608
|
}
|
|
@@ -25185,8 +25744,8 @@ const BcmInput = class {
|
|
|
25185
25744
|
return false;
|
|
25186
25745
|
}
|
|
25187
25746
|
handleClear(e) {
|
|
25188
|
-
this.inputElement.value =
|
|
25189
|
-
this.value =
|
|
25747
|
+
this.inputElement.value = "";
|
|
25748
|
+
this.value = "";
|
|
25190
25749
|
this.inputElement.focus();
|
|
25191
25750
|
this.clear.emit(e);
|
|
25192
25751
|
this.change.emit(this.value);
|
|
@@ -25346,24 +25905,48 @@ const BcmInput = class {
|
|
|
25346
25905
|
}
|
|
25347
25906
|
}
|
|
25348
25907
|
render() {
|
|
25349
|
-
const { value, size, label, type, captionType, caption, captionError, placeholder, fullWidth, disabled, readonly, clearable, passwordToggle, isPasswordVisible, noDefaultIcon, unit, inValid, focused,
|
|
25908
|
+
const { value, size, label, type, captionType, caption, captionError, placeholder, fullWidth, disabled, readonly, clearable, passwordToggle, isPasswordVisible, noDefaultIcon, unit, inValid, focused,
|
|
25909
|
+
// unitPrefix,
|
|
25910
|
+
noCaption, required, hidden, _id, autocomplete, _prefix, _suffix, } = this;
|
|
25350
25911
|
const isActiveClearable = (value === null || value === void 0 ? void 0 : value.length) > 0 && clearable;
|
|
25351
|
-
const
|
|
25912
|
+
const { host, inputContainer, input, slotClass, clearButton, controls, controlsBtn, controlsBtnDown, controlsBtnUp, controlsDivider } = inputStyle({
|
|
25913
|
+
size,
|
|
25914
|
+
fullWidth,
|
|
25915
|
+
// şüpheli kısımlar
|
|
25916
|
+
focused: focused,
|
|
25917
|
+
clearable: isActiveClearable,
|
|
25918
|
+
disabled,
|
|
25919
|
+
readonly,
|
|
25920
|
+
invalid: inValid,
|
|
25921
|
+
unit: (unit === null || unit === void 0 ? void 0 : unit.length) > 0,
|
|
25922
|
+
// 'empty': value?.length < 1,
|
|
25923
|
+
error: captionType === "error",
|
|
25352
25924
|
hidden,
|
|
25353
|
-
// 'no-margin': noMargin,
|
|
25354
|
-
'full-width': fullWidth
|
|
25355
25925
|
});
|
|
25356
|
-
|
|
25926
|
+
let _type = type;
|
|
25927
|
+
switch (type) {
|
|
25928
|
+
case "password":
|
|
25929
|
+
_type = isPasswordVisible ? "text" : "password";
|
|
25930
|
+
break;
|
|
25931
|
+
case "color":
|
|
25932
|
+
_type = "text";
|
|
25933
|
+
break;
|
|
25934
|
+
case "number":
|
|
25935
|
+
_type = (unit === null || unit === void 0 ? void 0 : unit.length) > 0 && !focused ? "text" : type;
|
|
25936
|
+
break;
|
|
25937
|
+
}
|
|
25938
|
+
return (h$2(Host, { class: host(), onClick: () => this.onBcmFocus() }, label && h$2("bcm-label", { onClick: () => this.toggleLinked(), tooltip: this.tooltip, type: captionType, value: label, required: required, htmlFor: _id }), h$2("div", { class: inputContainer(), id: _id + "-container" }, type === "color" && (h$2("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: {
|
|
25939
|
+
backgroundColor: value,
|
|
25940
|
+
} })), h$2("div", { class: slotClass() }, h$2("slot", { name: "prefix" }), _prefix && _prefix.length > 0 && h$2("span", { innerHTML: _prefix })), h$2("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$2("div", { class: slotClass() }, isActiveClearable && (h$2("button", { type: "button", class: clearButton(), onClick: event => this.handleClear(event) }, h$2("i", { class: "far fa-times" }))), h$2("slot", { name: "suffix" }), _suffix && _suffix.length > 0 && h$2("span", { innerHTML: _suffix }), (type === "password" || type === "text") && passwordToggle && (h$2("button", { type: "button", class: clearButton(), onClick: () => this.changePasswordVisibility() }, h$2("i", { class: isPasswordVisible ? "far fa-eye-slash" : "far fa-eye" }))), Object.keys(defaultIcons$1).includes(type) && !noDefaultIcon && (h$2("i", { class: defaultIcons$1[type] })), type === "number" && (h$2("div", { class: controls() }, h$2("button", { type: "button", onClick: () => this.stepUpOrDown("up"), class: classnames(controlsBtn(), controlsBtnUp()) }, h$2("i", { class: "fas fa-caret-up" })), h$2("div", { class: controlsDivider() }), h$2("button", { type: "button", onClick: () => this.stepUpOrDown("down"), class: classnames(controlsBtn(), controlsBtnDown()) }, h$2("i", { class: "fas fa-caret-down" })))), type === "color" && this.isEyeDropperSupported() && (h$2("button", { type: "button", class: clearButton(), onClick: () => this.eyeDropper() }, h$2("i", { class: "far fa-eye-dropper" }))))), h$2(CaptionTemplate, { noCaption: noCaption, captionType: captionType, captionError: captionError, caption: caption, customErrorMessage: this.customErrorMessage }), type == Bcm$1.InputType.color &&
|
|
25357
25941
|
h$2("bcm-linked", { targetId: this._id + "-container", id: this._id + "-linked" }, h$2("bcm-colorful", { id: this._id + "-picker", color: this.value, onBcmChange: e => this.setValue(e.detail) }))));
|
|
25358
25942
|
}
|
|
25359
25943
|
static get watchers() { return {
|
|
25360
25944
|
"value": ["watchValue"]
|
|
25361
25945
|
}; }
|
|
25362
25946
|
};
|
|
25363
|
-
__decorate$
|
|
25947
|
+
__decorate$6([
|
|
25364
25948
|
IsLoad()
|
|
25365
25949
|
], BcmInput.prototype, "inputElement", void 0);
|
|
25366
|
-
BcmInput.style = inputCss;
|
|
25367
25950
|
|
|
25368
25951
|
const itemCss = "@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}*{box-sizing:border-box}.bcm-item{box-sizing:border-box;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;flex-wrap:nowrap;--bcm-item-color-default:var(--bcm-new-ds-color-white);--bcm-item-background-color-default:var(--bcm-new-ds-color-blue-500);--bcm-item-color-hover:var(--bcm-new-ds-color-white);--bcm-item-background-color-hover:var(--bcm-new-ds-color-blue-600);--bcm-item-color-focus-visible:var(--bcm-new-ds-color-white);--bcm-item-background-color-focus-visible:var(--bcm-new-ds-color-blue-800);--bcm-item-color-active:var(--bcm-new-ds-color-white);--bcm-item-background-color-active:var(--bcm-new-ds-color-blue-700);--bcm-item-color-disabled:var(--bcm-new-ds-color-white);--bcm-item-background-color-disabled:var(--bcm-new-ds-color-slate-400);font-family:\"Inter\", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;border-radius:4px;outline:none;color:var(--bcm-item-color-default);background-color:var(--bcm-item-background-color-default)}.bcm-item-size-small{font-size:12px;line-height:calc(12px + 8px);padding:2px 12px;min-height:calc(calc(12px + 8px) + calc(2px) * 2)}.bcm-item-size-medium{font-size:14px;line-height:calc(14px + 8px);padding:5px 12px;min-height:calc(calc(14px + 8px) + calc(5px) * 2)}.bcm-item-size-large{font-size:16px;line-height:calc(16px + 8px);padding:8px 12px;min-height:calc(calc(16px + 8px) + calc(8px) * 2)}.bcm-item:default{color:var(--bcm-item-color-default);background-color:var(--bcm-item-background-color-default)}.bcm-item:hover{color:var(--bcm-item-color-hover);background-color:var(--bcm-item-background-color-hover)}.bcm-item:focus-visible{color:var(--bcm-item-color-focus-visible);background-color:var(--bcm-item-background-color-focus-visible)}.bcm-item:active{color:var(--bcm-item-color-active);background-color:var(--bcm-item-background-color-active)}.bcm-item:disabled{color:var(--bcm-item-color-disabled);background-color:var(--bcm-item-background-color-disabled)}.bcm-item:not(.static):hover{cursor:pointer}";
|
|
25369
25952
|
|
|
@@ -25449,7 +26032,7 @@ const BcmItems = class {
|
|
|
25449
26032
|
get el() { return getElement(this); }
|
|
25450
26033
|
};
|
|
25451
26034
|
|
|
25452
|
-
var __decorate$
|
|
26035
|
+
var __decorate$5 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
25453
26036
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
25454
26037
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
25455
26038
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -25472,53 +26055,102 @@ const BcmLabel = class {
|
|
|
25472
26055
|
this.hidden = false;
|
|
25473
26056
|
this.type = Bcm$1.Status.default;
|
|
25474
26057
|
this.tooltip = undefined;
|
|
26058
|
+
this.noMargin = false;
|
|
25475
26059
|
}
|
|
25476
26060
|
render() {
|
|
25477
|
-
const { required, value, label, size, form, htmlFor, type, tooltip } = this;
|
|
25478
|
-
return (h$2(Host, { class: "tw-inline-block tw-leading-none" }, h$2(LabelTemplate, { form: form, htmlFor: htmlFor, value: value || label, size: size, type: type, required: required, tooltip: tooltip })));
|
|
26061
|
+
const { required, value, label, size, form, htmlFor, type, tooltip, noMargin } = this;
|
|
26062
|
+
return (h$2(Host, { class: "tw-inline-block tw-leading-none" }, h$2(LabelTemplate, { form: form, htmlFor: htmlFor, value: value || label, size: size, type: type, required: required, tooltip: tooltip, noMargin: noMargin })));
|
|
25479
26063
|
}
|
|
25480
26064
|
get el() { return getElement(this); }
|
|
25481
26065
|
};
|
|
25482
|
-
__decorate$
|
|
26066
|
+
__decorate$5([
|
|
25483
26067
|
IsLoad()
|
|
25484
26068
|
], BcmLabel.prototype, "el", void 0);
|
|
25485
26069
|
|
|
25486
|
-
const
|
|
26070
|
+
const linkStyle = ce({
|
|
26071
|
+
slots: {
|
|
26072
|
+
base: ["bcm-link__anchor tw-flex tw-items-baseline tw-justify-center tw-gap-2 tw-no-underline", "tw-outline-none"],
|
|
26073
|
+
hostStyle: "bcm-link bcm-ui-element bcm-ui-action tw-inline tw-w-fit",
|
|
26074
|
+
},
|
|
26075
|
+
variants: {
|
|
26076
|
+
size: {
|
|
26077
|
+
small: {
|
|
26078
|
+
base: "tw-text-size-4 tw-font-medium",
|
|
26079
|
+
},
|
|
26080
|
+
medium: {
|
|
26081
|
+
base: "tw-text-size-5 tw-font-medium",
|
|
26082
|
+
},
|
|
26083
|
+
large: {
|
|
26084
|
+
base: "tw-text-size-6 tw-font-medium",
|
|
26085
|
+
},
|
|
26086
|
+
inherit: {
|
|
26087
|
+
base: "",
|
|
26088
|
+
},
|
|
26089
|
+
},
|
|
26090
|
+
disabled: {
|
|
26091
|
+
true: {
|
|
26092
|
+
base: "tw-cursor-not-allowed tw-pointer-events-none tw-text-color-disabled",
|
|
26093
|
+
},
|
|
26094
|
+
false: {
|
|
26095
|
+
base: "tw-cursor-pointer tw-text-color-primary hover:tw-underline visited:tw-text-color-visited focus-visible:tw-ring",
|
|
26096
|
+
},
|
|
26097
|
+
},
|
|
26098
|
+
},
|
|
26099
|
+
defaultVariants: {
|
|
26100
|
+
size: "medium",
|
|
26101
|
+
disabled: false
|
|
26102
|
+
},
|
|
26103
|
+
});
|
|
25487
26104
|
|
|
25488
26105
|
const BcmLink = class {
|
|
25489
26106
|
constructor(hostRef) {
|
|
25490
26107
|
registerInstance(this, hostRef);
|
|
25491
|
-
this.
|
|
26108
|
+
this.bcmLinkClick = createEvent(this, "bcm-link-click", 7);
|
|
26109
|
+
this.bcmClick = createEvent(this, "bcm-click", 7);
|
|
26110
|
+
this.isLink = () => !!this.href;
|
|
26111
|
+
this.isExternal = (url) => url && !!(url.startsWith("http") || url.startsWith("//"));
|
|
25492
26112
|
this.href = undefined;
|
|
25493
|
-
this.target =
|
|
26113
|
+
this.target = Bcm$1.Target["_blank"];
|
|
26114
|
+
this.rel = "noreferrer noopener";
|
|
26115
|
+
this.download = undefined;
|
|
25494
26116
|
this.icon = undefined;
|
|
25495
26117
|
this.disabled = false;
|
|
25496
26118
|
this.iconPosition = Bcm$1.IconPosition.prefix;
|
|
25497
|
-
|
|
25498
|
-
handleOnClick(e) {
|
|
25499
|
-
if (this.disabled) {
|
|
25500
|
-
e.preventDefault();
|
|
25501
|
-
e.stopPropagation();
|
|
25502
|
-
}
|
|
25503
|
-
}
|
|
25504
|
-
linkIsExternal(url) {
|
|
25505
|
-
return url && !!(url.startsWith('http') || url.startsWith('//'));
|
|
26119
|
+
this.size = Bcm$1.Size.medium;
|
|
25506
26120
|
}
|
|
25507
26121
|
render() {
|
|
25508
|
-
const {
|
|
25509
|
-
|
|
26122
|
+
const { icon, iconPosition, disabled, size } = this;
|
|
26123
|
+
/* Link Attributes */
|
|
26124
|
+
const { href, target, rel, download } = this;
|
|
26125
|
+
const linkAttributes = {
|
|
26126
|
+
href: href,
|
|
26127
|
+
target: target,
|
|
26128
|
+
rel: rel,
|
|
26129
|
+
download: download,
|
|
26130
|
+
};
|
|
26131
|
+
const commonAttributes = Object.assign(Object.assign({ "aria-label": "link" }, (!disabled && {
|
|
26132
|
+
onClick: e => {
|
|
26133
|
+
this.bcmLinkClick.emit(e);
|
|
26134
|
+
this.bcmClick.emit(e);
|
|
26135
|
+
},
|
|
26136
|
+
})), (disabled && {
|
|
26137
|
+
"disabled": true,
|
|
26138
|
+
"aria-disabled": true,
|
|
26139
|
+
"tabindex": -1,
|
|
26140
|
+
"onClick": e => {
|
|
26141
|
+
e.preventDefault();
|
|
26142
|
+
e.stopPropagation();
|
|
26143
|
+
},
|
|
26144
|
+
}));
|
|
26145
|
+
/* Tag */
|
|
26146
|
+
const Tag = this.isLink() ? "a" : "span";
|
|
26147
|
+
const { hostStyle, base } = linkStyle({
|
|
26148
|
+
size,
|
|
25510
26149
|
disabled,
|
|
25511
|
-
hidden
|
|
25512
|
-
});
|
|
25513
|
-
const classes = classnames('bcm-link__anchor', iconPosition, {
|
|
25514
|
-
'suffix': this.linkIsExternal(href)
|
|
25515
26150
|
});
|
|
25516
|
-
|
|
25517
|
-
return (h$2(Host, { disabled: disabled, class: hostClasses }, h$2(ElementTagType, { class: classes, href: href, target: this.linkIsExternal(href) ? '_blank' : target }, icon && iconPosition === Bcm$1.IconPosition.prefix && h$2("bcm-icon", { class: "prefix-icon", icon: icon }), h$2("slot", null), this.linkIsExternal(href) && h$2("bcm-icon", { class: "suffix-icon", icon: "far fa-external-link-alt" }))));
|
|
26151
|
+
return (h$2(Host, { class: hostStyle() }, h$2(Tag, Object.assign({ class: base() }, (this.isLink() ? linkAttributes : {}), commonAttributes), icon && iconPosition === Bcm$1.IconPosition.prefix && h$2("i", { class: icon }), h$2("slot", null), this.isExternal(href) && h$2("i", { class: "far fa-external-link-alt" }))));
|
|
25518
26152
|
}
|
|
25519
|
-
get el() { return getElement(this); }
|
|
25520
26153
|
};
|
|
25521
|
-
BcmLink.style = linkCss;
|
|
25522
26154
|
|
|
25523
26155
|
const BcmLinked = class {
|
|
25524
26156
|
constructor(hostRef) {
|
|
@@ -26427,9 +27059,9 @@ class ListKeyControl extends KeyControl {
|
|
|
26427
27059
|
keyUp() { }
|
|
26428
27060
|
}
|
|
26429
27061
|
|
|
26430
|
-
const listCss = "@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\"); @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}*{box-sizing:border-box}.bcm-checkbox{outline:none;border:none;--bcm-checkbox-primary-color-default:var(--bcm-new-ds-color-blue-500);--bcm-checkbox-secondary-color-default:var(--bcm-new-ds-color-white);--bcm-checkbox-primary-color-hover:var(--bcm-new-ds-color-blue-600);--bcm-checkbox-secondary-color-hover:var(--bcm-new-ds-color-slate-50);--bcm-checkbox-primary-color-focus-visible:var(--bcm-new-ds-color-blue-800);--bcm-checkbox-secondary-color-focus-visible:var(--bcm-new-ds-color-slate-50);--bcm-checkbox-primary-color-active:var(--bcm-new-ds-color-blue-700);--bcm-checkbox-secondary-color-active:var(--bcm-new-ds-color-slate-50);--bcm-checkbox-primary-color-disabled:var(--bcm-new-ds-color-slate-300);--bcm-checkbox-secondary-color-disabled:var(--bcm-new-ds-color-slate-200);display:inline-flex;width:fit-content;flex-direction:column;margin-bottom:8px}.bcm-checkbox:focus,.bcm-checkbox:hover,.bcm-checkbox:active{outline:none;border:none}.bcm-checkbox *{box-sizing:border-box}.bcm-checkbox input[type=radio],.bcm-checkbox input[type=checkbox]{-webkit-appearance:none;appearance:none;background-color:#fff;margin:0;display:none}.bcm-checkbox__input{display:flex;flex-direction:row;align-items:flex-start;justify-content:flex-start;flex-wrap:nowrap;padding-top:4px}.bcm-checkbox.hidden{display:none}.bcm-checkbox :hover{cursor:pointer}.bcm-checkbox[disabled] :hover,.bcm-checkbox.disabled :hover{cursor:not-allowed}.bcm-checkbox .slot{font-family:\"Inter\", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;font-weight:500;color:var(--bcm-new-ds-color-slate-600)}.bcm-checkbox .slot:not(:empty){margin-left:8px;margin-right:8px}.bcm-checkbox-size-small .slot{font-size:12px;line-height:calc(12px + 8px);margin-top:-2.5px}.bcm-checkbox-size-small .bcm-checkbox__input{min-height:calc(24px - 4px)}.bcm-checkbox-size-small .bcm-checkbox__label-icon{width:14px;height:14px;min-width:14px;font-size:calc(10px - 2px)}.bcm-checkbox-size-medium .slot{font-size:calc(12px + 1px);line-height:calc(12px + 8px);margin-top:-1.5px}.bcm-checkbox-size-medium .bcm-checkbox__input{min-height:calc(32px - 4px)}.bcm-checkbox-size-medium .bcm-checkbox__label-icon{width:16px;height:16px;min-width:16px;font-size:10px}.bcm-checkbox-size-large .slot{font-size:16px;line-height:calc(16px + 8px);margin-top:-1.5px}.bcm-checkbox-size-large .bcm-checkbox__input{min-height:calc(32px - 4px)}.bcm-checkbox-size-large .bcm-checkbox__label-icon{width:18px;height:18px;min-width:18px;font-size:12px}.bcm-checkbox__label{display:flex;flex-direction:row;align-items:flex-start;justify-content:flex-start;flex-wrap:nowrap}.bcm-checkbox__label-icon{display:flex;flex-direction:column;align-items:center;justify-content:center;flex-wrap:nowrap;border-width:1px;border-style:solid;border-radius:2px}.bcm-checkbox__label-icon-indeterminate{position:relative}.bcm-checkbox__label-icon-indeterminate:after{content:\"\";display:block;position:absolute;width:70%;height:1.5px;background:var(--bcm-new-ds-color-white)}.bcm-checkbox__label-icon.bcm-radio__icon{width:16px;height:16px;box-sizing:border-box;border-radius:100px}.bcm-checkbox__label-icon.bcm-radio__icon .bcm-radio__icon-inner{width:10px;height:10px;border-radius:100px;background-color:var(--bcm-new-ds-color-white)}.bcm-checkbox .bcm-checkbox__label-icon{background:var(--bcm-checkbox-secondary-color-default);color:var(--bcm-checkbox-secondary-color-default);border-color:var(--bcm-new-ds-color-slate-300)}.bcm-checkbox .bcm-checkbox__label-icon-checked,.bcm-checkbox .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-new-ds-color-white);background-color:var(--bcm-checkbox-primary-color-default);border-color:var(--bcm-checkbox-primary-color-default)}.bcm-checkbox .bcm-checkbox__label-icon-checked.bcm-radio__icon,.bcm-checkbox .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon{border-color:var(--bcm-checkbox-primary-color-default);background-color:var(--bcm-checkbox-secondary-color-default)}.bcm-checkbox .bcm-checkbox__label-icon-checked.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon .bcm-radio__icon-inner{background-color:var(--bcm-checkbox-primary-color-default)}.bcm-checkbox .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-checkbox-primary-color-default)}.bcm-checkbox:hover .bcm-checkbox__label-icon{background:var(--bcm-checkbox-secondary-color-hover);color:var(--bcm-checkbox-secondary-color-hover);border-color:var(--bcm-checkbox-primary-color-hover)}.bcm-checkbox:hover .bcm-checkbox__label-icon-checked,.bcm-checkbox:hover .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-new-ds-color-white);background-color:var(--bcm-checkbox-primary-color-hover);border-color:var(--bcm-checkbox-primary-color-hover)}.bcm-checkbox:hover .bcm-checkbox__label-icon-checked.bcm-radio__icon,.bcm-checkbox:hover .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon{border-color:var(--bcm-checkbox-primary-color-hover);background-color:var(--bcm-checkbox-secondary-color-hover)}.bcm-checkbox:hover .bcm-checkbox__label-icon-checked.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox:hover .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon .bcm-radio__icon-inner{background-color:var(--bcm-checkbox-primary-color-hover)}.bcm-checkbox:hover .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-checkbox-primary-color-hover)}.bcm-checkbox:focus-visible .bcm-checkbox__label-icon{background:var(--bcm-checkbox-secondary-color-focus-visible);color:var(--bcm-checkbox-secondary-color-focus-visible);border-color:var(--bcm-checkbox-primary-color-focus-visible)}.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-checked,.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-new-ds-color-white);background-color:var(--bcm-checkbox-primary-color-focus-visible);border-color:var(--bcm-checkbox-primary-color-focus-visible)}.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-checked.bcm-radio__icon,.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon{border-color:var(--bcm-checkbox-primary-color-focus-visible);background-color:var(--bcm-checkbox-secondary-color-focus-visible)}.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-checked.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon .bcm-radio__icon-inner{background-color:var(--bcm-checkbox-primary-color-focus-visible)}.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-checkbox-primary-color-focus-visible)}.bcm-checkbox:active .bcm-checkbox__label-icon{background:var(--bcm-checkbox-secondary-color-active);color:var(--bcm-checkbox-secondary-color-active);border-color:var(--bcm-checkbox-primary-color-active)}.bcm-checkbox:active .bcm-checkbox__label-icon-checked,.bcm-checkbox:active .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-new-ds-color-white);background-color:var(--bcm-checkbox-primary-color-active);border-color:var(--bcm-checkbox-primary-color-active)}.bcm-checkbox:active .bcm-checkbox__label-icon-checked.bcm-radio__icon,.bcm-checkbox:active .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon{border-color:var(--bcm-checkbox-primary-color-active);background-color:var(--bcm-checkbox-secondary-color-active)}.bcm-checkbox:active .bcm-checkbox__label-icon-checked.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox:active .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon .bcm-radio__icon-inner{background-color:var(--bcm-checkbox-primary-color-active)}.bcm-checkbox:active .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-checkbox-primary-color-active)}.bcm-checkbox[disabled] .bcm-checkbox__label-icon,.bcm-checkbox.disabled .bcm-checkbox__label-icon{background:var(--bcm-checkbox-secondary-color-disabled);color:var(--bcm-checkbox-secondary-color-disabled);border-color:var(--bcm-checkbox-primary-color-disabled)}.bcm-checkbox[disabled] .bcm-checkbox__label-icon-checked,.bcm-checkbox[disabled] .bcm-checkbox__label-icon-indeterminate,.bcm-checkbox.disabled .bcm-checkbox__label-icon-checked,.bcm-checkbox.disabled .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-new-ds-color-white);background-color:var(--bcm-checkbox-primary-color-disabled);border-color:var(--bcm-checkbox-primary-color-disabled)}.bcm-checkbox[disabled] .bcm-checkbox__label-icon-checked.bcm-radio__icon,.bcm-checkbox[disabled] .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon,.bcm-checkbox.disabled .bcm-checkbox__label-icon-checked.bcm-radio__icon,.bcm-checkbox.disabled .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon{border-color:var(--bcm-checkbox-primary-color-disabled);background-color:var(--bcm-checkbox-secondary-color-disabled)}.bcm-checkbox[disabled] .bcm-checkbox__label-icon-checked.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox[disabled] .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox.disabled .bcm-checkbox__label-icon-checked.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox.disabled .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon .bcm-radio__icon-inner{background-color:var(--bcm-checkbox-primary-color-disabled)}.bcm-checkbox[disabled] .bcm-checkbox__label-icon-indeterminate,.bcm-checkbox.disabled .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-checkbox-primary-color-disabled)}.bcm-checkbox[no-margin] .bcm-checkbox__input{margin:0;min-height:0;padding:0}.bcm-list{font-family:\"Inter\", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;--width:256px;--height:256px;--max-height:inherit;--min-height:inherit;min-width:90px;display:flex;flex-direction:column;margin:0 0 8px 0}.bcm-list__listbox .bcm-list__container{height:var(--height);max-height:var(--max-height);min-height:var(--min-height)}.bcm-list.full-width{width:100%}.bcm-list__size-small .bcm-list__input{height:24px;font-size:12px;line-height:calc(12px + 8px)}.bcm-list__size-small .bcm-list__input .bcm-tag__content.dismissable{font-size:10px;line-height:calc(10px + 8px)}.bcm-list__size-medium .bcm-list__input{height:32px;font-size:14px;line-height:calc(14px + 8px)}.bcm-list__size-medium .bcm-list__input .bcm-tag__content.dismissable{font-size:12px;line-height:calc(12px + 8px)}.bcm-list__size-large .bcm-list__input{height:40px;font-size:16px;line-height:calc(16px + 8px)}.bcm-list__size-large .bcm-list__input .bcm-tag__content.dismissable{font-size:14px;line-height:calc(14px + 8px)}.bcm-list:hover{outline:none}.bcm-list:hover .bcm-list__input{border-color:var(--bcm-new-ds-color-blue-500);background-color:var(--bcm-new-ds-color-slate-50)}.bcm-list:focus-visible{outline:none}.bcm-list:focus-visible .bcm-list__input{border-color:var(--bcm-new-ds-color-blue-600);background-color:var(--bcm-new-ds-color-white)}.bcm-list:active{outline:none}.bcm-list:active .bcm-list__input{border-color:var(--bcm-new-ds-color-blue-600);box-shadow:0 1px 3px 0 rgba(17, 24, 38, 0.1)}.bcm-list__container{--width:256px;--height:256px;width:var(--width);height:var(--height);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;padding-top:8px;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;flex-wrap:nowrap;gap:4px}.bcm-list__container main{padding:0 8px;flex:1;overflow:auto;display:flex;flex-direction:column}.bcm-list__container-search{margin:0 8px}.bcm-list__container-search:after{margin:4px 0}.bcm-list__container-no-data{flex:1;display:flex;justify-content:stretch;align-items:stretch;padding-bottom:4px}.bcm-list__container.error{border-color:var(--bcm-color-red-6)}.bcm-list__container.full-width{width:100%}.bcm-list__container.bcm-list__type-linked-component,.bcm-list__container.bcm-list__type-select,.bcm-list__container.bcm-list__type-autocomplete{display:none;opacity:0;visibility:hidden;position:absolute;top:0;left:0;height:0;width:0;transform:translateY(10%);z-index:10800}.bcm-list__container.bcm-list__type-linked-component.is-open,.bcm-list__container.bcm-list__type-select.is-open,.bcm-list__container.bcm-list__type-autocomplete.is-open{transition:transform 50ms;display:flex}.bcm-list__container.bcm-list__type-linked-component.is-open-animation,.bcm-list__container.bcm-list__type-select.is-open-animation,.bcm-list__container.bcm-list__type-autocomplete.is-open-animation{opacity:1;transform:translateY(0);visibility:visible}.bcm-list__container.bcm-list__type-linked-component{margin-top:2px}.bcm-list__label{line-height:1}.bcm-list__input{display:flex;align-items:center;justify-content:space-between;box-sizing:border-box;border:1px solid var(--bcm-new-ds-color-slate-300);border-radius:4px;color:var(--bcm-new-ds-color-slate-600);background-color:var(--bcm-new-ds-color-white);user-select:none;cursor:pointer;padding:0 8px;height:32px;overflow:hidden;position:relative;transition:background-color 100ms, border-color 100ms}.bcm-list__input-spinner{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;justify-content:center;align-items:center;background-color:var(--bcm-color-grey-1);opacity:0;visibility:hidden;transition:opacity 0.2s ease-in-out;z-index:-1}.bcm-list__input-spinner.is-open{opacity:1;visibility:visible;z-index:1}.bcm-list__input-container{flex:1;display:block;overflow:hidden}.bcm-list__input-container.value-empty{color:#6B7280}.bcm-list__input-container.type-single,.bcm-list__input-container.value-empty{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bcm-list__input-placeholder{color:#6B7280}.bcm-list__input-tag-container{height:100%;width:100%;display:flex;align-items:center;justify-content:flex-start;flex-wrap:nowrap;grid-gap:2px;line-height:1}.bcm-list__input-buttons{display:flex;align-items:center;justify-content:flex-end;grid-gap:4px}.bcm-list__input-buttons-button{display:flex;align-items:center;justify-content:center;box-sizing:border-box;padding:0 4px 0 4px;font-size:16px;color:var(--bcm-new-ds-color-slate-500)}.bcm-list__input-buttons-button.caret-is{transform:rotate(360deg);transition:transform 0.2s ease-in-out}.bcm-list__input-buttons-button.caret-is-open{transform:rotate(180deg)}.bcm-list__input-buttons:not(.disabled) .bcm-list__input-buttons-button:hover{cursor:pointer;color:var(--bcm-new-ds-color-slate-600)}.bcm-list__input-autocomplete{position:relative;padding-right:0}.bcm-list__input-autocomplete .bcm-list-input-selected-text{background-color:#ffffff;display:flex;align-items:center;justify-content:flex-start;width:calc(100% - 24px);height:100%;padding:0 calc(8px + 4px);position:absolute;top:0;left:0}.bcm-list__input-autocomplete .bcm-list__input-container{height:100%;display:flex;flex-direction:row}.bcm-list__input-autocomplete .bcm-list__input-container .bcm-list__input-tag-container{width:auto}.bcm-list__input-autocomplete .bcm-input,.bcm-list__input-autocomplete .bcm-list__autocomplete{height:100%;min-width:70px;width:100%}.bcm-list__input-autocomplete .bcm-input__container,.bcm-list__input-autocomplete .bcm-list__autocomplete__container{height:100%;border:none;padding:0;width:100%}.bcm-list__input-autocomplete .bcm-input__container:not(.disabled).focused,.bcm-list__input-autocomplete .bcm-input__container:not(.disabled):hover,.bcm-list__input-autocomplete .bcm-list__autocomplete__container:not(.disabled).focused,.bcm-list__input-autocomplete .bcm-list__autocomplete__container:not(.disabled):hover{border:none;box-shadow:none}.bcm-list__autocomplete{width:100%;position:relative}.bcm-list.full-width .bcm-list__container,.bcm-list.full-width .bcm-list__input{width:100%}.bcm-list.error .bcm-list__input{border-color:var(--bcm-color-red-6)}.bcm-list.disabled .bcm-list__container,.bcm-list.disabled .bcm-list__input{color:var(--bcm-new-ds-color-slate-300);background-color:var(--bcm-new-ds-color-slate-50);cursor:not-allowed}.bcm-list.disabled .bcm-tag__content.dismissable .close-button{cursor:default}.bcm-list:not(.disabled) .bcm-list__input .bcm-tag__content.checked .close-button bcm-icon{color:var(--bcm-new-ds-color-slate-100)}.bcm-list:not(.disabled) .bcm-list__input .bcm-tag__content.checked .close-button:hover bcm-icon{color:var(--bcm-new-ds-color-slate-200)}.bcm-list:not(.disabled) .bcm-list__input:hover{border-color:var(--bcm-new-ds-color-blue-500)}.bcm-list:not(.disabled) .bcm-list__input:hover .bcm-tag__content.dismissable:not(.checked){background-color:var(--bcm-new-ds-color-slate-200);border-color:var(--bcm-new-ds-color-slate-200)}.bcm-list:not(.disabled) .bcm-list__input:focus-visible{border-color:var(--bcm-new-ds-color-blue-500);box-shadow:0 1px 3px 0 rgba(17, 24, 38, 0.1)}.bcm-list:not(.disabled) .bcm-list__input:active{border-color:var(--bcm-new-ds-color-blue-500)}.bcm-list__item{padding:2px 0}.bcm-list__item.disabled{user-select:none}.bcm-list__item:focus{outline:none}.bcm-list__item:focus-visible>.bcm-list__item-content{background-color:var(--bcm-new-ds-color-slate-300)}.bcm-list__item:focus-visible>.bcm-list__item-content:not(.disabled){color:var(--bcm-new-ds-color-slate-600)}.bcm-list__item-content{display:flex;flex-direction:row;align-items:stretch;justify-content:flex-start;flex-wrap:nowrap;cursor:pointer;border-radius:4px;padding:0;padding-left:4px;color:var(--bcm-new-ds-color-slate-700);transition:background-color 0.2s ease}.bcm-list__item-content.disabled{color:var(--bcm-new-ds-color-slate-400);background-color:var(--bcm-new-ds-color-slate-200);user-select:none;cursor:not-allowed}.bcm-list__item-content.readonly{color:var(--bcm-new-ds-color-slate-500);background-color:var(--bcm-new-ds-color-slate-100);cursor:default}.bcm-list__item-content.readonly .bcm-list__item-content-collapse-icon{color:var(--bcm-new-ds-color-slate-700);cursor:pointer}.bcm-list__item-content.selected{color:var(--bcm-new-ds-color-white);background-color:var(--bcm-new-ds-color-blue-500)}.bcm-list__item-content.selected:hover:not(.disabled):not(.readonly){color:var(--bcm-new-ds-color-white);background-color:var(--bcm-new-ds-color-blue-600)}.bcm-list__item-content:hover:not(.disabled):not(.readonly){background-color:var(--bcm-new-ds-color-slate-100)}.bcm-list__item-content:active:not(.disabled):not(.readonly){color:var(--bcm-new-ds-color-slate-600);background-color:var(--bcm-new-ds-color-slate-200)}.bcm-list__item-content-collapse-icon{width:16px;padding:0 8px;display:flex;align-items:center;justify-content:center;font-size:16px}.bcm-list__item-content-collapse-icon.child{cursor:pointer}.bcm-list__item-content-text{user-select:none;padding:8px;width:100%;display:flex;flex-direction:row;align-items:center;justify-content:flex-start}.bcm-list__item-content-text.treeview{padding:8px 0}.bcm-list__item-content-text-checkbox{display:flex;flex-direction:row;align-items:center;justify-content:center;flex-wrap:nowrap;margin-right:8px}.bcm-list__item-content-text-checkbox .bcm-checkbox{margin:0}.bcm-list__item-content-text-inner{width:100%}.bcm-list__item-content-text mark{padding:0;margin:0;font-size:inherit;color:var(--bcm-color-grey-8);background-color:var(--bcm-color-yellow-4)}.bcm-list__item-childs{padding-left:16px}.bcm-list__item-small{padding:2px 0 2px 8px;font-size:10px;line-height:calc(10px + 8px)}.bcm-list__item-small .bcm-list__item-content-text{padding:3px 4px}.bcm-list__item-medium{font-size:12px;line-height:calc(12px + 8px)}.bcm-list__item-medium .bcm-list__item-content-text{padding:6px 4px}.bcm-list__item-large{font-size:14px;line-height:calc(14px + 8px)}.bcm-list__item-large .bcm-list__item-content-text{padding:9px 4px}.bcm-list__item--group{border-radius:4px}.bcm-list__item--group:focus>.bcm-list__item-content:not(.disabled){background-color:var(--bcm-new-ds-color-slate-50);color:var(--bcm-new-ds-color-slate-600)}.bcm-list__item--group>.bcm-list__item-content{background-color:var(--bcm-new-ds-color-slate-50);color:var(--bcm-new-ds-color-slate-600);border-radius:4px 4px 0 0;cursor:default;font-size:14px;line-height:calc(14px + 8px);font-weight:500;position:sticky;top:0}.bcm-list__item--group>.bcm-list__item-content>.bcm-list__item-content-text{padding:4px 8px 4px 16px}.bcm-list__item--group>.bcm-list__item-content:hover,.bcm-list__item--group>.bcm-list__item-content:focus{color:var(--bcm-new-ds-color-slate-800);background-color:var(--bcm-new-ds-color-slate-50)}.bcm-list__item--group>.bcm-list__item-content-unclickable:hover{color:var(--bcm-new-ds-color-slate-700);background-color:var(--bcm-new-ds-color-slate-50)}.bcm-list__item--group>.bcm-list__item-childs{background-color:var(--bcm-new-ds-color-slate-50);color:var(--bcm-new-ds-color-slate-600);padding-bottom:8px;border-radius:0 0 4px 4px;padding-left:8px}.bcm-list__item--group>.bcm-list__item-childs .bcm-list__item-content{background-color:var(--bcm-new-ds-color-white);color:var(--bcm-new-ds-color-slate-600)}.bcm-list__item--group>.bcm-list__item-childs .bcm-list__item-content:hover{background-color:var(--bcm-new-ds-color-slate-100)}.bcm-list__item--group>.bcm-list__item-childs .bcm-list__item-content:active{background-color:var(--bcm-new-ds-color-slate-200)}.bcm-list__item--group>.bcm-list__item-childs .bcm-list__item-content:focus-visible{background-color:var(--bcm-new-ds-color-slate-300)}.bcm-list__item--group>.bcm-list__item-childs .bcm-list__item-content.selected{background-color:var(--bcm-new-ds-color-blue-500);color:var(--bcm-new-ds-color-white)}.bcm-list__item--group>.bcm-list__item-childs .bcm-list__item-content.selected:hover{background-color:var(--bcm-new-ds-color-blue-600)}.bcm-list__item--group>.bcm-list__item-childs .bcm-list__item-content.selected:active{background-color:var(--bcm-new-ds-color-blue-700)}.bcm-list__linked{display:none}.bcm-list .bcm-tag--other .value{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bcm-info-footer{text-align:right;padding:4px 8px;background-color:var(--bcm-new-ds-color-slate-100);color:var(--bcm-new-ds-color-slate-600);border-radius:0 0 4px 4px}";
|
|
27062
|
+
const listCss = "@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}:root{--bcm-checkbox-text:var(--bcm-ui-color-text-default);--bcm-checkbox-border:var(--bcm-ui-color-border-default);--bcm-checkbox-border-hover:var(--bcm-ui-color-border-primary-info);--bcm-checkbox-bg:var(--bcm-ui-color-background-default-default);--bcm-checkbox-bg-hover:var(--bcm-ui-color-background-default-default);--bcm-checkbox-checked-border:var(--bcm-ui-color-background-primary-info-default);--bcm-checkbox-checked-border-hover:var(--bcm-ui-color-background-primary-info-hover);--bcm-checkbox-checked-bg:var(--bcm-ui-color-background-primary-info-default);--bcm-checkbox-checked-bg-hover:var(--bcm-ui-color-background-primary-info-hover)}.bcm-list{font-family:\"Inter\", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;--width:256px;--height:256px;--max-height:inherit;--min-height:inherit;min-width:90px;display:flex;flex-direction:column;margin:0 0 8px 0}.bcm-list__listbox .bcm-list__container{height:var(--height);max-height:var(--max-height);min-height:var(--min-height)}.bcm-list.full-width{width:100%}.bcm-list__size-small .bcm-list__input{height:24px;font-size:var(--bcm-ui-font-size-4);line-height:var(--bcm-ui-line-height-4)}.bcm-list__size-small .bcm-list__input .bcm-tag__content.dismissable{font-size:10px;line-height:calc(10px + 8px)}.bcm-list__size-medium .bcm-list__input{height:32px;font-size:var(--bcm-ui-font-size-5);line-height:var(--bcm-ui-line-height-5)}.bcm-list__size-medium .bcm-list__input .bcm-tag__content.dismissable{font-size:12px;line-height:calc(12px + 8px)}.bcm-list__size-large .bcm-list__input{height:40px;font-size:var(--bcm-ui-font-size-6);line-height:var(--bcm-ui-line-height-6)}.bcm-list__size-large .bcm-list__input .bcm-tag__content.dismissable{font-size:14px;line-height:calc(14px + 8px)}.bcm-list:hover{outline:none}.bcm-list:hover .bcm-list__input{border-color:var(--bcm-ui-color-border-primary-info)}.bcm-list:focus-visible{outline:none}.bcm-list:focus-visible .bcm-list__input{border-color:var(--bcm-ui-color-border-primary-info)}.bcm-list:active{outline:none}.bcm-list:active .bcm-list__input{border-color:var(--bcm-ui-color-border-primary-info);box-shadow:0 1px 3px 0 rgba(17, 24, 38, 0.1)}.bcm-list__container{--width:256px;--height:256px;width:var(--width);height:var(--height);background-color:var(--bcm-ui-color-background-base-default);border:1px solid var(--bcm-ui-color-border-default);border-radius:var(--bcm-ui-radius);box-sizing:border-box;padding-top:var(--bcm-ui-spacing-1-5, 6px);display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;flex-wrap:nowrap;gap:4px}.bcm-list__container main{padding:0;flex:1;overflow:auto;display:flex;flex-direction:column}.bcm-list__container-search{margin:0 8px}.bcm-list__container-search:after{margin:4px 0}.bcm-list__container-no-data{flex:1;display:flex;justify-content:stretch;align-items:stretch;padding-bottom:4px}.bcm-list__container.error{border-color:var(--bcm-ui-color-border-error)}.bcm-list__container.full-width{width:100%}.bcm-list__container.bcm-list__type-linked-component,.bcm-list__container.bcm-list__type-select,.bcm-list__container.bcm-list__type-autocomplete{display:none;opacity:0;visibility:hidden;position:absolute;top:0;left:0;height:0;width:0;transform:translateY(10%);box-shadow:var(--bcm-ui-box-shadow-3);border:none;z-index:10800}.bcm-list__container.bcm-list__type-linked-component.is-open,.bcm-list__container.bcm-list__type-select.is-open,.bcm-list__container.bcm-list__type-autocomplete.is-open{transition:transform 50ms;display:flex}.bcm-list__container.bcm-list__type-linked-component.is-open-animation,.bcm-list__container.bcm-list__type-select.is-open-animation,.bcm-list__container.bcm-list__type-autocomplete.is-open-animation{opacity:1;transform:translateY(0);visibility:visible}.bcm-list__container.bcm-list__type-linked-component{margin-top:2px}.bcm-list__label{line-height:1}.bcm-list__input{display:flex;align-items:center;justify-content:space-between;box-sizing:border-box;border:1px solid var(--bcm-ui-color-border-default);border-radius:var(--bcm-ui-radius);color:var(--bcm-ui-color-text-default);background-color:var(--bcm-ui-color-background-base-default);user-select:none;cursor:pointer;padding:0 var(--bcm-ui-spacing-3);height:32px;overflow:hidden;position:relative;transition:background-color 100ms, border-color 100ms}.bcm-list__input-spinner{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;justify-content:center;align-items:center;background-color:var(--bcm-color-grey-1);opacity:0;visibility:hidden;transition:opacity 0.2s ease-in-out;z-index:-1}.bcm-list__input-spinner.is-open{opacity:1;visibility:visible;z-index:1}.bcm-list__input-container{flex:1;display:block;overflow:hidden}.bcm-list__input-container.value-empty{color:#6B7280}.bcm-list__input-container.type-single,.bcm-list__input-container.value-empty{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bcm-list__input-placeholder{color:var(--bcm-ui-color-text-placeholder)}.bcm-list__input-tag-container{height:100%;width:100%;display:flex;align-items:center;justify-content:flex-start;flex-wrap:nowrap;grid-gap:2px;line-height:1}.bcm-list__input-buttons{display:flex;align-items:center;justify-content:flex-end;grid-gap:4px}.bcm-list__input-buttons-button{display:flex;align-items:center;justify-content:center;box-sizing:border-box;padding:0 4px 0 4px;font-size:16px;color:var(--bcm-ui-color-text-placeholder)}.bcm-list__input-buttons-button.caret-is{transform:rotate(360deg);transition:transform 0.2s ease-in-out}.bcm-list__input-buttons-button.caret-is-open{transform:rotate(180deg)}.bcm-list__input-buttons:not(.disabled) .bcm-list__input-buttons-button:hover{cursor:pointer;color:var(--bcm-new-ds-color-slate-600)}.bcm-list__input-autocomplete{position:relative;padding-right:0}.bcm-list__input-autocomplete .bcm-list-input-selected-text{background-color:#ffffff;display:flex;align-items:center;justify-content:flex-start;width:calc(100% - 24px);height:100%;padding:0 calc(8px + 4px);position:absolute;top:0;left:0}.bcm-list__input-autocomplete .bcm-list__input-container{height:100%;display:flex;flex-direction:row}.bcm-list__input-autocomplete .bcm-list__input-container .bcm-list__input-tag-container{width:auto}.bcm-list__input-autocomplete .bcm-input,.bcm-list__input-autocomplete .bcm-list__autocomplete{height:100%;min-width:70px;width:100%}.bcm-list__input-autocomplete .bcm-input__container,.bcm-list__input-autocomplete .bcm-list__autocomplete__container{height:100%;border:none;padding:0;width:100%}.bcm-list__input-autocomplete .bcm-input__container:not(.disabled).focused,.bcm-list__input-autocomplete .bcm-input__container:not(.disabled):hover,.bcm-list__input-autocomplete .bcm-list__autocomplete__container:not(.disabled).focused,.bcm-list__input-autocomplete .bcm-list__autocomplete__container:not(.disabled):hover{border:none;box-shadow:none}.bcm-list__autocomplete{width:100%;position:relative}.bcm-list.full-width .bcm-list__container,.bcm-list.full-width .bcm-list__input{width:100%}.bcm-list.error .bcm-list__input{border-color:var(--bcm-ui-color-border-error)}.bcm-list.disabled .bcm-list__container,.bcm-list.disabled .bcm-list__input{color:var(--bcm-ui-color-text-disabled);background-color:var(--bcm-ui-color-background-disabled-disable);cursor:not-allowed}.bcm-list.disabled .bcm-tag__content.dismissable .close-button{cursor:default}.bcm-list:not(.disabled) .bcm-list__input .bcm-tag__content.checked .close-button bcm-icon{color:var(--bcm-new-ds-color-slate-100)}.bcm-list:not(.disabled) .bcm-list__input .bcm-tag__content.checked .close-button:hover bcm-icon{color:var(--bcm-new-ds-color-slate-200)}.bcm-list:not(.disabled) .bcm-list__input:hover{border-color:var(--bcm-ui-color-border-primary-info)}.bcm-list:not(.disabled) .bcm-list__input:hover .bcm-tag__content.dismissable:not(.checked){background-color:var(--bcm-new-ds-color-slate-200);border-color:var(--bcm-new-ds-color-slate-200)}.bcm-list:not(.disabled) .bcm-list__input:focus-visible{border-color:var(--bcm-ui-color-border-primary-info);box-shadow:0 1px 3px 0 rgba(17, 24, 38, 0.1)}.bcm-list:not(.disabled) .bcm-list__input:active{border-color:var(--bcm-ui-color-border-primary-info)}.bcm-list__item{padding:0}.bcm-list__item.disabled{user-select:none}.bcm-list__item:focus{outline:none}.bcm-list__item:focus-visible>.bcm-list__item-content{background-color:var(--bcm-new-ds-color-slate-300)}.bcm-list__item:focus-visible>.bcm-list__item-content:not(.disabled){color:var(--bcm-new-ds-color-slate-600)}.bcm-list__item-content{display:flex;flex-direction:row;align-items:stretch;justify-content:flex-start;flex-wrap:nowrap;cursor:pointer;padding:0;color:var(--bcm-ui-color-text-default);transition:background-color 0.2s ease}.bcm-list__item-content.disabled{color:var(--bcm-ui-color-text-disabled);user-select:none;cursor:not-allowed}.bcm-list__item-content.readonly{color:var(--bcm-ui-color-text-default);user-select:none;cursor:not-allowed}.bcm-list__item-content.readonly .bcm-list__item-content-collapse-icon{color:var(--bcm-new-ds-color-slate-700);cursor:pointer}.bcm-list__item-content.selected{color:var(--bcm-ui-color-text-base);background-color:var(--bcm-ui-color-background-primary-info-default)}.bcm-list__item-content.selected:hover:not(.disabled):not(.readonly){color:var(--bcm-ui-color-text-base);background-color:var(--bcm-ui-color-background-primary-info-hover)}.bcm-list__item-content:hover:not(.disabled):not(.readonly){background-color:var(--bcm-ui-color-background-base-hover)}.bcm-list__item-content:active:not(.disabled):not(.readonly){background-color:var(--bcm-ui-color-background-base-active)}.bcm-list__item-content-collapse-icon{width:var(--bcm-ui-spacing-4);display:flex;align-items:center;justify-content:center;font-size:var(--bcm-ui-font-size-5);margin-right:var(--bcm-ui-spacing-2)}.bcm-list__item-content-collapse-icon.child{cursor:pointer}.bcm-list__item-content-text{user-select:none;width:100%;display:flex;flex-direction:row;align-items:center;justify-content:flex-start}.bcm-list__item-content-text-checkbox{display:flex;flex-direction:row;align-items:center;justify-content:center;flex-wrap:nowrap;margin-right:8px}.bcm-list__item-content-text-checkbox .bcm-checkbox{margin:0}.bcm-list__item-content-text-inner{width:100%}.bcm-list__item-content-text mark{padding:0;margin:0;font-size:inherit;color:var(--bcm-color-grey-8);background-color:var(--bcm-color-yellow-4)}.bcm-list__item-childs{padding-left:16px}.bcm-list__item-small{font-size:var(--bcm-ui-font-size-4);line-height:var(--bcm-ui-line-height-4)}.bcm-list__item-small .bcm-list__item-content{padding:var(--bcm-ui-spacing-1-5) var(--bcm-ui-spacing-4)}.bcm-list__item-medium{font-size:var(--bcm-ui-font-size-5);line-height:var(--bcm-ui-line-height-5)}.bcm-list__item-medium .bcm-list__item-content{padding:var(--bcm-ui-spacing-2) var(--bcm-ui-spacing-4)}.bcm-list__item-large{font-size:var(--bcm-ui-font-size-6);line-height:var(--bcm-ui-line-height-6)}.bcm-list__item-large .bcm-list__item-content{padding:var(--bcm-ui-spacing-2) var(--bcm-ui-spacing-4)}.bcm-list__item--group{border-radius:4px}.bcm-list__item--group:focus>.bcm-list__item-content:not(.disabled){background-color:var(--bcm-new-ds-color-slate-50);color:var(--bcm-new-ds-color-slate-600)}.bcm-list__item--group>.bcm-list__item-content{background-color:var(--bcm-new-ds-color-slate-50);color:var(--bcm-new-ds-color-slate-600);border-radius:4px 4px 0 0;cursor:default;font-size:14px;line-height:calc(14px + 8px);font-weight:500;position:sticky;top:0}.bcm-list__item--group>.bcm-list__item-content>.bcm-list__item-content-text{padding:4px 8px 4px 16px}.bcm-list__item--group>.bcm-list__item-content:hover,.bcm-list__item--group>.bcm-list__item-content:focus{color:var(--bcm-new-ds-color-slate-800);background-color:var(--bcm-new-ds-color-slate-50)}.bcm-list__item--group>.bcm-list__item-content-unclickable:hover{color:var(--bcm-new-ds-color-slate-700);background-color:var(--bcm-new-ds-color-slate-50)}.bcm-list__item--group>.bcm-list__item-childs{background-color:var(--bcm-new-ds-color-slate-50);color:var(--bcm-new-ds-color-slate-600);padding-bottom:8px;border-radius:0 0 4px 4px;padding-left:8px}.bcm-list__item--group>.bcm-list__item-childs .bcm-list__item-content{background-color:var(--bcm-new-ds-color-white);color:var(--bcm-new-ds-color-slate-600)}.bcm-list__item--group>.bcm-list__item-childs .bcm-list__item-content:hover{background-color:var(--bcm-new-ds-color-slate-100)}.bcm-list__item--group>.bcm-list__item-childs .bcm-list__item-content:active{background-color:var(--bcm-new-ds-color-slate-200)}.bcm-list__item--group>.bcm-list__item-childs .bcm-list__item-content:focus-visible{background-color:var(--bcm-new-ds-color-slate-300)}.bcm-list__item--group>.bcm-list__item-childs .bcm-list__item-content.selected{background-color:var(--bcm-new-ds-color-blue-500);color:var(--bcm-new-ds-color-white)}.bcm-list__item--group>.bcm-list__item-childs .bcm-list__item-content.selected:hover{background-color:var(--bcm-new-ds-color-blue-600)}.bcm-list__item--group>.bcm-list__item-childs .bcm-list__item-content.selected:active{background-color:var(--bcm-new-ds-color-blue-700)}.bcm-list__linked{display:none}.bcm-list .bcm-tag--other .value{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bcm-info-footer{padding:var(--bcm-ui-spacing-2) var(--bcm-ui-spacing-3);background-color:var(--bcm-ui-color-background-default-default);color:var(--bcm-ui-color-text-helper);border-radius:0 0 var(--bcm-ui-radius) var(--bcm-ui-radius);font-size:var(--bcm-ui-font-size-4);line-height:var(--bcm-ui-line-height-4)}";
|
|
26431
27063
|
|
|
26432
|
-
var __decorate$
|
|
27064
|
+
var __decorate$4 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
26433
27065
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
26434
27066
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
26435
27067
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -26498,7 +27130,7 @@ const BcmList = class {
|
|
|
26498
27130
|
this.captionType = Bcm.Status.default;
|
|
26499
27131
|
this.captionError = undefined;
|
|
26500
27132
|
this.emptyText = undefined;
|
|
26501
|
-
this.emptyIcon = "
|
|
27133
|
+
this.emptyIcon = "fa-duotone fa-folder-open";
|
|
26502
27134
|
this.captionCache = undefined;
|
|
26503
27135
|
this.captionTypeCache = undefined;
|
|
26504
27136
|
this.tick = {};
|
|
@@ -27238,10 +27870,10 @@ const BcmList = class {
|
|
|
27238
27870
|
"data": ["dataChanged"]
|
|
27239
27871
|
}; }
|
|
27240
27872
|
};
|
|
27241
|
-
__decorate$
|
|
27873
|
+
__decorate$4([
|
|
27242
27874
|
IsLoad()
|
|
27243
27875
|
], BcmList.prototype, "el", void 0);
|
|
27244
|
-
__decorate$
|
|
27876
|
+
__decorate$4([
|
|
27245
27877
|
JsonParse("data", true)
|
|
27246
27878
|
], BcmList.prototype, "dataChanged", null);
|
|
27247
27879
|
BcmList.style = listCss;
|
|
@@ -28146,7 +28778,7 @@ const BcmListbox = class {
|
|
|
28146
28778
|
customStyles = Object.assign(Object.assign({}, customStyles), { 'height': this.height });
|
|
28147
28779
|
}
|
|
28148
28780
|
const captionClasses = classnames('size-1', 'input-caption', 'caption-' + captionType);
|
|
28149
|
-
return (h$2(Host, { class: hostClasses, style: customStyles, "bcm-internal-id": this._internal_id }, !innerComponent && label && h$2("div", null, h$2("bcm-label", { tooltip: this.tooltip, type: captionType, value: label, required: required })), treeview === true && (h$2("bcm-treeview", { _internal_id: this._internal_id })), treeview == false && (h$2("div", { class: bcmListbox, style: customStyles }, search && (h$2("div", { class: "search", id: "search", style: { 'display': String(showSearch) == 'false' ? 'none' : 'block' } }, h$2("bcm-old-search", { _internal_id: this._internal_id, searchPlaceholder: this.searchPlaceholder, searchValue: searchText, "on-bcm-focus": () => this.handleFocus(true), "on-bcm-blur": () => this.handleFocus(false), data: searchData, returnField: returnField, searchFields: searchFields, searchSub: searchSub, clearable: true }), h$2("bcm-divider", null))), h$2("div", { id: "bcm-listbox-list", class: "bcm-listbox-list loading", style: customStylesList }, checkboxes && (h$2("div", { class: classes, id: "checkall" }, h$2("div", { class: classesContainer, onClick: () => this.handleIndeterminateClick() }, h$2("div", { class: "check-content" }, indeterminateState == 'indeterminate' && (h$2("span", { class: "indeterminate" })) || (h$2("bcm-checkbox
|
|
28781
|
+
return (h$2(Host, { class: hostClasses, style: customStyles, "bcm-internal-id": this._internal_id }, !innerComponent && label && h$2("div", null, h$2("bcm-label", { tooltip: this.tooltip, type: captionType, value: label, required: required })), treeview === true && (h$2("bcm-treeview", { _internal_id: this._internal_id })), treeview == false && (h$2("div", { class: bcmListbox, style: customStyles }, search && (h$2("div", { class: "search", id: "search", style: { 'display': String(showSearch) == 'false' ? 'none' : 'block' } }, h$2("bcm-old-search", { _internal_id: this._internal_id, searchPlaceholder: this.searchPlaceholder, searchValue: searchText, "on-bcm-focus": () => this.handleFocus(true), "on-bcm-blur": () => this.handleFocus(false), data: searchData, returnField: returnField, searchFields: searchFields, searchSub: searchSub, clearable: true }), h$2("bcm-divider", null))), h$2("div", { id: "bcm-listbox-list", class: "bcm-listbox-list loading", style: customStylesList }, checkboxes && (h$2("div", { class: classes, id: "checkall" }, h$2("div", { class: classesContainer, onClick: () => this.handleIndeterminateClick() }, h$2("div", { class: "check-content" }, indeterminateState == 'indeterminate' && (h$2("span", { class: "indeterminate" })) || (h$2("bcm-checkbox", { onClick: (e) => this.handleCheckboxClick(e), checked: checked, "no-caption": true }))), h$2("div", { class: textContent }, "Select All")), h$2("div", { class: "divider" }, h$2("bcm-divider", null)))),
|
|
28150
28782
|
// this.empty == false && (
|
|
28151
28783
|
h$2("div", { id: "list-container", class: listContainer, style: listContainerStyle }, this.items.length !== 0 && this.items.map((item) => ((item.type === 'group' ? this.recursiveGroupRenderer(item) : this.itemRenderer(item)))))
|
|
28152
28784
|
// )
|
|
@@ -28340,7 +28972,7 @@ const BcmListboxItem = class {
|
|
|
28340
28972
|
'size-2': size === 'small' || size === 'medium',
|
|
28341
28973
|
'size-3': size === 'large',
|
|
28342
28974
|
});
|
|
28343
|
-
return (h$2(Host, { class: hostClasses }, h$2("div", { class: classes }, h$2("div", { class: classesContainer, onClick: () => this.handleClick() }, checkboxes && (h$2("div", { class: "check-content" }, h$2("bcm-checkbox
|
|
28975
|
+
return (h$2(Host, { class: hostClasses }, h$2("div", { class: classes }, h$2("div", { class: classesContainer, onClick: () => this.handleClick() }, checkboxes && (h$2("div", { class: "check-content" }, h$2("bcm-checkbox", { id: 'check-' + _id, onClick: (e) => this.handleCheckboxClick(e), checked: checked, disabled: this.disabled }))), this.template && (h$2("div", { class: htmlContent, title: tooltipText, innerHTML: this.templateParser(this.template) })), this.template == null && (h$2("div", { class: textContent, title: tooltipText }, h$2("div", null, (avatar || avatarName || avatarImage) && (h$2("div", { class: "avatar" }, h$2("bcm-avatar", Object.assign({ size: "small", name: text }, avatarName && { name: avatarName }, avatarImage && { image: avatarImage })))), showIcon && icon && (h$2("bcm-icon", { class: "icon", icon: icon })), text && (h$2("span", { id: "text" }, text)) || (h$2("slot", null))), h$2("div", null, (secondaryText) && (h$2("div", { class: "secondaryText size-1" }, secondaryText)))))))));
|
|
28344
28976
|
}
|
|
28345
28977
|
get el() { return getElement(this); }
|
|
28346
28978
|
};
|
|
@@ -28348,6 +28980,16 @@ BcmListboxItem.style = listboxItemCss;
|
|
|
28348
28980
|
|
|
28349
28981
|
const menuCss = "@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}*{box-sizing:border-box}.bcm-menu{--bcm-menu-color-default:var(--bcm-new-ds-color-slate-700);--bcm-menu-background-color-default:var(--bcm-new-ds-color-transparent);--bcm-menu-icon-color-default:var(--bcm-new-ds-color-slate-600);--bcm-menu-color-hover:var(--bcm-new-ds-color-slate-800);--bcm-menu-background-color-hover:var(--bcm-new-ds-color-slate-50);--bcm-menu-icon-color-hover:var(--bcm-new-ds-color-slate-700);--bcm-menu-color-active:var(--bcm-new-ds-color-white);--bcm-menu-background-color-active:var(--bcm-color-primary-600);--bcm-menu-icon-color-active:var(--bcm-new-ds-color-white);--bcm-menu-color-focus-visible:var(--bcm-new-ds-color-white);--bcm-menu-background-color-focus-visible:var(--bcm-color-primary-600);--bcm-menu-icon-color-focus-visible:var(--bcm-new-ds-color-white);--bcm-menu-color-disabled:var(--bcm-new-ds-color-slate-50);--bcm-menu-background-color-disabled:var(--bcm-new-ds-color-slate-300);--bcm-menu-icon-color-disabled:var(--bcm-new-ds-color-slate-50);--bcm-menu-color-dropdownDisabled:var(--bcm-new-ds-color-slate-400);--bcm-menu-background-color-dropdownDisabled:var(--bcm-new-ds-color-transparent);--bcm-menu-icon-color-dropdownDisabled:var(--bcm-new-ds-color-slate-400);--bcm-menu-color-active-hover:var(--bcm-new-ds-color-white);--bcm-menu-background-color-active-hover:var(--bcm-color-primary-700);--bcm-menu-icon-color-active-hover:var(--bcm-new-ds-color-white);--bcm-menu-color-active-focus-visible:var(--bcm-new-ds-color-white);--bcm-menu-background-color-active-focus-visible:var(--bcm-color-primary-800);--bcm-menu-icon-color-active-focus-visible:var(--bcm-new-ds-color-white);--bcm-menu-color-active-active:var(--bcm-new-ds-color-white);--bcm-menu-background-color-active-active:var(--bcm-color-primary-900);--bcm-menu-icon-color-active-active:var(--bcm-new-ds-color-white);font-family:\"Inter\", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;display:inline-block;position:relative;width:210px;box-shadow:0 2px 6px 1px rgba(17, 24, 38, 0.1);border-radius:8px;background-color:var(--bcm-new-ds-color-white);transition:background-color 0.1s ease-in-out, width 0.3s ease-in-out}.bcm-menu__container{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;flex-wrap:nowrap}.bcm-menu__item{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;flex-wrap:nowrap;font:inherit;cursor:pointer;color:inherit;background-color:inherit;padding:0;margin:0;border:none;outline:none;text-decoration:none}.bcm-menu__item:hover,.bcm-menu__item:focus,.bcm-menu__item:active{outline:none;text-decoration:none}.bcm-menu__item--is-sub{color:var(--bcm-menu-color-hover);background-color:var(--bcm-menu-background-color-hover);border-radius:4px}.bcm-menu__item--is-sub .bcm-menu__item-link-icon,.bcm-menu__item--is-sub .bcm-menu__item-link-toggle{color:var(--bcm-menu-icon-color-hover)}.bcm-menu__item-link{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;flex-wrap:nowrap;gap:8px;padding:4px 8px;border-radius:4px;transition:background-color 0.1s ease-in-out, padding 0.3s ease-in-out;color:var(--bcm-menu-color-default);background-color:var(--bcm-menu-background-color-default)}.bcm-menu__item-link-icon{display:flex;flex-direction:row;align-items:center;justify-content:center;flex-wrap:nowrap;min-width:24px;max-width:24px}.bcm-menu__item-link-text{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;flex:1}.bcm-menu__item-link-text--collapse{opacity:0}.bcm-menu__item-link-toggle{display:flex;flex-direction:row;align-items:center;justify-content:center;flex-wrap:nowrap;font-size:10px;height:100%;order:0;width:24px;transform:rotate(0deg);transition:transform 0.2s ease-in-out;margin-right:-8px}.bcm-menu__item-link-toggle--collapse{transform:rotate(-180deg)}.bcm-menu__item-link .bcm-menu__item-link-icon,.bcm-menu__item-link .bcm-menu__item-link-toggle{color:var(--bcm-menu-icon-color-default)}.bcm-menu__item-link:hover:not(.bcm-menu__item-link--disabled):not(.bcm-menu__item-link--active){color:var(--bcm-menu-color-hover);background-color:var(--bcm-menu-background-color-hover)}.bcm-menu__item-link:hover:not(.bcm-menu__item-link--disabled):not(.bcm-menu__item-link--active) .bcm-menu__item-link-icon,.bcm-menu__item-link:hover:not(.bcm-menu__item-link--disabled):not(.bcm-menu__item-link--active) .bcm-menu__item-link-toggle{color:var(--bcm-menu-icon-color-hover)}.bcm-menu__item-link:active:not(.bcm-menu__item-link--disabled):not(.bcm-menu__item-link--active){color:var(--bcm-menu-color-active);background-color:var(--bcm-menu-background-color-active)}.bcm-menu__item-link:active:not(.bcm-menu__item-link--disabled):not(.bcm-menu__item-link--active) .bcm-menu__item-link-icon,.bcm-menu__item-link:active:not(.bcm-menu__item-link--disabled):not(.bcm-menu__item-link--active) .bcm-menu__item-link-toggle{color:var(--bcm-menu-icon-color-active)}.bcm-menu__item-link:focus-visible:not(.bcm-menu__item-link--disabled):not(.bcm-menu__item-link--active){color:var(--bcm-menu-color-focus-visible);background-color:var(--bcm-menu-background-color-focus-visible)}.bcm-menu__item-link:focus-visible:not(.bcm-menu__item-link--disabled):not(.bcm-menu__item-link--active) .bcm-menu__item-link-icon,.bcm-menu__item-link:focus-visible:not(.bcm-menu__item-link--disabled):not(.bcm-menu__item-link--active) .bcm-menu__item-link-toggle{color:var(--bcm-menu-icon-color-focus-visible)}.bcm-menu__item-link:disabled:not(.bcm-menu__item-link--disabled):not(.bcm-menu__item-link--active){color:var(--bcm-menu-color-disabled);background-color:var(--bcm-menu-background-color-disabled)}.bcm-menu__item-link:disabled:not(.bcm-menu__item-link--disabled):not(.bcm-menu__item-link--active) .bcm-menu__item-link-icon,.bcm-menu__item-link:disabled:not(.bcm-menu__item-link--disabled):not(.bcm-menu__item-link--active) .bcm-menu__item-link-toggle{color:var(--bcm-menu-icon-color-disabled)}.bcm-menu__item-link:dropdownDisabled:not(.bcm-menu__item-link--disabled):not(.bcm-menu__item-link--active){color:var(--bcm-menu-color-dropdownDisabled);background-color:var(--bcm-menu-background-color-dropdownDisabled)}.bcm-menu__item-link:dropdownDisabled:not(.bcm-menu__item-link--disabled):not(.bcm-menu__item-link--active) .bcm-menu__item-link-icon,.bcm-menu__item-link:dropdownDisabled:not(.bcm-menu__item-link--disabled):not(.bcm-menu__item-link--active) .bcm-menu__item-link-toggle{color:var(--bcm-menu-icon-color-dropdownDisabled)}.bcm-menu__item-link--active:not(.bcm-menu__item-link--disabled){color:var(--bcm-menu-color-active);background-color:var(--bcm-menu-background-color-active)}.bcm-menu__item-link--active:not(.bcm-menu__item-link--disabled) .bcm-menu__item-link-icon,.bcm-menu__item-link--active:not(.bcm-menu__item-link--disabled) .bcm-menu__item-link-toggle{color:var(--bcm-menu-icon-color-active)}.bcm-menu__item-link--active:not(.bcm-menu__item-link--disabled):hover{color:var(--bcm-menu-color-active-hover);background-color:var(--bcm-menu-background-color-active-hover)}.bcm-menu__item-link--active:not(.bcm-menu__item-link--disabled):hover .bcm-menu__item-link-icon,.bcm-menu__item-link--active:not(.bcm-menu__item-link--disabled):hover .bcm-menu__item-link-toggle{color:var(--bcm-menu-icon-color-active-hover)}.bcm-menu__item-link--active:not(.bcm-menu__item-link--disabled):focus-visible{color:var(--bcm-menu-color-active-focus-visible);background-color:var(--bcm-menu-background-color-active-focus-visible)}.bcm-menu__item-link--active:not(.bcm-menu__item-link--disabled):focus-visible .bcm-menu__item-link-icon,.bcm-menu__item-link--active:not(.bcm-menu__item-link--disabled):focus-visible .bcm-menu__item-link-toggle{color:var(--bcm-menu-icon-color-active-focus-visible)}.bcm-menu__item-link--active:not(.bcm-menu__item-link--disabled):active{color:var(--bcm-menu-color-active-active);background-color:var(--bcm-menu-background-color-active-active)}.bcm-menu__item-link--active:not(.bcm-menu__item-link--disabled):active .bcm-menu__item-link-icon,.bcm-menu__item-link--active:not(.bcm-menu__item-link--disabled):active .bcm-menu__item-link-toggle{color:var(--bcm-menu-icon-color-active-active)}.bcm-menu__item-link--disabled{cursor:not-allowed;color:var(--bcm-menu-color-disabled);background-color:var(--bcm-menu-background-color-disabled)}.bcm-menu__item-link--disabled .bcm-menu__item-link-icon,.bcm-menu__item-link--disabled .bcm-menu__item-link-toggle{color:var(--bcm-menu-icon-color-disabled)}.bcm-menu__item-submenu{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;flex-wrap:nowrap;gap:4px;padding:12px;display:none}.bcm-menu__item-submenu .bcm-menu__item-link{--bcm-menu-background-color-default:var(--bcm-new-ds-color-white);--bcm-menu-background-color-hover:var(--bcm-new-ds-color-slate-100)}.bcm-menu__item-submenu--open{display:flex}.bcm-menu__size-small{padding:8px;font-size:12px;line-height:calc(14px + 8px)}.bcm-menu__size-medium{padding:16px;font-size:14px;line-height:calc(16px + 8px)}.bcm-menu__size-large{padding:16px;font-size:16px;line-height:calc(18px + 8px)}.bcm-menu__collapse-button{color:var(--bcm-menu-color-active);background-color:var(--bcm-menu-background-color-active);display:flex;flex-direction:row;align-items:center;justify-content:center;flex-wrap:nowrap;font-size:14px;border-radius:100px;position:absolute;top:23px;right:-8px;width:18px;height:18px;cursor:pointer;transition:background-color 0.1s ease-in-out, transform 0.3s ease}.bcm-menu__collapse-button:hover{color:var(--bcm-menu-color-active-hover);background-color:var(--bcm-menu-background-color-active-hover)}.bcm-menu__collapse-button:focus-visible{color:var(--bcm-menu-color-active-focus-visible);background-color:var(--bcm-menu-background-color-active-focus-visible)}.bcm-menu__collapse-button:active{color:var(--bcm-menu-color-active-active);background-color:var(--bcm-menu-background-color-active-active)}.bcm-menu__collapse-button--collapsed{transform:rotate(-180deg)}.bcm-menu__collapse{width:64px}.bcm-menu__collapse .bcm-menu__item-link{padding:4px}.bcm-menu--linked{position:absolute;z-index:10800;top:0;left:0;opacity:0;visibility:hidden;width:fit-content;min-height:50px;max-height:500px;height:auto;overflow-y:auto;padding:12px}.bcm-menu--linked.bcm-menu__open{opacity:1;visibility:visible}.bcm-menu--linked .bcm-menu__container{gap:4px}.bcm-menu--linked .bcm-menu__item-link{--bcm-menu-background-color-default:var(--bcm-new-ds-color-slate-50);--bcm-menu-background-color-hover:var(--bcm-new-ds-color-slate-100)}.bcm-menu--linked .bcm-menu__item .bcm-menu__item-submenu .bcm-menu__item-link{--bcm-menu-background-color-default:var(--bcm-new-ds-color-white);--bcm-menu-background-color-hover:var(--bcm-new-ds-color-slate-100)}.bcm-menu--linked .bcm-menu__item-submenu-link:not(:disabled) .bcm-menu--linked .bcm-menu__item-submenu-link:not(.bcm-menu--linked .bcm-menu__item-submenu-link--active){background-color:var(--bcm-menu-background-color-default)}.bcm-menu--linked .bcm-menu__item-submenu-link:not(:disabled) .bcm-menu--linked .bcm-menu__item-submenu-link:not(.bcm-menu--linked .bcm-menu__item-submenu-link--active):hover{color:var(--bcm-menu-color-hover);background-color:var(--bcm-menu-background-color-hover)}.bcm-menu--linked .bcm-menu__item-submenu-link:not(:disabled) .bcm-menu--linked .bcm-menu__item-submenu-link:not(.bcm-menu--linked .bcm-menu__item-submenu-link--active):focus-visible{color:var(--bcm-menu-color-focus-visible);background-color:var(--bcm-menu-background-color-focus-visible)}.bcm-menu--linked .bcm-menu__item-submenu-link:not(:disabled) .bcm-menu--linked .bcm-menu__item-submenu-link:not(.bcm-menu--linked .bcm-menu__item-submenu-link--active):active{color:var(--bcm-menu-color-active);background-color:var(--bcm-menu-background-color-active)}.bcm-menu--linked .bcm-menu__item-submenu-link:not(:disabled) .bcm-menu--linked .bcm-menu__item-submenu-link:not(.bcm-menu--linked .bcm-menu__item-submenu-link--active) .bcm-menu__item-link--disabled{cursor:not-allowed;color:var(--bcm-menu-color-disabled);background-color:var(--bcm-menu-background-color-disabled)}.bcm-menu--linked .bcm-menu__item-submenu-link:not(:disabled) .bcm-menu--linked .bcm-menu__item-submenu-link:not(.bcm-menu--linked .bcm-menu__item-submenu-link--active) .bcm-menu__item-link--disabled .bcm-menu__item-link-icon,.bcm-menu--linked .bcm-menu__item-submenu-link:not(:disabled) .bcm-menu--linked .bcm-menu__item-submenu-link:not(.bcm-menu--linked .bcm-menu__item-submenu-link--active) .bcm-menu__item-link--disabled .bcm-menu__item-link-toggle{color:var(--bcm-menu-icon-color-disabled)}.bcm-menu--linked .bcm-menu__item-link:not(:disabled) .bcm-menu--linked .bcm-menu__item-link:not(.bcm-menu--linked .bcm-menu__item-link--active){background-color:var(--bcm-menu-background-color-default)}.bcm-menu--linked .bcm-menu__item-link:not(:disabled) .bcm-menu--linked .bcm-menu__item-link:not(.bcm-menu--linked .bcm-menu__item-link--active):hover{color:var(--bcm-menu-color-hover);background-color:var(--bcm-menu-background-color-hover)}.bcm-menu--linked .bcm-menu__item-link:not(:disabled) .bcm-menu--linked .bcm-menu__item-link:not(.bcm-menu--linked .bcm-menu__item-link--active):focus-visible{color:var(--bcm-menu-color-focus-visible);background-color:var(--bcm-menu-background-color-focus-visible)}.bcm-menu--linked .bcm-menu__item-link:not(:disabled) .bcm-menu--linked .bcm-menu__item-link:not(.bcm-menu--linked .bcm-menu__item-link--active):active{color:var(--bcm-menu-color-active);background-color:var(--bcm-menu-background-color-active)}.bcm-menu__dropdown{width:auto;max-width:210px}.bcm-menu__dropdown .bcm-menu__item-link--disabled{color:var(--bcm-menu-color-dropdownDisabled);background-color:var(--bcm-menu-background-color-dropdownDisabled)}.bcm-menu__dropdown .bcm-menu__item-link--disabled .bcm-menu__item-link-icon,.bcm-menu__dropdown .bcm-menu__item-link--disabled .bcm-menu__item-link-toggle{color:var(--bcm-menu-icon-color-dropdownDisabled)}";
|
|
28350
28982
|
|
|
28983
|
+
var __decorate$3 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
28984
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
28985
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
28986
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
28987
|
+
else
|
|
28988
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
28989
|
+
if (d = decorators[i])
|
|
28990
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
28991
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
28992
|
+
};
|
|
28351
28993
|
const BcmMenu = class {
|
|
28352
28994
|
constructor(hostRef) {
|
|
28353
28995
|
registerInstance(this, hostRef);
|
|
@@ -28454,9 +29096,119 @@ const BcmMenu = class {
|
|
|
28454
29096
|
}
|
|
28455
29097
|
get el() { return getElement(this); }
|
|
28456
29098
|
};
|
|
29099
|
+
__decorate$3([
|
|
29100
|
+
IsLoad()
|
|
29101
|
+
], BcmMenu.prototype, "el", void 0);
|
|
28457
29102
|
BcmMenu.style = menuCss;
|
|
28458
29103
|
|
|
28459
|
-
const
|
|
29104
|
+
const modalStyle = ce({
|
|
29105
|
+
slots: {
|
|
29106
|
+
host: [
|
|
29107
|
+
"bcm-modal bcm-ui-element bcm-ui-content-display",
|
|
29108
|
+
"tw-flex tw-flex-col tw-items-center tw-justify-start",
|
|
29109
|
+
"tw-w-full tw-h-full",
|
|
29110
|
+
"tw-fixed tw-top-0 tw-left-0",
|
|
29111
|
+
"tw-z-modal",
|
|
29112
|
+
"tw-overflow-auto tw-p-6"
|
|
29113
|
+
],
|
|
29114
|
+
overlay: "overlay tw-fixed tw-top-0 tw-left-0 tw-w-full tw-h-full tw-bg-color-transparent-background",
|
|
29115
|
+
container: [
|
|
29116
|
+
"bcm-modal__container",
|
|
29117
|
+
"tw-flex tw-flex-col tw-w-full",
|
|
29118
|
+
"tw-shadow-2",
|
|
29119
|
+
"tw-rounded-modals",
|
|
29120
|
+
"tw-bg-color-surface-modal",
|
|
29121
|
+
],
|
|
29122
|
+
main: ["bcm-modal__container-main tw-text-color tw-p-0"],
|
|
29123
|
+
headerHost: [
|
|
29124
|
+
"bcm-modal__container-header",
|
|
29125
|
+
"tw-flex tw-items-center tw-justify-between",
|
|
29126
|
+
"tw-py-3 tw-px-4",
|
|
29127
|
+
"tw-text-size-6 tw-font-semibold",
|
|
29128
|
+
"tw-text-color tw-bg-color-default",
|
|
29129
|
+
"tw-relative",
|
|
29130
|
+
"after:tw-rounded-t-lg after:tw-block after:tw-w-full after:tw-w-full after:tw-h-1 after:tw-bg-[--bcm-color-primary-500] after:tw-absolute after:-tw-top-1 after:tw-left-0"
|
|
29131
|
+
],
|
|
29132
|
+
headerClose: [
|
|
29133
|
+
"bcm-modal__container-header-close",
|
|
29134
|
+
"tw-flex tw-items-center tw-justify-center",
|
|
29135
|
+
"tw-p-2 tw-text-color tw-text-size-5",
|
|
29136
|
+
"tw-cursor-pointer",
|
|
29137
|
+
"tw-transition tw-duration-100 tw-ease-in-out",
|
|
29138
|
+
"hover:tw-text-gray-800 focus-visible:tw-text-gray-900"
|
|
29139
|
+
],
|
|
29140
|
+
footerHost: [
|
|
29141
|
+
"bcm-modal__container-footer"
|
|
29142
|
+
],
|
|
29143
|
+
footerContent: [
|
|
29144
|
+
"bcm-modal__container-footer-content",
|
|
29145
|
+
"tw-flex tw-flex-row tw-items-start tw-justify-end",
|
|
29146
|
+
"tw-p-4 tw-gap-2"
|
|
29147
|
+
],
|
|
29148
|
+
},
|
|
29149
|
+
variants: {
|
|
29150
|
+
size: {
|
|
29151
|
+
portrait: {
|
|
29152
|
+
container: "portrait tw-max-w-[312px]"
|
|
29153
|
+
},
|
|
29154
|
+
landscape: {
|
|
29155
|
+
container: "landscape tw-max-w-[475px]"
|
|
29156
|
+
},
|
|
29157
|
+
small: {
|
|
29158
|
+
container: "small tw-max-w-xl",
|
|
29159
|
+
},
|
|
29160
|
+
medium: {
|
|
29161
|
+
container: "medium tw-max-w-3xl",
|
|
29162
|
+
},
|
|
29163
|
+
large: {
|
|
29164
|
+
container: "large tw-max-w-[992px]",
|
|
29165
|
+
},
|
|
29166
|
+
xlarge: {
|
|
29167
|
+
container: "xlarge tw-max-w-5xl",
|
|
29168
|
+
},
|
|
29169
|
+
xxlarge: {
|
|
29170
|
+
container: "xxlarge tw-max-w-[1200px]",
|
|
29171
|
+
},
|
|
29172
|
+
xxxlarge: {
|
|
29173
|
+
container: "xxxlarge tw-max-w-[1700px]",
|
|
29174
|
+
},
|
|
29175
|
+
customSize: {
|
|
29176
|
+
container: "custom-size",
|
|
29177
|
+
main: "tw-overflow-auto tw-w-full tw-h-full",
|
|
29178
|
+
},
|
|
29179
|
+
},
|
|
29180
|
+
isShow: {
|
|
29181
|
+
true: {
|
|
29182
|
+
host: [
|
|
29183
|
+
"bcm-modal__show",
|
|
29184
|
+
"tw-opacity-100 tw-visible",
|
|
29185
|
+
],
|
|
29186
|
+
container: [
|
|
29187
|
+
"bcm-modal__show",
|
|
29188
|
+
"tw-transform tw-translate-y-0",
|
|
29189
|
+
],
|
|
29190
|
+
},
|
|
29191
|
+
false: {
|
|
29192
|
+
host: ["tw-opacity-0 tw-invisible tw-user-select-none"],
|
|
29193
|
+
},
|
|
29194
|
+
},
|
|
29195
|
+
fullWidth: {
|
|
29196
|
+
true: {
|
|
29197
|
+
container: "full-width !tw-max-w-full !tw-w-full",
|
|
29198
|
+
},
|
|
29199
|
+
false: {
|
|
29200
|
+
container: "",
|
|
29201
|
+
},
|
|
29202
|
+
},
|
|
29203
|
+
},
|
|
29204
|
+
defaultVariants: {
|
|
29205
|
+
size: "medium",
|
|
29206
|
+
isShow: false,
|
|
29207
|
+
fullWidth: false,
|
|
29208
|
+
},
|
|
29209
|
+
});
|
|
29210
|
+
|
|
29211
|
+
const modalCss = "@import url(\"https://fonts.googleapis.com/css?family=Roboto:400,500\");.size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}.bcm-modal{transition:opacity 0.5s ease, visibility 0.4s ease-in-out, 0.3s z-index}.bcm-modal__show{transition:opacity 0.2s ease, visibility 0.4s ease-in-out, 0.3s z-index}.bcm-modal__show .bcm-modal__container{transition:opacity 0.2s ease-in-out, transform 0.2s ease-in-out;transform:translateY(0)}.bcm-modal__container{transform:translateY(-100px);transition:opacity 0.2s ease-in-out, transform 0.2s ease-in-out}";
|
|
28460
29212
|
|
|
28461
29213
|
const BcmModal = class {
|
|
28462
29214
|
constructor(hostRef) {
|
|
@@ -28480,8 +29232,6 @@ const BcmModal = class {
|
|
|
28480
29232
|
if (bcmSlots) {
|
|
28481
29233
|
bcmSlots.forEach(el => {
|
|
28482
29234
|
let slotName = StringHelper.lowercase(StringHelper.split(el.nodeName, '-').pop());
|
|
28483
|
-
el.slot = slotName;
|
|
28484
|
-
el.classList.add(`bcm-modal__container-${slotName}-content`);
|
|
28485
29235
|
this.modalSlots[slotName] = el;
|
|
28486
29236
|
});
|
|
28487
29237
|
}
|
|
@@ -28567,25 +29317,20 @@ const BcmModal = class {
|
|
|
28567
29317
|
document.body.classList.remove(disableScrollClass);
|
|
28568
29318
|
}
|
|
28569
29319
|
render() {
|
|
28570
|
-
const { isShow, size, fullWidth,
|
|
28571
|
-
const
|
|
28572
|
-
|
|
28573
|
-
|
|
28574
|
-
|
|
28575
|
-
});
|
|
28576
|
-
const bcmModalHostClasses = classnames('bcm-modal', {
|
|
28577
|
-
hidden,
|
|
28578
|
-
'bcm-modal__show': isShow,
|
|
29320
|
+
const { isShow, size, fullWidth, width, height } = this;
|
|
29321
|
+
const { host, container, main, headerHost, headerClose, footerHost, overlay, } = modalStyle({
|
|
29322
|
+
size,
|
|
29323
|
+
isShow,
|
|
29324
|
+
fullWidth,
|
|
28579
29325
|
});
|
|
28580
|
-
const mainClasses = classnames('bcm-modal__container-main', 'size-2');
|
|
28581
29326
|
const FooterTemplate = () => {
|
|
28582
|
-
return (this.modalSlots['footer'] && (h$2("footer", { class:
|
|
29327
|
+
return (this.modalSlots['footer'] && (h$2("footer", { class: footerHost() }, h$2("slot", { name: "footer" }))));
|
|
28583
29328
|
};
|
|
28584
29329
|
const HeaderTemplate = () => {
|
|
28585
|
-
return (this.modalSlots['header'] && (h$2("header", { class:
|
|
29330
|
+
return (this.modalSlots['header'] && (h$2("header", { class: headerHost() }, h$2("slot", { name: "header" }), h$2("div", { class: headerClose(), onClick: () => this.hide() }, h$2("i", { class: "fa-solid fa-xmark" })))));
|
|
28586
29331
|
};
|
|
28587
29332
|
const customStyle = Object.assign(Object.assign({}, (width && { width: width })), (height && { height: height }));
|
|
28588
|
-
return (h$2(Host, { class:
|
|
29333
|
+
return (h$2(Host, { class: host() }, h$2("div", { class: overlay(), onClick: () => this.handleBackdrop() }), h$2("div", { class: container(), style: customStyle }, h$2(HeaderTemplate, null), h$2("main", { class: main() }, h$2("article", null, h$2(SlotTemplate, null))), h$2(FooterTemplate, null))));
|
|
28589
29334
|
}
|
|
28590
29335
|
get el() { return getElement(this); }
|
|
28591
29336
|
static get watchers() { return {
|
|
@@ -28594,7 +29339,32 @@ const BcmModal = class {
|
|
|
28594
29339
|
};
|
|
28595
29340
|
BcmModal.style = modalCss;
|
|
28596
29341
|
|
|
28597
|
-
const
|
|
29342
|
+
const BcmModalFooter = class {
|
|
29343
|
+
constructor(hostRef) {
|
|
29344
|
+
registerInstance(this, hostRef);
|
|
29345
|
+
this._id = Generate.UID();
|
|
29346
|
+
this.el.slot = "footer";
|
|
29347
|
+
}
|
|
29348
|
+
render() {
|
|
29349
|
+
const { footerContent } = modalStyle();
|
|
29350
|
+
return (h$2(Host, { class: footerContent() }, h$2("slot", null)));
|
|
29351
|
+
}
|
|
29352
|
+
get el() { return getElement(this); }
|
|
29353
|
+
};
|
|
29354
|
+
|
|
29355
|
+
const BcmModalHeader = class {
|
|
29356
|
+
constructor(hostRef) {
|
|
29357
|
+
registerInstance(this, hostRef);
|
|
29358
|
+
this._id = Generate.UID();
|
|
29359
|
+
this.el.slot = "header";
|
|
29360
|
+
}
|
|
29361
|
+
render() {
|
|
29362
|
+
return (h$2(Host, { class: "tw-inline" }, h$2("slot", null)));
|
|
29363
|
+
}
|
|
29364
|
+
get el() { return getElement(this); }
|
|
29365
|
+
};
|
|
29366
|
+
|
|
29367
|
+
const oldInputCss = "@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}.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}:host{display:inline-block;width:100%;margin:0 0 8px 0}:host(.hidden){display:none}:host(.no-margin){margin:0}.input-container{display:flex;flex-direction:column;width:100%;max-width:256px}.input-container.full-width{max-width:100%}.input-base{font-family:\"Inter\", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;flex:1 1 auto;display:inline-flex;align-items:stretch;justify-content:start;position:relative;background-color:var(--bcm-ui-color-background-base-default);border:1px solid var(--bcm-ui-color-border-default);border-radius:var(--bcm-ui-radius);vertical-align:middle;overflow:hidden;padding:0 var(--bcm-ui-spacing-2);cursor:text}.input-base.disabled{background-color:var(--bcm-ui-color-background-disabled-disable);cursor:not-allowed}.input-base.disabled .bcm-input-element{color:var(--bcm-ui-color-text-disabled)}.input-base.readonly{background-color:var(--bcm-new-ds-color-slate-50);cursor:default}.input-base.readonly .bcm-input-element{color:var(--bcm-new-ds-color-slate-600)}.input-base:not(.disabled):hover .caret-container,.input-base:not(.disabled).focused .caret-container{opacity:1}.input-base:not(.disabled):hover .input-clear-button,.input-base:not(.disabled).focused .input-clear-button{opacity:1}.input-base:not(.disabled).focused{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)}.input-base:not(.disabled):hover{border-color:var(--bcm-ui-color-border-primary-info)}.input-base.focused:not(.disabled) .caret-container{opacity:1}.input-base.focused:not(.disabled) .input-clear-button{opacity:1}.input-base:hover:not(.disabled) .caret-container{opacity:1}.input-base:hover:not(.disabled) .input-clear-button{opacity:1}.input-base.disabled{cursor:not-allowed}.input-base.readonly{cursor:default}.input-base.empty .input-clear-button{display:none}.input-base.invalid,.input-base.error{border-color:var(--bcm-ui-color-border-error)}.input-base.input-size-small{font-size:var(--bcm-ui-font-size-4)}.input-base.input-size-medium{font-size:var(--bcm-ui-font-size-5)}.input-base.input-size-large{font-size:var(--bcm-ui-font-size-6)}.error .input-base{border-color:var(--bcm-ui-color-border-error)}.input-base input{color:var(--bcm-ui-color-text-default);flex:1 1 auto;width:0%;border:none;border-radius:2px;background:none;box-shadow:none;padding:0;margin:0 4px;font-family:\"Inter\", sans-serif;font-weight:500;cursor:inherit;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;font-size:inherit;line-height:inherit}.input-base input::-webkit-search-decoration,.input-base input::-webkit-search-cancel-button,.input-base input::-webkit-search-results-button,.input-base input::-webkit-search-results-decoration{-webkit-appearance:none}.input-base input::placeholder{font-family:\"Inter\", sans-serif;font-weight:400;color:var(--bcm-ui-color-text-placeholder);user-select:none}.input-base input:focus{outline:none}input::-webkit-calendar-picker-indicator{-webkit-appearance:none;display:none}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none}input[type=number]{-moz-appearance:textfield}.input-prefix,.input-suffix{display:inline-flex;align-items:center;justify-content:center;cursor:default;color:var(--bcm-ui-color-text-placeholder)}.input-prefix ::slotted(*),.input-prefix>span{line-height:1;margin-left:4px}.input-suffix ::slotted(*),.input-suffix>span{line-height:1;margin-right:4px}.input-clear-button,.input-password-toggle{display:inline-flex;align-items:center;border:none;background:none;padding:0;cursor:pointer;margin-right:4px;transition:0.2s opacity}.input-clear-button:last-child,.input-clear-button:last-of-type,.input-password-toggle:last-child,.input-password-toggle:last-of-type{margin-right:8px}.input-clear-button:focus,.input-password-toggle:focus{outline:none}.input-clear-button{opacity:0}.label{display:flex;flex-direction:column;font-family:\"Inter\", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;color:var(--bcm-new-ds-color-slate-600);margin-bottom:4px}.caption-area{min-height:20px}.input-caption{display:block}.unit.input-suffix{width:24px}.unit-prefix{display:inline-flex;flex:0 0 auto;align-items:center;cursor:default;color:var(--bcm-ui-color-text-placeholder)}.caret-container{opacity:0;width:30px;display:flex;flex-direction:column;justify-content:center;align-items:center;border-left:1px solid #D9D9D9;border-right:1px solid #D9D9D9;transition:0.2s opacity;user-select:none;box-sizing:border-box;margin-right:4px}.caret-container:last-of-type{margin-right:-space(\"xxxs\");border-right:none}.caret-container .caret{display:inline-flex;height:50%;width:100%;align-items:center;justify-content:center;color:var(--bcm-color-grey-7);cursor:pointer}.caret-container .caret:hover{color:var(--bcm-color-prime-blue-6)}.caret-container .caret:active{background-color:var(--bcm-color-grey-3)}.caret-container .caret:last-child{border-top:1px solid #D9D9D9}.caret-container.disabled{background-color:var(--bcm-color-grey-3)}.caret-container.disabled .caret{cursor:not-allowed}.default-icon{margin-right:8px}.input-large{height:40px}.input-medium{height:32px}.input-small{height:24px}.bcm-label{font-family:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin-bottom:4px;font-weight:500;color:var(--bcm-ui-color-text-label)}.bcm-label.tw-text-1{font-size:var(--bcm-ui-font-size-3);line-height:var(--bcm-ui-line-height-3)}.bcm-label.tw-text-2{font-size:var(--bcm-ui-font-size-4);line-height:var(--bcm-ui-line-height-4)}.bcm-label.tw-text-3{font-size:var(--bcm-ui-font-size-5);line-height:var(--bcm-ui-line-height-5)}.bcm-caption-area{color:#dc2626;font-weight:400;justify-content:space-between;align-items:flex-start;flex-direction:row;min-height:20px;display:flex;margin-top:4px;font-family:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.bcm-caption-area.tw-text-1{font-size:10px;line-height:18px}.bcm-caption-area.tw-text-2{font-size:12px;line-height:20px}.bcm-caption-area.tw-text-3{font-size:14px;line-height:22px}";
|
|
28598
29368
|
|
|
28599
29369
|
let id = 0;
|
|
28600
29370
|
const defaultIcons = {
|
|
@@ -28953,7 +29723,7 @@ const BcmOldInput = class {
|
|
|
28953
29723
|
'full-width': fullWidth,
|
|
28954
29724
|
'error': captionType == 'error' ? true : false
|
|
28955
29725
|
});
|
|
28956
|
-
const baseClasses = classnames('input-base', 'input-' + size, {
|
|
29726
|
+
const baseClasses = classnames('input-base', 'input-size-' + size, {
|
|
28957
29727
|
'invalid': inValid,
|
|
28958
29728
|
'unit': (unit === null || unit === void 0 ? void 0 : unit.length) > 0,
|
|
28959
29729
|
'focused': hasFocus,
|
|
@@ -28963,7 +29733,9 @@ const BcmOldInput = class {
|
|
|
28963
29733
|
});
|
|
28964
29734
|
const inputClass = size === 'large' ? 'size-3' : 'size-2';
|
|
28965
29735
|
const hostClasses = classnames(this.hidden ? 'hidden' : null, this.noMargin ? 'no-margin' : null);
|
|
28966
|
-
return (h$2(Host, { class: hostClasses }, h$2("div", { class: containerClasses }, label && h$2("div", null, h$2("bcm-label", { tooltip: this.tooltip, type: captionType, value: label, required: required, htmlFor: this.inputId })), h$2("div", { class: baseClasses }, h$2("span", { class: "input-prefix" }, h$2("slot", { name: "prefix" }), unitPrefix && h$2("span", { class: classnames(inputClass, 'unit-prefix') }, unitPrefix)), h$2("input", { "bcm-internal-id": this._id, id: this.inputId,
|
|
29736
|
+
return (h$2(Host, { class: hostClasses }, h$2("div", { class: containerClasses }, label && h$2("div", null, h$2("bcm-label", { tooltip: this.tooltip, type: captionType, value: label, required: required, htmlFor: this.inputId })), h$2("div", { class: baseClasses }, h$2("span", { class: "input-prefix" }, h$2("slot", { name: "prefix" }), unitPrefix && h$2("span", { class: classnames(inputClass, 'unit-prefix') }, unitPrefix)), h$2("input", { "bcm-internal-id": this._id, id: this.inputId,
|
|
29737
|
+
// class={inputClass}
|
|
29738
|
+
ref: el => (this.inputElement = el), onFocus: this.handleFocus, onBlur: this.handleBlur, onChange: this.handleChange, onInput: this.handleInput, maxLength: this.maxLength, type: type === 'password' && isPasswordVisible ? 'text' :
|
|
28967
29739
|
type === 'number' ? 'text' : type, placeholder: placeholder, value: type === 'number' && !this.hasFocus
|
|
28968
29740
|
? value + (value && (unit === null || unit === void 0 ? void 0 : unit.length) > 0 ? ' ' + unit : '')
|
|
28969
29741
|
: value, disabled: this.disabled, readonly: this.readonly }), clearable && !this.disabled && (h$2("button", { class: "input-clear-button", onClick: this.handleClear }, h$2("svg", { style: { "fill": "#595959", "width": "14px", "height": "14px" }, xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 320 512" }, h$2("path", { d: "M207.6 256l107.72-107.72c6.23-6.23 6.23-16.34 0-22.58l-25.03-25.03c-6.23-6.23-16.34-6.23-22.58 0L160 208.4 52.28 100.68c-6.23-6.23-16.34-6.23-22.58 0L4.68 125.7c-6.23 6.23-6.23 16.34 0 22.58L112.4 256 4.68 363.72c-6.23 6.23-6.23 16.34 0 22.58l25.03 25.03c6.23 6.23 16.34 6.23 22.58 0L160 303.6l107.72 107.72c6.23 6.23 16.34 6.23 22.58 0l25.03-25.03c6.23-6.23 6.23-16.34 0-22.58L207.6 256z" })))), type === 'password' && passwordToggle && (h$2("button", { class: "input-password-toggle", onClick: this.changePasswordVisibility }, h$2("bcm-icon", { icon: isPasswordVisible ? "far fa-eye-invisible" : "far fa-eye" }))), Object.keys(defaultIcons).includes(type) && !noDefaultIcon && (h$2("span", { class: "input-suffix default-icon", innerHTML: defaultIcons[type] })), type === 'number' && (h$2("div", { class: classnames('caret-container', { 'unit': (unit === null || unit === void 0 ? void 0 : unit.length) > 0 }, { 'disabled': inValid }, { 'disabled': readonly }) }, h$2("span", { class: "caret", onClick: inValid == false && this.incrementNumber }, h$2("bcm-icon", { icon: "far fa-caret-up" })), h$2("span", { class: "caret", onClick: inValid == false && this.decrementNumber }, h$2("bcm-icon", { icon: "far fa-caret-down" })))), type !== 'number' && (h$2("span", { class: "input-suffix" }, h$2("slot", { name: "suffix" })))), h$2(CaptionTemplate, { noCaption: noCaption, captionType: captionType, captionError: captionError, caption: caption }))));
|
|
@@ -29316,12 +30088,8 @@ const BcmPopconfirm = class {
|
|
|
29316
30088
|
};
|
|
29317
30089
|
BcmPopconfirm.style = popconfirmCss;
|
|
29318
30090
|
|
|
29319
|
-
const popconfirmBoxCss = "@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}*{box-sizing:border-box}.bcm-popconfirm-box{position:absolute;transition:transform 0.2s ease-in-out;}.bcm-popconfirm-box .bcm-pop-box{font-family:\"Inter\", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;font-size:10px;line-height:calc(10px + 8px);box-shadow:
|
|
30091
|
+
const popconfirmBoxCss = "@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}*{box-sizing:border-box}.bcm-popconfirm-box{position:absolute;transition:transform 0.2s ease-in-out;}.bcm-popconfirm-box .bcm-pop-box{font-family:\"Inter\", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;font-size:10px;line-height:calc(10px + 8px);box-shadow:var(--bcm-ui-box-shadow-4);border-radius:var(--bcm-ui-radius);position:absolute;box-sizing:border-box;background-color:#FFFFFF;border:1px solid #FFFFFF;color:var(--bcm-ui-color-text-default);z-index:-99999;overflow:hidden;visibility:hidden;width:256px;filter:drop-shadow(0px 1px 6px rgba(0, 0, 0, 0.25));padding:var(--bcm-ui-spacing-4)}.bcm-popconfirm-box .bcm-pop-box .bcm-pop-content{display:flex;flex-direction:row;align-items:flex-start}.bcm-popconfirm-box .bcm-pop-box .bcm-pop-content-icon{margin-right:var(--bcm-ui-spacing-2-5);min-width:16px;color:var(--bcm-ui-color-text-default);font-size:var(--bcm-ui-font-size-5);line-height:var(--bcm-ui-line-height-5)}.bcm-popconfirm-box .bcm-pop-box .bcm-pop-content-icon.error{color:var(--bcm-ui-color-text-error)}.bcm-popconfirm-box .bcm-pop-box .bcm-pop-content-icon.warning{color:var(--bcm-ui-color-text-warning)}.bcm-popconfirm-box .bcm-pop-box .bcm-pop-content-icon.info{color:var(--bcm-ui-color-text-primary)}.bcm-popconfirm-box .bcm-pop-box .bcm-pop-content-text{display:flex;flex-direction:row;align-items:center;text-align:left;padding-top:1px;color:var(--bcm-ui-color-text-default);font-size:var(--bcm-ui-font-size-4);line-height:var(--bcm-ui-line-height-4)}.bcm-popconfirm-box .bcm-pop-box .bcm-pop-buttons{display:flex;justify-content:flex-end;margin-top:var(--bcm-ui-spacing-6)}.bcm-popconfirm-box .bcm-pop-box .bcm-pop-buttons bcm-button:first-child{margin-right:8px}.bcm-popconfirm-box::after{content:\"\";position:absolute;display:none;border:6px solid;z-index:10900;pointer-events:none}.bcm-popconfirm-box.bcm-pop-open{display:block;z-index:10900}.bcm-popconfirm-box.bcm-pop-open .bcm-pop-box{z-index:10900;overflow:unset;visibility:unset}.bcm-popconfirm-box.bcm-pop-open::after{display:block}.bcm-popconfirm-box.top .bcm-pop-box{bottom:100%;margin-bottom:16px}.bcm-popconfirm-box.top::after{bottom:100%;margin-bottom:4px;border-color:#FFFFFF transparent transparent transparent}.bcm-popconfirm-box.bottom .bcm-pop-box{top:100%;margin-top:16px}.bcm-popconfirm-box.bottom::after{top:100%;margin-top:4px;border-color:transparent transparent #FFFFFF transparent}.bcm-popconfirm-box.left .bcm-pop-box{right:100%;margin-right:16px}.bcm-popconfirm-box.left::after{right:100%;margin-right:4px;border-color:transparent transparent transparent #FFFFFF}.bcm-popconfirm-box.right .bcm-pop-box{left:100%;margin-left:16px}.bcm-popconfirm-box.right::after{left:100%;margin-left:4px;border-color:transparent #FFFFFF transparent transparent}.bcm-popconfirm-box.top.center .bcm-pop-box,.bcm-popconfirm-box.bottom.center .bcm-pop-box{left:50%;transform:translateX(-50%)}.bcm-popconfirm-box.top.center::after,.bcm-popconfirm-box.bottom.center::after{left:50%;transform:translateX(-50%)}.bcm-popconfirm-box.top.start .bcm-pop-box,.bcm-popconfirm-box.bottom.start .bcm-pop-box{left:0}.bcm-popconfirm-box.top.start::after,.bcm-popconfirm-box.bottom.start::after{left:16px}.bcm-popconfirm-box.top.end .bcm-pop-box,.bcm-popconfirm-box.bottom.end .bcm-pop-box{right:0}.bcm-popconfirm-box.top.end::after,.bcm-popconfirm-box.bottom.end::after{right:16px}.bcm-popconfirm-box.left.center .bcm-pop-box,.bcm-popconfirm-box.right.center .bcm-pop-box{top:50%;transform:translateY(-50%)}.bcm-popconfirm-box.left.center::after,.bcm-popconfirm-box.right.center::after{top:50%;transform:translateY(-50%)}.bcm-popconfirm-box.left.start .bcm-pop-box,.bcm-popconfirm-box.right.start .bcm-pop-box{top:0}.bcm-popconfirm-box.left.start::after,.bcm-popconfirm-box.right.start::after{top:12px}.bcm-popconfirm-box.left.end .bcm-pop-box,.bcm-popconfirm-box.right.end .bcm-pop-box{bottom:0}.bcm-popconfirm-box.left.end::after,.bcm-popconfirm-box.right.end::after{bottom:12px}.bcm-popconfirm-box.top{transform:translateY(1px)}.bcm-popconfirm-box.bottom{transform:translateY(-1px)}.bcm-popconfirm-box.left{transform:translateX(1px)}.bcm-popconfirm-box.right{transform:translateX(-1px)}.bcm-popconfirm-box.top.bcm-pop-open,.bcm-popconfirm-box.bottom.bcm-pop-open{transform:translateY(0)}.bcm-popconfirm-box.left.bcm-pop-open,.bcm-popconfirm-box.right.bcm-pop-open{transform:translateX(0)}";
|
|
29320
30092
|
|
|
29321
|
-
const statuses = {
|
|
29322
|
-
error: ['fal fa-times-circle', 'red-6'],
|
|
29323
|
-
warning: ['fal fa-exclamation-circle', 'warmyellow-6'],
|
|
29324
|
-
};
|
|
29325
30093
|
const BcmPopconfirmBox = class {
|
|
29326
30094
|
constructor(hostRef) {
|
|
29327
30095
|
registerInstance(this, hostRef);
|
|
@@ -29398,17 +30166,97 @@ const BcmPopconfirmBox = class {
|
|
|
29398
30166
|
}
|
|
29399
30167
|
render() {
|
|
29400
30168
|
const { message, cancelText, okeyText, open, placement_string, status } = this;
|
|
29401
|
-
const
|
|
30169
|
+
// const statuses = {
|
|
30170
|
+
// error: ['fa-solid fa-circle-xmark', 'red-6'],
|
|
30171
|
+
// warning: ['fa-solid fa-triangle-exclamation', 'warmyellow-6'],
|
|
30172
|
+
// }
|
|
29402
30173
|
const boxClasses = classnames('bcm-pop-box');
|
|
29403
30174
|
const hostClasses = classnames('bcm-popconfirm-box', placement_string, {
|
|
29404
30175
|
'bcm-pop-open': open,
|
|
29405
30176
|
});
|
|
29406
|
-
return (h$2(Host, { class: hostClasses }, h$2("div", { class: boxClasses }, h$2("div", { class: "bcm-pop-content" }, h$2("div", { class:
|
|
30177
|
+
return (h$2(Host, { class: hostClasses }, h$2("div", { class: boxClasses }, h$2("div", { class: "bcm-pop-content" }, h$2("div", { class: classnames('bcm-pop-content-icon', status) }, h$2("i", { class: classnames({
|
|
30178
|
+
'fa-solid fa-circle-xmark': status === 'error',
|
|
30179
|
+
'fa-solid fa-triangle-exclamation': status === 'warning',
|
|
30180
|
+
'fa-solid fa-info-circle': status === 'info',
|
|
30181
|
+
}) })), h$2("div", { class: "bcm-pop-content-text" }, message)), h$2("div", { class: "bcm-pop-buttons" }, h$2("bcm-button", { size: "small", onClick: () => this.handleCancel(), outline: true }, cancelText), h$2("bcm-button", { size: "small", onClick: () => this.handleConfirm() }, okeyText)))));
|
|
29407
30182
|
}
|
|
29408
30183
|
get el() { return getElement(this); }
|
|
29409
30184
|
};
|
|
29410
30185
|
BcmPopconfirmBox.style = popconfirmBoxCss;
|
|
29411
30186
|
|
|
30187
|
+
const BcmPopover = class {
|
|
30188
|
+
constructor(hostRef) {
|
|
30189
|
+
registerInstance(this, hostRef);
|
|
30190
|
+
this.bcmPopoverShow = createEvent(this, "bcmPopoverShow", 7);
|
|
30191
|
+
this.bcmPopoverHide = createEvent(this, "bcmPopoverHide", 7);
|
|
30192
|
+
this._id = Generate.UID();
|
|
30193
|
+
this.message = "";
|
|
30194
|
+
this.content = "";
|
|
30195
|
+
this.placement = Bcm.Placement.top;
|
|
30196
|
+
this.trigger = Bcm.TriggerType.click;
|
|
30197
|
+
this.open = false;
|
|
30198
|
+
this.color = "white";
|
|
30199
|
+
this.openDelay = 0;
|
|
30200
|
+
this.closeDelay = 0;
|
|
30201
|
+
this.autoHide = false;
|
|
30202
|
+
this.targetId = undefined;
|
|
30203
|
+
this.popover = undefined;
|
|
30204
|
+
}
|
|
30205
|
+
emitShow() {
|
|
30206
|
+
this.bcmPopoverShow.emit();
|
|
30207
|
+
}
|
|
30208
|
+
emitHide() {
|
|
30209
|
+
this.bcmPopoverHide.emit();
|
|
30210
|
+
}
|
|
30211
|
+
connectedCallback() {
|
|
30212
|
+
this.popover = new Popover({
|
|
30213
|
+
targetId: this.targetId || this._id,
|
|
30214
|
+
content: this.content,
|
|
30215
|
+
message: this.message,
|
|
30216
|
+
placement: this.placement,
|
|
30217
|
+
color: this.color,
|
|
30218
|
+
trigger: this.trigger,
|
|
30219
|
+
openDelay: this.openDelay,
|
|
30220
|
+
closeDelay: this.closeDelay,
|
|
30221
|
+
autoHide: this.autoHide,
|
|
30222
|
+
emitShow: () => this.emitShow(),
|
|
30223
|
+
emitHide: () => this.emitHide(),
|
|
30224
|
+
});
|
|
30225
|
+
}
|
|
30226
|
+
componentDidLoad() {
|
|
30227
|
+
this.popover.listener();
|
|
30228
|
+
}
|
|
30229
|
+
componentDidRender() {
|
|
30230
|
+
const { content, message, placement, color, trigger } = this;
|
|
30231
|
+
this.popover.content = content;
|
|
30232
|
+
this.popover.message = message;
|
|
30233
|
+
this.popover.placement = placement;
|
|
30234
|
+
this.popover.color = color;
|
|
30235
|
+
this.popover.trigger = trigger;
|
|
30236
|
+
this.popover.openDelay = this.openDelay;
|
|
30237
|
+
this.popover.closeDelay = this.closeDelay;
|
|
30238
|
+
this.popover.autoHide = this.autoHide;
|
|
30239
|
+
this.popover.update();
|
|
30240
|
+
}
|
|
30241
|
+
disconnectedCallback() {
|
|
30242
|
+
this.popover.destroy();
|
|
30243
|
+
}
|
|
30244
|
+
async show() {
|
|
30245
|
+
this.popover.show();
|
|
30246
|
+
}
|
|
30247
|
+
async hide() {
|
|
30248
|
+
this.popover.hide();
|
|
30249
|
+
}
|
|
30250
|
+
async toggle() {
|
|
30251
|
+
this.popover.toggle();
|
|
30252
|
+
}
|
|
30253
|
+
render() {
|
|
30254
|
+
const { popover } = popoverStyle();
|
|
30255
|
+
return (h$2(Host, { class: popover(), role: "tooltip", "aria-hidden": "true" }, h$2("slot", null)));
|
|
30256
|
+
}
|
|
30257
|
+
get el() { return getElement(this); }
|
|
30258
|
+
};
|
|
30259
|
+
|
|
29412
30260
|
// export const lineSizes = {
|
|
29413
30261
|
// small: {
|
|
29414
30262
|
// textSize: 'size-1',
|
|
@@ -29551,6 +30399,71 @@ const BcmProgress = class {
|
|
|
29551
30399
|
};
|
|
29552
30400
|
BcmProgress.style = progressCss;
|
|
29553
30401
|
|
|
30402
|
+
const radioStyle = ce({
|
|
30403
|
+
slots: {
|
|
30404
|
+
host: [
|
|
30405
|
+
"bcm-radio",
|
|
30406
|
+
"bcm-ui-element bcm-ui-inputs",
|
|
30407
|
+
"tw-cursor-pointer tw-font-sans tw-mb-1.5 tw-mt-1",
|
|
30408
|
+
],
|
|
30409
|
+
label: ["tw-inline-flex tw-flex-row tw-gap-2 tw-mr-2 tw-items-center"],
|
|
30410
|
+
input: [
|
|
30411
|
+
"tw-flex tw-items-center tw-justify-center",
|
|
30412
|
+
"tw-appearance-none tw-border tw-border-solid tw-rounded-full tw-cursor-pointer tw-transition tw-ease-in-out",
|
|
30413
|
+
"tw-m-0",
|
|
30414
|
+
"before:tw-content-[''] before:tw-absolute before:tw-rounded-full",
|
|
30415
|
+
"focus:tw-outline-none focus:tw-shadow-outline",
|
|
30416
|
+
// default
|
|
30417
|
+
"tw-border-[--bcm-radio-border] tw-bg-[--bcm-radio-bg]",
|
|
30418
|
+
"checked:tw-border-[--bcm-radio-checked-border]",
|
|
30419
|
+
"checked:before:tw-bg-[--bcm-radio-checked-dot]",
|
|
30420
|
+
],
|
|
30421
|
+
},
|
|
30422
|
+
variants: {
|
|
30423
|
+
size: {
|
|
30424
|
+
small: {
|
|
30425
|
+
host: "tw-text-size-4",
|
|
30426
|
+
input: "tw-w-3.5 tw-h-3.5 before:tw-w-2 before:tw-h-2"
|
|
30427
|
+
},
|
|
30428
|
+
medium: {
|
|
30429
|
+
host: "tw-text-size-5",
|
|
30430
|
+
input: "tw-w-4 tw-h-4 before:tw-w-2.5 before:tw-h-2.5"
|
|
30431
|
+
},
|
|
30432
|
+
large: {
|
|
30433
|
+
host: "tw-text-size-6",
|
|
30434
|
+
input: "tw-w-4.5 tw-h-4.5 before:tw-w-3 before:tw-h-3"
|
|
30435
|
+
},
|
|
30436
|
+
},
|
|
30437
|
+
disabled: {
|
|
30438
|
+
true: {
|
|
30439
|
+
host: "tw-cursor-not-allowed tw-text-color-disabled",
|
|
30440
|
+
label: "tw-cursor-not-allowed ",
|
|
30441
|
+
input: [
|
|
30442
|
+
"disabled:tw-border-slate-400 disabled:tw-bg-slate-200 disabled:tw-cursor-not-allowed",
|
|
30443
|
+
"disabled:checked:tw-border-slate-400",
|
|
30444
|
+
"disabled:checked:before:tw-bg-slate-400",
|
|
30445
|
+
]
|
|
30446
|
+
},
|
|
30447
|
+
false: {
|
|
30448
|
+
host: "tw-cursor-pointer tw-text-[--bcm-radio-text]",
|
|
30449
|
+
label: "tw-cursor-pointer",
|
|
30450
|
+
input: [
|
|
30451
|
+
// hover
|
|
30452
|
+
"hover:tw-border-[--bcm-radio-border-hover]",
|
|
30453
|
+
"hover:checked:tw-border-[--bcm-radio-checked-border-hover]",
|
|
30454
|
+
"hover:checked:before:tw-bg-[--bcm-radio-checked-dot-hover]",
|
|
30455
|
+
]
|
|
30456
|
+
},
|
|
30457
|
+
},
|
|
30458
|
+
},
|
|
30459
|
+
defaultVariants: {
|
|
30460
|
+
size: "medium",
|
|
30461
|
+
disabled: false,
|
|
30462
|
+
},
|
|
30463
|
+
});
|
|
30464
|
+
|
|
30465
|
+
const radioCss = "@import url(\"https://fonts.googleapis.com/css?family=Roboto:400,500\");.size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}:root{--bcm-radio-text:var(--bcm-ui-color-text-default);--bcm-radio-border:var(--bcm-ui-color-border-default);--bcm-radio-border-hover:var(--bcm-ui-color-border-primary-info);--bcm-radio-bg:var(--bcm-ui-color-background-default-default);--bcm-radio-checked-border:var(--bcm-ui-color-background-primary-info-default);--bcm-radio-checked-dot:var(--bcm-ui-color-background-primary-info-default);--bcm-radio-checked-border-hover:var(--bcm-ui-color-background-primary-info-hover);--bcm-radio-checked-dot-hover:var(--bcm-ui-color-background-primary-info-hover)}";
|
|
30466
|
+
|
|
29554
30467
|
const BcmRadio = class {
|
|
29555
30468
|
constructor(hostRef) {
|
|
29556
30469
|
registerInstance(this, hostRef);
|
|
@@ -29566,30 +30479,53 @@ const BcmRadio = class {
|
|
|
29566
30479
|
}
|
|
29567
30480
|
render() {
|
|
29568
30481
|
const { value, size, disabled, checked, _id, color } = this;
|
|
29569
|
-
|
|
29570
|
-
|
|
29571
|
-
|
|
29572
|
-
"
|
|
29573
|
-
"
|
|
29574
|
-
|
|
29575
|
-
|
|
29576
|
-
|
|
29577
|
-
|
|
29578
|
-
|
|
29579
|
-
}, "focus:tw-outline-none focus:tw-shadow-outline",
|
|
29580
|
-
// default
|
|
29581
|
-
`tw-border-slate-400 tw-bg-slate-50`, `checked:tw-border-default-500`, `checked:before:tw-bg-default-500`,
|
|
29582
|
-
// disabled
|
|
29583
|
-
`disabled:tw-border-slate-400 disabled:tw-bg-slate-200 disabled:tw-cursor-not-allowed`, `disabled:checked:tw-border-slate-400`, `disabled:checked:before:tw-bg-slate-400`, !disabled && classnames(
|
|
29584
|
-
// hover
|
|
29585
|
-
`hover:tw-border-default-600`, `hover:checked:tw-border-default-600`, `hover:checked:before:tw-bg-default-600`,
|
|
29586
|
-
// focus-visible
|
|
29587
|
-
`focus-visible:tw-border-default-800 focus-visible:tw-shadow-sm`, `focus-visible:checked:tw-border-default-800`, `focus-visible:checked:before:tw-bg-default-800`,
|
|
29588
|
-
// active
|
|
29589
|
-
`active:tw-border-default-700`, `active:checked:tw-border-default-700`, `active:checked:before:tw-bg-default-700`)), onChange: () => this.radioChange.emit(), onFocus: () => this.focus.emit(), onBlur: () => this.blur.emit() }), h$2("slot", null))));
|
|
30482
|
+
const style = Object.assign({}, color && Generate.getTwColor({
|
|
30483
|
+
color: color,
|
|
30484
|
+
tones: {
|
|
30485
|
+
700: ["border-hover", "checked-dot", "checked-border"],
|
|
30486
|
+
800: ["checked-border-hover", "checked-dot-hover"],
|
|
30487
|
+
},
|
|
30488
|
+
variable: "--bcm-radio",
|
|
30489
|
+
}));
|
|
30490
|
+
const { host, label, input } = radioStyle({ size, disabled });
|
|
30491
|
+
return (h$2(Host, { class: host(), style: style }, h$2("label", { class: label(), htmlFor: _id + '-input' }, h$2("input", { role: "radio", "aria-label": "radio", id: _id + '-input', type: "radio", value: value, checked: checked, disabled: disabled, class: input(), onChange: () => this.radioChange.emit(), onFocus: () => this.focus.emit(), onBlur: () => this.blur.emit() }), h$2("slot", null))));
|
|
29590
30492
|
}
|
|
29591
30493
|
get el() { return getElement(this); }
|
|
29592
30494
|
};
|
|
30495
|
+
BcmRadio.style = radioCss;
|
|
30496
|
+
|
|
30497
|
+
const radioGroupStyle = ce({
|
|
30498
|
+
slots: {
|
|
30499
|
+
host: [
|
|
30500
|
+
"bcm-radio-group",
|
|
30501
|
+
"bcm-ui-element bcm-ui-inputs",
|
|
30502
|
+
"tw-mb-2 tw-flex tw-flex-col",
|
|
30503
|
+
],
|
|
30504
|
+
radioGroupContainer: [
|
|
30505
|
+
"bcm-radio-group__container",
|
|
30506
|
+
"tw-flex tw-flex-wrap",
|
|
30507
|
+
],
|
|
30508
|
+
},
|
|
30509
|
+
variants: {
|
|
30510
|
+
direction: {
|
|
30511
|
+
vertical: {
|
|
30512
|
+
radioGroupContainer: ["tw-flex-col"],
|
|
30513
|
+
},
|
|
30514
|
+
horizontal: {
|
|
30515
|
+
radioGroupContainer: ["tw-flex-row tw-gap-2"],
|
|
30516
|
+
},
|
|
30517
|
+
},
|
|
30518
|
+
fullWidth: {
|
|
30519
|
+
true: {
|
|
30520
|
+
host: ["tw-w-full"],
|
|
30521
|
+
}
|
|
30522
|
+
},
|
|
30523
|
+
},
|
|
30524
|
+
defaultVariants: {
|
|
30525
|
+
direction: "horizontal",
|
|
30526
|
+
fullWidth: false,
|
|
30527
|
+
},
|
|
30528
|
+
});
|
|
29593
30529
|
|
|
29594
30530
|
var __decorate$2 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
29595
30531
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
@@ -29710,7 +30646,11 @@ const BcmRadioGroup = class {
|
|
|
29710
30646
|
render() {
|
|
29711
30647
|
var _a, _b;
|
|
29712
30648
|
const { direction, fullWidth, gap, label, size, required, disabled, caption, captionError, captionType, noCaption } = this;
|
|
29713
|
-
|
|
30649
|
+
const { host, radioGroupContainer } = radioGroupStyle({
|
|
30650
|
+
direction,
|
|
30651
|
+
fullWidth
|
|
30652
|
+
});
|
|
30653
|
+
return (h$2(Host, { class: host(), role: "radiogroup", "aria-labelledby": "radiogroup" }, label && h$2("bcm-label", { type: captionType, value: label, required: required }), h$2("div", { class: radioGroupContainer(), style: { "gap": gap } }, h$2("slot", null), ((_a = this.Items) === null || _a === void 0 ? void 0 : _a.length) > 0 &&
|
|
29714
30654
|
((_b = this.Items) === null || _b === void 0 ? void 0 : _b.map(item => (h$2("bcm-radio", { id: item.id, value: item.value, disabled: disabled || item.disabled, checked: item.checked, color: item.color, size: size }, item.label))))), h$2(CaptionTemplate, { noCaption: noCaption, captionType: captionType, captionError: captionError, caption: caption })));
|
|
29715
30655
|
}
|
|
29716
30656
|
get el() { return getElement(this); }
|
|
@@ -41874,7 +42814,7 @@ exports.default = locale;
|
|
|
41874
42814
|
|
|
41875
42815
|
const enUS = /*@__PURE__*/getDefaultExportFromCjs(en_US);
|
|
41876
42816
|
|
|
41877
|
-
const rcPickerCss = "@charset \"UTF-8\";@import url(\"https://fonts.googleapis.com/css?family=Roboto:400,500\");.size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}.bcm-date{font-family:\"Inter\", sans-serif;font-size:14px;line-height:22px;font-weight:500;display:flex;align-items:stretch;flex-direction:row;background-color:#fff;border:1px solid #cbd5e1;color:#334155;border-radius:4px;box-sizing:border-box;cursor:text;padding:0 0 0 4px;position:relative;width:100%;}.bcm-date--large{height:40px;font-size:16px}.bcm-date--medium{height:32px;font-size:14px}.bcm-date--small{height:24px;font-size:12px}.bcm-date:hover{border:1px solid #4293cf}.bcm-date:hover.bcm-date--existed{}.bcm-date:hover.bcm-date--existed .bcm-date-clear{visibility:visible;opacity:1}.bcm-date:hover.bcm-date--existed .bcm-date-suffix{opacity:0}.bcm-date-focused{background-color:#f8fafc}.bcm-date-suffix{color:#334155}.bcm-date-suffix:not(:empty){display:flex;align-items:center;justify-content:center}.bcm-date-suffix::before{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:inline-block;font-style:normal;font-variant:normal;text-rendering:auto;line-height:1;font-family:\"Font Awesome 6 Pro\";font-weight:400;line-height:1;box-sizing:border-box;padding:0 4px;cursor:pointer}.bcm-date--datetime .bcm-date-suffix::before{content:\"\\e0d2\"}.bcm-date--date .bcm-date-suffix::before{content:\"\\f133\"}.bcm-date--time .bcm-date-suffix::before{content:\"\\f017\"}.bcm-date-input{position:relative;display:inline-flex;width:100%;padding:0 4px;color:#334155}.bcm-date-input-placeholder{color:#94a3b8}.bcm-date-input>input{color:inherit;width:100%;flex:1;border:none;background:transparent;box-shadow:unset;line-height:22px;font-family:\"Inter\", sans-serif;cursor:inherit;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;overflow:hidden;text-overflow:ellipsis;font-weight:500}.bcm-date-input>input::placeholder{font-family:\"Inter\", sans-serif;color:#cbd5e1;user-select:none}.bcm-date-input>input::-webkit-search-decoration,.bcm-date-input>input::-webkit-search-cancel-button,.bcm-date-input>input::-webkit-search-results-button,.bcm-date-input>input::-webkit-search-results-decoration,.bcm-date-input>input::-webkit-calendar-picker-indicator,.bcm-date-input>input::-webkit-inner-spin-button,.bcm-date-input>input::-webkit-outer-spin-button{-webkit-appearance:none}.bcm-date-input>input::-moz-placeholder{opacity:1}.bcm-date-input>input:placeholder-shown{text-overflow:ellipsis}.bcm-date-clear{color:#334155;display:flex;flex-direction:column;align-items:center;justify-content:center;width:20px;font-size:20px;padding-bottom:3px;line-height:1;cursor:pointer;font-weight:400;visibility:hidden;position:absolute;right:4px;padding:4px;opacity:0;transition:opacity 0.2s}.bcm-date-clear-btn::after{content:\"×\"}.bcm-date-disabled{background-color:#f8fafc;color:#a0aec0;cursor:not-allowed}.bcm-date-disabled input{color:#a0aec0}.bcm-date-disabled:hover{border:1px solid #cbd5e1}.bcm-date-disabled .bcm-date-input{cursor:not-allowed}.bcm-date-disabled .bcm-date-suffix:before{cursor:not-allowed}.bcm-date-disabled .bcm-date-clear{cursor:not-allowed}.bcm-date--error{border:1px solid #e53e3e}.bcm-date--error:hover{border:1px solid #e53e3e}.bcm-date-range{padding:0 4px}.bcm-date-range .bcm-date-clear{flex:none}.bcm-date-range-separator{color:#94a3b8;padding:0 4px;display:flex;align-items:center;justify-content:center}.bcm-date-focused .bcm-date-active-bar{position:absolute;bottom:0;left:0;height:2px;background-color:#4293cf;transition:all 0.3s}.bcm-date-dropdown{position:absolute;z-index:10800;top:-9999;left:-9999;border-radius:4px}.bcm-date-dropdown-placement-bottomLeft,.bcm-date-dropdown-placement-bottomRight{top:0;display:block}.bcm-date-dropdown-placement-topLeft,.bcm-date-dropdown-placement-topRight{bottom:0;display:block}.bcm-date-dropdown-hidden{display:none}.bcm-date-dropdown .bcm-date-panel-container{font-family:\"Inter\", sans-serif;font-size:14px;line-height:22px;font-weight:400;box-shadow:0 4px 12px 0 rgba(17, 24, 39, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);background-color:#fff}.bcm-date-dropdown .bcm-date-panels{display:inline-flex}.bcm-date-dropdown .bcm-date-decade-panel,.bcm-date-dropdown .bcm-date-year-panel,.bcm-date-dropdown .bcm-date-month-panel,.bcm-date-dropdown .bcm-date-week-panel,.bcm-date-dropdown .bcm-date-date-panel{width:256px}.bcm-date-dropdown .bcm-date-time-panel{width:auto;padding-top:4px;min-width:auto}.bcm-date-dropdown .bcm-date-time-panel .bcm-date-content{width:100%;table-layout:fixed;border-collapse:collapse;text-align:center;display:flex;flex:auto;height:224px}.bcm-date-dropdown .bcm-date-time-panel-column{flex:1 0 auto;width:56px;margin:4px 0;padding:0;overflow-y:hidden;text-align:start;list-style:none;transition:background 0.2s;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:rgba(0, 0, 0, 0.45) transparent;position:relative}.bcm-date-dropdown .bcm-date-time-panel-column:not(:first-child){border-inline-start:1px solid rgba(5, 5, 5, 0.06)}.bcm-date-dropdown .bcm-date-time-panel-column-active{background:rgba(0, 0, 255, 0.1)}.bcm-date-dropdown .bcm-date-time-panel-column:hover{overflow-y:auto}.bcm-date-dropdown .bcm-date-time-panel-column>li{margin:0;padding:0}.bcm-date-dropdown .bcm-date-time-panel-column>li.disabled{opacity:0.5}.bcm-date-dropdown .bcm-date-time-panel-column>li.bcm-date-time-panel-cell{margin-inline:4px}.bcm-date-dropdown .bcm-date-time-panel-column>li.bcm-date-time-panel-cell .bcm-date-time-panel-cell-inner{display:block;width:48px;height:28px;margin:0;padding-block:0;padding-inline-end:0;padding-inline-start:14px;color:rgba(0, 0, 0, 0.88);line-height:28px;border-radius:4px;cursor:pointer;transition:background 0.2s}.bcm-date-dropdown .bcm-date-time-panel-column>li.bcm-date-time-panel-cell .bcm-date-time-panel-cell-inner:hover{background:rgba(0, 0, 0, 0.04)}.bcm-date-dropdown .bcm-date-time-panel-column>li.bcm-date-time-panel-cell-selected .bcm-date-time-panel-cell-inner{background:#e6f4ff}.bcm-date-dropdown .bcm-date-time-panel-column>li.bcm-date-time-panel-cell-disabled .bcm-date-time-panel-cell-inner{pointer-events:none;color:rgba(0, 0, 0, 0.25)}.bcm-date-dropdown .bcm-date-datetime-panel{display:flex;flex-direction:row;align-items:stretch}.bcm-date-dropdown .bcm-date-datetime-panel .bcm-date-time-panel{padding-top:8px}.bcm-date-dropdown .bcm-date-datetime-panel .bcm-date-time-panel .bcm-date-header{display:none}.bcm-date-dropdown .bcm-date-header{padding:0 8px;color:rgba(0, 0, 0, 0.88);border-bottom:1px solid rgba(5, 5, 5, 0.06);display:flex;flex-direction:row;align-items:center;justify-content:space-between;font-size:18px}.bcm-date-dropdown .bcm-date-header>*{flex:none}.bcm-date-dropdown .bcm-date-header>button{min-width:20px}.bcm-date-dropdown .bcm-date-header button{padding:0;color:rgba(0, 0, 0, 0.45);line-height:40px;background:transparent;border:0;cursor:pointer;transition:color 0.2s;font-size:inherit}.bcm-date-dropdown .bcm-date-header button:hover{color:#3b82f6}.bcm-date-dropdown .bcm-date-header-view{flex:auto;text-align:center;font-weight:600;line-height:40px;gap:8px;font-size:14px}.bcm-date-dropdown .bcm-date-header-view button{color:inherit;font-weight:inherit;vertical-align:top;padding:0 4px}.bcm-date-dropdown .bcm-date-body{padding:8px 18px}.bcm-date-dropdown .bcm-date-content{text-align:center;width:100%;table-layout:fixed;border-collapse:collapse}.bcm-date-dropdown .bcm-date-content thead tr th{color:#334155;font-weight:400;font-size:12px;line-height:16px;padding:8px 0;text-align:center;text-transform:uppercase}.bcm-date-dropdown .bcm-date-cell{position:relative}.bcm-date-dropdown .bcm-date-cell::before{position:absolute;top:50%;inset-inline-start:0;inset-inline-end:0;z-index:1;height:24px;transform:translateY(-50%);transition:all 0.3s;content:\"\"}.bcm-date-dropdown .bcm-date-cell-inner{position:relative;z-index:2;display:flex;align-items:center;justify-content:center;border-radius:4px;border:1px solid transparent;transition:background 0.2s, border 0.2s;cursor:pointer;color:#94a3b8}.bcm-date-dropdown .bcm-date-cell-inner:hover{background:#e2e8f0;color:#64748b}.bcm-date-dropdown .bcm-date-cell-in-view .bcm-date-cell-inner{color:#334155}.bcm-date-dropdown .bcm-date-cell-today .bcm-date-cell-inner{border:1px solid #3b82f6;color:#3b82f6}.bcm-date-dropdown .bcm-date-cell-today .bcm-date-cell-inner:hover{background:#e2e8f0;color:#64748b}.bcm-date-dropdown .bcm-date-cell-selected .bcm-date-cell-inner{color:#fff;background:#3b82f6}.bcm-date-dropdown .bcm-date-cell-selected .bcm-date-cell-inner:hover{background:#2563eb;color:#fff}.bcm-date-dropdown .bcm-date-cell-in-range .bcm-date-cell-inner{background:#bfdbfe}.bcm-date-dropdown .bcm-date-cell-in-range::before{background:#bfdbfe}.bcm-date-dropdown .bcm-date-cell-range-hover .bcm-date-cell-inner{background:#93c5fd;color:#334155}.bcm-date-dropdown .bcm-date-cell-range-hover::before{background:#93c5fd}.bcm-date-dropdown .bcm-date-cell-range-start .bcm-date-cell-inner{background-color:#3b82f6;color:#fff;border-radius:4px 0 0 4px}.bcm-date-dropdown .bcm-date-cell-range-start .bcm-date-cell-inner:hover{background:#3b82f6;color:#fff;border-radius:4px 0 0 4px}.bcm-date-dropdown .bcm-date-cell-range-start::before{background:#bfdbfe;inset-inline-start:50%}.bcm-date-dropdown .bcm-date-cell-range-end .bcm-date-cell-inner{background-color:#3b82f6;color:#fff;border-radius:0 4px 4px 0}.bcm-date-dropdown .bcm-date-cell-range-end .bcm-date-cell-inner:hover{background:#3b82f6;color:#fff;border-radius:4px 0 0 4px}.bcm-date-dropdown .bcm-date-cell-range-end::before{background:#bfdbfe;inset-inline-end:50%}.bcm-date-dropdown .bcm-date-cell-range-hover-start .bcm-date-cell-inner{background-color:#93c5fd;color:#334155}.bcm-date-dropdown .bcm-date-cell-range-hover-start .bcm-date-cell-inner:hover{background:#93c5fd;color:#334155;border-radius:4px 0 0 4px}.bcm-date-dropdown .bcm-date-cell-range-hover-end .bcm-date-cell-inner:hover{background:#93c5fd;color:#334155;border-radius:0 4px 4px 0}.bcm-date-dropdown .bcm-date-cell-disabled .bcm-date-cell-inner{pointer-events:none;color:rgba(0, 0, 0, 0.25)}.bcm-date-dropdown .bcm-date-cell-disabled::before{background:rgba(0, 0, 0, 0.04)}.bcm-date-dropdown .bcm-date-footer{border-top:1px solid rgba(5, 5, 5, 0.06);width:min-content;min-width:100%;line-height:38px;text-align:center}.bcm-date-dropdown .bcm-date-footer .bcm-date-today-btn{color:#3b82f6;cursor:pointer;padding:0 8px}.bcm-date-dropdown .bcm-date-footer .bcm-date-today-btn:hover{color:#2563eb}.bcm-date-dropdown .bcm-date-ranges{margin:0;margin-bottom:0;padding:4px 12px;overflow:hidden;line-height:34px;text-align:start;list-style:none;display:flex;justify-content:space-between}.bcm-date-dropdown .bcm-date-ranges>li{display:inline-block}.bcm-date-dropdown .bcm-date-ranges .bcm-date-ok{margin-inline-start:auto}.bcm-date-dropdown .bcm-date-ranges .bcm-date-ok>button{font-size:14px;color:#fff;background-color:#3b82f6;box-shadow:0 2px 0 rgba(5, 145, 255, 0.1);height:24px;padding:0 7px;border-radius:4px;outline:none;border:none;cursor:pointer;transition:background-color 0.3s}.bcm-date-dropdown .bcm-date-ranges .bcm-date-ok>button:hover{background-color:#2563eb}.bcm-date-dropdown .bcm-date-now{text-align:right}.bcm-date-dropdown .bcm-date-now-btn{color:#3b82f6;text-decoration:none;background-color:transparent;outline:none;cursor:pointer;transition:color 0.3s;-webkit-text-decoration-skip:objects}.bcm-date-dropdown .bcm-date-now-btn:hover{color:#2563eb}.bcm-date-dropdown .bcm-date-range-wrapper{display:flex;position:relative}";
|
|
42817
|
+
const rcPickerCss = "@charset \"UTF-8\";@import url(\"https://fonts.googleapis.com/css?family=Roboto:400,500\");.size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}.bcm-date{font-family:\"Inter\", sans-serif;font-weight:500;display:flex;align-items:stretch;flex-direction:row;background-color:var(--bcm-ui-color-background-base-default);border:1px solid var(--bcm-ui-color-border-default);border-radius:var(--bcm-ui-radius);box-sizing:border-box;cursor:text;padding:0 0 0 var(--bcm-ui-spacing-2);position:relative;width:100%;}.bcm-date--small{height:24px;font-size:var(--bcm-ui-font-size-4);line-height:var(--bcm-ui-line-height-4)}.bcm-date--medium{height:32px;font-size:var(--bcm-ui-font-size-5);line-height:var(--bcm-ui-line-height-5)}.bcm-date--large{height:40px;font-size:var(--bcm-ui-font-size-6);line-height:var(--bcm-ui-line-height-6)}.bcm-date:hover{border-color:var(--bcm-ui-color-border-primary-info)}.bcm-date:hover.bcm-date--existed{}.bcm-date:hover.bcm-date--existed .bcm-date-clear{visibility:visible;opacity:1}.bcm-date:hover.bcm-date--existed .bcm-date-suffix{opacity:0}.bcm-date-focused{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)}.bcm-date-suffix{color:var(--bcm-ui-color-text-placeholder)}.bcm-date-suffix:not(:empty){display:flex;align-items:center;justify-content:center}.bcm-date-suffix::before{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:inline-block;font-style:normal;font-variant:normal;text-rendering:auto;line-height:1;font-family:\"Font Awesome 6 Pro\";font-weight:400;line-height:1;box-sizing:border-box;padding:0 4px;cursor:pointer}.bcm-date--datetime .bcm-date-suffix::before{content:\"\\e0d2\"}.bcm-date--date .bcm-date-suffix::before{content:\"\\f133\"}.bcm-date--time .bcm-date-suffix::before{content:\"\\f017\"}.bcm-date-input{position:relative;display:inline-flex;width:100%;padding:0 4px;color:#334155}.bcm-date-input-placeholder{color:var(--bcm-ui-color-text-placeholder)}.bcm-date-input>input{color:inherit;width:100%;flex:1;border:none;background:transparent;box-shadow:unset;line-height:inherit;font-size:inherit;font-family:\"Inter\", sans-serif;cursor:inherit;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;overflow:hidden;text-overflow:ellipsis;font-weight:500}.bcm-date-input>input::placeholder{font-family:\"Inter\", sans-serif;font-weight:400;color:var(--bcm-ui-color-text-placeholder);user-select:none}.bcm-date-input>input::-webkit-search-decoration,.bcm-date-input>input::-webkit-search-cancel-button,.bcm-date-input>input::-webkit-search-results-button,.bcm-date-input>input::-webkit-search-results-decoration,.bcm-date-input>input::-webkit-calendar-picker-indicator,.bcm-date-input>input::-webkit-inner-spin-button,.bcm-date-input>input::-webkit-outer-spin-button{-webkit-appearance:none}.bcm-date-input>input::-moz-placeholder{opacity:1}.bcm-date-input>input:placeholder-shown{text-overflow:ellipsis}.bcm-date-clear{color:var(--bcm-ui-color-text-placeholder);display:flex;flex-direction:column;align-items:center;justify-content:center;width:20px;font-size:20px;padding-bottom:3px;line-height:1;cursor:pointer;font-weight:400;visibility:hidden;position:absolute;right:4px;padding:4px;opacity:0;transition:opacity 0.2s}.bcm-date-clear-btn::after{content:\"×\"}.bcm-date-disabled{background-color:var(--bcm-ui-color-background-disabled-disable);color:var(--bcm-ui-color-text-disabled);cursor:not-allowed}.bcm-date-disabled input{color:var(--bcm-ui-color-text-disabled)}.bcm-date-disabled:hover{border:1px solid #cbd5e1}.bcm-date-disabled .bcm-date-input{cursor:not-allowed}.bcm-date-disabled .bcm-date-suffix:before{cursor:not-allowed}.bcm-date-disabled .bcm-date-clear{cursor:not-allowed}.bcm-date--error{border:1px solid var(--bcm-ui-color-border-error)}.bcm-date--error:hover{border:1px solid var(--bcm-ui-color-border-error)}.bcm-date-range{padding:0 4px}.bcm-date-range .bcm-date-clear{flex:none}.bcm-date-range-separator{color:var(--bcm-ui-color-text-placeholder);padding:0 4px;display:flex;align-items:center;justify-content:center}.bcm-date-focused .bcm-date-active-bar{position:absolute;bottom:0;left:0;height:2px;background-color:#4293cf;transition:all 0.3s}.bcm-date-dropdown{position:absolute;z-index:10800;top:-9999;left:-9999;border-radius:4px}.bcm-date-dropdown-placement-bottomLeft,.bcm-date-dropdown-placement-bottomRight{top:0;display:block}.bcm-date-dropdown-placement-topLeft,.bcm-date-dropdown-placement-topRight{bottom:0;display:block}.bcm-date-dropdown-hidden{display:none}.bcm-date-dropdown .bcm-date-panel-container{font-family:\"Inter\", sans-serif;font-size:14px;line-height:22px;font-weight:400;box-shadow:0 4px 12px 0 rgba(17, 24, 39, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);background-color:#fff}.bcm-date-dropdown .bcm-date-panels{display:inline-flex}.bcm-date-dropdown .bcm-date-decade-panel,.bcm-date-dropdown .bcm-date-year-panel,.bcm-date-dropdown .bcm-date-month-panel,.bcm-date-dropdown .bcm-date-week-panel,.bcm-date-dropdown .bcm-date-date-panel{width:256px}.bcm-date-dropdown .bcm-date-time-panel{width:auto;padding-top:4px;min-width:auto}.bcm-date-dropdown .bcm-date-time-panel .bcm-date-content{width:100%;table-layout:fixed;border-collapse:collapse;text-align:center;display:flex;flex:auto;height:224px}.bcm-date-dropdown .bcm-date-time-panel-column{flex:1 0 auto;width:56px;margin:4px 0;padding:0;overflow-y:hidden;text-align:start;list-style:none;transition:background 0.2s;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:rgba(0, 0, 0, 0.45) transparent;position:relative}.bcm-date-dropdown .bcm-date-time-panel-column:not(:first-child){border-inline-start:1px solid rgba(5, 5, 5, 0.06)}.bcm-date-dropdown .bcm-date-time-panel-column-active{background:rgba(0, 0, 255, 0.1)}.bcm-date-dropdown .bcm-date-time-panel-column:hover{overflow-y:auto}.bcm-date-dropdown .bcm-date-time-panel-column>li{margin:0;padding:0}.bcm-date-dropdown .bcm-date-time-panel-column>li.disabled{opacity:0.5}.bcm-date-dropdown .bcm-date-time-panel-column>li.bcm-date-time-panel-cell{margin-inline:4px}.bcm-date-dropdown .bcm-date-time-panel-column>li.bcm-date-time-panel-cell .bcm-date-time-panel-cell-inner{display:block;width:48px;height:28px;margin:0;padding-block:0;padding-inline-end:0;padding-inline-start:14px;color:rgba(0, 0, 0, 0.88);line-height:28px;border-radius:4px;cursor:pointer;transition:background 0.2s}.bcm-date-dropdown .bcm-date-time-panel-column>li.bcm-date-time-panel-cell .bcm-date-time-panel-cell-inner:hover{background:rgba(0, 0, 0, 0.04)}.bcm-date-dropdown .bcm-date-time-panel-column>li.bcm-date-time-panel-cell-selected .bcm-date-time-panel-cell-inner{background:#e6f4ff}.bcm-date-dropdown .bcm-date-time-panel-column>li.bcm-date-time-panel-cell-disabled .bcm-date-time-panel-cell-inner{pointer-events:none;color:rgba(0, 0, 0, 0.25)}.bcm-date-dropdown .bcm-date-datetime-panel{display:flex;flex-direction:row;align-items:stretch}.bcm-date-dropdown .bcm-date-datetime-panel .bcm-date-time-panel{padding-top:8px}.bcm-date-dropdown .bcm-date-datetime-panel .bcm-date-time-panel .bcm-date-header{display:none}.bcm-date-dropdown .bcm-date-header{padding:0 8px;color:rgba(0, 0, 0, 0.88);border-bottom:1px solid rgba(5, 5, 5, 0.06);display:flex;flex-direction:row;align-items:center;justify-content:space-between;font-size:18px}.bcm-date-dropdown .bcm-date-header>*{flex:none}.bcm-date-dropdown .bcm-date-header>button{min-width:20px}.bcm-date-dropdown .bcm-date-header button{padding:0;color:rgba(0, 0, 0, 0.45);line-height:40px;background:transparent;border:0;cursor:pointer;transition:color 0.2s;font-size:inherit}.bcm-date-dropdown .bcm-date-header button:hover{color:#3b82f6}.bcm-date-dropdown .bcm-date-header-view{flex:auto;text-align:center;font-weight:600;line-height:40px;gap:8px;font-size:14px}.bcm-date-dropdown .bcm-date-header-view button{color:inherit;font-weight:inherit;vertical-align:top;padding:0 4px}.bcm-date-dropdown .bcm-date-body{padding:8px 18px}.bcm-date-dropdown .bcm-date-content{text-align:center;width:100%;table-layout:fixed;border-collapse:collapse}.bcm-date-dropdown .bcm-date-content thead tr th{color:#334155;font-weight:400;font-size:12px;line-height:16px;padding:8px 0;text-align:center;text-transform:uppercase}.bcm-date-dropdown .bcm-date-cell{position:relative}.bcm-date-dropdown .bcm-date-cell::before{position:absolute;top:50%;inset-inline-start:0;inset-inline-end:0;z-index:1;height:24px;transform:translateY(-50%);transition:all 0.3s;content:\"\"}.bcm-date-dropdown .bcm-date-cell-inner{position:relative;z-index:2;display:flex;align-items:center;justify-content:center;border-radius:4px;border:1px solid transparent;transition:background 0.2s, border 0.2s;cursor:pointer;color:#94a3b8}.bcm-date-dropdown .bcm-date-cell-inner:hover{background:#e2e8f0;color:#64748b}.bcm-date-dropdown .bcm-date-cell-in-view .bcm-date-cell-inner{color:#334155}.bcm-date-dropdown .bcm-date-cell-today .bcm-date-cell-inner{border:1px solid #3b82f6;color:#3b82f6}.bcm-date-dropdown .bcm-date-cell-today .bcm-date-cell-inner:hover{background:#e2e8f0;color:#64748b}.bcm-date-dropdown .bcm-date-cell-selected .bcm-date-cell-inner{color:#fff;background:#3b82f6}.bcm-date-dropdown .bcm-date-cell-selected .bcm-date-cell-inner:hover{background:#2563eb;color:#fff}.bcm-date-dropdown .bcm-date-cell-in-range .bcm-date-cell-inner{background:#bfdbfe}.bcm-date-dropdown .bcm-date-cell-in-range::before{background:#bfdbfe}.bcm-date-dropdown .bcm-date-cell-range-hover .bcm-date-cell-inner{background:#93c5fd;color:#334155}.bcm-date-dropdown .bcm-date-cell-range-hover::before{background:#93c5fd}.bcm-date-dropdown .bcm-date-cell-range-start .bcm-date-cell-inner{background-color:#3b82f6;color:#fff;border-radius:4px 0 0 4px}.bcm-date-dropdown .bcm-date-cell-range-start .bcm-date-cell-inner:hover{background:#3b82f6;color:#fff;border-radius:4px 0 0 4px}.bcm-date-dropdown .bcm-date-cell-range-start::before{background:#bfdbfe;inset-inline-start:50%}.bcm-date-dropdown .bcm-date-cell-range-end .bcm-date-cell-inner{background-color:#3b82f6;color:#fff;border-radius:0 4px 4px 0}.bcm-date-dropdown .bcm-date-cell-range-end .bcm-date-cell-inner:hover{background:#3b82f6;color:#fff;border-radius:4px 0 0 4px}.bcm-date-dropdown .bcm-date-cell-range-end::before{background:#bfdbfe;inset-inline-end:50%}.bcm-date-dropdown .bcm-date-cell-range-hover-start .bcm-date-cell-inner{background-color:#93c5fd;color:#334155}.bcm-date-dropdown .bcm-date-cell-range-hover-start .bcm-date-cell-inner:hover{background:#93c5fd;color:#334155;border-radius:4px 0 0 4px}.bcm-date-dropdown .bcm-date-cell-range-hover-end .bcm-date-cell-inner:hover{background:#93c5fd;color:#334155;border-radius:0 4px 4px 0}.bcm-date-dropdown .bcm-date-cell-disabled .bcm-date-cell-inner{pointer-events:none;color:rgba(0, 0, 0, 0.25)}.bcm-date-dropdown .bcm-date-cell-disabled::before{background:rgba(0, 0, 0, 0.04)}.bcm-date-dropdown .bcm-date-footer{border-top:1px solid rgba(5, 5, 5, 0.06);width:min-content;min-width:100%;line-height:38px;text-align:center}.bcm-date-dropdown .bcm-date-footer .bcm-date-today-btn{color:#3b82f6;cursor:pointer;padding:0 8px}.bcm-date-dropdown .bcm-date-footer .bcm-date-today-btn:hover{color:#2563eb}.bcm-date-dropdown .bcm-date-ranges{margin:0;margin-bottom:0;padding:4px 12px;overflow:hidden;line-height:34px;text-align:start;list-style:none;display:flex;justify-content:space-between}.bcm-date-dropdown .bcm-date-ranges>li{display:inline-block}.bcm-date-dropdown .bcm-date-ranges .bcm-date-ok{margin-inline-start:auto}.bcm-date-dropdown .bcm-date-ranges .bcm-date-ok>button{font-size:14px;color:#fff;background-color:#3b82f6;box-shadow:0 2px 0 rgba(5, 145, 255, 0.1);height:24px;padding:0 7px;border-radius:4px;outline:none;border:none;cursor:pointer;transition:background-color 0.3s}.bcm-date-dropdown .bcm-date-ranges .bcm-date-ok>button:hover{background-color:#2563eb}.bcm-date-dropdown .bcm-date-now{text-align:right}.bcm-date-dropdown .bcm-date-now-btn{color:#3b82f6;text-decoration:none;background-color:transparent;outline:none;cursor:pointer;transition:color 0.3s;-webkit-text-decoration-skip:objects}.bcm-date-dropdown .bcm-date-now-btn:hover{color:#2563eb}.bcm-date-dropdown .bcm-date-range-wrapper{display:flex;position:relative}";
|
|
41878
42818
|
|
|
41879
42819
|
const BcmRcPicker = class {
|
|
41880
42820
|
constructor(hostRef) {
|
|
@@ -42109,8 +43049,6 @@ const searchState = {
|
|
|
42109
43049
|
searchData,
|
|
42110
43050
|
};
|
|
42111
43051
|
|
|
42112
|
-
const searchCss = "@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}";
|
|
42113
|
-
|
|
42114
43052
|
const BcmSearch = class {
|
|
42115
43053
|
constructor(hostRef) {
|
|
42116
43054
|
registerInstance(this, hostRef);
|
|
@@ -42188,15 +43126,21 @@ const BcmSearch = class {
|
|
|
42188
43126
|
bcmOnSearch.emit({ result: searchResult === null || searchResult === void 0 ? void 0 : searchResult.result, value: inputElement === null || inputElement === void 0 ? void 0 : inputElement.value, matching: searchResult === null || searchResult === void 0 ? void 0 : searchResult.matching, parentIndex: searchResult === null || searchResult === void 0 ? void 0 : searchResult.parentIndex, nestedResult: searchResult === null || searchResult === void 0 ? void 0 : searchResult.nestedResult });
|
|
42189
43127
|
}
|
|
42190
43128
|
render() {
|
|
42191
|
-
const { _id, placeholder, disabled, readonly } = this;
|
|
42192
|
-
|
|
43129
|
+
const { _id, placeholder, disabled, readonly, size } = this;
|
|
43130
|
+
const { host, inputContainer, input, slotClass, clearButton } = inputStyle({
|
|
43131
|
+
size,
|
|
43132
|
+
fullWidth: true,
|
|
43133
|
+
clearable: this.isActiveClearable,
|
|
43134
|
+
disabled,
|
|
43135
|
+
readonly,
|
|
43136
|
+
});
|
|
43137
|
+
return h$2(Host, { class: host(), onClick: () => { this.onBcmFocus(); this.onBcmSelect(); } }, h$2("div", { class: inputContainer(), id: _id + "-container" }, h$2("input", { class: input(), id: _id + "-input", type: "search", placeholder: placeholder, disabled: disabled, readonly: readonly, onInput: this.debounceHandler, onChange: _event => this.handleChange(), onFocus: _event => this.handleFocus(), onBlur: _event => this.handleBlur(), autocomplete: "off", ref: el => (this.inputElement = el) }), h$2("div", { class: slotClass() }, this.isActiveClearable && (h$2("button", { type: "button", class: clearButton(), onClick: () => this.handleClear() }, h$2("i", { class: "far fa-times" }))))));
|
|
42193
43138
|
}
|
|
42194
43139
|
get el() { return getElement(this); }
|
|
42195
43140
|
static get watchers() { return {
|
|
42196
43141
|
"data": ["dataChanged"]
|
|
42197
43142
|
}; }
|
|
42198
43143
|
};
|
|
42199
|
-
BcmSearch.style = searchCss;
|
|
42200
43144
|
|
|
42201
43145
|
const selectCss = "@import url(\"https://fonts.googleapis.com/css?family=Roboto:400,500\");.size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}:host{display:inline-block;width:100%;margin:0}:host(.hidden){display:none}.container{display:block;max-width:256px;position:relative}.container.full-width{width:100%;max-width:100%}.selected{width:100%;box-sizing:border-box;color:var(--bcm-color-grey-8);background-color:var(--bcm-color-grey-1);display:flex;justify-content:space-between;align-items:center;border:1px solid var(--bcm-color-grey-5);user-select:none;cursor:pointer}.selected:hover:not(.disabled){border-color:var(--bcm-color-prime-blue-5)}.selected:hover:not(.disabled) .select-clear-button{opacity:1}.selected:focus:not(.disabled){border-color:var(--bcm-color-prime-blue-5);box-shadow:0px 0px 4px var(--bcm-color-prime-blue-6)}.selected:focus:not(.disabled) .select-clear-button{opacity:1}.selected:focus{outline:none}.selected.disabled{background-color:var(--bcm-color-grey-3);color:var(--bcm-color-grey-8);cursor:not-allowed}.selected .buttons{padding:8px;height:100%;display:flex;align-items:center;justify-content:center}.selected .selected-text{display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;padding:0 8px;width:100%}.selected .selected-tags{padding:0 4px;height:100%}.selected .tag-container{height:100%;display:flex;align-items:center;justify-content:flex-start;grid-gap:2px}.selected .tag-container>span{height:100%;align-items:center;justify-content:flex-start;display:flex;grid-gap:2px}.selected .tag-container .tag{max-width:200px}.selected .tag-container #other-tag{cursor:pointer}.selected .open,.selected .close{display:inline-flex}.selected .close{transform:rotate(180deg)}.selected .placeholder{color:#6B7280;user-select:none;font-size:14px;height:100%;display:flex;align-items:center;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}.options-viewport{display:inline-block}.option-container{display:block;position:absolute;background-color:var(--bcm-color-grey-1);box-shadow:0px 2px 8px rgba(0, 0, 0, 0.15);box-sizing:border-box;width:100%;z-index:10000}.option-container.alignment-left{left:0}.option-container.alignment-right{right:0}.option-container.hidden{display:none}.option-container .search{position:sticky;padding:8px;margin-bottom:4px}.option-container .search:after{content:\"\";position:absolute;bottom:0;height:1px;width:calc(100% - 16px);background-color:var(--bcm-color-grey-5)}.options-viewport{display:block}.options-viewport bcm-select-option,.options-viewport ::slotted(bcm-select-option){white-space:normal}.options-viewport.hidden{display:none}.options-viewport.vertical{height:fit-content;max-height:200px}.options-viewport.horizontal:not(.flex){overflow-x:auto;width:100%}.options-viewport.horizontal:not(.flex) bcm-select-option,.options-viewport.horizontal:not(.flex) ::slotted(bcm-select-option){white-space:nowrap}.items{display:flex;flex-direction:column}.buttons{display:flex}.select-clear-button{display:inline-flex;align-items:center;outline:none;border:none;background:none;padding:0;cursor:pointer;margin-right:4px;opacity:0}.label{display:block;color:var(--bcm-color-grey-9)}.caption-area{min-height:20px}.input-caption{display:block}.selected-large{height:40px}.selected-medium{height:32px}.selected-small{height:24px}.caption-default{color:#8C8C8C}.caption-primary{color:#4293CF}.caption-success{color:#52C41A}.caption-warning{color:#FA8C16}.caption-error{color:#F5222D}.error .label{color:var(--bcm-color-red-6) !important}.error .selected{border:1px solid var(--bcm-color-red-6) !important}";
|
|
42202
43146
|
|
|
@@ -43407,6 +44351,40 @@ const BcmSelectBox = class {
|
|
|
43407
44351
|
};
|
|
43408
44352
|
BcmSelectBox.style = selectBoxCss;
|
|
43409
44353
|
|
|
44354
|
+
const shortcutStyle = ce({
|
|
44355
|
+
slots: {
|
|
44356
|
+
host: [
|
|
44357
|
+
"bcm-shortcut",
|
|
44358
|
+
"bcm-ui-element bcm-ui-content-display",
|
|
44359
|
+
"tw-block tw-h-fit tw-w-fit tw-rounded-md tw-border tw-border-solid tw-px-1",
|
|
44360
|
+
"tw-border-[--bcm-shortcut-border] tw-bg-[--bcm-shortcut-bg] tw-text-[--bcm-shortcut-text]",
|
|
44361
|
+
"tw-text-center tw-font-medium tw-capitalize",
|
|
44362
|
+
],
|
|
44363
|
+
},
|
|
44364
|
+
variants: {
|
|
44365
|
+
size: {
|
|
44366
|
+
small: {
|
|
44367
|
+
host: [
|
|
44368
|
+
"tw-text-size-3",
|
|
44369
|
+
],
|
|
44370
|
+
},
|
|
44371
|
+
medium: {
|
|
44372
|
+
host: [
|
|
44373
|
+
"tw-text-size-4",
|
|
44374
|
+
],
|
|
44375
|
+
},
|
|
44376
|
+
large: {
|
|
44377
|
+
host: [
|
|
44378
|
+
"tw-text-size-5",
|
|
44379
|
+
],
|
|
44380
|
+
},
|
|
44381
|
+
},
|
|
44382
|
+
},
|
|
44383
|
+
defaultVariants: {
|
|
44384
|
+
size: "medium",
|
|
44385
|
+
},
|
|
44386
|
+
});
|
|
44387
|
+
|
|
43410
44388
|
const osKeys = {
|
|
43411
44389
|
ctrl: "⌘",
|
|
43412
44390
|
alt: "⌥",
|
|
@@ -43439,11 +44417,17 @@ const BcmShortcut = class {
|
|
|
43439
44417
|
}
|
|
43440
44418
|
render() {
|
|
43441
44419
|
const { size, color, hotkey } = this;
|
|
43442
|
-
|
|
43443
|
-
|
|
43444
|
-
|
|
43445
|
-
|
|
43446
|
-
|
|
44420
|
+
const { host } = shortcutStyle({ size });
|
|
44421
|
+
const style = Generate.getTwColor({
|
|
44422
|
+
color: color,
|
|
44423
|
+
tones: {
|
|
44424
|
+
100: ["bg"],
|
|
44425
|
+
300: ["border"],
|
|
44426
|
+
700: ["text"],
|
|
44427
|
+
},
|
|
44428
|
+
variable: "--bcm-shortcut",
|
|
44429
|
+
});
|
|
44430
|
+
return (h$2(Host, { class: host(), style: style }, this.getHotkey(hotkey)));
|
|
43447
44431
|
}
|
|
43448
44432
|
};
|
|
43449
44433
|
|
|
@@ -43592,7 +44576,7 @@ const BcmStep = class {
|
|
|
43592
44576
|
}; }
|
|
43593
44577
|
};
|
|
43594
44578
|
|
|
43595
|
-
const stepperCss = "@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}*{box-sizing:border-box}.bcm-stepper{display:block;font-family:\"Inter\", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400}.bcm-stepper__header{display:flex;flex-direction:row;justify-content:space-between;align-items:flex-start;padding:16px}.bcm-stepper__header *,.bcm-stepper__header ::after,.bcm-stepper__header ::before{box-sizing:content-box}.bcm-stepper__header-item{display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative;min-width:150px}.bcm-stepper__header-item--container{display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative}.bcm-stepper__header-item-icon{position:relative;width:32px;height:32px;min-width:32px;min-height:32px;display:flex;justify-content:center;align-items:center;border-radius:50%;background-color:var(--bcm-new-ds-color-blue-600);color:var(--bcm-new-ds-color-slate-700);line-height:1;margin-bottom:16px;user-select:none}.bcm-stepper__header-item-icon::before{width:40px;height:40px;border-radius:50%;border:2px solid var(--bcm-new-ds-color-blue-600);border-color:transparent;position:absolute;z-index:0;user-select:none;top:-6px;left:-6px}.bcm-stepper__header-item-title{color:var(--bcm-new-ds-color-slate-700)}.bcm-stepper__header-item-description{color:var(--bcm-new-ds-color-slate-600)}.bcm-stepper__header-item--disabled .bcm-stepper__header-item-title{color:var(--bcm-new-ds-color-slate-500)}.bcm-stepper__header-item--disabled .bcm-stepper__header-item-description{color:var(--bcm-new-ds-color-slate-500)}.bcm-stepper__header-item:not(.bcm-stepper__header-item--disabled):hover{cursor:pointer}.bcm-stepper__header-item:not(.bcm-stepper__header-item--disabled):hover .bcm-stepper__header-item-icon{background-color:var(--bcm-color-prime-blue-7)}.bcm-stepper__header-item::before,.bcm-stepper__header-item::after{content:\"\";position:absolute;width:calc(50% - 24px);height:2px;background-color:var(--bcm-new-ds-color-blue-600);top:16px;box-sizing:content-box}.bcm-stepper__header-item::after{right:0;border-radius:3px 0 0 3px}.bcm-stepper__header-item::before{left:0;border-radius:0 3px 3px 0}.bcm-stepper__header-item:first-of-type::before{display:none}.bcm-stepper__header-item:last-of-type::after{display:none}.bcm-stepper__header-item--active .bcm-stepper__header-item-icon::before{content:\"\";border:2px solid var(--bcm-new-ds-color-blue-600)}.bcm-stepper__header-item--active .bcm-stepper__header-item-title{font-weight:500}.bcm-stepper__header-line{width:100%;flex:1;height:2px;background-color:var(--bcm-new-ds-color-blue-600);margin-top:16px}.bcm-stepper__header-line--warning{background-color:var(--bcm-new-ds-color-amber-600)}.bcm-stepper__header-line--warning+.bcm-stepper__header-item::before{background-color:var(--bcm-new-ds-color-amber-600)}.bcm-stepper__header-item--warning::after{background-color:var(--bcm-new-ds-color-amber-600)}.bcm-stepper__header-item--warning .bcm-stepper__header-item-icon{background-color:var(--bcm-new-ds-color-amber-600)}.bcm-stepper__header-item--warning .bcm-stepper__header-item-icon::before{border-color:var(--bcm-new-ds-color-amber-600)}.bcm-stepper__header-item--warning:not(.bcm-stepper__header-item--disabled) .bcm-stepper__header-item-icon{color:white}.bcm-stepper__header-item--warning:not(.bcm-stepper__header-item--disabled):hover{cursor:pointer}.bcm-stepper__header-item--warning:not(.bcm-stepper__header-item--disabled):hover .bcm-stepper__header-item-icon{background-color:var(--bcm-new-ds-color-amber-700)}.bcm-stepper__header-line--success{background-color:var(--bcm-new-ds-color-emerald-600)}.bcm-stepper__header-line--success+.bcm-stepper__header-item::before{background-color:var(--bcm-new-ds-color-emerald-600)}.bcm-stepper__header-item--success::after{background-color:var(--bcm-new-ds-color-emerald-600)}.bcm-stepper__header-item--success .bcm-stepper__header-item-icon{background-color:var(--bcm-new-ds-color-emerald-600)}.bcm-stepper__header-item--success .bcm-stepper__header-item-icon::before{border-color:var(--bcm-new-ds-color-emerald-600)}.bcm-stepper__header-item--success:not(.bcm-stepper__header-item--disabled) .bcm-stepper__header-item-icon{color:white}.bcm-stepper__header-item--success:not(.bcm-stepper__header-item--disabled):hover{cursor:pointer}.bcm-stepper__header-item--success:not(.bcm-stepper__header-item--disabled):hover .bcm-stepper__header-item-icon{background-color:var(--bcm-new-ds-color-emerald-700)}.bcm-stepper__header-line--error{background-color:var(--bcm-new-ds-color-slate-300)}.bcm-stepper__header-line--error+.bcm-stepper__header-item::before{background-color:var(--bcm-new-ds-color-slate-300)}.bcm-stepper__header-item--error::after{background-color:var(--bcm-new-ds-color-slate-300)}.bcm-stepper__header-item--error .bcm-stepper__header-item-icon{background-color:var(--bcm-new-ds-color-red-600)}.bcm-stepper__header-item--error .bcm-stepper__header-item-icon::before{border-color:var(--bcm-new-ds-color-red-600)}.bcm-stepper__header-item--error:not(.bcm-stepper__header-item--disabled) .bcm-stepper__header-item-icon{color:white}.bcm-stepper__header-item--error:not(.bcm-stepper__header-item--disabled):hover{cursor:pointer}.bcm-stepper__header-item--error:not(.bcm-stepper__header-item--disabled):hover .bcm-stepper__header-item-icon{background-color:var(--bcm-new-ds-color-red-700)}.bcm-stepper__header-line--default{background-color:var(--bcm-new-ds-color-slate-300)}.bcm-stepper__header-line--default+.bcm-stepper__header-item::before{background-color:var(--bcm-new-ds-color-slate-300)}.bcm-stepper__header-item--default::after{background-color:var(--bcm-new-ds-color-slate-300)}.bcm-stepper__header-item--default .bcm-stepper__header-item-icon{background-color:var(--bcm-new-ds-color-blue-600)}.bcm-stepper__header-item--default .bcm-stepper__header-item-icon::before{border-color:var(--bcm-new-ds-color-blue-600)}.bcm-stepper__header-item--default:not(.bcm-stepper__header-item--disabled) .bcm-stepper__header-item-icon{color:white}.bcm-stepper__header-item--default:not(.bcm-stepper__header-item--disabled):hover{cursor:pointer}.bcm-stepper__header-item--default:not(.bcm-stepper__header-item--disabled):hover .bcm-stepper__header-item-icon{background-color:var(--bcm-new-ds-color-blue-700)}.bcm-stepper__header-line--loading{background-color:var(--bcm-new-ds-color-blue-600)}.bcm-stepper__header-line--loading+.bcm-stepper__header-item::before{background-color:var(--bcm-new-ds-color-blue-600)}.bcm-stepper__header-item--loading::after{background-color:var(--bcm-new-ds-color-blue-600)}.bcm-stepper__header-item--loading .bcm-stepper__header-item-icon{background-color:var(--bcm-new-ds-color-blue-600)}.bcm-stepper__header-item--loading .bcm-stepper__header-item-icon::before{border-color:var(--bcm-new-ds-color-blue-600)}.bcm-stepper__header-item--loading:not(.bcm-stepper__header-item--disabled) .bcm-stepper__header-item-icon{color:white}.bcm-stepper__header-item--loading:not(.bcm-stepper__header-item--disabled):hover{cursor:pointer}.bcm-stepper__header-item--loading:not(.bcm-stepper__header-item--disabled):hover .bcm-stepper__header-item-icon{background-color:var(--bcm-new-ds-color-blue-700)}.bcm-stepper__header-line--disabled{background-color:var(--bcm-new-ds-color-slate-300)}.bcm-stepper__header-line--disabled+.bcm-stepper__header-item::before{background-color:var(--bcm-new-ds-color-slate-300)}.bcm-stepper__header-item--disabled::after{background-color:var(--bcm-new-ds-color-slate-300)}.bcm-stepper__header-item--disabled .bcm-stepper__header-item-icon{background-color:var(--bcm-new-ds-color-slate-300)}.bcm-stepper__header-item--disabled .bcm-stepper__header-item-icon::before{border-color:var(--bcm-new-ds-color-slate-300)}.bcm-stepper__header-item--disabled:not(.bcm-stepper__header-item--disabled) .bcm-stepper__header-item-icon{color:white}.bcm-stepper__header-item--disabled:not(.bcm-stepper__header-item--disabled):hover{cursor:pointer}.bcm-stepper__header-item--disabled:not(.bcm-stepper__header-item--disabled):hover .bcm-stepper__header-item-icon{background-color:var(--bcm-new-ds-color-slate-400)}.bcm-stepper__header-item--disabled{cursor:not-allowed}.bcm-stepper__header-item--disabled.bcm-stepper__header-item--container{pointer-events:none}.bcm-stepper__step{display:none}.bcm-stepper__step-active{display:block}";
|
|
44579
|
+
const stepperCss = "@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}*{box-sizing:border-box}.bcm-stepper{display:block;font-family:\"Inter\", sans-serif;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.bcm-stepper__header{display:flex;flex-direction:row;justify-content:space-between;align-items:flex-start;padding:16px}.bcm-stepper__header *,.bcm-stepper__header ::after,.bcm-stepper__header ::before{box-sizing:content-box}.bcm-stepper__header-item{display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative;min-width:150px;text-align:center}.bcm-stepper__header-item--container{display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative}.bcm-stepper__header-item-icon{position:relative;width:32px;height:32px;min-width:32px;min-height:32px;display:flex;justify-content:center;align-items:center;border-radius:50%;background-color:var(--bcm-new-ds-color-blue-600);color:var(--bcm-ui-color-text-disabled);line-height:1;margin-bottom:16px;user-select:none}.bcm-stepper__header-item-icon::before{width:40px;height:40px;border-radius:50%;border:2px solid var(--bcm-new-ds-color-blue-600);border-color:transparent;position:absolute;z-index:0;user-select:none;top:-6px;left:-6px}.bcm-stepper__header-item-title{color:var(--bcm-ui-color-text-default);font-size:var(--bcm-ui-font-size-5);line-height:var(--bcm-ui-line-height-5);font-weight:600}.bcm-stepper__header-item-description{color:var(--bcm-ui-color-text-caption);font-size:var(--bcm-ui-font-size-4);line-height:var(--bcm-ui-line-height-4);font-weight:400}.bcm-stepper__header-item--disabled .bcm-stepper__header-item-title{color:var(--bcm-ui-color-text-disabled)}.bcm-stepper__header-item--disabled .bcm-stepper__header-item-description{color:var(--bcm-ui-color-text-disabled)}.bcm-stepper__header-item:not(.bcm-stepper__header-item--disabled):hover{cursor:pointer}.bcm-stepper__header-item:not(.bcm-stepper__header-item--disabled):hover .bcm-stepper__header-item-icon{background-color:var(--bcm-ui-color-background-primary-info-hover)}.bcm-stepper__header-item::before,.bcm-stepper__header-item::after{content:\"\";position:absolute;width:calc(50% - 24px);height:2px;background-color:var(--bcm-ui-color-background-primary-info-default);top:16px;box-sizing:content-box}.bcm-stepper__header-item::after{right:0;border-radius:3px 0 0 3px}.bcm-stepper__header-item::before{left:0;border-radius:0 3px 3px 0}.bcm-stepper__header-item:first-of-type::before{display:none}.bcm-stepper__header-item:last-of-type::after{display:none}.bcm-stepper__header-item--active .bcm-stepper__header-item-icon::before{content:\"\";border:2px solid var(--bcm-ui-color-background-primary-info-default)}.bcm-stepper__header-item--active .bcm-stepper__header-item-title{font-weight:500}.bcm-stepper__header-line{width:100%;flex:1;height:2px;background-color:var(--bcm-new-ds-color-blue-600);margin-top:16px}.bcm-stepper__header-line--warning{background-color:var(--bcm-new-ds-color-amber-600)}.bcm-stepper__header-line--warning+.bcm-stepper__header-item::before{background-color:var(--bcm-new-ds-color-amber-600)}.bcm-stepper__header-item--warning::after{background-color:var(--bcm-new-ds-color-amber-600)}.bcm-stepper__header-item--warning .bcm-stepper__header-item-icon{background-color:var(--bcm-new-ds-color-amber-600)}.bcm-stepper__header-item--warning .bcm-stepper__header-item-icon::before{border-color:var(--bcm-new-ds-color-amber-600)}.bcm-stepper__header-item--warning:not(.bcm-stepper__header-item--disabled) .bcm-stepper__header-item-icon{color:var(--bcm-ui-color-text-base)}.bcm-stepper__header-item--warning:not(.bcm-stepper__header-item--disabled):hover{cursor:pointer}.bcm-stepper__header-item--warning:not(.bcm-stepper__header-item--disabled):hover .bcm-stepper__header-item-icon{background-color:var(--bcm-new-ds-color-amber-700)}.bcm-stepper__header-line--success{background-color:var(--bcm-ui-color-background-success-default)}.bcm-stepper__header-line--success+.bcm-stepper__header-item::before{background-color:var(--bcm-ui-color-background-success-default)}.bcm-stepper__header-item--success::after{background-color:var(--bcm-ui-color-background-success-default)}.bcm-stepper__header-item--success .bcm-stepper__header-item-icon{background-color:var(--bcm-ui-color-background-success-default)}.bcm-stepper__header-item--success .bcm-stepper__header-item-icon::before{border-color:var(--bcm-ui-color-background-success-default)}.bcm-stepper__header-item--success:not(.bcm-stepper__header-item--disabled) .bcm-stepper__header-item-icon{color:var(--bcm-ui-color-text-base)}.bcm-stepper__header-item--success:not(.bcm-stepper__header-item--disabled):hover{cursor:pointer}.bcm-stepper__header-item--success:not(.bcm-stepper__header-item--disabled):hover .bcm-stepper__header-item-icon{background-color:var(--bcm-ui-color-background-success-hover)}.bcm-stepper__header-line--error{background-color:var(--bcm-new-ds-color-slate-300)}.bcm-stepper__header-line--error+.bcm-stepper__header-item::before{background-color:var(--bcm-new-ds-color-slate-300)}.bcm-stepper__header-item--error::after{background-color:var(--bcm-new-ds-color-slate-300)}.bcm-stepper__header-item--error .bcm-stepper__header-item-icon{background-color:var(--bcm-new-ds-color-red-600)}.bcm-stepper__header-item--error .bcm-stepper__header-item-icon::before{border-color:var(--bcm-new-ds-color-red-600)}.bcm-stepper__header-item--error:not(.bcm-stepper__header-item--disabled) .bcm-stepper__header-item-icon{color:var(--bcm-ui-color-text-base)}.bcm-stepper__header-item--error:not(.bcm-stepper__header-item--disabled):hover{cursor:pointer}.bcm-stepper__header-item--error:not(.bcm-stepper__header-item--disabled):hover .bcm-stepper__header-item-icon{background-color:var(--bcm-new-ds-color-red-700)}.bcm-stepper__header-line--default{background-color:var(--bcm-ui-color-background-primary-info-default)}.bcm-stepper__header-line--default+.bcm-stepper__header-item::before{background-color:var(--bcm-ui-color-background-primary-info-default)}.bcm-stepper__header-item--default::after{background-color:var(--bcm-ui-color-background-primary-info-default)}.bcm-stepper__header-item--default .bcm-stepper__header-item-icon{background-color:var(--bcm-ui-color-background-primary-info-default)}.bcm-stepper__header-item--default .bcm-stepper__header-item-icon::before{border-color:var(--bcm-ui-color-background-primary-info-default)}.bcm-stepper__header-item--default:not(.bcm-stepper__header-item--disabled) .bcm-stepper__header-item-icon{color:var(--bcm-ui-color-text-base)}.bcm-stepper__header-item--default:not(.bcm-stepper__header-item--disabled):hover{cursor:pointer}.bcm-stepper__header-item--default:not(.bcm-stepper__header-item--disabled):hover .bcm-stepper__header-item-icon{background-color:var(--bcm-ui-color-background-primary-info-hover)}.bcm-stepper__header-line--loading{background-color:var(--bcm-new-ds-color-blue-600)}.bcm-stepper__header-line--loading+.bcm-stepper__header-item::before{background-color:var(--bcm-new-ds-color-blue-600)}.bcm-stepper__header-item--loading::after{background-color:var(--bcm-new-ds-color-blue-600)}.bcm-stepper__header-item--loading .bcm-stepper__header-item-icon{background-color:var(--bcm-new-ds-color-blue-600)}.bcm-stepper__header-item--loading .bcm-stepper__header-item-icon::before{border-color:var(--bcm-new-ds-color-blue-600)}.bcm-stepper__header-item--loading:not(.bcm-stepper__header-item--disabled) .bcm-stepper__header-item-icon{color:var(--bcm-ui-color-text-base)}.bcm-stepper__header-item--loading:not(.bcm-stepper__header-item--disabled):hover{cursor:pointer}.bcm-stepper__header-item--loading:not(.bcm-stepper__header-item--disabled):hover .bcm-stepper__header-item-icon{background-color:var(--bcm-new-ds-color-blue-700)}.bcm-stepper__header-line--disabled{background-color:var(--bcm-ui-color-background-disabled-disable)}.bcm-stepper__header-line--disabled+.bcm-stepper__header-item::before{background-color:var(--bcm-ui-color-background-disabled-disable)}.bcm-stepper__header-item--disabled::after{background-color:var(--bcm-ui-color-background-disabled-disable)}.bcm-stepper__header-item--disabled .bcm-stepper__header-item-icon{background-color:var(--bcm-ui-color-background-disabled-disable)}.bcm-stepper__header-item--disabled .bcm-stepper__header-item-icon::before{border-color:var(--bcm-ui-color-background-disabled-disable)}.bcm-stepper__header-item--disabled:not(.bcm-stepper__header-item--disabled) .bcm-stepper__header-item-icon{color:var(--bcm-ui-color-text-base)}.bcm-stepper__header-item--disabled:not(.bcm-stepper__header-item--disabled):hover{cursor:pointer}.bcm-stepper__header-item--disabled:not(.bcm-stepper__header-item--disabled):hover .bcm-stepper__header-item-icon{background-color:var(--bcm-ui-color-background-disabled-disable)}.bcm-stepper__header-item--disabled{cursor:not-allowed}.bcm-stepper__header-item--disabled.bcm-stepper__header-item--container{pointer-events:none}.bcm-stepper__step{display:none}.bcm-stepper__step-active{display:block}";
|
|
43596
44580
|
|
|
43597
44581
|
const BcmStepper = class {
|
|
43598
44582
|
constructor(hostRef) {
|
|
@@ -43782,7 +44766,183 @@ const BcmStepper = class {
|
|
|
43782
44766
|
};
|
|
43783
44767
|
BcmStepper.style = stepperCss;
|
|
43784
44768
|
|
|
43785
|
-
const
|
|
44769
|
+
const switchStyle = ce({
|
|
44770
|
+
slots: {
|
|
44771
|
+
host: [
|
|
44772
|
+
"bcm-switch",
|
|
44773
|
+
"bcm-ui-element bcm-ui-inputs",
|
|
44774
|
+
"tw-inline-flex tw-flex-col tw-select-none tw-mb-2 tw-group",
|
|
44775
|
+
"tw-outline-none"
|
|
44776
|
+
],
|
|
44777
|
+
switchContainer: [
|
|
44778
|
+
"bcm-switch__container",
|
|
44779
|
+
"tw-flex tw-gap-1"
|
|
44780
|
+
],
|
|
44781
|
+
switchInput: [
|
|
44782
|
+
"switch tw-hidden",
|
|
44783
|
+
],
|
|
44784
|
+
switchLabel: [
|
|
44785
|
+
"bcm-switch__label tw-inline-flex tw-items-center tw-m-0",
|
|
44786
|
+
],
|
|
44787
|
+
switchToggle: [
|
|
44788
|
+
"bcm-switch__toggle",
|
|
44789
|
+
"tw-flex tw-items-center tw-justify-between tw-relative tw-rounded-full tw-cursor-pointer ",
|
|
44790
|
+
],
|
|
44791
|
+
handle: [
|
|
44792
|
+
"handle",
|
|
44793
|
+
"tw-p-1",
|
|
44794
|
+
"tw-absolute tw-rounded-full tw-bg-color-base tw-flex tw-items-center tw-justify-center",
|
|
44795
|
+
"tw-transition-all tw-duration-200 tw-ease-in-out",
|
|
44796
|
+
"tw-shadow-sm"
|
|
44797
|
+
],
|
|
44798
|
+
switchSpinner: [
|
|
44799
|
+
"switch-spinner fa-solid fa-spinner-scale fa-spin",
|
|
44800
|
+
],
|
|
44801
|
+
bcmLabel: "",
|
|
44802
|
+
activeTextStyle: "active-text tw-text-color tw-ml-1",
|
|
44803
|
+
inactiveTextStyle: "inactive-text tw-text-color tw-mr-1",
|
|
44804
|
+
activeIconStyle: "icon-active tw-text-color-base tw-ml-0.5",
|
|
44805
|
+
inactiveIconStyle: "icon-inactive tw-text-color-base tw-mr-0.5",
|
|
44806
|
+
},
|
|
44807
|
+
variants: {
|
|
44808
|
+
hidden: {
|
|
44809
|
+
true: {
|
|
44810
|
+
host: ["hidden"],
|
|
44811
|
+
},
|
|
44812
|
+
},
|
|
44813
|
+
checked: {
|
|
44814
|
+
true: {
|
|
44815
|
+
host: ["checked"],
|
|
44816
|
+
switchToggle: [
|
|
44817
|
+
"switch-checked tw-bg-color-primaryInfo",
|
|
44818
|
+
"group-hover:tw-bg-color-primaryInfo-hover",
|
|
44819
|
+
"group-[&:focus-visible]:tw-bg-color-primaryInfo-active",
|
|
44820
|
+
],
|
|
44821
|
+
activeIconStyle: "tw-opacity-100",
|
|
44822
|
+
inactiveIconStyle: "tw-opacity-0",
|
|
44823
|
+
},
|
|
44824
|
+
false: {
|
|
44825
|
+
host: ["unchecked"],
|
|
44826
|
+
switchToggle: [
|
|
44827
|
+
"switch-unchecked tw-bg-color-defaultInvert",
|
|
44828
|
+
"group-hover:tw-bg-color-defaultInvert-hover",
|
|
44829
|
+
"group-[&:focus-visible]:tw-bg-color-defaultInvert-active",
|
|
44830
|
+
],
|
|
44831
|
+
activeIconStyle: "tw-opacity-0",
|
|
44832
|
+
inactiveIconStyle: "tw-opacity-100",
|
|
44833
|
+
}
|
|
44834
|
+
},
|
|
44835
|
+
disabled: {
|
|
44836
|
+
true: {
|
|
44837
|
+
host: ["disabled"],
|
|
44838
|
+
switchToggle: ["disabled tw-cursor-not-allowed tw-opacity-40"],
|
|
44839
|
+
},
|
|
44840
|
+
},
|
|
44841
|
+
readonly: {
|
|
44842
|
+
true: {
|
|
44843
|
+
host: ["readonly"],
|
|
44844
|
+
switchToggle: ["readonly tw-cursor-not-allowed tw-opacity-80"],
|
|
44845
|
+
},
|
|
44846
|
+
},
|
|
44847
|
+
labelPosition: {
|
|
44848
|
+
left: {
|
|
44849
|
+
switchContainer: [
|
|
44850
|
+
"bcm-switch__container--left",
|
|
44851
|
+
"tw-items-center tw-flex-row"
|
|
44852
|
+
],
|
|
44853
|
+
bcmLabel: ["tw-mr-1"],
|
|
44854
|
+
},
|
|
44855
|
+
right: {
|
|
44856
|
+
switchContainer: [
|
|
44857
|
+
"bcm-switch__container--right",
|
|
44858
|
+
"tw-items-center tw-flex-row-reverse"
|
|
44859
|
+
],
|
|
44860
|
+
bcmLabel: ["tw-ml-1"],
|
|
44861
|
+
},
|
|
44862
|
+
top: {
|
|
44863
|
+
switchContainer: ["bcm-switch__container--top",
|
|
44864
|
+
"tw-flex-col tw-items-start tw-justify-start"
|
|
44865
|
+
],
|
|
44866
|
+
}
|
|
44867
|
+
},
|
|
44868
|
+
size: {
|
|
44869
|
+
small: {
|
|
44870
|
+
switchLabel: ["input-size-small"],
|
|
44871
|
+
switchToggle: ["bcm-switch__size-small",
|
|
44872
|
+
"tw-w-8 tw-min-w-8 tw-h-4 tw-p-1"
|
|
44873
|
+
],
|
|
44874
|
+
handle: ["tw-w-3 tw-h-3 tw-left-0.5",
|
|
44875
|
+
"group-[&:active]:tw-w-4",
|
|
44876
|
+
"group-[&:active.checked]:tw-left-3.5"
|
|
44877
|
+
],
|
|
44878
|
+
switchSpinner: ["tw-text-size-2"],
|
|
44879
|
+
activeTextStyle: ["tw-text-size-3"],
|
|
44880
|
+
inactiveTextStyle: ["tw-text-size-3"],
|
|
44881
|
+
},
|
|
44882
|
+
medium: {
|
|
44883
|
+
switchLabel: ["input-size-medium"],
|
|
44884
|
+
switchToggle: ["bcm-switch__size-medium",
|
|
44885
|
+
"tw-w-9 tw-min-w-9 tw-h-4.5 tw-p-1"
|
|
44886
|
+
],
|
|
44887
|
+
handle: [
|
|
44888
|
+
"tw-w-3.5 tw-h-3.5 tw-left-0.5",
|
|
44889
|
+
"group-[&:active]:tw-w-4.5",
|
|
44890
|
+
"group-[&:active.checked]:tw-left-4"
|
|
44891
|
+
],
|
|
44892
|
+
switchSpinner: ["tw-text-size-3"],
|
|
44893
|
+
activeTextStyle: ["tw-text-size-4"],
|
|
44894
|
+
inactiveTextStyle: ["tw-text-size-4"],
|
|
44895
|
+
},
|
|
44896
|
+
large: {
|
|
44897
|
+
switchLabel: ["input-size-large"],
|
|
44898
|
+
switchToggle: ["bcm-switch__size-large",
|
|
44899
|
+
"tw-w-10 tw-min-w-10 tw-h-5 tw-p-1"
|
|
44900
|
+
],
|
|
44901
|
+
handle: ["tw-w-4 tw-h-4 tw-left-0.5",
|
|
44902
|
+
"group-[&:active]:tw-w-5",
|
|
44903
|
+
"group-[&:active.checked]:tw-left-4.5"
|
|
44904
|
+
],
|
|
44905
|
+
switchSpinner: ["tw-text-size-4"],
|
|
44906
|
+
activeTextStyle: ["tw-text-size-5"],
|
|
44907
|
+
inactiveTextStyle: ["tw-text-size-5"],
|
|
44908
|
+
},
|
|
44909
|
+
},
|
|
44910
|
+
},
|
|
44911
|
+
compoundVariants: [
|
|
44912
|
+
// 32 - 16 + 2 = 18 s
|
|
44913
|
+
// 36 - 18 + 2 = 20 m
|
|
44914
|
+
// 40 - 20 + 2 = 22 l
|
|
44915
|
+
{
|
|
44916
|
+
checked: true,
|
|
44917
|
+
size: "small",
|
|
44918
|
+
class: {
|
|
44919
|
+
handle: ["tw-left-4.5"],
|
|
44920
|
+
},
|
|
44921
|
+
},
|
|
44922
|
+
{
|
|
44923
|
+
checked: true,
|
|
44924
|
+
size: "medium",
|
|
44925
|
+
class: {
|
|
44926
|
+
handle: ["tw-left-5"],
|
|
44927
|
+
},
|
|
44928
|
+
},
|
|
44929
|
+
{
|
|
44930
|
+
checked: true,
|
|
44931
|
+
size: "large",
|
|
44932
|
+
class: {
|
|
44933
|
+
handle: ["tw-left-5.5"],
|
|
44934
|
+
},
|
|
44935
|
+
},
|
|
44936
|
+
],
|
|
44937
|
+
defaultVariants: {
|
|
44938
|
+
hidden: false,
|
|
44939
|
+
checked: false,
|
|
44940
|
+
disabled: false,
|
|
44941
|
+
readonly: false,
|
|
44942
|
+
labelPosition: "left",
|
|
44943
|
+
size: "medium",
|
|
44944
|
+
},
|
|
44945
|
+
});
|
|
43786
44946
|
|
|
43787
44947
|
var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
43788
44948
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
@@ -43888,30 +45048,26 @@ const BcmSwitch = class {
|
|
|
43888
45048
|
}
|
|
43889
45049
|
}
|
|
43890
45050
|
render() {
|
|
43891
|
-
const { hidden, _internal_id, checked, size, activeIcon, inactiveIcon, activeText, inactiveText, pending, disabled, readonly, label, required, noCaption, captionType, captionError, caption } = this;
|
|
43892
|
-
const
|
|
43893
|
-
'switch-checked': checked,
|
|
43894
|
-
'disabled': disabled,
|
|
43895
|
-
'readonly': readonly
|
|
43896
|
-
});
|
|
43897
|
-
const bcmSwitchClasses = classnames('bcm-switch', 'bcm-switch__size-' + size, {
|
|
45051
|
+
const { hidden, _internal_id, checked, size, activeIcon, inactiveIcon, activeText, inactiveText, pending, disabled, readonly, label, required, noCaption, captionType, captionError, caption, labelPosition } = this;
|
|
45052
|
+
const { host, switchContainer, switchInput, switchLabel, switchToggle, handle, switchSpinner, bcmLabel, activeTextStyle, inactiveTextStyle, activeIconStyle, inactiveIconStyle } = switchStyle({
|
|
43898
45053
|
hidden,
|
|
43899
45054
|
checked,
|
|
43900
45055
|
disabled,
|
|
43901
|
-
readonly
|
|
45056
|
+
readonly,
|
|
45057
|
+
labelPosition,
|
|
45058
|
+
size
|
|
43902
45059
|
});
|
|
43903
|
-
const
|
|
43904
|
-
|
|
43905
|
-
const
|
|
43906
|
-
|
|
43907
|
-
return (h$2(Host, { tabindex: "0", onFocus: () => this.focus.emit(this.el), onBlur: () => this.blur.emit(this.el), class:
|
|
45060
|
+
const switchText = (text) => (size != Bcm$1.Size.small && (activeText || inactiveText)) &&
|
|
45061
|
+
(h$2("span", { class: text == "active" ? activeTextStyle() : inactiveTextStyle() }, text == 'active' ? activeText : inactiveText));
|
|
45062
|
+
const switchIcon = (text) => (size != Bcm$1.Size.small && (activeIcon || inactiveIcon)) &&
|
|
45063
|
+
h$2("i", { class: text == 'active' ? `${activeIcon} ${activeIconStyle()}` : `${inactiveIcon} ${inactiveIconStyle()}` });
|
|
45064
|
+
return (h$2(Host, { tabindex: "0", onFocus: () => this.focus.emit(this.el), onBlur: () => this.blur.emit(this.el), class: host() }, h$2("span", { hidden: true }, h$2("slot", null)), h$2("div", { class: switchContainer() }, label && h$2("bcm-label", { class: bcmLabel(), htmlFor: _internal_id, tooltip: this.tooltip, type: captionType, value: label, required: required, "no-margin": labelPosition !== "top" }), h$2("input", { id: _internal_id, onChange: () => this.handleChange(), ref: el => (this.inputElement = el), checked: checked, type: "checkbox", class: switchInput(), disabled: disabled || readonly }), h$2("label", { htmlFor: _internal_id, class: switchLabel() }, switchText('inactive'), h$2("div", { class: switchToggle() }, switchIcon('active'), h$2("span", { class: handle() }, pending && h$2("i", { class: switchSpinner() })), switchIcon('inactive')), switchText('active'))), h$2(CaptionTemplate, { noCaption: noCaption, captionType: captionType, captionError: captionError, caption: caption })));
|
|
43908
45065
|
}
|
|
43909
45066
|
get el() { return getElement(this); }
|
|
43910
45067
|
};
|
|
43911
45068
|
__decorate$1([
|
|
43912
45069
|
IsLoad()
|
|
43913
45070
|
], BcmSwitch.prototype, "el", void 0);
|
|
43914
|
-
BcmSwitch.style = switchCss;
|
|
43915
45071
|
|
|
43916
45072
|
const tabCss = "@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}*{box-sizing:border-box}:host{display:block}:host(.hidden){display:none}slot[name=icon-suffix]::slotted(bcm-icon){margin-left:10px}slot[name=icon-prefix]::slotted(bcm-icon){margin-right:10px}.tab{font-family:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;position:relative;display:flex;flex-direction:row;align-items:center;justify-content:center;flex-wrap:nowrap;padding:var(--bcm-tab-vertical-space) 14px var(--bcm-tab-vertical-space) 14px;color:#374151;font-size:14px;line-height:20px;font-weight:500;cursor:pointer;user-select:none}.tab:hover{color:#1f2937}.tab:active{color:#1f2937}.tab:focus-visible{color:#1f2937}.tab.active{color:#1d4ed8}.tab.active::before{content:\"\";bottom:-2px;left:0;width:100%;height:2px;background-color:#1d4ed8;position:absolute;z-index:1}.tab.active:hover{color:#1e40af}.tab.active:active{color:#1e40af}.tab.active:focus-visible{color:#1e40af}.tab:active,.tab:focus{color:var(--bcm-color-prime-blue-7)}.tab[disabled],.tab.disabled{color:var(--bcm-color-grey-6);cursor:not-allowed}.tab.closable:not(.pane){padding-left:0;padding-right:0}.tab.closable .close{margin-left:34px}.tab.pane{border:1px solid transparent;border-bottom:none;border-color:var(--bcm-color-grey-5);background-color:var(--bcm-color-grey-3);border-radius:2px 2px 0 0}.tab.pane.active{background-color:#ffffff}.badge{padding-left:8px;position:relative}.badge.blink:after{content:\"\";position:absolute;top:8px;left:9px;background:black;border-radius:50%;height:7px;width:7px;box-shadow:0 0 0 0 rgba(0, 0, 0, 0);transform:scale(1)}.badge.success:after{animation:pulsesuccess 2s infinite;background-color:#52C41A}.badge.error:after{animation:pulseerror 2s infinite;background-color:#F5222D}.badge.default:after{animation:pulsedefault 2s infinite;background-color:#D9D9D9}.badge.processing:after{animation:pulseprocessing 2s infinite;background-color:#4293CF}.badge.warning:after{animation:pulsewarning 2s infinite;background-color:#FA8C16}@keyframes pulsesuccess{0%{transform:scale(0.95);box-shadow:0 0 0 0 rgba(82, 196, 26, 0.7)}70%{transform:scale(1);box-shadow:0 0 0 10px rgba(0, 0, 0, 0)}100%{transform:scale(0.95);box-shadow:0 0 0 0 rgba(0, 0, 0, 0)}}@keyframes pulseerror{0%{transform:scale(0.95);box-shadow:0 0 0 0 rgba(245, 34, 45, 0.7)}70%{transform:scale(1);box-shadow:0 0 0 10px rgba(0, 0, 0, 0)}100%{transform:scale(0.95);box-shadow:0 0 0 0 rgba(0, 0, 0, 0)}}@keyframes pulsedefault{0%{transform:scale(0.95);box-shadow:0 0 0 0 rgba(217, 217, 217, 0.7)}70%{transform:scale(1);box-shadow:0 0 0 10px rgba(0, 0, 0, 0)}100%{transform:scale(0.95);box-shadow:0 0 0 0 rgba(0, 0, 0, 0)}}@keyframes pulseprocessing{0%{transform:scale(0.95);box-shadow:0 0 0 0 rgba(66, 147, 207, 0.7)}70%{transform:scale(1);box-shadow:0 0 0 10px rgba(0, 0, 0, 0)}100%{transform:scale(0.95);box-shadow:0 0 0 0 rgba(0, 0, 0, 0)}}@keyframes pulsewarning{0%{transform:scale(0.95);box-shadow:0 0 0 0 rgba(250, 140, 22, 0.7)}70%{transform:scale(1);box-shadow:0 0 0 10px rgba(0, 0, 0, 0)}100%{transform:scale(0.95);box-shadow:0 0 0 0 rgba(0, 0, 0, 0)}}";
|
|
43917
45073
|
|
|
@@ -43971,13 +45127,71 @@ const BcmTab = class {
|
|
|
43971
45127
|
};
|
|
43972
45128
|
BcmTab.style = tabCss;
|
|
43973
45129
|
|
|
45130
|
+
const tabGroupStyle = ce({
|
|
45131
|
+
slots: {
|
|
45132
|
+
tabGroup: [
|
|
45133
|
+
"bcm-tab-group",
|
|
45134
|
+
"bcm-ui-element bcm-ui-content-display",
|
|
45135
|
+
"tw-flex tw-w-full tw-flex-col tw-items-center tw-font-sans"
|
|
45136
|
+
],
|
|
45137
|
+
tabHeader: [
|
|
45138
|
+
"tw-relative tw-flex tw-w-full tw-flex-row tw-items-end tw-justify-between"
|
|
45139
|
+
],
|
|
45140
|
+
inkBar: [
|
|
45141
|
+
"tw-bg-default-700 tw-absolute tw-bottom-0 tw-left-0 tw-mt-[-2px] tw-h-[2px] tw-rounded-sm tw-transition-transform"
|
|
45142
|
+
],
|
|
45143
|
+
tabHeaderItem: [
|
|
45144
|
+
"tw-flex tw-flex-1 tw-items-center tw-w-full tw-justify-center tw-border-4 tw-focus:outline-none tw-font-medium tw-py-1 tw-px-3"
|
|
45145
|
+
],
|
|
45146
|
+
tabItem: [
|
|
45147
|
+
"tw-w-full"
|
|
45148
|
+
]
|
|
45149
|
+
},
|
|
45150
|
+
variants: {
|
|
45151
|
+
size: {
|
|
45152
|
+
small: {
|
|
45153
|
+
tabHeaderItem: "tw-text-3 tw-gap-2",
|
|
45154
|
+
},
|
|
45155
|
+
medium: {
|
|
45156
|
+
tabHeaderItem: "tw-text-base tw-gap-2.5",
|
|
45157
|
+
},
|
|
45158
|
+
large: {
|
|
45159
|
+
tabHeaderItem: "tw-text-4 tw-gap-3",
|
|
45160
|
+
},
|
|
45161
|
+
},
|
|
45162
|
+
disabled: {
|
|
45163
|
+
true: {
|
|
45164
|
+
tabHeaderItem: "tw-cursor-not-allowed tw-text-color-disabled tw-opacity-50",
|
|
45165
|
+
tabItem: "tw-opacity-50"
|
|
45166
|
+
},
|
|
45167
|
+
false: {
|
|
45168
|
+
tabHeaderItem: "tw-cursor-pointer"
|
|
45169
|
+
},
|
|
45170
|
+
},
|
|
45171
|
+
active: {
|
|
45172
|
+
true: {
|
|
45173
|
+
tabHeaderItem: "tw-text-color-primary",
|
|
45174
|
+
tabItem: "tw-block"
|
|
45175
|
+
},
|
|
45176
|
+
false: {
|
|
45177
|
+
tabHeaderItem: "tw-text-color",
|
|
45178
|
+
tabItem: "tw-hidden"
|
|
45179
|
+
}
|
|
45180
|
+
}
|
|
45181
|
+
},
|
|
45182
|
+
defaultVariants: {
|
|
45183
|
+
size: "medium",
|
|
45184
|
+
disabled: false,
|
|
45185
|
+
active: false
|
|
45186
|
+
},
|
|
45187
|
+
});
|
|
45188
|
+
|
|
43974
45189
|
const BcmTabGroup = class {
|
|
43975
45190
|
constructor(hostRef) {
|
|
43976
45191
|
registerInstance(this, hostRef);
|
|
43977
45192
|
this.tabChange = createEvent(this, "bcm-tab-change", 7);
|
|
43978
45193
|
this._id = Generate.UID();
|
|
43979
45194
|
this.active = "1";
|
|
43980
|
-
this.color = "blue";
|
|
43981
45195
|
this.size = Bcm.Size.medium;
|
|
43982
45196
|
}
|
|
43983
45197
|
get tabItems() {
|
|
@@ -43993,7 +45207,6 @@ const BcmTabGroup = class {
|
|
|
43993
45207
|
const itemIndex = index + 1;
|
|
43994
45208
|
tab.setAttribute("index", `${itemIndex}`);
|
|
43995
45209
|
tab.setAttribute("size", this.size);
|
|
43996
|
-
tab.setAttribute("color", this.color);
|
|
43997
45210
|
tab.removeAttribute("active");
|
|
43998
45211
|
tab.removeAttribute("disabled");
|
|
43999
45212
|
if (itemActive) {
|
|
@@ -44025,7 +45238,6 @@ const BcmTabGroup = class {
|
|
|
44025
45238
|
this.tabItems.forEach(tab => {
|
|
44026
45239
|
tab.removeAttribute("active");
|
|
44027
45240
|
tab.setAttribute("size", this.size);
|
|
44028
|
-
tab.setAttribute("color", this.color);
|
|
44029
45241
|
if (tab.getAttribute("index") == this.active) {
|
|
44030
45242
|
tab.setAttribute("active", "");
|
|
44031
45243
|
}
|
|
@@ -44035,7 +45247,6 @@ const BcmTabGroup = class {
|
|
|
44035
45247
|
this.tabItemHeaders.forEach(tabHeader => {
|
|
44036
45248
|
tabHeader.removeAttribute("active");
|
|
44037
45249
|
tabHeader.setAttribute("size", this.size);
|
|
44038
|
-
tabHeader.setAttribute("color", this.color);
|
|
44039
45250
|
if (tabHeader.getAttribute("index") == this.active) {
|
|
44040
45251
|
tabHeader.setAttribute("active", "");
|
|
44041
45252
|
// tabHeader.scrollIntoView({
|
|
@@ -44144,12 +45355,8 @@ const BcmTabGroup = class {
|
|
|
44144
45355
|
});
|
|
44145
45356
|
}
|
|
44146
45357
|
render() {
|
|
44147
|
-
const {
|
|
44148
|
-
|
|
44149
|
-
color: color,
|
|
44150
|
-
tones: [700]
|
|
44151
|
-
});
|
|
44152
|
-
return (h$2(Host, { role: "tablist", "aria-label": "Tab Group", "aria-busy": "true", class: "tw-flex tw-w-full tw-flex-col tw-items-center tw-font-sans" }, h$2("div", { class: `tw-relative tw-flex tw-w-full tw-flex-row tw-items-end tw-justify-between`, id: "tab-header", style: dc }, h$2("div", { id: "ink-bar", class: `tw-bg-default-700 tw-absolute tw-bottom-0 tw-left-0 tw-mt-[-2px] tw-h-[2px] tw-rounded-sm tw-transition-transform` })), h$2("slot", null)));
|
|
45358
|
+
const { tabGroup, tabHeader, inkBar } = tabGroupStyle();
|
|
45359
|
+
return (h$2(Host, { role: "tablist", "aria-label": "Tab Group", "aria-busy": "true", class: tabGroup() }, h$2("div", { class: tabHeader(), id: "tab-header" }, h$2("div", { id: "ink-bar", class: inkBar() })), h$2("slot", null)));
|
|
44153
45360
|
}
|
|
44154
45361
|
get el() { return getElement(this); }
|
|
44155
45362
|
static get watchers() { return {
|
|
@@ -44214,12 +45421,12 @@ const BcmTabItem = class {
|
|
|
44214
45421
|
observer.observe(this.el, { childList: true, subtree: true });
|
|
44215
45422
|
}
|
|
44216
45423
|
render() {
|
|
44217
|
-
|
|
44218
|
-
|
|
44219
|
-
|
|
44220
|
-
|
|
44221
|
-
|
|
44222
|
-
|
|
45424
|
+
const { disabled, active } = this;
|
|
45425
|
+
const { tabItem } = tabGroupStyle({
|
|
45426
|
+
disabled,
|
|
45427
|
+
active,
|
|
45428
|
+
});
|
|
45429
|
+
return (h$2(Host, { id: this._id, role: "tabpanel", "aria-labelledby": `tab-${this._id}`, "aria-hidden": `${!this.active}`, class: tabItem() }, h$2("slot", null)));
|
|
44223
45430
|
}
|
|
44224
45431
|
get el() { return getElement(this); }
|
|
44225
45432
|
};
|
|
@@ -44231,7 +45438,6 @@ const BcmTabItemHeader = class {
|
|
|
44231
45438
|
this.active = false;
|
|
44232
45439
|
this.disabled = false;
|
|
44233
45440
|
this.index = undefined;
|
|
44234
|
-
this.color = "blue";
|
|
44235
45441
|
this.size = Bcm.Size.medium;
|
|
44236
45442
|
}
|
|
44237
45443
|
handleClick() {
|
|
@@ -44241,19 +45447,13 @@ const BcmTabItemHeader = class {
|
|
|
44241
45447
|
}
|
|
44242
45448
|
}
|
|
44243
45449
|
render() {
|
|
44244
|
-
const {
|
|
44245
|
-
const
|
|
44246
|
-
|
|
44247
|
-
|
|
44248
|
-
|
|
45450
|
+
const { size, active, disabled } = this;
|
|
45451
|
+
const { tabHeaderItem } = tabGroupStyle({
|
|
45452
|
+
size,
|
|
45453
|
+
disabled,
|
|
45454
|
+
active,
|
|
44249
45455
|
});
|
|
44250
|
-
return (h$2(Host, { onClick: () => this.handleClick(), class:
|
|
44251
|
-
"tw-text-2 tw-py-1 tw-gap-2": size === Bcm.Size.small,
|
|
44252
|
-
"tw-text-3 tw-py-2 tw-gap-3": size === Bcm.Size.medium,
|
|
44253
|
-
"tw-text-4 tw-py-3 tw-gap-4": size === Bcm.Size.large,
|
|
44254
|
-
}, disabled ? disabledClass : "tw-cursor-pointer", active
|
|
44255
|
-
? `tw-text-default-700 enabled:hover:tw-text-default-800 enabled:active:tw-text-default-900 enabled:focus-visible:tw-text-default-900`
|
|
44256
|
-
: "tw-text-slate-700 enabled:hover:tw-text-slate-800 enabled:focus-visible:tw-text-slate-900 enabled:active:tw-text-slate-900"), style: dc }));
|
|
45456
|
+
return (h$2(Host, { onClick: () => this.handleClick(), class: tabHeaderItem() }));
|
|
44257
45457
|
}
|
|
44258
45458
|
get el() { return getElement(this); }
|
|
44259
45459
|
};
|
|
@@ -44642,17 +45842,123 @@ const BcmText = class {
|
|
|
44642
45842
|
};
|
|
44643
45843
|
BcmText.style = textCss;
|
|
44644
45844
|
|
|
44645
|
-
|
|
44646
|
-
|
|
44647
|
-
|
|
44648
|
-
|
|
44649
|
-
|
|
44650
|
-
|
|
44651
|
-
|
|
44652
|
-
|
|
44653
|
-
|
|
44654
|
-
|
|
44655
|
-
|
|
45845
|
+
const textareaStyle = ce({
|
|
45846
|
+
slots: {
|
|
45847
|
+
host: "bcm-textarea bcm-ui-element tw-inline-flex tw-flex-col tw-w-full tw-max-w-64 tw-mb-2 ",
|
|
45848
|
+
base: "",
|
|
45849
|
+
inputContainer: ["bcm-textarea__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-pl-3", "tw-relative"],
|
|
45850
|
+
input: [
|
|
45851
|
+
"bcm-textarea-element tw-w-full tw-h-full tw-flex-1 tw-outline-none tw-bg-transparent tw-border-0 tw-appearance-none",
|
|
45852
|
+
"tw-text-color placeholder:tw-text-color-placeholder placeholder:tw-font-normal",
|
|
45853
|
+
"tw-font-sans tw-antialiased tw-font-medium",
|
|
45854
|
+
"[appearance:textfield][&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none",
|
|
45855
|
+
],
|
|
45856
|
+
slotClass: "tw-flex tw-items-center tw-justify-between tw-gap-2 empty:tw-hidden tw-text-color-placeholder",
|
|
45857
|
+
clearButton: [
|
|
45858
|
+
"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",
|
|
45859
|
+
"hover:tw-text-color",
|
|
45860
|
+
"tw-absolute tw-right-1 tw-top-0.5 "
|
|
45861
|
+
],
|
|
45862
|
+
},
|
|
45863
|
+
variants: {
|
|
45864
|
+
size: {
|
|
45865
|
+
small: {
|
|
45866
|
+
host: "bcm-textarea__container--small",
|
|
45867
|
+
inputContainer: "input2-size-small tw-min-h-6",
|
|
45868
|
+
input: "tw-text-size-4 tw-min-h-6",
|
|
45869
|
+
},
|
|
45870
|
+
medium: {
|
|
45871
|
+
host: "bcm-textarea__container--medium",
|
|
45872
|
+
inputContainer: "input2-size-medium tw-min-h-8",
|
|
45873
|
+
input: "tw-text-size-5 tw-min-h-8",
|
|
45874
|
+
},
|
|
45875
|
+
large: {
|
|
45876
|
+
host: "bcm-textarea__container--large",
|
|
45877
|
+
inputContainer: "input2-size-large tw-min-h-10",
|
|
45878
|
+
input: "tw-text-size-6 tw-min-h-10",
|
|
45879
|
+
},
|
|
45880
|
+
},
|
|
45881
|
+
fullWidth: {
|
|
45882
|
+
true: {
|
|
45883
|
+
host: "full-width tw-max-w-full",
|
|
45884
|
+
},
|
|
45885
|
+
},
|
|
45886
|
+
noMargin: {
|
|
45887
|
+
true: {
|
|
45888
|
+
host: "no-margin tw-mb-0",
|
|
45889
|
+
},
|
|
45890
|
+
},
|
|
45891
|
+
hidden: {
|
|
45892
|
+
true: {
|
|
45893
|
+
host: "hidden tw-hidden",
|
|
45894
|
+
},
|
|
45895
|
+
},
|
|
45896
|
+
focused: {
|
|
45897
|
+
true: {
|
|
45898
|
+
host: "focused",
|
|
45899
|
+
},
|
|
45900
|
+
},
|
|
45901
|
+
clearable: {
|
|
45902
|
+
true: {
|
|
45903
|
+
host: "clearable",
|
|
45904
|
+
},
|
|
45905
|
+
},
|
|
45906
|
+
disabled: {
|
|
45907
|
+
true: {
|
|
45908
|
+
host: "disabled",
|
|
45909
|
+
input: "",
|
|
45910
|
+
inputContainer: "tw-bg-color-disabled tw-border-color-disabled tw-text-color-disabled tw-cursor-not-allowed",
|
|
45911
|
+
},
|
|
45912
|
+
false: {
|
|
45913
|
+
inputContainer: ["has-[:not([disabled]):focus-visible]:tw-ring", "has-[:not([disabled]):hover]:tw-border-color-primaryInfo"],
|
|
45914
|
+
},
|
|
45915
|
+
},
|
|
45916
|
+
readonly: {
|
|
45917
|
+
true: {
|
|
45918
|
+
host: "readonly",
|
|
45919
|
+
},
|
|
45920
|
+
},
|
|
45921
|
+
invalid: {
|
|
45922
|
+
true: {
|
|
45923
|
+
host: "invalid",
|
|
45924
|
+
inputContainer: "tw-border-color-error has-[:not([disabled]):focus-visible]:tw-ring-color-error has-[:not([disabled]):hover]:!tw-border-color-error",
|
|
45925
|
+
},
|
|
45926
|
+
},
|
|
45927
|
+
error: {
|
|
45928
|
+
true: {
|
|
45929
|
+
host: "error",
|
|
45930
|
+
inputContainer: "tw-border-color-error",
|
|
45931
|
+
},
|
|
45932
|
+
},
|
|
45933
|
+
resize: {
|
|
45934
|
+
vertical: {
|
|
45935
|
+
input: "tw-resize-y",
|
|
45936
|
+
},
|
|
45937
|
+
horizontal: {
|
|
45938
|
+
input: "tw-resize-x",
|
|
45939
|
+
},
|
|
45940
|
+
both: {
|
|
45941
|
+
input: "tw-resize",
|
|
45942
|
+
},
|
|
45943
|
+
none: {
|
|
45944
|
+
input: "tw-resize-none",
|
|
45945
|
+
},
|
|
45946
|
+
},
|
|
45947
|
+
},
|
|
45948
|
+
defaultVariants: {
|
|
45949
|
+
size: "medium",
|
|
45950
|
+
noMargin: false,
|
|
45951
|
+
fullWidth: false,
|
|
45952
|
+
hidden: false,
|
|
45953
|
+
focused: false,
|
|
45954
|
+
clearable: false,
|
|
45955
|
+
disabled: false,
|
|
45956
|
+
readonly: false,
|
|
45957
|
+
invalid: false,
|
|
45958
|
+
error: false,
|
|
45959
|
+
resize: "vertical",
|
|
45960
|
+
},
|
|
45961
|
+
});
|
|
44656
45962
|
|
|
44657
45963
|
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
44658
45964
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
@@ -44678,6 +45984,7 @@ const BcmTextarea = class {
|
|
|
44678
45984
|
this.value = undefined;
|
|
44679
45985
|
this.placeholder = undefined;
|
|
44680
45986
|
this.label = undefined;
|
|
45987
|
+
this.tooltip = undefined;
|
|
44681
45988
|
this.name = undefined;
|
|
44682
45989
|
this.required = false;
|
|
44683
45990
|
this.caption = undefined;
|
|
@@ -44689,7 +45996,7 @@ const BcmTextarea = class {
|
|
|
44689
45996
|
this.disabled = undefined;
|
|
44690
45997
|
this.readonly = false;
|
|
44691
45998
|
this.clearable = undefined;
|
|
44692
|
-
this.resize =
|
|
45999
|
+
this.resize = "vertical";
|
|
44693
46000
|
this.fullWidth = false;
|
|
44694
46001
|
this.maxLength = undefined;
|
|
44695
46002
|
this.focused = false;
|
|
@@ -44766,12 +46073,22 @@ const BcmTextarea = class {
|
|
|
44766
46073
|
e.stopPropagation();
|
|
44767
46074
|
}
|
|
44768
46075
|
render() {
|
|
44769
|
-
const { _id, hidden, readonly, fullWidth, size, rows, disabled, clearable, label, focused, noCaption, caption, captionError, captionType, value, resize, maxLength, placeholder, required } = this;
|
|
44770
|
-
const
|
|
46076
|
+
const { _id, hidden, readonly, fullWidth, size, rows, disabled, clearable, label, focused, noCaption, caption, captionError, captionType, value, resize, maxLength, placeholder, required, tooltip } = this;
|
|
46077
|
+
const isActiveClearable = (value === null || value === void 0 ? void 0 : value.length) > 0 && clearable;
|
|
46078
|
+
const { host, inputContainer, input, slotClass, clearButton } = textareaStyle({
|
|
46079
|
+
size,
|
|
46080
|
+
fullWidth,
|
|
46081
|
+
// şüpheli kısımlar
|
|
46082
|
+
focused: focused,
|
|
46083
|
+
clearable: isActiveClearable,
|
|
46084
|
+
disabled,
|
|
46085
|
+
readonly,
|
|
46086
|
+
// 'empty': value?.length < 1,
|
|
46087
|
+
error: captionType === "error",
|
|
44771
46088
|
hidden,
|
|
44772
|
-
|
|
46089
|
+
resize,
|
|
44773
46090
|
});
|
|
44774
|
-
return (h$2(Host, { class:
|
|
46091
|
+
return (h$2(Host, { class: host(), onClick: () => this.onBcmFocus() }, label && h$2("bcm-label", { tooltip: tooltip, type: captionType, value: label, required: required, htmlFor: _id }), h$2("div", { class: inputContainer(), id: _id + "-container" }, h$2("div", { class: slotClass() }, h$2("slot", { name: "prefix" })), h$2("textarea", { id: _id + "-input", value: value, rows: rows, disabled: disabled, maxLength: maxLength, placeholder: placeholder, class: input(), readonly: readonly, onInput: _event => this.handleInput(), onChange: _event => this.handleChange(), onFocus: _event => this.handleFocus(), onBlur: _event => this.handleBlur(), ref: (el) => this.textarea = el }), isActiveClearable && (h$2("button", { type: "button", class: clearButton(), onClick: event => this.handleClear(event) }, h$2("i", { class: "far fa-times" }))), h$2("div", { class: slotClass() }, h$2("slot", { name: "suffix" }))), h$2(CaptionTemplate, { noCaption: noCaption, captionType: captionType, captionError: captionError, caption: caption, value: value, maxLength: maxLength })));
|
|
44775
46092
|
}
|
|
44776
46093
|
get el() { return getElement(this); }
|
|
44777
46094
|
static get watchers() { return {
|
|
@@ -44781,7 +46098,6 @@ const BcmTextarea = class {
|
|
|
44781
46098
|
__decorate([
|
|
44782
46099
|
IsLoad()
|
|
44783
46100
|
], BcmTextarea.prototype, "el", void 0);
|
|
44784
|
-
BcmTextarea.style = textareaCss;
|
|
44785
46101
|
|
|
44786
46102
|
const BcmTooltip = class {
|
|
44787
46103
|
constructor(hostRef) {
|
|
@@ -44793,7 +46109,7 @@ const BcmTooltip = class {
|
|
|
44793
46109
|
this.placement = Bcm.Placement.top;
|
|
44794
46110
|
this.trigger = Bcm.TriggerType.click;
|
|
44795
46111
|
this.open = false;
|
|
44796
|
-
this.color = "
|
|
46112
|
+
this.color = "gray";
|
|
44797
46113
|
this.size = Bcm.Size.medium;
|
|
44798
46114
|
this.openDelay = 0;
|
|
44799
46115
|
this.closeDelay = 0;
|
|
@@ -44849,7 +46165,8 @@ const BcmTooltip = class {
|
|
|
44849
46165
|
this.tooltip.toggle();
|
|
44850
46166
|
}
|
|
44851
46167
|
render() {
|
|
44852
|
-
|
|
46168
|
+
const { host } = tooltipStyle();
|
|
46169
|
+
return (h$2(Host, { class: host(), role: "tooltip" }, h$2("slot", null)));
|
|
44853
46170
|
}
|
|
44854
46171
|
get el() { return getElement(this); }
|
|
44855
46172
|
};
|
|
@@ -46016,4 +47333,4 @@ const BcmTypography = class {
|
|
|
46016
47333
|
get el() { return getElement(this); }
|
|
46017
47334
|
};
|
|
46018
47335
|
|
|
46019
|
-
export { BcmAccordion as bcm_accordion, BcmAttendance as bcm_attendance, BcmAttendanceActions as bcm_attendance_actions, BcmAvatar as bcm_avatar, BcmBadge as bcm_badge, BcmButton as bcm_button, BcmButtonGroup as bcm_button_group, BcmCheckbox as bcm_checkbox, BcmCheckboxGroup as bcm_checkbox_group,
|
|
47336
|
+
export { BcmAccordion as bcm_accordion, BcmAttendance as bcm_attendance, BcmAttendanceActions as bcm_attendance_actions, BcmAvatar as bcm_avatar, BcmBadge as bcm_badge, BcmButton as bcm_button, BcmButtonGroup as bcm_button_group, BcmCheckbox as bcm_checkbox, BcmCheckboxGroup as bcm_checkbox_group, BcmChip as bcm_chip, BcmCollapse as bcm_collapse, BcmCollapseGroup as bcm_collapse_group, BcmColorInput as bcm_color_input, BcmColorful as bcm_colorful, BcmDate as bcm_date, BcmDivider as bcm_divider, BcmDrawer as bcm_drawer, BcmDropdown as bcm_dropdown, BcmEmpty as bcm_empty, BcmExpansionPanel as bcm_expansion_panel, BcmExpansionPanelDescription as bcm_expansion_panel_description, BcmExpansionPanelExtra as bcm_expansion_panel_extra, BcmExpansionPanelHeader as bcm_expansion_panel_header, BcmForm as bcm_form, BcmIcon as bcm_icon, BcmInput as bcm_input, BcmItem as bcm_item, BcmItems as bcm_items, BcmLabel as bcm_label, BcmLink as bcm_link, BcmLinked as bcm_linked, BcmList as bcm_list, BcmListbox as bcm_listbox, BcmListboxGroup as bcm_listbox_group, BcmListboxItem as bcm_listbox_item, BcmMenu as bcm_menu, BcmModal as bcm_modal, BcmModalFooter as bcm_modal_footer, BcmModalHeader as bcm_modal_header, BcmOldInput as bcm_old_input, BcmOldSearch as bcm_old_search, BcmOldTag as bcm_old_tag, BcmPopconfirm as bcm_popconfirm, BcmPopconfirmBox as bcm_popconfirm_box, BcmPopover as bcm_popover, BcmProgress as bcm_progress, BcmRadio as bcm_radio, BcmRadioGroup as bcm_radio_group, BcmRcOverflow as bcm_rc_overflow, BcmRcPicker as bcm_rc_picker, BcmSearch as bcm_search, BcmSelect as bcm_select, BcmSelectBox as bcm_select_box, BcmShortcut as bcm_shortcut, BcmStep as bcm_step, BcmStepper as bcm_stepper, BcmSwitch as bcm_switch, BcmTab as bcm_tab, BcmTabGroup as bcm_tab_group, BcmTabItem as bcm_tab_item, BcmTabItemHeader as bcm_tab_item_header, BcmTabs as bcm_tabs, BcmText as bcm_text, BcmTextarea as bcm_textarea, BcmTooltip as bcm_tooltip, Bcmtreeview as bcm_treeview, BcmtreeviewItem as bcm_treeview_item, BcmTypography as bcm_typography };
|