@ace-grid/wc 1.0.7 → 1.0.12

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 (4) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +17 -23
  3. package/dist/wc.d.ts +15 -56
  4. package/package.json +23 -10
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Ace Grid
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,36 +1,30 @@
1
1
  # @ace-grid/wc
2
2
 
3
- Ace Grid Web Components provide framework-neutral custom elements for using Ace Grid in applications that do not render React components directly.
3
+ Free Web Component data grid wrapper for Ace Grid Core.
4
+
5
+ This package is generated from the public Core export in:
6
+
7
+ https://github.com/Vitashev/ace-grid-core
8
+
9
+ It contains only free/Core Ace Grid capabilities. Pro and Enterprise source,
10
+ runtime modules, and paid feature artifacts are intentionally excluded.
11
+
12
+ ## Documentation
13
+
14
+ - Framework guide: https://ace-grid.com/guides/web-component-data-grid
15
+ - Product docs: https://ace-grid.com/docs
16
+ - API reference: https://ace-grid.com/api
4
17
 
5
18
  ## Install
6
19
 
7
20
  ```bash
8
- npm install @ace-grid/wc @ace-grid/core react react-dom
21
+ npm install @ace-grid/wc
9
22
  ```
10
23
 
11
- ## Quick start
24
+ ## Usage
12
25
 
13
26
  ```ts
14
27
  import { defineAceGridElement } from "@ace-grid/wc";
15
- import { Grid } from "@ace-grid/core";
16
-
17
- defineAceGridElement("ace-grid", { Grid });
18
- ```
19
28
 
20
- ```html
21
- <ace-grid></ace-grid>
29
+ defineAceGridElement("ace-grid");
22
30
  ```
