@spectric/ui 0.0.12 → 0.0.14
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/README.MD +1 -1
- package/dist/classes/DisposibleElement.d.ts +2 -2
- package/dist/components/Button.d.ts +4 -4
- package/dist/components/pagination/pagination.d.ts +1 -0
- package/dist/components/table/cell.d.ts +4 -3
- package/dist/components/table/table.d.ts +6 -2
- package/dist/components/tooltip/tooltip.d.ts +1 -1
- package/dist/custom-elements.json +16 -8
- package/dist/index.es.js +1629 -1579
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +90 -86
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/classes/DisposibleElement.ts +8 -8
- package/src/components/Button.ts +7 -9
- package/src/components/pagination/pagination.ts +14 -1
- package/src/components/table/cell.ts +33 -31
- package/src/components/table/header.ts +8 -4
- package/src/components/table/sorting.ts +2 -2
- package/src/components/table/table.css +2 -0
- package/src/components/table/table.ts +16 -7
- package/src/components/tooltip/tooltip.ts +7 -2
package/README.MD
CHANGED
|
@@ -14,8 +14,8 @@ export declare class DisposableElement extends LitElement {
|
|
|
14
14
|
* @param event The event name
|
|
15
15
|
* @param handler The event handler
|
|
16
16
|
*/
|
|
17
|
-
addDisposableListener<K extends keyof GlobalEventHandlersEventMap>(target: DisposableTarget, event: K, handler: (event: GlobalEventHandlersEventMap[K]) => void): void;
|
|
18
|
-
addDisposableListener<K extends keyof SpectricGlobalEvents>(target: DisposableTarget, event: K, handler: SpectricGlobalEvents[K]): void;
|
|
17
|
+
addDisposableListener<K extends keyof GlobalEventHandlersEventMap>(target: DisposableTarget, event: K, handler: (event: GlobalEventHandlersEventMap[K]) => void, options?: AddEventListenerOptions): void;
|
|
18
|
+
addDisposableListener<K extends keyof SpectricGlobalEvents>(target: DisposableTarget, event: K, handler: SpectricGlobalEvents[K], options?: AddEventListenerOptions): void;
|
|
19
19
|
registerDisposable<T extends IDisposable>(o: T): T;
|
|
20
20
|
connectedCallback(): void;
|
|
21
21
|
disconnectedCallback(): void;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { CSSResultGroup
|
|
1
|
+
import { CSSResultGroup } from 'lit';
|
|
2
2
|
import { HTMLElementTagWithEvents, ReactElementWithPropsAndEvents } from './types';
|
|
3
3
|
import { DomRenderable } from './table';
|
|
4
4
|
import { TooltipPostionsTypes } from './tooltip';
|
|
5
|
+
import { DisposableElement } from '../classes/DisposibleElement';
|
|
5
6
|
export declare enum ButtonSizes {
|
|
6
7
|
large = "large",
|
|
7
8
|
medium = "medium",
|
|
@@ -31,7 +32,7 @@ export interface ButtonProps {
|
|
|
31
32
|
tooltip?: DomRenderable;
|
|
32
33
|
tooltipPosition?: TooltipPostionsTypes;
|
|
33
34
|
}
|
|
34
|
-
export declare class SpectricButton extends
|
|
35
|
+
export declare class SpectricButton extends DisposableElement implements ButtonProps {
|
|
35
36
|
static styles?: CSSResultGroup | undefined;
|
|
36
37
|
variant: 'primary' | 'secondary' | 'text';
|
|
37
38
|
disabled: boolean;
|
|
@@ -42,8 +43,7 @@ export declare class SpectricButton extends LitElement implements ButtonProps {
|
|
|
42
43
|
icon: boolean;
|
|
43
44
|
tooltip?: DomRenderable;
|
|
44
45
|
tooltipPosition?: TooltipPostionsTypes;
|
|
45
|
-
|
|
46
|
-
disconnectedCallback(): void;
|
|
46
|
+
constructor();
|
|
47
47
|
private _onClick;
|
|
48
48
|
protected render(): unknown;
|
|
49
49
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { LitElement, PropertyValues } from 'lit';
|
|
2
2
|
import { HTMLElementTagWithEvents, ReactElementWithPropsAndEvents } from '../types';
|
|
3
3
|
import { ColumnSettings, TableElement } from './table';
|
|
4
|
+
import { StyleInfo } from 'lit/directives/style-map.js';
|
|
4
5
|
export declare const TableCellElementTag = "spectric-table-cell";
|
|
5
6
|
interface CellProps<T> {
|
|
6
7
|
column: ColumnSettings<T>;
|
|
@@ -21,11 +22,11 @@ export declare class TableCellElement<T> extends LitElement implements CellProps
|
|
|
21
22
|
column: ColumnSettings<T>;
|
|
22
23
|
columns: ColumnSettings<T>[];
|
|
23
24
|
table: TableElement<T>;
|
|
24
|
-
styleRules: CSSStyleDeclaration;
|
|
25
25
|
td: HTMLTableCellElement;
|
|
26
|
-
|
|
27
|
-
protected updated(_changedProperties: PropertyValues): void;
|
|
26
|
+
styleRules: StyleInfo;
|
|
28
27
|
protected createRenderRoot(): HTMLElement | DocumentFragment;
|
|
28
|
+
protected updated(_changedProperties: PropertyValues): void;
|
|
29
|
+
_emitFilter(filter: FilterEvent<T>): void;
|
|
29
30
|
_handleFilterOut: () => void;
|
|
30
31
|
_handleFilterFor: () => void;
|
|
31
32
|
protected render(): unknown;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LitElement, PropertyValues, TemplateResult } from 'lit';
|
|
2
2
|
import { HTMLElementTagWithEvents, ReactElementWithPropsAndEvents } from '../types';
|
|
3
|
-
import { PaginationProps } from '../pagination';
|
|
3
|
+
import { PaginationChangeProps, PaginationProps } from '../pagination';
|
|
4
4
|
import { FilterEvent } from './cell';
|
|
5
5
|
export declare const TableElementTag = "spectric-table";
|
|
6
6
|
export type { TableProps, TableEvents };
|
|
@@ -17,7 +17,7 @@ export declare enum TableSortOption {
|
|
|
17
17
|
export type TableSortOptionTypes = `${TableSortOption}`;
|
|
18
18
|
export declare enum TableSortDirection {
|
|
19
19
|
ascending = "ascending",
|
|
20
|
-
|
|
20
|
+
descending = "descending",
|
|
21
21
|
none = "none"
|
|
22
22
|
}
|
|
23
23
|
export type TableSortDirectionTypes = `${TableSortDirection}`;
|
|
@@ -78,13 +78,17 @@ export declare class TableElement<T> extends LitElement implements TableProps<T>
|
|
|
78
78
|
private __DO_NOT_USE_filter;
|
|
79
79
|
private selected;
|
|
80
80
|
protected createRenderRoot(): HTMLElement | DocumentFragment;
|
|
81
|
+
deselectAll(): void;
|
|
82
|
+
selectAll(): void;
|
|
81
83
|
_handleSelectAllChange: (e: DomEvent<HTMLInputElement>) => void;
|
|
82
84
|
protected update(changedProperties: PropertyValues): void;
|
|
83
85
|
protected render(): unknown;
|
|
84
86
|
}
|
|
85
87
|
interface TableEvents {
|
|
86
88
|
'change': (event: CustomEvent<TableDataOptions<any>>) => void;
|
|
89
|
+
'paginationChange': (event: CustomEvent<PaginationChangeProps>) => void;
|
|
87
90
|
'filter': (event: CustomEvent<FilterEvent<any>>) => void;
|
|
91
|
+
'sortChange': (event: CustomEvent<ColumnSettings<any>>) => void;
|
|
88
92
|
}
|
|
89
93
|
declare global {
|
|
90
94
|
interface HTMLElementTagNameMap {
|
|
@@ -71,7 +71,7 @@ export declare class TooltipElement extends DisposableElement implements Tooltip
|
|
|
71
71
|
private showToolTip;
|
|
72
72
|
private applyStyle;
|
|
73
73
|
private positionTooltip;
|
|
74
|
-
protected render():
|
|
74
|
+
protected render(): import('lit-html').TemplateResult<1>;
|
|
75
75
|
}
|
|
76
76
|
interface TooltipEvents {
|
|
77
77
|
}
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
},
|
|
34
34
|
{
|
|
35
35
|
"name": "spectric-bit-display",
|
|
36
|
-
"description": "Events:\n\n * `bitMousemove` {} - emits BitDisplayMouseEvent on mousemove over the canvas\n\n * `bitClick` {} - emits BitDisplayMouseEvent on mouse click on the canvas\n\n * `bitDblclick` {} - emits BitDisplayMouseEvent on mouse double click on the canvas\n\n * `bitMousedown` {} - emits BitDisplayMouseEvent on mouse down onthe canvas\n\n * `bitMouseup` {} - emits BitDisplayMouseEvent on mouse up on the canvas\n\n * `bitContextmenu` {} - emits BitDisplayMouseEvent on mouse right click on the canvas\n\nAttributes:\n\n * `frameWidth` {`number`} - Bits per line\n\n * `scale` {`number`} - How many pixels per bit\n\n * `width` {`number`} - Width of the display canvas\n\n * `height` {`number`} - Height of the display canvas\n\nProperties:\n\n * `styles` {`CSSResult`} - \n\n * `state` {`{ scale?: number | undefined; }`} - \n\n * `yStart` {`number`} - \n\n * `xStart` {`number`} - \n\n * `_canvas` {`Promise<HTMLCanvasElement>`} - \n\n * `refs` {`{ viewport: Ref<HTMLDivElement>; canvas: Ref<HTMLCanvasElement>; scrollDiv: Ref<HTMLDivElement>; }`} - \n\n * `_bitArray` - \n\n * `color` {`string`} - \n\n * `onThemeChange` - \n\n * `onResize` - \n\n * `handleScroll` - \n\n * `resizeObserver` {`ResizeObserver & IDisposable`} - \n\n * `arrayBuffer` {`ArrayBuffer`} - Array buffer to display\n\n * `frameWidth` {`number`} - Bits per line\n\n * `scale` {`number`} - How many pixels per bit\n\n * `width` {`number`} - Width of the display canvas\n\n * `height` {`number`} - Height of the display canvas\n\n * `_disposables` {`Set<IDisposable>`} - \n\n * `_isDisposed` {`boolean`} - \n\n * `_disposableListeners` {`{ target: DisposableTarget; event: string; handler: any; }[]`} - \n\n * `_connected` {`boolean`} - ",
|
|
36
|
+
"description": "Events:\n\n * `bitMousemove` {} - emits BitDisplayMouseEvent on mousemove over the canvas\n\n * `bitClick` {} - emits BitDisplayMouseEvent on mouse click on the canvas\n\n * `bitDblclick` {} - emits BitDisplayMouseEvent on mouse double click on the canvas\n\n * `bitMousedown` {} - emits BitDisplayMouseEvent on mouse down onthe canvas\n\n * `bitMouseup` {} - emits BitDisplayMouseEvent on mouse up on the canvas\n\n * `bitContextmenu` {} - emits BitDisplayMouseEvent on mouse right click on the canvas\n\nAttributes:\n\n * `frameWidth` {`number`} - Bits per line\n\n * `scale` {`number`} - How many pixels per bit\n\n * `width` {`number`} - Width of the display canvas\n\n * `height` {`number`} - Height of the display canvas\n\nProperties:\n\n * `styles` {`CSSResult`} - \n\n * `state` {`{ scale?: number | undefined; }`} - \n\n * `yStart` {`number`} - \n\n * `xStart` {`number`} - \n\n * `_canvas` {`Promise<HTMLCanvasElement>`} - \n\n * `refs` {`{ viewport: Ref<HTMLDivElement>; canvas: Ref<HTMLCanvasElement>; scrollDiv: Ref<HTMLDivElement>; }`} - \n\n * `_bitArray` - \n\n * `color` {`string`} - \n\n * `onThemeChange` - \n\n * `onResize` - \n\n * `handleScroll` - \n\n * `resizeObserver` {`ResizeObserver & IDisposable`} - \n\n * `arrayBuffer` {`ArrayBuffer`} - Array buffer to display\n\n * `frameWidth` {`number`} - Bits per line\n\n * `scale` {`number`} - How many pixels per bit\n\n * `width` {`number`} - Width of the display canvas\n\n * `height` {`number`} - Height of the display canvas\n\n * `_disposables` {`Set<IDisposable>`} - \n\n * `_isDisposed` {`boolean`} - \n\n * `_disposableListeners` {`{ target: DisposableTarget; event: string; handler: any; options?: AddEventListenerOptions | undefined; }[]`} - \n\n * `_connected` {`boolean`} - ",
|
|
37
37
|
"attributes": [
|
|
38
38
|
{
|
|
39
39
|
"name": "frameWidth",
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
},
|
|
80
80
|
{
|
|
81
81
|
"name": "spectric-button",
|
|
82
|
-
"description": "Events:\n\n * `click` {`CustomEvent<MouseEvent>`} - \n\nAttributes:\n\n * `variant` {`\"text\" | \"primary\" | \"secondary\"`} - Is this the principal call to action on the page?\n\n * `backgroundColor` {`string | undefined`} - What background color to use\n\n * `size` {`\"large\" | \"medium\" | \"small\" | \"xsmall\" | \"xxsmall\" | \"tiny\"`} - How large should the button be?\n\n * `label` {`string | undefined`} - \n\n * `disabled` {`boolean`} - \n\n * `danger` {`boolean`} - \n\n * `icon` {`boolean`} - \n\n * `tooltip` {`DomRenderable | undefined`} - \n\n * `tooltipPosition` {`\"top\" | \"bottom\" | \"left\" | \"right\" | \"mouse\" | undefined`} - \n\nProperties:\n\n * `styles` {`CSSResultGroup | undefined`} - \n\n * `_onClick` - \n\n * `variant` {`\"text\" | \"primary\" | \"secondary\"`} - Is this the principal call to action on the page?\n\n * `backgroundColor` {`string | undefined`} - What background color to use\n\n * `size` {`\"large\" | \"medium\" | \"small\" | \"xsmall\" | \"xxsmall\" | \"tiny\"`} - How large should the button be?\n\n * `label` {`string | undefined`} - \n\n * `disabled` {`boolean`} - \n\n * `danger` {`boolean`} - \n\n * `icon` {`boolean`} - \n\n * `tooltip` {`DomRenderable | undefined`} - \n\n * `tooltipPosition` {`\"top\" | \"bottom\" | \"left\" | \"right\" | \"mouse\" | undefined`} - ",
|
|
82
|
+
"description": "Events:\n\n * `click` {`CustomEvent<MouseEvent>`} - \n\nAttributes:\n\n * `variant` {`\"text\" | \"primary\" | \"secondary\"`} - Is this the principal call to action on the page?\n\n * `backgroundColor` {`string | undefined`} - What background color to use\n\n * `size` {`\"large\" | \"medium\" | \"small\" | \"xsmall\" | \"xxsmall\" | \"tiny\"`} - How large should the button be?\n\n * `label` {`string | undefined`} - \n\n * `disabled` {`boolean`} - \n\n * `danger` {`boolean`} - \n\n * `icon` {`boolean`} - \n\n * `tooltip` {`DomRenderable | undefined`} - \n\n * `tooltipPosition` {`\"top\" | \"bottom\" | \"left\" | \"right\" | \"mouse\" | undefined`} - \n\nProperties:\n\n * `styles` {`CSSResultGroup | undefined`} - \n\n * `_onClick` - \n\n * `variant` {`\"text\" | \"primary\" | \"secondary\"`} - Is this the principal call to action on the page?\n\n * `backgroundColor` {`string | undefined`} - What background color to use\n\n * `size` {`\"large\" | \"medium\" | \"small\" | \"xsmall\" | \"xxsmall\" | \"tiny\"`} - How large should the button be?\n\n * `label` {`string | undefined`} - \n\n * `disabled` {`boolean`} - \n\n * `danger` {`boolean`} - \n\n * `icon` {`boolean`} - \n\n * `tooltip` {`DomRenderable | undefined`} - \n\n * `tooltipPosition` {`\"top\" | \"bottom\" | \"left\" | \"right\" | \"mouse\" | undefined`} - \n\n * `_disposables` {`Set<IDisposable>`} - \n\n * `_isDisposed` {`boolean`} - \n\n * `_disposableListeners` {`{ target: DisposableTarget; event: string; handler: any; options?: AddEventListenerOptions | undefined; }[]`} - \n\n * `_connected` {`boolean`} - ",
|
|
83
83
|
"attributes": [
|
|
84
84
|
{
|
|
85
85
|
"name": "variant",
|
|
@@ -1864,7 +1864,7 @@
|
|
|
1864
1864
|
},
|
|
1865
1865
|
{
|
|
1866
1866
|
"name": "spectric-pagination",
|
|
1867
|
-
"description": "Pagination Element\n\nEvents:\n\n * `change` {`CustomEvent<PaginationChangeProps>`} - \n\nAttributes:\n\n * `size` {`\"large\" | \"medium\" | \"small\" | \"xsmall\" | \"xxsmall\" | \"tiny\"`} - Size of the pagination buttons\n\n * `totalItems` {`number | undefined`} - \n\n * `pageSizeOptions` {`number[]`} - \n\n * `page` {`number`} - \n\n * `pageSize` {`number`} - \n\nProperties:\n\n * `_handlePageUp` - \n\n * `_handlePageDown` - \n\n * `_handleSizeChange` - \n\n * `_emitChange` - \n\n * `size` {`\"large\" | \"medium\" | \"small\" | \"xsmall\" | \"xxsmall\" | \"tiny\"`} - Size of the pagination buttons\n\n * `totalItems` {`number | undefined`} - \n\n * `pageSizeOptions` {`number[]`} - \n\n * `page` {`number`} - \n\n * `pageSize` {`number`} - ",
|
|
1867
|
+
"description": "Pagination Element\n\nEvents:\n\n * `change` {`CustomEvent<PaginationChangeProps>`} - \n\nAttributes:\n\n * `size` {`\"large\" | \"medium\" | \"small\" | \"xsmall\" | \"xxsmall\" | \"tiny\"`} - Size of the pagination buttons\n\n * `totalItems` {`number | undefined`} - \n\n * `pageSizeOptions` {`number[]`} - \n\n * `page` {`number`} - \n\n * `pageSize` {`number`} - \n\nProperties:\n\n * `select` {`HTMLSelectElement | undefined`} - \n\n * `_handlePageUp` - \n\n * `_handlePageDown` - \n\n * `_handleSizeChange` - \n\n * `_emitChange` - \n\n * `size` {`\"large\" | \"medium\" | \"small\" | \"xsmall\" | \"xxsmall\" | \"tiny\"`} - Size of the pagination buttons\n\n * `totalItems` {`number | undefined`} - \n\n * `pageSizeOptions` {`number[]`} - \n\n * `page` {`number`} - \n\n * `pageSize` {`number`} - ",
|
|
1868
1868
|
"attributes": [
|
|
1869
1869
|
{
|
|
1870
1870
|
"name": "size",
|
|
@@ -1955,7 +1955,7 @@
|
|
|
1955
1955
|
},
|
|
1956
1956
|
{
|
|
1957
1957
|
"name": "spectric-splitview",
|
|
1958
|
-
"description": "Split view will take a container and split it horizontally or vertically. This element can only have two children.\nIf you supply the **id** attribute on the split view element it will save and load the state keeping the user defined position\n\nEvents:\n\n * `change` {`CustomEvent<SplitViewProps>`} - CustomEvent\\<SplitViewProps\\> Fired every time there is a change to the split percentage\n\nSlots:\n\n * ` ` {} - Element can only take 2 HTMLElements.\n\nAttributes:\n\n * `orientation` {`Orientations`} - Controls the orientation of the splitter handle\n\n * `percentage` {`number | undefined`} - the percentage to split the view default: 50\n\n * `invisible` {`boolean | undefined`} - Should the splitter handle be invisible?\n\n * `min` {`number`} - Clamps the minimum split percentage default: 10\n\n * `max` {`number`} - Clamps the maximum split percentage default: 90\n\n * `useSavedState` {`boolean | undefined`} - save and load split state to localstorage splitter must have an id attribute default: true\n\nProperties:\n\n * `styles` {`CSSResult`} - \n\n * `isDragging` {`boolean`} - \n\n * `_error` {`string | false`} - \n\n * `_splitter` {`Promise<HTMLElement>`} - \n\n * `_panel1` {`HTMLSlotElement`} - \n\n * `_panel2` {`HTMLSlotElement`} - \n\n * `_emitChange` - \n\n * `_onMouseMove` - \n\n * `_assignSlot` - \n\n * `orientation` {`Orientations`} - Controls the orientation of the splitter handle\n\n * `percentage` {`number | undefined`} - the percentage to split the view default: 50\n\n * `invisible` {`boolean | undefined`} - Should the splitter handle be invisible?\n\n * `min` {`number`} - Clamps the minimum split percentage default: 10\n\n * `max` {`number`} - Clamps the maximum split percentage default: 90\n\n * `useSavedState` {`boolean | undefined`} - save and load split state to localstorage splitter must have an id attribute default: true\n\n * `_disposables` {`Set<IDisposable>`} - \n\n * `_isDisposed` {`boolean`} - \n\n * `_disposableListeners` {`{ target: DisposableTarget; event: string; handler: any; }[]`} - \n\n * `_connected` {`boolean`} - ",
|
|
1958
|
+
"description": "Split view will take a container and split it horizontally or vertically. This element can only have two children.\nIf you supply the **id** attribute on the split view element it will save and load the state keeping the user defined position\n\nEvents:\n\n * `change` {`CustomEvent<SplitViewProps>`} - CustomEvent\\<SplitViewProps\\> Fired every time there is a change to the split percentage\n\nSlots:\n\n * ` ` {} - Element can only take 2 HTMLElements.\n\nAttributes:\n\n * `orientation` {`Orientations`} - Controls the orientation of the splitter handle\n\n * `percentage` {`number | undefined`} - the percentage to split the view default: 50\n\n * `invisible` {`boolean | undefined`} - Should the splitter handle be invisible?\n\n * `min` {`number`} - Clamps the minimum split percentage default: 10\n\n * `max` {`number`} - Clamps the maximum split percentage default: 90\n\n * `useSavedState` {`boolean | undefined`} - save and load split state to localstorage splitter must have an id attribute default: true\n\nProperties:\n\n * `styles` {`CSSResult`} - \n\n * `isDragging` {`boolean`} - \n\n * `_error` {`string | false`} - \n\n * `_splitter` {`Promise<HTMLElement>`} - \n\n * `_panel1` {`HTMLSlotElement`} - \n\n * `_panel2` {`HTMLSlotElement`} - \n\n * `_emitChange` - \n\n * `_onMouseMove` - \n\n * `_assignSlot` - \n\n * `orientation` {`Orientations`} - Controls the orientation of the splitter handle\n\n * `percentage` {`number | undefined`} - the percentage to split the view default: 50\n\n * `invisible` {`boolean | undefined`} - Should the splitter handle be invisible?\n\n * `min` {`number`} - Clamps the minimum split percentage default: 10\n\n * `max` {`number`} - Clamps the maximum split percentage default: 90\n\n * `useSavedState` {`boolean | undefined`} - save and load split state to localstorage splitter must have an id attribute default: true\n\n * `_disposables` {`Set<IDisposable>`} - \n\n * `_isDisposed` {`boolean`} - \n\n * `_disposableListeners` {`{ target: DisposableTarget; event: string; handler: any; options?: AddEventListenerOptions | undefined; }[]`} - \n\n * `_connected` {`boolean`} - ",
|
|
1959
1959
|
"attributes": [
|
|
1960
1960
|
{
|
|
1961
1961
|
"name": "orientation",
|
|
@@ -2005,7 +2005,7 @@
|
|
|
2005
2005
|
},
|
|
2006
2006
|
{
|
|
2007
2007
|
"name": "spectric-table-cell",
|
|
2008
|
-
"description": "Pagination Element\n\nEvents:\n\n * `filter` {`CustomEvent<FilterEvent<T>>`} - \n\nProperties:\n\n * `index` {`number`} - \n\n * `columns` {`ColumnSettings<T>[]`} - \n\n * `table` {`TableElement<T>`} - \n\n * `td` {`HTMLTableCellElement`} - \n\n * `
|
|
2008
|
+
"description": "Pagination Element\n\nEvents:\n\n * `filter` {`CustomEvent<FilterEvent<T>>`} - \n\nProperties:\n\n * `index` {`number`} - \n\n * `columns` {`ColumnSettings<T>[]`} - \n\n * `table` {`TableElement<T>`} - \n\n * `td` {`HTMLTableCellElement`} - \n\n * `styleRules` {`StyleInfo`} - \n\n * `_handleFilterOut` - \n\n * `_handleFilterFor` - \n\n * `column` {`ColumnSettings<T>`} - \n\n * `row` {`T`} - ",
|
|
2009
2009
|
"attributes": [
|
|
2010
2010
|
{
|
|
2011
2011
|
"name": "onfilter",
|
|
@@ -2025,7 +2025,7 @@
|
|
|
2025
2025
|
},
|
|
2026
2026
|
{
|
|
2027
2027
|
"name": "spectric-table",
|
|
2028
|
-
"description": "React example\n<iframe width=\"100%\" height=\"400px\" src=\"https://stackblitz.com/edit/react-ts-2ue7azag?ctl=1&embed=1&file=App.tsx&hideExplorer=1&hideNavigation=1\"/>\n\nEvents:\n\n * `change` {`CustomEvent<TableDataOptions<T>>`} - \n\n * `filter` {`CustomEvent<FilterEvent<T>>`} - \n\n * `selected` {`CustomEvent<T[]>`} - \n\nAttributes:\n\n * `select` {`\"none\" | \"multi\" | \"single\"`} - \n\n * `sort` {`\"multi\" | \"single\"`} - \n\n * `rowHeight` {`number`} - Needed for virtualization\n\nProperties:\n\n * `_handlePaginationChange` - \n\n * `_handleSortChange` - \n\n * `_emitChange` - \n\n * `__DO_NOT_USE_filter` - \n\n * `selected` {`T[]`} - \n\n * `_handleSelectAllChange` - \n\n * `data` {`T[]`} - \n\n * `select` {`\"none\" | \"multi\" | \"single\"`} - \n\n * `sort` {`\"multi\" | \"single\"`} - \n\n * `rowHeight` {`number`} - Needed for virtualization\n\n * `pagination` {`PaginationProps | undefined`} - \n\n * `columns` {`ColumnSettings<T>[]`} - ",
|
|
2028
|
+
"description": "React example\n<iframe width=\"100%\" height=\"400px\" src=\"https://stackblitz.com/edit/react-ts-2ue7azag?ctl=1&embed=1&file=App.tsx&hideExplorer=1&hideNavigation=1\"/>\n\nEvents:\n\n * `paginationChange` {`CustomEvent<PaginationChangeProps>`} - \n\n * `change` {`CustomEvent<TableDataOptions<T>>`} - \n\n * `filter` {`CustomEvent<FilterEvent<T>>`} - \n\n * `sortChange` {`CustomEvent<ColumnSettings<T>>`} - \n\n * `selected` {`CustomEvent<T[]>`} - \n\nAttributes:\n\n * `select` {`\"none\" | \"multi\" | \"single\"`} - \n\n * `sort` {`\"multi\" | \"single\"`} - \n\n * `rowHeight` {`number`} - Needed for virtualization\n\nProperties:\n\n * `_handlePaginationChange` - \n\n * `_handleSortChange` - \n\n * `_emitChange` - \n\n * `__DO_NOT_USE_filter` - \n\n * `selected` {`T[]`} - \n\n * `_handleSelectAllChange` - \n\n * `data` {`T[]`} - \n\n * `select` {`\"none\" | \"multi\" | \"single\"`} - \n\n * `sort` {`\"multi\" | \"single\"`} - \n\n * `rowHeight` {`number`} - Needed for virtualization\n\n * `pagination` {`PaginationProps | undefined`} - \n\n * `columns` {`ColumnSettings<T>[]`} - ",
|
|
2029
2029
|
"attributes": [
|
|
2030
2030
|
{
|
|
2031
2031
|
"name": "select",
|
|
@@ -2058,6 +2058,10 @@
|
|
|
2058
2058
|
"name": "rowHeight",
|
|
2059
2059
|
"description": "`rowHeight` {`number`} - Needed for virtualization\n\nProperty: rowHeight\n\nDefault: 25"
|
|
2060
2060
|
},
|
|
2061
|
+
{
|
|
2062
|
+
"name": "onpaginationChange",
|
|
2063
|
+
"description": "`paginationChange` {`CustomEvent<PaginationChangeProps>`} - "
|
|
2064
|
+
},
|
|
2061
2065
|
{
|
|
2062
2066
|
"name": "onchange",
|
|
2063
2067
|
"description": "`change` {`CustomEvent<TableDataOptions<T>>`} - "
|
|
@@ -2066,6 +2070,10 @@
|
|
|
2066
2070
|
"name": "onfilter",
|
|
2067
2071
|
"description": "`filter` {`CustomEvent<FilterEvent<T>>`} - "
|
|
2068
2072
|
},
|
|
2073
|
+
{
|
|
2074
|
+
"name": "onsortChange",
|
|
2075
|
+
"description": "`sortChange` {`CustomEvent<ColumnSettings<T>>`} - "
|
|
2076
|
+
},
|
|
2069
2077
|
{
|
|
2070
2078
|
"name": "onselected",
|
|
2071
2079
|
"description": "`selected` {`CustomEvent<T[]>`} - "
|
|
@@ -2074,7 +2082,7 @@
|
|
|
2074
2082
|
},
|
|
2075
2083
|
{
|
|
2076
2084
|
"name": "spectric-table-virtual-body",
|
|
2077
|
-
"description": "Table Body Element\n\nAttributes:\n\n * `startIndex` {`number`} - \n\nProperties:\n\n * `startIndex` {`number`} - \n\n * `table` {`TableElement<T>`} - \n\n * `columns` {`ColumnSettings<T>[]`} - \n\n * `data` {`T[]`} - \n\n * `rowHeight` {`number`} - \n\n * `_disposables` {`Set<IDisposable>`} - \n\n * `_isDisposed` {`boolean`} - \n\n * `_disposableListeners` {`{ target: DisposableTarget; event: string; handler: any; }[]`} - \n\n * `_connected` {`boolean`} - ",
|
|
2085
|
+
"description": "Table Body Element\n\nAttributes:\n\n * `startIndex` {`number`} - \n\nProperties:\n\n * `startIndex` {`number`} - \n\n * `table` {`TableElement<T>`} - \n\n * `columns` {`ColumnSettings<T>[]`} - \n\n * `data` {`T[]`} - \n\n * `rowHeight` {`number`} - \n\n * `_disposables` {`Set<IDisposable>`} - \n\n * `_isDisposed` {`boolean`} - \n\n * `_disposableListeners` {`{ target: DisposableTarget; event: string; handler: any; options?: AddEventListenerOptions | undefined; }[]`} - \n\n * `_connected` {`boolean`} - ",
|
|
2078
2086
|
"attributes": [
|
|
2079
2087
|
{
|
|
2080
2088
|
"name": "startIndex",
|
|
@@ -2084,7 +2092,7 @@
|
|
|
2084
2092
|
},
|
|
2085
2093
|
{
|
|
2086
2094
|
"name": "spectric-tooltip",
|
|
2087
|
-
"description": "Spectric tooltip will add a tooltip to any container\n\nAttributes:\n\n * `delay` {`number`} - How long you need to hover before the tooltip displays\n\n * `animationDuration` {`number`} - How long the fade in animation should run\n\n * `text` {`DomRenderable`} - Tooltip contents\n\n * `position` {`\"top\" | \"bottom\" | \"left\" | \"right\" | \"mouse\"`} - Where to anchor the tooltip\n\n * `maxWidth` {`number | undefined`} - Sets a max width for the contents you can disable this by setting to 0 or -1\n\nProperties:\n\n * `portalElement` {`HTMLDivElement`} - \n\n * `mouseLocation` {`{ left: number; top: number; } | undefined`} - \n\n * `styles` {`CSSResultGroup | undefined`} - \n\n * `timer` {`number | undefined`} - \n\n * `open` {`boolean`} - \n\n * `mouseframe` {`number | undefined`} - \n\n * `target` {`HTMLElement`} - \n\n * `_getMousePosition` - \n\n * `_hideTooltip` - \n\n * `showToolTip` - \n\n * `applyStyle` - \n\n * `positionTooltip` - \n\n * `delay` {`number`} - How long you need to hover before the tooltip displays\n\n * `animationDuration` {`number`} - How long the fade in animation should run\n\n * `text` {`DomRenderable`} - Tooltip contents\n\n * `position` {`\"top\" | \"bottom\" | \"left\" | \"right\" | \"mouse\"`} - Where to anchor the tooltip\n\n * `maxWidth` {`number | undefined`} - Sets a max width for the contents you can disable this by setting to 0 or -1\n\n * `portalTarget` {`HTMLElement`} - Container the tool tip will be attached to.\n\n * `triggerTarget` {`HTMLElement`} - The element that triggers the tooltip. This is used for special cases like in the shadow dom if you want to target a host element instead of the immediate parent element\n\n * `_disposables` {`Set<IDisposable>`} - \n\n * `_isDisposed` {`boolean`} - \n\n * `_disposableListeners` {`{ target: DisposableTarget; event: string; handler: any; }[]`} - \n\n * `_connected` {`boolean`} - ",
|
|
2095
|
+
"description": "Spectric tooltip will add a tooltip to any container\n\nAttributes:\n\n * `delay` {`number`} - How long you need to hover before the tooltip displays\n\n * `animationDuration` {`number`} - How long the fade in animation should run\n\n * `text` {`DomRenderable`} - Tooltip contents\n\n * `position` {`\"top\" | \"bottom\" | \"left\" | \"right\" | \"mouse\"`} - Where to anchor the tooltip\n\n * `maxWidth` {`number | undefined`} - Sets a max width for the contents you can disable this by setting to 0 or -1\n\nProperties:\n\n * `portalElement` {`HTMLDivElement`} - \n\n * `mouseLocation` {`{ left: number; top: number; } | undefined`} - \n\n * `styles` {`CSSResultGroup | undefined`} - \n\n * `timer` {`number | undefined`} - \n\n * `open` {`boolean`} - \n\n * `mouseframe` {`number | undefined`} - \n\n * `target` {`HTMLElement`} - \n\n * `_getMousePosition` - \n\n * `_hideTooltip` - \n\n * `showToolTip` - \n\n * `applyStyle` - \n\n * `positionTooltip` - \n\n * `delay` {`number`} - How long you need to hover before the tooltip displays\n\n * `animationDuration` {`number`} - How long the fade in animation should run\n\n * `text` {`DomRenderable`} - Tooltip contents\n\n * `position` {`\"top\" | \"bottom\" | \"left\" | \"right\" | \"mouse\"`} - Where to anchor the tooltip\n\n * `maxWidth` {`number | undefined`} - Sets a max width for the contents you can disable this by setting to 0 or -1\n\n * `portalTarget` {`HTMLElement`} - Container the tool tip will be attached to.\n\n * `triggerTarget` {`HTMLElement`} - The element that triggers the tooltip. This is used for special cases like in the shadow dom if you want to target a host element instead of the immediate parent element\n\n * `_disposables` {`Set<IDisposable>`} - \n\n * `_isDisposed` {`boolean`} - \n\n * `_disposableListeners` {`{ target: DisposableTarget; event: string; handler: any; options?: AddEventListenerOptions | undefined; }[]`} - \n\n * `_connected` {`boolean`} - ",
|
|
2088
2096
|
"attributes": [
|
|
2089
2097
|
{
|
|
2090
2098
|
"name": "delay",
|