@fixefy/fixefy-ui-components 0.0.41 → 0.0.42

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.
Files changed (89) hide show
  1. package/build/FxActionsTray/FxActionsTray.js +351 -0
  2. package/build/FxActionsTray/actions_tray_types.d.js +4 -0
  3. package/build/FxActionsTray/index.js +11 -0
  4. package/build/FxActionsTray/styles/actions_tray.styles.js +160 -0
  5. package/build/FxAggregationsBar/FxAggregations.js +41 -0
  6. package/build/FxAggregationsBar/aggregations_types.d.js +4 -0
  7. package/build/FxAggregationsBar/helpers/structureReader.js +78 -0
  8. package/build/FxAggregationsBar/index.js +11 -0
  9. package/build/FxAggregationsBar/operations/query.js +73 -0
  10. package/build/FxAsyncDropdown/FxAsyncDropdown.js +456 -0
  11. package/build/FxAsyncDropdown/async_dropdown_types.d.js +4 -0
  12. package/build/FxAsyncDropdown/helpers/helpers.js +151 -0
  13. package/build/FxAsyncDropdown/index.js +11 -0
  14. package/build/FxAsyncDropdown/styles/dropdown.styles.js +230 -0
  15. package/build/FxAvatar/FxAvatar.js +145 -0
  16. package/build/FxAvatar/avatar_types.d.js +4 -0
  17. package/build/FxAvatar/helpers/stringToColor.js +23 -0
  18. package/build/FxAvatar/index.js +11 -0
  19. package/build/FxAvatar/styles/avatar.styles.js +193 -0
  20. package/build/FxButton/FxButton.js +106 -0
  21. package/build/FxButton/index.js +11 -0
  22. package/build/FxButton/styles/button.styles.js +24 -0
  23. package/build/FxChip/FxChip.js +37 -0
  24. package/build/FxChip/chip_types.d.js +4 -0
  25. package/build/FxChip/index.js +11 -0
  26. package/build/FxChip/styles/chip.styles.js +62 -0
  27. package/build/FxIcon/FxIcon.js +147 -0
  28. package/build/FxIcon/content/dynamic_icon.js +20 -0
  29. package/build/FxIcon/content/index.js +20 -0
  30. package/build/FxIcon/content/lazy_icon.js +137 -0
  31. package/build/FxIcon/icon_types.d.js +4 -0
  32. package/build/FxIcon/index.js +20 -0
  33. package/build/FxModal/FxModal.js +171 -0
  34. package/build/FxModal/index.js +11 -0
  35. package/build/FxModal/modal_types.d.js +4 -0
  36. package/build/FxModal/styles/modal.style.js +59 -0
  37. package/build/FxNotes/FxNotes.js +216 -0
  38. package/build/FxNotes/helpers/stringToColor.js +26 -0
  39. package/build/FxNotes/index.js +11 -0
  40. package/build/FxNotes/note_types.d.js +4 -0
  41. package/build/FxNotes/operations/queries.js +35 -0
  42. package/build/FxNotes/styles/notes.styles.js +169 -0
  43. package/build/FxNumberField/FxNumberField.js +109 -0
  44. package/build/FxNumberField/index.js +11 -0
  45. package/build/FxNumberField/number_field_types.d.js +4 -0
  46. package/build/FxNumberField/styles/number_field.styles.js +94 -0
  47. package/build/FxProgressCircle/FxProgressCircle.js +65 -0
  48. package/build/FxProgressCircle/index.js +11 -0
  49. package/build/FxProgressCircle/progress_circle_types.d.js +4 -0
  50. package/build/FxProgressCircle/styles/progress_circle.styles.js +106 -0
  51. package/build/FxProgressCounter/ProgressCounter.js +168 -0
  52. package/build/FxProgressCounter/index.js +11 -0
  53. package/build/FxProgressCounter/progress_counter_types.d.js +4 -0
  54. package/build/FxProgressCounter/styles/progress_counter.styles.js +61 -0
  55. package/build/FxScore/FxScore.js +207 -0
  56. package/build/FxScore/index.js +11 -0
  57. package/build/FxScore/score_types.d.js +4 -0
  58. package/build/FxScore/styles/score.styles.js +96 -0
  59. package/build/FxShowMore/FxShowMore.js +80 -0
  60. package/build/FxShowMore/index.js +11 -0
  61. package/build/FxShowMore/show_more_types.d.js +4 -0
  62. package/build/FxShowMore/styles/show_more.styles.js +134 -0
  63. package/build/FxSlider/FxSlider.js +49 -0
  64. package/build/FxSlider/index.js +11 -0
  65. package/build/FxSlider/slider_types.d.js +4 -0
  66. package/build/FxStatisticsBar/FxStatisticsBar.js +191 -0
  67. package/build/FxStatisticsBar/index.js +11 -0
  68. package/build/FxStatisticsBar/statistics_bar_types.d.js +4 -0
  69. package/build/FxStatisticsBar/styles/statistics.styles.js +98 -0
  70. package/build/FxStatusBar/FxStatusBar.js +143 -0
  71. package/build/FxStatusBar/helpers/constants.js +22 -0
  72. package/build/FxStatusBar/index.js +20 -0
  73. package/build/FxStatusBar/status_bar_types.d.js +4 -0
  74. package/build/FxStatusBar/styles/statusBar.styles.js +131 -0
  75. package/build/FxStyledComponents/index.js +311 -0
  76. package/build/FxTextField/FxTextField.js +208 -0
  77. package/build/FxTextField/index.js +11 -0
  78. package/build/FxTextField/text_field_types.d.js +4 -0
  79. package/build/FxTodo/FxTodo.js +95 -0
  80. package/build/FxTodo/index.js +23 -0
  81. package/build/FxTodo/styles/todo.styles.js +183 -0
  82. package/build/FxTodo/todo_types.d.js +4 -0
  83. package/build/FxWizard/FxWizard.js +179 -0
  84. package/build/FxWizard/WizardContext.js +207 -0
  85. package/build/FxWizard/index.js +23 -0
  86. package/build/FxWizard/styles/wizard.styles.js +89 -0
  87. package/build/FxWizard/wizard_types.d.js +4 -0
  88. package/build/index.js +182 -0
  89. package/package.json +2 -2
