q2-tecton-elements 1.71.1 → 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 +13 -4
- package/dist/cjs/q2-section.cjs.entry.js +7 -7
- package/dist/cjs/q2-select.cjs.entry.js +39 -20
- 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-search/q2-search.js +11 -2
- 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 +41 -19
- 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 +17 -12
- package/dist/components/q2-section.js +33 -33
- package/dist/components/q2-select2.js +49 -42
- 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 +13 -4
- package/dist/esm/q2-section.entry.js +7 -7
- package/dist/esm/q2-select.entry.js +39 -20
- 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 +23 -18
- package/dist/q2-tecton-elements/q2-section.entry.js +33 -33
- package/dist/q2-tecton-elements/q2-select.entry.js +30 -23
- 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-search/q2-search.d.ts +1 -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
|
@@ -2,7 +2,7 @@ import { proxyCustomElement as t, HTMLElement as e, createEvent as i, h as s, Ho
|
|
|
2
2
|
|
|
3
3
|
import { b as r } from "./component.js";
|
|
4
4
|
|
|
5
|
-
import { c, n as
|
|
5
|
+
import { c as d, n as c, l as h } from "./index2.js";
|
|
6
6
|
|
|
7
7
|
import { m as l } from "./mirror-emit.js";
|
|
8
8
|
|
|
@@ -18,7 +18,7 @@ const p = t(class extends e {
|
|
|
18
18
|
// #endregion
|
|
19
19
|
// #region Component Lifecycle Events
|
|
20
20
|
connectedCallback() {
|
|
21
|
-
this.hostElement.id || (this.hostElement.id = "step-" +
|
|
21
|
+
this.hostElement.id || (this.hostElement.id = "step-" + d());
|
|
22
22
|
}
|
|
23
23
|
disconnectedCallback() {
|
|
24
24
|
var t;
|
|
@@ -51,7 +51,7 @@ const p = t(class extends e {
|
|
|
51
51
|
});
|
|
52
52
|
}
|
|
53
53
|
checkForActiveChildren() {
|
|
54
|
-
this.showWithChildren &&
|
|
54
|
+
this.showWithChildren && c((() => {
|
|
55
55
|
setTimeout((() => {
|
|
56
56
|
this.isChildActive = !!this.hostElement.querySelector("[slot='children'] > q2-stepper-pane[is-active]");
|
|
57
57
|
}));
|
|
@@ -75,25 +75,29 @@ const p = t(class extends e {
|
|
|
75
75
|
}, s(a, {
|
|
76
76
|
key: "0241a9ad68973eea81c961070d6171dab3241f79"
|
|
77
77
|
}, s("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
|
}, s("slot", {
|
|
83
|
-
key: "
|
|
84
|
+
key: "0f8d339f894bdaa55bd5bdf94b1220da7a083dde"
|
|
84
85
|
})), s("div", {
|
|
85
|
-
key: "
|
|
86
|
+
key: "51e3934ad791e45486360ab8c6509b68e3a15d9d",
|
|
86
87
|
hidden: !0
|
|
88
|
+
}, s("span", {
|
|
89
|
+
key: "96fe08c826d87f86559fe2dbb586914b4065eb40",
|
|
90
|
+
id: "pane-label"
|
|
87
91
|
}, s("slot", {
|
|
88
|
-
key: "
|
|
92
|
+
key: "b4cab1594ae047f032fbaa67f75167e31cc4cdf7",
|
|
89
93
|
name: "label",
|
|
90
94
|
onSlotchange: () => this.contentChange.emit()
|
|
91
|
-
}), s("slot", {
|
|
92
|
-
key: "
|
|
95
|
+
}, t && h(t))), s("slot", {
|
|
96
|
+
key: "473cf6b9bc3ef5995d11e46502db1321d59baa5e",
|
|
93
97
|
name: "description",
|
|
94
98
|
onSlotchange: () => this.contentChange.emit()
|
|
95
99
|
})), s("slot", {
|
|
96
|
-
key: "
|
|
100
|
+
key: "76cb24680ed1ec8a49956f888accf3fd07da7fa0",
|
|
97
101
|
name: "children"
|
|
98
102
|
})));
|
|
99
103
|
}
|
|
@@ -301,15 +301,15 @@ const v = t(class extends e {
|
|
|
301
301
|
}
|
|
302
302
|
render() {
|
|
303
303
|
return r(i, {
|
|
304
|
-
key: "
|
|
304
|
+
key: "9d40414e7b510493b0236568c4d6231eeacdbd80"
|
|
305
305
|
}, r("ul", {
|
|
306
|
-
key: "
|
|
306
|
+
key: "b3a444833439d59be874a2bf04833f8df0ff107f",
|
|
307
307
|
role: "tablist"
|
|
308
308
|
}, this.structuredPanes.map(((t, e) => this.renderStepBtn(t, e)))), r("div", {
|
|
309
|
-
key: "
|
|
309
|
+
key: "34f3841d0eb0c5fe96670ac3d5e87244682ace74",
|
|
310
310
|
role: "list"
|
|
311
311
|
}, r("slot", {
|
|
312
|
-
key: "
|
|
312
|
+
key: "e224e413162cb28eab4ec0e8b51367ed3b83fa0b"
|
|
313
313
|
})));
|
|
314
314
|
}
|
|
315
315
|
get hostElement() {
|
|
@@ -69,14 +69,14 @@ const n = r(class extends a {
|
|
|
69
69
|
// #region Render Methods
|
|
70
70
|
render() {
|
|
71
71
|
return t(o, {
|
|
72
|
-
key: "
|
|
72
|
+
key: "8dd96991bc74e2157dc256f21eb4953eaeffdd46"
|
|
73
73
|
}, t("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
|
}, t("slot", {
|
|
79
|
-
key: "
|
|
79
|
+
key: "4897bfe06a95bf14eddf2bb964bf4a27ed96798a"
|
|
80
80
|
})));
|
|
81
81
|
}
|
|
82
82
|
get hostElement() {
|
|
@@ -2,9 +2,9 @@ import { proxyCustomElement as t, HTMLElement as a, createEvent as e, h as i, Fr
|
|
|
2
2
|
|
|
3
3
|
import { c as n, l as s, o as c, i as l } from "./index2.js";
|
|
4
4
|
|
|
5
|
-
import { m as
|
|
5
|
+
import { m as d } from "./mirror-emit.js";
|
|
6
6
|
|
|
7
|
-
import { h, f as
|
|
7
|
+
import { h as b, f as h } from "./component.js";
|
|
8
8
|
|
|
9
9
|
import { d as v } from "./q2-badge2.js";
|
|
10
10
|
|
|
@@ -14,7 +14,7 @@ import { d as g } from "./q2-icon2.js";
|
|
|
14
14
|
|
|
15
15
|
import { d as u } from "./q2-loading2.js";
|
|
16
16
|
|
|
17
|
-
const
|
|
17
|
+
const f = t(class extends a {
|
|
18
18
|
constructor(t) {
|
|
19
19
|
super(), !1 !== t && this.__registerHost(), this.__attachShadow(), this.change = e(this, "change", 7),
|
|
20
20
|
this.settled = e(this, "settled", 7), this.tctChange = e(this, "tctChange", 7),
|
|
@@ -103,7 +103,7 @@ const m = t(class extends a {
|
|
|
103
103
|
this.checkScrollState();
|
|
104
104
|
}, this.onTabClick = t => {
|
|
105
105
|
const a = t.target.closest('button[role="tab"]').dataset.value;
|
|
106
|
-
this.value === a ||
|
|
106
|
+
this.value === a || d(this, [ "change", "tctChange" ], {
|
|
107
107
|
value: a
|
|
108
108
|
});
|
|
109
109
|
}, this.onTabKeyDown = t => {
|
|
@@ -139,7 +139,7 @@ const m = t(class extends a {
|
|
|
139
139
|
|
|
140
140
|
case "Space":
|
|
141
141
|
case "Enter":
|
|
142
|
-
t.preventDefault(),
|
|
142
|
+
t.preventDefault(), d(this, [ "change", "tctChange" ], {
|
|
143
143
|
value: a
|
|
144
144
|
});
|
|
145
145
|
}
|
|
@@ -174,7 +174,7 @@ const m = t(class extends a {
|
|
|
174
174
|
this.narrowViewportMedia && this.narrowViewportListener && this.narrowViewportMedia.removeEventListener("change", this.narrowViewportListener);
|
|
175
175
|
}
|
|
176
176
|
componentWillLoad() {
|
|
177
|
-
|
|
177
|
+
b(this.hostElement, [ "q2-tab-pane", "tecton-tab-pane" ]) || h(this.hostElement, [ "q2-tab-pane", "tecton-tab-pane" ]);
|
|
178
178
|
const t = new MutationObserver((() => this.updateTabs()));
|
|
179
179
|
t.observe(this.hostElement, {
|
|
180
180
|
childList: !0,
|
|
@@ -287,50 +287,50 @@ const m = t(class extends a {
|
|
|
287
287
|
render() {
|
|
288
288
|
const t = "vertical" === this.computedOrientation;
|
|
289
289
|
return i(r, {
|
|
290
|
-
key: "
|
|
290
|
+
key: "684e234955e0d7f9b929a1e80e323ba62db4d066"
|
|
291
291
|
}, i("div", {
|
|
292
|
-
key: "
|
|
292
|
+
key: "92ea060ada2cc956817f4eb9cb97d0f110c5032a",
|
|
293
293
|
class: "tab-container"
|
|
294
294
|
}, this.scrollEnabled && i(r, {
|
|
295
|
-
key: "
|
|
295
|
+
key: "b43a4ff0510de5adfefde8f5184ab5f3f1d95563"
|
|
296
296
|
}, i("div", {
|
|
297
|
-
key: "
|
|
297
|
+
key: "3daed974f567574741534b4c39c6fa0ddb1c7f58",
|
|
298
298
|
class: "gradient-left",
|
|
299
299
|
hidden: !this.showScrollBack
|
|
300
300
|
}), i("div", {
|
|
301
|
-
key: "
|
|
301
|
+
key: "36266d6970a75fff03e538c12951a530220b2756",
|
|
302
302
|
class: "gradient-right",
|
|
303
303
|
hidden: !this.showScrollForward
|
|
304
304
|
}), i("q2-btn", {
|
|
305
|
-
key: "
|
|
305
|
+
key: "7c5b35fee0bbd981520f55fe99fc53143be7376c",
|
|
306
306
|
class: "btn-left",
|
|
307
307
|
hidden: !this.showScrollBack,
|
|
308
308
|
onTctClick: () => this.onScrollBtnClick("back")
|
|
309
309
|
}, i("q2-icon", {
|
|
310
|
-
key: "
|
|
310
|
+
key: "0759d5d77d603074acc21bd9a29e4db50f0474a2",
|
|
311
311
|
type: t ? "chevron-up" : "chevron-left",
|
|
312
312
|
label: t ? "scroll up" : "scroll left"
|
|
313
313
|
})), i("q2-btn", {
|
|
314
|
-
key: "
|
|
314
|
+
key: "419c43832886d9aae9b63eba545ffb8122f862b6",
|
|
315
315
|
class: "btn-right",
|
|
316
316
|
hidden: !this.showScrollForward,
|
|
317
317
|
onTctClick: () => this.onScrollBtnClick("forward")
|
|
318
318
|
}, i("q2-icon", {
|
|
319
|
-
key: "
|
|
319
|
+
key: "4148a86411c5859b0253da31439ff90ad78490b3",
|
|
320
320
|
type: t ? "chevron-down" : "chevron-right",
|
|
321
321
|
label: t ? "scroll down" : "scroll right"
|
|
322
322
|
}))), i("ul", {
|
|
323
|
-
key: "
|
|
323
|
+
key: "fdd72d9ba1d932497b5d7cd9e14d926fe1e92f72",
|
|
324
324
|
onScroll: this.checkScrollState,
|
|
325
325
|
ref: t => this.listElement = t,
|
|
326
326
|
class: this.noPrint ? "no-print" : null,
|
|
327
327
|
role: "tablist",
|
|
328
328
|
"aria-orientation": this.computedOrientation
|
|
329
329
|
}, this.tabs.map(((t, a) => this.renderTab(t, a))))), i("div", {
|
|
330
|
-
key: "
|
|
330
|
+
key: "e9d90030fcc43f17a43aa2e4a306e3489b4c4110",
|
|
331
331
|
class: "tab-content"
|
|
332
332
|
}, i("slot", {
|
|
333
|
-
key: "
|
|
333
|
+
key: "130ddf5f14ec801e09471b9cf4ab080e4bf5fc27",
|
|
334
334
|
onSlotchange: () => this.onSlotChange()
|
|
335
335
|
})));
|
|
336
336
|
}
|
|
@@ -374,12 +374,12 @@ const m = t(class extends a {
|
|
|
374
374
|
} ]
|
|
375
375
|
} ]);
|
|
376
376
|
|
|
377
|
-
const
|
|
377
|
+
const m = f, defineCustomElement = function() {
|
|
378
378
|
if ("undefined" == typeof customElements) return;
|
|
379
379
|
[ "q2-tab-container", "q2-badge", "q2-btn", "q2-icon", "q2-loading" ].forEach((t => {
|
|
380
380
|
switch (t) {
|
|
381
381
|
case "q2-tab-container":
|
|
382
|
-
customElements.get(o(t)) || customElements.define(o(t),
|
|
382
|
+
customElements.get(o(t)) || customElements.define(o(t), f);
|
|
383
383
|
break;
|
|
384
384
|
|
|
385
385
|
case "q2-badge":
|
|
@@ -400,4 +400,4 @@ const f = m, defineCustomElement = function() {
|
|
|
400
400
|
}));
|
|
401
401
|
};
|
|
402
402
|
|
|
403
|
-
export {
|
|
403
|
+
export { m as Q2TabContainer, defineCustomElement }
|
|
@@ -20,7 +20,7 @@ const r = e(class extends t {
|
|
|
20
20
|
// #region Render Methods
|
|
21
21
|
render() {
|
|
22
22
|
return i("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 r = e(class extends t {
|
|
|
28
28
|
"aria-hidden": "" + !this.selected,
|
|
29
29
|
"aria-labelledby": `tab-${this.guid}-${this.index}`
|
|
30
30
|
}, i("slot", {
|
|
31
|
-
key: "
|
|
31
|
+
key: "871922c3065609934e6a6a8c62000c84551a612a"
|
|
32
32
|
}));
|
|
33
33
|
}
|
|
34
34
|
get hostElement() {
|
|
@@ -151,9 +151,9 @@ const f = t(class extends o {
|
|
|
151
151
|
this.optionCount && o.push("has-options");
|
|
152
152
|
const e = this.optionCount > 0;
|
|
153
153
|
return r(i, {
|
|
154
|
-
key: "
|
|
154
|
+
key: "da6dc23ff4f250b18242a49db02eccc16210b043"
|
|
155
155
|
}, r("click-elsewhere", {
|
|
156
|
-
key: "
|
|
156
|
+
key: "ee1da442ffd5aa53e55ae95f95b3ac51e2f5c71e",
|
|
157
157
|
onChange: this.onClickElsewhere
|
|
158
158
|
}, e ? r(a, null, r("button", {
|
|
159
159
|
class: "tag-wrapper",
|
|
@@ -180,7 +180,7 @@ const f = t(class extends o {
|
|
|
180
180
|
}, r("slot", {
|
|
181
181
|
name: "decorator"
|
|
182
182
|
}), l(this.label))), e && r("q2-popover", {
|
|
183
|
-
key: "
|
|
183
|
+
key: "578989b60b19f6f5e01c1cbc49a83e87fc74c5a9",
|
|
184
184
|
ref: t => this.popoverElement = t,
|
|
185
185
|
controlElement: this.dropdownBtn,
|
|
186
186
|
open: this.open,
|
|
@@ -189,7 +189,7 @@ const f = t(class extends o {
|
|
|
189
189
|
direction: this.popoverDirection,
|
|
190
190
|
align: this.popoverAlignment
|
|
191
191
|
}, r("q2-option-list", {
|
|
192
|
-
key: "
|
|
192
|
+
key: "d21abcd1fe11241e14b4f411d9559c12c139c18a",
|
|
193
193
|
id: "option-list",
|
|
194
194
|
ref: t => this.optionList = t,
|
|
195
195
|
onChange: this.handleChange,
|
|
@@ -198,7 +198,7 @@ const f = t(class extends o {
|
|
|
198
198
|
label: l("tecton.element.optionList.label", [ this.optionListLabel ]),
|
|
199
199
|
"no-select": !0
|
|
200
200
|
}, r("slot", {
|
|
201
|
-
key: "
|
|
201
|
+
key: "d46ec7dad47e40cec883205d6fb2424abcdd1038"
|
|
202
202
|
})))));
|
|
203
203
|
}
|
|
204
204
|
get hostElement() {
|
|
@@ -15,7 +15,8 @@ const a = e(class extends t {
|
|
|
15
15
|
}
|
|
16
16
|
componentWillRender() {
|
|
17
17
|
const e = this.hostElement.shadowRoot.querySelector(".loading-wrapper");
|
|
18
|
-
/* istanbul ignore next */ e && (e.style.minHeight = this.minHeight,
|
|
18
|
+
/* istanbul ignore next */ e && (e.querySelector(".q2-row") && (e.style.minHeight = this.minHeight),
|
|
19
|
+
e.hidden = !this.selected);
|
|
19
20
|
}
|
|
20
21
|
componentDidRender() {
|
|
21
22
|
const e = this.hostElement.shadowRoot.querySelector("form");
|
|
@@ -41,7 +42,7 @@ const a = e(class extends t {
|
|
|
41
42
|
// #region Render Methods
|
|
42
43
|
render() {
|
|
43
44
|
return n("div", {
|
|
44
|
-
key: "
|
|
45
|
+
key: "6c0524ab1981900cc7a37803fd9426c6397049c4",
|
|
45
46
|
id: `tab-pane-${this.guid}-${this.index}`,
|
|
46
47
|
class: "tab-pane" + (this.selected ? "" : " hidden"),
|
|
47
48
|
role: "tabpanel",
|
|
@@ -49,12 +50,12 @@ const a = e(class extends t {
|
|
|
49
50
|
"aria-hidden": "" + !this.selected,
|
|
50
51
|
"aria-labelledby": `tab-${this.guid}-${this.index}`
|
|
51
52
|
}, this.selected && void 0 !== this.provided && !this.provided && n("div", {
|
|
52
|
-
key: "
|
|
53
|
+
key: "10cc2712e1ccefa6a9bb3b657830636da4d81980"
|
|
53
54
|
}, n("slot", {
|
|
54
|
-
key: "
|
|
55
|
+
key: "cde7112d4035c6f118e9c50b0fe5d9d91c70ee7d",
|
|
55
56
|
name: "loading-wrapper"
|
|
56
57
|
}), n("iframe", {
|
|
57
|
-
key: "
|
|
58
|
+
key: "851972991feb3b8f6c7f569e92ff2e624d94e221",
|
|
58
59
|
hidden: !0,
|
|
59
60
|
name: this.moduleId,
|
|
60
61
|
scrolling: "no",
|
|
@@ -77,11 +78,11 @@ const a = e(class extends t {
|
|
|
77
78
|
value: e.value,
|
|
78
79
|
name: e.key
|
|
79
80
|
})))) : ""), n("div", {
|
|
80
|
-
key: "
|
|
81
|
+
key: "741c6f2c89dc15493f165428929f589425aa4d75",
|
|
81
82
|
class: "slot-wrapper",
|
|
82
83
|
hidden: this.selected && void 0 !== this.provided && !this.provided
|
|
83
84
|
}, n("slot", {
|
|
84
|
-
key: "
|
|
85
|
+
key: "17100ec2dc0ea2d1e27628d36e9e6e1139f293a9"
|
|
85
86
|
})));
|
|
86
87
|
}
|
|
87
88
|
get hostElement() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, g as getElement, h, H as Host } from './index-Cqkz7Bnm.js';
|
|
2
2
|
import { m as mirrorEmit } from './mirror-emit-DUjY_ucm.js';
|
|
3
3
|
import { b as hasValidAncestor } from './component-DaQM9u3s.js';
|
|
4
|
-
import { l as loc, n as nextPaint, o as overrideFocus, i as isEventFromElement, w as waitForNextPaint, v as isVisible, q as handleDeprecationWarning, x as isInFixedPositionContext, y as isInScrollableContainer, g as isMobile } from './index-
|
|
4
|
+
import { l as loc, n as nextPaint, o as overrideFocus, i as isEventFromElement, w as waitForNextPaint, v as isVisible, q as handleDeprecationWarning, x as isInFixedPositionContext, y as isInScrollableContainer, g as isMobile } from './index-DJw6Feh0.js';
|
|
5
5
|
|
|
6
6
|
const ClickElsewhere = class {
|
|
7
7
|
constructor(hostRef) {
|
|
@@ -693,7 +693,7 @@ const Q2OptionList = class {
|
|
|
693
693
|
};
|
|
694
694
|
Q2OptionList.style = q2OptionListCss();
|
|
695
695
|
|
|
696
|
-
const q2PopoverCss = () => `*{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}}}.legacy.container{display:none}.legacy.show{display:block;z-index:var(--tct-popover-z-index, 50)}@keyframes popoverOpen{from{opacity:0;transform:scale(0.95)}to{opacity:1;transform:scale(1)}}@keyframes popoverClose{from{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(0.95)}}:popover-open,.show{position:var(--comp-pop-position, absolute);margin:0;padding:var(--tct-popover-padding, 0);overflow:auto;background:var(--tct-popover-background, var(--app-white, #ffffff));backdrop-filter:var(--tct-popover-backdrop-filter, none);color:var(--tct-popover-font-color, inherit);min-width:var(--tct-popover-min-width, 135px);width:var(--tct-popover-width, auto);margin-block:var(--tct-popover-margin-block, 0);box-shadow:var(--tct-popover-box-shadow, var(--app-shadow-3, 0px 0px 2px rgba(0, 0, 0, 0.12), 0px 2px 4px rgba(0, 0, 0, 0.14)));border-width:var(--tct-popover-border-width, 0);border-style:solid;border-color:var(--tct-popover-border-color, transparent);border-radius:var(--tct-popover-border-radius, 0);max-height:var(--comp-pop-max-height);left:var(--comp-pop-left);opacity:var(--comp-pop-opacity, 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}:popover-open.animating-open,.show.animating-open{animation-name:popoverOpen;animation-duration:var(--tct-popover-open-animation-duration, var(--t-tween-time-in-1, 150ms));animation-timing-function:var(--tct-popover-open-animation-timing-function, ease-out);animation-fill-mode:var(--tct-popover-open-animation-fill-mode, forwards)}:popover-open.animating-close,.show.animating-close{animation-name:popoverClose;animation-duration:var(--tct-popover-close-animation-duration, var(--t-tween-time-out-1, 100ms));animation-timing-function:var(--tct-popover-close-animation-timing-function, ease-in);animation-fill-mode:var(--tct-popover-close-animation-fill-mode, forwards)}:popover-open.block,.show.block{right:unset;width:var(--comp-pop-width);min-width:var(--tct-popover-min-width, unset)}:popover-open.left,.show.left{left:var(--comp-pop-left);right:unset}:popover-open.right,.show.right{right:var(--comp-pop-right);left:unset}:popover-open.down,.show.down{top:var(--tct-popover-top, var(--comp-pop-top));bottom:unset}:popover-open.up,.show.up{top:
|
|
696
|
+
const q2PopoverCss = () => `*{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}}}.legacy.container{display:none}.legacy.show{display:block;z-index:var(--tct-popover-z-index, 50)}@keyframes popoverOpen{from{opacity:0;transform:scale(0.95)}to{opacity:1;transform:scale(1)}}@keyframes popoverClose{from{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(0.95)}}:popover-open,.show{position:var(--comp-pop-position, absolute);margin:0;padding:var(--tct-popover-padding, 0);overflow:auto;background:var(--tct-popover-background, var(--app-white, #ffffff));backdrop-filter:var(--tct-popover-backdrop-filter, none);color:var(--tct-popover-font-color, inherit);min-width:var(--tct-popover-min-width, 135px);width:var(--tct-popover-width, auto);margin-block:var(--tct-popover-margin-block, 0);box-shadow:var(--tct-popover-box-shadow, var(--app-shadow-3, 0px 0px 2px rgba(0, 0, 0, 0.12), 0px 2px 4px rgba(0, 0, 0, 0.14)));border-width:var(--tct-popover-border-width, 0);border-style:solid;border-color:var(--tct-popover-border-color, transparent);border-radius:var(--tct-popover-border-radius, 0);max-height:var(--comp-pop-max-height);left:var(--comp-pop-left);opacity:var(--comp-pop-opacity, 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}:popover-open.animating-open,.show.animating-open{animation-name:popoverOpen;animation-duration:var(--tct-popover-open-animation-duration, var(--t-tween-time-in-1, 150ms));animation-timing-function:var(--tct-popover-open-animation-timing-function, ease-out);animation-fill-mode:var(--tct-popover-open-animation-fill-mode, forwards)}:popover-open.animating-close,.show.animating-close{animation-name:popoverClose;animation-duration:var(--tct-popover-close-animation-duration, var(--t-tween-time-out-1, 100ms));animation-timing-function:var(--tct-popover-close-animation-timing-function, ease-in);animation-fill-mode:var(--tct-popover-close-animation-fill-mode, forwards)}:popover-open.block,.show.block{right:unset;width:var(--comp-pop-width);min-width:var(--tct-popover-min-width, unset)}:popover-open.left,.show.left{left:var(--comp-pop-left);right:unset}:popover-open.right,.show.right{right:var(--comp-pop-right);left:unset}:popover-open.down,.show.down{top:var(--tct-popover-top, var(--comp-pop-top));bottom:unset}:popover-open.up,.show.up{top:var(--comp-pop-top);bottom:unset;translate:0 calc(-100% - var(--app-scale-2x, 10px))}:popover-open.down.left:not(.mobile),.show.down.left:not(.mobile){transform-origin:top left}:popover-open.down.right:not(.mobile),.show.down.right:not(.mobile){transform-origin:top right}:popover-open.up.left:not(.mobile),.show.up.left:not(.mobile){transform-origin:bottom left}:popover-open.up.right:not(.mobile),.show.up.right:not(.mobile){transform-origin:bottom right}:popover-open.mobile.down,.show.mobile.down{transform-origin:center top}:popover-open.mobile.up,.show.mobile.up{transform-origin:center bottom}:popover-open::-webkit-scrollbar,.show::-webkit-scrollbar{width:var(--comp-scrollbar-size);height:var(--comp-scrollbar-size);margin:5px}:popover-open::-webkit-scrollbar-thumb,.show::-webkit-scrollbar-thumb{background:var(--comp-scrollbar-color);border-radius:var(--comp-scrollbar-border-radius)}:popover-open::-webkit-scrollbar-track,.show::-webkit-scrollbar-track{background:transparent;border-radius:var(--comp-scrollbar-border-radius)}click-elsewhere{position:relative;display:block}`;
|
|
697
697
|
|
|
698
698
|
const Q2Popover = class {
|
|
699
699
|
constructor(hostRef) {
|
|
@@ -782,10 +782,10 @@ const Q2Popover = class {
|
|
|
782
782
|
const isScrollableIframe = isModule && isInScrollableContainer(this.hostElement);
|
|
783
783
|
if (currentDirection === 'up') {
|
|
784
784
|
if (isModule && !isScrollableIframe) {
|
|
785
|
-
containerElement.style.setProperty('--comp-pop-
|
|
785
|
+
containerElement.style.setProperty('--comp-pop-top', `${controlTop}px`);
|
|
786
786
|
}
|
|
787
787
|
else {
|
|
788
|
-
containerElement.style.setProperty('--comp-pop-
|
|
788
|
+
containerElement.style.setProperty('--comp-pop-top', `${controlTop + scrollY}px`);
|
|
789
789
|
}
|
|
790
790
|
}
|
|
791
791
|
if (currentDirection === 'down') {
|
|
@@ -952,7 +952,7 @@ const Q2Popover = class {
|
|
|
952
952
|
this.containerElement.style.removeProperty('--comp-pop-position');
|
|
953
953
|
}
|
|
954
954
|
async determinePopDirection() {
|
|
955
|
-
var _a, _b, _c;
|
|
955
|
+
var _a, _b, _c, _d;
|
|
956
956
|
const { containerElement, controlElement, providedDirection, displayBuffer } = this;
|
|
957
957
|
if (containerElement)
|
|
958
958
|
containerElement.style.maxHeight = null;
|
|
@@ -985,9 +985,10 @@ const Q2Popover = class {
|
|
|
985
985
|
: viewableSpaceBelow - displayBuffer;
|
|
986
986
|
}
|
|
987
987
|
else {
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
988
|
+
const { height = window.innerHeight, offsetTop = 0 } = (_d = window.visualViewport) !== null && _d !== void 0 ? _d : {};
|
|
989
|
+
windowHeight = height;
|
|
990
|
+
maxSpaceAbove = controlTop - offsetTop - displayBuffer;
|
|
991
|
+
maxSpaceBelow = offsetTop + windowHeight - controlBottom - displayBuffer;
|
|
991
992
|
}
|
|
992
993
|
const directionWithMostSpace = maxSpaceAbove > maxSpaceBelow ? 'up' : 'down';
|
|
993
994
|
// We do not want to update the max height once the popover is open unless the page orientation shifts (resize or mobile use cases)
|
|
@@ -1055,7 +1056,7 @@ const Q2Popover = class {
|
|
|
1055
1056
|
containerClasses.push('animating-open');
|
|
1056
1057
|
if (this.animationState === 'closing')
|
|
1057
1058
|
containerClasses.push('animating-close');
|
|
1058
|
-
return (h("div", { key: '
|
|
1059
|
+
return (h("div", { key: '680ad8a90ef98d3a8c2c1f5ba2284d7cdfc3d2a6', ref: el => (this.containerElement = el), class: containerClasses.join(' '), "test-id": "outerContainer", tabIndex: -1, popover: "manual" }, h("div", { key: 'dfe4d6f72df0dfa029d9296e27ceb60a75131d83', ref: el => (this.contentElement = el), class: "content" }, h("slot", { key: '22144006d226160fe790d156255d54e24bcad8ce' }))));
|
|
1059
1060
|
}
|
|
1060
1061
|
get hostElement() { return getElement(this); }
|
|
1061
1062
|
static get watchers() { return {
|
|
@@ -200,7 +200,7 @@ function renderLabel(target) {
|
|
|
200
200
|
return (h("label", { htmlFor: target.inputId, class: labelClasses.join(' ') }, h("slot", { name: "label" }, label ? loc(label) : undefined, helpText)));
|
|
201
201
|
}
|
|
202
202
|
function hasSlotContent(target, slotName) {
|
|
203
|
-
return target.
|
|
203
|
+
return Array.from(target.children).some(child => child.getAttribute('slot') === slotName);
|
|
204
204
|
}
|
|
205
205
|
function handleAriaLabel(target) {
|
|
206
206
|
const { ariaLabel } = target;
|