@nice2dev/ui 1.4.22 → 1.4.24
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/CHANGELOG.md +96 -0
- package/dist/{NicePivotGrid-BshofJh1.cjs → NicePivotGrid-D53CQ2cY.cjs} +1 -1
- package/dist/charts/NiceAdvancedCharts.mjs +621 -764
- package/dist/charts/NiceBarGauge.mjs +100 -65
- package/dist/charts/NiceBullet.mjs +103 -98
- package/dist/charts/NiceChart.mjs +269 -266
- package/dist/charts/NiceChartRangeSelector.mjs +159 -0
- package/dist/charts/NiceCircularGauge.mjs +99 -70
- package/dist/charts/NiceHeatMap.mjs +140 -70
- package/dist/charts/NiceLinearGauge.mjs +168 -119
- package/dist/charts/NiceOrganizationChart.mjs +183 -90
- package/dist/charts/NicePieChart.mjs +94 -49
- package/dist/charts/NicePolarChart.mjs +2 -2
- package/dist/charts/NiceSankey.mjs +166 -93
- package/dist/charts/NiceStockChart.mjs +258 -157
- package/dist/charts-CSgOgfES.cjs +867 -0
- package/dist/charts.cjs +1 -1
- package/dist/charts.d.ts +150 -104
- package/dist/charts.mjs +22 -24
- package/dist/core/lazy.mjs +50 -63
- package/dist/core-lazy-sO0xvg64.cjs +1 -0
- package/dist/data.cjs +1 -1
- package/dist/demo/docs/docPreviews.mjs +450 -466
- package/dist/demo/docs/docRegistry.mjs +5 -35
- package/dist/index.cjs +60 -67
- package/dist/index.d.ts +145 -174
- package/dist/index.mjs +831 -836
- package/dist/lazy.cjs +1 -1
- package/dist/lazy.d.ts +49 -23
- package/dist/lazy.mjs +1 -1
- package/dist/style.css +1 -1
- package/dist/tools/NiceShowcase.mjs +1 -2
- package/package.json +4 -4
- package/dist/charts/NiceRangeSelector.mjs +0 -135
- package/dist/charts/NiceTreeMap.mjs +0 -100
- package/dist/charts/NiceVectorMap.mjs +0 -59
- package/dist/charts-C3Q3r8Yz.cjs +0 -918
- package/dist/core-lazy-CUnBYI-T.cjs +0 -1
package/dist/lazy.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react"),n=a.lazy(()=>Promise.resolve().then(()=>require("./devops-o6Zm0VKB.cjs")).then(e=>e.NiceGitGraph$1).then(e=>({default:e.NiceGitGraph}))),o=a.lazy(()=>Promise.resolve().then(()=>require("./devops-o6Zm0VKB.cjs")).then(e=>e.NiceBranchManager$1).then(e=>({default:e.NiceBranchManager}))),l=a.lazy(()=>Promise.resolve().then(()=>require("./devops-o6Zm0VKB.cjs")).then(e=>e.NiceGitDiffViewer$1).then(e=>({default:e.NiceGitDiffViewer}))),s=a.lazy(()=>Promise.resolve().then(()=>require("./devops-o6Zm0VKB.cjs")).then(e=>e.NiceGitBlame$1).then(e=>({default:e.NiceGitBlame}))),h=a.lazy(()=>Promise.resolve().then(()=>require("./devops-o6Zm0VKB.cjs")).then(e=>e.NiceGitConflictResolver$1).then(e=>({default:e.NiceGitConflictResolver}))),c=a.lazy(()=>Promise.resolve().then(()=>require("./devops-o6Zm0VKB.cjs")).then(e=>e.NicePipelineEditor$1).then(e=>({default:e.NicePipelineEditor}))),y=a.lazy(()=>Promise.resolve().then(()=>require("./devops-o6Zm0VKB.cjs")).then(e=>e.NicePipelineMonitor$1).then(e=>({default:e.NicePipelineMonitor}))),u=a.lazy(()=>Promise.resolve().then(()=>require("./devops-o6Zm0VKB.cjs")).then(e=>e.NiceGitHooks$1).then(e=>({default:e.NiceGitHooks}))),z=a.lazy(()=>Promise.resolve().then(()=>require("./devops-o6Zm0VKB.cjs")).then(e=>e.NiceMergeRequestBuilder$1).then(e=>({default:e.NiceMergeRequestBuilder}))),d=a.lazy(()=>Promise.resolve().then(()=>require("./no-code-DPc82kyy.cjs")).then(e=>e.NiceAPIFlow$1).then(e=>({default:e.NiceAPIFlow}))),f=a.lazy(()=>Promise.resolve().then(()=>require("./no-code-DPc82kyy.cjs")).then(e=>e.NiceCodeTemplate$1).then(e=>({default:e.NiceCodeTemplate}))),N=a.lazy(()=>Promise.resolve().then(()=>require("./no-code-DPc82kyy.cjs")).then(e=>e.NiceDataMapper$1).then(e=>({default:e.NiceDataMapper}))),L=a.lazy(()=>Promise.resolve().then(()=>require("./no-code-DPc82kyy.cjs")).then(e=>e.NiceEventOrchestrator$1).then(e=>({default:e.NiceEventOrchestrator}))),p=a.lazy(()=>Promise.resolve().then(()=>require("./no-code-DPc82kyy.cjs")).then(e=>e.NiceStateDesigner$1).then(e=>({default:e.NiceStateDesigner}))),v=a.lazy(()=>Promise.resolve().then(()=>require("./no-code-DPc82kyy.cjs")).then(e=>e.NiceTestBuilder$1).then(e=>({default:e.NiceTestBuilder}))),D=a.lazy(()=>Promise.resolve().then(()=>require("./data-branching-7rpktFJ-.cjs")).then(e=>e.NiceDataBranchManager$1).then(e=>({default:e.NiceDataBranchManager}))),P=a.lazy(()=>Promise.resolve().then(()=>require("./data-branching-7rpktFJ-.cjs")).then(e=>e.NiceDataDiffViewer$1).then(e=>({default:e.NiceDataDiffViewer}))),m=a.lazy(()=>Promise.resolve().then(()=>require("./data-branching-7rpktFJ-.cjs")).then(e=>e.NiceDataBranchGraph$1).then(e=>({default:e.NiceDataBranchGraph}))),q=a.lazy(()=>Promise.resolve().then(()=>require("./data-branching-7rpktFJ-.cjs")).then(e=>e.NiceDataMergeBuilder$1).then(e=>({default:e.NiceDataMergeBuilder}))),B=a.lazy(()=>Promise.resolve().then(()=>require("./data-branching-7rpktFJ-.cjs")).then(e=>e.NiceDataConflictResolver$1).then(e=>({default:e.NiceDataConflictResolver}))),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react"),n=a.lazy(()=>Promise.resolve().then(()=>require("./devops-o6Zm0VKB.cjs")).then(e=>e.NiceGitGraph$1).then(e=>({default:e.NiceGitGraph}))),o=a.lazy(()=>Promise.resolve().then(()=>require("./devops-o6Zm0VKB.cjs")).then(e=>e.NiceBranchManager$1).then(e=>({default:e.NiceBranchManager}))),l=a.lazy(()=>Promise.resolve().then(()=>require("./devops-o6Zm0VKB.cjs")).then(e=>e.NiceGitDiffViewer$1).then(e=>({default:e.NiceGitDiffViewer}))),s=a.lazy(()=>Promise.resolve().then(()=>require("./devops-o6Zm0VKB.cjs")).then(e=>e.NiceGitBlame$1).then(e=>({default:e.NiceGitBlame}))),h=a.lazy(()=>Promise.resolve().then(()=>require("./devops-o6Zm0VKB.cjs")).then(e=>e.NiceGitConflictResolver$1).then(e=>({default:e.NiceGitConflictResolver}))),c=a.lazy(()=>Promise.resolve().then(()=>require("./devops-o6Zm0VKB.cjs")).then(e=>e.NicePipelineEditor$1).then(e=>({default:e.NicePipelineEditor}))),y=a.lazy(()=>Promise.resolve().then(()=>require("./devops-o6Zm0VKB.cjs")).then(e=>e.NicePipelineMonitor$1).then(e=>({default:e.NicePipelineMonitor}))),u=a.lazy(()=>Promise.resolve().then(()=>require("./devops-o6Zm0VKB.cjs")).then(e=>e.NiceGitHooks$1).then(e=>({default:e.NiceGitHooks}))),z=a.lazy(()=>Promise.resolve().then(()=>require("./devops-o6Zm0VKB.cjs")).then(e=>e.NiceMergeRequestBuilder$1).then(e=>({default:e.NiceMergeRequestBuilder}))),d=a.lazy(()=>Promise.resolve().then(()=>require("./no-code-DPc82kyy.cjs")).then(e=>e.NiceAPIFlow$1).then(e=>({default:e.NiceAPIFlow}))),f=a.lazy(()=>Promise.resolve().then(()=>require("./no-code-DPc82kyy.cjs")).then(e=>e.NiceCodeTemplate$1).then(e=>({default:e.NiceCodeTemplate}))),N=a.lazy(()=>Promise.resolve().then(()=>require("./no-code-DPc82kyy.cjs")).then(e=>e.NiceDataMapper$1).then(e=>({default:e.NiceDataMapper}))),L=a.lazy(()=>Promise.resolve().then(()=>require("./no-code-DPc82kyy.cjs")).then(e=>e.NiceEventOrchestrator$1).then(e=>({default:e.NiceEventOrchestrator}))),p=a.lazy(()=>Promise.resolve().then(()=>require("./no-code-DPc82kyy.cjs")).then(e=>e.NiceStateDesigner$1).then(e=>({default:e.NiceStateDesigner}))),v=a.lazy(()=>Promise.resolve().then(()=>require("./no-code-DPc82kyy.cjs")).then(e=>e.NiceTestBuilder$1).then(e=>({default:e.NiceTestBuilder}))),D=a.lazy(()=>Promise.resolve().then(()=>require("./data-branching-7rpktFJ-.cjs")).then(e=>e.NiceDataBranchManager$1).then(e=>({default:e.NiceDataBranchManager}))),P=a.lazy(()=>Promise.resolve().then(()=>require("./data-branching-7rpktFJ-.cjs")).then(e=>e.NiceDataDiffViewer$1).then(e=>({default:e.NiceDataDiffViewer}))),m=a.lazy(()=>Promise.resolve().then(()=>require("./data-branching-7rpktFJ-.cjs")).then(e=>e.NiceDataBranchGraph$1).then(e=>({default:e.NiceDataBranchGraph}))),q=a.lazy(()=>Promise.resolve().then(()=>require("./data-branching-7rpktFJ-.cjs")).then(e=>e.NiceDataMergeBuilder$1).then(e=>({default:e.NiceDataMergeBuilder}))),B=a.lazy(()=>Promise.resolve().then(()=>require("./data-branching-7rpktFJ-.cjs")).then(e=>e.NiceDataConflictResolver$1).then(e=>({default:e.NiceDataConflictResolver}))),G=a.lazy(()=>Promise.resolve().then(()=>require("./data-branching-7rpktFJ-.cjs")).then(e=>e.NiceDataSnapshot$1).then(e=>({default:e.NiceDataSnapshot}))),M=a.lazy(()=>Promise.resolve().then(()=>require("./charts-CSgOgfES.cjs")).then(e=>e.NiceChart$1).then(e=>({default:e.NiceChart}))),g=a.lazy(()=>Promise.resolve().then(()=>require("./charts-CSgOgfES.cjs")).then(e=>e.NiceAdvancedCharts).then(e=>({default:e.NiceTreeMap}))),$=a.lazy(()=>Promise.resolve().then(()=>require("./charts-CSgOgfES.cjs")).then(e=>e.NiceSankey$1).then(e=>({default:e.NiceSankey}))),t=()=>{Promise.resolve().then(()=>require("./devops.cjs"))},r=()=>{Promise.resolve().then(()=>require("./no-code.cjs"))},i=()=>{Promise.resolve().then(()=>require("./data-branching.cjs"))},C=()=>{"requestIdleCallback"in window?requestIdleCallback(()=>{t(),r(),i()}):setTimeout(()=>{t(),r(),i()},2e3)};exports.LazyAPIFlow=d;exports.LazyBranchManager=o;exports.LazyChart=M;exports.LazyCodeTemplate=f;exports.LazyDataBranchGraph=m;exports.LazyDataBranchManager=D;exports.LazyDataConflictResolver=B;exports.LazyDataDiffViewer=P;exports.LazyDataMapper=N;exports.LazyDataMergeBuilder=q;exports.LazyDataSnapshot=G;exports.LazyEventOrchestrator=L;exports.LazyGitBlame=s;exports.LazyGitConflictResolver=h;exports.LazyGitDiffViewer=l;exports.LazyGitGraph=n;exports.LazyGitHooks=u;exports.LazyMergeRequestBuilder=z;exports.LazyPipelineEditor=c;exports.LazyPipelineMonitor=y;exports.LazySankey=$;exports.LazyStateDesigner=p;exports.LazyTestBuilder=v;exports.LazyTreemap=g;exports.preloadDataBranching=i;exports.preloadDevOps=t;exports.preloadHeavyModules=C;exports.preloadNoCode=r;
|
package/dist/lazy.d.ts
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import { ForwardRefExoticComponent } from 'react';
|
|
3
2
|
import { LazyExoticComponent } from 'react';
|
|
4
3
|
import { NiceBaseProps } from '@nice2dev/ui-core';
|
|
5
4
|
import { NiceComponentTutorial } from '@nice2dev/ui-core';
|
|
6
5
|
import { NiceStandardProps } from '@nice2dev/ui-core';
|
|
7
|
-
import { RefAttributes } from 'react';
|
|
8
6
|
|
|
9
7
|
declare interface ActionParam {
|
|
10
8
|
id: string;
|
|
@@ -639,9 +637,7 @@ export declare const LazyStateDesigner: LazyExoticComponent<FC<NiceStateDesigner
|
|
|
639
637
|
|
|
640
638
|
export declare const LazyTestBuilder: LazyExoticComponent<FC<NiceTestBuilderProps>>;
|
|
641
639
|
|
|
642
|
-
export declare const LazyTreemap: LazyExoticComponent<
|
|
643
|
-
displayName: string;
|
|
644
|
-
}>;
|
|
640
|
+
export declare const LazyTreemap: LazyExoticComponent<FC<NiceTreeMapProps>>;
|
|
645
641
|
|
|
646
642
|
declare interface MappingDefinition {
|
|
647
643
|
id: string;
|
|
@@ -823,6 +819,9 @@ declare interface NiceChartAnnotation {
|
|
|
823
819
|
dash?: string;
|
|
824
820
|
}
|
|
825
821
|
|
|
822
|
+
/** Where a chart's legend sits. */
|
|
823
|
+
declare type NiceChartLegendPlacement = 'top' | 'right' | 'bottom' | 'left';
|
|
824
|
+
|
|
826
825
|
/**
|
|
827
826
|
* Props for the NiceChart component — an SVG-based bar, line, and area chart
|
|
828
827
|
* with stacking, zoom, crosshair, annotations, legend interaction and PNG export.
|
|
@@ -834,6 +833,11 @@ declare interface NiceChartProps extends NiceStandardProps {
|
|
|
834
833
|
height?: number;
|
|
835
834
|
title?: string;
|
|
836
835
|
showLegend?: boolean;
|
|
836
|
+
/**
|
|
837
|
+
* Where the legend sits: `bottom` (default, a row under the plot), `top` (under the title),
|
|
838
|
+
* `right` or `left` (a column beside the plot). 1.4.23.
|
|
839
|
+
*/
|
|
840
|
+
legendPlacement?: NiceChartLegendPlacement;
|
|
837
841
|
/** Show gridlines (horizontal lines at Y ticks). Defaults to true. */
|
|
838
842
|
showGrid?: boolean;
|
|
839
843
|
/** Show axis tick labels (Y values, X categories). Defaults to true. */
|
|
@@ -1279,14 +1283,18 @@ declare interface NiceSankeyLink {
|
|
|
1279
1283
|
target: string;
|
|
1280
1284
|
/** Flow magnitude. */
|
|
1281
1285
|
value: number;
|
|
1286
|
+
/** Link colour (default: a gradient from the source's colour to the target's). */
|
|
1287
|
+
color?: string;
|
|
1282
1288
|
}
|
|
1283
1289
|
|
|
1284
1290
|
/** A node in the {@link NiceSankey} diagram. */
|
|
1285
1291
|
declare interface NiceSankeyNode {
|
|
1286
1292
|
/** Unique identifier. */
|
|
1287
1293
|
id: string;
|
|
1288
|
-
/** Node label. */
|
|
1289
|
-
label
|
|
1294
|
+
/** Node label (default: `name`, then the id). */
|
|
1295
|
+
label?: string;
|
|
1296
|
+
/** Alias of `label`, as in the former NiceSankeyChart. */
|
|
1297
|
+
name?: string;
|
|
1290
1298
|
/** Node color. */
|
|
1291
1299
|
color?: string;
|
|
1292
1300
|
}
|
|
@@ -1307,6 +1315,16 @@ declare interface NiceSankeyProps extends NiceStandardProps {
|
|
|
1307
1315
|
nodePadding?: number;
|
|
1308
1316
|
/** Chart title. */
|
|
1309
1317
|
title?: string;
|
|
1318
|
+
/** Add each node's total to its label. 1.4.24. */
|
|
1319
|
+
showValues?: boolean;
|
|
1320
|
+
/** Native tooltips on nodes and links. Default `true`. 1.4.24. */
|
|
1321
|
+
showTooltip?: boolean;
|
|
1322
|
+
/** Links drawn as a gradient from the source's colour to the target's. Default `true`. 1.4.24. */
|
|
1323
|
+
gradientLinks?: boolean;
|
|
1324
|
+
/** Fires when a node is clicked. 1.4.24. */
|
|
1325
|
+
onNodeClick?: (node: NiceSankeyNode) => void;
|
|
1326
|
+
/** Fires when a link is clicked. 1.4.24. */
|
|
1327
|
+
onLinkClick?: (link: NiceSankeyLink) => void;
|
|
1310
1328
|
}
|
|
1311
1329
|
|
|
1312
1330
|
declare interface NiceStateDesignerProps extends NiceBaseProps {
|
|
@@ -1336,32 +1354,40 @@ declare interface NiceTestBuilderProps extends NiceBaseProps {
|
|
|
1336
1354
|
tutorial?: NiceComponentTutorial;
|
|
1337
1355
|
}
|
|
1338
1356
|
|
|
1339
|
-
/** A
|
|
1357
|
+
/** A node of a {@link NiceTreeMap}. */
|
|
1340
1358
|
declare interface NiceTreeMapNode {
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
/** Node label. */
|
|
1344
|
-
label: string;
|
|
1345
|
-
/** Numeric weight (determines area). */
|
|
1359
|
+
id: string;
|
|
1360
|
+
name: string;
|
|
1346
1361
|
value: number;
|
|
1347
|
-
/** Node color. */
|
|
1348
1362
|
color?: string;
|
|
1349
|
-
/** Child nodes. */
|
|
1350
1363
|
children?: NiceTreeMapNode[];
|
|
1351
1364
|
}
|
|
1352
1365
|
|
|
1353
|
-
/** Props for
|
|
1366
|
+
/** Props for {@link NiceTreeMap}. */
|
|
1354
1367
|
declare interface NiceTreeMapProps extends NiceStandardProps {
|
|
1355
|
-
/**
|
|
1356
|
-
data: NiceTreeMapNode
|
|
1357
|
-
|
|
1368
|
+
/** Dane hierarchiczne. Można też podać płaską listę — zostanie opakowana w wirtualny korzeń. */
|
|
1369
|
+
data: NiceTreeMapNode | Array<{
|
|
1370
|
+
label?: string;
|
|
1371
|
+
name?: string;
|
|
1372
|
+
value: number;
|
|
1373
|
+
color?: string;
|
|
1374
|
+
}>;
|
|
1375
|
+
/** Szerokość */
|
|
1358
1376
|
width?: number;
|
|
1359
|
-
/**
|
|
1377
|
+
/** Wysokość */
|
|
1360
1378
|
height?: number;
|
|
1361
|
-
/**
|
|
1362
|
-
|
|
1363
|
-
/**
|
|
1379
|
+
/** Pokaż etykiety */
|
|
1380
|
+
showLabels?: boolean;
|
|
1381
|
+
/** Pokaż wartości */
|
|
1382
|
+
showValues?: boolean;
|
|
1383
|
+
/** Callback po kliknięciu */
|
|
1384
|
+
onNodeClick?: (node: NiceTreeMapNode, path: string[]) => void;
|
|
1385
|
+
/** Umożliw drill-down */
|
|
1386
|
+
drilldownEnabled?: boolean;
|
|
1387
|
+
/** Kolory */
|
|
1364
1388
|
colors?: string[];
|
|
1389
|
+
/** Padding między kafelkami */
|
|
1390
|
+
tilePadding?: number;
|
|
1365
1391
|
}
|
|
1366
1392
|
|
|
1367
1393
|
declare interface ParamDefinition {
|
package/dist/lazy.mjs
CHANGED
|
@@ -50,7 +50,7 @@ const n = /* @__PURE__ */ t(
|
|
|
50
50
|
), w = /* @__PURE__ */ t(
|
|
51
51
|
() => import("./charts/NiceChart.mjs").then((e) => ({ default: e.NiceChart }))
|
|
52
52
|
), T = /* @__PURE__ */ t(
|
|
53
|
-
() => import("./charts/
|
|
53
|
+
() => import("./charts/NiceAdvancedCharts.mjs").then((e) => ({ default: e.NiceTreeMap }))
|
|
54
54
|
), k = /* @__PURE__ */ t(
|
|
55
55
|
() => import("./charts/NiceSankey.mjs").then((e) => ({ default: e.NiceSankey }))
|
|
56
56
|
), a = () => {
|