q2-tecton-elements 1.67.1 → 1.67.2
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 +23 -68
- package/dist/cjs/click-elsewhere.q2-option-list.q2-popover.entry.cjs.js.map +1 -1
- package/dist/cjs/click-elsewhere_3.cjs.entry.js +17 -28
- package/dist/cjs/click-elsewhere_3.cjs.entry.js.map +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/q2-action-group_2.cjs.entry.js +2 -2
- package/dist/cjs/q2-action-sheet.cjs.entry.js +1 -1
- package/dist/cjs/q2-avatar.cjs.entry.js +1 -1
- package/dist/cjs/q2-card-image.cjs.entry.js +2 -2
- package/dist/cjs/q2-carousel-pane.cjs.entry.js +2 -2
- 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 +1 -1
- package/dist/cjs/q2-checkbox.q2-tag.entry.cjs.js.map +1 -1
- package/dist/cjs/q2-checkbox_2.cjs.entry.js +41 -11
- package/dist/cjs/q2-checkbox_2.cjs.entry.js.map +1 -1
- 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 +1 -1
- package/dist/cjs/q2-detail.cjs.entry.js +1 -1
- package/dist/cjs/q2-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/q2-editable-field.cjs.entry.js +1 -1
- package/dist/cjs/q2-example.cjs.entry.js +1 -1
- package/dist/cjs/q2-form.cjs.entry.js +1 -1
- package/dist/cjs/q2-formatted-text.cjs.entry.js +1 -1
- package/dist/cjs/q2-input.cjs.entry.js +1 -1
- package/dist/cjs/q2-item.cjs.entry.js +1 -1
- package/dist/cjs/q2-legend.cjs.entry.js +1 -1
- package/dist/cjs/q2-link_2.cjs.entry.js +1 -1
- package/dist/cjs/q2-message.cjs.entry.js +1 -1
- package/dist/cjs/q2-meter.cjs.entry.js +1 -1
- package/dist/cjs/q2-modal.cjs.entry.js +1 -1
- package/dist/cjs/q2-month-picker.cjs.entry.js +2 -2
- package/dist/cjs/q2-mutation-observer.cjs.entry.js +1 -1
- package/dist/cjs/q2-optgroup.cjs.entry.js +1 -1
- package/dist/cjs/q2-pagination.cjs.entry.js +3 -3
- 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-section.cjs.entry.js +2 -2
- package/dist/cjs/q2-select.cjs.entry.js +1 -1
- package/dist/cjs/q2-stepper-pane.cjs.entry.js +1 -1
- package/dist/cjs/q2-stepper-vertical.cjs.entry.js +1 -1
- package/dist/cjs/q2-stepper.cjs.entry.js +1 -1
- package/dist/cjs/q2-tab-container.cjs.entry.js +1 -1
- 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/tecton-tab-pane.cjs.entry.js +2 -2
- package/dist/collection/components/q2-action-group/q2-action-group.js +1 -1
- package/dist/collection/components/q2-action-sheet/q2-action-sheet.js +1 -1
- package/dist/collection/components/q2-avatar/q2-avatar.js +1 -1
- package/dist/collection/components/q2-calendar/q2-month-picker.js +2 -2
- package/dist/collection/components/q2-card-image/q2-card-image.js +2 -2
- package/dist/collection/components/q2-carousel-pane/q2-carousel-pane.js +2 -2
- package/dist/collection/components/q2-chart-area/q2-chart-area.js +1 -1
- package/dist/collection/components/q2-chart-bar/q2-chart-bar.js +1 -1
- package/dist/collection/components/q2-chart-donut/q2-chart-donut.js +1 -1
- package/dist/collection/components/q2-checkbox/q2-checkbox.css +5 -1
- package/dist/collection/components/q2-checkbox/q2-checkbox.js +45 -10
- package/dist/collection/components/q2-checkbox/q2-checkbox.js.map +1 -1
- package/dist/collection/components/q2-checkbox-group/q2-checkbox-group.js +1 -1
- package/dist/collection/components/q2-context/q2-context.js +1 -1
- package/dist/collection/components/q2-currency/q2-currency.js +1 -1
- package/dist/collection/components/q2-data-table/q2-data-table.js +1 -1
- package/dist/collection/components/q2-detail/q2-detail.js +1 -1
- package/dist/collection/components/q2-dropdown/q2-dropdown.js +1 -1
- package/dist/collection/components/q2-editable-field/q2-editable-field.js +1 -1
- package/dist/collection/components/q2-example/q2-example.js +1 -1
- package/dist/collection/components/q2-form/q2-form.js +1 -1
- package/dist/collection/components/q2-formatted-text/q2-formatted-text.js +1 -1
- package/dist/collection/components/q2-input/q2-input.js +1 -1
- package/dist/collection/components/q2-item/q2-item.js +1 -1
- package/dist/collection/components/q2-legend/q2-legend.js +1 -1
- package/dist/collection/components/q2-list/q2-list.js +1 -1
- package/dist/collection/components/q2-message/q2-message.js +1 -1
- package/dist/collection/components/q2-meter/q2-meter.js +1 -1
- package/dist/collection/components/q2-modal/q2-modal.js +1 -1
- package/dist/collection/components/q2-mutation-observer/q2-mutation-observer.js +1 -1
- package/dist/collection/components/q2-optgroup/q2-optgroup.js +1 -1
- package/dist/collection/components/q2-pagination/q2-pagination.js +3 -3
- package/dist/collection/components/q2-pill/q2-pill.js +1 -1
- package/dist/collection/components/q2-popover/q2-popover.js +17 -48
- package/dist/collection/components/q2-popover/q2-popover.js.map +1 -1
- package/dist/collection/components/q2-radio/q2-radio.js +1 -1
- package/dist/collection/components/q2-radio-group/q2-radio-group.js +1 -1
- package/dist/collection/components/q2-relative-time/q2-relative-time.js +1 -1
- package/dist/collection/components/q2-resize-observer/q2-resize-observer.js +1 -1
- package/dist/collection/components/q2-section/q2-section.js +2 -2
- package/dist/collection/components/q2-select/q2-select.js +1 -1
- package/dist/collection/components/q2-stepper/q2-stepper.js +1 -1
- 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-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-textarea/q2-textarea.js +1 -1
- package/dist/collection/components/tecton-tab-pane/tecton-tab-pane.js +2 -2
- package/dist/components/q2-action-group2.js +1 -1
- package/dist/components/q2-action-sheet.js +1 -1
- package/dist/components/q2-avatar2.js +1 -1
- package/dist/components/q2-card-image.js +2 -2
- package/dist/components/q2-carousel-pane.js +2 -2
- package/dist/components/q2-chart-area.js +1 -1
- package/dist/components/q2-chart-bar.js +1 -1
- package/dist/components/q2-chart-donut.js +1 -1
- package/dist/components/q2-checkbox-group.js +1 -1
- package/dist/components/q2-checkbox2.js +42 -11
- package/dist/components/q2-checkbox2.js.map +1 -1
- package/dist/components/q2-context.js +1 -1
- package/dist/components/q2-currency.js +1 -1
- package/dist/components/q2-data-table.js +1 -1
- package/dist/components/q2-detail.js +1 -1
- package/dist/components/q2-dropdown.js +1 -1
- package/dist/components/q2-editable-field.js +1 -1
- package/dist/components/q2-example.js +1 -1
- package/dist/components/q2-form.js +1 -1
- package/dist/components/q2-formatted-text.js +1 -1
- package/dist/components/q2-input2.js +1 -1
- package/dist/components/q2-item2.js +1 -1
- package/dist/components/q2-legend2.js +1 -1
- package/dist/components/q2-list2.js +1 -1
- package/dist/components/q2-message2.js +1 -1
- package/dist/components/q2-meter.js +1 -1
- package/dist/components/q2-modal.js +1 -1
- package/dist/components/q2-month-picker.js +2 -2
- package/dist/components/q2-mutation-observer.js +1 -1
- package/dist/components/q2-optgroup2.js +1 -1
- package/dist/components/q2-pagination.js +3 -3
- package/dist/components/q2-pill.js +1 -1
- package/dist/components/q2-popover2.js +17 -29
- package/dist/components/q2-popover2.js.map +1 -1
- package/dist/components/q2-radio-group.js +1 -1
- package/dist/components/q2-radio.js +1 -1
- package/dist/components/q2-relative-time.js +1 -1
- package/dist/components/q2-resize-observer2.js +1 -1
- package/dist/components/q2-section.js +2 -2
- package/dist/components/q2-select2.js +1 -1
- package/dist/components/q2-stepper-pane.js +1 -1
- package/dist/components/q2-stepper-vertical.js +1 -1
- package/dist/components/q2-stepper.js +1 -1
- package/dist/components/q2-tab-container.js +1 -1
- package/dist/components/q2-tab-pane.js +1 -1
- package/dist/components/q2-tag2.js +1 -1
- package/dist/components/q2-textarea.js +1 -1
- package/dist/components/tecton-tab-pane.js +2 -2
- package/dist/esm/click-elsewhere.q2-option-list.q2-popover.entry.js.map +1 -1
- package/dist/esm/click-elsewhere_3.entry.js +17 -28
- package/dist/esm/click-elsewhere_3.entry.js.map +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/q2-action-group_2.entry.js +2 -2
- package/dist/esm/q2-action-sheet.entry.js +1 -1
- package/dist/esm/q2-avatar.entry.js +1 -1
- package/dist/esm/q2-card-image.entry.js +2 -2
- package/dist/esm/q2-carousel-pane.entry.js +2 -2
- 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 +1 -1
- package/dist/esm/q2-checkbox.q2-tag.entry.js.map +1 -1
- package/dist/esm/q2-checkbox_2.entry.js +41 -11
- package/dist/esm/q2-checkbox_2.entry.js.map +1 -1
- 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 +1 -1
- package/dist/esm/q2-detail.entry.js +1 -1
- package/dist/esm/q2-dropdown.entry.js +1 -1
- package/dist/esm/q2-editable-field.entry.js +1 -1
- package/dist/esm/q2-example.entry.js +1 -1
- package/dist/esm/q2-form.entry.js +1 -1
- package/dist/esm/q2-formatted-text.entry.js +1 -1
- package/dist/esm/q2-input.entry.js +1 -1
- package/dist/esm/q2-item.entry.js +1 -1
- package/dist/esm/q2-legend.entry.js +1 -1
- package/dist/esm/q2-link_2.entry.js +1 -1
- package/dist/esm/q2-message.entry.js +1 -1
- package/dist/esm/q2-meter.entry.js +1 -1
- package/dist/esm/q2-modal.entry.js +1 -1
- package/dist/esm/q2-month-picker.entry.js +2 -2
- package/dist/esm/q2-mutation-observer.entry.js +1 -1
- package/dist/esm/q2-optgroup.entry.js +1 -1
- package/dist/esm/q2-pagination.entry.js +3 -3
- 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-section.entry.js +2 -2
- package/dist/esm/q2-select.entry.js +1 -1
- package/dist/esm/q2-stepper-pane.entry.js +1 -1
- package/dist/esm/q2-stepper-vertical.entry.js +1 -1
- package/dist/esm/q2-stepper.entry.js +1 -1
- package/dist/esm/q2-tab-container.entry.js +1 -1
- 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/tecton-tab-pane.entry.js +2 -2
- package/dist/q2-tecton-elements/click-elsewhere.q2-option-list.q2-popover.entry.esm.js.map +1 -1
- package/dist/q2-tecton-elements/click-elsewhere_3.entry.js +32 -39
- package/dist/q2-tecton-elements/click-elsewhere_3.entry.js.map +1 -1
- package/dist/q2-tecton-elements/q2-action-group_2.entry.js +4 -4
- package/dist/q2-tecton-elements/q2-action-sheet.entry.js +40 -40
- package/dist/q2-tecton-elements/q2-avatar.entry.js +8 -8
- package/dist/q2-tecton-elements/q2-card-image.entry.js +2 -2
- package/dist/q2-tecton-elements/q2-carousel-pane.entry.js +3 -3
- package/dist/q2-tecton-elements/q2-chart-area.entry.js +6 -6
- package/dist/q2-tecton-elements/q2-chart-bar.entry.js +2 -2
- package/dist/q2-tecton-elements/q2-chart-donut.entry.js +6 -6
- package/dist/q2-tecton-elements/q2-checkbox-group.entry.js +6 -6
- package/dist/q2-tecton-elements/q2-checkbox.q2-tag.entry.esm.js.map +1 -1
- package/dist/q2-tecton-elements/q2-checkbox_2.entry.js +70 -28
- package/dist/q2-tecton-elements/q2-checkbox_2.entry.js.map +1 -1
- package/dist/q2-tecton-elements/q2-context.entry.js +15 -15
- package/dist/q2-tecton-elements/q2-currency.entry.js +8 -8
- package/dist/q2-tecton-elements/q2-data-table.entry.js +3 -3
- package/dist/q2-tecton-elements/q2-detail.entry.js +3 -3
- package/dist/q2-tecton-elements/q2-dropdown.entry.js +17 -17
- package/dist/q2-tecton-elements/q2-editable-field.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-example.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-form.entry.js +7 -7
- package/dist/q2-tecton-elements/q2-formatted-text.entry.js +2 -2
- package/dist/q2-tecton-elements/q2-input.entry.js +3 -3
- package/dist/q2-tecton-elements/q2-item.entry.js +13 -13
- package/dist/q2-tecton-elements/q2-legend.entry.js +2 -2
- package/dist/q2-tecton-elements/q2-link_2.entry.js +6 -6
- package/dist/q2-tecton-elements/q2-message.entry.js +6 -6
- package/dist/q2-tecton-elements/q2-meter.entry.js +13 -13
- package/dist/q2-tecton-elements/q2-modal.entry.js +46 -46
- package/dist/q2-tecton-elements/q2-month-picker.entry.js +30 -30
- package/dist/q2-tecton-elements/q2-mutation-observer.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-optgroup.entry.js +4 -4
- package/dist/q2-tecton-elements/q2-pagination.entry.js +26 -26
- package/dist/q2-tecton-elements/q2-pill.entry.js +12 -12
- package/dist/q2-tecton-elements/q2-radio-group.entry.js +21 -21
- package/dist/q2-tecton-elements/q2-radio.entry.js +8 -8
- package/dist/q2-tecton-elements/q2-relative-time.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-section.entry.js +21 -21
- package/dist/q2-tecton-elements/q2-select.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-stepper-pane.entry.js +11 -11
- package/dist/q2-tecton-elements/q2-stepper-vertical.entry.js +4 -4
- package/dist/q2-tecton-elements/q2-stepper.entry.js +12 -12
- package/dist/q2-tecton-elements/q2-tab-container.entry.js +17 -17
- 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 +2 -2
- package/dist/q2-tecton-elements/tecton-tab-pane.entry.js +6 -6
- package/dist/types/components/q2-checkbox/q2-checkbox.d.ts +8 -1
- package/dist/types/components/q2-popover/q2-popover.d.ts +0 -6
- package/dist/types/components.d.ts +0 -10
- package/package.json +3 -3
|
@@ -2,7 +2,7 @@ import { r as t, h as o, F as e, g as i } from "./index-CGkHOjh1.js";
|
|
|
2
2
|
|
|
3
3
|
import { s as n, a as s } from "./action-sheet-B7adb3xs.js";
|
|
4
4
|
|
|
5
|
-
import { o as r, i as
|
|
5
|
+
import { o as r, i as a, w as d, b as l, d as h, l as c } from "./index-C4PILj1_.js";
|
|
6
6
|
|
|
7
7
|
const p = "*{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{display:inline-flex}:host([block]){display:block}:host([full-width]:not([full-width=false])){display:inline-flex;justify-content:center;width:100%}::slotted([slot=popover-top]){padding:var(--tct-dropdown-popover-top-slot-padding, 0);border-bottom:var(--tct-dropdown-slot-border-top)}::slotted([slot=popover-bottom]){padding:var(--tct-dropdown-popover-bottom-slot-padding, 0);border-top:var(--tct-dropdown-slot-border-bottom)}q2-icon{pointer-events:none;margin-block:-100px}click-elsewhere{position:relative;display:block}q2-popover{--tct-popover-min-width:var(--tct-dropdown-width, var(--t-dropdown-width));--tct-popover-padding:var(--tct-dropdown-content-padding)}";
|
|
8
8
|
|
|
@@ -95,7 +95,7 @@ const u = class {
|
|
|
95
95
|
// #endregion
|
|
96
96
|
// #region Listeners
|
|
97
97
|
delegateFocus(t) {
|
|
98
|
-
if (!
|
|
98
|
+
if (!a(t, this.hostElement)) return;
|
|
99
99
|
this.focusToggle();
|
|
100
100
|
}
|
|
101
101
|
popoverStateChangeHandler({detail: {open: t}}) {
|
|
@@ -155,10 +155,10 @@ const u = class {
|
|
|
155
155
|
if (!s || this.disabled) return;
|
|
156
156
|
if (!this.open) {
|
|
157
157
|
(o = this.controlElement) === null || o === void 0 ? void 0 : o.click();
|
|
158
|
-
await
|
|
158
|
+
await d();
|
|
159
159
|
}
|
|
160
160
|
s.click();
|
|
161
|
-
await
|
|
161
|
+
await d();
|
|
162
162
|
}
|
|
163
163
|
/**
|
|
164
164
|
* Emulates opening the dropdown and selecting a
|
|
@@ -182,10 +182,10 @@ const u = class {
|
|
|
182
182
|
if (!e || !i || this.disabled) return;
|
|
183
183
|
if (!this.open) {
|
|
184
184
|
(o = this.controlElement) === null || o === void 0 ? void 0 : o.click();
|
|
185
|
-
await
|
|
185
|
+
await d();
|
|
186
186
|
}
|
|
187
187
|
i.click();
|
|
188
|
-
await
|
|
188
|
+
await d();
|
|
189
189
|
}
|
|
190
190
|
// #endregion
|
|
191
191
|
// #region Watchers
|
|
@@ -232,16 +232,16 @@ const u = class {
|
|
|
232
232
|
if (t.includes(e)) {
|
|
233
233
|
r = e === "neutral" ? e : `workflow-${e}`;
|
|
234
234
|
}
|
|
235
|
-
const
|
|
236
|
-
const
|
|
235
|
+
const a = this.open;
|
|
236
|
+
const d = !!this.disabled;
|
|
237
237
|
const l = this.open;
|
|
238
238
|
const h = !i && !n && !r ? "unstyled" : "";
|
|
239
239
|
return {
|
|
240
240
|
icon: i,
|
|
241
241
|
fab: n,
|
|
242
242
|
intent: r,
|
|
243
|
-
active:
|
|
244
|
-
disabled:
|
|
243
|
+
active: a,
|
|
244
|
+
disabled: d,
|
|
245
245
|
ariaExpanded: l,
|
|
246
246
|
className: h,
|
|
247
247
|
custom: s
|
|
@@ -335,12 +335,12 @@ const u = class {
|
|
|
335
335
|
render() {
|
|
336
336
|
const t = this.toggleButtonProps;
|
|
337
337
|
return o("click-elsewhere", {
|
|
338
|
-
key: "
|
|
338
|
+
key: "b6e82a77840792da2ab918048abf38578ec4ccb3",
|
|
339
339
|
class: this.open ? "dropdown-open" : "",
|
|
340
340
|
onChange: this.onClickElsewhere,
|
|
341
341
|
"test-id": "dropdownContainer"
|
|
342
342
|
}, o("q2-btn", {
|
|
343
|
-
key: "
|
|
343
|
+
key: "5c26f1d198bd92ba61ac51080a3f8e2769d07b01",
|
|
344
344
|
tabIndex: 0,
|
|
345
345
|
ref: t => this.controlElement = t,
|
|
346
346
|
class: t.className,
|
|
@@ -368,7 +368,7 @@ const u = class {
|
|
|
368
368
|
}, c(this.label)), this.icon ? o("q2-icon", {
|
|
369
369
|
type: this.icon
|
|
370
370
|
}) : " ")), o("q2-popover", {
|
|
371
|
-
key: "
|
|
371
|
+
key: "4db48630a62011863293587a76a17448a503df9d",
|
|
372
372
|
ref: t => this.popoverElement = t,
|
|
373
373
|
controlElement: this.controlElement,
|
|
374
374
|
open: this.open,
|
|
@@ -380,10 +380,10 @@ const u = class {
|
|
|
380
380
|
mode: this.popoverMode || undefined,
|
|
381
381
|
block: this.block
|
|
382
382
|
}, o("slot", {
|
|
383
|
-
key: "
|
|
383
|
+
key: "20cf54aca49692025c64ca230433366e14a242df",
|
|
384
384
|
name: "popover-top"
|
|
385
385
|
}), o("q2-option-list", {
|
|
386
|
-
key: "
|
|
386
|
+
key: "f2f8b61de7682fda8b18ddee17995fbbe1529ff7",
|
|
387
387
|
onPopoverState: this.onPopoverState,
|
|
388
388
|
id: "option-list",
|
|
389
389
|
ref: t => this.optionList = t,
|
|
@@ -391,9 +391,9 @@ const u = class {
|
|
|
391
391
|
label: c("tecton.element.optionList.label", [ this.optionListLabel ]),
|
|
392
392
|
"no-select": true
|
|
393
393
|
}, o("slot", {
|
|
394
|
-
key: "
|
|
394
|
+
key: "380049eda306cad1283f509977cfc32924f86d22"
|
|
395
395
|
})), o("slot", {
|
|
396
|
-
key: "
|
|
396
|
+
key: "bc02de04e8e0ca08205425ced651183535a80c78",
|
|
397
397
|
name: "popover-bottom"
|
|
398
398
|
})));
|
|
399
399
|
}
|
|
@@ -284,7 +284,7 @@ const c = class {
|
|
|
284
284
|
// #region Render Methods
|
|
285
285
|
render() {
|
|
286
286
|
return e("div", {
|
|
287
|
-
key: "
|
|
287
|
+
key: "bd5759fc666e43c948cf4826e2075ba5566038cc"
|
|
288
288
|
}, this.generateEditStateDOM(), this.generateReadStateDOM());
|
|
289
289
|
}
|
|
290
290
|
get hostElement() {
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { r as
|
|
1
|
+
import { r as o, h as a } from "./index-CGkHOjh1.js";
|
|
2
2
|
|
|
3
3
|
const n = "*{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{--tct-input-margin:var(--comp-spacing);--tct-select-margin:var(--comp-spacing);--tct-calendar-margin:var(--comp-spacing);--tct-file-picker-margin:var(--comp-spacing);--tct-textarea-margin:var(--comp-spacing);--tct-checkbox-group-margin:var(--comp-spacing);--tct-radio-group-margin:var(--comp-spacing)}:host([spacing=none]) .container{--comp-spacing-none:var(--app-scale-0x, 0px);--comp-spacing:var(--tct-form-spacing-none, var(--comp-spacing-none) 0)}:host([spacing=compact]) .container{--comp-spacing-compact:var(--app-scale-3x, 15px);--comp-spacing:var(--tct-form-spacing-compact, var(--comp-spacing-compact) 0)}:host(:not([spacing]),[spacing=normal]) .container{--comp-spacing-normal:var(--app-scale-5x, 25px);--comp-spacing:var(--tct-form-spacing-normal, var(--comp-spacing-normal) 0)}:host([spacing=comfortable]) .container{--comp-spacing-comfortable:var(--app-scale-7x, 35px);--comp-spacing:var(--tct-form-spacing-comfortable, var(--comp-spacing-comfortable) 0)}";
|
|
4
4
|
|
|
5
5
|
const c = class {
|
|
6
|
-
constructor(
|
|
7
|
-
|
|
6
|
+
constructor(a) {
|
|
7
|
+
o(this, a);
|
|
8
8
|
// #region Public Property API
|
|
9
9
|
/** Changes the vertical spacing of the form-fields contained within the component's slot */ this.spacing = "normal";
|
|
10
10
|
}
|
|
11
11
|
// #endregion
|
|
12
12
|
// #region Render Methods
|
|
13
13
|
render() {
|
|
14
|
-
return
|
|
15
|
-
key: "
|
|
14
|
+
return a("div", {
|
|
15
|
+
key: "6720d1cf81a23420db41de84fce56398ff932018",
|
|
16
16
|
class: "container"
|
|
17
|
-
},
|
|
18
|
-
key: "
|
|
17
|
+
}, a("slot", {
|
|
18
|
+
key: "48165fa24f2eb15d66fdfa63b6c122c0dc320714"
|
|
19
19
|
}));
|
|
20
20
|
}
|
|
21
21
|
};
|
|
@@ -61,11 +61,11 @@ const o = class {
|
|
|
61
61
|
render() {
|
|
62
62
|
const {formattedTextClasses: t} = this;
|
|
63
63
|
return e("div", {
|
|
64
|
-
key: "
|
|
64
|
+
key: "0e3cb56f89a3ab403b45b411a4cd38ec267ed58b",
|
|
65
65
|
class: t,
|
|
66
66
|
"aria-label": this.formattedValue
|
|
67
67
|
}, e("span", {
|
|
68
|
-
key: "
|
|
68
|
+
key: "a9bb42690d67bce14debcb99db50c63582c6ba63"
|
|
69
69
|
}, this.formattedValue));
|
|
70
70
|
}
|
|
71
71
|
static get watchers() {
|
|
@@ -3839,15 +3839,15 @@ const P = class {
|
|
|
3839
3839
|
render() {
|
|
3840
3840
|
const {ariaControls: t, ariaExpanded: r} = this.ariaAttributes;
|
|
3841
3841
|
return a(i, {
|
|
3842
|
-
key: "
|
|
3842
|
+
key: "5cd0ac01d09732c81c59519cd04a998ff99e4dea",
|
|
3843
3843
|
role: this._role,
|
|
3844
3844
|
"aria-controls": t,
|
|
3845
3845
|
"aria-expanded": r
|
|
3846
3846
|
}, a("div", {
|
|
3847
|
-
key: "
|
|
3847
|
+
key: "3907d95e0564a7e5f53148f6bdd02f0d51dcc8b6",
|
|
3848
3848
|
class: this.wrapperClasses
|
|
3849
3849
|
}, a("div", {
|
|
3850
|
-
key: "
|
|
3850
|
+
key: "73857901c65827a40b17a56e8a1ac4d1d9c4faf7",
|
|
3851
3851
|
class: "label-wrapper"
|
|
3852
3852
|
}, x(this), this.renderCountDOM()), this.renderInputContainerDOM(), v(this)));
|
|
3853
3853
|
}
|
|
@@ -105,47 +105,47 @@ const n = class {
|
|
|
105
105
|
render() {
|
|
106
106
|
const {clickable: t} = this;
|
|
107
107
|
return e("div", {
|
|
108
|
-
key: "
|
|
108
|
+
key: "3bd899fe8e37940635740451ebcf07407103e5e8",
|
|
109
109
|
"test-id": "itemContainer",
|
|
110
110
|
class: this.itemClasses,
|
|
111
111
|
ref: t => this.itemElement = t,
|
|
112
112
|
role: t ? "button" : undefined,
|
|
113
113
|
tabIndex: t ? 0 : undefined
|
|
114
114
|
}, this.hasDecoratorSlotContent && e("div", {
|
|
115
|
-
key: "
|
|
115
|
+
key: "57a84cb0e340658499cfc3283f65d425519fcfcb",
|
|
116
116
|
class: this.decoratorClasses
|
|
117
117
|
}, e("slot", {
|
|
118
|
-
key: "
|
|
118
|
+
key: "ef0b095c055d0ceed0fe18ecb4d1b2565f3bdb82",
|
|
119
119
|
name: "decorator"
|
|
120
120
|
}, e("slot", {
|
|
121
|
-
key: "
|
|
121
|
+
key: "ec695f3ab95be46331cec70b270a1f0434444fff",
|
|
122
122
|
name: "bullet"
|
|
123
123
|
}))), e("div", {
|
|
124
|
-
key: "
|
|
124
|
+
key: "263e6a9ebe842c2430cb263fe8ea1e523f286a17",
|
|
125
125
|
class: this.mainClasses
|
|
126
126
|
}, this.hasHeaderSlotContent && e("div", {
|
|
127
|
-
key: "
|
|
127
|
+
key: "6340f074d8b489e37f21b57b89038f323e5a2533",
|
|
128
128
|
class: "header"
|
|
129
129
|
}, e("slot", {
|
|
130
|
-
key: "
|
|
130
|
+
key: "2ec1a529cd639a520a4b873d2898b88470a2c16a",
|
|
131
131
|
name: "header"
|
|
132
132
|
})), this.hasBodySlotContent && e("div", {
|
|
133
|
-
key: "
|
|
133
|
+
key: "1d38f6795a8ee607eb93e1ff31ddab54dcd41c79",
|
|
134
134
|
class: "body"
|
|
135
135
|
}, e("slot", {
|
|
136
|
-
key: "
|
|
136
|
+
key: "73fe582085a453608301236160cd260474d338c5",
|
|
137
137
|
name: "body"
|
|
138
138
|
}))), this.hasActionSlotContent && e("div", {
|
|
139
|
-
key: "
|
|
139
|
+
key: "0fd2164d9ab710b54655e325aa328d4e236a7bd7",
|
|
140
140
|
class: this.actionClasses
|
|
141
141
|
}, e("slot", {
|
|
142
|
-
key: "
|
|
142
|
+
key: "ce2cb3c08a76f136858a1e8ce2db30b822e17b82",
|
|
143
143
|
name: "action"
|
|
144
144
|
})), this.hasFooterSlotContent && e("div", {
|
|
145
|
-
key: "
|
|
145
|
+
key: "700c9f3faa4dc6f5c0e22d18470614c028c6c8d5",
|
|
146
146
|
class: this.footerClasses
|
|
147
147
|
}, e("slot", {
|
|
148
|
-
key: "
|
|
148
|
+
key: "b3fe3d2477936abcf950c8a7565372456023462f",
|
|
149
149
|
name: "footer"
|
|
150
150
|
})));
|
|
151
151
|
}
|
|
@@ -110,10 +110,10 @@ const o = class {
|
|
|
110
110
|
// #region Render Methods
|
|
111
111
|
render() {
|
|
112
112
|
return i("click-elsewhere", {
|
|
113
|
-
key: "
|
|
113
|
+
key: "ab6f88f29a37f3b48c7bee9bc1263142d9376b3c",
|
|
114
114
|
onChange: () => this.onClickElsewhere(this)
|
|
115
115
|
}, i("ul", {
|
|
116
|
-
key: "
|
|
116
|
+
key: "aa6443ae74f0d89965963195c479aab4f95fa667"
|
|
117
117
|
}, this.dataWithClasses.map((t => i("li", {
|
|
118
118
|
class: "item"
|
|
119
119
|
}, i("button", {
|
|
@@ -155,23 +155,23 @@ const l = class {
|
|
|
155
155
|
// #region Render Methods
|
|
156
156
|
render() {
|
|
157
157
|
return e("div", {
|
|
158
|
-
key: "
|
|
158
|
+
key: "5602927af6da7b334c38f7d2cc207633d6089f7c",
|
|
159
159
|
class: this.listClasses,
|
|
160
160
|
ref: t => this.listElement = t
|
|
161
161
|
}, (this.hasFilterSlot || this.hasLabelContent) && e("div", {
|
|
162
|
-
key: "
|
|
162
|
+
key: "23ae73b5b842f17d45f9f82b06db79e8ea5c1796",
|
|
163
163
|
class: this.headerClasses
|
|
164
164
|
}, e("div", {
|
|
165
|
-
key: "
|
|
165
|
+
key: "428117b7ffeadbfe4a53d39bf95d16cae1c26148",
|
|
166
166
|
class: "label"
|
|
167
167
|
}, this.label), this.hasFilterSlot && e("slot", {
|
|
168
|
-
key: "
|
|
168
|
+
key: "3c5c29226478ba20fbe691b4265a2966b43f3fcb",
|
|
169
169
|
name: "filter"
|
|
170
170
|
})), e("div", {
|
|
171
|
-
key: "
|
|
171
|
+
key: "358b66a87ce56416c1dd42b8cc8a480996e2bdaf",
|
|
172
172
|
role: "list"
|
|
173
173
|
}, e("slot", {
|
|
174
|
-
key: "
|
|
174
|
+
key: "8eabad8c7f15fac806588c651abf4ee400994d52"
|
|
175
175
|
})));
|
|
176
176
|
}
|
|
177
177
|
get hostElement() {
|
|
@@ -65,7 +65,7 @@ const p = class {
|
|
|
65
65
|
const {description: o} = this;
|
|
66
66
|
const r = c(`tecton.element.message.type.${this.type ? this.type : "info"}`);
|
|
67
67
|
return e("div", {
|
|
68
|
-
key: "
|
|
68
|
+
key: "b65f9feaee320f96a3f745eb4231510eab67aba6",
|
|
69
69
|
tabindex: "-1",
|
|
70
70
|
class: "message",
|
|
71
71
|
role: o ? undefined : "alert",
|
|
@@ -74,21 +74,21 @@ const p = class {
|
|
|
74
74
|
"aria-relevant": o && t ? undefined : "all",
|
|
75
75
|
"test-id": "messageContainer"
|
|
76
76
|
}, e("div", {
|
|
77
|
-
key: "
|
|
77
|
+
key: "66b9440bf994341ff365766a1241f56556fffe57",
|
|
78
78
|
class: "bar",
|
|
79
79
|
"test-id": "bar"
|
|
80
80
|
}), this.appearance === "standard" ? this.messageIcon(this.type) : "", s && e("div", {
|
|
81
|
-
key: "
|
|
81
|
+
key: "47269ca27bc9c952249f574ab98e45d026125228",
|
|
82
82
|
class: "sr"
|
|
83
83
|
}), e("div", {
|
|
84
|
-
key: "
|
|
84
|
+
key: "63a91696622f38741d5d403fe81262e2d5458328",
|
|
85
85
|
class: "sr message-label"
|
|
86
86
|
}, r), e("div", {
|
|
87
|
-
key: "
|
|
87
|
+
key: "544cecc85e943f0156b63489cc78a42bec02f7c9",
|
|
88
88
|
class: "message-content",
|
|
89
89
|
"aria-hidden": t ? "true" : undefined
|
|
90
90
|
}, e("slot", {
|
|
91
|
-
key: "
|
|
91
|
+
key: "36ff0e64df72018818fd8452e847c522ea4c4039"
|
|
92
92
|
})));
|
|
93
93
|
}
|
|
94
94
|
get hostElement() {
|
|
@@ -73,8 +73,8 @@ const a = class {
|
|
|
73
73
|
r = Math.max(t, r);
|
|
74
74
|
const o = {};
|
|
75
75
|
const a = {};
|
|
76
|
-
const
|
|
77
|
-
const
|
|
76
|
+
const n = this.tooltipCompleted ? i(this.tooltipCompleted) : this.completedValue;
|
|
77
|
+
const s = this.tooltipSuggested ? i(this.tooltipSuggested) : this.suggestedValue;
|
|
78
78
|
if (t === 0) {
|
|
79
79
|
o.transform = `translateX(0%)`;
|
|
80
80
|
o.left = "calc(0% - var(--comp-meter-dot-border-width))";
|
|
@@ -122,8 +122,8 @@ const a = class {
|
|
|
122
122
|
}, this.hideTooltip ? e("div", {
|
|
123
123
|
class: "dot"
|
|
124
124
|
}) : e("q2-tooltip", {
|
|
125
|
-
label:
|
|
126
|
-
position: this.adjustTooltipDirection(t,
|
|
125
|
+
label: n,
|
|
126
|
+
position: this.adjustTooltipDirection(t, n),
|
|
127
127
|
immediate: true
|
|
128
128
|
}, e("div", {
|
|
129
129
|
class: "dot"
|
|
@@ -133,8 +133,8 @@ const a = class {
|
|
|
133
133
|
}, this.hideTooltip ? e("div", {
|
|
134
134
|
class: "dot"
|
|
135
135
|
}) : e("q2-tooltip", {
|
|
136
|
-
label:
|
|
137
|
-
position: this.adjustTooltipDirection(r,
|
|
136
|
+
label: s,
|
|
137
|
+
position: this.adjustTooltipDirection(r, s),
|
|
138
138
|
immediate: true
|
|
139
139
|
}, e("div", {
|
|
140
140
|
class: "dot"
|
|
@@ -143,23 +143,23 @@ const a = class {
|
|
|
143
143
|
render() {
|
|
144
144
|
const [t, r] = this.convertToPercentage(this.completedValue, this.suggestedValue, this.maxValue);
|
|
145
145
|
return e("div", {
|
|
146
|
-
key: "
|
|
146
|
+
key: "656e8a53bbaf26529db53e535efcad7a22b9ee01",
|
|
147
147
|
class: "meter-container",
|
|
148
148
|
"aria-label": this.ariaLabel,
|
|
149
149
|
role: "group"
|
|
150
150
|
}, this.label && e("div", {
|
|
151
|
-
key: "
|
|
151
|
+
key: "25d53f9a1d387d4b839507239454484d9678061f",
|
|
152
152
|
class: "label",
|
|
153
153
|
"aria-label": i(this.label)
|
|
154
154
|
}, i(this.label)), this.description && e("div", {
|
|
155
|
-
key: "
|
|
155
|
+
key: "d5786b4e65ab5b262b82f107bb310ca27b34c4ed",
|
|
156
156
|
class: "description",
|
|
157
157
|
"aria-label": i(this.description)
|
|
158
158
|
}, i(this.description)), this.renderBar(t, r), e("div", {
|
|
159
|
-
key: "
|
|
159
|
+
key: "015cc474c3113ff248982d64656218a79744e09e",
|
|
160
160
|
class: "legends"
|
|
161
161
|
}, e("div", {
|
|
162
|
-
key: "
|
|
162
|
+
key: "1af88cd2386058a8c20f3a82d0e40ffafffc4c38",
|
|
163
163
|
class: "left"
|
|
164
164
|
}, this.completedValue || this.completedLabel ? e("div", {
|
|
165
165
|
class: "completed"
|
|
@@ -174,10 +174,10 @@ const a = class {
|
|
|
174
174
|
}), e("div", {
|
|
175
175
|
class: "legend-label"
|
|
176
176
|
}, this.suggestedValue, " ", i(this.suggestedLabel))) : ""), e("div", {
|
|
177
|
-
key: "
|
|
177
|
+
key: "22eb4ec7a86114f3f109e4adfb0acbcea9509de8",
|
|
178
178
|
class: "right"
|
|
179
179
|
}, e("div", {
|
|
180
|
-
key: "
|
|
180
|
+
key: "b9384865d0ef8c81569243b40ccf320efcd208ec",
|
|
181
181
|
class: "max"
|
|
182
182
|
}, this.maxValue, " ", i(this.maxLabel)))));
|
|
183
183
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as t, c as o, h as
|
|
1
|
+
import { r as t, c as o, h as a, g as i } from "./index-CGkHOjh1.js";
|
|
2
2
|
|
|
3
3
|
import { e, w as r, h as s } from "./index-C4PILj1_.js";
|
|
4
4
|
|
|
@@ -7,8 +7,8 @@ import { s as d } from "./sanitize-html-string-B35VmRc9.js";
|
|
|
7
7
|
const c = '*{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, var(--t-text, #4d4d4d));--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)}';
|
|
8
8
|
|
|
9
9
|
const n = class {
|
|
10
|
-
constructor(
|
|
11
|
-
t(this,
|
|
10
|
+
constructor(a) {
|
|
11
|
+
t(this, a);
|
|
12
12
|
this.tctClick = o(this, "tctClick", 7);
|
|
13
13
|
this.tctClose = o(this, "tctClose", 7);
|
|
14
14
|
this.tctOpen = o(this, "tctOpen", 7);
|
|
@@ -49,26 +49,26 @@ const n = class {
|
|
|
49
49
|
t.stopPropagation();
|
|
50
50
|
const o = t.target;
|
|
51
51
|
if (!(o instanceof HTMLElement)) return;
|
|
52
|
-
const
|
|
53
|
-
if (
|
|
52
|
+
const a = o.getAttribute("slot");
|
|
53
|
+
if (a === "action") {
|
|
54
54
|
this.tctClick.emit({
|
|
55
55
|
value: o.dataset.value
|
|
56
56
|
});
|
|
57
57
|
this.onCancel(t);
|
|
58
58
|
} else {
|
|
59
|
-
const
|
|
60
|
-
if (
|
|
59
|
+
const a = !!o.closest(".interior , q2-modal");
|
|
60
|
+
if (a) return;
|
|
61
61
|
this.onCancel(t);
|
|
62
62
|
}
|
|
63
63
|
};
|
|
64
64
|
this.onContentScroll = () => {
|
|
65
65
|
var t;
|
|
66
66
|
const o = this.contentElement.scrollHeight;
|
|
67
|
-
const
|
|
68
|
-
const
|
|
67
|
+
const a = Math.ceil(this.contentElement.scrollTop);
|
|
68
|
+
const i = Math.ceil(((t = this.contentElement.getBoundingClientRect()) === null || t === void 0 ? void 0 : t.height) || 0);
|
|
69
69
|
// to show bottom gradient when more contents available
|
|
70
|
-
if (o >
|
|
71
|
-
o <=
|
|
70
|
+
if (o > i) {
|
|
71
|
+
o <= i + a ? this.contentElement.classList.remove("more-gradient") : this.contentElement.classList.add("more-gradient");
|
|
72
72
|
} else {
|
|
73
73
|
this.contentElement.classList.remove("more-gradient");
|
|
74
74
|
}
|
|
@@ -137,67 +137,67 @@ const n = class {
|
|
|
137
137
|
render() {
|
|
138
138
|
const t = `interior`;
|
|
139
139
|
const o = `${this.renderStatus || ""}`;
|
|
140
|
-
return
|
|
141
|
-
key: "
|
|
140
|
+
return a("dialog", {
|
|
141
|
+
key: "e7c16406478e632f39057feb8ab86029c2b6ddd7",
|
|
142
142
|
ref: t => this.dialogElement = t,
|
|
143
143
|
class: o,
|
|
144
144
|
onClick: this.onClick
|
|
145
|
-
},
|
|
146
|
-
key: "
|
|
145
|
+
}, a("div", {
|
|
146
|
+
key: "b59510c6a97ac4f8e4820465919e364a924b82e1",
|
|
147
147
|
class: t
|
|
148
|
-
}, this.title &&
|
|
149
|
-
key: "
|
|
150
|
-
}, this.title &&
|
|
151
|
-
key: "
|
|
148
|
+
}, this.title && a("header", {
|
|
149
|
+
key: "714904259d422f663d13aa27b715a2de9ab3b12b"
|
|
150
|
+
}, this.title && a("h2", {
|
|
151
|
+
key: "69e2f5f487b73fc84ff6e0ca1e9710d7c5f80938",
|
|
152
152
|
class: "title"
|
|
153
|
-
}, this.title), !!this.closable &&
|
|
154
|
-
key: "
|
|
153
|
+
}, this.title), !!this.closable && a("q2-btn", {
|
|
154
|
+
key: "e9258c375fd6f077f296a496a6a67903a39f3d8c",
|
|
155
155
|
class: "btn-close",
|
|
156
156
|
"test-id": "btnClose",
|
|
157
157
|
onClick: this.onCancel,
|
|
158
158
|
label: "tecton.element.modal.close",
|
|
159
159
|
"hide-label": true
|
|
160
|
-
},
|
|
161
|
-
key: "
|
|
160
|
+
}, a("q2-icon", {
|
|
161
|
+
key: "4c07c70736c25e12d08d6f066507326bc333ad61",
|
|
162
162
|
type: "close"
|
|
163
|
-
}))),
|
|
164
|
-
key: "
|
|
163
|
+
}))), a("div", {
|
|
164
|
+
key: "a40c63b069c6f8c03682d8626f9a359cb5f7f7fa",
|
|
165
165
|
class: "content",
|
|
166
166
|
ref: t => this.contentElement = t
|
|
167
|
-
}, this.icon &&
|
|
168
|
-
key: "
|
|
167
|
+
}, this.icon && a("div", {
|
|
168
|
+
key: "95bf4a48929080493ed1f375648aa8630931e3be",
|
|
169
169
|
class: "icon"
|
|
170
|
-
},
|
|
171
|
-
key: "
|
|
170
|
+
}, a("q2-icon", {
|
|
171
|
+
key: "8e7d34940323c625e61eea7509d829d298af82a0",
|
|
172
172
|
type: this.icon
|
|
173
|
-
})), this.imageSrc &&
|
|
174
|
-
key: "
|
|
173
|
+
})), this.imageSrc && a("div", {
|
|
174
|
+
key: "9f6fbbd59c14cc5ee93601db161dd7c748e3b5a6",
|
|
175
175
|
class: "image"
|
|
176
|
-
},
|
|
177
|
-
key: "
|
|
176
|
+
}, a("img", {
|
|
177
|
+
key: "d97eb1d2dae996c2bcacddf840b984f1ffe05847",
|
|
178
178
|
src: this.imageSrc
|
|
179
|
-
})), s(this.hostElement, "content") &&
|
|
180
|
-
key: "
|
|
179
|
+
})), s(this.hostElement, "content") && a("slot", {
|
|
180
|
+
key: "b7b66ddb181aa333fb88496984a6f35a34077baf",
|
|
181
181
|
name: "content"
|
|
182
|
-
}), this.description &&
|
|
183
|
-
key: "
|
|
182
|
+
}), this.description && a("p", {
|
|
183
|
+
key: "54dc54b11c8c351b760afc35c714d35277b3e463",
|
|
184
184
|
class: "description"
|
|
185
|
-
}, this.description), this.customMarkup &&
|
|
186
|
-
key: "
|
|
185
|
+
}, this.description), this.customMarkup && a("p", {
|
|
186
|
+
key: "11e8922a3e277f6bb21c8cbcaf1be19de07d3a54",
|
|
187
187
|
class: "customMarkup",
|
|
188
188
|
innerHTML: d(this.customMarkup)
|
|
189
|
-
})),
|
|
190
|
-
key: "
|
|
191
|
-
},
|
|
192
|
-
key: "
|
|
189
|
+
})), a("footer", {
|
|
190
|
+
key: "f90f8a5569be4c1660c25388a9082e2e40a3e11d"
|
|
191
|
+
}, a("q2-action-group", {
|
|
192
|
+
key: "34254d2e03a6093e53324c3d98b0eb2ede3b14f2",
|
|
193
193
|
"full-width": true
|
|
194
|
-
},
|
|
195
|
-
key: "
|
|
194
|
+
}, a("slot", {
|
|
195
|
+
key: "a34ad5fa37fc258bd2863f2fd191acdac05de9cb",
|
|
196
196
|
name: "action"
|
|
197
197
|
})))));
|
|
198
198
|
}
|
|
199
199
|
get hostElement() {
|
|
200
|
-
return
|
|
200
|
+
return i(this);
|
|
201
201
|
}
|
|
202
202
|
};
|
|
203
203
|
|