q2-tecton-elements 1.55.6 → 1.55.8
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 +196 -182
- package/dist/cjs/{index-905f4c87.js → index-b4cad57b.js} +68 -1
- package/dist/cjs/index-b4cad57b.js.map +1 -0
- 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-badge_7.cjs.entry.js +1 -1
- package/dist/cjs/q2-calendar.cjs.entry.js +1 -1
- package/dist/cjs/q2-card.cjs.entry.js +1 -1
- package/dist/cjs/q2-carousel-pane.cjs.entry.js +1 -1
- package/dist/cjs/q2-carousel.cjs.entry.js +1 -1
- package/dist/cjs/q2-chart-area.cjs.entry.js +1 -1
- package/dist/cjs/q2-chart-bar.cjs.entry.js +1 -1
- package/dist/cjs/q2-chart-donut.cjs.entry.js +1 -1
- package/dist/cjs/q2-checkbox-group.cjs.entry.js +1 -1
- package/dist/cjs/q2-checkbox.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-item.cjs.entry.js +1 -1
- package/dist/cjs/q2-dropdown.cjs.entry.js +4 -2
- package/dist/cjs/q2-dropdown.cjs.entry.js.map +1 -1
- package/dist/cjs/q2-editable-field.cjs.entry.js +1 -1
- package/dist/cjs/q2-file-picker.cjs.entry.js +1 -1
- package/dist/cjs/q2-item_3.cjs.entry.js +1 -1
- package/dist/cjs/q2-loc.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 +1 -1
- package/dist/cjs/q2-optgroup.cjs.entry.js +1 -1
- package/dist/cjs/q2-option-list_2.cjs.entry.js +19 -14
- package/dist/cjs/q2-option-list_2.cjs.entry.js.map +1 -1
- package/dist/cjs/q2-option.cjs.entry.js +1 -1
- package/dist/cjs/q2-pagination.cjs.entry.js +1 -1
- package/dist/cjs/q2-pill.cjs.entry.js +1 -1
- package/dist/cjs/q2-radio-group.cjs.entry.js +1 -1
- package/dist/cjs/q2-radio.cjs.entry.js +1 -1
- package/dist/cjs/q2-relative-time.cjs.entry.js +1 -1
- package/dist/cjs/q2-section.cjs.entry.js +1 -1
- package/dist/cjs/q2-select.cjs.entry.js +51 -3
- package/dist/cjs/q2-select.cjs.entry.js.map +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-tag.cjs.entry.js +1 -1
- package/dist/cjs/q2-tecton-elements.cjs.js +1 -1
- package/dist/cjs/q2-textarea.cjs.entry.js +1 -1
- package/dist/cjs/q2-tooltip.cjs.entry.js +1 -1
- package/dist/collection/components/q2-dropdown/q2-dropdown.js +3 -1
- package/dist/collection/components/q2-dropdown/q2-dropdown.js.map +1 -1
- package/dist/collection/components/q2-popover/q2-popover.js +19 -14
- package/dist/collection/components/q2-popover/q2-popover.js.map +1 -1
- package/dist/collection/components/q2-popover/test/q2-popover-test.spec.js +230 -147
- package/dist/collection/components/q2-popover/test/q2-popover-test.spec.js.map +1 -1
- package/dist/collection/components/q2-select/q2-select.js +57 -3
- package/dist/collection/components/q2-select/q2-select.js.map +1 -1
- package/dist/collection/components/q2-select/test/q2-select-test.spec.js +146 -6
- package/dist/collection/components/q2-select/test/q2-select-test.spec.js.map +1 -1
- package/dist/collection/utils/index.js +71 -0
- package/dist/collection/utils/index.js.map +1 -1
- package/dist/components/index2.js +66 -1
- package/dist/components/index2.js.map +1 -1
- package/dist/components/q2-dropdown.js +3 -1
- package/dist/components/q2-dropdown.js.map +1 -1
- package/dist/components/q2-popover2.js +19 -14
- package/dist/components/q2-popover2.js.map +1 -1
- package/dist/components/q2-select2.js +52 -4
- package/dist/components/q2-select2.js.map +1 -1
- package/dist/esm/{index-f2a66217.js → index-d801f175.js} +67 -2
- package/dist/esm/index-d801f175.js.map +1 -0
- 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-badge_7.entry.js +1 -1
- package/dist/esm/q2-calendar.entry.js +1 -1
- package/dist/esm/q2-card.entry.js +1 -1
- package/dist/esm/q2-carousel-pane.entry.js +1 -1
- package/dist/esm/q2-carousel.entry.js +1 -1
- package/dist/esm/q2-chart-area.entry.js +1 -1
- package/dist/esm/q2-chart-bar.entry.js +1 -1
- package/dist/esm/q2-chart-donut.entry.js +1 -1
- package/dist/esm/q2-checkbox-group.entry.js +1 -1
- package/dist/esm/q2-checkbox.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-item.entry.js +1 -1
- package/dist/esm/q2-dropdown.entry.js +4 -2
- package/dist/esm/q2-dropdown.entry.js.map +1 -1
- package/dist/esm/q2-editable-field.entry.js +1 -1
- package/dist/esm/q2-file-picker.entry.js +1 -1
- package/dist/esm/q2-item_3.entry.js +1 -1
- package/dist/esm/q2-loc.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 +1 -1
- package/dist/esm/q2-optgroup.entry.js +1 -1
- package/dist/esm/q2-option-list_2.entry.js +19 -14
- package/dist/esm/q2-option-list_2.entry.js.map +1 -1
- package/dist/esm/q2-option.entry.js +1 -1
- package/dist/esm/q2-pagination.entry.js +1 -1
- package/dist/esm/q2-pill.entry.js +1 -1
- package/dist/esm/q2-radio-group.entry.js +1 -1
- package/dist/esm/q2-radio.entry.js +1 -1
- package/dist/esm/q2-relative-time.entry.js +1 -1
- package/dist/esm/q2-section.entry.js +1 -1
- package/dist/esm/q2-select.entry.js +51 -3
- package/dist/esm/q2-select.entry.js.map +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-tag.entry.js +1 -1
- package/dist/esm/q2-tecton-elements.js +1 -1
- package/dist/esm/q2-textarea.entry.js +1 -1
- package/dist/esm/q2-tooltip.entry.js +1 -1
- package/dist/jest.setup.js +11 -0
- package/dist/jest.setup.js.map +1 -1
- package/dist/q2-tecton-elements/{index-f2a66217.js → index-d801f175.js} +116 -56
- package/dist/q2-tecton-elements/index-d801f175.js.map +1 -0
- package/dist/q2-tecton-elements/q2-action-group.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-action-sheet.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-badge_7.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-calendar.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-card.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-carousel-pane.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-carousel.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-chart-area.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-chart-bar.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-chart-donut.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-checkbox-group.entry.js +7 -7
- package/dist/q2-tecton-elements/q2-checkbox.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-data-table.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-detail.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-dropdown-item.entry.js +4 -4
- package/dist/q2-tecton-elements/q2-dropdown.entry.js +68 -66
- package/dist/q2-tecton-elements/q2-dropdown.entry.js.map +1 -1
- package/dist/q2-tecton-elements/q2-editable-field.entry.js +8 -8
- package/dist/q2-tecton-elements/q2-file-picker.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-item_3.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-loc.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-message.entry.js +16 -16
- package/dist/q2-tecton-elements/q2-modal.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-month-picker.entry.js +17 -17
- package/dist/q2-tecton-elements/q2-optgroup.entry.js +4 -4
- package/dist/q2-tecton-elements/q2-option-list_2.entry.js +53 -48
- package/dist/q2-tecton-elements/q2-option-list_2.entry.js.map +1 -1
- package/dist/q2-tecton-elements/q2-option.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-pagination.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-pill.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-radio-group.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-radio.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-relative-time.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-section.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-select.entry.js +64 -17
- package/dist/q2-tecton-elements/q2-select.entry.js.map +1 -1
- package/dist/q2-tecton-elements/q2-stepper-pane.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-stepper-vertical.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-stepper.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-tag.entry.js +1 -1
- 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 +1 -1
- package/dist/q2-tecton-elements/q2-tooltip.entry.js +1 -1
- package/dist/types/builds/q2e/development/tecton/tecton/packages/q2-tecton-elements/.stencil/jest.setup.d.ts +9 -0
- package/dist/types/components/q2-select/q2-select.d.ts +10 -0
- package/dist/types/utils/index.d.ts +7 -0
- package/package.json +3 -3
- package/dist/cjs/index-905f4c87.js.map +0 -1
- package/dist/esm/index-f2a66217.js.map +0 -1
- package/dist/q2-tecton-elements/index-f2a66217.js.map +0 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { r as t, h as
|
|
1
|
+
import { r as t, h as e, g as a } from "./index-7a5365e2.js";
|
|
2
2
|
|
|
3
|
-
import { o as s, i as o, n as r,
|
|
3
|
+
import { o as s, i as o, n as r, u as i, l as n } from "./index-d801f175.js";
|
|
4
4
|
|
|
5
5
|
const c = "*{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}:host{display:block}:host([hidden]){display:none}.message{border-left-width:var(--tct-message-bar-width, var(--t-message-bar-width, var(--app-scale-1x, 5px)));border-left-style:solid;--comp-line-height:var(--tct-message-line-height, var(--t-message-line-height, var(--app-line-height, 1.428571429em)));display:grid;gap:var(--tct-scale-1, var(--app-scale-1x, 5px));align-items:flex-start;background:var(--tct-message-background, var(--tct-message-bg, var(--t-message-bg, var(--tct-gray-14, var(--t-gray-14, var(--tct-gray-l3, var(--app-gray-l3, #f2f2f2)))))));color:var(--tct-message-font-color, var(--t-message-font-color, inherit));box-shadow:var(--tct-message-box-shadow, var(--t-message-box-shadow, inherit));border-radius:var(--tct-message-border-radius, var(--t-message-border-radius, inherit))}.message:focus{box-shadow:var(--const-global-focus)}.message-icon{--comp-top-offset:calc(calc(var(--comp-line-height) - var(--comp-icon-size)) / 2);--tct-icon-size:var(--comp-icon-size);top:var(--comp-top-offset);margin-bottom:calc(var(--comp-top-offset) * -1)}.message-content{flex:1;line-height:var(--comp-line-height)}::slotted(ul){--comp-list-default-padding:0 0 0 var(--app-scale-3x, 15px);padding:var(--tct-message-list-padding, var(--comp-list-default-padding))}:host(:not([appearance])),:host([appearance=standard]){--comp-default-margin:var(--app-scale-3x, 5px) 0;margin:var(--tct-message-margin, var(--comp-default-margin))}:host(:not([appearance])) .message,:host([appearance=standard]) .message{--comp-icon-size:var(--tct-message-icon-size, var(--t-message-icon-size, 24px));--comp-padding:var(--tct-message-padding, var(--t-message-padding, var(--app-scale-3x, 15px)));grid-template-columns:var(--comp-icon-size) 1fr;padding:var(--comp-padding);padding-left:calc(var(--comp-padding) - var(--tct-scale-2, var(--app-scale-2x, 10px)));padding-bottom:calc(var(--comp-padding) - var(--tct-scale-1, var(--app-scale-1x, 5px)))}:host(:not([appearance])) ::slotted(ul),:host([appearance=standard]) ::slotted(ul){--comp-list-default-margin:var(--app-scale-3x, 15px) 0;margin:var(--tct-message-list-margin, var(--comp-list-default-margin))}:host([appearance=minimal]){margin:0}:host([appearance=minimal]) .message{padding:var(--tct-message-minimal-padding, var(--t-message-minimal-padding, var(--app-scale-2x, 10px)));grid-template-columns:1fr}:host([appearance=minimal]) ::slotted(ul){margin:var(--tct-scale-1, var(--app-scale-1x, 5px)) 0}:host(:not([type])) .message,:host([type=info]) .message{border-left-color:var(--tct-stoplight-info, var(--const-stoplight-info, #0079c1))}:host(:not([type])) .message-icon,:host([type=info]) .message-icon{--tct-icon-stroke-primary:var(--tct-stoplight-info, var(--const-stoplight-info, #0079c1));--tct-icon-stroke-secondary:var(--tct-stoplight-info, var(--const-stoplight-info, #0079c1))}:host([type=success]) .message{border-left-color:var(--tct-stoplight-success, var(--const-stoplight-success, #0e8a00))}:host([type=success]) .message-icon{--tct-icon-stroke-primary:var(--tct-stoplight-success, var(--const-stoplight-success, #0e8a00));--tct-icon-stroke-secondary:var(--tct-stoplight-success, var(--const-stoplight-success, #0e8a00))}:host([type=warning]) .message{border-left-color:var(--tct-stoplight-warning, var(--const-stoplight-warning, #c35500))}:host([type=warning]) .message-icon{--tct-icon-stroke-primary:var(--tct-stoplight-warning, var(--const-stoplight-warning, #c35500));--tct-icon-stroke-secondary:var(--tct-stoplight-warning, var(--const-stoplight-warning, #c35500))}:host([type=error]) .message,:host([type=danger]) .message{border-left-color:var(--tct-stoplight-error, var(--const-stoplight-alert, #d20a0a))}:host([type=error]) .message-icon,:host([type=danger]) .message-icon{--tct-icon-stroke-primary:var(--tct-stoplight-error, var(--const-stoplight-alert, #d20a0a));--tct-icon-stroke-secondary:var(--tct-stoplight-error, var(--const-stoplight-alert, #d20a0a))}";
|
|
6
6
|
|
|
7
7
|
const p = c;
|
|
8
8
|
|
|
9
9
|
const d = class {
|
|
10
|
-
constructor(
|
|
11
|
-
t(this,
|
|
10
|
+
constructor(e) {
|
|
11
|
+
t(this, e);
|
|
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 a = {
|
|
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 = a[t] || a.info;
|
|
55
|
+
return e("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 a = 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
|
|
68
|
+
return e("div", {
|
|
69
69
|
key: "f4161e85adba8c023d8ad135c955a312e145ad9a",
|
|
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 && a ? undefined : "all",
|
|
76
76
|
"test-id": "messageContainer"
|
|
77
|
-
}, this.appearance === "standard" ? this.messageIcon(this.type) : "", s &&
|
|
77
|
+
}, this.appearance === "standard" ? this.messageIcon(this.type) : "", s && e("div", {
|
|
78
78
|
key: "75a17b9f1d17e1c051e7ed986d1382f83da6747b",
|
|
79
79
|
class: "sr"
|
|
80
|
-
}),
|
|
80
|
+
}), e("div", {
|
|
81
81
|
key: "4d1761c6d6391d2f6ed982add6effc441f7284f3",
|
|
82
82
|
class: "sr message-label"
|
|
83
|
-
}, r),
|
|
83
|
+
}, r), e("div", {
|
|
84
84
|
key: "035a1040c019d8aa6eb6899e275469ab9edfc69d",
|
|
85
85
|
class: "message-content",
|
|
86
|
-
"aria-hidden":
|
|
87
|
-
},
|
|
86
|
+
"aria-hidden": a ? "true" : undefined
|
|
87
|
+
}, e("slot", {
|
|
88
88
|
key: "59187a716f498e899c6c5bf6c81aca27dbfb32c2"
|
|
89
89
|
})));
|
|
90
90
|
}
|
|
91
91
|
get hostElement() {
|
|
92
|
-
return
|
|
92
|
+
return a(this);
|
|
93
93
|
}
|
|
94
94
|
};
|
|
95
95
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as t, c as e, h as n, g as o } from "./index-7a5365e2.js";
|
|
2
2
|
|
|
3
|
-
import { l as
|
|
3
|
+
import { l as i, o as a } from "./index-d801f175.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
|
|
|
@@ -14,8 +14,8 @@ const s = class {
|
|
|
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: i(`tecton.element.calendar.months.${t}`),
|
|
18
|
+
abbr: i(`tecton.element.calendar.months.abbr.${t}`)
|
|
19
19
|
})));
|
|
20
20
|
this.scheduledAfterRender = [];
|
|
21
21
|
// #endregion
|
|
@@ -29,10 +29,10 @@ const s = class {
|
|
|
29
29
|
};
|
|
30
30
|
this.moveMonth = (t, e, n) => {
|
|
31
31
|
const o = t.length;
|
|
32
|
-
const
|
|
33
|
-
const
|
|
34
|
-
const r = e %
|
|
35
|
-
const c = [
|
|
32
|
+
const i = t[0].length;
|
|
33
|
+
const a = Math.floor(e / i);
|
|
34
|
+
const r = e % i;
|
|
35
|
+
const c = [ a, r ];
|
|
36
36
|
if (n.key === "ArrowUp") {
|
|
37
37
|
n.stopPropagation();
|
|
38
38
|
n.preventDefault();
|
|
@@ -82,11 +82,11 @@ const s = class {
|
|
|
82
82
|
var e, n, o;
|
|
83
83
|
this.selectedIndex = t;
|
|
84
84
|
this.focusedIndex = t;
|
|
85
|
-
const
|
|
85
|
+
const i = this.hostElement.shadowRoot.querySelector(`.month-button[data-index="${t}"]`);
|
|
86
86
|
(e = this.hostElement.shadowRoot.querySelectorAll(`.month-button`)) === null || e === void 0 ? void 0 : e.forEach((t => t.classList.remove("active")));
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
const
|
|
87
|
+
i === null || i === void 0 ? void 0 : i.classList.add("active");
|
|
88
|
+
i === null || i === void 0 ? void 0 : i.focus();
|
|
89
|
+
const a = {
|
|
90
90
|
view: "day",
|
|
91
91
|
// change to day view
|
|
92
92
|
monthIndex: t,
|
|
@@ -94,9 +94,9 @@ const s = class {
|
|
|
94
94
|
};
|
|
95
95
|
(o = (n = this.hostElement).onchange) === null || o === void 0 ? void 0 : o.call(n, new CustomEvent("click", {
|
|
96
96
|
bubbles: true,
|
|
97
|
-
detail:
|
|
97
|
+
detail: a
|
|
98
98
|
}));
|
|
99
|
-
this.viewChange.emit(
|
|
99
|
+
this.viewChange.emit(a);
|
|
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
|
+
a(this.hostElement);
|
|
117
117
|
}
|
|
118
118
|
componentDidRender() {
|
|
119
119
|
var t;
|
|
@@ -152,7 +152,7 @@ const s = class {
|
|
|
152
152
|
class: "cal-year-prev-next"
|
|
153
153
|
}, n("q2-btn", {
|
|
154
154
|
key: "4d8b12fde9825bd5dca90012d42e73453f2cb777",
|
|
155
|
-
label:
|
|
155
|
+
label: i("tecton.element.calendar.previousYear"),
|
|
156
156
|
"hide-label": true,
|
|
157
157
|
class: "cal-nav-btn prev-year",
|
|
158
158
|
"test-id": "previousYearButton",
|
|
@@ -162,7 +162,7 @@ const s = class {
|
|
|
162
162
|
type: "arrow-left"
|
|
163
163
|
})), n("q2-btn", {
|
|
164
164
|
key: "2f7ef439402c9788ae002a199813387a370e0ed3",
|
|
165
|
-
label:
|
|
165
|
+
label: i("tecton.element.calendar.nextYear"),
|
|
166
166
|
"hide-label": true,
|
|
167
167
|
class: "cal-nav-btn next-year",
|
|
168
168
|
"test-id": "nextYearButton",
|
|
@@ -185,7 +185,7 @@ const s = class {
|
|
|
185
185
|
}, t.abbr))))), this.today && n("div", {
|
|
186
186
|
key: "8dfee8bcf4ee9b4137c9c8644be7f38f5794bf4d",
|
|
187
187
|
class: "today-label"
|
|
188
|
-
},
|
|
188
|
+
}, i("tecton.element.calendar.today"), ": ", this.today));
|
|
189
189
|
}
|
|
190
190
|
get hostElement() {
|
|
191
191
|
return o(this);
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { r as t, h as e, g as r } from "./index-7a5365e2.js";
|
|
2
2
|
|
|
3
|
-
import { c as o, l as a } from "./index-
|
|
3
|
+
import { c as o, l as a } from "./index-d801f175.js";
|
|
4
4
|
|
|
5
5
|
const i = "*{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}:host{display:block}.q2-optgroup-header{--comp-header-padding:var(--tct-scale-1, var(--app-scale-1x, 5px)) var(--tct-scale-2, var(--app-scale-2x, 10px));background:var(--tct-optgroup-header-background, var(--tct-optgroup-header-bg, var(--t-optgroup-header-bg, var(--tct-gray-13, var(--t-gray-13, var(--tct-gray-l2, var(--app-gray-l2, #e6e6e6)))))));color:var(--tct-optgroup-header-color, inherit);padding:var(--tct-optgroup-header-padding, var(--t-optgroup-header-padding, var(--comp-header-padding)));font-weight:var(--tct-optgroup-header-font-weight, var(--t-optgroup-header-font-weight, 600));text-transform:var(--tct-optgroup-header-text-transform, var(--t-optgroup-header-text-transform, uppercase));position:sticky;top:calc(var(--comp-popover-top-container-height, 0px) + var(--tct-optgroup-top, var(--t-optgroup-top, 0px)));z-index:5}";
|
|
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
|
|
@@ -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
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { r as t, c as e, h as i, H as o, g as s } from "./index-7a5365e2.js";
|
|
2
2
|
|
|
3
|
-
import { n, l as r, o as a, i as h, w as c,
|
|
3
|
+
import { n, l as r, o as a, i as h, w as c, x as l, h as p, y as d, d as u } from "./index-d801f175.js";
|
|
4
4
|
|
|
5
5
|
function sanitizeRegexString(t) {
|
|
6
6
|
return t.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
const
|
|
9
|
+
const f = "*{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}:host{position:relative;width:100%;display:block;line-height:var(--tct-option-list-line-height, var(--t-option-list-line-height, var(--app-line-height, 1.428571429em)))}.content{text-align:start}:host([is-sizeable]) .content{display:block;height:auto}";
|
|
10
10
|
|
|
11
|
-
const
|
|
11
|
+
const b = f;
|
|
12
12
|
|
|
13
|
-
const
|
|
13
|
+
const v = class {
|
|
14
14
|
constructor(i) {
|
|
15
15
|
t(this, i);
|
|
16
16
|
this.change = e(this, "change", 7);
|
|
@@ -595,13 +595,13 @@ const f = class {
|
|
|
595
595
|
}
|
|
596
596
|
};
|
|
597
597
|
|
|
598
|
-
|
|
598
|
+
v.style = b;
|
|
599
599
|
|
|
600
|
-
const
|
|
600
|
+
const w = "*{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}.legacy.container{display:none}.legacy.show{display:block;z-index:var(--tct-popover-z-index, 50)}:popover-open,.show{position:absolute;margin:0;padding:0;overflow:auto;background:var(--tct-popover-background, var(--app-white, #ffffff));color:var(--tct-popover-font-color, var(--t-text, #4d4d4d));min-width:var(--tct-popover-min-width, 135px);margin-block:var(--tct-popover-margin-block, 0);box-shadow:var(--tct-popover-box-shadow, var(--app-shadow-1, 0px 0px 2px rgba(0, 0, 0, 0.12), 0px 2px 4px rgba(0, 0, 0, 0.14)));border-width:var(--tct-popover-border-width, 0);border-style:solid;border-color:var(--tct-popover-border-color, transparent);border-radius:var(--tct-popover-border-radius, 0);max-height:var(--comp-pop-max-height);left:var(--comp-pop-left);opacity:var(--comp-pop-opacity, 0);--comp-scrollbar-size:var(--tct-scrollbar-size, var(--t-scrollbar-size, var(--app-scale-1x, 5px)));--comp-scrollbar-border-radius:var(--tct-scrollbar-border-radius, var(--t-scrollbar-border-radius, var(--app-border-radius-1, 4px)));--comp-scrollbar-color:var(--tct-scrollbar-color, var(--t-scrollbar-color, var(--t-a11y-gray-color, #747474)));scrollbar-width:thin;scrollbar-color:var(--comp-scrollbar-color) transparent}:popover-open.block,.show.block{right:unset;width:var(--comp-pop-width);min-width:var(--tct-popover-min-width, unset)}:popover-open.left,.show.left{left:var(--comp-pop-left);right:unset}:popover-open.right,.show.right{right:var(--comp-pop-right);left:unset}:popover-open.down,.show.down{top:var(--tct-popover-top, var(--comp-pop-top));bottom:unset}:popover-open.up,.show.up{top:unset;bottom:var(--comp-pop-bottom)}:popover-open::-webkit-scrollbar,.show::-webkit-scrollbar{width:var(--comp-scrollbar-size);height:var(--comp-scrollbar-size);margin:5px}:popover-open::-webkit-scrollbar-thumb,.show::-webkit-scrollbar-thumb{background:var(--comp-scrollbar-color);border-radius:var(--comp-scrollbar-border-radius)}:popover-open::-webkit-scrollbar-track,.show::-webkit-scrollbar-track{background:transparent;border-radius:var(--comp-scrollbar-border-radius)}click-elsewhere{position:relative;display:block}";
|
|
601
601
|
|
|
602
|
-
const
|
|
602
|
+
const m = w;
|
|
603
603
|
|
|
604
|
-
const
|
|
604
|
+
const g = class {
|
|
605
605
|
constructor(i) {
|
|
606
606
|
t(this, i);
|
|
607
607
|
this.popoverStateChanged = e(this, "popoverStateChanged", 7);
|
|
@@ -641,41 +641,41 @@ const w = class {
|
|
|
641
641
|
e.style.setProperty("--comp-pop-opacity", "1");
|
|
642
642
|
};
|
|
643
643
|
this.setPopoverAPICSSProperties = async () => {
|
|
644
|
-
var t, e, i
|
|
645
|
-
const {controlElement:
|
|
646
|
-
const {top:
|
|
644
|
+
var t, e, i;
|
|
645
|
+
const {controlElement: o, containerElement: s, currentDirection: n, isModule: r, align: a} = this;
|
|
646
|
+
const {top: h, bottom: l, left: p, right: d} = (e = (t = o === null || o === void 0 ? void 0 : o.getBoundingClientRect) === null || t === void 0 ? void 0 : t.call(o)) !== null && e !== void 0 ? e : {
|
|
647
647
|
top: 0,
|
|
648
648
|
bottom: 0,
|
|
649
649
|
left: 0,
|
|
650
650
|
right: 0
|
|
651
651
|
};
|
|
652
|
-
const
|
|
653
|
-
const
|
|
654
|
-
if (
|
|
655
|
-
|
|
656
|
-
|
|
652
|
+
const u = p;
|
|
653
|
+
const f = ((i = window === null || window === void 0 ? void 0 : window.visualViewport) === null || i === void 0 ? void 0 : i.width) - d;
|
|
654
|
+
if (a === "right") {
|
|
655
|
+
s.style.setProperty("--comp-pop-right", `${f - window.scrollX}px`);
|
|
656
|
+
s.style.setProperty("--comp-pop-left", "unset");
|
|
657
657
|
} else {
|
|
658
|
-
|
|
659
|
-
|
|
658
|
+
s.style.setProperty("--comp-pop-left", `${u + window.scrollX}px`);
|
|
659
|
+
s.style.setProperty("--comp-pop-right", "unset");
|
|
660
660
|
}
|
|
661
|
-
if (this.block)
|
|
662
|
-
if (
|
|
663
|
-
if (
|
|
664
|
-
|
|
661
|
+
if (this.block) s.style.setProperty("--comp-pop-width", `${(o === null || o === void 0 ? void 0 : o.offsetWidth) || 0}px`);
|
|
662
|
+
if (n === "up") {
|
|
663
|
+
if (r) {
|
|
664
|
+
s.style.setProperty("--comp-pop-bottom", `${window.innerHeight - h}px`);
|
|
665
665
|
} else {
|
|
666
|
-
|
|
666
|
+
s.style.setProperty("--comp-pop-bottom", `${window.innerHeight - h - window.scrollY}px`);
|
|
667
667
|
}
|
|
668
668
|
}
|
|
669
|
-
if (
|
|
670
|
-
if (
|
|
671
|
-
|
|
669
|
+
if (n === "down") {
|
|
670
|
+
if (r) {
|
|
671
|
+
s.style.setProperty("--comp-pop-top", `${l}px`);
|
|
672
672
|
} else {
|
|
673
|
-
|
|
673
|
+
s.style.setProperty("--comp-pop-top", `${l + window.scrollY}px`);
|
|
674
674
|
}
|
|
675
675
|
}
|
|
676
676
|
// Wait for one paint to prevent layout thrashing
|
|
677
677
|
await c();
|
|
678
|
-
|
|
678
|
+
s.style.setProperty("--comp-pop-opacity", "1");
|
|
679
679
|
};
|
|
680
680
|
this.viewPortChanged = () => {
|
|
681
681
|
if (!this.open) return;
|
|
@@ -786,10 +786,12 @@ const w = class {
|
|
|
786
786
|
var t;
|
|
787
787
|
window.addEventListener("resize", this.viewPortOrientationChanged);
|
|
788
788
|
visualViewport === null || visualViewport === void 0 ? void 0 : visualViewport.addEventListener("resize", this.viewPortChanged);
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
789
|
+
if (d(this.hostElement) && !u()) {
|
|
790
|
+
window.addEventListener("scroll", this.viewPortChanged, {
|
|
791
|
+
passive: true,
|
|
792
|
+
capture: true
|
|
793
|
+
});
|
|
794
|
+
}
|
|
793
795
|
(t = screen === null || screen === void 0 ? void 0 : screen.orientation) === null || t === void 0 ? void 0 : t.addEventListener("orientationchange", this.viewPortOrientationChanged);
|
|
794
796
|
window.addEventListener("orientationchange", this.viewPortOrientationChanged);
|
|
795
797
|
}
|
|
@@ -816,17 +818,20 @@ const w = class {
|
|
|
816
818
|
let d;
|
|
817
819
|
let u;
|
|
818
820
|
if (a) {
|
|
819
|
-
const {outletOffset: t = 0, innerHeight: e = window.innerHeight} = ((i = window.Tecton) === null || i === void 0 ? void 0 : i.platformDimensions) || {};
|
|
820
|
-
const
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
//
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
821
|
+
const {outletOffset: t = 0, innerHeight: e = window.innerHeight, top: o = 0, bottom: s = 0} = ((i = window.Tecton) === null || i === void 0 ? void 0 : i.platformDimensions) || {};
|
|
822
|
+
const n = window.innerHeight - l;
|
|
823
|
+
// controlElement position visually on the page
|
|
824
|
+
const a = t > 0 ? h : h + t - o;
|
|
825
|
+
const c = t + l - o;
|
|
826
|
+
// visual space around the controlElement
|
|
827
|
+
const p = a;
|
|
828
|
+
const f = e - s - c;
|
|
829
|
+
// calculate space above and below controlElement
|
|
830
|
+
const b = n < f;
|
|
831
|
+
d = p - r;
|
|
832
|
+
u = b ? n - r : f - r;
|
|
828
833
|
} else {
|
|
829
|
-
p = window.
|
|
834
|
+
p = window.innerHeight;
|
|
830
835
|
d = h - r;
|
|
831
836
|
u = p - l - r;
|
|
832
837
|
}
|
|
@@ -888,18 +893,18 @@ const w = class {
|
|
|
888
893
|
if (this.block) t.push("block");
|
|
889
894
|
if (this.mode === "legacy") t.push("legacy");
|
|
890
895
|
return i("div", {
|
|
891
|
-
key: "
|
|
896
|
+
key: "fedc22e67f0b6a687a9053973e53dc11f22a01f4",
|
|
892
897
|
ref: t => this.containerElement = t,
|
|
893
898
|
class: t.join(" "),
|
|
894
899
|
"test-id": "outerContainer",
|
|
895
900
|
tabIndex: -1,
|
|
896
|
-
popover: "
|
|
901
|
+
popover: "manual"
|
|
897
902
|
}, i("div", {
|
|
898
|
-
key: "
|
|
903
|
+
key: "563f4feede1e59a43968e9720d41d9ee1b41ab3c",
|
|
899
904
|
ref: t => this.contentElement = t,
|
|
900
905
|
class: "content"
|
|
901
906
|
}, i("slot", {
|
|
902
|
-
key: "
|
|
907
|
+
key: "cb74f4a2b315adcffbf2bbf6db9cae70c2ae8892"
|
|
903
908
|
})));
|
|
904
909
|
}
|
|
905
910
|
get hostElement() {
|
|
@@ -913,7 +918,7 @@ const w = class {
|
|
|
913
918
|
}
|
|
914
919
|
};
|
|
915
920
|
|
|
916
|
-
|
|
921
|
+
g.style = m;
|
|
917
922
|
|
|
918
|
-
export {
|
|
923
|
+
export { v as q2_option_list, g as q2_popover };
|
|
919
924
|
//# sourceMappingURL=q2-option-list_2.entry.js.map
|