datastake-daf 0.6.164 → 0.6.166

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.
@@ -15269,17 +15269,16 @@ function Widget(_ref) {
15269
15269
  className: "flex-1 flex justify-content-end",
15270
15270
  children: /*#__PURE__*/jsxRuntime.jsx(antd.Button, {
15271
15271
  className: "squareIconButton no-min-width",
15272
+ icon: /*#__PURE__*/jsxRuntime.jsx(CustomIcon, {
15273
+ name: "Filter",
15274
+ width: 12,
15275
+ height: 12
15276
+ }),
15272
15277
  style: {
15273
15278
  height: '25px',
15274
15279
  width: '25px'
15275
15280
  },
15276
- onClick: () => setShowFilters(p => !p),
15277
- children: /*#__PURE__*/jsxRuntime.jsx(CustomIcon, {
15278
- name: "Filter",
15279
- width: 14,
15280
- height: 13,
15281
- className: "mt-1"
15282
- })
15281
+ onClick: () => setShowFilters(p => !p)
15283
15282
  })
15284
15283
  }), addedHeaderFirst && addedHeader, isCollapsable && /*#__PURE__*/jsxRuntime.jsx("div", {
15285
15284
  className: "flex justify-content-end",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "datastake-daf",
3
- "version": "0.6.164",
3
+ "version": "0.6.166",
4
4
  "dependencies": {
5
5
  "@ant-design/icons": "^5.2.5",
6
6
  "@antv/g2": "^5.1.1",
@@ -23,5 +23,40 @@ export const Primary = {
23
23
  { label: "Legal Form", value: "--" },
24
24
  { label: "customer::Date of Incorporation", value: "--" },
25
25
  ],
26
+ filtersConfig: {
27
+ "language": "en",
28
+ "filtersConfig": {
29
+ "country": {
30
+ "type": "select",
31
+ "label": "Country",
32
+ "style": {
33
+ "flex": 1
34
+ },
35
+ "labelStyle": {
36
+ "flex": 1
37
+ },
38
+ "isMulti": true
39
+ }
40
+ },
41
+ "options": {
42
+ "country": [
43
+ {
44
+ "label": "Peru",
45
+ "value": "PE"
46
+ },
47
+ {
48
+ "label": "Colombia",
49
+ "value": "CO"
50
+ }
51
+ ]
52
+ },
53
+ "selectedFilters": {
54
+ "country": [
55
+ "PE",
56
+ "CO"
57
+ ]
58
+ },
59
+ "type": "small"
60
+ },
26
61
  },
27
62
  };
@@ -94,14 +94,18 @@ export default function Widget({
94
94
 
95
95
  {!!filtersConfig && (
96
96
  <div className="flex-1 flex justify-content-end">
97
- <Button className="squareIconButton no-min-width" style={{height: '25px', width: '25px'}} onClick={() => setShowFilters((p) => !p)}>
98
- <CustomIcon
99
- name="Filter"
100
- width={14}
101
- height={13}
102
- className="mt-1"
103
- />
104
- </Button>
97
+ <Button
98
+ className="squareIconButton no-min-width"
99
+ icon={
100
+ <CustomIcon
101
+ name="Filter"
102
+ width={12}
103
+ height={12}
104
+ />
105
+ }
106
+ style={{height: '25px', width: '25px'}}
107
+ onClick={() => setShowFilters((p) => !p)}
108
+ />
105
109
  </div>
106
110
  )}
107
111