@crystaldesign/diva-backoffice 24.5.0-beta.9 → 24.5.0-rc.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.
@@ -22,7 +22,7 @@ import { toJS, makeAutoObservable, observable, action, makeObservable } from 'mo
22
22
  import merge from 'deepmerge';
23
23
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
24
24
  import FileExcelOutlined from '@ant-design/icons/FileExcelOutlined';
25
- import { DownloadOutlined, FullscreenOutlined, FileUnknownOutlined, PlusCircleOutlined as PlusCircleOutlined$1, MinusCircleOutlined, HomeOutlined as HomeOutlined$1, InboxOutlined, PlusSquareOutlined, DeleteOutlined as DeleteOutlined$1 } from '@ant-design/icons';
25
+ import { DownloadOutlined, FullscreenOutlined, FileUnknownOutlined, CloseOutlined as CloseOutlined$1, PlusCircleOutlined as PlusCircleOutlined$1, MinusCircleOutlined, HomeOutlined as HomeOutlined$1, InboxOutlined, PlusSquareOutlined, DeleteOutlined as DeleteOutlined$1 } from '@ant-design/icons';
26
26
  import AssetEditor from '@crystaldesign/media-upload';
27
27
  import debounce from 'lodash/debounce';
28
28
  import { isArray } from 'lodash';
@@ -2849,7 +2849,10 @@ function loadConfiguration(t, root, config, lang) {
2849
2849
  }]
2850
2850
  },
2851
2851
  apiInterface: {
2852
- read: '${api2}?function=GetJsonTranslations&actualOfflineVersion=${actualOfflineVersion}&actualOfflineParentDir=${actualOfflineParentDir}&catalogGuid=${id}&catalogCodex=${codex}&filterContext=${filterContex}',
2852
+ read: {
2853
+ list: '${api2}?function=GetJsonTranslations&actualOfflineVersion=${actualOfflineVersion}&actualOfflineParentDir=${actualOfflineParentDir}&catalogGuid=${id}&catalogCodex=${codex}&filterContext=${filterContex}',
2854
+ filterServerSide: true
2855
+ },
2853
2856
  create: '${api2}?function=SetJsonTranslations'
2854
2857
  },
