q2-tecton-elements 1.55.4 → 1.55.5
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 +336 -324
- package/dist/cjs/{index-e0aba375.js → index-f69742cf.js} +1 -1
- package/dist/cjs/{index-e0aba375.js.map → index-f69742cf.js.map} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/q2-action-group.cjs.entry.js +1 -1
- 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-badge_7.cjs.entry.js +9 -1
- package/dist/cjs/q2-badge_7.cjs.entry.js.map +1 -1
- package/dist/cjs/q2-calendar.cjs.entry.js +2 -2
- package/dist/cjs/q2-carousel-pane.cjs.entry.js +2 -2
- 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 +1 -1
- package/dist/cjs/q2-checkbox.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 +9 -11
- package/dist/cjs/q2-dropdown.cjs.entry.js.map +1 -1
- package/dist/cjs/q2-editable-field.cjs.entry.js +6 -7
- package/dist/cjs/q2-editable-field.cjs.entry.js.map +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-item_3.cjs.entry.js +2 -2
- package/dist/cjs/q2-legend.cjs.entry.js +1 -1
- package/dist/cjs/q2-message.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-optgroup.cjs.entry.js +1 -1
- package/dist/cjs/q2-option-list_2.cjs.entry.js +8 -4
- package/dist/cjs/q2-option-list_2.cjs.entry.js.map +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 +2 -2
- package/dist/cjs/q2-resize-observer.cjs.entry.js +1 -1
- package/dist/cjs/q2-section.cjs.entry.js +2 -2
- package/dist/cjs/q2-select.cjs.entry.js +2 -2
- package/dist/cjs/q2-stepper-pane.cjs.entry.js +1 -1
- package/dist/cjs/q2-stepper.cjs.entry.js +1 -1
- package/dist/cjs/q2-tecton-elements.cjs.js +1 -1
- package/dist/cjs/q2-textarea.cjs.entry.js +2 -1
- package/dist/cjs/q2-textarea.cjs.entry.js.map +1 -1
- package/dist/collection/collection-manifest.json +6 -6
- 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-btn/q2-btn.js +4 -0
- package/dist/collection/components/q2-btn/q2-btn.js.map +1 -1
- package/dist/collection/components/q2-calendar/q2-calendar.js +1 -1
- package/dist/collection/components/q2-calendar/q2-month-picker.js +2 -2
- package/dist/collection/components/q2-carousel/q2-carousel.js +1 -1
- 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.js +1 -1
- package/dist/collection/components/q2-checkbox-group/q2-checkbox-group.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 +8 -8
- package/dist/collection/components/q2-detail/q2-detail.js +1 -1
- package/dist/collection/components/q2-dropdown/q2-dropdown.js +9 -11
- package/dist/collection/components/q2-dropdown/q2-dropdown.js.map +1 -1
- package/dist/collection/components/q2-editable-field/q2-editable-field.js +12 -7
- package/dist/collection/components/q2-editable-field/q2-editable-field.js.map +1 -1
- package/dist/collection/components/q2-example/q2-example.js +1 -1
- package/dist/collection/components/q2-file-picker/q2-file-picker.js +5 -5
- 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-icon/q2-icon.js +4 -0
- package/dist/collection/components/q2-icon/q2-icon.js.map +1 -1
- package/dist/collection/components/q2-input/q2-input.js +2 -2
- 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-modal/q2-modal.js +1 -1
- package/dist/collection/components/q2-optgroup/q2-optgroup.js +1 -1
- package/dist/collection/components/q2-option-list/q2-option-list.js +7 -7
- 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 +7 -3
- 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 +2 -2
- package/dist/collection/components/q2-stepper/q2-stepper.js +1 -1
- package/dist/collection/components/q2-stepper-pane/q2-stepper-pane.js +3 -3
- package/dist/collection/components/q2-textarea/q2-textarea.js +2 -1
- package/dist/collection/components/q2-textarea/q2-textarea.js.map +1 -1
- 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-btn2.js +4 -0
- package/dist/components/q2-btn2.js.map +1 -1
- package/dist/components/q2-calendar.js +1 -1
- package/dist/components/q2-carousel-pane.js +2 -2
- package/dist/components/q2-carousel.js +1 -1
- 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 +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 +9 -11
- package/dist/components/q2-dropdown.js.map +1 -1
- package/dist/components/q2-editable-field.js +7 -8
- package/dist/components/q2-editable-field.js.map +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-icon2.js +4 -0
- package/dist/components/q2-icon2.js.map +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-modal.js +1 -1
- package/dist/components/q2-month-picker.js +2 -2
- package/dist/components/q2-optgroup2.js +1 -1
- package/dist/components/q2-option-list2.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 +7 -3
- 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 +2 -2
- package/dist/components/q2-stepper-pane.js +1 -1
- package/dist/components/q2-stepper.js +1 -1
- package/dist/components/q2-textarea.js +2 -1
- package/dist/components/q2-textarea.js.map +1 -1
- package/dist/esm/{index-3bb7a785.js → index-3184c760.js} +1 -1
- package/dist/esm/{index-3bb7a785.js.map → index-3184c760.js.map} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/q2-action-group.entry.js +1 -1
- package/dist/esm/q2-action-sheet.entry.js +1 -1
- package/dist/esm/q2-avatar.entry.js +1 -1
- package/dist/esm/q2-badge_7.entry.js +9 -1
- package/dist/esm/q2-badge_7.entry.js.map +1 -1
- package/dist/esm/q2-calendar.entry.js +2 -2
- package/dist/esm/q2-carousel-pane.entry.js +2 -2
- 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 +1 -1
- package/dist/esm/q2-checkbox.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 +9 -11
- package/dist/esm/q2-dropdown.entry.js.map +1 -1
- package/dist/esm/q2-editable-field.entry.js +6 -7
- package/dist/esm/q2-editable-field.entry.js.map +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-item_3.entry.js +2 -2
- package/dist/esm/q2-legend.entry.js +1 -1
- package/dist/esm/q2-message.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-optgroup.entry.js +1 -1
- package/dist/esm/q2-option-list_2.entry.js +8 -4
- package/dist/esm/q2-option-list_2.entry.js.map +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 +2 -2
- package/dist/esm/q2-resize-observer.entry.js +1 -1
- package/dist/esm/q2-section.entry.js +2 -2
- package/dist/esm/q2-select.entry.js +2 -2
- package/dist/esm/q2-stepper-pane.entry.js +1 -1
- package/dist/esm/q2-stepper.entry.js +1 -1
- package/dist/esm/q2-tecton-elements.js +1 -1
- package/dist/esm/q2-textarea.entry.js +2 -1
- package/dist/esm/q2-textarea.entry.js.map +1 -1
- package/dist/q2-tecton-elements/{index-3bb7a785.js → index-3184c760.js} +1 -1
- package/dist/q2-tecton-elements/q2-action-group.entry.js +3 -3
- package/dist/q2-tecton-elements/q2-action-sheet.entry.js +62 -62
- package/dist/q2-tecton-elements/q2-avatar.entry.js +6 -6
- package/dist/q2-tecton-elements/q2-badge_7.entry.js +10 -2
- package/dist/q2-tecton-elements/q2-badge_7.entry.js.map +1 -1
- package/dist/q2-tecton-elements/q2-calendar.entry.js +3 -3
- package/dist/q2-tecton-elements/q2-carousel-pane.entry.js +3 -3
- package/dist/q2-tecton-elements/q2-carousel.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-chart-area.entry.js +2 -2
- package/dist/q2-tecton-elements/q2-chart-bar.entry.js +79 -79
- package/dist/q2-tecton-elements/q2-chart-donut.entry.js +100 -100
- package/dist/q2-tecton-elements/q2-checkbox-group.entry.js +13 -13
- package/dist/q2-tecton-elements/q2-checkbox.entry.js +7 -7
- package/dist/q2-tecton-elements/q2-currency.entry.js +6 -6
- 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 +13 -15
- package/dist/q2-tecton-elements/q2-dropdown.entry.js.map +1 -1
- package/dist/q2-tecton-elements/q2-editable-field.entry.js +26 -17
- package/dist/q2-tecton-elements/q2-editable-field.entry.js.map +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-item_3.entry.js +21 -21
- package/dist/q2-tecton-elements/q2-legend.entry.js +5 -5
- package/dist/q2-tecton-elements/q2-message.entry.js +5 -5
- package/dist/q2-tecton-elements/q2-modal.entry.js +17 -17
- package/dist/q2-tecton-elements/q2-month-picker.entry.js +30 -30
- package/dist/q2-tecton-elements/q2-optgroup.entry.js +4 -4
- package/dist/q2-tecton-elements/q2-option-list_2.entry.js +15 -9
- package/dist/q2-tecton-elements/q2-option-list_2.entry.js.map +1 -1
- package/dist/q2-tecton-elements/q2-pagination.entry.js +33 -33
- package/dist/q2-tecton-elements/q2-pill.entry.js +13 -13
- package/dist/q2-tecton-elements/q2-radio-group.entry.js +33 -33
- package/dist/q2-tecton-elements/q2-radio.entry.js +8 -8
- package/dist/q2-tecton-elements/q2-relative-time.entry.js +2 -2
- package/dist/q2-tecton-elements/q2-resize-observer.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-section.entry.js +11 -11
- package/dist/q2-tecton-elements/q2-select.entry.js +5 -5
- package/dist/q2-tecton-elements/q2-stepper-pane.entry.js +11 -11
- package/dist/q2-tecton-elements/q2-stepper.entry.js +20 -20
- package/dist/q2-tecton-elements/q2-tecton-elements.esm.js +1 -1
- package/dist/q2-tecton-elements/q2-tecton-elements.esm.js.map +1 -1
- package/dist/q2-tecton-elements/q2-textarea.entry.js +3 -2
- package/dist/q2-tecton-elements/q2-textarea.entry.js.map +1 -1
- package/dist/types/components/q2-action-group/q2-action-group.d.ts +1 -0
- package/dist/types/components/q2-action-sheet/q2-action-sheet.d.ts +60 -0
- package/dist/types/components/q2-btn/q2-btn.d.ts +1 -0
- package/dist/types/components/q2-calendar/q2-calendar.d.ts +327 -0
- package/dist/types/components/q2-carousel/q2-carousel.d.ts +95 -0
- package/dist/types/components/q2-data-table/q2-data-table.d.ts +261 -0
- package/dist/types/components/q2-dropdown/q2-dropdown.d.ts +178 -0
- package/dist/types/components/q2-editable-field/q2-editable-field.d.ts +141 -0
- package/dist/types/components/q2-icon/q2-icon.d.ts +1 -0
- package/dist/types/components/q2-loading/skeleton/shapes.d.ts +1 -0
- package/dist/types/components/q2-optgroup/q2-optgroup.d.ts +1 -1
- package/dist/types/components/q2-option-list/q2-option-list.d.ts +100 -0
- package/dist/types/components/q2-pagination/q2-pagination.d.ts +117 -0
- package/dist/types/components/q2-pill/q2-pill.d.ts +143 -0
- package/dist/types/components/q2-select/q2-select.d.ts +238 -0
- package/dist/types/components/q2-stepper/q2-stepper.d.ts +61 -0
- package/dist/types/components/q2-stepper-vertical/q2-stepper-vertical.d.ts +68 -0
- package/dist/types/components/q2-tab-container/q2-tab-container.d.ts +2 -2
- package/dist/types/components/q2-tag/q2-tag.d.ts +91 -0
- package/dist/types/utils/action-sheet.d.ts +12 -0
- package/package.json +4 -3
- /package/dist/q2-tecton-elements/{index-3bb7a785.js.map → index-3184c760.js.map} +0 -0
- /package/dist/types/{Users/kvanhouten/Documents/Work/tecton_extra → builds/q2e/development/tecton/tecton}/packages/q2-tecton-elements/.stencil/jest.setup.d.ts +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as t, c as
|
|
1
|
+
import { r as t, c as e, h as i, F as o, g as a } from "./index-7a5365e2.js";
|
|
2
2
|
|
|
3
3
|
import { l as s, w as r } from "./index-f2a66217.js";
|
|
4
4
|
|
|
@@ -8,20 +8,20 @@ const c = '*{box-sizing:border-box}*:active{outline:none}*:focus{outline:none;bo
|
|
|
8
8
|
|
|
9
9
|
const d = c;
|
|
10
10
|
|
|
11
|
-
var l = undefined && undefined.__rest || function(t,
|
|
12
|
-
var
|
|
13
|
-
for (var o in t) if (Object.prototype.hasOwnProperty.call(t, o) &&
|
|
11
|
+
var l = undefined && undefined.__rest || function(t, e) {
|
|
12
|
+
var i = {};
|
|
13
|
+
for (var o in t) if (Object.prototype.hasOwnProperty.call(t, o) && e.indexOf(o) < 0) i[o] = t[o];
|
|
14
14
|
if (t != null && typeof Object.getOwnPropertySymbols === "function") for (var a = 0, o = Object.getOwnPropertySymbols(t); a < o.length; a++) {
|
|
15
|
-
if (
|
|
15
|
+
if (e.indexOf(o[a]) < 0 && Object.prototype.propertyIsEnumerable.call(t, o[a])) i[o[a]] = t[o[a]];
|
|
16
16
|
}
|
|
17
|
-
return
|
|
17
|
+
return i;
|
|
18
18
|
};
|
|
19
19
|
|
|
20
20
|
const h = class {
|
|
21
21
|
constructor(a) {
|
|
22
22
|
t(this, a);
|
|
23
|
-
this.close =
|
|
24
|
-
this.ready =
|
|
23
|
+
this.close = e(this, "close", 7);
|
|
24
|
+
this.ready = e(this, "ready", 3);
|
|
25
25
|
this.initialSelectedOptions = [];
|
|
26
26
|
this.maxHeight = .75;
|
|
27
27
|
this.minHeight = .2;
|
|
@@ -30,41 +30,41 @@ const h = class {
|
|
|
30
30
|
value: ""
|
|
31
31
|
};
|
|
32
32
|
this.generateOptgroup = t => {
|
|
33
|
-
const
|
|
34
|
-
if (t.label)
|
|
35
|
-
if (t.disabled)
|
|
36
|
-
if (!!t.options.length) t.options.forEach((t =>
|
|
37
|
-
return
|
|
33
|
+
const e = document.createElement("q2-optgroup");
|
|
34
|
+
if (t.label) e.setAttribute("label", t.label);
|
|
35
|
+
if (t.disabled) e.setAttribute("disabled", "");
|
|
36
|
+
if (!!t.options.length) t.options.forEach((t => e.appendChild(this.generateOption(t))));
|
|
37
|
+
return e;
|
|
38
38
|
};
|
|
39
39
|
this.generateOption = t => {
|
|
40
|
-
const
|
|
41
|
-
const {innerHTML:
|
|
42
|
-
if (
|
|
43
|
-
Object.entries(o).forEach((([t,
|
|
44
|
-
if (
|
|
45
|
-
if (typeof
|
|
46
|
-
if (
|
|
40
|
+
const e = document.createElement("q2-option");
|
|
41
|
+
const {innerHTML: i} = t, o = l(t, [ "innerHTML" ]);
|
|
42
|
+
if (i) e.innerHTML = n(i);
|
|
43
|
+
Object.entries(o).forEach((([t, i]) => {
|
|
44
|
+
if (i === undefined) return;
|
|
45
|
+
if (typeof i === "boolean") {
|
|
46
|
+
if (i) e.setAttribute(t, "");
|
|
47
47
|
} else {
|
|
48
|
-
|
|
48
|
+
e.setAttribute(t, i);
|
|
49
49
|
}
|
|
50
50
|
}));
|
|
51
|
-
return
|
|
51
|
+
return e;
|
|
52
52
|
};
|
|
53
53
|
this.onCancel = t => {
|
|
54
|
-
var
|
|
54
|
+
var e, i;
|
|
55
55
|
t.preventDefault();
|
|
56
56
|
const {initialSelectedOptions: o} = this;
|
|
57
57
|
this.hide({
|
|
58
|
-
value: (
|
|
58
|
+
value: (i = (e = o === null || o === void 0 ? void 0 : o[0]) === null || e === void 0 ? void 0 : e.value) !== null && i !== void 0 ? i : "",
|
|
59
59
|
values: o,
|
|
60
60
|
type: "cancel"
|
|
61
61
|
});
|
|
62
62
|
};
|
|
63
63
|
this.onClick = t => {
|
|
64
|
-
const
|
|
65
|
-
if (!(
|
|
66
|
-
const
|
|
67
|
-
if (
|
|
64
|
+
const e = t.target;
|
|
65
|
+
if (!(e instanceof HTMLElement)) return;
|
|
66
|
+
const i = !!e.closest(".interior, q2-action-sheet");
|
|
67
|
+
if (i) return;
|
|
68
68
|
this.onCancel(t);
|
|
69
69
|
};
|
|
70
70
|
this.onListChange = t => {
|
|
@@ -86,30 +86,30 @@ const h = class {
|
|
|
86
86
|
// #endregion
|
|
87
87
|
// #region Render Methods
|
|
88
88
|
this.renderList = ({data: t}) => {
|
|
89
|
-
const {listProps:
|
|
90
|
-
return
|
|
89
|
+
const {listProps: e} = t;
|
|
90
|
+
return i(o, null, i("div", {
|
|
91
91
|
class: "content",
|
|
92
92
|
ref: t => this.contentElement = t
|
|
93
|
-
},
|
|
93
|
+
}, i("q2-option-list", {
|
|
94
94
|
ref: t => this.optionListElement = t,
|
|
95
|
-
multiple:
|
|
96
|
-
noSelect:
|
|
95
|
+
multiple: e.multiple,
|
|
96
|
+
noSelect: e.noSelect,
|
|
97
97
|
onChange: this.onListChange,
|
|
98
98
|
onPopoverState: this.onListPopoverStateChange,
|
|
99
|
-
selectedOptions:
|
|
100
|
-
},
|
|
99
|
+
selectedOptions: e.selectedOptions
|
|
100
|
+
}, i("slot", null))), i("footer", null, e.multiple && i("q2-btn", {
|
|
101
101
|
"test-id": "btnDone",
|
|
102
102
|
intent: "workflow-primary",
|
|
103
103
|
onClick: this.onListDone
|
|
104
104
|
}, s("tecton.element.actionSheet.done"))));
|
|
105
105
|
};
|
|
106
|
-
this.renderMessage = ({data: t}) =>
|
|
106
|
+
this.renderMessage = ({data: t}) => i("q2-message", {
|
|
107
107
|
type: t.type
|
|
108
|
-
}, t.title &&
|
|
109
|
-
this.renderSlot = () =>
|
|
108
|
+
}, t.title && i("h2", null, t.title), t.description && i("p", null, t.description));
|
|
109
|
+
this.renderSlot = () => i("div", {
|
|
110
110
|
class: "content",
|
|
111
111
|
ref: t => this.contentElement = t
|
|
112
|
-
},
|
|
112
|
+
}, i("slot", null));
|
|
113
113
|
this.isScrollable = false;
|
|
114
114
|
this.renderStatus = "is-closing";
|
|
115
115
|
this.data = undefined;
|
|
@@ -171,9 +171,9 @@ const h = class {
|
|
|
171
171
|
const {data: t} = this;
|
|
172
172
|
if (!t) return;
|
|
173
173
|
if (t.appearance === "list") {
|
|
174
|
-
const {event:
|
|
175
|
-
if (
|
|
176
|
-
this.optionListElement.handleExternalKeydown(
|
|
174
|
+
const {event: e} = t;
|
|
175
|
+
if (e instanceof KeyboardEvent) {
|
|
176
|
+
this.optionListElement.handleExternalKeydown(e);
|
|
177
177
|
} else {
|
|
178
178
|
this.optionListElement.focus();
|
|
179
179
|
}
|
|
@@ -210,11 +210,11 @@ const h = class {
|
|
|
210
210
|
}
|
|
211
211
|
render() {
|
|
212
212
|
var t;
|
|
213
|
-
const {data:
|
|
214
|
-
const o = (
|
|
213
|
+
const {data: e} = this;
|
|
214
|
+
const o = (e === null || e === void 0 ? void 0 : e.title) || this.title || !this.hideClose;
|
|
215
215
|
const a = this.renderStatus || "";
|
|
216
216
|
let s = null;
|
|
217
|
-
switch (
|
|
217
|
+
switch (e === null || e === void 0 ? void 0 : e.appearance) {
|
|
218
218
|
case "message":
|
|
219
219
|
s = this.renderMessage;
|
|
220
220
|
break;
|
|
@@ -227,35 +227,35 @@ const h = class {
|
|
|
227
227
|
s = this.renderSlot;
|
|
228
228
|
break;
|
|
229
229
|
}
|
|
230
|
-
const r = (
|
|
230
|
+
const r = (e === null || e === void 0 ? void 0 : e.appearance) || "slot";
|
|
231
231
|
const n = `interior is-${r}`;
|
|
232
|
-
return
|
|
233
|
-
key: "
|
|
232
|
+
return i("dialog", {
|
|
233
|
+
key: "d0af72ad1b1c131bef4f6661ff4226ca78c87a2a",
|
|
234
234
|
ref: t => this.dialogElement = t,
|
|
235
235
|
class: a,
|
|
236
236
|
onClick: this.onClick
|
|
237
|
-
},
|
|
238
|
-
key: "
|
|
237
|
+
}, i("div", {
|
|
238
|
+
key: "ac49c7e7ef0c085a792779488f22b5919fe46cbc",
|
|
239
239
|
class: n
|
|
240
|
-
}, o &&
|
|
241
|
-
key: "
|
|
242
|
-
},
|
|
243
|
-
key: "
|
|
240
|
+
}, o && i("header", {
|
|
241
|
+
key: "2d558b392b3005d6e54a525263b703926499bd9c"
|
|
242
|
+
}, i("div", {
|
|
243
|
+
key: "a1d06ac6d939eef0675920e7be4c80cc74e6411f",
|
|
244
244
|
class: "title"
|
|
245
|
-
}, (
|
|
246
|
-
key: "
|
|
245
|
+
}, (e === null || e === void 0 ? void 0 : e.title) || this.title), !this.hideClose && i("q2-btn", {
|
|
246
|
+
key: "4e0de7d287daef9f7b804f0f0dcdaed087931ca3",
|
|
247
247
|
class: "btn-close",
|
|
248
248
|
"test-id": "btnClose",
|
|
249
249
|
onClick: this.onCancel,
|
|
250
250
|
label: "tecton.element.actionSheet.close",
|
|
251
251
|
"hide-label": true
|
|
252
|
-
},
|
|
253
|
-
key: "
|
|
252
|
+
}, i("q2-icon", {
|
|
253
|
+
key: "bf9a5f21a3d90997ad556db316f3e9be074ce32d",
|
|
254
254
|
type: "close"
|
|
255
|
-
}))), ((t = this.data) === null || t === void 0 ? void 0 : t.description) &&
|
|
256
|
-
key: "
|
|
257
|
-
},
|
|
258
|
-
key: "
|
|
255
|
+
}))), ((t = this.data) === null || t === void 0 ? void 0 : t.description) && i("p", {
|
|
256
|
+
key: "554055dc7db18192dae5278b0db1e73013a9f44e"
|
|
257
|
+
}, e.description), s && i(s, {
|
|
258
|
+
key: "466462435bbfcd7fea7aa15fea8a014d1cd8370e",
|
|
259
259
|
data: this.data
|
|
260
260
|
})));
|
|
261
261
|
}
|
|
@@ -52,9 +52,9 @@ const c = class {
|
|
|
52
52
|
const e = (this.name || this.initials) && (!this.src || this.badSrc);
|
|
53
53
|
const c = !this.name && !this.initials && (!this.src || this.badSrc);
|
|
54
54
|
return t("div", {
|
|
55
|
-
key: "
|
|
55
|
+
key: "e7fc18664e3c2dab8d49f02fca71af397542ec33"
|
|
56
56
|
}, r && t("img", {
|
|
57
|
-
key: "
|
|
57
|
+
key: "34275fafae8eb89ab239322a991cacdec7c7c3f0",
|
|
58
58
|
class: i ? "avatar-img" : "avatar-img-default",
|
|
59
59
|
"test-id": "userImage",
|
|
60
60
|
src: this.src,
|
|
@@ -62,7 +62,7 @@ const c = class {
|
|
|
62
62
|
onLoad: this.onLoad,
|
|
63
63
|
alt: this.name || ""
|
|
64
64
|
}), e && t("svg", {
|
|
65
|
-
key: "
|
|
65
|
+
key: "74286d05347fa35df27b25c3096d1e1c9f7be604",
|
|
66
66
|
viewBox: "0 0 100 100",
|
|
67
67
|
preserveAspectRatio: "xMidYMid meet",
|
|
68
68
|
"test-id": "userInitials",
|
|
@@ -70,18 +70,18 @@ const c = class {
|
|
|
70
70
|
"aria-label": this.name,
|
|
71
71
|
"aria-hidden": !this.name && "true"
|
|
72
72
|
}, t("text", {
|
|
73
|
-
key: "
|
|
73
|
+
key: "4862379daa82e61f0e1e907b6070210b79246490",
|
|
74
74
|
x: "50",
|
|
75
75
|
y: "50",
|
|
76
76
|
"dominant-baseline": "central",
|
|
77
77
|
"text-anchor": "middle",
|
|
78
78
|
"aria-hidden": "true"
|
|
79
79
|
}, a)), c && t("div", {
|
|
80
|
-
key: "
|
|
80
|
+
key: "757d739f831a81811c72920c6994db4fb1838dfb",
|
|
81
81
|
"test-id": "fallbackIcon",
|
|
82
82
|
class: "fallback"
|
|
83
83
|
}, t("q2-icon", {
|
|
84
|
-
key: "
|
|
84
|
+
key: "6888b2c395a5e85dfedbf348c1183c5de941d091",
|
|
85
85
|
type: this.icon
|
|
86
86
|
})));
|
|
87
87
|
}
|
|
@@ -153,6 +153,10 @@ const M = class {
|
|
|
153
153
|
this.handleButtonSize();
|
|
154
154
|
l(this.hostElement);
|
|
155
155
|
}
|
|
156
|
+
disconnectedCallback() {
|
|
157
|
+
this.primaryBtn = null;
|
|
158
|
+
this.primaryBtnWrapper = null;
|
|
159
|
+
}
|
|
156
160
|
// #endregion
|
|
157
161
|
// #region Listeners
|
|
158
162
|
handleClick(t) {
|
|
@@ -999,6 +1003,10 @@ const ho = class {
|
|
|
999
1003
|
// We have to set the `href` attribute after the symbol is appended to the DOM to avoid a bug in Safari
|
|
1000
1004
|
(a = this.spriteUse) === null || a === void 0 ? void 0 : a.setAttribute("href", `#${e.id}`);
|
|
1001
1005
|
}
|
|
1006
|
+
disconnectedCallback() {
|
|
1007
|
+
this.spriteGroup = null;
|
|
1008
|
+
this.spriteUse = null;
|
|
1009
|
+
}
|
|
1002
1010
|
// #endregion
|
|
1003
1011
|
// #region Watchers
|
|
1004
1012
|
handleIcon() {
|
|
@@ -5011,10 +5019,10 @@ const Io = class {
|
|
|
5011
5019
|
}
|
|
5012
5020
|
render() {
|
|
5013
5021
|
return r("div", {
|
|
5014
|
-
key: "
|
|
5022
|
+
key: "2cc30e91a73c9add9f82e794a0e04266fe5e8e78",
|
|
5015
5023
|
class: this.wrapperClasses
|
|
5016
5024
|
}, r("div", {
|
|
5017
|
-
key: "
|
|
5025
|
+
key: "64baf86fc032a16240e7d4afb9985de4ed63346f",
|
|
5018
5026
|
class: "label-wrapper"
|
|
5019
5027
|
}, g(this), this.renderCountDOM()), this.renderInputContainerDOM(), x(this));
|
|
5020
5028
|
}
|