@@ -0,0 +1,351 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "FxActionsTray", {
6
+ enumerable: true,
7
+ get: function() {
8
+ return FxActionsTray;
9
+ }
10
+ });
11
+ const _jsxruntime = require("react/jsx-runtime");
12
+ const _react = /*#__PURE__*/ _interop_require_default(require("react"));
13
+ const _image = /*#__PURE__*/ _interop_require_default(require("next/image"));
14
+ const _material = require("@mui/material");
15
+ const _fixefyuiutils = require("@fixefy/fixefy-ui-utils");
16
+ const _actions_traystyles = require("./styles/actions_tray.styles");
17
+ function _interop_require_default(obj) {
18
+ return obj && obj.__esModule ? obj : {
19
+ default: obj
20
+ };
21
+ }
22
+ function FxActionsTray({ type, onApprove, onChallenge, show, onClose, chargesCount, container, direction = 'up' }) {
23
+ const renderActions = ()=>{
24
+ switch(type){
25
+ case 'approved':
26
+ return /*#__PURE__*/ (0, _jsxruntime.jsx)(ApprovedActions, {
27
+ onChallenge: onChallenge
28
+ });
29
+ case 'challenge':
30
+ return /*#__PURE__*/ (0, _jsxruntime.jsx)(ChallengeActions, {
31
+ onChallenge: onChallenge,
32
+ onApprove: onApprove
33
+ });
34
+ case 'pending':
35
+ return /*#__PURE__*/ (0, _jsxruntime.jsx)(PendingActions, {
36
+ onApprove: onApprove,
37
+ onChallenge: onChallenge
38
+ });
39
+ case 'no_pricing':
40
+ return /*#__PURE__*/ (0, _jsxruntime.jsx)(NoPricingActions, {
41
+ onApprove: onApprove,
42
+ onChallenge: onChallenge
43
+ });
44
+ default:
45
+ return /*#__PURE__*/ (0, _jsxruntime.jsx)(ApprovedActions, {
46
+ onChallenge: onChallenge
47
+ });
48
+ }
49
+ };
50
+ return /*#__PURE__*/ (0, _jsxruntime.jsx)("div", {
51
+ children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Slide, {
52
+ direction: direction,
53
+ in: show,
54
+ mountOnEnter: true,
55
+ unmountOnExit: true,
56
+ timeout: 400,
57
+ container: container,
58
+ children: /*#__PURE__*/ (0, _jsxruntime.jsxs)(_actions_traystyles.Container, {
59
+ children: [
60
+ /*#__PURE__*/ (0, _jsxruntime.jsxs)(_actions_traystyles.TitleWrapper, {
61
+ children: [
62
+ /*#__PURE__*/ (0, _jsxruntime.jsx)(_actions_traystyles.ChargesCount, {
63
+ children: chargesCount
64
+ }),
65
+ /*#__PURE__*/ (0, _jsxruntime.jsx)(_actions_traystyles.ChargesTitle, {
66
+ children: "charges selected"
67
+ })
68
+ ]
69
+ }),
70
+ /*#__PURE__*/ (0, _jsxruntime.jsx)(_actions_traystyles.Divider, {}),
71
+ /*#__PURE__*/ (0, _jsxruntime.jsx)("div", {
72
+ children: renderActions()
73
+ }),
74
+ /*#__PURE__*/ (0, _jsxruntime.jsx)(_actions_traystyles.Divider, {}),
75
+ /*#__PURE__*/ (0, _jsxruntime.jsx)("div", {
76
+ onClick: onClose,
77
+ children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_actions_traystyles.Close, {
78
+ children: "close"
79
+ })
80
+ })
81
+ ]
82
+ })
83
+ })
84
+ });
85
+ }
86
+ const ChallengeActions = ({ onChallenge, onApprove })=>{
87
+ return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_jsxruntime.Fragment, {
88
+ children: [
89
+ /*#__PURE__*/ (0, _jsxruntime.jsxs)(_actions_traystyles.ActionBtn, {
90
+ onClick: onChallenge,
91
+ type: "low",
92
+ children: [
93
+ /*#__PURE__*/ (0, _jsxruntime.jsx)(_image.default, {
94
+ alt: "challenge",
95
+ loader: ()=>(0, _fixefyuiutils.imageLoader)({
96
+ root: 'https://cdn-dev.fixefy.me/',
97
+ src: 'actions/challenge.svg'
98
+ }),
99
+ src: 'actions/challenge.svg',
100
+ width: 20,
101
+ height: 20,
102
+ onLoad: ()=>console.log('loaded'),
103
+ onError: (e)=>console.log('error:', e)
104
+ }),
105
+ /*#__PURE__*/ (0, _jsxruntime.jsx)(_actions_traystyles.ActionTitle, {
106
+ children: "challenge"
107
+ })
108
+ ]
109
+ }),
110
+ /*#__PURE__*/ (0, _jsxruntime.jsxs)(_actions_traystyles.ActionBtn, {
111
+ onClick: onApprove,
112
+ children: [
113
+ /*#__PURE__*/ (0, _jsxruntime.jsx)(_image.default, {
114
+ alt: "approve",
115
+ loader: ()=>(0, _fixefyuiutils.imageLoader)({
116
+ root: 'https://cdn-dev.fixefy.me/',
117
+ src: 'actions/approve.svg'
118
+ }),
119
+ src: 'actions/approve.svg',
120
+ width: 20,
121
+ height: 20,
122
+ onLoad: ()=>console.log('loaded'),
123
+ onError: (e)=>console.log('error:', e)
124
+ }),
125
+ /*#__PURE__*/ (0, _jsxruntime.jsx)(_actions_traystyles.ActionTitle, {
126
+ children: "approve"
127
+ })
128
+ ]
129
+ }),
130
+ /*#__PURE__*/ (0, _jsxruntime.jsxs)(_actions_traystyles.ActionBtn, {
131
+ onClick: onApprove,
132
+ children: [
133
+ /*#__PURE__*/ (0, _jsxruntime.jsx)(_image.default, {
134
+ alt: "ignore and approve",
135
+ loader: ()=>(0, _fixefyuiutils.imageLoader)({
136
+ root: 'https://cdn-dev.fixefy.me/',
137
+ src: 'actions/ignore_and_approve.svg'
138
+ }),
139
+ src: 'actions/ignore_and_approve.svg',
140
+ width: 20,
141
+ height: 20,
142
+ onLoad: ()=>console.log('loaded'),
143
+ onError: (e)=>console.log('error:', e)
144
+ }),
145
+ /*#__PURE__*/ (0, _jsxruntime.jsx)(_actions_traystyles.ActionTitle, {
146
+ children: "ignore & approve"
147
+ })
148
+ ]
149
+ }),
150
+ /*#__PURE__*/ (0, _jsxruntime.jsxs)(_actions_traystyles.ActionBtn, {
151
+ onClick: onApprove,
152
+ children: [
153
+ /*#__PURE__*/ (0, _jsxruntime.jsx)(_image.default, {
154
+ alt: "change exception",
155
+ loader: ()=>(0, _fixefyuiutils.imageLoader)({
156
+ root: 'https://cdn-dev.fixefy.me/',
157
+ src: 'actions/change_exception.svg'
158
+ }),
159
+ src: 'actions/change_exception.svg',
160
+ width: 20,
161
+ height: 20,
162
+ onLoad: ()=>console.log('loaded'),
163
+ onError: (e)=>console.log('error:', e)
164
+ }),
165
+ /*#__PURE__*/ (0, _jsxruntime.jsx)(_actions_traystyles.ActionTitle, {
166
+ children: "Change exeption"
167
+ })
168
+ ]
169
+ })
170
+ ]
171
+ });
172
+ };
173
+ const PendingActions = ({ onApprove, onChallenge })=>{
174
+ return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_jsxruntime.Fragment, {
175
+ children: [
176
+ /*#__PURE__*/ (0, _jsxruntime.jsxs)(_actions_traystyles.ActionBtn, {
177
+ onClick: onApprove,
178
+ type: "excellent",
179
+ children: [
180
+ /*#__PURE__*/ (0, _jsxruntime.jsx)(_image.default, {
181
+ alt: "approve",
182
+ loader: ()=>(0, _fixefyuiutils.imageLoader)({
183
+ root: 'https://cdn-dev.fixefy.me/',
184
+ src: 'actions/approve.svg'
185
+ }),
186
+ src: 'actions/approve.svg',
187
+ width: 20,
188
+ height: 20,
189
+ onLoad: ()=>console.log('loaded'),
190
+ onError: (e)=>console.log('error:', e)
191
+ }),
192
+ /*#__PURE__*/ (0, _jsxruntime.jsx)(_actions_traystyles.ActionTitle, {
193
+ children: "approve"
194
+ })
195
+ ]
196
+ }),
197
+ /*#__PURE__*/ (0, _jsxruntime.jsxs)(_actions_traystyles.ActionBtn, {
198
+ onClick: onChallenge,
199
+ children: [
200
+ /*#__PURE__*/ (0, _jsxruntime.jsx)(_image.default, {
201
+ alt: "challenge",
202
+ loader: ()=>(0, _fixefyuiutils.imageLoader)({
203
+ root: 'https://cdn-dev.fixefy.me/',
204
+ src: 'actions/challenge.svg'
205
+ }),
206
+ src: 'actions/challenge.svg',
207
+ width: 20,
208
+ height: 20,
209
+ onLoad: ()=>console.log('loaded'),
210
+ onError: (e)=>console.log('error:', e)
211
+ }),
212
+ /*#__PURE__*/ (0, _jsxruntime.jsx)(_actions_traystyles.ActionTitle, {
213
+ children: "challenge"
214
+ })
215
+ ]
216
+ }),
217
+ /*#__PURE__*/ (0, _jsxruntime.jsxs)(_actions_traystyles.ActionBtn, {
218
+ onClick: onChallenge,
219
+ children: [
220
+ /*#__PURE__*/ (0, _jsxruntime.jsx)(_image.default, {
221
+ alt: "dive in",
222
+ loader: ()=>(0, _fixefyuiutils.imageLoader)({
223
+ root: 'https://cdn-dev.fixefy.me/',
224
+ src: 'actions/dive_in.svg'
225
+ }),
226
+ src: 'actions/dive_in.svg',
227
+ width: 20,
228
+ height: 20,
229
+ onLoad: ()=>console.log('loaded'),
230
+ onError: (e)=>console.log('error:', e)
231
+ }),
232
+ /*#__PURE__*/ (0, _jsxruntime.jsx)(_actions_traystyles.ActionTitle, {
233
+ children: "dive in"
234
+ })
235
+ ]
236
+ })
237
+ ]
238
+ });
239
+ };
240
+ const NoPricingActions = ({ onApprove, onChallenge })=>{
241
+ return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_jsxruntime.Fragment, {
242
+ children: [
243
+ /*#__PURE__*/ (0, _jsxruntime.jsxs)(_actions_traystyles.ActionBtn, {
244
+ onClick: onChallenge,
245
+ children: [
246
+ /*#__PURE__*/ (0, _jsxruntime.jsx)(_image.default, {
247
+ alt: "dive in",
248
+ loader: ()=>(0, _fixefyuiutils.imageLoader)({
249
+ root: 'https://cdn-dev.fixefy.me/',
250
+ src: 'actions/dive_in.svg'
251
+ }),
252
+ src: 'actions/dive_in.svg',
253
+ width: 20,
254
+ height: 20,
255
+ onLoad: ()=>console.log('loaded'),
256
+ onError: (e)=>console.log('error:', e)
257
+ }),
258
+ /*#__PURE__*/ (0, _jsxruntime.jsx)(_actions_traystyles.ActionTitle, {
259
+ children: "dive in"
260
+ })
261
+ ]
262
+ }),
263
+ /*#__PURE__*/ (0, _jsxruntime.jsxs)(_actions_traystyles.ActionBtn, {
264
+ onClick: onApprove,
265
+ children: [
266
+ /*#__PURE__*/ (0, _jsxruntime.jsx)(_image.default, {
267
+ alt: "solve",
268
+ loader: ()=>(0, _fixefyuiutils.imageLoader)({
269
+ root: 'https://cdn-dev.fixefy.me/',
270
+ src: 'actions/solve.svg'
271
+ }),
272
+ src: 'actions/solve.svg',
273
+ width: 20,
274
+ height: 20,
275
+ onLoad: ()=>console.log('loaded'),
276
+ onError: (e)=>console.log('error:', e)
277
+ }),
278
+ /*#__PURE__*/ (0, _jsxruntime.jsx)(_actions_traystyles.ActionTitle, {
279
+ children: "solve"
280
+ })
281
+ ]
282
+ }),
283
+ /*#__PURE__*/ (0, _jsxruntime.jsxs)(_actions_traystyles.ActionBtn, {
284
+ onClick: onApprove,
285
+ children: [
286
+ /*#__PURE__*/ (0, _jsxruntime.jsx)(_image.default, {
287
+ alt: "ignore and approve",
288
+ loader: ()=>(0, _fixefyuiutils.imageLoader)({
289
+ root: 'https://cdn-dev.fixefy.me/',
290
+ src: 'actions/ignore_and_approve.svg'
291
+ }),
292
+ src: 'actions/ignore_and_approve.svg',
293
+ width: 20,
294
+ height: 20,
295
+ onLoad: ()=>console.log('loaded'),
296
+ onError: (e)=>console.log('error:', e)
297
+ }),
298
+ /*#__PURE__*/ (0, _jsxruntime.jsx)(_actions_traystyles.ActionTitle, {
299
+ children: "ignore & approve"
300
+ })
301
+ ]
302
+ })
303
+ ]
304
+ });
305
+ };
306
+ const ApprovedActions = ({ onChallenge })=>{
307
+ return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_jsxruntime.Fragment, {
308
+ children: [
309
+ /*#__PURE__*/ (0, _jsxruntime.jsxs)(_actions_traystyles.ActionBtn, {
310
+ onClick: onChallenge,
311
+ children: [
312
+ /*#__PURE__*/ (0, _jsxruntime.jsx)(_image.default, {
313
+ alt: "dive in",
314
+ loader: ()=>(0, _fixefyuiutils.imageLoader)({
315
+ root: 'https://cdn-dev.fixefy.me/',
316
+ src: 'actionsCards/check_exceptions.svg'
317
+ }),
318
+ src: 'actionsCards/check_exceptions.svg',
319
+ width: 20,
320
+ height: 20,
321
+ onLoad: ()=>console.log('loaded'),
322
+ onError: (e)=>console.log('error:', e)
323
+ }),
324
+ /*#__PURE__*/ (0, _jsxruntime.jsx)(_actions_traystyles.ActionTitle, {
325
+ children: "dive in"
326
+ })
327
+ ]
328
+ }),
329
+ /*#__PURE__*/ (0, _jsxruntime.jsxs)(_actions_traystyles.ActionBtn, {
330
+ onClick: onChallenge,
331
+ children: [
332
+ /*#__PURE__*/ (0, _jsxruntime.jsx)(_image.default, {
333
+ alt: "challenge",
334
+ loader: ()=>(0, _fixefyuiutils.imageLoader)({
335
+ root: 'https://cdn-dev.fixefy.me/',
336
+ src: 'actions/undo.svg'
337
+ }),
338
+ src: 'actions/undo.svg',
339
+ width: 20,
340
+ height: 20,
341
+ onLoad: ()=>console.log('loaded'),
342
+ onError: (e)=>console.log('error:', e)
343
+ }),
344
+ /*#__PURE__*/ (0, _jsxruntime.jsx)(_actions_traystyles.ActionTitle, {
345
+ children: "undo"
346
+ })
347
+ ]
348
+ })
349
+ ]
350
+ });
351
+ };
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "FxActionsTray", {
6
+ enumerable: true,
7
+ get: function() {
8
+ return _FxActionsTray.FxActionsTray;
9
+ }
10
+ });
11
+ const _FxActionsTray = require("./FxActionsTray");
@@ -0,0 +1,160 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ function _export(target, all) {
6
+ for(var name in all)Object.defineProperty(target, name, {
7
+ enumerable: true,
8
+ get: all[name]
9
+ });
10
+ }
11
+ _export(exports, {
12
+ ActionBtn: function() {
13
+ return ActionBtn;
14
+ },
15
+ ActionTitle: function() {
16
+ return ActionTitle;
17
+ },
18
+ ChargesCount: function() {
19
+ return ChargesCount;
20
+ },
21
+ ChargesTitle: function() {
22
+ return ChargesTitle;
23
+ },
24
+ Close: function() {
25
+ return Close;
26
+ },
27
+ Container: function() {
28
+ return Container;
29
+ },
30
+ Divider: function() {
31
+ return Divider;
32
+ },
33
+ TitleWrapper: function() {
34
+ return TitleWrapper;
35
+ }
36
+ });
37
+ const _FxButton = require("../../FxButton");
38
+ const _material = require("@mui/material");
39
+ const _styles = require("@mui/material/styles");
40
+ function _define_property(obj, key, value) {
41
+ if (key in obj) {
42
+ Object.defineProperty(obj, key, {
43
+ value: value,
44
+ enumerable: true,
45
+ configurable: true,
46
+ writable: true
47
+ });
48
+ } else {
49
+ obj[key] = value;
50
+ }
51
+ return obj;
52
+ }
53
+ function _object_spread(target) {
54
+ for(var i = 1; i < arguments.length; i++){
55
+ var source = arguments[i] != null ? arguments[i] : {};
56
+ var ownKeys = Object.keys(source);
57
+ if (typeof Object.getOwnPropertySymbols === "function") {
58
+ ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
59
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
60
+ }));
61
+ }
62
+ ownKeys.forEach(function(key) {
63
+ _define_property(target, key, source[key]);
64
+ });
65
+ }
66
+ return target;
67
+ }
68
+ function ownKeys(object, enumerableOnly) {
69
+ var keys = Object.keys(object);
70
+ if (Object.getOwnPropertySymbols) {
71
+ var symbols = Object.getOwnPropertySymbols(object);
72
+ if (enumerableOnly) {
73
+ symbols = symbols.filter(function(sym) {
74
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
75
+ });
76
+ }
77
+ keys.push.apply(keys, symbols);
78
+ }
79
+ return keys;
80
+ }
81
+ function _object_spread_props(target, source) {
82
+ source = source != null ? source : {};
83
+ if (Object.getOwnPropertyDescriptors) {
84
+ Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
85
+ } else {
86
+ ownKeys(Object(source)).forEach(function(key) {
87
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
88
+ });
89
+ }
90
+ return target;
91
+ }
92
+ // const filterWhite = 'invert(99%) sepia(74%) saturate(0%) hue-rotate(253deg) brightness(108%) contrast(100%)'
93
+ const filterPrimary = 'invert(46%) sepia(48%) saturate(297%) hue-rotate(145deg) brightness(97%) contrast(90%)';
94
+ const Container = (0, _styles.styled)('div')(({ theme })=>({
95
+ display: 'flex',
96
+ alignItems: 'center',
97
+ justifyContent: 'space-between',
98
+ background: theme.palette.common.white,
99
+ border: '1px solid #C6DDE2',
100
+ boxShadow: '0px 0px 10px rgba(86, 135, 147, 0.2)',
101
+ borderRadius: 8,
102
+ padding: '16px 24px',
103
+ height: 38,
104
+ width: 'fit-content',
105
+ margin: 4
106
+ }));
107
+ const ChargesCount = (0, _styles.styled)(_material.Typography)(({ theme })=>_object_spread_props(_object_spread({}, theme.typography.table), {
108
+ color: theme.palette.typography.title,
109
+ fontWeight: 700,
110
+ marginRight: 4
111
+ }));
112
+ const ChargesTitle = (0, _styles.styled)(_material.Typography)(({ theme })=>_object_spread_props(_object_spread({}, theme.typography.table), {
113
+ color: theme.palette.typography.title
114
+ }));
115
+ const Close = (0, _styles.styled)(_material.Typography)(({ theme })=>_object_spread_props(_object_spread({}, theme.typography.body1), {
116
+ color: theme.palette.primary['500'],
117
+ textTransform: 'uppercase',
118
+ fontWeight: 600,
119
+ letterSpacing: '0.5px',
120
+ cursor: 'pointer'
121
+ }));
122
+ const TitleWrapper = (0, _styles.styled)('div')(({})=>({
123
+ display: 'flex',
124
+ alignItems: 'center',
125
+ justifyContent: 'center'
126
+ }));
127
+ const Divider = (0, _styles.styled)('div')(({ theme })=>({
128
+ width: 1,
129
+ height: '100%',
130
+ background: theme.palette.greyscale.contrastText,
131
+ marginRight: 24,
132
+ marginLeft: 24
133
+ }));
134
+ const ActionBtn = (0, _styles.styled)(_FxButton.FxButton)(({ theme, type })=>({
135
+ height: 40,
136
+ maxHeight: 40,
137
+ borderRadius: 100,
138
+ padding: '8px 16px',
139
+ color: type ? theme.palette.common.white : theme.palette.primary['500'],
140
+ borderColor: type ? theme.palette.score[type] : theme.palette.primary['500'],
141
+ background: type ? theme.palette.score[type] : theme.palette.common.white,
142
+ marginRight: 8,
143
+ ['& img']: {
144
+ filter: type ? 'none' : filterPrimary
145
+ },
146
+ ['&:hover']: {
147
+ background: type ? theme.palette.score[type] : theme.palette.common.white,
148
+ color: type ? theme.palette.common.white : theme.palette.primary['500'],
149
+ borderColor: type ? theme.palette.score[type] : theme.palette.primary['500']
150
+ }
151
+ }));
152
+ const ActionTitle = (0, _styles.styled)('span')(({ theme })=>_object_spread_props(_object_spread({}, theme.typography.body1), {
153
+ color: 'inherit',
154
+ textTransform: 'uppercase',
155
+ fontWeight: 600,
156
+ letterSpacing: '0.5px',
157
+ cursor: 'pointer',
158
+ marginLeft: 4,
159
+ marginTop: 2
160
+ }));
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "FxAggregationsBar", {
6
+ enumerable: true,
7
+ get: function() {
8
+ return FxAggregationsBar;
9
+ }
10
+ });
11
+ const _jsxruntime = require("react/jsx-runtime");
12
+ const _react = /*#__PURE__*/ _interop_require_default(require("react"));
13
+ const _Stack = /*#__PURE__*/ _interop_require_default(require("@mui/material/Stack"));
14
+ const _structureReader = require("./helpers/structureReader");
15
+ function _interop_require_default(obj) {
16
+ return obj && obj.__esModule ? obj : {
17
+ default: obj
18
+ };
19
+ }
20
+ const FxAggregationsBar = (props)=>{
21
+ const { structure, minWidth, mb, filter, initialValues } = props;
22
+ const { children, extended } = structure;
23
+ const { variables } = extended;
24
+ const { collapsed } = variables;
25
+ return /*#__PURE__*/ (0, _jsxruntime.jsx)(_Stack.default, {
26
+ direction: "row",
27
+ spacing: 1.5,
28
+ sx: {
29
+ mb: mb ? mb : 0,
30
+ ['& div']: {
31
+ minWidth: minWidth
32
+ },
33
+ ['& > span']: {
34
+ minWidth: minWidth
35
+ }
36
+ },
37
+ children: children.map((child)=>{
38
+ return (0, _structureReader.structureReader)(child, filter, collapsed, initialValues);
39
+ })
40
+ });
41
+ };
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
@@ -0,0 +1,78 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "structureReader", {
6
+ enumerable: true,
7
+ get: function() {
8
+ return structureReader;
9
+ }
10
+ });
11
+ const _jsxruntime = require("react/jsx-runtime");
12
+ const _react = /*#__PURE__*/ _interop_require_default(require("react"));
13
+ const _material = require("@mui/material");
14
+ const _FxScore = require("../../FxScore");
15
+ const _FxStatisticsBar = require("../../FxStatisticsBar");
16
+ const _FxProgressCounter = require("../../FxProgressCounter");
17
+ function _interop_require_default(obj) {
18
+ return obj && obj.__esModule ? obj : {
19
+ default: obj
20
+ };
21
+ }
22
+ const structureReader = (structure, filter, collapsed, initialValues)=>{
23
+ const { extended, type } = structure;
24
+ switch(type){
25
+ case 'aggregations_primary_container':
26
+ return structure.children.map((child, index)=>{
27
+ var _child_input_type, _child_input_type1, _extended_variables;
28
+ return ((_child_input_type = child.input_type) === null || _child_input_type === void 0 ? void 0 : _child_input_type.value) === 'percentage' ? /*#__PURE__*/ (0, _jsxruntime.jsx)(_FxScore.FxScore, {
29
+ structure: child,
30
+ filter: filter,
31
+ value: initialValues === null || initialValues === void 0 ? void 0 : initialValues.score
32
+ }, index) : ((_child_input_type1 = child.input_type) === null || _child_input_type1 === void 0 ? void 0 : _child_input_type1.value) === 'progress' ? /*#__PURE__*/ (0, _jsxruntime.jsx)(_FxProgressCounter.FxProgressCounter, {
33
+ structure: child,
34
+ filter: filter,
35
+ values: initialValues
36
+ }, index) : /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Box, {
37
+ sx: {
38
+ display: 'flex',
39
+ justifyContent: 'center',
40
+ alignItems: 'center',
41
+ width: 'fit-content',
42
+ padding: 2,
43
+ borderRadius: 2,
44
+ backgroundColor: (extended === null || extended === void 0 ? void 0 : (_extended_variables = extended.variables) === null || _extended_variables === void 0 ? void 0 : _extended_variables.bg) || '#FFFFFF'
45
+ },
46
+ children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_FxStatisticsBar.FxStatisticsBar, {
47
+ structure: child,
48
+ filter: filter,
49
+ collapsed: collapsed,
50
+ value: initialValues ? initialValues[child.extended.object_path] : null
51
+ }, index)
52
+ });
53
+ });
54
+ case 'aggregations_secondary_container':
55
+ var _extended_variables;
56
+ return /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Stack, {
57
+ direction: "row",
58
+ divider: /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Divider, {
59
+ orientation: "vertical",
60
+ flexItem: true
61
+ }),
62
+ spacing: 2,
63
+ sx: {
64
+ backgroundColor: (extended === null || extended === void 0 ? void 0 : (_extended_variables = extended.variables) === null || _extended_variables === void 0 ? void 0 : _extended_variables.bg) || '#FFFFFF',
65
+ borderRadius: '8px',
66
+ padding: '24px 16px'
67
+ },
68
+ children: structure.children.map((child, index)=>{
69
+ return /*#__PURE__*/ (0, _jsxruntime.jsx)(_FxStatisticsBar.FxStatisticsBar, {
70
+ structure: child,
71
+ filter: filter,
72
+ collapsed: collapsed,
73
+ value: initialValues ? initialValues[child.extended.object_path] : null
74
+ }, index);
75
+ })
76
+ });
77
+ }
78
+ };
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "FxAggregationsBar", {
6
+ enumerable: true,
7
+ get: function() {
8
+ return _FxAggregations.FxAggregationsBar;
9
+ }
10
+ });
11
+ const _FxAggregations = require("./FxAggregations");