bromcom-ui 2.12.3-rc.2-test.1 → 2.12.3-rc.3-test.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bromcom-ui/bromcom-ui.css +1 -1
- package/dist/bromcom-ui/bromcom-ui.esm.js +1 -1
- package/dist/bromcom-ui/{p-c812208d.entry.js → p-01e63843.entry.js} +1 -1
- package/dist/bromcom-ui/p-04594f76.entry.js +5 -0
- package/dist/bromcom-ui/{p-3ba6c610.js → p-052005c9.js} +1 -1
- package/dist/bromcom-ui/p-0e110a9f.entry.js +5 -0
- package/dist/bromcom-ui/p-0e5f1168.entry.js +5 -0
- package/dist/bromcom-ui/{p-43c4d268.entry.js → p-10f511ff.entry.js} +1 -1
- package/dist/bromcom-ui/p-1345d51b.entry.js +5 -0
- package/dist/bromcom-ui/p-15402dac.entry.js +5 -0
- package/dist/bromcom-ui/{p-ece578ef.entry.js → p-1b558b0f.entry.js} +1 -1
- package/dist/bromcom-ui/p-1baed29d.entry.js +5 -0
- package/dist/bromcom-ui/{p-9df8995e.entry.js → p-1e61a44c.entry.js} +1 -1
- package/dist/bromcom-ui/p-1f93fd33.entry.js +5 -0
- package/dist/bromcom-ui/p-23759244.entry.js +5 -0
- package/dist/bromcom-ui/{p-8c5ed9b1.entry.js → p-25bbe3e6.entry.js} +1 -1
- package/dist/bromcom-ui/p-270e1b24.entry.js +5 -0
- package/dist/bromcom-ui/p-27596881.entry.js +5 -0
- package/dist/bromcom-ui/p-29791e4a.entry.js +5 -0
- package/dist/bromcom-ui/{p-f0e30624.entry.js → p-2b42d77e.entry.js} +1 -1
- package/dist/bromcom-ui/{p-37cd0612.js → p-2bd0545e.js} +1 -1
- package/dist/bromcom-ui/{p-8e683b32.js → p-2cd6cdee.js} +1 -1
- package/dist/bromcom-ui/p-3179ce74.entry.js +7 -0
- package/dist/bromcom-ui/{p-d551a51d.entry.js → p-32c55505.entry.js} +1 -1
- package/dist/bromcom-ui/p-33166492.entry.js +5 -0
- package/dist/bromcom-ui/p-376a20ed.js +5 -0
- package/dist/bromcom-ui/p-3da7b6c0.entry.js +5 -0
- package/dist/bromcom-ui/p-41276d76.entry.js +5 -0
- package/dist/bromcom-ui/p-412abc6d.entry.js +5 -0
- package/dist/bromcom-ui/p-4393b33e.entry.js +5 -0
- package/dist/bromcom-ui/p-46db5206.js +5 -0
- package/dist/bromcom-ui/p-4834bc26.js +5 -0
- package/dist/bromcom-ui/p-4856568f.entry.js +5 -0
- package/dist/bromcom-ui/p-507db92e.entry.js +5 -0
- package/dist/bromcom-ui/p-534f958a.entry.js +5 -0
- package/dist/bromcom-ui/{p-1b645ef9.entry.js → p-540fbc32.entry.js} +1 -1
- package/dist/bromcom-ui/{p-ba9eff2a.entry.js → p-59f7fa84.entry.js} +1 -1
- package/dist/bromcom-ui/{p-594a57c3.entry.js → p-5d670fd7.entry.js} +1 -1
- package/dist/bromcom-ui/p-65da044b.js +5 -0
- package/dist/bromcom-ui/{p-85eedabc.js → p-6657830f.js} +1 -1
- package/dist/bromcom-ui/p-6687afd7.entry.js +5 -0
- package/dist/bromcom-ui/{p-499d8454.js → p-6bea284a.js} +1 -1
- package/dist/bromcom-ui/p-6ceb315f.entry.js +5 -0
- package/dist/bromcom-ui/{p-1c801d0c.entry.js → p-77ef609e.entry.js} +1 -1
- package/dist/bromcom-ui/p-7c45705d.entry.js +5 -0
- package/dist/bromcom-ui/p-7dbfff1b.entry.js +5 -0
- package/dist/bromcom-ui/{p-9ba753bf.js → p-7e0e02b3.js} +1 -1
- package/dist/bromcom-ui/{p-6f861fed.js → p-7e44e6b5.js} +1 -1
- package/dist/bromcom-ui/{p-2747bf2a.entry.js → p-80edaf47.entry.js} +1 -1
- package/dist/bromcom-ui/p-822dda00.js +5 -0
- package/dist/bromcom-ui/{p-eedcbbc4.entry.js → p-87192588.entry.js} +1 -1
- package/dist/bromcom-ui/{p-510d5aa8.entry.js → p-881853bd.entry.js} +1 -1
- package/dist/bromcom-ui/p-8b6d3a37.js +5 -0
- package/dist/bromcom-ui/p-8b8dd8fe.entry.js +5 -0
- package/dist/bromcom-ui/{p-6f2e4c9b.js → p-8c018ae0.js} +1 -1
- package/dist/bromcom-ui/p-8cd80ac4.entry.js +5 -0
- package/dist/bromcom-ui/p-8f32198d.js +14 -0
- package/dist/bromcom-ui/p-904b0c28.entry.js +5 -0
- package/dist/bromcom-ui/{p-1fcdb8ee.entry.js → p-9253d439.entry.js} +1 -1
- package/dist/bromcom-ui/{p-a50a79c9.entry.js → p-926b314d.entry.js} +1 -1
- package/dist/bromcom-ui/{p-5dbe699b.entry.js → p-95a797b3.entry.js} +1 -1
- package/dist/bromcom-ui/{p-9b0ba7ad.entry.js → p-974a427c.entry.js} +1 -1
- package/dist/bromcom-ui/{p-bdc78a44.entry.js → p-9b59c689.entry.js} +1 -1
- package/dist/bromcom-ui/p-9ebe6ef9.entry.js +5 -0
- package/dist/bromcom-ui/{p-a400b4c4.entry.js → p-9f5ee998.entry.js} +1 -1
- package/dist/bromcom-ui/{p-87558819.entry.js → p-a00b053e.entry.js} +1 -1
- package/dist/bromcom-ui/{p-d65bc842.js → p-a0d6d680.js} +1 -1
- package/dist/bromcom-ui/{p-5dea2654.entry.js → p-a0f44b56.entry.js} +1 -1
- package/dist/bromcom-ui/p-a2065e9e.entry.js +5 -0
- package/dist/bromcom-ui/p-a2e5bb35.entry.js +5 -0
- package/dist/bromcom-ui/{p-e94abd6c.entry.js → p-a31644e3.entry.js} +1 -1
- package/dist/bromcom-ui/p-a352f45e.entry.js +5 -0
- package/dist/bromcom-ui/{p-1c9314bd.entry.js → p-a486613b.entry.js} +1 -1
- package/dist/bromcom-ui/{p-626b805d.entry.js → p-a6aa173f.entry.js} +1 -1
- package/dist/bromcom-ui/{p-a2df6c19.js → p-aeb4be41.js} +1 -1
- package/dist/bromcom-ui/p-b1084320.entry.js +5 -0
- package/dist/bromcom-ui/p-b301fa40.entry.js +5 -0
- package/dist/bromcom-ui/p-b43e975b.entry.js +5 -0
- package/dist/bromcom-ui/p-b9a88f16.entry.js +5 -0
- package/dist/bromcom-ui/p-bbcb683f.entry.js +5 -0
- package/dist/bromcom-ui/p-bd50c28f.entry.js +5 -0
- package/dist/bromcom-ui/{p-2d0ff35e.js → p-beaec5b8.js} +1 -1
- package/dist/bromcom-ui/p-c1a992e7.entry.js +5 -0
- package/dist/bromcom-ui/p-c39e73dc.entry.js +5 -0
- package/dist/bromcom-ui/{p-69260d36.entry.js → p-c49b6287.entry.js} +1 -1
- package/dist/bromcom-ui/p-c503526a.entry.js +5 -0
- package/dist/bromcom-ui/p-c63f5261.entry.js +5 -0
- package/dist/bromcom-ui/{p-4d2bf0e7.js → p-c77541f4.js} +2 -2
- package/dist/bromcom-ui/{p-cbbc036b.js → p-cbcf6d9c.js} +1 -1
- package/dist/bromcom-ui/{p-aabb32f3.entry.js → p-cf11cdde.entry.js} +1 -1
- package/dist/bromcom-ui/{p-cd1b099c.entry.js → p-d19d45ed.entry.js} +1 -1
- package/dist/bromcom-ui/p-d2bd0293.entry.js +5 -0
- package/dist/bromcom-ui/{p-2aaeb247.entry.js → p-d59d9687.entry.js} +1 -1
- package/dist/bromcom-ui/{p-e2cdea59.entry.js → p-dd24646a.entry.js} +1 -1
- package/dist/bromcom-ui/p-e0ab7b38.js +11 -0
- package/dist/bromcom-ui/p-e1b6f98e.entry.js +5 -0
- package/dist/bromcom-ui/p-e36c7523.entry.js +5 -0
- package/dist/bromcom-ui/p-e5532875.entry.js +5 -0
- package/dist/bromcom-ui/{p-7d18ce0e.entry.js → p-e8eaa3bb.entry.js} +1 -1
- package/dist/bromcom-ui/p-e94d2f48.js +5 -0
- package/dist/bromcom-ui/p-ead59725.entry.js +5 -0
- package/dist/bromcom-ui/{p-43c578cf.js → p-eca0acda.js} +1 -1
- package/dist/bromcom-ui/p-ede7ca76.entry.js +5 -0
- package/dist/bromcom-ui/p-eef8f7c7.entry.js +5 -0
- package/dist/bromcom-ui/p-effc088c.entry.js +5 -0
- package/dist/bromcom-ui/{p-4233e5f7.entry.js → p-fafa70ac.entry.js} +1 -1
- package/dist/bromcom-ui/p-fc787048.entry.js +5 -0
- package/dist/bromcom-ui/{p-daeda8d3.entry.js → p-fec89309.entry.js} +1 -1
- package/dist/bromcom-ui/{p-e0223a0f.entry.js → p-ff2b4565.entry.js} +1 -1
- package/dist/cjs/Overflow-5a73947b.js +2233 -0
- package/dist/cjs/bcm-accordion.cjs.entry.js +74 -0
- package/dist/cjs/bcm-alert.cjs.entry.js +2 -2
- package/dist/cjs/bcm-attendance-actions-comment.cjs.entry.js +4 -4
- package/dist/cjs/bcm-attendance-actions-dropdown.cjs.entry.js +4 -4
- package/dist/cjs/bcm-attendance-actions.cjs.entry.js +330 -0
- package/dist/cjs/bcm-attendance.cjs.entry.js +35 -0
- package/dist/cjs/bcm-avatar_2.cjs.entry.js +210 -0
- package/dist/cjs/bcm-breadcrumb.cjs.entry.js +2 -2
- package/dist/cjs/bcm-button-group.cjs.entry.js +92 -0
- package/dist/cjs/bcm-button.cjs.entry.js +372 -0
- package/dist/cjs/bcm-caption.cjs.entry.js +4 -4
- package/dist/cjs/bcm-card.cjs.entry.js +2 -2
- package/dist/cjs/bcm-checkbox-group.cjs.entry.js +415 -0
- package/dist/cjs/bcm-checkbox-lite_9.cjs.entry.js +2529 -0
- package/dist/cjs/bcm-checkbox_2.cjs.entry.js +194 -0
- package/dist/cjs/bcm-chip-group.cjs.entry.js +4 -4
- package/dist/cjs/bcm-chip.cjs.entry.js +91 -0
- package/dist/cjs/bcm-collapse-group.cjs.entry.js +43 -0
- package/dist/cjs/bcm-collapse.cjs.entry.js +62 -0
- package/dist/cjs/bcm-color-input.cjs.entry.js +77 -0
- package/dist/cjs/bcm-colorful_2.cjs.entry.js +251 -0
- package/dist/cjs/bcm-date-picker.cjs.entry.js +2 -2
- package/dist/cjs/bcm-date_6.cjs.entry.js +15363 -0
- package/dist/cjs/bcm-datetime-picker.cjs.entry.js +2 -2
- package/dist/cjs/bcm-default.cjs.entry.js +2 -2
- package/dist/cjs/bcm-drawer.cjs.entry.js +96 -0
- package/dist/cjs/bcm-dropdown.cjs.entry.js +119 -0
- package/dist/cjs/bcm-expansion-panel.cjs.entry.js +116 -0
- package/dist/cjs/bcm-form-2.cjs.entry.js +2 -2
- package/dist/cjs/bcm-input-2.cjs.entry.js +2 -2
- package/dist/cjs/bcm-input-custom.cjs.entry.js +2 -2
- package/dist/cjs/bcm-input-dropdown.cjs.entry.js +4 -4
- package/dist/cjs/bcm-input_2.cjs.entry.js +550 -0
- package/dist/cjs/bcm-item.cjs.entry.js +72 -0
- package/dist/cjs/bcm-items.cjs.entry.js +49 -0
- package/dist/cjs/bcm-link.cjs.entry.js +51 -0
- package/dist/cjs/bcm-list_3.cjs.entry.js +1977 -0
- package/dist/cjs/bcm-menu.cjs.entry.js +151 -0
- package/dist/cjs/bcm-modal-2-footer.cjs.entry.js +4 -4
- package/dist/cjs/bcm-modal-2-header.cjs.entry.js +4 -4
- package/dist/cjs/bcm-modal-2.cjs.entry.js +4 -4
- package/dist/cjs/bcm-modal.cjs.entry.js +157 -0
- package/dist/cjs/bcm-number-input.cjs.entry.js +4 -4
- package/dist/cjs/bcm-old-input.cjs.entry.js +397 -0
- package/dist/cjs/bcm-old-tag_2.cjs.entry.js +145 -0
- package/dist/cjs/bcm-popconfirm-box.cjs.entry.js +115 -0
- package/dist/cjs/bcm-popconfirm.cjs.entry.js +101 -0
- package/dist/cjs/bcm-popover.cjs.entry.js +4 -4
- package/dist/cjs/bcm-progress.cjs.entry.js +162 -0
- package/dist/cjs/bcm-radio-group.cjs.entry.js +161 -0
- package/dist/cjs/bcm-radio.cjs.entry.js +65 -0
- package/dist/cjs/bcm-range.cjs.entry.js +2 -2
- package/dist/cjs/bcm-select.cjs.entry.js +1195 -0
- package/dist/cjs/bcm-shortcut.cjs.entry.js +65 -0
- package/dist/cjs/bcm-skeleton.cjs.entry.js +4 -4
- package/dist/cjs/bcm-step.cjs.entry.js +89 -0
- package/dist/cjs/bcm-stepper.cjs.entry.js +240 -0
- package/dist/cjs/bcm-switch.cjs.entry.js +151 -0
- package/dist/cjs/bcm-tab-group.cjs.entry.js +210 -0
- package/dist/cjs/bcm-tab-item-header.cjs.entry.js +60 -0
- package/dist/cjs/bcm-tab-item.cjs.entry.js +91 -0
- package/dist/cjs/bcm-tab.cjs.entry.js +72 -0
- package/dist/cjs/bcm-table.cjs.entry.js +4 -4
- package/dist/cjs/bcm-tabs.cjs.entry.js +370 -0
- package/dist/cjs/bcm-tag.cjs.entry.js +3 -3
- package/dist/cjs/bcm-text.cjs.entry.js +49 -0
- package/dist/cjs/bcm-time-picker.cjs.entry.js +2 -2
- package/dist/cjs/bcm-toast.cjs.entry.js +2 -2
- package/dist/cjs/bromcom-ui.cjs.js +3 -3
- package/dist/cjs/{generate-69d5c345.js → generate-bff3fa38.js} +14 -14
- package/dist/cjs/{global-7e2d5892.js → global-825d9cd4.js} +1 -1
- package/dist/cjs/input-template-d05a507f.js +92 -0
- package/dist/cjs/json-parse-decarator-b9186302.js +40 -0
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/lodash-917168d7.js +17199 -0
- package/dist/cjs/{number-helper-a60b43f9.js → number-helper-9bc46d37.js} +1 -1
- package/dist/cjs/old-bcm-popover-box.cjs.entry.js +3 -3
- package/dist/cjs/old-bcm-popover.cjs.entry.js +2 -2
- package/dist/cjs/{package-6a1205fc.js → package-dda6f822.js} +1 -1
- package/dist/cjs/stepper-states-a565a45f.js +85 -0
- package/dist/cjs/tooltip-helper-2e1f4fda.js +158 -0
- package/dist/cjs/{validators-cd8eedf1.js → validators-c0eef77a.js} +1 -1
- package/dist/collection/components/molecules/tab-group/tab-group.js +1 -1
- package/dist/collection/components/molecules/tab-group/tab-item-header.js +6 -5
- package/dist/collection/components/molecules/tab-group/tab-item.js +1 -1
- package/dist/collection/components/third-parts/rc-picker/date.js +1 -1
- package/dist/collection/components/third-parts/rc-picker/rc-picker.css +221 -112
- package/dist/collection/components/third-parts/rc-picker/rc-picker.js +20 -1
- package/dist/components/bcm-date.js +1 -1
- package/dist/components/bcm-tab-group.js +1 -1
- package/dist/components/bcm-tab-item-header.js +6 -5
- package/dist/components/bcm-tab-item.js +1 -1
- package/dist/components/generate.js +1 -1
- package/dist/components/rc-picker.js +5 -2
- package/dist/esm/Overflow-40c63001.js +2217 -0
- package/dist/esm/{_commonjsHelpers-7002e5de.js → _commonjsHelpers-82aa9212.js} +1 -1
- package/dist/esm/bcm-accordion.entry.js +70 -0
- package/dist/esm/bcm-alert.entry.js +6 -6
- package/dist/esm/bcm-attendance-actions-comment.entry.js +10 -10
- package/dist/esm/bcm-attendance-actions-dropdown.entry.js +11 -11
- package/dist/esm/bcm-attendance-actions.entry.js +326 -0
- package/dist/esm/bcm-attendance.entry.js +31 -0
- package/dist/esm/bcm-autocomplete.entry.js +2 -2
- package/dist/esm/bcm-avatar_2.entry.js +205 -0
- package/dist/esm/bcm-breadcrumb.entry.js +5 -5
- package/dist/esm/bcm-button-group.entry.js +88 -0
- package/dist/esm/bcm-button.entry.js +368 -0
- package/dist/esm/bcm-caption.entry.js +12 -12
- package/dist/esm/bcm-card.entry.js +9 -9
- package/dist/esm/bcm-checkbox-group.entry.js +411 -0
- package/dist/esm/bcm-checkbox-lite_9.entry.js +2517 -0
- package/dist/esm/bcm-checkbox_2.entry.js +189 -0
- package/dist/esm/bcm-chip-group.entry.js +13 -13
- package/dist/esm/bcm-chip.entry.js +87 -0
- package/dist/esm/bcm-collapse-group.entry.js +39 -0
- package/dist/esm/bcm-collapse.entry.js +58 -0
- package/dist/esm/bcm-color-input.entry.js +73 -0
- package/dist/esm/bcm-colorful_2.entry.js +246 -0
- package/dist/esm/bcm-colorpicker.entry.js +4 -4
- package/dist/esm/bcm-date-picker.entry.js +6 -6
- package/dist/esm/bcm-date_6.entry.js +15354 -0
- package/dist/esm/bcm-datetime-picker.entry.js +10 -10
- package/dist/esm/bcm-default.entry.js +4 -4
- package/dist/esm/bcm-drawer.entry.js +92 -0
- package/dist/esm/bcm-dropdown.entry.js +115 -0
- package/dist/esm/bcm-error-layout.entry.js +2 -2
- package/dist/esm/bcm-expansion-panel.entry.js +112 -0
- package/dist/esm/bcm-form-2.entry.js +5 -5
- package/dist/esm/bcm-input-2.entry.js +6 -6
- package/dist/esm/bcm-input-custom.entry.js +5 -5
- package/dist/esm/bcm-input-dropdown.entry.js +12 -12
- package/dist/esm/bcm-input_2.entry.js +545 -0
- package/dist/esm/bcm-item.entry.js +68 -0
- package/dist/esm/bcm-items.entry.js +45 -0
- package/dist/esm/bcm-link.entry.js +47 -0
- package/dist/esm/bcm-list_3.entry.js +1971 -0
- package/dist/esm/bcm-menu.entry.js +147 -0
- package/dist/esm/bcm-message.entry.js +2 -2
- package/dist/esm/bcm-modal-2-footer.entry.js +11 -11
- package/dist/esm/bcm-modal-2-header.entry.js +10 -10
- package/dist/esm/bcm-modal-2.entry.js +11 -11
- package/dist/esm/bcm-modal.entry.js +153 -0
- package/dist/esm/bcm-notification.entry.js +2 -2
- package/dist/esm/bcm-number-input.entry.js +12 -12
- package/dist/esm/bcm-old-input.entry.js +393 -0
- package/dist/esm/bcm-old-tag_2.entry.js +140 -0
- package/dist/esm/bcm-overlay_2.entry.js +3 -3
- package/dist/esm/bcm-popconfirm-box.entry.js +111 -0
- package/dist/esm/bcm-popconfirm.entry.js +97 -0
- package/dist/esm/bcm-popover.entry.js +10 -10
- package/dist/esm/bcm-progress.entry.js +158 -0
- package/dist/esm/bcm-radio-group.entry.js +157 -0
- package/dist/esm/bcm-radio.entry.js +61 -0
- package/dist/esm/bcm-range.entry.js +6 -6
- package/dist/esm/bcm-react-number.entry.js +2 -2
- package/dist/esm/bcm-result.entry.js +2 -2
- package/dist/esm/bcm-select-group.entry.js +2 -2
- package/dist/esm/bcm-select-option.entry.js +2 -2
- package/dist/esm/bcm-select.entry.js +1191 -0
- package/dist/esm/bcm-shortcut.entry.js +61 -0
- package/dist/esm/bcm-skeleton.entry.js +10 -10
- package/dist/esm/bcm-step.entry.js +85 -0
- package/dist/esm/bcm-stepper.entry.js +236 -0
- package/dist/esm/bcm-switch.entry.js +147 -0
- package/dist/esm/bcm-tab-group.entry.js +206 -0
- package/dist/esm/bcm-tab-item-header.entry.js +56 -0
- package/dist/esm/bcm-tab-item.entry.js +87 -0
- package/dist/esm/bcm-tab-pane.entry.js +2 -2
- package/dist/esm/bcm-tab.entry.js +68 -0
- package/dist/esm/bcm-table.entry.js +11 -11
- package/dist/esm/bcm-tabs-content.entry.js +3 -3
- package/dist/esm/bcm-tabs.entry.js +366 -0
- package/dist/esm/bcm-tag.entry.js +7 -7
- package/dist/esm/bcm-text.entry.js +45 -0
- package/dist/esm/bcm-time-picker.entry.js +6 -6
- package/dist/esm/bcm-timeline-item.entry.js +2 -2
- package/dist/esm/bcm-timeline.entry.js +2 -2
- package/dist/esm/bcm-toast.entry.js +7 -7
- package/dist/esm/bromcom-ui.js +3 -3
- package/dist/esm/{caption-template-3cd42c3b.js → caption-template-d7953d13.js} +1 -1
- package/dist/esm/{color-helper-ba15b0d8.js → color-helper-74614f24.js} +2 -2
- package/dist/esm/{colors-ed4e7579.js → colors-dd598eea.js} +1 -1
- package/dist/esm/{element-dragger-b75266e6.js → element-dragger-89bb52fd.js} +1 -1
- package/dist/esm/{generate-172feaa1.js → generate-1281254a.js} +15 -15
- package/dist/esm/{global-dd4e5618.js → global-c031697c.js} +1 -1
- package/dist/esm/{index-0d3a56ec.js → index-036974d7.js} +1 -1
- package/dist/esm/{index-00c8a8f7.js → index-f549811f.js} +1 -1
- package/dist/esm/input-template-b4045b25.js +90 -0
- package/dist/esm/json-parse-decarator-7d436ec7.js +38 -0
- package/dist/esm/{label-template-ef97aadb.js → label-template-a26f76c0.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/lodash-4197be99.js +17197 -0
- package/dist/esm/{number-helper-75b39b91.js → number-helper-778c8f87.js} +1 -1
- package/dist/esm/old-bcm-popover-box.entry.js +10 -10
- package/dist/esm/old-bcm-popover.entry.js +5 -5
- package/dist/esm/{package-4ae730ba.js → package-08ddc3fa.js} +1 -1
- package/dist/esm/{popover-placement-2bf3a181.js → popover-placement-d12fec40.js} +1 -1
- package/dist/esm/{slot-template-d3ae9f27.js → slot-template-2a19b2db.js} +1 -1
- package/dist/esm/stepper-states-325c754b.js +83 -0
- package/dist/esm/{string-helper-69203215.js → string-helper-3592bdc2.js} +1 -1
- package/dist/esm/tooltip-helper-9c64ad15.js +156 -0
- package/dist/esm/{utils-7727d09e.js → utils-57652744.js} +1 -1
- package/dist/esm/{validators-c89525d2.js → validators-0c6e8dea.js} +1 -1
- package/dist/types/components/third-parts/rc-picker/rc-picker.d.ts +1 -0
- package/dist/types/components.d.ts +2 -0
- package/package.json +2 -2
- package/dist/bromcom-ui/p-053dc717.entry.js +0 -5
- package/dist/bromcom-ui/p-06a548ce.entry.js +0 -5
- package/dist/bromcom-ui/p-20a3d051.entry.js +0 -16
- package/dist/bromcom-ui/p-64fad38b.js +0 -11
- package/dist/bromcom-ui/p-7d2993dc.entry.js +0 -5
- package/dist/bromcom-ui/p-8255b154.entry.js +0 -5
- package/dist/bromcom-ui/p-a1e2fa92.entry.js +0 -5
- package/dist/bromcom-ui/p-b93361f4.js +0 -5
- package/dist/bromcom-ui/p-bddc9310.entry.js +0 -5
- package/dist/bromcom-ui/p-bddce313.js +0 -5
- package/dist/bromcom-ui/p-f151ffce.entry.js +0 -5
- package/dist/cjs/bcm-accordion_63.cjs.entry.js +0 -46097
- package/dist/esm/bcm-accordion_63.entry.js +0 -46031
|
@@ -37,4 +37,4 @@ function commonjsRequire () {
|
|
|
37
37
|
throw new Error('Dynamic requires are not currently supported by @rollup/plugin-commonjs');
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
export {
|
|
40
|
+
export { getDefaultExportFromCjs as a, commonjsGlobal as b, createCommonjsModule as c, getAugmentedNamespace as g };
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Stencil
|
|
3
|
+
* Copyright (c) Bromcom.
|
|
4
|
+
*/
|
|
5
|
+
import { r as registerInstance, h, H as Host, g as getElement } from './index-0615c2b8.js';
|
|
6
|
+
import { G as Generate } from './generate-1281254a.js';
|
|
7
|
+
import './package-08ddc3fa.js';
|
|
8
|
+
import './colors-dd598eea.js';
|
|
9
|
+
import './_commonjsHelpers-82aa9212.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 };
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
* Copyright (c) Bromcom.
|
|
4
4
|
*/
|
|
5
5
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-0615c2b8.js';
|
|
6
|
-
import { G as Generate, s as snq, S as StatusProps, T as TypeProps } from './generate-
|
|
7
|
-
import { c as classnames } from './index-
|
|
6
|
+
import { G as Generate, s as snq, S as StatusProps, T as TypeProps } from './generate-1281254a.js';
|
|
7
|
+
import { c as classnames } from './index-f549811f.js';
|
|
8
8
|
import { c as createStore } from './index-7e71bbc8.js';
|
|
9
|
-
import { S as StringHelper } from './string-helper-
|
|
10
|
-
import './package-
|
|
11
|
-
import './colors-
|
|
12
|
-
import './_commonjsHelpers-
|
|
9
|
+
import { S as StringHelper } from './string-helper-3592bdc2.js';
|
|
10
|
+
import './package-08ddc3fa.js';
|
|
11
|
+
import './colors-dd598eea.js';
|
|
12
|
+
import './_commonjsHelpers-82aa9212.js';
|
|
13
13
|
import './bcm-a50d55ba.js';
|
|
14
14
|
|
|
15
15
|
const { state } = createStore({
|
|
@@ -3,21 +3,21 @@
|
|
|
3
3
|
* Copyright (c) Bromcom.
|
|
4
4
|
*/
|
|
5
5
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-0615c2b8.js';
|
|
6
|
-
import './color-helper-
|
|
6
|
+
import './color-helper-74614f24.js';
|
|
7
7
|
import './datetime-helper-df25808a.js';
|
|
8
|
-
import { G as Generate } from './generate-
|
|
9
|
-
import './number-helper-
|
|
10
|
-
import './string-helper-
|
|
11
|
-
import './validators-
|
|
12
|
-
import './element-dragger-
|
|
13
|
-
import { d as delay } from './utils-
|
|
8
|
+
import { G as Generate } from './generate-1281254a.js';
|
|
9
|
+
import './number-helper-778c8f87.js';
|
|
10
|
+
import './string-helper-3592bdc2.js';
|
|
11
|
+
import './validators-0c6e8dea.js';
|
|
12
|
+
import './element-dragger-89bb52fd.js';
|
|
13
|
+
import { d as delay } from './utils-57652744.js';
|
|
14
14
|
import { F as FloatingUI } from './floating-ui-3f4394da.js';
|
|
15
15
|
import { B as Bcm } from './bcm-a50d55ba.js';
|
|
16
16
|
import { c as ce } from './index-3bc8c6e3.js';
|
|
17
17
|
import './colors-1d7854ea.js';
|
|
18
|
-
import './colors-
|
|
19
|
-
import './_commonjsHelpers-
|
|
20
|
-
import './package-
|
|
18
|
+
import './colors-dd598eea.js';
|
|
19
|
+
import './_commonjsHelpers-82aa9212.js';
|
|
20
|
+
import './package-08ddc3fa.js';
|
|
21
21
|
|
|
22
22
|
const attendanceActionCommentStyle = ce({
|
|
23
23
|
slots: {
|
|
@@ -3,22 +3,22 @@
|
|
|
3
3
|
* Copyright (c) Bromcom.
|
|
4
4
|
*/
|
|
5
5
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-0615c2b8.js';
|
|
6
|
-
import './color-helper-
|
|
6
|
+
import './color-helper-74614f24.js';
|
|
7
7
|
import './datetime-helper-df25808a.js';
|
|
8
|
-
import { G as Generate } from './generate-
|
|
9
|
-
import './number-helper-
|
|
10
|
-
import './string-helper-
|
|
11
|
-
import './validators-
|
|
12
|
-
import './element-dragger-
|
|
8
|
+
import { G as Generate } from './generate-1281254a.js';
|
|
9
|
+
import './number-helper-778c8f87.js';
|
|
10
|
+
import './string-helper-3592bdc2.js';
|
|
11
|
+
import './validators-0c6e8dea.js';
|
|
12
|
+
import './element-dragger-89bb52fd.js';
|
|
13
13
|
import { F as FloatingUI } from './floating-ui-3f4394da.js';
|
|
14
14
|
import { B as Bcm } from './bcm-a50d55ba.js';
|
|
15
|
-
import { c as classnames } from './index-
|
|
15
|
+
import { c as classnames } from './index-f549811f.js';
|
|
16
16
|
import { c as ce } from './index-3bc8c6e3.js';
|
|
17
17
|
import './colors-1d7854ea.js';
|
|
18
|
-
import './utils-
|
|
19
|
-
import './colors-
|
|
20
|
-
import './_commonjsHelpers-
|
|
21
|
-
import './package-
|
|
18
|
+
import './utils-57652744.js';
|
|
19
|
+
import './colors-dd598eea.js';
|
|
20
|
+
import './_commonjsHelpers-82aa9212.js';
|
|
21
|
+
import './package-08ddc3fa.js';
|
|
22
22
|
|
|
23
23
|
const attendanceActionDropdownStyle = ce({
|
|
24
24
|
slots: {
|
|
@@ -0,0 +1,326 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Stencil
|
|
3
|
+
* Copyright (c) Bromcom.
|
|
4
|
+
*/
|
|
5
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-0615c2b8.js';
|
|
6
|
+
import './color-helper-74614f24.js';
|
|
7
|
+
import './datetime-helper-df25808a.js';
|
|
8
|
+
import { G as Generate } from './generate-1281254a.js';
|
|
9
|
+
import './number-helper-778c8f87.js';
|
|
10
|
+
import './string-helper-3592bdc2.js';
|
|
11
|
+
import './validators-0c6e8dea.js';
|
|
12
|
+
import './element-dragger-89bb52fd.js';
|
|
13
|
+
import { B as Bcm } from './bcm-a50d55ba.js';
|
|
14
|
+
import { c as classnames } from './index-f549811f.js';
|
|
15
|
+
import { c as ce } from './index-3bc8c6e3.js';
|
|
16
|
+
import './colors-1d7854ea.js';
|
|
17
|
+
import './utils-57652744.js';
|
|
18
|
+
import './colors-dd598eea.js';
|
|
19
|
+
import './_commonjsHelpers-82aa9212.js';
|
|
20
|
+
import './package-08ddc3fa.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 };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Stencil
|
|
3
|
+
* Copyright (c) Bromcom.
|
|
4
|
+
*/
|
|
5
|
+
import { r as registerInstance, h, H as Host, g as getElement } from './index-0615c2b8.js';
|
|
6
|
+
import { G as Generate } from './generate-1281254a.js';
|
|
7
|
+
import './package-08ddc3fa.js';
|
|
8
|
+
import './colors-dd598eea.js';
|
|
9
|
+
import './_commonjsHelpers-82aa9212.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 };
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* Copyright (c) Bromcom.
|
|
4
4
|
*/
|
|
5
5
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-0615c2b8.js';
|
|
6
|
-
import { c as classnames } from './index-
|
|
7
|
-
import './_commonjsHelpers-
|
|
6
|
+
import { c as classnames } from './index-f549811f.js';
|
|
7
|
+
import './_commonjsHelpers-82aa9212.js';
|
|
8
8
|
|
|
9
9
|
const autocompleteCss = "@import url(\"https://fonts.googleapis.com/css?family=Roboto:400,500\");.size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}:host{display:inline-block;width:fit-content;height:fit-content}:host(.hidden){display:none}:host(.full-width){width:100%;height:100%}:host(.full-width) .bcm-autocomplete{max-height:100%;max-width:100%}.bcm-autocomplete{background-color:var(--bcm-color-grey-1);display:flex;flex-direction:column;height:100%;width:100%;min-width:256px;max-width:256px;position:relative}.bcm-autocomplete-result{position:relative}.bcm-autocomplete-result .viewport{position:absolute;overflow:hidden;height:0;transition:height 0.3s ease;background-color:#ffffff;width:100%;z-index:10000}.bcm-autocomplete-result.open .viewport{height:256px}";
|
|
10
10
|
|