bromcom-ui 2.7.23-0 → 2.7.23-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bromcom-ui/bromcom-ui.esm.js +1 -1
- package/dist/bromcom-ui/p-09d5a379.entry.js +5 -0
- package/dist/bromcom-ui/p-0c840479.entry.js +5 -0
- package/dist/bromcom-ui/p-0e65ba4e.entry.js +5 -0
- package/dist/bromcom-ui/{p-104a53f4.entry.js → p-1ed03d82.entry.js} +1 -1
- package/dist/bromcom-ui/p-21260645.js +11 -0
- package/dist/bromcom-ui/p-26482c36.entry.js +5 -0
- package/dist/bromcom-ui/p-30a0df61.entry.js +5 -0
- package/dist/bromcom-ui/p-3a0627d6.js +5 -0
- package/dist/bromcom-ui/{p-fd509fc7.entry.js → p-3a18ac56.entry.js} +1 -1
- package/dist/bromcom-ui/p-3c30d4d9.entry.js +5 -0
- package/dist/bromcom-ui/p-3de14529.entry.js +5 -0
- package/dist/bromcom-ui/{p-ec84b668.js → p-492f79c5.js} +1 -1
- package/dist/bromcom-ui/p-4b282fae.js +5 -0
- package/dist/bromcom-ui/p-4cacbecc.entry.js +5 -0
- package/dist/bromcom-ui/p-4dc6cb10.entry.js +5 -0
- package/dist/bromcom-ui/p-52ffbce1.entry.js +5 -0
- package/dist/bromcom-ui/{p-04a35e6e.entry.js → p-564a4bcf.entry.js} +1 -1
- package/dist/bromcom-ui/p-59c64f1e.entry.js +5 -0
- package/dist/bromcom-ui/p-5aa98c00.entry.js +5 -0
- package/dist/bromcom-ui/p-5b1fe30d.js +5 -0
- package/dist/bromcom-ui/p-640bdbfe.entry.js +5 -0
- package/dist/bromcom-ui/p-68757684.entry.js +5 -0
- package/dist/bromcom-ui/p-6fa38458.entry.js +5 -0
- package/dist/bromcom-ui/{p-9f2678ff.js → p-74d4721e.js} +1 -1
- package/dist/bromcom-ui/p-751e67ae.entry.js +5 -0
- package/dist/bromcom-ui/{p-85a413b7.entry.js → p-75935aa1.entry.js} +1 -1
- package/dist/bromcom-ui/p-78a5b566.entry.js +5 -0
- package/dist/bromcom-ui/p-79cf7a7f.entry.js +5 -0
- package/dist/bromcom-ui/{p-3f0ba719.entry.js → p-7c229289.entry.js} +1 -1
- package/dist/bromcom-ui/p-82433894.entry.js +5 -0
- package/dist/bromcom-ui/p-84c2fbb7.entry.js +5 -0
- package/dist/bromcom-ui/{p-a8ea0995.entry.js → p-8f80435c.entry.js} +1 -1
- package/dist/bromcom-ui/{p-54311536.js → p-8f891f59.js} +1 -1
- package/dist/bromcom-ui/p-8f8b734b.entry.js +5 -0
- package/dist/bromcom-ui/p-96b85605.entry.js +5 -0
- package/dist/bromcom-ui/{p-372b6929.js → p-97af1110.js} +1 -1
- package/dist/bromcom-ui/p-a55fa840.entry.js +5 -0
- package/dist/bromcom-ui/p-a6c5d57e.entry.js +5 -0
- package/dist/bromcom-ui/p-a72c4382.entry.js +5 -0
- package/dist/bromcom-ui/p-b84d36ec.entry.js +5 -0
- package/dist/bromcom-ui/p-bf575256.js +5 -0
- package/dist/bromcom-ui/p-c67b182a.entry.js +5 -0
- package/dist/bromcom-ui/p-ca8302ae.entry.js +5 -0
- package/dist/bromcom-ui/p-d0cb4ea4.entry.js +5 -0
- package/dist/bromcom-ui/{p-a3d86b62.entry.js → p-d5f62fea.entry.js} +1 -1
- package/dist/bromcom-ui/p-da876901.entry.js +5 -0
- package/dist/bromcom-ui/p-dacdb214.entry.js +5 -0
- package/dist/bromcom-ui/p-e19790cc.entry.js +5 -0
- package/dist/bromcom-ui/p-e4fd5844.entry.js +5 -0
- package/dist/bromcom-ui/p-e50904fc.entry.js +5 -0
- package/dist/{cjs/bcm-form-group.cjs.entry.js → bromcom-ui/p-e7672c8d.entry.js} +1 -26
- package/dist/bromcom-ui/p-f0395f5a.entry.js +5 -0
- package/dist/bromcom-ui/{p-0def73f1.entry.js → p-f3f94eec.entry.js} +1 -1
- package/dist/bromcom-ui/p-f77107d8.entry.js +5 -0
- package/dist/bromcom-ui/p-f8ddaa35.entry.js +5 -0
- package/package.json +1 -1
- package/dist/bromcom-ui/p-01dc2270.entry.js +0 -5
- package/dist/bromcom-ui/p-08629997.entry.js +0 -5
- package/dist/bromcom-ui/p-0ea84f4b.entry.js +0 -5
- package/dist/bromcom-ui/p-11f0f76f.entry.js +0 -5
- package/dist/bromcom-ui/p-14d3e86d.entry.js +0 -5
- package/dist/bromcom-ui/p-17391b09.entry.js +0 -5
- package/dist/bromcom-ui/p-2315f389.entry.js +0 -5
- package/dist/bromcom-ui/p-23e9049b.entry.js +0 -5
- package/dist/bromcom-ui/p-289cac1d.entry.js +0 -5
- package/dist/bromcom-ui/p-2fb69387.entry.js +0 -5
- package/dist/bromcom-ui/p-3b0ecb63.entry.js +0 -5
- package/dist/bromcom-ui/p-3c89bea0.entry.js +0 -5
- package/dist/bromcom-ui/p-3e755638.entry.js +0 -5
- package/dist/bromcom-ui/p-4a300d69.js +0 -5
- package/dist/bromcom-ui/p-4e9bbb2c.entry.js +0 -5
- package/dist/bromcom-ui/p-530fe66e.entry.js +0 -5
- package/dist/bromcom-ui/p-534d1564.entry.js +0 -5
- package/dist/bromcom-ui/p-626a65e9.js +0 -5
- package/dist/bromcom-ui/p-6751ac6c.entry.js +0 -5
- package/dist/bromcom-ui/p-68ee093f.entry.js +0 -5
- package/dist/bromcom-ui/p-6b6db5fd.entry.js +0 -5
- package/dist/bromcom-ui/p-6f1f904f.entry.js +0 -5
- package/dist/bromcom-ui/p-72319740.entry.js +0 -5
- package/dist/bromcom-ui/p-74a966cd.entry.js +0 -5
- package/dist/bromcom-ui/p-7d8dd5e1.entry.js +0 -5
- package/dist/bromcom-ui/p-7f159c03.entry.js +0 -5
- package/dist/bromcom-ui/p-88570697.entry.js +0 -5
- package/dist/bromcom-ui/p-8af13df0.entry.js +0 -5
- package/dist/bromcom-ui/p-8f44fd30.entry.js +0 -5
- package/dist/bromcom-ui/p-93c6ae9a.entry.js +0 -5
- package/dist/bromcom-ui/p-94ee9201.entry.js +0 -5
- package/dist/bromcom-ui/p-97b4df53.entry.js +0 -5
- package/dist/bromcom-ui/p-ac1db3e8.js +0 -5
- package/dist/bromcom-ui/p-ace2e92f.js +0 -5
- package/dist/bromcom-ui/p-af4b55d4.js +0 -11
- package/dist/bromcom-ui/p-b6c3153d.entry.js +0 -5
- package/dist/bromcom-ui/p-bc29d9e4.entry.js +0 -5
- package/dist/bromcom-ui/p-bcf914ee.entry.js +0 -5
- package/dist/bromcom-ui/p-bd37254a.js +0 -5
- package/dist/bromcom-ui/p-be0d39a5.entry.js +0 -5
- package/dist/bromcom-ui/p-c3275d09.entry.js +0 -5
- package/dist/bromcom-ui/p-c46bd121.entry.js +0 -5
- package/dist/bromcom-ui/p-cc56b821.entry.js +0 -5
- package/dist/bromcom-ui/p-cdf2a73b.entry.js +0 -5
- package/dist/bromcom-ui/p-d81a006e.entry.js +0 -5
- package/dist/bromcom-ui/p-de7b0fe7.js +0 -5
- package/dist/bromcom-ui/p-e0d9de16.js +0 -5
- package/dist/bromcom-ui/p-e4fe2b3f.js +0 -5
- package/dist/bromcom-ui/p-e5217003.entry.js +0 -5
- package/dist/bromcom-ui/p-e67c2435.entry.js +0 -5
- package/dist/bromcom-ui/p-e81541e2.entry.js +0 -5
- package/dist/bromcom-ui/p-eb91b96a.entry.js +0 -5
- package/dist/bromcom-ui/p-ebc832c7.entry.js +0 -5
- package/dist/bromcom-ui/p-ec105e45.entry.js +0 -5
- package/dist/bromcom-ui/p-ed78a192.entry.js +0 -5
- package/dist/bromcom-ui/p-eef50ebf.js +0 -5
- package/dist/bromcom-ui/p-f129846d.entry.js +0 -5
- package/dist/bromcom-ui/p-f3ddd992.entry.js +0 -5
- package/dist/bromcom-ui/p-f6e7c76e.js +0 -5
- package/dist/bromcom-ui/p-fa0f8e51.entry.js +0 -5
- package/dist/bromcom-ui/p-fab4465c.entry.js +0 -5
- package/dist/cjs/_commonjsHelpers-3d2989e8.js +0 -24
- package/dist/cjs/bcm-662d70d8.js +0 -448
- package/dist/cjs/bcm-accordion.cjs.entry.js +0 -85
- package/dist/cjs/bcm-action-buttons_3.cjs.entry.js +0 -133
- package/dist/cjs/bcm-alert.cjs.entry.js +0 -108
- package/dist/cjs/bcm-attendance.cjs.entry.js +0 -50
- package/dist/cjs/bcm-autocomplete.cjs.entry.js +0 -141
- package/dist/cjs/bcm-avatar_2.cjs.entry.js +0 -141
- package/dist/cjs/bcm-breadcrumb.cjs.entry.js +0 -53
- package/dist/cjs/bcm-button-group.cjs.entry.js +0 -102
- package/dist/cjs/bcm-button_7.cjs.entry.js +0 -2827
- package/dist/cjs/bcm-card.cjs.entry.js +0 -76
- package/dist/cjs/bcm-checkbox-group.cjs.entry.js +0 -395
- package/dist/cjs/bcm-checkbox-lite_8.cjs.entry.js +0 -2467
- package/dist/cjs/bcm-checkbox.cjs.entry.js +0 -165
- package/dist/cjs/bcm-chip.cjs.entry.js +0 -70
- package/dist/cjs/bcm-collapse-group.cjs.entry.js +0 -57
- package/dist/cjs/bcm-collapse.cjs.entry.js +0 -56
- package/dist/cjs/bcm-colorpicker.cjs.entry.js +0 -419
- package/dist/cjs/bcm-date-picker.cjs.entry.js +0 -155
- package/dist/cjs/bcm-datetime-picker.cjs.entry.js +0 -1432
- package/dist/cjs/bcm-default.cjs.entry.js +0 -40
- package/dist/cjs/bcm-drawer.cjs.entry.js +0 -101
- package/dist/cjs/bcm-dropdown.cjs.entry.js +0 -217
- package/dist/cjs/bcm-error-layout.cjs.entry.js +0 -64
- package/dist/cjs/bcm-expansion-panel.cjs.entry.js +0 -127
- package/dist/cjs/bcm-form-2.cjs.entry.js +0 -205
- package/dist/cjs/bcm-input.cjs.entry.js +0 -323
- package/dist/cjs/bcm-label_3.cjs.entry.js +0 -198
- package/dist/cjs/bcm-link.cjs.entry.js +0 -47
- package/dist/cjs/bcm-menu.cjs.entry.js +0 -201
- package/dist/cjs/bcm-message.cjs.entry.js +0 -85
- package/dist/cjs/bcm-modal.cjs.entry.js +0 -137
- package/dist/cjs/bcm-notification.cjs.entry.js +0 -89
- package/dist/cjs/bcm-old-input.cjs.entry.js +0 -383
- package/dist/cjs/bcm-old-tag_2.cjs.entry.js +0 -143
- package/dist/cjs/bcm-popconfirm-box.cjs.entry.js +0 -109
- package/dist/cjs/bcm-popconfirm.cjs.entry.js +0 -102
- package/dist/cjs/bcm-popover-box.cjs.entry.js +0 -130
- package/dist/cjs/bcm-popover.cjs.entry.js +0 -100
- package/dist/cjs/bcm-progress.cjs.entry.js +0 -160
- package/dist/cjs/bcm-radio-group.cjs.entry.js +0 -253
- package/dist/cjs/bcm-radio.cjs.entry.js +0 -89
- package/dist/cjs/bcm-range.cjs.entry.js +0 -175
- package/dist/cjs/bcm-result.cjs.entry.js +0 -65
- package/dist/cjs/bcm-select-group.cjs.entry.js +0 -31
- package/dist/cjs/bcm-select-option.cjs.entry.js +0 -37
- package/dist/cjs/bcm-select.cjs.entry.js +0 -1167
- package/dist/cjs/bcm-step.cjs.entry.js +0 -93
- package/dist/cjs/bcm-stepper.cjs.entry.js +0 -211
- package/dist/cjs/bcm-student-card.cjs.entry.js +0 -48
- package/dist/cjs/bcm-switch.cjs.entry.js +0 -125
- package/dist/cjs/bcm-tab-pane.cjs.entry.js +0 -56
- package/dist/cjs/bcm-tab.cjs.entry.js +0 -75
- package/dist/cjs/bcm-table.cjs.entry.js +0 -64
- package/dist/cjs/bcm-tabs-content.cjs.entry.js +0 -48
- package/dist/cjs/bcm-tabs.cjs.entry.js +0 -376
- package/dist/cjs/bcm-tag.cjs.entry.js +0 -113
- package/dist/cjs/bcm-textarea.cjs.entry.js +0 -134
- package/dist/cjs/bcm-time-picker.cjs.entry.js +0 -123
- package/dist/cjs/bcm-timeline-item.cjs.entry.js +0 -41
- package/dist/cjs/bcm-timeline.cjs.entry.js +0 -59
- package/dist/cjs/bcm-treeview-group.cjs.entry.js +0 -23
- package/dist/cjs/bromcom-ui.cjs.js +0 -24
- package/dist/cjs/caption-template-bd235000.js +0 -34
- package/dist/cjs/color-helper-1ac6ed4d.js +0 -43
- package/dist/cjs/colors-56282b00.js +0 -224
- package/dist/cjs/datetime-helper-eaf4fadb.js +0 -11
- package/dist/cjs/element-dragger-a8562f82.js +0 -279
- package/dist/cjs/generate-94d96c1b.js +0 -182
- package/dist/cjs/global-0977baef.js +0 -38
- package/dist/cjs/index-53637125.js +0 -1864
- package/dist/cjs/index-78c4b134.js +0 -64
- package/dist/cjs/index-89682d55.js +0 -193
- package/dist/cjs/index.cjs.js +0 -6
- package/dist/cjs/input-template-216ca09e.js +0 -99
- package/dist/cjs/is-load-decorator-20a4687b.js +0 -56
- package/dist/cjs/json-parse-decarator-6300e515.js +0 -40
- package/dist/cjs/label-template-fab08e13.js +0 -23
- package/dist/cjs/loader.cjs.js +0 -26
- package/dist/cjs/number-helper-78263c8e.js +0 -20
- package/dist/cjs/popover-placement-c1b5276c.js +0 -98
- package/dist/cjs/property-decorators-6f740807.js +0 -21
- package/dist/cjs/slot-template-0ee3c054.js +0 -15
- package/dist/cjs/stepper-states-7b826859.js +0 -83
- package/dist/cjs/string-helper-4f680856.js +0 -134
- package/dist/cjs/types-05047466.js +0 -32
- package/dist/cjs/utils-fc077139.js +0 -131
- package/dist/cjs/validators-267d9753.js +0 -33
- package/dist/collection/collection-manifest.json +0 -92
- package/dist/collection/components/atoms/avatar/avatar.css +0 -448
- package/dist/collection/components/atoms/avatar/avatar.js +0 -261
- package/dist/collection/components/atoms/badge/badge.css +0 -481
- package/dist/collection/components/atoms/badge/badge.js +0 -215
- package/dist/collection/components/atoms/button/button.css +0 -598
- package/dist/collection/components/atoms/button/button.js +0 -500
- package/dist/collection/components/atoms/button/types.js +0 -170
- package/dist/collection/components/atoms/divider/divider.css +0 -142
- package/dist/collection/components/atoms/divider/divider.js +0 -72
- package/dist/collection/components/atoms/icon/icon.css +0 -127
- package/dist/collection/components/atoms/icon/icon.js +0 -59
- package/dist/collection/components/atoms/label/label.css +0 -408
- package/dist/collection/components/atoms/label/label.js +0 -206
- package/dist/collection/components/atoms/link/link.css +0 -419
- package/dist/collection/components/atoms/link/link.js +0 -165
- package/dist/collection/components/atoms/old-tag/old-tag.css +0 -305
- package/dist/collection/components/atoms/old-tag/old-tag.js +0 -315
- package/dist/collection/components/atoms/old-tag/types.js +0 -30
- package/dist/collection/components/atoms/states/button.states.js +0 -31
- package/dist/collection/components/atoms/tag/tag.js +0 -324
- package/dist/collection/components/atoms/tag/types.js +0 -30
- package/dist/collection/components/atoms/text/text.css +0 -429
- package/dist/collection/components/atoms/text/text.js +0 -148
- package/dist/collection/components/data-table/table.css +0 -130
- package/dist/collection/components/data-table/table.js +0 -82
- package/dist/collection/components/default/default.css +0 -127
- package/dist/collection/components/default/default.js +0 -53
- package/dist/collection/components/molecules/accordion/accordion.css +0 -127
- package/dist/collection/components/molecules/accordion/accordion.js +0 -129
- package/dist/collection/components/molecules/alert/alert.css +0 -191
- package/dist/collection/components/molecules/alert/alert.js +0 -294
- package/dist/collection/components/molecules/alert/types.js +0 -23
- package/dist/collection/components/molecules/breadcrumb/breadcrumb.css +0 -201
- package/dist/collection/components/molecules/breadcrumb/breadcrumb.js +0 -145
- package/dist/collection/components/molecules/breadcrumb/types.js +0 -5
- package/dist/collection/components/molecules/card/card.css +0 -408
- package/dist/collection/components/molecules/card/card.js +0 -128
- package/dist/collection/components/molecules/checkbox/checkbox-lite.js +0 -211
- package/dist/collection/components/molecules/checkbox/checkbox.css +0 -1280
- package/dist/collection/components/molecules/checkbox/checkbox.js +0 -678
- package/dist/collection/components/molecules/checkbox/group.css +0 -156
- package/dist/collection/components/molecules/checkbox/group.js +0 -769
- package/dist/collection/components/molecules/collapse/collapse.css +0 -174
- package/dist/collection/components/molecules/collapse/collapse.js +0 -161
- package/dist/collection/components/molecules/collapse/group.js +0 -128
- package/dist/collection/components/molecules/drawer/drawer.css +0 -496
- package/dist/collection/components/molecules/drawer/drawer.js +0 -271
- package/dist/collection/components/molecules/dropdown/dropdown.css +0 -419
- package/dist/collection/components/molecules/dropdown/dropdown.js +0 -760
- package/dist/collection/components/molecules/empty/empty.css +0 -414
- package/dist/collection/components/molecules/empty/empty.js +0 -147
- 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 -21
- package/dist/collection/components/molecules/error-layout/error-layout.css +0 -396
- package/dist/collection/components/molecules/error-layout/error-layout.js +0 -167
- package/dist/collection/components/molecules/error-layout/types.js +0 -5
- package/dist/collection/components/molecules/expansion-panel/expansion-panel.css +0 -474
- package/dist/collection/components/molecules/expansion-panel/expansion-panel.js +0 -322
- package/dist/collection/components/molecules/input/input.css +0 -1208
- package/dist/collection/components/molecules/input/input.js +0 -1170
- package/dist/collection/components/molecules/input/types.js +0 -17
- package/dist/collection/components/molecules/item/item.css +0 -446
- package/dist/collection/components/molecules/item/item.js +0 -141
- package/dist/collection/components/molecules/items/items.js +0 -74
- package/dist/collection/components/molecules/message/message.css +0 -165
- package/dist/collection/components/molecules/message/message.js +0 -212
- package/dist/collection/components/molecules/message/types.js +0 -14
- package/dist/collection/components/molecules/modal/modal.css +0 -526
- package/dist/collection/components/molecules/modal/modal.js +0 -379
- package/dist/collection/components/molecules/notification/notification.css +0 -183
- package/dist/collection/components/molecules/notification/notification.js +0 -234
- package/dist/collection/components/molecules/notification/types.js +0 -15
- package/dist/collection/components/molecules/old-input/old-input.css +0 -1360
- package/dist/collection/components/molecules/old-input/old-input.js +0 -1144
- package/dist/collection/components/molecules/old-input/types.js +0 -17
- package/dist/collection/components/molecules/popconfirm/popconfirm-box.css +0 -563
- package/dist/collection/components/molecules/popconfirm/popconfirm-box.js +0 -387
- package/dist/collection/components/molecules/popconfirm/popconfirm.css +0 -127
- package/dist/collection/components/molecules/popconfirm/popconfirm.js +0 -376
- package/dist/collection/components/molecules/popover/popover-box.css +0 -582
- package/dist/collection/components/molecules/popover/popover-box.js +0 -385
- package/dist/collection/components/molecules/popover/popover.css +0 -127
- package/dist/collection/components/molecules/popover/popover.js +0 -292
- package/dist/collection/components/molecules/progress/progress.css +0 -486
- package/dist/collection/components/molecules/progress/progress.js +0 -394
- package/dist/collection/components/molecules/progress/types.js +0 -28
- package/dist/collection/components/molecules/radio/group.css +0 -795
- package/dist/collection/components/molecules/radio/group.js +0 -642
- package/dist/collection/components/molecules/radio/radio.css +0 -1280
- package/dist/collection/components/molecules/radio/radio.js +0 -280
- package/dist/collection/components/molecules/radio/types.js +0 -30
- package/dist/collection/components/molecules/range/range.css +0 -570
- package/dist/collection/components/molecules/range/range.js +0 -462
- package/dist/collection/components/molecules/result/result.css +0 -164
- package/dist/collection/components/molecules/result/result.js +0 -133
- package/dist/collection/components/molecules/result/types.js +0 -22
- package/dist/collection/components/molecules/search/search.css +0 -131
- package/dist/collection/components/molecules/search/search.js +0 -486
- package/dist/collection/components/molecules/search-2/search-2.css +0 -1208
- package/dist/collection/components/molecules/search-2/search-2.js +0 -402
- package/dist/collection/components/molecules/select/group.css +0 -144
- package/dist/collection/components/molecules/select/group.js +0 -88
- package/dist/collection/components/molecules/select/option.css +0 -164
- package/dist/collection/components/molecules/select/option.js +0 -142
- package/dist/collection/components/molecules/select/select-box.css +0 -143
- package/dist/collection/components/molecules/select/select-box.js +0 -104
- package/dist/collection/components/molecules/select/select.css +0 -364
- package/dist/collection/components/molecules/select/select.js +0 -2217
- package/dist/collection/components/molecules/states/alert.states.js +0 -25
- package/dist/collection/components/molecules/states/checkbox-group.states.js +0 -199
- package/dist/collection/components/molecules/states/radio-group.states.js +0 -107
- package/dist/collection/components/molecules/states/search.states.js +0 -136
- package/dist/collection/components/molecules/states/stepper-states.js +0 -79
- package/dist/collection/components/molecules/stepper/step.js +0 -346
- package/dist/collection/components/molecules/stepper/stepper.css +0 -617
- package/dist/collection/components/molecules/stepper/stepper.js +0 -484
- package/dist/collection/components/molecules/switch/switch.css +0 -1272
- package/dist/collection/components/molecules/switch/switch.js +0 -706
- package/dist/collection/components/molecules/textarea/textarea.css +0 -1208
- package/dist/collection/components/molecules/textarea/textarea.js +0 -720
- package/dist/collection/components/molecules/textarea/types.js +0 -13
- package/dist/collection/components/molecules/timeline/timeline-item.css +0 -254
- package/dist/collection/components/molecules/timeline/timeline-item.js +0 -149
- package/dist/collection/components/molecules/timeline/timeline.css +0 -205
- package/dist/collection/components/molecules/timeline/timeline.js +0 -115
- package/dist/collection/components/molecules/tooltip/tooltip-box.css +0 -544
- package/dist/collection/components/molecules/tooltip/tooltip-box.js +0 -291
- package/dist/collection/components/molecules/tooltip/tooltip.css +0 -127
- package/dist/collection/components/molecules/tooltip/tooltip.js +0 -291
- package/dist/collection/components/organism/autocomplete/autocomplete.css +0 -168
- package/dist/collection/components/organism/autocomplete/autocomplete.js +0 -389
- package/dist/collection/components/organism/colorpicker/colorpicker.css +0 -313
- package/dist/collection/components/organism/colorpicker/colorpicker.js +0 -763
- 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 -141
- package/dist/collection/components/organism/date-picker/date-picker.js +0 -768
- package/dist/collection/components/organism/datetime-picker/datetime-picker.css +0 -1429
- package/dist/collection/components/organism/datetime-picker/datetime-picker.js +0 -2166
- package/dist/collection/components/organism/datetime-picker/types.js +0 -39
- package/dist/collection/components/organism/form/form-group.css +0 -131
- package/dist/collection/components/organism/form/form-group.js +0 -120
- package/dist/collection/components/organism/form/form.css +0 -132
- package/dist/collection/components/organism/form/form.js +0 -670
- package/dist/collection/components/organism/form-2/bcm-form-components.js +0 -26
- package/dist/collection/components/organism/form-2/form-2.css +0 -127
- package/dist/collection/components/organism/form-2/form-2.js +0 -328
- package/dist/collection/components/organism/list/list-key-control.js +0 -125
- package/dist/collection/components/organism/list/list-tag-control.js +0 -136
- package/dist/collection/components/organism/list/list.css +0 -2033
- package/dist/collection/components/organism/list/list.js +0 -1801
- package/dist/collection/components/organism/listbox/listbox-group.css +0 -139
- package/dist/collection/components/organism/listbox/listbox-group.js +0 -93
- package/dist/collection/components/organism/listbox/listbox-item.css +0 -269
- package/dist/collection/components/organism/listbox/listbox-item.js +0 -641
- package/dist/collection/components/organism/listbox/listbox.css +0 -365
- package/dist/collection/components/organism/listbox/listbox.js +0 -1989
- package/dist/collection/components/organism/listbox/types.js +0 -11
- package/dist/collection/components/organism/states/bcm-list2.states.js +0 -530
- package/dist/collection/components/organism/tabs/tab-pane.css +0 -142
- package/dist/collection/components/organism/tabs/tab-pane.js +0 -158
- package/dist/collection/components/organism/tabs/tab.css +0 -587
- package/dist/collection/components/organism/tabs/tab.js +0 -293
- package/dist/collection/components/organism/tabs/tabs-content.css +0 -136
- package/dist/collection/components/organism/tabs/tabs-content.js +0 -137
- package/dist/collection/components/organism/tabs/tabs.css +0 -212
- package/dist/collection/components/organism/tabs/tabs.js +0 -796
- package/dist/collection/components/organism/tabs/types.js +0 -30
- package/dist/collection/components/organism/time-picker/time-picker.css +0 -141
- package/dist/collection/components/organism/time-picker/time-picker.js +0 -615
- package/dist/collection/components/organism/treeview/treeview-group.css +0 -0
- package/dist/collection/components/organism/treeview/treeview-group.js +0 -18
- package/dist/collection/components/organism/treeview/treeview-item.css +0 -318
- package/dist/collection/components/organism/treeview/treeview-item.js +0 -977
- package/dist/collection/components/organism/treeview/treeview.css +0 -190
- package/dist/collection/components/organism/treeview/treeview.js +0 -1689
- package/dist/collection/components/organism/treeview/types.js +0 -11
- package/dist/collection/decorators/is-load-decorator.js +0 -51
- package/dist/collection/decorators/json-parse-decarator.js +0 -35
- package/dist/collection/decorators/property-decorators.js +0 -16
- package/dist/collection/global/components/_checkbox.css +0 -627
- package/dist/collection/global/global.js +0 -66
- package/dist/collection/global/variables/colors.js +0 -220
- package/dist/collection/helper/color-helper.js +0 -38
- package/dist/collection/helper/datetime-helper.js +0 -7
- package/dist/collection/helper/generate.js +0 -147
- package/dist/collection/helper/number-helper.js +0 -15
- package/dist/collection/helper/string-helper.js +0 -65
- package/dist/collection/helper/validators.js +0 -28
- package/dist/collection/index.js +0 -5
- package/dist/collection/models/abstract-classes/abstract-key-control.js +0 -97
- package/dist/collection/models/bcm-types.js +0 -5
- package/dist/collection/models/bcm.js +0 -466
- package/dist/collection/models/states/atoms/bcm-atoms-state.js +0 -5
- package/dist/collection/models/states/molecules/bcm-molecules-state.js +0 -5
- package/dist/collection/models/states/organisms/bcm-organisms-state.js +0 -5
- package/dist/collection/new-ds/components/action-buttons/action-buttons.css +0 -152
- package/dist/collection/new-ds/components/action-buttons/action-buttons.js +0 -61
- package/dist/collection/new-ds/components/attendance/attendance.css +0 -433
- package/dist/collection/new-ds/components/attendance/attendance.js +0 -85
- package/dist/collection/new-ds/components/button-group/button-group.css +0 -419
- package/dist/collection/new-ds/components/button-group/button-group.js +0 -235
- package/dist/collection/new-ds/components/chip/chip.css +0 -453
- package/dist/collection/new-ds/components/chip/chip.js +0 -187
- package/dist/collection/new-ds/components/menu/menu.css +0 -698
- package/dist/collection/new-ds/components/menu/menu.js +0 -509
- package/dist/collection/new-ds/components/student-card/student-card.css +0 -454
- package/dist/collection/new-ds/components/student-card/student-card.js +0 -152
- package/dist/collection/templates/button-template.js +0 -22
- package/dist/collection/templates/caption-template.js +0 -29
- package/dist/collection/templates/checkbox-group-template.js +0 -10
- package/dist/collection/templates/checkbox-template.js +0 -31
- package/dist/collection/templates/icon-template.js +0 -24
- package/dist/collection/templates/info-footer-template.js +0 -16
- package/dist/collection/templates/input-template.js +0 -81
- package/dist/collection/templates/label-template.js +0 -18
- package/dist/collection/templates/list-item-template.js +0 -58
- package/dist/collection/templates/list-template.js +0 -22
- package/dist/collection/templates/slot-template.js +0 -10
- package/dist/collection/templates/step-template.js +0 -26
- package/dist/collection/templates/tag-template.js +0 -45
- package/dist/collection/types/index.js +0 -5
- package/dist/collection/utils/element-dragger.js +0 -274
- package/dist/collection/utils/popover-placement.js +0 -96
- package/dist/collection/utils/utils.js +0 -223
- package/dist/collection/utils/validation.js +0 -47
- package/dist/esm/_commonjsHelpers-f805a026.js +0 -21
- package/dist/esm/bcm-accordion.entry.js +0 -81
- package/dist/esm/bcm-action-buttons_3.entry.js +0 -127
- package/dist/esm/bcm-alert.entry.js +0 -104
- package/dist/esm/bcm-attendance.entry.js +0 -46
- package/dist/esm/bcm-autocomplete.entry.js +0 -137
- package/dist/esm/bcm-avatar_2.entry.js +0 -136
- package/dist/esm/bcm-breadcrumb.entry.js +0 -49
- package/dist/esm/bcm-button-group.entry.js +0 -98
- package/dist/esm/bcm-button_7.entry.js +0 -2817
- package/dist/esm/bcm-card.entry.js +0 -72
- package/dist/esm/bcm-checkbox-group.entry.js +0 -391
- package/dist/esm/bcm-checkbox-lite_8.entry.js +0 -2456
- package/dist/esm/bcm-checkbox.entry.js +0 -161
- package/dist/esm/bcm-chip.entry.js +0 -66
- package/dist/esm/bcm-collapse-group.entry.js +0 -53
- package/dist/esm/bcm-collapse.entry.js +0 -52
- package/dist/esm/bcm-colorpicker.entry.js +0 -415
- package/dist/esm/bcm-date-picker.entry.js +0 -151
- package/dist/esm/bcm-datetime-picker.entry.js +0 -1428
- package/dist/esm/bcm-default.entry.js +0 -36
- package/dist/esm/bcm-drawer.entry.js +0 -97
- package/dist/esm/bcm-dropdown.entry.js +0 -213
- package/dist/esm/bcm-e046ec7a.js +0 -446
- package/dist/esm/bcm-error-layout.entry.js +0 -60
- package/dist/esm/bcm-expansion-panel.entry.js +0 -123
- package/dist/esm/bcm-form-2.entry.js +0 -201
- package/dist/esm/bcm-form-group.entry.js +0 -26
- package/dist/esm/bcm-input.entry.js +0 -319
- package/dist/esm/bcm-label_3.entry.js +0 -192
- package/dist/esm/bcm-link.entry.js +0 -43
- package/dist/esm/bcm-menu.entry.js +0 -197
- package/dist/esm/bcm-message.entry.js +0 -81
- package/dist/esm/bcm-modal.entry.js +0 -133
- package/dist/esm/bcm-notification.entry.js +0 -85
- package/dist/esm/bcm-old-input.entry.js +0 -379
- package/dist/esm/bcm-old-tag_2.entry.js +0 -138
- package/dist/esm/bcm-popconfirm-box.entry.js +0 -105
- package/dist/esm/bcm-popconfirm.entry.js +0 -98
- package/dist/esm/bcm-popover-box.entry.js +0 -126
- package/dist/esm/bcm-popover.entry.js +0 -96
- package/dist/esm/bcm-progress.entry.js +0 -156
- package/dist/esm/bcm-radio-group.entry.js +0 -249
- package/dist/esm/bcm-radio.entry.js +0 -85
- package/dist/esm/bcm-range.entry.js +0 -171
- package/dist/esm/bcm-result.entry.js +0 -61
- package/dist/esm/bcm-select-group.entry.js +0 -27
- package/dist/esm/bcm-select-option.entry.js +0 -33
- package/dist/esm/bcm-select.entry.js +0 -1163
- package/dist/esm/bcm-step.entry.js +0 -89
- package/dist/esm/bcm-stepper.entry.js +0 -207
- package/dist/esm/bcm-student-card.entry.js +0 -44
- package/dist/esm/bcm-switch.entry.js +0 -121
- package/dist/esm/bcm-tab-pane.entry.js +0 -52
- package/dist/esm/bcm-tab.entry.js +0 -71
- package/dist/esm/bcm-table.entry.js +0 -60
- package/dist/esm/bcm-tabs-content.entry.js +0 -44
- package/dist/esm/bcm-tabs.entry.js +0 -372
- package/dist/esm/bcm-tag.entry.js +0 -109
- package/dist/esm/bcm-textarea.entry.js +0 -130
- package/dist/esm/bcm-time-picker.entry.js +0 -119
- package/dist/esm/bcm-timeline-item.entry.js +0 -37
- package/dist/esm/bcm-timeline.entry.js +0 -55
- package/dist/esm/bcm-treeview-group.entry.js +0 -19
- package/dist/esm/bromcom-ui.js +0 -22
- package/dist/esm/caption-template-dac0e581.js +0 -32
- package/dist/esm/color-helper-f797b964.js +0 -41
- package/dist/esm/colors-1d7854ea.js +0 -222
- package/dist/esm/datetime-helper-df25808a.js +0 -9
- package/dist/esm/element-dragger-89bb52fd.js +0 -277
- package/dist/esm/generate-c173d211.js +0 -179
- package/dist/esm/global-7747dd78.js +0 -36
- package/dist/esm/index-61ad8f90.js +0 -191
- package/dist/esm/index-64896f16.js +0 -1833
- package/dist/esm/index-e193c9fe.js +0 -62
- package/dist/esm/index.js +0 -4
- package/dist/esm/input-template-e2ab2aee.js +0 -97
- package/dist/esm/is-load-decorator-39dac946.js +0 -54
- package/dist/esm/json-parse-decarator-e1620b31.js +0 -38
- package/dist/esm/label-template-2209f515.js +0 -21
- package/dist/esm/loader.js +0 -22
- package/dist/esm/number-helper-ff02b21e.js +0 -18
- 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/popover-placement-5d7a090b.js +0 -95
- package/dist/esm/property-decorators-dec4638c.js +0 -19
- package/dist/esm/slot-template-09f76e3f.js +0 -13
- package/dist/esm/stepper-states-fee3b4f4.js +0 -81
- package/dist/esm/string-helper-c0a44d3a.js +0 -132
- package/dist/esm/types-d1bc713d.js +0 -32
- package/dist/esm/utils-57652744.js +0 -123
- package/dist/esm/validators-33ffa1fa.js +0 -31
- package/dist/index.cjs.js +0 -1
- package/dist/index.js +0 -1
- package/dist/types/components/atoms/avatar/avatar.d.ts +0 -23
- package/dist/types/components/atoms/badge/badge.d.ts +0 -17
- package/dist/types/components/atoms/button/button.d.ts +0 -33
- package/dist/types/components/atoms/button/types.d.ts +0 -166
- package/dist/types/components/atoms/divider/divider.d.ts +0 -6
- package/dist/types/components/atoms/icon/icon.d.ts +0 -5
- package/dist/types/components/atoms/label/label.d.ts +0 -16
- package/dist/types/components/atoms/link/link.d.ts +0 -12
- package/dist/types/components/atoms/old-tag/old-tag.d.ts +0 -27
- package/dist/types/components/atoms/old-tag/types.d.ts +0 -29
- package/dist/types/components/atoms/states/button.states.d.ts +0 -7
- package/dist/types/components/atoms/tag/tag.d.ts +0 -24
- package/dist/types/components/atoms/tag/types.d.ts +0 -29
- package/dist/types/components/atoms/text/text.d.ts +0 -10
- package/dist/types/components/data-table/table.d.ts +0 -8
- package/dist/types/components/default/default.d.ts +0 -6
- package/dist/types/components/molecules/accordion/accordion.d.ts +0 -11
- package/dist/types/components/molecules/alert/alert.d.ts +0 -21
- package/dist/types/components/molecules/alert/types.d.ts +0 -25
- package/dist/types/components/molecules/breadcrumb/breadcrumb.d.ts +0 -14
- package/dist/types/components/molecules/breadcrumb/types.d.ts +0 -10
- package/dist/types/components/molecules/card/card.d.ts +0 -11
- package/dist/types/components/molecules/checkbox/checkbox-lite.d.ts +0 -14
- package/dist/types/components/molecules/checkbox/checkbox.d.ts +0 -56
- package/dist/types/components/molecules/checkbox/group.d.ts +0 -56
- package/dist/types/components/molecules/collapse/collapse.d.ts +0 -12
- package/dist/types/components/molecules/collapse/group.d.ts +0 -15
- package/dist/types/components/molecules/drawer/drawer.d.ts +0 -21
- package/dist/types/components/molecules/dropdown/dropdown.d.ts +0 -52
- package/dist/types/components/molecules/empty/empty.d.ts +0 -29
- package/dist/types/components/molecules/empty/types.d.ts +0 -19
- package/dist/types/components/molecules/error-layout/error-layout.d.ts +0 -25
- package/dist/types/components/molecules/error-layout/types.d.ts +0 -4
- package/dist/types/components/molecules/expansion-panel/expansion-panel.d.ts +0 -31
- package/dist/types/components/molecules/input/input.d.ts +0 -82
- package/dist/types/components/molecules/input/types.d.ts +0 -13
- package/dist/types/components/molecules/item/item.d.ts +0 -13
- package/dist/types/components/molecules/items/items.d.ts +0 -10
- package/dist/types/components/molecules/message/message.d.ts +0 -32
- package/dist/types/components/molecules/message/types.d.ts +0 -13
- package/dist/types/components/molecules/modal/modal.d.ts +0 -26
- package/dist/types/components/molecules/notification/notification.d.ts +0 -42
- package/dist/types/components/molecules/notification/types.d.ts +0 -14
- package/dist/types/components/molecules/old-input/old-input.d.ts +0 -79
- package/dist/types/components/molecules/old-input/types.d.ts +0 -13
- package/dist/types/components/molecules/popconfirm/popconfirm-box.d.ts +0 -29
- package/dist/types/components/molecules/popconfirm/popconfirm.d.ts +0 -28
- package/dist/types/components/molecules/popover/popover-box.d.ts +0 -24
- package/dist/types/components/molecules/popover/popover.d.ts +0 -22
- package/dist/types/components/molecules/progress/progress.d.ts +0 -25
- package/dist/types/components/molecules/progress/types.d.ts +0 -14
- package/dist/types/components/molecules/radio/group.d.ts +0 -54
- package/dist/types/components/molecules/radio/radio.d.ts +0 -20
- package/dist/types/components/molecules/radio/types.d.ts +0 -29
- package/dist/types/components/molecules/range/range.d.ts +0 -36
- package/dist/types/components/molecules/result/result.d.ts +0 -13
- package/dist/types/components/molecules/result/types.d.ts +0 -19
- package/dist/types/components/molecules/search/search.d.ts +0 -32
- package/dist/types/components/molecules/search-2/search-2.d.ts +0 -35
- package/dist/types/components/molecules/select/group.d.ts +0 -6
- package/dist/types/components/molecules/select/option.d.ts +0 -10
- package/dist/types/components/molecules/select/select-box.d.ts +0 -15
- package/dist/types/components/molecules/select/select.d.ts +0 -131
- package/dist/types/components/molecules/states/alert.states.d.ts +0 -7
- package/dist/types/components/molecules/states/checkbox-group.states.d.ts +0 -53
- package/dist/types/components/molecules/states/radio-group.states.d.ts +0 -48
- package/dist/types/components/molecules/states/search.states.d.ts +0 -14
- package/dist/types/components/molecules/states/stepper-states.d.ts +0 -13
- package/dist/types/components/molecules/stepper/step.d.ts +0 -25
- package/dist/types/components/molecules/stepper/stepper.d.ts +0 -34
- package/dist/types/components/molecules/switch/switch.d.ts +0 -46
- package/dist/types/components/molecules/textarea/textarea.d.ts +0 -52
- package/dist/types/components/molecules/textarea/types.d.ts +0 -9
- package/dist/types/components/molecules/timeline/timeline-item.d.ts +0 -16
- package/dist/types/components/molecules/timeline/timeline.d.ts +0 -25
- package/dist/types/components/molecules/tooltip/tooltip-box.d.ts +0 -22
- package/dist/types/components/molecules/tooltip/tooltip.d.ts +0 -23
- package/dist/types/components/organism/autocomplete/autocomplete.d.ts +0 -31
- package/dist/types/components/organism/colorpicker/colorpicker.d.ts +0 -176
- package/dist/types/components/organism/date-picker/date-picker.d.ts +0 -76
- package/dist/types/components/organism/datetime-picker/datetime-picker.d.ts +0 -438
- package/dist/types/components/organism/datetime-picker/types.d.ts +0 -54
- package/dist/types/components/organism/form/form-group.d.ts +0 -9
- package/dist/types/components/organism/form/form.d.ts +0 -34
- package/dist/types/components/organism/form-2/bcm-form-components.d.ts +0 -2
- package/dist/types/components/organism/form-2/form-2.d.ts +0 -25
- package/dist/types/components/organism/list/list-key-control.d.ts +0 -18
- package/dist/types/components/organism/list/list-tag-control.d.ts +0 -17
- package/dist/types/components/organism/list/list.d.ts +0 -136
- package/dist/types/components/organism/listbox/listbox-group.d.ts +0 -7
- package/dist/types/components/organism/listbox/listbox-item.d.ts +0 -58
- package/dist/types/components/organism/listbox/listbox.d.ts +0 -152
- package/dist/types/components/organism/listbox/types.d.ts +0 -11
- package/dist/types/components/organism/states/bcm-list2.states.d.ts +0 -28
- package/dist/types/components/organism/tabs/tab-pane.d.ts +0 -19
- package/dist/types/components/organism/tabs/tab.d.ts +0 -36
- package/dist/types/components/organism/tabs/tabs-content.d.ts +0 -18
- package/dist/types/components/organism/tabs/tabs.d.ts +0 -112
- package/dist/types/components/organism/tabs/types.d.ts +0 -39
- package/dist/types/components/organism/time-picker/time-picker.d.ts +0 -68
- package/dist/types/components/organism/treeview/treeview-group.d.ts +0 -3
- package/dist/types/components/organism/treeview/treeview-item.d.ts +0 -119
- package/dist/types/components/organism/treeview/treeview.d.ts +0 -181
- package/dist/types/components/organism/treeview/types.d.ts +0 -11
- package/dist/types/components.d.ts +0 -3463
- package/dist/types/decorators/is-load-decorator.d.ts +0 -7
- package/dist/types/decorators/json-parse-decarator.d.ts +0 -4
- package/dist/types/decorators/property-decorators.d.ts +0 -4
- package/dist/types/global/variables/colors.d.ts +0 -217
- package/dist/types/helper/color-helper.d.ts +0 -10
- package/dist/types/helper/datetime-helper.d.ts +0 -3
- package/dist/types/helper/generate.d.ts +0 -19
- package/dist/types/helper/number-helper.d.ts +0 -10
- package/dist/types/helper/string-helper.d.ts +0 -27
- package/dist/types/helper/validators.d.ts +0 -10
- package/dist/types/index.d.ts +0 -1
- package/dist/types/models/abstract-classes/abstract-key-control.d.ts +0 -31
- package/dist/types/models/bcm-types.d.ts +0 -21
- package/dist/types/models/bcm.d.ts +0 -456
- package/dist/types/models/states/atoms/bcm-atoms-state.d.ts +0 -34
- package/dist/types/models/states/molecules/bcm-molecules-state.d.ts +0 -90
- package/dist/types/models/states/organisms/bcm-organisms-state.d.ts +0 -78
- package/dist/types/new-ds/components/action-buttons/action-buttons.d.ts +0 -6
- package/dist/types/new-ds/components/attendance/attendance.d.ts +0 -7
- package/dist/types/new-ds/components/button-group/button-group.d.ts +0 -21
- package/dist/types/new-ds/components/chip/chip.d.ts +0 -24
- package/dist/types/new-ds/components/menu/menu.d.ts +0 -38
- package/dist/types/new-ds/components/student-card/student-card.d.ts +0 -10
- package/dist/types/stencil-public-runtime.d.ts +0 -1565
- package/dist/types/templates/button-template.d.ts +0 -18
- package/dist/types/templates/caption-template.d.ts +0 -14
- package/dist/types/templates/checkbox-group-template.d.ts +0 -10
- package/dist/types/templates/checkbox-template.d.ts +0 -13
- package/dist/types/templates/icon-template.d.ts +0 -7
- package/dist/types/templates/info-footer-template.d.ts +0 -10
- package/dist/types/templates/input-template.d.ts +0 -34
- package/dist/types/templates/label-template.d.ts +0 -12
- package/dist/types/templates/list-item-template.d.ts +0 -13
- package/dist/types/templates/list-template.d.ts +0 -27
- package/dist/types/templates/slot-template.d.ts +0 -8
- package/dist/types/templates/step-template.d.ts +0 -17
- package/dist/types/templates/tag-template.d.ts +0 -21
- package/dist/types/types/index.d.ts +0 -12
- package/dist/types/utils/element-dragger.d.ts +0 -146
- package/dist/types/utils/popover-placement.d.ts +0 -3
- package/dist/types/utils/utils.d.ts +0 -55
- package/dist/types/utils/validation.d.ts +0 -19
|
@@ -1,2217 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built with Stencil
|
|
3
|
-
* Copyright (c) Bromcom.
|
|
4
|
-
*/
|
|
5
|
-
import { Component, Element, h, Prop, State, Listen, Event, Watch, Host, Method } from '@stencil/core';
|
|
6
|
-
import cs from 'classnames';
|
|
7
|
-
import { StringHelper } from '../../../helper/string-helper';
|
|
8
|
-
import { dropInComponent } from '../../../utils/utils';
|
|
9
|
-
/**
|
|
10
|
-
* @desc
|
|
11
|
-
* @param str
|
|
12
|
-
*/
|
|
13
|
-
const lowercase = (str) => str.toLowerCase();
|
|
14
|
-
const delay = ms => new Promise(res => setTimeout(res, ms));
|
|
15
|
-
export class BcmSelect {
|
|
16
|
-
constructor() {
|
|
17
|
-
this.isRendered = false;
|
|
18
|
-
this.cleaned = false;
|
|
19
|
-
this.objectMapping = {
|
|
20
|
-
'value': "value",
|
|
21
|
-
'id': "id",
|
|
22
|
-
'text': "text",
|
|
23
|
-
'icon': "icon",
|
|
24
|
-
'avatar': "avatar",
|
|
25
|
-
'avatarName': "avatarName",
|
|
26
|
-
'avatarImage': "avatarImage",
|
|
27
|
-
'secondaryText': "secondaryText",
|
|
28
|
-
'tooltipText': "tooltipText",
|
|
29
|
-
'selected': "selected",
|
|
30
|
-
'checked': "checked",
|
|
31
|
-
'disabled': "disabled",
|
|
32
|
-
};
|
|
33
|
-
this.firstRun = true;
|
|
34
|
-
this.currentItemWidth = 0;
|
|
35
|
-
this.otherTagsWidth = 0;
|
|
36
|
-
this.areaWidth = 0;
|
|
37
|
-
this.itemsWidth = [];
|
|
38
|
-
this.itemsWidthArray = [];
|
|
39
|
-
this.checklist = [];
|
|
40
|
-
this.pastItem = [];
|
|
41
|
-
this._id = (Math.random() * 4).toString(16).replace('.', '');
|
|
42
|
-
this.value = null;
|
|
43
|
-
this.value2 = null;
|
|
44
|
-
this.size = 'medium';
|
|
45
|
-
this.scrollable = 'vertical';
|
|
46
|
-
this.placeholder = "Choose an option";
|
|
47
|
-
this.search = false;
|
|
48
|
-
this.noCaption = false;
|
|
49
|
-
this.captionType = 'default';
|
|
50
|
-
this.searchFields = ['value', 'text'];
|
|
51
|
-
this.fullWidth = false;
|
|
52
|
-
this.hidden = false;
|
|
53
|
-
this.checkboxes = false;
|
|
54
|
-
this.searchable = false;
|
|
55
|
-
this.required = false;
|
|
56
|
-
this.treeview = false;
|
|
57
|
-
this.numberOfColumns = 1;
|
|
58
|
-
this.viewportWidth = "100%";
|
|
59
|
-
this.viewportMinWidth = null;
|
|
60
|
-
this.viewportMaxWidth = null;
|
|
61
|
-
this.template = null;
|
|
62
|
-
this.maxHeight = "200px";
|
|
63
|
-
this.infoFooter = false;
|
|
64
|
-
this._internal_id = (Math.random() * 4).toString(16).replace('.', '');
|
|
65
|
-
this.alignment = 'left';
|
|
66
|
-
this._items = null;
|
|
67
|
-
this._data = null;
|
|
68
|
-
this.placement = 'bottom-start';
|
|
69
|
-
this.otherTagStatus = false;
|
|
70
|
-
this.firstSetData = true;
|
|
71
|
-
this.visibleTags = [];
|
|
72
|
-
this.hiddenTags = [];
|
|
73
|
-
this.onShowVisibleTags = [];
|
|
74
|
-
this.onShowHiddenTags = [];
|
|
75
|
-
this.hiddenTagsString = "";
|
|
76
|
-
this.clientWidth = 0;
|
|
77
|
-
this.tagLabel = [];
|
|
78
|
-
this.selectText = null;
|
|
79
|
-
this.isOpen = false;
|
|
80
|
-
this.searchResults = [];
|
|
81
|
-
this.optionViewportStyleAlignment = {};
|
|
82
|
-
}
|
|
83
|
-
async componentWillLoad() {
|
|
84
|
-
// this.createElement()
|
|
85
|
-
this.createElement();
|
|
86
|
-
await delay(50);
|
|
87
|
-
}
|
|
88
|
-
disconnectedCallback() {
|
|
89
|
-
if (document.getElementById("select-box" + this._internal_id)) {
|
|
90
|
-
document.getElementById("select-box" + this._internal_id).remove();
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
componentWillRender() {
|
|
94
|
-
var selectedTextArea = this.el.shadowRoot.getElementById("selected-container");
|
|
95
|
-
if (selectedTextArea && this.el.clientWidth > 200) {
|
|
96
|
-
selectedTextArea.style.maxWidth = (this.el.clientWidth) + "px";
|
|
97
|
-
}
|
|
98
|
-
// if( sessionStorage.getItem(this._internal_id + "-config") ){
|
|
99
|
-
// this.config( JSON.parse( sessionStorage.getItem( this._internal_id + "-config" ) ) )
|
|
100
|
-
// }
|
|
101
|
-
}
|
|
102
|
-
async config(_config) {
|
|
103
|
-
this._config = _config;
|
|
104
|
-
this.maxHeight && (_config['maxHeight'] = this.maxHeight);
|
|
105
|
-
if (this.template) {
|
|
106
|
-
_config['template'] = this.template;
|
|
107
|
-
}
|
|
108
|
-
if (_config['treeview']) {
|
|
109
|
-
typeof _config['treeview'] == 'boolean'
|
|
110
|
-
? this.treeview = _config['treeview']
|
|
111
|
-
: this.treeview = false;
|
|
112
|
-
}
|
|
113
|
-
if (_config['checkable']) {
|
|
114
|
-
typeof _config['checkable'] == 'boolean'
|
|
115
|
-
? this.checkboxes = true
|
|
116
|
-
: this.checkboxes = false;
|
|
117
|
-
}
|
|
118
|
-
if (_config['numberOfColumns']) {
|
|
119
|
-
typeof _config['numberOfColumns'] == 'number'
|
|
120
|
-
? this.numberOfColumns = _config['numberOfColumns']
|
|
121
|
-
: this.numberOfColumns = 1;
|
|
122
|
-
}
|
|
123
|
-
if (_config['viewportWidth']) {
|
|
124
|
-
typeof _config['viewportWidth'] == 'string'
|
|
125
|
-
? this.viewportWidth = _config['viewportWidth']
|
|
126
|
-
: this.viewportWidth = "100%";
|
|
127
|
-
}
|
|
128
|
-
if (_config['viewportMinWidth']) {
|
|
129
|
-
typeof _config['viewportMinWidth'] == 'string'
|
|
130
|
-
? this.viewportMinWidth = _config['viewportMinWidth']
|
|
131
|
-
: this.viewportMinWidth = null;
|
|
132
|
-
}
|
|
133
|
-
if (_config['viewportMaxWidth']) {
|
|
134
|
-
typeof _config['viewportMaxWidth'] == 'string'
|
|
135
|
-
? this.viewportMaxWidth = _config['viewportMaxWidth']
|
|
136
|
-
: this.viewportMaxWidth = null;
|
|
137
|
-
}
|
|
138
|
-
// if ( _config['maxHeight'] ) {
|
|
139
|
-
// typeof _config['maxHeight'] == 'string'
|
|
140
|
-
// ? this.maxHeight = _config['maxHeight']
|
|
141
|
-
// : this.maxHeight = this.maxHeight
|
|
142
|
-
// }
|
|
143
|
-
if (_config['clearable']) {
|
|
144
|
-
typeof _config['clearable'] == 'boolean'
|
|
145
|
-
? this.clearable = _config['clearable']
|
|
146
|
-
: this.clearable = false;
|
|
147
|
-
}
|
|
148
|
-
if (_config['searchable']) {
|
|
149
|
-
typeof _config['searchable'] == 'boolean'
|
|
150
|
-
? this.searchable = _config['searchable']
|
|
151
|
-
: this.searchable = false;
|
|
152
|
-
}
|
|
153
|
-
if (_config['fullWidth']) {
|
|
154
|
-
typeof _config['fullWidth'] == 'boolean'
|
|
155
|
-
? this.fullWidth = _config['fullWidth']
|
|
156
|
-
: this.fullWidth = false;
|
|
157
|
-
}
|
|
158
|
-
if (_config['label']) {
|
|
159
|
-
typeof _config['label'] == 'string'
|
|
160
|
-
? this.label = _config['label']
|
|
161
|
-
: this.label = null;
|
|
162
|
-
}
|
|
163
|
-
if (_config['placeholder']) {
|
|
164
|
-
typeof _config['placeholder'] == 'string'
|
|
165
|
-
? this.placeholder = _config['placeholder']
|
|
166
|
-
: this.placeholder = "Choose an option";
|
|
167
|
-
}
|
|
168
|
-
if (_config['infoFooter']) {
|
|
169
|
-
typeof _config['infoFooter'] == 'boolean'
|
|
170
|
-
? this.infoFooter = _config['infoFooter']
|
|
171
|
-
: this.infoFooter = false;
|
|
172
|
-
}
|
|
173
|
-
if (_config['mapping']) {
|
|
174
|
-
if (_config['mapping']['id']) {
|
|
175
|
-
this.objectMapping['id'] = _config['mapping']['id'];
|
|
176
|
-
}
|
|
177
|
-
if (_config['mapping']['text']) {
|
|
178
|
-
this.objectMapping['text'] = _config['mapping']['text'];
|
|
179
|
-
}
|
|
180
|
-
if (_config['mapping']['value']) {
|
|
181
|
-
this.objectMapping['value'] = _config['mapping']['value'];
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
sessionStorage.setItem(this._internal_id + "-config", JSON.stringify(_config));
|
|
185
|
-
this.createElement();
|
|
186
|
-
await delay(50);
|
|
187
|
-
var element;
|
|
188
|
-
if (document.getElementById("select-box" + this._internal_id) && document.getElementById("select-box" + this._internal_id).shadowRoot.querySelector("bcm-listbox")) {
|
|
189
|
-
element = document.getElementById("select-box" + this._internal_id).shadowRoot.querySelector("bcm-listbox");
|
|
190
|
-
if (sessionStorage.getItem(this._internal_id + "-config")) {
|
|
191
|
-
element.config(JSON.parse(sessionStorage.getItem(this._internal_id + "-config")));
|
|
192
|
-
}
|
|
193
|
-
// await element.config(_config)
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
async renderListbox() {
|
|
197
|
-
if (this.isRendered == false) {
|
|
198
|
-
this.isRendered = true;
|
|
199
|
-
var element = null;
|
|
200
|
-
if (this.cleaned) {
|
|
201
|
-
const recurviseControl = (items) => {
|
|
202
|
-
const data = items.map(item => {
|
|
203
|
-
if (this.checkboxes === true) {
|
|
204
|
-
if (item[this.objectMapping['checked']]) {
|
|
205
|
-
item[this.objectMapping['checked']] = false;
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
else {
|
|
209
|
-
if (item[this.objectMapping['selected']]) {
|
|
210
|
-
item[this.objectMapping['selected']] = false;
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
if (item.items && item.items.length > 0) {
|
|
214
|
-
item.items = recurviseControl(item.items);
|
|
215
|
-
}
|
|
216
|
-
return item;
|
|
217
|
-
});
|
|
218
|
-
return data;
|
|
219
|
-
};
|
|
220
|
-
// recurviseControl(this._items);
|
|
221
|
-
this._data = JSON.stringify(recurviseControl(this._items));
|
|
222
|
-
}
|
|
223
|
-
if (element = document.getElementById("select-box" + this._internal_id)) {
|
|
224
|
-
if (element = element.shadowRoot.querySelector("bcm-listbox")) {
|
|
225
|
-
if (sessionStorage.getItem(this._internal_id + "-config")) {
|
|
226
|
-
element.config(JSON.parse(sessionStorage.getItem(this._internal_id + "-config")));
|
|
227
|
-
}
|
|
228
|
-
element.setData(this._data);
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
|
-
return element;
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
async setData(_data = []) {
|
|
235
|
-
if (this.firstSetData === true) {
|
|
236
|
-
this.firstSetData = false;
|
|
237
|
-
}
|
|
238
|
-
else {
|
|
239
|
-
this.itemsWidth = [];
|
|
240
|
-
if (this.value != null) {
|
|
241
|
-
this.value = null;
|
|
242
|
-
}
|
|
243
|
-
this.checklist = [];
|
|
244
|
-
}
|
|
245
|
-
this._data = _data;
|
|
246
|
-
this.isRendered = true;
|
|
247
|
-
typeof _data == 'string'
|
|
248
|
-
? this._items = JSON.parse(_data)
|
|
249
|
-
: this._items = _data;
|
|
250
|
-
if (this._items.length > 0) { }
|
|
251
|
-
else {
|
|
252
|
-
this.handleClear();
|
|
253
|
-
this.isRendered = false;
|
|
254
|
-
}
|
|
255
|
-
var element = null;
|
|
256
|
-
if (element = document.getElementById("select-box" + this._internal_id)) {
|
|
257
|
-
if (element = element.shadowRoot.querySelector("bcm-listbox")) {
|
|
258
|
-
element.setData(_data);
|
|
259
|
-
}
|
|
260
|
-
}
|
|
261
|
-
}
|
|
262
|
-
async setDataAsync(_data = []) {
|
|
263
|
-
let newValue = null;
|
|
264
|
-
if (this.isRendered == true) {
|
|
265
|
-
this.setData(_data);
|
|
266
|
-
}
|
|
267
|
-
else {
|
|
268
|
-
this._data = _data;
|
|
269
|
-
typeof _data == 'string'
|
|
270
|
-
? this._items = JSON.parse(_data)
|
|
271
|
-
: this._items = _data;
|
|
272
|
-
var _checkedItems = [];
|
|
273
|
-
if (this._items.length > 0) {
|
|
274
|
-
const recurviseControl = (items) => {
|
|
275
|
-
items.forEach(item => {
|
|
276
|
-
if (this.checkboxes === true) {
|
|
277
|
-
if (item[this.objectMapping['checked']] === true) {
|
|
278
|
-
_checkedItems.push(item);
|
|
279
|
-
}
|
|
280
|
-
}
|
|
281
|
-
else {
|
|
282
|
-
if (item[this.objectMapping['selected']] === true) {
|
|
283
|
-
newValue = item;
|
|
284
|
-
this.selectText = item[this.objectMapping['text']];
|
|
285
|
-
}
|
|
286
|
-
}
|
|
287
|
-
if (item.items && item.items.length > 0) {
|
|
288
|
-
recurviseControl(item.items);
|
|
289
|
-
}
|
|
290
|
-
});
|
|
291
|
-
};
|
|
292
|
-
recurviseControl(this._items);
|
|
293
|
-
}
|
|
294
|
-
else {
|
|
295
|
-
this.handleClear();
|
|
296
|
-
this.isRendered = false;
|
|
297
|
-
}
|
|
298
|
-
this.itemsWidth = [];
|
|
299
|
-
if (this.checkboxes == true) {
|
|
300
|
-
// this.value = String(_checkedItems)
|
|
301
|
-
this.handleTagControl2(_checkedItems);
|
|
302
|
-
this.checklist = _checkedItems;
|
|
303
|
-
}
|
|
304
|
-
else {
|
|
305
|
-
if (newValue != null) {
|
|
306
|
-
// this.value = null
|
|
307
|
-
newValue.selected && (delete newValue.selected);
|
|
308
|
-
newValue.checked && (delete newValue.checked);
|
|
309
|
-
this.value = newValue;
|
|
310
|
-
}
|
|
311
|
-
this.checklist = [];
|
|
312
|
-
}
|
|
313
|
-
}
|
|
314
|
-
}
|
|
315
|
-
async clearAndSelectSearch(select = true) {
|
|
316
|
-
this.renderListbox();
|
|
317
|
-
if (this.searchable === true) {
|
|
318
|
-
// await this.createElement()
|
|
319
|
-
setTimeout(() => {
|
|
320
|
-
var searchInput = null;
|
|
321
|
-
if (document.getElementById("select-box" + this._internal_id)
|
|
322
|
-
&& document.getElementById("select-box" + this._internal_id).shadowRoot.querySelector("bcm-listbox")) {
|
|
323
|
-
if (this.treeview) {
|
|
324
|
-
searchInput = document.getElementById("select-box" + this._internal_id).shadowRoot.querySelector("bcm-listbox").shadowRoot.querySelector("bcm-treeview");
|
|
325
|
-
}
|
|
326
|
-
else {
|
|
327
|
-
searchInput = document.getElementById("select-box" + this._internal_id).shadowRoot.querySelector("bcm-listbox");
|
|
328
|
-
}
|
|
329
|
-
if (searchInput) {
|
|
330
|
-
searchInput.clearAndSelectSearch();
|
|
331
|
-
if (select == true) {
|
|
332
|
-
searchInput.clearAndSelectSearch(true);
|
|
333
|
-
}
|
|
334
|
-
}
|
|
335
|
-
}
|
|
336
|
-
}, 100);
|
|
337
|
-
}
|
|
338
|
-
}
|
|
339
|
-
async selected(id) {
|
|
340
|
-
this.renderListbox();
|
|
341
|
-
this.createElement();
|
|
342
|
-
await delay(150);
|
|
343
|
-
if (document.getElementById("select-box" + this._internal_id) && document.getElementById("select-box" + this._internal_id).shadowRoot.querySelector("bcm-listbox")) {
|
|
344
|
-
this.bcmListbox = document.getElementById("select-box" + this._internal_id).shadowRoot.querySelector("bcm-listbox");
|
|
345
|
-
this.bcmListbox.selected(id);
|
|
346
|
-
}
|
|
347
|
-
}
|
|
348
|
-
async addChecked(id = []) {
|
|
349
|
-
if (this.isRendered == true) {
|
|
350
|
-
this.renderListbox();
|
|
351
|
-
this.createElement();
|
|
352
|
-
await delay(50);
|
|
353
|
-
if (document.getElementById("select-box" + this._internal_id) && document.getElementById("select-box" + this._internal_id).shadowRoot.querySelector("bcm-listbox")) {
|
|
354
|
-
this.bcmListbox = document.getElementById("select-box" + this._internal_id).shadowRoot.querySelector("bcm-listbox");
|
|
355
|
-
this.bcmListbox.addChecked(id);
|
|
356
|
-
}
|
|
357
|
-
}
|
|
358
|
-
else {
|
|
359
|
-
var checkedItems = id;
|
|
360
|
-
var _checkedItems = [];
|
|
361
|
-
if (this._items && this._items.length > 0) {
|
|
362
|
-
if (this.checkboxes === true) {
|
|
363
|
-
if (this._items.find(e => String(e[this.objectMapping['checked']]) === "true")) {
|
|
364
|
-
this._items.filter(e => String(e[this.objectMapping['checked']]) === "true").forEach(element => {
|
|
365
|
-
element[this.objectMapping['checked']] = false;
|
|
366
|
-
});
|
|
367
|
-
}
|
|
368
|
-
}
|
|
369
|
-
else {
|
|
370
|
-
if (this._items.find(e => String(e[this.objectMapping['selected']]) === "true")) {
|
|
371
|
-
this._items.filter(e => String(e[this.objectMapping['selected']]) === "true").forEach(element => {
|
|
372
|
-
element[this.objectMapping['selected']] = false;
|
|
373
|
-
});
|
|
374
|
-
}
|
|
375
|
-
}
|
|
376
|
-
if (typeof checkedItems == 'string') {
|
|
377
|
-
if (this.checkboxes === false) {
|
|
378
|
-
const item = this._items.find(e => String(e[this.objectMapping['id']]) === String(checkedItems))[this.objectMapping['id']];
|
|
379
|
-
this.value = item;
|
|
380
|
-
this.selectText = item[this.objectMapping['text']];
|
|
381
|
-
}
|
|
382
|
-
}
|
|
383
|
-
else {
|
|
384
|
-
if (this.checkboxes === true) {
|
|
385
|
-
checkedItems.forEach(id => {
|
|
386
|
-
var findItem = this._items.find(e => String(e[this.objectMapping['id']]) == String(id));
|
|
387
|
-
if (findItem) {
|
|
388
|
-
findItem[this.objectMapping['checked']] = "true";
|
|
389
|
-
}
|
|
390
|
-
});
|
|
391
|
-
}
|
|
392
|
-
if (this._items && this._items.find(e => String(e[this.objectMapping['checked']]) === "true")) {
|
|
393
|
-
this._items.filter(e => String(e[this.objectMapping['checked']]) === "true").forEach(item => {
|
|
394
|
-
_checkedItems.push(item);
|
|
395
|
-
});
|
|
396
|
-
}
|
|
397
|
-
}
|
|
398
|
-
}
|
|
399
|
-
else {
|
|
400
|
-
this.handleClear();
|
|
401
|
-
}
|
|
402
|
-
this._data = JSON.stringify(this._items);
|
|
403
|
-
this.itemsWidth = [];
|
|
404
|
-
if (this.checkboxes == true) {
|
|
405
|
-
this.value = String(_checkedItems);
|
|
406
|
-
this.handleTagControl2(_checkedItems);
|
|
407
|
-
this.checklist = _checkedItems;
|
|
408
|
-
}
|
|
409
|
-
else {
|
|
410
|
-
if (this.value != null) {
|
|
411
|
-
this.value = null;
|
|
412
|
-
}
|
|
413
|
-
this.checklist = [];
|
|
414
|
-
}
|
|
415
|
-
}
|
|
416
|
-
}
|
|
417
|
-
async updateChecked(id = []) {
|
|
418
|
-
this.renderListbox();
|
|
419
|
-
this.createElement();
|
|
420
|
-
await delay(50);
|
|
421
|
-
if (document.getElementById("select-box" + this._internal_id) && document.getElementById("select-box" + this._internal_id).shadowRoot.querySelector("bcm-listbox")) {
|
|
422
|
-
this.bcmListbox = document.getElementById("select-box" + this._internal_id).shadowRoot.querySelector("bcm-listbox");
|
|
423
|
-
this.bcmListbox.updateChecked(id);
|
|
424
|
-
}
|
|
425
|
-
}
|
|
426
|
-
async getValue() {
|
|
427
|
-
return this.value;
|
|
428
|
-
}
|
|
429
|
-
async getChecklist() {
|
|
430
|
-
return this.checklist;
|
|
431
|
-
}
|
|
432
|
-
async setClear() {
|
|
433
|
-
await this.handleClear();
|
|
434
|
-
await delay(10);
|
|
435
|
-
return Promise.resolve();
|
|
436
|
-
}
|
|
437
|
-
async resetCaption() {
|
|
438
|
-
await delay(10);
|
|
439
|
-
this.caption = this.captionCache;
|
|
440
|
-
this.captionType = this.captionTypeCache;
|
|
441
|
-
this.captionError = null;
|
|
442
|
-
await delay(10);
|
|
443
|
-
return Promise.resolve();
|
|
444
|
-
}
|
|
445
|
-
connectedCallback() {
|
|
446
|
-
this.captionCache = this.caption;
|
|
447
|
-
this.captionTypeCache = this.captionType;
|
|
448
|
-
}
|
|
449
|
-
handleChange(newValue, oldValue) {
|
|
450
|
-
const oldVal = oldValue ? oldValue : null;
|
|
451
|
-
const newVal = newValue ? newValue : null;
|
|
452
|
-
if (oldVal != newVal) {
|
|
453
|
-
if (this.checkboxes == true) {
|
|
454
|
-
this.change.emit(newVal);
|
|
455
|
-
}
|
|
456
|
-
else {
|
|
457
|
-
if (newVal && newVal[this.objectMapping['id']] && oldVal && oldVal[this.objectMapping['id']]) {
|
|
458
|
-
if (newVal[this.objectMapping['id']] != oldVal[this.objectMapping['id']]) {
|
|
459
|
-
this.change.emit(newVal);
|
|
460
|
-
}
|
|
461
|
-
}
|
|
462
|
-
else {
|
|
463
|
-
this.change.emit(newVal);
|
|
464
|
-
}
|
|
465
|
-
}
|
|
466
|
-
}
|
|
467
|
-
}
|
|
468
|
-
async handleOpenState() {
|
|
469
|
-
if (this.isOpen == false) {
|
|
470
|
-
this.searchResults = [];
|
|
471
|
-
// this.otherTagStatus = false
|
|
472
|
-
}
|
|
473
|
-
await this.createElement(this.isOpen);
|
|
474
|
-
await delay(100);
|
|
475
|
-
this.viewportCoordinateUpdater();
|
|
476
|
-
}
|
|
477
|
-
async handleOpen(event, otherTag = false) {
|
|
478
|
-
var path = event.path || (event.composedPath && event.composedPath());
|
|
479
|
-
if (path && path.filter((input) => input['id'] == "close")[0] != undefined) {
|
|
480
|
-
this.isOpen = this.isOpen;
|
|
481
|
-
}
|
|
482
|
-
else if (event == false) {
|
|
483
|
-
this.isOpen = false;
|
|
484
|
-
}
|
|
485
|
-
else {
|
|
486
|
-
if (!this.disabled) {
|
|
487
|
-
if (lowercase(event.target.nodeName) !== 'bcm-old-tag') {
|
|
488
|
-
this.isOpen = !this.isOpen;
|
|
489
|
-
}
|
|
490
|
-
else if (!this.isOpen) {
|
|
491
|
-
this.isOpen = true;
|
|
492
|
-
}
|
|
493
|
-
}
|
|
494
|
-
}
|
|
495
|
-
if (this.isOpen && this.searchable && !otherTag) {
|
|
496
|
-
// await this.createElement()
|
|
497
|
-
setTimeout(() => {
|
|
498
|
-
var searchInput = null;
|
|
499
|
-
if (document.getElementById("select-box" + this._internal_id)
|
|
500
|
-
&& document.getElementById("select-box" + this._internal_id).shadowRoot.querySelector("bcm-listbox")) {
|
|
501
|
-
if (this.treeview) {
|
|
502
|
-
searchInput = document.getElementById("select-box" + this._internal_id).shadowRoot.querySelector("bcm-listbox").shadowRoot.querySelector("bcm-treeview");
|
|
503
|
-
}
|
|
504
|
-
else {
|
|
505
|
-
searchInput = document.getElementById("select-box" + this._internal_id).shadowRoot.querySelector("bcm-listbox");
|
|
506
|
-
}
|
|
507
|
-
if (searchInput) {
|
|
508
|
-
searchInput.clearAndSelectSearch();
|
|
509
|
-
}
|
|
510
|
-
}
|
|
511
|
-
}, 100);
|
|
512
|
-
}
|
|
513
|
-
if (this.isOpen == true && this.isRendered == false) {
|
|
514
|
-
this.renderListbox();
|
|
515
|
-
}
|
|
516
|
-
}
|
|
517
|
-
onwheelEvent(event) {
|
|
518
|
-
var path = event.path || (event.composedPath && event.composedPath());
|
|
519
|
-
if (path
|
|
520
|
-
&& (path.filter((input) => input['_internal_id'] == this._internal_id)[0] == undefined
|
|
521
|
-
|| path.filter((input) => input['nodeName'] == "BCM-SELECT")[0] !== undefined)) {
|
|
522
|
-
if (this.isOpen === true) {
|
|
523
|
-
this.isOpen = false;
|
|
524
|
-
var element;
|
|
525
|
-
if (document.getElementById("select-box" + this._internal_id)) {
|
|
526
|
-
element = document.getElementById("select-box" + this._internal_id);
|
|
527
|
-
element.classList.remove("show");
|
|
528
|
-
}
|
|
529
|
-
}
|
|
530
|
-
}
|
|
531
|
-
}
|
|
532
|
-
async scrollEvent(event) {
|
|
533
|
-
var path = event.path || (event.composedPath && event.composedPath());
|
|
534
|
-
if (path && path.filter((input) => input['nodeName'] == "BCM-MODAL")[0] == undefined) {
|
|
535
|
-
if (this.isOpen === true) {
|
|
536
|
-
this.viewportCoordinateUpdater();
|
|
537
|
-
}
|
|
538
|
-
}
|
|
539
|
-
else {
|
|
540
|
-
if (this.isOpen === true) {
|
|
541
|
-
this.isOpen = false;
|
|
542
|
-
var element;
|
|
543
|
-
if (document.getElementById("select-box" + this._internal_id)) {
|
|
544
|
-
element = document.getElementById("select-box" + this._internal_id);
|
|
545
|
-
element.classList.remove("show");
|
|
546
|
-
}
|
|
547
|
-
}
|
|
548
|
-
}
|
|
549
|
-
}
|
|
550
|
-
viewportCoordinateUpdater() {
|
|
551
|
-
if (document.getElementById("select-box" + this._internal_id)) {
|
|
552
|
-
var element;
|
|
553
|
-
element = document.getElementById("select-box" + this._internal_id);
|
|
554
|
-
dropInComponent(element, "#" + this._id);
|
|
555
|
-
}
|
|
556
|
-
}
|
|
557
|
-
async createElement(isOpen = false) {
|
|
558
|
-
var element = document.getElementById("select-box" + this._internal_id);
|
|
559
|
-
if (!element) {
|
|
560
|
-
element = document.createElement("bcm-select-box");
|
|
561
|
-
element.setAttribute("id", "select-box" + this._internal_id);
|
|
562
|
-
element.setAttribute("_internal_id", this._internal_id);
|
|
563
|
-
await delay(10);
|
|
564
|
-
}
|
|
565
|
-
document.body.appendChild(element);
|
|
566
|
-
dropInComponent(element, "#" + this._id);
|
|
567
|
-
element.style.width = this.el.clientWidth + "px";
|
|
568
|
-
if (this.viewportMinWidth != null || this.viewportMaxWidth != null) {
|
|
569
|
-
element.style.width = "100%";
|
|
570
|
-
}
|
|
571
|
-
else if (this.viewportWidth != "100%") {
|
|
572
|
-
element.style.width = this.viewportWidth;
|
|
573
|
-
}
|
|
574
|
-
else if (this.numberOfColumns > 1) {
|
|
575
|
-
element.style.width = "auto";
|
|
576
|
-
}
|
|
577
|
-
else {
|
|
578
|
-
element.style.width = this.el.clientWidth + "px";
|
|
579
|
-
}
|
|
580
|
-
if (this.viewportMinWidth != null) {
|
|
581
|
-
if (this.viewportMaxWidth == null) {
|
|
582
|
-
element.style.maxWidth = this.el.clientWidth + "px";
|
|
583
|
-
}
|
|
584
|
-
element.style.minWidth = this.viewportMinWidth;
|
|
585
|
-
}
|
|
586
|
-
if (this.viewportMaxWidth != null) {
|
|
587
|
-
if (this.viewportMinWidth == null) {
|
|
588
|
-
element.style.minWidth = this.el.clientWidth + "px";
|
|
589
|
-
}
|
|
590
|
-
element.style.maxWidth = this.viewportMaxWidth;
|
|
591
|
-
}
|
|
592
|
-
element.style.maxHeight = this.maxHeight;
|
|
593
|
-
if (isOpen === true) {
|
|
594
|
-
element.classList.add("show");
|
|
595
|
-
}
|
|
596
|
-
else {
|
|
597
|
-
element.classList.remove("show");
|
|
598
|
-
}
|
|
599
|
-
}
|
|
600
|
-
getPlacement() {
|
|
601
|
-
const placements = this.placement.split('-');
|
|
602
|
-
if (placements.length === 1) {
|
|
603
|
-
placements.push('center');
|
|
604
|
-
}
|
|
605
|
-
return placements;
|
|
606
|
-
}
|
|
607
|
-
clickClear(e) {
|
|
608
|
-
this.handleClear();
|
|
609
|
-
e.stopPropagation();
|
|
610
|
-
}
|
|
611
|
-
async handleClear() {
|
|
612
|
-
this.cleaned = true;
|
|
613
|
-
this.value = null;
|
|
614
|
-
this.selectText = null;
|
|
615
|
-
// const allitem:any = [...this.onShowVisibleTags, ...this.onShowHiddenTags]
|
|
616
|
-
// if ( allitem.length > 0 ) {
|
|
617
|
-
// allitem.map(item => {
|
|
618
|
-
// this.bcmOldTagDissmisable({detail: {id: String(item[this.objectMapping['id']])}}, this._internal_id)
|
|
619
|
-
// })
|
|
620
|
-
// }
|
|
621
|
-
var subComponent = null;
|
|
622
|
-
if (document.getElementById("select-box" + this._internal_id)
|
|
623
|
-
&& document.getElementById("select-box" + this._internal_id).shadowRoot.querySelector(".listbox-box")) {
|
|
624
|
-
if (this.treeview === true) {
|
|
625
|
-
subComponent = document.getElementById("select-box" + this._internal_id).shadowRoot.querySelector(".listbox-box").shadowRoot.querySelector("bcm-treeview");
|
|
626
|
-
}
|
|
627
|
-
else {
|
|
628
|
-
subComponent = document.getElementById("select-box" + this._internal_id).shadowRoot.querySelector(".listbox-box");
|
|
629
|
-
}
|
|
630
|
-
}
|
|
631
|
-
if (subComponent) {
|
|
632
|
-
await subComponent.setClear();
|
|
633
|
-
}
|
|
634
|
-
this.onShowVisibleTags = [];
|
|
635
|
-
this.onShowHiddenTags = [];
|
|
636
|
-
this.searchResults = [];
|
|
637
|
-
this.watchSearchResults();
|
|
638
|
-
var searchInput = null;
|
|
639
|
-
// await this.createElement()
|
|
640
|
-
if (document.getElementById("select-box" + this._internal_id)
|
|
641
|
-
&& document.getElementById("select-box" + this._internal_id).shadowRoot.querySelector(".listbox-box")) {
|
|
642
|
-
if (this.treeview) {
|
|
643
|
-
searchInput = document.getElementById("select-box" + this._internal_id).shadowRoot.querySelector(".listbox-box").shadowRoot.querySelector("bcm-treeview");
|
|
644
|
-
}
|
|
645
|
-
else {
|
|
646
|
-
searchInput = document.getElementById("select-box" + this._internal_id).shadowRoot.querySelector(".listbox-box");
|
|
647
|
-
}
|
|
648
|
-
}
|
|
649
|
-
if (searchInput) {
|
|
650
|
-
searchInput.clearAndSelectSearch();
|
|
651
|
-
}
|
|
652
|
-
this.clear.emit();
|
|
653
|
-
return Promise.resolve();
|
|
654
|
-
}
|
|
655
|
-
handleFocus() {
|
|
656
|
-
this.focus.emit();
|
|
657
|
-
}
|
|
658
|
-
handleBlur() {
|
|
659
|
-
this.blur.emit();
|
|
660
|
-
}
|
|
661
|
-
handleScreenResize() {
|
|
662
|
-
if (this.isOpen === true) {
|
|
663
|
-
this.createElement(true);
|
|
664
|
-
}
|
|
665
|
-
}
|
|
666
|
-
handleClickOutside(event) {
|
|
667
|
-
var _a;
|
|
668
|
-
var path = event.path || (event.composedPath && event.composedPath());
|
|
669
|
-
if (path && path.filter((input) => input['id'] == "other-tag")[0] == undefined
|
|
670
|
-
&& path && path.filter((input) => input['id'] == "listbox")[0] == undefined) {
|
|
671
|
-
this.otherTagStatus = false;
|
|
672
|
-
setTimeout(() => {
|
|
673
|
-
if (this.otherTag) {
|
|
674
|
-
this.otherTag.setAttribute('color', 'grey-9');
|
|
675
|
-
}
|
|
676
|
-
}, 50);
|
|
677
|
-
}
|
|
678
|
-
if (((event === null || event === void 0 ? void 0 : event.target) && ((_a = this.el) === null || _a === void 0 ? void 0 : _a.contains(event.target)))
|
|
679
|
-
|| (path && path.filter((input) => input['id'] == "select-box" + this._internal_id)[0] != undefined)) {
|
|
680
|
-
// this.searchResults = []
|
|
681
|
-
// this.watchSearchResults()
|
|
682
|
-
this.optionViewportStyleAlignment = {};
|
|
683
|
-
var targetId = event.target["id"];
|
|
684
|
-
if (document.querySelector('#' + targetId)) {
|
|
685
|
-
var paddingBottom = 8;
|
|
686
|
-
var offsetTop = document.querySelector('#' + targetId).getBoundingClientRect().top;
|
|
687
|
-
var einnerHeight = event.view.innerHeight;
|
|
688
|
-
var eclientHeight = event.target["clientHeight"];
|
|
689
|
-
var enoCaption = event.target["noCaption"];
|
|
690
|
-
// var elementTop = einnerHeight - offsetTop
|
|
691
|
-
var elementBottom = einnerHeight - offsetTop - (enoCaption ? eclientHeight : eclientHeight - 20) + paddingBottom;
|
|
692
|
-
if (Number(this.maxHeight.replace("px", "")) > elementBottom) {
|
|
693
|
-
this.optionViewportStyleAlignment = {
|
|
694
|
-
'bottom': (this.infoFooter ? 30 : 0) + 50 + "px",
|
|
695
|
-
'box-shadow': '0px -2px 8px rgb(0 0 0 / 15%)'
|
|
696
|
-
};
|
|
697
|
-
}
|
|
698
|
-
}
|
|
699
|
-
if (this.checkboxes == false
|
|
700
|
-
&& path
|
|
701
|
-
&& path.filter((input) => input['id'] == "collapse-button")[0] == undefined
|
|
702
|
-
&& (path.filter((input) => input['nodeName'] == "BCM-LISTBOX-ITEM")[0]
|
|
703
|
-
|| path.filter((input) => input['nodeName'] == "BCM-TREEVIEW-ITEM")[0])) {
|
|
704
|
-
this.isOpen = false;
|
|
705
|
-
}
|
|
706
|
-
}
|
|
707
|
-
else {
|
|
708
|
-
if (this.isOpen) {
|
|
709
|
-
this.isOpen = false;
|
|
710
|
-
}
|
|
711
|
-
}
|
|
712
|
-
}
|
|
713
|
-
/**
|
|
714
|
-
* @desc
|
|
715
|
-
*/
|
|
716
|
-
handleTreeviewUnchecked(event) {
|
|
717
|
-
this.handleListboxUnchecked(event);
|
|
718
|
-
}
|
|
719
|
-
handleListboxUnchecked(event) {
|
|
720
|
-
const index = this.searchResults.indexOf(event.detail);
|
|
721
|
-
if (index > -1) {
|
|
722
|
-
this.searchResults.splice(index, 1);
|
|
723
|
-
if (this.onShowHiddenTags.length <= 2) {
|
|
724
|
-
this.searchResults = [];
|
|
725
|
-
this.otherTagStatus = false;
|
|
726
|
-
}
|
|
727
|
-
this.watchSearchResults();
|
|
728
|
-
}
|
|
729
|
-
}
|
|
730
|
-
async bcmOldTagDissmisable(event, internal_id = null) {
|
|
731
|
-
var path = event.path || (event.composedPath && event.composedPath());
|
|
732
|
-
if ((this.el.contains(event.target)
|
|
733
|
-
&& (path
|
|
734
|
-
&& path.filter((input) => input['_internal_id'] == this._internal_id)[0])
|
|
735
|
-
|| internal_id == this._internal_id)) {
|
|
736
|
-
if (this.isRendered == false) {
|
|
737
|
-
await this.renderListbox();
|
|
738
|
-
await delay(50);
|
|
739
|
-
}
|
|
740
|
-
await this.createElement();
|
|
741
|
-
await delay(50);
|
|
742
|
-
const bcmListbox = document.getElementById("select-box" + this._internal_id).shadowRoot.querySelector(".listbox-box");
|
|
743
|
-
if (event.detail.id == "other-tag") {
|
|
744
|
-
this.onShowHiddenTags.map(async (item) => {
|
|
745
|
-
await bcmListbox.listboxUncheckedMethod(String(item[this.objectMapping['id']]), this._internal_id);
|
|
746
|
-
});
|
|
747
|
-
this.onShowHiddenTags = [];
|
|
748
|
-
}
|
|
749
|
-
else {
|
|
750
|
-
await bcmListbox.listboxUncheckedMethod(event.detail.id, this._internal_id);
|
|
751
|
-
}
|
|
752
|
-
this.watchSearchResults();
|
|
753
|
-
}
|
|
754
|
-
}
|
|
755
|
-
/**
|
|
756
|
-
* @desc
|
|
757
|
-
*/
|
|
758
|
-
handleListboxSelected(event) {
|
|
759
|
-
// console.log(event)
|
|
760
|
-
// debugger;
|
|
761
|
-
var path = event.path || (event.composedPath && event.composedPath());
|
|
762
|
-
if (path && path.filter((input) => input['_internal_id'] == this._internal_id)[0] != undefined) {
|
|
763
|
-
setTimeout(() => {
|
|
764
|
-
if (this.checkboxes !== true) {
|
|
765
|
-
const optionValue = event.detail;
|
|
766
|
-
optionValue.selected && (delete optionValue.selected);
|
|
767
|
-
optionValue.checked && (delete optionValue.checked);
|
|
768
|
-
optionValue != this.value && (this.value = optionValue);
|
|
769
|
-
this.selectText = optionValue[this.objectMapping['text']];
|
|
770
|
-
}
|
|
771
|
-
}, 100);
|
|
772
|
-
}
|
|
773
|
-
}
|
|
774
|
-
/**
|
|
775
|
-
* @desc
|
|
776
|
-
*/
|
|
777
|
-
handleListboxCheckedList(event) {
|
|
778
|
-
var path = event.path || (event.composedPath && event.composedPath());
|
|
779
|
-
if (path && path.filter((input) => input['_internal_id'] == this._internal_id)[0] != undefined) {
|
|
780
|
-
setTimeout(() => {
|
|
781
|
-
if (JSON.stringify(this.checklist) !== JSON.stringify(event.detail)) {
|
|
782
|
-
// this.handleTagControl(e.detail)
|
|
783
|
-
this.handleTagControl2(event.detail);
|
|
784
|
-
this.checklist = event.detail;
|
|
785
|
-
}
|
|
786
|
-
}, 100);
|
|
787
|
-
}
|
|
788
|
-
}
|
|
789
|
-
handleTreeviewCheckedList(event) {
|
|
790
|
-
var path = event.path || (event.composedPath && event.composedPath());
|
|
791
|
-
if (path && path.filter((input) => input['_internal_id'] == this._internal_id)[0] != undefined) {
|
|
792
|
-
// setTimeout(() => {
|
|
793
|
-
// if(JSON.stringify(this.checklist) !== JSON.stringify(e.detail)){
|
|
794
|
-
// this.handleTagControl(e.detail)
|
|
795
|
-
this.handleTagControl2(event.detail);
|
|
796
|
-
this.checklist = event.detail;
|
|
797
|
-
// }
|
|
798
|
-
// }, 50);
|
|
799
|
-
}
|
|
800
|
-
}
|
|
801
|
-
async handleTagControl2(value) {
|
|
802
|
-
this.visibleTags = [];
|
|
803
|
-
this.hiddenTags = [];
|
|
804
|
-
// this.itemsWidth = []
|
|
805
|
-
this.onShowVisibleTags = [];
|
|
806
|
-
this.onShowHiddenTags = [];
|
|
807
|
-
if (value.length > 0) {
|
|
808
|
-
value.map(async (item) => {
|
|
809
|
-
this.visibleTags.push(item);
|
|
810
|
-
});
|
|
811
|
-
}
|
|
812
|
-
this.visibleTags = [...new Set(this.visibleTags)];
|
|
813
|
-
this.hiddenTags = [...new Set(this.hiddenTags)];
|
|
814
|
-
this.onShowVisibleTags = this.visibleTags;
|
|
815
|
-
this.onShowHiddenTags = this.hiddenTags;
|
|
816
|
-
if (this.onShowVisibleTags.length > 0 || this.onShowHiddenTags.length > 0) {
|
|
817
|
-
var cacheValue = JSON.parse(JSON.stringify([...this.onShowVisibleTags, ...this.onShowHiddenTags]));
|
|
818
|
-
if (this.value2 !== cacheValue) {
|
|
819
|
-
this.value2 = cacheValue;
|
|
820
|
-
}
|
|
821
|
-
}
|
|
822
|
-
else {
|
|
823
|
-
if (this.value2 !== null) {
|
|
824
|
-
this.value2 = null;
|
|
825
|
-
}
|
|
826
|
-
}
|
|
827
|
-
this.calculateContainer();
|
|
828
|
-
}
|
|
829
|
-
async calculateContainer() {
|
|
830
|
-
// await delay(10)
|
|
831
|
-
const container = this.el.shadowRoot.querySelector(".selected-text");
|
|
832
|
-
this.otherTagsWidth = 135;
|
|
833
|
-
await delay(50);
|
|
834
|
-
this.areaWidth = container.clientWidth && container.clientWidth > 100 ? container.clientWidth : 100;
|
|
835
|
-
if (this.clearable === true) {
|
|
836
|
-
this.areaWidth = this.areaWidth - 22;
|
|
837
|
-
}
|
|
838
|
-
this.itemsWidth = 0;
|
|
839
|
-
this.itemsWidthArray = [];
|
|
840
|
-
const bcmoldtags = container.querySelectorAll("bcm-old-tag");
|
|
841
|
-
await delay(50);
|
|
842
|
-
if (bcmoldtags && bcmoldtags.length > 0) {
|
|
843
|
-
bcmoldtags.forEach((item) => {
|
|
844
|
-
const itemClientWidth = item.clientWidth && item.clientWidth > 40 ? item.clientWidth : 40;
|
|
845
|
-
this.itemsWidthArray.push({ "id": String(item.id), "clientWidth": itemClientWidth });
|
|
846
|
-
this.itemsWidth += itemClientWidth + 4;
|
|
847
|
-
if (this.itemsWidth > this.areaWidth) {
|
|
848
|
-
const tagitem = this.visibleTags[this.visibleTags.findIndex(x => String(x[this.objectMapping['id']]) === String(item.id))];
|
|
849
|
-
if (item && tagitem) {
|
|
850
|
-
if (item.id && tagitem[this.objectMapping['id']]) {
|
|
851
|
-
if (StringHelper.lowercase(String(item.id)) == StringHelper.lowercase(String(tagitem[this.objectMapping['id']]))) {
|
|
852
|
-
// if (String(item.id) == String(tagitem[this.objectMapping['id']])) {
|
|
853
|
-
this.visibleTags.splice(this.visibleTags.findIndex(x => String(x[this.objectMapping['id']]) === String(item.id)), 1);
|
|
854
|
-
this.hiddenTags.push(tagitem);
|
|
855
|
-
}
|
|
856
|
-
}
|
|
857
|
-
}
|
|
858
|
-
}
|
|
859
|
-
});
|
|
860
|
-
}
|
|
861
|
-
this.visibleTags = [...new Set(this.visibleTags)];
|
|
862
|
-
this.hiddenTags = [...new Set(this.hiddenTags)];
|
|
863
|
-
if (this.hiddenTags.length > 0) {
|
|
864
|
-
if (this.hiddenTags.length > 10) {
|
|
865
|
-
this.otherTagsWidth += 20;
|
|
866
|
-
}
|
|
867
|
-
else if (this.hiddenTags.length > 100) {
|
|
868
|
-
this.otherTagsWidth += 20;
|
|
869
|
-
}
|
|
870
|
-
var bcmoldtags2 = Array.prototype.slice.call(container.querySelectorAll("bcm-old-tag"));
|
|
871
|
-
this.itemsWidth = 0;
|
|
872
|
-
bcmoldtags2.forEach((item) => {
|
|
873
|
-
if (item.id != "other-tag") {
|
|
874
|
-
var tagitem = this.visibleTags[this.visibleTags.findIndex(x => String(x[this.objectMapping['id']]) === String(item.id))];
|
|
875
|
-
if (tagitem && tagitem[this.objectMapping['id']]) {
|
|
876
|
-
if (StringHelper.lowercase(String(item.id)) == StringHelper.lowercase(String(tagitem[this.objectMapping['id']]))) {
|
|
877
|
-
this.itemsWidth += (item.clientWidth + 4);
|
|
878
|
-
if (this.itemsWidth + this.otherTagsWidth > this.areaWidth) {
|
|
879
|
-
this.visibleTags.splice(this.visibleTags.findIndex(x => String(x[this.objectMapping['id']]) === String(item.id)), 1);
|
|
880
|
-
this.hiddenTags.push(tagitem);
|
|
881
|
-
}
|
|
882
|
-
}
|
|
883
|
-
}
|
|
884
|
-
}
|
|
885
|
-
});
|
|
886
|
-
}
|
|
887
|
-
this.visibleTags = [...new Set(this.visibleTags)];
|
|
888
|
-
this.hiddenTags = [...new Set(this.hiddenTags)];
|
|
889
|
-
this.onShowVisibleTags = this.visibleTags;
|
|
890
|
-
this.onShowHiddenTags = this.hiddenTags;
|
|
891
|
-
if (this.onShowVisibleTags.length > 0 || this.onShowHiddenTags.length > 0) {
|
|
892
|
-
var cacheValue = JSON.parse(JSON.stringify([...this.onShowVisibleTags, ...this.onShowHiddenTags]));
|
|
893
|
-
if (this.value !== cacheValue) {
|
|
894
|
-
this.value = cacheValue;
|
|
895
|
-
}
|
|
896
|
-
}
|
|
897
|
-
else {
|
|
898
|
-
if (this.value !== null) {
|
|
899
|
-
this.value = null;
|
|
900
|
-
}
|
|
901
|
-
}
|
|
902
|
-
if (this.otherTagStatus) {
|
|
903
|
-
this.searchResults = this.onShowHiddenTags.map(item => {
|
|
904
|
-
return String(item[this.objectMapping['id']]);
|
|
905
|
-
});
|
|
906
|
-
if (this.onShowHiddenTags.length <= 2) {
|
|
907
|
-
this.searchResults = [];
|
|
908
|
-
this.otherTagStatus = false;
|
|
909
|
-
}
|
|
910
|
-
this.watchSearchResults();
|
|
911
|
-
}
|
|
912
|
-
}
|
|
913
|
-
async handleTagControl(value) {
|
|
914
|
-
if (value.length > 0) {
|
|
915
|
-
const container = this.el.shadowRoot.querySelector(".selected-text");
|
|
916
|
-
this.visibleTags = [];
|
|
917
|
-
this.hiddenTags = [];
|
|
918
|
-
this.itemsWidth = [];
|
|
919
|
-
this.onShowVisibleTags = [];
|
|
920
|
-
this.onShowHiddenTags = [];
|
|
921
|
-
this.areaWidth = container.clientWidth - 16;
|
|
922
|
-
this.otherTagsWidth = 130;
|
|
923
|
-
this.currentItemWidth = 0;
|
|
924
|
-
value.map(async (item) => {
|
|
925
|
-
const newTag = document.createElement("bcm-old-tag");
|
|
926
|
-
newTag.setAttribute("id", String(item[this.objectMapping['id']]));
|
|
927
|
-
newTag.setAttribute("value", item[this.objectMapping['text']]);
|
|
928
|
-
newTag.setAttribute("type", "dissmisable");
|
|
929
|
-
newTag.setAttribute("_internal_id", this._internal_id);
|
|
930
|
-
newTag.style.visibility = "hidden";
|
|
931
|
-
document.body.appendChild(newTag);
|
|
932
|
-
await delay(50);
|
|
933
|
-
var visible = true;
|
|
934
|
-
var tagwidth = newTag.clientWidth >= 200 ? 200 : newTag.clientWidth;
|
|
935
|
-
this.currentItemWidth = this.currentItemWidth + tagwidth,
|
|
936
|
-
this.itemsWidth.push({ "id": String(item[this.objectMapping['id']]), "clientWidth": tagwidth });
|
|
937
|
-
// item = {...item, "clientWidth": newTag.clientWidth}
|
|
938
|
-
if (this.areaWidth > this.currentItemWidth) {
|
|
939
|
-
visible = true;
|
|
940
|
-
}
|
|
941
|
-
else {
|
|
942
|
-
visible = false;
|
|
943
|
-
}
|
|
944
|
-
if (visible) {
|
|
945
|
-
this.visibleTags.push(item);
|
|
946
|
-
}
|
|
947
|
-
else {
|
|
948
|
-
this.hiddenTags.push(item);
|
|
949
|
-
}
|
|
950
|
-
newTag.remove();
|
|
951
|
-
});
|
|
952
|
-
await delay(100);
|
|
953
|
-
if (this.visibleTags.length > 1) {
|
|
954
|
-
const lastItem = this.itemsWidth[this.itemsWidth.findIndex(x => x.id === String(this.visibleTags[this.visibleTags.length - 1][this.objectMapping['id']]))];
|
|
955
|
-
if (this.areaWidth <= (this.currentItemWidth + this.otherTagsWidth) - lastItem["clientWidth"]) {
|
|
956
|
-
this.hiddenTags.push(this.visibleTags[this.visibleTags.length - 1]);
|
|
957
|
-
this.visibleTags.splice(-1, 1);
|
|
958
|
-
}
|
|
959
|
-
}
|
|
960
|
-
}
|
|
961
|
-
else {
|
|
962
|
-
this.visibleTags = [];
|
|
963
|
-
this.hiddenTags = [];
|
|
964
|
-
}
|
|
965
|
-
this.visibleTags.forEach((item) => {
|
|
966
|
-
const index = this.hiddenTags.indexOf(item);
|
|
967
|
-
if (index > -1) {
|
|
968
|
-
this.hiddenTags.splice(index, 1);
|
|
969
|
-
}
|
|
970
|
-
});
|
|
971
|
-
if (this.hiddenTags.length > 0) {
|
|
972
|
-
this.hiddenTags = [...new Set(this.hiddenTags), ...new Set(this.visibleTags)];
|
|
973
|
-
this.visibleTags = [];
|
|
974
|
-
}
|
|
975
|
-
this.visibleTags = [...new Set(this.visibleTags)];
|
|
976
|
-
this.hiddenTags = [...new Set(this.hiddenTags)];
|
|
977
|
-
this.onShowVisibleTags = this.visibleTags;
|
|
978
|
-
this.onShowHiddenTags = this.hiddenTags;
|
|
979
|
-
// if(this.firstRun){
|
|
980
|
-
if (this.onShowVisibleTags.length > 0 || this.onShowHiddenTags.length > 0) {
|
|
981
|
-
var cacheValue = JSON.parse(JSON.stringify([...this.onShowVisibleTags, ...this.onShowHiddenTags]));
|
|
982
|
-
if (this.value !== cacheValue) {
|
|
983
|
-
this.value = cacheValue;
|
|
984
|
-
}
|
|
985
|
-
}
|
|
986
|
-
else {
|
|
987
|
-
if (this.value !== null) {
|
|
988
|
-
this.value = null;
|
|
989
|
-
}
|
|
990
|
-
}
|
|
991
|
-
// this.firstRun = false
|
|
992
|
-
// }
|
|
993
|
-
var result = Object.keys(this.onShowHiddenTags).map((key) => this.onShowHiddenTags[key][this.objectMapping['text']]);
|
|
994
|
-
this.hiddenTagsString = result.toString().split(',').join("\r\n");
|
|
995
|
-
}
|
|
996
|
-
handleClickTag() {
|
|
997
|
-
this.searchResults = [];
|
|
998
|
-
this.otherTagStatus = false;
|
|
999
|
-
setTimeout(() => {
|
|
1000
|
-
if (this.otherTag) {
|
|
1001
|
-
this.otherTag.setAttribute('color', 'grey-9');
|
|
1002
|
-
// this.isOpen = false
|
|
1003
|
-
}
|
|
1004
|
-
}, 100);
|
|
1005
|
-
this.watchSearchResults();
|
|
1006
|
-
}
|
|
1007
|
-
showHiddenTags(e) {
|
|
1008
|
-
e.stopPropagation();
|
|
1009
|
-
this.handleOpen(e, true);
|
|
1010
|
-
this.otherTag = e.target;
|
|
1011
|
-
if (this.otherTagStatus) {
|
|
1012
|
-
this.searchResults = [];
|
|
1013
|
-
this.otherTagStatus = false;
|
|
1014
|
-
}
|
|
1015
|
-
else {
|
|
1016
|
-
this.otherTagStatus = true;
|
|
1017
|
-
this.searchResults = this.onShowHiddenTags.map(item => {
|
|
1018
|
-
return String(item[this.objectMapping['id']]);
|
|
1019
|
-
});
|
|
1020
|
-
}
|
|
1021
|
-
this.watchSearchResults();
|
|
1022
|
-
}
|
|
1023
|
-
async watchSearchResults() {
|
|
1024
|
-
var element = null;
|
|
1025
|
-
// await this.createElement()
|
|
1026
|
-
if (this.treeview == true) {
|
|
1027
|
-
if (element = document.getElementById("select-box" + this._internal_id)) {
|
|
1028
|
-
if (element = element.shadowRoot.querySelector(".listbox-box")) {
|
|
1029
|
-
if (element = element.shadowRoot.querySelector("bcm-treeview")) {
|
|
1030
|
-
await element.searchResultMethod(this.searchResults);
|
|
1031
|
-
}
|
|
1032
|
-
}
|
|
1033
|
-
}
|
|
1034
|
-
}
|
|
1035
|
-
else {
|
|
1036
|
-
if (element = document.getElementById("select-box" + this._internal_id)) {
|
|
1037
|
-
if (element = element.shadowRoot.querySelector(".listbox-box")) {
|
|
1038
|
-
await element.searchResultMethod(this.searchResults);
|
|
1039
|
-
}
|
|
1040
|
-
}
|
|
1041
|
-
}
|
|
1042
|
-
if (this.searchResults.length > 0) {
|
|
1043
|
-
setTimeout(() => {
|
|
1044
|
-
if (this.otherTag) {
|
|
1045
|
-
this.otherTag.setAttribute('color', 'prime-blue');
|
|
1046
|
-
// this.isOpen = true
|
|
1047
|
-
}
|
|
1048
|
-
}, 100);
|
|
1049
|
-
if (this._config['searchable'] == true) {
|
|
1050
|
-
if (element) {
|
|
1051
|
-
await element.showSearchMethod(false);
|
|
1052
|
-
}
|
|
1053
|
-
}
|
|
1054
|
-
}
|
|
1055
|
-
else {
|
|
1056
|
-
setTimeout(() => {
|
|
1057
|
-
if (this.otherTag) {
|
|
1058
|
-
this.otherTag.setAttribute('color', 'grey-9');
|
|
1059
|
-
// this.isOpen = false
|
|
1060
|
-
}
|
|
1061
|
-
}, 100);
|
|
1062
|
-
if (element) {
|
|
1063
|
-
await element.showSearchMethod(this.searchable);
|
|
1064
|
-
}
|
|
1065
|
-
}
|
|
1066
|
-
}
|
|
1067
|
-
render() {
|
|
1068
|
-
const { size, clearable, value, label, caption, captionError, captionType, disabled, flex, placeholder, noCaption, fullWidth, required } = this;
|
|
1069
|
-
const selected = cs('selected', 'selected-' + this.size, {
|
|
1070
|
-
'size-3': size === 'large',
|
|
1071
|
-
'size-2': size === 'small' || size === 'medium',
|
|
1072
|
-
'disabled': disabled
|
|
1073
|
-
});
|
|
1074
|
-
const menu = cs('option-container', 'alignment-' + this.alignment, {
|
|
1075
|
-
'hidden': !this.isOpen,
|
|
1076
|
-
// [this.scrollable]: this.scrollable === 'horizontal' || this.scrollable === 'vertical',
|
|
1077
|
-
// 'horizontal vertical': this.scrollable === 'both',
|
|
1078
|
-
// 'flex': flex,
|
|
1079
|
-
// 'empty': this.searchResults[0] as any == '-1'
|
|
1080
|
-
}, {
|
|
1081
|
-
'column-1': this.numberOfColumns <= 1,
|
|
1082
|
-
'column-2': this.numberOfColumns == 2,
|
|
1083
|
-
'column-3': this.numberOfColumns >= 3,
|
|
1084
|
-
});
|
|
1085
|
-
const optionsViewport = cs('options-viewport', {
|
|
1086
|
-
'hidden': !this.isOpen,
|
|
1087
|
-
[this.scrollable]: this.scrollable === 'horizontal' || this.scrollable === 'vertical',
|
|
1088
|
-
'horizontal vertical': this.scrollable === 'both',
|
|
1089
|
-
'flex': flex,
|
|
1090
|
-
// 'empty': this.searchResults[0] as any == '-1'
|
|
1091
|
-
});
|
|
1092
|
-
const captionClasses = cs('size-1', 'input-caption', 'caption-' + captionType);
|
|
1093
|
-
const container = cs('container', {
|
|
1094
|
-
'error': captionType == 'error' ? true : false,
|
|
1095
|
-
'full-width': fullWidth
|
|
1096
|
-
});
|
|
1097
|
-
const selectedText = cs('selected-text', {
|
|
1098
|
-
'selected-tags': this.onShowVisibleTags.length > 0 || this.onShowHiddenTags.length > 0
|
|
1099
|
-
});
|
|
1100
|
-
const hostClasses = cs(this.hidden ? 'hidden' : null);
|
|
1101
|
-
var optionViewportStyle = {
|
|
1102
|
-
'width': this.viewportMinWidth != null || this.viewportMaxWidth != null ? 'max-content' :
|
|
1103
|
-
this.viewportWidth != "100%" ? this.viewportWidth :
|
|
1104
|
-
this.numberOfColumns > 1 ? 'auto' : '100%',
|
|
1105
|
-
'min-width': this.viewportMinWidth != null ? this.viewportMinWidth : null,
|
|
1106
|
-
'max-width': this.viewportMaxWidth != null ? this.viewportMaxWidth : null,
|
|
1107
|
-
};
|
|
1108
|
-
if (this.optionViewportStyleAlignment != {}) {
|
|
1109
|
-
optionViewportStyle = Object.assign(Object.assign({}, optionViewportStyle), this.optionViewportStyleAlignment);
|
|
1110
|
-
}
|
|
1111
|
-
// if(this.viewportWidth != "100%" ){
|
|
1112
|
-
// optionViewportStyle = {...{'width': 'max-content', 'min-width': this.viewportWidth}}
|
|
1113
|
-
// }
|
|
1114
|
-
const customStyleOtherTag = {
|
|
1115
|
-
'cursor': 'pointer',
|
|
1116
|
-
'white-space': 'nowrap',
|
|
1117
|
-
// 'width': '134px',
|
|
1118
|
-
// 'display': '-webkit-box',
|
|
1119
|
-
// '-webkit-line-clamp': '1',
|
|
1120
|
-
// '-webkit-box-orient': 'vertical',
|
|
1121
|
-
// 'overflow': 'hidden'
|
|
1122
|
-
};
|
|
1123
|
-
const customStyleTag = {
|
|
1124
|
-
'cursor': 'pointer',
|
|
1125
|
-
'max-width': '164px',
|
|
1126
|
-
// 'display': '-webkit-box',
|
|
1127
|
-
// '-webkit-line-clamp': '1',
|
|
1128
|
-
// '-webkit-box-orient': 'vertical',
|
|
1129
|
-
// 'overflow': 'hidden'
|
|
1130
|
-
// 'display': '-webkit-box',
|
|
1131
|
-
// 'overflow': 'hidden',
|
|
1132
|
-
// '-webkit-line-clamp': '1',
|
|
1133
|
-
// '-webkit-box-orient': 'vertical'
|
|
1134
|
-
'text-overflow': 'ellipsis',
|
|
1135
|
-
'white-space': 'nowrap',
|
|
1136
|
-
'overflow': 'hidden',
|
|
1137
|
-
'display': 'block'
|
|
1138
|
-
};
|
|
1139
|
-
return (h(Host, { class: hostClasses, onFocus: () => this.handleFocus(), onBlur: () => this.handleBlur() },
|
|
1140
|
-
h("div", { class: container },
|
|
1141
|
-
label && h("bcm-label", { onClick: () => this.handleOpen(false), tooltip: this.tooltip, type: captionType, value: label, required: required }),
|
|
1142
|
-
h("div", { id: "selected-container", class: selected, onClick: (e) => this.handleOpen(e), tabIndex: -1 },
|
|
1143
|
-
h("span", { class: selectedText, title: this.selectText && (this.selectText) },
|
|
1144
|
-
(this.selectText && (this.selectText)),
|
|
1145
|
-
((!this.selectText && (this.onShowVisibleTags.length > 0 || this.onShowHiddenTags.length > 0)) && (h("span", { id: "tagcontainer", class: "tag-container" },
|
|
1146
|
-
h("span", null, this.onShowVisibleTags.map((item) => (h("bcm-old-tag", { _internal_id: this._internal_id, customStyle: customStyleTag, onClick: () => this.handleClickTag(), type: "dissmisable", value: item[this.objectMapping['text']], title: item[this.objectMapping['text']], id: item[this.objectMapping['id']], class: "tag" })))),
|
|
1147
|
-
h("span", null, this.onShowHiddenTags.length > 0 && (h("bcm-old-tag", { _internal_id: this._internal_id, title: this.hiddenTagsString, customStyle: customStyleOtherTag, onClick: (e) => this.showHiddenTags(e), color: this.otherTagStatus ? 'prime-blue' : 'grey-9', type: "dissmisable", value: "+ " + this.onShowHiddenTags.length + " item" + (this.onShowHiddenTags.length > 1 ? 's' : '') + " selected", id: "other-tag" })))))),
|
|
1148
|
-
(!(this.selectText || this.onShowVisibleTags.length > 0 || this.onShowHiddenTags.length > 0) && placeholder && (h("span", { class: "placeholder" },
|
|
1149
|
-
" ",
|
|
1150
|
-
placeholder,
|
|
1151
|
-
" ")))),
|
|
1152
|
-
h("div", { class: "buttons" },
|
|
1153
|
-
clearable && value && (h("button", { class: "select-clear-button", onClick: (e) => this.clickClear(e) },
|
|
1154
|
-
h("bcm-icon", { icon: "far fa-times-circle" }))),
|
|
1155
|
-
h("span", { class: this.isOpen ? 'open' : 'close' },
|
|
1156
|
-
h("bcm-icon", { icon: "far fa-caret-up" })))),
|
|
1157
|
-
h("div", { class: menu, style: optionViewportStyle },
|
|
1158
|
-
h("div", { class: optionsViewport })),
|
|
1159
|
-
!noCaption && (h("div", { class: "caption-area" }, captionType == "error"
|
|
1160
|
-
? h("span", { class: captionClasses },
|
|
1161
|
-
" ",
|
|
1162
|
-
captionError,
|
|
1163
|
-
" ")
|
|
1164
|
-
: caption && h("span", { class: captionClasses },
|
|
1165
|
-
" ",
|
|
1166
|
-
caption,
|
|
1167
|
-
" "))))));
|
|
1168
|
-
}
|
|
1169
|
-
static get is() { return "bcm-select"; }
|
|
1170
|
-
static get encapsulation() { return "shadow"; }
|
|
1171
|
-
static get originalStyleUrls() { return {
|
|
1172
|
-
"$": ["select.scss"]
|
|
1173
|
-
}; }
|
|
1174
|
-
static get styleUrls() { return {
|
|
1175
|
-
"$": ["select.css"]
|
|
1176
|
-
}; }
|
|
1177
|
-
static get properties() { return {
|
|
1178
|
-
"_id": {
|
|
1179
|
-
"type": "string",
|
|
1180
|
-
"mutable": true,
|
|
1181
|
-
"complexType": {
|
|
1182
|
-
"original": "string",
|
|
1183
|
-
"resolved": "string",
|
|
1184
|
-
"references": {}
|
|
1185
|
-
},
|
|
1186
|
-
"required": false,
|
|
1187
|
-
"optional": false,
|
|
1188
|
-
"docs": {
|
|
1189
|
-
"tags": [],
|
|
1190
|
-
"text": ""
|
|
1191
|
-
},
|
|
1192
|
-
"attribute": "id",
|
|
1193
|
-
"reflect": true,
|
|
1194
|
-
"defaultValue": "(Math.random() * 4).toString(16).replace('.', '')"
|
|
1195
|
-
},
|
|
1196
|
-
"value": {
|
|
1197
|
-
"type": "string",
|
|
1198
|
-
"mutable": true,
|
|
1199
|
-
"complexType": {
|
|
1200
|
-
"original": "string",
|
|
1201
|
-
"resolved": "string",
|
|
1202
|
-
"references": {}
|
|
1203
|
-
},
|
|
1204
|
-
"required": false,
|
|
1205
|
-
"optional": false,
|
|
1206
|
-
"docs": {
|
|
1207
|
-
"tags": [],
|
|
1208
|
-
"text": ""
|
|
1209
|
-
},
|
|
1210
|
-
"attribute": "value",
|
|
1211
|
-
"reflect": false,
|
|
1212
|
-
"defaultValue": "null"
|
|
1213
|
-
},
|
|
1214
|
-
"value2": {
|
|
1215
|
-
"type": "string",
|
|
1216
|
-
"mutable": true,
|
|
1217
|
-
"complexType": {
|
|
1218
|
-
"original": "string",
|
|
1219
|
-
"resolved": "string",
|
|
1220
|
-
"references": {}
|
|
1221
|
-
},
|
|
1222
|
-
"required": false,
|
|
1223
|
-
"optional": false,
|
|
1224
|
-
"docs": {
|
|
1225
|
-
"tags": [],
|
|
1226
|
-
"text": ""
|
|
1227
|
-
},
|
|
1228
|
-
"attribute": "value2",
|
|
1229
|
-
"reflect": false,
|
|
1230
|
-
"defaultValue": "null"
|
|
1231
|
-
},
|
|
1232
|
-
"size": {
|
|
1233
|
-
"type": "string",
|
|
1234
|
-
"mutable": true,
|
|
1235
|
-
"complexType": {
|
|
1236
|
-
"original": "'small' | 'medium' | 'large'",
|
|
1237
|
-
"resolved": "\"large\" | \"medium\" | \"small\"",
|
|
1238
|
-
"references": {}
|
|
1239
|
-
},
|
|
1240
|
-
"required": false,
|
|
1241
|
-
"optional": false,
|
|
1242
|
-
"docs": {
|
|
1243
|
-
"tags": [],
|
|
1244
|
-
"text": ""
|
|
1245
|
-
},
|
|
1246
|
-
"attribute": "size",
|
|
1247
|
-
"reflect": false,
|
|
1248
|
-
"defaultValue": "'medium'"
|
|
1249
|
-
},
|
|
1250
|
-
"scrollable": {
|
|
1251
|
-
"type": "string",
|
|
1252
|
-
"mutable": true,
|
|
1253
|
-
"complexType": {
|
|
1254
|
-
"original": "'none' | 'vertical' | 'horizontal' | 'both'",
|
|
1255
|
-
"resolved": "\"both\" | \"horizontal\" | \"none\" | \"vertical\"",
|
|
1256
|
-
"references": {}
|
|
1257
|
-
},
|
|
1258
|
-
"required": false,
|
|
1259
|
-
"optional": false,
|
|
1260
|
-
"docs": {
|
|
1261
|
-
"tags": [],
|
|
1262
|
-
"text": ""
|
|
1263
|
-
},
|
|
1264
|
-
"attribute": "scrollable",
|
|
1265
|
-
"reflect": false,
|
|
1266
|
-
"defaultValue": "'vertical'"
|
|
1267
|
-
},
|
|
1268
|
-
"clearable": {
|
|
1269
|
-
"type": "boolean",
|
|
1270
|
-
"mutable": true,
|
|
1271
|
-
"complexType": {
|
|
1272
|
-
"original": "boolean",
|
|
1273
|
-
"resolved": "boolean",
|
|
1274
|
-
"references": {}
|
|
1275
|
-
},
|
|
1276
|
-
"required": false,
|
|
1277
|
-
"optional": false,
|
|
1278
|
-
"docs": {
|
|
1279
|
-
"tags": [],
|
|
1280
|
-
"text": ""
|
|
1281
|
-
},
|
|
1282
|
-
"attribute": "clearable",
|
|
1283
|
-
"reflect": false
|
|
1284
|
-
},
|
|
1285
|
-
"label": {
|
|
1286
|
-
"type": "string",
|
|
1287
|
-
"mutable": true,
|
|
1288
|
-
"complexType": {
|
|
1289
|
-
"original": "string",
|
|
1290
|
-
"resolved": "string",
|
|
1291
|
-
"references": {}
|
|
1292
|
-
},
|
|
1293
|
-
"required": false,
|
|
1294
|
-
"optional": false,
|
|
1295
|
-
"docs": {
|
|
1296
|
-
"tags": [],
|
|
1297
|
-
"text": ""
|
|
1298
|
-
},
|
|
1299
|
-
"attribute": "label",
|
|
1300
|
-
"reflect": false
|
|
1301
|
-
},
|
|
1302
|
-
"placeholder": {
|
|
1303
|
-
"type": "string",
|
|
1304
|
-
"mutable": true,
|
|
1305
|
-
"complexType": {
|
|
1306
|
-
"original": "string",
|
|
1307
|
-
"resolved": "string",
|
|
1308
|
-
"references": {}
|
|
1309
|
-
},
|
|
1310
|
-
"required": false,
|
|
1311
|
-
"optional": false,
|
|
1312
|
-
"docs": {
|
|
1313
|
-
"tags": [],
|
|
1314
|
-
"text": ""
|
|
1315
|
-
},
|
|
1316
|
-
"attribute": "placeholder",
|
|
1317
|
-
"reflect": false,
|
|
1318
|
-
"defaultValue": "\"Choose an option\""
|
|
1319
|
-
},
|
|
1320
|
-
"search": {
|
|
1321
|
-
"type": "boolean",
|
|
1322
|
-
"mutable": true,
|
|
1323
|
-
"complexType": {
|
|
1324
|
-
"original": "boolean",
|
|
1325
|
-
"resolved": "boolean",
|
|
1326
|
-
"references": {}
|
|
1327
|
-
},
|
|
1328
|
-
"required": false,
|
|
1329
|
-
"optional": false,
|
|
1330
|
-
"docs": {
|
|
1331
|
-
"tags": [],
|
|
1332
|
-
"text": ""
|
|
1333
|
-
},
|
|
1334
|
-
"attribute": "search",
|
|
1335
|
-
"reflect": false,
|
|
1336
|
-
"defaultValue": "false"
|
|
1337
|
-
},
|
|
1338
|
-
"noCaption": {
|
|
1339
|
-
"type": "boolean",
|
|
1340
|
-
"mutable": true,
|
|
1341
|
-
"complexType": {
|
|
1342
|
-
"original": "boolean",
|
|
1343
|
-
"resolved": "boolean",
|
|
1344
|
-
"references": {}
|
|
1345
|
-
},
|
|
1346
|
-
"required": false,
|
|
1347
|
-
"optional": false,
|
|
1348
|
-
"docs": {
|
|
1349
|
-
"tags": [],
|
|
1350
|
-
"text": ""
|
|
1351
|
-
},
|
|
1352
|
-
"attribute": "no-caption",
|
|
1353
|
-
"reflect": false,
|
|
1354
|
-
"defaultValue": "false"
|
|
1355
|
-
},
|
|
1356
|
-
"caption": {
|
|
1357
|
-
"type": "string",
|
|
1358
|
-
"mutable": true,
|
|
1359
|
-
"complexType": {
|
|
1360
|
-
"original": "string",
|
|
1361
|
-
"resolved": "string",
|
|
1362
|
-
"references": {}
|
|
1363
|
-
},
|
|
1364
|
-
"required": false,
|
|
1365
|
-
"optional": false,
|
|
1366
|
-
"docs": {
|
|
1367
|
-
"tags": [],
|
|
1368
|
-
"text": ""
|
|
1369
|
-
},
|
|
1370
|
-
"attribute": "caption",
|
|
1371
|
-
"reflect": false
|
|
1372
|
-
},
|
|
1373
|
-
"captionError": {
|
|
1374
|
-
"type": "string",
|
|
1375
|
-
"mutable": true,
|
|
1376
|
-
"complexType": {
|
|
1377
|
-
"original": "string",
|
|
1378
|
-
"resolved": "string",
|
|
1379
|
-
"references": {}
|
|
1380
|
-
},
|
|
1381
|
-
"required": false,
|
|
1382
|
-
"optional": false,
|
|
1383
|
-
"docs": {
|
|
1384
|
-
"tags": [],
|
|
1385
|
-
"text": ""
|
|
1386
|
-
},
|
|
1387
|
-
"attribute": "caption-error",
|
|
1388
|
-
"reflect": false
|
|
1389
|
-
},
|
|
1390
|
-
"captionType": {
|
|
1391
|
-
"type": "string",
|
|
1392
|
-
"mutable": true,
|
|
1393
|
-
"complexType": {
|
|
1394
|
-
"original": "'primary' | 'success' | 'warning' | 'error' | 'default'",
|
|
1395
|
-
"resolved": "\"default\" | \"error\" | \"primary\" | \"success\" | \"warning\"",
|
|
1396
|
-
"references": {}
|
|
1397
|
-
},
|
|
1398
|
-
"required": false,
|
|
1399
|
-
"optional": false,
|
|
1400
|
-
"docs": {
|
|
1401
|
-
"tags": [],
|
|
1402
|
-
"text": ""
|
|
1403
|
-
},
|
|
1404
|
-
"attribute": "caption-type",
|
|
1405
|
-
"reflect": false,
|
|
1406
|
-
"defaultValue": "'default'"
|
|
1407
|
-
},
|
|
1408
|
-
"disabled": {
|
|
1409
|
-
"type": "boolean",
|
|
1410
|
-
"mutable": true,
|
|
1411
|
-
"complexType": {
|
|
1412
|
-
"original": "boolean",
|
|
1413
|
-
"resolved": "boolean",
|
|
1414
|
-
"references": {}
|
|
1415
|
-
},
|
|
1416
|
-
"required": false,
|
|
1417
|
-
"optional": false,
|
|
1418
|
-
"docs": {
|
|
1419
|
-
"tags": [],
|
|
1420
|
-
"text": ""
|
|
1421
|
-
},
|
|
1422
|
-
"attribute": "disabled",
|
|
1423
|
-
"reflect": false
|
|
1424
|
-
},
|
|
1425
|
-
"flex": {
|
|
1426
|
-
"type": "boolean",
|
|
1427
|
-
"mutable": true,
|
|
1428
|
-
"complexType": {
|
|
1429
|
-
"original": "boolean",
|
|
1430
|
-
"resolved": "boolean",
|
|
1431
|
-
"references": {}
|
|
1432
|
-
},
|
|
1433
|
-
"required": false,
|
|
1434
|
-
"optional": false,
|
|
1435
|
-
"docs": {
|
|
1436
|
-
"tags": [],
|
|
1437
|
-
"text": ""
|
|
1438
|
-
},
|
|
1439
|
-
"attribute": "flex",
|
|
1440
|
-
"reflect": false
|
|
1441
|
-
},
|
|
1442
|
-
"name": {
|
|
1443
|
-
"type": "string",
|
|
1444
|
-
"mutable": true,
|
|
1445
|
-
"complexType": {
|
|
1446
|
-
"original": "string",
|
|
1447
|
-
"resolved": "string",
|
|
1448
|
-
"references": {}
|
|
1449
|
-
},
|
|
1450
|
-
"required": false,
|
|
1451
|
-
"optional": false,
|
|
1452
|
-
"docs": {
|
|
1453
|
-
"tags": [],
|
|
1454
|
-
"text": ""
|
|
1455
|
-
},
|
|
1456
|
-
"attribute": "name",
|
|
1457
|
-
"reflect": false
|
|
1458
|
-
},
|
|
1459
|
-
"searchFields": {
|
|
1460
|
-
"type": "unknown",
|
|
1461
|
-
"mutable": true,
|
|
1462
|
-
"complexType": {
|
|
1463
|
-
"original": "Array<string>",
|
|
1464
|
-
"resolved": "string[]",
|
|
1465
|
-
"references": {
|
|
1466
|
-
"Array": {
|
|
1467
|
-
"location": "global"
|
|
1468
|
-
}
|
|
1469
|
-
}
|
|
1470
|
-
},
|
|
1471
|
-
"required": false,
|
|
1472
|
-
"optional": false,
|
|
1473
|
-
"docs": {
|
|
1474
|
-
"tags": [],
|
|
1475
|
-
"text": ""
|
|
1476
|
-
},
|
|
1477
|
-
"defaultValue": "['value', 'text']"
|
|
1478
|
-
},
|
|
1479
|
-
"fullWidth": {
|
|
1480
|
-
"type": "boolean",
|
|
1481
|
-
"mutable": true,
|
|
1482
|
-
"complexType": {
|
|
1483
|
-
"original": "boolean",
|
|
1484
|
-
"resolved": "boolean",
|
|
1485
|
-
"references": {}
|
|
1486
|
-
},
|
|
1487
|
-
"required": false,
|
|
1488
|
-
"optional": false,
|
|
1489
|
-
"docs": {
|
|
1490
|
-
"tags": [],
|
|
1491
|
-
"text": ""
|
|
1492
|
-
},
|
|
1493
|
-
"attribute": "full-width",
|
|
1494
|
-
"reflect": false,
|
|
1495
|
-
"defaultValue": "false"
|
|
1496
|
-
},
|
|
1497
|
-
"defaultValue": {
|
|
1498
|
-
"type": "string",
|
|
1499
|
-
"mutable": true,
|
|
1500
|
-
"complexType": {
|
|
1501
|
-
"original": "string",
|
|
1502
|
-
"resolved": "string",
|
|
1503
|
-
"references": {}
|
|
1504
|
-
},
|
|
1505
|
-
"required": false,
|
|
1506
|
-
"optional": false,
|
|
1507
|
-
"docs": {
|
|
1508
|
-
"tags": [],
|
|
1509
|
-
"text": ""
|
|
1510
|
-
},
|
|
1511
|
-
"attribute": "default-value",
|
|
1512
|
-
"reflect": false
|
|
1513
|
-
},
|
|
1514
|
-
"hidden": {
|
|
1515
|
-
"type": "boolean",
|
|
1516
|
-
"mutable": true,
|
|
1517
|
-
"complexType": {
|
|
1518
|
-
"original": "boolean",
|
|
1519
|
-
"resolved": "boolean",
|
|
1520
|
-
"references": {}
|
|
1521
|
-
},
|
|
1522
|
-
"required": false,
|
|
1523
|
-
"optional": false,
|
|
1524
|
-
"docs": {
|
|
1525
|
-
"tags": [],
|
|
1526
|
-
"text": ""
|
|
1527
|
-
},
|
|
1528
|
-
"attribute": "hidden",
|
|
1529
|
-
"reflect": false,
|
|
1530
|
-
"defaultValue": "false"
|
|
1531
|
-
},
|
|
1532
|
-
"checkboxes": {
|
|
1533
|
-
"type": "boolean",
|
|
1534
|
-
"mutable": true,
|
|
1535
|
-
"complexType": {
|
|
1536
|
-
"original": "boolean",
|
|
1537
|
-
"resolved": "boolean",
|
|
1538
|
-
"references": {}
|
|
1539
|
-
},
|
|
1540
|
-
"required": false,
|
|
1541
|
-
"optional": false,
|
|
1542
|
-
"docs": {
|
|
1543
|
-
"tags": [],
|
|
1544
|
-
"text": ""
|
|
1545
|
-
},
|
|
1546
|
-
"attribute": "checkboxes",
|
|
1547
|
-
"reflect": false,
|
|
1548
|
-
"defaultValue": "false"
|
|
1549
|
-
},
|
|
1550
|
-
"searchable": {
|
|
1551
|
-
"type": "boolean",
|
|
1552
|
-
"mutable": true,
|
|
1553
|
-
"complexType": {
|
|
1554
|
-
"original": "boolean",
|
|
1555
|
-
"resolved": "boolean",
|
|
1556
|
-
"references": {}
|
|
1557
|
-
},
|
|
1558
|
-
"required": false,
|
|
1559
|
-
"optional": false,
|
|
1560
|
-
"docs": {
|
|
1561
|
-
"tags": [],
|
|
1562
|
-
"text": ""
|
|
1563
|
-
},
|
|
1564
|
-
"attribute": "searchable",
|
|
1565
|
-
"reflect": false,
|
|
1566
|
-
"defaultValue": "false"
|
|
1567
|
-
},
|
|
1568
|
-
"required": {
|
|
1569
|
-
"type": "boolean",
|
|
1570
|
-
"mutable": true,
|
|
1571
|
-
"complexType": {
|
|
1572
|
-
"original": "boolean",
|
|
1573
|
-
"resolved": "boolean",
|
|
1574
|
-
"references": {}
|
|
1575
|
-
},
|
|
1576
|
-
"required": false,
|
|
1577
|
-
"optional": false,
|
|
1578
|
-
"docs": {
|
|
1579
|
-
"tags": [],
|
|
1580
|
-
"text": ""
|
|
1581
|
-
},
|
|
1582
|
-
"attribute": "required",
|
|
1583
|
-
"reflect": false,
|
|
1584
|
-
"defaultValue": "false"
|
|
1585
|
-
},
|
|
1586
|
-
"treeview": {
|
|
1587
|
-
"type": "boolean",
|
|
1588
|
-
"mutable": true,
|
|
1589
|
-
"complexType": {
|
|
1590
|
-
"original": "boolean",
|
|
1591
|
-
"resolved": "boolean",
|
|
1592
|
-
"references": {}
|
|
1593
|
-
},
|
|
1594
|
-
"required": false,
|
|
1595
|
-
"optional": false,
|
|
1596
|
-
"docs": {
|
|
1597
|
-
"tags": [],
|
|
1598
|
-
"text": ""
|
|
1599
|
-
},
|
|
1600
|
-
"attribute": "treeview",
|
|
1601
|
-
"reflect": false,
|
|
1602
|
-
"defaultValue": "false"
|
|
1603
|
-
},
|
|
1604
|
-
"numberOfColumns": {
|
|
1605
|
-
"type": "number",
|
|
1606
|
-
"mutable": true,
|
|
1607
|
-
"complexType": {
|
|
1608
|
-
"original": "number",
|
|
1609
|
-
"resolved": "number",
|
|
1610
|
-
"references": {}
|
|
1611
|
-
},
|
|
1612
|
-
"required": false,
|
|
1613
|
-
"optional": false,
|
|
1614
|
-
"docs": {
|
|
1615
|
-
"tags": [],
|
|
1616
|
-
"text": ""
|
|
1617
|
-
},
|
|
1618
|
-
"attribute": "number-of-columns",
|
|
1619
|
-
"reflect": false,
|
|
1620
|
-
"defaultValue": "1"
|
|
1621
|
-
},
|
|
1622
|
-
"viewportWidth": {
|
|
1623
|
-
"type": "string",
|
|
1624
|
-
"mutable": true,
|
|
1625
|
-
"complexType": {
|
|
1626
|
-
"original": "string",
|
|
1627
|
-
"resolved": "string",
|
|
1628
|
-
"references": {}
|
|
1629
|
-
},
|
|
1630
|
-
"required": false,
|
|
1631
|
-
"optional": false,
|
|
1632
|
-
"docs": {
|
|
1633
|
-
"tags": [],
|
|
1634
|
-
"text": ""
|
|
1635
|
-
},
|
|
1636
|
-
"attribute": "viewport-width",
|
|
1637
|
-
"reflect": false,
|
|
1638
|
-
"defaultValue": "\"100%\""
|
|
1639
|
-
},
|
|
1640
|
-
"viewportMinWidth": {
|
|
1641
|
-
"type": "string",
|
|
1642
|
-
"mutable": true,
|
|
1643
|
-
"complexType": {
|
|
1644
|
-
"original": "string",
|
|
1645
|
-
"resolved": "string",
|
|
1646
|
-
"references": {}
|
|
1647
|
-
},
|
|
1648
|
-
"required": false,
|
|
1649
|
-
"optional": false,
|
|
1650
|
-
"docs": {
|
|
1651
|
-
"tags": [],
|
|
1652
|
-
"text": ""
|
|
1653
|
-
},
|
|
1654
|
-
"attribute": "viewport-min-width",
|
|
1655
|
-
"reflect": false,
|
|
1656
|
-
"defaultValue": "null"
|
|
1657
|
-
},
|
|
1658
|
-
"viewportMaxWidth": {
|
|
1659
|
-
"type": "string",
|
|
1660
|
-
"mutable": true,
|
|
1661
|
-
"complexType": {
|
|
1662
|
-
"original": "string",
|
|
1663
|
-
"resolved": "string",
|
|
1664
|
-
"references": {}
|
|
1665
|
-
},
|
|
1666
|
-
"required": false,
|
|
1667
|
-
"optional": false,
|
|
1668
|
-
"docs": {
|
|
1669
|
-
"tags": [],
|
|
1670
|
-
"text": ""
|
|
1671
|
-
},
|
|
1672
|
-
"attribute": "viewport-max-width",
|
|
1673
|
-
"reflect": false,
|
|
1674
|
-
"defaultValue": "null"
|
|
1675
|
-
},
|
|
1676
|
-
"template": {
|
|
1677
|
-
"type": "string",
|
|
1678
|
-
"mutable": true,
|
|
1679
|
-
"complexType": {
|
|
1680
|
-
"original": "string",
|
|
1681
|
-
"resolved": "string",
|
|
1682
|
-
"references": {}
|
|
1683
|
-
},
|
|
1684
|
-
"required": false,
|
|
1685
|
-
"optional": false,
|
|
1686
|
-
"docs": {
|
|
1687
|
-
"tags": [],
|
|
1688
|
-
"text": ""
|
|
1689
|
-
},
|
|
1690
|
-
"attribute": "template",
|
|
1691
|
-
"reflect": false,
|
|
1692
|
-
"defaultValue": "null"
|
|
1693
|
-
},
|
|
1694
|
-
"maxHeight": {
|
|
1695
|
-
"type": "string",
|
|
1696
|
-
"mutable": true,
|
|
1697
|
-
"complexType": {
|
|
1698
|
-
"original": "string",
|
|
1699
|
-
"resolved": "string",
|
|
1700
|
-
"references": {}
|
|
1701
|
-
},
|
|
1702
|
-
"required": false,
|
|
1703
|
-
"optional": false,
|
|
1704
|
-
"docs": {
|
|
1705
|
-
"tags": [],
|
|
1706
|
-
"text": ""
|
|
1707
|
-
},
|
|
1708
|
-
"attribute": "max-height",
|
|
1709
|
-
"reflect": false,
|
|
1710
|
-
"defaultValue": "\"200px\""
|
|
1711
|
-
},
|
|
1712
|
-
"infoFooter": {
|
|
1713
|
-
"type": "boolean",
|
|
1714
|
-
"mutable": true,
|
|
1715
|
-
"complexType": {
|
|
1716
|
-
"original": "boolean",
|
|
1717
|
-
"resolved": "boolean",
|
|
1718
|
-
"references": {}
|
|
1719
|
-
},
|
|
1720
|
-
"required": false,
|
|
1721
|
-
"optional": false,
|
|
1722
|
-
"docs": {
|
|
1723
|
-
"tags": [],
|
|
1724
|
-
"text": ""
|
|
1725
|
-
},
|
|
1726
|
-
"attribute": "info-footer",
|
|
1727
|
-
"reflect": false,
|
|
1728
|
-
"defaultValue": "false"
|
|
1729
|
-
},
|
|
1730
|
-
"_internal_id": {
|
|
1731
|
-
"type": "string",
|
|
1732
|
-
"mutable": true,
|
|
1733
|
-
"complexType": {
|
|
1734
|
-
"original": "string",
|
|
1735
|
-
"resolved": "string",
|
|
1736
|
-
"references": {}
|
|
1737
|
-
},
|
|
1738
|
-
"required": false,
|
|
1739
|
-
"optional": false,
|
|
1740
|
-
"docs": {
|
|
1741
|
-
"tags": [],
|
|
1742
|
-
"text": ""
|
|
1743
|
-
},
|
|
1744
|
-
"attribute": "_internal_id",
|
|
1745
|
-
"reflect": true,
|
|
1746
|
-
"defaultValue": "(Math.random() * 4).toString(16).replace('.', '')"
|
|
1747
|
-
},
|
|
1748
|
-
"alignment": {
|
|
1749
|
-
"type": "string",
|
|
1750
|
-
"mutable": true,
|
|
1751
|
-
"complexType": {
|
|
1752
|
-
"original": "'left' | 'right' | 'default'",
|
|
1753
|
-
"resolved": "\"default\" | \"left\" | \"right\"",
|
|
1754
|
-
"references": {}
|
|
1755
|
-
},
|
|
1756
|
-
"required": false,
|
|
1757
|
-
"optional": false,
|
|
1758
|
-
"docs": {
|
|
1759
|
-
"tags": [],
|
|
1760
|
-
"text": ""
|
|
1761
|
-
},
|
|
1762
|
-
"attribute": "alignment",
|
|
1763
|
-
"reflect": false,
|
|
1764
|
-
"defaultValue": "'left'"
|
|
1765
|
-
},
|
|
1766
|
-
"_items": {
|
|
1767
|
-
"type": "any",
|
|
1768
|
-
"mutable": true,
|
|
1769
|
-
"complexType": {
|
|
1770
|
-
"original": "any",
|
|
1771
|
-
"resolved": "any",
|
|
1772
|
-
"references": {}
|
|
1773
|
-
},
|
|
1774
|
-
"required": false,
|
|
1775
|
-
"optional": false,
|
|
1776
|
-
"docs": {
|
|
1777
|
-
"tags": [],
|
|
1778
|
-
"text": ""
|
|
1779
|
-
},
|
|
1780
|
-
"attribute": "_items",
|
|
1781
|
-
"reflect": false,
|
|
1782
|
-
"defaultValue": "null"
|
|
1783
|
-
},
|
|
1784
|
-
"_data": {
|
|
1785
|
-
"type": "any",
|
|
1786
|
-
"mutable": true,
|
|
1787
|
-
"complexType": {
|
|
1788
|
-
"original": "any",
|
|
1789
|
-
"resolved": "any",
|
|
1790
|
-
"references": {}
|
|
1791
|
-
},
|
|
1792
|
-
"required": false,
|
|
1793
|
-
"optional": false,
|
|
1794
|
-
"docs": {
|
|
1795
|
-
"tags": [],
|
|
1796
|
-
"text": ""
|
|
1797
|
-
},
|
|
1798
|
-
"attribute": "_data",
|
|
1799
|
-
"reflect": false,
|
|
1800
|
-
"defaultValue": "null"
|
|
1801
|
-
},
|
|
1802
|
-
"placement": {
|
|
1803
|
-
"type": "string",
|
|
1804
|
-
"mutable": true,
|
|
1805
|
-
"complexType": {
|
|
1806
|
-
"original": "PlacementTypes",
|
|
1807
|
-
"resolved": "\"bottom\" | \"bottom-end\" | \"bottom-start\" | \"left\" | \"left-end\" | \"left-start\" | \"right\" | \"right-end\" | \"right-start\" | \"top\" | \"top-end\" | \"top-start\"",
|
|
1808
|
-
"references": {
|
|
1809
|
-
"PlacementTypes": {
|
|
1810
|
-
"location": "import",
|
|
1811
|
-
"path": "../../../models/bcm-types"
|
|
1812
|
-
}
|
|
1813
|
-
}
|
|
1814
|
-
},
|
|
1815
|
-
"required": false,
|
|
1816
|
-
"optional": false,
|
|
1817
|
-
"docs": {
|
|
1818
|
-
"tags": [],
|
|
1819
|
-
"text": ""
|
|
1820
|
-
},
|
|
1821
|
-
"attribute": "placement",
|
|
1822
|
-
"reflect": true,
|
|
1823
|
-
"defaultValue": "'bottom-start'"
|
|
1824
|
-
},
|
|
1825
|
-
"tooltip": {
|
|
1826
|
-
"type": "string",
|
|
1827
|
-
"mutable": true,
|
|
1828
|
-
"complexType": {
|
|
1829
|
-
"original": "string",
|
|
1830
|
-
"resolved": "string",
|
|
1831
|
-
"references": {}
|
|
1832
|
-
},
|
|
1833
|
-
"required": false,
|
|
1834
|
-
"optional": false,
|
|
1835
|
-
"docs": {
|
|
1836
|
-
"tags": [],
|
|
1837
|
-
"text": ""
|
|
1838
|
-
},
|
|
1839
|
-
"attribute": "tooltip",
|
|
1840
|
-
"reflect": false
|
|
1841
|
-
}
|
|
1842
|
-
}; }
|
|
1843
|
-
static get states() { return {
|
|
1844
|
-
"selectText": {},
|
|
1845
|
-
"isOpen": {},
|
|
1846
|
-
"captionCache": {},
|
|
1847
|
-
"captionTypeCache": {}
|
|
1848
|
-
}; }
|
|
1849
|
-
static get events() { return [{
|
|
1850
|
-
"method": "change",
|
|
1851
|
-
"name": "bcm-change",
|
|
1852
|
-
"bubbles": true,
|
|
1853
|
-
"cancelable": true,
|
|
1854
|
-
"composed": true,
|
|
1855
|
-
"docs": {
|
|
1856
|
-
"tags": [],
|
|
1857
|
-
"text": ""
|
|
1858
|
-
},
|
|
1859
|
-
"complexType": {
|
|
1860
|
-
"original": "any",
|
|
1861
|
-
"resolved": "any",
|
|
1862
|
-
"references": {}
|
|
1863
|
-
}
|
|
1864
|
-
}, {
|
|
1865
|
-
"method": "clear",
|
|
1866
|
-
"name": "bcm-clear",
|
|
1867
|
-
"bubbles": true,
|
|
1868
|
-
"cancelable": true,
|
|
1869
|
-
"composed": true,
|
|
1870
|
-
"docs": {
|
|
1871
|
-
"tags": [],
|
|
1872
|
-
"text": ""
|
|
1873
|
-
},
|
|
1874
|
-
"complexType": {
|
|
1875
|
-
"original": "any",
|
|
1876
|
-
"resolved": "any",
|
|
1877
|
-
"references": {}
|
|
1878
|
-
}
|
|
1879
|
-
}, {
|
|
1880
|
-
"method": "focus",
|
|
1881
|
-
"name": "bcm-focus",
|
|
1882
|
-
"bubbles": true,
|
|
1883
|
-
"cancelable": true,
|
|
1884
|
-
"composed": true,
|
|
1885
|
-
"docs": {
|
|
1886
|
-
"tags": [],
|
|
1887
|
-
"text": ""
|
|
1888
|
-
},
|
|
1889
|
-
"complexType": {
|
|
1890
|
-
"original": "any",
|
|
1891
|
-
"resolved": "any",
|
|
1892
|
-
"references": {}
|
|
1893
|
-
}
|
|
1894
|
-
}, {
|
|
1895
|
-
"method": "blur",
|
|
1896
|
-
"name": "bcm-blur",
|
|
1897
|
-
"bubbles": true,
|
|
1898
|
-
"cancelable": true,
|
|
1899
|
-
"composed": true,
|
|
1900
|
-
"docs": {
|
|
1901
|
-
"tags": [],
|
|
1902
|
-
"text": ""
|
|
1903
|
-
},
|
|
1904
|
-
"complexType": {
|
|
1905
|
-
"original": "any",
|
|
1906
|
-
"resolved": "any",
|
|
1907
|
-
"references": {}
|
|
1908
|
-
}
|
|
1909
|
-
}, {
|
|
1910
|
-
"method": "listboxUnchecked",
|
|
1911
|
-
"name": "bcm-listbox-unchecked",
|
|
1912
|
-
"bubbles": true,
|
|
1913
|
-
"cancelable": true,
|
|
1914
|
-
"composed": true,
|
|
1915
|
-
"docs": {
|
|
1916
|
-
"tags": [],
|
|
1917
|
-
"text": ""
|
|
1918
|
-
},
|
|
1919
|
-
"complexType": {
|
|
1920
|
-
"original": "any",
|
|
1921
|
-
"resolved": "any",
|
|
1922
|
-
"references": {}
|
|
1923
|
-
}
|
|
1924
|
-
}, {
|
|
1925
|
-
"method": "listboxSendCheck",
|
|
1926
|
-
"name": "bcm-listbox-send-check",
|
|
1927
|
-
"bubbles": true,
|
|
1928
|
-
"cancelable": true,
|
|
1929
|
-
"composed": true,
|
|
1930
|
-
"docs": {
|
|
1931
|
-
"tags": [],
|
|
1932
|
-
"text": ""
|
|
1933
|
-
},
|
|
1934
|
-
"complexType": {
|
|
1935
|
-
"original": "any",
|
|
1936
|
-
"resolved": "any",
|
|
1937
|
-
"references": {}
|
|
1938
|
-
}
|
|
1939
|
-
}]; }
|
|
1940
|
-
static get methods() { return {
|
|
1941
|
-
"config": {
|
|
1942
|
-
"complexType": {
|
|
1943
|
-
"signature": "(_config: Array<object>) => Promise<void>",
|
|
1944
|
-
"parameters": [{
|
|
1945
|
-
"tags": [],
|
|
1946
|
-
"text": ""
|
|
1947
|
-
}],
|
|
1948
|
-
"references": {
|
|
1949
|
-
"Promise": {
|
|
1950
|
-
"location": "global"
|
|
1951
|
-
},
|
|
1952
|
-
"Array": {
|
|
1953
|
-
"location": "global"
|
|
1954
|
-
}
|
|
1955
|
-
},
|
|
1956
|
-
"return": "Promise<void>"
|
|
1957
|
-
},
|
|
1958
|
-
"docs": {
|
|
1959
|
-
"text": "",
|
|
1960
|
-
"tags": []
|
|
1961
|
-
}
|
|
1962
|
-
},
|
|
1963
|
-
"setData": {
|
|
1964
|
-
"complexType": {
|
|
1965
|
-
"signature": "(_data?: Array<object> | string) => Promise<void>",
|
|
1966
|
-
"parameters": [{
|
|
1967
|
-
"tags": [],
|
|
1968
|
-
"text": ""
|
|
1969
|
-
}],
|
|
1970
|
-
"references": {
|
|
1971
|
-
"Promise": {
|
|
1972
|
-
"location": "global"
|
|
1973
|
-
},
|
|
1974
|
-
"Array": {
|
|
1975
|
-
"location": "global"
|
|
1976
|
-
}
|
|
1977
|
-
},
|
|
1978
|
-
"return": "Promise<void>"
|
|
1979
|
-
},
|
|
1980
|
-
"docs": {
|
|
1981
|
-
"text": "",
|
|
1982
|
-
"tags": []
|
|
1983
|
-
}
|
|
1984
|
-
},
|
|
1985
|
-
"setDataAsync": {
|
|
1986
|
-
"complexType": {
|
|
1987
|
-
"signature": "(_data?: Array<object> | string) => Promise<void>",
|
|
1988
|
-
"parameters": [{
|
|
1989
|
-
"tags": [],
|
|
1990
|
-
"text": ""
|
|
1991
|
-
}],
|
|
1992
|
-
"references": {
|
|
1993
|
-
"Promise": {
|
|
1994
|
-
"location": "global"
|
|
1995
|
-
},
|
|
1996
|
-
"Array": {
|
|
1997
|
-
"location": "global"
|
|
1998
|
-
}
|
|
1999
|
-
},
|
|
2000
|
-
"return": "Promise<void>"
|
|
2001
|
-
},
|
|
2002
|
-
"docs": {
|
|
2003
|
-
"text": "",
|
|
2004
|
-
"tags": []
|
|
2005
|
-
}
|
|
2006
|
-
},
|
|
2007
|
-
"clearAndSelectSearch": {
|
|
2008
|
-
"complexType": {
|
|
2009
|
-
"signature": "(select?: boolean) => Promise<void>",
|
|
2010
|
-
"parameters": [{
|
|
2011
|
-
"tags": [],
|
|
2012
|
-
"text": ""
|
|
2013
|
-
}],
|
|
2014
|
-
"references": {
|
|
2015
|
-
"Promise": {
|
|
2016
|
-
"location": "global"
|
|
2017
|
-
}
|
|
2018
|
-
},
|
|
2019
|
-
"return": "Promise<void>"
|
|
2020
|
-
},
|
|
2021
|
-
"docs": {
|
|
2022
|
-
"text": "",
|
|
2023
|
-
"tags": []
|
|
2024
|
-
}
|
|
2025
|
-
},
|
|
2026
|
-
"selected": {
|
|
2027
|
-
"complexType": {
|
|
2028
|
-
"signature": "(id: any) => Promise<void>",
|
|
2029
|
-
"parameters": [{
|
|
2030
|
-
"tags": [],
|
|
2031
|
-
"text": ""
|
|
2032
|
-
}],
|
|
2033
|
-
"references": {
|
|
2034
|
-
"Promise": {
|
|
2035
|
-
"location": "global"
|
|
2036
|
-
}
|
|
2037
|
-
},
|
|
2038
|
-
"return": "Promise<void>"
|
|
2039
|
-
},
|
|
2040
|
-
"docs": {
|
|
2041
|
-
"text": "",
|
|
2042
|
-
"tags": []
|
|
2043
|
-
}
|
|
2044
|
-
},
|
|
2045
|
-
"addChecked": {
|
|
2046
|
-
"complexType": {
|
|
2047
|
-
"signature": "(id?: any[]) => Promise<void>",
|
|
2048
|
-
"parameters": [{
|
|
2049
|
-
"tags": [],
|
|
2050
|
-
"text": ""
|
|
2051
|
-
}],
|
|
2052
|
-
"references": {
|
|
2053
|
-
"Promise": {
|
|
2054
|
-
"location": "global"
|
|
2055
|
-
}
|
|
2056
|
-
},
|
|
2057
|
-
"return": "Promise<void>"
|
|
2058
|
-
},
|
|
2059
|
-
"docs": {
|
|
2060
|
-
"text": "",
|
|
2061
|
-
"tags": []
|
|
2062
|
-
}
|
|
2063
|
-
},
|
|
2064
|
-
"updateChecked": {
|
|
2065
|
-
"complexType": {
|
|
2066
|
-
"signature": "(id?: any[]) => Promise<void>",
|
|
2067
|
-
"parameters": [{
|
|
2068
|
-
"tags": [],
|
|
2069
|
-
"text": ""
|
|
2070
|
-
}],
|
|
2071
|
-
"references": {
|
|
2072
|
-
"Promise": {
|
|
2073
|
-
"location": "global"
|
|
2074
|
-
}
|
|
2075
|
-
},
|
|
2076
|
-
"return": "Promise<void>"
|
|
2077
|
-
},
|
|
2078
|
-
"docs": {
|
|
2079
|
-
"text": "",
|
|
2080
|
-
"tags": []
|
|
2081
|
-
}
|
|
2082
|
-
},
|
|
2083
|
-
"getValue": {
|
|
2084
|
-
"complexType": {
|
|
2085
|
-
"signature": "() => Promise<string>",
|
|
2086
|
-
"parameters": [],
|
|
2087
|
-
"references": {
|
|
2088
|
-
"Promise": {
|
|
2089
|
-
"location": "global"
|
|
2090
|
-
}
|
|
2091
|
-
},
|
|
2092
|
-
"return": "Promise<string>"
|
|
2093
|
-
},
|
|
2094
|
-
"docs": {
|
|
2095
|
-
"text": "",
|
|
2096
|
-
"tags": []
|
|
2097
|
-
}
|
|
2098
|
-
},
|
|
2099
|
-
"getChecklist": {
|
|
2100
|
-
"complexType": {
|
|
2101
|
-
"signature": "() => Promise<any[]>",
|
|
2102
|
-
"parameters": [],
|
|
2103
|
-
"references": {
|
|
2104
|
-
"Promise": {
|
|
2105
|
-
"location": "global"
|
|
2106
|
-
}
|
|
2107
|
-
},
|
|
2108
|
-
"return": "Promise<any[]>"
|
|
2109
|
-
},
|
|
2110
|
-
"docs": {
|
|
2111
|
-
"text": "",
|
|
2112
|
-
"tags": []
|
|
2113
|
-
}
|
|
2114
|
-
},
|
|
2115
|
-
"setClear": {
|
|
2116
|
-
"complexType": {
|
|
2117
|
-
"signature": "() => Promise<void>",
|
|
2118
|
-
"parameters": [],
|
|
2119
|
-
"references": {
|
|
2120
|
-
"Promise": {
|
|
2121
|
-
"location": "global"
|
|
2122
|
-
}
|
|
2123
|
-
},
|
|
2124
|
-
"return": "Promise<void>"
|
|
2125
|
-
},
|
|
2126
|
-
"docs": {
|
|
2127
|
-
"text": "",
|
|
2128
|
-
"tags": []
|
|
2129
|
-
}
|
|
2130
|
-
},
|
|
2131
|
-
"resetCaption": {
|
|
2132
|
-
"complexType": {
|
|
2133
|
-
"signature": "() => Promise<void>",
|
|
2134
|
-
"parameters": [],
|
|
2135
|
-
"references": {
|
|
2136
|
-
"Promise": {
|
|
2137
|
-
"location": "global"
|
|
2138
|
-
}
|
|
2139
|
-
},
|
|
2140
|
-
"return": "Promise<void>"
|
|
2141
|
-
},
|
|
2142
|
-
"docs": {
|
|
2143
|
-
"text": "",
|
|
2144
|
-
"tags": []
|
|
2145
|
-
}
|
|
2146
|
-
}
|
|
2147
|
-
}; }
|
|
2148
|
-
static get elementRef() { return "el"; }
|
|
2149
|
-
static get watchers() { return [{
|
|
2150
|
-
"propName": "value",
|
|
2151
|
-
"methodName": "handleChange"
|
|
2152
|
-
}, {
|
|
2153
|
-
"propName": "isOpen",
|
|
2154
|
-
"methodName": "handleOpenState"
|
|
2155
|
-
}]; }
|
|
2156
|
-
static get listeners() { return [{
|
|
2157
|
-
"name": "wheel",
|
|
2158
|
-
"method": "onwheelEvent",
|
|
2159
|
-
"target": "window",
|
|
2160
|
-
"capture": true,
|
|
2161
|
-
"passive": true
|
|
2162
|
-
}, {
|
|
2163
|
-
"name": "scroll",
|
|
2164
|
-
"method": "scrollEvent",
|
|
2165
|
-
"target": "document",
|
|
2166
|
-
"capture": true,
|
|
2167
|
-
"passive": true
|
|
2168
|
-
}, {
|
|
2169
|
-
"name": "resize",
|
|
2170
|
-
"method": "handleScreenResize",
|
|
2171
|
-
"target": "window",
|
|
2172
|
-
"capture": true,
|
|
2173
|
-
"passive": true
|
|
2174
|
-
}, {
|
|
2175
|
-
"name": "click",
|
|
2176
|
-
"method": "handleClickOutside",
|
|
2177
|
-
"target": "window",
|
|
2178
|
-
"capture": true,
|
|
2179
|
-
"passive": false
|
|
2180
|
-
}, {
|
|
2181
|
-
"name": "bcm-treeview-unchecked",
|
|
2182
|
-
"method": "handleTreeviewUnchecked",
|
|
2183
|
-
"target": "document",
|
|
2184
|
-
"capture": true,
|
|
2185
|
-
"passive": false
|
|
2186
|
-
}, {
|
|
2187
|
-
"name": "bcm-listbox-unchecked",
|
|
2188
|
-
"method": "handleListboxUnchecked",
|
|
2189
|
-
"target": "document",
|
|
2190
|
-
"capture": true,
|
|
2191
|
-
"passive": false
|
|
2192
|
-
}, {
|
|
2193
|
-
"name": "bcm-old-tag-dissmisable",
|
|
2194
|
-
"method": "bcmOldTagDissmisable",
|
|
2195
|
-
"target": "document",
|
|
2196
|
-
"capture": true,
|
|
2197
|
-
"passive": false
|
|
2198
|
-
}, {
|
|
2199
|
-
"name": "bcm-listbox-item-selected",
|
|
2200
|
-
"method": "handleListboxSelected",
|
|
2201
|
-
"target": "document",
|
|
2202
|
-
"capture": false,
|
|
2203
|
-
"passive": false
|
|
2204
|
-
}, {
|
|
2205
|
-
"name": "bcm-treeview-checklist",
|
|
2206
|
-
"method": "handleListboxCheckedList",
|
|
2207
|
-
"target": "document",
|
|
2208
|
-
"capture": false,
|
|
2209
|
-
"passive": false
|
|
2210
|
-
}, {
|
|
2211
|
-
"name": "bcm-listbox-checklist",
|
|
2212
|
-
"method": "handleTreeviewCheckedList",
|
|
2213
|
-
"target": "document",
|
|
2214
|
-
"capture": false,
|
|
2215
|
-
"passive": false
|
|
2216
|
-
}]; }
|
|
2217
|
-
}
|