@operato/scene-chartjs 7.0.0 → 7.0.2
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +18 -0
- package/dist/config-converter.js +1 -1
- package/dist/config-converter.js.map +1 -1
- package/dist/editors/index.d.ts +1 -1
- package/dist/editors/index.js +2 -2
- package/dist/editors/index.js.map +1 -1
- package/dist/ox-chart.js +1 -1
- package/dist/ox-chart.js.map +1 -1
- package/package.json +6 -4
- package/schema.graphql +76 -40
- package/src/config-converter.ts +1 -1
- package/src/editors/index.ts +2 -2
- package/src/ox-chart.ts +1 -1
- package/translations/en.json +2 -1
- package/translations/ja.json +2 -1
- package/translations/ko.json +2 -1
- package/translations/ms.json +2 -1
- package/translations/zh.json +2 -1
- package/tsconfig.tsbuildinfo +1 -1
- package/dist/editors/property-editor-chartjs-abstract.d.ts +0 -50
- package/dist/editors/property-editor-chartjs-abstract.js +0 -273
- package/dist/editors/property-editor-chartjs-abstract.js.map +0 -1
- package/dist/editors/property-editor-chartjs-hbar.d.ts +0 -10
- package/dist/editors/property-editor-chartjs-hbar.js +0 -154
- package/dist/editors/property-editor-chartjs-hbar.js.map +0 -1
- package/dist/editors/property-editor-chartjs-mixed.d.ts +0 -17
- package/dist/editors/property-editor-chartjs-mixed.js +0 -186
- package/dist/editors/property-editor-chartjs-mixed.js.map +0 -1
- package/dist/editors/property-editor-chartjs-multi-series-abstract.d.ts +0 -29
- package/dist/editors/property-editor-chartjs-multi-series-abstract.js +0 -363
- package/dist/editors/property-editor-chartjs-multi-series-abstract.js.map +0 -1
- package/dist/editors/property-editor-chartjs-pie.d.ts +0 -18
- package/dist/editors/property-editor-chartjs-pie.js +0 -74
- package/dist/editors/property-editor-chartjs-pie.js.map +0 -1
- package/dist/editors/property-editor-chartjs-radar.d.ts +0 -8
- package/dist/editors/property-editor-chartjs-radar.js +0 -36
- package/dist/editors/property-editor-chartjs-radar.js.map +0 -1
- package/dist/editors/property-editor-chartjs-styles.d.ts +0 -1
- package/dist/editors/property-editor-chartjs-styles.js +0 -167
- package/dist/editors/property-editor-chartjs-styles.js.map +0 -1
- package/dist/editors/property-editor-chartjs.d.ts +0 -10
- package/dist/editors/property-editor-chartjs.js +0 -79
- package/dist/editors/property-editor-chartjs.js.map +0 -1
- package/src/editors/property-editor-chartjs-abstract.ts +0 -324
- package/src/editors/property-editor-chartjs-hbar.ts +0 -157
- package/src/editors/property-editor-chartjs-mixed.ts +0 -199
- package/src/editors/property-editor-chartjs-multi-series-abstract.ts +0 -382
- package/src/editors/property-editor-chartjs-pie.ts +0 -86
- package/src/editors/property-editor-chartjs-radar.ts +0 -39
- package/src/editors/property-editor-chartjs-styles.ts +0 -167
- package/src/editors/property-editor-chartjs.ts +0 -79
@@ -1,154 +0,0 @@
|
|
1
|
-
import { __decorate } from "tslib";
|
2
|
-
import '@material/web/icon/icon.js';
|
3
|
-
import '@material/web/button/elevated-button.js';
|
4
|
-
import '@material/web/tabs/tabs.js';
|
5
|
-
import '@operato/i18n/ox-i18n.js';
|
6
|
-
import { html } from 'lit';
|
7
|
-
import { customElement } from 'lit/decorators.js';
|
8
|
-
import PropertyEditorChartJSMultiSeriesAbstract from './property-editor-chartjs-multi-series-abstract';
|
9
|
-
let PropertyEditorChartJSHBar = class PropertyEditorChartJSHBar extends PropertyEditorChartJSMultiSeriesAbstract {
|
10
|
-
editorTemplate() {
|
11
|
-
return html `
|
12
|
-
<legend><ox-i18n msgid="label.series">Series</ox-i18n></legend>
|
13
|
-
${this.multiSeriesTabTemplate()}
|
14
|
-
|
15
|
-
<legend><ox-i18n msgid="label.y-axes">Y Axes</ox-i18n></legend>
|
16
|
-
|
17
|
-
<label> <ox-i18n msgid="label.data-key">Data Key</ox-i18n> </label>
|
18
|
-
<input type="text" value-key="labelDataKey" .value=${this.labelDataKey} />
|
19
|
-
|
20
|
-
<label> <ox-i18n msgid="label.title">Title</ox-i18n> </label>
|
21
|
-
<input type="text" value-key="yAxes0.axisTitle" .value=${this.yAxes0.axisTitle || ''} />
|
22
|
-
|
23
|
-
<label><ox-i18n msgid="label.bar-spacing">Bar Spacing</ox-i18n></label>
|
24
|
-
<input
|
25
|
-
type="number"
|
26
|
-
min="0"
|
27
|
-
max="1"
|
28
|
-
step="0.1"
|
29
|
-
value-key="yAxes0.barSpacing"
|
30
|
-
.value=${this.yAxes0.barSpacing || NaN}
|
31
|
-
/>
|
32
|
-
<label><ox-i18n msgid="label.tick-spacing">Tick Spacing</ox-i18n></label>
|
33
|
-
<input
|
34
|
-
type="number"
|
35
|
-
min="0"
|
36
|
-
max="1"
|
37
|
-
step="0.1"
|
38
|
-
value-key="yAxes0.categorySpacing"
|
39
|
-
.value=${this.yAxes0.categorySpacing || NaN}
|
40
|
-
/>
|
41
|
-
|
42
|
-
<input type="checkbox" value-key="value.options.xGridLine" .checked=${this.value.options.xGridLine} />
|
43
|
-
<label> <ox-i18n msgid="label.grid-line">Grid Line</ox-i18n> </label>
|
44
|
-
|
45
|
-
<input type="checkbox" value-key="xAxes0.ticks.display" .checked=${this.xAxes0.ticks.display} />
|
46
|
-
<label> <ox-i18n msgid="label.display-tick">Display Tick</ox-i18n> </label>
|
47
|
-
|
48
|
-
<legend><ox-i18n msgid="label.x-axes">X Axes</ox-i18n></legend>
|
49
|
-
|
50
|
-
<label> <ox-i18n msgid="label.title">Title</ox-i18n> </label>
|
51
|
-
<input type="text" value-key="xAxes0.title" .value=${this.xAxes0.axisTitle || ''} />
|
52
|
-
|
53
|
-
<input type="checkbox" value-key="xAxes0.ticks.autoMin" .checked=${this.xAxes0.ticks.autoMin} />
|
54
|
-
<label> <ox-i18n msgid="label.axis-min-auto">Axis Min Auto</ox-i18n> </label>
|
55
|
-
|
56
|
-
<input type="checkbox" value-key="xAxes0.ticks.autoMax" .checked=${this.xAxes0.ticks.autoMax} />
|
57
|
-
<label> <ox-i18n msgid="label.axis-max-auto">Axis Max Auto</ox-i18n> </label>
|
58
|
-
|
59
|
-
${!this.xAxes0.ticks.autoMin
|
60
|
-
? html `
|
61
|
-
<label> <ox-i18n msgid="label.axis-min">Axis Min</ox-i18n> </label>
|
62
|
-
<input type="number" value-key="xAxes0.ticks.min" .value=${this.xAxes0.ticks.min} />
|
63
|
-
`
|
64
|
-
: html ``}
|
65
|
-
${!this.xAxes0.ticks.autoMax
|
66
|
-
? html `
|
67
|
-
<label> <ox-i18n msgid="label.axis-max">Axis Max</ox-i18n> </label>
|
68
|
-
<input type="number" value-key="xAxes0.ticks.max" .value=${this.xAxes0.ticks.max} />
|
69
|
-
`
|
70
|
-
: html ``}
|
71
|
-
|
72
|
-
<label> <ox-i18n msgid="label.axis-step-size">Axis Step Size</ox-i18n> </label>
|
73
|
-
<input type="number" value-key="yAxes0.ticks.stepSize" .value=${this.yAxes0.ticks.stepSize} />
|
74
|
-
|
75
|
-
<input type="checkbox" .checked=${this.value.options.yGridLine} />
|
76
|
-
<label> <ox-i18n msgid="label.grid-line">Grid Line</ox-i18n> </label>
|
77
|
-
|
78
|
-
<input type="checkbox" value-key="yAxes0.ticks.display" .checked=${this.yAxes0.ticks.display} />
|
79
|
-
<label> <ox-i18n msgid="label.display-tick">Display Tick</ox-i18n> </label>
|
80
|
-
`;
|
81
|
-
}
|
82
|
-
multiSeriesTabTemplate() {
|
83
|
-
return html `
|
84
|
-
<div id="series-properties-container" fullwidth>
|
85
|
-
<div id="tab-header">
|
86
|
-
<md-icon
|
87
|
-
id="tab-nav-left-button"
|
88
|
-
@tap=${(e) => {
|
89
|
-
this._onTabScrollNavLeft(e);
|
90
|
-
}}
|
91
|
-
disabled
|
92
|
-
>chevron_left</md-icon
|
93
|
-
>
|
94
|
-
<div
|
95
|
-
id="tabs"
|
96
|
-
@change=${(e) => {
|
97
|
-
this.currentSeriesIndex = e.target.activeTabIndex;
|
98
|
-
}}
|
99
|
-
active-tab-index=${this.currentSeriesIndex}
|
100
|
-
fit-container
|
101
|
-
>
|
102
|
-
${this.datasets.map((dataset, index) => html `
|
103
|
-
<div
|
104
|
-
data-series=${index + 1}
|
105
|
-
data-tab-index=${index}
|
106
|
-
tab
|
107
|
-
?selected=${index == this.currentSeriesIndex}
|
108
|
-
@click=${(e) => {
|
109
|
-
const target = e.target;
|
110
|
-
this.currentSeriesIndex = Number(target.getAttribute('data-tab-index'));
|
111
|
-
}}
|
112
|
-
>
|
113
|
-
${index + 1}
|
114
|
-
${!this.datasets || (this.datasets.length != 1 && this.currentSeriesIndex == index)
|
115
|
-
? html ` <md-icon @tap="${(e) => this.onTapRemoveCurrentTab(e)}"> close </md-icon> `
|
116
|
-
: html ``}
|
117
|
-
</div>
|
118
|
-
`)}
|
119
|
-
</div>
|
120
|
-
<md-icon
|
121
|
-
id="tab-nav-right-button"
|
122
|
-
@click=${(e) => {
|
123
|
-
this._onTabScrollNavRight(e);
|
124
|
-
}}
|
125
|
-
disabled
|
126
|
-
>chevron_right</md-icon
|
127
|
-
>
|
128
|
-
</div>
|
129
|
-
<div id="add-series-button-container">
|
130
|
-
<md-icon id="add-series-button" @tap=${(e) => this.onTapAddTab(e)}>add</md-icon>
|
131
|
-
</div>
|
132
|
-
|
133
|
-
<div class="tab-content">
|
134
|
-
<label> <ox-i18n msgid="label.data-key">Data Key</ox-i18n> </label>
|
135
|
-
<input type="text" value-key="dataKey" .value=${this.dataKey} />
|
136
|
-
<label> <ox-i18n msgid="label.label">Label</ox-i18n> </label>
|
137
|
-
<input type="text" value-key="series.label" .value=${this.series.label} />
|
138
|
-
<label> <ox-i18n msgid="label.color">Color</ox-i18n> </label>
|
139
|
-
<ox-input-color value-key="color" .value=${this.color}></ox-input-color>
|
140
|
-
<label> <ox-i18n msgid="label.stack-group">Stack Group</ox-i18n> </label>
|
141
|
-
<input type="text" value-key="series.stack" .value=${this.series.stack || ''} />
|
142
|
-
|
143
|
-
${this.displayValueTemplate()}
|
144
|
-
</div>
|
145
|
-
</div>
|
146
|
-
`;
|
147
|
-
}
|
148
|
-
};
|
149
|
-
PropertyEditorChartJSHBar.styles = [...PropertyEditorChartJSMultiSeriesAbstract.styles];
|
150
|
-
PropertyEditorChartJSHBar = __decorate([
|
151
|
-
customElement('property-editor-chartjs-hbar')
|
152
|
-
], PropertyEditorChartJSHBar);
|
153
|
-
export default PropertyEditorChartJSHBar;
|
154
|
-
//# sourceMappingURL=property-editor-chartjs-hbar.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"property-editor-chartjs-hbar.js","sourceRoot":"","sources":["../../src/editors/property-editor-chartjs-hbar.ts"],"names":[],"mappings":";AAAA,OAAO,4BAA4B,CAAA;AACnC,OAAO,yCAAyC,CAAA;AAChD,OAAO,4BAA4B,CAAA;AAEnC,OAAO,0BAA0B,CAAA;AAEjC,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,CAAA;AAC1B,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AAEjD,OAAO,wCAAwC,MAAM,iDAAiD,CAAA;AAGvF,IAAM,yBAAyB,GAA/B,MAAM,yBAA0B,SAAQ,wCAAwC;IAG7F,cAAc;QACZ,OAAO,IAAI,CAAA;;QAEP,IAAI,CAAC,sBAAsB,EAAE;;;;;2DAKsB,IAAI,CAAC,YAAY;;;+DAGb,IAAI,CAAC,MAAM,CAAC,SAAS,IAAI,EAAE;;;;;;;;;iBASzE,IAAI,CAAC,MAAM,CAAC,UAAU,IAAI,GAAG;;;;;;;;;iBAS7B,IAAI,CAAC,MAAM,CAAC,eAAe,IAAI,GAAG;;;4EAGyB,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,SAAS;;;yEAG/B,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,OAAO;;;;;;2DAMvC,IAAI,CAAC,MAAM,CAAC,SAAS,IAAI,EAAE;;yEAEb,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,OAAO;;;yEAGzB,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,OAAO;;;QAG1F,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,OAAO;YAC1B,CAAC,CAAC,IAAI,CAAA;;uEAEyD,IAAI,CAAC,MAAM,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CAAC;YACjF,CAAC,CAAC,IAAI,CAAA,mBAAmB,CAAC,CAAQ,EAAE,EAAE,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC,CAAC,sBAAsB;YAC1F,CAAC,CAAC,IAAI,CAAA,EAAE;;eAEb,CACF;;;;qBAIQ,CAAC,CAAQ,EAAE,EAAE;YACpB,IAAI,CAAC,oBAAoB,CAAC,CAAC,CAAC,CAAA;QAC9B,CAAC;;;;;;iDAMoC,CAAC,CAAQ,EAAE,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;;;;;0DAKxB,IAAI,CAAC,OAAO;;+DAEP,IAAI,CAAC,MAAM,CAAC,KAAK;;qDAE3B,IAAI,CAAC,KAAK;;+DAEA,IAAI,CAAC,MAAM,CAAC,KAAK,IAAI,EAAE;;YAE1E,IAAI,CAAC,oBAAoB,EAAE;;;KAGlC,CAAA;IACH,CAAC;;AA9IM,gCAAM,GAAG,CAAC,GAAG,wCAAwC,CAAC,MAAM,CAAC,AAAvD,CAAuD;AADjD,yBAAyB;IAD7C,aAAa,CAAC,8BAA8B,CAAC;GACzB,yBAAyB,CAgJ7C;eAhJoB,yBAAyB","sourcesContent":["import '@material/web/icon/icon.js'\nimport '@material/web/button/elevated-button.js'\nimport '@material/web/tabs/tabs.js'\n\nimport '@operato/i18n/ox-i18n.js'\n\nimport { html } from 'lit'\nimport { customElement } from 'lit/decorators.js'\n\nimport PropertyEditorChartJSMultiSeriesAbstract from './property-editor-chartjs-multi-series-abstract'\n\n@customElement('property-editor-chartjs-hbar')\nexport default class PropertyEditorChartJSHBar extends PropertyEditorChartJSMultiSeriesAbstract {\n static styles = [...PropertyEditorChartJSMultiSeriesAbstract.styles]\n\n editorTemplate() {\n return html`\n <legend><ox-i18n msgid=\"label.series\">Series</ox-i18n></legend>\n ${this.multiSeriesTabTemplate()}\n\n <legend><ox-i18n msgid=\"label.y-axes\">Y Axes</ox-i18n></legend>\n\n <label> <ox-i18n msgid=\"label.data-key\">Data Key</ox-i18n> </label>\n <input type=\"text\" value-key=\"labelDataKey\" .value=${this.labelDataKey} />\n\n <label> <ox-i18n msgid=\"label.title\">Title</ox-i18n> </label>\n <input type=\"text\" value-key=\"yAxes0.axisTitle\" .value=${this.yAxes0.axisTitle || ''} />\n\n <label><ox-i18n msgid=\"label.bar-spacing\">Bar Spacing</ox-i18n></label>\n <input\n type=\"number\"\n min=\"0\"\n max=\"1\"\n step=\"0.1\"\n value-key=\"yAxes0.barSpacing\"\n .value=${this.yAxes0.barSpacing || NaN}\n />\n <label><ox-i18n msgid=\"label.tick-spacing\">Tick Spacing</ox-i18n></label>\n <input\n type=\"number\"\n min=\"0\"\n max=\"1\"\n step=\"0.1\"\n value-key=\"yAxes0.categorySpacing\"\n .value=${this.yAxes0.categorySpacing || NaN}\n />\n\n <input type=\"checkbox\" value-key=\"value.options.xGridLine\" .checked=${this.value.options.xGridLine} />\n <label> <ox-i18n msgid=\"label.grid-line\">Grid Line</ox-i18n> </label>\n\n <input type=\"checkbox\" value-key=\"xAxes0.ticks.display\" .checked=${this.xAxes0.ticks.display} />\n <label> <ox-i18n msgid=\"label.display-tick\">Display Tick</ox-i18n> </label>\n\n <legend><ox-i18n msgid=\"label.x-axes\">X Axes</ox-i18n></legend>\n\n <label> <ox-i18n msgid=\"label.title\">Title</ox-i18n> </label>\n <input type=\"text\" value-key=\"xAxes0.title\" .value=${this.xAxes0.axisTitle || ''} />\n\n <input type=\"checkbox\" value-key=\"xAxes0.ticks.autoMin\" .checked=${this.xAxes0.ticks.autoMin} />\n <label> <ox-i18n msgid=\"label.axis-min-auto\">Axis Min Auto</ox-i18n> </label>\n\n <input type=\"checkbox\" value-key=\"xAxes0.ticks.autoMax\" .checked=${this.xAxes0.ticks.autoMax} />\n <label> <ox-i18n msgid=\"label.axis-max-auto\">Axis Max Auto</ox-i18n> </label>\n\n ${!this.xAxes0.ticks.autoMin\n ? html`\n <label> <ox-i18n msgid=\"label.axis-min\">Axis Min</ox-i18n> </label>\n <input type=\"number\" value-key=\"xAxes0.ticks.min\" .value=${this.xAxes0.ticks.min} />\n `\n : html``}\n ${!this.xAxes0.ticks.autoMax\n ? html`\n <label> <ox-i18n msgid=\"label.axis-max\">Axis Max</ox-i18n> </label>\n <input type=\"number\" value-key=\"xAxes0.ticks.max\" .value=${this.xAxes0.ticks.max} />\n `\n : html``}\n\n <label> <ox-i18n msgid=\"label.axis-step-size\">Axis Step Size</ox-i18n> </label>\n <input type=\"number\" value-key=\"yAxes0.ticks.stepSize\" .value=${this.yAxes0.ticks.stepSize} />\n\n <input type=\"checkbox\" .checked=${this.value.options.yGridLine} />\n <label> <ox-i18n msgid=\"label.grid-line\">Grid Line</ox-i18n> </label>\n\n <input type=\"checkbox\" value-key=\"yAxes0.ticks.display\" .checked=${this.yAxes0.ticks.display} />\n <label> <ox-i18n msgid=\"label.display-tick\">Display Tick</ox-i18n> </label>\n `\n }\n\n multiSeriesTabTemplate() {\n return html`\n <div id=\"series-properties-container\" fullwidth>\n <div id=\"tab-header\">\n <md-icon\n id=\"tab-nav-left-button\"\n @tap=${(e: Event) => {\n this._onTabScrollNavLeft(e)\n }}\n disabled\n >chevron_left</md-icon\n >\n <div\n id=\"tabs\"\n @change=${(e: Event) => {\n this.currentSeriesIndex = (e.target as any).activeTabIndex\n }}\n active-tab-index=${this.currentSeriesIndex}\n fit-container\n >\n ${this.datasets.map(\n (dataset: any, index: number) => html`\n <div\n data-series=${index + 1}\n data-tab-index=${index}\n tab\n ?selected=${index == this.currentSeriesIndex}\n @click=${(e: Event) => {\n const target = e.target as HTMLDivElement\n this.currentSeriesIndex = Number(target.getAttribute('data-tab-index'))\n }}\n >\n ${index + 1}\n ${!this.datasets || (this.datasets.length != 1 && this.currentSeriesIndex == index)\n ? html` <md-icon @tap=\"${(e: Event) => this.onTapRemoveCurrentTab(e)}\"> close </md-icon> `\n : html``}\n </div>\n `\n )}\n </div>\n <md-icon\n id=\"tab-nav-right-button\"\n @click=${(e: Event) => {\n this._onTabScrollNavRight(e)\n }}\n disabled\n >chevron_right</md-icon\n >\n </div>\n <div id=\"add-series-button-container\">\n <md-icon id=\"add-series-button\" @tap=${(e: Event) => this.onTapAddTab(e)}>add</md-icon>\n </div>\n\n <div class=\"tab-content\">\n <label> <ox-i18n msgid=\"label.data-key\">Data Key</ox-i18n> </label>\n <input type=\"text\" value-key=\"dataKey\" .value=${this.dataKey} />\n <label> <ox-i18n msgid=\"label.label\">Label</ox-i18n> </label>\n <input type=\"text\" value-key=\"series.label\" .value=${this.series.label} />\n <label> <ox-i18n msgid=\"label.color\">Color</ox-i18n> </label>\n <ox-input-color value-key=\"color\" .value=${this.color}></ox-input-color>\n <label> <ox-i18n msgid=\"label.stack-group\">Stack Group</ox-i18n> </label>\n <input type=\"text\" value-key=\"series.stack\" .value=${this.series.stack || ''} />\n\n ${this.displayValueTemplate()}\n </div>\n </div>\n `\n }\n}\n"]}
|
@@ -1,17 +0,0 @@
|
|
1
|
-
import '@operato/i18n/ox-i18n.js';
|
2
|
-
import { Properties } from '@hatiolab/things-scene';
|
3
|
-
import PropertyEditorChartJSMultiSeriesAbstract from './property-editor-chartjs-multi-series-abstract';
|
4
|
-
export default class PropertyEditorChartJSMixed extends PropertyEditorChartJSMultiSeriesAbstract {
|
5
|
-
static styles: import("lit").CSSResult[];
|
6
|
-
constructor();
|
7
|
-
get xAxes0(): any;
|
8
|
-
set xAxes0(xAxes0: any);
|
9
|
-
get yAxes0(): any;
|
10
|
-
set yAxes0(yAxes0: any);
|
11
|
-
get yAxes1(): any;
|
12
|
-
set yAxes1(yAxes1: any);
|
13
|
-
get multiAxis(): any;
|
14
|
-
set multiAxis(multiAxis: any);
|
15
|
-
editorTemplate(props: Properties): import("lit-html").TemplateResult<1>;
|
16
|
-
_hasBarSeries(chart: any): boolean;
|
17
|
-
}
|
@@ -1,186 +0,0 @@
|
|
1
|
-
import { __decorate } from "tslib";
|
2
|
-
import '@operato/i18n/ox-i18n.js';
|
3
|
-
import { html } from 'lit';
|
4
|
-
import { customElement } from 'lit/decorators.js';
|
5
|
-
import PropertyEditorChartJSMultiSeriesAbstract from './property-editor-chartjs-multi-series-abstract';
|
6
|
-
let PropertyEditorChartJSMixed = class PropertyEditorChartJSMixed extends PropertyEditorChartJSMultiSeriesAbstract {
|
7
|
-
constructor() {
|
8
|
-
super();
|
9
|
-
this.value = {
|
10
|
-
options: {
|
11
|
-
legend: {},
|
12
|
-
scales: {
|
13
|
-
xAxes: [
|
14
|
-
{
|
15
|
-
ticks: {}
|
16
|
-
}
|
17
|
-
],
|
18
|
-
yAxes: [
|
19
|
-
{
|
20
|
-
ticks: {}
|
21
|
-
}
|
22
|
-
]
|
23
|
-
}
|
24
|
-
},
|
25
|
-
data: {
|
26
|
-
datasets: []
|
27
|
-
}
|
28
|
-
};
|
29
|
-
}
|
30
|
-
get xAxes0() {
|
31
|
-
return this.scales.xAxes[0];
|
32
|
-
}
|
33
|
-
set xAxes0(xAxes0) {
|
34
|
-
this.scales.xAxes[0] = xAxes0;
|
35
|
-
}
|
36
|
-
get yAxes0() {
|
37
|
-
return this.scales.yAxes[0];
|
38
|
-
}
|
39
|
-
set yAxes0(yAxes0) {
|
40
|
-
this.scales.yAxes[0] = yAxes0;
|
41
|
-
}
|
42
|
-
get yAxes1() {
|
43
|
-
return this.scales.yAxes[1];
|
44
|
-
}
|
45
|
-
set yAxes1(yAxes1) {
|
46
|
-
this.scales.yAxes[1] = yAxes1;
|
47
|
-
}
|
48
|
-
get multiAxis() {
|
49
|
-
return this.value.options.multiAxis;
|
50
|
-
}
|
51
|
-
set multiAxis(multiAxis) {
|
52
|
-
this.value.options.multiAxis = multiAxis;
|
53
|
-
}
|
54
|
-
editorTemplate(props) {
|
55
|
-
return html `
|
56
|
-
<input type="checkbox" value-key="multiAxis" .checked=${this.multiAxis} />
|
57
|
-
<label> <ox-i18n msgid="label.multi-axis">Multi Axis</ox-i18n> </label>
|
58
|
-
|
59
|
-
<legend><ox-i18n msgid="label.series">Series</ox-i18n></legend>
|
60
|
-
|
61
|
-
<div fullwidth>${this.multiSeriesTabTemplate()}</div>
|
62
|
-
|
63
|
-
<legend><ox-i18n msgid="label.x-axes">X Axes</ox-i18n></legend>
|
64
|
-
|
65
|
-
<label> <ox-i18n msgid="label.data-key">Data Key</ox-i18n> </label>
|
66
|
-
<input type="text" value-key="labelDataKey" .value=${this.labelDataKey} />
|
67
|
-
|
68
|
-
<label> <ox-i18n msgid="label.title">Title</ox-i18n> </label>
|
69
|
-
<input type="text" value-key="xAxes0.axisTitle" .value=${this.xAxes0.axisTitle || ''} />
|
70
|
-
|
71
|
-
${this._hasBarSeries(this.value)
|
72
|
-
? html `
|
73
|
-
<label><ox-i18n msgid="label.bar-spacing">Bar Spacing</ox-i18n></label>
|
74
|
-
<input
|
75
|
-
type="number"
|
76
|
-
min="0"
|
77
|
-
max="1"
|
78
|
-
step="0.1"
|
79
|
-
value-key="xAxes0.barSpacing"
|
80
|
-
.value=${this.xAxes0.barSpacing || NaN}
|
81
|
-
/>
|
82
|
-
<label><ox-i18n msgid="label.tick-spacing">Tick Spacing</ox-i18n></label>
|
83
|
-
<input
|
84
|
-
type="number"
|
85
|
-
min="0"
|
86
|
-
max="1"
|
87
|
-
step="0.1"
|
88
|
-
value-key="xAxes0.categorySpacing"
|
89
|
-
.value=${this.xAxes0.categorySpacing || NaN}
|
90
|
-
/>
|
91
|
-
`
|
92
|
-
: html ``}
|
93
|
-
|
94
|
-
<input type="checkbox" value-key="value.options.xGridLine" .checked=${props.value.options.xGridLine} />
|
95
|
-
<label> <ox-i18n msgid="label.grid-line">Grid Line</ox-i18n> </label>
|
96
|
-
|
97
|
-
<input type="checkbox" value-key="xAxes0.ticks.display" .checked=${this.xAxes0.ticks.display} />
|
98
|
-
<label> <ox-i18n msgid="label.display-tick">Display Tick</ox-i18n> </label>
|
99
|
-
|
100
|
-
<legend><ox-i18n msgid="label.y-axes">Y Axes</ox-i18n></legend>
|
101
|
-
|
102
|
-
<label> <ox-i18n msgid="label.title">Title</ox-i18n> </label>
|
103
|
-
<input type="text" value-key="yAxes0.axisTitle" .value=${this.yAxes0.axisTitle || ''} />
|
104
|
-
|
105
|
-
<input type="checkbox" value-key="yAxes0.ticks.autoMin" .checked=${this.yAxes0.ticks.autoMin} />
|
106
|
-
<label> <ox-i18n msgid="label.axis-min-auto">Min Auto</ox-i18n> </label>
|
107
|
-
|
108
|
-
<input type="checkbox" value-key="yAxes0.ticks.autoMax" .checked=${this.yAxes0.ticks.autoMax} />
|
109
|
-
<label> <ox-i18n msgid="label.axis-max-auto">Max Auto</ox-i18n> </label>
|
110
|
-
|
111
|
-
${!this.yAxes0.ticks.autoMin
|
112
|
-
? html `
|
113
|
-
<label> <ox-i18n msgid="label.axis-min">Min</ox-i18n> </label>
|
114
|
-
<input type="number" value-key="yAxes0.ticks.min" .value=${this.yAxes0.ticks.min} />
|
115
|
-
`
|
116
|
-
: html ``}
|
117
|
-
${!this.yAxes0.ticks.autoMax
|
118
|
-
? html `
|
119
|
-
<label> <ox-i18n msgid="label.axis-max">Max</ox-i18n> </label>
|
120
|
-
<input type="number" value-key="yAxes0.ticks.max" .value=${this.yAxes0.ticks.max} />
|
121
|
-
`
|
122
|
-
: html ``}
|
123
|
-
|
124
|
-
<label> <ox-i18n msgid="label.axis-step-size">StepSize</ox-i18n> </label>
|
125
|
-
<input type="number" value-key="yAxes0.ticks.stepSize" .value=${this.yAxes0.ticks.stepSize} />
|
126
|
-
|
127
|
-
<input type="checkbox" value-key="value.options.yGridLine" .checked=${props.value.options.yGridLine} />
|
128
|
-
<label> <ox-i18n msgid="label.grid-line">Grid Line</ox-i18n> </label>
|
129
|
-
|
130
|
-
<input type="checkbox" value-key="yAxes0.ticks.display" .checked=${this.yAxes0.ticks.display} />
|
131
|
-
<label> <ox-i18n msgid="label.display-tick">Display Tick</ox-i18n> </label>
|
132
|
-
|
133
|
-
${props.value.options.multiAxis
|
134
|
-
? html `
|
135
|
-
<legend><ox-i18n msgid="label.y-2nd-axes">Y 2nd Axes</ox-i18n></legend>
|
136
|
-
|
137
|
-
<label> <ox-i18n msgid="label.title">Title</ox-i18n> </label>
|
138
|
-
<input type="text" value-key="yAxes1.axisTitle" .value=${this.yAxes1.axisTitle || ''} />
|
139
|
-
|
140
|
-
<input type="checkbox" value-key="yAxes1.ticks.autoMin" .checked=${this.yAxes1.ticks.autoMin} />
|
141
|
-
<label> <ox-i18n msgid="label.axis-min-auto">Min Auto</ox-i18n> </label>
|
142
|
-
|
143
|
-
<input type="checkbox" value-key="yAxes1.ticks.autoMax" .checked=${this.yAxes1.ticks.autoMax} />
|
144
|
-
<label> <ox-i18n msgid="label.axis-max-auto">Max Auto</ox-i18n> </label>
|
145
|
-
|
146
|
-
${!this.yAxes1.ticks.autoMin
|
147
|
-
? html `
|
148
|
-
<label> <ox-i18n msgid="label.axis-min">Min</ox-i18n> </label>
|
149
|
-
<input type="number" value-key="yAxes1.ticks.min" .value=${this.yAxes1.ticks.min} />
|
150
|
-
`
|
151
|
-
: html ``}
|
152
|
-
${!this.yAxes1.ticks.autoMax
|
153
|
-
? html `
|
154
|
-
<label> <ox-i18n msgid="label.axis-max">Max</ox-i18n> </label>
|
155
|
-
<input type="number" value-key="yAxes1.ticks.max" .value=${this.yAxes1.ticks.max} />
|
156
|
-
`
|
157
|
-
: html ``}
|
158
|
-
|
159
|
-
<label> <ox-i18n msgid="label.axis-step-size">StepSize</ox-i18n> </label>
|
160
|
-
<input type="number" value-key="yAxes1.ticks.stepSize" .value=${this.yAxes1.ticks.stepSize} />
|
161
|
-
|
162
|
-
<input
|
163
|
-
type="checkbox"
|
164
|
-
value-key="value.options.y2ndGridLine"
|
165
|
-
.checked=${props.value.options.y2ndGridLine}
|
166
|
-
/>
|
167
|
-
<label> <ox-i18n msgid="label.grid-line">Grid Line</ox-i18n> </label>
|
168
|
-
|
169
|
-
<input type="checkbox" value-key="yAxes1.ticks.display" .checked=${this.yAxes1.ticks.display} />
|
170
|
-
<label> <ox-i18n msgid="label.display-tick">Display Tick</ox-i18n> </label>
|
171
|
-
`
|
172
|
-
: html ``}
|
173
|
-
`;
|
174
|
-
}
|
175
|
-
_hasBarSeries(chart) {
|
176
|
-
var hasBarSeries = false;
|
177
|
-
hasBarSeries = chart.data.datasets.some((s) => s.type == 'bar');
|
178
|
-
return hasBarSeries;
|
179
|
-
}
|
180
|
-
};
|
181
|
-
PropertyEditorChartJSMixed.styles = PropertyEditorChartJSMultiSeriesAbstract.styles;
|
182
|
-
PropertyEditorChartJSMixed = __decorate([
|
183
|
-
customElement('property-editor-chartjs-mixed')
|
184
|
-
], PropertyEditorChartJSMixed);
|
185
|
-
export default PropertyEditorChartJSMixed;
|
186
|
-
//# sourceMappingURL=property-editor-chartjs-mixed.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"property-editor-chartjs-mixed.js","sourceRoot":"","sources":["../../src/editors/property-editor-chartjs-mixed.ts"],"names":[],"mappings":";AAAA,OAAO,0BAA0B,CAAA;AAEjC,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,CAAA;AAC1B,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AAIjD,OAAO,wCAAwC,MAAM,iDAAiD,CAAA;AAGvF,IAAM,0BAA0B,GAAhC,MAAM,0BAA2B,SAAQ,wCAAwC;IAG9F;QACE,KAAK,EAAE,CAAA;QAEP,IAAI,CAAC,KAAK,GAAG;YACX,OAAO,EAAE;gBACP,MAAM,EAAE,EAAE;gBACV,MAAM,EAAE;oBACN,KAAK,EAAE;wBACL;4BACE,KAAK,EAAE,EAAE;yBACV;qBACF;oBACD,KAAK,EAAE;wBACL;4BACE,KAAK,EAAE,EAAE;yBACV;qBACF;iBACF;aACF;YACD,IAAI,EAAE;gBACJ,QAAQ,EAAE,EAAE;aACb;SACF,CAAA;IACH,CAAC;IAED,IAAI,MAAM;QACR,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAA;IAC7B,CAAC;IAED,IAAI,MAAM,CAAC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C,MAAM,CAAC,KAAK,CAAC,GAAG;iBACjF;gBACH,CAAC,CAAC,IAAI,CAAA,EAAE;;;4EAGsD,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ;;;;;yBAK7E,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,YAAY;;;;+EAIsB,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,OAAO;;WAE7F;YACH,CAAC,CAAC,IAAI,CAAA,EAAE;KACX,CAAA;IACH,CAAC;IAED,aAAa,CAAC,KAAU;QACtB,IAAI,YAAY,GAAG,KAAK,CAAA;QACxB,YAAY,GAAG,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,IAAI,KAAK,CAAC,CAAA;QAEpE,OAAO,YAAY,CAAA;IACrB,CAAC;;AA1LM,iCAAM,GAAG,wCAAwC,CAAC,MAAM,AAAlD,CAAkD;AAD5C,0BAA0B;IAD9C,aAAa,CAAC,+BAA+B,CAAC;GAC1B,0BAA0B,CA4L9C;eA5LoB,0BAA0B","sourcesContent":["import '@operato/i18n/ox-i18n.js'\n\nimport { html } from 'lit'\nimport { customElement } from 'lit/decorators.js'\n\nimport { Properties } from '@hatiolab/things-scene'\n\nimport PropertyEditorChartJSMultiSeriesAbstract from './property-editor-chartjs-multi-series-abstract'\n\n@customElement('property-editor-chartjs-mixed')\nexport default class PropertyEditorChartJSMixed extends PropertyEditorChartJSMultiSeriesAbstract {\n static styles = PropertyEditorChartJSMultiSeriesAbstract.styles\n\n constructor() {\n super()\n\n this.value = {\n options: {\n legend: {},\n scales: {\n xAxes: [\n {\n ticks: {}\n }\n ],\n yAxes: [\n {\n ticks: {}\n }\n ]\n }\n },\n data: {\n datasets: []\n }\n }\n }\n\n get xAxes0() {\n return this.scales.xAxes[0]\n }\n\n set xAxes0(xAxes0) {\n this.scales.xAxes[0] = xAxes0\n }\n\n get yAxes0() {\n return this.scales.yAxes[0]\n }\n\n set yAxes0(yAxes0) {\n this.scales.yAxes[0] = yAxes0\n }\n\n get yAxes1() {\n return this.scales.yAxes[1]\n }\n\n set yAxes1(yAxes1) {\n this.scales.yAxes[1] = yAxes1\n }\n\n get multiAxis() {\n return this.value.options.multiAxis\n }\n\n set multiAxis(multiAxis) {\n this.value.options.multiAxis = multiAxis\n }\n\n editorTemplate(props: Properties) {\n return html`\n <input type=\"checkbox\" value-key=\"multiAxis\" .checked=${this.multiAxis} />\n <label> <ox-i18n msgid=\"label.multi-axis\">Multi Axis</ox-i18n> </label>\n\n <legend><ox-i18n msgid=\"label.series\">Series</ox-i18n></legend>\n\n <div fullwidth>${this.multiSeriesTabTemplate()}</div>\n\n <legend><ox-i18n msgid=\"label.x-axes\">X Axes</ox-i18n></legend>\n\n <label> <ox-i18n msgid=\"label.data-key\">Data Key</ox-i18n> </label>\n <input type=\"text\" value-key=\"labelDataKey\" .value=${this.labelDataKey} />\n\n <label> <ox-i18n msgid=\"label.title\">Title</ox-i18n> </label>\n <input type=\"text\" value-key=\"xAxes0.axisTitle\" .value=${this.xAxes0.axisTitle || ''} />\n\n ${this._hasBarSeries(this.value)\n ? html`\n <label><ox-i18n msgid=\"label.bar-spacing\">Bar Spacing</ox-i18n></label>\n <input\n type=\"number\"\n min=\"0\"\n max=\"1\"\n step=\"0.1\"\n value-key=\"xAxes0.barSpacing\"\n .value=${this.xAxes0.barSpacing || NaN}\n />\n <label><ox-i18n msgid=\"label.tick-spacing\">Tick Spacing</ox-i18n></label>\n <input\n type=\"number\"\n min=\"0\"\n max=\"1\"\n step=\"0.1\"\n value-key=\"xAxes0.categorySpacing\"\n .value=${this.xAxes0.categorySpacing || NaN}\n />\n `\n : html``}\n\n <input type=\"checkbox\" value-key=\"value.options.xGridLine\" .checked=${props.value.options.xGridLine} />\n <label> <ox-i18n msgid=\"label.grid-line\">Grid Line</ox-i18n> </label>\n\n <input type=\"checkbox\" value-key=\"xAxes0.ticks.display\" .checked=${this.xAxes0.ticks.display} />\n <label> <ox-i18n msgid=\"label.display-tick\">Display Tick</ox-i18n> </label>\n\n <legend><ox-i18n msgid=\"label.y-axes\">Y Axes</ox-i18n></legend>\n\n <label> <ox-i18n msgid=\"label.title\">Title</ox-i18n> </label>\n <input type=\"text\" value-key=\"yAxes0.axisTitle\" .value=${this.yAxes0.axisTitle || ''} />\n\n <input type=\"checkbox\" value-key=\"yAxes0.ticks.autoMin\" .checked=${this.yAxes0.ticks.autoMin} />\n <label> <ox-i18n msgid=\"label.axis-min-auto\">Min Auto</ox-i18n> </label>\n\n <input type=\"checkbox\" value-key=\"yAxes0.ticks.autoMax\" .checked=${this.yAxes0.ticks.autoMax} />\n <label> <ox-i18n msgid=\"label.axis-max-auto\">Max Auto</ox-i18n> </label>\n\n ${!this.yAxes0.ticks.autoMin\n ? html`\n <label> <ox-i18n msgid=\"label.axis-min\">Min</ox-i18n> </label>\n <input type=\"number\" value-key=\"yAxes0.ticks.min\" .value=${this.yAxes0.ticks.min} />\n `\n : html``}\n ${!this.yAxes0.ticks.autoMax\n ? html`\n <label> <ox-i18n msgid=\"label.axis-max\">Max</ox-i18n> </label>\n <input type=\"number\" value-key=\"yAxes0.ticks.max\" .value=${this.yAxes0.ticks.max} />\n `\n : html``}\n\n <label> <ox-i18n msgid=\"label.axis-step-size\">StepSize</ox-i18n> </label>\n <input type=\"number\" value-key=\"yAxes0.ticks.stepSize\" .value=${this.yAxes0.ticks.stepSize} />\n\n <input type=\"checkbox\" value-key=\"value.options.yGridLine\" .checked=${props.value.options.yGridLine} />\n <label> <ox-i18n msgid=\"label.grid-line\">Grid Line</ox-i18n> </label>\n\n <input type=\"checkbox\" value-key=\"yAxes0.ticks.display\" .checked=${this.yAxes0.ticks.display} />\n <label> <ox-i18n msgid=\"label.display-tick\">Display Tick</ox-i18n> </label>\n\n ${props.value.options.multiAxis\n ? html`\n <legend><ox-i18n msgid=\"label.y-2nd-axes\">Y 2nd Axes</ox-i18n></legend>\n\n <label> <ox-i18n msgid=\"label.title\">Title</ox-i18n> </label>\n <input type=\"text\" value-key=\"yAxes1.axisTitle\" .value=${this.yAxes1.axisTitle || ''} />\n\n <input type=\"checkbox\" value-key=\"yAxes1.ticks.autoMin\" .checked=${this.yAxes1.ticks.autoMin} />\n <label> <ox-i18n msgid=\"label.axis-min-auto\">Min Auto</ox-i18n> </label>\n\n <input type=\"checkbox\" value-key=\"yAxes1.ticks.autoMax\" .checked=${this.yAxes1.ticks.autoMax} />\n <label> <ox-i18n msgid=\"label.axis-max-auto\">Max Auto</ox-i18n> </label>\n\n ${!this.yAxes1.ticks.autoMin\n ? html`\n <label> <ox-i18n msgid=\"label.axis-min\">Min</ox-i18n> </label>\n <input type=\"number\" value-key=\"yAxes1.ticks.min\" .value=${this.yAxes1.ticks.min} />\n `\n : html``}\n ${!this.yAxes1.ticks.autoMax\n ? html`\n <label> <ox-i18n msgid=\"label.axis-max\">Max</ox-i18n> </label>\n <input type=\"number\" value-key=\"yAxes1.ticks.max\" .value=${this.yAxes1.ticks.max} />\n `\n : html``}\n\n <label> <ox-i18n msgid=\"label.axis-step-size\">StepSize</ox-i18n> </label>\n <input type=\"number\" value-key=\"yAxes1.ticks.stepSize\" .value=${this.yAxes1.ticks.stepSize} />\n\n <input\n type=\"checkbox\"\n value-key=\"value.options.y2ndGridLine\"\n .checked=${props.value.options.y2ndGridLine}\n />\n <label> <ox-i18n msgid=\"label.grid-line\">Grid Line</ox-i18n> </label>\n\n <input type=\"checkbox\" value-key=\"yAxes1.ticks.display\" .checked=${this.yAxes1.ticks.display} />\n <label> <ox-i18n msgid=\"label.display-tick\">Display Tick</ox-i18n> </label>\n `\n : html``}\n `\n }\n\n _hasBarSeries(chart: any) {\n var hasBarSeries = false\n hasBarSeries = chart.data.datasets.some((s: any) => s.type == 'bar')\n\n return hasBarSeries\n }\n}\n"]}
|
@@ -1,29 +0,0 @@
|
|
1
|
-
import '@material/web/icon/icon.js';
|
2
|
-
import '@operato/i18n/ox-i18n.js';
|
3
|
-
import { Properties } from '@hatiolab/things-scene';
|
4
|
-
import { MdIcon } from '@material/web/icon/icon.js';
|
5
|
-
import PropertyEditorChartJSAbstract from './property-editor-chartjs-abstract';
|
6
|
-
export default class PropertyEditorChartJSMultiSeriesAbstract extends PropertyEditorChartJSAbstract {
|
7
|
-
static styles: import("lit").CSSResult[];
|
8
|
-
constructor();
|
9
|
-
tabs: HTMLElement;
|
10
|
-
tabNavLeftButton: MdIcon;
|
11
|
-
tabNavRightButton: MdIcon;
|
12
|
-
get color(): any;
|
13
|
-
set color(color: any);
|
14
|
-
get xAxes0(): any;
|
15
|
-
set xAxes0(xAxes0: any);
|
16
|
-
get yAxes0(): any;
|
17
|
-
set yAxes0(yAxes0: any);
|
18
|
-
get yAxes1(): any;
|
19
|
-
set yAxes1(yAxes1: any);
|
20
|
-
get multiAxis(): any;
|
21
|
-
set multiAxis(multiAxis: any);
|
22
|
-
get tabContainer(): HTMLElement | null | undefined;
|
23
|
-
firstUpdated(): void;
|
24
|
-
editorTemplate(props: Properties): import("lit-html").TemplateResult<1>;
|
25
|
-
multiSeriesTabTemplate(): import("lit-html").TemplateResult<1>;
|
26
|
-
_onTabScroll(e: Event): void;
|
27
|
-
_onTabScrollNavLeft(e: Event): void;
|
28
|
-
_onTabScrollNavRight(e: Event): void;
|
29
|
-
}
|