q2-tecton-elements 1.69.1 → 1.70.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 +2246 -355
- package/dist/cjs/click-elsewhere_3.cjs.entry.js +2 -2
- package/dist/cjs/{index-D2LFCsNP.js → index-SpDCZABA.js} +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/q2-action-group_2.cjs.entry.js +1 -1
- package/dist/cjs/q2-action-sheet.cjs.entry.js +2 -2
- package/dist/cjs/q2-badge_2.cjs.entry.js +11 -4
- package/dist/cjs/q2-btn_2.cjs.entry.js +6 -2
- package/dist/cjs/q2-calendar.cjs.entry.js +5 -3
- package/dist/cjs/q2-card-image.cjs.entry.js +8 -6
- package/dist/cjs/q2-card.cjs.entry.js +2 -2
- 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 +2 -2
- package/dist/cjs/q2-checkbox-group.cjs.entry.js +1 -1
- package/dist/cjs/q2-checkbox_2.cjs.entry.js +4 -3
- package/dist/cjs/q2-context.cjs.entry.js +1 -1
- package/dist/cjs/q2-currency.cjs.entry.js +1 -1
- package/dist/cjs/q2-data-table.cjs.entry.js +6 -3
- package/dist/cjs/q2-detail.cjs.entry.js +2 -2
- package/dist/cjs/q2-dropdown-item.cjs.entry.js +1 -1
- package/dist/cjs/q2-dropdown.cjs.entry.js +3 -3
- package/dist/cjs/q2-editable-field.cjs.entry.js +12 -4
- package/dist/cjs/q2-file-picker.cjs.entry.js +1 -1
- package/dist/cjs/q2-icon.cjs.entry.js +1 -1
- package/dist/cjs/q2-item.cjs.entry.js +2 -2
- package/dist/cjs/q2-legend.cjs.entry.js +1 -1
- package/dist/cjs/q2-link_2.cjs.entry.js +2 -2
- package/dist/cjs/q2-loc.cjs.entry.js +20 -2
- package/dist/cjs/q2-message.cjs.entry.js +1 -1
- package/dist/cjs/q2-meter.cjs.entry.js +2 -2
- package/dist/cjs/q2-modal.cjs.entry.js +3 -3
- 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 +1 -1
- package/dist/cjs/q2-radio-group.cjs.entry.js +1 -1
- package/dist/cjs/q2-radio.cjs.entry.js +1 -1
- package/dist/cjs/q2-relative-time.cjs.entry.js +1 -1
- package/dist/cjs/q2-search.cjs.entry.js +101 -12
- package/dist/cjs/q2-section.cjs.entry.js +2 -2
- package/dist/cjs/q2-select.cjs.entry.js +36 -6
- package/dist/cjs/q2-stepper-pane.cjs.entry.js +1 -1
- package/dist/cjs/q2-stepper-vertical.cjs.entry.js +24 -18
- package/dist/cjs/q2-stepper.cjs.entry.js +5 -4
- package/dist/cjs/q2-surface.cjs.entry.js +95 -0
- 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 +2 -2
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/q2-action-sheet/q2-action-sheet.css +1 -1
- package/dist/collection/components/q2-btn/q2-btn.css +32 -17
- package/dist/collection/components/q2-btn/q2-btn.js +6 -1
- package/dist/collection/components/q2-calendar/q2-calendar.js +24 -2
- package/dist/collection/components/q2-calendar/test/q2-calendar-test.vr.js +4 -0
- package/dist/collection/components/q2-card/q2-card.css +2 -2
- package/dist/collection/components/q2-card-image/q2-card-image.css +3 -0
- package/dist/collection/components/q2-card-image/q2-card-image.js +25 -23
- package/dist/collection/components/q2-chart-area/q2-chart-area.css +4 -0
- package/dist/collection/components/q2-chart-bar/q2-chart-bar.css +4 -0
- package/dist/collection/components/q2-chart-donut/q2-chart-donut.css +1 -1
- package/dist/collection/components/q2-checkbox/q2-checkbox.js +2 -1
- package/dist/collection/components/q2-currency/q2-currency.css +1 -1
- package/dist/collection/components/q2-data-table/q2-data-table.js +5 -2
- package/dist/collection/components/q2-detail/q2-detail.css +12 -12
- package/dist/collection/components/q2-dropdown/q2-dropdown.js +2 -2
- package/dist/collection/components/q2-editable-field/q2-editable-field.js +11 -3
- package/dist/collection/components/q2-input/q2-input.css +11 -1
- package/dist/collection/components/q2-input/q2-input.js +29 -2
- package/dist/collection/components/q2-input/test/q2-input-test.vr.js +8 -0
- package/dist/collection/components/q2-item/q2-item.css +10 -5
- package/dist/collection/components/q2-item/test/q2-item-test.vr.js +132 -0
- package/dist/collection/components/q2-legend/q2-legend.css +2 -2
- package/dist/collection/components/q2-list/q2-list.css +1 -1
- package/dist/collection/components/q2-loc/q2-loc.js +42 -1
- package/dist/collection/components/q2-message/q2-message.css +4 -0
- package/dist/collection/components/q2-meter/q2-meter.css +3 -3
- package/dist/collection/components/q2-modal/q2-modal.css +1 -1
- package/dist/collection/components/q2-modal/q2-modal.js +2 -2
- package/dist/collection/components/q2-otp/q2-otp.css +33 -0
- package/dist/collection/components/q2-otp/test/q2-otp-test.vr.js +83 -0
- package/dist/collection/components/q2-popover/q2-popover.css +2 -1
- package/dist/collection/components/q2-radio/q2-radio.css +2 -0
- package/dist/collection/components/q2-search/q2-search.css +30 -0
- package/dist/collection/components/q2-search/q2-search.js +99 -10
- package/dist/collection/components/q2-search/test/q2-search-test.vr.js +145 -0
- package/dist/collection/components/q2-section/q2-section.css +1 -1
- package/dist/collection/components/q2-select/q2-select.css +4 -2
- package/dist/collection/components/q2-select/q2-select.js +54 -4
- package/dist/collection/components/q2-select/test/q2-select-test.vr.js +5 -0
- package/dist/collection/components/q2-stepper/q2-stepper.css +2 -2
- package/dist/collection/components/q2-stepper/q2-stepper.js +3 -2
- package/dist/collection/components/q2-stepper-vertical/q2-stepper-vertical.css +2 -2
- package/dist/collection/components/q2-stepper-vertical/q2-stepper-vertical.js +22 -16
- package/dist/collection/components/q2-surface/q2-surface.css +348 -0
- package/dist/collection/components/q2-surface/q2-surface.js +381 -0
- package/dist/collection/components/q2-surface/test/q2-surface-test.vr.js +108 -0
- package/dist/collection/components/q2-tab-container/q2-tab-container.js +1 -1
- package/dist/collection/components/q2-tab-pane/q2-tab-pane.js +1 -1
- package/dist/collection/components/q2-tag/q2-tag.js +1 -1
- package/dist/collection/components/q2-toast/q2-toast.js +3 -1
- package/dist/collection/components/tecton-tab-pane/tecton-tab-pane.js +2 -2
- package/dist/collection/utils/index.js +2 -2
- package/dist/components/index.js +12 -10
- package/dist/components/index2.js +3 -3
- package/dist/components/q2-action-sheet.js +1 -1
- package/dist/components/q2-btn2.js +5 -1
- package/dist/components/q2-calendar.js +294 -290
- package/dist/components/q2-card-image.js +9 -6
- package/dist/components/q2-card.js +14 -14
- package/dist/components/q2-chart-donut.js +1 -1
- package/dist/components/q2-checkbox2.js +12 -12
- package/dist/components/q2-currency.js +1 -1
- package/dist/components/q2-data-table.js +4 -4
- package/dist/components/q2-detail.js +1 -1
- package/dist/components/q2-dropdown.js +8 -8
- package/dist/components/q2-editable-field.js +15 -5
- package/dist/components/q2-input2.js +46 -26
- package/dist/components/q2-item2.js +1 -1
- package/dist/components/q2-legend2.js +51 -51
- package/dist/components/q2-list2.js +1 -1
- package/dist/components/q2-loc.js +23 -8
- package/dist/components/q2-meter.js +10 -10
- package/dist/components/q2-modal.js +54 -54
- package/dist/components/q2-popover2.js +1 -1
- package/dist/components/q2-search.js +106 -51
- package/dist/components/q2-section.js +1 -1
- package/dist/components/q2-select2.js +25 -9
- package/dist/components/q2-stepper-vertical.js +72 -63
- package/dist/components/q2-stepper.js +73 -71
- package/dist/components/q2-surface.d.ts +11 -0
- package/dist/components/q2-surface.js +109 -0
- package/dist/components/q2-tab-container.js +12 -12
- package/dist/components/q2-tab-pane.js +6 -6
- package/dist/components/q2-tag2.js +5 -5
- package/dist/components/tecton-tab-pane.js +10 -10
- package/dist/esm/click-elsewhere_3.entry.js +2 -2
- package/dist/esm/{index-Bx4m6N0g.js → index-Cps4jSQM.js} +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/q2-action-group_2.entry.js +1 -1
- package/dist/esm/q2-action-sheet.entry.js +2 -2
- package/dist/esm/q2-badge_2.entry.js +11 -4
- package/dist/esm/q2-btn_2.entry.js +6 -2
- package/dist/esm/q2-calendar.entry.js +5 -3
- package/dist/esm/q2-card-image.entry.js +8 -6
- package/dist/esm/q2-card.entry.js +2 -2
- 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 +2 -2
- package/dist/esm/q2-checkbox-group.entry.js +1 -1
- package/dist/esm/q2-checkbox_2.entry.js +4 -3
- package/dist/esm/q2-context.entry.js +1 -1
- package/dist/esm/q2-currency.entry.js +1 -1
- package/dist/esm/q2-data-table.entry.js +6 -3
- package/dist/esm/q2-detail.entry.js +2 -2
- package/dist/esm/q2-dropdown-item.entry.js +1 -1
- package/dist/esm/q2-dropdown.entry.js +3 -3
- package/dist/esm/q2-editable-field.entry.js +12 -4
- package/dist/esm/q2-file-picker.entry.js +1 -1
- package/dist/esm/q2-icon.entry.js +1 -1
- package/dist/esm/q2-item.entry.js +2 -2
- package/dist/esm/q2-legend.entry.js +1 -1
- package/dist/esm/q2-link_2.entry.js +2 -2
- package/dist/esm/q2-loc.entry.js +20 -2
- package/dist/esm/q2-message.entry.js +1 -1
- package/dist/esm/q2-meter.entry.js +2 -2
- package/dist/esm/q2-modal.entry.js +3 -3
- 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 +1 -1
- package/dist/esm/q2-radio-group.entry.js +1 -1
- package/dist/esm/q2-radio.entry.js +1 -1
- package/dist/esm/q2-relative-time.entry.js +1 -1
- package/dist/esm/q2-search.entry.js +101 -12
- package/dist/esm/q2-section.entry.js +2 -2
- package/dist/esm/q2-select.entry.js +36 -6
- package/dist/esm/q2-stepper-pane.entry.js +1 -1
- package/dist/esm/q2-stepper-vertical.entry.js +24 -18
- package/dist/esm/q2-stepper.entry.js +5 -4
- package/dist/esm/q2-surface.entry.js +93 -0
- 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 +2 -2
- package/dist/q2-tecton-elements/click-elsewhere_3.entry.js +2 -2
- package/dist/q2-tecton-elements/{index-Bx4m6N0g.js → index-Cps4jSQM.js} +3 -3
- package/dist/q2-tecton-elements/q2-action-group_2.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-action-sheet.entry.js +2 -2
- package/dist/q2-tecton-elements/q2-badge_2.entry.js +51 -32
- package/dist/q2-tecton-elements/q2-btn_2.entry.js +6 -2
- package/dist/q2-tecton-elements/q2-calendar.entry.js +7 -4
- package/dist/q2-tecton-elements/q2-card-image.entry.js +65 -62
- package/dist/q2-tecton-elements/q2-card.entry.js +2 -2
- 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 +54 -54
- package/dist/q2-tecton-elements/q2-chart-bar.entry.js +3 -3
- package/dist/q2-tecton-elements/q2-chart-donut.entry.js +7 -7
- package/dist/q2-tecton-elements/q2-checkbox-group.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-checkbox_2.entry.js +18 -18
- package/dist/q2-tecton-elements/q2-context.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-currency.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-data-table.entry.js +50 -50
- package/dist/q2-tecton-elements/q2-detail.entry.js +2 -2
- package/dist/q2-tecton-elements/q2-dropdown-item.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-dropdown.entry.js +16 -16
- package/dist/q2-tecton-elements/q2-editable-field.entry.js +15 -8
- package/dist/q2-tecton-elements/q2-file-picker.entry.js +1 -1
- 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-legend.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-link_2.entry.js +2 -2
- package/dist/q2-tecton-elements/q2-loc.entry.js +20 -6
- package/dist/q2-tecton-elements/q2-message.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-meter.entry.js +2 -2
- package/dist/q2-tecton-elements/q2-modal.entry.js +55 -55
- package/dist/q2-tecton-elements/q2-month-picker.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-optgroup.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-option.entry.js +7 -7
- 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 +1 -1
- package/dist/q2-tecton-elements/q2-radio-group.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-radio.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-relative-time.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-search.entry.js +108 -53
- package/dist/q2-tecton-elements/q2-section.entry.js +2 -2
- package/dist/q2-tecton-elements/q2-select.entry.js +25 -10
- package/dist/q2-tecton-elements/q2-stepper-pane.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-stepper-vertical.entry.js +75 -66
- package/dist/q2-tecton-elements/q2-stepper.entry.js +47 -45
- package/dist/q2-tecton-elements/q2-surface.entry.js +89 -0
- package/dist/q2-tecton-elements/q2-tab-container.entry.js +13 -13
- package/dist/q2-tecton-elements/q2-tab-pane.entry.js +2 -2
- 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 +5 -5
- package/dist/q2-tecton-elements/q2-tooltip.entry.js +8 -8
- package/dist/q2-tecton-elements/tecton-tab-pane.entry.js +6 -6
- package/dist/types/components/q2-calendar/q2-calendar.d.ts +2 -0
- package/dist/types/components/q2-card-image/q2-card-image.d.ts +5 -5
- package/dist/types/components/q2-editable-field/q2-editable-field.d.ts +1 -0
- package/dist/types/components/q2-input/q2-input.d.ts +3 -0
- package/dist/types/components/q2-item/test/q2-item-test.vr.d.ts +1 -0
- package/dist/types/components/q2-loc/q2-loc.d.ts +6 -0
- package/dist/types/components/q2-modal/q2-modal.d.ts +1 -1
- package/dist/types/components/q2-otp/test/q2-otp-test.vr.d.ts +1 -0
- package/dist/types/components/q2-search/q2-search.d.ts +7 -0
- package/dist/types/components/q2-search/test/q2-search-test.vr.d.ts +1 -0
- package/dist/types/components/q2-select/q2-select.d.ts +4 -0
- package/dist/types/components/q2-stepper-vertical/q2-stepper-vertical.d.ts +2 -1
- package/dist/types/components/q2-surface/q2-surface.d.ts +54 -0
- package/dist/types/components/q2-surface/test/q2-surface-test.vr.d.ts +1 -0
- package/dist/types/components/q2-toast/q2-toast.d.ts +3 -1
- package/dist/types/components.d.ts +259 -13
- package/dist/types/utils/index.d.ts +3 -1
- package/package.json +4 -3
|
@@ -1,10 +1,19 @@
|
|
|
1
1
|
import { r as t, g as s } from "./index-Cqkz7Bnm.js";
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { s as i } from "./sanitize-html-string-DPHNpMWE.js";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
import { l as n } from "./index-Cps4jSQM.js";
|
|
6
|
+
|
|
7
|
+
const e = class {
|
|
6
8
|
constructor(s) {
|
|
7
|
-
t(this, s),
|
|
9
|
+
t(this, s),
|
|
10
|
+
// #endregion
|
|
11
|
+
// #region Public Property API
|
|
12
|
+
/**
|
|
13
|
+
* When true, allows HTML tags in the localized string to be rendered as HTML.
|
|
14
|
+
* @warning Only use this with trusted localization strings, as it uses innerHTML and may expose XSS vulnerabilities. See the FAQ "Can I add HTML to my localization strings?" for usage guidance.
|
|
15
|
+
*/
|
|
16
|
+
this.ignoreTag = !1, this.initMutationObserver = () => {
|
|
8
17
|
if (!("MutationObserver" in window)) return;
|
|
9
18
|
const t = new MutationObserver(this.mutationHandler);
|
|
10
19
|
t.observe(this.hostElement, {
|
|
@@ -32,22 +41,27 @@ const n = class {
|
|
|
32
41
|
componentDidLoad() {
|
|
33
42
|
this.initMutationObserver();
|
|
34
43
|
}
|
|
44
|
+
componentDidRender() {
|
|
45
|
+
this.ignoreTag && (this.hostElement.innerHTML = i(this.translatedValue));
|
|
46
|
+
}
|
|
35
47
|
// #endregion
|
|
36
48
|
// #region Local Methods
|
|
37
49
|
get hostTextContent() {
|
|
38
50
|
return this.hostElement.textContent.trim();
|
|
39
51
|
}
|
|
40
52
|
get translatedValue() {
|
|
41
|
-
return
|
|
53
|
+
return n(this.value, this.substitutions, this.ignoreTag ? {
|
|
54
|
+
ignoreTag: !0
|
|
55
|
+
} : void 0);
|
|
42
56
|
}
|
|
43
57
|
// #endregion
|
|
44
58
|
// #region Render Methods
|
|
45
59
|
render() {
|
|
46
|
-
return this.translatedValue;
|
|
60
|
+
return this.ignoreTag ? null : this.translatedValue;
|
|
47
61
|
}
|
|
48
62
|
get hostElement() {
|
|
49
63
|
return s(this);
|
|
50
64
|
}
|
|
51
65
|
};
|
|
52
66
|
|
|
53
|
-
export {
|
|
67
|
+
export { e as q2_loc }
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as t, h as e, g as r } from "./index-Cqkz7Bnm.js";
|
|
2
2
|
|
|
3
|
-
import { l as i } from "./index-
|
|
3
|
+
import { l as i } from "./index-Cps4jSQM.js";
|
|
4
4
|
|
|
5
5
|
const o = class {
|
|
6
6
|
constructor(e) {
|
|
@@ -153,6 +153,6 @@ const o = class {
|
|
|
153
153
|
}
|
|
154
154
|
};
|
|
155
155
|
|
|
156
|
-
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}:host{width:100%}.meter-container{--comp-meter-bar-height:var(--tct-meter-bar-height, 10px);--comp-meter-bar-border-radius:var(--tct-meter-bar-border-radius, calc(var(--comp-meter-bar-height) / 2));--comp-meter-dot-height:var(--tct-meter-dot-size, var(--tct-meter-bar-height, 10px));--comp-meter-dot-border-style:var(--tct-meter-dot-border-style, solid);--comp-meter-dot-border-width:var(--tct-meter-dot-border-width, calc(0.2 * var(--comp-meter-bar-height)));--comp-meter-dot-border-color:var(--tct-meter-dot-border-color, #FFFFFF);--comp-meter-dot-border-radius:var(--tct-meter-dot-border-radius, 50%);--comp-meter-dot-background-color:var(--tct-meter-dot-background-color, var(--t-primary, #6A4A9E));--comp-meter-tick-height:var(--tct-meter-ticket-height, calc(0.4 * var(--comp-meter-bar-height)));--comp-meter-bar-shadow:var(--tct-meter-bar-shadow);--comp-meter-bar-border:var(--tct-meter-bar-border)}:host([animated]:not([animated=false])) .meter-container{--comp-meter-bar-transition:var(--tct-meter-bar-transition, width 0.2s ease-in-out);--comp-meter-dot-transition:var(--tct-meter-dot-transition, left 0.2s ease-in-out)}:host([dotted]:not([dotted=false])) .meter-container{--comp-meter-dot-visibility:visible}:host([segments]:not([segments=""]):not([segments="0"]):not([segments="1"])) .meter-container{--comp-meter-tick-visibility:visible}.meter-container .label{font-size:var(--tct-meter-label-font-size, 14px);font-weight:var(--tct-meter-label-font-weight, 600);color:var(--tct-meter-label-color,
|
|
156
|
+
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}:host{width:100%}.meter-container{--comp-meter-bar-height:var(--tct-meter-bar-height, 10px);--comp-meter-bar-border-radius:var(--tct-meter-bar-border-radius, calc(var(--comp-meter-bar-height) / 2));--comp-meter-dot-height:var(--tct-meter-dot-size, var(--tct-meter-bar-height, 10px));--comp-meter-dot-border-style:var(--tct-meter-dot-border-style, solid);--comp-meter-dot-border-width:var(--tct-meter-dot-border-width, calc(0.2 * var(--comp-meter-bar-height)));--comp-meter-dot-border-color:var(--tct-meter-dot-border-color, #FFFFFF);--comp-meter-dot-border-radius:var(--tct-meter-dot-border-radius, 50%);--comp-meter-dot-background-color:var(--tct-meter-dot-background-color, var(--t-primary, #6A4A9E));--comp-meter-tick-height:var(--tct-meter-ticket-height, calc(0.4 * var(--comp-meter-bar-height)));--comp-meter-bar-shadow:var(--tct-meter-bar-shadow);--comp-meter-bar-border:var(--tct-meter-bar-border)}:host([animated]:not([animated=false])) .meter-container{--comp-meter-bar-transition:var(--tct-meter-bar-transition, width 0.2s ease-in-out);--comp-meter-dot-transition:var(--tct-meter-dot-transition, left 0.2s ease-in-out)}:host([dotted]:not([dotted=false])) .meter-container{--comp-meter-dot-visibility:visible}:host([segments]:not([segments=""]):not([segments="0"]):not([segments="1"])) .meter-container{--comp-meter-tick-visibility:visible}.meter-container .label{font-size:var(--tct-meter-label-font-size, 14px);font-weight:var(--tct-meter-label-font-weight, 600);color:var(--tct-meter-label-color, inherit);margin:var(--tct-meter-label-margin, 5px 0)}.meter-container .description{font-size:var(--tct-meter-description-font-size, 14px);font-weight:var(--tct-meter-description-font-weight, 400);color:var(--tct-meter-description-color, inherit);line-height:var(--tct-meter-description-line-height, 21px);margin:var(--tct-meter-description-margin, 5px 0)}.meter-container .bar-container{position:relative}.meter-container .bar-container .bars{position:relative;top:0;left:0;width:100%;height:var(--comp-meter-bar-height);background-color:var(--tct-meter-bar-background-color, var(--t-primary-completed2, #E0DEEF));margin:var(--tct-meter-bar-margin, 5px 0);border:var(--comp-meter-bar-border);border-radius:var(--comp-meter-bar-border-radius);box-shadow:var(--comp-meter-bar-shadow)}.meter-container .bar-container .bars .completed-bar,.meter-container .bar-container .bars .suggested-bar,.meter-container .bar-container .bars .tick-bar{height:100%;position:absolute;top:0;left:0;border-radius:var(--comp-meter-bar-border-radius);transition:var(--comp-meter-bar-transition, none)}.meter-container .bar-container .bars .completed-bar{background-color:var(--tct-meter-completed-bar-background-color, var(--t-primary, #6A4A9E));min-width:calc(var(--comp-meter-bar-height));width:0%;z-index:2}.meter-container .bar-container .bars .suggested-bar{background-color:var(--tct-meter-suggested-bar-background-color, var(--t-primary-l5, #B4A0D3));min-width:calc(var(--comp-meter-bar-height));width:0%;z-index:1}.meter-container .bar-container .bars .tick-bar{visibility:var(--comp-meter-tick-visibility, hidden);width:100%;z-index:3;display:flex;justify-content:space-evenly;align-items:center}.meter-container .bar-container .bars .tick-bar .tick{width:100%;border-right-width:var(--tct-meter-tick-width, 1px);border-right-color:var(--tct-meter-tick-color, var(--t-primary-l5, #B4A0D3));border-right-style:solid;height:var(--comp-meter-tick-height)}.meter-container .bar-container .bars .tick-bar .tick.tick-right{border-right-color:var(--tct-meter-tick-right-color, var(--t-a11y-gray-color-AA, #949494))}.meter-container .bar-container .bars .tick-bar .tick:last-child{border-color:transparent}.meter-container .bar-container .dot-container{position:absolute;line-height:0;left:0;top:calc(50% - var(--comp-meter-dot-height) / 2 - var(--comp-meter-dot-border-width));transform:translateX(-50%);transition:var(--comp-meter-dot-transition, none);z-index:4}.meter-container .bar-container .dot-container .dot{visibility:var(--comp-meter-dot-visibility, hidden);width:calc(var(--comp-meter-dot-height) + 2 * var(--comp-meter-dot-border-width));height:calc(var(--comp-meter-dot-height) + 2 * var(--comp-meter-dot-border-width));background-color:var(--comp-meter-dot-background-color);border-style:var(--comp-meter-dot-border-style);border-width:var(--comp-meter-dot-border-width);border-color:var(--comp-meter-dot-border-color);border-radius:var(--comp-meter-dot-border-radius);box-shadow:var(--tct-meter-dot-box-shadow, var(--app-shadow-1))}.meter-container .bar-container .dot-container.suggested .dot{visibility:hidden}.meter-container .legends{display:flex;flex-direction:row;justify-content:space-between;color:var(--tct-meter-legend-label-color, inherit);font-weight:var(--tct-meter-legend-font-weight, 400);margin:var(--tct-meter-legend-margin, 5px 0)}.meter-container .legends .left{display:flex;flex-direction:row}.meter-container .legends .left .completed,.meter-container .legends .left .suggested{display:flex;flex-direction:row;align-items:center}.meter-container .legends .left .completed .dot,.meter-container .legends .left .suggested .dot{margin-right:var(--tct-meter-dot-gap, 5px);border-radius:var(--tct-meter-legend-dot-radius, var(--app-border-radius-3, 5px));width:var(--tct-meter-legend-bar-width, 7px);height:var(--tct-meter-legend-bar-height, 7px)}.meter-container .legends .left .completed .legend-label,.meter-container .legends .left .suggested .legend-label{font-size:inherit}.meter-container .legends .left .completed{margin-right:var(--tct-meter-legend-gap, 20px)}.meter-container .legends .left .completed .dot{background-color:var(--tct-meter-completed-bar-background-color, var(--t-primary, #6A4A9E))}.meter-container .legends .left .suggested .dot{background-color:var(--tct-meter-suggested-bar-background-color, var(--t-primary-l5, #B4A0D3))}.meter-container .legends .right .max{font-size:inherit;text-align:right}';
|
|
157
157
|
|
|
158
158
|
export { o as q2_meter }
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { r as t, c as
|
|
1
|
+
import { r as t, c as a, h as o, g as i } from "./index-Cqkz7Bnm.js";
|
|
2
2
|
|
|
3
|
-
import { e, w as r, h as s } from "./index-
|
|
3
|
+
import { e, w as r, h as s } from "./index-Cps4jSQM.js";
|
|
4
4
|
|
|
5
|
-
import { s as
|
|
5
|
+
import { s as n } from "./sanitize-html-string-DPHNpMWE.js";
|
|
6
6
|
|
|
7
|
-
const
|
|
8
|
-
constructor(
|
|
9
|
-
t(this,
|
|
10
|
-
this.tctOpen =
|
|
7
|
+
const c = class {
|
|
8
|
+
constructor(o) {
|
|
9
|
+
t(this, o), this.tctClick = a(this, "tctClick", 7), this.tctClose = a(this, "tctClose", 7),
|
|
10
|
+
this.tctOpen = a(this, "tctOpen", 7), this.tctReady = a(this, "tctReady", 3),
|
|
11
11
|
// #region Own Properties
|
|
12
12
|
// to prevent background scroll when modal scrolls
|
|
13
13
|
this.bodyOverflow = "", this.scheduledAfterRender = [],
|
|
@@ -24,8 +24,8 @@ const n = class {
|
|
|
24
24
|
// #region Local Methods
|
|
25
25
|
this.initializeModal = () => {
|
|
26
26
|
// limits 4 buttons in action slot
|
|
27
|
-
this.hostElement.querySelectorAll('[slot="action"]').forEach(((t,
|
|
28
|
-
|
|
27
|
+
this.hostElement.querySelectorAll('[slot="action"]').forEach(((t, a) => {
|
|
28
|
+
a >= this.maxActionButtons && (console.warn(`q2-modal allows up to ${this.maxActionButtons} action buttons, [${t.getAttribute("label") || t.textContent}] button is now hidden.`),
|
|
29
29
|
t.hidden = !0);
|
|
30
30
|
})), this.contentElement.scrollTo({
|
|
31
31
|
top: 0
|
|
@@ -34,19 +34,19 @@ const n = class {
|
|
|
34
34
|
t.preventDefault(), this.closeModal();
|
|
35
35
|
}, this.onClick = t => {
|
|
36
36
|
t.stopPropagation();
|
|
37
|
-
const
|
|
38
|
-
if (!(
|
|
39
|
-
if ("action" ===
|
|
40
|
-
value:
|
|
37
|
+
const a = t.target;
|
|
38
|
+
if (!(a instanceof HTMLElement)) return;
|
|
39
|
+
if ("action" === a.getAttribute("slot")) this.tctClick.emit({
|
|
40
|
+
value: a.dataset.value
|
|
41
41
|
}), this.onCancel(t); else {
|
|
42
|
-
if (!!
|
|
42
|
+
if (!!a.closest(".interior , q2-modal")) return;
|
|
43
43
|
this.onCancel(t);
|
|
44
44
|
}
|
|
45
45
|
}, this.onContentScroll = () => {
|
|
46
46
|
var t;
|
|
47
|
-
const
|
|
47
|
+
const a = this.contentElement.scrollHeight, o = Math.ceil(this.contentElement.scrollTop), i = Math.ceil((null === (t = this.contentElement.getBoundingClientRect()) || void 0 === t ? void 0 : t.height) || 0);
|
|
48
48
|
// to show bottom gradient when more contents available
|
|
49
|
-
|
|
49
|
+
a > i ? a <= i + o ? this.contentElement.classList.remove("more-gradient") : this.contentElement.classList.add("more-gradient") : this.contentElement.classList.remove("more-gradient");
|
|
50
50
|
};
|
|
51
51
|
}
|
|
52
52
|
// #endregion
|
|
@@ -76,8 +76,8 @@ const n = class {
|
|
|
76
76
|
});
|
|
77
77
|
}
|
|
78
78
|
async openModal(t) {
|
|
79
|
-
var
|
|
80
|
-
(null === (
|
|
79
|
+
var a;
|
|
80
|
+
(null === (a = this.dialogElement) || void 0 === a ? void 0 : a.open) || (this.tctOpen.emit(t),
|
|
81
81
|
await r(),
|
|
82
82
|
// overwrite the properties if option provided
|
|
83
83
|
t && (this.title = (null == t ? void 0 : t.title) || this.title, this.description = (null == t ? void 0 : t.description) || this.description,
|
|
@@ -94,62 +94,62 @@ const n = class {
|
|
|
94
94
|
// #region Render Methods
|
|
95
95
|
render() {
|
|
96
96
|
const t = `${this.renderStatus || ""}`;
|
|
97
|
-
return
|
|
98
|
-
key: "
|
|
97
|
+
return o("dialog", {
|
|
98
|
+
key: "92dc143e4337dbe56582ec8ef8f0568dd71e3e55",
|
|
99
99
|
ref: t => this.dialogElement = t,
|
|
100
100
|
class: t,
|
|
101
101
|
onClick: this.onClick
|
|
102
|
-
},
|
|
103
|
-
key: "
|
|
102
|
+
}, o("div", {
|
|
103
|
+
key: "8528e0443f56c88b0e3454cc5b33e5307c93b4b3",
|
|
104
104
|
class: "interior"
|
|
105
|
-
}, this.title &&
|
|
106
|
-
key: "
|
|
107
|
-
}, this.title &&
|
|
108
|
-
key: "
|
|
105
|
+
}, this.title && o("header", {
|
|
106
|
+
key: "58082ec96ee55a2054ced1d14c71ca048a9af336"
|
|
107
|
+
}, this.title && o("h2", {
|
|
108
|
+
key: "8ac56ee9d3eb84056faaa748a9a2d69ef946eeeb",
|
|
109
109
|
class: "title"
|
|
110
|
-
}, this.title), !!this.closable &&
|
|
111
|
-
key: "
|
|
110
|
+
}, this.title), !!this.closable && o("q2-btn", {
|
|
111
|
+
key: "664890ce00ec76f4f4339f1b32579cfe95f8ad40",
|
|
112
112
|
class: "btn-close",
|
|
113
113
|
"test-id": "btnClose",
|
|
114
114
|
onClick: this.onCancel,
|
|
115
115
|
label: "tecton.element.modal.close",
|
|
116
116
|
"hide-label": !0
|
|
117
|
-
},
|
|
118
|
-
key: "
|
|
117
|
+
}, o("q2-icon", {
|
|
118
|
+
key: "3c9349bf6456c8684ac87d3c6918820081e2657b",
|
|
119
119
|
type: "close"
|
|
120
|
-
}))),
|
|
121
|
-
key: "
|
|
120
|
+
}))), o("div", {
|
|
121
|
+
key: "76fa2465d4d60db5e0843274348b85eaf1a49ed6",
|
|
122
122
|
class: "content",
|
|
123
123
|
ref: t => this.contentElement = t
|
|
124
|
-
}, this.icon &&
|
|
125
|
-
key: "
|
|
124
|
+
}, this.icon && o("div", {
|
|
125
|
+
key: "d9d7ae8b43dae09abbaf3fcfec61fdf66ab0f619",
|
|
126
126
|
class: "icon"
|
|
127
|
-
},
|
|
128
|
-
key: "
|
|
127
|
+
}, o("q2-icon", {
|
|
128
|
+
key: "3db0ae939a529933b79018a23b88a7d429658a9a",
|
|
129
129
|
type: this.icon
|
|
130
|
-
})), this.imageSrc &&
|
|
131
|
-
key: "
|
|
130
|
+
})), this.imageSrc && o("div", {
|
|
131
|
+
key: "bf295b4c233610b87b6f75557f4c4d439d757c96",
|
|
132
132
|
class: "image"
|
|
133
|
-
},
|
|
134
|
-
key: "
|
|
133
|
+
}, o("img", {
|
|
134
|
+
key: "ffcd4e115096ed4e48349ba28b00a261bdd78f7b",
|
|
135
135
|
src: this.imageSrc
|
|
136
|
-
})), s(this.hostElement, "content") &&
|
|
137
|
-
key: "
|
|
136
|
+
})), s(this.hostElement, "content") && o("slot", {
|
|
137
|
+
key: "09342f081d5307fe109e247a6c2de7bca0fd6b0f",
|
|
138
138
|
name: "content"
|
|
139
|
-
}), this.description &&
|
|
140
|
-
key: "
|
|
139
|
+
}), this.description && o("p", {
|
|
140
|
+
key: "892e4550e230f47e26e757b6f483c2bee0f424ce",
|
|
141
141
|
class: "description"
|
|
142
|
-
}, this.description), this.customMarkup &&
|
|
143
|
-
key: "
|
|
142
|
+
}, this.description), this.customMarkup && o("p", {
|
|
143
|
+
key: "625a6ee4350fe16c3589ebed630f86be8a420609",
|
|
144
144
|
class: "customMarkup",
|
|
145
|
-
innerHTML:
|
|
146
|
-
})),
|
|
147
|
-
key: "
|
|
148
|
-
},
|
|
149
|
-
key: "
|
|
145
|
+
innerHTML: n(this.customMarkup)
|
|
146
|
+
})), o("footer", {
|
|
147
|
+
key: "7663cc739e8fe908b9a916e1ddbc0a0364c8023f"
|
|
148
|
+
}, o("q2-action-group", {
|
|
149
|
+
key: "a426f7228f0f4a7ae991fc65d221795279ec2530",
|
|
150
150
|
"full-width": !0
|
|
151
|
-
},
|
|
152
|
-
key: "
|
|
151
|
+
}, o("slot", {
|
|
152
|
+
key: "f6862c2074f18f31a9775f2de07aaa3e8904ac76",
|
|
153
153
|
name: "action"
|
|
154
154
|
})))));
|
|
155
155
|
}
|
|
@@ -158,6 +158,6 @@ const n = class {
|
|
|
158
158
|
}
|
|
159
159
|
};
|
|
160
160
|
|
|
161
|
-
|
|
161
|
+
c.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}@keyframes showBackdrop{from{opacity:0}}@keyframes hideBackdrop{to{opacity:0}}dialog{--comp-border-radius-default:var(--app-scale-3x, 15px);--comp-border-radius:var(--tct-modal-border-radius, var(--comp-border-radius-default));--comp-desktop-border-radius:var(--tct-modal-border-radius, var(--app-scale-3x, 15px));--comp-close-button-size:var(--tct-modal-close-button-size, var(--t-a11y-min-size, 44px));--comp-header-height:var(--tct-modal-header-height, var(--t-a11y-min-size, 44px));--comp-dialog-background:var(--tct-modal-background, var(--t-base, #ffffff));--comp-dialog-color:var(--tct-modal-color, inherit);--comp-dialog-padding:var(--tct-modal-padding, var(--app-scale-3x, 15px));--comp-content-gradient-height:var(--tct-modal-content-gradient-height, var(--app-scale-2x, 10px));--comp-dialog-gap:var(--tct-modal-gap, var(--app-scale-2x, 10px));--comp-dialog-max-width:var(--tct-modal-max-width, 600px);--comp-dialog-max-height:var(--tct-modal-max-height, 100vh);--comp-dialog-min-height:var(--tct-modal-min-height, 40vh);--comp-dialog-box-shadow:var(--tct-modal-box-shadow, var(--app-shadow-2, 0px 0px 2px rgba(0, 0, 0, 0.12), 0px 4px 8px rgba(0, 0, 0, 0.14)));position:fixed;top:100%;bottom:unset;color:var(--comp-dialog-color);background:var(--comp-dialog-background);transition:transform var(--tct-modal-tween, var(--app-tween-2, 0.4s ease)), opacity var(--tct-modal-tween, var(--app-tween-2, 0.4s ease));width:100%;max-width:var(--comp-dialog-max-width);border:0;border-radius:var(--comp-border-radius);box-shadow:var(--comp-dialog-box-shadow);padding:0;height:auto;overflow:hidden}dialog::backdrop{opacity:0;background:var(--tct-modal-backdrop-background, var(--t-top-a2, rgba(13, 13, 13, 0.6)))}dialog[open]{border-radius:var(--comp-desktop-border-radius);top:0px;bottom:0px;height:fit-content;transform:translateY(10%);opacity:1}dialog[open].is-opening,dialog[open].is-open{opacity:1;transform:translateY(0)}dialog[open].is-opening::backdrop,dialog[open].is-open::backdrop{opacity:1;animation:showBackdrop var(--tct-modal-tween, var(--app-tween-2, 0.4s ease))}dialog[open].is-closing{transform:translateY(10%)}dialog[open].is-closing::backdrop{animation:hideBackdrop var(--tct-modal-tween, var(--app-tween-2, 0.4s ease))}.content{overflow-y:auto;--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}.content::-webkit-scrollbar{width:var(--comp-scrollbar-size);height:var(--comp-scrollbar-size);margin:5px}.content::-webkit-scrollbar-thumb{background:var(--comp-scrollbar-color);border-radius:var(--comp-scrollbar-border-radius)}.content::-webkit-scrollbar-track{background:transparent;border-radius:var(--comp-scrollbar-border-radius)}.content .icon{height:var(--tct-modal-icon-size, var(--app-scale-9x, 45px));margin:var(--tct-modal-icon-margin, var(--app-scale-2x, 10px));display:flex;justify-content:center}.content .icon q2-icon{width:var(--tct-modal-icon-size, var(--app-scale-9x, 45px))}.content .image{display:flex;justify-content:center}.content .image img{width:100%;border-radius:var(--tct-modal-image-border-radius, var(--app-border-radius-2, 8px))}.content .description{font-size:var(--tct-modal-description-font-size, 14px)}.content.more-gradient{-webkit-mask-image:linear-gradient(to bottom, red 85%, transparent 100%);mask-image:linear-gradient(to bottom, red 85%, transparent 100%)}.interior{display:grid;min-height:var(--comp-dialog-min-height);grid-template-rows:auto 1fr auto;gap:var(--comp-dialog-gap);max-height:calc(var(--comp-dialog-max-height) - var(--comp-dialog-padding));padding:var(--comp-dialog-padding)}.interior.is-list header,.interior.is-list footer{position:relative}.interior.is-list header:before,.interior.is-list footer:before{content:"";display:block;position:absolute;left:0;height:var(--comp-content-gradient-height);width:100%;z-index:1}header{display:flex;justify-content:space-between;align-items:center}header .title{text-overflow:ellipsis;overflow:hidden;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;text-align:left;font-weight:var(--tct-modal-title-font-weight, 400);margin:0}header .btn-close{grid-area:close;width:var(--comp-close-button-size);height:var(--comp-close-button-size)}';
|
|
162
162
|
|
|
163
|
-
export {
|
|
163
|
+
export { c as q2_modal }
|
|
@@ -2,7 +2,7 @@ import { r as t, h as e, g as o } from "./index-Cqkz7Bnm.js";
|
|
|
2
2
|
|
|
3
3
|
import { b as r } from "./component-DaQM9u3s.js";
|
|
4
4
|
|
|
5
|
-
import { c as i, l as a } from "./index-
|
|
5
|
+
import { c as i, l as a } from "./index-Cps4jSQM.js";
|
|
6
6
|
|
|
7
7
|
const s = class {
|
|
8
8
|
constructor(e) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as t, c as e, h as i, H as o, g as
|
|
1
|
+
import { r as t, c as e, h as i, H as o, g as s } from "./index-Cqkz7Bnm.js";
|
|
2
2
|
|
|
3
|
-
import { m as
|
|
3
|
+
import { m as a, l as r } from "./index-Cps4jSQM.js";
|
|
4
4
|
|
|
5
5
|
import { b as n } from "./component-DaQM9u3s.js";
|
|
6
6
|
|
|
@@ -29,7 +29,7 @@ const c = class {
|
|
|
29
29
|
// #region Local Methods
|
|
30
30
|
this.initDisplay = async () => {
|
|
31
31
|
if (this.multiline) return;
|
|
32
|
-
const t = await
|
|
32
|
+
const t = await a(this.hostElement);
|
|
33
33
|
this.display && (this.displayProvidedAtInit = !0), this.display = this.display ? r(this.display) : t,
|
|
34
34
|
this.setTextContent();
|
|
35
35
|
}, this.initMutationObserver = () => {
|
|
@@ -41,7 +41,7 @@ const c = class {
|
|
|
41
41
|
characterData: !0
|
|
42
42
|
}), this.mutationObserver = t;
|
|
43
43
|
}, this.mutationHandler = async () => {
|
|
44
|
-
const t = await
|
|
44
|
+
const t = await a(this.hostElement);
|
|
45
45
|
this.display === t || this.multiline || this.displayProvidedAtInit || (this.display = t);
|
|
46
46
|
}, this.setTextContent = () => {
|
|
47
47
|
const t = !!this.hostElement.querySelector("q2-loc");
|
|
@@ -74,11 +74,11 @@ const c = class {
|
|
|
74
74
|
// #endregion
|
|
75
75
|
// #region Render Methods
|
|
76
76
|
renderOption() {
|
|
77
|
-
const {display: t, disabled: e, disabledGroup:
|
|
77
|
+
const {display: t, disabled: e, disabledGroup: s, selected: a, _multiSelectHidden: n, role: c} = this, d = e || s;
|
|
78
78
|
return i(o, {
|
|
79
79
|
tabindex: "-1",
|
|
80
80
|
"aria-disabled": d ? "true" : void 0,
|
|
81
|
-
"aria-selected": "menuitem" === c ? void 0 : `${!!
|
|
81
|
+
"aria-selected": "menuitem" === c ? void 0 : `${!!a}`,
|
|
82
82
|
"aria-hidden": n ? "true" : void 0,
|
|
83
83
|
display: r(t),
|
|
84
84
|
onClick: () => {
|
|
@@ -110,7 +110,7 @@ const c = class {
|
|
|
110
110
|
return this.separator ? this.renderSeparator() : this.renderOption();
|
|
111
111
|
}
|
|
112
112
|
get hostElement() {
|
|
113
|
-
return
|
|
113
|
+
return s(this);
|
|
114
114
|
}
|
|
115
115
|
static get watchers() {
|
|
116
116
|
return {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as t, c as e, h as i, g as n } from "./index-Cqkz7Bnm.js";
|
|
2
2
|
|
|
3
|
-
import { n as a, o as s, i as o, b as r, l as c } from "./index-
|
|
3
|
+
import { n as a, o as s, i as o, b as r, l as c } from "./index-Cps4jSQM.js";
|
|
4
4
|
|
|
5
5
|
import { m as h } from "./mirror-emit-DUjY_ucm.js";
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as t, c as o, h as i, g as e } from "./index-Cqkz7Bnm.js";
|
|
2
2
|
|
|
3
|
-
import { a, o as r, i as n, w as c, l as s } from "./index-
|
|
3
|
+
import { a, o as r, i as n, w as c, l as s } from "./index-Cps4jSQM.js";
|
|
4
4
|
|
|
5
5
|
import { m as l } from "./mirror-emit-DUjY_ucm.js";
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as t, c as r, h as a, F as o, g as i } from "./index-Cqkz7Bnm.js";
|
|
2
2
|
|
|
3
|
-
import { c as e, o as n, i as s, r as d } from "./index-
|
|
3
|
+
import { c as e, o as n, i as s, r as d } from "./index-Cps4jSQM.js";
|
|
4
4
|
|
|
5
5
|
import { m as l } from "./mirror-emit-DUjY_ucm.js";
|
|
6
6
|
|