bromcom-ui 2.7.38-rc.0 → 2.7.38-rc.10
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-7b7f4c29.entry.js → p-044f9596.entry.js} +1 -1
- package/dist/bromcom-ui/p-056300d3.entry.js +5 -0
- package/dist/bromcom-ui/{p-7df747c7.entry.js → p-0b77585e.entry.js} +1 -1
- package/dist/bromcom-ui/{p-20c45a95.entry.js → p-0f685aa9.entry.js} +1 -1
- package/dist/bromcom-ui/{p-e0cb6ac3.entry.js → p-14938158.entry.js} +1 -1
- package/dist/bromcom-ui/{p-0e8b8316.js → p-14dcefcc.js} +1 -1
- package/dist/bromcom-ui/{p-04c8b756.js → p-16b50160.js} +1 -1
- package/dist/bromcom-ui/p-174a925e.entry.js +5 -0
- package/dist/bromcom-ui/p-1e7b503a.entry.js +5 -0
- package/dist/bromcom-ui/p-22271800.entry.js +5 -0
- package/dist/bromcom-ui/{p-13077a28.entry.js → p-22e08221.entry.js} +1 -1
- package/dist/bromcom-ui/p-260b73e0.entry.js +5 -0
- package/dist/bromcom-ui/p-2cdc4578.entry.js +5 -0
- package/dist/bromcom-ui/{p-0dff677e.entry.js → p-369d6e4f.entry.js} +1 -1
- package/dist/bromcom-ui/p-37b85344.entry.js +5 -0
- package/dist/bromcom-ui/p-389ca8e6.entry.js +5 -0
- package/dist/bromcom-ui/{p-4eb1b6e1.entry.js → p-3d4897d8.entry.js} +1 -1
- package/dist/bromcom-ui/p-3f3b9653.entry.js +5 -0
- package/dist/bromcom-ui/p-42475649.entry.js +5 -0
- package/dist/bromcom-ui/p-4487e8c2.js +5 -0
- package/dist/bromcom-ui/{p-7f0e7aff.js → p-45f6c93b.js} +1 -1
- package/dist/bromcom-ui/p-464fdddb.js +5 -0
- package/dist/bromcom-ui/{p-2f4d6b32.entry.js → p-482a0dc5.entry.js} +1 -1
- package/dist/bromcom-ui/p-48e9166c.js +5 -0
- package/dist/bromcom-ui/p-4a123037.entry.js +5 -0
- package/dist/bromcom-ui/{p-da7603b0.entry.js → p-4a51c718.entry.js} +1 -1
- package/dist/bromcom-ui/{p-f0b62f8e.entry.js → p-4b178552.entry.js} +1 -1
- package/dist/bromcom-ui/{p-e6d92da4.entry.js → p-4bfe4953.entry.js} +1 -1
- package/dist/bromcom-ui/p-4d242698.entry.js +5 -0
- package/dist/bromcom-ui/{p-38e67de7.entry.js → p-4df4e699.entry.js} +1 -1
- package/dist/bromcom-ui/{p-45704915.js → p-56898932.js} +1 -1
- package/dist/bromcom-ui/p-56fe5837.entry.js +5 -0
- package/dist/bromcom-ui/p-589c8169.entry.js +5 -0
- package/dist/bromcom-ui/p-59962918.entry.js +5 -0
- package/dist/bromcom-ui/{p-78cf8966.entry.js → p-5d014153.entry.js} +1 -1
- package/dist/bromcom-ui/p-5de651cc.entry.js +5 -0
- package/dist/bromcom-ui/p-5f8d6f0d.entry.js +5 -0
- package/dist/bromcom-ui/{p-7b5e88c5.entry.js → p-61709094.entry.js} +1 -1
- package/dist/bromcom-ui/p-6230d9ae.entry.js +5 -0
- package/dist/bromcom-ui/{p-cf337431.entry.js → p-64667889.entry.js} +1 -1
- package/dist/bromcom-ui/{p-5f002c1c.entry.js → p-65de875d.entry.js} +1 -1
- package/dist/bromcom-ui/p-6dbcf9fd.entry.js +5 -0
- package/dist/bromcom-ui/p-70129359.entry.js +5 -0
- package/dist/bromcom-ui/{p-acb048b5.js → p-74595a06.js} +1 -1
- package/dist/bromcom-ui/{p-62bb8bf1.entry.js → p-74bcbe87.entry.js} +1 -1
- package/dist/bromcom-ui/{p-455f416f.entry.js → p-74e46eeb.entry.js} +1 -1
- package/dist/bromcom-ui/p-80070042.entry.js +5 -0
- package/dist/bromcom-ui/p-8092f5b7.entry.js +5 -0
- package/dist/bromcom-ui/p-8159bf6d.js +5 -0
- package/dist/bromcom-ui/p-8451a473.entry.js +5 -0
- package/dist/bromcom-ui/{p-eb639e76.entry.js → p-848a9f8e.entry.js} +1 -1
- package/dist/bromcom-ui/p-8732bf81.js +5 -0
- package/dist/bromcom-ui/{p-0122ae3d.js → p-88f7d869.js} +1 -1
- package/dist/bromcom-ui/p-8c4bc1f1.js +5 -0
- package/dist/bromcom-ui/{p-341f55bf.entry.js → p-8d1cd79f.entry.js} +1 -1
- package/dist/bromcom-ui/p-8e5e4f4f.entry.js +5 -0
- package/dist/bromcom-ui/{p-581f703b.entry.js → p-97df9122.entry.js} +1 -1
- package/dist/bromcom-ui/{p-0a46b931.entry.js → p-9a1dc17c.entry.js} +1 -1
- package/dist/bromcom-ui/{p-96287124.js → p-9bef5a59.js} +1 -1
- package/dist/bromcom-ui/p-9dadcdb6.entry.js +5 -0
- package/dist/bromcom-ui/p-9e54f157.entry.js +5 -0
- package/dist/bromcom-ui/{p-e48c96b5.entry.js → p-a173ed35.entry.js} +1 -1
- package/dist/bromcom-ui/p-a2024fe4.entry.js +10 -0
- package/dist/bromcom-ui/p-a27e9a9d.entry.js +5 -0
- package/dist/bromcom-ui/{p-c9bd85e9.js → p-a429e85b.js} +1 -1
- package/dist/bromcom-ui/{p-c3fc854c.entry.js → p-a55f033b.entry.js} +1 -1
- package/dist/bromcom-ui/p-af6cfebf.entry.js +5 -0
- package/dist/bromcom-ui/p-b2e31f20.entry.js +5 -0
- package/dist/bromcom-ui/p-ba4e0e58.entry.js +5 -0
- package/dist/bromcom-ui/p-bdb012c3.entry.js +5 -0
- package/dist/bromcom-ui/p-c03d2bd5.entry.js +5 -0
- package/dist/bromcom-ui/p-cf24285a.entry.js +5 -0
- package/dist/bromcom-ui/{p-b1b377e8.entry.js → p-dae1cc7b.entry.js} +1 -1
- package/dist/bromcom-ui/{p-eb3aa16b.entry.js → p-dc306bd8.entry.js} +1 -1
- package/dist/bromcom-ui/{p-487f7b46.js → p-de954bc9.js} +1 -1
- package/dist/bromcom-ui/{p-5c20b83c.entry.js → p-dfe8e354.entry.js} +1 -1
- package/dist/bromcom-ui/{p-f5ae5381.entry.js → p-e02491ce.entry.js} +1 -1
- package/dist/bromcom-ui/p-e024ef95.entry.js +5 -0
- package/dist/bromcom-ui/{p-6720d135.entry.js → p-e2b3cb98.entry.js} +1 -1
- package/dist/bromcom-ui/p-e2e7d808.entry.js +5 -0
- package/dist/bromcom-ui/p-e3ff80a1.js +5 -0
- package/dist/bromcom-ui/p-e5e37a94.entry.js +5 -0
- package/dist/bromcom-ui/p-e7b95865.entry.js +5 -0
- package/dist/bromcom-ui/{p-f6685330.entry.js → p-f089027d.entry.js} +1 -1
- package/dist/bromcom-ui/p-f126f47e.entry.js +5 -0
- package/dist/bromcom-ui/{p-1978e4ae.entry.js → p-f16ce14a.entry.js} +1 -1
- package/dist/bromcom-ui/p-f3df967f.entry.js +5 -0
- package/dist/bromcom-ui/p-f5225678.entry.js +5 -0
- package/dist/bromcom-ui/p-fa2e3b46.js +5 -0
- package/dist/bromcom-ui/p-ff5d25e7.entry.js +5 -0
- package/dist/cjs/{bcm-f00ec62c.js → bcm-634604e3.js} +5 -4
- package/dist/cjs/bcm-accordion.cjs.entry.js +3 -3
- package/dist/cjs/bcm-alert.cjs.entry.js +6 -6
- package/dist/cjs/bcm-attendance.cjs.entry.js +5 -5
- package/dist/cjs/bcm-autocomplete.cjs.entry.js +2 -2
- package/dist/cjs/bcm-avatar_2.cjs.entry.js +165 -0
- package/dist/cjs/bcm-box.cjs.entry.js +2 -2
- package/dist/cjs/bcm-breadcrumb.cjs.entry.js +3 -3
- package/dist/cjs/bcm-button-group.cjs.entry.js +9 -9
- package/dist/cjs/bcm-button.cjs.entry.js +384 -0
- package/dist/cjs/bcm-card.cjs.entry.js +7 -7
- package/dist/cjs/bcm-checkbox-group.cjs.entry.js +11 -11
- package/dist/cjs/bcm-checkbox-lite_9.cjs.entry.js +8 -8
- package/dist/cjs/bcm-checkbox_2.cjs.entry.js +14 -14
- package/dist/cjs/bcm-chip.cjs.entry.js +19 -6
- package/dist/cjs/bcm-collapse-group.cjs.entry.js +2 -2
- package/dist/cjs/bcm-collapse.cjs.entry.js +3 -3
- package/dist/cjs/bcm-color-input.cjs.entry.js +80 -0
- package/dist/cjs/bcm-colorful_2.cjs.entry.js +17939 -0
- package/dist/cjs/bcm-colorpicker.cjs.entry.js +2 -2
- package/dist/cjs/bcm-date-picker.cjs.entry.js +7 -6
- package/dist/cjs/bcm-datetime-picker.cjs.entry.js +13 -12
- package/dist/cjs/bcm-default.cjs.entry.js +3 -3
- package/dist/cjs/bcm-drawer.cjs.entry.js +10 -10
- package/dist/cjs/bcm-dropdown.cjs.entry.js +111 -0
- package/dist/cjs/bcm-error-layout.cjs.entry.js +3 -3
- package/dist/cjs/bcm-expansion-panel.cjs.entry.js +6 -6
- package/dist/cjs/bcm-form-2.cjs.entry.js +6 -6
- package/dist/cjs/bcm-form-group.cjs.entry.js +2 -2
- package/dist/cjs/bcm-form.cjs.entry.js +487 -0
- package/dist/cjs/bcm-icon.cjs.entry.js +41 -0
- package/dist/cjs/bcm-input.cjs.entry.js +42 -15
- package/dist/cjs/bcm-item.cjs.entry.js +84 -0
- package/dist/cjs/bcm-items.cjs.entry.js +61 -0
- package/dist/{bromcom-ui/p-96525d60.entry.js → cjs/bcm-label_2.cjs.entry.js} +121 -1
- package/dist/cjs/bcm-link.cjs.entry.js +6 -6
- package/dist/cjs/bcm-list.cjs.entry.js +66 -45
- package/dist/cjs/bcm-menu.cjs.entry.js +137 -0
- package/dist/cjs/bcm-message.cjs.entry.js +2 -2
- package/dist/cjs/bcm-modal.cjs.entry.js +9 -9
- package/dist/cjs/bcm-notification.cjs.entry.js +2 -2
- package/dist/cjs/bcm-old-input.cjs.entry.js +4 -4
- package/dist/cjs/bcm-old-tag_2.cjs.entry.js +2 -2
- package/dist/cjs/bcm-popconfirm-box.cjs.entry.js +7 -7
- package/dist/cjs/bcm-popconfirm.cjs.entry.js +7 -7
- package/dist/cjs/bcm-popover.cjs.entry.js +183 -0
- package/dist/cjs/bcm-progress.cjs.entry.js +6 -6
- package/dist/cjs/bcm-radio-group.cjs.entry.js +11 -11
- package/dist/cjs/bcm-radio.cjs.entry.js +8 -8
- package/dist/cjs/bcm-range.cjs.entry.js +8 -8
- package/dist/cjs/bcm-result.cjs.entry.js +2 -2
- package/dist/cjs/bcm-search.cjs.entry.js +18 -13
- package/dist/cjs/bcm-select-group.cjs.entry.js +1 -1
- package/dist/cjs/bcm-select-option.cjs.entry.js +1 -1
- package/dist/cjs/bcm-select.cjs.entry.js +5 -5
- package/dist/cjs/bcm-skeleton.cjs.entry.js +8 -8
- package/dist/cjs/bcm-step.cjs.entry.js +8 -8
- package/dist/cjs/bcm-stepper.cjs.entry.js +27 -22
- package/dist/cjs/bcm-switch.cjs.entry.js +149 -0
- package/dist/cjs/bcm-tab-group.cjs.entry.js +54 -54
- package/dist/cjs/bcm-tab-pane.cjs.entry.js +2 -2
- package/dist/cjs/bcm-tab.cjs.entry.js +3 -3
- package/dist/cjs/bcm-table.cjs.entry.js +2 -2
- package/dist/cjs/bcm-tabs-content.cjs.entry.js +2 -2
- package/dist/cjs/bcm-tabs.cjs.entry.js +2 -2
- package/dist/cjs/bcm-tag.cjs.entry.js +16 -16
- package/dist/cjs/bcm-text.cjs.entry.js +62 -0
- package/dist/cjs/bcm-textarea.cjs.entry.js +10 -10
- package/dist/cjs/bcm-time-picker.cjs.entry.js +7 -6
- package/dist/cjs/bcm-timeline-item.cjs.entry.js +2 -2
- package/dist/cjs/bcm-timeline.cjs.entry.js +2 -2
- package/dist/cjs/bcm-treeview-group.cjs.entry.js +1 -1
- package/dist/cjs/bromcom-ui.cjs.js +2 -2
- package/dist/cjs/{caption-template-95c791a2.js → caption-template-de4a0064.js} +1 -1
- package/dist/cjs/{floating-ui-2a4a79ff.js → floating-ui-c23acc6c.js} +2 -2
- package/dist/cjs/{generate-0d51cba6.js → generate-79883e13.js} +14 -14
- package/dist/cjs/{index-1d2ce51d.js → index-56628fe5.js} +1 -1
- package/dist/cjs/{index-1fda1524.js → index-7e2a5376.js} +1 -1
- package/dist/cjs/input-template-b6899dd5.js +92 -0
- package/dist/cjs/{is-load-decorator-77664890.js → is-load-decorator-c38598ab.js} +1 -1
- package/dist/cjs/json-parse-decarator-9c655412.js +40 -0
- package/dist/cjs/{label-template-e56264b3.js → label-template-098a30a4.js} +4 -4
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{number-helper-1d113d3e.js → number-helper-9b194170.js} +1 -1
- package/dist/cjs/old-bcm-popover-box.cjs.entry.js +9 -9
- package/dist/cjs/old-bcm-popover.cjs.entry.js +6 -6
- package/dist/cjs/{popover-placement-ac98d407.js → popover-placement-69d37a5f.js} +1 -1
- package/dist/cjs/{slot-template-a4505c70.js → slot-template-7a07f865.js} +2 -2
- package/dist/cjs/{stepper-states-f66c2ae8.js → stepper-states-fcc50d03.js} +8 -6
- package/dist/cjs/{string-helper-145cd64f.js → string-helper-71b10c53.js} +2 -2
- package/dist/cjs/tooltip-helper-c195f187.js +119 -0
- package/dist/cjs/{validators-424a487a.js → validators-21bbcbcc.js} +1 -1
- package/dist/collection/collection-manifest.json +3 -1
- package/dist/collection/components/atoms/avatar/avatar.css +3 -1
- package/dist/collection/components/atoms/badge/badge.css +3 -1
- package/dist/collection/components/atoms/button/button.css +3 -1
- package/dist/collection/components/atoms/button/button.js +1 -1
- package/dist/collection/components/atoms/chip/chip.css +3 -1
- package/dist/collection/components/atoms/chip/chip.js +61 -3
- package/dist/collection/components/atoms/label/label.css +3 -1
- package/dist/collection/components/atoms/link/link.css +3 -1
- package/dist/collection/components/atoms/link/link.js +1 -1
- package/dist/collection/components/molecules/button-group/button-group.css +7 -1
- package/dist/collection/components/molecules/card/card.css +3 -1
- package/dist/collection/components/molecules/checkbox/checkbox.css +10 -3
- package/dist/collection/components/molecules/checkbox/checkbox.js +1 -1
- package/dist/collection/components/molecules/color-input/color-input.css +127 -0
- package/dist/collection/components/molecules/color-input/color-input.js +218 -0
- package/dist/collection/components/molecules/colorful/colorful.css +1253 -0
- package/dist/collection/components/molecules/colorful/colorful.js +72 -0
- package/dist/collection/components/molecules/drawer/drawer.css +3 -1
- package/dist/collection/components/molecules/dropdown/dropdown.css +3 -1
- package/dist/collection/components/molecules/error-layout/error-layout.css +3 -1
- package/dist/collection/components/molecules/expansion-panel/expansion-panel.css +3 -1
- package/dist/collection/components/molecules/input/input.css +13 -6
- package/dist/collection/components/molecules/input/input.js +29 -2
- package/dist/collection/components/molecules/item/item.css +3 -1
- package/dist/collection/components/molecules/linked/linked.js +29 -29
- package/dist/collection/components/molecules/menu/menu.css +3 -1
- package/dist/collection/components/molecules/menu/menu.js +1 -1
- package/dist/collection/components/molecules/modal/modal.css +3 -1
- package/dist/collection/components/molecules/popconfirm/popconfirm-box.css +3 -1
- package/dist/collection/components/molecules/popconfirm/popconfirm.js +1 -1
- package/dist/collection/components/molecules/popover/popover.js +11 -11
- package/dist/collection/components/molecules/progress/progress.css +3 -1
- package/dist/collection/components/molecules/radio/group.css +6 -2
- package/dist/collection/components/molecules/radio/radio.css +10 -3
- package/dist/collection/components/molecules/range/range.css +3 -1
- package/dist/collection/components/molecules/search/search.css +13 -6
- package/dist/collection/components/molecules/search/search.js +1 -1
- package/dist/collection/components/molecules/skeleton/skeleton.js +8 -8
- package/dist/collection/components/molecules/states/search.states.js +12 -7
- package/dist/collection/components/molecules/states/stepper-states.js +6 -4
- package/dist/collection/components/molecules/stepper/step.js +3 -3
- package/dist/collection/components/molecules/stepper/stepper.css +5 -2
- package/dist/collection/components/molecules/stepper/stepper.js +35 -12
- package/dist/collection/components/molecules/switch/switch.css +9 -3
- package/dist/collection/components/molecules/switch/switch.js +1 -1
- package/dist/collection/components/molecules/tab-group/tab-group.js +52 -52
- package/dist/collection/components/molecules/textarea/textarea.css +13 -6
- package/dist/collection/components/molecules/tooltip/tooltip.js +35 -9
- package/dist/collection/components/organism/date-picker/date-picker.js +20 -1
- package/dist/collection/components/organism/datetime-picker/datetime-picker.css +9 -3
- package/dist/collection/components/organism/datetime-picker/datetime-picker.js +20 -1
- package/dist/collection/components/organism/form/form.js +1 -1
- package/dist/collection/components/organism/list/list.css +13 -4
- package/dist/collection/components/organism/list/list.js +8 -1
- package/dist/collection/components/organism/states/bcm-list2.states.js +1 -1
- package/dist/collection/components/organism/time-picker/time-picker.js +20 -1
- package/dist/collection/components/other/attendance/attendance.css +3 -1
- package/dist/collection/components/other/attendance/attendance.js +1 -1
- package/dist/collection/components/other_deprecated/old-input/old-input.css +9 -3
- package/dist/collection/components/other_deprecated/old-popover/old-popover-box.css +3 -1
- package/dist/collection/components/other_deprecated/select/select.js +1 -1
- package/dist/collection/components/other_deprecated/tabs/tab.css +3 -1
- package/dist/collection/components/other_deprecated/text/text.css +3 -1
- package/dist/collection/global/components/_checkbox.css +4 -1
- package/dist/collection/helper/tooltip-helper.js +37 -23
- package/dist/collection/models/bcm.js +1 -0
- package/dist/collection/stories/assets/button/1.svg +35 -0
- package/dist/collection/stories/assets/button/10.svg +24 -0
- package/dist/collection/stories/assets/button/11.svg +24 -0
- package/dist/collection/stories/assets/button/12.svg +24 -0
- package/dist/collection/stories/assets/button/2.svg +28 -0
- package/dist/collection/stories/assets/button/3.svg +41 -0
- package/dist/collection/stories/assets/button/4.svg +9 -0
- package/dist/collection/stories/assets/button/5.svg +65 -0
- package/dist/collection/stories/assets/button/6.svg +68 -0
- package/dist/collection/stories/assets/button/7.svg +203 -0
- package/dist/collection/stories/assets/button/8.svg +316 -0
- package/dist/collection/stories/assets/button/9.svg +9 -0
- package/dist/collection/templates/button-template.js +1 -1
- package/dist/collection/templates/input-template.js +30 -29
- package/dist/collection/templates/list-item-template.js +1 -1
- package/dist/collection/templates/list-template.js +14 -2
- package/dist/collection/templates/step-template.js +2 -2
- package/dist/components/avatar.js +1 -1
- package/dist/components/badge.js +1 -1
- package/dist/components/bcm-attendance.js +2 -2
- package/dist/components/bcm-button-group.js +1 -1
- package/dist/components/bcm-card.js +1 -1
- package/dist/components/bcm-chip.js +17 -4
- package/dist/components/bcm-color-input.d.ts +11 -0
- package/dist/components/bcm-color-input.js +134 -0
- package/dist/components/bcm-colorful.d.ts +11 -0
- package/dist/components/bcm-colorful.js +10 -0
- package/dist/components/bcm-date-picker.js +3 -1
- package/dist/components/bcm-drawer.js +1 -1
- package/dist/components/bcm-dropdown.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-form.js +1 -1
- package/dist/components/bcm-input.js +1 -411
- package/dist/components/bcm-item.js +1 -1
- package/dist/components/bcm-list.js +35 -15
- package/dist/components/bcm-modal.js +1 -1
- package/dist/components/bcm-popconfirm.js +1 -1
- package/dist/components/bcm-popover.js +4 -4
- package/dist/components/bcm-progress.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 +1 -1
- package/dist/components/bcm-stepper.js +21 -15
- package/dist/components/bcm-switch.js +2 -2
- package/dist/components/bcm-tab-group.js +46 -46
- package/dist/components/bcm-tab.js +1 -1
- package/dist/components/bcm-textarea.js +1 -1
- package/dist/components/bcm-time-picker.js +3 -1
- package/dist/components/bcm.js +1 -0
- package/dist/components/button.js +3 -3
- package/dist/components/checkbox-lite.js +1 -1
- package/dist/components/checkbox.js +2 -2
- package/dist/components/colorful.js +17768 -0
- package/dist/components/datetime-picker.js +4 -2
- package/dist/components/generate.js +1 -1
- package/dist/components/index.d.ts +3 -1
- package/dist/components/index.js +2 -0
- package/dist/components/input-template.js +45 -39
- package/dist/components/input.js +456 -0
- package/dist/components/label.js +1 -1
- package/dist/components/link.js +2 -2
- package/dist/components/linked.js +21 -21
- package/dist/components/menu.js +2 -2
- package/dist/components/old-input.js +1 -1
- package/dist/components/old-popover-box.js +1 -1
- package/dist/components/popconfirm-box.js +1 -1
- package/dist/components/radio.js +1 -1
- package/dist/components/search.js +10 -5
- package/dist/components/skeleton.js +5 -5
- package/dist/components/step.js +9 -8
- package/dist/components/text.js +1 -1
- package/dist/components/tooltip-helper.js +35 -21
- package/dist/components/tooltip.js +7 -3
- package/dist/esm/{bcm-b8d8a236.js → bcm-9f50af9c.js} +2 -1
- package/dist/esm/bcm-accordion.entry.js +3 -3
- package/dist/esm/bcm-alert.entry.js +6 -6
- package/dist/esm/bcm-attendance.entry.js +5 -5
- package/dist/esm/bcm-autocomplete.entry.js +2 -2
- package/dist/esm/bcm-avatar_2.entry.js +160 -0
- package/dist/esm/bcm-box.entry.js +2 -2
- package/dist/esm/bcm-breadcrumb.entry.js +3 -3
- package/dist/esm/bcm-button-group.entry.js +6 -6
- package/dist/esm/bcm-button.entry.js +380 -0
- package/dist/esm/bcm-card.entry.js +7 -7
- package/dist/esm/bcm-checkbox-group.entry.js +8 -8
- package/dist/esm/bcm-checkbox-lite_9.entry.js +5 -5
- package/dist/esm/bcm-checkbox_2.entry.js +9 -9
- package/dist/esm/bcm-chip.entry.js +19 -6
- package/dist/esm/bcm-collapse-group.entry.js +2 -2
- package/dist/esm/bcm-collapse.entry.js +3 -3
- package/dist/esm/bcm-color-input.entry.js +76 -0
- package/dist/esm/bcm-colorful_2.entry.js +17934 -0
- package/dist/esm/bcm-colorpicker.entry.js +2 -2
- package/dist/esm/bcm-date-picker.entry.js +6 -5
- package/dist/esm/bcm-datetime-picker.entry.js +11 -10
- package/dist/esm/bcm-default.entry.js +3 -3
- package/dist/esm/bcm-drawer.entry.js +8 -8
- package/dist/esm/bcm-dropdown.entry.js +107 -0
- package/dist/esm/bcm-error-layout.entry.js +3 -3
- package/dist/esm/bcm-expansion-panel.entry.js +6 -6
- package/dist/esm/bcm-form-2.entry.js +5 -5
- package/dist/esm/bcm-form-group.entry.js +2 -2
- package/dist/esm/bcm-form.entry.js +483 -0
- package/dist/esm/bcm-icon.entry.js +37 -0
- package/dist/esm/bcm-input.entry.js +38 -11
- package/dist/esm/bcm-item.entry.js +80 -0
- package/dist/esm/bcm-items.entry.js +57 -0
- package/dist/esm/bcm-label_2.entry.js +120 -0
- package/dist/esm/bcm-link.entry.js +5 -5
- package/dist/esm/bcm-list.entry.js +50 -29
- package/dist/esm/bcm-menu.entry.js +133 -0
- package/dist/esm/bcm-message.entry.js +2 -2
- package/dist/esm/bcm-modal.entry.js +7 -7
- package/dist/esm/bcm-notification.entry.js +2 -2
- package/dist/esm/bcm-old-input.entry.js +4 -4
- package/dist/esm/bcm-old-tag_2.entry.js +2 -2
- package/dist/esm/bcm-popconfirm-box.entry.js +7 -7
- package/dist/esm/bcm-popconfirm.entry.js +5 -5
- package/dist/esm/bcm-popover.entry.js +179 -0
- package/dist/esm/bcm-progress.entry.js +5 -5
- package/dist/esm/bcm-radio-group.entry.js +8 -8
- package/dist/esm/bcm-radio.entry.js +7 -7
- package/dist/esm/bcm-range.entry.js +5 -5
- package/dist/esm/bcm-result.entry.js +2 -2
- package/dist/esm/bcm-search.entry.js +17 -12
- package/dist/esm/bcm-select-group.entry.js +1 -1
- package/dist/esm/bcm-select-option.entry.js +1 -1
- package/dist/esm/bcm-select.entry.js +5 -5
- package/dist/esm/bcm-skeleton.entry.js +8 -8
- package/dist/esm/bcm-step.entry.js +8 -8
- package/dist/esm/bcm-stepper.entry.js +25 -20
- package/dist/esm/bcm-switch.entry.js +145 -0
- package/dist/esm/bcm-tab-group.entry.js +50 -50
- package/dist/esm/bcm-tab-pane.entry.js +2 -2
- package/dist/esm/bcm-tab.entry.js +3 -3
- package/dist/esm/bcm-table.entry.js +2 -2
- package/dist/esm/bcm-tabs-content.entry.js +2 -2
- package/dist/esm/bcm-tabs.entry.js +2 -2
- package/dist/esm/bcm-tag.entry.js +5 -5
- package/dist/{bromcom-ui/p-59b121e1.entry.js → esm/bcm-text.entry.js} +54 -1
- package/dist/esm/bcm-textarea.entry.js +7 -7
- package/dist/esm/bcm-time-picker.entry.js +6 -5
- package/dist/esm/bcm-timeline-item.entry.js +2 -2
- package/dist/esm/bcm-timeline.entry.js +2 -2
- package/dist/esm/bcm-treeview-group.entry.js +1 -1
- package/dist/esm/bromcom-ui.js +2 -2
- package/dist/esm/{caption-template-e7d51661.js → caption-template-389f5bd6.js} +1 -1
- package/dist/esm/{floating-ui-700d0b98.js → floating-ui-4a49ea46.js} +1 -1
- package/dist/esm/{generate-30f32431.js → generate-8f3b9a2c.js} +14 -14
- package/dist/esm/{index-58077b32.js → index-6e2d80d7.js} +1 -1
- package/dist/esm/{index-6bdec00d.js → index-8b349654.js} +1 -1
- package/dist/esm/input-template-cc41d403.js +90 -0
- package/dist/esm/{is-load-decorator-d57b8f9e.js → is-load-decorator-66e19e04.js} +1 -1
- package/dist/esm/json-parse-decarator-7fe3c7bc.js +38 -0
- package/dist/esm/{label-template-f352ef5b.js → label-template-eed2dd69.js} +3 -3
- package/dist/esm/loader.js +2 -2
- package/dist/esm/{number-helper-49efb3a0.js → number-helper-b2969361.js} +1 -1
- package/dist/esm/old-bcm-popover-box.entry.js +9 -9
- package/dist/esm/old-bcm-popover.entry.js +4 -4
- package/dist/esm/{popover-placement-9864294b.js → popover-placement-4baf5f2f.js} +1 -1
- package/dist/esm/{slot-template-aee2ff75.js → slot-template-64b41ee5.js} +2 -2
- package/dist/esm/{stepper-states-204a065e.js → stepper-states-5ed84b4b.js} +8 -6
- package/dist/esm/{string-helper-74a1648f.js → string-helper-0fb7ff20.js} +1 -1
- package/dist/esm/tooltip-helper-7a9c8211.js +117 -0
- package/dist/esm/{validators-e1c02a1a.js → validators-8aafda5d.js} +1 -1
- package/dist/types/components/atoms/chip/chip.d.ts +6 -1
- package/dist/types/components/molecules/color-input/color-input.d.ts +20 -0
- package/dist/types/components/molecules/colorful/colorful.d.ts +8 -0
- package/dist/types/components/molecules/input/input.d.ts +3 -0
- package/dist/types/components/molecules/linked/linked.d.ts +2 -2
- package/dist/types/components/molecules/popover/popover.d.ts +3 -3
- package/dist/types/components/molecules/skeleton/skeleton.d.ts +1 -1
- package/dist/types/components/molecules/states/search.states.d.ts +1 -1
- package/dist/types/components/molecules/stepper/step.d.ts +1 -1
- package/dist/types/components/molecules/stepper/stepper.d.ts +1 -0
- package/dist/types/components/molecules/tab-group/tab-group.d.ts +2 -2
- package/dist/types/components/molecules/tooltip/tooltip.d.ts +4 -3
- package/dist/types/components/organism/date-picker/date-picker.d.ts +1 -0
- package/dist/types/components/organism/datetime-picker/datetime-picker.d.ts +1 -0
- package/dist/types/components/organism/list/list.d.ts +1 -0
- package/dist/types/components/organism/time-picker/time-picker.d.ts +1 -0
- package/dist/types/components.d.ts +66 -0
- package/dist/types/helper/tooltip-helper.d.ts +4 -1
- package/dist/types/models/bcm.d.ts +2 -1
- package/dist/types/templates/input-template.d.ts +5 -3
- package/dist/types/templates/step-template.d.ts +1 -1
- package/package.json +106 -70
- package/dist/bromcom-ui/p-0a29a882.entry.js +0 -5
- package/dist/bromcom-ui/p-1192f094.js +0 -5
- package/dist/bromcom-ui/p-1af75960.entry.js +0 -5
- package/dist/bromcom-ui/p-1c207a2d.entry.js +0 -5
- package/dist/bromcom-ui/p-24bfaf3c.entry.js +0 -5
- package/dist/bromcom-ui/p-2a7f29b6.entry.js +0 -5
- package/dist/bromcom-ui/p-3b07a0b1.entry.js +0 -5
- package/dist/bromcom-ui/p-3b43ad99.entry.js +0 -5
- package/dist/bromcom-ui/p-3e6e1e62.entry.js +0 -5
- package/dist/bromcom-ui/p-41df4c5d.entry.js +0 -5
- package/dist/bromcom-ui/p-42d537ac.entry.js +0 -5
- package/dist/bromcom-ui/p-44dd9f7a.entry.js +0 -5
- package/dist/bromcom-ui/p-4db160cc.js +0 -5
- package/dist/bromcom-ui/p-516b3b59.entry.js +0 -5
- package/dist/bromcom-ui/p-52e9eb72.entry.js +0 -5
- package/dist/bromcom-ui/p-68ab7a63.entry.js +0 -5
- package/dist/bromcom-ui/p-68f57e0b.entry.js +0 -5
- package/dist/bromcom-ui/p-6c92a756.entry.js +0 -5
- package/dist/bromcom-ui/p-6f1b3d34.entry.js +0 -5
- package/dist/bromcom-ui/p-758a20ad.entry.js +0 -5
- package/dist/bromcom-ui/p-765ee6c1.js +0 -5
- package/dist/bromcom-ui/p-77e0d2b5.entry.js +0 -5
- package/dist/bromcom-ui/p-906848af.entry.js +0 -5
- package/dist/bromcom-ui/p-937e2bed.js +0 -5
- package/dist/bromcom-ui/p-980e5824.entry.js +0 -5
- package/dist/bromcom-ui/p-99bed73b.entry.js +0 -5
- package/dist/bromcom-ui/p-9c6de630.js +0 -5
- package/dist/bromcom-ui/p-a2710121.entry.js +0 -5
- package/dist/bromcom-ui/p-a95d388e.js +0 -5
- package/dist/bromcom-ui/p-c78bc99b.js +0 -5
- package/dist/bromcom-ui/p-dcf02363.entry.js +0 -5
- package/dist/bromcom-ui/p-e14fb705.entry.js +0 -5
- package/dist/bromcom-ui/p-e2fe4755.entry.js +0 -5
- package/dist/bromcom-ui/p-f495426e.entry.js +0 -5
- package/dist/cjs/bcm-avatar_15.cjs.entry.js +0 -1954
- package/dist/cjs/input-template-d7f600a5.js +0 -86
- package/dist/cjs/tooltip-helper-eff66c97.js +0 -137
- package/dist/esm/bcm-avatar_15.entry.js +0 -1936
- package/dist/esm/input-template-0131cb6b.js +0 -84
- package/dist/esm/tooltip-helper-968148fa.js +0 -134
- /package/dist/collection/components/{organism → other_deprecated}/colorpicker/colorpicker.css +0 -0
- /package/dist/collection/components/{organism → other_deprecated}/colorpicker/colorpicker.js +0 -0
- /package/dist/collection/components/{organism → other_deprecated}/colorpicker/static/chess.png +0 -0
- /package/dist/collection/components/{organism → other_deprecated}/colorpicker/static/color.svg +0 -0
- /package/dist/collection/components/{organism → other_deprecated}/colorpicker/static/colors.svg +0 -0
- /package/dist/types/components/{organism → other_deprecated}/colorpicker/colorpicker.d.ts +0 -0
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import ReactDOM from "react-dom";
|
|
3
|
+
import { HexColorPicker } from "react-colorful";
|
|
4
|
+
import { debounce } from "lodash";
|
|
5
|
+
// https://github.com/omgovich/react-colorful
|
|
6
|
+
export class BcmColorful {
|
|
7
|
+
constructor() {
|
|
8
|
+
this.color = "#3b82f6";
|
|
9
|
+
}
|
|
10
|
+
handleChange(e) {
|
|
11
|
+
this.bcmChange.emit(e);
|
|
12
|
+
}
|
|
13
|
+
componentDidRender() {
|
|
14
|
+
const { color } = this;
|
|
15
|
+
ReactDOM.render(React.createElement(HexColorPicker, {
|
|
16
|
+
color,
|
|
17
|
+
onChange: debounce(this.handleChange.bind(this), 150),
|
|
18
|
+
}), this.el);
|
|
19
|
+
}
|
|
20
|
+
static get is() { return "bcm-colorful"; }
|
|
21
|
+
static get originalStyleUrls() {
|
|
22
|
+
return {
|
|
23
|
+
"$": ["colorful.scss"]
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
static get styleUrls() {
|
|
27
|
+
return {
|
|
28
|
+
"$": ["colorful.css"]
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
static get properties() {
|
|
32
|
+
return {
|
|
33
|
+
"color": {
|
|
34
|
+
"type": "any",
|
|
35
|
+
"mutable": true,
|
|
36
|
+
"complexType": {
|
|
37
|
+
"original": "any",
|
|
38
|
+
"resolved": "any",
|
|
39
|
+
"references": {}
|
|
40
|
+
},
|
|
41
|
+
"required": false,
|
|
42
|
+
"optional": false,
|
|
43
|
+
"docs": {
|
|
44
|
+
"tags": [],
|
|
45
|
+
"text": ""
|
|
46
|
+
},
|
|
47
|
+
"attribute": "color",
|
|
48
|
+
"reflect": false,
|
|
49
|
+
"defaultValue": "\"#3b82f6\""
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
static get events() {
|
|
54
|
+
return [{
|
|
55
|
+
"method": "bcmChange",
|
|
56
|
+
"name": "bcmChange",
|
|
57
|
+
"bubbles": true,
|
|
58
|
+
"cancelable": true,
|
|
59
|
+
"composed": true,
|
|
60
|
+
"docs": {
|
|
61
|
+
"tags": [],
|
|
62
|
+
"text": ""
|
|
63
|
+
},
|
|
64
|
+
"complexType": {
|
|
65
|
+
"original": "any",
|
|
66
|
+
"resolved": "any",
|
|
67
|
+
"references": {}
|
|
68
|
+
}
|
|
69
|
+
}];
|
|
70
|
+
}
|
|
71
|
+
static get elementRef() { return "el"; }
|
|
72
|
+
}
|
|
@@ -125,7 +125,9 @@
|
|
|
125
125
|
margin-right: 8px;
|
|
126
126
|
}
|
|
127
127
|
|
|
128
|
-
:root
|
|
128
|
+
:root,
|
|
129
|
+
::after,
|
|
130
|
+
::before {
|
|
129
131
|
--bcm-new-ds-color-inherit: inherit;
|
|
130
132
|
--bcm-new-ds-color-current: currentColor;
|
|
131
133
|
--bcm-new-ds-color-transparent: transparent;
|
|
@@ -428,7 +430,9 @@
|
|
|
428
430
|
min-height: calc(14px + 8px);
|
|
429
431
|
}
|
|
430
432
|
|
|
431
|
-
:root
|
|
433
|
+
:root,
|
|
434
|
+
::after,
|
|
435
|
+
::before {
|
|
432
436
|
--bcm-new-ds-color-inherit: inherit;
|
|
433
437
|
--bcm-new-ds-color-current: currentColor;
|
|
434
438
|
--bcm-new-ds-color-transparent: transparent;
|
|
@@ -776,7 +780,9 @@
|
|
|
776
780
|
margin: 0;
|
|
777
781
|
}
|
|
778
782
|
|
|
779
|
-
:root
|
|
783
|
+
:root,
|
|
784
|
+
::after,
|
|
785
|
+
::before {
|
|
780
786
|
--bcm-new-ds-color-inherit: inherit;
|
|
781
787
|
--bcm-new-ds-color-current: currentColor;
|
|
782
788
|
--bcm-new-ds-color-transparent: transparent;
|
|
@@ -1065,7 +1071,7 @@
|
|
|
1065
1071
|
cursor: not-allowed;
|
|
1066
1072
|
}
|
|
1067
1073
|
.bcm-input__container.disabled .bcm-input-element {
|
|
1068
|
-
color: var(--bcm-new-ds-color-slate-
|
|
1074
|
+
color: var(--bcm-new-ds-color-slate-500);
|
|
1069
1075
|
}
|
|
1070
1076
|
.bcm-input__container.readonly {
|
|
1071
1077
|
background-color: var(--bcm-new-ds-color-slate-50);
|
|
@@ -1165,6 +1171,7 @@
|
|
|
1165
1171
|
}
|
|
1166
1172
|
.bcm-input__container .input-suffix:not(:empty) {
|
|
1167
1173
|
min-width: 24px;
|
|
1174
|
+
padding-right: 4px;
|
|
1168
1175
|
}
|
|
1169
1176
|
.bcm-input__container .input-prefix:not(:empty),
|
|
1170
1177
|
.bcm-input__container .input-suffix:not(:empty) {
|
|
@@ -1172,11 +1179,11 @@
|
|
|
1172
1179
|
align-items: center;
|
|
1173
1180
|
justify-content: center;
|
|
1174
1181
|
cursor: default;
|
|
1175
|
-
color:
|
|
1182
|
+
color: #64748a;
|
|
1176
1183
|
}
|
|
1177
1184
|
.bcm-input__container .input-prefix:not(:empty) .unit-prefix,
|
|
1178
1185
|
.bcm-input__container .input-suffix:not(:empty) .unit-prefix {
|
|
1179
|
-
color:
|
|
1186
|
+
color: #64748a;
|
|
1180
1187
|
}
|
|
1181
1188
|
.bcm-input__container .input-prefix-button:not(:empty),
|
|
1182
1189
|
.bcm-input__container .input-suffix-button:not(:empty) {
|
|
@@ -304,6 +304,32 @@ export class BcmInput {
|
|
|
304
304
|
}
|
|
305
305
|
return val;
|
|
306
306
|
}
|
|
307
|
+
eyeDropper() {
|
|
308
|
+
const eyeDropper = new window.EyeDropper();
|
|
309
|
+
eyeDropper
|
|
310
|
+
.open()
|
|
311
|
+
.then((color) => {
|
|
312
|
+
console.log("color: ", color.sRGBHex);
|
|
313
|
+
this.setValue(color.sRGBHex);
|
|
314
|
+
})
|
|
315
|
+
.catch((error) => {
|
|
316
|
+
if (error.name === "NotAllowedError") {
|
|
317
|
+
console.log("Permission to access sensor was denied.");
|
|
318
|
+
}
|
|
319
|
+
else if (error.name === "NotSupportedError") {
|
|
320
|
+
console.log("Sensor not supported.");
|
|
321
|
+
}
|
|
322
|
+
});
|
|
323
|
+
}
|
|
324
|
+
isEyeDropperSupported() {
|
|
325
|
+
return typeof window !== "undefined" && "EyeDropper" in window;
|
|
326
|
+
}
|
|
327
|
+
toggleLinked() {
|
|
328
|
+
const linkedElement = document.getElementById(`${this._id}-linked`);
|
|
329
|
+
if (linkedElement) {
|
|
330
|
+
linkedElement.toggle();
|
|
331
|
+
}
|
|
332
|
+
}
|
|
307
333
|
render() {
|
|
308
334
|
const { value, size, label, type, captionType, caption, captionError, placeholder, fullWidth, disabled, readonly, clearable, passwordToggle, isPasswordVisible, noDefaultIcon, unit, inValid, focused, unitPrefix, noCaption, required, hidden, _id, autocomplete } = this;
|
|
309
335
|
const isActiveClearable = (value === null || value === void 0 ? void 0 : value.length) > 0 && clearable;
|
|
@@ -312,7 +338,8 @@ export class BcmInput {
|
|
|
312
338
|
// 'no-margin': noMargin,
|
|
313
339
|
'full-width': fullWidth
|
|
314
340
|
});
|
|
315
|
-
return (h(Host, {
|
|
341
|
+
return (h(Host, { onfocus: () => this.onBcmFocus(), class: hostClasses, onClick: () => this.onBcmFocus() }, label && h("bcm-label", { onClick: () => this.toggleLinked(), tooltip: this.tooltip, type: captionType, value: label, required: required, htmlFor: _id }), h(InputTemplate, { id: _id, type: type, value: value, pattern: this.pattern, placeholder: placeholder, disabled: disabled, readonly: readonly, clearable: isActiveClearable, passwordToggle: passwordToggle, isPasswordVisible: isPasswordVisible, noDefaultIcon: noDefaultIcon, focused: focused, inValid: inValid, unitPrefix: unitPrefix, maxLength: this.maxLength, internalId: this._internal_id, captionType: captionType, unit: unit, size: size, handleFocus: () => this.handleFocus(), handleBlur: () => this.handleBlur(), handleChange: () => this.handleChange(), handleInput: () => this.handleInput(), steps: (e) => this.stepUpOrDown(e), changePasswordVisibility: () => this.changePasswordVisibility(), handleClear: (e) => this.handleClear(e), eyeDropper: () => this.eyeDropper(), isEyeDropperSupported: () => this.isEyeDropperSupported(), ref: (el) => this.inputElement = el, _suffix: this._suffix, _prefix: this._prefix, autocomplete: autocomplete }), h(CaptionTemplate, { noCaption: noCaption, captionType: captionType, captionError: captionError, caption: caption, customErrorMessage: this.customErrorMessage }), type == Bcm.InputType.color &&
|
|
342
|
+
h("bcm-linked", { targetId: this._id + "-container", id: this._id + "-linked" }, h("bcm-colorful", { id: this._id + "-picker", color: this.value, onBcmChange: e => this.setValue(e.detail) }))));
|
|
316
343
|
}
|
|
317
344
|
static get is() { return "bcm-input"; }
|
|
318
345
|
static get originalStyleUrls() {
|
|
@@ -566,7 +593,7 @@ export class BcmInput {
|
|
|
566
593
|
"mutable": true,
|
|
567
594
|
"complexType": {
|
|
568
595
|
"original": "InputTypes",
|
|
569
|
-
"resolved": "\"email\" | \"hidden\" | \"number\" | \"password\" | \"search\" | \"tel\" | \"text\" | \"url\"",
|
|
596
|
+
"resolved": "\"color\" | \"email\" | \"hidden\" | \"number\" | \"password\" | \"search\" | \"tel\" | \"text\" | \"url\"",
|
|
570
597
|
"references": {
|
|
571
598
|
"InputTypes": {
|
|
572
599
|
"location": "import",
|
|
@@ -12,20 +12,20 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
12
12
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
13
13
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
14
14
|
};
|
|
15
|
-
import { Host, h } from
|
|
16
|
-
import { Bcm } from
|
|
17
|
-
import { delay, FloatingUI } from
|
|
18
|
-
import { Generate } from
|
|
19
|
-
import { IsLoad } from
|
|
15
|
+
import { Host, h } from "@stencil/core";
|
|
16
|
+
import { Bcm } from "@bcm/model";
|
|
17
|
+
import { delay, FloatingUI } from "@bcm/utils";
|
|
18
|
+
import { Generate } from "@bcm/helpers";
|
|
19
|
+
import { IsLoad } from "@bcm/decorator";
|
|
20
20
|
export class BcmLinked {
|
|
21
21
|
constructor() {
|
|
22
22
|
this._id = Generate.UID();
|
|
23
|
-
this.placement = Bcm.Placement[
|
|
23
|
+
this.placement = Bcm.Placement["bottom-start"];
|
|
24
24
|
this.trigger = Bcm.TriggerType.click;
|
|
25
|
-
this.targetId =
|
|
25
|
+
this.targetId = "";
|
|
26
26
|
this.height = undefined;
|
|
27
27
|
this.maxHeight = undefined;
|
|
28
|
-
this.minHeight =
|
|
28
|
+
this.minHeight = "50px";
|
|
29
29
|
this.isOpen = false;
|
|
30
30
|
}
|
|
31
31
|
target() {
|
|
@@ -41,15 +41,15 @@ export class BcmLinked {
|
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
dismissEvent() {
|
|
44
|
-
document.dispatchEvent(new CustomEvent(
|
|
44
|
+
document.dispatchEvent(new CustomEvent("linked-data-dismiss", { detail: { id: this._id } }));
|
|
45
45
|
}
|
|
46
46
|
checkDataDismiss(e) {
|
|
47
|
-
Generate.findEventPathHasAttribute(e,
|
|
47
|
+
Generate.findEventPathHasAttribute(e, "data-dismiss") && this.dismissEvent();
|
|
48
48
|
}
|
|
49
49
|
hideChildLinked() {
|
|
50
|
-
this.el.querySelectorAll(
|
|
50
|
+
this.el.querySelectorAll("[is-linked][linked-is-open]").forEach(item => {
|
|
51
51
|
var _a;
|
|
52
|
-
(_a = document.querySelector(`#${item.getAttribute(
|
|
52
|
+
(_a = document.querySelector(`#${item.getAttribute("is-linked")}[is-open]`)) === null || _a === void 0 ? void 0 : _a.hide(false);
|
|
53
53
|
});
|
|
54
54
|
}
|
|
55
55
|
calculatePosition() {
|
|
@@ -61,7 +61,7 @@ export class BcmLinked {
|
|
|
61
61
|
floating: el,
|
|
62
62
|
placement: this.placement,
|
|
63
63
|
offset: 4,
|
|
64
|
-
autoHidden: el.getAttribute(
|
|
64
|
+
autoHidden: el.getAttribute("main-linked") === "true" ? false : true,
|
|
65
65
|
autoSize: true,
|
|
66
66
|
style: {
|
|
67
67
|
height: this.height,
|
|
@@ -71,20 +71,20 @@ export class BcmLinked {
|
|
|
71
71
|
});
|
|
72
72
|
}
|
|
73
73
|
else {
|
|
74
|
-
el.style.visibility =
|
|
75
|
-
el.style.opacity =
|
|
74
|
+
el.style.visibility = "hidden";
|
|
75
|
+
el.style.opacity = "0";
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
79
|
init() {
|
|
80
80
|
const target = this.target();
|
|
81
81
|
if (target) {
|
|
82
|
-
target.setAttribute(
|
|
83
|
-
if (!Generate.getAncestor(target,
|
|
84
|
-
this.el.setAttribute(
|
|
82
|
+
target.setAttribute("is-linked", this.el.id);
|
|
83
|
+
if (!Generate.getAncestor(target, "bcm-linked")) {
|
|
84
|
+
this.el.setAttribute("main-linked", "true");
|
|
85
85
|
}
|
|
86
86
|
else {
|
|
87
|
-
this.el.removeAttribute(
|
|
87
|
+
this.el.removeAttribute("main-linked");
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
90
|
}
|
|
@@ -106,7 +106,7 @@ export class BcmLinked {
|
|
|
106
106
|
const target = this.target();
|
|
107
107
|
if (target) {
|
|
108
108
|
document.body.appendChild(this.el);
|
|
109
|
-
target.setAttribute(
|
|
109
|
+
target.setAttribute("linked-is-open", "true");
|
|
110
110
|
this.isOpen = true;
|
|
111
111
|
this.calculatePosition();
|
|
112
112
|
}
|
|
@@ -119,7 +119,7 @@ export class BcmLinked {
|
|
|
119
119
|
wait && (await delay(50));
|
|
120
120
|
const target = this.target();
|
|
121
121
|
if (target) {
|
|
122
|
-
target.removeAttribute(
|
|
122
|
+
target.removeAttribute("linked-is-open");
|
|
123
123
|
this.hideChildLinked();
|
|
124
124
|
this.isOpen = false;
|
|
125
125
|
}
|
|
@@ -133,16 +133,16 @@ export class BcmLinked {
|
|
|
133
133
|
return;
|
|
134
134
|
const isTarget = Generate.findEventPath(e, this.target());
|
|
135
135
|
const isSelf = Generate.findEventPath(e, this.el);
|
|
136
|
-
const isLinked = Generate.findEventPathWithNodeName(e,
|
|
136
|
+
const isLinked = Generate.findEventPathWithNodeName(e, "BCM-LINKED");
|
|
137
137
|
if (!isTarget && !isSelf && !isLinked) {
|
|
138
|
-
this.
|
|
138
|
+
this.hide();
|
|
139
139
|
this.bcmOpen.emit(this.isOpen);
|
|
140
140
|
return;
|
|
141
141
|
}
|
|
142
142
|
if (this.isOpen) {
|
|
143
143
|
isTarget && this.hide(false);
|
|
144
144
|
isSelf && this.checkDataDismiss(e);
|
|
145
|
-
if (this.el.getAttribute(
|
|
145
|
+
if (this.el.getAttribute("main-linked") === "true" && !isTarget && !isSelf && !isLinked) {
|
|
146
146
|
this.dismissEvent();
|
|
147
147
|
}
|
|
148
148
|
}
|
|
@@ -163,8 +163,8 @@ export class BcmLinked {
|
|
|
163
163
|
this.bcmOpen.emit(this.isOpen);
|
|
164
164
|
}
|
|
165
165
|
render() {
|
|
166
|
-
const openStyle = this.isOpen ? { visibility:
|
|
167
|
-
return (h(Host, { class: "tw-
|
|
166
|
+
const openStyle = this.isOpen ? { visibility: "visible", opacity: "1" } : { visibility: "hidden", opacity: "0" };
|
|
167
|
+
return (h(Host, { class: "tw-invisible tw-absolute tw-top-0 tw-left-0 tw-z-tooltip tw-block tw-overscroll-contain tw-scroll-smooth tw-rounded tw-bg-white tw-opacity-0 tw-shadow tw-transition-opacity tw-duration-100", style: Object.assign(Object.assign({}, openStyle), { overflow: "auto" }) }, h("slot", null)));
|
|
168
168
|
}
|
|
169
169
|
static get is() { return "bcm-linked"; }
|
|
170
170
|
static get properties() {
|
|
@@ -208,7 +208,7 @@ export class BcmLinked {
|
|
|
208
208
|
},
|
|
209
209
|
"attribute": "placement",
|
|
210
210
|
"reflect": false,
|
|
211
|
-
"defaultValue": "Bcm.Placement[
|
|
211
|
+
"defaultValue": "Bcm.Placement[\"bottom-start\"]"
|
|
212
212
|
},
|
|
213
213
|
"trigger": {
|
|
214
214
|
"type": "string",
|
|
@@ -249,7 +249,7 @@ export class BcmLinked {
|
|
|
249
249
|
},
|
|
250
250
|
"attribute": "target-id",
|
|
251
251
|
"reflect": false,
|
|
252
|
-
"defaultValue": "
|
|
252
|
+
"defaultValue": "\"\""
|
|
253
253
|
},
|
|
254
254
|
"height": {
|
|
255
255
|
"type": "string",
|
|
@@ -301,7 +301,7 @@ export class BcmLinked {
|
|
|
301
301
|
},
|
|
302
302
|
"attribute": "min-height",
|
|
303
303
|
"reflect": false,
|
|
304
|
-
"defaultValue": "
|
|
304
|
+
"defaultValue": "\"50px\""
|
|
305
305
|
},
|
|
306
306
|
"isOpen": {
|
|
307
307
|
"type": "boolean",
|
|
@@ -98,7 +98,7 @@ export class BcmMenu {
|
|
|
98
98
|
'bcm-menu__item-submenu--open': item.isOpen,
|
|
99
99
|
}) }, item.items.map((subItem, subIndex) => MenuLinkTemplate(subItem, subIndex))))));
|
|
100
100
|
};
|
|
101
|
-
return (h(Host, { class: hostClasses,
|
|
101
|
+
return (h(Host, { class: hostClasses, disabled: this.disabled }, h("div", { class: "bcm-menu__container" }, h("slot", null), (data === null || data === void 0 ? void 0 : data.length) > 0 && data.map((item, index) => MenuLinkTemplate(item, index)), collapsible && (h("div", { class: cs('bcm-menu__collapse-button', {
|
|
102
102
|
'bcm-menu__collapse-button--collapsed': collapse,
|
|
103
103
|
}), onClick: () => {
|
|
104
104
|
this.collapse = !collapse;
|
|
@@ -89,7 +89,7 @@ export class BcmPopconfirm {
|
|
|
89
89
|
}
|
|
90
90
|
render() {
|
|
91
91
|
const popconfirmClasses = cs('bcm-popconfirm');
|
|
92
|
-
return (h(Host, { class: popconfirmClasses, onclick: () => this.listenTrigger('click')
|
|
92
|
+
return (h(Host, { class: popconfirmClasses, onclick: () => this.listenTrigger('click') }, h("slot", null)));
|
|
93
93
|
}
|
|
94
94
|
static get is() { return "bcm-popconfirm"; }
|
|
95
95
|
static get originalStyleUrls() {
|
|
@@ -12,19 +12,19 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
12
12
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
13
13
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
14
14
|
};
|
|
15
|
-
import { IsLoad } from
|
|
16
|
-
import { Generate, Popover } from
|
|
17
|
-
import { Bcm } from
|
|
18
|
-
import { Host, h } from
|
|
15
|
+
import { IsLoad } from "@bcm/decorator";
|
|
16
|
+
import { Generate, Popover } from "@bcm/helpers";
|
|
17
|
+
import { Bcm } from "@bcm/model";
|
|
18
|
+
import { Host, h } from "@stencil/core";
|
|
19
19
|
export class BcmPopover {
|
|
20
20
|
constructor() {
|
|
21
21
|
this._id = Generate.UID();
|
|
22
|
-
this.message =
|
|
23
|
-
this.content =
|
|
22
|
+
this.message = "";
|
|
23
|
+
this.content = "";
|
|
24
24
|
this.placement = Bcm.Placement.top;
|
|
25
25
|
this.trigger = Bcm.TriggerType.click;
|
|
26
26
|
this.open = false;
|
|
27
|
-
this.color =
|
|
27
|
+
this.color = "white";
|
|
28
28
|
this.popover = new Popover({
|
|
29
29
|
targetId: this._id,
|
|
30
30
|
content: this.content,
|
|
@@ -56,7 +56,7 @@ export class BcmPopover {
|
|
|
56
56
|
this.popover.toggle();
|
|
57
57
|
}
|
|
58
58
|
render() {
|
|
59
|
-
return (h(Host, { "aria-describedby": "popover",
|
|
59
|
+
return (h(Host, { "aria-describedby": "popover", class: "tw-inline-flex tw-h-fit tw-w-fit" }, h("slot", null)));
|
|
60
60
|
}
|
|
61
61
|
static get is() { return "bcm-popover"; }
|
|
62
62
|
static get properties() {
|
|
@@ -95,7 +95,7 @@ export class BcmPopover {
|
|
|
95
95
|
},
|
|
96
96
|
"attribute": "message",
|
|
97
97
|
"reflect": false,
|
|
98
|
-
"defaultValue": "
|
|
98
|
+
"defaultValue": "\"\""
|
|
99
99
|
},
|
|
100
100
|
"content": {
|
|
101
101
|
"type": "string",
|
|
@@ -113,7 +113,7 @@ export class BcmPopover {
|
|
|
113
113
|
},
|
|
114
114
|
"attribute": "content",
|
|
115
115
|
"reflect": false,
|
|
116
|
-
"defaultValue": "
|
|
116
|
+
"defaultValue": "\"\""
|
|
117
117
|
},
|
|
118
118
|
"placement": {
|
|
119
119
|
"type": "string",
|
|
@@ -195,7 +195,7 @@ export class BcmPopover {
|
|
|
195
195
|
},
|
|
196
196
|
"attribute": "color",
|
|
197
197
|
"reflect": false,
|
|
198
|
-
"defaultValue": "
|
|
198
|
+
"defaultValue": "\"white\""
|
|
199
199
|
}
|
|
200
200
|
};
|
|
201
201
|
}
|
|
@@ -124,7 +124,9 @@
|
|
|
124
124
|
margin-right: 8px;
|
|
125
125
|
}
|
|
126
126
|
|
|
127
|
-
:root
|
|
127
|
+
:root,
|
|
128
|
+
::after,
|
|
129
|
+
::before {
|
|
128
130
|
--bcm-new-ds-color-inherit: inherit;
|
|
129
131
|
--bcm-new-ds-color-current: currentColor;
|
|
130
132
|
--bcm-new-ds-color-transparent: transparent;
|
|
@@ -427,7 +429,9 @@
|
|
|
427
429
|
min-height: calc(14px + 8px);
|
|
428
430
|
}
|
|
429
431
|
|
|
430
|
-
:root
|
|
432
|
+
:root,
|
|
433
|
+
::after,
|
|
434
|
+
::before {
|
|
431
435
|
--bcm-new-ds-color-inherit: inherit;
|
|
432
436
|
--bcm-new-ds-color-current: currentColor;
|
|
433
437
|
--bcm-new-ds-color-transparent: transparent;
|
|
@@ -125,7 +125,9 @@
|
|
|
125
125
|
margin-right: 8px;
|
|
126
126
|
}
|
|
127
127
|
|
|
128
|
-
:root
|
|
128
|
+
:root,
|
|
129
|
+
::after,
|
|
130
|
+
::before {
|
|
129
131
|
--bcm-new-ds-color-inherit: inherit;
|
|
130
132
|
--bcm-new-ds-color-current: currentColor;
|
|
131
133
|
--bcm-new-ds-color-transparent: transparent;
|
|
@@ -428,7 +430,9 @@
|
|
|
428
430
|
min-height: calc(14px + 8px);
|
|
429
431
|
}
|
|
430
432
|
|
|
431
|
-
:root
|
|
433
|
+
:root,
|
|
434
|
+
::after,
|
|
435
|
+
::before {
|
|
432
436
|
--bcm-new-ds-color-inherit: inherit;
|
|
433
437
|
--bcm-new-ds-color-current: currentColor;
|
|
434
438
|
--bcm-new-ds-color-transparent: transparent;
|
|
@@ -776,7 +780,9 @@
|
|
|
776
780
|
margin: 0;
|
|
777
781
|
}
|
|
778
782
|
|
|
779
|
-
:root
|
|
783
|
+
:root,
|
|
784
|
+
::after,
|
|
785
|
+
::before {
|
|
780
786
|
--bcm-new-ds-color-inherit: inherit;
|
|
781
787
|
--bcm-new-ds-color-current: currentColor;
|
|
782
788
|
--bcm-new-ds-color-transparent: transparent;
|
|
@@ -1061,6 +1067,7 @@
|
|
|
1061
1067
|
appearance: none;
|
|
1062
1068
|
background-color: #fff;
|
|
1063
1069
|
margin: 0;
|
|
1070
|
+
display: none;
|
|
1064
1071
|
}
|
|
1065
1072
|
.bcm-checkbox__input {
|
|
1066
1073
|
display: flex;
|