q2-tecton-elements 1.71.2 → 1.72.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundle-report.json +1282 -594
- package/dist/cjs/click-elsewhere_3.cjs.entry.js +10 -9
- package/dist/cjs/{index-SpDCZABA.js → index-BY3aao8R.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{q2-action-group_2.cjs.entry.js → q2-action-group.cjs.entry.js} +1 -89
- package/dist/cjs/q2-action-sheet.cjs.entry.js +1 -1
- package/dist/cjs/q2-badge_2.cjs.entry.js +113 -12
- package/dist/cjs/q2-btn_2.cjs.entry.js +2 -2
- package/dist/cjs/q2-calendar.cjs.entry.js +7 -5
- package/dist/cjs/q2-card-image.cjs.entry.js +4 -4
- package/dist/cjs/q2-card.cjs.entry.js +1 -1
- package/dist/cjs/q2-carousel-pane.cjs.entry.js +1 -1
- package/dist/cjs/q2-carousel.cjs.entry.js +1 -1
- package/dist/cjs/q2-chart-area.cjs.entry.js +1 -1
- package/dist/cjs/q2-chart-bar.cjs.entry.js +1 -1
- package/dist/cjs/q2-chart-donut.cjs.entry.js +1 -1
- package/dist/cjs/q2-checkbox-group.cjs.entry.js +2 -2
- package/dist/cjs/q2-checkbox_2.cjs.entry.js +3 -3
- package/dist/cjs/q2-context.cjs.entry.js +4 -3
- package/dist/cjs/q2-data-table.cjs.entry.js +2 -2
- package/dist/cjs/q2-detail.cjs.entry.js +1 -1
- package/dist/cjs/q2-dropdown-item.cjs.entry.js +1 -1
- package/dist/cjs/q2-dropdown.cjs.entry.js +3 -3
- package/dist/cjs/q2-editable-field.cjs.entry.js +38 -37
- package/dist/cjs/q2-file-picker.cjs.entry.js +60 -4
- package/dist/cjs/q2-icon.cjs.entry.js +1 -1
- package/dist/cjs/q2-item.cjs.entry.js +2 -2
- package/dist/cjs/q2-link_2.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-meter.cjs.entry.js +1 -1
- package/dist/cjs/q2-modal.cjs.entry.js +59 -17
- package/dist/cjs/q2-month-picker.cjs.entry.js +1 -1
- package/dist/cjs/q2-optgroup.cjs.entry.js +1 -1
- package/dist/cjs/q2-option.cjs.entry.js +1 -1
- package/dist/cjs/q2-otp.cjs.entry.js +1 -1
- package/dist/cjs/q2-pagination.cjs.entry.js +1 -1
- package/dist/cjs/q2-pill.cjs.entry.js +2 -2
- package/dist/cjs/q2-radio-group.cjs.entry.js +22 -4
- package/dist/cjs/q2-radio.cjs.entry.js +3 -3
- package/dist/cjs/q2-relative-time.cjs.entry.js +3 -3
- package/dist/cjs/q2-resize-observer.cjs.entry.js +92 -0
- package/dist/cjs/q2-search.cjs.entry.js +2 -2
- package/dist/cjs/q2-section.cjs.entry.js +7 -7
- package/dist/cjs/q2-select.cjs.entry.js +35 -19
- package/dist/cjs/q2-stepper-pane.cjs.entry.js +2 -2
- package/dist/cjs/q2-stepper-vertical.cjs.entry.js +2 -2
- package/dist/cjs/q2-stepper.cjs.entry.js +1 -1
- package/dist/cjs/q2-surface.cjs.entry.js +1 -1
- package/dist/cjs/q2-tab-container.cjs.entry.js +2 -2
- package/dist/cjs/q2-tab-pane.cjs.entry.js +1 -1
- package/dist/cjs/q2-tecton-elements.cjs.js +1 -1
- package/dist/cjs/q2-textarea.cjs.entry.js +1 -1
- package/dist/cjs/q2-toast.cjs.entry.js +1 -1
- package/dist/cjs/q2-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/tecton-tab-pane.cjs.entry.js +5 -3
- package/dist/collection/components/q2-btn/q2-btn.css +79 -21
- package/dist/collection/components/q2-btn/test/q2-btn-test.vr.js +156 -3
- package/dist/collection/components/q2-calendar/q2-calendar.css +3 -0
- package/dist/collection/components/q2-calendar/q2-calendar.js +5 -3
- package/dist/collection/components/q2-calendar/test/q2-calendar-test.vr.js +23 -2
- package/dist/collection/components/q2-card/test/q2-card-test.vr.js +4 -0
- package/dist/collection/components/q2-card-image/q2-card-image.css +89 -134
- package/dist/collection/components/q2-card-image/q2-card-image.js +4 -4
- package/dist/collection/components/q2-card-image/test/q2-card-image-test.vr.js +4 -0
- package/dist/collection/components/q2-carousel/test/q2-carousel-test.vr.js +13 -0
- package/dist/collection/components/q2-checkbox/q2-checkbox.css +2 -2
- package/dist/collection/components/q2-checkbox-group/q2-checkbox-group.css +2 -0
- package/dist/collection/components/q2-context/q2-context.css +5 -0
- package/dist/collection/components/q2-context/q2-context.js +2 -1
- package/dist/collection/components/q2-context/test/q2-context-test.vr.js +11 -1
- package/dist/collection/components/q2-data-table/q2-data-table.css +3 -0
- package/dist/collection/components/q2-data-table/test/q2-data-table-test.vr.js +5 -0
- package/dist/collection/components/q2-dropdown/q2-dropdown.css +2 -0
- package/dist/collection/components/q2-dropdown/q2-dropdown.js +1 -1
- package/dist/collection/components/q2-dropdown/test/q2-dropdown-test.vr.js +30 -0
- package/dist/collection/components/q2-editable-field/q2-editable-field.css +2 -0
- package/dist/collection/components/q2-editable-field/q2-editable-field.js +38 -43
- package/dist/collection/components/q2-file-picker/q2-file-picker.css +27 -0
- package/dist/collection/components/q2-file-picker/q2-file-picker.js +98 -2
- package/dist/collection/components/q2-file-picker/test/q2-file-picker-test.vr.js +22 -0
- package/dist/collection/components/q2-input/q2-input.css +67 -1
- package/dist/collection/components/q2-input/q2-input.js +155 -13
- package/dist/collection/components/q2-input/test/q2-input-test.vr.js +35 -0
- package/dist/collection/components/q2-item/q2-item.css +3 -1
- package/dist/collection/components/q2-item/test/q2-item-test.vr.js +6 -0
- package/dist/collection/components/q2-message/q2-message.css +5 -5
- package/dist/collection/components/q2-modal/q2-modal.css +40 -3
- package/dist/collection/components/q2-modal/q2-modal.js +100 -16
- package/dist/collection/components/q2-modal/test/q2-modal-test.vr.js +25 -0
- package/dist/collection/components/q2-pill/q2-pill.css +2 -2
- package/dist/collection/components/q2-popover/q2-popover.css +3 -2
- package/dist/collection/components/q2-popover/q2-popover.js +8 -7
- package/dist/collection/components/q2-radio/q2-radio.css +158 -104
- package/dist/collection/components/q2-radio/q2-radio.js +1 -1
- package/dist/collection/components/q2-radio/test/q2-radio-test.vr.js +25 -2
- package/dist/collection/components/q2-radio-group/q2-radio-group.css +39 -2
- package/dist/collection/components/q2-radio-group/q2-radio-group.js +68 -2
- package/dist/collection/components/q2-radio-group/test/q2-radio-group-test.vr.js +43 -1
- package/dist/collection/components/q2-relative-time/q2-relative-time.js +2 -2
- package/dist/collection/components/q2-search/q2-search.css +2 -0
- package/dist/collection/components/q2-section/q2-section.css +2 -0
- package/dist/collection/components/q2-section/q2-section.js +6 -6
- package/dist/collection/components/q2-select/q2-select.css +3 -0
- package/dist/collection/components/q2-select/q2-select.js +37 -18
- package/dist/collection/components/q2-select/test/q2-select-test.vr.js +13 -0
- package/dist/collection/components/q2-stepper-pane/q2-stepper-pane.js +1 -1
- package/dist/collection/components/q2-stepper-vertical/q2-stepper-vertical.js +1 -1
- package/dist/collection/components/q2-surface/q2-surface.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/tecton-tab-pane/tecton-tab-pane.js +5 -3
- package/dist/collection/utils/index.js +1 -1
- package/dist/collection/utils/test/vr-helpers.js +16 -2
- package/dist/components/index2.js +1 -1
- package/dist/components/q2-btn2.js +1 -1
- package/dist/components/q2-calendar.js +11 -9
- package/dist/components/q2-card-image.js +24 -24
- package/dist/components/q2-checkbox-group.js +6 -6
- package/dist/components/q2-checkbox2.js +1 -1
- package/dist/components/q2-context.js +27 -26
- package/dist/components/q2-data-table.js +1 -1
- package/dist/components/q2-dropdown.js +21 -21
- package/dist/components/q2-editable-field.js +33 -35
- package/dist/components/q2-file-picker.js +70 -10
- package/dist/components/q2-input2.js +268 -163
- package/dist/components/q2-item2.js +1 -1
- package/dist/components/q2-message2.js +24 -24
- package/dist/components/q2-modal.js +96 -78
- package/dist/components/q2-pill.js +1 -1
- package/dist/components/q2-popover2.js +29 -26
- package/dist/components/q2-radio-group.js +70 -40
- package/dist/components/q2-radio.js +40 -55
- package/dist/components/q2-relative-time.js +5 -5
- package/dist/components/q2-search.js +1 -1
- package/dist/components/q2-section.js +33 -33
- package/dist/components/q2-select2.js +46 -39
- package/dist/components/q2-stepper-pane.js +15 -11
- package/dist/components/q2-stepper-vertical.js +4 -4
- package/dist/components/q2-surface.js +3 -3
- package/dist/components/q2-tab-container.js +21 -21
- package/dist/components/q2-tab-pane.js +2 -2
- package/dist/components/q2-tag2.js +5 -5
- package/dist/components/tecton-tab-pane.js +8 -7
- package/dist/esm/click-elsewhere_3.entry.js +10 -9
- package/dist/esm/{index-Cps4jSQM.js → index-DJw6Feh0.js} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{q2-action-group_2.entry.js → q2-action-group.entry.js} +3 -90
- package/dist/esm/q2-action-sheet.entry.js +1 -1
- package/dist/esm/q2-badge_2.entry.js +113 -12
- package/dist/esm/q2-btn_2.entry.js +2 -2
- package/dist/esm/q2-calendar.entry.js +7 -5
- package/dist/esm/q2-card-image.entry.js +4 -4
- package/dist/esm/q2-card.entry.js +1 -1
- package/dist/esm/q2-carousel-pane.entry.js +1 -1
- package/dist/esm/q2-carousel.entry.js +1 -1
- package/dist/esm/q2-chart-area.entry.js +1 -1
- package/dist/esm/q2-chart-bar.entry.js +1 -1
- package/dist/esm/q2-chart-donut.entry.js +1 -1
- package/dist/esm/q2-checkbox-group.entry.js +2 -2
- package/dist/esm/q2-checkbox_2.entry.js +3 -3
- package/dist/esm/q2-context.entry.js +4 -3
- package/dist/esm/q2-data-table.entry.js +2 -2
- package/dist/esm/q2-detail.entry.js +1 -1
- package/dist/esm/q2-dropdown-item.entry.js +1 -1
- package/dist/esm/q2-dropdown.entry.js +3 -3
- package/dist/esm/q2-editable-field.entry.js +38 -37
- package/dist/esm/q2-file-picker.entry.js +60 -4
- package/dist/esm/q2-icon.entry.js +1 -1
- package/dist/esm/q2-item.entry.js +2 -2
- package/dist/esm/q2-link_2.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-meter.entry.js +1 -1
- package/dist/esm/q2-modal.entry.js +59 -17
- package/dist/esm/q2-month-picker.entry.js +1 -1
- package/dist/esm/q2-optgroup.entry.js +1 -1
- package/dist/esm/q2-option.entry.js +1 -1
- package/dist/esm/q2-otp.entry.js +1 -1
- package/dist/esm/q2-pagination.entry.js +1 -1
- package/dist/esm/q2-pill.entry.js +2 -2
- package/dist/esm/q2-radio-group.entry.js +22 -4
- package/dist/esm/q2-radio.entry.js +3 -3
- package/dist/esm/q2-relative-time.entry.js +3 -3
- package/dist/esm/q2-resize-observer.entry.js +90 -0
- package/dist/esm/q2-search.entry.js +2 -2
- package/dist/esm/q2-section.entry.js +7 -7
- package/dist/esm/q2-select.entry.js +35 -19
- package/dist/esm/q2-stepper-pane.entry.js +2 -2
- package/dist/esm/q2-stepper-vertical.entry.js +2 -2
- package/dist/esm/q2-stepper.entry.js +1 -1
- package/dist/esm/q2-surface.entry.js +1 -1
- package/dist/esm/q2-tab-container.entry.js +2 -2
- package/dist/esm/q2-tab-pane.entry.js +1 -1
- package/dist/esm/q2-tecton-elements.js +1 -1
- package/dist/esm/q2-textarea.entry.js +1 -1
- package/dist/esm/q2-toast.entry.js +1 -1
- package/dist/esm/q2-tooltip.entry.js +1 -1
- package/dist/esm/tecton-tab-pane.entry.js +5 -3
- package/dist/q2-tecton-elements/click-elsewhere_3.entry.js +32 -29
- package/dist/q2-tecton-elements/{index-Cps4jSQM.js → index-DJw6Feh0.js} +1 -1
- package/dist/q2-tecton-elements/{q2-action-group_2.entry.js → q2-action-group.entry.js} +35 -113
- package/dist/q2-tecton-elements/q2-action-sheet.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-badge_2.entry.js +240 -140
- package/dist/q2-tecton-elements/q2-btn_2.entry.js +2 -2
- package/dist/q2-tecton-elements/q2-calendar.entry.js +14 -12
- package/dist/q2-tecton-elements/q2-card-image.entry.js +9 -9
- package/dist/q2-tecton-elements/q2-card.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-carousel-pane.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-carousel.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-chart-area.entry.js +31 -31
- package/dist/q2-tecton-elements/q2-chart-bar.entry.js +16 -16
- package/dist/q2-tecton-elements/q2-chart-donut.entry.js +6 -6
- package/dist/q2-tecton-elements/q2-checkbox-group.entry.js +2 -2
- package/dist/q2-tecton-elements/q2-checkbox_2.entry.js +7 -7
- package/dist/q2-tecton-elements/q2-context.entry.js +22 -21
- package/dist/q2-tecton-elements/q2-data-table.entry.js +34 -34
- package/dist/q2-tecton-elements/q2-detail.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-dropdown-item.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-dropdown.entry.js +15 -15
- package/dist/q2-tecton-elements/q2-editable-field.entry.js +38 -40
- package/dist/q2-tecton-elements/q2-file-picker.entry.js +61 -6
- package/dist/q2-tecton-elements/q2-icon.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-item.entry.js +2 -2
- package/dist/q2-tecton-elements/q2-link_2.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-loc.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-message.entry.js +24 -24
- package/dist/q2-tecton-elements/q2-meter.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-modal.entry.js +61 -45
- package/dist/q2-tecton-elements/q2-month-picker.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-optgroup.entry.js +11 -11
- package/dist/q2-tecton-elements/q2-option.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-otp.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-pagination.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-pill.entry.js +2 -2
- package/dist/q2-tecton-elements/q2-radio-group.entry.js +55 -34
- package/dist/q2-tecton-elements/q2-radio.entry.js +38 -53
- package/dist/q2-tecton-elements/q2-relative-time.entry.js +12 -12
- package/dist/q2-tecton-elements/q2-resize-observer.entry.js +81 -0
- package/dist/q2-tecton-elements/q2-search.entry.js +2 -2
- package/dist/q2-tecton-elements/q2-section.entry.js +33 -33
- package/dist/q2-tecton-elements/q2-select.entry.js +27 -20
- package/dist/q2-tecton-elements/q2-stepper-pane.entry.js +20 -16
- package/dist/q2-tecton-elements/q2-stepper-vertical.entry.js +5 -5
- package/dist/q2-tecton-elements/q2-stepper.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-surface.entry.js +3 -3
- package/dist/q2-tecton-elements/q2-tab-container.entry.js +20 -20
- package/dist/q2-tecton-elements/q2-tab-pane.entry.js +4 -4
- package/dist/q2-tecton-elements/q2-tecton-elements.esm.js +1 -1
- package/dist/q2-tecton-elements/q2-textarea.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-toast.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-tooltip.entry.js +1 -1
- package/dist/q2-tecton-elements/tecton-tab-pane.entry.js +8 -7
- package/dist/types/components/q2-card-image/q2-card-image.d.ts +1 -1
- package/dist/types/components/q2-dropdown/test/q2-dropdown-test.vr.d.ts +1 -0
- package/dist/types/components/q2-editable-field/q2-editable-field.d.ts +6 -1
- package/dist/types/components/q2-file-picker/q2-file-picker.d.ts +20 -0
- package/dist/types/components/q2-input/q2-input.d.ts +28 -2
- package/dist/types/components/q2-modal/q2-modal.d.ts +10 -1
- package/dist/types/components/q2-radio-group/q2-radio-group.d.ts +14 -0
- package/dist/types/components/q2-select/q2-select.d.ts +8 -2
- package/dist/types/components.d.ts +119 -11
- package/dist/types/utils/test/vr-helpers.d.ts +2 -0
- package/package.json +3 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as t, c as e, h as i, F as s, g as o } from "./index-Cqkz7Bnm.js";
|
|
2
2
|
|
|
3
|
-
import { c as l, l as n, g as a, d as r, o as c, i as h, j as d, k as p, w as u } from "./index-
|
|
3
|
+
import { c as l, l as n, g as a, d as r, o as c, i as h, j as d, k as p, w as u } from "./index-DJw6Feh0.js";
|
|
4
4
|
|
|
5
5
|
import { m as v } from "./mirror-emit-DUjY_ucm.js";
|
|
6
6
|
|
|
@@ -13,7 +13,7 @@ const g = class {
|
|
|
13
13
|
t(this, i), this.change = e(this, "change", 7), this.input = e(this, "input", 7),
|
|
14
14
|
this.tctChange = e(this, "tctChange", 7), this.tctInput = e(this, "tctInput", 7),
|
|
15
15
|
this.guid = l(), this.isOrientationUpdate = !1, this.lastTouchWasInPopover = !1,
|
|
16
|
-
this.scheduledAfterRender = [],
|
|
16
|
+
this.removingSelectedDisplay = !1, this.scheduledAfterRender = [],
|
|
17
17
|
// #endregion
|
|
18
18
|
// #region State Properties
|
|
19
19
|
this.hasCustomDisplay = !1, this.hasPopoverBottom = !1, this.hasPopoverTop = !1,
|
|
@@ -65,7 +65,12 @@ const g = class {
|
|
|
65
65
|
* Takes priority over `optional` if both are `true`.
|
|
66
66
|
*/
|
|
67
67
|
this.readonly = !1,
|
|
68
|
-
/**
|
|
68
|
+
/**
|
|
69
|
+
* Enables search functionality.
|
|
70
|
+
* @warning
|
|
71
|
+
* `searchable` is not compatible with the `hoist` prop. The action sheet workflow used when `hoist` is `true` does not support in-list search filtering.
|
|
72
|
+
* If both are set, `searchable` has no effect while the action sheet is active.
|
|
73
|
+
*/
|
|
69
74
|
this.searchable = !1,
|
|
70
75
|
/**
|
|
71
76
|
* Each item in this array should correspond to the value of a `q2-option` element.
|
|
@@ -128,8 +133,8 @@ const g = class {
|
|
|
128
133
|
}, this.inputInputHandler = t => {
|
|
129
134
|
t.stopPropagation();
|
|
130
135
|
const e = t.detail.value;
|
|
131
|
-
|
|
132
|
-
this.
|
|
136
|
+
this.open || this.openDropdownWithoutActiveElement(), this.prioritizeSearch = !0,
|
|
137
|
+
this.searchText = e, v(this, [ "input", "tctInput" ], {
|
|
133
138
|
query: e
|
|
134
139
|
});
|
|
135
140
|
}, this.inputKeydownHandler = t => {
|
|
@@ -137,7 +142,7 @@ const g = class {
|
|
|
137
142
|
const {key: e, shiftKey: i} = t, s = "Tab" === e && i, o = this.hasPopoverTop || this.hasPopoverBottom;
|
|
138
143
|
if ((o || this.multiple) && ("Tab" === e || s)) return;
|
|
139
144
|
// slots are incompatible with action sheet
|
|
140
|
-
if (m(this, t) && !o) return this.executeActionSheet(t);
|
|
145
|
+
if (m(this, t) && !o) return t.preventDefault(), t.stopPropagation(), this.executeActionSheet(t);
|
|
141
146
|
!this.searchable || " " !== e && "Enter" !== e || "" != this.inputField.value || (t.preventDefault(),
|
|
142
147
|
this.open || this.openDropdownWithoutActiveElement()), this.searchable && ![ "ArrowDown", "ArrowUp", "PageDown", "PageUp", "Home", "End", "Escape", "Tab" ].includes(e) || (this.shouldClearSearchText(t) && this.clearSearchText(),
|
|
143
148
|
// Prevent click event from firing when spacebar is pressed
|
|
@@ -161,9 +166,10 @@ const g = class {
|
|
|
161
166
|
t && !this.searchText || ("select" !== e && this.optionList.setActiveElement(null),
|
|
162
167
|
this.inputField.focus()), this.open !== t && (this.open = t);
|
|
163
168
|
}, this.onSelectedDisplayClick = t => {
|
|
169
|
+
var e, i;
|
|
164
170
|
// Stop click from bubbling to q2-input's onClick (which would toggle the dropdown)
|
|
165
|
-
|
|
166
|
-
this.
|
|
171
|
+
t.stopPropagation(), this.open ? null === (e = this.innerInputField) || void 0 === e || e.focus() : (null === (i = this.innerInputField) || void 0 === i || i.focus(),
|
|
172
|
+
this.prioritizeSearch = this.searchable, this.openDropdownWithoutActiveElement());
|
|
167
173
|
}, this.onSelectedDisplayMousedown = t => {
|
|
168
174
|
// Prevent focus shift away from the hidden input
|
|
169
175
|
t.preventDefault();
|
|
@@ -219,15 +225,16 @@ const g = class {
|
|
|
219
225
|
!this.multiple && this.value && this.value === t.detail.value && (this.inputField.value = t.detail.display);
|
|
220
226
|
}
|
|
221
227
|
delegateFocus(t) {
|
|
222
|
-
var e;
|
|
228
|
+
var e, i;
|
|
223
229
|
// Always delegate focus from host to inner input (fixes programmatic focus)
|
|
224
230
|
h(t, this.hostElement) && (null === (e = this.innerInputField) || void 0 === e || e.focus());
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
this.prioritizeSearch = i && this.searchable, this.prioritizeSearch && this.clearSelectedDisplay();
|
|
231
|
+
const s = d(t, this.hostElement), o = !!this.selectedDisplaySlot || this.multilineOptions && !!this.firstSelectedOptionElement && !this.firstSelectedOptionElement.display;
|
|
232
|
+
this.prioritizeSearch = s && this.searchable && (this.multiple || o), this.prioritizeSearch ? this.clearSelectedDisplay() : s && this.searchable && this.value && (null === (i = this.innerInputField) || void 0 === i || i.select());
|
|
228
233
|
}
|
|
229
234
|
handleFocusout(t) {
|
|
230
235
|
var e;
|
|
236
|
+
// Removing the robust display while opening search can emit a focusout without a destination.
|
|
237
|
+
if (!t.relatedTarget && (this.removingSelectedDisplay || this.open && this.prioritizeSearch)) return;
|
|
231
238
|
const i = t.relatedTarget, s = !(null === (e = this.popoverElement) || void 0 === e ? void 0 : e.contains(i)) && !this.hostElement.contains(i);
|
|
232
239
|
s && this.closeDropdown(), this.prioritizeSearch = !s && this.searchable;
|
|
233
240
|
}
|
|
@@ -311,10 +318,9 @@ const g = class {
|
|
|
311
318
|
handleMultilineOptionsUpdate(t, e) {
|
|
312
319
|
t !== e && this.optionElements.forEach((e => e.multiline = t));
|
|
313
320
|
}
|
|
314
|
-
openChanged(t) {
|
|
315
|
-
t ? this.addTouchEventListeners() : (this.removeTouchEventListeners(),
|
|
316
|
-
|
|
317
|
-
this.prioritizeSearch = !1), this.scheduledAfterRender.push((async () => {
|
|
321
|
+
openChanged(t, e) {
|
|
322
|
+
t ? this.addTouchEventListeners() : (this.removeTouchEventListeners(), e && (this.prioritizeSearch = !1)),
|
|
323
|
+
this.scheduledAfterRender.push((async () => {
|
|
318
324
|
await u();
|
|
319
325
|
const {popoverTopContainer: e, popoverElement: i} = this, s = t && (null == e ? void 0 : e.offsetHeight) || 0;
|
|
320
326
|
s ? i.style.setProperty("--comp-popover-top-container-height", `${s}px`) : i.style.removeProperty("--comp-popover-top-container-height");
|
|
@@ -434,7 +440,7 @@ const g = class {
|
|
|
434
440
|
clearSelectedDisplay() {
|
|
435
441
|
const t = this.selectedDisplaySlot;
|
|
436
442
|
t && (t.removeEventListener("mousedown", this.onSelectedDisplayMousedown), t.removeEventListener("click", this.onSelectedDisplayClick),
|
|
437
|
-
t.remove());
|
|
443
|
+
this.removingSelectedDisplay = !0, t.remove(), setTimeout((() => this.removingSelectedDisplay = !1), 0));
|
|
438
444
|
}
|
|
439
445
|
clearValue() {
|
|
440
446
|
const {multiple: t} = this;
|
|
@@ -534,7 +540,7 @@ const g = class {
|
|
|
534
540
|
})));
|
|
535
541
|
}
|
|
536
542
|
renderSelectField() {
|
|
537
|
-
var t;
|
|
543
|
+
var t, e;
|
|
538
544
|
return i(s, null, i("div", {
|
|
539
545
|
"aria-live": "polite",
|
|
540
546
|
"aria-atomic": "true",
|
|
@@ -569,6 +575,7 @@ const g = class {
|
|
|
569
575
|
onTctChange: this.inputChangeHandler,
|
|
570
576
|
badgeValue: this.badgeValue,
|
|
571
577
|
badgeTheme: this.inputFocused ? "primary" : void 0,
|
|
578
|
+
_ariaDescription: this.multiple && (null === (e = this.selectedOptions) || void 0 === e ? void 0 : e.length) ? n("tecton.element.select.selectionCount", [ this.selectedOptions.length ]) : void 0,
|
|
572
579
|
_role: "combobox",
|
|
573
580
|
_preventEntry: !this.searchable
|
|
574
581
|
}, this.renderCustomDisplay()), i("div", {
|
|
@@ -617,7 +624,7 @@ const g = class {
|
|
|
617
624
|
}
|
|
618
625
|
render() {
|
|
619
626
|
return i("click-elsewhere", {
|
|
620
|
-
key: "
|
|
627
|
+
key: "5c9a6d681aedcebfbadd6b1249f7bcd96c27809c",
|
|
621
628
|
class: this.wrapperClasses,
|
|
622
629
|
role: "presentation",
|
|
623
630
|
onChange: this.clickedElsewhere
|
|
@@ -652,6 +659,6 @@ const g = class {
|
|
|
652
659
|
}
|
|
653
660
|
};
|
|
654
661
|
|
|
655
|
-
g.style = '*{box-sizing:border-box}*:active{outline:none}*:focus-visible{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}@container style(--t-prefers-motion: "reduced"){*,*::before,*::after{animation-duration:0.01ms !important;transition-duration:0.01ms !important;animation-delay:0ms !important;transition-delay:0ms !important}}@container (not style(--t-prefers-motion: "normal")) and (not style(--t-prefers-motion: "reduced")){@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:0.01ms !important;transition-duration:0.01ms !important;animation-delay:0ms !important;transition-delay:0ms !important}}}.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);padding-top:var(--tct-select-selected-display-padding, var(--app-scale-2x, 10px));padding-bottom:var(--tct-select-selected-display-padding, var(--app-scale-2x, 10px))}.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-visible+label{box-shadow:var(--const-double-focus-ring)}';
|
|
662
|
+
g.style = '*{box-sizing:border-box}*:active{outline:none}*:focus-visible{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}@container style(--t-prefers-motion: "reduced"){*,*::before,*::after{animation-duration:0.01ms !important;transition-duration:0.01ms !important;animation-delay:0ms !important;transition-delay:0ms !important}}@container (not style(--t-prefers-motion: "normal")) and (not style(--t-prefers-motion: "reduced")){@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:0.01ms !important;transition-duration:0.01ms !important;animation-delay:0ms !important;transition-delay:0ms !important}}}.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;letter-spacing:inherit;--tct-input-icon-size:var(--tct-select-icon-size, var(--const-px-18, 18px));--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);padding-top:var(--tct-select-selected-display-padding, var(--app-scale-2x, 10px));padding-bottom:var(--tct-select-selected-display-padding, var(--app-scale-2x, 10px))}.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-visible+label{box-shadow:var(--const-double-focus-ring)}';
|
|
656
663
|
|
|
657
664
|
export { g as q2_select }
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { r as t, c as e, h as i, F as
|
|
1
|
+
import { r as t, c as e, h as i, F as a, H as s, g as n } from "./index-Cqkz7Bnm.js";
|
|
2
2
|
|
|
3
3
|
import { b as o } from "./component-DaQM9u3s.js";
|
|
4
4
|
|
|
5
|
-
import { c as r, n as
|
|
5
|
+
import { c as r, n as d, l as h } from "./index-DJw6Feh0.js";
|
|
6
6
|
|
|
7
|
-
import { m as
|
|
7
|
+
import { m as c } from "./mirror-emit-DUjY_ucm.js";
|
|
8
8
|
|
|
9
9
|
const l = class {
|
|
10
10
|
constructor(i) {
|
|
@@ -43,7 +43,7 @@ const l = class {
|
|
|
43
43
|
this.contentChange.emit();
|
|
44
44
|
}
|
|
45
45
|
isActiveChanged(t) {
|
|
46
|
-
|
|
46
|
+
c(this, [ "activeChange", "tctActiveChange" ], {
|
|
47
47
|
status: this.status || "",
|
|
48
48
|
isActive: t,
|
|
49
49
|
id: this.hostElement.id,
|
|
@@ -51,14 +51,14 @@ const l = class {
|
|
|
51
51
|
});
|
|
52
52
|
}
|
|
53
53
|
checkForActiveChildren() {
|
|
54
|
-
this.showWithChildren &&
|
|
54
|
+
this.showWithChildren && d((() => {
|
|
55
55
|
setTimeout((() => {
|
|
56
56
|
this.isChildActive = !!this.hostElement.querySelector("[slot='children'] > q2-stepper-pane[is-active]");
|
|
57
57
|
}));
|
|
58
58
|
}));
|
|
59
59
|
}
|
|
60
60
|
statusChanged(t) {
|
|
61
|
-
|
|
61
|
+
c(this, [ "statusChange", "tctStatusChange" ], {
|
|
62
62
|
status: t,
|
|
63
63
|
isActive: !!this.isActive,
|
|
64
64
|
id: this.hostElement.id,
|
|
@@ -69,31 +69,35 @@ const l = class {
|
|
|
69
69
|
// #region Render Methods
|
|
70
70
|
render() {
|
|
71
71
|
const {label: t, isActive: e} = this;
|
|
72
|
-
return i(
|
|
72
|
+
return i(s, {
|
|
73
73
|
key: "7acf643f717380c37eb25334534afbca81ac8ab6",
|
|
74
74
|
role: "listitem"
|
|
75
|
-
}, i(
|
|
75
|
+
}, i(a, {
|
|
76
76
|
key: "0241a9ad68973eea81c961070d6171dab3241f79"
|
|
77
77
|
}, i("div", {
|
|
78
|
-
key: "
|
|
79
|
-
"
|
|
78
|
+
key: "6678cb4a7e65a3a4341ff552682c1011c588108b",
|
|
79
|
+
role: "group",
|
|
80
|
+
"aria-labelledby": "pane-label",
|
|
80
81
|
tabindex: "0",
|
|
81
82
|
hidden: !(e || this.isChildActive && this.showWithChildren)
|
|
82
83
|
}, i("slot", {
|
|
83
|
-
key: "
|
|
84
|
+
key: "0f8d339f894bdaa55bd5bdf94b1220da7a083dde"
|
|
84
85
|
})), i("div", {
|
|
85
|
-
key: "
|
|
86
|
+
key: "51e3934ad791e45486360ab8c6509b68e3a15d9d",
|
|
86
87
|
hidden: !0
|
|
88
|
+
}, i("span", {
|
|
89
|
+
key: "96fe08c826d87f86559fe2dbb586914b4065eb40",
|
|
90
|
+
id: "pane-label"
|
|
87
91
|
}, i("slot", {
|
|
88
|
-
key: "
|
|
92
|
+
key: "b4cab1594ae047f032fbaa67f75167e31cc4cdf7",
|
|
89
93
|
name: "label",
|
|
90
94
|
onSlotchange: () => this.contentChange.emit()
|
|
91
|
-
}), i("slot", {
|
|
92
|
-
key: "
|
|
95
|
+
}, t && h(t))), i("slot", {
|
|
96
|
+
key: "473cf6b9bc3ef5995d11e46502db1321d59baa5e",
|
|
93
97
|
name: "description",
|
|
94
98
|
onSlotchange: () => this.contentChange.emit()
|
|
95
99
|
})), i("slot", {
|
|
96
|
-
key: "
|
|
100
|
+
key: "76cb24680ed1ec8a49956f888accf3fd07da7fa0",
|
|
97
101
|
name: "children"
|
|
98
102
|
})));
|
|
99
103
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as t, c as e, h as a, F as r, g as i } from "./index-Cqkz7Bnm.js";
|
|
2
2
|
|
|
3
|
-
import { c as s, o as n, i as o, l as c } from "./index-
|
|
3
|
+
import { c as s, o as n, i as o, l as c } from "./index-DJw6Feh0.js";
|
|
4
4
|
|
|
5
5
|
import { m as l } from "./mirror-emit-DUjY_ucm.js";
|
|
6
6
|
|
|
@@ -299,15 +299,15 @@ const d = class {
|
|
|
299
299
|
}
|
|
300
300
|
render() {
|
|
301
301
|
return a(r, {
|
|
302
|
-
key: "
|
|
302
|
+
key: "9d40414e7b510493b0236568c4d6231eeacdbd80"
|
|
303
303
|
}, a("ul", {
|
|
304
|
-
key: "
|
|
304
|
+
key: "b3a444833439d59be874a2bf04833f8df0ff107f",
|
|
305
305
|
role: "tablist"
|
|
306
306
|
}, this.structuredPanes.map(((t, e) => this.renderStepBtn(t, e)))), a("div", {
|
|
307
|
-
key: "
|
|
307
|
+
key: "34f3841d0eb0c5fe96670ac3d5e87244682ace74",
|
|
308
308
|
role: "list"
|
|
309
309
|
}, a("slot", {
|
|
310
|
-
key: "
|
|
310
|
+
key: "e224e413162cb28eab4ec0e8b51367ed3b83fa0b"
|
|
311
311
|
})));
|
|
312
312
|
}
|
|
313
313
|
get hostElement() {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as t, c as e, h as r, F as i, g as o } from "./index-Cqkz7Bnm.js";
|
|
2
2
|
|
|
3
|
-
import { c as a, o as s, i as l, l as n } from "./index-
|
|
3
|
+
import { c as a, o as s, i as l, l as n } from "./index-DJw6Feh0.js";
|
|
4
4
|
|
|
5
5
|
import { m as c } from "./mirror-emit-DUjY_ucm.js";
|
|
6
6
|
|
|
@@ -69,14 +69,14 @@ const c = class {
|
|
|
69
69
|
// #region Render Methods
|
|
70
70
|
render() {
|
|
71
71
|
return o(e, {
|
|
72
|
-
key: "
|
|
72
|
+
key: "8dd96991bc74e2157dc256f21eb4953eaeffdd46"
|
|
73
73
|
}, o("div", {
|
|
74
|
-
key: "
|
|
74
|
+
key: "a5b315fd3e6dd999cd704b3fd2c9de5ffb139033",
|
|
75
75
|
class: "container",
|
|
76
76
|
role: this.clickable ? "button" : void 0,
|
|
77
77
|
tabIndex: this.clickable ? 0 : void 0
|
|
78
78
|
}, o("slot", {
|
|
79
|
-
key: "
|
|
79
|
+
key: "4897bfe06a95bf14eddf2bb964bf4a27ed96798a"
|
|
80
80
|
})));
|
|
81
81
|
}
|
|
82
82
|
get hostElement() {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { r as t, c as a, h as e, F as i, g as r } from "./index-Cqkz7Bnm.js";
|
|
2
2
|
|
|
3
|
-
import { c as o, l as n, o as
|
|
3
|
+
import { c as o, l as n, o as s, i as c } from "./index-DJw6Feh0.js";
|
|
4
4
|
|
|
5
5
|
import { m as l } from "./mirror-emit-DUjY_ucm.js";
|
|
6
6
|
|
|
7
|
-
import { h
|
|
7
|
+
import { h, f as d } from "./component-DaQM9u3s.js";
|
|
8
8
|
|
|
9
|
-
const
|
|
9
|
+
const b = class {
|
|
10
10
|
constructor(e) {
|
|
11
11
|
t(this, e), this.change = a(this, "change", 7), this.settled = a(this, "settled", 7),
|
|
12
12
|
this.tctChange = a(this, "tctChange", 7),
|
|
@@ -166,7 +166,7 @@ const d = class {
|
|
|
166
166
|
this.narrowViewportMedia && this.narrowViewportListener && this.narrowViewportMedia.removeEventListener("change", this.narrowViewportListener);
|
|
167
167
|
}
|
|
168
168
|
componentWillLoad() {
|
|
169
|
-
|
|
169
|
+
h(this.hostElement, [ "q2-tab-pane", "tecton-tab-pane" ]) || d(this.hostElement, [ "q2-tab-pane", "tecton-tab-pane" ]);
|
|
170
170
|
const t = new MutationObserver((() => this.updateTabs()));
|
|
171
171
|
t.observe(this.hostElement, {
|
|
172
172
|
childList: !0,
|
|
@@ -178,7 +178,7 @@ const d = class {
|
|
|
178
178
|
componentDidLoad() {
|
|
179
179
|
var t;
|
|
180
180
|
null === (t = this.resizeObserver) || void 0 === t || t.observe(this.listElement),
|
|
181
|
-
this.checkScrollState(),
|
|
181
|
+
this.checkScrollState(), s(this.hostElement), this.scheduledAfterRender.push((() => this.determineTabMove())),
|
|
182
182
|
this.narrowViewportMedia && (this.narrowViewportListener = t => {
|
|
183
183
|
this.isNarrowViewport = t.matches;
|
|
184
184
|
}, this.narrowViewportMedia.addEventListener("change", this.narrowViewportListener));
|
|
@@ -195,7 +195,7 @@ const d = class {
|
|
|
195
195
|
t.target !== this.hostElement || this.hostElement.onchange || (this.value = t.detail.value);
|
|
196
196
|
}
|
|
197
197
|
onFocus(t) {
|
|
198
|
-
if (!
|
|
198
|
+
if (!c(t, this.hostElement)) return;
|
|
199
199
|
const a = this.tabs.findIndex((t => t.value === this.selectedTabValue));
|
|
200
200
|
this.moveToTab(a, !0);
|
|
201
201
|
}
|
|
@@ -279,50 +279,50 @@ const d = class {
|
|
|
279
279
|
render() {
|
|
280
280
|
const t = "vertical" === this.computedOrientation;
|
|
281
281
|
return e(i, {
|
|
282
|
-
key: "
|
|
282
|
+
key: "684e234955e0d7f9b929a1e80e323ba62db4d066"
|
|
283
283
|
}, e("div", {
|
|
284
|
-
key: "
|
|
284
|
+
key: "92ea060ada2cc956817f4eb9cb97d0f110c5032a",
|
|
285
285
|
class: "tab-container"
|
|
286
286
|
}, this.scrollEnabled && e(i, {
|
|
287
|
-
key: "
|
|
287
|
+
key: "b43a4ff0510de5adfefde8f5184ab5f3f1d95563"
|
|
288
288
|
}, e("div", {
|
|
289
|
-
key: "
|
|
289
|
+
key: "3daed974f567574741534b4c39c6fa0ddb1c7f58",
|
|
290
290
|
class: "gradient-left",
|
|
291
291
|
hidden: !this.showScrollBack
|
|
292
292
|
}), e("div", {
|
|
293
|
-
key: "
|
|
293
|
+
key: "36266d6970a75fff03e538c12951a530220b2756",
|
|
294
294
|
class: "gradient-right",
|
|
295
295
|
hidden: !this.showScrollForward
|
|
296
296
|
}), e("q2-btn", {
|
|
297
|
-
key: "
|
|
297
|
+
key: "7c5b35fee0bbd981520f55fe99fc53143be7376c",
|
|
298
298
|
class: "btn-left",
|
|
299
299
|
hidden: !this.showScrollBack,
|
|
300
300
|
onTctClick: () => this.onScrollBtnClick("back")
|
|
301
301
|
}, e("q2-icon", {
|
|
302
|
-
key: "
|
|
302
|
+
key: "0759d5d77d603074acc21bd9a29e4db50f0474a2",
|
|
303
303
|
type: t ? "chevron-up" : "chevron-left",
|
|
304
304
|
label: t ? "scroll up" : "scroll left"
|
|
305
305
|
})), e("q2-btn", {
|
|
306
|
-
key: "
|
|
306
|
+
key: "419c43832886d9aae9b63eba545ffb8122f862b6",
|
|
307
307
|
class: "btn-right",
|
|
308
308
|
hidden: !this.showScrollForward,
|
|
309
309
|
onTctClick: () => this.onScrollBtnClick("forward")
|
|
310
310
|
}, e("q2-icon", {
|
|
311
|
-
key: "
|
|
311
|
+
key: "4148a86411c5859b0253da31439ff90ad78490b3",
|
|
312
312
|
type: t ? "chevron-down" : "chevron-right",
|
|
313
313
|
label: t ? "scroll down" : "scroll right"
|
|
314
314
|
}))), e("ul", {
|
|
315
|
-
key: "
|
|
315
|
+
key: "fdd72d9ba1d932497b5d7cd9e14d926fe1e92f72",
|
|
316
316
|
onScroll: this.checkScrollState,
|
|
317
317
|
ref: t => this.listElement = t,
|
|
318
318
|
class: this.noPrint ? "no-print" : null,
|
|
319
319
|
role: "tablist",
|
|
320
320
|
"aria-orientation": this.computedOrientation
|
|
321
321
|
}, this.tabs.map(((t, a) => this.renderTab(t, a))))), e("div", {
|
|
322
|
-
key: "
|
|
322
|
+
key: "e9d90030fcc43f17a43aa2e4a306e3489b4c4110",
|
|
323
323
|
class: "tab-content"
|
|
324
324
|
}, e("slot", {
|
|
325
|
-
key: "
|
|
325
|
+
key: "130ddf5f14ec801e09471b9cf4ab080e4bf5fc27",
|
|
326
326
|
onSlotchange: () => this.onSlotChange()
|
|
327
327
|
})));
|
|
328
328
|
}
|
|
@@ -341,6 +341,6 @@ const d = class {
|
|
|
341
341
|
}
|
|
342
342
|
};
|
|
343
343
|
|
|
344
|
-
|
|
344
|
+
b.style = '*{box-sizing:border-box}*:active{outline:none}*:focus-visible{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}@container style(--t-prefers-motion: "reduced"){*,*::before,*::after{animation-duration:0.01ms !important;transition-duration:0.01ms !important;animation-delay:0ms !important;transition-delay:0ms !important}}@container (not style(--t-prefers-motion: "normal")) and (not style(--t-prefers-motion: "reduced")){@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:0.01ms !important;transition-duration:0.01ms !important;animation-delay:0ms !important;transition-delay:0ms !important}}}:host{display:block;position:relative}button{cursor:pointer;margin:0}.tab-container{position:relative}ul{--comp-container-padding:var(--tct-scale-1, var(--app-scale-1x, 5px)) var(--tct-scale-1, var(--app-scale-1x, 5px)) 0;padding:var(--tct-tab-container-padding, var(--t-tab-container-padding, var(--comp-container-padding)));margin:var(--tct-tab-container-margin, var(--t-tab-container-margin, 0));display:flex;gap:var(--tct-tab-gap, var(--t-tab-gap, var(--tct-scale-1, var(--app-scale-1x, 5px))));list-style:none;border-bottom-width:var(--tct-tab-container-border-width, 1px);border-bottom-style:var(--tct-tab-container-border-style, solid);border-bottom-color:var(--tct-tab-container-border-color, var(--t-tab-container-border-color, var(--tct-gray-11, var(--t-gray-11, var(--tct-gray-l1, var(--app-gray-l1, #cccccc))))));overflow-x:auto;align-items:center;scrollbar-width:none;scrollbar-color:transparent}ul::-webkit-scrollbar{width:0;height:0}ul::-webkit-scrollbar-thumb{background:transparent}ul::-webkit-scrollbar-track{background:transparent}@media print{ul.no-print{display:none}}li{flex:0 0 auto}li button{background:var(--tct-tab-inactive-background, var(--tct-tab-inactive-bg-color, var(--t-tab-inactive-bg-color, transparent)));border-width:var(--tct-tab-inactive-border-width, var(--t-tab-inactive-border-width, 0 0 3px 0));border-color:var(--tct-tab-inactive-border-color, var(--t-tab-inactive-border-color, transparent));border-style:var(--tct-tab-inactive-border-style, var(--t-tab-inactive-border-style, solid));border-radius:var(--tct-tab-border-radius, var(--t-tab-border-radius, 0));width:var(--tct-tab-width, var(--t-tab-width, 100%));text-align:var(--tct-tab-text-align, var(--t-tab-text-align, center));text-decoration:var(--tct-tab-text-decoration, var(--t-tab-text-decoration, none));padding:var(--tct-tab-padding, var(--t-tab-padding, var(--tct-scale-2, var(--app-scale-2x, 10px))));color:var(--tct-tab-inactive-color, var(--t-tab-inactive-color, inherit));font-size:var(--tct-tab-font-size, var(--t-tab-font-size, var(--const-px-17, 17px)));line-height:var(--tct-tab-line-height, var(--const-px-20, 20px));display:block;transition:background var(--t-tween-ease-inout) var(--t-tween-time-in-xxs), color var(--t-tween-ease-inout) var(--t-tween-time-in-xxs), border-color var(--t-tween-ease-inout) var(--t-tween-time-in-xxs)}:host([type=section]) li button{--comp-tab-section-padding:var(--tct-scale-2, var(--app-scale-2x, 10px)) var(--tct-scale-1, var(--app-scale-1x, 5px));font-size:var(--tct-tab-section-font-size, var(--const-px-14, 14px));line-height:var(--tct-tab-section-line-height, var(--const-px-18, 18px));padding:var(--tct-tab-section-padding, var(--t-tab-section-padding, var(--comp-tab-section-padding)))}li button:focus-visible{box-shadow:var(--tct-tab-focus-visible-box-shadow, var(--const-double-focus-ring))}li button:hover{color:var(--tct-tab-hover-color, var(--t-tab-hover-color, var(--tct-tab-active-color, var(--t-tab-active-color, #2e2e2e))));background:var(--tct-tab-hover-background, var(--tct-tab-hover-bg-color, var(--t-tab-hover-bg-color, inherit)));width:var(--tct-tab-hover-width, var(--t-tab-hover-width, 100%))}li button[aria-selected=true]{color:var(--tct-tab-active-color, var(--t-tab-active-color, #2e2e2e));border-color:var(--tct-tab-active-border-color, var(--t-tab-active-border-color, currentcolor));border-style:var(--tct-tab-active-border-style, var(--t-tab-active-border-style, solid));width:var(--tct-tab-active-width, var(--t-tab-active-width, 100%));background:var(--tct-tab-active-background, var(--tct-tab-active-bg-color, var(--t-tab-active-bg-color, inherit)));text-decoration:var(--tct-tab-active-text-decoration, none)}:host([color=alt]) li button{color:var(--tct-tab-alt-inactive-color, var(--t-tab-alt-inactive-color, inherit))}:host([color=alt]) li button:hover,:host([color=alt]) li button[aria-selected=true]{color:var(--tct-tab-alt-active-color, var(--t-tab-alt-active-color, inherit))}@media screen and (max-width: 767px){li button{--comp-tab-padding:var(--tct-scale-2, var(--app-scale-2x, 10px)) var(--tct-scale-1, var(--app-scale-1x, 5px));font-size:inherit;padding:var(--tct-tab-padding, var(--t-tab-padding, var(--comp-tab-padding)))}}.tab-content{--comp-tab-content-padding:var(--tct-scale-2, var(--app-scale-2x, 10px)) 0;padding:var(--tct-tab-container-content-padding, var(--tct-tab-content-padding, var(--t-tab-content-padding, var(--comp-tab-content-padding))));background:var(--tct-tab-container-content-background, none)}.tab-content:focus{outline:none;box-shadow:none}.gradient-left,.gradient-right{z-index:1;position:absolute;top:0;height:100%;width:44px}.gradient-left{background-image:linear-gradient(to left, var(--t-base-a0), var(--t-base-a2) 10%, var(--t-base) 100%);left:0}.gradient-right{background-image:linear-gradient(to right, var(--t-base-a0), var(--t-base-a2) 10%, var(--t-base) 100%);right:0}.btn-left,.btn-right{--tct-icon-size:18px;--tct-btn-icon-hover-background:transparent;--tct-btn-icon-width:22px;--tct-icon-stroke-primary:var(--tct-stepper-scroll-arrow-color, var(--t-stepper-scroll-arrow-color, var(--t-text, #4d4d4d)));position:absolute;top:calc(50% - 22px);z-index:2}.btn-left q2-icon,.btn-right q2-icon{--tct-icon-stroke-width:3}.btn-left{left:0}.btn-right{right:0}.tab-pane-badge{display:flex;justify-content:space-between;align-items:center}.tab-pane-badge q2-badge{margin-left:5px;margin-right:5px}@media screen and (min-width: 768px){:host([orientation=vertical]){display:flex;flex-direction:row;align-items:stretch}:host([orientation=vertical]) .tab-container{width:var(--tct-tab-container-width, 200px);flex-shrink:0}:host([orientation=vertical]) .tab-content{--comp-vertical-tab-content-padding:0 var(--tct-scale-2, var(--app-scale-2x, 10px));flex:1 1 auto;min-width:0;padding:var(--tct-vertical-tab-container-content-padding, var(--tct-vertical-tab-content-padding, var(--t-vertical-tab-content-padding, var(--comp-vertical-tab-content-padding))))}:host([orientation=vertical]) ul{padding:var(--tct-vertical-tab-container-padding, 0);flex-direction:column;align-items:stretch;overflow-y:auto;overflow-x:visible;border-bottom-width:0;border-right-width:var(--tct-tab-container-border-width, 1px);border-right-style:var(--tct-tab-container-border-style, solid);border-right-color:var(--tct-tab-container-border-color, var(--t-tab-container-border-color, var(--tct-gray-11, var(--t-gray-11, var(--tct-gray-l1, var(--app-gray-l1, #cccccc))))));height:100%}:host([orientation=vertical]) li{border-left-width:var(--tct-tab-active-indicator-width, 3px);border-left-style:solid;border-left-color:transparent;transition:border-color var(--t-tween-ease-inout) var(--t-tween-time-in-xxs)}:host([orientation=vertical]) li:has(button[aria-selected=true]){color:var(--tct-tab-active-color, var(--t-tab-active-color, #2e2e2e));border-left-color:var(--tct-tab-active-border-color, var(--t-tab-active-border-color, currentcolor))}:host([orientation=vertical]) li button{border-width:0;text-align:start;border-radius:var(--tct-vertical-tab-border-radius, 0)}:host([orientation=vertical]) .tab-pane-badge{justify-content:flex-start;gap:var(--tct-tab-badge-gap, var(--tct-scale-1, var(--app-scale-1x, 5px)))}:host([orientation=vertical]) .gradient-left{right:0;width:100%;height:44px;background-image:linear-gradient(to top, var(--t-base-a0), var(--t-base-a2) 10%, var(--t-base) 100%)}:host([orientation=vertical]) .gradient-right{bottom:0;top:auto;left:0;width:100%;height:44px;background-image:linear-gradient(to bottom, var(--t-base-a0), var(--t-base-a2) 10%, var(--t-base) 100%)}:host([orientation=vertical]) .btn-left{top:0;left:50%;transform:translateX(-50%)}:host([orientation=vertical]) .btn-right{bottom:0;top:auto;left:50%;right:auto;transform:translateX(-50%)}:host([orientation=vertical][color=alt]) li:has(button[aria-selected=true]){color:var(--tct-tab-alt-active-color, var(--t-tab-alt-active-color, inherit))}}';
|
|
345
345
|
|
|
346
|
-
export {
|
|
346
|
+
export { b as q2_tab_container }
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { r as
|
|
1
|
+
import { r as t, c as e, h as n, g as i } from "./index-Cqkz7Bnm.js";
|
|
2
2
|
|
|
3
3
|
import { b as o } from "./component-DaQM9u3s.js";
|
|
4
4
|
|
|
5
5
|
const a = class {
|
|
6
6
|
constructor(n) {
|
|
7
|
-
|
|
7
|
+
t(this, n), this.badge = e(this, "badge", 7);
|
|
8
8
|
}
|
|
9
9
|
// #endregion
|
|
10
10
|
// #region Component Lifecycle Events
|
|
@@ -20,7 +20,7 @@ const a = class {
|
|
|
20
20
|
// #region Render Methods
|
|
21
21
|
render() {
|
|
22
22
|
return n("div", {
|
|
23
|
-
key: "
|
|
23
|
+
key: "2ff20db182ab3bf252df52bbcb7be2b39893d17c",
|
|
24
24
|
id: `tab-pane-${this.guid}-${this.index}`,
|
|
25
25
|
class: "tab-pane" + (this.selected ? "" : " hidden"),
|
|
26
26
|
role: "tabpanel",
|
|
@@ -28,7 +28,7 @@ const a = class {
|
|
|
28
28
|
"aria-hidden": `${!this.selected}`,
|
|
29
29
|
"aria-labelledby": `tab-${this.guid}-${this.index}`
|
|
30
30
|
}, n("slot", {
|
|
31
|
-
key: "
|
|
31
|
+
key: "871922c3065609934e6a6a8c62000c84551a612a"
|
|
32
32
|
}));
|
|
33
33
|
}
|
|
34
34
|
get hostElement() {
|