bromcom-ui 2.11.1-rc.9-3 → 2.11.2-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-00c28e19.entry.js +5 -0
- package/dist/bromcom-ui/p-0533a1b0.entry.js +5 -0
- package/dist/bromcom-ui/{p-2cd6cdee.js → p-09318a64.js} +1 -1
- package/dist/bromcom-ui/p-0a44db90.entry.js +5 -0
- package/dist/bromcom-ui/p-0cd4e8a1.entry.js +5 -0
- package/dist/bromcom-ui/p-195c1819.entry.js +5 -0
- package/dist/bromcom-ui/p-19783732.entry.js +5 -0
- package/dist/bromcom-ui/p-1e5df686.entry.js +5 -0
- package/dist/bromcom-ui/p-207c20c6.entry.js +5 -0
- package/dist/bromcom-ui/p-2270e612.entry.js +5 -0
- package/dist/bromcom-ui/p-34740cfd.entry.js +5 -0
- package/dist/bromcom-ui/p-350719ca.entry.js +5 -0
- package/dist/bromcom-ui/p-385a50b0.entry.js +5 -0
- package/dist/bromcom-ui/p-3b38d001.js +5 -0
- package/dist/bromcom-ui/p-3c04d0f7.entry.js +5 -0
- package/dist/bromcom-ui/p-3e2fb868.entry.js +5 -0
- package/dist/bromcom-ui/p-44faabe9.entry.js +5 -0
- package/dist/bromcom-ui/{p-5a391fcd.js → p-4757735e.js} +1 -1
- package/dist/bromcom-ui/p-4d5eb722.entry.js +5 -0
- package/dist/bromcom-ui/p-50926f4c.entry.js +5 -0
- package/dist/bromcom-ui/p-5196912d.js +5 -0
- package/dist/bromcom-ui/p-543457d1.entry.js +5 -0
- package/dist/bromcom-ui/p-58ca54dc.js +5 -0
- package/dist/bromcom-ui/p-60dd2172.entry.js +5 -0
- package/dist/bromcom-ui/p-6146d180.entry.js +5 -0
- package/dist/bromcom-ui/p-62804f2c.entry.js +5 -0
- package/dist/bromcom-ui/p-666d9883.entry.js +5 -0
- package/dist/bromcom-ui/{p-0eacfbb2.entry.js → p-695d8d34.entry.js} +1 -1
- package/dist/bromcom-ui/{p-14ed8029.entry.js → p-69c64256.entry.js} +1 -1
- package/dist/bromcom-ui/p-6c6beb41.entry.js +5 -0
- package/dist/bromcom-ui/p-6e5f5f36.js +1 -1
- package/dist/bromcom-ui/p-6e961eb9.entry.js +7 -0
- package/dist/bromcom-ui/p-70c2412a.entry.js +5 -0
- package/dist/bromcom-ui/p-7175c984.entry.js +5 -0
- package/dist/bromcom-ui/p-7222a8db.entry.js +5 -0
- package/dist/bromcom-ui/p-75e4f799.entry.js +5 -0
- package/dist/bromcom-ui/p-76f6db61.entry.js +5 -0
- package/dist/bromcom-ui/p-79153d4a.entry.js +5 -0
- package/dist/bromcom-ui/p-7b9e8f58.entry.js +5 -0
- package/dist/bromcom-ui/p-80a43d63.js +5 -0
- package/dist/bromcom-ui/p-86384d20.entry.js +5 -0
- package/dist/bromcom-ui/p-894c02ef.entry.js +5 -0
- package/dist/bromcom-ui/p-8b00d553.entry.js +5 -0
- package/dist/bromcom-ui/p-8b3eafe7.entry.js +5 -0
- package/dist/bromcom-ui/p-9098db35.entry.js +5 -0
- package/dist/bromcom-ui/p-a0d6d680.js +1 -1
- package/dist/bromcom-ui/p-a313fba6.js +1 -1
- package/dist/bromcom-ui/p-a42fbe84.entry.js +5 -0
- package/dist/bromcom-ui/p-a516049b.entry.js +5 -0
- package/dist/bromcom-ui/p-a62adacd.js +5 -0
- package/dist/bromcom-ui/p-aaf36d5c.entry.js +5 -0
- package/dist/bromcom-ui/p-ab2dcd70.entry.js +5 -0
- package/dist/bromcom-ui/{p-db15dca3.entry.js → p-ad8d9e10.entry.js} +1 -1
- package/dist/bromcom-ui/{p-ede82918.js → p-b12c8235.js} +1 -1
- package/dist/bromcom-ui/p-b2c6659a.entry.js +5 -0
- package/dist/bromcom-ui/p-b381e7f1.js +19 -0
- package/dist/bromcom-ui/{p-90223f9f.entry.js → p-b3f7b64d.entry.js} +1 -1
- package/dist/bromcom-ui/p-b4755ed0.entry.js +5 -0
- package/dist/bromcom-ui/{p-a018f340.entry.js → p-b66e0388.entry.js} +1 -1
- package/dist/bromcom-ui/{p-adcb30bc.entry.js → p-b6e6027b.entry.js} +1 -1
- package/dist/bromcom-ui/{p-35c215f2.entry.js → p-b85fd5f4.entry.js} +1 -1
- package/dist/bromcom-ui/p-c6b86846.entry.js +5 -0
- package/dist/bromcom-ui/p-cc449a87.entry.js +5 -0
- package/dist/bromcom-ui/{p-8b31581f.js → p-ccbb5a6b.js} +1 -1
- package/dist/bromcom-ui/p-d01426b6.entry.js +5 -0
- package/dist/bromcom-ui/p-d43d75d2.entry.js +5 -0
- package/dist/bromcom-ui/p-d51f76b2.js +5 -0
- package/dist/bromcom-ui/p-ef4baf81.entry.js +5 -0
- package/dist/bromcom-ui/p-f2b520a4.entry.js +5 -0
- package/dist/bromcom-ui/{p-5bf1657b.entry.js → p-f2e06aca.entry.js} +1 -1
- package/dist/bromcom-ui/{p-930f3618.js → p-f6169b46.js} +1 -1
- package/dist/bromcom-ui/p-f7e70814.entry.js +5 -0
- package/dist/bromcom-ui/{p-6f37a4d7.entry.js → p-fc27c9ca.entry.js} +1 -1
- package/dist/cjs/Overflow-a821abd0.js +2769 -0
- package/dist/cjs/{bcm-1d1fcf21.js → bcm-489c9b1a.js} +4 -4
- package/dist/cjs/bcm-accordion.cjs.entry.js +74 -0
- package/dist/cjs/bcm-alert.cjs.entry.js +4 -4
- package/dist/cjs/bcm-attendance-actions-comment.cjs.entry.js +8 -9
- package/dist/cjs/bcm-attendance-actions-dropdown.cjs.entry.js +8 -9
- package/dist/cjs/bcm-attendance-actions.cjs.entry.js +329 -0
- package/dist/cjs/bcm-attendance.cjs.entry.js +35 -0
- package/dist/cjs/bcm-avatar_2.cjs.entry.js +209 -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_15.cjs.entry.js +18623 -0
- package/dist/cjs/bcm-caption.cjs.entry.js +9 -10
- package/dist/cjs/bcm-card.cjs.entry.js +5 -5
- package/dist/cjs/bcm-checkbox-group.cjs.entry.js +415 -0
- package/dist/cjs/{bcm-checkbox-lite_8.cjs.entry.js → bcm-checkbox-lite_9.cjs.entry.js} +26 -6
- package/dist/cjs/bcm-checkbox_2.cjs.entry.js +194 -0
- package/dist/cjs/bcm-chip-group.cjs.entry.js +9 -10
- package/dist/cjs/bcm-chip.cjs.entry.js +91 -0
- package/dist/cjs/bcm-collapse.cjs.entry.js +2 -2
- package/dist/cjs/bcm-color-input.cjs.entry.js +76 -0
- package/dist/cjs/bcm-default.cjs.entry.js +2 -2
- package/dist/cjs/bcm-drawer.cjs.entry.js +95 -0
- package/dist/cjs/bcm-dropdown.cjs.entry.js +119 -0
- package/dist/cjs/bcm-error-layout.cjs.entry.js +1 -1
- package/dist/cjs/bcm-expansion-panel.cjs.entry.js +116 -0
- package/dist/cjs/bcm-input-custom.cjs.entry.js +2 -2
- package/dist/cjs/bcm-input-dropdown.cjs.entry.js +10 -11
- 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 +3 -3
- package/dist/cjs/bcm-list_3.cjs.entry.js +1970 -0
- package/dist/cjs/bcm-menu.cjs.entry.js +150 -0
- package/dist/cjs/bcm-modal-2-footer.cjs.entry.js +6 -7
- package/dist/cjs/bcm-modal-2-header.cjs.entry.js +6 -7
- package/dist/cjs/bcm-modal-2.cjs.entry.js +7 -8
- package/dist/cjs/bcm-modal.cjs.entry.js +157 -0
- package/dist/cjs/bcm-number-input.cjs.entry.js +9 -10
- 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 +9 -10
- package/dist/cjs/bcm-progress.cjs.entry.js +162 -0
- package/dist/cjs/bcm-radio-group.cjs.entry.js +160 -0
- package/dist/cjs/bcm-radio.cjs.entry.js +64 -0
- package/dist/cjs/bcm-range.cjs.entry.js +6 -6
- package/dist/cjs/bcm-select.cjs.entry.js +2 -2
- package/dist/cjs/bcm-shortcut.cjs.entry.js +64 -0
- package/dist/cjs/bcm-skeleton.cjs.entry.js +6 -7
- package/dist/cjs/bcm-step.cjs.entry.js +89 -0
- package/dist/cjs/bcm-stepper.cjs.entry.js +239 -0
- package/dist/cjs/bcm-switch.cjs.entry.js +151 -0
- package/dist/cjs/bcm-tab-group.cjs.entry.js +209 -0
- package/dist/cjs/bcm-tab-item-header.cjs.entry.js +58 -0
- package/dist/cjs/bcm-tab-item.cjs.entry.js +90 -0
- package/dist/cjs/bcm-table.cjs.entry.js +6 -7
- package/dist/cjs/bcm-tag.cjs.entry.js +15 -15
- package/dist/cjs/bcm-text.cjs.entry.js +49 -0
- package/dist/cjs/bcm-textarea.cjs.entry.js +163 -0
- package/dist/cjs/bcm-toast.cjs.entry.js +11 -11
- package/dist/cjs/bromcom-ui.cjs.js +3 -3
- package/dist/cjs/{caption-template-85a18b6d.js → caption-template-086e9cac.js} +2 -2
- package/dist/cjs/{floating-ui-5b396838.js → floating-ui-21890d11.js} +2 -2
- package/dist/cjs/{generate-f73a098d.js → generate-64f84d95.js} +1 -1
- package/dist/cjs/{global-baf04c81.js → global-895f2946.js} +1 -1
- package/dist/cjs/input-template-9c106337.js +92 -0
- package/dist/cjs/json-parse-decarator-9db107be.js +40 -0
- package/dist/cjs/{label-template-e83447b5.js → label-template-94b3d775.js} +3 -3
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{number-helper-0543a62e.js → number-helper-f9323233.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-e717a31f.js → package-992c024f.js} +1 -1
- package/dist/cjs/{popover-placement-02e6101b.js → popover-placement-e7d6eabd.js} +1 -1
- package/dist/cjs/{slot-template-df7b5b59.js → slot-template-c8e2816c.js} +1 -1
- package/dist/cjs/stepper-states-b3496b3f.js +85 -0
- package/dist/cjs/{string-helper-9cdfb273.js → string-helper-f9184277.js} +2 -2
- package/dist/cjs/tooltip-helper-cb99c02e.js +157 -0
- package/dist/cjs/{validators-77768582.js → validators-abb0434a.js} +6 -1
- package/dist/collection/components/atoms/avatar/avatar.js +1 -1
- package/dist/collection/components/atoms/badge/badge.js +1 -1
- package/dist/collection/components/atoms/badge/badge.style.js +1 -1
- package/dist/collection/components/atoms/button/button.css +13 -13
- package/dist/collection/components/atoms/button/button.js +14 -14
- package/dist/collection/components/atoms/chip/chip.css +4 -4
- package/dist/collection/components/atoms/chip/chip.js +3 -3
- package/dist/collection/components/molecules/checkbox/group.css +2 -2
- package/dist/collection/components/molecules/checkbox/group.js +1 -1
- 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.js +1 -1
- package/dist/collection/components/molecules/expansion-panel/expansion-panel.js +1 -1
- package/dist/collection/components/molecules/input/input.js +1 -1
- package/dist/collection/components/molecules/input-dropdown/input-dropdown.js +1 -1
- package/dist/collection/components/molecules/menu/menu.css +4 -4
- package/dist/collection/components/molecules/modal/modal.css +1 -1
- package/dist/collection/components/molecules/radio/radio-group.js +1 -1
- package/dist/collection/components/molecules/radio/radio.js +1 -1
- package/dist/collection/components/molecules/range/range.js +1 -1
- package/dist/collection/components/molecules/switch/switch.css +2 -2
- package/dist/collection/components/molecules/tab-group/tab-group.js +2 -2
- package/dist/collection/components/molecules/tab-group/tab-item-header.js +5 -5
- package/dist/collection/components/molecules/tooltip/tooltip.js +1 -1
- package/dist/collection/components/organism/list/list.css +2 -3
- package/dist/collection/components/organism/list/list.js +2 -2
- package/dist/collection/components/other/attendance/attendance.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 +40 -5
- package/dist/collection/components/third-parts/rc-picker/rc-picker.js +11 -2
- package/dist/collection/stories/ui-library/components/date/argTypes_common.js +0 -1
- package/dist/collection/templates/button-template.js +1 -1
- package/dist/collection/templates/caption-template.js +2 -2
- package/dist/collection/templates/input-template.js +1 -1
- package/dist/collection/templates/label-template.js +1 -1
- package/dist/collection/templates/list-item-template.js +1 -1
- package/dist/collection/templates/list-template.js +9 -3
- package/dist/components/{raf.js → Overflow.js} +692 -69
- package/dist/components/avatar.js +1 -1
- package/dist/components/badge.js +2 -2
- package/dist/components/bcm-attendance.js +1 -1
- package/dist/components/bcm-checkbox-group.js +2 -2
- package/dist/components/bcm-color-input.js +1 -1
- package/dist/components/bcm-date.js +1 -1
- package/dist/components/bcm-error-layout.js +1 -1
- package/dist/components/bcm-expansion-panel.js +1 -1
- package/dist/components/bcm-input-dropdown.js +1 -1
- package/dist/components/bcm-modal.js +1 -1
- package/dist/components/bcm-radio-group.js +1 -1
- package/dist/components/bcm-range.js +1 -1
- package/dist/components/bcm-switch.js +1 -1
- package/dist/components/bcm-tab-group.js +2 -2
- package/dist/components/bcm-tab-item-header.js +5 -5
- package/dist/components/button.js +16 -16
- package/dist/components/caption-template.js +2 -2
- package/dist/components/chip.js +4 -4
- package/dist/components/empty.js +1 -1
- package/dist/components/generate.js +1 -1
- package/dist/components/input-template.js +1 -1
- package/dist/components/input.js +1 -1
- package/dist/components/label.js +1 -1
- package/dist/components/list.js +13 -7
- package/dist/components/menu.js +1 -1
- package/dist/components/radio.js +1 -1
- package/dist/components/rc-overflow.js +1 -593
- package/dist/components/rc-picker.js +8620 -8025
- package/dist/components/tooltip.js +1 -1
- package/dist/esm/Overflow-2cffcda0.js +2750 -0
- package/dist/esm/bcm-a50d55ba.js +1 -1
- package/dist/esm/bcm-accordion.entry.js +70 -0
- package/dist/esm/bcm-alert.entry.js +2 -2
- package/dist/esm/bcm-attendance-actions-comment.entry.js +5 -6
- package/dist/esm/bcm-attendance-actions-dropdown.entry.js +5 -6
- package/dist/esm/bcm-attendance-actions.entry.js +325 -0
- package/dist/esm/bcm-attendance.entry.js +31 -0
- package/dist/esm/bcm-avatar_2.entry.js +204 -0
- package/dist/esm/bcm-breadcrumb.entry.js +2 -2
- package/dist/esm/bcm-button-group.entry.js +88 -0
- package/dist/esm/bcm-button_15.entry.js +18605 -0
- package/dist/esm/bcm-caption.entry.js +6 -7
- package/dist/esm/bcm-card.entry.js +2 -2
- package/dist/esm/bcm-checkbox-group.entry.js +411 -0
- package/dist/esm/{bcm-checkbox-lite_8.entry.js → bcm-checkbox-lite_9.entry.js} +24 -5
- package/dist/esm/bcm-checkbox_2.entry.js +189 -0
- package/dist/esm/bcm-chip-group.entry.js +7 -8
- package/dist/esm/bcm-chip.entry.js +87 -0
- package/dist/esm/bcm-collapse.entry.js +2 -2
- package/dist/esm/bcm-color-input.entry.js +72 -0
- package/dist/esm/bcm-default.entry.js +2 -2
- package/dist/esm/bcm-drawer.entry.js +91 -0
- package/dist/esm/bcm-dropdown.entry.js +115 -0
- package/dist/esm/bcm-error-layout.entry.js +1 -1
- package/dist/esm/bcm-expansion-panel.entry.js +112 -0
- package/dist/esm/bcm-input-custom.entry.js +2 -2
- package/dist/esm/bcm-input-dropdown.entry.js +7 -8
- 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 +1 -1
- package/dist/esm/bcm-list_3.entry.js +1964 -0
- package/dist/esm/bcm-menu.entry.js +146 -0
- package/dist/esm/bcm-modal-2-footer.entry.js +4 -5
- package/dist/esm/bcm-modal-2-header.entry.js +4 -5
- package/dist/esm/bcm-modal-2.entry.js +5 -6
- package/dist/esm/bcm-modal.entry.js +153 -0
- package/dist/esm/bcm-number-input.entry.js +6 -7
- 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 +5 -6
- package/dist/esm/bcm-progress.entry.js +158 -0
- package/dist/esm/bcm-radio-group.entry.js +156 -0
- package/dist/esm/bcm-radio.entry.js +60 -0
- package/dist/esm/bcm-range.entry.js +4 -4
- package/dist/esm/bcm-shortcut.entry.js +60 -0
- package/dist/esm/bcm-skeleton.entry.js +4 -5
- package/dist/esm/bcm-step.entry.js +85 -0
- package/dist/esm/bcm-stepper.entry.js +235 -0
- package/dist/esm/bcm-switch.entry.js +147 -0
- package/dist/esm/bcm-tab-group.entry.js +205 -0
- package/dist/esm/bcm-tab-item-header.entry.js +54 -0
- package/dist/esm/bcm-tab-item.entry.js +86 -0
- package/dist/esm/bcm-table.entry.js +4 -5
- package/dist/esm/bcm-tag.entry.js +4 -4
- package/dist/esm/bcm-text.entry.js +45 -0
- package/dist/esm/bcm-textarea.entry.js +159 -0
- package/dist/esm/bcm-toast.entry.js +3 -3
- package/dist/esm/bromcom-ui.js +3 -3
- package/dist/esm/{caption-template-d7953d13.js → caption-template-fd7738eb.js} +2 -2
- package/dist/esm/floating-ui-3f4394da.js +1 -1
- package/dist/esm/{generate-c2c0b02e.js → generate-56856b63.js} +1 -1
- package/dist/esm/{global-2473677b.js → global-c0272f2f.js} +1 -1
- package/dist/esm/input-template-19a34625.js +90 -0
- package/dist/esm/json-parse-decarator-c9a132f1.js +38 -0
- package/dist/esm/{label-template-a26f76c0.js → label-template-374fbdcd.js} +2 -2
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{number-helper-75447fa6.js → number-helper-0501b786.js} +1 -1
- package/dist/esm/old-bcm-popover-box.entry.js +3 -3
- package/dist/esm/old-bcm-popover.entry.js +3 -3
- package/dist/esm/{package-28dc6847.js → package-a9b6e2c6.js} +1 -1
- package/dist/esm/stepper-states-a4b1efb3.js +83 -0
- package/dist/esm/string-helper-3592bdc2.js +1 -1
- package/dist/esm/tooltip-helper-de7eb9a3.js +155 -0
- package/dist/esm/{validators-5a383988.js → validators-be951131.js} +6 -2
- package/dist/types/templates/list-template.d.ts +0 -1
- package/package.json +2 -2
- package/dist/bromcom-ui/p-1345d51b.entry.js +0 -5
- package/dist/bromcom-ui/p-178fa936.entry.js +0 -5
- package/dist/bromcom-ui/p-3361f6c9.entry.js +0 -5
- package/dist/bromcom-ui/p-350dbff0.entry.js +0 -5
- package/dist/bromcom-ui/p-3cdfd8eb.entry.js +0 -5
- package/dist/bromcom-ui/p-5a22b74b.entry.js +0 -5
- package/dist/bromcom-ui/p-626a65e9.js +0 -5
- package/dist/bromcom-ui/p-627c7769.entry.js +0 -5
- package/dist/bromcom-ui/p-64f21481.entry.js +0 -20
- package/dist/bromcom-ui/p-70253803.entry.js +0 -5
- package/dist/bromcom-ui/p-7fd22a35.entry.js +0 -5
- package/dist/bromcom-ui/p-a0f44b56.entry.js +0 -5
- package/dist/bromcom-ui/p-a4b675ef.entry.js +0 -5
- package/dist/bromcom-ui/p-abd2f9ff.entry.js +0 -5
- package/dist/bromcom-ui/p-bb46d881.entry.js +0 -5
- package/dist/bromcom-ui/p-bca0ff0a.entry.js +0 -5
- package/dist/bromcom-ui/p-c10b07cc.entry.js +0 -5
- package/dist/bromcom-ui/p-c7030364.entry.js +0 -5
- package/dist/bromcom-ui/p-dc607ae4.entry.js +0 -5
- package/dist/bromcom-ui/p-de0b0192.entry.js +0 -5
- package/dist/bromcom-ui/p-e10780ed.entry.js +0 -5
- package/dist/bromcom-ui/p-e497cf5d.entry.js +0 -5
- package/dist/bromcom-ui/p-e93d6619.js +0 -5
- package/dist/bromcom-ui/p-ebeb9689.entry.js +0 -5
- package/dist/bromcom-ui/p-eca0acda.js +0 -5
- package/dist/bromcom-ui/p-fba1682e.entry.js +0 -5
- package/dist/cjs/bcm-accordion_46.cjs.entry.js +0 -24086
- package/dist/cjs/bcm-date-picker.cjs.entry.js +0 -182
- package/dist/cjs/bcm-datetime-picker.cjs.entry.js +0 -1450
- package/dist/cjs/bcm-form-2.cjs.entry.js +0 -212
- package/dist/cjs/bcm-old-input.cjs.entry.js +0 -397
- package/dist/cjs/bcm-time-picker.cjs.entry.js +0 -150
- package/dist/cjs/datetime-helper-eaf4fadb.js +0 -11
- package/dist/esm/bcm-accordion_46.entry.js +0 -24037
- package/dist/esm/bcm-date-picker.entry.js +0 -178
- package/dist/esm/bcm-datetime-picker.entry.js +0 -1446
- package/dist/esm/bcm-form-2.entry.js +0 -208
- package/dist/esm/bcm-old-input.entry.js +0 -393
- package/dist/esm/bcm-time-picker.entry.js +0 -146
- package/dist/esm/datetime-helper-df25808a.js +0 -9
package/dist/esm/bcm-a50d55ba.js
CHANGED
|
@@ -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-56856b63.js';
|
|
7
|
+
import './package-a9b6e2c6.js';
|
|
8
|
+
import './colors-c530a5b8.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,11 +3,11 @@
|
|
|
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-
|
|
6
|
+
import { G as Generate, s as snq, S as StatusProps, T as TypeProps } from './generate-56856b63.js';
|
|
7
7
|
import { c as classnames } from './index-f549811f.js';
|
|
8
8
|
import { c as createStore } from './index-7e71bbc8.js';
|
|
9
9
|
import { S as StringHelper } from './string-helper-3592bdc2.js';
|
|
10
|
-
import './package-
|
|
10
|
+
import './package-a9b6e2c6.js';
|
|
11
11
|
import './colors-c530a5b8.js';
|
|
12
12
|
import './_commonjsHelpers-82aa9212.js';
|
|
13
13
|
import './bcm-a50d55ba.js';
|
|
@@ -4,20 +4,19 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-0615c2b8.js';
|
|
6
6
|
import './color-helper-3b528349.js';
|
|
7
|
-
import './
|
|
8
|
-
import { G as Generate } from './generate-
|
|
9
|
-
import './number-helper-
|
|
7
|
+
import './validators-be951131.js';
|
|
8
|
+
import { G as Generate } from './generate-56856b63.js';
|
|
9
|
+
import './number-helper-0501b786.js';
|
|
10
10
|
import './string-helper-3592bdc2.js';
|
|
11
|
-
import './validators-5a383988.js';
|
|
12
11
|
import './element-dragger-89bb52fd.js';
|
|
13
12
|
import { d as delay } from './utils-57652744.js';
|
|
14
13
|
import { F as FloatingUI } from './floating-ui-3f4394da.js';
|
|
15
|
-
import {
|
|
14
|
+
import { a as Bcm } from './bcm-a50d55ba.js';
|
|
16
15
|
import { c as ce } from './index-3bc8c6e3.js';
|
|
17
16
|
import './colors-1d7854ea.js';
|
|
18
17
|
import './colors-c530a5b8.js';
|
|
19
18
|
import './_commonjsHelpers-82aa9212.js';
|
|
20
|
-
import './package-
|
|
19
|
+
import './package-a9b6e2c6.js';
|
|
21
20
|
|
|
22
21
|
const attendanceActionCommentStyle = ce({
|
|
23
22
|
slots: {
|
|
@@ -4,21 +4,20 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-0615c2b8.js';
|
|
6
6
|
import './color-helper-3b528349.js';
|
|
7
|
-
import './
|
|
8
|
-
import { G as Generate } from './generate-
|
|
9
|
-
import './number-helper-
|
|
7
|
+
import './validators-be951131.js';
|
|
8
|
+
import { G as Generate } from './generate-56856b63.js';
|
|
9
|
+
import './number-helper-0501b786.js';
|
|
10
10
|
import './string-helper-3592bdc2.js';
|
|
11
|
-
import './validators-5a383988.js';
|
|
12
11
|
import './element-dragger-89bb52fd.js';
|
|
13
12
|
import { F as FloatingUI } from './floating-ui-3f4394da.js';
|
|
14
|
-
import {
|
|
13
|
+
import { a as Bcm } from './bcm-a50d55ba.js';
|
|
15
14
|
import { c as classnames } from './index-f549811f.js';
|
|
16
15
|
import { c as ce } from './index-3bc8c6e3.js';
|
|
17
16
|
import './colors-1d7854ea.js';
|
|
18
17
|
import './utils-57652744.js';
|
|
19
18
|
import './colors-c530a5b8.js';
|
|
20
19
|
import './_commonjsHelpers-82aa9212.js';
|
|
21
|
-
import './package-
|
|
20
|
+
import './package-a9b6e2c6.js';
|
|
22
21
|
|
|
23
22
|
const attendanceActionDropdownStyle = ce({
|
|
24
23
|
slots: {
|
|
@@ -0,0 +1,325 @@
|
|
|
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-3b528349.js';
|
|
7
|
+
import './validators-be951131.js';
|
|
8
|
+
import { G as Generate } from './generate-56856b63.js';
|
|
9
|
+
import './number-helper-0501b786.js';
|
|
10
|
+
import './string-helper-3592bdc2.js';
|
|
11
|
+
import './element-dragger-89bb52fd.js';
|
|
12
|
+
import { a as Bcm } from './bcm-a50d55ba.js';
|
|
13
|
+
import { c as classnames } from './index-f549811f.js';
|
|
14
|
+
import { c as ce } from './index-3bc8c6e3.js';
|
|
15
|
+
import './colors-1d7854ea.js';
|
|
16
|
+
import './utils-57652744.js';
|
|
17
|
+
import './colors-c530a5b8.js';
|
|
18
|
+
import './_commonjsHelpers-82aa9212.js';
|
|
19
|
+
import './package-a9b6e2c6.js';
|
|
20
|
+
|
|
21
|
+
// --bcm-attendance-actions-button-bg: #F1F5F9; /* slate-100 */
|
|
22
|
+
// --bcm-attendance-actions-button-text: #334155; /* slate-700 */
|
|
23
|
+
// --bcm-attendance-actions-button-border: #CBD5E1; /* slate-300 */
|
|
24
|
+
// --bcm-attendance-actions-button-hover-bg: #E2E8F0; /* slate-200 */
|
|
25
|
+
// --bcm-attendance-actions-button-active-bg: #CBD5E1; /* slate-300 */
|
|
26
|
+
// --bcm-attendance-actions-button-disabled-bg: #CBD5E1; /* slate-300 */
|
|
27
|
+
// --bcm-attendance-actions-button-disabled-text: #64748B; /* slate-500 */
|
|
28
|
+
const attendanceActionStyle = ce({
|
|
29
|
+
slots: {
|
|
30
|
+
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"],
|
|
31
|
+
base: "",
|
|
32
|
+
buttonContainer: "tw-flex tw-flex-row tw-items-center tw-justify-center tw-w-full tw-max-w-[168px]",
|
|
33
|
+
button: [
|
|
34
|
+
"",
|
|
35
|
+
"tw-button-reset",
|
|
36
|
+
"tw-flex-1 last:tw-flex-none",
|
|
37
|
+
"tw-bg-[--bcm-attendance-actions-button-bg]",
|
|
38
|
+
"tw-text-[--bcm-attendance-actions-button-text]",
|
|
39
|
+
"tw-border tw-border-solid tw-border-[--bcm-attendance-actions-button-border]",
|
|
40
|
+
"hover:tw-bg-[--bcm-attendance-actions-button-hover-bg]",
|
|
41
|
+
"active:tw-bg-[--bcm-attendance-actions-button-active-bg]",
|
|
42
|
+
"focus-visible:tw-ring-2 focus-visible:tw-ring-offset-2 focus-visible:tw-z-10",
|
|
43
|
+
"tw-flex tw-flex-row tw-items-center tw-justify-center",
|
|
44
|
+
"first:tw-rounded-l last:tw-rounded-r",
|
|
45
|
+
"tw-font-medium",
|
|
46
|
+
"-tw-ml-[1px] first:tw-ml-0",
|
|
47
|
+
],
|
|
48
|
+
dropdownButton: "",
|
|
49
|
+
mainButton: "",
|
|
50
|
+
commentIcon: "",
|
|
51
|
+
},
|
|
52
|
+
variants: {
|
|
53
|
+
selected: {
|
|
54
|
+
true: {
|
|
55
|
+
button: [
|
|
56
|
+
"tw-text-white tw-border-transparent last:tw-ml-[1px]",
|
|
57
|
+
"first:tw-justify-start",
|
|
58
|
+
],
|
|
59
|
+
mainButton: [
|
|
60
|
+
"tw-min-w-[calc(theme(spacing.12)-1px)]"
|
|
61
|
+
],
|
|
62
|
+
},
|
|
63
|
+
false: {
|
|
64
|
+
button: [
|
|
65
|
+
""
|
|
66
|
+
],
|
|
67
|
+
},
|
|
68
|
+
},
|
|
69
|
+
size: {
|
|
70
|
+
small: {
|
|
71
|
+
button: [
|
|
72
|
+
"tw-text-2",
|
|
73
|
+
"tw-min-h-6",
|
|
74
|
+
"tw-gap-2",
|
|
75
|
+
],
|
|
76
|
+
mainButton: [
|
|
77
|
+
"tw-px-3",
|
|
78
|
+
],
|
|
79
|
+
dropdownButton: [
|
|
80
|
+
"tw-px-2.5"
|
|
81
|
+
],
|
|
82
|
+
},
|
|
83
|
+
medium: {
|
|
84
|
+
button: [
|
|
85
|
+
"tw-text-3",
|
|
86
|
+
"tw-min-h-8",
|
|
87
|
+
"tw-gap-2",
|
|
88
|
+
],
|
|
89
|
+
mainButton: [
|
|
90
|
+
"tw-px-3",
|
|
91
|
+
],
|
|
92
|
+
dropdownButton: [
|
|
93
|
+
"tw-px-2.5"
|
|
94
|
+
],
|
|
95
|
+
},
|
|
96
|
+
large: {
|
|
97
|
+
button: [
|
|
98
|
+
"tw-text-4",
|
|
99
|
+
"tw-min-h-10",
|
|
100
|
+
"tw-gap-2.5",
|
|
101
|
+
],
|
|
102
|
+
mainButton: [
|
|
103
|
+
"tw-px-3",
|
|
104
|
+
],
|
|
105
|
+
dropdownButton: [
|
|
106
|
+
"tw-px-3"
|
|
107
|
+
],
|
|
108
|
+
},
|
|
109
|
+
},
|
|
110
|
+
disabled: {
|
|
111
|
+
true: {},
|
|
112
|
+
false: {}
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
compoundVariants: [
|
|
116
|
+
{
|
|
117
|
+
disabled: true,
|
|
118
|
+
class: {
|
|
119
|
+
buttonContainer: [
|
|
120
|
+
"tw-cursor-not-allowed tw-pointer-events-none",
|
|
121
|
+
],
|
|
122
|
+
button: [
|
|
123
|
+
"tw-cursor-not-allowed",
|
|
124
|
+
"tw-bg-[--bcm-attendance-actions-button-disabled-bg]",
|
|
125
|
+
"tw-text-[--bcm-attendance-actions-button-disabled-text]",
|
|
126
|
+
"tw-border-transparent",
|
|
127
|
+
"hover:tw-bg-[--bcm-attendance-actions-button-disabled-bg]",
|
|
128
|
+
],
|
|
129
|
+
mainButton: [
|
|
130
|
+
"tw-bg-[--bcm-attendance-actions-button-disabled-bg]",
|
|
131
|
+
"tw-text-[--bcm-attendance-actions-button-disabled-text]",
|
|
132
|
+
"tw-border-transparent",
|
|
133
|
+
"hover:tw-bg-[--bcm-attendance-actions-button-disabled-bg]",
|
|
134
|
+
"tw-cursor-not-allowed",
|
|
135
|
+
],
|
|
136
|
+
host: [
|
|
137
|
+
"tw-cursor-not-allowed",
|
|
138
|
+
],
|
|
139
|
+
commentIcon: [
|
|
140
|
+
"tw-cursor-not-allowed tw-pointer-events-none",
|
|
141
|
+
],
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
disabled: false,
|
|
146
|
+
class: {
|
|
147
|
+
button: [
|
|
148
|
+
"tw-cursor-pointer",
|
|
149
|
+
],
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
],
|
|
153
|
+
defaultVariants: {
|
|
154
|
+
selected: false,
|
|
155
|
+
size: "medium",
|
|
156
|
+
disabled: false,
|
|
157
|
+
},
|
|
158
|
+
});
|
|
159
|
+
|
|
160
|
+
const attendanceActionsCss = "";
|
|
161
|
+
|
|
162
|
+
const BcmAttendanceActions = class {
|
|
163
|
+
constructor(hostRef) {
|
|
164
|
+
registerInstance(this, hostRef);
|
|
165
|
+
this.change = createEvent(this, "bcm-attendance-change", 3);
|
|
166
|
+
this._id = Generate.UID();
|
|
167
|
+
this.size = Bcm.Size.medium;
|
|
168
|
+
this.disabled = false;
|
|
169
|
+
this.data = [
|
|
170
|
+
{ key: "P", value: "Present", color: "emerald", icon: "fa-solid fa-check", priority: 0 },
|
|
171
|
+
{ key: "A", value: "Absent", color: "red", icon: "fa-solid fa-times", priority: 1 },
|
|
172
|
+
{ key: "L", value: "Late", color: "amber", icon: "fa-solid fa-clock", priority: 2 },
|
|
173
|
+
{ key: "C", value: "Other Authorised Circumstance", color: "blue", icon: "fa-solid fa-question" },
|
|
174
|
+
{ key: "E", value: "Exlude", color: "blue", icon: "fa-solid fa-minus" },
|
|
175
|
+
{ key: "G", value: "Family Holiday", color: "blue", icon: "fa-solid fa-minus" },
|
|
176
|
+
{ key: "H", value: "Family Holiday (Agreed)", color: "blue", icon: "fa-solid fa-minus" },
|
|
177
|
+
{ key: "I", value: "Illness", color: "blue", icon: "fa-solid fa-minus" },
|
|
178
|
+
{ key: "J", value: "Intervier", color: "blue", icon: "fa-solid fa-minus" },
|
|
179
|
+
{ key: "M", value: "Medical / Dental", color: "blue", icon: "fa-solid fa-minus" },
|
|
180
|
+
{ key: "N", value: "No Reason yet PRovided", color: "blue", icon: "fa-solid fa-minus" },
|
|
181
|
+
{ key: "O", value: "Unauthrised Absence", color: "blue", icon: "fa-solid fa-minus" },
|
|
182
|
+
{ key: "U", value: "Late after Reg. Closed", color: "blue", icon: "fa-solid fa-minus" },
|
|
183
|
+
{ key: "X", value: "Non-comp School Age Absence", color: "blue", icon: "fa-solid fa-minus" },
|
|
184
|
+
];
|
|
185
|
+
this.lateKeys = "L";
|
|
186
|
+
this.hideComment = false;
|
|
187
|
+
}
|
|
188
|
+
get selectedItem() {
|
|
189
|
+
return this.data.find(item => item.selected);
|
|
190
|
+
}
|
|
191
|
+
get priorityButtons() {
|
|
192
|
+
return this.data.filter(item => item.priority !== undefined).sort((a, b) => a.priority - b.priority);
|
|
193
|
+
}
|
|
194
|
+
get renderButtons() {
|
|
195
|
+
const { selectedItem, priorityButtons } = this;
|
|
196
|
+
return [...(selectedItem ? [selectedItem] : priorityButtons.length ? priorityButtons : this.data.slice(0, 3))];
|
|
197
|
+
}
|
|
198
|
+
get lateKeysMap() {
|
|
199
|
+
return this.lateKeys.toLocaleLowerCase().split(",");
|
|
200
|
+
}
|
|
201
|
+
get isLate() {
|
|
202
|
+
var _a, _b;
|
|
203
|
+
return this.lateKeysMap.includes((_b = (_a = this.selectedItem) === null || _a === void 0 ? void 0 : _a.key) === null || _b === void 0 ? void 0 : _b.toLocaleLowerCase());
|
|
204
|
+
}
|
|
205
|
+
get dropdownMenuElement() {
|
|
206
|
+
return document.getElementById("attendance-dropdown-" + this._id);
|
|
207
|
+
}
|
|
208
|
+
get commentAreaElement() {
|
|
209
|
+
return document.getElementById("comment-" + this._id);
|
|
210
|
+
}
|
|
211
|
+
handleSelectItem(item, triggerChange = true, showComment = true) {
|
|
212
|
+
var _a, _b;
|
|
213
|
+
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()) })); })];
|
|
214
|
+
(_a = this.dropdownMenuElement) === null || _a === void 0 ? void 0 : _a.hide();
|
|
215
|
+
(_b = this.commentAreaElement) === null || _b === void 0 ? void 0 : _b.hide();
|
|
216
|
+
if (!this.isLate)
|
|
217
|
+
return triggerChange && this.changed();
|
|
218
|
+
!this.hideComment && showComment && this.commentArea();
|
|
219
|
+
}
|
|
220
|
+
changed() {
|
|
221
|
+
this.change.emit(this.selectedItem);
|
|
222
|
+
}
|
|
223
|
+
hasDataForKey(key) {
|
|
224
|
+
return !!this.data.find(item => item.key.toLocaleLowerCase() === key.toLocaleLowerCase());
|
|
225
|
+
}
|
|
226
|
+
handleKeyPress({ key }) {
|
|
227
|
+
if (!this.hasDataForKey(key))
|
|
228
|
+
return;
|
|
229
|
+
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()); });
|
|
230
|
+
this.handleSelectItem(item);
|
|
231
|
+
}
|
|
232
|
+
handleSave(lateMinutes, comment) {
|
|
233
|
+
this.data = [...this.data].map(item => {
|
|
234
|
+
var _a, _b, _c;
|
|
235
|
+
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())) {
|
|
236
|
+
return Object.assign(Object.assign({}, item), { lateMin: lateMinutes, comment });
|
|
237
|
+
}
|
|
238
|
+
return item;
|
|
239
|
+
});
|
|
240
|
+
this.changed();
|
|
241
|
+
}
|
|
242
|
+
dropdownMenu() {
|
|
243
|
+
var _a;
|
|
244
|
+
const dropdownMenu = Generate.createComponent("bcm-attendance-actions-dropdown", {
|
|
245
|
+
id: "attendance-dropdown-" + this._id,
|
|
246
|
+
size: this.size,
|
|
247
|
+
data: this.data,
|
|
248
|
+
selectedKey: (_a = this.selectedItem) === null || _a === void 0 ? void 0 : _a.key,
|
|
249
|
+
targetId: "attendance-dropdown-button-" + this._id,
|
|
250
|
+
});
|
|
251
|
+
dropdownMenu.addEventListener("bcm-attendance-actions-dropdown-change", ({ detail }) => {
|
|
252
|
+
this.handleSelectItem(detail);
|
|
253
|
+
});
|
|
254
|
+
dropdownMenu.show();
|
|
255
|
+
}
|
|
256
|
+
commentArea() {
|
|
257
|
+
var _a, _b;
|
|
258
|
+
const commentArea = Generate.createComponent("bcm-attendance-actions-comment", {
|
|
259
|
+
id: "comment-" + this._id,
|
|
260
|
+
size: this.size,
|
|
261
|
+
isLate: this.isLate,
|
|
262
|
+
targetId: "comment-area-" + this._id,
|
|
263
|
+
selectedItem: this.selectedItem,
|
|
264
|
+
lateMinutes: (_a = this.selectedItem) === null || _a === void 0 ? void 0 : _a.lateMin,
|
|
265
|
+
comment: (_b = this.selectedItem) === null || _b === void 0 ? void 0 : _b.comment,
|
|
266
|
+
});
|
|
267
|
+
commentArea.addEventListener("bcm-attendance-actions-comment-change", ({ detail }) => {
|
|
268
|
+
this.handleSave(detail.lateMinutes, detail.comment);
|
|
269
|
+
});
|
|
270
|
+
commentArea.show();
|
|
271
|
+
}
|
|
272
|
+
async set(key, triggerChange = true) {
|
|
273
|
+
if (!this.hasDataForKey(key))
|
|
274
|
+
return;
|
|
275
|
+
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()); });
|
|
276
|
+
this.handleSelectItem(item, triggerChange, false);
|
|
277
|
+
}
|
|
278
|
+
async get() {
|
|
279
|
+
return this.selectedItem;
|
|
280
|
+
}
|
|
281
|
+
render() {
|
|
282
|
+
var _a, _b, _c;
|
|
283
|
+
const { selectedItem, renderButtons, disabled, hideComment, size } = this;
|
|
284
|
+
const { host, buttonContainer, button, dropdownButton, commentIcon, mainButton } = attendanceActionStyle({
|
|
285
|
+
selected: !!selectedItem,
|
|
286
|
+
size,
|
|
287
|
+
disabled,
|
|
288
|
+
});
|
|
289
|
+
const buttonStyle = !!selectedItem
|
|
290
|
+
? Generate.getTwColor({
|
|
291
|
+
color: (_a = selectedItem.color) !== null && _a !== void 0 ? _a : "blue",
|
|
292
|
+
tones: {
|
|
293
|
+
600: ["bg"],
|
|
294
|
+
700: ["hover-bg"],
|
|
295
|
+
800: ["active-bg"],
|
|
296
|
+
},
|
|
297
|
+
variable: "--bcm-attendance-actions-button",
|
|
298
|
+
})
|
|
299
|
+
: {};
|
|
300
|
+
const buttonAttributes = {
|
|
301
|
+
class: classnames(button(), mainButton()),
|
|
302
|
+
style: Object.assign({}, buttonStyle),
|
|
303
|
+
disabled,
|
|
304
|
+
type: "button",
|
|
305
|
+
};
|
|
306
|
+
const iconButtonAttributes = Object.assign(Object.assign({}, buttonAttributes), { class: classnames(button(), dropdownButton()) });
|
|
307
|
+
const isShowCommentIcon = !hideComment && !!selectedItem;
|
|
308
|
+
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) ` : ""}` : "";
|
|
309
|
+
return (h(Host, { class: host(), onKeyPress: this.handleKeyPress.bind(this) }, h("div", { class: buttonContainer() }, renderButtons === null || renderButtons === void 0 ? void 0 :
|
|
310
|
+
renderButtons.map(item => {
|
|
311
|
+
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)));
|
|
312
|
+
}), 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(), {
|
|
313
|
+
"tw-cursor-default": !isShowCommentIcon,
|
|
314
|
+
"tw-cursor-pointer": isShowCommentIcon,
|
|
315
|
+
}), onClick: () => isShowCommentIcon && this.commentArea() }, h("i", { title: isShowCommentIcon ? commentTooltip : "", class: classnames("fa-solid fa-comment", {
|
|
316
|
+
"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)),
|
|
317
|
+
"tw-visible": isShowCommentIcon,
|
|
318
|
+
"tw-invisible": !isShowCommentIcon,
|
|
319
|
+
}) }))));
|
|
320
|
+
}
|
|
321
|
+
get el() { return getElement(this); }
|
|
322
|
+
};
|
|
323
|
+
BcmAttendanceActions.style = attendanceActionsCss;
|
|
324
|
+
|
|
325
|
+
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-56856b63.js';
|
|
7
|
+
import './package-a9b6e2c6.js';
|
|
8
|
+
import './colors-c530a5b8.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` }, 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` }, 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 };
|