bromcom-ui 2.12.4-rc.0 → 3.0.0-alpha.1
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-2a15a39d.entry.js → p-03337609.entry.js} +1 -1
- package/dist/bromcom-ui/{p-652c1d30.entry.js → p-14b04371.entry.js} +1 -1
- package/dist/bromcom-ui/{p-32a5791b.entry.js → p-19ed830b.entry.js} +1 -1
- package/dist/bromcom-ui/{p-55a44163.entry.js → p-1a7e1a74.entry.js} +1 -1
- package/dist/bromcom-ui/{p-63646141.entry.js → p-1fbec9e4.entry.js} +1 -1
- package/dist/bromcom-ui/p-217934a4.entry.js +5 -0
- package/dist/bromcom-ui/p-22e3161d.entry.js +5 -0
- package/dist/bromcom-ui/{p-b1754fc5.entry.js → p-2a0b6273.entry.js} +1 -1
- package/dist/bromcom-ui/{p-fcc6f71e.js → p-2d0ff35e.js} +1 -1
- package/dist/bromcom-ui/p-367bc8e0.js +5 -0
- package/dist/bromcom-ui/{p-b689c630.entry.js → p-369948e7.entry.js} +1 -1
- package/dist/bromcom-ui/{p-fcbd8a75.entry.js → p-3b079331.entry.js} +1 -1
- package/dist/bromcom-ui/{p-4211b6bb.entry.js → p-46628fcd.entry.js} +1 -1
- package/dist/bromcom-ui/{p-49c6a7eb.entry.js → p-485ed6c1.entry.js} +1 -1
- package/dist/bromcom-ui/{p-8129ed3a.js → p-499d8454.js} +1 -1
- package/dist/bromcom-ui/{p-b1382dbd.entry.js → p-4a71c61a.entry.js} +1 -1
- package/dist/bromcom-ui/{p-3182df7e.js → p-4d2bf0e7.js} +1 -1
- package/dist/bromcom-ui/{p-1fb713c8.entry.js → p-51ba3626.entry.js} +1 -1
- package/dist/bromcom-ui/p-556010cb.js +5 -0
- package/dist/bromcom-ui/{p-a4f0590d.entry.js → p-583982a6.entry.js} +1 -1
- package/dist/bromcom-ui/{p-d4c75e60.entry.js → p-5bf051b9.entry.js} +1 -1
- package/dist/bromcom-ui/p-5c4939a7.js +5 -0
- package/dist/bromcom-ui/p-5ea9881d.entry.js +5 -0
- package/dist/bromcom-ui/p-64fad38b.js +11 -0
- package/dist/bromcom-ui/p-6e5f5f36.js +1 -1
- package/dist/bromcom-ui/p-6f11eb8e.entry.js +5 -0
- package/dist/bromcom-ui/p-6f224017.entry.js +5 -0
- package/dist/bromcom-ui/{p-3c7a0345.js → p-6f2e4c9b.js} +1 -1
- package/dist/bromcom-ui/{p-5ae0a59b.js → p-6f861fed.js} +1 -1
- package/dist/bromcom-ui/{p-9eb250d4.entry.js → p-7416d1f6.entry.js} +1 -1
- package/dist/bromcom-ui/{p-d1298c40.js → p-7b21fcb9.js} +1 -1
- package/dist/bromcom-ui/p-815f884d.entry.js +5 -0
- package/dist/bromcom-ui/p-8363990a.entry.js +5 -0
- package/dist/bromcom-ui/p-8457670e.entry.js +5 -0
- package/dist/bromcom-ui/{p-f82db5dd.js → p-858cee66.js} +1 -1
- package/dist/bromcom-ui/{p-e45c1546.js → p-85eedabc.js} +1 -1
- package/dist/bromcom-ui/{p-65783175.js → p-8e5e362a.js} +1 -1
- package/dist/bromcom-ui/{p-34b9cf32.entry.js → p-9015080d.entry.js} +1 -1
- package/dist/bromcom-ui/{p-40a29024.entry.js → p-9d41ff2a.entry.js} +1 -1
- package/dist/bromcom-ui/p-a080c8ea.entry.js +5 -0
- package/dist/bromcom-ui/p-a141b2bc.entry.js +5 -0
- package/dist/bromcom-ui/{p-4680865d.js → p-a2df6c19.js} +1 -1
- package/dist/bromcom-ui/p-a313fba6.js +1 -1
- package/dist/bromcom-ui/{p-c097f624.entry.js → p-a6b4a46d.entry.js} +1 -1
- package/dist/bromcom-ui/p-a6b696de.js +5 -0
- package/dist/bromcom-ui/p-acfceb2b.entry.js +5 -0
- package/dist/bromcom-ui/{p-c0aa5289.entry.js → p-b46e368e.entry.js} +1 -1
- package/dist/bromcom-ui/p-b85227c8.entry.js +5 -0
- package/dist/bromcom-ui/p-c47463b1.entry.js +5 -0
- package/dist/bromcom-ui/{p-defdd05b.entry.js → p-c4bf7f7e.entry.js} +1 -1
- package/dist/bromcom-ui/{p-826a85ed.entry.js → p-c5bb29d0.entry.js} +1 -1
- package/dist/bromcom-ui/{p-c3b74f76.entry.js → p-cc70861b.entry.js} +1 -1
- package/dist/bromcom-ui/p-ce452032.entry.js +16 -0
- package/dist/bromcom-ui/{p-b4b9ca15.entry.js → p-d0e56f5f.entry.js} +1 -1
- package/dist/bromcom-ui/{p-aa6887d7.js → p-d4e4aeee.js} +1 -1
- package/dist/bromcom-ui/{p-6b5ed4d8.js → p-d65bc842.js} +1 -1
- package/dist/bromcom-ui/p-dc73abe2.js +5 -0
- package/dist/bromcom-ui/p-dcd69786.entry.js +5 -0
- package/dist/bromcom-ui/{p-50a1591e.js → p-e037ee2b.js} +1 -1
- package/dist/bromcom-ui/{p-874053cc.entry.js → p-e7c31126.entry.js} +1 -1
- package/dist/bromcom-ui/p-e9a43560.js +5 -0
- package/dist/bromcom-ui/p-ea24a822.entry.js +5 -0
- package/dist/bromcom-ui/{p-f815dc7a.entry.js → p-fdd4cabe.entry.js} +1 -1
- package/dist/cjs/{bcm-489c9b1a.js → bcm-1d1fcf21.js} +4 -4
- package/dist/cjs/bcm-accordion_68.cjs.entry.js +47182 -0
- package/dist/cjs/bcm-attendance-actions-comment.cjs.entry.js +8 -8
- package/dist/cjs/bcm-attendance-actions-dropdown.cjs.entry.js +8 -8
- package/dist/cjs/bcm-breadcrumb.cjs.entry.js +2 -2
- package/dist/cjs/bcm-caption.cjs.entry.js +9 -9
- package/dist/cjs/bcm-card.cjs.entry.js +5 -5
- package/dist/cjs/bcm-date-picker.cjs.entry.js +4 -4
- package/dist/cjs/bcm-datetime-picker.cjs.entry.js +8 -8
- package/dist/cjs/bcm-default.cjs.entry.js +2 -2
- package/dist/cjs/bcm-form-2.cjs.entry.js +5 -5
- package/dist/cjs/bcm-input-2.cjs.entry.js +9 -9
- package/dist/cjs/bcm-input-custom.cjs.entry.js +2 -2
- package/dist/cjs/bcm-input-dropdown.cjs.entry.js +9 -9
- package/dist/cjs/bcm-modal-2-footer.cjs.entry.js +6 -6
- package/dist/cjs/bcm-modal-2-header.cjs.entry.js +6 -6
- package/dist/cjs/bcm-modal-2.cjs.entry.js +7 -7
- package/dist/cjs/bcm-number-input.cjs.entry.js +9 -9
- package/dist/cjs/bcm-skeleton.cjs.entry.js +6 -6
- package/dist/cjs/bcm-table.cjs.entry.js +6 -6
- package/dist/cjs/bcm-tag.cjs.entry.js +15 -15
- package/dist/cjs/bcm-time-picker.cjs.entry.js +4 -4
- package/dist/cjs/bcm-toast.cjs.entry.js +18 -18
- package/dist/cjs/bromcom-ui.cjs.js +3 -3
- package/dist/cjs/{caption-template-85a18b6d.js → caption-template-f8a78504.js} +9 -9
- package/dist/cjs/{floating-ui-21890d11.js → floating-ui-5b396838.js} +2 -2
- package/dist/cjs/{generate-b55bc9ac.js → generate-a25d8fc8.js} +1 -1
- package/dist/cjs/{global-ae5a410a.js → global-08c079a8.js} +1 -1
- package/dist/cjs/{input.style-b5676e6a.js → input.style-bee84fb0.js} +1 -1
- package/dist/cjs/{label-template-6da4808b.js → label-template-fc301e0c.js} +6 -6
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{number-helper-4a5c0bb5.js → number-helper-3a56812f.js} +1 -1
- package/dist/cjs/old-bcm-popover-box.cjs.entry.js +7 -7
- package/dist/cjs/old-bcm-popover.cjs.entry.js +5 -5
- package/dist/cjs/{package-1757d4e0.js → package-6afe17f3.js} +1 -1
- package/dist/cjs/{popover-placement-e7d6eabd.js → popover-placement-02e6101b.js} +1 -1
- package/dist/cjs/{slot-template-c8e2816c.js → slot-template-df7b5b59.js} +1 -1
- package/dist/cjs/{string-helper-f9184277.js → string-helper-9cdfb273.js} +2 -2
- package/dist/cjs/{validators-51a16def.js → validators-78797513.js} +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/atoms/avatar/avatar.js +1 -1
- package/dist/collection/components/atoms/avatar/avatar.style.js +4 -4
- package/dist/collection/components/atoms/badge/badge.style.js +8 -8
- package/dist/collection/components/atoms/button/button.css +90 -92
- package/dist/collection/components/atoms/button/button.js +45 -46
- package/dist/collection/components/atoms/chip/chip.css +27 -29
- package/dist/collection/components/atoms/chip/chip.js +10 -11
- package/dist/collection/components/atoms/divider/divider.css +4 -4
- package/dist/collection/components/atoms/link/link.css +10 -11
- package/dist/collection/components/molecules/accordion/accordion.css +23 -0
- package/dist/collection/components/molecules/accordion/accordion.js +1 -1
- package/dist/collection/components/molecules/alert/alert.css +28 -24
- package/dist/collection/components/molecules/alert/alert.js +26 -36
- package/dist/collection/components/molecules/button-group/button-group.css +15 -23
- package/dist/collection/components/molecules/checkbox/checkbox.css +15 -15
- package/dist/collection/components/molecules/checkbox/checkbox.js +8 -9
- package/dist/collection/components/molecules/color-input/color-input.js +1 -1
- package/dist/collection/components/molecules/empty/empty.js +1 -1
- package/dist/collection/components/molecules/error-layout/error-layout.css +13 -15
- package/dist/collection/components/molecules/error-layout/error-layout.js +1 -1
- package/dist/collection/components/molecules/expansion-panel/expansion-panel.css +25 -22
- package/dist/collection/components/molecules/expansion-panel/expansion-panel.js +1 -1
- package/dist/collection/components/molecules/input/input.css +21 -13
- package/dist/collection/components/molecules/input/input.style.js +1 -1
- package/dist/collection/components/molecules/menu/menu.css +29 -23
- package/dist/collection/components/molecules/modal/modal.css +42 -35
- package/dist/collection/components/molecules/modal/modal.js +1 -1
- package/dist/collection/components/molecules/radio/radio.js +10 -10
- package/dist/collection/components/molecules/range/range.css +5 -8
- package/dist/collection/components/molecules/search/search.css +21 -13
- package/dist/collection/components/molecules/stepper/stepper.css +6 -5
- package/dist/collection/components/molecules/switch/switch.css +22 -21
- package/dist/collection/components/molecules/tab-group/tab-item-header.js +6 -6
- package/dist/collection/components/molecules/textarea/textarea.css +21 -13
- package/dist/collection/components/organism/list/list.css +44 -44
- package/dist/collection/components/organism/list/list.js +19 -73
- package/dist/collection/components/other/shortcut/shortcut.js +4 -4
- package/dist/collection/components/other/toast/toast.js +7 -7
- package/dist/collection/components/third-parts/colorful/colorful.css +21 -13
- package/dist/collection/components/third-parts/rc-picker/rc-picker.css +13 -9
- package/dist/collection/global/components/_checkbox.css +15 -15
- package/dist/collection/helper/popover-helper.js +5 -5
- package/dist/collection/helper/tooltip-helper.js +6 -6
- package/dist/collection/templates/caption-template.js +9 -9
- package/dist/collection/templates/input-template.js +1 -1
- package/dist/collection/templates/label-template.js +4 -4
- package/dist/collection/templates/step-template.js +4 -4
- package/dist/components/avatar.js +6 -6
- package/dist/components/badge.js +9 -9
- package/dist/components/bcm-accordion.js +2 -2
- package/dist/components/bcm-alert.js +28 -41
- package/dist/components/bcm-attendance-actions-comment.js +1 -1
- package/dist/components/bcm-attendance-actions-dropdown.js +1 -1
- package/dist/components/bcm-attendance-actions.js +1 -1
- package/dist/components/bcm-button-group.js +1 -1
- package/dist/components/bcm-checkbox-group.js +1 -1
- package/dist/components/bcm-color-input.js +1 -1
- package/dist/components/bcm-error-layout.js +2 -2
- package/dist/components/bcm-expansion-panel.js +2 -2
- package/dist/components/bcm-input-2.js +1 -1
- package/dist/components/bcm-input-dropdown.js +1 -1
- package/dist/components/bcm-modal.js +2 -2
- package/dist/components/bcm-popover.js +5 -5
- package/dist/components/bcm-range.js +1 -1
- package/dist/components/bcm-shortcut.js +4 -4
- package/dist/components/bcm-stepper.js +6 -6
- package/dist/components/bcm-switch.js +1 -1
- package/dist/components/bcm-tab-item-header.js +6 -6
- package/dist/components/bcm-toast.js +7 -7
- package/dist/components/button.js +47 -48
- package/dist/components/caption-template.js +9 -9
- package/dist/components/checkbox-lite.js +1 -1
- package/dist/components/checkbox.js +9 -10
- package/dist/components/chip.js +11 -12
- package/dist/components/colorful.js +1 -1
- package/dist/components/divider.js +1 -1
- package/dist/components/empty.js +1 -1
- package/dist/components/generate.js +1 -1
- package/dist/components/index4.js +2549 -171
- package/dist/components/index5.js +171 -2549
- package/dist/components/input-template.js +1 -1
- package/dist/components/input.js +1 -1
- package/dist/components/input.style.js +2 -2
- package/dist/components/label.js +4 -4
- package/dist/components/link.js +1 -1
- package/dist/components/list.js +21 -58
- package/dist/components/menu.js +1 -1
- package/dist/components/radio.js +10 -10
- package/dist/components/rc-picker.js +1 -1
- package/dist/components/search.js +2 -2
- package/dist/components/skeleton.js +1 -1
- package/dist/components/step.js +1 -1
- package/dist/components/textarea.js +1 -1
- package/dist/components/tooltip-helper.js +6 -6
- package/dist/esm/{_commonjsHelpers-be0d4ec8.js → _commonjsHelpers-7002e5de.js} +1 -1
- package/dist/esm/bcm-a50d55ba.js +1 -1
- package/dist/esm/bcm-accordion_68.entry.js +47111 -0
- package/dist/esm/bcm-attendance-actions-comment.entry.js +12 -12
- package/dist/esm/bcm-attendance-actions-dropdown.entry.js +13 -13
- package/dist/esm/bcm-autocomplete.entry.js +3 -3
- package/dist/esm/bcm-box.entry.js +1 -1
- package/dist/esm/bcm-breadcrumb.entry.js +6 -6
- package/dist/esm/bcm-caption.entry.js +14 -14
- package/dist/esm/bcm-card.entry.js +10 -10
- package/dist/esm/bcm-colorpicker.entry.js +5 -5
- package/dist/esm/bcm-content.entry.js +1 -1
- package/dist/esm/bcm-date-picker.entry.js +9 -9
- package/dist/esm/bcm-datetime-picker.entry.js +13 -13
- package/dist/esm/bcm-default.entry.js +5 -5
- package/dist/esm/bcm-form-2.entry.js +8 -8
- package/dist/esm/bcm-form-group.entry.js +1 -1
- package/dist/esm/bcm-input-2.entry.js +11 -11
- package/dist/esm/bcm-input-custom.entry.js +6 -6
- package/dist/esm/bcm-input-dropdown.entry.js +14 -14
- package/dist/esm/bcm-message.entry.js +3 -3
- package/dist/esm/bcm-modal-2-footer.entry.js +12 -12
- package/dist/esm/bcm-modal-2-header.entry.js +11 -11
- package/dist/esm/bcm-modal-2.entry.js +13 -13
- package/dist/esm/bcm-notification.entry.js +3 -3
- package/dist/esm/bcm-number-input.entry.js +15 -15
- package/dist/esm/bcm-overlay_2.entry.js +4 -4
- package/dist/esm/bcm-react-number.entry.js +3 -3
- package/dist/esm/bcm-result.entry.js +3 -3
- package/dist/esm/bcm-select-group.entry.js +3 -3
- package/dist/esm/bcm-select-option.entry.js +3 -3
- package/dist/esm/bcm-skeleton.entry.js +11 -11
- package/dist/esm/bcm-tab-pane.entry.js +3 -3
- package/dist/esm/bcm-table.entry.js +12 -12
- package/dist/esm/bcm-tabs-content.entry.js +4 -4
- package/dist/esm/bcm-tag.entry.js +9 -9
- package/dist/esm/bcm-time-picker.entry.js +9 -9
- package/dist/esm/bcm-timeline-item.entry.js +3 -3
- package/dist/esm/bcm-timeline.entry.js +3 -3
- package/dist/esm/bcm-toast.entry.js +16 -16
- package/dist/esm/bcm-treeview-group.entry.js +1 -1
- package/dist/esm/bromcom-ui.js +5 -5
- package/dist/esm/{caption-template-9d0ea503.js → caption-template-16dd9444.js} +11 -11
- package/dist/esm/{color-helper-e74656af.js → color-helper-ba15b0d8.js} +2 -2
- package/dist/esm/{colors-df32bb43.js → colors-ed4e7579.js} +1 -1
- package/dist/esm/{element-dragger-7ea06c76.js → element-dragger-b75266e6.js} +1 -1
- package/dist/esm/floating-ui-3f4394da.js +1 -1
- package/dist/esm/{generate-27c06421.js → generate-a4b85775.js} +2 -2
- package/dist/esm/{global-0dac0bf2.js → global-1baa11cd.js} +2 -2
- package/dist/esm/{index-b84bc8c9.js → index-00c8a8f7.js} +1 -1
- package/dist/esm/{index-a6d9d0af.js → index-0d3a56ec.js} +1 -1
- package/dist/esm/{index-b3026131.js → index-4614b7f0.js} +1 -1
- package/dist/esm/{input.style-e855c0f3.js → input.style-0ddc0073.js} +1 -1
- package/dist/esm/{is-load-decorator-613d613a.js → is-load-decorator-b8ca22f2.js} +1 -1
- package/dist/esm/{label-template-8c5948ab.js → label-template-4c3797f4.js} +7 -7
- package/dist/esm/loader.js +5 -5
- package/dist/esm/{number-helper-94a51ec2.js → number-helper-872d5482.js} +1 -1
- package/dist/esm/old-bcm-popover-box.entry.js +11 -11
- package/dist/esm/old-bcm-popover.entry.js +7 -7
- package/dist/esm/{package-34090aad.js → package-1d6f13ed.js} +1 -1
- package/dist/esm/{popover-placement-2f5939ea.js → popover-placement-2bf3a181.js} +1 -1
- package/dist/esm/{slot-template-f85d540c.js → slot-template-e0202c5a.js} +2 -2
- package/dist/esm/{string-helper-85990695.js → string-helper-69203215.js} +2 -2
- package/dist/esm/{utils-b3338faf.js → utils-7727d09e.js} +1 -1
- package/dist/esm/{validators-7e605ca5.js → validators-e9800e9a.js} +1 -1
- package/dist/types/components/atoms/avatar/avatar.style.d.ts +21 -21
- package/dist/types/components/molecules/alert/alert.d.ts +1 -3
- package/dist/types/components/organism/list/list.d.ts +0 -4
- package/dist/types/components.d.ts +0 -4
- package/package.json +1 -1
- package/dist/bromcom-ui/p-0089f9c5.entry.js +0 -5
- package/dist/bromcom-ui/p-03cc10f8.entry.js +0 -5
- package/dist/bromcom-ui/p-075dd6ba.entry.js +0 -5
- package/dist/bromcom-ui/p-07971537.entry.js +0 -5
- package/dist/bromcom-ui/p-0d952c81.js +0 -5
- package/dist/bromcom-ui/p-0e97b110.js +0 -5
- package/dist/bromcom-ui/p-12687eaa.entry.js +0 -5
- package/dist/bromcom-ui/p-1441edac.entry.js +0 -5
- package/dist/bromcom-ui/p-17bc7e7e.entry.js +0 -5
- package/dist/bromcom-ui/p-1ac9eb84.entry.js +0 -5
- package/dist/bromcom-ui/p-1bf1e8ad.entry.js +0 -5
- package/dist/bromcom-ui/p-1c8ed0b3.entry.js +0 -5
- package/dist/bromcom-ui/p-1d663e83.entry.js +0 -5
- package/dist/bromcom-ui/p-21b4ca2e.entry.js +0 -5
- package/dist/bromcom-ui/p-2ebe3b67.entry.js +0 -5
- package/dist/bromcom-ui/p-30a11f2e.entry.js +0 -5
- package/dist/bromcom-ui/p-30cc83af.js +0 -5
- package/dist/bromcom-ui/p-33d204f1.entry.js +0 -5
- package/dist/bromcom-ui/p-348e74e9.entry.js +0 -5
- package/dist/bromcom-ui/p-379b00d6.js +0 -5
- package/dist/bromcom-ui/p-38a52254.js +0 -5
- package/dist/bromcom-ui/p-3e12382d.js +0 -5
- package/dist/bromcom-ui/p-4b5c5f62.entry.js +0 -5
- package/dist/bromcom-ui/p-4c2e776d.entry.js +0 -5
- package/dist/bromcom-ui/p-4c9c2159.entry.js +0 -5
- package/dist/bromcom-ui/p-56b45430.entry.js +0 -5
- package/dist/bromcom-ui/p-646c8ea2.entry.js +0 -5
- package/dist/bromcom-ui/p-69e3b4f9.entry.js +0 -5
- package/dist/bromcom-ui/p-6b3bf457.entry.js +0 -5
- package/dist/bromcom-ui/p-6fa98b12.entry.js +0 -5
- package/dist/bromcom-ui/p-7247ac65.entry.js +0 -5
- package/dist/bromcom-ui/p-7505325c.entry.js +0 -5
- package/dist/bromcom-ui/p-76edf59f.js +0 -7
- package/dist/bromcom-ui/p-7ae23e76.entry.js +0 -5
- package/dist/bromcom-ui/p-7b6d3a77.entry.js +0 -5
- package/dist/bromcom-ui/p-7dd0467a.entry.js +0 -5
- package/dist/bromcom-ui/p-815f1132.entry.js +0 -5
- package/dist/bromcom-ui/p-852fd092.entry.js +0 -5
- package/dist/bromcom-ui/p-85aa9dfd.entry.js +0 -5
- package/dist/bromcom-ui/p-8baa08ea.entry.js +0 -5
- package/dist/bromcom-ui/p-8c7e1bea.entry.js +0 -5
- package/dist/bromcom-ui/p-8dda8873.js +0 -14
- package/dist/bromcom-ui/p-8ee40a96.js +0 -5
- package/dist/bromcom-ui/p-90b5befd.entry.js +0 -5
- package/dist/bromcom-ui/p-935f57ad.entry.js +0 -5
- package/dist/bromcom-ui/p-9402a607.entry.js +0 -5
- package/dist/bromcom-ui/p-9695f7c9.js +0 -5
- package/dist/bromcom-ui/p-97bc1843.entry.js +0 -5
- package/dist/bromcom-ui/p-9b080d5d.entry.js +0 -5
- package/dist/bromcom-ui/p-9b8e6484.entry.js +0 -5
- package/dist/bromcom-ui/p-9d1e255a.js +0 -5
- package/dist/bromcom-ui/p-9db3dcfa.entry.js +0 -5
- package/dist/bromcom-ui/p-ac949369.entry.js +0 -5
- package/dist/bromcom-ui/p-ad295560.entry.js +0 -5
- package/dist/bromcom-ui/p-b3faa68b.js +0 -5
- package/dist/bromcom-ui/p-b5bdc541.entry.js +0 -5
- package/dist/bromcom-ui/p-b716412b.entry.js +0 -5
- package/dist/bromcom-ui/p-bed627ab.js +0 -11
- package/dist/bromcom-ui/p-bfdf9447.entry.js +0 -5
- package/dist/bromcom-ui/p-c621138a.entry.js +0 -5
- package/dist/bromcom-ui/p-c9d35a7a.entry.js +0 -5
- package/dist/bromcom-ui/p-d0833fd3.entry.js +0 -5
- package/dist/bromcom-ui/p-d1dbebf6.entry.js +0 -5
- package/dist/bromcom-ui/p-d2f863d9.js +0 -5
- package/dist/bromcom-ui/p-d6c99f1f.entry.js +0 -5
- package/dist/bromcom-ui/p-daa32fc1.js +0 -5
- package/dist/bromcom-ui/p-dc3275aa.entry.js +0 -5
- package/dist/bromcom-ui/p-dccb9b5f.entry.js +0 -5
- package/dist/bromcom-ui/p-de1f21b5.entry.js +0 -5
- package/dist/bromcom-ui/p-de23b7bf.entry.js +0 -5
- package/dist/bromcom-ui/p-e3f8efa5.entry.js +0 -5
- package/dist/bromcom-ui/p-ee1b4a47.entry.js +0 -5
- package/dist/bromcom-ui/p-f0469946.entry.js +0 -5
- package/dist/bromcom-ui/p-f2fc3d54.entry.js +0 -5
- package/dist/bromcom-ui/p-f3c9ad5e.entry.js +0 -5
- package/dist/bromcom-ui/p-f6f37125.entry.js +0 -5
- package/dist/bromcom-ui/p-f86515f0.entry.js +0 -5
- package/dist/bromcom-ui/p-f908af03.entry.js +0 -5
- package/dist/bromcom-ui/p-f9c32e82.entry.js +0 -5
- package/dist/bromcom-ui/p-fd0c42ae.entry.js +0 -5
- package/dist/cjs/Overflow-ebad34dd.js +0 -2292
- package/dist/cjs/bcm-accordion.cjs.entry.js +0 -74
- package/dist/cjs/bcm-alert.cjs.entry.js +0 -99
- package/dist/cjs/bcm-attendance-actions.cjs.entry.js +0 -330
- package/dist/cjs/bcm-attendance.cjs.entry.js +0 -35
- package/dist/cjs/bcm-avatar_2.cjs.entry.js +0 -210
- package/dist/cjs/bcm-button-group.cjs.entry.js +0 -92
- package/dist/cjs/bcm-button.cjs.entry.js +0 -372
- package/dist/cjs/bcm-checkbox-group.cjs.entry.js +0 -415
- package/dist/cjs/bcm-checkbox-lite_9.cjs.entry.js +0 -2529
- package/dist/cjs/bcm-checkbox_2.cjs.entry.js +0 -194
- package/dist/cjs/bcm-chip-group.cjs.entry.js +0 -128
- package/dist/cjs/bcm-chip.cjs.entry.js +0 -91
- package/dist/cjs/bcm-collapse-group.cjs.entry.js +0 -43
- package/dist/cjs/bcm-collapse.cjs.entry.js +0 -62
- package/dist/cjs/bcm-color-input.cjs.entry.js +0 -77
- package/dist/cjs/bcm-colorful_2.cjs.entry.js +0 -251
- package/dist/cjs/bcm-date.cjs.entry.js +0 -182
- package/dist/cjs/bcm-drawer.cjs.entry.js +0 -96
- package/dist/cjs/bcm-dropdown.cjs.entry.js +0 -119
- package/dist/cjs/bcm-error-layout.cjs.entry.js +0 -64
- package/dist/cjs/bcm-expansion-panel.cjs.entry.js +0 -116
- package/dist/cjs/bcm-form.cjs.entry.js +0 -492
- package/dist/cjs/bcm-icon_6.cjs.entry.js +0 -2152
- package/dist/cjs/bcm-input_2.cjs.entry.js +0 -550
- package/dist/cjs/bcm-item.cjs.entry.js +0 -72
- package/dist/cjs/bcm-items.cjs.entry.js +0 -49
- package/dist/cjs/bcm-link.cjs.entry.js +0 -51
- package/dist/cjs/bcm-menu.cjs.entry.js +0 -151
- package/dist/cjs/bcm-modal.cjs.entry.js +0 -157
- package/dist/cjs/bcm-old-input.cjs.entry.js +0 -397
- package/dist/cjs/bcm-old-tag_2.cjs.entry.js +0 -145
- package/dist/cjs/bcm-popconfirm-box.cjs.entry.js +0 -115
- package/dist/cjs/bcm-popconfirm.cjs.entry.js +0 -101
- package/dist/cjs/bcm-popover.cjs.entry.js +0 -230
- package/dist/cjs/bcm-progress.cjs.entry.js +0 -162
- package/dist/cjs/bcm-radio-group.cjs.entry.js +0 -161
- package/dist/cjs/bcm-radio.cjs.entry.js +0 -65
- package/dist/cjs/bcm-range.cjs.entry.js +0 -183
- package/dist/cjs/bcm-rc-picker.cjs.entry.js +0 -10235
- package/dist/cjs/bcm-select.cjs.entry.js +0 -1195
- package/dist/cjs/bcm-shortcut.cjs.entry.js +0 -65
- package/dist/cjs/bcm-step.cjs.entry.js +0 -89
- package/dist/cjs/bcm-stepper.cjs.entry.js +0 -240
- package/dist/cjs/bcm-switch.cjs.entry.js +0 -151
- package/dist/cjs/bcm-tab-group.cjs.entry.js +0 -210
- package/dist/cjs/bcm-tab-item-header.cjs.entry.js +0 -60
- package/dist/cjs/bcm-tab-item.cjs.entry.js +0 -91
- package/dist/cjs/bcm-tab.cjs.entry.js +0 -72
- package/dist/cjs/bcm-tabs.cjs.entry.js +0 -370
- package/dist/cjs/bcm-text.cjs.entry.js +0 -49
- package/dist/cjs/index-d321de96.js +0 -193
- package/dist/cjs/input-template-4f41f5f2.js +0 -92
- package/dist/cjs/json-parse-decarator-ca73e0ee.js +0 -40
- package/dist/cjs/lodash-917168d7.js +0 -17199
- package/dist/cjs/moment-d06b012f.js +0 -4601
- package/dist/cjs/stepper-states-969da6c3.js +0 -85
- package/dist/cjs/tooltip-helper-a45a6cd4.js +0 -158
- package/dist/esm/Overflow-65c2db90.js +0 -2275
- package/dist/esm/bcm-accordion.entry.js +0 -70
- package/dist/esm/bcm-alert.entry.js +0 -95
- package/dist/esm/bcm-attendance-actions.entry.js +0 -326
- package/dist/esm/bcm-attendance.entry.js +0 -31
- package/dist/esm/bcm-avatar_2.entry.js +0 -205
- package/dist/esm/bcm-button-group.entry.js +0 -88
- package/dist/esm/bcm-button.entry.js +0 -368
- package/dist/esm/bcm-checkbox-group.entry.js +0 -411
- package/dist/esm/bcm-checkbox-lite_9.entry.js +0 -2517
- package/dist/esm/bcm-checkbox_2.entry.js +0 -189
- package/dist/esm/bcm-chip-group.entry.js +0 -124
- package/dist/esm/bcm-chip.entry.js +0 -87
- package/dist/esm/bcm-collapse-group.entry.js +0 -39
- package/dist/esm/bcm-collapse.entry.js +0 -58
- package/dist/esm/bcm-color-input.entry.js +0 -73
- package/dist/esm/bcm-colorful_2.entry.js +0 -246
- package/dist/esm/bcm-date.entry.js +0 -178
- package/dist/esm/bcm-drawer.entry.js +0 -92
- package/dist/esm/bcm-dropdown.entry.js +0 -115
- package/dist/esm/bcm-error-layout.entry.js +0 -60
- package/dist/esm/bcm-expansion-panel.entry.js +0 -112
- package/dist/esm/bcm-form.entry.js +0 -488
- package/dist/esm/bcm-icon_6.entry.js +0 -2143
- package/dist/esm/bcm-input_2.entry.js +0 -545
- package/dist/esm/bcm-item.entry.js +0 -68
- package/dist/esm/bcm-items.entry.js +0 -45
- package/dist/esm/bcm-link.entry.js +0 -47
- package/dist/esm/bcm-menu.entry.js +0 -147
- package/dist/esm/bcm-modal.entry.js +0 -153
- package/dist/esm/bcm-old-input.entry.js +0 -393
- package/dist/esm/bcm-old-tag_2.entry.js +0 -140
- package/dist/esm/bcm-popconfirm-box.entry.js +0 -111
- package/dist/esm/bcm-popconfirm.entry.js +0 -97
- package/dist/esm/bcm-popover.entry.js +0 -226
- package/dist/esm/bcm-progress.entry.js +0 -158
- package/dist/esm/bcm-radio-group.entry.js +0 -157
- package/dist/esm/bcm-radio.entry.js +0 -61
- package/dist/esm/bcm-range.entry.js +0 -179
- package/dist/esm/bcm-rc-picker.entry.js +0 -10231
- package/dist/esm/bcm-select.entry.js +0 -1191
- package/dist/esm/bcm-shortcut.entry.js +0 -61
- package/dist/esm/bcm-step.entry.js +0 -85
- package/dist/esm/bcm-stepper.entry.js +0 -236
- package/dist/esm/bcm-switch.entry.js +0 -147
- package/dist/esm/bcm-tab-group.entry.js +0 -206
- package/dist/esm/bcm-tab-item-header.entry.js +0 -56
- package/dist/esm/bcm-tab-item.entry.js +0 -87
- package/dist/esm/bcm-tab.entry.js +0 -68
- package/dist/esm/bcm-tabs.entry.js +0 -366
- package/dist/esm/bcm-text.entry.js +0 -45
- package/dist/esm/index-91dbe540.js +0 -191
- package/dist/esm/input-template-4d3a4e34.js +0 -90
- package/dist/esm/json-parse-decarator-1f7310a8.js +0 -38
- package/dist/esm/lodash-0a4396a7.js +0 -17197
- package/dist/esm/moment-15cd9198.js +0 -4598
- package/dist/esm/stepper-states-b1aa55b0.js +0 -83
- package/dist/esm/tooltip-helper-112e52a6.js +0 -156
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* Built with Stencil
|
|
3
3
|
* Copyright (c) Bromcom.
|
|
4
4
|
*/
|
|
5
|
-
import{C as r}from"./p-436364c8.js";import{e as s}from"./p-
|
|
5
|
+
import{C as r}from"./p-436364c8.js";import{e as s}from"./p-6f2e4c9b.js";import{c as t}from"./p-a2df6c19.js";class e{static parseColor(r,s=600){if(!r)return{tone:null,colorName:null};const[t,e]=r.split("-");return{tone:e?parseInt(e):s,colorName:t}}}e.isHex=r=>/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(r),e.isRgb=r=>/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/.test(r),e.isRgba=r=>/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/.test(r),e.isHsl=r=>/^hsl\((\d{1,3}),\s*(\d{1,3}%),\s*(\d{1,3}%)\)$/.test(r),e.isHsla=r=>/^hsla\((\d{1,3}),\s*(\d{1,3}%),\s*(\d{1,3}%),\s*(\d{1,3})\)$/.test(r),e.isVariable=r=>/^var\((.*)\)$/.test(r),e.extractVariable=r=>r.match(/^var\((.*)\)$/)[1],e.convertColorToHex=t=>{if(t){if(e.isVariable(t)){const r=e.extractVariable(t);return getComputedStyle(document.documentElement).getPropertyValue(r)}if(e.isHex(t))return t;if(e.isRgb(t)){const r=t.match(/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/);return`#${(16777216+65536*parseInt(r[1])+256*parseInt(r[2])+parseInt(r[3])).toString(16).substring(1)}`}if(s(r,t))return s(r,t)}},e.reverseColor=r=>{let s=e.convertColorToHex(r).trim();if(s)return 4===s.length&&(s=`#${s[1]}${s[1]}${s[2]}${s[2]}${s[3]}${s[3]}`),(299*parseInt(s.substring(1,3),16)+587*parseInt(s.substring(3,5),16)+114*parseInt(s.substring(5,7),16))/1e3>=200?"#334155":"#fff"},e.dsColor=r=>"var(--bcm-new-ds-color-"+r+")",e.getTwColorToHex=r=>e.getTwColor(r)||t.blue[500],e.getTwColor=(r,s=!1)=>{if(t[r])return t[r];const e=r.split("-"),n=e[e.length-1],o=e.slice(0,e.length-1).join("-");return t[o]&&t[o][n]?s?1:t[o][n]:t[o]?s?2:t[o]:(console.warn("Color not found in tailwind colors: "+r),0)},e.twColor=(r,s="500")=>{const t=r&&-1===r.indexOf("-")?`${r}-${s}`:r,n=e.getTwColor(t,!0);return 1===n?t:2===n?r:"blue-500"},e.twColorReverse=r=>e.reverseColor(e.getTwColorToHex(r)),e.generateStyleString=r=>Object.keys(r).reduce(((s,t)=>`${s}${t}:${r[t]};`),"");export{e as C}
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* Built with Stencil
|
|
3
3
|
* Copyright (c) Bromcom.
|
|
4
4
|
*/
|
|
5
|
-
import{r as e,h as i,H as t,
|
|
5
|
+
import{r as e,h as i,H as t,g as n}from"./p-e037ee2b.js";import{c as p}from"./p-64fad38b.js";import"./p-85eedabc.js";const a=class{constructor(i){e(this,i),this.size="medium",this.hidden=!1,this.fullWidth=!1,this.tab=(4*Math.random()).toString(16).replace(".",""),this.active=!1}connectedCallback(){}disconnectedCallback(){}componentWillLoad(){}componentDidLoad(){}componentWillRender(){}componentDidRender(){}componentWillUpdate(){}componentDidUpdate(){}handleActiveTabPane(e){"bcm-tab"===e.target.nodeName.toLowerCase()&&(this.active=e.target.tabId===this.tab)}render(){const e=p("tab-pane",this.size),n=p(this.hidden?"hidden":null,this.active?"active":null);return i(t,{class:n},i("div",{class:e},i("slot",null)))}get el(){return n(this)}};a.style='@import url("https://fonts.googleapis.com/css?family=Roboto:400,500");.size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}:host{width:100%;display:block}:host(.hidden){display:none}:host(:not(.active)){height:0 !important;overflow:hidden;padding:0 !important}:host(.active){display:block}';export{a as bcm_tab_pane}
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* Built with Stencil
|
|
3
3
|
* Copyright (c) Bromcom.
|
|
4
4
|
*/
|
|
5
|
-
import{r as t,h as e,H as s,
|
|
5
|
+
import{r as t,h as e,H as s,g as r}from"./p-e037ee2b.js";import{G as o}from"./p-d4e4aeee.js";import{c as i}from"./p-64fad38b.js";import"./p-858cee66.js";import"./p-a2df6c19.js";import"./p-85eedabc.js";const l=class{constructor(e){t(this,e),this.handleFocus=()=>{this.hasFocus=!0},this.handleBlur=()=>{this.hasFocus=!1},this.handleChange=t=>{this.value=t.target.value,console.log(t)},this.handleInput=t=>{console.log(t)},this._id=o.UID(),this.name=void 0,this.value=void 0,this.type="text",this.label=void 0,this.required=!1,this.disabled=!1,this.readonly=!1,this.placeholder=void 0,this.fullwidth=!1,this.hasFocus=!1}render(){const{_id:t,type:r,name:o,value:l,label:a,required:w,fullwidth:n,placeholder:d,disabled:h,readonly:c}=this;return e(s,{class:i("tw-inline-flex tw-w-full tw-max-w-[256px] tw-flex-col",{"tw-max-w-full":n})},a&&e("bcm-label",{value:a,required:w,htmlFor:t}),e("div",{class:i("tw-relative tw-flex tw-w-full tw-flex-row tw-items-stretch tw-rounded tw-border tw-p-0 hover:tw-border-primary-600",{"tw-cursor-not-allowed tw-bg-secondary-50":this.disabled,"tw-cursor-text":!this.disabled,"tw-cursor-default tw-bg-secondary-50":this.readonly,"tw-border-primary-500 tw-bg-secondary-50":this.hasFocus,"tw-border-secondary-300 tw-bg-white":!this.hasFocus})},e("input",{id:t,name:o,type:r,value:l,"data-value":l,placeholder:d,required:w,disabled:h,readonly:c,class:i("tw-text-overflow-ellipsis","tw-rounded-none","tw-flex-1","tw-cursor-inherit","tw-w-full","tw-appearance-none","tw-overflow-hidden","tw-whitespace-nowrap","tw-border-none","tw-bg-transparent","tw-p-2","tw-text-secondary-600","tw-placeholder-secondary-300","tw-outline-none"),onFocus:this.handleFocus,onBlur:this.handleBlur,onChange:t=>this.handleChange(t),onInput:this.handleInput})))}get el(){return r(this)}};export{l as bcm_input_custom}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Stencil
|
|
3
|
+
* Copyright (c) Bromcom.
|
|
4
|
+
*/
|
|
5
|
+
import{h as t}from"./p-e037ee2b.js";import{c as e}from"./p-64fad38b.js";const o=({noCaption:o,captionType:a,caption:r,captionError:c,customErrorMessage:i,size:s,maxLength:n,value:m})=>(s=s||"medium",(0==o||n)&&t("div",{class:e("bcm-ui-element bcm-ui-feedback bcm-caption-area tw-mt-1 tw-min-h-[20px] tw-flex tw-flex-row tw-items-start tw-justify-between tw-font-normal",{"tw-text-color-caption":!a||"default"==a,"tw-text-color-info":"info"==a,"tw-text-color-success":"success"==a,"tw-text-color-warning":"warning"==a,"tw-text-color-error":"error"==a},{"tw-text-size-3":"small"==s,"tw-text-size-4":"medium"==s,"tw-text-size-5":"large"==s},a&&"default"!=a&&`bcm-caption-area__type-${a}`)},t("div",{class:"bcm-caption-area__text"},"error"==a?i||c:r),n&&t("div",{class:"bcm-caption-area__text tw-text-color-caption"}," ",`${(null==m?void 0:m.length)||0}/${n}`," ")));export{o as C}
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* Built with Stencil
|
|
3
3
|
* Copyright (c) Bromcom.
|
|
4
4
|
*/
|
|
5
|
-
import{r as e,h as i,H as t,
|
|
5
|
+
import{r as e,h as i,H as t,g as n}from"./p-e037ee2b.js";import{c as s}from"./p-64fad38b.js";import"./p-85eedabc.js";const a={success:{icon:"far fa-check-circle",color:"green-6"},info:{icon:"far fa-info-circle",color:"blue-6"},warning:{icon:"far fa-warning",color:"warmyellow-6"},error:{icon:"far fa-times-circle",color:"grey-10"}},p=class{constructor(i){e(this,i),this.status=null,this.heading=void 0,this.description=void 0,this.hidden=!1,this.footerArea=void 0,this.footerHtml=void 0}getIcon(){if(null!=this.status)return i("div",{class:"icon"},i("bcm-icon",{icon:a[this.status].icon}))}componentDidRender(){this.el.shadowRoot.querySelector("slot").assignedElements().map((e=>{"bcm-result-footer"===String(e.tagName).toLowerCase()&&(e.slot="footer",this.footerArea=!0,this.footerHtml=e.innerHTML,e.innerHTML="")}))}render(){const e=s(this.hidden?"hidden":null);return i(t,{class:e},i("div",{class:"result"},this.getIcon(),i("div",{class:"content"},i("span",{class:"heading size-5 weight-semibold"},this.heading),i("span",{class:"desc size-2"},this.description),i("div",{class:"extra"},i("slot",null)),this.footerArea&&i("div",{class:"buttons",innerHTML:this.footerHtml}))))}get el(){return n(this)}};p.style='@import url("https://fonts.googleapis.com/css?family=Roboto:400,500");.size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}:host{display:block}:host(.hidden){display:none}.result{display:flex;flex-direction:column;align-items:center;padding:32px 24px}.result .content{margin-top:24px}.result .content .heading{margin-bottom:8px}.result .content .heading,.result .content .desc{display:block;text-align:center}.result .content .extra{background-color:#F5F5F5;padding:24px 24px;margin:32px 0}@media screen and (min-width: 576px){.result .content .extra{padding:24px 40px}}.result .content .buttons{display:flex;justify-content:center;grid-gap:8px;flex-wrap:wrap}';export{p as bcm_result}
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* Built with Stencil
|
|
3
3
|
* Copyright (c) Bromcom.
|
|
4
4
|
*/
|
|
5
|
-
import{r as
|
|
5
|
+
import{r as e,c as i,h as t,H as s,g as h}from"./p-e037ee2b.js";import{c as o}from"./p-64fad38b.js";import{a as p}from"./p-a313fba6.js";import{G as n}from"./p-d4e4aeee.js";import"./p-85eedabc.js";import"./p-858cee66.js";import"./p-a2df6c19.js";const a=class{constructor(t){e(this,t),this.onShow=i(this,"bcm-show",7),this.onHide=i(this,"bcm-hide",7),this._title=void 0,this._id=n.UID(),this.message=void 0,this.placement=p.Placement.top,this.trigger=p.TriggerType.click,this.open=!1,this.linkedComponent=void 0}async show(){this.open||(this.open=!0,this.onShow.emit(),this.createBox(),this.showBox())}async hide(){this.open&&(this.open=!1,this.onHide.emit(),this.hideBox())}createBox(){if(!this.getPopoverBox()){const e=document.createElement("old-bcm-popover-box");e.setAttribute("id","box-"+this._id),e.setAttribute("target-id",this._id),e.setAttribute("placement",this.placement),e.setAttribute("message",this.message),e.setAttribute("_title",this._title),e.setAttribute("linked-component",this.linkedComponent),document.body.appendChild(e)}}getPopoverBox(){return document.querySelector(`old-bcm-popover-box[id="box-${this._id}"]`)}showBox(){this.getPopoverBox()&&this.getPopoverBox().show()}hideBox(){this.getPopoverBox()&&this.getPopoverBox().hide()}listenTrigger(e){switch(this.trigger){case"click":"click"===e&&(this.open?this.hide():this.show());break;case"hover":"onMouseOver"===e&&this.show(),"onMouseOut"===e&&this.hide();break;case"focus":"onFocus"===e&&this.show(),"onBlur"===e&&this.hide()}}render(){const e=o("bcm-popover");return t(s,{class:e,onMouseOver:()=>this.listenTrigger("onMouseOver"),onMouseOut:()=>this.listenTrigger("onMouseOut"),onclick:()=>this.listenTrigger("click"),onFocus:()=>this.listenTrigger("onFocus"),onBlur:()=>this.listenTrigger("onBlur"),tabindex:0},t("slot",null))}get el(){return h(this)}};a.style='@import url("https://fonts.googleapis.com/css?family=Roboto:400,500");.size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}.bcm-popover{display:inline-flex}';export{a as old_bcm_popover}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Stencil
|
|
3
|
+
* Copyright (c) Bromcom.
|
|
4
|
+
*/
|
|
5
|
+
import{E as o}from"./p-e037ee2b.js";import{v as s}from"./p-858cee66.js";import{L as e}from"./p-a9eb0321.js";window.bcm={version:s},function(o){const s=document.head,e=document.createElement("script");Object.keys(o).forEach((s=>{e[s]=o[s]})),s.appendChild(e)}({src:"https://kit.fontawesome.com/5e86bea963.js",crossOrigin:"anonymous"}),e.setLicenseKey(o.AG_GRID_LICENSE_KEY);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Stencil
|
|
3
|
+
* Copyright (c) Bromcom.
|
|
4
|
+
*/
|
|
5
|
+
import{c as r}from"./p-85eedabc.js";var e=r((function(r){
|
|
6
|
+
/*!
|
|
7
|
+
Copyright (c) 2018 Jed Watson.
|
|
8
|
+
Licensed under the MIT License (MIT), see
|
|
9
|
+
http://jedwatson.github.io/classnames
|
|
10
|
+
*/
|
|
11
|
+
!function(){var e={}.hasOwnProperty;function i(){for(var r=[],n=0;n<arguments.length;n++){var f=arguments[n];if(f){var o=typeof f;if("string"===o||"number"===o)r.push(f);else if(Array.isArray(f)){if(f.length){var a=i.apply(null,f);a&&r.push(a)}}else if("object"===o){if(f.toString!==Object.prototype.toString&&!f.toString.toString().includes("[native code]")){r.push(f.toString());continue}for(var t in f)e.call(f,t)&&f[t]&&r.push(t)}}}return r.join(" ")}r.exports?(i.default=i,r.exports=i):window.classNames=i}()}));export{e as c}
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* Built with Stencil
|
|
3
3
|
* Copyright (c) Bromcom.
|
|
4
4
|
*/
|
|
5
|
-
import{a as t}from"./p-a313fba6.js";function e(t){return t.split("-")[1]}function n(t){return"y"===t?"height":"width"}function o(t){return t.split("-")[0]}function r(t){return["top","bottom"].includes(o(t))?"x":"y"}function i(t,i,a){let{reference:l,floating:c}=t;const s=l.x+l.width/2-c.width/2,f=l.y+l.height/2-c.height/2,u=r(i),d=n(u),m=l[d]/2-c[d]/2,p="x"===u;let y;switch(o(i)){case"top":y={x:s,y:l.y-c.height};break;case"bottom":y={x:s,y:l.y+l.height};break;case"right":y={x:l.x+l.width,y:f};break;case"left":y={x:l.x-c.width,y:f};break;default:y={x:l.x,y:l.y}}switch(e(i)){case"start":y[u]-=m*(a&&p?-1:1);break;case"end":y[u]+=m*(a&&p?-1:1)}return y}function a(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function l(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}async function c(t,e){var n;void 0===e&&(e={});const{x:o,y:r,platform:i,rects:c,elements:s,strategy:f}=t,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:m="floating",altBoundary:p=!1,padding:y=0}=e,h=a(y),g=s[p?"floating"===m?"reference":"floating":m],w=l(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(g)))||n?g:g.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:u,rootBoundary:d,strategy:f})),x="floating"===m?{...c.floating,x:o,y:r}:c.reference,b=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),v=await(null==i.isElement?void 0:i.isElement(b))&&await(null==i.getScale?void 0:i.getScale(b))||{x:1,y:1},A=l(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:x,offsetParent:b,strategy:f}):x);return{top:(w.top-A.top+h.top)/v.y,bottom:(A.bottom-w.bottom+h.bottom)/v.y,left:(w.left-A.left+h.left)/v.x,right:(A.right-w.right+h.right)/v.x}}const s=Math.min,f=Math.max;function u(t,e,n){return f(t,s(e,n))}const d=["top","right","bottom","left"],m={left:"right",right:"left",bottom:"top",top:"bottom"};function p(t){return t.replace(/left|right|bottom|top/g,(t=>m[t]))}const y={start:"end",end:"start"};function h(t){return t.replace(/start|end/g,(t=>y[t]))}const g=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(i){var a;const{placement:l,middlewareData:s,rects:f,initialPlacement:u,platform:d,elements:m}=i,{mainAxis:y=!0,crossAxis:g=!0,fallbackPlacements:w,fallbackStrategy:x="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:v=!0,...A}=t,H=o(l),k=o(u)===u,O=await(null==d.isRTL?void 0:d.isRTL(m.floating)),R=w||(k||!v?[p(u)]:function(t){const e=p(t);return[h(t),e,h(e)]}(u));w||"none"===b||R.push(...function(t,n,r,i){const a=e(t);let l=function(t,e,n){const o=["left","right"],r=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(t){case"top":case"bottom":return n?e?r:o:e?o:r;case"left":case"right":return e?i:a;default:return[]}}(o(t),"start"===r,i);return a&&(l=l.map((t=>t+"-"+a)),n&&(l=l.concat(l.map(h)))),l}(u,v,b,O));const $=[u,...R],j=await c(i,A),M=[];let P=(null==(a=s.flip)?void 0:a.overflows)||[];if(y&&M.push(j[H]),g){const{main:t,cross:o}=function(t,o,i){void 0===i&&(i=!1);const a=e(t),l=r(t),c=n(l);let s="x"===l?a===(i?"end":"start")?"right":"left":"start"===a?"bottom":"top";return o.reference[c]>o.floating[c]&&(s=p(s)),{main:s,cross:p(s)}}(l,f,O);M.push(j[t],j[o])}if(P=[...P,{placement:l,overflows:M}],!M.every((t=>t<=0))){var C,D;const t=((null==(C=s.flip)?void 0:C.index)||0)+1,e=$[t];if(e)return{data:{index:t,overflows:P},reset:{placement:e}};let n=null==(D=P.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:D.placement;if(!n)switch(x){case"bestFit":{var F;const t=null==(F=P.map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:F[0];t&&(n=t);break}case"initialPlacement":n=u}if(l!==n)return{reset:{placement:n}}}return{}}}};function w(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function x(t){return d.some((e=>t[e]>=0))}function b(t){var e;return(null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function v(t){return b(t).getComputedStyle(t)}function A(t){return t instanceof b(t).Node}function H(t){return A(t)?(t.nodeName||"").toLowerCase():""}let k;function O(){if(k)return k;const t=navigator.userAgentData;return t&&Array.isArray(t.brands)?(k=t.brands.map((t=>t.brand+"/"+t.version)).join(" "),k):navigator.userAgent}function R(t){return t instanceof b(t).HTMLElement}function $(t){return t instanceof b(t).Element}function j(t){return"undefined"!=typeof ShadowRoot&&(t instanceof b(t).ShadowRoot||t instanceof ShadowRoot)}function M(t){const{overflow:e,overflowX:n,overflowY:o,display:r}=v(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(r)}function P(t){return["table","td","th"].includes(H(t))}function C(t){const e=/firefox/i.test(O()),n=v(t),o=n.backdropFilter||n.WebkitBackdropFilter;return"none"!==n.transform||"none"!==n.perspective||!!o&&"none"!==o||e&&"filter"===n.willChange||e&&!!n.filter&&"none"!==n.filter||["transform","perspective"].some((t=>n.willChange.includes(t)))||["paint","layout","strict","content"].some((t=>{const e=n.contain;return null!=e&&e.includes(t)}))}function D(){return/^((?!chrome|android).)*safari/i.test(O())}function F(t){return["html","body","#document"].includes(H(t))}const S=Math.min,B=Math.max,T=Math.round;function L(t){const e=v(t);let n=parseFloat(e.width),o=parseFloat(e.height);const r=R(t),i=r?t.offsetWidth:n,a=r?t.offsetHeight:o,l=T(n)!==i||T(o)!==a;return l&&(n=i,o=a),{width:n,height:o,fallback:l}}function E(t){return $(t)?t:t.contextElement}const z={x:1,y:1};function N(t){const e=E(t);if(!R(e))return z;const n=e.getBoundingClientRect(),{width:o,height:r,fallback:i}=L(e);let a=(i?T(n.width):n.width)/o,l=(i?T(n.height):n.height)/r;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}function W(t,e,n,o){var r,i;void 0===e&&(e=!1),void 0===n&&(n=!1);const a=t.getBoundingClientRect(),c=E(t);let s=z;e&&(o?$(o)&&(s=N(o)):s=N(t));const f=c?b(c):window,u=D()&&n;let d=(a.left+(u&&(null==(r=f.visualViewport)?void 0:r.offsetLeft)||0))/s.x,m=(a.top+(u&&(null==(i=f.visualViewport)?void 0:i.offsetTop)||0))/s.y,p=a.width/s.x,y=a.height/s.y;if(c){const t=b(c),e=o&&$(o)?b(o):o;let n=t.frameElement;for(;n&&o&&e!==t;){const t=N(n),e=n.getBoundingClientRect(),o=getComputedStyle(n);e.x+=(n.clientLeft+parseFloat(o.paddingLeft))*t.x,e.y+=(n.clientTop+parseFloat(o.paddingTop))*t.y,d*=t.x,m*=t.y,p*=t.x,y*=t.y,d+=e.x,m+=e.y,n=b(n).frameElement}}return l({width:p,height:y,x:d,y:m})}function V(t){return((A(t)?t.ownerDocument:t.document)||window.document).documentElement}function X(t){return $(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Y(t){return W(V(t)).left+X(t).scrollLeft}function _(t){if("html"===H(t))return t;const e=t.assignedSlot||t.parentNode||j(t)&&t.host||V(t);return j(e)?e.host:e}function q(t){const e=_(t);return F(e)?e.ownerDocument.body:R(e)&&M(e)?e:q(e)}function G(t,e){var n;void 0===e&&(e=[]);const o=q(t),r=o===(null==(n=t.ownerDocument)?void 0:n.body),i=b(o);return r?e.concat(i,i.visualViewport||[],M(o)?o:[]):e.concat(o,G(o))}function I(t,e,n){let o;if("viewport"===e)o=function(t,e){const n=b(t),o=V(t),r=n.visualViewport;let i=o.clientWidth,a=o.clientHeight,l=0,c=0;if(r){i=r.width,a=r.height;const t=D();(!t||t&&"fixed"===e)&&(l=r.offsetLeft,c=r.offsetTop)}return{width:i,height:a,x:l,y:c}}(t,n);else if("document"===e)o=function(t){const e=V(t),n=X(t),o=t.ownerDocument.body,r=B(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),i=B(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let a=-n.scrollLeft+Y(t);const l=-n.scrollTop;return"rtl"===v(o).direction&&(a+=B(e.clientWidth,o.clientWidth)-r),{width:r,height:i,x:a,y:l}}(V(t));else if($(e))o=function(t,e){const n=W(t,!0,"fixed"===e),o=n.top+t.clientTop,r=n.left+t.clientLeft,i=R(t)?N(t):{x:1,y:1};return{width:t.clientWidth*i.x,height:t.clientHeight*i.y,x:r*i.x,y:o*i.y}}(e,n);else{const n={...e};if(D()){var r,i;const e=b(t);n.x-=(null==(r=e.visualViewport)?void 0:r.offsetLeft)||0,n.y-=(null==(i=e.visualViewport)?void 0:i.offsetTop)||0}o=n}return l(o)}function J(t,e){return R(t)&&"fixed"!==v(t).position?e?e(t):t.offsetParent:null}function K(t,e){const n=b(t);if(!R(t))return n;let o=J(t,e);for(;o&&P(o)&&"static"===v(o).position;)o=J(o,e);return o&&("html"===H(o)||"body"===H(o)&&"static"===v(o).position&&!C(o))?n:o||function(t){let e=_(t);for(;R(e)&&!F(e);){if(C(e))return e;e=_(e)}return null}(t)||n}function Q(t,e,n){const o=R(e),r=V(e),i=W(t,!0,"fixed"===n,e);let a={scrollLeft:0,scrollTop:0};const l={x:0,y:0};if(o||!o&&"fixed"!==n)if(("body"!==H(e)||M(r))&&(a=X(e)),R(e)){const t=W(e,!0);l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}else r&&(l.x=Y(r));return{x:i.left+a.scrollLeft-l.x,y:i.top+a.scrollTop-l.y,width:i.width,height:i.height}}const U={getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:o,strategy:r}=t;const i=[..."clippingAncestors"===n?function(t,e){const n=e.get(t);if(n)return n;let o=G(t).filter((t=>$(t)&&"body"!==H(t))),r=null;const i="fixed"===v(t).position;let a=i?_(t):t;for(;$(a)&&!F(a);){const t=v(a),e=C(a);"fixed"===t.position?r=null:(i?e||r:e||"static"!==t.position||!r||!["absolute","fixed"].includes(r.position))?r=t:o=o.filter((t=>t!==a)),a=_(a)}return e.set(t,o),o}(e,this._c):[].concat(n),o],a=i.reduce(((t,n)=>{const o=I(e,n,r);return t.top=B(o.top,t.top),t.right=S(o.right,t.right),t.bottom=S(o.bottom,t.bottom),t.left=B(o.left,t.left),t}),I(e,i[0],r));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:n,strategy:o}=t;const r=R(n),i=V(n);if(n===i)return e;let a={scrollLeft:0,scrollTop:0},l={x:1,y:1};const c={x:0,y:0};if((r||!r&&"fixed"!==o)&&(("body"!==H(n)||M(i))&&(a=X(n)),R(n))){const t=W(n);l=N(n),c.x=t.x+n.clientLeft,c.y=t.y+n.clientTop}return{width:e.width*l.x,height:e.height*l.y,x:e.x*l.x-a.scrollLeft*l.x+c.x,y:e.y*l.y-a.scrollTop*l.y+c.y}},isElement:$,getDimensions:function(t){return L(t)},getOffsetParent:K,getDocumentElement:V,getScale:N,async getElementRects(t){let{reference:e,floating:n,strategy:o}=t;const r=this.getOffsetParent||K,i=this.getDimensions;return{reference:Q(e,await r(n),o),floating:{x:0,y:0,...await i(n)}}},getClientRects:t=>Array.from(t.getClientRects()),isRTL:t=>"rtl"===v(t).direction},Z=l=>{const{ref:d,floating:m,placement:p=t.Placement.bottom,offset:y=0,arrow:h=!1,arrowColor:b="tw-bg-slate-700",autoHidden:v=!0,autoSize:A=!1,style:H={}}=l;let k=[(O=y,void 0===O&&(O=0),{name:"offset",options:O,async fn(t){const{x:n,y:i}=t,a=await async function(t,n){const{placement:i,platform:a,elements:l}=t,c=await(null==a.isRTL?void 0:a.isRTL(l.floating)),s=o(i),f=e(i),u="x"===r(i),d=["left","top"].includes(s)?-1:1,m=c&&u?-1:1,p="function"==typeof n?n(t):n;let{mainAxis:y,crossAxis:h,alignmentAxis:g}="number"==typeof p?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...p};return f&&"number"==typeof g&&(h="end"===f?-1*g:g),u?{x:h*m,y:y*d}:{x:y*d,y:h*m}}(t,O);return{x:n+a.x,y:i+a.y,data:a}}}),g(),(R={padding:5},void 0===R&&(R={}),{name:"shift",options:R,async fn(t){const{x:e,y:n,placement:i}=t,{mainAxis:a=!0,crossAxis:l=!1,limiter:s={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...f}=R,d={x:e,y:n},m=await c(t,f),p=r(o(i)),y="x"===p?"y":"x";let h=d[p],g=d[y];a&&(h=u(h+m["y"===p?"top":"left"],h,h-m["y"===p?"bottom":"right"])),l&&(g=u(g+m["y"===y?"top":"left"],g,g-m["y"===y?"bottom":"right"]));const w=s.fn({...t,[p]:h,[y]:g});return{...w,data:{x:w.x-e,y:w.y-n}}}})];var O,R;v&&k.push(function(t){return void 0===t&&(t={}),{name:"hide",options:t,async fn(e){const{strategy:n="referenceHidden",...o}=t,{rects:r}=e;switch(n){case"referenceHidden":{const t=w(await c(e,{...o,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:x(t)}}}case"escaped":{const t=w(await c(e,{...o,altBoundary:!0}),r.floating);return{data:{escapedOffsets:t,escaped:x(t)}}}default:return{}}}}}({padding:10})),H&&Object.assign(m.style,Object.assign(Object.assign({},H.height&&{height:H.height}),H.minHeight&&{minHeight:H.minHeight}));const $=["auto","100%","100vh","100vw","inherit","initial","unset",void 0].some((t=>t==(null==H?void 0:H.height)));A&&$&&k.push(function(t){return void 0===t&&(t={}),{name:"size",options:t,async fn(n){const{placement:i,rects:a,platform:l,elements:u}=n,{apply:d=(()=>{}),...m}=t,p=await c(n,m),y=o(i),h=e(i),g="x"===r(i),{width:w,height:x}=a.floating;let b,v;"top"===y||"bottom"===y?(b=y,v=h===(await(null==l.isRTL?void 0:l.isRTL(u.floating))?"start":"end")?"left":"right"):(v=y,b="end"===h?"top":"bottom");const A=x-p[b],H=w-p[v];let k=A,O=H;if(g?O=s(w-p.right-p.left,H):k=s(x-p.bottom-p.top,A),!n.middlewareData.shift&&!h){const t=f(p.left,0),e=f(p.right,0),n=f(p.top,0),o=f(p.bottom,0);g?O=w-2*(0!==t||0!==e?t+e:f(p.left,p.right)):k=x-2*(0!==n||0!==o?n+o:f(p.top,p.bottom))}await d({...n,availableWidth:O,availableHeight:k});const R=await l.getDimensions(u.floating);return w!==R.width||x!==R.height?{reset:{rects:!0}}:{}}}}({apply({availableHeight:t}){const e=`${t>window.innerHeight?window.innerHeight-10:t}px`;Object.assign(m.style,{maxHeight:`${H.maxHeight&&e>=H.maxHeight?H.maxHeight:e}`})},padding:5}));let j=document.getElementById(`${m.id}-arrow`);h&&(j||(j=document.createElement("div"),j.setAttribute("id",`${m.id}-arrow`)),j.setAttribute("class",`tw-absolute tw-w-2 tw-h-2 ${b} tw-transform tw-z-[-1] tw-opacity-0 tw-transition-opacity tw-duration-300 \n tw-shadow \n `),m.prepend(j),k.push((t=>({name:"arrow",options:t,async fn(o){const{element:i,padding:l=0}=t||{},{x:c,y:s,placement:f,rects:d,platform:m,elements:p}=o;if(null==i)return{};const y=a(l),h={x:c,y:s},g=r(f),w=n(g),x=await m.getDimensions(i),b="y"===g,v=b?"top":"left",A=b?"bottom":"right",H=b?"clientHeight":"clientWidth",k=d.reference[w]+d.reference[g]-h[g]-d.floating[w],O=h[g]-d.reference[g],R=await(null==m.getOffsetParent?void 0:m.getOffsetParent(i));let $=R?R[H]:0;$&&await(null==m.isElement?void 0:m.isElement(R))||($=p.floating[H]||d.floating[w]);const j=y[v],M=$-x[w]-y[A],P=$/2-x[w]/2+(k/2-O/2),C=u(j,P,M),D=null!=e(f)&&P!=C&&d.reference[w]/2-(P<j?y[v]:y[A])-x[w]/2<0;return{[g]:h[g]-(D?P<j?j-P:M-P:0),data:{[g]:C,centerOffset:P-C}}}}))({element:j,padding:4}))),((t,e,n)=>{const o=new Map,r={platform:U,...n},a={...r.platform,_c:o};return(async(t,e,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:a=[],platform:l}=n,c=a.filter(Boolean),s=await(null==l.isRTL?void 0:l.isRTL(e));let f=await l.getElementRects({reference:t,floating:e,strategy:r}),{x:u,y:d}=i(f,o,s),m=o,p={},y=0;for(let n=0;n<c.length;n++){const{name:a,fn:h}=c[n],{x:g,y:w,data:x,reset:b}=await h({x:u,y:d,initialPlacement:o,placement:m,strategy:r,middlewareData:p,rects:f,platform:l,elements:{reference:t,floating:e}});u=null!=g?g:u,d=null!=w?w:d,p={...p,[a]:{...p[a],...x}},b&&y<=50&&(y++,"object"==typeof b&&(b.placement&&(m=b.placement),b.rects&&(f=!0===b.rects?await l.getElementRects({reference:t,floating:e,strategy:r}):b.rects),({x:u,y:d}=i(f,m,s))),n=-1)}return{x:u,y:d,placement:m,strategy:r,middlewareData:p}})(t,e,{...r,platform:a})})(d,m,{placement:p,middleware:k}).then((({x:t,y:e,placement:n,middlewareData:o})=>{const{referenceHidden:r}=v?o.hide:{referenceHidden:!1};if(Object.assign(m.style,{top:"0",left:"0",transform:`translate(${Math.round(t)}px,${Math.round(e)}px)`,opacity:r?"0":"1",visibility:r?"hidden":"visible"}),r){const t=new CustomEvent("bcm-floating-is-hide",{detail:{id:m.id}});document.dispatchEvent(t),"true"!==m.getAttribute("outside-of-the-screen")&&m.setAttribute("outside-of-the-screen","true")}else"true"===m.getAttribute("outside-of-the-screen")&&m.removeAttribute("outside-of-the-screen");if(h){const{x:t,y:e}=o.arrow,i={top:"bottom",right:"left",bottom:"top",left:"right"}[n.split("-")[0]],a={top:"rotate(45deg)",right:"rotate(135deg)",bottom:"rotate(-135deg)",left:"rotate(-45deg)"}[n.split("-")[0]];Object.assign(j.style,{left:null!=t?`${t}px`:"",top:null!=e?`${e}px`:"",right:"",bottom:"",[i]:"-4px",opacity:1,visibility:r?"hidden":"visible",transform:a})}}))};export{Z as F}
|
|
5
|
+
import{B as t}from"./p-a313fba6.js";function e(t){return t.split("-")[1]}function n(t){return"y"===t?"height":"width"}function o(t){return t.split("-")[0]}function r(t){return["top","bottom"].includes(o(t))?"x":"y"}function i(t,i,a){let{reference:l,floating:c}=t;const s=l.x+l.width/2-c.width/2,f=l.y+l.height/2-c.height/2,u=r(i),d=n(u),m=l[d]/2-c[d]/2,p="x"===u;let y;switch(o(i)){case"top":y={x:s,y:l.y-c.height};break;case"bottom":y={x:s,y:l.y+l.height};break;case"right":y={x:l.x+l.width,y:f};break;case"left":y={x:l.x-c.width,y:f};break;default:y={x:l.x,y:l.y}}switch(e(i)){case"start":y[u]-=m*(a&&p?-1:1);break;case"end":y[u]+=m*(a&&p?-1:1)}return y}function a(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function l(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}async function c(t,e){var n;void 0===e&&(e={});const{x:o,y:r,platform:i,rects:c,elements:s,strategy:f}=t,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:m="floating",altBoundary:p=!1,padding:y=0}=e,h=a(y),g=s[p?"floating"===m?"reference":"floating":m],w=l(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(g)))||n?g:g.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:u,rootBoundary:d,strategy:f})),x="floating"===m?{...c.floating,x:o,y:r}:c.reference,b=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),v=await(null==i.isElement?void 0:i.isElement(b))&&await(null==i.getScale?void 0:i.getScale(b))||{x:1,y:1},A=l(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:x,offsetParent:b,strategy:f}):x);return{top:(w.top-A.top+h.top)/v.y,bottom:(A.bottom-w.bottom+h.bottom)/v.y,left:(w.left-A.left+h.left)/v.x,right:(A.right-w.right+h.right)/v.x}}const s=Math.min,f=Math.max;function u(t,e,n){return f(t,s(e,n))}const d=["top","right","bottom","left"],m={left:"right",right:"left",bottom:"top",top:"bottom"};function p(t){return t.replace(/left|right|bottom|top/g,(t=>m[t]))}const y={start:"end",end:"start"};function h(t){return t.replace(/start|end/g,(t=>y[t]))}const g=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(i){var a;const{placement:l,middlewareData:s,rects:f,initialPlacement:u,platform:d,elements:m}=i,{mainAxis:y=!0,crossAxis:g=!0,fallbackPlacements:w,fallbackStrategy:x="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:v=!0,...A}=t,H=o(l),k=o(u)===u,O=await(null==d.isRTL?void 0:d.isRTL(m.floating)),R=w||(k||!v?[p(u)]:function(t){const e=p(t);return[h(t),e,h(e)]}(u));w||"none"===b||R.push(...function(t,n,r,i){const a=e(t);let l=function(t,e,n){const o=["left","right"],r=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(t){case"top":case"bottom":return n?e?r:o:e?o:r;case"left":case"right":return e?i:a;default:return[]}}(o(t),"start"===r,i);return a&&(l=l.map((t=>t+"-"+a)),n&&(l=l.concat(l.map(h)))),l}(u,v,b,O));const $=[u,...R],j=await c(i,A),M=[];let P=(null==(a=s.flip)?void 0:a.overflows)||[];if(y&&M.push(j[H]),g){const{main:t,cross:o}=function(t,o,i){void 0===i&&(i=!1);const a=e(t),l=r(t),c=n(l);let s="x"===l?a===(i?"end":"start")?"right":"left":"start"===a?"bottom":"top";return o.reference[c]>o.floating[c]&&(s=p(s)),{main:s,cross:p(s)}}(l,f,O);M.push(j[t],j[o])}if(P=[...P,{placement:l,overflows:M}],!M.every((t=>t<=0))){var B,C;const t=((null==(B=s.flip)?void 0:B.index)||0)+1,e=$[t];if(e)return{data:{index:t,overflows:P},reset:{placement:e}};let n=null==(C=P.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:C.placement;if(!n)switch(x){case"bestFit":{var D;const t=null==(D=P.map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:D[0];t&&(n=t);break}case"initialPlacement":n=u}if(l!==n)return{reset:{placement:n}}}return{}}}};function w(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function x(t){return d.some((e=>t[e]>=0))}function b(t){var e;return(null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function v(t){return b(t).getComputedStyle(t)}function A(t){return t instanceof b(t).Node}function H(t){return A(t)?(t.nodeName||"").toLowerCase():""}let k;function O(){if(k)return k;const t=navigator.userAgentData;return t&&Array.isArray(t.brands)?(k=t.brands.map((t=>t.brand+"/"+t.version)).join(" "),k):navigator.userAgent}function R(t){return t instanceof b(t).HTMLElement}function $(t){return t instanceof b(t).Element}function j(t){return"undefined"!=typeof ShadowRoot&&(t instanceof b(t).ShadowRoot||t instanceof ShadowRoot)}function M(t){const{overflow:e,overflowX:n,overflowY:o,display:r}=v(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(r)}function P(t){return["table","td","th"].includes(H(t))}function B(t){const e=/firefox/i.test(O()),n=v(t),o=n.backdropFilter||n.WebkitBackdropFilter;return"none"!==n.transform||"none"!==n.perspective||!!o&&"none"!==o||e&&"filter"===n.willChange||e&&!!n.filter&&"none"!==n.filter||["transform","perspective"].some((t=>n.willChange.includes(t)))||["paint","layout","strict","content"].some((t=>{const e=n.contain;return null!=e&&e.includes(t)}))}function C(){return/^((?!chrome|android).)*safari/i.test(O())}function D(t){return["html","body","#document"].includes(H(t))}const F=Math.min,S=Math.max,T=Math.round;function L(t){const e=v(t);let n=parseFloat(e.width),o=parseFloat(e.height);const r=R(t),i=r?t.offsetWidth:n,a=r?t.offsetHeight:o,l=T(n)!==i||T(o)!==a;return l&&(n=i,o=a),{width:n,height:o,fallback:l}}function E(t){return $(t)?t:t.contextElement}const z={x:1,y:1};function N(t){const e=E(t);if(!R(e))return z;const n=e.getBoundingClientRect(),{width:o,height:r,fallback:i}=L(e);let a=(i?T(n.width):n.width)/o,l=(i?T(n.height):n.height)/r;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}function W(t,e,n,o){var r,i;void 0===e&&(e=!1),void 0===n&&(n=!1);const a=t.getBoundingClientRect(),c=E(t);let s=z;e&&(o?$(o)&&(s=N(o)):s=N(t));const f=c?b(c):window,u=C()&&n;let d=(a.left+(u&&(null==(r=f.visualViewport)?void 0:r.offsetLeft)||0))/s.x,m=(a.top+(u&&(null==(i=f.visualViewport)?void 0:i.offsetTop)||0))/s.y,p=a.width/s.x,y=a.height/s.y;if(c){const t=b(c),e=o&&$(o)?b(o):o;let n=t.frameElement;for(;n&&o&&e!==t;){const t=N(n),e=n.getBoundingClientRect(),o=getComputedStyle(n);e.x+=(n.clientLeft+parseFloat(o.paddingLeft))*t.x,e.y+=(n.clientTop+parseFloat(o.paddingTop))*t.y,d*=t.x,m*=t.y,p*=t.x,y*=t.y,d+=e.x,m+=e.y,n=b(n).frameElement}}return l({width:p,height:y,x:d,y:m})}function V(t){return((A(t)?t.ownerDocument:t.document)||window.document).documentElement}function X(t){return $(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Y(t){return W(V(t)).left+X(t).scrollLeft}function _(t){if("html"===H(t))return t;const e=t.assignedSlot||t.parentNode||j(t)&&t.host||V(t);return j(e)?e.host:e}function q(t){const e=_(t);return D(e)?e.ownerDocument.body:R(e)&&M(e)?e:q(e)}function G(t,e){var n;void 0===e&&(e=[]);const o=q(t),r=o===(null==(n=t.ownerDocument)?void 0:n.body),i=b(o);return r?e.concat(i,i.visualViewport||[],M(o)?o:[]):e.concat(o,G(o))}function I(t,e,n){let o;if("viewport"===e)o=function(t,e){const n=b(t),o=V(t),r=n.visualViewport;let i=o.clientWidth,a=o.clientHeight,l=0,c=0;if(r){i=r.width,a=r.height;const t=C();(!t||t&&"fixed"===e)&&(l=r.offsetLeft,c=r.offsetTop)}return{width:i,height:a,x:l,y:c}}(t,n);else if("document"===e)o=function(t){const e=V(t),n=X(t),o=t.ownerDocument.body,r=S(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),i=S(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let a=-n.scrollLeft+Y(t);const l=-n.scrollTop;return"rtl"===v(o).direction&&(a+=S(e.clientWidth,o.clientWidth)-r),{width:r,height:i,x:a,y:l}}(V(t));else if($(e))o=function(t,e){const n=W(t,!0,"fixed"===e),o=n.top+t.clientTop,r=n.left+t.clientLeft,i=R(t)?N(t):{x:1,y:1};return{width:t.clientWidth*i.x,height:t.clientHeight*i.y,x:r*i.x,y:o*i.y}}(e,n);else{const n={...e};if(C()){var r,i;const e=b(t);n.x-=(null==(r=e.visualViewport)?void 0:r.offsetLeft)||0,n.y-=(null==(i=e.visualViewport)?void 0:i.offsetTop)||0}o=n}return l(o)}function J(t,e){return R(t)&&"fixed"!==v(t).position?e?e(t):t.offsetParent:null}function K(t,e){const n=b(t);if(!R(t))return n;let o=J(t,e);for(;o&&P(o)&&"static"===v(o).position;)o=J(o,e);return o&&("html"===H(o)||"body"===H(o)&&"static"===v(o).position&&!B(o))?n:o||function(t){let e=_(t);for(;R(e)&&!D(e);){if(B(e))return e;e=_(e)}return null}(t)||n}function Q(t,e,n){const o=R(e),r=V(e),i=W(t,!0,"fixed"===n,e);let a={scrollLeft:0,scrollTop:0};const l={x:0,y:0};if(o||!o&&"fixed"!==n)if(("body"!==H(e)||M(r))&&(a=X(e)),R(e)){const t=W(e,!0);l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}else r&&(l.x=Y(r));return{x:i.left+a.scrollLeft-l.x,y:i.top+a.scrollTop-l.y,width:i.width,height:i.height}}const U={getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:o,strategy:r}=t;const i=[..."clippingAncestors"===n?function(t,e){const n=e.get(t);if(n)return n;let o=G(t).filter((t=>$(t)&&"body"!==H(t))),r=null;const i="fixed"===v(t).position;let a=i?_(t):t;for(;$(a)&&!D(a);){const t=v(a),e=B(a);"fixed"===t.position?r=null:(i?e||r:e||"static"!==t.position||!r||!["absolute","fixed"].includes(r.position))?r=t:o=o.filter((t=>t!==a)),a=_(a)}return e.set(t,o),o}(e,this._c):[].concat(n),o],a=i.reduce(((t,n)=>{const o=I(e,n,r);return t.top=S(o.top,t.top),t.right=F(o.right,t.right),t.bottom=F(o.bottom,t.bottom),t.left=S(o.left,t.left),t}),I(e,i[0],r));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:n,strategy:o}=t;const r=R(n),i=V(n);if(n===i)return e;let a={scrollLeft:0,scrollTop:0},l={x:1,y:1};const c={x:0,y:0};if((r||!r&&"fixed"!==o)&&(("body"!==H(n)||M(i))&&(a=X(n)),R(n))){const t=W(n);l=N(n),c.x=t.x+n.clientLeft,c.y=t.y+n.clientTop}return{width:e.width*l.x,height:e.height*l.y,x:e.x*l.x-a.scrollLeft*l.x+c.x,y:e.y*l.y-a.scrollTop*l.y+c.y}},isElement:$,getDimensions:function(t){return L(t)},getOffsetParent:K,getDocumentElement:V,getScale:N,async getElementRects(t){let{reference:e,floating:n,strategy:o}=t;const r=this.getOffsetParent||K,i=this.getDimensions;return{reference:Q(e,await r(n),o),floating:{x:0,y:0,...await i(n)}}},getClientRects:t=>Array.from(t.getClientRects()),isRTL:t=>"rtl"===v(t).direction},Z=l=>{const{ref:d,floating:m,placement:p=t.Placement.bottom,offset:y=0,arrow:h=!1,arrowColor:b="tw-bg-slate-700",autoHidden:v=!0,autoSize:A=!1,style:H={}}=l;let k=[(O=y,void 0===O&&(O=0),{name:"offset",options:O,async fn(t){const{x:n,y:i}=t,a=await async function(t,n){const{placement:i,platform:a,elements:l}=t,c=await(null==a.isRTL?void 0:a.isRTL(l.floating)),s=o(i),f=e(i),u="x"===r(i),d=["left","top"].includes(s)?-1:1,m=c&&u?-1:1,p="function"==typeof n?n(t):n;let{mainAxis:y,crossAxis:h,alignmentAxis:g}="number"==typeof p?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...p};return f&&"number"==typeof g&&(h="end"===f?-1*g:g),u?{x:h*m,y:y*d}:{x:y*d,y:h*m}}(t,O);return{x:n+a.x,y:i+a.y,data:a}}}),g(),(R={padding:5},void 0===R&&(R={}),{name:"shift",options:R,async fn(t){const{x:e,y:n,placement:i}=t,{mainAxis:a=!0,crossAxis:l=!1,limiter:s={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...f}=R,d={x:e,y:n},m=await c(t,f),p=r(o(i)),y="x"===p?"y":"x";let h=d[p],g=d[y];a&&(h=u(h+m["y"===p?"top":"left"],h,h-m["y"===p?"bottom":"right"])),l&&(g=u(g+m["y"===y?"top":"left"],g,g-m["y"===y?"bottom":"right"]));const w=s.fn({...t,[p]:h,[y]:g});return{...w,data:{x:w.x-e,y:w.y-n}}}})];var O,R;v&&k.push(function(t){return void 0===t&&(t={}),{name:"hide",options:t,async fn(e){const{strategy:n="referenceHidden",...o}=t,{rects:r}=e;switch(n){case"referenceHidden":{const t=w(await c(e,{...o,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:x(t)}}}case"escaped":{const t=w(await c(e,{...o,altBoundary:!0}),r.floating);return{data:{escapedOffsets:t,escaped:x(t)}}}default:return{}}}}}({padding:10})),H&&Object.assign(m.style,Object.assign(Object.assign({},H.height&&{height:H.height}),H.minHeight&&{minHeight:H.minHeight}));const $=["auto","100%","100vh","100vw","inherit","initial","unset",void 0].some((t=>t==(null==H?void 0:H.height)));A&&$&&k.push(function(t){return void 0===t&&(t={}),{name:"size",options:t,async fn(n){const{placement:i,rects:a,platform:l,elements:u}=n,{apply:d=(()=>{}),...m}=t,p=await c(n,m),y=o(i),h=e(i),g="x"===r(i),{width:w,height:x}=a.floating;let b,v;"top"===y||"bottom"===y?(b=y,v=h===(await(null==l.isRTL?void 0:l.isRTL(u.floating))?"start":"end")?"left":"right"):(v=y,b="end"===h?"top":"bottom");const A=x-p[b],H=w-p[v];let k=A,O=H;if(g?O=s(w-p.right-p.left,H):k=s(x-p.bottom-p.top,A),!n.middlewareData.shift&&!h){const t=f(p.left,0),e=f(p.right,0),n=f(p.top,0),o=f(p.bottom,0);g?O=w-2*(0!==t||0!==e?t+e:f(p.left,p.right)):k=x-2*(0!==n||0!==o?n+o:f(p.top,p.bottom))}await d({...n,availableWidth:O,availableHeight:k});const R=await l.getDimensions(u.floating);return w!==R.width||x!==R.height?{reset:{rects:!0}}:{}}}}({apply({availableHeight:t}){const e=`${t>window.innerHeight?window.innerHeight-10:t}px`;Object.assign(m.style,{maxHeight:`${H.maxHeight&&e>=H.maxHeight?H.maxHeight:e}`})},padding:5}));let j=document.getElementById(`${m.id}-arrow`);h&&(j||(j=document.createElement("div"),j.setAttribute("id",`${m.id}-arrow`)),j.setAttribute("class",`tw-absolute tw-w-2 tw-h-2 ${b} tw-transform tw-z-[-1] tw-opacity-0 tw-transition-opacity tw-duration-300 \n tw-shadow \n `),m.prepend(j),k.push((t=>({name:"arrow",options:t,async fn(o){const{element:i,padding:l=0}=t||{},{x:c,y:s,placement:f,rects:d,platform:m,elements:p}=o;if(null==i)return{};const y=a(l),h={x:c,y:s},g=r(f),w=n(g),x=await m.getDimensions(i),b="y"===g,v=b?"top":"left",A=b?"bottom":"right",H=b?"clientHeight":"clientWidth",k=d.reference[w]+d.reference[g]-h[g]-d.floating[w],O=h[g]-d.reference[g],R=await(null==m.getOffsetParent?void 0:m.getOffsetParent(i));let $=R?R[H]:0;$&&await(null==m.isElement?void 0:m.isElement(R))||($=p.floating[H]||d.floating[w]);const j=y[v],M=$-x[w]-y[A],P=$/2-x[w]/2+(k/2-O/2),B=u(j,P,M),C=null!=e(f)&&P!=B&&d.reference[w]/2-(P<j?y[v]:y[A])-x[w]/2<0;return{[g]:h[g]-(C?P<j?j-P:M-P:0),data:{[g]:B,centerOffset:P-B}}}}))({element:j,padding:4}))),((t,e,n)=>{const o=new Map,r={platform:U,...n},a={...r.platform,_c:o};return(async(t,e,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:a=[],platform:l}=n,c=a.filter(Boolean),s=await(null==l.isRTL?void 0:l.isRTL(e));let f=await l.getElementRects({reference:t,floating:e,strategy:r}),{x:u,y:d}=i(f,o,s),m=o,p={},y=0;for(let n=0;n<c.length;n++){const{name:a,fn:h}=c[n],{x:g,y:w,data:x,reset:b}=await h({x:u,y:d,initialPlacement:o,placement:m,strategy:r,middlewareData:p,rects:f,platform:l,elements:{reference:t,floating:e}});u=null!=g?g:u,d=null!=w?w:d,p={...p,[a]:{...p[a],...x}},b&&y<=50&&(y++,"object"==typeof b&&(b.placement&&(m=b.placement),b.rects&&(f=!0===b.rects?await l.getElementRects({reference:t,floating:e,strategy:r}):b.rects),({x:u,y:d}=i(f,m,s))),n=-1)}return{x:u,y:d,placement:m,strategy:r,middlewareData:p}})(t,e,{...r,platform:a})})(d,m,{placement:p,middleware:k}).then((({x:t,y:e,placement:n,middlewareData:o})=>{const{referenceHidden:r}=v?o.hide:{referenceHidden:!1};if(Object.assign(m.style,{top:"0",left:"0",transform:`translate(${Math.round(t)}px,${Math.round(e)}px)`,opacity:r?"0":"1",visibility:r?"hidden":"visible"}),r){const t=new CustomEvent("bcm-floating-is-hide",{detail:{id:m.id}});document.dispatchEvent(t),"true"!==m.getAttribute("outside-of-the-screen")&&m.setAttribute("outside-of-the-screen","true")}else"true"===m.getAttribute("outside-of-the-screen")&&m.removeAttribute("outside-of-the-screen");if(h){const{x:t,y:e}=o.arrow,i={top:"bottom",right:"left",bottom:"top",left:"right"}[n.split("-")[0]],a={top:"rotate(45deg)",right:"rotate(135deg)",bottom:"rotate(-135deg)",left:"rotate(-45deg)"}[n.split("-")[0]];Object.assign(j.style,{left:null!=t?`${t}px`:"",top:null!=e?`${e}px`:"",right:"",bottom:"",[i]:"-4px",opacity:1,visibility:r?"hidden":"visible",transform:a})}}))};export{Z as F}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Stencil
|
|
3
|
+
* Copyright (c) Bromcom.
|
|
4
|
+
*/
|
|
5
|
+
import{r as t,c as s,h as i,H as e,g as a}from"./p-e037ee2b.js";import"./p-499d8454.js";import"./p-626a65e9.js";import{G as o}from"./p-d4e4aeee.js";import"./p-e9a43560.js";import"./p-d65bc842.js";import"./p-367bc8e0.js";import"./p-6f861fed.js";import{d as h}from"./p-6f2e4c9b.js";import{B as r}from"./p-a313fba6.js";import{c as l}from"./p-64fad38b.js";import"./p-436364c8.js";import"./p-a2df6c19.js";import"./p-85eedabc.js";import"./p-858cee66.js";const c=class{constructor(i){t(this,i),this.modalClose=s(this,"bcm-modal-close",7),this.modalOpen=s(this,"bcm-modal-open",7),this.modalBeforeClose=s(this,"bcm-modal-before-close",7),this.modalBeforeOpen=s(this,"bcm-modal-before-open",7),this._id=o.UID(),this.isShow=!1,this.center=!1,this.zIndex="10400",this.size=r.Size.medium,this.backdrop=!0,this.fullWidth=!1,this.fullScreen=!1,this.overflow=!0,this.isShowModal=!1,this.shake=!1}handleClick(t){const s=o.findEventPathHasAttribute(t,"data-dismiss"),i=t.target.attributes.getNamedItem("is-click-overlay");i&&"static"===this.backdrop?this.shakeModal():(s||i)&&(this.hide(),t.preventDefault(),t.stopPropagation())}handleKeyDown(t){Array.from(document.querySelectorAll("bcm-modal-2[is-show]")).pop()===this.el&&"Escape"===t.key&&("static"===this.backdrop?this.shakeModal():this.hide(),t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}shakeModal(){this.shake=!0,setTimeout((()=>this.shake=!1),300)}async hide(){this.modalBeforeClose.emit()}async hideModal(t){t.defaultPrevented||t.target===this.el&&(this.isShowModal=!1,await h(150),this.isShow=!1,this.modalClose.emit())}async show(){this.modalBeforeOpen.emit()}async showModal(t){t.defaultPrevented||t.target===this.el&&(this.isShow=!0,await h(50),this.isShowModal=!0,document.body.appendChild(this.el),this.modalOpen.emit())}getWidth(t){return{small:"576px",medium:"768px",large:"992px",xlarge:"1024px",xxlarge:"1200px",xxxlarge:"1700px"}[t]||t}setSize(){const{fullScreen:t,fullWidth:s,size:i,overflow:e}=this;let a="auto",o="auto",h=s?"100%":this.getWidth(i);return t&&(o=e?"100vh":"auto",h="100vw",a="100vh"),{width:h,minHeight:a,height:o}}render(){return i(e,{class:{"tw-hidden":!this.isShow}},i("bcm-overlay",{"z-index":+this.zIndex-1,opacity:this.isShowModal?"0.5":"0"}),i("div",{class:l("tw-fixed tw-inset-0","tw-flex tw-h-full tw-w-full tw-items-start tw-justify-center","tw-overflow-y-scroll tw-overscroll-contain tw-font-sans",this.center?"tw-items-center":""),style:{zIndex:this.zIndex},"is-click-overlay":!0},i("div",{class:l("tw-flex tw-w-full tw-flex-col","tw-relative tw-z-modal tw-bg-white","tw--translate-y-[20px] tw-transform tw-opacity-0 tw-transition tw-duration-300 tw-ease-in-out",this.fullScreen?"":`tw-m-4 tw-rounded-lg ${this.overflow?"tw-max-h-[90vh]":""} `,this.shake?"tw-animate-shake":""),style:Object.assign(Object.assign({},this.setSize()),this.isShowModal?{transform:"translateY(0)",opacity:"1"}:{})},i("slot",{name:"header"}),i("bcm-scroll-area",{"is-disabled":!this.overflow},i("slot",null)),i("slot",{name:"footer"}))))}get el(){return a(this)}};export{c as bcm_modal_2}
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* Built with Stencil
|
|
3
3
|
* Copyright (c) Bromcom.
|
|
4
4
|
*/
|
|
5
|
-
const e=e=>new Promise((s=>setTimeout(s,e))),s=(e,s)=>{const a=s.split("-"),i=a[a.length-1],r=a.slice(0,a.length-1).join("-");return e[r]&&e[r][i]?e[r][i]:e["prime-blue"][6]},a=(e,s)=>{let a=[],i=[];const r=Array.from(e.shadowRoot.querySelectorAll("slot")).find((e=>!e.name));return a=r&&r.assignedElements()||[],a.map((e=>{String(e.tagName).toLowerCase()==s&&i.push(e)})),a=e.shadowRoot.querySelectorAll(s),i=[...i,...a],i},i=(e,s)=>[...e.querySelectorAll(s)],r=(e,s)=>{const a=e,i=document.documentElement.clientWidth,r=document.documentElement.clientHeight;var t=document.querySelector(s);if(t){var o=0;t.shadowRoot&&t.shadowRoot.querySelector(".caption-area")&&t.shadowRoot.querySelector(".caption-area").clientHeight&&(o=t.shadowRoot.querySelector(".caption-area").clientHeight+8);var n=0;t.shadowRoot&&t.shadowRoot.querySelector(".label")&&t.shadowRoot.querySelector(".label").clientHeight&&(n=t.shadowRoot.querySelector(".label").clientHeight+2);var u=t.noCaption?0:o-8,c=t.getBoundingClientRect();a.style.position="fixed",a.style.top=c.top+c.height-u+"px",a.style.left=c.left+"px",r<a.clientHeight+c.top+c.height-u&&(a.style.top=c.top-a.clientHeight+n+"px"),i<a.clientWidth+c.left&&(a.style.left=c.left-a.clientWidth+c.width-2+"px")}},t=e=>{let s;return s=getComputedStyle(e).getPropertyValue("transform").replace(/(matrix|\(|\)|px)/g,""),s=s.split(", "),{x:parseInt(s[4]),y:parseInt(s[5])}},o=(n={addendum:"addenda",aircraft:"aircraft",alumna:"alumnae",alumnus:"alumni",analysis:"analyses",antenna:"antennae",antithesis:"antitheses",apex:"apices",appendix:"appendices",axis:"axes",bacillus:"bacilli",bacterium:"bacteria",basis:"bases",beau:"beaux",bison:"bison",bureau:"bureaux",cactus:"cacti",château:"châteaux",child:"children",codex:"codices",concerto:"concerti",corpus:"corpora",crisis:"crises",criterion:"criteria",curriculum:"curricula",datum:"data",deer:"deer",diagnosis:"diagnoses",die:"dice",dwarf:"dwarves",ellipsis:"ellipses",erratum:"errata","faux pas":"faux pas",fez:"fezzes",fish:"fish",focus:"foci",foot:"feet",formula:"formulae",fungus:"fungi",genus:"genera",goose:"geese",graffito:"graffiti",grouse:"grouse",half:"halves",hoof:"hooves",hypothesis:"hypotheses",index:"indices",larva:"larvae",libretto:"libretti",loaf:"loaves",locus:"loci",louse:"lice",man:"men",matrix:"matrices",medium:"media",memorandum:"memoranda",minutia:"minutiae",moose:"moose",mouse:"mice",nebula:"nebulae",nucleus:"nuclei",oasis:"oases",offspring:"offspring",opus:"opera",ovum:"ova",ox:"oxen",parenthesis:"parentheses",phenomenon:"phenomena",phylum:"phyla",quiz:"quizzes",radius:"radii",referendum:"referenda",salmon:"salmon",scarf:"scarves",self:"selves",series:"series",sheep:"sheep",shrimp:"shrimp",species:"species",stimulus:"stimuli",stratum:"strata",swine:"swine",syllabus:"syllabi",symposium:"symposia",synopsis:"synopses",tableau:"tableaux",thesis:"theses",thief:"thieves",tooth:"teeth",trout:"trout",tuna:"tuna",vertebra:"vertebrae",vertex:"vertices",vita:"vitae",vortex:"vortices",wharf:"wharves",wife:"wives",wolf:"wolves",woman:"women",guy:"guys",buy:"buys",person:"people"},function(e,s=1){return s>1?n[e]?n[e]:"s"===e[e.length-1]||e.endsWith("sh")||e.endsWith("ch")||"x"===e[e.length-1]||"z"===e[e.length-1]?e+"es":"y"===e[e.length-1]?e.substring(0,e.length-1)+"ies":e+"s":e});var n;export{
|
|
5
|
+
const e=e=>new Promise((s=>setTimeout(s,e))),s=(e,s)=>{const a=s.split("-"),i=a[a.length-1],r=a.slice(0,a.length-1).join("-");return e[r]&&e[r][i]?e[r][i]:e["prime-blue"][6]},a=(e,s)=>{let a=[],i=[];const r=Array.from(e.shadowRoot.querySelectorAll("slot")).find((e=>!e.name));return a=r&&r.assignedElements()||[],a.map((e=>{String(e.tagName).toLowerCase()==s&&i.push(e)})),a=e.shadowRoot.querySelectorAll(s),i=[...i,...a],i},i=(e,s)=>[...e.querySelectorAll(s)],r=(e,s)=>{const a=e,i=document.documentElement.clientWidth,r=document.documentElement.clientHeight;var t=document.querySelector(s);if(t){var o=0;t.shadowRoot&&t.shadowRoot.querySelector(".caption-area")&&t.shadowRoot.querySelector(".caption-area").clientHeight&&(o=t.shadowRoot.querySelector(".caption-area").clientHeight+8);var n=0;t.shadowRoot&&t.shadowRoot.querySelector(".label")&&t.shadowRoot.querySelector(".label").clientHeight&&(n=t.shadowRoot.querySelector(".label").clientHeight+2);var u=t.noCaption?0:o-8,c=t.getBoundingClientRect();a.style.position="fixed",a.style.top=c.top+c.height-u+"px",a.style.left=c.left+"px",r<a.clientHeight+c.top+c.height-u&&(a.style.top=c.top-a.clientHeight+n+"px"),i<a.clientWidth+c.left&&(a.style.left=c.left-a.clientWidth+c.width-2+"px")}},t=e=>{let s;return s=getComputedStyle(e).getPropertyValue("transform").replace(/(matrix|\(|\)|px)/g,""),s=s.split(", "),{x:parseInt(s[4]),y:parseInt(s[5])}},o=(n={addendum:"addenda",aircraft:"aircraft",alumna:"alumnae",alumnus:"alumni",analysis:"analyses",antenna:"antennae",antithesis:"antitheses",apex:"apices",appendix:"appendices",axis:"axes",bacillus:"bacilli",bacterium:"bacteria",basis:"bases",beau:"beaux",bison:"bison",bureau:"bureaux",cactus:"cacti",château:"châteaux",child:"children",codex:"codices",concerto:"concerti",corpus:"corpora",crisis:"crises",criterion:"criteria",curriculum:"curricula",datum:"data",deer:"deer",diagnosis:"diagnoses",die:"dice",dwarf:"dwarves",ellipsis:"ellipses",erratum:"errata","faux pas":"faux pas",fez:"fezzes",fish:"fish",focus:"foci",foot:"feet",formula:"formulae",fungus:"fungi",genus:"genera",goose:"geese",graffito:"graffiti",grouse:"grouse",half:"halves",hoof:"hooves",hypothesis:"hypotheses",index:"indices",larva:"larvae",libretto:"libretti",loaf:"loaves",locus:"loci",louse:"lice",man:"men",matrix:"matrices",medium:"media",memorandum:"memoranda",minutia:"minutiae",moose:"moose",mouse:"mice",nebula:"nebulae",nucleus:"nuclei",oasis:"oases",offspring:"offspring",opus:"opera",ovum:"ova",ox:"oxen",parenthesis:"parentheses",phenomenon:"phenomena",phylum:"phyla",quiz:"quizzes",radius:"radii",referendum:"referenda",salmon:"salmon",scarf:"scarves",self:"selves",series:"series",sheep:"sheep",shrimp:"shrimp",species:"species",stimulus:"stimuli",stratum:"strata",swine:"swine",syllabus:"syllabi",symposium:"symposia",synopsis:"synopses",tableau:"tableaux",thesis:"theses",thief:"thieves",tooth:"teeth",trout:"trout",tuna:"tuna",vertebra:"vertebrae",vertex:"vertices",vita:"vitae",vortex:"vortices",wharf:"wharves",wife:"wives",wolf:"wolves",woman:"women",guy:"guys",buy:"buys",person:"people"},function(e,s=1){return s>1?n[e]?n[e]:"s"===e[e.length-1]||e.endsWith("sh")||e.endsWith("ch")||"x"===e[e.length-1]||"z"===e[e.length-1]?e+"es":"y"===e[e.length-1]?e.substring(0,e.length-1)+"ies":e+"s":e});var n;export{a,r as b,t as c,e as d,s as e,i as g,o as p}
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* Built with Stencil
|
|
3
3
|
* Copyright (c) Bromcom.
|
|
4
4
|
*/
|
|
5
|
-
import{
|
|
5
|
+
import{c as t}from"./p-6f2e4c9b.js";var s;!function(t){t.x="x",t.y="y",t.both="both"}(s||(s={}));class i{constructor({target:i,trigger:e,limit:h,center:o,direction:n=s.both,snapOnMouseDown:r=!1,useTransform:a=!1}){this.drag={x:0,y:0},this.offset={left:0,top:0},this.events={end:[],drag:[]},this.active=!1,this.anim=!1,this.busy=!1,this.target=i,this.trigger=e||i,this.direction=n,this.limit=h,this.useTransform=a,this.snapOnMouseDown=r,this.center=o,this.container=this.findRelativeContainer(),this.offset={top:this.useTransform?t(i).y:i.offsetTop,left:this.useTransform?t(i).x:i.offsetLeft},this.attachEvents()}attachEvents(){window.addEventListener("mousemove",(t=>this.windowMove(t))),window.addEventListener("mouseup",(()=>this.windowUp())),this.trigger.addEventListener("mousedown",(t=>this.triggerDown(t)))}computedStyle(t,s){return window.getComputedStyle(t,null).getPropertyValue(s)}findRelativeContainer(){const{target:t}=this,s=Node.ELEMENT_NODE;let i=t.parentNode;for(;i&&i.nodeType===s;){if(["absolute","relative"].includes(this.computedStyle(i,"position")))return i;i=i.parentNode}return null}windowMove(t){if(!this.active)return;const{limit:s}=this,{center:{x:i,y:e}={x:0,y:0}}=this;let h=t.pageX-this.drag.x-i,o=t.pageY-this.drag.y-e;this.busy=!0;const[n,r,a,l]=[s&&s.x&&s.x.max-i,s&&s.x&&s.x.min-i,s&&s.y&&s.y.max-e,s&&s.y&&s.y.min-e];(n||0===n)&&h>n&&(h=n),(r||0===r)&&h<r&&(h=r),(a||0===a)&&o>a&&(o=a),(l||0===l)&&o<l&&(o=l),this.offset={top:o,left:h},this.removeTransition(),this.move()}windowUp(){this.active&&(this.triggerEvent("end",this.getCurrentPosition()),this.animTimeout=setTimeout((()=>{clearTimeout(this.animTimeout),this.busy=!1}),210),this.active=!1)}triggerDown(t){this.active=!0,this.snapOnMouseDown&&(this.offset.left=t.offsetX,this.offset.top=t.offsetY,this.move()),this.drag.x=t.pageX-this.offset.left,this.drag.y=t.pageY-this.offset.top}move(t=!0){const{direction:i,useTransform:e,target:h,offset:{top:o,left:n}}=this;i===s.both?e?h.style.transform=`translate(${n}px, ${o}px)`:(h.style.top=`${o}px`)&&(h.style.left=`${n}px`):i===s.x?e?h.style.transform=`translateX(${n}px)`:h.style.left=`${n}px`:i===s.y&&(e?h.style.transform=`translateY(${o}px)`:h.style.top=`${o}px`),t&&this.triggerEvent("drag",this.getCurrentPosition())}calculateOffset(){const{target:t,container:s}=this;let{left:i,top:e}=t.style;if(!s)return{left:i,top:e};const[h,o]=[t.getBoundingClientRect(),s.getBoundingClientRect()];return i=h.left-o.left,e=h.top-o.top,{left:i,top:e}}getCurrentPosition(){const{target:s}=this,{center:{x:i,y:e}={x:0,y:0}}=this;let{left:h,top:o}=this.calculateOffset();return{x:this.useTransform?t(s).x+i:parseFloat(h)+i,y:this.useTransform?t(s).y+e:parseFloat(o)+e}}setPosition({x:t,y:s,anim:i}){const{center:{x:e,y:h}={x:0,y:0}}=this;(t||0===t)&&(this.offset.left=t-e),(s||0===s)&&(this.offset.top=s-h),i&&this.applyTransition(),this.move(!1)}applyTransition(){this.anim=!0,this.target.style.transition="transform 0.2s ease"}removeTransition(){this.anim=!1,this.target.style.transition=""}getOffset(){return this.offset}on(t,s){this.events[t].push(s)}triggerEvent(t,...s){this.events[t].forEach((t=>t(s[0])))}}export{s as D,i as E}
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* Built with Stencil
|
|
3
3
|
* Copyright (c) Bromcom.
|
|
4
4
|
*/
|
|
5
|
-
import{r as t,h as i,H as e,
|
|
5
|
+
import{r as t,h as i,H as e,g as s}from"./p-e037ee2b.js";import{c as a}from"./p-64fad38b.js";import{I as n}from"./p-8e5e362a.js";import{G as h}from"./p-d4e4aeee.js";import{a as p}from"./p-a313fba6.js";import{d as r}from"./p-6f2e4c9b.js";import"./p-85eedabc.js";import"./p-858cee66.js";import"./p-a2df6c19.js";const o=class{constructor(i){t(this,i),this._id=h.UID(),this.time=new Date,this.value=void 0,this.hidden=!1,this.name=void 0,this.fullWidth=!1,this.required=!1,this.label=void 0,this.placeholder=void 0,this.disabled=!1,this.noMargin=!1,this.noCaption=!1,this.caption="",this.captionError=void 0,this.captionType="default",this.alignment=void 0,this.placement=p.Placement["bottom-start"],this.linkedComponent=void 0,this.clearable=!1}componentWillLoad(){if("string"==typeof this.time){const t=!!/\b([01][0-9]|2[0-3]):([0-5][0-9])\b/.test(this.time)&&this.time.split(":");this.time=t?new Date((new Date).setHours(Number(t[0]),Number(t[1]))):new Date}}handlePickerLoad(){this.value=this.picker.value}handlePickerChange(t){this.value=t.detail}async set(t){return this.picker.set(t)}async get(){var t;return(null===(t=this.value)||void 0===t?void 0:t.timestamp)||null}async setDisabled(t){this.disabled=t}async getInput(){return await this.picker.getInput()}async getValue(){return this.value}async isValid(){return await this.picker.isValid()}async setClear(){return await this.picker.setClear(),await r(10),Promise.resolve()}async resetCaption(){return await r(10),await this.picker.resetCaption(),this.captionType="default",this.captionError=null,await r(10),Promise.resolve()}async open(){return await this.picker.open()}render(){const t=a(this.hidden?"hidden":null,{"full-width":this.fullWidth});return i(e,{class:t},i("bcm-datetime-picker",{"linked-component":this.linkedComponent,id:this._id,fullWidth:this.fullWidth,required:this.required,label:this.label,name:this.name,placeholder:this.placeholder,type:"time",clearable:this.clearable,date:this.time,ref:t=>this.picker=t,disabled:this.disabled,"on-bcm-load":()=>this.handlePickerLoad(),"on-bcm-change":t=>this.handlePickerChange(t),noCaption:this.noCaption,captionError:this.captionError,caption:this.caption,captionType:this.captionType,alignment:this.alignment,placement:this.placement,noMargin:this.noMargin}))}get el(){return s(this)}};(function(t,i,e,s){var a,n=arguments.length,h=n<3?i:null===s?s=Object.getOwnPropertyDescriptor(i,e):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)h=Reflect.decorate(t,i,e,s);else for(var p=t.length-1;p>=0;p--)(a=t[p])&&(h=(n<3?a(h):n>3?a(i,e,h):a(i,e))||h);n>3&&h&&Object.defineProperty(i,e,h)})([n()],o.prototype,"el",void 0),o.style='@import url("https://fonts.googleapis.com/css?family=Roboto:400,500");.size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}:host{display:inline-flex;width:100%;max-width:256px}:host(.full-width){max-width:100%}:host(.hidden){display:none}:host(.linked-component){display:none}';export{o as bcm_time_picker}
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* Built with Stencil
|
|
3
3
|
* Copyright (c) Bromcom.
|
|
4
4
|
*/
|
|
5
|
-
import{c as t}from"./p-08c75801.js";const e=t({slots:{host:"bcm-input2 bcm-ui-element tw-inline-flex tw-flex-col tw-w-full tw-max-w-64 tw-mb-2 ",base:"",inputContainer:["bcm-input2__container","tw-bg-color-base tw-border tw-border-solid tw-border-color tw-rounded","tw-flex tw-items-center tw-justify-between tw-gap-2","tw-px-3"],input:["bcm-input2-element tw-w-full tw-h-full tw-flex-1 tw-outline-none tw-bg-transparent tw-border-0 tw-appearance-none tw-text-ellipsis","tw-text-color-default placeholder:tw-text-color-placeholder","[appearance:textfield][&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none"],slotClass:"tw-flex tw-items-center tw-justify-between tw-gap-2 empty:tw-hidden tw-text-color-placeholder",clearButton:["clear-button tw-cursor-pointer tw-appearance-none tw-border-0 tw-text-color-placeholder tw-text-size-inherit tw-bg-transparent tw-py-1 tw-px-2 -tw-mx-2","hover:tw-text-color"],controls:"number-controls -tw-mr-3 tw-flex tw-h-full tw-w-fit tw-flex-col tw-items-center tw-justify-between",controlsBtn:["number-control-button tw-w-7 tw-flex-1 tw-cursor-pointer tw-appearance-none tw-border-0 tw-border-l tw-border-solid tw-border-color tw-bg-transparent tw-p-0 tw-text-2 tw-leading-none tw-text-color-placeholder"],controlsBtnUp:"number-control-up tw-rounded-tr-[3px]",controlsBtnDown:"number-control-down tw-rounded-br-[3px]",controlsDivider:"number-control-divider tw-h-0 tw-w-full tw-border-0 tw-border-b tw-border-solid tw-border-color"},variants:{size:{small:{host:"bcm-input2__container--small",inputContainer:"input2-size-small tw-h-6",input:"tw-text-2"},medium:{host:"bcm-input2__container--medium",inputContainer:"input2-size-medium tw-h-8",input:"tw-text-3"},large:{host:"bcm-input2__container--large",inputContainer:"input2-size-large tw-h-10",input:"tw-text-4"}},fullWidth:{true:{host:"full-width tw-max-w-full"}},noMargin:{true:{host:"no-margin tw-mb-0"}},hidden:{true:{host:"hidden tw-hidden"}},focused:{true:{host:"focused"}},clearable:{true:{host:"clearable"}},disabled:{true:{host:"disabled",input:"",inputContainer:"tw-bg-color-disabled tw-border-color-disabled tw-text-color-disabled tw-cursor-not-allowed",controlsBtn:"tw-pointer-events-none"},false:{controlsBtn:"hover:tw-bg-color-base-hover hover:tw-text-color",inputContainer:["has-[:not([disabled]):focus]:tw-ring","has-[:not([disabled]):hover]:tw-border-color-
|
|
5
|
+
import{c as t}from"./p-08c75801.js";const e=t({slots:{host:"bcm-input2 bcm-ui-element tw-inline-flex tw-flex-col tw-w-full tw-max-w-64 tw-mb-2 ",base:"",inputContainer:["bcm-input2__container","tw-bg-color-base tw-border tw-border-solid tw-border-color tw-rounded","tw-flex tw-items-center tw-justify-between tw-gap-2","tw-px-3"],input:["bcm-input2-element tw-w-full tw-h-full tw-flex-1 tw-outline-none tw-bg-transparent tw-border-0 tw-appearance-none tw-text-ellipsis","tw-text-color-default placeholder:tw-text-color-placeholder","[appearance:textfield][&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none"],slotClass:"tw-flex tw-items-center tw-justify-between tw-gap-2 empty:tw-hidden tw-text-color-placeholder",clearButton:["clear-button tw-cursor-pointer tw-appearance-none tw-border-0 tw-text-color-placeholder tw-text-size-inherit tw-bg-transparent tw-py-1 tw-px-2 -tw-mx-2","hover:tw-text-color"],controls:"number-controls -tw-mr-3 tw-flex tw-h-full tw-w-fit tw-flex-col tw-items-center tw-justify-between",controlsBtn:["number-control-button tw-w-7 tw-flex-1 tw-cursor-pointer tw-appearance-none tw-border-0 tw-border-l tw-border-solid tw-border-color tw-bg-transparent tw-p-0 tw-text-2 tw-leading-none tw-text-color-placeholder"],controlsBtnUp:"number-control-up tw-rounded-tr-[3px]",controlsBtnDown:"number-control-down tw-rounded-br-[3px]",controlsDivider:"number-control-divider tw-h-0 tw-w-full tw-border-0 tw-border-b tw-border-solid tw-border-color"},variants:{size:{small:{host:"bcm-input2__container--small",inputContainer:"input2-size-small tw-h-6",input:"tw-text-2"},medium:{host:"bcm-input2__container--medium",inputContainer:"input2-size-medium tw-h-8",input:"tw-text-3"},large:{host:"bcm-input2__container--large",inputContainer:"input2-size-large tw-h-10",input:"tw-text-4"}},fullWidth:{true:{host:"full-width tw-max-w-full"}},noMargin:{true:{host:"no-margin tw-mb-0"}},hidden:{true:{host:"hidden tw-hidden"}},focused:{true:{host:"focused"}},clearable:{true:{host:"clearable"}},disabled:{true:{host:"disabled",input:"",inputContainer:"tw-bg-color-disabled tw-border-color-disabled tw-text-color-disabled tw-cursor-not-allowed",controlsBtn:"tw-pointer-events-none"},false:{controlsBtn:"hover:tw-bg-color-base-hover hover:tw-text-color",inputContainer:["has-[:not([disabled]):focus]:tw-ring","has-[:not([disabled]):hover]:tw-border-color-primary"]}},readonly:{true:{host:"readonly"}},invalid:{true:{host:"invalid",inputContainer:"tw-border-color-error has-[:not([disabled]):focus]:tw-ring-color-error has-[:not([disabled]):hover]:!tw-border-color-error"}},unit:{true:{host:"unit"}},error:{true:{host:"error",inputContainer:"tw-border-color-error"}}},defaultVariants:{size:"medium",noMargin:!1,fullWidth:!1,hidden:!1,focused:!1,clearable:!1,disabled:!1,readonly:!1,invalid:!1,unit:!1,error:!1}});export{e as i}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Stencil
|
|
3
|
+
* Copyright (c) Bromcom.
|
|
4
|
+
*/
|
|
5
|
+
import{r as e,h as t,H as i,g as p}from"./p-e037ee2b.js";import{c as n}from"./p-64fad38b.js";import{a}from"./p-6f2e4c9b.js";import{T as s}from"./p-e53f8a82.js";import"./p-85eedabc.js";const o=class{constructor(t){e(this,t),this.size="medium",this.hidden=!1,this.fullWidth=!1,this.type=s.normal}connectedCallback(){}disconnectedCallback(){}componentWillLoad(){}componentDidLoad(){}componentWillRender(){}componentDidRender(){}componentWillUpdate(){}componentDidUpdate(){}handleActivePane(e){a(this.el,"bcm-tab-pane").forEach((t=>{t.tab==e.detail&&(t.active=!0),t.tab!=e.detail&&(t.active=!1)}))}render(){const e=n("tabs-content",this.size),p=n(this.hidden?"hidden":null,this.type);return t(i,{class:p},t("div",{class:e},t("slot",null)))}get el(){return p(this)}};o.style='@import url("https://fonts.googleapis.com/css?family=Roboto:400,500");.size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}:host{width:100%;display:block;padding:8px}:host(.pane){border:1px solid transparent;border-top:none;border-color:var(--bcm-color-grey-5);border-radius:0 0 2px 2px}';export{o as bcm_tabs_content}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Stencil
|
|
3
|
+
* Copyright (c) Bromcom.
|
|
4
|
+
*/
|
|
5
|
+
import{r as t,c as i,f as e,h as o,H as n,g as l,F as s}from"./p-e037ee2b.js";import"./p-499d8454.js";import"./p-626a65e9.js";import{G as r}from"./p-d4e4aeee.js";import"./p-e9a43560.js";import"./p-d65bc842.js";import"./p-367bc8e0.js";import"./p-6f861fed.js";import{B as a}from"./p-a313fba6.js";import{C as d}from"./p-556010cb.js";import{c as u}from"./p-64fad38b.js";import"./p-3fac58f7.js";import"./p-2e73d572.js";import{c as p}from"./p-08c75801.js";import"./p-436364c8.js";import"./p-6f2e4c9b.js";import"./p-a2df6c19.js";import"./p-85eedabc.js";import"./p-858cee66.js";const h=p({slots:{base:"tw-font-sans tw-flex tw-flex-col tw-items-start tw-justify-start tw-gap-2",content:"tw-flex tw-flex-row tw-items-center tw-justify-start tw-gap-3",inputArea:"tw-flex tw-flex-row tw-items-center tw-justify-start tw-gap-1 tw-box-content tw-border tw-border-solid tw-max-w-[100px] tw-uppercase tw-font-medium tw-text-center tw-border-gray-300 tw-rounded",input:"tw-flex-1 tw-text-inherit tw-uppercase tw-font-semibold tw-text-center tw-border-none tw-bg-transparent tw-outline-none tw-w-full",button:["input-dropdown-button tw-flex tw-flex-row tw-items-center tw-justify-center tw-gap-1 tw-rounded tw-outline-none tw-bg-slate-100","tw-border tw-border-solid tw-border-slate-300 tw-font-medium tw-text-slate-600","hover:tw-border-slate-400 hover:tw-bg-slate-200","tw-min-w-[32px]","tw-cursor-pointer","disabled:tw-cursor-not-allowed disabled:tw-text-slate-400 disabled:tw-pointer-events-none","readonly:tw-text-slate-700 readonly:tw-cursor-text"],menu:"tw-mt-1 tw-flex tw-flex-col tw-items-start tw-justify-center tw-gap-2 tw-overflow-auto tw-bg-white tw-p-3 tw-font-sans tw-text-3 tw-text-slate-700",menuItem:"tw-flex tw-w-full tw-cursor-pointer tw-flex-row tw-items-start tw-gap-1 tw-rounded tw-px-3 tw-py-1 tw-text-slate-700 hover:tw-bg-blue-100",selectedItem:"tw-flex tw-w-full tw-flex-row tw-items-start tw-gap-1 tw-rounded tw-px-3 tw-py-1 tw-text-slate-700 tw-bg-primary-200",disabledItem:"tw-flex tw-w-full tw-flex-row tw-items-start tw-gap-1 tw-rounded tw-px-3 tw-py-1 tw-cursor-not-allowed tw-text-slate-400 tw-bg-slate-100 hover:tw-bg-slate-100 tw-list-none",commentArea:"tw-flex tw-h-fit tw-w-full tw-min-w-[288px] tw-flex-col tw-items-start tw-rounded tw-p-4 tw-shadow-2"},variants:{size:{small:{button:"tw-h-[18px] tw-text-1 tw-leading-none"},medium:{button:"tw-h-[24px] tw-text-2",inputArea:"tw-p-0.5",input:"tw-text-4"},large:{button:"tw-h-[30px] tw-text-2",inputArea:"tw-p-1",input:"tw-text-6"}},invalid:{true:{inputArea:"tw-border-red-600 tw-bg-red-50",input:"tw-text-red-500"}},disabled:{true:{base:"tw-opacity-50 tw-cursor-not-allowed",input:"tw-cursor-not-allowed"}},hideComment:{true:{base:"tw-min-w-[98px]"},false:{base:"tw-min-w-[128px] "}},label:{true:""}},defaultVariants:{size:"medium",invalid:!1,hideComment:!1,disabled:!1}}),c=class{constructor(e){t(this,e),this.change=i(this,"bcm-change",7),this.onChangeDropdown=i(this,"bcm-input-dropdown-change",7),this.handleKeyPress=t=>{var i,e;(null===(e=null===(i=null==t?void 0:t.target)||void 0===i?void 0:i.value)||void 0===e?void 0:e.length)>=+this.maxCharacterLimit&&t.preventDefault()},this._id=r.UID(),this.value=void 0,this.defaultValue={},this.lateKeys="L",this.maxCharacterLimit=1,this.size=a.Size.medium,this.label=void 0,this.placeholder=void 0,this.name=void 0,this.fullWidth=!1,this.hideComment=!1,this.hideCaption=!0,this.disabled=!1,this.required=!1,this.readonly=!1,this.data=[{key:"/",value:"Present",color:"#00b050"},{key:"B",value:"Educated off site (NOT dual registration)",color:"#ffc000"},{key:"C",value:"Other authorised circumstance",color:"#ffc000"},{key:"D",value:"Dual registration",color:"#0070c0"},{key:"E",value:"Excluded",color:"#ff0000"},{key:"F",value:"Free Study",color:"#ffc000"},{key:"I",value:"Illness",color:"#ff0000"},{key:"J",value:"Interview",color:"#ffc000"},{key:"L",value:"Late before reg. closed",color:"#ffc000"}],this.caption=void 0,this.noCaption=!1,this.captionType=a.Status.default,this.captionError=void 0,this.customErrorMessage=void 0,this.captionCache=void 0,this.captionTypeCache=void 0,this.isOpenMenu=!1,this.invalid=!1}get overlayContainer(){return document.getElementById("bcm-overlay-container")}get menuContent(){var t,i;return null!==(i=null===(t=this.overlayContainer)||void 0===t?void 0:t.querySelector(`#i-dropdown-menu-${this._id}`))&&void 0!==i?i:this.el.querySelector(`#i-dropdown-menu-${this._id}`)}get keys(){return this.lateKeys.toLocaleLowerCase().split(",")}get isLate(){var t,i,e,o,n,l;return this.keys.includes(null===(i=null===(t=this.value)||void 0===t?void 0:t.key)||void 0===i?void 0:i.toLocaleLowerCase())||(null===(o=null===(e=this.data)||void 0===e?void 0:e.find((t=>{var i,e,o;return(null===(i=null==t?void 0:t.key)||void 0===i?void 0:i.toLowerCase())===(null===(o=null===(e=this.value)||void 0===e?void 0:e.key)||void 0===o?void 0:o.toLowerCase())})))||void 0===o?void 0:o.isLate)||(null===(l=null===(n=this.data)||void 0===n?void 0:n.find((t=>{var i,e,o;return(null===(i=null==t?void 0:t.key)||void 0===i?void 0:i.toLowerCase())===(null===(o=null===(e=this.value)||void 0===e?void 0:e.key)||void 0===o?void 0:o.toLowerCase())})))||void 0===l?void 0:l.lateMin)>0}componentWillLoad(){var t,i;this.captionCache=this.caption,this.captionTypeCache=this.captionType,(null===(t=Object.keys(this.defaultValue))||void 0===t?void 0:t.length)>0?this.watchDefaultValueHandler(this.defaultValue):this.value=null===(i=this.data)||void 0===i?void 0:i.find((t=>t.selected))}get commentContent(){var t,i;return null!==(i=null===(t=this.overlayContainer)||void 0===t?void 0:t.querySelector(`#i-dropdown-comment-${this._id}`))&&void 0!==i?i:this.el.querySelector(`#i-dropdown-comment-${this._id}`)}clickListener(t){var i,e;const o=r.findEventPath(t,this.el),n=r.findEventPathWithNodeName(t,"BCM-LINKED");o||n||this.keys.includes(null===(i=this.value)||void 0===i?void 0:i.key)||null===(e=this.commentContent)||void 0===e||e.hide()}watchDefaultValueHandler(t){var i,o;t&&(this.value=null===(i=this.data)||void 0===i?void 0:i.find((i=>{var e,o;return(null===(e=null==i?void 0:i.key)||void 0===e?void 0:e.toLowerCase())===(null===(o=t.key)||void 0===o?void 0:o.toLowerCase())})),this.data=this.data.map((i=>(i.key===(null==t?void 0:t.key)?(i=t).selected=!0:i.selected=!1,i))),this.value=null===(o=this.data)||void 0===o?void 0:o.find((t=>null==t?void 0:t.selected)),e(this.el))}async set(t){this.data="string"==typeof t?JSON.parse(t):t}async get(){return this.value}async setClear(){return this.value=null,Promise.resolve()}async resetCaption(){return this.caption=this.captionCache,this.captionType=this.captionTypeCache,this.captionError=null,this.invalid=!1,Promise.resolve()}onSelectItem(t){var i;this.invalid=!1,this.data=this.data.map((i=>Object.assign(Object.assign({},i),{selected:i.key===t.key}))),this.value=null===(i=this.data)||void 0===i?void 0:i.find((t=>null==t?void 0:t.selected)),this.onChangeDropdown.emit(this.value),this.change.emit()}async handleInput(t){var i,e,o,n,l,s,r;const a=null===(i=null==t?void 0:t.target)||void 0===i?void 0:i.value;if(this.isOpenMenu=!0,(null==a?void 0:a.length)>=+this.maxCharacterLimit){const i=null===(e=this.data)||void 0===e?void 0:e.find((t=>{var i;return(null===(i=null==t?void 0:t.key)||void 0===i?void 0:i.toLowerCase())===a.toLowerCase()}));i?(await(null===(o=this.menuContent)||void 0===o?void 0:o.hide()),(null==i?void 0:i.hideComment)||null===(n=this.commentContent)||void 0===n||n.show(),this.onSelectItem(i)):(this.invalid=!0,this.value=t.target.value,await(null===(l=this.menuContent)||void 0===l?void 0:l.show()),this._input.style.color="#ff0000")}else null===(s=this.commentContent)||void 0===s||s.hide(),null===(r=this.menuContent)||void 0===r||r.hide(),this.value=null,this._input.style.color="#000000",this.invalid=!1;this.change.emit()}onClickSave(){var t;null===(t=this.commentContent)||void 0===t||t.hide(),this.data=this.data.map((t=>Object.assign(Object.assign({},t),t.key===this.value.key&&{lateMin:this.value.lateMin,comment:this.value.comment}))),e(this.el),this.onChangeDropdown.emit(this.value),this.change.emit()}async onClick(t){var i,e;(null==t?void 0:t.hideComment)||null===(i=this.commentContent)||void 0===i||i.show(),await(null===(e=this.menuContent)||void 0===e?void 0:e.hide()),this.onSelectItem(t)}render(){var t,i,e,l,r;const{size:a,label:p,placeholder:c,required:m,disabled:w,readonly:v,_id:x,invalid:g,hideComment:b,noCaption:f,customErrorMessage:y,caption:z,captionType:j,captionError:k,hideCaption:C}=this,{base:I,inputArea:E,input:L,button:O,menu:M,menuItem:$,commentArea:A,disabledItem:B,content:D,selectedItem:S}=h({size:a,invalid:g,hideComment:b,disabled:w});return o(n,{class:I()},p&&o("bcm-label",{htmlFor:x+"-dropdown-input",size:a,value:p,required:m}),o("div",{class:D()},o("div",{class:E()},o("input",{id:x+"-dropdown-input",class:L(),style:{color:null===(t=this.value)||void 0===t?void 0:t.color},type:"text",tabIndex:-1,placeholder:c,value:null===(i=this.value)||void 0===i?void 0:i.key,disabled:w,required:m,autoComplete:"off",readOnly:v,onKeyPress:t=>this.handleKeyPress(t),onInput:t=>this.handleInput(t),ref:t=>this._input=t}),o("button",{disabled:w,id:`i-dropdown-button-${x}`,class:O(),onClick:()=>this.isOpenMenu=!0},o("i",{class:"fas fa-chevron-down"})),o("bcm-linked",{"onBcm-open":({detail:t})=>{var i;return t&&(null===(i=this.commentContent)||void 0===i?void 0:i.hide())},class:"tw-mt-1",id:`i-dropdown-menu-${x}`,"target-id":`i-dropdown-button-${x}`,placement:"bottom-start"},o((()=>{var t;return o(s,null,this.isOpenMenu?o("div",{class:M()},this.invalid&&o("li",{class:$()+" tw-bg-red-100 hover:tw-bg-red-100"},o("span",{class:"tw-text-red-900"},o("i",{class:"far fa-exclamation-circle"})),o("span",null,"There is not mark you entered, please use")),null===(t=this.data)||void 0===t?void 0:t.map((t=>o(s,null,o("li",(null==t?void 0:t.disabled)?{class:B()}:{class:(null==t?void 0:t.selected)?S():$(),onClick:()=>this.onClick(t)},o("span",null,t.key)," - ",o("span",null,t.value)))))):null)}),null)),o("bcm-linked",{id:`i-dropdown-comment-${x}`,"target-id":x,trigger:"custom",placement:"left"},o((()=>{var t,i,e;return o(s,null,this.isOpenMenu?o("div",{class:A()},this.isLate?o(s,null,o("bcm-input",{label:"Minus Late",required:!0,id:this._id+"-input-dropdown-late-content-input",type:"number","full-width":!0,autocomplete:!1,min:0,max:200,value:null===(t=this.value)||void 0===t?void 0:t.lateMin,placeholder:"Enter Minus Late",customErrorMessage:"Max limit 200 mins","onBcm-change":({detail:t})=>this.value.lateMin=+t},o("i",{slot:"prefix",class:"far fa-clock"}))):null,o("bcm-textarea",{"full-width":!0,value:null!==(e=null===(i=this.value)||void 0===i?void 0:i.comment)&&void 0!==e?e:"","onBcm-change":({detail:t})=>this.value.comment=t,label:"Description","no-caption":!0,rows:4}),o("footer",{class:"tw-flex tw-w-full tw-flex-row tw-items-center tw-justify-end tw-gap-2"},o("bcm-button",{role:"button","aria-labelledby":"button","aria-label":"button",icon:"fas fa-times",kind:"ghost","icon-position":"prefix",onClick:()=>{var t;return null===(t=this.commentContent)||void 0===t?void 0:t.hide()}},"Close"),o("bcm-button",{role:"button","aria-labelledby":"button","aria-label":"button",icon:"fas fa-save","icon-position":"prefix",onClick:()=>this.onClickSave()},"Save"))):null)}),null))),this.hideComment?null:o("span",{onClick:()=>{var t,i;(null===(t=this.value)||void 0===t?void 0:t.key)&&(this.isOpenMenu=!0,null===(i=this.commentContent)||void 0===i||i.show())},class:u((null===(e=this.value)||void 0===e?void 0:e.comment)||(null===(l=this.value)||void 0===l?void 0:l.lateMin)>0?"tw-text-slate-600":"tw-text-slate-400",{"tw-cursor-pointer":null===(r=this.value)||void 0===r?void 0:r.key})},o("i",{class:"fas fa-comment"}))),!C&&o(d,{noCaption:f,captionType:j,captionError:k,caption:z,customErrorMessage:y}))}get el(){return l(this)}static get watchers(){return{defaultValue:["watchDefaultValueHandler"]}}};c.style='@import url("https://fonts.googleapis.com/css?family=Roboto:400,500");.size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}.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}:host{display:flex;flex-direction:column;width:100%;position:relative}.input-dropdown-button i{transition:transform 0.2s ease-in-out}.input-dropdown-button[linked-is-open]>i{transform:rotate(-180deg);transition:transform 0.2s ease-in-out}';export{c as bcm_input_dropdown}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Stencil
|
|
3
|
+
* Copyright (c) Bromcom.
|
|
4
|
+
*/
|
|
5
|
+
import{r as e,c as t,f as i,h as s,H as a,g as o}from"./p-e037ee2b.js";import{I as n}from"./p-8e5e362a.js";import{G as r,s as h}from"./p-d4e4aeee.js";import{S as p}from"./p-d65bc842.js";import{a as l}from"./p-a313fba6.js";import"./p-858cee66.js";import"./p-a2df6c19.js";import"./p-85eedabc.js";const c=["BCM-INPUT","BCM-TEXTAREA","BCM-SWITCH","BCM-CHECKBOX","BCM-RADIO-GROUP","BCM-CHECKBOX-GROUP","BCM-RANGE","BCM-FORM","BCM-FORM-GROUP","BCM-LIST","BCM-COLORPICKER","BCM-DATE","BCM-DATE-PICKER","BCM-TIME-PICKER","BCM-DATETIME-PICKER","BCM-SELECT","BCM-LISTBOX","BCM-CHIP-GROUP","BCM-INPUT-DROPDOWN","BCM-NUMBER-INPUT"];const m=class{constructor(i){e(this,i),this.bcmForm=t(this,"bcm-form",7),this.isLoad=!1,this.formData={},this.formObj=new Map,this._id=r.UID(),this.validation=!1}componentDidLoad(){this.isLoad=!0,i(this)}componentIsValid(e){if(!e.hidden){this.checkIsGroup(e);const t=["bcm-checkbox","bcm-switch"].includes(p.lowercase(e.tagName))?0==e.value:p.isNullOrEmpty(e.value);e.required&&(t?(e.captionError=l.FormErrorMessages.required,e.captionType="error",this.formObj.set(e.id,{name:e.name,valid:!1,errorDetails:e.captionError})):(e.captionError=null,e.captionType="default",this.formObj.delete(e.id)))}}isGroup(e){return["bcm-checkbox-group"].includes(p.lowercase(e.tagName))}checkIsGroup(e){if(this.isGroup(e))for(let t of Array.from(e.querySelectorAll("bcm-checkbox")))t&&this.componentIsValid(t)}changeCheckboxGroup(e){const t=e.target,{changed:i}=e.detail,s=Array.from(t.querySelectorAll("bcm-checkbox"));for(let e of s)e.id==i.element.id&&(e.value=i.event.value,this.componentIsValid(e))}bcmComponentList(){return h((()=>Array.from(this.el.querySelectorAll("*")).filter((e=>c.includes(e.tagName)&&(!e["s-hn"]||"BCM-FORM-2"==e["s-hn"]))).filter(Boolean)),[])}formResponse(){const e={formData:this.formData,isValid:0==this.formObj.size,errorDetails:Object.assign({},this.formObj.size>0&&Array.from(this.formObj).map((([e,t])=>({[t.name]:t.errorDetails})))),message:0==this.formObj.size?"":"Please fill in all inputs"};return this.bcmForm.emit(e),e}async setMethodType(e){const{isLoad:t,validation:i}=this;if(t)for(const t of this.bcmComponentList())try{await t[e](),"setClear"==e&&i&&this.componentIsValid(t)}catch(i){console.error(t.nodeName,e,i)}return Promise.resolve()}async submit(){const{isLoad:e,validation:t}=this;if(e)for(const e of this.bcmComponentList()){const{name:i,value:s}=e;this.formData[i]=p.isNullOrEmpty(s)?null:s,t&&this.componentIsValid(e)}return Promise.resolve(this.formResponse())}async set(e){var t,i,s;if(this.isLoad&&e&&(null===(t=this.bcmComponentList())||void 0===t?void 0:t.length)>0)for(let t of Object.keys(e)){const a=null!==(s=null===(i=this.bcmComponentList())||void 0===i?void 0:i.find((e=>e.name==t)))&&void 0!==s?s:{};if(a)try{await a.set(e[t]),this.componentIsValid(a)}catch(e){console.warn("set: ",t,a.nodeName)}}}async get(){var e;let t={};if((null===(e=this.bcmComponentList())||void 0===e?void 0:e.length)>0)for(let e of this.bcmComponentList()){const i=await e.get();t=Object.assign(Object.assign({},t),{[e.name]:p.isNullOrEmpty(i)?null:i})}return Promise.resolve(t)}async resetCaption(){return Promise.resolve(await this.setMethodType("resetCaption"))}async setClear(){return this.formData={},this.formObj=new Map,Promise.resolve(await this.setMethodType("setClear"))}onChange(e){const{isLoad:t,validation:i}=this;if(t){const t=e.target,s=t&&t.tagName.toLowerCase().startsWith("bcm-");if(i&&s){if(this.isGroup(t))return this.changeCheckboxGroup(e);this.componentIsValid(t)}}}render(){return s(a,null,s("slot",null))}get el(){return o(this)}};(function(e,t,i,s){var a,o=arguments.length,n=o<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,s);else for(var r=e.length-1;r>=0;r--)(a=e[r])&&(n=(o<3?a(n):o>3?a(t,i,n):a(t,i))||n);o>3&&n&&Object.defineProperty(t,i,n)})([n()],m.prototype,"el",void 0),m.style='@import url("https://fonts.googleapis.com/css?family=Roboto:400,500");.size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}:host{display:block}';export{m as bcm_form_2}
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* Built with Stencil
|
|
3
3
|
* Copyright (c) Bromcom.
|
|
4
4
|
*/
|
|
5
|
-
var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function r(e,n,r){return e(r={path:n,exports:{},require:function(){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},r.exports),r.exports}function t(e){if(e.__esModule)return e;var n=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach((function(r){var t=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,t.get?t:{enumerable:!0,get:function(){return e[r]}})})),n}export{e as a,
|
|
5
|
+
var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function r(e,n,r){return e(r={path:n,exports:{},require:function(){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},r.exports),r.exports}function t(e){if(e.__esModule)return e;var n=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach((function(r){var t=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,t.get?t:{enumerable:!0,get:function(){return e[r]}})})),n}export{e as a,n as b,r as c,t as g}
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* Built with Stencil
|
|
3
3
|
* Copyright (c) Bromcom.
|
|
4
4
|
*/
|
|
5
|
-
import{
|
|
5
|
+
import{g as e}from"./p-e037ee2b.js";function n(){return n=>{const{componentDidLoad:s}=n;n.componentDidLoad=function(){const n=e(this),{openIntersecting:o}=n;return n.dispatchEvent(new CustomEvent("bcm-is-load",{bubbles:!0,composed:!0,detail:{isLoad:!0}})),o&&(i=n,"IntersectionObserver"in window?new IntersectionObserver((e=>{e[0].isIntersecting&&t(i)})).observe(i):setTimeout((()=>{t(i)}),300)),s&&s.call(this);var i}}}function t(e){e.dispatchEvent(new CustomEvent("bcm-is-intersecting",{bubbles:!0,composed:!0,detail:{isIntersecting:!0}}))}export{n as I}
|