@nice2dev/ui 1.4.23 → 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/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}))),M=a.lazy(()=>Promise.resolve().then(()=>require("./data-branching-7rpktFJ-.cjs")).then(e=>e.NiceDataSnapshot$1).then(e=>({default:e.NiceDataSnapshot}))),G=a.lazy(()=>Promise.resolve().then(()=>require("./charts-C9B548D2.cjs")).then(e=>e.NiceChart$1).then(e=>({default:e.NiceChart}))),g=a.lazy(()=>Promise.resolve().then(()=>require("./charts-C9B548D2.cjs")).then(e=>e.NiceTreeMap$1).then(e=>({default:e.NiceTreeMap}))),$=a.lazy(()=>Promise.resolve().then(()=>require("./charts-C9B548D2.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=G;exports.LazyCodeTemplate=f;exports.LazyDataBranchGraph=m;exports.LazyDataBranchManager=D;exports.LazyDataConflictResolver=B;exports.LazyDataDiffViewer=P;exports.LazyDataMapper=N;exports.LazyDataMergeBuilder=q;exports.LazyDataSnapshot=M;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;
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<ForwardRefExoticComponent<NiceTreeMapProps & RefAttributes<HTMLDivElement>> & {
643
- displayName: string;
644
- }>;
640
+ export declare const LazyTreemap: LazyExoticComponent<FC<NiceTreeMapProps>>;
645
641
 
646
642
  declare interface MappingDefinition {
647
643
  id: string;
@@ -1287,14 +1283,18 @@ declare interface NiceSankeyLink {
1287
1283
  target: string;
1288
1284
  /** Flow magnitude. */
1289
1285
  value: number;
1286
+ /** Link colour (default: a gradient from the source's colour to the target's). */
1287
+ color?: string;
1290
1288
  }
1291
1289
 
1292
1290
  /** A node in the {@link NiceSankey} diagram. */
1293
1291
  declare interface NiceSankeyNode {
1294
1292
  /** Unique identifier. */
1295
1293
  id: string;
1296
- /** Node label. */
1297
- label: string;
1294
+ /** Node label (default: `name`, then the id). */
1295
+ label?: string;
1296
+ /** Alias of `label`, as in the former NiceSankeyChart. */
1297
+ name?: string;
1298
1298
  /** Node color. */
1299
1299
  color?: string;
1300
1300
  }
@@ -1315,6 +1315,16 @@ declare interface NiceSankeyProps extends NiceStandardProps {
1315
1315
  nodePadding?: number;
1316
1316
  /** Chart title. */
1317
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;
1318
1328
  }
1319
1329
 
1320
1330
  declare interface NiceStateDesignerProps extends NiceBaseProps {
@@ -1344,32 +1354,40 @@ declare interface NiceTestBuilderProps extends NiceBaseProps {
1344
1354
  tutorial?: NiceComponentTutorial;
1345
1355
  }
1346
1356
 
1347
- /** A hierarchical node in the {@link NiceTreeMap}. */
1357
+ /** A node of a {@link NiceTreeMap}. */
1348
1358
  declare interface NiceTreeMapNode {
1349
- /** Unique key. */
1350
- key: string;
1351
- /** Node label. */
1352
- label: string;
1353
- /** Numeric weight (determines area). */
1359
+ id: string;
1360
+ name: string;
1354
1361
  value: number;
1355
- /** Node color. */
1356
1362
  color?: string;
1357
- /** Child nodes. */
1358
1363
  children?: NiceTreeMapNode[];
1359
1364
  }
1360
1365
 
1361
- /** Props for the {@link NiceTreeMap} component — a squarified treemap visualization. */
1366
+ /** Props for {@link NiceTreeMap}. */
1362
1367
  declare interface NiceTreeMapProps extends NiceStandardProps {
1363
- /** Root node. */
1364
- data: NiceTreeMapNode;
1365
- /** SVG width in px. */
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ść */
1366
1376
  width?: number;
1367
- /** SVG height in px. */
1377
+ /** Wysokość */
1368
1378
  height?: number;
1369
- /** Called when a leaf node is clicked. */
1370
- onNodeClick?: (node: NiceTreeMapNode) => void;
1371
- /** Color palette. */
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 */
1372
1388
  colors?: string[];
1389
+ /** Padding między kafelkami */
1390
+ tilePadding?: number;
1373
1391
  }
1374
1392
 
1375
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/NiceTreeMap.mjs").then((e) => ({ default: e.NiceTreeMap }))
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 = () => {