q2-tecton-elements 1.56.1 → 1.56.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 +4 -4
- 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 +3 -3
- 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.cjs.entry.js +2 -2
- package/dist/cjs/q2-checkbox.cjs.entry.js.map +1 -1
- package/dist/cjs/q2-currency.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-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 +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-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-vertical.cjs.entry.js +1 -1
- package/dist/cjs/q2-stepper.cjs.entry.js +1 -1
- package/dist/cjs/q2-tag.cjs.entry.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-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 +0 -1
- package/dist/collection/components/q2-checkbox/q2-checkbox.js +1 -1
- 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-currency/q2-currency.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-modal/q2-modal.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 +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-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-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 +2 -2
- package/dist/components/q2-checkbox2.js.map +1 -1
- package/dist/components/q2-currency.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-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-pagination.js +3 -3
- package/dist/components/q2-pill.js +1 -1
- package/dist/components/q2-popover2.js +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-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-tag.js +1 -1
- package/dist/components/q2-textarea.js +1 -1
- package/dist/components/tecton-tab-pane.js +2 -2
- 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 +3 -3
- 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.entry.js +2 -2
- package/dist/esm/q2-checkbox.entry.js.map +1 -1
- package/dist/esm/q2-currency.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-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 +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-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-vertical.entry.js +1 -1
- package/dist/esm/q2-stepper.entry.js +1 -1
- package/dist/esm/q2-tag.entry.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/q2-action-group.entry.js +3 -3
- package/dist/q2-tecton-elements/q2-action-sheet.entry.js +8 -8
- package/dist/q2-tecton-elements/q2-avatar.entry.js +6 -6
- package/dist/q2-tecton-elements/q2-badge_7.entry.js +42 -42
- package/dist/q2-tecton-elements/q2-carousel-pane.entry.js +3 -3
- 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 +6 -6
- package/dist/q2-tecton-elements/q2-checkbox-group.entry.js +42 -42
- package/dist/q2-tecton-elements/q2-checkbox.entry.js +6 -4
- package/dist/q2-tecton-elements/q2-checkbox.entry.js.map +1 -1
- package/dist/q2-tecton-elements/q2-currency.entry.js +6 -6
- package/dist/q2-tecton-elements/q2-detail.entry.js +38 -38
- package/dist/q2-tecton-elements/q2-dropdown.entry.js +5 -5
- 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 +5 -5
- package/dist/q2-tecton-elements/q2-formatted-text.entry.js +2 -2
- package/dist/q2-tecton-elements/q2-item_3.entry.js +18 -18
- package/dist/q2-tecton-elements/q2-legend.entry.js +2 -2
- package/dist/q2-tecton-elements/q2-message.entry.js +20 -20
- package/dist/q2-tecton-elements/q2-modal.entry.js +17 -17
- package/dist/q2-tecton-elements/q2-month-picker.entry.js +81 -81
- package/dist/q2-tecton-elements/q2-optgroup.entry.js +7 -7
- package/dist/q2-tecton-elements/q2-option-list_2.entry.js +28 -28
- package/dist/q2-tecton-elements/q2-pagination.entry.js +41 -41
- package/dist/q2-tecton-elements/q2-pill.entry.js +13 -13
- package/dist/q2-tecton-elements/q2-radio-group.entry.js +6 -6
- package/dist/q2-tecton-elements/q2-radio.entry.js +23 -23
- package/dist/q2-tecton-elements/q2-relative-time.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-resize-observer.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-section.entry.js +19 -19
- package/dist/q2-tecton-elements/q2-select.entry.js +5 -5
- package/dist/q2-tecton-elements/q2-stepper-vertical.entry.js +18 -18
- package/dist/q2-tecton-elements/q2-stepper.entry.js +28 -28
- package/dist/q2-tecton-elements/q2-tag.entry.js +5 -5
- package/dist/q2-tecton-elements/q2-textarea.entry.js +2 -2
- package/dist/q2-tecton-elements/tecton-tab-pane.entry.js +9 -9
- package/package.json +3 -3
|
@@ -106,44 +106,44 @@ const d = class {
|
|
|
106
106
|
render() {
|
|
107
107
|
const {clickable: t} = this;
|
|
108
108
|
return e("div", {
|
|
109
|
-
key: "
|
|
109
|
+
key: "b8fd1943532c8b21e6009abdc074adb8804de569",
|
|
110
110
|
"test-id": "itemContainer",
|
|
111
111
|
class: this.itemClasses,
|
|
112
112
|
ref: t => this.itemElement = t,
|
|
113
113
|
role: t ? "button" : undefined,
|
|
114
114
|
tabIndex: t ? 0 : undefined
|
|
115
115
|
}, this.hasBulletSlotContent && e("div", {
|
|
116
|
-
key: "
|
|
116
|
+
key: "e24948885dc1c5adc00daf6c79f50ab6e12c1a5f",
|
|
117
117
|
class: this.bulletClasses
|
|
118
118
|
}, e("slot", {
|
|
119
|
-
key: "
|
|
119
|
+
key: "3f7a9d142e999ae4e2d0f4030962a99b92d2009f",
|
|
120
120
|
name: "bullet"
|
|
121
121
|
})), e("div", {
|
|
122
|
-
key: "
|
|
122
|
+
key: "1fce62c21f3c0e2b99aa2687a19dbd6081043242",
|
|
123
123
|
class: this.mainClasses
|
|
124
124
|
}, this.hasHeaderSlotContent && e("div", {
|
|
125
|
-
key: "
|
|
125
|
+
key: "e73680590a2f8612d93ced7065e0cdb85c5690e9",
|
|
126
126
|
class: "header"
|
|
127
127
|
}, e("slot", {
|
|
128
|
-
key: "
|
|
128
|
+
key: "b550f6e06b3987b21a9e1340b6b3338304271513",
|
|
129
129
|
name: "header"
|
|
130
130
|
})), this.hasBodySlotContent && e("div", {
|
|
131
|
-
key: "
|
|
131
|
+
key: "5397462440a383586ad044b0fa3601b99151f6b6",
|
|
132
132
|
class: "body"
|
|
133
133
|
}, e("slot", {
|
|
134
|
-
key: "
|
|
134
|
+
key: "c33d16c661a9f18f154685598a93229e6b99b01d",
|
|
135
135
|
name: "body"
|
|
136
136
|
}))), this.hasActionSlotContent && e("div", {
|
|
137
|
-
key: "
|
|
137
|
+
key: "12d47acdf2b4915d7db0b506552decf3e8339b15",
|
|
138
138
|
class: this.actionClasses
|
|
139
139
|
}, e("slot", {
|
|
140
|
-
key: "
|
|
140
|
+
key: "35cd3d9956350f7839e3b32947ce646ac093e0b0",
|
|
141
141
|
name: "action"
|
|
142
142
|
})), this.hasFooterSlotContent && e("div", {
|
|
143
|
-
key: "
|
|
143
|
+
key: "8ff5309d31bc9472721f0e67144ec16d79b5bc76",
|
|
144
144
|
class: this.footerClasses
|
|
145
145
|
}, e("slot", {
|
|
146
|
-
key: "
|
|
146
|
+
key: "14b717dfd672f169a8ee7aedab6bb70d5a0f2dfe",
|
|
147
147
|
name: "footer"
|
|
148
148
|
})));
|
|
149
149
|
}
|
|
@@ -302,23 +302,23 @@ const f = class {
|
|
|
302
302
|
// #region Render Methods
|
|
303
303
|
render() {
|
|
304
304
|
return e("div", {
|
|
305
|
-
key: "
|
|
305
|
+
key: "f4669851dfbd167e38d5ca50043f15d77cc0d800",
|
|
306
306
|
class: this.listClasses,
|
|
307
307
|
ref: t => this.listElement = t
|
|
308
308
|
}, (this.hasFilterSlot || this.hasLabelContent) && e("div", {
|
|
309
|
-
key: "
|
|
309
|
+
key: "528c9d5ebb2d5ed8924ad67f6f79415443d5bd93",
|
|
310
310
|
class: this.headerClasses
|
|
311
311
|
}, e("div", {
|
|
312
|
-
key: "
|
|
312
|
+
key: "1c6a2dc44ae7d8c1664bcd8c96584d451f379918",
|
|
313
313
|
class: "label"
|
|
314
314
|
}, this.label), this.hasFilterSlot && e("slot", {
|
|
315
|
-
key: "
|
|
315
|
+
key: "116cace9b3451dad4e7b4c045989cd0d768216d2",
|
|
316
316
|
name: "filter"
|
|
317
317
|
})), e("div", {
|
|
318
|
-
key: "
|
|
318
|
+
key: "20f693f5b706961ad9f0fc9b6e934eb3d16211dc",
|
|
319
319
|
role: "list"
|
|
320
320
|
}, e("slot", {
|
|
321
|
-
key: "
|
|
321
|
+
key: "260f0822b4bf149adc6b0269f3f09e9d4550b7a4"
|
|
322
322
|
})));
|
|
323
323
|
}
|
|
324
324
|
get hostElement() {
|
|
@@ -103,10 +103,10 @@ const o = class {
|
|
|
103
103
|
// #region Render Methods
|
|
104
104
|
render() {
|
|
105
105
|
return i("click-elsewhere", {
|
|
106
|
-
key: "
|
|
106
|
+
key: "95da1d55b13d20ce807598d88339e36c45b52c49",
|
|
107
107
|
onChange: () => this.onClickElsewhere(this)
|
|
108
108
|
}, i("ul", {
|
|
109
|
-
key: "
|
|
109
|
+
key: "dd9a72bab53b5a4093821fc6834fe13cdf8e65b9"
|
|
110
110
|
}, this.dataWithClasses.map((t => i("li", {
|
|
111
111
|
class: "item"
|
|
112
112
|
}, i("button", {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as t, h as
|
|
1
|
+
import { r as t, h as a, g as e } from "./index-7a5365e2.js";
|
|
2
2
|
|
|
3
3
|
import { o as s, i as o, n as r, t as i, l as n } from "./index-c215e8ef.js";
|
|
4
4
|
|
|
@@ -7,8 +7,8 @@ const c = "*{box-sizing:border-box}*:active{outline:none}*:focus{outline:none;bo
|
|
|
7
7
|
const p = c;
|
|
8
8
|
|
|
9
9
|
const d = class {
|
|
10
|
-
constructor(
|
|
11
|
-
t(this,
|
|
10
|
+
constructor(a) {
|
|
11
|
+
t(this, a);
|
|
12
12
|
this.presentToggle = undefined;
|
|
13
13
|
this.appearance = "standard";
|
|
14
14
|
this.description = false;
|
|
@@ -44,15 +44,15 @@ const d = class {
|
|
|
44
44
|
return i();
|
|
45
45
|
}
|
|
46
46
|
messageIcon(t) {
|
|
47
|
-
const
|
|
47
|
+
const e = {
|
|
48
48
|
success: "success",
|
|
49
49
|
warning: "warning",
|
|
50
50
|
danger: "error",
|
|
51
51
|
error: "error",
|
|
52
52
|
info: "info"
|
|
53
53
|
};
|
|
54
|
-
const s =
|
|
55
|
-
return
|
|
54
|
+
const s = e[t] || e.info;
|
|
55
|
+
return a("q2-icon", {
|
|
56
56
|
type: s,
|
|
57
57
|
class: "message-icon"
|
|
58
58
|
});
|
|
@@ -61,35 +61,35 @@ const d = class {
|
|
|
61
61
|
// #region Render Methods
|
|
62
62
|
render() {
|
|
63
63
|
const {isFirefox: t} = this;
|
|
64
|
-
const
|
|
64
|
+
const e = t && this.presentToggle;
|
|
65
65
|
const s = !t && this.presentToggle;
|
|
66
66
|
const {description: o} = this;
|
|
67
67
|
const r = n(`tecton.element.message.type.${this.type ? this.type : "info"}`);
|
|
68
|
-
return
|
|
69
|
-
key: "
|
|
68
|
+
return a("div", {
|
|
69
|
+
key: "af95b16f26f096c960a0481a236c1d73f7fd971e",
|
|
70
70
|
tabindex: "-1",
|
|
71
71
|
class: "message",
|
|
72
72
|
role: o ? undefined : "alert",
|
|
73
73
|
"aria-live": o ? undefined : "assertive",
|
|
74
74
|
"aria-atomic": o ? undefined : "true",
|
|
75
|
-
"aria-relevant": o &&
|
|
75
|
+
"aria-relevant": o && e ? undefined : "all",
|
|
76
76
|
"test-id": "messageContainer"
|
|
77
|
-
}, this.appearance === "standard" ? this.messageIcon(this.type) : "", s &&
|
|
78
|
-
key: "
|
|
77
|
+
}, this.appearance === "standard" ? this.messageIcon(this.type) : "", s && a("div", {
|
|
78
|
+
key: "0f0d5c38c9faa86f8aa80cca24580fd211d21db7",
|
|
79
79
|
class: "sr"
|
|
80
|
-
}),
|
|
81
|
-
key: "
|
|
80
|
+
}), a("div", {
|
|
81
|
+
key: "5d996e61acffbcbd7672ac62ff24df956b890c78",
|
|
82
82
|
class: "sr message-label"
|
|
83
|
-
}, r),
|
|
84
|
-
key: "
|
|
83
|
+
}, r), a("div", {
|
|
84
|
+
key: "9139aad1c78a1388a39ef44ede6c98a7082fad54",
|
|
85
85
|
class: "message-content",
|
|
86
|
-
"aria-hidden":
|
|
87
|
-
},
|
|
88
|
-
key: "
|
|
86
|
+
"aria-hidden": e ? "true" : undefined
|
|
87
|
+
}, a("slot", {
|
|
88
|
+
key: "b9bac3aaf099af6d9ad0ecf024de89b92fe6c30d"
|
|
89
89
|
})));
|
|
90
90
|
}
|
|
91
91
|
get hostElement() {
|
|
92
|
-
return
|
|
92
|
+
return e(this);
|
|
93
93
|
}
|
|
94
94
|
};
|
|
95
95
|
|
|
@@ -156,62 +156,62 @@ const l = class {
|
|
|
156
156
|
const t = `interior`;
|
|
157
157
|
const i = `${this.renderStatus || ""}`;
|
|
158
158
|
return o("dialog", {
|
|
159
|
-
key: "
|
|
159
|
+
key: "30273b5d1cec5b21ea86f9ffc2a49bab6fd92737",
|
|
160
160
|
ref: t => this.dialogElement = t,
|
|
161
161
|
class: i,
|
|
162
162
|
onClick: this.onClick
|
|
163
163
|
}, o("div", {
|
|
164
|
-
key: "
|
|
164
|
+
key: "65ad95c5f7f030c5d600022ad9054800a74c7165",
|
|
165
165
|
class: t
|
|
166
166
|
}, this.title && o("header", {
|
|
167
|
-
key: "
|
|
167
|
+
key: "d5e592cb3ecfd4255eb2498cd4976823c1f486cd"
|
|
168
168
|
}, this.title && o("h2", {
|
|
169
|
-
key: "
|
|
169
|
+
key: "11184e0132eec11c6191c2d26303126ad8b1f7d2",
|
|
170
170
|
class: "title"
|
|
171
171
|
}, this.title), !!this.closable && o("q2-btn", {
|
|
172
|
-
key: "
|
|
172
|
+
key: "4aa2602d31a4d2665a15a9657ffa7685be383c6e",
|
|
173
173
|
class: "btn-close",
|
|
174
174
|
"test-id": "btnClose",
|
|
175
175
|
onClick: this.onCancel,
|
|
176
176
|
label: "tecton.element.modal.close",
|
|
177
177
|
"hide-label": true
|
|
178
178
|
}, o("q2-icon", {
|
|
179
|
-
key: "
|
|
179
|
+
key: "c8ac5c3ec739a6a5de2fc426d32e4e0c0cb070f0",
|
|
180
180
|
type: "close"
|
|
181
181
|
}))), o("div", {
|
|
182
|
-
key: "
|
|
182
|
+
key: "b9ca1c39bd0bf93e98ff999a17e48eab5305d910",
|
|
183
183
|
class: "content",
|
|
184
184
|
ref: t => this.contentElement = t
|
|
185
185
|
}, this.icon && o("div", {
|
|
186
|
-
key: "
|
|
186
|
+
key: "0e73d98e58f678f39cea7eca1edaae2ec301068d",
|
|
187
187
|
class: "icon"
|
|
188
188
|
}, o("q2-icon", {
|
|
189
|
-
key: "
|
|
189
|
+
key: "54603ab9ea578570453885deb99a04aedcad32b3",
|
|
190
190
|
type: this.icon,
|
|
191
191
|
style: this.iconStyle()
|
|
192
192
|
})), this.imageSrc && o("div", {
|
|
193
|
-
key: "
|
|
193
|
+
key: "013e627b7a4b772eecaf08b4a3179670f86f5f90",
|
|
194
194
|
class: "image"
|
|
195
195
|
}, o("img", {
|
|
196
|
-
key: "
|
|
196
|
+
key: "0250e63bbbb8927ff02346cd94653cd4a7fa6acb",
|
|
197
197
|
src: this.imageSrc
|
|
198
198
|
})), s(this.hostElement, "content") && o("slot", {
|
|
199
|
-
key: "
|
|
199
|
+
key: "d7c56222d99a7251f9e991f93a2b07e8e8fb9e93",
|
|
200
200
|
name: "content"
|
|
201
201
|
}), this.description && o("p", {
|
|
202
|
-
key: "
|
|
202
|
+
key: "d6b9582584579f96bb95d2727bb099ab19175046",
|
|
203
203
|
class: "description"
|
|
204
204
|
}, this.description), this.customMarkup && o("p", {
|
|
205
|
-
key: "
|
|
205
|
+
key: "761b77672e0cc7c3781aef9ac56cf2ac892d145b",
|
|
206
206
|
class: "customMarkup",
|
|
207
207
|
innerHTML: d(this.customMarkup)
|
|
208
208
|
})), o("footer", {
|
|
209
|
-
key: "
|
|
209
|
+
key: "351623e5d1e6251cc67bf3a0b9a0f6caf2753af6"
|
|
210
210
|
}, o("q2-action-group", {
|
|
211
|
-
key: "
|
|
211
|
+
key: "08350951cd2a3ffc150be56e49d6f57b0f68a66a",
|
|
212
212
|
"full-width": true
|
|
213
213
|
}, o("slot", {
|
|
214
|
-
key: "
|
|
214
|
+
key: "d244c6b82ed1a1ad8d469807e8438fd03bf415a8",
|
|
215
215
|
name: "action"
|
|
216
216
|
})))));
|
|
217
217
|
}
|
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
import { r as t, c as
|
|
1
|
+
import { r as t, c as n, h as e, g as o } from "./index-7a5365e2.js";
|
|
2
2
|
|
|
3
|
-
import { l as
|
|
3
|
+
import { l as a, o as i } from "./index-c215e8ef.js";
|
|
4
4
|
|
|
5
5
|
const r = "*{box-sizing:border-box}*:active{outline:none}*:focus{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}.month-container{--comp-month-primary-background:var(--tct-btn-primary-background, var(--tct-btn-primary-bg, var(--t-btn-primary-bg, #2e2e2e)));--comp-month-primary-font-color:var(--tct-btn-primary-font-color, var(--t-btn-primary-font-color, var(--tct-white, var(--app-white, #ffffff))));--comp-month-primary-background:var(--tct-btn-secondary-background, var(--tct-btn-secondary-bg, var(--t-button-default-bg, #cccccc)));--comp-month-secondary-font-color:var(--tct-btn-secondary-font-color, var(--t-btn-secondary-font-color, var(--t-button-default-font-color, #2e2e2e)))}.month-container .navigation{display:flex;justify-content:space-between;flex-direction:row}.month-container .navigation .year-btn{padding:0 1rem;display:flex;align-items:center}.month-container .navigation .year-btn .year{margin-right:0.2rem}.month-container .navigation .year-btn .year-icon{--t-icon-stroke-width:2px;width:16px;height:16px;transition:all 0.3s ease-in-out}.month-container .navigation .year-btn .year-icon.on{transform:rotate(-180deg)}.month-container .navigation .month-controller{display:flex;align-items:center}.month-container .month-list{display:grid;grid-template-columns:auto auto auto}.month-container .month-list .month{display:flex;justify-content:center;align-items:center;padding:0.5rem 0}.month-container .month-list .month .month-button{border-radius:50%;aspect-ratio:1;width:50px;display:flex;justify-content:center;align-items:center}.month-container .month-list .month .month-button:hover{background:var(--comp-month-primary-background);color:var(--comp-month-secondary-font-color);cursor:pointer}.month-container .month-list .month .month-button:active,.month-container .month-list .month .month-button.active{background:var(--comp-month-primary-background);color:var(--comp-month-primary-font-color)}.month-container .today-label{padding:0.5rem 0;color:var(--tct-calendar-day-selected-outline-color, var(--t-calendar-day-selected-outline-color, var(--tct-stoplight-info, var(--const-stoplight-info, #0079c1))))}";
|
|
6
6
|
|
|
7
7
|
const c = r;
|
|
8
8
|
|
|
9
9
|
const s = class {
|
|
10
|
-
constructor(
|
|
11
|
-
t(this,
|
|
12
|
-
this.toggleChange =
|
|
13
|
-
this.viewChange =
|
|
10
|
+
constructor(e) {
|
|
11
|
+
t(this, e);
|
|
12
|
+
this.toggleChange = n(this, "toggleChange", 7);
|
|
13
|
+
this.viewChange = n(this, "viewChange", 7);
|
|
14
14
|
// #region Own Properties
|
|
15
15
|
this.monthGrid = [ [ 0, 1, 2 ], [ 3, 4, 5 ], [ 6, 7, 8 ], [ 9, 10, 11 ] ];
|
|
16
16
|
this.months = [ "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" ].map((t => ({
|
|
17
|
-
label:
|
|
18
|
-
abbr:
|
|
17
|
+
label: a(`tecton.element.calendar.months.${t}`),
|
|
18
|
+
abbr: a(`tecton.element.calendar.months.abbr.${t}`)
|
|
19
19
|
})));
|
|
20
20
|
this.scheduledAfterRender = [];
|
|
21
21
|
// #endregion
|
|
22
22
|
// #region Local Methods
|
|
23
23
|
this.focusMonth = t => {
|
|
24
|
-
const
|
|
25
|
-
if (
|
|
24
|
+
const n = this.hostElement.shadowRoot.querySelector(`.month-button[data-index="${t}"]`);
|
|
25
|
+
if (n) {
|
|
26
26
|
this.focusedIndex = t;
|
|
27
|
-
|
|
27
|
+
n.focus();
|
|
28
28
|
}
|
|
29
29
|
};
|
|
30
|
-
this.moveMonth = (t,
|
|
30
|
+
this.moveMonth = (t, n, e) => {
|
|
31
31
|
const o = t.length;
|
|
32
|
-
const
|
|
33
|
-
const
|
|
34
|
-
const r =
|
|
35
|
-
const c = [
|
|
36
|
-
if (
|
|
37
|
-
|
|
38
|
-
|
|
32
|
+
const a = t[0].length;
|
|
33
|
+
const i = Math.floor(n / a);
|
|
34
|
+
const r = n % a;
|
|
35
|
+
const c = [ i, r ];
|
|
36
|
+
if (e.key === "ArrowUp") {
|
|
37
|
+
e.stopPropagation();
|
|
38
|
+
e.preventDefault();
|
|
39
39
|
return t[Math.max(0, c[0] - 1)][c[1]];
|
|
40
|
-
} else if (
|
|
41
|
-
|
|
42
|
-
|
|
40
|
+
} else if (e.key === "ArrowDown") {
|
|
41
|
+
e.stopPropagation();
|
|
42
|
+
e.preventDefault();
|
|
43
43
|
return t[Math.min(o - 1, c[0] + 1)][c[1]];
|
|
44
|
-
} else if (
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
return Math.max(0,
|
|
48
|
-
} else if (
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
return Math.min(this.months.length - 1,
|
|
44
|
+
} else if (e.key === "ArrowLeft") {
|
|
45
|
+
e.stopPropagation();
|
|
46
|
+
e.preventDefault();
|
|
47
|
+
return Math.max(0, n - 1);
|
|
48
|
+
} else if (e.key === "ArrowRight") {
|
|
49
|
+
e.stopPropagation();
|
|
50
|
+
e.preventDefault();
|
|
51
|
+
return Math.min(this.months.length - 1, n + 1);
|
|
52
52
|
} else {
|
|
53
53
|
return t[c[0]][c[1]];
|
|
54
54
|
}
|
|
@@ -60,43 +60,43 @@ const s = class {
|
|
|
60
60
|
});
|
|
61
61
|
return;
|
|
62
62
|
}
|
|
63
|
-
const
|
|
64
|
-
if (!
|
|
63
|
+
const n = t.target.dataset.index;
|
|
64
|
+
if (!n) return;
|
|
65
65
|
if (t.key === "Enter" || t.key === " ") {
|
|
66
66
|
t.preventDefault();
|
|
67
67
|
t.stopPropagation();
|
|
68
|
-
this.selectMonth(Number(
|
|
68
|
+
this.selectMonth(Number(n));
|
|
69
69
|
} else {
|
|
70
|
-
const
|
|
71
|
-
this.focusMonth(
|
|
70
|
+
const e = this.moveMonth(this.monthGrid, Number(n), t);
|
|
71
|
+
this.focusMonth(e);
|
|
72
72
|
}
|
|
73
73
|
};
|
|
74
74
|
this.onMonthSelection = t => {
|
|
75
|
-
var
|
|
75
|
+
var n, e;
|
|
76
76
|
const o = t.target.closest(".month-button");
|
|
77
|
-
if ((
|
|
78
|
-
this.selectMonth(Number((
|
|
77
|
+
if ((n = o === null || o === void 0 ? void 0 : o.dataset) === null || n === void 0 ? void 0 : n.index) {
|
|
78
|
+
this.selectMonth(Number((e = o === null || o === void 0 ? void 0 : o.dataset) === null || e === void 0 ? void 0 : e.index));
|
|
79
79
|
}
|
|
80
80
|
};
|
|
81
81
|
this.selectMonth = t => {
|
|
82
|
-
var
|
|
82
|
+
var n, e, o;
|
|
83
83
|
this.selectedIndex = t;
|
|
84
84
|
this.focusedIndex = t;
|
|
85
|
-
const
|
|
86
|
-
(
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
const
|
|
85
|
+
const a = this.hostElement.shadowRoot.querySelector(`.month-button[data-index="${t}"]`);
|
|
86
|
+
(n = this.hostElement.shadowRoot.querySelectorAll(`.month-button`)) === null || n === void 0 ? void 0 : n.forEach((t => t.classList.remove("active")));
|
|
87
|
+
a === null || a === void 0 ? void 0 : a.classList.add("active");
|
|
88
|
+
a === null || a === void 0 ? void 0 : a.focus();
|
|
89
|
+
const i = {
|
|
90
90
|
view: "day",
|
|
91
91
|
// change to day view
|
|
92
92
|
monthIndex: t,
|
|
93
93
|
selectedYear: this.year
|
|
94
94
|
};
|
|
95
|
-
(o = (
|
|
95
|
+
(o = (e = this.hostElement).onchange) === null || o === void 0 ? void 0 : o.call(e, new CustomEvent("click", {
|
|
96
96
|
bubbles: true,
|
|
97
|
-
detail:
|
|
97
|
+
detail: i
|
|
98
98
|
}));
|
|
99
|
-
this.viewChange.emit(
|
|
99
|
+
this.viewChange.emit(i);
|
|
100
100
|
};
|
|
101
101
|
this.selectYear = t => {
|
|
102
102
|
this.year = Math.max(1970, t);
|
|
@@ -113,7 +113,7 @@ const s = class {
|
|
|
113
113
|
// #endregion
|
|
114
114
|
// #region Component Lifecycle Events
|
|
115
115
|
componentDidLoad() {
|
|
116
|
-
|
|
116
|
+
i(this.hostElement);
|
|
117
117
|
}
|
|
118
118
|
componentDidRender() {
|
|
119
119
|
var t;
|
|
@@ -123,69 +123,69 @@ const s = class {
|
|
|
123
123
|
// #endregion
|
|
124
124
|
// #region Render Methods
|
|
125
125
|
render() {
|
|
126
|
-
return
|
|
127
|
-
key: "
|
|
126
|
+
return e("div", {
|
|
127
|
+
key: "dfa012542089f3e031225e11d942731d95caa467",
|
|
128
128
|
class: "month-container",
|
|
129
129
|
onKeyDown: this.onMonthKeydown
|
|
130
|
-
},
|
|
131
|
-
key: "
|
|
130
|
+
}, e("div", {
|
|
131
|
+
key: "2196be700d87a1e01b1f90e6f4b7d661d593bf48",
|
|
132
132
|
class: "navigation"
|
|
133
|
-
},
|
|
134
|
-
key: "
|
|
133
|
+
}, e("q2-btn", {
|
|
134
|
+
key: "ff943c45617ff8b3a17a9ef1b61b82e67356c300",
|
|
135
135
|
class: "year-btn",
|
|
136
136
|
onClick: () => this.viewChange.emit({
|
|
137
137
|
view: "year",
|
|
138
138
|
selectedYear: this.year
|
|
139
139
|
})
|
|
140
|
-
},
|
|
141
|
-
key: "
|
|
140
|
+
}, e("span", {
|
|
141
|
+
key: "c6f84bf595bf100315098d9afd5df8e70506a79d",
|
|
142
142
|
class: "year"
|
|
143
|
-
}, this.year),
|
|
144
|
-
key: "
|
|
143
|
+
}, this.year), e("q2-icon", {
|
|
144
|
+
key: "f1cb6d06f24c3bdd3247b4d6a6af04efc481fc67",
|
|
145
145
|
class: "year-icon off",
|
|
146
146
|
type: "chevron-down"
|
|
147
|
-
})),
|
|
148
|
-
key: "
|
|
147
|
+
})), e("div", {
|
|
148
|
+
key: "c617358f45586c3d7a6492e3573ec92b810535ab",
|
|
149
149
|
class: "month-controller"
|
|
150
|
-
},
|
|
151
|
-
key: "
|
|
150
|
+
}, e("div", {
|
|
151
|
+
key: "500c5a6765139d5b62449a0ba388494e85524d0a",
|
|
152
152
|
class: "cal-year-prev-next"
|
|
153
|
-
},
|
|
154
|
-
key: "
|
|
155
|
-
label:
|
|
153
|
+
}, e("q2-btn", {
|
|
154
|
+
key: "697f65cfd3d52698f7004395d428848548fbc856",
|
|
155
|
+
label: a("tecton.element.calendar.previousYear"),
|
|
156
156
|
"hide-label": true,
|
|
157
157
|
class: "cal-nav-btn prev-year",
|
|
158
158
|
"test-id": "previousYearButton",
|
|
159
159
|
onClick: () => this.selectYear(this.year - 1)
|
|
160
|
-
},
|
|
161
|
-
key: "
|
|
160
|
+
}, e("q2-icon", {
|
|
161
|
+
key: "aa83487a228127ef847439d876172afa17c3557e",
|
|
162
162
|
type: "arrow-left"
|
|
163
|
-
})),
|
|
164
|
-
key: "
|
|
165
|
-
label:
|
|
163
|
+
})), e("q2-btn", {
|
|
164
|
+
key: "0813d6a858b325ba240bc1c9c84196a810e231ec",
|
|
165
|
+
label: a("tecton.element.calendar.nextYear"),
|
|
166
166
|
"hide-label": true,
|
|
167
167
|
class: "cal-nav-btn next-year",
|
|
168
168
|
"test-id": "nextYearButton",
|
|
169
169
|
onClick: () => this.selectYear(this.year + 1)
|
|
170
|
-
},
|
|
171
|
-
key: "
|
|
170
|
+
}, e("q2-icon", {
|
|
171
|
+
key: "2c8f1259ebafba900e913dffeb1b5df05d37f916",
|
|
172
172
|
type: "arrow-right"
|
|
173
|
-
}))))),
|
|
174
|
-
key: "
|
|
173
|
+
}))))), e("div", {
|
|
174
|
+
key: "27bdc96d859976a0c1483aabef3794ada911f02a",
|
|
175
175
|
class: "month-list",
|
|
176
176
|
onClick: this.onMonthSelection
|
|
177
|
-
}, this.months.map(((t,
|
|
177
|
+
}, this.months.map(((t, n) => e("div", {
|
|
178
178
|
class: "month"
|
|
179
|
-
},
|
|
179
|
+
}, e("span", {
|
|
180
180
|
role: "button",
|
|
181
181
|
class: "month-button",
|
|
182
|
-
"data-index":
|
|
182
|
+
"data-index": n,
|
|
183
183
|
"aria-label": t.label,
|
|
184
|
-
tabindex:
|
|
185
|
-
}, t.abbr))))), this.today &&
|
|
186
|
-
key: "
|
|
184
|
+
tabindex: n === this.focusedIndex ? 0 : -1
|
|
185
|
+
}, t.abbr))))), this.today && e("div", {
|
|
186
|
+
key: "ccd5c945bc1abcc38e545577178678e4c0ca54dc",
|
|
187
187
|
class: "today-label"
|
|
188
|
-
},
|
|
188
|
+
}, a("tecton.element.calendar.today"), ": ", this.today));
|
|
189
189
|
}
|
|
190
190
|
get hostElement() {
|
|
191
191
|
return o(this);
|
|
@@ -6,7 +6,7 @@ const i = "*{box-sizing:border-box}*:active{outline:none}*:focus{outline:none;bo
|
|
|
6
6
|
|
|
7
7
|
const s = i;
|
|
8
8
|
|
|
9
|
-
const
|
|
9
|
+
const d = class {
|
|
10
10
|
constructor(e) {
|
|
11
11
|
t(this, e);
|
|
12
12
|
// #region Own Properties
|
|
@@ -56,20 +56,20 @@ const p = class {
|
|
|
56
56
|
// #region Render Methods
|
|
57
57
|
render() {
|
|
58
58
|
return e("div", {
|
|
59
|
-
key: "
|
|
59
|
+
key: "f90682c8578b1f2b99ce5c4d0babf9014a91b90a",
|
|
60
60
|
class: "q2-optgroup-container",
|
|
61
61
|
hidden: this.hidden,
|
|
62
62
|
"aria-labelledby": this.headerId,
|
|
63
63
|
role: "group"
|
|
64
64
|
}, e("div", {
|
|
65
|
-
key: "
|
|
65
|
+
key: "ab4c0d3663ec1de61afc73b627b16d2ce07ac7f1",
|
|
66
66
|
class: "q2-optgroup-header",
|
|
67
67
|
id: this.headerId
|
|
68
68
|
}, this.label && a(this.label) || ""), e("div", {
|
|
69
|
-
key: "
|
|
69
|
+
key: "c4d1132b03317e468909df943b1dfdee09a8f00f",
|
|
70
70
|
class: "q2-optgroup-options"
|
|
71
71
|
}, e("slot", {
|
|
72
|
-
key: "
|
|
72
|
+
key: "ca578208cd825c9d5d08adeb6ce89e221dc3ad57"
|
|
73
73
|
})));
|
|
74
74
|
}
|
|
75
75
|
get hostElement() {
|
|
@@ -82,7 +82,7 @@ const p = class {
|
|
|
82
82
|
}
|
|
83
83
|
};
|
|
84
84
|
|
|
85
|
-
|
|
85
|
+
d.style = s;
|
|
86
86
|
|
|
87
|
-
export {
|
|
87
|
+
export { d as q2_optgroup };
|
|
88
88
|
//# sourceMappingURL=q2-optgroup.entry.js.map
|