@webority/ui-react 0.130.3 → 0.132.0

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.
@@ -2,7 +2,7 @@
2
2
  "kind": "WeborityWeb",
3
3
  "library": {
4
4
  "name": "@webority/ui-react",
5
- "version": "0.130.3"
5
+ "version": "0.132.0"
6
6
  },
7
7
  "rendererProtocolVersion": 13,
8
8
  "platform": "Web",
@@ -3590,6 +3590,13 @@
3590
3590
  "required": true,
3591
3591
  "description": "`column` is vertical bars, `bar` horizontal. `multiples` draws each series as its own small chart under one shared x axis."
3592
3592
  },
3593
+ {
3594
+ "name": "valueLabels",
3595
+ "type": "boolean",
3596
+ "required": false,
3597
+ "description": "Print each bar's value on it. Column and bar only.",
3598
+ "default": false
3599
+ },
3593
3600
  {
3594
3601
  "name": "view",
3595
3602
  "type": "enum",
@@ -3633,6 +3640,19 @@
3633
3640
  "type": "string",
3634
3641
  "required": false,
3635
3642
  "description": "The title of the x axis."
3643
+ },
3644
+ {
3645
+ "name": "labelFit",
3646
+ "type": "enum",
3647
+ "enum": [
3648
+ "all",
3649
+ "auto",
3650
+ "ellipsis",
3651
+ "rotate"
3652
+ ],
3653
+ "required": false,
3654
+ "description": "How a column chart fits its category names. auto hides those that overlap; all shows every name; rotate turns them; ellipsis cuts each to its slot, with the full text in the axis tooltip and the table. Column only: a bar chart has the room already.",
3655
+ "default": "auto"
3636
3656
  }
3637
3657
  ],
3638
3658
  "required": true,
@@ -28813,6 +28833,7 @@
28813
28833
  "neutral-pressed",
28814
28834
  "neutral-soft",
28815
28835
  "neutral-text",
28836
+ "offline-fill",
28816
28837
  "on-danger",
28817
28838
  "on-danger-strong",
28818
28839
  "on-info",
@@ -28826,6 +28847,7 @@
28826
28847
  "on-surface-dark-muted",
28827
28848
  "on-warning",
28828
28849
  "on-warning-strong",
28850
+ "online-fill",
28829
28851
  "primary",
28830
28852
  "primary-hover",
28831
28853
  "primary-soft",
@@ -28978,6 +29000,7 @@
28978
29000
  "neutral-pressed": "Neutral fill while a control is pressed.",
28979
29001
  "neutral-soft": "Soft neutral background of the neutral status pill.",
28980
29002
  "neutral-text": "Text on the soft neutral background.",
29003
+ "offline-fill": "Fill of the offline network banner: the source red, not the contrast-darkened danger fill.",
28981
29004
  "on-danger": "Ink on a solid danger fill.",
28982
29005
  "on-danger-strong": "Ink on a deep danger fill.",
28983
29006
  "on-info": "Ink on a solid info fill.",
@@ -28991,6 +29014,7 @@
28991
29014
  "on-surface-dark-muted": "Secondary text on a surface-dark band.",
28992
29015
  "on-warning": "Ink on a solid warning fill.",
28993
29016
  "on-warning-strong": "Ink on a deep warning fill.",
29017
+ "online-fill": "Fill of the back-online network banner: the source green, not the contrast-darkened success fill.",
28994
29018
  "primary": "Primary fill for buttons, selected states and borders.",
28995
29019
  "primary-hover": "Primary fill while a control is hovered or pressed.",
28996
29020
  "primary-soft": "Soft primary tint behind selected and highlighted rows.",
@@ -29259,6 +29283,10 @@
29259
29283
  "light": "#4b5675",
29260
29284
  "dark": "#b4b9c6"
29261
29285
  },
