bromcom-ui 2.9.0-rc.8 → 2.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bromcom-ui/bromcom-ui.css +1 -1
- package/dist/bromcom-ui/bromcom-ui.esm.js +1 -1
- package/dist/bromcom-ui/global/global.js +6 -0
- package/dist/bromcom-ui/global/helper/toast.ts +2 -0
- package/dist/bromcom-ui/p-08c75801.js +5 -0
- package/dist/bromcom-ui/p-0dacfdbc.entry.js +5 -0
- package/dist/bromcom-ui/{p-24f0e23a.entry.js → p-13f6e1a7.entry.js} +1 -1
- package/dist/bromcom-ui/{p-5c3e9ac9.entry.js → p-14cafd64.entry.js} +1 -1
- package/dist/bromcom-ui/p-170cf07d.js +6 -0
- package/dist/bromcom-ui/p-19634d99.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-6bcaf906.entry.js → p-1cfe5a5d.entry.js} +1 -1
- package/dist/bromcom-ui/p-20ba9769.entry.js +5 -0
- package/dist/bromcom-ui/{p-8ded5483.entry.js → p-228c74e9.entry.js} +1 -1
- package/dist/bromcom-ui/{p-65f01d32.entry.js → p-22eb4e12.entry.js} +1 -1
- package/dist/bromcom-ui/{p-f331e009.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-73ca7c0a.entry.js → p-2b822458.entry.js} +1 -1
- package/dist/bromcom-ui/{p-dbc4c30c.js → p-2c5a0863.js} +1 -1
- package/dist/bromcom-ui/p-304bfa08.entry.js +5 -0
- package/dist/bromcom-ui/p-3432a82d.js +19 -0
- package/dist/bromcom-ui/p-399bce44.entry.js +5 -0
- package/dist/bromcom-ui/p-41cea609.entry.js +7 -0
- package/dist/bromcom-ui/{p-6c3e9e10.entry.js → p-430c0a24.entry.js} +1 -1
- package/dist/bromcom-ui/p-434c170e.js +5 -0
- package/dist/bromcom-ui/{p-d0bb9a84.entry.js → p-440bbaaa.entry.js} +1 -1
- package/dist/bromcom-ui/p-47400be4.entry.js +5 -0
- package/dist/bromcom-ui/{p-f5bed571.entry.js → p-4a2de9ce.entry.js} +1 -1
- package/dist/bromcom-ui/p-4f42085a.entry.js +5 -0
- package/dist/bromcom-ui/{p-ff48f5b2.entry.js → p-5232e011.entry.js} +1 -1
- package/dist/bromcom-ui/p-53e91ae6.js +5 -0
- package/dist/bromcom-ui/{p-c75519d5.js → p-54211561.js} +1 -1
- 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-45767d1d.entry.js → p-588165ef.entry.js} +1 -1
- package/dist/bromcom-ui/p-5916e844.entry.js +5 -0
- package/dist/bromcom-ui/{p-499bb928.entry.js → p-5fb0f815.entry.js} +1 -1
- package/dist/bromcom-ui/{p-2fc584c4.js → p-61db1f1f.js} +1 -1
- package/dist/bromcom-ui/{p-89e1d8c5.entry.js → p-626b805d.entry.js} +1 -1
- package/dist/bromcom-ui/{p-d389b202.entry.js → p-647de93f.entry.js} +1 -1
- package/dist/bromcom-ui/p-64fad38b.js +11 -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-6cf1e8a2.entry.js +5 -0
- package/dist/bromcom-ui/{p-4aa0e6b1.js → p-6edf985f.js} +1 -1
- package/dist/bromcom-ui/p-73ec379d.entry.js +5 -0
- package/dist/bromcom-ui/{p-3cde7f38.js → p-74e6d2b6.js} +1 -1
- package/dist/bromcom-ui/p-75ec5cc6.entry.js +5 -0
- package/dist/bromcom-ui/p-784a7bb0.entry.js +5 -0
- package/dist/bromcom-ui/p-78f0fe00.js +5 -0
- package/dist/bromcom-ui/p-7b05abe8.entry.js +5 -0
- 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-81eeccfa.entry.js → p-7d18ce0e.entry.js} +1 -1
- package/dist/bromcom-ui/{p-5ae0a59b.js → p-7e44e6b5.js} +1 -1
- package/dist/bromcom-ui/p-80ee3d97.entry.js +5 -0
- package/dist/bromcom-ui/p-822d590f.entry.js +5 -0
- package/dist/bromcom-ui/p-85eedabc.js +5 -0
- package/dist/bromcom-ui/p-89a28750.entry.js +5 -0
- package/dist/bromcom-ui/{p-3c7a0345.js → p-8c018ae0.js} +1 -1
- package/dist/bromcom-ui/p-8f45ba5f.entry.js +5 -0
- package/dist/bromcom-ui/p-9075a184.entry.js +5 -0
- package/dist/bromcom-ui/{p-f58c1fbe.entry.js → p-913c55ee.entry.js} +1 -1
- package/dist/bromcom-ui/p-9164639f.entry.js +5 -0
- package/dist/bromcom-ui/p-9850cbce.js +5 -0
- package/dist/bromcom-ui/{p-8bcfe3b3.entry.js → p-99824717.entry.js} +1 -1
- package/dist/bromcom-ui/p-9bd5f3b4.entry.js +5 -0
- package/dist/bromcom-ui/{p-6aeaef2a.entry.js → p-a006e404.entry.js} +1 -1
- package/dist/bromcom-ui/{p-e9842c26.js → p-a0ba474b.js} +1 -1
- package/dist/bromcom-ui/{p-b60bcecf.js → p-a1b1750c.js} +1 -1
- package/dist/bromcom-ui/{p-8fcb5846.js → p-a2c364af.js} +1 -1
- package/dist/bromcom-ui/p-a40a5474.entry.js +5 -0
- 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-2acd6bee.entry.js → p-ab0b4d1e.entry.js} +1 -1
- package/dist/bromcom-ui/{p-ea4d8a18.entry.js → p-ae57f046.entry.js} +1 -1
- package/dist/bromcom-ui/{p-2caa75a4.entry.js → p-b4f033b4.entry.js} +1 -1
- package/dist/bromcom-ui/p-b81e8f91.js +5 -0
- package/dist/bromcom-ui/{p-503feae9.entry.js → p-b8a8bd1d.entry.js} +1 -1
- package/dist/bromcom-ui/{p-b4ac5904.js → p-b901e1ce.js} +1 -1
- package/dist/bromcom-ui/p-ba74a838.entry.js +5 -0
- package/dist/bromcom-ui/{p-c42dffea.entry.js → p-ba949d4a.entry.js} +1 -1
- package/dist/bromcom-ui/{p-f4538abb.entry.js → p-ba9eff2a.entry.js} +1 -1
- package/dist/bromcom-ui/{p-fb4b5224.entry.js → p-bd2b6de5.entry.js} +1 -1
- package/dist/bromcom-ui/{p-ebee9f45.entry.js → p-c1a992e7.entry.js} +1 -1
- package/dist/bromcom-ui/{p-908b1b5d.js → p-c8751181.js} +1 -1
- package/dist/bromcom-ui/p-ccf0872d.js +5 -0
- package/dist/bromcom-ui/p-cf659967.entry.js +5 -0
- package/dist/bromcom-ui/{p-8d0ca8c2.js → p-d153c7fc.js} +1 -1
- package/dist/bromcom-ui/p-d3db9e02.entry.js +5 -0
- package/dist/bromcom-ui/{p-7ddaedb7.entry.js → p-d551a51d.entry.js} +1 -1
- package/dist/bromcom-ui/{p-ec36d0c0.entry.js → p-d68c2c0a.entry.js} +1 -1
- package/dist/bromcom-ui/{p-e5a0d8f6.entry.js → p-d724cfa9.entry.js} +1 -1
- package/dist/bromcom-ui/{p-af0a447d.entry.js → p-d7ca94e1.entry.js} +1 -1
- package/dist/bromcom-ui/p-dd49ae28.entry.js +5 -0
- package/dist/bromcom-ui/p-e2294927.entry.js +5 -0
- package/dist/bromcom-ui/{p-1b1f4b44.entry.js → p-e688b044.entry.js} +1 -1
- package/dist/bromcom-ui/p-ec0224fb.entry.js +5 -0
- package/dist/bromcom-ui/{p-6ca980dd.entry.js → p-ece578ef.entry.js} +1 -1
- package/dist/bromcom-ui/{p-1be22601.entry.js → p-ef8c5b55.entry.js} +1 -1
- package/dist/bromcom-ui/p-f711588b.js +5 -0
- package/dist/bromcom-ui/p-fe1f2413.entry.js +5 -0
- package/dist/bromcom-ui/{p-a82f2b2a.entry.js → p-fe83cdd3.entry.js} +1 -1
- package/dist/bromcom-ui/{p-f619f9f9.entry.js → p-fff1a0f9.entry.js} +1 -1
- package/dist/bromcom-ui/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 -5
- package/dist/cjs/bcm-alert.cjs.entry.js +9 -9
- package/dist/cjs/bcm-attendance.cjs.entry.js +5 -5
- 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 -6
- package/dist/cjs/bcm-button-group.cjs.entry.js +11 -11
- package/dist/cjs/bcm-button_15.cjs.entry.js +35172 -0
- package/dist/cjs/bcm-card.cjs.entry.js +10 -10
- package/dist/cjs/bcm-checkbox-group.cjs.entry.js +29 -29
- package/dist/cjs/bcm-checkbox-lite_9.cjs.entry.js +10 -10
- package/dist/cjs/{bcm-checkbox.cjs.entry.js → bcm-checkbox_2.cjs.entry.js} +28 -17
- package/dist/cjs/bcm-chip-group.cjs.entry.js +15 -16
- package/dist/cjs/bcm-chip.cjs.entry.js +7 -7
- package/dist/cjs/bcm-collapse-group.cjs.entry.js +1 -1
- package/dist/cjs/bcm-collapse.cjs.entry.js +6 -6
- package/dist/cjs/bcm-color-input.cjs.entry.js +10 -11
- 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 -5
- package/dist/cjs/bcm-drawer.cjs.entry.js +13 -14
- package/dist/cjs/bcm-dropdown.cjs.entry.js +119 -0
- package/dist/cjs/bcm-error-layout.cjs.entry.js +3 -3
- package/dist/cjs/bcm-expansion-panel.cjs.entry.js +9 -9
- package/dist/cjs/bcm-form-group.cjs.entry.js +1 -1
- package/dist/cjs/bcm-input-custom.cjs.entry.js +6 -6
- package/dist/cjs/bcm-input-dropdown.cjs.entry.js +309 -0
- package/dist/cjs/bcm-item.cjs.entry.js +72 -0
- package/dist/cjs/bcm-items.cjs.entry.js +49 -0
- package/dist/cjs/bcm-link.cjs.entry.js +6 -6
- package/dist/cjs/bcm-list_3.cjs.entry.js +169 -1691
- package/dist/cjs/bcm-menu.cjs.entry.js +150 -0
- package/dist/cjs/bcm-message.cjs.entry.js +3 -3
- package/dist/cjs/bcm-modal-2-footer.cjs.entry.js +11 -12
- package/dist/cjs/bcm-modal-2-header.cjs.entry.js +10 -11
- package/dist/cjs/bcm-modal-2.cjs.entry.js +12 -13
- package/dist/cjs/bcm-modal.cjs.entry.js +11 -11
- 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 -10
- package/dist/cjs/bcm-popconfirm.cjs.entry.js +9 -9
- package/dist/cjs/bcm-popover.cjs.entry.js +229 -0
- package/dist/cjs/bcm-progress.cjs.entry.js +9 -9
- package/dist/cjs/bcm-radio-group.cjs.entry.js +17 -18
- package/dist/cjs/bcm-radio.cjs.entry.js +18 -19
- package/dist/cjs/bcm-range.cjs.entry.js +10 -10
- 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 -5
- package/dist/cjs/bcm-step.cjs.entry.js +8 -8
- package/dist/cjs/bcm-stepper.cjs.entry.js +15 -16
- package/dist/cjs/bcm-switch.cjs.entry.js +15 -15
- package/dist/cjs/bcm-tab-group.cjs.entry.js +209 -0
- package/dist/cjs/bcm-tab-item-header.cjs.entry.js +58 -0
- package/dist/cjs/bcm-tab-item.cjs.entry.js +90 -0
- package/dist/cjs/bcm-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 -19
- package/dist/cjs/bcm-text.cjs.entry.js +49 -0
- package/dist/cjs/bcm-textarea.cjs.entry.js +13 -13
- 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 -19
- package/dist/cjs/bcm-treeview-group.cjs.entry.js +1 -1
- package/dist/cjs/bromcom-ui.cjs.js +5 -4
- package/dist/cjs/{caption-template-8d099fd6.js → caption-template-81dbc490.js} +2 -2
- package/dist/cjs/{color-helper-7ab15732.js → color-helper-c3a819ea.js} +1 -1
- 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-cae9c0fb.js → generate-1dfe001a.js} +2 -2
- package/dist/cjs/{global-3ce50f9f.js → global-4a6abd46.js} +6 -1
- package/dist/cjs/index-5279dea2.js +2571 -0
- package/dist/cjs/{index-906fb4e5.js → index-7eed931f.js} +1631 -25
- 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-a7f8f2e9.js → input-template-41868c68.js} +8 -8
- package/dist/cjs/{is-load-decorator-137dded1.js → is-load-decorator-15036f37.js} +3 -2
- package/dist/cjs/{json-parse-decarator-34a3d26e.js → json-parse-decarator-f29c368a.js} +2 -2
- package/dist/cjs/{label-template-4d5f99a5.js → label-template-80235581.js} +5 -5
- package/dist/cjs/loader.cjs.js +5 -4
- package/dist/cjs/{number-helper-101d8aa8.js → number-helper-2b9c1f9d.js} +1 -1
- package/dist/cjs/old-bcm-popover-box.cjs.entry.js +11 -11
- package/dist/cjs/old-bcm-popover.cjs.entry.js +9 -9
- package/dist/cjs/{package-ed8b3296.js → package-66b81414.js} +1 -1
- 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-308c8d3e.js → stepper-states-6ccb8ab3.js} +3 -3
- package/dist/cjs/{string-helper-d681e5c7.js → string-helper-fda7cbba.js} +5 -5
- package/dist/cjs/tooltip-helper-0eb3ef13.js +157 -0
- package/dist/cjs/{validators-26badb68.js → validators-97a46a9e.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 +21 -23
- package/dist/collection/components/atoms/avatar/avatar.style.js +24 -21
- package/dist/collection/components/atoms/badge/badge.js +2 -1
- package/dist/collection/components/atoms/badge/badge.style.js +36 -24
- 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/static/message-bot.svg +2 -2
- package/dist/collection/components/molecules/dropdown/dropdown.js +1 -1
- package/dist/collection/components/molecules/input/input.js +0 -2
- 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/linked/linked.js +5 -29
- package/dist/collection/components/molecules/popconfirm/popconfirm.js +1 -1
- package/dist/collection/components/molecules/popover/popover.js +1 -1
- package/dist/collection/components/molecules/tooltip/tooltip.js +1 -1
- 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 +21 -1
- 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_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 +6 -0
- package/dist/collection/global/helper/toast.js +1 -0
- package/dist/collection/global/helper/toast.ts +2 -0
- package/dist/collection/helper/string-helper.js +2 -2
- 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 +46 -44
- package/dist/components/badge.js +39 -70
- 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-rc-picker.d.ts +11 -0
- package/dist/components/bcm-rc-picker.js +10 -0
- 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/colors2.js +1 -1
- package/dist/components/datetime-picker.js +5 -2
- package/dist/components/generate.js +1 -1
- package/dist/components/index.d.ts +4 -1
- package/dist/components/index.js +9 -1
- package/dist/components/index3.js +5 -1
- package/dist/components/index5.js +2569 -0
- package/dist/components/input.js +0 -2
- package/dist/components/is-load-decorator.js +2 -1
- package/dist/components/linked.js +5 -11
- package/dist/components/list.js +22 -8
- 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/esm/{_commonjsHelpers-3016b722.js → _commonjsHelpers-7002e5de.js} +16 -1
- package/dist/esm/bcm-accordion.entry.js +5 -5
- package/dist/esm/bcm-alert.entry.js +9 -9
- package/dist/esm/bcm-attendance.entry.js +5 -5
- 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 -6
- package/dist/esm/bcm-button-group.entry.js +8 -8
- package/dist/esm/bcm-button_15.entry.js +35154 -0
- package/dist/esm/bcm-card.entry.js +11 -11
- package/dist/esm/bcm-checkbox-group.entry.js +19 -19
- package/dist/esm/bcm-checkbox-lite_9.entry.js +8 -8
- package/dist/esm/{bcm-checkbox.entry.js → bcm-checkbox_2.entry.js} +24 -14
- package/dist/esm/bcm-chip-group.entry.js +16 -17
- package/dist/esm/bcm-chip.entry.js +8 -8
- package/dist/esm/bcm-collapse-group.entry.js +2 -2
- package/dist/esm/bcm-collapse.entry.js +6 -6
- package/dist/esm/bcm-color-input.entry.js +12 -13
- package/dist/esm/bcm-colorpicker.entry.js +5 -5
- 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 -5
- package/dist/esm/bcm-drawer.entry.js +13 -14
- package/dist/esm/bcm-dropdown.entry.js +115 -0
- package/dist/esm/bcm-error-layout.entry.js +3 -3
- package/dist/esm/bcm-expansion-panel.entry.js +10 -10
- package/dist/esm/bcm-form-group.entry.js +1 -1
- package/dist/esm/bcm-input-custom.entry.js +6 -6
- package/dist/esm/bcm-input-dropdown.entry.js +305 -0
- package/dist/esm/bcm-item.entry.js +68 -0
- package/dist/esm/bcm-items.entry.js +45 -0
- package/dist/esm/bcm-link.entry.js +4 -4
- package/dist/esm/bcm-list_3.entry.js +93 -1615
- package/dist/esm/bcm-menu.entry.js +146 -0
- package/dist/esm/bcm-message.entry.js +3 -3
- package/dist/esm/bcm-modal-2-footer.entry.js +13 -14
- package/dist/esm/bcm-modal-2-header.entry.js +12 -13
- package/dist/esm/bcm-modal-2.entry.js +13 -14
- package/dist/esm/bcm-modal.entry.js +9 -9
- package/dist/esm/bcm-notification.entry.js +3 -3
- package/dist/esm/bcm-old-tag_2.entry.js +4 -4
- package/dist/esm/bcm-overlay_2.entry.js +4 -4
- package/dist/esm/bcm-popconfirm-box.entry.js +11 -11
- package/dist/esm/bcm-popconfirm.entry.js +7 -7
- package/dist/esm/bcm-popover.entry.js +225 -0
- package/dist/esm/bcm-progress.entry.js +9 -9
- package/dist/esm/bcm-radio-group.entry.js +15 -16
- package/dist/esm/bcm-radio.entry.js +13 -14
- package/dist/esm/bcm-range.entry.js +8 -8
- 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 +6 -6
- package/dist/esm/bcm-skeleton.entry.js +5 -5
- package/dist/esm/bcm-step.entry.js +8 -8
- package/dist/esm/bcm-stepper.entry.js +15 -16
- package/dist/esm/bcm-switch.entry.js +10 -10
- package/dist/esm/bcm-tab-group.entry.js +205 -0
- package/dist/esm/bcm-tab-item-header.entry.js +54 -0
- package/dist/esm/bcm-tab-item.entry.js +86 -0
- package/dist/esm/bcm-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 +4 -4
- package/dist/esm/bcm-tabs.entry.js +4 -4
- package/dist/esm/bcm-tag.entry.js +9 -9
- package/dist/esm/bcm-text.entry.js +45 -0
- package/dist/esm/bcm-textarea.entry.js +11 -11
- 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 +38 -19
- package/dist/esm/bcm-treeview-group.entry.js +1 -1
- package/dist/esm/bromcom-ui.js +6 -5
- package/dist/esm/{caption-template-34a1cb44.js → caption-template-d47f338f.js} +2 -2
- package/dist/esm/{color-helper-116755ed.js → color-helper-845ba523.js} +2 -2
- package/dist/esm/{colors-44c95e7e.js → colors-ebea297f.js} +1 -1
- package/dist/esm/{element-dragger-7ea06c76.js → element-dragger-89bb52fd.js} +1 -1
- package/dist/esm/{floating-ui-e7341329.js → floating-ui-8a0c54d6.js} +1 -1
- package/dist/esm/{generate-e008f24f.js → generate-7a1258c4.js} +2 -2
- package/dist/esm/{global-9c04f017.js → global-032592ad.js} +6 -1
- 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-6310a048.js → index-e4b6a4ce.js} +1616 -26
- package/dist/esm/{input-template-0bdd4dda.js → input-template-68c29fde.js} +4 -4
- package/dist/esm/{is-load-decorator-07d3502a.js → is-load-decorator-8277e3b8.js} +3 -2
- package/dist/esm/{json-parse-decarator-40fc5701.js → json-parse-decarator-2945634b.js} +2 -2
- package/dist/esm/{label-template-98dafeb3.js → label-template-946d4062.js} +4 -4
- package/dist/esm/loader.js +6 -5
- package/dist/esm/{number-helper-ddce4326.js → number-helper-fe7d1aca.js} +1 -1
- package/dist/esm/old-bcm-popover-box.entry.js +13 -13
- package/dist/esm/old-bcm-popover.entry.js +7 -7
- package/dist/esm/{package-00ece356.js → package-acbf2052.js} +1 -1
- 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-56644bc7.js → stepper-states-9ab8511e.js} +3 -3
- package/dist/esm/{string-helper-6bd24967.js → string-helper-b0e05041.js} +4 -4
- package/dist/esm/tooltip-helper-e5246812.js +155 -0
- package/dist/esm/{utils-b3338faf.js → utils-57652744.js} +1 -1
- package/dist/esm/{validators-77fbe47e.js → validators-22975416.js} +6 -2
- package/dist/esm/watermark-f2c6a1f9.js +47477 -0
- package/dist/types/components/atoms/avatar/avatar.d.ts +0 -2
- package/dist/types/components/atoms/avatar/avatar.style.d.ts +181 -5
- package/dist/types/components/atoms/badge/badge.style.d.ts +174 -4
- 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 +1 -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 +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 +244 -3
- 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/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 +9 -3
- package/dist/bromcom-ui/p-019b44bb.entry.js +0 -5
- package/dist/bromcom-ui/p-01a50abe.entry.js +0 -5
- package/dist/bromcom-ui/p-065e0f32.entry.js +0 -5
- package/dist/bromcom-ui/p-0cb5a92d.entry.js +0 -5
- package/dist/bromcom-ui/p-0f52bab9.entry.js +0 -5
- package/dist/bromcom-ui/p-15758356.entry.js +0 -5
- package/dist/bromcom-ui/p-1eabd5dc.js +0 -10
- package/dist/bromcom-ui/p-235023cc.entry.js +0 -5
- package/dist/bromcom-ui/p-2a7bdc8b.entry.js +0 -5
- package/dist/bromcom-ui/p-32028f4f.entry.js +0 -5
- package/dist/bromcom-ui/p-3a68eca1.js +0 -5
- package/dist/bromcom-ui/p-4484ed7d.entry.js +0 -5
- package/dist/bromcom-ui/p-4f8b00bc.entry.js +0 -5
- package/dist/bromcom-ui/p-4fd78dbb.entry.js +0 -5
- package/dist/bromcom-ui/p-54c0916c.js +0 -5
- package/dist/bromcom-ui/p-5d89f348.entry.js +0 -5
- package/dist/bromcom-ui/p-61c4745d.entry.js +0 -5
- package/dist/bromcom-ui/p-626a65e9.js +0 -5
- package/dist/bromcom-ui/p-663766cf.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-7f529bbe.entry.js +0 -5
- package/dist/bromcom-ui/p-9fe802bc.entry.js +0 -5
- package/dist/bromcom-ui/p-a19320bb.entry.js +0 -13
- package/dist/bromcom-ui/p-a429e85b.js +0 -5
- package/dist/bromcom-ui/p-a56e8c98.js +0 -5
- package/dist/bromcom-ui/p-a8033cda.entry.js +0 -5
- package/dist/bromcom-ui/p-a9692ed3.entry.js +0 -5
- package/dist/bromcom-ui/p-b1c83bb8.entry.js +0 -5
- package/dist/bromcom-ui/p-bddbd954.entry.js +0 -5
- package/dist/bromcom-ui/p-c49d038e.js +0 -5
- package/dist/bromcom-ui/p-c799b397.entry.js +0 -5
- package/dist/bromcom-ui/p-cf0ab7f0.entry.js +0 -5
- package/dist/bromcom-ui/p-d65a1e21.js +0 -11
- package/dist/bromcom-ui/p-d7f10f7f.js +0 -5
- package/dist/bromcom-ui/p-dd422dd1.js +0 -5
- package/dist/bromcom-ui/p-e09fa0dc.entry.js +0 -5
- package/dist/bromcom-ui/p-e32d9cfc.js +0 -5
- package/dist/bromcom-ui/p-ec6b45ba.entry.js +0 -5
- package/dist/bromcom-ui/p-f645d9ae.entry.js +0 -5
- package/dist/bromcom-ui/p-fdc3e5b8.entry.js +0 -5
- package/dist/cjs/bcm-avatar.cjs.entry.js +0 -127
- package/dist/cjs/bcm-badge_15.cjs.entry.js +0 -1739
- package/dist/cjs/bcm-colorful.cjs.entry.js +0 -17227
- package/dist/cjs/bcm-date-picker.cjs.entry.js +0 -181
- package/dist/cjs/bcm-datetime-picker.cjs.entry.js +0 -1449
- package/dist/cjs/bcm-form-2.cjs.entry.js +0 -209
- package/dist/cjs/bcm-form.cjs.entry.js +0 -488
- package/dist/cjs/bcm-input.cjs.entry.js +0 -371
- package/dist/cjs/bcm-label.cjs.entry.js +0 -45
- package/dist/cjs/bcm-old-input.cjs.entry.js +0 -397
- package/dist/cjs/bcm-time-picker.cjs.entry.js +0 -149
- package/dist/cjs/datetime-helper-eaf4fadb.js +0 -11
- package/dist/cjs/index-b08b037a.js +0 -52
- 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-avatar.entry.js +0 -123
- package/dist/esm/bcm-badge_15.entry.js +0 -1721
- package/dist/esm/bcm-colorful.entry.js +0 -17223
- package/dist/esm/bcm-date-picker.entry.js +0 -177
- package/dist/esm/bcm-datetime-picker.entry.js +0 -1445
- package/dist/esm/bcm-form-2.entry.js +0 -205
- package/dist/esm/bcm-form.entry.js +0 -484
- package/dist/esm/bcm-input.entry.js +0 -367
- package/dist/esm/bcm-label.entry.js +0 -41
- package/dist/esm/bcm-old-input.entry.js +0 -393
- package/dist/esm/bcm-time-picker.entry.js +0 -145
- package/dist/esm/datetime-helper-df25808a.js +0 -9
- package/dist/esm/index-962dec74.js +0 -50
- package/dist/types/components/other/data-table/table.d.ts +0 -8
|
@@ -0,0 +1,751 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Stencil
|
|
3
|
+
* Copyright (c) Bromcom.
|
|
4
|
+
*/
|
|
5
|
+
import { Generate } from "@bcm/helpers";
|
|
6
|
+
import { Bcm } from "@bcm/model";
|
|
7
|
+
import { CaptionTemplate } from "@bcm/template";
|
|
8
|
+
import { Fragment, Host, forceUpdate, h } from "@stencil/core";
|
|
9
|
+
import cs from "classnames";
|
|
10
|
+
import { inputDropdownStyle } from "./input-dropdown.style";
|
|
11
|
+
export class BcmInputDropdown {
|
|
12
|
+
constructor() {
|
|
13
|
+
this.handleKeyPress = e => {
|
|
14
|
+
var _a, _b;
|
|
15
|
+
if (((_b = (_a = e === null || e === void 0 ? void 0 : e.target) === null || _a === void 0 ? void 0 : _a.value) === null || _b === void 0 ? void 0 : _b.length) >= +this.maxCharacterLimit) {
|
|
16
|
+
e.preventDefault();
|
|
17
|
+
return;
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
this._id = Generate.UID();
|
|
21
|
+
this.value = undefined;
|
|
22
|
+
this.defaultValue = {};
|
|
23
|
+
this.lateKeys = "L";
|
|
24
|
+
this.maxCharacterLimit = 1;
|
|
25
|
+
this.size = Bcm.Size.medium;
|
|
26
|
+
this.label = undefined;
|
|
27
|
+
this.placeholder = undefined;
|
|
28
|
+
this.name = undefined;
|
|
29
|
+
this.fullWidth = false;
|
|
30
|
+
this.hideComment = false;
|
|
31
|
+
this.hideCaption = true;
|
|
32
|
+
this.disabled = false;
|
|
33
|
+
this.required = false;
|
|
34
|
+
this.readonly = false;
|
|
35
|
+
this.data = [
|
|
36
|
+
{ key: "/", value: "Present", color: "#00b050" },
|
|
37
|
+
{ key: "B", value: "Educated off site (NOT dual registration)", color: "#ffc000" },
|
|
38
|
+
{ key: "C", value: "Other authorised circumstance", color: "#ffc000" },
|
|
39
|
+
{ key: "D", value: "Dual registration", color: "#0070c0" },
|
|
40
|
+
{ key: "E", value: "Excluded", color: "#ff0000" },
|
|
41
|
+
{ key: "F", value: "Free Study", color: "#ffc000" },
|
|
42
|
+
{ key: "I", value: "Illness", color: "#ff0000" },
|
|
43
|
+
{ key: "J", value: "Interview", color: "#ffc000" },
|
|
44
|
+
{ key: "L", value: "Late before reg. closed", color: "#ffc000" },
|
|
45
|
+
];
|
|
46
|
+
this.caption = undefined;
|
|
47
|
+
this.noCaption = false;
|
|
48
|
+
this.captionType = Bcm.Status.default;
|
|
49
|
+
this.captionError = undefined;
|
|
50
|
+
this.customErrorMessage = undefined;
|
|
51
|
+
this.captionCache = undefined;
|
|
52
|
+
this.captionTypeCache = undefined;
|
|
53
|
+
this.isOpenMenu = false;
|
|
54
|
+
this.invalid = false;
|
|
55
|
+
}
|
|
56
|
+
get overlayContainer() {
|
|
57
|
+
return document.getElementById("bcm-overlay-container");
|
|
58
|
+
}
|
|
59
|
+
get menuContent() {
|
|
60
|
+
var _a, _b;
|
|
61
|
+
return (_b = (_a = this.overlayContainer) === null || _a === void 0 ? void 0 : _a.querySelector("#" + `i-dropdown-menu-${this._id}`)) !== null && _b !== void 0 ? _b : this.el.querySelector("#" + `i-dropdown-menu-${this._id}`);
|
|
62
|
+
}
|
|
63
|
+
get keys() {
|
|
64
|
+
return this.lateKeys.toLocaleLowerCase().split(",");
|
|
65
|
+
}
|
|
66
|
+
get isLate() {
|
|
67
|
+
var _a, _b, _c, _d, _e, _f;
|
|
68
|
+
return (this.keys.includes((_b = (_a = this.value) === null || _a === void 0 ? void 0 : _a.key) === null || _b === void 0 ? void 0 : _b.toLocaleLowerCase()) ||
|
|
69
|
+
((_d = (_c = this.data) === null || _c === void 0 ? void 0 : _c.find(item => { var _a, _b, _c; return ((_a = item === null || item === void 0 ? void 0 : item.key) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === ((_c = (_b = this.value) === null || _b === void 0 ? void 0 : _b.key) === null || _c === void 0 ? void 0 : _c.toLowerCase()); })) === null || _d === void 0 ? void 0 : _d.isLate) ||
|
|
70
|
+
((_f = (_e = this.data) === null || _e === void 0 ? void 0 : _e.find(item => { var _a, _b, _c; return ((_a = item === null || item === void 0 ? void 0 : item.key) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === ((_c = (_b = this.value) === null || _b === void 0 ? void 0 : _b.key) === null || _c === void 0 ? void 0 : _c.toLowerCase()); })) === null || _f === void 0 ? void 0 : _f.lateMin) > 0);
|
|
71
|
+
}
|
|
72
|
+
componentWillLoad() {
|
|
73
|
+
var _a, _b;
|
|
74
|
+
this.captionCache = this.caption;
|
|
75
|
+
this.captionTypeCache = this.captionType;
|
|
76
|
+
if (((_a = Object.keys(this.defaultValue)) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
|
77
|
+
this.watchDefaultValueHandler(this.defaultValue);
|
|
78
|
+
}
|
|
79
|
+
else {
|
|
80
|
+
this.value = (_b = this.data) === null || _b === void 0 ? void 0 : _b.find(item => item.selected);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
get commentContent() {
|
|
84
|
+
var _a, _b;
|
|
85
|
+
return (_b = (_a = this.overlayContainer) === null || _a === void 0 ? void 0 : _a.querySelector("#" + `i-dropdown-comment-${this._id}`)) !== null && _b !== void 0 ? _b : this.el.querySelector("#" + `i-dropdown-comment-${this._id}`);
|
|
86
|
+
}
|
|
87
|
+
clickListener(e) {
|
|
88
|
+
var _a, _b;
|
|
89
|
+
const isSelf = Generate.findEventPath(e, this.el);
|
|
90
|
+
const isLinked = Generate.findEventPathWithNodeName(e, "BCM-LINKED");
|
|
91
|
+
if (!isSelf && !isLinked && !this.keys.includes((_a = this.value) === null || _a === void 0 ? void 0 : _a.key)) {
|
|
92
|
+
(_b = this.commentContent) === null || _b === void 0 ? void 0 : _b.hide();
|
|
93
|
+
return;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
watchDefaultValueHandler(newValue) {
|
|
97
|
+
var _a, _b;
|
|
98
|
+
if (newValue) {
|
|
99
|
+
this.value = (_a = this.data) === null || _a === void 0 ? void 0 : _a.find(item => { var _a, _b; return ((_a = item === null || item === void 0 ? void 0 : item.key) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === ((_b = newValue.key) === null || _b === void 0 ? void 0 : _b.toLowerCase()); });
|
|
100
|
+
this.data = this.data.map(data => {
|
|
101
|
+
if (data.key === (newValue === null || newValue === void 0 ? void 0 : newValue.key)) {
|
|
102
|
+
data = newValue;
|
|
103
|
+
data.selected = true;
|
|
104
|
+
}
|
|
105
|
+
else {
|
|
106
|
+
data.selected = false;
|
|
107
|
+
}
|
|
108
|
+
return data;
|
|
109
|
+
});
|
|
110
|
+
this.value = (_b = this.data) === null || _b === void 0 ? void 0 : _b.find(item => item === null || item === void 0 ? void 0 : item.selected);
|
|
111
|
+
forceUpdate(this.el);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
async set(data) {
|
|
115
|
+
this.data = typeof data === "string" ? JSON.parse(data) : data;
|
|
116
|
+
}
|
|
117
|
+
async get() {
|
|
118
|
+
return this.value;
|
|
119
|
+
}
|
|
120
|
+
async setClear() {
|
|
121
|
+
this.value = null;
|
|
122
|
+
return Promise.resolve();
|
|
123
|
+
}
|
|
124
|
+
async resetCaption() {
|
|
125
|
+
this.caption = this.captionCache;
|
|
126
|
+
this.captionType = this.captionTypeCache;
|
|
127
|
+
this.captionError = null;
|
|
128
|
+
this.invalid = false;
|
|
129
|
+
return Promise.resolve();
|
|
130
|
+
}
|
|
131
|
+
onSelectItem(item) {
|
|
132
|
+
var _a;
|
|
133
|
+
this.invalid = false;
|
|
134
|
+
this.data = this.data.map(data => (Object.assign(Object.assign({}, data), { selected: data.key === item.key })));
|
|
135
|
+
this.value = (_a = this.data) === null || _a === void 0 ? void 0 : _a.find(item => item === null || item === void 0 ? void 0 : item.selected);
|
|
136
|
+
this.onChangeDropdown.emit(this.value);
|
|
137
|
+
this.change.emit();
|
|
138
|
+
}
|
|
139
|
+
async handleInput(e) {
|
|
140
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
141
|
+
const value = (_a = e === null || e === void 0 ? void 0 : e.target) === null || _a === void 0 ? void 0 : _a.value;
|
|
142
|
+
this.isOpenMenu = true;
|
|
143
|
+
const maxLengthExceeded = (value === null || value === void 0 ? void 0 : value.length) >= +this.maxCharacterLimit;
|
|
144
|
+
if (maxLengthExceeded) {
|
|
145
|
+
const item = (_b = this.data) === null || _b === void 0 ? void 0 : _b.find(item => { var _a; return ((_a = item === null || item === void 0 ? void 0 : item.key) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === value.toLowerCase(); });
|
|
146
|
+
if (item) {
|
|
147
|
+
await ((_c = this.menuContent) === null || _c === void 0 ? void 0 : _c.hide());
|
|
148
|
+
if (!(item === null || item === void 0 ? void 0 : item.hideComment)) {
|
|
149
|
+
(_d = this.commentContent) === null || _d === void 0 ? void 0 : _d.show();
|
|
150
|
+
}
|
|
151
|
+
this.onSelectItem(item);
|
|
152
|
+
}
|
|
153
|
+
else {
|
|
154
|
+
this.invalid = true;
|
|
155
|
+
this.value = e.target.value;
|
|
156
|
+
await ((_e = this.menuContent) === null || _e === void 0 ? void 0 : _e.show());
|
|
157
|
+
this._input.style.color = "#ff0000";
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
else {
|
|
161
|
+
(_f = this.commentContent) === null || _f === void 0 ? void 0 : _f.hide();
|
|
162
|
+
(_g = this.menuContent) === null || _g === void 0 ? void 0 : _g.hide();
|
|
163
|
+
this.value = null;
|
|
164
|
+
this._input.style.color = "#000000";
|
|
165
|
+
this.invalid = false;
|
|
166
|
+
}
|
|
167
|
+
this.change.emit();
|
|
168
|
+
}
|
|
169
|
+
onClickSave() {
|
|
170
|
+
var _a;
|
|
171
|
+
(_a = this.commentContent) === null || _a === void 0 ? void 0 : _a.hide();
|
|
172
|
+
this.data = this.data.map(data => (Object.assign(Object.assign({}, data), (data.key === this.value.key && {
|
|
173
|
+
lateMin: this.value.lateMin,
|
|
174
|
+
comment: this.value.comment,
|
|
175
|
+
}))));
|
|
176
|
+
forceUpdate(this.el);
|
|
177
|
+
this.onChangeDropdown.emit(this.value);
|
|
178
|
+
this.change.emit();
|
|
179
|
+
}
|
|
180
|
+
async onClick(item) {
|
|
181
|
+
var _a, _b;
|
|
182
|
+
if (!(item === null || item === void 0 ? void 0 : item.hideComment)) {
|
|
183
|
+
(_a = this.commentContent) === null || _a === void 0 ? void 0 : _a.show();
|
|
184
|
+
}
|
|
185
|
+
await ((_b = this.menuContent) === null || _b === void 0 ? void 0 : _b.hide());
|
|
186
|
+
this.onSelectItem(item);
|
|
187
|
+
}
|
|
188
|
+
render() {
|
|
189
|
+
var _a, _b, _c, _d, _e;
|
|
190
|
+
const { size, label, placeholder, required, disabled, readonly, _id, invalid, hideComment, noCaption, customErrorMessage, caption, captionType, captionError, hideCaption } = this;
|
|
191
|
+
const { base, inputArea, input, button, menu, menuItem, commentArea, disabledItem, content, selectedItem } = inputDropdownStyle({ size, invalid, hideComment, disabled });
|
|
192
|
+
const MenuTemplates = () => {
|
|
193
|
+
var _a;
|
|
194
|
+
return (h(Fragment, null, this.isOpenMenu ? (h("div", { class: menu() }, this.invalid && (h("li", { class: menuItem() + " tw-bg-red-100 hover:tw-bg-red-100" }, h("span", { class: "tw-text-red-900" }, h("i", { class: "far fa-exclamation-circle" })), h("span", null, "There is not mark you entered, please use"))), (_a = this.data) === null || _a === void 0 ? void 0 :
|
|
195
|
+
_a.map((item) => (h(Fragment, null, !(item === null || item === void 0 ? void 0 : item.disabled) ? (h("li", { class: (item === null || item === void 0 ? void 0 : item.selected) ? selectedItem() : menuItem(), onClick: () => this.onClick(item) }, h("span", null, item.key), " - ", h("span", null, item.value))) : (h("li", { class: disabledItem() }, h("span", null, item.key), " - ", h("span", null, item.value)))))))) : null));
|
|
196
|
+
};
|
|
197
|
+
const CommentTemplate = () => {
|
|
198
|
+
var _a, _b, _c;
|
|
199
|
+
return (h(Fragment, null, this.isOpenMenu ? (h("div", { class: commentArea() }, this.isLate ? (h(Fragment, null, h("bcm-input", { label: "Minus Late", required: true, id: this._id + "-input-dropdown-late-content-input", type: "number", "full-width": true, "no-caption": true, autocomplete: false, value: (_a = this.value) === null || _a === void 0 ? void 0 : _a.lateMin, placeholder: "Enter Minus Late", "onBcm-change": ({ detail }) => (this.value.lateMin = +detail) }, h("i", { slot: "prefix", class: "far fa-clock" })))) : null, h("bcm-textarea", { "full-width": true, value: (_c = (_b = this.value) === null || _b === void 0 ? void 0 : _b.comment) !== null && _c !== void 0 ? _c : "", "onBcm-change": ({ detail }) => (this.value.comment = detail), label: "Description", "no-caption": true, rows: 4 }), h("footer", { class: "tw-flex tw-w-full tw-flex-row tw-items-center tw-justify-end tw-gap-2" }, h("bcm-button", { icon: "fas fa-times", kind: "ghost", "icon-position": "prefix", onClick: () => { var _a; return (_a = this.commentContent) === null || _a === void 0 ? void 0 : _a.hide(); } }, "Close"), h("bcm-button", { icon: "fas fa-save", "icon-position": "prefix", onClick: () => this.onClickSave() }, "Save")))) : null));
|
|
200
|
+
};
|
|
201
|
+
return (h(Host, { class: base() }, label && h("bcm-label", { htmlFor: _id + "-dropdown-input", size: size, value: label, required: required }), h("div", { class: content() }, h("div", { class: inputArea() }, h("input", { id: _id + "-dropdown-input", class: input(), style: { color: (_a = this.value) === null || _a === void 0 ? void 0 : _a.color }, type: "text", tabIndex: -1, placeholder: placeholder, value: (_b = this.value) === null || _b === void 0 ? void 0 : _b.key, disabled: disabled, required: required, autoComplete: "off", readOnly: readonly, onKeyPress: e => this.handleKeyPress(e), onInput: e => this.handleInput(e), ref: el => (this._input = el) }), h("button", { disabled: disabled, id: `i-dropdown-button-${_id}`, class: button(), onClick: () => (this.isOpenMenu = true) }, h("i", { class: "fas fa-chevron-down" })), h("bcm-linked", { "onBcm-open": ({ detail }) => { var _a; return detail && ((_a = this.commentContent) === null || _a === void 0 ? void 0 : _a.hide()); }, class: "tw-mt-1", id: `i-dropdown-menu-${_id}`, "target-id": `i-dropdown-button-${_id}`, placement: "bottom-start" }, h(MenuTemplates, null)), h("bcm-linked", { id: `i-dropdown-comment-${_id}`, "target-id": _id, trigger: "custom", placement: "left" }, h(CommentTemplate, null))), !this.hideComment ? (h("span", { onClick: () => {
|
|
202
|
+
var _a, _b;
|
|
203
|
+
if ((_a = this.value) === null || _a === void 0 ? void 0 : _a.key) {
|
|
204
|
+
this.isOpenMenu = true;
|
|
205
|
+
(_b = this.commentContent) === null || _b === void 0 ? void 0 : _b.show();
|
|
206
|
+
}
|
|
207
|
+
}, class: cs(((_c = this.value) === null || _c === void 0 ? void 0 : _c.comment) || ((_d = this.value) === null || _d === void 0 ? void 0 : _d.lateMin) > 0 ? "tw-text-slate-600" : "tw-text-slate-400", {
|
|
208
|
+
"tw-cursor-pointer": (_e = this.value) === null || _e === void 0 ? void 0 : _e.key,
|
|
209
|
+
}) }, h("i", { class: "fas fa-comment" }))) : null), !hideCaption && h(CaptionTemplate, { noCaption: noCaption, captionType: captionType, captionError: captionError, caption: caption, customErrorMessage: customErrorMessage })));
|
|
210
|
+
}
|
|
211
|
+
static get is() { return "bcm-input-dropdown"; }
|
|
212
|
+
static get originalStyleUrls() {
|
|
213
|
+
return {
|
|
214
|
+
"$": ["input-dropdown.scss"]
|
|
215
|
+
};
|
|
216
|
+
}
|
|
217
|
+
static get styleUrls() {
|
|
218
|
+
return {
|
|
219
|
+
"$": ["input-dropdown.css"]
|
|
220
|
+
};
|
|
221
|
+
}
|
|
222
|
+
static get properties() {
|
|
223
|
+
return {
|
|
224
|
+
"_id": {
|
|
225
|
+
"type": "string",
|
|
226
|
+
"mutable": false,
|
|
227
|
+
"complexType": {
|
|
228
|
+
"original": "string",
|
|
229
|
+
"resolved": "string",
|
|
230
|
+
"references": {}
|
|
231
|
+
},
|
|
232
|
+
"required": false,
|
|
233
|
+
"optional": false,
|
|
234
|
+
"docs": {
|
|
235
|
+
"tags": [],
|
|
236
|
+
"text": ""
|
|
237
|
+
},
|
|
238
|
+
"attribute": "id",
|
|
239
|
+
"reflect": true,
|
|
240
|
+
"defaultValue": "Generate.UID()"
|
|
241
|
+
},
|
|
242
|
+
"value": {
|
|
243
|
+
"type": "unknown",
|
|
244
|
+
"mutable": true,
|
|
245
|
+
"complexType": {
|
|
246
|
+
"original": "Bcm.InputDropdownData",
|
|
247
|
+
"resolved": "InputDropdownData",
|
|
248
|
+
"references": {
|
|
249
|
+
"Bcm": {
|
|
250
|
+
"location": "import",
|
|
251
|
+
"path": "@bcm/model"
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
},
|
|
255
|
+
"required": false,
|
|
256
|
+
"optional": false,
|
|
257
|
+
"docs": {
|
|
258
|
+
"tags": [],
|
|
259
|
+
"text": ""
|
|
260
|
+
}
|
|
261
|
+
},
|
|
262
|
+
"defaultValue": {
|
|
263
|
+
"type": "unknown",
|
|
264
|
+
"mutable": true,
|
|
265
|
+
"complexType": {
|
|
266
|
+
"original": "Object",
|
|
267
|
+
"resolved": "Object",
|
|
268
|
+
"references": {
|
|
269
|
+
"Object": {
|
|
270
|
+
"location": "global"
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
},
|
|
274
|
+
"required": false,
|
|
275
|
+
"optional": false,
|
|
276
|
+
"docs": {
|
|
277
|
+
"tags": [],
|
|
278
|
+
"text": ""
|
|
279
|
+
},
|
|
280
|
+
"defaultValue": "{}"
|
|
281
|
+
},
|
|
282
|
+
"lateKeys": {
|
|
283
|
+
"type": "string",
|
|
284
|
+
"mutable": true,
|
|
285
|
+
"complexType": {
|
|
286
|
+
"original": "string",
|
|
287
|
+
"resolved": "string",
|
|
288
|
+
"references": {}
|
|
289
|
+
},
|
|
290
|
+
"required": false,
|
|
291
|
+
"optional": false,
|
|
292
|
+
"docs": {
|
|
293
|
+
"tags": [],
|
|
294
|
+
"text": ""
|
|
295
|
+
},
|
|
296
|
+
"attribute": "late-keys",
|
|
297
|
+
"reflect": false,
|
|
298
|
+
"defaultValue": "\"L\""
|
|
299
|
+
},
|
|
300
|
+
"maxCharacterLimit": {
|
|
301
|
+
"type": "number",
|
|
302
|
+
"mutable": true,
|
|
303
|
+
"complexType": {
|
|
304
|
+
"original": "number",
|
|
305
|
+
"resolved": "number",
|
|
306
|
+
"references": {}
|
|
307
|
+
},
|
|
308
|
+
"required": false,
|
|
309
|
+
"optional": false,
|
|
310
|
+
"docs": {
|
|
311
|
+
"tags": [],
|
|
312
|
+
"text": ""
|
|
313
|
+
},
|
|
314
|
+
"attribute": "max-character-limit",
|
|
315
|
+
"reflect": false,
|
|
316
|
+
"defaultValue": "1"
|
|
317
|
+
},
|
|
318
|
+
"size": {
|
|
319
|
+
"type": "string",
|
|
320
|
+
"mutable": false,
|
|
321
|
+
"complexType": {
|
|
322
|
+
"original": "SizeTypes",
|
|
323
|
+
"resolved": "\"large\" | \"medium\" | \"small\"",
|
|
324
|
+
"references": {
|
|
325
|
+
"SizeTypes": {
|
|
326
|
+
"location": "import",
|
|
327
|
+
"path": "@bcm/model"
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
},
|
|
331
|
+
"required": false,
|
|
332
|
+
"optional": false,
|
|
333
|
+
"docs": {
|
|
334
|
+
"tags": [],
|
|
335
|
+
"text": ""
|
|
336
|
+
},
|
|
337
|
+
"attribute": "size",
|
|
338
|
+
"reflect": false,
|
|
339
|
+
"defaultValue": "Bcm.Size.medium"
|
|
340
|
+
},
|
|
341
|
+
"label": {
|
|
342
|
+
"type": "string",
|
|
343
|
+
"mutable": false,
|
|
344
|
+
"complexType": {
|
|
345
|
+
"original": "string",
|
|
346
|
+
"resolved": "string",
|
|
347
|
+
"references": {}
|
|
348
|
+
},
|
|
349
|
+
"required": false,
|
|
350
|
+
"optional": false,
|
|
351
|
+
"docs": {
|
|
352
|
+
"tags": [],
|
|
353
|
+
"text": ""
|
|
354
|
+
},
|
|
355
|
+
"attribute": "label",
|
|
356
|
+
"reflect": false
|
|
357
|
+
},
|
|
358
|
+
"placeholder": {
|
|
359
|
+
"type": "string",
|
|
360
|
+
"mutable": false,
|
|
361
|
+
"complexType": {
|
|
362
|
+
"original": "string",
|
|
363
|
+
"resolved": "string",
|
|
364
|
+
"references": {}
|
|
365
|
+
},
|
|
366
|
+
"required": false,
|
|
367
|
+
"optional": false,
|
|
368
|
+
"docs": {
|
|
369
|
+
"tags": [],
|
|
370
|
+
"text": ""
|
|
371
|
+
},
|
|
372
|
+
"attribute": "placeholder",
|
|
373
|
+
"reflect": false
|
|
374
|
+
},
|
|
375
|
+
"name": {
|
|
376
|
+
"type": "string",
|
|
377
|
+
"mutable": false,
|
|
378
|
+
"complexType": {
|
|
379
|
+
"original": "string",
|
|
380
|
+
"resolved": "string",
|
|
381
|
+
"references": {}
|
|
382
|
+
},
|
|
383
|
+
"required": false,
|
|
384
|
+
"optional": false,
|
|
385
|
+
"docs": {
|
|
386
|
+
"tags": [],
|
|
387
|
+
"text": ""
|
|
388
|
+
},
|
|
389
|
+
"attribute": "name",
|
|
390
|
+
"reflect": false
|
|
391
|
+
},
|
|
392
|
+
"fullWidth": {
|
|
393
|
+
"type": "boolean",
|
|
394
|
+
"mutable": false,
|
|
395
|
+
"complexType": {
|
|
396
|
+
"original": "boolean",
|
|
397
|
+
"resolved": "boolean",
|
|
398
|
+
"references": {}
|
|
399
|
+
},
|
|
400
|
+
"required": false,
|
|
401
|
+
"optional": false,
|
|
402
|
+
"docs": {
|
|
403
|
+
"tags": [],
|
|
404
|
+
"text": ""
|
|
405
|
+
},
|
|
406
|
+
"attribute": "full-width",
|
|
407
|
+
"reflect": true,
|
|
408
|
+
"defaultValue": "false"
|
|
409
|
+
},
|
|
410
|
+
"hideComment": {
|
|
411
|
+
"type": "boolean",
|
|
412
|
+
"mutable": false,
|
|
413
|
+
"complexType": {
|
|
414
|
+
"original": "boolean",
|
|
415
|
+
"resolved": "boolean",
|
|
416
|
+
"references": {}
|
|
417
|
+
},
|
|
418
|
+
"required": false,
|
|
419
|
+
"optional": false,
|
|
420
|
+
"docs": {
|
|
421
|
+
"tags": [],
|
|
422
|
+
"text": ""
|
|
423
|
+
},
|
|
424
|
+
"attribute": "hide-comment",
|
|
425
|
+
"reflect": true,
|
|
426
|
+
"defaultValue": "false"
|
|
427
|
+
},
|
|
428
|
+
"hideCaption": {
|
|
429
|
+
"type": "boolean",
|
|
430
|
+
"mutable": false,
|
|
431
|
+
"complexType": {
|
|
432
|
+
"original": "boolean",
|
|
433
|
+
"resolved": "boolean",
|
|
434
|
+
"references": {}
|
|
435
|
+
},
|
|
436
|
+
"required": false,
|
|
437
|
+
"optional": false,
|
|
438
|
+
"docs": {
|
|
439
|
+
"tags": [],
|
|
440
|
+
"text": ""
|
|
441
|
+
},
|
|
442
|
+
"attribute": "hide-caption",
|
|
443
|
+
"reflect": false,
|
|
444
|
+
"defaultValue": "true"
|
|
445
|
+
},
|
|
446
|
+
"disabled": {
|
|
447
|
+
"type": "boolean",
|
|
448
|
+
"mutable": false,
|
|
449
|
+
"complexType": {
|
|
450
|
+
"original": "boolean",
|
|
451
|
+
"resolved": "boolean",
|
|
452
|
+
"references": {}
|
|
453
|
+
},
|
|
454
|
+
"required": false,
|
|
455
|
+
"optional": false,
|
|
456
|
+
"docs": {
|
|
457
|
+
"tags": [],
|
|
458
|
+
"text": ""
|
|
459
|
+
},
|
|
460
|
+
"attribute": "disabled",
|
|
461
|
+
"reflect": false,
|
|
462
|
+
"defaultValue": "false"
|
|
463
|
+
},
|
|
464
|
+
"required": {
|
|
465
|
+
"type": "boolean",
|
|
466
|
+
"mutable": false,
|
|
467
|
+
"complexType": {
|
|
468
|
+
"original": "boolean",
|
|
469
|
+
"resolved": "boolean",
|
|
470
|
+
"references": {}
|
|
471
|
+
},
|
|
472
|
+
"required": false,
|
|
473
|
+
"optional": false,
|
|
474
|
+
"docs": {
|
|
475
|
+
"tags": [],
|
|
476
|
+
"text": ""
|
|
477
|
+
},
|
|
478
|
+
"attribute": "required",
|
|
479
|
+
"reflect": false,
|
|
480
|
+
"defaultValue": "false"
|
|
481
|
+
},
|
|
482
|
+
"readonly": {
|
|
483
|
+
"type": "boolean",
|
|
484
|
+
"mutable": false,
|
|
485
|
+
"complexType": {
|
|
486
|
+
"original": "boolean",
|
|
487
|
+
"resolved": "boolean",
|
|
488
|
+
"references": {}
|
|
489
|
+
},
|
|
490
|
+
"required": false,
|
|
491
|
+
"optional": false,
|
|
492
|
+
"docs": {
|
|
493
|
+
"tags": [],
|
|
494
|
+
"text": ""
|
|
495
|
+
},
|
|
496
|
+
"attribute": "readonly",
|
|
497
|
+
"reflect": false,
|
|
498
|
+
"defaultValue": "false"
|
|
499
|
+
},
|
|
500
|
+
"data": {
|
|
501
|
+
"type": "unknown",
|
|
502
|
+
"mutable": true,
|
|
503
|
+
"complexType": {
|
|
504
|
+
"original": "Bcm.InputDropdownData[]",
|
|
505
|
+
"resolved": "InputDropdownData[]",
|
|
506
|
+
"references": {
|
|
507
|
+
"Bcm": {
|
|
508
|
+
"location": "import",
|
|
509
|
+
"path": "@bcm/model"
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
},
|
|
513
|
+
"required": false,
|
|
514
|
+
"optional": false,
|
|
515
|
+
"docs": {
|
|
516
|
+
"tags": [],
|
|
517
|
+
"text": ""
|
|
518
|
+
},
|
|
519
|
+
"defaultValue": "[\n { key: \"/\", value: \"Present\", color: \"#00b050\" },\n { key: \"B\", value: \"Educated off site (NOT dual registration)\", color: \"#ffc000\" },\n { key: \"C\", value: \"Other authorised circumstance\", color: \"#ffc000\" },\n { key: \"D\", value: \"Dual registration\", color: \"#0070c0\" },\n { key: \"E\", value: \"Excluded\", color: \"#ff0000\" },\n { key: \"F\", value: \"Free Study\", color: \"#ffc000\" },\n { key: \"I\", value: \"Illness\", color: \"#ff0000\" },\n { key: \"J\", value: \"Interview\", color: \"#ffc000\" },\n { key: \"L\", value: \"Late before reg. closed\", color: \"#ffc000\" },\n ]"
|
|
520
|
+
},
|
|
521
|
+
"caption": {
|
|
522
|
+
"type": "string",
|
|
523
|
+
"mutable": true,
|
|
524
|
+
"complexType": {
|
|
525
|
+
"original": "string",
|
|
526
|
+
"resolved": "string",
|
|
527
|
+
"references": {}
|
|
528
|
+
},
|
|
529
|
+
"required": false,
|
|
530
|
+
"optional": false,
|
|
531
|
+
"docs": {
|
|
532
|
+
"tags": [],
|
|
533
|
+
"text": ""
|
|
534
|
+
},
|
|
535
|
+
"attribute": "caption",
|
|
536
|
+
"reflect": false
|
|
537
|
+
},
|
|
538
|
+
"noCaption": {
|
|
539
|
+
"type": "boolean",
|
|
540
|
+
"mutable": true,
|
|
541
|
+
"complexType": {
|
|
542
|
+
"original": "boolean",
|
|
543
|
+
"resolved": "boolean",
|
|
544
|
+
"references": {}
|
|
545
|
+
},
|
|
546
|
+
"required": false,
|
|
547
|
+
"optional": false,
|
|
548
|
+
"docs": {
|
|
549
|
+
"tags": [],
|
|
550
|
+
"text": ""
|
|
551
|
+
},
|
|
552
|
+
"attribute": "no-caption",
|
|
553
|
+
"reflect": false,
|
|
554
|
+
"defaultValue": "false"
|
|
555
|
+
},
|
|
556
|
+
"captionType": {
|
|
557
|
+
"type": "string",
|
|
558
|
+
"mutable": true,
|
|
559
|
+
"complexType": {
|
|
560
|
+
"original": "StatusTypes",
|
|
561
|
+
"resolved": "\"default\" | \"error\" | \"info\" | \"success\" | \"warning\"",
|
|
562
|
+
"references": {
|
|
563
|
+
"StatusTypes": {
|
|
564
|
+
"location": "import",
|
|
565
|
+
"path": "@bcm/model"
|
|
566
|
+
}
|
|
567
|
+
}
|
|
568
|
+
},
|
|
569
|
+
"required": false,
|
|
570
|
+
"optional": false,
|
|
571
|
+
"docs": {
|
|
572
|
+
"tags": [],
|
|
573
|
+
"text": ""
|
|
574
|
+
},
|
|
575
|
+
"attribute": "caption-type",
|
|
576
|
+
"reflect": false,
|
|
577
|
+
"defaultValue": "Bcm.Status.default"
|
|
578
|
+
},
|
|
579
|
+
"captionError": {
|
|
580
|
+
"type": "string",
|
|
581
|
+
"mutable": true,
|
|
582
|
+
"complexType": {
|
|
583
|
+
"original": "string",
|
|
584
|
+
"resolved": "string",
|
|
585
|
+
"references": {}
|
|
586
|
+
},
|
|
587
|
+
"required": false,
|
|
588
|
+
"optional": false,
|
|
589
|
+
"docs": {
|
|
590
|
+
"tags": [],
|
|
591
|
+
"text": ""
|
|
592
|
+
},
|
|
593
|
+
"attribute": "caption-error",
|
|
594
|
+
"reflect": false
|
|
595
|
+
},
|
|
596
|
+
"customErrorMessage": {
|
|
597
|
+
"type": "string",
|
|
598
|
+
"mutable": true,
|
|
599
|
+
"complexType": {
|
|
600
|
+
"original": "string",
|
|
601
|
+
"resolved": "string",
|
|
602
|
+
"references": {}
|
|
603
|
+
},
|
|
604
|
+
"required": false,
|
|
605
|
+
"optional": false,
|
|
606
|
+
"docs": {
|
|
607
|
+
"tags": [],
|
|
608
|
+
"text": ""
|
|
609
|
+
},
|
|
610
|
+
"attribute": "custom-error-message",
|
|
611
|
+
"reflect": false
|
|
612
|
+
}
|
|
613
|
+
};
|
|
614
|
+
}
|
|
615
|
+
static get states() {
|
|
616
|
+
return {
|
|
617
|
+
"captionCache": {},
|
|
618
|
+
"captionTypeCache": {},
|
|
619
|
+
"isOpenMenu": {},
|
|
620
|
+
"invalid": {}
|
|
621
|
+
};
|
|
622
|
+
}
|
|
623
|
+
static get events() {
|
|
624
|
+
return [{
|
|
625
|
+
"method": "change",
|
|
626
|
+
"name": "bcm-change",
|
|
627
|
+
"bubbles": true,
|
|
628
|
+
"cancelable": true,
|
|
629
|
+
"composed": true,
|
|
630
|
+
"docs": {
|
|
631
|
+
"tags": [],
|
|
632
|
+
"text": ""
|
|
633
|
+
},
|
|
634
|
+
"complexType": {
|
|
635
|
+
"original": "any",
|
|
636
|
+
"resolved": "any",
|
|
637
|
+
"references": {}
|
|
638
|
+
}
|
|
639
|
+
}, {
|
|
640
|
+
"method": "onChangeDropdown",
|
|
641
|
+
"name": "bcm-input-dropdown-change",
|
|
642
|
+
"bubbles": true,
|
|
643
|
+
"cancelable": true,
|
|
644
|
+
"composed": true,
|
|
645
|
+
"docs": {
|
|
646
|
+
"tags": [],
|
|
647
|
+
"text": ""
|
|
648
|
+
},
|
|
649
|
+
"complexType": {
|
|
650
|
+
"original": "any",
|
|
651
|
+
"resolved": "any",
|
|
652
|
+
"references": {}
|
|
653
|
+
}
|
|
654
|
+
}];
|
|
655
|
+
}
|
|
656
|
+
static get methods() {
|
|
657
|
+
return {
|
|
658
|
+
"set": {
|
|
659
|
+
"complexType": {
|
|
660
|
+
"signature": "(data: Bcm.InputDropdownData[]) => Promise<void>",
|
|
661
|
+
"parameters": [{
|
|
662
|
+
"tags": [],
|
|
663
|
+
"text": ""
|
|
664
|
+
}],
|
|
665
|
+
"references": {
|
|
666
|
+
"Promise": {
|
|
667
|
+
"location": "global"
|
|
668
|
+
},
|
|
669
|
+
"Bcm": {
|
|
670
|
+
"location": "import",
|
|
671
|
+
"path": "@bcm/model"
|
|
672
|
+
}
|
|
673
|
+
},
|
|
674
|
+
"return": "Promise<void>"
|
|
675
|
+
},
|
|
676
|
+
"docs": {
|
|
677
|
+
"text": "",
|
|
678
|
+
"tags": []
|
|
679
|
+
}
|
|
680
|
+
},
|
|
681
|
+
"get": {
|
|
682
|
+
"complexType": {
|
|
683
|
+
"signature": "() => Promise<Bcm.InputDropdownData>",
|
|
684
|
+
"parameters": [],
|
|
685
|
+
"references": {
|
|
686
|
+
"Promise": {
|
|
687
|
+
"location": "global"
|
|
688
|
+
},
|
|
689
|
+
"Bcm": {
|
|
690
|
+
"location": "import",
|
|
691
|
+
"path": "@bcm/model"
|
|
692
|
+
}
|
|
693
|
+
},
|
|
694
|
+
"return": "Promise<InputDropdownData>"
|
|
695
|
+
},
|
|
696
|
+
"docs": {
|
|
697
|
+
"text": "",
|
|
698
|
+
"tags": []
|
|
699
|
+
}
|
|
700
|
+
},
|
|
701
|
+
"setClear": {
|
|
702
|
+
"complexType": {
|
|
703
|
+
"signature": "() => Promise<void>",
|
|
704
|
+
"parameters": [],
|
|
705
|
+
"references": {
|
|
706
|
+
"Promise": {
|
|
707
|
+
"location": "global"
|
|
708
|
+
}
|
|
709
|
+
},
|
|
710
|
+
"return": "Promise<void>"
|
|
711
|
+
},
|
|
712
|
+
"docs": {
|
|
713
|
+
"text": "",
|
|
714
|
+
"tags": []
|
|
715
|
+
}
|
|
716
|
+
},
|
|
717
|
+
"resetCaption": {
|
|
718
|
+
"complexType": {
|
|
719
|
+
"signature": "() => Promise<void>",
|
|
720
|
+
"parameters": [],
|
|
721
|
+
"references": {
|
|
722
|
+
"Promise": {
|
|
723
|
+
"location": "global"
|
|
724
|
+
}
|
|
725
|
+
},
|
|
726
|
+
"return": "Promise<void>"
|
|
727
|
+
},
|
|
728
|
+
"docs": {
|
|
729
|
+
"text": "",
|
|
730
|
+
"tags": []
|
|
731
|
+
}
|
|
732
|
+
}
|
|
733
|
+
};
|
|
734
|
+
}
|
|
735
|
+
static get elementRef() { return "el"; }
|
|
736
|
+
static get watchers() {
|
|
737
|
+
return [{
|
|
738
|
+
"propName": "defaultValue",
|
|
739
|
+
"methodName": "watchDefaultValueHandler"
|
|
740
|
+
}];
|
|
741
|
+
}
|
|
742
|
+
static get listeners() {
|
|
743
|
+
return [{
|
|
744
|
+
"name": "click",
|
|
745
|
+
"method": "clickListener",
|
|
746
|
+
"target": "document",
|
|
747
|
+
"capture": true,
|
|
748
|
+
"passive": false
|
|
749
|
+
}];
|
|
750
|
+
}
|
|
751
|
+
}
|