q2-tecton-elements 1.22.2 → 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.
Files changed (76) hide show
  1. package/dist/cjs/charting-d02cba1f.js +3127 -0
  2. package/dist/cjs/{installCanvasRenderer-b4d10c92.js → installCanvasRenderer-6c4fbcc9.js} +230 -1130
  3. package/dist/cjs/installLabelLayout-d6b548fe.js +1048 -0
  4. package/dist/cjs/loader.cjs.js +1 -1
  5. package/dist/cjs/q2-btn_2.cjs.entry.js +1 -1
  6. package/dist/cjs/q2-card.cjs.entry.js +1 -1
  7. package/dist/cjs/q2-chart-area.cjs.entry.js +4569 -0
  8. package/dist/cjs/q2-chart-bar.cjs.entry.js +24 -3132
  9. package/dist/cjs/q2-chart-donut.cjs.entry.js +8 -7
  10. package/dist/cjs/q2-checkbox.cjs.entry.js +1 -1
  11. package/dist/cjs/q2-loading-element.cjs.entry.js +1 -1
  12. package/dist/cjs/q2-select.cjs.entry.js +2 -1
  13. package/dist/cjs/q2-tecton-elements.cjs.js +1 -1
  14. package/dist/collection/collection-manifest.json +1 -0
  15. package/dist/collection/components/q2-card/index.js +1 -1
  16. package/dist/collection/components/q2-chart-area/index.js +622 -0
  17. package/dist/collection/components/q2-chart-area/styles.css +82 -0
  18. package/dist/collection/components/q2-chart-bar/index.js +4 -4
  19. package/dist/collection/components/q2-chart-bar/styles.css +3 -6
  20. package/dist/collection/components/q2-chart-donut/index.js +1 -1
  21. package/dist/collection/components/q2-checkbox/styles.css +1 -0
  22. package/dist/collection/components/q2-loading/skeleton/q2-loading-element/styles.css +4 -0
  23. package/dist/collection/components/q2-loading/styles.css +4 -0
  24. package/dist/collection/components/q2-select/index.js +19 -1
  25. package/dist/components/charting.js +3113 -0
  26. package/dist/components/index.d.ts +1 -0
  27. package/dist/components/index.js +1 -0
  28. package/dist/components/index9.js +1 -1
  29. package/dist/components/installCanvasRenderer.js +188 -1123
  30. package/dist/components/installLabelLayout.js +1042 -0
  31. package/dist/components/q2-card.js +1 -1
  32. package/dist/components/q2-chart-area.d.ts +11 -0
  33. package/dist/components/q2-chart-area.js +4604 -0
  34. package/dist/components/q2-chart-bar.js +10 -3118
  35. package/dist/components/q2-chart-donut.js +3 -2
  36. package/dist/components/q2-checkbox.js +1 -1
  37. package/dist/components/q2-loading-element.js +1 -1
  38. package/dist/components/q2-select.js +3 -1
  39. package/dist/esm/charting-2a73ba8e.js +3113 -0
  40. package/dist/esm/{installCanvasRenderer-0143b52d.js → installCanvasRenderer-4a470516.js} +188 -1123
  41. package/dist/esm/installLabelLayout-d660eaad.js +1042 -0
  42. package/dist/esm/loader.js +1 -1
  43. package/dist/esm/q2-btn_2.entry.js +1 -1
  44. package/dist/esm/q2-card.entry.js +1 -1
  45. package/dist/esm/q2-chart-area.entry.js +4565 -0
  46. package/dist/esm/q2-chart-bar.entry.js +10 -3118
  47. package/dist/esm/q2-chart-donut.entry.js +3 -2
  48. package/dist/esm/q2-checkbox.entry.js +1 -1
  49. package/dist/esm/q2-loading-element.entry.js +1 -1
  50. package/dist/esm/q2-select.entry.js +2 -1
  51. package/dist/esm/q2-tecton-elements.js +1 -1
  52. package/dist/q2-tecton-elements/p-458b1987.js +1 -0
  53. package/dist/q2-tecton-elements/p-52063431.js +39 -0
  54. package/dist/q2-tecton-elements/p-604b22a8.entry.js +1 -0
  55. package/dist/q2-tecton-elements/p-6be86940.entry.js +1 -0
  56. package/dist/q2-tecton-elements/p-70b01387.entry.js +1 -0
  57. package/dist/q2-tecton-elements/p-833398d1.js +1 -0
  58. package/dist/q2-tecton-elements/{p-2cb7163e.entry.js → p-acc77332.entry.js} +1 -1
  59. package/dist/q2-tecton-elements/p-bbdae095.entry.js +1 -0
  60. package/dist/q2-tecton-elements/{p-84b19eff.entry.js → p-d68b5eb3.entry.js} +1 -1
  61. package/dist/q2-tecton-elements/p-d88e4383.entry.js +1 -0
  62. package/dist/q2-tecton-elements/{p-6e6b5b80.entry.js → p-f0ec4d2c.entry.js} +1 -1
  63. package/dist/q2-tecton-elements/q2-tecton-elements.esm.js +1 -1
  64. package/dist/types/components/q2-card/index.d.ts +1 -1
  65. package/dist/types/components/q2-chart-area/index.d.ts +40 -0
  66. package/dist/types/components/q2-chart-bar/index.d.ts +2 -2
  67. package/dist/types/components/q2-chart-donut/index.d.ts +1 -1
  68. package/dist/types/components/q2-select/index.d.ts +1 -0
  69. package/dist/types/components.d.ts +58 -0
  70. package/package.json +2 -2
  71. package/dist/q2-tecton-elements/p-1f303a21.entry.js +0 -1
  72. package/dist/q2-tecton-elements/p-1f85cced.js +0 -39
  73. package/dist/q2-tecton-elements/p-91d830c3.entry.js +0 -1
  74. package/dist/q2-tecton-elements/p-aec145e9.entry.js +0 -1
  75. package/dist/q2-tecton-elements/p-cd1c68d2.entry.js +0 -1
  76. /package/dist/types/workspace/workspace/{tecton-production_release_1.22.x → 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.resizeObserver = new ResizeObserver(() => this.resizeChart());
32
- this.resizeObserver.observe(this.hostElement);
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
- willDestroyElement() {
38
- this.resizeObserver = null;
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
- position: relative;
70
- width: 100%;
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
- display: flex;
78
- justify-content: center;
79
- align-items: center;
76
+ height: 100%;
80
77
  }
81
78
 
82
79
  .chart-container {
@@ -87,7 +87,7 @@ export class Q2ChartDonut {
87
87
  this.chart = chart;
88
88
  overrideFocus(this.hostElement);
89
89
  }
90
- willDestroyElement() {
90
+ disconnectedCallback() {
91
91
  this.resizeObserver = null;
92
92
  }
93
93
  /// Getters ///
@@ -198,6 +198,7 @@ label {
198
198
  height: 30px;
199
199
  width: var(--comp-checkbox-toggle-width);
200
200
  position: relative;
201
+ text-align: initial;
201
202
  }
202
203
 
203
204
  .toggle-track,
@@ -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%;
@@ -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
  }