@spectric/ui 0.0.15 → 0.0.17

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 (45) hide show
  1. package/dist/classes/DisposibleElement.d.ts +1 -0
  2. package/dist/classes/index.d.ts +2 -0
  3. package/dist/components/color_picker/ColorPicker.d.ts +59 -0
  4. package/dist/components/color_picker/index.d.ts +0 -0
  5. package/dist/components/index.d.ts +2 -0
  6. package/dist/components/input.d.ts +3 -1
  7. package/dist/components/table/body.d.ts +2 -2
  8. package/dist/components/table/cell.d.ts +5 -2
  9. package/dist/components/table/header.d.ts +9 -3
  10. package/dist/components/table/table.d.ts +18 -6
  11. package/dist/components/table/virtualBody.d.ts +2 -2
  12. package/dist/components/tooltip/popover.d.ts +85 -0
  13. package/dist/components/tooltip/tooltip.d.ts +14 -15
  14. package/dist/custom-elements.json +83 -8
  15. package/dist/index.d.ts +58 -0
  16. package/dist/index.es.js +2640 -2243
  17. package/dist/index.es.js.map +1 -1
  18. package/dist/index.umd.js +183 -132
  19. package/dist/index.umd.js.map +1 -1
  20. package/dist/style.css +1 -1
  21. package/dist/utils/index.d.ts +3 -0
  22. package/package.json +6 -2
  23. package/src/classes/DisposibleElement.ts +3 -0
  24. package/src/classes/index.ts +2 -0
  25. package/src/components/color_picker/ColorPicker.css +4 -0
  26. package/src/components/color_picker/ColorPicker.ts +244 -0
  27. package/src/components/color_picker/index.ts +1 -0
  28. package/src/components/index.ts +3 -1
  29. package/src/components/input.css +38 -1
  30. package/src/components/input.ts +34 -7
  31. package/src/components/table/__tests__/table.spec.ts +91 -0
  32. package/src/components/table/body.ts +2 -2
  33. package/src/components/table/cell.ts +34 -8
  34. package/src/components/table/header.css +54 -0
  35. package/src/components/table/header.ts +144 -49
  36. package/src/components/table/table.css +20 -33
  37. package/src/components/table/table.ts +50 -16
  38. package/src/components/table/virtualBody.ts +2 -2
  39. package/src/components/tooltip/popover.ts +221 -0
  40. package/src/components/tooltip/tooltip.css +21 -16
  41. package/src/components/tooltip/tooltip.ts +17 -124
  42. package/src/index.ts +8 -1
  43. package/src/stories/fixtures/ExampleContent.ts +3 -3
  44. package/src/stories/table.stories.ts +5 -5
  45. package/src/utils/index.ts +3 -0
@@ -3,6 +3,7 @@ export interface IDisposable {
3
3
  dispose(): void;
4
4
  }
5
5
  type DisposableTarget = HTMLElement | Promise<HTMLElement> | (() => HTMLElement);
