@crystaldesign/diva-backoffice 24.5.0-beta.2 → 24.5.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.
@@ -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';
@@ -5659,6 +5659,11 @@ function loadConfiguration(t, root, config, lang) {
5659
5659
  type: 'JsonEditor',
5660
5660
  title: t('backoffice.table.emailtemplates.createAction.title')
5661
5661
  },
5662
+ filter: {
5663
+ search: {
5664
+ fields: ['_id', 'variant', 'organizations', 'kind', 'subject']
5665
+ }
5666
+ },
5662
5667
  rowAction: [{
5663
5668
  actionType: 'Detail',
5664
5669
  id: 'JsonEditorUpdateEmailTemplates',
@@ -19179,13 +19184,16 @@ var multiSelectProps = function multiSelectProps(title, filter) {
19179
19184
  var selKeys = [].concat(filterValues, ['in']);
19180
19185
  setSelectedKeys(selKeys.length ? selKeys : []);
19181
19186
  };
19182
- return /*#__PURE__*/jsx("div", {
19187
+ return /*#__PURE__*/jsxs("div", {
19183
19188
  style: {
19184
- padding: 8
19189
+ padding: 8,
19190
+ display: 'flex',
19191
+ gap: 5,
19192
+ alignItems: 'flex-start'
19185
19193
  },
19186
- children: /*#__PURE__*/jsxs(Space, {
19194
+ children: [/*#__PURE__*/jsx(Space, {
19187
19195
  direction: "vertical",
19188
- children: [/*#__PURE__*/jsx(Select$2, {
19196
+ children: /*#__PURE__*/jsx(Select$2, {
19189
19197
  mode: "multiple",
19190
19198
  allowClear: true,
19191
19199
  value: displayselectedValues,
@@ -19195,32 +19203,33 @@ var multiSelectProps = function multiSelectProps(title, filter) {
19195
19203
  defaultValue: [],
19196
19204
  onChange: handleChange,
19197
19205
  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
- })]
19206
+ })
19207
+ }), /*#__PURE__*/jsxs(Space, {
19208
+ children: [/*#__PURE__*/jsx(Button, {
19209
+ type: "primary",
19210
+ onClick: function onClick() {
19211
+ return confirm();
19212
+ },
19213
+ icon: /*#__PURE__*/jsx(SearchOutlined, {}),
19214
+ size: "small",
19215
+ style: {
19216
+ width: 30,
19217
+ height: 30
19218
+ }
19219
+ }), /*#__PURE__*/jsx(Button, {
19220
+ onClick: function onClick() {
19221
+ setDisplaySelectedvalues([]);
19222
+ clearFilters === null || clearFilters === void 0 || clearFilters();
19223
+ confirm();
19224
+ },
19225
+ size: "small",
19226
+ icon: /*#__PURE__*/jsx(CloseOutlined$1, {}),
19227
+ style: {
19228
+ width: 30,
19229
+ height: 30
19230
+ }
19222
19231
  })]
19223
- })
19232
+ })]
19224
19233
  });
19225
19234
  }
19226
19235
  };
@@ -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.2",
3
+ "version": "24.5.0-beta.20",
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": "f14c4263ace93dce642014582442bde0c015b84c"
53
+ "gitHead": "27eeab2ab300491097dd16f9b0252030a4a8b2ff"
54
54
  }