bromcom-ui 2.7.36-rc.11 → 2.7.36-rc.12-0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bromcom-ui/bromcom-ui.esm.js +1 -1
- package/dist/bromcom-ui/{p-ab7bb0f5.entry.js → p-118e711c.entry.js} +1 -1
- package/dist/bromcom-ui/p-121e4ca5.js +5 -0
- package/dist/bromcom-ui/{p-ae99e107.entry.js → p-25f444e7.entry.js} +1 -1
- package/dist/bromcom-ui/{p-8a66f4e1.entry.js → p-26e68ec6.entry.js} +1 -1
- package/dist/bromcom-ui/{p-89241a6e.entry.js → p-27c8e474.entry.js} +1 -1
- package/dist/bromcom-ui/{p-ed6d2390.entry.js → p-2ec58d06.entry.js} +1 -1
- package/dist/bromcom-ui/{p-81dff515.entry.js → p-2fc5b5bd.entry.js} +1 -1
- package/dist/bromcom-ui/{p-c5c60034.entry.js → p-3cd7aace.entry.js} +1 -1
- package/dist/bromcom-ui/{p-c5dcbc05.entry.js → p-41d1f8b7.entry.js} +1 -1
- package/dist/bromcom-ui/{p-c268491e.entry.js → p-505b1f51.entry.js} +1 -1
- package/dist/bromcom-ui/{p-950af117.js → p-5d337c50.js} +1 -1
- package/dist/bromcom-ui/{p-a7f8e8af.entry.js → p-5e502028.entry.js} +1 -1
- package/dist/bromcom-ui/{p-a6fb1b6f.js → p-5f46c328.js} +1 -1
- package/dist/bromcom-ui/{p-d2101bab.entry.js → p-6711d370.entry.js} +1 -1
- package/dist/bromcom-ui/p-6b61ef5d.js +5 -0
- package/dist/bromcom-ui/{p-36168a4c.entry.js → p-76e8a020.entry.js} +1 -1
- package/dist/bromcom-ui/{p-49be07bc.entry.js → p-80cdeb5b.entry.js} +1 -1
- package/dist/bromcom-ui/{p-0505b430.entry.js → p-831fa0e8.entry.js} +1 -1
- package/dist/bromcom-ui/{p-ed8e6005.entry.js → p-83332466.entry.js} +1 -1
- package/dist/bromcom-ui/{p-1c211b1a.entry.js → p-885292bf.entry.js} +1 -1
- package/dist/bromcom-ui/{p-1e4c4c89.entry.js → p-8ad347e0.entry.js} +1 -1
- package/dist/bromcom-ui/{p-8a189e31.entry.js → p-965d1cb2.entry.js} +1 -1
- package/dist/bromcom-ui/{p-c00cbc3c.js → p-9ab7c5f9.js} +1 -1
- package/dist/bromcom-ui/{p-7386f0eb.entry.js → p-a18bb86e.entry.js} +1 -1
- package/dist/bromcom-ui/{p-d2f22f4b.js → p-a25d4102.js} +1 -1
- package/dist/bromcom-ui/{p-01951e92.entry.js → p-a57c40a2.entry.js} +1 -1
- package/dist/bromcom-ui/{p-16f3143c.entry.js → p-a6f49d6c.entry.js} +1 -1
- package/dist/bromcom-ui/{p-cef328d2.entry.js → p-a7acf688.entry.js} +1 -1
- package/dist/bromcom-ui/{p-50d9b950.entry.js → p-aedac6e4.entry.js} +1 -1
- package/dist/bromcom-ui/{p-d2d00b45.entry.js → p-b6c04be0.entry.js} +1 -1
- package/dist/bromcom-ui/{p-eefa89b6.entry.js → p-bb4a5441.entry.js} +1 -1
- package/dist/bromcom-ui/{p-1aa2c6f1.entry.js → p-bbeb3aa8.entry.js} +1 -1
- package/dist/bromcom-ui/{p-ae8f263e.entry.js → p-c0648349.entry.js} +1 -1
- package/dist/bromcom-ui/{p-b0ecb69b.entry.js → p-c0a49e8e.entry.js} +1 -1
- package/dist/bromcom-ui/{p-7d21bcdb.entry.js → p-ca48c3aa.entry.js} +1 -1
- package/dist/bromcom-ui/{p-febeb28c.entry.js → p-cad94133.entry.js} +1 -1
- package/dist/bromcom-ui/{p-fcd2ded4.entry.js → p-cf48e4bd.entry.js} +1 -1
- package/dist/bromcom-ui/{p-d8ef8c9d.entry.js → p-cf68a762.entry.js} +1 -1
- package/dist/bromcom-ui/{p-4595d534.entry.js → p-cfeac4c2.entry.js} +1 -1
- package/dist/bromcom-ui/{p-c8dae4b7.entry.js → p-d0ae1e25.entry.js} +1 -1
- package/dist/bromcom-ui/{p-b339c2f1.entry.js → p-e58a867d.entry.js} +1 -1
- package/dist/bromcom-ui/{p-97a630d5.entry.js → p-e97f680e.entry.js} +1 -1
- package/dist/bromcom-ui/{p-d7189ee1.entry.js → p-f559a41c.entry.js} +1 -1
- package/dist/bromcom-ui/p-fb65423b.js +5 -0
- package/dist/bromcom-ui/{p-00028e84.entry.js → p-fb8d1e47.entry.js} +1 -1
- package/package.json +1 -1
- package/dist/bromcom-ui/p-3330b325.js +0 -5
- package/dist/bromcom-ui/p-940d3fc3.js +0 -5
- package/dist/bromcom-ui/p-bddecc0e.js +0 -5
- package/dist/cjs/_commonjsHelpers-bd20f4c0.js +0 -29
- package/dist/cjs/bcm-2c51bf0c.js +0 -448
- package/dist/cjs/bcm-accordion.cjs.entry.js +0 -85
- package/dist/cjs/bcm-alert.cjs.entry.js +0 -112
- package/dist/cjs/bcm-attendance.cjs.entry.js +0 -50
- package/dist/cjs/bcm-autocomplete.cjs.entry.js +0 -155
- package/dist/cjs/bcm-avatar_2.cjs.entry.js +0 -156
- package/dist/cjs/bcm-box.cjs.entry.js +0 -35
- package/dist/cjs/bcm-breadcrumb.cjs.entry.js +0 -67
- package/dist/cjs/bcm-button-group.cjs.entry.js +0 -102
- package/dist/cjs/bcm-button_13.cjs.entry.js +0 -1981
- package/dist/cjs/bcm-card.cjs.entry.js +0 -76
- package/dist/cjs/bcm-checkbox-group.cjs.entry.js +0 -409
- package/dist/cjs/bcm-checkbox-lite_9.cjs.entry.js +0 -2570
- package/dist/cjs/bcm-checkbox_2.cjs.entry.js +0 -203
- 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 -58
- package/dist/cjs/bcm-colorpicker.cjs.entry.js +0 -433
- package/dist/cjs/bcm-date-picker.cjs.entry.js +0 -171
- 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 -111
- package/dist/cjs/bcm-error-layout.cjs.entry.js +0 -78
- 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-form-group.cjs.entry.js +0 -45
- package/dist/cjs/bcm-input.cjs.entry.js +0 -324
- package/dist/cjs/bcm-link.cjs.entry.js +0 -62
- package/dist/cjs/bcm-linked.cjs.entry.js +0 -83
- package/dist/cjs/bcm-list.cjs.entry.js +0 -1761
- package/dist/cjs/bcm-message.cjs.entry.js +0 -99
- package/dist/cjs/bcm-modal.cjs.entry.js +0 -137
- package/dist/cjs/bcm-notification.cjs.entry.js +0 -103
- package/dist/cjs/bcm-old-input.cjs.entry.js +0 -398
- package/dist/cjs/bcm-old-tag_2.cjs.entry.js +0 -157
- package/dist/cjs/bcm-popconfirm-box.cjs.entry.js +0 -122
- package/dist/cjs/bcm-popconfirm.cjs.entry.js +0 -112
- package/dist/cjs/bcm-progress.cjs.entry.js +0 -174
- package/dist/cjs/bcm-radio-group.cjs.entry.js +0 -267
- package/dist/cjs/bcm-radio.cjs.entry.js +0 -104
- package/dist/cjs/bcm-range.cjs.entry.js +0 -189
- package/dist/cjs/bcm-result.cjs.entry.js +0 -79
- package/dist/cjs/bcm-search.cjs.entry.js +0 -256
- 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 -1181
- package/dist/cjs/bcm-skeleton.cjs.entry.js +0 -56
- package/dist/cjs/bcm-step.cjs.entry.js +0 -93
- package/dist/cjs/bcm-stepper.cjs.entry.js +0 -211
- package/dist/cjs/bcm-tab-group.cjs.entry.js +0 -172
- package/dist/cjs/bcm-tab-pane.cjs.entry.js +0 -70
- package/dist/cjs/bcm-tab.cjs.entry.js +0 -89
- package/dist/cjs/bcm-table.cjs.entry.js +0 -78
- package/dist/cjs/bcm-tabs-content.cjs.entry.js +0 -62
- package/dist/cjs/bcm-tabs.cjs.entry.js +0 -390
- package/dist/cjs/bcm-tag.cjs.entry.js +0 -101
- package/dist/cjs/bcm-textarea.cjs.entry.js +0 -150
- package/dist/cjs/bcm-time-picker.cjs.entry.js +0 -139
- package/dist/cjs/bcm-timeline-item.cjs.entry.js +0 -55
- package/dist/cjs/bcm-timeline.cjs.entry.js +0 -73
- 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-abc6b8bd.js +0 -34
- package/dist/cjs/color-helper-c9882bd8.js +0 -490
- 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-f31baeb2.js +0 -198
- package/dist/cjs/global-b0d21446.js +0 -15
- package/dist/cjs/index-53637125.js +0 -1864
- package/dist/cjs/index-89682d55.js +0 -193
- package/dist/cjs/index-a2b50e51.js +0 -64
- package/dist/cjs/index.cjs.js +0 -6
- package/dist/cjs/input-template-9d262873.js +0 -86
- package/dist/cjs/is-load-decorator-20a4687b.js +0 -56
- package/dist/cjs/json-parse-decarator-c3596560.js +0 -40
- package/dist/cjs/label-template-b35d7e8e.js +0 -23
- package/dist/cjs/loader.cjs.js +0 -26
- package/dist/cjs/number-helper-0975436a.js +0 -20
- package/dist/cjs/old-bcm-popover.cjs.entry.js +0 -104
- package/dist/cjs/popover-placement-87901bb3.js +0 -98
- package/dist/cjs/property-decorators-b0cb1a50.js +0 -33
- package/dist/cjs/slot-template-546b0f5a.js +0 -15
- package/dist/cjs/stepper-states-0a54437d.js +0 -83
- package/dist/cjs/string-helper-df40a475.js +0 -134
- package/dist/cjs/tooltip-helper-6b5d41a4.js +0 -1449
- package/dist/cjs/types-3871235f.js +0 -32
- package/dist/cjs/types-6eb7e028.js +0 -32
- package/dist/cjs/types-cc4adee7.js +0 -19
- package/dist/cjs/utils-fc077139.js +0 -131
- package/dist/cjs/validators-f572960b.js +0 -33
- package/dist/collection/collection-manifest.json +0 -95
- package/dist/collection/components/atoms/avatar/avatar.css +0 -448
- package/dist/collection/components/atoms/avatar/avatar.js +0 -259
- package/dist/collection/components/atoms/badge/badge.css +0 -481
- package/dist/collection/components/atoms/badge/badge.js +0 -224
- package/dist/collection/components/atoms/box/box.js +0 -23
- package/dist/collection/components/atoms/button/button.css +0 -637
- package/dist/collection/components/atoms/button/button.js +0 -525
- package/dist/collection/components/atoms/button/types.js +0 -170
- package/dist/collection/components/atoms/chip/chip.css +0 -453
- package/dist/collection/components/atoms/chip/chip.js +0 -187
- package/dist/collection/components/atoms/divider/divider.css +0 -142
- package/dist/collection/components/atoms/divider/divider.js +0 -83
- package/dist/collection/components/atoms/icon/icon.css +0 -127
- package/dist/collection/components/atoms/icon/icon.js +0 -70
- package/dist/collection/components/atoms/label/label.css +0 -408
- package/dist/collection/components/atoms/label/label.js +0 -216
- package/dist/collection/components/atoms/link/link.css +0 -419
- package/dist/collection/components/atoms/link/link.js +0 -176
- package/dist/collection/components/atoms/states/button.states.js +0 -31
- package/dist/collection/components/atoms/tag/tag.js +0 -334
- package/dist/collection/components/atoms/tag/types.js +0 -30
- package/dist/collection/components/atoms/typography/typography.js +0 -23
- 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 -298
- 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 -155
- package/dist/collection/components/molecules/breadcrumb/types.js +0 -5
- package/dist/collection/components/molecules/button-group/button-group.css +0 -423
- package/dist/collection/components/molecules/button-group/button-group.js +0 -235
- 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 -237
- package/dist/collection/components/molecules/checkbox/checkbox.css +0 -1280
- package/dist/collection/components/molecules/checkbox/checkbox.js +0 -688
- package/dist/collection/components/molecules/checkbox/group.css +0 -156
- package/dist/collection/components/molecules/checkbox/group.js +0 -779
- package/dist/collection/components/molecules/drawer/drawer.css +0 -502
- package/dist/collection/components/molecules/drawer/drawer.js +0 -272
- package/dist/collection/components/molecules/dropdown/dropdown.css +0 -419
- package/dist/collection/components/molecules/dropdown/dropdown.js +0 -839
- package/dist/collection/components/molecules/empty/empty.js +0 -44
- package/dist/collection/components/molecules/error-layout/error-layout.css +0 -396
- package/dist/collection/components/molecules/error-layout/error-layout.js +0 -177
- package/dist/collection/components/molecules/error-layout/types.js +0 -5
- package/dist/collection/components/molecules/expansion-panel/expansion-panel.css +0 -488
- 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 -151
- package/dist/collection/components/molecules/items/items.js +0 -84
- package/dist/collection/components/molecules/linked/linked.js +0 -179
- package/dist/collection/components/molecules/menu/menu.css +0 -718
- package/dist/collection/components/molecules/menu/menu.js +0 -618
- package/dist/collection/components/molecules/message/message.css +0 -165
- package/dist/collection/components/molecules/message/message.js +0 -222
- 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 -244
- package/dist/collection/components/molecules/notification/types.js +0 -15
- package/dist/collection/components/molecules/popconfirm/popconfirm-box.css +0 -563
- package/dist/collection/components/molecules/popconfirm/popconfirm-box.js +0 -396
- package/dist/collection/components/molecules/popconfirm/popconfirm.css +0 -127
- package/dist/collection/components/molecules/popconfirm/popconfirm.js +0 -382
- package/dist/collection/components/molecules/popover/popover.js +0 -254
- package/dist/collection/components/molecules/progress/progress.css +0 -486
- package/dist/collection/components/molecules/progress/progress.js +0 -404
- package/dist/collection/components/molecules/progress/types.js +0 -28
- package/dist/collection/components/molecules/radio/group.css +0 -798
- package/dist/collection/components/molecules/radio/group.js +0 -652
- package/dist/collection/components/molecules/radio/radio.css +0 -1280
- package/dist/collection/components/molecules/radio/radio.js +0 -291
- 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 -472
- package/dist/collection/components/molecules/result/result.css +0 -164
- package/dist/collection/components/molecules/result/result.js +0 -143
- package/dist/collection/components/molecules/result/types.js +0 -22
- package/dist/collection/components/molecules/search/search.css +0 -1208
- package/dist/collection/components/molecules/search/search.js +0 -406
- package/dist/collection/components/molecules/skeleton/skeleton.js +0 -94
- 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 -137
- 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 -716
- package/dist/collection/components/molecules/tab-group/tab-group.js +0 -280
- package/dist/collection/components/molecules/textarea/textarea.css +0 -1208
- package/dist/collection/components/molecules/textarea/textarea.js +0 -731
- 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 -159
- package/dist/collection/components/molecules/timeline/timeline.css +0 -205
- package/dist/collection/components/molecules/timeline/timeline.js +0 -125
- package/dist/collection/components/molecules/tooltip/tooltip.js +0 -232
- package/dist/collection/components/organism/autocomplete/autocomplete.css +0 -168
- package/dist/collection/components/organism/autocomplete/autocomplete.js +0 -399
- package/dist/collection/components/organism/colorpicker/colorpicker.css +0 -313
- package/dist/collection/components/organism/colorpicker/colorpicker.js +0 -774
- 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 -780
- 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 -131
- package/dist/collection/components/organism/form/form.css +0 -132
- package/dist/collection/components/organism/form/form.js +0 -680
- 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 -172
- package/dist/collection/components/organism/list/list.css +0 -2047
- package/dist/collection/components/organism/list/list.js +0 -1860
- package/dist/collection/components/organism/states/bcm-list2.states.js +0 -532
- package/dist/collection/components/organism/time-picker/time-picker.css +0 -141
- package/dist/collection/components/organism/time-picker/time-picker.js +0 -627
- package/dist/collection/components/other/attendance/attendance.css +0 -433
- package/dist/collection/components/other/attendance/attendance.js +0 -87
- package/dist/collection/components/other/data-table/table.css +0 -130
- package/dist/collection/components/other/data-table/table.js +0 -92
- package/dist/collection/components/other/default/default.css +0 -127
- package/dist/collection/components/other/default/default.js +0 -54
- package/dist/collection/components/other_deprecated/collapse/collapse.css +0 -177
- package/dist/collection/components/other_deprecated/collapse/collapse.js +0 -163
- package/dist/collection/components/other_deprecated/collapse/group.js +0 -128
- package/dist/collection/components/other_deprecated/listbox/listbox-group.css +0 -139
- package/dist/collection/components/other_deprecated/listbox/listbox-group.js +0 -93
- package/dist/collection/components/other_deprecated/listbox/listbox-item.css +0 -269
- package/dist/collection/components/other_deprecated/listbox/listbox-item.js +0 -641
- package/dist/collection/components/other_deprecated/listbox/listbox.css +0 -365
- package/dist/collection/components/other_deprecated/listbox/listbox.js +0 -1999
- package/dist/collection/components/other_deprecated/listbox/types.js +0 -11
- package/dist/collection/components/other_deprecated/old-input/old-input.css +0 -1360
- package/dist/collection/components/other_deprecated/old-input/old-input.js +0 -1154
- package/dist/collection/components/other_deprecated/old-input/types.js +0 -17
- package/dist/collection/components/other_deprecated/old-popover/old-popover-box.css +0 -582
- package/dist/collection/components/other_deprecated/old-popover/old-popover-box.js +0 -411
- package/dist/collection/components/other_deprecated/old-popover/old-popover.css +0 -127
- package/dist/collection/components/other_deprecated/old-popover/old-popover.js +0 -296
- package/dist/collection/components/other_deprecated/old-search/old-search.css +0 -131
- package/dist/collection/components/other_deprecated/old-search/old-search.js +0 -496
- package/dist/collection/components/other_deprecated/old-tag/old-tag.css +0 -305
- package/dist/collection/components/other_deprecated/old-tag/old-tag.js +0 -326
- package/dist/collection/components/other_deprecated/old-tag/types.js +0 -30
- package/dist/collection/components/other_deprecated/select/group.css +0 -144
- package/dist/collection/components/other_deprecated/select/group.js +0 -88
- package/dist/collection/components/other_deprecated/select/option.css +0 -164
- package/dist/collection/components/other_deprecated/select/option.js +0 -142
- package/dist/collection/components/other_deprecated/select/select-box.css +0 -143
- package/dist/collection/components/other_deprecated/select/select-box.js +0 -104
- package/dist/collection/components/other_deprecated/select/select.css +0 -364
- package/dist/collection/components/other_deprecated/select/select.js +0 -2229
- package/dist/collection/components/other_deprecated/tabs/tab-pane.css +0 -142
- package/dist/collection/components/other_deprecated/tabs/tab-pane.js +0 -168
- package/dist/collection/components/other_deprecated/tabs/tab.css +0 -587
- package/dist/collection/components/other_deprecated/tabs/tab.js +0 -303
- package/dist/collection/components/other_deprecated/tabs/tabs-content.css +0 -136
- package/dist/collection/components/other_deprecated/tabs/tabs-content.js +0 -147
- package/dist/collection/components/other_deprecated/tabs/tabs.css +0 -212
- package/dist/collection/components/other_deprecated/tabs/tabs.js +0 -806
- package/dist/collection/components/other_deprecated/tabs/types.js +0 -30
- package/dist/collection/components/other_deprecated/text/text.css +0 -429
- package/dist/collection/components/other_deprecated/text/text.js +0 -159
- package/dist/collection/components/other_deprecated/treeview/treeview-group.css +0 -0
- package/dist/collection/components/other_deprecated/treeview/treeview-group.js +0 -18
- package/dist/collection/components/other_deprecated/treeview/treeview-item.css +0 -318
- package/dist/collection/components/other_deprecated/treeview/treeview-item.js +0 -977
- package/dist/collection/components/other_deprecated/treeview/treeview.css +0 -190
- package/dist/collection/components/other_deprecated/treeview/treeview.js +0 -1699
- package/dist/collection/components/other_deprecated/treeview/types.js +0 -11
- package/dist/collection/decorators/id-decorator.js +0 -18
- package/dist/collection/decorators/index.js +0 -8
- 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 -28
- package/dist/collection/global/components/_checkbox.css +0 -627
- package/dist/collection/global/config.js +0 -45
- package/dist/collection/global/global.js +0 -43
- package/dist/collection/global/variables/colors.js +0 -220
- package/dist/collection/helper/color-helper.js +0 -81
- package/dist/collection/helper/content-helper.js +0 -63
- package/dist/collection/helper/datetime-helper.js +0 -7
- package/dist/collection/helper/generate.js +0 -163
- package/dist/collection/helper/index.js +0 -13
- package/dist/collection/helper/number-helper.js +0 -15
- package/dist/collection/helper/popover-helper.js +0 -104
- package/dist/collection/helper/string-helper.js +0 -65
- package/dist/collection/helper/tooltip-helper.js +0 -93
- 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/index.js +0 -6
- 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/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/index.js +0 -17
- 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 -24
- 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/floating-ui.js +0 -62
- package/dist/collection/utils/index.js +0 -9
- 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-3016b722.js +0 -25
- package/dist/esm/bcm-accordion.entry.js +0 -81
- package/dist/esm/bcm-alert.entry.js +0 -108
- package/dist/esm/bcm-attendance.entry.js +0 -46
- package/dist/esm/bcm-autocomplete.entry.js +0 -151
- package/dist/esm/bcm-avatar_2.entry.js +0 -151
- package/dist/esm/bcm-b8d8a236.js +0 -446
- package/dist/esm/bcm-box.entry.js +0 -31
- package/dist/esm/bcm-breadcrumb.entry.js +0 -63
- package/dist/esm/bcm-button-group.entry.js +0 -98
- package/dist/esm/bcm-button_13.entry.js +0 -1965
- package/dist/esm/bcm-card.entry.js +0 -72
- package/dist/esm/bcm-checkbox-group.entry.js +0 -405
- package/dist/esm/bcm-checkbox-lite_9.entry.js +0 -2558
- package/dist/esm/bcm-checkbox_2.entry.js +0 -198
- 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 -54
- package/dist/esm/bcm-colorpicker.entry.js +0 -429
- package/dist/esm/bcm-date-picker.entry.js +0 -167
- 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 -107
- package/dist/esm/bcm-error-layout.entry.js +0 -74
- 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 -41
- package/dist/esm/bcm-input.entry.js +0 -320
- package/dist/esm/bcm-link.entry.js +0 -58
- package/dist/esm/bcm-linked.entry.js +0 -79
- package/dist/esm/bcm-list.entry.js +0 -1757
- package/dist/esm/bcm-message.entry.js +0 -95
- package/dist/esm/bcm-modal.entry.js +0 -133
- package/dist/esm/bcm-notification.entry.js +0 -99
- package/dist/esm/bcm-old-input.entry.js +0 -394
- package/dist/esm/bcm-old-tag_2.entry.js +0 -152
- package/dist/esm/bcm-popconfirm-box.entry.js +0 -118
- package/dist/esm/bcm-popconfirm.entry.js +0 -108
- package/dist/esm/bcm-progress.entry.js +0 -170
- package/dist/esm/bcm-radio-group.entry.js +0 -263
- package/dist/esm/bcm-radio.entry.js +0 -100
- package/dist/esm/bcm-range.entry.js +0 -185
- package/dist/esm/bcm-result.entry.js +0 -75
- package/dist/esm/bcm-search.entry.js +0 -252
- 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 -1177
- package/dist/esm/bcm-skeleton.entry.js +0 -52
- package/dist/esm/bcm-step.entry.js +0 -89
- package/dist/esm/bcm-stepper.entry.js +0 -207
- package/dist/esm/bcm-tab-group.entry.js +0 -168
- package/dist/esm/bcm-tab-pane.entry.js +0 -66
- package/dist/esm/bcm-tab.entry.js +0 -85
- package/dist/esm/bcm-table.entry.js +0 -74
- package/dist/esm/bcm-tabs-content.entry.js +0 -58
- package/dist/esm/bcm-tabs.entry.js +0 -386
- package/dist/esm/bcm-tag.entry.js +0 -97
- package/dist/esm/bcm-textarea.entry.js +0 -146
- package/dist/esm/bcm-time-picker.entry.js +0 -135
- package/dist/esm/bcm-timeline-item.entry.js +0 -51
- package/dist/esm/bcm-timeline.entry.js +0 -69
- package/dist/esm/bcm-treeview-group.entry.js +0 -19
- package/dist/esm/bromcom-ui.js +0 -22
- package/dist/esm/caption-template-3dc68282.js +0 -32
- package/dist/esm/color-helper-7e202fd8.js +0 -488
- 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-fb5ddb87.js +0 -195
- package/dist/esm/global-4fad925b.js +0 -13
- package/dist/esm/index-36ae55c5.js +0 -191
- package/dist/esm/index-ba2edd32.js +0 -62
- package/dist/esm/index-bd33e7be.js +0 -1833
- package/dist/esm/index.js +0 -4
- package/dist/esm/input-template-0c47abf5.js +0 -84
- package/dist/esm/is-load-decorator-73e33bee.js +0 -54
- package/dist/esm/json-parse-decarator-7b411846.js +0 -38
- package/dist/esm/label-template-c83a04a3.js +0 -21
- package/dist/esm/loader.js +0 -22
- package/dist/esm/number-helper-42be449e.js +0 -18
- package/dist/esm/old-bcm-popover.entry.js +0 -100
- 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-9864294b.js +0 -95
- package/dist/esm/property-decorators-61be220d.js +0 -31
- package/dist/esm/slot-template-24f1e66e.js +0 -13
- package/dist/esm/stepper-states-b8e9888d.js +0 -81
- package/dist/esm/string-helper-74a1648f.js +0 -132
- package/dist/esm/tooltip-helper-427dd3f5.js +0 -1446
- package/dist/esm/types-6f06fa1a.js +0 -19
- package/dist/esm/types-b211a5eb.js +0 -32
- package/dist/esm/types-bfc3bba1.js +0 -32
- package/dist/esm/utils-57652744.js +0 -123
- package/dist/esm/validators-6f23b54f.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/box/box.d.ts +0 -5
- 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/chip/chip.d.ts +0 -24
- package/dist/types/components/atoms/divider/divider.d.ts +0 -7
- package/dist/types/components/atoms/icon/icon.d.ts +0 -6
- package/dist/types/components/atoms/label/label.d.ts +0 -16
- package/dist/types/components/atoms/link/link.d.ts +0 -13
- 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/typography/typography.d.ts +0 -5
- 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/button-group/button-group.d.ts +0 -21
- 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/drawer/drawer.d.ts +0 -21
- package/dist/types/components/molecules/dropdown/dropdown.d.ts +0 -54
- package/dist/types/components/molecules/empty/empty.d.ts +0 -5
- 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/linked/linked.d.ts +0 -14
- package/dist/types/components/molecules/menu/menu.d.ts +0 -41
- 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/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.d.ts +0 -20
- 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 -21
- 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 -35
- package/dist/types/components/molecules/skeleton/skeleton.d.ts +0 -8
- 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/tab-group/tab-group.d.ts +0 -18
- package/dist/types/components/molecules/textarea/textarea.d.ts +0 -53
- 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.d.ts +0 -19
- 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 -77
- 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 -10
- 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 -18
- package/dist/types/components/organism/list/list.d.ts +0 -138
- package/dist/types/components/organism/states/bcm-list2.states.d.ts +0 -28
- package/dist/types/components/organism/time-picker/time-picker.d.ts +0 -69
- package/dist/types/components/other/attendance/attendance.d.ts +0 -7
- package/dist/types/components/other/data-table/table.d.ts +0 -8
- package/dist/types/components/other/default/default.d.ts +0 -6
- package/dist/types/components/other_deprecated/collapse/collapse.d.ts +0 -12
- package/dist/types/components/other_deprecated/collapse/group.d.ts +0 -15
- package/dist/types/components/other_deprecated/listbox/listbox-group.d.ts +0 -7
- package/dist/types/components/other_deprecated/listbox/listbox-item.d.ts +0 -58
- package/dist/types/components/other_deprecated/listbox/listbox.d.ts +0 -152
- package/dist/types/components/other_deprecated/listbox/types.d.ts +0 -11
- package/dist/types/components/other_deprecated/old-input/old-input.d.ts +0 -80
- package/dist/types/components/other_deprecated/old-input/types.d.ts +0 -13
- package/dist/types/components/other_deprecated/old-popover/old-popover-box.d.ts +0 -25
- package/dist/types/components/other_deprecated/old-popover/old-popover.d.ts +0 -22
- package/dist/types/components/other_deprecated/old-search/old-search.d.ts +0 -32
- package/dist/types/components/other_deprecated/old-tag/old-tag.d.ts +0 -27
- package/dist/types/components/other_deprecated/old-tag/types.d.ts +0 -29
- package/dist/types/components/other_deprecated/select/group.d.ts +0 -6
- package/dist/types/components/other_deprecated/select/option.d.ts +0 -10
- package/dist/types/components/other_deprecated/select/select-box.d.ts +0 -15
- package/dist/types/components/other_deprecated/select/select.d.ts +0 -131
- package/dist/types/components/other_deprecated/tabs/tab-pane.d.ts +0 -19
- package/dist/types/components/other_deprecated/tabs/tab.d.ts +0 -36
- package/dist/types/components/other_deprecated/tabs/tabs-content.d.ts +0 -18
- package/dist/types/components/other_deprecated/tabs/tabs.d.ts +0 -112
- package/dist/types/components/other_deprecated/tabs/types.d.ts +0 -39
- package/dist/types/components/other_deprecated/text/text.d.ts +0 -11
- package/dist/types/components/other_deprecated/treeview/treeview-group.d.ts +0 -3
- package/dist/types/components/other_deprecated/treeview/treeview-item.d.ts +0 -119
- package/dist/types/components/other_deprecated/treeview/treeview.d.ts +0 -181
- package/dist/types/components/other_deprecated/treeview/types.d.ts +0 -11
- package/dist/types/components.d.ts +0 -3517
- package/dist/types/decorators/id-decorator.d.ts +0 -4
- package/dist/types/decorators/index.d.ts +0 -4
- 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 -16
- package/dist/types/helper/content-helper.d.ts +0 -18
- package/dist/types/helper/datetime-helper.d.ts +0 -3
- package/dist/types/helper/generate.d.ts +0 -21
- package/dist/types/helper/index.d.ts +0 -9
- package/dist/types/helper/number-helper.d.ts +0 -10
- package/dist/types/helper/popover-helper.d.ts +0 -31
- package/dist/types/helper/string-helper.d.ts +0 -27
- package/dist/types/helper/tooltip-helper.d.ts +0 -25
- 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/index.d.ts +0 -2
- 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/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/index.d.ts +0 -13
- 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 -29
- 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/floating-ui.d.ts +0 -6
- package/dist/types/utils/index.d.ts +0 -5
- 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,1999 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built with Stencil
|
|
3
|
-
* Copyright (c) Bromcom.
|
|
4
|
-
*/
|
|
5
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
6
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
7
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
8
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
9
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
10
|
-
};
|
|
11
|
-
import { Component, h, Host, Listen, Event, Prop, Element, State, Watch, Method } from '@stencil/core';
|
|
12
|
-
import { delay, getChilds } from '../../../utils/utils';
|
|
13
|
-
import cs from 'classnames';
|
|
14
|
-
import { IsLoad } from '../../../decorators/is-load-decorator';
|
|
15
|
-
/**
|
|
16
|
-
* @desc
|
|
17
|
-
* @param str
|
|
18
|
-
*/
|
|
19
|
-
const lowercase = (str) => str.toLowerCase();
|
|
20
|
-
export class BcmListbox {
|
|
21
|
-
constructor() {
|
|
22
|
-
this.objectMapping = {
|
|
23
|
-
'id': "id",
|
|
24
|
-
'text': "text",
|
|
25
|
-
'icon': "icon",
|
|
26
|
-
'avatar': "avatar",
|
|
27
|
-
'avatarName': "avatarName",
|
|
28
|
-
'avatarImage': "avatarImage",
|
|
29
|
-
'secondaryText': "secondaryText",
|
|
30
|
-
'tooltipText': "tooltipText",
|
|
31
|
-
'selected': "selected",
|
|
32
|
-
'checked': "checked",
|
|
33
|
-
'disabled': "disabled",
|
|
34
|
-
};
|
|
35
|
-
this.checkedObjectList = [];
|
|
36
|
-
this.cacheCheckedObjectList = [];
|
|
37
|
-
this.allChilds = [];
|
|
38
|
-
this.onlyChilds = [];
|
|
39
|
-
this.firstRun = true;
|
|
40
|
-
this.firstCheck = false;
|
|
41
|
-
this.onFocus = false;
|
|
42
|
-
this.isSetData = false;
|
|
43
|
-
this.isGroupArray = [];
|
|
44
|
-
this.intersection = [];
|
|
45
|
-
/**
|
|
46
|
-
* Component Properties
|
|
47
|
-
*/
|
|
48
|
-
this.innerComponent = false;
|
|
49
|
-
this.checkboxes = false;
|
|
50
|
-
this.required = false;
|
|
51
|
-
this.value = null;
|
|
52
|
-
this.search = false;
|
|
53
|
-
this.infoFooter = false;
|
|
54
|
-
this.showIcon = false;
|
|
55
|
-
this.size = 'medium';
|
|
56
|
-
this.checkedList = [];
|
|
57
|
-
this.updateCheckedList = [];
|
|
58
|
-
this._items = [];
|
|
59
|
-
this.fullWidth = false;
|
|
60
|
-
this.searchFields = ['text', 'secondaryText', 'tooltipText'];
|
|
61
|
-
this.hidden = false;
|
|
62
|
-
this.returnField = "id";
|
|
63
|
-
this.searchSub = "items";
|
|
64
|
-
this.searchText = "";
|
|
65
|
-
this.treeview = false;
|
|
66
|
-
this.searchPlaceholder = "Search";
|
|
67
|
-
this.numberOfColumns = 1;
|
|
68
|
-
this.height = null;
|
|
69
|
-
this.maxHeight = null;
|
|
70
|
-
this.template = null;
|
|
71
|
-
this.highlight = false;
|
|
72
|
-
this.loading = true;
|
|
73
|
-
this.noCaption = false;
|
|
74
|
-
this.captionType = 'default';
|
|
75
|
-
this._internal_id = (Math.random() * 4).toString(16).replace('.', '');
|
|
76
|
-
/**
|
|
77
|
-
* Component States
|
|
78
|
-
*/
|
|
79
|
-
this.searchResults = [];
|
|
80
|
-
this.totalSearch = 0;
|
|
81
|
-
this.showSearch = true;
|
|
82
|
-
this.empty = false;
|
|
83
|
-
this.runClearAndSelect = false;
|
|
84
|
-
this.total = 0;
|
|
85
|
-
this.items = [];
|
|
86
|
-
this.checklist = [];
|
|
87
|
-
this.sortedChecklist = [];
|
|
88
|
-
this.indeterminateState = 'uncheck';
|
|
89
|
-
this.checked = false;
|
|
90
|
-
this.checklistSorted = [];
|
|
91
|
-
}
|
|
92
|
-
async setClear() {
|
|
93
|
-
this.listboxChecklist.emit([]);
|
|
94
|
-
this.value = null;
|
|
95
|
-
this.selectedId = null;
|
|
96
|
-
this.listboxClearSelected.emit([]);
|
|
97
|
-
// this.checkedObjectList.forEach(item => {
|
|
98
|
-
// this.listboxUncheckedMethod(String(item[this.objectMapping['id']]), this._internal_id)
|
|
99
|
-
// });
|
|
100
|
-
let isItem = getChilds(this.el, 'bcm-listbox-item');
|
|
101
|
-
let elementStatuses = [];
|
|
102
|
-
if (isItem) {
|
|
103
|
-
isItem.map(element => {
|
|
104
|
-
elementStatuses.push(element.checked = false);
|
|
105
|
-
});
|
|
106
|
-
}
|
|
107
|
-
// console.log("uncheck")
|
|
108
|
-
await Promise.all(elementStatuses);
|
|
109
|
-
// if ( allStatuses ){
|
|
110
|
-
// console.log("bitti")
|
|
111
|
-
// }
|
|
112
|
-
this.checklist = [];
|
|
113
|
-
this.sortedChecklist = [];
|
|
114
|
-
this.checklistSorted = [];
|
|
115
|
-
this.checkedObjectList = [];
|
|
116
|
-
await delay(10);
|
|
117
|
-
return Promise.resolve();
|
|
118
|
-
}
|
|
119
|
-
async resetCaption() {
|
|
120
|
-
await delay(10);
|
|
121
|
-
this.caption = this.captionCache;
|
|
122
|
-
this.captionType = this.captionTypeCache;
|
|
123
|
-
this.captionError = null;
|
|
124
|
-
await delay(10);
|
|
125
|
-
return Promise.resolve();
|
|
126
|
-
}
|
|
127
|
-
connectedCallback() {
|
|
128
|
-
this.captionCache = this.caption;
|
|
129
|
-
this.captionTypeCache = this.captionType;
|
|
130
|
-
}
|
|
131
|
-
async getValue() {
|
|
132
|
-
if (this.checkboxes) {
|
|
133
|
-
return this.checkedObjectList;
|
|
134
|
-
}
|
|
135
|
-
else {
|
|
136
|
-
return this.value;
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
async getChecklist() {
|
|
140
|
-
return this.checkedObjectList;
|
|
141
|
-
}
|
|
142
|
-
async showSearchMethod(val = true) {
|
|
143
|
-
if (this.treeview == false && this.search == true) {
|
|
144
|
-
this.showSearch = val;
|
|
145
|
-
var search = null;
|
|
146
|
-
if (search = this.el.shadowRoot.getElementById("search")) {
|
|
147
|
-
if (val) {
|
|
148
|
-
search.classList.remove('hidden');
|
|
149
|
-
}
|
|
150
|
-
else {
|
|
151
|
-
search.classList.add('hidden');
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
async selected(id) {
|
|
157
|
-
this.selectedId = String(id);
|
|
158
|
-
if (this.treeview === true) {
|
|
159
|
-
setTimeout(async () => {
|
|
160
|
-
const bcmTreeview = this.el.shadowRoot.querySelector("bcm-treeview");
|
|
161
|
-
if (bcmTreeview) {
|
|
162
|
-
await bcmTreeview.selected(this.selectedId);
|
|
163
|
-
}
|
|
164
|
-
}, 100);
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
async clearAndSelectSearch(select = true) {
|
|
168
|
-
this.runClearAndSelect = true;
|
|
169
|
-
if (this.search == true) {
|
|
170
|
-
setTimeout(() => {
|
|
171
|
-
var searchInput = null;
|
|
172
|
-
searchInput = this.el.shadowRoot.querySelector("bcm-old-search");
|
|
173
|
-
if (searchInput) {
|
|
174
|
-
searchInput.setClear();
|
|
175
|
-
if (select == true) {
|
|
176
|
-
searchInput.select();
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
}, 100);
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
async addChecked(items) {
|
|
183
|
-
await this.setClear();
|
|
184
|
-
if (items) {
|
|
185
|
-
if (typeof items != 'string') {
|
|
186
|
-
await delay(50);
|
|
187
|
-
if (sessionStorage.getItem(this._internal_id + "-config")) {
|
|
188
|
-
this.config(JSON.parse(sessionStorage.getItem(this._internal_id + "-config")));
|
|
189
|
-
}
|
|
190
|
-
this.checkedList = items;
|
|
191
|
-
this.checkedList.forEach((item) => {
|
|
192
|
-
this.handleListboxChecked({ detail: String(item) }, this._internal_id);
|
|
193
|
-
});
|
|
194
|
-
this.updateCheckedList = [];
|
|
195
|
-
if (this.treeview === true) {
|
|
196
|
-
setTimeout(async () => {
|
|
197
|
-
await customElements.whenDefined("bcm-treeview");
|
|
198
|
-
const bcmTreeview = this.el.shadowRoot.querySelector("bcm-treeview");
|
|
199
|
-
if (bcmTreeview) {
|
|
200
|
-
await bcmTreeview.addChecked(items);
|
|
201
|
-
}
|
|
202
|
-
}, 50);
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
async updateChecked(items) {
|
|
208
|
-
this.setClear();
|
|
209
|
-
this.checkedList = [];
|
|
210
|
-
this.updateCheckedList = items;
|
|
211
|
-
this.updateCheckedList.forEach((item) => {
|
|
212
|
-
this.handleListboxChecked({ detail: item });
|
|
213
|
-
});
|
|
214
|
-
setTimeout(async () => {
|
|
215
|
-
if (this.treeview === true) {
|
|
216
|
-
await customElements.whenDefined("bcm-treeview");
|
|
217
|
-
const bcmTreeview = this.el.shadowRoot.querySelector("bcm-treeview");
|
|
218
|
-
if (bcmTreeview) {
|
|
219
|
-
await bcmTreeview.updateChecked(items);
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
|
-
}, 100);
|
|
223
|
-
}
|
|
224
|
-
async config(_config) {
|
|
225
|
-
if (_config['treeview'] && _config['treeview'] === true) {
|
|
226
|
-
typeof _config['treeview'] == 'boolean'
|
|
227
|
-
? this.treeview = _config['treeview']
|
|
228
|
-
: this.treeview = false;
|
|
229
|
-
}
|
|
230
|
-
setTimeout(async () => {
|
|
231
|
-
if (this.treeview === true) {
|
|
232
|
-
await customElements.whenDefined("bcm-treeview");
|
|
233
|
-
const bcmTreeview = this.el.shadowRoot.querySelector("bcm-treeview");
|
|
234
|
-
if (bcmTreeview) {
|
|
235
|
-
await bcmTreeview.config(_config);
|
|
236
|
-
if (this.selectedId) {
|
|
237
|
-
await bcmTreeview.selected(this.selectedId);
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
}
|
|
241
|
-
}, 300);
|
|
242
|
-
if (_config['searchFields']) {
|
|
243
|
-
if (Array.isArray(_config['searchFields'])) {
|
|
244
|
-
this.searchFields = _config['searchFields'];
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
if (_config['searchPlaceholder']) {
|
|
248
|
-
typeof _config['searchPlaceholder'] == 'string'
|
|
249
|
-
? this.searchPlaceholder = _config['searchPlaceholder']
|
|
250
|
-
: this.searchPlaceholder = null;
|
|
251
|
-
}
|
|
252
|
-
if (_config['maxHeight']) {
|
|
253
|
-
typeof _config['maxHeight'] == 'string'
|
|
254
|
-
? this.maxHeight = _config['maxHeight']
|
|
255
|
-
: this.maxHeight = "100%";
|
|
256
|
-
}
|
|
257
|
-
if (_config['height']) {
|
|
258
|
-
typeof _config['height'] == 'string'
|
|
259
|
-
? this.height = _config['height']
|
|
260
|
-
: this.height = "100%";
|
|
261
|
-
}
|
|
262
|
-
if (_config['template']) {
|
|
263
|
-
typeof _config['template'] == 'string'
|
|
264
|
-
? this.template = _config['template']
|
|
265
|
-
: this.template = null;
|
|
266
|
-
}
|
|
267
|
-
if (_config['searchable']) {
|
|
268
|
-
typeof _config['searchable'] == 'boolean'
|
|
269
|
-
? this.search = _config['searchable']
|
|
270
|
-
: this.search = false;
|
|
271
|
-
}
|
|
272
|
-
if (_config['highlight']) {
|
|
273
|
-
typeof _config['highlight'] == 'boolean'
|
|
274
|
-
? this.highlight = _config['highlight']
|
|
275
|
-
: this.highlight = false;
|
|
276
|
-
}
|
|
277
|
-
if (_config['fullWidth']) {
|
|
278
|
-
typeof _config['fullWidth'] == 'boolean'
|
|
279
|
-
? this.fullWidth = _config['fullWidth']
|
|
280
|
-
: this.fullWidth = false;
|
|
281
|
-
}
|
|
282
|
-
if (_config['numberOfColumns']) {
|
|
283
|
-
typeof _config['numberOfColumns'] == 'number'
|
|
284
|
-
? this.numberOfColumns = _config['numberOfColumns']
|
|
285
|
-
: this.numberOfColumns = 1;
|
|
286
|
-
}
|
|
287
|
-
if (_config['infoFooter']) {
|
|
288
|
-
typeof _config['infoFooter'] == 'boolean'
|
|
289
|
-
? this.infoFooter = _config['infoFooter']
|
|
290
|
-
: this.infoFooter = false;
|
|
291
|
-
}
|
|
292
|
-
if (_config['checkable']) {
|
|
293
|
-
typeof _config['checkable'] == 'boolean'
|
|
294
|
-
? this.checkboxes = _config['checkable']
|
|
295
|
-
: this.checkboxes = false;
|
|
296
|
-
}
|
|
297
|
-
if (_config['showIcon']) {
|
|
298
|
-
typeof _config['showIcon'] == 'boolean'
|
|
299
|
-
? this.showIcon = _config['showIcon']
|
|
300
|
-
: this.showIcon = false;
|
|
301
|
-
}
|
|
302
|
-
if (_config['size']) {
|
|
303
|
-
(["small", "medium", "large"].indexOf(_config['size']) >= 0)
|
|
304
|
-
? this.size = _config['size']
|
|
305
|
-
: this.size = 'medium';
|
|
306
|
-
}
|
|
307
|
-
this.searchSub = this.objectMapping['items'];
|
|
308
|
-
if (_config['mapping']) {
|
|
309
|
-
if (_config['mapping']['id']) {
|
|
310
|
-
this.objectMapping['id'] = String(_config['mapping']['id']);
|
|
311
|
-
this.returnField = this.objectMapping['id'];
|
|
312
|
-
}
|
|
313
|
-
if (_config['mapping']['text']) {
|
|
314
|
-
this.objectMapping['text'] = _config['mapping']['text'];
|
|
315
|
-
}
|
|
316
|
-
if (_config['mapping']['icon']) {
|
|
317
|
-
this.objectMapping['icon'] = _config['mapping']['icon'];
|
|
318
|
-
}
|
|
319
|
-
if (_config['mapping']['avatar']) {
|
|
320
|
-
this.objectMapping['avatar'] = _config['mapping']['avatar'];
|
|
321
|
-
}
|
|
322
|
-
if (_config['mapping']['avatarName']) {
|
|
323
|
-
this.objectMapping['avatarName'] = _config['mapping']['avatarName'];
|
|
324
|
-
}
|
|
325
|
-
if (_config['mapping']['avatarImage']) {
|
|
326
|
-
this.objectMapping['avatarImage'] = _config['mapping']['avatarImage'];
|
|
327
|
-
}
|
|
328
|
-
if (_config['mapping']['secondaryText']) {
|
|
329
|
-
this.objectMapping['secondaryText'] = _config['mapping']['secondaryText'];
|
|
330
|
-
}
|
|
331
|
-
if (_config['mapping']['tooltipText']) {
|
|
332
|
-
this.objectMapping['tooltipText'] = _config['mapping']['tooltipText'];
|
|
333
|
-
}
|
|
334
|
-
if (_config['mapping']['disabled']) {
|
|
335
|
-
this.objectMapping['disabled'] = _config['mapping']['disabled'];
|
|
336
|
-
}
|
|
337
|
-
if (_config['mapping']['checked']) {
|
|
338
|
-
this.objectMapping['checked'] = _config['mapping']['checked'];
|
|
339
|
-
}
|
|
340
|
-
if (_config['mapping']['selected']) {
|
|
341
|
-
this.objectMapping['selected'] = _config['mapping']['selected'];
|
|
342
|
-
}
|
|
343
|
-
if (_config['mapping']['items']) {
|
|
344
|
-
this.objectMapping['items'] = _config['mapping']['items'];
|
|
345
|
-
this.searchSub = this.objectMapping['items'];
|
|
346
|
-
}
|
|
347
|
-
// if ( this.treeview ) {
|
|
348
|
-
// }else{
|
|
349
|
-
// this.searchSub = this.objectMapping['items']
|
|
350
|
-
// }
|
|
351
|
-
}
|
|
352
|
-
sessionStorage.setItem(this._internal_id + "-config", JSON.stringify(_config));
|
|
353
|
-
// forceUpdate(this.el)
|
|
354
|
-
return Promise.resolve(true);
|
|
355
|
-
}
|
|
356
|
-
async setData(_data = []) {
|
|
357
|
-
this.clearAndSelectSearch(false);
|
|
358
|
-
this.isLoading(true);
|
|
359
|
-
this._items = _data;
|
|
360
|
-
this.searchData = JSON.parse(_data);
|
|
361
|
-
this.isSetData = true;
|
|
362
|
-
// this.isEmpty(false)
|
|
363
|
-
setTimeout(async () => {
|
|
364
|
-
if (this.treeview === true) {
|
|
365
|
-
const bcmTreeview = this.el.shadowRoot.querySelector("bcm-treeview");
|
|
366
|
-
if (bcmTreeview) {
|
|
367
|
-
await bcmTreeview.setData(_data);
|
|
368
|
-
if (this.searchData.length > 0) {
|
|
369
|
-
this.isEmpty(false);
|
|
370
|
-
this.isLoading(false);
|
|
371
|
-
}
|
|
372
|
-
}
|
|
373
|
-
}
|
|
374
|
-
}, 100);
|
|
375
|
-
}
|
|
376
|
-
// componentDidLoad(){
|
|
377
|
-
// console.log("kilitle")
|
|
378
|
-
// setTimeout(() => {
|
|
379
|
-
// if(this.isSetData) {
|
|
380
|
-
// this.isLoading(true)
|
|
381
|
-
// this.isEmpty(false)
|
|
382
|
-
// }else{
|
|
383
|
-
// this.isLoading(false)
|
|
384
|
-
// this.isEmpty(true)
|
|
385
|
-
// }
|
|
386
|
-
// }, 100);
|
|
387
|
-
// }
|
|
388
|
-
componentWillRender() {
|
|
389
|
-
if (this.isSetData) {
|
|
390
|
-
this.onlyChilds = this.getAllGroup(this.el, true);
|
|
391
|
-
this.allChilds = this.getAllGroup();
|
|
392
|
-
if (this.onlyChilds.length != this.total) {
|
|
393
|
-
this.total = this.onlyChilds.length;
|
|
394
|
-
}
|
|
395
|
-
if (this.checkboxes === true) {
|
|
396
|
-
this.setIndeterminateState();
|
|
397
|
-
if (this.checklistSorted.length > 0) {
|
|
398
|
-
this.checkedObjectList = [];
|
|
399
|
-
this.getAllGroup(this.el).forEach(element => {
|
|
400
|
-
element.checked == true && (this.firstCheck = true,
|
|
401
|
-
this.checkedObjectList.indexOf(element.itemObject) == -1 && (this.checkedObjectList.push(element.itemObject)));
|
|
402
|
-
});
|
|
403
|
-
if (JSON.stringify(this.cacheCheckedObjectList) !== JSON.stringify(this.checkedObjectList)) {
|
|
404
|
-
this.listboxChecklist.emit(this.checkedObjectList);
|
|
405
|
-
this.cacheCheckedObjectList = this.checkedObjectList;
|
|
406
|
-
this.value = this.checkedObjectList;
|
|
407
|
-
}
|
|
408
|
-
}
|
|
409
|
-
else {
|
|
410
|
-
if (this.firstCheck) {
|
|
411
|
-
this.listboxChecklist.emit([]);
|
|
412
|
-
this.cacheCheckedObjectList = [];
|
|
413
|
-
if (this.value != null) {
|
|
414
|
-
this.value = null;
|
|
415
|
-
}
|
|
416
|
-
}
|
|
417
|
-
}
|
|
418
|
-
}
|
|
419
|
-
}
|
|
420
|
-
}
|
|
421
|
-
componentDidRender() {
|
|
422
|
-
// this.isEmpty(true)
|
|
423
|
-
// this.isLoading(true)
|
|
424
|
-
// if(this.total > 0) {
|
|
425
|
-
// this.isLoading(false)
|
|
426
|
-
// this.isEmpty(false)
|
|
427
|
-
// }
|
|
428
|
-
// this.isEmpty(true)
|
|
429
|
-
if (this.isSetData) {
|
|
430
|
-
if (this.total > 0) {
|
|
431
|
-
this.isEmpty(false);
|
|
432
|
-
this.isLoading(false);
|
|
433
|
-
}
|
|
434
|
-
else {
|
|
435
|
-
this.isEmpty(true);
|
|
436
|
-
}
|
|
437
|
-
}
|
|
438
|
-
}
|
|
439
|
-
/**
|
|
440
|
-
* @desc
|
|
441
|
-
* @returns {void}
|
|
442
|
-
*/
|
|
443
|
-
setIndeterminateState() {
|
|
444
|
-
let state = 'uncheck';
|
|
445
|
-
let allChecked = true;
|
|
446
|
-
let allUnchecked = true;
|
|
447
|
-
this.getAllGroup(this.el, true).map((item) => {
|
|
448
|
-
item.checked && (allUnchecked = false);
|
|
449
|
-
!item.checked && (allChecked = false);
|
|
450
|
-
});
|
|
451
|
-
!allChecked && !allUnchecked
|
|
452
|
-
? state = 'indeterminate'
|
|
453
|
-
: allChecked
|
|
454
|
-
? state = 'determinate'
|
|
455
|
-
: state = 'uncheck';
|
|
456
|
-
this.indeterminateState = state;
|
|
457
|
-
this.checked = state == 'determinate' ? true : false;
|
|
458
|
-
// this.listboxChecklist.emit(this.sortedChecklist)
|
|
459
|
-
}
|
|
460
|
-
getAllGroup(element = this.el, onlyItem = false) {
|
|
461
|
-
let returnAllItems = [];
|
|
462
|
-
let isGroup = getChilds(element, 'bcm-listbox-group');
|
|
463
|
-
let isItem = getChilds(element, 'bcm-listbox-item');
|
|
464
|
-
if (isGroup.length > 0) {
|
|
465
|
-
isGroup.forEach(group => {
|
|
466
|
-
if (this.isGroupArray.indexOf(Number(group.id)) === -1) {
|
|
467
|
-
this.isGroupArray.push(Number(group.id));
|
|
468
|
-
}
|
|
469
|
-
if (onlyItem == false) {
|
|
470
|
-
returnAllItems = [...returnAllItems,
|
|
471
|
-
group
|
|
472
|
-
];
|
|
473
|
-
}
|
|
474
|
-
getChilds(group, 'bcm-listbox-item').forEach(items => {
|
|
475
|
-
if (!(returnAllItems.indexOf(items) >= 0)) {
|
|
476
|
-
returnAllItems = [...returnAllItems,
|
|
477
|
-
items
|
|
478
|
-
];
|
|
479
|
-
}
|
|
480
|
-
});
|
|
481
|
-
});
|
|
482
|
-
}
|
|
483
|
-
if (isItem.length > 0) {
|
|
484
|
-
isItem.forEach(items => {
|
|
485
|
-
if (!(returnAllItems.indexOf(items) >= 0)) {
|
|
486
|
-
returnAllItems = [...returnAllItems,
|
|
487
|
-
items
|
|
488
|
-
];
|
|
489
|
-
}
|
|
490
|
-
});
|
|
491
|
-
}
|
|
492
|
-
return returnAllItems;
|
|
493
|
-
}
|
|
494
|
-
getAllChilds(element = this.el, type = null) {
|
|
495
|
-
let returnAllItems = [];
|
|
496
|
-
let oldItems = [];
|
|
497
|
-
if (!this._items || type === "slot") {
|
|
498
|
-
getChilds(element, 'bcm-listbox-item').forEach(items => {
|
|
499
|
-
returnAllItems = [...returnAllItems,
|
|
500
|
-
items
|
|
501
|
-
];
|
|
502
|
-
});
|
|
503
|
-
}
|
|
504
|
-
else if (this._items && this._items.length > 0) {
|
|
505
|
-
oldItems = JSON.parse(this._items);
|
|
506
|
-
oldItems.map((item) => (((item.type === 'group') ? (item.items.map((item) => ((returnAllItems = [...returnAllItems, item])))) :
|
|
507
|
-
(returnAllItems = [...returnAllItems, item]))));
|
|
508
|
-
}
|
|
509
|
-
return returnAllItems;
|
|
510
|
-
}
|
|
511
|
-
/**
|
|
512
|
-
* @desc
|
|
513
|
-
*/
|
|
514
|
-
handleCheckList(process = 'add', checkId) {
|
|
515
|
-
checkId = String(checkId);
|
|
516
|
-
if (this.checkboxes) {
|
|
517
|
-
if (this.items && this.items.find(e => e[this.objectMapping['id']] == checkId)) {
|
|
518
|
-
// checkId = Number(checkId)
|
|
519
|
-
switch (process) {
|
|
520
|
-
case 'add':
|
|
521
|
-
if (this.checklist.length > 0) {
|
|
522
|
-
if (!this.checklist.includes(checkId)) {
|
|
523
|
-
this.checklist = [...this.checklist, checkId];
|
|
524
|
-
}
|
|
525
|
-
}
|
|
526
|
-
else {
|
|
527
|
-
this.checklist = [checkId];
|
|
528
|
-
}
|
|
529
|
-
break;
|
|
530
|
-
case 'remove':
|
|
531
|
-
this.checklist = this.checklist.filter(item => item !== checkId);
|
|
532
|
-
break;
|
|
533
|
-
default:
|
|
534
|
-
break;
|
|
535
|
-
}
|
|
536
|
-
let sorted = this.checklist.sort(function (a, b) { return a - b; });
|
|
537
|
-
this.sortedChecklist = this.checklist;
|
|
538
|
-
this.checklistSorted = sorted;
|
|
539
|
-
// forceUpdate(this.el)
|
|
540
|
-
}
|
|
541
|
-
}
|
|
542
|
-
}
|
|
543
|
-
handleIndeterminateClick() {
|
|
544
|
-
let state = 'uncheck';
|
|
545
|
-
let allChecked = true;
|
|
546
|
-
let allUnchecked = true;
|
|
547
|
-
let visibleItem = [];
|
|
548
|
-
this.getAllGroup(this.el, true).map((item) => {
|
|
549
|
-
if (item.hidden === false) {
|
|
550
|
-
visibleItem.push(item);
|
|
551
|
-
item.checked && (allUnchecked = false);
|
|
552
|
-
!item.checked && (allChecked = false);
|
|
553
|
-
}
|
|
554
|
-
});
|
|
555
|
-
!allChecked && !allUnchecked
|
|
556
|
-
? state = 'indeterminate'
|
|
557
|
-
: allChecked
|
|
558
|
-
? state = 'determinate'
|
|
559
|
-
: state = 'uncheck';
|
|
560
|
-
visibleItem.map((item) => {
|
|
561
|
-
if (state !== 'uncheck') {
|
|
562
|
-
item.checked = false;
|
|
563
|
-
this.handleCheckList('remove', String(item.id));
|
|
564
|
-
}
|
|
565
|
-
else {
|
|
566
|
-
item.checked = true;
|
|
567
|
-
this.handleCheckList('add', String(item.id));
|
|
568
|
-
}
|
|
569
|
-
});
|
|
570
|
-
this.setIndeterminateState();
|
|
571
|
-
}
|
|
572
|
-
handleCheckboxClick(e) {
|
|
573
|
-
e.preventDefault();
|
|
574
|
-
}
|
|
575
|
-
/**
|
|
576
|
-
* @desc
|
|
577
|
-
* @param item
|
|
578
|
-
*/
|
|
579
|
-
itemRenderer(item) {
|
|
580
|
-
if (item[this.objectMapping['id']] && String(this.selectedId) == String(item[this.objectMapping['id']])) {
|
|
581
|
-
this.listboxItemSelected.emit(item);
|
|
582
|
-
}
|
|
583
|
-
// if(item[this.objectMapping['selected']] && item[this.objectMapping['selected']] === true){
|
|
584
|
-
// this.listboxItemSelected.emit(item)
|
|
585
|
-
// }
|
|
586
|
-
// var checkedListCache = this.checkedList;
|
|
587
|
-
// if(checkedListCache && checkedListCache.find(e => e == item[this.objectMapping['id']])){
|
|
588
|
-
// this.handleListboxChecked({detail: item[this.objectMapping['id']]})
|
|
589
|
-
// }
|
|
590
|
-
// const index = checkedListCache.indexOf(item[this.objectMapping['id']]);
|
|
591
|
-
// if (index > -1) {
|
|
592
|
-
// checkedListCache.splice(index, 1);
|
|
593
|
-
// }
|
|
594
|
-
// if(this.updateCheckedList.length > 0 ){
|
|
595
|
-
// if( this.updateCheckedList.find(e => e == item[this.objectMapping['id']]) ){
|
|
596
|
-
// const index = this.updateCheckedList.indexOf(item[this.objectMapping['id']]);
|
|
597
|
-
// if (index > -1) {
|
|
598
|
-
// this.updateCheckedList.splice(index, 1);
|
|
599
|
-
// }
|
|
600
|
-
// this.listboxChecked.emit(item[this.objectMapping['id']])
|
|
601
|
-
// }
|
|
602
|
-
// }
|
|
603
|
-
return (h("bcm-listbox-item", Object.assign({ _internal_id: this._internal_id, id: String(item[this.objectMapping['id']]), text: item[this.objectMapping['text']] }, (item[this.objectMapping['icon']] && { icon: item[this.objectMapping['icon']] }), (item[this.objectMapping['avatar']] && { avatar: item[this.objectMapping['avatar']] }), (item[this.objectMapping['avatarName']] && { avatarName: item[this.objectMapping['avatarName']] }), (item[this.objectMapping['avatarImage']] && { avatarImage: item[this.objectMapping['avatarImage']] }), (item[this.objectMapping['secondaryText']] && { secondaryText: item[this.objectMapping['secondaryText']] }), (item[this.objectMapping['tooltipText']] && { tooltipText: item[this.objectMapping['tooltipText']] }), (Boolean(item[this.objectMapping['checked']]) === Boolean(true) && { checked: Boolean(item[this.objectMapping['checked']]) }), (item[this.objectMapping['disabled']] === true && { disabled: true }), (Boolean(item[this.objectMapping['selected']]) === Boolean(true) && this.checkboxes == false && { selected: Boolean(item[this.objectMapping['selected']]) }), (this.template && { template: this.template }), (this.checkboxes && { checkboxes: true }), (this.size && { size: this.size }), { itemObject: item, objectMapping: this.objectMapping })));
|
|
604
|
-
}
|
|
605
|
-
/**
|
|
606
|
-
* @desc
|
|
607
|
-
* @param group
|
|
608
|
-
*/
|
|
609
|
-
recursiveGroupRenderer(group) {
|
|
610
|
-
return (h("bcm-listbox-group", { id: group[this.objectMapping['id']], text: group[this.objectMapping['text']] }, group.items.map((item) => ((item.type === 'group' ? this.recursiveGroupRenderer(item) : this.itemRenderer(item))))));
|
|
611
|
-
}
|
|
612
|
-
async searchResultMethod(items = []) {
|
|
613
|
-
if (this.treeview == true) {
|
|
614
|
-
const bcmtreeview = this.el.shadowRoot.querySelector("bcm-treeview");
|
|
615
|
-
// await bcmListbox.config(this._config)
|
|
616
|
-
if (bcmtreeview) {
|
|
617
|
-
bcmtreeview.searchResultMethod({ detail: (items.length > 0 ? items : true) });
|
|
618
|
-
}
|
|
619
|
-
}
|
|
620
|
-
else {
|
|
621
|
-
this.listenSearchResult({ detail: (items.length > 0 ? items : true), isEvent: true });
|
|
622
|
-
}
|
|
623
|
-
// return true
|
|
624
|
-
}
|
|
625
|
-
handleListboxSelected(event) {
|
|
626
|
-
this.listboxItemSelected.emit(event.detail);
|
|
627
|
-
}
|
|
628
|
-
/**
|
|
629
|
-
* @desc
|
|
630
|
-
*/
|
|
631
|
-
// @Listen('bcm-treeview-checklist')
|
|
632
|
-
// handleListboxCheckedList(e) {
|
|
633
|
-
// this.listboxChecklist.emit(e.detail)
|
|
634
|
-
// }
|
|
635
|
-
isLoading(val) {
|
|
636
|
-
var listContainer = this.el.shadowRoot.getElementById("bcm-listbox-list");
|
|
637
|
-
var loading = this.el.shadowRoot.getElementById("loading");
|
|
638
|
-
var searchInput = this.el.shadowRoot.querySelector("bcm-old-search");
|
|
639
|
-
// var listcontainer = this.el.shadowRoot.getElementById("list-container")
|
|
640
|
-
if (val) {
|
|
641
|
-
if (searchInput) {
|
|
642
|
-
searchInput.disabled = true;
|
|
643
|
-
}
|
|
644
|
-
listContainer && listContainer.classList.add('loading');
|
|
645
|
-
loading && loading.classList.add('show');
|
|
646
|
-
// listcontainer && listcontainer.classList.add('hidden')
|
|
647
|
-
}
|
|
648
|
-
else {
|
|
649
|
-
if (searchInput) {
|
|
650
|
-
searchInput.disabled = false;
|
|
651
|
-
}
|
|
652
|
-
listContainer && listContainer.classList.remove('loading');
|
|
653
|
-
loading && loading.classList.remove('show');
|
|
654
|
-
// listcontainer && listcontainer.classList.remove('hidden')
|
|
655
|
-
}
|
|
656
|
-
}
|
|
657
|
-
isEmpty(val) {
|
|
658
|
-
var empty = this.el.shadowRoot.getElementById("empty");
|
|
659
|
-
var listcontainer = this.el.shadowRoot.getElementById("list-container");
|
|
660
|
-
var checkall = this.el.shadowRoot.getElementById("checkall");
|
|
661
|
-
if (val) {
|
|
662
|
-
empty && empty.classList.add('show');
|
|
663
|
-
listcontainer && listcontainer.classList.add('hidden');
|
|
664
|
-
checkall && checkall.classList.add('hidden');
|
|
665
|
-
}
|
|
666
|
-
else {
|
|
667
|
-
empty && empty.classList.remove('show');
|
|
668
|
-
listcontainer && listcontainer.classList.remove('hidden');
|
|
669
|
-
checkall && checkall.classList.remove('hidden');
|
|
670
|
-
}
|
|
671
|
-
}
|
|
672
|
-
isSearchCount(val = false) {
|
|
673
|
-
if (this.infoFooter) {
|
|
674
|
-
var inSearch = this.el.shadowRoot.getElementById("in-search");
|
|
675
|
-
var inTotal = this.el.shadowRoot.getElementById("in-total");
|
|
676
|
-
if (val !== false && val >= 0 && val != null && inSearch && inTotal) {
|
|
677
|
-
inSearch.innerHTML = val;
|
|
678
|
-
inTotal.style.display = "none";
|
|
679
|
-
}
|
|
680
|
-
else {
|
|
681
|
-
inTotal.style.display = "inline";
|
|
682
|
-
inSearch.innerHTML = "";
|
|
683
|
-
}
|
|
684
|
-
}
|
|
685
|
-
}
|
|
686
|
-
listenSearchResult(event) {
|
|
687
|
-
var path = event.path || (event.composedPath && event.composedPath());
|
|
688
|
-
if (event.isEvent == undefined) {
|
|
689
|
-
if (path && path.filter((input) => input['_internal_id'] == this._internal_id)[0] != undefined) {
|
|
690
|
-
var searchValue = '';
|
|
691
|
-
if (this.treeview == false) {
|
|
692
|
-
// var checkall = null
|
|
693
|
-
// this.checkboxes && (checkall = this.el.shadowRoot.getElementById("checkall"))
|
|
694
|
-
var totalSearch = event.detail.length;
|
|
695
|
-
// this.empty = false
|
|
696
|
-
this.isEmpty(false);
|
|
697
|
-
this.intersection = [];
|
|
698
|
-
if (event.detail.length > 0) {
|
|
699
|
-
if (event.detail[0] == -1) {
|
|
700
|
-
totalSearch = 0;
|
|
701
|
-
this.empty = true;
|
|
702
|
-
this.isEmpty(true);
|
|
703
|
-
}
|
|
704
|
-
if (this.allChilds.length > 0) {
|
|
705
|
-
// this.checkboxes && ( checkall && checkall.classList.add('hidden') )
|
|
706
|
-
this.allChilds.map((item) => {
|
|
707
|
-
if (this.highlight) {
|
|
708
|
-
event.target.addEventListener('bcm-on-search-value', async (e) => {
|
|
709
|
-
var inputText = item.shadowRoot.getElementById("text");
|
|
710
|
-
if (inputText) {
|
|
711
|
-
searchValue = await e.detail;
|
|
712
|
-
inputText = (inputText === null || inputText === void 0 ? void 0 : inputText.textContent) || (inputText === null || inputText === void 0 ? void 0 : inputText.innerText) || "";
|
|
713
|
-
if (searchValue) {
|
|
714
|
-
var cacheInputText = lowercase(inputText);
|
|
715
|
-
var cacheSearchValue = lowercase(searchValue);
|
|
716
|
-
var index = cacheInputText.indexOf(cacheSearchValue);
|
|
717
|
-
if (index >= 0) {
|
|
718
|
-
inputText = inputText.substring(0, index) + "<span class='highlight'>" + inputText.substring(index, index + searchValue.length) + "</span>" + inputText.substring(index + searchValue.length);
|
|
719
|
-
}
|
|
720
|
-
}
|
|
721
|
-
item.shadowRoot.getElementById("text").innerHTML = inputText;
|
|
722
|
-
}
|
|
723
|
-
});
|
|
724
|
-
}
|
|
725
|
-
item.hidden = true;
|
|
726
|
-
var _ids = String(item.id);
|
|
727
|
-
if (event.detail.indexOf(_ids) >= 0) {
|
|
728
|
-
item.hidden = false;
|
|
729
|
-
}
|
|
730
|
-
else {
|
|
731
|
-
item.hidden = true;
|
|
732
|
-
}
|
|
733
|
-
});
|
|
734
|
-
}
|
|
735
|
-
this.intersection = event.detail[0] == -1 ? [0] : event.detail.filter(x => this.isGroupArray.includes(x));
|
|
736
|
-
}
|
|
737
|
-
else {
|
|
738
|
-
if (this.allChilds.length > 0) {
|
|
739
|
-
this.allChilds.map((item) => {
|
|
740
|
-
item.hidden = false;
|
|
741
|
-
});
|
|
742
|
-
// this.checkboxes && ( checkall && checkall.classList.remove('hidden') )
|
|
743
|
-
}
|
|
744
|
-
// this.isEmpty(true)
|
|
745
|
-
}
|
|
746
|
-
if (this.search || this.checkboxes) {
|
|
747
|
-
setTimeout(() => {
|
|
748
|
-
if (totalSearch >= 0) {
|
|
749
|
-
var totals = totalSearch;
|
|
750
|
-
this.isSearchCount(totals);
|
|
751
|
-
}
|
|
752
|
-
else {
|
|
753
|
-
this.isSearchCount(0);
|
|
754
|
-
}
|
|
755
|
-
if (event.detail[0] === -1) {
|
|
756
|
-
this.isSearchCount(0);
|
|
757
|
-
}
|
|
758
|
-
if (event.detail === true) {
|
|
759
|
-
this.isSearchCount();
|
|
760
|
-
}
|
|
761
|
-
}, 100);
|
|
762
|
-
}
|
|
763
|
-
if (event.detail === true) {
|
|
764
|
-
this.isEmpty(false);
|
|
765
|
-
}
|
|
766
|
-
if (this.runClearAndSelect) {
|
|
767
|
-
this.runClearAndSelect = false;
|
|
768
|
-
this.isSearchCount(true);
|
|
769
|
-
}
|
|
770
|
-
}
|
|
771
|
-
}
|
|
772
|
-
}
|
|
773
|
-
}
|
|
774
|
-
/**
|
|
775
|
-
* @desc
|
|
776
|
-
* @param newValue
|
|
777
|
-
* @returns {void}
|
|
778
|
-
*/
|
|
779
|
-
parseItems(newValue) {
|
|
780
|
-
if (newValue) {
|
|
781
|
-
typeof newValue == 'string'
|
|
782
|
-
? this.items = JSON.parse(newValue)
|
|
783
|
-
: this.items = newValue;
|
|
784
|
-
}
|
|
785
|
-
this.handleChildProcess();
|
|
786
|
-
}
|
|
787
|
-
handleChange(newValue) {
|
|
788
|
-
this.change.emit(newValue);
|
|
789
|
-
this.listboxChange.emit(newValue);
|
|
790
|
-
}
|
|
791
|
-
handleChildProcess() {
|
|
792
|
-
setTimeout(() => {
|
|
793
|
-
this.onlyChilds = this.getAllGroup(this.el, true);
|
|
794
|
-
this.total = this.onlyChilds.length;
|
|
795
|
-
// console.log(this.total)
|
|
796
|
-
// this.allChilds = this.getAllChilds()
|
|
797
|
-
// this.total = this.allChilds.filter((v, i, a) => a.indexOf(v) === i).length
|
|
798
|
-
if (this.total > 0) {
|
|
799
|
-
// setTimeout(() => {
|
|
800
|
-
this.isLoading(false);
|
|
801
|
-
// }, 100);
|
|
802
|
-
this.isEmpty(false);
|
|
803
|
-
}
|
|
804
|
-
else {
|
|
805
|
-
// setTimeout(() => {
|
|
806
|
-
this.isLoading(false);
|
|
807
|
-
this.isEmpty(true);
|
|
808
|
-
// }, 100);
|
|
809
|
-
}
|
|
810
|
-
}, 100);
|
|
811
|
-
}
|
|
812
|
-
/**
|
|
813
|
-
* @desc
|
|
814
|
-
*/
|
|
815
|
-
handleListboxClearSelected(event) {
|
|
816
|
-
var path = event.path || (event.composedPath && event.composedPath());
|
|
817
|
-
if (this.checkboxes == false && path && path.filter((input) => input['_internal_id'] == this._internal_id)[0] != undefined) {
|
|
818
|
-
this.value = event.detail;
|
|
819
|
-
this.selectedId = String(event.detail[this.objectMapping['id']]);
|
|
820
|
-
this.listboxClearSelected.emit(event.detail);
|
|
821
|
-
}
|
|
822
|
-
}
|
|
823
|
-
/**
|
|
824
|
-
* @desc
|
|
825
|
-
*/
|
|
826
|
-
handleListboxChecked(event, _internal_id = this._internal_id) {
|
|
827
|
-
var path = event.path || (event.composedPath && event.composedPath());
|
|
828
|
-
if ((path && path.filter((input) => input['_internal_id'] == this._internal_id)[0] != undefined) || _internal_id == this._internal_id) {
|
|
829
|
-
this.listboxSendCheck.emit(event.detail);
|
|
830
|
-
this.handleCheckList('add', event.detail);
|
|
831
|
-
this.setIndeterminateState();
|
|
832
|
-
}
|
|
833
|
-
}
|
|
834
|
-
/**
|
|
835
|
-
* @desc
|
|
836
|
-
*/
|
|
837
|
-
handleListboxUnchecked(event, _internal_id = this._internal_id) {
|
|
838
|
-
var path = event.path || (event.composedPath && event.composedPath());
|
|
839
|
-
if ((path && path.filter((input) => input['_internal_id'] == this._internal_id)[0] != undefined) || _internal_id == this._internal_id) {
|
|
840
|
-
this.listboxSendUncheck.emit(event.detail);
|
|
841
|
-
this.handleCheckList('remove', event.detail);
|
|
842
|
-
this.setIndeterminateState();
|
|
843
|
-
}
|
|
844
|
-
}
|
|
845
|
-
async listboxUncheckedMethod(item, internal_id = this._internal_id) {
|
|
846
|
-
if (this.treeview) {
|
|
847
|
-
await customElements.whenDefined("bcm-treeview");
|
|
848
|
-
const bcmTreeview = this.el.shadowRoot.querySelector("bcm-treeview");
|
|
849
|
-
if (bcmTreeview) {
|
|
850
|
-
await bcmTreeview.treeviewUncheckedMethod(item);
|
|
851
|
-
}
|
|
852
|
-
}
|
|
853
|
-
else {
|
|
854
|
-
this.handleListboxUnchecked({ "detail": item }, internal_id);
|
|
855
|
-
}
|
|
856
|
-
}
|
|
857
|
-
handleFocus(focusEvent = false) {
|
|
858
|
-
this.onFocus = focusEvent;
|
|
859
|
-
}
|
|
860
|
-
render() {
|
|
861
|
-
const { innerComponent, label, required, treeview, searchText, checkboxes, search, size, fullWidth, total, indeterminateState, checked, checklist, searchData, searchFields, _flex, returnField, searchSub, infoFooter, showSearch, noCaption, caption, captionError, captionType } = this;
|
|
862
|
-
const bcmListbox = cs('bcm-listbox', {
|
|
863
|
-
'error': captionType == 'error' ? true : false,
|
|
864
|
-
'full-width': fullWidth,
|
|
865
|
-
'flex': _flex
|
|
866
|
-
});
|
|
867
|
-
const classes = cs('listbox-item', {
|
|
868
|
-
'hidden': this.totalSearch > 0
|
|
869
|
-
});
|
|
870
|
-
const classesContainer = cs('listbox-item-container');
|
|
871
|
-
const textContent = cs('listbox-item-container-text-content', size, {
|
|
872
|
-
'size-2': size === 'small' || size === 'medium',
|
|
873
|
-
'size-3': size === 'large',
|
|
874
|
-
});
|
|
875
|
-
const listContainer = cs('list-container', {
|
|
876
|
-
'column-1': this.numberOfColumns <= 1,
|
|
877
|
-
'column-2': this.numberOfColumns == 2,
|
|
878
|
-
'column-3': this.numberOfColumns >= 3,
|
|
879
|
-
});
|
|
880
|
-
const listContainerStyle = {
|
|
881
|
-
'grid-template-columns': this.numberOfColumns <= 1 ? '1fr' : 'repeat(' + this.numberOfColumns + ', ' + (210 - (this.numberOfColumns * 10)) + 'px)'
|
|
882
|
-
};
|
|
883
|
-
const hostClasses = cs(this.hidden ? 'hidden' : null,
|
|
884
|
-
// this.totalSearch > 0 ? 'hidden' : null,
|
|
885
|
-
{
|
|
886
|
-
'flex': _flex,
|
|
887
|
-
'full-width': fullWidth
|
|
888
|
-
});
|
|
889
|
-
var customStyles = {
|
|
890
|
-
'max-height': this.maxHeight
|
|
891
|
-
};
|
|
892
|
-
const customStylesList = {
|
|
893
|
-
'min-height': this.height ? "inherit" : this.maxHeight ? "auto" : "200px"
|
|
894
|
-
};
|
|
895
|
-
if (this.height) {
|
|
896
|
-
customStyles = Object.assign(Object.assign({}, customStyles), { 'height': this.height });
|
|
897
|
-
}
|
|
898
|
-
const captionClasses = cs('size-1', 'input-caption', 'caption-' + captionType);
|
|
899
|
-
return (h(Host, { class: hostClasses, style: customStyles, "bcm-internal-id": this._internal_id },
|
|
900
|
-
!innerComponent && label && h("div", null,
|
|
901
|
-
h("bcm-label", { tooltip: this.tooltip, type: captionType, value: label, required: required })),
|
|
902
|
-
treeview === true && (h("bcm-treeview", { _internal_id: this._internal_id })),
|
|
903
|
-
treeview == false && (h("div", { class: bcmListbox, style: customStyles },
|
|
904
|
-
search && (h("div", { class: "search", id: "search", style: { 'display': String(showSearch) == 'false' ? 'none' : 'block' } },
|
|
905
|
-
h("bcm-old-search", { _internal_id: this._internal_id, searchPlaceholder: this.searchPlaceholder, searchValue: searchText, "on-bcm-focus": () => this.handleFocus(true), "on-bcm-blur": () => this.handleFocus(false), data: searchData, returnField: returnField, searchFields: searchFields, searchSub: searchSub, clearable: true }),
|
|
906
|
-
h("bcm-divider", null))),
|
|
907
|
-
h("div", { id: "bcm-listbox-list", class: "bcm-listbox-list loading", style: customStylesList },
|
|
908
|
-
checkboxes && (h("div", { class: classes, id: "checkall" },
|
|
909
|
-
h("div", { class: classesContainer, onClick: () => this.handleIndeterminateClick() },
|
|
910
|
-
h("div", { class: "check-content" }, indeterminateState == 'indeterminate' && (h("span", { class: "indeterminate" })) || (h("bcm-checkbox-lite", { onClick: (e) => this.handleCheckboxClick(e), checked: checked, "no-caption": true }))),
|
|
911
|
-
h("div", { class: textContent }, "Select All")),
|
|
912
|
-
h("div", { class: "divider" },
|
|
913
|
-
h("bcm-divider", null)))),
|
|
914
|
-
// this.empty == false && (
|
|
915
|
-
h("div", { id: "list-container", class: listContainer, style: listContainerStyle }, this.items.length !== 0 && this.items.map((item) => ((item.type === 'group' ? this.recursiveGroupRenderer(item) : this.itemRenderer(item)))))
|
|
916
|
-
// )
|
|
917
|
-
,
|
|
918
|
-
// this.loading && (
|
|
919
|
-
h("div", { id: "loading", class: "loading show" },
|
|
920
|
-
h("bcm-icon", { class: "prefix", icon: "far fa-spinner-third fa-spin" }))
|
|
921
|
-
// )
|
|
922
|
-
,
|
|
923
|
-
// ( this.empty || total == 0 ) && (
|
|
924
|
-
h("div", { id: "empty", class: "empty" },
|
|
925
|
-
h("bcm-empty", null, "No Data"))
|
|
926
|
-
// )
|
|
927
|
-
),
|
|
928
|
-
infoFooter == true && (h("div", { class: "bcm-listbox-footer" },
|
|
929
|
-
h("bcm-text", { scale: "size-1", color: "grey-8" },
|
|
930
|
-
checklist.length > 0 && (' ( ' + checklist.length + ' selected ) '),
|
|
931
|
-
"Total ",
|
|
932
|
-
h("span", { id: "in-search" }),
|
|
933
|
-
" ",
|
|
934
|
-
h("span", { id: "in-total" }, total),
|
|
935
|
-
" items found."))))),
|
|
936
|
-
!noCaption && (h("div", { class: "caption-area" }, captionType == "error"
|
|
937
|
-
? h("span", { class: captionClasses },
|
|
938
|
-
" ",
|
|
939
|
-
captionError,
|
|
940
|
-
" ")
|
|
941
|
-
: caption && h("span", { class: captionClasses },
|
|
942
|
-
" ",
|
|
943
|
-
caption,
|
|
944
|
-
" ")))));
|
|
945
|
-
}
|
|
946
|
-
static get is() { return "bcm-listbox"; }
|
|
947
|
-
static get encapsulation() { return "shadow"; }
|
|
948
|
-
static get originalStyleUrls() { return {
|
|
949
|
-
"$": ["listbox.scss"]
|
|
950
|
-
}; }
|
|
951
|
-
static get styleUrls() { return {
|
|
952
|
-
"$": ["listbox.css"]
|
|
953
|
-
}; }
|
|
954
|
-
static get properties() { return {
|
|
955
|
-
"innerComponent": {
|
|
956
|
-
"type": "boolean",
|
|
957
|
-
"mutable": true,
|
|
958
|
-
"complexType": {
|
|
959
|
-
"original": "boolean",
|
|
960
|
-
"resolved": "boolean",
|
|
961
|
-
"references": {}
|
|
962
|
-
},
|
|
963
|
-
"required": false,
|
|
964
|
-
"optional": false,
|
|
965
|
-
"docs": {
|
|
966
|
-
"tags": [],
|
|
967
|
-
"text": "Component Properties"
|
|
968
|
-
},
|
|
969
|
-
"attribute": "inner-component",
|
|
970
|
-
"reflect": false,
|
|
971
|
-
"defaultValue": "false"
|
|
972
|
-
},
|
|
973
|
-
"checkboxes": {
|
|
974
|
-
"type": "boolean",
|
|
975
|
-
"mutable": true,
|
|
976
|
-
"complexType": {
|
|
977
|
-
"original": "boolean",
|
|
978
|
-
"resolved": "boolean",
|
|
979
|
-
"references": {}
|
|
980
|
-
},
|
|
981
|
-
"required": false,
|
|
982
|
-
"optional": false,
|
|
983
|
-
"docs": {
|
|
984
|
-
"tags": [],
|
|
985
|
-
"text": ""
|
|
986
|
-
},
|
|
987
|
-
"attribute": "checkboxes",
|
|
988
|
-
"reflect": false,
|
|
989
|
-
"defaultValue": "false"
|
|
990
|
-
},
|
|
991
|
-
"label": {
|
|
992
|
-
"type": "string",
|
|
993
|
-
"mutable": true,
|
|
994
|
-
"complexType": {
|
|
995
|
-
"original": "string",
|
|
996
|
-
"resolved": "string",
|
|
997
|
-
"references": {}
|
|
998
|
-
},
|
|
999
|
-
"required": false,
|
|
1000
|
-
"optional": false,
|
|
1001
|
-
"docs": {
|
|
1002
|
-
"tags": [],
|
|
1003
|
-
"text": ""
|
|
1004
|
-
},
|
|
1005
|
-
"attribute": "label",
|
|
1006
|
-
"reflect": false
|
|
1007
|
-
},
|
|
1008
|
-
"required": {
|
|
1009
|
-
"type": "boolean",
|
|
1010
|
-
"mutable": true,
|
|
1011
|
-
"complexType": {
|
|
1012
|
-
"original": "boolean",
|
|
1013
|
-
"resolved": "boolean",
|
|
1014
|
-
"references": {}
|
|
1015
|
-
},
|
|
1016
|
-
"required": false,
|
|
1017
|
-
"optional": false,
|
|
1018
|
-
"docs": {
|
|
1019
|
-
"tags": [],
|
|
1020
|
-
"text": ""
|
|
1021
|
-
},
|
|
1022
|
-
"attribute": "required",
|
|
1023
|
-
"reflect": false,
|
|
1024
|
-
"defaultValue": "false"
|
|
1025
|
-
},
|
|
1026
|
-
"value": {
|
|
1027
|
-
"type": "any",
|
|
1028
|
-
"mutable": true,
|
|
1029
|
-
"complexType": {
|
|
1030
|
-
"original": "any",
|
|
1031
|
-
"resolved": "any",
|
|
1032
|
-
"references": {}
|
|
1033
|
-
},
|
|
1034
|
-
"required": false,
|
|
1035
|
-
"optional": false,
|
|
1036
|
-
"docs": {
|
|
1037
|
-
"tags": [],
|
|
1038
|
-
"text": ""
|
|
1039
|
-
},
|
|
1040
|
-
"attribute": "value",
|
|
1041
|
-
"reflect": false,
|
|
1042
|
-
"defaultValue": "null"
|
|
1043
|
-
},
|
|
1044
|
-
"search": {
|
|
1045
|
-
"type": "boolean",
|
|
1046
|
-
"mutable": true,
|
|
1047
|
-
"complexType": {
|
|
1048
|
-
"original": "boolean",
|
|
1049
|
-
"resolved": "boolean",
|
|
1050
|
-
"references": {}
|
|
1051
|
-
},
|
|
1052
|
-
"required": false,
|
|
1053
|
-
"optional": false,
|
|
1054
|
-
"docs": {
|
|
1055
|
-
"tags": [],
|
|
1056
|
-
"text": ""
|
|
1057
|
-
},
|
|
1058
|
-
"attribute": "search",
|
|
1059
|
-
"reflect": false,
|
|
1060
|
-
"defaultValue": "false"
|
|
1061
|
-
},
|
|
1062
|
-
"infoFooter": {
|
|
1063
|
-
"type": "boolean",
|
|
1064
|
-
"mutable": true,
|
|
1065
|
-
"complexType": {
|
|
1066
|
-
"original": "boolean",
|
|
1067
|
-
"resolved": "boolean",
|
|
1068
|
-
"references": {}
|
|
1069
|
-
},
|
|
1070
|
-
"required": false,
|
|
1071
|
-
"optional": false,
|
|
1072
|
-
"docs": {
|
|
1073
|
-
"tags": [],
|
|
1074
|
-
"text": ""
|
|
1075
|
-
},
|
|
1076
|
-
"attribute": "info-footer",
|
|
1077
|
-
"reflect": false,
|
|
1078
|
-
"defaultValue": "false"
|
|
1079
|
-
},
|
|
1080
|
-
"showIcon": {
|
|
1081
|
-
"type": "boolean",
|
|
1082
|
-
"mutable": true,
|
|
1083
|
-
"complexType": {
|
|
1084
|
-
"original": "boolean",
|
|
1085
|
-
"resolved": "boolean",
|
|
1086
|
-
"references": {}
|
|
1087
|
-
},
|
|
1088
|
-
"required": false,
|
|
1089
|
-
"optional": false,
|
|
1090
|
-
"docs": {
|
|
1091
|
-
"tags": [],
|
|
1092
|
-
"text": ""
|
|
1093
|
-
},
|
|
1094
|
-
"attribute": "show-icon",
|
|
1095
|
-
"reflect": false,
|
|
1096
|
-
"defaultValue": "false"
|
|
1097
|
-
},
|
|
1098
|
-
"size": {
|
|
1099
|
-
"type": "string",
|
|
1100
|
-
"mutable": true,
|
|
1101
|
-
"complexType": {
|
|
1102
|
-
"original": "SizeProp",
|
|
1103
|
-
"resolved": "\"large\" | \"medium\" | \"small\"",
|
|
1104
|
-
"references": {
|
|
1105
|
-
"SizeProp": {
|
|
1106
|
-
"location": "import",
|
|
1107
|
-
"path": "./types"
|
|
1108
|
-
}
|
|
1109
|
-
}
|
|
1110
|
-
},
|
|
1111
|
-
"required": false,
|
|
1112
|
-
"optional": false,
|
|
1113
|
-
"docs": {
|
|
1114
|
-
"tags": [],
|
|
1115
|
-
"text": ""
|
|
1116
|
-
},
|
|
1117
|
-
"attribute": "size",
|
|
1118
|
-
"reflect": false,
|
|
1119
|
-
"defaultValue": "'medium'"
|
|
1120
|
-
},
|
|
1121
|
-
"selectedId": {
|
|
1122
|
-
"type": "string",
|
|
1123
|
-
"mutable": true,
|
|
1124
|
-
"complexType": {
|
|
1125
|
-
"original": "string",
|
|
1126
|
-
"resolved": "string",
|
|
1127
|
-
"references": {}
|
|
1128
|
-
},
|
|
1129
|
-
"required": false,
|
|
1130
|
-
"optional": false,
|
|
1131
|
-
"docs": {
|
|
1132
|
-
"tags": [],
|
|
1133
|
-
"text": ""
|
|
1134
|
-
},
|
|
1135
|
-
"attribute": "selected-id",
|
|
1136
|
-
"reflect": false
|
|
1137
|
-
},
|
|
1138
|
-
"checkedList": {
|
|
1139
|
-
"type": "unknown",
|
|
1140
|
-
"mutable": true,
|
|
1141
|
-
"complexType": {
|
|
1142
|
-
"original": "Array<any>",
|
|
1143
|
-
"resolved": "any[]",
|
|
1144
|
-
"references": {
|
|
1145
|
-
"Array": {
|
|
1146
|
-
"location": "global"
|
|
1147
|
-
}
|
|
1148
|
-
}
|
|
1149
|
-
},
|
|
1150
|
-
"required": false,
|
|
1151
|
-
"optional": false,
|
|
1152
|
-
"docs": {
|
|
1153
|
-
"tags": [],
|
|
1154
|
-
"text": ""
|
|
1155
|
-
},
|
|
1156
|
-
"defaultValue": "[]"
|
|
1157
|
-
},
|
|
1158
|
-
"updateCheckedList": {
|
|
1159
|
-
"type": "unknown",
|
|
1160
|
-
"mutable": true,
|
|
1161
|
-
"complexType": {
|
|
1162
|
-
"original": "Array<any>",
|
|
1163
|
-
"resolved": "any[]",
|
|
1164
|
-
"references": {
|
|
1165
|
-
"Array": {
|
|
1166
|
-
"location": "global"
|
|
1167
|
-
}
|
|
1168
|
-
}
|
|
1169
|
-
},
|
|
1170
|
-
"required": false,
|
|
1171
|
-
"optional": false,
|
|
1172
|
-
"docs": {
|
|
1173
|
-
"tags": [],
|
|
1174
|
-
"text": ""
|
|
1175
|
-
},
|
|
1176
|
-
"defaultValue": "[]"
|
|
1177
|
-
},
|
|
1178
|
-
"_items": {
|
|
1179
|
-
"type": "string",
|
|
1180
|
-
"mutable": true,
|
|
1181
|
-
"complexType": {
|
|
1182
|
-
"original": "Array<object> | string",
|
|
1183
|
-
"resolved": "object[] | string",
|
|
1184
|
-
"references": {
|
|
1185
|
-
"Array": {
|
|
1186
|
-
"location": "global"
|
|
1187
|
-
}
|
|
1188
|
-
}
|
|
1189
|
-
},
|
|
1190
|
-
"required": false,
|
|
1191
|
-
"optional": false,
|
|
1192
|
-
"docs": {
|
|
1193
|
-
"tags": [],
|
|
1194
|
-
"text": ""
|
|
1195
|
-
},
|
|
1196
|
-
"attribute": "data",
|
|
1197
|
-
"reflect": false,
|
|
1198
|
-
"defaultValue": "[]"
|
|
1199
|
-
},
|
|
1200
|
-
"fullWidth": {
|
|
1201
|
-
"type": "boolean",
|
|
1202
|
-
"mutable": true,
|
|
1203
|
-
"complexType": {
|
|
1204
|
-
"original": "boolean",
|
|
1205
|
-
"resolved": "boolean",
|
|
1206
|
-
"references": {}
|
|
1207
|
-
},
|
|
1208
|
-
"required": false,
|
|
1209
|
-
"optional": false,
|
|
1210
|
-
"docs": {
|
|
1211
|
-
"tags": [],
|
|
1212
|
-
"text": ""
|
|
1213
|
-
},
|
|
1214
|
-
"attribute": "full-width",
|
|
1215
|
-
"reflect": false,
|
|
1216
|
-
"defaultValue": "false"
|
|
1217
|
-
},
|
|
1218
|
-
"searchFields": {
|
|
1219
|
-
"type": "unknown",
|
|
1220
|
-
"mutable": true,
|
|
1221
|
-
"complexType": {
|
|
1222
|
-
"original": "Array<string>",
|
|
1223
|
-
"resolved": "string[]",
|
|
1224
|
-
"references": {
|
|
1225
|
-
"Array": {
|
|
1226
|
-
"location": "global"
|
|
1227
|
-
}
|
|
1228
|
-
}
|
|
1229
|
-
},
|
|
1230
|
-
"required": false,
|
|
1231
|
-
"optional": false,
|
|
1232
|
-
"docs": {
|
|
1233
|
-
"tags": [],
|
|
1234
|
-
"text": ""
|
|
1235
|
-
},
|
|
1236
|
-
"defaultValue": "['text', 'secondaryText', 'tooltipText']"
|
|
1237
|
-
},
|
|
1238
|
-
"_flex": {
|
|
1239
|
-
"type": "string",
|
|
1240
|
-
"mutable": true,
|
|
1241
|
-
"complexType": {
|
|
1242
|
-
"original": "string",
|
|
1243
|
-
"resolved": "string",
|
|
1244
|
-
"references": {}
|
|
1245
|
-
},
|
|
1246
|
-
"required": false,
|
|
1247
|
-
"optional": false,
|
|
1248
|
-
"docs": {
|
|
1249
|
-
"tags": [],
|
|
1250
|
-
"text": ""
|
|
1251
|
-
},
|
|
1252
|
-
"attribute": "flex",
|
|
1253
|
-
"reflect": false
|
|
1254
|
-
},
|
|
1255
|
-
"hidden": {
|
|
1256
|
-
"type": "boolean",
|
|
1257
|
-
"mutable": true,
|
|
1258
|
-
"complexType": {
|
|
1259
|
-
"original": "boolean",
|
|
1260
|
-
"resolved": "boolean",
|
|
1261
|
-
"references": {}
|
|
1262
|
-
},
|
|
1263
|
-
"required": false,
|
|
1264
|
-
"optional": false,
|
|
1265
|
-
"docs": {
|
|
1266
|
-
"tags": [],
|
|
1267
|
-
"text": ""
|
|
1268
|
-
},
|
|
1269
|
-
"attribute": "hidden",
|
|
1270
|
-
"reflect": false,
|
|
1271
|
-
"defaultValue": "false"
|
|
1272
|
-
},
|
|
1273
|
-
"returnField": {
|
|
1274
|
-
"type": "string",
|
|
1275
|
-
"mutable": true,
|
|
1276
|
-
"complexType": {
|
|
1277
|
-
"original": "string",
|
|
1278
|
-
"resolved": "string",
|
|
1279
|
-
"references": {}
|
|
1280
|
-
},
|
|
1281
|
-
"required": false,
|
|
1282
|
-
"optional": false,
|
|
1283
|
-
"docs": {
|
|
1284
|
-
"tags": [],
|
|
1285
|
-
"text": ""
|
|
1286
|
-
},
|
|
1287
|
-
"attribute": "return-field",
|
|
1288
|
-
"reflect": false,
|
|
1289
|
-
"defaultValue": "\"id\""
|
|
1290
|
-
},
|
|
1291
|
-
"searchSub": {
|
|
1292
|
-
"type": "string",
|
|
1293
|
-
"mutable": true,
|
|
1294
|
-
"complexType": {
|
|
1295
|
-
"original": "string",
|
|
1296
|
-
"resolved": "string",
|
|
1297
|
-
"references": {}
|
|
1298
|
-
},
|
|
1299
|
-
"required": false,
|
|
1300
|
-
"optional": false,
|
|
1301
|
-
"docs": {
|
|
1302
|
-
"tags": [],
|
|
1303
|
-
"text": ""
|
|
1304
|
-
},
|
|
1305
|
-
"attribute": "search-sub",
|
|
1306
|
-
"reflect": false,
|
|
1307
|
-
"defaultValue": "\"items\""
|
|
1308
|
-
},
|
|
1309
|
-
"searchText": {
|
|
1310
|
-
"type": "string",
|
|
1311
|
-
"mutable": true,
|
|
1312
|
-
"complexType": {
|
|
1313
|
-
"original": "string",
|
|
1314
|
-
"resolved": "string",
|
|
1315
|
-
"references": {}
|
|
1316
|
-
},
|
|
1317
|
-
"required": false,
|
|
1318
|
-
"optional": false,
|
|
1319
|
-
"docs": {
|
|
1320
|
-
"tags": [],
|
|
1321
|
-
"text": ""
|
|
1322
|
-
},
|
|
1323
|
-
"attribute": "searchtext",
|
|
1324
|
-
"reflect": false,
|
|
1325
|
-
"defaultValue": "\"\""
|
|
1326
|
-
},
|
|
1327
|
-
"treeview": {
|
|
1328
|
-
"type": "boolean",
|
|
1329
|
-
"mutable": true,
|
|
1330
|
-
"complexType": {
|
|
1331
|
-
"original": "boolean",
|
|
1332
|
-
"resolved": "boolean",
|
|
1333
|
-
"references": {}
|
|
1334
|
-
},
|
|
1335
|
-
"required": false,
|
|
1336
|
-
"optional": false,
|
|
1337
|
-
"docs": {
|
|
1338
|
-
"tags": [],
|
|
1339
|
-
"text": ""
|
|
1340
|
-
},
|
|
1341
|
-
"attribute": "treeview",
|
|
1342
|
-
"reflect": false,
|
|
1343
|
-
"defaultValue": "false"
|
|
1344
|
-
},
|
|
1345
|
-
"searchPlaceholder": {
|
|
1346
|
-
"type": "string",
|
|
1347
|
-
"mutable": true,
|
|
1348
|
-
"complexType": {
|
|
1349
|
-
"original": "string",
|
|
1350
|
-
"resolved": "string",
|
|
1351
|
-
"references": {}
|
|
1352
|
-
},
|
|
1353
|
-
"required": false,
|
|
1354
|
-
"optional": false,
|
|
1355
|
-
"docs": {
|
|
1356
|
-
"tags": [],
|
|
1357
|
-
"text": ""
|
|
1358
|
-
},
|
|
1359
|
-
"attribute": "searchplaceholder",
|
|
1360
|
-
"reflect": false,
|
|
1361
|
-
"defaultValue": "\"Search\""
|
|
1362
|
-
},
|
|
1363
|
-
"numberOfColumns": {
|
|
1364
|
-
"type": "number",
|
|
1365
|
-
"mutable": true,
|
|
1366
|
-
"complexType": {
|
|
1367
|
-
"original": "number",
|
|
1368
|
-
"resolved": "number",
|
|
1369
|
-
"references": {}
|
|
1370
|
-
},
|
|
1371
|
-
"required": false,
|
|
1372
|
-
"optional": false,
|
|
1373
|
-
"docs": {
|
|
1374
|
-
"tags": [],
|
|
1375
|
-
"text": ""
|
|
1376
|
-
},
|
|
1377
|
-
"attribute": "number-of-columns",
|
|
1378
|
-
"reflect": false,
|
|
1379
|
-
"defaultValue": "1"
|
|
1380
|
-
},
|
|
1381
|
-
"height": {
|
|
1382
|
-
"type": "string",
|
|
1383
|
-
"mutable": true,
|
|
1384
|
-
"complexType": {
|
|
1385
|
-
"original": "string",
|
|
1386
|
-
"resolved": "string",
|
|
1387
|
-
"references": {}
|
|
1388
|
-
},
|
|
1389
|
-
"required": false,
|
|
1390
|
-
"optional": false,
|
|
1391
|
-
"docs": {
|
|
1392
|
-
"tags": [],
|
|
1393
|
-
"text": ""
|
|
1394
|
-
},
|
|
1395
|
-
"attribute": "height",
|
|
1396
|
-
"reflect": false,
|
|
1397
|
-
"defaultValue": "null"
|
|
1398
|
-
},
|
|
1399
|
-
"maxHeight": {
|
|
1400
|
-
"type": "string",
|
|
1401
|
-
"mutable": true,
|
|
1402
|
-
"complexType": {
|
|
1403
|
-
"original": "string",
|
|
1404
|
-
"resolved": "string",
|
|
1405
|
-
"references": {}
|
|
1406
|
-
},
|
|
1407
|
-
"required": false,
|
|
1408
|
-
"optional": false,
|
|
1409
|
-
"docs": {
|
|
1410
|
-
"tags": [],
|
|
1411
|
-
"text": ""
|
|
1412
|
-
},
|
|
1413
|
-
"attribute": "max-height",
|
|
1414
|
-
"reflect": false,
|
|
1415
|
-
"defaultValue": "null"
|
|
1416
|
-
},
|
|
1417
|
-
"template": {
|
|
1418
|
-
"type": "string",
|
|
1419
|
-
"mutable": true,
|
|
1420
|
-
"complexType": {
|
|
1421
|
-
"original": "string",
|
|
1422
|
-
"resolved": "string",
|
|
1423
|
-
"references": {}
|
|
1424
|
-
},
|
|
1425
|
-
"required": false,
|
|
1426
|
-
"optional": false,
|
|
1427
|
-
"docs": {
|
|
1428
|
-
"tags": [],
|
|
1429
|
-
"text": ""
|
|
1430
|
-
},
|
|
1431
|
-
"attribute": "template",
|
|
1432
|
-
"reflect": false,
|
|
1433
|
-
"defaultValue": "null"
|
|
1434
|
-
},
|
|
1435
|
-
"highlight": {
|
|
1436
|
-
"type": "boolean",
|
|
1437
|
-
"mutable": true,
|
|
1438
|
-
"complexType": {
|
|
1439
|
-
"original": "boolean",
|
|
1440
|
-
"resolved": "boolean",
|
|
1441
|
-
"references": {}
|
|
1442
|
-
},
|
|
1443
|
-
"required": false,
|
|
1444
|
-
"optional": false,
|
|
1445
|
-
"docs": {
|
|
1446
|
-
"tags": [],
|
|
1447
|
-
"text": ""
|
|
1448
|
-
},
|
|
1449
|
-
"attribute": "highlight",
|
|
1450
|
-
"reflect": false,
|
|
1451
|
-
"defaultValue": "false"
|
|
1452
|
-
},
|
|
1453
|
-
"loading": {
|
|
1454
|
-
"type": "boolean",
|
|
1455
|
-
"mutable": true,
|
|
1456
|
-
"complexType": {
|
|
1457
|
-
"original": "boolean",
|
|
1458
|
-
"resolved": "boolean",
|
|
1459
|
-
"references": {}
|
|
1460
|
-
},
|
|
1461
|
-
"required": false,
|
|
1462
|
-
"optional": false,
|
|
1463
|
-
"docs": {
|
|
1464
|
-
"tags": [],
|
|
1465
|
-
"text": ""
|
|
1466
|
-
},
|
|
1467
|
-
"attribute": "loading",
|
|
1468
|
-
"reflect": false,
|
|
1469
|
-
"defaultValue": "true"
|
|
1470
|
-
},
|
|
1471
|
-
"noCaption": {
|
|
1472
|
-
"type": "boolean",
|
|
1473
|
-
"mutable": true,
|
|
1474
|
-
"complexType": {
|
|
1475
|
-
"original": "boolean",
|
|
1476
|
-
"resolved": "boolean",
|
|
1477
|
-
"references": {}
|
|
1478
|
-
},
|
|
1479
|
-
"required": false,
|
|
1480
|
-
"optional": false,
|
|
1481
|
-
"docs": {
|
|
1482
|
-
"tags": [],
|
|
1483
|
-
"text": ""
|
|
1484
|
-
},
|
|
1485
|
-
"attribute": "no-caption",
|
|
1486
|
-
"reflect": false,
|
|
1487
|
-
"defaultValue": "false"
|
|
1488
|
-
},
|
|
1489
|
-
"caption": {
|
|
1490
|
-
"type": "string",
|
|
1491
|
-
"mutable": true,
|
|
1492
|
-
"complexType": {
|
|
1493
|
-
"original": "string",
|
|
1494
|
-
"resolved": "string",
|
|
1495
|
-
"references": {}
|
|
1496
|
-
},
|
|
1497
|
-
"required": false,
|
|
1498
|
-
"optional": false,
|
|
1499
|
-
"docs": {
|
|
1500
|
-
"tags": [],
|
|
1501
|
-
"text": ""
|
|
1502
|
-
},
|
|
1503
|
-
"attribute": "caption",
|
|
1504
|
-
"reflect": false
|
|
1505
|
-
},
|
|
1506
|
-
"captionError": {
|
|
1507
|
-
"type": "string",
|
|
1508
|
-
"mutable": true,
|
|
1509
|
-
"complexType": {
|
|
1510
|
-
"original": "string",
|
|
1511
|
-
"resolved": "string",
|
|
1512
|
-
"references": {}
|
|
1513
|
-
},
|
|
1514
|
-
"required": false,
|
|
1515
|
-
"optional": false,
|
|
1516
|
-
"docs": {
|
|
1517
|
-
"tags": [],
|
|
1518
|
-
"text": ""
|
|
1519
|
-
},
|
|
1520
|
-
"attribute": "caption-error",
|
|
1521
|
-
"reflect": false
|
|
1522
|
-
},
|
|
1523
|
-
"captionType": {
|
|
1524
|
-
"type": "string",
|
|
1525
|
-
"mutable": true,
|
|
1526
|
-
"complexType": {
|
|
1527
|
-
"original": "'primary' | 'success' | 'warning' | 'error' | 'default'",
|
|
1528
|
-
"resolved": "\"default\" | \"error\" | \"primary\" | \"success\" | \"warning\"",
|
|
1529
|
-
"references": {}
|
|
1530
|
-
},
|
|
1531
|
-
"required": false,
|
|
1532
|
-
"optional": false,
|
|
1533
|
-
"docs": {
|
|
1534
|
-
"tags": [],
|
|
1535
|
-
"text": ""
|
|
1536
|
-
},
|
|
1537
|
-
"attribute": "caption-type",
|
|
1538
|
-
"reflect": false,
|
|
1539
|
-
"defaultValue": "'default'"
|
|
1540
|
-
},
|
|
1541
|
-
"_internal_id": {
|
|
1542
|
-
"type": "string",
|
|
1543
|
-
"mutable": true,
|
|
1544
|
-
"complexType": {
|
|
1545
|
-
"original": "string",
|
|
1546
|
-
"resolved": "string",
|
|
1547
|
-
"references": {}
|
|
1548
|
-
},
|
|
1549
|
-
"required": false,
|
|
1550
|
-
"optional": false,
|
|
1551
|
-
"docs": {
|
|
1552
|
-
"tags": [],
|
|
1553
|
-
"text": ""
|
|
1554
|
-
},
|
|
1555
|
-
"attribute": "_internal_id",
|
|
1556
|
-
"reflect": true,
|
|
1557
|
-
"defaultValue": "(Math.random() * 4).toString(16).replace('.', '')"
|
|
1558
|
-
},
|
|
1559
|
-
"tooltip": {
|
|
1560
|
-
"type": "string",
|
|
1561
|
-
"mutable": true,
|
|
1562
|
-
"complexType": {
|
|
1563
|
-
"original": "string",
|
|
1564
|
-
"resolved": "string",
|
|
1565
|
-
"references": {}
|
|
1566
|
-
},
|
|
1567
|
-
"required": false,
|
|
1568
|
-
"optional": false,
|
|
1569
|
-
"docs": {
|
|
1570
|
-
"tags": [],
|
|
1571
|
-
"text": ""
|
|
1572
|
-
},
|
|
1573
|
-
"attribute": "tooltip",
|
|
1574
|
-
"reflect": false
|
|
1575
|
-
}
|
|
1576
|
-
}; }
|
|
1577
|
-
static get states() { return {
|
|
1578
|
-
"total": {},
|
|
1579
|
-
"items": {},
|
|
1580
|
-
"checklist": {},
|
|
1581
|
-
"sortedChecklist": {},
|
|
1582
|
-
"indeterminateState": {},
|
|
1583
|
-
"checked": {},
|
|
1584
|
-
"jsonItem": {},
|
|
1585
|
-
"searchData": {},
|
|
1586
|
-
"captionCache": {},
|
|
1587
|
-
"captionTypeCache": {},
|
|
1588
|
-
"checklistSorted": {}
|
|
1589
|
-
}; }
|
|
1590
|
-
static get events() { return [{
|
|
1591
|
-
"method": "listboxItemSelected",
|
|
1592
|
-
"name": "bcm-listbox-item-selected",
|
|
1593
|
-
"bubbles": true,
|
|
1594
|
-
"cancelable": true,
|
|
1595
|
-
"composed": true,
|
|
1596
|
-
"docs": {
|
|
1597
|
-
"tags": [],
|
|
1598
|
-
"text": "Component Events"
|
|
1599
|
-
},
|
|
1600
|
-
"complexType": {
|
|
1601
|
-
"original": "any",
|
|
1602
|
-
"resolved": "any",
|
|
1603
|
-
"references": {}
|
|
1604
|
-
}
|
|
1605
|
-
}, {
|
|
1606
|
-
"method": "listboxClearSelected",
|
|
1607
|
-
"name": "bcm-listbox-clear-selecteds",
|
|
1608
|
-
"bubbles": true,
|
|
1609
|
-
"cancelable": true,
|
|
1610
|
-
"composed": true,
|
|
1611
|
-
"docs": {
|
|
1612
|
-
"tags": [],
|
|
1613
|
-
"text": ""
|
|
1614
|
-
},
|
|
1615
|
-
"complexType": {
|
|
1616
|
-
"original": "any",
|
|
1617
|
-
"resolved": "any",
|
|
1618
|
-
"references": {}
|
|
1619
|
-
}
|
|
1620
|
-
}, {
|
|
1621
|
-
"method": "listboxSendCheck",
|
|
1622
|
-
"name": "bcm-listbox-send-check",
|
|
1623
|
-
"bubbles": true,
|
|
1624
|
-
"cancelable": true,
|
|
1625
|
-
"composed": true,
|
|
1626
|
-
"docs": {
|
|
1627
|
-
"tags": [],
|
|
1628
|
-
"text": ""
|
|
1629
|
-
},
|
|
1630
|
-
"complexType": {
|
|
1631
|
-
"original": "any",
|
|
1632
|
-
"resolved": "any",
|
|
1633
|
-
"references": {}
|
|
1634
|
-
}
|
|
1635
|
-
}, {
|
|
1636
|
-
"method": "listboxSendUncheck",
|
|
1637
|
-
"name": "bcm-listbox-send-uncheck",
|
|
1638
|
-
"bubbles": true,
|
|
1639
|
-
"cancelable": true,
|
|
1640
|
-
"composed": true,
|
|
1641
|
-
"docs": {
|
|
1642
|
-
"tags": [],
|
|
1643
|
-
"text": ""
|
|
1644
|
-
},
|
|
1645
|
-
"complexType": {
|
|
1646
|
-
"original": "any",
|
|
1647
|
-
"resolved": "any",
|
|
1648
|
-
"references": {}
|
|
1649
|
-
}
|
|
1650
|
-
}, {
|
|
1651
|
-
"method": "listboxChecklist",
|
|
1652
|
-
"name": "bcm-listbox-checklist",
|
|
1653
|
-
"bubbles": true,
|
|
1654
|
-
"cancelable": true,
|
|
1655
|
-
"composed": true,
|
|
1656
|
-
"docs": {
|
|
1657
|
-
"tags": [],
|
|
1658
|
-
"text": ""
|
|
1659
|
-
},
|
|
1660
|
-
"complexType": {
|
|
1661
|
-
"original": "any",
|
|
1662
|
-
"resolved": "any",
|
|
1663
|
-
"references": {}
|
|
1664
|
-
}
|
|
1665
|
-
}, {
|
|
1666
|
-
"method": "listboxChange",
|
|
1667
|
-
"name": "bcm-listbox-change",
|
|
1668
|
-
"bubbles": true,
|
|
1669
|
-
"cancelable": true,
|
|
1670
|
-
"composed": true,
|
|
1671
|
-
"docs": {
|
|
1672
|
-
"tags": [],
|
|
1673
|
-
"text": ""
|
|
1674
|
-
},
|
|
1675
|
-
"complexType": {
|
|
1676
|
-
"original": "any",
|
|
1677
|
-
"resolved": "any",
|
|
1678
|
-
"references": {}
|
|
1679
|
-
}
|
|
1680
|
-
}, {
|
|
1681
|
-
"method": "listboxChecked",
|
|
1682
|
-
"name": "bcm-listbox-checked",
|
|
1683
|
-
"bubbles": true,
|
|
1684
|
-
"cancelable": true,
|
|
1685
|
-
"composed": true,
|
|
1686
|
-
"docs": {
|
|
1687
|
-
"tags": [],
|
|
1688
|
-
"text": ""
|
|
1689
|
-
},
|
|
1690
|
-
"complexType": {
|
|
1691
|
-
"original": "any",
|
|
1692
|
-
"resolved": "any",
|
|
1693
|
-
"references": {}
|
|
1694
|
-
}
|
|
1695
|
-
}, {
|
|
1696
|
-
"method": "change",
|
|
1697
|
-
"name": "bcm-change",
|
|
1698
|
-
"bubbles": true,
|
|
1699
|
-
"cancelable": true,
|
|
1700
|
-
"composed": true,
|
|
1701
|
-
"docs": {
|
|
1702
|
-
"tags": [],
|
|
1703
|
-
"text": ""
|
|
1704
|
-
},
|
|
1705
|
-
"complexType": {
|
|
1706
|
-
"original": "any",
|
|
1707
|
-
"resolved": "any",
|
|
1708
|
-
"references": {}
|
|
1709
|
-
}
|
|
1710
|
-
}]; }
|
|
1711
|
-
static get methods() { return {
|
|
1712
|
-
"setClear": {
|
|
1713
|
-
"complexType": {
|
|
1714
|
-
"signature": "() => Promise<void>",
|
|
1715
|
-
"parameters": [],
|
|
1716
|
-
"references": {
|
|
1717
|
-
"Promise": {
|
|
1718
|
-
"location": "global"
|
|
1719
|
-
}
|
|
1720
|
-
},
|
|
1721
|
-
"return": "Promise<void>"
|
|
1722
|
-
},
|
|
1723
|
-
"docs": {
|
|
1724
|
-
"text": "",
|
|
1725
|
-
"tags": []
|
|
1726
|
-
}
|
|
1727
|
-
},
|
|
1728
|
-
"resetCaption": {
|
|
1729
|
-
"complexType": {
|
|
1730
|
-
"signature": "() => Promise<void>",
|
|
1731
|
-
"parameters": [],
|
|
1732
|
-
"references": {
|
|
1733
|
-
"Promise": {
|
|
1734
|
-
"location": "global"
|
|
1735
|
-
}
|
|
1736
|
-
},
|
|
1737
|
-
"return": "Promise<void>"
|
|
1738
|
-
},
|
|
1739
|
-
"docs": {
|
|
1740
|
-
"text": "",
|
|
1741
|
-
"tags": []
|
|
1742
|
-
}
|
|
1743
|
-
},
|
|
1744
|
-
"getValue": {
|
|
1745
|
-
"complexType": {
|
|
1746
|
-
"signature": "() => Promise<any>",
|
|
1747
|
-
"parameters": [],
|
|
1748
|
-
"references": {
|
|
1749
|
-
"Promise": {
|
|
1750
|
-
"location": "global"
|
|
1751
|
-
}
|
|
1752
|
-
},
|
|
1753
|
-
"return": "Promise<any>"
|
|
1754
|
-
},
|
|
1755
|
-
"docs": {
|
|
1756
|
-
"text": "",
|
|
1757
|
-
"tags": []
|
|
1758
|
-
}
|
|
1759
|
-
},
|
|
1760
|
-
"getChecklist": {
|
|
1761
|
-
"complexType": {
|
|
1762
|
-
"signature": "() => Promise<object[]>",
|
|
1763
|
-
"parameters": [],
|
|
1764
|
-
"references": {
|
|
1765
|
-
"Promise": {
|
|
1766
|
-
"location": "global"
|
|
1767
|
-
}
|
|
1768
|
-
},
|
|
1769
|
-
"return": "Promise<object[]>"
|
|
1770
|
-
},
|
|
1771
|
-
"docs": {
|
|
1772
|
-
"text": "",
|
|
1773
|
-
"tags": []
|
|
1774
|
-
}
|
|
1775
|
-
},
|
|
1776
|
-
"showSearchMethod": {
|
|
1777
|
-
"complexType": {
|
|
1778
|
-
"signature": "(val?: boolean) => Promise<void>",
|
|
1779
|
-
"parameters": [{
|
|
1780
|
-
"tags": [],
|
|
1781
|
-
"text": ""
|
|
1782
|
-
}],
|
|
1783
|
-
"references": {
|
|
1784
|
-
"Promise": {
|
|
1785
|
-
"location": "global"
|
|
1786
|
-
}
|
|
1787
|
-
},
|
|
1788
|
-
"return": "Promise<void>"
|
|
1789
|
-
},
|
|
1790
|
-
"docs": {
|
|
1791
|
-
"text": "",
|
|
1792
|
-
"tags": []
|
|
1793
|
-
}
|
|
1794
|
-
},
|
|
1795
|
-
"selected": {
|
|
1796
|
-
"complexType": {
|
|
1797
|
-
"signature": "(id: any) => Promise<void>",
|
|
1798
|
-
"parameters": [{
|
|
1799
|
-
"tags": [],
|
|
1800
|
-
"text": ""
|
|
1801
|
-
}],
|
|
1802
|
-
"references": {
|
|
1803
|
-
"Promise": {
|
|
1804
|
-
"location": "global"
|
|
1805
|
-
}
|
|
1806
|
-
},
|
|
1807
|
-
"return": "Promise<void>"
|
|
1808
|
-
},
|
|
1809
|
-
"docs": {
|
|
1810
|
-
"text": "",
|
|
1811
|
-
"tags": []
|
|
1812
|
-
}
|
|
1813
|
-
},
|
|
1814
|
-
"clearAndSelectSearch": {
|
|
1815
|
-
"complexType": {
|
|
1816
|
-
"signature": "(select?: boolean) => Promise<void>",
|
|
1817
|
-
"parameters": [{
|
|
1818
|
-
"tags": [],
|
|
1819
|
-
"text": ""
|
|
1820
|
-
}],
|
|
1821
|
-
"references": {
|
|
1822
|
-
"Promise": {
|
|
1823
|
-
"location": "global"
|
|
1824
|
-
}
|
|
1825
|
-
},
|
|
1826
|
-
"return": "Promise<void>"
|
|
1827
|
-
},
|
|
1828
|
-
"docs": {
|
|
1829
|
-
"text": "",
|
|
1830
|
-
"tags": []
|
|
1831
|
-
}
|
|
1832
|
-
},
|
|
1833
|
-
"addChecked": {
|
|
1834
|
-
"complexType": {
|
|
1835
|
-
"signature": "(items: any) => Promise<void>",
|
|
1836
|
-
"parameters": [{
|
|
1837
|
-
"tags": [],
|
|
1838
|
-
"text": ""
|
|
1839
|
-
}],
|
|
1840
|
-
"references": {
|
|
1841
|
-
"Promise": {
|
|
1842
|
-
"location": "global"
|
|
1843
|
-
}
|
|
1844
|
-
},
|
|
1845
|
-
"return": "Promise<void>"
|
|
1846
|
-
},
|
|
1847
|
-
"docs": {
|
|
1848
|
-
"text": "",
|
|
1849
|
-
"tags": []
|
|
1850
|
-
}
|
|
1851
|
-
},
|
|
1852
|
-
"updateChecked": {
|
|
1853
|
-
"complexType": {
|
|
1854
|
-
"signature": "(items: any) => Promise<void>",
|
|
1855
|
-
"parameters": [{
|
|
1856
|
-
"tags": [],
|
|
1857
|
-
"text": ""
|
|
1858
|
-
}],
|
|
1859
|
-
"references": {
|
|
1860
|
-
"Promise": {
|
|
1861
|
-
"location": "global"
|
|
1862
|
-
}
|
|
1863
|
-
},
|
|
1864
|
-
"return": "Promise<void>"
|
|
1865
|
-
},
|
|
1866
|
-
"docs": {
|
|
1867
|
-
"text": "",
|
|
1868
|
-
"tags": []
|
|
1869
|
-
}
|
|
1870
|
-
},
|
|
1871
|
-
"config": {
|
|
1872
|
-
"complexType": {
|
|
1873
|
-
"signature": "(_config: Array<object>) => Promise<boolean>",
|
|
1874
|
-
"parameters": [{
|
|
1875
|
-
"tags": [],
|
|
1876
|
-
"text": ""
|
|
1877
|
-
}],
|
|
1878
|
-
"references": {
|
|
1879
|
-
"Promise": {
|
|
1880
|
-
"location": "global"
|
|
1881
|
-
},
|
|
1882
|
-
"Array": {
|
|
1883
|
-
"location": "global"
|
|
1884
|
-
}
|
|
1885
|
-
},
|
|
1886
|
-
"return": "Promise<boolean>"
|
|
1887
|
-
},
|
|
1888
|
-
"docs": {
|
|
1889
|
-
"text": "",
|
|
1890
|
-
"tags": []
|
|
1891
|
-
}
|
|
1892
|
-
},
|
|
1893
|
-
"setData": {
|
|
1894
|
-
"complexType": {
|
|
1895
|
-
"signature": "(_data?: Array<object> | string) => Promise<void>",
|
|
1896
|
-
"parameters": [{
|
|
1897
|
-
"tags": [],
|
|
1898
|
-
"text": ""
|
|
1899
|
-
}],
|
|
1900
|
-
"references": {
|
|
1901
|
-
"Promise": {
|
|
1902
|
-
"location": "global"
|
|
1903
|
-
},
|
|
1904
|
-
"Array": {
|
|
1905
|
-
"location": "global"
|
|
1906
|
-
}
|
|
1907
|
-
},
|
|
1908
|
-
"return": "Promise<void>"
|
|
1909
|
-
},
|
|
1910
|
-
"docs": {
|
|
1911
|
-
"text": "",
|
|
1912
|
-
"tags": []
|
|
1913
|
-
}
|
|
1914
|
-
},
|
|
1915
|
-
"searchResultMethod": {
|
|
1916
|
-
"complexType": {
|
|
1917
|
-
"signature": "(items?: any[]) => Promise<void>",
|
|
1918
|
-
"parameters": [{
|
|
1919
|
-
"tags": [],
|
|
1920
|
-
"text": ""
|
|
1921
|
-
}],
|
|
1922
|
-
"references": {
|
|
1923
|
-
"Promise": {
|
|
1924
|
-
"location": "global"
|
|
1925
|
-
}
|
|
1926
|
-
},
|
|
1927
|
-
"return": "Promise<void>"
|
|
1928
|
-
},
|
|
1929
|
-
"docs": {
|
|
1930
|
-
"text": "",
|
|
1931
|
-
"tags": []
|
|
1932
|
-
}
|
|
1933
|
-
},
|
|
1934
|
-
"listboxUncheckedMethod": {
|
|
1935
|
-
"complexType": {
|
|
1936
|
-
"signature": "(item: any, internal_id?: string) => Promise<void>",
|
|
1937
|
-
"parameters": [{
|
|
1938
|
-
"tags": [],
|
|
1939
|
-
"text": ""
|
|
1940
|
-
}, {
|
|
1941
|
-
"tags": [],
|
|
1942
|
-
"text": ""
|
|
1943
|
-
}],
|
|
1944
|
-
"references": {
|
|
1945
|
-
"Promise": {
|
|
1946
|
-
"location": "global"
|
|
1947
|
-
}
|
|
1948
|
-
},
|
|
1949
|
-
"return": "Promise<void>"
|
|
1950
|
-
},
|
|
1951
|
-
"docs": {
|
|
1952
|
-
"text": "",
|
|
1953
|
-
"tags": []
|
|
1954
|
-
}
|
|
1955
|
-
}
|
|
1956
|
-
}; }
|
|
1957
|
-
static get elementRef() { return "el"; }
|
|
1958
|
-
static get watchers() { return [{
|
|
1959
|
-
"propName": "_items",
|
|
1960
|
-
"methodName": "parseItems"
|
|
1961
|
-
}, {
|
|
1962
|
-
"propName": "value",
|
|
1963
|
-
"methodName": "handleChange"
|
|
1964
|
-
}]; }
|
|
1965
|
-
static get listeners() { return [{
|
|
1966
|
-
"name": "bcm-treeview-item-selected",
|
|
1967
|
-
"method": "handleListboxSelected",
|
|
1968
|
-
"target": undefined,
|
|
1969
|
-
"capture": true,
|
|
1970
|
-
"passive": false
|
|
1971
|
-
}, {
|
|
1972
|
-
"name": "bcm-on-search",
|
|
1973
|
-
"method": "listenSearchResult",
|
|
1974
|
-
"target": undefined,
|
|
1975
|
-
"capture": false,
|
|
1976
|
-
"passive": false
|
|
1977
|
-
}, {
|
|
1978
|
-
"name": "bcm-listbox-item-selected",
|
|
1979
|
-
"method": "handleListboxClearSelected",
|
|
1980
|
-
"target": undefined,
|
|
1981
|
-
"capture": false,
|
|
1982
|
-
"passive": false
|
|
1983
|
-
}, {
|
|
1984
|
-
"name": "bcm-listbox-checked",
|
|
1985
|
-
"method": "handleListboxChecked",
|
|
1986
|
-
"target": undefined,
|
|
1987
|
-
"capture": false,
|
|
1988
|
-
"passive": false
|
|
1989
|
-
}, {
|
|
1990
|
-
"name": "bcm-listbox-unchecked",
|
|
1991
|
-
"method": "handleListboxUnchecked",
|
|
1992
|
-
"target": undefined,
|
|
1993
|
-
"capture": false,
|
|
1994
|
-
"passive": false
|
|
1995
|
-
}]; }
|
|
1996
|
-
}
|
|
1997
|
-
__decorate([
|
|
1998
|
-
IsLoad()
|
|
1999
|
-
], BcmListbox.prototype, "el", void 0);
|