bromcom-ui 2.9.0-rc.2 → 2.9.0-rc.20
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/global/global.js +19 -5
- package/dist/bromcom-ui/global/helper/toast.ts +2 -0
- package/dist/bromcom-ui/{p-4eb98beb.entry.js → p-027fcca4.entry.js} +1 -1
- package/dist/bromcom-ui/p-03a43724.entry.js +5 -0
- package/dist/bromcom-ui/p-05b33e0a.entry.js +5 -0
- package/dist/bromcom-ui/p-08c75801.js +5 -0
- package/dist/bromcom-ui/p-1289ca7c.entry.js +5 -0
- package/dist/bromcom-ui/{p-4cd8a7c8.entry.js → p-14cafd64.entry.js} +1 -1
- package/dist/bromcom-ui/p-15ac2f9b.entry.js +5 -0
- package/dist/bromcom-ui/p-15f4b17b.js +5 -0
- package/dist/bromcom-ui/p-170cf07d.js +6 -0
- package/dist/bromcom-ui/p-1bc0cea5.entry.js +5 -0
- package/dist/bromcom-ui/p-1c344eb6.js +5 -0
- package/dist/bromcom-ui/{p-e4477593.entry.js → p-1c801d0c.entry.js} +1 -1
- package/dist/bromcom-ui/{p-48f85544.entry.js → p-1c9314bd.entry.js} +1 -1
- package/dist/bromcom-ui/p-1f431229.entry.js +5 -0
- package/dist/bromcom-ui/{p-8ded5483.entry.js → p-228c74e9.entry.js} +1 -1
- package/dist/bromcom-ui/{p-ee8aa496.js → p-23b91029.js} +1 -1
- package/dist/bromcom-ui/p-24ae2291.entry.js +5 -0
- package/dist/bromcom-ui/p-2621356f.entry.js +5 -0
- package/dist/bromcom-ui/{p-68abefd2.entry.js → p-26290ed5.entry.js} +1 -1
- package/dist/bromcom-ui/{p-240151d4.entry.js → p-2aaeb247.entry.js} +1 -1
- package/dist/bromcom-ui/{p-dbc4c30c.js → p-2c5a0863.js} +1 -1
- package/dist/bromcom-ui/{p-9e58b42a.js → p-2e003abd.js} +1 -1
- package/dist/bromcom-ui/p-3432a82d.js +19 -0
- package/dist/bromcom-ui/p-42c4f7ba.entry.js +5 -0
- package/dist/bromcom-ui/{p-30788121.entry.js → p-430c0a24.entry.js} +1 -1
- package/dist/bromcom-ui/p-4605fc71.entry.js +5 -0
- package/dist/bromcom-ui/p-4b963ea9.entry.js +5 -0
- package/dist/bromcom-ui/p-4e7dc8c5.entry.js +5 -0
- package/dist/bromcom-ui/p-4fc4adf7.entry.js +5 -0
- package/dist/bromcom-ui/p-50623c4a.entry.js +5 -0
- package/dist/bromcom-ui/p-562262b5.entry.js +5 -0
- package/dist/bromcom-ui/{p-dc2c4b14.entry.js → p-5699f67d.entry.js} +1 -1
- package/dist/bromcom-ui/p-5871767a.entry.js +5 -0
- package/dist/bromcom-ui/{p-03eaa3e0.entry.js → p-5afb94fb.entry.js} +1 -1
- package/dist/bromcom-ui/p-5b0c89b9.js +5 -0
- package/dist/bromcom-ui/p-5b5aa96d.js +5 -0
- package/dist/bromcom-ui/{p-795bdb81.entry.js → p-5c1ee978.entry.js} +1 -1
- package/dist/bromcom-ui/p-5ea466da.entry.js +5 -0
- package/dist/bromcom-ui/p-6037f210.entry.js +5 -0
- package/dist/bromcom-ui/p-61b74ccf.entry.js +5 -0
- package/dist/bromcom-ui/p-61db1f1f.js +5 -0
- package/dist/bromcom-ui/{p-89e1d8c5.entry.js → p-626b805d.entry.js} +1 -1
- package/dist/bromcom-ui/p-62a4589f.entry.js +5 -0
- package/dist/bromcom-ui/{p-f81dfa79.entry.js → p-62c15599.entry.js} +1 -1
- package/dist/bromcom-ui/{p-476474f5.js → p-641cd771.js} +1 -1
- package/dist/bromcom-ui/p-64fad38b.js +11 -0
- package/dist/bromcom-ui/p-65a4b1e3.js +5 -0
- package/dist/bromcom-ui/{p-03134b6f.entry.js → p-67343ad8.entry.js} +1 -1
- package/dist/bromcom-ui/{p-bd51d347.entry.js → p-69260d36.entry.js} +1 -1
- package/dist/bromcom-ui/{p-4aa0e6b1.js → p-6edf985f.js} +1 -1
- package/dist/bromcom-ui/p-72372580.entry.js +5 -0
- package/dist/bromcom-ui/{p-3cde7f38.js → p-74e6d2b6.js} +1 -1
- package/dist/bromcom-ui/{p-d995750a.entry.js → p-7c5763cc.entry.js} +1 -1
- package/dist/bromcom-ui/p-7cb30513.js +5 -0
- package/dist/bromcom-ui/p-7ceea271.entry.js +5 -0
- package/dist/bromcom-ui/{p-81eeccfa.entry.js → p-7d18ce0e.entry.js} +1 -1
- package/dist/bromcom-ui/p-7d700834.entry.js +5 -0
- package/dist/bromcom-ui/{p-d832cf50.entry.js → p-80ee3d97.entry.js} +1 -1
- package/dist/bromcom-ui/{p-c3f145fe.entry.js → p-83d1fd59.entry.js} +1 -1
- package/dist/bromcom-ui/p-8520b17f.entry.js +5 -0
- package/dist/bromcom-ui/{p-1bd9bd4d.entry.js → p-856d05cb.entry.js} +1 -1
- package/dist/bromcom-ui/p-85a95c62.entry.js +5 -0
- package/dist/bromcom-ui/p-85eedabc.js +5 -0
- package/dist/bromcom-ui/p-89779d2b.entry.js +5 -0
- package/dist/bromcom-ui/{p-932f2502.entry.js → p-9473c602.entry.js} +1 -1
- package/dist/bromcom-ui/p-9850cbce.js +5 -0
- package/dist/bromcom-ui/{p-1647559e.entry.js → p-99824717.entry.js} +1 -1
- package/dist/bromcom-ui/p-9c43f91b.entry.js +5 -0
- package/dist/bromcom-ui/{p-b60bcecf.js → p-a1b1750c.js} +1 -1
- package/dist/bromcom-ui/{p-7c6e3ae5.entry.js → p-a664cc20.entry.js} +1 -1
- package/dist/bromcom-ui/p-a9eb0321.js +315 -0
- package/dist/bromcom-ui/p-ac77ad0b.entry.js +5 -0
- package/dist/bromcom-ui/{p-ea4d8a18.entry.js → p-ae57f046.entry.js} +1 -1
- package/dist/bromcom-ui/p-b1f32d16.entry.js +5 -0
- package/dist/bromcom-ui/p-b2cabcb8.entry.js +7 -0
- package/dist/bromcom-ui/p-b81e8f91.js +5 -0
- package/dist/bromcom-ui/{p-f4538abb.entry.js → p-ba9eff2a.entry.js} +1 -1
- package/dist/bromcom-ui/p-be19827b.entry.js +5 -0
- package/dist/bromcom-ui/{p-c9d687bb.entry.js → p-be1a3642.entry.js} +1 -1
- package/dist/bromcom-ui/p-bfb1129e.entry.js +5 -0
- package/dist/bromcom-ui/p-c09188a5.entry.js +5 -0
- package/dist/bromcom-ui/{p-dc9466d6.entry.js → p-c1a992e7.entry.js} +1 -1
- package/dist/bromcom-ui/p-c5647ba3.entry.js +5 -0
- package/dist/bromcom-ui/p-ca8f539d.entry.js +5 -0
- package/dist/bromcom-ui/p-ccf0872d.js +5 -0
- package/dist/bromcom-ui/{p-8d0ca8c2.js → p-d153c7fc.js} +1 -1
- package/dist/bromcom-ui/{p-7ddaedb7.entry.js → p-d551a51d.entry.js} +1 -1
- package/dist/bromcom-ui/p-d8cca259.entry.js +5 -0
- package/dist/bromcom-ui/p-dadc4391.entry.js +5 -0
- package/dist/bromcom-ui/p-daf17207.entry.js +5 -0
- package/dist/bromcom-ui/{p-5648b456.entry.js → p-e688b044.entry.js} +1 -1
- package/dist/bromcom-ui/p-eacf5375.entry.js +5 -0
- package/dist/bromcom-ui/{p-6ca980dd.entry.js → p-ece578ef.entry.js} +1 -1
- package/dist/bromcom-ui/p-edeb7592.js +5 -0
- package/dist/bromcom-ui/p-ee5cd93c.entry.js +5 -0
- package/dist/bromcom-ui/p-f47f9452.entry.js +5 -0
- package/dist/bromcom-ui/{p-84e8e5ee.entry.js → p-f53de6bd.entry.js} +1 -1
- package/dist/bromcom-ui/p-f711588b.js +5 -0
- package/dist/bromcom-ui/{p-f619f9f9.entry.js → p-fff1a0f9.entry.js} +1 -1
- package/dist/bromcom-ui/{assets/icon → static}/message-bot.svg +2 -2
- package/dist/cjs/{_commonjsHelpers-bd20f4c0.js → _commonjsHelpers-ed84c3ca.js} +16 -0
- package/dist/cjs/{bcm-ab921827.js → bcm-7f703055.js} +33 -31
- package/dist/cjs/bcm-accordion.cjs.entry.js +5 -4
- package/dist/cjs/bcm-alert.cjs.entry.js +9 -8
- package/dist/cjs/bcm-attendance.cjs.entry.js +5 -4
- package/dist/cjs/bcm-autocomplete.cjs.entry.js +3 -3
- package/dist/cjs/bcm-avatar_2.cjs.entry.js +209 -0
- package/dist/cjs/bcm-box.cjs.entry.js +1 -1
- package/dist/cjs/bcm-breadcrumb.cjs.entry.js +6 -5
- package/dist/cjs/bcm-button-group.cjs.entry.js +11 -10
- package/dist/cjs/{bcm-avatar_15.cjs.entry.js → bcm-button_15.cjs.entry.js} +17123 -5494
- package/dist/cjs/bcm-card.cjs.entry.js +10 -9
- package/dist/cjs/bcm-checkbox-group.cjs.entry.js +15 -14
- package/dist/cjs/bcm-checkbox-lite_9.cjs.entry.js +10 -9
- package/dist/cjs/bcm-checkbox_2.cjs.entry.js +18 -17
- package/dist/cjs/bcm-chip-group.cjs.entry.js +128 -0
- package/dist/cjs/bcm-chip.cjs.entry.js +91 -0
- package/dist/cjs/bcm-collapse-group.cjs.entry.js +1 -1
- package/dist/cjs/bcm-collapse.cjs.entry.js +6 -5
- package/dist/cjs/bcm-color-input.cjs.entry.js +10 -10
- package/dist/cjs/bcm-colorpicker.cjs.entry.js +3 -3
- package/dist/cjs/bcm-content.cjs.entry.js +1 -1
- package/dist/cjs/bcm-default.cjs.entry.js +5 -4
- package/dist/cjs/bcm-drawer.cjs.entry.js +13 -13
- package/dist/cjs/bcm-dropdown.cjs.entry.js +12 -11
- package/dist/cjs/bcm-error-layout.cjs.entry.js +3 -3
- package/dist/cjs/bcm-expansion-panel.cjs.entry.js +9 -8
- package/dist/cjs/bcm-form-group.cjs.entry.js +1 -1
- package/dist/cjs/bcm-input-custom.cjs.entry.js +6 -5
- package/dist/cjs/bcm-input-dropdown.cjs.entry.js +309 -0
- package/dist/cjs/bcm-item.cjs.entry.js +9 -8
- package/dist/cjs/bcm-items.cjs.entry.js +8 -7
- package/dist/cjs/bcm-link.cjs.entry.js +6 -6
- package/dist/cjs/bcm-list_3.cjs.entry.js +2504 -0
- package/dist/cjs/bcm-menu.cjs.entry.js +15 -14
- package/dist/cjs/bcm-message.cjs.entry.js +3 -3
- package/dist/cjs/bcm-modal-2-footer.cjs.entry.js +11 -11
- package/dist/cjs/bcm-modal-2-header.cjs.entry.js +10 -10
- package/dist/cjs/bcm-modal-2.cjs.entry.js +12 -12
- package/dist/cjs/bcm-modal.cjs.entry.js +11 -10
- package/dist/cjs/bcm-notification.cjs.entry.js +3 -3
- package/dist/cjs/bcm-old-tag_2.cjs.entry.js +3 -3
- package/dist/cjs/bcm-overlay_2.cjs.entry.js +4 -4
- package/dist/cjs/bcm-popconfirm-box.cjs.entry.js +10 -9
- package/dist/cjs/bcm-popconfirm.cjs.entry.js +9 -8
- package/dist/cjs/bcm-popover.cjs.entry.js +27 -23
- package/dist/cjs/bcm-progress.cjs.entry.js +9 -8
- package/dist/cjs/bcm-radio-group.cjs.entry.js +17 -17
- package/dist/cjs/bcm-radio.cjs.entry.js +18 -18
- package/dist/cjs/bcm-range.cjs.entry.js +10 -9
- package/dist/cjs/bcm-result.cjs.entry.js +3 -3
- package/dist/cjs/bcm-select-group.cjs.entry.js +3 -3
- package/dist/cjs/bcm-select-option.cjs.entry.js +3 -3
- package/dist/cjs/bcm-select.cjs.entry.js +5 -5
- package/dist/cjs/bcm-skeleton.cjs.entry.js +5 -4
- package/dist/cjs/bcm-step.cjs.entry.js +8 -7
- package/dist/cjs/bcm-stepper.cjs.entry.js +15 -15
- package/dist/cjs/bcm-switch.cjs.entry.js +15 -14
- package/dist/cjs/bcm-tab-group.cjs.entry.js +16 -12
- package/dist/cjs/bcm-tab-item-header.cjs.entry.js +23 -38
- package/dist/cjs/bcm-tab-item.cjs.entry.js +10 -10
- package/dist/cjs/bcm-tab-pane.cjs.entry.js +3 -3
- package/dist/cjs/bcm-tab.cjs.entry.js +3 -3
- package/dist/cjs/bcm-table.cjs.entry.js +7648 -38
- package/dist/cjs/bcm-tabs-content.cjs.entry.js +3 -3
- package/dist/cjs/bcm-tabs.cjs.entry.js +3 -3
- package/dist/cjs/bcm-tag.cjs.entry.js +19 -18
- package/dist/cjs/bcm-text.cjs.entry.js +8 -8
- package/dist/cjs/bcm-textarea.cjs.entry.js +13 -12
- package/dist/cjs/bcm-timeline-item.cjs.entry.js +3 -3
- package/dist/cjs/bcm-timeline.cjs.entry.js +3 -3
- package/dist/cjs/bcm-toast.cjs.entry.js +38 -18
- package/dist/cjs/bcm-treeview-group.cjs.entry.js +1 -1
- package/dist/cjs/bromcom-ui.cjs.js +5 -3
- package/dist/cjs/{caption-template-8d099fd6.js → caption-template-81dbc490.js} +2 -2
- package/dist/cjs/{color-helper-d6d2028b.js → color-helper-c3a819ea.js} +28 -2
- package/dist/cjs/{colors-e1d142ad.js → colors-078851ec.js} +1 -1
- package/dist/cjs/{floating-ui-c9fc2202.js → floating-ui-b441ea7c.js} +2 -2
- package/dist/cjs/{generate-7a3874e6.js → generate-e4ab2b4f.js} +57 -8
- package/dist/cjs/global-daef09f5.js +27 -0
- package/dist/cjs/index-5279dea2.js +2571 -0
- package/dist/cjs/index-7eed931f.js +2146 -0
- package/dist/cjs/{index-fdbf5226.js → index-95ae50d0.js} +1 -1
- package/dist/cjs/{index-ddfd6d8f.js → index-c591ecec.js} +4 -0
- package/dist/cjs/{index-4506fcd7.js → index-d321de96.js} +1 -1
- package/dist/cjs/{input-template-e084bbd6.js → input-template-df664530.js} +8 -8
- package/dist/cjs/{is-load-decorator-137dded1.js → is-load-decorator-15036f37.js} +3 -2
- package/dist/cjs/{json-parse-decarator-4109072c.js → json-parse-decarator-6fc25e8b.js} +2 -2
- package/dist/cjs/{label-template-4d5f99a5.js → label-template-80235581.js} +5 -5
- package/dist/cjs/loader.cjs.js +5 -3
- package/dist/cjs/{number-helper-74aaf353.js → number-helper-503ec94b.js} +1 -1
- package/dist/cjs/old-bcm-popover-box.cjs.entry.js +11 -10
- package/dist/cjs/old-bcm-popover.cjs.entry.js +9 -8
- package/dist/cjs/package-f2f16e36.js +9 -0
- package/dist/cjs/{popover-placement-ccb40073.js → popover-placement-f20020a6.js} +1 -1
- package/dist/cjs/{slot-template-d70ea082.js → slot-template-873b0cd5.js} +2 -2
- package/dist/cjs/{stepper-states-200cd290.js → stepper-states-7cd499d8.js} +3 -3
- package/dist/cjs/{string-helper-d681e5c7.js → string-helper-fda7cbba.js} +5 -5
- package/dist/cjs/{tooltip-helper-78dc5455.js → tooltip-helper-84c3e624.js} +22 -15
- package/dist/cjs/{validators-bb44ca0c.js → validators-9f203109.js} +6 -1
- package/dist/cjs/watermark-2c23c8f1.js +47499 -0
- package/dist/collection/assets/csv.svg +9 -0
- package/dist/collection/assets/excel.svg +9 -0
- package/dist/collection/assets/pdf.svg +9 -0
- package/dist/collection/collection-manifest.json +5 -2
- package/dist/collection/components/atoms/avatar/avatar.js +94 -81
- package/dist/collection/components/atoms/avatar/avatar.style.js +42 -0
- package/dist/collection/components/atoms/badge/badge.js +30 -90
- package/dist/collection/components/atoms/badge/badge.style.js +51 -0
- package/dist/collection/components/atoms/button/button.css +55 -0
- package/dist/collection/components/atoms/button/button.js +1 -1
- package/dist/collection/components/atoms/icon/icon.js +4 -3
- package/dist/collection/{assets/icon → components/atoms/icon/static}/message-bot.svg +2 -2
- package/dist/collection/components/molecules/dropdown/dropdown.js +1 -1
- package/dist/collection/components/molecules/input/input.js +4 -6
- package/dist/collection/components/molecules/input-dropdown/input-dropdown.css +291 -0
- package/dist/collection/components/molecules/input-dropdown/input-dropdown.js +751 -0
- package/dist/collection/components/molecules/input-dropdown/input-dropdown.style.js +73 -0
- package/dist/collection/components/molecules/items/items.js +1 -1
- package/dist/collection/components/molecules/linked/linked.js +17 -29
- package/dist/collection/components/molecules/menu/menu.js +1 -0
- package/dist/collection/components/molecules/popconfirm/popconfirm.js +1 -1
- package/dist/collection/components/molecules/popover/popover.js +2 -2
- package/dist/collection/components/molecules/tab-group/tab-group.js +5 -1
- package/dist/collection/components/molecules/tab-group/tab-item-header.js +11 -26
- package/dist/collection/components/molecules/tooltip/tooltip.js +2 -2
- package/dist/collection/components/organism/date-picker/date-picker.css +1 -1
- package/dist/collection/components/organism/date-picker/date-picker.js +20 -1
- package/dist/collection/components/organism/datetime-picker/datetime-picker.css +13 -1
- package/dist/collection/components/organism/datetime-picker/datetime-picker.js +36 -2
- package/dist/collection/components/organism/form/form.js +1 -0
- package/dist/collection/components/organism/form-2/bcm-form-components.js +4 -1
- package/dist/collection/components/organism/list/list.css +1 -1
- package/dist/collection/components/organism/list/list.js +63 -22
- package/dist/collection/components/organism/time-picker/time-picker.css +1 -1
- package/dist/collection/components/organism/time-picker/time-picker.js +20 -1
- package/dist/collection/components/other/toast/toast.js +48 -11
- package/dist/collection/components/other/typography/typography.js +1 -1
- package/dist/collection/components/other_deprecated/old-popover/old-popover.js +1 -1
- package/dist/collection/components/third-parts/rc-picker/date.js +862 -0
- package/dist/collection/components/third-parts/rc-picker/rc-picker.css +1009 -0
- package/dist/collection/components/third-parts/rc-picker/rc-picker.js +550 -0
- package/dist/collection/components/third-parts/table/table-definations.js +42 -0
- package/dist/collection/components/third-parts/table/table.css +136 -0
- package/dist/collection/components/third-parts/table/table.js +288 -0
- package/dist/collection/decorators/bcm-decorator.js +28 -0
- package/dist/collection/decorators/event-decorator.js +31 -0
- package/dist/collection/decorators/index.js +1 -0
- package/dist/collection/decorators/is-load-decorator.js +2 -1
- package/dist/collection/global/global.js +19 -5
- package/dist/collection/global/helper/toast.js +1 -0
- package/dist/collection/global/helper/toast.ts +2 -0
- package/dist/collection/helper/color-helper.js +27 -1
- package/dist/collection/helper/generate.js +54 -4
- package/dist/collection/helper/popover-helper.js +13 -9
- package/dist/collection/helper/string-helper.js +2 -2
- package/dist/collection/helper/tooltip-helper.js +12 -4
- package/dist/collection/models/bcm.js +29 -27
- package/dist/collection/templates/index.js +2 -0
- package/dist/collection/templates/toolbar-hamburger-template.js +14 -0
- package/dist/collection/templates/toolbar-template.js +15 -0
- package/dist/components/_commonjsHelpers.js +16 -1
- package/dist/components/avatar.js +93 -52
- package/dist/components/badge.js +77 -45
- package/dist/components/bcm-chip-group.js +14 -8
- package/dist/components/bcm-date-picker.js +4 -2
- package/dist/components/bcm-date.d.ts +11 -0
- package/dist/components/bcm-date.js +232 -0
- package/dist/components/bcm-form-2.js +4 -1
- package/dist/components/bcm-form.js +1 -0
- package/dist/components/bcm-input-dropdown.d.ts +11 -0
- package/dist/components/bcm-input-dropdown.js +395 -0
- package/dist/components/bcm-items.js +1 -1
- package/dist/components/bcm-popover.js +14 -10
- package/dist/components/bcm-rc-picker.d.ts +11 -0
- package/dist/components/bcm-rc-picker.js +10 -0
- package/dist/components/bcm-tab-group.js +5 -1
- package/dist/components/bcm-tab-item-header.js +11 -26
- package/dist/components/bcm-table.js +55128 -41
- package/dist/components/bcm-textarea.js +1 -214
- package/dist/components/bcm-time-picker.js +4 -2
- package/dist/components/bcm-toast.js +30 -10
- package/dist/components/bcm.js +29 -27
- package/dist/components/button.js +1 -1
- package/dist/components/chip.js +12 -6
- package/dist/components/color-helper.js +27 -1
- package/dist/components/colors2.js +1 -1
- package/dist/components/datetime-picker.js +20 -3
- package/dist/components/generate.js +57 -7
- package/dist/components/icon.js +4 -3
- package/dist/components/index.d.ts +4 -1
- package/dist/components/index.js +17 -3
- package/dist/components/index3.js +5 -1
- package/dist/components/index5.js +2569 -0
- package/dist/components/input.js +4 -6
- package/dist/components/is-load-decorator.js +2 -1
- package/dist/components/linked.js +17 -11
- package/dist/components/list.js +22 -8
- package/dist/components/menu.js +1 -0
- package/dist/components/raf.js +1594 -0
- package/dist/components/rc-overflow.js +32 -1557
- package/dist/components/rc-picker.js +14030 -0
- package/dist/components/string-helper.js +2 -2
- package/dist/components/textarea.js +220 -0
- package/dist/components/tooltip-helper.js +12 -4
- package/dist/components/tooltip.js +1 -1
- package/dist/components/typography.js +1 -1
- package/dist/esm/{_commonjsHelpers-3016b722.js → _commonjsHelpers-7002e5de.js} +16 -1
- package/dist/esm/bcm-accordion.entry.js +5 -4
- package/dist/esm/bcm-alert.entry.js +9 -8
- package/dist/esm/bcm-attendance.entry.js +5 -4
- package/dist/esm/bcm-autocomplete.entry.js +3 -3
- package/dist/esm/bcm-avatar_2.entry.js +204 -0
- package/dist/esm/bcm-box.entry.js +1 -1
- package/dist/esm/bcm-breadcrumb.entry.js +6 -5
- package/dist/esm/bcm-button-group.entry.js +8 -7
- package/dist/esm/{bcm-avatar_15.entry.js → bcm-button_15.entry.js} +17114 -5485
- package/dist/esm/bcm-card.entry.js +10 -9
- package/dist/esm/bcm-checkbox-group.entry.js +12 -11
- package/dist/esm/bcm-checkbox-lite_9.entry.js +7 -6
- package/dist/esm/bcm-checkbox_2.entry.js +13 -12
- package/dist/esm/bcm-chip-group.entry.js +124 -0
- package/dist/esm/bcm-chip.entry.js +87 -0
- package/dist/esm/bcm-collapse-group.entry.js +1 -1
- package/dist/esm/bcm-collapse.entry.js +6 -5
- package/dist/esm/bcm-color-input.entry.js +10 -10
- package/dist/esm/bcm-colorpicker.entry.js +3 -3
- package/dist/esm/bcm-content.entry.js +1 -1
- package/dist/esm/{bcm-9f50af9c.js → bcm-d45dc47d.js} +30 -28
- package/dist/esm/bcm-default.entry.js +5 -4
- package/dist/esm/bcm-drawer.entry.js +11 -11
- package/dist/esm/bcm-dropdown.entry.js +9 -8
- package/dist/esm/bcm-error-layout.entry.js +3 -3
- package/dist/esm/bcm-expansion-panel.entry.js +9 -8
- package/dist/esm/bcm-form-group.entry.js +1 -1
- package/dist/esm/bcm-input-custom.entry.js +6 -5
- package/dist/esm/bcm-input-dropdown.entry.js +305 -0
- package/dist/esm/bcm-item.entry.js +8 -7
- package/dist/esm/bcm-items.entry.js +8 -7
- package/dist/esm/bcm-link.entry.js +4 -4
- package/dist/esm/bcm-list_3.entry.js +2498 -0
- package/dist/esm/bcm-menu.entry.js +15 -14
- package/dist/esm/bcm-message.entry.js +3 -3
- package/dist/esm/bcm-modal-2-footer.entry.js +11 -11
- package/dist/esm/bcm-modal-2-header.entry.js +10 -10
- package/dist/esm/bcm-modal-2.entry.js +11 -11
- package/dist/esm/bcm-modal.entry.js +9 -8
- package/dist/esm/bcm-notification.entry.js +3 -3
- package/dist/esm/bcm-old-tag_2.entry.js +3 -3
- package/dist/esm/bcm-overlay_2.entry.js +4 -4
- package/dist/esm/bcm-popconfirm-box.entry.js +10 -9
- package/dist/esm/bcm-popconfirm.entry.js +7 -6
- package/dist/esm/bcm-popover.entry.js +25 -21
- package/dist/esm/bcm-progress.entry.js +8 -7
- package/dist/esm/bcm-radio-group.entry.js +13 -13
- package/dist/esm/bcm-radio.entry.js +11 -11
- package/dist/esm/bcm-range.entry.js +7 -6
- package/dist/esm/bcm-result.entry.js +3 -3
- package/dist/esm/bcm-select-group.entry.js +3 -3
- package/dist/esm/bcm-select-option.entry.js +3 -3
- package/dist/esm/bcm-select.entry.js +5 -5
- package/dist/esm/bcm-skeleton.entry.js +5 -4
- package/dist/esm/bcm-step.entry.js +8 -7
- package/dist/esm/bcm-stepper.entry.js +13 -13
- package/dist/esm/bcm-switch.entry.js +9 -8
- package/dist/esm/bcm-tab-group.entry.js +15 -11
- package/dist/esm/bcm-tab-item-header.entry.js +22 -37
- package/dist/esm/bcm-tab-item.entry.js +10 -10
- package/dist/esm/bcm-tab-pane.entry.js +3 -3
- package/dist/esm/bcm-tab.entry.js +3 -3
- package/dist/esm/bcm-table.entry.js +7649 -39
- package/dist/esm/bcm-tabs-content.entry.js +3 -3
- package/dist/esm/bcm-tabs.entry.js +3 -3
- package/dist/esm/bcm-tag.entry.js +8 -7
- package/dist/esm/bcm-text.entry.js +8 -8
- package/dist/esm/bcm-textarea.entry.js +10 -9
- package/dist/esm/bcm-timeline-item.entry.js +3 -3
- package/dist/esm/bcm-timeline.entry.js +3 -3
- package/dist/esm/bcm-toast.entry.js +37 -17
- package/dist/esm/bcm-treeview-group.entry.js +1 -1
- package/dist/esm/bromcom-ui.js +6 -4
- package/dist/esm/{caption-template-34a1cb44.js → caption-template-d47f338f.js} +2 -2
- package/dist/esm/{color-helper-e8ce23d7.js → color-helper-845ba523.js} +28 -2
- package/dist/esm/{colors-44c95e7e.js → colors-ebea297f.js} +1 -1
- package/dist/esm/{floating-ui-e7341329.js → floating-ui-8a0c54d6.js} +1 -1
- package/dist/esm/{generate-1d92d93f.js → generate-57891049.js} +56 -7
- package/dist/esm/global-8776af02.js +25 -0
- package/dist/esm/{index-ed9652af.js → index-00c8a8f7.js} +1 -1
- package/dist/esm/{index-348b16ad.js → index-0615c2b8.js} +3 -1
- package/dist/esm/index-3bc8c6e3.js +2569 -0
- package/dist/esm/{index-0052017c.js → index-7e71bbc8.js} +1 -1
- package/dist/esm/index-e4b6a4ce.js +2127 -0
- package/dist/esm/{input-template-56856d9f.js → input-template-4fa1fd77.js} +4 -4
- package/dist/esm/{is-load-decorator-07d3502a.js → is-load-decorator-8277e3b8.js} +3 -2
- package/dist/esm/{json-parse-decarator-e7df9b9c.js → json-parse-decarator-7b5467e6.js} +2 -2
- package/dist/esm/{label-template-98dafeb3.js → label-template-946d4062.js} +4 -4
- package/dist/esm/loader.js +6 -4
- package/dist/esm/{number-helper-81eade81.js → number-helper-be8c3021.js} +1 -1
- package/dist/esm/old-bcm-popover-box.entry.js +11 -10
- package/dist/esm/old-bcm-popover.entry.js +7 -6
- package/dist/esm/package-9a6c49c8.js +7 -0
- package/dist/esm/{popover-placement-78f86f15.js → popover-placement-be68c848.js} +1 -1
- package/dist/esm/{slot-template-672e941d.js → slot-template-fcc7846e.js} +2 -2
- package/dist/esm/{stepper-states-0f148601.js → stepper-states-a8cd98ea.js} +3 -3
- package/dist/esm/{string-helper-6bd24967.js → string-helper-b0e05041.js} +4 -4
- package/dist/esm/{tooltip-helper-4ca9442e.js → tooltip-helper-4a1a3abe.js} +19 -12
- package/dist/esm/{validators-7e3c0c33.js → validators-37ce5ff0.js} +6 -2
- package/dist/esm/watermark-f2c6a1f9.js +47477 -0
- package/dist/types/components/atoms/avatar/avatar.d.ts +6 -10
- package/dist/types/components/atoms/avatar/avatar.style.d.ts +181 -0
- package/dist/types/components/atoms/badge/badge.d.ts +3 -7
- package/dist/types/components/atoms/badge/badge.style.d.ts +174 -0
- package/dist/types/components/molecules/input-dropdown/input-dropdown.d.ts +51 -0
- package/dist/types/components/molecules/input-dropdown/input-dropdown.style.d.ts +307 -0
- package/dist/types/components/molecules/linked/linked.d.ts +2 -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 +2 -0
- package/dist/types/components/organism/list/list.d.ts +4 -0
- package/dist/types/components/organism/time-picker/time-picker.d.ts +1 -0
- package/dist/types/components/other/toast/toast.d.ts +2 -0
- package/dist/types/components/third-parts/rc-picker/date.d.ts +175 -0
- package/dist/types/components/third-parts/rc-picker/rc-picker.d.ts +47 -0
- package/dist/types/components/third-parts/table/table-definations.d.ts +28 -0
- package/dist/types/components/third-parts/table/table.d.ts +37 -0
- package/dist/types/components.d.ts +255 -16
- package/dist/types/decorators/bcm-decorator.d.ts +2 -0
- package/dist/types/decorators/event-decorator.d.ts +2 -0
- package/dist/types/decorators/index.d.ts +1 -0
- package/dist/types/global/helper/toast.d.ts +2 -0
- package/dist/types/helper/color-helper.d.ts +22 -2
- package/dist/types/helper/generate.d.ts +21 -1
- package/dist/types/helper/popover-helper.d.ts +0 -5
- package/dist/types/helper/tooltip-helper.d.ts +0 -1
- package/dist/types/models/bcm.d.ts +256 -236
- package/dist/types/templates/index.d.ts +2 -0
- package/dist/types/templates/toolbar-hamburger-template.d.ts +12 -0
- package/dist/types/templates/toolbar-template.d.ts +13 -0
- package/helper/toast.d.ts +2 -0
- package/helper/toast.d.ts.map +1 -1
- package/helper/toast.js +1 -0
- package/package.json +15 -6
- package/dist/bromcom-ui/p-013cab7e.entry.js +0 -5
- package/dist/bromcom-ui/p-086b7209.entry.js +0 -5
- package/dist/bromcom-ui/p-09fb72c8.entry.js +0 -19
- package/dist/bromcom-ui/p-10c75cb9.entry.js +0 -5
- package/dist/bromcom-ui/p-1246d793.entry.js +0 -5
- package/dist/bromcom-ui/p-1992f372.entry.js +0 -5
- package/dist/bromcom-ui/p-21fbc7e9.entry.js +0 -5
- package/dist/bromcom-ui/p-254c9a65.entry.js +0 -5
- package/dist/bromcom-ui/p-2640e867.entry.js +0 -5
- package/dist/bromcom-ui/p-2c95ea4e.entry.js +0 -5
- package/dist/bromcom-ui/p-2d90806c.entry.js +0 -5
- package/dist/bromcom-ui/p-2fc1a879.js +0 -5
- package/dist/bromcom-ui/p-30a3320f.entry.js +0 -5
- package/dist/bromcom-ui/p-3be85482.entry.js +0 -5
- package/dist/bromcom-ui/p-4d80d43d.entry.js +0 -5
- package/dist/bromcom-ui/p-4f8b00bc.entry.js +0 -5
- package/dist/bromcom-ui/p-4fb382d4.entry.js +0 -5
- package/dist/bromcom-ui/p-4ffd862d.entry.js +0 -5
- package/dist/bromcom-ui/p-54c0916c.js +0 -5
- package/dist/bromcom-ui/p-5a666fa2.entry.js +0 -5
- package/dist/bromcom-ui/p-60d506ec.entry.js +0 -5
- package/dist/bromcom-ui/p-626a65e9.js +0 -5
- package/dist/bromcom-ui/p-6ae7abc5.entry.js +0 -5
- package/dist/bromcom-ui/p-6d7fe687.js +0 -6
- package/dist/bromcom-ui/p-6f56f8ca.js +0 -5
- package/dist/bromcom-ui/p-74b2d896.js +0 -5
- package/dist/bromcom-ui/p-75985eee.entry.js +0 -5
- package/dist/bromcom-ui/p-772a214f.js +0 -5
- package/dist/bromcom-ui/p-7d9ac287.entry.js +0 -5
- package/dist/bromcom-ui/p-843905c8.js +0 -5
- package/dist/bromcom-ui/p-8b85e07e.entry.js +0 -5
- package/dist/bromcom-ui/p-8c9d109c.entry.js +0 -5
- package/dist/bromcom-ui/p-8df71f89.js +0 -5
- package/dist/bromcom-ui/p-92030c09.entry.js +0 -5
- package/dist/bromcom-ui/p-a24f0a35.js +0 -5
- package/dist/bromcom-ui/p-a429e85b.js +0 -5
- package/dist/bromcom-ui/p-a56e8c98.js +0 -5
- package/dist/bromcom-ui/p-a9ae49af.entry.js +0 -5
- package/dist/bromcom-ui/p-af79c33b.entry.js +0 -5
- package/dist/bromcom-ui/p-b838f085.entry.js +0 -5
- package/dist/bromcom-ui/p-bca6437e.entry.js +0 -5
- package/dist/bromcom-ui/p-c43622d4.entry.js +0 -5
- package/dist/bromcom-ui/p-c49d038e.js +0 -5
- package/dist/bromcom-ui/p-c773080c.entry.js +0 -5
- package/dist/bromcom-ui/p-cacd60e0.entry.js +0 -5
- package/dist/bromcom-ui/p-d50efcac.entry.js +0 -5
- package/dist/bromcom-ui/p-d65a1e21.js +0 -11
- package/dist/bromcom-ui/p-d6953024.js +0 -5
- package/dist/bromcom-ui/p-d9211598.entry.js +0 -5
- package/dist/bromcom-ui/p-dc0cd6dc.entry.js +0 -5
- package/dist/bromcom-ui/p-e4045493.entry.js +0 -5
- package/dist/bromcom-ui/p-e8578e1b.entry.js +0 -5
- package/dist/bromcom-ui/p-f316a3df.entry.js +0 -5
- package/dist/bromcom-ui/p-f4defa95.entry.js +0 -5
- package/dist/bromcom-ui/p-fc0e0762.entry.js +0 -5
- package/dist/bromcom-ui/p-ff4fb57e.entry.js +0 -5
- package/dist/cjs/bcm-date-picker.cjs.entry.js +0 -180
- package/dist/cjs/bcm-datetime-picker.cjs.entry.js +0 -1434
- package/dist/cjs/bcm-form-2.cjs.entry.js +0 -208
- package/dist/cjs/bcm-old-input.cjs.entry.js +0 -397
- package/dist/cjs/bcm-time-picker.cjs.entry.js +0 -148
- package/dist/cjs/datetime-helper-eaf4fadb.js +0 -11
- package/dist/cjs/global-b0d21446.js +0 -15
- package/dist/collection/components/atoms/avatar/avatar.css +0 -198
- package/dist/collection/components/atoms/badge/badge.css +0 -231
- package/dist/collection/components/other/data-table/table.css +0 -130
- package/dist/collection/components/other/data-table/table.js +0 -88
- package/dist/esm/bcm-date-picker.entry.js +0 -176
- package/dist/esm/bcm-datetime-picker.entry.js +0 -1430
- package/dist/esm/bcm-form-2.entry.js +0 -204
- package/dist/esm/bcm-old-input.entry.js +0 -393
- package/dist/esm/bcm-time-picker.entry.js +0 -144
- package/dist/esm/datetime-helper-df25808a.js +0 -9
- package/dist/esm/global-4fad925b.js +0 -13
- package/dist/types/components/other/data-table/table.d.ts +0 -8
|
@@ -105,10 +105,10 @@ StringHelper.slugify = (str) => slugify(str, {
|
|
|
105
105
|
trim: false, // trim leading and trailing replacement chars, defaults to `true`
|
|
106
106
|
});
|
|
107
107
|
StringHelper.highlight = (str, search) => {
|
|
108
|
-
const searchText = search;
|
|
109
|
-
const regex = new RegExp(searchText, 'gi');
|
|
110
108
|
let text = str;
|
|
111
109
|
text = text.replace(/(<mark>|<\/mark>)/gim, '');
|
|
110
|
+
const escapedSearch = search.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&'); // Özel karakterleri kaçış dizileri ile kaçır
|
|
111
|
+
const regex = new RegExp(escapedSearch, 'gi');
|
|
112
112
|
const newText = text.replace(regex, '<mark>$&</mark>');
|
|
113
113
|
return newText;
|
|
114
114
|
};
|
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Stencil
|
|
3
|
+
* Copyright (c) Bromcom.
|
|
4
|
+
*/
|
|
5
|
+
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
6
|
+
import { c as classnames } from './index2.js';
|
|
7
|
+
import { I as IsLoad } from './is-load-decorator.js';
|
|
8
|
+
import { G as Generate } from './generate.js';
|
|
9
|
+
import { B as Bcm } from './bcm.js';
|
|
10
|
+
import { C as CaptionTemplate } from './caption-template.js';
|
|
11
|
+
import { I as InputTemplate } from './input-template.js';
|
|
12
|
+
import { d as delay } from './utils.js';
|
|
13
|
+
import { d as defineCustomElement$3 } from './icon.js';
|
|
14
|
+
import { d as defineCustomElement$2 } from './label.js';
|
|
15
|
+
import { d as defineCustomElement$1 } from './tooltip.js';
|
|
16
|
+
|
|
17
|
+
var ResizeType;
|
|
18
|
+
(function (ResizeType) {
|
|
19
|
+
ResizeType["none"] = "none";
|
|
20
|
+
ResizeType["both"] = "both";
|
|
21
|
+
ResizeType["horizontal"] = "horizontal";
|
|
22
|
+
ResizeType["vertical"] = "vertical";
|
|
23
|
+
ResizeType["initial"] = "initial";
|
|
24
|
+
ResizeType["inherit"] = "inherit";
|
|
25
|
+
})(ResizeType || (ResizeType = {}));
|
|
26
|
+
|
|
27
|
+
const textareaCss = "@import url(\"https://fonts.googleapis.com/css?family=Roboto:400,500\");@import url(\"https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap\"); @import url(\"https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap\"); @import url(\"https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap\"); .size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}*{box-sizing:border-box}.bcm-caption-area{font-family:\"Inter\", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;font-size:12px;line-height:calc(12px + 8px);color:var(--bcm-new-ds-color-slate-400);display:flex;flex-direction:row;align-items:flex-start;justify-content:space-between;flex-wrap:nowrap;margin-top:2px}.bcm-caption-area__text{color:var(--bcm-new-ds-color-slate-400)}.bcm-caption-area__text.default{color:var(--bcm-new-ds-color-slate-400)}.bcm-caption-area__text.info{color:var(--bcm-new-ds-color-blue-500)}.bcm-caption-area__text.success{color:var(--bcm-new-ds-color-emerald-500)}.bcm-caption-area__text.warning{color:var(--bcm-new-ds-color-amber-500)}.bcm-caption-area__text.error{color:var(--bcm-new-ds-color-red-500)}.bcm-caption-area__size-small{font-size:10px;line-height:calc(10px + 8px);min-height:calc(10px + 8px)}.bcm-caption-area__size-medium{font-size:12px;line-height:calc(12px + 8px);min-height:calc(12px + 8px)}.bcm-caption-area__size-large{font-size:14px;line-height:calc(14px + 8px);min-height:calc(14px + 8px)}*{box-sizing:border-box}.bcm-label{display:inline-flex;align-items:flex-start;grid-gap:2px}.bcm-label__text{margin-bottom:2px;font-family:\"Inter\", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;display:inline-block;color:var(--bcm-new-ds-color-slate-600)}.bcm-label__size-small{font-size:10px;line-height:calc(10px + 8px);min-height:calc(10px + 8px)}.bcm-label__size-medium{font-size:12px;line-height:calc(12px + 8px);min-height:calc(12px + 8px)}.bcm-label__size-large{font-size:14px;line-height:calc(14px + 8px);min-height:calc(14px + 8px)}.bcm-input[no-margin]{margin:0}.bcm-textarea[no-margin]{margin:0}.bcm-switch[no-margin]{margin:0}.bcm-checkbox[no-margin]{margin:0}.bcm-radio-group[no-margin]{margin:0}.bcm-checkbox-group[no-margin]{margin:0}.bcm-range[no-margin]{margin:0}.bcm-form[no-margin]{margin:0}.bcm-form-group[no-margin]{margin:0}.bcm-list[no-margin]{margin:0}.bcm-colorpicker[no-margin]{margin:0}.bcm-date-picker[no-margin]{margin:0}.bcm-time-picker[no-margin]{margin:0}.bcm-datetime-picker[no-margin]{margin:0}.bcm-select[no-margin]{margin:0}.bcm-listbox[no-margin]{margin:0}*{box-sizing:border-box}.bcm-input{display:inline-flex;flex-direction:column;width:100%;max-width:256px;margin-bottom:8px}.bcm-input.full-width{max-width:100%}.bcm-input.hidden{display:none}.bcm-input__container{font-family:\"Inter\", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;display:flex;align-items:stretch;flex-direction:row;background-color:var(--bcm-new-ds-color-white);border:1px solid var(--bcm-new-ds-color-slate-300);border-radius:4px;box-sizing:border-box;cursor:text;padding:0 0 0 4px;position:relative;width:100%}.bcm-input__container.disabled{background-color:var(--bcm-new-ds-color-slate-50);cursor:not-allowed}.bcm-input__container.disabled .bcm-input-element{color:var(--bcm-new-ds-color-slate-500)}.bcm-input__container.readonly{background-color:var(--bcm-new-ds-color-slate-50);cursor:default}.bcm-input__container.readonly .bcm-input-element{color:var(--bcm-new-ds-color-slate-600)}.bcm-input__container:not(.disabled):hover .caret-container,.bcm-input__container:not(.disabled).focused .caret-container{opacity:1}.bcm-input__container:not(.disabled):hover .input-clear-button,.bcm-input__container:not(.disabled).focused .input-clear-button{opacity:1}.bcm-input__container:not(.disabled).focused{background-color:var(--bcm-new-ds-color-slate-50)}.bcm-input__container:not(.disabled):hover{border-color:var(--bcm-color-prime-blue-6)}.bcm-input__container.empty .input-clear-button{display:none}.bcm-input__container.invalid,.bcm-input__container.error{border-color:var(--bcm-new-ds-color-red-500)}.bcm-input__container .bcm-input-element{width:100%;color:var(--bcm-new-ds-color-slate-600);flex:1;border:none;background:transparent;box-shadow:unset;padding:0 4px;font-family:\"Inter\", sans-serif;cursor:inherit;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;overflow:hidden;text-overflow:ellipsis}.bcm-input__container .bcm-input-element::placeholder{font-family:\"Inter\", sans-serif;color:var(--bcm-new-ds-color-slate-300);user-select:none}.bcm-input__container .bcm-input-element::-webkit-search-decoration,.bcm-input__container .bcm-input-element::-webkit-search-cancel-button,.bcm-input__container .bcm-input-element::-webkit-search-results-button,.bcm-input__container .bcm-input-element::-webkit-search-results-decoration,.bcm-input__container .bcm-input-element::-webkit-calendar-picker-indicator,.bcm-input__container .bcm-input-element::-webkit-inner-spin-button,.bcm-input__container .bcm-input-element::-webkit-outer-spin-button{-webkit-appearance:none}.bcm-input__container .caret-container{width:30px;display:flex;flex-direction:column;justify-content:center;align-items:stretch;border-left:1px solid #D9D9D9;transition:0.2s opacity;user-select:none;box-sizing:border-box}.bcm-input__container .caret-container .bcm-input-caret{display:flex;align-items:center;justify-content:center;color:var(--bcm-color-grey-7);cursor:pointer;flex:1}.bcm-input__container .caret-container .bcm-input-caret bcm-icon{line-height:1}.bcm-input__container .caret-container .bcm-input-caret:hover{color:var(--bcm-color-prime-blue-6)}.bcm-input__container .caret-container .bcm-input-caret:active{background-color:var(--bcm-color-grey-3)}.bcm-input__container .caret-container .bcm-input-caret:last-child{border-top:1px solid #D9D9D9}.bcm-input__container .caret-container.disabled{background-color:var(--bcm-color-grey-3)}.bcm-input__container .caret-container.disabled .bcm-input-caret{cursor:not-allowed}.bcm-input__container .input-suffix-content{display:flex;align-items:center;justify-content:center}.bcm-input__container .input-prefix:not(:empty){padding-left:4px}.bcm-input__container .input-suffix:not(:empty){min-width:24px;padding-right:4px}.bcm-input__container .input-prefix:not(:empty),.bcm-input__container .input-suffix:not(:empty){display:flex;align-items:center;justify-content:center;cursor:default;color:#64748a}.bcm-input__container .input-prefix:not(:empty) .unit-prefix,.bcm-input__container .input-suffix:not(:empty) .unit-prefix{color:#64748a}.bcm-input__container .input-prefix-button:not(:empty),.bcm-input__container .input-suffix-button:not(:empty){cursor:pointer}.bcm-input__container .caret-container,.bcm-input__container .input-clear-button{opacity:0}.bcm-input__container--small{font-size:12px}.bcm-input__container--medium{font-size:14px}.bcm-input__container--large{font-size:16px}.bcm-input__textarea.clearable .bcm-input-element{padding-right:24px}.bcm-input__textarea .input-clear-button{position:absolute;top:4px;right:0}";
|
|
28
|
+
|
|
29
|
+
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
30
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
31
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
32
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
33
|
+
else
|
|
34
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
35
|
+
if (d = decorators[i])
|
|
36
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
37
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
38
|
+
};
|
|
39
|
+
const BcmTextarea = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
40
|
+
constructor() {
|
|
41
|
+
super();
|
|
42
|
+
this.__registerHost();
|
|
43
|
+
this.focus = createEvent(this, "bcm-focus", 7);
|
|
44
|
+
this.blur = createEvent(this, "bcm-blur", 7);
|
|
45
|
+
this.clear = createEvent(this, "bcm-clear", 7);
|
|
46
|
+
this.change = createEvent(this, "bcm-change", 7);
|
|
47
|
+
this.input = createEvent(this, "bcm-input", 7);
|
|
48
|
+
this._id = Generate.UID();
|
|
49
|
+
this._internal_id = Generate.UID();
|
|
50
|
+
this.hidden = false;
|
|
51
|
+
this.value = undefined;
|
|
52
|
+
this.placeholder = undefined;
|
|
53
|
+
this.label = undefined;
|
|
54
|
+
this.name = undefined;
|
|
55
|
+
this.required = false;
|
|
56
|
+
this.caption = undefined;
|
|
57
|
+
this.noCaption = false;
|
|
58
|
+
this.captionError = undefined;
|
|
59
|
+
this.captionType = Bcm.Status.default;
|
|
60
|
+
this.rows = 3;
|
|
61
|
+
this.size = Bcm.Size.medium;
|
|
62
|
+
this.disabled = undefined;
|
|
63
|
+
this.readonly = false;
|
|
64
|
+
this.clearable = undefined;
|
|
65
|
+
this.resize = ResizeType.vertical;
|
|
66
|
+
this.fullWidth = false;
|
|
67
|
+
this.maxLength = undefined;
|
|
68
|
+
this.focused = false;
|
|
69
|
+
this.captionCache = undefined;
|
|
70
|
+
this.captionTypeCache = undefined;
|
|
71
|
+
}
|
|
72
|
+
connectedCallback() {
|
|
73
|
+
this.captionCache = this.caption;
|
|
74
|
+
this.captionTypeCache = this.captionType;
|
|
75
|
+
}
|
|
76
|
+
async onBcmFocus() {
|
|
77
|
+
this.textarea.focus();
|
|
78
|
+
}
|
|
79
|
+
async onBcmBlur() {
|
|
80
|
+
this.textarea.blur();
|
|
81
|
+
}
|
|
82
|
+
async onBcmSelect() {
|
|
83
|
+
this.textarea.select();
|
|
84
|
+
}
|
|
85
|
+
async set(data) {
|
|
86
|
+
await this.setValue(data);
|
|
87
|
+
}
|
|
88
|
+
async get() {
|
|
89
|
+
return this.value || null;
|
|
90
|
+
}
|
|
91
|
+
async setValue(value) {
|
|
92
|
+
this.textarea.value = value;
|
|
93
|
+
this.value = value;
|
|
94
|
+
this.handleChange();
|
|
95
|
+
return value;
|
|
96
|
+
}
|
|
97
|
+
async setClear() {
|
|
98
|
+
this.textarea.value = '';
|
|
99
|
+
this.value = '';
|
|
100
|
+
await delay(10);
|
|
101
|
+
return Promise.resolve();
|
|
102
|
+
}
|
|
103
|
+
async resetCaption() {
|
|
104
|
+
await delay(10);
|
|
105
|
+
this.caption = this.captionCache;
|
|
106
|
+
this.captionType = this.captionTypeCache;
|
|
107
|
+
this.captionError = null;
|
|
108
|
+
await delay(10);
|
|
109
|
+
return Promise.resolve();
|
|
110
|
+
}
|
|
111
|
+
async getValue() {
|
|
112
|
+
return this.value;
|
|
113
|
+
}
|
|
114
|
+
watchValue(newValue) {
|
|
115
|
+
this.textarea.value = newValue;
|
|
116
|
+
this.handleChange();
|
|
117
|
+
}
|
|
118
|
+
handleFocus() {
|
|
119
|
+
this.focused = true;
|
|
120
|
+
this.focus.emit();
|
|
121
|
+
}
|
|
122
|
+
handleBlur() {
|
|
123
|
+
this.focused = false;
|
|
124
|
+
this.blur.emit();
|
|
125
|
+
}
|
|
126
|
+
handleChange() {
|
|
127
|
+
this.value = this.textarea.value;
|
|
128
|
+
this.change.emit(this.value);
|
|
129
|
+
}
|
|
130
|
+
handleInput() {
|
|
131
|
+
this.value = this.textarea.value;
|
|
132
|
+
this.input.emit(this.value);
|
|
133
|
+
}
|
|
134
|
+
handleClear(e) {
|
|
135
|
+
this.textarea.value = '';
|
|
136
|
+
this.value = '';
|
|
137
|
+
this.clear.emit();
|
|
138
|
+
this.textarea.focus();
|
|
139
|
+
e.stopPropagation();
|
|
140
|
+
}
|
|
141
|
+
render() {
|
|
142
|
+
const { _id, hidden, readonly, fullWidth, size, rows, disabled, clearable, label, focused, noCaption, caption, captionError, captionType, value, resize, maxLength, placeholder, required } = this;
|
|
143
|
+
const hostClasses = classnames('bcm-input', {
|
|
144
|
+
hidden,
|
|
145
|
+
'full-width': fullWidth,
|
|
146
|
+
});
|
|
147
|
+
return (h(Host, { class: hostClasses }, label && h("bcm-label", { type: captionType, value: label, required: required, htmlFor: _id }), h(InputTemplate, { elementType: Bcm.HtmlElementType.textarea, id: _id, value: value, rows: rows, disabled: disabled, maxLength: maxLength, placeholder: placeholder, clearable: clearable, resize: resize, readonly: readonly, size: size, focused: focused, handleFocus: () => this.handleFocus(), handleBlur: () => this.handleBlur(), handleChange: () => this.handleChange(), handleInput: () => this.handleInput(), handleClear: (e) => this.handleClear(e), ref: (el) => this.textarea = el, captionType: captionType }), h(CaptionTemplate, { noCaption: noCaption, captionType: captionType, captionError: captionError, caption: caption, value: value, maxLength: maxLength })));
|
|
148
|
+
}
|
|
149
|
+
get el() { return this; }
|
|
150
|
+
static get watchers() { return {
|
|
151
|
+
"value": ["watchValue"]
|
|
152
|
+
}; }
|
|
153
|
+
static get style() { return textareaCss; }
|
|
154
|
+
}, [4, "bcm-textarea", {
|
|
155
|
+
"_id": [1537, "id"],
|
|
156
|
+
"_internal_id": [1025],
|
|
157
|
+
"hidden": [1028],
|
|
158
|
+
"value": [1025],
|
|
159
|
+
"placeholder": [1025],
|
|
160
|
+
"label": [1025],
|
|
161
|
+
"name": [1025],
|
|
162
|
+
"required": [1028],
|
|
163
|
+
"caption": [1025],
|
|
164
|
+
"noCaption": [1028, "no-caption"],
|
|
165
|
+
"captionError": [1025, "caption-error"],
|
|
166
|
+
"captionType": [1025, "caption-type"],
|
|
167
|
+
"rows": [1026],
|
|
168
|
+
"size": [1025],
|
|
169
|
+
"disabled": [1028],
|
|
170
|
+
"readonly": [1028],
|
|
171
|
+
"clearable": [1028],
|
|
172
|
+
"resize": [1032],
|
|
173
|
+
"fullWidth": [1028, "full-width"],
|
|
174
|
+
"maxLength": [1026, "max-length"],
|
|
175
|
+
"focused": [32],
|
|
176
|
+
"captionCache": [32],
|
|
177
|
+
"captionTypeCache": [32],
|
|
178
|
+
"onBcmFocus": [64],
|
|
179
|
+
"onBcmBlur": [64],
|
|
180
|
+
"onBcmSelect": [64],
|
|
181
|
+
"set": [64],
|
|
182
|
+
"get": [64],
|
|
183
|
+
"setValue": [64],
|
|
184
|
+
"setClear": [64],
|
|
185
|
+
"resetCaption": [64],
|
|
186
|
+
"getValue": [64]
|
|
187
|
+
}]);
|
|
188
|
+
__decorate([
|
|
189
|
+
IsLoad()
|
|
190
|
+
], BcmTextarea.prototype, "el", void 0);
|
|
191
|
+
function defineCustomElement() {
|
|
192
|
+
if (typeof customElements === "undefined") {
|
|
193
|
+
return;
|
|
194
|
+
}
|
|
195
|
+
const components = ["bcm-textarea", "bcm-icon", "bcm-label", "bcm-tooltip"];
|
|
196
|
+
components.forEach(tagName => { switch (tagName) {
|
|
197
|
+
case "bcm-textarea":
|
|
198
|
+
if (!customElements.get(tagName)) {
|
|
199
|
+
customElements.define(tagName, BcmTextarea);
|
|
200
|
+
}
|
|
201
|
+
break;
|
|
202
|
+
case "bcm-icon":
|
|
203
|
+
if (!customElements.get(tagName)) {
|
|
204
|
+
defineCustomElement$3();
|
|
205
|
+
}
|
|
206
|
+
break;
|
|
207
|
+
case "bcm-label":
|
|
208
|
+
if (!customElements.get(tagName)) {
|
|
209
|
+
defineCustomElement$2();
|
|
210
|
+
}
|
|
211
|
+
break;
|
|
212
|
+
case "bcm-tooltip":
|
|
213
|
+
if (!customElements.get(tagName)) {
|
|
214
|
+
defineCustomElement$1();
|
|
215
|
+
}
|
|
216
|
+
break;
|
|
217
|
+
} });
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
export { BcmTextarea as B, defineCustomElement as d };
|
|
@@ -22,7 +22,6 @@ class Tooltip {
|
|
|
22
22
|
}
|
|
23
23
|
this.removeListener();
|
|
24
24
|
};
|
|
25
|
-
this.bgColor = () => ColorHelper.twColor(this.color, 700);
|
|
26
25
|
this.target = () => document.getElementById(this.targetId);
|
|
27
26
|
this.sizeClass = () => {
|
|
28
27
|
switch (this.size) {
|
|
@@ -37,13 +36,22 @@ class Tooltip {
|
|
|
37
36
|
}
|
|
38
37
|
};
|
|
39
38
|
this.init = () => {
|
|
39
|
+
const { tone, colorName } = ColorHelper.parseColor(this.color, 700);
|
|
40
|
+
const dc = Generate.getTwColor({
|
|
41
|
+
color: colorName,
|
|
42
|
+
tones: {
|
|
43
|
+
[tone]: ["bg"],
|
|
44
|
+
},
|
|
45
|
+
variable: "--bcm-tooltip",
|
|
46
|
+
});
|
|
47
|
+
const style = Object.assign(Object.assign({}, dc), (dc["--bcm-tooltip-bg"] && { "--bcm-tooltip-text": ColorHelper.reverseColor(dc["--bcm-tooltip-bg"]) }));
|
|
40
48
|
this.el = Generate.createElement("div", {
|
|
41
49
|
"id": `${this.targetId}-tooltip-box`,
|
|
42
50
|
"class": `
|
|
43
|
-
tw-whitespace-normal tw-break-words tw-block tw-font-sans tw-pointer-events-none tw-max-w-xs tw-py-1 tw-px-2 tw-rounded tw-bg
|
|
51
|
+
tw-whitespace-normal tw-break-words tw-block tw-font-sans tw-pointer-events-none tw-max-w-xs tw-py-1 tw-px-2 tw-rounded tw-bg-[--bcm-tooltip-bg] tw-text-[--bcm-tooltip-text] ${this.sizeClass()} tw-absolute tw-top-0 tw-left-0 tw-z-tooltip tw-opacity-0 tw-transition-opacity tw-duration-300`,
|
|
44
52
|
"role": "tooltip",
|
|
45
53
|
"aria-hidden": "true",
|
|
46
|
-
"style":
|
|
54
|
+
"style": ColorHelper.generateStyleString(style),
|
|
47
55
|
"innerHTML": StringHelper.trim(this.message),
|
|
48
56
|
});
|
|
49
57
|
};
|
|
@@ -97,7 +105,7 @@ class Tooltip {
|
|
|
97
105
|
placement: this.placement,
|
|
98
106
|
offset: 8,
|
|
99
107
|
arrow: true,
|
|
100
|
-
arrowColor: `tw-bg
|
|
108
|
+
arrowColor: `tw-bg-[--bcm-tooltip-bg]`,
|
|
101
109
|
});
|
|
102
110
|
}
|
|
103
111
|
};
|
|
@@ -79,7 +79,7 @@ const BcmTooltip = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
79
79
|
this.tooltip.toggle();
|
|
80
80
|
}
|
|
81
81
|
render() {
|
|
82
|
-
return (h(Host, {
|
|
82
|
+
return (h(Host, { class: "tw-inline-flex tw-h-fit tw-w-fit", role: "tooltip", "aria-hidden": "true" }, h("slot", null)));
|
|
83
83
|
}
|
|
84
84
|
get el() { return this; }
|
|
85
85
|
}, [4, "bcm-tooltip", {
|
|
@@ -10,7 +10,7 @@ const BcmTypography = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
10
10
|
this.__registerHost();
|
|
11
11
|
}
|
|
12
12
|
render() {
|
|
13
|
-
return (h(Host,
|
|
13
|
+
return (h(Host, { class: "bcm-ui-element bcm-ui-content-display" }, h("slot", null)));
|
|
14
14
|
}
|
|
15
15
|
get el() { return this; }
|
|
16
16
|
}, [4, "bcm-typography"]);
|
|
@@ -18,8 +18,23 @@ function createCommonjsModule(fn, basedir, module) {
|
|
|
18
18
|
}, fn(module, module.exports), module.exports;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
+
function getAugmentedNamespace(n) {
|
|
22
|
+
if (n.__esModule) return n;
|
|
23
|
+
var a = Object.defineProperty({}, '__esModule', {value: true});
|
|
24
|
+
Object.keys(n).forEach(function (k) {
|
|
25
|
+
var d = Object.getOwnPropertyDescriptor(n, k);
|
|
26
|
+
Object.defineProperty(a, k, d.get ? d : {
|
|
27
|
+
enumerable: true,
|
|
28
|
+
get: function () {
|
|
29
|
+
return n[k];
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
});
|
|
33
|
+
return a;
|
|
34
|
+
}
|
|
35
|
+
|
|
21
36
|
function commonjsRequire () {
|
|
22
37
|
throw new Error('Dynamic requires are not currently supported by @rollup/plugin-commonjs');
|
|
23
38
|
}
|
|
24
39
|
|
|
25
|
-
export { commonjsGlobal as a, createCommonjsModule as c,
|
|
40
|
+
export { commonjsGlobal as a, getDefaultExportFromCjs as b, createCommonjsModule as c, getAugmentedNamespace as g };
|
|
@@ -2,10 +2,11 @@
|
|
|
2
2
|
* Built with Stencil
|
|
3
3
|
* Copyright (c) Bromcom.
|
|
4
4
|
*/
|
|
5
|
-
import { r as registerInstance, h, H as Host, g as getElement } from './index-
|
|
6
|
-
import { G as Generate } from './generate-
|
|
7
|
-
import './
|
|
8
|
-
import './
|
|
5
|
+
import { r as registerInstance, h, H as Host, g as getElement } from './index-0615c2b8.js';
|
|
6
|
+
import { G as Generate } from './generate-57891049.js';
|
|
7
|
+
import './package-9a6c49c8.js';
|
|
8
|
+
import './colors-ebea297f.js';
|
|
9
|
+
import './_commonjsHelpers-7002e5de.js';
|
|
9
10
|
|
|
10
11
|
const accordionCss = "@import url(\"https://fonts.googleapis.com/css?family=Roboto:400,500\");.size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}:host{display:block}";
|
|
11
12
|
|
|
@@ -2,14 +2,15 @@
|
|
|
2
2
|
* Built with Stencil
|
|
3
3
|
* Copyright (c) Bromcom.
|
|
4
4
|
*/
|
|
5
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-
|
|
6
|
-
import { G as Generate, s as snq, S as StatusProps, T as TypeProps } from './generate-
|
|
7
|
-
import { c as classnames } from './index-
|
|
8
|
-
import { c as createStore } from './index-
|
|
9
|
-
import { S as StringHelper } from './string-helper-
|
|
10
|
-
import './
|
|
11
|
-
import './
|
|
12
|
-
import './
|
|
5
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-0615c2b8.js';
|
|
6
|
+
import { G as Generate, s as snq, S as StatusProps, T as TypeProps } from './generate-57891049.js';
|
|
7
|
+
import { c as classnames } from './index-00c8a8f7.js';
|
|
8
|
+
import { c as createStore } from './index-7e71bbc8.js';
|
|
9
|
+
import { S as StringHelper } from './string-helper-b0e05041.js';
|
|
10
|
+
import './package-9a6c49c8.js';
|
|
11
|
+
import './colors-ebea297f.js';
|
|
12
|
+
import './_commonjsHelpers-7002e5de.js';
|
|
13
|
+
import './bcm-d45dc47d.js';
|
|
13
14
|
|
|
14
15
|
const { state } = createStore({
|
|
15
16
|
value: new Map(),
|
|
@@ -2,10 +2,11 @@
|
|
|
2
2
|
* Built with Stencil
|
|
3
3
|
* Copyright (c) Bromcom.
|
|
4
4
|
*/
|
|
5
|
-
import { r as registerInstance, h, H as Host, g as getElement } from './index-
|
|
6
|
-
import { G as Generate } from './generate-
|
|
7
|
-
import './
|
|
8
|
-
import './
|
|
5
|
+
import { r as registerInstance, h, H as Host, g as getElement } from './index-0615c2b8.js';
|
|
6
|
+
import { G as Generate } from './generate-57891049.js';
|
|
7
|
+
import './package-9a6c49c8.js';
|
|
8
|
+
import './colors-ebea297f.js';
|
|
9
|
+
import './_commonjsHelpers-7002e5de.js';
|
|
9
10
|
|
|
10
11
|
const attendanceCss = "@import url(\"https://fonts.googleapis.com/css?family=Roboto:400,500\");@import url(\"https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap\"); .size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}*{box-sizing:border-box}.bcm-attendance{width:fit-content;display:inline-flex;align-items:center;flex-direction:row;gap:4px}.bcm-attendance__item{display:flex;flex-direction:row;align-items:center;gap:1px}.bcm-attendance__item-am,.bcm-attendance__item-pm{display:block;width:calc( calc( 12px + 1px ) / 2 );height:calc( 12px + 1px );background-color:var(--bcm-new-ds-color-blue-500)}.bcm-attendance__item-am:hover,.bcm-attendance__item-pm:hover{background-color:var(--bcm-new-ds-color-blue-600)}.bcm-attendance__item-am{border-top-left-radius:100px;border-bottom-left-radius:100px}.bcm-attendance__item-pm{border-top-right-radius:100px;border-bottom-right-radius:100px}.bcm-attendance__item-status-present{background-color:var(--bcm-new-ds-color-emerald-500)}.bcm-attendance__item-status-present:hover{background-color:var(--bcm-new-ds-color-emerald-600)}.bcm-attendance__item-status-late{background-color:var(--bcm-new-ds-color-amber-500)}.bcm-attendance__item-status-late:hover{background-color:var(--bcm-new-ds-color-amber-600)}.bcm-attendance__item-status-absent{background-color:var(--bcm-new-ds-color-red-500)}.bcm-attendance__item-status-absent:hover{background-color:var(--bcm-new-ds-color-red-600)}.bcm-attendance__item-status-default{background-color:var(--bcm-new-ds-color-slate-300)}.bcm-attendance__item-status-default:hover{background-color:var(--bcm-new-ds-color-slate-400)}";
|
|
11
12
|
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
* Built with Stencil
|
|
3
3
|
* Copyright (c) Bromcom.
|
|
4
4
|
*/
|
|
5
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-
|
|
6
|
-
import { c as classnames } from './index-
|
|
7
|
-
import './_commonjsHelpers-
|
|
5
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-0615c2b8.js';
|
|
6
|
+
import { c as classnames } from './index-00c8a8f7.js';
|
|
7
|
+
import './_commonjsHelpers-7002e5de.js';
|
|
8
8
|
|
|
9
9
|
const autocompleteCss = "@import url(\"https://fonts.googleapis.com/css?family=Roboto:400,500\");.size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}:host{display:inline-block;width:fit-content;height:fit-content}:host(.hidden){display:none}:host(.full-width){width:100%;height:100%}:host(.full-width) .bcm-autocomplete{max-height:100%;max-width:100%}.bcm-autocomplete{background-color:var(--bcm-color-grey-1);display:flex;flex-direction:column;height:100%;width:100%;min-width:256px;max-width:256px;position:relative}.bcm-autocomplete-result{position:relative}.bcm-autocomplete-result .viewport{position:absolute;overflow:hidden;height:0;transition:height 0.3s ease;background-color:#ffffff;width:100%;z-index:10000}.bcm-autocomplete-result.open .viewport{height:256px}";
|
|
10
10
|
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Stencil
|
|
3
|
+
* Copyright (c) Bromcom.
|
|
4
|
+
*/
|
|
5
|
+
import { r as registerInstance, h, H as Host, g as getElement } from './index-0615c2b8.js';
|
|
6
|
+
import { C as ColorHelper } from './color-helper-845ba523.js';
|
|
7
|
+
import './validators-37ce5ff0.js';
|
|
8
|
+
import { G as Generate } from './generate-57891049.js';
|
|
9
|
+
import './number-helper-be8c3021.js';
|
|
10
|
+
import './string-helper-b0e05041.js';
|
|
11
|
+
import './element-dragger-89bb52fd.js';
|
|
12
|
+
import { a as Bcm } from './bcm-d45dc47d.js';
|
|
13
|
+
import { c as ce } from './index-3bc8c6e3.js';
|
|
14
|
+
import './colors-1d7854ea.js';
|
|
15
|
+
import './utils-57652744.js';
|
|
16
|
+
import './colors-ebea297f.js';
|
|
17
|
+
import './_commonjsHelpers-7002e5de.js';
|
|
18
|
+
import './package-9a6c49c8.js';
|
|
19
|
+
|
|
20
|
+
const avatarStyle = ce({
|
|
21
|
+
slots: {
|
|
22
|
+
base: "bcm-avatar bcm-ui-element bcm-ui-content-display tw-uppercase tw-inline-flex tw-items-center tw-justify-center tw-bg-[--bcm-avatar-bg] tw-text-[--bcm-avatar-text]",
|
|
23
|
+
image: "tw-w-full tw-h-full",
|
|
24
|
+
badge: "",
|
|
25
|
+
},
|
|
26
|
+
variants: {
|
|
27
|
+
size: {
|
|
28
|
+
small: "bcm-avatar__size-small tw-text-1 tw-w-6 tw-h-6",
|
|
29
|
+
medium: "bcm-avatar__size-medium tw-text-2 tw-w-8 tw-h-8",
|
|
30
|
+
large: "bcm-avatar__size-large tw-text-3 tw-w-10 tw-h-10",
|
|
31
|
+
},
|
|
32
|
+
shape: {
|
|
33
|
+
ellipse: {
|
|
34
|
+
base: "bcm-avatar__shape-ellipse tw-rounded-full",
|
|
35
|
+
image: "tw-rounded-full",
|
|
36
|
+
badge: "tw-top-0 tw-right-0",
|
|
37
|
+
},
|
|
38
|
+
square: {
|
|
39
|
+
base: "bcm-avatar__shape-square tw-rounded",
|
|
40
|
+
image: "tw-rounded",
|
|
41
|
+
badge: "tw--top-0.5 tw--right-0.5",
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
status: {
|
|
45
|
+
true: {
|
|
46
|
+
base: "bcm-avatar__status tw-relative",
|
|
47
|
+
badge: "tw-absolute",
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
defaultVariants: {
|
|
52
|
+
size: "medium",
|
|
53
|
+
shape: "ellipse",
|
|
54
|
+
status: false,
|
|
55
|
+
},
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
const BcmAvatar = class {
|
|
59
|
+
constructor(hostRef) {
|
|
60
|
+
registerInstance(this, hostRef);
|
|
61
|
+
this._id = Generate.UID();
|
|
62
|
+
this.image = undefined;
|
|
63
|
+
this.name = undefined;
|
|
64
|
+
this.alt = undefined;
|
|
65
|
+
this.shape = Bcm.Shape.ellipse;
|
|
66
|
+
this.size = Bcm.Size.medium;
|
|
67
|
+
this.color = undefined;
|
|
68
|
+
this.icon = "fas fa-user";
|
|
69
|
+
this.status = undefined;
|
|
70
|
+
this.blink = false;
|
|
71
|
+
this.isFallback = false;
|
|
72
|
+
}
|
|
73
|
+
getFirstLetters(name) {
|
|
74
|
+
const words = name.split(" ");
|
|
75
|
+
const initials = words.map(word => word.charAt(0).toUpperCase()).join("");
|
|
76
|
+
return initials.substring(0, 2);
|
|
77
|
+
}
|
|
78
|
+
renderDefaultIcon() {
|
|
79
|
+
return h("bcm-icon", { icon: this.icon });
|
|
80
|
+
}
|
|
81
|
+
render() {
|
|
82
|
+
const { shape, size, status, color, blink } = this;
|
|
83
|
+
const { base, badge, image } = avatarStyle({ size, shape, status: !!status });
|
|
84
|
+
const dc = Generate.getTwColor({
|
|
85
|
+
color: color,
|
|
86
|
+
tones: {
|
|
87
|
+
200: ["bg"],
|
|
88
|
+
700: ["text"],
|
|
89
|
+
},
|
|
90
|
+
variable: "--bcm-avatar",
|
|
91
|
+
});
|
|
92
|
+
const customSize = !Object.keys(Bcm.BaseSize).includes(size)
|
|
93
|
+
? {
|
|
94
|
+
width: `${size}px`,
|
|
95
|
+
height: `${size}px`,
|
|
96
|
+
fontSize: `${+size / 3}px`,
|
|
97
|
+
}
|
|
98
|
+
: {};
|
|
99
|
+
const RenderContent = () => {
|
|
100
|
+
if (this.isFallback) {
|
|
101
|
+
if (this.name) {
|
|
102
|
+
return this.getFirstLetters(this.name);
|
|
103
|
+
}
|
|
104
|
+
else {
|
|
105
|
+
return this.renderDefaultIcon();
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
else if (this.image) {
|
|
109
|
+
return h("img", { class: image(), onError: () => (this.isFallback = true), src: this.image, alt: this.alt });
|
|
110
|
+
}
|
|
111
|
+
else if (this.name) {
|
|
112
|
+
return this.getFirstLetters(this.name);
|
|
113
|
+
}
|
|
114
|
+
else {
|
|
115
|
+
return this.renderDefaultIcon();
|
|
116
|
+
}
|
|
117
|
+
};
|
|
118
|
+
return (h(Host, { role: "img", "aria-label": this.alt || this.name || "Avatar", class: base(), style: Object.assign(Object.assign({}, dc), customSize) }, h(RenderContent, null), status && h("bcm-badge", { class: badge(), status: status, blink: blink, "aria-hidden": "true" }), h("slot", null)));
|
|
119
|
+
}
|
|
120
|
+
get el() { return getElement(this); }
|
|
121
|
+
};
|
|
122
|
+
|
|
123
|
+
const badgeStyle = ce({
|
|
124
|
+
slots: {
|
|
125
|
+
host: "bcm-badge bcm-ui-element bcm-ui-content-display tw-inline-flex tw-items-center tw-justify-center tw-font-normal ",
|
|
126
|
+
base: [
|
|
127
|
+
"bcm-badge__dot",
|
|
128
|
+
"tw-flex tw-items-center tw-justify-center tw-flex-row",
|
|
129
|
+
"tw-rounded-full tw-text-center",
|
|
130
|
+
"tw-bg-[--bcm-badge-bg] tw-text-[--bcm-badge-text]",
|
|
131
|
+
"tw-whitespace-nowrap",
|
|
132
|
+
],
|
|
133
|
+
dotText: "empty:tw-hidden",
|
|
134
|
+
},
|
|
135
|
+
variants: {
|
|
136
|
+
size: {
|
|
137
|
+
small: {
|
|
138
|
+
host: "tw-text-2 tw-gap-1",
|
|
139
|
+
base: "bcm-badge__dot-size-small tw-text-1 tw-min-w-1.5 tw-min-h-1.5",
|
|
140
|
+
dotText: "tw-px-1.5 tw-min-w-4",
|
|
141
|
+
},
|
|
142
|
+
medium: {
|
|
143
|
+
host: "tw-text-3 tw-gap-1.5",
|
|
144
|
+
base: "bcm-badge__dot-size-medium tw-text-2 tw-min-w-2 tw-min-h-2",
|
|
145
|
+
dotText: "tw-px-1.5 tw-min-w-5",
|
|
146
|
+
},
|
|
147
|
+
large: {
|
|
148
|
+
host: "tw-text-4 tw-gap-2",
|
|
149
|
+
base: "bcm-badge__dot-size-large tw-text-3 tw-min-w-2.5 tw-min-h-2.5",
|
|
150
|
+
dotText: "tw-px-2 tw-min-w-6",
|
|
151
|
+
},
|
|
152
|
+
},
|
|
153
|
+
blink: {
|
|
154
|
+
true: {
|
|
155
|
+
base: [
|
|
156
|
+
"bcm-badge__dot-blink tw-relative",
|
|
157
|
+
"after:tw-content-[''] after:tw-absolute after:tw-top-0 after:tw-left-0 after:tw-z-[-1]",
|
|
158
|
+
"after:tw-w-full after:tw-h-full after:tw-bg-[--bcm-badge-bg] after:tw-opacity-75 after:tw-rounded-full",
|
|
159
|
+
"after:tw-animate-blink after:tw-pointer-events-none",
|
|
160
|
+
],
|
|
161
|
+
},
|
|
162
|
+
},
|
|
163
|
+
},
|
|
164
|
+
defaultVariants: {
|
|
165
|
+
size: "medium",
|
|
166
|
+
blink: false,
|
|
167
|
+
},
|
|
168
|
+
});
|
|
169
|
+
|
|
170
|
+
const BcmBadge = class {
|
|
171
|
+
constructor(hostRef) {
|
|
172
|
+
registerInstance(this, hostRef);
|
|
173
|
+
this.statusColors = {
|
|
174
|
+
info: "blue",
|
|
175
|
+
error: "red",
|
|
176
|
+
warning: "amber",
|
|
177
|
+
success: "emerald",
|
|
178
|
+
};
|
|
179
|
+
this._id = Generate.UID();
|
|
180
|
+
this.blink = false;
|
|
181
|
+
this.value = undefined;
|
|
182
|
+
this.color = undefined;
|
|
183
|
+
this.size = Bcm.Size.medium;
|
|
184
|
+
this.status = undefined;
|
|
185
|
+
}
|
|
186
|
+
render() {
|
|
187
|
+
const { blink, value, size, color, status } = this;
|
|
188
|
+
const _color = this.statusColors[status] || color;
|
|
189
|
+
const { tone, colorName } = ColorHelper.parseColor(_color);
|
|
190
|
+
const dc = Generate.getTwColor({
|
|
191
|
+
color: colorName,
|
|
192
|
+
tones: {
|
|
193
|
+
[tone]: ["bg"],
|
|
194
|
+
},
|
|
195
|
+
variable: "--bcm-badge",
|
|
196
|
+
});
|
|
197
|
+
const style = Object.assign(Object.assign({}, dc), (dc["--bcm-badge-bg"] && { "--bcm-badge-text": ColorHelper.reverseColor(dc["--bcm-badge-bg"]) }));
|
|
198
|
+
const { base, dotText, host } = badgeStyle({ size, blink });
|
|
199
|
+
return (h(Host, { class: host(), role: "status", "aria-live": "polite" }, h("div", { class: base(), style: style }, h("span", { class: dotText(), role: "presentation", "aria-hidden": "true" }, value), h("span", { class: "tw-sr-only" }, value)), h("slot", null)));
|
|
200
|
+
}
|
|
201
|
+
get el() { return getElement(this); }
|
|
202
|
+
};
|
|
203
|
+
|
|
204
|
+
export { BcmAvatar as bcm_avatar, BcmBadge as bcm_badge };
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Built with Stencil
|
|
3
3
|
* Copyright (c) Bromcom.
|
|
4
4
|
*/
|
|
5
|
-
import { r as registerInstance, h, H as Host, g as getElement } from './index-
|
|
5
|
+
import { r as registerInstance, h, H as Host, g as getElement } from './index-0615c2b8.js';
|
|
6
6
|
|
|
7
7
|
const BcmBox = class {
|
|
8
8
|
constructor(hostRef) {
|
|
@@ -2,11 +2,12 @@
|
|
|
2
2
|
* Built with Stencil
|
|
3
3
|
* Copyright (c) Bromcom.
|
|
4
4
|
*/
|
|
5
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-
|
|
6
|
-
import { c as classnames } from './index-
|
|
7
|
-
import { G as Generate } from './generate-
|
|
8
|
-
import './_commonjsHelpers-
|
|
9
|
-
import './
|
|
5
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-0615c2b8.js';
|
|
6
|
+
import { c as classnames } from './index-00c8a8f7.js';
|
|
7
|
+
import { G as Generate } from './generate-57891049.js';
|
|
8
|
+
import './_commonjsHelpers-7002e5de.js';
|
|
9
|
+
import './package-9a6c49c8.js';
|
|
10
|
+
import './colors-ebea297f.js';
|
|
10
11
|
|
|
11
12
|
const breadcrumbCss = "@import url(\"https://fonts.googleapis.com/css?family=Roboto:400,500\");.size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}.bcm-breadcrumb{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;flex-wrap:wrap;color:var(--bcm-color-grey-7)}.bcm-breadcrumb__item{display:flex;align-items:center}.bcm-breadcrumb .seperator{cursor:default;display:inline-flex;align-items:center;justify-content:center;margin-left:8px;margin-right:8px;color:var(--bcm-color-grey-7)}.bcm-breadcrumb bcm-link:hover{color:var(--bcm-color-grey-7)}.bcm-breadcrumb .active{color:var(--bcm-color-grey-8)}.bcm-breadcrumb .active:hover{color:var(--bcm-color-grey-8)}.bcm-breadcrumb .is-link:hover{color:var(--bcm-color-prime-blue-6)}.bcm-breadcrumb .is-link:hover bcm-link,.bcm-breadcrumb .is-link:hover bcm-icon{color:var(--bcm-color-prime-blue-6)}.bcm-breadcrumb__dropdown-item{position:relative;display:inline-flex}.bcm-breadcrumb__dropdown-item summary{display:inline-flex;align-items:center;cursor:pointer}.bcm-breadcrumb__dropdown-item summary>span{display:inline-flex;align-items:center}.bcm-breadcrumb__dropdown-item summary::-webkit-details-marker{display:none}.bcm-breadcrumb__dropdown-item summary:focus{outline:none}.bcm-breadcrumb__dropdown-item summary.open bcm-link,.bcm-breadcrumb__dropdown-item summary.open bcm-icon{color:var(--bcm-color-prime-blue-6)}.bcm-breadcrumb__dropdown-item summary .down-icon{margin-left:4px}.bcm-breadcrumb__dropdown-submenu{position:absolute;min-width:140px;background-color:var(--bcm-color-grey-1);box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);margin-top:4px}.bcm-breadcrumb__dropdown-submenu .dropdown-item{display:flex;padding:4px 8px}.bcm-breadcrumb__dropdown-submenu .dropdown-item bcm-link{width:100%}";
|
|
12
13
|
|