@svgrid/enterprise 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +97 -0
- package/README.md +37 -0
- package/package.json +72 -0
- package/src/ai.test.ts +522 -0
- package/src/ai.ts +782 -0
- package/src/export.ts +512 -0
- package/src/import.test.ts +415 -0
- package/src/import.ts +648 -0
- package/src/index.ts +88 -0
- package/src/install.ts +114 -0
- package/src/license.ts +90 -0
- package/src/pdfmake-shims.d.ts +22 -0
- package/src/pivot.test.ts +308 -0
- package/src/pivot.ts +549 -0
- package/src/print.ts +127 -0
- package/src/revoked.ts +49 -0
- package/src/smart-shim.ts +105 -0
- package/src/smart.export.d.ts +5 -0
- package/src/smart.export.js +7 -0
- package/src/staged-editing.ts +0 -0
- package/src/upgrade-prompt.test.ts +71 -0
- package/src/upgrade-prompt.ts +148 -0
- package/src/watermark.test.ts +97 -0
- package/src/watermark.ts +156 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
SV-GRID PRO COMMERCIAL LICENSE
|
|
2
|
+
Version 1.0
|
|
3
|
+
|
|
4
|
+
Copyright (c) 2026 Boyko Markov <boikom@jqwidgets.com>
|
|
5
|
+
Project: @svgrid/enterprise
|
|
6
|
+
|
|
7
|
+
This software is licensed, not sold. Use requires a valid, paid Pro
|
|
8
|
+
license key issued by the Author. Without a license key, the runtime
|
|
9
|
+
will throw at the first call to a Pro feature.
|
|
10
|
+
|
|
11
|
+
------------------------------------------------------------------------
|
|
12
|
+
1. GRANT (with valid license key)
|
|
13
|
+
------------------------------------------------------------------------
|
|
14
|
+
|
|
15
|
+
Subject to the Subscriber's compliance with this License and continued
|
|
16
|
+
payment of the applicable license fee, the Author grants the Subscriber
|
|
17
|
+
a non-exclusive, non-transferable, non-sublicensable license to:
|
|
18
|
+
|
|
19
|
+
(a) install and use the Software on developer workstations and in
|
|
20
|
+
production deployments belonging to the Subscriber;
|
|
21
|
+
(b) modify the Software for the Subscriber's internal use, provided
|
|
22
|
+
that all copyright notices and license terms are preserved;
|
|
23
|
+
(c) distribute the Software bundled inside the Subscriber's own
|
|
24
|
+
compiled application, provided the Software is not the primary
|
|
25
|
+
product distributed and remains under this License.
|
|
26
|
+
|
|
27
|
+
The number of developer seats covered is determined by the Subscriber's
|
|
28
|
+
order. A "developer" is any individual who writes or modifies source
|
|
29
|
+
code that imports `@svgrid/enterprise`. Read-only users and end users do not
|
|
30
|
+
count toward seats.
|
|
31
|
+
|
|
32
|
+
------------------------------------------------------------------------
|
|
33
|
+
2. RESTRICTIONS
|
|
34
|
+
------------------------------------------------------------------------
|
|
35
|
+
|
|
36
|
+
The Subscriber may NOT:
|
|
37
|
+
|
|
38
|
+
(a) redistribute the Software as a standalone package, library, or
|
|
39
|
+
component;
|
|
40
|
+
(b) sublicense, rent, lease, or sell the Software to third parties;
|
|
41
|
+
(c) remove, obscure, or disable the license-key check or any
|
|
42
|
+
copyright notices;
|
|
43
|
+
(d) use the Software to develop a directly competing data-grid or
|
|
44
|
+
table component product for third parties;
|
|
45
|
+
(e) share license keys outside of the developer seats covered by the
|
|
46
|
+
Subscriber's order.
|
|
47
|
+
|
|
48
|
+
------------------------------------------------------------------------
|
|
49
|
+
3. SUBSCRIPTION AND TERMINATION
|
|
50
|
+
------------------------------------------------------------------------
|
|
51
|
+
|
|
52
|
+
The license is granted for the term specified in the Subscriber's
|
|
53
|
+
order (typically one year, renewable). On non-renewal or material
|
|
54
|
+
breach of Sections 1 or 2, the license terminates automatically and
|
|
55
|
+
the Subscriber must cease all use of the Software, remove it from
|
|
56
|
+
development environments, and stop deploying new versions of any
|
|
57
|
+
application that depends on it. Existing deployed copies in production
|
|
58
|
+
may continue to operate until the next release cycle, but no new
|
|
59
|
+
deployments are permitted.
|
|
60
|
+
|
|
61
|
+
------------------------------------------------------------------------
|
|
62
|
+
4. WARRANTY DISCLAIMER AND LIABILITY
|
|
63
|
+
------------------------------------------------------------------------
|
|
64
|
+
|
|
65
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
66
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
67
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND
|
|
68
|
+
NON-INFRINGEMENT. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
|
|
69
|
+
CLAIM, DAMAGES, OR OTHER LIABILITY ARISING FROM USE OF THE SOFTWARE,
|
|
70
|
+
WHETHER IN AN ACTION OF CONTRACT, TORT, OR OTHERWISE.
|
|
71
|
+
|
|
72
|
+
The Author's total cumulative liability under this License shall not
|
|
73
|
+
exceed the license fees paid by the Subscriber in the twelve months
|
|
74
|
+
preceding the event giving rise to the claim.
|
|
75
|
+
|
|
76
|
+
------------------------------------------------------------------------
|
|
77
|
+
5. THIRD-PARTY COMPONENTS
|
|
78
|
+
------------------------------------------------------------------------
|
|
79
|
+
|
|
80
|
+
This Software includes a vendored copy of the data-export utility
|
|
81
|
+
from Smart UI / jQWidgets, redistributed under the same ownership
|
|
82
|
+
(Copyright (c) 2011-2026 jQWidgets). See `src/smart.export.js` for
|
|
83
|
+
the original notice.
|
|
84
|
+
|
|
85
|
+
Optional peer dependencies (`jszip`, `pdfmake`) are licensed by their
|
|
86
|
+
respective authors under their own terms (MIT). They are not bundled
|
|
87
|
+
into this package; consumers install them separately.
|
|
88
|
+
|
|
89
|
+
------------------------------------------------------------------------
|
|
90
|
+
6. CONTACT
|
|
91
|
+
------------------------------------------------------------------------
|
|
92
|
+
|
|
93
|
+
To purchase a license, request a quote, or report unauthorized use,
|
|
94
|
+
contact: boikom@jqwidgets.com
|
|
95
|
+
Pricing: https://sv-grid.dev/pricing
|
|
96
|
+
|
|
97
|
+
END OF LICENSE
|
package/README.md
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# @svgrid/enterprise
|
|
2
|
+
|
|
3
|
+
The paid feature pack for [sv-grid](https://sv-grid.dev).
|
|
4
|
+
|
|
5
|
+
Ships data export to **Excel (xlsx), PDF, CSV, TSV, HTML** and a
|
|
6
|
+
**Print** action that opens a paginated, printable view of the grid.
|
|
7
|
+
|
|
8
|
+
## Install
|
|
9
|
+
|
|
10
|
+
```bash
|
|
11
|
+
pnpm add @svgrid/enterprise
|
|
12
|
+
# optional peers - only needed for the formats you use:
|
|
13
|
+
pnpm add jszip # for xlsx
|
|
14
|
+
pnpm add pdfmake # for pdf
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Use
|
|
18
|
+
|
|
19
|
+
```ts
|
|
20
|
+
import { setLicenseKey, installPro } from '@svgrid/enterprise'
|
|
21
|
+
|
|
22
|
+
setLicenseKey('SVPRO-XXXX-XXXX-XXXX') // your Pro key
|
|
23
|
+
|
|
24
|
+
// inside <SvGrid onApiReady={...}>:
|
|
25
|
+
const pro = installPro(api)
|
|
26
|
+
|
|
27
|
+
await pro.exportData({ format: 'xlsx', filename: 'orders' })
|
|
28
|
+
pro.print({ title: 'Q2 Orders' })
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
The full grid API stays untouched - `installPro` returns the same
|
|
32
|
+
object with `exportData` and `print` added on top.
|
|
33
|
+
|
|
34
|
+
## License
|
|
35
|
+
|
|
36
|
+
Commercial. A valid Pro key is required at runtime; calls throw
|
|
37
|
+
otherwise. Buy a key at <https://sv-grid.dev/pricing>.
|
package/package.json
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@svgrid/enterprise",
|
|
3
|
+
"version": "1.0.1",
|
|
4
|
+
"description": "Pro feature pack for sv-grid: data export (Excel, PDF, CSV, TSV, HTML), import (xlsx, CSV, TSV, JSON), pivot table + designer, AI assistant (BYO model), and printing. Requires a paid license key.",
|
|
5
|
+
"license": "SEE LICENSE IN LICENSE",
|
|
6
|
+
"author": "jQWidgets <sales@jqwidgets.com>",
|
|
7
|
+
"homepage": "https://svgrid.com/pricing",
|
|
8
|
+
"type": "module",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./src/index.ts",
|
|
12
|
+
"svelte": "./src/index.ts",
|
|
13
|
+
"import": "./src/index.ts"
|
|
14
|
+
},
|
|
15
|
+
"./export": {
|
|
16
|
+
"types": "./src/export.ts",
|
|
17
|
+
"svelte": "./src/export.ts",
|
|
18
|
+
"import": "./src/export.ts"
|
|
19
|
+
},
|
|
20
|
+
"./print": {
|
|
21
|
+
"types": "./src/print.ts",
|
|
22
|
+
"svelte": "./src/print.ts",
|
|
23
|
+
"import": "./src/print.ts"
|
|
24
|
+
},
|
|
25
|
+
"./ai": {
|
|
26
|
+
"types": "./src/ai.ts",
|
|
27
|
+
"svelte": "./src/ai.ts",
|
|
28
|
+
"import": "./src/ai.ts"
|
|
29
|
+
},
|
|
30
|
+
"./import": {
|
|
31
|
+
"types": "./src/import.ts",
|
|
32
|
+
"svelte": "./src/import.ts",
|
|
33
|
+
"import": "./src/import.ts"
|
|
34
|
+
},
|
|
35
|
+
"./pivot": {
|
|
36
|
+
"types": "./src/pivot.ts",
|
|
37
|
+
"svelte": "./src/pivot.ts",
|
|
38
|
+
"import": "./src/pivot.ts"
|
|
39
|
+
},
|
|
40
|
+
"./package.json": "./package.json"
|
|
41
|
+
},
|
|
42
|
+
"files": [
|
|
43
|
+
"src",
|
|
44
|
+
"README.md",
|
|
45
|
+
"LICENSE"
|
|
46
|
+
],
|
|
47
|
+
"scripts": {
|
|
48
|
+
"test": "vitest run",
|
|
49
|
+
"test:types": "tsc -p tsconfig.json --noEmit"
|
|
50
|
+
},
|
|
51
|
+
"peerDependencies": {
|
|
52
|
+
"svelte": "^5.0.0",
|
|
53
|
+
"@svgrid/grid": "workspace:*",
|
|
54
|
+
"jszip": "^3.10.0",
|
|
55
|
+
"pdfmake": "^0.2.0"
|
|
56
|
+
},
|
|
57
|
+
"peerDependenciesMeta": {
|
|
58
|
+
"jszip": {
|
|
59
|
+
"optional": true
|
|
60
|
+
},
|
|
61
|
+
"pdfmake": {
|
|
62
|
+
"optional": true
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"devDependencies": {
|
|
66
|
+
"jszip": "^3.10.1",
|
|
67
|
+
"pdfmake": "^0.2.10",
|
|
68
|
+
"svelte": "^5.55.5",
|
|
69
|
+
"@svgrid/grid": "workspace:*",
|
|
70
|
+
"typescript": "6.0.3"
|
|
71
|
+
}
|
|
72
|
+
}
|