29286
+ "offline-fill": {
29287
+ "light": "#e82646",
29288
+ "dark": "#e82646"
29289
+ },
29262
29290
  "on-danger": {
29263
29291
  "light": "#ffffff",
29264
29292
  "dark": "#0f0f1a"
@@ -29311,6 +29339,10 @@
29311
29339
  "light": "#ffffff",
29312
29340
  "dark": "#0f0f0f"
29313
29341
  },
29342
+ "online-fill": {
29343
+ "light": "#04b440",
29344
+ "dark": "#04b440"
29345
+ },
29314
29346
  "primary": {
29315
29347
  "light": "#4f46e5",
29316
29348
  "dark": "#9590ef"
@@ -30774,6 +30806,21 @@
30774
30806
  ],
30775
30807
  "values": {}
30776
30808
  },
30809
+ {
30810
+ "version": "0.114.0",
30811
+ "components": [
30812
+ {
30813
+ "name": "AppAlert",
30814
+ "props": {
30815
+ "variant": "tone"
30816
+ },
30817
+ "values": {},
30818
+ "added": {},
30819
+ "removed": {}
30820
+ }
30821
+ ],
30822
+ "values": {}
30823
+ },
30777
30824
  {
30778
30825
  "version": "0.130.0",
30779
30826
  "components": [
@@ -1,21 +1,21 @@
1
1
  {
2
2
  "name": "webority-web",
3
- "version": "0.130.3",
3
+ "version": "0.132.0",
4
4
  "platform": "Web",
5
5
  "kitModuleVersion": 2,
6
6
  "rendererProtocolVersion": 13,
7
7
  "library": {
8
8
  "name": "@webority/ui-react",
9
- "version": "0.130.3"
9
+ "version": "0.132.0"
10
10
  },
11
11
  "files": {
12
12
  "manifest.json": {
13
- "sha256": "8d301b3735a9310164f81b5f818b479238ea5b5ddf6aad05fa77d96b263f6505",
14
- "bytes": 1002980
13
+ "sha256": "1ab939dd724956b61547a58ecc18f71a02c5ee418b5602e1f101e6437e50005d",
14
+ "bytes": 1004508
15
15
  },
16
16
  "kit.js": {
17
- "sha256": "aebdf56cc3d814f764b114c56d47fb4921589c08a2afd57bbc243945333decbb",
18
- "bytes": 11163805
17
+ "sha256": "29422c4be30de831a002a427af2ea4b3c2515043daea83c0fa8ec0300713287e",
18
+ "bytes": 11167028
19
19
  },
20
20
  "kit.css": {
21
21
  "sha256": "13b14f71fb6ea024945f95cba617b4f1d49f44a65ba7c7ed05d2354805539ef6",
@@ -1 +1 @@
1
- import{devWarn as e}from"../lib/devWarn.js";import{splitMarkerProps as t}from"../lib/wuiMarker.js";import n from"./warnInvalidValue.js";import r from"./warnUnknownProps.js";import{forwardRef as i,useCallback as a,useEffect as o,useLayoutEffect as s,useRef as c,useState as l}from"react";import{jsx as u}from"react/jsx-runtime";var ee=`wui-chart:select`,te=`wui-chart:legend-change`,ne=`wui-chart:ready`,re=[`line`,`area`,`column`,`bar`,`donut`,`heatmap`,`calendar`,`funnel`,`gauge`,`waterfall`,`treemap`,`sankey`,`scatter`,`bubble`,`multiples`],d=[`none`,`stacked`,`percent`],f=[`ready`,`loading`,`empty`,`error`],p=[`auto`,`svg`,`canvas`],ie=[`chart`,`table`],m=`This chart couldn't load. Try again in a moment.`,h=()=>{try{return process.env.NODE_ENV!==`production`}catch{return!0}},g=!1;function _(){!g&&h()&&(g=!0,e("[@webority/ui-react] <AppChart> has no `title`, which names the chart for assistive tech and its exported files."))}var v=e=>e===``?void 0:e,y=e=>Array.isArray(e)?e.map(y):e==null||Object.getPrototypeOf(e)!==Object.prototype?e:Object.fromEntries(Object.entries(e).filter(([,e])=>e!==``).map(([e,t])=>[e,y(t)])),b=e=>({type:v(e.type),title:v(e.title),description:v(e.description),data:e.data,x:y(e.x),series:y(e.series),group:y(e.group),to:y(e.to),size:y(e.size),trend:e.trend,zoom:e.zoom,bands:y(e.bands),stack:v(e.stack),y:y(e.y),target:y(e.target),centerLabel:v(e.centerLabel),height:e.height>0?e.height:void 0,state:v(e.state),emptyText:v(e.emptyText),errorText:v(e.errorText),loadingText:v(e.loadingText),renderer:v(e.renderer),timeZone:v(e.timeZone)}),x=(e,t)=>t!=null&&Object.keys(e).every(n=>Object.is(e[n],t[n])),ae=e=>{try{return JSON.stringify(e)}catch{return null}},S=i(function(i,g){let{marker:v,props:y}=t(`AppChart`,i),{type:S,title:C,description:oe,data:se,x:ce,series:w,group:T,to:E,size:D,trend:O,zoom:k,bands:A,stack:j,y:M,target:N,centerLabel:P,height:F,state:I,loading:L,error:R,emptyText:le,errorText:z,loadingText:B,renderer:V,timeZone:H,view:U,onSelect:W,onLegendChange:G,onReady:K,className:q=``,style:J,...Y}=y;r(`AppChart`,Y),n(`AppChart`,`type`,S,re),n(`AppChart`,`stack`,j,d),n(`AppChart`,`state`,I,f),n(`AppChart`,`renderer`,V,p),n(`AppChart`,`view`,U,ie),C||_();let X=!!R;h()&&L&&X&&e("[@webority/ui-react] <AppChart> takes `loading` or `error`, not both; `error` is shown.");let ue=X?`error`:L?`loading`:I,de=X?R:z,Z=c(null),Q=c({props:null,signature:null}),$=c({onSelect:W,onLegendChange:G,onReady:K}),[fe,pe]=l(!1),me=a(e=>{Z.current=e,typeof g==`function`?g(e):g&&(g.current=e)},[g]);return o(()=>{$.current={onSelect:W,onLegendChange:G,onReady:K}}),s(()=>{let e=Z.current;if(!e)return;let t={type:S,title:C,description:oe,data:se,x:ce,series:w,group:T,to:E,size:D,trend:O,zoom:k,bands:A,stack:j,y:M,target:N,centerLabel:P,height:F,state:ue,emptyText:le,errorText:de,loadingText:B,renderer:V,timeZone:H};if(x(t,Q.current.props))return;Q.current.props=t;let n=b(t),r=ae(n);(r===null||r!==Q.current.signature)&&(Q.current.signature=r,e.spec=n)}),o(()=>{let e=Z.current,t=e=>t=>$.current[e]?.(t.detail),n=[[ee,t(`onSelect`)],[te,t(`onLegendChange`)],[ne,t(`onReady`)]];for(let[t,r]of n)e.addEventListener(t,r);return()=>{for(let[t,r]of n)e.removeEventListener(t,r)}},[]),o(()=>{let t=!0;return import(`@webority/ui-elements/chart`).catch(n=>{e(`[AppChart] the chart failed to load:`,n?.message),t&&pe(!0)}),()=>{t=!1}},[]),fe?/* @__PURE__ */ u(`div`,{...v,className:q||void 0,style:J,role:`status`,children:/* @__PURE__ */ u(`p`,{className:`wui-chart-state-text`,children:z||m})}):/* @__PURE__ */ u(`wui-chart`,{ref:me,view:U||void 0,className:q||void 0,style:J,...v,...Y})});export{S as default};
1
+ import{devWarn as e}from"../lib/devWarn.js";import{splitMarkerProps as t}from"../lib/wuiMarker.js";import n from"./warnInvalidValue.js";import r from"./warnUnknownProps.js";import{forwardRef as i,useCallback as a,useEffect as o,useLayoutEffect as s,useRef as c,useState as l}from"react";import{jsx as u}from"react/jsx-runtime";var ee=`wui-chart:select`,te=`wui-chart:legend-change`,ne=`wui-chart:ready`,re=[`line`,`area`,`column`,`bar`,`donut`,`heatmap`,`calendar`,`funnel`,`gauge`,`waterfall`,`treemap`,`sankey`,`scatter`,`bubble`,`multiples`],d=[`none`,`stacked`,`percent`],f=[`ready`,`loading`,`empty`,`error`],p=[`auto`,`svg`,`canvas`],ie=[`chart`,`table`],m=`This chart couldn't load. Try again in a moment.`,h=()=>{try{return process.env.NODE_ENV!==`production`}catch{return!0}},g=!1;function ae(){!g&&h()&&(g=!0,e("[@webority/ui-react] <AppChart> has no `title`, which names the chart for assistive tech and its exported files."))}var _=e=>e===``?void 0:e,v=e=>Array.isArray(e)?e.map(v):e==null||Object.getPrototypeOf(e)!==Object.prototype?e:Object.fromEntries(Object.entries(e).filter(([,e])=>e!==``).map(([e,t])=>[e,v(t)])),y=e=>({type:_(e.type),title:_(e.title),description:_(e.description),data:e.data,x:v(e.x),series:v(e.series),group:v(e.group),to:v(e.to),size:v(e.size),trend:e.trend,zoom:e.zoom,bands:v(e.bands),stack:_(e.stack),y:v(e.y),target:v(e.target),centerLabel:_(e.centerLabel),valueLabels:_(e.valueLabels),height:e.height>0?e.height:void 0,state:_(e.state),emptyText:_(e.emptyText),errorText:_(e.errorText),loadingText:_(e.loadingText),renderer:_(e.renderer),timeZone:_(e.timeZone)}),oe=(e,t)=>t!=null&&Object.keys(e).every(n=>Object.is(e[n],t[n])),se=e=>{try{return JSON.stringify(e)}catch{return null}},b=i(function(i,g){let{marker:_,props:v}=t(`AppChart`,i),{type:b,title:x,description:ce,data:le,x:ue,series:S,group:C,to:w,size:T,trend:E,zoom:D,bands:O,stack:k,y:A,target:j,centerLabel:M,valueLabels:N,height:P,state:F,loading:I,error:L,emptyText:R,errorText:z,loadingText:B,renderer:V,timeZone:H,view:U,onSelect:W,onLegendChange:G,onReady:K,className:q=``,style:J,...Y}=v;r(`AppChart`,Y),n(`AppChart`,`type`,b,re),n(`AppChart`,`stack`,k,d),n(`AppChart`,`state`,F,f),n(`AppChart`,`renderer`,V,p),n(`AppChart`,`view`,U,ie),x||ae();let X=!!L;h()&&I&&X&&e("[@webority/ui-react] <AppChart> takes `loading` or `error`, not both; `error` is shown.");let de=X?`error`:I?`loading`:F,fe=X?L:z,Z=c(null),Q=c({props:null,signature:null}),$=c({onSelect:W,onLegendChange:G,onReady:K}),[pe,me]=l(!1),he=a(e=>{Z.current=e,typeof g==`function`?g(e):g&&(g.current=e)},[g]);return o(()=>{$.current={onSelect:W,onLegendChange:G,onReady:K}}),s(()=>{let e=Z.current;if(!e)return;let t={type:b,title:x,description:ce,data:le,x:ue,series:S,group:C,to:w,size:T,trend:E,zoom:D,bands:O,stack:k,y:A,target:j,centerLabel:M,valueLabels:N,height:P,state:de,emptyText:R,errorText:fe,loadingText:B,renderer:V,timeZone:H};if(oe(t,Q.current.props))return;Q.current.props=t;let n=y(t),r=se(n);(r===null||r!==Q.current.signature)&&(Q.current.signature=r,e.spec=n)}),o(()=>{let e=Z.current,t=e=>t=>$.current[e]?.(t.detail),n=[[ee,t(`onSelect`)],[te,t(`onLegendChange`)],[ne,t(`onReady`)]];for(let[t,r]of n)e.addEventListener(t,r);return()=>{for(let[t,r]of n)e.removeEventListener(t,r)}},[]),o(()=>{let t=!0;return import(`@webority/ui-elements/chart`).catch(n=>{e(`[AppChart] the chart failed to load:`,n?.message),t&&me(!0)}),()=>{t=!1}},[]),pe?/* @__PURE__ */ u(`div`,{..._,className:q||void 0,style:J,role:`status`,children:/* @__PURE__ */ u(`p`,{className:`wui-chart-state-text`,children:z||m})}):/* @__PURE__ */ u(`wui-chart`,{ref:he,view:U||void 0,className:q||void 0,style:J,..._,...Y})});export{b as default};
@@ -2,7 +2,7 @@
2
2
  "format": "webority-guidance/1",
3
3
  "package": {
4
4
  "name": "@webority/ui-react",
5
- "version": "0.130.3"
5
+ "version": "0.132.0"
6
6
  },
7
7
  "components": [
8
8
  {
@@ -13,6 +13,7 @@ declare const AppChart: import("react").ForwardRefExoticComponent<{
13
13
  kind?: 'category' | 'time' | 'value';
14
14
  format?: object;
15
15
  label?: string;
16
+ labelFit?: 'auto' | 'all' | 'rotate' | 'ellipsis';
16
17
  };
17
18
  /** The value columns, in the order they take colours: at most 8. Every type but line, area, column, bar and multiples takes one. */
18
19
  series: {
@@ -64,6 +65,11 @@ declare const AppChart: import("react").ForwardRefExoticComponent<{
64
65
  };
65
66
  /** Caption under the total in the centre of a donut. Default Total. Donut only. */
66
67
  centerLabel?: string;
68
+ /**
69
+ * Print each bar's value on it. Column and bar only.
70
+ * @default false
71
+ */
72
+ valueLabels?: boolean;
67
73
  /**
68
74
  * In px, the axis labels included. A value that is not above 0 draws at the default.
69
75
  * @default 320
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webority/ui-react",
3
- "version": "0.130.3",
3
+ "version": "0.132.0",
4
4
  "description": "Webority shared React component library — App* primitives on react-bootstrap + the @webority/theme design system.",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "type": "module",
@@ -29,13 +29,13 @@
29
29
  },
30
30
  "sideEffects": false,
31
31
  "dependencies": {
32
- "@webority/markdown-core": "0.130.3",
33
- "@webority/theme": "0.130.3",
34
- "@webority/ui-elements": "0.130.3",
35
- "@webority/web-core": "0.130.3"
32
+ "@webority/markdown-core": "0.132.0",
33
+ "@webority/theme": "0.132.0",
34
+ "@webority/ui-elements": "0.132.0",
35
+ "@webority/web-core": "0.132.0"
36
36
  },
37
37
  "peerDependencies": {
38
- "@webority/analytics": "^0.34.0",
38
+ "@webority/analytics": "^0.35.0",
39
39
  "bootstrap": "5.3.3",
40
40
  "react": "^19.0.0",
41
41
  "react-bootstrap": "^2.10.0",
@@ -49,9 +49,9 @@
49
49
  "@types/react": "^19.2.17",
50
50
  "@vitejs/plugin-react": "^6.0.1",
51
51
  "@vitest/coverage-v8": "5.0.1",
52
- "@webority/analytics": "0.34.0",
53
- "@webority/canvas-kit": "0.130.3",
54
- "@webority/tokens": "0.130.3",
52
+ "@webority/analytics": "0.35.0",
53
+ "@webority/canvas-kit": "0.132.0",
54
+ "@webority/tokens": "0.132.0",
55
55
  "bootstrap": "5.3.3",
56
56
  "jsdom": "30.1.1",
57
57
  "react": "^19.2.6",