@m4l/components 0.1.76 → 0.1.78

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 (133) hide show
  1. package/@types/export.d.ts +22 -3
  2. package/components/AccountPopover/{index.47cf6c43.js → index.7e76dbb7.js} +8 -7
  3. package/components/AppBar/{index.f04f5e45.js → index.06858422.js} +8 -7
  4. package/components/CommonActions/components/ActionCancel/{index.453c2d24.js → index.d536ccfa.js} +2 -2
  5. package/components/CommonActions/components/ActionFormCancel/{index.c2a2fd55.js → index.a915b105.js} +19 -19
  6. package/components/CommonActions/components/ActionFormIntro/{index.25d33912.js → index.14e65d6c.js} +2 -2
  7. package/components/CommonActions/components/ActionIntro/{index.c653a266.js → index.aa1648eb.js} +2 -2
  8. package/components/CommonActions/components/Actions/{index.e376a68e.js → index.52125041.js} +17 -18
  9. package/components/DataGrid/{index.ffaf000e.js → index.9fb3e6a1.js} +40 -31
  10. package/components/DataGrid/types.d.ts +5 -1
  11. package/components/DraggableWindow/{index.b08af1dc.js → index.c702d3f2.js} +1 -1
  12. package/components/DynamicFilter/constants.d.ts +1 -0
  13. package/components/DynamicFilter/contexts/DynamicFilterContext/store.d.ts +6 -1
  14. package/components/DynamicFilter/{index.d7c03a61.js → index.d1a2e2d1.js} +54 -47
  15. package/components/DynamicFilter/tests/contants.d.ts +2 -3
  16. package/components/DynamicFilter/types.d.ts +4 -0
  17. package/components/GridLayout/GridLayout.d.ts +6 -0
  18. package/components/GridLayout/Responsive/index.0905a698.js +353 -0
  19. package/components/GridLayout/WidthProvider/index.9a26dfe4.js +65 -0
  20. package/components/GridLayout/calculateUtils.d.ts +42 -0
  21. package/components/GridLayout/index.d.ts +6 -0
  22. package/components/GridLayout/index.da6fd387.js +1410 -0
  23. package/components/GridLayout/subcomponents/GridItem/index.d.ts +26 -0
  24. package/components/GridLayout/subcomponents/GridItem/types.d.ts +78 -0
  25. package/components/GridLayout/subcomponents/Responsive/index.d.ts +3 -0
  26. package/components/GridLayout/subcomponents/Responsive/responsiveUtils.d.ts +64 -0
  27. package/components/GridLayout/subcomponents/Responsive/types.d.ts +69 -0
  28. package/components/GridLayout/subcomponents/WidthProvider/index.d.ts +16 -0
  29. package/components/GridLayout/types.d.ts +355 -0
  30. package/components/GridLayout/utils.d.ts +123 -0
  31. package/components/HelperText/{index.9864f773.js → index.a019742c.js} +8 -7
  32. package/components/Icon/{index.9dae8337.js → index.9fcd1476.js} +1 -1
  33. package/components/LanguagePopover/{index.938c6675.js → index.98b63dcb.js} +8 -7
  34. package/components/LinearProgressIndeterminate/{index.d34d398f.js → index.60dabc06.js} +1 -1
  35. package/components/ModalDialog/{index.d9c5d400.js → index.d9937d46.js} +8 -56
  36. package/components/NavLink/{index.21c8fd90.js → index.a5dea6d3.js} +8 -7
  37. package/components/ObjectLogs/{index.a2709fc2.js → index.d9d20b9d.js} +27 -21
  38. package/components/ObjectLogs/types.d.ts +1 -0
  39. package/components/PaperForm/{index.5e1bc99f.js → index.ba38a0bd.js} +1 -1
  40. package/components/Period/{index.526791a3.js → index.7b94c418.js} +22 -23
  41. package/components/PropertyValue/constants.d.ts +3 -0
  42. package/components/PropertyValue/{index.8a1adf3e.js → index.45c73161.js} +17 -11
  43. package/components/PropertyValue/types.d.ts +2 -1
  44. package/components/Resizeable/{index.f6e48e56.js → index.9a9c79a4.js} +1 -1
  45. package/components/SideBar/{index.9e1a5b96.js → index.2f497e6c.js} +5 -5
  46. package/components/areas/components/AreasAdmin/classes/index.d.ts +1 -1
  47. package/components/areas/components/AreasAdmin/classes/types.d.ts +5 -0
  48. package/components/areas/components/AreasAdmin/{index.946eebb9.js → index.43ecd998.js} +167 -81
  49. package/components/areas/components/AreasAdmin/subcomponents/AreaChip/types.d.ts +0 -1
  50. package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/subcomponents/PanelWindowPopUp/index.d.ts +3 -0
  51. package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/subcomponents/PanelWindowPopUp/types.d.ts +3 -0
  52. package/components/areas/components/AreasViewer/classes/index.d.ts +1 -1
  53. package/components/areas/components/AreasViewer/classes/types.d.ts +3 -0
  54. package/components/areas/components/AreasViewer/{index.bf4191ea.js → index.14e62059.js} +326 -345
  55. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/{GridLayout → AreaGridLayout}/index.d.ts +1 -1
  56. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/index.d.ts +2 -2
  57. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/index.d.ts +1 -7
  58. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/subcomponents/WindowPopUpsList/index.d.ts +3 -0
  59. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/subcomponents/WindowPopUpsList/types.d.ts +2 -0
  60. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/types.d.ts +6 -0
  61. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/types.d.ts +1 -1
  62. package/components/areas/components/index.a87653a9.js +29 -0
  63. package/components/areas/contexts/AreasContext/helper.d.ts +8 -16
  64. package/components/areas/contexts/AreasContext/{index.f0397b7c.js → index.02c4e7be.js} +262 -336
  65. package/components/areas/contexts/AreasContext/types.d.ts +22 -20
  66. package/components/areas/contexts/{index.1809650a.js → index.1ff9b360.js} +1 -1
  67. package/components/areas/{dictionary.3fabae50.js → dictionary.afb7e3d9.js} +5 -2
  68. package/components/areas/dictionary.d.ts +4 -1
  69. package/components/areas/hooks/useAreas/{index.40917e99.js → index.85e4b2e2.js} +1 -1
  70. package/components/areas/{icons.19cde4b4.js → icons.8266ccc8.js} +5 -1
  71. package/components/areas/icons.d.ts +4 -0
  72. package/components/areas/{index.9bd48013.js → index.d1dcccf5.js} +12 -11
  73. package/components/areas/types.d.ts +29 -22
  74. package/components/formatters/BooleanFormatter/{index.431dc923.js → index.e8de8e4c.js} +1 -1
  75. package/components/formatters/{index.e1af75e6.js → index.67aeb049.js} +2 -2
  76. package/components/hook-form/RHFAutocomplete/{index.a063dc44.js → index.6aa51705.js} +25 -13
  77. package/components/hook-form/RHFAutocompleteAsync/{index.ddfd9cc9.js → index.1a3dfe5f.js} +1 -1
  78. package/components/hook-form/RHFCheckbox/{index.7e7f220b.js → index.a08a65b3.js} +1 -1
  79. package/components/hook-form/RHFDateTime/{index.d330709b.js → index.4d671108.js} +10 -9
  80. package/components/hook-form/RHFPeriod/{index.e2b1293b.js → index.39b4be49.js} +2 -2
  81. package/components/hook-form/RHFTextField/{index.e5336d09.js → index.9004e898.js} +5 -5
  82. package/components/hook-form/RHFUpload/{index.17e7f9eb.js → index.bed8573e.js} +9 -11
  83. package/components/index.d.ts +1 -0
  84. package/components/modal/{WindowBase.7acb9f1d.js → WindowBase.a0c0b322.js} +10 -9
  85. package/components/modal/{WindowConfirm.9b829837.js → WindowConfirm.6c063f2d.js} +19 -19
  86. package/components/modal/classes/index.d.ts +1 -0
  87. package/components/modal/classes/types.d.ts +1 -0
  88. package/components/modal/{index.1b25b61d.js → index.00efea85.js} +19 -17
  89. package/components/mui_extended/Accordion/constants.d.ts +1 -0
  90. package/components/mui_extended/Accordion/{index.3faafd8b.js → index.9877f7bf.js} +8 -9
  91. package/components/mui_extended/Accordion/types.d.ts +1 -0
  92. package/components/mui_extended/Badge/Badge.d.ts +3 -0
  93. package/components/mui_extended/Badge/classes/constants.d.ts +1 -0
  94. package/components/mui_extended/Badge/classes/index.d.ts +6 -0
  95. package/components/mui_extended/Badge/classes/types.d.ts +6 -0
  96. package/components/mui_extended/Badge/index.8c2b8b66.js +36 -0
  97. package/components/mui_extended/Badge/index.d.ts +2 -0
  98. package/components/mui_extended/Badge/tests/constants.d.ts +1 -0
  99. package/components/mui_extended/Badge/tests/utils.d.ts +2 -0
  100. package/components/mui_extended/Badge/types.d.ts +4 -0
  101. package/components/mui_extended/Button/{index.fdb5dcbd.js → index.4288f9fc.js} +8 -3
  102. package/components/mui_extended/IconButton/{index.1a9d4fa5.js → index.12f1a3c3.js} +4 -1
  103. package/components/mui_extended/MenuActions/{index.ba1da3b3.js → index.43a2e1ae.js} +41 -13
  104. package/components/mui_extended/MenuActions/index.d.ts +3 -2
  105. package/components/mui_extended/MenuActions/types.d.ts +9 -0
  106. package/components/mui_extended/Pager/{index.67bda2c5.js → index.2f6d6d7d.js} +1 -1
  107. package/components/mui_extended/Tab/constant.d.ts +1 -0
  108. package/components/mui_extended/Tab/{index.9e2f6e34.js → index.7c82e43d.js} +5 -6
  109. package/components/mui_extended/Tab/types.d.ts +1 -0
  110. package/components/mui_extended/{index.73e536de.js → index.0e2ff642.js} +8 -7
  111. package/components/mui_extended/index.d.ts +1 -0
  112. package/contexts/ModalContext/{index.699f95fa.js → index.e9a7ba4a.js} +1 -1
  113. package/hooks/useModal/{index.7b7d26ba.js → index.8e85f7ae.js} +1 -1
  114. package/index.js +228 -214
  115. package/node_modules.d73a220d.js +363 -0
  116. package/package.json +4 -3
  117. package/{react-draggable.6d7949a3.js → react-draggable.7abb5d0a.js} +3 -2
  118. package/{react-resizable.b6f8e04a.js → react-resizable.ba08699a.js} +13 -12
  119. package/test/getNameDataTestId.d.ts +1 -0
  120. package/utils/{index.008b4c2a.js → index.c43a95f4.js} +0 -15
  121. package/vendor.e353394b.js +124 -0
  122. package/components/DynamicFilter/tests/types.d.ts +0 -2
  123. package/components/DynamicFilter/tests/utils.d.ts +0 -2
  124. package/components/PropertyValue/tests/constants.d.ts +0 -1
  125. package/components/PropertyValue/tests/utils.d.ts +0 -2
  126. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/WindowPopUp/index.d.ts +0 -4
  127. package/components/areas/components/index.2bb534cb.js +0 -28
  128. package/components/modal/ModalDialog/types.d.ts +0 -7
  129. package/components/mui_extended/Accordion/tests/constants.d.ts +0 -1
  130. package/components/mui_extended/Accordion/tests/utils.d.ts +0 -2
  131. package/components/mui_extended/Tab/tests/constants.d.ts +0 -1
  132. package/components/mui_extended/Tab/tests/utils.d.ts +0 -2
  133. /package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/{GridLayout → AreaGridLayout}/types.d.ts +0 -0
