@spectric/ui 0.0.17 → 0.0.19

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 (49) hide show
  1. package/dist/components/Button.d.ts +2 -1
  2. package/dist/components/Panel.d.ts +6 -3
  3. package/dist/components/ThemeProvider.d.ts +1 -0
  4. package/dist/components/calendar/calendar.d.ts +58 -0
  5. package/dist/components/calendar/index.d.ts +1 -0
  6. package/dist/components/color_picker/ColorPicker.d.ts +7 -6
  7. package/dist/components/index.d.ts +1 -0
  8. package/dist/components/input.d.ts +24 -20
  9. package/dist/components/pagination/pagination.d.ts +1 -1
  10. package/dist/components/query_bar/QueryBar.d.ts +2 -1
  11. package/dist/components/table/table.d.ts +3 -0
  12. package/dist/components/table/virtualBody.d.ts +2 -1
  13. package/dist/components/tooltip/popover.d.ts +32 -2
  14. package/dist/components/tooltip/tooltip.d.ts +1 -32
  15. package/dist/custom-elements.json +60 -15
  16. package/dist/index.d.ts +3 -0
  17. package/dist/index.es.js +2895 -2573
  18. package/dist/index.es.js.map +1 -1
  19. package/dist/index.umd.js +305 -182
  20. package/dist/index.umd.js.map +1 -1
  21. package/dist/style.css +1 -1
  22. package/package.json +1 -1
  23. package/src/components/Button.ts +14 -13
  24. package/src/components/Panel.ts +25 -18
  25. package/src/components/ThemeProvider.ts +34 -1
  26. package/src/components/button.css.ts +15 -2
  27. package/src/components/calendar/calendar.css +50 -0
  28. package/src/components/calendar/calendar.ts +281 -0
  29. package/src/components/calendar/index.ts +1 -0
  30. package/src/components/color_picker/ColorPicker.css +69 -0
  31. package/src/components/color_picker/ColorPicker.ts +72 -17
  32. package/src/components/index.ts +2 -1
  33. package/src/components/input.css +5 -34
  34. package/src/components/input.ts +207 -144
  35. package/src/components/pagination/pagination.ts +2 -2
  36. package/src/components/panel.css.ts +7 -5
  37. package/src/components/query_bar/QueryBar.css +6 -2
  38. package/src/components/query_bar/QueryBar.ts +25 -13
  39. package/src/components/table/__tests__/table.spec.ts +1 -1
  40. package/src/components/table/header.ts +0 -3
  41. package/src/components/table/table.ts +43 -35
  42. package/src/components/table/virtualBody.ts +18 -6
  43. package/src/components/tooltip/popover.ts +73 -33
  44. package/src/components/tooltip/tooltip.css +7 -2
  45. package/src/components/tooltip/tooltip.ts +4 -37
  46. package/src/stories/Calendar.stories.ts +70 -0
  47. package/src/stories/fixtures/ExampleContent.ts +2 -1
  48. package/src/stories/table.stories.ts +1 -2
  49. package/src/stories/tooltip.stories.ts +9 -2
@@ -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`} - \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`} - ",
82
+ "description": "Attributes:\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",
@@ -170,10 +170,6 @@
170
170
  "name": "mouse"
171
171
  }
172
172
  ]
173
- },
174
- {
175
- "name": "onclick",
176
- "description": "`click` {`CustomEvent<MouseEvent>`} - "
177
173
  }
178
174
  ]
179
175
  },
@@ -348,15 +344,15 @@
348
344
  },