2855
2858
  mapping: {
@@ -4375,6 +4378,10 @@ function loadConfiguration(t, root, config, lang) {
4375
4378
  }, {
4376
4379
  title: t('backoffice.table.rooms.columns.sceneName'),
4377
4380
  field: 'sceneName'
4381
+ }, {
4382
+ title: t('backoffice.table.rooms.columns.isExclusiv'),
4383
+ field: 'organizations',
4384
+ type: 'boolean'
4378
4385
  }, {
4379
4386
  title: t('backoffice.table.rooms.columns.lastUpdated'),
4380
4387
  field: 'lastUpdated',
@@ -5609,7 +5616,7 @@ function loadConfiguration(t, root, config, lang) {
5609
5616
  field: 'lastUpdated',
5610
5617
  type: 'unixTimeStamp',
5611
5618
  defaultSortOrder: 'descend',
5612
- sorter: 2,
5619
+ sorter: 3,
5613
5620
  filter: 'advanced',
5614
5621
  width: 100
5615
5622
  }, {
@@ -5659,6 +5666,11 @@ function loadConfiguration(t, root, config, lang) {
5659
5666
  type: 'JsonEditor',
5660
5667
  title: t('backoffice.table.emailtemplates.createAction.title')
5661
5668
  },
5669
+ filter: {
5670
+ search: {
5671
+ fields: [['_id', 'eq'], 'variant', 'organizations', 'kind', 'subject']
5672
+ }
5673
+ },
5662
5674
  rowAction: [{
5663
5675
  actionType: 'Detail',
5664
5676
  id: 'JsonEditorUpdateEmailTemplates',
@@ -19179,13 +19191,16 @@ var multiSelectProps = function multiSelectProps(title, filter) {
19179
19191
  var selKeys = [].concat(filterValues, ['in']);
19180
19192
  setSelectedKeys(selKeys.length ? selKeys : []);
19181
19193
  };
19182
- return /*#__PURE__*/jsx("div", {
19194
+ return /*#__PURE__*/jsxs("div", {
19183
19195
  style: {
19184
- padding: 8
19196
+ padding: 8,
19197
+ display: 'flex',
19198
+ gap: 5,
19199
+ alignItems: 'flex-start'
19185
19200
  },
19186
- children: /*#__PURE__*/jsxs(Space, {
19201
+ children: [/*#__PURE__*/jsx(Space, {
19187
19202
  direction: "vertical",
19188
- children: [/*#__PURE__*/jsx(Select$2, {
19203
+ children: /*#__PURE__*/jsx(Select$2, {
19189
19204
  mode: "multiple",
19190
19205
  allowClear: true,
19191
19206
  value: displayselectedValues,
@@ -19195,32 +19210,33 @@ var multiSelectProps = function multiSelectProps(title, filter) {
19195
19210
  defaultValue: [],
19196
19211
  onChange: handleChange,
19197
19212
  options: options
19198
- }), /*#__PURE__*/jsxs(Space, {
19199
- children: [/*#__PURE__*/jsx(Button, {
19200
- type: "primary",
19201
- onClick: function onClick() {
19202
- return confirm();
19203
- },
19204
- icon: /*#__PURE__*/jsx(SearchOutlined, {}),
19205
- size: "small",
19206
- style: {
19207
- width: 90
19208
- },
19209
- children: "Filter"
19210
- }), /*#__PURE__*/jsx(Button, {
19211
- onClick: function onClick() {
19212
- setDisplaySelectedvalues([]);
19213
- clearFilters === null || clearFilters === void 0 || clearFilters();
19214
- confirm();
19215
- },
19216
- size: "small",
19217
- style: {
19218
- width: 90
19219
- },
19220
- children: "Reset"
19221
- })]
19213
+ })
19214
+ }), /*#__PURE__*/jsxs(Space, {
19215
+ children: [/*#__PURE__*/jsx(Button, {
19216
+ type: "primary",
19217
+ onClick: function onClick() {
19218
+ return confirm();
19219
+ },
19220
+ icon: /*#__PURE__*/jsx(SearchOutlined, {}),
19221
+ size: "small",
19222
+ style: {
19223
+ width: 30,
19224
+ height: 30
19225
+ }
19226
+ }), /*#__PURE__*/jsx(Button, {
19227
+ onClick: function onClick() {
19228
+ setDisplaySelectedvalues([]);
19229
+ clearFilters === null || clearFilters === void 0 || clearFilters();
19230
+ confirm();
19231
+ },
19232
+ size: "small",
19233
+ icon: /*#__PURE__*/jsx(CloseOutlined$1, {}),
19234
+ style: {
19235
+ width: 30,
19236
+ height: 30
19237
+ }
19222
19238
  })]
19223
- })
19239
+ })]
19224
19240
  });
19225
19241
  }
19226
19242
  };
@@ -1 +1 @@
1
- {"version":3,"file":"getColumnFilterProps.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/Table/utils/getColumnFilterProps.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,MAAM,CAAC,OAAO,WAAW,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,MAAM,MAwBjD"}
1
+ {"version":3,"file":"getColumnFilterProps.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/Table/utils/getColumnFilterProps.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAGlC,MAAM,CAAC,OAAO,WAAW,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,MAAM,MAwBjD"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crystaldesign/diva-backoffice",
3
- "version": "24.5.0-beta.9",
3
+ "version": "24.5.0-rc.1",
4
4
  "license": "COMMERCIAL",
5
5
  "devDependencies": {
6
6
  "@testing-library/jest-dom": "^5.15.0",
@@ -50,5 +50,5 @@
50
50
  },
51
51
  "module": "build/esm/index.js",
52
52
  "types": "./build/types/backoffice/src/index.d.ts",
53
- "gitHead": "b469e4a1f27cddcf6122e182610bbb61f482857a"
53
+ "gitHead": "878e0d9a5a84e21decca468b6df515b7baabb513"
54
54
  }