@sme.up/ketchup 7.3.1 → 7.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/ketchup.cjs.js +1 -1
- package/dist/cjs/kup-echart.cjs.entry.js +42 -1
- package/dist/cjs/kup-planner.cjs.entry.js +11688 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/assets/echart.js +167 -0
- package/dist/collection/assets/gantt.js +0 -0
- package/dist/collection/assets/index.js +4 -0
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/kup-echart/kup-echart-declarations.js +1 -0
- package/dist/collection/components/kup-echart/kup-echart.js +41 -1
- package/dist/collection/components/kup-planner/kup-planner-declarations.js +42 -0
- package/dist/collection/components/kup-planner/kup-planner.css +489 -0
- package/dist/collection/components/kup-planner/kup-planner.js +708 -0
- package/dist/components/kup-echart2.js +42 -1
- package/dist/components/kup-planner.d.ts +11 -0
- package/dist/components/kup-planner.js +11858 -0
- package/dist/esm/ketchup.js +1 -1
- package/dist/esm/kup-echart.entry.js +42 -1
- package/dist/esm/kup-planner.entry.js +11684 -0
- package/dist/esm/loader.js +1 -1
- package/dist/ketchup/ketchup.esm.js +1 -1
- package/dist/ketchup/p-cb6c8417.entry.js +10 -0
- package/dist/ketchup/{p-78b093e3.entry.js → p-ff11d6d0.entry.js} +3 -3
- package/dist/types/components/kup-echart/kup-echart-declarations.d.ts +2 -1
- package/dist/types/components/kup-planner/kup-planner-declarations.d.ts +52 -0
- package/dist/types/components/kup-planner/kup-planner.d.ts +72 -0
- package/dist/types/components.d.ts +85 -0
- package/package.json +6 -1
|
@@ -93303,6 +93303,7 @@ var KupEchartTypes;
|
|
|
93303
93303
|
KupEchartTypes["PIE"] = "Pie";
|
|
93304
93304
|
KupEchartTypes["SCATTER"] = "Scatter";
|
|
93305
93305
|
KupEchartTypes["FUNNEL"] = "Funnel";
|
|
93306
|
+
KupEchartTypes["RADAR"] = "Radar";
|
|
93306
93307
|
})(KupEchartTypes || (KupEchartTypes = {}));
|
|
93307
93308
|
|
|
93308
93309
|
const kupEchartCss = ":host{display:block;height:var(--kup_echart_height, 100%);min-height:var(--kup_echart_height, 100%);min-width:var(--kup_echart_width, 100%);width:var(--kup_echart_width, 100%)}#kup-component{width:100%;height:100%;position:relative}";
|
|
@@ -93323,7 +93324,7 @@ var __classPrivateFieldSet = (undefined && undefined.__classPrivateFieldSet) ||
|
|
|
93323
93324
|
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
93324
93325
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
93325
93326
|
};
|
|
93326
|
-
var _KupEchart_instances, _KupEchart_chartContainer, _KupEchart_chartEl, _KupEchart_gaussianDatasets, _KupEchart_kupManager, _KupEchart_mapObj, _KupEchart_resizeTimeout, _KupEchart_sortedDataset, _KupEchart_themeBorder, _KupEchart_themeBackground, _KupEchart_minColorHeatMap, _KupEchart_maxColorHeatMap, _KupEchart_themeFont, _KupEchart_themeText, _KupEchart_initChart, _KupEchart_createChart, _KupEchart_funnelChart, _KupEchart_createX, _KupEchart_createY, _KupEchart_setAxisColors, _KupEchart_setLegend, _KupEchart_setTitle, _KupEchart_setTooltip, _KupEchart_setVisualMap, _KupEchart_setMapOptions, _KupEchart_setPieOptions, _KupEchart_setGaussianOptions, _KupEchart_addSeries, _KupEchart_setOptions, _KupEchart_setColors, _KupEchart_checks;
|
|
93327
|
+
var _KupEchart_instances, _KupEchart_chartContainer, _KupEchart_chartEl, _KupEchart_gaussianDatasets, _KupEchart_kupManager, _KupEchart_mapObj, _KupEchart_resizeTimeout, _KupEchart_sortedDataset, _KupEchart_themeBorder, _KupEchart_themeBackground, _KupEchart_minColorHeatMap, _KupEchart_maxColorHeatMap, _KupEchart_themeFont, _KupEchart_themeText, _KupEchart_initChart, _KupEchart_createChart, _KupEchart_funnelChart, _KupEchart_radarChart, _KupEchart_createX, _KupEchart_createY, _KupEchart_setAxisColors, _KupEchart_setLegend, _KupEchart_setTitle, _KupEchart_setTooltip, _KupEchart_setVisualMap, _KupEchart_setMapOptions, _KupEchart_setPieOptions, _KupEchart_setGaussianOptions, _KupEchart_addSeries, _KupEchart_setOptions, _KupEchart_setColors, _KupEchart_checks;
|
|
93327
93328
|
const KupEchart = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
93328
93329
|
constructor() {
|
|
93329
93330
|
super();
|
|
@@ -93514,6 +93515,9 @@ _KupEchart_chartContainer = new WeakMap(), _KupEchart_chartEl = new WeakMap(), _
|
|
|
93514
93515
|
case KupEchartTypes.FUNNEL:
|
|
93515
93516
|
options = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_funnelChart).call(this);
|
|
93516
93517
|
break;
|
|
93518
|
+
case KupEchartTypes.RADAR:
|
|
93519
|
+
options = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_radarChart).call(this);
|
|
93520
|
+
break;
|
|
93517
93521
|
default:
|
|
93518
93522
|
options = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setOptions).call(this);
|
|
93519
93523
|
break;
|
|
@@ -93611,6 +93615,43 @@ _KupEchart_chartContainer = new WeakMap(), _KupEchart_chartEl = new WeakMap(), _
|
|
|
93611
93615
|
},
|
|
93612
93616
|
],
|
|
93613
93617
|
};
|
|
93618
|
+
}, _KupEchart_radarChart = function _KupEchart_radarChart() {
|
|
93619
|
+
const x = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_createX).call(this);
|
|
93620
|
+
const y = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_createY).call(this);
|
|
93621
|
+
let indicator;
|
|
93622
|
+
const data = [], indicatorData = [], legend = {};
|
|
93623
|
+
for (const [index, values] of x.entries()) {
|
|
93624
|
+
data.push({ name: values, value: [] });
|
|
93625
|
+
legend[values] = index;
|
|
93626
|
+
}
|
|
93627
|
+
for (const key in y) {
|
|
93628
|
+
indicator = {
|
|
93629
|
+
name: key,
|
|
93630
|
+
max: Math.floor(Math.max(...y[key]) * 1.05),
|
|
93631
|
+
};
|
|
93632
|
+
indicatorData.push(indicator);
|
|
93633
|
+
for (const values in y[key]) {
|
|
93634
|
+
data[values].value.push(y[key][values]);
|
|
93635
|
+
}
|
|
93636
|
+
}
|
|
93637
|
+
return {
|
|
93638
|
+
color: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setColors).call(this, x.length),
|
|
93639
|
+
title: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setTitle).call(this),
|
|
93640
|
+
legend: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setLegend).call(this, legend),
|
|
93641
|
+
radar: {
|
|
93642
|
+
indicator: indicatorData,
|
|
93643
|
+
},
|
|
93644
|
+
tooltip: Object.assign(Object.assign({}, __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setTooltip).call(this)), { trigger: 'item' }),
|
|
93645
|
+
series: [
|
|
93646
|
+
{
|
|
93647
|
+
name: __classPrivateFieldGet(this, _KupEchart_kupManager, "f").data.column.find(this.data, {
|
|
93648
|
+
name: this.axis,
|
|
93649
|
+
})[0].title,
|
|
93650
|
+
type: 'radar',
|
|
93651
|
+
data: data,
|
|
93652
|
+
},
|
|
93653
|
+
],
|
|
93654
|
+
};
|
|
93614
93655
|
}, _KupEchart_createX = function _KupEchart_createX(dataset = null) {
|
|
93615
93656
|
const x = [];
|
|
93616
93657
|
if (!dataset)
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface KupPlanner extends Components.KupPlanner, HTMLElement {}
|
|
4
|
+
export const KupPlanner: {
|
|
5
|
+
prototype: KupPlanner;
|
|
6
|
+
new (): KupPlanner;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|