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
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built with Stencil
|
|
3
|
-
* Copyright (c) Bromcom.
|
|
4
|
-
*/
|
|
5
|
-
import { r as registerInstance, h, H as Host, a as getElement } from './index-b3026131.js';
|
|
6
|
-
import { G as Generate } from './generate-27c06421.js';
|
|
7
|
-
import './package-34090aad.js';
|
|
8
|
-
import './colors-df32bb43.js';
|
|
9
|
-
import './_commonjsHelpers-be0d4ec8.js';
|
|
10
|
-
|
|
11
|
-
const accordionCss = "@import url(\"https://fonts.googleapis.com/css?family=Roboto:400,500\");.size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}:host{display:block}";
|
|
12
|
-
|
|
13
|
-
const BcmAccordion = class {
|
|
14
|
-
constructor(hostRef) {
|
|
15
|
-
registerInstance(this, hostRef);
|
|
16
|
-
this._id = Generate.UID();
|
|
17
|
-
this.multi = false;
|
|
18
|
-
}
|
|
19
|
-
componentDidRender() {
|
|
20
|
-
if (!this.multi)
|
|
21
|
-
this.checkExpandedCount();
|
|
22
|
-
}
|
|
23
|
-
checkExpandedCount() {
|
|
24
|
-
var _a, _b;
|
|
25
|
-
const accordion = this.el.querySelectorAll('.bcm-expansion-panel');
|
|
26
|
-
if (accordion) {
|
|
27
|
-
const checkExpandedCount = Array.from(accordion)
|
|
28
|
-
.map((accordion) => accordion.expanded)
|
|
29
|
-
.filter(Boolean).length;
|
|
30
|
-
if (checkExpandedCount > 1) {
|
|
31
|
-
const getLastExpandedId = (_b = (_a = Array.from(accordion).filter((accordion) => accordion.expanded)) === null || _a === void 0 ? void 0 : _a.pop()) === null || _b === void 0 ? void 0 : _b.id;
|
|
32
|
-
Array.from(accordion).forEach((accordion) => {
|
|
33
|
-
if (accordion.id !== getLastExpandedId) {
|
|
34
|
-
accordion.expanded = false;
|
|
35
|
-
}
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
open(event) {
|
|
41
|
-
if (this.multi)
|
|
42
|
-
return;
|
|
43
|
-
const id = event.detail;
|
|
44
|
-
const accordion = this.el.querySelectorAll('.bcm-expansion-panel');
|
|
45
|
-
if (accordion) {
|
|
46
|
-
accordion.forEach((accordion) => {
|
|
47
|
-
if (accordion.id !== id) {
|
|
48
|
-
accordion.expanded = false;
|
|
49
|
-
}
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
isLoad(event) {
|
|
54
|
-
var _a, _b, _c;
|
|
55
|
-
if (!this.multi) {
|
|
56
|
-
var parentId = ((_b = (_a = event === null || event === void 0 ? void 0 : event.target) === null || _a === void 0 ? void 0 : _a.parentElement) === null || _b === void 0 ? void 0 : _b.id) || null;
|
|
57
|
-
var nodeName = ((_c = event === null || event === void 0 ? void 0 : event.target) === null || _c === void 0 ? void 0 : _c.nodeName) || null;
|
|
58
|
-
if (nodeName == 'BCM-EXPANSION-PANEL' && this._id == parentId) {
|
|
59
|
-
this.checkExpandedCount();
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
render() {
|
|
64
|
-
return (h(Host, { id: this._id }, h("slot", null)));
|
|
65
|
-
}
|
|
66
|
-
get el() { return getElement(this); }
|
|
67
|
-
};
|
|
68
|
-
BcmAccordion.style = accordionCss;
|
|
69
|
-
|
|
70
|
-
export { BcmAccordion as bcm_accordion };
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built with Stencil
|
|
3
|
-
* Copyright (c) Bromcom.
|
|
4
|
-
*/
|
|
5
|
-
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-b3026131.js';
|
|
6
|
-
import { G as Generate, s as snq, S as StatusProps, T as TypeProps } from './generate-27c06421.js';
|
|
7
|
-
import { c as classnames } from './index-b84bc8c9.js';
|
|
8
|
-
import { c as createStore } from './index-91dbe540.js';
|
|
9
|
-
import { S as StringHelper } from './string-helper-85990695.js';
|
|
10
|
-
import './package-34090aad.js';
|
|
11
|
-
import './colors-df32bb43.js';
|
|
12
|
-
import './_commonjsHelpers-be0d4ec8.js';
|
|
13
|
-
import './bcm-a50d55ba.js';
|
|
14
|
-
|
|
15
|
-
const { state } = createStore({
|
|
16
|
-
value: new Map(),
|
|
17
|
-
setData: {},
|
|
18
|
-
removeData: {}
|
|
19
|
-
});
|
|
20
|
-
const setValue = (val) => {
|
|
21
|
-
const data = Object.assign(Object.assign(Object.assign({}, val), { size: val.bigIcon ? 'medium' : 14, iconType: val.bigIcon ? 'outlined' : 'fill' }), Generate.getIconAttrWithStatusType(val.status));
|
|
22
|
-
state.value.set(data.id, data);
|
|
23
|
-
};
|
|
24
|
-
const removeValue = (_id) => {
|
|
25
|
-
state.value.delete(_id);
|
|
26
|
-
};
|
|
27
|
-
const getValue = (id) => snq(() => state.value.get(id), {});
|
|
28
|
-
const alertStates = {
|
|
29
|
-
setValue,
|
|
30
|
-
removeValue,
|
|
31
|
-
getValue
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
const alertCss = "@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-alert{display:block;width:100%;max-width:400px;box-sizing:border-box;padding:8px 16px;box-shadow:0px 2px 4px rgba(0, 0, 0, 0.15);border-radius:2px;position:relative;grid-gap:8px}.bcm-alert.hidden{display:none}.bcm-alert.full-width{max-width:100%}.bcm-alert__status-info{border:1px solid var(--bcm-color-blue-3);background-color:var(--bcm-color-blue-1)}.bcm-alert__status-error{border:1px solid var(--bcm-color-red-3);background-color:var(--bcm-color-red-1)}.bcm-alert__status-warning{border:1px solid var(--bcm-color-warmyellow-3);background-color:var(--bcm-color-warmyellow-1)}.bcm-alert__status-success{border:1px solid var(--bcm-color-green-3);background-color:var(--bcm-color-green-1)}.bcm-alert__type-banner{border:none}.bcm-alert__header{display:flex;align-items:center;justify-content:space-between;padding:4px 0}.bcm-alert__header-message{display:flex;align-items:center;grid-gap:8px;color:var(--bcm-color-grey-8)}.bcm-alert__header-dismiss{display:flex;position:absolute;top:-1px;right:0;padding:16px;color:var(--bcm-color-grey-8)}.bcm-alert__header-dismiss:hover{cursor:pointer;color:var(--bcm-color-grey-9)}.bcm-alert__content{color:var(--bcm-color-grey-8)}.bcm-alert__content p{margin:0;padding:0}";
|
|
35
|
-
|
|
36
|
-
const BcmAlert = class {
|
|
37
|
-
constructor(hostRef) {
|
|
38
|
-
registerInstance(this, hostRef);
|
|
39
|
-
this.alertdismissible = createEvent(this, "bcm-alert-dismissible", 7);
|
|
40
|
-
this.hidden = false;
|
|
41
|
-
this._id = Generate.UID();
|
|
42
|
-
this._title = undefined;
|
|
43
|
-
this.description = undefined;
|
|
44
|
-
this.status = StatusProps.info;
|
|
45
|
-
this.type = TypeProps.basic;
|
|
46
|
-
this.dismissible = undefined;
|
|
47
|
-
this.icon = false;
|
|
48
|
-
this.bigIcon = false;
|
|
49
|
-
this.fullWidth = false;
|
|
50
|
-
}
|
|
51
|
-
componentWillRender() {
|
|
52
|
-
if (this.dismissible != undefined) {
|
|
53
|
-
if (this.dismissible == '') {
|
|
54
|
-
this.dismissible = true;
|
|
55
|
-
}
|
|
56
|
-
else if (typeof this.dismissible === 'string' && this.dismissible == 'false' || this.dismissible == 'true') {
|
|
57
|
-
this.dismissible = StringHelper.elementBooleanCheck(this.dismissible);
|
|
58
|
-
}
|
|
59
|
-
else {
|
|
60
|
-
return;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
this.setData();
|
|
64
|
-
}
|
|
65
|
-
dismiss(e) {
|
|
66
|
-
this.alertdismissible.emit(e);
|
|
67
|
-
this.el.remove();
|
|
68
|
-
}
|
|
69
|
-
getStateData() {
|
|
70
|
-
return alertStates.getValue(this._id);
|
|
71
|
-
}
|
|
72
|
-
setData() {
|
|
73
|
-
const { status, type, bigIcon } = this;
|
|
74
|
-
alertStates.setValue({
|
|
75
|
-
id: this._id,
|
|
76
|
-
status,
|
|
77
|
-
type,
|
|
78
|
-
bigIcon,
|
|
79
|
-
});
|
|
80
|
-
}
|
|
81
|
-
render() {
|
|
82
|
-
const { fullWidth, status, type, icon, bigIcon, _title, hidden, dismissible, description } = this;
|
|
83
|
-
const hostClasses = classnames('bcm-alert', 'bcm-alert__type-' + type, 'bcm-alert__status-' + status, {
|
|
84
|
-
'full-width': fullWidth,
|
|
85
|
-
hidden,
|
|
86
|
-
});
|
|
87
|
-
const headerMessage = classnames('bcm-alert__header-message', !!description ? 'size-3' : 'size-2');
|
|
88
|
-
const state = this.getStateData();
|
|
89
|
-
return (h(Host, { class: hostClasses }, h("span", { hidden: true }, h("slot", null)), h("header", { class: "bcm-alert__header" }, h("span", { class: headerMessage }, (bigIcon || icon) && h("bcm-icon", { icon: state.icon }), _title), dismissible && (h("span", { class: "bcm-alert__header-dismiss", onClick: e => this.dismiss(e) }, typeof dismissible === 'string' ? dismissible : h("bcm-icon", { icon: "fal fa-times" })))), h("main", { class: "bcm-alert__content size-2" }, description && h("p", null, description), h("slot", null))));
|
|
90
|
-
}
|
|
91
|
-
get el() { return getElement(this); }
|
|
92
|
-
};
|
|
93
|
-
BcmAlert.style = alertCss;
|
|
94
|
-
|
|
95
|
-
export { BcmAlert as bcm_alert };
|
|
@@ -1,326 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built with Stencil
|
|
3
|
-
* Copyright (c) Bromcom.
|
|
4
|
-
*/
|
|
5
|
-
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-b3026131.js';
|
|
6
|
-
import './color-helper-e74656af.js';
|
|
7
|
-
import './datetime-helper-df25808a.js';
|
|
8
|
-
import { G as Generate } from './generate-27c06421.js';
|
|
9
|
-
import './number-helper-94a51ec2.js';
|
|
10
|
-
import './string-helper-85990695.js';
|
|
11
|
-
import './validators-7e605ca5.js';
|
|
12
|
-
import './element-dragger-7ea06c76.js';
|
|
13
|
-
import { a as Bcm } from './bcm-a50d55ba.js';
|
|
14
|
-
import { c as classnames } from './index-b84bc8c9.js';
|
|
15
|
-
import { c as ce } from './index-3bc8c6e3.js';
|
|
16
|
-
import './colors-1d7854ea.js';
|
|
17
|
-
import './utils-b3338faf.js';
|
|
18
|
-
import './colors-df32bb43.js';
|
|
19
|
-
import './_commonjsHelpers-be0d4ec8.js';
|
|
20
|
-
import './package-34090aad.js';
|
|
21
|
-
|
|
22
|
-
// --bcm-attendance-actions-button-bg: #F1F5F9; /* slate-100 */
|
|
23
|
-
// --bcm-attendance-actions-button-text: #334155; /* slate-700 */
|
|
24
|
-
// --bcm-attendance-actions-button-border: #CBD5E1; /* slate-300 */
|
|
25
|
-
// --bcm-attendance-actions-button-hover-bg: #E2E8F0; /* slate-200 */
|
|
26
|
-
// --bcm-attendance-actions-button-active-bg: #CBD5E1; /* slate-300 */
|
|
27
|
-
// --bcm-attendance-actions-button-disabled-bg: #CBD5E1; /* slate-300 */
|
|
28
|
-
// --bcm-attendance-actions-button-disabled-text: #64748B; /* slate-500 */
|
|
29
|
-
const attendanceActionStyle = ce({
|
|
30
|
-
slots: {
|
|
31
|
-
host: ["tw-flex tw-flex-row tw-items-center tw-justify-center tw-w-full tw-max-w-48 tw-gap-2", "bcm-ui-element bcm-attendance-actions"],
|
|
32
|
-
base: "",
|
|
33
|
-
buttonContainer: "tw-flex tw-flex-row tw-items-center tw-justify-center tw-w-full tw-max-w-[168px]",
|
|
34
|
-
button: [
|
|
35
|
-
"",
|
|
36
|
-
"tw-button-reset",
|
|
37
|
-
"tw-flex-1 last:tw-flex-none",
|
|
38
|
-
"tw-bg-[--bcm-attendance-actions-button-bg]",
|
|
39
|
-
"tw-text-[--bcm-attendance-actions-button-text]",
|
|
40
|
-
"tw-border tw-border-solid tw-border-[--bcm-attendance-actions-button-border]",
|
|
41
|
-
"hover:tw-bg-[--bcm-attendance-actions-button-hover-bg]",
|
|
42
|
-
"active:tw-bg-[--bcm-attendance-actions-button-active-bg]",
|
|
43
|
-
"focus-visible:tw-ring-2 focus-visible:tw-ring-offset-2 focus-visible:tw-z-10",
|
|
44
|
-
"tw-flex tw-flex-row tw-items-center tw-justify-center",
|
|
45
|
-
"first:tw-rounded-l last:tw-rounded-r",
|
|
46
|
-
"tw-font-medium",
|
|
47
|
-
"-tw-ml-[1px] first:tw-ml-0",
|
|
48
|
-
],
|
|
49
|
-
dropdownButton: "",
|
|
50
|
-
mainButton: "",
|
|
51
|
-
commentIcon: "",
|
|
52
|
-
},
|
|
53
|
-
variants: {
|
|
54
|
-
selected: {
|
|
55
|
-
true: {
|
|
56
|
-
button: [
|
|
57
|
-
"tw-text-white tw-border-transparent last:tw-ml-[1px]",
|
|
58
|
-
"first:tw-justify-start",
|
|
59
|
-
],
|
|
60
|
-
mainButton: [
|
|
61
|
-
"tw-min-w-[calc(theme(spacing.12)-1px)]"
|
|
62
|
-
],
|
|
63
|
-
},
|
|
64
|
-
false: {
|
|
65
|
-
button: [
|
|
66
|
-
""
|
|
67
|
-
],
|
|
68
|
-
},
|
|
69
|
-
},
|
|
70
|
-
size: {
|
|
71
|
-
small: {
|
|
72
|
-
button: [
|
|
73
|
-
"tw-text-2",
|
|
74
|
-
"tw-min-h-6",
|
|
75
|
-
"tw-gap-2",
|
|
76
|
-
],
|
|
77
|
-
mainButton: [
|
|
78
|
-
"tw-px-3",
|
|
79
|
-
],
|
|
80
|
-
dropdownButton: [
|
|
81
|
-
"tw-px-2.5"
|
|
82
|
-
],
|
|
83
|
-
},
|
|
84
|
-
medium: {
|
|
85
|
-
button: [
|
|
86
|
-
"tw-text-3",
|
|
87
|
-
"tw-min-h-8",
|
|
88
|
-
"tw-gap-2",
|
|
89
|
-
],
|
|
90
|
-
mainButton: [
|
|
91
|
-
"tw-px-3",
|
|
92
|
-
],
|
|
93
|
-
dropdownButton: [
|
|
94
|
-
"tw-px-2.5"
|
|
95
|
-
],
|
|
96
|
-
},
|
|
97
|
-
large: {
|
|
98
|
-
button: [
|
|
99
|
-
"tw-text-4",
|
|
100
|
-
"tw-min-h-10",
|
|
101
|
-
"tw-gap-2.5",
|
|
102
|
-
],
|
|
103
|
-
mainButton: [
|
|
104
|
-
"tw-px-3",
|
|
105
|
-
],
|
|
106
|
-
dropdownButton: [
|
|
107
|
-
"tw-px-3"
|
|
108
|
-
],
|
|
109
|
-
},
|
|
110
|
-
},
|
|
111
|
-
disabled: {
|
|
112
|
-
true: {},
|
|
113
|
-
false: {}
|
|
114
|
-
}
|
|
115
|
-
},
|
|
116
|
-
compoundVariants: [
|
|
117
|
-
{
|
|
118
|
-
disabled: true,
|
|
119
|
-
class: {
|
|
120
|
-
buttonContainer: [
|
|
121
|
-
"tw-cursor-not-allowed tw-pointer-events-none",
|
|
122
|
-
],
|
|
123
|
-
button: [
|
|
124
|
-
"tw-cursor-not-allowed",
|
|
125
|
-
"tw-bg-[--bcm-attendance-actions-button-disabled-bg]",
|
|
126
|
-
"tw-text-[--bcm-attendance-actions-button-disabled-text]",
|
|
127
|
-
"tw-border-transparent",
|
|
128
|
-
"hover:tw-bg-[--bcm-attendance-actions-button-disabled-bg]",
|
|
129
|
-
],
|
|
130
|
-
mainButton: [
|
|
131
|
-
"tw-bg-[--bcm-attendance-actions-button-disabled-bg]",
|
|
132
|
-
"tw-text-[--bcm-attendance-actions-button-disabled-text]",
|
|
133
|
-
"tw-border-transparent",
|
|
134
|
-
"hover:tw-bg-[--bcm-attendance-actions-button-disabled-bg]",
|
|
135
|
-
"tw-cursor-not-allowed",
|
|
136
|
-
],
|
|
137
|
-
host: [
|
|
138
|
-
"tw-cursor-not-allowed",
|
|
139
|
-
],
|
|
140
|
-
commentIcon: [
|
|
141
|
-
"tw-cursor-not-allowed tw-pointer-events-none",
|
|
142
|
-
],
|
|
143
|
-
}
|
|
144
|
-
},
|
|
145
|
-
{
|
|
146
|
-
disabled: false,
|
|
147
|
-
class: {
|
|
148
|
-
button: [
|
|
149
|
-
"tw-cursor-pointer",
|
|
150
|
-
],
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
],
|
|
154
|
-
defaultVariants: {
|
|
155
|
-
selected: false,
|
|
156
|
-
size: "medium",
|
|
157
|
-
disabled: false,
|
|
158
|
-
},
|
|
159
|
-
});
|
|
160
|
-
|
|
161
|
-
const attendanceActionsCss = "";
|
|
162
|
-
|
|
163
|
-
const BcmAttendanceActions = class {
|
|
164
|
-
constructor(hostRef) {
|
|
165
|
-
registerInstance(this, hostRef);
|
|
166
|
-
this.change = createEvent(this, "bcm-attendance-change", 3);
|
|
167
|
-
this._id = Generate.UID();
|
|
168
|
-
this.size = Bcm.Size.medium;
|
|
169
|
-
this.disabled = false;
|
|
170
|
-
this.data = [
|
|
171
|
-
{ key: "P", value: "Present", color: "emerald", icon: "fa-solid fa-check", priority: 0 },
|
|
172
|
-
{ key: "A", value: "Absent", color: "red", icon: "fa-solid fa-times", priority: 1 },
|
|
173
|
-
{ key: "L", value: "Late", color: "amber", icon: "fa-solid fa-clock", priority: 2 },
|
|
174
|
-
{ key: "C", value: "Other Authorised Circumstance", color: "blue", icon: "fa-solid fa-question" },
|
|
175
|
-
{ key: "E", value: "Exlude", color: "blue", icon: "fa-solid fa-minus" },
|
|
176
|
-
{ key: "G", value: "Family Holiday", color: "blue", icon: "fa-solid fa-minus" },
|
|
177
|
-
{ key: "H", value: "Family Holiday (Agreed)", color: "blue", icon: "fa-solid fa-minus" },
|
|
178
|
-
{ key: "I", value: "Illness", color: "blue", icon: "fa-solid fa-minus" },
|
|
179
|
-
{ key: "J", value: "Intervier", color: "blue", icon: "fa-solid fa-minus" },
|
|
180
|
-
{ key: "M", value: "Medical / Dental", color: "blue", icon: "fa-solid fa-minus" },
|
|
181
|
-
{ key: "N", value: "No Reason yet PRovided", color: "blue", icon: "fa-solid fa-minus" },
|
|
182
|
-
{ key: "O", value: "Unauthrised Absence", color: "blue", icon: "fa-solid fa-minus" },
|
|
183
|
-
{ key: "U", value: "Late after Reg. Closed", color: "blue", icon: "fa-solid fa-minus" },
|
|
184
|
-
{ key: "X", value: "Non-comp School Age Absence", color: "blue", icon: "fa-solid fa-minus" },
|
|
185
|
-
];
|
|
186
|
-
this.lateKeys = "L";
|
|
187
|
-
this.hideComment = false;
|
|
188
|
-
}
|
|
189
|
-
get selectedItem() {
|
|
190
|
-
return this.data.find(item => item.selected);
|
|
191
|
-
}
|
|
192
|
-
get priorityButtons() {
|
|
193
|
-
return this.data.filter(item => item.priority !== undefined).sort((a, b) => a.priority - b.priority);
|
|
194
|
-
}
|
|
195
|
-
get renderButtons() {
|
|
196
|
-
const { selectedItem, priorityButtons } = this;
|
|
197
|
-
return [...(selectedItem ? [selectedItem] : priorityButtons.length ? priorityButtons : this.data.slice(0, 3))];
|
|
198
|
-
}
|
|
199
|
-
get lateKeysMap() {
|
|
200
|
-
return this.lateKeys.toLocaleLowerCase().split(",");
|
|
201
|
-
}
|
|
202
|
-
get isLate() {
|
|
203
|
-
var _a, _b;
|
|
204
|
-
return this.lateKeysMap.includes((_b = (_a = this.selectedItem) === null || _a === void 0 ? void 0 : _a.key) === null || _b === void 0 ? void 0 : _b.toLocaleLowerCase());
|
|
205
|
-
}
|
|
206
|
-
get dropdownMenuElement() {
|
|
207
|
-
return document.getElementById("attendance-dropdown-" + this._id);
|
|
208
|
-
}
|
|
209
|
-
get commentAreaElement() {
|
|
210
|
-
return document.getElementById("comment-" + this._id);
|
|
211
|
-
}
|
|
212
|
-
handleSelectItem(item, triggerChange = true, showComment = true) {
|
|
213
|
-
var _a, _b;
|
|
214
|
-
this.data = [...this.data.map(data => { var _a, _b; return (Object.assign(Object.assign({}, data), { selected: ((_a = item.key) === null || _a === void 0 ? void 0 : _a.toLocaleLowerCase()) === ((_b = data.key) === null || _b === void 0 ? void 0 : _b.toLocaleLowerCase()) })); })];
|
|
215
|
-
(_a = this.dropdownMenuElement) === null || _a === void 0 ? void 0 : _a.hide();
|
|
216
|
-
(_b = this.commentAreaElement) === null || _b === void 0 ? void 0 : _b.hide();
|
|
217
|
-
if (!this.isLate)
|
|
218
|
-
return triggerChange && this.changed();
|
|
219
|
-
!this.hideComment && showComment && this.commentArea();
|
|
220
|
-
}
|
|
221
|
-
changed() {
|
|
222
|
-
this.change.emit(this.selectedItem);
|
|
223
|
-
}
|
|
224
|
-
hasDataForKey(key) {
|
|
225
|
-
return !!this.data.find(item => item.key.toLocaleLowerCase() === key.toLocaleLowerCase());
|
|
226
|
-
}
|
|
227
|
-
handleKeyPress({ key }) {
|
|
228
|
-
if (!this.hasDataForKey(key))
|
|
229
|
-
return;
|
|
230
|
-
const item = this.data.find(item => { var _a; return ((_a = item.key) === null || _a === void 0 ? void 0 : _a.toLocaleLowerCase()) === (key === null || key === void 0 ? void 0 : key.toLocaleLowerCase()); });
|
|
231
|
-
this.handleSelectItem(item);
|
|
232
|
-
}
|
|
233
|
-
handleSave(lateMinutes, comment) {
|
|
234
|
-
this.data = [...this.data].map(item => {
|
|
235
|
-
var _a, _b, _c;
|
|
236
|
-
if (((_a = item.key) === null || _a === void 0 ? void 0 : _a.toLocaleLowerCase()) === ((_c = (_b = this.selectedItem) === null || _b === void 0 ? void 0 : _b.key) === null || _c === void 0 ? void 0 : _c.toLocaleLowerCase())) {
|
|
237
|
-
return Object.assign(Object.assign({}, item), { lateMin: lateMinutes, comment });
|
|
238
|
-
}
|
|
239
|
-
return item;
|
|
240
|
-
});
|
|
241
|
-
this.changed();
|
|
242
|
-
}
|
|
243
|
-
dropdownMenu() {
|
|
244
|
-
var _a;
|
|
245
|
-
const dropdownMenu = Generate.createComponent("bcm-attendance-actions-dropdown", {
|
|
246
|
-
id: "attendance-dropdown-" + this._id,
|
|
247
|
-
size: this.size,
|
|
248
|
-
data: this.data,
|
|
249
|
-
selectedKey: (_a = this.selectedItem) === null || _a === void 0 ? void 0 : _a.key,
|
|
250
|
-
targetId: "attendance-dropdown-button-" + this._id,
|
|
251
|
-
});
|
|
252
|
-
dropdownMenu.addEventListener("bcm-attendance-actions-dropdown-change", ({ detail }) => {
|
|
253
|
-
this.handleSelectItem(detail);
|
|
254
|
-
});
|
|
255
|
-
dropdownMenu.show();
|
|
256
|
-
}
|
|
257
|
-
commentArea() {
|
|
258
|
-
var _a, _b;
|
|
259
|
-
const commentArea = Generate.createComponent("bcm-attendance-actions-comment", {
|
|
260
|
-
id: "comment-" + this._id,
|
|
261
|
-
size: this.size,
|
|
262
|
-
isLate: this.isLate,
|
|
263
|
-
targetId: "comment-area-" + this._id,
|
|
264
|
-
selectedItem: this.selectedItem,
|
|
265
|
-
lateMinutes: (_a = this.selectedItem) === null || _a === void 0 ? void 0 : _a.lateMin,
|
|
266
|
-
comment: (_b = this.selectedItem) === null || _b === void 0 ? void 0 : _b.comment,
|
|
267
|
-
});
|
|
268
|
-
commentArea.addEventListener("bcm-attendance-actions-comment-change", ({ detail }) => {
|
|
269
|
-
this.handleSave(detail.lateMinutes, detail.comment);
|
|
270
|
-
});
|
|
271
|
-
commentArea.show();
|
|
272
|
-
}
|
|
273
|
-
async set(key, triggerChange = true) {
|
|
274
|
-
if (!this.hasDataForKey(key))
|
|
275
|
-
return;
|
|
276
|
-
const item = this.data.find(item => { var _a; return ((_a = item.key) === null || _a === void 0 ? void 0 : _a.toLocaleLowerCase()) === (key === null || key === void 0 ? void 0 : key.toLocaleLowerCase()); });
|
|
277
|
-
this.handleSelectItem(item, triggerChange, false);
|
|
278
|
-
}
|
|
279
|
-
async get() {
|
|
280
|
-
return this.selectedItem;
|
|
281
|
-
}
|
|
282
|
-
render() {
|
|
283
|
-
var _a, _b, _c;
|
|
284
|
-
const { selectedItem, renderButtons, disabled, hideComment, size } = this;
|
|
285
|
-
const { host, buttonContainer, button, dropdownButton, commentIcon, mainButton } = attendanceActionStyle({
|
|
286
|
-
selected: !!selectedItem,
|
|
287
|
-
size,
|
|
288
|
-
disabled,
|
|
289
|
-
});
|
|
290
|
-
const buttonStyle = !!selectedItem
|
|
291
|
-
? Generate.getTwColor({
|
|
292
|
-
color: (_a = selectedItem.color) !== null && _a !== void 0 ? _a : "blue",
|
|
293
|
-
tones: {
|
|
294
|
-
600: ["bg"],
|
|
295
|
-
700: ["hover-bg"],
|
|
296
|
-
800: ["active-bg"],
|
|
297
|
-
},
|
|
298
|
-
variable: "--bcm-attendance-actions-button",
|
|
299
|
-
})
|
|
300
|
-
: {};
|
|
301
|
-
const buttonAttributes = {
|
|
302
|
-
class: classnames(button(), mainButton()),
|
|
303
|
-
style: Object.assign({}, buttonStyle),
|
|
304
|
-
disabled,
|
|
305
|
-
type: "button",
|
|
306
|
-
};
|
|
307
|
-
const iconButtonAttributes = Object.assign(Object.assign({}, buttonAttributes), { class: classnames(button(), dropdownButton()) });
|
|
308
|
-
const isShowCommentIcon = !hideComment && !!selectedItem;
|
|
309
|
-
const commentTooltip = (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.comment) || (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.lateMin) ? `${(selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.comment) || ""}${(selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.lateMin) ? ` (${selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.lateMin} min) ` : ""}` : "";
|
|
310
|
-
return (h(Host, { class: host(), onKeyPress: this.handleKeyPress.bind(this) }, h("div", { class: buttonContainer() }, renderButtons === null || renderButtons === void 0 ? void 0 :
|
|
311
|
-
renderButtons.map(item => {
|
|
312
|
-
return (h("button", Object.assign({}, buttonAttributes, { onClick: () => this.handleSelectItem(item), title: item.value }), h("i", { class: classnames(item.icon || "fa-solid fa-minus", "!tw-leading-[inherit]") }), item.selected && h("span", { class: "tw-truncate" }, item.value)));
|
|
313
|
-
}), h("button", Object.assign({ id: "attendance-dropdown-button-" + this._id }, iconButtonAttributes, { onClick: () => this.dropdownMenu(), title: "More" }), h("i", { class: classnames("fa-solid fa-angle-down !tw-leading-[inherit]") }))), h("div", { id: "comment-area-" + this._id, class: classnames(commentIcon(), {
|
|
314
|
-
"tw-cursor-default": !isShowCommentIcon,
|
|
315
|
-
"tw-cursor-pointer": isShowCommentIcon,
|
|
316
|
-
}), onClick: () => isShowCommentIcon && this.commentArea() }, h("i", { title: isShowCommentIcon ? commentTooltip : "", class: classnames("fa-solid fa-comment", {
|
|
317
|
-
"tw-text-gray-400": !(((_b = this.selectedItem) === null || _b === void 0 ? void 0 : _b.comment) || ((_c = this.selectedItem) === null || _c === void 0 ? void 0 : _c.lateMin)),
|
|
318
|
-
"tw-visible": isShowCommentIcon,
|
|
319
|
-
"tw-invisible": !isShowCommentIcon,
|
|
320
|
-
}) }))));
|
|
321
|
-
}
|
|
322
|
-
get el() { return getElement(this); }
|
|
323
|
-
};
|
|
324
|
-
BcmAttendanceActions.style = attendanceActionsCss;
|
|
325
|
-
|
|
326
|
-
export { BcmAttendanceActions as bcm_attendance_actions };
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built with Stencil
|
|
3
|
-
* Copyright (c) Bromcom.
|
|
4
|
-
*/
|
|
5
|
-
import { r as registerInstance, h, H as Host, a as getElement } from './index-b3026131.js';
|
|
6
|
-
import { G as Generate } from './generate-27c06421.js';
|
|
7
|
-
import './package-34090aad.js';
|
|
8
|
-
import './colors-df32bb43.js';
|
|
9
|
-
import './_commonjsHelpers-be0d4ec8.js';
|
|
10
|
-
|
|
11
|
-
const attendanceCss = "@import url(\"https://fonts.googleapis.com/css?family=Roboto:400,500\");@import url(\"https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap\"); .size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}*{box-sizing:border-box}.bcm-attendance{width:fit-content;display:inline-flex;align-items:center;flex-direction:row;gap:4px}.bcm-attendance__item{display:flex;flex-direction:row;align-items:center;gap:1px}.bcm-attendance__item-am,.bcm-attendance__item-pm{display:block;width:calc( calc( 12px + 1px ) / 2 );height:calc( 12px + 1px );background-color:var(--bcm-new-ds-color-blue-500)}.bcm-attendance__item-am:hover,.bcm-attendance__item-pm:hover{background-color:var(--bcm-new-ds-color-blue-600)}.bcm-attendance__item-am{border-top-left-radius:100px;border-bottom-left-radius:100px}.bcm-attendance__item-pm{border-top-right-radius:100px;border-bottom-right-radius:100px}.bcm-attendance__item-status-present{background-color:var(--bcm-new-ds-color-emerald-500)}.bcm-attendance__item-status-present:hover{background-color:var(--bcm-new-ds-color-emerald-600)}.bcm-attendance__item-status-late{background-color:var(--bcm-new-ds-color-amber-500)}.bcm-attendance__item-status-late:hover{background-color:var(--bcm-new-ds-color-amber-600)}.bcm-attendance__item-status-absent{background-color:var(--bcm-new-ds-color-red-500)}.bcm-attendance__item-status-absent:hover{background-color:var(--bcm-new-ds-color-red-600)}.bcm-attendance__item-status-default{background-color:var(--bcm-new-ds-color-slate-300)}.bcm-attendance__item-status-default:hover{background-color:var(--bcm-new-ds-color-slate-400)}";
|
|
12
|
-
|
|
13
|
-
const BcmAttendance = class {
|
|
14
|
-
constructor(hostRef) {
|
|
15
|
-
registerInstance(this, hostRef);
|
|
16
|
-
this._id = Generate.UID();
|
|
17
|
-
this.data = [];
|
|
18
|
-
}
|
|
19
|
-
render() {
|
|
20
|
-
const { data } = this;
|
|
21
|
-
const classPrefix = 'bcm-attendance';
|
|
22
|
-
return (h(Host, { class: classPrefix }, h("span", { hidden: true }, h("slot", null)), data.map(item => {
|
|
23
|
-
var _a, _b;
|
|
24
|
-
return h("div", { class: `${classPrefix}__item` }, h("bcm-tooltip", { trigger: "hover", message: `${item.weekday || null} / AM`, "aria-label": `${item.weekday || null} / AM` }, h("span", { class: `${classPrefix}__item-am ${classPrefix}__item-status-${(_a = item.am) !== null && _a !== void 0 ? _a : 'default'}` })), h("bcm-tooltip", { trigger: "hover", message: `${item.weekday || null} / PM`, "aria-label": `${item.weekday || null} / PM` }, h("span", { class: `${classPrefix}__item-pm ${classPrefix}__item-status-${(_b = item.pm) !== null && _b !== void 0 ? _b : 'default'}` })));
|
|
25
|
-
})));
|
|
26
|
-
}
|
|
27
|
-
get el() { return getElement(this); }
|
|
28
|
-
};
|
|
29
|
-
BcmAttendance.style = attendanceCss;
|
|
30
|
-
|
|
31
|
-
export { BcmAttendance as bcm_attendance };
|