magneto365.ui 2.68.0 → 2.68.1-beta
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.
- package/dist/assets/a9f25ebc43dd2922.svg +9 -0
- package/dist/cjs/css/magneto.ui.lib.min.css +1 -1
- package/dist/cjs/index.js +68 -29
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/UI/organism/FilterCard/FilterCard.interface.d.ts +12 -0
- package/dist/cjs/types/constants/icons.constants.d.ts +1 -0
- package/dist/cjs/types/constants/stories/sideFilter.constants.d.ts +0 -123
- package/dist/esm/css/magneto.ui.lib.min.css +1 -1
- package/dist/esm/index.js +68 -29
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/UI/organism/FilterCard/FilterCard.interface.d.ts +12 -0
- package/dist/esm/types/constants/icons.constants.d.ts +1 -0
- package/dist/esm/types/constants/stories/sideFilter.constants.d.ts +0 -123
- package/dist/index.d.ts +12 -0
- package/package.json +1 -1
|
@@ -16,4 +16,16 @@ export interface IFilterCard extends IFilter, ISearchRenderTypeProps {
|
|
|
16
16
|
* This is the switch title and indicate if has switch
|
|
17
17
|
*/
|
|
18
18
|
switchText?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Identification Key for each filter card
|
|
21
|
+
*/
|
|
22
|
+
index: number;
|
|
23
|
+
/**
|
|
24
|
+
*Function to bnotify an open filter
|
|
25
|
+
*/
|
|
26
|
+
setCurrentOpenFilter: (index: number) => void;
|
|
27
|
+
/**
|
|
28
|
+
* key to know if a filter has changed
|
|
29
|
+
*/
|
|
30
|
+
showFilters: boolean;
|
|
19
31
|
}
|
|
@@ -188,3 +188,4 @@ export { default as WhatsAppDark } from '../assets/Whatsapp.svg';
|
|
|
188
188
|
export { default as X } from '../assets/X.svg';
|
|
189
189
|
export { default as Youtube } from '../assets/Youtube.svg';
|
|
190
190
|
export { default as YoutubeSolid } from '../assets/YoutubeSolid.svg';
|
|
191
|
+
export { default as FilterIcon } from '../assets/filter-search.svg';
|
|
@@ -33,10 +33,7 @@ export declare const storiesFilters: ({
|
|
|
33
33
|
fieldsAlias: {
|
|
34
34
|
id: string;
|
|
35
35
|
label: string;
|
|
36
|
-
parentId?: undefined;
|
|
37
36
|
};
|
|
38
|
-
fieldFullSearch?: undefined;
|
|
39
|
-
sourceName?: undefined;
|
|
40
37
|
};
|
|
41
38
|
values: {
|
|
42
39
|
id: number;
|
|
@@ -46,90 +43,6 @@ export declare const storiesFilters: ({
|
|
|
46
43
|
isApplied: boolean;
|
|
47
44
|
}[];
|
|
48
45
|
searchPlaceholder: string;
|
|
49
|
-
renderChild?: undefined;
|
|
50
|
-
child?: undefined;
|
|
51
|
-
filtersApplied?: undefined;
|
|
52
|
-
} | {
|
|
53
|
-
label: string;
|
|
54
|
-
field: string;
|
|
55
|
-
type: string;
|
|
56
|
-
renderType: string;
|
|
57
|
-
renderChild: string;
|
|
58
|
-
dataType: string;
|
|
59
|
-
multiple: boolean;
|
|
60
|
-
repository: {
|
|
61
|
-
type: string;
|
|
62
|
-
defaultFilter: {
|
|
63
|
-
active?: undefined;
|
|
64
|
-
};
|
|
65
|
-
defaultOrder: {
|
|
66
|
-
name?: undefined;
|
|
67
|
-
};
|
|
68
|
-
defaultOperator: number;
|
|
69
|
-
source: string;
|
|
70
|
-
fieldFullSearch: string;
|
|
71
|
-
sourceName: string;
|
|
72
|
-
fieldsAlias: {
|
|
73
|
-
id: string;
|
|
74
|
-
label: string;
|
|
75
|
-
parentId: null;
|
|
76
|
-
};
|
|
77
|
-
};
|
|
78
|
-
child: {
|
|
79
|
-
label: string;
|
|
80
|
-
field: string;
|
|
81
|
-
type: string;
|
|
82
|
-
renderType: string;
|
|
83
|
-
renderChild: string;
|
|
84
|
-
dataType: string;
|
|
85
|
-
multiple: boolean;
|
|
86
|
-
repository: {
|
|
87
|
-
type: string;
|
|
88
|
-
defaultFilter: {};
|
|
89
|
-
defaultOrder: {};
|
|
90
|
-
defaultOperator: number;
|
|
91
|
-
source: string;
|
|
92
|
-
fieldFullSearch: string;
|
|
93
|
-
sourceName: string;
|
|
94
|
-
fieldsAlias: {
|
|
95
|
-
id: string;
|
|
96
|
-
label: string;
|
|
97
|
-
parentId: string;
|
|
98
|
-
};
|
|
99
|
-
};
|
|
100
|
-
child: {
|
|
101
|
-
label: string;
|
|
102
|
-
field: string;
|
|
103
|
-
type: string;
|
|
104
|
-
renderType: string;
|
|
105
|
-
dataType: string;
|
|
106
|
-
multiple: boolean;
|
|
107
|
-
repository: {
|
|
108
|
-
type: string;
|
|
109
|
-
defaultFilter: {};
|
|
110
|
-
defaultOrder: {};
|
|
111
|
-
defaultOperator: number;
|
|
112
|
-
source: string;
|
|
113
|
-
fieldFullSearch: string;
|
|
114
|
-
sourceName: string;
|
|
115
|
-
fieldsAlias: {
|
|
116
|
-
id: string;
|
|
117
|
-
label: string;
|
|
118
|
-
parentId: string;
|
|
119
|
-
};
|
|
120
|
-
};
|
|
121
|
-
values: never[];
|
|
122
|
-
filtersApplied: string[];
|
|
123
|
-
searchPlaceholder: string;
|
|
124
|
-
};
|
|
125
|
-
values: never[];
|
|
126
|
-
filtersApplied: string[];
|
|
127
|
-
searchPlaceholder: string;
|
|
128
|
-
};
|
|
129
|
-
values: never[];
|
|
130
|
-
filtersApplied: number[];
|
|
131
|
-
searchPlaceholder: string;
|
|
132
|
-
placeholder?: undefined;
|
|
133
46
|
} | {
|
|
134
47
|
label: string;
|
|
135
48
|
field: string;
|
|
@@ -150,10 +63,7 @@ export declare const storiesFilters: ({
|
|
|
150
63
|
fieldsAlias: {
|
|
151
64
|
id?: undefined;
|
|
152
65
|
label?: undefined;
|
|
153
|
-
parentId?: undefined;
|
|
154
66
|
};
|
|
155
|
-
fieldFullSearch?: undefined;
|
|
156
|
-
sourceName?: undefined;
|
|
157
67
|
};
|
|
158
68
|
values: ({
|
|
159
69
|
operator: number;
|
|
@@ -176,9 +86,6 @@ export declare const storiesFilters: ({
|
|
|
176
86
|
})[];
|
|
177
87
|
searchPlaceholder: string;
|
|
178
88
|
placeholder?: undefined;
|
|
179
|
-
renderChild?: undefined;
|
|
180
|
-
child?: undefined;
|
|
181
|
-
filtersApplied?: undefined;
|
|
182
89
|
} | {
|
|
183
90
|
label: string;
|
|
184
91
|
field: string;
|
|
@@ -197,8 +104,6 @@ export declare const storiesFilters: ({
|
|
|
197
104
|
defaultOperator: number;
|
|
198
105
|
source: null;
|
|
199
106
|
fieldsAlias: null;
|
|
200
|
-
fieldFullSearch?: undefined;
|
|
201
|
-
sourceName?: undefined;
|
|
202
107
|
};
|
|
203
108
|
values: ({
|
|
204
109
|
operator: number;
|
|
@@ -230,9 +135,6 @@ export declare const storiesFilters: ({
|
|
|
230
135
|
})[];
|
|
231
136
|
searchPlaceholder: string;
|
|
232
137
|
placeholder?: undefined;
|
|
233
|
-
renderChild?: undefined;
|
|
234
|
-
child?: undefined;
|
|
235
|
-
filtersApplied?: undefined;
|
|
236
138
|
} | {
|
|
237
139
|
label: string;
|
|
238
140
|
field: string;
|
|
@@ -251,8 +153,6 @@ export declare const storiesFilters: ({
|
|
|
251
153
|
defaultOperator: number;
|
|
252
154
|
source: string;
|
|
253
155
|
fieldsAlias: null;
|
|
254
|
-
fieldFullSearch?: undefined;
|
|
255
|
-
sourceName?: undefined;
|
|
256
156
|
};
|
|
257
157
|
values: {
|
|
258
158
|
id: string;
|
|
@@ -265,9 +165,6 @@ export declare const storiesFilters: ({
|
|
|
265
165
|
}[];
|
|
266
166
|
searchPlaceholder: string;
|
|
267
167
|
placeholder?: undefined;
|
|
268
|
-
renderChild?: undefined;
|
|
269
|
-
child?: undefined;
|
|
270
|
-
filtersApplied?: undefined;
|
|
271
168
|
} | {
|
|
272
169
|
label: string;
|
|
273
170
|
field: string;
|
|
@@ -286,8 +183,6 @@ export declare const storiesFilters: ({
|
|
|
286
183
|
defaultOperator: number;
|
|
287
184
|
source: string;
|
|
288
185
|
fieldsAlias: null;
|
|
289
|
-
fieldFullSearch?: undefined;
|
|
290
|
-
sourceName?: undefined;
|
|
291
186
|
};
|
|
292
187
|
values: {
|
|
293
188
|
id: number;
|
|
@@ -298,9 +193,6 @@ export declare const storiesFilters: ({
|
|
|
298
193
|
}[];
|
|
299
194
|
searchPlaceholder: string;
|
|
300
195
|
placeholder?: undefined;
|
|
301
|
-
renderChild?: undefined;
|
|
302
|
-
child?: undefined;
|
|
303
|
-
filtersApplied?: undefined;
|
|
304
196
|
} | {
|
|
305
197
|
label: string;
|
|
306
198
|
field: string;
|
|
@@ -319,8 +211,6 @@ export declare const storiesFilters: ({
|
|
|
319
211
|
defaultOperator: number;
|
|
320
212
|
source: null;
|
|
321
213
|
fieldsAlias: null;
|
|
322
|
-
fieldFullSearch?: undefined;
|
|
323
|
-
sourceName?: undefined;
|
|
324
214
|
};
|
|
325
215
|
values: {
|
|
326
216
|
operator: number;
|
|
@@ -331,9 +221,6 @@ export declare const storiesFilters: ({
|
|
|
331
221
|
}[];
|
|
332
222
|
searchPlaceholder: string;
|
|
333
223
|
placeholder?: undefined;
|
|
334
|
-
renderChild?: undefined;
|
|
335
|
-
child?: undefined;
|
|
336
|
-
filtersApplied?: undefined;
|
|
337
224
|
} | {
|
|
338
225
|
label: string;
|
|
339
226
|
field: string;
|
|
@@ -352,8 +239,6 @@ export declare const storiesFilters: ({
|
|
|
352
239
|
defaultOperator: number;
|
|
353
240
|
source: null;
|
|
354
241
|
fieldsAlias: null;
|
|
355
|
-
fieldFullSearch?: undefined;
|
|
356
|
-
sourceName?: undefined;
|
|
357
242
|
};
|
|
358
243
|
values: {
|
|
359
244
|
operator: number;
|
|
@@ -364,9 +249,6 @@ export declare const storiesFilters: ({
|
|
|
364
249
|
}[];
|
|
365
250
|
searchPlaceholder: string;
|
|
366
251
|
placeholder?: undefined;
|
|
367
|
-
renderChild?: undefined;
|
|
368
|
-
child?: undefined;
|
|
369
|
-
filtersApplied?: undefined;
|
|
370
252
|
} | {
|
|
371
253
|
label: string;
|
|
372
254
|
field: string;
|
|
@@ -385,8 +267,6 @@ export declare const storiesFilters: ({
|
|
|
385
267
|
defaultOperator: number;
|
|
386
268
|
source: null;
|
|
387
269
|
fieldsAlias: null;
|
|
388
|
-
fieldFullSearch?: undefined;
|
|
389
|
-
sourceName?: undefined;
|
|
390
270
|
};
|
|
391
271
|
values: {
|
|
392
272
|
operator: number;
|
|
@@ -398,9 +278,6 @@ export declare const storiesFilters: ({
|
|
|
398
278
|
}[];
|
|
399
279
|
searchPlaceholder: string;
|
|
400
280
|
placeholder?: undefined;
|
|
401
|
-
renderChild?: undefined;
|
|
402
|
-
child?: undefined;
|
|
403
|
-
filtersApplied?: undefined;
|
|
404
281
|
})[];
|
|
405
282
|
export declare const sideFilterProps: {
|
|
406
283
|
title: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -4455,6 +4455,18 @@ interface IFilterCard extends IFilter$1, ISearchRenderTypeProps$1 {
|
|
|
4455
4455
|
* This is the switch title and indicate if has switch
|
|
4456
4456
|
*/
|
|
4457
4457
|
switchText?: string;
|
|
4458
|
+
/**
|
|
4459
|
+
* Identification Key for each filter card
|
|
4460
|
+
*/
|
|
4461
|
+
index: number;
|
|
4462
|
+
/**
|
|
4463
|
+
*Function to bnotify an open filter
|
|
4464
|
+
*/
|
|
4465
|
+
setCurrentOpenFilter: (index: number) => void;
|
|
4466
|
+
/**
|
|
4467
|
+
* key to know if a filter has changed
|
|
4468
|
+
*/
|
|
4469
|
+
showFilters: boolean;
|
|
4458
4470
|
}
|
|
4459
4471
|
|
|
4460
4472
|
declare const FilterCard: FC<IFilterCard>;
|
package/package.json
CHANGED