@crystaldesign/diva-backoffice 25.2.0-beta.5 → 25.2.0-beta.7

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.
@@ -7817,10 +7817,7 @@ function loadConfiguration(t, root, config, lang) {
7817
7817
  style: {
7818
7818
  marginBottom: '20px'
7819
7819
  },
7820
- permission: 'backoffice_admin_organizations',
7821
- hidden: function hidden(data) {
7822
- return (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER' && (data === null || data === void 0 ? void 0 : data.type) === undefined;
7823
- }
7820
+ permission: 'backoffice_admin_organizations'
7824
7821
  }, {
7825
7822
  name: 'Info',
7826
7823
  type: 'text',
@@ -7828,10 +7825,7 @@ function loadConfiguration(t, root, config, lang) {
7828
7825
  marginBottom: '30px'
7829
7826
  },
7830
7827
  text: t('backoffice.form.organizationdetails.items.licensesdesc'),
7831
- permission: 'backoffice_admin_organizations',
7832
- hidden: function hidden(data) {
7833
- return (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER' && (data === null || data === void 0 ? void 0 : data.type) === undefined;
7834
- }
7828
+ permission: 'backoffice_admin_organizations'
7835
7829
  }, {
7836
7830
  name: ['settings', 'enable3DExport'],
7837
7831
  label: t('backoffice.form.organizationdetails.items.settings.enable3DExport'),
@@ -7938,10 +7932,7 @@ function loadConfiguration(t, root, config, lang) {
7938
7932
  style: {
7939
7933
  marginBottom: '40px'
7940
7934
  },
7941
- permission: 'backoffice_admin_organizations',
7942
- hidden: function hidden(data) {
7943
- return (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER' && (data === null || data === void 0 ? void 0 : data.type) === undefined;
7944
- }
7935
+ permission: 'backoffice_admin_organizations'
7945
7936
  }, {
7946
7937
  name: 'iln',
7947
7938
  label: t('backoffice.form.organizationdetails.items.iln'),
@@ -16759,6 +16750,7 @@ function parseDataEntry(item, selectMapping) {
16759
16750
  * Returns the data of the selected option(s) based on the selectMapping configuration
16760
16751
  */
16761
16752
  function parseReturnData(options, selectMapping) {
16753
+ if (!options) return undefined;
16762
16754
  if (Array.isArray(options)) return options.map(function (option) {
16763
16755
  return parseReturnData(option, selectMapping);
16764
16756
  });
@@ -33032,7 +33024,8 @@ function PriceDisplayCellRenderer(props) {
33032
33024
  var _colDef$field, _data$origPrices, _data$manualPrices, _currentPrice$toFixed, _origPrice$toFixed;
33033
33025
  var value = props.value,
33034
33026
  colDef = props.colDef,
33035
- data = props.data;
33027
+ data = props.data,
33028
+ commas = props.commas;
33036
33029
  var priceGroup = colDef === null || colDef === void 0 || (_colDef$field = colDef.field) === null || _colDef$field === void 0 ? void 0 : _colDef$field.split('.')[1];
33037
33030
  var origPrice = priceGroup ? data === null || data === void 0 || (_data$origPrices = data.origPrices) === null || _data$origPrices === void 0 ? void 0 : _data$origPrices[priceGroup] : undefined;
33038
33031
  var currentPrice = value !== null && value !== void 0 ? value : undefined;
@@ -33042,10 +33035,10 @@ function PriceDisplayCellRenderer(props) {
33042
33035
  className: container$2,
33043
33036
  children: [/*#__PURE__*/jsxs("span", {
33044
33037
  className: classnames(price, _defineProperty({}, priceManual, isManualPrice)),
33045
- children: [(_currentPrice$toFixed = currentPrice === null || currentPrice === void 0 ? void 0 : currentPrice.toFixed(2)) !== null && _currentPrice$toFixed !== void 0 ? _currentPrice$toFixed : '-', isManualPrice && ' *']
33038
+ children: [(_currentPrice$toFixed = currentPrice === null || currentPrice === void 0 ? void 0 : currentPrice.toFixed(commas !== null && commas !== void 0 ? commas : 2)) !== null && _currentPrice$toFixed !== void 0 ? _currentPrice$toFixed : '-', isManualPrice && ' *']
33046
33039
  }), /*#__PURE__*/jsxs("span", {
33047
33040
  className: originalPrice,
33048
- children: ["(", (_origPrice$toFixed = origPrice === null || origPrice === void 0 ? void 0 : origPrice.toFixed(2)) !== null && _origPrice$toFixed !== void 0 ? _origPrice$toFixed : '-', ")"]
33041
+ children: ["(", (_origPrice$toFixed = origPrice === null || origPrice === void 0 ? void 0 : origPrice.toFixed(commas !== null && commas !== void 0 ? commas : 2)) !== null && _origPrice$toFixed !== void 0 ? _origPrice$toFixed : '-', ")"]
33049
33042
  }), /*#__PURE__*/jsx("span", {
33050
33043
  className: classnames(difference, _defineProperty(_defineProperty(_defineProperty({}, differencePositive, diffPercentage !== undefined && diffPercentage > 0), differenceNegative, diffPercentage !== undefined && diffPercentage < 0), differenceNeutral, diffPercentage === undefined || diffPercentage === 0)),
33051
33044
  children: diffPercentage !== undefined ? /*#__PURE__*/jsxs(Fragment, {
@@ -33136,27 +33129,95 @@ function Prices (_ref) {
33136
33129
  var _useTranslation = useTranslation(),
33137
33130
  t = _useTranslation.t;
33138
33131
  var updatePgPriceFactor = useCallback(function (priceFeatureGroupItem, value) {
33139
- var _pricelist$pgPricefac;
33140
33132
  if (!selectedSerie) return;
33141
- var newFactors = _objectSpread$a(_objectSpread$a({}, pricelist.pgPricefactors), {}, _defineProperty({}, selectedSerie.serieNo, _objectSpread$a(_objectSpread$a({}, (_pricelist$pgPricefac = pricelist.pgPricefactors) === null || _pricelist$pgPricefac === void 0 ? void 0 : _pricelist$pgPricefac[selectedSerie.serieNo]), {}, _defineProperty({}, priceFeatureGroupItem, value))));
33133
+
33134
+ // Create copies of the objects to modify
33135
+ var newFactors = _objectSpread$a({}, pricelist.pgPricefactors);
33136
+ var serieFactors = _objectSpread$a({}, newFactors[selectedSerie.serieNo]);
33137
+ if (value.length === 0) {
33138
+ // Remove the empty price feature group
33139
+ delete serieFactors[priceFeatureGroupItem];
33140
+
33141
+ // If serie factors is now empty, remove the entire serie entry
33142
+ if (Object.keys(serieFactors).length === 0) {
33143
+ delete newFactors[selectedSerie.serieNo];
33144
+ } else {
33145
+ newFactors[selectedSerie.serieNo] = serieFactors;
33146
+ }
33147
+
33148
+ // If no more series exist, set pgPricefactors to undefined
33149
+ if (Object.keys(newFactors).length === 0) {
33150
+ setNodeDataValue({
33151
+ pgPricefactors: undefined
33152
+ });
33153
+ return;
33154
+ }
33155
+ } else {
33156
+ // Add/update the value
33157
+ serieFactors[priceFeatureGroupItem] = value;
33158
+ newFactors[selectedSerie.serieNo] = serieFactors;
33159
+ }
33142
33160
  setNodeDataValue({
33143
33161
  pgPricefactors: newFactors
33144
33162
  });
33145
33163
  }, [pricelist, selectedSerie, setNodeDataValue]);
33146
33164
  var updateArticlePriceFactor = useCallback(function (typeNo, value) {
33147
- var _pricelist$articlePri;
33148
33165
  if (!selectedSerie) return;
33149
- var newFactors = _objectSpread$a(_objectSpread$a({}, pricelist.articlePricefactors), {}, _defineProperty({}, selectedSerie.serieNo, _objectSpread$a(_objectSpread$a({}, (_pricelist$articlePri = pricelist.articlePricefactors) === null || _pricelist$articlePri === void 0 ? void 0 : _pricelist$articlePri[selectedSerie.serieNo]), {}, _defineProperty({}, typeNo, value))));
33166
+
33167
+ // Create copies of the objects to modify
33168
+ var newFactors = _objectSpread$a({}, pricelist.articlePricefactors);
33169
+ var serieFactors = _objectSpread$a({}, newFactors[selectedSerie.serieNo]);
33170
+ if (value.length === 0) {
33171
+ // Remove the empty article price factor
33172
+ delete serieFactors[typeNo];
33173
+
33174
+ // If serie factors is now empty, remove the entire serie entry
33175
+ if (Object.keys(serieFactors).length === 0) {
33176
+ delete newFactors[selectedSerie.serieNo];
33177
+ } else {
33178
+ newFactors[selectedSerie.serieNo] = serieFactors;
33179
+ }
33180
+
33181
+ // If no more series exist, set articlePricefactors to undefined
33182
+ if (Object.keys(newFactors).length === 0) {
33183
+ setNodeDataValue({
33184
+ articlePricefactors: undefined
33185
+ });
33186
+ return;
33187
+ }
33188
+ } else {
33189
+ // Add/update the value
33190
+ serieFactors[typeNo] = value;
33191
+ newFactors[selectedSerie.serieNo] = serieFactors;
33192
+ }
33150
33193
  setNodeDataValue({
33151
33194
  articlePricefactors: newFactors
33152
33195
  });
33153
33196
  }, [pricelist, selectedSerie, setNodeDataValue]);
33154
33197
  var updateSeriePriceFactor = useCallback(function (value) {
33155
33198
  if (!selectedSerie) return;
33199
+
33200
+ // Create a copy of the object to modify
33201
+ var newFactors = _objectSpread$a({}, pricelist.seriePricefactors);
33202
+ if (value.length === 0) {
33203
+ // Remove the empty serie price factor
33204
+ delete newFactors[selectedSerie.serieNo];
33205
+
33206
+ // If no more series exist, set seriePricefactors to undefined
33207
+ if (Object.keys(newFactors).length === 0) {
33208
+ setNodeDataValue({
33209
+ seriePricefactors: undefined
33210
+ });
33211
+ return;
33212
+ }
33213
+ } else {
33214
+ // Add/update the value
33215
+ newFactors[selectedSerie.serieNo] = value;
33216
+ }
33156
33217
  setNodeDataValue({
33157
- seriePricefactors: _defineProperty({}, selectedSerie.serieNo, value)
33218
+ seriePricefactors: newFactors
33158
33219
  });
33159
- }, [selectedSerie, setNodeDataValue]);
33220
+ }, [pricelist, selectedSerie, setNodeDataValue]);
33160
33221
  var applicationData = useMemo(function () {
33161
33222
  return {
33162
33223
  organizationId: organizationId,
@@ -33164,7 +33225,7 @@ function Prices (_ref) {
33164
33225
  pricelistId: pricelist._id,
33165
33226
  serieNo: selectedSerie === null || selectedSerie === void 0 ? void 0 : selectedSerie.serieNo
33166
33227
  };
33167
- }, [organizationId, packageId, selectedSerie]);
33228
+ }, [organizationId, packageId, selectedSerie, pricelist]);
33168
33229
  var apiInterface = useMemo(function () {
33169
33230
  return {
33170
33231
  read: apiConfig.enricherService + '/packages/${packageId}/pricelists/${pricelistId}/serie/${serieNo}/prices',
@@ -33198,10 +33259,10 @@ function Prices (_ref) {
33198
33259
  cellDataType: 'number',
33199
33260
  cellRenderer: PriceFactorCellRenderer,
33200
33261
  valueGetter: function valueGetter(_ref2) {
33201
- var _pricelist$articlePri2;
33262
+ var _pricelist$articlePri;
33202
33263
  var data = _ref2.data;
33203
33264
  if (!data) return;
33204
- return (_pricelist$articlePri2 = pricelist.articlePricefactors) === null || _pricelist$articlePri2 === void 0 || (_pricelist$articlePri2 = _pricelist$articlePri2[selectedSerie === null || selectedSerie === void 0 ? void 0 : selectedSerie.serieNo]) === null || _pricelist$articlePri2 === void 0 ? void 0 : _pricelist$articlePri2[data.typeNo];
33265
+ return (_pricelist$articlePri = pricelist.articlePricefactors) === null || _pricelist$articlePri === void 0 || (_pricelist$articlePri = _pricelist$articlePri[selectedSerie === null || selectedSerie === void 0 ? void 0 : selectedSerie.serieNo]) === null || _pricelist$articlePri === void 0 ? void 0 : _pricelist$articlePri[data.typeNo];
33205
33266
  },
33206
33267
  cellRendererParams: {
33207
33268
  onSave: function () {
@@ -33229,7 +33290,7 @@ function Prices (_ref) {
33229
33290
  headerName: priceFeatureGroup.displayText,
33230
33291
  marryChildren: true,
33231
33292
  children: _toConsumableArray((_priceFeatureGroup$ke = (_priceFeatureGroup$ke2 = priceFeatureGroup.keys) === null || _priceFeatureGroup$ke2 === void 0 ? void 0 : _priceFeatureGroup$ke2.map(function (priceFeatureGroupItem, j) {
33232
- var _priceFeatureGroup$ke3, _pricelist$pgPricefac2;
33293
+ var _priceFeatureGroup$ke3, _pricelist$pgPricefac;
33233
33294
  return {
33234
33295
  headerName: priceFeatureGroupItem,
33235
33296
  field: "prices.".concat(priceFeatureGroupItem),
@@ -33238,6 +33299,9 @@ function Prices (_ref) {
33238
33299
  cellDataType: 'number',
33239
33300
  headerTooltip: (_priceFeatureGroup$ke3 = priceFeatureGroup.keysDisplayTexts) === null || _priceFeatureGroup$ke3 === void 0 ? void 0 : _priceFeatureGroup$ke3[j],
33240
33301
  cellRenderer: PriceDisplayCellRenderer,
33302
+ cellRendererParams: {
33303
+ commas: pricelist.commas
33304
+ },
33241
33305
  additionalFields: ["origPrices.".concat(priceFeatureGroupItem)],
33242
33306
  headerClass: inputHeader,
33243
33307
  headerComponentParams: {
@@ -33258,7 +33322,7 @@ function Prices (_ref) {
33258
33322
  return _ref3.apply(this, arguments);
33259
33323
  };
33260
33324
  }()),
33261
- value: (_pricelist$pgPricefac2 = pricelist.pgPricefactors) === null || _pricelist$pgPricefac2 === void 0 || (_pricelist$pgPricefac2 = _pricelist$pgPricefac2[selectedSerie === null || selectedSerie === void 0 ? void 0 : selectedSerie.serieNo]) === null || _pricelist$pgPricefac2 === void 0 ? void 0 : _pricelist$pgPricefac2[priceFeatureGroupItem],
33325
+ value: (_pricelist$pgPricefac = pricelist.pgPricefactors) === null || _pricelist$pgPricefac === void 0 || (_pricelist$pgPricefac = _pricelist$pgPricefac[selectedSerie === null || selectedSerie === void 0 ? void 0 : selectedSerie.serieNo]) === null || _pricelist$pgPricefac === void 0 ? void 0 : _pricelist$pgPricefac[priceFeatureGroupItem],
33262
33326
  className: factorInput,
33263
33327
  tooltip: t('backoffice.idmCatalog.prices.priceFactor.label.pfg')
33264
33328
  })
@@ -33439,6 +33503,18 @@ function TablePriceList () {
33439
33503
  }
33440
33504
  };
33441
33505
  }, [selectedNodeId]);
33506
+ var roundingOptions = useMemo(function () {
33507
+ return [{
33508
+ name: t('backoffice.idmEnricher.pricelists.rounding.r1'),
33509
+ value: 1
33510
+ }, {
33511
+ name: t('backoffice.idmEnricher.pricelists.rounding.r2'),
33512
+ value: 2
33513
+ }, {
33514
+ name: t('backoffice.idmEnricher.pricelists.rounding.r3'),
33515
+ value: 3
33516
+ }];
33517
+ }, []);
33442
33518
  var configuration = useMemo(function () {
33443
33519
  return {
33444
33520
  type: 'dotnetSSM',
@@ -33482,7 +33558,11 @@ function TablePriceList () {
33482
33558
  headerName: 'backoffice.idmEnricher.pricelists.label.rounding',
33483
33559
  field: 'rounding',
33484
33560
  editable: true,
33485
- cellDataType: 'number'
33561
+ cellDataType: 'enum',
33562
+ customParams: {
33563
+ enumData: roundingOptions,
33564
+ displayLabelTemplate: '${name} (${value})'
33565
+ }
33486
33566
  }, {
33487
33567
  headerName: 'backoffice.idmEnricher.pricelists.label.commas',
33488
33568
  field: 'commas',
@@ -9,5 +9,7 @@ export default function PriceDisplayCellRenderer(props: CustomCellRendererProps<
9
9
  [key: string]: number;
10
10
  };
11
11
  manualPrices: string[];
12
- }, number, DivaContext>): React.JSX.Element;
12
+ }, number, DivaContext> & {
13
+ commas?: number;
14
+ }): React.JSX.Element;
13
15
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/ui/IDMEnricherEditor/Tables/Prices/PriceDisplayCellRenderer/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAazD,MAAM,CAAC,OAAO,UAAU,wBAAwB,CAC9C,KAAK,EAAE,uBAAuB,CAC5B;IACE,MAAM,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IAClC,UAAU,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IACtC,YAAY,EAAE,MAAM,EAAE,CAAC;CACxB,EACD,MAAM,EACN,WAAW,CACZ,qBAkCF"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/ui/IDMEnricherEditor/Tables/Prices/PriceDisplayCellRenderer/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAazD,MAAM,CAAC,OAAO,UAAU,wBAAwB,CAC9C,KAAK,EAAE,uBAAuB,CAC5B;IACE,MAAM,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IAClC,UAAU,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IACtC,YAAY,EAAE,MAAM,EAAE,CAAC;CACxB,EACD,MAAM,EACN,WAAW,CACZ,GAAG;IAAE,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,qBAkCxB"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/Tables/Prices/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAEpD,OAAO,EAAE,SAAS,EAAkB,MAAM,0BAA0B,CAAC;AAWrE,MAAM,CAAC,OAAO,WAAW,EACvB,cAAc,EACd,SAAS,EACT,SAAS,EACT,SAAS,EACT,gBAAgB,GACjB,EAAE;IACD,cAAc,EAAE,MAAM,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,SAAS,CAAC;IACrB,SAAS,EAAE,GAAG,CAAC;IACf,gBAAgB,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,OAAO,CAAC;CAC1D,qBAyNA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/Tables/Prices/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAEpD,OAAO,EAAE,SAAS,EAAkB,MAAM,0BAA0B,CAAC;AAWrE,MAAM,CAAC,OAAO,WAAW,EACvB,cAAc,EACd,SAAS,EACT,SAAS,EACT,SAAS,EACT,gBAAgB,GACjB,EAAE;IACD,cAAc,EAAE,MAAM,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,SAAS,CAAC;IACrB,SAAS,EAAE,GAAG,CAAC;IACf,gBAAgB,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,OAAO,CAAC;CAC1D,qBAsRA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/modules/TablePriceList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkD,MAAM,OAAO,CAAC;AAYvE,MAAM,CAAC,OAAO,gCAyPb"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/modules/TablePriceList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkD,MAAM,OAAO,CAAC;AAYvE,MAAM,CAAC,OAAO,gCAqQb"}
@@ -3,7 +3,7 @@ export default function ({ apiInterface, selectMapping, apiMapping, onChange, va
3
3
  loading: boolean;
4
4
  options: Option[] | undefined;
5
5
  value: string | number | (string | number | null | undefined)[] | null | undefined;
6
- onChange: (value: any, option: Option | Option[]) => void;
6
+ onChange: (value: any, option: Option | Option[] | undefined) => void;
7
7
  onClear: () => void;
8
8
  };
9
9
  //# sourceMappingURL=useSelectSimpleData.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useSelectSimpleData.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/SelectSimple/useSelectSimpleData.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,qBAAqB,EAAE,MAAM,EAAiB,MAAM,SAAS,CAAC;AAMvE,MAAM,CAAC,OAAO,WAAW,EACvB,YAAY,EACZ,aAAa,EACb,UAAU,EACV,QAAQ,EACR,KAAK,EACL,OAAO,EAAE,iBAAiB,EAC1B,eAAe,GAChB,EAAE,qBAAqB;;;;sBAwDa,GAAG,UAAU,MAAM,GAAG,MAAM,EAAE;;EAiBlE"}
1
+ {"version":3,"file":"useSelectSimpleData.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/SelectSimple/useSelectSimpleData.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,qBAAqB,EAAE,MAAM,EAAiB,MAAM,SAAS,CAAC;AAMvE,MAAM,CAAC,OAAO,WAAW,EACvB,YAAY,EACZ,aAAa,EACb,UAAU,EACV,QAAQ,EACR,KAAK,EACL,OAAO,EAAE,iBAAiB,EAC1B,eAAe,GAChB,EAAE,qBAAqB;;;;sBAwDa,GAAG,UAAU,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS;;EAiB9E"}
@@ -20,35 +20,16 @@ export default function ({ data, filters, sorter, pagination, filterServerSide }
20
20
  role?: string;
21
21
  totalBoundaryShowSizeChanger?: number;
22
22
  rootClassName?: string;
23
- onChange?: (page: number, pageSize: number) => void;
24
- onShowSizeChange?: (current: number, size: number) => void;
25
- itemRender?: (page: number, type: "page" | "prev" | "next" | "jump-prev" | "jump-next", element: React.ReactNode) => React.ReactNode;
26
- showTotal?: (total: number, range: [number, number]) => React.ReactNode;
27
- className?: string | undefined;
28
- selectPrefixCls?: string | undefined;
29
- prefixCls?: string | undefined;
30
- pageSizeOptions?: string[] | number[] | undefined;
23
+ showSizeChanger?: boolean | import("antd").SelectProps;
24
+ selectComponentClass?: any;
25
+ pageSizeOptions?: (string | number)[];
26
+ style?: import("react").CSSProperties | undefined;
31
27
  current?: number | undefined;
32
- defaultCurrent?: number | undefined;
33
- pageSize?: number | undefined;
34
- defaultPageSize?: number | undefined;
35
- hideOnSinglePage?: boolean | undefined;
36
- align?: "start" | "end" | "center" | undefined;
37
- showSizeChanger?: boolean | undefined;
38
- showLessItems?: boolean | undefined;
39
- showPrevNextJumpers?: boolean | undefined;
40
- showTitle?: boolean | undefined;
41
28
  simple?: boolean | {
42
29
  readOnly?: boolean;
43
30
  } | undefined;
31
+ className?: string | undefined;
44
32
  disabled?: boolean | undefined;
45
- locale?: import("rc-pagination").PaginationLocale | undefined;
46
- style?: import("react").CSSProperties | undefined;
47
- selectComponentClass?: import("react").ComponentType<{}> | undefined;
48
- prevIcon?: React.ComponentType | React.ReactNode;
49
- nextIcon?: React.ComponentType | React.ReactNode;
50
- jumpPrevIcon?: React.ComponentType | React.ReactNode;
51
- jumpNextIcon?: React.ComponentType | React.ReactNode;
52
33
  "aria-activedescendant"?: string | undefined;
53
34
  "aria-atomic"?: (boolean | "true" | "false") | undefined;
54
35
  "aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined;
@@ -102,6 +83,26 @@ export default function ({ data, filters, sorter, pagination, filterServerSide }
102
83
  "aria-valuemin"?: number | undefined;
103
84
  "aria-valuenow"?: number | undefined;
104
85
  "aria-valuetext"?: string | undefined;
86
+ onChange?: (page: number, pageSize: number) => void;
87
+ align?: "start" | "end" | "center" | undefined;
88
+ pageSize?: number | undefined;
89
+ selectPrefixCls?: string | undefined;
90
+ prefixCls?: string | undefined;
91
+ defaultCurrent?: number | undefined;
92
+ defaultPageSize?: number | undefined;
93
+ hideOnSinglePage?: boolean | undefined;
94
+ sizeChangerRender?: import("rc-pagination/lib/Options").SizeChangerRender;
95
+ showLessItems?: boolean | undefined;
96
+ showPrevNextJumpers?: boolean | undefined;
97
+ showTitle?: boolean | undefined;
98
+ locale?: import("rc-pagination").PaginationLocale | undefined;
99
+ prevIcon?: React.ComponentType | React.ReactNode;
100
+ nextIcon?: React.ComponentType | React.ReactNode;
101
+ jumpPrevIcon?: React.ComponentType | React.ReactNode;
102
+ jumpNextIcon?: React.ComponentType | React.ReactNode;
103
+ onShowSizeChange?: (current: number, size: number) => void;
104
+ itemRender?: (page: number, type: "page" | "prev" | "next" | "jump-prev" | "jump-next", element: React.ReactNode) => React.ReactNode;
105
+ showTotal?: (total: number, range: [number, number]) => React.ReactNode;
105
106
  };
106
107
  };
107
108
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"applyFilterAndSortation.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/Table/utils/applyFilterAndSortation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAItG,UAAU,KAAK,CAAC,CAAC,GAAG,GAAG;IACrB,IAAI,EAAE,GAAG,EAAE,CAAC;IACZ,UAAU,CAAC,EAAE,qBAAqB,CAAC;IACnC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC,CAAC;IACvC,MAAM,CAAC,EAAE,YAAY,CAAC,CAAC,CAAC,GAAG,YAAY,CAAC,CAAC,CAAC,EAAE,CAAC;IAC7C,KAAK,CAAC,EAAE,sBAAsB,CAAC,CAAC,CAAC,CAAC;IAClC,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED,MAAM,CAAC,OAAO,WAAW,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,gBAAgB,EAAE,EAAE,KAAK;;;;;;oBAPrF,CAAA,EAAC,MAAO,SAAS;;;;;;;;;yGA8CuB,MAEzC,SAAS,KAAI,MAAO,SAAS;gEAEd,MAAQ,SAAQ;;;;;;;;;;;;;;;;;;;;;;mBAvBH,MAAQ,aAAY,GAAE,MAAO,SAAS;mBAC1D,MAAQ,aAAY,GAAE,MAAO,SAEtC;uBAAmB,MAAO,aACjB,GACL,MAAE,SAAS;uBAAmB,MAAO,aAAa,GAAE,MAAO,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAdvE"}
1
+ {"version":3,"file":"applyFilterAndSortation.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/Table/utils/applyFilterAndSortation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAItG,UAAU,KAAK,CAAC,CAAC,GAAG,GAAG;IACrB,IAAI,EAAE,GAAG,EAAE,CAAC;IACZ,UAAU,CAAC,EAAE,qBAAqB,CAAC;IACnC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC,CAAC;IACvC,MAAM,CAAC,EAAE,YAAY,CAAC,CAAC,CAAC,GAAG,YAAY,CAAC,CAAC,CAAC,EAAE,CAAC;IAC7C,KAAK,CAAC,EAAE,sBAAsB,CAAC,CAAC,CAAC,CAAC;IAClC,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED,MAAM,CAAC,OAAO,WAAW,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,gBAAgB,EAAE,EAAE,KAAK;;;;;;oBAL3E,CAAC,EAAC,MAAO,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAyBoC,MAChE,aAAW,GAAE,MAAO,SAAS;mBAE7B,MAAI,aAAa,GAAE,MAAO,SACrB;uBACO,MAAO,aAAa,GAAE,MAAO,SAAS;uBAAmB,MAAQ,aAAY,GAAE,MACzF,SAAS;;yGAekB,MAAO,SAClC,KAAI,MAAO,SAAS;gEAGb,MAAQ,SAAQ;;EAlC1B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crystaldesign/diva-backoffice",
3
- "version": "25.2.0-beta.5",
3
+ "version": "25.2.0-beta.7",
4
4
  "license": "COMMERCIAL",
5
5
  "devDependencies": {
6
6
  "@testing-library/jest-dom": "^6.5.0",
@@ -15,17 +15,17 @@
15
15
  "dependencies": {
16
16
  "@ant-design/icons": "5.4.0",
17
17
  "@babel/runtime": "7.24.7",
18
- "@crystaldesign/content-box": "25.2.0-beta.5",
19
- "@crystaldesign/content-item": "25.2.0-beta.5",
20
- "@crystaldesign/diva-core": "25.2.0-beta.5",
21
- "@crystaldesign/diva-utils": "25.2.0-beta.5",
22
- "@crystaldesign/media-upload": "25.2.0-beta.5",
23
- "@crystaldesign/rtf-editor": "25.2.0-beta.5",
24
- "@crystaldesign/spreadsheet": "25.2.0-beta.5",
18
+ "@crystaldesign/content-box": "25.2.0-beta.7",
19
+ "@crystaldesign/content-item": "25.2.0-beta.7",
20
+ "@crystaldesign/diva-core": "25.2.0-beta.7",
21
+ "@crystaldesign/diva-utils": "25.2.0-beta.7",
22
+ "@crystaldesign/media-upload": "25.2.0-beta.7",
23
+ "@crystaldesign/rtf-editor": "25.2.0-beta.7",
24
+ "@crystaldesign/spreadsheet": "25.2.0-beta.7",
25
25
  "@google/model-viewer": "3.5.0",
26
26
  "ag-charts-community": "^10.1.0",
27
27
  "ag-charts-react": "^10.1.0",
28
- "antd": "5.20.6",
28
+ "antd": "5.23.2",
29
29
  "csv": "6.3.6",
30
30
  "fast-json-patch": "^3.1.0",
31
31
  "fast-sort": "^3.4.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": "2952aa41f7310c4a75c40a8af65a5b88b5bdbd74"
54
+ "gitHead": "79e116529ff1a205d15e7af4668b2d28559b131b"
55
55
  }