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
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { r
|
|
1
|
+
import { r, c as a, h as o, g as t } from "./index-Cqkz7Bnm.js";
|
|
2
2
|
|
|
3
|
-
import { c, d as
|
|
3
|
+
import { c as e, d as i, o as c, l as d } from "./index-DJw6Feh0.js";
|
|
4
4
|
|
|
5
|
-
import { m as
|
|
5
|
+
import { m as l } from "./mirror-emit-DUjY_ucm.js";
|
|
6
6
|
|
|
7
|
-
const
|
|
8
|
-
constructor(
|
|
9
|
-
|
|
7
|
+
const n = class {
|
|
8
|
+
constructor(o) {
|
|
9
|
+
r(this, o), this.change = a(this, "change", 7), this.tctChange = a(this, "tctChange", 7),
|
|
10
10
|
// #region Own Properties
|
|
11
|
-
this._id = `radio-${
|
|
11
|
+
this._id = `radio-${e()}`, this.isLoaded = !1,
|
|
12
12
|
/** The state of the radio. This modifies the visual appearance of the element. */
|
|
13
13
|
this.checked = !1,
|
|
14
14
|
/** Disables the radio and prevents interaction. */
|
|
@@ -32,50 +32,50 @@ const s = class {
|
|
|
32
32
|
this.tabIndex = 0,
|
|
33
33
|
// #endregion
|
|
34
34
|
// #region Local Methods
|
|
35
|
-
this.inputChange =
|
|
36
|
-
if (
|
|
35
|
+
this.inputChange = r => {
|
|
36
|
+
if (r.stopPropagation(), this.disabled || this.readonly || this.groupReadonly || this.groupDisabled) return r.preventDefault(),
|
|
37
37
|
!1;
|
|
38
|
-
|
|
38
|
+
r.target instanceof HTMLInputElement && (this.checked = r.target.checked);
|
|
39
39
|
};
|
|
40
40
|
}
|
|
41
41
|
// #endregion
|
|
42
42
|
// #region Component Lifecycle Events
|
|
43
43
|
componentWillLoad() {
|
|
44
|
-
|
|
44
|
+
i(this);
|
|
45
45
|
}
|
|
46
46
|
componentDidLoad() {
|
|
47
|
-
this.isLoaded = !0,
|
|
47
|
+
this.isLoaded = !0, c(this.hostElement), this.hostElement.click = () => {
|
|
48
48
|
this.inputField.focus(), this.inputField.click();
|
|
49
49
|
};
|
|
50
50
|
}
|
|
51
51
|
// #endregion
|
|
52
52
|
// #region Listeners
|
|
53
|
-
onHostClick(
|
|
54
|
-
this.disabled ?
|
|
55
|
-
|
|
53
|
+
onHostClick(r) {
|
|
54
|
+
this.disabled ? r.stopImmediatePropagation() : this.groupReadonly && (r.preventDefault(),
|
|
55
|
+
r.stopImmediatePropagation(), this.inputField.focus());
|
|
56
56
|
}
|
|
57
|
-
delegateFocus(
|
|
58
|
-
|
|
57
|
+
delegateFocus(r) {
|
|
58
|
+
r.target === this.hostElement && this.inputField.focus();
|
|
59
59
|
}
|
|
60
60
|
// #endregion
|
|
61
61
|
// #region Watchers
|
|
62
62
|
ariaLabelObserver() {
|
|
63
|
-
|
|
63
|
+
i(this);
|
|
64
64
|
}
|
|
65
65
|
checkedObserver() {
|
|
66
|
-
this.isLoaded && this.checked &&
|
|
66
|
+
this.isLoaded && this.checked && l(this, [ "change", "tctChange" ], {
|
|
67
67
|
value: this.value
|
|
68
68
|
});
|
|
69
69
|
}
|
|
70
70
|
// #endregion
|
|
71
71
|
// #region Render Methods
|
|
72
72
|
render() {
|
|
73
|
-
return
|
|
74
|
-
key: "
|
|
73
|
+
return o("div", {
|
|
74
|
+
key: "8fbe0ad9c8b0712fd51dbac67baae6209ebf2532",
|
|
75
75
|
class: this.groupTileLayout ? "radio-tile" : "radio-container"
|
|
76
|
-
},
|
|
77
|
-
key: "
|
|
78
|
-
ref:
|
|
76
|
+
}, o("input", {
|
|
77
|
+
key: "a9322154f304963731fb3d6ee99632c06938f27f",
|
|
78
|
+
ref: r => this.inputField = r,
|
|
79
79
|
class: "sr",
|
|
80
80
|
id: this._id,
|
|
81
81
|
type: "radio",
|
|
@@ -83,42 +83,27 @@ const s = class {
|
|
|
83
83
|
value: this.value,
|
|
84
84
|
disabled: this.disabled || this.groupDisabled,
|
|
85
85
|
checked: this.checked,
|
|
86
|
-
"aria-label": this.label && this.hideLabel ?
|
|
86
|
+
"aria-label": this.label && this.hideLabel ? d(this.label) : void 0,
|
|
87
87
|
onChange: this.inputChange,
|
|
88
88
|
"test-id": "q2RadioInnerRadioBox"
|
|
89
|
-
}),
|
|
90
|
-
key: "
|
|
89
|
+
}), o("label", {
|
|
90
|
+
key: "234f95d4c4656e4325a15853bacf888d7a4ae446",
|
|
91
91
|
htmlFor: this._id,
|
|
92
92
|
class: this.hideLabel ? "label-hidden" : void 0,
|
|
93
93
|
"test-id": "radioButton"
|
|
94
|
-
}, !this.groupTileLayout &&
|
|
95
|
-
key: "
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
stroke: "none",
|
|
101
|
-
fill: "none",
|
|
102
|
-
cx: "9",
|
|
103
|
-
cy: "9",
|
|
104
|
-
r: "8"
|
|
105
|
-
}), e("circle", {
|
|
106
|
-
key: "4c4daede7d3414b1e7a9c037ba4d9e919300a9ca",
|
|
107
|
-
class: "small-circle",
|
|
108
|
-
stroke: "none",
|
|
109
|
-
fill: "none",
|
|
110
|
-
cx: "9",
|
|
111
|
-
cy: "9",
|
|
112
|
-
r: "4"
|
|
113
|
-
})), !this.hideLabel && e("div", {
|
|
114
|
-
key: "e9b3ba9aceb316988bf570a3dd50cf99166fb248",
|
|
94
|
+
}, !this.groupTileLayout && o("span", {
|
|
95
|
+
key: "ac98c34734a5e54b347cc2a48dc23d3ea2eb31ce",
|
|
96
|
+
class: "radio-mark",
|
|
97
|
+
"aria-hidden": "true"
|
|
98
|
+
}), !this.hideLabel && o("div", {
|
|
99
|
+
key: "41dd2c195bc03dd8af8d5722e4aa2323cbeaab76",
|
|
115
100
|
class: "label-content"
|
|
116
|
-
}, this.label &&
|
|
117
|
-
key: "
|
|
101
|
+
}, this.label && d(this.label) || "", o("slot", {
|
|
102
|
+
key: "595014c6a32c2e98f7612dc51f0bd89579770988"
|
|
118
103
|
}))));
|
|
119
104
|
}
|
|
120
105
|
get hostElement() {
|
|
121
|
-
return
|
|
106
|
+
return t(this);
|
|
122
107
|
}
|
|
123
108
|
static get watchers() {
|
|
124
109
|
return {
|
|
@@ -132,6 +117,6 @@ const s = class {
|
|
|
132
117
|
}
|
|
133
118
|
};
|
|
134
119
|
|
|
135
|
-
s.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}.radio-container{--comp-radio-margin:var(--tct-radio-margin, var(--tct-radio-margin-vertical, var(--tct-scale-2, 10px)) var(--tct-radio-margin-horizontal, var(--tct-scale-3, 15px)));--comp-big-circle-fill:var(--tct-radio-background-fill, transparent);--comp-big-circle-stroke:var(--tct-radio-background-stroke, var(--tct-radio-stroke-color, var(--t-a11y-gray-color-AA, #949494)));--comp-big-circle-stroke-width:var(--tct-radio-background-stroke-width, var(--tct-radio-stroke-width, 2));--comp-big-circle-transition:fill var(--tct-radio-background-transition, var(--tct-checkbox-tween, var(--app-tween-2, 0.4s ease)));--comp-small-circle-fill:var(--tct-radio-select-fill-default, transparent);--comp-label-content-color:var(--tct-radio-label-color, inherit);--comp-label-content-font-weight:var(--tct-radio-label-font-weight, var(--tct-radio-font-weight, var(--tct-checkbox-font-weight, 400)));--comp-label-content-letter-spacing:var(--tct-radio-label-letter-spacing, 0.25);--comp-label-content-margin-right:var(--tct-radio-label-margin-right, 1rem);--comp-label-content-gap:var(--tct-radio-label-gap, var(--tct-scale-1, var(--app-scale-1x, 5px)));--comp-label-hidden-columns:var(--tct-radio-hidden-columns, var(--tct-radio-label-hidden-columns, 18px 1fr));--comp-svg-transition:box-shadow var(--tct-radio-transition, var(--tct-tween-1, var(--app-tween-1, 0.2s ease)));--comp-svg-box-shadow:var(--tct-radio-box-shadow, none);--comp-big-circle-fill-checked:var(--tct-radio-checked-background-fill, var(--comp-big-circle-fill));--comp-big-circle-stroke-checked:var(--tct-radio-checked-stroke-color, var(--comp-big-circle-stroke));--comp-small-circle-fill-checked:var(--tct-radio-select-fill-checked, var(--tct-radio-checked-fill, var(--tct-checkbox-check-stroke-color, var(--t-checkbox-fill, #2e2e2e))));--comp-label-content-font-weight-checked:var(--tct-radio-label-font-weight-checked, var(--tct-radio-checked-label-font-weight, var(--tct-checkbox-selected-font-weight, 600)));--comp-label-content-letter-spacing-checked:var(--tct-radio-label-letter-spacing-checked, var(--tct-radio-checked-label-letter-spacing, var(--tct-checkbox-selected-letter-spacing, var(--comp-label-content-letter-spacing))));--comp-label-content-color-checked:var(--tct-radio-label-font-color-checked, var(--tct-radio-checked-label-font-color, var(--tct-radio-checked-label-color, inherit)));--comp-big-circle-fill-active:var(--tct-radio-background-fill-active, var(--comp-big-circle-fill));--comp-big-circle-stroke-active:var(--tct-radio-background-stroke-active, var(--comp-big-circle-stroke));--comp-small-circle-fill-active:var(--tct-radio-selected-fill-active, var(--comp-small-circle-fill-checked));--comp-label-content-font-weight-active:var(--tct-radio-label-font-weight-active, var(--comp-label-content-font-weight));--comp-label-content-letter-spacing-active:var(--tct-radio-label-letter-spacing-active, var(--comp-label-content-letter-spacing));--comp-label-content-color-active:var(--tct-radio-label-color-active, var(--comp-label-content-color));--comp-big-circle-fill-hover:var(--tct-radio-hover-background-fill, var(--comp-big-circle-fill));--comp-big-circle-stroke-hover:var(--tct-radio-hover-stroke-color, var(--comp-big-circle-stroke));--comp-label-content-color-hover:var(--tct-radio-hover-label-color, var(--comp-label-content-color));--comp-big-circle-fill-focus:var(--tct-radio-focus-background-fill, var(--comp-big-circle-fill));--comp-big-circle-stroke-focus:var(--tct-radio-focus-stroke-color, var(--comp-big-circle-stroke));--comp-label-content-color-focus:var(--tct-radio-focus-label-color, var(--comp-label-content-color));--comp-svg-box-shadow-focus-visible:var(--tct-radio-box-shadow-focus-visible, var(--tct-radio-focus-box-shadow, var(--const-double-focus-ring)));margin:var(--comp-radio-margin)}.radio-container label[for]{color:var(---comp-label-content-color);font-weight:var(---comp-label-content-font-weight);font-size:var(--tct-radio-label-font-size, var(--const-px-14, 14px));align-items:start;cursor:pointer;margin-right:var(---comp-label-content-margin-right);display:grid;grid-template-columns:18px 1fr;gap:var(--comp-label-content-gap);letter-spacing:var(--comp-label-content-letter-spacing)}.radio-container label[for].label-hidden{grid-template-columns:var(--comp-label-hidden-columns)}.radio-container label[for] .description-content{grid-column:2}.radio-container svg{border-radius:50%;transition:var(--comp-svg-transition);outline:0;width:100%;box-shadow:var(--comp-svg-box-shadow)}.radio-container .big-circle{fill:var(--comp-big-circle-fill);stroke:var(--comp-big-circle-stroke);stroke-width:var(--comp-big-circle-stroke-width);transition:var(--comp-big-circle-transition)}.radio-container .small-circle{fill:var(--comp-small-circle-fill)}.radio-container input:checked+label .big-circle{fill:var(--comp-big-circle-fill-checked);stroke:var(--comp-big-circle-stroke-checked)}.radio-container input:checked+label .small-circle{fill:var(--comp-small-circle-fill-checked)}.radio-container input:checked+label .label-content{font-weight:var(--comp-label-content-font-weight-checked);letter-spacing:var(--comp-label-content-letter-spacing-checked);color:var(--comp-label-content-color-checked)}.radio-container input:hover+label .big-circle{fill:var(--comp-big-circle-fill-hover);stroke:var(--comp-big-circle-stroke-hover)}.radio-container input:hover+label .label-content{color:var(--comp-label-content-color-hover)}.radio-container input:active+label .big-circle{fill:var(--comp-big-circle-fill-active);stroke:var(--comp-big-circle-stroke-active)}.radio-container input:active+label .small-circle{fill:var(--comp-small-circle-fill-active)}.radio-container input:active+label .label-content{font-weight:var(--comp-label-content-font-weight-active);letter-spacing:var(--comp-label-content-letter-spacing-active);color:var(--comp-label-content-color-active)}.radio-container input:focus+label .big-circle{fill:var(--comp-big-circle-fill-focus);stroke:var(--comp-big-circle-stroke-focus)}.radio-container input:focus+label .label-content{color:var(--comp-label-content-color-focus)}.radio-tile{flex-basis:100px;flex-grow:0;flex-wrap:wrap}.radio-tile label[for]{color:var(--tct-radio-label-font-color, var(--tct-radio-label-color, inherit));align-items:center;border-radius:var(--tct-radio-tile-border-radius, var(--app-border-radius-1, 3px));border:2px solid var(--tct-radio-stroke-color, var(--t-a11y-gray-color-AA, #949494));background:var(--tct-radio-background-fill, transparent);cursor:pointer;display:block;font-size:var(--tct-radio-tile-label-font-size, var(--tct-radio-label-font-size, var(--const-px-14, 14px)));padding:10px;position:relative;text-align:center;transition:border-color var(--tct-tween-1, var(--app-tween-1, 0.2s ease));white-space:nowrap}.radio-tile input:checked+label{border-color:var(--tct-radio-tile-checked-stroke-color, var(--tct-radio-checked-stroke-color, var(--tct-checkbox-check-stroke-color, var(--t-checkbox-check-stroke-color, var(--t-checkbox-fill, #2e2e2e)))));box-shadow:inset 0 0 0 2px #ffffff;background:var(--tct-radio-checked-background-fill, transparent);color:var(--tct-radio-checked-label-color, inherit)}.radio-tile input:checked+label:after{border-bottom-width:3px;border-bottom:5px solid var(--tct-radio-tile-checked-stroke-color, var(--tct-radio-checked-stroke-color, var(--tct-checkbox-check-stroke-color, var(--t-checkbox-check-stroke-color, var(--t-checkbox-fill, #2e2e2e)))));border-left-width:5px;border-left:8px solid transparent;border-right-width:5px;border-right:8px solid transparent;bottom:0;content:"";height:0;left:50%;margin-left:-5px;position:absolute;width:0}.radio-tile input:hover+label{border-color:var(--tct-radio-hover-stroke-color, var(--tct-radio-stroke-color, var(--t-a11y-gray-color-AA, #949494)));background:var(--tct-radio-hover-background-fill, transparent);color:var(--tct-radio-hover-label-color, var(--tct-radio-label-color, inherit))}.radio-tile input:focus+label,.radio-tile input:focus:checked+label{--comp-radio-tile-focus-box-shadow-fallback:var(--const-double-focus-ring), var(--tct-global-focus, 0 0 0 2px #33b4ff);border-color:var(--tct-radio-tile-focus-stroke-color, var(--tct-radio-focus-stroke-color, var(--tct-checkbox-check-stroke-color, var(--t-checkbox-check-stroke-color, var(--t-checkbox-fill, #2e2e2e)))));background:var(--tct-radio-focus-background-fill, transparent);box-shadow:var(--tct-radio-tile-focus-box-shadow, var(--comp-radio-tile-focus-box-shadow-fallback));color:var(--tct-radio-focus-label-color, var(--tct-radio-checked-label-color, inherit))}.radio-tile input:focus:checked+label:after{border-bottom:5px solid var(--tct-radio-tile-focus-stroke-color, var(--tct-radio-focus-stroke-color, #2e2e2e))}input:disabled+label[for]{cursor:not-allowed;opacity:var(--tct-disabled-opacity, var(--app-disabled-opacity, 0.4))}';
|
|
120
|
+
n.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;letter-spacing:var(--tct-radio-label-letter-spacing, inherit)}:host([checked]:not([checked=false])){letter-spacing:var(--tct-radio-label-letter-spacing-checked, var(--tct-radio-checked-label-letter-spacing, var(--tct-checkbox-selected-letter-spacing, var(--tct-radio-label-letter-spacing, inherit))))}:host(:active){letter-spacing:var(--tct-radio-label-letter-spacing-active, var(--tct-radio-label-letter-spacing, inherit))}.radio-container{--comp-radio-mark-track-size:36px;--comp-radio-mark-size:var(--tct-radio-mark-size, 20px);--comp-radio-mark-fill:var(--tct-radio-background-fill, transparent);--comp-radio-mark-stroke:var(--tct-radio-background-stroke, var(--tct-radio-stroke-color, var(--t-a11y-gray-color-AA, #949494)));--comp-radio-mark-stroke-width:var(--tct-radio-background-stroke-width, var(--tct-radio-stroke-width, 2));--comp-radio-mark-color-transition:background-color var(--tct-radio-background-transition, var(--tct-checkbox-tween, var(--app-tween-1, 0.15s ease))), border-color var(--tct-radio-background-transition, var(--tct-checkbox-tween, var(--app-tween-1, 0.15s ease)));--comp-radio-mark-dot-fill:var(--tct-radio-select-fill-default, transparent);--comp-label-content-color:var(--tct-radio-label-color, inherit);--comp-label-content-font-weight:var(--tct-radio-label-font-weight, var(--tct-radio-font-weight, var(--tct-checkbox-font-weight, 400)));--comp-label-content-margin-right:var(--tct-radio-label-margin-right, 0);--comp-label-content-gap:var(--tct-radio-label-gap, 0);--comp-label-hidden-columns:var(--tct-radio-hidden-columns, var(--tct-radio-label-hidden-columns, var(--comp-radio-mark-track-size) 1fr));--comp-radio-mark-transition:box-shadow var(--tct-radio-transition, var(--tct-tween-1, var(--app-tween-1, 0.15s ease))), transform var(--tct-radio-transition, var(--tct-tween-1, var(--app-tween-1, 0.15s ease)));--comp-radio-mark-box-shadow:var(--tct-radio-box-shadow, none);--comp-radio-mark-fill-checked:var(--tct-radio-checked-background-fill, var(--t-base, #ffffff));--comp-radio-mark-stroke-checked:var(--tct-radio-checked-stroke-color, var(--t-primary, #6a4a9e));--comp-radio-mark-dot-fill-checked:var(--tct-radio-select-fill-checked, var(--tct-radio-checked-fill, var(--tct-checkbox-check-stroke-color, var(--t-checkbox-fill, var(--t-primary, #6a4a9e)))));--comp-label-content-font-weight-checked:var(--tct-radio-label-font-weight-checked, var(--tct-radio-checked-label-font-weight, var(--tct-checkbox-selected-font-weight, var(--comp-label-content-font-weight))));--comp-label-content-color-checked:var(--tct-radio-label-font-color-checked, var(--tct-radio-checked-label-font-color, var(--tct-radio-checked-label-color, inherit)));--comp-radio-mark-fill-active:var(--tct-radio-background-fill-active, #e8ddef);--comp-radio-mark-stroke-active:var(--tct-radio-background-stroke-active, var(--t-primary-d2, #553b7e));--comp-radio-mark-dot-fill-active:var(--tct-radio-selected-fill-active, var(--comp-radio-mark-dot-fill-checked));--comp-label-content-font-weight-active:var(--tct-radio-label-font-weight-active, var(--comp-label-content-font-weight));--comp-label-content-color-active:var(--tct-radio-label-color-active, var(--comp-label-content-color));--comp-radio-mark-fill-hover:var(--tct-radio-hover-background-fill, #f3eefa);--comp-radio-mark-stroke-hover:var(--tct-radio-hover-stroke-color, var(--t-primary, #6a4a9e));--comp-radio-mark-stroke-checked-hover:var(--tct-radio-checked-hover-stroke-color, var(--t-primary-d2, #553b7e));--comp-label-content-color-hover:var(--tct-radio-hover-label-color, var(--comp-label-content-color));--comp-radio-mark-fill-focus:var(--tct-radio-focus-background-fill, var(--comp-radio-mark-fill));--comp-radio-mark-stroke-focus:var(--tct-radio-focus-stroke-color, var(--comp-radio-mark-stroke));--comp-label-content-color-focus:var(--tct-radio-focus-label-color, var(--comp-label-content-color));--comp-radio-mark-box-shadow-focus-visible:var(--tct-radio-box-shadow-focus-visible, var(--tct-radio-focus-box-shadow, var(--const-double-focus-ring)))}.radio-container label[for]{color:var(--comp-label-content-color);font-weight:var(--comp-label-content-font-weight);font-size:var(--tct-radio-label-font-size, var(--const-px-14, 14px));align-items:center;cursor:pointer;margin-right:var(--comp-label-content-margin-right);display:grid;grid-template-columns:var(--comp-radio-mark-track-size) 1fr;gap:var(--comp-label-content-gap);min-height:var(--tct-radio-min-height, var(--comp-radio-mark-track-size));user-select:none}.radio-container label[for].label-hidden{grid-template-columns:var(--comp-label-hidden-columns)}.radio-container label[for] .description-content{grid-column:2}.radio-container .radio-mark{--comp-radio-mark-current-fill:var(--comp-radio-mark-fill);--comp-radio-mark-current-stroke:var(--comp-radio-mark-stroke);border-radius:50%;box-shadow:var(--comp-radio-mark-box-shadow);height:var(--comp-radio-mark-size);justify-self:center;overflow:hidden;position:relative;transition:var(--comp-radio-mark-transition);width:var(--comp-radio-mark-size)}.radio-container .radio-mark::before{background:var(--comp-radio-mark-current-fill);border-color:var(--comp-radio-mark-current-stroke);border-radius:50%;border-style:solid;border-width:calc(var(--comp-radio-mark-stroke-width) * 1px);box-sizing:border-box;content:"";height:calc(var(--comp-radio-mark-size) - 2px + var(--comp-radio-mark-stroke-width) * 1px);left:50%;position:absolute;top:50%;transform:translate(-50%, -50%);transition:var(--comp-radio-mark-color-transition);width:calc(var(--comp-radio-mark-size) - 2px + var(--comp-radio-mark-stroke-width) * 1px)}.radio-container .radio-mark::after{background:var(--comp-radio-mark-dot-fill);border-radius:50%;content:"";height:calc(var(--comp-radio-mark-size) / 2);left:50%;position:absolute;top:50%;transform:translate(-50%, -50%) scale(0);transition:transform var(--tct-radio-transition, var(--tct-tween-1, var(--app-tween-1, 0.15s ease)));width:calc(var(--comp-radio-mark-size) / 2)}.radio-container input:focus-visible{box-shadow:none}.radio-container input:checked+label .radio-mark{--comp-radio-mark-current-fill:var(--comp-radio-mark-fill-checked);--comp-radio-mark-current-stroke:var(--comp-radio-mark-stroke-checked)}.radio-container input:checked+label .radio-mark::after{background:var(--comp-radio-mark-dot-fill-checked);transform:translate(-50%, -50%) scale(1)}.radio-container input:checked+label .label-content{font-weight:var(--comp-label-content-font-weight-checked);color:var(--comp-label-content-color-checked)}.radio-container input:hover:not(:disabled)+label .radio-mark{--comp-radio-mark-current-fill:var(--comp-radio-mark-fill-hover);--comp-radio-mark-current-stroke:var(--comp-radio-mark-stroke-hover)}.radio-container input:hover:not(:disabled)+label .label-content{color:var(--comp-label-content-color-hover)}.radio-container input:active:not(:disabled)+label .radio-mark{--comp-radio-mark-current-fill:var(--comp-radio-mark-fill-active);--comp-radio-mark-current-stroke:var(--comp-radio-mark-stroke-active);transform:scale(0.9)}.radio-container input:active:not(:disabled)+label .radio-mark::after{background:var(--comp-radio-mark-dot-fill-active)}.radio-container input:active:not(:disabled)+label .label-content{font-weight:var(--comp-label-content-font-weight-active);color:var(--comp-label-content-color-active)}.radio-container input:focus+label .radio-mark{--comp-radio-mark-current-fill:var(--comp-radio-mark-fill-focus);--comp-radio-mark-current-stroke:var(--comp-radio-mark-stroke-focus)}.radio-container input:focus+label .label-content{color:var(--comp-label-content-color-focus)}.radio-container input:focus-visible+label .radio-mark{box-shadow:var(--comp-radio-mark-box-shadow-focus-visible)}.radio-container input:checked:hover:not(:disabled)+label .radio-mark{--comp-radio-mark-current-stroke:var(--comp-radio-mark-stroke-checked-hover)}.radio-tile label[for]{color:var(--tct-radio-label-font-color, var(--tct-radio-label-color, inherit));align-items:center;border:0;background:var(--tct-radio-background-fill, var(--t-base, #ffffff));cursor:pointer;display:block;font-size:var(--tct-radio-tile-label-font-size, var(--tct-radio-label-font-size, var(--const-px-14, 14px)));overflow:hidden;padding:var(--tct-radio-tile-padding, 10px 20px);position:relative;text-align:center;transition:background var(--tct-tween-1, var(--app-tween-1, 0.15s ease)), color var(--tct-tween-1, var(--app-tween-1, 0.15s ease)), box-shadow var(--tct-tween-1, var(--app-tween-1, 0.15s ease));white-space:nowrap;user-select:none}.radio-tile input:focus-visible{box-shadow:none}.radio-tile input:checked+label{background:var(--tct-radio-tile-checked-background-fill, var(--tct-radio-checked-background-fill, #f3eefa));color:var(--tct-radio-tile-checked-label-color, var(--tct-radio-checked-label-color, var(--t-primary, #6a4a9e)))}.radio-tile input:checked+label:after{background:var(--tct-radio-tile-checked-stroke-color, var(--t-primary, #6a4a9e));border-radius:var(--tct-radio-tile-indicator-border-radius, 9999px 9999px 0 0);bottom:0;content:"";height:var(--tct-radio-tile-indicator-height, 2px);left:0;position:absolute;right:0}.radio-tile input:not(:checked):hover:not(:disabled)+label{background:var(--tct-radio-tile-hover-background-fill, #fafafa);color:var(--tct-radio-hover-label-color, var(--tct-radio-label-color, inherit))}.radio-tile input:not(:checked):active:not(:disabled)+label{background:var(--tct-radio-tile-active-background-fill, var(--t-gray-14, #f2f2f2))}.radio-tile input:focus-visible+label{z-index:1;box-shadow:var(--tct-radio-tile-focus-box-shadow, var(--const-double-focus-ring))}:host(:not(:first-child)) .radio-tile label[for]{border-left:var(--tct-radio-tile-divider-width, 1px) solid var(--tct-radio-tile-divider-color, var(--t-gray-13, #e6e6e6))}:host(:first-child) .radio-tile label[for]{border-radius:var(--tct-radio-group-tile-border-radius, var(--app-border-radius-2, 8px)) 0 0 var(--tct-radio-group-tile-border-radius, var(--app-border-radius-2, 8px))}:host(:last-child) .radio-tile label[for]{border-radius:0 var(--tct-radio-group-tile-border-radius, var(--app-border-radius-2, 8px)) var(--tct-radio-group-tile-border-radius, var(--app-border-radius-2, 8px)) 0}:host(:only-child) .radio-tile label[for]{border-radius:var(--tct-radio-group-tile-border-radius, var(--app-border-radius-2, 8px))}input:disabled+label[for]{cursor:not-allowed;opacity:var(--tct-disabled-opacity, var(--app-disabled-opacity, 0.4))}';
|
|
136
121
|
|
|
137
|
-
export {
|
|
122
|
+
export { n as q2_radio }
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as t, h as e, F as i, g as s } from "./index-Cqkz7Bnm.js";
|
|
2
2
|
|
|
3
|
-
import { d as
|
|
3
|
+
import { d as n } from "./index-O1A-ZSZs.js";
|
|
4
4
|
|
|
5
|
-
import { l as
|
|
5
|
+
import { l as a } from "./index-DJw6Feh0.js";
|
|
6
6
|
|
|
7
7
|
const o = class {
|
|
8
8
|
constructor(e) {
|
|
@@ -63,16 +63,16 @@ const o = class {
|
|
|
63
63
|
// #endregion
|
|
64
64
|
// #region Watchers
|
|
65
65
|
updateMessage() {
|
|
66
|
-
const {isValidDate: t, isBaseDateProvided: e, isValidBaseDate: i, dateObject: s, baseDateObject: o, locale: r, handleNumeric: d, messageFormat:
|
|
67
|
-
if (!t || e && !i) return this.sync = !1, void (this.displayedMessage =
|
|
68
|
-
const m =
|
|
69
|
-
locale: r,
|
|
66
|
+
const {isValidDate: t, isBaseDateProvided: e, isValidBaseDate: i, dateObject: s, baseDateObject: o, locale: r, handleNumeric: d, messageFormat: h, isValidUnit: l, unit: c, trimSuffix: u} = this;
|
|
67
|
+
if (!t || e && !i) return this.sync = !1, void (this.displayedMessage = a("tecton.element.relativeTime.invalidDate"));
|
|
68
|
+
const m = n.intlFormatDistance(new Date(s), new Date(o), {
|
|
69
|
+
locale: r || document.documentElement.lang || "en-US",
|
|
70
70
|
localeMatcher: "best fit",
|
|
71
71
|
numeric: d,
|
|
72
|
-
style:
|
|
73
|
-
unit:
|
|
72
|
+
style: h,
|
|
73
|
+
unit: l ? c : null
|
|
74
74
|
});
|
|
75
|
-
this.displayedMessage =
|
|
75
|
+
this.displayedMessage = u ? this.trimMessage(m) : m;
|
|
76
76
|
}
|
|
77
77
|
syncUpdated() {
|
|
78
78
|
this.sync ? this.syncTimer = window.setInterval((() => {
|
|
@@ -96,12 +96,12 @@ const o = class {
|
|
|
96
96
|
return void 0 !== this.baseDate;
|
|
97
97
|
}
|
|
98
98
|
get isValidBaseDate() {
|
|
99
|
-
const t = new Date(this.baseDate), e =
|
|
99
|
+
const t = new Date(this.baseDate), e = n.isValid(t);
|
|
100
100
|
return !e && this.isBaseDateProvided && console.warn("Error: Invalid baseDate provided to q2-relative-time."),
|
|
101
101
|
e;
|
|
102
102
|
}
|
|
103
103
|
get isValidDate() {
|
|
104
|
-
const t = new Date(this.date), e =
|
|
104
|
+
const t = new Date(this.date), e = n.isValid(t);
|
|
105
105
|
return e || console.warn("Error: Invalid date provided to q2-relative-time."), e;
|
|
106
106
|
}
|
|
107
107
|
get isValidUnit() {
|
|
@@ -118,7 +118,7 @@ const o = class {
|
|
|
118
118
|
render() {
|
|
119
119
|
const {shouldShow: t, displayedMessage: s} = this;
|
|
120
120
|
return e(i, {
|
|
121
|
-
key: "
|
|
121
|
+
key: "7bcf2e8d9cb391ea43664b9cf01ec6d474a1743e"
|
|
122
122
|
}, t ? e("time", {
|
|
123
123
|
dateTime: s
|
|
124
124
|
}, s) : null);
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { r as t, c as e, h as i, g as n } from "./index-Cqkz7Bnm.js";
|
|
2
|
+
|
|
3
|
+
const o = class {
|
|
4
|
+
constructor(i) {
|
|
5
|
+
t(this, i), this.tctResize = e(this, "tctResize", 7), this.observedElements = [],
|
|
6
|
+
// #endregion
|
|
7
|
+
// #region Local Methods
|
|
8
|
+
this.handleSlotChange = () => {
|
|
9
|
+
this.disabled || this.startObserver();
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
// #endregion
|
|
13
|
+
// #region Component Lifecycle Events
|
|
14
|
+
disconnectedCallback() {
|
|
15
|
+
this.stopObserver(), this.resizeObserver = null;
|
|
16
|
+
}
|
|
17
|
+
componentDidLoad() {
|
|
18
|
+
"undefined" != typeof ResizeObserver ? this.resizeObserver = new ResizeObserver((t => {
|
|
19
|
+
this.tctResize.emit({
|
|
20
|
+
entries: t
|
|
21
|
+
}), this.currentResizeObserverEntries = t;
|
|
22
|
+
})) : console.warn("ResizeObserver is not defined."), this.disabled || this.startObserver();
|
|
23
|
+
}
|
|
24
|
+
// #endregion
|
|
25
|
+
// #region Public Methods API
|
|
26
|
+
/**
|
|
27
|
+
* Returns the latest entries reported by the component.
|
|
28
|
+
*/
|
|
29
|
+
async getCurrentResizeEntries() {
|
|
30
|
+
return this.currentResizeObserverEntries || [];
|
|
31
|
+
}
|
|
32
|
+
// #endregion
|
|
33
|
+
// #region Watchers
|
|
34
|
+
disabledUpdated(t) {
|
|
35
|
+
t ? this.stopObserver() : this.startObserver();
|
|
36
|
+
}
|
|
37
|
+
startObserver() {
|
|
38
|
+
var t, e, i;
|
|
39
|
+
const n = this.hostElement.shadowRoot.querySelector("slot");
|
|
40
|
+
if (null === n) return;
|
|
41
|
+
const o = null !== (e = null === (t = n.assignedElements) || void 0 === t ? void 0 : t.call(n, {
|
|
42
|
+
flatten: !0
|
|
43
|
+
})) && void 0 !== e ? e : [];
|
|
44
|
+
// Unwatch previous elements
|
|
45
|
+
null === (i = this.observedElements) || void 0 === i || i.forEach((t => {
|
|
46
|
+
var e;
|
|
47
|
+
return null === (e = this.resizeObserver) || void 0 === e ? void 0 : e.unobserve(t);
|
|
48
|
+
})), this.observedElements = [],
|
|
49
|
+
// Watch new elements
|
|
50
|
+
o.forEach((t => {
|
|
51
|
+
var e;
|
|
52
|
+
null === (e = this.resizeObserver) || void 0 === e || e.observe(t), this.observedElements.push(t);
|
|
53
|
+
}));
|
|
54
|
+
}
|
|
55
|
+
stopObserver() {
|
|
56
|
+
var t;
|
|
57
|
+
null === (t = this.resizeObserver) || void 0 === t || t.disconnect();
|
|
58
|
+
}
|
|
59
|
+
// #endregion
|
|
60
|
+
// #region Render Methods
|
|
61
|
+
render() {
|
|
62
|
+
return i("slot", {
|
|
63
|
+
key: "f5cc2cee6e979f047d3854d243ec3560ae5cb35d",
|
|
64
|
+
onSlotchange: this.handleSlotChange
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
get hostElement() {
|
|
68
|
+
return n(this);
|
|
69
|
+
}
|
|
70
|
+
static get watchers() {
|
|
71
|
+
return {
|
|
72
|
+
disabled: [ {
|
|
73
|
+
disabledUpdated: 0
|
|
74
|
+
} ]
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
o.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(:not([hidden])){display:block;width:100%}';
|
|
80
|
+
|
|
81
|
+
export { o as q2_resize_observer }
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as t, c as i, h as e, F as s, g as o } from "./index-Cqkz7Bnm.js";
|
|
2
2
|
|
|
3
|
-
import { o as n, i as r, w as l, l as a } from "./index-
|
|
3
|
+
import { o as n, i as r, w as l, l as a } from "./index-DJw6Feh0.js";
|
|
4
4
|
|
|
5
5
|
const h = class {
|
|
6
6
|
constructor(e) {
|
|
@@ -8,7 +8,7 @@ const h = class {
|
|
|
8
8
|
this.tctInput = i(this, "tctInput", 7), this.tctOpen = i(this, "tctOpen", 7),
|
|
9
9
|
// #region Own Properties
|
|
10
10
|
// Viewport edge buffer (px) — popover falls back to input-width when it would otherwise overflow.
|
|
11
|
-
this.displayBuffer = 10, this.popoverWidthWarned = !1,
|
|
11
|
+
this.displayBuffer = 10, this.optionFingerprint = "", this.popoverWidthWarned = !1,
|
|
12
12
|
// #endregion
|
|
13
13
|
// #region State Properties
|
|
14
14
|
this.hasEmptySlot = !1, this.hasOptions = !1, this.hasPopoverBottom = !1, this.hasPopoverTop = !1,
|
|
@@ -141,15 +141,20 @@ const h = class {
|
|
|
141
141
|
}, this.onClickElsewhere = t => {
|
|
142
142
|
"click-elsewhere" === t.target.localName && (t.stopPropagation(), "#document-fragment" !== this.hostElement.getRootNode().nodeName && this.closeDropdown());
|
|
143
143
|
}, this.onMutationObserved = () => {
|
|
144
|
-
var t, i, e;
|
|
145
|
-
const
|
|
146
|
-
if (!
|
|
147
|
-
const
|
|
148
|
-
this.hasPopoverTop !==
|
|
149
|
-
this.hasEmptySlot !==
|
|
144
|
+
var t, i, e, s;
|
|
145
|
+
const o = this.hostElement.shadowRoot;
|
|
146
|
+
if (!o) return;
|
|
147
|
+
const n = o.querySelector('slot[name="popover-top"]'), r = o.querySelector('slot[name="popover-bottom"]'), l = o.querySelector('slot[name="empty"]'), a = (null !== (t = null == n ? void 0 : n.assignedNodes().length) && void 0 !== t ? t : 0) > 0, h = (null !== (i = null == r ? void 0 : r.assignedNodes().length) && void 0 !== i ? i : 0) > 0, c = (null !== (e = null == l ? void 0 : l.assignedNodes().length) && void 0 !== e ? e : 0) > 0, d = this.optionElements.length > 0;
|
|
148
|
+
this.hasPopoverTop !== a && (this.hasPopoverTop = a), this.hasPopoverBottom !== h && (this.hasPopoverBottom = h),
|
|
149
|
+
this.hasEmptySlot !== c && (this.hasEmptySlot = c), this.hasOptions !== d && (this.hasOptions = d),
|
|
150
150
|
// If input-only mode just turned on while popover was open, close it.
|
|
151
151
|
this.open && this.isInputOnlyMode && this.closeDropdown(), this.checkSelectedOptions(),
|
|
152
152
|
this.multilineOptions && this.applyMultilineOptions();
|
|
153
|
+
// Reset the option list's active index whenever the slotted option set changes so that
|
|
154
|
+
// the next ArrowDown/ArrowUp always starts from the first visible item rather than a
|
|
155
|
+
// stale position left over from a previous, different options list.
|
|
156
|
+
const p = this.optionElements.map((t => t.value)).join("\0");
|
|
157
|
+
p !== this.optionFingerprint && (this.optionFingerprint = p, null === (s = this.optionList) || void 0 === s || s.setActiveElement(void 0));
|
|
153
158
|
}, this.onOptionListChange = t => {
|
|
154
159
|
t.stopPropagation(), this.handleSelectionChanges(t.detail);
|
|
155
160
|
}, this.onSelectedDisplayMousedown = t => {
|
|
@@ -404,13 +409,13 @@ const h = class {
|
|
|
404
409
|
if (!a) return this.clearSelectedDisplay();
|
|
405
410
|
const h = a.cloneNode(!0);
|
|
406
411
|
h.querySelectorAll("[hide-on-select]").forEach((t => t.remove()));
|
|
407
|
-
let
|
|
408
|
-
return
|
|
409
|
-
|
|
412
|
+
let c = this.selectedDisplaySlot;
|
|
413
|
+
return c ? (null === (t = c.firstElementChild) || void 0 === t ? void 0 : t.outerHTML) !== h.outerHTML && c.replaceChildren(h) : (c = document.createElement("div"),
|
|
414
|
+
c.slot = "_selected-display",
|
|
410
415
|
// Prevent the non-focusable overlay from blurring the hidden input when clicked.
|
|
411
416
|
// Same pattern used by q2-input's clear button (onMouseDown preventDefault).
|
|
412
|
-
|
|
413
|
-
this.hostElement.appendChild(
|
|
417
|
+
c.addEventListener("mousedown", this.onSelectedDisplayMousedown), c.appendChild(h),
|
|
418
|
+
this.hostElement.appendChild(c)), c;
|
|
414
419
|
}
|
|
415
420
|
checkSelectedOptions() {
|
|
416
421
|
const {multiple: t, selectedOptions: i, value: e} = this;
|
|
@@ -596,20 +601,20 @@ const h = class {
|
|
|
596
601
|
}
|
|
597
602
|
render() {
|
|
598
603
|
return e(s, {
|
|
599
|
-
key: "
|
|
604
|
+
key: "78ce7b735d59271600debb18ab2f0f5cf315e465"
|
|
600
605
|
}, e("div", {
|
|
601
|
-
key: "
|
|
606
|
+
key: "d3e9a713581842cc62969a0df9556733edf6e378",
|
|
602
607
|
"aria-live": "polite",
|
|
603
608
|
"aria-atomic": "true",
|
|
604
609
|
role: "status",
|
|
605
610
|
class: "sr"
|
|
606
611
|
}, this.statusMessage), e("click-elsewhere", {
|
|
607
|
-
key: "
|
|
612
|
+
key: "6912af1d8f31af8de7c7ffb28786756819c57afc",
|
|
608
613
|
class: this.wrapperClasses,
|
|
609
614
|
role: "presentation",
|
|
610
615
|
onChange: this.onClickElsewhere
|
|
611
616
|
}, e("q2-input", {
|
|
612
|
-
key: "
|
|
617
|
+
key: "95a5397765aab6d3279b3d81cc31215f235aefc2",
|
|
613
618
|
ref: t => this.inputField = t,
|
|
614
619
|
class: "q2-search-input",
|
|
615
620
|
label: this.label && a(this.label) || "",
|
|
@@ -661,6 +666,6 @@ const h = class {
|
|
|
661
666
|
}
|
|
662
667
|
};
|
|
663
668
|
|
|
664
|
-
h.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{display:block;margin:var(--tct-search-margin, var(--tct-search-margin-top, var(--app-scale-5x, 25px)) 0 var(--tct-search-margin-bottom, var(--app-scale-5x, 25px)))}::slotted([slot=_selected-display]){width:100%;min-height:var(--comp-selected-display-height, 44px)}.q2-search-container{display:block;position:relative}.q2-search-input{margin:0;--tct-input-min-height:var(--tct-search-input-min-height, initial);--tct-input-max-height:var(--tct-search-input-max-height, none);--tct-input-horizontal-gap:var(--tct-search-input-horizontal-gap, var(--app-scale-2x, 10px));--tct-input-icon-container-icon-min-width:var(--tct-search-icon-min-width, fit-content)}.popover-content{display:flex;flex-direction:column}.popover-content[data-loading=true]{min-height:var(--tct-search-loading-popover-height, var(--app-scale-12x, 60px));position:relative}.popover-content[data-loading=true] .loading-overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;pointer-events:none}.popover-content[data-loading=true] .loading-overlay q2-loading{--tct-loading-spinner-size:var(--tct-search-loading-spinner-size, var(--app-scale-8x, 40px));width:1em;height:1em}.popover-top-container[hidden],.popover-bottom-container[hidden]{display:none}.popover-top-container{position:sticky;top:0;z-index:5}.popover-top-container .multi-select-header{padding:var(--tct-search-multi-select-header-padding, var(--app-scale-2x, 10px));background:var(--tct-search-multi-select-header-background, var(--t-base, #ffffff));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-search-multi-select-option-padding, 2px 5px);font-size:var(--tct-search-multi-select-option-font-size, inherit);border-radius:var(--tct-search-multi-select-option-border-radius, var(--app-border-radius-1, 4px));background:var(--tct-search-multi-select-option-background, transparent);color:var(--tct-search-multi-select-option-font-color, inherit)}.popover-top-container .multi-select-header label:hover{background:var(--tct-search-multi-select-option-hover-background, var(--t-gray-14, #f2f2f2));color:var(--tct-search-multi-select-option-hover-font-color, var(--t-gray-5, #404040))}.popover-top-container .multi-select-header input:checked+label,.popover-top-container .multi-select-header input:checked+label:enabled:hover{background:var(--tct-search-multi-select-option-active-background, var(--t-gray-4, #333333));color:var(--tct-search-multi-select-option-active-font-color, var(--t-base, #ffffff))}.popover-top-container .multi-select-header input:disabled+label{opacity:var(--tct-search-multi-select-option-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)}.no-results{padding:var(--tct-search-no-results-padding, var(--app-scale-3x, 15px));color:var(--tct-search-no-results-font-color, var(--t-textA, rgba(77, 77, 77, 0.77)));text-align:center}';
|
|
669
|
+
h.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{display:block;margin:var(--tct-search-margin, var(--tct-search-margin-top, var(--app-scale-5x, 25px)) 0 var(--tct-search-margin-bottom, var(--app-scale-5x, 25px)))}::slotted([slot=_selected-display]){width:100%;min-height:var(--comp-selected-display-height, 44px)}.q2-search-container{display:block;position:relative}.q2-search-input{--tct-input-icon-size:var(--tct-search-icon-size, var(--const-px-18, 18px));margin:0;--tct-input-min-height:var(--tct-search-input-min-height, initial);--tct-input-max-height:var(--tct-search-input-max-height, none);--tct-input-horizontal-gap:var(--tct-search-input-horizontal-gap, var(--app-scale-2x, 10px));--tct-input-icon-container-icon-min-width:var(--tct-search-icon-min-width, fit-content)}.popover-content{display:flex;flex-direction:column}.popover-content[data-loading=true]{min-height:var(--tct-search-loading-popover-height, var(--app-scale-12x, 60px));position:relative}.popover-content[data-loading=true] .loading-overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;pointer-events:none}.popover-content[data-loading=true] .loading-overlay q2-loading{--tct-loading-spinner-size:var(--tct-search-loading-spinner-size, var(--app-scale-8x, 40px));width:1em;height:1em}.popover-top-container[hidden],.popover-bottom-container[hidden]{display:none}.popover-top-container{position:sticky;top:0;z-index:5}.popover-top-container .multi-select-header{padding:var(--tct-search-multi-select-header-padding, var(--app-scale-2x, 10px));background:var(--tct-search-multi-select-header-background, var(--t-base, #ffffff));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-search-multi-select-option-padding, 2px 5px);font-size:var(--tct-search-multi-select-option-font-size, inherit);border-radius:var(--tct-search-multi-select-option-border-radius, var(--app-border-radius-1, 4px));background:var(--tct-search-multi-select-option-background, transparent);color:var(--tct-search-multi-select-option-font-color, inherit)}.popover-top-container .multi-select-header label:hover{background:var(--tct-search-multi-select-option-hover-background, var(--t-gray-14, #f2f2f2));color:var(--tct-search-multi-select-option-hover-font-color, var(--t-gray-5, #404040))}.popover-top-container .multi-select-header input:checked+label,.popover-top-container .multi-select-header input:checked+label:enabled:hover{background:var(--tct-search-multi-select-option-active-background, var(--t-gray-4, #333333));color:var(--tct-search-multi-select-option-active-font-color, var(--t-base, #ffffff))}.popover-top-container .multi-select-header input:disabled+label{opacity:var(--tct-search-multi-select-option-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)}.no-results{padding:var(--tct-search-no-results-padding, var(--app-scale-3x, 15px));color:var(--tct-search-no-results-font-color, var(--t-textA, rgba(77, 77, 77, 0.77)));text-align:center}';
|
|
665
670
|
|
|
666
671
|
export { h as q2_search }
|