23
-
24
- ## When to use this package
25
-
26
- - You need Ace Grid inside a non-React shell.
27
- - You want a stable custom-element boundary for micro-frontends.
28
- - You want to integrate Ace Grid with server-rendered pages or framework-neutral UI hosts.
29
-
30
- ## Runtime selection
31
-
32
- The web component wrapper is runtime-neutral. Register it with `@ace-grid/core`, `@ace-grid/pro`, or `@ace-grid/enterprise` depending on the features and license tier your application uses.
33
-
34
- ## License
35
-
36
- MIT. Runtime packages may have separate license terms.
package/dist/wc.d.ts CHANGED
@@ -1,60 +1,19 @@
1
- export declare const ACE_GRID_CUSTOM_EVENT_PREFIX: string;
2
- export declare const ACE_GRID_CUSTOM_EVENTS: Record<string, string>;
3
- export type AceGridCustomEventName = string;
4
- export interface AceGridCustomEventDetail {
5
- path: string[];
6
- callback: string;
7
- args: unknown[];
8
- [key: string]: unknown;
9
- }
10
- export interface AceGridCustomElement<TProps extends Record<string, unknown> = Record<string, unknown>> extends HTMLElement {
1
+ /* Public Ace Grid Core type surface. Generated by export-public-core. */
2
+ import type { GridProps, UseGridOptions, GridActions } from "@ace-grid/core";
3
+
4
+ export interface AceGridCustomElement<TProps extends Record<string, unknown> = GridProps> extends HTMLElement {
11
5
  props: TProps;
12
6
  gridProps: TProps;
13
- templates: AceGridTemplateRegistry;
14
- setProps(partial: Partial<TProps>): void;
15
- getProps(): TProps;
16
- setTemplates(partial: Partial<AceGridTemplateRegistry>): void;
17
- getTemplates(): AceGridTemplateRegistry;
18
- rerender(): void;
19
- }
20
- export interface AceGridDomTemplateContext<TArgs = unknown> {
21
- host: HTMLElement;
22
- props: TArgs;
23
- renderDefault?: () => Node | null;
24
- }
25
- export type AceGridDomTemplate<TArgs = unknown> = (context: AceGridDomTemplateContext<TArgs>) => unknown;
26
- export type AceGridIconTemplateRegistry = Record<string, AceGridDomTemplate>;
27
- export interface AceGridColumnTemplateRegistry {
28
- cell?: AceGridDomTemplate;
29
- header?: AceGridDomTemplate;
30
- editor?: AceGridDomTemplate;
31
- }
32
- export interface AceGridTemplateRegistry {
33
- columns?: Record<string, AceGridColumnTemplateRegistry>;
34
- icons?: AceGridIconTemplateRegistry;
35
- [key: string]: unknown;
7
+ setProps: (partial: Partial<TProps>) => void;
8
+ getProps: () => TProps;
9
+ rerender: () => void;
36
10
  }
37
- export interface AceGridHookElement<
38
- TGridProps extends Record<string, unknown> = Record<string, unknown>,
39
- THookOptions = Record<string, unknown>,
40
- TRows = unknown,
41
- TActions = unknown
42
- > extends AceGridCustomElement<TGridProps> {
43
- hookOptions: THookOptions;
44
- rows: TRows | null;
45
- actions: TActions | null;
46
- api: TActions | null;
47
- setHookOptions(partial: Partial<THookOptions>): void;
48
- getHookOptions(): THookOptions;
49
- getRows(): TRows | null;
50
- getActions(): TActions | null;
51
- getApi(): TActions | null;
11
+ export interface AceGridUseGridElement extends AceGridCustomElement {
12
+ hookOptions: UseGridOptions;
13
+ actions: GridActions | null;
14
+ api: GridActions | null;
52
15
  }
53
- export interface AceGridUseGridElement extends AceGridHookElement {}
54
- export declare function getAceGridCustomEventName(callbackName: string): AceGridCustomEventName;
55
- export declare function createAceGridElementClass(...args: unknown[]): unknown;
56
- export declare function defineAceGridElement(...args: unknown[]): unknown;
57
- export declare function createAceGridHookElementClass(...args: unknown[]): unknown;
58
- export declare function defineAceGridHookElement(...args: unknown[]): unknown;
59
- export declare function createAceGridUseGridElementClass(...args: unknown[]): unknown;
60
- export declare function defineAceGridUseGridElement(...args: unknown[]): unknown;
16
+ export declare const defineAceGridElement: (tagName?: string) => CustomElementConstructor;
17
+ export declare const defineAceGridUseGridElement: (tagName?: string) => CustomElementConstructor;
18
+ export declare const createAceGridElementClass: (...args: unknown[]) => CustomElementConstructor;
19
+ export declare const createAceGridUseGridElementClass: (...args: unknown[]) => CustomElementConstructor;
package/package.json CHANGED
@@ -1,9 +1,8 @@
1
1
  {
2
2
  "name": "@ace-grid/wc",
3
- "version": "1.0.7",
4
- "description": "Ace Grid Web Component wrapper for framework-neutral grid usage.",
3
+ "version": "1.0.12",
4
+ "description": "Web Component data grid wrapper for framework-neutral Ace Grid usage.",
5
5
  "type": "module",
6
- "main": "./dist/wc.cjs",
7
6
  "module": "./dist/wc.js",
8
7
  "types": "./dist/wc.d.ts",
9
8
  "exports": {
@@ -14,29 +13,43 @@
14
13
  }
15
14
  },
16
15
  "scripts": {
17
- "build": "vite build && tsc -p tsconfig.build.json && node ../../scripts/protect-wrapper-package.mjs wc"
16
+ "build": "vite build && node ../../scripts/write-public-package-types.mjs wc"
18
17
  },
19
18
  "publishConfig": {
20
19
  "access": "public"
21
20
  },
22
21
  "files": [
23
- "dist/wc.js",
24
- "dist/wc.cjs",
25
- "dist/wc.d.ts"
22
+ "dist",
23
+ "README.md",
24
+ "LICENSE"
26
25
  ],
27
26
  "peerDependencies": {
27
+ "@ace-grid/core": ">=1.0.6 <2.0.0",
28
+ "@ace-grid/pro": ">=1.0.6 <2.0.0",
29
+ "@ace-grid/enterprise": ">=1.0.6 <2.0.0",
28
30
  "react": "19.1.1",
29
31
  "react-dom": "19.1.1"
30
32
  },
33
+ "peerDependenciesMeta": {
34
+ "@ace-grid/core": {
35
+ "optional": true
36
+ },
37
+ "@ace-grid/pro": {
38
+ "optional": true
39
+ },
40
+ "@ace-grid/enterprise": {
41
+ "optional": true
42
+ }
43
+ },
31
44
  "license": "MIT",
32
45
  "repository": {
33
46
  "type": "git",
34
- "url": "git+https://github.com/Vitashev/gridix.git"
47
+ "url": "git+https://github.com/Vitashev/ace-grid-core.git"
35
48
  },
36
49
  "bugs": {
37
- "url": "https://github.com/Vitashev/gridix/issues"
50
+ "url": "https://github.com/Vitashev/ace-grid-core/issues"
38
51
  },
39
- "homepage": "https://ace-grid.com",
52
+ "homepage": "https://github.com/Vitashev/ace-grid-core#readme",
40
53
  "keywords": [
41
54
  "ace-grid",
42
55
  "web-components",