349
345
  {
350
346
  "name": "spectric-panel",
351
- "description": "Spectric Panel visually seperates content areas and automatically adjusts the component colors that are nested inside.\n\nEvents:\n\n * `use-layer` {`CustomEvent<{ layer: this; level: number; }>`} - \n\nAttributes:\n\n * `level` {`number`} - Specify the layer level and override any existing levels based on hierarchy\n\nProperties:\n\n * `styles` {`CSSResultGroup | undefined`} - \n\n * `level` {`number`} - Specify the layer level and override any existing levels based on hierarchy\n\n * `layers` {`NodeListOf<SpectricPanel> | undefined`} - ",
347
+ "description": "Spectric Panel visually seperates content areas and automatically adjusts the component colors that are nested inside.\n\nEvents:\n\n * `layer-add` {`CustomEvent<{ layer: this; level: number; }>`} - \n\nAttributes:\n\n * `level` {`number`} - Specify the layer level and override any existing levels based on hierarchy\n\nProperties:\n\n * `styles` {`CSSResultGroup | undefined`} - \n\n * `level` {`number`} - Specify the layer level and override any existing levels based on hierarchy\n\n * `layers` {`NodeListOf<SpectricPanel> | 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`} - ",
352
348
  "attributes": [
353
349
  {
354
350
  "name": "level",
355
351
  "description": "`level` {`number`} - Specify the layer level and override any existing levels based on hierarchy\n\nProperty: level\n\nDefault: 0"
356
352
  },
357
353
  {
358
- "name": "onuse-layer",
359
- "description": "`use-layer` {`CustomEvent<{ layer: this; level: number; }>`} - "
354
+ "name": "onlayer-add",
355
+ "description": "`layer-add` {`CustomEvent<{ layer: this; level: number; }>`} - "
360
356
  }
361
357
  ]
362
358
  },
@@ -391,9 +387,29 @@
391
387
  }
392
388
  ]
393
389
  },
390
+ {
391
+ "name": "spectric-calendar",
392
+ "description": "Events:\n\n * `select` {`CustomEvent<Date>`} - \n\nAttributes:\n\n * `popup` {`boolean`} - \n\n * `disabled` {`boolean`} - \n\nProperties:\n\n * `calendarElement` {`Promise<HTMLDivElement>`} - \n\n * `currentDate` {`string | number | Date | undefined`} - \n\n * `date` {`Date`} - \n\n * `popup` {`boolean`} - \n\n * `disabled` {`boolean`} - \n\n * `handleMouseMove` - \n\n * `resetMouseMove` - \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`} - ",
393
+ "attributes": [
394
+ {
395
+ "name": "popup",
396
+ "description": "`popup` {`boolean`} - \n\nProperty: popup\n\nDefault: false",
397
+ "valueSet": "v"
398
+ },
399
+ {
400
+ "name": "disabled",
401
+ "description": "`disabled` {`boolean`} - \n\nProperty: disabled\n\nDefault: false",
402
+ "valueSet": "v"
403
+ },
404
+ {
405
+ "name": "onselect",
406
+ "description": "`select` {`CustomEvent<Date>`} - "
407
+ }
408
+ ]
409
+ },
394
410
  {
395
411
  "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`} - ",
412
+ "description": "Events:\n\n * `change` {`Event`} - \n\n * `cancel` {`Event`} - \n\nAttributes:\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 * `_handleAlphaChange` - \n\n * `_handleHueChange` - \n\n * `_handleApply` - \n\n * `_cancel` - \n\n * `_handleSaturationLightnessClick` - \n\n * `value` {`string`} - Color in hex\n\n * `showAlpha` {`boolean`} - ",
397
413
  "attributes": [
398
414
  {
399
415
  "name": "value",
@@ -403,6 +419,14 @@
403
419
  "name": "showAlpha",
404
420
  "description": "`showAlpha` {`boolean`} - \n\nProperty: showAlpha\n\nDefault: true",
405
421
  "valueSet": "v"
422
+ },
423
+ {
424
+ "name": "onchange",
425
+ "description": "`change` {`Event`} - "
426
+ },
427
+ {
428
+ "name": "oncancel",
429
+ "description": "`cancel` {`Event`} - "
406
430
  }
407
431
  ]
408
432
  },
@@ -447,7 +471,7 @@
447
471
  },
