bromcom-ui 2.12.0-test.1 → 2.12.1-test.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bromcom-ui/bromcom-ui.css +1 -1
- package/dist/bromcom-ui/bromcom-ui.esm.js +1 -1
- package/dist/bromcom-ui/{p-4adb8c83.entry.js → p-0345ed68.entry.js} +1 -1
- package/dist/bromcom-ui/p-053dc717.entry.js +5 -0
- package/dist/bromcom-ui/{p-fdd5d6bb.entry.js → p-069ae664.entry.js} +1 -1
- package/dist/bromcom-ui/{p-fcc6f71e.js → p-0bda558d.js} +1 -1
- package/dist/bromcom-ui/p-11a5ae6d.entry.js +5 -0
- package/dist/bromcom-ui/{p-3f1e16ee.entry.js → p-193d926a.entry.js} +1 -1
- package/dist/bromcom-ui/{p-4d189e27.entry.js → p-1bdfc73a.entry.js} +1 -1
- package/dist/bromcom-ui/{p-c821b3bf.entry.js → p-1c7ea00b.entry.js} +1 -1
- package/dist/bromcom-ui/{p-ba3c6657.entry.js → p-1c801d0c.entry.js} +1 -1
- package/dist/bromcom-ui/{p-df185078.entry.js → p-1c9314bd.entry.js} +1 -1
- package/dist/bromcom-ui/{p-1d48da4b.entry.js → p-29c4dc0a.entry.js} +1 -1
- package/dist/bromcom-ui/{p-7f1612df.entry.js → p-2aaeb247.entry.js} +1 -1
- package/dist/bromcom-ui/p-2d34eb30.entry.js +5 -0
- package/dist/bromcom-ui/{p-cd2293b7.js → p-2df6b47d.js} +1 -1
- package/dist/bromcom-ui/{p-5c1af163.entry.js → p-2ee89105.entry.js} +1 -1
- package/dist/bromcom-ui/p-305b0bc8.entry.js +5 -0
- package/dist/bromcom-ui/{p-7bc49347.entry.js → p-313b7bb0.entry.js} +1 -1
- package/dist/bromcom-ui/p-3238bf36.js +5 -0
- package/dist/bromcom-ui/{p-6b5ed4d8.js → p-35f2e15a.js} +1 -1
- package/dist/bromcom-ui/{p-482054dc.js → p-3a60a194.js} +1 -1
- package/dist/bromcom-ui/{p-af4a83dc.entry.js → p-3b863650.entry.js} +1 -1
- package/dist/bromcom-ui/p-43c578cf.js +5 -0
- package/dist/bromcom-ui/{p-816fbffd.js → p-499d8454.js} +1 -1
- package/dist/bromcom-ui/{p-3182df7e.js → p-4d2bf0e7.js} +1 -1
- package/dist/bromcom-ui/{p-22a0e447.entry.js → p-4f05c6a4.entry.js} +1 -1
- package/dist/bromcom-ui/{p-0389b380.js → p-4f6eb6d6.js} +1 -1
- package/dist/bromcom-ui/{p-4ebb85f9.js → p-58c0a1f5.js} +1 -1
- package/dist/bromcom-ui/{p-91873347.entry.js → p-594a57c3.entry.js} +1 -1
- package/dist/bromcom-ui/p-5dea2654.entry.js +5 -0
- package/dist/bromcom-ui/{p-3078fcd2.entry.js → p-626b805d.entry.js} +1 -1
- package/dist/bromcom-ui/p-64fad38b.js +11 -0
- package/dist/bromcom-ui/{p-01416407.entry.js → p-69260d36.entry.js} +1 -1
- package/dist/bromcom-ui/p-6e5f5f36.js +1 -1
- package/dist/bromcom-ui/{p-8c018ae0.js → p-6f2e4c9b.js} +1 -1
- package/dist/bromcom-ui/{p-7e44e6b5.js → p-6f861fed.js} +1 -1
- package/dist/bromcom-ui/p-7400e3c3.entry.js +5 -0
- package/dist/bromcom-ui/{p-1b2e1320.entry.js → p-79d5c3d8.entry.js} +1 -1
- package/dist/bromcom-ui/p-7c223356.entry.js +5 -0
- package/dist/bromcom-ui/{p-28f78dd4.entry.js → p-7d18ce0e.entry.js} +1 -1
- package/dist/bromcom-ui/{p-e45c1546.js → p-85eedabc.js} +1 -1
- package/dist/bromcom-ui/{p-e60832d7.entry.js → p-87d9dff7.entry.js} +1 -1
- package/dist/bromcom-ui/{p-be7e5e83.js → p-8e683b32.js} +1 -1
- package/dist/bromcom-ui/{p-4680865d.js → p-a2df6c19.js} +1 -1
- package/dist/bromcom-ui/{p-3f2cf69e.entry.js → p-a2ed89f0.entry.js} +1 -1
- package/dist/bromcom-ui/p-a313fba6.js +1 -1
- package/dist/bromcom-ui/{p-3a06c6b1.entry.js → p-ba9eff2a.entry.js} +1 -1
- package/dist/bromcom-ui/{p-9ea56166.entry.js → p-bbae06ed.entry.js} +1 -1
- package/dist/bromcom-ui/{p-b3fe26a3.entry.js → p-bdc78a44.entry.js} +1 -1
- package/dist/bromcom-ui/{p-fe675eea.entry.js → p-c02d4055.entry.js} +1 -1
- package/dist/bromcom-ui/{p-965ef00a.entry.js → p-c54aaa8c.entry.js} +1 -1
- package/dist/bromcom-ui/p-c99dbd93.entry.js +5 -0
- package/dist/bromcom-ui/{p-efd00594.entry.js → p-cebe6c15.entry.js} +1 -1
- package/dist/bromcom-ui/p-d1298c40.js +5 -0
- package/dist/bromcom-ui/{p-8c3535b6.entry.js → p-d551a51d.entry.js} +1 -1
- package/dist/bromcom-ui/{p-fa5ecfb2.entry.js → p-d73d6a2f.entry.js} +1 -1
- package/dist/bromcom-ui/{p-350e752d.js → p-daeb868a.js} +1 -1
- package/dist/bromcom-ui/{p-74252264.entry.js → p-e82dab5a.entry.js} +1 -1
- package/dist/bromcom-ui/{p-055b38fd.entry.js → p-e99cc26b.entry.js} +1 -1
- package/dist/bromcom-ui/{p-9f688a29.entry.js → p-ea7368b4.entry.js} +1 -1
- package/dist/bromcom-ui/p-ec1fe98f.entry.js +16 -0
- package/dist/bromcom-ui/{p-3960cae8.entry.js → p-ece578ef.entry.js} +1 -1
- package/dist/bromcom-ui/p-f0e30624.entry.js +5 -0
- package/dist/cjs/{bcm-489c9b1a.js → bcm-1d1fcf21.js} +4 -4
- package/dist/cjs/bcm-accordion_63.cjs.entry.js +46085 -0
- package/dist/cjs/bcm-alert.cjs.entry.js +4 -4
- package/dist/cjs/bcm-attendance-actions-comment.cjs.entry.js +8 -8
- package/dist/cjs/bcm-attendance-actions-dropdown.cjs.entry.js +8 -8
- package/dist/cjs/bcm-breadcrumb.cjs.entry.js +2 -2
- package/dist/cjs/bcm-caption.cjs.entry.js +9 -9
- package/dist/cjs/bcm-card.cjs.entry.js +5 -5
- package/dist/cjs/bcm-chip-group.cjs.entry.js +9 -9
- package/dist/cjs/bcm-date-picker.cjs.entry.js +4 -4
- package/dist/cjs/bcm-datetime-picker.cjs.entry.js +8 -8
- package/dist/cjs/bcm-default.cjs.entry.js +2 -2
- package/dist/cjs/bcm-error-layout.cjs.entry.js +1 -1
- package/dist/cjs/bcm-form-2.cjs.entry.js +5 -5
- package/dist/cjs/bcm-input-2.cjs.entry.js +153 -0
- package/dist/cjs/bcm-input-custom.cjs.entry.js +2 -2
- package/dist/cjs/bcm-input-dropdown.cjs.entry.js +10 -10
- package/dist/cjs/bcm-modal-2-footer.cjs.entry.js +6 -6
- package/dist/cjs/bcm-modal-2-header.cjs.entry.js +6 -6
- package/dist/cjs/bcm-modal-2.cjs.entry.js +7 -7
- package/dist/cjs/bcm-number-input.cjs.entry.js +297 -0
- package/dist/cjs/bcm-popover.cjs.entry.js +9 -9
- package/dist/cjs/bcm-range.cjs.entry.js +6 -6
- package/dist/cjs/bcm-react-number.cjs.entry.js +1230 -0
- package/dist/cjs/bcm-skeleton.cjs.entry.js +6 -6
- package/dist/cjs/bcm-table.cjs.entry.js +6 -6
- package/dist/cjs/bcm-tag.cjs.entry.js +15 -15
- package/dist/cjs/bcm-time-picker.cjs.entry.js +4 -4
- package/dist/cjs/bcm-toast.cjs.entry.js +11 -11
- package/dist/cjs/bromcom-ui.cjs.js +3 -3
- package/dist/cjs/{caption-template-086e9cac.js → caption-template-85a18b6d.js} +2 -2
- package/dist/cjs/{floating-ui-21890d11.js → floating-ui-5b396838.js} +2 -2
- package/dist/cjs/{generate-acac74ce.js → generate-7510539d.js} +1 -1
- package/dist/cjs/{global-47ad6c93.js → global-711c589c.js} +1 -1
- package/dist/cjs/input.style-b5676e6a.js +122 -0
- package/dist/cjs/{label-template-94b3d775.js → label-template-e83447b5.js} +3 -3
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{number-helper-fb148ed6.js → number-helper-9d2d1d5a.js} +1 -1
- package/dist/cjs/old-bcm-popover-box.cjs.entry.js +7 -7
- package/dist/cjs/old-bcm-popover.cjs.entry.js +5 -5
- package/dist/cjs/{package-c5399090.js → package-a60955f7.js} +1 -1
- package/dist/cjs/{popover-placement-e7d6eabd.js → popover-placement-d1aa81f0.js} +1 -1
- package/dist/cjs/{slot-template-c8e2816c.js → slot-template-29229e8f.js} +1 -1
- package/dist/cjs/{string-helper-f9184277.js → string-helper-1ee6dc21.js} +6 -4
- package/dist/cjs/{validators-a7c046d5.js → validators-9369c82a.js} +1 -1
- package/dist/collection/components/atoms/avatar/avatar.js +1 -1
- package/dist/collection/components/atoms/badge/badge.js +1 -1
- package/dist/collection/components/atoms/badge/badge.style.js +1 -1
- package/dist/collection/components/atoms/button/button.css +13 -13
- package/dist/collection/components/atoms/button/button.js +14 -14
- package/dist/collection/components/atoms/chip/chip.css +4 -4
- package/dist/collection/components/atoms/chip/chip.js +3 -3
- package/dist/collection/components/atoms/link/link.css +9 -3
- package/dist/collection/components/molecules/checkbox/group.css +2 -2
- package/dist/collection/components/molecules/checkbox/group.js +1 -1
- package/dist/collection/components/molecules/color-input/color-input.js +1 -1
- package/dist/collection/components/molecules/empty/empty.js +1 -1
- package/dist/collection/components/molecules/error-layout/error-layout.js +1 -1
- package/dist/collection/components/molecules/expansion-panel/expansion-panel.js +1 -1
- package/dist/collection/components/molecules/input/input.js +1 -1
- package/dist/collection/components/molecules/input-dropdown/input-dropdown.js +1 -1
- package/dist/collection/components/molecules/menu/menu.css +4 -4
- package/dist/collection/components/molecules/menu/menu.js +0 -14
- package/dist/collection/components/molecules/modal/modal.css +1 -1
- package/dist/collection/components/molecules/number-input/react-input.js +1 -1
- package/dist/collection/components/molecules/radio/radio-group.js +1 -1
- package/dist/collection/components/molecules/radio/radio.js +1 -1
- package/dist/collection/components/molecules/range/range.js +1 -1
- package/dist/collection/components/molecules/switch/switch.css +2 -2
- package/dist/collection/components/molecules/tab-group/tab-group.js +2 -2
- package/dist/collection/components/molecules/tab-group/tab-item-header.js +5 -5
- package/dist/collection/components/molecules/tooltip/tooltip.js +1 -1
- package/dist/collection/components/organism/list/list.css +2 -2
- package/dist/collection/components/organism/list/list.js +5 -5
- package/dist/collection/components/organism/states/bcm-list2.states.js +14 -2
- package/dist/collection/components/other/attendance/attendance.js +1 -1
- package/dist/collection/components/other_deprecated/select/select.css +1 -1
- package/dist/collection/components/other_deprecated/select/select.js +1 -1
- package/dist/collection/components/other_deprecated/tabs/tab.css +15 -15
- package/dist/collection/helper/string-helper.js +4 -2
- package/dist/collection/stories/ui-library/components/date/argTypes_common.js +1 -0
- package/dist/collection/stories/ui-library/components/list/country.js +186 -0
- package/dist/collection/templates/button-template.js +1 -1
- package/dist/collection/templates/caption-template.js +2 -2
- package/dist/collection/templates/input-template.js +1 -1
- package/dist/collection/templates/label-template.js +1 -1
- package/dist/collection/templates/list-item-template.js +1 -1
- package/dist/collection/templates/list-template.js +3 -9
- package/dist/components/avatar.js +1 -1
- package/dist/components/badge.js +2 -2
- package/dist/components/bcm-attendance.js +1 -1
- package/dist/components/bcm-checkbox-group.js +2 -2
- package/dist/components/bcm-color-input.js +1 -1
- package/dist/components/bcm-error-layout.js +1 -1
- package/dist/components/bcm-expansion-panel.js +1 -1
- package/dist/components/bcm-input-dropdown.js +1 -1
- package/dist/components/bcm-modal.js +1 -1
- package/dist/components/bcm-radio-group.js +1 -1
- package/dist/components/bcm-range.js +1 -1
- package/dist/components/bcm-select.js +2 -2
- package/dist/components/bcm-switch.js +1 -1
- package/dist/components/bcm-tab-group.js +2 -2
- package/dist/components/bcm-tab-item-header.js +5 -5
- package/dist/components/bcm-tab.js +1 -1
- package/dist/components/button.js +16 -16
- package/dist/components/caption-template.js +2 -2
- package/dist/components/chip.js +4 -4
- package/dist/components/empty.js +1 -1
- package/dist/components/generate.js +1 -1
- package/dist/components/input-template.js +1 -1
- package/dist/components/input.js +1 -1
- package/dist/components/label.js +1 -1
- package/dist/components/link.js +1 -1
- package/dist/components/list.js +24 -18
- package/dist/components/menu.js +1 -15
- package/dist/components/radio.js +1 -1
- package/dist/components/string-helper.js +4 -2
- package/dist/components/tooltip.js +1 -1
- package/dist/esm/{_commonjsHelpers-be0d4ec8.js → _commonjsHelpers-7002e5de.js} +1 -1
- package/dist/esm/bcm-a50d55ba.js +1 -1
- package/dist/esm/bcm-accordion_63.entry.js +46019 -0
- package/dist/esm/bcm-alert.entry.js +6 -6
- package/dist/esm/bcm-attendance-actions-comment.entry.js +11 -11
- package/dist/esm/bcm-attendance-actions-dropdown.entry.js +12 -12
- package/dist/esm/bcm-autocomplete.entry.js +2 -2
- package/dist/esm/bcm-breadcrumb.entry.js +5 -5
- package/dist/esm/bcm-caption.entry.js +13 -13
- package/dist/esm/bcm-card.entry.js +9 -9
- package/dist/esm/bcm-chip-group.entry.js +14 -14
- package/dist/esm/bcm-colorpicker.entry.js +4 -4
- package/dist/esm/bcm-date-picker.entry.js +7 -7
- package/dist/esm/bcm-datetime-picker.entry.js +11 -11
- package/dist/esm/bcm-default.entry.js +4 -4
- package/dist/esm/bcm-error-layout.entry.js +3 -3
- package/dist/esm/bcm-form-2.entry.js +6 -6
- package/dist/esm/bcm-input-2.entry.js +149 -0
- package/dist/esm/bcm-input-custom.entry.js +5 -5
- package/dist/esm/bcm-input-dropdown.entry.js +14 -14
- 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 +12 -12
- package/dist/esm/bcm-notification.entry.js +2 -2
- package/dist/esm/bcm-number-input.entry.js +293 -0
- package/dist/esm/bcm-overlay_2.entry.js +3 -3
- package/dist/esm/bcm-popover.entry.js +11 -11
- package/dist/esm/bcm-range.entry.js +8 -8
- package/dist/esm/bcm-react-number.entry.js +1226 -0
- 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-skeleton.entry.js +10 -10
- package/dist/esm/bcm-tab-pane.entry.js +2 -2
- package/dist/esm/bcm-table.entry.js +11 -11
- package/dist/esm/bcm-tabs-content.entry.js +3 -3
- package/dist/esm/bcm-tag.entry.js +8 -8
- package/dist/esm/bcm-time-picker.entry.js +7 -7
- 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 +8 -8
- package/dist/esm/bromcom-ui.js +3 -3
- package/dist/esm/{caption-template-5c43c733.js → caption-template-3cd42c3b.js} +3 -3
- package/dist/esm/{color-helper-c0bb1d8a.js → color-helper-ba15b0d8.js} +2 -2
- package/dist/esm/{colors-df32bb43.js → colors-ed4e7579.js} +1 -1
- package/dist/esm/{element-dragger-89bb52fd.js → element-dragger-b75266e6.js} +1 -1
- package/dist/esm/floating-ui-3f4394da.js +1 -1
- package/dist/esm/{generate-a1817b7f.js → generate-74379aca.js} +2 -2
- package/dist/esm/{global-26b8ded6.js → global-e20393a3.js} +1 -1
- package/dist/esm/{index-b84bc8c9.js → index-00c8a8f7.js} +1 -1
- package/dist/esm/{index-a6d9d0af.js → index-0d3a56ec.js} +1 -1
- package/dist/esm/input.style-e855c0f3.js +120 -0
- package/dist/esm/{label-template-c15569c4.js → label-template-ef97aadb.js} +3 -3
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{number-helper-ccf5aba4.js → number-helper-6c691943.js} +1 -1
- package/dist/esm/old-bcm-popover-box.entry.js +10 -10
- package/dist/esm/old-bcm-popover.entry.js +6 -6
- package/dist/esm/{package-5d20a20d.js → package-0b936309.js} +1 -1
- package/dist/esm/{popover-placement-2f5939ea.js → popover-placement-1b15cc99.js} +1 -1
- package/dist/esm/{slot-template-7c36d3be.js → slot-template-0d958dcc.js} +1 -1
- package/dist/esm/{string-helper-85990695.js → string-helper-b4602002.js} +6 -4
- package/dist/esm/{utils-57652744.js → utils-7727d09e.js} +1 -1
- package/dist/esm/{validators-e63fdc75.js → validators-c067048c.js} +1 -1
- package/dist/types/models/states/organisms/bcm-organisms-state.d.ts +5 -1
- package/dist/types/stories/ui-library/components/list/country.d.ts +6 -0
- package/dist/types/templates/list-template.d.ts +1 -0
- package/package.json +1 -1
- package/dist/bromcom-ui/p-0a3d3b7d.entry.js +0 -5
- package/dist/bromcom-ui/p-13eeb974.entry.js +0 -5
- package/dist/bromcom-ui/p-158245f6.entry.js +0 -5
- package/dist/bromcom-ui/p-183bc78f.entry.js +0 -5
- package/dist/bromcom-ui/p-19e378e2.entry.js +0 -5
- package/dist/bromcom-ui/p-1a53401f.entry.js +0 -5
- package/dist/bromcom-ui/p-1c404cc8.entry.js +0 -5
- package/dist/bromcom-ui/p-1d96b6d6.entry.js +0 -5
- package/dist/bromcom-ui/p-28d0fb9d.entry.js +0 -5
- package/dist/bromcom-ui/p-310cab1a.js +0 -14
- package/dist/bromcom-ui/p-3917a612.entry.js +0 -5
- package/dist/bromcom-ui/p-39ae1e94.entry.js +0 -5
- package/dist/bromcom-ui/p-3ea2dda1.js +0 -5
- package/dist/bromcom-ui/p-40584ce5.entry.js +0 -5
- package/dist/bromcom-ui/p-4364285a.entry.js +0 -5
- package/dist/bromcom-ui/p-475d306a.entry.js +0 -5
- package/dist/bromcom-ui/p-4e33341b.entry.js +0 -5
- package/dist/bromcom-ui/p-516eb821.entry.js +0 -5
- package/dist/bromcom-ui/p-59294a5a.entry.js +0 -5
- package/dist/bromcom-ui/p-5d45ff27.entry.js +0 -5
- package/dist/bromcom-ui/p-65511654.entry.js +0 -5
- package/dist/bromcom-ui/p-7237c3e9.entry.js +0 -5
- package/dist/bromcom-ui/p-72d4ced8.entry.js +0 -5
- package/dist/bromcom-ui/p-76edf59f.js +0 -7
- package/dist/bromcom-ui/p-7942e17a.entry.js +0 -5
- package/dist/bromcom-ui/p-7edab876.entry.js +0 -5
- package/dist/bromcom-ui/p-83882081.js +0 -5
- package/dist/bromcom-ui/p-85371fa1.entry.js +0 -5
- package/dist/bromcom-ui/p-862e5ce9.js +0 -5
- package/dist/bromcom-ui/p-903d62ff.entry.js +0 -5
- package/dist/bromcom-ui/p-91f15c4d.entry.js +0 -5
- package/dist/bromcom-ui/p-9d95be18.entry.js +0 -5
- package/dist/bromcom-ui/p-a366357e.entry.js +0 -5
- package/dist/bromcom-ui/p-a8fd6d69.js +0 -5
- package/dist/bromcom-ui/p-afb1e0ae.entry.js +0 -5
- package/dist/bromcom-ui/p-b1f75abe.entry.js +0 -5
- package/dist/bromcom-ui/p-b284e383.entry.js +0 -5
- package/dist/bromcom-ui/p-bc0eb2d3.entry.js +0 -5
- package/dist/bromcom-ui/p-bc668762.js +0 -5
- package/dist/bromcom-ui/p-bed627ab.js +0 -11
- package/dist/bromcom-ui/p-c1a992e7.entry.js +0 -5
- package/dist/bromcom-ui/p-c2ef6353.entry.js +0 -5
- package/dist/bromcom-ui/p-c5a06d3a.entry.js +0 -5
- package/dist/bromcom-ui/p-c7be0488.entry.js +0 -5
- package/dist/bromcom-ui/p-ca5073d9.entry.js +0 -5
- package/dist/bromcom-ui/p-cce4fa10.entry.js +0 -5
- package/dist/bromcom-ui/p-d2f863d9.js +0 -5
- package/dist/bromcom-ui/p-d36d96af.entry.js +0 -5
- package/dist/bromcom-ui/p-d40c26fb.entry.js +0 -5
- package/dist/bromcom-ui/p-d60c61e8.entry.js +0 -5
- package/dist/bromcom-ui/p-db8aceb9.entry.js +0 -5
- package/dist/bromcom-ui/p-e4a2f8f8.entry.js +0 -5
- package/dist/bromcom-ui/p-e8962d4b.entry.js +0 -5
- package/dist/bromcom-ui/p-ec9b0de4.entry.js +0 -5
- package/dist/bromcom-ui/p-ef440eba.entry.js +0 -5
- package/dist/bromcom-ui/p-f144de37.entry.js +0 -5
- package/dist/bromcom-ui/p-f1550bf5.entry.js +0 -5
- package/dist/bromcom-ui/p-fd8a6bb8.entry.js +0 -5
- package/dist/bromcom-ui/p-fe39eea8.js +0 -5
- package/dist/cjs/Overflow-7a86d378.js +0 -2233
- package/dist/cjs/bcm-accordion.cjs.entry.js +0 -74
- package/dist/cjs/bcm-attendance-actions.cjs.entry.js +0 -330
- package/dist/cjs/bcm-attendance.cjs.entry.js +0 -35
- package/dist/cjs/bcm-avatar_2.cjs.entry.js +0 -210
- package/dist/cjs/bcm-button-group.cjs.entry.js +0 -92
- package/dist/cjs/bcm-button_11.cjs.entry.js +0 -3340
- package/dist/cjs/bcm-checkbox-group.cjs.entry.js +0 -415
- package/dist/cjs/bcm-checkbox-lite_9.cjs.entry.js +0 -2529
- package/dist/cjs/bcm-checkbox_2.cjs.entry.js +0 -194
- package/dist/cjs/bcm-chip.cjs.entry.js +0 -91
- package/dist/cjs/bcm-collapse-group.cjs.entry.js +0 -43
- package/dist/cjs/bcm-collapse.cjs.entry.js +0 -62
- package/dist/cjs/bcm-color-input.cjs.entry.js +0 -77
- package/dist/cjs/bcm-date.cjs.entry.js +0 -182
- package/dist/cjs/bcm-drawer.cjs.entry.js +0 -96
- package/dist/cjs/bcm-dropdown.cjs.entry.js +0 -119
- package/dist/cjs/bcm-expansion-panel.cjs.entry.js +0 -116
- package/dist/cjs/bcm-item.cjs.entry.js +0 -72
- package/dist/cjs/bcm-items.cjs.entry.js +0 -49
- package/dist/cjs/bcm-link.cjs.entry.js +0 -51
- package/dist/cjs/bcm-list_3.cjs.entry.js +0 -1972
- package/dist/cjs/bcm-menu.cjs.entry.js +0 -151
- package/dist/cjs/bcm-modal.cjs.entry.js +0 -157
- package/dist/cjs/bcm-old-input.cjs.entry.js +0 -397
- package/dist/cjs/bcm-old-tag_2.cjs.entry.js +0 -145
- package/dist/cjs/bcm-popconfirm-box.cjs.entry.js +0 -115
- package/dist/cjs/bcm-popconfirm.cjs.entry.js +0 -101
- package/dist/cjs/bcm-progress.cjs.entry.js +0 -162
- package/dist/cjs/bcm-radio-group.cjs.entry.js +0 -161
- package/dist/cjs/bcm-radio.cjs.entry.js +0 -65
- package/dist/cjs/bcm-rc-picker.cjs.entry.js +0 -9986
- package/dist/cjs/bcm-select.cjs.entry.js +0 -1195
- package/dist/cjs/bcm-shortcut.cjs.entry.js +0 -65
- package/dist/cjs/bcm-step.cjs.entry.js +0 -89
- package/dist/cjs/bcm-stepper.cjs.entry.js +0 -240
- package/dist/cjs/bcm-switch.cjs.entry.js +0 -151
- package/dist/cjs/bcm-tab-group.cjs.entry.js +0 -210
- package/dist/cjs/bcm-tab-item-header.cjs.entry.js +0 -59
- package/dist/cjs/bcm-tab-item.cjs.entry.js +0 -91
- package/dist/cjs/bcm-tab.cjs.entry.js +0 -72
- package/dist/cjs/bcm-tabs.cjs.entry.js +0 -370
- package/dist/cjs/bcm-text.cjs.entry.js +0 -49
- package/dist/cjs/bcm-textarea.cjs.entry.js +0 -163
- package/dist/cjs/input-template-b836720c.js +0 -92
- package/dist/cjs/json-parse-decarator-b8367488.js +0 -40
- package/dist/cjs/lodash-917168d7.js +0 -17199
- package/dist/cjs/moment-d06b012f.js +0 -4601
- package/dist/cjs/stepper-states-17562587.js +0 -85
- package/dist/cjs/tooltip-helper-41b2fcd0.js +0 -158
- package/dist/esm/Overflow-32a0ec34.js +0 -2217
- package/dist/esm/bcm-accordion.entry.js +0 -70
- package/dist/esm/bcm-attendance-actions.entry.js +0 -326
- package/dist/esm/bcm-attendance.entry.js +0 -31
- package/dist/esm/bcm-avatar_2.entry.js +0 -205
- package/dist/esm/bcm-button-group.entry.js +0 -88
- package/dist/esm/bcm-button_11.entry.js +0 -3326
- package/dist/esm/bcm-checkbox-group.entry.js +0 -411
- package/dist/esm/bcm-checkbox-lite_9.entry.js +0 -2517
- package/dist/esm/bcm-checkbox_2.entry.js +0 -189
- package/dist/esm/bcm-chip.entry.js +0 -87
- package/dist/esm/bcm-collapse-group.entry.js +0 -39
- package/dist/esm/bcm-collapse.entry.js +0 -58
- package/dist/esm/bcm-color-input.entry.js +0 -73
- package/dist/esm/bcm-date.entry.js +0 -178
- package/dist/esm/bcm-drawer.entry.js +0 -92
- package/dist/esm/bcm-dropdown.entry.js +0 -115
- package/dist/esm/bcm-expansion-panel.entry.js +0 -112
- package/dist/esm/bcm-item.entry.js +0 -68
- package/dist/esm/bcm-items.entry.js +0 -45
- package/dist/esm/bcm-link.entry.js +0 -47
- package/dist/esm/bcm-list_3.entry.js +0 -1966
- package/dist/esm/bcm-menu.entry.js +0 -147
- package/dist/esm/bcm-modal.entry.js +0 -153
- package/dist/esm/bcm-old-input.entry.js +0 -393
- package/dist/esm/bcm-old-tag_2.entry.js +0 -140
- package/dist/esm/bcm-popconfirm-box.entry.js +0 -111
- package/dist/esm/bcm-popconfirm.entry.js +0 -97
- package/dist/esm/bcm-progress.entry.js +0 -158
- package/dist/esm/bcm-radio-group.entry.js +0 -157
- package/dist/esm/bcm-radio.entry.js +0 -61
- package/dist/esm/bcm-rc-picker.entry.js +0 -9982
- package/dist/esm/bcm-select.entry.js +0 -1191
- package/dist/esm/bcm-shortcut.entry.js +0 -61
- package/dist/esm/bcm-step.entry.js +0 -85
- package/dist/esm/bcm-stepper.entry.js +0 -236
- package/dist/esm/bcm-switch.entry.js +0 -147
- package/dist/esm/bcm-tab-group.entry.js +0 -206
- package/dist/esm/bcm-tab-item-header.entry.js +0 -55
- package/dist/esm/bcm-tab-item.entry.js +0 -87
- package/dist/esm/bcm-tab.entry.js +0 -68
- package/dist/esm/bcm-tabs.entry.js +0 -366
- package/dist/esm/bcm-text.entry.js +0 -45
- package/dist/esm/bcm-textarea.entry.js +0 -159
- package/dist/esm/input-template-c8611096.js +0 -90
- package/dist/esm/json-parse-decarator-b230fb3b.js +0 -38
- package/dist/esm/lodash-0a4396a7.js +0 -17197
- package/dist/esm/moment-15cd9198.js +0 -4598
- package/dist/esm/stepper-states-38388dc9.js +0 -83
- package/dist/esm/tooltip-helper-e4eb77cc.js +0 -156
|
@@ -90,7 +90,7 @@ export class BcmList {
|
|
|
90
90
|
};
|
|
91
91
|
this.tagContainerWidth = 0;
|
|
92
92
|
this.selectAllItem = {
|
|
93
|
-
id: "select-all",
|
|
93
|
+
id: "select-all-" + this._id,
|
|
94
94
|
text: "Select All",
|
|
95
95
|
value: "select-all",
|
|
96
96
|
checked: false,
|
|
@@ -592,7 +592,7 @@ export class BcmList {
|
|
|
592
592
|
options: this,
|
|
593
593
|
});
|
|
594
594
|
const { totalRoots, totalItems } = listState.getValue(this._id);
|
|
595
|
-
this.totalData = totalItems;
|
|
595
|
+
this.totalData = totalItems.total;
|
|
596
596
|
this.totalRootData = totalRoots;
|
|
597
597
|
this.value = this.checkboxes ? (await this.getCheckedList()).checkedList : listState.selectedItem(this._id) ? listState.selectedItem(this._id)[0] : null;
|
|
598
598
|
if (!this.checkboxes) {
|
|
@@ -670,12 +670,12 @@ export class BcmList {
|
|
|
670
670
|
return Promise.resolve(this.value);
|
|
671
671
|
}
|
|
672
672
|
async checkedItem(itemId) {
|
|
673
|
-
const isCheckSelectAll = itemId === "select-all";
|
|
673
|
+
const isCheckSelectAll = itemId === "select-all-" + this._id;
|
|
674
674
|
if (!isCheckSelectAll) {
|
|
675
675
|
listState.checkedItem(this._id, itemId);
|
|
676
676
|
}
|
|
677
677
|
else {
|
|
678
|
-
listState.selectAll(this._id
|
|
678
|
+
listState.selectAll(this._id);
|
|
679
679
|
}
|
|
680
680
|
this.value = (await this.getCheckedList()).checkedList;
|
|
681
681
|
this.changeVisibleCheckeds();
|
|
@@ -802,7 +802,7 @@ export class BcmList {
|
|
|
802
802
|
"--min-height": openedType ? "inherit" : this.minHeight,
|
|
803
803
|
} }, h("div", { id: `bcm-list-label-${this._id}`, class: "bcm-list__label" }, label && (h("div", null, h("bcm-label", { tooltip: this.tooltip, size: this.size, type: this.captionType, value: label, required: required, htmlFor: this._id })))), this.type == "select" && (h("div", { id: `bcm-list-input-${this._id}`, class: bcmListInput }, h("span", { class: cs("bcm-list__input-container", { "type-single": !checkboxes, "value-empty": !this.value }) }, this.checkboxes ? (this.value && this.value.length > 0 ? (h("bcm-rc-overflow", { data: this.tagData, maxCount: this.tagCount })) : (h("span", { class: "bcm-list__input-placeholder" }, this.placeholder))) : this.value ? (this.inputText) : (h("span", { class: "bcm-list__input-placeholder" }, this.placeholder))), h("span", { class: cs("bcm-list__input-buttons", {
|
|
804
804
|
disabled: disabled,
|
|
805
|
-
}) }, this.clearable && this.value && (h("div", { class: "bcm-list__input-buttons-button" }, h("bcm-icon", { icon: "fal fa-times", onClick: e => !disabled && this.setClear(e) }))), h("div", { class: `bcm-list__input-buttons-button caret-is ${this.isOpen && this.calculatedViewport && "caret-is-open"}` }, h("bcm-icon", { icon: `far fa-angle-down` }))))), this.type === "autocomplete" && (h("div", { id: `bcm-list-input-${this._id}`, class: cs(bcmListInput, { "bcm-list__input-autocomplete": this.type == "autocomplete" }) }, h("span", { class: "bcm-list__input-container", id: `bcm-list-input-tag-container-${this._id}` }, this.checkboxes && h("span", { class: "bcm-list__input-tag-container", id: `bcm-list-input-tag-container-${this._id}-autocomplete` }), h("bcm-search", { id: `bcm-list-input-tag-container-${this._id}-autocomplete-input`, class: "bcm-list__autocomplete", data: this.data, clearable: true, "full-width": true, "no-caption": true, placeholder: this.placeholder })))), h(ListTemplate, { highlight: this.highlightText, searchable: this.type == "autocomplete" ? false : searchable, bcmListContainer: bcmListContainer, checkboxes: checkboxes, treeview: treeview, infoFooter: this.infoFooter, value: this.value, totalData: this.totalData, searchFound: this.searchFound, variableText: this.variableText, searchPlaceholder: this.searchPlaceholder, minSearchLength: this.minSearchLength, searchIsOnlyChilds: this.searchIsOnlyChilds, _id: this._id, tempId: this.tempId, checkAll: this.checkAll, data: this.getItems(), width: this.width, height: this.height, size: this.size, selectAllItem: this.selectAllItem, onScrollEvent: e => this.dataScrollEvent(e), items: this.getLimitedItems(this.searchGetParents), selectedItem: itemId => this.selectedItem(itemId), checkedItem: itemId => this.checkedItem(itemId), openGroup: parentId => this.openGroup(parentId), focusItem: itemId => this.focusItem(itemId), emptyText: this.emptyText, emptyIcon: this.emptyIcon, handleTransitionEnd: e => this.handleTransitionEnd(e) }), h(CaptionTemplate, { noCaption: this.noCaption, captionType: this.captionType, captionError: this.captionError, caption: this.caption })));
|
|
805
|
+
}) }, this.clearable && this.value && (h("div", { class: "bcm-list__input-buttons-button" }, h("bcm-icon", { icon: "fal fa-times", onClick: e => !disabled && this.setClear(e) }))), h("div", { class: `bcm-list__input-buttons-button caret-is ${this.isOpen && this.calculatedViewport && "caret-is-open"}` }, h("bcm-icon", { icon: `far fa-angle-down` }))))), this.type === "autocomplete" && (h("div", { id: `bcm-list-input-${this._id}`, class: cs(bcmListInput, { "bcm-list__input-autocomplete": this.type == "autocomplete" }) }, h("span", { class: "bcm-list__input-container", id: `bcm-list-input-tag-container-${this._id}` }, this.checkboxes && h("span", { class: "bcm-list__input-tag-container", id: `bcm-list-input-tag-container-${this._id}-autocomplete` }), h("bcm-search", { id: `bcm-list-input-tag-container-${this._id}-autocomplete-input`, class: "bcm-list__autocomplete", data: this.data, clearable: true, "full-width": true, "no-caption": true, placeholder: this.placeholder })))), h(ListTemplate, { type: this.type, highlight: this.highlightText, searchable: this.type == "autocomplete" ? false : searchable, bcmListContainer: bcmListContainer, checkboxes: checkboxes, treeview: treeview, infoFooter: this.infoFooter, value: this.value, totalData: this.totalData, searchFound: this.searchFound, variableText: this.variableText, searchPlaceholder: this.searchPlaceholder, minSearchLength: this.minSearchLength, searchIsOnlyChilds: this.searchIsOnlyChilds, _id: this._id, tempId: this.tempId, checkAll: this.checkAll, data: this.getItems(), width: this.width, height: this.height, size: this.size, selectAllItem: this.selectAllItem, onScrollEvent: e => this.dataScrollEvent(e), items: this.getLimitedItems(this.searchGetParents), selectedItem: itemId => this.selectedItem(itemId), checkedItem: itemId => this.checkedItem(itemId), openGroup: parentId => this.openGroup(parentId), focusItem: itemId => this.focusItem(itemId), emptyText: this.emptyText, emptyIcon: this.emptyIcon, handleTransitionEnd: e => this.handleTransitionEnd(e) }), h(CaptionTemplate, { noCaption: this.noCaption, captionType: this.captionType, captionError: this.captionError, caption: this.caption })));
|
|
806
806
|
}
|
|
807
807
|
static get is() { return "bcm-list"; }
|
|
808
808
|
static get originalStyleUrls() {
|
|
@@ -71,15 +71,21 @@ const removeValue = _id => {
|
|
|
71
71
|
const getValue = id => snq(() => state.value.get(id), {});
|
|
72
72
|
const calculateTotalItems = (dataSource, treeview) => {
|
|
73
73
|
let total = 0;
|
|
74
|
+
let selectableItems = 0;
|
|
74
75
|
dataSource.forEach(item => {
|
|
75
76
|
if (treeview || (!treeview && item.type != "group")) {
|
|
76
77
|
total += 1;
|
|
78
|
+
if (!item.disabled) {
|
|
79
|
+
selectableItems += 1;
|
|
80
|
+
}
|
|
77
81
|
}
|
|
78
82
|
if ((treeview || (!treeview && item.type == "group")) && item.items) {
|
|
79
|
-
|
|
83
|
+
const result = calculateTotalItems(item.items, treeview);
|
|
84
|
+
total += result.total;
|
|
85
|
+
selectableItems += result.selectableItems;
|
|
80
86
|
}
|
|
81
87
|
});
|
|
82
|
-
return total;
|
|
88
|
+
return { total, selectableItems };
|
|
83
89
|
};
|
|
84
90
|
const getData = id => {
|
|
85
91
|
let data = [];
|
|
@@ -496,6 +502,12 @@ const setClear = (id, items) => {
|
|
|
496
502
|
}
|
|
497
503
|
};
|
|
498
504
|
const selectAll = (id, status) => {
|
|
505
|
+
var _a, _b;
|
|
506
|
+
if (status == undefined) {
|
|
507
|
+
const totalItems = getValue(id).totalItems;
|
|
508
|
+
const checkedItems = ((_b = (_a = getCheckedList(id)) === null || _a === void 0 ? void 0 : _a.checkedList) === null || _b === void 0 ? void 0 : _b.length) || 0;
|
|
509
|
+
status = totalItems.selectableItems !== checkedItems;
|
|
510
|
+
}
|
|
499
511
|
const dataSource = getValue(id).dataSource;
|
|
500
512
|
if (dataSource) {
|
|
501
513
|
dataSource.forEach(item => {
|
|
@@ -14,7 +14,7 @@ export class BcmAttendance {
|
|
|
14
14
|
const classPrefix = 'bcm-attendance';
|
|
15
15
|
return (h(Host, { class: classPrefix }, h("span", { hidden: true }, h("slot", null)), data.map(item => {
|
|
16
16
|
var _a, _b;
|
|
17
|
-
return h("div", { class: `${classPrefix}__item` }, h("bcm-tooltip", { trigger: "hover", message: `${item.weekday || null} / AM` }, h("span", { class: `${classPrefix}__item-am ${classPrefix}__item-status-${(_a = item.am) !== null && _a !== void 0 ? _a : 'default'}` })), h("bcm-tooltip", { trigger: "hover", message: `${item.weekday || null} / PM` }, h("span", { class: `${classPrefix}__item-pm ${classPrefix}__item-status-${(_b = item.pm) !== null && _b !== void 0 ? _b : 'default'}` })));
|
|
17
|
+
return h("div", { class: `${classPrefix}__item` }, h("bcm-tooltip", { trigger: "hover", message: `${item.weekday || null} / AM`, "aria-label": `${item.weekday || null} / AM` }, h("span", { class: `${classPrefix}__item-am ${classPrefix}__item-status-${(_a = item.am) !== null && _a !== void 0 ? _a : 'default'}` })), h("bcm-tooltip", { trigger: "hover", message: `${item.weekday || null} / PM`, "aria-label": `${item.weekday || null} / PM` }, h("span", { class: `${classPrefix}__item-pm ${classPrefix}__item-status-${(_b = item.pm) !== null && _b !== void 0 ? _b : 'default'}` })));
|
|
18
18
|
})));
|
|
19
19
|
}
|
|
20
20
|
static get is() { return "bcm-attendance"; }
|
|
@@ -1164,7 +1164,7 @@ export class BcmSelect {
|
|
|
1164
1164
|
'overflow': 'hidden',
|
|
1165
1165
|
'display': 'block'
|
|
1166
1166
|
};
|
|
1167
|
-
return (h(Host, { class: hostClasses, onFocus: () => this.handleFocus(), onBlur: () => this.handleBlur() }, h("div", { class: container }, label && h("bcm-label", { onClick: () => this.handleOpen(false), tooltip: this.tooltip, type: captionType, value: label, required: required }), h("div", { id: "selected-container", class: selected, onClick: (e) => this.handleOpen(e) }, h("span", { class: selectedText, title: this.selectText && (this.selectText) }, (this.selectText && (this.selectText)), ((!this.selectText && (this.onShowVisibleTags.length > 0 || this.onShowHiddenTags.length > 0)) && (h("span", { id: "tagcontainer", class: "tag-container" }, h("span", null, this.onShowVisibleTags.map((item) => (h("bcm-old-tag", { _internal_id: this._internal_id, customStyle: customStyleTag, onClick: () => this.handleClickTag(), type: "dissmisable", value: item[this.objectMapping['text']], title: item[this.objectMapping['text']], id: item[this.objectMapping['id']], class: "tag" })))), h("span", null, this.onShowHiddenTags.length > 0 && (h("bcm-old-tag", { _internal_id: this._internal_id, title: this.hiddenTagsString, customStyle: customStyleOtherTag, onClick: (e) => this.showHiddenTags(e), color: this.otherTagStatus ? 'prime-blue' : 'grey-9', type: "dissmisable", value: "+ " + this.onShowHiddenTags.length + " item" + (this.onShowHiddenTags.length > 1 ? 's' : '') + " selected", id: "other-tag" })))))), (!(this.selectText || this.onShowVisibleTags.length > 0 || this.onShowHiddenTags.length > 0) && placeholder && (h("span", { class: "placeholder" }, " ", placeholder, " ")))), h("div", { class: "buttons" }, clearable && value && (h("
|
|
1167
|
+
return (h(Host, { class: hostClasses, onFocus: () => this.handleFocus(), onBlur: () => this.handleBlur() }, h("div", { class: container }, label && h("bcm-label", { onClick: () => this.handleOpen(false), tooltip: this.tooltip, type: captionType, value: label, required: required }), h("div", { id: "selected-container", class: selected, onClick: (e) => this.handleOpen(e) }, h("span", { class: selectedText, title: this.selectText && (this.selectText) }, (this.selectText && (this.selectText)), ((!this.selectText && (this.onShowVisibleTags.length > 0 || this.onShowHiddenTags.length > 0)) && (h("span", { id: "tagcontainer", class: "tag-container" }, h("span", null, this.onShowVisibleTags.map((item) => (h("bcm-old-tag", { _internal_id: this._internal_id, customStyle: customStyleTag, onClick: () => this.handleClickTag(), type: "dissmisable", value: item[this.objectMapping['text']], title: item[this.objectMapping['text']], id: item[this.objectMapping['id']], class: "tag" })))), h("span", null, this.onShowHiddenTags.length > 0 && (h("bcm-old-tag", { _internal_id: this._internal_id, title: this.hiddenTagsString, customStyle: customStyleOtherTag, onClick: (e) => this.showHiddenTags(e), color: this.otherTagStatus ? 'prime-blue' : 'grey-9', type: "dissmisable", value: "+ " + this.onShowHiddenTags.length + " item" + (this.onShowHiddenTags.length > 1 ? 's' : '') + " selected", id: "other-tag" })))))), (!(this.selectText || this.onShowVisibleTags.length > 0 || this.onShowHiddenTags.length > 0) && placeholder && (h("span", { class: "placeholder" }, " ", placeholder, " ")))), h("div", { class: "buttons" }, clearable && value && (h("div", { class: "select-clear-button", onClick: (e) => this.clickClear(e) }, h("svg", { style: { "fill": "#595959", "width": "14px", "height": "14px" }, xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512" }, h("path", { d: "M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm0 448c-110.5 0-200-89.5-200-200S145.5 56 256 56s200 89.5 200 200-89.5 200-200 200zm101.8-262.2L295.6 256l62.2 62.2c4.7 4.7 4.7 12.3 0 17l-22.6 22.6c-4.7 4.7-12.3 4.7-17 0L256 295.6l-62.2 62.2c-4.7 4.7-12.3 4.7-17 0l-22.6-22.6c-4.7-4.7-4.7-12.3 0-17l62.2-62.2-62.2-62.2c-4.7-4.7-4.7-12.3 0-17l22.6-22.6c4.7-4.7 12.3-4.7 17 0l62.2 62.2 62.2-62.2c4.7-4.7 12.3-4.7 17 0l22.6 22.6c4.7 4.7 4.7 12.3 0 17z" })))), h("span", { class: this.isOpen ? 'open' : 'close' }, h("svg", { style: { "fill": "#595959", "width": "14px", "height": "14px" }, xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 320 512" }, h("path", { d: "M168.5 164.2l148 146.8c4.7 4.7 4.7 12.3 0 17l-19.8 19.8c-4.7 4.7-12.3 4.7-17 0L160 229.3 40.3 347.8c-4.7 4.7-12.3 4.7-17 0L3.5 328c-4.7-4.7-4.7-12.3 0-17l148-146.8c4.7-4.7 12.3-4.7 17 0z" }))))), h("div", { class: menu, style: optionViewportStyle }, h("div", { class: optionsViewport })), !noCaption && (h("div", { class: "caption-area" }, captionType == "error"
|
|
1168
1168
|
? h("span", { class: captionClasses }, " ", captionError, " ")
|
|
1169
1169
|
: caption && h("span", { class: captionClasses }, " ", caption, " "))))));
|
|
1170
1170
|
}
|
|
@@ -143,10 +143,9 @@ slot[name=icon-prefix]::slotted(bcm-icon) {
|
|
|
143
143
|
}
|
|
144
144
|
|
|
145
145
|
.tab {
|
|
146
|
-
font-family:
|
|
147
|
-
font-
|
|
148
|
-
|
|
149
|
-
font-weight: 400;
|
|
146
|
+
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;
|
|
147
|
+
-webkit-font-smoothing: antialiased;
|
|
148
|
+
-moz-osx-font-smoothing: grayscale;
|
|
150
149
|
position: relative;
|
|
151
150
|
display: flex;
|
|
152
151
|
flex-direction: row;
|
|
@@ -154,23 +153,24 @@ slot[name=icon-prefix]::slotted(bcm-icon) {
|
|
|
154
153
|
justify-content: center;
|
|
155
154
|
flex-wrap: nowrap;
|
|
156
155
|
padding: var(--bcm-tab-vertical-space) 14px var(--bcm-tab-vertical-space) 14px;
|
|
157
|
-
color:
|
|
158
|
-
font-size:
|
|
159
|
-
line-height:
|
|
156
|
+
color: #374151;
|
|
157
|
+
font-size: 14px;
|
|
158
|
+
line-height: 20px;
|
|
159
|
+
font-weight: 500;
|
|
160
160
|
cursor: pointer;
|
|
161
161
|
user-select: none;
|
|
162
162
|
}
|
|
163
163
|
.tab:hover {
|
|
164
|
-
color:
|
|
164
|
+
color: #1f2937;
|
|
165
165
|
}
|
|
166
166
|
.tab:active {
|
|
167
|
-
color:
|
|
167
|
+
color: #1f2937;
|
|
168
168
|
}
|
|
169
169
|
.tab:focus-visible {
|
|
170
|
-
color:
|
|
170
|
+
color: #1f2937;
|
|
171
171
|
}
|
|
172
172
|
.tab.active {
|
|
173
|
-
color:
|
|
173
|
+
color: #1d4ed8;
|
|
174
174
|
}
|
|
175
175
|
.tab.active::before {
|
|
176
176
|
content: "";
|
|
@@ -178,18 +178,18 @@ slot[name=icon-prefix]::slotted(bcm-icon) {
|
|
|
178
178
|
left: 0;
|
|
179
179
|
width: 100%;
|
|
180
180
|
height: 2px;
|
|
181
|
-
background-color:
|
|
181
|
+
background-color: #1d4ed8;
|
|
182
182
|
position: absolute;
|
|
183
183
|
z-index: 1;
|
|
184
184
|
}
|
|
185
185
|
.tab.active:hover {
|
|
186
|
-
color:
|
|
186
|
+
color: #1e40af;
|
|
187
187
|
}
|
|
188
188
|
.tab.active:active {
|
|
189
|
-
color:
|
|
189
|
+
color: #1e40af;
|
|
190
190
|
}
|
|
191
191
|
.tab.active:focus-visible {
|
|
192
|
-
color:
|
|
192
|
+
color: #1e40af;
|
|
193
193
|
}
|
|
194
194
|
|
|
195
195
|
.tab:active,
|
|
@@ -41,10 +41,12 @@ StringHelper.slugify = (str) => slugify(str, {
|
|
|
41
41
|
});
|
|
42
42
|
StringHelper.highlight = (str, search) => {
|
|
43
43
|
let text = str;
|
|
44
|
-
text = text.replace(/(<mark>|<\/mark>)/gim, '');
|
|
44
|
+
// text = text.replace(/(<mark>|<\/mark>)/gim, '');
|
|
45
|
+
text = text.replace(/(<mark>|<\/mark>)/gim, '');
|
|
45
46
|
const escapedSearch = search.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&'); // Özel karakterleri kaçış dizileri ile kaçır
|
|
46
47
|
const regex = new RegExp(escapedSearch, 'gi');
|
|
47
|
-
const newText = text.replace(regex, '<mark>$&</mark>');
|
|
48
|
+
// const newText = text.replace(regex, '<mark>$&</mark>');
|
|
49
|
+
const newText = text.replace(regex, '<mark>$&</mark>');
|
|
48
50
|
return newText;
|
|
49
51
|
};
|
|
50
52
|
StringHelper.templateParser = (str, data) => str.replace(/\{{(\w+)\}}/g, (_, key) => data[key] || '');
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Stencil
|
|
3
|
+
* Copyright (c) Bromcom.
|
|
4
|
+
*/
|
|
5
|
+
export const countries = [
|
|
6
|
+
{
|
|
7
|
+
id: 1,
|
|
8
|
+
text: "Turkey",
|
|
9
|
+
iso2: "TR",
|
|
10
|
+
phone_code: "+90",
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
id: 2,
|
|
14
|
+
text: "United States",
|
|
15
|
+
iso2: "US",
|
|
16
|
+
phone_code: "+1",
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
id: 3,
|
|
20
|
+
text: "United Kingdom",
|
|
21
|
+
iso2: "GB",
|
|
22
|
+
phone_code: "+44",
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
id: 4,
|
|
26
|
+
text: "Germany",
|
|
27
|
+
iso2: "DE",
|
|
28
|
+
phone_code: "+49",
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
id: 5,
|
|
32
|
+
text: "France",
|
|
33
|
+
iso2: "FR",
|
|
34
|
+
phone_code: "+33",
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
id: 6,
|
|
38
|
+
text: "Italy",
|
|
39
|
+
iso2: "IT",
|
|
40
|
+
phone_code: "+39",
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
id: 7,
|
|
44
|
+
text: "Canada",
|
|
45
|
+
iso2: "CA",
|
|
46
|
+
phone_code: "+1",
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
id: 8,
|
|
50
|
+
text: "Spain",
|
|
51
|
+
iso2: "ES",
|
|
52
|
+
phone_code: "+34",
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
id: 9,
|
|
56
|
+
text: "Australia",
|
|
57
|
+
iso2: "AU",
|
|
58
|
+
phone_code: "+61",
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
id: 10,
|
|
62
|
+
text: "Netherlands",
|
|
63
|
+
iso2: "NL",
|
|
64
|
+
phone_code: "+31",
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
id: 11,
|
|
68
|
+
text: "Brazil",
|
|
69
|
+
iso2: "BR",
|
|
70
|
+
phone_code: "+55",
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
id: 12,
|
|
74
|
+
text: "Sweden",
|
|
75
|
+
iso2: "SE",
|
|
76
|
+
phone_code: "+46",
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
id: 13,
|
|
80
|
+
text: "Belgium",
|
|
81
|
+
iso2: "BE",
|
|
82
|
+
phone_code: "+32",
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
id: 14,
|
|
86
|
+
text: "Norway",
|
|
87
|
+
iso2: "NO",
|
|
88
|
+
phone_code: "+47",
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
id: 15,
|
|
92
|
+
text: "India",
|
|
93
|
+
iso2: "IN",
|
|
94
|
+
phone_code: "+91",
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
id: 16,
|
|
98
|
+
text: "Denmark",
|
|
99
|
+
iso2: "DK",
|
|
100
|
+
phone_code: "+45",
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
id: 17,
|
|
104
|
+
text: "Mexico",
|
|
105
|
+
iso2: "MX",
|
|
106
|
+
phone_code: "+52",
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
id: 18,
|
|
110
|
+
text: "Argentina",
|
|
111
|
+
iso2: "AR",
|
|
112
|
+
phone_code: "+54",
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
id: 19,
|
|
116
|
+
text: "Austria",
|
|
117
|
+
iso2: "AT",
|
|
118
|
+
phone_code: "+43",
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
id: 20,
|
|
122
|
+
text: "Poland",
|
|
123
|
+
iso2: "PL",
|
|
124
|
+
phone_code: "+48",
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
id: 21,
|
|
128
|
+
text: "South Africa",
|
|
129
|
+
iso2: "ZA",
|
|
130
|
+
phone_code: "+27",
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
id: 22,
|
|
134
|
+
text: "New Zealand",
|
|
135
|
+
iso2: "NZ",
|
|
136
|
+
phone_code: "+64",
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
id: 23,
|
|
140
|
+
text: "Japan",
|
|
141
|
+
iso2: "JP",
|
|
142
|
+
phone_code: "+81",
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
id: 24,
|
|
146
|
+
text: "Greece",
|
|
147
|
+
iso2: "GR",
|
|
148
|
+
phone_code: "+30",
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
id: 25,
|
|
152
|
+
text: "South Korea",
|
|
153
|
+
iso2: "KR",
|
|
154
|
+
phone_code: "+82",
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
id: 26,
|
|
158
|
+
text: "Russia",
|
|
159
|
+
iso2: "RU",
|
|
160
|
+
phone_code: "+7",
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
id: 27,
|
|
164
|
+
text: "China",
|
|
165
|
+
iso2: "CN",
|
|
166
|
+
phone_code: "+86",
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
id: 28,
|
|
170
|
+
text: "Portugal",
|
|
171
|
+
iso2: "PT",
|
|
172
|
+
phone_code: "+351",
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
id: 29,
|
|
176
|
+
text: "Finland",
|
|
177
|
+
iso2: "FI",
|
|
178
|
+
phone_code: "+358",
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
id: 30,
|
|
182
|
+
text: "Switzerland",
|
|
183
|
+
iso2: "CH",
|
|
184
|
+
phone_code: "+41",
|
|
185
|
+
},
|
|
186
|
+
];
|
|
@@ -7,5 +7,5 @@ import Bcm from '../models/bcm';
|
|
|
7
7
|
import { SlotTemplate } from './slot-template';
|
|
8
8
|
export const ButtonTemplate = ({ value, type, componentClass, disabled, href, target, loading, isIconOnly, icon, iconPosition, id }) => {
|
|
9
9
|
const ButtonTagType = (href) ? Bcm.HtmlElementType.a : Bcm.HtmlElementType.button;
|
|
10
|
-
return (h(ButtonTagType, Object.assign({ id: id }, (type == Bcm.HtmlElementType.button && { type }), { class: componentClass, disabled: disabled, href: href, target: target, tabindex: "0" }), h("span", { hidden: true }, h("slot", null)), loading && h("span", { class: "bcm-button__container-loading" }, " ", h("span", { class: "bcm-button__container-icon" }, h("i", { class: "far fa-spinner-third fa-spin" }), " ")), icon && h("span", { class: `${iconPosition} bcm-button__container-icon` }, h("i", { class: `${icon}` })), !isIconOnly && (h(SlotTemplate, { className: "bcm-button__container-text", value: value })), h("slot", { name: "suffix" })));
|
|
10
|
+
return (h(ButtonTagType, Object.assign({ id: id }, (type == Bcm.HtmlElementType.button && { type }), { class: componentClass, disabled: disabled, href: href, target: target, tabindex: "0", "aria-label": "button" }), h("span", { hidden: true }, h("slot", null)), loading && h("span", { class: "bcm-button__container-loading" }, " ", h("span", { class: "bcm-button__container-icon" }, h("i", { class: "far fa-spinner-third fa-spin" }), " ")), icon && h("span", { class: `${iconPosition} bcm-button__container-icon` }, h("i", { class: `${icon}` })), !isIconOnly && (h(SlotTemplate, { className: "bcm-button__container-text", value: value })), h("slot", { name: "suffix" })));
|
|
11
11
|
};
|
|
@@ -11,8 +11,8 @@ maxLength, value, }) => {
|
|
|
11
11
|
return ((noCaption == false || maxLength) && (h("div", { class: cs("bcm-ui-element bcm-ui-feedback bcm-caption-area tw-mt-1 tw-min-h-[20px] tw-flex tw-flex-row tw-items-start tw-justify-between tw-font-normal", {
|
|
12
12
|
"tw-text-slate-500": !captionType || captionType == "default",
|
|
13
13
|
"tw-text-blue-600": captionType == "info",
|
|
14
|
-
"tw-text-emerald-
|
|
15
|
-
"tw-text-amber-
|
|
14
|
+
"tw-text-emerald-700": captionType == "success",
|
|
15
|
+
"tw-text-amber-700": captionType == "warning",
|
|
16
16
|
"tw-text-red-600": captionType == "error",
|
|
17
17
|
}, {
|
|
18
18
|
"tw-text-1": size == "small",
|
|
@@ -57,5 +57,5 @@ ref, handleBlur, handleFocus, handleInput, handleChange, isEyeDropperSupported,
|
|
|
57
57
|
type,
|
|
58
58
|
autocomplete: autocomplete ? "on" : "off",
|
|
59
59
|
pattern,
|
|
60
|
-
}), (ElementTagType === Bcm.HtmlElementType.textarea && { rows: rows, resize: resize }), { value: value, maxLength: maxLength, placeholder: placeholder, disabled: disabled, readOnly: readonly, ref: el => ref(el), onBlur: e => templateHandleBlur(e), onFocus: e => templateHandleFocus(e), onInput: e => handleInput(e), onChange: e => handleChange(e) })), h("span", { class: "input-suffix-content" }, clearable && !disabled && !readonly && (h("span", { class: "input-suffix input-suffix-button input-clear-button", onClick: e => handleClear(e) }, h("bcm-icon", { icon: "far fa-times" })))), h("span", { class: "input-suffix-content" }, (type === "password" || type === "text") && passwordToggle && (h("span", { class: "input-suffix input-suffix-button", onClick: () => changePasswordVisibility() }, h("bcm-icon", { icon: isPasswordVisible ? "far fa-eye-slash" : "far fa-eye" })))), h("span", { class: "input-suffix-content" }, Object.keys(defaultIcons).includes(type) && !noDefaultIcon && (h("span", { class: "input-suffix" }, h("bcm-icon", { icon: defaultIcons[type] })))), h("span", { class: "input-suffix-content" }, type === "number" && (h("div", { class: caretContainer }, h("span", { class: "bcm-input-caret", onClick: () => steps("up") }, h("bcm-icon", { icon: "fas fa-caret-up" })), h("span", { class: "bcm-input-caret", onClick: () => steps("down") }, h("bcm-icon", { icon: "fas fa-caret-down" }))))), h("span", { class: "input-suffix-content" }, type !== "number" && (h("span", { class: "input-suffix" }, h("slot", { name: "suffix" }), _suffix && _suffix.length > 0 && h("span", { innerHTML: _suffix }))), typeColor && isEyeDropperSupported() && (h("span", { class: "input-suffix" }, h("span", null, h("i", { class: "far fa-eye-dropper", onClick: () => eyeDropper() })))))));
|
|
60
|
+
}), (ElementTagType === Bcm.HtmlElementType.textarea && { rows: rows, resize: resize }), { value: value, maxLength: maxLength, "aria-label": placeholder || "Enter text", "aria-labelledby": id + "-label", title: "", placeholder: placeholder, disabled: disabled, readOnly: readonly, ref: el => ref(el), onBlur: e => templateHandleBlur(e), onFocus: e => templateHandleFocus(e), onInput: e => handleInput(e), onChange: e => handleChange(e) })), h("span", { class: "input-suffix-content" }, clearable && !disabled && !readonly && (h("span", { class: "input-suffix input-suffix-button input-clear-button", onClick: e => handleClear(e) }, h("bcm-icon", { icon: "far fa-times" })))), h("span", { class: "input-suffix-content" }, (type === "password" || type === "text") && passwordToggle && (h("span", { class: "input-suffix input-suffix-button", onClick: () => changePasswordVisibility() }, h("bcm-icon", { icon: isPasswordVisible ? "far fa-eye-slash" : "far fa-eye" })))), h("span", { class: "input-suffix-content" }, Object.keys(defaultIcons).includes(type) && !noDefaultIcon && (h("span", { class: "input-suffix" }, h("bcm-icon", { icon: defaultIcons[type] })))), h("span", { class: "input-suffix-content" }, type === "number" && (h("div", { class: caretContainer }, h("span", { class: "bcm-input-caret", onClick: () => steps("up") }, h("bcm-icon", { icon: "fas fa-caret-up" })), h("span", { class: "bcm-input-caret", onClick: () => steps("down") }, h("bcm-icon", { icon: "fas fa-caret-down" }))))), h("span", { class: "input-suffix-content" }, type !== "number" && (h("span", { class: "input-suffix" }, h("slot", { name: "suffix" }), _suffix && _suffix.length > 0 && h("span", { innerHTML: _suffix }))), typeColor && isEyeDropperSupported() && (h("span", { class: "input-suffix" }, h("span", null, h("i", { class: "far fa-eye-dropper", onClick: () => eyeDropper() })))))));
|
|
61
61
|
};
|
|
@@ -8,7 +8,7 @@ import Bcm from "../models/bcm";
|
|
|
8
8
|
export const LabelTemplate = ({ required, value, size, form, htmlFor, type, tooltip }) => {
|
|
9
9
|
size = size || "medium";
|
|
10
10
|
type = type || Bcm.Status.default;
|
|
11
|
-
return (h("label", { form: form, htmlFor: htmlFor, class: cs("bcm-ui-element bcm-ui-feedback bcm-label bcm-label__text tw-mb-1 tw-font-medium tw-text-slate-600 ", {
|
|
11
|
+
return (h("label", { form: form, htmlFor: htmlFor, "aria-hidden": "true", class: cs("bcm-ui-element bcm-ui-feedback bcm-label bcm-label__text tw-mb-1 tw-font-medium tw-text-slate-600 ", {
|
|
12
12
|
"tw-text-1": size == "small",
|
|
13
13
|
"tw-text-2": size == "medium",
|
|
14
14
|
"tw-text-3": size == "large",
|
|
@@ -45,7 +45,7 @@ export const ListItemTemplate = ({ item, treeview, highlight, checkboxes, size,
|
|
|
45
45
|
item.open = item.isSearching;
|
|
46
46
|
openGroup(item.id);
|
|
47
47
|
};
|
|
48
|
-
return (h("div", { id: item.id, hidden: item.hidden, "on-focus": e => !unClickable && !disabled && focusItem(e), class: cs('bcm-list__item',
|
|
48
|
+
return (h("div", { id: item.id, hidden: item.hidden, "on-focus": e => !unClickable && !disabled && focusItem(e), tabIndex: unClickable || disabled ? -1 : 0, class: cs('bcm-list__item',
|
|
49
49
|
// size === 'large' ? 'size-3' : 'size-2',
|
|
50
50
|
'bcm-list__item-' + size, {
|
|
51
51
|
'bcm-list__item--group': !treeview && item.type == 'group',
|
|
@@ -5,19 +5,13 @@
|
|
|
5
5
|
import { h } from '@stencil/core';
|
|
6
6
|
import { InfoFooterTemplate } from './info-footer-template';
|
|
7
7
|
import { ListItemTemplate } from './list-item-template';
|
|
8
|
-
export const ListTemplate = ({ highlight, selectAllItem, bcmListContainer, treeview, checkboxes, checkAll, infoFooter, value, totalData, searchFound, variableText, _id, tempId, data, width, height, size, searchPlaceholder, minSearchLength, selectedItem, openGroup, checkedItem, onScrollEvent, focusItem, items, searchable, searchIsOnlyChilds, emptyText, emptyIcon, handleTransitionEnd, }) => {
|
|
8
|
+
export const ListTemplate = ({ type, highlight, selectAllItem, bcmListContainer, treeview, checkboxes, checkAll, infoFooter, value, totalData, searchFound, variableText, _id, tempId, data, width, height, size, searchPlaceholder, minSearchLength, selectedItem, openGroup, checkedItem, onScrollEvent, focusItem, items, searchable, searchIsOnlyChilds, emptyText, emptyIcon, handleTransitionEnd, }) => {
|
|
9
9
|
const showSelectAll = !(treeview && searchFound > 0) && !(searchFound > 0);
|
|
10
10
|
const setScrollHeight = () => {
|
|
11
11
|
const itemHeight = size === 'small' ? 28 : size === 'medium' ? 36 : 48;
|
|
12
12
|
const itemCount = searchFound == null ? (treeview ? items.length : totalData) : searchFound;
|
|
13
13
|
const scrollHeight = itemCount * itemHeight || 0;
|
|
14
|
-
return {
|
|
15
|
-
'min-height': `${scrollHeight}px`,
|
|
16
|
-
'overscroll-behavior': 'none',
|
|
17
|
-
'height': '100%',
|
|
18
|
-
'display': 'flex',
|
|
19
|
-
'flex-direction': 'column',
|
|
20
|
-
};
|
|
14
|
+
return Object.assign(Object.assign({ 'min-height': `${scrollHeight}px` }, (type === 'select' && { 'overscroll-behavior': 'none' })), { 'height': '100%', 'display': 'flex', 'flex-direction': 'column' });
|
|
21
15
|
};
|
|
22
|
-
return (h("div", { id: `bcm-list-${_id}`, class: bcmListContainer, "temp-id": `bcm-list-${tempId}`, style: { '--height': height, '--width': width }, onTransitionEnd: e => handleTransitionEnd(e) }, data && searchable && (h("section", { class: "bcm-list__container-search" }, h("bcm-search", { size: size, id: `bcm-list-${_id}-search`, data: data, clearable: true, placeholder: searchPlaceholder, "min-search-length": minSearchLength, searchIsOnlyChilds: searchIsOnlyChilds }))), h("main", { onScroll: e => onScrollEvent(e), class: "scrolling", style: { 'overscroll-behavior': 'none' } }, h("div", { style: setScrollHeight() }, checkAll && searchFound != 0 && items && items.length > 0 && checkboxes && showSelectAll && (h("section", { class: "bcm-list__container-select-all" }, h(ListItemTemplate, { size: size, item: selectAllItem, treeview: false, checkboxes: true, selectedItem: itemId => selectedItem(itemId), checkedItem: itemId => checkedItem(itemId), openGroup: parentId => openGroup(parentId), focusItem: itemId => focusItem(itemId) }))), items.map((item) => (h(ListItemTemplate, { highlight: highlight, size: size, item: item, searchIsOnlyChilds: searchIsOnlyChilds, treeview: treeview, checkboxes: checkboxes, selectedItem: itemId => selectedItem(itemId), checkedItem: itemId => checkedItem(itemId), openGroup: parentId => openGroup(parentId), focusItem: itemId => focusItem(itemId) }))), (!items || items.length === 0) && searchFound != 0 && (h("section", { class: "bcm-list__container-no-data" }, h("bcm-empty", { style: { height: 'auto' }, icon: emptyIcon }, h("span", { innerHTML: emptyText || 'No data' })))), searchFound == 0 && (h("section", { class: "bcm-list__container-no-data" }, h("bcm-empty", { style: { height: 'auto' }, icon: emptyIcon }, h("span", { innerHTML: emptyText || 'No Data Found' })))))), infoFooter && data && data.length > 0 && (h(InfoFooterTemplate, { selected: value === null || value === void 0 ? void 0 : value.length, total: totalData, found: searchFound, multiple: checkboxes, variableText: variableText }))));
|
|
16
|
+
return (h("div", { id: `bcm-list-${_id}`, class: bcmListContainer, "temp-id": `bcm-list-${tempId}`, style: { '--height': height, '--width': width }, onTransitionEnd: e => handleTransitionEnd(e) }, data && searchable && (h("section", { class: "bcm-list__container-search" }, h("bcm-search", { size: size, id: `bcm-list-${_id}-search`, data: data, clearable: true, placeholder: searchPlaceholder, "min-search-length": minSearchLength, searchIsOnlyChilds: searchIsOnlyChilds }))), h("main", { onScroll: e => onScrollEvent(e), class: "scrolling", style: Object.assign({}, (type === 'select' && { 'overscroll-behavior': 'none' })) }, h("div", { style: setScrollHeight() }, checkAll && searchFound != 0 && items && items.length > 0 && checkboxes && showSelectAll && (h("section", { class: "bcm-list__container-select-all" }, h(ListItemTemplate, { size: size, item: selectAllItem, treeview: false, checkboxes: true, selectedItem: itemId => selectedItem(itemId), checkedItem: itemId => checkedItem(itemId), openGroup: parentId => openGroup(parentId), focusItem: itemId => focusItem(itemId) }))), items.map((item) => (h(ListItemTemplate, { highlight: highlight, size: size, item: item, searchIsOnlyChilds: searchIsOnlyChilds, treeview: treeview, checkboxes: checkboxes, selectedItem: itemId => selectedItem(itemId), checkedItem: itemId => checkedItem(itemId), openGroup: parentId => openGroup(parentId), focusItem: itemId => focusItem(itemId) }))), (!items || items.length === 0) && searchFound != 0 && (h("section", { class: "bcm-list__container-no-data" }, h("bcm-empty", { style: { height: 'auto' }, icon: emptyIcon }, h("span", { innerHTML: emptyText || 'No data' })))), searchFound == 0 && (h("section", { class: "bcm-list__container-no-data" }, h("bcm-empty", { style: { height: 'auto' }, icon: emptyIcon }, h("span", { innerHTML: emptyText || 'No Data Found' })))))), infoFooter && data && data.length > 0 && (h(InfoFooterTemplate, { selected: value === null || value === void 0 ? void 0 : value.length, total: totalData, found: searchFound, multiple: checkboxes, variableText: variableText }))));
|
|
23
17
|
};
|
|
@@ -104,7 +104,7 @@ const BcmAvatar = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
106
|
else if (this.image) {
|
|
107
|
-
return h("img", { class: image(), onError: () => (this.isFallback = true), src: this.image, alt: this.alt });
|
|
107
|
+
return h("img", { class: image(), onError: () => (this.isFallback = true), src: this.image, alt: this.alt, "aria-label": this.alt || this.name || "Avatar" });
|
|
108
108
|
}
|
|
109
109
|
else if (this.name) {
|
|
110
110
|
return this.getFirstLetters(this.name);
|
package/dist/components/badge.js
CHANGED
|
@@ -16,7 +16,7 @@ const badgeStyle = ce({
|
|
|
16
16
|
slots: {
|
|
17
17
|
host: "bcm-badge bcm-ui-element bcm-ui-content-display tw-inline-flex tw-items-center tw-justify-center tw-font-normal ",
|
|
18
18
|
base: [
|
|
19
|
-
"bcm-badge__dot",
|
|
19
|
+
"bcm-badge__dot tw-z-10",
|
|
20
20
|
"tw-flex tw-items-center tw-justify-center tw-flex-row",
|
|
21
21
|
"tw-rounded-full tw-text-center",
|
|
22
22
|
"tw-bg-[--bcm-badge-bg] tw-text-[--bcm-badge-text]",
|
|
@@ -79,7 +79,7 @@ const BcmBadge = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
79
79
|
render() {
|
|
80
80
|
const { blink, value, size, color, status } = this;
|
|
81
81
|
const _color = this.statusColors[status] || color;
|
|
82
|
-
const { tone, colorName } = ColorHelper.parseColor(_color);
|
|
82
|
+
const { tone, colorName } = ColorHelper.parseColor(_color, 700);
|
|
83
83
|
const dc = Generate.getTwColor({
|
|
84
84
|
color: colorName,
|
|
85
85
|
tones: {
|
|
@@ -20,7 +20,7 @@ const BcmAttendance$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
|
20
20
|
const classPrefix = 'bcm-attendance';
|
|
21
21
|
return (h(Host, { class: classPrefix }, h("span", { hidden: true }, h("slot", null)), data.map(item => {
|
|
22
22
|
var _a, _b;
|
|
23
|
-
return h("div", { class: `${classPrefix}__item` }, h("bcm-tooltip", { trigger: "hover", message: `${item.weekday || null} / AM` }, h("span", { class: `${classPrefix}__item-am ${classPrefix}__item-status-${(_a = item.am) !== null && _a !== void 0 ? _a : 'default'}` })), h("bcm-tooltip", { trigger: "hover", message: `${item.weekday || null} / PM` }, h("span", { class: `${classPrefix}__item-pm ${classPrefix}__item-status-${(_b = item.pm) !== null && _b !== void 0 ? _b : 'default'}` })));
|
|
23
|
+
return h("div", { class: `${classPrefix}__item` }, h("bcm-tooltip", { trigger: "hover", message: `${item.weekday || null} / AM`, "aria-label": `${item.weekday || null} / AM` }, h("span", { class: `${classPrefix}__item-am ${classPrefix}__item-status-${(_a = item.am) !== null && _a !== void 0 ? _a : 'default'}` })), h("bcm-tooltip", { trigger: "hover", message: `${item.weekday || null} / PM`, "aria-label": `${item.weekday || null} / PM` }, h("span", { class: `${classPrefix}__item-pm ${classPrefix}__item-status-${(_b = item.pm) !== null && _b !== void 0 ? _b : 'default'}` })));
|
|
24
24
|
})));
|
|
25
25
|
}
|
|
26
26
|
get el() { return this; }
|
|
@@ -213,7 +213,7 @@ const checkBoxGroupState = {
|
|
|
213
213
|
changeIndeterminate,
|
|
214
214
|
};
|
|
215
215
|
|
|
216
|
-
const groupCss = "@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}.bcm-checkbox-group{display:flex;flex-direction:column;align-items:flex-start;width:100%;margin-bottom:8px}.bcm-checkbox-group.hidden{display:none}.bcm-checkbox-group__container{display:flex;flex-wrap:wrap;justify-content:flex-start;align-items:flex-start;width:100%}.bcm-checkbox-group__container.full-width{max-width:100%}.bcm-checkbox-group__container.vertical{gap:8px;flex-direction:column}.bcm-checkbox-group__container.button{gap:unset}.bcm-checkbox-group__container.indeterminate{padding-top:
|
|
216
|
+
const groupCss = "@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}.bcm-checkbox-group{display:flex;flex-direction:column;align-items:flex-start;width:100%;margin-bottom:8px}.bcm-checkbox-group.hidden{display:none}.bcm-checkbox-group__container{display:flex;flex-wrap:wrap;justify-content:flex-start;align-items:flex-start;width:100%}.bcm-checkbox-group__container.full-width{max-width:100%}.bcm-checkbox-group__container.vertical{gap:8px;flex-direction:column}.bcm-checkbox-group__container.button{gap:unset}.bcm-checkbox-group__container.indeterminate{padding-top:8px;margin-top:8px;border-top:1px solid #efefef}";
|
|
217
217
|
|
|
218
218
|
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
219
219
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
@@ -397,7 +397,7 @@ const BcmCheckboxGroup$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLEl
|
|
|
397
397
|
});
|
|
398
398
|
return (h(Host, { class: bcmChechboxGroup }, h("span", { hidden: true, id: `bcm-checkbox-group__items-${this._id}` }, h("slot", null)), h("div", { class: "bcm-checkbox-group__label" }, label &&
|
|
399
399
|
h("div", null, h(LabelTemplate, { size: this.size, type: captionType, value: label, required: required }))), indeterminate &&
|
|
400
|
-
h("bcm-checkbox", { onClick: (e) => { this.indeterminateClick(), e.preventDefault(); }, "no-caption": true, id: "bcm-indeterminate-element", indeterminate: indeterminateState, disabled: disabled }, "Check All"), h(CheckboxGroupTemplate, { items: items, groupContainerClasses: bcmChechboxGroupContainer, customStyle: gap && ({ 'gap': gap }), onBcmSelect: (id) => this.changeCheckBox(id) })));
|
|
400
|
+
h("bcm-checkbox", { onClick: (e) => { this.indeterminateClick(), e.preventDefault(); }, "no-caption": true, "no-margin": true, id: "bcm-indeterminate-element", indeterminate: indeterminateState, disabled: disabled }, "Check All"), h(CheckboxGroupTemplate, { items: items, groupContainerClasses: bcmChechboxGroupContainer, customStyle: gap && ({ 'gap': gap }), onBcmSelect: (id) => this.changeCheckBox(id) })));
|
|
401
401
|
}
|
|
402
402
|
get el() { return this; }
|
|
403
403
|
static get watchers() { return {
|
|
@@ -64,7 +64,7 @@ const BcmColorInput$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
|
64
64
|
return typeof window !== "undefined" && "EyeDropper" in window;
|
|
65
65
|
}
|
|
66
66
|
render() {
|
|
67
|
-
return (h(Host, { class: "tw-block" }, h("bcm-input", { id: this._id + "-color", fullWidth: this.fullWidth, label: this.label, placeholder: this.placeholder, type: "text", "onBcm-change": e => this.handleInputChanged(e) }, h("i", { slot: "prefix", class: "tw-flex tw-h-4 tw-w-4 tw-items-center tw-justify-center tw-rounded-full tw-border tw-border-gray-100", style: {
|
|
67
|
+
return (h(Host, { class: "tw-block" }, h("bcm-input", { id: this._id + "-color", fullWidth: this.fullWidth, label: this.label, placeholder: this.placeholder, type: "text", "onBcm-change": e => this.handleInputChanged(e), value: this.value }, h("i", { slot: "prefix", class: "tw-flex tw-h-4 tw-w-4 tw-items-center tw-justify-center tw-rounded-full tw-border tw-border-gray-100", style: {
|
|
68
68
|
backgroundColor: this.value,
|
|
69
69
|
} }), this.isEyeDropperSupported() && h("i", { slot: "suffix", class: "far fa-eye-dropper", onClick: () => this.eyeDropper() })), h("bcm-linked", { targetId: this._id + "-color-container" }, h("bcm-colorful", { id: this._id + "-picker", color: this.value, onBcmChange: e => this.handleChange(e.detail) }))));
|
|
70
70
|
}
|
|
@@ -49,7 +49,7 @@ const BcmErrorLayout$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElem
|
|
|
49
49
|
const { itemsProp } = this;
|
|
50
50
|
const classes = classnames('error-layout', this.size);
|
|
51
51
|
const hostClasses = classnames(this.hidden ? 'hidden' : null);
|
|
52
|
-
return (h(Host, { class: hostClasses }, itemsProp.length > 0 && (h("div", { class: classes }, this.itemsProp.map((item) => h("li", null, h("span", null, item)))))));
|
|
52
|
+
return (h(Host, { class: hostClasses }, itemsProp.length > 0 && (h("div", { class: classes }, h("ul", null, this.itemsProp.map((item) => h("li", null, h("span", null, item))))))));
|
|
53
53
|
}
|
|
54
54
|
get el() { return this; }
|
|
55
55
|
static get watchers() { return {
|
|
@@ -100,7 +100,7 @@ const BcmExpansionPanel$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLE
|
|
|
100
100
|
'bcm-expansion-panel--icon-right': this.expandIconPosition === 'right',
|
|
101
101
|
hidden,
|
|
102
102
|
});
|
|
103
|
-
return (h(Host, { class: hostClasses }, h("div", { class: "bcm-expansion-panel__header", onClick: () => this.toggle(), style: { 'background-color': ColorHelper.dsColor(this.headerColor) } }, h("div", { class: "bcm-expansion-panel__header-title" }, h("span", { id: _id + '-header' }, h("slot", { name: "header" })), tooltip && (h("span", { class: "bcm-expansion-panel__header-tooltip", style: Object.assign({}, color && { color: ColorHelper.convertColorToHex(color) }) }, h("bcm-tooltip", { message: message, placement: placement, trigger: trigger }, h("bcm-icon", { color: color, icon: icon })))), h("span", { id: _id + '-description', class: "bcm-expansion-panel__header-title-description" }, h("slot", { name: "description" }))), h("span", { id: _id + '-extra', class: "bcm-expansion-panel__header-extra", onClick: (e) => this.clickExtra(e) }, h("slot", { name: "extra" })), !hideToggle && (h("div", { class: "bcm-expansion-panel__header-toggle" }, h("bcm-icon", { icon: "far fa-chevron-down" })))), h("div", { class: "bcm-expansion-panel__body", id: _id + '-body' }, h("slot", null))));
|
|
103
|
+
return (h(Host, { class: hostClasses }, h("div", { class: "bcm-expansion-panel__header", onClick: () => this.toggle(), style: { 'background-color': ColorHelper.dsColor(this.headerColor) } }, h("div", { class: "bcm-expansion-panel__header-title" }, h("span", { id: _id + '-header' }, h("slot", { name: "header" })), tooltip && (h("span", { class: "bcm-expansion-panel__header-tooltip", style: Object.assign({}, color && { color: ColorHelper.convertColorToHex(color) }) }, h("bcm-tooltip", { message: message, placement: placement, trigger: trigger, "aria-label": message }, h("bcm-icon", { color: color, icon: icon })))), h("span", { id: _id + '-description', class: "bcm-expansion-panel__header-title-description" }, h("slot", { name: "description" }))), h("span", { id: _id + '-extra', class: "bcm-expansion-panel__header-extra", onClick: (e) => this.clickExtra(e) }, h("slot", { name: "extra" })), !hideToggle && (h("div", { class: "bcm-expansion-panel__header-toggle" }, h("bcm-icon", { icon: "far fa-chevron-down" })))), h("div", { class: "bcm-expansion-panel__body", id: _id + '-body' }, h("slot", null))));
|
|
104
104
|
}
|
|
105
105
|
get el() { return this; }
|
|
106
106
|
static get style() { return expansionPanelCss; }
|
|
@@ -287,7 +287,7 @@ const BcmInputDropdown$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLEl
|
|
|
287
287
|
};
|
|
288
288
|
const CommentTemplate = () => {
|
|
289
289
|
var _a, _b, _c;
|
|
290
|
-
return (h(Fragment, null, this.isOpenMenu ? (h("div", { class: commentArea() }, this.isLate ? (h(Fragment, null, h("bcm-input", { label: "Minus Late", required: true, id: this._id + "-input-dropdown-late-content-input", type: "number", "full-width": true, autocomplete: false, min: 0, max: 200, value: (_a = this.value) === null || _a === void 0 ? void 0 : _a.lateMin, placeholder: "Enter Minus Late", customErrorMessage: "Max limit 200 mins", "onBcm-change": ({ detail }) => (this.value.lateMin = +detail) }, h("i", { slot: "prefix", class: "far fa-clock" })))) : null, h("bcm-textarea", { "full-width": true, value: (_c = (_b = this.value) === null || _b === void 0 ? void 0 : _b.comment) !== null && _c !== void 0 ? _c : "", "onBcm-change": ({ detail }) => (this.value.comment = detail), label: "Description", "no-caption": true, rows: 4 }), h("footer", { class: "tw-flex tw-w-full tw-flex-row tw-items-center tw-justify-end tw-gap-2" }, h("bcm-button", { icon: "fas fa-times", kind: "ghost", "icon-position": "prefix", onClick: () => { var _a; return (_a = this.commentContent) === null || _a === void 0 ? void 0 : _a.hide(); } }, "Close"), h("bcm-button", { icon: "fas fa-save", "icon-position": "prefix", onClick: () => this.onClickSave() }, "Save")))) : null));
|
|
290
|
+
return (h(Fragment, null, this.isOpenMenu ? (h("div", { class: commentArea() }, this.isLate ? (h(Fragment, null, h("bcm-input", { label: "Minus Late", required: true, id: this._id + "-input-dropdown-late-content-input", type: "number", "full-width": true, autocomplete: false, min: 0, max: 200, value: (_a = this.value) === null || _a === void 0 ? void 0 : _a.lateMin, placeholder: "Enter Minus Late", customErrorMessage: "Max limit 200 mins", "onBcm-change": ({ detail }) => (this.value.lateMin = +detail) }, h("i", { slot: "prefix", class: "far fa-clock" })))) : null, h("bcm-textarea", { "full-width": true, value: (_c = (_b = this.value) === null || _b === void 0 ? void 0 : _b.comment) !== null && _c !== void 0 ? _c : "", "onBcm-change": ({ detail }) => (this.value.comment = detail), label: "Description", "no-caption": true, rows: 4 }), h("footer", { class: "tw-flex tw-w-full tw-flex-row tw-items-center tw-justify-end tw-gap-2" }, h("bcm-button", { role: "button", "aria-labelledby": "button", "aria-label": "button", icon: "fas fa-times", kind: "ghost", "icon-position": "prefix", onClick: () => { var _a; return (_a = this.commentContent) === null || _a === void 0 ? void 0 : _a.hide(); } }, "Close"), h("bcm-button", { role: "button", "aria-labelledby": "button", "aria-label": "button", icon: "fas fa-save", "icon-position": "prefix", onClick: () => this.onClickSave() }, "Save")))) : null));
|
|
291
291
|
};
|
|
292
292
|
return (h(Host, { class: base() }, label && h("bcm-label", { htmlFor: _id + "-dropdown-input", size: size, value: label, required: required }), h("div", { class: content() }, h("div", { class: inputArea() }, h("input", { id: _id + "-dropdown-input", class: input(), style: { color: (_a = this.value) === null || _a === void 0 ? void 0 : _a.color }, type: "text", tabIndex: -1, placeholder: placeholder, value: (_b = this.value) === null || _b === void 0 ? void 0 : _b.key, disabled: disabled, required: required, autoComplete: "off", readOnly: readonly, onKeyPress: e => this.handleKeyPress(e), onInput: e => this.handleInput(e), ref: el => (this._input = el) }), h("button", { disabled: disabled, id: `i-dropdown-button-${_id}`, class: button(), onClick: () => (this.isOpenMenu = true) }, h("i", { class: "fas fa-chevron-down" })), h("bcm-linked", { "onBcm-open": ({ detail }) => { var _a; return detail && ((_a = this.commentContent) === null || _a === void 0 ? void 0 : _a.hide()); }, class: "tw-mt-1", id: `i-dropdown-menu-${_id}`, "target-id": `i-dropdown-button-${_id}`, placement: "bottom-start" }, h(MenuTemplates, null)), h("bcm-linked", { id: `i-dropdown-comment-${_id}`, "target-id": _id, trigger: "custom", placement: "left" }, h(CommentTemplate, null))), !this.hideComment ? (h("span", { onClick: () => {
|
|
293
293
|
var _a, _b;
|