q2-tecton-elements 1.56.3 → 1.56.5
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/bundle-report.json +262 -214
- package/dist/cjs/{index-99667782.js → index-ac3330d8.js} +33 -5
- package/dist/cjs/index-ac3330d8.js.map +1 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/q2-action-group.cjs.entry.js +2 -2
- package/dist/cjs/q2-action-sheet.cjs.entry.js +2 -2
- package/dist/cjs/q2-avatar.cjs.entry.js +1 -1
- package/dist/cjs/q2-badge_7.cjs.entry.js +4 -4
- package/dist/cjs/q2-calendar.cjs.entry.js +1 -1
- package/dist/cjs/q2-card.cjs.entry.js +1 -1
- package/dist/cjs/q2-carousel-pane.cjs.entry.js +3 -3
- package/dist/cjs/q2-carousel.cjs.entry.js +1 -1
- package/dist/cjs/q2-chart-area.cjs.entry.js +2 -2
- package/dist/cjs/q2-chart-bar.cjs.entry.js +2 -2
- package/dist/cjs/q2-chart-donut.cjs.entry.js +2 -2
- package/dist/cjs/q2-checkbox-group.cjs.entry.js +1 -1
- package/dist/cjs/q2-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/q2-currency.cjs.entry.js +1 -1
- package/dist/cjs/q2-data-table.cjs.entry.js +1 -1
- package/dist/cjs/q2-detail.cjs.entry.js +2 -2
- package/dist/cjs/q2-dropdown-item.cjs.entry.js +1 -1
- package/dist/cjs/q2-dropdown.cjs.entry.js +27 -22
- package/dist/cjs/q2-dropdown.cjs.entry.js.map +1 -1
- package/dist/cjs/q2-editable-field.cjs.entry.js +1 -1
- package/dist/cjs/q2-example.cjs.entry.js +1 -1
- package/dist/cjs/q2-file-picker.cjs.entry.js +1 -1
- package/dist/cjs/q2-form.cjs.entry.js +1 -1
- package/dist/cjs/q2-formatted-text.cjs.entry.js +1 -1
- package/dist/cjs/q2-item_3.cjs.entry.js +3 -3
- package/dist/cjs/q2-legend.cjs.entry.js +1 -1
- package/dist/cjs/q2-loc.cjs.entry.js +1 -1
- package/dist/cjs/q2-message.cjs.entry.js +2 -2
- package/dist/cjs/q2-modal.cjs.entry.js +2 -2
- package/dist/cjs/q2-month-picker.cjs.entry.js +3 -3
- package/dist/cjs/q2-optgroup.cjs.entry.js +2 -2
- package/dist/cjs/q2-option-list_2.cjs.entry.js +63 -71
- package/dist/cjs/q2-option-list_2.cjs.entry.js.map +1 -1
- package/dist/cjs/q2-option.cjs.entry.js +1 -1
- package/dist/cjs/q2-pagination.cjs.entry.js +4 -4
- package/dist/cjs/q2-pill.cjs.entry.js +2 -2
- package/dist/cjs/q2-radio-group.cjs.entry.js +1 -1
- package/dist/cjs/q2-radio.cjs.entry.js +1 -1
- package/dist/cjs/q2-relative-time.cjs.entry.js +2 -2
- package/dist/cjs/q2-resize-observer.cjs.entry.js +1 -1
- package/dist/cjs/q2-section.cjs.entry.js +3 -3
- package/dist/cjs/q2-select.cjs.entry.js +122 -12
- package/dist/cjs/q2-select.cjs.entry.js.map +1 -1
- package/dist/cjs/q2-stepper-pane.cjs.entry.js +1 -1
- package/dist/cjs/q2-stepper-vertical.cjs.entry.js +2 -2
- package/dist/cjs/q2-stepper.cjs.entry.js +2 -2
- package/dist/cjs/q2-tag.cjs.entry.js +2 -2
- package/dist/cjs/q2-tecton-elements.cjs.js +1 -1
- package/dist/cjs/q2-textarea.cjs.entry.js +2 -2
- package/dist/cjs/q2-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/tecton-tab-pane.cjs.entry.js +2 -2
- package/dist/collection/components/q2-action-group/q2-action-group.js +1 -1
- package/dist/collection/components/q2-action-sheet/q2-action-sheet.js +1 -1
- package/dist/collection/components/q2-avatar/q2-avatar.js +1 -1
- package/dist/collection/components/q2-calendar/q2-month-picker.js +2 -2
- package/dist/collection/components/q2-calendar/test/q2-calendar-test.e2e.js +2 -2
- package/dist/collection/components/q2-calendar/test/q2-calendar-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-carousel-pane/q2-carousel-pane.js +2 -2
- package/dist/collection/components/q2-chart-area/q2-chart-area.js +1 -1
- package/dist/collection/components/q2-chart-bar/q2-chart-bar.js +1 -1
- package/dist/collection/components/q2-chart-donut/q2-chart-donut.js +1 -1
- package/dist/collection/components/q2-currency/q2-currency.js +1 -1
- package/dist/collection/components/q2-detail/q2-detail.js +1 -1
- package/dist/collection/components/q2-dropdown/q2-dropdown.js +27 -21
- package/dist/collection/components/q2-dropdown/q2-dropdown.js.map +1 -1
- package/dist/collection/components/q2-dropdown/test/q2-dropdown-test.e2e.js +34 -32
- package/dist/collection/components/q2-dropdown/test/q2-dropdown-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-example/q2-example.js +1 -1
- package/dist/collection/components/q2-form/q2-form.js +1 -1
- package/dist/collection/components/q2-formatted-text/q2-formatted-text.js +1 -1
- package/dist/collection/components/q2-input/q2-input.js +1 -1
- package/dist/collection/components/q2-item/q2-item.js +1 -1
- package/dist/collection/components/q2-legend/q2-legend.js +1 -1
- package/dist/collection/components/q2-list/q2-list.js +1 -1
- package/dist/collection/components/q2-message/q2-message.js +1 -1
- package/dist/collection/components/q2-modal/q2-modal.js +1 -1
- package/dist/collection/components/q2-optgroup/q2-optgroup.js +1 -1
- package/dist/collection/components/q2-pagination/q2-pagination.js +3 -3
- package/dist/collection/components/q2-pagination/test/q2-pagination-test.e2e.js +1 -0
- package/dist/collection/components/q2-pagination/test/q2-pagination-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-pill/q2-pill.js +1 -1
- package/dist/collection/components/q2-popover/q2-popover.css +18 -10
- package/dist/collection/components/q2-popover/q2-popover.js +64 -71
- package/dist/collection/components/q2-popover/q2-popover.js.map +1 -1
- package/dist/collection/components/q2-popover/test/q2-popover-test.e2e.js +1 -34
- package/dist/collection/components/q2-popover/test/q2-popover-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-popover/test/q2-popover-test.spec.js +902 -511
- package/dist/collection/components/q2-popover/test/q2-popover-test.spec.js.map +1 -1
- package/dist/collection/components/q2-relative-time/q2-relative-time.js +1 -1
- package/dist/collection/components/q2-resize-observer/q2-resize-observer.js +1 -1
- package/dist/collection/components/q2-section/q2-section.js +2 -2
- package/dist/collection/components/q2-select/q2-select.js +137 -15
- package/dist/collection/components/q2-select/q2-select.js.map +1 -1
- package/dist/collection/components/q2-select/test/q2-select-test.spec.js +467 -0
- package/dist/collection/components/q2-select/test/q2-select-test.spec.js.map +1 -1
- package/dist/collection/components/q2-stepper/q2-stepper.js +1 -1
- package/dist/collection/components/q2-stepper-vertical/q2-stepper-vertical.js +1 -1
- package/dist/collection/components/q2-tab-container/q2-tab-container.js +1 -1
- package/dist/collection/components/q2-tab-pane/q2-tab-pane.js +1 -1
- package/dist/collection/components/q2-tag/q2-tag.js +1 -1
- package/dist/collection/components/q2-tag/test/q2-tag-test.e2e.js +5 -0
- package/dist/collection/components/q2-tag/test/q2-tag-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-textarea/q2-textarea.js +1 -1
- package/dist/collection/components/tecton-tab-pane/tecton-tab-pane.js +2 -2
- package/dist/collection/utils/index.js +34 -0
- package/dist/collection/utils/index.js.map +1 -1
- package/dist/components/index2.js +32 -4
- package/dist/components/index2.js.map +1 -1
- package/dist/components/q2-action-group2.js +1 -1
- package/dist/components/q2-action-sheet.js +1 -1
- package/dist/components/q2-avatar2.js +1 -1
- package/dist/components/q2-carousel-pane.js +2 -2
- package/dist/components/q2-chart-area.js +1 -1
- package/dist/components/q2-chart-bar.js +1 -1
- package/dist/components/q2-chart-donut.js +1 -1
- package/dist/components/q2-currency.js +1 -1
- package/dist/components/q2-detail.js +1 -1
- package/dist/components/q2-dropdown.js +26 -21
- package/dist/components/q2-dropdown.js.map +1 -1
- package/dist/components/q2-example.js +1 -1
- package/dist/components/q2-form.js +1 -1
- package/dist/components/q2-formatted-text.js +1 -1
- package/dist/components/q2-input2.js +1 -1
- package/dist/components/q2-item2.js +1 -1
- package/dist/components/q2-legend2.js +1 -1
- package/dist/components/q2-list2.js +1 -1
- package/dist/components/q2-message2.js +1 -1
- package/dist/components/q2-modal.js +1 -1
- package/dist/components/q2-month-picker.js +2 -2
- package/dist/components/q2-optgroup2.js +1 -1
- package/dist/components/q2-pagination.js +3 -3
- package/dist/components/q2-pill.js +1 -1
- package/dist/components/q2-popover2.js +63 -71
- package/dist/components/q2-popover2.js.map +1 -1
- package/dist/components/q2-relative-time.js +1 -1
- package/dist/components/q2-resize-observer2.js +1 -1
- package/dist/components/q2-section.js +2 -2
- package/dist/components/q2-select2.js +125 -15
- package/dist/components/q2-select2.js.map +1 -1
- package/dist/components/q2-stepper-vertical.js +1 -1
- package/dist/components/q2-stepper.js +1 -1
- package/dist/components/q2-tab-container.js +1 -1
- package/dist/components/q2-tab-pane.js +1 -1
- package/dist/components/q2-tag.js +1 -1
- package/dist/components/q2-textarea.js +1 -1
- package/dist/components/tecton-tab-pane.js +2 -2
- package/dist/esm/{index-c215e8ef.js → index-e4c2bfff.js} +33 -5
- package/dist/esm/index-e4c2bfff.js.map +1 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/q2-action-group.entry.js +2 -2
- package/dist/esm/q2-action-sheet.entry.js +2 -2
- package/dist/esm/q2-avatar.entry.js +1 -1
- package/dist/esm/q2-badge_7.entry.js +4 -4
- package/dist/esm/q2-calendar.entry.js +1 -1
- package/dist/esm/q2-card.entry.js +1 -1
- package/dist/esm/q2-carousel-pane.entry.js +3 -3
- package/dist/esm/q2-carousel.entry.js +1 -1
- package/dist/esm/q2-chart-area.entry.js +2 -2
- package/dist/esm/q2-chart-bar.entry.js +2 -2
- package/dist/esm/q2-chart-donut.entry.js +2 -2
- package/dist/esm/q2-checkbox-group.entry.js +1 -1
- package/dist/esm/q2-checkbox.entry.js +1 -1
- package/dist/esm/q2-currency.entry.js +1 -1
- package/dist/esm/q2-data-table.entry.js +1 -1
- package/dist/esm/q2-detail.entry.js +2 -2
- package/dist/esm/q2-dropdown-item.entry.js +1 -1
- package/dist/esm/q2-dropdown.entry.js +27 -22
- package/dist/esm/q2-dropdown.entry.js.map +1 -1
- package/dist/esm/q2-editable-field.entry.js +1 -1
- package/dist/esm/q2-example.entry.js +1 -1
- package/dist/esm/q2-file-picker.entry.js +1 -1
- package/dist/esm/q2-form.entry.js +1 -1
- package/dist/esm/q2-formatted-text.entry.js +1 -1
- package/dist/esm/q2-item_3.entry.js +3 -3
- package/dist/esm/q2-legend.entry.js +1 -1
- package/dist/esm/q2-loc.entry.js +1 -1
- package/dist/esm/q2-message.entry.js +2 -2
- package/dist/esm/q2-modal.entry.js +2 -2
- package/dist/esm/q2-month-picker.entry.js +3 -3
- package/dist/esm/q2-optgroup.entry.js +2 -2
- package/dist/esm/q2-option-list_2.entry.js +63 -71
- package/dist/esm/q2-option-list_2.entry.js.map +1 -1
- package/dist/esm/q2-option.entry.js +1 -1
- package/dist/esm/q2-pagination.entry.js +4 -4
- package/dist/esm/q2-pill.entry.js +2 -2
- package/dist/esm/q2-radio-group.entry.js +1 -1
- package/dist/esm/q2-radio.entry.js +1 -1
- package/dist/esm/q2-relative-time.entry.js +2 -2
- package/dist/esm/q2-resize-observer.entry.js +1 -1
- package/dist/esm/q2-section.entry.js +3 -3
- package/dist/esm/q2-select.entry.js +123 -13
- package/dist/esm/q2-select.entry.js.map +1 -1
- package/dist/esm/q2-stepper-pane.entry.js +1 -1
- package/dist/esm/q2-stepper-vertical.entry.js +2 -2
- package/dist/esm/q2-stepper.entry.js +2 -2
- package/dist/esm/q2-tag.entry.js +2 -2
- package/dist/esm/q2-tecton-elements.js +1 -1
- package/dist/esm/q2-textarea.entry.js +2 -2
- package/dist/esm/q2-tooltip.entry.js +1 -1
- package/dist/esm/tecton-tab-pane.entry.js +2 -2
- package/dist/jest.setup.js +11 -0
- package/dist/jest.setup.js.map +1 -1
- package/dist/q2-tecton-elements/{index-c215e8ef.js → index-e4c2bfff.js} +71 -50
- package/dist/{esm/index-c215e8ef.js.map → q2-tecton-elements/index-e4c2bfff.js.map} +1 -1
- package/dist/q2-tecton-elements/q2-action-group.entry.js +4 -4
- package/dist/q2-tecton-elements/q2-action-sheet.entry.js +9 -9
- package/dist/q2-tecton-elements/q2-avatar.entry.js +6 -6
- package/dist/q2-tecton-elements/q2-badge_7.entry.js +42 -42
- package/dist/q2-tecton-elements/q2-calendar.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-card.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-carousel-pane.entry.js +21 -21
- package/dist/q2-tecton-elements/q2-carousel.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-chart-area.entry.js +3 -3
- package/dist/q2-tecton-elements/q2-chart-bar.entry.js +80 -80
- package/dist/q2-tecton-elements/q2-chart-donut.entry.js +7 -7
- package/dist/q2-tecton-elements/q2-checkbox-group.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-checkbox.entry.js +4 -4
- package/dist/q2-tecton-elements/q2-currency.entry.js +6 -6
- package/dist/q2-tecton-elements/q2-data-table.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-detail.entry.js +39 -39
- package/dist/q2-tecton-elements/q2-dropdown-item.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-dropdown.entry.js +81 -75
- package/dist/q2-tecton-elements/q2-dropdown.entry.js.map +1 -1
- package/dist/q2-tecton-elements/q2-editable-field.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-example.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-file-picker.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-form.entry.js +10 -10
- package/dist/q2-tecton-elements/q2-formatted-text.entry.js +2 -2
- package/dist/q2-tecton-elements/q2-item_3.entry.js +19 -19
- package/dist/q2-tecton-elements/q2-legend.entry.js +2 -2
- package/dist/q2-tecton-elements/q2-loc.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-message.entry.js +6 -6
- package/dist/q2-tecton-elements/q2-modal.entry.js +24 -24
- package/dist/q2-tecton-elements/q2-month-picker.entry.js +67 -67
- package/dist/q2-tecton-elements/q2-optgroup.entry.js +8 -8
- package/dist/q2-tecton-elements/q2-option-list_2.entry.js +248 -248
- package/dist/q2-tecton-elements/q2-option-list_2.entry.js.map +1 -1
- package/dist/q2-tecton-elements/q2-option.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-pagination.entry.js +42 -42
- package/dist/q2-tecton-elements/q2-pill.entry.js +14 -14
- package/dist/q2-tecton-elements/q2-radio-group.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-radio.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-relative-time.entry.js +2 -2
- package/dist/q2-tecton-elements/q2-resize-observer.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-section.entry.js +23 -23
- package/dist/q2-tecton-elements/q2-select.entry.js +186 -89
- package/dist/q2-tecton-elements/q2-select.entry.js.map +1 -1
- package/dist/q2-tecton-elements/q2-stepper-pane.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-stepper-vertical.entry.js +5 -5
- package/dist/q2-tecton-elements/q2-stepper.entry.js +21 -21
- package/dist/q2-tecton-elements/q2-tag.entry.js +6 -6
- package/dist/q2-tecton-elements/q2-tecton-elements.esm.js +1 -1
- package/dist/q2-tecton-elements/q2-tecton-elements.esm.js.map +1 -1
- package/dist/q2-tecton-elements/q2-textarea.entry.js +3 -3
- package/dist/q2-tecton-elements/q2-tooltip.entry.js +1 -1
- package/dist/q2-tecton-elements/tecton-tab-pane.entry.js +6 -6
- package/dist/types/builds/q2e/development/tecton/tecton/packages/q2-tecton-elements/.stencil/jest.setup.d.ts +9 -0
- package/dist/types/components/q2-dropdown/q2-dropdown.d.ts +6 -4
- package/dist/types/components/q2-popover/q2-popover.d.ts +4 -4
- package/dist/types/components/q2-select/q2-select.d.ts +22 -0
- package/dist/types/utils/index.d.ts +2 -0
- package/package.json +3 -3
- package/dist/cjs/index-99667782.js.map +0 -1
- package/dist/q2-tecton-elements/index-c215e8ef.js.map +0 -1
|
@@ -1,24 +1,83 @@
|
|
|
1
|
-
import { r as t, c as e, h as i,
|
|
1
|
+
import { r as t, c as e, h as i, F as s, g as o } from "./index-7a5365e2.js";
|
|
2
2
|
|
|
3
|
-
import { l as
|
|
3
|
+
import { c as l, d as n, l as r, a, o as c, q as h, i as d, w as p } from "./index-e4c2bfff.js";
|
|
4
4
|
|
|
5
|
-
import { s as
|
|
5
|
+
import { s as u, a as v } from "./action-sheet-1e24cb38.js";
|
|
6
6
|
|
|
7
|
-
const
|
|
7
|
+
const f = "*{box-sizing:border-box}*:active{outline:none}*:focus{outline:none;box-shadow:var(--const-double-focus-ring, 0 0 0 2px #ffffff, 0 0 0 4px #0066cc)}:host{box-shadow:none !important}::-moz-focus-inner{border:none}input,textarea,button{font-family:inherit;font-size:inherit;font-stretch:inherit}:host(.sr),:host(.sr) button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.sr,.sr button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.hidden{display:none}:host([hidden]){display:none}.invisible{visibility:hidden}.q2-element-dropdown{display:none;position:absolute;background-color:var(--app-white, #ffffff);color:var(--t-text, #4d4d4d);left:0;width:100%;z-index:100;margin-top:1px;box-shadow:var(--app-shadow-1, 0px 0px 2px rgba(0, 0, 0, 0.12), 0px 2px 4px rgba(0, 0, 0, 0.14));height:0;overflow:hidden;opacity:0;visibility:hidden;transition:opacity var(--app-tween-1, 0.2s ease);border-radius:var(--tct-dropdown-border-radius, --t-dropdown-border-radius, 0);--comp-scrollbar-size:var(--tct-scrollbar-size, var(--t-scrollbar-size, var(--app-scale-1x, 5px)));--comp-scrollbar-border-radius:var(--tct-scrollbar-border-radius, var(--t-scrollbar-border-radius, var(--app-border-radius-1, 4px)));--comp-scrollbar-color:var(--tct-scrollbar-color, var(--t-scrollbar-color, var(--t-a11y-gray-color, #747474)));scrollbar-width:thin;scrollbar-color:var(--comp-scrollbar-color) transparent}.q2-element-dropdown::-webkit-scrollbar{width:var(--comp-scrollbar-size);height:var(--comp-scrollbar-size);margin:5px}.q2-element-dropdown::-webkit-scrollbar-thumb{background:var(--comp-scrollbar-color);border-radius:var(--comp-scrollbar-border-radius)}.q2-element-dropdown::-webkit-scrollbar-track{background:transparent;border-radius:var(--comp-scrollbar-border-radius)}.q2-element-dropdown.sizable{display:block;height:auto}.dropdown-open .q2-element-dropdown{display:block;height:auto;overflow:auto;opacity:1;visibility:visible}:host([alignment=right]) .q2-element-dropdown{left:auto;right:0}:host([block]) q2-btn,:host([block]){display:block}:host{--comp-default-select-margin:var(--tct-select-margin-top, var(--t-select-margin-top, var(--app-scale-5x, 25px))) 0 var(--tct-select-margin-bottom, var(--t-select-margin-bottom, var(--app-scale-5x, 25px)));display:block;margin:var(--tct-select-margin, var(--comp-default-select-margin))}.q2-select-container{position:relative;display:block}.q2-select-input{margin:0;--tct-input-min-height:var(--tct-select-input-min-height, var(--t-select-input-min-height));--tct-input-max-height:var(--tct-select-input-max-height, var(--t-select-input-max-height, none))}::slotted([slot=_selected-display]){width:100%;min-height:var(--comp-selected-display-height, 44px)}.custom-display-content{position:absolute;bottom:0;left:calc(var(--tct-scale-2, var(--app-scale-2x, 10px)) + 1px);height:44px;width:calc(100% - 34px - var(--tct-scale-3, var(--app-scale-3x, 15px)));overflow:hidden;cursor:pointer;transition:left var(--tct-tween-2, var(--app-tween-1, 0.2s ease))}.custom-display-content:not([hidden]){display:flex;align-items:center}.is-searchable.is-focused .custom-display-content,.is-searchable .custom-display-content:active{left:calc(var(--tct-scale-3, var(--app-scale-3x, 15px)) + 1px)}.has-error .custom-display-content{width:calc(100% - 68px - var(--tct-scale-3, var(--app-scale-3x, 15px)))}.popover-content{display:flex;flex-direction:column-reverse}.popover-bottom-container{position:sticky;bottom:0;z-index:5}.popover-top-container{position:sticky;top:0;z-index:5}.popover-top-container .multi-select-header{padding:var(--tct-scale-2, var(--app-scale-2x, 10px)) var(--tct-scale-2, var(--app-scale-2x, 10px));background:var(--app-white);display:flex;gap:var(--app-scale-2x, 10px);align-items:center}.popover-top-container .multi-select-header fieldset{margin:0;padding:0;border:0;display:flex;gap:var(--app-scale-2x, 10px)}.popover-top-container .multi-select-header legend{padding:0;float:left}.popover-top-container .multi-select-header label{cursor:pointer;padding:var(--tct-select-multi-select-option-padding, var(--t-select-multi-select-option-padding, var(--tct-btn-badge-padding, var(--t-btn-badge-padding, 2px 5px))));font-size:var(--tct-select-multi-select-option-font-size, var(--t-select-multi-select-option-font-size, var(--tct-btn-badge-font-size, var(--t-btn-badge-font-size, inherit))));border-radius:var(--tct-select-multi-select-option-radius, var(--t-select-multi-select-option-radius, var(--tct-btn-badge-border-radius, var(--t-btn-badge-border-radius, var(--app-border-radius-1, 4px)))));background:var(--tct-select-multi-select-option-background, var(--tct-select-multi-select-option-bg, var(--t-select-multi-select-option-bg, var(--tct-badge-background, var(--tct-btn-badge-bg, var(--t-btn-badge-bg, transparent))))));color:var(--tct-select-multi-select-option-color, var(--t-select-multi-select-option-color, var(--tct-btn-badge-font-color, var(--t-btn-badge-font-color, inherit))))}.popover-top-container .multi-select-header label:hover{background:var(--tct-select-multi-select-option-hover-background, var(--tct-select-multi-select-option-hover-background-color, var(--t-select-multi-select-option-hover-background-color, var(--tct-btn-badge-hover-bg, var(--t-btn-badge-hover-bg, var(--tct-gray-14, var(--t-gray-14, var(--app-gray-l3, #f2f2f2))))))));color:var(--tct-select-multi-select-option-hover-color, var(--tct-select-multi-select-option-color, var(--t-select-multi-select-option-color, var(--tct-btn-badge-hover-font-color, var(--t-btn-badge-hover-font-color, var(--tct-gray-5, var(--t-gray-5, var(--app-gray-d2, #404040))))))))}.popover-top-container .multi-select-header input:checked+label,.popover-top-container .multi-select-header input:checked+label:enabled:hover{background:var(--tct-select-multi-select-option-active-background, var(--tct-select-multi-select-option-active-background-color, var(--t-select-multi-select-option-active-background-color, var(--tct-btn-primary-bg, var(--t-btn-primary-bg, #2e2e2e)))));color:var(--tct-select-multi-select-option-active-color, var(--t-select-multi-select-option-active-color, var(--tct-btn-primary-font-color, var(--t-btn-primary-font-color, var(--app-white, #ffffff)))))}.popover-top-container .multi-select-header input:disabled+label{opacity:var(--tct-select-multi-select-option-disabled-opacity, var(--t-select-multi-select-option-disabled-opacity, var(--tct-btn-disabled-opacity, var(--t-btn-disabled-opacity, var(--app-disabled-opacity, 0.4)))));cursor:not-allowed}.popover-top-container .multi-select-header input:focus+label{box-shadow:var(--const-double-focus-ring)}";
|
|
8
8
|
|
|
9
|
-
const
|
|
9
|
+
const b = f;
|
|
10
10
|
|
|
11
|
-
const
|
|
11
|
+
const m = class {
|
|
12
12
|
constructor(i) {
|
|
13
13
|
t(this, i);
|
|
14
14
|
this.change = e(this, "change", 7);
|
|
15
15
|
this.input = e(this, "input", 7);
|
|
16
16
|
var s;
|
|
17
|
+
// #region Own Properties
|
|
18
|
+
this.guid = l();
|
|
19
|
+
this.lastTouchWasInPopover = false;
|
|
17
20
|
this.scheduledAfterRender = [];
|
|
21
|
+
this.addTouchEventListeners = () => {
|
|
22
|
+
if (!n() || !this.popoverElement) return;
|
|
23
|
+
this.popoverElement.addEventListener("touchstart", this.handleTouchStart, {
|
|
24
|
+
passive: true
|
|
25
|
+
});
|
|
26
|
+
};
|
|
18
27
|
this.clickedElsewhere = t => {
|
|
19
28
|
const e = t.target;
|
|
20
29
|
if (e.localName !== "click-elsewhere") return;
|
|
21
30
|
t.stopPropagation();
|
|
31
|
+
const {popoverElement: i} = this;
|
|
32
|
+
if (!i) return;
|
|
33
|
+
i.open = false;
|
|
34
|
+
this.innerInputField.blur();
|
|
35
|
+
};
|
|
36
|
+
this.destroyEventListeners = () => {
|
|
37
|
+
var t;
|
|
38
|
+
if (!n()) return;
|
|
39
|
+
(t = screen === null || screen === void 0 ? void 0 : screen.orientation) === null || t === void 0 ? void 0 : t.removeEventListener("change", this.handleOrientationChange);
|
|
40
|
+
window.removeEventListener("resize", this.handleOrientationChange);
|
|
41
|
+
visualViewport === null || visualViewport === void 0 ? void 0 : visualViewport.removeEventListener("resize", this.handleOrientationChange);
|
|
42
|
+
this.removeTouchEventListeners();
|
|
43
|
+
};
|
|
44
|
+
this.handleOrientationChange = () => {
|
|
45
|
+
var t, e, i;
|
|
46
|
+
if (!n()) return;
|
|
47
|
+
let s;
|
|
48
|
+
if (this.isModule) {
|
|
49
|
+
s = (t = window.Tecton) === null || t === void 0 ? void 0 : t.platformDimensions.orientationType.includes("landscape");
|
|
50
|
+
} else {
|
|
51
|
+
s = (i = (e = screen === null || screen === void 0 ? void 0 : screen.orientation) === null || e === void 0 ? void 0 : e.type) === null || i === void 0 ? void 0 : i.includes("landscape");
|
|
52
|
+
}
|
|
53
|
+
if (s && this.searchable) this.searchable = false;
|
|
54
|
+
if (!s) this.searchable = this.originalSearchable;
|
|
55
|
+
};
|
|
56
|
+
this.handleTouchStart = t => {
|
|
57
|
+
if (document.activeElement === this.hostElement) {
|
|
58
|
+
const e = t.target;
|
|
59
|
+
if (e && e !== this.hostElement) {
|
|
60
|
+
this.inputFocused = false;
|
|
61
|
+
this.lastTouchWasInPopover = true;
|
|
62
|
+
e.focus();
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
this.initEventListeners = () => {
|
|
67
|
+
var t;
|
|
68
|
+
if (!n()) return;
|
|
69
|
+
(t = screen === null || screen === void 0 ? void 0 : screen.orientation) === null || t === void 0 ? void 0 : t.addEventListener("change", this.handleOrientationChange);
|
|
70
|
+
window.addEventListener("resize", this.handleOrientationChange);
|
|
71
|
+
visualViewport === null || visualViewport === void 0 ? void 0 : visualViewport.addEventListener("resize", this.handleOrientationChange);
|
|
72
|
+
};
|
|
73
|
+
this.initMutationObserver = () => {
|
|
74
|
+
const t = new MutationObserver(this.onMutationObserved);
|
|
75
|
+
t.observe(this.hostElement, {
|
|
76
|
+
childList: true,
|
|
77
|
+
subtree: true
|
|
78
|
+
});
|
|
79
|
+
this.mutationObserver = t;
|
|
80
|
+
this.onMutationObserved();
|
|
22
81
|
};
|
|
23
82
|
this.inputBlurHandler = () => {
|
|
24
83
|
this.inputFocused = false;
|
|
@@ -28,7 +87,17 @@ const v = class {
|
|
|
28
87
|
};
|
|
29
88
|
this.inputClickHandler = async t => {
|
|
30
89
|
t.stopPropagation();
|
|
31
|
-
if
|
|
90
|
+
// Check if the last interaction was a touch within the popover
|
|
91
|
+
// If so, don't toggle the dropdown as the user is likely continuing to interact
|
|
92
|
+
if (this.lastTouchWasInPopover && this.open && this.searchable) {
|
|
93
|
+
// Reset the flag and don't toggle
|
|
94
|
+
this.lastTouchWasInPopover = false;
|
|
95
|
+
this.focusInput();
|
|
96
|
+
return;
|
|
97
|
+
}
|
|
98
|
+
// Reset the flag for any other click
|
|
99
|
+
this.lastTouchWasInPopover = false;
|
|
100
|
+
if (u(this)) {
|
|
32
101
|
return this.executeActionSheet(t);
|
|
33
102
|
}
|
|
34
103
|
this.toggleDropdown();
|
|
@@ -56,7 +125,7 @@ const v = class {
|
|
|
56
125
|
const o = this.hasPopoverTop || this.hasPopoverBottom;
|
|
57
126
|
if ((o || this.multiple) && (e === "Tab" || s)) return;
|
|
58
127
|
// slots are incompatible with action sheet
|
|
59
|
-
if (
|
|
128
|
+
if (u(this, t) && !o) {
|
|
60
129
|
return this.executeActionSheet(t);
|
|
61
130
|
}
|
|
62
131
|
const l = [ "ArrowDown", "ArrowUp", "PageDown", "PageUp", "Home", "End", "Escape", "Tab" ];
|
|
@@ -111,6 +180,10 @@ const v = class {
|
|
|
111
180
|
if (this.open === t) return;
|
|
112
181
|
this.open = t;
|
|
113
182
|
};
|
|
183
|
+
this.removeTouchEventListeners = () => {
|
|
184
|
+
if (!n() || !this.popoverElement) return;
|
|
185
|
+
this.popoverElement.removeEventListener("touchstart", this.handleTouchStart);
|
|
186
|
+
};
|
|
114
187
|
this.showAllOptions = () => {
|
|
115
188
|
this.showSelected = false;
|
|
116
189
|
};
|
|
@@ -147,7 +220,7 @@ const v = class {
|
|
|
147
220
|
this.hoist = !!((s = window.Tecton) === null || s === void 0 ? void 0 : s.useActionSheets);
|
|
148
221
|
this.invalid = undefined;
|
|
149
222
|
this.label = undefined;
|
|
150
|
-
this.listLabel =
|
|
223
|
+
this.listLabel = r("tecton.element.select.listLabel");
|
|
151
224
|
this.minRows = 3;
|
|
152
225
|
this.multilineOptions = false;
|
|
153
226
|
this.multiple = false;
|
|
@@ -167,22 +240,21 @@ const v = class {
|
|
|
167
240
|
var t;
|
|
168
241
|
(t = this.mutationObserver) === null || t === void 0 ? void 0 : t.disconnect();
|
|
169
242
|
this.mutationObserver = null;
|
|
243
|
+
this.destroyEventListeners();
|
|
170
244
|
}
|
|
171
245
|
componentWillLoad() {
|
|
172
|
-
|
|
246
|
+
this.originalSearchable = this.searchable;
|
|
247
|
+
a(this);
|
|
248
|
+
this.handleOrientationChange();
|
|
173
249
|
this.buildStructuredSelectedOptions();
|
|
174
250
|
this.handleMultilineOptionsUpdate(this.multilineOptions, false);
|
|
175
251
|
}
|
|
176
252
|
componentDidLoad() {
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
subtree: true
|
|
181
|
-
});
|
|
182
|
-
this.mutationObserver = t;
|
|
183
|
-
this.onMutationObserved();
|
|
184
|
-
n(this.hostElement);
|
|
253
|
+
this.initMutationObserver();
|
|
254
|
+
this.initEventListeners();
|
|
255
|
+
c(this.hostElement);
|
|
185
256
|
setTimeout((() => this.checkSelectedDisplay()), 0);
|
|
257
|
+
this.setCustomLabel();
|
|
186
258
|
}
|
|
187
259
|
componentDidRender() {
|
|
188
260
|
setTimeout((() => {
|
|
@@ -212,12 +284,12 @@ const v = class {
|
|
|
212
284
|
}
|
|
213
285
|
}
|
|
214
286
|
delegateFocus(t) {
|
|
215
|
-
const e =
|
|
287
|
+
const e = h(t, this.hostElement);
|
|
216
288
|
const i = this.prioritizeSearch = e && this.searchable;
|
|
217
289
|
if (i) {
|
|
218
290
|
this.clearSelectedDisplay();
|
|
219
|
-
} else if (
|
|
220
|
-
this.
|
|
291
|
+
} else if (d(t, this.hostElement)) {
|
|
292
|
+
this.innerInputField.focus();
|
|
221
293
|
}
|
|
222
294
|
}
|
|
223
295
|
handleFocusout(t) {
|
|
@@ -248,13 +320,16 @@ const v = class {
|
|
|
248
320
|
t.hidden = !a;
|
|
249
321
|
if (a) s++;
|
|
250
322
|
}));
|
|
251
|
-
const
|
|
252
|
-
const
|
|
253
|
-
this.setStatusMessage(o
|
|
323
|
+
const o = i ? "tecton.element.select.searchable.results" : "tecton.element.select.allOptions";
|
|
324
|
+
const l = i ? s : e.length;
|
|
325
|
+
this.setStatusMessage(r(o, [ l ]));
|
|
254
326
|
}
|
|
255
327
|
keydownHandler(t) {
|
|
256
328
|
this.inputKeydownHandler(t);
|
|
257
329
|
}
|
|
330
|
+
popoverStateChanged({detail: {open: t}}) {
|
|
331
|
+
if (this.open !== t) this.open = t;
|
|
332
|
+
}
|
|
258
333
|
// #endregion
|
|
259
334
|
// #region Public Methods API
|
|
260
335
|
/**
|
|
@@ -302,7 +377,7 @@ const v = class {
|
|
|
302
377
|
const i = new Set(Array.isArray(t) ? t : [ t ]);
|
|
303
378
|
if (!this.open) {
|
|
304
379
|
await this.openPopover();
|
|
305
|
-
await
|
|
380
|
+
await p();
|
|
306
381
|
}
|
|
307
382
|
i.forEach((t => {
|
|
308
383
|
var e;
|
|
@@ -310,21 +385,26 @@ const v = class {
|
|
|
310
385
|
}));
|
|
311
386
|
if (e.closePopover) {
|
|
312
387
|
await this.closePopover();
|
|
313
|
-
await
|
|
388
|
+
await p();
|
|
314
389
|
}
|
|
315
390
|
}
|
|
316
391
|
// #endregion
|
|
317
392
|
// #region Watchers
|
|
318
393
|
ariaLabelObserver() {
|
|
319
|
-
|
|
394
|
+
a(this);
|
|
320
395
|
}
|
|
321
396
|
handleMultilineOptionsUpdate(t, e) {
|
|
322
397
|
if (t === e) return;
|
|
323
398
|
this.optionElements.forEach((e => e.multiline = t));
|
|
324
399
|
}
|
|
325
400
|
openChanged(t) {
|
|
401
|
+
if (t) {
|
|
402
|
+
this.addTouchEventListeners();
|
|
403
|
+
} else {
|
|
404
|
+
this.removeTouchEventListeners();
|
|
405
|
+
}
|
|
326
406
|
this.scheduledAfterRender.push((async () => {
|
|
327
|
-
await
|
|
407
|
+
await p();
|
|
328
408
|
const {popoverTopContainer: e, popoverElement: i} = this;
|
|
329
409
|
const s = t && (e === null || e === void 0 ? void 0 : e.offsetHeight) || 0;
|
|
330
410
|
if (s) {
|
|
@@ -374,6 +454,15 @@ const v = class {
|
|
|
374
454
|
var t, e;
|
|
375
455
|
return (e = (t = this.inputField) === null || t === void 0 ? void 0 : t.shadowRoot) === null || e === void 0 ? void 0 : e.querySelector(".input-field");
|
|
376
456
|
}
|
|
457
|
+
get inputId() {
|
|
458
|
+
return `select-guid-${this.guid}`;
|
|
459
|
+
}
|
|
460
|
+
get isModule() {
|
|
461
|
+
var t, e;
|
|
462
|
+
const i = window !== window.top;
|
|
463
|
+
const s = Object.keys((e = (t = window.Tecton) === null || t === void 0 ? void 0 : t.platformDimensions) !== null && e !== void 0 ? e : {}).length > 0;
|
|
464
|
+
return i && s;
|
|
465
|
+
}
|
|
377
466
|
get optionElements() {
|
|
378
467
|
return Array.from(this.hostElement.querySelectorAll("q2-option"));
|
|
379
468
|
}
|
|
@@ -409,20 +498,20 @@ const v = class {
|
|
|
409
498
|
}
|
|
410
499
|
calculateMultiSelectSelectedDisplay() {
|
|
411
500
|
var t, e, i;
|
|
412
|
-
const {firstSelectedOptionElement: s, firstSelectedValue:
|
|
413
|
-
if (!
|
|
414
|
-
if (s === null || s === void 0 ? void 0 : s.display) return
|
|
415
|
-
if (
|
|
416
|
-
if (
|
|
417
|
-
return (i = (e = (t = s === null || s === void 0 ? void 0 : s.textContent) === null || t === void 0 ? void 0 : t.trim()) !== null && e !== void 0 ? e : s === null || s === void 0 ? void 0 : s.value) !== null && i !== void 0 ? i :
|
|
501
|
+
const {firstSelectedOptionElement: s, firstSelectedValue: o, multilineOptions: l} = this;
|
|
502
|
+
if (!o) return "";
|
|
503
|
+
if (s === null || s === void 0 ? void 0 : s.display) return r(s.display);
|
|
504
|
+
if (l && this.searchable) return this.searchText;
|
|
505
|
+
if (l) return "";
|
|
506
|
+
return (i = (e = (t = s === null || s === void 0 ? void 0 : s.textContent) === null || t === void 0 ? void 0 : t.trim()) !== null && e !== void 0 ? e : s === null || s === void 0 ? void 0 : s.value) !== null && i !== void 0 ? i : o;
|
|
418
507
|
}
|
|
419
508
|
calculateSingleSelectSelectedDisplay() {
|
|
420
509
|
var t;
|
|
421
510
|
const {firstSelectedOptionElement: e, multilineOptions: i} = this;
|
|
422
511
|
if (i) {
|
|
423
|
-
return (e === null || e === void 0 ? void 0 : e.display) &&
|
|
512
|
+
return (e === null || e === void 0 ? void 0 : e.display) && r(e.display) || this.value || "";
|
|
424
513
|
} else {
|
|
425
|
-
return (e === null || e === void 0 ? void 0 : e.display) &&
|
|
514
|
+
return (e === null || e === void 0 ? void 0 : e.display) && r(e.display) || ((t = e === null || e === void 0 ? void 0 : e.textContent) === null || t === void 0 ? void 0 : t.trim()) || this.value || "";
|
|
426
515
|
}
|
|
427
516
|
}
|
|
428
517
|
checkSelectedDisplay() {
|
|
@@ -485,10 +574,11 @@ const v = class {
|
|
|
485
574
|
}
|
|
486
575
|
closeDropdown() {
|
|
487
576
|
this.open = false;
|
|
577
|
+
this.lastTouchWasInPopover = false;
|
|
488
578
|
this.clearSearchText();
|
|
489
579
|
}
|
|
490
580
|
async executeActionSheet(t) {
|
|
491
|
-
const e = await
|
|
581
|
+
const e = await v(this, t);
|
|
492
582
|
this.focusInput();
|
|
493
583
|
this.handleSelectionChanges(e);
|
|
494
584
|
}
|
|
@@ -517,6 +607,14 @@ const v = class {
|
|
|
517
607
|
this.optionList.setActiveElement(null);
|
|
518
608
|
this.open = true;
|
|
519
609
|
}
|
|
610
|
+
setCustomLabel() {
|
|
611
|
+
var t;
|
|
612
|
+
const e = this.hostElement.querySelector('[slot="label"]');
|
|
613
|
+
if (e) {
|
|
614
|
+
(t = this.inputField) === null || t === void 0 ? void 0 : t.appendChild(e.cloneNode(true));
|
|
615
|
+
this.hostElement.removeChild(e);
|
|
616
|
+
}
|
|
617
|
+
}
|
|
520
618
|
setStatusMessage(t) {
|
|
521
619
|
clearTimeout(this.statusMessageTimer);
|
|
522
620
|
this.statusMessage = "";
|
|
@@ -583,63 +681,20 @@ const v = class {
|
|
|
583
681
|
name: "popover-bottom"
|
|
584
682
|
})));
|
|
585
683
|
}
|
|
586
|
-
|
|
587
|
-
var t, e;
|
|
588
|
-
const s = (e = (t = this.selectedOptions) === null || t === void 0 ? void 0 : t.length) !== null && e !== void 0 ? e : 0;
|
|
589
|
-
const {showSelected: l} = this;
|
|
590
|
-
return i("div", {
|
|
591
|
-
class: "multi-select-header"
|
|
592
|
-
}, i("fieldset", null, i("legend", {
|
|
593
|
-
"aria-label": o("tecton.element.select.multiHeader.showing")
|
|
594
|
-
}, o("tecton.element.select.multiHeader.showing")), i("div", null, i("input", {
|
|
595
|
-
class: "sr",
|
|
596
|
-
type: "radio",
|
|
597
|
-
id: "all",
|
|
598
|
-
name: "viewDisplay",
|
|
599
|
-
value: "all",
|
|
600
|
-
checked: !l,
|
|
601
|
-
"aria-label": o("tecton.element.select.multiHeader.allAriaLabel"),
|
|
602
|
-
"test-id": "allOptionsButton",
|
|
603
|
-
onClick: this.showAllOptions,
|
|
604
|
-
onKeyDown: this.visibilityToggleKeyDown
|
|
605
|
-
}), i("label", {
|
|
606
|
-
htmlFor: "all"
|
|
607
|
-
}, o("tecton.element.select.multiHeader.all"))), i("div", null, i("input", {
|
|
608
|
-
class: "sr",
|
|
609
|
-
type: "radio",
|
|
610
|
-
id: "selected",
|
|
611
|
-
disabled: s === 0,
|
|
612
|
-
name: "viewDisplay",
|
|
613
|
-
value: "selected",
|
|
614
|
-
"aria-label": o("tecton.element.select.multiHeader.selectedAriaLabel", [ s ]),
|
|
615
|
-
checked: l,
|
|
616
|
-
"test-id": "selectedOptionsButton",
|
|
617
|
-
onClick: this.showSelectedOptions,
|
|
618
|
-
onKeyDown: this.visibilityToggleKeyDown
|
|
619
|
-
}), i("label", {
|
|
620
|
-
htmlFor: "selected"
|
|
621
|
-
}, o("tecton.element.select.multiHeader.selected", [ s ])))));
|
|
622
|
-
}
|
|
623
|
-
render() {
|
|
684
|
+
renderSelectField() {
|
|
624
685
|
var t;
|
|
625
|
-
return i("
|
|
626
|
-
key: "eebb5135dcbc3eedbdeb53b46b96a827996e49fe",
|
|
627
|
-
class: this.wrapperClasses,
|
|
628
|
-
onChange: this.clickedElsewhere
|
|
629
|
-
}, i("div", {
|
|
630
|
-
key: "994de0b1a202772014b14c0cb46a46cfa4c42b35",
|
|
686
|
+
return i(s, null, i("div", {
|
|
631
687
|
"aria-live": "polite",
|
|
632
688
|
"aria-atomic": "true",
|
|
633
689
|
role: "status",
|
|
634
690
|
class: "sr"
|
|
635
691
|
}, this.statusMessage), i("q2-input", {
|
|
636
|
-
key: "fe83525b21254030ace9e7569fc75b93118cf14e",
|
|
637
692
|
ref: t => this.inputField = t,
|
|
638
693
|
class: "q2-select-input",
|
|
639
|
-
label: this.label &&
|
|
694
|
+
label: this.label && r(this.label) || "",
|
|
640
695
|
value: this.selectedDisplay,
|
|
641
696
|
clearable: this.clearable && (!!this.value || !!((t = this.selectedOptions) === null || t === void 0 ? void 0 : t.length)) || undefined,
|
|
642
|
-
errors: Array.isArray(this.errors) && this.errors.length > 0 && this.errors.map((t =>
|
|
697
|
+
errors: Array.isArray(this.errors) && this.errors.length > 0 && this.errors.map((t => r(t))) || this.invalid && [ "tecton.element.select.invalid" ] || [],
|
|
643
698
|
disabled: this.disabled,
|
|
644
699
|
optional: this.optional,
|
|
645
700
|
readonly: !!this.readonly,
|
|
@@ -662,17 +717,59 @@ const v = class {
|
|
|
662
717
|
_role: "combobox",
|
|
663
718
|
_preventEntry: !this.searchable
|
|
664
719
|
}, this.renderCustomDisplay()), i("div", {
|
|
665
|
-
key: "ac13068e7fa745d0a150ec22944426d4d050befc",
|
|
666
720
|
class: "custom-display-content",
|
|
667
721
|
hidden: !this.hasCustomDisplay || !!this.searchText,
|
|
668
722
|
onClick: this.onCustomDisplayClick
|
|
669
723
|
}, i("slot", {
|
|
670
|
-
key: "234ea03bb3a4fc2e53e4ec0a5fa87fa2c79bb314",
|
|
671
724
|
name: "q2-select-display"
|
|
672
725
|
})), this.renderOptionsDropdown());
|
|
673
726
|
}
|
|
727
|
+
renderVisibilityToggle() {
|
|
728
|
+
var t, e;
|
|
729
|
+
const s = (e = (t = this.selectedOptions) === null || t === void 0 ? void 0 : t.length) !== null && e !== void 0 ? e : 0;
|
|
730
|
+
const {showSelected: o} = this;
|
|
731
|
+
return i("div", {
|
|
732
|
+
class: "multi-select-header"
|
|
733
|
+
}, i("fieldset", null, i("legend", {
|
|
734
|
+
"aria-label": r("tecton.element.select.multiHeader.showing")
|
|
735
|
+
}, r("tecton.element.select.multiHeader.showing")), i("div", null, i("input", {
|
|
736
|
+
class: "sr",
|
|
737
|
+
type: "radio",
|
|
738
|
+
id: "all",
|
|
739
|
+
name: "viewDisplay",
|
|
740
|
+
value: "all",
|
|
741
|
+
checked: !o,
|
|
742
|
+
"aria-label": r("tecton.element.select.multiHeader.allAriaLabel"),
|
|
743
|
+
"test-id": "allOptionsButton",
|
|
744
|
+
onClick: this.showAllOptions,
|
|
745
|
+
onKeyDown: this.visibilityToggleKeyDown
|
|
746
|
+
}), i("label", {
|
|
747
|
+
htmlFor: "all"
|
|
748
|
+
}, r("tecton.element.select.multiHeader.all"))), i("div", null, i("input", {
|
|
749
|
+
class: "sr",
|
|
750
|
+
type: "radio",
|
|
751
|
+
id: "selected",
|
|
752
|
+
disabled: s === 0,
|
|
753
|
+
name: "viewDisplay",
|
|
754
|
+
value: "selected",
|
|
755
|
+
"aria-label": r("tecton.element.select.multiHeader.selectedAriaLabel", [ s ]),
|
|
756
|
+
checked: o,
|
|
757
|
+
"test-id": "selectedOptionsButton",
|
|
758
|
+
onClick: this.showSelectedOptions,
|
|
759
|
+
onKeyDown: this.visibilityToggleKeyDown
|
|
760
|
+
}), i("label", {
|
|
761
|
+
htmlFor: "selected"
|
|
762
|
+
}, r("tecton.element.select.multiHeader.selected", [ s ])))));
|
|
763
|
+
}
|
|
764
|
+
render() {
|
|
765
|
+
return i("click-elsewhere", {
|
|
766
|
+
key: "02a8de23f2672019f5702a34b40f351960945b47",
|
|
767
|
+
class: this.wrapperClasses,
|
|
768
|
+
onChange: this.clickedElsewhere
|
|
769
|
+
}, this.renderSelectField());
|
|
770
|
+
}
|
|
674
771
|
get hostElement() {
|
|
675
|
-
return
|
|
772
|
+
return o(this);
|
|
676
773
|
}
|
|
677
774
|
static get watchers() {
|
|
678
775
|
return {
|
|
@@ -685,7 +782,7 @@ const v = class {
|
|
|
685
782
|
}
|
|
686
783
|
};
|
|
687
784
|
|
|
688
|
-
|
|
785
|
+
m.style = b;
|
|
689
786
|
|
|
690
|
-
export {
|
|
787
|
+
export { m as q2_select };
|
|
691
788
|
//# sourceMappingURL=q2-select.entry.js.map
|