@crystaldesign/diva-backoffice 25.2.0-beta.6 → 25.2.0-beta.8

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.
@@ -16750,6 +16750,7 @@ function parseDataEntry(item, selectMapping) {
16750
16750
  * Returns the data of the selected option(s) based on the selectMapping configuration
16751
16751
  */
16752
16752
  function parseReturnData(options, selectMapping) {
16753
+ if (!options) return undefined;
16753
16754
  if (Array.isArray(options)) return options.map(function (option) {
16754
16755
  return parseReturnData(option, selectMapping);
16755
16756
  });
@@ -33023,7 +33024,8 @@ function PriceDisplayCellRenderer(props) {
33023
33024
  var _colDef$field, _data$origPrices, _data$manualPrices, _currentPrice$toFixed, _origPrice$toFixed;
33024
33025
  var value = props.value,
33025
33026
  colDef = props.colDef,
33026
- data = props.data;
33027
+ data = props.data,
33028
+ commas = props.commas;
33027
33029
  var priceGroup = colDef === null || colDef === void 0 || (_colDef$field = colDef.field) === null || _colDef$field === void 0 ? void 0 : _colDef$field.split('.')[1];
33028
33030
  var origPrice = priceGroup ? data === null || data === void 0 || (_data$origPrices = data.origPrices) === null || _data$origPrices === void 0 ? void 0 : _data$origPrices[priceGroup] : undefined;
33029
33031
  var currentPrice = value !== null && value !== void 0 ? value : undefined;
@@ -33033,10 +33035,10 @@ function PriceDisplayCellRenderer(props) {
33033
33035
  className: container$2,
33034
33036
  children: [/*#__PURE__*/jsxs("span", {
33035
33037
  className: classnames(price, _defineProperty({}, priceManual, isManualPrice)),
33036
- 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 && ' *']
33037
33039
  }), /*#__PURE__*/jsxs("span", {
33038
33040
  className: originalPrice,
33039
- 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 : '-', ")"]
33040
33042
  }), /*#__PURE__*/jsx("span", {
33041
33043
  className: classnames(difference, _defineProperty(_defineProperty(_defineProperty({}, differencePositive, diffPercentage !== undefined && diffPercentage > 0), differenceNegative, diffPercentage !== undefined && diffPercentage < 0), differenceNeutral, diffPercentage === undefined || diffPercentage === 0)),
33042
33044
  children: diffPercentage !== undefined ? /*#__PURE__*/jsxs(Fragment, {
@@ -33127,27 +33129,95 @@ function Prices (_ref) {
33127
33129
  var _useTranslation = useTranslation(),
33128
33130
  t = _useTranslation.t;
33129
33131
  var updatePgPriceFactor = useCallback(function (priceFeatureGroupItem, value) {
33130
- var _pricelist$pgPricefac;
33131
33132
  if (!selectedSerie) return;
33132
- 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
+ }
33133
33160
  setNodeDataValue({
33134
33161
  pgPricefactors: newFactors
33135
33162
  });
33136
33163
  }, [pricelist, selectedSerie, setNodeDataValue]);
33137
33164
  var updateArticlePriceFactor = useCallback(function (typeNo, value) {
33138
- var _pricelist$articlePri;
33139
33165
  if (!selectedSerie) return;
33140
- 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
+ }
33141
33193
  setNodeDataValue({
33142
33194
  articlePricefactors: newFactors
33143
33195
  });
33144
33196
  }, [pricelist, selectedSerie, setNodeDataValue]);
33145
33197
  var updateSeriePriceFactor = useCallback(function (value) {
33146
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
+ }
33147
33217
  setNodeDataValue({
33148
- seriePricefactors: _defineProperty({}, selectedSerie.serieNo, value)
33218
+ seriePricefactors: newFactors
33149
33219
  });
33150
- }, [selectedSerie, setNodeDataValue]);
33220
+ }, [pricelist, selectedSerie, setNodeDataValue]);
33151
33221
  var applicationData = useMemo(function () {
33152
33222
  return {
33153
33223
  organizationId: organizationId,
@@ -33155,7 +33225,7 @@ function Prices (_ref) {
33155
33225
  pricelistId: pricelist._id,
33156
33226
  serieNo: selectedSerie === null || selectedSerie === void 0 ? void 0 : selectedSerie.serieNo
33157
33227
  };
33158
- }, [organizationId, packageId, selectedSerie]);
33228
+ }, [organizationId, packageId, selectedSerie, pricelist]);
33159
33229
  var apiInterface = useMemo(function () {
33160
33230
  return {
33161
33231
  read: apiConfig.enricherService + '/packages/${packageId}/pricelists/${pricelistId}/serie/${serieNo}/prices',
@@ -33189,10 +33259,10 @@ function Prices (_ref) {
33189
33259
  cellDataType: 'number',
33190
33260
  cellRenderer: PriceFactorCellRenderer,
33191
33261
  valueGetter: function valueGetter(_ref2) {
33192
- var _pricelist$articlePri2;
33262
+ var _pricelist$articlePri;
33193
33263
  var data = _ref2.data;
33194
33264
  if (!data) return;
33195
- 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];
33196
33266
  },
33197
33267
  cellRendererParams: {
33198
33268
  onSave: function () {
@@ -33220,7 +33290,7 @@ function Prices (_ref) {
33220
33290
  headerName: priceFeatureGroup.displayText,
33221
33291
  marryChildren: true,
33222
33292
  children: _toConsumableArray((_priceFeatureGroup$ke = (_priceFeatureGroup$ke2 = priceFeatureGroup.keys) === null || _priceFeatureGroup$ke2 === void 0 ? void 0 : _priceFeatureGroup$ke2.map(function (priceFeatureGroupItem, j) {
33223
- var _priceFeatureGroup$ke3, _pricelist$pgPricefac2;
33293
+ var _priceFeatureGroup$ke3, _pricelist$pgPricefac;
33224
33294
  return {
33225
33295
  headerName: priceFeatureGroupItem,
33226
33296
  field: "prices.".concat(priceFeatureGroupItem),
@@ -33229,6 +33299,9 @@ function Prices (_ref) {
33229
33299
  cellDataType: 'number',
33230
33300
  headerTooltip: (_priceFeatureGroup$ke3 = priceFeatureGroup.keysDisplayTexts) === null || _priceFeatureGroup$ke3 === void 0 ? void 0 : _priceFeatureGroup$ke3[j],
33231
33301
  cellRenderer: PriceDisplayCellRenderer,
33302
+ cellRendererParams: {
33303
+ commas: pricelist.commas
33304
+ },
33232
33305
  additionalFields: ["origPrices.".concat(priceFeatureGroupItem)],
33233
33306
  headerClass: inputHeader,
33234
33307
  headerComponentParams: {
@@ -33249,7 +33322,7 @@ function Prices (_ref) {
33249
33322
  return _ref3.apply(this, arguments);
33250
33323
  };
33251
33324
  }()),
33252
- 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],
33253
33326
  className: factorInput,
33254
33327
  tooltip: t('backoffice.idmCatalog.prices.priceFactor.label.pfg')
33255
33328
  })
@@ -33430,6 +33503,18 @@ function TablePriceList () {
33430
33503
  }
33431
33504
  };
33432
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
+ }, []);
33433
33518
  var configuration = useMemo(function () {
33434
33519
  return {
33435
33520
  type: 'dotnetSSM',
@@ -33473,7 +33558,11 @@ function TablePriceList () {
33473
33558
  headerName: 'backoffice.idmEnricher.pricelists.label.rounding',
33474
33559
  field: 'rounding',
33475
33560
  editable: true,
33476
- cellDataType: 'number'
33561
+ cellDataType: 'enum',
33562
+ customParams: {
33563
+ enumData: roundingOptions,
33564
+ displayLabelTemplate: '${name} (${value})'
33565
+ }
33477
33566
  }, {
33478
33567
  headerName: 'backoffice.idmEnricher.pricelists.label.commas',
33479
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.6",
3
+ "version": "25.2.0-beta.8",
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.6",
19
- "@crystaldesign/content-item": "25.2.0-beta.6",
20
- "@crystaldesign/diva-core": "25.2.0-beta.6",
21
- "@crystaldesign/diva-utils": "25.2.0-beta.6",
22
- "@crystaldesign/media-upload": "25.2.0-beta.6",
23
- "@crystaldesign/rtf-editor": "25.2.0-beta.6",
24
- "@crystaldesign/spreadsheet": "25.2.0-beta.6",
18
+ "@crystaldesign/content-box": "25.2.0-beta.8",
19
+ "@crystaldesign/content-item": "25.2.0-beta.8",
20
+ "@crystaldesign/diva-core": "25.2.0-beta.8",
21
+ "@crystaldesign/diva-utils": "25.2.0-beta.8",
22
+ "@crystaldesign/media-upload": "25.2.0-beta.8",
23
+ "@crystaldesign/rtf-editor": "25.2.0-beta.8",
24
+ "@crystaldesign/spreadsheet": "25.2.0-beta.8",
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": "54535a2bf41318d8c7ea02105144ca5af98f2dc1"
54
+ "gitHead": "020db064695c7615d768b89ef9f13e433cf04957"
55
55
  }