@genesislcap/grid-tabulator 14.418.2 → 14.419.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/dist/custom-elements.json +20 -0
- package/dist/dts/datasource/client-side.datasource.d.ts +10 -2
- package/dist/dts/datasource/client-side.datasource.d.ts.map +1 -1
- package/dist/dts/grid-tabulator.d.ts +2 -0
- package/dist/dts/grid-tabulator.d.ts.map +1 -1
- package/dist/dts/react.d.ts +77 -0
- package/dist/esm/datasource/client-side.datasource.js +4 -0
- package/dist/esm/grid-tabulator.js +2 -0
- package/dist/grid-tabulator.api.json +2 -2
- package/dist/grid-tabulator.d.ts +12 -2
- package/dist/react.cjs +40 -0
- package/dist/react.mjs +31 -0
- package/package.json +25 -13
|
@@ -993,6 +993,12 @@
|
|
|
993
993
|
}
|
|
994
994
|
}
|
|
995
995
|
],
|
|
996
|
+
"events": [
|
|
997
|
+
{
|
|
998
|
+
"description": "Fired when the Tabulator instance is ready (detail is the Tabulator instance)",
|
|
999
|
+
"name": "gridReady"
|
|
1000
|
+
}
|
|
1001
|
+
],
|
|
996
1002
|
"attributes": [
|
|
997
1003
|
{
|
|
998
1004
|
"name": "auto-cell-renderer-by-type",
|
|
@@ -4364,6 +4370,20 @@
|
|
|
4364
4370
|
}
|
|
4365
4371
|
}
|
|
4366
4372
|
],
|
|
4373
|
+
"events": [
|
|
4374
|
+
{
|
|
4375
|
+
"description": "Fired when a datasource error occurs",
|
|
4376
|
+
"name": "gridTabulator:error"
|
|
4377
|
+
},
|
|
4378
|
+
{
|
|
4379
|
+
"description": "Fired when tabulator data is initialized",
|
|
4380
|
+
"name": "dataInit"
|
|
4381
|
+
},
|
|
4382
|
+
{
|
|
4383
|
+
"description": "Fired when layout size changes",
|
|
4384
|
+
"name": "sizeChanged"
|
|
4385
|
+
}
|
|
4386
|
+
],
|
|
4367
4387
|
"attributes": [
|
|
4368
4388
|
{
|
|
4369
4389
|
"name": "criteria",
|
|
@@ -426,8 +426,12 @@ declare const GridTabulatorClientSideDatasource_base: (new (...args: any[]) => {
|
|
|
426
426
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
427
427
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
428
428
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
429
|
-
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options
|
|
430
|
-
|
|
429
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options
|
|
430
|
+
/**
|
|
431
|
+
* Whether to keep column definitions when clearing row data
|
|
432
|
+
*/
|
|
433
|
+
? /**
|
|
434
|
+
* Whether to keep column definitions when clearing row data
|
|
431
435
|
*/: boolean | EventListenerOptions): void;
|
|
432
436
|
readonly attributes: NamedNodeMap;
|
|
433
437
|
get classList(): DOMTokenList;
|
|
@@ -755,6 +759,10 @@ declare const GridTabulatorClientSideDatasource_base: (new (...args: any[]) => {
|
|
|
755
759
|
/**
|
|
756
760
|
* The Genesis Datasource element, for client-side data fetching and used exclusively by the GridTabulator element.
|
|
757
761
|
* @alpha
|
|
762
|
+
*
|
|
763
|
+
* @fires gridTabulator:error - Fired when a datasource error occurs
|
|
764
|
+
* @fires dataInit - Fired when tabulator data is initialized
|
|
765
|
+
* @fires sizeChanged - Fired when layout size changes
|
|
758
766
|
*/
|
|
759
767
|
export declare class GridTabulatorClientSideDatasource extends GridTabulatorClientSideDatasource_base {
|
|
760
768
|
auth: Auth;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client-side.datasource.d.ts","sourceRoot":"","sources":["../../../src/datasource/client-side.datasource.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,IAAI,EACJ,OAAO,EAEP,UAAU,EAIV,gBAAgB,EAUjB,MAAM,+BAA+B,CAAC;AAMvC,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAO3C;;;GAGG;AACH,eAAO,MAAM,iBAAiB,MAAM,CAAC;AAErC;;;GAGG;AACH,eAAO,MAAM,YAAY,SAAS,CAAC;AAOnC;;;GAGG;AACH,MAAM,WAAW,kBAAkB,CAAC,KAAK,GAAG,GAAG;IAC7C,wBAAwB;IACxB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,kBAAkB;IAClB,GAAG,CAAC,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC;IACrB,qBAAqB;IACrB,MAAM,CAAC,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC;IACxB,qBAAqB;IACrB,MAAM,CAAC,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC;CACzB;;;;;;;
|
|
1
|
+
{"version":3,"file":"client-side.datasource.d.ts","sourceRoot":"","sources":["../../../src/datasource/client-side.datasource.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,IAAI,EACJ,OAAO,EAEP,UAAU,EAIV,gBAAgB,EAUjB,MAAM,+BAA+B,CAAC;AAMvC,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAO3C;;;GAGG;AACH,eAAO,MAAM,iBAAiB,MAAM,CAAC;AAErC;;;GAGG;AACH,eAAO,MAAM,YAAY,SAAS,CAAC;AAOnC;;;GAGG;AACH,MAAM,WAAW,kBAAkB,CAAC,KAAK,GAAG,GAAG;IAC7C,wBAAwB;IACxB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,kBAAkB;IAClB,GAAG,CAAC,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC;IACrB,qBAAqB;IACrB,MAAM,CAAC,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC;IACxB,qBAAqB;IACrB,MAAM,CAAC,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC;CACzB;;;;;;;kBAw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B3B,OAAO,CAAC,mBAAmB;IAgB3B,OAAO,CAAC,mBAAmB;IAuB3B;;OAEG;IACH,OAAO,CAAC,iBAAiB;IAQzB,OAAO,CAAC,aAAa;IAMd,SAAS,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM;IAK9C,YAAY,CAAC,SAAS,EAAE,MAAM;IAKrC,uBAAuB,CAAC,IAAI,EAAE,gBAAgB,EAAE,IAAI,EAAE,gBAAgB;CAGvE"}
|
|
@@ -374,6 +374,8 @@ declare const GridTabulator_base: (new (...args: any[]) => {
|
|
|
374
374
|
/**
|
|
375
375
|
* @alpha
|
|
376
376
|
* @tagname %%prefix%%-grid-tabulator
|
|
377
|
+
*
|
|
378
|
+
* @fires gridReady - Fired when the Tabulator instance is ready (detail is the Tabulator instance)
|
|
377
379
|
*/
|
|
378
380
|
export declare class GridTabulator extends GridTabulator_base {
|
|
379
381
|
grid: Tabulator | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grid-tabulator.d.ts","sourceRoot":"","sources":["../../src/grid-tabulator.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAG/D,OAAO,EACL,eAAe,EACf,YAAY,EACZ,cAAc,EACd,aAAa,IAAI,SAAS,EAC3B,MAAM,kBAAkB,CAAC;AAa1B,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAIrE,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAWlC,YAAY,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;;;;;;;
|
|
1
|
+
{"version":3,"file":"grid-tabulator.d.ts","sourceRoot":"","sources":["../../src/grid-tabulator.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAG/D,OAAO,EACL,eAAe,EACf,YAAY,EACZ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AuB;IA2B/B,IAAI,uBAAuB,IAAI,OAAO,CAKrC;IAED,aAAa;IAUb,gBAAgB;IAmBhB;;;;;;;OAOG;IACH,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,YAAY;IAItF;;;;;;;;;OASG;IACH,cAAc,CACZ,IAAI,EAAE,KAAK,GAAG,MAAM,GAAG,MAAM,EAC7B,QAAQ,EAAE,MAAM,EAChB,MAAM,CAAC,EAAE,eAAe,EACxB,MAAM,CAAC,EAAE,cAAc;IAKzB;;;OAGG;IACH,YAAY;IAKZ;;;OAGG;IACH,YAAY;IAIZ;;;OAGG;IACH,MAAM;IAIN,OAAO,CAAC,eAAe,CAAa;IAEpC,OAAO,CAAC,cAAc;IAStB,OAAO,CAAC,eAAe;IAOvB;;;;OAIG;IACH,OAAO,CAAC,2BAA2B;IAmCnC;;;OAGG;IACH,OAAO,CAAC,qBAAqB;IAM7B;;OAEG;IACH,OAAO,CAAC,+BAA+B;CAqBxC;AAED;;;;GAIG;AACH,eAAO,MAAM,0BAA0B,EAAE,cAA0B,CAAC;AAEpE;;;GAGG;AACH,eAAO,MAAM,0BAA0B;;CAEtC,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,uBAAuB;;;;;;;;;;wBAMlC,CAAC"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AUTO-GENERATED FILE - DO NOT EDIT.
|
|
3
|
+
* Generated from custom-elements manifest.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import type React from 'react';
|
|
7
|
+
import type { GridTabulatorCell as GridTabulatorCellWC } from './cell/cell';
|
|
8
|
+
import type { GridTabulatorColumn as GridTabulatorColumnWC } from './column/column';
|
|
9
|
+
import type { GridTabulatorClientSideDatasource as GridTabulatorClientSideDatasourceWC } from './datasource/client-side.datasource';
|
|
10
|
+
import type { GridTabulator as GridTabulatorWC } from './grid-tabulator';
|
|
11
|
+
|
|
12
|
+
/** @internal Maps a web component class to its public props only.
|
|
13
|
+
* keyof T skips private/protected members, so this avoids the TS error
|
|
14
|
+
* "property may not be private or protected" on exported anonymous types. */
|
|
15
|
+
type PublicOf<T> = { [K in keyof T]?: T[K] };
|
|
16
|
+
|
|
17
|
+
/** @internal Safe React HTML attributes for web component wrappers.
|
|
18
|
+
* onChange/onInput use method signatures for bivariant parameter checking so both
|
|
19
|
+
* native Event and CustomEvent callbacks are accepted. */
|
|
20
|
+
interface HTMLWCProps extends React.AriaAttributes {
|
|
21
|
+
className?: string; style?: React.CSSProperties; id?: string; slot?: string;
|
|
22
|
+
tabIndex?: number; dir?: string; lang?: string; title?: string;
|
|
23
|
+
onClick?: React.MouseEventHandler<HTMLElement>;
|
|
24
|
+
onDoubleClick?: React.MouseEventHandler<HTMLElement>;
|
|
25
|
+
onContextMenu?: React.MouseEventHandler<HTMLElement>;
|
|
26
|
+
onMouseEnter?: React.MouseEventHandler<HTMLElement>;
|
|
27
|
+
onMouseLeave?: React.MouseEventHandler<HTMLElement>;
|
|
28
|
+
onMouseDown?: React.MouseEventHandler<HTMLElement>;
|
|
29
|
+
onMouseUp?: React.MouseEventHandler<HTMLElement>;
|
|
30
|
+
onMouseMove?: React.MouseEventHandler<HTMLElement>;
|
|
31
|
+
onKeyDown?: React.KeyboardEventHandler<HTMLElement>;
|
|
32
|
+
onKeyUp?: React.KeyboardEventHandler<HTMLElement>;
|
|
33
|
+
onFocus?: React.FocusEventHandler<HTMLElement>;
|
|
34
|
+
onBlur?: React.FocusEventHandler<HTMLElement>;
|
|
35
|
+
onScroll?: React.UIEventHandler<HTMLElement>;
|
|
36
|
+
onWheel?: React.WheelEventHandler<HTMLElement>;
|
|
37
|
+
onChange?(e: Event): void;
|
|
38
|
+
onInput?(e: Event): void;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export declare const GridTabulator: React.ForwardRefExoticComponent<
|
|
42
|
+
React.PropsWithChildren<
|
|
43
|
+
Omit<PublicOf<GridTabulatorWC>, 'children' | 'style'> &
|
|
44
|
+
HTMLWCProps & {
|
|
45
|
+
onGridReady?: (event: CustomEvent<unknown>) => void;
|
|
46
|
+
}
|
|
47
|
+
> & React.RefAttributes<GridTabulatorWC>
|
|
48
|
+
>;
|
|
49
|
+
|
|
50
|
+
export declare const GridTabulatorCell: React.ForwardRefExoticComponent<
|
|
51
|
+
React.PropsWithChildren<
|
|
52
|
+
Omit<PublicOf<GridTabulatorCellWC>, 'children' | 'style'> &
|
|
53
|
+
HTMLWCProps & {
|
|
54
|
+
}
|
|
55
|
+
> & React.RefAttributes<GridTabulatorCellWC>
|
|
56
|
+
>;
|
|
57
|
+
|
|
58
|
+
export declare const GridTabulatorColumn: React.ForwardRefExoticComponent<
|
|
59
|
+
React.PropsWithChildren<
|
|
60
|
+
Omit<PublicOf<GridTabulatorColumnWC>, 'children' | 'style'> &
|
|
61
|
+
HTMLWCProps & {
|
|
62
|
+
}
|
|
63
|
+
> & React.RefAttributes<GridTabulatorColumnWC>
|
|
64
|
+
>;
|
|
65
|
+
|
|
66
|
+
export declare const GridTabulatorClientSideDatasource: React.ForwardRefExoticComponent<
|
|
67
|
+
React.PropsWithChildren<
|
|
68
|
+
Omit<PublicOf<GridTabulatorClientSideDatasourceWC>, 'children' | 'style'> &
|
|
69
|
+
HTMLWCProps & {
|
|
70
|
+
onGridTabulatorError?: (event: CustomEvent<unknown>) => void;
|
|
71
|
+
onDataInit?: (event: CustomEvent<unknown>) => void;
|
|
72
|
+
onSizeChanged?: (event: CustomEvent<unknown>) => void;
|
|
73
|
+
}
|
|
74
|
+
> & React.RefAttributes<GridTabulatorClientSideDatasourceWC>
|
|
75
|
+
>;
|
|
76
|
+
|
|
77
|
+
export {};
|
|
@@ -24,6 +24,10 @@ const DEBOUNCE_INTERVAL_MS = 1000;
|
|
|
24
24
|
/**
|
|
25
25
|
* The Genesis Datasource element, for client-side data fetching and used exclusively by the GridTabulator element.
|
|
26
26
|
* @alpha
|
|
27
|
+
*
|
|
28
|
+
* @fires gridTabulator:error - Fired when a datasource error occurs
|
|
29
|
+
* @fires dataInit - Fired when tabulator data is initialized
|
|
30
|
+
* @fires sizeChanged - Fired when layout size changes
|
|
27
31
|
*/
|
|
28
32
|
let GridTabulatorClientSideDatasource = class GridTabulatorClientSideDatasource extends LifecycleMixin(DatasourceEventHandler(FoundationElement)) {
|
|
29
33
|
constructor() {
|
|
@@ -28,6 +28,8 @@ const DEBOUNCED_RESIZE_TIME = 400;
|
|
|
28
28
|
/**
|
|
29
29
|
* @alpha
|
|
30
30
|
* @tagname %%prefix%%-grid-tabulator
|
|
31
|
+
*
|
|
32
|
+
* @fires gridReady - Fired when the Tabulator instance is ready (detail is the Tabulator instance)
|
|
31
33
|
*/
|
|
32
34
|
export class GridTabulator extends LifecycleMixin(FoundationElement) {
|
|
33
35
|
constructor() {
|
|
@@ -3216,7 +3216,7 @@
|
|
|
3216
3216
|
{
|
|
3217
3217
|
"kind": "Class",
|
|
3218
3218
|
"canonicalReference": "@genesislcap/grid-tabulator!GridTabulator:class",
|
|
3219
|
-
"docComment": "/**\n * @tagname\n *\n * %%prefix%%-grid-tabulator\n *\n * @alpha\n */\n",
|
|
3219
|
+
"docComment": "/**\n * @tagname\n *\n * %%prefix%%-grid-tabulator\n *\n * @fires\n *\n * gridReady - Fired when the Tabulator instance is ready (detail is the Tabulator instance)\n *\n * @alpha\n */\n",
|
|
3220
3220
|
"excerptTokens": [
|
|
3221
3221
|
{
|
|
3222
3222
|
"kind": "Content",
|
|
@@ -4766,7 +4766,7 @@
|
|
|
4766
4766
|
{
|
|
4767
4767
|
"kind": "Class",
|
|
4768
4768
|
"canonicalReference": "@genesislcap/grid-tabulator!GridTabulatorClientSideDatasource:class",
|
|
4769
|
-
"docComment": "/**\n * The Genesis Datasource element, for client-side data fetching and used exclusively by the GridTabulator element.\n *\n * @alpha\n */\n",
|
|
4769
|
+
"docComment": "/**\n * The Genesis Datasource element, for client-side data fetching and used exclusively by the GridTabulator element.\n *\n * @fires\n *\n * gridTabulator:error - Fired when a datasource error occurs\n *\n * @fires\n *\n * dataInit - Fired when tabulator data is initialized\n *\n * @fires\n *\n * sizeChanged - Fired when layout size changes\n *\n * @alpha\n */\n",
|
|
4770
4770
|
"excerptTokens": [
|
|
4771
4771
|
{
|
|
4772
4772
|
"kind": "Content",
|
package/dist/grid-tabulator.d.ts
CHANGED
|
@@ -537,6 +537,8 @@ export declare enum GridCSSVars {
|
|
|
537
537
|
/**
|
|
538
538
|
* @alpha
|
|
539
539
|
* @tagname %%prefix%%-grid-tabulator
|
|
540
|
+
*
|
|
541
|
+
* @fires gridReady - Fired when the Tabulator instance is ready (detail is the Tabulator instance)
|
|
540
542
|
*/
|
|
541
543
|
export declare class GridTabulator extends GridTabulator_base {
|
|
542
544
|
grid: TabulatorFull | undefined;
|
|
@@ -1121,6 +1123,10 @@ export declare enum GridTabulatorCellRendererTypes {
|
|
|
1121
1123
|
/**
|
|
1122
1124
|
* The Genesis Datasource element, for client-side data fetching and used exclusively by the GridTabulator element.
|
|
1123
1125
|
* @alpha
|
|
1126
|
+
*
|
|
1127
|
+
* @fires gridTabulator:error - Fired when a datasource error occurs
|
|
1128
|
+
* @fires dataInit - Fired when tabulator data is initialized
|
|
1129
|
+
* @fires sizeChanged - Fired when layout size changes
|
|
1124
1130
|
*/
|
|
1125
1131
|
export declare class GridTabulatorClientSideDatasource extends GridTabulatorClientSideDatasource_base {
|
|
1126
1132
|
auth: Auth;
|
|
@@ -1670,8 +1676,12 @@ declare const GridTabulatorClientSideDatasource_base: (new (...args: any[]) => {
|
|
|
1670
1676
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1671
1677
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
1672
1678
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1673
|
-
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options
|
|
1674
|
-
|
|
1679
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options
|
|
1680
|
+
/**
|
|
1681
|
+
* Whether to keep column definitions when clearing row data
|
|
1682
|
+
*/
|
|
1683
|
+
? /**
|
|
1684
|
+
* Whether to keep column definitions when clearing row data
|
|
1675
1685
|
*/: boolean | EventListenerOptions): void;
|
|
1676
1686
|
readonly attributes: NamedNodeMap;
|
|
1677
1687
|
get classList(): DOMTokenList;
|
package/dist/react.cjs
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AUTO-GENERATED FILE - DO NOT EDIT.
|
|
3
|
+
* Generated from custom-elements manifest.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
'use strict';
|
|
7
|
+
|
|
8
|
+
const { provideReactWrapper } = require('@microsoft/fast-react-wrapper');
|
|
9
|
+
const React = require('react');
|
|
10
|
+
const { GridTabulatorCell: GridTabulatorCellWC } = require('./esm/cell/cell.js');
|
|
11
|
+
const { GridTabulatorColumn: GridTabulatorColumnWC } = require('./esm/column/column.js');
|
|
12
|
+
const { GridTabulatorClientSideDatasource: GridTabulatorClientSideDatasourceWC } = require('./esm/datasource/client-side.datasource.js');
|
|
13
|
+
const { GridTabulator: GridTabulatorWC } = require('./esm/grid-tabulator.js');
|
|
14
|
+
|
|
15
|
+
const { wrap } = provideReactWrapper(React);
|
|
16
|
+
|
|
17
|
+
const GridTabulator = wrap(GridTabulatorWC, {
|
|
18
|
+
events: {
|
|
19
|
+
onGridReady: 'gridReady',
|
|
20
|
+
},
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
const GridTabulatorCell = wrap(GridTabulatorCellWC);
|
|
24
|
+
|
|
25
|
+
const GridTabulatorColumn = wrap(GridTabulatorColumnWC);
|
|
26
|
+
|
|
27
|
+
const GridTabulatorClientSideDatasource = wrap(GridTabulatorClientSideDatasourceWC, {
|
|
28
|
+
events: {
|
|
29
|
+
onGridTabulatorError: 'gridTabulator:error',
|
|
30
|
+
onDataInit: 'dataInit',
|
|
31
|
+
onSizeChanged: 'sizeChanged',
|
|
32
|
+
},
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
module.exports = {
|
|
36
|
+
GridTabulator,
|
|
37
|
+
GridTabulatorCell,
|
|
38
|
+
GridTabulatorColumn,
|
|
39
|
+
GridTabulatorClientSideDatasource,
|
|
40
|
+
};
|
package/dist/react.mjs
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AUTO-GENERATED FILE - DO NOT EDIT.
|
|
3
|
+
* Generated from custom-elements manifest.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { provideReactWrapper } from '@microsoft/fast-react-wrapper';
|
|
7
|
+
import React from 'react';
|
|
8
|
+
import { GridTabulatorCell as GridTabulatorCellWC } from './esm/cell/cell.js';
|
|
9
|
+
import { GridTabulatorColumn as GridTabulatorColumnWC } from './esm/column/column.js';
|
|
10
|
+
import { GridTabulatorClientSideDatasource as GridTabulatorClientSideDatasourceWC } from './esm/datasource/client-side.datasource.js';
|
|
11
|
+
import { GridTabulator as GridTabulatorWC } from './esm/grid-tabulator.js';
|
|
12
|
+
|
|
13
|
+
const { wrap } = provideReactWrapper(React);
|
|
14
|
+
|
|
15
|
+
export const GridTabulator = wrap(GridTabulatorWC, {
|
|
16
|
+
events: {
|
|
17
|
+
onGridReady: 'gridReady',
|
|
18
|
+
},
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
export const GridTabulatorCell = wrap(GridTabulatorCellWC);
|
|
22
|
+
|
|
23
|
+
export const GridTabulatorColumn = wrap(GridTabulatorColumnWC);
|
|
24
|
+
|
|
25
|
+
export const GridTabulatorClientSideDatasource = wrap(GridTabulatorClientSideDatasourceWC, {
|
|
26
|
+
events: {
|
|
27
|
+
onGridTabulatorError: 'gridTabulator:error',
|
|
28
|
+
onDataInit: 'dataInit',
|
|
29
|
+
onSizeChanged: 'sizeChanged',
|
|
30
|
+
},
|
|
31
|
+
});
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genesislcap/grid-tabulator",
|
|
3
3
|
"description": "Genesis Foundation Grid Tabulator",
|
|
4
|
-
"version": "14.
|
|
4
|
+
"version": "14.419.1",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -41,20 +41,20 @@
|
|
|
41
41
|
}
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@genesislcap/foundation-testing": "14.
|
|
45
|
-
"@genesislcap/genx": "14.
|
|
46
|
-
"@genesislcap/rollup-builder": "14.
|
|
47
|
-
"@genesislcap/ts-builder": "14.
|
|
48
|
-
"@genesislcap/uvu-playwright-builder": "14.
|
|
49
|
-
"@genesislcap/vite-builder": "14.
|
|
50
|
-
"@genesislcap/webpack-builder": "14.
|
|
44
|
+
"@genesislcap/foundation-testing": "14.419.1",
|
|
45
|
+
"@genesislcap/genx": "14.419.1",
|
|
46
|
+
"@genesislcap/rollup-builder": "14.419.1",
|
|
47
|
+
"@genesislcap/ts-builder": "14.419.1",
|
|
48
|
+
"@genesislcap/uvu-playwright-builder": "14.419.1",
|
|
49
|
+
"@genesislcap/vite-builder": "14.419.1",
|
|
50
|
+
"@genesislcap/webpack-builder": "14.419.1",
|
|
51
51
|
"@types/tabulator-tables": "6.2.6"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@genesislcap/foundation-comms": "14.
|
|
55
|
-
"@genesislcap/foundation-logger": "14.
|
|
56
|
-
"@genesislcap/foundation-ui": "14.
|
|
57
|
-
"@genesislcap/foundation-utils": "14.
|
|
54
|
+
"@genesislcap/foundation-comms": "14.419.1",
|
|
55
|
+
"@genesislcap/foundation-logger": "14.419.1",
|
|
56
|
+
"@genesislcap/foundation-ui": "14.419.1",
|
|
57
|
+
"@genesislcap/foundation-utils": "14.419.1",
|
|
58
58
|
"@microsoft/fast-colors": "5.3.1",
|
|
59
59
|
"@microsoft/fast-components": "2.30.6",
|
|
60
60
|
"@microsoft/fast-element": "1.14.0",
|
|
@@ -64,6 +64,7 @@
|
|
|
64
64
|
"rxjs": "^7.5.4"
|
|
65
65
|
},
|
|
66
66
|
"peerDependencies": {
|
|
67
|
+
"@microsoft/fast-react-wrapper": ">=0.3.0",
|
|
67
68
|
"tabulator-tables": "6.3.1"
|
|
68
69
|
},
|
|
69
70
|
"repository": {
|
|
@@ -75,5 +76,16 @@
|
|
|
75
76
|
"access": "public"
|
|
76
77
|
},
|
|
77
78
|
"customElements": "dist/custom-elements.json",
|
|
78
|
-
"
|
|
79
|
+
"exports": {
|
|
80
|
+
".": {
|
|
81
|
+
"types": "./dist/dts/index.d.ts",
|
|
82
|
+
"default": "./dist/esm/index.js"
|
|
83
|
+
},
|
|
84
|
+
"./react": {
|
|
85
|
+
"types": "./dist/dts/react.d.ts",
|
|
86
|
+
"import": "./dist/react.mjs",
|
|
87
|
+
"require": "./dist/react.cjs"
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
"gitHead": "e4880f9a62bd7ebb0a0e4798c8dfdd98de5c6e14"
|
|
79
91
|
}
|