@carbon-labs/wc-date-picker 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/es/__stories__/date-picker.stories.d.ts +949 -0
- package/es/components/date-picker/calendar-renderer.d.ts +147 -0
- package/es/components/date-picker/calendar-renderer.js +406 -0
- package/es/components/date-picker/calendar-renderer.js.map +1 -0
- package/es/components/date-picker/date-picker-input-skeleton.d.ts +34 -0
- package/es/components/date-picker/date-picker-input-skeleton.js +77 -0
- package/es/components/date-picker/date-picker-input-skeleton.js.map +1 -0
- package/es/components/date-picker/date-picker-input.d.ts +539 -0
- package/es/components/date-picker/date-picker-input.js +413 -0
- package/es/components/date-picker/date-picker-input.js.map +1 -0
- package/es/components/date-picker/date-picker.d.ts +977 -0
- package/es/components/date-picker/date-picker.js +1047 -0
- package/es/components/date-picker/date-picker.js.map +1 -0
- package/es/components/date-picker/date-picker.scss.js +6 -0
- package/es/components/date-picker/date-picker.scss.js.map +1 -0
- package/es/components/date-picker/defs.d.ts +45 -0
- package/es/components/date-picker/defs.js +51 -0
- package/es/components/date-picker/defs.js.map +1 -0
- package/es/index.d.ts +10 -0
- package/es/index.js +5 -0
- package/es/index.js.map +1 -0
- package/es/state-machine/actions.d.ts +35 -0
- package/es/state-machine/actions.js +860 -0
- package/es/state-machine/actions.js.map +1 -0
- package/es/state-machine/adapters/web-component-adapter.d.ts +142 -0
- package/es/state-machine/adapters/web-component-adapter.js +269 -0
- package/es/state-machine/adapters/web-component-adapter.js.map +1 -0
- package/es/state-machine/effects.d.ts +35 -0
- package/es/state-machine/effects.js +92 -0
- package/es/state-machine/effects.js.map +1 -0
- package/es/state-machine/guards.d.ts +41 -0
- package/es/state-machine/guards.js +143 -0
- package/es/state-machine/guards.js.map +1 -0
- package/es/state-machine/index.d.ts +12 -0
- package/es/state-machine/machine.d.ts +92 -0
- package/es/state-machine/machine.js +272 -0
- package/es/state-machine/machine.js.map +1 -0
- package/es/state-machine/states.d.ts +89 -0
- package/es/state-machine/states.js +105 -0
- package/es/state-machine/states.js.map +1 -0
- package/es/state-machine/temporal-utils.d.ts +203 -0
- package/es/state-machine/temporal-utils.js +128 -0
- package/es/state-machine/temporal-utils.js.map +1 -0
- package/es/state-machine/types.d.ts +163 -0
- package/es/temp-imports/.storybook/templates/with-layer.d.ts +26 -0
- package/es/temp-imports/globals/decorators/carbon-element.d.ts +45 -0
- package/es/temp-imports/globals/decorators/carbon-element.js +63 -0
- package/es/temp-imports/globals/decorators/carbon-element.js.map +1 -0
- package/es/temp-imports/globals/decorators/host-listener.d.ts +17 -0
- package/es/temp-imports/globals/decorators/host-listener.js +62 -0
- package/es/temp-imports/globals/decorators/host-listener.js.map +1 -0
- package/es/temp-imports/globals/internal/collection-helpers.d.ts +41 -0
- package/es/temp-imports/globals/internal/handle.d.ts +16 -0
- package/es/temp-imports/globals/internal/icon-loader-utils.d.ts +31 -0
- package/es/temp-imports/globals/internal/icon-loader-utils.js +69 -0
- package/es/temp-imports/globals/internal/icon-loader-utils.js.map +1 -0
- package/es/temp-imports/globals/internal/icon-loader.d.ts +28 -0
- package/es/temp-imports/globals/internal/icon-loader.js +43 -0
- package/es/temp-imports/globals/internal/icon-loader.js.map +1 -0
- package/es/temp-imports/globals/mixins/focus.d.ts +369 -0
- package/es/temp-imports/globals/mixins/focus.js +38 -0
- package/es/temp-imports/globals/mixins/focus.js.map +1 -0
- package/es/temp-imports/globals/mixins/form.d.ts +379 -0
- package/es/temp-imports/globals/mixins/form.js +49 -0
- package/es/temp-imports/globals/mixins/form.js.map +1 -0
- package/es/temp-imports/globals/mixins/host-listener.d.ts +387 -0
- package/es/temp-imports/globals/mixins/host-listener.js +76 -0
- package/es/temp-imports/globals/mixins/host-listener.js.map +1 -0
- package/es/temp-imports/globals/mixins/on.d.ts +9 -0
- package/es/temp-imports/globals/mixins/on.js +19 -0
- package/es/temp-imports/globals/mixins/on.js.map +1 -0
- package/es/temp-imports/globals/settings.d.ts +13 -0
- package/es/temp-imports/globals/settings.js +76 -0
- package/es/temp-imports/globals/settings.js.map +1 -0
- package/es/temp-imports/globals/shared-enums.d.ts +19 -0
- package/es/temp-imports/globals/shared-enums.js +23 -0
- package/es/temp-imports/globals/shared-enums.js.map +1 -0
- package/lib/__stories__/date-picker.stories.d.ts +949 -0
- package/lib/components/date-picker/calendar-renderer.d.ts +147 -0
- package/lib/components/date-picker/calendar-renderer.js +408 -0
- package/lib/components/date-picker/calendar-renderer.js.map +1 -0
- package/lib/components/date-picker/date-picker-input-skeleton.d.ts +34 -0
- package/lib/components/date-picker/date-picker-input-skeleton.js +79 -0
- package/lib/components/date-picker/date-picker-input-skeleton.js.map +1 -0
- package/lib/components/date-picker/date-picker-input.d.ts +539 -0
- package/lib/components/date-picker/date-picker-input.js +422 -0
- package/lib/components/date-picker/date-picker-input.js.map +1 -0
- package/lib/components/date-picker/date-picker.d.ts +977 -0
- package/lib/components/date-picker/date-picker.js +1049 -0
- package/lib/components/date-picker/date-picker.js.map +1 -0
- package/lib/components/date-picker/date-picker.scss.js +10 -0
- package/lib/components/date-picker/date-picker.scss.js.map +1 -0
- package/lib/components/date-picker/defs.d.ts +45 -0
- package/lib/components/date-picker/defs.js +56 -0
- package/lib/components/date-picker/defs.js.map +1 -0
- package/lib/index.d.ts +10 -0
- package/lib/index.js +8 -0
- package/lib/index.js.map +1 -0
- package/lib/state-machine/actions.d.ts +35 -0
- package/lib/state-machine/actions.js +864 -0
- package/lib/state-machine/actions.js.map +1 -0
- package/lib/state-machine/adapters/web-component-adapter.d.ts +142 -0
- package/lib/state-machine/adapters/web-component-adapter.js +271 -0
- package/lib/state-machine/adapters/web-component-adapter.js.map +1 -0
- package/lib/state-machine/effects.d.ts +35 -0
- package/lib/state-machine/effects.js +96 -0
- package/lib/state-machine/effects.js.map +1 -0
- package/lib/state-machine/guards.d.ts +41 -0
- package/lib/state-machine/guards.js +147 -0
- package/lib/state-machine/guards.js.map +1 -0
- package/lib/state-machine/index.d.ts +12 -0
- package/lib/state-machine/machine.d.ts +92 -0
- package/lib/state-machine/machine.js +274 -0
- package/lib/state-machine/machine.js.map +1 -0
- package/lib/state-machine/states.d.ts +89 -0
- package/lib/state-machine/states.js +105 -0
- package/lib/state-machine/states.js.map +1 -0
- package/lib/state-machine/temporal-utils.d.ts +203 -0
- package/lib/state-machine/temporal-utils.js +136 -0
- package/lib/state-machine/temporal-utils.js.map +1 -0
- package/lib/state-machine/types.d.ts +163 -0
- package/lib/temp-imports/.storybook/templates/with-layer.d.ts +26 -0
- package/lib/temp-imports/globals/decorators/carbon-element.d.ts +45 -0
- package/lib/temp-imports/globals/decorators/carbon-element.js +65 -0
- package/lib/temp-imports/globals/decorators/carbon-element.js.map +1 -0
- package/lib/temp-imports/globals/decorators/host-listener.d.ts +17 -0
- package/lib/temp-imports/globals/decorators/host-listener.js +66 -0
- package/lib/temp-imports/globals/decorators/host-listener.js.map +1 -0
- package/lib/temp-imports/globals/internal/collection-helpers.d.ts +41 -0
- package/lib/temp-imports/globals/internal/handle.d.ts +16 -0
- package/lib/temp-imports/globals/internal/icon-loader-utils.d.ts +31 -0
- package/lib/temp-imports/globals/internal/icon-loader-utils.js +72 -0
- package/lib/temp-imports/globals/internal/icon-loader-utils.js.map +1 -0
- package/lib/temp-imports/globals/internal/icon-loader.d.ts +28 -0
- package/lib/temp-imports/globals/internal/icon-loader.js +45 -0
- package/lib/temp-imports/globals/internal/icon-loader.js.map +1 -0
- package/lib/temp-imports/globals/mixins/focus.d.ts +369 -0
- package/lib/temp-imports/globals/mixins/focus.js +42 -0
- package/lib/temp-imports/globals/mixins/focus.js.map +1 -0
- package/lib/temp-imports/globals/mixins/form.d.ts +379 -0
- package/lib/temp-imports/globals/mixins/form.js +53 -0
- package/lib/temp-imports/globals/mixins/form.js.map +1 -0
- package/lib/temp-imports/globals/mixins/host-listener.d.ts +387 -0
- package/lib/temp-imports/globals/mixins/host-listener.js +80 -0
- package/lib/temp-imports/globals/mixins/host-listener.js.map +1 -0
- package/lib/temp-imports/globals/mixins/on.d.ts +9 -0
- package/lib/temp-imports/globals/mixins/on.js +23 -0
- package/lib/temp-imports/globals/mixins/on.js.map +1 -0
- package/lib/temp-imports/globals/settings.d.ts +13 -0
- package/lib/temp-imports/globals/settings.js +79 -0
- package/lib/temp-imports/globals/settings.js.map +1 -0
- package/lib/temp-imports/globals/shared-enums.d.ts +19 -0
- package/lib/temp-imports/globals/shared-enums.js +23 -0
- package/lib/temp-imports/globals/shared-enums.js.map +1 -0
- package/package.json +44 -0
|
@@ -0,0 +1,539 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright IBM Corp. 2019, 2025
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
import { LitElement } from 'lit';
|
|
8
|
+
import { INPUT_SIZE, DATE_PICKER_INPUT_COLOR_SCHEME, DATE_PICKER_INPUT_KIND } from './defs';
|
|
9
|
+
export { DATE_PICKER_INPUT_COLOR_SCHEME, DATE_PICKER_INPUT_KIND };
|
|
10
|
+
declare const CDSDatePickerInput_base: {
|
|
11
|
+
new (...args: any[]): {
|
|
12
|
+
focus(): void;
|
|
13
|
+
accessKey: string;
|
|
14
|
+
readonly accessKeyLabel: string;
|
|
15
|
+
autocapitalize: string;
|
|
16
|
+
autocorrect: boolean;
|
|
17
|
+
dir: string;
|
|
18
|
+
draggable: boolean;
|
|
19
|
+
hidden: boolean;
|
|
20
|
+
inert: boolean;
|
|
21
|
+
innerText: string;
|
|
22
|
+
lang: string;
|
|
23
|
+
readonly offsetHeight: number;
|
|
24
|
+
readonly offsetLeft: number;
|
|
25
|
+
readonly offsetParent: Element | null;
|
|
26
|
+
readonly offsetTop: number;
|
|
27
|
+
readonly offsetWidth: number;
|
|
28
|
+
outerText: string;
|
|
29
|
+
popover: string | null;
|
|
30
|
+
spellcheck: boolean;
|
|
31
|
+
title: string;
|
|
32
|
+
translate: boolean;
|
|
33
|
+
writingSuggestions: string;
|
|
34
|
+
attachInternals(): ElementInternals;
|
|
35
|
+
click(): void;
|
|
36
|
+
hidePopover(): void;
|
|
37
|
+
showPopover(): void;
|
|
38
|
+
togglePopover(options?: boolean): boolean;
|
|
39
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
40
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
41
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
42
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
43
|
+
readonly attributes: NamedNodeMap;
|
|
44
|
+
get classList(): DOMTokenList;
|
|
45
|
+
set classList(value: string);
|
|
46
|
+
className: string;
|
|
47
|
+
readonly clientHeight: number;
|
|
48
|
+
readonly clientLeft: number;
|
|
49
|
+
readonly clientTop: number;
|
|
50
|
+
readonly clientWidth: number;
|
|
51
|
+
readonly currentCSSZoom: number;
|
|
52
|
+
id: string;
|
|
53
|
+
innerHTML: string;
|
|
54
|
+
readonly localName: string;
|
|
55
|
+
readonly namespaceURI: string | null;
|
|
56
|
+
onfullscreenchange: ((this: Element, ev: Event) => any) | null;
|
|
57
|
+
onfullscreenerror: ((this: Element, ev: Event) => any) | null;
|
|
58
|
+
outerHTML: string;
|
|
59
|
+
readonly ownerDocument: Document;
|
|
60
|
+
get part(): DOMTokenList;
|
|
61
|
+
set part(value: string);
|
|
62
|
+
readonly prefix: string | null;
|
|
63
|
+
readonly scrollHeight: number;
|
|
64
|
+
scrollLeft: number;
|
|
65
|
+
scrollTop: number;
|
|
66
|
+
readonly scrollWidth: number;
|
|
67
|
+
readonly shadowRoot: ShadowRoot | null;
|
|
68
|
+
slot: string;
|
|
69
|
+
readonly tagName: string;
|
|
70
|
+
attachShadow(init: ShadowRootInit): ShadowRoot;
|
|
71
|
+
checkVisibility(options?: CheckVisibilityOptions): boolean;
|
|
72
|
+
closest<K extends keyof HTMLElementTagNameMap>(selector: K): HTMLElementTagNameMap[K] | null;
|
|
73
|
+
closest<K extends keyof SVGElementTagNameMap>(selector: K): SVGElementTagNameMap[K] | null;
|
|
74
|
+
closest<K extends keyof MathMLElementTagNameMap>(selector: K): MathMLElementTagNameMap[K] | null;
|
|
75
|
+
closest<E extends Element = Element>(selectors: string): E | null;
|
|
76
|
+
computedStyleMap(): StylePropertyMapReadOnly;
|
|
77
|
+
getAttribute(qualifiedName: string): string | null;
|
|
78
|
+
getAttributeNS(namespace: string | null, localName: string): string | null;
|
|
79
|
+
getAttributeNames(): string[];
|
|
80
|
+
getAttributeNode(qualifiedName: string): Attr | null;
|
|
81
|
+
getAttributeNodeNS(namespace: string | null, localName: string): Attr | null;
|
|
82
|
+
getBoundingClientRect(): DOMRect;
|
|
83
|
+
getClientRects(): DOMRectList;
|
|
84
|
+
getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
|
|
85
|
+
getElementsByTagName<K extends keyof HTMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementTagNameMap[K]>;
|
|
86
|
+
getElementsByTagName<K extends keyof SVGElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<SVGElementTagNameMap[K]>;
|
|
87
|
+
getElementsByTagName<K extends keyof MathMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<MathMLElementTagNameMap[K]>;
|
|
88
|
+
getElementsByTagName<K extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K]>;
|
|
89
|
+
getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
|
|
90
|
+
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
|
|
91
|
+
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
|
|
92
|
+
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>;
|
|
93
|
+
getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;
|
|
94
|
+
getHTML(options?: GetHTMLOptions): string;
|
|
95
|
+
hasAttribute(qualifiedName: string): boolean;
|
|
96
|
+
hasAttributeNS(namespace: string | null, localName: string): boolean;
|
|
97
|
+
hasAttributes(): boolean;
|
|
98
|
+
hasPointerCapture(pointerId: number): boolean;
|
|
99
|
+
insertAdjacentElement(where: InsertPosition, element: Element): Element | null;
|
|
100
|
+
insertAdjacentHTML(position: InsertPosition, string: string): void;
|
|
101
|
+
insertAdjacentText(where: InsertPosition, data: string): void;
|
|
102
|
+
matches(selectors: string): boolean;
|
|
103
|
+
releasePointerCapture(pointerId: number): void;
|
|
104
|
+
removeAttribute(qualifiedName: string): void;
|
|
105
|
+
removeAttributeNS(namespace: string | null, localName: string): void;
|
|
106
|
+
removeAttributeNode(attr: Attr): Attr;
|
|
107
|
+
requestFullscreen(options?: FullscreenOptions): Promise<void>;
|
|
108
|
+
requestPointerLock(options?: PointerLockOptions): Promise<void>;
|
|
109
|
+
scroll(options?: ScrollToOptions): void;
|
|
110
|
+
scroll(x: number, y: number): void;
|
|
111
|
+
scrollBy(options?: ScrollToOptions): void;
|
|
112
|
+
scrollBy(x: number, y: number): void;
|
|
113
|
+
scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
|
|
114
|
+
scrollTo(options?: ScrollToOptions): void;
|
|
115
|
+
scrollTo(x: number, y: number): void;
|
|
116
|
+
setAttribute(qualifiedName: string, value: string): void;
|
|
117
|
+
setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void;
|
|
118
|
+
setAttributeNode(attr: Attr): Attr | null;
|
|
119
|
+
setAttributeNodeNS(attr: Attr): Attr | null;
|
|
120
|
+
setHTMLUnsafe(html: string): void;
|
|
121
|
+
setPointerCapture(pointerId: number): void;
|
|
122
|
+
toggleAttribute(qualifiedName: string, force?: boolean): boolean;
|
|
123
|
+
webkitMatchesSelector(selectors: string): boolean;
|
|
124
|
+
get textContent(): string;
|
|
125
|
+
set textContent(value: string | null);
|
|
126
|
+
readonly baseURI: string;
|
|
127
|
+
readonly childNodes: NodeListOf<ChildNode>;
|
|
128
|
+
readonly firstChild: ChildNode | null;
|
|
129
|
+
readonly isConnected: boolean;
|
|
130
|
+
readonly lastChild: ChildNode | null;
|
|
131
|
+
readonly nextSibling: ChildNode | null;
|
|
132
|
+
readonly nodeName: string;
|
|
133
|
+
readonly nodeType: number;
|
|
134
|
+
nodeValue: string | null;
|
|
135
|
+
readonly parentElement: HTMLElement | null;
|
|
136
|
+
readonly parentNode: ParentNode | null;
|
|
137
|
+
readonly previousSibling: ChildNode | null;
|
|
138
|
+
appendChild<T extends Node>(node: T): T;
|
|
139
|
+
cloneNode(subtree?: boolean): Node;
|
|
140
|
+
compareDocumentPosition(other: Node): number;
|
|
141
|
+
contains(other: Node | null): boolean;
|
|
142
|
+
getRootNode(options?: GetRootNodeOptions): Node;
|
|
143
|
+
hasChildNodes(): boolean;
|
|
144
|
+
insertBefore<T extends Node>(node: T, child: Node | null): T;
|
|
145
|
+
isDefaultNamespace(namespace: string | null): boolean;
|
|
146
|
+
isEqualNode(otherNode: Node | null): boolean;
|
|
147
|
+
isSameNode(otherNode: Node | null): boolean;
|
|
148
|
+
lookupNamespaceURI(prefix: string | null): string | null;
|
|
149
|
+
lookupPrefix(namespace: string | null): string | null;
|
|
150
|
+
normalize(): void;
|
|
151
|
+
removeChild<T extends Node>(child: T): T;
|
|
152
|
+
replaceChild<T extends Node>(node: Node, child: T): T;
|
|
153
|
+
readonly ELEMENT_NODE: 1;
|
|
154
|
+
readonly ATTRIBUTE_NODE: 2;
|
|
155
|
+
readonly TEXT_NODE: 3;
|
|
156
|
+
readonly CDATA_SECTION_NODE: 4;
|
|
157
|
+
readonly ENTITY_REFERENCE_NODE: 5;
|
|
158
|
+
readonly ENTITY_NODE: 6;
|
|
159
|
+
readonly PROCESSING_INSTRUCTION_NODE: 7;
|
|
160
|
+
readonly COMMENT_NODE: 8;
|
|
161
|
+
readonly DOCUMENT_NODE: 9;
|
|
162
|
+
readonly DOCUMENT_TYPE_NODE: 10;
|
|
163
|
+
readonly DOCUMENT_FRAGMENT_NODE: 11;
|
|
164
|
+
readonly NOTATION_NODE: 12;
|
|
165
|
+
readonly DOCUMENT_POSITION_DISCONNECTED: 1;
|
|
166
|
+
readonly DOCUMENT_POSITION_PRECEDING: 2;
|
|
167
|
+
readonly DOCUMENT_POSITION_FOLLOWING: 4;
|
|
168
|
+
readonly DOCUMENT_POSITION_CONTAINS: 8;
|
|
169
|
+
readonly DOCUMENT_POSITION_CONTAINED_BY: 16;
|
|
170
|
+
readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32;
|
|
171
|
+
dispatchEvent(event: Event): boolean;
|
|
172
|
+
ariaActiveDescendantElement: Element | null;
|
|
173
|
+
ariaAtomic: string | null;
|
|
174
|
+
ariaAutoComplete: string | null;
|
|
175
|
+
ariaBrailleLabel: string | null;
|
|
176
|
+
ariaBrailleRoleDescription: string | null;
|
|
177
|
+
ariaBusy: string | null;
|
|
178
|
+
ariaChecked: string | null;
|
|
179
|
+
ariaColCount: string | null;
|
|
180
|
+
ariaColIndex: string | null;
|
|
181
|
+
ariaColIndexText: string | null;
|
|
182
|
+
ariaColSpan: string | null;
|
|
183
|
+
ariaControlsElements: ReadonlyArray<Element> | null;
|
|
184
|
+
ariaCurrent: string | null;
|
|
185
|
+
ariaDescribedByElements: ReadonlyArray<Element> | null;
|
|
186
|
+
ariaDescription: string | null;
|
|
187
|
+
ariaDetailsElements: ReadonlyArray<Element> | null;
|
|
188
|
+
ariaDisabled: string | null;
|
|
189
|
+
ariaErrorMessageElements: ReadonlyArray<Element> | null;
|
|
190
|
+
ariaExpanded: string | null;
|
|
191
|
+
ariaFlowToElements: ReadonlyArray<Element> | null;
|
|
192
|
+
ariaHasPopup: string | null;
|
|
193
|
+
ariaHidden: string | null;
|
|
194
|
+
ariaInvalid: string | null;
|
|
195
|
+
ariaKeyShortcuts: string | null;
|
|
196
|
+
ariaLabel: string | null;
|
|
197
|
+
ariaLabelledByElements: ReadonlyArray<Element> | null;
|
|
198
|
+
ariaLevel: string | null;
|
|
199
|
+
ariaLive: string | null;
|
|
200
|
+
ariaModal: string | null;
|
|
201
|
+
ariaMultiLine: string | null;
|
|
202
|
+
ariaMultiSelectable: string | null;
|
|
203
|
+
ariaOrientation: string | null;
|
|
204
|
+
ariaOwnsElements: ReadonlyArray<Element> | null;
|
|
205
|
+
ariaPlaceholder: string | null;
|
|
206
|
+
ariaPosInSet: string | null;
|
|
207
|
+
ariaPressed: string | null;
|
|
208
|
+
ariaReadOnly: string | null;
|
|
209
|
+
ariaRelevant: string | null;
|
|
210
|
+
ariaRequired: string | null;
|
|
211
|
+
ariaRoleDescription: string | null;
|
|
212
|
+
ariaRowCount: string | null;
|
|
213
|
+
ariaRowIndex: string | null;
|
|
214
|
+
ariaRowIndexText: string | null;
|
|
215
|
+
ariaRowSpan: string | null;
|
|
216
|
+
ariaSelected: string | null;
|
|
217
|
+
ariaSetSize: string | null;
|
|
218
|
+
ariaSort: string | null;
|
|
219
|
+
ariaValueMax: string | null;
|
|
220
|
+
ariaValueMin: string | null;
|
|
221
|
+
ariaValueNow: string | null;
|
|
222
|
+
ariaValueText: string | null;
|
|
223
|
+
role: string | null;
|
|
224
|
+
animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions): Animation;
|
|
225
|
+
getAnimations(options?: GetAnimationsOptions): Animation[];
|
|
226
|
+
after(...nodes: (Node | string)[]): void;
|
|
227
|
+
before(...nodes: (Node | string)[]): void;
|
|
228
|
+
remove(): void;
|
|
229
|
+
replaceWith(...nodes: (Node | string)[]): void;
|
|
230
|
+
readonly nextElementSibling: Element | null;
|
|
231
|
+
readonly previousElementSibling: Element | null;
|
|
232
|
+
readonly childElementCount: number;
|
|
233
|
+
readonly children: HTMLCollection;
|
|
234
|
+
readonly firstElementChild: Element | null;
|
|
235
|
+
readonly lastElementChild: Element | null;
|
|
236
|
+
append(...nodes: (Node | string)[]): void;
|
|
237
|
+
prepend(...nodes: (Node | string)[]): void;
|
|
238
|
+
querySelector<K extends keyof HTMLElementTagNameMap>(selectors: K): HTMLElementTagNameMap[K] | null;
|
|
239
|
+
querySelector<K extends keyof SVGElementTagNameMap>(selectors: K): SVGElementTagNameMap[K] | null;
|
|
240
|
+
querySelector<K extends keyof MathMLElementTagNameMap>(selectors: K): MathMLElementTagNameMap[K] | null;
|
|
241
|
+
querySelector<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): HTMLElementDeprecatedTagNameMap[K] | null;
|
|
242
|
+
querySelector<E extends Element = Element>(selectors: string): E | null;
|
|
243
|
+
querySelectorAll<K extends keyof HTMLElementTagNameMap>(selectors: K): NodeListOf<HTMLElementTagNameMap[K]>;
|
|
244
|
+
querySelectorAll<K extends keyof SVGElementTagNameMap>(selectors: K): NodeListOf<SVGElementTagNameMap[K]>;
|
|
245
|
+
querySelectorAll<K extends keyof MathMLElementTagNameMap>(selectors: K): NodeListOf<MathMLElementTagNameMap[K]>;
|
|
246
|
+
querySelectorAll<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): NodeListOf<HTMLElementDeprecatedTagNameMap[K]>;
|
|
247
|
+
querySelectorAll<E extends Element = Element>(selectors: string): NodeListOf<E>;
|
|
248
|
+
replaceChildren(...nodes: (Node | string)[]): void;
|
|
249
|
+
readonly assignedSlot: HTMLSlotElement | null;
|
|
250
|
+
readonly attributeStyleMap: StylePropertyMap;
|
|
251
|
+
get style(): CSSStyleDeclaration;
|
|
252
|
+
set style(cssText: string);
|
|
253
|
+
contentEditable: string;
|
|
254
|
+
enterKeyHint: string;
|
|
255
|
+
inputMode: string;
|
|
256
|
+
readonly isContentEditable: boolean;
|
|
257
|
+
onabort: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
|
|
258
|
+
onanimationcancel: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
259
|
+
onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
260
|
+
onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
261
|
+
onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
262
|
+
onauxclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
263
|
+
onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
|
|
264
|
+
onbeforematch: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
265
|
+
onbeforetoggle: ((this: GlobalEventHandlers, ev: ToggleEvent) => any) | null;
|
|
266
|
+
onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
|
|
267
|
+
oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
268
|
+
oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
269
|
+
oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
270
|
+
onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
271
|
+
onclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
272
|
+
onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
273
|
+
oncontextlost: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
274
|
+
oncontextmenu: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
275
|
+
oncontextrestored: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
276
|
+
oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
277
|
+
oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
278
|
+
oncut: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
279
|
+
ondblclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
280
|
+
ondrag: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
281
|
+
ondragend: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
282
|
+
ondragenter: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
283
|
+
ondragleave: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
284
|
+
ondragover: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
285
|
+
ondragstart: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
286
|
+
ondrop: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
287
|
+
ondurationchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
288
|
+
onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
289
|
+
onended: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
290
|
+
onerror: OnErrorEventHandler;
|
|
291
|
+
onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
|
|
292
|
+
onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null;
|
|
293
|
+
ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
294
|
+
oninput: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
295
|
+
oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
296
|
+
onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
|
297
|
+
onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
|
298
|
+
onkeyup: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
|
299
|
+
onload: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
300
|
+
onloadeddata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
301
|
+
onloadedmetadata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
302
|
+
onloadstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
303
|
+
onlostpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
304
|
+
onmousedown: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
305
|
+
onmouseenter: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
306
|
+
onmouseleave: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
307
|
+
onmousemove: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
308
|
+
onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
309
|
+
onmouseover: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
310
|
+
onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
311
|
+
onpaste: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
312
|
+
onpause: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
313
|
+
onplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
314
|
+
onplaying: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
315
|
+
onpointercancel: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
316
|
+
onpointerdown: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
317
|
+
onpointerenter: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
318
|
+
onpointerleave: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
319
|
+
onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
320
|
+
onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
321
|
+
onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
322
|
+
onpointerrawupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
323
|
+
onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
324
|
+
onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null;
|
|
325
|
+
onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
326
|
+
onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
327
|
+
onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
|
|
328
|
+
onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
329
|
+
onscrollend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
330
|
+
onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null;
|
|
331
|
+
onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
332
|
+
onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
333
|
+
onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
334
|
+
onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
335
|
+
onselectstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
336
|
+
onslotchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
337
|
+
onstalled: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
338
|
+
onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null;
|
|
339
|
+
onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
340
|
+
ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
341
|
+
ontoggle: ((this: GlobalEventHandlers, ev: ToggleEvent) => any) | null;
|
|
342
|
+
ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
343
|
+
ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
344
|
+
ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
345
|
+
ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
346
|
+
ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
|
347
|
+
ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
|
348
|
+
ontransitionrun: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
|
349
|
+
ontransitionstart: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
|
350
|
+
onvolumechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
351
|
+
onwaiting: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
352
|
+
onwebkitanimationend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
353
|
+
onwebkitanimationiteration: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
354
|
+
onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
355
|
+
onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
356
|
+
onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
|
|
357
|
+
autofocus: boolean;
|
|
358
|
+
readonly dataset: DOMStringMap;
|
|
359
|
+
nonce?: string;
|
|
360
|
+
tabIndex: number;
|
|
361
|
+
blur(): void;
|
|
362
|
+
};
|
|
363
|
+
} & typeof LitElement;
|
|
364
|
+
/**
|
|
365
|
+
* The input box for date picker.
|
|
366
|
+
*
|
|
367
|
+
* @element cds-date-picker-input
|
|
368
|
+
*/
|
|
369
|
+
declare class CDSDatePickerInput extends CDSDatePickerInput_base {
|
|
370
|
+
/**
|
|
371
|
+
* `true` if there is an AI Label.
|
|
372
|
+
*/
|
|
373
|
+
private _hasAILabel;
|
|
374
|
+
/**
|
|
375
|
+
* Handles `slotchange` event.
|
|
376
|
+
*
|
|
377
|
+
* @param {object} root0 - Event object
|
|
378
|
+
* @param {EventTarget} root0.target - The event target
|
|
379
|
+
*/
|
|
380
|
+
protected _handleAILabelSlotChange({ target }: Event): void;
|
|
381
|
+
/**
|
|
382
|
+
* The calendar icon.
|
|
383
|
+
*/
|
|
384
|
+
private _iconNode;
|
|
385
|
+
/**
|
|
386
|
+
* Handles `click` event on the calendar icon.
|
|
387
|
+
*
|
|
388
|
+
* @param {MouseEvent} event - The event.
|
|
389
|
+
*/
|
|
390
|
+
private _handleClickWrapper;
|
|
391
|
+
/**
|
|
392
|
+
* Handles `input` event on `<input>` in the shadow DOM.
|
|
393
|
+
*
|
|
394
|
+
* @param {Event} event - The event.
|
|
395
|
+
* @param {HTMLInputElement} event.target - The event target.
|
|
396
|
+
*/
|
|
397
|
+
private _handleInput;
|
|
398
|
+
/**
|
|
399
|
+
* Handles `focus` event on `<input>` in the shadow DOM.
|
|
400
|
+
*
|
|
401
|
+
* @param {FocusEvent} _event - The focus event.
|
|
402
|
+
*/
|
|
403
|
+
private _handleFocus;
|
|
404
|
+
/**
|
|
405
|
+
* Handles `blur` event on `<input>` in the shadow DOM.
|
|
406
|
+
*
|
|
407
|
+
* @param {FocusEvent} _event - The blur event.
|
|
408
|
+
*/
|
|
409
|
+
private _handleBlur;
|
|
410
|
+
/**
|
|
411
|
+
* @returns The template for the the calendar icon.
|
|
412
|
+
*/
|
|
413
|
+
private _renderIcon;
|
|
414
|
+
/**
|
|
415
|
+
* `true` if there is helper text content.
|
|
416
|
+
*/
|
|
417
|
+
protected _hasHelperText: boolean;
|
|
418
|
+
/**
|
|
419
|
+
* Handles `slotchange` event on the default `<slot>`.
|
|
420
|
+
*
|
|
421
|
+
* @param {object} root0 - Event object
|
|
422
|
+
* @param {EventTarget} root0.target - The event target
|
|
423
|
+
*/
|
|
424
|
+
protected _handleSlotChange({ target }: Event): void;
|
|
425
|
+
/**
|
|
426
|
+
* The `<input>`, used for Flatpickr to grab.
|
|
427
|
+
*/
|
|
428
|
+
input: HTMLInputElement;
|
|
429
|
+
/**
|
|
430
|
+
* The color scheme.
|
|
431
|
+
*/
|
|
432
|
+
colorScheme: DATE_PICKER_INPUT_COLOR_SCHEME;
|
|
433
|
+
/**
|
|
434
|
+
* `true` if the check box should be disabled.
|
|
435
|
+
*/
|
|
436
|
+
disabled: boolean;
|
|
437
|
+
/**
|
|
438
|
+
* `true` if the label should be hidden.
|
|
439
|
+
*/
|
|
440
|
+
hideLabel: boolean;
|
|
441
|
+
/**
|
|
442
|
+
* Controls the invalid state and visibility of the `validityMessage`.
|
|
443
|
+
*/
|
|
444
|
+
invalid: boolean;
|
|
445
|
+
/**
|
|
446
|
+
* Message which is displayed if the value is invalid.
|
|
447
|
+
*/
|
|
448
|
+
invalidText: string;
|
|
449
|
+
/**
|
|
450
|
+
* Date picker input kind.
|
|
451
|
+
*/
|
|
452
|
+
kind: DATE_PICKER_INPUT_KIND;
|
|
453
|
+
/**
|
|
454
|
+
* The label text.
|
|
455
|
+
*/
|
|
456
|
+
labelText: string;
|
|
457
|
+
/**
|
|
458
|
+
* The `pattern` attribute for the `<input>` in the shadow DOM.
|
|
459
|
+
*/
|
|
460
|
+
pattern: string;
|
|
461
|
+
/**
|
|
462
|
+
* The placeholder text.
|
|
463
|
+
*/
|
|
464
|
+
placeholder: string;
|
|
465
|
+
/**
|
|
466
|
+
* Specify if the component should be read-only
|
|
467
|
+
*/
|
|
468
|
+
readonly: boolean;
|
|
469
|
+
/**
|
|
470
|
+
* `true` if the value is required.
|
|
471
|
+
*/
|
|
472
|
+
required: boolean;
|
|
473
|
+
/**
|
|
474
|
+
* true to use the short version.
|
|
475
|
+
*/
|
|
476
|
+
short: boolean;
|
|
477
|
+
/**
|
|
478
|
+
* Vertical size of this date picker input.
|
|
479
|
+
*/
|
|
480
|
+
size: INPUT_SIZE;
|
|
481
|
+
/**
|
|
482
|
+
* The `type` attribute for the `<input>` in the shadow DOM.
|
|
483
|
+
*/
|
|
484
|
+
type: string;
|
|
485
|
+
/**
|
|
486
|
+
* The value.
|
|
487
|
+
*/
|
|
488
|
+
value: string;
|
|
489
|
+
/**
|
|
490
|
+
* Specify whether the control is currently in warning state
|
|
491
|
+
*/
|
|
492
|
+
warn: boolean;
|
|
493
|
+
/**
|
|
494
|
+
* Provide the text that is displayed when the control is in warning state
|
|
495
|
+
*/
|
|
496
|
+
warnText: string;
|
|
497
|
+
/**
|
|
498
|
+
* Renders the component template.
|
|
499
|
+
*
|
|
500
|
+
* @returns {TemplateResult} The template result
|
|
501
|
+
*/
|
|
502
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
503
|
+
/**
|
|
504
|
+
* Lifecycle method called after component updates.
|
|
505
|
+
*/
|
|
506
|
+
updated(): void;
|
|
507
|
+
/**
|
|
508
|
+
* The default value for `pattern` property.
|
|
509
|
+
*/
|
|
510
|
+
static defaultPattern: string;
|
|
511
|
+
/**
|
|
512
|
+
* The default value for `type` property.
|
|
513
|
+
*/
|
|
514
|
+
static defaultType: string;
|
|
515
|
+
/**
|
|
516
|
+
* A selector that will return the parent date picker.
|
|
517
|
+
*/
|
|
518
|
+
static get selectorParent(): string;
|
|
519
|
+
/**
|
|
520
|
+
* A selector that will return the slug item.
|
|
521
|
+
*
|
|
522
|
+
* remove in v12
|
|
523
|
+
*/
|
|
524
|
+
static get slugItem(): string;
|
|
525
|
+
/**
|
|
526
|
+
* A selector that will return the AI Label item.
|
|
527
|
+
*/
|
|
528
|
+
static get aiLabelItem(): string;
|
|
529
|
+
static shadowRootOptions: {
|
|
530
|
+
delegatesFocus: boolean;
|
|
531
|
+
clonable?: boolean;
|
|
532
|
+
customElementRegistry?: CustomElementRegistry;
|
|
533
|
+
mode: ShadowRootMode;
|
|
534
|
+
serializable?: boolean;
|
|
535
|
+
slotAssignment?: SlotAssignmentMode;
|
|
536
|
+
};
|
|
537
|
+
static styles: any;
|
|
538
|
+
}
|
|
539
|
+
export default CDSDatePickerInput;
|