bromcom-ui 2.3.58 → 2.3.62
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/app-globals-0f993ce5.js +3 -0
- package/dist/{esm → bromcom-ui}/bcm-alert.entry.js +2 -2
- package/dist/{esm → bromcom-ui}/bcm-autocomplete.entry.js +2 -2
- package/dist/{esm → bromcom-ui}/bcm-avatar.entry.js +2 -2
- package/dist/{esm → bromcom-ui}/bcm-badge.entry.js +3 -4
- package/dist/{esm → bromcom-ui}/bcm-breadcrumb.entry.js +2 -2
- package/dist/bromcom-ui/bcm-button.entry.js +242 -0
- package/dist/{esm → bromcom-ui}/bcm-card-footer.entry.js +1 -1
- package/dist/{esm → bromcom-ui}/bcm-card-header.entry.js +1 -1
- package/dist/{esm → bromcom-ui}/bcm-card.entry.js +2 -2
- package/dist/bromcom-ui/bcm-checkbox-group.entry.js +269 -0
- package/dist/bromcom-ui/bcm-checkbox-lite.entry.js +43 -0
- package/dist/bromcom-ui/bcm-checkbox.entry.js +138 -0
- package/dist/{esm → bromcom-ui}/bcm-collapse-group.entry.js +2 -2
- package/dist/{esm → bromcom-ui}/bcm-collapse.entry.js +2 -2
- package/dist/{esm → bromcom-ui}/bcm-colorpicker.entry.js +4 -4
- package/dist/{esm → bromcom-ui}/bcm-comment-editor.entry.js +2 -2
- package/dist/{esm → bromcom-ui}/bcm-comment-group.entry.js +2 -2
- package/dist/{esm → bromcom-ui}/bcm-comment.entry.js +2 -2
- package/dist/{esm → bromcom-ui}/bcm-content.entry.js +2 -2
- package/dist/{esm → bromcom-ui}/bcm-date-picker.entry.js +33 -29
- package/dist/{esm → bromcom-ui}/bcm-datetime-picker.entry.js +48 -16
- package/dist/bromcom-ui/bcm-divider.entry.js +24 -0
- package/dist/{esm → bromcom-ui}/bcm-dropdown-button.entry.js +2 -2
- package/dist/{esm/bcm-dropdown-group_2.entry.js → bromcom-ui/bcm-dropdown-group.entry.js} +3 -36
- package/dist/bromcom-ui/bcm-dropdown-item.entry.js +37 -0
- package/dist/{esm → bromcom-ui}/bcm-dropdown-list.entry.js +2 -2
- package/dist/{esm → bromcom-ui}/bcm-dropdown.entry.js +3 -3
- package/dist/bromcom-ui/bcm-empty.entry.js +67 -0
- package/dist/{esm → bromcom-ui}/bcm-error-layout.entry.js +2 -2
- package/dist/{esm → bromcom-ui}/bcm-footer.entry.js +2 -2
- package/dist/{esm → bromcom-ui}/bcm-form-group.entry.js +2 -2
- package/dist/{collection/components/organism/form/form.js → bromcom-ui/bcm-form.entry.js} +57 -213
- package/dist/{esm → bromcom-ui}/bcm-header.entry.js +2 -2
- package/dist/{esm/bcm-button_11.entry.js → bromcom-ui/bcm-icon.entry.js} +7 -2277
- package/dist/bromcom-ui/bcm-input.entry.js +380 -0
- package/dist/{collection/models/bcm.js → bromcom-ui/bcm-label.entry.js} +116 -2
- package/dist/{esm → bromcom-ui}/bcm-link.entry.js +2 -2
- package/dist/{esm/bcm-list-item_2.entry.js → bromcom-ui/bcm-list-item.entry.js} +3 -102
- package/dist/{esm → bromcom-ui}/bcm-list-select.entry.js +7 -3
- package/dist/{esm → bromcom-ui}/bcm-list.entry.js +8 -3
- package/dist/bromcom-ui/bcm-listbox-group.entry.js +26 -0
- package/dist/bromcom-ui/bcm-listbox-item.entry.js +159 -0
- package/dist/{collection/components/organism/listbox/listbox.js → bromcom-ui/bcm-listbox.entry.js} +49 -1109
- package/dist/{esm/bcm-menu-group_2.entry.js → bromcom-ui/bcm-menu-group.entry.js} +3 -85
- package/dist/bromcom-ui/bcm-menu-item.entry.js +86 -0
- package/dist/{esm → bromcom-ui}/bcm-menu.entry.js +2 -2
- package/dist/{esm → bromcom-ui}/bcm-message.entry.js +2 -2
- package/dist/{esm → bromcom-ui}/bcm-modal.entry.js +8 -2
- package/dist/{esm → bromcom-ui}/bcm-notification.entry.js +2 -2
- package/dist/{esm → bromcom-ui}/bcm-popconfirm-box.entry.js +2 -2
- package/dist/{esm → bromcom-ui}/bcm-popconfirm.entry.js +4 -4
- package/dist/{esm → bromcom-ui}/bcm-popover-box.entry.js +2 -2
- package/dist/{esm → bromcom-ui}/bcm-popover.entry.js +4 -4
- package/dist/{esm → bromcom-ui}/bcm-progress.entry.js +2 -2
- package/dist/{esm/bcm-pulldown-group_2.entry.js → bromcom-ui/bcm-pulldown-group.entry.js} +4 -58
- package/dist/bromcom-ui/bcm-pulldown-item.entry.js +58 -0
- package/dist/{esm → bromcom-ui}/bcm-pulldown.entry.js +3 -3
- package/dist/{esm → bromcom-ui}/bcm-radio-group.entry.js +2 -2
- package/dist/{esm → bromcom-ui}/bcm-radio.entry.js +3 -4
- package/dist/{esm → bromcom-ui}/bcm-result.entry.js +2 -2
- package/dist/bromcom-ui/bcm-search.entry.js +162 -0
- package/dist/{esm → bromcom-ui}/bcm-select-box.entry.js +2 -2
- package/dist/{esm → bromcom-ui}/bcm-select-group.entry.js +2 -2
- package/dist/{esm → bromcom-ui}/bcm-select-option.entry.js +2 -2
- package/dist/{esm → bromcom-ui}/bcm-select.entry.js +8 -6
- package/dist/{esm → bromcom-ui}/bcm-selecto.entry.js +2 -2
- package/dist/{esm → bromcom-ui}/bcm-slider.entry.js +2 -2
- package/dist/{esm → bromcom-ui}/bcm-sub-comment.entry.js +2 -2
- package/dist/bromcom-ui/bcm-switch.entry.js +82 -0
- package/dist/{esm → bromcom-ui}/bcm-tab-pane.entry.js +2 -2
- package/dist/{esm → bromcom-ui}/bcm-tab.entry.js +2 -2
- package/dist/{esm → bromcom-ui}/bcm-tabs-content.entry.js +3 -3
- package/dist/{esm → bromcom-ui}/bcm-tabs.entry.js +3 -3
- package/dist/bromcom-ui/bcm-tag.entry.js +102 -0
- package/dist/{esm → bromcom-ui}/bcm-text.entry.js +3 -4
- package/dist/bromcom-ui/bcm-textarea.entry.js +134 -0
- package/dist/{esm → bromcom-ui}/bcm-time-picker.entry.js +2 -2
- package/dist/{esm → bromcom-ui}/bcm-timeline-item.entry.js +2 -2
- package/dist/{esm → bromcom-ui}/bcm-timeline.entry.js +2 -2
- package/dist/bromcom-ui/bcm-tooltip-box.entry.js +32 -0
- package/dist/bromcom-ui/bcm-tooltip.entry.js +138 -0
- package/dist/{esm → bromcom-ui}/bcm-treeview-group.entry.js +1 -1
- package/dist/bromcom-ui/bcm-treeview-item.entry.js +354 -0
- package/dist/{collection/components/organism/treeview/treeview.js → bromcom-ui/bcm-treeview.entry.js} +36 -907
- package/dist/{esm → bromcom-ui}/bcm-upload.entry.js +3 -3
- package/dist/bromcom-ui/bromcom-ui.css +411 -1
- package/dist/bromcom-ui/bromcom-ui.esm.js +122 -1
- package/dist/bromcom-ui/css-shim-af10229c.js +4 -0
- package/dist/bromcom-ui/datetime-helper-c373f888.js +5 -0
- package/dist/bromcom-ui/dom-424264d0.js +73 -0
- package/dist/{esm/element-dragger-97a8f373.js → bromcom-ui/element-dragger-e40f0410.js} +1 -1
- package/dist/bromcom-ui/index-43956e3c.js +99 -0
- package/dist/{cjs/index-ce8878ec.js → bromcom-ui/index-9dbea026.js} +1269 -202
- package/dist/bromcom-ui/index.esm.js +1 -0
- package/dist/{esm/popover-placement-a4ab1587.js → bromcom-ui/popover-placement-fb1f91e9.js} +4 -0
- package/dist/bromcom-ui/shadow-css-3ef739e8.js +383 -0
- package/dist/{esm → bromcom-ui}/types-0e4b533d.js +0 -0
- package/dist/{esm → bromcom-ui}/types-4b11eac9.js +0 -0
- package/dist/{esm → bromcom-ui}/types-911a8837.js +0 -0
- package/dist/{esm → bromcom-ui}/types-acccf7c5.js +0 -0
- package/dist/{collection/utils/utils.js → bromcom-ui/utils-1feb01eb.js} +231 -13
- package/dist/types/components/molecules/modal/modal.d.ts +2 -0
- package/dist/types/components/organism/date-picker/date-picker.d.ts +10 -6
- package/dist/types/components/organism/datetime-picker/datetime-picker.d.ts +3 -1
- package/dist/types/components/organism/form/form.d.ts +1 -1
- package/dist/types/components.d.ts +14 -11
- package/dist/types/helper/datetime-helper.d.ts +3 -0
- package/package.json +1 -1
- package/dist/bromcom-ui/p-05dfc182.entry.js +0 -1
- package/dist/bromcom-ui/p-0fe77770.entry.js +0 -1
- package/dist/bromcom-ui/p-1010be41.entry.js +0 -1
- package/dist/bromcom-ui/p-12493dbc.entry.js +0 -1
- package/dist/bromcom-ui/p-13d038f5.entry.js +0 -1
- package/dist/bromcom-ui/p-1429a2b4.js +0 -1
- package/dist/bromcom-ui/p-20d03fa1.entry.js +0 -1
- package/dist/bromcom-ui/p-23ccff3f.entry.js +0 -1
- package/dist/bromcom-ui/p-2ae07b1f.entry.js +0 -1
- package/dist/bromcom-ui/p-30c1cd7f.entry.js +0 -1
- package/dist/bromcom-ui/p-312efff7.js +0 -1
- package/dist/bromcom-ui/p-37750343.entry.js +0 -1
- package/dist/bromcom-ui/p-3f797656.entry.js +0 -1
- package/dist/bromcom-ui/p-4092f5f1.entry.js +0 -1
- package/dist/bromcom-ui/p-41294024.entry.js +0 -1
- package/dist/bromcom-ui/p-48f8b33d.entry.js +0 -1
- package/dist/bromcom-ui/p-4a41ef80.entry.js +0 -1
- package/dist/bromcom-ui/p-4cb268d2.js +0 -1
- package/dist/bromcom-ui/p-4ee0f5c4.entry.js +0 -1
- package/dist/bromcom-ui/p-50580ac4.entry.js +0 -1
- package/dist/bromcom-ui/p-53e9b679.entry.js +0 -1
- package/dist/bromcom-ui/p-5525b672.js +0 -7
- package/dist/bromcom-ui/p-554d326a.js +0 -1
- package/dist/bromcom-ui/p-571107a7.entry.js +0 -1
- package/dist/bromcom-ui/p-5982a2e1.entry.js +0 -1
- package/dist/bromcom-ui/p-659fce56.entry.js +0 -1
- package/dist/bromcom-ui/p-68ff64de.js +0 -1
- package/dist/bromcom-ui/p-6e0d3067.js +0 -1
- package/dist/bromcom-ui/p-6eddfb28.entry.js +0 -1
- package/dist/bromcom-ui/p-7238d22f.entry.js +0 -1
- package/dist/bromcom-ui/p-79f77a4d.js +0 -1
- package/dist/bromcom-ui/p-7f1cd976.entry.js +0 -1
- package/dist/bromcom-ui/p-7fc06a7b.entry.js +0 -1
- package/dist/bromcom-ui/p-811c24d7.entry.js +0 -1
- package/dist/bromcom-ui/p-8742c05d.entry.js +0 -1
- package/dist/bromcom-ui/p-8851e01e.entry.js +0 -1
- package/dist/bromcom-ui/p-8ed8d879.entry.js +0 -1
- package/dist/bromcom-ui/p-92e3e240.entry.js +0 -1
- package/dist/bromcom-ui/p-97013a5a.js +0 -1
- package/dist/bromcom-ui/p-9725508b.entry.js +0 -1
- package/dist/bromcom-ui/p-9856b79e.entry.js +0 -1
- package/dist/bromcom-ui/p-9e193345.entry.js +0 -1
- package/dist/bromcom-ui/p-9ffff762.entry.js +0 -1
- package/dist/bromcom-ui/p-a176d328.entry.js +0 -1
- package/dist/bromcom-ui/p-a3f2bfe9.entry.js +0 -1
- package/dist/bromcom-ui/p-a6ef098a.entry.js +0 -1
- package/dist/bromcom-ui/p-af7e4741.entry.js +0 -1
- package/dist/bromcom-ui/p-afb68492.entry.js +0 -1
- package/dist/bromcom-ui/p-b83043bf.entry.js +0 -1
- package/dist/bromcom-ui/p-bb49c421.entry.js +0 -1
- package/dist/bromcom-ui/p-bbf99620.entry.js +0 -1
- package/dist/bromcom-ui/p-bc50aa86.entry.js +0 -1
- package/dist/bromcom-ui/p-c09bb845.entry.js +0 -1
- package/dist/bromcom-ui/p-c2a3c41d.entry.js +0 -1
- package/dist/bromcom-ui/p-c715e9e7.entry.js +0 -1
- package/dist/bromcom-ui/p-d1bdf91a.entry.js +0 -1
- package/dist/bromcom-ui/p-d68393d5.entry.js +0 -1
- package/dist/bromcom-ui/p-d9d9fea9.entry.js +0 -1
- package/dist/bromcom-ui/p-e183b88c.entry.js +0 -1
- package/dist/bromcom-ui/p-e21a8f2d.entry.js +0 -1
- package/dist/bromcom-ui/p-e450ebda.entry.js +0 -1
- package/dist/bromcom-ui/p-e67780b6.entry.js +0 -1
- package/dist/bromcom-ui/p-e8307da9.entry.js +0 -1
- package/dist/bromcom-ui/p-e8771d32.entry.js +0 -1
- package/dist/bromcom-ui/p-ea6f25da.js +0 -1
- package/dist/bromcom-ui/p-ea886a39.entry.js +0 -1
- package/dist/bromcom-ui/p-ec5940fe.entry.js +0 -1
- package/dist/bromcom-ui/p-ef334301.entry.js +0 -1
- package/dist/bromcom-ui/p-f067821e.entry.js +0 -1
- package/dist/bromcom-ui/p-f12743d8.entry.js +0 -1
- package/dist/bromcom-ui/p-f3dc9291.entry.js +0 -1
- package/dist/bromcom-ui/p-f464fd90.entry.js +0 -1
- package/dist/bromcom-ui/p-ff5e57d3.entry.js +0 -1
- package/dist/bromcom-ui/p-ff737d35.entry.js +0 -1
- package/dist/cjs/bcm-alert.cjs.entry.js +0 -86
- package/dist/cjs/bcm-autocomplete.cjs.entry.js +0 -136
- package/dist/cjs/bcm-avatar.cjs.entry.js +0 -67
- package/dist/cjs/bcm-badge.cjs.entry.js +0 -50
- package/dist/cjs/bcm-breadcrumb.cjs.entry.js +0 -55
- package/dist/cjs/bcm-button_11.cjs.entry.js +0 -7684
- package/dist/cjs/bcm-card-footer.cjs.entry.js +0 -16
- package/dist/cjs/bcm-card-header.cjs.entry.js +0 -16
- package/dist/cjs/bcm-card.cjs.entry.js +0 -38
- package/dist/cjs/bcm-checkbox-lite_4.cjs.entry.js +0 -291
- package/dist/cjs/bcm-collapse-group.cjs.entry.js +0 -48
- package/dist/cjs/bcm-collapse.cjs.entry.js +0 -44
- package/dist/cjs/bcm-colorpicker.cjs.entry.js +0 -414
- package/dist/cjs/bcm-comment-editor.cjs.entry.js +0 -36
- package/dist/cjs/bcm-comment-group.cjs.entry.js +0 -29
- package/dist/cjs/bcm-comment.cjs.entry.js +0 -82
- package/dist/cjs/bcm-content.cjs.entry.js +0 -19
- package/dist/cjs/bcm-date-picker.cjs.entry.js +0 -126
- package/dist/cjs/bcm-datetime-picker.cjs.entry.js +0 -1233
- package/dist/cjs/bcm-dropdown-button.cjs.entry.js +0 -90
- package/dist/cjs/bcm-dropdown-group_2.cjs.entry.js +0 -96
- package/dist/cjs/bcm-dropdown-list.cjs.entry.js +0 -73
- package/dist/cjs/bcm-dropdown.cjs.entry.js +0 -65
- package/dist/cjs/bcm-error-layout.cjs.entry.js +0 -59
- package/dist/cjs/bcm-footer.cjs.entry.js +0 -19
- package/dist/cjs/bcm-form-group.cjs.entry.js +0 -26
- package/dist/cjs/bcm-header.cjs.entry.js +0 -19
- package/dist/cjs/bcm-link.cjs.entry.js +0 -22
- package/dist/cjs/bcm-list-item_2.cjs.entry.js +0 -197
- package/dist/cjs/bcm-list-select.cjs.entry.js +0 -658
- package/dist/cjs/bcm-list.cjs.entry.js +0 -1204
- package/dist/cjs/bcm-listbox_5.cjs.entry.js +0 -2252
- package/dist/cjs/bcm-menu-group_2.cjs.entry.js +0 -182
- package/dist/cjs/bcm-menu.cjs.entry.js +0 -79
- package/dist/cjs/bcm-message.cjs.entry.js +0 -80
- package/dist/cjs/bcm-modal.cjs.entry.js +0 -197
- package/dist/cjs/bcm-notification.cjs.entry.js +0 -84
- package/dist/cjs/bcm-popconfirm-box.cjs.entry.js +0 -51
- package/dist/cjs/bcm-popconfirm.cjs.entry.js +0 -132
- package/dist/cjs/bcm-popover-box.cjs.entry.js +0 -36
- package/dist/cjs/bcm-popover.cjs.entry.js +0 -136
- package/dist/cjs/bcm-progress.cjs.entry.js +0 -113
- package/dist/cjs/bcm-pulldown-group_2.cjs.entry.js +0 -166
- package/dist/cjs/bcm-pulldown.cjs.entry.js +0 -110
- package/dist/cjs/bcm-radio-group.cjs.entry.js +0 -124
- package/dist/cjs/bcm-radio.cjs.entry.js +0 -104
- package/dist/cjs/bcm-result.cjs.entry.js +0 -61
- package/dist/cjs/bcm-select-box.cjs.entry.js +0 -35
- package/dist/cjs/bcm-select-group.cjs.entry.js +0 -26
- package/dist/cjs/bcm-select-option.cjs.entry.js +0 -32
- package/dist/cjs/bcm-select.cjs.entry.js +0 -1111
- package/dist/cjs/bcm-selecto.cjs.entry.js +0 -33
- package/dist/cjs/bcm-slider.cjs.entry.js +0 -453
- package/dist/cjs/bcm-sub-comment.cjs.entry.js +0 -75
- package/dist/cjs/bcm-tab-pane.cjs.entry.js +0 -51
- package/dist/cjs/bcm-tab.cjs.entry.js +0 -72
- package/dist/cjs/bcm-tabs-content.cjs.entry.js +0 -43
- package/dist/cjs/bcm-tabs.cjs.entry.js +0 -361
- package/dist/cjs/bcm-text.cjs.entry.js +0 -28
- package/dist/cjs/bcm-time-picker.cjs.entry.js +0 -92
- package/dist/cjs/bcm-timeline-item.cjs.entry.js +0 -39
- package/dist/cjs/bcm-timeline.cjs.entry.js +0 -54
- package/dist/cjs/bcm-treeview-group.cjs.entry.js +0 -19
- package/dist/cjs/bcm-upload.cjs.entry.js +0 -219
- package/dist/cjs/bromcom-ui.cjs.js +0 -19
- package/dist/cjs/colors-7fb8d76f.js +0 -220
- package/dist/cjs/element-dragger-4a91c708.js +0 -271
- package/dist/cjs/index-2f62bdaf.js +0 -66
- package/dist/cjs/index.cjs.js +0 -2
- package/dist/cjs/loader.cjs.js +0 -21
- package/dist/cjs/popover-placement-ac023521.js +0 -87
- package/dist/cjs/types-37c8ced6.js +0 -16
- package/dist/cjs/types-6c34b66c.js +0 -16
- package/dist/cjs/types-a3c1999a.js +0 -9
- package/dist/cjs/types-f53bc841.js +0 -19
- package/dist/cjs/utils-60414768.js +0 -175
- package/dist/collection/assets/fonts/fontawesome/webfonts/fa-brands-400.svg +0 -3717
- package/dist/collection/assets/fonts/fontawesome/webfonts/fa-duotone-900.svg +0 -15326
- package/dist/collection/assets/fonts/fontawesome/webfonts/fa-light-300.svg +0 -12420
- package/dist/collection/assets/fonts/fontawesome/webfonts/fa-regular-400.svg +0 -11323
- package/dist/collection/assets/fonts/fontawesome/webfonts/fa-solid-900.svg +0 -9653
- package/dist/collection/assets/icons/index.example.js +0 -92
- package/dist/collection/assets/icons/index.js +0 -4492
- package/dist/collection/assets/icons/svg/animated/default/loading.svg +0 -4
- package/dist/collection/assets/icons/svg/default/12/component-check-disabled.svg +0 -3
- package/dist/collection/assets/icons/svg/default/12/component-check.svg +0 -3
- package/dist/collection/assets/icons/svg/fill/24/account-book.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/alert.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/alipay-circle.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/alipay-square.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/aliwangwang.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/amazon-circle.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/amazon-square.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/android.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/api.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/apple.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/appstore.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/audio.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/backward.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/bank.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/behance-circle.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/behance-square.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/bell.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/book.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/box-plot.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/bug.svg +0 -6
- package/dist/collection/assets/icons/svg/fill/24/build.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/bulb.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/calculator.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/calendar.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/camera.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/car.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/caret-down.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/caret-left.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/caret-right.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/caret-up.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/carry-out.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/check-circle.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/check-square.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/chrome.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/ci-circle.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/clipboard.svg +0 -11
- package/dist/collection/assets/icons/svg/fill/24/clock-circle.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/close-circle.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/close-square.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/cloud.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/code-sandbox-circle.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/code-sandbox-square.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/code.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/codepen-circle.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/codepen-square.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/compass.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/contacts.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/container.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/control.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/copy.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/copyright-circle.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/credit-card.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/crown.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/customer-service.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/dashboard.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/database.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/delete.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/diff.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/dingtalk-circle.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/dingtalk-square.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/dislike.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/dollar-circle.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/down-circle.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/down-square.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/dribbble-circle.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/dribbble-square.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/dropbox-circle.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/dropbox-square.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/edit.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/environment.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/euro-circle.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/exclamation-circle.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/experiment.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/eye-invisible.svg +0 -6
- package/dist/collection/assets/icons/svg/fill/24/eye.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/facebook.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/fast-backward.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/fast-forward.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/file-add.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/file-excel.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/file-exclamation.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/file-image.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/file-markdown.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/file-pdf.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/file-ppt.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/file-text.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/file-unknown.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/file-word.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/file-zip.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/file.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/filter.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/fire.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/flag.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/folder-add.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/folder-open.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/folder.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/forward.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/frown.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/fund.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/funnel-plot.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/gift.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/github.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/gitlab.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/golden.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/google-circle.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/google-plus-circle.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/google-plus-square.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/google-square.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/hdd.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/heart.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/highlight.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/home.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/hourglass.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/html5.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/idcard.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/ie-circle.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/ie-square.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/info-circle.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/instagram.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/insurance.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/interaction.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/layout.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/left-circle.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/left-square.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/like.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/linkedin.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/lock.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/mail.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/medicine-box.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/medium-circle.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/medium-square.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/meh.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/message.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/minus-circle.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/minus-square.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/mobile.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/money-collect.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/notification.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/pause-circle.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/pay-circle.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/phone.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/picture.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/pie-chart.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/play-circle.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/play-square.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/plus-circle.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/plus-square.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/pound-circle.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/printer.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/profile.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/project.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/property-safety.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/pushpin.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/qq-circle.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/qq-square.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/question-circle.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/read.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/reconciliation.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/red-envelope.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/reddit-circle.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/reddit-square.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/rest.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/right-circle.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/right-square.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/rocket.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/safety-certificate.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/save.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/schedule.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/security-scan.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/setting.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/shop.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/shopping.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/sketch-circle.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/sketch-square.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/skin.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/skype.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/slack-circle.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/slack-square.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/sliders.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/smile.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/snippets.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/sound.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/star.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/step-backward.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/step-forward.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/stop.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/switcher.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/tablet.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/tag.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/tags.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/taobao-circle.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/taobao-square.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/thunderbolt.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/tool.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/trademark-circle.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/trophy.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/twitter-circle.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/twitter-square.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/unlock.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/up-circle.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/up-square.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/usb.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/video-camera.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/wallet.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/warning.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/wechat.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/weibo-circle.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/weibo-square.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/windows.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/yahoo.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/youtube.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/yuque.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/zhihu-circle.svg +0 -5
- package/dist/collection/assets/icons/svg/fill/24/zhihu-square.svg +0 -5
- package/dist/collection/assets/icons/svg/multi-color/24/account-book.svg +0 -7
- package/dist/collection/assets/icons/svg/multi-color/24/alert.svg +0 -6
- package/dist/collection/assets/icons/svg/multi-color/24/api.svg +0 -6
- package/dist/collection/assets/icons/svg/multi-color/24/appstore.svg +0 -6
- package/dist/collection/assets/icons/svg/multi-color/24/audio.svg +0 -7
- package/dist/collection/assets/icons/svg/multi-color/24/bank.svg +0 -6
- package/dist/collection/assets/icons/svg/multi-color/24/bell.svg +0 -6
- package/dist/collection/assets/icons/svg/multi-color/24/book.svg +0 -7
- package/dist/collection/assets/icons/svg/multi-color/24/box-plot.svg +0 -6
- package/dist/collection/assets/icons/svg/multi-color/24/bug.svg +0 -6
- package/dist/collection/assets/icons/svg/multi-color/24/build.svg +0 -6
- package/dist/collection/assets/icons/svg/multi-color/24/bulb.svg +0 -6
- package/dist/collection/assets/icons/svg/multi-color/24/calculator.svg +0 -7
- package/dist/collection/assets/icons/svg/multi-color/24/calendar.svg +0 -6
- package/dist/collection/assets/icons/svg/multi-color/24/camera.svg +0 -7
- package/dist/collection/assets/icons/svg/multi-color/24/car.svg +0 -8
- package/dist/collection/assets/icons/svg/multi-color/24/carry-out.svg +0 -7
- package/dist/collection/assets/icons/svg/multi-color/24/check-circle.svg +0 -7
- package/dist/collection/assets/icons/svg/multi-color/24/check-square.svg +0 -7
- package/dist/collection/assets/icons/svg/multi-color/24/ci.svg +0 -7
- package/dist/collection/assets/icons/svg/multi-color/24/clock-circle.svg +0 -7
- package/dist/collection/assets/icons/svg/multi-color/24/close-circle.svg +0 -7
- package/dist/collection/assets/icons/svg/multi-color/24/close-square.svg +0 -7
- package/dist/collection/assets/icons/svg/multi-color/24/cloud.svg +0 -6
- package/dist/collection/assets/icons/svg/multi-color/24/code.svg +0 -7
- package/dist/collection/assets/icons/svg/multi-color/24/compass.svg +0 -7
- package/dist/collection/assets/icons/svg/multi-color/24/contacts.svg +0 -8
- package/dist/collection/assets/icons/svg/multi-color/24/container.svg +0 -8
- package/dist/collection/assets/icons/svg/multi-color/24/control.svg +0 -8
- package/dist/collection/assets/icons/svg/multi-color/24/copy.svg +0 -7
- package/dist/collection/assets/icons/svg/multi-color/24/copyright.svg +0 -7
- package/dist/collection/assets/icons/svg/multi-color/24/credit-card.svg +0 -7
- package/dist/collection/assets/icons/svg/multi-color/24/crown.svg +0 -8
- package/dist/collection/assets/icons/svg/multi-color/24/customer-service.svg +0 -6
- package/dist/collection/assets/icons/svg/multi-color/24/dashboard.svg +0 -8
- package/dist/collection/assets/icons/svg/multi-color/24/database.svg +0 -7
- package/dist/collection/assets/icons/svg/multi-color/24/delete.svg +0 -6
- package/dist/collection/assets/icons/svg/multi-color/24/diff-1.svg +0 -8
- package/dist/collection/assets/icons/svg/multi-color/24/diff.svg +0 -8
- package/dist/collection/assets/icons/svg/multi-color/24/dislike.svg +0 -6
- package/dist/collection/assets/icons/svg/multi-color/24/dollar-circle.svg +0 -8
- package/dist/collection/assets/icons/svg/multi-color/24/down-circle.svg +0 -7
- package/dist/collection/assets/icons/svg/multi-color/24/down-square.svg +0 -7
- package/dist/collection/assets/icons/svg/multi-color/24/edit.svg +0 -6
- package/dist/collection/assets/icons/svg/multi-color/24/environment.svg +0 -7
- package/dist/collection/assets/icons/svg/multi-color/24/euro-circle.svg +0 -7
- package/dist/collection/assets/icons/svg/multi-color/24/exclamation-circle.svg +0 -7
- package/dist/collection/assets/icons/svg/multi-color/24/experiment.svg +0 -7
- package/dist/collection/assets/icons/svg/multi-color/24/eye-invisible.svg +0 -9
- package/dist/collection/assets/icons/svg/multi-color/24/eye.svg +0 -8
- package/dist/collection/assets/icons/svg/multi-color/24/file-add.svg +0 -7
- package/dist/collection/assets/icons/svg/multi-color/24/file-excel.svg +0 -7
- package/dist/collection/assets/icons/svg/multi-color/24/file-exclamation.svg +0 -7
- package/dist/collection/assets/icons/svg/multi-color/24/file-image.svg +0 -7
- package/dist/collection/assets/icons/svg/multi-color/24/file-markdown.svg +0 -7
- package/dist/collection/assets/icons/svg/multi-color/24/file-pdf.svg +0 -9
- package/dist/collection/assets/icons/svg/multi-color/24/file-ppt.svg +0 -8
- package/dist/collection/assets/icons/svg/multi-color/24/file-text.svg +0 -7
- package/dist/collection/assets/icons/svg/multi-color/24/file-unknown.svg +0 -7
- package/dist/collection/assets/icons/svg/multi-color/24/file-word.svg +0 -7
- package/dist/collection/assets/icons/svg/multi-color/24/file-zip.svg +0 -8
- package/dist/collection/assets/icons/svg/multi-color/24/file.svg +0 -6
- package/dist/collection/assets/icons/svg/multi-color/24/filter.svg +0 -6
- package/dist/collection/assets/icons/svg/multi-color/24/fire.svg +0 -6
- package/dist/collection/assets/icons/svg/multi-color/24/flag.svg +0 -7
- package/dist/collection/assets/icons/svg/multi-color/24/folder-add.svg +0 -7
- package/dist/collection/assets/icons/svg/multi-color/24/folder-open.svg +0 -6
- package/dist/collection/assets/icons/svg/multi-color/24/folder.svg +0 -6
- package/dist/collection/assets/icons/svg/multi-color/24/frown.svg +0 -7
- package/dist/collection/assets/icons/svg/multi-color/24/fund.svg +0 -7
- package/dist/collection/assets/icons/svg/multi-color/24/funnel-plot.svg +0 -6
- package/dist/collection/assets/icons/svg/multi-color/24/gift.svg +0 -6
- package/dist/collection/assets/icons/svg/multi-color/24/gold.svg +0 -6
- package/dist/collection/assets/icons/svg/multi-color/24/hdd.svg +0 -7
- package/dist/collection/assets/icons/svg/multi-color/24/heart.svg +0 -6
- package/dist/collection/assets/icons/svg/multi-color/24/highlight.svg +0 -6
- package/dist/collection/assets/icons/svg/multi-color/24/home.svg +0 -6
- package/dist/collection/assets/icons/svg/multi-color/24/hourglass.svg +0 -6
- package/dist/collection/assets/icons/svg/multi-color/24/html5.svg +0 -7
- package/dist/collection/assets/icons/svg/multi-color/24/idcard.svg +0 -8
- package/dist/collection/assets/icons/svg/multi-color/24/info-circle.svg +0 -7
- package/dist/collection/assets/icons/svg/multi-color/24/insurance.svg +0 -6
- package/dist/collection/assets/icons/svg/multi-color/24/interaction.svg +0 -7
- package/dist/collection/assets/icons/svg/multi-color/24/layout.svg +0 -6
- package/dist/collection/assets/icons/svg/multi-color/24/left-circle.svg +0 -7
- package/dist/collection/assets/icons/svg/multi-color/24/left-square.svg +0 -7
- package/dist/collection/assets/icons/svg/multi-color/24/like.svg +0 -6
- package/dist/collection/assets/icons/svg/multi-color/24/lock.svg +0 -7
- package/dist/collection/assets/icons/svg/multi-color/24/mail.svg +0 -7
- package/dist/collection/assets/icons/svg/multi-color/24/medicine-box.svg +0 -7
- package/dist/collection/assets/icons/svg/multi-color/24/meh.svg +0 -7
- package/dist/collection/assets/icons/svg/multi-color/24/message.svg +0 -8
- package/dist/collection/assets/icons/svg/multi-color/24/minus-circle.svg +0 -7
- package/dist/collection/assets/icons/svg/multi-color/24/minus-square.svg +0 -7
- package/dist/collection/assets/icons/svg/multi-color/24/mobile.svg +0 -7
- package/dist/collection/assets/icons/svg/multi-color/24/money-collect.svg +0 -7
- package/dist/collection/assets/icons/svg/multi-color/24/notification.svg +0 -6
- package/dist/collection/assets/icons/svg/multi-color/24/pause-circle.svg +0 -7
- package/dist/collection/assets/icons/svg/multi-color/24/phone.svg +0 -6
- package/dist/collection/assets/icons/svg/multi-color/24/picture.svg +0 -9
- package/dist/collection/assets/icons/svg/multi-color/24/pie-chart.svg +0 -9
- package/dist/collection/assets/icons/svg/multi-color/24/play-circle.svg +0 -7
- package/dist/collection/assets/icons/svg/multi-color/24/play-square.svg +0 -7
- package/dist/collection/assets/icons/svg/multi-color/24/plus-circle.svg +0 -7
- package/dist/collection/assets/icons/svg/multi-color/24/plus-square.svg +0 -7
- package/dist/collection/assets/icons/svg/multi-color/24/pound-circle.svg +0 -7
- package/dist/collection/assets/icons/svg/multi-color/24/printer.svg +0 -7
- package/dist/collection/assets/icons/svg/multi-color/24/profile.svg +0 -7
- package/dist/collection/assets/icons/svg/multi-color/24/project.svg +0 -7
- package/dist/collection/assets/icons/svg/multi-color/24/property-safety.svg +0 -7
- package/dist/collection/assets/icons/svg/multi-color/24/pushpin.svg +0 -6
- package/dist/collection/assets/icons/svg/multi-color/24/question-circle.svg +0 -7
- package/dist/collection/assets/icons/svg/multi-color/24/reconciliation.svg +0 -9
- package/dist/collection/assets/icons/svg/multi-color/24/red-envelope.svg +0 -8
- package/dist/collection/assets/icons/svg/multi-color/24/rest.svg +0 -7
- package/dist/collection/assets/icons/svg/multi-color/24/right-circle.svg +0 -7
- package/dist/collection/assets/icons/svg/multi-color/24/right-square.svg +0 -7
- package/dist/collection/assets/icons/svg/multi-color/24/rocket.svg +0 -7
- package/dist/collection/assets/icons/svg/multi-color/24/safety-certificate.svg +0 -7
- package/dist/collection/assets/icons/svg/multi-color/24/save.svg +0 -7
- package/dist/collection/assets/icons/svg/multi-color/24/schedule.svg +0 -8
- package/dist/collection/assets/icons/svg/multi-color/24/security-scan.svg +0 -8
- package/dist/collection/assets/icons/svg/multi-color/24/setting.svg +0 -8
- package/dist/collection/assets/icons/svg/multi-color/24/shop.svg +0 -6
- package/dist/collection/assets/icons/svg/multi-color/24/shopping.svg +0 -6
- package/dist/collection/assets/icons/svg/multi-color/24/skin.svg +0 -6
- package/dist/collection/assets/icons/svg/multi-color/24/sliders.svg +0 -6
- package/dist/collection/assets/icons/svg/multi-color/24/smile.svg +0 -7
- package/dist/collection/assets/icons/svg/multi-color/24/snippets.svg +0 -6
- package/dist/collection/assets/icons/svg/multi-color/24/sound.svg +0 -6
- package/dist/collection/assets/icons/svg/multi-color/24/star.svg +0 -6
- package/dist/collection/assets/icons/svg/multi-color/24/stop.svg +0 -6
- package/dist/collection/assets/icons/svg/multi-color/24/switcher.svg +0 -8
- package/dist/collection/assets/icons/svg/multi-color/24/tablet.svg +0 -7
- package/dist/collection/assets/icons/svg/multi-color/24/tag.svg +0 -7
- package/dist/collection/assets/icons/svg/multi-color/24/tags.svg +0 -8
- package/dist/collection/assets/icons/svg/multi-color/24/thunderbolt.svg +0 -6
- package/dist/collection/assets/icons/svg/multi-color/24/tool.svg +0 -6
- package/dist/collection/assets/icons/svg/multi-color/24/trademark-circle.svg +0 -8
- package/dist/collection/assets/icons/svg/multi-color/24/trophy.svg +0 -6
- package/dist/collection/assets/icons/svg/multi-color/24/unlock.svg +0 -7
- package/dist/collection/assets/icons/svg/multi-color/24/up-circle.svg +0 -7
- package/dist/collection/assets/icons/svg/multi-color/24/up-square.svg +0 -7
- package/dist/collection/assets/icons/svg/multi-color/24/usb.svg +0 -7
- package/dist/collection/assets/icons/svg/multi-color/24/video-camera.svg +0 -7
- package/dist/collection/assets/icons/svg/multi-color/24/wallet.svg +0 -8
- package/dist/collection/assets/icons/svg/multi-color/24/warning.svg +0 -7
- package/dist/collection/assets/icons/svg/outlined/24/account-book-1.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/alert.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/alibaba.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/align-center.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/align-left.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/align-right.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/alipay-circle.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/alipay.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/aliwangwang.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/aliyun.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/amazon.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/android.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/ant-cloud.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/ant-design.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/apartment.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/api.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/apple.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/appstore.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/area-chart.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/arrow-down.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/arrow-left.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/arrow-right.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/arrow-up.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/arrows-alt.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/audio.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/audit.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/backward.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/bank.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/bar-chart.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/barcode.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/bars.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/behance-square.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/behance.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/bell.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/bg-colors.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/block.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/bold.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/book.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/border-bottom.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/border-horizontal.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/border-inner.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/border-left.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/border-outer.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/border-right.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/border-top.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/border-verticle.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/border.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/box-plot.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/branches.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/bug.svg +0 -6
- package/dist/collection/assets/icons/svg/outlined/24/build.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/bulb.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/calculator.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/calendar.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/camera.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/car.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/caret-down.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/caret-left.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/caret-right.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/caret-up.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/carry-out.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/check-circle.svg +0 -6
- package/dist/collection/assets/icons/svg/outlined/24/check-square.svg +0 -6
- package/dist/collection/assets/icons/svg/outlined/24/check.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/chrome.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/ci.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/clock-circle.svg +0 -6
- package/dist/collection/assets/icons/svg/outlined/24/close-circle.svg +0 -6
- package/dist/collection/assets/icons/svg/outlined/24/close-panel.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/close-square.svg +0 -6
- package/dist/collection/assets/icons/svg/outlined/24/close.svg +0 -6
- package/dist/collection/assets/icons/svg/outlined/24/cloud-download.svg +0 -6
- package/dist/collection/assets/icons/svg/outlined/24/cloud-server.svg +0 -7
- package/dist/collection/assets/icons/svg/outlined/24/cloud-sync.svg +0 -6
- package/dist/collection/assets/icons/svg/outlined/24/cloud-upload.svg +0 -6
- package/dist/collection/assets/icons/svg/outlined/24/cloud.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/cluster.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/code-sandbox.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/code.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/codepen-circle.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/codepen.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/coffee.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/colum-height.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/column-width.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/compass.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/contacts.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/container.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/control.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/copy.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/copyright.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/credit-card.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/crown.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/customer-service.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/dash.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/dashboard.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/database.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/delete.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/deployment-unit.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/desktop.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/diff.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/dingding.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/disconnect.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/dislike.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/dollar.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/dot-chart.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/double-left.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/double-right.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/down-circle.svg +0 -6
- package/dist/collection/assets/icons/svg/outlined/24/down-square.svg +0 -6
- package/dist/collection/assets/icons/svg/outlined/24/down.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/download.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/drag.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/dribbble-square.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/dribbble.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/dropbox.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/edit.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/ellipsis.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/enter.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/environment.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/euro.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/exception.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/exclamation-circle.svg +0 -6
- package/dist/collection/assets/icons/svg/outlined/24/exclamation.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/experiment.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/export.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/eye-invisible.svg +0 -6
- package/dist/collection/assets/icons/svg/outlined/24/eye.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/facebook.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/fall.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/fast-backward.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/fast-forward.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/file-add.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/file-done.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/file-excel.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/file-excel2.svg +0 -8
- package/dist/collection/assets/icons/svg/outlined/24/file-exclamation.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/file-image.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/file-jpg.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/file-markdown.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/file-pdf.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/file-ppt.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/file-protect.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/file-search.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/file-sync.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/file-text.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/file-unknown.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/file-word.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/file-zip.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/file.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/filter.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/fire.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/flag.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/folder-add.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/folder-open.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/folder.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/font-colors.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/font-size.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/fork.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/form.svg +0 -6
- package/dist/collection/assets/icons/svg/outlined/24/forward.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/frown.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/fullscreen-exit.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/fullscreen.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/fund.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/funnel-plot.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/gateway.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/gift.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/github.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/gitlab.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/global.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/gold.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/google-plus.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/google.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/hdd.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/heart.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/heat-map.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/highlight.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/history.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/home.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/hourglass.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/html5.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/idcard.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/ie.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/import.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/inbox.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/info-circle.svg +0 -6
- package/dist/collection/assets/icons/svg/outlined/24/info.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/instagram.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/insurance.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/interation.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/issues-close.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/italic.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/key.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/laptop.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/layout.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/left-circle.svg +0 -6
- package/dist/collection/assets/icons/svg/outlined/24/left-square.svg +0 -6
- package/dist/collection/assets/icons/svg/outlined/24/left.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/like.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/line-chart.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/line-height.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/line.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/link.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/linkedin.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/loading-3-quarters.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/loading.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/lock.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/login.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/logout.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/mail.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/man.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/medicine-box.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/medium-workmark.svg +0 -10
- package/dist/collection/assets/icons/svg/outlined/24/medium.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/meh.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/menu-fold.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/menu-unfold.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/menu.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/message.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/minus-circle.svg +0 -6
- package/dist/collection/assets/icons/svg/outlined/24/minus-square.svg +0 -6
- package/dist/collection/assets/icons/svg/outlined/24/minus.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/mobile.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/money-collect.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/monitor.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/more.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/notification.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/number.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/open-panel.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/ordered-list.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/paper-clip.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/pause-circle.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/pause.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/pay-circle.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/percentage.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/phone.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/pic-center.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/pic-left.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/pic-right.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/picture.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/pie-chart.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/play-circle.svg +0 -6
- package/dist/collection/assets/icons/svg/outlined/24/play-square.svg +0 -6
- package/dist/collection/assets/icons/svg/outlined/24/plus-circle.svg +0 -6
- package/dist/collection/assets/icons/svg/outlined/24/plus-square.svg +0 -6
- package/dist/collection/assets/icons/svg/outlined/24/plus.svg +0 -6
- package/dist/collection/assets/icons/svg/outlined/24/pound.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/poweroff.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/printer.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/profile.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/project.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/property-safety.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/pull-request.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/pushpin.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/qq.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/qrcode.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/question-circle.svg +0 -6
- package/dist/collection/assets/icons/svg/outlined/24/question.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/radar-chart.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/radius-bottomleft.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/radius-bottomright.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/radius-setting.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/radius-upleft.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/radius-upright.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/read.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/reconciliation.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/red-envelope.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/reddit.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/redo.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/reload.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/rest.svg +0 -6
- package/dist/collection/assets/icons/svg/outlined/24/retweet.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/right-circle.svg +0 -6
- package/dist/collection/assets/icons/svg/outlined/24/right-square.svg +0 -6
- package/dist/collection/assets/icons/svg/outlined/24/right.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/rise.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/robot.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/rocket.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/rollback.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/safety-certificate.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/safety.svg +0 -6
- package/dist/collection/assets/icons/svg/outlined/24/save.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/scan.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/schedule.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/scissor.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/search.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/security-scan.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/select.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/send.svg +0 -3
- package/dist/collection/assets/icons/svg/outlined/24/setting.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/shake.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/share-alt.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/shop.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/shopping-cart.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/shopping.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/shrink.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/sketch.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/skin.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/skype.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/slack-square.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/slack.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/sliders.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/small-dash.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/smile.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/snippets.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/solution.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/sort-ascending.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/sort-descending.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/sound.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/star.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/step-backward.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/step-forward.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/stock.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/stop.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/strikethrough.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/swap-left.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/swap-right.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/swap.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/switcher.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/sync.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/table.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/tablet.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/tag.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/tags.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/taobao-circle.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/taobao.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/team.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/thunderbolt.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/to-top.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/tool.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/trademark.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/transaction.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/trophy.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/twitter.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/underline.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/undo.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/unlock.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/unordered-list.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/up-circle.svg +0 -6
- package/dist/collection/assets/icons/svg/outlined/24/up-square.svg +0 -6
- package/dist/collection/assets/icons/svg/outlined/24/up.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/upload.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/usb.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/user-add.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/user-delete.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/user.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/usergroup-add.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/usergroup-delete.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/vertical-align-bottom.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/vertical-align-middle.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/vertical-align-top.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/vertical-left.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/vertical-right.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/video-camera.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/wallet.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/warning.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/wechat.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/weibo-circle.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/weibo-square.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/weibo.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/wifi.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/windows.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/woman.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/yahoo.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/youtube.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/yuque.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/zhihu.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/zoom-in.svg +0 -5
- package/dist/collection/assets/icons/svg/outlined/24/zoom-out.svg +0 -5
- package/dist/collection/bromcom.js +0 -42
- package/dist/collection/collection-manifest.json +0 -96
- package/dist/collection/components/atoms/avatar/avatar.css +0 -109
- package/dist/collection/components/atoms/avatar/avatar.js +0 -200
- package/dist/collection/components/atoms/badge/badge.css +0 -129
- package/dist/collection/components/atoms/badge/badge.js +0 -167
- package/dist/collection/components/atoms/badge/types.js +0 -1
- package/dist/collection/components/atoms/button/button.js +0 -372
- package/dist/collection/components/atoms/button/buttons.css +0 -508
- package/dist/collection/components/atoms/button/types.js +0 -176
- package/dist/collection/components/atoms/divider/divider.css +0 -80
- package/dist/collection/components/atoms/divider/divider.js +0 -82
- package/dist/collection/components/atoms/icon/icon.css +0 -121
- package/dist/collection/components/atoms/icon/icon.js +0 -311
- package/dist/collection/components/atoms/icon/types.js +0 -11
- package/dist/collection/components/atoms/label/label.css +0 -70
- package/dist/collection/components/atoms/label/label.js +0 -203
- package/dist/collection/components/atoms/link/link.css +0 -81
- package/dist/collection/components/atoms/link/link.js +0 -93
- package/dist/collection/components/atoms/tag/tag.css +0 -235
- package/dist/collection/components/atoms/tag/tag.js +0 -311
- package/dist/collection/components/atoms/tag/types.js +0 -26
- package/dist/collection/components/atoms/text/text.css +0 -122
- package/dist/collection/components/atoms/text/text.js +0 -101
- package/dist/collection/components/molecules/alert/alert.css +0 -145
- package/dist/collection/components/molecules/alert/alert.js +0 -268
- package/dist/collection/components/molecules/alert/types.js +0 -19
- package/dist/collection/components/molecules/breadcrumb/breadcrumb.css +0 -140
- package/dist/collection/components/molecules/breadcrumb/breadcrumb.js +0 -129
- package/dist/collection/components/molecules/card/card-footer.js +0 -8
- package/dist/collection/components/molecules/card/card-header.js +0 -8
- package/dist/collection/components/molecules/card/card.css +0 -90
- package/dist/collection/components/molecules/card/card.js +0 -84
- package/dist/collection/components/molecules/checkbox/checkbox-lite.js +0 -248
- package/dist/collection/components/molecules/checkbox/checkbox.css +0 -322
- package/dist/collection/components/molecules/checkbox/checkbox.js +0 -511
- package/dist/collection/components/molecules/checkbox/group.css +0 -190
- package/dist/collection/components/molecules/checkbox/group.js +0 -763
- package/dist/collection/components/molecules/checkbox/types.js +0 -26
- package/dist/collection/components/molecules/collapse/collapse.css +0 -119
- package/dist/collection/components/molecules/collapse/collapse.js +0 -154
- package/dist/collection/components/molecules/collapse/group.js +0 -123
- package/dist/collection/components/molecules/comment/comment-editor.css +0 -77
- package/dist/collection/components/molecules/comment/comment-editor.js +0 -141
- package/dist/collection/components/molecules/comment/comment-group.css +0 -71
- package/dist/collection/components/molecules/comment/comment-group.js +0 -66
- package/dist/collection/components/molecules/comment/comment.css +0 -125
- package/dist/collection/components/molecules/comment/comment.js +0 -318
- package/dist/collection/components/molecules/comment/sub-comment.css +0 -105
- package/dist/collection/components/molecules/comment/sub-comment.js +0 -272
- package/dist/collection/components/molecules/comment/types.js +0 -8
- package/dist/collection/components/molecules/dropdown/dropdown-button.css +0 -312
- package/dist/collection/components/molecules/dropdown/dropdown-button.js +0 -364
- package/dist/collection/components/molecules/dropdown/dropdown-group.css +0 -166
- package/dist/collection/components/molecules/dropdown/dropdown-group.js +0 -203
- package/dist/collection/components/molecules/dropdown/dropdown-item.css +0 -115
- package/dist/collection/components/molecules/dropdown/dropdown-item.js +0 -186
- package/dist/collection/components/molecules/dropdown/dropdown-list.css +0 -64
- package/dist/collection/components/molecules/dropdown/dropdown-list.js +0 -143
- package/dist/collection/components/molecules/dropdown/dropdown.css +0 -97
- package/dist/collection/components/molecules/dropdown/dropdown.js +0 -226
- package/dist/collection/components/molecules/dropdown/types.js +0 -12
- package/dist/collection/components/molecules/empty/empty.css +0 -87
- package/dist/collection/components/molecules/empty/empty.js +0 -143
- package/dist/collection/components/molecules/empty/static/default.svg +0 -5
- package/dist/collection/components/molecules/empty/static/simple.svg +0 -9
- package/dist/collection/components/molecules/empty/types.js +0 -17
- package/dist/collection/components/molecules/error-layout/error-layout.css +0 -66
- package/dist/collection/components/molecules/error-layout/error-layout.js +0 -162
- package/dist/collection/components/molecules/error-layout/types.js +0 -1
- package/dist/collection/components/molecules/input/input.css +0 -368
- package/dist/collection/components/molecules/input/input.js +0 -1146
- package/dist/collection/components/molecules/list/list-item.css +0 -304
- package/dist/collection/components/molecules/list/list-item.js +0 -357
- package/dist/collection/components/molecules/list/list-select.css +0 -453
- package/dist/collection/components/molecules/list/list-select.js +0 -1339
- package/dist/collection/components/molecules/list/list.css +0 -242
- package/dist/collection/components/molecules/list/list.js +0 -2455
- package/dist/collection/components/molecules/list/types.js +0 -1
- package/dist/collection/components/molecules/message/message.css +0 -98
- package/dist/collection/components/molecules/message/message.js +0 -208
- package/dist/collection/components/molecules/message/types.js +0 -10
- package/dist/collection/components/molecules/modal/modal-content.js +0 -34
- package/dist/collection/components/molecules/modal/modal-header.js +0 -34
- package/dist/collection/components/molecules/modal/modal.css +0 -204
- package/dist/collection/components/molecules/modal/modal.js +0 -467
- package/dist/collection/components/molecules/modal/model-footer.js +0 -34
- package/dist/collection/components/molecules/modal/types.js +0 -28
- package/dist/collection/components/molecules/notification/notification.css +0 -116
- package/dist/collection/components/molecules/notification/notification.js +0 -230
- package/dist/collection/components/molecules/notification/types.js +0 -11
- package/dist/collection/components/molecules/popconfirm/popconfirm-box.css +0 -208
- package/dist/collection/components/molecules/popconfirm/popconfirm-box.js +0 -234
- package/dist/collection/components/molecules/popconfirm/popconfirm.css +0 -208
- package/dist/collection/components/molecules/popconfirm/popconfirm.js +0 -389
- package/dist/collection/components/molecules/popover/popover-box.css +0 -204
- package/dist/collection/components/molecules/popover/popover-box.js +0 -146
- package/dist/collection/components/molecules/popover/popover.css +0 -204
- package/dist/collection/components/molecules/popover/popover.js +0 -338
- package/dist/collection/components/molecules/progress/progress.css +0 -146
- package/dist/collection/components/molecules/progress/progress.js +0 -296
- package/dist/collection/components/molecules/radio/group.css +0 -132
- package/dist/collection/components/molecules/radio/group.js +0 -558
- package/dist/collection/components/molecules/radio/radio.css +0 -186
- package/dist/collection/components/molecules/radio/radio.js +0 -318
- package/dist/collection/components/molecules/radio/types.js +0 -26
- package/dist/collection/components/molecules/result/result.css +0 -97
- package/dist/collection/components/molecules/result/result.js +0 -130
- package/dist/collection/components/molecules/result/types.js +0 -18
- package/dist/collection/components/molecules/search/search.css +0 -64
- package/dist/collection/components/molecules/search/search.js +0 -483
- package/dist/collection/components/molecules/select/group.css +0 -77
- package/dist/collection/components/molecules/select/group.js +0 -84
- package/dist/collection/components/molecules/select/option.css +0 -97
- package/dist/collection/components/molecules/select/option.js +0 -138
- package/dist/collection/components/molecules/select/select-box.css +0 -74
- package/dist/collection/components/molecules/select/select-box.js +0 -90
- package/dist/collection/components/molecules/select/select.css +0 -298
- package/dist/collection/components/molecules/select/select.js +0 -2164
- package/dist/collection/components/molecules/slider/slider.css +0 -394
- package/dist/collection/components/molecules/slider/slider.js +0 -712
- package/dist/collection/components/molecules/slider/types.js +0 -8
- package/dist/collection/components/molecules/switch/switch.css +0 -240
- package/dist/collection/components/molecules/switch/switch.js +0 -499
- package/dist/collection/components/molecules/textarea/textarea.css +0 -297
- package/dist/collection/components/molecules/textarea/textarea.js +0 -663
- package/dist/collection/components/molecules/timeline/timeline-item.css +0 -187
- package/dist/collection/components/molecules/timeline/timeline-item.js +0 -148
- package/dist/collection/components/molecules/timeline/timeline.css +0 -138
- package/dist/collection/components/molecules/timeline/timeline.js +0 -111
- package/dist/collection/components/molecules/tooltip/tooltip-box.css +0 -196
- package/dist/collection/components/molecules/tooltip/tooltip-box.js +0 -127
- package/dist/collection/components/molecules/tooltip/tooltip.css +0 -193
- package/dist/collection/components/molecules/tooltip/tooltip.js +0 -325
- package/dist/collection/components/molecules/upload/errors.js +0 -8
- package/dist/collection/components/molecules/upload/types.js +0 -9
- package/dist/collection/components/molecules/upload/upload.css +0 -130
- package/dist/collection/components/molecules/upload/upload.js +0 -403
- package/dist/collection/components/organism/autocomplete/autocomplete.css +0 -101
- package/dist/collection/components/organism/autocomplete/autocomplete.js +0 -385
- package/dist/collection/components/organism/colorpicker/colorpicker.css +0 -246
- package/dist/collection/components/organism/colorpicker/colorpicker.js +0 -759
- package/dist/collection/components/organism/colorpicker/static/chess.png +0 -0
- package/dist/collection/components/organism/colorpicker/static/color.svg +0 -14
- package/dist/collection/components/organism/colorpicker/static/colors.svg +0 -16
- package/dist/collection/components/organism/date-picker/date-picker.css +0 -70
- package/dist/collection/components/organism/date-picker/date-picker.js +0 -607
- package/dist/collection/components/organism/datetime-picker/datetime-picker.css +0 -414
- package/dist/collection/components/organism/datetime-picker/datetime-picker.js +0 -1828
- package/dist/collection/components/organism/datetime-picker/types.js +0 -35
- package/dist/collection/components/organism/form/form-group.css +0 -64
- package/dist/collection/components/organism/form/form-group.js +0 -116
- package/dist/collection/components/organism/form/form.css +0 -65
- package/dist/collection/components/organism/listbox/listbox-group.css +0 -72
- package/dist/collection/components/organism/listbox/listbox-group.js +0 -89
- package/dist/collection/components/organism/listbox/listbox-item.css +0 -202
- package/dist/collection/components/organism/listbox/listbox-item.js +0 -639
- package/dist/collection/components/organism/listbox/listbox.css +0 -298
- package/dist/collection/components/organism/listbox/types.js +0 -7
- package/dist/collection/components/organism/menu/menu-group.css +0 -101
- package/dist/collection/components/organism/menu/menu-group.js +0 -211
- package/dist/collection/components/organism/menu/menu-item.css +0 -96
- package/dist/collection/components/organism/menu/menu-item.js +0 -172
- package/dist/collection/components/organism/menu/menu.css +0 -69
- package/dist/collection/components/organism/menu/menu.js +0 -189
- package/dist/collection/components/organism/pulldown/pulldown-group.css +0 -163
- package/dist/collection/components/organism/pulldown/pulldown-group.js +0 -256
- package/dist/collection/components/organism/pulldown/pulldown-item.css +0 -110
- package/dist/collection/components/organism/pulldown/pulldown-item.js +0 -179
- package/dist/collection/components/organism/pulldown/pulldown.css +0 -87
- package/dist/collection/components/organism/pulldown/pulldown.js +0 -226
- package/dist/collection/components/organism/selecto/selecto.css +0 -0
- package/dist/collection/components/organism/selecto/selecto.js +0 -75
- package/dist/collection/components/organism/selecto/types.js +0 -1
- package/dist/collection/components/organism/tabs/tab-pane.css +0 -75
- package/dist/collection/components/organism/tabs/tab-pane.js +0 -154
- package/dist/collection/components/organism/tabs/tab.css +0 -243
- package/dist/collection/components/organism/tabs/tab.js +0 -291
- package/dist/collection/components/organism/tabs/tabs-content.css +0 -69
- package/dist/collection/components/organism/tabs/tabs-content.js +0 -133
- package/dist/collection/components/organism/tabs/tabs.css +0 -145
- package/dist/collection/components/organism/tabs/tabs.js +0 -782
- package/dist/collection/components/organism/tabs/types.js +0 -26
- package/dist/collection/components/organism/time-picker/time-picker.css +0 -70
- package/dist/collection/components/organism/time-picker/time-picker.js +0 -427
- package/dist/collection/components/organism/treeview/treeview-group.css +0 -0
- package/dist/collection/components/organism/treeview/treeview-group.js +0 -14
- package/dist/collection/components/organism/treeview/treeview-item.css +0 -251
- package/dist/collection/components/organism/treeview/treeview-item.js +0 -975
- package/dist/collection/components/organism/treeview/treeview.css +0 -123
- package/dist/collection/components/organism/treeview/types.js +0 -7
- package/dist/collection/global/variables/colors.js +0 -216
- package/dist/collection/helper/color-helper.js +0 -33
- package/dist/collection/helper/generate.js +0 -47
- package/dist/collection/helper/number-helper.js +0 -10
- package/dist/collection/helper/string-helper.js +0 -21
- package/dist/collection/helper/validators.js +0 -21
- package/dist/collection/index.js +0 -1
- package/dist/collection/models/bcm-types.js +0 -1
- package/dist/collection/stories/atoms/avatar/avatar.stories.js +0 -80
- package/dist/collection/stories/atoms/badge/badge.stories.js +0 -79
- package/dist/collection/stories/atoms/button/button.stories.js +0 -156
- package/dist/collection/stories/atoms/divider/divider.stories.js +0 -85
- package/dist/collection/stories/atoms/icon/icon.stories.js +0 -94
- package/dist/collection/stories/atoms/link/link.stories.js +0 -53
- package/dist/collection/stories/atoms/tag/tag.stories.js +0 -82
- package/dist/collection/stories/atoms/text/text.stories.js +0 -62
- package/dist/collection/stories/molecules/alert/alert.stories.js +0 -143
- package/dist/collection/stories/molecules/breadcrumb/breadcrumb.stories.js +0 -84
- package/dist/collection/stories/molecules/card/card.stories.js +0 -47
- package/dist/collection/stories/molecules/checkbox/checkbox.stories.js +0 -197
- package/dist/collection/stories/molecules/collapse/collapse.stories.js +0 -74
- package/dist/collection/stories/molecules/comment/comment.stories.js +0 -42
- package/dist/collection/stories/molecules/dropdown/dropdown.stories.js +0 -241
- package/dist/collection/stories/molecules/empty/empty.stories.js +0 -56
- package/dist/collection/stories/molecules/input/input.stories.js +0 -320
- package/dist/collection/stories/molecules/message/message.stories.js +0 -67
- package/dist/collection/stories/molecules/modal/modal.stories.js +0 -124
- package/dist/collection/stories/molecules/notification/notification.stories.js +0 -85
- package/dist/collection/stories/molecules/popconfirm/popconfirm.stories.js +0 -158
- package/dist/collection/stories/molecules/popover/popover.stories.js +0 -124
- package/dist/collection/stories/molecules/progress/progress.stories.js +0 -97
- package/dist/collection/stories/molecules/radio/radio.stories.js +0 -140
- package/dist/collection/stories/molecules/result/result.stories.js +0 -100
- package/dist/collection/stories/molecules/select/select.stories.js +0 -659
- package/dist/collection/stories/molecules/slider/slider.stories.js +0 -139
- package/dist/collection/stories/molecules/switch/switch.stories.js +0 -121
- package/dist/collection/stories/molecules/textarea/textarea.stories.js +0 -190
- package/dist/collection/stories/molecules/timeline/timeline.stories.js +0 -57
- package/dist/collection/stories/molecules/tooltip/tooltip.stories.js +0 -114
- package/dist/collection/stories/molecules/upload/upload.stories.js +0 -99
- package/dist/collection/stories/organism/autocomplete/autocomplete.stories.js +0 -1028
- package/dist/collection/stories/organism/datepicker/datepicker.stories.js +0 -26
- package/dist/collection/stories/organism/datetimepicker/datetimepicker.stories.js +0 -26
- package/dist/collection/stories/organism/listbox/listbox.stories.js +0 -647
- package/dist/collection/stories/organism/menu/menu.stories.js +0 -150
- package/dist/collection/stories/organism/pulldown/pulldown.stories.js +0 -149
- package/dist/collection/stories/organism/tabs/tabs.stories.js +0 -142
- package/dist/collection/stories/organism/timepicker/timepicker.stories.js +0 -26
- package/dist/collection/stories/organism/treeview/treeview.stories.js +0 -587
- package/dist/collection/templates/caption-template.js +0 -22
- package/dist/collection/templates/label-template.js +0 -16
- package/dist/collection/templates/slot-template.js +0 -6
- package/dist/collection/types/index.js +0 -1
- package/dist/collection/utils/element-dragger.js +0 -270
- package/dist/collection/utils/popover-placement.js +0 -86
- package/dist/collection/utils/validation.js +0 -36
- package/dist/esm/bcm-checkbox-lite_4.entry.js +0 -284
- package/dist/esm/bcm-listbox_5.entry.js +0 -2244
- package/dist/esm/bromcom-ui.js +0 -17
- package/dist/esm/colors-7c7b35e9.js +0 -218
- package/dist/esm/index-8fe7aea4.js +0 -1721
- package/dist/esm/index-e58a2d48.js +0 -64
- package/dist/esm/index.js +0 -1
- package/dist/esm/loader.js +0 -17
- package/dist/esm/polyfills/core-js.js +0 -11
- package/dist/esm/polyfills/css-shim.js +0 -1
- package/dist/esm/polyfills/dom.js +0 -79
- package/dist/esm/polyfills/es5-html-element.js +0 -1
- package/dist/esm/polyfills/index.js +0 -34
- package/dist/esm/polyfills/system.js +0 -6
- package/dist/esm/utils-de9aee67.js +0 -166
- package/dist/index.cjs.js +0 -1
- package/dist/index.js +0 -1
|
@@ -1,979 +1,6 @@
|
|
|
1
|
-
import { r as registerInstance, h,
|
|
2
|
-
import { c as classnames } from './index-
|
|
3
|
-
import { C as ColorPalette } from './
|
|
4
|
-
import { e as extractColor, g as getChilds, d as delay } from './utils-de9aee67.js';
|
|
5
|
-
import { S as StatusProps } from './types-911a8837.js';
|
|
6
|
-
import { p as popoverPlacement, a as popoverBoxPlacement } from './popover-placement-a4ab1587.js';
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* 'type' prop variantOption
|
|
10
|
-
*/
|
|
11
|
-
const variantOptions = {
|
|
12
|
-
save: {
|
|
13
|
-
text: "Save",
|
|
14
|
-
class: "success",
|
|
15
|
-
icon: "save",
|
|
16
|
-
iconPosition: "prefix",
|
|
17
|
-
},
|
|
18
|
-
ok: {
|
|
19
|
-
text: "Ok",
|
|
20
|
-
class: "success",
|
|
21
|
-
icon: "check",
|
|
22
|
-
iconPosition: "prefix",
|
|
23
|
-
},
|
|
24
|
-
new: {
|
|
25
|
-
text: "New",
|
|
26
|
-
class: "success",
|
|
27
|
-
icon: "plus",
|
|
28
|
-
iconPosition: "prefix",
|
|
29
|
-
},
|
|
30
|
-
add: {
|
|
31
|
-
text: "Add",
|
|
32
|
-
class: "success",
|
|
33
|
-
icon: "plus",
|
|
34
|
-
iconPosition: "prefix",
|
|
35
|
-
},
|
|
36
|
-
create: {
|
|
37
|
-
text: "Create",
|
|
38
|
-
class: "success",
|
|
39
|
-
icon: "form",
|
|
40
|
-
iconPosition: "prefix",
|
|
41
|
-
},
|
|
42
|
-
prev: {
|
|
43
|
-
text: "Prev",
|
|
44
|
-
class: "",
|
|
45
|
-
icon: "arrow-left",
|
|
46
|
-
iconPosition: "prefix",
|
|
47
|
-
},
|
|
48
|
-
next: {
|
|
49
|
-
text: "Next",
|
|
50
|
-
class: "",
|
|
51
|
-
icon: "arrow-right",
|
|
52
|
-
iconPosition: "suffix",
|
|
53
|
-
},
|
|
54
|
-
apply: {
|
|
55
|
-
text: "Apply",
|
|
56
|
-
class: "",
|
|
57
|
-
icon: "check-circle",
|
|
58
|
-
iconPosition: "prefix",
|
|
59
|
-
},
|
|
60
|
-
submit: {
|
|
61
|
-
text: "Submit",
|
|
62
|
-
class: "",
|
|
63
|
-
icon: "save",
|
|
64
|
-
iconPosition: "prefix",
|
|
65
|
-
},
|
|
66
|
-
send: {
|
|
67
|
-
text: "Send",
|
|
68
|
-
class: "success",
|
|
69
|
-
icon: "send",
|
|
70
|
-
iconPosition: "prefix",
|
|
71
|
-
},
|
|
72
|
-
delete: {
|
|
73
|
-
text: "Delete",
|
|
74
|
-
class: "warning",
|
|
75
|
-
icon: "delete",
|
|
76
|
-
iconPosition: "prefix",
|
|
77
|
-
},
|
|
78
|
-
cancel: {
|
|
79
|
-
text: "Cancel",
|
|
80
|
-
class: "warning",
|
|
81
|
-
icon: "close",
|
|
82
|
-
iconPosition: "prefix",
|
|
83
|
-
},
|
|
84
|
-
decline: {
|
|
85
|
-
text: "Decline",
|
|
86
|
-
class: "warning",
|
|
87
|
-
icon: "stop",
|
|
88
|
-
iconPosition: "prefix",
|
|
89
|
-
},
|
|
90
|
-
close: {
|
|
91
|
-
text: "Close",
|
|
92
|
-
class: "warning",
|
|
93
|
-
icon: "close-circle",
|
|
94
|
-
iconPosition: "prefix",
|
|
95
|
-
},
|
|
96
|
-
archive: {
|
|
97
|
-
text: "Archive",
|
|
98
|
-
class: "warning",
|
|
99
|
-
icon: "folder-open",
|
|
100
|
-
iconPosition: "prefix",
|
|
101
|
-
},
|
|
102
|
-
remove: {
|
|
103
|
-
text: "Remove",
|
|
104
|
-
class: "warning",
|
|
105
|
-
icon: "minus-circle",
|
|
106
|
-
iconPosition: "prefix",
|
|
107
|
-
},
|
|
108
|
-
edit: {
|
|
109
|
-
text: "Edit",
|
|
110
|
-
class: "",
|
|
111
|
-
icon: "edit",
|
|
112
|
-
iconPosition: "prefix",
|
|
113
|
-
},
|
|
114
|
-
export: {
|
|
115
|
-
text: "Export",
|
|
116
|
-
class: "",
|
|
117
|
-
icon: "export",
|
|
118
|
-
iconPosition: "prefix",
|
|
119
|
-
},
|
|
120
|
-
import: {
|
|
121
|
-
text: "Import",
|
|
122
|
-
class: "",
|
|
123
|
-
icon: "import",
|
|
124
|
-
iconPosition: "prefix",
|
|
125
|
-
},
|
|
126
|
-
filter: {
|
|
127
|
-
text: "Filter",
|
|
128
|
-
class: "",
|
|
129
|
-
icon: "filter",
|
|
130
|
-
iconPosition: "prefix",
|
|
131
|
-
},
|
|
132
|
-
update: {
|
|
133
|
-
text: "Update",
|
|
134
|
-
class: "",
|
|
135
|
-
icon: "sync",
|
|
136
|
-
iconPosition: "prefix",
|
|
137
|
-
},
|
|
138
|
-
download: {
|
|
139
|
-
text: "Download",
|
|
140
|
-
class: "",
|
|
141
|
-
icon: "download",
|
|
142
|
-
iconPosition: "prefix",
|
|
143
|
-
},
|
|
144
|
-
};
|
|
145
|
-
/**
|
|
146
|
-
* 'type' prop variant
|
|
147
|
-
*/
|
|
148
|
-
var VariantProps;
|
|
149
|
-
(function (VariantProps) {
|
|
150
|
-
VariantProps["save"] = "save";
|
|
151
|
-
VariantProps["ok"] = "ok";
|
|
152
|
-
VariantProps["new"] = "new";
|
|
153
|
-
VariantProps["add"] = "add";
|
|
154
|
-
VariantProps["create"] = "create";
|
|
155
|
-
VariantProps["apply"] = "apply";
|
|
156
|
-
VariantProps["prev"] = "prev";
|
|
157
|
-
VariantProps["next"] = "next";
|
|
158
|
-
VariantProps["send"] = "send";
|
|
159
|
-
VariantProps["delete"] = "delete";
|
|
160
|
-
VariantProps["cancel"] = "cancel";
|
|
161
|
-
VariantProps["decline"] = "decline";
|
|
162
|
-
VariantProps["close"] = "close";
|
|
163
|
-
VariantProps["archive"] = "archive";
|
|
164
|
-
VariantProps["remove"] = "remove";
|
|
165
|
-
VariantProps["edit"] = "edit";
|
|
166
|
-
VariantProps["export"] = "export";
|
|
167
|
-
VariantProps["import"] = "import";
|
|
168
|
-
VariantProps["filter"] = "filter";
|
|
169
|
-
VariantProps["update"] = "update";
|
|
170
|
-
VariantProps["download"] = "download";
|
|
171
|
-
})(VariantProps || (VariantProps = {}));
|
|
172
|
-
const iconSizes = {
|
|
173
|
-
default: {
|
|
174
|
-
large: 16,
|
|
175
|
-
medium: 14,
|
|
176
|
-
small: 14,
|
|
177
|
-
},
|
|
178
|
-
iconOnly: {
|
|
179
|
-
large: 20,
|
|
180
|
-
medium: 18,
|
|
181
|
-
small: 16,
|
|
182
|
-
},
|
|
183
|
-
};
|
|
184
|
-
|
|
185
|
-
const buttonsCss = "@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}.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}:host{display:inline-block;width:fit-content}:host(.hidden){display:none}:host(.full-width){width:100%}.button{border:none;outline:0;cursor:pointer;display:flex;align-items:center;justify-content:center;text-align:center;font-family:\"Roboto\", sans-serif;padding:unset;text-decoration:none;box-sizing:border-box;border-radius:2px;position:relative;margin:0;padding:0}.button.full-width{width:100%}.button.full-width.variant span{flex:none}.button .loading{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center}.button.rounded{border-radius:100%}.button.rounded .loading{border-radius:100%}.button:before,.button:after{content:\"\"}.solid{color:var(--bcm-color-grey-1);background-color:var(--bcm-color-prime-blue-6);border:1px solid var(--bcm-color-prime-blue-6)}.solid .loading{background-color:var(--bcm-color-prime-blue-6)}.solid.outline{color:var(--bcm-color-grey-8);background-color:var(--bcm-color-grey-1);border-color:var(--bcm-color-grey-5)}.solid.outline .loading{background-color:var(--bcm-color-grey-1)}.solid.outline:hover,.solid.outline:focus{color:var(--bcm-color-prime-blue-5);background-color:var(--bcm-color-grey-1)}.solid.outline:active{color:var(--bcm-color-prime-blue-7);background-color:var(--bcm-color-grey-1)}.solid:hover,.solid:focus{background-color:var(--bcm-color-prime-blue-5);border-color:var(--bcm-color-prime-blue-5)}.solid:active{background-color:var(--bcm-color-prime-blue-7);border-color:var(--bcm-color-prime-blue-7)}.solid:disabled{color:var(--bcm-color-grey-6) !important;background-color:var(--bcm-color-grey-3) !important;border-color:var(--bcm-color-grey-5);cursor:not-allowed}.ghost{color:var(--bcm-color-prime-blue-6);background-color:transparent;border:1px solid var(--bcm-color-prime-blue-6)}.ghost .loading{background-color:var(--bcm-color-grey-1)}.ghost.outline{color:var(--bcm-color-grey-1);border-color:var(--bcm-color-grey-1)}.ghost:hover,.ghost:focus{color:var(--bcm-color-prime-blue-5);border-color:var(--bcm-color-prime-blue-5)}.ghost:active{color:var(--bcm-color-prime-blue-7);border-color:var(--bcm-color-prime-blue-7)}.ghost:disabled{color:var(--bcm-color-grey-6);border-color:var(--bcm-color-grey-5);cursor:not-allowed}.variant.large bcm-icon.prefix{margin-right:4px}.variant span{flex:1}.variant.success.solid{color:var(--bcm-color-grey-1);background-color:var(--bcm-color-bc-green-5);border:1px solid var(--bcm-color-bc-green-5)}.variant.success.solid .loading{background-color:var(--bcm-color-bc-green-5)}.variant.success.solid.outline{color:var(--bcm-color-grey-8);background-color:var(--bcm-color-grey-1);border-color:var(--bcm-color-grey-5)}.variant.success.solid.outline .loading{background-color:var(--bcm-color-grey-1)}.variant.success.solid.outline:hover,.variant.success.solid.outline:focus{color:var(--bcm-color-bc-green-4);background-color:var(--bcm-color-grey-1)}.variant.success.solid.outline:active{color:var(--bcm-color-bc-green-6);background-color:var(--bcm-color-grey-1)}.variant.success.solid:hover,.variant.success.solid:focus{background-color:var(--bcm-color-bc-green-4);border-color:var(--bcm-color-bc-green-4)}.variant.success.solid:active{background-color:var(--bcm-color-bc-green-6);border-color:var(--bcm-color-bc-green-6)}.variant.success.solid:disabled{color:var(--bcm-color-grey-6) !important;background-color:var(--bcm-color-grey-3) !important;border-color:var(--bcm-color-grey-5);cursor:not-allowed}.variant.success.ghost{color:var(--bcm-color-bc-green-5);background-color:transparent;border:1px solid var(--bcm-color-bc-green-5)}.variant.success.ghost .loading{background-color:var(--bcm-color-grey-1)}.variant.success.ghost.outline{color:var(--bcm-color-grey-1);border-color:var(--bcm-color-grey-1)}.variant.success.ghost:hover,.variant.success.ghost:focus{color:var(--bcm-color-bc-green-4);border-color:var(--bcm-color-bc-green-4)}.variant.success.ghost:active{color:var(--bcm-color-bc-green-6);border-color:var(--bcm-color-bc-green-6)}.variant.success.ghost:disabled{color:var(--bcm-color-grey-6);border-color:var(--bcm-color-grey-5);cursor:not-allowed}.variant.warning.solid{color:var(--bcm-color-grey-1);background-color:var(--bcm-color-bc-red-5);border:1px solid var(--bcm-color-bc-red-5)}.variant.warning.solid .loading{background-color:var(--bcm-color-bc-red-5)}.variant.warning.solid.outline{color:var(--bcm-color-grey-8);background-color:var(--bcm-color-grey-1);border-color:var(--bcm-color-grey-5)}.variant.warning.solid.outline .loading{background-color:var(--bcm-color-grey-1)}.variant.warning.solid.outline:hover,.variant.warning.solid.outline:focus{color:var(--bcm-color-bc-red-4);background-color:var(--bcm-color-grey-1)}.variant.warning.solid.outline:active{color:var(--bcm-color-bc-red-6);background-color:var(--bcm-color-grey-1)}.variant.warning.solid:hover,.variant.warning.solid:focus{background-color:var(--bcm-color-bc-red-4);border-color:var(--bcm-color-bc-red-4)}.variant.warning.solid:active{background-color:var(--bcm-color-bc-red-6);border-color:var(--bcm-color-bc-red-6)}.variant.warning.solid:disabled{color:var(--bcm-color-grey-6) !important;background-color:var(--bcm-color-grey-3) !important;border-color:var(--bcm-color-grey-5);cursor:not-allowed}.variant.warning.ghost{color:var(--bcm-color-bc-red-5);background-color:transparent;border:1px solid var(--bcm-color-bc-red-5)}.variant.warning.ghost .loading{background-color:var(--bcm-color-grey-1)}.variant.warning.ghost.outline{color:var(--bcm-color-grey-1);border-color:var(--bcm-color-grey-1)}.variant.warning.ghost:hover,.variant.warning.ghost:focus{color:var(--bcm-color-bc-red-4);border-color:var(--bcm-color-bc-red-4)}.variant.warning.ghost:active{color:var(--bcm-color-bc-red-6);border-color:var(--bcm-color-bc-red-6)}.variant.warning.ghost:disabled{color:var(--bcm-color-grey-6);border-color:var(--bcm-color-grey-5);cursor:not-allowed}.button>bcm-icon.prefix{margin-right:4px}.button>bcm-icon.suffix{margin-left:4px}.large{min-height:40px;min-width:120px}.large bcm-icon.prefix{margin-right:16px}.large bcm-icon.suffix{margin-left:16px}.large:not(.rounded){padding:0 16px}.large:not(.rounded).with_suffix{padding-right:0}.medium{min-height:32px;min-width:32px}.medium:not(.rounded){padding:0 16px}.medium:not(.rounded).with_suffix{padding-right:0}.small{min-height:24px;min-width:24px}.small:not(.rounded){padding:0 8px}.small:not(.rounded).with_suffix{padding-right:0}.ghost-link{width:auto;min-width:40px;color:var(--bcm-color-prime-blue-6);background-color:transparent}.ghost-link .loading{background-color:var(--bcm-color-grey-1)}.ghost-link.outline{color:var(--bcm-color-grey-1)}.ghost-link:hover,.ghost-link:focus{color:var(--bcm-color-prime-blue-5)}.ghost-link:active{color:var(--bcm-color-prime-blue-7)}.ghost-link:disabled{color:var(--bcm-color-grey-6);cursor:not-allowed}.ghost-link.large bcm-icon.prefix{margin-right:8px}.ghost-link.large:not(.rounded){padding-left:8px}.ghost-link.large:not(.rounded):not(.with_suffix){padding-right:5px}.ghost-link.rounded{border-radius:2px}.solid-link,.link{width:auto;min-width:40px;color:var(--bcm-color-grey-1);background-color:var(--bcm-color-prime-blue-6)}.solid-link .loading,.link .loading{background-color:var(--bcm-color-prime-blue-6)}.solid-link.outline,.link.outline{color:var(--bcm-color-grey-8);background-color:var(--bcm-color-grey-1)}.solid-link.outline .loading,.link.outline .loading{background-color:var(--bcm-color-grey-1)}.solid-link.outline:hover,.solid-link.outline:focus,.link.outline:hover,.link.outline:focus{color:var(--bcm-color-prime-blue-5)}.solid-link.outline:active,.link.outline:active{color:var(--bcm-color-prime-blue-7)}.solid-link:hover,.solid-link:focus,.link:hover,.link:focus{background-color:var(--bcm-color-prime-blue-5)}.solid-link:active,.link:active{background-color:var(--bcm-color-prime-blue-7)}.solid-link:disabled,.link:disabled{color:var(--bcm-color-grey-6) !important;background-color:var(--bcm-color-grey-3) !important;cursor:not-allowed}.solid-link.large bcm-icon.prefix,.link.large bcm-icon.prefix{margin-right:8px}.solid-link.large:not(.rounded),.link.large:not(.rounded){padding-left:8px}.solid-link.large:not(.rounded):not(.with_suffix),.link.large:not(.rounded):not(.with_suffix){padding-right:5px}.solid-link.rounded,.link.rounded{border-radius:2px}:host-context(.split_summary.open) .solid{background-color:var(--bcm-color-prime-blue-7);border-color:var(--bcm-color-prime-blue-7)}:host-context(.split_summary.open) .solid.outline{color:var(--bcm-color-prime-blue-7);border-color:var(--bcm-color-prime-blue-7);background-color:var(--bcm-color-grey-1)}:host-context(.split_summary) .large:not(.rounded) bcm-icon.prefix{margin-right:4px}:host-context(.split_summary) .large:not(.rounded) bcm-icon.suffix{margin-left:4px}";
|
|
186
|
-
|
|
187
|
-
const BcmButton = class {
|
|
188
|
-
constructor(hostRef) {
|
|
189
|
-
registerInstance(this, hostRef);
|
|
190
|
-
this.kind = 'solid';
|
|
191
|
-
this.size = 'medium';
|
|
192
|
-
this.disabled = false;
|
|
193
|
-
this.outline = false;
|
|
194
|
-
this.iconPosition = 'prefix';
|
|
195
|
-
this.loading = false;
|
|
196
|
-
this.type = 'button';
|
|
197
|
-
this.hidden = false;
|
|
198
|
-
this.dataDismiss = false;
|
|
199
|
-
this.fullWidth = false;
|
|
200
|
-
}
|
|
201
|
-
handleOnClick(e) {
|
|
202
|
-
if (this.host.contains(e.target)) {
|
|
203
|
-
if (this.disabled) {
|
|
204
|
-
e.preventDefault();
|
|
205
|
-
e.stopPropagation();
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
render() {
|
|
210
|
-
const { size, kind, disabled, outline, icon, iconPosition, href, target, loading, variant, fullWidth } = this;
|
|
211
|
-
const isIconOnly = this.host.childNodes.length < 1 && this.icon ? true : false;
|
|
212
|
-
const isSuffixExist = this.host.querySelectorAll('[slot="suffix"]').length > 0;
|
|
213
|
-
const iconSize = isIconOnly ? iconSizes.iconOnly[size] : iconSizes.default[size];
|
|
214
|
-
const Component = (href && !disabled) ? 'a' : 'button';
|
|
215
|
-
const hostClasses = classnames(this.hidden ? 'hidden' : null, {
|
|
216
|
-
'full-width': fullWidth
|
|
217
|
-
});
|
|
218
|
-
const classes = classnames('button', size, kind, {
|
|
219
|
-
'size-2': size === 'small' || size === 'medium',
|
|
220
|
-
'size-3': size === 'large',
|
|
221
|
-
'rounded': isIconOnly,
|
|
222
|
-
'outline': outline,
|
|
223
|
-
'with_suffix': isSuffixExist,
|
|
224
|
-
'full-width': fullWidth
|
|
225
|
-
});
|
|
226
|
-
if (variant in VariantProps) {
|
|
227
|
-
const classes = classnames('button', size, kind, 'variant', variantOptions[variant].class, {
|
|
228
|
-
'size-2': size === 'small' || size === 'medium',
|
|
229
|
-
'size-3': size === 'large',
|
|
230
|
-
'outline': outline,
|
|
231
|
-
'full-width': fullWidth
|
|
232
|
-
});
|
|
233
|
-
const icon = variantOptions[variant].icon;
|
|
234
|
-
const iconPosition = variantOptions[variant].iconPosition;
|
|
235
|
-
return (h(Host, { class: hostClasses }, h(Component, { class: classes, disabled: disabled, href: href, target: target }, loading && h("div", { class: "loading" }, " ", h("bcm-icon", { type: "animated", class: "prefix", icon: "loading", size: iconSize }), " "), icon && iconPosition === "prefix" && h("bcm-icon", { type: "outlined", class: "prefix", icon: icon, size: iconSize }), h("span", null, variantOptions[variant].text), icon && iconPosition === "suffix" && h("bcm-icon", { type: "outlined", class: "suffix", icon: icon, size: iconSize }))));
|
|
236
|
-
}
|
|
237
|
-
else if (isIconOnly) {
|
|
238
|
-
return (h(Host, { class: hostClasses }, h(Component, { class: classes, disabled: disabled, href: href, target: target }, loading && h("div", { class: "loading" }, " ", h("bcm-icon", { type: "animated", class: "prefix", icon: "loading", size: iconSize }), " "), h("bcm-icon", { icon: icon, size: iconSize, type: "outlined" }))));
|
|
239
|
-
}
|
|
240
|
-
return (h(Host, { class: hostClasses }, h(Component, { class: classes, disabled: disabled, href: href, target: target }, loading && h("div", { class: "loading" }, " ", h("bcm-icon", { type: "animated", class: "prefix", icon: "loading", size: iconSize }), " "), icon && iconPosition === "prefix" && h("bcm-icon", { type: "outlined", class: "prefix", icon: icon, size: iconSize }), h("slot", null), icon && iconPosition === "suffix" && h("bcm-icon", { type: "outlined", class: "suffix", icon: icon, size: iconSize }), h("slot", { name: "suffix" }))));
|
|
241
|
-
}
|
|
242
|
-
get host() { return getElement(this); }
|
|
243
|
-
};
|
|
244
|
-
BcmButton.style = buttonsCss;
|
|
245
|
-
|
|
246
|
-
/**
|
|
247
|
-
* 'color' prop predefined values
|
|
248
|
-
*/
|
|
249
|
-
var ColorProps;
|
|
250
|
-
(function (ColorProps) {
|
|
251
|
-
ColorProps["black"] = "black";
|
|
252
|
-
ColorProps["white"] = "white";
|
|
253
|
-
ColorProps["prime-blue"] = "prime-blue";
|
|
254
|
-
ColorProps["grey"] = "grey";
|
|
255
|
-
ColorProps["blue"] = "blue";
|
|
256
|
-
ColorProps["warmyellow"] = "warmyellow";
|
|
257
|
-
ColorProps["yellow"] = "yellow";
|
|
258
|
-
ColorProps["limegreen"] = "limegreen";
|
|
259
|
-
ColorProps["red"] = "red";
|
|
260
|
-
ColorProps["darkorange"] = "darkorange";
|
|
261
|
-
ColorProps["orange"] = "orange";
|
|
262
|
-
ColorProps["green"] = "green";
|
|
263
|
-
ColorProps["turquosie"] = "turquosie";
|
|
264
|
-
ColorProps["cobaltblue"] = "cobaltblue";
|
|
265
|
-
ColorProps["magenta"] = "magenta";
|
|
266
|
-
ColorProps["purple"] = "purple";
|
|
267
|
-
ColorProps["bc-red"] = "bc-red";
|
|
268
|
-
ColorProps["bc-blue"] = "bc-blue";
|
|
269
|
-
ColorProps["bc-green"] = "bc-green";
|
|
270
|
-
ColorProps["bc-orange"] = "bc-orange";
|
|
271
|
-
})(ColorProps || (ColorProps = {}));
|
|
272
|
-
|
|
273
|
-
const checkboxCss = "@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}.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}:host{display:inline-block}:host(.hidden){display:none}input{display:none}.svg-icon{filter:brightness(0) invert(1);width:12px;height:12px}label{display:flex;align-items:flex-start;font-size:14px;color:var(--bcm-color-grey-8);cursor:pointer}label span.icon{display:flex;align-items:center;justify-content:center;min-width:16px;min-height:16px;border:1px solid #D9D9D9;margin-right:8px;border-radius:2px;margin-top:2px;background-color:var(--bcm-color-grey-1)}:host(.indeterminate) label span.icon{position:relative}:host(.indeterminate) label span.icon::after{content:\"\";position:absolute;top:50%;left:8px;width:10px;height:10px;background-color:var(--bcm-color-prime-blue-6);transform:translate(-50%, -50%);opacity:1;z-index:1}:host(.indeterminate) label span.icon::before{content:\"\";position:absolute;top:-1px;left:-1px;width:16px;height:100%;border-radius:2px;background-color:var(--bcm-color-grey-1);border:1px solid var(--bcm-color-grey-5);opacity:1;z-index:1}:host(.indeterminate) label span.icon:hover:not(.disabled):before{border-color:var(--bcm-color-prime-blue-6);box-shadow:0px 2px 4px rgba(54, 121, 171, 0.5)}input:checked+label span.icon{background-color:var(--bcm-color-prime-blue-6);border-color:transparent}input:checked+label .icon-checked{display:block}bcm-icon{filter:brightness(0) invert(1)}input[disabled]+label{cursor:not-allowed}input[disabled]+label span.icon{background-color:var(--bcm-color-grey-3);border-color:var(--bcm-color-grey-5)}input[disabled]+label bcm-icon{filter:brightness(0);opacity:0.3}input:not([disabled])+label:hover span.icon{border-color:var(--bcm-color-prime-blue-6);box-shadow:0px 2px 4px rgba(54, 121, 171, 0.5)}:host(.error) input:not([disabled])+label span.icon{border-color:var(--bcm-color-red-6)}.caption-area{margin-bottom:8px;min-height:20px;display:block}.input-caption{display:block}.caption-default{color:#8C8C8C}.caption-primary{color:#4293CF}.caption-success{color:#52C41A}.caption-warning{color:#FA8C16}.caption-error{color:#F5222D}.radio-button{background-color:var(--bcm-color-grey-1);color:var(--bcm-color-grey-8);border:1px solid var(--bcm-color-grey-5);padding:0 16px;box-sizing:border-box;display:flex;align-items:center;justify-content:center}.radio-button>span.icon{display:none}.radio-button>span.slot{display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;user-select:none}.radio-button:hover:not(.disabled){color:var(--bcm-color-prime-blue-5)}.radio-button:active:not(.disabled){color:var(--bcm-color-prime-blue-7)}.radio-button.disabled{background-color:var(--bcm-color-grey-3);color:var(--bcm-color-grey-6);cursor:not-allowed}.radio-button.checked.disabled{background-color:var(--bcm-color-grey-4);color:var(--bcm-color-grey-1);border-color:var(--bcm-color-grey-5)}.radio-button.checked.solid{color:var(--bcm-color-grey-1);background-color:var(--bcm-color-prime-blue-6);border-color:var(--bcm-color-prime-blue-6)}.radio-button.checked.solid:hover{background-color:var(--bcm-color-prime-blue-5);border-color:var(--bcm-color-prime-blue-5)}.radio-button.checked.solid:active{background-color:var(--bcm-color-prime-blue-7);border-color:var(--bcm-color-prime-blue-7)}.radio-button.checked.outline{background-color:var(--bcm-color-grey-1);color:var(--bcm-color-prime-blue-6);border-color:var(--bcm-color-prime-blue-6)}.radio-button.checked.outline:hover{color:var(--bcm-color-prime-blue-5);border-color:var(--bcm-color-prime-blue-5)}.radio-button.checked.outline:active{color:var(--bcm-color-prime-blue-7);border-color:var(--bcm-color-prime-blue-7)}.radio-button.large{height:40px}.radio-button.medium{height:32px}.radio-button.small{height:24px}";
|
|
274
|
-
|
|
275
|
-
const BcmCheckbox = class {
|
|
276
|
-
constructor(hostRef) {
|
|
277
|
-
registerInstance(this, hostRef);
|
|
278
|
-
this.blur = createEvent(this, "bcm-blur", 7);
|
|
279
|
-
this.focus = createEvent(this, "bcm-focus", 7);
|
|
280
|
-
this.change = createEvent(this, "bcm-change", 7);
|
|
281
|
-
/**
|
|
282
|
-
* Component Properties
|
|
283
|
-
*/
|
|
284
|
-
this.value = '';
|
|
285
|
-
this.name = 'checkbox';
|
|
286
|
-
this.checked = false;
|
|
287
|
-
this.disabled = false;
|
|
288
|
-
this.readOnly = false;
|
|
289
|
-
this.hidden = false;
|
|
290
|
-
this.required = false;
|
|
291
|
-
this.optionType = 'default';
|
|
292
|
-
this.buttonStyle = 'solid';
|
|
293
|
-
this.size = 'medium';
|
|
294
|
-
this.noCaption = false;
|
|
295
|
-
this.captionType = 'default';
|
|
296
|
-
}
|
|
297
|
-
/**
|
|
298
|
-
* @ComponentMethod
|
|
299
|
-
*/
|
|
300
|
-
connectedCallback() {
|
|
301
|
-
this.handleChange = this.handleChange.bind(this);
|
|
302
|
-
this.captionCache = this.caption;
|
|
303
|
-
this.captionTypeCache = this.captionType;
|
|
304
|
-
}
|
|
305
|
-
async setClear() {
|
|
306
|
-
if (this.inputElement.checked == true) {
|
|
307
|
-
this.inputElement.checked = false;
|
|
308
|
-
this.handleChange();
|
|
309
|
-
}
|
|
310
|
-
}
|
|
311
|
-
async resetCaption() {
|
|
312
|
-
this.caption = this.captionCache;
|
|
313
|
-
this.captionType = this.captionTypeCache;
|
|
314
|
-
this.captionError = null;
|
|
315
|
-
}
|
|
316
|
-
componentDidLoad() {
|
|
317
|
-
this.value = this.inputElement.checked;
|
|
318
|
-
this.checked = this.value;
|
|
319
|
-
}
|
|
320
|
-
/**
|
|
321
|
-
* @desc
|
|
322
|
-
* @param event
|
|
323
|
-
* @returns
|
|
324
|
-
*/
|
|
325
|
-
handleChange() {
|
|
326
|
-
this.value = this.inputElement.checked;
|
|
327
|
-
this.checked = this.value;
|
|
328
|
-
this.change.emit({
|
|
329
|
-
name: this.name,
|
|
330
|
-
value: this.value
|
|
331
|
-
});
|
|
332
|
-
}
|
|
333
|
-
handleFocus() {
|
|
334
|
-
this.focus.emit();
|
|
335
|
-
}
|
|
336
|
-
handleBlur() {
|
|
337
|
-
this.blur.emit();
|
|
338
|
-
}
|
|
339
|
-
/**
|
|
340
|
-
* @desc
|
|
341
|
-
* @param name -
|
|
342
|
-
* @returns {void}
|
|
343
|
-
*/
|
|
344
|
-
async check(uncheck) {
|
|
345
|
-
this.inputElement.checked = uncheck;
|
|
346
|
-
this.handleChange();
|
|
347
|
-
}
|
|
348
|
-
getColor(color) {
|
|
349
|
-
if (this.color !== 'default' && this.optionType == 'button' && this.checked)
|
|
350
|
-
return {
|
|
351
|
-
// color: extractColor(ColorPalette, ColorProps[color] + '-6'),
|
|
352
|
-
borderColor: extractColor(ColorPalette, ColorProps[color] + '-5'),
|
|
353
|
-
backgroundColor: extractColor(ColorPalette, ColorProps[color] + '-5')
|
|
354
|
-
};
|
|
355
|
-
}
|
|
356
|
-
render() {
|
|
357
|
-
const { disabled, checked, readOnly, name, handleChange, required, caption, captionError, captionType, noCaption, buttonStyle, size, optionType } = this;
|
|
358
|
-
const hostClasses = classnames(this.hidden ? 'hidden' : null, {
|
|
359
|
-
'error': captionType == 'error' ? true : false
|
|
360
|
-
});
|
|
361
|
-
const captionClasses = classnames('size-1', 'input-caption', 'caption-' + captionType);
|
|
362
|
-
const defaultClasses = classnames();
|
|
363
|
-
const buttonClasses = classnames('radio-button', buttonStyle, size, {
|
|
364
|
-
'size-2': size === 'small' || size === 'medium',
|
|
365
|
-
'size-3': size === 'large',
|
|
366
|
-
'checked': checked,
|
|
367
|
-
'disabled': disabled,
|
|
368
|
-
});
|
|
369
|
-
var fontColor = extractColor(ColorPalette, ColorProps[this.color] + '-6');
|
|
370
|
-
var style = "<style>.radio-button:not(.checked):hover{color: " + fontColor + "} </style>";
|
|
371
|
-
return (h(Host, { class: hostClasses, onFocus: () => this.handleFocus(), onBlur: () => this.handleBlur() }, h("input", { id: name, type: "checkbox", checked: checked, disabled: disabled, required: required, readOnly: readOnly, onChange: handleChange, ref: el => (this.inputElement = el) }), optionType == 'button' && (h("span", { innerHTML: style })), h("label", { title: optionType == 'button' ? this.el.innerHTML : null, htmlFor: name, class: optionType == 'default' ? defaultClasses : buttonClasses, style: this.getColor(this.color) }, h("span", { class: "icon" }, h("bcm-icon", { class: "icon-checked", icon: "component-check", size: "small", type: "default" })), h("span", { class: "slot" }, h("slot", null))), !noCaption && (h("div", { class: "caption-area" }, captionType == "error"
|
|
372
|
-
? h("span", { class: captionClasses }, " ", captionError, " ")
|
|
373
|
-
: caption && h("span", { class: captionClasses }, " ", caption, " ")))));
|
|
374
|
-
}
|
|
375
|
-
get el() { return getElement(this); }
|
|
376
|
-
};
|
|
377
|
-
BcmCheckbox.style = checkboxCss;
|
|
378
|
-
|
|
379
|
-
const groupCss = "@import url(\"https://fonts.googleapis.com/css?family=Roboto:400,500\");.size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}:host{display:block;width:100%}:host(.hidden){display:none}:host(.error) .label{color:var(--bcm-color-red-6) !important}.group-container{display:flex;gap:24px}.group-container.vertical{gap:unset;flex-direction:column}.group-container.button{gap:unset}.group-container.full-width{max-width:100%}.indeterminate{padding:0 0 16px 0;margin-bottom:16px;border-bottom:1px solid #efefef;}.indeterminate input{display:none}.indeterminate label{display:flex;align-items:center;font-size:14px;color:var(--bcm-color-grey-8);cursor:pointer}.indeterminate label .icon-checked{display:none}.indeterminate span{position:relative;display:flex;align-items:center;justify-content:center;width:16px;height:16px;border:1px solid #D9D9D9;margin-right:8px;border-radius:2px}.indeterminate span:after{content:\"\";position:absolute;top:50%;left:50%;width:10px;height:10px;background-color:var(--bcm-color-prime-blue-6);transform:translate(-50%, -50%);opacity:0}.indeterminate bcm-icon{filter:brightness(0) invert(1)}.indeterminate input[disabled]+label{cursor:not-allowed}.indeterminate input[disabled]+label span{background-color:var(--bcm-color-grey-3);border-color:var(--bcm-color-grey-5)}.indeterminate input[disabled]+label span:after{background-color:var(--bcm-color-grey-6)}.indeterminate input[disabled]+label bcm-icon{filter:brightness(0);opacity:0.3}.indeterminate input:not([disabled])+label:hover span{border-color:var(--bcm-color-prime-blue-6);box-shadow:0px 2px 4px rgba(54, 121, 171, 0.5)}.indeterminate.bcm-uncheck label span{background-color:#ffffff}.indeterminate.bcm-determinate bcm-icon{display:block}.indeterminate.bcm-determinate label span{background-color:var(--bcm-color-prime-blue-6);border-color:transparent}.indeterminate.bcm-determinate label span:after{opacity:0}.indeterminate.bcm-indeterminate bcm-icon{display:none !important}.indeterminate.bcm-indeterminate label span{background-color:#ffffff}.indeterminate.bcm-indeterminate label span:after{opacity:1}.label{display:flex;flex-direction:column;color:var(--bcm-color-grey-9);margin-bottom:8px}";
|
|
380
|
-
|
|
381
|
-
const BcmCheckboxGroup = class {
|
|
382
|
-
constructor(hostRef) {
|
|
383
|
-
registerInstance(this, hostRef);
|
|
384
|
-
this.groupChange = createEvent(this, "bcm-group-change", 7);
|
|
385
|
-
this.groupCheckedList = createEvent(this, "bcm-group-checked-list", 7);
|
|
386
|
-
/**
|
|
387
|
-
* Private variables
|
|
388
|
-
*/
|
|
389
|
-
this.checkboxes = [];
|
|
390
|
-
/**
|
|
391
|
-
* Component Properties
|
|
392
|
-
*/
|
|
393
|
-
this.direction = 'horizontal';
|
|
394
|
-
this.items = [];
|
|
395
|
-
this.indeterminate = false;
|
|
396
|
-
this.disabled = false;
|
|
397
|
-
this.hidden = false;
|
|
398
|
-
this.required = false;
|
|
399
|
-
this.label = null;
|
|
400
|
-
this.gap = null;
|
|
401
|
-
this.fullWidth = "false";
|
|
402
|
-
this.optionType = 'default';
|
|
403
|
-
this.buttonStyle = 'solid';
|
|
404
|
-
this.size = 'medium';
|
|
405
|
-
this.noCaption = false;
|
|
406
|
-
this.captionType = 'default';
|
|
407
|
-
/**
|
|
408
|
-
* Component State Variables
|
|
409
|
-
*/
|
|
410
|
-
this.indeterminateState = 'uncheck';
|
|
411
|
-
this.checkboxesProp = [];
|
|
412
|
-
}
|
|
413
|
-
/**
|
|
414
|
-
* @ComponentMethod
|
|
415
|
-
*/
|
|
416
|
-
componentWillLoad() {
|
|
417
|
-
this.parseItems(this.items);
|
|
418
|
-
this.parseOptions();
|
|
419
|
-
}
|
|
420
|
-
/**
|
|
421
|
-
* @ComponentMethod
|
|
422
|
-
*/
|
|
423
|
-
connectedCallback() { }
|
|
424
|
-
componentDidLoad() {
|
|
425
|
-
let checkboxesInit = [];
|
|
426
|
-
checkboxesInit = this.getAllInputs();
|
|
427
|
-
checkboxesInit.map(checkbox => {
|
|
428
|
-
if (this.fullWidth != "false") {
|
|
429
|
-
if (this.fullWidth === "flex") {
|
|
430
|
-
checkbox.style.flex = "auto";
|
|
431
|
-
}
|
|
432
|
-
else {
|
|
433
|
-
checkbox.style.width = "100%";
|
|
434
|
-
}
|
|
435
|
-
}
|
|
436
|
-
this.optionType && (checkbox.optionType = this.optionType);
|
|
437
|
-
this.buttonStyle && (checkbox.buttonStyle = this.buttonStyle);
|
|
438
|
-
this.size && (checkbox.size = this.size);
|
|
439
|
-
// this.required == true && checkbox.required == true && (
|
|
440
|
-
// checkbox.required = true
|
|
441
|
-
// )
|
|
442
|
-
this.disabled == true && (checkbox.disabled = true);
|
|
443
|
-
});
|
|
444
|
-
this.groupChecked().then(values => this.value = values);
|
|
445
|
-
}
|
|
446
|
-
async setClear() {
|
|
447
|
-
const checkboxesInit = this.getAllInputs();
|
|
448
|
-
checkboxesInit.map(checkbox => {
|
|
449
|
-
checkbox.setClear();
|
|
450
|
-
checkbox.noCaption = this.noCaption;
|
|
451
|
-
});
|
|
452
|
-
}
|
|
453
|
-
async resetCaption() {
|
|
454
|
-
const checkboxesInit = this.getAllInputs();
|
|
455
|
-
checkboxesInit.map(checkbox => {
|
|
456
|
-
checkbox.resetCaption();
|
|
457
|
-
checkbox.noCaption = this.noCaption;
|
|
458
|
-
});
|
|
459
|
-
}
|
|
460
|
-
/**
|
|
461
|
-
* @ComponentMethod
|
|
462
|
-
*/
|
|
463
|
-
componentDidRender() {
|
|
464
|
-
let slotElements;
|
|
465
|
-
slotElements = this.el.shadowRoot.querySelector('slot').assignedElements();
|
|
466
|
-
this.checkboxes = [];
|
|
467
|
-
// Get only bcm-checkbox elements from
|
|
468
|
-
// slot childs
|
|
469
|
-
slotElements.map(element => {
|
|
470
|
-
String(element.tagName).toLowerCase() == 'bcm-checkbox'
|
|
471
|
-
&& this.checkboxes.push(element);
|
|
472
|
-
});
|
|
473
|
-
this.setIndeterminateState();
|
|
474
|
-
if (this.items.length > 0) {
|
|
475
|
-
let checkboxesInit = [];
|
|
476
|
-
checkboxesInit = this.getAllInputs();
|
|
477
|
-
checkboxesInit.map(checkbox => {
|
|
478
|
-
this.defaultValueState && (this.defaultValueState.find(e => e === checkbox.name) && checkbox.check(checkbox.name));
|
|
479
|
-
});
|
|
480
|
-
}
|
|
481
|
-
}
|
|
482
|
-
componentDidUpdate() {
|
|
483
|
-
this.handleChange();
|
|
484
|
-
}
|
|
485
|
-
/**
|
|
486
|
-
* @desc
|
|
487
|
-
*/
|
|
488
|
-
inputChange() {
|
|
489
|
-
this.groupChecked().then(values => this.value = values);
|
|
490
|
-
this.setIndeterminateState();
|
|
491
|
-
}
|
|
492
|
-
/**
|
|
493
|
-
* @desc Returns merged slot and prop
|
|
494
|
-
* checkbox items
|
|
495
|
-
* @returns {Array<BcmCheckbox>}
|
|
496
|
-
*/
|
|
497
|
-
getAllInputs() {
|
|
498
|
-
return [
|
|
499
|
-
...this.checkboxes,
|
|
500
|
-
...this.el.shadowRoot.querySelectorAll('bcm-checkbox')
|
|
501
|
-
];
|
|
502
|
-
}
|
|
503
|
-
/**
|
|
504
|
-
* @desc
|
|
505
|
-
* @returns {void}
|
|
506
|
-
*/
|
|
507
|
-
setIndeterminateState() {
|
|
508
|
-
let state = 'uncheck';
|
|
509
|
-
let allChecked = true;
|
|
510
|
-
let allUnchecked = true;
|
|
511
|
-
this.getAllInputs().map((checkbox) => {
|
|
512
|
-
checkbox.checked && (allUnchecked = false);
|
|
513
|
-
!checkbox.checked && (allChecked = false);
|
|
514
|
-
});
|
|
515
|
-
!allChecked && !allUnchecked
|
|
516
|
-
? state = 'indeterminate'
|
|
517
|
-
: allChecked
|
|
518
|
-
? state = 'determinate'
|
|
519
|
-
: state = 'uncheck';
|
|
520
|
-
this.indeterminateState = state;
|
|
521
|
-
}
|
|
522
|
-
/**
|
|
523
|
-
* @desc
|
|
524
|
-
* @param event
|
|
525
|
-
*/
|
|
526
|
-
indeterminateClick() {
|
|
527
|
-
if (this.disabled == false) {
|
|
528
|
-
let checkAll = true;
|
|
529
|
-
if (this.indeterminateState == 'determinate') {
|
|
530
|
-
checkAll = false;
|
|
531
|
-
}
|
|
532
|
-
this.getAllInputs().map((checkbox) => {
|
|
533
|
-
checkbox.check(checkAll);
|
|
534
|
-
});
|
|
535
|
-
}
|
|
536
|
-
}
|
|
537
|
-
parseOptions() {
|
|
538
|
-
if (this.defaultValue) {
|
|
539
|
-
this.defaultValueState = JSON.parse(this.defaultValue);
|
|
540
|
-
}
|
|
541
|
-
}
|
|
542
|
-
/**
|
|
543
|
-
* @desc
|
|
544
|
-
* @param newValue
|
|
545
|
-
* @returns {void}
|
|
546
|
-
*/
|
|
547
|
-
parseItems(newValue) {
|
|
548
|
-
if (newValue) {
|
|
549
|
-
typeof newValue == 'string'
|
|
550
|
-
? this.checkboxesProp = JSON.parse(newValue)
|
|
551
|
-
: this.checkboxesProp = newValue;
|
|
552
|
-
}
|
|
553
|
-
}
|
|
554
|
-
/**
|
|
555
|
-
* @desc
|
|
556
|
-
* @param name -
|
|
557
|
-
* @returns {boolean | Array<any>}
|
|
558
|
-
*/
|
|
559
|
-
async check(options) {
|
|
560
|
-
if (options) {
|
|
561
|
-
typeof options == 'string'
|
|
562
|
-
? options = JSON.parse(options)
|
|
563
|
-
: options = options;
|
|
564
|
-
}
|
|
565
|
-
let checkboxes = [];
|
|
566
|
-
checkboxes = this.getAllInputs();
|
|
567
|
-
const inBoth = (list1, list2) => list1.filter(a => true === list2.some(b => a.name === b.name));
|
|
568
|
-
let optionsArray = options;
|
|
569
|
-
inBoth(checkboxes, options).map(item => {
|
|
570
|
-
item.check(optionsArray.find(x => x.name === item.name).checked);
|
|
571
|
-
});
|
|
572
|
-
}
|
|
573
|
-
/**
|
|
574
|
-
* @desc
|
|
575
|
-
* @param name -
|
|
576
|
-
* @returns {boolean | Array<any>}
|
|
577
|
-
*/
|
|
578
|
-
async groupChecked(name) {
|
|
579
|
-
let retVal = null;
|
|
580
|
-
let checkeds = {};
|
|
581
|
-
let checkboxes = [];
|
|
582
|
-
if (typeof retVal != 'boolean' && !retVal) {
|
|
583
|
-
retVal = checkeds;
|
|
584
|
-
}
|
|
585
|
-
// Merge slotted items with prop items
|
|
586
|
-
// #
|
|
587
|
-
checkboxes = this.getAllInputs();
|
|
588
|
-
checkboxes.map(checkbox => {
|
|
589
|
-
checkbox.checked && (checkeds[checkbox.name] = {
|
|
590
|
-
value: true,
|
|
591
|
-
name: checkbox.name
|
|
592
|
-
});
|
|
593
|
-
!checkbox.checked && (checkeds[checkbox.name] = {
|
|
594
|
-
value: false,
|
|
595
|
-
name: checkbox.name
|
|
596
|
-
});
|
|
597
|
-
if (checkbox.name === name) {
|
|
598
|
-
retVal = checkbox.checked;
|
|
599
|
-
}
|
|
600
|
-
});
|
|
601
|
-
return retVal;
|
|
602
|
-
}
|
|
603
|
-
handleChange() {
|
|
604
|
-
let checkeds = {};
|
|
605
|
-
let changes = {};
|
|
606
|
-
let checkboxes = [];
|
|
607
|
-
checkboxes = this.getAllInputs();
|
|
608
|
-
checkboxes.map(checkbox => {
|
|
609
|
-
checkbox.checked && (checkeds[checkbox.name] = {
|
|
610
|
-
value: true,
|
|
611
|
-
name: checkbox.name
|
|
612
|
-
});
|
|
613
|
-
changes[checkbox.name] = {
|
|
614
|
-
value: checkbox.checked ? true : false,
|
|
615
|
-
name: checkbox.name
|
|
616
|
-
};
|
|
617
|
-
});
|
|
618
|
-
this.groupChange.emit(changes);
|
|
619
|
-
this.groupCheckedList.emit(checkeds);
|
|
620
|
-
}
|
|
621
|
-
render() {
|
|
622
|
-
const { checkboxesProp, indeterminate, disabled, label, required, captionType } = this;
|
|
623
|
-
const groupContainerClasses = classnames('group-container', this.direction, this.optionType, this.fullWidth, {
|
|
624
|
-
'full-width': this.fullWidth
|
|
625
|
-
});
|
|
626
|
-
const indeterminateClasses = classnames('indeterminate', 'bcm-' + this.indeterminateState, {
|
|
627
|
-
'disabled': disabled
|
|
628
|
-
});
|
|
629
|
-
const hostClasses = classnames(this.hidden ? 'hidden' : null, {
|
|
630
|
-
'error': captionType == 'error' ? true : false
|
|
631
|
-
});
|
|
632
|
-
var customStyle = {};
|
|
633
|
-
this.gap && (customStyle = { 'gap': this.gap });
|
|
634
|
-
return (h(Host, { class: hostClasses, "on-bcm-change": () => this.inputChange() }, label && h("div", null, h("bcm-label", { tooltip: this.tooltip, type: captionType, value: label, required: required })), indeterminate && (h("div", { class: indeterminateClasses }, h("input", { id: "bcm-indeterminate-element", type: "checkbox", disabled: disabled }), h("label", { htmlFor: "bcm-indeterminate-element", "on-click": () => this.indeterminateClick() }, h("span", null, h("bcm-icon", { class: "icon-checked", icon: "component-check", size: "small", type: "default" })), "Check All"))), h("div", { class: groupContainerClasses, style: customStyle }, checkboxesProp && this.checkboxesProp.map((checkbox) => h("bcm-checkbox", { name: checkbox.name, checked: checkbox.checked, disabled: checkbox.disabled, required: this.required === true && checkbox.required === true && (true), noCaption: this.noCaption, optionType: this.optionType, buttonStyle: this.buttonStyle, size: this.size, "full-width": this.fullWidth }, checkbox.label)), h("slot", null))));
|
|
635
|
-
}
|
|
636
|
-
get el() { return getElement(this); }
|
|
637
|
-
static get watchers() { return {
|
|
638
|
-
"defaultValue": ["parseOptions"],
|
|
639
|
-
"items": ["parseItems"]
|
|
640
|
-
}; }
|
|
641
|
-
};
|
|
642
|
-
BcmCheckboxGroup.style = groupCss;
|
|
643
|
-
|
|
644
|
-
// /**
|
|
645
|
-
// *
|
|
646
|
-
// * @param type
|
|
647
|
-
// */
|
|
648
|
-
// export const required = (value:any) => {
|
|
649
|
-
// if ( value || value != null ) {
|
|
650
|
-
// return true
|
|
651
|
-
// } else {
|
|
652
|
-
// return true
|
|
653
|
-
// }
|
|
654
|
-
// }
|
|
655
|
-
class rules {
|
|
656
|
-
constructor() { }
|
|
657
|
-
response(status, message) {
|
|
658
|
-
return Object.assign(Object.assign({ valid: status }, (message && { message })), (!status && { type: 'error' }));
|
|
659
|
-
}
|
|
660
|
-
required(value, componentValidation) {
|
|
661
|
-
let validation = this.response(true);
|
|
662
|
-
if (value == '' || value == "" || value == undefined || value == null || value === false) {
|
|
663
|
-
validation = this.response(false, 'This field is required.');
|
|
664
|
-
}
|
|
665
|
-
if (componentValidation) {
|
|
666
|
-
if (!componentValidation.valid) {
|
|
667
|
-
validation = this.response(false, componentValidation.errorText);
|
|
668
|
-
}
|
|
669
|
-
if (value instanceof Object) {
|
|
670
|
-
if (value.isValid) {
|
|
671
|
-
if (value.isValid == false)
|
|
672
|
-
validation = this.response(false, 'This field is required.');
|
|
673
|
-
}
|
|
674
|
-
}
|
|
675
|
-
}
|
|
676
|
-
return validation;
|
|
677
|
-
}
|
|
678
|
-
}
|
|
679
|
-
const validate = new rules;
|
|
680
|
-
|
|
681
|
-
const formCss = "@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}:host{display:block;margin-bottom:8px}:host(.hidden){display:none}";
|
|
682
|
-
|
|
683
|
-
/**
|
|
684
|
-
* @desc
|
|
685
|
-
* @param str
|
|
686
|
-
*/
|
|
687
|
-
const lowercase = (str) => str.toLowerCase();
|
|
688
|
-
const BcmForm = class {
|
|
689
|
-
constructor(hostRef) {
|
|
690
|
-
registerInstance(this, hostRef);
|
|
691
|
-
this.bcmForm = createEvent(this, "bcm-form", 7);
|
|
692
|
-
this.formData = {};
|
|
693
|
-
this.inputs = [];
|
|
694
|
-
this.duplicateInput = [];
|
|
695
|
-
this.isValid = true;
|
|
696
|
-
this.returnCaption = [];
|
|
697
|
-
this.Bromcom = {
|
|
698
|
-
errors: {
|
|
699
|
-
targetFormNotExist: 'target form is not exist --> ',
|
|
700
|
-
},
|
|
701
|
-
inputComponents: {
|
|
702
|
-
FORM_GROUP: 'form-group',
|
|
703
|
-
FORM: 'form',
|
|
704
|
-
INPUT: 'input',
|
|
705
|
-
TEXTAREA: 'textarea',
|
|
706
|
-
RADIO_GROUP: 'radio-group',
|
|
707
|
-
CHECKBOX: 'checkbox',
|
|
708
|
-
CHECKBOX_GROUP: 'checkbox-group',
|
|
709
|
-
SELECT: 'select',
|
|
710
|
-
DATE_PICKER: 'date-picker',
|
|
711
|
-
TIME_PICKER: 'time-picker',
|
|
712
|
-
DATETIME_PICKER: 'datetime-picker',
|
|
713
|
-
COLORPICKER: 'colorpicker',
|
|
714
|
-
LIST: 'list',
|
|
715
|
-
SWITCH: 'switch',
|
|
716
|
-
LISTBOX: 'listbox'
|
|
717
|
-
},
|
|
718
|
-
helpers: {
|
|
719
|
-
randomId: function () {
|
|
720
|
-
return Math.random().toString(16).slice(2, -1);
|
|
721
|
-
},
|
|
722
|
-
},
|
|
723
|
-
};
|
|
724
|
-
this._id = (Math.random() * 4).toString(16).replace('.', '');
|
|
725
|
-
this.hidden = false;
|
|
726
|
-
this.validation = false;
|
|
727
|
-
this.name = "";
|
|
728
|
-
}
|
|
729
|
-
handleSubmit(e) {
|
|
730
|
-
if (lowercase(e.target.nodeName) === 'bcm-button') {
|
|
731
|
-
if (e.target.type === 'submit') {
|
|
732
|
-
this.submitFunction();
|
|
733
|
-
}
|
|
734
|
-
}
|
|
735
|
-
}
|
|
736
|
-
async submitFunction() {
|
|
737
|
-
this.formData = {};
|
|
738
|
-
this.inputs = [];
|
|
739
|
-
this.selector = this.el;
|
|
740
|
-
this.getInputs();
|
|
741
|
-
var formData = { isValid: true, formData: await this.userFormData() };
|
|
742
|
-
if (this.name) {
|
|
743
|
-
formData = Object.assign(Object.assign({}, formData), { formName: this.name });
|
|
744
|
-
}
|
|
745
|
-
if (this.isValid) {
|
|
746
|
-
this.bcmForm.emit(formData);
|
|
747
|
-
return formData;
|
|
748
|
-
}
|
|
749
|
-
else {
|
|
750
|
-
this.returnCaption = { isValid: false, 'message': 'Please fill in all inputs', 'errorDetails': this.returnCaption, formData: await this.userFormData() };
|
|
751
|
-
if (this.name) {
|
|
752
|
-
this.returnCaption = Object.assign(Object.assign({}, this.returnCaption), { formName: this.name });
|
|
753
|
-
}
|
|
754
|
-
this.bcmForm.emit(this.returnCaption);
|
|
755
|
-
return this.returnCaption;
|
|
756
|
-
}
|
|
757
|
-
}
|
|
758
|
-
async submit() {
|
|
759
|
-
const returnValue = this.submitFunction();
|
|
760
|
-
return Promise.resolve(returnValue);
|
|
761
|
-
}
|
|
762
|
-
async setClear() {
|
|
763
|
-
this.formData = {};
|
|
764
|
-
this.inputs = [];
|
|
765
|
-
this.selector = this.el;
|
|
766
|
-
this.getInputs();
|
|
767
|
-
for (const item of this.inputs) {
|
|
768
|
-
try {
|
|
769
|
-
await item.setClear();
|
|
770
|
-
}
|
|
771
|
-
catch (error) {
|
|
772
|
-
console.log(item.nodeName, "sc p");
|
|
773
|
-
}
|
|
774
|
-
}
|
|
775
|
-
}
|
|
776
|
-
async resetCaption() {
|
|
777
|
-
this.formData = {};
|
|
778
|
-
this.inputs = [];
|
|
779
|
-
this.selector = this.el;
|
|
780
|
-
this.getInputs();
|
|
781
|
-
for (const item of this.inputs) {
|
|
782
|
-
try {
|
|
783
|
-
await item.resetCaption();
|
|
784
|
-
}
|
|
785
|
-
catch (error) {
|
|
786
|
-
console.log(item.nodeName, "rc p");
|
|
787
|
-
}
|
|
788
|
-
}
|
|
789
|
-
}
|
|
790
|
-
async config(_config) {
|
|
791
|
-
if (_config['validation']) {
|
|
792
|
-
typeof _config['validation'] == 'boolean'
|
|
793
|
-
? this.validation = _config['validation']
|
|
794
|
-
: this.validation = false;
|
|
795
|
-
}
|
|
796
|
-
return true;
|
|
797
|
-
}
|
|
798
|
-
getInputs() {
|
|
799
|
-
var form = this.selector;
|
|
800
|
-
if (!form) {
|
|
801
|
-
console.warn(this.Bromcom.errors.targetFormNotExist + this.selector);
|
|
802
|
-
return;
|
|
803
|
-
}
|
|
804
|
-
const inputs = Array.from(form.querySelectorAll('bcm-' + Object.values(this.Bromcom.inputComponents).join(',bcm-')));
|
|
805
|
-
this.duplicateInput = [];
|
|
806
|
-
// s-hn: Stencil private flag that contains host web component
|
|
807
|
-
// https://github.com/ionic-team/stencil/blob/45388e95edb46ef357eb9ae37cd32bbb5bc1ed23/src/runtime/vdom/vdom-render.ts#L116
|
|
808
|
-
const rootInputs = inputs.filter((input) => !input['s-hn']);
|
|
809
|
-
rootInputs.forEach(element => {
|
|
810
|
-
var item = element;
|
|
811
|
-
if (lowercase(item.nodeName) == "bcm-checkbox-group") {
|
|
812
|
-
item.querySelectorAll("bcm-checkbox").forEach(element => {
|
|
813
|
-
this.duplicateInput.push(element.name);
|
|
814
|
-
});
|
|
815
|
-
}
|
|
816
|
-
if (lowercase(item.nodeName) == "bcm-form") {
|
|
817
|
-
// console.log(item)
|
|
818
|
-
const groupInputs = Array.from(item.querySelectorAll('bcm-' + Object.values(this.Bromcom.inputComponents).join(',bcm-')));
|
|
819
|
-
var itemObject;
|
|
820
|
-
groupInputs.forEach(element => {
|
|
821
|
-
var name = element.name;
|
|
822
|
-
var value = element.value;
|
|
823
|
-
itemObject = Object.assign(Object.assign({}, itemObject), { [name]: value });
|
|
824
|
-
this.duplicateInput.push(element.name);
|
|
825
|
-
});
|
|
826
|
-
item.value = itemObject;
|
|
827
|
-
// item.querySelectorAll("bcm-checkbox").forEach(element => {
|
|
828
|
-
// this.duplicateInput.push(element.name)
|
|
829
|
-
// });
|
|
830
|
-
}
|
|
831
|
-
});
|
|
832
|
-
this.inputs = rootInputs;
|
|
833
|
-
}
|
|
834
|
-
getItemValue(item) {
|
|
835
|
-
const tagName = item.tagName.toLowerCase().replace('bcm-', '');
|
|
836
|
-
switch (tagName) {
|
|
837
|
-
/* case 'date-picker':
|
|
838
|
-
case 'datetime-picker':
|
|
839
|
-
return item.value.timestamp
|
|
840
|
-
case 'time-picker':
|
|
841
|
-
return item.value.time */
|
|
842
|
-
default:
|
|
843
|
-
return item.value;
|
|
844
|
-
}
|
|
845
|
-
}
|
|
846
|
-
isWrapperComponent(item) {
|
|
847
|
-
return ['bcm-datetime-picker', 'bcm-date-picker', 'bcm-time-picker'].includes(item.toLowerCase());
|
|
848
|
-
}
|
|
849
|
-
isGroupComponent(item) {
|
|
850
|
-
return ['bcm-checkbox-group'].includes(item.toLowerCase());
|
|
851
|
-
}
|
|
852
|
-
async userFormData() {
|
|
853
|
-
this.formData = {};
|
|
854
|
-
this.isValid = true;
|
|
855
|
-
this.returnCaption = [];
|
|
856
|
-
for (const item of this.inputs) {
|
|
857
|
-
const isGroupComponent = this.isGroupComponent(item.tagName);
|
|
858
|
-
const isWrapperComponent = this.isWrapperComponent(item.tagName);
|
|
859
|
-
const wrapperComponent = isWrapperComponent && item;
|
|
860
|
-
const input = isWrapperComponent
|
|
861
|
-
? await item.getInput() && item
|
|
862
|
-
: item;
|
|
863
|
-
// input.caption = ''
|
|
864
|
-
// input.captionType = ''
|
|
865
|
-
if (this.validation) {
|
|
866
|
-
let valid = null;
|
|
867
|
-
if (isWrapperComponent) {
|
|
868
|
-
const isPickerValid = await wrapperComponent.isValid();
|
|
869
|
-
valid = validate.required(input.value, isPickerValid);
|
|
870
|
-
if (valid) {
|
|
871
|
-
if (input.value instanceof Object) {
|
|
872
|
-
if (input.value["isValid"] == false) {
|
|
873
|
-
valid = validate.required("", isPickerValid);
|
|
874
|
-
}
|
|
875
|
-
}
|
|
876
|
-
else {
|
|
877
|
-
valid = validate.required(input.value, isPickerValid);
|
|
878
|
-
}
|
|
879
|
-
}
|
|
880
|
-
}
|
|
881
|
-
else if (isGroupComponent) {
|
|
882
|
-
const childsCheckbox = getChilds(input, "bcm-checkbox");
|
|
883
|
-
childsCheckbox.length > 0 && (childsCheckbox.forEach((element) => {
|
|
884
|
-
if (element && element.required === true) {
|
|
885
|
-
valid = validate.required(element.value);
|
|
886
|
-
if (!valid['valid']) {
|
|
887
|
-
element.noCaption = false;
|
|
888
|
-
element.captionError = valid['message'];
|
|
889
|
-
element.captionType = valid['type'];
|
|
890
|
-
}
|
|
891
|
-
else {
|
|
892
|
-
element.noCaption = input.noCaption;
|
|
893
|
-
element.captionError = null;
|
|
894
|
-
element.captionType = "default";
|
|
895
|
-
}
|
|
896
|
-
}
|
|
897
|
-
}));
|
|
898
|
-
}
|
|
899
|
-
else {
|
|
900
|
-
valid = validate.required(input.value);
|
|
901
|
-
}
|
|
902
|
-
if (input.required && !valid['valid']) {
|
|
903
|
-
input.captionError = valid['message'];
|
|
904
|
-
input.captionType = valid['type'];
|
|
905
|
-
}
|
|
906
|
-
else {
|
|
907
|
-
input.captionError = null;
|
|
908
|
-
input.captionType = "default";
|
|
909
|
-
}
|
|
910
|
-
let name = input.name;
|
|
911
|
-
let value = input.captionError;
|
|
912
|
-
input.captionType == 'error' && (
|
|
913
|
-
// console.error([name], ': ', value),
|
|
914
|
-
this.returnCaption = [...this.returnCaption, { [name]: value }],
|
|
915
|
-
this.isValid = false);
|
|
916
|
-
}
|
|
917
|
-
if (input.name && !this.duplicateInput.includes(input.name)) {
|
|
918
|
-
var itemValue = this.getItemValue(input);
|
|
919
|
-
if (!itemValue || itemValue == undefined || itemValue == null) {
|
|
920
|
-
itemValue = null;
|
|
921
|
-
}
|
|
922
|
-
this.formData[input.name] = itemValue;
|
|
923
|
-
}
|
|
924
|
-
}
|
|
925
|
-
return this.formData;
|
|
926
|
-
}
|
|
927
|
-
async handleChange(e) {
|
|
928
|
-
const isWrapperComponent = this.isWrapperComponent(e.target.tagName);
|
|
929
|
-
const target = isWrapperComponent
|
|
930
|
-
? e.target.getInput && await e.target.getInput() || e.target
|
|
931
|
-
: e.target;
|
|
932
|
-
const value = e.target.value;
|
|
933
|
-
const wrapperComponent = isWrapperComponent && e.target;
|
|
934
|
-
var isPickerValid;
|
|
935
|
-
if (isWrapperComponent) {
|
|
936
|
-
isPickerValid = await wrapperComponent.isValid();
|
|
937
|
-
}
|
|
938
|
-
const tick = setTimeout(() => {
|
|
939
|
-
if (target.required) {
|
|
940
|
-
let valid = null;
|
|
941
|
-
if (isWrapperComponent) {
|
|
942
|
-
valid = validate.required(value, isPickerValid);
|
|
943
|
-
if (valid) {
|
|
944
|
-
if (value instanceof Object) {
|
|
945
|
-
if (value["isValid"] == false) {
|
|
946
|
-
valid = validate.required("", isPickerValid);
|
|
947
|
-
}
|
|
948
|
-
}
|
|
949
|
-
else {
|
|
950
|
-
valid = validate.required(value, isPickerValid);
|
|
951
|
-
}
|
|
952
|
-
}
|
|
953
|
-
}
|
|
954
|
-
else {
|
|
955
|
-
valid = validate.required(value);
|
|
956
|
-
}
|
|
957
|
-
if (valid['valid']) {
|
|
958
|
-
target.captionError = null;
|
|
959
|
-
target.captionType = null;
|
|
960
|
-
}
|
|
961
|
-
else {
|
|
962
|
-
target.captionError = valid['message'];
|
|
963
|
-
target.captionType = valid['type'];
|
|
964
|
-
}
|
|
965
|
-
}
|
|
966
|
-
clearTimeout(tick);
|
|
967
|
-
});
|
|
968
|
-
this.value = this.userFormData();
|
|
969
|
-
}
|
|
970
|
-
render() {
|
|
971
|
-
const hostClasses = classnames(this.hidden ? 'hidden' : null);
|
|
972
|
-
return (h(Host, { class: hostClasses }, h("form", { class: "bcm-form" }, h("slot", null))));
|
|
973
|
-
}
|
|
974
|
-
get el() { return getElement(this); }
|
|
975
|
-
};
|
|
976
|
-
BcmForm.style = formCss;
|
|
1
|
+
import { r as registerInstance, h, f as Host, g as getElement } from './index-9dbea026.js';
|
|
2
|
+
import { c as classnames } from './index-43956e3c.js';
|
|
3
|
+
import { e as extractColor, C as ColorPalette } from './utils-1feb01eb.js';
|
|
977
4
|
|
|
978
5
|
const loadingSvg = 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSI+PHN0eWxlPgpAa2V5ZnJhbWVzIGEwX3QgeyAwJSB7IHRyYW5zZm9ybTogdHJhbnNsYXRlKDhweCw4cHgpIHJvdGF0ZSgwZGVnKSB0cmFuc2xhdGUoLTcuNXB4LC03cHgpOyB9IDEwMCUgeyB0cmFuc2Zvcm06IHRyYW5zbGF0ZSg4cHgsOHB4KSByb3RhdGUoMzYwZGVnKSB0cmFuc2xhdGUoLTcuNXB4LC03cHgpOyB9IH0KQGtleWZyYW1lcyBhMF9kIHsgMCUgeyBkOiBwYXRoKCdNMTQsN0MxMy43LDcsMTMuNSw2LjgsMTMuNSw2LjVDMTMuNSw1LjgsMTMuNCw1LDEzLjEsNC40QzEyLjgsMy43LDEyLjQsMy4xLDExLjksMi42QzExLjQsMi4xLDEwLjgsMS42LDEwLjEsMS40QzkuNCwxLjEsOC43LC45LDcuOSwuOUM3LjYsLjksNy40LC43LDcuNCwuNUM3LjQsLjIsNy42LDAsNy45LDBDOC44LDAsOS42LC4yLDEwLjQsLjVDMTEuMiwuOCwxMS45LDEuMywxMi41LDEuOUMxMy4xLDIuNSwxMy42LDMuMiwxMy45LDRDMTQuMyw0LjgsMTQuNCw1LjcsMTQuNCw2LjVDMTQuNCw2LjgsMTQuMiw3LDE0LDdMMTQsN1onKTsgfSAxMDAlIHsgZDogcGF0aCgnTTE0LDdDMTMuNyw3LDEzLjUsNi44LDEzLjUsNi41QzEzLjUsNS44LDEzLjQsNSwxMy4xLDQuNEMxMi44LDMuNywxMi40LDMuMSwxMS45LDIuNkMxMS40LDIuMSwxMC44LDEuNiwxMC4xLDEuNEM5LjQsMS4xLDguNywuOSw3LjksLjlDNy42LC45LDcuNCwuNyw3LjQsLjVDNy40LC4yLDcuNiwwLDcuOSwwQzguOCwwLDkuNiwuMiwxMC40LC41QzExLjIsLjgsMTEuOSwxLjMsMTIuNSwxLjlDMTMuMSwyLjUsMTMuNiwzLjIsMTMuOSw0QzE0LjMsNC44LDE0LjQsNS43LDE0LjQsNi41QzE0LjQsNi44LDE0LjIsNywxNCw3TDE0LDdaJyk7IH0gfQo8L3N0eWxlPjxwYXRoIGQ9Ik0xNCA3Yy0wLjMgMC0wLjUtMC4yLTAuNS0wLjVjMC0wLjctMC4xLTEuNS0wLjQtMi4xYy0wLjMtMC43LTAuNy0xLjMtMS4yLTEuOGMtMC41LTAuNS0xLjEtMS0xLjgtMS4yYy0wLjctMC4zLTEuNC0wLjUtMi4yLTAuNWMtMC4zIDAtMC41LTAuMi0wLjUtMC40YzAtMC4zIC4yLTAuNSAuNS0wLjVjLjkgMCAxLjcgLjIgMi41IC41Yy44IC4zIDEuNSAuOCAyLjEgMS40Yy42IC42IDEuMSAxLjMgMS40IDIuMWMuNCAuOCAuNSAxLjcgLjUgMi41YzAgLjMtMC4yIC41LTAuNCAuNVoiIGZpbGw9IiMxODkwZmYiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDgsOCkgdHJhbnNsYXRlKC03LjUsLTcpIiBzdHlsZT0iYW5pbWF0aW9uOiAxcyBsaW5lYXIgaW5maW5pdGUgYm90aCBhMF90LCAxcyBsaW5lYXIgaW5maW5pdGUgYm90aCBhMF9kOyIvPjwvc3ZnPg==';
|
|
979
6
|
|
|
@@ -6242,7 +5269,9 @@ const BcmIcon = class {
|
|
|
6242
5269
|
let fillPattern = /(<path [\S\s]*?fill=")[^"]+("[\S\s]*?>)/gim;
|
|
6243
5270
|
// Replace fill colors with given prop
|
|
6244
5271
|
// -->
|
|
6245
|
-
if (this.type == 'multi-color')
|
|
5272
|
+
if (this.type == 'multi-color') {
|
|
5273
|
+
// multicolor icon
|
|
5274
|
+
}
|
|
6246
5275
|
else {
|
|
6247
5276
|
svgTemplate = svgTemplate.replace(fillPattern, '$1' + color + '$2');
|
|
6248
5277
|
}
|
|
@@ -6368,1303 +5397,4 @@ const BcmIcon = class {
|
|
|
6368
5397
|
};
|
|
6369
5398
|
BcmIcon.style = iconCss;
|
|
6370
5399
|
|
|
6371
|
-
|
|
6372
|
-
|
|
6373
|
-
let id = 0;
|
|
6374
|
-
const defaultIcons = {
|
|
6375
|
-
email: 'mail',
|
|
6376
|
-
tel: 'phone',
|
|
6377
|
-
search: 'search',
|
|
6378
|
-
url: 'link'
|
|
6379
|
-
};
|
|
6380
|
-
const iconSizes$1 = {
|
|
6381
|
-
'small': 14,
|
|
6382
|
-
'medium': 16,
|
|
6383
|
-
'large': 18
|
|
6384
|
-
};
|
|
6385
|
-
const BcmInput = class {
|
|
6386
|
-
constructor(hostRef) {
|
|
6387
|
-
registerInstance(this, hostRef);
|
|
6388
|
-
this.focus = createEvent(this, "bcm-focus", 7);
|
|
6389
|
-
this.blur = createEvent(this, "bcm-blur", 7);
|
|
6390
|
-
this.clear = createEvent(this, "bcm-clear", 7);
|
|
6391
|
-
this.change = createEvent(this, "bcm-change", 7);
|
|
6392
|
-
this.input = createEvent(this, "bcm-input", 7);
|
|
6393
|
-
this.inputId = `input-${++id}`;
|
|
6394
|
-
this.type = 'text';
|
|
6395
|
-
this.value = '';
|
|
6396
|
-
this.size = "medium";
|
|
6397
|
-
this.noCaption = false;
|
|
6398
|
-
this.noMargin = false;
|
|
6399
|
-
this.captionType = 'default';
|
|
6400
|
-
this.fullWidth = false;
|
|
6401
|
-
this.disabled = false;
|
|
6402
|
-
this.readonly = false;
|
|
6403
|
-
this.clearable = false;
|
|
6404
|
-
this._internal_id = (Math.random() * 4).toString(16).replace('.', '');
|
|
6405
|
-
this.unit = null;
|
|
6406
|
-
this.unitPrefix = null;
|
|
6407
|
-
this.min = null;
|
|
6408
|
-
this.max = null;
|
|
6409
|
-
this.step = null;
|
|
6410
|
-
this.hidden = false;
|
|
6411
|
-
this.required = false;
|
|
6412
|
-
this.disableWatchValue = false;
|
|
6413
|
-
this.maxLength = null;
|
|
6414
|
-
this.inValid = false;
|
|
6415
|
-
this.hasFocus = false;
|
|
6416
|
-
this.isBlur = false;
|
|
6417
|
-
this.isPasswordVisible = false;
|
|
6418
|
-
}
|
|
6419
|
-
async setFocus() {
|
|
6420
|
-
this.inputElement.focus();
|
|
6421
|
-
}
|
|
6422
|
-
async removeFocus() {
|
|
6423
|
-
this.inputElement.blur();
|
|
6424
|
-
}
|
|
6425
|
-
async select() {
|
|
6426
|
-
return this.inputElement.select();
|
|
6427
|
-
}
|
|
6428
|
-
async setValue(value) {
|
|
6429
|
-
this.inputElement.value = value;
|
|
6430
|
-
this.value = value;
|
|
6431
|
-
this.handleChange();
|
|
6432
|
-
return value;
|
|
6433
|
-
}
|
|
6434
|
-
async setClear() {
|
|
6435
|
-
this.inputElement.value = '';
|
|
6436
|
-
this.value = '';
|
|
6437
|
-
}
|
|
6438
|
-
async resetCaption() {
|
|
6439
|
-
this.caption = this.captionCache;
|
|
6440
|
-
this.captionType = this.captionTypeCache;
|
|
6441
|
-
this.captionError = null;
|
|
6442
|
-
}
|
|
6443
|
-
async getValue() {
|
|
6444
|
-
return this.value;
|
|
6445
|
-
}
|
|
6446
|
-
handleFocus() {
|
|
6447
|
-
this.hasFocus = true;
|
|
6448
|
-
this.focus.emit();
|
|
6449
|
-
}
|
|
6450
|
-
handleBlur() {
|
|
6451
|
-
this.hasFocus = false;
|
|
6452
|
-
this.isBlur = true;
|
|
6453
|
-
if (this.type == "email") {
|
|
6454
|
-
this.isEmailValid();
|
|
6455
|
-
}
|
|
6456
|
-
if (this.type == "tel") {
|
|
6457
|
-
this.isTelValid();
|
|
6458
|
-
}
|
|
6459
|
-
this.blur.emit();
|
|
6460
|
-
}
|
|
6461
|
-
handleChange() {
|
|
6462
|
-
this.value = this.inputElement.value;
|
|
6463
|
-
this.change.emit(this.value);
|
|
6464
|
-
}
|
|
6465
|
-
handleInput() {
|
|
6466
|
-
if (this.type == "number") {
|
|
6467
|
-
if (this.decimal == "false") {
|
|
6468
|
-
this.inputElement.value = this.inputElement.value.replace(/[^0-9-]/g, '');
|
|
6469
|
-
}
|
|
6470
|
-
else {
|
|
6471
|
-
this.inputElement.value = this.inputElement.value.replace(/[^0-9.,-]/g, '');
|
|
6472
|
-
}
|
|
6473
|
-
this.inputElement.value = this.inputElement.value.replace(/(\..*)\./g, '$1').replace(/(\-.*)\-/g, '$1');
|
|
6474
|
-
}
|
|
6475
|
-
this.value = this.inputElement.value;
|
|
6476
|
-
this.input.emit(this.value);
|
|
6477
|
-
}
|
|
6478
|
-
handleClear(e) {
|
|
6479
|
-
this.inputElement.value = '';
|
|
6480
|
-
this.value = '';
|
|
6481
|
-
this.inputElement.focus();
|
|
6482
|
-
this.change.emit(this.value);
|
|
6483
|
-
this.clear.emit(e);
|
|
6484
|
-
e.stopPropagation();
|
|
6485
|
-
}
|
|
6486
|
-
changePasswordVisibility() {
|
|
6487
|
-
this.isPasswordVisible = !this.isPasswordVisible;
|
|
6488
|
-
}
|
|
6489
|
-
incrementNumber() {
|
|
6490
|
-
if (!this.inValid && !this.disabled && !this.readonly) {
|
|
6491
|
-
let step = this.getNumberStep();
|
|
6492
|
-
let val = Number(this.value) + Number(step);
|
|
6493
|
-
this.value = this.numberDecimal(val);
|
|
6494
|
-
}
|
|
6495
|
-
}
|
|
6496
|
-
decrementNumber() {
|
|
6497
|
-
if (!this.inValid && !this.disabled && !this.readonly) {
|
|
6498
|
-
let step = this.getNumberStep();
|
|
6499
|
-
let val = Number(this.value) - Number(step);
|
|
6500
|
-
this.value = this.numberDecimal(val);
|
|
6501
|
-
}
|
|
6502
|
-
}
|
|
6503
|
-
getNumberStep(step = Number(this.step)) {
|
|
6504
|
-
let returnStep = 1;
|
|
6505
|
-
if (step && Number(step) == step)
|
|
6506
|
-
returnStep = step;
|
|
6507
|
-
return Number(returnStep);
|
|
6508
|
-
}
|
|
6509
|
-
connectedCallback() {
|
|
6510
|
-
this.changePasswordVisibility = this.changePasswordVisibility.bind(this);
|
|
6511
|
-
this.handleChange = this.handleChange.bind(this);
|
|
6512
|
-
this.handleBlur = this.handleBlur.bind(this);
|
|
6513
|
-
this.handleFocus = this.handleFocus.bind(this);
|
|
6514
|
-
this.handleInput = this.handleInput.bind(this);
|
|
6515
|
-
this.handleClear = this.handleClear.bind(this);
|
|
6516
|
-
this.incrementNumber = this.incrementNumber.bind(this);
|
|
6517
|
-
this.decrementNumber = this.decrementNumber.bind(this);
|
|
6518
|
-
this.valueCache = this.value;
|
|
6519
|
-
this.captionCache = this.caption;
|
|
6520
|
-
this.captionTypeCache = this.captionType;
|
|
6521
|
-
}
|
|
6522
|
-
validationRange(val = JSON.stringify({
|
|
6523
|
-
"value": this.value,
|
|
6524
|
-
"min": this.min,
|
|
6525
|
-
"max": this.max
|
|
6526
|
-
})) {
|
|
6527
|
-
let cap = null;
|
|
6528
|
-
let capType = null;
|
|
6529
|
-
let returnValidation = true;
|
|
6530
|
-
let item = JSON.parse(val);
|
|
6531
|
-
let { length, value, min, max } = item;
|
|
6532
|
-
length = parseFloat(length);
|
|
6533
|
-
value = parseFloat(value);
|
|
6534
|
-
min = parseFloat(min);
|
|
6535
|
-
max = parseFloat(max);
|
|
6536
|
-
length !== 0 && (value && (min && max && ((value < min || value > max) && (cap = "Please enter a value between " + min + " and " + max + ".",
|
|
6537
|
-
capType = "error",
|
|
6538
|
-
returnValidation = false)) || min && !max && (value < min && (cap = "Please enter a value greater than or equal to " + min + ".",
|
|
6539
|
-
capType = "error",
|
|
6540
|
-
returnValidation = false)) || !min && max && (value > max && (cap = "Please enter a value less than or equal to " + max + ".",
|
|
6541
|
-
capType = "error",
|
|
6542
|
-
returnValidation = false))));
|
|
6543
|
-
this.setCaption(cap, capType);
|
|
6544
|
-
return returnValidation;
|
|
6545
|
-
}
|
|
6546
|
-
setCaption(caption = null, captionType = null) {
|
|
6547
|
-
this.caption = caption ? caption : this.captionCache;
|
|
6548
|
-
this.captionType = captionType ? captionType : this.captionTypeCache;
|
|
6549
|
-
this.captionError = captionType == "error" ? caption : null;
|
|
6550
|
-
}
|
|
6551
|
-
isEmailValid() {
|
|
6552
|
-
const { value } = this;
|
|
6553
|
-
const regexp = new RegExp(/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/);
|
|
6554
|
-
let cap = null;
|
|
6555
|
-
let capType = null;
|
|
6556
|
-
if (value && !regexp.test(value)) {
|
|
6557
|
-
cap = "Please enter a valid email address.",
|
|
6558
|
-
capType = "error",
|
|
6559
|
-
this.inValid = true;
|
|
6560
|
-
}
|
|
6561
|
-
else {
|
|
6562
|
-
this.inValid = false;
|
|
6563
|
-
}
|
|
6564
|
-
this.setCaption(cap, capType);
|
|
6565
|
-
return this.inValid;
|
|
6566
|
-
}
|
|
6567
|
-
isTelValid() {
|
|
6568
|
-
const { value } = this;
|
|
6569
|
-
const regexp = new RegExp(/^(?=.*[0-9])[- +()0-9]+$/);
|
|
6570
|
-
let cap = null;
|
|
6571
|
-
let capType = null;
|
|
6572
|
-
if (value && !regexp.test(value)) {
|
|
6573
|
-
cap = "Please enter a valid phone number.",
|
|
6574
|
-
capType = "error",
|
|
6575
|
-
this.inValid = true;
|
|
6576
|
-
}
|
|
6577
|
-
else {
|
|
6578
|
-
this.inValid = false;
|
|
6579
|
-
}
|
|
6580
|
-
this.setCaption(cap, capType);
|
|
6581
|
-
return this.inValid;
|
|
6582
|
-
}
|
|
6583
|
-
isNumberValid(caption = "Invalid number", captionType = "error") {
|
|
6584
|
-
const { value } = this;
|
|
6585
|
-
if (value && Number(value) != value) {
|
|
6586
|
-
this.inValid = true;
|
|
6587
|
-
this.setCaption(caption, captionType);
|
|
6588
|
-
return true;
|
|
6589
|
-
}
|
|
6590
|
-
this.inValid = false;
|
|
6591
|
-
return false;
|
|
6592
|
-
}
|
|
6593
|
-
setNumberUnit() {
|
|
6594
|
-
const { value, unit } = this;
|
|
6595
|
-
if (Number(value) == value && (unit === null || unit === void 0 ? void 0 : unit.length) > 0 && !value)
|
|
6596
|
-
this.value = 0;
|
|
6597
|
-
}
|
|
6598
|
-
numberDecimal(val = '') {
|
|
6599
|
-
let decLen = this.getDecimalLength();
|
|
6600
|
-
if (val && decLen)
|
|
6601
|
-
return parseFloat(val).toFixed(decLen);
|
|
6602
|
-
return val;
|
|
6603
|
-
}
|
|
6604
|
-
numberNotDecimal(val = 0) {
|
|
6605
|
-
return Math.trunc(val);
|
|
6606
|
-
}
|
|
6607
|
-
getDecimalLength() {
|
|
6608
|
-
const { step } = this;
|
|
6609
|
-
let returnDecimalLength = 0, splitted, splitDec;
|
|
6610
|
-
if ( step && Number(step) == step) {
|
|
6611
|
-
if (String(step).includes(".")) {
|
|
6612
|
-
splitted = String(step).split('.');
|
|
6613
|
-
splitDec = splitted[splitted.length - 1].length;
|
|
6614
|
-
}
|
|
6615
|
-
else {
|
|
6616
|
-
splitDec = 0;
|
|
6617
|
-
}
|
|
6618
|
-
returnDecimalLength = splitDec;
|
|
6619
|
-
}
|
|
6620
|
-
return Number(returnDecimalLength);
|
|
6621
|
-
}
|
|
6622
|
-
componentWillRender() {
|
|
6623
|
-
const { type } = this;
|
|
6624
|
-
if (type == "number" && this.value) {
|
|
6625
|
-
if (!this.isNumberValid()) {
|
|
6626
|
-
this.validationRange();
|
|
6627
|
-
}
|
|
6628
|
-
}
|
|
6629
|
-
if (this.isBlur) {
|
|
6630
|
-
if (type == "email" && this.value) {
|
|
6631
|
-
this.isEmailValid();
|
|
6632
|
-
}
|
|
6633
|
-
if (type == "tel" && this.value) {
|
|
6634
|
-
this.isTelValid();
|
|
6635
|
-
}
|
|
6636
|
-
}
|
|
6637
|
-
}
|
|
6638
|
-
componentWillLoad() {
|
|
6639
|
-
const { type, value } = this;
|
|
6640
|
-
if (type == "number" && Number(value) == value) {
|
|
6641
|
-
this.value = this.numberDecimal(value);
|
|
6642
|
-
}
|
|
6643
|
-
}
|
|
6644
|
-
numberControl(e) {
|
|
6645
|
-
if (!this.disabled && !this.readonly) {
|
|
6646
|
-
if (this.type == "number") {
|
|
6647
|
-
var which = e.which || 0;
|
|
6648
|
-
var key = e.key;
|
|
6649
|
-
which == 38 && ( // up arrow
|
|
6650
|
-
e.preventDefault(),
|
|
6651
|
-
this.incrementNumber());
|
|
6652
|
-
which == 40 && ( // down arrow
|
|
6653
|
-
e.preventDefault(),
|
|
6654
|
-
this.decrementNumber());
|
|
6655
|
-
key == "." && String(this.value).includes(".") && ( // dot: shouldn't be more than one
|
|
6656
|
-
e.preventDefault());
|
|
6657
|
-
if (which == 8 || //backspace / delete
|
|
6658
|
-
which == 9 || //tab
|
|
6659
|
-
which == 13 || //enter
|
|
6660
|
-
which == 16 || //shift
|
|
6661
|
-
which == 17 || //ctrl
|
|
6662
|
-
which == 18 || //alt
|
|
6663
|
-
which == 46 || //delete
|
|
6664
|
-
(which == 110 && (this.type == 'number' && this.decimal != false)) || //decimal point
|
|
6665
|
-
// (which == 188 && key == ",") || //comma
|
|
6666
|
-
(which == 190 && key == "." && (this.type == 'number' && this.decimal != false)) || //period
|
|
6667
|
-
(which == 189 && this.inputElement.value.length == 0) || //-
|
|
6668
|
-
(which == 109 && this.inputElement.value.length == 0) || //-
|
|
6669
|
-
(which >= 35 && which <= 40) || //end, home, left arrow, up arrow, right arrow, down arrow
|
|
6670
|
-
(which >= 48 && which <= 57) || //0-9
|
|
6671
|
-
(which >= 96 && which <= 105) //0-9(numpad)
|
|
6672
|
-
)
|
|
6673
|
-
return true;
|
|
6674
|
-
e.preventDefault();
|
|
6675
|
-
if (this.decimal == true) {
|
|
6676
|
-
this.value = this.numberDecimal(this.value);
|
|
6677
|
-
}
|
|
6678
|
-
else if (this.decimal == false) {
|
|
6679
|
-
this.value = this.numberNotDecimal(this.value);
|
|
6680
|
-
}
|
|
6681
|
-
}
|
|
6682
|
-
}
|
|
6683
|
-
}
|
|
6684
|
-
whatchHasFocus() {
|
|
6685
|
-
const { type, hasFocus, value, valueCache, inValid } = this;
|
|
6686
|
-
if (type == "number") {
|
|
6687
|
-
this.isNumberValid();
|
|
6688
|
-
let inValidState = false;
|
|
6689
|
-
if (hasFocus == true) {
|
|
6690
|
-
if (inValid == true) {
|
|
6691
|
-
this.value = '';
|
|
6692
|
-
inValidState = true;
|
|
6693
|
-
}
|
|
6694
|
-
}
|
|
6695
|
-
else {
|
|
6696
|
-
if (this.value == '' && inValid == false) {
|
|
6697
|
-
this.value = valueCache;
|
|
6698
|
-
inValidState = true;
|
|
6699
|
-
}
|
|
6700
|
-
if (value != valueCache && inValid == false && inValidState == false) {
|
|
6701
|
-
this.value = value ? this.numberDecimal(value) : '';
|
|
6702
|
-
}
|
|
6703
|
-
}
|
|
6704
|
-
}
|
|
6705
|
-
}
|
|
6706
|
-
watchValue() {
|
|
6707
|
-
if (!this.disableWatchValue && this.type != 'number') {
|
|
6708
|
-
this.handleChange();
|
|
6709
|
-
}
|
|
6710
|
-
}
|
|
6711
|
-
render() {
|
|
6712
|
-
const { value, size, label, type, captionType, caption, captionError, placeholder, fullWidth, disabled, readonly, clearable, passwordToggle, isPasswordVisible, noDefaultIcon, unit, inValid, hasFocus, unitPrefix, noCaption, required } = this;
|
|
6713
|
-
const containerClasses = classnames('input-container', {
|
|
6714
|
-
'full-width': fullWidth,
|
|
6715
|
-
'error': captionType == 'error' ? true : false
|
|
6716
|
-
});
|
|
6717
|
-
const baseClasses = classnames('input-base', 'input-' + size, {
|
|
6718
|
-
'invalid': inValid,
|
|
6719
|
-
'unit': (unit === null || unit === void 0 ? void 0 : unit.length) > 0,
|
|
6720
|
-
'focused': hasFocus,
|
|
6721
|
-
'disabled': disabled,
|
|
6722
|
-
'readonly': readonly,
|
|
6723
|
-
'empty': (value === null || value === void 0 ? void 0 : value.length) < 1
|
|
6724
|
-
});
|
|
6725
|
-
const inputClass = size === 'large' ? 'size-3' : 'size-2';
|
|
6726
|
-
const captionClasses = classnames('size-1', 'input-caption', 'caption-' + captionType);
|
|
6727
|
-
const hostClasses = classnames(this.hidden ? 'hidden' : null, this.noMargin ? 'no-margin' : null);
|
|
6728
|
-
return (h(Host, { class: hostClasses }, h("div", { class: containerClasses }, label && h("div", null, h("bcm-label", { tooltip: this.tooltip, type: captionType, value: label, required: required, htmlFor: this.inputId })), h("div", { class: baseClasses }, h("span", { class: "input-prefix" }, h("slot", { name: "prefix" }), unitPrefix && h("span", { class: classnames(inputClass, 'unit-prefix') }, unitPrefix)), h("input", { "bcm-internal-id": this._id, id: this.inputId, class: inputClass, ref: el => (this.inputElement = el), onFocus: this.handleFocus, onBlur: this.handleBlur, onChange: this.handleChange, onInput: this.handleInput, maxLength: this.maxLength, type: type === 'password' && isPasswordVisible ? 'text' :
|
|
6729
|
-
type === 'number' ? 'text' : type, placeholder: placeholder, value: type === 'number' && !this.hasFocus
|
|
6730
|
-
? value + (value && (unit === null || unit === void 0 ? void 0 : unit.length) > 0 ? ' ' + unit : '')
|
|
6731
|
-
: value, disabled: this.disabled, readonly: this.readonly }), clearable && !this.disabled && (h("button", { class: "input-clear-button", onClick: this.handleClear }, h("bcm-icon", { icon: "close-circle", type: "fill", size: iconSizes$1[size], color: "grey-7" }))), type === 'password' && passwordToggle && (h("button", { class: "input-password-toggle", onClick: this.changePasswordVisibility }, h("bcm-icon", { icon: isPasswordVisible ? "eye-invisible" : "eye", type: "outlined", size: iconSizes$1[size], color: "grey-7" }))), Object.keys(defaultIcons).includes(type) && !noDefaultIcon && (h("span", { class: "input-suffix default-icon" }, h("bcm-icon", { icon: defaultIcons[type], type: "outlined", size: iconSizes$1[size], color: "grey-7" }))), type === 'number' && (h("div", { class: classnames('caret-container', { 'unit': (unit === null || unit === void 0 ? void 0 : unit.length) > 0 }, { 'disabled': inValid }, { 'disabled': readonly }) }, h("span", { class: "caret", onClick: inValid == false && this.incrementNumber }, h("bcm-icon", { icon: "caret-up", type: "outlined", color: "grey-7", size: 8 })), h("span", { class: "caret", onClick: inValid == false && this.decrementNumber }, h("bcm-icon", { icon: "caret-down", type: "outlined", color: "grey-7", size: 8 })))), type !== 'number' && (h("span", { class: "input-suffix" }, h("slot", { name: "suffix" })))), !noCaption && (h("div", { class: "caption-area" }, captionType == "error"
|
|
6732
|
-
? h("span", { class: captionClasses }, " ", captionError, " ")
|
|
6733
|
-
: caption && h("span", { class: captionClasses }, " ", caption, " "))))));
|
|
6734
|
-
}
|
|
6735
|
-
static get watchers() { return {
|
|
6736
|
-
"hasFocus": ["whatchHasFocus"],
|
|
6737
|
-
"value": ["watchValue"]
|
|
6738
|
-
}; }
|
|
6739
|
-
};
|
|
6740
|
-
BcmInput.style = inputCss;
|
|
6741
|
-
|
|
6742
|
-
class Generate {
|
|
6743
|
-
}
|
|
6744
|
-
Generate.UID = () => Math.random().toString(36).substr(2, 9);
|
|
6745
|
-
Generate.getIconAttrWithStatusType = (status, loading = false) => {
|
|
6746
|
-
if (loading)
|
|
6747
|
-
return { icon: 'loading', color: 'blue-6' };
|
|
6748
|
-
switch (status) {
|
|
6749
|
-
case StatusProps.info:
|
|
6750
|
-
return { color: 'blue-6', icon: 'info-circle' };
|
|
6751
|
-
case StatusProps.error:
|
|
6752
|
-
return { color: 'red-6', icon: 'close-circle' };
|
|
6753
|
-
case StatusProps.warning:
|
|
6754
|
-
return { color: 'warmyellow-6', icon: 'exclamation-circle' };
|
|
6755
|
-
case StatusProps.success:
|
|
6756
|
-
return { color: 'green-6', icon: 'check-circle' };
|
|
6757
|
-
}
|
|
6758
|
-
};
|
|
6759
|
-
Generate.createComponent = (element, props) => {
|
|
6760
|
-
let box = document.createElement(element);
|
|
6761
|
-
Object.keys(props).forEach(key => {
|
|
6762
|
-
box[key] = props[key];
|
|
6763
|
-
});
|
|
6764
|
-
document.body.appendChild(box);
|
|
6765
|
-
return box;
|
|
6766
|
-
};
|
|
6767
|
-
Generate.debounceInput = (func, wait, immediate) => {
|
|
6768
|
-
let timeout;
|
|
6769
|
-
return function () {
|
|
6770
|
-
let context = this, args = arguments;
|
|
6771
|
-
let later = function () {
|
|
6772
|
-
timeout = null;
|
|
6773
|
-
if (!immediate)
|
|
6774
|
-
func.apply(context, args);
|
|
6775
|
-
};
|
|
6776
|
-
let callNow = immediate && !timeout;
|
|
6777
|
-
clearTimeout(timeout);
|
|
6778
|
-
timeout = setTimeout(later, wait);
|
|
6779
|
-
if (callNow)
|
|
6780
|
-
func.apply(context, args);
|
|
6781
|
-
};
|
|
6782
|
-
};
|
|
6783
|
-
Generate.flatArray = (arr) => {
|
|
6784
|
-
return arr.reduce((acc, val) => {
|
|
6785
|
-
return acc.concat(Array.isArray(val) ? Generate.flatArray(val) : val);
|
|
6786
|
-
}, []);
|
|
6787
|
-
};
|
|
6788
|
-
|
|
6789
|
-
var Bcm;
|
|
6790
|
-
(function (Bcm) {
|
|
6791
|
-
let HtmlElementType;
|
|
6792
|
-
(function (HtmlElementType) {
|
|
6793
|
-
HtmlElementType["div"] = "div";
|
|
6794
|
-
HtmlElementType["span"] = "span";
|
|
6795
|
-
HtmlElementType["button"] = "button";
|
|
6796
|
-
HtmlElementType["a"] = "a";
|
|
6797
|
-
HtmlElementType["input"] = "input";
|
|
6798
|
-
HtmlElementType["textarea"] = "textarea";
|
|
6799
|
-
HtmlElementType["select"] = "select";
|
|
6800
|
-
HtmlElementType["option"] = "option";
|
|
6801
|
-
HtmlElementType["img"] = "img";
|
|
6802
|
-
HtmlElementType["table"] = "table";
|
|
6803
|
-
HtmlElementType["tr"] = "tr";
|
|
6804
|
-
HtmlElementType["td"] = "td";
|
|
6805
|
-
HtmlElementType["th"] = "th";
|
|
6806
|
-
HtmlElementType["tbody"] = "tbody";
|
|
6807
|
-
HtmlElementType["thead"] = "thead";
|
|
6808
|
-
HtmlElementType["tfoot"] = "tfoot";
|
|
6809
|
-
HtmlElementType["ul"] = "ul";
|
|
6810
|
-
HtmlElementType["li"] = "li";
|
|
6811
|
-
HtmlElementType["form"] = "form";
|
|
6812
|
-
HtmlElementType["label"] = "label";
|
|
6813
|
-
HtmlElementType["main"] = "main";
|
|
6814
|
-
HtmlElementType["header"] = "header";
|
|
6815
|
-
HtmlElementType["footer"] = "footer";
|
|
6816
|
-
HtmlElementType["section"] = "section";
|
|
6817
|
-
HtmlElementType["article"] = "article";
|
|
6818
|
-
HtmlElementType["nav"] = "nav";
|
|
6819
|
-
HtmlElementType["aside"] = "aside";
|
|
6820
|
-
})(HtmlElementType = Bcm.HtmlElementType || (Bcm.HtmlElementType = {}));
|
|
6821
|
-
let Status;
|
|
6822
|
-
(function (Status) {
|
|
6823
|
-
Status["info"] = "info";
|
|
6824
|
-
Status["error"] = "error";
|
|
6825
|
-
Status["warning"] = "warning";
|
|
6826
|
-
Status["success"] = "success";
|
|
6827
|
-
Status["default"] = "default";
|
|
6828
|
-
})(Status = Bcm.Status || (Bcm.Status = {}));
|
|
6829
|
-
let Shape;
|
|
6830
|
-
(function (Shape) {
|
|
6831
|
-
Shape["ellipse"] = "ellipse";
|
|
6832
|
-
Shape["square"] = "square";
|
|
6833
|
-
})(Shape = Bcm.Shape || (Bcm.Shape = {}));
|
|
6834
|
-
let Direction;
|
|
6835
|
-
(function (Direction) {
|
|
6836
|
-
Direction["horizontal"] = "horizontal";
|
|
6837
|
-
Direction["vertical"] = "vertical";
|
|
6838
|
-
})(Direction = Bcm.Direction || (Bcm.Direction = {}));
|
|
6839
|
-
let PreDefinedIconSize;
|
|
6840
|
-
(function (PreDefinedIconSize) {
|
|
6841
|
-
PreDefinedIconSize[PreDefinedIconSize["large"] = 48] = "large";
|
|
6842
|
-
PreDefinedIconSize[PreDefinedIconSize["medium"] = 24] = "medium";
|
|
6843
|
-
PreDefinedIconSize[PreDefinedIconSize["default"] = 16] = "default";
|
|
6844
|
-
PreDefinedIconSize[PreDefinedIconSize["small"] = 12] = "small";
|
|
6845
|
-
PreDefinedIconSize[PreDefinedIconSize["xsmall"] = 8] = "xsmall";
|
|
6846
|
-
})(PreDefinedIconSize = Bcm.PreDefinedIconSize || (Bcm.PreDefinedIconSize = {}));
|
|
6847
|
-
let IconSize;
|
|
6848
|
-
(function (IconSize) {
|
|
6849
|
-
IconSize["small"] = "16";
|
|
6850
|
-
IconSize["medium"] = "20";
|
|
6851
|
-
IconSize["large"] = "24";
|
|
6852
|
-
})(IconSize = Bcm.IconSize || (Bcm.IconSize = {}));
|
|
6853
|
-
let Size;
|
|
6854
|
-
(function (Size) {
|
|
6855
|
-
Size["small"] = "small";
|
|
6856
|
-
Size["medium"] = "medium";
|
|
6857
|
-
Size["large"] = "large";
|
|
6858
|
-
Size["xsmall"] = "xsmall";
|
|
6859
|
-
Size["xlarge"] = "xlarge";
|
|
6860
|
-
Size["xxlarge"] = "xxlarge";
|
|
6861
|
-
Size["xxxlarge"] = "xxxlarge";
|
|
6862
|
-
})(Size = Bcm.Size || (Bcm.Size = {}));
|
|
6863
|
-
let Kind;
|
|
6864
|
-
(function (Kind) {
|
|
6865
|
-
Kind["solid"] = "solid";
|
|
6866
|
-
Kind["ghost"] = "ghost";
|
|
6867
|
-
Kind["link"] = "link";
|
|
6868
|
-
Kind["solid-link"] = "solid-link";
|
|
6869
|
-
Kind["ghost-link"] = "ghost-link";
|
|
6870
|
-
})(Kind = Bcm.Kind || (Bcm.Kind = {}));
|
|
6871
|
-
let ButtonType;
|
|
6872
|
-
(function (ButtonType) {
|
|
6873
|
-
ButtonType["button"] = "button";
|
|
6874
|
-
ButtonType["reset"] = "reset";
|
|
6875
|
-
ButtonType["submit"] = "submit";
|
|
6876
|
-
})(ButtonType = Bcm.ButtonType || (Bcm.ButtonType = {}));
|
|
6877
|
-
let IconPosition;
|
|
6878
|
-
(function (IconPosition) {
|
|
6879
|
-
IconPosition["prefix"] = "prefix";
|
|
6880
|
-
IconPosition["suffix"] = "suffix";
|
|
6881
|
-
})(IconPosition = Bcm.IconPosition || (Bcm.IconPosition = {}));
|
|
6882
|
-
let TagType;
|
|
6883
|
-
(function (TagType) {
|
|
6884
|
-
TagType["basic"] = "basic";
|
|
6885
|
-
TagType["add"] = "add";
|
|
6886
|
-
TagType["checkable"] = "checkable";
|
|
6887
|
-
TagType["dissmisable"] = "dissmisable";
|
|
6888
|
-
})(TagType = Bcm.TagType || (Bcm.TagType = {}));
|
|
6889
|
-
let FontSize;
|
|
6890
|
-
(function (FontSize) {
|
|
6891
|
-
FontSize["size-1"] = "size-1";
|
|
6892
|
-
FontSize["size-2"] = "size-2";
|
|
6893
|
-
FontSize["size-3"] = "size-3";
|
|
6894
|
-
FontSize["size-4"] = "size-4";
|
|
6895
|
-
FontSize["size-5"] = "size-5";
|
|
6896
|
-
FontSize["size-6"] = "size-6";
|
|
6897
|
-
FontSize["size-7"] = "size-7";
|
|
6898
|
-
FontSize["size-8"] = "size-8";
|
|
6899
|
-
FontSize["size-9"] = "size-9";
|
|
6900
|
-
})(FontSize = Bcm.FontSize || (Bcm.FontSize = {}));
|
|
6901
|
-
let FontSizeValue;
|
|
6902
|
-
(function (FontSizeValue) {
|
|
6903
|
-
FontSizeValue[FontSizeValue["size-1"] = 12] = "size-1";
|
|
6904
|
-
FontSizeValue[FontSizeValue["size-2"] = 14] = "size-2";
|
|
6905
|
-
FontSizeValue[FontSizeValue["size-3"] = 16] = "size-3";
|
|
6906
|
-
FontSizeValue[FontSizeValue["size-4"] = 20] = "size-4";
|
|
6907
|
-
FontSizeValue[FontSizeValue["size-5"] = 24] = "size-5";
|
|
6908
|
-
FontSizeValue[FontSizeValue["size-6"] = 30] = "size-6";
|
|
6909
|
-
FontSizeValue[FontSizeValue["size-7"] = 38] = "size-7";
|
|
6910
|
-
FontSizeValue[FontSizeValue["size-8"] = 46] = "size-8";
|
|
6911
|
-
FontSizeValue[FontSizeValue["size-9"] = 56] = "size-9";
|
|
6912
|
-
})(FontSizeValue = Bcm.FontSizeValue || (Bcm.FontSizeValue = {}));
|
|
6913
|
-
let FontWeight;
|
|
6914
|
-
(function (FontWeight) {
|
|
6915
|
-
FontWeight["thin"] = "thin";
|
|
6916
|
-
FontWeight["light"] = "light";
|
|
6917
|
-
FontWeight["regular"] = "regular";
|
|
6918
|
-
FontWeight["medium"] = "medium";
|
|
6919
|
-
FontWeight["bold"] = "bold";
|
|
6920
|
-
FontWeight["black"] = "black";
|
|
6921
|
-
})(FontWeight = Bcm.FontWeight || (Bcm.FontWeight = {}));
|
|
6922
|
-
let ColorPalette;
|
|
6923
|
-
(function (ColorPalette) {
|
|
6924
|
-
ColorPalette["default"] = "default";
|
|
6925
|
-
ColorPalette["black"] = "black";
|
|
6926
|
-
ColorPalette["white"] = "white";
|
|
6927
|
-
ColorPalette["prime-blue"] = "prime-blue";
|
|
6928
|
-
ColorPalette["prime-blue-1"] = "prime-blue-1";
|
|
6929
|
-
ColorPalette["prime-blue-2"] = "prime-blue-2";
|
|
6930
|
-
ColorPalette["prime-blue-3"] = "prime-blue-3";
|
|
6931
|
-
ColorPalette["prime-blue-4"] = "prime-blue-4";
|
|
6932
|
-
ColorPalette["prime-blue-5"] = "prime-blue-5";
|
|
6933
|
-
ColorPalette["prime-blue-6"] = "prime-blue-6";
|
|
6934
|
-
ColorPalette["prime-blue-7"] = "prime-blue-7";
|
|
6935
|
-
ColorPalette["prime-blue-8"] = "prime-blue-8";
|
|
6936
|
-
ColorPalette["prime-blue-9"] = "prime-blue-9";
|
|
6937
|
-
ColorPalette["prime-blue-10"] = "prime-blue-10";
|
|
6938
|
-
ColorPalette["grey"] = "grey";
|
|
6939
|
-
ColorPalette["grey-1"] = "grey-1";
|
|
6940
|
-
ColorPalette["grey-2"] = "grey-2";
|
|
6941
|
-
ColorPalette["grey-3"] = "grey-3";
|
|
6942
|
-
ColorPalette["grey-4"] = "grey-4";
|
|
6943
|
-
ColorPalette["grey-5"] = "grey-5";
|
|
6944
|
-
ColorPalette["grey-6"] = "grey-6";
|
|
6945
|
-
ColorPalette["grey-7"] = "grey-7";
|
|
6946
|
-
ColorPalette["grey-8"] = "grey-8";
|
|
6947
|
-
ColorPalette["grey-9"] = "grey-9";
|
|
6948
|
-
ColorPalette["grey-10"] = "grey-10";
|
|
6949
|
-
ColorPalette["blue"] = "blue";
|
|
6950
|
-
ColorPalette["blue-1"] = "blue-1";
|
|
6951
|
-
ColorPalette["blue-2"] = "blue-2";
|
|
6952
|
-
ColorPalette["blue-3"] = "blue-3";
|
|
6953
|
-
ColorPalette["blue-4"] = "blue-4";
|
|
6954
|
-
ColorPalette["blue-5"] = "blue-5";
|
|
6955
|
-
ColorPalette["blue-6"] = "blue-6";
|
|
6956
|
-
ColorPalette["blue-7"] = "blue-7";
|
|
6957
|
-
ColorPalette["blue-8"] = "blue-8";
|
|
6958
|
-
ColorPalette["blue-9"] = "blue-9";
|
|
6959
|
-
ColorPalette["blue-10"] = "blue-10";
|
|
6960
|
-
ColorPalette["warmyellow"] = "warmyellow";
|
|
6961
|
-
ColorPalette["warmyellow-1"] = "warmyellow-1";
|
|
6962
|
-
ColorPalette["warmyellow-2"] = "warmyellow-2";
|
|
6963
|
-
ColorPalette["warmyellow-3"] = "warmyellow-3";
|
|
6964
|
-
ColorPalette["warmyellow-4"] = "warmyellow-4";
|
|
6965
|
-
ColorPalette["warmyellow-5"] = "warmyellow-5";
|
|
6966
|
-
ColorPalette["warmyellow-6"] = "warmyellow-6";
|
|
6967
|
-
ColorPalette["warmyellow-7"] = "warmyellow-7";
|
|
6968
|
-
ColorPalette["warmyellow-8"] = "warmyellow-8";
|
|
6969
|
-
ColorPalette["warmyellow-9"] = "warmyellow-9";
|
|
6970
|
-
ColorPalette["warmyellow-10"] = "warmyellow-10";
|
|
6971
|
-
ColorPalette["yellow"] = "yellow";
|
|
6972
|
-
ColorPalette["yellow-1"] = "yellow-1";
|
|
6973
|
-
ColorPalette["yellow-2"] = "yellow-2";
|
|
6974
|
-
ColorPalette["yellow-3"] = "yellow-3";
|
|
6975
|
-
ColorPalette["yellow-4"] = "yellow-4";
|
|
6976
|
-
ColorPalette["yellow-5"] = "yellow-5";
|
|
6977
|
-
ColorPalette["yellow-6"] = "yellow-6";
|
|
6978
|
-
ColorPalette["yellow-7"] = "yellow-7";
|
|
6979
|
-
ColorPalette["yellow-8"] = "yellow-8";
|
|
6980
|
-
ColorPalette["yellow-9"] = "yellow-9";
|
|
6981
|
-
ColorPalette["yellow-10"] = "yellow-10";
|
|
6982
|
-
ColorPalette["limegreen"] = "limegreen";
|
|
6983
|
-
ColorPalette["limegreen-1"] = "limegreen-1";
|
|
6984
|
-
ColorPalette["limegreen-2"] = "limegreen-2";
|
|
6985
|
-
ColorPalette["limegreen-3"] = "limegreen-3";
|
|
6986
|
-
ColorPalette["limegreen-4"] = "limegreen-4";
|
|
6987
|
-
ColorPalette["limegreen-5"] = "limegreen-5";
|
|
6988
|
-
ColorPalette["limegreen-6"] = "limegreen-6";
|
|
6989
|
-
ColorPalette["limegreen-7"] = "limegreen-7";
|
|
6990
|
-
ColorPalette["limegreen-8"] = "limegreen-8";
|
|
6991
|
-
ColorPalette["limegreen-9"] = "limegreen-9";
|
|
6992
|
-
ColorPalette["limegreen-10"] = "limegreen-10";
|
|
6993
|
-
ColorPalette["red"] = "red";
|
|
6994
|
-
ColorPalette["red-1"] = "red-1";
|
|
6995
|
-
ColorPalette["red-2"] = "red-2";
|
|
6996
|
-
ColorPalette["red-3"] = "red-3";
|
|
6997
|
-
ColorPalette["red-4"] = "red-4";
|
|
6998
|
-
ColorPalette["red-5"] = "red-5";
|
|
6999
|
-
ColorPalette["red-6"] = "red-6";
|
|
7000
|
-
ColorPalette["red-7"] = "red-7";
|
|
7001
|
-
ColorPalette["red-8"] = "red-8";
|
|
7002
|
-
ColorPalette["red-9"] = "red-9";
|
|
7003
|
-
ColorPalette["red-10"] = "red-10";
|
|
7004
|
-
ColorPalette["darkorange"] = "darkorange";
|
|
7005
|
-
ColorPalette["darkorange-1"] = "darkorange-1";
|
|
7006
|
-
ColorPalette["darkorange-2"] = "darkorange-2";
|
|
7007
|
-
ColorPalette["darkorange-3"] = "darkorange-3";
|
|
7008
|
-
ColorPalette["darkorange-4"] = "darkorange-4";
|
|
7009
|
-
ColorPalette["darkorange-5"] = "darkorange-5";
|
|
7010
|
-
ColorPalette["darkorange-6"] = "darkorange-6";
|
|
7011
|
-
ColorPalette["darkorange-7"] = "darkorange-7";
|
|
7012
|
-
ColorPalette["darkorange-8"] = "darkorange-8";
|
|
7013
|
-
ColorPalette["darkorange-9"] = "darkorange-9";
|
|
7014
|
-
ColorPalette["darkorange-10"] = "darkorange-10";
|
|
7015
|
-
ColorPalette["orange"] = "orange";
|
|
7016
|
-
ColorPalette["orange-1"] = "orange-1";
|
|
7017
|
-
ColorPalette["orange-2"] = "orange-2";
|
|
7018
|
-
ColorPalette["orange-3"] = "orange-3";
|
|
7019
|
-
ColorPalette["orange-4"] = "orange-4";
|
|
7020
|
-
ColorPalette["orange-5"] = "orange-5";
|
|
7021
|
-
ColorPalette["orange-6"] = "orange-6";
|
|
7022
|
-
ColorPalette["orange-7"] = "orange-7";
|
|
7023
|
-
ColorPalette["orange-8"] = "orange-8";
|
|
7024
|
-
ColorPalette["orange-9"] = "orange-9";
|
|
7025
|
-
ColorPalette["orange-10"] = "orange-10";
|
|
7026
|
-
ColorPalette["green"] = "green";
|
|
7027
|
-
ColorPalette["green-1"] = "green-1";
|
|
7028
|
-
ColorPalette["green-2"] = "green-2";
|
|
7029
|
-
ColorPalette["green-3"] = "green-3";
|
|
7030
|
-
ColorPalette["green-4"] = "green-4";
|
|
7031
|
-
ColorPalette["green-5"] = "green-5";
|
|
7032
|
-
ColorPalette["green-6"] = "green-6";
|
|
7033
|
-
ColorPalette["green-7"] = "green-7";
|
|
7034
|
-
ColorPalette["green-8"] = "green-8";
|
|
7035
|
-
ColorPalette["green-9"] = "green-9";
|
|
7036
|
-
ColorPalette["green-10"] = "green-10";
|
|
7037
|
-
ColorPalette["turquosie"] = "turquosie";
|
|
7038
|
-
ColorPalette["turquosie-1"] = "turquosie-1";
|
|
7039
|
-
ColorPalette["turquosie-2"] = "turquosie-2";
|
|
7040
|
-
ColorPalette["turquosie-3"] = "turquosie-3";
|
|
7041
|
-
ColorPalette["turquosie-4"] = "turquosie-4";
|
|
7042
|
-
ColorPalette["turquosie-5"] = "turquosie-5";
|
|
7043
|
-
ColorPalette["turquosie-6"] = "turquosie-6";
|
|
7044
|
-
ColorPalette["turquosie-7"] = "turquosie-7";
|
|
7045
|
-
ColorPalette["turquosie-8"] = "turquosie-8";
|
|
7046
|
-
ColorPalette["turquosie-9"] = "turquosie-9";
|
|
7047
|
-
ColorPalette["turquosie-10"] = "turquosie-10";
|
|
7048
|
-
ColorPalette["cobaltblue"] = "cobaltblue";
|
|
7049
|
-
ColorPalette["cobaltblue-1"] = "cobaltblue-1";
|
|
7050
|
-
ColorPalette["cobaltblue-2"] = "cobaltblue-2";
|
|
7051
|
-
ColorPalette["cobaltblue-3"] = "cobaltblue-3";
|
|
7052
|
-
ColorPalette["cobaltblue-4"] = "cobaltblue-4";
|
|
7053
|
-
ColorPalette["cobaltblue-5"] = "cobaltblue-5";
|
|
7054
|
-
ColorPalette["cobaltblue-6"] = "cobaltblue-6";
|
|
7055
|
-
ColorPalette["cobaltblue-7"] = "cobaltblue-7";
|
|
7056
|
-
ColorPalette["cobaltblue-8"] = "cobaltblue-8";
|
|
7057
|
-
ColorPalette["cobaltblue-9"] = "cobaltblue-9";
|
|
7058
|
-
ColorPalette["cobaltblue-10"] = "cobaltblue-10";
|
|
7059
|
-
ColorPalette["magenta"] = "magenta";
|
|
7060
|
-
ColorPalette["magenta-1"] = "magenta-1";
|
|
7061
|
-
ColorPalette["magenta-2"] = "magenta-2";
|
|
7062
|
-
ColorPalette["magenta-3"] = "magenta-3";
|
|
7063
|
-
ColorPalette["magenta-4"] = "magenta-4";
|
|
7064
|
-
ColorPalette["magenta-5"] = "magenta-5";
|
|
7065
|
-
ColorPalette["magenta-6"] = "magenta-6";
|
|
7066
|
-
ColorPalette["magenta-7"] = "magenta-7";
|
|
7067
|
-
ColorPalette["magenta-8"] = "magenta-8";
|
|
7068
|
-
ColorPalette["magenta-9"] = "magenta-9";
|
|
7069
|
-
ColorPalette["magenta-10"] = "magenta-10";
|
|
7070
|
-
ColorPalette["purple"] = "purple";
|
|
7071
|
-
ColorPalette["purple-1"] = "purple-1";
|
|
7072
|
-
ColorPalette["purple-2"] = "purple-2";
|
|
7073
|
-
ColorPalette["purple-3"] = "purple-3";
|
|
7074
|
-
ColorPalette["purple-4"] = "purple-4";
|
|
7075
|
-
ColorPalette["purple-5"] = "purple-5";
|
|
7076
|
-
ColorPalette["purple-6"] = "purple-6";
|
|
7077
|
-
ColorPalette["purple-7"] = "purple-7";
|
|
7078
|
-
ColorPalette["purple-8"] = "purple-8";
|
|
7079
|
-
ColorPalette["purple-9"] = "purple-9";
|
|
7080
|
-
ColorPalette["purple-10"] = "purple-10";
|
|
7081
|
-
ColorPalette["bc-red"] = "bc-red";
|
|
7082
|
-
ColorPalette["bc-red-1"] = "bc-red-1";
|
|
7083
|
-
ColorPalette["bc-red-2"] = "bc-red-2";
|
|
7084
|
-
ColorPalette["bc-red-3"] = "bc-red-3";
|
|
7085
|
-
ColorPalette["bc-red-4"] = "bc-red-4";
|
|
7086
|
-
ColorPalette["bc-red-5"] = "bc-red-5";
|
|
7087
|
-
ColorPalette["bc-red-6"] = "bc-red-6";
|
|
7088
|
-
ColorPalette["bc-red-7"] = "bc-red-7";
|
|
7089
|
-
ColorPalette["bc-red-8"] = "bc-red-8";
|
|
7090
|
-
ColorPalette["bc-red-9"] = "bc-red-9";
|
|
7091
|
-
ColorPalette["bc-blue"] = "bc-blue";
|
|
7092
|
-
ColorPalette["bc-blue-1"] = "bc-blue-1";
|
|
7093
|
-
ColorPalette["bc-blue-2"] = "bc-blue-2";
|
|
7094
|
-
ColorPalette["bc-blue-3"] = "bc-blue-3";
|
|
7095
|
-
ColorPalette["bc-blue-4"] = "bc-blue-4";
|
|
7096
|
-
ColorPalette["bc-blue-5"] = "bc-blue-5";
|
|
7097
|
-
ColorPalette["bc-blue-6"] = "bc-blue-6";
|
|
7098
|
-
ColorPalette["bc-blue-7"] = "bc-blue-7";
|
|
7099
|
-
ColorPalette["bc-blue-8"] = "bc-blue-8";
|
|
7100
|
-
ColorPalette["bc-blue-9"] = "bc-blue-9";
|
|
7101
|
-
ColorPalette["bc-green"] = "bc-green";
|
|
7102
|
-
ColorPalette["bc-green-1"] = "bc-green-1";
|
|
7103
|
-
ColorPalette["bc-green-2"] = "bc-green-2";
|
|
7104
|
-
ColorPalette["bc-green-3"] = "bc-green-3";
|
|
7105
|
-
ColorPalette["bc-green-4"] = "bc-green-4";
|
|
7106
|
-
ColorPalette["bc-green-5"] = "bc-green-5";
|
|
7107
|
-
ColorPalette["bc-green-6"] = "bc-green-6";
|
|
7108
|
-
ColorPalette["bc-green-7"] = "bc-green-7";
|
|
7109
|
-
ColorPalette["bc-green-8"] = "bc-green-8";
|
|
7110
|
-
ColorPalette["bc-green-9"] = "bc-green-9";
|
|
7111
|
-
ColorPalette["bc-orange"] = "bc-orange";
|
|
7112
|
-
ColorPalette["bc-orange-1"] = "bc-orange-1";
|
|
7113
|
-
ColorPalette["bc-orange-2"] = "bc-orange-2";
|
|
7114
|
-
ColorPalette["bc-orange-3"] = "bc-orange-3";
|
|
7115
|
-
ColorPalette["bc-orange-4"] = "bc-orange-4";
|
|
7116
|
-
ColorPalette["bc-orange-5"] = "bc-orange-5";
|
|
7117
|
-
ColorPalette["bc-orange-6"] = "bc-orange-6";
|
|
7118
|
-
ColorPalette["bc-orange-7"] = "bc-orange-7";
|
|
7119
|
-
ColorPalette["bc-orange-8"] = "bc-orange-8";
|
|
7120
|
-
ColorPalette["bc-orange-9"] = "bc-orange-9";
|
|
7121
|
-
})(ColorPalette = Bcm.ColorPalette || (Bcm.ColorPalette = {}));
|
|
7122
|
-
let InputType;
|
|
7123
|
-
(function (InputType) {
|
|
7124
|
-
InputType["text"] = "text";
|
|
7125
|
-
InputType["number"] = "number";
|
|
7126
|
-
InputType["email"] = "email";
|
|
7127
|
-
InputType["password"] = "password";
|
|
7128
|
-
InputType["url"] = "url";
|
|
7129
|
-
InputType["search"] = "search";
|
|
7130
|
-
InputType["tel"] = "tel";
|
|
7131
|
-
InputType["hidden"] = "hidden";
|
|
7132
|
-
})(InputType = Bcm.InputType || (Bcm.InputType = {}));
|
|
7133
|
-
let KeyCode;
|
|
7134
|
-
(function (KeyCode) {
|
|
7135
|
-
KeyCode[KeyCode["backspace"] = 8] = "backspace";
|
|
7136
|
-
KeyCode[KeyCode["tab"] = 9] = "tab";
|
|
7137
|
-
KeyCode[KeyCode["enter"] = 13] = "enter";
|
|
7138
|
-
KeyCode[KeyCode["shift"] = 16] = "shift";
|
|
7139
|
-
KeyCode[KeyCode["ctrl"] = 17] = "ctrl";
|
|
7140
|
-
KeyCode[KeyCode["alt"] = 18] = "alt";
|
|
7141
|
-
KeyCode[KeyCode["pause"] = 19] = "pause";
|
|
7142
|
-
KeyCode[KeyCode["capslock"] = 20] = "capslock";
|
|
7143
|
-
KeyCode[KeyCode["escape"] = 27] = "escape";
|
|
7144
|
-
KeyCode[KeyCode["space"] = 32] = "space";
|
|
7145
|
-
KeyCode[KeyCode["pageup"] = 33] = "pageup";
|
|
7146
|
-
KeyCode[KeyCode["pagedown"] = 34] = "pagedown";
|
|
7147
|
-
KeyCode[KeyCode["end"] = 35] = "end";
|
|
7148
|
-
KeyCode[KeyCode["home"] = 36] = "home";
|
|
7149
|
-
KeyCode[KeyCode["left"] = 37] = "left";
|
|
7150
|
-
KeyCode[KeyCode["up"] = 38] = "up";
|
|
7151
|
-
KeyCode[KeyCode["right"] = 39] = "right";
|
|
7152
|
-
KeyCode[KeyCode["down"] = 40] = "down";
|
|
7153
|
-
KeyCode[KeyCode["insert"] = 45] = "insert";
|
|
7154
|
-
KeyCode[KeyCode["delete"] = 46] = "delete";
|
|
7155
|
-
KeyCode[KeyCode["f1"] = 112] = "f1";
|
|
7156
|
-
KeyCode[KeyCode["f2"] = 113] = "f2";
|
|
7157
|
-
KeyCode[KeyCode["f3"] = 114] = "f3";
|
|
7158
|
-
KeyCode[KeyCode["f4"] = 115] = "f4";
|
|
7159
|
-
KeyCode[KeyCode["f5"] = 116] = "f5";
|
|
7160
|
-
KeyCode[KeyCode["f6"] = 117] = "f6";
|
|
7161
|
-
KeyCode[KeyCode["f7"] = 118] = "f7";
|
|
7162
|
-
KeyCode[KeyCode["f8"] = 119] = "f8";
|
|
7163
|
-
KeyCode[KeyCode["f9"] = 120] = "f9";
|
|
7164
|
-
KeyCode[KeyCode["f10"] = 121] = "f10";
|
|
7165
|
-
KeyCode[KeyCode["f11"] = 122] = "f11";
|
|
7166
|
-
KeyCode[KeyCode["f12"] = 123] = "f12";
|
|
7167
|
-
KeyCode[KeyCode["numlock"] = 144] = "numlock";
|
|
7168
|
-
KeyCode[KeyCode["scrolllock"] = 145] = "scrolllock";
|
|
7169
|
-
KeyCode[KeyCode["semicolon"] = 186] = "semicolon";
|
|
7170
|
-
KeyCode[KeyCode["equal"] = 187] = "equal";
|
|
7171
|
-
KeyCode[KeyCode["comma"] = 188] = "comma";
|
|
7172
|
-
KeyCode[KeyCode["dash"] = 189] = "dash";
|
|
7173
|
-
KeyCode[KeyCode["period"] = 190] = "period";
|
|
7174
|
-
KeyCode[KeyCode["slash"] = 191] = "slash";
|
|
7175
|
-
KeyCode[KeyCode["backslash"] = 220] = "backslash";
|
|
7176
|
-
KeyCode[KeyCode["bracketleft"] = 219] = "bracketleft";
|
|
7177
|
-
KeyCode[KeyCode["bracketright"] = 221] = "bracketright";
|
|
7178
|
-
KeyCode[KeyCode["quote"] = 222] = "quote";
|
|
7179
|
-
KeyCode[KeyCode["backtick"] = 192] = "backtick";
|
|
7180
|
-
KeyCode[KeyCode["a"] = 65] = "a";
|
|
7181
|
-
})(KeyCode = Bcm.KeyCode || (Bcm.KeyCode = {}));
|
|
7182
|
-
Bcm.FormErrorMessages = {
|
|
7183
|
-
'email': 'Please enter a valid email address',
|
|
7184
|
-
'password': 'Please enter a valid password',
|
|
7185
|
-
'url': 'Please enter a valid URL',
|
|
7186
|
-
'phone': 'Please enter a valid phone number',
|
|
7187
|
-
'search': 'Please enter a valid search term',
|
|
7188
|
-
'number': 'Please enter a valid number',
|
|
7189
|
-
'text': 'Please enter a valid text',
|
|
7190
|
-
'required': 'This field is required',
|
|
7191
|
-
'minlength': 'This field must be at least {0} characters long',
|
|
7192
|
-
'maxlength': 'This field must be at most {0} characters long',
|
|
7193
|
-
'min': 'This field must be at least {0}',
|
|
7194
|
-
'max': 'This field must be at most {0}',
|
|
7195
|
-
'between': 'This field must be between {0} and {1}',
|
|
7196
|
-
'pattern': 'This field is invalid',
|
|
7197
|
-
'date': 'Please enter a valid date',
|
|
7198
|
-
'time': 'Please enter a valid time',
|
|
7199
|
-
'datetime': 'Please enter a valid date and time',
|
|
7200
|
-
'datetime-local': 'Please enter a valid date and time',
|
|
7201
|
-
'month': 'Please enter a valid month',
|
|
7202
|
-
'week': 'Please enter a valid week',
|
|
7203
|
-
'color': 'Please enter a valid color',
|
|
7204
|
-
'file': 'Please enter a valid file',
|
|
7205
|
-
'range': 'Please enter a valid range',
|
|
7206
|
-
'radio': 'Please select a valid option',
|
|
7207
|
-
'checkbox': 'Please select a valid option',
|
|
7208
|
-
'select': 'Please select a valid option',
|
|
7209
|
-
'multiple': 'Please select a valid option',
|
|
7210
|
-
};
|
|
7211
|
-
let IndeterminateType;
|
|
7212
|
-
(function (IndeterminateType) {
|
|
7213
|
-
IndeterminateType["uncheck"] = "uncheck";
|
|
7214
|
-
IndeterminateType["indeterminate"] = "indeterminate";
|
|
7215
|
-
IndeterminateType["determinate"] = "determinate"; // true
|
|
7216
|
-
})(IndeterminateType = Bcm.IndeterminateType || (Bcm.IndeterminateType = {}));
|
|
7217
|
-
let Placement;
|
|
7218
|
-
(function (Placement) {
|
|
7219
|
-
Placement["top"] = "top";
|
|
7220
|
-
Placement["top-start"] = "top-start";
|
|
7221
|
-
Placement["top-end"] = "top-end";
|
|
7222
|
-
Placement["bottom"] = "bottom";
|
|
7223
|
-
Placement["bottom-start"] = "bottom-start";
|
|
7224
|
-
Placement["bottom-end"] = "bottom-end";
|
|
7225
|
-
Placement["left"] = "left";
|
|
7226
|
-
Placement["left-start"] = "left-start";
|
|
7227
|
-
Placement["left-end"] = "left-end";
|
|
7228
|
-
Placement["right"] = "right";
|
|
7229
|
-
Placement["right-start"] = "right-start";
|
|
7230
|
-
Placement["right-end"] = "right-end";
|
|
7231
|
-
})(Placement = Bcm.Placement || (Bcm.Placement = {}));
|
|
7232
|
-
let TriggerType;
|
|
7233
|
-
(function (TriggerType) {
|
|
7234
|
-
TriggerType["hover"] = "hover";
|
|
7235
|
-
TriggerType["click"] = "click";
|
|
7236
|
-
TriggerType["focus"] = "focus";
|
|
7237
|
-
})(TriggerType = Bcm.TriggerType || (Bcm.TriggerType = {}));
|
|
7238
|
-
})(Bcm || (Bcm = {}));
|
|
7239
|
-
const Bcm$1 = Bcm;
|
|
7240
|
-
|
|
7241
|
-
class StringHelper {
|
|
7242
|
-
}
|
|
7243
|
-
StringHelper.lowercase = (str) => str.toLowerCase();
|
|
7244
|
-
StringHelper.uppercase = (str) => str.toUpperCase();
|
|
7245
|
-
StringHelper.capitalize = (str) => str.charAt(0).toUpperCase() + str.slice(1);
|
|
7246
|
-
StringHelper.camelCase = (str) => str.replace(/\s(.)/g, function ($1) { return $1.toUpperCase(); }).replace(/\s/g, '');
|
|
7247
|
-
StringHelper.kebabCase = (str) => str.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();
|
|
7248
|
-
StringHelper.snakeCase = (str) => str.replace(/([a-z])([A-Z])/g, '$1_$2').toLowerCase();
|
|
7249
|
-
StringHelper.titleCase = (str) => str.replace(/\w\S*/g, function (txt) { return txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase(); });
|
|
7250
|
-
StringHelper.trim = (str) => str.trim();
|
|
7251
|
-
StringHelper.trimLeft = (str) => str.trimLeft();
|
|
7252
|
-
StringHelper.trimRight = (str) => str.trimRight();
|
|
7253
|
-
StringHelper.trimAll = (str) => str.trim().replace(/\s+/g, ' ');
|
|
7254
|
-
StringHelper.replace = (str, search, replace) => str.replace(search, replace);
|
|
7255
|
-
StringHelper.remove = (str, search) => str.replace(search, '');
|
|
7256
|
-
StringHelper.isNullOrEmpty = (str) => str === null || str === undefined || str === '';
|
|
7257
|
-
StringHelper.localizationMessage = (str, args) => str.replace(/{(\d+)}/g, (match, number) => typeof args[number] != 'undefined' ? args[number] : match);
|
|
7258
|
-
StringHelper.getMessage = (type, args) => StringHelper.localizationMessage(Bcm$1.FormErrorMessages[type], args);
|
|
7259
|
-
StringHelper.split = (str, separator) => str.split(separator);
|
|
7260
|
-
StringHelper.textContains = (str, search) => str.indexOf(search) !== -1;
|
|
7261
|
-
|
|
7262
|
-
const SlotTemplate = ({ value, className, name }) => {
|
|
7263
|
-
return StringHelper.isNullOrEmpty(value) ? h("span", { class: className },
|
|
7264
|
-
h("slot", Object.assign({}, (name && { name: name })))) : h("span", { class: className }, value);
|
|
7265
|
-
};
|
|
7266
|
-
|
|
7267
|
-
const LabelTemplate = ({ required, value, size, form, htmlFor, type }) => {
|
|
7268
|
-
size = size || Bcm$1.FontSize['size-1'];
|
|
7269
|
-
type = type || Bcm$1.Status.default;
|
|
7270
|
-
const labelClasses = classnames('bcm-label__text', size, {
|
|
7271
|
-
'bcm-label__text-error': type === Bcm$1.Status.error,
|
|
7272
|
-
});
|
|
7273
|
-
return (h("label", { form: form, htmlFor: htmlFor, class: labelClasses },
|
|
7274
|
-
" ",
|
|
7275
|
-
h(SlotTemplate, { value: value }),
|
|
7276
|
-
" ",
|
|
7277
|
-
required && ('*')));
|
|
7278
|
-
};
|
|
7279
|
-
|
|
7280
|
-
const labelCss = "@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}.bcm-label{display:flex;align-items:center;grid-gap:2px}.bcm-label__text{display:inline-block;color:var(--bcm-color-grey-9);margin-bottom:4px}.bcm-label__text-error{color:var(--bcm-color-red-6)}";
|
|
7281
|
-
|
|
7282
|
-
const BcmLabel = class {
|
|
7283
|
-
constructor(hostRef) {
|
|
7284
|
-
registerInstance(this, hostRef);
|
|
7285
|
-
/** Props **/
|
|
7286
|
-
this._id = Generate.UID();
|
|
7287
|
-
this.required = false;
|
|
7288
|
-
this.size = Bcm$1.FontSize['size-1'];
|
|
7289
|
-
this.hidden = false;
|
|
7290
|
-
this.type = Bcm$1.Status.default;
|
|
7291
|
-
}
|
|
7292
|
-
render() {
|
|
7293
|
-
const { required, value, size, form, htmlFor, hidden, type, tooltip } = this;
|
|
7294
|
-
const hostClasses = classnames('bcm-label', { hidden });
|
|
7295
|
-
const Label = (h(LabelTemplate, { form: form, htmlFor: htmlFor, value: value, size: size, type: type, required: required }));
|
|
7296
|
-
return (h(Host, null, h("div", { class: hostClasses }, Label, tooltip && (h("bcm-tooltip", { message: tooltip, placement: 'top', trigger: 'hover' }, h("bcm-icon", { color: "grey-8", icon: "question-circle", type: "fill" }))))));
|
|
7297
|
-
}
|
|
7298
|
-
get el() { return getElement(this); }
|
|
7299
|
-
};
|
|
7300
|
-
BcmLabel.style = labelCss;
|
|
7301
|
-
|
|
7302
|
-
const switchCss = "@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}:host{display:inline-block;margin:0 0 8px 0}:host(.hidden){display:none}*{box-sizing:border-box}.wrapper{display:inline-flex;padding-top:0px;padding-bottom:5px}.wrapper .active-text{color:var(--bcm-color-prime-blue-6);margin-left:4px}.wrapper .inactive-text{color:var(--bcm-color-grey-6);margin-right:4px}.container{display:flex;justify-content:space-between;align-items:center;border-radius:16px;background-color:var(--bcm-color-grey-6);position:relative}.container .handle{padding:1px;position:absolute;background-color:var(--bcm-color-grey-1);display:inline-flex;align-items:center;justify-content:center;border-radius:16px;transition:all 0.2s ease-in-out;box-shadow:0px 2px 2px rgba(0, 0, 0, 0.1), 0px 3px 1px rgba(0, 0, 0, 0.05), 0px 1px 5px rgba(0, 0, 0, 0.1)}.container .icon-active{opacity:0}.container .icon-inactive{opacity:1}.container.small{width:28px;min-width:28px;height:16px;padding:4px}.container.small .handle{width:12px;height:12px;left:4px}.container.small.switch-checked .handle{left:12px}.container.small:active:not(.disabled) .handle{width:16px}.container.small:active.switch-checked:not(.disabled) .handle{left:8px}.container.small .spinner{box-sizing:border-box;display:inline-flex;width:9px;height:9px;border-radius:50%;border:1px solid var(--bcm-color-grey-1);border-top-color:var(--bcm-color-grey-6);animation:spinner 1.5s linear infinite}.container.medium{width:44px;min-width:44px;height:22px;padding:4px}.container.medium .handle{width:16px;height:16px;left:4px}.container.medium.switch-checked .handle{left:24px}.container.medium:active:not(.disabled) .handle{width:22px}.container.medium:active.switch-checked:not(.disabled) .handle{left:18px}.container.medium .spinner{box-sizing:border-box;display:inline-flex;width:13px;height:13px;border-radius:50%;border:1px solid var(--bcm-color-grey-1);border-top-color:var(--bcm-color-grey-6);animation:spinner 1.5s linear infinite}.container.switch-checked{background-color:var(--bcm-color-prime-blue-6)}.container.switch-checked .icon-active{color:var(--bcm-color-grey-1);opacity:1}.container.switch-checked .icon-inactive{opacity:0}.container.switch-checked .spinner{border-top-color:var(--bcm-color-prime-blue-6)}.wrapper.disabled{opacity:40%;cursor:not-allowed}@keyframes spinner{to{transform:rotate(360deg)}}input[type=checkbox]{position:absolute;width:0;height:0;opacity:0}.label{display:flex;flex-direction:column;color:var(--bcm-color-grey-9);padding-right:4px;margin-right:8px;margin-bottom:8px}.caption-area{min-height:20px}.input-caption{display:block}:host(.error) .label{color:var(--bcm-color-red-6) !important}.caption-default{color:#8C8C8C}.caption-primary{color:#4293CF}.caption-success{color:#52C41A}.caption-warning{color:#FA8C16}.caption-error{color:#F5222D}";
|
|
7303
|
-
|
|
7304
|
-
const BcmSwitch = class {
|
|
7305
|
-
constructor(hostRef) {
|
|
7306
|
-
registerInstance(this, hostRef);
|
|
7307
|
-
this.change = createEvent(this, "bcm-change", 7);
|
|
7308
|
-
this.focus = createEvent(this, "bcm-focus", 7);
|
|
7309
|
-
this.blur = createEvent(this, "bcm-blur", 7);
|
|
7310
|
-
this.checked = false;
|
|
7311
|
-
this.size = 'medium';
|
|
7312
|
-
this.pending = false;
|
|
7313
|
-
this.disabled = false;
|
|
7314
|
-
this.hidden = false;
|
|
7315
|
-
this.value = '';
|
|
7316
|
-
this.label = null;
|
|
7317
|
-
this.required = false;
|
|
7318
|
-
this.noCaption = false;
|
|
7319
|
-
this.captionType = 'default';
|
|
7320
|
-
}
|
|
7321
|
-
connectedCallback() {
|
|
7322
|
-
this.captionCache = this.caption;
|
|
7323
|
-
this.captionTypeCache = this.captionType;
|
|
7324
|
-
}
|
|
7325
|
-
handleClick() {
|
|
7326
|
-
this.checked = this.input.checked;
|
|
7327
|
-
this.value = this.checked;
|
|
7328
|
-
this.change.emit(this.checked);
|
|
7329
|
-
}
|
|
7330
|
-
componentDidLoad() {
|
|
7331
|
-
this.value = this.checked;
|
|
7332
|
-
}
|
|
7333
|
-
handleFocus() {
|
|
7334
|
-
this.focus.emit();
|
|
7335
|
-
}
|
|
7336
|
-
handleBlur() {
|
|
7337
|
-
this.blur.emit();
|
|
7338
|
-
}
|
|
7339
|
-
componentWillRender() {
|
|
7340
|
-
if (this.pending) {
|
|
7341
|
-
this.disabled = true;
|
|
7342
|
-
}
|
|
7343
|
-
}
|
|
7344
|
-
async setClear() {
|
|
7345
|
-
if (this.input.checked == true) {
|
|
7346
|
-
this.input.checked = false;
|
|
7347
|
-
this.checked = this.input.checked;
|
|
7348
|
-
this.value = this.checked;
|
|
7349
|
-
this.change.emit(this.checked);
|
|
7350
|
-
}
|
|
7351
|
-
}
|
|
7352
|
-
async resetCaption() {
|
|
7353
|
-
this.caption = this.captionCache;
|
|
7354
|
-
this.captionType = this.captionTypeCache;
|
|
7355
|
-
this.captionError = null;
|
|
7356
|
-
}
|
|
7357
|
-
render() {
|
|
7358
|
-
const { checked, size, activeIcon, inactiveIcon, activeText, inactiveText, pending, disabled, label, required, noCaption, captionType, captionError, caption } = this;
|
|
7359
|
-
const classes = classnames('container', size, {
|
|
7360
|
-
'switch-checked': checked,
|
|
7361
|
-
'disabled': disabled
|
|
7362
|
-
});
|
|
7363
|
-
const wrapperClass = classnames('wrapper', {
|
|
7364
|
-
'checked': checked,
|
|
7365
|
-
'disabled': disabled
|
|
7366
|
-
});
|
|
7367
|
-
const captionClasses = classnames('size-1', 'input-caption', 'caption-' + captionType);
|
|
7368
|
-
const isPermitted = (condition) => {
|
|
7369
|
-
return (condition && size === 'medium');
|
|
7370
|
-
};
|
|
7371
|
-
const isMedium = size === 'medium';
|
|
7372
|
-
const hostClasses = classnames('bcm-switch', this.hidden ? 'hidden' : null);
|
|
7373
|
-
return (h(Host, { class: hostClasses }, label && h("div", null, h("bcm-label", { tooltip: this.tooltip, type: captionType, value: label, required: required })), h("label", { class: wrapperClass }, isPermitted(inactiveText) && h("span", { class: "inactive-text size-1" }, inactiveText), h("div", { class: classes }, isMedium && h("bcm-icon", { icon: activeIcon, size: 14, class: "icon-active" }), h("span", { class: "handle" }, pending && h("span", { class: "spinner" })), isMedium && h("bcm-icon", { icon: inactiveIcon, size: 14, class: "icon-inactive" })), h("input", { onClick: () => this.handleClick(), onFocus: () => this.handleFocus(), onBlur: () => this.handleBlur(), ref: el => (this.input = el), checked: checked, type: "checkbox", class: "switch", disabled: disabled }), isPermitted(activeText) && h("span", { class: "active-text size-1" }, activeText)), !noCaption && (h("div", { class: "caption-area" }, captionType == "error"
|
|
7374
|
-
? h("span", { class: captionClasses }, " ", captionError, " ")
|
|
7375
|
-
: caption && h("span", { class: captionClasses }, " ", caption, " ")))));
|
|
7376
|
-
}
|
|
7377
|
-
};
|
|
7378
|
-
BcmSwitch.style = switchCss;
|
|
7379
|
-
|
|
7380
|
-
const textareaCss = "@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}.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}:host{display:inline-block;width:100%;margin:0 0 8px 0}:host(.hidden){display:none}.textarea-wrapper{width:256px}.textarea-wrapper.full-width{width:100%}.textarea-wrapper:hover .clear-button{opacity:1}.textarea-container{position:relative;width:100%;border:1px solid var(--bcm-color-grey-5);border-radius:2px}.textarea-container.empty .clear-button{display:none}.textarea-container.focused:not(.disabled){outline:none;border-color:var(--bcm-color-prime-blue-5);box-shadow:0px 0px 4px var(--bcm-color-prime-blue-6)}.textarea-container:hover:not(:disabled){border-color:var(--bcm-color-prime-blue-6)}.textarea-container textarea{resize:vertical;display:flex;flex:1 1 auto;align-items:center;color:var(--bcm-color-grey-8);width:100%;background-color:var(--bcm-color-grey-1);border:none;border-radius:2px;box-shadow:none;font-family:\"Roboto\", sans-serif;-webkit-appearance:none;box-sizing:border-box}.textarea-container textarea::-webkit-search-decoration,.textarea-container textarea::-webkit-search-cancel-button,.textarea-container textarea::-webkit-search-results-button,.textarea-container textarea::-webkit-search-results-decoration{-webkit-appearance:none}.textarea-container textarea::placeholder{color:var(--bcm-color-grey-6);user-select:none}.textarea-container textarea:focus:not(:disabled){outline:none;border-color:none;box-shadow:none}.textarea-container textarea:hover:not(:disabled){border-color:none}.textarea-container textarea:disabled{background-color:var(--bcm-color-grey-3);cursor:not-allowed}.textarea-container textarea.clearable{padding-right:32px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.label{display:flex;flex-direction:column;color:var(--bcm-color-grey-9);margin-bottom:4px}.caption-area{min-height:20px;display:flex;flex-direction:row;justify-content:space-between}.input-caption{display:block}.clear-button{position:absolute;opacity:0;right:10px;top:7px;display:inline-flex;align-items:center;border:none;background:none;padding:0;cursor:pointer}.clear-button:focus{outline:none}.textarea-footer{display:flex;justify-content:space-between;margin-bottom:8px;min-height:20px}.textarea-footer .count{color:var(--bcm-color-grey-7);margin-left:4px}.textarea-footer .count:only-child{margin-left:auto}.size-large{padding:7px 12px;min-height:38px}.size-large~.clear-button{top:12px}.size-medium{padding:4px 12px;min-height:30px}.size-medium~.clear-button{top:7px}.size-small{padding:0px 12px;min-height:20px}.size-small~.clear-button{top:2px}.caption-default{color:#8C8C8C}.caption-primary{color:#4293CF}.caption-success{color:#52C41A}.caption-warning{color:#FA8C16}.caption-error{color:#F5222D}.error .label{color:var(--bcm-color-red-6) !important}.error .textarea-container{border:1px solid var(--bcm-color-red-6) !important}";
|
|
7381
|
-
|
|
7382
|
-
let id$1 = 0;
|
|
7383
|
-
const BcmTextarea = class {
|
|
7384
|
-
constructor(hostRef) {
|
|
7385
|
-
registerInstance(this, hostRef);
|
|
7386
|
-
this.focus = createEvent(this, "bcm-focus", 7);
|
|
7387
|
-
this.blur = createEvent(this, "bcm-blur", 7);
|
|
7388
|
-
this.clear = createEvent(this, "bcm-clear", 7);
|
|
7389
|
-
this.change = createEvent(this, "bcm-change", 7);
|
|
7390
|
-
this.input = createEvent(this, "bcm-input", 7);
|
|
7391
|
-
this.textareaId = `textarea-${++id$1}`;
|
|
7392
|
-
this.valueLength = 0;
|
|
7393
|
-
this.noCaption = false;
|
|
7394
|
-
this.captionType = 'default';
|
|
7395
|
-
this.rows = 1;
|
|
7396
|
-
this.size = 'medium';
|
|
7397
|
-
this.resize = 'vertical';
|
|
7398
|
-
this.hidden = false;
|
|
7399
|
-
this.required = false;
|
|
7400
|
-
this.hasFocus = false;
|
|
7401
|
-
}
|
|
7402
|
-
async setFocus() {
|
|
7403
|
-
this.textarea.focus();
|
|
7404
|
-
}
|
|
7405
|
-
async removeFocus() {
|
|
7406
|
-
this.textarea.blur();
|
|
7407
|
-
}
|
|
7408
|
-
async select() {
|
|
7409
|
-
return this.textarea.select();
|
|
7410
|
-
}
|
|
7411
|
-
async setValue(value) {
|
|
7412
|
-
this.textarea.value = value;
|
|
7413
|
-
this.value = value;
|
|
7414
|
-
this.handleChange();
|
|
7415
|
-
return value;
|
|
7416
|
-
}
|
|
7417
|
-
async setClear() {
|
|
7418
|
-
this.textarea.value = '';
|
|
7419
|
-
this.value = '';
|
|
7420
|
-
}
|
|
7421
|
-
async resetCaption() {
|
|
7422
|
-
this.caption = this.captionCache;
|
|
7423
|
-
this.captionType = this.captionTypeCache;
|
|
7424
|
-
this.captionError = null;
|
|
7425
|
-
}
|
|
7426
|
-
async getValue() {
|
|
7427
|
-
return this.value;
|
|
7428
|
-
}
|
|
7429
|
-
handleFocus() {
|
|
7430
|
-
this.hasFocus = true;
|
|
7431
|
-
this.focus.emit();
|
|
7432
|
-
}
|
|
7433
|
-
handleBlur() {
|
|
7434
|
-
this.hasFocus = false;
|
|
7435
|
-
this.blur.emit();
|
|
7436
|
-
}
|
|
7437
|
-
handleChange() {
|
|
7438
|
-
this.value = this.textarea.value;
|
|
7439
|
-
this.change.emit(this.value);
|
|
7440
|
-
}
|
|
7441
|
-
watchValue() {
|
|
7442
|
-
this.handleChange();
|
|
7443
|
-
}
|
|
7444
|
-
handleInput() {
|
|
7445
|
-
this.value = this.textarea.value;
|
|
7446
|
-
this.setTextareaHeight();
|
|
7447
|
-
this.input.emit(this.value);
|
|
7448
|
-
}
|
|
7449
|
-
handleClear(e) {
|
|
7450
|
-
this.value = '';
|
|
7451
|
-
this.clear.emit();
|
|
7452
|
-
this.textarea.focus();
|
|
7453
|
-
e.stopPropagation();
|
|
7454
|
-
}
|
|
7455
|
-
setTextareaHeight() {
|
|
7456
|
-
if (this.resize === 'auto') {
|
|
7457
|
-
this.textarea.style.height = 'auto';
|
|
7458
|
-
this.textarea.style.height = (this.textarea.scrollHeight + 2) + 'px';
|
|
7459
|
-
}
|
|
7460
|
-
else {
|
|
7461
|
-
this.textarea.style.height = undefined;
|
|
7462
|
-
}
|
|
7463
|
-
}
|
|
7464
|
-
connectedCallback() {
|
|
7465
|
-
this.handleChange = this.handleChange.bind(this);
|
|
7466
|
-
this.handleBlur = this.handleBlur.bind(this);
|
|
7467
|
-
this.handleFocus = this.handleFocus.bind(this);
|
|
7468
|
-
this.handleInput = this.handleInput.bind(this);
|
|
7469
|
-
this.handleClear = this.handleClear.bind(this);
|
|
7470
|
-
this.setTextareaHeight = this.setTextareaHeight.bind(this);
|
|
7471
|
-
this.captionCache = this.caption;
|
|
7472
|
-
this.captionTypeCache = this.captionType;
|
|
7473
|
-
}
|
|
7474
|
-
componentWillRender() {
|
|
7475
|
-
this.valueLength = this.value ? this.value.length : 0;
|
|
7476
|
-
// this.fullWidth
|
|
7477
|
-
// ? this.el.style.width = '100%'
|
|
7478
|
-
// : this.el.style.width = 'initial'
|
|
7479
|
-
}
|
|
7480
|
-
render() {
|
|
7481
|
-
const { fullWidth, size, rows, disabled, clearable, label, hasFocus, noCaption, caption, captionError, captionType, value, resize, maxLength, placeholder, valueLength, required } = this;
|
|
7482
|
-
const wrapperClasses = classnames('textarea-wrapper', {
|
|
7483
|
-
'full-width': fullWidth,
|
|
7484
|
-
'error': captionType == 'error' ? true : false
|
|
7485
|
-
});
|
|
7486
|
-
const contanerClasses = classnames('textarea-container', 'resize-' + resize, 'textarea-' + size, {
|
|
7487
|
-
'empty': (value === null || value === void 0 ? void 0 : value.length) < 1,
|
|
7488
|
-
'focused': hasFocus,
|
|
7489
|
-
'disabled': disabled,
|
|
7490
|
-
});
|
|
7491
|
-
const captionClasses = classnames('size-1', 'input-caption', 'caption-' + captionType);
|
|
7492
|
-
const countClasses = classnames('size-1', 'input-caption', 'caption-default');
|
|
7493
|
-
const textareaClasses = classnames('size-' + size, {
|
|
7494
|
-
'size-3': size === 'large',
|
|
7495
|
-
'size-2': size === 'small' || size === 'medium',
|
|
7496
|
-
'clearable': clearable
|
|
7497
|
-
});
|
|
7498
|
-
const hostClasses = classnames(this.hidden ? 'hidden' : null);
|
|
7499
|
-
return (h(Host, { class: hostClasses }, h("div", { class: wrapperClasses }, label && h("div", null, h("bcm-label", { tooltip: this.tooltip, type: captionType, value: label, required: required, htmlFor: this.textareaId })), h("div", { class: contanerClasses }, h("textarea", { ref: el => (this.textarea = el), onInput: this.handleInput, onFocus: this.handleFocus, onChange: this.handleChange, onBlur: this.handleBlur, class: textareaClasses, id: this.textareaId, value: value, rows: rows, disabled: disabled, maxlength: maxLength, placeholder: placeholder }), clearable && (h("button", { class: "clear-button", onClick: this.handleClear }, h("bcm-icon", { icon: "close-circle", type: "fill", size: 18, color: "grey-7" })))), !noCaption || maxLength ? (h("div", { class: "caption-area" }, h("span", null, captionType == "error"
|
|
7500
|
-
? h("span", { class: captionClasses }, " ", captionError, " ")
|
|
7501
|
-
: caption && h("span", { class: captionClasses }, " ", caption, " ")), maxLength && h("span", { class: countClasses }, " ", `${valueLength}/${maxLength}`, " "))) : null)));
|
|
7502
|
-
}
|
|
7503
|
-
get el() { return getElement(this); }
|
|
7504
|
-
static get watchers() { return {
|
|
7505
|
-
"value": ["watchValue"]
|
|
7506
|
-
}; }
|
|
7507
|
-
};
|
|
7508
|
-
BcmTextarea.style = textareaCss;
|
|
7509
|
-
|
|
7510
|
-
const tooltipCss = "@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}:host{display:inline-flex}:host(.hidden){display:none}:host(:focus){outline:none}.tooltip{position:relative;}.tooltip .box{position:absolute;display:none;box-sizing:border-box;background-color:#262626;border:1px solid #262626;border-radius:2px;z-index:10700;width:max-content;padding:4px 8px;color:var(--bcm-color-grey-1)}.tooltip::after{content:\"\";position:absolute;display:none;border:6px solid;z-index:10700;pointer-events:none}.tooltip.open .box,.tooltip.open::after{display:block}.tooltip.top .box{bottom:100%;margin-bottom:8px}.tooltip.top::after{bottom:100%;margin-bottom:-4px;border-color:#262626 transparent transparent transparent}.tooltip.bottom .box{top:100%;margin-top:8px}.tooltip.bottom::after{top:100%;margin-top:-4px;border-color:transparent transparent #262626 transparent}.tooltip.left .box{right:100%;margin-right:8px}.tooltip.left::after{right:100%;margin-right:-4px;border-color:transparent transparent transparent #262626}.tooltip.right .box{left:100%;margin-left:8px}.tooltip.right::after{left:100%;margin-left:-4px;border-color:transparent #262626 transparent transparent}.tooltip.top.center .box,.tooltip.bottom.center .box{left:50%;transform:translateX(-50%)}.tooltip.top.center::after,.tooltip.bottom.center::after{left:50%;transform:translateX(-50%)}.tooltip.top.start .box,.tooltip.bottom.start .box{left:0}.tooltip.top.start::after,.tooltip.bottom.start::after{left:8px}.tooltip.top.end .box,.tooltip.bottom.end .box{right:0}.tooltip.top.end::after,.tooltip.bottom.end::after{right:8px}.tooltip.left.center .box,.tooltip.right.center .box{top:50%;transform:translateY(-50%)}.tooltip.left.center::after,.tooltip.right.center::after{top:50%;transform:translateY(-50%)}.tooltip.left.start .box,.tooltip.right.start .box{top:0}.tooltip.left.start::after,.tooltip.right.start::after{top:4px}.tooltip.left.end .box,.tooltip.right.end .box{bottom:0}.tooltip.left.end::after,.tooltip.right.end::after{bottom:4px}";
|
|
7511
|
-
|
|
7512
|
-
const BcmTooltip = class {
|
|
7513
|
-
constructor(hostRef) {
|
|
7514
|
-
registerInstance(this, hostRef);
|
|
7515
|
-
this.onShow = createEvent(this, "bcm-show", 7);
|
|
7516
|
-
this.onHide = createEvent(this, "bcm-hide", 7);
|
|
7517
|
-
this.placement = 'top';
|
|
7518
|
-
this.trigger = 'hover';
|
|
7519
|
-
this.hidden = false;
|
|
7520
|
-
this._internal_id = (Math.random() * 4).toString(16).replace('.', '');
|
|
7521
|
-
}
|
|
7522
|
-
async show() {
|
|
7523
|
-
// Prevent subsequent calls
|
|
7524
|
-
if (this.open) {
|
|
7525
|
-
return;
|
|
7526
|
-
}
|
|
7527
|
-
this.open = true;
|
|
7528
|
-
this.onShow.emit();
|
|
7529
|
-
}
|
|
7530
|
-
async hide() {
|
|
7531
|
-
// Prevent subsequent calls
|
|
7532
|
-
if (!this.open) {
|
|
7533
|
-
return;
|
|
7534
|
-
}
|
|
7535
|
-
this.open = false;
|
|
7536
|
-
this.onHide.emit();
|
|
7537
|
-
}
|
|
7538
|
-
handleClickOutside(e) {
|
|
7539
|
-
if (!this.host.contains(e.target)) {
|
|
7540
|
-
if (this.open) {
|
|
7541
|
-
this.open = false;
|
|
7542
|
-
}
|
|
7543
|
-
}
|
|
7544
|
-
}
|
|
7545
|
-
async handleOpen() {
|
|
7546
|
-
await this.createElement();
|
|
7547
|
-
var tooltipBox = document.getElementById("box" + this._internal_id).shadowRoot.querySelector(".tooltip-box");
|
|
7548
|
-
if (tooltipBox && tooltipBox.querySelector(".box")) {
|
|
7549
|
-
var tooltipBoxIn = tooltipBox.querySelector(".box");
|
|
7550
|
-
popoverPlacement(tooltipBoxIn, this.host, this.placement, (place) => this.placement = place);
|
|
7551
|
-
tooltipBox.classList.toggle("open");
|
|
7552
|
-
}
|
|
7553
|
-
}
|
|
7554
|
-
async createElement() {
|
|
7555
|
-
var target = this.host.getBoundingClientRect();
|
|
7556
|
-
var placementString = String([...this.getPlacement()]).replace(',', ' ');
|
|
7557
|
-
var element;
|
|
7558
|
-
if (!document.getElementById("box" + this._internal_id)) {
|
|
7559
|
-
element = document.createElement("bcm-tooltip-box");
|
|
7560
|
-
element.setAttribute("id", "box" + this._internal_id);
|
|
7561
|
-
}
|
|
7562
|
-
else {
|
|
7563
|
-
element = document.getElementById("box" + this._internal_id);
|
|
7564
|
-
}
|
|
7565
|
-
element.setAttribute("message", this.message);
|
|
7566
|
-
// element.setAttribute("placement", placementString)
|
|
7567
|
-
element.style.position = "absolute";
|
|
7568
|
-
// element.style.top = target.top + "px"
|
|
7569
|
-
// element.style.left = (target.left + (target.width / 2)) + "px"
|
|
7570
|
-
element.setAttribute("placement", placementString);
|
|
7571
|
-
// element.style.zIndex = "999999999"
|
|
7572
|
-
document.body.appendChild(element);
|
|
7573
|
-
await delay(50);
|
|
7574
|
-
var tooltipBox = document.getElementById("box" + this._internal_id).shadowRoot.querySelector(".tooltip-box");
|
|
7575
|
-
if (tooltipBox && tooltipBox.querySelector(".box")) {
|
|
7576
|
-
var tooltipBoxIn = tooltipBox.querySelector(".box");
|
|
7577
|
-
popoverPlacement(tooltipBoxIn, this.host, this.placement, (place) => this.placement = place);
|
|
7578
|
-
}
|
|
7579
|
-
element.style.top = popoverBoxPlacement(this.placement, target)[0] + "px";
|
|
7580
|
-
element.style.left = popoverBoxPlacement(this.placement, target)[1] + "px";
|
|
7581
|
-
}
|
|
7582
|
-
hasTrigger(trigger) {
|
|
7583
|
-
return this.trigger === trigger;
|
|
7584
|
-
}
|
|
7585
|
-
getPlacement() {
|
|
7586
|
-
const placements = this.placement.split('-');
|
|
7587
|
-
if (placements.length === 1) {
|
|
7588
|
-
placements.push('center');
|
|
7589
|
-
}
|
|
7590
|
-
return placements;
|
|
7591
|
-
}
|
|
7592
|
-
/*
|
|
7593
|
-
Trigger Functions
|
|
7594
|
-
*/
|
|
7595
|
-
handleMouseOver() {
|
|
7596
|
-
if (this.hasTrigger('hover')) {
|
|
7597
|
-
this.show();
|
|
7598
|
-
}
|
|
7599
|
-
}
|
|
7600
|
-
handleMouseOut() {
|
|
7601
|
-
if (this.hasTrigger('hover')) {
|
|
7602
|
-
this.hide();
|
|
7603
|
-
}
|
|
7604
|
-
}
|
|
7605
|
-
handleClick() {
|
|
7606
|
-
if (this.hasTrigger('click')) {
|
|
7607
|
-
this.open ? this.hide() : this.show();
|
|
7608
|
-
}
|
|
7609
|
-
}
|
|
7610
|
-
handleFocus() {
|
|
7611
|
-
if (this.hasTrigger('focus')) {
|
|
7612
|
-
this.show();
|
|
7613
|
-
}
|
|
7614
|
-
}
|
|
7615
|
-
handleBlur() {
|
|
7616
|
-
if (this.hasTrigger('focus')) {
|
|
7617
|
-
this.hide();
|
|
7618
|
-
}
|
|
7619
|
-
}
|
|
7620
|
-
async componentDidRender() {
|
|
7621
|
-
await this.createElement();
|
|
7622
|
-
var tooltipBox = document.getElementById("box" + this._internal_id).shadowRoot.querySelector(".tooltip-box");
|
|
7623
|
-
if (tooltipBox && tooltipBox.querySelector(".box")) {
|
|
7624
|
-
var tooltipBoxIn = tooltipBox.querySelector(".box");
|
|
7625
|
-
popoverPlacement(tooltipBoxIn, this.host, this.placement, (place) => this.placement = place);
|
|
7626
|
-
}
|
|
7627
|
-
}
|
|
7628
|
-
render() {
|
|
7629
|
-
const classes = classnames('tooltip', ...this.getPlacement(), {
|
|
7630
|
-
// 'open': this.open
|
|
7631
|
-
});
|
|
7632
|
-
const hostClasses = classnames(this.hidden ? 'hidden' : null);
|
|
7633
|
-
return (h(Host, { class: hostClasses, onClick: () => this.handleClick(), onMouseOver: () => this.handleMouseOver(), onMouseOut: () => this.handleMouseOut(), onFocus: () => this.handleFocus(), onBlur: () => this.handleBlur(), tabindex: 0 }, h("span", { class: classes }, h("span", { class: "box size-2" }, this.message), h("slot", null))));
|
|
7634
|
-
}
|
|
7635
|
-
get host() { return getElement(this); }
|
|
7636
|
-
static get watchers() { return {
|
|
7637
|
-
"open": ["handleOpen"]
|
|
7638
|
-
}; }
|
|
7639
|
-
};
|
|
7640
|
-
BcmTooltip.style = tooltipCss;
|
|
7641
|
-
|
|
7642
|
-
const tooltipBoxCss = "@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}:host{display:inline-flex}:host(.hidden){display:none}:host(:focus){outline:none}.tooltip-box{position:relative;}.tooltip-box .box{position:absolute;display:none;box-sizing:border-box;background-color:#262626;border:1px solid #262626;border-radius:2px;z-index:10700;width:max-content;padding:4px 8px;color:var(--bcm-color-grey-1)}.tooltip-box::after{content:\"\";position:absolute;display:none;border:6px solid;z-index:10700;pointer-events:none}.tooltip-box.open .box,.tooltip-box.open::after{display:block}.tooltip-box.top .box{bottom:100%;margin-bottom:8px}.tooltip-box.top::after{bottom:100%;margin-bottom:-4px;border-color:#262626 transparent transparent transparent}.tooltip-box.bottom .box{top:100%;margin-top:8px}.tooltip-box.bottom::after{top:100%;margin-top:-4px;border-color:transparent transparent #262626 transparent}.tooltip-box.left .box{right:100%;margin-right:8px}.tooltip-box.left::after{right:100%;margin-right:-4px;border-color:transparent transparent transparent #262626}.tooltip-box.right .box{left:100%;margin-left:8px}.tooltip-box.right::after{left:100%;margin-left:-4px;border-color:transparent #262626 transparent transparent}.tooltip-box.top.center .box,.tooltip-box.bottom.center .box{left:50%;transform:translateX(-50%)}.tooltip-box.top.center::after,.tooltip-box.bottom.center::after{left:50%;transform:translateX(-50%)}.tooltip-box.top.start .box,.tooltip-box.bottom.start .box{left:0}.tooltip-box.top.start::after,.tooltip-box.bottom.start::after{left:8px}.tooltip-box.top.end .box,.tooltip-box.bottom.end .box{right:0}.tooltip-box.top.end::after,.tooltip-box.bottom.end::after{right:8px}.tooltip-box.left.center .box,.tooltip-box.right.center .box{top:50%;transform:translateY(-50%)}.tooltip-box.left.center::after,.tooltip-box.right.center::after{top:50%;transform:translateY(-50%)}.tooltip-box.left.start .box,.tooltip-box.right.start .box{top:0}.tooltip-box.left.start::after,.tooltip-box.right.start::after{top:4px}.tooltip-box.left.end .box,.tooltip-box.right.end .box{bottom:0}.tooltip-box.left.end::after,.tooltip-box.right.end::after{bottom:4px}.tooltip-box a{color:var(--bcm-color-grey-1)}";
|
|
7643
|
-
|
|
7644
|
-
const BcmTooltipBox = class {
|
|
7645
|
-
constructor(hostRef) {
|
|
7646
|
-
registerInstance(this, hostRef);
|
|
7647
|
-
this.hidden = false;
|
|
7648
|
-
}
|
|
7649
|
-
connectedCallback() { }
|
|
7650
|
-
disconnectedCallback() { }
|
|
7651
|
-
componentWillLoad() { }
|
|
7652
|
-
componentDidLoad() { }
|
|
7653
|
-
componentWillRender() { }
|
|
7654
|
-
componentDidRender() { }
|
|
7655
|
-
componentWillUpdate() { }
|
|
7656
|
-
componentDidUpdate() { }
|
|
7657
|
-
async openBox(open) {
|
|
7658
|
-
this.open = open;
|
|
7659
|
-
}
|
|
7660
|
-
render() {
|
|
7661
|
-
const classes = classnames('tooltip-box', this.open, this.placement);
|
|
7662
|
-
const boxClasses = classnames('box');
|
|
7663
|
-
const hostClasses = classnames(this.hidden ? 'hidden' : null);
|
|
7664
|
-
return (h(Host, { class: hostClasses }, h("div", { class: classes }, h("div", { class: boxClasses, innerHTML: this.message }))));
|
|
7665
|
-
}
|
|
7666
|
-
get el() { return getElement(this); }
|
|
7667
|
-
};
|
|
7668
|
-
BcmTooltipBox.style = tooltipBoxCss;
|
|
7669
|
-
|
|
7670
|
-
export { BcmButton as bcm_button, BcmCheckbox as bcm_checkbox, BcmCheckboxGroup as bcm_checkbox_group, BcmForm as bcm_form, BcmIcon as bcm_icon, BcmInput as bcm_input, BcmLabel as bcm_label, BcmSwitch as bcm_switch, BcmTextarea as bcm_textarea, BcmTooltip as bcm_tooltip, BcmTooltipBox as bcm_tooltip_box };
|
|
5400
|
+
export { BcmIcon as bcm_icon };
|