@@ -0,0 +1,363 @@
1
+ var getOwnPropertyNames = Object.getOwnPropertyNames, getOwnPropertySymbols = Object.getOwnPropertySymbols;
2
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
3
+ function combineComparators(comparatorA, comparatorB) {
4
+ return function isEqual(a, b, state) {
5
+ return comparatorA(a, b, state) && comparatorB(a, b, state);
6
+ };
7
+ }
8
+ function createIsCircular(areItemsEqual) {
9
+ return function isCircular(a, b, state) {
10
+ if (!a || !b || typeof a !== "object" || typeof b !== "object") {
11
+ return areItemsEqual(a, b, state);
12
+ }
13
+ var cache = state.cache;
14
+ var cachedA = cache.get(a);
15
+ var cachedB = cache.get(b);
16
+ if (cachedA && cachedB) {
17
+ return cachedA === b && cachedB === a;
18
+ }
19
+ cache.set(a, b);
20
+ cache.set(b, a);
21
+ var result = areItemsEqual(a, b, state);
22
+ cache.delete(a);
23
+ cache.delete(b);
24
+ return result;
25
+ };
26
+ }
27
+ function getStrictProperties(object) {
28
+ return getOwnPropertyNames(object).concat(getOwnPropertySymbols(object));
29
+ }
30
+ var hasOwn = Object.hasOwn || function(object, property) {
31
+ return hasOwnProperty.call(object, property);
32
+ };
33
+ function sameValueZeroEqual(a, b) {
34
+ return a || b ? a === b : a === b || a !== a && b !== b;
35
+ }
36
+ var OWNER = "_owner";
37
+ var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor, keys = Object.keys;
38
+ function areArraysEqual(a, b, state) {
39
+ var index = a.length;
40
+ if (b.length !== index) {
41
+ return false;
42
+ }
43
+ while (index-- > 0) {
44
+ if (!state.equals(a[index], b[index], index, index, a, b, state)) {
45
+ return false;
46
+ }
47
+ }
48
+ return true;
49
+ }
50
+ function areDatesEqual(a, b) {
51
+ return sameValueZeroEqual(a.getTime(), b.getTime());
52
+ }
53
+ function areMapsEqual(a, b, state) {
54
+ if (a.size !== b.size) {
55
+ return false;
56
+ }
57
+ var matchedIndices = {};
58
+ var aIterable = a.entries();
59
+ var index = 0;
60
+ var aResult;
61
+ var bResult;
62
+ while (aResult = aIterable.next()) {
63
+ if (aResult.done) {
64
+ break;
65
+ }
66
+ var bIterable = b.entries();
67
+ var hasMatch = false;
68
+ var matchIndex = 0;
69
+ while (bResult = bIterable.next()) {
70
+ if (bResult.done) {
71
+ break;
72
+ }
73
+ var _a = aResult.value, aKey = _a[0], aValue = _a[1];
74
+ var _b = bResult.value, bKey = _b[0], bValue = _b[1];
75
+ if (!hasMatch && !matchedIndices[matchIndex] && (hasMatch = state.equals(aKey, bKey, index, matchIndex, a, b, state) && state.equals(aValue, bValue, aKey, bKey, a, b, state))) {
76
+ matchedIndices[matchIndex] = true;
77
+ }
78
+ matchIndex++;
79
+ }
80
+ if (!hasMatch) {
81
+ return false;
82
+ }
83
+ index++;
84
+ }
85
+ return true;
86
+ }
87
+ function areObjectsEqual(a, b, state) {
88
+ var properties = keys(a);
89
+ var index = properties.length;
90
+ if (keys(b).length !== index) {
91
+ return false;
92
+ }
93
+ var property;
94
+ while (index-- > 0) {
95
+ property = properties[index];
96
+ if (property === OWNER && (a.$$typeof || b.$$typeof) && a.$$typeof !== b.$$typeof) {
97
+ return false;
98
+ }
99
+ if (!hasOwn(b, property) || !state.equals(a[property], b[property], property, property, a, b, state)) {
100
+ return false;
101
+ }
102
+ }
103
+ return true;
104
+ }
105
+ function areObjectsEqualStrict(a, b, state) {
106
+ var properties = getStrictProperties(a);
107
+ var index = properties.length;
108
+ if (getStrictProperties(b).length !== index) {
109
+ return false;
110
+ }
111
+ var property;
112
+ var descriptorA;
113
+ var descriptorB;
114
+ while (index-- > 0) {
115
+ property = properties[index];
116
+ if (property === OWNER && (a.$$typeof || b.$$typeof) && a.$$typeof !== b.$$typeof) {
117
+ return false;
118
+ }
119
+ if (!hasOwn(b, property)) {
120
+ return false;
121
+ }
122
+ if (!state.equals(a[property], b[property], property, property, a, b, state)) {
123
+ return false;
124
+ }
125
+ descriptorA = getOwnPropertyDescriptor(a, property);
126
+ descriptorB = getOwnPropertyDescriptor(b, property);
127
+ if ((descriptorA || descriptorB) && (!descriptorA || !descriptorB || descriptorA.configurable !== descriptorB.configurable || descriptorA.enumerable !== descriptorB.enumerable || descriptorA.writable !== descriptorB.writable)) {
128
+ return false;
129
+ }
130
+ }
131
+ return true;
132
+ }
133
+ function arePrimitiveWrappersEqual(a, b) {
134
+ return sameValueZeroEqual(a.valueOf(), b.valueOf());
135
+ }
136
+ function areRegExpsEqual(a, b) {
137
+ return a.source === b.source && a.flags === b.flags;
138
+ }
139
+ function areSetsEqual(a, b, state) {
140
+ if (a.size !== b.size) {
141
+ return false;
142
+ }
143
+ var matchedIndices = {};
144
+ var aIterable = a.values();
145
+ var aResult;
146
+ var bResult;
147
+ while (aResult = aIterable.next()) {
148
+ if (aResult.done) {
149
+ break;
150
+ }
151
+ var bIterable = b.values();
152
+ var hasMatch = false;
153
+ var matchIndex = 0;
154
+ while (bResult = bIterable.next()) {
155
+ if (bResult.done) {
156
+ break;
157
+ }
158
+ if (!hasMatch && !matchedIndices[matchIndex] && (hasMatch = state.equals(aResult.value, bResult.value, aResult.value, bResult.value, a, b, state))) {
159
+ matchedIndices[matchIndex] = true;
160
+ }
161
+ matchIndex++;
162
+ }
163
+ if (!hasMatch) {
164
+ return false;
165
+ }
166
+ }
167
+ return true;
168
+ }
169
+ function areTypedArraysEqual(a, b) {
170
+ var index = a.length;
171
+ if (b.length !== index) {
172
+ return false;
173
+ }
174
+ while (index-- > 0) {
175
+ if (a[index] !== b[index]) {
176
+ return false;
177
+ }
178
+ }
179
+ return true;
180
+ }
181
+ var ARGUMENTS_TAG = "[object Arguments]";
182
+ var BOOLEAN_TAG = "[object Boolean]";
183
+ var DATE_TAG = "[object Date]";
184
+ var MAP_TAG = "[object Map]";
185
+ var NUMBER_TAG = "[object Number]";
186
+ var OBJECT_TAG = "[object Object]";
187
+ var REG_EXP_TAG = "[object RegExp]";
188
+ var SET_TAG = "[object Set]";
189
+ var STRING_TAG = "[object String]";
190
+ var isArray = Array.isArray;
191
+ var isTypedArray = typeof ArrayBuffer === "function" && ArrayBuffer.isView ? ArrayBuffer.isView : null;
192
+ var assign = Object.assign;
193
+ var getTag = Object.prototype.toString.call.bind(Object.prototype.toString);
194
+ function createEqualityComparator(_a) {
195
+ var areArraysEqual2 = _a.areArraysEqual, areDatesEqual2 = _a.areDatesEqual, areMapsEqual2 = _a.areMapsEqual, areObjectsEqual2 = _a.areObjectsEqual, arePrimitiveWrappersEqual2 = _a.arePrimitiveWrappersEqual, areRegExpsEqual2 = _a.areRegExpsEqual, areSetsEqual2 = _a.areSetsEqual, areTypedArraysEqual2 = _a.areTypedArraysEqual;
196
+ return function comparator(a, b, state) {
197
+ if (a === b) {
198
+ return true;
199
+ }
200
+ if (a == null || b == null || typeof a !== "object" || typeof b !== "object") {
201
+ return a !== a && b !== b;
202
+ }
203
+ var constructor = a.constructor;
204
+ if (constructor !== b.constructor) {
205
+ return false;
206
+ }
207
+ if (constructor === Object) {
208
+ return areObjectsEqual2(a, b, state);
209
+ }
210
+ if (isArray(a)) {
211
+ return areArraysEqual2(a, b, state);
212
+ }
213
+ if (isTypedArray != null && isTypedArray(a)) {
214
+ return areTypedArraysEqual2(a, b, state);
215
+ }
216
+ if (constructor === Date) {
217
+ return areDatesEqual2(a, b, state);
218
+ }
219
+ if (constructor === RegExp) {
220
+ return areRegExpsEqual2(a, b, state);
221
+ }
222
+ if (constructor === Map) {
223
+ return areMapsEqual2(a, b, state);
224
+ }
225
+ if (constructor === Set) {
226
+ return areSetsEqual2(a, b, state);
227
+ }
228
+ var tag = getTag(a);
229
+ if (tag === DATE_TAG) {
230
+ return areDatesEqual2(a, b, state);
231
+ }
232
+ if (tag === REG_EXP_TAG) {
233
+ return areRegExpsEqual2(a, b, state);
234
+ }
235
+ if (tag === MAP_TAG) {
236
+ return areMapsEqual2(a, b, state);
237
+ }
238
+ if (tag === SET_TAG) {
239
+ return areSetsEqual2(a, b, state);
240
+ }
241
+ if (tag === OBJECT_TAG) {
242
+ return typeof a.then !== "function" && typeof b.then !== "function" && areObjectsEqual2(a, b, state);
243
+ }
244
+ if (tag === ARGUMENTS_TAG) {
245
+ return areObjectsEqual2(a, b, state);
246
+ }
247
+ if (tag === BOOLEAN_TAG || tag === NUMBER_TAG || tag === STRING_TAG) {
248
+ return arePrimitiveWrappersEqual2(a, b, state);
249
+ }
250
+ return false;
251
+ };
252
+ }
253
+ function createEqualityComparatorConfig(_a) {
254
+ var circular = _a.circular, createCustomConfig = _a.createCustomConfig, strict = _a.strict;
255
+ var config = {
256
+ areArraysEqual: strict ? areObjectsEqualStrict : areArraysEqual,
257
+ areDatesEqual,
258
+ areMapsEqual: strict ? combineComparators(areMapsEqual, areObjectsEqualStrict) : areMapsEqual,
259
+ areObjectsEqual: strict ? areObjectsEqualStrict : areObjectsEqual,
260
+ arePrimitiveWrappersEqual,
261
+ areRegExpsEqual,
262
+ areSetsEqual: strict ? combineComparators(areSetsEqual, areObjectsEqualStrict) : areSetsEqual,
263
+ areTypedArraysEqual: strict ? areObjectsEqualStrict : areTypedArraysEqual
264
+ };
265
+ if (createCustomConfig) {
266
+ config = assign({}, config, createCustomConfig(config));
267
+ }
268
+ if (circular) {
269
+ var areArraysEqual$1 = createIsCircular(config.areArraysEqual);
270
+ var areMapsEqual$1 = createIsCircular(config.areMapsEqual);
271
+ var areObjectsEqual$1 = createIsCircular(config.areObjectsEqual);
272
+ var areSetsEqual$1 = createIsCircular(config.areSetsEqual);
273
+ config = assign({}, config, {
274
+ areArraysEqual: areArraysEqual$1,
275
+ areMapsEqual: areMapsEqual$1,
276
+ areObjectsEqual: areObjectsEqual$1,
277
+ areSetsEqual: areSetsEqual$1
278
+ });
279
+ }
280
+ return config;
281
+ }
282
+ function createInternalEqualityComparator(compare) {
283
+ return function(a, b, _indexOrKeyA, _indexOrKeyB, _parentA, _parentB, state) {
284
+ return compare(a, b, state);
285
+ };
286
+ }
287
+ function createIsEqual(_a) {
288
+ var circular = _a.circular, comparator = _a.comparator, createState = _a.createState, equals = _a.equals, strict = _a.strict;
289
+ if (createState) {
290
+ return function isEqual(a, b) {
291
+ var _a2 = createState(), _b = _a2.cache, cache = _b === void 0 ? circular ? /* @__PURE__ */ new WeakMap() : void 0 : _b, meta = _a2.meta;
292
+ return comparator(a, b, {
293
+ cache,
294
+ equals,
295
+ meta,
296
+ strict
297
+ });
298
+ };
299
+ }
300
+ if (circular) {
301
+ return function isEqual(a, b) {
302
+ return comparator(a, b, {
303
+ cache: /* @__PURE__ */ new WeakMap(),
304
+ equals,
305
+ meta: void 0,
306
+ strict
307
+ });
308
+ };
309
+ }
310
+ var state = {
311
+ cache: void 0,
312
+ equals,
313
+ meta: void 0,
314
+ strict
315
+ };
316
+ return function isEqual(a, b) {
317
+ return comparator(a, b, state);
318
+ };
319
+ }
320
+ var deepEqual = createCustomEqual();
321
+ createCustomEqual({ strict: true });
322
+ createCustomEqual({ circular: true });
323
+ createCustomEqual({
324
+ circular: true,
325
+ strict: true
326
+ });
327
+ createCustomEqual({
328
+ createInternalComparator: function() {
329
+ return sameValueZeroEqual;
330
+ }
331
+ });
332
+ createCustomEqual({
333
+ strict: true,
334
+ createInternalComparator: function() {
335
+ return sameValueZeroEqual;
336
+ }
337
+ });
338
+ createCustomEqual({
339
+ circular: true,
340
+ createInternalComparator: function() {
341
+ return sameValueZeroEqual;
342
+ }
343
+ });
344
+ createCustomEqual({
345
+ circular: true,
346
+ createInternalComparator: function() {
347
+ return sameValueZeroEqual;
348
+ },
349
+ strict: true
350
+ });
351
+ function createCustomEqual(options) {
352
+ if (options === void 0) {
353
+ options = {};
354
+ }
355
+ var _a = options.circular, circular = _a === void 0 ? false : _a, createCustomInternalComparator = options.createInternalComparator, createState = options.createState, _b = options.strict, strict = _b === void 0 ? false : _b;
356
+ var config = createEqualityComparatorConfig(options);
357
+ var comparator = createEqualityComparator(config);
358
+ var equals = createCustomInternalComparator ? createCustomInternalComparator(comparator) : createInternalEqualityComparator(comparator);
359
+ return createIsEqual({ circular, comparator, createState, equals, strict });
360
+ }
361
+ export {
362
+ deepEqual as d
363
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m4l/components",
3
- "version": "0.1.76",
3
+ "version": "0.1.78",
4
4
  "license": "UNLICENSED",
5
5
  "dependencies": {
6
6
  "@emotion/react": "^11.9.0",
@@ -11,7 +11,8 @@
11
11
  "@m4l/styles": "*",
12
12
  "@mui/lab": "5.0.0-alpha.89",
13
13
  "@mui/material": "5.10.4",
14
- "@mui/x-date-pickers": "6.6.0",
14
+ "@mui/x-date-pickers": "6.11.1",
15
+ "fast-equals": "^5.0.1",
15
16
  "immer": "^9.0.21",
16
17
  "install": "^0.13.0",
17
18
  "lodash.clonedeep": "^4.5.0",
@@ -27,7 +28,7 @@
27
28
  "react-spinners": "^0.13.8",
28
29
  "simplebar-react": "2.4.1",
29
30
  "yup": "^0.32.11",
30
- "zustand": "^4.3.6"
31
+ "zustand": "4.3.6"
31
32
  },
32
33
  "peerDependencies": {
33
34
  "@types/react": "^17.0.0 || ^18.0.0",
@@ -2,7 +2,7 @@ import React__default from "react";
2
2
  import require$$1 from "prop-types";
3
3
  import require$$2 from "react-dom";
4
4
  import clsx from "clsx";
5
- import { s as shims, l as log, d as domFns, p as positionFns } from "./utils/index.008b4c2a.js";
5
+ import { s as shims, l as log, d as domFns, p as positionFns } from "./utils/index.c43a95f4.js";
6
6
  var cjs = { exports: {} };
7
7
  var Draggable$1 = {};
8
8
  var DraggableCore$2 = {};
@@ -955,7 +955,8 @@ _defineProperty(DraggableCore$1, "defaultProps", {
955
955
  var _require = Draggable$1, Draggable = _require.default, DraggableCore = _require.DraggableCore;
956
956
  cjs.exports = Draggable;
957
957
  cjs.exports.default = Draggable;
958
- cjs.exports.DraggableCore = DraggableCore;
958
+ var DraggableCore_1 = cjs.exports.DraggableCore = DraggableCore;
959
959
  export {
960
+ DraggableCore_1 as D,
960
961
  cjs as c
961
962
  };
@@ -1,9 +1,9 @@
1
1
  import React__default from "react";
2
- import { c as cjs } from "./react-draggable.6d7949a3.js";
3
- import { u as utils } from "./utils/index.008b4c2a.js";
2
+ import { c as cjs } from "./react-draggable.7abb5d0a.js";
3
+ import { u as utils } from "./utils/index.c43a95f4.js";
4
4
  import require$$1 from "prop-types";
5
5
  var reactResizable = { exports: {} };
6
- var Resizable$1 = {};
6
+ var Resizable$2 = {};
7
7
  var propTypes = {};
8
8
  propTypes.__esModule = true;
9
9
  propTypes.resizableProps = void 0;
@@ -65,8 +65,8 @@ var resizableProps = {
65
65
  }
66
66
  };
67
67
  propTypes.resizableProps = resizableProps;
68
- Resizable$1.__esModule = true;
69
- Resizable$1.default = void 0;
68
+ Resizable$2.__esModule = true;
69
+ Resizable$2.default = void 0;
70
70
  var React$1 = _interopRequireWildcard$1(React__default);
71
71
  var _reactDraggable = cjs.exports;
72
72
  var _utils = utils;
@@ -196,7 +196,7 @@ function _setPrototypeOf$1(o, p) {
196
196
  };
197
197
  return _setPrototypeOf$1(o, p);
198
198
  }
199
- var Resizable = /* @__PURE__ */ function(_React$Component) {
199
+ var Resizable$1 = /* @__PURE__ */ function(_React$Component) {
200
200
  _inheritsLoose$1(Resizable2, _React$Component);
201
201
  function Resizable2() {
202
202
  var _this;
@@ -349,9 +349,9 @@ var Resizable = /* @__PURE__ */ function(_React$Component) {
349
349
  };
350
350
  return Resizable2;
351
351
  }(React$1.Component);
352
- Resizable$1.default = Resizable;
353
- Resizable.propTypes = _propTypes$1.resizableProps;
354
- Resizable.defaultProps = {
352
+ Resizable$2.default = Resizable$1;
353
+ Resizable$1.propTypes = _propTypes$1.resizableProps;
354
+ Resizable$1.defaultProps = {
355
355
  axis: "both",
356
356
  handleSize: [20, 20],
357
357
  lockAspectRatio: false,
@@ -365,7 +365,7 @@ ResizableBox$2.__esModule = true;
365
365
  ResizableBox$2.default = void 0;
366
366
  var React = _interopRequireWildcard(React__default);
367
367
  var _propTypes = _interopRequireDefault(require$$1);
368
- var _Resizable = _interopRequireDefault(Resizable$1);
368
+ var _Resizable = _interopRequireDefault(Resizable$2);
369
369
  var _propTypes2 = propTypes;
370
370
  var _excluded = ["handle", "handleSize", "onResize", "onResizeStart", "onResizeStop", "draggableOpts", "minConstraints", "maxConstraints", "lockAspectRatio", "axis", "width", "height", "resizeHandles", "style", "transformScale"];
371
371
  function _interopRequireDefault(obj) {
@@ -572,10 +572,11 @@ ResizableBox$1.propTypes = _objectSpread(_objectSpread({}, _propTypes2.resizable
572
572
  reactResizable.exports = function() {
573
573
  throw new Error("Don't instantiate Resizable directly! Use require('react-resizable').Resizable");
574
574
  };
575
- reactResizable.exports.Resizable = Resizable$1.default;
575
+ var Resizable = reactResizable.exports.Resizable = Resizable$2.default;
576
576
  var ResizableBox = reactResizable.exports.ResizableBox = ResizableBox$2.default;
577
577
  const react_resizable_css = ".react-resizable {\n position: relative;\n}\n.react-resizable-handle {\n position: absolute;\n width: 20px;\n height: 20px;\n background-repeat: no-repeat;\n background-origin: content-box;\n box-sizing: border-box;\n background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2IDYiIHN0eWxlPSJiYWNrZ3JvdW5kLWNvbG9yOiNmZmZmZmYwMCIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSI2cHgiIGhlaWdodD0iNnB4Ij48ZyBvcGFjaXR5PSIwLjMwMiI+PHBhdGggZD0iTSA2IDYgTCAwIDYgTCAwIDQuMiBMIDQgNC4yIEwgNC4yIDQuMiBMIDQuMiAwIEwgNiAwIEwgNiA2IEwgNiA2IFoiIGZpbGw9IiMwMDAwMDAiLz48L2c+PC9zdmc+');\n background-position: bottom right;\n padding: 0 3px 3px 0;\n}\n.react-resizable-handle-sw {\n bottom: 0;\n left: 0;\n cursor: sw-resize;\n transform: rotate(90deg);\n}\n.react-resizable-handle-se {\n bottom: 0;\n right: 0;\n cursor: se-resize;\n}\n.react-resizable-handle-nw {\n top: 0;\n left: 0;\n cursor: nw-resize;\n transform: rotate(180deg);\n}\n.react-resizable-handle-ne {\n top: 0;\n right: 0;\n cursor: ne-resize;\n transform: rotate(270deg);\n}\n.react-resizable-handle-w,\n.react-resizable-handle-e {\n top: 50%;\n margin-top: -10px;\n cursor: ew-resize;\n}\n.react-resizable-handle-w {\n left: 0;\n transform: rotate(135deg);\n}\n.react-resizable-handle-e {\n right: 0;\n transform: rotate(315deg);\n}\n.react-resizable-handle-n,\n.react-resizable-handle-s {\n left: 50%;\n margin-left: -10px;\n cursor: ns-resize;\n}\n.react-resizable-handle-n {\n top: 0;\n transform: rotate(225deg);\n}\n.react-resizable-handle-s {\n bottom: 0;\n transform: rotate(45deg);\n}";
578
578
  export {
579
- ResizableBox as R,
579
+ Resizable as R,
580
+ ResizableBox as a,
580
581
  react_resizable_css as r
581
582
  };
@@ -0,0 +1 @@
1
+ export declare const getNameDataTestId: <T>(ELEMENT_PREFIX: string, ELEMENT_KEY: keyof T, ELEMENT_ID: string) => string;
@@ -3,20 +3,6 @@ import React__default from "react";
3
3
  function isValidDate(d) {
4
4
  return d && d instanceof Date && !isNaN(d.getTime());
5
5
  }
6
- const getThemeVariantColor = (theme, variant) => {
7
- switch (variant) {
8
- case "warning":
9
- theme.palette.warning.main;
10
- break;
11
- case "delete":
12
- theme.palette.error.main;
13
- break;
14
- case "info":
15
- theme.palette.info.main;
16
- break;
17
- }
18
- return theme.palette.text.primary;
19
- };
20
6
  function getComponentUtilityClass(componentName) {
21
7
  return (slot) => generateUtilityClass(componentName, slot);
22
8
  }
@@ -559,7 +545,6 @@ function cloneElement(element, props) {
559
545
  return /* @__PURE__ */ _react.default.cloneElement(element, props);
560
546
  }
561
547
  export {
562
- getThemeVariantColor as a,
563
548
  domFns as d,
564
549
  getComponentUtilityClass as g,
565
550
  isValidDate as i,
@@ -0,0 +1,124 @@
1
+ import "./components/areas/contexts/DynamicMFParmsContext/index.1607c78e.js";
2
+ import "./contexts/ModalContext/index.e9a7ba4a.js";
3
+ import "./contexts/RHFormContext/index.fe175bab.js";
4
+ import "@m4l/core";
5
+ import "react";
6
+ import "react-hook-form";
7
+ import "@mui/material";
8
+ import "./components/hook-form/RHFAutocomplete/index.6aa51705.js";
9
+ import "./components/Image/index.c18ebf5a.js";
10
+ import "react/jsx-runtime";
11
+ import "clsx";
12
+ import "./components/mui_extended/Typography/index.443590d6.js";
13
+ import "./components/Icon/index.9fcd1476.js";
14
+ import "./components/mui_extended/IconButton/index.12f1a3c3.js";
15
+ import "@m4l/graphics";
16
+ import "./components/mui_extended/Accordion/index.9877f7bf.js";
17
+ import "./components/mui_extended/Avatar/index.75e6ed57.js";
18
+ import "react-router-dom";
19
+ import "@mui/material/Button";
20
+ import "./components/mui_extended/Button/index.4288f9fc.js";
21
+ import "./components/mui_extended/Badge/index.8c2b8b66.js";
22
+ import "@mui/lab";
23
+ import "./components/mui_extended/MenuActions/index.43a2e1ae.js";
24
+ import "./components/mui_extended/Popover/index.9f35d0eb.js";
25
+ import "./components/mui_extended/Pager/index.2f6d6d7d.js";
26
+ import "./components/mui_extended/Tab/index.7c82e43d.js";
27
+ import "./components/mui_extended/Tooltip/index.5a795dcd.js";
28
+ import "./components/HelperText/index.a019742c.js";
29
+ import "lodash/debounce";
30
+ import "./components/hook-form/RHFAutocompleteAsync/index.1a3dfe5f.js";
31
+ import "./components/hook-form/RHFCheckbox/index.a08a65b3.js";
32
+ import "@mui/x-date-pickers";
33
+ import "./components/hook-form/RHFDateTime/index.4d671108.js";
34
+ import "./components/hook-form/RHFTextField/index.9004e898.js";
35
+ import "./components/hook-form/RHFPeriod/index.39b4be49.js";
36
+ import "./components/Period/index.7b94c418.js";
37
+ import "./components/CommonActions/components/Actions/index.52125041.js";
38
+ import "./react-draggable.7abb5d0a.js";
39
+ import "./components/Resizeable/index.9a9c79a4.js";
40
+ import "./components/modal/index.00efea85.js";
41
+ import "zustand";
42
+ import "./components/areas/contexts/AreasContext/index.02c4e7be.js";
43
+ import "./components/areas/components/AreasAdmin/index.43ecd998.js";
44
+ import "zustand/shallow";
45
+ import "./components/ScrollBar/index.bbe48f4d.js";
46
+ import "./components/areas/components/AreasViewer/index.14e62059.js";
47
+ import "./components/LinearProgressIndeterminate/index.60dabc06.js";
48
+ import "./components/areas/contexts/WindowToolsMFContext/index.8f3e2a04.js";
49
+ import "lodash/isString";
50
+ import "react-dropzone";
51
+ import "./components/hook-form/RHFUpload/index.bed8573e.js";
52
+ import "./components/animate/index.1f8eadd4.js";
53
+ import "framer-motion";
54
+ import "@mui/material/styles";
55
+ import "./components/animate/LoadingScreen/index.1d0c4307.js";
56
+ import "./components/animate/PropagateLoader/index.7fab43c8.js";
57
+ import "./components/DataGrid/index.9fb3e6a1.js";
58
+ import "react-dnd";
59
+ import "react-dnd-html5-backend";
60
+ import "./components/DynamicFilter/index.d1a2e2d1.js";
61
+ import "yup";
62
+ import "./components/GridLayout/index.da6fd387.js";
63
+ import "lodash";
64
+ import "./components/LanguagePopover/index.98b63dcb.js";
65
+ import "./components/NavLink/index.a5dea6d3.js";
66
+ import "./components/NoItemSelected/index.23dfc897.js";
67
+ import "./components/ObjectLogs/index.d9d20b9d.js";
68
+ import "./react-json-view.57125fcf.js";
69
+ import "./components/PaperForm/index.ba38a0bd.js";
70
+ import "./components/Page/index.4237c241.js";
71
+ import "./components/PropertyValue/index.45c73161.js";
72
+ import "./components/SplitLayout/index.9ef430f6.js";
73
+ import "./react-splitter-layout.8b1655c8.js";
74
+ import "./components/SideBar/index.2f497e6c.js";
75
+ import "./components/AppBar/index.06858422.js";
76
+ import "./components/AccountPopover/index.7e76dbb7.js";
77
+ import "./components/animate/variants/fade.b561c0fc.js";
78
+ import "./components/animate/variants/bounce.784aaaaa.js";
79
+ import "./components/animate/variants/container.11f82b76.js";
80
+ import "./components/animate/variants/transition.bd46b9ce.js";
81
+ import "./components/animate/MotionContainer/index.8d9f9d80.js";
82
+ import "./components/animate/MotionLazyContainer/index.572dd012.js";
83
+ import "./components/areas/hooks/useDynamicMFParameters/index.e52c5392.js";
84
+ import "./components/areas/hooks/useWindowToolsMF/index.b7afaf88.js";
85
+ import "./components/areas/dictionary.afb7e3d9.js";
86
+ import "./components/hook-form/RHFMultiCheckbox/index.2680b3b6.js";
87
+ import "./components/hook-form/RHFSelect/index.b6ca8bb2.js";
88
+ import "./components/hook-form/RHFRadioGroup/index.b3335e13.js";
89
+ import "./components/mui_extended/BoxIcon/index.e638ecc8.js";
90
+ import "./components/mui_extended/Breadcrumbs/index.5e37d903.js";
91
+ import "./components/mui_extended/CircularProgress/index.ad569afd.js";
92
+ import "./components/mui_extended/LinearProgress/index.c92b9ba9.js";
93
+ import "./components/mui_extended/LinkWithRoute/index.16436ab8.js";
94
+ import "./components/formatters/BooleanFormatter/index.e8de8e4c.js";
95
+ import "./components/formatters/DateFormatter/index.578a9f53.js";
96
+ import "./components/formatters/UncertaintyFormatter/index.08e1b79f.js";
97
+ import "./components/formatters/PointsFormatter/index.80a4e414.js";
98
+ import "./components/formatters/index.67aeb049.js";
99
+ import "./components/formatters/PriceFormatter/index.83cbe7be.js";
100
+ import "./components/DataGrid/formatters/columnUncertaintyFormatter/index.cae2057a.js";
101
+ import "./components/DataGrid/formatters/columnPointsFormatter/index.5e645334.js";
102
+ import "./components/DataGrid/formatters/columnNestedValueFormatter/index.f68ef4e1.js";
103
+ import "./components/DataGrid/formatters/columnPriceFormatter/index.e612fda3.js";
104
+ import "./components/CommonActions/components/ActionCancel/index.d536ccfa.js";
105
+ import "./components/CommonActions/components/ActionIntro/index.aa1648eb.js";
106
+ import "./components/CommonActions/components/ActionFormCancel/index.a915b105.js";
107
+ import "./components/CommonActions/components/ActionFormIntro/index.14e65d6c.js";
108
+ import "./components/DraggableWindow/index.c702d3f2.js";
109
+ import "./components/GridLayout/Responsive/index.0905a698.js";
110
+ import "./components/GridLayout/WidthProvider/index.9a26dfe4.js";
111
+ import "./components/Loadable/index.e994fc3e.js";
112
+ import "./components/ModalDialog/index.d9937d46.js";
113
+ import "./components/modal/WindowConfirm.6c063f2d.js";
114
+ import "./components/modal/WindowBase.a0c0b322.js";
115
+ import "./components/ScrollToTop/index.e06f98f6.js";
116
+ import "./hooks/useFormAddEdit/index.15de3ba8.js";
117
+ import "./hooks/useModal/index.8e85f7ae.js";
118
+ import "./assets/Logo/index.228dcb5a.js";
119
+ const getNameDataTestId = (ELEMENT_PREFIX, ELEMENT_KEY, ELEMENT_ID) => {
120
+ return `${ELEMENT_PREFIX}-${[ELEMENT_KEY]}-${ELEMENT_ID}`;
121
+ };
122
+ export {
123
+ getNameDataTestId as g
124
+ };
@@ -1,2 +0,0 @@
1
- import { DynamicFilterClasses } from '../classes/types';
2
- export declare type TestIds = Omit<DynamicFilterClasses, 'isDirty' | 'inEdition' | 'isValid'>;
@@ -1,2 +0,0 @@
1
- import { TestIds } from './types';
2
- export declare function getTestIdByClass(key: keyof TestIds, detailId?: string): string;
@@ -1 +0,0 @@
1
- export declare const ICON_PREFIX = "M4LPropertyValue";
@@ -1,2 +0,0 @@
1
- import { PropertyValueClassesKey } from '../classes/types';
2
- export declare const getNamePropertyValueDataTestId: (KEY: PropertyValueClassesKey) => string;
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import { PopUpProps } from '../../../../../../types';
3
- export declare const WindowPopUp: (props: PopUpProps) => React.JSX.Element;
4
- export declare const MemonizedWindowPopUp: React.MemoExoticComponent<(props: PopUpProps) => React.JSX.Element>;