bromcom-ui 2.12.3-rc.2 → 2.12.3
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-01dde034.entry.js +5 -0
- package/dist/bromcom-ui/p-01ffa0a9.entry.js +5 -0
- package/dist/bromcom-ui/{p-bf0abe3f.entry.js → p-0715c523.entry.js} +1 -1
- package/dist/bromcom-ui/{p-18dbbd45.entry.js → p-083126ea.entry.js} +1 -1
- package/dist/bromcom-ui/p-096837b5.entry.js +5 -0
- package/dist/bromcom-ui/p-09cb8ce4.entry.js +5 -0
- package/dist/bromcom-ui/p-0a3ce86e.entry.js +5 -0
- package/dist/bromcom-ui/{p-ebc7d5eb.entry.js → p-1141f58d.entry.js} +1 -1
- package/dist/bromcom-ui/p-1345d51b.entry.js +5 -0
- package/dist/bromcom-ui/p-177e1e89.entry.js +5 -0
- package/dist/bromcom-ui/{p-214834d8.entry.js → p-1812bfb7.entry.js} +1 -1
- package/dist/bromcom-ui/{p-9c94733a.entry.js → p-19b32974.entry.js} +1 -1
- package/dist/bromcom-ui/{p-ece578ef.entry.js → p-1b558b0f.entry.js} +1 -1
- package/dist/bromcom-ui/{p-1830cdf1.js → p-21bacc22.js} +1 -1
- package/dist/bromcom-ui/p-270e1b24.entry.js +5 -0
- package/dist/bromcom-ui/p-29bc95a1.entry.js +5 -0
- package/dist/bromcom-ui/p-2b02c9d5.entry.js +5 -0
- package/dist/bromcom-ui/p-2b0c3160.entry.js +5 -0
- package/dist/bromcom-ui/{p-f0e30624.entry.js → p-2b42d77e.entry.js} +1 -1
- package/dist/bromcom-ui/{p-8e683b32.js → p-2cd6cdee.js} +1 -1
- package/dist/bromcom-ui/p-2e96086c.entry.js +5 -0
- package/dist/bromcom-ui/{p-8ea0e777.entry.js → p-3288f732.entry.js} +1 -1
- package/dist/bromcom-ui/{p-d551a51d.entry.js → p-32c55505.entry.js} +1 -1
- package/dist/bromcom-ui/p-349400c6.entry.js +5 -0
- package/dist/bromcom-ui/{p-e0369655.entry.js → p-375e9750.entry.js} +1 -1
- package/dist/bromcom-ui/p-376a20ed.js +5 -0
- package/dist/bromcom-ui/{p-9bfba564.entry.js → p-3aaa60b9.entry.js} +1 -1
- package/dist/bromcom-ui/{p-fae6b16a.entry.js → p-3f34cf2a.entry.js} +1 -1
- package/dist/bromcom-ui/p-41276d76.entry.js +5 -0
- package/dist/bromcom-ui/p-4393b33e.entry.js +5 -0
- package/dist/bromcom-ui/p-45a24494.entry.js +5 -0
- package/dist/bromcom-ui/p-4874c7d0.entry.js +5 -0
- package/dist/bromcom-ui/p-49bc13a0.entry.js +5 -0
- package/dist/bromcom-ui/p-4bd65d2f.entry.js +5 -0
- package/dist/bromcom-ui/{p-856cb58c.entry.js → p-4ca7e0e7.entry.js} +1 -1
- package/dist/bromcom-ui/p-4e03575c.entry.js +7 -0
- package/dist/bromcom-ui/p-4f0bf943.entry.js +5 -0
- package/dist/bromcom-ui/{p-ba9eff2a.entry.js → p-59f7fa84.entry.js} +1 -1
- package/dist/bromcom-ui/{p-f210c256.entry.js → p-5d266fd0.entry.js} +1 -1
- package/dist/bromcom-ui/{p-594a57c3.entry.js → p-5d670fd7.entry.js} +1 -1
- package/dist/bromcom-ui/p-6404c57b.entry.js +5 -0
- package/dist/bromcom-ui/{p-85eedabc.js → p-6657830f.js} +1 -1
- package/dist/bromcom-ui/p-68b95b96.entry.js +5 -0
- package/dist/bromcom-ui/{p-af8674da.js → p-6bdf0cbc.js} +1 -1
- package/dist/bromcom-ui/{p-499d8454.js → p-6bea284a.js} +1 -1
- package/dist/bromcom-ui/{p-1c801d0c.entry.js → p-77ef609e.entry.js} +1 -1
- package/dist/bromcom-ui/p-790ff40a.entry.js +5 -0
- package/dist/bromcom-ui/p-7c3dcd4e.entry.js +5 -0
- package/dist/bromcom-ui/p-7dbfff1b.entry.js +5 -0
- package/dist/bromcom-ui/{p-6f861fed.js → p-7e44e6b5.js} +1 -1
- package/dist/bromcom-ui/p-7fa0942c.js +5 -0
- package/dist/bromcom-ui/p-8256af97.entry.js +5 -0
- package/dist/bromcom-ui/p-85936d14.entry.js +5 -0
- package/dist/bromcom-ui/p-8b6d3a37.js +5 -0
- package/dist/bromcom-ui/{p-b43e06b4.entry.js → p-8bc7d1dc.entry.js} +1 -1
- package/dist/bromcom-ui/{p-6f2e4c9b.js → p-8c018ae0.js} +1 -1
- package/dist/bromcom-ui/{p-d54ecc8a.entry.js → p-8d17c696.entry.js} +1 -1
- package/dist/bromcom-ui/p-8f32198d.js +14 -0
- package/dist/bromcom-ui/{p-c3387cb1.entry.js → p-8f519009.entry.js} +1 -1
- package/dist/bromcom-ui/{p-6b3a6d60.entry.js → p-8fa7d3c3.entry.js} +1 -1
- package/dist/bromcom-ui/p-904b0c28.entry.js +5 -0
- package/dist/bromcom-ui/p-915fd3f1.entry.js +5 -0
- package/dist/bromcom-ui/p-93c2058f.entry.js +5 -0
- package/dist/bromcom-ui/p-96d7ab4a.entry.js +5 -0
- package/dist/bromcom-ui/{p-bdc78a44.entry.js → p-9b59c689.entry.js} +1 -1
- package/dist/bromcom-ui/p-9c0bc44a.js +5 -0
- package/dist/bromcom-ui/{p-d65bc842.js → p-a0d6d680.js} +1 -1
- package/dist/bromcom-ui/{p-5dea2654.entry.js → p-a0f44b56.entry.js} +1 -1
- package/dist/bromcom-ui/p-a23e04ba.entry.js +5 -0
- package/dist/bromcom-ui/{p-1c9314bd.entry.js → p-a486613b.entry.js} +1 -1
- package/dist/bromcom-ui/{p-626b805d.entry.js → p-a6aa173f.entry.js} +1 -1
- package/dist/bromcom-ui/p-a6b1a008.entry.js +5 -0
- package/dist/bromcom-ui/p-ab0ad97f.js +5 -0
- package/dist/bromcom-ui/{p-a2df6c19.js → p-aeb4be41.js} +1 -1
- package/dist/bromcom-ui/{p-b8678480.entry.js → p-bb6f4952.entry.js} +1 -1
- package/dist/bromcom-ui/{p-2d0ff35e.js → p-beaec5b8.js} +1 -1
- package/dist/bromcom-ui/p-c1a992e7.entry.js +5 -0
- package/dist/bromcom-ui/p-c1c51cf2.entry.js +5 -0
- package/dist/bromcom-ui/{p-69260d36.entry.js → p-c49b6287.entry.js} +1 -1
- package/dist/bromcom-ui/{p-4d2bf0e7.js → p-c77541f4.js} +2 -2
- package/dist/bromcom-ui/{p-a5d58be8.js → p-c7ae8fa9.js} +1 -1
- package/dist/bromcom-ui/{p-2ed86248.entry.js → p-cb7d5481.entry.js} +1 -1
- package/dist/bromcom-ui/p-cbb99519.entry.js +5 -0
- package/dist/bromcom-ui/{p-27d9f02a.js → p-cedb9ca3.js} +1 -1
- package/dist/bromcom-ui/{p-4e31f894.entry.js → p-d0cd1d32.entry.js} +1 -1
- package/dist/bromcom-ui/p-d231f047.entry.js +5 -0
- package/dist/bromcom-ui/p-d44ec0ea.entry.js +5 -0
- package/dist/bromcom-ui/{p-271c5e3c.entry.js → p-d53c9b92.entry.js} +1 -1
- package/dist/bromcom-ui/{p-2aaeb247.entry.js → p-d59d9687.entry.js} +1 -1
- package/dist/bromcom-ui/p-d5f03511.entry.js +5 -0
- package/dist/bromcom-ui/{p-df76af7c.entry.js → p-d623e891.entry.js} +1 -1
- package/dist/bromcom-ui/{p-3971c237.entry.js → p-d6b1465a.entry.js} +1 -1
- package/dist/bromcom-ui/p-e0ab7b38.js +11 -0
- package/dist/bromcom-ui/{p-2d10739e.entry.js → p-e0cc8f86.entry.js} +1 -1
- package/dist/bromcom-ui/p-e1b6f98e.entry.js +5 -0
- package/dist/bromcom-ui/p-e25c4375.entry.js +5 -0
- package/dist/bromcom-ui/p-e29aebf7.entry.js +5 -0
- package/dist/bromcom-ui/{p-7d18ce0e.entry.js → p-e8eaa3bb.entry.js} +1 -1
- package/dist/bromcom-ui/p-eaa94da0.entry.js +5 -0
- package/dist/bromcom-ui/{p-b72ad073.entry.js → p-ec957130.entry.js} +1 -1
- package/dist/bromcom-ui/{p-43c578cf.js → p-eca0acda.js} +1 -1
- package/dist/bromcom-ui/p-ef5cba72.js +5 -0
- package/dist/bromcom-ui/p-f5074bd8.js +5 -0
- package/dist/bromcom-ui/p-fb081ff7.entry.js +5 -0
- package/dist/bromcom-ui/p-fc787048.entry.js +5 -0
- package/dist/bromcom-ui/p-fdf2e30b.entry.js +5 -0
- package/dist/bromcom-ui/p-feed1c5a.entry.js +5 -0
- package/dist/cjs/Overflow-5a73947b.js +2233 -0
- package/dist/cjs/bcm-accordion.cjs.entry.js +74 -0
- package/dist/cjs/bcm-alert.cjs.entry.js +2 -2
- package/dist/cjs/bcm-attendance-actions-comment.cjs.entry.js +4 -4
- package/dist/cjs/bcm-attendance-actions-dropdown.cjs.entry.js +4 -4
- package/dist/cjs/bcm-attendance-actions.cjs.entry.js +330 -0
- package/dist/cjs/bcm-attendance.cjs.entry.js +35 -0
- package/dist/cjs/bcm-avatar_2.cjs.entry.js +210 -0
- package/dist/cjs/bcm-breadcrumb.cjs.entry.js +2 -2
- package/dist/cjs/bcm-button-group.cjs.entry.js +92 -0
- package/dist/cjs/bcm-button.cjs.entry.js +372 -0
- package/dist/cjs/bcm-caption.cjs.entry.js +4 -4
- package/dist/cjs/bcm-card.cjs.entry.js +2 -2
- package/dist/cjs/bcm-checkbox-group.cjs.entry.js +415 -0
- package/dist/cjs/bcm-checkbox-lite_9.cjs.entry.js +2529 -0
- package/dist/cjs/bcm-checkbox_2.cjs.entry.js +194 -0
- package/dist/cjs/bcm-chip-group.cjs.entry.js +4 -4
- package/dist/cjs/bcm-chip.cjs.entry.js +91 -0
- package/dist/cjs/bcm-collapse-group.cjs.entry.js +43 -0
- package/dist/cjs/bcm-collapse.cjs.entry.js +62 -0
- package/dist/cjs/bcm-color-input.cjs.entry.js +77 -0
- package/dist/cjs/bcm-colorful_2.cjs.entry.js +251 -0
- package/dist/cjs/bcm-date-picker.cjs.entry.js +2 -2
- package/dist/cjs/bcm-date_6.cjs.entry.js +15363 -0
- package/dist/cjs/bcm-datetime-picker.cjs.entry.js +2 -2
- package/dist/cjs/bcm-default.cjs.entry.js +2 -2
- package/dist/cjs/bcm-drawer.cjs.entry.js +96 -0
- package/dist/cjs/bcm-dropdown.cjs.entry.js +119 -0
- package/dist/cjs/bcm-expansion-panel.cjs.entry.js +116 -0
- package/dist/cjs/bcm-form-2.cjs.entry.js +2 -2
- package/dist/cjs/bcm-input-2.cjs.entry.js +2 -2
- package/dist/cjs/bcm-input-custom.cjs.entry.js +2 -2
- package/dist/cjs/bcm-input-dropdown.cjs.entry.js +4 -4
- package/dist/cjs/bcm-input_2.cjs.entry.js +550 -0
- package/dist/cjs/bcm-item.cjs.entry.js +72 -0
- package/dist/cjs/bcm-items.cjs.entry.js +49 -0
- package/dist/cjs/bcm-link.cjs.entry.js +51 -0
- package/dist/cjs/bcm-list_3.cjs.entry.js +1977 -0
- package/dist/cjs/bcm-menu.cjs.entry.js +151 -0
- package/dist/cjs/bcm-modal-2-footer.cjs.entry.js +4 -4
- package/dist/cjs/bcm-modal-2-header.cjs.entry.js +4 -4
- package/dist/cjs/bcm-modal-2.cjs.entry.js +4 -4
- package/dist/cjs/bcm-modal.cjs.entry.js +157 -0
- package/dist/cjs/bcm-number-input.cjs.entry.js +4 -4
- package/dist/cjs/bcm-old-input.cjs.entry.js +397 -0
- package/dist/cjs/bcm-old-tag_2.cjs.entry.js +145 -0
- package/dist/cjs/bcm-popconfirm-box.cjs.entry.js +115 -0
- package/dist/cjs/bcm-popconfirm.cjs.entry.js +101 -0
- package/dist/cjs/bcm-popover.cjs.entry.js +4 -4
- package/dist/cjs/bcm-progress.cjs.entry.js +162 -0
- package/dist/cjs/bcm-radio-group.cjs.entry.js +161 -0
- package/dist/cjs/bcm-radio.cjs.entry.js +65 -0
- package/dist/cjs/bcm-range.cjs.entry.js +2 -2
- package/dist/cjs/bcm-select.cjs.entry.js +1195 -0
- package/dist/cjs/bcm-shortcut.cjs.entry.js +65 -0
- package/dist/cjs/bcm-skeleton.cjs.entry.js +4 -4
- package/dist/cjs/bcm-step.cjs.entry.js +89 -0
- package/dist/cjs/bcm-stepper.cjs.entry.js +240 -0
- package/dist/cjs/bcm-switch.cjs.entry.js +151 -0
- package/dist/cjs/bcm-tab-group.cjs.entry.js +210 -0
- package/dist/cjs/bcm-tab-item-header.cjs.entry.js +60 -0
- package/dist/cjs/bcm-tab-item.cjs.entry.js +91 -0
- package/dist/cjs/bcm-tab.cjs.entry.js +72 -0
- package/dist/cjs/bcm-table.cjs.entry.js +4 -4
- package/dist/cjs/bcm-tabs.cjs.entry.js +370 -0
- package/dist/cjs/bcm-tag.cjs.entry.js +3 -3
- package/dist/cjs/bcm-text.cjs.entry.js +49 -0
- package/dist/cjs/bcm-time-picker.cjs.entry.js +2 -2
- package/dist/cjs/bcm-toast.cjs.entry.js +2 -2
- package/dist/cjs/bromcom-ui.cjs.js +3 -3
- package/dist/cjs/{generate-beac9c8d.js → generate-b43c3d3b.js} +14 -14
- package/dist/cjs/{global-d4be0c46.js → global-642cd031.js} +1 -1
- package/dist/cjs/input-template-ccfbe214.js +92 -0
- package/dist/cjs/json-parse-decarator-f1c0961d.js +40 -0
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/lodash-917168d7.js +17199 -0
- package/dist/cjs/{number-helper-46c7892f.js → number-helper-a708fa79.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-e6628eb2.js → package-033055fc.js} +1 -1
- package/dist/cjs/stepper-states-e293bcd3.js +85 -0
- package/dist/cjs/tooltip-helper-311d3baa.js +158 -0
- package/dist/cjs/{validators-27568118.js → validators-84d8ae28.js} +1 -1
- package/dist/collection/components/molecules/tab-group/tab-group.js +1 -1
- package/dist/collection/components/molecules/tab-group/tab-item-header.js +6 -5
- package/dist/collection/components/molecules/tab-group/tab-item.js +1 -1
- package/dist/collection/components/third-parts/rc-picker/date.js +1 -1
- package/dist/collection/components/third-parts/rc-picker/rc-picker.css +221 -112
- package/dist/collection/components/third-parts/rc-picker/rc-picker.js +20 -1
- package/dist/components/bcm-date.js +1 -1
- package/dist/components/bcm-tab-group.js +1 -1
- package/dist/components/bcm-tab-item-header.js +6 -5
- package/dist/components/bcm-tab-item.js +1 -1
- package/dist/components/generate.js +1 -1
- package/dist/components/rc-picker.js +5 -2
- package/dist/esm/Overflow-40c63001.js +2217 -0
- package/dist/esm/{_commonjsHelpers-7002e5de.js → _commonjsHelpers-82aa9212.js} +1 -1
- package/dist/esm/bcm-accordion.entry.js +70 -0
- package/dist/esm/bcm-alert.entry.js +6 -6
- package/dist/esm/bcm-attendance-actions-comment.entry.js +10 -10
- package/dist/esm/bcm-attendance-actions-dropdown.entry.js +11 -11
- package/dist/esm/bcm-attendance-actions.entry.js +326 -0
- package/dist/esm/bcm-attendance.entry.js +31 -0
- package/dist/esm/bcm-autocomplete.entry.js +2 -2
- package/dist/esm/bcm-avatar_2.entry.js +205 -0
- package/dist/esm/bcm-breadcrumb.entry.js +5 -5
- package/dist/esm/bcm-button-group.entry.js +88 -0
- package/dist/esm/bcm-button.entry.js +368 -0
- package/dist/esm/bcm-caption.entry.js +12 -12
- package/dist/esm/bcm-card.entry.js +9 -9
- package/dist/esm/bcm-checkbox-group.entry.js +411 -0
- package/dist/esm/bcm-checkbox-lite_9.entry.js +2517 -0
- package/dist/esm/bcm-checkbox_2.entry.js +189 -0
- package/dist/esm/bcm-chip-group.entry.js +13 -13
- package/dist/esm/bcm-chip.entry.js +87 -0
- package/dist/esm/bcm-collapse-group.entry.js +39 -0
- package/dist/esm/bcm-collapse.entry.js +58 -0
- package/dist/esm/bcm-color-input.entry.js +73 -0
- package/dist/esm/bcm-colorful_2.entry.js +246 -0
- package/dist/esm/bcm-colorpicker.entry.js +4 -4
- package/dist/esm/bcm-date-picker.entry.js +6 -6
- package/dist/esm/bcm-date_6.entry.js +15354 -0
- package/dist/esm/bcm-datetime-picker.entry.js +10 -10
- package/dist/esm/bcm-default.entry.js +4 -4
- package/dist/esm/bcm-drawer.entry.js +92 -0
- package/dist/esm/bcm-dropdown.entry.js +115 -0
- package/dist/esm/bcm-error-layout.entry.js +2 -2
- package/dist/esm/bcm-expansion-panel.entry.js +112 -0
- package/dist/esm/bcm-form-2.entry.js +5 -5
- package/dist/esm/bcm-input-2.entry.js +6 -6
- package/dist/esm/bcm-input-custom.entry.js +5 -5
- package/dist/esm/bcm-input-dropdown.entry.js +12 -12
- package/dist/esm/bcm-input_2.entry.js +545 -0
- package/dist/esm/bcm-item.entry.js +68 -0
- package/dist/esm/bcm-items.entry.js +45 -0
- package/dist/esm/bcm-link.entry.js +47 -0
- package/dist/esm/bcm-list_3.entry.js +1971 -0
- package/dist/esm/bcm-menu.entry.js +147 -0
- package/dist/esm/bcm-message.entry.js +2 -2
- package/dist/esm/bcm-modal-2-footer.entry.js +11 -11
- package/dist/esm/bcm-modal-2-header.entry.js +10 -10
- package/dist/esm/bcm-modal-2.entry.js +11 -11
- package/dist/esm/bcm-modal.entry.js +153 -0
- package/dist/esm/bcm-notification.entry.js +2 -2
- package/dist/esm/bcm-number-input.entry.js +12 -12
- package/dist/esm/bcm-old-input.entry.js +393 -0
- package/dist/esm/bcm-old-tag_2.entry.js +140 -0
- package/dist/esm/bcm-overlay_2.entry.js +3 -3
- package/dist/esm/bcm-popconfirm-box.entry.js +111 -0
- package/dist/esm/bcm-popconfirm.entry.js +97 -0
- package/dist/esm/bcm-popover.entry.js +10 -10
- package/dist/esm/bcm-progress.entry.js +158 -0
- package/dist/esm/bcm-radio-group.entry.js +157 -0
- package/dist/esm/bcm-radio.entry.js +61 -0
- package/dist/esm/bcm-range.entry.js +6 -6
- package/dist/esm/bcm-react-number.entry.js +2 -2
- package/dist/esm/bcm-result.entry.js +2 -2
- package/dist/esm/bcm-select-group.entry.js +2 -2
- package/dist/esm/bcm-select-option.entry.js +2 -2
- package/dist/esm/bcm-select.entry.js +1191 -0
- package/dist/esm/bcm-shortcut.entry.js +61 -0
- package/dist/esm/bcm-skeleton.entry.js +10 -10
- package/dist/esm/bcm-step.entry.js +85 -0
- package/dist/esm/bcm-stepper.entry.js +236 -0
- package/dist/esm/bcm-switch.entry.js +147 -0
- package/dist/esm/bcm-tab-group.entry.js +206 -0
- package/dist/esm/bcm-tab-item-header.entry.js +56 -0
- package/dist/esm/bcm-tab-item.entry.js +87 -0
- package/dist/esm/bcm-tab-pane.entry.js +2 -2
- package/dist/esm/bcm-tab.entry.js +68 -0
- package/dist/esm/bcm-table.entry.js +11 -11
- package/dist/esm/bcm-tabs-content.entry.js +3 -3
- package/dist/esm/bcm-tabs.entry.js +366 -0
- package/dist/esm/bcm-tag.entry.js +7 -7
- package/dist/esm/bcm-text.entry.js +45 -0
- package/dist/esm/bcm-time-picker.entry.js +6 -6
- package/dist/esm/bcm-timeline-item.entry.js +2 -2
- package/dist/esm/bcm-timeline.entry.js +2 -2
- package/dist/esm/bcm-toast.entry.js +7 -7
- package/dist/esm/bromcom-ui.js +3 -3
- package/dist/esm/{caption-template-3cd42c3b.js → caption-template-d7953d13.js} +1 -1
- package/dist/esm/{color-helper-ba15b0d8.js → color-helper-74614f24.js} +2 -2
- package/dist/esm/{colors-ed4e7579.js → colors-dd598eea.js} +1 -1
- package/dist/esm/{element-dragger-b75266e6.js → element-dragger-89bb52fd.js} +1 -1
- package/dist/esm/{generate-b30859e0.js → generate-d009624a.js} +15 -15
- package/dist/esm/{global-7e00a8e5.js → global-f1d14ca8.js} +1 -1
- package/dist/esm/{index-0d3a56ec.js → index-036974d7.js} +1 -1
- package/dist/esm/{index-00c8a8f7.js → index-f549811f.js} +1 -1
- package/dist/esm/input-template-f22c62aa.js +90 -0
- package/dist/esm/json-parse-decarator-56846a0c.js +38 -0
- package/dist/esm/{label-template-ef97aadb.js → label-template-a26f76c0.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/lodash-4197be99.js +17197 -0
- package/dist/esm/{number-helper-70d15d1b.js → number-helper-b7a7a318.js} +1 -1
- package/dist/esm/old-bcm-popover-box.entry.js +10 -10
- package/dist/esm/old-bcm-popover.entry.js +5 -5
- package/dist/esm/{package-8f0a3af5.js → package-7549581c.js} +1 -1
- package/dist/esm/{popover-placement-2bf3a181.js → popover-placement-d12fec40.js} +1 -1
- package/dist/esm/{slot-template-d3ae9f27.js → slot-template-2a19b2db.js} +1 -1
- package/dist/esm/stepper-states-ec0b9c40.js +83 -0
- package/dist/esm/{string-helper-69203215.js → string-helper-3592bdc2.js} +1 -1
- package/dist/esm/tooltip-helper-ddb8b9e3.js +156 -0
- package/dist/esm/{utils-7727d09e.js → utils-57652744.js} +1 -1
- package/dist/esm/{validators-0ccb9921.js → validators-5519219e.js} +1 -1
- package/dist/types/components/third-parts/rc-picker/rc-picker.d.ts +1 -0
- package/dist/types/components.d.ts +2 -0
- package/package.json +2 -2
- package/dist/bromcom-ui/p-053dc717.entry.js +0 -5
- package/dist/bromcom-ui/p-5b03442c.entry.js +0 -5
- package/dist/bromcom-ui/p-64fad38b.js +0 -11
- package/dist/bromcom-ui/p-6b9f10a7.entry.js +0 -5
- package/dist/bromcom-ui/p-81d248d8.js +0 -5
- package/dist/bromcom-ui/p-9d71cecb.entry.js +0 -5
- package/dist/bromcom-ui/p-a9388655.entry.js +0 -16
- package/dist/bromcom-ui/p-bddce313.js +0 -5
- package/dist/bromcom-ui/p-d7194c4d.entry.js +0 -5
- package/dist/cjs/bcm-accordion_63.cjs.entry.js +0 -46097
- package/dist/esm/bcm-accordion_63.entry.js +0 -46031
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Stencil
|
|
3
|
+
* Copyright (c) Bromcom.
|
|
4
|
+
*/
|
|
5
|
+
'use strict';
|
|
6
|
+
|
|
7
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
8
|
+
|
|
9
|
+
const index = require('./index-c591ecec.js');
|
|
10
|
+
const generate = require('./generate-b43c3d3b.js');
|
|
11
|
+
require('./package-033055fc.js');
|
|
12
|
+
require('./colors-250d0982.js');
|
|
13
|
+
require('./_commonjsHelpers-ed84c3ca.js');
|
|
14
|
+
|
|
15
|
+
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}";
|
|
16
|
+
|
|
17
|
+
const BcmAccordion = class {
|
|
18
|
+
constructor(hostRef) {
|
|
19
|
+
index.registerInstance(this, hostRef);
|
|
20
|
+
this._id = generate.Generate.UID();
|
|
21
|
+
this.multi = false;
|
|
22
|
+
}
|
|
23
|
+
componentDidRender() {
|
|
24
|
+
if (!this.multi)
|
|
25
|
+
this.checkExpandedCount();
|
|
26
|
+
}
|
|
27
|
+
checkExpandedCount() {
|
|
28
|
+
var _a, _b;
|
|
29
|
+
const accordion = this.el.querySelectorAll('.bcm-expansion-panel');
|
|
30
|
+
if (accordion) {
|
|
31
|
+
const checkExpandedCount = Array.from(accordion)
|
|
32
|
+
.map((accordion) => accordion.expanded)
|
|
33
|
+
.filter(Boolean).length;
|
|
34
|
+
if (checkExpandedCount > 1) {
|
|
35
|
+
const getLastExpandedId = (_b = (_a = Array.from(accordion).filter((accordion) => accordion.expanded)) === null || _a === void 0 ? void 0 : _a.pop()) === null || _b === void 0 ? void 0 : _b.id;
|
|
36
|
+
Array.from(accordion).forEach((accordion) => {
|
|
37
|
+
if (accordion.id !== getLastExpandedId) {
|
|
38
|
+
accordion.expanded = false;
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
open(event) {
|
|
45
|
+
if (this.multi)
|
|
46
|
+
return;
|
|
47
|
+
const id = event.detail;
|
|
48
|
+
const accordion = this.el.querySelectorAll('.bcm-expansion-panel');
|
|
49
|
+
if (accordion) {
|
|
50
|
+
accordion.forEach((accordion) => {
|
|
51
|
+
if (accordion.id !== id) {
|
|
52
|
+
accordion.expanded = false;
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
isLoad(event) {
|
|
58
|
+
var _a, _b, _c;
|
|
59
|
+
if (!this.multi) {
|
|
60
|
+
var parentId = ((_b = (_a = event === null || event === void 0 ? void 0 : event.target) === null || _a === void 0 ? void 0 : _a.parentElement) === null || _b === void 0 ? void 0 : _b.id) || null;
|
|
61
|
+
var nodeName = ((_c = event === null || event === void 0 ? void 0 : event.target) === null || _c === void 0 ? void 0 : _c.nodeName) || null;
|
|
62
|
+
if (nodeName == 'BCM-EXPANSION-PANEL' && this._id == parentId) {
|
|
63
|
+
this.checkExpandedCount();
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
render() {
|
|
68
|
+
return (index.h(index.Host, { id: this._id }, index.h("slot", null)));
|
|
69
|
+
}
|
|
70
|
+
get el() { return index.getElement(this); }
|
|
71
|
+
};
|
|
72
|
+
BcmAccordion.style = accordionCss;
|
|
73
|
+
|
|
74
|
+
exports.bcm_accordion = BcmAccordion;
|
|
@@ -7,11 +7,11 @@
|
|
|
7
7
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
8
8
|
|
|
9
9
|
const index$1 = require('./index-c591ecec.js');
|
|
10
|
-
const generate = require('./generate-
|
|
10
|
+
const generate = require('./generate-b43c3d3b.js');
|
|
11
11
|
const index$2 = require('./index-95ae50d0.js');
|
|
12
12
|
const index = require('./index-d321de96.js');
|
|
13
13
|
const stringHelper = require('./string-helper-9cdfb273.js');
|
|
14
|
-
require('./package-
|
|
14
|
+
require('./package-033055fc.js');
|
|
15
15
|
require('./colors-250d0982.js');
|
|
16
16
|
require('./_commonjsHelpers-ed84c3ca.js');
|
|
17
17
|
require('./bcm-1d1fcf21.js');
|
|
@@ -9,10 +9,10 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
9
9
|
const index$1 = require('./index-c591ecec.js');
|
|
10
10
|
require('./color-helper-dc98a2ca.js');
|
|
11
11
|
require('./datetime-helper-eaf4fadb.js');
|
|
12
|
-
const generate = require('./generate-
|
|
13
|
-
require('./number-helper-
|
|
12
|
+
const generate = require('./generate-b43c3d3b.js');
|
|
13
|
+
require('./number-helper-a708fa79.js');
|
|
14
14
|
require('./string-helper-9cdfb273.js');
|
|
15
|
-
require('./validators-
|
|
15
|
+
require('./validators-84d8ae28.js');
|
|
16
16
|
require('./element-dragger-a8562f82.js');
|
|
17
17
|
const utils = require('./utils-fc077139.js');
|
|
18
18
|
const floatingUi = require('./floating-ui-5b396838.js');
|
|
@@ -21,7 +21,7 @@ const index = require('./index-5279dea2.js');
|
|
|
21
21
|
require('./colors-56282b00.js');
|
|
22
22
|
require('./colors-250d0982.js');
|
|
23
23
|
require('./_commonjsHelpers-ed84c3ca.js');
|
|
24
|
-
require('./package-
|
|
24
|
+
require('./package-033055fc.js');
|
|
25
25
|
|
|
26
26
|
const attendanceActionCommentStyle = index.ce({
|
|
27
27
|
slots: {
|
|
@@ -9,10 +9,10 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
9
9
|
const index$1 = require('./index-c591ecec.js');
|
|
10
10
|
require('./color-helper-dc98a2ca.js');
|
|
11
11
|
require('./datetime-helper-eaf4fadb.js');
|
|
12
|
-
const generate = require('./generate-
|
|
13
|
-
require('./number-helper-
|
|
12
|
+
const generate = require('./generate-b43c3d3b.js');
|
|
13
|
+
require('./number-helper-a708fa79.js');
|
|
14
14
|
require('./string-helper-9cdfb273.js');
|
|
15
|
-
require('./validators-
|
|
15
|
+
require('./validators-84d8ae28.js');
|
|
16
16
|
require('./element-dragger-a8562f82.js');
|
|
17
17
|
const floatingUi = require('./floating-ui-5b396838.js');
|
|
18
18
|
const bcm = require('./bcm-1d1fcf21.js');
|
|
@@ -22,7 +22,7 @@ require('./colors-56282b00.js');
|
|
|
22
22
|
require('./utils-fc077139.js');
|
|
23
23
|
require('./colors-250d0982.js');
|
|
24
24
|
require('./_commonjsHelpers-ed84c3ca.js');
|
|
25
|
-
require('./package-
|
|
25
|
+
require('./package-033055fc.js');
|
|
26
26
|
|
|
27
27
|
const attendanceActionDropdownStyle = index.ce({
|
|
28
28
|
slots: {
|
|
@@ -0,0 +1,330 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Stencil
|
|
3
|
+
* Copyright (c) Bromcom.
|
|
4
|
+
*/
|
|
5
|
+
'use strict';
|
|
6
|
+
|
|
7
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
8
|
+
|
|
9
|
+
const index$1 = require('./index-c591ecec.js');
|
|
10
|
+
require('./color-helper-dc98a2ca.js');
|
|
11
|
+
require('./datetime-helper-eaf4fadb.js');
|
|
12
|
+
const generate = require('./generate-b43c3d3b.js');
|
|
13
|
+
require('./number-helper-a708fa79.js');
|
|
14
|
+
require('./string-helper-9cdfb273.js');
|
|
15
|
+
require('./validators-84d8ae28.js');
|
|
16
|
+
require('./element-dragger-a8562f82.js');
|
|
17
|
+
const bcm = require('./bcm-1d1fcf21.js');
|
|
18
|
+
const index$2 = require('./index-95ae50d0.js');
|
|
19
|
+
const index = require('./index-5279dea2.js');
|
|
20
|
+
require('./colors-56282b00.js');
|
|
21
|
+
require('./utils-fc077139.js');
|
|
22
|
+
require('./colors-250d0982.js');
|
|
23
|
+
require('./_commonjsHelpers-ed84c3ca.js');
|
|
24
|
+
require('./package-033055fc.js');
|
|
25
|
+
|
|
26
|
+
// --bcm-attendance-actions-button-bg: #F1F5F9; /* slate-100 */
|
|
27
|
+
// --bcm-attendance-actions-button-text: #334155; /* slate-700 */
|
|
28
|
+
// --bcm-attendance-actions-button-border: #CBD5E1; /* slate-300 */
|
|
29
|
+
// --bcm-attendance-actions-button-hover-bg: #E2E8F0; /* slate-200 */
|
|
30
|
+
// --bcm-attendance-actions-button-active-bg: #CBD5E1; /* slate-300 */
|
|
31
|
+
// --bcm-attendance-actions-button-disabled-bg: #CBD5E1; /* slate-300 */
|
|
32
|
+
// --bcm-attendance-actions-button-disabled-text: #64748B; /* slate-500 */
|
|
33
|
+
const attendanceActionStyle = index.ce({
|
|
34
|
+
slots: {
|
|
35
|
+
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"],
|
|
36
|
+
base: "",
|
|
37
|
+
buttonContainer: "tw-flex tw-flex-row tw-items-center tw-justify-center tw-w-full tw-max-w-[168px]",
|
|
38
|
+
button: [
|
|
39
|
+
"",
|
|
40
|
+
"tw-button-reset",
|
|
41
|
+
"tw-flex-1 last:tw-flex-none",
|
|
42
|
+
"tw-bg-[--bcm-attendance-actions-button-bg]",
|
|
43
|
+
"tw-text-[--bcm-attendance-actions-button-text]",
|
|
44
|
+
"tw-border tw-border-solid tw-border-[--bcm-attendance-actions-button-border]",
|
|
45
|
+
"hover:tw-bg-[--bcm-attendance-actions-button-hover-bg]",
|
|
46
|
+
"active:tw-bg-[--bcm-attendance-actions-button-active-bg]",
|
|
47
|
+
"focus-visible:tw-ring-2 focus-visible:tw-ring-offset-2 focus-visible:tw-z-10",
|
|
48
|
+
"tw-flex tw-flex-row tw-items-center tw-justify-center",
|
|
49
|
+
"first:tw-rounded-l last:tw-rounded-r",
|
|
50
|
+
"tw-font-medium",
|
|
51
|
+
"-tw-ml-[1px] first:tw-ml-0",
|
|
52
|
+
],
|
|
53
|
+
dropdownButton: "",
|
|
54
|
+
mainButton: "",
|
|
55
|
+
commentIcon: "",
|
|
56
|
+
},
|
|
57
|
+
variants: {
|
|
58
|
+
selected: {
|
|
59
|
+
true: {
|
|
60
|
+
button: [
|
|
61
|
+
"tw-text-white tw-border-transparent last:tw-ml-[1px]",
|
|
62
|
+
"first:tw-justify-start",
|
|
63
|
+
],
|
|
64
|
+
mainButton: [
|
|
65
|
+
"tw-min-w-[calc(theme(spacing.12)-1px)]"
|
|
66
|
+
],
|
|
67
|
+
},
|
|
68
|
+
false: {
|
|
69
|
+
button: [
|
|
70
|
+
""
|
|
71
|
+
],
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
size: {
|
|
75
|
+
small: {
|
|
76
|
+
button: [
|
|
77
|
+
"tw-text-2",
|
|
78
|
+
"tw-min-h-6",
|
|
79
|
+
"tw-gap-2",
|
|
80
|
+
],
|
|
81
|
+
mainButton: [
|
|
82
|
+
"tw-px-3",
|
|
83
|
+
],
|
|
84
|
+
dropdownButton: [
|
|
85
|
+
"tw-px-2.5"
|
|
86
|
+
],
|
|
87
|
+
},
|
|
88
|
+
medium: {
|
|
89
|
+
button: [
|
|
90
|
+
"tw-text-3",
|
|
91
|
+
"tw-min-h-8",
|
|
92
|
+
"tw-gap-2",
|
|
93
|
+
],
|
|
94
|
+
mainButton: [
|
|
95
|
+
"tw-px-3",
|
|
96
|
+
],
|
|
97
|
+
dropdownButton: [
|
|
98
|
+
"tw-px-2.5"
|
|
99
|
+
],
|
|
100
|
+
},
|
|
101
|
+
large: {
|
|
102
|
+
button: [
|
|
103
|
+
"tw-text-4",
|
|
104
|
+
"tw-min-h-10",
|
|
105
|
+
"tw-gap-2.5",
|
|
106
|
+
],
|
|
107
|
+
mainButton: [
|
|
108
|
+
"tw-px-3",
|
|
109
|
+
],
|
|
110
|
+
dropdownButton: [
|
|
111
|
+
"tw-px-3"
|
|
112
|
+
],
|
|
113
|
+
},
|
|
114
|
+
},
|
|
115
|
+
disabled: {
|
|
116
|
+
true: {},
|
|
117
|
+
false: {}
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
compoundVariants: [
|
|
121
|
+
{
|
|
122
|
+
disabled: true,
|
|
123
|
+
class: {
|
|
124
|
+
buttonContainer: [
|
|
125
|
+
"tw-cursor-not-allowed tw-pointer-events-none",
|
|
126
|
+
],
|
|
127
|
+
button: [
|
|
128
|
+
"tw-cursor-not-allowed",
|
|
129
|
+
"tw-bg-[--bcm-attendance-actions-button-disabled-bg]",
|
|
130
|
+
"tw-text-[--bcm-attendance-actions-button-disabled-text]",
|
|
131
|
+
"tw-border-transparent",
|
|
132
|
+
"hover:tw-bg-[--bcm-attendance-actions-button-disabled-bg]",
|
|
133
|
+
],
|
|
134
|
+
mainButton: [
|
|
135
|
+
"tw-bg-[--bcm-attendance-actions-button-disabled-bg]",
|
|
136
|
+
"tw-text-[--bcm-attendance-actions-button-disabled-text]",
|
|
137
|
+
"tw-border-transparent",
|
|
138
|
+
"hover:tw-bg-[--bcm-attendance-actions-button-disabled-bg]",
|
|
139
|
+
"tw-cursor-not-allowed",
|
|
140
|
+
],
|
|
141
|
+
host: [
|
|
142
|
+
"tw-cursor-not-allowed",
|
|
143
|
+
],
|
|
144
|
+
commentIcon: [
|
|
145
|
+
"tw-cursor-not-allowed tw-pointer-events-none",
|
|
146
|
+
],
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
disabled: false,
|
|
151
|
+
class: {
|
|
152
|
+
button: [
|
|
153
|
+
"tw-cursor-pointer",
|
|
154
|
+
],
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
],
|
|
158
|
+
defaultVariants: {
|
|
159
|
+
selected: false,
|
|
160
|
+
size: "medium",
|
|
161
|
+
disabled: false,
|
|
162
|
+
},
|
|
163
|
+
});
|
|
164
|
+
|
|
165
|
+
const attendanceActionsCss = "";
|
|
166
|
+
|
|
167
|
+
const BcmAttendanceActions = class {
|
|
168
|
+
constructor(hostRef) {
|
|
169
|
+
index$1.registerInstance(this, hostRef);
|
|
170
|
+
this.change = index$1.createEvent(this, "bcm-attendance-change", 3);
|
|
171
|
+
this._id = generate.Generate.UID();
|
|
172
|
+
this.size = bcm.Bcm.Size.medium;
|
|
173
|
+
this.disabled = false;
|
|
174
|
+
this.data = [
|
|
175
|
+
{ key: "P", value: "Present", color: "emerald", icon: "fa-solid fa-check", priority: 0 },
|
|
176
|
+
{ key: "A", value: "Absent", color: "red", icon: "fa-solid fa-times", priority: 1 },
|
|
177
|
+
{ key: "L", value: "Late", color: "amber", icon: "fa-solid fa-clock", priority: 2 },
|
|
178
|
+
{ key: "C", value: "Other Authorised Circumstance", color: "blue", icon: "fa-solid fa-question" },
|
|
179
|
+
{ key: "E", value: "Exlude", color: "blue", icon: "fa-solid fa-minus" },
|
|
180
|
+
{ key: "G", value: "Family Holiday", color: "blue", icon: "fa-solid fa-minus" },
|
|
181
|
+
{ key: "H", value: "Family Holiday (Agreed)", color: "blue", icon: "fa-solid fa-minus" },
|
|
182
|
+
{ key: "I", value: "Illness", color: "blue", icon: "fa-solid fa-minus" },
|
|
183
|
+
{ key: "J", value: "Intervier", color: "blue", icon: "fa-solid fa-minus" },
|
|
184
|
+
{ key: "M", value: "Medical / Dental", color: "blue", icon: "fa-solid fa-minus" },
|
|
185
|
+
{ key: "N", value: "No Reason yet PRovided", color: "blue", icon: "fa-solid fa-minus" },
|
|
186
|
+
{ key: "O", value: "Unauthrised Absence", color: "blue", icon: "fa-solid fa-minus" },
|
|
187
|
+
{ key: "U", value: "Late after Reg. Closed", color: "blue", icon: "fa-solid fa-minus" },
|
|
188
|
+
{ key: "X", value: "Non-comp School Age Absence", color: "blue", icon: "fa-solid fa-minus" },
|
|
189
|
+
];
|
|
190
|
+
this.lateKeys = "L";
|
|
191
|
+
this.hideComment = false;
|
|
192
|
+
}
|
|
193
|
+
get selectedItem() {
|
|
194
|
+
return this.data.find(item => item.selected);
|
|
195
|
+
}
|
|
196
|
+
get priorityButtons() {
|
|
197
|
+
return this.data.filter(item => item.priority !== undefined).sort((a, b) => a.priority - b.priority);
|
|
198
|
+
}
|
|
199
|
+
get renderButtons() {
|
|
200
|
+
const { selectedItem, priorityButtons } = this;
|
|
201
|
+
return [...(selectedItem ? [selectedItem] : priorityButtons.length ? priorityButtons : this.data.slice(0, 3))];
|
|
202
|
+
}
|
|
203
|
+
get lateKeysMap() {
|
|
204
|
+
return this.lateKeys.toLocaleLowerCase().split(",");
|
|
205
|
+
}
|
|
206
|
+
get isLate() {
|
|
207
|
+
var _a, _b;
|
|
208
|
+
return this.lateKeysMap.includes((_b = (_a = this.selectedItem) === null || _a === void 0 ? void 0 : _a.key) === null || _b === void 0 ? void 0 : _b.toLocaleLowerCase());
|
|
209
|
+
}
|
|
210
|
+
get dropdownMenuElement() {
|
|
211
|
+
return document.getElementById("attendance-dropdown-" + this._id);
|
|
212
|
+
}
|
|
213
|
+
get commentAreaElement() {
|
|
214
|
+
return document.getElementById("comment-" + this._id);
|
|
215
|
+
}
|
|
216
|
+
handleSelectItem(item, triggerChange = true, showComment = true) {
|
|
217
|
+
var _a, _b;
|
|
218
|
+
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()) })); })];
|
|
219
|
+
(_a = this.dropdownMenuElement) === null || _a === void 0 ? void 0 : _a.hide();
|
|
220
|
+
(_b = this.commentAreaElement) === null || _b === void 0 ? void 0 : _b.hide();
|
|
221
|
+
if (!this.isLate)
|
|
222
|
+
return triggerChange && this.changed();
|
|
223
|
+
!this.hideComment && showComment && this.commentArea();
|
|
224
|
+
}
|
|
225
|
+
changed() {
|
|
226
|
+
this.change.emit(this.selectedItem);
|
|
227
|
+
}
|
|
228
|
+
hasDataForKey(key) {
|
|
229
|
+
return !!this.data.find(item => item.key.toLocaleLowerCase() === key.toLocaleLowerCase());
|
|
230
|
+
}
|
|
231
|
+
handleKeyPress({ key }) {
|
|
232
|
+
if (!this.hasDataForKey(key))
|
|
233
|
+
return;
|
|
234
|
+
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()); });
|
|
235
|
+
this.handleSelectItem(item);
|
|
236
|
+
}
|
|
237
|
+
handleSave(lateMinutes, comment) {
|
|
238
|
+
this.data = [...this.data].map(item => {
|
|
239
|
+
var _a, _b, _c;
|
|
240
|
+
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())) {
|
|
241
|
+
return Object.assign(Object.assign({}, item), { lateMin: lateMinutes, comment });
|
|
242
|
+
}
|
|
243
|
+
return item;
|
|
244
|
+
});
|
|
245
|
+
this.changed();
|
|
246
|
+
}
|
|
247
|
+
dropdownMenu() {
|
|
248
|
+
var _a;
|
|
249
|
+
const dropdownMenu = generate.Generate.createComponent("bcm-attendance-actions-dropdown", {
|
|
250
|
+
id: "attendance-dropdown-" + this._id,
|
|
251
|
+
size: this.size,
|
|
252
|
+
data: this.data,
|
|
253
|
+
selectedKey: (_a = this.selectedItem) === null || _a === void 0 ? void 0 : _a.key,
|
|
254
|
+
targetId: "attendance-dropdown-button-" + this._id,
|
|
255
|
+
});
|
|
256
|
+
dropdownMenu.addEventListener("bcm-attendance-actions-dropdown-change", ({ detail }) => {
|
|
257
|
+
this.handleSelectItem(detail);
|
|
258
|
+
});
|
|
259
|
+
dropdownMenu.show();
|
|
260
|
+
}
|
|
261
|
+
commentArea() {
|
|
262
|
+
var _a, _b;
|
|
263
|
+
const commentArea = generate.Generate.createComponent("bcm-attendance-actions-comment", {
|
|
264
|
+
id: "comment-" + this._id,
|
|
265
|
+
size: this.size,
|
|
266
|
+
isLate: this.isLate,
|
|
267
|
+
targetId: "comment-area-" + this._id,
|
|
268
|
+
selectedItem: this.selectedItem,
|
|
269
|
+
lateMinutes: (_a = this.selectedItem) === null || _a === void 0 ? void 0 : _a.lateMin,
|
|
270
|
+
comment: (_b = this.selectedItem) === null || _b === void 0 ? void 0 : _b.comment,
|
|
271
|
+
});
|
|
272
|
+
commentArea.addEventListener("bcm-attendance-actions-comment-change", ({ detail }) => {
|
|
273
|
+
this.handleSave(detail.lateMinutes, detail.comment);
|
|
274
|
+
});
|
|
275
|
+
commentArea.show();
|
|
276
|
+
}
|
|
277
|
+
async set(key, triggerChange = true) {
|
|
278
|
+
if (!this.hasDataForKey(key))
|
|
279
|
+
return;
|
|
280
|
+
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()); });
|
|
281
|
+
this.handleSelectItem(item, triggerChange, false);
|
|
282
|
+
}
|
|
283
|
+
async get() {
|
|
284
|
+
return this.selectedItem;
|
|
285
|
+
}
|
|
286
|
+
render() {
|
|
287
|
+
var _a, _b, _c;
|
|
288
|
+
const { selectedItem, renderButtons, disabled, hideComment, size } = this;
|
|
289
|
+
const { host, buttonContainer, button, dropdownButton, commentIcon, mainButton } = attendanceActionStyle({
|
|
290
|
+
selected: !!selectedItem,
|
|
291
|
+
size,
|
|
292
|
+
disabled,
|
|
293
|
+
});
|
|
294
|
+
const buttonStyle = !!selectedItem
|
|
295
|
+
? generate.Generate.getTwColor({
|
|
296
|
+
color: (_a = selectedItem.color) !== null && _a !== void 0 ? _a : "blue",
|
|
297
|
+
tones: {
|
|
298
|
+
600: ["bg"],
|
|
299
|
+
700: ["hover-bg"],
|
|
300
|
+
800: ["active-bg"],
|
|
301
|
+
},
|
|
302
|
+
variable: "--bcm-attendance-actions-button",
|
|
303
|
+
})
|
|
304
|
+
: {};
|
|
305
|
+
const buttonAttributes = {
|
|
306
|
+
class: index$2.classnames(button(), mainButton()),
|
|
307
|
+
style: Object.assign({}, buttonStyle),
|
|
308
|
+
disabled,
|
|
309
|
+
type: "button",
|
|
310
|
+
};
|
|
311
|
+
const iconButtonAttributes = Object.assign(Object.assign({}, buttonAttributes), { class: index$2.classnames(button(), dropdownButton()) });
|
|
312
|
+
const isShowCommentIcon = !hideComment && !!selectedItem;
|
|
313
|
+
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) ` : ""}` : "";
|
|
314
|
+
return (index$1.h(index$1.Host, { class: host(), onKeyPress: this.handleKeyPress.bind(this) }, index$1.h("div", { class: buttonContainer() }, renderButtons === null || renderButtons === void 0 ? void 0 :
|
|
315
|
+
renderButtons.map(item => {
|
|
316
|
+
return (index$1.h("button", Object.assign({}, buttonAttributes, { onClick: () => this.handleSelectItem(item), title: item.value }), index$1.h("i", { class: index$2.classnames(item.icon || "fa-solid fa-minus", "!tw-leading-[inherit]") }), item.selected && index$1.h("span", { class: "tw-truncate" }, item.value)));
|
|
317
|
+
}), index$1.h("button", Object.assign({ id: "attendance-dropdown-button-" + this._id }, iconButtonAttributes, { onClick: () => this.dropdownMenu(), title: "More" }), index$1.h("i", { class: index$2.classnames("fa-solid fa-angle-down !tw-leading-[inherit]") }))), index$1.h("div", { id: "comment-area-" + this._id, class: index$2.classnames(commentIcon(), {
|
|
318
|
+
"tw-cursor-default": !isShowCommentIcon,
|
|
319
|
+
"tw-cursor-pointer": isShowCommentIcon,
|
|
320
|
+
}), onClick: () => isShowCommentIcon && this.commentArea() }, index$1.h("i", { title: isShowCommentIcon ? commentTooltip : "", class: index$2.classnames("fa-solid fa-comment", {
|
|
321
|
+
"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)),
|
|
322
|
+
"tw-visible": isShowCommentIcon,
|
|
323
|
+
"tw-invisible": !isShowCommentIcon,
|
|
324
|
+
}) }))));
|
|
325
|
+
}
|
|
326
|
+
get el() { return index$1.getElement(this); }
|
|
327
|
+
};
|
|
328
|
+
BcmAttendanceActions.style = attendanceActionsCss;
|
|
329
|
+
|
|
330
|
+
exports.bcm_attendance_actions = BcmAttendanceActions;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Stencil
|
|
3
|
+
* Copyright (c) Bromcom.
|
|
4
|
+
*/
|
|
5
|
+
'use strict';
|
|
6
|
+
|
|
7
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
8
|
+
|
|
9
|
+
const index = require('./index-c591ecec.js');
|
|
10
|
+
const generate = require('./generate-b43c3d3b.js');
|
|
11
|
+
require('./package-033055fc.js');
|
|
12
|
+
require('./colors-250d0982.js');
|
|
13
|
+
require('./_commonjsHelpers-ed84c3ca.js');
|
|
14
|
+
|
|
15
|
+
const attendanceCss = "@import url(\"https://fonts.googleapis.com/css?family=Roboto:400,500\");@import url(\"https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap\"); .size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}*{box-sizing:border-box}.bcm-attendance{width:fit-content;display:inline-flex;align-items:center;flex-direction:row;gap:4px}.bcm-attendance__item{display:flex;flex-direction:row;align-items:center;gap:1px}.bcm-attendance__item-am,.bcm-attendance__item-pm{display:block;width:calc( calc( 12px + 1px ) / 2 );height:calc( 12px + 1px );background-color:var(--bcm-new-ds-color-blue-500)}.bcm-attendance__item-am:hover,.bcm-attendance__item-pm:hover{background-color:var(--bcm-new-ds-color-blue-600)}.bcm-attendance__item-am{border-top-left-radius:100px;border-bottom-left-radius:100px}.bcm-attendance__item-pm{border-top-right-radius:100px;border-bottom-right-radius:100px}.bcm-attendance__item-status-present{background-color:var(--bcm-new-ds-color-emerald-500)}.bcm-attendance__item-status-present:hover{background-color:var(--bcm-new-ds-color-emerald-600)}.bcm-attendance__item-status-late{background-color:var(--bcm-new-ds-color-amber-500)}.bcm-attendance__item-status-late:hover{background-color:var(--bcm-new-ds-color-amber-600)}.bcm-attendance__item-status-absent{background-color:var(--bcm-new-ds-color-red-500)}.bcm-attendance__item-status-absent:hover{background-color:var(--bcm-new-ds-color-red-600)}.bcm-attendance__item-status-default{background-color:var(--bcm-new-ds-color-slate-300)}.bcm-attendance__item-status-default:hover{background-color:var(--bcm-new-ds-color-slate-400)}";
|
|
16
|
+
|
|
17
|
+
const BcmAttendance = class {
|
|
18
|
+
constructor(hostRef) {
|
|
19
|
+
index.registerInstance(this, hostRef);
|
|
20
|
+
this._id = generate.Generate.UID();
|
|
21
|
+
this.data = [];
|
|
22
|
+
}
|
|
23
|
+
render() {
|
|
24
|
+
const { data } = this;
|
|
25
|
+
const classPrefix = 'bcm-attendance';
|
|
26
|
+
return (index.h(index.Host, { class: classPrefix }, index.h("span", { hidden: true }, index.h("slot", null)), data.map(item => {
|
|
27
|
+
var _a, _b;
|
|
28
|
+
return index.h("div", { class: `${classPrefix}__item` }, index.h("bcm-tooltip", { trigger: "hover", message: `${item.weekday || null} / AM`, "aria-label": `${item.weekday || null} / AM` }, index.h("span", { class: `${classPrefix}__item-am ${classPrefix}__item-status-${(_a = item.am) !== null && _a !== void 0 ? _a : 'default'}` })), index.h("bcm-tooltip", { trigger: "hover", message: `${item.weekday || null} / PM`, "aria-label": `${item.weekday || null} / PM` }, index.h("span", { class: `${classPrefix}__item-pm ${classPrefix}__item-status-${(_b = item.pm) !== null && _b !== void 0 ? _b : 'default'}` })));
|
|
29
|
+
})));
|
|
30
|
+
}
|
|
31
|
+
get el() { return index.getElement(this); }
|
|
32
|
+
};
|
|
33
|
+
BcmAttendance.style = attendanceCss;
|
|
34
|
+
|
|
35
|
+
exports.bcm_attendance = BcmAttendance;
|