@smart-factor/gem-ui-components 0.0.116 → 0.0.117

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.
@@ -2,7 +2,7 @@ import './assets/SignEditor.css';var N4 = Object.defineProperty;
2
2
  var I4 = (o, e, t) => e in o ? N4(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t;
3
3
  var Eu = (o, e, t) => I4(o, typeof e != "symbol" ? e + "" : e, t);
4
4
  import { jsx as Vt, jsxs as ia, Fragment as o_ } from "react/jsx-runtime";
5
- import { G as Ib, u as i_, a as rA, Q as uc, b as hs, c as Lp, D as KE, B as sp, d as ow, e as M4, z as Dc, f as a_, s as $E, I as Of, A as WE, F as O4, U as Ax, g as q4, h as R4, i as Q4, j as G4, T as V4, K as D4, k as H4 } from "./theme-C-wZOSrn.js";
5
+ import { G as Ib, u as i_, a as rA, Q as uc, b as hs, c as Lp, D as KE, B as sp, d as ow, e as M4, z as Dc, f as a_, s as $E, I as Of, A as WE, F as O4, U as Ax, g as q4, h as R4, i as Q4, j as G4, T as V4, K as D4, k as H4 } from "./theme-CnovMgtq.js";
6
6
  import { q as XE, s as Di, I as tu, J as r_, H as YE, S as lp } from "./Stack-Bsa5WF4E.js";
7
7
  import { createContext as U4, useContext as z4, useState as vl, useCallback as zu, useEffect as oc, useMemo as cp, useRef as K4 } from "react";
8
8
  import "react-dom";
@@ -1,5 +1,6 @@
1
1
  export { ContextMenu, ContextMenuItem } from './ContextMenu';
2
2
  export { TableActions } from './TableActions/TableActions';
3
+ export { TableCustomToolbar } from './TableCustomToolbar';
3
4
  export { TableRecord } from './TableRecord/TableRecord';
4
5
  export { TableWithPagination } from './TableWithPagination/TableWithPagination';
5
6
  export type { GenericPageDataDto } from './TableWithPagination/types';
@@ -0,0 +1,14 @@
1
+ import { GridApiPro, GridValidRowModel } from '@mui/x-data-grid-pro';
2
+ export interface ColumnOption<T extends GridValidRowModel = GridValidRowModel> {
3
+ field: string;
4
+ width?: number;
5
+ valueTransformer?: (value: unknown, row: T) => string | number | null | undefined;
6
+ alignment?: 'left' | 'center' | 'right';
7
+ }
8
+ interface ExportDataGridToExcelOptions<T extends GridValidRowModel = GridValidRowModel> {
9
+ sheetName?: string;
10
+ filenamePrefix?: string;
11
+ columnOptions?: ColumnOption<T>[];
12
+ }
13
+ export declare const exportDataGridToExcel: <T extends GridValidRowModel = GridValidRowModel>(gridApiRef: React.MutableRefObject<GridApiPro>, options?: ExportDataGridToExcelOptions<T>) => void;
14
+ export {};
@@ -0,0 +1,3 @@
1
+ export declare const ExportTransformer: {
2
+ toDate: (value: unknown) => string;
3
+ };
@@ -1,6 +1,8 @@
1
1
  export * from './base64';
2
2
  export * from './columns';
3
3
  export * from './date';
4
+ export { type ColumnOption, exportDataGridToExcel, } from './exportDataGridToExcel';
5
+ export { ExportTransformer } from './exportTransformers';
4
6
  export * from './file';
5
7
  export { getErrorMessage } from './getErrorMessage';
6
8
  export * from './sortArrayByAnotherArray';
package/dist/licenses.txt CHANGED
@@ -1541,6 +1541,221 @@ SOFTWARE.
1541
1541
 
1542
1542
  ---
1543
1543
 
1544
+ Name: xlsx-js-style
1545
+ Version: 1.2.0
1546
+ License: Apache-2.0
1547
+ Private: false
1548
+ Description: SheetJS Spreadsheet Community Edition plus Basic Cell Styles
1549
+ Repository: git://github.com/gitbrent/xlsx-js-style.git
1550
+ Homepage: https://github.com/gitbrent/xlsx-js-style/
1551
+ Author: gitbrent
1552
+ License Copyright:
1553
+ ===
1554
+
1555
+ Apache License
1556
+ Version 2.0, January 2004
1557
+ http://www.apache.org/licenses/
1558
+
1559
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1560
+
1561
+ 1. Definitions.
1562
+
1563
+ "License" shall mean the terms and conditions for use, reproduction,
1564
+ and distribution as defined by Sections 1 through 9 of this document.
1565
+
1566
+ "Licensor" shall mean the copyright owner or entity authorized by
1567
+ the copyright owner that is granting the License.
1568
+
1569
+ "Legal Entity" shall mean the union of the acting entity and all
1570
+ other entities that control, are controlled by, or are under common
1571
+ control with that entity. For the purposes of this definition,
1572
+ "control" means (i) the power, direct or indirect, to cause the
1573
+ direction or management of such entity, whether by contract or
1574
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
1575
+ outstanding shares, or (iii) beneficial ownership of such entity.
1576
+
1577
+ "You" (or "Your") shall mean an individual or Legal Entity
1578
+ exercising permissions granted by this License.
1579
+
1580
+ "Source" form shall mean the preferred form for making modifications,
1581
+ including but not limited to software source code, documentation
1582
+ source, and configuration files.
1583
+
1584
+ "Object" form shall mean any form resulting from mechanical
1585
+ transformation or translation of a Source form, including but
1586
+ not limited to compiled object code, generated documentation,
1587
+ and conversions to other media types.
1588
+
1589
+ "Work" shall mean the work of authorship, whether in Source or
1590
+ Object form, made available under the License, as indicated by a
1591
+ copyright notice that is included in or attached to the work
1592
+ (an example is provided in the Appendix below).
1593
+
1594
+ "Derivative Works" shall mean any work, whether in Source or Object
1595
+ form, that is based on (or derived from) the Work and for which the
1596
+ editorial revisions, annotations, elaborations, or other modifications
1597
+ represent, as a whole, an original work of authorship. For the purposes
1598
+ of this License, Derivative Works shall not include works that remain
1599
+ separable from, or merely link (or bind by name) to the interfaces of,
1600
+ the Work and Derivative Works thereof.
1601
+
1602
+ "Contribution" shall mean any work of authorship, including
1603
+ the original version of the Work and any modifications or additions
1604
+ to that Work or Derivative Works thereof, that is intentionally
1605
+ submitted to Licensor for inclusion in the Work by the copyright owner
1606
+ or by an individual or Legal Entity authorized to submit on behalf of
1607
+ the copyright owner. For the purposes of this definition, "submitted"
1608
+ means any form of electronic, verbal, or written communication sent
1609
+ to the Licensor or its representatives, including but not limited to
1610
+ communication on electronic mailing lists, source code control systems,
1611
+ and issue tracking systems that are managed by, or on behalf of, the
1612
+ Licensor for the purpose of discussing and improving the Work, but
1613
+ excluding communication that is conspicuously marked or otherwise
1614
+ designated in writing by the copyright owner as "Not a Contribution."
1615
+
1616
+ "Contributor" shall mean Licensor and any individual or Legal Entity
1617
+ on behalf of whom a Contribution has been received by Licensor and
1618
+ subsequently incorporated within the Work.
1619
+
1620
+ 2. Grant of Copyright License. Subject to the terms and conditions of
1621
+ this License, each Contributor hereby grants to You a perpetual,
1622
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
1623
+ copyright license to reproduce, prepare Derivative Works of,
1624
+ publicly display, publicly perform, sublicense, and distribute the
1625
+ Work and such Derivative Works in Source or Object form.
1626
+
1627
+ 3. Grant of Patent License. Subject to the terms and conditions of
1628
+ this License, each Contributor hereby grants to You a perpetual,
1629
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
1630
+ (except as stated in this section) patent license to make, have made,
1631
+ use, offer to sell, sell, import, and otherwise transfer the Work,
1632
+ where such license applies only to those patent claims licensable
1633
+ by such Contributor that are necessarily infringed by their
1634
+ Contribution(s) alone or by combination of their Contribution(s)
1635
+ with the Work to which such Contribution(s) was submitted. If You
1636
+ institute patent litigation against any entity (including a
1637
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
1638
+ or a Contribution incorporated within the Work constitutes direct
1639
+ or contributory patent infringement, then any patent licenses
1640
+ granted to You under this License for that Work shall terminate
1641
+ as of the date such litigation is filed.
1642
+
1643
+ 4. Redistribution. You may reproduce and distribute copies of the
1644
+ Work or Derivative Works thereof in any medium, with or without
1645
+ modifications, and in Source or Object form, provided that You
1646
+ meet the following conditions:
1647
+
1648
+ (a) You must give any other recipients of the Work or
1649
+ Derivative Works a copy of this License; and
1650
+
1651
+ (b) You must cause any modified files to carry prominent notices
1652
+ stating that You changed the files; and
1653
+
1654
+ (c) You must retain, in the Source form of any Derivative Works
1655
+ that You distribute, all copyright, patent, trademark, and
1656
+ attribution notices from the Source form of the Work,
1657
+ excluding those notices that do not pertain to any part of
1658
+ the Derivative Works; and
1659
+
1660
+ (d) If the Work includes a "NOTICE" text file as part of its
1661
+ distribution, then any Derivative Works that You distribute must
1662
+ include a readable copy of the attribution notices contained
1663
+ within such NOTICE file, excluding those notices that do not
1664
+ pertain to any part of the Derivative Works, in at least one
1665
+ of the following places: within a NOTICE text file distributed
1666
+ as part of the Derivative Works; within the Source form or
1667
+ documentation, if provided along with the Derivative Works; or,
1668
+ within a display generated by the Derivative Works, if and
1669
+ wherever such third-party notices normally appear. The contents
1670
+ of the NOTICE file are for informational purposes only and
1671
+ do not modify the License. You may add Your own attribution
1672
+ notices within Derivative Works that You distribute, alongside
1673
+ or as an addendum to the NOTICE text from the Work, provided
1674
+ that such additional attribution notices cannot be construed
1675
+ as modifying the License.
1676
+
1677
+ You may add Your own copyright statement to Your modifications and
1678
+ may provide additional or different license terms and conditions
1679
+ for use, reproduction, or distribution of Your modifications, or
1680
+ for any such Derivative Works as a whole, provided Your use,
1681
+ reproduction, and distribution of the Work otherwise complies with
1682
+ the conditions stated in this License.
1683
+
1684
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
1685
+ any Contribution intentionally submitted for inclusion in the Work
1686
+ by You to the Licensor shall be under the terms and conditions of
1687
+ this License, without any additional terms or conditions.
1688
+ Notwithstanding the above, nothing herein shall supersede or modify
1689
+ the terms of any separate license agreement you may have executed
1690
+ with Licensor regarding such Contributions.
1691
+
1692
+ 6. Trademarks. This License does not grant permission to use the trade
1693
+ names, trademarks, service marks, or product names of the Licensor,
1694
+ except as required for reasonable and customary use in describing the
1695
+ origin of the Work and reproducing the content of the NOTICE file.
1696
+
1697
+ 7. Disclaimer of Warranty. Unless required by applicable law or
1698
+ agreed to in writing, Licensor provides the Work (and each
1699
+ Contributor provides its Contributions) on an "AS IS" BASIS,
1700
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
1701
+ implied, including, without limitation, any warranties or conditions
1702
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
1703
+ PARTICULAR PURPOSE. You are solely responsible for determining the
1704
+ appropriateness of using or redistributing the Work and assume any
1705
+ risks associated with Your exercise of permissions under this License.
1706
+
1707
+ 8. Limitation of Liability. In no event and under no legal theory,
1708
+ whether in tort (including negligence), contract, or otherwise,
1709
+ unless required by applicable law (such as deliberate and grossly
1710
+ negligent acts) or agreed to in writing, shall any Contributor be
1711
+ liable to You for damages, including any direct, indirect, special,
1712
+ incidental, or consequential damages of any character arising as a
1713
+ result of this License or out of the use or inability to use the
1714
+ Work (including but not limited to damages for loss of goodwill,
1715
+ work stoppage, computer failure or malfunction, or any and all
1716
+ other commercial damages or losses), even if such Contributor
1717
+ has been advised of the possibility of such damages.
1718
+
1719
+ 9. Accepting Warranty or Additional Liability. While redistributing
1720
+ the Work or Derivative Works thereof, You may choose to offer,
1721
+ and charge a fee for, acceptance of support, warranty, indemnity,
1722
+ or other liability obligations and/or rights consistent with this
1723
+ License. However, in accepting such obligations, You may act only
1724
+ on Your own behalf and on Your sole responsibility, not on behalf
1725
+ of any other Contributor, and only if You agree to indemnify,
1726
+ defend, and hold each Contributor harmless for any liability
1727
+ incurred by, or claims asserted against, such Contributor by reason
1728
+ of your accepting any such warranty or additional liability.
1729
+
1730
+ END OF TERMS AND CONDITIONS
1731
+
1732
+ APPENDIX: How to apply the Apache License to your work.
1733
+
1734
+ To apply the Apache License to your work, attach the following
1735
+ boilerplate notice, with the fields enclosed by brackets "{}"
1736
+ replaced with your own identifying information. (Don't include
1737
+ the brackets!) The text should be enclosed in the appropriate
1738
+ comment syntax for the file format. We also recommend that a
1739
+ file or class name and description of purpose be included on the
1740
+ same "printed page" as the copyright notice for easier
1741
+ identification within third-party archives.
1742
+
1743
+ Copyright (C) 2012-present SheetJS LLC
1744
+
1745
+ Licensed under the Apache License, Version 2.0 (the "License");
1746
+ you may not use this file except in compliance with the License.
1747
+ You may obtain a copy of the License at
1748
+
1749
+ http://www.apache.org/licenses/LICENSE-2.0
1750
+
1751
+ Unless required by applicable law or agreed to in writing, software
1752
+ distributed under the License is distributed on an "AS IS" BASIS,
1753
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1754
+ See the License for the specific language governing permissions and
1755
+ limitations under the License.
1756
+
1757
+ ---
1758
+
1544
1759
  Name: zod
1545
1760
  Version: 3.24.4
1546
1761
  License: MIT