@sisense/sdk-ui 1.27.0 → 1.27.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.
@@ -9,7 +9,7 @@ var w = (e, t, r) => t in e ? _(e, t, { enumerable: !0, configurable: !0, writab
9
9
  K.call(t, r) && w(e, r, t[r]);
10
10
  return e;
11
11
  };
12
- import { d2 as U, h as I, M as x, T as u, d3 as Y, d4 as W, a9 as z, ag as J, ae as V, m as C, d5 as H, J as X, B as Z, aT as D } from "./derive-chart-family-DRBbYXus.js";
12
+ import { d2 as U, h as I, M as x, T as u, d3 as Y, d4 as W, a9 as z, ag as J, ae as V, m as C, d5 as H, J as X, B as Z, aT as D } from "./derive-chart-family-H_RlUbXY.js";
13
13
  class Q extends U {
14
14
  constructor(t, r) {
15
15
  var a;
@@ -1,4 +1,4 @@
1
- "use strict";var k=Object.defineProperty;var C=Object.getOwnPropertySymbols;var B=Object.prototype.hasOwnProperty,R=Object.prototype.propertyIsEnumerable;var w=(e,t,r)=>t in e?k(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,f=(e,t)=>{for(var r in t||(t={}))B.call(t,r)&&w(e,r,t[r]);if(C)for(var r of C(t))R.call(t,r)&&w(e,r,t[r]);return e};const o=require("./derive-chart-family-BXkBWhAA.cjs");class I extends o.DimensionalElement{constructor(t,r){var a;super((a=t.jaql.title)!==null&&a!==void 0?a:"",r),this.expression=t.jaql.dim||t.jaql.formula,this.metadataItem=t,t.jaql.agg?this.aggregation=t.jaql.agg:delete this.aggregation,t.jaql.formula?this.formula=t.jaql.formula:delete this.formula,t.jaql.sort?this.sortType=o.getSortType(t.jaql.sort):delete this.sortType,this.skipValidation=!0}get id(){return this.expression}jaql(){return this.metadataItem}}const Y={text:o.MetadataTypes.TextAttribute,numeric:o.MetadataTypes.NumericAttribute,datetime:o.MetadataTypes.DateLevel};function W(e){var t;return new I(e,(t=Y[e.jaql.datatype])!==null&&t!==void 0?t:"numeric")}const z={jaql:{datasource:{title:""},metadata:[]},queryTitle:"",chartRecommendations:{}},K={model:"",metadata:[],chart:{},queryTitle:""},U=e=>"widgetProps"in e,$=e=>"dashboardOid"in e&&"widgetOid"in e;function J(e){return e.replace(/\s+/g,"-").replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function V(e){return e.charAt(0).toUpperCase()+e.slice(1)}function X(e){const t=/\[(.+?)\s\(Calendar\)\]/;return e.replace(t,"[$1]").trim()}function H(e){if(e)if(e.metadata){if(!e.model)throw new o.TranslatableError("errors.missingModelTitle")}else throw new o.TranslatableError("errors.missingMetadata");else throw new o.TranslatableError("errors.emptyModel");return e}function Z(e){return!e||!e.jaql.datasource.title||!e.jaql.metadata.length}function h(e){return e&&e.replace(new RegExp("(?<!\\\\)'","g"),"\\'")}function q(e){if(![...o.ALL_CHART_TYPES,"pivot","pivot2"].includes(e))throw new o.TranslatableError("errors.chartTypeNotSupported",{chartType:e})}const G={react:{baseChartTmpl:`import { {{componentString}} } from '@sisense/sdk-ui';
1
+ "use strict";var k=Object.defineProperty;var C=Object.getOwnPropertySymbols;var B=Object.prototype.hasOwnProperty,R=Object.prototype.propertyIsEnumerable;var w=(e,t,r)=>t in e?k(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,f=(e,t)=>{for(var r in t||(t={}))B.call(t,r)&&w(e,r,t[r]);if(C)for(var r of C(t))R.call(t,r)&&w(e,r,t[r]);return e};const o=require("./derive-chart-family-DDkQybGb.cjs");class I extends o.DimensionalElement{constructor(t,r){var a;super((a=t.jaql.title)!==null&&a!==void 0?a:"",r),this.expression=t.jaql.dim||t.jaql.formula,this.metadataItem=t,t.jaql.agg?this.aggregation=t.jaql.agg:delete this.aggregation,t.jaql.formula?this.formula=t.jaql.formula:delete this.formula,t.jaql.sort?this.sortType=o.getSortType(t.jaql.sort):delete this.sortType,this.skipValidation=!0}get id(){return this.expression}jaql(){return this.metadataItem}}const Y={text:o.MetadataTypes.TextAttribute,numeric:o.MetadataTypes.NumericAttribute,datetime:o.MetadataTypes.DateLevel};function W(e){var t;return new I(e,(t=Y[e.jaql.datatype])!==null&&t!==void 0?t:"numeric")}const z={jaql:{datasource:{title:""},metadata:[]},queryTitle:"",chartRecommendations:{}},K={model:"",metadata:[],chart:{},queryTitle:""},U=e=>"widgetProps"in e,$=e=>"dashboardOid"in e&&"widgetOid"in e;function J(e){return e.replace(/\s+/g,"-").replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function V(e){return e.charAt(0).toUpperCase()+e.slice(1)}function X(e){const t=/\[(.+?)\s\(Calendar\)\]/;return e.replace(t,"[$1]").trim()}function H(e){if(e)if(e.metadata){if(!e.model)throw new o.TranslatableError("errors.missingModelTitle")}else throw new o.TranslatableError("errors.missingMetadata");else throw new o.TranslatableError("errors.emptyModel");return e}function Z(e){return!e||!e.jaql.datasource.title||!e.jaql.metadata.length}function h(e){return e&&e.replace(new RegExp("(?<!\\\\)'","g"),"\\'")}function q(e){if(![...o.ALL_CHART_TYPES,"pivot","pivot2"].includes(e))throw new o.TranslatableError("errors.chartTypeNotSupported",{chartType:e})}const G={react:{baseChartTmpl:`import { {{componentString}} } from '@sisense/sdk-ui';
2
2
  {{extraImportsString}}
3
3
  import * as DM from './{{dataSourceString}}'; // generated with @sisense/sdk-cli
4
4
 
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "Sisense",
12
12
  "Compose SDK"
13
13
  ],
14
- "version": "1.27.0",
14
+ "version": "1.27.1",
15
15
  "type": "module",
16
16
  "exports": {
17
17
  ".": {
@@ -53,12 +53,12 @@
53
53
  "@emotion/styled": "^11.10.5",
54
54
  "@mui/material": "^5.16.7",
55
55
  "@mui/system": "^5.16.7",
56
- "@sisense/sdk-common": "^1.27.0",
57
- "@sisense/sdk-data": "^1.27.0",
58
- "@sisense/sdk-pivot-client": "^1.27.0",
59
- "@sisense/sdk-query-client": "^1.27.0",
60
- "@sisense/sdk-rest-client": "^1.27.0",
61
- "@sisense/sdk-tracking": "^1.27.0",
56
+ "@sisense/sdk-common": "^1.27.1",
57
+ "@sisense/sdk-data": "^1.27.1",
58
+ "@sisense/sdk-pivot-client": "^1.27.1",
59
+ "@sisense/sdk-query-client": "^1.27.1",
60
+ "@sisense/sdk-rest-client": "^1.27.1",
61
+ "@sisense/sdk-tracking": "^1.27.1",
62
62
  "@sisense/sisense-charts": "5.1.1",
63
63
  "@tanstack/react-query": "4.36.1",
64
64
  "classnames": "^2.3.2",