From b91e584a535caf4bbdadacfc69e5ed620c65dbf0 Mon Sep 17 00:00:00 2001 From: matthias Date: Mon, 11 Nov 2024 09:58:35 +0100 Subject: [PATCH 01/13] fix(core/select): query if value is undefined, react to value changes --- .../core/src/components/select-item/events.ts | 12 ++++++++++++ .../src/components/select-item/select-item.tsx | 15 ++++++++++++++- packages/core/src/components/select/select.tsx | 3 ++- 3 files changed, 28 insertions(+), 2 deletions(-) diff --git a/packages/core/src/components/select-item/events.ts b/packages/core/src/components/select-item/events.ts index b42d897c10e..de58c65bdea 100644 --- a/packages/core/src/components/select-item/events.ts +++ b/packages/core/src/components/select-item/events.ts @@ -17,3 +17,15 @@ export class IxSelectItemLabelChangeEvent extends CustomEvent<{ }); } } + +export class IxSelectItemValueChangeEvent extends CustomEvent<{ + oldValue: string; + newValue: string; +}> { + constructor(detail: { oldValue: string; newValue: string }) { + super('ix-select-item:valueChange', { + bubbles: true, + detail, + }); + } +} diff --git a/packages/core/src/components/select-item/select-item.tsx b/packages/core/src/components/select-item/select-item.tsx index 53369d41a86..5cf41671e47 100644 --- a/packages/core/src/components/select-item/select-item.tsx +++ b/packages/core/src/components/select-item/select-item.tsx @@ -18,7 +18,10 @@ import { Prop, Watch, } from '@stencil/core'; -import { IxSelectItemLabelChangeEvent } from './events'; +import { + IxSelectItemLabelChangeEvent, + IxSelectItemValueChangeEvent, +} from './events'; import { DropdownItemWrapper } from '../dropdown/dropdown-controller'; @Component({ @@ -85,6 +88,16 @@ export class SelectItem implements DropdownItemWrapper { } } + @Watch('value') + onValueChange(newValue: string, oldValue: string) { + this.hostElement.dispatchEvent( + new IxSelectItemValueChangeEvent({ + newValue: newValue, + oldValue: oldValue, + }) + ); + } + @Watch('label') labelChange(newValue: string, oldValue: string) { this.hostElement.dispatchEvent( diff --git a/packages/core/src/components/select/select.tsx b/packages/core/src/components/select/select.tsx index 905fb207f71..d83050ae037 100644 --- a/packages/core/src/components/select/select.tsx +++ b/packages/core/src/components/select/select.tsx @@ -320,7 +320,7 @@ export class Select { this.items.forEach((item) => { item.selected = ids.some((i) => { - if (typeof i !== typeof item.value) { + if (item.value !== undefined && typeof i !== typeof item.value) { return i.toString() === item.value.toString(); } else { return i === item.value; @@ -369,6 +369,7 @@ export class Select { this.updateSelection(); } + @Listen('ix-select-item:valueChange') @Listen('ix-select-item:labelChange') onLabelChange(event: IxSelectItemLabelChangeEvent) { event.preventDefault(); From b6e21304e945abb68356b9e54716ab51c1b1f3cc Mon Sep 17 00:00:00 2001 From: matthias Date: Mon, 11 Nov 2024 10:04:46 +0100 Subject: [PATCH 02/13] chore: changeset --- .changeset/lovely-garlics-pretend.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/lovely-garlics-pretend.md diff --git a/.changeset/lovely-garlics-pretend.md b/.changeset/lovely-garlics-pretend.md new file mode 100644 index 00000000000..c84be6575af --- /dev/null +++ b/.changeset/lovely-garlics-pretend.md @@ -0,0 +1,5 @@ +--- +'@siemens/ix': patch +--- + +fix(core/select): check if value is defined, before updating selection From b8e9a0e4ce7bd6ada6c08d62c97c387445ec8b4d Mon Sep 17 00:00:00 2001 From: matthias Date: Mon, 11 Nov 2024 10:29:36 +0100 Subject: [PATCH 03/13] fix: adapt component doc --- packages/core/component-doc.json | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/core/component-doc.json b/packages/core/component-doc.json index 47f9ee17ae8..c455e42b88a 100644 --- a/packages/core/component-doc.json +++ b/packages/core/component-doc.json @@ -13406,6 +13406,11 @@ "capture": false, "passive": false }, + { + "event": "ix-select-item:valueChange", + "capture": false, + "passive": false + }, { "event": "ix-select-item:labelChange", "capture": false, From 2cc36c3821dc66e1e6f8301138b5278f1c91dfd3 Mon Sep 17 00:00:00 2001 From: matthiashader <144090716+matthiashader@users.noreply.github.com> Date: Tue, 12 Nov 2024 07:44:41 +0100 Subject: [PATCH 04/13] fix: strict typing --- .../core/src/components/dropdown/dropdown-controller.ts | 2 +- packages/core/src/components/select-item/select-item.tsx | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/core/src/components/dropdown/dropdown-controller.ts b/packages/core/src/components/dropdown/dropdown-controller.ts index b0d356d102b..35f250ec948 100644 --- a/packages/core/src/components/dropdown/dropdown-controller.ts +++ b/packages/core/src/components/dropdown/dropdown-controller.ts @@ -39,7 +39,7 @@ export function hasDropdownItemWrapperImplemented( } export interface DropdownItemWrapper { - getDropdownItemElement(): Promise; + getDropdownItemElement(): Promise; } type SubmenuIds = Record; diff --git a/packages/core/src/components/select-item/select-item.tsx b/packages/core/src/components/select-item/select-item.tsx index 5cf41671e47..c545908dcda 100644 --- a/packages/core/src/components/select-item/select-item.tsx +++ b/packages/core/src/components/select-item/select-item.tsx @@ -30,12 +30,12 @@ import { DropdownItemWrapper } from '../dropdown/dropdown-controller'; shadow: true, }) export class SelectItem implements DropdownItemWrapper { - @Element() hostElement: HTMLIxSelectItemElement; + @Element() hostElement!: HTMLIxSelectItemElement; /** * Displayed name of the item */ - @Prop({ reflect: true }) label: string; + @Prop({ reflect: true }) label?: string; /** * The value of the item. @@ -58,11 +58,11 @@ export class SelectItem implements DropdownItemWrapper { /** * Item clicked */ - @Event() itemClick: EventEmitter; + @Event() itemClick!: EventEmitter; /** @internal */ @Method() - async getDropdownItemElement(): Promise { + async getDropdownItemElement(): Promise { return this.dropdownItem; } From 55c188cc113e55c07850c67ba52ebd500497868f Mon Sep 17 00:00:00 2001 From: matthiashader <144090716+matthiashader@users.noreply.github.com> Date: Tue, 12 Nov 2024 07:58:43 +0100 Subject: [PATCH 05/13] fix: component doc --- packages/core/component-doc.json | 2 +- packages/core/src/components.d.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/core/component-doc.json b/packages/core/component-doc.json index c455e42b88a..ac9f8b52418 100644 --- a/packages/core/component-doc.json +++ b/packages/core/component-doc.json @@ -13467,7 +13467,7 @@ "type": "string" } ], - "optional": false, + "optional": true, "required": false }, { diff --git a/packages/core/src/components.d.ts b/packages/core/src/components.d.ts index c92cc204b11..c1f6789685d 100644 --- a/packages/core/src/components.d.ts +++ b/packages/core/src/components.d.ts @@ -1914,12 +1914,12 @@ export namespace Components { "value"?: string | string[]; } interface IxSelectItem { - "getDropdownItemElement": () => Promise; + "getDropdownItemElement": () => Promise; "hover": boolean; /** * Displayed name of the item */ - "label": string; + "label"?: string; /** * @param event */ From cf3a5f4d99a846793b51bb8b8a5a6a22a205a0e7 Mon Sep 17 00:00:00 2001 From: matthiashader <144090716+matthiashader@users.noreply.github.com> Date: Tue, 12 Nov 2024 14:28:51 +0100 Subject: [PATCH 06/13] fix: remove unnecessary methods --- .../core/src/components/select-item/select-item.tsx | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/packages/core/src/components/select-item/select-item.tsx b/packages/core/src/components/select-item/select-item.tsx index c545908dcda..9974cf309b7 100644 --- a/packages/core/src/components/select-item/select-item.tsx +++ b/packages/core/src/components/select-item/select-item.tsx @@ -22,14 +22,13 @@ import { IxSelectItemLabelChangeEvent, IxSelectItemValueChangeEvent, } from './events'; -import { DropdownItemWrapper } from '../dropdown/dropdown-controller'; @Component({ tag: 'ix-select-item', styleUrl: 'select-item.scss', shadow: true, }) -export class SelectItem implements DropdownItemWrapper { +export class SelectItem { @Element() hostElement!: HTMLIxSelectItemElement; /** @@ -60,12 +59,6 @@ export class SelectItem implements DropdownItemWrapper { */ @Event() itemClick!: EventEmitter; - /** @internal */ - @Method() - async getDropdownItemElement(): Promise { - return this.dropdownItem; - } - /** * @internal * @param event @@ -78,10 +71,6 @@ export class SelectItem implements DropdownItemWrapper { this.itemClick.emit(this.value); } - get dropdownItem() { - return this.hostElement.querySelector('ix-dropdown-item'); - } - componentDidRender() { if (this.value === undefined || this.value === null) { throw Error('ix-select-item must have a `value` property'); From 2de45f18e0cecac67d7b670490354561f4e555a7 Mon Sep 17 00:00:00 2001 From: matthiashader <144090716+matthiashader@users.noreply.github.com> Date: Tue, 12 Nov 2024 14:35:34 +0100 Subject: [PATCH 07/13] fix: prevent to much updates --- .../components/select-item/select-item.tsx | 44 +++++++++++++------ 1 file changed, 31 insertions(+), 13 deletions(-) diff --git a/packages/core/src/components/select-item/select-item.tsx b/packages/core/src/components/select-item/select-item.tsx index 9974cf309b7..31425e37461 100644 --- a/packages/core/src/components/select-item/select-item.tsx +++ b/packages/core/src/components/select-item/select-item.tsx @@ -22,13 +22,14 @@ import { IxSelectItemLabelChangeEvent, IxSelectItemValueChangeEvent, } from './events'; +import { DropdownItemWrapper } from '../dropdown/dropdown-controller'; @Component({ tag: 'ix-select-item', styleUrl: 'select-item.scss', shadow: true, }) -export class SelectItem { +export class SelectItem implements DropdownItemWrapper { @Element() hostElement!: HTMLIxSelectItemElement; /** @@ -59,6 +60,14 @@ export class SelectItem { */ @Event() itemClick!: EventEmitter; + private componentLoaded = false; + + /** @internal */ + @Method() + async getDropdownItemElement(): Promise { + return this.dropdownItem; + } + /** * @internal * @param event @@ -71,30 +80,39 @@ export class SelectItem { this.itemClick.emit(this.value); } + get dropdownItem() { + return this.hostElement.querySelector('ix-dropdown-item'); + } + componentDidRender() { if (this.value === undefined || this.value === null) { throw Error('ix-select-item must have a `value` property'); } + this.componentLoaded = true; } @Watch('value') onValueChange(newValue: string, oldValue: string) { - this.hostElement.dispatchEvent( - new IxSelectItemValueChangeEvent({ - newValue: newValue, - oldValue: oldValue, - }) - ); + if (this.componentLoaded) { + this.hostElement.dispatchEvent( + new IxSelectItemValueChangeEvent({ + newValue: newValue, + oldValue: oldValue, + }) + ); + } } @Watch('label') labelChange(newValue: string, oldValue: string) { - this.hostElement.dispatchEvent( - new IxSelectItemLabelChangeEvent({ - newValue: newValue, - oldValue: oldValue, - }) - ); + if (this.componentLoaded) { + this.hostElement.dispatchEvent( + new IxSelectItemLabelChangeEvent({ + newValue: newValue, + oldValue: oldValue, + }) + ); + } } render() { From 76fae97c7409c5c3585fca007f7dae176f0fa70c Mon Sep 17 00:00:00 2001 From: matthiashader <144090716+matthiashader@users.noreply.github.com> Date: Thu, 14 Nov 2024 11:39:31 +0100 Subject: [PATCH 08/13] fix: sonar issues --- packages/core/src/components/select/select.tsx | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/packages/core/src/components/select/select.tsx b/packages/core/src/components/select/select.tsx index d83050ae037..aa27a1be625 100644 --- a/packages/core/src/components/select/select.tsx +++ b/packages/core/src/components/select/select.tsx @@ -139,10 +139,8 @@ export class Select { private customItemsContainerRef!: HTMLDivElement; private addItemRef!: HTMLIxDropdownItemElement; - private itemMutationObserver: MutationObserver; - private arrowFocusController: ArrowFocusController; - private focusControllerCallbackBind = this.focusDropdownItem.bind(this); + private readonly focusControllerCallbackBind = this.focusDropdownItem.bind(this); private itemObserver = createMutationObserver(() => { this.arrowFocusController.items = this.visibleNonShadowItems; @@ -377,12 +375,6 @@ export class Select { this.updateSelection(); } - disconnectedCallback() { - if (this.itemMutationObserver) { - this.itemMutationObserver.disconnect(); - } - } - private itemExists(item: string) { return this.items.find((i) => i.label === item); } From 250c61e73e093179b7db09a5237a12bee4b97e5a Mon Sep 17 00:00:00 2001 From: matthiashader <144090716+matthiashader@users.noreply.github.com> Date: Thu, 14 Nov 2024 12:11:15 +0100 Subject: [PATCH 09/13] fix: minor issues --- packages/core/src/components/dropdown/dropdown-controller.ts | 2 +- packages/core/src/components/select-item/select-item.tsx | 4 ++-- packages/core/src/components/select/select.tsx | 5 +++-- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/packages/core/src/components/dropdown/dropdown-controller.ts b/packages/core/src/components/dropdown/dropdown-controller.ts index 35f250ec948..b0d356d102b 100644 --- a/packages/core/src/components/dropdown/dropdown-controller.ts +++ b/packages/core/src/components/dropdown/dropdown-controller.ts @@ -39,7 +39,7 @@ export function hasDropdownItemWrapperImplemented( } export interface DropdownItemWrapper { - getDropdownItemElement(): Promise; + getDropdownItemElement(): Promise; } type SubmenuIds = Record; diff --git a/packages/core/src/components/select-item/select-item.tsx b/packages/core/src/components/select-item/select-item.tsx index 31425e37461..ca69311bbe3 100644 --- a/packages/core/src/components/select-item/select-item.tsx +++ b/packages/core/src/components/select-item/select-item.tsx @@ -64,8 +64,8 @@ export class SelectItem implements DropdownItemWrapper { /** @internal */ @Method() - async getDropdownItemElement(): Promise { - return this.dropdownItem; + async getDropdownItemElement(): Promise { + return this.dropdownItem as HTMLIxDropdownItemElement; } /** diff --git a/packages/core/src/components/select/select.tsx b/packages/core/src/components/select/select.tsx index aa27a1be625..befd11dd925 100644 --- a/packages/core/src/components/select/select.tsx +++ b/packages/core/src/components/select/select.tsx @@ -140,9 +140,10 @@ export class Select { private addItemRef!: HTMLIxDropdownItemElement; private arrowFocusController: ArrowFocusController; - private readonly focusControllerCallbackBind = this.focusDropdownItem.bind(this); + private readonly focusControllerCallbackBind = + this.focusDropdownItem.bind(this); - private itemObserver = createMutationObserver(() => { + private readonly itemObserver = createMutationObserver(() => { this.arrowFocusController.items = this.visibleNonShadowItems; }); From e6d79a067666ca4b04a24a177457be549e0a1767 Mon Sep 17 00:00:00 2001 From: matthiashader <144090716+matthiashader@users.noreply.github.com> Date: Thu, 14 Nov 2024 15:00:52 +0100 Subject: [PATCH 10/13] fix: typing --- packages/core/src/components/select-item/select-item.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/components/select-item/select-item.tsx b/packages/core/src/components/select-item/select-item.tsx index ca69311bbe3..780c6db6029 100644 --- a/packages/core/src/components/select-item/select-item.tsx +++ b/packages/core/src/components/select-item/select-item.tsx @@ -65,7 +65,7 @@ export class SelectItem implements DropdownItemWrapper { /** @internal */ @Method() async getDropdownItemElement(): Promise { - return this.dropdownItem as HTMLIxDropdownItemElement; + return this.dropdownItem!; } /** From 279913ab67062eade81611c1ca7c21482e88cb65 Mon Sep 17 00:00:00 2001 From: matthiashader <144090716+matthiashader@users.noreply.github.com> Date: Thu, 14 Nov 2024 15:13:59 +0100 Subject: [PATCH 11/13] fix: typing --- .../components/dropdown/dropdown-controller.ts | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/packages/core/src/components/dropdown/dropdown-controller.ts b/packages/core/src/components/dropdown/dropdown-controller.ts index e36da76313e..d0382e83b5b 100644 --- a/packages/core/src/components/dropdown/dropdown-controller.ts +++ b/packages/core/src/components/dropdown/dropdown-controller.ts @@ -32,7 +32,7 @@ export function hasDropdownItemWrapperImplemented( item: unknown ): item is DropdownItemWrapper { return ( - item && + item !== null && (item as DropdownItemWrapper).getDropdownItemElement !== undefined && typeof (item as DropdownItemWrapper).getDropdownItemElement === 'function' ); @@ -91,7 +91,7 @@ class DropdownController { } present(dropdown: DropdownInterface) { - if (!dropdown.isPresent() && dropdown.willPresent()) { + if (!dropdown.isPresent() && dropdown.willPresent?.()) { this.submenuIds[dropdown.getId()] = dropdown.getAssignedSubmenuIds(); dropdown.present(); } @@ -100,12 +100,15 @@ class DropdownController { dismissChildren(uid: string) { const childIds = this.submenuIds[uid] || []; for (const id of childIds) { - this.dismiss(this.dropdowns.get(id)); + const dropdown = this.dropdowns.get(id); + if (dropdown) { + this.dismiss(dropdown); + } } } dismiss(dropdown: DropdownInterface) { - if (dropdown.isPresent() && dropdown.willDismiss()) { + if (dropdown.isPresent() && dropdown.willDismiss?.()) { this.dismissChildren(dropdown.getId()); dropdown.dismiss(); delete this.submenuIds[dropdown.getId()]; @@ -175,7 +178,8 @@ class DropdownController { private pathIncludesDropdown(eventTargets: EventTarget[]) { return !!eventTargets.find( - (element: HTMLElement) => element.tagName === 'IX-DROPDOWN' + (element: EventTarget) => + (element as HTMLElement).tagName === 'IX-DROPDOWN' ); } @@ -196,7 +200,7 @@ class DropdownController { private addOverlayListeners() { this.isWindowListenerActive = true; - window.addEventListener('click', (event: PointerEvent) => { + window.addEventListener('click', (event: MouseEvent) => { const hasTrigger = this.pathIncludesTrigger(event.composedPath()); const hasDropdown = this.pathIncludesDropdown(event.composedPath()); From 7ca91b9089d5a0f713311bc6a802ba95cc4f69ef Mon Sep 17 00:00:00 2001 From: matthiashader <144090716+matthiashader@users.noreply.github.com> Date: Thu, 14 Nov 2024 15:19:06 +0100 Subject: [PATCH 12/13] fix: component doc --- packages/core/component-doc.json | 685 ++++++++++++++++++++---------- packages/core/src/components.d.ts | 12 +- 2 files changed, 477 insertions(+), 220 deletions(-) diff --git a/packages/core/component-doc.json b/packages/core/component-doc.json index 15c74bf5562..ce8ad010755 100644 --- a/packages/core/component-doc.json +++ b/packages/core/component-doc.json @@ -39,10 +39,10 @@ "props": [ { "name": "heading", - "type": "string", + "type": "string | undefined", "complexType": { "original": "string", - "resolved": "string", + "resolved": "string | undefined", "references": {} }, "mutable": false, @@ -53,6 +53,9 @@ "values": [ { "type": "string" + }, + { + "type": "undefined" } ], "optional": true, @@ -60,10 +63,10 @@ }, { "name": "icon", - "type": "string", + "type": "string | undefined", "complexType": { "original": "string | undefined", - "resolved": "string", + "resolved": "string | undefined", "references": {} }, "mutable": false, @@ -75,6 +78,9 @@ "values": [ { "type": "string" + }, + { + "type": "undefined" } ], "optional": false, @@ -104,10 +110,10 @@ }, { "name": "subheading", - "type": "string", + "type": "string | undefined", "complexType": { "original": "string", - "resolved": "string", + "resolved": "string | undefined", "references": {} }, "mutable": false, @@ -118,6 +124,9 @@ "values": [ { "type": "string" + }, + { + "type": "undefined" } ], "optional": true, @@ -229,10 +238,10 @@ "props": [ { "name": "appSwitchConfig", - "type": "{ currentAppId: string; apps: { id: string; name: string; description: string; url: string; target: AppSwitchConfigurationTarget; iconSrc: string; }[]; i18nAppSwitch?: string; i18nLoadingApps?: string; }", + "type": "{ currentAppId: string; apps: { id: string; name: string; description: string; url: string; target: AppSwitchConfigurationTarget; iconSrc: string; }[]; i18nAppSwitch?: string | undefined; i18nLoadingApps?: string | undefined; }", "complexType": { "original": "AppSwitchConfiguration", - "resolved": "{ currentAppId: string; apps: { id: string; name: string; description: string; url: string; target: AppSwitchConfigurationTarget; iconSrc: string; }[]; i18nAppSwitch?: string; i18nLoadingApps?: string; }", + "resolved": "{ currentAppId: string; apps: { id: string; name: string; description: string; url: string; target: AppSwitchConfigurationTarget; iconSrc: string; }[]; i18nAppSwitch?: string | undefined; i18nLoadingApps?: string | undefined; }", "references": { "AppSwitchConfiguration": { "location": "import", @@ -247,7 +256,13 @@ "docsTags": [], "values": [ { - "type": "{ currentAppId: string; apps: { id: string; name: string; description: string; url: string; target: AppSwitchConfigurationTarget; iconSrc: string; }[]; i18nAppSwitch?: string; i18nLoadingApps?: string; }" + "type": "{ currentAppId: string; apps: { id: string; name: string; description: string; url: string; target: AppSwitchConfigurationTarget; iconSrc: string; }[]; i18nAppSwitch?: string" + }, + { + "type": "undefined; i18nLoadingApps?: string" + }, + { + "type": "undefined; }" } ], "optional": false, @@ -289,10 +304,10 @@ }, { "name": "forceBreakpoint", - "type": "\"lg\" | \"md\" | \"sm\"", + "type": "\"lg\" | \"md\" | \"sm\" | undefined", "complexType": { "original": "Breakpoint | undefined", - "resolved": "\"lg\" | \"md\" | \"sm\"", + "resolved": "\"lg\" | \"md\" | \"sm\" | undefined", "references": { "Breakpoint": { "location": "import", @@ -318,6 +333,9 @@ { "value": "sm", "type": "string" + }, + { + "type": "undefined" } ], "optional": false, @@ -443,10 +461,10 @@ "props": [ { "name": "name", - "type": "string", + "type": "string | undefined", "complexType": { "original": "string", - "resolved": "string", + "resolved": "string | undefined", "references": {} }, "mutable": false, @@ -457,6 +475,9 @@ "values": [ { "type": "string" + }, + { + "type": "undefined" } ], "optional": true, @@ -464,10 +485,10 @@ }, { "name": "showMenu", - "type": "boolean", + "type": "boolean | undefined", "complexType": { "original": "boolean", - "resolved": "boolean", + "resolved": "boolean | undefined", "references": {} }, "mutable": true, @@ -484,6 +505,9 @@ "values": [ { "type": "boolean" + }, + { + "type": "undefined" } ], "optional": true, @@ -562,10 +586,10 @@ "props": [ { "name": "extra", - "type": "string", + "type": "string | undefined", "complexType": { "original": "string", - "resolved": "string", + "resolved": "string | undefined", "references": {} }, "mutable": false, @@ -581,6 +605,9 @@ "values": [ { "type": "string" + }, + { + "type": "undefined" } ], "optional": true, @@ -588,10 +615,10 @@ }, { "name": "image", - "type": "string", + "type": "string | undefined", "complexType": { "original": "string", - "resolved": "string", + "resolved": "string | undefined", "references": {} }, "mutable": false, @@ -602,6 +629,9 @@ "values": [ { "type": "string" + }, + { + "type": "undefined" } ], "optional": true, @@ -609,10 +639,10 @@ }, { "name": "initials", - "type": "string", + "type": "string | undefined", "complexType": { "original": "string", - "resolved": "string", + "resolved": "string | undefined", "references": {} }, "mutable": false, @@ -623,6 +653,9 @@ "values": [ { "type": "string" + }, + { + "type": "undefined" } ], "optional": true, @@ -630,10 +663,10 @@ }, { "name": "username", - "type": "string", + "type": "string | undefined", "complexType": { "original": "string", - "resolved": "string", + "resolved": "string | undefined", "references": {} }, "mutable": false, @@ -649,6 +682,9 @@ "values": [ { "type": "string" + }, + { + "type": "undefined" } ], "optional": true, @@ -759,10 +795,10 @@ }, { "name": "forceBreakpoint", - "type": "\"lg\" | \"md\" | \"sm\"", + "type": "\"lg\" | \"md\" | \"sm\" | undefined", "complexType": { "original": "Breakpoint | undefined", - "resolved": "\"lg\" | \"md\" | \"sm\"", + "resolved": "\"lg\" | \"md\" | \"sm\" | undefined", "references": { "Breakpoint": { "location": "import", @@ -788,6 +824,9 @@ { "value": "sm", "type": "string" + }, + { + "type": "undefined" } ], "optional": false, @@ -869,10 +908,10 @@ }, { "name": "icon", - "type": "string", + "type": "string | undefined", "complexType": { "original": "string", - "resolved": "string", + "resolved": "string | undefined", "references": {} }, "mutable": false, @@ -888,6 +927,9 @@ "values": [ { "type": "string" + }, + { + "type": "undefined" } ], "optional": true, @@ -895,10 +937,10 @@ }, { "name": "label", - "type": "string", + "type": "string | undefined", "complexType": { "original": "string", - "resolved": "string", + "resolved": "string | undefined", "references": {} }, "mutable": false, @@ -909,6 +951,9 @@ "values": [ { "type": "string" + }, + { + "type": "undefined" } ], "optional": true, @@ -916,10 +961,10 @@ }, { "name": "sublabel", - "type": "string", + "type": "string | undefined", "complexType": { "original": "string", - "resolved": "string", + "resolved": "string | undefined", "references": {} }, "mutable": false, @@ -935,6 +980,9 @@ "values": [ { "type": "string" + }, + { + "type": "undefined" } ], "optional": true, @@ -1390,10 +1438,10 @@ }, { "name": "icon", - "type": "string", + "type": "string | undefined", "complexType": { "original": "string", - "resolved": "string", + "resolved": "string | undefined", "references": {} }, "mutable": false, @@ -1404,6 +1452,9 @@ "values": [ { "type": "string" + }, + { + "type": "undefined" } ], "optional": true, @@ -1926,10 +1977,10 @@ }, { "name": "label", - "type": "string", + "type": "string | undefined", "complexType": { "original": "string", - "resolved": "string", + "resolved": "string | undefined", "references": {} }, "mutable": false, @@ -1940,6 +1991,9 @@ "values": [ { "type": "string" + }, + { + "type": "undefined" } ], "optional": true, @@ -1974,10 +2028,10 @@ }, { "name": "showAllCount", - "type": "number", + "type": "number | undefined", "complexType": { "original": "number", - "resolved": "number", + "resolved": "number | undefined", "references": {} }, "mutable": false, @@ -1988,6 +2042,9 @@ "values": [ { "type": "number" + }, + { + "type": "undefined" } ], "optional": true, @@ -2162,10 +2219,10 @@ "props": [ { "name": "categories", - "type": "{ [id: string]: { label: string; options: string[]; }; }", + "type": "undefined | { [id: string]: { label: string; options: string[]; }; }", "complexType": { "original": "{\n [id: string]: {\n label: string;\n options: string[];\n };\n }", - "resolved": "{ [id: string]: { label: string; options: string[]; }; }", + "resolved": "undefined | { [id: string]: { label: string; options: string[]; }; }", "references": {} }, "mutable": false, @@ -2173,6 +2230,9 @@ "docs": "Configuration object hash used to populate the dropdown menu for type-ahead and quick selection functionality.\nEach ID maps to an object with a label and an array of options to select from.", "docsTags": [], "values": [ + { + "type": "undefined" + }, { "type": "{ [id: string]: { label: string; options: string[]; }; }" } @@ -2204,10 +2264,10 @@ }, { "name": "filterState", - "type": "FilterState", + "type": "FilterState | undefined", "complexType": { "original": "FilterState", - "resolved": "FilterState", + "resolved": "FilterState | undefined", "references": { "FilterState": { "location": "import", @@ -2223,6 +2283,9 @@ "values": [ { "type": "FilterState" + }, + { + "type": "undefined" } ], "optional": true, @@ -2318,10 +2381,10 @@ }, { "name": "nonSelectableCategories", - "type": "{ [id: string]: string; }", + "type": "undefined | { [id: string]: string; }", "complexType": { "original": "{\n [id: string]: string;\n }", - "resolved": "{ [id: string]: string; }", + "resolved": "undefined | { [id: string]: string; }", "references": {} }, "mutable": false, @@ -2330,6 +2393,9 @@ "docsTags": [], "default": "{}", "values": [ + { + "type": "undefined" + }, { "type": "{ [id: string]: string; }" } @@ -2339,10 +2405,10 @@ }, { "name": "placeholder", - "type": "string", + "type": "string | undefined", "complexType": { "original": "string", - "resolved": "string", + "resolved": "string | undefined", "references": {} }, "mutable": false, @@ -2353,6 +2419,9 @@ "values": [ { "type": "string" + }, + { + "type": "undefined" } ], "optional": true, @@ -2404,10 +2473,10 @@ }, { "name": "staticOperator", - "type": "LogicalFilterOperator.EQUAL | LogicalFilterOperator.NOT_EQUAL", + "type": "LogicalFilterOperator.EQUAL | LogicalFilterOperator.NOT_EQUAL | undefined", "complexType": { "original": "LogicalFilterOperator", - "resolved": "LogicalFilterOperator.EQUAL | LogicalFilterOperator.NOT_EQUAL", + "resolved": "LogicalFilterOperator.EQUAL | LogicalFilterOperator.NOT_EQUAL | undefined", "references": { "LogicalFilterOperator": { "location": "import", @@ -2432,6 +2501,9 @@ }, { "type": "LogicalFilterOperator.NOT_EQUAL" + }, + { + "type": "undefined" } ], "optional": true, @@ -2439,10 +2511,10 @@ }, { "name": "suggestions", - "type": "string[]", + "type": "string[] | undefined", "complexType": { "original": "string[]", - "resolved": "string[]", + "resolved": "string[] | undefined", "references": {} }, "mutable": false, @@ -2452,6 +2524,9 @@ "values": [ { "type": "string[]" + }, + { + "type": "undefined" } ], "optional": true, @@ -2569,10 +2644,10 @@ }, { "name": "background", - "type": "string", + "type": "string | undefined", "complexType": { "original": "string | undefined", - "resolved": "string", + "resolved": "string | undefined", "references": {} }, "mutable": false, @@ -2583,6 +2658,9 @@ "values": [ { "type": "string" + }, + { + "type": "undefined" } ], "optional": false, @@ -2590,10 +2668,10 @@ }, { "name": "chipColor", - "type": "string", + "type": "string | undefined", "complexType": { "original": "string | undefined", - "resolved": "string", + "resolved": "string | undefined", "references": {} }, "mutable": false, @@ -2604,6 +2682,9 @@ "values": [ { "type": "string" + }, + { + "type": "undefined" } ], "optional": false, @@ -2633,10 +2714,10 @@ }, { "name": "color", - "type": "string", + "type": "string | undefined", "complexType": { "original": "string | undefined", - "resolved": "string", + "resolved": "string | undefined", "references": {} }, "mutable": false, @@ -2653,6 +2734,9 @@ "values": [ { "type": "string" + }, + { + "type": "undefined" } ], "optional": false, @@ -2813,10 +2897,10 @@ "props": [ { "name": "size", - "type": "\"1\" | \"10\" | \"11\" | \"12\" | \"2\" | \"3\" | \"4\" | \"5\" | \"6\" | \"7\" | \"8\" | \"9\" | \"auto\"", + "type": "\"1\" | \"10\" | \"11\" | \"12\" | \"2\" | \"3\" | \"4\" | \"5\" | \"6\" | \"7\" | \"8\" | \"9\" | \"auto\" | undefined", "complexType": { "original": "ColumnSize", - "resolved": "\"1\" | \"10\" | \"11\" | \"12\" | \"2\" | \"3\" | \"4\" | \"5\" | \"6\" | \"7\" | \"8\" | \"9\" | \"auto\"", + "resolved": "\"1\" | \"10\" | \"11\" | \"12\" | \"2\" | \"3\" | \"4\" | \"5\" | \"6\" | \"7\" | \"8\" | \"9\" | \"auto\" | undefined", "references": { "ColumnSize": { "location": "local", @@ -2882,6 +2966,9 @@ { "value": "auto", "type": "string" + }, + { + "type": "undefined" } ], "optional": true, @@ -2889,10 +2976,10 @@ }, { "name": "sizeLg", - "type": "\"1\" | \"10\" | \"11\" | \"12\" | \"2\" | \"3\" | \"4\" | \"5\" | \"6\" | \"7\" | \"8\" | \"9\" | \"auto\"", + "type": "\"1\" | \"10\" | \"11\" | \"12\" | \"2\" | \"3\" | \"4\" | \"5\" | \"6\" | \"7\" | \"8\" | \"9\" | \"auto\" | undefined", "complexType": { "original": "ColumnSize", - "resolved": "\"1\" | \"10\" | \"11\" | \"12\" | \"2\" | \"3\" | \"4\" | \"5\" | \"6\" | \"7\" | \"8\" | \"9\" | \"auto\"", + "resolved": "\"1\" | \"10\" | \"11\" | \"12\" | \"2\" | \"3\" | \"4\" | \"5\" | \"6\" | \"7\" | \"8\" | \"9\" | \"auto\" | undefined", "references": { "ColumnSize": { "location": "local", @@ -2958,6 +3045,9 @@ { "value": "auto", "type": "string" + }, + { + "type": "undefined" } ], "optional": true, @@ -2965,10 +3055,10 @@ }, { "name": "sizeMd", - "type": "\"1\" | \"10\" | \"11\" | \"12\" | \"2\" | \"3\" | \"4\" | \"5\" | \"6\" | \"7\" | \"8\" | \"9\" | \"auto\"", + "type": "\"1\" | \"10\" | \"11\" | \"12\" | \"2\" | \"3\" | \"4\" | \"5\" | \"6\" | \"7\" | \"8\" | \"9\" | \"auto\" | undefined", "complexType": { "original": "ColumnSize", - "resolved": "\"1\" | \"10\" | \"11\" | \"12\" | \"2\" | \"3\" | \"4\" | \"5\" | \"6\" | \"7\" | \"8\" | \"9\" | \"auto\"", + "resolved": "\"1\" | \"10\" | \"11\" | \"12\" | \"2\" | \"3\" | \"4\" | \"5\" | \"6\" | \"7\" | \"8\" | \"9\" | \"auto\" | undefined", "references": { "ColumnSize": { "location": "local", @@ -3034,6 +3124,9 @@ { "value": "auto", "type": "string" + }, + { + "type": "undefined" } ], "optional": true, @@ -3041,10 +3134,10 @@ }, { "name": "sizeSm", - "type": "\"1\" | \"10\" | \"11\" | \"12\" | \"2\" | \"3\" | \"4\" | \"5\" | \"6\" | \"7\" | \"8\" | \"9\" | \"auto\"", + "type": "\"1\" | \"10\" | \"11\" | \"12\" | \"2\" | \"3\" | \"4\" | \"5\" | \"6\" | \"7\" | \"8\" | \"9\" | \"auto\" | undefined", "complexType": { "original": "ColumnSize", - "resolved": "\"1\" | \"10\" | \"11\" | \"12\" | \"2\" | \"3\" | \"4\" | \"5\" | \"6\" | \"7\" | \"8\" | \"9\" | \"auto\"", + "resolved": "\"1\" | \"10\" | \"11\" | \"12\" | \"2\" | \"3\" | \"4\" | \"5\" | \"6\" | \"7\" | \"8\" | \"9\" | \"auto\" | undefined", "references": { "ColumnSize": { "location": "local", @@ -3110,6 +3203,9 @@ { "value": "auto", "type": "string" + }, + { + "type": "undefined" } ], "optional": true, @@ -3218,10 +3314,10 @@ }, { "name": "headerSubtitle", - "type": "string", + "type": "string | undefined", "complexType": { "original": "string | undefined", - "resolved": "string", + "resolved": "string | undefined", "references": {} }, "mutable": false, @@ -3233,6 +3329,9 @@ "values": [ { "type": "string" + }, + { + "type": "undefined" } ], "optional": false, @@ -3240,10 +3339,10 @@ }, { "name": "headerTitle", - "type": "string", + "type": "string | undefined", "complexType": { "original": "string", - "resolved": "string", + "resolved": "string | undefined", "references": {} }, "mutable": false, @@ -3254,6 +3353,9 @@ "values": [ { "type": "string" + }, + { + "type": "undefined" } ], "optional": true, @@ -3864,10 +3966,10 @@ }, { "name": "from", - "type": "string", + "type": "string | undefined", "complexType": { "original": "string | undefined", - "resolved": "string", + "resolved": "string | undefined", "references": {} }, "mutable": false, @@ -3883,6 +3985,9 @@ "values": [ { "type": "string" + }, + { + "type": "undefined" } ], "optional": false, @@ -3945,10 +4050,10 @@ }, { "name": "locale", - "type": "string", + "type": "string | undefined", "complexType": { "original": "string", - "resolved": "string", + "resolved": "string | undefined", "references": {} }, "mutable": false, @@ -3964,6 +4069,9 @@ "values": [ { "type": "string" + }, + { + "type": "undefined" } ], "optional": true, @@ -4079,10 +4187,10 @@ }, { "name": "to", - "type": "string", + "type": "string | undefined", "complexType": { "original": "string | undefined", - "resolved": "string", + "resolved": "string | undefined", "references": {} }, "mutable": false, @@ -4098,6 +4206,9 @@ "values": [ { "type": "string" + }, + { + "type": "undefined" } ], "optional": false, @@ -4135,11 +4246,11 @@ { "name": "getCurrentDate", "returns": { - "type": "Promise<{ from: string; to: string; }>", + "type": "Promise<{ from: string | undefined; to: string | undefined; }>", "docs": "" }, "complexType": { - "signature": "() => Promise<{ from: string; to: string; }>", + "signature": "() => Promise<{ from: string | undefined; to: string | undefined; }>", "parameters": [], "references": { "Promise": { @@ -4147,9 +4258,9 @@ "id": "global::Promise" } }, - "return": "Promise<{ from: string; to: string; }>" + "return": "Promise<{ from: string | undefined; to: string | undefined; }>" }, - "signature": "getCurrentDate() => Promise<{ from: string; to: string; }>", + "signature": "getCurrentDate() => Promise<{ from: string | undefined; to: string | undefined; }>", "parameters": [], "docs": "Get the currently selected date-range.", "docsTags": [] @@ -4368,10 +4479,10 @@ }, { "name": "from", - "type": "string", + "type": "string | undefined", "complexType": { "original": "string | undefined", - "resolved": "string", + "resolved": "string | undefined", "references": {} }, "mutable": false, @@ -4387,6 +4498,9 @@ "values": [ { "type": "string" + }, + { + "type": "undefined" } ], "optional": false, @@ -4588,14 +4702,13 @@ }, { "name": "showTimeReference", - "type": "any", + "type": "undefined", "complexType": { - "original": "any", - "resolved": "any", + "original": "undefined", + "resolved": "undefined", "references": {} }, "mutable": false, - "attr": "show-time-reference", "reflectToAttr": false, "docs": "Show time reference input\nTime reference is default aligned with", "docsTags": [ @@ -4611,7 +4724,7 @@ "default": "undefined", "values": [ { - "type": "any" + "type": "undefined" } ], "optional": false, @@ -4729,10 +4842,10 @@ }, { "name": "to", - "type": "string", + "type": "string | undefined", "complexType": { "original": "string | undefined", - "resolved": "string", + "resolved": "string | undefined", "references": {} }, "mutable": false, @@ -4748,6 +4861,9 @@ "values": [ { "type": "string" + }, + { + "type": "undefined" } ], "optional": false, @@ -5090,7 +5206,7 @@ "parameters": [ { "name": "show", - "type": "boolean", + "type": "boolean | undefined", "docs": "Overwrite toggle state with boolean" } ], @@ -5106,7 +5222,7 @@ "parameters": [ { "name": "show", - "type": "boolean", + "type": "boolean | undefined", "docs": "Overwrite toggle state with boolean" } ], @@ -5218,10 +5334,10 @@ "props": [ { "name": "anchor", - "type": "HTMLElement | Promise | string", + "type": "HTMLElement | Promise | string | undefined", "complexType": { "original": "ElementReference", - "resolved": "HTMLElement | Promise | string", + "resolved": "HTMLElement | Promise | string | undefined", "references": { "ElementReference": { "location": "import", @@ -5244,6 +5360,9 @@ }, { "type": "string" + }, + { + "type": "undefined" } ], "optional": true, @@ -5291,10 +5410,10 @@ }, { "name": "header", - "type": "string", + "type": "string | undefined", "complexType": { "original": "string", - "resolved": "string", + "resolved": "string | undefined", "references": {} }, "mutable": false, @@ -5305,6 +5424,9 @@ "values": [ { "type": "string" + }, + { + "type": "undefined" } ], "optional": true, @@ -5445,10 +5567,10 @@ }, { "name": "trigger", - "type": "HTMLElement | Promise | string", + "type": "HTMLElement | Promise | string | undefined", "complexType": { "original": "ElementReference", - "resolved": "HTMLElement | Promise | string", + "resolved": "HTMLElement | Promise | string | undefined", "references": { "ElementReference": { "location": "import", @@ -5471,6 +5593,9 @@ }, { "type": "string" + }, + { + "type": "undefined" } ], "optional": true, @@ -5651,10 +5776,10 @@ }, { "name": "icon", - "type": "string", + "type": "string | undefined", "complexType": { "original": "string", - "resolved": "string", + "resolved": "string | undefined", "references": {} }, "mutable": false, @@ -5665,6 +5790,9 @@ "values": [ { "type": "string" + }, + { + "type": "undefined" } ], "optional": true, @@ -5672,10 +5800,10 @@ }, { "name": "label", - "type": "string", + "type": "string | undefined", "complexType": { "original": "string", - "resolved": "string", + "resolved": "string | undefined", "references": {} }, "mutable": false, @@ -5686,6 +5814,9 @@ "values": [ { "type": "string" + }, + { + "type": "undefined" } ], "optional": true, @@ -5715,10 +5846,10 @@ }, { "name": "placement", - "type": "\"bottom-end\" | \"bottom-start\" | \"left-end\" | \"left-start\" | \"right-end\" | \"right-start\" | \"top-end\" | \"top-start\"", + "type": "\"bottom-end\" | \"bottom-start\" | \"left-end\" | \"left-start\" | \"right-end\" | \"right-start\" | \"top-end\" | \"top-start\" | undefined", "complexType": { "original": "AlignedPlacement", - "resolved": "\"bottom-end\" | \"bottom-start\" | \"left-end\" | \"left-start\" | \"right-end\" | \"right-start\" | \"top-end\" | \"top-start\"", + "resolved": "\"bottom-end\" | \"bottom-start\" | \"left-end\" | \"left-start\" | \"right-end\" | \"right-start\" | \"top-end\" | \"top-start\" | undefined", "references": { "AlignedPlacement": { "location": "import", @@ -5769,6 +5900,9 @@ { "value": "top-start", "type": "string" + }, + { + "type": "undefined" } ], "optional": true, @@ -5989,10 +6123,10 @@ }, { "name": "icon", - "type": "string", + "type": "string | undefined", "complexType": { "original": "string", - "resolved": "string", + "resolved": "string | undefined", "references": {} }, "mutable": false, @@ -6003,6 +6137,9 @@ "values": [ { "type": "string" + }, + { + "type": "undefined" } ], "optional": true, @@ -6010,10 +6147,10 @@ }, { "name": "label", - "type": "string", + "type": "string | undefined", "complexType": { "original": "string", - "resolved": "string", + "resolved": "string | undefined", "references": {} }, "mutable": false, @@ -6024,6 +6161,9 @@ "values": [ { "type": "string" + }, + { + "type": "undefined" } ], "optional": true, @@ -6424,10 +6564,10 @@ }, { "name": "color", - "type": "string", + "type": "string | undefined", "complexType": { "original": "string", - "resolved": "string", + "resolved": "string | undefined", "references": {} }, "mutable": false, @@ -6448,6 +6588,9 @@ "values": [ { "type": "string" + }, + { + "type": "undefined" } ], "optional": true, @@ -6477,10 +6620,10 @@ }, { "name": "itemColor", - "type": "string", + "type": "string | undefined", "complexType": { "original": "string", - "resolved": "string", + "resolved": "string | undefined", "references": {} }, "mutable": false, @@ -6496,6 +6639,9 @@ "values": [ { "type": "string" + }, + { + "type": "undefined" } ], "optional": true, @@ -7077,10 +7223,10 @@ }, { "name": "header", - "type": "string", + "type": "string | undefined", "complexType": { "original": "string", - "resolved": "string", + "resolved": "string | undefined", "references": {} }, "mutable": false, @@ -7091,6 +7237,9 @@ "values": [ { "type": "string" + }, + { + "type": "undefined" } ], "optional": true, @@ -7098,10 +7247,10 @@ }, { "name": "index", - "type": "number", + "type": "number | undefined", "complexType": { "original": "number", - "resolved": "number", + "resolved": "number | undefined", "references": {} }, "mutable": true, @@ -7112,6 +7261,9 @@ "values": [ { "type": "number" + }, + { + "type": "undefined" } ], "optional": true, @@ -7141,10 +7293,10 @@ }, { "name": "subHeader", - "type": "string", + "type": "string | undefined", "complexType": { "original": "string", - "resolved": "string", + "resolved": "string | undefined", "references": {} }, "mutable": false, @@ -7155,6 +7307,9 @@ "values": [ { "type": "string" + }, + { + "type": "undefined" } ], "optional": true, @@ -7322,10 +7477,10 @@ }, { "name": "icon", - "type": "string", + "type": "string | undefined", "complexType": { "original": "string", - "resolved": "string", + "resolved": "string | undefined", "references": {} }, "mutable": false, @@ -7336,6 +7491,9 @@ "values": [ { "type": "string" + }, + { + "type": "undefined" } ], "optional": true, @@ -7343,10 +7501,10 @@ }, { "name": "index", - "type": "number", + "type": "number | undefined", "complexType": { "original": "number", - "resolved": "number", + "resolved": "number | undefined", "references": {} }, "mutable": false, @@ -7357,6 +7515,9 @@ "values": [ { "type": "number" + }, + { + "type": "undefined" } ], "optional": true, @@ -7364,10 +7525,10 @@ }, { "name": "secondaryText", - "type": "string", + "type": "string | undefined", "complexType": { "original": "string", - "resolved": "string", + "resolved": "string | undefined", "references": {} }, "mutable": false, @@ -7378,6 +7539,9 @@ "values": [ { "type": "string" + }, + { + "type": "undefined" } ], "optional": true, @@ -7429,10 +7593,10 @@ }, { "name": "text", - "type": "string", + "type": "string | undefined", "complexType": { "original": "string", - "resolved": "string", + "resolved": "string | undefined", "references": {} }, "mutable": false, @@ -7443,6 +7607,9 @@ "values": [ { "type": "string" + }, + { + "type": "undefined" } ], "optional": true, @@ -8928,12 +9095,12 @@ }, { "name": "icon", - "type": "string", + "type": "string | undefined", "docs": "" }, { "name": "color", - "type": "string", + "type": "string | undefined", "docs": "" } ], @@ -8963,12 +9130,12 @@ }, { "name": "icon", - "type": "string", + "type": "string | undefined", "docs": "" }, { "name": "color", - "type": "string", + "type": "string | undefined", "docs": "" } ], @@ -9008,7 +9175,7 @@ "parameters": [ { "name": "show", - "type": "boolean", + "type": "boolean | undefined", "docs": "new visibility state" } ], @@ -9024,7 +9191,7 @@ "parameters": [ { "name": "show", - "type": "boolean", + "type": "boolean | undefined", "docs": "new visibility state" } ], @@ -9282,10 +9449,10 @@ }, { "name": "applicationName", - "type": "string", + "type": "string | undefined", "complexType": { "original": "string", - "resolved": "string", + "resolved": "string | undefined", "references": {} }, "mutable": false, @@ -9296,6 +9463,9 @@ "values": [ { "type": "string" + }, + { + "type": "undefined" } ], "optional": true, @@ -9694,7 +9864,7 @@ "parameters": [ { "name": "show", - "type": "boolean", + "type": "boolean | undefined", "docs": "" } ], @@ -9710,7 +9880,7 @@ "parameters": [ { "name": "show", - "type": "boolean", + "type": "boolean | undefined", "docs": "" } ], @@ -9733,7 +9903,7 @@ "parameters": [ { "name": "show", - "type": "boolean", + "type": "boolean | undefined", "docs": "" } ], @@ -9749,7 +9919,7 @@ "parameters": [ { "name": "show", - "type": "boolean", + "type": "boolean | undefined", "docs": "" } ], @@ -10787,10 +10957,10 @@ }, { "name": "icon", - "type": "string", + "type": "string | undefined", "complexType": { "original": "string", - "resolved": "string", + "resolved": "string | undefined", "references": {} }, "mutable": true, @@ -10806,6 +10976,9 @@ "values": [ { "type": "string" + }, + { + "type": "undefined" } ], "optional": true, @@ -10813,10 +10986,10 @@ }, { "name": "label", - "type": "string", + "type": "string | undefined", "complexType": { "original": "string", - "resolved": "string", + "resolved": "string | undefined", "references": {} }, "mutable": false, @@ -10832,6 +11005,9 @@ "values": [ { "type": "string" + }, + { + "type": "undefined" } ], "optional": true, @@ -10839,10 +11015,10 @@ }, { "name": "notifications", - "type": "number", + "type": "number | undefined", "complexType": { "original": "number", - "resolved": "number", + "resolved": "number | undefined", "references": {} }, "mutable": false, @@ -10853,6 +11029,9 @@ "values": [ { "type": "number" + }, + { + "type": "undefined" } ], "optional": true, @@ -10860,10 +11039,10 @@ }, { "name": "tabIcon", - "type": "string", + "type": "string | undefined", "complexType": { "original": "string", - "resolved": "string", + "resolved": "string | undefined", "references": {} }, "mutable": true, @@ -10884,6 +11063,9 @@ "values": [ { "type": "string" + }, + { + "type": "undefined" } ], "optional": true, @@ -11488,7 +11670,7 @@ "parameters": [ { "name": "reason", - "type": "T", + "type": "T | undefined", "docs": "" } ], @@ -11508,7 +11690,7 @@ "parameters": [ { "name": "reason", - "type": "T", + "type": "T | undefined", "docs": "" } ], @@ -11737,10 +11919,10 @@ }, { "name": "icon", - "type": "string", + "type": "string | undefined", "complexType": { "original": "string", - "resolved": "string", + "resolved": "string | undefined", "references": {} }, "mutable": false, @@ -11751,6 +11933,9 @@ "values": [ { "type": "string" + }, + { + "type": "undefined" } ], "optional": true, @@ -11758,10 +11943,10 @@ }, { "name": "iconColor", - "type": "string", + "type": "string | undefined", "complexType": { "original": "string", - "resolved": "string", + "resolved": "string | undefined", "references": {} }, "mutable": false, @@ -11772,6 +11957,9 @@ "values": [ { "type": "string" + }, + { + "type": "undefined" } ], "optional": true, @@ -12187,10 +12375,10 @@ }, { "name": "heading", - "type": "string", + "type": "string | undefined", "complexType": { "original": "string", - "resolved": "string", + "resolved": "string | undefined", "references": {} }, "mutable": false, @@ -12201,6 +12389,9 @@ "values": [ { "type": "string" + }, + { + "type": "undefined" } ], "optional": true, @@ -12230,10 +12421,10 @@ }, { "name": "icon", - "type": "string", + "type": "string | undefined", "complexType": { "original": "string", - "resolved": "string", + "resolved": "string | undefined", "references": {} }, "mutable": false, @@ -12244,6 +12435,9 @@ "values": [ { "type": "string" + }, + { + "type": "undefined" } ], "optional": true, @@ -12553,10 +12747,10 @@ }, { "name": "background", - "type": "string", + "type": "string | undefined", "complexType": { "original": "string | undefined", - "resolved": "string", + "resolved": "string | undefined", "references": {} }, "mutable": false, @@ -12567,6 +12761,9 @@ "values": [ { "type": "string" + }, + { + "type": "undefined" } ], "optional": false, @@ -12574,10 +12771,10 @@ }, { "name": "color", - "type": "string", + "type": "string | undefined", "complexType": { "original": "string | undefined", - "resolved": "string", + "resolved": "string | undefined", "references": {} }, "mutable": false, @@ -12594,6 +12791,9 @@ "values": [ { "type": "string" + }, + { + "type": "undefined" } ], "optional": false, @@ -12601,10 +12801,10 @@ }, { "name": "icon", - "type": "string", + "type": "string | undefined", "complexType": { "original": "string | undefined", - "resolved": "string", + "resolved": "string | undefined", "references": {} }, "mutable": false, @@ -12615,6 +12815,9 @@ "values": [ { "type": "string" + }, + { + "type": "undefined" } ], "optional": false, @@ -12644,10 +12847,10 @@ }, { "name": "pillColor", - "type": "string", + "type": "string | undefined", "complexType": { "original": "string | undefined", - "resolved": "string", + "resolved": "string | undefined", "references": {} }, "mutable": false, @@ -12658,6 +12861,9 @@ "values": [ { "type": "string" + }, + { + "type": "undefined" } ], "optional": false, @@ -12786,10 +12992,10 @@ }, { "name": "heading", - "type": "string", + "type": "string | undefined", "complexType": { "original": "string", - "resolved": "string", + "resolved": "string | undefined", "references": {} }, "mutable": false, @@ -12800,6 +13006,9 @@ "values": [ { "type": "string" + }, + { + "type": "undefined" } ], "optional": true, @@ -12807,10 +13016,10 @@ }, { "name": "icon", - "type": "string", + "type": "string | undefined", "complexType": { "original": "string | undefined", - "resolved": "string", + "resolved": "string | undefined", "references": {} }, "mutable": false, @@ -12822,6 +13031,9 @@ "values": [ { "type": "string" + }, + { + "type": "undefined" } ], "optional": false, @@ -12829,10 +13041,10 @@ }, { "name": "notification", - "type": "string", + "type": "string | undefined", "complexType": { "original": "string", - "resolved": "string", + "resolved": "string | undefined", "references": {} }, "mutable": false, @@ -12843,6 +13055,9 @@ "values": [ { "type": "string" + }, + { + "type": "undefined" } ], "optional": true, @@ -12850,10 +13065,10 @@ }, { "name": "subheading", - "type": "string", + "type": "string | undefined", "complexType": { "original": "string", - "resolved": "string", + "resolved": "string | undefined", "references": {} }, "mutable": false, @@ -12864,6 +13079,9 @@ "values": [ { "type": "string" + }, + { + "type": "undefined" } ], "optional": true, @@ -13271,10 +13489,10 @@ }, { "name": "selectedIndices", - "type": "string | string[]", + "type": "string | string[] | undefined", "complexType": { "original": "string | string[]", - "resolved": "string | string[]", + "resolved": "string | string[] | undefined", "references": {} }, "mutable": true, @@ -13294,6 +13512,9 @@ }, { "type": "string[]" + }, + { + "type": "undefined" } ], "optional": true, @@ -13301,10 +13522,10 @@ }, { "name": "value", - "type": "string | string[]", + "type": "string | string[] | undefined", "complexType": { "original": "string | string[]", - "resolved": "string | string[]", + "resolved": "string | string[] | undefined", "references": {} }, "mutable": true, @@ -13323,6 +13544,9 @@ }, { "type": "string[]" + }, + { + "type": "undefined" } ], "optional": true, @@ -13458,10 +13682,10 @@ "props": [ { "name": "label", - "type": "string", + "type": "string | undefined", "complexType": { "original": "string", - "resolved": "string", + "resolved": "string | undefined", "references": {} }, "mutable": false, @@ -13472,6 +13696,9 @@ "values": [ { "type": "string" + }, + { + "type": "undefined" } ], "optional": true, @@ -13613,10 +13840,10 @@ }, { "name": "error", - "type": "boolean | string", + "type": "boolean | string | undefined", "complexType": { "original": "boolean | string", - "resolved": "boolean | string", + "resolved": "boolean | string | undefined", "references": {} }, "mutable": false, @@ -13630,6 +13857,9 @@ }, { "type": "string" + }, + { + "type": "undefined" } ], "optional": true, @@ -13637,10 +13867,10 @@ }, { "name": "marker", - "type": "number[]", + "type": "number[] | undefined", "complexType": { "original": "SliderMarker", - "resolved": "number[]", + "resolved": "number[] | undefined", "references": { "SliderMarker": { "location": "local", @@ -13656,6 +13886,9 @@ "values": [ { "type": "number[]" + }, + { + "type": "undefined" } ], "optional": true, @@ -14426,10 +14659,10 @@ "props": [ { "name": "counter", - "type": "number", + "type": "number | undefined", "complexType": { "original": "number", - "resolved": "number", + "resolved": "number | undefined", "references": {} }, "mutable": false, @@ -14440,6 +14673,9 @@ "values": [ { "type": "number" + }, + { + "type": "undefined" } ], "optional": true, @@ -15087,10 +15323,10 @@ }, { "name": "showTimeReference", - "type": "boolean", + "type": "boolean | undefined", "complexType": { "original": "boolean", - "resolved": "boolean", + "resolved": "boolean | undefined", "references": {} }, "mutable": true, @@ -15112,6 +15348,9 @@ "values": [ { "type": "boolean" + }, + { + "type": "undefined" } ], "optional": true, @@ -15222,10 +15461,10 @@ }, { "name": "timeReference", - "type": "\"AM\" | \"PM\"", + "type": "\"AM\" | \"PM\" | undefined", "complexType": { "original": "'AM' | 'PM' | undefined", - "resolved": "\"AM\" | \"PM\"", + "resolved": "\"AM\" | \"PM\" | undefined", "references": {} }, "mutable": false, @@ -15241,6 +15480,9 @@ { "value": "PM", "type": "string" + }, + { + "type": "undefined" } ], "optional": false, @@ -16145,10 +16387,10 @@ "props": [ { "name": "for", - "type": "HTMLElement | Promise | string", + "type": "HTMLElement | Promise | string | undefined", "complexType": { "original": "ElementReference", - "resolved": "HTMLElement | Promise | string", + "resolved": "HTMLElement | Promise | string | undefined", "references": { "ElementReference": { "location": "import", @@ -16171,6 +16413,9 @@ }, { "type": "string" + }, + { + "type": "undefined" } ], "optional": true, @@ -16240,10 +16485,10 @@ }, { "name": "titleContent", - "type": "string", + "type": "string | undefined", "complexType": { "original": "string", - "resolved": "string", + "resolved": "string | undefined", "references": {} }, "mutable": false, @@ -16254,6 +16499,9 @@ "values": [ { "type": "string" + }, + { + "type": "undefined" } ], "optional": true, @@ -16354,10 +16602,10 @@ }, { "name": "renderItem", - "type": "(index: number, data: T, dataList: T[], context: TreeContext, update: (callback: UpdateCallback) => void) => HTMLElement", + "type": "((index: number, data: T, dataList: T[], context: TreeContext, update: (callback: UpdateCallback) => void) => HTMLElement) | undefined", "complexType": { "original": "(\n index: number,\n data: T,\n dataList: Array,\n context: TreeContext,\n update: (callback: UpdateCallback) => void\n ) => HTMLElement", - "resolved": "(index: number, data: T, dataList: T[], context: TreeContext, update: (callback: UpdateCallback) => void) => HTMLElement", + "resolved": "((index: number, data: T, dataList: T[], context: TreeContext, update: (callback: UpdateCallback) => void) => HTMLElement) | undefined", "references": { "T": { "location": "global", @@ -16389,7 +16637,10 @@ "docsTags": [], "values": [ { - "type": "(index: number, data: T, dataList: T[], context: TreeContext, update: (callback: UpdateCallback) => void) => HTMLElement" + "type": "((index: number, data: T, dataList: T[], context: TreeContext, update: (callback: UpdateCallback) => void) => HTMLElement)" + }, + { + "type": "undefined" } ], "optional": true, @@ -16521,10 +16772,10 @@ "props": [ { "name": "context", - "type": "TreeItemContext", + "type": "TreeItemContext | undefined", "complexType": { "original": "TreeItemContext", - "resolved": "TreeItemContext", + "resolved": "TreeItemContext | undefined", "references": { "TreeItemContext": { "location": "import", @@ -16540,6 +16791,9 @@ "values": [ { "type": "TreeItemContext" + }, + { + "type": "undefined" } ], "optional": true, @@ -16569,10 +16823,10 @@ }, { "name": "text", - "type": "string", + "type": "string | undefined", "complexType": { "original": "string", - "resolved": "string", + "resolved": "string | undefined", "references": {} }, "mutable": false, @@ -16583,6 +16837,9 @@ "values": [ { "type": "string" + }, + { + "type": "undefined" } ], "optional": true, @@ -16744,10 +17001,10 @@ }, { "name": "color", - "type": "\"alarm\" | \"contrast\" | \"inv-contrast\" | \"inv-soft\" | \"inv-std\" | \"inv-weak\" | \"soft\" | \"std\" | \"weak\"", + "type": "\"alarm\" | \"contrast\" | \"inv-contrast\" | \"inv-soft\" | \"inv-std\" | \"inv-weak\" | \"soft\" | \"std\" | \"weak\" | undefined", "complexType": { "original": "TypographyColors", - "resolved": "\"alarm\" | \"contrast\" | \"inv-contrast\" | \"inv-soft\" | \"inv-std\" | \"inv-weak\" | \"soft\" | \"std\" | \"weak\"", + "resolved": "\"alarm\" | \"contrast\" | \"inv-contrast\" | \"inv-soft\" | \"inv-std\" | \"inv-weak\" | \"soft\" | \"std\" | \"weak\" | undefined", "references": { "TypographyColors": { "location": "local", @@ -16803,6 +17060,9 @@ { "value": "weak", "type": "string" + }, + { + "type": "undefined" } ], "optional": true, @@ -16810,10 +17070,10 @@ }, { "name": "format", - "type": "TypographyFormatLabel | TypographyFormatBody | TypographyFormatDisplay | TypographyFormatHeading | TypographyFormatCode", + "type": "TypographyFormat | undefined", "complexType": { "original": "TypographyFormat", - "resolved": "TypographyFormatLabel | TypographyFormatBody | TypographyFormatDisplay | TypographyFormatHeading | TypographyFormatCode", + "resolved": "TypographyFormat | undefined", "references": { "TypographyFormat": { "location": "local", @@ -16829,19 +17089,10 @@ "docsTags": [], "values": [ { - "type": "TypographyFormatLabel" - }, - { - "type": "TypographyFormatBody" + "type": "TypographyFormat" }, { - "type": "TypographyFormatDisplay" - }, - { - "type": "TypographyFormatHeading" - }, - { - "type": "TypographyFormatCode" + "type": "undefined" } ], "optional": true, @@ -16849,10 +17100,10 @@ }, { "name": "textColor", - "type": "\"alarm\" | \"contrast\" | \"inv-contrast\" | \"inv-soft\" | \"inv-std\" | \"inv-weak\" | \"soft\" | \"std\" | \"weak\"", + "type": "\"alarm\" | \"contrast\" | \"inv-contrast\" | \"inv-soft\" | \"inv-std\" | \"inv-weak\" | \"soft\" | \"std\" | \"weak\" | undefined", "complexType": { "original": "TypographyColors", - "resolved": "\"alarm\" | \"contrast\" | \"inv-contrast\" | \"inv-soft\" | \"inv-std\" | \"inv-weak\" | \"soft\" | \"std\" | \"weak\"", + "resolved": "\"alarm\" | \"contrast\" | \"inv-contrast\" | \"inv-soft\" | \"inv-std\" | \"inv-weak\" | \"soft\" | \"std\" | \"weak\" | undefined", "references": { "TypographyColors": { "location": "local", @@ -16902,6 +17153,9 @@ { "value": "weak", "type": "string" + }, + { + "type": "undefined" } ], "optional": true, @@ -16981,10 +17235,10 @@ "props": [ { "name": "accept", - "type": "string", + "type": "string | undefined", "complexType": { "original": "string", - "resolved": "string", + "resolved": "string | undefined", "references": {} }, "mutable": false, @@ -16995,6 +17249,9 @@ "values": [ { "type": "string" + }, + { + "type": "undefined" } ], "optional": true, diff --git a/packages/core/src/components.d.ts b/packages/core/src/components.d.ts index 79d683cb66a..ea168864085 100644 --- a/packages/core/src/components.d.ts +++ b/packages/core/src/components.d.ts @@ -617,7 +617,7 @@ export namespace Components { /** * Get the currently selected date-range. */ - "getCurrentDate": () => Promise<{ from: string; to: string; }>; + "getCurrentDate": () => Promise<{ from: string | undefined; to: string | undefined; }>; /** * Text of date select button * @since 2.1.0 @@ -674,7 +674,7 @@ export namespace Components { * set styles */ "individual": boolean; - "standaloneAppearance": any; + "standaloneAppearance": undefined; } interface IxDatetimePicker { /** @@ -734,7 +734,7 @@ export namespace Components { * @see { this.timeFormat} * @since 1.1.0 */ - "showTimeReference": any; + "showTimeReference": undefined; /** * Text of date select button * @since 1.1.0 @@ -1918,7 +1918,7 @@ export namespace Components { "value"?: string | string[]; } interface IxSelectItem { - "getDropdownItemElement": () => Promise; + "getDropdownItemElement": () => Promise; "hover": boolean; /** * Displayed name of the item @@ -4787,7 +4787,7 @@ declare namespace LocalJSX { * set styles */ "individual"?: boolean; - "standaloneAppearance"?: any; + "standaloneAppearance"?: undefined; } interface IxDatetimePicker { /** @@ -4867,7 +4867,7 @@ declare namespace LocalJSX { * @see { this.timeFormat} * @since 1.1.0 */ - "showTimeReference"?: any; + "showTimeReference"?: undefined; /** * Text of date select button * @since 1.1.0 From 27c39bc8e1b56d28c972450d2b48c2af7005633b Mon Sep 17 00:00:00 2001 From: matthiashader <144090716+matthiashader@users.noreply.github.com> Date: Fri, 15 Nov 2024 10:57:54 +0100 Subject: [PATCH 13/13] fix: component doc --- packages/core/component-doc.json | 685 ++++++++++-------------------- packages/core/src/components.d.ts | 10 +- 2 files changed, 219 insertions(+), 476 deletions(-) diff --git a/packages/core/component-doc.json b/packages/core/component-doc.json index ce8ad010755..15c74bf5562 100644 --- a/packages/core/component-doc.json +++ b/packages/core/component-doc.json @@ -39,10 +39,10 @@ "props": [ { "name": "heading", - "type": "string | undefined", + "type": "string", "complexType": { "original": "string", - "resolved": "string | undefined", + "resolved": "string", "references": {} }, "mutable": false, @@ -53,9 +53,6 @@ "values": [ { "type": "string" - }, - { - "type": "undefined" } ], "optional": true, @@ -63,10 +60,10 @@ }, { "name": "icon", - "type": "string | undefined", + "type": "string", "complexType": { "original": "string | undefined", - "resolved": "string | undefined", + "resolved": "string", "references": {} }, "mutable": false, @@ -78,9 +75,6 @@ "values": [ { "type": "string" - }, - { - "type": "undefined" } ], "optional": false, @@ -110,10 +104,10 @@ }, { "name": "subheading", - "type": "string | undefined", + "type": "string", "complexType": { "original": "string", - "resolved": "string | undefined", + "resolved": "string", "references": {} }, "mutable": false, @@ -124,9 +118,6 @@ "values": [ { "type": "string" - }, - { - "type": "undefined" } ], "optional": true, @@ -238,10 +229,10 @@ "props": [ { "name": "appSwitchConfig", - "type": "{ currentAppId: string; apps: { id: string; name: string; description: string; url: string; target: AppSwitchConfigurationTarget; iconSrc: string; }[]; i18nAppSwitch?: string | undefined; i18nLoadingApps?: string | undefined; }", + "type": "{ currentAppId: string; apps: { id: string; name: string; description: string; url: string; target: AppSwitchConfigurationTarget; iconSrc: string; }[]; i18nAppSwitch?: string; i18nLoadingApps?: string; }", "complexType": { "original": "AppSwitchConfiguration", - "resolved": "{ currentAppId: string; apps: { id: string; name: string; description: string; url: string; target: AppSwitchConfigurationTarget; iconSrc: string; }[]; i18nAppSwitch?: string | undefined; i18nLoadingApps?: string | undefined; }", + "resolved": "{ currentAppId: string; apps: { id: string; name: string; description: string; url: string; target: AppSwitchConfigurationTarget; iconSrc: string; }[]; i18nAppSwitch?: string; i18nLoadingApps?: string; }", "references": { "AppSwitchConfiguration": { "location": "import", @@ -256,13 +247,7 @@ "docsTags": [], "values": [ { - "type": "{ currentAppId: string; apps: { id: string; name: string; description: string; url: string; target: AppSwitchConfigurationTarget; iconSrc: string; }[]; i18nAppSwitch?: string" - }, - { - "type": "undefined; i18nLoadingApps?: string" - }, - { - "type": "undefined; }" + "type": "{ currentAppId: string; apps: { id: string; name: string; description: string; url: string; target: AppSwitchConfigurationTarget; iconSrc: string; }[]; i18nAppSwitch?: string; i18nLoadingApps?: string; }" } ], "optional": false, @@ -304,10 +289,10 @@ }, { "name": "forceBreakpoint", - "type": "\"lg\" | \"md\" | \"sm\" | undefined", + "type": "\"lg\" | \"md\" | \"sm\"", "complexType": { "original": "Breakpoint | undefined", - "resolved": "\"lg\" | \"md\" | \"sm\" | undefined", + "resolved": "\"lg\" | \"md\" | \"sm\"", "references": { "Breakpoint": { "location": "import", @@ -333,9 +318,6 @@ { "value": "sm", "type": "string" - }, - { - "type": "undefined" } ], "optional": false, @@ -461,10 +443,10 @@ "props": [ { "name": "name", - "type": "string | undefined", + "type": "string", "complexType": { "original": "string", - "resolved": "string | undefined", + "resolved": "string", "references": {} }, "mutable": false, @@ -475,9 +457,6 @@ "values": [ { "type": "string" - }, - { - "type": "undefined" } ], "optional": true, @@ -485,10 +464,10 @@ }, { "name": "showMenu", - "type": "boolean | undefined", + "type": "boolean", "complexType": { "original": "boolean", - "resolved": "boolean | undefined", + "resolved": "boolean", "references": {} }, "mutable": true, @@ -505,9 +484,6 @@ "values": [ { "type": "boolean" - }, - { - "type": "undefined" } ], "optional": true, @@ -586,10 +562,10 @@ "props": [ { "name": "extra", - "type": "string | undefined", + "type": "string", "complexType": { "original": "string", - "resolved": "string | undefined", + "resolved": "string", "references": {} }, "mutable": false, @@ -605,9 +581,6 @@ "values": [ { "type": "string" - }, - { - "type": "undefined" } ], "optional": true, @@ -615,10 +588,10 @@ }, { "name": "image", - "type": "string | undefined", + "type": "string", "complexType": { "original": "string", - "resolved": "string | undefined", + "resolved": "string", "references": {} }, "mutable": false, @@ -629,9 +602,6 @@ "values": [ { "type": "string" - }, - { - "type": "undefined" } ], "optional": true, @@ -639,10 +609,10 @@ }, { "name": "initials", - "type": "string | undefined", + "type": "string", "complexType": { "original": "string", - "resolved": "string | undefined", + "resolved": "string", "references": {} }, "mutable": false, @@ -653,9 +623,6 @@ "values": [ { "type": "string" - }, - { - "type": "undefined" } ], "optional": true, @@ -663,10 +630,10 @@ }, { "name": "username", - "type": "string | undefined", + "type": "string", "complexType": { "original": "string", - "resolved": "string | undefined", + "resolved": "string", "references": {} }, "mutable": false, @@ -682,9 +649,6 @@ "values": [ { "type": "string" - }, - { - "type": "undefined" } ], "optional": true, @@ -795,10 +759,10 @@ }, { "name": "forceBreakpoint", - "type": "\"lg\" | \"md\" | \"sm\" | undefined", + "type": "\"lg\" | \"md\" | \"sm\"", "complexType": { "original": "Breakpoint | undefined", - "resolved": "\"lg\" | \"md\" | \"sm\" | undefined", + "resolved": "\"lg\" | \"md\" | \"sm\"", "references": { "Breakpoint": { "location": "import", @@ -824,9 +788,6 @@ { "value": "sm", "type": "string" - }, - { - "type": "undefined" } ], "optional": false, @@ -908,10 +869,10 @@ }, { "name": "icon", - "type": "string | undefined", + "type": "string", "complexType": { "original": "string", - "resolved": "string | undefined", + "resolved": "string", "references": {} }, "mutable": false, @@ -927,9 +888,6 @@ "values": [ { "type": "string" - }, - { - "type": "undefined" } ], "optional": true, @@ -937,10 +895,10 @@ }, { "name": "label", - "type": "string | undefined", + "type": "string", "complexType": { "original": "string", - "resolved": "string | undefined", + "resolved": "string", "references": {} }, "mutable": false, @@ -951,9 +909,6 @@ "values": [ { "type": "string" - }, - { - "type": "undefined" } ], "optional": true, @@ -961,10 +916,10 @@ }, { "name": "sublabel", - "type": "string | undefined", + "type": "string", "complexType": { "original": "string", - "resolved": "string | undefined", + "resolved": "string", "references": {} }, "mutable": false, @@ -980,9 +935,6 @@ "values": [ { "type": "string" - }, - { - "type": "undefined" } ], "optional": true, @@ -1438,10 +1390,10 @@ }, { "name": "icon", - "type": "string | undefined", + "type": "string", "complexType": { "original": "string", - "resolved": "string | undefined", + "resolved": "string", "references": {} }, "mutable": false, @@ -1452,9 +1404,6 @@ "values": [ { "type": "string" - }, - { - "type": "undefined" } ], "optional": true, @@ -1977,10 +1926,10 @@ }, { "name": "label", - "type": "string | undefined", + "type": "string", "complexType": { "original": "string", - "resolved": "string | undefined", + "resolved": "string", "references": {} }, "mutable": false, @@ -1991,9 +1940,6 @@ "values": [ { "type": "string" - }, - { - "type": "undefined" } ], "optional": true, @@ -2028,10 +1974,10 @@ }, { "name": "showAllCount", - "type": "number | undefined", + "type": "number", "complexType": { "original": "number", - "resolved": "number | undefined", + "resolved": "number", "references": {} }, "mutable": false, @@ -2042,9 +1988,6 @@ "values": [ { "type": "number" - }, - { - "type": "undefined" } ], "optional": true, @@ -2219,10 +2162,10 @@ "props": [ { "name": "categories", - "type": "undefined | { [id: string]: { label: string; options: string[]; }; }", + "type": "{ [id: string]: { label: string; options: string[]; }; }", "complexType": { "original": "{\n [id: string]: {\n label: string;\n options: string[];\n };\n }", - "resolved": "undefined | { [id: string]: { label: string; options: string[]; }; }", + "resolved": "{ [id: string]: { label: string; options: string[]; }; }", "references": {} }, "mutable": false, @@ -2230,9 +2173,6 @@ "docs": "Configuration object hash used to populate the dropdown menu for type-ahead and quick selection functionality.\nEach ID maps to an object with a label and an array of options to select from.", "docsTags": [], "values": [ - { - "type": "undefined" - }, { "type": "{ [id: string]: { label: string; options: string[]; }; }" } @@ -2264,10 +2204,10 @@ }, { "name": "filterState", - "type": "FilterState | undefined", + "type": "FilterState", "complexType": { "original": "FilterState", - "resolved": "FilterState | undefined", + "resolved": "FilterState", "references": { "FilterState": { "location": "import", @@ -2283,9 +2223,6 @@ "values": [ { "type": "FilterState" - }, - { - "type": "undefined" } ], "optional": true, @@ -2381,10 +2318,10 @@ }, { "name": "nonSelectableCategories", - "type": "undefined | { [id: string]: string; }", + "type": "{ [id: string]: string; }", "complexType": { "original": "{\n [id: string]: string;\n }", - "resolved": "undefined | { [id: string]: string; }", + "resolved": "{ [id: string]: string; }", "references": {} }, "mutable": false, @@ -2393,9 +2330,6 @@ "docsTags": [], "default": "{}", "values": [ - { - "type": "undefined" - }, { "type": "{ [id: string]: string; }" } @@ -2405,10 +2339,10 @@ }, { "name": "placeholder", - "type": "string | undefined", + "type": "string", "complexType": { "original": "string", - "resolved": "string | undefined", + "resolved": "string", "references": {} }, "mutable": false, @@ -2419,9 +2353,6 @@ "values": [ { "type": "string" - }, - { - "type": "undefined" } ], "optional": true, @@ -2473,10 +2404,10 @@ }, { "name": "staticOperator", - "type": "LogicalFilterOperator.EQUAL | LogicalFilterOperator.NOT_EQUAL | undefined", + "type": "LogicalFilterOperator.EQUAL | LogicalFilterOperator.NOT_EQUAL", "complexType": { "original": "LogicalFilterOperator", - "resolved": "LogicalFilterOperator.EQUAL | LogicalFilterOperator.NOT_EQUAL | undefined", + "resolved": "LogicalFilterOperator.EQUAL | LogicalFilterOperator.NOT_EQUAL", "references": { "LogicalFilterOperator": { "location": "import", @@ -2501,9 +2432,6 @@ }, { "type": "LogicalFilterOperator.NOT_EQUAL" - }, - { - "type": "undefined" } ], "optional": true, @@ -2511,10 +2439,10 @@ }, { "name": "suggestions", - "type": "string[] | undefined", + "type": "string[]", "complexType": { "original": "string[]", - "resolved": "string[] | undefined", + "resolved": "string[]", "references": {} }, "mutable": false, @@ -2524,9 +2452,6 @@ "values": [ { "type": "string[]" - }, - { - "type": "undefined" } ], "optional": true, @@ -2644,10 +2569,10 @@ }, { "name": "background", - "type": "string | undefined", + "type": "string", "complexType": { "original": "string | undefined", - "resolved": "string | undefined", + "resolved": "string", "references": {} }, "mutable": false, @@ -2658,9 +2583,6 @@ "values": [ { "type": "string" - }, - { - "type": "undefined" } ], "optional": false, @@ -2668,10 +2590,10 @@ }, { "name": "chipColor", - "type": "string | undefined", + "type": "string", "complexType": { "original": "string | undefined", - "resolved": "string | undefined", + "resolved": "string", "references": {} }, "mutable": false, @@ -2682,9 +2604,6 @@ "values": [ { "type": "string" - }, - { - "type": "undefined" } ], "optional": false, @@ -2714,10 +2633,10 @@ }, { "name": "color", - "type": "string | undefined", + "type": "string", "complexType": { "original": "string | undefined", - "resolved": "string | undefined", + "resolved": "string", "references": {} }, "mutable": false, @@ -2734,9 +2653,6 @@ "values": [ { "type": "string" - }, - { - "type": "undefined" } ], "optional": false, @@ -2897,10 +2813,10 @@ "props": [ { "name": "size", - "type": "\"1\" | \"10\" | \"11\" | \"12\" | \"2\" | \"3\" | \"4\" | \"5\" | \"6\" | \"7\" | \"8\" | \"9\" | \"auto\" | undefined", + "type": "\"1\" | \"10\" | \"11\" | \"12\" | \"2\" | \"3\" | \"4\" | \"5\" | \"6\" | \"7\" | \"8\" | \"9\" | \"auto\"", "complexType": { "original": "ColumnSize", - "resolved": "\"1\" | \"10\" | \"11\" | \"12\" | \"2\" | \"3\" | \"4\" | \"5\" | \"6\" | \"7\" | \"8\" | \"9\" | \"auto\" | undefined", + "resolved": "\"1\" | \"10\" | \"11\" | \"12\" | \"2\" | \"3\" | \"4\" | \"5\" | \"6\" | \"7\" | \"8\" | \"9\" | \"auto\"", "references": { "ColumnSize": { "location": "local", @@ -2966,9 +2882,6 @@ { "value": "auto", "type": "string" - }, - { - "type": "undefined" } ], "optional": true, @@ -2976,10 +2889,10 @@ }, { "name": "sizeLg", - "type": "\"1\" | \"10\" | \"11\" | \"12\" | \"2\" | \"3\" | \"4\" | \"5\" | \"6\" | \"7\" | \"8\" | \"9\" | \"auto\" | undefined", + "type": "\"1\" | \"10\" | \"11\" | \"12\" | \"2\" | \"3\" | \"4\" | \"5\" | \"6\" | \"7\" | \"8\" | \"9\" | \"auto\"", "complexType": { "original": "ColumnSize", - "resolved": "\"1\" | \"10\" | \"11\" | \"12\" | \"2\" | \"3\" | \"4\" | \"5\" | \"6\" | \"7\" | \"8\" | \"9\" | \"auto\" | undefined", + "resolved": "\"1\" | \"10\" | \"11\" | \"12\" | \"2\" | \"3\" | \"4\" | \"5\" | \"6\" | \"7\" | \"8\" | \"9\" | \"auto\"", "references": { "ColumnSize": { "location": "local", @@ -3045,9 +2958,6 @@ { "value": "auto", "type": "string" - }, - { - "type": "undefined" } ], "optional": true, @@ -3055,10 +2965,10 @@ }, { "name": "sizeMd", - "type": "\"1\" | \"10\" | \"11\" | \"12\" | \"2\" | \"3\" | \"4\" | \"5\" | \"6\" | \"7\" | \"8\" | \"9\" | \"auto\" | undefined", + "type": "\"1\" | \"10\" | \"11\" | \"12\" | \"2\" | \"3\" | \"4\" | \"5\" | \"6\" | \"7\" | \"8\" | \"9\" | \"auto\"", "complexType": { "original": "ColumnSize", - "resolved": "\"1\" | \"10\" | \"11\" | \"12\" | \"2\" | \"3\" | \"4\" | \"5\" | \"6\" | \"7\" | \"8\" | \"9\" | \"auto\" | undefined", + "resolved": "\"1\" | \"10\" | \"11\" | \"12\" | \"2\" | \"3\" | \"4\" | \"5\" | \"6\" | \"7\" | \"8\" | \"9\" | \"auto\"", "references": { "ColumnSize": { "location": "local", @@ -3124,9 +3034,6 @@ { "value": "auto", "type": "string" - }, - { - "type": "undefined" } ], "optional": true, @@ -3134,10 +3041,10 @@ }, { "name": "sizeSm", - "type": "\"1\" | \"10\" | \"11\" | \"12\" | \"2\" | \"3\" | \"4\" | \"5\" | \"6\" | \"7\" | \"8\" | \"9\" | \"auto\" | undefined", + "type": "\"1\" | \"10\" | \"11\" | \"12\" | \"2\" | \"3\" | \"4\" | \"5\" | \"6\" | \"7\" | \"8\" | \"9\" | \"auto\"", "complexType": { "original": "ColumnSize", - "resolved": "\"1\" | \"10\" | \"11\" | \"12\" | \"2\" | \"3\" | \"4\" | \"5\" | \"6\" | \"7\" | \"8\" | \"9\" | \"auto\" | undefined", + "resolved": "\"1\" | \"10\" | \"11\" | \"12\" | \"2\" | \"3\" | \"4\" | \"5\" | \"6\" | \"7\" | \"8\" | \"9\" | \"auto\"", "references": { "ColumnSize": { "location": "local", @@ -3203,9 +3110,6 @@ { "value": "auto", "type": "string" - }, - { - "type": "undefined" } ], "optional": true, @@ -3314,10 +3218,10 @@ }, { "name": "headerSubtitle", - "type": "string | undefined", + "type": "string", "complexType": { "original": "string | undefined", - "resolved": "string | undefined", + "resolved": "string", "references": {} }, "mutable": false, @@ -3329,9 +3233,6 @@ "values": [ { "type": "string" - }, - { - "type": "undefined" } ], "optional": false, @@ -3339,10 +3240,10 @@ }, { "name": "headerTitle", - "type": "string | undefined", + "type": "string", "complexType": { "original": "string", - "resolved": "string | undefined", + "resolved": "string", "references": {} }, "mutable": false, @@ -3353,9 +3254,6 @@ "values": [ { "type": "string" - }, - { - "type": "undefined" } ], "optional": true, @@ -3966,10 +3864,10 @@ }, { "name": "from", - "type": "string | undefined", + "type": "string", "complexType": { "original": "string | undefined", - "resolved": "string | undefined", + "resolved": "string", "references": {} }, "mutable": false, @@ -3985,9 +3883,6 @@ "values": [ { "type": "string" - }, - { - "type": "undefined" } ], "optional": false, @@ -4050,10 +3945,10 @@ }, { "name": "locale", - "type": "string | undefined", + "type": "string", "complexType": { "original": "string", - "resolved": "string | undefined", + "resolved": "string", "references": {} }, "mutable": false, @@ -4069,9 +3964,6 @@ "values": [ { "type": "string" - }, - { - "type": "undefined" } ], "optional": true, @@ -4187,10 +4079,10 @@ }, { "name": "to", - "type": "string | undefined", + "type": "string", "complexType": { "original": "string | undefined", - "resolved": "string | undefined", + "resolved": "string", "references": {} }, "mutable": false, @@ -4206,9 +4098,6 @@ "values": [ { "type": "string" - }, - { - "type": "undefined" } ], "optional": false, @@ -4246,11 +4135,11 @@ { "name": "getCurrentDate", "returns": { - "type": "Promise<{ from: string | undefined; to: string | undefined; }>", + "type": "Promise<{ from: string; to: string; }>", "docs": "" }, "complexType": { - "signature": "() => Promise<{ from: string | undefined; to: string | undefined; }>", + "signature": "() => Promise<{ from: string; to: string; }>", "parameters": [], "references": { "Promise": { @@ -4258,9 +4147,9 @@ "id": "global::Promise" } }, - "return": "Promise<{ from: string | undefined; to: string | undefined; }>" + "return": "Promise<{ from: string; to: string; }>" }, - "signature": "getCurrentDate() => Promise<{ from: string | undefined; to: string | undefined; }>", + "signature": "getCurrentDate() => Promise<{ from: string; to: string; }>", "parameters": [], "docs": "Get the currently selected date-range.", "docsTags": [] @@ -4479,10 +4368,10 @@ }, { "name": "from", - "type": "string | undefined", + "type": "string", "complexType": { "original": "string | undefined", - "resolved": "string | undefined", + "resolved": "string", "references": {} }, "mutable": false, @@ -4498,9 +4387,6 @@ "values": [ { "type": "string" - }, - { - "type": "undefined" } ], "optional": false, @@ -4702,13 +4588,14 @@ }, { "name": "showTimeReference", - "type": "undefined", + "type": "any", "complexType": { - "original": "undefined", - "resolved": "undefined", + "original": "any", + "resolved": "any", "references": {} }, "mutable": false, + "attr": "show-time-reference", "reflectToAttr": false, "docs": "Show time reference input\nTime reference is default aligned with", "docsTags": [ @@ -4724,7 +4611,7 @@ "default": "undefined", "values": [ { - "type": "undefined" + "type": "any" } ], "optional": false, @@ -4842,10 +4729,10 @@ }, { "name": "to", - "type": "string | undefined", + "type": "string", "complexType": { "original": "string | undefined", - "resolved": "string | undefined", + "resolved": "string", "references": {} }, "mutable": false, @@ -4861,9 +4748,6 @@ "values": [ { "type": "string" - }, - { - "type": "undefined" } ], "optional": false, @@ -5206,7 +5090,7 @@ "parameters": [ { "name": "show", - "type": "boolean | undefined", + "type": "boolean", "docs": "Overwrite toggle state with boolean" } ], @@ -5222,7 +5106,7 @@ "parameters": [ { "name": "show", - "type": "boolean | undefined", + "type": "boolean", "docs": "Overwrite toggle state with boolean" } ], @@ -5334,10 +5218,10 @@ "props": [ { "name": "anchor", - "type": "HTMLElement | Promise | string | undefined", + "type": "HTMLElement | Promise | string", "complexType": { "original": "ElementReference", - "resolved": "HTMLElement | Promise | string | undefined", + "resolved": "HTMLElement | Promise | string", "references": { "ElementReference": { "location": "import", @@ -5360,9 +5244,6 @@ }, { "type": "string" - }, - { - "type": "undefined" } ], "optional": true, @@ -5410,10 +5291,10 @@ }, { "name": "header", - "type": "string | undefined", + "type": "string", "complexType": { "original": "string", - "resolved": "string | undefined", + "resolved": "string", "references": {} }, "mutable": false, @@ -5424,9 +5305,6 @@ "values": [ { "type": "string" - }, - { - "type": "undefined" } ], "optional": true, @@ -5567,10 +5445,10 @@ }, { "name": "trigger", - "type": "HTMLElement | Promise | string | undefined", + "type": "HTMLElement | Promise | string", "complexType": { "original": "ElementReference", - "resolved": "HTMLElement | Promise | string | undefined", + "resolved": "HTMLElement | Promise | string", "references": { "ElementReference": { "location": "import", @@ -5593,9 +5471,6 @@ }, { "type": "string" - }, - { - "type": "undefined" } ], "optional": true, @@ -5776,10 +5651,10 @@ }, { "name": "icon", - "type": "string | undefined", + "type": "string", "complexType": { "original": "string", - "resolved": "string | undefined", + "resolved": "string", "references": {} }, "mutable": false, @@ -5790,9 +5665,6 @@ "values": [ { "type": "string" - }, - { - "type": "undefined" } ], "optional": true, @@ -5800,10 +5672,10 @@ }, { "name": "label", - "type": "string | undefined", + "type": "string", "complexType": { "original": "string", - "resolved": "string | undefined", + "resolved": "string", "references": {} }, "mutable": false, @@ -5814,9 +5686,6 @@ "values": [ { "type": "string" - }, - { - "type": "undefined" } ], "optional": true, @@ -5846,10 +5715,10 @@ }, { "name": "placement", - "type": "\"bottom-end\" | \"bottom-start\" | \"left-end\" | \"left-start\" | \"right-end\" | \"right-start\" | \"top-end\" | \"top-start\" | undefined", + "type": "\"bottom-end\" | \"bottom-start\" | \"left-end\" | \"left-start\" | \"right-end\" | \"right-start\" | \"top-end\" | \"top-start\"", "complexType": { "original": "AlignedPlacement", - "resolved": "\"bottom-end\" | \"bottom-start\" | \"left-end\" | \"left-start\" | \"right-end\" | \"right-start\" | \"top-end\" | \"top-start\" | undefined", + "resolved": "\"bottom-end\" | \"bottom-start\" | \"left-end\" | \"left-start\" | \"right-end\" | \"right-start\" | \"top-end\" | \"top-start\"", "references": { "AlignedPlacement": { "location": "import", @@ -5900,9 +5769,6 @@ { "value": "top-start", "type": "string" - }, - { - "type": "undefined" } ], "optional": true, @@ -6123,10 +5989,10 @@ }, { "name": "icon", - "type": "string | undefined", + "type": "string", "complexType": { "original": "string", - "resolved": "string | undefined", + "resolved": "string", "references": {} }, "mutable": false, @@ -6137,9 +6003,6 @@ "values": [ { "type": "string" - }, - { - "type": "undefined" } ], "optional": true, @@ -6147,10 +6010,10 @@ }, { "name": "label", - "type": "string | undefined", + "type": "string", "complexType": { "original": "string", - "resolved": "string | undefined", + "resolved": "string", "references": {} }, "mutable": false, @@ -6161,9 +6024,6 @@ "values": [ { "type": "string" - }, - { - "type": "undefined" } ], "optional": true, @@ -6564,10 +6424,10 @@ }, { "name": "color", - "type": "string | undefined", + "type": "string", "complexType": { "original": "string", - "resolved": "string | undefined", + "resolved": "string", "references": {} }, "mutable": false, @@ -6588,9 +6448,6 @@ "values": [ { "type": "string" - }, - { - "type": "undefined" } ], "optional": true, @@ -6620,10 +6477,10 @@ }, { "name": "itemColor", - "type": "string | undefined", + "type": "string", "complexType": { "original": "string", - "resolved": "string | undefined", + "resolved": "string", "references": {} }, "mutable": false, @@ -6639,9 +6496,6 @@ "values": [ { "type": "string" - }, - { - "type": "undefined" } ], "optional": true, @@ -7223,10 +7077,10 @@ }, { "name": "header", - "type": "string | undefined", + "type": "string", "complexType": { "original": "string", - "resolved": "string | undefined", + "resolved": "string", "references": {} }, "mutable": false, @@ -7237,9 +7091,6 @@ "values": [ { "type": "string" - }, - { - "type": "undefined" } ], "optional": true, @@ -7247,10 +7098,10 @@ }, { "name": "index", - "type": "number | undefined", + "type": "number", "complexType": { "original": "number", - "resolved": "number | undefined", + "resolved": "number", "references": {} }, "mutable": true, @@ -7261,9 +7112,6 @@ "values": [ { "type": "number" - }, - { - "type": "undefined" } ], "optional": true, @@ -7293,10 +7141,10 @@ }, { "name": "subHeader", - "type": "string | undefined", + "type": "string", "complexType": { "original": "string", - "resolved": "string | undefined", + "resolved": "string", "references": {} }, "mutable": false, @@ -7307,9 +7155,6 @@ "values": [ { "type": "string" - }, - { - "type": "undefined" } ], "optional": true, @@ -7477,10 +7322,10 @@ }, { "name": "icon", - "type": "string | undefined", + "type": "string", "complexType": { "original": "string", - "resolved": "string | undefined", + "resolved": "string", "references": {} }, "mutable": false, @@ -7491,9 +7336,6 @@ "values": [ { "type": "string" - }, - { - "type": "undefined" } ], "optional": true, @@ -7501,10 +7343,10 @@ }, { "name": "index", - "type": "number | undefined", + "type": "number", "complexType": { "original": "number", - "resolved": "number | undefined", + "resolved": "number", "references": {} }, "mutable": false, @@ -7515,9 +7357,6 @@ "values": [ { "type": "number" - }, - { - "type": "undefined" } ], "optional": true, @@ -7525,10 +7364,10 @@ }, { "name": "secondaryText", - "type": "string | undefined", + "type": "string", "complexType": { "original": "string", - "resolved": "string | undefined", + "resolved": "string", "references": {} }, "mutable": false, @@ -7539,9 +7378,6 @@ "values": [ { "type": "string" - }, - { - "type": "undefined" } ], "optional": true, @@ -7593,10 +7429,10 @@ }, { "name": "text", - "type": "string | undefined", + "type": "string", "complexType": { "original": "string", - "resolved": "string | undefined", + "resolved": "string", "references": {} }, "mutable": false, @@ -7607,9 +7443,6 @@ "values": [ { "type": "string" - }, - { - "type": "undefined" } ], "optional": true, @@ -9095,12 +8928,12 @@ }, { "name": "icon", - "type": "string | undefined", + "type": "string", "docs": "" }, { "name": "color", - "type": "string | undefined", + "type": "string", "docs": "" } ], @@ -9130,12 +8963,12 @@ }, { "name": "icon", - "type": "string | undefined", + "type": "string", "docs": "" }, { "name": "color", - "type": "string | undefined", + "type": "string", "docs": "" } ], @@ -9175,7 +9008,7 @@ "parameters": [ { "name": "show", - "type": "boolean | undefined", + "type": "boolean", "docs": "new visibility state" } ], @@ -9191,7 +9024,7 @@ "parameters": [ { "name": "show", - "type": "boolean | undefined", + "type": "boolean", "docs": "new visibility state" } ], @@ -9449,10 +9282,10 @@ }, { "name": "applicationName", - "type": "string | undefined", + "type": "string", "complexType": { "original": "string", - "resolved": "string | undefined", + "resolved": "string", "references": {} }, "mutable": false, @@ -9463,9 +9296,6 @@ "values": [ { "type": "string" - }, - { - "type": "undefined" } ], "optional": true, @@ -9864,7 +9694,7 @@ "parameters": [ { "name": "show", - "type": "boolean | undefined", + "type": "boolean", "docs": "" } ], @@ -9880,7 +9710,7 @@ "parameters": [ { "name": "show", - "type": "boolean | undefined", + "type": "boolean", "docs": "" } ], @@ -9903,7 +9733,7 @@ "parameters": [ { "name": "show", - "type": "boolean | undefined", + "type": "boolean", "docs": "" } ], @@ -9919,7 +9749,7 @@ "parameters": [ { "name": "show", - "type": "boolean | undefined", + "type": "boolean", "docs": "" } ], @@ -10957,10 +10787,10 @@ }, { "name": "icon", - "type": "string | undefined", + "type": "string", "complexType": { "original": "string", - "resolved": "string | undefined", + "resolved": "string", "references": {} }, "mutable": true, @@ -10976,9 +10806,6 @@ "values": [ { "type": "string" - }, - { - "type": "undefined" } ], "optional": true, @@ -10986,10 +10813,10 @@ }, { "name": "label", - "type": "string | undefined", + "type": "string", "complexType": { "original": "string", - "resolved": "string | undefined", + "resolved": "string", "references": {} }, "mutable": false, @@ -11005,9 +10832,6 @@ "values": [ { "type": "string" - }, - { - "type": "undefined" } ], "optional": true, @@ -11015,10 +10839,10 @@ }, { "name": "notifications", - "type": "number | undefined", + "type": "number", "complexType": { "original": "number", - "resolved": "number | undefined", + "resolved": "number", "references": {} }, "mutable": false, @@ -11029,9 +10853,6 @@ "values": [ { "type": "number" - }, - { - "type": "undefined" } ], "optional": true, @@ -11039,10 +10860,10 @@ }, { "name": "tabIcon", - "type": "string | undefined", + "type": "string", "complexType": { "original": "string", - "resolved": "string | undefined", + "resolved": "string", "references": {} }, "mutable": true, @@ -11063,9 +10884,6 @@ "values": [ { "type": "string" - }, - { - "type": "undefined" } ], "optional": true, @@ -11670,7 +11488,7 @@ "parameters": [ { "name": "reason", - "type": "T | undefined", + "type": "T", "docs": "" } ], @@ -11690,7 +11508,7 @@ "parameters": [ { "name": "reason", - "type": "T | undefined", + "type": "T", "docs": "" } ], @@ -11919,10 +11737,10 @@ }, { "name": "icon", - "type": "string | undefined", + "type": "string", "complexType": { "original": "string", - "resolved": "string | undefined", + "resolved": "string", "references": {} }, "mutable": false, @@ -11933,9 +11751,6 @@ "values": [ { "type": "string" - }, - { - "type": "undefined" } ], "optional": true, @@ -11943,10 +11758,10 @@ }, { "name": "iconColor", - "type": "string | undefined", + "type": "string", "complexType": { "original": "string", - "resolved": "string | undefined", + "resolved": "string", "references": {} }, "mutable": false, @@ -11957,9 +11772,6 @@ "values": [ { "type": "string" - }, - { - "type": "undefined" } ], "optional": true, @@ -12375,10 +12187,10 @@ }, { "name": "heading", - "type": "string | undefined", + "type": "string", "complexType": { "original": "string", - "resolved": "string | undefined", + "resolved": "string", "references": {} }, "mutable": false, @@ -12389,9 +12201,6 @@ "values": [ { "type": "string" - }, - { - "type": "undefined" } ], "optional": true, @@ -12421,10 +12230,10 @@ }, { "name": "icon", - "type": "string | undefined", + "type": "string", "complexType": { "original": "string", - "resolved": "string | undefined", + "resolved": "string", "references": {} }, "mutable": false, @@ -12435,9 +12244,6 @@ "values": [ { "type": "string" - }, - { - "type": "undefined" } ], "optional": true, @@ -12747,10 +12553,10 @@ }, { "name": "background", - "type": "string | undefined", + "type": "string", "complexType": { "original": "string | undefined", - "resolved": "string | undefined", + "resolved": "string", "references": {} }, "mutable": false, @@ -12761,9 +12567,6 @@ "values": [ { "type": "string" - }, - { - "type": "undefined" } ], "optional": false, @@ -12771,10 +12574,10 @@ }, { "name": "color", - "type": "string | undefined", + "type": "string", "complexType": { "original": "string | undefined", - "resolved": "string | undefined", + "resolved": "string", "references": {} }, "mutable": false, @@ -12791,9 +12594,6 @@ "values": [ { "type": "string" - }, - { - "type": "undefined" } ], "optional": false, @@ -12801,10 +12601,10 @@ }, { "name": "icon", - "type": "string | undefined", + "type": "string", "complexType": { "original": "string | undefined", - "resolved": "string | undefined", + "resolved": "string", "references": {} }, "mutable": false, @@ -12815,9 +12615,6 @@ "values": [ { "type": "string" - }, - { - "type": "undefined" } ], "optional": false, @@ -12847,10 +12644,10 @@ }, { "name": "pillColor", - "type": "string | undefined", + "type": "string", "complexType": { "original": "string | undefined", - "resolved": "string | undefined", + "resolved": "string", "references": {} }, "mutable": false, @@ -12861,9 +12658,6 @@ "values": [ { "type": "string" - }, - { - "type": "undefined" } ], "optional": false, @@ -12992,10 +12786,10 @@ }, { "name": "heading", - "type": "string | undefined", + "type": "string", "complexType": { "original": "string", - "resolved": "string | undefined", + "resolved": "string", "references": {} }, "mutable": false, @@ -13006,9 +12800,6 @@ "values": [ { "type": "string" - }, - { - "type": "undefined" } ], "optional": true, @@ -13016,10 +12807,10 @@ }, { "name": "icon", - "type": "string | undefined", + "type": "string", "complexType": { "original": "string | undefined", - "resolved": "string | undefined", + "resolved": "string", "references": {} }, "mutable": false, @@ -13031,9 +12822,6 @@ "values": [ { "type": "string" - }, - { - "type": "undefined" } ], "optional": false, @@ -13041,10 +12829,10 @@ }, { "name": "notification", - "type": "string | undefined", + "type": "string", "complexType": { "original": "string", - "resolved": "string | undefined", + "resolved": "string", "references": {} }, "mutable": false, @@ -13055,9 +12843,6 @@ "values": [ { "type": "string" - }, - { - "type": "undefined" } ], "optional": true, @@ -13065,10 +12850,10 @@ }, { "name": "subheading", - "type": "string | undefined", + "type": "string", "complexType": { "original": "string", - "resolved": "string | undefined", + "resolved": "string", "references": {} }, "mutable": false, @@ -13079,9 +12864,6 @@ "values": [ { "type": "string" - }, - { - "type": "undefined" } ], "optional": true, @@ -13489,10 +13271,10 @@ }, { "name": "selectedIndices", - "type": "string | string[] | undefined", + "type": "string | string[]", "complexType": { "original": "string | string[]", - "resolved": "string | string[] | undefined", + "resolved": "string | string[]", "references": {} }, "mutable": true, @@ -13512,9 +13294,6 @@ }, { "type": "string[]" - }, - { - "type": "undefined" } ], "optional": true, @@ -13522,10 +13301,10 @@ }, { "name": "value", - "type": "string | string[] | undefined", + "type": "string | string[]", "complexType": { "original": "string | string[]", - "resolved": "string | string[] | undefined", + "resolved": "string | string[]", "references": {} }, "mutable": true, @@ -13544,9 +13323,6 @@ }, { "type": "string[]" - }, - { - "type": "undefined" } ], "optional": true, @@ -13682,10 +13458,10 @@ "props": [ { "name": "label", - "type": "string | undefined", + "type": "string", "complexType": { "original": "string", - "resolved": "string | undefined", + "resolved": "string", "references": {} }, "mutable": false, @@ -13696,9 +13472,6 @@ "values": [ { "type": "string" - }, - { - "type": "undefined" } ], "optional": true, @@ -13840,10 +13613,10 @@ }, { "name": "error", - "type": "boolean | string | undefined", + "type": "boolean | string", "complexType": { "original": "boolean | string", - "resolved": "boolean | string | undefined", + "resolved": "boolean | string", "references": {} }, "mutable": false, @@ -13857,9 +13630,6 @@ }, { "type": "string" - }, - { - "type": "undefined" } ], "optional": true, @@ -13867,10 +13637,10 @@ }, { "name": "marker", - "type": "number[] | undefined", + "type": "number[]", "complexType": { "original": "SliderMarker", - "resolved": "number[] | undefined", + "resolved": "number[]", "references": { "SliderMarker": { "location": "local", @@ -13886,9 +13656,6 @@ "values": [ { "type": "number[]" - }, - { - "type": "undefined" } ], "optional": true, @@ -14659,10 +14426,10 @@ "props": [ { "name": "counter", - "type": "number | undefined", + "type": "number", "complexType": { "original": "number", - "resolved": "number | undefined", + "resolved": "number", "references": {} }, "mutable": false, @@ -14673,9 +14440,6 @@ "values": [ { "type": "number" - }, - { - "type": "undefined" } ], "optional": true, @@ -15323,10 +15087,10 @@ }, { "name": "showTimeReference", - "type": "boolean | undefined", + "type": "boolean", "complexType": { "original": "boolean", - "resolved": "boolean | undefined", + "resolved": "boolean", "references": {} }, "mutable": true, @@ -15348,9 +15112,6 @@ "values": [ { "type": "boolean" - }, - { - "type": "undefined" } ], "optional": true, @@ -15461,10 +15222,10 @@ }, { "name": "timeReference", - "type": "\"AM\" | \"PM\" | undefined", + "type": "\"AM\" | \"PM\"", "complexType": { "original": "'AM' | 'PM' | undefined", - "resolved": "\"AM\" | \"PM\" | undefined", + "resolved": "\"AM\" | \"PM\"", "references": {} }, "mutable": false, @@ -15480,9 +15241,6 @@ { "value": "PM", "type": "string" - }, - { - "type": "undefined" } ], "optional": false, @@ -16387,10 +16145,10 @@ "props": [ { "name": "for", - "type": "HTMLElement | Promise | string | undefined", + "type": "HTMLElement | Promise | string", "complexType": { "original": "ElementReference", - "resolved": "HTMLElement | Promise | string | undefined", + "resolved": "HTMLElement | Promise | string", "references": { "ElementReference": { "location": "import", @@ -16413,9 +16171,6 @@ }, { "type": "string" - }, - { - "type": "undefined" } ], "optional": true, @@ -16485,10 +16240,10 @@ }, { "name": "titleContent", - "type": "string | undefined", + "type": "string", "complexType": { "original": "string", - "resolved": "string | undefined", + "resolved": "string", "references": {} }, "mutable": false, @@ -16499,9 +16254,6 @@ "values": [ { "type": "string" - }, - { - "type": "undefined" } ], "optional": true, @@ -16602,10 +16354,10 @@ }, { "name": "renderItem", - "type": "((index: number, data: T, dataList: T[], context: TreeContext, update: (callback: UpdateCallback) => void) => HTMLElement) | undefined", + "type": "(index: number, data: T, dataList: T[], context: TreeContext, update: (callback: UpdateCallback) => void) => HTMLElement", "complexType": { "original": "(\n index: number,\n data: T,\n dataList: Array,\n context: TreeContext,\n update: (callback: UpdateCallback) => void\n ) => HTMLElement", - "resolved": "((index: number, data: T, dataList: T[], context: TreeContext, update: (callback: UpdateCallback) => void) => HTMLElement) | undefined", + "resolved": "(index: number, data: T, dataList: T[], context: TreeContext, update: (callback: UpdateCallback) => void) => HTMLElement", "references": { "T": { "location": "global", @@ -16637,10 +16389,7 @@ "docsTags": [], "values": [ { - "type": "((index: number, data: T, dataList: T[], context: TreeContext, update: (callback: UpdateCallback) => void) => HTMLElement)" - }, - { - "type": "undefined" + "type": "(index: number, data: T, dataList: T[], context: TreeContext, update: (callback: UpdateCallback) => void) => HTMLElement" } ], "optional": true, @@ -16772,10 +16521,10 @@ "props": [ { "name": "context", - "type": "TreeItemContext | undefined", + "type": "TreeItemContext", "complexType": { "original": "TreeItemContext", - "resolved": "TreeItemContext | undefined", + "resolved": "TreeItemContext", "references": { "TreeItemContext": { "location": "import", @@ -16791,9 +16540,6 @@ "values": [ { "type": "TreeItemContext" - }, - { - "type": "undefined" } ], "optional": true, @@ -16823,10 +16569,10 @@ }, { "name": "text", - "type": "string | undefined", + "type": "string", "complexType": { "original": "string", - "resolved": "string | undefined", + "resolved": "string", "references": {} }, "mutable": false, @@ -16837,9 +16583,6 @@ "values": [ { "type": "string" - }, - { - "type": "undefined" } ], "optional": true, @@ -17001,10 +16744,10 @@ }, { "name": "color", - "type": "\"alarm\" | \"contrast\" | \"inv-contrast\" | \"inv-soft\" | \"inv-std\" | \"inv-weak\" | \"soft\" | \"std\" | \"weak\" | undefined", + "type": "\"alarm\" | \"contrast\" | \"inv-contrast\" | \"inv-soft\" | \"inv-std\" | \"inv-weak\" | \"soft\" | \"std\" | \"weak\"", "complexType": { "original": "TypographyColors", - "resolved": "\"alarm\" | \"contrast\" | \"inv-contrast\" | \"inv-soft\" | \"inv-std\" | \"inv-weak\" | \"soft\" | \"std\" | \"weak\" | undefined", + "resolved": "\"alarm\" | \"contrast\" | \"inv-contrast\" | \"inv-soft\" | \"inv-std\" | \"inv-weak\" | \"soft\" | \"std\" | \"weak\"", "references": { "TypographyColors": { "location": "local", @@ -17060,9 +16803,6 @@ { "value": "weak", "type": "string" - }, - { - "type": "undefined" } ], "optional": true, @@ -17070,10 +16810,10 @@ }, { "name": "format", - "type": "TypographyFormat | undefined", + "type": "TypographyFormatLabel | TypographyFormatBody | TypographyFormatDisplay | TypographyFormatHeading | TypographyFormatCode", "complexType": { "original": "TypographyFormat", - "resolved": "TypographyFormat | undefined", + "resolved": "TypographyFormatLabel | TypographyFormatBody | TypographyFormatDisplay | TypographyFormatHeading | TypographyFormatCode", "references": { "TypographyFormat": { "location": "local", @@ -17089,10 +16829,19 @@ "docsTags": [], "values": [ { - "type": "TypographyFormat" + "type": "TypographyFormatLabel" + }, + { + "type": "TypographyFormatBody" }, { - "type": "undefined" + "type": "TypographyFormatDisplay" + }, + { + "type": "TypographyFormatHeading" + }, + { + "type": "TypographyFormatCode" } ], "optional": true, @@ -17100,10 +16849,10 @@ }, { "name": "textColor", - "type": "\"alarm\" | \"contrast\" | \"inv-contrast\" | \"inv-soft\" | \"inv-std\" | \"inv-weak\" | \"soft\" | \"std\" | \"weak\" | undefined", + "type": "\"alarm\" | \"contrast\" | \"inv-contrast\" | \"inv-soft\" | \"inv-std\" | \"inv-weak\" | \"soft\" | \"std\" | \"weak\"", "complexType": { "original": "TypographyColors", - "resolved": "\"alarm\" | \"contrast\" | \"inv-contrast\" | \"inv-soft\" | \"inv-std\" | \"inv-weak\" | \"soft\" | \"std\" | \"weak\" | undefined", + "resolved": "\"alarm\" | \"contrast\" | \"inv-contrast\" | \"inv-soft\" | \"inv-std\" | \"inv-weak\" | \"soft\" | \"std\" | \"weak\"", "references": { "TypographyColors": { "location": "local", @@ -17153,9 +16902,6 @@ { "value": "weak", "type": "string" - }, - { - "type": "undefined" } ], "optional": true, @@ -17235,10 +16981,10 @@ "props": [ { "name": "accept", - "type": "string | undefined", + "type": "string", "complexType": { "original": "string", - "resolved": "string | undefined", + "resolved": "string", "references": {} }, "mutable": false, @@ -17249,9 +16995,6 @@ "values": [ { "type": "string" - }, - { - "type": "undefined" } ], "optional": true, diff --git a/packages/core/src/components.d.ts b/packages/core/src/components.d.ts index ea168864085..00edf5ba082 100644 --- a/packages/core/src/components.d.ts +++ b/packages/core/src/components.d.ts @@ -617,7 +617,7 @@ export namespace Components { /** * Get the currently selected date-range. */ - "getCurrentDate": () => Promise<{ from: string | undefined; to: string | undefined; }>; + "getCurrentDate": () => Promise<{ from: string; to: string; }>; /** * Text of date select button * @since 2.1.0 @@ -674,7 +674,7 @@ export namespace Components { * set styles */ "individual": boolean; - "standaloneAppearance": undefined; + "standaloneAppearance": any; } interface IxDatetimePicker { /** @@ -734,7 +734,7 @@ export namespace Components { * @see { this.timeFormat} * @since 1.1.0 */ - "showTimeReference": undefined; + "showTimeReference": any; /** * Text of date select button * @since 1.1.0 @@ -4787,7 +4787,7 @@ declare namespace LocalJSX { * set styles */ "individual"?: boolean; - "standaloneAppearance"?: undefined; + "standaloneAppearance"?: any; } interface IxDatetimePicker { /** @@ -4867,7 +4867,7 @@ declare namespace LocalJSX { * @see { this.timeFormat} * @since 1.1.0 */ - "showTimeReference"?: undefined; + "showTimeReference"?: any; /** * Text of date select button * @since 1.1.0