6
+ export declare const getListeners: () => number;
6
7
  export declare class DisposableElement extends LitElement {
7
8
  private readonly _disposables;
8
9
  private _isDisposed;
@@ -0,0 +1,2 @@
1
+ export * from './BitArray';
2
+ export * from './DisposibleElement';
@@ -0,0 +1,59 @@
1
+ import { LitElement, PropertyValues, TemplateResult } from 'lit';
2
+ import { HTMLElementTagWithEvents, ReactElementWithPropsAndEvents } from '../types';
3
+ import { DomEvent } from '../table';
4
+ import { SpectricInput } from '../input';
5
+ export interface ColorPickerProps {
6
+ /**Color in hex*/
7
+ value?: string;
8
+ showAlpha?: boolean;
9
+ }
10
+ export declare class SpectricColorPicker extends LitElement implements ColorPickerProps {
11
+ value: string;
12
+ showAlpha: boolean;
13
+ private hue;
14
+ private alpha;
15
+ private saturation;
16
+ private lightness;
17
+ private canvas;
18
+ private original?;
19
+ /**is mouse down on saturation/light canvas? */
20
+ private sldown;
21
+ protected createRenderRoot(): HTMLElement | DocumentFragment;
22
+ protected update(changedProperties: PropertyValues): void;
23
+ private renderHueSaturationGrid;
24
+ _handleSaturationLightnessClick: (e: PointerEvent) => void;
25
+ _handleHueChange: (e: DomEvent<SpectricInput>) => void;
26
+ private updateValue;
27
+ _handleAlphaChange: (e: DomEvent<SpectricInput>) => void;
28
+ _handleApply: () => void;
29
+ _cancel: () => void;
30
+ _openPopover: () => Promise<void>;
31
+ protected getPopover(): TemplateResult;
32
+ protected render(): unknown;
33
+ }
34
+ export interface ColorPickerEventMap {
35
+ 'change': (event: CustomEvent<ColorPickerProps>) => void;
36
+ }
37
+ declare global {
38
+ interface HTMLElementTagNameMap {
39
+ "spectric-colorpicker": HTMLElementTagWithEvents<SpectricColorPicker, ColorPickerEventMap>;
40
+ }
41
+ namespace JSX {
42
+ interface IntrinsicElements {
43
+ /**
44
+ * {@link SpectricColorPicker}
45
+ */
46
+ "spectric-colorpicker": ReactElementWithPropsAndEvents<SpectricColorPicker, ColorPickerProps, ColorPickerEventMap>;
47
+ }
48
+ }
49
+ namespace React {
50
+ namespace JSX {
51
+ interface IntrinsicElements {
52
+ /**
53
+ * {@link SpectricColorPicker}
54
+ */
55
+ "spectric-colorpicker": ReactElementWithPropsAndEvents<SpectricColorPicker, ColorPickerProps, ColorPickerEventMap>;
56
+ }
57
+ }
58
+ }
59
+ }
File without changes
@@ -11,3 +11,5 @@ export * from './splitview';
11
11
  export * from './pagination';
12
12
  export * from './table';
13
13
  export * from './tooltip';
14
+ export * from './types';
15
+ export * from './color_picker';
@@ -12,7 +12,8 @@ export declare enum InputVariants {
12
12
  file = "file",//display drop area
13
13
  hidden = "hidden",//display drop area
14
14
  password = "password",
15
- checkbox = "checkbox"
15
+ checkbox = "checkbox",
16
+ range = "range"
16
17
  }
17
18
  type InputVariantsTypes = `${InputVariants}`;
18
19
  export interface InputProps {
@@ -135,6 +136,7 @@ export declare class SpectricInput extends LitElement implements InputProps {
135
136
  protected _input?: HTMLInputElement;
136
137
  private handleTogglePasswordVisibility;
137
138
  protected updated(changedProperties: PropertyValues): void;
139
+ _handleChange(e: Event): void;
138
140
  protected render(): unknown;
139
141
  }
140
142
  declare global {
@@ -1,6 +1,6 @@
1
1
  import { LitElement, PropertyValues } from 'lit';
2
2
  import { HTMLElementTagWithEvents, ReactElementWithPropsAndEvents } from '../types';
3
- import { ColumnSettings, TableElement } from './table';
3
+ import { ColumnSettings, SpectricTableElement } from './table';
4
4
  export declare const TableBodyElementTag = "spectric-table-body";
5
5
  interface BodyProps<T> {
6
6
  columns: ColumnSettings<T>[];
@@ -12,7 +12,7 @@ interface BodyProps<T> {
12
12
  export declare class TableBodyElement<T> extends LitElement implements BodyProps<T> {
13
13
  data: T[];
14
14
  columns: ColumnSettings<T>[];
15
- table: TableElement<T>;
15
+ table: SpectricTableElement<T>;
16
16
  protected createRenderRoot(): HTMLElement | DocumentFragment;
17
17
  protected firstUpdated(_changedProperties: PropertyValues): void;
18
18
  protected render(): unknown;
@@ -1,6 +1,6 @@
1
1
  import { LitElement, PropertyValues } from 'lit';
2
2
  import { HTMLElementTagWithEvents, ReactElementWithPropsAndEvents } from '../types';
3
- import { ColumnSettings, TableElement } from './table';
3
+ import { ColumnSettings, DomRenderable, SpectricTableElement } from './table';
4
4
  import { StyleInfo } from 'lit/directives/style-map.js';
5
5
  export declare const TableCellElementTag = "spectric-table-cell";
6
6
  interface CellProps<T> {
@@ -21,7 +21,8 @@ export declare class TableCellElement<T> extends LitElement implements CellProps
21
21
  index: number;
22
22
  column: ColumnSettings<T>;
23
23
  columns: ColumnSettings<T>[];
24
- table: TableElement<T>;
24
+ table: SpectricTableElement<T>;
25
+ overflow: DomRenderable;
25
26
  td: HTMLTableCellElement;
26
27
  styleRules: StyleInfo;
27
28
  protected createRenderRoot(): HTMLElement | DocumentFragment;
@@ -29,6 +30,8 @@ export declare class TableCellElement<T> extends LitElement implements CellProps
29
30
  _emitFilter(filter: FilterEvent<T>): void;
30
31
  _handleFilterOut: () => void;
31
32
  _handleFilterFor: () => void;
33
+ _displayTooltip: () => void;
34
+ getRenderedValue(): any;
32
35
  protected render(): unknown;
33
36
  }
34
37
  interface TableBodyEvents {
@@ -1,6 +1,6 @@
1
- import { LitElement } from 'lit';
2
1
  import { HTMLElementTagWithEvents, ReactElementWithPropsAndEvents } from '../types';
3
2
  import { ColumnSettings } from './table';
3
+ import { DisposableElement } from '../../classes';
4
4
  export declare const TableHeaderElementTag = "spectric-table-header";
5
5
  interface HeaderProps<T> {
6
6
  columns: ColumnSettings<T>[];
@@ -8,14 +8,20 @@ interface HeaderProps<T> {
8
8
  /**
9
9
  * Pagination Element
10
10
  */
11
- export declare class TableHeaderElement<T> extends LitElement implements HeaderProps<T> {
11
+ export declare class TableHeaderElement<T> extends DisposableElement implements HeaderProps<T> {
12
12
  columns: ColumnSettings<T>[];
13
+ private _resizeStart?;
14
+ constructor();
13
15
  protected createRenderRoot(): HTMLElement | DocumentFragment;
14
16
  _handleSortChange: (column: ColumnSettings<T>) => void;
17
+ _handleResizeStart: (event: MouseEvent, column: ColumnSettings<T>) => void;
18
+ _handleResizeEnd: (e: MouseEvent) => void;
15
19
  protected render(): unknown;
20
+ private renderCell;
16
21
  }
17
22
  interface TableHeaderEvents {
18
- 'sortChange': (event: CustomEvent<ColumnSettings<any>>) => void;
23
+ sortChange: (event: CustomEvent<ColumnSettings<any>>) => void;
24
+ columnResize: (event: CustomEvent<ColumnSettings<any>>) => void;
19
25
  }
20
26
  declare global {
21
27
  interface HTMLElementTagNameMap {
@@ -23,6 +23,10 @@ export declare enum TableSortDirection {
23
23
  export type TableSortDirectionTypes = `${TableSortDirection}`;
24
24
  export type ColumnSettings<T> = {
25
25
  width?: number;
26
+ /**
27
+ * Enabled/disables resizing by dragging column header Default true
28
+ */
29
+ allowResize?: boolean;
26
30
  whiteSpace?: "nowrap";
27
31
  hidden?: boolean;
28
32
  sortable?: boolean;
@@ -36,7 +40,7 @@ export type ColumnSettings<T> = {
36
40
  /**
37
41
  * Render function to render a table cell for displaying custom html
38
42
  */
39
- render?: (row: T, index: number, table: TableElement<T>) => DomRenderable;
43
+ render?: (row: T, index: number, table: SpectricTableElement<T>) => DomRenderable;
40
44
  /**
41
45
  * Custom comparator function for sorting
42
46
  */
@@ -46,6 +50,7 @@ export type TableSelectOptionsTypes = `${TableSelectOptions}`;
46
50
  export interface TableDataOptions<T> {
47
51
  pagination?: PaginationProps;
48
52
  columns: ColumnSettings<T>[];
53
+ sortOrder?: string[];
49
54
  }
50
55
  interface TableProps<T> extends TableDataOptions<T> {
51
56
  data: T[];
@@ -53,7 +58,7 @@ interface TableProps<T> extends TableDataOptions<T> {
53
58
  sort?: TableSortOptionTypes;
54
59
  rowHeight?: number;
55
60
  }
56
- type DomEvent<T> = Event & {
61
+ export type DomEvent<T> = Event & {
57
62
  target: T;
58
63
  };
59
64
  /**
@@ -61,19 +66,25 @@ type DomEvent<T> = Event & {
61
66
  * <iframe width="100%" height="400px" src="https://stackblitz.com/edit/react-ts-2ue7azag?ctl=1&embed=1&file=App.tsx&hideExplorer=1&hideNavigation=1"/>
62
67
  *
63
68
  */
64
- export declare class TableElement<T> extends LitElement implements TableProps<T> {
69
+ export declare class SpectricTableElement<T = any> extends LitElement implements TableProps<T> {
65
70
  data: T[];
66
71
  pagination?: PaginationProps;
67
72
  columns: ColumnSettings<T>[];
68
73
  select: TableSelectOptionsTypes;
69
74
  sort: TableSortOptionTypes;
75
+ sortOrder: string[];
70
76
  /**
71
77
  * Needed for virtualization
72
78
  */
73
79
  rowHeight: number;
80
+ /**
81
+ * Needed for virtualization
82
+ */
83
+ fontSize: number;
74
84
  static getDefaultDataSorterAndPaginatior<T>(data: T[]): (props: TableDataOptions<T>) => T[];
75
85
  private _handlePaginationChange;
76
86
  private _handleSortChange;
87
+ private _handleColumnResize;
77
88
  private _emitChange;
78
89
  private __DO_NOT_USE_filter;
79
90
  private selected;
@@ -89,17 +100,18 @@ interface TableEvents {
89
100
  'paginationChange': (event: CustomEvent<PaginationChangeProps>) => void;
90
101
  'filter': (event: CustomEvent<FilterEvent<any>>) => void;
91
102
  'sortChange': (event: CustomEvent<ColumnSettings<any>>) => void;
103
+ 'selected': (event: CustomEvent<any[]>) => void;
92
104
  }
93
105
  declare global {
94
106
  interface HTMLElementTagNameMap {
95
- [TableElementTag]: HTMLElementTagWithEvents<TableElement<any>, TableEvents>;
107
+ [TableElementTag]: HTMLElementTagWithEvents<SpectricTableElement<any>, TableEvents>;
96
108
  }
97
109
  namespace JSX {
98
110
  interface IntrinsicElements {
99
111
  /**
100
112
  * @see {@link TableElement}
101
113
  */
102
- [TableElementTag]: ReactElementWithPropsAndEvents<TableElement<any>, TableProps<any>, TableEvents>;
114
+ [TableElementTag]: ReactElementWithPropsAndEvents<SpectricTableElement<any>, TableProps<any>, TableEvents>;
103
115
  }
104
116
  }
105
117
  namespace React {
@@ -108,7 +120,7 @@ declare global {
108
120
  /**
109
121
  * @see {@link TableElement}
110
122
  */
111
- [TableElementTag]: ReactElementWithPropsAndEvents<TableElement<any>, TableProps<any>, TableEvents>;
123
+ [TableElementTag]: ReactElementWithPropsAndEvents<SpectricTableElement<any>, TableProps<any>, TableEvents>;
112
124
  }
113
125
  }
114
126
  }
@@ -1,5 +1,5 @@
1
1
  import { HTMLElementTagWithEvents, ReactElementWithPropsAndEvents } from '../types';
2
- import { ColumnSettings, TableElement } from './table';
2
+ import { ColumnSettings, SpectricTableElement } from './table';
3
3
  import { DisposableElement } from '../../classes/DisposibleElement';
4
4
  export declare const TableBodyElementTag = "spectric-table-virtual-body";
5
5
  interface BodyProps<T> {
@@ -15,7 +15,7 @@ export declare class TableVirtualBodyElement<T> extends DisposableElement implem
15
15
  columns: ColumnSettings<T>[];
16
16
  rowHeight: number;
17
17
  startIndex: number;
18
- table: TableElement<T>;
18
+ table: SpectricTableElement<T>;
19
19
  constructor();
20
20
  protected firstUpdated(): void;
21
21
  protected createRenderRoot(): HTMLElement | DocumentFragment;
@@ -0,0 +1,85 @@
1
+ import { CSSResultGroup } from 'lit-element';
2
+ import { DomRenderable } from '../table';
3
+ import { DisposableElement } from '../../classes/DisposibleElement';
4
+ export declare const PopoverElementTag = "spectric-popover";
5
+ export type { TooltipProps, TooltipEvents };
6
+ export declare enum TooltipPostions {
7
+ top = "top",
8
+ bottom = "bottom",
9
+ left = "left",
10
+ right = "right",
11
+ mouse = "mouse"
12
+ }
13
+ export type TooltipPostionsTypes = `${TooltipPostions}`;
14
+ interface TooltipProps {
15
+ /**
16
+ * How long you need to hover before the tooltip displays
17
+ */
18
+ delay?: number;
19
+ /**
20
+ * How long the fade in animation should run
21
+ */
22
+ animationDuration?: number;
23
+ /**
24
+ * Tooltip contents
25
+ */
26
+ text: DomRenderable;
27
+ /**
28
+ * Where to anchor the tooltip
29
+ */
30
+ position?: TooltipPostionsTypes;
31
+ /**
32
+ * Sets a max width for the contents you can disable this by setting to 0 or -1
33
+ */
34
+ maxWidth?: number;
35
+ /**
36
+ * Container the tool tip will be attached to.
37
+ */
38
+ portalTarget?: HTMLElement;
39
+ /**
40
+ * 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
41
+ */
42
+ triggerTarget?: HTMLElement;
43
+ }
44
+ /**
45
+ * Spectric tooltip will add a tooltip to any container
46
+ */
47
+ export declare class PopoverElement extends DisposableElement implements TooltipProps {
48
+ delay: number;
49
+ animationDuration: number;
50
+ text: DomRenderable;
51
+ position: TooltipPostionsTypes;
52
+ maxWidth?: number;
53
+ protected portalElement: HTMLDivElement;
54
+ protected mouseLocation?: {
55
+ left: number;
56
+ top: number;
57
+ };
58
+ static styles?: CSSResultGroup | undefined;
59
+ portalTarget: HTMLElement;
60
+ protected timer?: number;
61
+ protected open: boolean;
62
+ protected mouseframe?: number;
63
+ /**
64
+ * @default parentElement
65
+ */
66
+ triggerTarget: HTMLElement;
67
+ protected get target(): HTMLElement;
68
+ constructor();
69
+ connectedCallback(): void;
70
+ disconnectedCallback(): void;
71
+ protected _getMousePosition: (ev: MouseEvent) => void;
72
+ /**
73
+ * Public method to trigger hide the tooltip programatically
74
+ */
75
+ hidePopover(): void;
76
+ /**
77
+ * Public method to trigger showing the tooltip programatically
78
+ */
79
+ showPopover(): Promise<void>;
80
+ protected applyStyle: (style: Record<string, string>) => void;
81
+ protected positionTooltip: () => void;
82
+ protected render(): import('lit-html').TemplateResult<1>;
83
+ }
84
+ interface TooltipEvents {
85
+ }
@@ -1,7 +1,7 @@
1
1
  import { HTMLElementTagWithEvents, ReactElementWithPropsAndEvents } from '../types';
2
2
  import { CSSResultGroup } from 'lit-element';
3
3
  import { DomRenderable } from '../table';
4
- import { DisposableElement } from '../../classes/DisposibleElement';
4
+ import { PopoverElement } from './popover';
5
5
  export declare const TooltipElementTag = "spectric-tooltip";
6
6
  export type { TooltipProps, TooltipEvents };
7
7
  export declare enum TooltipPostions {
@@ -45,32 +45,31 @@ interface TooltipProps {
45
45
  /**
46
46
  * Spectric tooltip will add a tooltip to any container
47
47
  */
48
- export declare class TooltipElement extends DisposableElement implements TooltipProps {
48
+ export declare class TooltipElement extends PopoverElement implements TooltipProps {
49
49
  delay: number;
50
50
  animationDuration: number;
51
51
  text: DomRenderable;
52
52
  position: TooltipPostionsTypes;
53
53
  maxWidth?: number;
54
- private portalElement;
55
- private mouseLocation?;
54
+ portalElement: HTMLDivElement;
55
+ mouseLocation?: {
56
+ left: number;
57
+ top: number;
58
+ };
56
59
  static styles?: CSSResultGroup | undefined;
57
60
  portalTarget: HTMLElement;
58
- private timer?;
59
- private open;
60
- private mouseframe?;
61
+ timer?: number;
62
+ open: boolean;
63
+ mouseframe?: number;
61
64
  /**
62
65
  * @default parentElement
63
66
  */
64
67
  triggerTarget: HTMLElement;
65
- private get target();
66
68
  constructor();
67
- connectedCallback(): void;
68
- disconnectedCallback(): void;
69
- private _getMousePosition;
70
- _hideTooltip: () => void;
71
- private showToolTip;
72
- private applyStyle;
73
- private positionTooltip;
69
+ /**
70
+ * Public method to trigger showing the tooltip programatically
71
+ */
72
+ showToolTip(): Promise<void>;
74
73
  protected render(): import('lit-html').TemplateResult<1>;
75
74
  }
76
75
  interface TooltipEvents {
@@ -391,6 +391,21 @@
391
391
  }
392
392
  ]
393
393
  },
394
+ {
395
+ "name": "spectric-colorpicker",
396
+ "description": "Attributes:\n\n * `value` {`string`} - Color in hex\n\n * `showAlpha` {`boolean`} - \n\nProperties:\n\n * `hue` {`number`} - \n\n * `alpha` {`number`} - \n\n * `saturation` {`number`} - \n\n * `lightness` {`number`} - \n\n * `canvas` {`Ref<HTMLCanvasElement>`} - \n\n * `original` {`string | undefined`} - \n\n * `sldown` {`boolean`} - is mouse down on saturation/light canvas?\n\n * `_handleSaturationLightnessClick` - \n\n * `_handleHueChange` - \n\n * `_handleAlphaChange` - \n\n * `_handleApply` - \n\n * `_cancel` - \n\n * `_openPopover` - \n\n * `value` {`string`} - Color in hex\n\n * `showAlpha` {`boolean`} - ",
397
+ "attributes": [
398
+ {
399
+ "name": "value",
400
+ "description": "`value` {`string`} - Color in hex\n\nProperty: value\n\nDefault: #FF0000FF"
401
+ },
402
+ {
403
+ "name": "showAlpha",
404
+ "description": "`showAlpha` {`boolean`} - \n\nProperty: showAlpha\n\nDefault: true",
405
+ "valueSet": "v"
406
+ }
407
+ ]
408
+ },
394
409
  {
395
410
  "name": "spectric-dialog",
396
411
  "description": "Dialog Element\n\nEvents:\n\n * `close` {`CustomEvent<unknown>`} - \n\nSlots:\n\n * `title` {} - sets the title of the dialog attribute/property can also be use for setting the title to a string\n\nAttributes:\n\n * `open` {`boolean`} - \n\n * `dismissable` {`boolean`} - \n\n * `hideBackdrop` {`boolean`} - \n\n * `title` {`string`} - \n\n * `closeOnEscape` {`boolean`} - \n\n * `closeOnOutsideClick` {`boolean`} - \n\nProperties:\n\n * `styles` {`CSSResultGroup`} - \n\n * `dialogElement` {`Promise<HTMLDialogElement>`} - \n\n * `clickHandler` - \n\n * `_handleKeyDown` - \n\n * `_onClose` - \n\n * `open` {`boolean`} - \n\n * `dismissable` {`boolean`} - \n\n * `hideBackdrop` {`boolean`} - \n\n * `title` {`string`} - \n\n * `closeOnEscape` {`boolean`} - \n\n * `closeOnOutsideClick` {`boolean`} - ",
@@ -432,7 +447,7 @@
432
447
  },
433
448
  {
434
449
  "name": "spectric-input",
435
- "description": "Events:\n\n * `change` {`Event`} - \n\nAttributes:\n\n * `checked` {`boolean | undefined`} - \n\n * `hidePasswordLabel` {`string`} - \"Hide password\" tooltip text on password visibility toggle\n\n * `showPasswordLabel` {`string`} - \"Show password\" tooltip text on password visibility toggle\n\n * `value` {`string | number | boolean`} - The value of the input.\n\n * `variant` {`\"number\" | \"text\" | \"text-area\" | \"color\" | \"date\" | \"datetime-local\" | \"email\" | \"file\" | \"hidden\" | \"password\" | \"checkbox\"`} - Input type\n\n * `label` {`string`} - Label to display above the input\n\n * `placeholder` {`string`} - placeholder text to display\n\n * `disabled` {`boolean`} - \n\n * `readonly` {`boolean`} - \n\n * `helperText` {`string`} - The helper text.\n\n * `invalid` {`boolean`} - Specify if the currently value is invalid.\n\n * `invalidText` {`string | TemplateResult<1> | undefined`} - Message which is displayed if the value is invalid.\n\n * `maxCount` {`number`} - Max character count allowed for input. This is needed in order for enableCounter to display\n\n * `required` {`boolean`} - Boolean property to set the required status\n\n * `showPasswordVisibilityToggle` {`boolean`} - Boolean property to render password visibility toggle\n\n * `name` {`string`} - Name for the input used for form data events //TODO make sure this works\n\n * `pattern` {`string`} - Pattern to validate the input against for HTML validity checking\n\n * `autocomplete` {`AutoFill`} - The sets the autocomplete for the input.\n\nProperties:\n\n * `checked` {`boolean | undefined`} - \n\n * `size` {`\"large\" | \"medium\" | \"small\" | \"xsmall\" | \"xxsmall\" | \"tiny\" | undefined`} - \n\n * `hidePasswordLabel` {`string`} - \"Hide password\" tooltip text on password visibility toggle\n\n * `showPasswordLabel` {`string`} - \"Show password\" tooltip text on password visibility toggle\n\n * `_value` {`string | number | boolean`} - The internal value.\n\n * `_showPassword` {`boolean`} - \n\n * `selectionStart` {`number | null`} - \n\n * `value` {`string | number | boolean`} - The value of the input.\n\n * `_handleInput` - Handles `oninput` event on the `<input>`.\n\n * `_input` {`HTMLInputElement | undefined`} - The underlying input element\n\n * `handleTogglePasswordVisibility` - \n\n * `variant` {`\"number\" | \"text\" | \"text-area\" | \"color\" | \"date\" | \"datetime-local\" | \"email\" | \"file\" | \"hidden\" | \"password\" | \"checkbox\"`} - Input type\n\n * `label` {`string`} - Label to display above the input\n\n * `placeholder` {`string`} - placeholder text to display\n\n * `disabled` {`boolean`} - \n\n * `readonly` {`boolean`} - \n\n * `helperText` {`string`} - The helper text.\n\n * `invalid` {`boolean`} - Specify if the currently value is invalid.\n\n * `invalidText` {`string | TemplateResult<1> | undefined`} - Message which is displayed if the value is invalid.\n\n * `maxCount` {`number`} - Max character count allowed for input. This is needed in order for enableCounter to display\n\n * `required` {`boolean`} - Boolean property to set the required status\n\n * `showPasswordVisibilityToggle` {`boolean`} - Boolean property to render password visibility toggle\n\n * `name` {`string`} - Name for the input used for form data events //TODO make sure this works\n\n * `pattern` {`string`} - Pattern to validate the input against for HTML validity checking\n\n * `autocomplete` {`AutoFill`} - The sets the autocomplete for the input.",
450
+ "description": "Events:\n\n * `change` {`Event`} - \n\nAttributes:\n\n * `checked` {`boolean | undefined`} - \n\n * `hidePasswordLabel` {`string`} - \"Hide password\" tooltip text on password visibility toggle\n\n * `showPasswordLabel` {`string`} - \"Show password\" tooltip text on password visibility toggle\n\n * `value` {`string | number | boolean`} - The value of the input.\n\n * `variant` {`\"number\" | \"text\" | \"text-area\" | \"color\" | \"date\" | \"datetime-local\" | \"email\" | \"file\" | \"hidden\" | \"password\" | \"checkbox\" | \"range\"`} - Input type\n\n * `label` {`string`} - Label to display above the input\n\n * `placeholder` {`string`} - placeholder text to display\n\n * `disabled` {`boolean`} - \n\n * `readonly` {`boolean`} - \n\n * `helperText` {`string`} - The helper text.\n\n * `invalid` {`boolean`} - Specify if the currently value is invalid.\n\n * `invalidText` {`string | TemplateResult<1> | undefined`} - Message which is displayed if the value is invalid.\n\n * `maxCount` {`number`} - Max character count allowed for input. This is needed in order for enableCounter to display\n\n * `required` {`boolean`} - Boolean property to set the required status\n\n * `showPasswordVisibilityToggle` {`boolean`} - Boolean property to render password visibility toggle\n\n * `name` {`string`} - Name for the input used for form data events //TODO make sure this works\n\n * `pattern` {`string`} - Pattern to validate the input against for HTML validity checking\n\n * `autocomplete` {`AutoFill`} - The sets the autocomplete for the input.\n\nProperties:\n\n * `checked` {`boolean | undefined`} - \n\n * `size` {`\"large\" | \"medium\" | \"small\" | \"xsmall\" | \"xxsmall\" | \"tiny\" | undefined`} - \n\n * `hidePasswordLabel` {`string`} - \"Hide password\" tooltip text on password visibility toggle\n\n * `showPasswordLabel` {`string`} - \"Show password\" tooltip text on password visibility toggle\n\n * `_value` {`string | number | boolean`} - The internal value.\n\n * `_showPassword` {`boolean`} - \n\n * `selectionStart` {`number | null`} - \n\n * `value` {`string | number | boolean`} - The value of the input.\n\n * `_handleInput` - Handles `oninput` event on the `<input>`.\n\n * `_input` {`HTMLInputElement | undefined`} - The underlying input element\n\n * `handleTogglePasswordVisibility` - \n\n * `variant` {`\"number\" | \"text\" | \"text-area\" | \"color\" | \"date\" | \"datetime-local\" | \"email\" | \"file\" | \"hidden\" | \"password\" | \"checkbox\" | \"range\"`} - Input type\n\n * `label` {`string`} - Label to display above the input\n\n * `placeholder` {`string`} - placeholder text to display\n\n * `disabled` {`boolean`} - \n\n * `readonly` {`boolean`} - \n\n * `helperText` {`string`} - The helper text.\n\n * `invalid` {`boolean`} - Specify if the currently value is invalid.\n\n * `invalidText` {`string | TemplateResult<1> | undefined`} - Message which is displayed if the value is invalid.\n\n * `maxCount` {`number`} - Max character count allowed for input. This is needed in order for enableCounter to display\n\n * `required` {`boolean`} - Boolean property to set the required status\n\n * `showPasswordVisibilityToggle` {`boolean`} - Boolean property to render password visibility toggle\n\n * `name` {`string`} - Name for the input used for form data events //TODO make sure this works\n\n * `pattern` {`string`} - Pattern to validate the input against for HTML validity checking\n\n * `autocomplete` {`AutoFill`} - The sets the autocomplete for the input.",
436
451
  "attributes": [
437
452
  {
438
453
  "name": "checked",
@@ -454,7 +469,7 @@
454
469
  },
455
470
  {
456
471
  "name": "variant",
457
- "description": "`variant` {`\"number\" | \"text\" | \"text-area\" | \"color\" | \"date\" | \"datetime-local\" | \"email\" | \"file\" | \"hidden\" | \"password\" | \"checkbox\"`} - Input type\n\nProperty: variant\n\nDefault: text",
472
+ "description": "`variant` {`\"number\" | \"text\" | \"text-area\" | \"color\" | \"date\" | \"datetime-local\" | \"email\" | \"file\" | \"hidden\" | \"password\" | \"checkbox\" | \"range\"`} - Input type\n\nProperty: variant\n\nDefault: text",
458
473
  "values": [
459
474
  {
460
475
  "name": "number"
@@ -488,6 +503,9 @@
488
503
  },
489
504
  {
490
505
  "name": "checkbox"
506
+ },
507
+ {
508
+ "name": "range"
491
509
  }
492
510
  ]
493
511
  },
@@ -2000,12 +2018,12 @@
2000
2018
  },
2001
2019
  {
2002
2020
  "name": "spectric-table-body",
2003
- "description": "Table Body Element\n\nProperties:\n\n * `table` {`TableElement<T>`} - \n\n * `columns` {`ColumnSettings<T>[]`} - \n\n * `data` {`T[]`} - ",
2021
+ "description": "Table Body Element\n\nProperties:\n\n * `table` {`SpectricTableElement<T>`} - \n\n * `columns` {`ColumnSettings<T>[]`} - \n\n * `data` {`T[]`} - ",
2004
2022
  "attributes": []
2005
2023
  },
2006
2024
  {
2007
2025
  "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 * `styleRules` {`StyleInfo`} - \n\n * `_handleFilterOut` - \n\n * `_handleFilterFor` - \n\n * `column` {`ColumnSettings<T>`} - \n\n * `row` {`T`} - ",
2026
+ "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` {`SpectricTableElement<T>`} - \n\n * `overflow` {`DomRenderable`} - \n\n * `td` {`HTMLTableCellElement`} - \n\n * `styleRules` {`StyleInfo`} - \n\n * `_handleFilterOut` - \n\n * `_handleFilterFor` - \n\n * `_displayTooltip` - \n\n * `column` {`ColumnSettings<T>`} - \n\n * `row` {`T`} - ",
2009
2027
  "attributes": [
2010
2028
  {
2011
2029
  "name": "onfilter",
@@ -2015,18 +2033,26 @@
2015
2033
  },
2016
2034
  {
2017
2035
  "name": "spectric-table-header",
2018
- "description": "Pagination Element\n\nEvents:\n\n * `sortChange` {`CustomEvent<ColumnSettings<T>>`} - \n\nProperties:\n\n * `_handleSortChange` - \n\n * `columns` {`ColumnSettings<T>[]`} - ",
2036
+ "description": "Pagination Element\n\nEvents:\n\n * `sortChange` {`CustomEvent<ColumnSettings<T>>`} - \n\n * `columnResize` {`CustomEvent<ColumnSettings<T>>`} - \n\nProperties:\n\n * `_resizeStart` {`{ event: MouseEvent; column: ColumnSettings<T>; } | undefined`} - \n\n * `_handleSortChange` - \n\n * `_handleResizeStart` - \n\n * `_handleResizeEnd` - \n\n * `columns` {`ColumnSettings<T>[]`} - \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`} - ",
2019
2037
  "attributes": [
2020
2038
  {
2021
2039
  "name": "onsortChange",
2022
2040
  "description": "`sortChange` {`CustomEvent<ColumnSettings<T>>`} - "
2041
+ },
2042
+ {
2043
+ "name": "oncolumnResize",
2044
+ "description": "`columnResize` {`CustomEvent<ColumnSettings<T>>`} - "
2023
2045
  }
2024
2046
  ]
2025
2047
  },
2026
2048
  {
2027
2049
  "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 * `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>[]`} - ",
2050
+ "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 * `fontSize` {`number`} - Needed for virtualization\n\n * `select` {`\"none\" | \"multi\" | \"single\"`} - \n\n * `sort` {`\"multi\" | \"single\"`} - \n\n * `rowHeight` {`number`} - Needed for virtualization\n\n * `sortOrder` {`string[]`} - \n\nProperties:\n\n * `fontSize` {`number`} - Needed for virtualization\n\n * `_handlePaginationChange` - \n\n * `_handleSortChange` - \n\n * `_handleColumnResize` - \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>[]`} - \n\n * `sortOrder` {`string[]`} - ",
2029
2051
  "attributes": [
2052
+ {
2053
+ "name": "fontSize",
2054
+ "description": "`fontSize` {`number`} - Needed for virtualization\n\nProperty: fontSize\n\nDefault: 16"
2055
+ },
2030
2056
  {
2031
2057
  "name": "select",
2032
2058
  "description": "`select` {`\"none\" | \"multi\" | \"single\"`} - \n\nProperty: select\n\nDefault: none",
@@ -2058,6 +2084,10 @@
2058
2084
  "name": "rowHeight",
2059
2085
  "description": "`rowHeight` {`number`} - Needed for virtualization\n\nProperty: rowHeight\n\nDefault: 25"
2060
2086
  },
2087
+ {
2088
+ "name": "sortOrder",
2089
+ "description": "`sortOrder` {`string[]`} - \n\nProperty: sortOrder\n\nDefault: "
2090
+ },
2061
2091
  {
2062
2092
  "name": "onpaginationChange",
2063
2093
  "description": "`paginationChange` {`CustomEvent<PaginationChangeProps>`} - "
@@ -2082,7 +2112,7 @@
2082
2112
  },
2083
2113
  {
2084
2114
  "name": "spectric-table-virtual-body",
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`} - ",
2115
+ "description": "Table Body Element\n\nAttributes:\n\n * `startIndex` {`number`} - \n\nProperties:\n\n * `startIndex` {`number`} - \n\n * `table` {`SpectricTableElement<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`} - ",
2086
2116
  "attributes": [
2087
2117
  {
2088
2118
  "name": "startIndex",
@@ -2090,9 +2120,54 @@
2090
2120
  }
2091
2121
  ]
2092
2122
  },
2123
+ {
2124
+ "name": "spectric-popover",
2125
+ "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 * `applyStyle` - \n\n * `positionTooltip` - \n\n * `showPopover` - Public method to trigger showing the tooltip programatically\n\n * `hidePopover` - \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`} - ",
2126
+ "attributes": [
2127
+ {
2128
+ "name": "delay",
2129
+ "description": "`delay` {`number`} - How long you need to hover before the tooltip displays\n\nProperty: delay\n\nDefault: 100"
2130
+ },
2131
+ {
2132
+ "name": "animationDuration",
2133
+ "description": "`animationDuration` {`number`} - How long the fade in animation should run\n\nProperty: animationDuration\n\nDefault: 0"
2134
+ },
2135
+ {
2136
+ "name": "text",
2137
+ "description": "`text` {`DomRenderable`} - Tooltip contents\n\nProperty: text\n\nDefault: ",
2138
+ "values": []
2139
+ },
2140
+ {
2141
+ "name": "position",
2142
+ "description": "`position` {`\"top\" | \"bottom\" | \"left\" | \"right\" | \"mouse\"`} - Where to anchor the tooltip\n\nProperty: position\n\nDefault: right",
2143
+ "values": [
2144
+ {
2145
+ "name": "top"
2146
+ },
2147
+ {
2148
+ "name": "bottom"
2149
+ },
2150
+ {
2151
+ "name": "left"
2152
+ },
2153
+ {
2154
+ "name": "right"
2155
+ },
2156
+ {
2157
+ "name": "mouse"
2158
+ }
2159
+ ]
2160
+ },
2161
+ {
2162
+ "name": "maxWidth",
2163
+ "description": "`maxWidth` {`number | undefined`} - Sets a max width for the contents you can disable this by setting to 0 or -1\n\nProperty: maxWidth\n\nDefault: 300",
2164
+ "values": []
2165
+ }
2166
+ ]
2167
+ },
2093
2168
  {
2094
2169
  "name": "spectric-tooltip",
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`} - ",
2170
+ "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 * `applyStyle` - \n\n * `positionTooltip` - \n\n * `showPopover` - Public method to trigger showing the tooltip programatically\n\n * `hidePopover` - \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`} - ",
2096
2171
  "attributes": [
2097
2172
  {
2098
2173
  "name": "delay",