@smart-factor/gem-ui-components 0.0.88 → 0.0.90

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.
@@ -17,7 +17,7 @@ var lm = (o, e, t, n) => ({
17
17
  import Hw, { jsx as Ht, jsxs as ga, Fragment as Bf } from "react/jsx-runtime";
18
18
  import * as ra from "react";
19
19
  import { useCallback as Bu, createContext as d3, useContext as h3, useState as zl, useEffect as Sc, useMemo as fg, useRef as p3 } from "react";
20
- import { e as g3, g as _3, G as i0, a as Es, b as a0, s as Xy, c as m3, D as sL, B as yg, d as Uw, z as xu, u as Ef, I as nf, A as lL, F as f3, U as rk, f as y3, h as b3, i as v3, j as w3, T as x3 } from "./theme-BdJB2D9d.js";
20
+ import { e as g3, g as _3, G as i0, a as Es, b as a0, s as Xy, c as m3, D as sL, B as yg, d as Uw, z as xu, u as Ef, I as nf, A as lL, F as f3, U as rk, f as y3, h as b3, i as v3, j as w3, T as x3 } from "./theme-BwMNxR51.js";
21
21
  import { C as cL, r as zw } from "./Drawer-CldXrceX.js";
22
22
  import "react-router-dom";
23
23
  import "@mui/x-data-grid-pro";
@@ -3,4 +3,6 @@ export * from './columns';
3
3
  export * from './date';
4
4
  export * from './file';
5
5
  export { getErrorMessage } from './getErrorMessage';
6
+ export * from './sortArrayByAnotherArray';
7
+ export * from './sortColumns';
6
8
  export * from './zodTransforms';
@@ -0,0 +1,4 @@
1
+ export interface SortableObject {
2
+ [key: string]: any;
3
+ }
4
+ export declare function sortArrayByAnotherArray<T extends SortableObject, U extends SortableObject, TKey extends keyof T, UKey extends keyof U>(arrToSort: T[], orderArr: U[], sortKey: TKey, orderKey: UKey): T[];
@@ -0,0 +1,3 @@
1
+ import { SortableObject } from './sortArrayByAnotherArray';
2
+
3
+ export declare function sortColumns<T extends SortableObject>(newColumns: T[], currentColumns: T[]): T[];
@@ -1,4 +1,5 @@
1
1
  export { useContextMenu } from './useContextMenu';
2
+ export { useDataGridInitialState } from './useDataGridInitialState';
2
3
  export { useDataGridState } from './useDataGridState';
3
4
  export { useGetFileUrl } from './useGetFileUrl';
4
5
  export { useMemoByValue } from './useMemoByValue';
package/dist/licenses.txt CHANGED
@@ -499,209 +499,6 @@ THE SOFTWARE.
499
499
 
500
500
  ---
501
501
 
502
- Name: @mui/private-theming
503
- Version: 5.16.6
504
- License: MIT
505
- Private: false
506
- Description: Private - The React theme context to be shared between `@mui/styles` and `@mui/material`.
507
- Repository: https://github.com/mui/material-ui.git
508
- Homepage: https://github.com/mui/material-ui/tree/master/packages/mui-private-theming
509
- Author: MUI Team
510
- License Copyright:
511
- ===
512
-
513
- The MIT License (MIT)
514
-
515
- Copyright (c) 2014 Call-Em-All
516
-
517
- Permission is hereby granted, free of charge, to any person obtaining a copy
518
- of this software and associated documentation files (the "Software"), to deal
519
- in the Software without restriction, including without limitation the rights
520
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
521
- copies of the Software, and to permit persons to whom the Software is
522
- furnished to do so, subject to the following conditions:
523
-
524
- The above copyright notice and this permission notice shall be included in all
525
- copies or substantial portions of the Software.
526
-
527
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
528
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
529
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
530
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
531
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
532
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
533
- SOFTWARE.
534
-
535
- ---
536
-
537
- Name: lodash-es
538
- Version: 4.17.21
539
- License: MIT
540
- Private: false
541
- Description: Lodash exported as ES modules.
542
- Repository: undefined
543
- Homepage: https://lodash.com/custom-builds
544
- Author: John-David Dalton <john.david.dalton@gmail.com>
545
- Contributors:
546
- John-David Dalton <john.david.dalton@gmail.com>
547
- Mathias Bynens <mathias@qiwi.be>
548
- License Copyright:
549
- ===
550
-
551
- Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
552
-
553
- Based on Underscore.js, copyright Jeremy Ashkenas,
554
- DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
555
-
556
- This software consists of voluntary contributions made by many
557
- individuals. For exact contribution history, see the revision history
558
- available at https://github.com/lodash/lodash
559
-
560
- The following license applies to all parts of this software except as
561
- documented below:
562
-
563
- ====
564
-
565
- Permission is hereby granted, free of charge, to any person obtaining
566
- a copy of this software and associated documentation files (the
567
- "Software"), to deal in the Software without restriction, including
568
- without limitation the rights to use, copy, modify, merge, publish,
569
- distribute, sublicense, and/or sell copies of the Software, and to
570
- permit persons to whom the Software is furnished to do so, subject to
571
- the following conditions:
572
-
573
- The above copyright notice and this permission notice shall be
574
- included in all copies or substantial portions of the Software.
575
-
576
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
577
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
578
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
579
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
580
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
581
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
582
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
583
-
584
- ====
585
-
586
- Copyright and related rights for sample code are waived via CC0. Sample
587
- code is defined as all source code displayed within the prose of the
588
- documentation.
589
-
590
- CC0: http://creativecommons.org/publicdomain/zero/1.0/
591
-
592
- ====
593
-
594
- Files located in the node_modules and vendor directories are externally
595
- maintained libraries used by this software which have their own
596
- licenses; we recommend you read them, as their terms may differ from the
597
- terms above.
598
-
599
- ---
600
-
601
- Name: react-intersection-observer
602
- Version: 9.13.1
603
- License: MIT
604
- Private: false
605
- Description: Monitor if a component is inside the viewport, using IntersectionObserver API
606
- Repository: https://github.com/thebuilder/react-intersection-observer.git
607
- Author: Daniel Schmidt
608
- License Copyright:
609
- ===
610
-
611
- The MIT License (MIT)
612
-
613
- Copyright (c) 2023 React Intersection Observer authors
614
-
615
- Permission is hereby granted, free of charge, to any person obtaining a copy
616
- of this software and associated documentation files (the "Software"), to deal
617
- in the Software without restriction, including without limitation the rights
618
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
619
- copies of the Software, and to permit persons to whom the Software is
620
- furnished to do so, subject to the following conditions:
621
-
622
- The above copyright notice and this permission notice shall be included in all
623
- copies or substantial portions of the Software.
624
-
625
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
626
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
627
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
628
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
629
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
630
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
631
- SOFTWARE.
632
-
633
- ---
634
-
635
- Name: dayjs
636
- Version: 1.11.12
637
- License: MIT
638
- Private: false
639
- Description: 2KB immutable date time library alternative to Moment.js with the same modern API
640
- Repository: https://github.com/iamkun/dayjs.git
641
- Homepage: https://day.js.org
642
- Author: iamkun
643
- License Copyright:
644
- ===
645
-
646
- MIT License
647
-
648
- Copyright (c) 2018-present, iamkun
649
-
650
- Permission is hereby granted, free of charge, to any person obtaining a copy
651
- of this software and associated documentation files (the "Software"), to deal
652
- in the Software without restriction, including without limitation the rights
653
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
654
- copies of the Software, and to permit persons to whom the Software is
655
- furnished to do so, subject to the following conditions:
656
-
657
- The above copyright notice and this permission notice shall be included in all
658
- copies or substantial portions of the Software.
659
-
660
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
661
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
662
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
663
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
664
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
665
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
666
- SOFTWARE.
667
-
668
- ---
669
-
670
- Name: @mui/x-date-pickers
671
- Version: 7.14.0
672
- License: MIT
673
- Private: false
674
- Description: The community edition of the Date and Time Picker components (MUI X).
675
- Repository: https://github.com/mui/mui-x.git
676
- Homepage: https://mui.com/x/react-date-pickers/
677
- Author: MUI Team
678
- License Copyright:
679
- ===
680
-
681
- MIT License
682
-
683
- Copyright (c) 2020 Material-UI SAS
684
-
685
- Permission is hereby granted, free of charge, to any person obtaining a copy
686
- of this software and associated documentation files (the "Software"), to deal
687
- in the Software without restriction, including without limitation the rights
688
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
689
- copies of the Software, and to permit persons to whom the Software is
690
- furnished to do so, subject to the following conditions:
691
-
692
- The above copyright notice and this permission notice shall be included in all
693
- copies or substantial portions of the Software.
694
-
695
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
696
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
697
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
698
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
699
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
700
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
701
- SOFTWARE.
702
-
703
- ---
704
-
705
502
  Name: prop-types
706
503
  Version: 15.8.1
707
504
  License: MIT
@@ -1344,6 +1141,209 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1344
1141
 
1345
1142
  ---
1346
1143
 
1144
+ Name: @mui/private-theming
1145
+ Version: 5.16.6
1146
+ License: MIT
1147
+ Private: false
1148
+ Description: Private - The React theme context to be shared between `@mui/styles` and `@mui/material`.
1149
+ Repository: https://github.com/mui/material-ui.git
1150
+ Homepage: https://github.com/mui/material-ui/tree/master/packages/mui-private-theming
1151
+ Author: MUI Team
1152
+ License Copyright:
1153
+ ===
1154
+
1155
+ The MIT License (MIT)
1156
+
1157
+ Copyright (c) 2014 Call-Em-All
1158
+
1159
+ Permission is hereby granted, free of charge, to any person obtaining a copy
1160
+ of this software and associated documentation files (the "Software"), to deal
1161
+ in the Software without restriction, including without limitation the rights
1162
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1163
+ copies of the Software, and to permit persons to whom the Software is
1164
+ furnished to do so, subject to the following conditions:
1165
+
1166
+ The above copyright notice and this permission notice shall be included in all
1167
+ copies or substantial portions of the Software.
1168
+
1169
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1170
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1171
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1172
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1173
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1174
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1175
+ SOFTWARE.
1176
+
1177
+ ---
1178
+
1179
+ Name: lodash-es
1180
+ Version: 4.17.21
1181
+ License: MIT
1182
+ Private: false
1183
+ Description: Lodash exported as ES modules.
1184
+ Repository: undefined
1185
+ Homepage: https://lodash.com/custom-builds
1186
+ Author: John-David Dalton <john.david.dalton@gmail.com>
1187
+ Contributors:
1188
+ John-David Dalton <john.david.dalton@gmail.com>
1189
+ Mathias Bynens <mathias@qiwi.be>
1190
+ License Copyright:
1191
+ ===
1192
+
1193
+ Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
1194
+
1195
+ Based on Underscore.js, copyright Jeremy Ashkenas,
1196
+ DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
1197
+
1198
+ This software consists of voluntary contributions made by many
1199
+ individuals. For exact contribution history, see the revision history
1200
+ available at https://github.com/lodash/lodash
1201
+
1202
+ The following license applies to all parts of this software except as
1203
+ documented below:
1204
+
1205
+ ====
1206
+
1207
+ Permission is hereby granted, free of charge, to any person obtaining
1208
+ a copy of this software and associated documentation files (the
1209
+ "Software"), to deal in the Software without restriction, including
1210
+ without limitation the rights to use, copy, modify, merge, publish,
1211
+ distribute, sublicense, and/or sell copies of the Software, and to
1212
+ permit persons to whom the Software is furnished to do so, subject to
1213
+ the following conditions:
1214
+
1215
+ The above copyright notice and this permission notice shall be
1216
+ included in all copies or substantial portions of the Software.
1217
+
1218
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
1219
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
1220
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
1221
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
1222
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
1223
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
1224
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1225
+
1226
+ ====
1227
+
1228
+ Copyright and related rights for sample code are waived via CC0. Sample
1229
+ code is defined as all source code displayed within the prose of the
1230
+ documentation.
1231
+
1232
+ CC0: http://creativecommons.org/publicdomain/zero/1.0/
1233
+
1234
+ ====
1235
+
1236
+ Files located in the node_modules and vendor directories are externally
1237
+ maintained libraries used by this software which have their own
1238
+ licenses; we recommend you read them, as their terms may differ from the
1239
+ terms above.
1240
+
1241
+ ---
1242
+
1243
+ Name: react-intersection-observer
1244
+ Version: 9.13.1
1245
+ License: MIT
1246
+ Private: false
1247
+ Description: Monitor if a component is inside the viewport, using IntersectionObserver API
1248
+ Repository: https://github.com/thebuilder/react-intersection-observer.git
1249
+ Author: Daniel Schmidt
1250
+ License Copyright:
1251
+ ===
1252
+
1253
+ The MIT License (MIT)
1254
+
1255
+ Copyright (c) 2023 React Intersection Observer authors
1256
+
1257
+ Permission is hereby granted, free of charge, to any person obtaining a copy
1258
+ of this software and associated documentation files (the "Software"), to deal
1259
+ in the Software without restriction, including without limitation the rights
1260
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1261
+ copies of the Software, and to permit persons to whom the Software is
1262
+ furnished to do so, subject to the following conditions:
1263
+
1264
+ The above copyright notice and this permission notice shall be included in all
1265
+ copies or substantial portions of the Software.
1266
+
1267
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1268
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1269
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1270
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1271
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1272
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1273
+ SOFTWARE.
1274
+
1275
+ ---
1276
+
1277
+ Name: dayjs
1278
+ Version: 1.11.12
1279
+ License: MIT
1280
+ Private: false
1281
+ Description: 2KB immutable date time library alternative to Moment.js with the same modern API
1282
+ Repository: https://github.com/iamkun/dayjs.git
1283
+ Homepage: https://day.js.org
1284
+ Author: iamkun
1285
+ License Copyright:
1286
+ ===
1287
+
1288
+ MIT License
1289
+
1290
+ Copyright (c) 2018-present, iamkun
1291
+
1292
+ Permission is hereby granted, free of charge, to any person obtaining a copy
1293
+ of this software and associated documentation files (the "Software"), to deal
1294
+ in the Software without restriction, including without limitation the rights
1295
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1296
+ copies of the Software, and to permit persons to whom the Software is
1297
+ furnished to do so, subject to the following conditions:
1298
+
1299
+ The above copyright notice and this permission notice shall be included in all
1300
+ copies or substantial portions of the Software.
1301
+
1302
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1303
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1304
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1305
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1306
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1307
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1308
+ SOFTWARE.
1309
+
1310
+ ---
1311
+
1312
+ Name: @mui/x-date-pickers
1313
+ Version: 7.14.0
1314
+ License: MIT
1315
+ Private: false
1316
+ Description: The community edition of the Date and Time Picker components (MUI X).
1317
+ Repository: https://github.com/mui/mui-x.git
1318
+ Homepage: https://mui.com/x/react-date-pickers/
1319
+ Author: MUI Team
1320
+ License Copyright:
1321
+ ===
1322
+
1323
+ MIT License
1324
+
1325
+ Copyright (c) 2020 Material-UI SAS
1326
+
1327
+ Permission is hereby granted, free of charge, to any person obtaining a copy
1328
+ of this software and associated documentation files (the "Software"), to deal
1329
+ in the Software without restriction, including without limitation the rights
1330
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1331
+ copies of the Software, and to permit persons to whom the Software is
1332
+ furnished to do so, subject to the following conditions:
1333
+
1334
+ The above copyright notice and this permission notice shall be included in all
1335
+ copies or substantial portions of the Software.
1336
+
1337
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1338
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1339
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1340
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1341
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1342
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1343
+ SOFTWARE.
1344
+
1345
+ ---
1346
+
1347
1347
  Name: dom-helpers
1348
1348
  Version: 5.2.1
1349
1349
  License: MIT