@patternfly-java/charts 0.0.8 → 0.0.10
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/demo.html +11 -4
- package/dist/charts.js +56 -41
- package/dist/charts.js.map +1 -1
- package/dist/demo.html +83 -17
- package/package.json +1 -1
- package/src/charts.js +3 -3
- package/src/components/pfj-chart-bullet.js +93 -5
- package/src/react-wrapper.js +0 -13
package/dist/demo.html
CHANGED
|
@@ -61,7 +61,7 @@ h2 {
|
|
|
61
61
|
|
|
62
62
|
<section class="card">
|
|
63
63
|
<h2 class="pf-v5-c-title pf-m-lg">Bullet</h2>
|
|
64
|
-
<pfj-chart-bullet width="600" height="
|
|
64
|
+
<pfj-chart-bullet id="bullet-chart-0" width="600" height="120" aria-title="Bullet Chart" comparative-warning-measure-data="[{"name":"Warning","y":88}]" primary-segmented-measure-data="[{"name":"Measure","y":23},{"name":"Measure","y":60}]" max-domain="{"y":132}" qualitative-range-data="[{"name":"Range","y":50},{"name":"Range","y":75},{"name":"Range","y":100}]" padding="{"top": 0, "right": 20, "bottom": 10, "left": 80}" title="Threads"></pfj-chart-bullet>
|
|
65
65
|
</section>
|
|
66
66
|
|
|
67
67
|
<script>// modules are defined as an array
|
|
@@ -816,6 +816,10 @@ var _chartsJs = require("./src/charts.js");
|
|
|
816
816
|
utc.title = `${current}%`;
|
|
817
817
|
utc.subTitle = `${current} of 100 GBps`;
|
|
818
818
|
}, 1000);
|
|
819
|
+
await customElements.whenDefined('pfj-chart-bullet');
|
|
820
|
+
const bc = document.getElementById('bullet-chart-0');
|
|
821
|
+
if (bc?.updateComplete) await bc.updateComplete;
|
|
822
|
+
bc.labels = ({ datum })=>`${datum.name}: ${datum.y}`;
|
|
819
823
|
})();
|
|
820
824
|
|
|
821
825
|
},{"./src/charts.js":"kkiZQ"}],"kkiZQ":[function(require,module,exports,__globalThis) {
|
|
@@ -833,16 +837,20 @@ var _chartsJs = require("./src/charts.js");
|
|
|
833
837
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
834
838
|
* See the License for the specific language governing permissions and
|
|
835
839
|
* limitations under the License.
|
|
836
|
-
*/
|
|
840
|
+
*/ // Base class for the J2CL JsInterop base class org.patternfly.chart.ChartElement
|
|
841
|
+
var parcelHelpers = require("@parcel/transformer-js/src/esmodule-helpers.js");
|
|
837
842
|
parcelHelpers.defineInteropFlag(exports);
|
|
843
|
+
parcelHelpers.export(exports, "ChartBulletWebComponent", ()=>(0, _pfjChartBulletJs.ChartBulletWebComponent));
|
|
838
844
|
parcelHelpers.export(exports, "ChartDonutWebComponent", ()=>(0, _pfjChartDonutJs.ChartDonutWebComponent));
|
|
839
845
|
parcelHelpers.export(exports, "ChartDonutUtilizationWebComponent", ()=>(0, _pfjChartDonutUtilizationJs.ChartDonutUtilizationWebComponent));
|
|
840
846
|
parcelHelpers.export(exports, "ChartDonutThresholdWebComponent", ()=>(0, _pfjChartDonutThresholdJs.ChartDonutThresholdWebComponent));
|
|
841
|
-
|
|
847
|
+
var _pfjChartBulletJs = require("./components/pfj-chart-bullet.js");
|
|
842
848
|
var _pfjChartDonutJs = require("./components/pfj-chart-donut.js");
|
|
843
849
|
var _pfjChartDonutUtilizationJs = require("./components/pfj-chart-donut-utilization.js");
|
|
844
850
|
var _pfjChartDonutThresholdJs = require("./components/pfj-chart-donut-threshold.js");
|
|
845
|
-
|
|
851
|
+
class ChartElement extends HTMLElement {
|
|
852
|
+
}
|
|
853
|
+
window.ChartElement = ChartElement;
|
|
846
854
|
|
|
847
855
|
},{"./components/pfj-chart-donut.js":"bNmg7","./components/pfj-chart-donut-utilization.js":"gSeNk","./components/pfj-chart-donut-threshold.js":"7XBnQ","./components/pfj-chart-bullet.js":"3RKOW","@parcel/transformer-js/src/esmodule-helpers.js":"gkKU3"}],"bNmg7":[function(require,module,exports,__globalThis) {
|
|
848
856
|
/*
|
|
@@ -968,10 +976,10 @@ class ReactWrapperElement extends (0, _lit.LitElement) {
|
|
|
968
976
|
this._height = undefined; // number
|
|
969
977
|
this._labels = undefined; // (data: any) => string
|
|
970
978
|
this._legendAllowWrap = undefined; // boolean
|
|
971
|
-
this._legendData = undefined; // string[]
|
|
979
|
+
this._legendData = undefined; // { name?: string; symbol?: { fill?: string; type?: string; }; }[]
|
|
972
980
|
this._legendOrientation = undefined; // string
|
|
973
981
|
this._legendPosition = undefined; // string
|
|
974
|
-
this._padding = undefined; // { top?: number
|
|
982
|
+
this._padding = undefined; // { top?: number; bottom?: number; left?: number; right?: number }
|
|
975
983
|
this._subTitle = undefined; // string
|
|
976
984
|
this._subTitlePosition = undefined; // string
|
|
977
985
|
this._themeColor = undefined; // string
|
|
@@ -2695,7 +2703,7 @@ module.exports = require("a569817e6ea559f6");
|
|
|
2695
2703
|
exports.useTransition = function() {
|
|
2696
2704
|
return resolveDispatcher().useTransition();
|
|
2697
2705
|
};
|
|
2698
|
-
exports.version = "19.2.
|
|
2706
|
+
exports.version = "19.2.3";
|
|
2699
2707
|
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
2700
2708
|
})();
|
|
2701
2709
|
|
|
@@ -17817,7 +17825,7 @@ module.exports = require("2b53550ce04dc092");
|
|
|
17817
17825
|
};
|
|
17818
17826
|
(function() {
|
|
17819
17827
|
var isomorphicReactPackageVersion = React.version;
|
|
17820
|
-
if ("19.2.
|
|
17828
|
+
if ("19.2.3" !== isomorphicReactPackageVersion) throw Error('Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion + "\n - react-dom: 19.2.3\nLearn more: https://react.dev/warnings/version-mismatch"));
|
|
17821
17829
|
})();
|
|
17822
17830
|
"function" === typeof Map && null != Map.prototype && "function" === typeof Map.prototype.forEach && "function" === typeof Set && null != Set.prototype && "function" === typeof Set.prototype.clear && "function" === typeof Set.prototype.forEach || console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://react.dev/link/react-polyfills");
|
|
17823
17831
|
ReactDOMSharedInternals.findDOMNode = function(componentOrElement) {
|
|
@@ -17835,10 +17843,10 @@ module.exports = require("2b53550ce04dc092");
|
|
|
17835
17843
|
if (!function() {
|
|
17836
17844
|
var internals = {
|
|
17837
17845
|
bundleType: 1,
|
|
17838
|
-
version: "19.2.
|
|
17846
|
+
version: "19.2.3",
|
|
17839
17847
|
rendererPackageName: "react-dom",
|
|
17840
17848
|
currentDispatcherRef: ReactSharedInternals,
|
|
17841
|
-
reconcilerVersion: "19.2.
|
|
17849
|
+
reconcilerVersion: "19.2.3"
|
|
17842
17850
|
};
|
|
17843
17851
|
internals.overrideHookState = overrideHookState;
|
|
17844
17852
|
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
|
|
@@ -17892,7 +17900,7 @@ module.exports = require("2b53550ce04dc092");
|
|
|
17892
17900
|
listenToAllSupportedEvents(container);
|
|
17893
17901
|
return new ReactDOMHydrationRoot(initialChildren);
|
|
17894
17902
|
};
|
|
17895
|
-
exports.version = "19.2.
|
|
17903
|
+
exports.version = "19.2.3";
|
|
17896
17904
|
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
17897
17905
|
})();
|
|
17898
17906
|
|
|
@@ -18336,7 +18344,7 @@ module.exports = require("b0f0e6b9e8349dac");
|
|
|
18336
18344
|
exports.useFormStatus = function() {
|
|
18337
18345
|
return resolveDispatcher().useHostTransitionStatus();
|
|
18338
18346
|
};
|
|
18339
|
-
exports.version = "19.2.
|
|
18347
|
+
exports.version = "19.2.3";
|
|
18340
18348
|
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
18341
18349
|
})();
|
|
18342
18350
|
|
|
@@ -61120,23 +61128,39 @@ class ChartBulletWebComponent extends (0, _reactWrapperJs.ReactWrapperElement) {
|
|
|
61120
61128
|
constructor(){
|
|
61121
61129
|
super();
|
|
61122
61130
|
this._comparativeErrorMeasureData = undefined;
|
|
61131
|
+
this._comparativeErrorMeasureLegendData = undefined;
|
|
61123
61132
|
this._comparativeWarningMeasureData = undefined;
|
|
61133
|
+
this._comparativeWarningMeasureLegendData = undefined;
|
|
61134
|
+
this._maxDomain = undefined;
|
|
61124
61135
|
this._primaryDotMeasureData = undefined;
|
|
61136
|
+
this._primaryDotMeasureLegendData = undefined;
|
|
61125
61137
|
this._primarySegmentedMeasureData = undefined;
|
|
61138
|
+
this._primarySegmentedMeasureLegendData = undefined;
|
|
61126
61139
|
this._qualitativeRangeData = undefined;
|
|
61140
|
+
this._qualitativeRangeLegendData = undefined;
|
|
61127
61141
|
}
|
|
61128
61142
|
getReactComponent() {
|
|
61129
61143
|
const extraProps = {};
|
|
61130
61144
|
if (this._comparativeErrorMeasureData && typeof this._comparativeErrorMeasureData !== 'string') extraProps.comparativeErrorMeasureData = this._comparativeErrorMeasureData;
|
|
61131
|
-
else if (this.getAttribute('comparative-error-measure-data')) extraProps.
|
|
61145
|
+
else if (this.getAttribute('comparative-error-measure-data')) extraProps.comparativeErrorMeasureData = (0, _reactWrapperJs.parseAttrValue)('comparative-error-measure-data', this.getAttribute('comparative-error-measure-data'));
|
|
61146
|
+
if (this._comparativeErrorMeasureLegendData && typeof this._comparativeErrorMeasureLegendData !== 'string') extraProps.comparativeErrorMeasureLegendData = this._comparativeErrorMeasureLegendData;
|
|
61147
|
+
else if (this.getAttribute('comparative-error-measure-legend-data')) extraProps.comparativeErrorMeasureLegendData = (0, _reactWrapperJs.parseAttrValue)('comparative-error-measure-legend-data', this.getAttribute('comparative-error-measure-legend-data'));
|
|
61132
61148
|
if (this._comparativeWarningMeasureData && typeof this._comparativeWarningMeasureData !== 'string') extraProps.comparativeWarningMeasureData = this._comparativeWarningMeasureData;
|
|
61133
|
-
else if (this.getAttribute('comparative-warning-measure-data')) extraProps.
|
|
61149
|
+
else if (this.getAttribute('comparative-warning-measure-data')) extraProps.comparativeWarningMeasureData = (0, _reactWrapperJs.parseAttrValue)('comparative-warning-measure-data', this.getAttribute('comparative-warning-measure-data'));
|
|
61150
|
+
if (this._comparativeWarningMeasureLegendData && typeof this._comparativeWarningMeasureLegendData !== 'string') extraProps.comparativeWarningMeasureLegendData = this._comparativeWarningMeasureLegendData;
|
|
61151
|
+
else if (this.getAttribute('comparative-warning-measure-legend-data')) extraProps.comparativeWarningMeasureLegendData = (0, _reactWrapperJs.parseAttrValue)('comparative-warning-measure-legend-data', this.getAttribute('comparative-warning-measure-legend-data'));
|
|
61134
61152
|
if (this._primaryDotMeasureData && typeof this._primaryDotMeasureData !== 'string') extraProps.primaryDotMeasureData = this._primaryDotMeasureData;
|
|
61135
|
-
else if (this.getAttribute('primary-dot-measure-data')) extraProps.
|
|
61153
|
+
else if (this.getAttribute('primary-dot-measure-data')) extraProps.primaryDotMeasureData = (0, _reactWrapperJs.parseAttrValue)('primary-dot-measure-data', this.getAttribute('primary-dot-measure-data'));
|
|
61154
|
+
if (this._primaryDotMeasureLegendData && typeof this._primaryDotMeasureLegendData !== 'string') extraProps.primaryDotMeasureLegendData = this._primaryDotMeasureLegendData;
|
|
61155
|
+
else if (this.getAttribute('primary-dot-measure-legend-data')) extraProps.primaryDotMeasureLegendData = (0, _reactWrapperJs.parseAttrValue)('primary-dot-measure-legend-data', this.getAttribute('primary-dot-measure-legend-data'));
|
|
61136
61156
|
if (this._primarySegmentedMeasureData && typeof this._primarySegmentedMeasureData !== 'string') extraProps.primarySegmentedMeasureData = this._primarySegmentedMeasureData;
|
|
61137
|
-
else if (this.getAttribute('primary-segmented-measure-data')) extraProps.
|
|
61157
|
+
else if (this.getAttribute('primary-segmented-measure-data')) extraProps.primarySegmentedMeasureData = (0, _reactWrapperJs.parseAttrValue)('primary-segmented-measure-data', this.getAttribute('primary-segmented-measure-data'));
|
|
61158
|
+
if (this._primarySegmentedMeasureLegendData && typeof this._primarySegmentedMeasureLegendData !== 'string') extraProps.primarySegmentedMeasureLegendData = this._primarySegmentedMeasureLegendData;
|
|
61159
|
+
else if (this.getAttribute('primary-segmented-measure-legend-data')) extraProps.primarySegmentedMeasureLegendData = (0, _reactWrapperJs.parseAttrValue)('primary-segmented-measure-legend-data', this.getAttribute('primary-segmented-measure-legend-data'));
|
|
61138
61160
|
if (this._qualitativeRangeData && typeof this._qualitativeRangeData !== 'string') extraProps.qualitativeRangeData = this._qualitativeRangeData;
|
|
61139
|
-
else if (this.getAttribute('qualitative-range-data')) extraProps.
|
|
61161
|
+
else if (this.getAttribute('qualitative-range-data')) extraProps.qualitativeRangeData = (0, _reactWrapperJs.parseAttrValue)('qualitative-range-data', this.getAttribute('qualitative-range-data'));
|
|
61162
|
+
if (this._qualitativeRangeLegendData && typeof this._qualitativeRangeLegendData !== 'string') extraProps.qualitativeRangeLegendData = this._qualitativeRangeLegendData;
|
|
61163
|
+
else if (this.getAttribute('qualitative-range-legend-data')) extraProps.qualitativeRangeLegendData = (0, _reactWrapperJs.parseAttrValue)('qualitative-range-legend-data', this.getAttribute('qualitative-range-legend-data'));
|
|
61140
61164
|
return [
|
|
61141
61165
|
(0, _victory.ChartBullet),
|
|
61142
61166
|
extraProps
|
|
@@ -61149,6 +61173,13 @@ class ChartBulletWebComponent extends (0, _reactWrapperJs.ReactWrapperElement) {
|
|
|
61149
61173
|
this._comparativeErrorMeasureData = value;
|
|
61150
61174
|
this._notifyChange();
|
|
61151
61175
|
}
|
|
61176
|
+
get comparativeErrorMeasureLegendData() {
|
|
61177
|
+
return this._comparativeErrorMeasureLegendData;
|
|
61178
|
+
}
|
|
61179
|
+
set comparativeErrorMeasureLegendData(value) {
|
|
61180
|
+
this._comparativeErrorMeasureLegendData = value;
|
|
61181
|
+
this._notifyChange();
|
|
61182
|
+
}
|
|
61152
61183
|
get comparativeWarningMeasureData() {
|
|
61153
61184
|
return this._comparativeWarningMeasureData;
|
|
61154
61185
|
}
|
|
@@ -61156,6 +61187,20 @@ class ChartBulletWebComponent extends (0, _reactWrapperJs.ReactWrapperElement) {
|
|
|
61156
61187
|
this._comparativeWarningMeasureData = value;
|
|
61157
61188
|
this._notifyChange();
|
|
61158
61189
|
}
|
|
61190
|
+
get comparativeWarningMeasureLegendData() {
|
|
61191
|
+
return this._comparativeWarningMeasureLegendData;
|
|
61192
|
+
}
|
|
61193
|
+
set comparativeWarningMeasureLegendData(value) {
|
|
61194
|
+
this._comparativeWarningMeasureLegendData = value;
|
|
61195
|
+
this._notifyChange();
|
|
61196
|
+
}
|
|
61197
|
+
get maxDomain() {
|
|
61198
|
+
return this._maxDomain;
|
|
61199
|
+
}
|
|
61200
|
+
set maxDomain(value) {
|
|
61201
|
+
this._maxDomain = value;
|
|
61202
|
+
this._notifyChange();
|
|
61203
|
+
}
|
|
61159
61204
|
get primaryDotMeasureData() {
|
|
61160
61205
|
return this._primaryDotMeasureData;
|
|
61161
61206
|
}
|
|
@@ -61163,6 +61208,13 @@ class ChartBulletWebComponent extends (0, _reactWrapperJs.ReactWrapperElement) {
|
|
|
61163
61208
|
this._primaryDotMeasureData = value;
|
|
61164
61209
|
this._notifyChange();
|
|
61165
61210
|
}
|
|
61211
|
+
get primaryDotMeasureLegendData() {
|
|
61212
|
+
return this._primaryDotMeasureLegendData;
|
|
61213
|
+
}
|
|
61214
|
+
set primaryDotMeasureLegendData(value) {
|
|
61215
|
+
this._primaryDotMeasureLegendData = value;
|
|
61216
|
+
this._notifyChange();
|
|
61217
|
+
}
|
|
61166
61218
|
get primarySegmentedMeasureData() {
|
|
61167
61219
|
return this._primarySegmentedMeasureData;
|
|
61168
61220
|
}
|
|
@@ -61170,6 +61222,13 @@ class ChartBulletWebComponent extends (0, _reactWrapperJs.ReactWrapperElement) {
|
|
|
61170
61222
|
this._primarySegmentedMeasureData = value;
|
|
61171
61223
|
this._notifyChange();
|
|
61172
61224
|
}
|
|
61225
|
+
get primarySegmentedMeasureLegendData() {
|
|
61226
|
+
return this._primarySegmentedMeasureLegendData;
|
|
61227
|
+
}
|
|
61228
|
+
set primarySegmentedMeasureLegendData(value) {
|
|
61229
|
+
this._primarySegmentedMeasureLegendData = value;
|
|
61230
|
+
this._notifyChange();
|
|
61231
|
+
}
|
|
61173
61232
|
get qualitativeRangeData() {
|
|
61174
61233
|
return this._qualitativeRangeData;
|
|
61175
61234
|
}
|
|
@@ -61177,6 +61236,13 @@ class ChartBulletWebComponent extends (0, _reactWrapperJs.ReactWrapperElement) {
|
|
|
61177
61236
|
this._qualitativeRangeData = value;
|
|
61178
61237
|
this._notifyChange();
|
|
61179
61238
|
}
|
|
61239
|
+
get qualitativeRangeLegendData() {
|
|
61240
|
+
return this._qualitativeRangeLegendData;
|
|
61241
|
+
}
|
|
61242
|
+
set qualitativeRangeLegendData(value) {
|
|
61243
|
+
this._qualitativeRangeLegendData = value;
|
|
61244
|
+
this._notifyChange();
|
|
61245
|
+
}
|
|
61180
61246
|
}
|
|
61181
61247
|
customElements.define('pfj-chart-bullet', ChartBulletWebComponent);
|
|
61182
61248
|
|
package/package.json
CHANGED
package/src/charts.js
CHANGED
|
@@ -14,17 +14,17 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
// Base class for J2CL JsInterop base class
|
|
17
|
+
// Base class for the J2CL JsInterop base class org.patternfly.chart.ChartElement
|
|
18
18
|
class ChartElement extends HTMLElement {
|
|
19
19
|
}
|
|
20
20
|
window.ChartElement = ChartElement;
|
|
21
21
|
|
|
22
|
+
import './components/pfj-chart-bullet.js';
|
|
22
23
|
import './components/pfj-chart-donut.js';
|
|
23
24
|
import './components/pfj-chart-donut-utilization.js';
|
|
24
25
|
import './components/pfj-chart-donut-threshold.js';
|
|
25
|
-
import './components/pfj-chart-bullet.js';
|
|
26
26
|
|
|
27
|
+
export {ChartBulletWebComponent} from './components/pfj-chart-bullet.js';
|
|
27
28
|
export {ChartDonutWebComponent} from './components/pfj-chart-donut.js';
|
|
28
29
|
export {ChartDonutUtilizationWebComponent} from './components/pfj-chart-donut-utilization.js';
|
|
29
30
|
export {ChartDonutThresholdWebComponent} from './components/pfj-chart-donut-threshold.js';
|
|
30
|
-
export {ChartBulletWebComponent} from './components/pfj-chart-bullet.js';
|
|
@@ -21,10 +21,16 @@ export class ChartBulletWebComponent extends ReactWrapperElement {
|
|
|
21
21
|
constructor() {
|
|
22
22
|
super();
|
|
23
23
|
this._comparativeErrorMeasureData = undefined;
|
|
24
|
+
this._comparativeErrorMeasureLegendData = undefined;
|
|
24
25
|
this._comparativeWarningMeasureData = undefined;
|
|
26
|
+
this._comparativeWarningMeasureLegendData = undefined;
|
|
27
|
+
this._maxDomain = undefined;
|
|
25
28
|
this._primaryDotMeasureData = undefined;
|
|
29
|
+
this._primaryDotMeasureLegendData = undefined;
|
|
26
30
|
this._primarySegmentedMeasureData = undefined;
|
|
31
|
+
this._primarySegmentedMeasureLegendData = undefined;
|
|
27
32
|
this._qualitativeRangeData = undefined;
|
|
33
|
+
this._qualitativeRangeLegendData = undefined;
|
|
28
34
|
}
|
|
29
35
|
|
|
30
36
|
getReactComponent() {
|
|
@@ -32,27 +38,55 @@ export class ChartBulletWebComponent extends ReactWrapperElement {
|
|
|
32
38
|
if (this._comparativeErrorMeasureData && typeof this._comparativeErrorMeasureData !== 'string') {
|
|
33
39
|
extraProps.comparativeErrorMeasureData = this._comparativeErrorMeasureData;
|
|
34
40
|
} else if (this.getAttribute('comparative-error-measure-data')) {
|
|
35
|
-
extraProps.
|
|
41
|
+
extraProps.comparativeErrorMeasureData = parseAttrValue('comparative-error-measure-data', this.getAttribute('comparative-error-measure-data'));
|
|
42
|
+
}
|
|
43
|
+
if (this._comparativeErrorMeasureLegendData && typeof this._comparativeErrorMeasureLegendData !== 'string') {
|
|
44
|
+
extraProps.comparativeErrorMeasureLegendData = this._comparativeErrorMeasureLegendData;
|
|
45
|
+
} else if (this.getAttribute('comparative-error-measure-legend-data')) {
|
|
46
|
+
extraProps.comparativeErrorMeasureLegendData = parseAttrValue('comparative-error-measure-legend-data', this.getAttribute('comparative-error-measure-legend-data'));
|
|
36
47
|
}
|
|
37
48
|
if (this._comparativeWarningMeasureData && typeof this._comparativeWarningMeasureData !== 'string') {
|
|
38
49
|
extraProps.comparativeWarningMeasureData = this._comparativeWarningMeasureData;
|
|
39
50
|
} else if (this.getAttribute('comparative-warning-measure-data')) {
|
|
40
|
-
extraProps.
|
|
51
|
+
extraProps.comparativeWarningMeasureData = parseAttrValue('comparative-warning-measure-data', this.getAttribute('comparative-warning-measure-data'));
|
|
52
|
+
}
|
|
53
|
+
if (this._comparativeWarningMeasureLegendData && typeof this._comparativeWarningMeasureLegendData !== 'string') {
|
|
54
|
+
extraProps.comparativeWarningMeasureLegendData = this._comparativeWarningMeasureLegendData;
|
|
55
|
+
} else if (this.getAttribute('comparative-warning-measure-legend-data')) {
|
|
56
|
+
extraProps.comparativeWarningMeasureLegendData = parseAttrValue('comparative-warning-measure-legend-data', this.getAttribute('comparative-warning-measure-legend-data'));
|
|
57
|
+
}
|
|
58
|
+
if (this._maxDomain !== undefined) {
|
|
59
|
+
extraProps.maxDomain = Number(this._maxDomain);
|
|
41
60
|
}
|
|
42
61
|
if (this._primaryDotMeasureData && typeof this._primaryDotMeasureData !== 'string') {
|
|
43
62
|
extraProps.primaryDotMeasureData = this._primaryDotMeasureData;
|
|
44
63
|
} else if (this.getAttribute('primary-dot-measure-data')) {
|
|
45
|
-
extraProps.
|
|
64
|
+
extraProps.primaryDotMeasureData = parseAttrValue('primary-dot-measure-data', this.getAttribute('primary-dot-measure-data'));
|
|
65
|
+
}
|
|
66
|
+
if (this._primaryDotMeasureLegendData && typeof this._primaryDotMeasureLegendData !== 'string') {
|
|
67
|
+
extraProps.primaryDotMeasureLegendData = this._primaryDotMeasureLegendData;
|
|
68
|
+
} else if (this.getAttribute('primary-dot-measure-legend-data')) {
|
|
69
|
+
extraProps.primaryDotMeasureLegendData = parseAttrValue('primary-dot-measure-legend-data', this.getAttribute('primary-dot-measure-legend-data'));
|
|
46
70
|
}
|
|
47
71
|
if (this._primarySegmentedMeasureData && typeof this._primarySegmentedMeasureData !== 'string') {
|
|
48
72
|
extraProps.primarySegmentedMeasureData = this._primarySegmentedMeasureData;
|
|
49
73
|
} else if (this.getAttribute('primary-segmented-measure-data')) {
|
|
50
|
-
extraProps.
|
|
74
|
+
extraProps.primarySegmentedMeasureData = parseAttrValue('primary-segmented-measure-data', this.getAttribute('primary-segmented-measure-data'));
|
|
75
|
+
}
|
|
76
|
+
if (this._primarySegmentedMeasureLegendData && typeof this._primarySegmentedMeasureLegendData !== 'string') {
|
|
77
|
+
extraProps.primarySegmentedMeasureLegendData = this._primarySegmentedMeasureLegendData;
|
|
78
|
+
} else if (this.getAttribute('primary-segmented-measure-legend-data')) {
|
|
79
|
+
extraProps.primarySegmentedMeasureLegendData = parseAttrValue('primary-segmented-measure-legend-data', this.getAttribute('primary-segmented-measure-legend-data'));
|
|
51
80
|
}
|
|
52
81
|
if (this._qualitativeRangeData && typeof this._qualitativeRangeData !== 'string') {
|
|
53
82
|
extraProps.qualitativeRangeData = this._qualitativeRangeData;
|
|
54
83
|
} else if (this.getAttribute('qualitative-range-data')) {
|
|
55
|
-
extraProps.
|
|
84
|
+
extraProps.qualitativeRangeData = parseAttrValue('qualitative-range-data', this.getAttribute('qualitative-range-data'));
|
|
85
|
+
}
|
|
86
|
+
if (this._qualitativeRangeLegendData && typeof this._qualitativeRangeLegendData !== 'string') {
|
|
87
|
+
extraProps.qualitativeRangeLegendData = this._qualitativeRangeLegendData;
|
|
88
|
+
} else if (this.getAttribute('qualitative-range-legend-data')) {
|
|
89
|
+
extraProps.qualitativeRangeLegendData = parseAttrValue('qualitative-range-legend-data', this.getAttribute('qualitative-range-legend-data'));
|
|
56
90
|
}
|
|
57
91
|
|
|
58
92
|
return [ChartBullet, extraProps];
|
|
@@ -67,6 +101,15 @@ export class ChartBulletWebComponent extends ReactWrapperElement {
|
|
|
67
101
|
this._notifyChange();
|
|
68
102
|
}
|
|
69
103
|
|
|
104
|
+
get comparativeErrorMeasureLegendData() {
|
|
105
|
+
return this._comparativeErrorMeasureLegendData;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
set comparativeErrorMeasureLegendData(value) {
|
|
109
|
+
this._comparativeErrorMeasureLegendData = value;
|
|
110
|
+
this._notifyChange();
|
|
111
|
+
}
|
|
112
|
+
|
|
70
113
|
get comparativeWarningMeasureData() {
|
|
71
114
|
return this._comparativeWarningMeasureData;
|
|
72
115
|
}
|
|
@@ -76,6 +119,24 @@ export class ChartBulletWebComponent extends ReactWrapperElement {
|
|
|
76
119
|
this._notifyChange();
|
|
77
120
|
}
|
|
78
121
|
|
|
122
|
+
get comparativeWarningMeasureLegendData() {
|
|
123
|
+
return this._comparativeWarningMeasureLegendData;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
set comparativeWarningMeasureLegendData(value) {
|
|
127
|
+
this._comparativeWarningMeasureLegendData = value;
|
|
128
|
+
this._notifyChange();
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
get maxDomain() {
|
|
132
|
+
return this._maxDomain;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
set maxDomain(value) {
|
|
136
|
+
this._maxDomain = value;
|
|
137
|
+
this._notifyChange();
|
|
138
|
+
}
|
|
139
|
+
|
|
79
140
|
get primaryDotMeasureData() {
|
|
80
141
|
return this._primaryDotMeasureData;
|
|
81
142
|
}
|
|
@@ -85,6 +146,15 @@ export class ChartBulletWebComponent extends ReactWrapperElement {
|
|
|
85
146
|
this._notifyChange();
|
|
86
147
|
}
|
|
87
148
|
|
|
149
|
+
get primaryDotMeasureLegendData() {
|
|
150
|
+
return this._primaryDotMeasureLegendData;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
set primaryDotMeasureLegendData(value) {
|
|
154
|
+
this._primaryDotMeasureLegendData = value;
|
|
155
|
+
this._notifyChange();
|
|
156
|
+
}
|
|
157
|
+
|
|
88
158
|
get primarySegmentedMeasureData() {
|
|
89
159
|
return this._primarySegmentedMeasureData;
|
|
90
160
|
}
|
|
@@ -94,6 +164,15 @@ export class ChartBulletWebComponent extends ReactWrapperElement {
|
|
|
94
164
|
this._notifyChange();
|
|
95
165
|
}
|
|
96
166
|
|
|
167
|
+
get primarySegmentedMeasureLegendData() {
|
|
168
|
+
return this._primarySegmentedMeasureLegendData;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
set primarySegmentedMeasureLegendData(value) {
|
|
172
|
+
this._primarySegmentedMeasureLegendData = value;
|
|
173
|
+
this._notifyChange();
|
|
174
|
+
}
|
|
175
|
+
|
|
97
176
|
get qualitativeRangeData() {
|
|
98
177
|
return this._qualitativeRangeData;
|
|
99
178
|
}
|
|
@@ -102,6 +181,15 @@ export class ChartBulletWebComponent extends ReactWrapperElement {
|
|
|
102
181
|
this._qualitativeRangeData = value;
|
|
103
182
|
this._notifyChange();
|
|
104
183
|
}
|
|
184
|
+
|
|
185
|
+
get qualitativeRangeLegendData() {
|
|
186
|
+
return this._qualitativeRangeLegendData;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
set qualitativeRangeLegendData(value) {
|
|
190
|
+
this._qualitativeRangeLegendData = value;
|
|
191
|
+
this._notifyChange();
|
|
192
|
+
}
|
|
105
193
|
}
|
|
106
194
|
|
|
107
195
|
customElements.define('pfj-chart-bullet', ChartBulletWebComponent);
|
package/src/react-wrapper.js
CHANGED
|
@@ -94,7 +94,6 @@ export class ReactWrapperElement extends LitElement {
|
|
|
94
94
|
this._data = undefined; // any | any[]
|
|
95
95
|
this._height = undefined; // number
|
|
96
96
|
this._labels = undefined; // (data: any) => string
|
|
97
|
-
this._legendAllowWrap = undefined; // boolean
|
|
98
97
|
this._legendData = undefined; // { name?: string; symbol?: { fill?: string; type?: string; }; }[]
|
|
99
98
|
this._legendOrientation = undefined; // string
|
|
100
99
|
this._legendPosition = undefined; // string
|
|
@@ -261,15 +260,6 @@ export class ReactWrapperElement extends LitElement {
|
|
|
261
260
|
this._notifyChange();
|
|
262
261
|
}
|
|
263
262
|
|
|
264
|
-
get legendAllowWrap() {
|
|
265
|
-
return this._legendAllowWrap;
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
set legendAllowWrap(value) {
|
|
269
|
-
this._legendAllowWrap = value;
|
|
270
|
-
this._notifyChange();
|
|
271
|
-
}
|
|
272
|
-
|
|
273
263
|
get legendData() {
|
|
274
264
|
return this._legendData;
|
|
275
265
|
}
|
|
@@ -369,9 +359,6 @@ export class ReactWrapperElement extends LitElement {
|
|
|
369
359
|
if (this._labels !== undefined) {
|
|
370
360
|
commonProps.labels = this._labels;
|
|
371
361
|
}
|
|
372
|
-
if (this._legendAllowWrap !== undefined) {
|
|
373
|
-
commonProps.legendAllowWrap = this._legendAllowWrap;
|
|
374
|
-
}
|
|
375
362
|
if (this._legendData && typeof this._legendData !== 'string') {
|
|
376
363
|
commonProps.legendData = this._legendData;
|
|
377
364
|
} else if (this.getAttribute('legend-data')) {
|