bromcom-ui 2.11.1-rc.9-3 → 2.11.1
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-04068410.entry.js +5 -0
- package/dist/bromcom-ui/p-06392358.entry.js +5 -0
- package/dist/bromcom-ui/p-08af4159.entry.js +5 -0
- package/dist/bromcom-ui/{p-2cd6cdee.js → p-09318a64.js} +1 -1
- package/dist/bromcom-ui/p-0bde4e71.entry.js +5 -0
- package/dist/bromcom-ui/p-0d87846a.entry.js +5 -0
- package/dist/bromcom-ui/p-0ed34855.entry.js +5 -0
- package/dist/bromcom-ui/p-0f58e83a.js +5 -0
- package/dist/bromcom-ui/p-19283acb.entry.js +5 -0
- package/dist/bromcom-ui/p-1e377d82.js +5 -0
- package/dist/bromcom-ui/p-207c20c6.entry.js +5 -0
- package/dist/bromcom-ui/{p-35c215f2.entry.js → p-20b5c273.entry.js} +1 -1
- package/dist/bromcom-ui/p-24906295.entry.js +5 -0
- package/dist/bromcom-ui/p-2b4970f5.entry.js +5 -0
- package/dist/bromcom-ui/p-2d3ff3b8.entry.js +5 -0
- package/dist/bromcom-ui/p-2e7107b8.entry.js +5 -0
- package/dist/bromcom-ui/p-3115008f.entry.js +5 -0
- package/dist/bromcom-ui/p-346395fa.entry.js +5 -0
- package/dist/bromcom-ui/p-375906b2.entry.js +5 -0
- package/dist/bromcom-ui/{p-adcb30bc.entry.js → p-3861fc92.entry.js} +1 -1
- package/dist/bromcom-ui/p-3f3579b5.entry.js +5 -0
- package/dist/bromcom-ui/p-41e75c88.entry.js +5 -0
- package/dist/bromcom-ui/p-4e44bab2.entry.js +5 -0
- package/dist/bromcom-ui/p-5196912d.js +5 -0
- package/dist/bromcom-ui/p-51b2e857.entry.js +5 -0
- package/dist/bromcom-ui/p-52a75efb.entry.js +5 -0
- package/dist/bromcom-ui/{p-6f37a4d7.entry.js → p-5c70a918.entry.js} +1 -1
- package/dist/bromcom-ui/p-5fbb4950.entry.js +5 -0
- package/dist/bromcom-ui/{p-a4b675ef.entry.js → p-630a4d45.entry.js} +1 -1
- package/dist/bromcom-ui/p-65ac7386.entry.js +5 -0
- package/dist/bromcom-ui/p-6e5f5f36.js +1 -1
- package/dist/bromcom-ui/p-7005fb55.entry.js +5 -0
- package/dist/bromcom-ui/{p-930f3618.js → p-743731ac.js} +1 -1
- package/dist/bromcom-ui/p-7c512c4d.entry.js +5 -0
- package/dist/bromcom-ui/p-81887469.entry.js +5 -0
- package/dist/bromcom-ui/p-81cbc318.entry.js +5 -0
- package/dist/bromcom-ui/p-82d01088.entry.js +5 -0
- package/dist/bromcom-ui/p-82f0b161.js +5 -0
- package/dist/bromcom-ui/p-84b97f53.entry.js +5 -0
- package/dist/bromcom-ui/p-857628f6.js +5 -0
- package/dist/bromcom-ui/{p-90223f9f.entry.js → p-887c26f8.entry.js} +1 -1
- package/dist/bromcom-ui/p-8a6fb2d5.entry.js +5 -0
- package/dist/bromcom-ui/{p-8b31581f.js → p-8ed054fe.js} +1 -1
- package/dist/bromcom-ui/p-926f8ac4.entry.js +5 -0
- package/dist/bromcom-ui/p-950a341e.entry.js +7 -0
- package/dist/bromcom-ui/p-9810187e.entry.js +5 -0
- package/dist/bromcom-ui/p-9b5c86e1.entry.js +5 -0
- package/dist/bromcom-ui/p-a0d6d680.js +1 -1
- package/dist/bromcom-ui/{p-a018f340.entry.js → p-a1e299af.entry.js} +1 -1
- package/dist/bromcom-ui/p-a313fba6.js +1 -1
- package/dist/bromcom-ui/p-a34bc3d8.entry.js +5 -0
- package/dist/bromcom-ui/p-a42fbe84.entry.js +5 -0
- package/dist/bromcom-ui/p-a5208f05.entry.js +5 -0
- package/dist/bromcom-ui/p-a6142e74.entry.js +5 -0
- package/dist/bromcom-ui/p-aea1b034.entry.js +5 -0
- package/dist/bromcom-ui/p-b381e7f1.js +19 -0
- package/dist/bromcom-ui/p-b4da198b.entry.js +5 -0
- package/dist/bromcom-ui/{p-14ed8029.entry.js → p-b764ab86.entry.js} +1 -1
- package/dist/bromcom-ui/p-bde67994.entry.js +5 -0
- package/dist/bromcom-ui/p-c1761829.entry.js +5 -0
- package/dist/bromcom-ui/{p-5a391fcd.js → p-c7aff122.js} +1 -1
- package/dist/bromcom-ui/p-c7caf94d.js +5 -0
- package/dist/bromcom-ui/{p-5bf1657b.entry.js → p-ce3b34da.entry.js} +1 -1
- package/dist/bromcom-ui/p-cf011393.entry.js +5 -0
- package/dist/bromcom-ui/p-d01426b6.entry.js +5 -0
- package/dist/bromcom-ui/p-d098f115.entry.js +5 -0
- package/dist/bromcom-ui/p-d9fcd150.js +5 -0
- package/dist/bromcom-ui/{p-0eacfbb2.entry.js → p-dc62a5f7.entry.js} +1 -1
- package/dist/bromcom-ui/p-e3c69b3b.entry.js +5 -0
- package/dist/bromcom-ui/{p-db15dca3.entry.js → p-e9333e52.entry.js} +1 -1
- package/dist/bromcom-ui/p-f56f2a2d.entry.js +5 -0
- package/dist/bromcom-ui/p-fcf4b343.entry.js +5 -0
- package/dist/bromcom-ui/p-fe776e62.entry.js +5 -0
- package/dist/cjs/Overflow-a821abd0.js +2769 -0
- package/dist/cjs/{bcm-1d1fcf21.js → bcm-489c9b1a.js} +4 -4
- package/dist/cjs/bcm-accordion.cjs.entry.js +74 -0
- package/dist/cjs/bcm-alert.cjs.entry.js +4 -4
- package/dist/cjs/bcm-attendance-actions-comment.cjs.entry.js +8 -9
- package/dist/cjs/bcm-attendance-actions-dropdown.cjs.entry.js +8 -9
- package/dist/cjs/bcm-attendance-actions.cjs.entry.js +329 -0
- package/dist/cjs/bcm-attendance.cjs.entry.js +35 -0
- package/dist/cjs/bcm-avatar_2.cjs.entry.js +209 -0
- package/dist/cjs/bcm-breadcrumb.cjs.entry.js +2 -2
- package/dist/cjs/bcm-button-group.cjs.entry.js +92 -0
- package/dist/cjs/bcm-button_15.cjs.entry.js +18623 -0
- package/dist/cjs/bcm-caption.cjs.entry.js +9 -10
- package/dist/cjs/bcm-card.cjs.entry.js +5 -5
- package/dist/cjs/bcm-checkbox-group.cjs.entry.js +415 -0
- package/dist/cjs/{bcm-checkbox-lite_8.cjs.entry.js → bcm-checkbox-lite_9.cjs.entry.js} +26 -6
- package/dist/cjs/bcm-checkbox_2.cjs.entry.js +194 -0
- package/dist/cjs/bcm-chip-group.cjs.entry.js +9 -10
- package/dist/cjs/bcm-chip.cjs.entry.js +91 -0
- package/dist/cjs/bcm-collapse.cjs.entry.js +2 -2
- package/dist/cjs/bcm-color-input.cjs.entry.js +76 -0
- package/dist/cjs/bcm-default.cjs.entry.js +2 -2
- package/dist/cjs/bcm-drawer.cjs.entry.js +95 -0
- package/dist/cjs/bcm-dropdown.cjs.entry.js +119 -0
- package/dist/cjs/bcm-error-layout.cjs.entry.js +1 -1
- package/dist/cjs/bcm-expansion-panel.cjs.entry.js +116 -0
- package/dist/cjs/bcm-input-custom.cjs.entry.js +2 -2
- package/dist/cjs/bcm-input-dropdown.cjs.entry.js +10 -11
- package/dist/cjs/bcm-item.cjs.entry.js +72 -0
- package/dist/cjs/bcm-items.cjs.entry.js +49 -0
- package/dist/cjs/bcm-link.cjs.entry.js +3 -3
- package/dist/cjs/bcm-list_3.cjs.entry.js +1970 -0
- package/dist/cjs/bcm-menu.cjs.entry.js +150 -0
- package/dist/cjs/bcm-modal-2-footer.cjs.entry.js +6 -7
- package/dist/cjs/bcm-modal-2-header.cjs.entry.js +6 -7
- package/dist/cjs/bcm-modal-2.cjs.entry.js +7 -8
- package/dist/cjs/bcm-modal.cjs.entry.js +157 -0
- package/dist/cjs/bcm-number-input.cjs.entry.js +9 -10
- package/dist/cjs/bcm-popconfirm-box.cjs.entry.js +115 -0
- package/dist/cjs/bcm-popconfirm.cjs.entry.js +101 -0
- package/dist/cjs/bcm-popover.cjs.entry.js +9 -10
- package/dist/cjs/bcm-progress.cjs.entry.js +162 -0
- package/dist/cjs/bcm-radio-group.cjs.entry.js +160 -0
- package/dist/cjs/bcm-radio.cjs.entry.js +64 -0
- package/dist/cjs/bcm-range.cjs.entry.js +6 -6
- package/dist/cjs/bcm-select.cjs.entry.js +2 -2
- package/dist/cjs/bcm-shortcut.cjs.entry.js +64 -0
- package/dist/cjs/bcm-skeleton.cjs.entry.js +6 -7
- package/dist/cjs/bcm-step.cjs.entry.js +89 -0
- package/dist/cjs/bcm-stepper.cjs.entry.js +239 -0
- package/dist/cjs/bcm-switch.cjs.entry.js +151 -0
- package/dist/cjs/bcm-tab-group.cjs.entry.js +209 -0
- package/dist/cjs/bcm-tab-item-header.cjs.entry.js +58 -0
- package/dist/cjs/bcm-tab-item.cjs.entry.js +90 -0
- package/dist/cjs/bcm-table.cjs.entry.js +6 -7
- package/dist/cjs/bcm-tag.cjs.entry.js +15 -15
- package/dist/cjs/bcm-text.cjs.entry.js +49 -0
- package/dist/cjs/bcm-textarea.cjs.entry.js +163 -0
- package/dist/cjs/bcm-toast.cjs.entry.js +11 -11
- package/dist/cjs/bromcom-ui.cjs.js +3 -3
- package/dist/cjs/{caption-template-85a18b6d.js → caption-template-086e9cac.js} +2 -2
- package/dist/cjs/{floating-ui-5b396838.js → floating-ui-21890d11.js} +2 -2
- package/dist/cjs/{generate-f73a098d.js → generate-82c63a56.js} +1 -1
- package/dist/cjs/{global-baf04c81.js → global-1e13ce25.js} +1 -1
- package/dist/cjs/input-template-e0087a2b.js +92 -0
- package/dist/cjs/json-parse-decarator-e0946e2e.js +40 -0
- package/dist/cjs/{label-template-e83447b5.js → label-template-94b3d775.js} +3 -3
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{number-helper-0543a62e.js → number-helper-10017fcd.js} +1 -1
- package/dist/cjs/old-bcm-popover-box.cjs.entry.js +7 -7
- package/dist/cjs/old-bcm-popover.cjs.entry.js +5 -5
- package/dist/cjs/{package-e717a31f.js → package-13f78ab4.js} +1 -1
- package/dist/cjs/{popover-placement-02e6101b.js → popover-placement-e7d6eabd.js} +1 -1
- package/dist/cjs/{slot-template-df7b5b59.js → slot-template-c8e2816c.js} +1 -1
- package/dist/cjs/stepper-states-77438c3a.js +85 -0
- package/dist/cjs/{string-helper-9cdfb273.js → string-helper-f9184277.js} +2 -2
- package/dist/cjs/tooltip-helper-a2793290.js +157 -0
- package/dist/cjs/{validators-77768582.js → validators-f4c3063b.js} +6 -1
- package/dist/collection/components/atoms/avatar/avatar.js +1 -1
- package/dist/collection/components/atoms/badge/badge.js +1 -1
- package/dist/collection/components/atoms/badge/badge.style.js +1 -1
- package/dist/collection/components/atoms/button/button.css +13 -13
- package/dist/collection/components/atoms/button/button.js +14 -14
- package/dist/collection/components/atoms/chip/chip.css +4 -4
- package/dist/collection/components/atoms/chip/chip.js +3 -3
- package/dist/collection/components/molecules/checkbox/group.css +2 -2
- package/dist/collection/components/molecules/checkbox/group.js +1 -1
- package/dist/collection/components/molecules/color-input/color-input.js +1 -1
- package/dist/collection/components/molecules/empty/empty.js +1 -1
- package/dist/collection/components/molecules/error-layout/error-layout.js +1 -1
- package/dist/collection/components/molecules/expansion-panel/expansion-panel.js +1 -1
- package/dist/collection/components/molecules/input/input.js +1 -1
- package/dist/collection/components/molecules/input-dropdown/input-dropdown.js +1 -1
- package/dist/collection/components/molecules/menu/menu.css +4 -4
- package/dist/collection/components/molecules/modal/modal.css +1 -1
- package/dist/collection/components/molecules/radio/radio-group.js +1 -1
- package/dist/collection/components/molecules/radio/radio.js +1 -1
- package/dist/collection/components/molecules/range/range.js +1 -1
- package/dist/collection/components/molecules/switch/switch.css +2 -2
- package/dist/collection/components/molecules/tab-group/tab-group.js +2 -2
- package/dist/collection/components/molecules/tab-group/tab-item-header.js +5 -5
- package/dist/collection/components/molecules/tooltip/tooltip.js +1 -1
- package/dist/collection/components/organism/list/list.css +2 -2
- package/dist/collection/components/organism/list/list.js +2 -2
- package/dist/collection/components/other/attendance/attendance.js +1 -1
- package/dist/collection/components/third-parts/rc-picker/date.js +1 -1
- package/dist/collection/components/third-parts/rc-picker/rc-picker.css +40 -5
- package/dist/collection/components/third-parts/rc-picker/rc-picker.js +11 -2
- package/dist/collection/stories/ui-library/components/date/argTypes_common.js +0 -1
- package/dist/collection/templates/button-template.js +1 -1
- package/dist/collection/templates/caption-template.js +2 -2
- package/dist/collection/templates/input-template.js +1 -1
- package/dist/collection/templates/label-template.js +1 -1
- package/dist/collection/templates/list-item-template.js +1 -1
- package/dist/collection/templates/list-template.js +9 -3
- package/dist/components/{raf.js → Overflow.js} +692 -69
- package/dist/components/avatar.js +1 -1
- package/dist/components/badge.js +2 -2
- package/dist/components/bcm-attendance.js +1 -1
- package/dist/components/bcm-checkbox-group.js +2 -2
- package/dist/components/bcm-color-input.js +1 -1
- package/dist/components/bcm-date.js +1 -1
- package/dist/components/bcm-error-layout.js +1 -1
- package/dist/components/bcm-expansion-panel.js +1 -1
- package/dist/components/bcm-input-dropdown.js +1 -1
- package/dist/components/bcm-modal.js +1 -1
- package/dist/components/bcm-radio-group.js +1 -1
- package/dist/components/bcm-range.js +1 -1
- package/dist/components/bcm-switch.js +1 -1
- package/dist/components/bcm-tab-group.js +2 -2
- package/dist/components/bcm-tab-item-header.js +5 -5
- package/dist/components/button.js +16 -16
- package/dist/components/caption-template.js +2 -2
- package/dist/components/chip.js +4 -4
- package/dist/components/empty.js +1 -1
- package/dist/components/generate.js +1 -1
- package/dist/components/input-template.js +1 -1
- package/dist/components/input.js +1 -1
- package/dist/components/label.js +1 -1
- package/dist/components/list.js +13 -7
- package/dist/components/menu.js +1 -1
- package/dist/components/radio.js +1 -1
- package/dist/components/rc-overflow.js +1 -593
- package/dist/components/rc-picker.js +8620 -8025
- package/dist/components/tooltip.js +1 -1
- package/dist/esm/Overflow-2cffcda0.js +2750 -0
- package/dist/esm/bcm-a50d55ba.js +1 -1
- package/dist/esm/bcm-accordion.entry.js +70 -0
- package/dist/esm/bcm-alert.entry.js +2 -2
- package/dist/esm/bcm-attendance-actions-comment.entry.js +5 -6
- package/dist/esm/bcm-attendance-actions-dropdown.entry.js +5 -6
- package/dist/esm/bcm-attendance-actions.entry.js +325 -0
- package/dist/esm/bcm-attendance.entry.js +31 -0
- package/dist/esm/bcm-avatar_2.entry.js +204 -0
- package/dist/esm/bcm-breadcrumb.entry.js +2 -2
- package/dist/esm/bcm-button-group.entry.js +88 -0
- package/dist/esm/bcm-button_15.entry.js +18605 -0
- package/dist/esm/bcm-caption.entry.js +6 -7
- package/dist/esm/bcm-card.entry.js +2 -2
- package/dist/esm/bcm-checkbox-group.entry.js +411 -0
- package/dist/esm/{bcm-checkbox-lite_8.entry.js → bcm-checkbox-lite_9.entry.js} +24 -5
- package/dist/esm/bcm-checkbox_2.entry.js +189 -0
- package/dist/esm/bcm-chip-group.entry.js +7 -8
- package/dist/esm/bcm-chip.entry.js +87 -0
- package/dist/esm/bcm-collapse.entry.js +2 -2
- package/dist/esm/bcm-color-input.entry.js +72 -0
- package/dist/esm/bcm-default.entry.js +2 -2
- package/dist/esm/bcm-drawer.entry.js +91 -0
- package/dist/esm/bcm-dropdown.entry.js +115 -0
- package/dist/esm/bcm-error-layout.entry.js +1 -1
- package/dist/esm/bcm-expansion-panel.entry.js +112 -0
- package/dist/esm/bcm-input-custom.entry.js +2 -2
- package/dist/esm/bcm-input-dropdown.entry.js +7 -8
- package/dist/esm/bcm-item.entry.js +68 -0
- package/dist/esm/bcm-items.entry.js +45 -0
- package/dist/esm/bcm-link.entry.js +1 -1
- package/dist/esm/bcm-list_3.entry.js +1964 -0
- package/dist/esm/bcm-menu.entry.js +146 -0
- package/dist/esm/bcm-modal-2-footer.entry.js +4 -5
- package/dist/esm/bcm-modal-2-header.entry.js +4 -5
- package/dist/esm/bcm-modal-2.entry.js +5 -6
- package/dist/esm/bcm-modal.entry.js +153 -0
- package/dist/esm/bcm-number-input.entry.js +6 -7
- package/dist/esm/bcm-popconfirm-box.entry.js +111 -0
- package/dist/esm/bcm-popconfirm.entry.js +97 -0
- package/dist/esm/bcm-popover.entry.js +5 -6
- package/dist/esm/bcm-progress.entry.js +158 -0
- package/dist/esm/bcm-radio-group.entry.js +156 -0
- package/dist/esm/bcm-radio.entry.js +60 -0
- package/dist/esm/bcm-range.entry.js +4 -4
- package/dist/esm/bcm-shortcut.entry.js +60 -0
- package/dist/esm/bcm-skeleton.entry.js +4 -5
- package/dist/esm/bcm-step.entry.js +85 -0
- package/dist/esm/bcm-stepper.entry.js +235 -0
- package/dist/esm/bcm-switch.entry.js +147 -0
- package/dist/esm/bcm-tab-group.entry.js +205 -0
- package/dist/esm/bcm-tab-item-header.entry.js +54 -0
- package/dist/esm/bcm-tab-item.entry.js +86 -0
- package/dist/esm/bcm-table.entry.js +4 -5
- package/dist/esm/bcm-tag.entry.js +4 -4
- package/dist/esm/bcm-text.entry.js +45 -0
- package/dist/esm/bcm-textarea.entry.js +159 -0
- package/dist/esm/bcm-toast.entry.js +3 -3
- package/dist/esm/bromcom-ui.js +3 -3
- package/dist/esm/{caption-template-d7953d13.js → caption-template-fd7738eb.js} +2 -2
- package/dist/esm/floating-ui-3f4394da.js +1 -1
- package/dist/esm/{generate-c2c0b02e.js → generate-b33f722f.js} +1 -1
- package/dist/esm/{global-2473677b.js → global-d524a06a.js} +1 -1
- package/dist/esm/input-template-453bfff8.js +90 -0
- package/dist/esm/json-parse-decarator-1aa4119c.js +38 -0
- package/dist/esm/{label-template-a26f76c0.js → label-template-374fbdcd.js} +2 -2
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{number-helper-75447fa6.js → number-helper-712eedd0.js} +1 -1
- package/dist/esm/old-bcm-popover-box.entry.js +3 -3
- package/dist/esm/old-bcm-popover.entry.js +3 -3
- package/dist/esm/{package-28dc6847.js → package-c604bd07.js} +1 -1
- package/dist/esm/stepper-states-00eb7d7d.js +83 -0
- package/dist/esm/string-helper-3592bdc2.js +1 -1
- package/dist/esm/tooltip-helper-088013ec.js +155 -0
- package/dist/esm/{validators-5a383988.js → validators-ebf92486.js} +6 -2
- package/dist/types/templates/list-template.d.ts +0 -1
- package/package.json +2 -2
- package/dist/bromcom-ui/p-1345d51b.entry.js +0 -5
- package/dist/bromcom-ui/p-178fa936.entry.js +0 -5
- package/dist/bromcom-ui/p-3361f6c9.entry.js +0 -5
- package/dist/bromcom-ui/p-350dbff0.entry.js +0 -5
- package/dist/bromcom-ui/p-3cdfd8eb.entry.js +0 -5
- package/dist/bromcom-ui/p-5a22b74b.entry.js +0 -5
- package/dist/bromcom-ui/p-626a65e9.js +0 -5
- package/dist/bromcom-ui/p-627c7769.entry.js +0 -5
- package/dist/bromcom-ui/p-64f21481.entry.js +0 -20
- package/dist/bromcom-ui/p-70253803.entry.js +0 -5
- package/dist/bromcom-ui/p-7fd22a35.entry.js +0 -5
- package/dist/bromcom-ui/p-a0f44b56.entry.js +0 -5
- package/dist/bromcom-ui/p-abd2f9ff.entry.js +0 -5
- package/dist/bromcom-ui/p-bb46d881.entry.js +0 -5
- package/dist/bromcom-ui/p-bca0ff0a.entry.js +0 -5
- package/dist/bromcom-ui/p-c10b07cc.entry.js +0 -5
- package/dist/bromcom-ui/p-c7030364.entry.js +0 -5
- package/dist/bromcom-ui/p-dc607ae4.entry.js +0 -5
- package/dist/bromcom-ui/p-de0b0192.entry.js +0 -5
- package/dist/bromcom-ui/p-e10780ed.entry.js +0 -5
- package/dist/bromcom-ui/p-e497cf5d.entry.js +0 -5
- package/dist/bromcom-ui/p-e93d6619.js +0 -5
- package/dist/bromcom-ui/p-ebeb9689.entry.js +0 -5
- package/dist/bromcom-ui/p-eca0acda.js +0 -5
- package/dist/bromcom-ui/p-ede82918.js +0 -5
- package/dist/bromcom-ui/p-fba1682e.entry.js +0 -5
- package/dist/cjs/bcm-accordion_46.cjs.entry.js +0 -24086
- package/dist/cjs/bcm-date-picker.cjs.entry.js +0 -182
- package/dist/cjs/bcm-datetime-picker.cjs.entry.js +0 -1450
- package/dist/cjs/bcm-form-2.cjs.entry.js +0 -212
- package/dist/cjs/bcm-old-input.cjs.entry.js +0 -397
- package/dist/cjs/bcm-time-picker.cjs.entry.js +0 -150
- package/dist/cjs/datetime-helper-eaf4fadb.js +0 -11
- package/dist/esm/bcm-accordion_46.entry.js +0 -24037
- package/dist/esm/bcm-date-picker.entry.js +0 -178
- package/dist/esm/bcm-datetime-picker.entry.js +0 -1446
- package/dist/esm/bcm-form-2.entry.js +0 -208
- package/dist/esm/bcm-old-input.entry.js +0 -393
- package/dist/esm/bcm-time-picker.entry.js +0 -146
- package/dist/esm/datetime-helper-df25808a.js +0 -9
|
@@ -267,11 +267,11 @@
|
|
|
267
267
|
margin: 0;
|
|
268
268
|
}
|
|
269
269
|
.bcm-switch__label .active-text {
|
|
270
|
-
color: var(--bcm-new-ds-color-blue-
|
|
270
|
+
color: var(--bcm-new-ds-color-blue-500);
|
|
271
271
|
margin: 0 0 0 4px;
|
|
272
272
|
}
|
|
273
273
|
.bcm-switch__label .inactive-text {
|
|
274
|
-
color: var(--bcm-new-ds-color-slate-
|
|
274
|
+
color: var(--bcm-new-ds-color-slate-500);
|
|
275
275
|
margin: 0 4px 0 0;
|
|
276
276
|
}
|
|
277
277
|
.bcm-switch__toggle {
|
|
@@ -180,9 +180,9 @@ export class BcmTabGroup {
|
|
|
180
180
|
const { color } = this;
|
|
181
181
|
const dc = Generate.getTwColor({
|
|
182
182
|
color: color,
|
|
183
|
-
tones: [
|
|
183
|
+
tones: [500]
|
|
184
184
|
});
|
|
185
|
-
return (h(Host, { role: "tablist", "aria-label": "Tab Group",
|
|
185
|
+
return (h(Host, { role: "tablist", "aria-label": "Tab Group", class: "tw-flex tw-w-full tw-flex-col tw-items-center tw-font-sans" }, h("div", { class: `tw-relative tw-flex tw-w-full tw-flex-row tw-items-end tw-justify-between`, id: "tab-header", style: dc }, h("div", { id: "ink-bar", class: `tw-bg-default-500 tw-absolute tw-bottom-0 tw-left-0 tw-mt-[-2px] tw-h-[2px] tw-rounded-sm tw-transition-transform` })), h("slot", null)));
|
|
186
186
|
}
|
|
187
187
|
static get is() { return "bcm-tab-group"; }
|
|
188
188
|
static get properties() {
|
|
@@ -23,18 +23,18 @@ export class BcmTabItemHeader {
|
|
|
23
23
|
}
|
|
24
24
|
render() {
|
|
25
25
|
const { color, size, active, disabled } = this;
|
|
26
|
-
const disabledClass = "tw-cursor-not-allowed tw-text-gray-
|
|
26
|
+
const disabledClass = "tw-cursor-not-allowed tw-text-gray-400 tw-opacity-50";
|
|
27
27
|
const dc = Generate.getTwColor({
|
|
28
28
|
color: color,
|
|
29
|
-
tones: [700, 800
|
|
29
|
+
tones: [500, 600, 700, 800]
|
|
30
30
|
});
|
|
31
|
-
return (h(Host, { onClick: () => this.handleClick(), class: cs(`tw-flex tw-flex-1 tw-items-center tw-justify-center tw-border-b-[2px] tw-border-b-slate-
|
|
31
|
+
return (h(Host, { onClick: () => this.handleClick(), class: cs(`tw-flex tw-flex-1 tw-items-center tw-justify-center tw-border-b-[2px] tw-border-b-slate-300 tw-transition-font tw-focus:outline-none`, {
|
|
32
32
|
"tw-text-2 tw-py-1 tw-gap-2": size === Bcm.Size.small,
|
|
33
33
|
"tw-text-3 tw-py-2 tw-gap-3": size === Bcm.Size.medium,
|
|
34
34
|
"tw-text-4 tw-py-3 tw-gap-4": size === Bcm.Size.large,
|
|
35
35
|
}, disabled ? disabledClass : "tw-cursor-pointer", active
|
|
36
|
-
? `tw-text-default-
|
|
37
|
-
: "tw-text-slate-
|
|
36
|
+
? `tw-text-default-500 enabled:hover:tw-text-default-600 enabled:active:tw-text-default-700 enabled:focus-visible:tw-text-default-800`
|
|
37
|
+
: "tw-text-slate-400 enabled:hover:tw-text-slate-500 enabled:focus-visible:tw-text-slate-700 enabled:active:tw-text-slate-600"), style: dc }));
|
|
38
38
|
}
|
|
39
39
|
static get is() { return "bcm-tab-item-header"; }
|
|
40
40
|
static get properties() {
|
|
@@ -68,7 +68,7 @@ export class BcmTooltip {
|
|
|
68
68
|
this.tooltip.toggle();
|
|
69
69
|
}
|
|
70
70
|
render() {
|
|
71
|
-
return (h(Host, { class: "tw-inline-flex tw-h-fit tw-w-fit", role: "tooltip" }, h("slot", null)));
|
|
71
|
+
return (h(Host, { class: "tw-inline-flex tw-h-fit tw-w-fit", role: "tooltip", "aria-hidden": "true" }, h("slot", null)));
|
|
72
72
|
}
|
|
73
73
|
static get is() { return "bcm-tooltip"; }
|
|
74
74
|
static get properties() {
|
|
@@ -630,7 +630,7 @@
|
|
|
630
630
|
overflow: hidden;
|
|
631
631
|
}
|
|
632
632
|
.bcm-list__input-container.value-empty {
|
|
633
|
-
color:
|
|
633
|
+
color: var(--bcm-color-grey-6);
|
|
634
634
|
}
|
|
635
635
|
.bcm-list__input-container.type-single, .bcm-list__input-container.value-empty {
|
|
636
636
|
white-space: nowrap;
|
|
@@ -638,7 +638,7 @@
|
|
|
638
638
|
text-overflow: ellipsis;
|
|
639
639
|
}
|
|
640
640
|
.bcm-list__input-placeholder {
|
|
641
|
-
color:
|
|
641
|
+
color: var(--bcm-color-grey-6);
|
|
642
642
|
}
|
|
643
643
|
.bcm-list__input-tag-container {
|
|
644
644
|
height: 100%;
|
|
@@ -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",
|
|
94
94
|
text: "Select All",
|
|
95
95
|
value: "select-all",
|
|
96
96
|
checked: false,
|
|
@@ -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, {
|
|
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 })));
|
|
806
806
|
}
|
|
807
807
|
static get is() { return "bcm-list"; }
|
|
808
808
|
static get originalStyleUrls() {
|
|
@@ -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
|
|
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'}` })));
|
|
18
18
|
})));
|
|
19
19
|
}
|
|
20
20
|
static get is() { return "bcm-attendance"; }
|
|
@@ -58,7 +58,7 @@ export class BcmDate {
|
|
|
58
58
|
}
|
|
59
59
|
};
|
|
60
60
|
this.getRangeValueObject = (value) => {
|
|
61
|
-
const [start, end] = value
|
|
61
|
+
const [start, end] = value || [null, null];
|
|
62
62
|
const startObject = this.createValueObject(start);
|
|
63
63
|
const endObject = this.createValueObject(end);
|
|
64
64
|
return Object.assign({ isValid: startObject.isValid && endObject.isValid, start: startObject, end: endObject, date: [startObject.date, endObject.date], timestamp: [startObject.timestamp, endObject.timestamp], value: `${startObject.value} - ${endObject.value}` }, (this.type === "time" && {
|
|
@@ -157,8 +157,17 @@
|
|
|
157
157
|
.bcm-date:hover {
|
|
158
158
|
/* bcm */
|
|
159
159
|
border: 1px solid #4293cf;
|
|
160
|
+
}
|
|
161
|
+
.bcm-date:hover.bcm-date--existed {
|
|
160
162
|
/* bcm */
|
|
161
163
|
}
|
|
164
|
+
.bcm-date:hover.bcm-date--existed .bcm-date-clear {
|
|
165
|
+
visibility: visible;
|
|
166
|
+
opacity: 1;
|
|
167
|
+
}
|
|
168
|
+
.bcm-date:hover.bcm-date--existed .bcm-date-suffix {
|
|
169
|
+
opacity: 0;
|
|
170
|
+
}
|
|
162
171
|
.bcm-date-focused {
|
|
163
172
|
background-color: #f8fafc;
|
|
164
173
|
}
|
|
@@ -169,7 +178,6 @@
|
|
|
169
178
|
display: flex;
|
|
170
179
|
align-items: center;
|
|
171
180
|
justify-content: center;
|
|
172
|
-
order: 2;
|
|
173
181
|
}
|
|
174
182
|
.bcm-date-suffix::before {
|
|
175
183
|
-moz-osx-font-smoothing: grayscale;
|
|
@@ -247,9 +255,14 @@
|
|
|
247
255
|
font-size: 20px;
|
|
248
256
|
padding-bottom: 3px;
|
|
249
257
|
line-height: 1;
|
|
250
|
-
order: 1;
|
|
251
258
|
cursor: pointer;
|
|
252
259
|
font-weight: 400;
|
|
260
|
+
visibility: hidden;
|
|
261
|
+
position: absolute;
|
|
262
|
+
right: 4px;
|
|
263
|
+
padding: 4px;
|
|
264
|
+
opacity: 0;
|
|
265
|
+
transition: opacity 0.2s;
|
|
253
266
|
}
|
|
254
267
|
.bcm-date-clear-btn::after {
|
|
255
268
|
content: "×";
|
|
@@ -280,11 +293,30 @@
|
|
|
280
293
|
.bcm-date--error:hover {
|
|
281
294
|
border: 1px solid #e53e3e;
|
|
282
295
|
}
|
|
296
|
+
.bcm-date-range {
|
|
297
|
+
padding: 0 4px;
|
|
298
|
+
}
|
|
299
|
+
.bcm-date-range .bcm-date-clear {
|
|
300
|
+
flex: none;
|
|
301
|
+
}
|
|
302
|
+
.bcm-date-range-separator {
|
|
303
|
+
color: #94a3b8;
|
|
304
|
+
padding: 0 4px;
|
|
305
|
+
display: flex;
|
|
306
|
+
align-items: center;
|
|
307
|
+
justify-content: center;
|
|
308
|
+
}
|
|
309
|
+
.bcm-date-focused .bcm-date-active-bar {
|
|
310
|
+
position: absolute;
|
|
311
|
+
bottom: 0;
|
|
312
|
+
left: 0;
|
|
313
|
+
height: 2px;
|
|
314
|
+
background-color: #4293cf;
|
|
315
|
+
transition: all 0.3s;
|
|
316
|
+
}
|
|
283
317
|
.bcm-date-dropdown {
|
|
284
318
|
position: absolute;
|
|
285
319
|
z-index: 10800;
|
|
286
|
-
box-shadow: 0 4px 12px 0 rgba(17, 24, 39, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
|
|
287
|
-
background-color: #fff;
|
|
288
320
|
top: -9999;
|
|
289
321
|
left: -9999;
|
|
290
322
|
border-radius: 4px;
|
|
@@ -305,16 +337,19 @@
|
|
|
305
337
|
font-size: 14px;
|
|
306
338
|
line-height: 22px;
|
|
307
339
|
font-weight: 400;
|
|
340
|
+
box-shadow: 0 4px 12px 0 rgba(17, 24, 39, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
|
|
341
|
+
background-color: #fff;
|
|
308
342
|
}
|
|
309
343
|
.bcm-date-dropdown .bcm-date-panels {
|
|
310
344
|
display: inline-flex;
|
|
311
345
|
}
|
|
312
|
-
.bcm-date-dropdown .bcm-date-decade-panel, .bcm-date-dropdown .bcm-date-year-panel, .bcm-date-dropdown .bcm-date-month-panel, .bcm-date-dropdown .bcm-date-week-panel, .bcm-date-dropdown .bcm-date-date-panel
|
|
346
|
+
.bcm-date-dropdown .bcm-date-decade-panel, .bcm-date-dropdown .bcm-date-year-panel, .bcm-date-dropdown .bcm-date-month-panel, .bcm-date-dropdown .bcm-date-week-panel, .bcm-date-dropdown .bcm-date-date-panel {
|
|
313
347
|
width: 256px;
|
|
314
348
|
}
|
|
315
349
|
.bcm-date-dropdown .bcm-date-time-panel {
|
|
316
350
|
width: auto;
|
|
317
351
|
padding-top: 4px;
|
|
352
|
+
min-width: auto;
|
|
318
353
|
}
|
|
319
354
|
.bcm-date-dropdown .bcm-date-time-panel .bcm-date-content {
|
|
320
355
|
width: 100%;
|
|
@@ -57,7 +57,12 @@ export class BcmRcPicker {
|
|
|
57
57
|
this.newValue = null;
|
|
58
58
|
}
|
|
59
59
|
async set(value) {
|
|
60
|
-
|
|
60
|
+
if (!value) {
|
|
61
|
+
this.newValue = null;
|
|
62
|
+
this.bcmRCPickerChange.emit(null);
|
|
63
|
+
return;
|
|
64
|
+
}
|
|
65
|
+
this.newValue = this.range ? [moment(value[0]), moment(value[1])] : moment(value);
|
|
61
66
|
this.bcmRCPickerChange.emit(this.newValue);
|
|
62
67
|
}
|
|
63
68
|
componentDidRender() {
|
|
@@ -82,9 +87,13 @@ export class BcmRcPicker {
|
|
|
82
87
|
date: Object.assign({}, dateOptions),
|
|
83
88
|
datetime: Object.assign(Object.assign(Object.assign({}, dateOptions), timeOptions), { showTime: Object.assign({ showSecond: this.showSecond }, timeOptions) }),
|
|
84
89
|
};
|
|
85
|
-
const sharedProps = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ generateConfig: momentGenerateConfig, value: this.newValue, onChange: newValue => this.set(newValue) }, (this.format && { format: this.format })), (this.clearable && { allowClear: this.clearable })), (this.placeholder && { placeholder: this.placeholder })), (this.error && { error: this.error })), (this.disabled && { disabled: this.disabled })), {
|
|
90
|
+
const sharedProps = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ generateConfig: momentGenerateConfig, value: this.newValue, onChange: newValue => this.set(newValue) }, (this.format && { format: this.format })), (this.clearable && { allowClear: this.clearable })), (this.placeholder && { placeholder: this.placeholder })), (this.error && { error: this.error })), (this.disabled && { disabled: this.disabled })), {
|
|
91
|
+
// picker: this.type,
|
|
92
|
+
picker: this.type === "datetime" ? "date" : this.type
|
|
93
|
+
}), options[this.type]), { prefixCls: "bcm-date", suffixIcon: " ", autofocus: true, locale: enUS, separator: " - ", changeOnBlur: true, className: cs(`bcm-date--${this.type}`, {
|
|
86
94
|
[`bcm-date--${this.size}`]: this.size,
|
|
87
95
|
"bcm-date--error": this.error,
|
|
96
|
+
"bcm-date--existed": this.newValue,
|
|
88
97
|
}) });
|
|
89
98
|
if (this.range) {
|
|
90
99
|
ReactDOM.render(React.createElement(RangePicker, Object.assign({}, sharedProps)), this.el);
|
|
@@ -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"
|
|
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" })));
|
|
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-600": captionType == "success",
|
|
15
|
+
"tw-text-amber-600": 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,
|
|
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() })))))));
|
|
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,
|
|
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 ", {
|
|
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),
|
|
48
|
+
return (h("div", { id: item.id, hidden: item.hidden, "on-focus": e => !unClickable && !disabled && focusItem(e), 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,13 +5,19 @@
|
|
|
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 = ({
|
|
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, }) => {
|
|
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
|
|
14
|
+
return {
|
|
15
|
+
'min-height': `${scrollHeight}px`,
|
|
16
|
+
'overscroll-behavior': 'none',
|
|
17
|
+
'height': '100%',
|
|
18
|
+
'display': 'flex',
|
|
19
|
+
'flex-direction': 'column',
|
|
20
|
+
};
|
|
15
21
|
};
|
|
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:
|
|
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 }))));
|
|
17
23
|
};
|