q2-tecton-elements 1.23.0-alpha.0 → 1.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/charting-d02cba1f.js +3127 -0
- package/dist/cjs/{index-3518c78c.js → index-0648c2ec.js} +5 -2
- package/dist/cjs/{installCanvasRenderer-b4d10c92.js → installCanvasRenderer-6c4fbcc9.js} +230 -1130
- package/dist/cjs/installLabelLayout-d6b548fe.js +1048 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/q2-badge_2.cjs.entry.js +1 -1
- package/dist/cjs/q2-btn_2.cjs.entry.js +2 -2
- package/dist/cjs/q2-calendar.cjs.entry.js +1 -1
- package/dist/cjs/q2-card.cjs.entry.js +2 -2
- package/dist/cjs/q2-carousel-pane.cjs.entry.js +1 -1
- package/dist/cjs/q2-carousel.cjs.entry.js +1 -1
- package/dist/cjs/q2-chart-area.cjs.entry.js +4569 -0
- package/dist/cjs/q2-chart-bar.cjs.entry.js +25 -3133
- package/dist/cjs/q2-chart-donut.cjs.entry.js +9 -8
- 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-dropdown-item.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-icon.cjs.entry.js +1 -1
- package/dist/cjs/q2-loading-element.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-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 +5 -3
- 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-section.cjs.entry.js +1 -1
- package/dist/cjs/q2-select.cjs.entry.js +3 -2
- package/dist/cjs/q2-stepper-pane.cjs.entry.js +1 -1
- package/dist/cjs/q2-stepper-vertical.cjs.entry.js +1 -1
- package/dist/cjs/q2-stepper.cjs.entry.js +1 -1
- package/dist/cjs/q2-tab-container.cjs.entry.js +1 -1
- package/dist/cjs/q2-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/collection/collection-manifest.json +1 -0
- package/dist/collection/components/q2-card/index.js +1 -1
- package/dist/collection/components/q2-chart-area/index.js +622 -0
- package/dist/collection/components/q2-chart-area/styles.css +82 -0
- package/dist/collection/components/q2-chart-bar/index.js +4 -4
- package/dist/collection/components/q2-chart-bar/styles.css +3 -6
- package/dist/collection/components/q2-chart-donut/index.js +1 -1
- package/dist/collection/components/q2-checkbox/styles.css +1 -0
- package/dist/collection/components/q2-loading/skeleton/q2-loading-element/styles.css +4 -0
- package/dist/collection/components/q2-loading/styles.css +4 -0
- package/dist/collection/components/q2-popover/index.js +4 -2
- package/dist/collection/components/q2-select/index.js +19 -1
- package/dist/collection/utils/index.js +5 -2
- package/dist/components/charting.js +3113 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +1 -0
- package/dist/components/index12.js +4 -2
- package/dist/components/index13.js +5 -2
- package/dist/components/index9.js +1 -1
- package/dist/components/installCanvasRenderer.js +188 -1123
- package/dist/components/installLabelLayout.js +1042 -0
- package/dist/components/q2-card.js +1 -1
- package/dist/components/q2-chart-area.d.ts +11 -0
- package/dist/components/q2-chart-area.js +4604 -0
- package/dist/components/q2-chart-bar.js +10 -3118
- package/dist/components/q2-chart-donut.js +3 -2
- package/dist/components/q2-checkbox.js +1 -1
- package/dist/components/q2-loading-element.js +1 -1
- package/dist/components/q2-select.js +3 -1
- package/dist/esm/charting-2a73ba8e.js +3113 -0
- package/dist/esm/{index-9c591682.js → index-501fd22e.js} +5 -2
- package/dist/esm/{installCanvasRenderer-0143b52d.js → installCanvasRenderer-4a470516.js} +188 -1123
- package/dist/esm/installLabelLayout-d660eaad.js +1042 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/q2-badge_2.entry.js +1 -1
- package/dist/esm/q2-btn_2.entry.js +2 -2
- package/dist/esm/q2-calendar.entry.js +1 -1
- package/dist/esm/q2-card.entry.js +2 -2
- package/dist/esm/q2-carousel-pane.entry.js +1 -1
- package/dist/esm/q2-carousel.entry.js +1 -1
- package/dist/esm/q2-chart-area.entry.js +4565 -0
- package/dist/esm/q2-chart-bar.entry.js +11 -3119
- package/dist/esm/q2-chart-donut.entry.js +4 -3
- package/dist/esm/q2-checkbox-group.entry.js +1 -1
- package/dist/esm/q2-checkbox.entry.js +2 -2
- package/dist/esm/q2-dropdown-item.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-icon.entry.js +1 -1
- package/dist/esm/q2-loading-element.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-month-picker.entry.js +1 -1
- package/dist/esm/q2-optgroup.entry.js +1 -1
- package/dist/esm/q2-option-list_2.entry.js +5 -3
- 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-section.entry.js +1 -1
- package/dist/esm/q2-select.entry.js +3 -2
- package/dist/esm/q2-stepper-pane.entry.js +1 -1
- package/dist/esm/q2-stepper-vertical.entry.js +1 -1
- package/dist/esm/q2-stepper.entry.js +1 -1
- package/dist/esm/q2-tab-container.entry.js +1 -1
- package/dist/esm/q2-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/q2-tecton-elements/{p-b8b00394.entry.js → p-18629cbf.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-ce015552.entry.js → p-24f4571d.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-de164483.entry.js → p-2c20fc43.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-2d2c5af2.entry.js → p-3603fcdc.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-2c9b1308.entry.js → p-3813f51d.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-f800fd1e.entry.js → p-38a33baa.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-db873db2.entry.js → p-3e9a30c4.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-fc134a5d.entry.js → p-3fd5d010.entry.js} +1 -1
- package/dist/q2-tecton-elements/p-458b1987.js +1 -0
- package/dist/q2-tecton-elements/{p-0ba564b1.entry.js → p-45d61789.entry.js} +1 -1
- package/dist/q2-tecton-elements/p-52063431.js +39 -0
- package/dist/q2-tecton-elements/{p-fb37e67e.entry.js → p-53be87c8.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-520c40f6.entry.js → p-5b1aba1a.entry.js} +1 -1
- package/dist/q2-tecton-elements/p-604b22a8.entry.js +1 -0
- package/dist/q2-tecton-elements/{p-c4640b55.entry.js → p-68ef0786.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-18cc4758.entry.js → p-6b7e1ebd.entry.js} +1 -1
- package/dist/q2-tecton-elements/p-6be86940.entry.js +1 -0
- package/dist/q2-tecton-elements/p-70b01387.entry.js +1 -0
- package/dist/q2-tecton-elements/{p-c444a60b.entry.js → p-78fac0fa.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-97aa8423.entry.js → p-7aa80653.entry.js} +1 -1
- package/dist/q2-tecton-elements/p-833398d1.js +1 -0
- package/dist/q2-tecton-elements/{p-9281adaa.entry.js → p-8dea9a0c.entry.js} +1 -1
- package/dist/q2-tecton-elements/p-9b101e22.entry.js +1 -0
- package/dist/q2-tecton-elements/{p-c3f27fe2.entry.js → p-a2add94e.entry.js} +1 -1
- package/dist/q2-tecton-elements/p-a510290a.js +1 -0
- package/dist/q2-tecton-elements/{p-16c11d74.entry.js → p-acc77332.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-e4dc9ac0.entry.js → p-ba73ee1f.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-0fad9c5a.entry.js → p-ba76ecfd.entry.js} +1 -1
- package/dist/q2-tecton-elements/p-bbdae095.entry.js +1 -0
- package/dist/q2-tecton-elements/{p-041b3a82.entry.js → p-bf41e71b.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-ffb48ccc.entry.js → p-d27b2caa.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-4625184b.entry.js → p-d68b5eb3.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-cbd1289a.entry.js → p-d7b27803.entry.js} +1 -1
- package/dist/q2-tecton-elements/p-d88e4383.entry.js +1 -0
- package/dist/q2-tecton-elements/{p-9ebb283a.entry.js → p-ebd7efa5.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-6e6b5b80.entry.js → p-f0ec4d2c.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-0d8dd75a.entry.js → p-f6e868c1.entry.js} +1 -1
- package/dist/q2-tecton-elements/q2-tecton-elements.esm.js +1 -1
- package/dist/types/components/q2-card/index.d.ts +1 -1
- package/dist/types/components/q2-chart-area/index.d.ts +40 -0
- package/dist/types/components/q2-chart-bar/index.d.ts +2 -2
- package/dist/types/components/q2-chart-donut/index.d.ts +1 -1
- package/dist/types/components/q2-select/index.d.ts +1 -0
- package/dist/types/components.d.ts +58 -0
- package/dist/types/global.d.ts +4 -2
- package/package.json +2 -2
- package/dist/q2-tecton-elements/p-1f85cced.js +0 -39
- package/dist/q2-tecton-elements/p-5e374fbd.js +0 -1
- package/dist/q2-tecton-elements/p-6b52a262.entry.js +0 -1
- package/dist/q2-tecton-elements/p-aaf42539.entry.js +0 -1
- package/dist/q2-tecton-elements/p-cf41970f.entry.js +0 -1
- package/dist/q2-tecton-elements/p-e6d26f39.entry.js +0 -1
- package/dist/q2-tecton-elements/p-f35bf6a3.entry.js +0 -1
- /package/dist/types/workspace/workspace/{_production_release_1.22.x-alpha → Tecton_tecton-production_master}/packages/q2-tecton-elements/.stencil/test/helpers.d.ts +0 -0
|
@@ -28,14 +28,14 @@ export class Q2ChartBar {
|
|
|
28
28
|
componentDidLoad() {
|
|
29
29
|
const chart = echarts.init(this.chartContainer);
|
|
30
30
|
this.chart = chart;
|
|
31
|
-
this.
|
|
32
|
-
|
|
31
|
+
this.resizeEventListener = () => this.resizeChart();
|
|
32
|
+
window.addEventListener('resize', this.resizeEventListener);
|
|
33
33
|
this.cacheComputedStyles();
|
|
34
34
|
this.updateChart(chart);
|
|
35
35
|
overrideFocus(this.hostElement);
|
|
36
36
|
}
|
|
37
|
-
|
|
38
|
-
this.
|
|
37
|
+
disconnectedCallback() {
|
|
38
|
+
window.removeEventListener('resize', this.resizeEventListener);
|
|
39
39
|
}
|
|
40
40
|
cacheComputedStyles() {
|
|
41
41
|
this.chartContainerStyles = getComputedStyle(this.chartContainer);
|
|
@@ -66,17 +66,14 @@ button {
|
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
:host {
|
|
69
|
-
|
|
70
|
-
|
|
69
|
+
width: var(--tct-bar-chart-width, 100%);
|
|
70
|
+
height: var(--tct-bar-chart-height, 100%);
|
|
71
71
|
display: block;
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
.container {
|
|
75
|
-
aspect-ratio: 1/1;
|
|
76
75
|
width: 100%;
|
|
77
|
-
|
|
78
|
-
justify-content: center;
|
|
79
|
-
align-items: center;
|
|
76
|
+
height: 100%;
|
|
80
77
|
}
|
|
81
78
|
|
|
82
79
|
.chart-container {
|
|
@@ -12,6 +12,10 @@ q2-loading-element {
|
|
|
12
12
|
background-color: var(--tct-loading-skeleton-element-bg, var(--tct-gray-l3, var(--t-gray-14, #f2f2f2)));
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
+
.skeleton-shape.rectangle {
|
|
16
|
+
min-height: var(--tct-loading-skeleton-rectangle-min-height, 20px);
|
|
17
|
+
}
|
|
18
|
+
|
|
15
19
|
.skeleton-shape.circle {
|
|
16
20
|
border-radius: 50%;
|
|
17
21
|
padding-top: 100%;
|
|
@@ -179,6 +179,10 @@ button {
|
|
|
179
179
|
background-color: var(--tct-loading-skeleton-element-bg, var(--tct-gray-l3, var(--t-gray-14, #f2f2f2)));
|
|
180
180
|
}
|
|
181
181
|
|
|
182
|
+
.skeleton-shape.rectangle {
|
|
183
|
+
min-height: var(--tct-loading-skeleton-rectangle-min-height, 20px);
|
|
184
|
+
}
|
|
185
|
+
|
|
182
186
|
.skeleton-shape.circle {
|
|
183
187
|
border-radius: 50%;
|
|
184
188
|
padding-top: 100%;
|
|
@@ -36,7 +36,7 @@ export class Q2Popover {
|
|
|
36
36
|
}
|
|
37
37
|
/// Helpers ///
|
|
38
38
|
determinePopDirection() {
|
|
39
|
-
var _a;
|
|
39
|
+
var _a, _b, _c, _d, _e;
|
|
40
40
|
const { containerElement, contentElement, direction, controlElement } = this;
|
|
41
41
|
if (containerElement)
|
|
42
42
|
containerElement.style.maxHeight = null;
|
|
@@ -48,7 +48,9 @@ export class Q2Popover {
|
|
|
48
48
|
top: 0,
|
|
49
49
|
height: 0,
|
|
50
50
|
};
|
|
51
|
-
const
|
|
51
|
+
const scrollY = ((_c = (_b = window.Tecton) === null || _b === void 0 ? void 0 : _b.platformDimensions) === null || _c === void 0 ? void 0 : _c.scrollY) || 0;
|
|
52
|
+
const innerHeight = ((_e = (_d = window.Tecton) === null || _d === void 0 ? void 0 : _d.platformDimensions) === null || _e === void 0 ? void 0 : _e.innerHeight) || window.innerHeight;
|
|
53
|
+
const bottomOffset = scrollY + innerHeight - topOffset - height;
|
|
52
54
|
const canShowFullSizeBelow = bottomOffset > contentHeight;
|
|
53
55
|
const canShowFullSizeAbove = contentHeight <= topOffset;
|
|
54
56
|
// Prefer full size above or below
|
|
@@ -282,6 +282,7 @@ export class Q2Select {
|
|
|
282
282
|
this.searchable = false;
|
|
283
283
|
this.multilineOptions = false;
|
|
284
284
|
this.optional = false;
|
|
285
|
+
this.placeholder = undefined;
|
|
285
286
|
this.dropdownOpen = false;
|
|
286
287
|
this.onlyShowingSelected = false;
|
|
287
288
|
this.activeOptionId = undefined;
|
|
@@ -708,7 +709,7 @@ export class Q2Select {
|
|
|
708
709
|
this.errors.length > 0 &&
|
|
709
710
|
this.errors.map(error => loc(error))) ||
|
|
710
711
|
(this.invalid && ['tecton.element.select.invalid']) ||
|
|
711
|
-
[], disabled: this.disabled, optional: this.optional, readonly: this.readonly, hideLabel: this.hideLabel, ariaExpanded: `${!!this.dropdownOpen}`, ariaOwns: "dropdown", ariaHaspopup: "listbox", role: this.searchable ? 'combobox' : null, pseudo: showAsPseudo, "test-id": "toggleDropdown", "hide-messages": true, iconRight: "chevron-down", onClick: this.inputClickHandler, onInput: this.inputInputHandler, onKeyDown: this.inputKeydownHandler, onFocus: this.inputFocusHandler, onBlur: this.inputBlurHandler, onChange: this.inputChangeHandler, badgeValue: this.badgeValue, badgeTheme: this.isComponentFocused ? 'primary' : undefined }, this.renderCustomDisplay()), h("div", { class: "custom-display-content", hidden: !this.hasCustomDisplay || !!this.searchText, onClick: this.onCustomDisplayClick }, h("slot", { name: "q2-select-display" })), this.optionsDropdown()));
|
|
712
|
+
[], disabled: this.disabled, optional: this.optional, readonly: this.readonly, placeholder: this.placeholder || undefined, hideLabel: this.hideLabel, ariaExpanded: `${!!this.dropdownOpen}`, ariaOwns: "dropdown", ariaHaspopup: "listbox", role: this.searchable ? 'combobox' : null, pseudo: showAsPseudo, "test-id": "toggleDropdown", "hide-messages": true, iconRight: "chevron-down", onClick: this.inputClickHandler, onInput: this.inputInputHandler, onKeyDown: this.inputKeydownHandler, onFocus: this.inputFocusHandler, onBlur: this.inputBlurHandler, onChange: this.inputChangeHandler, badgeValue: this.badgeValue, badgeTheme: this.isComponentFocused ? 'primary' : undefined }, this.renderCustomDisplay()), h("div", { class: "custom-display-content", hidden: !this.hasCustomDisplay || !!this.searchText, onClick: this.onCustomDisplayClick }, h("slot", { name: "q2-select-display" })), this.optionsDropdown()));
|
|
712
713
|
}
|
|
713
714
|
optionsDropdown() {
|
|
714
715
|
const dropDirection = this.privatePopDirection === 'up' ? 'dropup' : '';
|
|
@@ -992,6 +993,23 @@ export class Q2Select {
|
|
|
992
993
|
"attribute": "optional",
|
|
993
994
|
"reflect": true,
|
|
994
995
|
"defaultValue": "false"
|
|
996
|
+
},
|
|
997
|
+
"placeholder": {
|
|
998
|
+
"type": "string",
|
|
999
|
+
"mutable": false,
|
|
1000
|
+
"complexType": {
|
|
1001
|
+
"original": "string",
|
|
1002
|
+
"resolved": "string",
|
|
1003
|
+
"references": {}
|
|
1004
|
+
},
|
|
1005
|
+
"required": false,
|
|
1006
|
+
"optional": false,
|
|
1007
|
+
"docs": {
|
|
1008
|
+
"tags": [],
|
|
1009
|
+
"text": ""
|
|
1010
|
+
},
|
|
1011
|
+
"attribute": "placeholder",
|
|
1012
|
+
"reflect": true
|
|
995
1013
|
}
|
|
996
1014
|
};
|
|
997
1015
|
}
|
|
@@ -51,7 +51,7 @@ export function loc(key, subs) {
|
|
|
51
51
|
var _a, _b, _c;
|
|
52
52
|
if (!key)
|
|
53
53
|
return '';
|
|
54
|
-
if (((_a = window.Tecton) === null || _a === void 0 ? void 0 : _a.
|
|
54
|
+
if (((_a = window.Tecton) === null || _a === void 0 ? void 0 : _a.noStrings) === true) {
|
|
55
55
|
return key;
|
|
56
56
|
}
|
|
57
57
|
return (_c = (_b = window === null || window === void 0 ? void 0 : window.TectonElements) === null || _b === void 0 ? void 0 : _b.loc(key, subs)) !== null && _c !== void 0 ? _c : key;
|
|
@@ -100,6 +100,7 @@ export function setMessageHeight(target) {
|
|
|
100
100
|
});
|
|
101
101
|
}
|
|
102
102
|
export function setPopProperties(target) {
|
|
103
|
+
var _a, _b, _c, _d;
|
|
103
104
|
const { dropdownContainer, popDirection } = target;
|
|
104
105
|
if (dropdownContainer) {
|
|
105
106
|
dropdownContainer.style.maxHeight = null;
|
|
@@ -114,7 +115,9 @@ export function setPopProperties(target) {
|
|
|
114
115
|
const dropdownHeight = dropdownContainer.getBoundingClientRect().height;
|
|
115
116
|
dropdownContainer.classList.remove('sizable');
|
|
116
117
|
const { top: topOffset, height } = controlElement.getBoundingClientRect();
|
|
117
|
-
const
|
|
118
|
+
const scrollY = ((_b = (_a = window.Tecton) === null || _a === void 0 ? void 0 : _a.platformDimensions) === null || _b === void 0 ? void 0 : _b.scrollY) || 0;
|
|
119
|
+
const innerHeight = ((_d = (_c = window.Tecton) === null || _c === void 0 ? void 0 : _c.platformDimensions) === null || _d === void 0 ? void 0 : _d.innerHeight) || window.innerHeight;
|
|
120
|
+
const bottomOffset = scrollY + innerHeight - topOffset - height;
|
|
118
121
|
const canShowFullSizeBelow = bottomOffset > dropdownHeight;
|
|
119
122
|
const canShowFullSizeAbove = dropdownHeight <= topOffset;
|
|
120
123
|
// Prefer full size above or below
|