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
package/dist/components/list.js
CHANGED
|
@@ -13,7 +13,7 @@ import { S as StringHelper } from './string-helper.js';
|
|
|
13
13
|
import './element-dragger.js';
|
|
14
14
|
import { g as getPlacement, s as setPosition } from './popover-placement.js';
|
|
15
15
|
import { p as pluralize, d as delay } from './utils.js';
|
|
16
|
-
import {
|
|
16
|
+
import { a as Bcm, B as Bcm$1 } from './bcm.js';
|
|
17
17
|
import { C as CaptionTemplate } from './caption-template.js';
|
|
18
18
|
import { c as classnames } from './index2.js';
|
|
19
19
|
import './types.js';
|
|
@@ -937,7 +937,7 @@ const BcmList = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
937
937
|
status: Bcm$1.Status.default,
|
|
938
938
|
indeterminate: "uncheck",
|
|
939
939
|
};
|
|
940
|
-
this.shouldTriggerChange =
|
|
940
|
+
this.shouldTriggerChange = undefined;
|
|
941
941
|
this.placement = Bcm$1.Placement["bottom-start"];
|
|
942
942
|
this.disableChangeEvent = false;
|
|
943
943
|
this.data = [];
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
6
6
|
import { c as classnames } from './index2.js';
|
|
7
|
-
import {
|
|
7
|
+
import { a as Bcm } from './bcm.js';
|
|
8
8
|
import { G as Generate } from './generate.js';
|
|
9
9
|
import { d as defineCustomElement$2 } from './old-popover-box.js';
|
|
10
10
|
|
|
@@ -10,7 +10,7 @@ import { d as defineCustomElement$3 } from './icon.js';
|
|
|
10
10
|
import { d as defineCustomElement$2 } from './label.js';
|
|
11
11
|
import { d as defineCustomElement$1 } from './tooltip.js';
|
|
12
12
|
|
|
13
|
-
const oldInputCss = "@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}.bcm-input[no-margin]{margin:0}.bcm-textarea[no-margin]{margin:0}.bcm-switch[no-margin]{margin:0}.bcm-checkbox[no-margin]{margin:0}.bcm-radio-group[no-margin]{margin:0}.bcm-checkbox-group[no-margin]{margin:0}.bcm-range[no-margin]{margin:0}.bcm-form[no-margin]{margin:0}.bcm-form-group[no-margin]{margin:0}.bcm-list[no-margin]{margin:0}.bcm-colorpicker[no-margin]{margin:0}.bcm-date-picker[no-margin]{margin:0}.bcm-time-picker[no-margin]{margin:0}.bcm-datetime-picker[no-margin]{margin:0}.bcm-select[no-margin]{margin:0}.bcm-listbox[no-margin]{margin:0}*{box-sizing:border-box}.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}:host{display:inline-block;width:100%;margin:0 0 8px 0}:host(.hidden){display:none}:host(.no-margin){margin:0}.input-container{display:flex;flex-direction:column;width:100%;max-width:256px}.input-container.full-width{max-width:100%}.input-base{font-family:\"Inter\", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;flex:1 1 auto;display:inline-flex;align-items:stretch;justify-content:start;position:relative;background-color:var(--bcm-new-ds-color-white);border:1px solid var(--bcm-new-ds-color-slate-300);border-radius:4px;vertical-align:middle;overflow:hidden;padding:0 4px;cursor:text}.input-base.disabled{background-color:var(--bcm-new-ds-color-slate-50);cursor:not-allowed}.input-base.disabled .bcm-input-element{color:var(--bcm-new-ds-color-slate-300)}.input-base.readonly{background-color:var(--bcm-new-ds-color-slate-50);cursor:default}.input-base.readonly .bcm-input-element{color:var(--bcm-new-ds-color-slate-600)}.input-base:not(.disabled):hover .caret-container,.input-base:not(.disabled).focused .caret-container{opacity:1}.input-base:not(.disabled):hover .input-clear-button,.input-base:not(.disabled).focused .input-clear-button{opacity:1}.input-base:not(.disabled).focused{background-color:var(--bcm-new-ds-color-slate-50)}.input-base:not(.disabled):hover{border-color:var(--bcm-color-prime-blue-6)}.input-base.focused:not(.disabled) .caret-container{opacity:1}.input-base.focused:not(.disabled) .input-clear-button{opacity:1}.input-base:hover:not(.disabled) .caret-container{opacity:1}.input-base:hover:not(.disabled) .input-clear-button{opacity:1}.input-base.disabled{cursor:not-allowed}.input-base.readonly{cursor:default}.input-base.empty .input-clear-button{display:none}.input-base.invalid,.input-base.error{border-color:var(--bcm-new-ds-color-red-500)}.error .label{color:var(--bcm-new-ds-color-red-500) !important}.error .input-base{border-color:var(--bcm-new-ds-color-red-500) !important}.input-base input{color:var(--bcm-new-ds-color-slate-600);flex:1 1 auto;width:0%;border:none;border-radius:2px;background:none;box-shadow:none;padding:0;margin:0 4px;font-family:\"Inter\", sans-serif;cursor:inherit;-webkit-appearance:none;appearance:none}.input-base input::-webkit-search-decoration,.input-base input::-webkit-search-cancel-button,.input-base input::-webkit-search-results-button,.input-base input::-webkit-search-results-decoration{-webkit-appearance:none}.input-base input::placeholder{font-family:\"Inter\", sans-serif;color:var(--bcm-new-ds-color-slate-300);user-select:none}.input-base input:focus{outline:none}input::-webkit-calendar-picker-indicator{-webkit-appearance:none;display:none}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none}input[type=number]{-moz-appearance:textfield}.input-prefix,.input-suffix{display:inline-flex;align-items:center;justify-content:center;cursor:default;color:var(--bcm-new-ds-color-slate-500)}.input-prefix ::slotted(*),.input-prefix>span{line-height:1;margin-left:4px}.input-suffix ::slotted(*),.input-suffix>span{line-height:1;margin-right:4px}.input-clear-button,.input-password-toggle{display:inline-flex;align-items:center;border:none;background:none;padding:0;cursor:pointer;margin-right:4px;transition:0.2s opacity}.input-clear-button:last-child,.input-clear-button:last-of-type,.input-password-toggle:last-child,.input-password-toggle:last-of-type{margin-right:8px}.input-clear-button:focus,.input-password-toggle:focus{outline:none}.input-clear-button{opacity:0}.label{display:flex;flex-direction:column;font-family:\"Inter\", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;color:var(--bcm-new-ds-color-slate-600);margin-bottom:4px}.caption-area{min-height:20px}.input-caption{display:block}.unit.input-suffix{width:24px}.unit-prefix{display:inline-flex;flex:0 0 auto;align-items:center;cursor:default;color:var(--bcm-color-grey-8)}.caret-container{opacity:0;width:30px;display:flex;flex-direction:column;justify-content:center;align-items:center;border-left:1px solid #D9D9D9;border-right:1px solid #D9D9D9;transition:0.2s opacity;user-select:none;box-sizing:border-box;margin-right:4px}.caret-container:last-of-type{margin-right:-space(\"xxxs\");border-right:none}.caret-container .caret{display:inline-flex;height:50%;width:100%;align-items:center;justify-content:center;color:var(--bcm-color-grey-7);cursor:pointer}.caret-container .caret:hover{color:var(--bcm-color-prime-blue-6)}.caret-container .caret:active{background-color:var(--bcm-color-grey-3)}.caret-container .caret:last-child{border-top:1px solid #D9D9D9}.caret-container.disabled{background-color:var(--bcm-color-grey-3)}.caret-container.disabled .caret{cursor:not-allowed}.default-icon{margin-right:8px}.input-large{height:40px}.input-medium{height:32px}.input-small{height:24px}";
|
|
13
|
+
const oldInputCss = "@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}.bcm-input[no-margin]{margin:0}.bcm-textarea[no-margin]{margin:0}.bcm-switch[no-margin]{margin:0}.bcm-checkbox[no-margin]{margin:0}.bcm-radio-group[no-margin]{margin:0}.bcm-checkbox-group[no-margin]{margin:0}.bcm-range[no-margin]{margin:0}.bcm-form[no-margin]{margin:0}.bcm-form-group[no-margin]{margin:0}.bcm-list[no-margin]{margin:0}.bcm-colorpicker[no-margin]{margin:0}.bcm-date-picker[no-margin]{margin:0}.bcm-time-picker[no-margin]{margin:0}.bcm-datetime-picker[no-margin]{margin:0}.bcm-select[no-margin]{margin:0}.bcm-listbox[no-margin]{margin:0}*{box-sizing:border-box}.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}:host{display:inline-block;width:100%;margin:0 0 8px 0}:host(.hidden){display:none}:host(.no-margin){margin:0}.input-container{display:flex;flex-direction:column;width:100%;max-width:256px}.input-container.full-width{max-width:100%}.input-base{font-family:\"Inter\", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;flex:1 1 auto;display:inline-flex;align-items:stretch;justify-content:start;position:relative;background-color:var(--bcm-new-ds-color-white);border:1px solid var(--bcm-new-ds-color-slate-300);border-radius:4px;vertical-align:middle;overflow:hidden;padding:0 4px;cursor:text}.input-base.disabled{background-color:var(--bcm-new-ds-color-slate-50);cursor:not-allowed}.input-base.disabled .bcm-input-element{color:var(--bcm-new-ds-color-slate-300)}.input-base.readonly{background-color:var(--bcm-new-ds-color-slate-50);cursor:default}.input-base.readonly .bcm-input-element{color:var(--bcm-new-ds-color-slate-600)}.input-base:not(.disabled):hover .caret-container,.input-base:not(.disabled).focused .caret-container{opacity:1}.input-base:not(.disabled):hover .input-clear-button,.input-base:not(.disabled).focused .input-clear-button{opacity:1}.input-base:not(.disabled).focused{background-color:var(--bcm-new-ds-color-slate-50)}.input-base:not(.disabled):hover{border-color:var(--bcm-color-prime-blue-6)}.input-base.focused:not(.disabled) .caret-container{opacity:1}.input-base.focused:not(.disabled) .input-clear-button{opacity:1}.input-base:hover:not(.disabled) .caret-container{opacity:1}.input-base:hover:not(.disabled) .input-clear-button{opacity:1}.input-base.disabled{cursor:not-allowed}.input-base.readonly{cursor:default}.input-base.empty .input-clear-button{display:none}.input-base.invalid,.input-base.error{border-color:var(--bcm-new-ds-color-red-500)}.error .label{color:var(--bcm-new-ds-color-red-500) !important}.error .input-base{border-color:var(--bcm-new-ds-color-red-500) !important}.input-base input{color:var(--bcm-new-ds-color-slate-600);flex:1 1 auto;width:0%;border:none;border-radius:2px;background:none;box-shadow:none;padding:0;margin:0 4px;font-family:\"Inter\", sans-serif;cursor:inherit;-webkit-appearance:none;appearance:none}.input-base input::-webkit-search-decoration,.input-base input::-webkit-search-cancel-button,.input-base input::-webkit-search-results-button,.input-base input::-webkit-search-results-decoration{-webkit-appearance:none}.input-base input::placeholder{font-family:\"Inter\", sans-serif;color:var(--bcm-new-ds-color-slate-300);user-select:none}.input-base input:focus{outline:none}input::-webkit-calendar-picker-indicator{-webkit-appearance:none;display:none}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none}input[type=number]{-moz-appearance:textfield}.input-prefix,.input-suffix{display:inline-flex;align-items:center;justify-content:center;cursor:default;color:var(--bcm-new-ds-color-slate-500)}.input-prefix ::slotted(*),.input-prefix>span{line-height:1;margin-left:4px}.input-suffix ::slotted(*),.input-suffix>span{line-height:1;margin-right:4px}.input-clear-button,.input-password-toggle{display:inline-flex;align-items:center;border:none;background:none;padding:0;cursor:pointer;margin-right:4px;transition:0.2s opacity}.input-clear-button:last-child,.input-clear-button:last-of-type,.input-password-toggle:last-child,.input-password-toggle:last-of-type{margin-right:8px}.input-clear-button:focus,.input-password-toggle:focus{outline:none}.input-clear-button{opacity:0}.label{display:flex;flex-direction:column;font-family:\"Inter\", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;color:var(--bcm-new-ds-color-slate-600);margin-bottom:4px}.caption-area{min-height:20px}.input-caption{display:block}.unit.input-suffix{width:24px}.unit-prefix{display:inline-flex;flex:0 0 auto;align-items:center;cursor:default;color:var(--bcm-color-grey-8)}.caret-container{opacity:0;width:30px;display:flex;flex-direction:column;justify-content:center;align-items:center;border-left:1px solid #D9D9D9;border-right:1px solid #D9D9D9;transition:0.2s opacity;user-select:none;box-sizing:border-box;margin-right:4px}.caret-container:last-of-type{margin-right:-space(\"xxxs\");border-right:none}.caret-container .caret{display:inline-flex;height:50%;width:100%;align-items:center;justify-content:center;color:var(--bcm-color-grey-7);cursor:pointer}.caret-container .caret:hover{color:var(--bcm-color-prime-blue-6)}.caret-container .caret:active{background-color:var(--bcm-color-grey-3)}.caret-container .caret:last-child{border-top:1px solid #D9D9D9}.caret-container.disabled{background-color:var(--bcm-color-grey-3)}.caret-container.disabled .caret{cursor:not-allowed}.default-icon{margin-right:8px}.input-large{height:40px}.input-medium{height:32px}.input-small{height:24px}.bcm-label{font-family:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin-bottom:4px;font-weight:500;color:#475569}.bcm-label.tw-text-1{font-size:10px;line-height:18px}.bcm-label.tw-text-2{font-size:12px;line-height:20px}.bcm-label.tw-text-3{font-size:14px;line-height:22px}.bcm-caption-area{color:#dc2626;font-weight:400;justify-content:space-between;align-items:flex-start;flex-direction:row;min-height:20px;display:flex;margin-top:4px;font-family:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.bcm-caption-area.tw-text-1{font-size:10px;line-height:18px}.bcm-caption-area.tw-text-2{font-size:12px;line-height:20px}.bcm-caption-area.tw-text-3{font-size:14px;line-height:22px}";
|
|
14
14
|
|
|
15
15
|
let id = 0;
|
|
16
16
|
const defaultIcons = {
|
package/dist/components/radio.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright (c) Bromcom.
|
|
4
4
|
*/
|
|
5
5
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
6
|
-
import {
|
|
6
|
+
import { B as Bcm } from './bcm.js';
|
|
7
7
|
import './color-helper.js';
|
|
8
8
|
import './validators.js';
|
|
9
9
|
import { G as Generate } from './generate.js';
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright (c) Bromcom.
|
|
4
4
|
*/
|
|
5
5
|
import { proxyCustomElement, HTMLElement as HTMLElement$1, createEvent } from '@stencil/core/internal/client';
|
|
6
|
-
import {
|
|
6
|
+
import { B as Bcm } from './bcm.js';
|
|
7
7
|
import { c as classnames } from './index2.js';
|
|
8
8
|
import { u as useEvent, b as useLayoutUpdateEffect, _ as _typeof$3, c as warningOnce, d as useMemo, w as wrapperRaf, a as useLayoutEffect, e as canUseDom, s as supportRef, f as useComposeRef, i as isDOM, g as fillRef, h as findDOMNode, R as RefResizeObserver, j as composeRef } from './raf.js';
|
|
9
9
|
import { r as react, a as reactDom, R as React } from './index3.js';
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
6
6
|
import { s as snq, G as Generate } from './generate.js';
|
|
7
|
-
import {
|
|
7
|
+
import { a as Bcm } from './bcm.js';
|
|
8
8
|
import { I as InputTemplate } from './input-template.js';
|
|
9
9
|
import { d as delay } from './utils.js';
|
|
10
10
|
import { c as createStore } from './index4.js';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Built with Stencil
|
|
3
3
|
* Copyright (c) Bromcom.
|
|
4
4
|
*/
|
|
5
|
-
import {
|
|
5
|
+
import { a as Bcm } from './bcm.js';
|
|
6
6
|
import { c as createCommonjsModule, a as commonjsGlobal } from './_commonjsHelpers.js';
|
|
7
7
|
|
|
8
8
|
var slugify = createCommonjsModule(function (module, exports) {
|
|
@@ -6,7 +6,7 @@ import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/
|
|
|
6
6
|
import { c as classnames } from './index2.js';
|
|
7
7
|
import { I as IsLoad } from './is-load-decorator.js';
|
|
8
8
|
import { G as Generate } from './generate.js';
|
|
9
|
-
import {
|
|
9
|
+
import { a as Bcm } from './bcm.js';
|
|
10
10
|
import { C as CaptionTemplate } from './caption-template.js';
|
|
11
11
|
import { I as InputTemplate } from './input-template.js';
|
|
12
12
|
import { d as delay } from './utils.js';
|
|
@@ -10,7 +10,7 @@ import { C as ColorHelper } from './color-helper.js';
|
|
|
10
10
|
import './validators.js';
|
|
11
11
|
import { G as Generate } from './generate.js';
|
|
12
12
|
import './number-helper.js';
|
|
13
|
-
import {
|
|
13
|
+
import { B as Bcm } from './bcm.js';
|
|
14
14
|
|
|
15
15
|
class Tooltip {
|
|
16
16
|
constructor({ message, targetId, placement = "top", color = "slate-700", trigger = "none", size = "medium", openDelay = 0, closeDelay = 0, autoHide = false, emitShow = () => { }, emitHide = () => { }, }) {
|
|
@@ -10,7 +10,7 @@ import './number-helper.js';
|
|
|
10
10
|
import './string-helper.js';
|
|
11
11
|
import { T as Tooltip } from './tooltip-helper.js';
|
|
12
12
|
import './element-dragger.js';
|
|
13
|
-
import {
|
|
13
|
+
import { B as Bcm } from './bcm.js';
|
|
14
14
|
|
|
15
15
|
const BcmTooltip = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
16
16
|
constructor() {
|
|
@@ -37,4 +37,4 @@ function commonjsRequire () {
|
|
|
37
37
|
throw new Error('Dynamic requires are not currently supported by @rollup/plugin-commonjs');
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
export { commonjsGlobal as a,
|
|
40
|
+
export { commonjsGlobal as a, getAugmentedNamespace as b, createCommonjsModule as c, getDefaultExportFromCjs as g };
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
* Built with Stencil
|
|
3
3
|
* Copyright (c) Bromcom.
|
|
4
4
|
*/
|
|
5
|
-
import { r as registerInstance, h, H as Host, g as getElement } from './index-
|
|
6
|
-
import { G as Generate } from './generate-
|
|
7
|
-
import './package-
|
|
8
|
-
import './colors-
|
|
9
|
-
import './_commonjsHelpers-
|
|
5
|
+
import { r as registerInstance, h, H as Host, g as getElement } from './index-4614b7f0.js';
|
|
6
|
+
import { G as Generate } from './generate-ea4b5630.js';
|
|
7
|
+
import './package-b6a53fde.js';
|
|
8
|
+
import './colors-e1c31f79.js';
|
|
9
|
+
import './_commonjsHelpers-be0d4ec8.js';
|
|
10
10
|
|
|
11
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
12
|
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
* Built with Stencil
|
|
3
3
|
* Copyright (c) Bromcom.
|
|
4
4
|
*/
|
|
5
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-
|
|
6
|
-
import { G as Generate, s as snq, S as StatusProps, T as TypeProps } from './generate-
|
|
7
|
-
import { c as classnames } from './index-
|
|
8
|
-
import { c as createStore } from './index-
|
|
9
|
-
import { S as StringHelper } from './string-helper-
|
|
10
|
-
import './package-
|
|
11
|
-
import './colors-
|
|
12
|
-
import './_commonjsHelpers-
|
|
5
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-4614b7f0.js';
|
|
6
|
+
import { G as Generate, s as snq, S as StatusProps, T as TypeProps } from './generate-ea4b5630.js';
|
|
7
|
+
import { c as classnames } from './index-b84bc8c9.js';
|
|
8
|
+
import { c as createStore } from './index-f38e3364.js';
|
|
9
|
+
import { S as StringHelper } from './string-helper-3526c4fe.js';
|
|
10
|
+
import './package-b6a53fde.js';
|
|
11
|
+
import './colors-e1c31f79.js';
|
|
12
|
+
import './_commonjsHelpers-be0d4ec8.js';
|
|
13
13
|
import './bcm-0f9cc27c.js';
|
|
14
14
|
|
|
15
15
|
const { state } = createStore({
|
|
@@ -0,0 +1,136 @@
|
|
|
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-4614b7f0.js';
|
|
6
|
+
import './color-helper-c4fa9ebc.js';
|
|
7
|
+
import './datetime-helper-df25808a.js';
|
|
8
|
+
import { G as Generate } from './generate-ea4b5630.js';
|
|
9
|
+
import './number-helper-148cd002.js';
|
|
10
|
+
import './string-helper-3526c4fe.js';
|
|
11
|
+
import './validators-78ec4f0a.js';
|
|
12
|
+
import './element-dragger-7ea06c76.js';
|
|
13
|
+
import { d as delay } from './utils-b3338faf.js';
|
|
14
|
+
import { F as FloatingUI } from './floating-ui-a4e67246.js';
|
|
15
|
+
import { a as Bcm } from './bcm-0f9cc27c.js';
|
|
16
|
+
import { c as ce } from './index-3bc8c6e3.js';
|
|
17
|
+
import './colors-1d7854ea.js';
|
|
18
|
+
import './colors-e1c31f79.js';
|
|
19
|
+
import './_commonjsHelpers-be0d4ec8.js';
|
|
20
|
+
import './package-b6a53fde.js';
|
|
21
|
+
|
|
22
|
+
const attendanceActionCommentStyle = ce({
|
|
23
|
+
slots: {
|
|
24
|
+
host: [
|
|
25
|
+
// "tw-flex tw-h-fit tw-w-full tw-min-w-[288px] tw-flex-col tw-items-start tw-rounded tw-p-4 tw-shadow-2",
|
|
26
|
+
"tw-w-fit",
|
|
27
|
+
"tw-absolute tw-left-0 tw-right-0 tw-z-tooltip tw-opacity-100 tw-transition-opacity tw-duration-300",
|
|
28
|
+
"tw-rounded tw-bg-white tw-shadow",
|
|
29
|
+
"bcm-ui-element bcm-attendance-actions tw-flex tw-flex-col tw-items-start tw-justify-start tw-p-4 tw-font-medium tw-text-slate-700",
|
|
30
|
+
],
|
|
31
|
+
footer: ["tw-flex tw-w-full tw-flex-row tw-items-center tw-justify-end tw-gap-2 "],
|
|
32
|
+
},
|
|
33
|
+
variants: {
|
|
34
|
+
size: {
|
|
35
|
+
small: {},
|
|
36
|
+
medium: {},
|
|
37
|
+
large: {},
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
defaultVariants: {
|
|
41
|
+
size: "medium",
|
|
42
|
+
},
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
const BcmAttendanceActionsComment = class {
|
|
46
|
+
constructor(hostRef) {
|
|
47
|
+
registerInstance(this, hostRef);
|
|
48
|
+
this.change = createEvent(this, "bcm-attendance-actions-comment-change", 3);
|
|
49
|
+
this.lateMinutes = null;
|
|
50
|
+
this.comment = null;
|
|
51
|
+
this._id = Generate.UID();
|
|
52
|
+
this.size = Bcm.Size.medium;
|
|
53
|
+
this.disabled = false;
|
|
54
|
+
this.selectedKey = null;
|
|
55
|
+
this.targetId = null;
|
|
56
|
+
this.isShow = false;
|
|
57
|
+
this.isLate = false;
|
|
58
|
+
this.selectedItem = null;
|
|
59
|
+
}
|
|
60
|
+
handleSave(lateMinutes, comment) {
|
|
61
|
+
this.change.emit({ lateMinutes, comment });
|
|
62
|
+
this.hide();
|
|
63
|
+
}
|
|
64
|
+
async show() {
|
|
65
|
+
const targetElement = document.getElementById(this.targetId);
|
|
66
|
+
FloatingUI({
|
|
67
|
+
ref: targetElement,
|
|
68
|
+
floating: this.el,
|
|
69
|
+
placement: "bottom-end",
|
|
70
|
+
offset: 8,
|
|
71
|
+
arrow: true,
|
|
72
|
+
arrowColor: "tw-bg-white",
|
|
73
|
+
});
|
|
74
|
+
this.isShow = true;
|
|
75
|
+
await delay(100);
|
|
76
|
+
if (this.isLate) {
|
|
77
|
+
this.focusInput();
|
|
78
|
+
}
|
|
79
|
+
else {
|
|
80
|
+
this.focusTextarea();
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
focusInput() {
|
|
84
|
+
const input = this.el.querySelector("bcm-input");
|
|
85
|
+
input === null || input === void 0 ? void 0 : input.onBcmSelect();
|
|
86
|
+
}
|
|
87
|
+
focusTextarea() {
|
|
88
|
+
const textarea = this.el.querySelector("bcm-textarea");
|
|
89
|
+
textarea === null || textarea === void 0 ? void 0 : textarea.onBcmSelect();
|
|
90
|
+
}
|
|
91
|
+
async hide() {
|
|
92
|
+
if (this.isShow) {
|
|
93
|
+
this.el.remove();
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
handleClickOutside(event) {
|
|
97
|
+
if (!Generate.findEventPath(event, this.el)) {
|
|
98
|
+
this.hide();
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
async formSubmit() {
|
|
102
|
+
var _a, _b, _c;
|
|
103
|
+
const { lateMinutes, comment, isLate } = this;
|
|
104
|
+
if (isLate) {
|
|
105
|
+
if (lateMinutes) {
|
|
106
|
+
if (!(lateMinutes >= 0 && lateMinutes <= 200)) {
|
|
107
|
+
return;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
const { isValid } = await ((_a = this.el.querySelector("bcm-form")) === null || _a === void 0 ? void 0 : _a.submit());
|
|
112
|
+
if (!isValid)
|
|
113
|
+
return;
|
|
114
|
+
this.handleSave(lateMinutes || ((_b = this.selectedItem) === null || _b === void 0 ? void 0 : _b.lateMin), comment || ((_c = this.selectedItem) === null || _c === void 0 ? void 0 : _c.comment));
|
|
115
|
+
}
|
|
116
|
+
render() {
|
|
117
|
+
var _a, _b;
|
|
118
|
+
const { size } = this;
|
|
119
|
+
const { host, footer } = attendanceActionCommentStyle({
|
|
120
|
+
size,
|
|
121
|
+
});
|
|
122
|
+
return (h(Host, { class: host(), onKeyDown: e => {
|
|
123
|
+
if (e.key === "Escape")
|
|
124
|
+
this.hide();
|
|
125
|
+
} }, h("bcm-form", { validation: true, style: { width: "256px" } }, this.isLate ? (h("bcm-input", { label: "Minus Late", required: true, name: "lateMin", id: this._id + "-input-dropdown-late-content-input", type: "number", size: this.size, autocomplete: false, "no-margin": true, min: 0, max: 200, value: (_a = this.selectedItem) === null || _a === void 0 ? void 0 : _a.lateMin, placeholder: "Enter Minus Late", "onBcm-change": ({ detail }) => (this.lateMinutes = detail), onKeyDown: e => {
|
|
126
|
+
if (e.key === "Enter")
|
|
127
|
+
this.formSubmit();
|
|
128
|
+
} }, h("i", { slot: "prefix", class: "far fa-clock" }))) : null, h("bcm-textarea", { name: "comment", value: (_b = this.selectedItem) === null || _b === void 0 ? void 0 : _b.comment, size: this.size, "onBcm-change": ({ detail }) => (this.comment = detail), label: "Description", "no-caption": true, rows: 4, onKeyDown: e => {
|
|
129
|
+
if (e.key === "Enter")
|
|
130
|
+
this.formSubmit();
|
|
131
|
+
} }), h("footer", { class: footer() }, h("bcm-button", { class: "tw-order-2", icon: "fas fa-save", "icon-position": "prefix", size: this.size, onClick: () => this.formSubmit() }, "Save"), h("bcm-button", { class: "tw-order-1", icon: "fas fa-times", kind: "ghost", size: this.size, "icon-position": "prefix", onClick: () => this.hide() }, "Close")))));
|
|
132
|
+
}
|
|
133
|
+
get el() { return getElement(this); }
|
|
134
|
+
};
|
|
135
|
+
|
|
136
|
+
export { BcmAttendanceActionsComment as bcm_attendance_actions_comment };
|
|
@@ -0,0 +1,97 @@
|
|
|
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-4614b7f0.js';
|
|
6
|
+
import './color-helper-c4fa9ebc.js';
|
|
7
|
+
import './datetime-helper-df25808a.js';
|
|
8
|
+
import { G as Generate } from './generate-ea4b5630.js';
|
|
9
|
+
import './number-helper-148cd002.js';
|
|
10
|
+
import './string-helper-3526c4fe.js';
|
|
11
|
+
import './validators-78ec4f0a.js';
|
|
12
|
+
import './element-dragger-7ea06c76.js';
|
|
13
|
+
import { F as FloatingUI } from './floating-ui-a4e67246.js';
|
|
14
|
+
import { a as Bcm } from './bcm-0f9cc27c.js';
|
|
15
|
+
import { c as classnames } from './index-b84bc8c9.js';
|
|
16
|
+
import { c as ce } from './index-3bc8c6e3.js';
|
|
17
|
+
import './colors-1d7854ea.js';
|
|
18
|
+
import './utils-b3338faf.js';
|
|
19
|
+
import './colors-e1c31f79.js';
|
|
20
|
+
import './_commonjsHelpers-be0d4ec8.js';
|
|
21
|
+
import './package-b6a53fde.js';
|
|
22
|
+
|
|
23
|
+
const attendanceActionDropdownStyle = ce({
|
|
24
|
+
slots: {
|
|
25
|
+
host: [
|
|
26
|
+
"tw-w-fit",
|
|
27
|
+
"tw-absolute tw-left-0 tw-right-0 tw-z-tooltip tw-opacity-100 tw-transition-opacity tw-duration-300",
|
|
28
|
+
"tw-overscroll-contain tw-scroll-smooth tw-rounded tw-bg-white tw-shadow tw-max-h-64 tw-overflow-y-auto",
|
|
29
|
+
"bcm-ui-element bcm-attendance-actions tw-flex tw-flex-col tw-items-start tw-justify-start tw-p-2 tw-font-medium tw-text-slate-700"
|
|
30
|
+
],
|
|
31
|
+
dataItem: ["tw-flex tw-w-full tw-cursor-pointer tw-flex-row tw-items-start tw-justify-start tw-gap-2 tw-rounded hover:tw-bg-blue-100"],
|
|
32
|
+
key: ["tw-font-mono tw-text-slate-600"],
|
|
33
|
+
selectedItem: ["tw-bg-blue-100"],
|
|
34
|
+
},
|
|
35
|
+
variants: {
|
|
36
|
+
size: {
|
|
37
|
+
small: {
|
|
38
|
+
dataItem: ["tw-text-2.5 tw-px-2.5 tw-py-2"],
|
|
39
|
+
},
|
|
40
|
+
medium: {
|
|
41
|
+
dataItem: ["tw-text-3 tw-px-3 tw-py-2"],
|
|
42
|
+
},
|
|
43
|
+
large: {
|
|
44
|
+
dataItem: ["tw-text-4 tw-px-4 tw-py-2"],
|
|
45
|
+
},
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
defaultVariants: {
|
|
49
|
+
size: "medium"
|
|
50
|
+
},
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
const BcmAttendanceActionsDropdown = class {
|
|
54
|
+
constructor(hostRef) {
|
|
55
|
+
registerInstance(this, hostRef);
|
|
56
|
+
this.change = createEvent(this, "bcm-attendance-actions-dropdown-change", 3);
|
|
57
|
+
this._id = Generate.UID();
|
|
58
|
+
this.size = Bcm.Size.medium;
|
|
59
|
+
this.disabled = false;
|
|
60
|
+
this.selectedKey = null;
|
|
61
|
+
this.targetId = null;
|
|
62
|
+
this.isShow = false;
|
|
63
|
+
this.data = [];
|
|
64
|
+
}
|
|
65
|
+
handleSelectItem(item) {
|
|
66
|
+
this.selectedKey = item.key;
|
|
67
|
+
this.change.emit(item);
|
|
68
|
+
}
|
|
69
|
+
async show() {
|
|
70
|
+
const targetElement = document.getElementById(this.targetId);
|
|
71
|
+
FloatingUI({
|
|
72
|
+
ref: targetElement,
|
|
73
|
+
floating: this.el,
|
|
74
|
+
placement: "bottom-end",
|
|
75
|
+
offset: 4,
|
|
76
|
+
});
|
|
77
|
+
this.isShow = true;
|
|
78
|
+
}
|
|
79
|
+
async hide() {
|
|
80
|
+
if (this.isShow) {
|
|
81
|
+
this.el.remove();
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
handleClickOutside() {
|
|
85
|
+
this.hide();
|
|
86
|
+
}
|
|
87
|
+
render() {
|
|
88
|
+
const { size } = this;
|
|
89
|
+
const { host, dataItem, selectedItem, key } = attendanceActionDropdownStyle({
|
|
90
|
+
size,
|
|
91
|
+
});
|
|
92
|
+
return (h(Host, { class: host() }, this.data.map((item) => (h("div", { class: classnames(dataItem(), this.selectedKey === item.key && selectedItem()), onClick: () => this.handleSelectItem(item) }, h("span", { class: key() }, item.key, " - "), h("span", null, item.value))))));
|
|
93
|
+
}
|
|
94
|
+
get el() { return getElement(this); }
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
export { BcmAttendanceActionsDropdown as bcm_attendance_actions_dropdown };
|