@vonage/vivid 4.25.0 → 4.27.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/custom-elements.json +3371 -1999
- package/lib/accordion-item/accordion-item.d.ts +2 -2
- package/lib/action-group/action-group.d.ts +1 -1
- package/lib/alert/alert.d.ts +5 -5
- package/lib/audio-player/audio-player.d.ts +3 -3
- package/lib/avatar/avatar.d.ts +393 -1
- package/lib/avatar/avatar.template.d.ts +2 -2
- package/lib/badge/badge.d.ts +2 -2
- package/lib/banner/banner.d.ts +6 -6
- package/lib/breadcrumb/breadcrumb.d.ts +1 -1
- package/lib/breadcrumb-item/breadcrumb-item.d.ts +1 -1
- package/lib/button/button.d.ts +6 -6
- package/lib/calendar/calendar.d.ts +2 -0
- package/lib/calendar-event/calendar-event.d.ts +1 -1
- package/lib/card/card.d.ts +1 -1
- package/lib/checkbox/checkbox.d.ts +10 -10
- package/lib/combobox/combobox.d.ts +11 -11
- package/lib/data-grid/data-grid-cell.d.ts +6 -4
- package/lib/data-grid/data-grid-row.d.ts +1 -0
- package/lib/data-grid/data-grid.d.ts +1 -1
- package/lib/date-picker/date-picker.d.ts +75 -75
- package/lib/date-picker/date-picker.template.d.ts +1 -1
- package/lib/date-range-picker/date-range-picker.d.ts +44 -44
- package/lib/date-range-picker/date-range-picker.template.d.ts +1 -1
- package/lib/date-time-picker/date-time-picker.d.ts +64 -64
- package/lib/date-time-picker/date-time-picker.template.d.ts +1 -1
- package/lib/dial-pad/dial-pad.d.ts +3 -3
- package/lib/dialog/dialog.d.ts +5 -4
- package/lib/divider/divider.d.ts +1 -1
- package/lib/fab/fab.d.ts +2 -2
- package/lib/file-picker/file-picker.d.ts +10 -10
- package/lib/header/header.d.ts +1 -1
- package/lib/menu/menu.d.ts +2 -2
- package/lib/menu-item/menu-item.d.ts +3 -3
- package/lib/nav/nav.d.ts +1 -1
- package/lib/nav-disclosure/nav-disclosure.d.ts +3 -3
- package/lib/nav-item/nav-item.d.ts +3 -3
- package/lib/note/note.d.ts +2 -2
- package/lib/number-field/locale.d.ts +3 -2
- package/lib/number-field/number-field.d.ts +15 -15
- package/lib/option/option.d.ts +3 -3
- package/lib/pagination/locale.d.ts +5 -0
- package/lib/pagination/pagination.d.ts +341 -2
- package/lib/popup/popup.d.ts +1 -0
- package/lib/progress/progress.d.ts +1 -1
- package/lib/progress-ring/progress-ring.d.ts +1 -1
- package/lib/radio/radio.d.ts +3 -3
- package/lib/radio-group/radio-group.d.ts +4 -4
- package/lib/range-slider/range-slider.d.ts +5 -5
- package/lib/rich-text-editor/menubar/menubar.d.ts +3 -3
- package/lib/rich-text-editor/rich-text-editor.d.ts +3 -3
- package/lib/searchable-select/locale.d.ts +1 -1
- package/lib/searchable-select/option-tag.d.ts +3 -3
- package/lib/searchable-select/searchable-select.d.ts +15 -15
- package/lib/select/select.d.ts +12 -12
- package/lib/selectable-box/selectable-box.d.ts +1 -1
- package/lib/slider/slider.d.ts +5 -5
- package/lib/split-button/split-button.d.ts +6 -6
- package/lib/switch/switch.d.ts +2 -2
- package/lib/tab/tab.d.ts +6 -6
- package/lib/tab-panel/tab-panel.d.ts +1 -1
- package/lib/tag/locale.d.ts +3 -0
- package/lib/tag/tag.d.ts +343 -6
- package/lib/tag-group/tag-group.d.ts +1 -1
- package/lib/text-area/text-area.d.ts +14 -14
- package/lib/text-field/text-field.d.ts +16 -16
- package/lib/time-picker/time-picker.d.ts +21 -21
- package/lib/toggletip/toggletip.d.ts +1 -1
- package/lib/tooltip/tooltip.d.ts +1 -1
- package/lib/tree-item/tree-item.d.ts +3 -3
- package/lib/tree-view/tree-view.d.ts +1 -1
- package/lib/video-player/video-player.d.ts +3 -3
- package/locales/de-DE.cjs +40 -5
- package/locales/de-DE.js +40 -5
- package/locales/en-GB.cjs +40 -5
- package/locales/en-GB.js +40 -5
- package/locales/en-US.cjs +40 -5
- package/locales/en-US.js +40 -5
- package/locales/ja-JP.cjs +40 -5
- package/locales/ja-JP.js +40 -5
- package/locales/zh-CN.cjs +40 -5
- package/locales/zh-CN.js +40 -5
- package/package.json +73 -45
- package/shared/aria/delegates-aria.d.ts +1 -1
- package/shared/aria/host-semantics.d.ts +1 -1
- package/shared/calendar-picker.template.cjs +40 -13
- package/shared/calendar-picker.template.js +40 -13
- package/shared/definition.cjs +19 -3
- package/shared/definition.js +20 -4
- package/shared/definition11.cjs +1 -1
- package/shared/definition11.js +1 -1
- package/shared/definition13.cjs +25 -0
- package/shared/definition13.js +26 -1
- package/shared/definition15.cjs +1 -1
- package/shared/definition15.js +1 -1
- package/shared/definition16.cjs +1 -1
- package/shared/definition16.js +1 -1
- package/shared/definition17.cjs +602 -522
- package/shared/definition17.js +600 -520
- package/shared/definition18.cjs +8 -1
- package/shared/definition18.js +8 -1
- package/shared/definition19.cjs +9 -2
- package/shared/definition19.js +9 -2
- package/shared/definition2.cjs +1 -1
- package/shared/definition2.js +1 -1
- package/shared/definition20.cjs +3 -1
- package/shared/definition20.js +3 -1
- package/shared/definition21.cjs +2 -2
- package/shared/definition21.js +2 -2
- package/shared/definition22.cjs +9 -3
- package/shared/definition22.js +9 -3
- package/shared/definition28.cjs +2 -2
- package/shared/definition28.js +2 -2
- package/shared/definition3.cjs +1 -1
- package/shared/definition3.js +1 -1
- package/shared/definition30.cjs +1 -1
- package/shared/definition30.js +1 -1
- package/shared/definition31.cjs +1 -1
- package/shared/definition31.js +1 -1
- package/shared/definition32.cjs +1 -1
- package/shared/definition32.js +1 -1
- package/shared/definition36.cjs +41 -30
- package/shared/definition36.js +34 -23
- package/shared/definition38.cjs +30 -23
- package/shared/definition38.js +30 -23
- package/shared/definition4.cjs +1 -1
- package/shared/definition4.js +1 -1
- package/shared/definition41.cjs +1 -1
- package/shared/definition41.js +1 -1
- package/shared/definition42.cjs +2 -2
- package/shared/definition42.js +2 -2
- package/shared/definition44.cjs +129 -117
- package/shared/definition44.js +130 -118
- package/shared/definition45.cjs +17 -7
- package/shared/definition45.js +17 -7
- package/shared/definition46.cjs +1 -1
- package/shared/definition46.js +1 -1
- package/shared/definition49.cjs +6 -6
- package/shared/definition49.js +6 -6
- package/shared/definition54.cjs +2 -2
- package/shared/definition54.js +2 -2
- package/shared/definition56.cjs +5 -4
- package/shared/definition56.js +5 -4
- package/shared/definition57.cjs +1 -1
- package/shared/definition57.js +1 -1
- package/shared/definition58.cjs +1 -1
- package/shared/definition58.js +1 -1
- package/shared/definition59.cjs +3 -1
- package/shared/definition59.js +3 -1
- package/shared/definition6.cjs +45 -12
- package/shared/definition6.js +45 -12
- package/shared/definition63.cjs +2 -2
- package/shared/definition63.js +2 -2
- package/shared/definition64.cjs +136 -38
- package/shared/definition64.js +136 -38
- package/shared/definition67.cjs +36 -15
- package/shared/definition67.js +37 -16
- package/shared/feedback/feedback-message.d.ts +1 -1
- package/shared/feedback/mixins.d.ts +2 -2
- package/shared/form-associated.cjs +4 -0
- package/shared/form-associated.js +4 -0
- package/shared/foundation/button/button.d.ts +1 -1
- package/shared/foundation/vivid-element/vivid-element.d.ts +2 -0
- package/shared/key-codes.js +1 -1
- package/shared/localization/Locale.d.ts +4 -0
- package/shared/mixins.cjs +4 -1
- package/shared/mixins.js +4 -1
- package/shared/patterns/affix.d.ts +2 -2
- package/shared/patterns/char-count/char-count.d.ts +1 -1
- package/shared/patterns/form-elements/with-success-text.d.ts +1 -1
- package/shared/patterns/linkable.d.ts +1 -1
- package/shared/patterns/localized.d.ts +1 -1
- package/shared/patterns/trapped-focus.d.ts +1 -1
- package/shared/picker-field/mixins/calendar-picker.d.ts +2 -2
- package/shared/picker-field/mixins/calendar-picker.locale.d.ts +5 -0
- package/shared/picker-field/mixins/calendar-picker.template.d.ts +2 -2
- package/shared/picker-field/mixins/calendar-segments/segment.d.ts +1 -0
- package/shared/picker-field/mixins/inline-time-picker/inline-time-picker.d.ts +1 -1
- package/shared/picker-field/mixins/min-max-calendar-picker.d.ts +4 -4
- package/shared/picker-field/mixins/single-date-picker.d.ts +4 -4
- package/shared/picker-field/mixins/single-value-picker.d.ts +1 -1
- package/shared/picker-field/mixins/time-selection-picker.d.ts +2 -2
- package/shared/picker-field/mixins/time-selection-picker.template.d.ts +2 -2
- package/shared/picker-field/picker-field.d.ts +3 -3
- package/shared/picker-field.template.cjs +13 -13
- package/shared/picker-field.template.js +13 -13
- package/shared/vivid-element.cjs +11 -1
- package/shared/vivid-element.js +11 -1
- package/styles/core/all.css +5 -5
- package/styles/core/theme.css +2 -2
- package/styles/core/typography.css +4 -4
- package/styles/fonts/spezia-variable.css +15 -15
- package/styles/tokens/theme-dark.css +4 -4
- package/styles/tokens/theme-light.css +4 -4
- package/styles/tokens/vivid-2-compat.css +1 -1
- package/vivid.api.json +395 -277
|
@@ -13,11 +13,11 @@ export declare const WithFeedback: <T extends Constructor<VividElement>>(Base: T
|
|
|
13
13
|
};
|
|
14
14
|
_slottedHelperTextFeedbackType(): "none" | "helper";
|
|
15
15
|
_getFeedbackTemplate(ctx: VividElementDefinitionContext): import("@microsoft/fast-element").ViewTemplate<any, any>;
|
|
16
|
+
connectedCallback(): void;
|
|
16
17
|
specialHandling: boolean;
|
|
17
18
|
_vividAriaBehaviour: import("../aria/aria-mixin").VividAriaBehaviour;
|
|
18
19
|
readonly $fastController: import("@microsoft/fast-element").Controller;
|
|
19
20
|
$emit(type: string, detail?: any, options?: Omit<CustomEventInit<any>, "detail"> | undefined): boolean | void;
|
|
20
|
-
connectedCallback(): void;
|
|
21
21
|
disconnectedCallback(): void;
|
|
22
22
|
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
|
23
23
|
accessKey: string;
|
|
@@ -363,11 +363,11 @@ export declare const WithLightDOMFeedback: <T extends Constructor<VividElement>>
|
|
|
363
363
|
message: string;
|
|
364
364
|
};
|
|
365
365
|
_slottedHelperTextFeedbackType(): "none" | "helper";
|
|
366
|
+
connectedCallback(): void;
|
|
366
367
|
specialHandling: boolean;
|
|
367
368
|
_vividAriaBehaviour: import("../aria/aria-mixin").VividAriaBehaviour;
|
|
368
369
|
readonly $fastController: import("@microsoft/fast-element").Controller;
|
|
369
370
|
$emit(type: string, detail?: any, options?: Omit<CustomEventInit<any>, "detail"> | undefined): boolean | void;
|
|
370
|
-
connectedCallback(): void;
|
|
371
371
|
disconnectedCallback(): void;
|
|
372
372
|
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
|
373
373
|
accessKey: string;
|
|
@@ -222,6 +222,10 @@ const FormAssociated = (Base) => {
|
|
|
222
222
|
* @internal
|
|
223
223
|
*/
|
|
224
224
|
setValidity(flags, message, anchor) {
|
|
225
|
+
if ("valid" in flags && this.disabled) {
|
|
226
|
+
const { valid, ...cleanFlags } = flags;
|
|
227
|
+
flags = cleanFlags;
|
|
228
|
+
}
|
|
225
229
|
if (this.elementInternals) {
|
|
226
230
|
this.elementInternals.setValidity(flags, message, anchor);
|
|
227
231
|
} else if (typeof message === "string") {
|
|
@@ -220,6 +220,10 @@ const FormAssociated = (Base) => {
|
|
|
220
220
|
* @internal
|
|
221
221
|
*/
|
|
222
222
|
setValidity(flags, message, anchor) {
|
|
223
|
+
if ("valid" in flags && this.disabled) {
|
|
224
|
+
const { valid, ...cleanFlags } = flags;
|
|
225
|
+
flags = cleanFlags;
|
|
226
|
+
}
|
|
223
227
|
if (this.elementInternals) {
|
|
224
228
|
this.elementInternals.setValidity(flags, message, anchor);
|
|
225
229
|
} else if (typeof message === "string") {
|
|
@@ -2,10 +2,10 @@ import { VividElement } from '../vivid-element/vivid-element';
|
|
|
2
2
|
declare const VividFoundationButton_base: {
|
|
3
3
|
new (...args: any[]): {
|
|
4
4
|
_vividAriaBehaviour: "delegate";
|
|
5
|
+
connectedCallback(): void;
|
|
5
6
|
specialHandling: boolean;
|
|
6
7
|
readonly $fastController: import("@microsoft/fast-element").Controller;
|
|
7
8
|
$emit(type: string, detail?: any, options?: Omit<CustomEventInit<any>, "detail"> | undefined): boolean | void;
|
|
8
|
-
connectedCallback(): void;
|
|
9
9
|
disconnectedCallback(): void;
|
|
10
10
|
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
|
11
11
|
accessKey: string;
|
package/shared/key-codes.js
CHANGED
|
@@ -15,4 +15,4 @@ const keyPageUp = "PageUp";
|
|
|
15
15
|
const keySpace = " ";
|
|
16
16
|
const keyTab = "Tab";
|
|
17
17
|
|
|
18
|
-
export { keySpace as a, keyEscape as b, keyTab as c, keyEnd as d, keyArrowUp as e, keyArrowDown as f, keyHome as g, keyArrowRight as h, keyArrowLeft as i,
|
|
18
|
+
export { keySpace as a, keyEscape as b, keyTab as c, keyEnd as d, keyArrowUp as e, keyArrowDown as f, keyHome as g, keyArrowRight as h, keyArrowLeft as i, keyFunction2 as j, keyEnter as k, keyPageDown as l, keyPageUp as m };
|
|
@@ -19,6 +19,8 @@ import type { ButtonLocale } from '../../lib/button/locale';
|
|
|
19
19
|
import type { FeedbackMessageLocale } from '../feedback/locale';
|
|
20
20
|
import type { CharCountLocale } from '../patterns/char-count/locale';
|
|
21
21
|
import type { DataGridLocale } from '../../lib/data-grid/locale';
|
|
22
|
+
import type { PaginationLocale } from '../../lib/pagination/locale';
|
|
23
|
+
import type { TagLocale } from '../../lib/tag/locale';
|
|
22
24
|
import type { Connotation } from '../../lib/enums';
|
|
23
25
|
type ConnotationAnnoncementLocale = {
|
|
24
26
|
[key in Connotation as `${key}Icon`]: string;
|
|
@@ -50,5 +52,7 @@ export interface Locale {
|
|
|
50
52
|
connotationAnnoncement: ConnotationAnnoncementLocale;
|
|
51
53
|
charCount: CharCountLocale;
|
|
52
54
|
dataGrid: DataGridLocale;
|
|
55
|
+
pagination: PaginationLocale;
|
|
56
|
+
tag: TagLocale;
|
|
53
57
|
}
|
|
54
58
|
export {};
|
package/shared/mixins.cjs
CHANGED
|
@@ -227,7 +227,10 @@ const WithFeedback = (Base) => {
|
|
|
227
227
|
<${feedbackTag} id="feedback" :type="${(x) => x._internalFeedback().type}">
|
|
228
228
|
${(x) => x._internalFeedback().message}
|
|
229
229
|
</${feedbackTag}>
|
|
230
|
-
<${feedbackTag}
|
|
230
|
+
<${feedbackTag}
|
|
231
|
+
id="slotted-helper-text-feedback"
|
|
232
|
+
:type="${(x) => x._slottedHelperTextFeedbackType()}"
|
|
233
|
+
>
|
|
231
234
|
<slot name="helper-text" ${slotted.slotted("_helperTextSlottedContent")}></slot>
|
|
232
235
|
</${feedbackTag}>
|
|
233
236
|
`;
|
package/shared/mixins.js
CHANGED
|
@@ -225,7 +225,10 @@ const WithFeedback = (Base) => {
|
|
|
225
225
|
<${feedbackTag} id="feedback" :type="${(x) => x._internalFeedback().type}">
|
|
226
226
|
${(x) => x._internalFeedback().message}
|
|
227
227
|
</${feedbackTag}>
|
|
228
|
-
<${feedbackTag}
|
|
228
|
+
<${feedbackTag}
|
|
229
|
+
id="slotted-helper-text-feedback"
|
|
230
|
+
:type="${(x) => x._slottedHelperTextFeedbackType()}"
|
|
231
|
+
>
|
|
229
232
|
<slot name="helper-text" ${slotted("_helperTextSlottedContent")}></slot>
|
|
230
233
|
</${feedbackTag}>
|
|
231
234
|
`;
|
|
@@ -6,11 +6,11 @@ export declare const AffixIcon: <T extends Constructor<VividElement>>(Base: T) =
|
|
|
6
6
|
new (...args: any[]): {
|
|
7
7
|
icon?: string | undefined;
|
|
8
8
|
iconSlottedContent?: HTMLElement[] | undefined;
|
|
9
|
+
connectedCallback(): void;
|
|
9
10
|
specialHandling: boolean;
|
|
10
11
|
_vividAriaBehaviour: import("../aria/aria-mixin").VividAriaBehaviour;
|
|
11
12
|
readonly $fastController: import("@microsoft/fast-element").Controller;
|
|
12
13
|
$emit(type: string, detail?: any, options?: Omit<CustomEventInit<any>, "detail"> | undefined): boolean | void;
|
|
13
|
-
connectedCallback(): void;
|
|
14
14
|
disconnectedCallback(): void;
|
|
15
15
|
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
|
16
16
|
accessKey: string;
|
|
@@ -347,11 +347,11 @@ export declare const AffixIconWithTrailing: <T extends Constructor<VividElement>
|
|
|
347
347
|
iconTrailing: boolean;
|
|
348
348
|
icon?: string | undefined;
|
|
349
349
|
iconSlottedContent?: HTMLElement[] | undefined;
|
|
350
|
+
connectedCallback(): void;
|
|
350
351
|
specialHandling: boolean;
|
|
351
352
|
_vividAriaBehaviour: import("../aria/aria-mixin").VividAriaBehaviour;
|
|
352
353
|
readonly $fastController: import("@microsoft/fast-element").Controller;
|
|
353
354
|
$emit(type: string, detail?: any, options?: Omit<CustomEventInit<any>, "detail"> | undefined): boolean | void;
|
|
354
|
-
connectedCallback(): void;
|
|
355
355
|
disconnectedCallback(): void;
|
|
356
356
|
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
|
357
357
|
accessKey: string;
|
|
@@ -13,11 +13,11 @@ export declare const WithCharCount: <T extends Constructor<VividElement>>(Base:
|
|
|
13
13
|
_updateCharCountRemaining: () => void;
|
|
14
14
|
_getCharCountTemplate: (context: VividElementDefinitionContext) => import("@microsoft/fast-element").ViewTemplate<any, any>;
|
|
15
15
|
readonly locale: import("../../localization/Locale").Locale;
|
|
16
|
+
connectedCallback(): void;
|
|
16
17
|
specialHandling: boolean;
|
|
17
18
|
_vividAriaBehaviour: import("../../aria/aria-mixin").VividAriaBehaviour;
|
|
18
19
|
readonly $fastController: import("@microsoft/fast-element").Controller;
|
|
19
20
|
$emit(type: string, detail?: any, options?: Omit<CustomEventInit<any>, "detail"> | undefined): boolean | void;
|
|
20
|
-
connectedCallback(): void;
|
|
21
21
|
disconnectedCallback(): void;
|
|
22
22
|
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
|
23
23
|
accessKey: string;
|
|
@@ -3,11 +3,11 @@ import type { VividElement } from '../../foundation/vivid-element/vivid-element'
|
|
|
3
3
|
export declare const WithSuccessText: <T extends Constructor<VividElement>>(Base: T) => {
|
|
4
4
|
new (...args: any[]): {
|
|
5
5
|
successText?: string | undefined;
|
|
6
|
+
connectedCallback(): void;
|
|
6
7
|
specialHandling: boolean;
|
|
7
8
|
_vividAriaBehaviour: import("../../aria/aria-mixin").VividAriaBehaviour;
|
|
8
9
|
readonly $fastController: import("@microsoft/fast-element").Controller;
|
|
9
10
|
$emit(type: string, detail?: any, options?: Omit<CustomEventInit<any>, "detail"> | undefined): boolean | void;
|
|
10
|
-
connectedCallback(): void;
|
|
11
11
|
disconnectedCallback(): void;
|
|
12
12
|
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
|
13
13
|
accessKey: string;
|
|
@@ -57,10 +57,10 @@ export declare const Linkable: <T extends Constructor<VividElement>>(Base: T) =>
|
|
|
57
57
|
ariaRelevant: (string | number | boolean | null | undefined) | ((x: unknown) => string | number | boolean | null | undefined);
|
|
58
58
|
}> | undefined) => ViewTemplate<T_1, any>;
|
|
59
59
|
_vividAriaBehaviour: "delegate";
|
|
60
|
+
connectedCallback(): void;
|
|
60
61
|
specialHandling: boolean;
|
|
61
62
|
readonly $fastController: import("@microsoft/fast-element").Controller;
|
|
62
63
|
$emit(type: string, detail?: any, options?: Omit<CustomEventInit<any>, "detail"> | undefined): boolean | void;
|
|
63
|
-
connectedCallback(): void;
|
|
64
64
|
disconnectedCallback(): void;
|
|
65
65
|
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
|
66
66
|
accessKey: string;
|
|
@@ -4,11 +4,11 @@ import type { Locale } from '../localization/Locale';
|
|
|
4
4
|
export declare const Localized: <T extends Constructor<VividElement>>(Base: T) => {
|
|
5
5
|
new (...args: any[]): {
|
|
6
6
|
readonly locale: Locale;
|
|
7
|
+
connectedCallback(): void;
|
|
7
8
|
specialHandling: boolean;
|
|
8
9
|
_vividAriaBehaviour: import("../aria/aria-mixin").VividAriaBehaviour;
|
|
9
10
|
readonly $fastController: import("@microsoft/fast-element").Controller;
|
|
10
11
|
$emit(type: string, detail?: any, options?: Omit<CustomEventInit<any>, "detail"> | undefined): boolean | void;
|
|
11
|
-
connectedCallback(): void;
|
|
12
12
|
disconnectedCallback(): void;
|
|
13
13
|
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
|
14
14
|
accessKey: string;
|
|
@@ -4,11 +4,11 @@ export declare const ignoreEventInFocusTraps: (event: Event) => void;
|
|
|
4
4
|
export declare const TrappedFocus: <T extends Constructor<VividElement>>(Base: T) => {
|
|
5
5
|
new (...args: any[]): {
|
|
6
6
|
_trappedFocus(event: KeyboardEvent, getFocusableEls: () => NodeListOf<HTMLElement>): boolean;
|
|
7
|
+
connectedCallback(): void;
|
|
7
8
|
specialHandling: boolean;
|
|
8
9
|
_vividAriaBehaviour: import("../aria/aria-mixin").VividAriaBehaviour;
|
|
9
10
|
readonly $fastController: import("@microsoft/fast-element").Controller;
|
|
10
11
|
$emit(type: string, detail?: any, options?: Omit<CustomEventInit<any>, "detail"> | undefined): boolean | void;
|
|
11
|
-
connectedCallback(): void;
|
|
12
12
|
disconnectedCallback(): void;
|
|
13
13
|
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
|
14
14
|
accessKey: string;
|
|
@@ -30,7 +30,7 @@ export declare const CalendarPicker: <T extends AbstractConstructor<PickerField>
|
|
|
30
30
|
_hideDatesOutsideMonth: boolean;
|
|
31
31
|
_lastFocussedDate: DateStr | null;
|
|
32
32
|
_isDateSelected(_: DateStr): boolean;
|
|
33
|
-
_isDateAriaSelected(date: DateStr):
|
|
33
|
+
_isDateAriaSelected(date: DateStr): boolean;
|
|
34
34
|
_isDateInSelectedRange(_: DateStr): boolean;
|
|
35
35
|
_isDateRangeStart(_: DateStr): boolean;
|
|
36
36
|
_isDateRangeEnd(_: DateStr): boolean;
|
|
@@ -101,11 +101,11 @@ export declare const CalendarPicker: <T extends AbstractConstructor<PickerField>
|
|
|
101
101
|
};
|
|
102
102
|
_slottedHelperTextFeedbackType(): "none" | "helper";
|
|
103
103
|
_getFeedbackTemplate(ctx: import("../../design-system/defineVividComponent").VividElementDefinitionContext): import("@microsoft/fast-element").ViewTemplate<any, any>;
|
|
104
|
+
connectedCallback(): void;
|
|
104
105
|
specialHandling: boolean;
|
|
105
106
|
_vividAriaBehaviour: import("../../aria/aria-mixin").VividAriaBehaviour;
|
|
106
107
|
readonly $fastController: import("@microsoft/fast-element").Controller;
|
|
107
108
|
$emit(type: string, detail?: any, options?: Omit<CustomEventInit<any>, "detail"> | undefined): boolean | void;
|
|
108
|
-
connectedCallback(): void;
|
|
109
109
|
disconnectedCallback(): void;
|
|
110
110
|
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
|
111
111
|
accessKey: string;
|
|
@@ -18,6 +18,11 @@ export interface CalendarPickerLocale {
|
|
|
18
18
|
prevMonthLabel: string;
|
|
19
19
|
nextMonthLabel: string;
|
|
20
20
|
nextYearLabel: string;
|
|
21
|
+
todayLabel: string;
|
|
22
|
+
selectedLabel: string;
|
|
23
|
+
currentLabel: string;
|
|
24
|
+
changeMonthLabel: (month: string) => string;
|
|
25
|
+
showCalendarForMonthLabel: (month: string) => string;
|
|
21
26
|
invalidDateError: string;
|
|
22
27
|
invalidDateRangeError: string;
|
|
23
28
|
startDateAfterMinDateError: (minDate: string) => string;
|
|
@@ -28,7 +28,7 @@ export declare const CalendarPickerTemplate: (context: VividElementDefinitionCon
|
|
|
28
28
|
_hideDatesOutsideMonth: boolean;
|
|
29
29
|
_lastFocussedDate: string | null;
|
|
30
30
|
_isDateSelected(_: string): boolean;
|
|
31
|
-
_isDateAriaSelected(date: string):
|
|
31
|
+
_isDateAriaSelected(date: string): boolean;
|
|
32
32
|
_isDateInSelectedRange(_: string): boolean;
|
|
33
33
|
_isDateRangeStart(_: string): boolean;
|
|
34
34
|
_isDateRangeEnd(_: string): boolean;
|
|
@@ -99,11 +99,11 @@ export declare const CalendarPickerTemplate: (context: VividElementDefinitionCon
|
|
|
99
99
|
};
|
|
100
100
|
_slottedHelperTextFeedbackType(): "none" | "helper";
|
|
101
101
|
_getFeedbackTemplate(ctx: VividElementDefinitionContext): import("@microsoft/fast-element").ViewTemplate<any, any>;
|
|
102
|
+
connectedCallback(): void;
|
|
102
103
|
specialHandling: boolean;
|
|
103
104
|
_vividAriaBehaviour: import("../../aria/aria-mixin").VividAriaBehaviour;
|
|
104
105
|
readonly $fastController: import("@microsoft/fast-element").Controller;
|
|
105
106
|
$emit(type: string, detail?: any, options?: Omit<CustomEventInit<any>, "detail"> | undefined): boolean | void;
|
|
106
|
-
connectedCallback(): void;
|
|
107
107
|
disconnectedCallback(): void;
|
|
108
108
|
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
|
109
109
|
accessKey: string;
|
|
@@ -2,11 +2,11 @@ import { VividElement } from '../../../foundation/vivid-element/vivid-element';
|
|
|
2
2
|
declare const InlineTimePicker_base: {
|
|
3
3
|
new (...args: any[]): {
|
|
4
4
|
readonly locale: import("../../../localization/Locale").Locale;
|
|
5
|
+
connectedCallback(): void;
|
|
5
6
|
specialHandling: boolean;
|
|
6
7
|
_vividAriaBehaviour: import("../../../aria/aria-mixin").VividAriaBehaviour;
|
|
7
8
|
readonly $fastController: import("@microsoft/fast-element").Controller;
|
|
8
9
|
$emit(type: string, detail?: any, options?: Omit<CustomEventInit<any>, "detail"> | undefined): boolean | void;
|
|
9
|
-
connectedCallback(): void;
|
|
10
10
|
disconnectedCallback(): void;
|
|
11
11
|
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
|
12
12
|
accessKey: string;
|
|
@@ -28,7 +28,7 @@ export declare const MinMaxCalendarPicker: <T_5 extends AbstractConstructor<{
|
|
|
28
28
|
_hideDatesOutsideMonth: boolean;
|
|
29
29
|
_lastFocussedDate: string | null;
|
|
30
30
|
_isDateSelected(_: string): boolean;
|
|
31
|
-
_isDateAriaSelected(date: string):
|
|
31
|
+
_isDateAriaSelected(date: string): boolean;
|
|
32
32
|
_isDateInSelectedRange(_: string): boolean;
|
|
33
33
|
_isDateRangeStart(_: string): boolean;
|
|
34
34
|
_isDateRangeEnd(_: string): boolean;
|
|
@@ -99,11 +99,11 @@ export declare const MinMaxCalendarPicker: <T_5 extends AbstractConstructor<{
|
|
|
99
99
|
};
|
|
100
100
|
_slottedHelperTextFeedbackType(): "none" | "helper";
|
|
101
101
|
_getFeedbackTemplate(ctx: import("../../design-system/defineVividComponent").VividElementDefinitionContext): import("@microsoft/fast-element").ViewTemplate<any, any>;
|
|
102
|
+
connectedCallback(): void;
|
|
102
103
|
specialHandling: boolean;
|
|
103
104
|
_vividAriaBehaviour: import("../../aria/aria-mixin").VividAriaBehaviour;
|
|
104
105
|
readonly $fastController: import("@microsoft/fast-element").Controller;
|
|
105
106
|
$emit(type: string, detail?: any, options?: Omit<CustomEventInit<any>, "detail"> | undefined): boolean | void;
|
|
106
|
-
connectedCallback(): void;
|
|
107
107
|
disconnectedCallback(): void;
|
|
108
108
|
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
|
109
109
|
accessKey: string;
|
|
@@ -839,7 +839,7 @@ export declare const MinMaxCalendarPicker: <T_5 extends AbstractConstructor<{
|
|
|
839
839
|
_hideDatesOutsideMonth: boolean;
|
|
840
840
|
_lastFocussedDate: string | null;
|
|
841
841
|
_isDateSelected(_: string): boolean;
|
|
842
|
-
_isDateAriaSelected(date: string):
|
|
842
|
+
_isDateAriaSelected(date: string): boolean;
|
|
843
843
|
_isDateInSelectedRange(_: string): boolean;
|
|
844
844
|
_isDateRangeStart(_: string): boolean;
|
|
845
845
|
_isDateRangeEnd(_: string): boolean;
|
|
@@ -910,11 +910,11 @@ export declare const MinMaxCalendarPicker: <T_5 extends AbstractConstructor<{
|
|
|
910
910
|
};
|
|
911
911
|
_slottedHelperTextFeedbackType(): "none" | "helper";
|
|
912
912
|
_getFeedbackTemplate(ctx: import("../../design-system/defineVividComponent").VividElementDefinitionContext): import("@microsoft/fast-element").ViewTemplate<any, any>;
|
|
913
|
+
connectedCallback(): void;
|
|
913
914
|
specialHandling: boolean;
|
|
914
915
|
_vividAriaBehaviour: import("../../aria/aria-mixin").VividAriaBehaviour;
|
|
915
916
|
readonly $fastController: import("@microsoft/fast-element").Controller;
|
|
916
917
|
$emit(type: string, detail?: any, options?: Omit<CustomEventInit<any>, "detail"> | undefined): boolean | void;
|
|
917
|
-
connectedCallback(): void;
|
|
918
918
|
disconnectedCallback(): void;
|
|
919
919
|
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
|
920
920
|
accessKey: string;
|
|
@@ -27,7 +27,7 @@ export declare const SingleDatePickerMixin: <T_6 extends AbstractConstructor<{
|
|
|
27
27
|
_hideDatesOutsideMonth: boolean;
|
|
28
28
|
_lastFocussedDate: string | null;
|
|
29
29
|
_isDateSelected(_: string): boolean;
|
|
30
|
-
_isDateAriaSelected(date: string):
|
|
30
|
+
_isDateAriaSelected(date: string): boolean;
|
|
31
31
|
_isDateInSelectedRange(_: string): boolean;
|
|
32
32
|
_isDateRangeStart(_: string): boolean;
|
|
33
33
|
_isDateRangeEnd(_: string): boolean;
|
|
@@ -98,11 +98,11 @@ export declare const SingleDatePickerMixin: <T_6 extends AbstractConstructor<{
|
|
|
98
98
|
};
|
|
99
99
|
_slottedHelperTextFeedbackType(): "none" | "helper";
|
|
100
100
|
_getFeedbackTemplate(ctx: import("../../design-system/defineVividComponent").VividElementDefinitionContext): import("@microsoft/fast-element").ViewTemplate<any, any>;
|
|
101
|
+
connectedCallback(): void;
|
|
101
102
|
specialHandling: boolean;
|
|
102
103
|
_vividAriaBehaviour: import("../../aria/aria-mixin").VividAriaBehaviour;
|
|
103
104
|
readonly $fastController: import("@microsoft/fast-element").Controller;
|
|
104
105
|
$emit(type: string, detail?: any, options?: Omit<CustomEventInit<any>, "detail"> | undefined): boolean | void;
|
|
105
|
-
connectedCallback(): void;
|
|
106
106
|
disconnectedCallback(): void;
|
|
107
107
|
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
|
108
108
|
accessKey: string;
|
|
@@ -869,11 +869,11 @@ export declare const SingleDatePickerMixin: <T_6 extends AbstractConstructor<{
|
|
|
869
869
|
};
|
|
870
870
|
_slottedHelperTextFeedbackType(): "none" | "helper";
|
|
871
871
|
_getFeedbackTemplate(ctx: import("../../design-system/defineVividComponent").VividElementDefinitionContext): import("@microsoft/fast-element").ViewTemplate<any, any>;
|
|
872
|
+
connectedCallback(): void;
|
|
872
873
|
specialHandling: boolean;
|
|
873
874
|
_vividAriaBehaviour: import("../../aria/aria-mixin").VividAriaBehaviour;
|
|
874
875
|
readonly $fastController: import("@microsoft/fast-element").Controller;
|
|
875
876
|
$emit(type: string, detail?: any, options?: Omit<CustomEventInit<any>, "detail"> | undefined): boolean | void;
|
|
876
|
-
connectedCallback(): void;
|
|
877
877
|
disconnectedCallback(): void;
|
|
878
878
|
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
|
879
879
|
accessKey: string;
|
|
@@ -1678,11 +1678,11 @@ export declare const SingleDatePickerMixin: <T_6 extends AbstractConstructor<{
|
|
|
1678
1678
|
};
|
|
1679
1679
|
_slottedHelperTextFeedbackType(): "none" | "helper";
|
|
1680
1680
|
_getFeedbackTemplate(ctx: import("../../design-system/defineVividComponent").VividElementDefinitionContext): import("@microsoft/fast-element").ViewTemplate<any, any>;
|
|
1681
|
+
connectedCallback(): void;
|
|
1681
1682
|
specialHandling: boolean;
|
|
1682
1683
|
_vividAriaBehaviour: import("../../aria/aria-mixin").VividAriaBehaviour;
|
|
1683
1684
|
readonly $fastController: import("@microsoft/fast-element").Controller;
|
|
1684
1685
|
$emit(type: string, detail?: any, options?: Omit<CustomEventInit<any>, "detail"> | undefined): boolean | void;
|
|
1685
|
-
connectedCallback(): void;
|
|
1686
1686
|
disconnectedCallback(): void;
|
|
1687
1687
|
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
|
1688
1688
|
accessKey: string;
|
|
@@ -62,11 +62,11 @@ export declare const SingleValuePicker: <T extends AbstractConstructor<PickerFie
|
|
|
62
62
|
};
|
|
63
63
|
_slottedHelperTextFeedbackType(): "none" | "helper";
|
|
64
64
|
_getFeedbackTemplate(ctx: import("../../design-system/defineVividComponent").VividElementDefinitionContext): import("@microsoft/fast-element").ViewTemplate<any, any>;
|
|
65
|
+
connectedCallback(): void;
|
|
65
66
|
specialHandling: boolean;
|
|
66
67
|
_vividAriaBehaviour: import("../../aria/aria-mixin").VividAriaBehaviour;
|
|
67
68
|
readonly $fastController: import("@microsoft/fast-element").Controller;
|
|
68
69
|
$emit(type: string, detail?: any, options?: Omit<CustomEventInit<any>, "detail"> | undefined): boolean | void;
|
|
69
|
-
connectedCallback(): void;
|
|
70
70
|
disconnectedCallback(): void;
|
|
71
71
|
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
|
72
72
|
accessKey: string;
|
|
@@ -64,11 +64,11 @@ export declare const TimeSelectionPicker: <T_5 extends AbstractConstructor<{
|
|
|
64
64
|
};
|
|
65
65
|
_slottedHelperTextFeedbackType(): "none" | "helper";
|
|
66
66
|
_getFeedbackTemplate(ctx: import("../../design-system/defineVividComponent").VividElementDefinitionContext): import("@microsoft/fast-element").ViewTemplate<any, any>;
|
|
67
|
+
connectedCallback(): void;
|
|
67
68
|
specialHandling: boolean;
|
|
68
69
|
_vividAriaBehaviour: import("../../aria/aria-mixin").VividAriaBehaviour;
|
|
69
70
|
readonly $fastController: import("@microsoft/fast-element").Controller;
|
|
70
71
|
$emit(type: string, detail?: any, options?: Omit<CustomEventInit<any>, "detail"> | undefined): boolean | void;
|
|
71
|
-
connectedCallback(): void;
|
|
72
72
|
disconnectedCallback(): void;
|
|
73
73
|
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
|
74
74
|
accessKey: string;
|
|
@@ -853,11 +853,11 @@ export declare const TimeSelectionPicker: <T_5 extends AbstractConstructor<{
|
|
|
853
853
|
};
|
|
854
854
|
_slottedHelperTextFeedbackType(): "none" | "helper";
|
|
855
855
|
_getFeedbackTemplate(ctx: import("../../design-system/defineVividComponent").VividElementDefinitionContext): import("@microsoft/fast-element").ViewTemplate<any, any>;
|
|
856
|
+
connectedCallback(): void;
|
|
856
857
|
specialHandling: boolean;
|
|
857
858
|
_vividAriaBehaviour: import("../../aria/aria-mixin").VividAriaBehaviour;
|
|
858
859
|
readonly $fastController: import("@microsoft/fast-element").Controller;
|
|
859
860
|
$emit(type: string, detail?: any, options?: Omit<CustomEventInit<any>, "detail"> | undefined): boolean | void;
|
|
860
|
-
connectedCallback(): void;
|
|
861
861
|
disconnectedCallback(): void;
|
|
862
862
|
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
|
863
863
|
accessKey: string;
|
|
@@ -81,11 +81,11 @@ export declare const TimeSelectionPickerTemplate: (context: VividElementDefiniti
|
|
|
81
81
|
};
|
|
82
82
|
_slottedHelperTextFeedbackType(): "none" | "helper";
|
|
83
83
|
_getFeedbackTemplate(ctx: VividElementDefinitionContext): import("@microsoft/fast-element").ViewTemplate<any, any>;
|
|
84
|
+
connectedCallback(): void;
|
|
84
85
|
specialHandling: boolean;
|
|
85
86
|
_vividAriaBehaviour: import("../../aria/aria-mixin").VividAriaBehaviour;
|
|
86
87
|
readonly $fastController: import("@microsoft/fast-element").Controller;
|
|
87
88
|
$emit(type: string, detail?: any, options?: Omit<CustomEventInit<any>, "detail"> | undefined): boolean | void;
|
|
88
|
-
connectedCallback(): void;
|
|
89
89
|
disconnectedCallback(): void;
|
|
90
90
|
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
|
91
91
|
accessKey: string;
|
|
@@ -851,11 +851,11 @@ export declare const TimeSelectionPickerTemplate: (context: VividElementDefiniti
|
|
|
851
851
|
};
|
|
852
852
|
_slottedHelperTextFeedbackType(): "none" | "helper";
|
|
853
853
|
_getFeedbackTemplate(ctx: VividElementDefinitionContext): import("@microsoft/fast-element").ViewTemplate<any, any>;
|
|
854
|
+
connectedCallback(): void;
|
|
854
855
|
specialHandling: boolean;
|
|
855
856
|
_vividAriaBehaviour: import("../../aria/aria-mixin").VividAriaBehaviour;
|
|
856
857
|
readonly $fastController: import("@microsoft/fast-element").Controller;
|
|
857
858
|
$emit(type: string, detail?: any, options?: Omit<CustomEventInit<any>, "detail"> | undefined): boolean | void;
|
|
858
|
-
connectedCallback(): void;
|
|
859
859
|
disconnectedCallback(): void;
|
|
860
860
|
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
|
861
861
|
accessKey: string;
|
|
@@ -10,11 +10,11 @@ declare const PickerField_base: {
|
|
|
10
10
|
};
|
|
11
11
|
_slottedHelperTextFeedbackType(): "none" | "helper";
|
|
12
12
|
_getFeedbackTemplate(ctx: import("../design-system/defineVividComponent").VividElementDefinitionContext): import("@microsoft/fast-element").ViewTemplate<any, any>;
|
|
13
|
+
connectedCallback(): void;
|
|
13
14
|
specialHandling: boolean;
|
|
14
15
|
_vividAriaBehaviour: import("../aria/aria-mixin").VividAriaBehaviour;
|
|
15
16
|
readonly $fastController: import("@microsoft/fast-element").Controller;
|
|
16
17
|
$emit(type: string, detail?: any, options?: Omit<CustomEventInit<any>, "detail"> | undefined): boolean | void;
|
|
17
|
-
connectedCallback(): void;
|
|
18
18
|
disconnectedCallback(): void;
|
|
19
19
|
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
|
20
20
|
accessKey: string;
|
|
@@ -1101,11 +1101,11 @@ declare const PickerField_base: {
|
|
|
1101
1101
|
} & {
|
|
1102
1102
|
new (...args: any[]): {
|
|
1103
1103
|
_trappedFocus(event: KeyboardEvent, getFocusableEls: () => NodeListOf<HTMLElement>): boolean;
|
|
1104
|
+
connectedCallback(): void;
|
|
1104
1105
|
specialHandling: boolean;
|
|
1105
1106
|
_vividAriaBehaviour: import("../aria/aria-mixin").VividAriaBehaviour;
|
|
1106
1107
|
readonly $fastController: import("@microsoft/fast-element").Controller;
|
|
1107
1108
|
$emit(type: string, detail?: any, options?: Omit<CustomEventInit<any>, "detail"> | undefined): boolean | void;
|
|
1108
|
-
connectedCallback(): void;
|
|
1109
1109
|
disconnectedCallback(): void;
|
|
1110
1110
|
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
|
1111
1111
|
accessKey: string;
|
|
@@ -1438,11 +1438,11 @@ declare const PickerField_base: {
|
|
|
1438
1438
|
} & {
|
|
1439
1439
|
new (...args: any[]): {
|
|
1440
1440
|
readonly locale: import("../localization/Locale").Locale;
|
|
1441
|
+
connectedCallback(): void;
|
|
1441
1442
|
specialHandling: boolean;
|
|
1442
1443
|
_vividAriaBehaviour: import("../aria/aria-mixin").VividAriaBehaviour;
|
|
1443
1444
|
readonly $fastController: import("@microsoft/fast-element").Controller;
|
|
1444
1445
|
$emit(type: string, detail?: any, options?: Omit<CustomEventInit<any>, "detail"> | undefined): boolean | void;
|
|
1445
|
-
connectedCallback(): void;
|
|
1446
1446
|
disconnectedCallback(): void;
|
|
1447
1447
|
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
|
1448
1448
|
accessKey: string;
|
|
@@ -213,7 +213,6 @@ class PickerField extends mixins.WithFeedback(
|
|
|
213
213
|
* @internal
|
|
214
214
|
*/
|
|
215
215
|
_onClearClick() {
|
|
216
|
-
this._closePopup();
|
|
217
216
|
this.$emit("clear-click");
|
|
218
217
|
}
|
|
219
218
|
}
|
|
@@ -234,18 +233,18 @@ const PickerFieldTemplate = (context, popupContentTemplate, { withSeparator, pad
|
|
|
234
233
|
return vividElement.html`
|
|
235
234
|
<div class='base' @keydown='${(x, { event }) => x._onBaseKeyDown(event)}'>
|
|
236
235
|
<${textFieldTag} id='text-field'
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
236
|
+
${ref.ref("_textFieldEl")}
|
|
237
|
+
class='control'
|
|
238
|
+
label='${(x) => x.label}'
|
|
239
|
+
helper-text='${(x) => x.helperText}'
|
|
240
|
+
error-text='${(x) => x.errorValidationMessage}'
|
|
241
|
+
placeholder='${(x) => x._textFieldPlaceholder}'
|
|
242
|
+
size='${(x) => x._textFieldSize}'
|
|
243
|
+
current-value='${(x) => x._presentationValue}'
|
|
244
|
+
?disabled='${(x) => x.disabled}'
|
|
245
|
+
?readonly='${(x) => x.readOnly}'
|
|
246
|
+
@input='${(x, c) => x._onTextFieldInput(c.event)}'
|
|
247
|
+
@change='${(x) => x._onTextFieldChange()}'
|
|
249
248
|
>
|
|
250
249
|
<slot
|
|
251
250
|
slot='${(x) => x._helperTextSlottedContent?.length ? "helper-text" : void 0}'
|
|
@@ -267,6 +266,7 @@ const PickerFieldTemplate = (context, popupContentTemplate, { withSeparator, pad
|
|
|
267
266
|
<${popupTag}
|
|
268
267
|
?open='${(x) => x._popupOpen}'
|
|
269
268
|
:anchor='${(x) => x._textFieldEl}'
|
|
269
|
+
offset='${(x) => x._helperTextSlottedContent?.length || x.helperText || x.errorValidationMessage ? 8 : null}'
|
|
270
270
|
placement='bottom-start'
|
|
271
271
|
class='popup'>
|
|
272
272
|
<div class="${() => classNames.classNames("dialog", [
|
|
@@ -211,7 +211,6 @@ class PickerField extends WithFeedback(
|
|
|
211
211
|
* @internal
|
|
212
212
|
*/
|
|
213
213
|
_onClearClick() {
|
|
214
|
-
this._closePopup();
|
|
215
214
|
this.$emit("clear-click");
|
|
216
215
|
}
|
|
217
216
|
}
|
|
@@ -232,18 +231,18 @@ const PickerFieldTemplate = (context, popupContentTemplate, { withSeparator, pad
|
|
|
232
231
|
return html`
|
|
233
232
|
<div class='base' @keydown='${(x, { event }) => x._onBaseKeyDown(event)}'>
|
|
234
233
|
<${textFieldTag} id='text-field'
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
234
|
+
${ref("_textFieldEl")}
|
|
235
|
+
class='control'
|
|
236
|
+
label='${(x) => x.label}'
|
|
237
|
+
helper-text='${(x) => x.helperText}'
|
|
238
|
+
error-text='${(x) => x.errorValidationMessage}'
|
|
239
|
+
placeholder='${(x) => x._textFieldPlaceholder}'
|
|
240
|
+
size='${(x) => x._textFieldSize}'
|
|
241
|
+
current-value='${(x) => x._presentationValue}'
|
|
242
|
+
?disabled='${(x) => x.disabled}'
|
|
243
|
+
?readonly='${(x) => x.readOnly}'
|
|
244
|
+
@input='${(x, c) => x._onTextFieldInput(c.event)}'
|
|
245
|
+
@change='${(x) => x._onTextFieldChange()}'
|
|
247
246
|
>
|
|
248
247
|
<slot
|
|
249
248
|
slot='${(x) => x._helperTextSlottedContent?.length ? "helper-text" : void 0}'
|
|
@@ -265,6 +264,7 @@ const PickerFieldTemplate = (context, popupContentTemplate, { withSeparator, pad
|
|
|
265
264
|
<${popupTag}
|
|
266
265
|
?open='${(x) => x._popupOpen}'
|
|
267
266
|
:anchor='${(x) => x._textFieldEl}'
|
|
267
|
+
offset='${(x) => x._helperTextSlottedContent?.length || x.helperText || x.errorValidationMessage ? 8 : null}'
|
|
268
268
|
placement='bottom-start'
|
|
269
269
|
class='popup'>
|
|
270
270
|
<div class="${() => classNames("dialog", [
|
package/shared/vivid-element.cjs
CHANGED
|
@@ -2541,6 +2541,7 @@ const createRegisterFunction = (definition) => (prefix = "vwc") => {
|
|
|
2541
2541
|
const registerComponent = (componentDefinition) => {
|
|
2542
2542
|
const tag = prefixed(componentDefinition.name);
|
|
2543
2543
|
let type = componentDefinition.type;
|
|
2544
|
+
type.componentName = componentDefinition.name;
|
|
2544
2545
|
if (registeredTags.has(tag)) {
|
|
2545
2546
|
return;
|
|
2546
2547
|
} else if (tagByType.has(type) && tagByType.get(type) !== tag) {
|
|
@@ -2733,7 +2734,16 @@ const ReplacedPropHandling = (Base) => {
|
|
|
2733
2734
|
|
|
2734
2735
|
class VividElement extends AriaMixin(ReplacedPropHandling(FASTElement)) {
|
|
2735
2736
|
static {
|
|
2736
|
-
this.VIVID_VERSION = "4.
|
|
2737
|
+
this.VIVID_VERSION = "4.27.0";
|
|
2738
|
+
}
|
|
2739
|
+
/**
|
|
2740
|
+
* Add data-vvd-component attribute with component name globally,
|
|
2741
|
+
* for referring to the elements in CSS, testing or debugging
|
|
2742
|
+
*/
|
|
2743
|
+
connectedCallback() {
|
|
2744
|
+
super.connectedCallback();
|
|
2745
|
+
const name = this.constructor.componentName;
|
|
2746
|
+
this.setAttribute("data-vvd-component", name);
|
|
2737
2747
|
}
|
|
2738
2748
|
}
|
|
2739
2749
|
|