@crystaldesign/diva-backoffice 24.9.0-beta.19 → 24.9.0-beta.20

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.
@@ -21675,6 +21675,7 @@ var SMChart = function SMChart(props) {
21675
21675
  var hasPermission = userHasPermission(props.permission);
21676
21676
  var darkmode = root.contentStore.theme === 'darkmode';
21677
21677
  return hasPermission ? /*#__PURE__*/jsx(Histogram, {
21678
+ visibleState: props.visibleState,
21678
21679
  field: props.field,
21679
21680
  interval: props.interval,
21680
21681
  topPics: props.topPics,
@@ -21785,6 +21786,10 @@ var TableWrapper = function TableWrapper(_ref) {
21785
21786
  if (!permission) return true;
21786
21787
  return root.actions.userHasPermission(permission);
21787
21788
  }
21789
+ var _useState3 = useState(false),
21790
+ _useState4 = _slicedToArray(_useState3, 2),
21791
+ analyticsVisible = _useState4[0],
21792
+ setAnalyticsVisible = _useState4[1];
21788
21793
  return /*#__PURE__*/jsxs(Fragment, {
21789
21794
  children: [(state.canDelete || state.configuration.createAction || state.title || state.configuration.canRefresh || state.configuration.clientRelations) && /*#__PURE__*/jsx(Fragment, {
21790
21795
  children: /*#__PURE__*/jsx(Descriptions, {
@@ -21793,7 +21798,27 @@ var TableWrapper = function TableWrapper(_ref) {
21793
21798
  style: {
21794
21799
  "float": 'right'
21795
21800
  },
21796
- children: [state.configuration.clientRelations && state.configuration.variant !== 'CatalogTable' && /*#__PURE__*/jsx(Fragment, {
21801
+ children: [state.configuration.histogram && state.configuration.histogram.type == 'default' && /*#__PURE__*/jsx(Button, {
21802
+ type: "default",
21803
+ size: 'middle',
21804
+ onClick: function onClick() {
21805
+ return setAnalyticsVisible(!analyticsVisible);
21806
+ },
21807
+ children: /*#__PURE__*/jsx(SMChart, {
21808
+ field: state.configuration.histogram.field,
21809
+ interval: state.configuration.histogram.interval,
21810
+ topPics: state.configuration.histogram.topPics,
21811
+ from: state.configuration.histogram.from,
21812
+ to: state.configuration.histogram.to,
21813
+ filter: state.configuration.histogram.filter,
21814
+ description: state.configuration.histogram.description,
21815
+ title: state.configuration.histogram.title.text,
21816
+ apiTranslation: state.configuration.histogram.apiTranslation,
21817
+ component: state.configuration.histogram.component,
21818
+ permission: state.configuration.histogram.permission,
21819
+ visibleState: [analyticsVisible, setAnalyticsVisible]
21820
+ })
21821
+ }), state.configuration.clientRelations && state.configuration.variant !== 'CatalogTable' && /*#__PURE__*/jsx(Fragment, {
21797
21822
  children: /*#__PURE__*/jsx(SelectClientRelationCatalog, {
21798
21823
  onSelectedCatalog: state.onSelectedCatalog,
21799
21824
  dontLoadCatalogData: state.configuration.dontLoadCatalogData
@@ -21900,32 +21925,26 @@ var TableWrapper = function TableWrapper(_ref) {
21900
21925
  }) : undefined,
21901
21926
  mappingData: state.mappingData
21902
21927
  }, 'create')]
21903
- }), state.configuration.histogram && state.configuration.histogram.type == 'applicationStatus' && /*#__PURE__*/jsx(AGHistogram, {
21904
- footnote: state.configuration.histogram.footnote,
21905
- height: state.configuration.histogram.height,
21906
- width: state.configuration.histogram.width,
21907
- sizeItems: state.configuration.histogram.sizeItems,
21908
- subtitle: state.configuration.histogram.subtitle,
21909
- title: state.configuration.histogram.title,
21910
- mapping: state.configuration.histogram.mapping,
21911
- apiInterface: state.configuration.histogram.apiInterface,
21912
- globalFilter: state.globalFilter,
21913
- stackMapping: state.configuration.histogram.stackMapping,
21914
- tooltipText: state.configuration.histogram.tooltipText,
21915
- headerText: state.configuration.histogram.headerText,
21916
- filterField: state.configuration.histogram.field
21917
- }), state.configuration.histogram && state.configuration.histogram.type == 'default' && /*#__PURE__*/jsx(SMChart, {
21918
- field: state.configuration.histogram.field,
21919
- interval: state.configuration.histogram.interval,
21920
- topPics: state.configuration.histogram.topPics,
21921
- from: state.configuration.histogram.from,
21922
- to: state.configuration.histogram.to,
21923
- filter: state.configuration.histogram.filter,
21924
- description: state.configuration.histogram.description,
21925
- title: state.configuration.histogram.title.text,
21926
- apiTranslation: state.configuration.histogram.apiTranslation,
21927
- component: state.configuration.histogram.component,
21928
- permission: state.configuration.histogram.permission
21928
+ }), state.configuration.histogram && state.configuration.histogram.type == 'applicationStatus' && /*#__PURE__*/jsx("button", {
21929
+ onClick: function onClick() {
21930
+ return setAnalyticsVisible(!analyticsVisible);
21931
+ },
21932
+ children: /*#__PURE__*/jsx(AGHistogram, {
21933
+ footnote: state.configuration.histogram.footnote,
21934
+ height: state.configuration.histogram.height,
21935
+ width: state.configuration.histogram.width,
21936
+ sizeItems: state.configuration.histogram.sizeItems,
21937
+ subtitle: state.configuration.histogram.subtitle,
21938
+ title: state.configuration.histogram.title,
21939
+ mapping: state.configuration.histogram.mapping,
21940
+ apiInterface: state.configuration.histogram.apiInterface,
21941
+ globalFilter: state.globalFilter,
21942
+ stackMapping: state.configuration.histogram.stackMapping,
21943
+ tooltipText: state.configuration.histogram.tooltipText,
21944
+ headerText: state.configuration.histogram.headerText,
21945
+ filterField: state.configuration.histogram.field
21946
+ //visibleState={visibleState}
21947
+ })
21929
21948
  })]
21930
21949
  })
21931
21950
  })
@@ -22149,10 +22168,10 @@ function BulkAction(_ref6) {
22149
22168
  return state.selected.includes(d._id);
22150
22169
  })) || [];
22151
22170
  }, [state.selected, state.data]);
22152
- var _useState3 = useState(),
22153
- _useState4 = _slicedToArray(_useState3, 2),
22154
- showPopover = _useState4[0],
22155
- setShowPopover = _useState4[1];
22171
+ var _useState5 = useState(),
22172
+ _useState6 = _slicedToArray(_useState5, 2),
22173
+ showPopover = _useState6[0],
22174
+ setShowPopover = _useState6[1];
22156
22175
  var allowed = useMemo(function () {
22157
22176
  // if isValue is not set check if all fields have the same value, otherwise check if all fields have the given isValue
22158
22177
  if (!action.rule) return true;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/SMChart/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAE5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAI7C,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAwBhD,CAAC;AAEF,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/SMChart/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAE5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAI7C,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAyBhD,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -1,5 +1,7 @@
1
+ /// <reference types="react" />
1
2
  export interface ChartConfiguration {
2
3
  height?: number;
4
+ visibleState?: [boolean, React.Dispatch<React.SetStateAction<boolean>>];
3
5
  width?: number;
4
6
  footnote?: string;
5
7
  sizeItems?: number;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/SMChart/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,kBAAkB;IACjC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,IAAI,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACrC,MAAM,CAAC,EAAE,MAAM,CAAuD;IACtE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QA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cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,SAAS,CAAC,EAAE,OAAO,GAAG,UAAU,CAAC;IACjC,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,SAAS,GAAG,MAAM,GAAG,QAAQ,CAAC;IACvC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,GAAG,EAAE,MAAM,CAAC;CACb"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/Table/BaseTable/index.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAE,KAAK,EAAgB,MAAM,UAAU,CAAC;AA8B/C,eAAO,MAAM,UAAU,yCAAoB,CAAC;AAG5C,UAAU,KAAK,CAAC,CAAC;IACf,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC;CACjB;;;;AAgSD,wBAAsC;AACtC,cAAc,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/Table/BaseTable/index.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAE,KAAK,EAAgB,MAAM,UAAU,CAAC;AA6B/C,eAAO,MAAM,UAAU,yCAAoB,CAAC;AAG5C,UAAU,KAAK,CAAC,CAAC;IACf,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC;CACjB;;;;AAsSD,wBAAsC;AACtC,cAAc,UAAU,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crystaldesign/diva-backoffice",
3
- "version": "24.9.0-beta.19",
3
+ "version": "24.9.0-beta.20",
4
4
  "license": "COMMERCIAL",
5
5
  "devDependencies": {
6
6
  "@testing-library/jest-dom": "^5.15.0",
@@ -15,7 +15,7 @@
15
15
  "dependencies": {
16
16
  "@ant-design/icons": "5.0.1",
17
17
  "@babel/runtime": "7.18.0",
18
- "@crystaldesign/spreadsheet": "24.9.0-beta.19",
18
+ "@crystaldesign/spreadsheet": "24.9.0-beta.20",
19
19
  "@google/model-viewer": "3.4.0",
20
20
  "@tinymce/tinymce-react": "^3.13.0",
21
21
  "ag-charts-community": "^9.3.1",
@@ -51,5 +51,5 @@
51
51
  },
52
52
  "module": "build/esm/index.js",
53
53
  "types": "./build/types/backoffice/src/index.d.ts",
54
- "gitHead": "00c77cb524ab355076708291a4c519181b376c11"
54
+ "gitHead": "007273f626c51e168039db391b3cddf721e783ee"
55
55
  }