bromcom-ui 2.12.3-rc.2 → 2.12.3-rc.3-test.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-214834d8.entry.js → p-01e63843.entry.js} +1 -1
- package/dist/bromcom-ui/p-04594f76.entry.js +5 -0
- package/dist/bromcom-ui/{p-a5d58be8.js → p-052005c9.js} +1 -1
- package/dist/bromcom-ui/p-0e110a9f.entry.js +5 -0
- package/dist/bromcom-ui/p-0e5f1168.entry.js +5 -0
- package/dist/bromcom-ui/{p-8ea0e777.entry.js → p-10f511ff.entry.js} +1 -1
- package/dist/bromcom-ui/p-1345d51b.entry.js +5 -0
- package/dist/bromcom-ui/{p-ebc7d5eb.entry.js → p-15402dac.entry.js} +1 -1
- package/dist/bromcom-ui/{p-ece578ef.entry.js → p-1b558b0f.entry.js} +1 -1
- package/dist/bromcom-ui/p-1baed29d.entry.js +5 -0
- package/dist/bromcom-ui/{p-b43e06b4.entry.js → p-1e61a44c.entry.js} +1 -1
- package/dist/bromcom-ui/p-1f93fd33.entry.js +5 -0
- package/dist/bromcom-ui/p-23759244.entry.js +5 -0
- package/dist/bromcom-ui/{p-271c5e3c.entry.js → p-25bbe3e6.entry.js} +1 -1
- package/dist/bromcom-ui/p-270e1b24.entry.js +5 -0
- package/dist/bromcom-ui/p-27596881.entry.js +5 -0
- package/dist/bromcom-ui/p-29791e4a.entry.js +5 -0
- package/dist/bromcom-ui/{p-f0e30624.entry.js → p-2b42d77e.entry.js} +1 -1
- package/dist/bromcom-ui/{p-27d9f02a.js → p-2bd0545e.js} +1 -1
- package/dist/bromcom-ui/{p-8e683b32.js → p-2cd6cdee.js} +1 -1
- package/dist/bromcom-ui/p-3179ce74.entry.js +7 -0
- package/dist/bromcom-ui/{p-d551a51d.entry.js → p-32c55505.entry.js} +1 -1
- package/dist/bromcom-ui/p-33166492.entry.js +5 -0
- package/dist/bromcom-ui/p-376a20ed.js +5 -0
- package/dist/bromcom-ui/p-3da7b6c0.entry.js +5 -0
- package/dist/bromcom-ui/p-41276d76.entry.js +5 -0
- package/dist/bromcom-ui/p-412abc6d.entry.js +5 -0
- package/dist/bromcom-ui/p-4393b33e.entry.js +5 -0
- package/dist/bromcom-ui/p-46db5206.js +5 -0
- package/dist/bromcom-ui/p-4834bc26.js +5 -0
- package/dist/bromcom-ui/p-4856568f.entry.js +5 -0
- package/dist/bromcom-ui/{p-3971c237.entry.js → p-507db92e.entry.js} +1 -1
- package/dist/bromcom-ui/p-534f958a.entry.js +5 -0
- package/dist/bromcom-ui/{p-856cb58c.entry.js → p-540fbc32.entry.js} +1 -1
- package/dist/bromcom-ui/{p-ba9eff2a.entry.js → p-59f7fa84.entry.js} +1 -1
- package/dist/bromcom-ui/{p-594a57c3.entry.js → p-5d670fd7.entry.js} +1 -1
- package/dist/bromcom-ui/p-65da044b.js +5 -0
- package/dist/bromcom-ui/{p-85eedabc.js → p-6657830f.js} +1 -1
- package/dist/bromcom-ui/p-6687afd7.entry.js +5 -0
- package/dist/bromcom-ui/{p-499d8454.js → p-6bea284a.js} +1 -1
- package/dist/bromcom-ui/p-6ceb315f.entry.js +5 -0
- package/dist/bromcom-ui/{p-1c801d0c.entry.js → p-77ef609e.entry.js} +1 -1
- package/dist/bromcom-ui/p-7c45705d.entry.js +5 -0
- package/dist/bromcom-ui/p-7dbfff1b.entry.js +5 -0
- package/dist/bromcom-ui/{p-1830cdf1.js → p-7e0e02b3.js} +1 -1
- package/dist/bromcom-ui/{p-6f861fed.js → p-7e44e6b5.js} +1 -1
- package/dist/bromcom-ui/{p-fae6b16a.entry.js → p-80edaf47.entry.js} +1 -1
- package/dist/bromcom-ui/p-822dda00.js +5 -0
- package/dist/bromcom-ui/{p-18dbbd45.entry.js → p-87192588.entry.js} +1 -1
- package/dist/bromcom-ui/{p-b72ad073.entry.js → p-881853bd.entry.js} +1 -1
- package/dist/bromcom-ui/p-8b6d3a37.js +5 -0
- package/dist/bromcom-ui/p-8b8dd8fe.entry.js +5 -0
- package/dist/bromcom-ui/{p-6f2e4c9b.js → p-8c018ae0.js} +1 -1
- package/dist/bromcom-ui/p-8cd80ac4.entry.js +5 -0
- package/dist/bromcom-ui/p-8f32198d.js +14 -0
- package/dist/bromcom-ui/p-904b0c28.entry.js +5 -0
- package/dist/bromcom-ui/{p-9c94733a.entry.js → p-9253d439.entry.js} +1 -1
- package/dist/bromcom-ui/{p-c3387cb1.entry.js → p-926b314d.entry.js} +1 -1
- package/dist/bromcom-ui/{p-4e31f894.entry.js → p-95a797b3.entry.js} +1 -1
- package/dist/bromcom-ui/{p-6b3a6d60.entry.js → p-974a427c.entry.js} +1 -1
- package/dist/bromcom-ui/{p-bdc78a44.entry.js → p-9b59c689.entry.js} +1 -1
- package/dist/bromcom-ui/p-9ebe6ef9.entry.js +5 -0
- package/dist/bromcom-ui/{p-e0369655.entry.js → p-9f5ee998.entry.js} +1 -1
- package/dist/bromcom-ui/{p-9bfba564.entry.js → p-a00b053e.entry.js} +1 -1
- package/dist/bromcom-ui/{p-d65bc842.js → p-a0d6d680.js} +1 -1
- package/dist/bromcom-ui/{p-5dea2654.entry.js → p-a0f44b56.entry.js} +1 -1
- package/dist/bromcom-ui/p-a2065e9e.entry.js +5 -0
- package/dist/bromcom-ui/p-a2e5bb35.entry.js +5 -0
- package/dist/bromcom-ui/{p-f210c256.entry.js → p-a31644e3.entry.js} +1 -1
- package/dist/bromcom-ui/p-a352f45e.entry.js +5 -0
- package/dist/bromcom-ui/{p-1c9314bd.entry.js → p-a486613b.entry.js} +1 -1
- package/dist/bromcom-ui/{p-626b805d.entry.js → p-a6aa173f.entry.js} +1 -1
- package/dist/bromcom-ui/{p-a2df6c19.js → p-aeb4be41.js} +1 -1
- package/dist/bromcom-ui/p-b1084320.entry.js +5 -0
- package/dist/bromcom-ui/p-b301fa40.entry.js +5 -0
- package/dist/bromcom-ui/p-b43e975b.entry.js +5 -0
- package/dist/bromcom-ui/p-b9a88f16.entry.js +5 -0
- package/dist/bromcom-ui/p-bbcb683f.entry.js +5 -0
- package/dist/bromcom-ui/p-bd50c28f.entry.js +5 -0
- package/dist/bromcom-ui/{p-2d0ff35e.js → p-beaec5b8.js} +1 -1
- package/dist/bromcom-ui/p-c1a992e7.entry.js +5 -0
- package/dist/bromcom-ui/p-c39e73dc.entry.js +5 -0
- package/dist/bromcom-ui/{p-69260d36.entry.js → p-c49b6287.entry.js} +1 -1
- package/dist/bromcom-ui/p-c503526a.entry.js +5 -0
- package/dist/bromcom-ui/p-c63f5261.entry.js +5 -0
- package/dist/bromcom-ui/{p-4d2bf0e7.js → p-c77541f4.js} +2 -2
- package/dist/bromcom-ui/{p-af8674da.js → p-cbcf6d9c.js} +1 -1
- package/dist/bromcom-ui/{p-bf0abe3f.entry.js → p-cf11cdde.entry.js} +1 -1
- package/dist/bromcom-ui/{p-2ed86248.entry.js → p-d19d45ed.entry.js} +1 -1
- package/dist/bromcom-ui/p-d2bd0293.entry.js +5 -0
- package/dist/bromcom-ui/{p-2aaeb247.entry.js → p-d59d9687.entry.js} +1 -1
- package/dist/bromcom-ui/{p-2d10739e.entry.js → p-dd24646a.entry.js} +1 -1
- package/dist/bromcom-ui/p-e0ab7b38.js +11 -0
- package/dist/bromcom-ui/p-e1b6f98e.entry.js +5 -0
- package/dist/bromcom-ui/p-e36c7523.entry.js +5 -0
- package/dist/bromcom-ui/p-e5532875.entry.js +5 -0
- package/dist/bromcom-ui/{p-7d18ce0e.entry.js → p-e8eaa3bb.entry.js} +1 -1
- package/dist/bromcom-ui/p-e94d2f48.js +5 -0
- package/dist/bromcom-ui/p-ead59725.entry.js +5 -0
- package/dist/bromcom-ui/{p-43c578cf.js → p-eca0acda.js} +1 -1
- package/dist/bromcom-ui/p-ede7ca76.entry.js +5 -0
- package/dist/bromcom-ui/p-eef8f7c7.entry.js +5 -0
- package/dist/bromcom-ui/p-effc088c.entry.js +5 -0
- package/dist/bromcom-ui/{p-b8678480.entry.js → p-fafa70ac.entry.js} +1 -1
- package/dist/bromcom-ui/p-fc787048.entry.js +5 -0
- package/dist/bromcom-ui/{p-df76af7c.entry.js → p-fec89309.entry.js} +1 -1
- package/dist/bromcom-ui/{p-d54ecc8a.entry.js → p-ff2b4565.entry.js} +1 -1
- package/dist/cjs/Overflow-5a73947b.js +2233 -0
- package/dist/cjs/bcm-accordion.cjs.entry.js +74 -0
- package/dist/cjs/bcm-alert.cjs.entry.js +2 -2
- package/dist/cjs/bcm-attendance-actions-comment.cjs.entry.js +4 -4
- package/dist/cjs/bcm-attendance-actions-dropdown.cjs.entry.js +4 -4
- package/dist/cjs/bcm-attendance-actions.cjs.entry.js +330 -0
- package/dist/cjs/bcm-attendance.cjs.entry.js +35 -0
- package/dist/cjs/bcm-avatar_2.cjs.entry.js +210 -0
- package/dist/cjs/bcm-breadcrumb.cjs.entry.js +2 -2
- package/dist/cjs/bcm-button-group.cjs.entry.js +92 -0
- package/dist/cjs/bcm-button.cjs.entry.js +372 -0
- package/dist/cjs/bcm-caption.cjs.entry.js +4 -4
- package/dist/cjs/bcm-card.cjs.entry.js +2 -2
- package/dist/cjs/bcm-checkbox-group.cjs.entry.js +415 -0
- package/dist/cjs/bcm-checkbox-lite_9.cjs.entry.js +2529 -0
- package/dist/cjs/bcm-checkbox_2.cjs.entry.js +194 -0
- package/dist/cjs/bcm-chip-group.cjs.entry.js +4 -4
- package/dist/cjs/bcm-chip.cjs.entry.js +91 -0
- package/dist/cjs/bcm-collapse-group.cjs.entry.js +43 -0
- package/dist/cjs/bcm-collapse.cjs.entry.js +62 -0
- package/dist/cjs/bcm-color-input.cjs.entry.js +77 -0
- package/dist/cjs/bcm-colorful_2.cjs.entry.js +251 -0
- package/dist/cjs/bcm-date-picker.cjs.entry.js +2 -2
- package/dist/cjs/bcm-date_6.cjs.entry.js +15363 -0
- package/dist/cjs/bcm-datetime-picker.cjs.entry.js +2 -2
- package/dist/cjs/bcm-default.cjs.entry.js +2 -2
- package/dist/cjs/bcm-drawer.cjs.entry.js +96 -0
- package/dist/cjs/bcm-dropdown.cjs.entry.js +119 -0
- package/dist/cjs/bcm-expansion-panel.cjs.entry.js +116 -0
- package/dist/cjs/bcm-form-2.cjs.entry.js +2 -2
- package/dist/cjs/bcm-input-2.cjs.entry.js +2 -2
- package/dist/cjs/bcm-input-custom.cjs.entry.js +2 -2
- package/dist/cjs/bcm-input-dropdown.cjs.entry.js +4 -4
- package/dist/cjs/bcm-input_2.cjs.entry.js +550 -0
- package/dist/cjs/bcm-item.cjs.entry.js +72 -0
- package/dist/cjs/bcm-items.cjs.entry.js +49 -0
- package/dist/cjs/bcm-link.cjs.entry.js +51 -0
- package/dist/cjs/bcm-list_3.cjs.entry.js +1977 -0
- package/dist/cjs/bcm-menu.cjs.entry.js +151 -0
- package/dist/cjs/bcm-modal-2-footer.cjs.entry.js +4 -4
- package/dist/cjs/bcm-modal-2-header.cjs.entry.js +4 -4
- package/dist/cjs/bcm-modal-2.cjs.entry.js +4 -4
- package/dist/cjs/bcm-modal.cjs.entry.js +157 -0
- package/dist/cjs/bcm-number-input.cjs.entry.js +4 -4
- package/dist/cjs/bcm-old-input.cjs.entry.js +397 -0
- package/dist/cjs/bcm-old-tag_2.cjs.entry.js +145 -0
- package/dist/cjs/bcm-popconfirm-box.cjs.entry.js +115 -0
- package/dist/cjs/bcm-popconfirm.cjs.entry.js +101 -0
- package/dist/cjs/bcm-popover.cjs.entry.js +4 -4
- package/dist/cjs/bcm-progress.cjs.entry.js +162 -0
- package/dist/cjs/bcm-radio-group.cjs.entry.js +161 -0
- package/dist/cjs/bcm-radio.cjs.entry.js +65 -0
- package/dist/cjs/bcm-range.cjs.entry.js +2 -2
- package/dist/cjs/bcm-select.cjs.entry.js +1195 -0
- package/dist/cjs/bcm-shortcut.cjs.entry.js +65 -0
- package/dist/cjs/bcm-skeleton.cjs.entry.js +4 -4
- package/dist/cjs/bcm-step.cjs.entry.js +89 -0
- package/dist/cjs/bcm-stepper.cjs.entry.js +240 -0
- package/dist/cjs/bcm-switch.cjs.entry.js +151 -0
- package/dist/cjs/bcm-tab-group.cjs.entry.js +210 -0
- package/dist/cjs/bcm-tab-item-header.cjs.entry.js +60 -0
- package/dist/cjs/bcm-tab-item.cjs.entry.js +91 -0
- package/dist/cjs/bcm-tab.cjs.entry.js +72 -0
- package/dist/cjs/bcm-table.cjs.entry.js +4 -4
- package/dist/cjs/bcm-tabs.cjs.entry.js +370 -0
- package/dist/cjs/bcm-tag.cjs.entry.js +3 -3
- package/dist/cjs/bcm-text.cjs.entry.js +49 -0
- package/dist/cjs/bcm-time-picker.cjs.entry.js +2 -2
- package/dist/cjs/bcm-toast.cjs.entry.js +2 -2
- package/dist/cjs/bromcom-ui.cjs.js +3 -3
- package/dist/cjs/{generate-beac9c8d.js → generate-bff3fa38.js} +14 -14
- package/dist/cjs/{global-d4be0c46.js → global-825d9cd4.js} +1 -1
- package/dist/cjs/input-template-d05a507f.js +92 -0
- package/dist/cjs/json-parse-decarator-b9186302.js +40 -0
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/lodash-917168d7.js +17199 -0
- package/dist/cjs/{number-helper-46c7892f.js → number-helper-9bc46d37.js} +1 -1
- package/dist/cjs/old-bcm-popover-box.cjs.entry.js +3 -3
- package/dist/cjs/old-bcm-popover.cjs.entry.js +2 -2
- package/dist/cjs/{package-e6628eb2.js → package-dda6f822.js} +1 -1
- package/dist/cjs/stepper-states-a565a45f.js +85 -0
- package/dist/cjs/tooltip-helper-2e1f4fda.js +158 -0
- package/dist/cjs/{validators-27568118.js → validators-c0eef77a.js} +1 -1
- package/dist/collection/components/molecules/tab-group/tab-group.js +1 -1
- package/dist/collection/components/molecules/tab-group/tab-item-header.js +6 -5
- package/dist/collection/components/molecules/tab-group/tab-item.js +1 -1
- package/dist/collection/components/third-parts/rc-picker/date.js +1 -1
- package/dist/collection/components/third-parts/rc-picker/rc-picker.css +221 -112
- package/dist/collection/components/third-parts/rc-picker/rc-picker.js +20 -1
- package/dist/components/bcm-date.js +1 -1
- package/dist/components/bcm-tab-group.js +1 -1
- package/dist/components/bcm-tab-item-header.js +6 -5
- package/dist/components/bcm-tab-item.js +1 -1
- package/dist/components/generate.js +1 -1
- package/dist/components/rc-picker.js +5 -2
- package/dist/esm/Overflow-40c63001.js +2217 -0
- package/dist/esm/{_commonjsHelpers-7002e5de.js → _commonjsHelpers-82aa9212.js} +1 -1
- package/dist/esm/bcm-accordion.entry.js +70 -0
- package/dist/esm/bcm-alert.entry.js +6 -6
- package/dist/esm/bcm-attendance-actions-comment.entry.js +10 -10
- package/dist/esm/bcm-attendance-actions-dropdown.entry.js +11 -11
- package/dist/esm/bcm-attendance-actions.entry.js +326 -0
- package/dist/esm/bcm-attendance.entry.js +31 -0
- package/dist/esm/bcm-autocomplete.entry.js +2 -2
- package/dist/esm/bcm-avatar_2.entry.js +205 -0
- package/dist/esm/bcm-breadcrumb.entry.js +5 -5
- package/dist/esm/bcm-button-group.entry.js +88 -0
- package/dist/esm/bcm-button.entry.js +368 -0
- package/dist/esm/bcm-caption.entry.js +12 -12
- package/dist/esm/bcm-card.entry.js +9 -9
- package/dist/esm/bcm-checkbox-group.entry.js +411 -0
- package/dist/esm/bcm-checkbox-lite_9.entry.js +2517 -0
- package/dist/esm/bcm-checkbox_2.entry.js +189 -0
- package/dist/esm/bcm-chip-group.entry.js +13 -13
- package/dist/esm/bcm-chip.entry.js +87 -0
- package/dist/esm/bcm-collapse-group.entry.js +39 -0
- package/dist/esm/bcm-collapse.entry.js +58 -0
- package/dist/esm/bcm-color-input.entry.js +73 -0
- package/dist/esm/bcm-colorful_2.entry.js +246 -0
- package/dist/esm/bcm-colorpicker.entry.js +4 -4
- package/dist/esm/bcm-date-picker.entry.js +6 -6
- package/dist/esm/bcm-date_6.entry.js +15354 -0
- package/dist/esm/bcm-datetime-picker.entry.js +10 -10
- package/dist/esm/bcm-default.entry.js +4 -4
- package/dist/esm/bcm-drawer.entry.js +92 -0
- package/dist/esm/bcm-dropdown.entry.js +115 -0
- package/dist/esm/bcm-error-layout.entry.js +2 -2
- package/dist/esm/bcm-expansion-panel.entry.js +112 -0
- package/dist/esm/bcm-form-2.entry.js +5 -5
- package/dist/esm/bcm-input-2.entry.js +6 -6
- package/dist/esm/bcm-input-custom.entry.js +5 -5
- package/dist/esm/bcm-input-dropdown.entry.js +12 -12
- package/dist/esm/bcm-input_2.entry.js +545 -0
- package/dist/esm/bcm-item.entry.js +68 -0
- package/dist/esm/bcm-items.entry.js +45 -0
- package/dist/esm/bcm-link.entry.js +47 -0
- package/dist/esm/bcm-list_3.entry.js +1971 -0
- package/dist/esm/bcm-menu.entry.js +147 -0
- package/dist/esm/bcm-message.entry.js +2 -2
- package/dist/esm/bcm-modal-2-footer.entry.js +11 -11
- package/dist/esm/bcm-modal-2-header.entry.js +10 -10
- package/dist/esm/bcm-modal-2.entry.js +11 -11
- package/dist/esm/bcm-modal.entry.js +153 -0
- package/dist/esm/bcm-notification.entry.js +2 -2
- package/dist/esm/bcm-number-input.entry.js +12 -12
- package/dist/esm/bcm-old-input.entry.js +393 -0
- package/dist/esm/bcm-old-tag_2.entry.js +140 -0
- package/dist/esm/bcm-overlay_2.entry.js +3 -3
- package/dist/esm/bcm-popconfirm-box.entry.js +111 -0
- package/dist/esm/bcm-popconfirm.entry.js +97 -0
- package/dist/esm/bcm-popover.entry.js +10 -10
- package/dist/esm/bcm-progress.entry.js +158 -0
- package/dist/esm/bcm-radio-group.entry.js +157 -0
- package/dist/esm/bcm-radio.entry.js +61 -0
- package/dist/esm/bcm-range.entry.js +6 -6
- package/dist/esm/bcm-react-number.entry.js +2 -2
- package/dist/esm/bcm-result.entry.js +2 -2
- package/dist/esm/bcm-select-group.entry.js +2 -2
- package/dist/esm/bcm-select-option.entry.js +2 -2
- package/dist/esm/bcm-select.entry.js +1191 -0
- package/dist/esm/bcm-shortcut.entry.js +61 -0
- package/dist/esm/bcm-skeleton.entry.js +10 -10
- package/dist/esm/bcm-step.entry.js +85 -0
- package/dist/esm/bcm-stepper.entry.js +236 -0
- package/dist/esm/bcm-switch.entry.js +147 -0
- package/dist/esm/bcm-tab-group.entry.js +206 -0
- package/dist/esm/bcm-tab-item-header.entry.js +56 -0
- package/dist/esm/bcm-tab-item.entry.js +87 -0
- package/dist/esm/bcm-tab-pane.entry.js +2 -2
- package/dist/esm/bcm-tab.entry.js +68 -0
- package/dist/esm/bcm-table.entry.js +11 -11
- package/dist/esm/bcm-tabs-content.entry.js +3 -3
- package/dist/esm/bcm-tabs.entry.js +366 -0
- package/dist/esm/bcm-tag.entry.js +7 -7
- package/dist/esm/bcm-text.entry.js +45 -0
- package/dist/esm/bcm-time-picker.entry.js +6 -6
- package/dist/esm/bcm-timeline-item.entry.js +2 -2
- package/dist/esm/bcm-timeline.entry.js +2 -2
- package/dist/esm/bcm-toast.entry.js +7 -7
- package/dist/esm/bromcom-ui.js +3 -3
- package/dist/esm/{caption-template-3cd42c3b.js → caption-template-d7953d13.js} +1 -1
- package/dist/esm/{color-helper-ba15b0d8.js → color-helper-74614f24.js} +2 -2
- package/dist/esm/{colors-ed4e7579.js → colors-dd598eea.js} +1 -1
- package/dist/esm/{element-dragger-b75266e6.js → element-dragger-89bb52fd.js} +1 -1
- package/dist/esm/{generate-b30859e0.js → generate-1281254a.js} +15 -15
- package/dist/esm/{global-7e00a8e5.js → global-c031697c.js} +1 -1
- package/dist/esm/{index-0d3a56ec.js → index-036974d7.js} +1 -1
- package/dist/esm/{index-00c8a8f7.js → index-f549811f.js} +1 -1
- package/dist/esm/input-template-b4045b25.js +90 -0
- package/dist/esm/json-parse-decarator-7d436ec7.js +38 -0
- package/dist/esm/{label-template-ef97aadb.js → label-template-a26f76c0.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/lodash-4197be99.js +17197 -0
- package/dist/esm/{number-helper-70d15d1b.js → number-helper-778c8f87.js} +1 -1
- package/dist/esm/old-bcm-popover-box.entry.js +10 -10
- package/dist/esm/old-bcm-popover.entry.js +5 -5
- package/dist/esm/{package-8f0a3af5.js → package-08ddc3fa.js} +1 -1
- package/dist/esm/{popover-placement-2bf3a181.js → popover-placement-d12fec40.js} +1 -1
- package/dist/esm/{slot-template-d3ae9f27.js → slot-template-2a19b2db.js} +1 -1
- package/dist/esm/stepper-states-325c754b.js +83 -0
- package/dist/esm/{string-helper-69203215.js → string-helper-3592bdc2.js} +1 -1
- package/dist/esm/tooltip-helper-9c64ad15.js +156 -0
- package/dist/esm/{utils-7727d09e.js → utils-57652744.js} +1 -1
- package/dist/esm/{validators-0ccb9921.js → validators-0c6e8dea.js} +1 -1
- package/dist/types/components/third-parts/rc-picker/rc-picker.d.ts +1 -0
- package/dist/types/components.d.ts +2 -0
- package/package.json +2 -2
- package/dist/bromcom-ui/p-053dc717.entry.js +0 -5
- package/dist/bromcom-ui/p-5b03442c.entry.js +0 -5
- package/dist/bromcom-ui/p-64fad38b.js +0 -11
- package/dist/bromcom-ui/p-6b9f10a7.entry.js +0 -5
- package/dist/bromcom-ui/p-81d248d8.js +0 -5
- package/dist/bromcom-ui/p-9d71cecb.entry.js +0 -5
- package/dist/bromcom-ui/p-a9388655.entry.js +0 -16
- package/dist/bromcom-ui/p-bddce313.js +0 -5
- package/dist/bromcom-ui/p-d7194c4d.entry.js +0 -5
- package/dist/cjs/bcm-accordion_63.cjs.entry.js +0 -46097
- package/dist/esm/bcm-accordion_63.entry.js +0 -46031
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Stencil
|
|
3
|
+
* Copyright (c) Bromcom.
|
|
4
|
+
*/
|
|
5
|
+
'use strict';
|
|
6
|
+
|
|
7
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
8
|
+
|
|
9
|
+
const index = require('./index-c591ecec.js');
|
|
10
|
+
const index$1 = require('./index-95ae50d0.js');
|
|
11
|
+
const colorHelper = require('./color-helper-dc98a2ca.js');
|
|
12
|
+
const generate = require('./generate-bff3fa38.js');
|
|
13
|
+
const stringHelper = require('./string-helper-9cdfb273.js');
|
|
14
|
+
const popoverPlacement = require('./popover-placement-02e6101b.js');
|
|
15
|
+
require('./_commonjsHelpers-ed84c3ca.js');
|
|
16
|
+
require('./colors-56282b00.js');
|
|
17
|
+
require('./utils-fc077139.js');
|
|
18
|
+
require('./colors-250d0982.js');
|
|
19
|
+
require('./package-dda6f822.js');
|
|
20
|
+
require('./bcm-1d1fcf21.js');
|
|
21
|
+
|
|
22
|
+
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:0 4px 12px 2px rgba(17, 24, 38, 0.1);border-radius:4px;position:absolute;box-sizing:border-box;background-color:#FFFFFF;border:1px solid #FFFFFF;z-index:-99999;overflow:hidden;visibility:hidden;width:230px;filter:drop-shadow(0px 1px 6px rgba(0, 0, 0, 0.25));padding:8px 16px}.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:8px;min-width:16px}.bcm-popconfirm-box .bcm-pop-box .bcm-pop-content-text{display:flex;flex-direction:row;align-items:center;text-align:left;padding-top:1px}.bcm-popconfirm-box .bcm-pop-box .bcm-pop-buttons{display:flex;justify-content:flex-end;margin-top:8px}.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)}";
|
|
23
|
+
|
|
24
|
+
const statuses = {
|
|
25
|
+
error: ['fal fa-times-circle', 'red-6'],
|
|
26
|
+
warning: ['fal fa-exclamation-circle', 'warmyellow-6'],
|
|
27
|
+
};
|
|
28
|
+
const BcmPopconfirmBox = class {
|
|
29
|
+
constructor(hostRef) {
|
|
30
|
+
index.registerInstance(this, hostRef);
|
|
31
|
+
this.onConfirm = index.createEvent(this, "bcm-popconfirm-confirm", 7);
|
|
32
|
+
this.onCancel = index.createEvent(this, "bcm-popconfirm-cancel", 7);
|
|
33
|
+
this.onShow = index.createEvent(this, "bcm-popconfirm-show", 7);
|
|
34
|
+
this._id = generate.Generate.UID();
|
|
35
|
+
this._target_id = undefined;
|
|
36
|
+
this.message = undefined;
|
|
37
|
+
this.status = 'warning';
|
|
38
|
+
this.cancelText = "No";
|
|
39
|
+
this.okeyText = "Yes";
|
|
40
|
+
this.placement = undefined;
|
|
41
|
+
this.open = false;
|
|
42
|
+
this.hidden = false;
|
|
43
|
+
this._internal_id = undefined;
|
|
44
|
+
this.placement_string = undefined;
|
|
45
|
+
}
|
|
46
|
+
getPopconfirm() {
|
|
47
|
+
return document.querySelector(`bcm-popconfirm[id="${this._target_id}"]`);
|
|
48
|
+
}
|
|
49
|
+
handleClickOutside(e) {
|
|
50
|
+
if (this.el.contains(e.target) || this.getPopconfirm().contains(e.target)) {
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
this.getPopconfirm().hide();
|
|
54
|
+
this.hide();
|
|
55
|
+
}
|
|
56
|
+
showHandler(e) {
|
|
57
|
+
if (e.detail != this._target_id) {
|
|
58
|
+
this.getPopconfirm().hide();
|
|
59
|
+
this.hide();
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
async show() {
|
|
63
|
+
this.open = true;
|
|
64
|
+
this.onShow.emit(this._target_id);
|
|
65
|
+
}
|
|
66
|
+
async hide() {
|
|
67
|
+
this.open = false;
|
|
68
|
+
}
|
|
69
|
+
componentWillRender() {
|
|
70
|
+
this.calculateLocation();
|
|
71
|
+
}
|
|
72
|
+
calculateLocation() {
|
|
73
|
+
if (this.open) {
|
|
74
|
+
var placement = this.placement;
|
|
75
|
+
const box = this.el.querySelector('.bcm-pop-box');
|
|
76
|
+
const targetElement = document.getElementById(this._target_id).children[0];
|
|
77
|
+
if (box && targetElement) {
|
|
78
|
+
let pos = popoverPlacement.setPosition(placement, targetElement, { top: targetElement.offsetTop, left: targetElement.offsetLeft });
|
|
79
|
+
this.setPlacementString(placement);
|
|
80
|
+
this.el.style.top = pos[0] + 'px';
|
|
81
|
+
this.el.style.left = pos[1] + 'px';
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
setPlacementString(placement) {
|
|
86
|
+
const placements = stringHelper.StringHelper.textContains(placement, '-') ? placement.split('-') : placement.split(' ');
|
|
87
|
+
if (placements.length === 1) {
|
|
88
|
+
placements.push('center');
|
|
89
|
+
}
|
|
90
|
+
this.placement_string = placements.join(' ');
|
|
91
|
+
}
|
|
92
|
+
handleConfirm() {
|
|
93
|
+
this.getPopconfirm().hide();
|
|
94
|
+
this.hide();
|
|
95
|
+
this.onConfirm.emit(this._target_id);
|
|
96
|
+
}
|
|
97
|
+
handleCancel() {
|
|
98
|
+
this.getPopconfirm().hide();
|
|
99
|
+
this.hide();
|
|
100
|
+
this.onCancel.emit(this._target_id);
|
|
101
|
+
}
|
|
102
|
+
render() {
|
|
103
|
+
const { message, cancelText, okeyText, open, placement_string, status } = this;
|
|
104
|
+
const statusies = statuses[status];
|
|
105
|
+
const boxClasses = index$1.classnames('bcm-pop-box');
|
|
106
|
+
const hostClasses = index$1.classnames('bcm-popconfirm-box', placement_string, {
|
|
107
|
+
'bcm-pop-open': open,
|
|
108
|
+
});
|
|
109
|
+
return (index.h(index.Host, { class: hostClasses }, index.h("div", { class: boxClasses }, index.h("div", { class: "bcm-pop-content" }, index.h("div", { class: "bcm-pop-content-icon size-3", style: { color: colorHelper.ColorHelper.convertColorToHex(statusies[1]) } }, index.h("bcm-icon", { icon: statusies[0] })), index.h("div", { class: "bcm-pop-content-text" }, index.h("bcm-text", { scale: "size-2", innerHTML: message }))), index.h("div", { class: "bcm-pop-buttons" }, index.h("bcm-button", { size: "small", onClick: () => this.handleCancel(), outline: true }, cancelText), index.h("bcm-button", { size: "small", onClick: () => this.handleConfirm() }, okeyText)))));
|
|
110
|
+
}
|
|
111
|
+
get el() { return index.getElement(this); }
|
|
112
|
+
};
|
|
113
|
+
BcmPopconfirmBox.style = popconfirmBoxCss;
|
|
114
|
+
|
|
115
|
+
exports.bcm_popconfirm_box = BcmPopconfirmBox;
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Stencil
|
|
3
|
+
* Copyright (c) Bromcom.
|
|
4
|
+
*/
|
|
5
|
+
'use strict';
|
|
6
|
+
|
|
7
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
8
|
+
|
|
9
|
+
const index = require('./index-c591ecec.js');
|
|
10
|
+
const index$1 = require('./index-95ae50d0.js');
|
|
11
|
+
const generate = require('./generate-bff3fa38.js');
|
|
12
|
+
const bcm = require('./bcm-1d1fcf21.js');
|
|
13
|
+
require('./_commonjsHelpers-ed84c3ca.js');
|
|
14
|
+
require('./package-dda6f822.js');
|
|
15
|
+
require('./colors-250d0982.js');
|
|
16
|
+
|
|
17
|
+
const popconfirmCss = "@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-popconfirm{display:inline-flex}";
|
|
18
|
+
|
|
19
|
+
const BcmPopconfirm = class {
|
|
20
|
+
constructor(hostRef) {
|
|
21
|
+
index.registerInstance(this, hostRef);
|
|
22
|
+
this.onShow = index.createEvent(this, "bcm-show", 7);
|
|
23
|
+
this.onHide = index.createEvent(this, "bcm-hide", 7);
|
|
24
|
+
this.onConfirm = index.createEvent(this, "bcm-confirm", 7);
|
|
25
|
+
this.onCancel = index.createEvent(this, "bcm-cancel", 7);
|
|
26
|
+
this._id = generate.Generate.UID();
|
|
27
|
+
this.message = undefined;
|
|
28
|
+
this.status = 'warning';
|
|
29
|
+
this.cancelText = "No";
|
|
30
|
+
this.okeyText = "Yes";
|
|
31
|
+
this.placement = bcm.Bcm$1.Placement.top;
|
|
32
|
+
this.trigger = bcm.Bcm$1.TriggerType.click;
|
|
33
|
+
this.open = false;
|
|
34
|
+
this.hidden = false;
|
|
35
|
+
}
|
|
36
|
+
async show() {
|
|
37
|
+
// if (this.open) return
|
|
38
|
+
this.open = true;
|
|
39
|
+
this.onShow.emit();
|
|
40
|
+
await this.createBox().then(() => this.showBox());
|
|
41
|
+
}
|
|
42
|
+
async hide() {
|
|
43
|
+
// if (!this.open) return
|
|
44
|
+
this.open = false;
|
|
45
|
+
this.onHide.emit();
|
|
46
|
+
// this.hideBox()
|
|
47
|
+
}
|
|
48
|
+
async createBox() {
|
|
49
|
+
let element = this.getPopconfirmBox();
|
|
50
|
+
if (!element) {
|
|
51
|
+
const box = document.createElement('bcm-popconfirm-box');
|
|
52
|
+
box.setAttribute('id', 'box-' + this._id);
|
|
53
|
+
box.setAttribute('target-id', this._id);
|
|
54
|
+
box.setAttribute('placement', this.placement);
|
|
55
|
+
box.setAttribute('message', this.message);
|
|
56
|
+
box.setAttribute('status', this.status);
|
|
57
|
+
box.setAttribute('cancel-text', this.cancelText);
|
|
58
|
+
box.setAttribute('okey-text', this.okeyText);
|
|
59
|
+
this.el.parentElement.appendChild(box);
|
|
60
|
+
}
|
|
61
|
+
return Promise.resolve();
|
|
62
|
+
}
|
|
63
|
+
getPopconfirmBox() {
|
|
64
|
+
return document.querySelector(`bcm-popconfirm-box[id="box-${this._id}"]`);
|
|
65
|
+
}
|
|
66
|
+
showBox() {
|
|
67
|
+
this.getPopconfirmBox() && this.getPopconfirmBox().show();
|
|
68
|
+
}
|
|
69
|
+
hideBox() {
|
|
70
|
+
this.getPopconfirmBox() && this.getPopconfirmBox().hide();
|
|
71
|
+
}
|
|
72
|
+
listenTrigger(event) {
|
|
73
|
+
switch (this.trigger) {
|
|
74
|
+
case 'click':
|
|
75
|
+
event === 'click' && (this.open ? this.hide() : this.show());
|
|
76
|
+
break;
|
|
77
|
+
case 'hover':
|
|
78
|
+
event === 'onMouseOver' && this.show();
|
|
79
|
+
event === 'onMouseOut' && this.hide();
|
|
80
|
+
break;
|
|
81
|
+
case 'focus':
|
|
82
|
+
event === 'onFocus' && this.show();
|
|
83
|
+
event === 'onBlur' && this.hide();
|
|
84
|
+
break;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
onBcmConfirm(e) {
|
|
88
|
+
e.detail == this._id && (this.onConfirm.emit(this._id));
|
|
89
|
+
}
|
|
90
|
+
onBcmCancel(e) {
|
|
91
|
+
e.detail == this._id && (this.onCancel.emit(this._id));
|
|
92
|
+
}
|
|
93
|
+
render() {
|
|
94
|
+
const popconfirmClasses = index$1.classnames('bcm-popconfirm');
|
|
95
|
+
return (index.h(index.Host, { class: popconfirmClasses, onclick: () => this.listenTrigger('click') }, index.h("slot", null)));
|
|
96
|
+
}
|
|
97
|
+
get el() { return index.getElement(this); }
|
|
98
|
+
};
|
|
99
|
+
BcmPopconfirm.style = popconfirmCss;
|
|
100
|
+
|
|
101
|
+
exports.bcm_popconfirm = BcmPopconfirm;
|
|
@@ -9,10 +9,10 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
9
9
|
const index = require('./index-c591ecec.js');
|
|
10
10
|
const colorHelper = require('./color-helper-dc98a2ca.js');
|
|
11
11
|
require('./datetime-helper-eaf4fadb.js');
|
|
12
|
-
const generate = require('./generate-
|
|
13
|
-
require('./number-helper-
|
|
12
|
+
const generate = require('./generate-bff3fa38.js');
|
|
13
|
+
require('./number-helper-9bc46d37.js');
|
|
14
14
|
const stringHelper = require('./string-helper-9cdfb273.js');
|
|
15
|
-
require('./validators-
|
|
15
|
+
require('./validators-c0eef77a.js');
|
|
16
16
|
require('./element-dragger-a8562f82.js');
|
|
17
17
|
const bcm = require('./bcm-1d1fcf21.js');
|
|
18
18
|
const utils = require('./utils-fc077139.js');
|
|
@@ -20,7 +20,7 @@ const floatingUi = require('./floating-ui-5b396838.js');
|
|
|
20
20
|
require('./colors-56282b00.js');
|
|
21
21
|
require('./colors-250d0982.js');
|
|
22
22
|
require('./_commonjsHelpers-ed84c3ca.js');
|
|
23
|
-
require('./package-
|
|
23
|
+
require('./package-dda6f822.js');
|
|
24
24
|
|
|
25
25
|
class Popover {
|
|
26
26
|
constructor({ content, message, targetId, placement = "top", color = "slate-700", trigger = "none", openDelay = 0, closeDelay = 0, autoHide = false, emitShow = () => { }, emitHide = () => { } }) {
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Stencil
|
|
3
|
+
* Copyright (c) Bromcom.
|
|
4
|
+
*/
|
|
5
|
+
'use strict';
|
|
6
|
+
|
|
7
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
8
|
+
|
|
9
|
+
const index = require('./index-c591ecec.js');
|
|
10
|
+
const index$1 = require('./index-95ae50d0.js');
|
|
11
|
+
const colorHelper = require('./color-helper-dc98a2ca.js');
|
|
12
|
+
const generate = require('./generate-bff3fa38.js');
|
|
13
|
+
const bcm = require('./bcm-1d1fcf21.js');
|
|
14
|
+
require('./_commonjsHelpers-ed84c3ca.js');
|
|
15
|
+
require('./colors-56282b00.js');
|
|
16
|
+
require('./utils-fc077139.js');
|
|
17
|
+
require('./colors-250d0982.js');
|
|
18
|
+
require('./package-dda6f822.js');
|
|
19
|
+
|
|
20
|
+
// export const lineSizes = {
|
|
21
|
+
// small: {
|
|
22
|
+
// textSize: 'size-1',
|
|
23
|
+
// iconSize: 14,
|
|
24
|
+
// },
|
|
25
|
+
// medium: {
|
|
26
|
+
// textSize: 'size-2',
|
|
27
|
+
// iconSize: 16,
|
|
28
|
+
// }
|
|
29
|
+
// }
|
|
30
|
+
const circleSizes = {
|
|
31
|
+
small: {
|
|
32
|
+
textSize: 'size-3',
|
|
33
|
+
iconSize: 22,
|
|
34
|
+
circleSize: 80,
|
|
35
|
+
radius: 36
|
|
36
|
+
},
|
|
37
|
+
medium: {
|
|
38
|
+
textSize: 'size-5',
|
|
39
|
+
iconSize: 30,
|
|
40
|
+
circleSize: 120,
|
|
41
|
+
radius: 52
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
const progressCss = "@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-progress{--bcm-progress-color:var(--bcm-new-ds-color-blue-500);display:inline-block;min-width:50px;width:100%;max-width:256px;font-family:\"Inter\", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400}.bcm-progress.full-width{width:100%;max-width:100%;min-width:auto}.bcm-progress__line{display:flex;flex-direction:row;align-items:center;justify-content:center;flex-wrap:nowrap;min-height:8px}.bcm-progress__line .value{margin-left:8px;color:var(--bcm-new-ds-color-slate-500);min-width:32px;font-size:14px;min-height:calc(14px + 8px);font-weight:500}.bcm-progress__line-progress{width:100%;flex:1;height:8px;border:0 none;background:var(--bcm-new-ds-color-slate-200);appearance:none}.bcm-progress__line-progress.small{height:6px}.bcm-progress__line-progress.line-rounded,.bcm-progress__line-progress.line-rounded::-webkit-progress-value{border-radius:8px}.bcm-progress__line-progress.line-rounded::-moz-progress-bar{border-radius:8px}.bcm-progress__line-progress.completed::-webkit-progress-value{background-color:var(--bcm-progress-color)}.bcm-progress__line-progress.completed::-moz-progress-bar{background-color:var(--bcm-progress-color)}.bcm-progress__line-progress.error::-webkit-progress-value{background-color:var(--bcm-new-ds-color-red-500)}.bcm-progress__line-progress.error::-moz-progress-bar{background-color:var(--bcm-new-ds-color-red-500)}.bcm-progress__line-progress.error .value{color:var(--bcm-new-ds-color-red-500)}.bcm-progress__line-progress::-webkit-progress-bar{background:transparent}.bcm-progress__line-progress::-webkit-progress-value{background-color:var(--bcm-progress-color);transition:0.3s}.bcm-progress__line-progress::-moz-progress-bar{background-color:var(--bcm-progress-color);transition:0.3s}.bcm-progress__circle{position:relative}.bcm-progress__circle bcm-icon{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.bcm-progress__circle text{fill:var(--bcm-new-ds-color-slate-500);font-size:18px;line-height:calc(18px + 8px);font-weight:500}.bcm-progress__circle-circle{transition:0.35s stroke-dashoffset, 0.1s stroke;transform:rotate(-90deg);transform-origin:50% 50%;stroke:#F5F5F5;stroke-width:6px;fill:transparent}.bcm-progress__circle-circle.bar{stroke:var(--bcm-progress-color)}.bcm-progress__circle-circle.completed{stroke:var(--bcm-new-ds-color-emerald-500)}.bcm-progress__circle-circle.error{stroke:var(--bcm-new-ds-color-red-500)}";
|
|
46
|
+
|
|
47
|
+
const BcmProgress = class {
|
|
48
|
+
constructor(hostRef) {
|
|
49
|
+
index.registerInstance(this, hostRef);
|
|
50
|
+
this._id = generate.Generate.UID();
|
|
51
|
+
this.value = 0;
|
|
52
|
+
this.max = 100;
|
|
53
|
+
this.size = bcm.Bcm$1.Size.medium;
|
|
54
|
+
this.type = "line-rounded";
|
|
55
|
+
this.info = null;
|
|
56
|
+
this.error = false;
|
|
57
|
+
this.hidden = false;
|
|
58
|
+
this.fullWidth = false;
|
|
59
|
+
this.color = "blue";
|
|
60
|
+
this.isCompleted = false;
|
|
61
|
+
}
|
|
62
|
+
connectedCallback() {
|
|
63
|
+
this.maxPercent(this.value);
|
|
64
|
+
}
|
|
65
|
+
componentDidRender() {
|
|
66
|
+
const circle = this.el.querySelector("#circle");
|
|
67
|
+
if (circle) {
|
|
68
|
+
const radius = circle.r.baseVal.value;
|
|
69
|
+
const circumference = radius * 2 * Math.PI;
|
|
70
|
+
const offset = circumference - (this.value / this.max) * circumference;
|
|
71
|
+
circle.style.strokeDasharray = `${circumference} ${circumference}`;
|
|
72
|
+
circle.style.strokeDashoffset = `${circumference}`;
|
|
73
|
+
circle.style.strokeDashoffset = `${offset}`;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
componentShouldUpdate(newVal, oldVal, propName) {
|
|
77
|
+
if (propName === "value" && newVal !== oldVal) {
|
|
78
|
+
this.handlePercent(newVal);
|
|
79
|
+
}
|
|
80
|
+
if (propName === "max" && newVal !== oldVal) {
|
|
81
|
+
this.value > newVal ? this.value = newVal : this.value;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
maxPercent(newValue) {
|
|
85
|
+
if (newValue >= this.max) {
|
|
86
|
+
this.value = this.max;
|
|
87
|
+
this.isCompleted = true;
|
|
88
|
+
}
|
|
89
|
+
if (newValue < this.max) {
|
|
90
|
+
this.isCompleted = false;
|
|
91
|
+
}
|
|
92
|
+
if (newValue <= 0) {
|
|
93
|
+
this.value = 0;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
async increment(percent) {
|
|
97
|
+
this.handlePercent(+percent, "increment");
|
|
98
|
+
}
|
|
99
|
+
async decrement(percent) {
|
|
100
|
+
this.handlePercent(+percent, "decrement");
|
|
101
|
+
}
|
|
102
|
+
async set(percent) {
|
|
103
|
+
this.handlePercent(+percent, "set");
|
|
104
|
+
}
|
|
105
|
+
handlePercent(percent, process = "set") {
|
|
106
|
+
if ((percent || percent == 0) && typeof percent === "number") {
|
|
107
|
+
switch (process) {
|
|
108
|
+
case "increment":
|
|
109
|
+
this.value += percent;
|
|
110
|
+
break;
|
|
111
|
+
case "decrement":
|
|
112
|
+
this.value -= percent;
|
|
113
|
+
break;
|
|
114
|
+
case "set":
|
|
115
|
+
this.value = percent;
|
|
116
|
+
break;
|
|
117
|
+
}
|
|
118
|
+
this.maxPercent(this.value);
|
|
119
|
+
this.error = false;
|
|
120
|
+
}
|
|
121
|
+
else {
|
|
122
|
+
this.error = true;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
getIcon(type = "line") {
|
|
126
|
+
let icon = "far fa-" + (this.error ? "times" : "check") + (type === "line" ? "-circle" : "");
|
|
127
|
+
if (this.error || (this.info === "icon" && this.isCompleted)) {
|
|
128
|
+
return index.h("bcm-icon", { icon: icon });
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
render() {
|
|
132
|
+
const { type, hidden, error, size, isCompleted, value, fullWidth } = this;
|
|
133
|
+
const isIcon = this.info === "icon";
|
|
134
|
+
const { circleSize, radius, textSize } = circleSizes[this.size];
|
|
135
|
+
const centerOfCircle = +circleSize / 2;
|
|
136
|
+
const completeState = index$1.classnames({
|
|
137
|
+
completed: isIcon && isCompleted,
|
|
138
|
+
error,
|
|
139
|
+
});
|
|
140
|
+
const lineClasses = index$1.classnames("bcm-progress__line-progress", size, type, completeState);
|
|
141
|
+
const circleClasses = index$1.classnames("bcm-progress__circle-circle", "bar", completeState);
|
|
142
|
+
const containerStyle = {
|
|
143
|
+
width: `${circleSize}px`,
|
|
144
|
+
height: `${circleSize}px`,
|
|
145
|
+
};
|
|
146
|
+
const hostClasses = index$1.classnames("bcm-progress", {
|
|
147
|
+
hidden,
|
|
148
|
+
"full-width": fullWidth,
|
|
149
|
+
});
|
|
150
|
+
const CircleTemplate = () => (index.h("div", { class: "bcm-progress__circle", style: containerStyle }, index.h("svg", { width: circleSize, height: circleSize }, index.h("circle", { r: radius, cx: centerOfCircle, cy: centerOfCircle, class: "bcm-progress__circle-circle" }), index.h("circle", { r: radius, cx: centerOfCircle, cy: centerOfCircle, class: circleClasses, id: "circle" }), (this.info && this.info != "icon") && !this.error && (index.h("text", { x: centerOfCircle, y: centerOfCircle, "text-anchor": "middle", class: textSize, "alignment-baseline": "middle" }, this.info === "value-max" && (value + "/" + this.max), this.info === "value" && { value }, this.info === "percent" &&
|
|
151
|
+
(100 / this.max) * +(value) + "%"))), this.getIcon("circle")));
|
|
152
|
+
const LineTemplate = () => (index.h("div", { class: "bcm-progress__line" }, index.h("progress", { class: lineClasses, value: value, max: this.max }), this.info === "value-max" && index.h("span", { class: "value" }, value, "/", this.max, " "), this.info === "value" && index.h("span", { class: "value" }, value, " "), this.info === "percent" &&
|
|
153
|
+
index.h("span", { class: "value" }, (100 / this.max) * +(value), "%"), this.info === "icon" && index.h("span", { class: "value" }, this.getIcon("line"))));
|
|
154
|
+
return (index.h(index.Host, { class: hostClasses, style: {
|
|
155
|
+
[`--bcm-progress-color`]: colorHelper.ColorHelper.dsColor(this.color),
|
|
156
|
+
} }, type === "circle" ? index.h(CircleTemplate, null) : index.h(LineTemplate, null)));
|
|
157
|
+
}
|
|
158
|
+
get el() { return index.getElement(this); }
|
|
159
|
+
};
|
|
160
|
+
BcmProgress.style = progressCss;
|
|
161
|
+
|
|
162
|
+
exports.bcm_progress = BcmProgress;
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Stencil
|
|
3
|
+
* Copyright (c) Bromcom.
|
|
4
|
+
*/
|
|
5
|
+
'use strict';
|
|
6
|
+
|
|
7
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
8
|
+
|
|
9
|
+
const index = require('./index-c591ecec.js');
|
|
10
|
+
require('./color-helper-dc98a2ca.js');
|
|
11
|
+
require('./datetime-helper-eaf4fadb.js');
|
|
12
|
+
const generate = require('./generate-bff3fa38.js');
|
|
13
|
+
require('./number-helper-9bc46d37.js');
|
|
14
|
+
require('./string-helper-9cdfb273.js');
|
|
15
|
+
require('./validators-c0eef77a.js');
|
|
16
|
+
require('./element-dragger-a8562f82.js');
|
|
17
|
+
const utils = require('./utils-fc077139.js');
|
|
18
|
+
const bcm = require('./bcm-1d1fcf21.js');
|
|
19
|
+
const captionTemplate = require('./caption-template-85a18b6d.js');
|
|
20
|
+
const index$1 = require('./index-95ae50d0.js');
|
|
21
|
+
require('./types-cc4adee7.js');
|
|
22
|
+
require('./types-7523fd99.js');
|
|
23
|
+
const isLoadDecorator = require('./is-load-decorator-15036f37.js');
|
|
24
|
+
require('./colors-56282b00.js');
|
|
25
|
+
require('./colors-250d0982.js');
|
|
26
|
+
require('./_commonjsHelpers-ed84c3ca.js');
|
|
27
|
+
require('./package-dda6f822.js');
|
|
28
|
+
|
|
29
|
+
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
30
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
31
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
32
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
33
|
+
else
|
|
34
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
35
|
+
if (d = decorators[i])
|
|
36
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
37
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
38
|
+
};
|
|
39
|
+
const BcmRadioGroup = class {
|
|
40
|
+
constructor(hostRef) {
|
|
41
|
+
index.registerInstance(this, hostRef);
|
|
42
|
+
this.change = index.createEvent(this, "bcm-change", 7);
|
|
43
|
+
this._id = generate.Generate.UID();
|
|
44
|
+
this.label = undefined;
|
|
45
|
+
this.name = undefined;
|
|
46
|
+
this.value = null;
|
|
47
|
+
this.defaultValue = undefined;
|
|
48
|
+
this.size = bcm.Bcm.Size.medium;
|
|
49
|
+
this.disabled = undefined;
|
|
50
|
+
this.hidden = false;
|
|
51
|
+
this.required = false;
|
|
52
|
+
this.gap = undefined;
|
|
53
|
+
this.direction = bcm.Bcm.Direction.horizontal;
|
|
54
|
+
this.fullWidth = false;
|
|
55
|
+
this.items = [];
|
|
56
|
+
this.caption = undefined;
|
|
57
|
+
this.noCaption = false;
|
|
58
|
+
this.captionError = undefined;
|
|
59
|
+
this.captionType = bcm.Bcm.Status.default;
|
|
60
|
+
this.captionCache = undefined;
|
|
61
|
+
this.captionTypeCache = undefined;
|
|
62
|
+
}
|
|
63
|
+
get radios() {
|
|
64
|
+
return Array.from(this.el.querySelectorAll("bcm-radio"));
|
|
65
|
+
}
|
|
66
|
+
get Items() {
|
|
67
|
+
return this.items;
|
|
68
|
+
}
|
|
69
|
+
connectedCallback() {
|
|
70
|
+
this.captionCache = this.caption;
|
|
71
|
+
this.captionTypeCache = this.captionType;
|
|
72
|
+
}
|
|
73
|
+
updateValue() {
|
|
74
|
+
var _a, _b, _c;
|
|
75
|
+
this.value = (_c = (_b = (_a = this.radios) === null || _a === void 0 ? void 0 : _a.find(radio => radio.checked)) === null || _b === void 0 ? void 0 : _b.value) !== null && _c !== void 0 ? _c : null;
|
|
76
|
+
}
|
|
77
|
+
setRadioUpdate() {
|
|
78
|
+
var _a;
|
|
79
|
+
(_a = this.radios) === null || _a === void 0 ? void 0 : _a.forEach(radio => {
|
|
80
|
+
radio.disabled = this.disabled || radio.disabled;
|
|
81
|
+
radio.size = this.size;
|
|
82
|
+
if (this.defaultValue) {
|
|
83
|
+
radio.checked = radio.value == this.defaultValue;
|
|
84
|
+
}
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
watchDisabled(newVal, _oldVal) {
|
|
88
|
+
var _a;
|
|
89
|
+
(_a = this.radios) === null || _a === void 0 ? void 0 : _a.forEach(radio => radio.disabled = newVal);
|
|
90
|
+
}
|
|
91
|
+
watchDefaultValue(newVal, _oldVal) {
|
|
92
|
+
var _a;
|
|
93
|
+
(_a = this.radios) === null || _a === void 0 ? void 0 : _a.forEach(radio => radio.checked = radio.value == newVal);
|
|
94
|
+
this.updateValue();
|
|
95
|
+
this.change.emit(this.value);
|
|
96
|
+
}
|
|
97
|
+
componentWillLoad() {
|
|
98
|
+
this.setRadioUpdate();
|
|
99
|
+
this.updateValue();
|
|
100
|
+
}
|
|
101
|
+
handleChange(e) {
|
|
102
|
+
var _a, _b;
|
|
103
|
+
e.stopPropagation();
|
|
104
|
+
e.preventDefault();
|
|
105
|
+
const checked = (_a = e.target.checked) !== null && _a !== void 0 ? _a : false;
|
|
106
|
+
(_b = this.radios) === null || _b === void 0 ? void 0 : _b.forEach(radio => {
|
|
107
|
+
radio.checked = radio.id == e.target.id ? !checked : false;
|
|
108
|
+
});
|
|
109
|
+
this.updateValue();
|
|
110
|
+
this.change.emit(this.value);
|
|
111
|
+
}
|
|
112
|
+
;
|
|
113
|
+
async setClear() {
|
|
114
|
+
var _a;
|
|
115
|
+
this.value = null;
|
|
116
|
+
(_a = this.radios) === null || _a === void 0 ? void 0 : _a.forEach(radio => {
|
|
117
|
+
radio.checked = false;
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
async resetCaption() {
|
|
121
|
+
await utils.delay(10);
|
|
122
|
+
this.caption = this.captionCache;
|
|
123
|
+
this.captionType = this.captionTypeCache;
|
|
124
|
+
this.captionError = null;
|
|
125
|
+
await utils.delay(10);
|
|
126
|
+
return Promise.resolve();
|
|
127
|
+
}
|
|
128
|
+
async check(itemId, checked = true) {
|
|
129
|
+
var _a;
|
|
130
|
+
(_a = this.radios) === null || _a === void 0 ? void 0 : _a.forEach(radio => {
|
|
131
|
+
radio.checked = radio.id == itemId || radio.value == itemId ? checked : false;
|
|
132
|
+
});
|
|
133
|
+
this.updateValue();
|
|
134
|
+
this.change.emit(this.value);
|
|
135
|
+
}
|
|
136
|
+
async get() {
|
|
137
|
+
return this.value;
|
|
138
|
+
}
|
|
139
|
+
async set(data) {
|
|
140
|
+
await this.check(data);
|
|
141
|
+
}
|
|
142
|
+
async getValue() {
|
|
143
|
+
return this.value;
|
|
144
|
+
}
|
|
145
|
+
render() {
|
|
146
|
+
var _a, _b;
|
|
147
|
+
const { direction, fullWidth, gap, label, size, required, disabled, caption, captionError, captionType, noCaption } = this;
|
|
148
|
+
return (index.h(index.Host, { class: "tw-mb-2 tw-flex tw-flex-col", role: "radiogroup", "aria-labelledby": "radiogroup" }, label && index.h("bcm-label", { type: captionType, value: label, required: required }), index.h("div", { class: index$1.classnames("tw-flex tw-flex-wrap", direction == bcm.Bcm.Direction.horizontal ? "tw-flex-row" : "tw-flex-col", fullWidth && "tw-w-full"), style: { "gap": gap } }, index.h("slot", null), ((_a = this.Items) === null || _a === void 0 ? void 0 : _a.length) > 0 &&
|
|
149
|
+
((_b = this.Items) === null || _b === void 0 ? void 0 : _b.map(item => (index.h("bcm-radio", { id: item.id, value: item.value, disabled: disabled || item.disabled, checked: item.checked, color: item.color, size: size }, item.label))))), index.h(captionTemplate.CaptionTemplate, { noCaption: noCaption, captionType: captionType, captionError: captionError, caption: caption })));
|
|
150
|
+
}
|
|
151
|
+
get el() { return index.getElement(this); }
|
|
152
|
+
static get watchers() { return {
|
|
153
|
+
"disabled": ["watchDisabled"],
|
|
154
|
+
"defaultValue": ["watchDefaultValue"]
|
|
155
|
+
}; }
|
|
156
|
+
};
|
|
157
|
+
__decorate([
|
|
158
|
+
isLoadDecorator.IsLoad()
|
|
159
|
+
], BcmRadioGroup.prototype, "el", void 0);
|
|
160
|
+
|
|
161
|
+
exports.bcm_radio_group = BcmRadioGroup;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Stencil
|
|
3
|
+
* Copyright (c) Bromcom.
|
|
4
|
+
*/
|
|
5
|
+
'use strict';
|
|
6
|
+
|
|
7
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
8
|
+
|
|
9
|
+
const index = require('./index-c591ecec.js');
|
|
10
|
+
const bcm = require('./bcm-1d1fcf21.js');
|
|
11
|
+
require('./color-helper-dc98a2ca.js');
|
|
12
|
+
require('./datetime-helper-eaf4fadb.js');
|
|
13
|
+
const generate = require('./generate-bff3fa38.js');
|
|
14
|
+
require('./number-helper-9bc46d37.js');
|
|
15
|
+
require('./string-helper-9cdfb273.js');
|
|
16
|
+
require('./validators-c0eef77a.js');
|
|
17
|
+
require('./element-dragger-a8562f82.js');
|
|
18
|
+
const index$1 = require('./index-95ae50d0.js');
|
|
19
|
+
require('./colors-56282b00.js');
|
|
20
|
+
require('./utils-fc077139.js');
|
|
21
|
+
require('./colors-250d0982.js');
|
|
22
|
+
require('./_commonjsHelpers-ed84c3ca.js');
|
|
23
|
+
require('./package-dda6f822.js');
|
|
24
|
+
|
|
25
|
+
const BcmRadio = class {
|
|
26
|
+
constructor(hostRef) {
|
|
27
|
+
index.registerInstance(this, hostRef);
|
|
28
|
+
this.radioChange = index.createEvent(this, "bcm-radio-change", 7);
|
|
29
|
+
this.focus = index.createEvent(this, "bcm-focus", 7);
|
|
30
|
+
this.blur = index.createEvent(this, "bcm-blur", 7);
|
|
31
|
+
this._id = generate.Generate.UID();
|
|
32
|
+
this.checked = undefined;
|
|
33
|
+
this.value = undefined;
|
|
34
|
+
this.disabled = false;
|
|
35
|
+
this.size = bcm.Bcm.Size.medium;
|
|
36
|
+
this.color = undefined;
|
|
37
|
+
}
|
|
38
|
+
render() {
|
|
39
|
+
const { value, size, disabled, checked, _id, color } = this;
|
|
40
|
+
return (index.h(index.Host, { class: index$1.classnames("tw-cursor-pointer tw-font-sans tw-mb-1.5 tw-mt-1", {
|
|
41
|
+
"tw-cursor-pointer tw-text-slate-600": !disabled,
|
|
42
|
+
"tw-cursor-not-allowed tw-text-slate-400": disabled,
|
|
43
|
+
"tw-text-1": size === bcm.Bcm.Size.small,
|
|
44
|
+
"tw-text-2.5": size === bcm.Bcm.Size.medium,
|
|
45
|
+
"tw-text-4": size === bcm.Bcm.Size.large,
|
|
46
|
+
}), style: (generate.Generate.getTwColor(color)) }, index.h("label", { class: index$1.classnames("tw-inline-flex tw-flex-row tw-gap-2 tw-mr-2 tw-items-center", disabled ? "tw-cursor-not-allowed" : "tw-cursor-pointer"), htmlFor: _id + '-input' }, index.h("input", { role: "radio", "aria-label": "radio", id: _id + '-input', type: "radio", value: value, checked: checked, disabled: disabled, class: index$1.classnames("tw-flex tw-items-center tw-justify-center", "tw-relative tw-appearance-none tw-border tw-border-solid tw-rounded-full tw-cursor-pointer tw-transition tw-ease-in-out ", "tw-m-0", "before:tw-content-[''] before:tw-absolute before:tw-rounded-full", {
|
|
47
|
+
"tw-w-4 tw-h-4 before:tw-w-2.5 before:tw-h-2.5": size === bcm.Bcm.Size.medium,
|
|
48
|
+
"tw-w-3.5 tw-h-3.5 before:tw-w-2 before:tw-h-2": size === bcm.Bcm.Size.small,
|
|
49
|
+
"tw-w-4.5 tw-h-4.5 before:tw-w-3 before:tw-h-3": size === bcm.Bcm.Size.large,
|
|
50
|
+
}, "focus:tw-outline-none focus:tw-shadow-outline",
|
|
51
|
+
// default
|
|
52
|
+
`tw-border-slate-400 tw-bg-slate-50`, `checked:tw-border-default-500`, `checked:before:tw-bg-default-500`,
|
|
53
|
+
// disabled
|
|
54
|
+
`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 && index$1.classnames(
|
|
55
|
+
// hover
|
|
56
|
+
`hover:tw-border-default-600`, `hover:checked:tw-border-default-600`, `hover:checked:before:tw-bg-default-600`,
|
|
57
|
+
// focus-visible
|
|
58
|
+
`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`,
|
|
59
|
+
// active
|
|
60
|
+
`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() }), index.h("slot", null))));
|
|
61
|
+
}
|
|
62
|
+
get el() { return index.getElement(this); }
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
exports.bcm_radio = BcmRadio;
|
|
@@ -8,11 +8,11 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
8
8
|
|
|
9
9
|
const index = require('./index-c591ecec.js');
|
|
10
10
|
const index$1 = require('./index-95ae50d0.js');
|
|
11
|
-
const generate = require('./generate-
|
|
11
|
+
const generate = require('./generate-bff3fa38.js');
|
|
12
12
|
const bcm = require('./bcm-1d1fcf21.js');
|
|
13
13
|
const utils = require('./utils-fc077139.js');
|
|
14
14
|
require('./_commonjsHelpers-ed84c3ca.js');
|
|
15
|
-
require('./package-
|
|
15
|
+
require('./package-dda6f822.js');
|
|
16
16
|
require('./colors-250d0982.js');
|
|
17
17
|
|
|
18
18
|
const rangeCss = "@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-range{font-family:\"Inter\", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;width:100%;position:relative;display:block;margin:16px 0}.bcm-range input[type=range]{position:absolute;pointer-events:none;-webkit-appearance:none;z-index:4;height:30px;width:100%;top:-17px;opacity:0}.bcm-range input[type=range].single{display:none}.bcm-range input[type=range]::-webkit-slider-thumb{pointer-events:all;width:30px;height:30px;border-radius:0;border:0 none;background-color:red;-webkit-appearance:none;cursor:pointer}.bcm-range__container-bar{width:calc(100% - 24px);left:12px;position:relative}.bcm-range__container-bar-track{position:absolute;top:-2px;width:100%;height:4px;background-color:var(--bcm-new-ds-color-slate-300);z-index:1}.bcm-range__container-bar-range{position:absolute;top:-2px;left:22.22%;right:22.22%;height:4px;background-color:var(--bcm-new-ds-color-blue-500);z-index:2}.bcm-range__container-bar-thumb{position:absolute;top:0;width:16px;height:16px;background-color:var(--bcm-new-ds-color-blue-500);border-radius:50%;z-index:3;transition:box-shadow 0.2s ease-in-out;display:flex;align-items:center;justify-content:center}.bcm-range__container-bar-thumb>span{display:flex;width:100%;height:100%}.bcm-range__container-bar-thumb.hover{box-shadow:0px 2px 2px rgba(0, 0, 0, 0.1), 0px 3px 1px rgba(0, 0, 0, 0.05), 0px 1px 5px rgba(0, 0, 0, 0.1);cursor:pointer}.bcm-range__container-bar-thumb.hidden{display:none}.bcm-range__container-bar-thumb.left{left:22.22222%;transform:translate(-8px, -8px)}.bcm-range__container-bar-thumb.right{right:0%;transform:translate(8px, -8px)}.bcm-range .ticks{position:absolute;z-index:0;top:0;left:0;width:100%;display:flex;justify-content:space-between;padding:4px 0;user-select:none}.bcm-range .tick{position:relative;display:flex;justify-content:center;width:1px;color:var(--bcm-new-ds-color-slate-300);cursor:pointer;height:8px;line-height:32px;margin-bottom:8px;z-index:-1;transition:color 0.1s ease-in-out}.bcm-range .tick::before,.bcm-range .tick::after{content:\" \";position:absolute;width:1px;height:8px;background-color:var(--bcm-new-ds-color-slate-300);z-index:-1;transition:background-color 0.1s ease-in-out}.bcm-range .tick::before{top:-16px}.bcm-range .tick::after{top:0}.bcm-range .tick.hover{color:var(--bcm-new-ds-color-slate-400)}.bcm-range .tick.hover::before,.bcm-range .tick.hover::after{background-color:var(--bcm-new-ds-color-slate-400)}.bcm-range .touch{position:absolute;width:calc(100% + 48px);left:-24px;top:-17px;opacity:0;height:45px;z-index:2;background-color:transparent;display:flex;flex-direction:row;justify-content:space-between}.bcm-range .touch-point{cursor:pointer;flex:1;border:1px solid var(--bcm-new-ds-color-slate-300);box-sizing:border-box;background-color:var(--bcm-new-ds-color-slate-300)}.bcm-range .touch-point:hover{border-color:var(--bcm-new-ds-color-blue-500);background-color:var(--bcm-new-ds-color-blue-500)}.bcm-range .touch::after,.bcm-range .touch::before{content:\"\";position:absolute;width:24px;height:100%;top:0}.bcm-range .touch::before{left:0}.bcm-range .touch::after{right:0}.bcm-range.vertical{margin:0 16px;padding:12px 0}.bcm-range.vertical .touch{width:calc(100% + 12px);left:-6px;top:-17px}.bcm-range.vertical .touch::after,.bcm-range.vertical .touch::before{width:12px}.bcm-range.vertical .bcm-range__container{transform:rotate(270deg)}.bcm-range.vertical .bcm-range__container .ticks .tick-text{position:absolute;top:0px;width:100%;transform:rotate(90deg)}";
|