448
472
  {
449
473
  "name": "spectric-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.",
474
+ "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\" | \"popup-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 * `files` {`FileList | null`} - \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\" | \"popup-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.",
451
475
  "attributes": [
452
476
  {
453
477
  "name": "checked",
@@ -469,7 +493,7 @@
469
493
  },
470
494
  {
471
495
  "name": "variant",
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",
496
+ "description": "`variant` {`\"number\" | \"text\" | \"text-area\" | \"color\" | \"date\" | \"popup-date\" | \"datetime-local\" | \"email\" | \"file\" | \"hidden\" | \"password\" | \"checkbox\" | \"range\"`} - Input type\n\nProperty: variant\n\nDefault: text",
473
497
  "values": [
474
498
  {
475
499
  "name": "number"
@@ -486,6 +510,9 @@
486
510
  {
487
511
  "name": "date"
488
512
  },
513
+ {
514
+ "name": "popup-date"
515
+ },
489
516
  {
490
517
  "name": "datetime-local"
491
518
  },
@@ -1933,7 +1960,7 @@
1933
1960
  },
1934
1961
  {
1935
1962
  "name": "spectric-query",
1936
- "description": "The Query component will take Opensearch Dashboard Query language and transform it into various outputs\n\nEvents:\n\n * `change` {`CustomEvent<any>`} - \n\nAttributes:\n\n * `outputLanguage` {`\"toMongo\" | \"toCql\" | \"toDSL\" | \"AST\"`} - The output of the query in a specific format\n\n * `value` {`string`} - The value of the input.\n\n * `fields` {`FieldTypes[]`} - Fields that are used for the auto complete\n\n * `placeholder` {`string`} - Input placeholder\n\nProperties:\n\n * `_value` {`string`} - The internal value.\n\n * `suggestion` {`Suggestion | undefined`} - \n\n * `completions` {`Completion[]`} - \n\n * `completionIndex` {`number`} - \n\n * `_autocomplete` {`HTMLDivElement | undefined`} - \n\n * `_asyncAutocomplete` {`Promise<HTMLDivElement>`} - \n\n * `_input` {`SpectricInput`} - The underlying input element\n\n * `_parseQuery` - \n\n * `_selectCompletion` - \n\n * `_handleArrows` - \n\n * `uuid` {`string`} - \n\n * `outputLanguage` {`\"toMongo\" | \"toCql\" | \"toDSL\" | \"AST\"`} - The output of the query in a specific format\n\n * `value` {`string`} - The value of the input.\n\n * `fields` {`FieldTypes[]`} - Fields that are used for the auto complete\n\n * `getValuesForField` - Callback that will provide values for specific fields\n\n * `placeholder` {`string`} - Input placeholder",
1963
+ "description": "The Query component will take Opensearch Dashboard Query language and transform it into various outputs\n\nEvents:\n\n * `change` {`CustomEvent<any>`} - \n\nAttributes:\n\n * `outputLanguage` {`\"toMongo\" | \"toCql\" | \"toDSL\" | \"AST\"`} - The output of the query in a specific format\n\n * `value` {`string`} - The value of the input.\n\n * `fields` {`FieldTypes[]`} - Fields that are used for the auto complete\n\n * `placeholder` {`string`} - Input placeholder\n\nProperties:\n\n * `_value` {`string`} - The internal value.\n\n * `suggestion` {`Suggestion | undefined`} - \n\n * `completions` {`Completion[]`} - \n\n * `completionIndex` {`number`} - \n\n * `_autocomplete` {`PopoverElement | undefined`} - \n\n * `_asyncAutocomplete` {`Promise<HTMLDivElement>`} - \n\n * `_input` {`SpectricInput`} - The underlying input element\n\n * `_parseQuery` - \n\n * `_selectCompletion` - \n\n * `_handleArrows` - \n\n * `uuid` {`string`} - \n\n * `outputLanguage` {`\"toMongo\" | \"toCql\" | \"toDSL\" | \"AST\"`} - The output of the query in a specific format\n\n * `value` {`string`} - The value of the input.\n\n * `fields` {`FieldTypes[]`} - Fields that are used for the auto complete\n\n * `getValuesForField` - Callback that will provide values for specific fields\n\n * `placeholder` {`string`} - Input placeholder",
1937
1964
  "attributes": [
1938
1965
  {
1939
1966
  "name": "outputLanguage",
@@ -2112,7 +2139,7 @@
2112
2139
  },
2113
2140
  {
2114
2141
  "name": "spectric-table-virtual-body",
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`} - ",
2142
+ "description": "Table Body Element\n\nAttributes:\n\n * `startIndex` {`number`} - \n\nProperties:\n\n * `startIndex` {`number`} - \n\n * `table` {`SpectricTableElement<T>`} - \n\n * `columnsMeasured` {`boolean`} - \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`} - ",
2116
2143
  "attributes": [
2117
2144
  {
2118
2145
  "name": "startIndex",
@@ -2122,7 +2149,7 @@
2122
2149
  },
2123
2150
  {
2124
2151
  "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`} - ",
2152
+ "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\n * `mouseOffsetX` {`number`} - \n\n * `mouseOffsetY` {`number`} - \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 * `mouseOffsetX` {`number`} - \n\n * `mouseOffsetY` {`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`} - ",
2126
2153
  "attributes": [
2127
2154
  {
2128
2155
  "name": "delay",
@@ -2162,12 +2189,20 @@
2162
2189
  "name": "maxWidth",
2163
2190
  "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
2191
  "values": []
2192
+ },
2193
+ {
2194
+ "name": "mouseOffsetX",
2195
+ "description": "`mouseOffsetX` {`number`} - \n\nProperty: mouseOffsetX\n\nDefault: 10"
2196
+ },
2197
+ {
2198
+ "name": "mouseOffsetY",
2199
+ "description": "`mouseOffsetY` {`number`} - \n\nProperty: mouseOffsetY\n\nDefault: 0"
2165
2200
  }
2166
2201
  ]
2167
2202
  },
2168
2203
  {
2169
2204
  "name": "spectric-tooltip",
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`} - ",
2205
+ "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\n * `mouseOffsetX` {`number | undefined`} - \n\n * `mouseOffsetY` {`number | undefined`} - \n\nProperties:\n\n * `showToolTip` - \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 * `mouseOffsetX` {`number | undefined`} - \n\n * `mouseOffsetY` {`number | 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`} - ",
2171
2206
  "attributes": [
2172
2207
  {
2173
2208
  "name": "delay",
@@ -2207,6 +2242,16 @@
2207
2242
  "name": "maxWidth",
2208
2243
  "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",
2209
2244
  "values": []
2245
+ },
2246
+ {
2247
+ "name": "mouseOffsetX",
2248
+ "description": "`mouseOffsetX` {`number | undefined`} - \n\nProperty: mouseOffsetX\n\nDefault: 10",
2249
+ "values": []
2250
+ },
2251
+ {
2252
+ "name": "mouseOffsetY",
2253
+ "description": "`mouseOffsetY` {`number | undefined`} - \n\nProperty: mouseOffsetY\n\nDefault: 0",
2254
+ "values": []
2210
2255
  }
2211
2256
  ]
2212
2257
  },
package/dist/index.d.ts CHANGED
@@ -26,6 +26,7 @@ declare const module: {
26
26
  control: "color" | "text";
27
27
  }>;
28
28
  ThemeSelections: { [k in "undefined" | "light" | "dark" | "spectric" | "spectricFlat"]: k; };
29
+ SPECTRIC_CSS_VARIABLES: string[];
29
30
  SpectricThemeProvider: typeof components.SpectricThemeProvider;
30
31
  DialogElementTag: "spectric-dialog";
31
32
  DialogElement: typeof components.DialogElement;
@@ -38,10 +39,12 @@ declare const module: {
38
39
  TableSelectOptions: typeof components.TableSelectOptions;
39
40
  TableSortOption: typeof components.TableSortOption;
40
41
  TableSortDirection: typeof components.TableSortDirection;
42
+ TD_BorderAndPadding: 4;
41
43
  SpectricTableElement: typeof components.SpectricTableElement;
42
44
  TooltipElementTag: "spectric-tooltip";
43
45
  TooltipPostions: typeof components.TooltipPostions;
44
46
  TooltipElement: typeof components.TooltipElement;
47
+ SpectricCalendar: typeof components.SpectricCalendar;
45
48
  BitArray: {
46
49
  new (buf: ArrayBuffer): {
47
50
  buffer: ArrayBuffer;