@operato/scene-chartjs 7.0.1 → 7.0.2
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +9 -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 +4 -2
- 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
package/tsconfig.tsbuildinfo
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"program":{"fileNames":["../../node_modules/typescript/lib/lib.es5.d.ts","../../node_modules/typescript/lib/lib.es2015.d.ts","../../node_modules/typescript/lib/lib.es2016.d.ts","../../node_modules/typescript/lib/lib.es2017.d.ts","../../node_modules/typescript/lib/lib.es2018.d.ts","../../node_modules/typescript/lib/lib.es2019.d.ts","../../node_modules/typescript/lib/lib.dom.d.ts","../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../node_modules/typescript/lib/lib.es2016.intl.d.ts","../../node_modules/typescript/lib/lib.es2017.date.d.ts","../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../node_modules/typescript/lib/lib.decorators.d.ts","../../node_modules/typescript/lib/lib.decorators.legacy.d.ts","./global/index.d.ts","../../node_modules/tslib/tslib.d.ts","../../node_modules/moment/ts3.1-typings/moment.d.ts","../../node_modules/@types/chart.js/index.d.ts","../../node_modules/chartjs-plugin-datalabels/types/context.d.ts","../../node_modules/chartjs-plugin-datalabels/types/options.d.ts","../../node_modules/chartjs-plugin-datalabels/types/index.d.ts","../../node_modules/@lit/reactive-element/css-tag.d.ts","../../node_modules/@lit/reactive-element/reactive-controller.d.ts","../../node_modules/@lit/reactive-element/reactive-element.d.ts","../../node_modules/@types/trusted-types/lib/index.d.ts","../../node_modules/@types/trusted-types/index.d.ts","../../node_modules/lit-html/directive.d.ts","../../node_modules/lit-html/lit-html.d.ts","../../node_modules/lit-element/lit-element.d.ts","../../node_modules/lit-html/is-server.d.ts","../../node_modules/lit/index.d.ts","../../node_modules/@lit/reactive-element/decorators/base.d.ts","../../node_modules/@lit/reactive-element/decorators/custom-element.d.ts","../../node_modules/@lit/reactive-element/decorators/property.d.ts","../../node_modules/@lit/reactive-element/decorators/state.d.ts","../../node_modules/@lit/reactive-element/decorators/event-options.d.ts","../../node_modules/@lit/reactive-element/decorators/query.d.ts","../../node_modules/@lit/reactive-element/decorators/query-all.d.ts","../../node_modules/@lit/reactive-element/decorators/query-async.d.ts","../../node_modules/@lit/reactive-element/decorators/query-assigned-nodes.d.ts","../../node_modules/@lit/reactive-element/decorators/query-assigned-elements.d.ts","../../node_modules/lit/decorators.d.ts","./src/plugins/chartjs-plugin-data-binder.ts","../../node_modules/@ctrl/tinycolor/dist/interfaces.d.ts","../../node_modules/@ctrl/tinycolor/dist/index.d.ts","../../node_modules/@ctrl/tinycolor/dist/css-color-names.d.ts","../../node_modules/@ctrl/tinycolor/dist/readability.d.ts","../../node_modules/@ctrl/tinycolor/dist/to-ms-filter.d.ts","../../node_modules/@ctrl/tinycolor/dist/from-ratio.d.ts","../../node_modules/@ctrl/tinycolor/dist/format-input.d.ts","../../node_modules/@ctrl/tinycolor/dist/random.d.ts","../../node_modules/@ctrl/tinycolor/dist/conversion.d.ts","../../node_modules/@ctrl/tinycolor/dist/public_api.d.ts","./src/text-formatter.ts","./src/config-converter.ts","./src/ox-chart.ts","../../node_modules/@types/lodash/common/common.d.ts","../../node_modules/@types/lodash/common/array.d.ts","../../node_modules/@types/lodash/common/collection.d.ts","../../node_modules/@types/lodash/common/date.d.ts","../../node_modules/@types/lodash/common/function.d.ts","../../node_modules/@types/lodash/common/lang.d.ts","../../node_modules/@types/lodash/common/math.d.ts","../../node_modules/@types/lodash/common/number.d.ts","../../node_modules/@types/lodash/common/object.d.ts","../../node_modules/@types/lodash/common/seq.d.ts","../../node_modules/@types/lodash/common/string.d.ts","../../node_modules/@types/lodash/common/util.d.ts","../../node_modules/@types/lodash/index.d.ts","../../node_modules/@types/lodash/clonedeep.d.ts","../../node_modules/@hatiolab/things-scene/things-scene.d.ts","./src/chartjs.ts","./src/index.ts","./src/scene-chart.d.ts","../../node_modules/@operato/i18n/dist/src/ox-i18n.d.ts","../../node_modules/@material/web/icon/internal/icon.d.ts","../../node_modules/@material/web/icon/icon.d.ts","../../node_modules/@material/web/elevation/internal/elevation.d.ts","../../node_modules/@material/web/elevation/elevation.d.ts","../../node_modules/@material/web/internal/controller/attachable-controller.d.ts","../../node_modules/@material/web/focus/internal/focus-ring.d.ts","../../node_modules/@material/web/focus/md-focus-ring.d.ts","../../node_modules/@material/web/ripple/internal/ripple.d.ts","../../node_modules/@material/web/ripple/ripple.d.ts","../../node_modules/@material/web/labs/behaviors/mixin.d.ts","../../node_modules/@material/web/labs/behaviors/element-internals.d.ts","../../node_modules/@material/web/internal/controller/form-submitter.d.ts","../../node_modules/@material/web/button/internal/button.d.ts","../../node_modules/@material/web/button/internal/elevated-button.d.ts","../../node_modules/@material/web/button/elevated-button.d.ts","../../node_modules/@material/web/divider/internal/divider.d.ts","../../node_modules/@material/web/divider/divider.d.ts","../../node_modules/lit-html/directives/class-map.d.ts","../../node_modules/lit/directives/class-map.d.ts","../../node_modules/@material/web/labs/behaviors/focusable.d.ts","../../node_modules/@material/web/tabs/internal/tab.d.ts","../../node_modules/@material/web/tabs/internal/tabs.d.ts","../../node_modules/@material/web/tabs/tabs.d.ts","./src/editors/property-editor-chartjs-styles.ts","./src/editors/property-editor-chartjs-abstract.ts","./src/editors/property-editor-chartjs-multi-series-abstract.ts","./src/editors/property-editor-chartjs-hbar.ts","./src/editors/property-editor-chartjs-mixed.ts","./src/editors/property-editor-chartjs-pie.ts","./src/editors/property-editor-chartjs-radar.ts","../../node_modules/@operato/property-editor/dist/src/types.d.ts","../../node_modules/@operato/property-editor/dist/src/ox-property-editor.d.ts","../../node_modules/@operato/property-editor/dist/src/ox-properties-dynamic-view.d.ts","../../node_modules/@operato/property-editor/dist/src/index.d.ts","./src/editors/property-editor-chartjs.ts","./src/editors/index.ts","../../node_modules/ses/types.d.ts","./src/plugins/chart-series-highlight.ts","./src/templates/bar-chart.ts","./src/templates/doughnut-chart.ts","./src/templates/horizontal-bar-chart.ts","./src/templates/line-chart.ts","./src/templates/mixed-chart.ts","./src/templates/pie-chart.ts","./src/templates/polar-area-chart.ts","./src/templates/radar-chart.ts","./src/templates/index.ts"],"fileInfos":[{"version":"44e584d4f6444f58791784f1d530875970993129442a847597db702a073ca68c","affectsGlobalScope":true},"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","9a68c0c07ae2fa71b44384a839b7b8d81662a236d4b9ac30916718f7510b1b2d","5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7",{"version":"4af6b0c727b7a2896463d512fafd23634229adf69ac7c00e2ae15a09cb084fad","affectsGlobalScope":true},{"version":"6920e1448680767498a0b77c6a00a8e77d14d62c3da8967b171f1ddffa3c18e4","affectsGlobalScope":true},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true},{"version":"4443e68b35f3332f753eacc66a04ac1d2053b8b035a0e0ac1d455392b5e243b3","affectsGlobalScope":true},{"version":"bc47685641087c015972a3f072480889f0d6c65515f12bd85222f49a98952ed7","affectsGlobalScope":true},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true},{"version":"93495ff27b8746f55d19fcbcdbaccc99fd95f19d057aed1bd2c0cafe1335fbf0","affectsGlobalScope":true},{"version":"6fc23bb8c3965964be8c597310a2878b53a0306edb71d4b5a4dfe760186bcc01","affectsGlobalScope":true},{"version":"ea011c76963fb15ef1cdd7ce6a6808b46322c527de2077b6cfdf23ae6f5f9ec7","affectsGlobalScope":true},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true},{"version":"bb42a7797d996412ecdc5b2787720de477103a0b2e53058569069a0e2bae6c7e","affectsGlobalScope":true},{"version":"4738f2420687fd85629c9efb470793bb753709c2379e5f85bc1815d875ceadcd","affectsGlobalScope":true},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true},{"version":"9fc46429fbe091ac5ad2608c657201eb68b6f1b8341bd6d670047d32ed0a88fa","affectsGlobalScope":true},{"version":"61c37c1de663cf4171e1192466e52c7a382afa58da01b1dc75058f032ddf0839","affectsGlobalScope":true},{"version":"b541a838a13f9234aba650a825393ffc2292dc0fc87681a5d81ef0c96d281e7a","affectsGlobalScope":true},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true},{"version":"33358442698bb565130f52ba79bfd3d4d484ac85fe33f3cb1759c54d18201393","affectsGlobalScope":true},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true},"c4f5f288a2b8dcfb6183e29612ec26b7a049314a6a10b7e6e700a8307077455a","4a882ffbb4ed09d9b7734f784aebb1dfe488d63725c40759165c5d9c657ca029","4051f6311deb0ce6052329eeb1cd4b1b104378fe52f882f483130bea75f92197","d5b4a95da4cb2c1d8cf8857d8110ea8e30654ce3b3fb90669dd1e99006af9f40","7abe341c118b8aa3ed2a51d9ef3ada999d223168317c5a977b238e804fab02af","74462c15e232d097b1b9888823cf513a1c5b63f57637a64c3eab6b8a236954ae","fe15b975a20fddd8407bdd885feee2ce04dbc6a7100d89f432cae2ed5fa32d26","e056bb30bf82271634daeee81f772f4a7960085f01f6d4d09c8da1ebe5f6a623","5e30131b6a5587fe666926ad1d9807e733c0a597ed12d682669fcaa331aea576",{"version":"86492a546c3308feaf1dde967afd325c321483b5e96f5fa9e9b6e691dc23fa9e","affectsGlobalScope":true},"15fe687c59d62741b4494d5e623d497d55eb38966ecf5bea7f36e48fc3fbe15e",{"version":"2c3b8be03577c98530ef9cb1a76e2c812636a871f367e9edf4c5f3ce702b77f8","affectsGlobalScope":true},"d4b4f6148a6444ec92db4ac4c7dd7050ffc32b21a10276a59498e04740e8fd8d","2524f58c8d67af441b487c0ce0e0dd9c18bf3d06c05f621874dcda9780d8e22c","c7dd759e5948a94b42422ba7cf70eb8455416def9447614a3bdc1a99b81fc8bb","1bcd560deed90a43c51b08aa18f7f55229f2e30974ab5ed1b7bb5721be379013","dc08fe04e50bc24d1baded4f33e942222bbdd5d77d6341a93cfe6e4e4586a3be","cdeae34aca6700620ebf3f27cf7d439c3af97595dd6e2729fa4780483add5680","3ff87ea3471b51beaf4aa8fd8f4422862b11d343fdbb55bf383e0f8cc195a445","1cc188904259bd0985b24d9dc2a160891cb5e94210901466b951716fcdb4ff62","732fb71ecb695d6f36ddcbb72ebfe4ff6b6491d45101a00fa2b75a26b80d640f","039cb05125d7621f8143616c495b8e6b54249c4e64d2754b80ff93867f7f4b01","1b81f1fa82ad30af01ab1cae91ccaddc10c48f5916bbd6d282155e44a65d858d","a0fc7a02a75802678a67000607f20266cf1a49dc0e787967efe514e31b9ed0c3","5ebf098a1d81d400b8af82807cf19893700335cf91a7b9dbd83a5d737af34b11","101cf83ac3f9c5e1a7355a02e4fbe988877ef83c4ebec0ff0f02b2af022254a3","d017e2fcd44b46ca80cd2b592a6314e75f5caab5bda230f0f4a45e964049a43a","a8992b852521a66f63e0cedc6e1f054b28f972232b6fa5ca59771db6a1c8bbea",{"version":"2a385ee5ee8be6967e561a168bd016aca649249b3c5257e3d7242bedd824ba96","signature":"451d3fece5c5c4b956075d8bb4a745be00c820e7ec531d2dc34cbac349da6edf"},"d600313e3c07f919782e2cefcee7dd9af336e847d61d7bb6f77b813b08d4558e","c509b5642db6151661020758ac12bffa7652ffde20014b621a17a38ba2a39e32","df9d5f06a1692717762ca9f368917924fdaccfdfced152804d768eff9baeb352","34fec0d3b9abe499f5d53f1ae7a6c28d34ac289e5cff6f17587da846823cecb0","9ea3742314159f08b93e3dccb7fdba67637ba75736c12923d4df3ec9f40590ab","bc55f374f2b27277afd0ebdf0e503faa20ac18e81d15ac106e443ab354d3e892","4055e5f20cd88d6a1b97dcc9ef0708655901c23c974c17e7cb5a649ebb960b47","e35562032ca67f79d83bb8e2b86b61dfcbac6a914ce15b0e2235e6626dbd49f7","6fa98c19548b13e63df64ea3b9dcdd5b456059f2ec6ba14de67ba295c3884a9f","39fa2f68f5480e3f2dde09f8cf03e37c0b79479247c7a169ce833a39c3da38a3",{"version":"82a61bbf2f2a49ac54deb08fe44e478cef829ed11ddc1e8cce32c6524cce8831","signature":"b37e05dfec9332a34af72e12bc2aa4da37cbc628bfc1670b4a1ab4cdef9a79fc"},{"version":"243fb4c30b6c0d98416f9f759273f894ffd412e500bb7b1a699bfc44fc4d081c","signature":"07c48a764b89ea34e444b5a0c05c7729a7cff3c5189ac2e3031e78dba920d245"},{"version":"3aea135c7bbe01e0b4e536c27d51fac2c3ec8558295212ee12650f2143c1ef2a","signature":"91b287ff81a964bd8329eabbd90b3aee7f498d8cc9ce47db3173dd9b2ff3d784"},"ff81bffa4ecfceae2e86b5920c3fcb250b66b1d6ed72944dffdf58123be2481b","458111fc89d11d2151277c822dfdc1a28fa5b6b2493cf942e37d4cd0a6ee5f22","da2b6356b84a40111aaecb18304ea4e4fcb43d70efb1c13ca7d7a906445ee0d3","187119ff4f9553676a884e296089e131e8cc01691c546273b1d0089c3533ce42","aa2c18a1b5a086bbcaae10a4efba409cc95ba7287d8cf8f2591b53704fea3dea","6f294731b495c65ecf46a5694f0082954b961cf05463bea823f8014098eaffa0","0aaef8cded245bf5036a7a40b65622dd6c4da71f7a35343112edbe112b348a1e","00baffbe8a2f2e4875367479489b5d43b5fc1429ecb4a4cc98cfc3009095f52a","6c65d33115c7410ecbb59db5fcbb042fc6b831a258d028dbb06b42b75d8459c1","3c92b6dfd43cc1c2485d9eba5ff0b74a19bb8725b692773ef1d66dac48cda4bd","b03afe4bec768ae333582915146f48b161e567a81b5ebc31c4d78af089770ac9","df996e25faa505f85aeb294d15ebe61b399cf1d1e49959cdfaf2cc0815c203f9","4f6a12044ee6f458db11964153830abbc499e73d065c51c329ec97407f4b13dd","a33ea06913b712c529662bee7fd75959781267cf8a307902cc7761307fec0337","26d1ec00a52200684283272eaed524de74adc033bdff6522f72e03c796a46ff8",{"version":"dcfa6a36119a1556ac9d6da24032597c2d97a7ccb77a908b99f81b5707746197","signature":"272d3d1a056956b22c1646a9fbcbab2d56b3f3870de930c952851a917b198d30"},{"version":"78c6d53cc1eb64fc05f155d23992d58b35b5d70d8fceaa0543192110bb69b574","signature":"cef57eca4ba1ae8c0afde5e6c97a829ee5b5307a9050f8a3b47b03f2f4ae7836"},{"version":"be140711e176421c4358dc1bb1a3e36b8a5896b2ed41363cd9e6d3499fb660fc","affectsGlobalScope":true},"29dca1b5f0cac95b675f86c7846f9d587ed47cc46609dd00d152bcb37683b069","5565deadc1d553f9f1ef370351432c258d2a6f1a5ca47e574e5430db824468c7",{"version":"4ae1ed87c59518f4e0918a21409ec3020e97037a386b57953c6b9fed9cad6949","affectsGlobalScope":true},"6184309fe39e2fe444f4ba94e7cd1abef48fcb48e258457c3b77c65828184241",{"version":"98c511f60c3079d731a35353a47bfa89dd79eeacad48a45d07170d22ef4bfd02","affectsGlobalScope":true},"905800cc110167503d0cf58bb0dd6fa4aaac1e9cedc9bd9c48e5d1f8b5b8d4c8","d17be577b99e59611df19ca2cf0356df554f55bb06617c21321fc4ec06b820d0",{"version":"5f30145fbc8ca508ae4e0d90a4fe9eaff490783f380a92f6aa262accdf7887b7","affectsGlobalScope":true},"2c887f29f6796ea68247c626acbef560ff29bb8d0042b641e4fc69559841463d",{"version":"f882b77c5939860d599b4b7bc39f741ebcd56123e18b284500f4b8923acd2e72","affectsGlobalScope":true},"0230bc76ed3a464531a43d2434d315b9cc2096aaca28bdaa65b8f9dce9f3bc81","559d2d1cd7f37dc2ac59e7adce198ad16a5eb0c7273d67b8e4ff72821b7c853f","afa8760622183e35e86f516574217eb1853b08cf2168be0bfe991643ece1a8fe","82c4af4fef6ea53203df31d4d1da9acb47f9a1eabfc7f45f0f181b7ff9345187","0cb349f3a6866eb4ec6424b3844fa51498b32402f922d5a571d069d7cf44c68f",{"version":"517dd6f73e4d20b38841f7be1edb2fb6f4152775ac3a9c04e319ff0b3509c8ba","affectsGlobalScope":true},"55d3b1b0a3e25fa3b6e33c33a017a195f53f0621082cee825192f94b9703a4dd",{"version":"7b56b1c33d91152269b97488fa8a1c215e57b97c1434c30a224ae722fd596ff2","affectsGlobalScope":true},"8a9b7a437bea4cc34e5e103e01573ab3afc4564a22c838942b6dcca0f68020e8","8bb8931e629d9adfac6fe0c067de1a3c2f82b47262f83fa76eb0772ef13808e8","6b7963cd724d29486e9f6f951eb208b7939667615a4bcc101448d7fb6015d984","8207b19480c8a83ee4dddc81e8e5d332408a3f43a0496267f7b51be13a78a678","6ec728143ee85502027c0b53f171ba748c23081f8dee67fb7b67ba61b66faeed",{"version":"f0e54f221760cd5cbfc7df96d65a2c4c1ab2c2e72599bf35f16cf535204a78a3","affectsGlobalScope":true},{"version":"36289e944e45678dce1abdb013586155e5b0c54c7083c5002a5c3e5e02accff2","signature":"0a71b9863979684de9044f80bb25898f96faa6e632c07e815ba325e0dfbc89d5"},{"version":"3668e7b11a1d63849defe9f7e5337d7b08614ef917fc1812eaa6820f1de201e1","signature":"ac333557c28a8ca1df21328a538c13fa2ed1ff64069df48c36fca97716f2f88d"},{"version":"183d5a211d6f9dfa4857d0906f93006708605fbedfcc85c2ae64d7a6c11eb85a","signature":"cdb2fb70c47ac39569b3f2840e19d30adb3abea2e9a1726520d133258b2d266e"},{"version":"78a848e4f058ed165955ddd5652f772ee5545df41de81ffc2b377f0cd88700a7","signature":"c165f61670a0e06a4cdcc4ba8169b82c0162ea625b3c2d1e196a7e622552c4c6"},{"version":"0b6964118a6110dfb3260d59081374a09d4e83cbaf6bee499a7e241e3b9e4b33","signature":"35a7e83b36d9b27513e40b4f8cfc9cce7a358abfde416d37fadb6baee466ef89"},{"version":"2ba628511829b65de78f758e6b6eb03ce24c7e5635e39f46cf3626a57f976b61","signature":"0b0ad4a01d48e8eb2a1dae242f2b20c8596b9338c3cd7527c81f07a4cbe87ffd"},{"version":"9ada5159f93a10a5a531e097b77dfcc830ffd11991ce9a960feeb3ffde73bb25","signature":"09347b08735dd430b10e1350e67057a38fc233351d11c117d5f073e84b47d2c6"},"b3522fc474172a4dc96b7845e16101d70098f7c77c2c67d7fbc196401ba8b5eb","e097ad49dad4f20ccf776cbe99f6158cd3712ebe0d3aa53cdded02a5bc692433","32464280a3efcaa0d05d7344a1f023d09563f034d2c53aa78628b713173dd49e","d0f0b9c123ac41343b6faec852928381067194bf8c60d70ae9e2ce896f3bd31b",{"version":"1b630e5e76a87be33ca36947b5a1e3c093c36306ed31b3dc2e99930ff55f5f84","signature":"b097f4dff540bdb74db0eef9978df7612f05fe793d48ee1f30a496a2724f21c4"},{"version":"1cb49d01d422b9bbe5734328ccceb27c7ca130bc7660f1042a5db6dbdc64e97c","signature":"1b6e9cd25cce1c990555e3ca9c4e53de1d5a0700288801eb70c60c0d60a4bfd4"},{"version":"06b7262e728512b67d5a3455d6b5e9f6a7527a95c8c68f8132e2f6f390006d7e","affectsGlobalScope":true},{"version":"ffac3b495aa799974052a534a1de412026ac0d47a18500c36064c960aabdc667","signature":"4478b28f781ef8d549d8d10ec2332d97d6d6ce8e155ce70ca1dca59a7ebd2970"},{"version":"aae78c896415a37146ef2343bf0c21439cdcff1bb9173742bbc12e1805305f42","signature":"1d4e8898abfae5f702a118e75a3b23383853cfbec65a87ca176d4b6f5f3b2724"},{"version":"ea763b4bef8e57e8333d815b3c0748960c37bd8876be52c6897a043ee119edbc","signature":"da5db111a9d2de22823ee995915679458a445e12682a46227131988908a8b1ba"},{"version":"369ab177f8fe27fd42e332b6da0158a5027dd12133375f84404feaf29bc1222c","signature":"59696e7c88db46cccc4fb02e1f86530121199f77b7f3d93b1127b9db21eab74c"},{"version":"a250db92fda1c25e88ccedc7a6423a7e0aef12d7a5b7569d97581c0993778f9d","signature":"566b5cf8eee5b074ee98ed535154b734ecc1bf65881a4ddcde4bb3ec6029237b"},{"version":"dc9f41b9b101178180e43b452270f928c02938f9639b4e913c5f9b335a469b54","signature":"e1c2638aa4405529447d3936c80616a8e30e96b0073122cbc72a33f22f5d87f0"},{"version":"1b64a22903aa97f4505c4a15292cdc7d4415a93cbac0a3a045de1665246f5019","signature":"da5db111a9d2de22823ee995915679458a445e12682a46227131988908a8b1ba"},{"version":"cb056bc4d44cf5e51a702e88aec98e49bf0aa5312097babd816dfd66b980808a","signature":"fa56f33630e07eabac5e100ee1e76b28249b4ad55149c70361247079dc7aa3e7"},{"version":"5b4ac0ed6c264e7aef955c7724bcfedf57b62073f41c9e30d9900a1febdb268e","signature":"c26fa694535a879e1120407767a382338f420e3be9f8c699bd4ec64568e26497"},{"version":"52faf5fd2a568908e643283c2a04885b224bca85a9024239e00789e5eb50b045","signature":"47d14edf2e6c0319bb1b5ce19f6b8f411b106d3c361a3cc7a93e7b5294883842"}],"root":[37,65,[76,78],[94,96],[121,127],132,133,[135,144]],"options":{"allowJs":true,"allowSyntheticDefaultImports":true,"declaration":true,"esModuleInterop":false,"experimentalDecorators":true,"importHelpers":true,"inlineSources":true,"module":99,"noEmitOnError":true,"outDir":"./dist","rootDir":"./src","skipLibCheck":true,"sourceMap":true,"strict":true,"target":5},"fileIdsList":[[66],[67],[66,67,68,69,70,71,72,73,74],[54],[46,54],[46,54,62],[56],[44,45],[53,111],[50,53,104,106,107,108,109],[50,101,110],[53,113],[53],[53,100],[50,53],[53,102],[53,103],[53,98],[53,108],[53,107],[50,53,102],[53,105],[50,53,101,104,106,107,116,117],[50,53,114,118],[53,119],[128,129,130],[50,53,128],[53,97,128],[39],[91],[79,81,82,83,84,85,86,87,88,89,90,91],[79,80,82,83,84,85,86,87,88,89,90,91],[80,81,82,83,84,85,86,87,88,89,90,91],[79,80,81,83,84,85,86,87,88,89,90,91],[79,80,81,82,84,85,86,87,88,89,90,91],[79,80,81,82,83,85,86,87,88,89,90,91],[79,80,81,82,83,84,86,87,88,89,90,91],[79,80,81,82,83,84,85,87,88,89,90,91],[79,80,81,82,83,84,85,86,88,89,90,91],[79,80,81,82,83,84,85,86,87,89,90,91],[79,80,81,82,83,84,85,86,87,88,90,91],[79,80,81,82,83,84,85,86,87,88,89,91],[79,80,81,82,83,84,85,86,87,88,89,90],[47],[40],[40,41,42],[41],[46,50],[50],[49,50],[48,49],[55,56,57,58,59,60,61,62,63],[115],[46,50,51,52],[38,78,92,93],[38,75,76],[38,132],[38,53,64,75,93,97,121],[38,53,64,97,99,112,120,123],[38,53,64,93,97,123],[38,53,64,93,97,99,122],[38,53,64,93,97,122],[38,53],[38,53,64,97,124,125,126,127,131],[38,94],[38,40,43,53,64,65,76,77],[38,134],[38],[38,136,137,138,139,140,141,142,143]],"referencedMap":[[74,1],[72,1],[71,2],[67,1],[75,3],[73,2],[69,2],[70,2],[55,4],[58,5],[56,5],[60,5],[63,6],[62,5],[61,5],[59,5],[57,7],[46,8],[112,9],[110,10],[111,11],[114,12],[113,13],[101,14],[100,15],[103,16],[104,17],[99,18],[98,15],[102,13],[109,19],[108,20],[117,20],[105,21],[106,22],[118,23],[119,24],[120,25],[97,15],[131,26],[130,27],[129,28],[40,29],[92,30],[80,31],[81,32],[79,33],[82,34],[83,35],[84,36],[85,37],[86,38],[87,39],[88,40],[89,41],[90,42],[91,43],[48,44],[41,45],[43,46],[42,47],[51,48],[49,49],[115,50],[50,51],[64,52],[116,53],[53,54],[94,55],[77,56],[133,57],[122,58],[124,59],[125,60],[123,61],[126,62],[127,60],[121,63],[132,64],[95,65],[78,66],[135,67],[65,68],[136,68],[137,68],[138,68],[144,69],[139,68],[140,68],[141,68],[142,68],[143,68],[76,68]]},"version":"5.5.2"}
|
1
|
+
{"program":{"fileNames":["../../node_modules/typescript/lib/lib.es5.d.ts","../../node_modules/typescript/lib/lib.es2015.d.ts","../../node_modules/typescript/lib/lib.es2016.d.ts","../../node_modules/typescript/lib/lib.es2017.d.ts","../../node_modules/typescript/lib/lib.es2018.d.ts","../../node_modules/typescript/lib/lib.es2019.d.ts","../../node_modules/typescript/lib/lib.dom.d.ts","../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../node_modules/typescript/lib/lib.es2016.intl.d.ts","../../node_modules/typescript/lib/lib.es2017.date.d.ts","../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../node_modules/typescript/lib/lib.decorators.d.ts","../../node_modules/typescript/lib/lib.decorators.legacy.d.ts","./global/index.d.ts","../../node_modules/tslib/tslib.d.ts","../../node_modules/moment/ts3.1-typings/moment.d.ts","../../node_modules/@types/chart.js/index.d.ts","../../node_modules/chartjs-plugin-datalabels/types/context.d.ts","../../node_modules/chartjs-plugin-datalabels/types/options.d.ts","../../node_modules/chartjs-plugin-datalabels/types/index.d.ts","../../node_modules/@lit/reactive-element/css-tag.d.ts","../../node_modules/@lit/reactive-element/reactive-controller.d.ts","../../node_modules/@lit/reactive-element/reactive-element.d.ts","../../node_modules/@types/trusted-types/lib/index.d.ts","../../node_modules/@types/trusted-types/index.d.ts","../../node_modules/lit-html/directive.d.ts","../../node_modules/lit-html/lit-html.d.ts","../../node_modules/lit-element/lit-element.d.ts","../../node_modules/lit-html/is-server.d.ts","../../node_modules/lit/index.d.ts","../../node_modules/@lit/reactive-element/decorators/base.d.ts","../../node_modules/@lit/reactive-element/decorators/custom-element.d.ts","../../node_modules/@lit/reactive-element/decorators/property.d.ts","../../node_modules/@lit/reactive-element/decorators/state.d.ts","../../node_modules/@lit/reactive-element/decorators/event-options.d.ts","../../node_modules/@lit/reactive-element/decorators/query.d.ts","../../node_modules/@lit/reactive-element/decorators/query-all.d.ts","../../node_modules/@lit/reactive-element/decorators/query-async.d.ts","../../node_modules/@lit/reactive-element/decorators/query-assigned-nodes.d.ts","../../node_modules/@lit/reactive-element/decorators/query-assigned-elements.d.ts","../../node_modules/lit/decorators.d.ts","./node_modules/@operato/utils/dist/src/format.d.ts","./src/plugins/chartjs-plugin-data-binder.ts","./node_modules/@ctrl/tinycolor/dist/interfaces.d.ts","./node_modules/@ctrl/tinycolor/dist/index.d.ts","./node_modules/@ctrl/tinycolor/dist/css-color-names.d.ts","./node_modules/@ctrl/tinycolor/dist/readability.d.ts","./node_modules/@ctrl/tinycolor/dist/to-ms-filter.d.ts","./node_modules/@ctrl/tinycolor/dist/from-ratio.d.ts","./node_modules/@ctrl/tinycolor/dist/format-input.d.ts","./node_modules/@ctrl/tinycolor/dist/random.d.ts","./node_modules/@ctrl/tinycolor/dist/conversion.d.ts","./node_modules/@ctrl/tinycolor/dist/public_api.d.ts","./src/config-converter.ts","./src/ox-chart.ts","../../node_modules/@types/lodash/common/common.d.ts","../../node_modules/@types/lodash/common/array.d.ts","../../node_modules/@types/lodash/common/collection.d.ts","../../node_modules/@types/lodash/common/date.d.ts","../../node_modules/@types/lodash/common/function.d.ts","../../node_modules/@types/lodash/common/lang.d.ts","../../node_modules/@types/lodash/common/math.d.ts","../../node_modules/@types/lodash/common/number.d.ts","../../node_modules/@types/lodash/common/object.d.ts","../../node_modules/@types/lodash/common/seq.d.ts","../../node_modules/@types/lodash/common/string.d.ts","../../node_modules/@types/lodash/common/util.d.ts","../../node_modules/@types/lodash/index.d.ts","../../node_modules/@types/lodash/clonedeep.d.ts","../../node_modules/@hatiolab/things-scene/things-scene.d.ts","./src/chartjs.ts","./src/index.ts","./src/scene-chart.d.ts","./src/text-formatter.ts","../../node_modules/@operato/chart/src/types.d.ts","./src/editors/index.ts","../../node_modules/ses/types.d.ts","./src/plugins/chart-series-highlight.ts","./src/templates/bar-chart.ts","./src/templates/doughnut-chart.ts","./src/templates/horizontal-bar-chart.ts","./src/templates/line-chart.ts","./src/templates/mixed-chart.ts","./src/templates/pie-chart.ts","./src/templates/polar-area-chart.ts","./src/templates/radar-chart.ts","./src/templates/index.ts"],"fileInfos":[{"version":"44e584d4f6444f58791784f1d530875970993129442a847597db702a073ca68c","affectsGlobalScope":true},"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","9a68c0c07ae2fa71b44384a839b7b8d81662a236d4b9ac30916718f7510b1b2d","5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7",{"version":"4af6b0c727b7a2896463d512fafd23634229adf69ac7c00e2ae15a09cb084fad","affectsGlobalScope":true},{"version":"6920e1448680767498a0b77c6a00a8e77d14d62c3da8967b171f1ddffa3c18e4","affectsGlobalScope":true},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true},{"version":"4443e68b35f3332f753eacc66a04ac1d2053b8b035a0e0ac1d455392b5e243b3","affectsGlobalScope":true},{"version":"bc47685641087c015972a3f072480889f0d6c65515f12bd85222f49a98952ed7","affectsGlobalScope":true},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true},{"version":"93495ff27b8746f55d19fcbcdbaccc99fd95f19d057aed1bd2c0cafe1335fbf0","affectsGlobalScope":true},{"version":"6fc23bb8c3965964be8c597310a2878b53a0306edb71d4b5a4dfe760186bcc01","affectsGlobalScope":true},{"version":"ea011c76963fb15ef1cdd7ce6a6808b46322c527de2077b6cfdf23ae6f5f9ec7","affectsGlobalScope":true},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true},{"version":"bb42a7797d996412ecdc5b2787720de477103a0b2e53058569069a0e2bae6c7e","affectsGlobalScope":true},{"version":"4738f2420687fd85629c9efb470793bb753709c2379e5f85bc1815d875ceadcd","affectsGlobalScope":true},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true},{"version":"9fc46429fbe091ac5ad2608c657201eb68b6f1b8341bd6d670047d32ed0a88fa","affectsGlobalScope":true},{"version":"61c37c1de663cf4171e1192466e52c7a382afa58da01b1dc75058f032ddf0839","affectsGlobalScope":true},{"version":"b541a838a13f9234aba650a825393ffc2292dc0fc87681a5d81ef0c96d281e7a","affectsGlobalScope":true},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true},{"version":"33358442698bb565130f52ba79bfd3d4d484ac85fe33f3cb1759c54d18201393","affectsGlobalScope":true},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true},"c4f5f288a2b8dcfb6183e29612ec26b7a049314a6a10b7e6e700a8307077455a","4a882ffbb4ed09d9b7734f784aebb1dfe488d63725c40759165c5d9c657ca029","4051f6311deb0ce6052329eeb1cd4b1b104378fe52f882f483130bea75f92197","d5b4a95da4cb2c1d8cf8857d8110ea8e30654ce3b3fb90669dd1e99006af9f40","7abe341c118b8aa3ed2a51d9ef3ada999d223168317c5a977b238e804fab02af","74462c15e232d097b1b9888823cf513a1c5b63f57637a64c3eab6b8a236954ae","fe15b975a20fddd8407bdd885feee2ce04dbc6a7100d89f432cae2ed5fa32d26","e056bb30bf82271634daeee81f772f4a7960085f01f6d4d09c8da1ebe5f6a623","5e30131b6a5587fe666926ad1d9807e733c0a597ed12d682669fcaa331aea576",{"version":"86492a546c3308feaf1dde967afd325c321483b5e96f5fa9e9b6e691dc23fa9e","affectsGlobalScope":true},"15fe687c59d62741b4494d5e623d497d55eb38966ecf5bea7f36e48fc3fbe15e",{"version":"2c3b8be03577c98530ef9cb1a76e2c812636a871f367e9edf4c5f3ce702b77f8","affectsGlobalScope":true},"d4b4f6148a6444ec92db4ac4c7dd7050ffc32b21a10276a59498e04740e8fd8d","2524f58c8d67af441b487c0ce0e0dd9c18bf3d06c05f621874dcda9780d8e22c","c7dd759e5948a94b42422ba7cf70eb8455416def9447614a3bdc1a99b81fc8bb","1bcd560deed90a43c51b08aa18f7f55229f2e30974ab5ed1b7bb5721be379013","dc08fe04e50bc24d1baded4f33e942222bbdd5d77d6341a93cfe6e4e4586a3be","cdeae34aca6700620ebf3f27cf7d439c3af97595dd6e2729fa4780483add5680","3ff87ea3471b51beaf4aa8fd8f4422862b11d343fdbb55bf383e0f8cc195a445","1cc188904259bd0985b24d9dc2a160891cb5e94210901466b951716fcdb4ff62","732fb71ecb695d6f36ddcbb72ebfe4ff6b6491d45101a00fa2b75a26b80d640f","039cb05125d7621f8143616c495b8e6b54249c4e64d2754b80ff93867f7f4b01","1b81f1fa82ad30af01ab1cae91ccaddc10c48f5916bbd6d282155e44a65d858d","a0fc7a02a75802678a67000607f20266cf1a49dc0e787967efe514e31b9ed0c3","5ebf098a1d81d400b8af82807cf19893700335cf91a7b9dbd83a5d737af34b11","101cf83ac3f9c5e1a7355a02e4fbe988877ef83c4ebec0ff0f02b2af022254a3","d017e2fcd44b46ca80cd2b592a6314e75f5caab5bda230f0f4a45e964049a43a","a8992b852521a66f63e0cedc6e1f054b28f972232b6fa5ca59771db6a1c8bbea","940995980343a2bfebf515240e5eec487f845002a089bee0d18656ebf61d59aa",{"version":"2a385ee5ee8be6967e561a168bd016aca649249b3c5257e3d7242bedd824ba96","signature":"451d3fece5c5c4b956075d8bb4a745be00c820e7ec531d2dc34cbac349da6edf"},"d600313e3c07f919782e2cefcee7dd9af336e847d61d7bb6f77b813b08d4558e","c509b5642db6151661020758ac12bffa7652ffde20014b621a17a38ba2a39e32","df9d5f06a1692717762ca9f368917924fdaccfdfced152804d768eff9baeb352","34fec0d3b9abe499f5d53f1ae7a6c28d34ac289e5cff6f17587da846823cecb0","9ea3742314159f08b93e3dccb7fdba67637ba75736c12923d4df3ec9f40590ab","bc55f374f2b27277afd0ebdf0e503faa20ac18e81d15ac106e443ab354d3e892","4055e5f20cd88d6a1b97dcc9ef0708655901c23c974c17e7cb5a649ebb960b47","e35562032ca67f79d83bb8e2b86b61dfcbac6a914ce15b0e2235e6626dbd49f7","6fa98c19548b13e63df64ea3b9dcdd5b456059f2ec6ba14de67ba295c3884a9f","39fa2f68f5480e3f2dde09f8cf03e37c0b79479247c7a169ce833a39c3da38a3",{"version":"6770952d5f84b30c9b9ef25afea1caa6b25679542c6924f517740886f138f261","signature":"07c48a764b89ea34e444b5a0c05c7729a7cff3c5189ac2e3031e78dba920d245"},{"version":"e4dea90ebe9f38cc62bfd547e7665e94baaeecb2c7b42b2d9499e0dd54ed69f7","signature":"91b287ff81a964bd8329eabbd90b3aee7f498d8cc9ce47db3173dd9b2ff3d784"},"ff81bffa4ecfceae2e86b5920c3fcb250b66b1d6ed72944dffdf58123be2481b","458111fc89d11d2151277c822dfdc1a28fa5b6b2493cf942e37d4cd0a6ee5f22","da2b6356b84a40111aaecb18304ea4e4fcb43d70efb1c13ca7d7a906445ee0d3","187119ff4f9553676a884e296089e131e8cc01691c546273b1d0089c3533ce42","aa2c18a1b5a086bbcaae10a4efba409cc95ba7287d8cf8f2591b53704fea3dea","6f294731b495c65ecf46a5694f0082954b961cf05463bea823f8014098eaffa0","0aaef8cded245bf5036a7a40b65622dd6c4da71f7a35343112edbe112b348a1e","00baffbe8a2f2e4875367479489b5d43b5fc1429ecb4a4cc98cfc3009095f52a","6c65d33115c7410ecbb59db5fcbb042fc6b831a258d028dbb06b42b75d8459c1","3c92b6dfd43cc1c2485d9eba5ff0b74a19bb8725b692773ef1d66dac48cda4bd","b03afe4bec768ae333582915146f48b161e567a81b5ebc31c4d78af089770ac9","df996e25faa505f85aeb294d15ebe61b399cf1d1e49959cdfaf2cc0815c203f9","4f6a12044ee6f458db11964153830abbc499e73d065c51c329ec97407f4b13dd","a33ea06913b712c529662bee7fd75959781267cf8a307902cc7761307fec0337","26d1ec00a52200684283272eaed524de74adc033bdff6522f72e03c796a46ff8",{"version":"dcfa6a36119a1556ac9d6da24032597c2d97a7ccb77a908b99f81b5707746197","signature":"272d3d1a056956b22c1646a9fbcbab2d56b3f3870de930c952851a917b198d30"},{"version":"78c6d53cc1eb64fc05f155d23992d58b35b5d70d8fceaa0543192110bb69b574","signature":"cef57eca4ba1ae8c0afde5e6c97a829ee5b5307a9050f8a3b47b03f2f4ae7836"},{"version":"be140711e176421c4358dc1bb1a3e36b8a5896b2ed41363cd9e6d3499fb660fc","affectsGlobalScope":true},{"version":"82a61bbf2f2a49ac54deb08fe44e478cef829ed11ddc1e8cce32c6524cce8831","signature":"b37e05dfec9332a34af72e12bc2aa4da37cbc628bfc1670b4a1ab4cdef9a79fc"},{"version":"a434a8ce43233d7b5196e684bf7ce00de55148fb7cc348496ebd03809a3eb0a7","affectsGlobalScope":true},{"version":"7a0d201c9226117d5ec2f4a8d6d201e8f9eae4df0043587d766050e11fa03786","signature":"5e0ecf05f937c5302e7b1bfdd9de14b353b3417a90ff3b143700d1dafd1ff909"},{"version":"06b7262e728512b67d5a3455d6b5e9f6a7527a95c8c68f8132e2f6f390006d7e","affectsGlobalScope":true},{"version":"ffac3b495aa799974052a534a1de412026ac0d47a18500c36064c960aabdc667","signature":"4478b28f781ef8d549d8d10ec2332d97d6d6ce8e155ce70ca1dca59a7ebd2970"},{"version":"aae78c896415a37146ef2343bf0c21439cdcff1bb9173742bbc12e1805305f42","signature":"1d4e8898abfae5f702a118e75a3b23383853cfbec65a87ca176d4b6f5f3b2724"},{"version":"ea763b4bef8e57e8333d815b3c0748960c37bd8876be52c6897a043ee119edbc","signature":"da5db111a9d2de22823ee995915679458a445e12682a46227131988908a8b1ba"},{"version":"369ab177f8fe27fd42e332b6da0158a5027dd12133375f84404feaf29bc1222c","signature":"59696e7c88db46cccc4fb02e1f86530121199f77b7f3d93b1127b9db21eab74c"},{"version":"a250db92fda1c25e88ccedc7a6423a7e0aef12d7a5b7569d97581c0993778f9d","signature":"566b5cf8eee5b074ee98ed535154b734ecc1bf65881a4ddcde4bb3ec6029237b"},{"version":"dc9f41b9b101178180e43b452270f928c02938f9639b4e913c5f9b335a469b54","signature":"e1c2638aa4405529447d3936c80616a8e30e96b0073122cbc72a33f22f5d87f0"},{"version":"1b64a22903aa97f4505c4a15292cdc7d4415a93cbac0a3a045de1665246f5019","signature":"da5db111a9d2de22823ee995915679458a445e12682a46227131988908a8b1ba"},{"version":"cb056bc4d44cf5e51a702e88aec98e49bf0aa5312097babd816dfd66b980808a","signature":"fa56f33630e07eabac5e100ee1e76b28249b4ad55149c70361247079dc7aa3e7"},{"version":"5b4ac0ed6c264e7aef955c7724bcfedf57b62073f41c9e30d9900a1febdb268e","signature":"c26fa694535a879e1120407767a382338f420e3be9f8c699bd4ec64568e26497"},{"version":"52faf5fd2a568908e643283c2a04885b224bca85a9024239e00789e5eb50b045","signature":"47d14edf2e6c0319bb1b5ce19f6b8f411b106d3c361a3cc7a93e7b5294883842"}],"root":[37,66,77,78,[94,97],99,[101,110]],"options":{"allowJs":true,"allowSyntheticDefaultImports":true,"declaration":true,"esModuleInterop":false,"experimentalDecorators":true,"importHelpers":true,"inlineSources":true,"module":99,"noEmitOnError":true,"outDir":"./dist","rootDir":"./src","skipLibCheck":true,"sourceMap":true,"strict":true,"target":5},"fileIdsList":[[54],[46,54],[46,54,62],[56],[44,45],[39],[91],[79,81,82,83,84,85,86,87,88,89,90,91],[79,80,82,83,84,85,86,87,88,89,90,91],[80,81,82,83,84,85,86,87,88,89,90,91],[79,80,81,83,84,85,86,87,88,89,90,91],[79,80,81,82,84,85,86,87,88,89,90,91],[79,80,81,82,83,85,86,87,88,89,90,91],[79,80,81,82,83,84,86,87,88,89,90,91],[79,80,81,82,83,84,85,87,88,89,90,91],[79,80,81,82,83,84,85,86,88,89,90,91],[79,80,81,82,83,84,85,86,87,89,90,91],[79,80,81,82,83,84,85,86,87,88,90,91],[79,80,81,82,83,84,85,86,87,88,89,91],[79,80,81,82,83,84,85,86,87,88,89,90],[47],[40],[40,41,42],[41],[46,50],[50],[48,49],[55,56,57,58,59,60,61,62,63],[46,50,51,52],[67],[68],[67,68,69,70,71,72,73,74,75],[38,78,92,93],[38,65,76],[38],[38,94],[38,40,43,53,64,65,66,77],[38,100],[38,102,103,104,105,106,107,108,109]],"referencedMap":[[55,1],[58,2],[56,2],[60,2],[63,3],[62,2],[61,2],[59,2],[57,4],[46,5],[40,6],[92,7],[80,8],[81,9],[79,10],[82,11],[83,12],[84,13],[85,14],[86,15],[87,16],[88,17],[89,18],[90,19],[91,20],[48,21],[41,22],[43,23],[42,24],[51,25],[49,26],[50,27],[64,28],[53,29],[75,30],[73,30],[72,31],[68,30],[76,32],[74,31],[70,31],[71,31],[94,33],[77,34],[99,35],[95,36],[78,37],[101,38],[66,35],[102,35],[103,35],[104,35],[110,39],[105,35],[106,35],[107,35],[108,35],[109,35],[97,35]]},"version":"5.5.3"}
|
@@ -1,50 +0,0 @@
|
|
1
|
-
import '@operato/i18n/ox-i18n.js';
|
2
|
-
import { LitElement } from 'lit';
|
3
|
-
import { TinyColor } from '@ctrl/tinycolor';
|
4
|
-
import { Properties } from '@hatiolab/things-scene';
|
5
|
-
export default class PropertyEditorChartJSAbstract extends LitElement {
|
6
|
-
static styles: import("lit").CSSResult[];
|
7
|
-
value: any;
|
8
|
-
currentSeriesIndex: number;
|
9
|
-
render(): import("lit-html").TemplateResult<1>;
|
10
|
-
firstUpdated(): void;
|
11
|
-
displayValueTemplate(): import("lit-html").TemplateResult<1>;
|
12
|
-
editorTemplate(props: Properties): import("lit-html").TemplateResult<1>;
|
13
|
-
get data(): any;
|
14
|
-
set data(data: any);
|
15
|
-
get datasets(): any;
|
16
|
-
set datasets(datasets: any);
|
17
|
-
get series(): any;
|
18
|
-
set series(series: any);
|
19
|
-
set dataKey(key: any);
|
20
|
-
get dataKey(): any;
|
21
|
-
get legend(): any;
|
22
|
-
set legend(legend: any);
|
23
|
-
get theme(): any;
|
24
|
-
set theme(theme: any);
|
25
|
-
get tooltip(): boolean;
|
26
|
-
set tooltip(tooltip: boolean);
|
27
|
-
get animation(): boolean;
|
28
|
-
set animation(animation: boolean);
|
29
|
-
get scales(): any;
|
30
|
-
set scales(scales: any);
|
31
|
-
get display(): any;
|
32
|
-
set display(display: any);
|
33
|
-
get position(): any;
|
34
|
-
set position(position: any);
|
35
|
-
get stacked(): any;
|
36
|
-
set stacked(stacked: any);
|
37
|
-
get labelDataKey(): any;
|
38
|
-
set labelDataKey(labelDataKey: any);
|
39
|
-
set options(options: any);
|
40
|
-
get options(): any;
|
41
|
-
onValuesChanged(e: Event): void;
|
42
|
-
onTapAddTab(e: Event): void;
|
43
|
-
onTapRemoveCurrentTab(e: Event): void;
|
44
|
-
_getSeriesModel({ chartType, datasetsLength, lastSeriesColor }: {
|
45
|
-
chartType: any;
|
46
|
-
datasetsLength: number;
|
47
|
-
lastSeriesColor: TinyColor;
|
48
|
-
}): any;
|
49
|
-
_getElementValue(element: HTMLElement): any;
|
50
|
-
}
|
@@ -1,273 +0,0 @@
|
|
1
|
-
import { __decorate } from "tslib";
|
2
|
-
import '@operato/i18n/ox-i18n.js';
|
3
|
-
import { html, LitElement } from 'lit';
|
4
|
-
import { property } from 'lit/decorators.js';
|
5
|
-
import { random as randomColor, TinyColor } from '@ctrl/tinycolor';
|
6
|
-
import { PropertyEditorChartJSStyles } from './property-editor-chartjs-styles';
|
7
|
-
class PropertyEditorChartJSAbstract extends LitElement {
|
8
|
-
constructor() {
|
9
|
-
super(...arguments);
|
10
|
-
this.value = {};
|
11
|
-
this.currentSeriesIndex = 0;
|
12
|
-
}
|
13
|
-
render() {
|
14
|
-
return html `
|
15
|
-
<legend><ox-i18n msgid="label.chart">Chart</ox-i18n></legend>
|
16
|
-
|
17
|
-
<label> <ox-i18n msgid="label.theme">theme</ox-i18n> </label>
|
18
|
-
<select value-key="theme" class="select-content" .value=${this.theme}>
|
19
|
-
<option value="dark">dark</option>
|
20
|
-
<option value="light">light</option>
|
21
|
-
</select>
|
22
|
-
|
23
|
-
<input type="checkbox" value-key="tooltip" .checked=${this.tooltip} />
|
24
|
-
<label> <ox-i18n msgid="label.tooltip">Tooltip</ox-i18n> </label>
|
25
|
-
|
26
|
-
<input type="checkbox" value-key="animation" .checked=${this.animation} />
|
27
|
-
<label> <ox-i18n msgid="label.animation">Animation</ox-i18n> </label>
|
28
|
-
|
29
|
-
<input type="checkbox" value-key="display" .checked=${this.display} />
|
30
|
-
<label> <ox-i18n msgid="label.legend">Legend</ox-i18n> </label>
|
31
|
-
|
32
|
-
<input type="checkbox" value-key="stacked" .checked=${this.stacked} />
|
33
|
-
<label> <ox-i18n msgid="label.stacked">Stacked</ox-i18n> </label>
|
34
|
-
|
35
|
-
${this.display
|
36
|
-
? html `
|
37
|
-
<label> <ox-i18n msgid="label.position">Position</ox-i18n> </label>
|
38
|
-
<select value-key="position" class="select-content" .value=${this.position}>
|
39
|
-
<option value="top">top</option>
|
40
|
-
<option value="right">right</option>
|
41
|
-
<option value="bottom">bottom</option>
|
42
|
-
<option value="left">left</option>
|
43
|
-
</select>
|
44
|
-
`
|
45
|
-
: html ``}
|
46
|
-
${this.editorTemplate(this)}
|
47
|
-
`;
|
48
|
-
}
|
49
|
-
firstUpdated() {
|
50
|
-
this.renderRoot.addEventListener('change', this.onValuesChanged.bind(this));
|
51
|
-
}
|
52
|
-
displayValueTemplate() {
|
53
|
-
return html `
|
54
|
-
<label for="value-format"> <ox-i18n msgid="label.value-format">Value Format</ox-i18n> </label>
|
55
|
-
<input type="text" value-key="series.valueFormat" .value=${this.series.valueFormat || ''} list="format-list" />
|
56
|
-
<datalist id="format-list">
|
57
|
-
<option value="#,###."></option>
|
58
|
-
<option value="#,###.#"></option>
|
59
|
-
<option value="#,###.0"></option>
|
60
|
-
<option value="#,##0.#"></option>
|
61
|
-
<option value="#,##0.0"></option>
|
62
|
-
<option value="#,##0.0%"></option>
|
63
|
-
</datalist>
|
64
|
-
|
65
|
-
<label> <ox-i18n msgid="label.value-prefix">Value Prefix</ox-i18n> </label>
|
66
|
-
<input type="text" value-key="series.valuePrefix" .value=${this.series.valuePrefix || ''} />
|
67
|
-
|
68
|
-
<label> <ox-i18n msgid="label.value-suffix">Value suffix</ox-i18n> </label>
|
69
|
-
<input type="text" value-key="series.valueSuffix" .value=${this.series.valueSuffix || ''} />
|
70
|
-
|
71
|
-
<input type="checkbox" value-key="series.displayValue" .checked=${this.series.displayValue || false} />
|
72
|
-
<label> <ox-i18n msgid="label.value-display">Value Display</ox-i18n> </label>
|
73
|
-
|
74
|
-
${this.series.displayValue
|
75
|
-
? html `
|
76
|
-
<label> <ox-i18n msgid="label.font-color">Font Color</ox-i18n> </label>
|
77
|
-
<ox-input-color
|
78
|
-
value-key="series.defaultFontColor"
|
79
|
-
.value=${this.series.defaultFontColor || '#000'}
|
80
|
-
></ox-input-color>
|
81
|
-
<label> <ox-i18n msgid="label.font-size">Font Size</ox-i18n> </label>
|
82
|
-
<input type="number" value-key="series.defaultFontSize" .value=${this.series.defaultFontSize || 10} />
|
83
|
-
<label> <ox-i18n msgid="label.position">Position</ox-i18n> </label>
|
84
|
-
<select value-key="series.dataLabelAnchor" .value=${this.series.dataLabelAnchor || 'center'}>
|
85
|
-
<option value="start">Start</option>
|
86
|
-
<option value="center" selected>Center</option>
|
87
|
-
<option value="end">End</option>
|
88
|
-
</select>
|
89
|
-
`
|
90
|
-
: html ``}
|
91
|
-
`;
|
92
|
-
}
|
93
|
-
editorTemplate(props) {
|
94
|
-
return html ``;
|
95
|
-
}
|
96
|
-
get data() {
|
97
|
-
return this.value.data;
|
98
|
-
}
|
99
|
-
set data(data) {
|
100
|
-
this.value.data = data;
|
101
|
-
}
|
102
|
-
get datasets() {
|
103
|
-
if (!this.data.datasets)
|
104
|
-
this.data.datasets = [];
|
105
|
-
return this.data.datasets;
|
106
|
-
}
|
107
|
-
set datasets(datasets) {
|
108
|
-
this.datasets = datasets;
|
109
|
-
}
|
110
|
-
get series() {
|
111
|
-
if (!this.datasets[this.currentSeriesIndex])
|
112
|
-
this.datasets[this.currentSeriesIndex] = {};
|
113
|
-
return this.datasets[this.currentSeriesIndex];
|
114
|
-
}
|
115
|
-
set series(series) {
|
116
|
-
!this.data ? (this.data = { dataset: [series] }) : (this.datasets[this.currentSeriesIndex] = series);
|
117
|
-
}
|
118
|
-
set dataKey(key) {
|
119
|
-
this.series.dataKey = key;
|
120
|
-
}
|
121
|
-
get dataKey() {
|
122
|
-
return this.series.dataKey;
|
123
|
-
}
|
124
|
-
get legend() {
|
125
|
-
!this.value.options && (this.value.options = {});
|
126
|
-
return this.value.options.legend;
|
127
|
-
}
|
128
|
-
set legend(legend) {
|
129
|
-
this.value.options.legend = legend;
|
130
|
-
}
|
131
|
-
get theme() {
|
132
|
-
return this.value.options && this.value.options.theme;
|
133
|
-
}
|
134
|
-
set theme(theme) {
|
135
|
-
!this.value.options && (this.value.options = {});
|
136
|
-
this.value.options.theme = theme;
|
137
|
-
}
|
138
|
-
get tooltip() {
|
139
|
-
return !this.value.options || this.value.options.tooltip !== false; /* default true */
|
140
|
-
}
|
141
|
-
set tooltip(tooltip) {
|
142
|
-
this.value.options.tooltip = tooltip;
|
143
|
-
}
|
144
|
-
get animation() {
|
145
|
-
return !this.value.options || this.value.options.animation !== false; /* default true */
|
146
|
-
}
|
147
|
-
set animation(animation) {
|
148
|
-
this.value.options.animation = animation;
|
149
|
-
}
|
150
|
-
get scales() {
|
151
|
-
return this.value.options.scales;
|
152
|
-
}
|
153
|
-
set scales(scales) {
|
154
|
-
!this.value.options && (this.value.options = {});
|
155
|
-
this.value.options.scales = scales;
|
156
|
-
}
|
157
|
-
get display() {
|
158
|
-
return this.legend && this.legend.display;
|
159
|
-
}
|
160
|
-
set display(display) {
|
161
|
-
this.legend.display = display;
|
162
|
-
}
|
163
|
-
get position() {
|
164
|
-
return this.legend.position;
|
165
|
-
}
|
166
|
-
set position(position) {
|
167
|
-
this.legend.position = position;
|
168
|
-
}
|
169
|
-
get stacked() {
|
170
|
-
return this.value.options.stacked;
|
171
|
-
}
|
172
|
-
set stacked(stacked) {
|
173
|
-
this.value.options.stacked = stacked;
|
174
|
-
}
|
175
|
-
get labelDataKey() {
|
176
|
-
return this.data && this.data.labelDataKey;
|
177
|
-
}
|
178
|
-
set labelDataKey(labelDataKey) {
|
179
|
-
this.data.labelDataKey = labelDataKey;
|
180
|
-
}
|
181
|
-
set options(options) {
|
182
|
-
this.value.options = options;
|
183
|
-
}
|
184
|
-
get options() {
|
185
|
-
return this.value.options;
|
186
|
-
}
|
187
|
-
onValuesChanged(e) {
|
188
|
-
var element = e.target;
|
189
|
-
var key = element.getAttribute('value-key');
|
190
|
-
var value = element.value;
|
191
|
-
if (!key) {
|
192
|
-
return;
|
193
|
-
}
|
194
|
-
value = this._getElementValue(element);
|
195
|
-
var attrs = key.split('.');
|
196
|
-
var attr = attrs.shift() || '';
|
197
|
-
var variable = this;
|
198
|
-
while (attrs.length > 0) {
|
199
|
-
//@ts-ignore
|
200
|
-
variable = variable[attr];
|
201
|
-
attr = attrs.shift() || '';
|
202
|
-
}
|
203
|
-
//@ts-ignore
|
204
|
-
variable[attr] = value;
|
205
|
-
this.dispatchEvent(new CustomEvent('change', { bubbles: true, composed: true }));
|
206
|
-
this.requestUpdate();
|
207
|
-
}
|
208
|
-
onTapAddTab(e) {
|
209
|
-
if (!this.value.data.datasets)
|
210
|
-
return;
|
211
|
-
var lastSeriesIndex = this.value.data.datasets.length;
|
212
|
-
var chartType = this.series.type || this.value.type;
|
213
|
-
var lastSeriesColor = new TinyColor(this.datasets[lastSeriesIndex - 1].backgroundColor);
|
214
|
-
var seriesModel = this._getSeriesModel({
|
215
|
-
chartType,
|
216
|
-
datasetsLength: lastSeriesIndex,
|
217
|
-
lastSeriesColor
|
218
|
-
});
|
219
|
-
this.value.data.datasets.push(seriesModel);
|
220
|
-
this.dispatchEvent(new CustomEvent('change', { bubbles: true, composed: true }));
|
221
|
-
this.currentSeriesIndex = lastSeriesIndex;
|
222
|
-
}
|
223
|
-
onTapRemoveCurrentTab(e) {
|
224
|
-
if (!this.value.data.datasets)
|
225
|
-
return;
|
226
|
-
var currIndex = this.currentSeriesIndex;
|
227
|
-
this.value.data.datasets.splice(currIndex, 1);
|
228
|
-
currIndex--;
|
229
|
-
if (currIndex < 0)
|
230
|
-
currIndex = 0;
|
231
|
-
this.dispatchEvent(new CustomEvent('change', { bubbles: true, composed: true }));
|
232
|
-
this.currentSeriesIndex = currIndex;
|
233
|
-
this.requestUpdate();
|
234
|
-
}
|
235
|
-
_getSeriesModel({ chartType, datasetsLength, lastSeriesColor }) {
|
236
|
-
var addSeriesOption = {
|
237
|
-
label: `series ${datasetsLength + 1}`,
|
238
|
-
data: [],
|
239
|
-
borderWidth: 1,
|
240
|
-
dataKey: '',
|
241
|
-
yAxisID: 'left',
|
242
|
-
color: randomColor({
|
243
|
-
hue: lastSeriesColor
|
244
|
-
}).toRgbString()
|
245
|
-
};
|
246
|
-
addSeriesOption.type = addSeriesOption.chartType = chartType;
|
247
|
-
return addSeriesOption;
|
248
|
-
}
|
249
|
-
_getElementValue(element) {
|
250
|
-
switch (element.tagName) {
|
251
|
-
case 'INPUT':
|
252
|
-
switch (element.type) {
|
253
|
-
case 'checkbox':
|
254
|
-
return element.checked;
|
255
|
-
case 'number':
|
256
|
-
return Number(element.value) || 0;
|
257
|
-
case 'text':
|
258
|
-
return String(element.value);
|
259
|
-
}
|
260
|
-
default:
|
261
|
-
return element.value;
|
262
|
-
}
|
263
|
-
}
|
264
|
-
}
|
265
|
-
PropertyEditorChartJSAbstract.styles = [PropertyEditorChartJSStyles];
|
266
|
-
export default PropertyEditorChartJSAbstract;
|
267
|
-
__decorate([
|
268
|
-
property({ type: Object })
|
269
|
-
], PropertyEditorChartJSAbstract.prototype, "value", void 0);
|
270
|
-
__decorate([
|
271
|
-
property({ type: Number })
|
272
|
-
], PropertyEditorChartJSAbstract.prototype, "currentSeriesIndex", void 0);
|
273
|
-
//# sourceMappingURL=property-editor-chartjs-abstract.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"property-editor-chartjs-abstract.js","sourceRoot":"","sources":["../../src/editors/property-editor-chartjs-abstract.ts"],"names":[],"mappings":";AAAA,OAAO,0BAA0B,CAAA;AAEjC,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,KAAK,CAAA;AACtC,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAE5C,OAAO,EAAE,MAAM,IAAI,WAAW,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAGlE,OAAO,EAAE,2BAA2B,EAAE,MAAM,k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,WAAW,EAAE;SACjB,CAAA;QAED,eAAe,CAAC,IAAI,GAAG,eAAe,CAAC,SAAS,GAAG,SAAS,CAAA;QAC5D,OAAO,eAAe,CAAA;IACxB,CAAC;IAED,gBAAgB,CAAC,OAAoB;QACnC,QAAQ,OAAO,CAAC,OAAO,EAAE,CAAC;YACxB,KAAK,OAAO;gBACV,QAAS,OAA4B,CAAC,IAAI,EAAE,CAAC;oBAC3C,KAAK,UAAU;wBACb,OAAQ,OAA4B,CAAC,OAAO,CAAA;oBAC9C,KAAK,QAAQ;wBACX,OAAO,MAAM,CAAE,OAA4B,CAAC,KAAK,CAAC,IAAI,CAAC,CAAA;oBACzD,KAAK,MAAM;wBACT,OAAO,MAAM,CAAE,OAA4B,CAAC,KAAK,CAAC,CAAA;gBACtD,CAAC;YAEH;gBACE,OAAQ,OAAe,CAAC,KAAK,CAAA;QACjC,CAAC;IACH,CAAC;;AAvTM,oCAAM,GAAG,CAAC,2BAA2B,CAAC,AAAhC,CAAgC;eAD1B,6BAA6B;AAGpB;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;4DAAgB;AACf;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;yEAA+B","sourcesContent":["import '@operato/i18n/ox-i18n.js'\n\nimport { html, LitElement } from 'lit'\nimport { property } from 'lit/decorators.js'\n\nimport { random as randomColor, TinyColor } from '@ctrl/tinycolor'\nimport { Properties } from '@hatiolab/things-scene'\n\nimport { PropertyEditorChartJSStyles } from './property-editor-chartjs-styles'\n\nexport default class PropertyEditorChartJSAbstract extends LitElement {\n static styles = [PropertyEditorChartJSStyles]\n\n @property({ type: Object }) value: any = {}\n @property({ type: Number }) currentSeriesIndex: number = 0\n\n render() {\n return html`\n <legend><ox-i18n msgid=\"label.chart\">Chart</ox-i18n></legend>\n\n <label> <ox-i18n msgid=\"label.theme\">theme</ox-i18n> </label>\n <select value-key=\"theme\" class=\"select-content\" .value=${this.theme}>\n <option value=\"dark\">dark</option>\n <option value=\"light\">light</option>\n </select>\n\n <input type=\"checkbox\" value-key=\"tooltip\" .checked=${this.tooltip} />\n <label> <ox-i18n msgid=\"label.tooltip\">Tooltip</ox-i18n> </label>\n\n <input type=\"checkbox\" value-key=\"animation\" .checked=${this.animation} />\n <label> <ox-i18n msgid=\"label.animation\">Animation</ox-i18n> </label>\n\n <input type=\"checkbox\" value-key=\"display\" .checked=${this.display} />\n <label> <ox-i18n msgid=\"label.legend\">Legend</ox-i18n> </label>\n\n <input type=\"checkbox\" value-key=\"stacked\" .checked=${this.stacked} />\n <label> <ox-i18n msgid=\"label.stacked\">Stacked</ox-i18n> </label>\n\n ${this.display\n ? html`\n <label> <ox-i18n msgid=\"label.position\">Position</ox-i18n> </label>\n <select value-key=\"position\" class=\"select-content\" .value=${this.position}>\n <option value=\"top\">top</option>\n <option value=\"right\">right</option>\n <option value=\"bottom\">bottom</option>\n <option value=\"left\">left</option>\n </select>\n `\n : html``}\n ${this.editorTemplate(this)}\n `\n }\n\n firstUpdated() {\n this.renderRoot.addEventListener('change', this.onValuesChanged.bind(this))\n }\n\n displayValueTemplate() {\n return html`\n <label for=\"value-format\"> <ox-i18n msgid=\"label.value-format\">Value Format</ox-i18n> </label>\n <input type=\"text\" value-key=\"series.valueFormat\" .value=${this.series.valueFormat || ''} list=\"format-list\" />\n <datalist id=\"format-list\">\n <option value=\"#,###.\"></option>\n <option value=\"#,###.#\"></option>\n <option value=\"#,###.0\"></option>\n <option value=\"#,##0.#\"></option>\n <option value=\"#,##0.0\"></option>\n <option value=\"#,##0.0%\"></option>\n </datalist>\n\n <label> <ox-i18n msgid=\"label.value-prefix\">Value Prefix</ox-i18n> </label>\n <input type=\"text\" value-key=\"series.valuePrefix\" .value=${this.series.valuePrefix || ''} />\n\n <label> <ox-i18n msgid=\"label.value-suffix\">Value suffix</ox-i18n> </label>\n <input type=\"text\" value-key=\"series.valueSuffix\" .value=${this.series.valueSuffix || ''} />\n\n <input type=\"checkbox\" value-key=\"series.displayValue\" .checked=${this.series.displayValue || false} />\n <label> <ox-i18n msgid=\"label.value-display\">Value Display</ox-i18n> </label>\n\n ${this.series.displayValue\n ? html`\n <label> <ox-i18n msgid=\"label.font-color\">Font Color</ox-i18n> </label>\n <ox-input-color\n value-key=\"series.defaultFontColor\"\n .value=${this.series.defaultFontColor || '#000'}\n ></ox-input-color>\n <label> <ox-i18n msgid=\"label.font-size\">Font Size</ox-i18n> </label>\n <input type=\"number\" value-key=\"series.defaultFontSize\" .value=${this.series.defaultFontSize || 10} />\n <label> <ox-i18n msgid=\"label.position\">Position</ox-i18n> </label>\n <select value-key=\"series.dataLabelAnchor\" .value=${this.series.dataLabelAnchor || 'center'}>\n <option value=\"start\">Start</option>\n <option value=\"center\" selected>Center</option>\n <option value=\"end\">End</option>\n </select>\n `\n : html``}\n `\n }\n\n editorTemplate(props: Properties) {\n return html``\n }\n\n get data() {\n return this.value.data\n }\n\n set data(data) {\n this.value.data = data\n }\n\n get datasets() {\n if (!this.data.datasets) this.data.datasets = []\n\n return this.data.datasets\n }\n\n set datasets(datasets) {\n this.datasets = datasets\n }\n\n get series() {\n if (!this.datasets[this.currentSeriesIndex]) this.datasets[this.currentSeriesIndex] = {}\n return this.datasets[this.currentSeriesIndex]\n }\n\n set series(series) {\n !this.data ? (this.data = { dataset: [series] }) : (this.datasets[this.currentSeriesIndex] = series)\n }\n\n set dataKey(key) {\n this.series.dataKey = key\n }\n\n get dataKey() {\n return this.series.dataKey\n }\n\n get legend() {\n !this.value.options && (this.value.options = {})\n return this.value.options.legend\n }\n\n set legend(legend) {\n this.value.options.legend = legend\n }\n\n get theme() {\n return this.value.options && this.value.options.theme\n }\n\n set theme(theme) {\n !this.value.options && (this.value.options = {})\n this.value.options.theme = theme\n }\n\n get tooltip() {\n return !this.value.options || this.value.options.tooltip !== false /* default true */\n }\n\n set tooltip(tooltip) {\n this.value.options.tooltip = tooltip\n }\n\n get animation() {\n return !this.value.options || this.value.options.animation !== false /* default true */\n }\n\n set animation(animation) {\n this.value.options.animation = animation\n }\n\n get scales() {\n return this.value.options.scales\n }\n\n set scales(scales) {\n !this.value.options && (this.value.options = {})\n this.value.options.scales = scales\n }\n\n get display() {\n return this.legend && this.legend.display\n }\n\n set display(display) {\n this.legend.display = display\n }\n\n get position() {\n return this.legend.position\n }\n\n set position(position) {\n this.legend.position = position\n }\n\n get stacked() {\n return this.value.options.stacked\n }\n\n set stacked(stacked) {\n this.value.options.stacked = stacked\n }\n\n get labelDataKey() {\n return this.data && this.data.labelDataKey\n }\n\n set labelDataKey(labelDataKey) {\n this.data.labelDataKey = labelDataKey\n }\n\n set options(options) {\n this.value.options = options\n }\n\n get options() {\n return this.value.options\n }\n\n onValuesChanged(e: Event) {\n var element = e.target as HTMLInputElement\n var key = element.getAttribute('value-key')\n var value = element.value\n\n if (!key) {\n return\n }\n\n value = this._getElementValue(element)\n\n var attrs = key.split('.')\n var attr = attrs.shift() || ''\n var variable = this\n\n while (attrs.length > 0) {\n //@ts-ignore\n variable = variable[attr]\n attr = attrs.shift() || ''\n }\n\n //@ts-ignore\n variable[attr] = value\n\n this.dispatchEvent(new CustomEvent('change', { bubbles: true, composed: true }))\n this.requestUpdate()\n }\n\n onTapAddTab(e: Event) {\n if (!this.value.data.datasets) return\n\n var lastSeriesIndex = this.value.data.datasets.length\n var chartType = this.series.type || this.value.type\n var lastSeriesColor = new TinyColor(this.datasets[lastSeriesIndex - 1].backgroundColor)\n\n var seriesModel = this._getSeriesModel({\n chartType,\n datasetsLength: lastSeriesIndex,\n lastSeriesColor\n })\n\n this.value.data.datasets.push(seriesModel)\n this.dispatchEvent(new CustomEvent('change', { bubbles: true, composed: true }))\n this.currentSeriesIndex = lastSeriesIndex\n }\n\n onTapRemoveCurrentTab(e: Event) {\n if (!this.value.data.datasets) return\n\n var currIndex = this.currentSeriesIndex\n this.value.data.datasets.splice(currIndex, 1)\n\n currIndex--\n\n if (currIndex < 0) currIndex = 0\n\n this.dispatchEvent(new CustomEvent('change', { bubbles: true, composed: true }))\n this.currentSeriesIndex = currIndex\n\n this.requestUpdate()\n }\n\n _getSeriesModel({\n chartType,\n datasetsLength,\n lastSeriesColor\n }: {\n chartType: any\n datasetsLength: number\n lastSeriesColor: TinyColor\n }) {\n var addSeriesOption: any = {\n label: `series ${datasetsLength + 1}`,\n data: [],\n borderWidth: 1,\n dataKey: '',\n yAxisID: 'left',\n color: randomColor({\n hue: lastSeriesColor as any\n }).toRgbString()\n }\n\n addSeriesOption.type = addSeriesOption.chartType = chartType\n return addSeriesOption\n }\n\n _getElementValue(element: HTMLElement) {\n switch (element.tagName) {\n case 'INPUT':\n switch ((element as HTMLInputElement).type) {\n case 'checkbox':\n return (element as HTMLInputElement).checked\n case 'number':\n return Number((element as HTMLInputElement).value) || 0\n case 'text':\n return String((element as HTMLInputElement).value)\n }\n\n default:\n return (element as any).value\n }\n }\n}\n"]}
|
@@ -1,10 +0,0 @@
|
|
1
|
-
import '@material/web/icon/icon.js';
|
2
|
-
import '@material/web/button/elevated-button.js';
|
3
|
-
import '@material/web/tabs/tabs.js';
|
4
|
-
import '@operato/i18n/ox-i18n.js';
|
5
|
-
import PropertyEditorChartJSMultiSeriesAbstract from './property-editor-chartjs-multi-series-abstract';
|
6
|
-
export default class PropertyEditorChartJSHBar extends PropertyEditorChartJSMultiSeriesAbstract {
|
7
|
-
static styles: import("lit").CSSResult[];
|
8
|
-
editorTemplate(): import("lit-html").TemplateResult<1>;
|
9
|
-
multiSeriesTabTemplate(): import("lit-html").TemplateResult<1>;
|
10
|
-
}
|