bromcom-ui 2.10.1-rc.9 → 2.11.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-cc556e65.entry.js → p-01c26454.entry.js} +1 -1
- package/dist/bromcom-ui/{p-086cda42.entry.js → p-02b30a5c.entry.js} +1 -1
- package/dist/bromcom-ui/{p-7c5763cc.entry.js → p-03337609.entry.js} +1 -1
- package/dist/bromcom-ui/{p-6edf985f.js → p-034bbcdd.js} +1 -1
- package/dist/bromcom-ui/{p-8d16573c.entry.js → p-0511936c.entry.js} +1 -1
- package/dist/bromcom-ui/p-092f751e.js +5 -0
- package/dist/bromcom-ui/{p-430c0a24.entry.js → p-0efc9196.entry.js} +1 -1
- package/dist/bromcom-ui/{p-c1a992e7.entry.js → p-107f11df.entry.js} +1 -1
- package/dist/bromcom-ui/{p-d706b0bd.entry.js → p-13f868f7.entry.js} +1 -1
- package/dist/bromcom-ui/{p-39134670.entry.js → p-15302481.entry.js} +1 -1
- package/dist/bromcom-ui/{p-a9769aef.entry.js → p-17821ee9.entry.js} +1 -1
- package/dist/bromcom-ui/{p-7d18ce0e.entry.js → p-181f2f4a.entry.js} +1 -1
- package/dist/bromcom-ui/{p-2aaeb247.entry.js → p-188b9079.entry.js} +1 -1
- package/dist/bromcom-ui/{p-26290ed5.entry.js → p-18bc4e04.entry.js} +1 -1
- package/dist/bromcom-ui/{p-eb2c11e0.js → p-1920c1cd.js} +1 -1
- package/dist/bromcom-ui/{p-74e6d2b6.js → p-197aba37.js} +1 -1
- package/dist/bromcom-ui/{p-a664cc20.entry.js → p-1a33d7a3.entry.js} +1 -1
- package/dist/bromcom-ui/{p-fff1a0f9.entry.js → p-1e8559ac.entry.js} +1 -1
- package/dist/bromcom-ui/{p-8839e454.entry.js → p-258aca86.entry.js} +1 -1
- package/dist/bromcom-ui/{p-f327dd16.entry.js → p-2c4e5bb2.entry.js} +1 -1
- package/dist/bromcom-ui/{p-4c30ce4b.entry.js → p-2d776ab1.entry.js} +1 -1
- package/dist/bromcom-ui/{p-e32e4c09.entry.js → p-2fad0385.entry.js} +1 -1
- package/dist/bromcom-ui/p-3182df7e.js +10 -0
- package/dist/bromcom-ui/p-37565993.entry.js +5 -0
- package/dist/bromcom-ui/{p-b04dbde5.entry.js → p-396ef644.entry.js} +1 -1
- package/dist/bromcom-ui/{p-67343ad8.entry.js → p-3b079331.entry.js} +1 -1
- package/dist/bromcom-ui/p-3b30d329.entry.js +5 -0
- package/dist/bromcom-ui/{p-81a2c866.js → p-3b5a6c8e.js} +1 -1
- package/dist/bromcom-ui/{p-7cf44256.entry.js → p-3b643e9a.entry.js} +1 -1
- package/dist/bromcom-ui/{p-73789dbb.entry.js → p-3b7ac787.entry.js} +1 -1
- package/dist/bromcom-ui/{p-b4e67a0b.js → p-3bb8785d.js} +1 -1
- package/dist/bromcom-ui/p-3c4fbed6.entry.js +5 -0
- package/dist/bromcom-ui/{p-8c018ae0.js → p-3c7a0345.js} +1 -1
- package/dist/bromcom-ui/{p-f824e6bb.entry.js → p-422e697d.entry.js} +1 -1
- package/dist/bromcom-ui/{p-14cafd64.entry.js → p-4438d629.entry.js} +1 -1
- package/dist/bromcom-ui/{p-5699f67d.entry.js → p-468157a0.entry.js} +1 -1
- package/dist/bromcom-ui/{p-61db1f1f.js → p-4798d827.js} +1 -1
- package/dist/bromcom-ui/{p-69260d36.entry.js → p-48f5a3c9.entry.js} +1 -1
- package/dist/bromcom-ui/{p-d2b358ae.js → p-4a540b56.js} +1 -1
- package/dist/bromcom-ui/{p-ec2688a7.entry.js → p-4c2ecca2.entry.js} +1 -1
- package/dist/bromcom-ui/{p-ece578ef.entry.js → p-4d7ea23c.entry.js} +1 -1
- package/dist/bromcom-ui/{p-51b6a14a.entry.js → p-4ded5e14.entry.js} +1 -1
- package/dist/bromcom-ui/p-4e40be76.entry.js +5 -0
- package/dist/bromcom-ui/p-4f96ee59.entry.js +5 -0
- package/dist/bromcom-ui/p-505709c6.entry.js +5 -0
- package/dist/bromcom-ui/p-5436ddd6.js +5 -0
- package/dist/bromcom-ui/{p-7e44e6b5.js → p-5ae0a59b.js} +1 -1
- package/dist/bromcom-ui/p-5ea9881d.entry.js +5 -0
- package/dist/bromcom-ui/{p-f0a6db76.entry.js → p-62370fd0.entry.js} +1 -1
- package/dist/bromcom-ui/{p-d551a51d.entry.js → p-63138ee5.entry.js} +1 -1
- package/dist/bromcom-ui/{p-7a2ea416.entry.js → p-66964e5c.entry.js} +1 -1
- package/dist/bromcom-ui/{p-2f46157a.entry.js → p-687ea920.entry.js} +1 -1
- package/dist/bromcom-ui/p-6bea3bea.js +5 -0
- package/dist/bromcom-ui/{p-19f27bd8.entry.js → p-6de81bd3.entry.js} +1 -1
- package/dist/bromcom-ui/{p-ba9eff2a.entry.js → p-6e7bb16f.entry.js} +1 -1
- package/dist/bromcom-ui/p-6f11eb8e.entry.js +5 -0
- package/dist/bromcom-ui/{p-0a7346a7.entry.js → p-70b34e79.entry.js} +1 -1
- package/dist/bromcom-ui/p-73f5c339.entry.js +5 -0
- package/dist/bromcom-ui/p-76edf59f.js +7 -0
- package/dist/bromcom-ui/p-77035c08.entry.js +5 -0
- package/dist/bromcom-ui/{p-4bcb29c3.entry.js → p-79007b75.entry.js} +1 -1
- package/dist/bromcom-ui/{p-626b805d.entry.js → p-7a89243a.entry.js} +1 -1
- package/dist/bromcom-ui/{p-d65c93dd.entry.js → p-7aa06da2.entry.js} +1 -1
- package/dist/bromcom-ui/{p-84ff5d64.entry.js → p-7af84928.entry.js} +1 -1
- package/dist/bromcom-ui/p-7e3209a0.js +14 -0
- package/dist/bromcom-ui/{p-a25c8a55.js → p-8a92f2bf.js} +1 -1
- package/dist/bromcom-ui/{p-ce45a5a0.entry.js → p-8d4654ed.entry.js} +1 -1
- package/dist/bromcom-ui/{p-9850cbce.js → p-8e5e362a.js} +1 -1
- package/dist/bromcom-ui/{p-157359d6.js → p-94554e42.js} +1 -1
- package/dist/bromcom-ui/{p-1c801d0c.entry.js → p-95a2c489.entry.js} +1 -1
- package/dist/bromcom-ui/{p-8af69fbb.entry.js → p-964b3343.entry.js} +1 -1
- package/dist/bromcom-ui/{p-78ace67b.entry.js → p-a3960507.entry.js} +1 -1
- package/dist/bromcom-ui/{p-4e577842.entry.js → p-a3ce764f.entry.js} +1 -1
- package/dist/bromcom-ui/{p-377eec7f.entry.js → p-aa22dd85.entry.js} +1 -1
- package/dist/bromcom-ui/p-ad359555.entry.js +5 -0
- package/dist/bromcom-ui/p-ada3eed7.entry.js +5 -0
- package/dist/bromcom-ui/{p-6bbedf32.entry.js → p-aee35345.entry.js} +1 -1
- package/dist/bromcom-ui/{p-da0a6963.entry.js → p-b701b3aa.entry.js} +1 -1
- package/dist/bromcom-ui/{p-8ea1d342.entry.js → p-b851dcc2.entry.js} +1 -1
- package/dist/bromcom-ui/p-ba2ddaf6.js +5 -0
- package/dist/bromcom-ui/{p-5c671967.entry.js → p-bca72f17.entry.js} +1 -1
- package/dist/bromcom-ui/{p-d82d0c57.entry.js → p-bd6c967c.entry.js} +1 -1
- package/dist/bromcom-ui/p-bed627ab.js +11 -0
- package/dist/bromcom-ui/{p-f1829cae.entry.js → p-c439cb60.entry.js} +1 -1
- package/dist/bromcom-ui/p-c926e138.js +5 -0
- package/dist/bromcom-ui/{p-ea18d38d.entry.js → p-cad2f118.entry.js} +1 -1
- package/dist/bromcom-ui/{p-d0c1fcc5.entry.js → p-ccb3c2e2.entry.js} +1 -1
- package/dist/bromcom-ui/{p-c1b1c0b4.entry.js → p-cd75feb9.entry.js} +1 -1
- package/dist/bromcom-ui/p-dbc66238.js +5 -0
- package/dist/bromcom-ui/{p-40b85b9b.entry.js → p-dbea0599.entry.js} +1 -1
- package/dist/bromcom-ui/{p-769facbd.entry.js → p-dd1a1d12.entry.js} +1 -1
- package/dist/bromcom-ui/{p-170cf07d.js → p-e037ee2b.js} +1 -1
- package/dist/bromcom-ui/p-e082074a.entry.js +5 -0
- package/dist/bromcom-ui/p-e0a4da6d.entry.js +5 -0
- package/dist/bromcom-ui/{p-1c9314bd.entry.js → p-e32ab4da.entry.js} +1 -1
- package/dist/bromcom-ui/{p-85eedabc.js → p-e45c1546.js} +1 -1
- package/dist/bromcom-ui/p-e4ab4af0.entry.js +5 -0
- package/dist/bromcom-ui/p-e4b42f26.js +5 -0
- package/dist/bromcom-ui/p-e70821f7.entry.js +5 -0
- package/dist/bromcom-ui/{p-66929631.entry.js → p-e76bfd6b.entry.js} +1 -1
- package/dist/bromcom-ui/p-e920c9b9.entry.js +5 -0
- package/dist/bromcom-ui/{p-bc0e11d2.entry.js → p-eb4362ac.entry.js} +1 -1
- package/dist/bromcom-ui/{p-125d6ed0.js → p-ed9d082d.js} +1 -1
- package/dist/bromcom-ui/{p-c285ac3e.entry.js → p-f0177251.entry.js} +1 -1
- package/dist/bromcom-ui/p-f037abec.entry.js +5 -0
- package/dist/bromcom-ui/{p-b50bee51.entry.js → p-f2aca650.entry.js} +1 -1
- package/dist/bromcom-ui/{p-c658e7f0.entry.js → p-f3246837.entry.js} +1 -1
- package/dist/bromcom-ui/{p-7b02eb85.entry.js → p-f33d8f77.entry.js} +1 -1
- package/dist/bromcom-ui/{p-c40a820f.entry.js → p-f3423d98.entry.js} +1 -1
- package/dist/bromcom-ui/p-f5958c67.entry.js +5 -0
- package/dist/bromcom-ui/p-f650fed9.entry.js +5 -0
- package/dist/bromcom-ui/{p-6a6c51e1.entry.js → p-f68c1b66.entry.js} +1 -1
- package/dist/bromcom-ui/{p-99824717.entry.js → p-f9119bec.entry.js} +1 -1
- package/dist/bromcom-ui/p-f93bcd16.entry.js +5 -0
- package/dist/bromcom-ui/{p-eab01ad5.entry.js → p-fd1c3951.entry.js} +1 -1
- package/dist/bromcom-ui/p-fe22cf19.entry.js +5 -0
- package/dist/cjs/bcm-accordion.cjs.entry.js +2 -2
- package/dist/cjs/bcm-alert.cjs.entry.js +2 -2
- package/dist/cjs/bcm-attendance-actions-comment.cjs.entry.js +140 -0
- package/dist/cjs/bcm-attendance-actions-dropdown.cjs.entry.js +101 -0
- package/dist/cjs/bcm-attendance-actions.cjs.entry.js +330 -0
- package/dist/cjs/bcm-attendance.cjs.entry.js +2 -2
- package/dist/cjs/bcm-avatar_2.cjs.entry.js +4 -4
- package/dist/cjs/bcm-breadcrumb.cjs.entry.js +2 -2
- package/dist/cjs/bcm-button-group.cjs.entry.js +2 -2
- 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 +2 -2
- package/dist/cjs/bcm-checkbox-lite_9.cjs.entry.js +2 -2
- 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 +2 -2
- package/dist/cjs/bcm-collapse.cjs.entry.js +2 -2
- package/dist/cjs/bcm-color-input.cjs.entry.js +4 -4
- package/dist/cjs/bcm-colorful_2.cjs.entry.js +17440 -0
- package/dist/cjs/bcm-date-picker.cjs.entry.js +2 -2
- package/dist/cjs/bcm-date.cjs.entry.js +182 -0
- package/dist/cjs/bcm-datetime-picker.cjs.entry.js +3 -3
- package/dist/cjs/bcm-default.cjs.entry.js +2 -2
- package/dist/cjs/bcm-drawer.cjs.entry.js +4 -4
- package/dist/cjs/bcm-dropdown.cjs.entry.js +3 -3
- package/dist/cjs/bcm-expansion-panel.cjs.entry.js +2 -2
- package/dist/cjs/bcm-form-2.cjs.entry.js +2 -2
- package/dist/cjs/bcm-form.cjs.entry.js +492 -0
- package/dist/cjs/bcm-icon.cjs.entry.js +39 -0
- 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 +2 -2
- package/dist/cjs/bcm-items.cjs.entry.js +2 -2
- package/dist/cjs/bcm-label_2.cjs.entry.js +135 -0
- package/dist/cjs/bcm-list_3.cjs.entry.js +2544 -0
- package/dist/cjs/bcm-menu.cjs.entry.js +5 -5
- 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 +2 -2
- package/dist/cjs/bcm-number-input.cjs.entry.js +4 -4
- package/dist/cjs/bcm-old-input.cjs.entry.js +1 -1
- package/dist/cjs/bcm-popconfirm-box.cjs.entry.js +2 -2
- package/dist/cjs/bcm-popconfirm.cjs.entry.js +2 -2
- package/dist/cjs/bcm-popover.cjs.entry.js +4 -4
- package/dist/cjs/bcm-progress.cjs.entry.js +2 -2
- package/dist/cjs/bcm-radio-group.cjs.entry.js +4 -4
- package/dist/cjs/bcm-radio.cjs.entry.js +4 -4
- package/dist/cjs/bcm-range.cjs.entry.js +3 -3
- package/dist/cjs/bcm-rc-picker.cjs.entry.js +9391 -0
- package/dist/cjs/bcm-shortcut.cjs.entry.js +4 -4
- package/dist/cjs/bcm-skeleton.cjs.entry.js +4 -4
- package/dist/cjs/bcm-step.cjs.entry.js +3 -3
- package/dist/cjs/bcm-stepper.cjs.entry.js +5 -5
- package/dist/cjs/bcm-switch.cjs.entry.js +151 -0
- package/dist/cjs/bcm-tab-group.cjs.entry.js +4 -4
- package/dist/cjs/bcm-tab-item-header.cjs.entry.js +4 -4
- package/dist/cjs/bcm-tab-item.cjs.entry.js +4 -4
- package/dist/cjs/bcm-table.cjs.entry.js +4 -4
- package/dist/cjs/bcm-tag.cjs.entry.js +3 -3
- 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-a89cbf95.js → generate-183405cb.js} +4 -12
- package/dist/cjs/{global-12727d81.js → global-4a756c02.js} +1 -1
- package/dist/cjs/index-3d67f613.js +1610 -0
- package/dist/cjs/index-e05a7c6f.js +545 -0
- package/dist/cjs/{input-template-aed0898b.js → input-template-e36927b1.js} +1 -1
- package/dist/cjs/{json-parse-decarator-f6d01750.js → json-parse-decarator-4c1f74bb.js} +1 -1
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/moment-d06b012f.js +4601 -0
- package/dist/cjs/{number-helper-ed1167a6.js → number-helper-ca52fadf.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-e3618032.js → package-4c68d5f8.js} +1 -1
- package/dist/cjs/{stepper-states-5cde5a5b.js → stepper-states-f97c457a.js} +1 -1
- package/dist/cjs/{tooltip-helper-8e999092.js → tooltip-helper-83971814.js} +3 -3
- package/dist/cjs/{validators-ca50c59e.js → validators-a31b53a5.js} +1 -1
- package/dist/collection/collection-manifest.json +3 -0
- package/dist/collection/components/atoms/label/label.js +1 -1
- package/dist/collection/components/molecules/linked/linked.js +23 -0
- package/dist/collection/components/molecules/range/range.js +1 -1
- package/dist/collection/components/organism/datetime-picker/datetime-picker.css +47 -0
- package/dist/collection/components/organism/form/form.js +9 -0
- package/dist/collection/components/organism/list/list.js +1 -1
- package/dist/collection/components/other/attendance-actions/attendance-actions-comment.js +317 -0
- package/dist/collection/components/other/attendance-actions/attendance-actions-comment.style.js +27 -0
- package/dist/collection/components/other/attendance-actions/attendance-actions-dropdown.js +253 -0
- package/dist/collection/components/other/attendance-actions/attendance-actions-dropdown.style.js +34 -0
- package/dist/collection/components/other/attendance-actions/attendance-actions.css +0 -0
- package/dist/collection/components/other/attendance-actions/attendance-actions.js +363 -0
- package/dist/collection/components/other/attendance-actions/attendance-actions.style.js +143 -0
- package/dist/collection/components/other_deprecated/old-input/old-input.css +47 -0
- package/dist/collection/helper/generate.js +3 -11
- package/dist/components/avatar.js +1 -1
- package/dist/components/badge.js +1 -1
- package/dist/components/bcm-attendance-actions-comment.d.ts +11 -0
- package/dist/components/bcm-attendance-actions-comment.js +213 -0
- package/dist/components/bcm-attendance-actions-dropdown.d.ts +11 -0
- package/dist/components/bcm-attendance-actions-dropdown.js +118 -0
- package/dist/components/bcm-attendance-actions.d.ts +11 -0
- package/dist/components/bcm-attendance-actions.js +346 -0
- package/dist/components/bcm-button-group.js +1 -1
- package/dist/components/bcm-caption.js +1 -1
- package/dist/components/bcm-checkbox-group.js +1 -1
- package/dist/components/bcm-chip-group.js +1 -1
- package/dist/components/bcm-date-picker.js +1 -1
- package/dist/components/bcm-date.js +1 -1
- package/dist/components/bcm-drawer.js +1 -1
- package/dist/components/bcm-dropdown.js +1 -1
- package/dist/components/bcm-form-2.js +1 -1
- package/dist/components/bcm-form.js +1 -504
- package/dist/components/bcm-input-dropdown.js +1 -1
- package/dist/components/bcm-item.js +1 -1
- package/dist/components/bcm-modal-2.js +1 -1
- package/dist/components/bcm-modal.js +1 -1
- package/dist/components/bcm-number-input.js +1 -1
- package/dist/components/bcm-popconfirm.js +1 -1
- package/dist/components/bcm-popover.js +1 -1
- package/dist/components/bcm-progress.js +1 -1
- package/dist/components/bcm-radio-group.js +1 -1
- package/dist/components/bcm-range.js +2 -2
- package/dist/components/bcm-shortcut.js +1 -1
- package/dist/components/bcm-stepper.js +1 -1
- package/dist/components/bcm-switch.js +1 -1
- package/dist/components/bcm-tab-group.js +1 -1
- package/dist/components/bcm-tab-item-header.js +1 -1
- package/dist/components/bcm-tag.js +1 -1
- package/dist/components/bcm-time-picker.js +1 -1
- package/dist/components/bcm-toast.js +1 -1
- package/dist/components/bcm.js +1 -1
- package/dist/components/button.js +1 -1
- package/dist/components/checkbox-lite.js +1 -1
- package/dist/components/checkbox.js +1 -1
- package/dist/components/datetime-picker.js +2 -2
- package/dist/components/divider.js +1 -1
- package/dist/components/floating-ui.js +1 -1
- package/dist/components/form.js +513 -0
- package/dist/components/generate.js +4 -12
- package/dist/components/index.d.ts +3 -0
- package/dist/components/index.js +3 -0
- package/dist/components/input-template.js +1 -1
- package/dist/components/input.js +1 -1
- package/dist/components/label.js +2 -2
- package/dist/components/link.js +1 -1
- package/dist/components/linked.js +7 -1
- package/dist/components/list.js +2 -2
- package/dist/components/old-bcm-popover.js +1 -1
- package/dist/components/old-input.js +1 -1
- package/dist/components/radio.js +1 -1
- package/dist/components/rc-picker.js +1 -1
- package/dist/components/search.js +1 -1
- package/dist/components/string-helper.js +1 -1
- package/dist/components/textarea.js +1 -1
- package/dist/components/tooltip-helper.js +1 -1
- package/dist/components/tooltip.js +1 -1
- package/dist/esm/{_commonjsHelpers-7002e5de.js → _commonjsHelpers-be0d4ec8.js} +1 -1
- package/dist/esm/bcm-accordion.entry.js +5 -5
- package/dist/esm/bcm-alert.entry.js +8 -8
- package/dist/esm/bcm-attendance-actions-comment.entry.js +136 -0
- package/dist/esm/bcm-attendance-actions-dropdown.entry.js +97 -0
- package/dist/esm/bcm-attendance-actions.entry.js +326 -0
- package/dist/esm/bcm-attendance.entry.js +5 -5
- package/dist/esm/bcm-autocomplete.entry.js +3 -3
- package/dist/esm/bcm-avatar_2.entry.js +11 -11
- package/dist/esm/bcm-box.entry.js +1 -1
- package/dist/esm/bcm-breadcrumb.entry.js +6 -6
- package/dist/esm/bcm-button-group.entry.js +7 -7
- package/dist/esm/bcm-button.entry.js +368 -0
- package/dist/esm/bcm-caption.entry.js +13 -13
- package/dist/esm/bcm-card.entry.js +10 -10
- package/dist/esm/bcm-checkbox-group.entry.js +10 -10
- package/dist/esm/bcm-checkbox-lite_9.entry.js +7 -7
- package/dist/esm/bcm-checkbox_2.entry.js +189 -0
- package/dist/esm/bcm-chip-group.entry.js +14 -14
- package/dist/esm/bcm-chip.entry.js +8 -8
- package/dist/esm/bcm-collapse-group.entry.js +2 -2
- package/dist/esm/bcm-collapse.entry.js +6 -6
- package/dist/esm/bcm-color-input.entry.js +11 -11
- package/dist/esm/bcm-colorful_2.entry.js +17435 -0
- package/dist/esm/bcm-colorpicker.entry.js +5 -5
- package/dist/esm/bcm-content.entry.js +1 -1
- package/dist/esm/bcm-date-picker.entry.js +8 -8
- package/dist/esm/bcm-date.entry.js +178 -0
- package/dist/esm/bcm-datetime-picker.entry.js +13 -13
- package/dist/esm/bcm-default.entry.js +5 -5
- package/dist/esm/bcm-drawer.entry.js +12 -12
- package/dist/esm/bcm-dropdown.entry.js +8 -8
- package/dist/esm/bcm-error-layout.entry.js +3 -3
- package/dist/esm/bcm-expansion-panel.entry.js +9 -9
- package/dist/esm/bcm-form-2.entry.js +7 -7
- package/dist/esm/bcm-form-group.entry.js +1 -1
- package/dist/esm/bcm-form.entry.js +488 -0
- package/dist/esm/bcm-icon.entry.js +35 -0
- package/dist/esm/bcm-input-custom.entry.js +6 -6
- package/dist/esm/bcm-input-dropdown.entry.js +13 -13
- package/dist/esm/bcm-input_2.entry.js +545 -0
- package/dist/esm/bcm-item.entry.js +8 -8
- package/dist/esm/bcm-items.entry.js +6 -6
- package/dist/esm/bcm-label_2.entry.js +130 -0
- package/dist/esm/bcm-link.entry.js +3 -3
- package/dist/esm/bcm-list_3.entry.js +2538 -0
- package/dist/esm/bcm-menu.entry.js +14 -14
- package/dist/esm/bcm-message.entry.js +3 -3
- package/dist/esm/bcm-modal-2-footer.entry.js +12 -12
- package/dist/esm/bcm-modal-2-header.entry.js +11 -11
- package/dist/esm/bcm-modal-2.entry.js +12 -12
- package/dist/esm/bcm-modal.entry.js +8 -8
- package/dist/esm/bcm-notification.entry.js +3 -3
- package/dist/esm/bcm-number-input.entry.js +13 -13
- package/dist/esm/bcm-old-input.entry.js +6 -6
- package/dist/esm/bcm-old-tag_2.entry.js +4 -4
- package/dist/esm/bcm-overlay_2.entry.js +4 -4
- package/dist/esm/bcm-popconfirm-box.entry.js +10 -10
- package/dist/esm/bcm-popconfirm.entry.js +6 -6
- package/dist/esm/bcm-popover.entry.js +11 -11
- package/dist/esm/bcm-progress.entry.js +8 -8
- package/dist/esm/bcm-radio-group.entry.js +14 -14
- package/dist/esm/bcm-radio.entry.js +12 -12
- package/dist/esm/bcm-range.entry.js +8 -8
- package/dist/esm/bcm-rc-picker.entry.js +9387 -0
- package/dist/esm/bcm-result.entry.js +3 -3
- package/dist/esm/bcm-select-group.entry.js +3 -3
- package/dist/esm/bcm-select-option.entry.js +3 -3
- package/dist/esm/bcm-select.entry.js +5 -5
- package/dist/esm/bcm-shortcut.entry.js +12 -12
- package/dist/esm/bcm-skeleton.entry.js +11 -11
- package/dist/esm/bcm-step.entry.js +8 -8
- package/dist/esm/bcm-stepper.entry.js +14 -14
- package/dist/esm/bcm-switch.entry.js +147 -0
- package/dist/esm/bcm-tab-group.entry.js +11 -11
- package/dist/esm/bcm-tab-item-header.entry.js +12 -12
- package/dist/esm/bcm-tab-item.entry.js +11 -11
- package/dist/esm/bcm-tab-pane.entry.js +3 -3
- package/dist/esm/bcm-tab.entry.js +3 -3
- package/dist/esm/bcm-table.entry.js +12 -12
- package/dist/esm/bcm-tabs-content.entry.js +4 -4
- package/dist/esm/bcm-tabs.entry.js +4 -4
- package/dist/esm/bcm-tag.entry.js +8 -8
- package/dist/esm/bcm-text.entry.js +8 -8
- package/dist/esm/bcm-time-picker.entry.js +8 -8
- package/dist/esm/bcm-timeline-item.entry.js +3 -3
- package/dist/esm/bcm-timeline.entry.js +3 -3
- package/dist/esm/bcm-toast.entry.js +8 -8
- package/dist/esm/bcm-treeview-group.entry.js +1 -1
- package/dist/esm/bromcom-ui.js +5 -5
- package/dist/esm/{caption-template-0c32ce16.js → caption-template-b5210fba.js} +2 -2
- package/dist/esm/{color-helper-845ba523.js → color-helper-c4fa9ebc.js} +2 -2
- package/dist/esm/{colors-ebea297f.js → colors-e1c31f79.js} +1 -1
- package/dist/esm/{element-dragger-89bb52fd.js → element-dragger-7ea06c76.js} +1 -1
- package/dist/esm/{generate-f51f2b02.js → generate-ea4b5630.js} +5 -13
- package/dist/esm/{global-d1c1614b.js → global-8fd9695e.js} +2 -2
- package/dist/esm/{index-0615c2b8.js → index-4614b7f0.js} +1 -1
- package/dist/esm/index-a6d9d0af.js +541 -0
- package/dist/esm/{index-00c8a8f7.js → index-b84bc8c9.js} +1 -1
- package/dist/esm/index-c4568336.js +1594 -0
- package/dist/esm/{index-7e71bbc8.js → index-f38e3364.js} +1 -1
- package/dist/esm/{input-template-43cf6972.js → input-template-2ac3ec12.js} +3 -3
- package/dist/esm/{is-load-decorator-8277e3b8.js → is-load-decorator-b8ca22f2.js} +1 -1
- package/dist/esm/{json-parse-decarator-05d60871.js → json-parse-decarator-c5e5dae7.js} +2 -2
- package/dist/esm/{label-template-ad2e8119.js → label-template-b2e8f81d.js} +2 -2
- package/dist/esm/loader.js +5 -5
- package/dist/esm/moment-15cd9198.js +4598 -0
- package/dist/esm/{number-helper-96513ada.js → number-helper-148cd002.js} +1 -1
- package/dist/esm/old-bcm-popover-box.entry.js +11 -11
- package/dist/esm/old-bcm-popover.entry.js +6 -6
- package/dist/esm/{package-ebccec3c.js → package-b6a53fde.js} +1 -1
- package/dist/esm/{popover-placement-279ce860.js → popover-placement-e6ed184e.js} +1 -1
- package/dist/esm/{slot-template-9234df88.js → slot-template-481a5ac5.js} +2 -2
- package/dist/esm/{stepper-states-0860f554.js → stepper-states-f02df67c.js} +3 -3
- package/dist/esm/{string-helper-8f5da9ec.js → string-helper-3526c4fe.js} +1 -1
- package/dist/esm/{tooltip-helper-ab4dde34.js → tooltip-helper-4b53b00b.js} +7 -7
- package/dist/esm/{utils-57652744.js → utils-b3338faf.js} +1 -1
- package/dist/esm/{validators-f9fdca63.js → validators-78ec4f0a.js} +1 -1
- package/dist/types/components/molecules/linked/linked.d.ts +1 -0
- package/dist/types/components/organism/form/form.d.ts +1 -0
- package/dist/types/components/organism/list/list.d.ts +1 -1
- package/dist/types/components/other/attendance-actions/attendance-actions-comment.d.ts +24 -0
- package/dist/types/components/other/attendance-actions/attendance-actions-comment.style.d.ts +52 -0
- package/dist/types/components/other/attendance-actions/attendance-actions-dropdown.d.ts +18 -0
- package/dist/types/components/other/attendance-actions/attendance-actions-dropdown.style.d.ts +100 -0
- package/dist/types/components/other/attendance-actions/attendance-actions.d.ts +29 -0
- package/dist/types/components/other/attendance-actions/attendance-actions.style.d.ts +242 -0
- package/dist/types/components.d.ts +104 -0
- package/dist/types/helper/generate.d.ts +1 -1
- package/dist/types/models/bcm.d.ts +4 -0
- package/package.json +1 -1
- package/dist/bromcom-ui/p-000670b6.js +0 -5
- package/dist/bromcom-ui/p-1c26a0c1.js +0 -5
- package/dist/bromcom-ui/p-1e8ba7b1.js +0 -5
- package/dist/bromcom-ui/p-228c74e9.entry.js +0 -5
- package/dist/bromcom-ui/p-366262cb.entry.js +0 -5
- package/dist/bromcom-ui/p-48a57eb6.entry.js +0 -5
- package/dist/bromcom-ui/p-56655c71.js +0 -5
- package/dist/bromcom-ui/p-64fad38b.js +0 -11
- package/dist/bromcom-ui/p-6fe10a4c.entry.js +0 -21
- package/dist/bromcom-ui/p-761208cf.entry.js +0 -5
- package/dist/bromcom-ui/p-8348f7e8.entry.js +0 -5
- package/dist/bromcom-ui/p-9f886bdd.js +0 -5
- package/dist/bromcom-ui/p-a0d60a3c.js +0 -5
- package/dist/bromcom-ui/p-a55d0baf.entry.js +0 -5
- package/dist/bromcom-ui/p-abc44b58.entry.js +0 -5
- package/dist/bromcom-ui/p-ae57f046.entry.js +0 -5
- package/dist/bromcom-ui/p-ed3b97b0.entry.js +0 -5
- package/dist/bromcom-ui/p-f800e665.js +0 -5
- package/dist/bromcom-ui/p-fe585083.entry.js +0 -5
- package/dist/cjs/bcm-button_15.cjs.entry.js +0 -37832
- package/dist/cjs/bcm-textarea.cjs.entry.js +0 -163
- package/dist/cjs/bcm-typography.cjs.entry.js +0 -21
- package/dist/esm/bcm-button_15.entry.js +0 -37814
- package/dist/esm/bcm-textarea.entry.js +0 -159
- package/dist/esm/bcm-typography.entry.js +0 -17
|
@@ -0,0 +1,346 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Stencil
|
|
3
|
+
* Copyright (c) Bromcom.
|
|
4
|
+
*/
|
|
5
|
+
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
6
|
+
import './color-helper.js';
|
|
7
|
+
import './validators.js';
|
|
8
|
+
import { G as Generate } from './generate.js';
|
|
9
|
+
import './number-helper.js';
|
|
10
|
+
import './string-helper.js';
|
|
11
|
+
import './element-dragger.js';
|
|
12
|
+
import { B as Bcm } from './bcm.js';
|
|
13
|
+
import { c as classnames } from './index2.js';
|
|
14
|
+
import { c as ce } from './index5.js';
|
|
15
|
+
|
|
16
|
+
// --bcm-attendance-actions-button-bg: #F1F5F9; /* slate-100 */
|
|
17
|
+
// --bcm-attendance-actions-button-text: #334155; /* slate-700 */
|
|
18
|
+
// --bcm-attendance-actions-button-border: #CBD5E1; /* slate-300 */
|
|
19
|
+
// --bcm-attendance-actions-button-hover-bg: #E2E8F0; /* slate-200 */
|
|
20
|
+
// --bcm-attendance-actions-button-active-bg: #CBD5E1; /* slate-300 */
|
|
21
|
+
// --bcm-attendance-actions-button-disabled-bg: #CBD5E1; /* slate-300 */
|
|
22
|
+
// --bcm-attendance-actions-button-disabled-text: #64748B; /* slate-500 */
|
|
23
|
+
const attendanceActionStyle = ce({
|
|
24
|
+
slots: {
|
|
25
|
+
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"],
|
|
26
|
+
base: "",
|
|
27
|
+
buttonContainer: "tw-flex tw-flex-row tw-items-center tw-justify-center tw-w-full tw-max-w-[168px]",
|
|
28
|
+
button: [
|
|
29
|
+
"",
|
|
30
|
+
"tw-button-reset",
|
|
31
|
+
"tw-flex-1 last:tw-flex-none",
|
|
32
|
+
"tw-bg-[--bcm-attendance-actions-button-bg]",
|
|
33
|
+
"tw-text-[--bcm-attendance-actions-button-text]",
|
|
34
|
+
"tw-border tw-border-solid tw-border-[--bcm-attendance-actions-button-border]",
|
|
35
|
+
"hover:tw-bg-[--bcm-attendance-actions-button-hover-bg]",
|
|
36
|
+
"active:tw-bg-[--bcm-attendance-actions-button-active-bg]",
|
|
37
|
+
"focus-visible:tw-ring-2 focus-visible:tw-ring-offset-2 focus-visible:tw-z-10",
|
|
38
|
+
"tw-flex tw-flex-row tw-items-center tw-justify-center",
|
|
39
|
+
"first:tw-rounded-l last:tw-rounded-r",
|
|
40
|
+
"tw-font-medium",
|
|
41
|
+
"-tw-ml-[1px] first:tw-ml-0",
|
|
42
|
+
],
|
|
43
|
+
dropdownButton: "",
|
|
44
|
+
mainButton: "",
|
|
45
|
+
commentIcon: "",
|
|
46
|
+
},
|
|
47
|
+
variants: {
|
|
48
|
+
selected: {
|
|
49
|
+
true: {
|
|
50
|
+
button: [
|
|
51
|
+
"tw-text-white tw-border-transparent last:tw-ml-[1px]",
|
|
52
|
+
"first:tw-justify-start",
|
|
53
|
+
],
|
|
54
|
+
mainButton: [
|
|
55
|
+
"tw-min-w-[calc(theme(spacing.12)-1px)]"
|
|
56
|
+
],
|
|
57
|
+
},
|
|
58
|
+
false: {
|
|
59
|
+
button: [
|
|
60
|
+
""
|
|
61
|
+
],
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
size: {
|
|
65
|
+
small: {
|
|
66
|
+
button: [
|
|
67
|
+
"tw-text-2",
|
|
68
|
+
"tw-min-h-6",
|
|
69
|
+
"tw-gap-2",
|
|
70
|
+
],
|
|
71
|
+
mainButton: [
|
|
72
|
+
"tw-px-3",
|
|
73
|
+
],
|
|
74
|
+
dropdownButton: [
|
|
75
|
+
"tw-px-2.5"
|
|
76
|
+
],
|
|
77
|
+
},
|
|
78
|
+
medium: {
|
|
79
|
+
button: [
|
|
80
|
+
"tw-text-3",
|
|
81
|
+
"tw-min-h-8",
|
|
82
|
+
"tw-gap-2",
|
|
83
|
+
],
|
|
84
|
+
mainButton: [
|
|
85
|
+
"tw-px-3",
|
|
86
|
+
],
|
|
87
|
+
dropdownButton: [
|
|
88
|
+
"tw-px-2.5"
|
|
89
|
+
],
|
|
90
|
+
},
|
|
91
|
+
large: {
|
|
92
|
+
button: [
|
|
93
|
+
"tw-text-4",
|
|
94
|
+
"tw-min-h-10",
|
|
95
|
+
"tw-gap-2.5",
|
|
96
|
+
],
|
|
97
|
+
mainButton: [
|
|
98
|
+
"tw-px-3",
|
|
99
|
+
],
|
|
100
|
+
dropdownButton: [
|
|
101
|
+
"tw-px-3"
|
|
102
|
+
],
|
|
103
|
+
},
|
|
104
|
+
},
|
|
105
|
+
disabled: {
|
|
106
|
+
true: {},
|
|
107
|
+
false: {}
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
compoundVariants: [
|
|
111
|
+
{
|
|
112
|
+
disabled: true,
|
|
113
|
+
class: {
|
|
114
|
+
buttonContainer: [
|
|
115
|
+
"tw-cursor-not-allowed tw-pointer-events-none",
|
|
116
|
+
],
|
|
117
|
+
button: [
|
|
118
|
+
"tw-cursor-not-allowed",
|
|
119
|
+
"tw-bg-[--bcm-attendance-actions-button-disabled-bg]",
|
|
120
|
+
"tw-text-[--bcm-attendance-actions-button-disabled-text]",
|
|
121
|
+
"tw-border-transparent",
|
|
122
|
+
"hover:tw-bg-[--bcm-attendance-actions-button-disabled-bg]",
|
|
123
|
+
],
|
|
124
|
+
mainButton: [
|
|
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
|
+
"tw-cursor-not-allowed",
|
|
130
|
+
],
|
|
131
|
+
host: [
|
|
132
|
+
"tw-cursor-not-allowed",
|
|
133
|
+
],
|
|
134
|
+
commentIcon: [
|
|
135
|
+
"tw-cursor-not-allowed tw-pointer-events-none",
|
|
136
|
+
],
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
disabled: false,
|
|
141
|
+
class: {
|
|
142
|
+
button: [
|
|
143
|
+
"tw-cursor-pointer",
|
|
144
|
+
],
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
],
|
|
148
|
+
defaultVariants: {
|
|
149
|
+
selected: false,
|
|
150
|
+
size: "medium",
|
|
151
|
+
disabled: false,
|
|
152
|
+
},
|
|
153
|
+
});
|
|
154
|
+
|
|
155
|
+
const attendanceActionsCss = "";
|
|
156
|
+
|
|
157
|
+
const BcmAttendanceActions$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
158
|
+
constructor() {
|
|
159
|
+
super();
|
|
160
|
+
this.__registerHost();
|
|
161
|
+
this.change = createEvent(this, "bcm-attendance-change", 3);
|
|
162
|
+
this._id = Generate.UID();
|
|
163
|
+
this.size = Bcm.Size.medium;
|
|
164
|
+
this.disabled = false;
|
|
165
|
+
this.data = [
|
|
166
|
+
{ key: "P", value: "Present", color: "emerald", icon: "fa-solid fa-check", priority: 0 },
|
|
167
|
+
{ key: "A", value: "Absent", color: "red", icon: "fa-solid fa-times", priority: 1 },
|
|
168
|
+
{ key: "L", value: "Late", color: "amber", icon: "fa-solid fa-clock", priority: 2 },
|
|
169
|
+
{ key: "C", value: "Other Authorised Circumstance", color: "blue", icon: "fa-solid fa-question" },
|
|
170
|
+
{ key: "E", value: "Exlude", color: "blue", icon: "fa-solid fa-minus" },
|
|
171
|
+
{ key: "G", value: "Family Holiday", color: "blue", icon: "fa-solid fa-minus" },
|
|
172
|
+
{ key: "H", value: "Family Holiday (Agreed)", color: "blue", icon: "fa-solid fa-minus" },
|
|
173
|
+
{ key: "I", value: "Illness", color: "blue", icon: "fa-solid fa-minus" },
|
|
174
|
+
{ key: "J", value: "Intervier", color: "blue", icon: "fa-solid fa-minus" },
|
|
175
|
+
{ key: "M", value: "Medical / Dental", color: "blue", icon: "fa-solid fa-minus" },
|
|
176
|
+
{ key: "N", value: "No Reason yet PRovided", color: "blue", icon: "fa-solid fa-minus" },
|
|
177
|
+
{ key: "O", value: "Unauthrised Absence", color: "blue", icon: "fa-solid fa-minus" },
|
|
178
|
+
{ key: "U", value: "Late after Reg. Closed", color: "blue", icon: "fa-solid fa-minus" },
|
|
179
|
+
{ key: "X", value: "Non-comp School Age Absence", color: "blue", icon: "fa-solid fa-minus" },
|
|
180
|
+
];
|
|
181
|
+
this.lateKeys = "L";
|
|
182
|
+
this.hideComment = false;
|
|
183
|
+
}
|
|
184
|
+
get selectedItem() {
|
|
185
|
+
return this.data.find(item => item.selected);
|
|
186
|
+
}
|
|
187
|
+
get priorityButtons() {
|
|
188
|
+
return this.data.filter(item => item.priority !== undefined).sort((a, b) => a.priority - b.priority);
|
|
189
|
+
}
|
|
190
|
+
get renderButtons() {
|
|
191
|
+
const { selectedItem, priorityButtons } = this;
|
|
192
|
+
return [...(selectedItem ? [selectedItem] : priorityButtons.length ? priorityButtons : this.data.slice(0, 3))];
|
|
193
|
+
}
|
|
194
|
+
get lateKeysMap() {
|
|
195
|
+
return this.lateKeys.toLocaleLowerCase().split(",");
|
|
196
|
+
}
|
|
197
|
+
get isLate() {
|
|
198
|
+
var _a, _b;
|
|
199
|
+
return this.lateKeysMap.includes((_b = (_a = this.selectedItem) === null || _a === void 0 ? void 0 : _a.key) === null || _b === void 0 ? void 0 : _b.toLocaleLowerCase());
|
|
200
|
+
}
|
|
201
|
+
get dropdownMenuElement() {
|
|
202
|
+
return document.getElementById("attendance-dropdown-" + this._id);
|
|
203
|
+
}
|
|
204
|
+
get commentAreaElement() {
|
|
205
|
+
return document.getElementById("comment-" + this._id);
|
|
206
|
+
}
|
|
207
|
+
handleSelectItem(item, triggerChange = true, showComment = true) {
|
|
208
|
+
var _a, _b;
|
|
209
|
+
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()) })); })];
|
|
210
|
+
(_a = this.dropdownMenuElement) === null || _a === void 0 ? void 0 : _a.hide();
|
|
211
|
+
(_b = this.commentAreaElement) === null || _b === void 0 ? void 0 : _b.hide();
|
|
212
|
+
if (!this.isLate)
|
|
213
|
+
return triggerChange && this.changed();
|
|
214
|
+
!this.hideComment && showComment && this.commentArea();
|
|
215
|
+
}
|
|
216
|
+
changed() {
|
|
217
|
+
this.change.emit(this.selectedItem);
|
|
218
|
+
}
|
|
219
|
+
hasDataForKey(key) {
|
|
220
|
+
return !!this.data.find(item => item.key.toLocaleLowerCase() === key.toLocaleLowerCase());
|
|
221
|
+
}
|
|
222
|
+
handleKeyPress({ key }) {
|
|
223
|
+
if (!this.hasDataForKey(key))
|
|
224
|
+
return;
|
|
225
|
+
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()); });
|
|
226
|
+
this.handleSelectItem(item);
|
|
227
|
+
}
|
|
228
|
+
handleSave(lateMinutes, comment) {
|
|
229
|
+
this.data = [...this.data].map(item => {
|
|
230
|
+
var _a, _b, _c;
|
|
231
|
+
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())) {
|
|
232
|
+
return Object.assign(Object.assign({}, item), { lateMin: lateMinutes, comment });
|
|
233
|
+
}
|
|
234
|
+
return item;
|
|
235
|
+
});
|
|
236
|
+
this.changed();
|
|
237
|
+
}
|
|
238
|
+
dropdownMenu() {
|
|
239
|
+
var _a;
|
|
240
|
+
const dropdownMenu = Generate.createComponent("bcm-attendance-actions-dropdown", {
|
|
241
|
+
id: "attendance-dropdown-" + this._id,
|
|
242
|
+
size: this.size,
|
|
243
|
+
data: this.data,
|
|
244
|
+
selectedKey: (_a = this.selectedItem) === null || _a === void 0 ? void 0 : _a.key,
|
|
245
|
+
targetId: "attendance-dropdown-button-" + this._id,
|
|
246
|
+
});
|
|
247
|
+
dropdownMenu.addEventListener("bcm-attendance-actions-dropdown-change", ({ detail }) => {
|
|
248
|
+
this.handleSelectItem(detail);
|
|
249
|
+
});
|
|
250
|
+
dropdownMenu.show();
|
|
251
|
+
}
|
|
252
|
+
commentArea() {
|
|
253
|
+
var _a, _b;
|
|
254
|
+
const commentArea = Generate.createComponent("bcm-attendance-actions-comment", {
|
|
255
|
+
id: "comment-" + this._id,
|
|
256
|
+
size: this.size,
|
|
257
|
+
isLate: this.isLate,
|
|
258
|
+
targetId: "comment-area-" + this._id,
|
|
259
|
+
selectedItem: this.selectedItem,
|
|
260
|
+
lateMinutes: (_a = this.selectedItem) === null || _a === void 0 ? void 0 : _a.lateMin,
|
|
261
|
+
comment: (_b = this.selectedItem) === null || _b === void 0 ? void 0 : _b.comment,
|
|
262
|
+
});
|
|
263
|
+
commentArea.addEventListener("bcm-attendance-actions-comment-change", ({ detail }) => {
|
|
264
|
+
this.handleSave(detail.lateMinutes, detail.comment);
|
|
265
|
+
});
|
|
266
|
+
commentArea.show();
|
|
267
|
+
}
|
|
268
|
+
async set(key, triggerChange = true) {
|
|
269
|
+
if (!this.hasDataForKey(key))
|
|
270
|
+
return;
|
|
271
|
+
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()); });
|
|
272
|
+
this.handleSelectItem(item, triggerChange, false);
|
|
273
|
+
}
|
|
274
|
+
async get() {
|
|
275
|
+
return this.selectedItem;
|
|
276
|
+
}
|
|
277
|
+
render() {
|
|
278
|
+
var _a, _b, _c;
|
|
279
|
+
const { selectedItem, renderButtons, disabled, hideComment, size } = this;
|
|
280
|
+
const { host, buttonContainer, button, dropdownButton, commentIcon, mainButton } = attendanceActionStyle({
|
|
281
|
+
selected: !!selectedItem,
|
|
282
|
+
size,
|
|
283
|
+
disabled,
|
|
284
|
+
});
|
|
285
|
+
const buttonStyle = !!selectedItem
|
|
286
|
+
? Generate.getTwColor({
|
|
287
|
+
color: (_a = selectedItem.color) !== null && _a !== void 0 ? _a : "blue",
|
|
288
|
+
tones: {
|
|
289
|
+
600: ["bg"],
|
|
290
|
+
700: ["hover-bg"],
|
|
291
|
+
800: ["active-bg"],
|
|
292
|
+
},
|
|
293
|
+
variable: "--bcm-attendance-actions-button",
|
|
294
|
+
})
|
|
295
|
+
: {};
|
|
296
|
+
const buttonAttributes = {
|
|
297
|
+
class: classnames(button(), mainButton()),
|
|
298
|
+
style: Object.assign({}, buttonStyle),
|
|
299
|
+
disabled,
|
|
300
|
+
type: "button",
|
|
301
|
+
};
|
|
302
|
+
const iconButtonAttributes = Object.assign(Object.assign({}, buttonAttributes), { class: classnames(button(), dropdownButton()) });
|
|
303
|
+
const isShowCommentIcon = !hideComment && !!selectedItem;
|
|
304
|
+
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) ` : ""}` : "";
|
|
305
|
+
return (h(Host, { class: host(), onKeyPress: this.handleKeyPress.bind(this) }, h("div", { class: buttonContainer() }, renderButtons === null || renderButtons === void 0 ? void 0 :
|
|
306
|
+
renderButtons.map(item => {
|
|
307
|
+
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)));
|
|
308
|
+
}), 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(), {
|
|
309
|
+
"tw-cursor-default": !isShowCommentIcon,
|
|
310
|
+
"tw-cursor-pointer": isShowCommentIcon,
|
|
311
|
+
}), onClick: () => isShowCommentIcon && this.commentArea() }, h("i", { title: isShowCommentIcon ? commentTooltip : "", class: classnames("fa-solid fa-comment", {
|
|
312
|
+
"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)),
|
|
313
|
+
"tw-visible": isShowCommentIcon,
|
|
314
|
+
"tw-invisible": !isShowCommentIcon,
|
|
315
|
+
}) }))));
|
|
316
|
+
}
|
|
317
|
+
get el() { return this; }
|
|
318
|
+
static get style() { return attendanceActionsCss; }
|
|
319
|
+
}, [0, "bcm-attendance-actions", {
|
|
320
|
+
"_id": [1537, "id"],
|
|
321
|
+
"size": [1025],
|
|
322
|
+
"disabled": [4],
|
|
323
|
+
"data": [1040],
|
|
324
|
+
"lateKeys": [1025, "late-keys"],
|
|
325
|
+
"hideComment": [4, "hide-comment"],
|
|
326
|
+
"set": [64],
|
|
327
|
+
"get": [64]
|
|
328
|
+
}]);
|
|
329
|
+
function defineCustomElement$1() {
|
|
330
|
+
if (typeof customElements === "undefined") {
|
|
331
|
+
return;
|
|
332
|
+
}
|
|
333
|
+
const components = ["bcm-attendance-actions"];
|
|
334
|
+
components.forEach(tagName => { switch (tagName) {
|
|
335
|
+
case "bcm-attendance-actions":
|
|
336
|
+
if (!customElements.get(tagName)) {
|
|
337
|
+
customElements.define(tagName, BcmAttendanceActions$1);
|
|
338
|
+
}
|
|
339
|
+
break;
|
|
340
|
+
} });
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
const BcmAttendanceActions = BcmAttendanceActions$1;
|
|
344
|
+
const defineCustomElement = defineCustomElement$1;
|
|
345
|
+
|
|
346
|
+
export { BcmAttendanceActions, defineCustomElement };
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
6
6
|
import { G as Generate, s as snq } from './generate.js';
|
|
7
|
-
import {
|
|
7
|
+
import { a as Bcm } from './bcm.js';
|
|
8
8
|
import { c as classnames } from './index2.js';
|
|
9
9
|
import { S as StringHelper } from './string-helper.js';
|
|
10
10
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright (c) Bromcom.
|
|
4
4
|
*/
|
|
5
5
|
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
6
|
-
import {
|
|
6
|
+
import { a as Bcm } from './bcm.js';
|
|
7
7
|
import './string-helper.js';
|
|
8
8
|
import { C as CaptionTemplate } from './caption-template.js';
|
|
9
9
|
import './index2.js';
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import { h, proxyCustomElement, HTMLElement, createEvent, Host } from '@stencil/core/internal/client';
|
|
6
6
|
import { c as classnames } from './index2.js';
|
|
7
7
|
import { G as Generate, s as snq } from './generate.js';
|
|
8
|
-
import {
|
|
8
|
+
import { a as Bcm } from './bcm.js';
|
|
9
9
|
import { d as delay, g as getChildElements } from './utils.js';
|
|
10
10
|
import { c as createStore } from './index4.js';
|
|
11
11
|
import { L as LabelTemplate, d as defineCustomElement$3 } from './label.js';
|
|
@@ -9,7 +9,7 @@ import { G as Generate } from './generate.js';
|
|
|
9
9
|
import './number-helper.js';
|
|
10
10
|
import './string-helper.js';
|
|
11
11
|
import './element-dragger.js';
|
|
12
|
-
import {
|
|
12
|
+
import { B as Bcm } from './bcm.js';
|
|
13
13
|
import { C as CaptionTemplate } from './caption-template.js';
|
|
14
14
|
import { c as classnames } from './index2.js';
|
|
15
15
|
import './types.js';
|
|
@@ -7,7 +7,7 @@ import { c as classnames } from './index2.js';
|
|
|
7
7
|
import { I as IsLoad } from './is-load-decorator.js';
|
|
8
8
|
import { D as DateTimeHelper } from './validators.js';
|
|
9
9
|
import { G as Generate } from './generate.js';
|
|
10
|
-
import {
|
|
10
|
+
import { a as Bcm } from './bcm.js';
|
|
11
11
|
import { d as delay } from './utils.js';
|
|
12
12
|
import { d as defineCustomElement$6 } from './datetime-picker.js';
|
|
13
13
|
import { d as defineCustomElement$5 } from './icon.js';
|
|
@@ -10,7 +10,7 @@ import { G as Generate } from './generate.js';
|
|
|
10
10
|
import './number-helper.js';
|
|
11
11
|
import './string-helper.js';
|
|
12
12
|
import './element-dragger.js';
|
|
13
|
-
import {
|
|
13
|
+
import { B as Bcm } from './bcm.js';
|
|
14
14
|
import { C as CaptionTemplate } from './caption-template.js';
|
|
15
15
|
import { c as classnames } from './index2.js';
|
|
16
16
|
import './types.js';
|
|
@@ -9,7 +9,7 @@ import { G as Generate } from './generate.js';
|
|
|
9
9
|
import './number-helper.js';
|
|
10
10
|
import './string-helper.js';
|
|
11
11
|
import './element-dragger.js';
|
|
12
|
-
import {
|
|
12
|
+
import { B as Bcm } from './bcm.js';
|
|
13
13
|
import { c as classnames } from './index2.js';
|
|
14
14
|
import { d as defineCustomElement$3 } from './icon.js';
|
|
15
15
|
import { d as defineCustomElement$2 } from './text.js';
|
|
@@ -7,7 +7,7 @@ import { c as classnames } from './index2.js';
|
|
|
7
7
|
import { I as IsLoad } from './is-load-decorator.js';
|
|
8
8
|
import { J as JsonParse } from './json-parse-decarator.js';
|
|
9
9
|
import { G as Generate } from './generate.js';
|
|
10
|
-
import {
|
|
10
|
+
import { a as Bcm } from './bcm.js';
|
|
11
11
|
import { d as defineCustomElement$5 } from './button.js';
|
|
12
12
|
import { d as defineCustomElement$4 } from './icon.js';
|
|
13
13
|
import { d as defineCustomElement$3 } from './linked.js';
|
|
@@ -6,7 +6,7 @@ import { proxyCustomElement, HTMLElement, createEvent, forceUpdate, h, Host } fr
|
|
|
6
6
|
import { I as IsLoad } from './is-load-decorator.js';
|
|
7
7
|
import { G as Generate, s as snq } from './generate.js';
|
|
8
8
|
import { S as StringHelper } from './string-helper.js';
|
|
9
|
-
import {
|
|
9
|
+
import { a as Bcm } from './bcm.js';
|
|
10
10
|
|
|
11
11
|
const BcmFormComponents = [
|
|
12
12
|
'BCM-INPUT',
|