q2-tecton-elements 1.21.2 → 1.22.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/installCanvasRenderer-b4d10c92.js +38433 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/q2-badge_2.cjs.entry.js +5 -3
- package/dist/cjs/q2-calendar.cjs.entry.js +75 -55
- package/dist/cjs/q2-carousel.cjs.entry.js +3 -3
- package/dist/cjs/q2-chart-bar.cjs.entry.js +4679 -0
- package/dist/cjs/q2-chart-donut.cjs.entry.js +357 -35592
- package/dist/cjs/q2-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/q2-editable-field.cjs.entry.js +1 -1
- package/dist/cjs/q2-radio.cjs.entry.js +1 -1
- package/dist/cjs/q2-tecton-elements.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/q2-calendar/index.js +43 -2
- package/dist/collection/components/q2-chart-bar/index.js +466 -0
- package/dist/collection/components/q2-chart-bar/styles.css +85 -0
- package/dist/collection/components/q2-chart-donut/index.js +3 -3
- package/dist/collection/components/q2-checkbox/styles.css +5 -1
- package/dist/collection/components/q2-editable-field/styles.css +1 -1
- package/dist/collection/components/q2-input/formatting/phone.js +2 -2
- package/dist/collection/components/q2-input/index.js +21 -0
- package/dist/collection/components/q2-input/styles.css +2 -2
- package/dist/collection/components/q2-radio/styles.css +1 -1
- package/dist/collection/utils/charting.js +182 -0
- package/dist/components/click-elsewhere.d.ts +11 -0
- package/dist/components/click-elsewhere.js +6 -0
- package/dist/components/index.d.ts +62 -0
- package/dist/components/index.js +42 -0
- package/dist/components/index10.js +84 -0
- package/dist/components/index11.js +383 -0
- package/dist/components/index12.js +125 -0
- package/dist/components/index13.js +602 -0
- package/dist/components/index2.js +100 -0
- package/dist/components/index3.js +90 -0
- package/dist/components/index4.js +62 -0
- package/dist/components/index5.js +146 -0
- package/dist/components/index6.js +145 -0
- package/dist/components/index7.js +2960 -0
- package/dist/components/index8.js +3356 -0
- package/dist/components/index9.js +101 -0
- package/dist/components/installCanvasRenderer.js +38282 -0
- package/dist/components/q2-avatar.d.ts +11 -0
- package/dist/components/q2-avatar.js +6 -0
- package/dist/components/q2-badge.d.ts +11 -0
- package/dist/components/q2-badge.js +6 -0
- package/dist/components/q2-btn.d.ts +11 -0
- package/dist/components/q2-btn.js +6 -0
- package/dist/components/q2-calendar.d.ts +11 -0
- package/dist/components/q2-calendar.js +3755 -0
- package/dist/components/q2-card.d.ts +11 -0
- package/dist/components/q2-card.js +187 -0
- package/dist/components/q2-carousel-pane.d.ts +11 -0
- package/dist/components/q2-carousel-pane.js +97 -0
- package/dist/components/q2-carousel.d.ts +11 -0
- package/dist/components/q2-carousel.js +5379 -0
- package/dist/components/q2-chart-bar.d.ts +11 -0
- package/dist/components/q2-chart-bar.js +4710 -0
- package/dist/components/q2-chart-donut.d.ts +11 -0
- package/dist/components/q2-chart-donut.js +4887 -0
- package/dist/components/q2-checkbox-group.d.ts +11 -0
- package/dist/components/q2-checkbox-group.js +114 -0
- package/dist/components/q2-checkbox.d.ts +11 -0
- package/dist/components/q2-checkbox.js +138 -0
- package/dist/components/q2-dropdown-item.d.ts +11 -0
- package/dist/components/q2-dropdown-item.js +6 -0
- package/dist/components/q2-dropdown.d.ts +11 -0
- package/dist/components/q2-dropdown.js +345 -0
- package/dist/components/q2-editable-field.d.ts +11 -0
- package/dist/components/q2-editable-field.js +220 -0
- package/dist/components/q2-icon.d.ts +11 -0
- package/dist/components/q2-icon.js +6 -0
- package/dist/components/q2-input.d.ts +11 -0
- package/dist/components/q2-input.js +6 -0
- package/dist/components/q2-loading-element.d.ts +11 -0
- package/dist/components/q2-loading-element.js +52 -0
- package/dist/components/q2-loading.d.ts +11 -0
- package/dist/components/q2-loading.js +6 -0
- package/dist/components/q2-loc.d.ts +11 -0
- package/dist/components/q2-loc.js +40 -0
- package/dist/components/q2-message.d.ts +11 -0
- package/dist/components/q2-message.js +6 -0
- package/dist/components/q2-month-picker.d.ts +11 -0
- package/dist/components/q2-month-picker.js +189 -0
- package/dist/components/q2-optgroup.d.ts +11 -0
- package/dist/components/q2-optgroup.js +75 -0
- package/dist/components/q2-option-list.d.ts +11 -0
- package/dist/components/q2-option-list.js +6 -0
- package/dist/components/q2-option.d.ts +11 -0
- package/dist/components/q2-option.js +81 -0
- package/dist/components/q2-pagination.d.ts +11 -0
- package/dist/components/q2-pagination.js +184 -0
- package/dist/components/q2-pill.d.ts +11 -0
- package/dist/components/q2-pill.js +216 -0
- package/dist/components/q2-popover.d.ts +11 -0
- package/dist/components/q2-popover.js +6 -0
- package/dist/components/q2-radio-group.d.ts +11 -0
- package/dist/components/q2-radio-group.js +191 -0
- package/dist/components/q2-radio.d.ts +11 -0
- package/dist/components/q2-radio.js +105 -0
- package/dist/components/q2-section.d.ts +11 -0
- package/dist/components/q2-section.js +218 -0
- package/dist/components/q2-select.d.ts +11 -0
- package/dist/components/q2-select.js +817 -0
- package/dist/components/q2-stepper-pane.d.ts +11 -0
- package/dist/components/q2-stepper-pane.js +92 -0
- package/dist/components/q2-stepper-vertical.d.ts +11 -0
- package/dist/components/q2-stepper-vertical.js +311 -0
- package/dist/components/q2-stepper.d.ts +11 -0
- package/dist/components/q2-stepper.js +252 -0
- package/dist/components/q2-tab-container.d.ts +11 -0
- package/dist/components/q2-tab-container.js +288 -0
- package/dist/components/q2-tab-pane.d.ts +11 -0
- package/dist/components/q2-tab-pane.js +58 -0
- package/dist/components/q2-tag.d.ts +11 -0
- package/dist/components/q2-tag.js +156 -0
- package/dist/components/q2-textarea.d.ts +11 -0
- package/dist/components/q2-textarea.js +265 -0
- package/dist/components/q2-tooltip.d.ts +11 -0
- package/dist/components/q2-tooltip.js +112 -0
- package/dist/components/shapes.js +91 -0
- package/dist/components/tecton-tab-pane.d.ts +11 -0
- package/dist/components/tecton-tab-pane.js +111 -0
- package/dist/esm/installCanvasRenderer-0143b52d.js +38282 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/q2-badge_2.entry.js +5 -3
- package/dist/esm/q2-calendar.entry.js +75 -55
- package/dist/esm/q2-carousel.entry.js +3 -3
- package/dist/esm/q2-chart-bar.entry.js +4675 -0
- package/dist/esm/q2-chart-donut.entry.js +171 -35406
- package/dist/esm/q2-checkbox.entry.js +1 -1
- package/dist/esm/q2-editable-field.entry.js +1 -1
- package/dist/esm/q2-radio.entry.js +1 -1
- package/dist/esm/q2-tecton-elements.js +1 -1
- package/dist/q2-tecton-elements/p-1f85cced.js +39 -0
- package/dist/q2-tecton-elements/{p-89608314.entry.js → p-4625184b.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-9772b15f.entry.js → p-520c40f6.entry.js} +1 -1
- package/dist/q2-tecton-elements/p-6b52a262.entry.js +1 -0
- package/dist/q2-tecton-elements/p-c4640b55.entry.js +1 -0
- package/dist/q2-tecton-elements/{p-7e8f43d1.entry.js → p-cf41970f.entry.js} +1 -1
- package/dist/q2-tecton-elements/p-e4dc9ac0.entry.js +1 -0
- package/dist/q2-tecton-elements/p-f35bf6a3.entry.js +1 -0
- package/dist/q2-tecton-elements/q2-tecton-elements.esm.js +1 -1
- package/dist/types/components/q2-calendar/index.d.ts +3 -0
- package/dist/types/components/q2-chart-bar/index.d.ts +40 -0
- package/dist/types/components/q2-chart-donut/index.d.ts +7 -10
- package/dist/types/components/q2-input/index.d.ts +1 -0
- package/dist/types/components.d.ts +50 -3
- package/dist/types/utils/charting.d.ts +14 -0
- package/package.json +5 -2
- package/dist/q2-tecton-elements/p-0766a694.entry.js +0 -1
- package/dist/q2-tecton-elements/p-5f064e1e.entry.js +0 -39
- package/dist/q2-tecton-elements/p-8d25ec52.entry.js +0 -1
- /package/dist/types/workspace/workspace/{tecton-production_release_1.21.x → Tecton_tecton-production_master}/packages/q2-tecton-elements/.stencil/test/helpers.d.ts +0 -0
|
@@ -0,0 +1,466 @@
|
|
|
1
|
+
import { h } from '@stencil/core';
|
|
2
|
+
import * as echarts from 'echarts/core';
|
|
3
|
+
import { TitleComponent, AriaComponent, GridComponent, } from 'echarts/components';
|
|
4
|
+
import { BarChart } from 'echarts/charts';
|
|
5
|
+
import { LabelLayout } from 'echarts/features';
|
|
6
|
+
import { CanvasRenderer } from 'echarts/renderers';
|
|
7
|
+
import { loc, overrideFocus } from 'src/utils';
|
|
8
|
+
import { getCSSProperty, isValidColor, formatValue } from 'src/utils/charting';
|
|
9
|
+
echarts.use([AriaComponent, BarChart, CanvasRenderer, LabelLayout, GridComponent, TitleComponent]);
|
|
10
|
+
export class Q2ChartBar {
|
|
11
|
+
constructor() {
|
|
12
|
+
this.data = [];
|
|
13
|
+
this.alignChartName = undefined;
|
|
14
|
+
this.chartName = undefined;
|
|
15
|
+
this.color = undefined;
|
|
16
|
+
this.dataNamesOverflow = undefined;
|
|
17
|
+
this.dataNamesWidth = undefined;
|
|
18
|
+
this.format = undefined;
|
|
19
|
+
this.formatModifier = undefined;
|
|
20
|
+
this.hideBarLabels = false;
|
|
21
|
+
this.hideValueAxisLabels = false;
|
|
22
|
+
this.offsetDataNames = false;
|
|
23
|
+
this.offsetDataValues = false;
|
|
24
|
+
this.orientation = undefined;
|
|
25
|
+
this.showChartName = false;
|
|
26
|
+
this.sort = false;
|
|
27
|
+
}
|
|
28
|
+
componentDidLoad() {
|
|
29
|
+
const chart = echarts.init(this.chartContainer);
|
|
30
|
+
this.chart = chart;
|
|
31
|
+
this.resizeObserver = new ResizeObserver(() => this.resizeChart());
|
|
32
|
+
this.resizeObserver.observe(this.hostElement);
|
|
33
|
+
this.cacheComputedStyles();
|
|
34
|
+
this.updateChart(chart);
|
|
35
|
+
overrideFocus(this.hostElement);
|
|
36
|
+
}
|
|
37
|
+
willDestroyElement() {
|
|
38
|
+
this.resizeObserver = null;
|
|
39
|
+
}
|
|
40
|
+
cacheComputedStyles() {
|
|
41
|
+
this.chartContainerStyles = getComputedStyle(this.chartContainer);
|
|
42
|
+
this.hostElementStyles = getComputedStyle(this.hostElement);
|
|
43
|
+
}
|
|
44
|
+
getColor(color) {
|
|
45
|
+
const primaryColor = getCSSProperty('var(--t-primary)', this.chartContainerStyles, this.hostElementStyles);
|
|
46
|
+
const seriesColor = getCSSProperty(this.color, this.chartContainerStyles, this.hostElementStyles);
|
|
47
|
+
const cssColorProp = getCSSProperty(color, this.chartContainerStyles, this.hostElementStyles);
|
|
48
|
+
if (cssColorProp)
|
|
49
|
+
return cssColorProp;
|
|
50
|
+
if (isValidColor(color))
|
|
51
|
+
return color;
|
|
52
|
+
if (seriesColor)
|
|
53
|
+
return seriesColor;
|
|
54
|
+
if (isValidColor(this.color))
|
|
55
|
+
return this.color;
|
|
56
|
+
return primaryColor;
|
|
57
|
+
}
|
|
58
|
+
processData(data) {
|
|
59
|
+
return data.map(datum => {
|
|
60
|
+
return {
|
|
61
|
+
value: datum.value || 0,
|
|
62
|
+
itemStyle: {
|
|
63
|
+
color: this.getColor(datum.color),
|
|
64
|
+
},
|
|
65
|
+
};
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
updateChart(chart) {
|
|
69
|
+
var _a;
|
|
70
|
+
const decimals = ((_a = this.formatModifier) === null || _a === void 0 ? void 0 : _a.includes('dec')) ? this.formatModifier.replace('dec', '') : 0;
|
|
71
|
+
const valueAxis = {
|
|
72
|
+
type: 'value',
|
|
73
|
+
axisLabel: {
|
|
74
|
+
formatter: (value) => formatValue(value, {
|
|
75
|
+
type: this.format,
|
|
76
|
+
decimals,
|
|
77
|
+
}),
|
|
78
|
+
rotate: this.offsetDataValues ? 45 : 0,
|
|
79
|
+
margin: this.offsetDataValues ? 15 : 8,
|
|
80
|
+
show: !this.hideValueAxisLabels,
|
|
81
|
+
},
|
|
82
|
+
};
|
|
83
|
+
const categoryAxis = {
|
|
84
|
+
type: 'category',
|
|
85
|
+
data: this.data.map(datum => loc(datum.name) || ''),
|
|
86
|
+
axisLabel: {
|
|
87
|
+
rotate: this.offsetDataNames ? 45 : 0,
|
|
88
|
+
margin: this.offsetDataNames ? 15 : 8,
|
|
89
|
+
interval: 0,
|
|
90
|
+
width: this.dataNamesWidth || 50,
|
|
91
|
+
overflow: this.dataNamesOverflow || 'none',
|
|
92
|
+
truncate: 'ellipsis',
|
|
93
|
+
},
|
|
94
|
+
axisTick: {
|
|
95
|
+
alignWithLabel: this.offsetDataNames,
|
|
96
|
+
},
|
|
97
|
+
};
|
|
98
|
+
return chart.setOption({
|
|
99
|
+
aria: {
|
|
100
|
+
enabled: true,
|
|
101
|
+
},
|
|
102
|
+
title: {
|
|
103
|
+
text: this.chartName,
|
|
104
|
+
show: this.showChartName,
|
|
105
|
+
left: this.alignChartName,
|
|
106
|
+
},
|
|
107
|
+
grid: {
|
|
108
|
+
containLabel: true,
|
|
109
|
+
},
|
|
110
|
+
xAxis: this.orientation === 'horizontal' ? valueAxis : categoryAxis,
|
|
111
|
+
yAxis: this.orientation === 'horizontal' ? categoryAxis : valueAxis,
|
|
112
|
+
series: [
|
|
113
|
+
{
|
|
114
|
+
data: this.processData(this.data),
|
|
115
|
+
id: 'bar',
|
|
116
|
+
type: 'bar',
|
|
117
|
+
label: {
|
|
118
|
+
show: !this.hideBarLabels,
|
|
119
|
+
position: 'top',
|
|
120
|
+
fontWeight: 'bold',
|
|
121
|
+
formatter: (params) => {
|
|
122
|
+
return formatValue(params.value, {
|
|
123
|
+
type: this.format,
|
|
124
|
+
decimals,
|
|
125
|
+
});
|
|
126
|
+
},
|
|
127
|
+
},
|
|
128
|
+
realtimeSort: this.sort,
|
|
129
|
+
},
|
|
130
|
+
],
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
resizeChart() {
|
|
134
|
+
this.chart.resize();
|
|
135
|
+
}
|
|
136
|
+
propsUpdates() {
|
|
137
|
+
this.updateChart(this.chart);
|
|
138
|
+
}
|
|
139
|
+
render() {
|
|
140
|
+
return (h("div", { class: "container" }, h("div", { ref: el => (this.chartContainer = el), class: "chart-container", "test-id": "barChartContainer" })));
|
|
141
|
+
}
|
|
142
|
+
static get is() { return "q2-chart-bar"; }
|
|
143
|
+
static get encapsulation() { return "shadow"; }
|
|
144
|
+
static get originalStyleUrls() {
|
|
145
|
+
return {
|
|
146
|
+
"$": ["styles.scss"]
|
|
147
|
+
};
|
|
148
|
+
}
|
|
149
|
+
static get styleUrls() {
|
|
150
|
+
return {
|
|
151
|
+
"$": ["styles.css"]
|
|
152
|
+
};
|
|
153
|
+
}
|
|
154
|
+
static get properties() {
|
|
155
|
+
return {
|
|
156
|
+
"data": {
|
|
157
|
+
"type": "unknown",
|
|
158
|
+
"mutable": false,
|
|
159
|
+
"complexType": {
|
|
160
|
+
"original": "IChartData[]",
|
|
161
|
+
"resolved": "IChartData[]",
|
|
162
|
+
"references": {
|
|
163
|
+
"IChartData": {
|
|
164
|
+
"location": "import",
|
|
165
|
+
"path": "src/utils/charting"
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
},
|
|
169
|
+
"required": false,
|
|
170
|
+
"optional": false,
|
|
171
|
+
"docs": {
|
|
172
|
+
"tags": [],
|
|
173
|
+
"text": ""
|
|
174
|
+
},
|
|
175
|
+
"defaultValue": "[]"
|
|
176
|
+
},
|
|
177
|
+
"alignChartName": {
|
|
178
|
+
"type": "string",
|
|
179
|
+
"mutable": false,
|
|
180
|
+
"complexType": {
|
|
181
|
+
"original": "'left' | 'right' | 'center'",
|
|
182
|
+
"resolved": "\"center\" | \"left\" | \"right\"",
|
|
183
|
+
"references": {}
|
|
184
|
+
},
|
|
185
|
+
"required": false,
|
|
186
|
+
"optional": false,
|
|
187
|
+
"docs": {
|
|
188
|
+
"tags": [],
|
|
189
|
+
"text": ""
|
|
190
|
+
},
|
|
191
|
+
"attribute": "align-chart-name",
|
|
192
|
+
"reflect": true
|
|
193
|
+
},
|
|
194
|
+
"chartName": {
|
|
195
|
+
"type": "string",
|
|
196
|
+
"mutable": false,
|
|
197
|
+
"complexType": {
|
|
198
|
+
"original": "string",
|
|
199
|
+
"resolved": "string",
|
|
200
|
+
"references": {}
|
|
201
|
+
},
|
|
202
|
+
"required": false,
|
|
203
|
+
"optional": false,
|
|
204
|
+
"docs": {
|
|
205
|
+
"tags": [],
|
|
206
|
+
"text": ""
|
|
207
|
+
},
|
|
208
|
+
"attribute": "chart-name",
|
|
209
|
+
"reflect": true
|
|
210
|
+
},
|
|
211
|
+
"color": {
|
|
212
|
+
"type": "string",
|
|
213
|
+
"mutable": false,
|
|
214
|
+
"complexType": {
|
|
215
|
+
"original": "string",
|
|
216
|
+
"resolved": "string",
|
|
217
|
+
"references": {}
|
|
218
|
+
},
|
|
219
|
+
"required": false,
|
|
220
|
+
"optional": false,
|
|
221
|
+
"docs": {
|
|
222
|
+
"tags": [],
|
|
223
|
+
"text": ""
|
|
224
|
+
},
|
|
225
|
+
"attribute": "color",
|
|
226
|
+
"reflect": true
|
|
227
|
+
},
|
|
228
|
+
"dataNamesOverflow": {
|
|
229
|
+
"type": "string",
|
|
230
|
+
"mutable": false,
|
|
231
|
+
"complexType": {
|
|
232
|
+
"original": "'break' | 'truncate'",
|
|
233
|
+
"resolved": "\"break\" | \"truncate\"",
|
|
234
|
+
"references": {}
|
|
235
|
+
},
|
|
236
|
+
"required": false,
|
|
237
|
+
"optional": false,
|
|
238
|
+
"docs": {
|
|
239
|
+
"tags": [],
|
|
240
|
+
"text": ""
|
|
241
|
+
},
|
|
242
|
+
"attribute": "data-names-overflow",
|
|
243
|
+
"reflect": true
|
|
244
|
+
},
|
|
245
|
+
"dataNamesWidth": {
|
|
246
|
+
"type": "number",
|
|
247
|
+
"mutable": false,
|
|
248
|
+
"complexType": {
|
|
249
|
+
"original": "number",
|
|
250
|
+
"resolved": "number",
|
|
251
|
+
"references": {}
|
|
252
|
+
},
|
|
253
|
+
"required": false,
|
|
254
|
+
"optional": false,
|
|
255
|
+
"docs": {
|
|
256
|
+
"tags": [],
|
|
257
|
+
"text": ""
|
|
258
|
+
},
|
|
259
|
+
"attribute": "data-names-width",
|
|
260
|
+
"reflect": true
|
|
261
|
+
},
|
|
262
|
+
"format": {
|
|
263
|
+
"type": "string",
|
|
264
|
+
"mutable": false,
|
|
265
|
+
"complexType": {
|
|
266
|
+
"original": "'currency' | 'default'",
|
|
267
|
+
"resolved": "\"currency\" | \"default\"",
|
|
268
|
+
"references": {}
|
|
269
|
+
},
|
|
270
|
+
"required": false,
|
|
271
|
+
"optional": false,
|
|
272
|
+
"docs": {
|
|
273
|
+
"tags": [],
|
|
274
|
+
"text": ""
|
|
275
|
+
},
|
|
276
|
+
"attribute": "format",
|
|
277
|
+
"reflect": true
|
|
278
|
+
},
|
|
279
|
+
"formatModifier": {
|
|
280
|
+
"type": "string",
|
|
281
|
+
"mutable": false,
|
|
282
|
+
"complexType": {
|
|
283
|
+
"original": "string",
|
|
284
|
+
"resolved": "string",
|
|
285
|
+
"references": {}
|
|
286
|
+
},
|
|
287
|
+
"required": false,
|
|
288
|
+
"optional": false,
|
|
289
|
+
"docs": {
|
|
290
|
+
"tags": [],
|
|
291
|
+
"text": ""
|
|
292
|
+
},
|
|
293
|
+
"attribute": "format-modifier",
|
|
294
|
+
"reflect": true
|
|
295
|
+
},
|
|
296
|
+
"hideBarLabels": {
|
|
297
|
+
"type": "boolean",
|
|
298
|
+
"mutable": false,
|
|
299
|
+
"complexType": {
|
|
300
|
+
"original": "boolean",
|
|
301
|
+
"resolved": "boolean",
|
|
302
|
+
"references": {}
|
|
303
|
+
},
|
|
304
|
+
"required": false,
|
|
305
|
+
"optional": false,
|
|
306
|
+
"docs": {
|
|
307
|
+
"tags": [],
|
|
308
|
+
"text": ""
|
|
309
|
+
},
|
|
310
|
+
"attribute": "hide-bar-labels",
|
|
311
|
+
"reflect": true,
|
|
312
|
+
"defaultValue": "false"
|
|
313
|
+
},
|
|
314
|
+
"hideValueAxisLabels": {
|
|
315
|
+
"type": "boolean",
|
|
316
|
+
"mutable": false,
|
|
317
|
+
"complexType": {
|
|
318
|
+
"original": "boolean",
|
|
319
|
+
"resolved": "boolean",
|
|
320
|
+
"references": {}
|
|
321
|
+
},
|
|
322
|
+
"required": false,
|
|
323
|
+
"optional": false,
|
|
324
|
+
"docs": {
|
|
325
|
+
"tags": [],
|
|
326
|
+
"text": ""
|
|
327
|
+
},
|
|
328
|
+
"attribute": "hide-value-axis-labels",
|
|
329
|
+
"reflect": true,
|
|
330
|
+
"defaultValue": "false"
|
|
331
|
+
},
|
|
332
|
+
"offsetDataNames": {
|
|
333
|
+
"type": "boolean",
|
|
334
|
+
"mutable": false,
|
|
335
|
+
"complexType": {
|
|
336
|
+
"original": "boolean",
|
|
337
|
+
"resolved": "boolean",
|
|
338
|
+
"references": {}
|
|
339
|
+
},
|
|
340
|
+
"required": false,
|
|
341
|
+
"optional": false,
|
|
342
|
+
"docs": {
|
|
343
|
+
"tags": [],
|
|
344
|
+
"text": ""
|
|
345
|
+
},
|
|
346
|
+
"attribute": "offset-data-names",
|
|
347
|
+
"reflect": true,
|
|
348
|
+
"defaultValue": "false"
|
|
349
|
+
},
|
|
350
|
+
"offsetDataValues": {
|
|
351
|
+
"type": "boolean",
|
|
352
|
+
"mutable": false,
|
|
353
|
+
"complexType": {
|
|
354
|
+
"original": "boolean",
|
|
355
|
+
"resolved": "boolean",
|
|
356
|
+
"references": {}
|
|
357
|
+
},
|
|
358
|
+
"required": false,
|
|
359
|
+
"optional": false,
|
|
360
|
+
"docs": {
|
|
361
|
+
"tags": [],
|
|
362
|
+
"text": ""
|
|
363
|
+
},
|
|
364
|
+
"attribute": "offset-data-values",
|
|
365
|
+
"reflect": true,
|
|
366
|
+
"defaultValue": "false"
|
|
367
|
+
},
|
|
368
|
+
"orientation": {
|
|
369
|
+
"type": "string",
|
|
370
|
+
"mutable": false,
|
|
371
|
+
"complexType": {
|
|
372
|
+
"original": "'vertical' | 'horizontal'",
|
|
373
|
+
"resolved": "\"horizontal\" | \"vertical\"",
|
|
374
|
+
"references": {}
|
|
375
|
+
},
|
|
376
|
+
"required": false,
|
|
377
|
+
"optional": false,
|
|
378
|
+
"docs": {
|
|
379
|
+
"tags": [],
|
|
380
|
+
"text": ""
|
|
381
|
+
},
|
|
382
|
+
"attribute": "orientation",
|
|
383
|
+
"reflect": true
|
|
384
|
+
},
|
|
385
|
+
"showChartName": {
|
|
386
|
+
"type": "boolean",
|
|
387
|
+
"mutable": false,
|
|
388
|
+
"complexType": {
|
|
389
|
+
"original": "boolean",
|
|
390
|
+
"resolved": "boolean",
|
|
391
|
+
"references": {}
|
|
392
|
+
},
|
|
393
|
+
"required": false,
|
|
394
|
+
"optional": false,
|
|
395
|
+
"docs": {
|
|
396
|
+
"tags": [],
|
|
397
|
+
"text": ""
|
|
398
|
+
},
|
|
399
|
+
"attribute": "show-chart-name",
|
|
400
|
+
"reflect": true,
|
|
401
|
+
"defaultValue": "false"
|
|
402
|
+
},
|
|
403
|
+
"sort": {
|
|
404
|
+
"type": "boolean",
|
|
405
|
+
"mutable": false,
|
|
406
|
+
"complexType": {
|
|
407
|
+
"original": "boolean",
|
|
408
|
+
"resolved": "boolean",
|
|
409
|
+
"references": {}
|
|
410
|
+
},
|
|
411
|
+
"required": false,
|
|
412
|
+
"optional": false,
|
|
413
|
+
"docs": {
|
|
414
|
+
"tags": [],
|
|
415
|
+
"text": ""
|
|
416
|
+
},
|
|
417
|
+
"attribute": "sort",
|
|
418
|
+
"reflect": true,
|
|
419
|
+
"defaultValue": "false"
|
|
420
|
+
}
|
|
421
|
+
};
|
|
422
|
+
}
|
|
423
|
+
static get elementRef() { return "hostElement"; }
|
|
424
|
+
static get watchers() {
|
|
425
|
+
return [{
|
|
426
|
+
"propName": "chartName",
|
|
427
|
+
"methodName": "propsUpdates"
|
|
428
|
+
}, {
|
|
429
|
+
"propName": "color",
|
|
430
|
+
"methodName": "propsUpdates"
|
|
431
|
+
}, {
|
|
432
|
+
"propName": "hideBarLabels",
|
|
433
|
+
"methodName": "propsUpdates"
|
|
434
|
+
}, {
|
|
435
|
+
"propName": "showChartName",
|
|
436
|
+
"methodName": "propsUpdates"
|
|
437
|
+
}, {
|
|
438
|
+
"propName": "alignChartName",
|
|
439
|
+
"methodName": "propsUpdates"
|
|
440
|
+
}, {
|
|
441
|
+
"propName": "orientation",
|
|
442
|
+
"methodName": "propsUpdates"
|
|
443
|
+
}, {
|
|
444
|
+
"propName": "format",
|
|
445
|
+
"methodName": "propsUpdates"
|
|
446
|
+
}, {
|
|
447
|
+
"propName": "sort",
|
|
448
|
+
"methodName": "propsUpdates"
|
|
449
|
+
}, {
|
|
450
|
+
"propName": "data",
|
|
451
|
+
"methodName": "propsUpdates"
|
|
452
|
+
}, {
|
|
453
|
+
"propName": "offsetDataNames",
|
|
454
|
+
"methodName": "propsUpdates"
|
|
455
|
+
}, {
|
|
456
|
+
"propName": "hideValueAxisLabels",
|
|
457
|
+
"methodName": "propsUpdates"
|
|
458
|
+
}, {
|
|
459
|
+
"propName": "formatModifier",
|
|
460
|
+
"methodName": "propsUpdates"
|
|
461
|
+
}, {
|
|
462
|
+
"propName": "dataNamesOverflow",
|
|
463
|
+
"methodName": "propsUpdates"
|
|
464
|
+
}];
|
|
465
|
+
}
|
|
466
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
* {
|
|
2
|
+
box-sizing: border-box;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
*:active {
|
|
6
|
+
outline: none;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
*:focus {
|
|
10
|
+
outline: none;
|
|
11
|
+
box-shadow: var(--const-double-focus-ring, 0 0 0 2px #ffffff, 0 0 0 4px #33b4ff #06C);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
:host {
|
|
15
|
+
box-shadow: none !important;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
::-moz-focus-inner {
|
|
19
|
+
border: none;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
input,
|
|
23
|
+
textarea,
|
|
24
|
+
button {
|
|
25
|
+
font-family: inherit;
|
|
26
|
+
font-size: inherit;
|
|
27
|
+
font-stretch: inherit;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
:host(.sr),
|
|
31
|
+
:host(.sr) button {
|
|
32
|
+
border: 0;
|
|
33
|
+
clip: rect(0 0 0 0);
|
|
34
|
+
height: 1px;
|
|
35
|
+
margin: -1px;
|
|
36
|
+
overflow: hidden;
|
|
37
|
+
padding: 0;
|
|
38
|
+
position: absolute;
|
|
39
|
+
width: 1px;
|
|
40
|
+
white-space: nowrap;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.sr,
|
|
44
|
+
.sr button {
|
|
45
|
+
border: 0;
|
|
46
|
+
clip: rect(0 0 0 0);
|
|
47
|
+
height: 1px;
|
|
48
|
+
margin: -1px;
|
|
49
|
+
overflow: hidden;
|
|
50
|
+
padding: 0;
|
|
51
|
+
position: absolute;
|
|
52
|
+
width: 1px;
|
|
53
|
+
white-space: nowrap;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.hidden {
|
|
57
|
+
display: none;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
:host([hidden]) {
|
|
61
|
+
display: none;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.invisible {
|
|
65
|
+
visibility: hidden;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
:host {
|
|
69
|
+
position: relative;
|
|
70
|
+
width: 100%;
|
|
71
|
+
display: block;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.container {
|
|
75
|
+
aspect-ratio: 1/1;
|
|
76
|
+
width: 100%;
|
|
77
|
+
display: flex;
|
|
78
|
+
justify-content: center;
|
|
79
|
+
align-items: center;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.chart-container {
|
|
83
|
+
width: 100%;
|
|
84
|
+
height: 100%;
|
|
85
|
+
}
|
|
@@ -532,10 +532,10 @@ export class Q2ChartDonut {
|
|
|
532
532
|
"type": "unknown",
|
|
533
533
|
"mutable": false,
|
|
534
534
|
"complexType": {
|
|
535
|
-
"original": "
|
|
536
|
-
"resolved": "
|
|
535
|
+
"original": "IDonutChartData[]",
|
|
536
|
+
"resolved": "IDonutChartData[]",
|
|
537
537
|
"references": {
|
|
538
|
-
"
|
|
538
|
+
"IDonutChartData": {
|
|
539
539
|
"location": "local"
|
|
540
540
|
}
|
|
541
541
|
}
|
|
@@ -125,10 +125,14 @@ label {
|
|
|
125
125
|
cursor: pointer;
|
|
126
126
|
}
|
|
127
127
|
|
|
128
|
-
:host([disabled]),
|
|
128
|
+
:host([disabled]:not([disabled=false])),
|
|
129
129
|
:host([group-disabled]) {
|
|
130
130
|
opacity: var(--tct-checkbox-disabled-opacity, var(--t-checkbox-disabled-opacity, var(--tct-disabled-opacity, var(--app-disabled-opacity, 0.4))));
|
|
131
131
|
}
|
|
132
|
+
:host([disabled]:not([disabled=false])) label,
|
|
133
|
+
:host([group-disabled]) label {
|
|
134
|
+
cursor: not-allowed;
|
|
135
|
+
}
|
|
132
136
|
|
|
133
137
|
.checkbox-icon {
|
|
134
138
|
--t-icon-stroke-primary: var(--comp-checkbox-outer-stroke-color);
|
|
@@ -424,7 +424,7 @@ export const phoneNumberFormats = {
|
|
|
424
424
|
prefix: ''
|
|
425
425
|
}, */
|
|
426
426
|
ID: {
|
|
427
|
-
mask: '
|
|
427
|
+
mask: '#######??????',
|
|
428
428
|
prefix: '+62 ',
|
|
429
429
|
},
|
|
430
430
|
IR: {
|
|
@@ -633,7 +633,7 @@ export const phoneNumberFormats = {
|
|
|
633
633
|
prefix: '+1 ',
|
|
634
634
|
},
|
|
635
635
|
MA: {
|
|
636
|
-
mask: '
|
|
636
|
+
mask: '#########?',
|
|
637
637
|
prefix: '+212 ',
|
|
638
638
|
},
|
|
639
639
|
/* MZ: {
|
|
@@ -60,6 +60,7 @@ export class Q2Input {
|
|
|
60
60
|
};
|
|
61
61
|
this.input.emit(eventDetail);
|
|
62
62
|
this.change.emit(eventDetail);
|
|
63
|
+
this.clear.emit();
|
|
63
64
|
this.inputField.focus();
|
|
64
65
|
};
|
|
65
66
|
this.value = undefined;
|
|
@@ -1055,6 +1056,26 @@ export class Q2Input {
|
|
|
1055
1056
|
}
|
|
1056
1057
|
}
|
|
1057
1058
|
}
|
|
1059
|
+
}, {
|
|
1060
|
+
"method": "clear",
|
|
1061
|
+
"name": "clear",
|
|
1062
|
+
"bubbles": true,
|
|
1063
|
+
"cancelable": true,
|
|
1064
|
+
"composed": true,
|
|
1065
|
+
"docs": {
|
|
1066
|
+
"tags": [],
|
|
1067
|
+
"text": ""
|
|
1068
|
+
},
|
|
1069
|
+
"complexType": {
|
|
1070
|
+
"original": "IEventDetail",
|
|
1071
|
+
"resolved": "IEventDetail",
|
|
1072
|
+
"references": {
|
|
1073
|
+
"IEventDetail": {
|
|
1074
|
+
"location": "import",
|
|
1075
|
+
"path": "./types"
|
|
1076
|
+
}
|
|
1077
|
+
}
|
|
1078
|
+
}
|
|
1058
1079
|
}];
|
|
1059
1080
|
}
|
|
1060
1081
|
static get elementRef() { return "hostElement"; }
|
|
@@ -133,7 +133,7 @@ label {
|
|
|
133
133
|
box-shadow: var(--tct-input-box-shadow, var(--t-input-box-shadow, none));
|
|
134
134
|
transition: border-width var(--comp-input-tween), border-color var(--comp-input-tween), box-shadow var(--comp-input-tween);
|
|
135
135
|
}
|
|
136
|
-
:host([disabled]) .input-container {
|
|
136
|
+
:host([disabled]:not([disabled=false])) .input-container {
|
|
137
137
|
cursor: not-allowed;
|
|
138
138
|
opacity: var(--tct-input-disabled-opacity, var(--t-input-disabled-opacity, var(--tct-disabled-opacity, var(--app-disabled-opacity, 0.4))));
|
|
139
139
|
}
|
|
@@ -175,7 +175,7 @@ label {
|
|
|
175
175
|
.input-field[type=search]::-webkit-search-decoration, .input-field[type=search]::-webkit-search-cancel-button, .input-field[type=search]::-webkit-search-results-button, .input-field[type=search]::-webkit-search-results-decoration {
|
|
176
176
|
display: none;
|
|
177
177
|
}
|
|
178
|
-
.input-field[disabled] {
|
|
178
|
+
.input-field[disabled]:not([disabled=false]) {
|
|
179
179
|
cursor: not-allowed;
|
|
180
180
|
}
|
|
181
181
|
.right-aligned .input-field {
|