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