@vonage/vivid 3.31.0 → 3.32.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/alert/index.js +2 -1
- package/checkbox/index.js +2 -1
- package/combobox/index.js +2 -1
- package/custom-elements.json +748 -11
- package/date-picker/index.js +35 -0
- package/dialog/index.js +1 -1
- package/divider/index.js +1 -1
- package/empty-state/index.js +1 -1
- package/fab/index.js +1 -1
- package/file-picker/index.js +3 -2
- package/header/index.js +1 -1
- package/index.d.ts +1 -0
- package/index.js +48 -46
- package/layout/index.js +1 -1
- package/lib/button/button.d.ts +2 -0
- package/lib/components.d.ts +20 -19
- package/lib/date-picker/calendar/calendarGrid.d.ts +17 -0
- package/lib/date-picker/calendar/dateStr.d.ts +6 -0
- package/lib/date-picker/calendar/month.d.ts +11 -0
- package/lib/date-picker/calendar/monthPickerGrid.d.ts +10 -0
- package/lib/date-picker/calendar/presentationDate.d.ts +4 -0
- package/lib/date-picker/date-picker.d.ts +16 -0
- package/lib/date-picker/date-picker.template.d.ts +4 -0
- package/lib/date-picker/definition.d.ts +3 -0
- package/lib/date-picker/index.d.ts +1 -0
- package/lib/date-picker/locale.d.ts +21 -0
- package/lib/select/select.d.ts +4 -2
- package/listbox/index.js +3 -2
- package/locales/en-GB.d.ts +3 -0
- package/locales/en-GB.js +25 -0
- package/locales/en-US.d.ts +3 -0
- package/locales/en-US.js +25 -0
- package/locales/ja-JP.d.ts +3 -0
- package/locales/ja-JP.js +25 -0
- package/locales/zh-CN.d.ts +3 -0
- package/locales/zh-CN.js +25 -0
- package/menu/index.js +2 -2
- package/menu-item/index.js +1 -1
- package/nav/index.js +1 -1
- package/nav-disclosure/index.js +1 -1
- package/nav-item/index.js +1 -1
- package/note/index.js +3 -2
- package/number-field/index.js +4 -3
- package/option/index.js +2 -1
- package/package.json +2 -1
- package/pagination/index.js +1 -1
- package/progress/index.js +1 -1
- package/radio/index.js +1 -1
- package/radio-group/index.js +1 -1
- package/select/index.js +3 -2
- package/shared/definition.js +1 -1
- package/shared/definition10.js +1 -1
- package/shared/definition11.js +1 -1
- package/shared/definition12.js +1 -1
- package/shared/definition14.js +1 -1
- package/shared/definition15.js +1 -1
- package/shared/definition16.js +1 -1
- package/shared/definition17.js +1 -1
- package/shared/definition18.js +2 -2
- package/shared/definition19.js +2 -2
- package/shared/definition2.js +1 -1
- package/shared/definition21.js +3 -3
- package/shared/definition22.js +2 -2
- package/shared/definition23.js +5750 -189
- package/shared/definition24.js +116 -68
- package/shared/definition25.js +68 -38
- package/shared/definition26.js +222 -74
- package/shared/definition27.js +33 -2282
- package/shared/definition28.js +76 -47
- package/shared/definition29.js +2287 -38
- package/shared/definition30.js +39 -417
- package/shared/definition31.js +38 -364
- package/shared/definition32.js +427 -12
- package/shared/definition33.js +350 -59
- package/shared/definition34.js +12 -26
- package/shared/definition35.js +67 -31
- package/shared/definition36.js +20 -431
- package/shared/definition37.js +34 -194
- package/shared/definition38.js +427 -45
- package/shared/definition39.js +195 -33
- package/shared/definition4.js +1 -1
- package/shared/definition40.js +53 -425
- package/shared/definition41.js +29 -645
- package/shared/definition42.js +420 -73
- package/shared/definition43.js +549 -444
- package/shared/definition44.js +68 -90
- package/shared/definition45.js +501 -79
- package/shared/definition46.js +84 -45
- package/shared/definition47.js +131 -17
- package/shared/definition48.js +44 -471
- package/shared/definition49.js +21 -108
- package/shared/definition5.js +1 -1
- package/shared/definition50.js +487 -15
- package/shared/definition51.js +92 -255
- package/shared/definition52.js +16 -115
- package/shared/definition53.js +264 -115
- package/shared/definition54.js +91 -82
- package/shared/definition55.js +111 -65
- package/shared/definition56.js +64 -291
- package/shared/definition57.js +303 -0
- package/shared/definition6.js +2 -2
- package/shared/definition7.js +10 -3
- package/shared/definition9.js +1 -1
- package/shared/{form-elements.js → index2.js} +14 -2
- package/shared/localization/Locale.d.ts +4 -0
- package/shared/localization/index.d.ts +7 -0
- package/shared/patterns/form-elements/form-elements.d.ts +4 -4
- package/shared/patterns/index.d.ts +1 -0
- package/shared/patterns/localized.d.ts +4 -0
- package/shared/text-field.js +1 -1
- package/side-drawer/index.js +1 -1
- package/slider/index.js +1 -1
- package/split-button/index.js +1 -1
- package/styles/core/all.css +25 -3
- package/styles/core/theme.css +1 -1
- package/styles/core/typography.css +25 -3
- package/styles/tokens/theme-dark.css +4 -4
- package/styles/tokens/theme-light.css +4 -4
- package/styles/tokens/vivid-2-compat.css +2 -2
- package/switch/index.js +3 -2
- package/tab/index.js +1 -1
- package/tab-panel/index.js +1 -1
- package/tabs/index.js +3 -3
- package/tag/index.js +1 -1
- package/tag-group/index.js +1 -1
- package/text-area/index.js +3 -2
- package/text-field/index.js +3 -2
- package/toggletip/index.js +1 -1
- package/tooltip/index.js +1 -1
- package/tree-item/index.js +1 -1
- package/tree-view/index.js +1 -1
- package/vivid.api.json +137 -0
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { r as registerDatePicker } from '../shared/definition23.js';
|
|
2
|
+
import '../shared/index.js';
|
|
3
|
+
import '../shared/definition20.js';
|
|
4
|
+
import '../shared/definition7.js';
|
|
5
|
+
import '../shared/definition3.js';
|
|
6
|
+
import '../shared/icon.js';
|
|
7
|
+
import '../shared/_has.js';
|
|
8
|
+
import '../shared/class-names.js';
|
|
9
|
+
import '../shared/when.js';
|
|
10
|
+
import '../shared/definition4.js';
|
|
11
|
+
import '../shared/focus.js';
|
|
12
|
+
import '../shared/definition9.js';
|
|
13
|
+
import '../shared/base-progress.js';
|
|
14
|
+
import '../shared/affix.js';
|
|
15
|
+
import '../shared/button.js';
|
|
16
|
+
import '../shared/apply-mixins.js';
|
|
17
|
+
import '../shared/form-associated.js';
|
|
18
|
+
import '../shared/key-codes.js';
|
|
19
|
+
import '../shared/aria-global.js';
|
|
20
|
+
import '../shared/start-end.js';
|
|
21
|
+
import '../shared/ref.js';
|
|
22
|
+
import '../shared/focus2.js';
|
|
23
|
+
import '../shared/definition8.js';
|
|
24
|
+
import '../shared/definition24.js';
|
|
25
|
+
import '../shared/index2.js';
|
|
26
|
+
import '../locales/en-US.js';
|
|
27
|
+
import '../shared/text-field2.js';
|
|
28
|
+
import '../shared/text-field.js';
|
|
29
|
+
import '../shared/slotted.js';
|
|
30
|
+
import '../shared/node-observation.js';
|
|
31
|
+
import '../shared/definition25.js';
|
|
32
|
+
import '../shared/aria.js';
|
|
33
|
+
import '../shared/repeat.js';
|
|
34
|
+
|
|
35
|
+
registerDatePicker();
|
package/dialog/index.js
CHANGED
package/divider/index.js
CHANGED
package/empty-state/index.js
CHANGED
package/fab/index.js
CHANGED
package/file-picker/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerFilePicker } from '../shared/
|
|
1
|
+
import { r as registerFilePicker } from '../shared/definition29.js';
|
|
2
2
|
import '../shared/index.js';
|
|
3
3
|
import '../shared/definition3.js';
|
|
4
4
|
import '../shared/icon.js';
|
|
@@ -19,6 +19,7 @@ import '../shared/aria-global.js';
|
|
|
19
19
|
import '../shared/start-end.js';
|
|
20
20
|
import '../shared/ref.js';
|
|
21
21
|
import '../shared/focus2.js';
|
|
22
|
-
import '../shared/
|
|
22
|
+
import '../shared/index2.js';
|
|
23
|
+
import '../locales/en-US.js';
|
|
23
24
|
|
|
24
25
|
registerFilePicker();
|
package/header/index.js
CHANGED
package/index.d.ts
CHANGED
package/index.js
CHANGED
|
@@ -1,62 +1,59 @@
|
|
|
1
|
-
export { a as accordionDefinition, b as accordionRegistries, r as registerAccordion } from './shared/definition.js';
|
|
2
1
|
export { b as accordionItemDefinition, a as accordionItemRegistries, r as registerAccordionItem } from './shared/definition2.js';
|
|
2
|
+
export { a as accordionDefinition, b as accordionRegistries, r as registerAccordion } from './shared/definition.js';
|
|
3
3
|
export { a as actionGroupDefinition, b as actionGroupRegistries, r as registerActionGroup } from './shared/definition5.js';
|
|
4
|
+
export { a as alertDefinition, b as alertRegistries, r as registerAlert } from './shared/definition6.js';
|
|
4
5
|
export { a as avatarDefinition, b as avatarRegistries, r as registerAvatar } from './shared/definition10.js';
|
|
5
6
|
export { b as badgeDefinition, r as registerBadge } from './shared/definition11.js';
|
|
6
7
|
export { b as bannerDefinition, a as bannerRegistries, r as registerBanner } from './shared/definition12.js';
|
|
7
|
-
export { a as alertDefinition, b as alertRegistries, r as registerAlert } from './shared/definition6.js';
|
|
8
|
-
export { b as breadcrumbDefinition, a as breadcrumbRegistries, r as registerBreadcrumb } from './shared/definition13.js';
|
|
9
8
|
export { b as breadcrumbItemDefinition, a as breadcrumbItemRegistries, r as registerBreadcrumbItem } from './shared/definition14.js';
|
|
9
|
+
export { b as breadcrumbDefinition, a as breadcrumbRegistries, r as registerBreadcrumb } from './shared/definition13.js';
|
|
10
10
|
export { A as Appearance, e as AriaLive, C as Connotation, d as ConnotationDecorative, L as LayoutSize, P as Position, R as Role, S as Shape, a as Size, c as buttonDefinition, b as buttonRegistries, r as registerButton } from './shared/definition7.js';
|
|
11
|
-
export { c as calendarDefinition, a as calendarRegistries, r as registerCalendar } from './shared/definition15.js';
|
|
12
11
|
export { c as calendarEventDefinition, a as calendarEventRegistries, r as registerCalendarEvent } from './shared/definition16.js';
|
|
12
|
+
export { c as calendarDefinition, a as calendarRegistries, r as registerCalendar } from './shared/definition15.js';
|
|
13
13
|
export { c as cardDefinition, a as cardRegistries, r as registerCard } from './shared/definition17.js';
|
|
14
14
|
export { c as checkboxDefinition, a as checkboxRegistries, r as registerCheckbox } from './shared/definition18.js';
|
|
15
15
|
export { c as combobox, a as comboboxRegistries, r as registerCombobox } from './shared/definition19.js';
|
|
16
|
-
export { e as emptyStateDefinition, a as emptyStateRegistries, r as registerEmptyState } from './shared/definition25.js';
|
|
17
|
-
export { d as dialogDefinition, a as dialogRegistries, r as registerDialog } from './shared/definition23.js';
|
|
18
|
-
export { a as dividerDefinition, d as dividerRegistries, r as registerDivider } from './shared/definition24.js';
|
|
19
16
|
export { d as dataGrid, b as dataGridCell, c as dataGridElements, a as dataGridRow, r as registerDataGrid } from './shared/definition22.js';
|
|
20
|
-
export {
|
|
21
|
-
export {
|
|
17
|
+
export { d as datePickerDefinition, a as datePickerRegistries, r as registerDatePicker } from './shared/definition23.js';
|
|
18
|
+
export { d as dialogDefinition, a as dialogRegistries, r as registerDialog } from './shared/definition26.js';
|
|
19
|
+
export { a as dividerDefinition, d as dividerRegistries, r as registerDivider } from './shared/definition25.js';
|
|
20
|
+
export { e as emptyStateDefinition, a as emptyStateRegistries, r as registerEmptyState } from './shared/definition27.js';
|
|
21
|
+
export { f as fabDefinition, a as fabRegistries, r as registerFab } from './shared/definition28.js';
|
|
22
|
+
export { f as filePickerDefinition, a as filePickerRegistries, r as registerFilePicker } from './shared/definition29.js';
|
|
23
|
+
export { h as headerDefinition, a as headerRegistries, r as registerHeader } from './shared/definition30.js';
|
|
22
24
|
export { a as iconDefinition, i as iconRegistries, r as registerIcon } from './shared/definition3.js';
|
|
23
|
-
export { l as layoutDefinition, a as layoutRegistries, r as registerLayout } from './shared/
|
|
25
|
+
export { l as layoutDefinition, a as layoutRegistries, r as registerLayout } from './shared/definition31.js';
|
|
26
|
+
export { c as menuItemDefinition, m as menuItemRegistries, b as registerMenuItem } from './shared/definition33.js';
|
|
27
|
+
export { m as menuDefinition, a as menuRegistries, r as registerMenu } from './shared/definition32.js';
|
|
28
|
+
export { n as navDisclosureDefinition, a as navDisclosureRegistries, r as registerNavDisclosure } from './shared/definition35.js';
|
|
29
|
+
export { n as navItemDefinition, a as navItemRegistries, r as registerNavItem } from './shared/definition36.js';
|
|
30
|
+
export { n as navDefinition, a as navRegistries, r as registerNav } from './shared/definition34.js';
|
|
31
|
+
export { n as noteDefinition, a as noteRegistries, r as registerNote } from './shared/definition37.js';
|
|
32
|
+
export { n as numberFieldDefinition, a as numberFieldRegistries, r as registerNumberField } from './shared/definition38.js';
|
|
24
33
|
export { a as listboxOptionDefinition, l as listboxOptionRegistries, r as registerOption } from './shared/definition21.js';
|
|
25
|
-
export {
|
|
26
|
-
export { c as menuItemDefinition, m as menuItemRegistries, b as registerMenuItem } from './shared/definition31.js';
|
|
27
|
-
export { n as navDefinition, a as navRegistries, r as registerNav } from './shared/definition32.js';
|
|
28
|
-
export { n as navDisclosureDefinition, a as navDisclosureRegistries, r as registerNavDisclosure } from './shared/definition33.js';
|
|
29
|
-
export { n as navItemDefinition, a as navItemRegistries, r as registerNavItem } from './shared/definition34.js';
|
|
30
|
-
export { n as noteDefinition, a as noteRegistries, r as registerNote } from './shared/definition35.js';
|
|
31
|
-
export { n as numberFieldDefinition, a as numberFieldRegistries, r as registerNumberField } from './shared/definition36.js';
|
|
32
|
-
export { p as paginationDefinition, a as paginationRegistries, r as registerPagination } from './shared/definition37.js';
|
|
33
|
-
export { p as progressDefinition, a as progressRegistries, r as registerProgress } from './shared/definition38.js';
|
|
34
|
+
export { p as paginationDefinition, a as paginationRegistries, r as registerPagination } from './shared/definition39.js';
|
|
34
35
|
export { a as progressRingDefinition, p as progressRingRegistries, r as registerProgressRing } from './shared/definition9.js';
|
|
35
|
-
export {
|
|
36
|
-
export { a as radioGroupDefinition, b as radioGroupRegistries, r as registerRadioGroup } from './shared/
|
|
37
|
-
export {
|
|
38
|
-
export { r as
|
|
39
|
-
export { r as
|
|
40
|
-
export { r as
|
|
41
|
-
export { r as
|
|
42
|
-
export { r as
|
|
43
|
-
export { r as
|
|
44
|
-
export { r as
|
|
45
|
-
export { r as
|
|
46
|
-
export { r as
|
|
47
|
-
export { r as
|
|
48
|
-
export { r as
|
|
49
|
-
export { r as
|
|
50
|
-
export { r as
|
|
51
|
-
export { r as
|
|
52
|
-
export { r as
|
|
53
|
-
export {
|
|
36
|
+
export { p as progressDefinition, a as progressRegistries, r as registerProgress } from './shared/definition40.js';
|
|
37
|
+
export { a as radioGroupDefinition, b as radioGroupRegistries, r as registerRadioGroup } from './shared/definition42.js';
|
|
38
|
+
export { a as radioDefinition, b as radioRegistries, r as registerRadio } from './shared/definition41.js';
|
|
39
|
+
export { r as registerSelect, s as selectDefinition, a as selectRegistries } from './shared/definition43.js';
|
|
40
|
+
export { r as registerSideDrawer, s as sideDrawerDefinition, a as sideDrawerRegistries } from './shared/definition44.js';
|
|
41
|
+
export { r as registerSlider, s as sliderDefinition, a as sliderRegistries } from './shared/definition45.js';
|
|
42
|
+
export { r as registerSplitButton, s as splitButtonDefinition, a as splitButtonRegistries } from './shared/definition46.js';
|
|
43
|
+
export { r as registerSwitch, s as switchDefinition, a as switchRegistries } from './shared/definition47.js';
|
|
44
|
+
export { r as registerTabPanel, a as tabPanelDefinition, t as tabPanelRegistries } from './shared/definition49.js';
|
|
45
|
+
export { r as registerTab, a as tabDefinition, t as tabRegistries } from './shared/definition48.js';
|
|
46
|
+
export { r as registerTabs, t as tabsDefinition, a as tabsRegistries } from './shared/definition50.js';
|
|
47
|
+
export { r as registerTagGroup, t as tagGroupDefinition, a as tagGroupRegistries } from './shared/definition52.js';
|
|
48
|
+
export { r as registerTag, t as tagDefinition } from './shared/definition51.js';
|
|
49
|
+
export { r as registerTextArea, t as textAreaDefinition, a as textAreaRegistries } from './shared/definition53.js';
|
|
50
|
+
export { r as registerTextField, a as textFieldDefinition, t as textFieldRegistries } from './shared/definition24.js';
|
|
51
|
+
export { r as registerToggletip, t as toggletipDefinition, a as toggletipRegistries } from './shared/definition54.js';
|
|
52
|
+
export { r as registerTooltip, t as tooltipDefinition, a as tooltipRegistries } from './shared/definition55.js';
|
|
53
|
+
export { r as registerTreeItem, t as treeItemDefinition, a as treeItemRegistries } from './shared/definition56.js';
|
|
54
|
+
export { r as registerTreeView, t as treeViewDefinition, a as treeViewRegistries } from './shared/definition57.js';
|
|
54
55
|
export { j as designSystem, r as registerFactory } from './shared/index.js';
|
|
55
|
-
|
|
56
|
-
import './shared/numbers.js';
|
|
57
|
-
import './shared/node-observation.js';
|
|
58
|
-
import './shared/slotted.js';
|
|
59
|
-
import './shared/class-names.js';
|
|
56
|
+
export { s as setLocale } from './shared/index2.js';
|
|
60
57
|
import './shared/definition4.js';
|
|
61
58
|
import './shared/focus.js';
|
|
62
59
|
import './shared/affix.js';
|
|
@@ -67,8 +64,12 @@ import './shared/ref.js';
|
|
|
67
64
|
import './shared/apply-mixins.js';
|
|
68
65
|
import './shared/focus2.js';
|
|
69
66
|
import './shared/when.js';
|
|
67
|
+
import './shared/key-codes.js';
|
|
68
|
+
import './shared/numbers.js';
|
|
69
|
+
import './shared/node-observation.js';
|
|
70
|
+
import './shared/slotted.js';
|
|
71
|
+
import './shared/class-names.js';
|
|
70
72
|
import './shared/definition8.js';
|
|
71
|
-
import './shared/form-elements.js';
|
|
72
73
|
import './shared/button.js';
|
|
73
74
|
import './shared/form-associated.js';
|
|
74
75
|
import './shared/aria-global.js';
|
|
@@ -82,13 +83,14 @@ import './shared/text-field.js';
|
|
|
82
83
|
import './shared/listbox.js';
|
|
83
84
|
import './shared/strings.js';
|
|
84
85
|
import './shared/select.options.js';
|
|
85
|
-
import './shared/aria.js';
|
|
86
86
|
import './shared/children.js';
|
|
87
|
-
import './shared/
|
|
87
|
+
import './shared/aria.js';
|
|
88
88
|
import './shared/direction.js';
|
|
89
|
+
import './shared/dom.js';
|
|
89
90
|
import './shared/text-anchor.js';
|
|
90
91
|
import './shared/text-field2.js';
|
|
91
92
|
import './shared/base-progress.js';
|
|
92
93
|
import './shared/radio.js';
|
|
93
94
|
import './shared/aria2.js';
|
|
94
95
|
import './shared/tree-item.js';
|
|
96
|
+
import './locales/en-US.js';
|
package/layout/index.js
CHANGED
package/lib/button/button.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export type ButtonAppearance = Extract<Appearance, Appearance.Filled | Appearanc
|
|
|
6
6
|
export type ButtonShape = Extract<Shape, Shape.Rounded | Shape.Pill>;
|
|
7
7
|
export type ButtonSize = Extract<Size, Size.SuperCondensed | Size.Condensed | Size.Normal | Size.Expanded>;
|
|
8
8
|
export declare class Button extends FoundationButton {
|
|
9
|
+
title: string;
|
|
9
10
|
connotation?: ButtonConnotation;
|
|
10
11
|
shape?: ButtonShape;
|
|
11
12
|
appearance?: ButtonAppearance;
|
|
@@ -13,6 +14,7 @@ export declare class Button extends FoundationButton {
|
|
|
13
14
|
stacked: boolean;
|
|
14
15
|
pending: boolean;
|
|
15
16
|
label?: string;
|
|
17
|
+
constructor();
|
|
16
18
|
}
|
|
17
19
|
export interface Button extends AffixIconWithTrailing {
|
|
18
20
|
}
|
package/lib/components.d.ts
CHANGED
|
@@ -1,53 +1,54 @@
|
|
|
1
|
-
export * from './accordion/definition';
|
|
2
1
|
export * from './accordion-item/definition';
|
|
2
|
+
export * from './accordion/definition';
|
|
3
3
|
export * from './action-group/definition';
|
|
4
|
+
export * from './alert/definition';
|
|
4
5
|
export * from './avatar/definition';
|
|
5
6
|
export * from './badge/definition';
|
|
6
7
|
export * from './banner/definition';
|
|
7
|
-
export * from './alert/definition';
|
|
8
|
-
export * from './breadcrumb/definition';
|
|
9
8
|
export * from './breadcrumb-item/definition';
|
|
9
|
+
export * from './breadcrumb/definition';
|
|
10
10
|
export * from './button/definition';
|
|
11
|
-
export * from './calendar/definition';
|
|
12
11
|
export * from './calendar-event/definition';
|
|
12
|
+
export * from './calendar/definition';
|
|
13
13
|
export * from './card/definition';
|
|
14
14
|
export * from './checkbox/definition';
|
|
15
15
|
export * from './combobox/definition';
|
|
16
|
-
export * from './
|
|
16
|
+
export * from './data-grid/definition';
|
|
17
|
+
export * from './date-picker/definition';
|
|
17
18
|
export * from './dialog/definition';
|
|
18
19
|
export * from './divider/definition';
|
|
19
|
-
export * from './
|
|
20
|
+
export * from './empty-state/definition';
|
|
20
21
|
export * from './fab/definition';
|
|
22
|
+
export * from './file-picker/definition';
|
|
21
23
|
export * from './header/definition';
|
|
22
24
|
export * from './icon/definition';
|
|
23
25
|
export * from './layout/definition';
|
|
24
|
-
export * from './option/definition';
|
|
25
|
-
export * from './menu/definition';
|
|
26
26
|
export * from './menu-item/definition';
|
|
27
|
-
export * from './
|
|
27
|
+
export * from './menu/definition';
|
|
28
28
|
export * from './nav-disclosure/definition';
|
|
29
29
|
export * from './nav-item/definition';
|
|
30
|
+
export * from './nav/definition';
|
|
30
31
|
export * from './note/definition';
|
|
31
32
|
export * from './number-field/definition';
|
|
33
|
+
export * from './option/definition';
|
|
32
34
|
export * from './pagination/definition';
|
|
33
|
-
export * from './progress/definition';
|
|
34
35
|
export * from './progress-ring/definition';
|
|
35
|
-
export * from './
|
|
36
|
+
export * from './progress/definition';
|
|
36
37
|
export * from './radio-group/definition';
|
|
38
|
+
export * from './radio/definition';
|
|
37
39
|
export * from './select/definition';
|
|
38
40
|
export * from './side-drawer/definition';
|
|
39
41
|
export * from './slider/definition';
|
|
40
42
|
export * from './split-button/definition';
|
|
41
43
|
export * from './switch/definition';
|
|
42
|
-
export * from './
|
|
44
|
+
export * from './tab-panel/definition';
|
|
45
|
+
export * from './tab/definition';
|
|
46
|
+
export * from './tabs/definition';
|
|
47
|
+
export * from './tag-group/definition';
|
|
48
|
+
export * from './tag/definition';
|
|
43
49
|
export * from './text-area/definition';
|
|
50
|
+
export * from './text-field/definition';
|
|
44
51
|
export * from './toggletip/definition';
|
|
45
52
|
export * from './tooltip/definition';
|
|
46
|
-
export * from './tabs/definition';
|
|
47
|
-
export * from './tab/definition';
|
|
48
|
-
export * from './tab-panel/definition';
|
|
49
|
-
export * from './tree-view/definition';
|
|
50
53
|
export * from './tree-item/definition';
|
|
51
|
-
export * from './
|
|
52
|
-
export * from './tag-group/definition';
|
|
53
|
-
export * from './file-picker/definition';
|
|
54
|
+
export * from './tree-view/definition';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { DatePickerLocale } from '../locale';
|
|
2
|
+
import { type DateStr } from './dateStr';
|
|
3
|
+
import { type Month } from './month';
|
|
4
|
+
export interface Weekday {
|
|
5
|
+
name: string;
|
|
6
|
+
shortName: string;
|
|
7
|
+
}
|
|
8
|
+
export interface CalendarGridDate {
|
|
9
|
+
date: DateStr;
|
|
10
|
+
label: string;
|
|
11
|
+
isOutsideMonth: boolean;
|
|
12
|
+
}
|
|
13
|
+
export type CalendarGrid = {
|
|
14
|
+
weekdays: Weekday[];
|
|
15
|
+
grid: CalendarGridDate[][];
|
|
16
|
+
};
|
|
17
|
+
export declare const buildCalendarGrid: (month: Month, locale: DatePickerLocale) => CalendarGrid;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export type DateStr = string;
|
|
2
|
+
export declare const formatDateStr: (date: Date) => DateStr;
|
|
3
|
+
export declare const currentDateStr: (now?: Date) => DateStr;
|
|
4
|
+
export declare const parseDateStr: (dateStr: DateStr) => Date;
|
|
5
|
+
export declare const addDays: (dateStr: DateStr, days: number) => DateStr;
|
|
6
|
+
export declare const isValidDateStr: (string: string) => boolean;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type DateStr } from './dateStr';
|
|
2
|
+
export type MonthNumber = number;
|
|
3
|
+
export type Month = {
|
|
4
|
+
month: MonthNumber;
|
|
5
|
+
year: number;
|
|
6
|
+
};
|
|
7
|
+
export declare const getCurrentMonth: (now?: Date) => Month;
|
|
8
|
+
export declare const monthOfDate: (dateStr: DateStr) => Month;
|
|
9
|
+
export declare const addMonths: ({ month, year }: Month, months: number) => Month;
|
|
10
|
+
export declare const areMonthsEqual: (a: Month, b: Month) => boolean;
|
|
11
|
+
export declare const monthToStr: ({ month, year }: Month) => string;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { DatePickerLocale } from '../locale';
|
|
2
|
+
import { type Month } from './month';
|
|
3
|
+
export interface MonthPickerGridCell {
|
|
4
|
+
month: Month;
|
|
5
|
+
label: string;
|
|
6
|
+
monthName: string;
|
|
7
|
+
}
|
|
8
|
+
export type MonthPickerGrid = MonthPickerGridCell[][];
|
|
9
|
+
export declare const MonthsPerRow = 4;
|
|
10
|
+
export declare const buildMonthPickerGrid: (year: number, locale: DatePickerLocale) => MonthPickerGrid;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { DatePickerLocale } from '../locale';
|
|
2
|
+
import { type DateStr } from './dateStr';
|
|
3
|
+
export declare const formatPresentationDate: (dateStr: DateStr, locale: DatePickerLocale) => string;
|
|
4
|
+
export declare const parsePresentationDate: (presentationDate: string, locale: DatePickerLocale) => DateStr;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { FoundationElement } from '@microsoft/fast-foundation';
|
|
2
|
+
import { Localized } from '../../shared/patterns';
|
|
3
|
+
import { type DateStr } from './calendar/dateStr';
|
|
4
|
+
export declare class DatePicker extends FoundationElement {
|
|
5
|
+
#private;
|
|
6
|
+
label?: string;
|
|
7
|
+
helperText?: string;
|
|
8
|
+
errorText?: string;
|
|
9
|
+
value: DateStr | null;
|
|
10
|
+
disabled: boolean;
|
|
11
|
+
readOnly: boolean;
|
|
12
|
+
connectedCallback(): void;
|
|
13
|
+
disconnectedCallback(): void;
|
|
14
|
+
}
|
|
15
|
+
export interface DatePicker extends Localized {
|
|
16
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ViewTemplate } from '@microsoft/fast-element';
|
|
2
|
+
import type { ElementDefinitionContext, FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
3
|
+
import type { DatePicker } from './date-picker';
|
|
4
|
+
export declare const DatePickerTemplate: (context: ElementDefinitionContext, definition: FoundationElementDefinition) => ViewTemplate<DatePicker>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
2
|
+
export declare const datePickerDefinition: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<FoundationElementDefinition> | undefined) => import("@microsoft/fast-foundation").FoundationElementRegistry<FoundationElementDefinition, import("@microsoft/fast-element").Constructable<import("@microsoft/fast-foundation").FoundationElement>>;
|
|
3
|
+
export declare const registerDatePicker: (prefix?: string) => import("@microsoft/fast-foundation").DesignSystem;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export interface DatePickerLocale {
|
|
2
|
+
months: {
|
|
3
|
+
name: string[];
|
|
4
|
+
shorthand: string[];
|
|
5
|
+
};
|
|
6
|
+
weekdays: {
|
|
7
|
+
name: string[];
|
|
8
|
+
shorthand: string[];
|
|
9
|
+
};
|
|
10
|
+
firstDayOfWeek: number;
|
|
11
|
+
dateFormat: string;
|
|
12
|
+
dateFormatPlaceholder: string;
|
|
13
|
+
chooseDateLabel: string;
|
|
14
|
+
prevYearLabel: string;
|
|
15
|
+
prevMonthLabel: string;
|
|
16
|
+
nextMonthLabel: string;
|
|
17
|
+
nextYearLabel: string;
|
|
18
|
+
clearLabel: string;
|
|
19
|
+
okLabel: string;
|
|
20
|
+
invalidDateError: string;
|
|
21
|
+
}
|
package/lib/select/select.d.ts
CHANGED
|
@@ -5,13 +5,15 @@ import type { Appearance, Shape } from '../enums';
|
|
|
5
5
|
export type SelectAppearance = Extract<Appearance, Appearance.Fieldset | Appearance.Ghost>;
|
|
6
6
|
export type SelectShape = Extract<Shape, Shape.Rounded | Shape.Pill>;
|
|
7
7
|
export declare class Select extends FoundationSelect {
|
|
8
|
-
appearance?: SelectAppearance;
|
|
9
|
-
shape?: SelectShape;
|
|
10
8
|
_popup: Popup;
|
|
11
9
|
_anchor: HTMLElement;
|
|
10
|
+
appearance?: SelectAppearance;
|
|
11
|
+
shape?: SelectShape;
|
|
12
12
|
fixedDropdown: boolean;
|
|
13
|
+
placeholder: string | undefined;
|
|
13
14
|
connectedCallback(): void;
|
|
14
15
|
get displayValue(): string;
|
|
16
|
+
setDefaultSelectedOption(): void;
|
|
15
17
|
}
|
|
16
18
|
export interface Select extends AffixIconWithTrailing, FormElement, FormElementHelperText, ErrorText, FormElementSuccessText {
|
|
17
19
|
}
|
package/listbox/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import { l as listboxOptionRegistries } from '../shared/definition21.js';
|
|
|
4
4
|
import { b as ListboxElement, a as Listbox } from '../shared/listbox.js';
|
|
5
5
|
import '../shared/affix.js';
|
|
6
6
|
import { f as focusTemplateFactory } from '../shared/focus2.js';
|
|
7
|
-
import '../shared/
|
|
7
|
+
import '../shared/index2.js';
|
|
8
8
|
import { s as slotted } from '../shared/slotted.js';
|
|
9
9
|
import { c as classNames } from '../shared/class-names.js';
|
|
10
10
|
import '../shared/focus.js';
|
|
@@ -20,6 +20,7 @@ import '../shared/dom.js';
|
|
|
20
20
|
import '../shared/key-codes.js';
|
|
21
21
|
import '../shared/strings.js';
|
|
22
22
|
import '../shared/numbers.js';
|
|
23
|
+
import '../locales/en-US.js';
|
|
23
24
|
import '../shared/node-observation.js';
|
|
24
25
|
|
|
25
26
|
const getClasses = ({
|
|
@@ -57,7 +58,7 @@ const ListboxTemplate = context => {
|
|
|
57
58
|
`;
|
|
58
59
|
};
|
|
59
60
|
|
|
60
|
-
var css_248z = "/**\n * Do not edit directly\n * Generated on
|
|
61
|
+
var css_248z = "/**\n * Do not edit directly\n * Generated on Tue, 22 Aug 2023 13:37:39 GMT\n */\n:host {\n display: block;\n inline-size: fit-content;\n}\n\n:host(:focus-within) {\n outline: none;\n}\n\n.base {\n position: relative;\n display: flex;\n flex-direction: column;\n padding: 4px;\n background-color: var(--_appearance-color-fill);\n border-radius: 6px;\n box-shadow: inset 0 0 0 1px var(--_appearance-color-outline);\n contain: paint;\n gap: 4px;\n}\n.base {\n /* @cssprop [--vvd-listbox-accent-backdrop=var(--vvd-color-canvas)] */\n --_connotation-color-backdrop: var(--vvd-listbox-accent-backdrop, var(--vvd-color-canvas));\n /* @cssprop [--vvd-listbox-accent-intermediate=var(--vvd-color-neutral-500)] */\n --_connotation-color-intermediate: var(--vvd-listbox-accent-intermediate, var(--vvd-color-neutral-500));\n /* @cssprop [--vvd-listbox-accent-primary=var(--vvd-color-canvas-text)] */\n --_connotation-color-primary: var(--vvd-listbox-accent-primary, var(--vvd-color-canvas-text));\n /* @cssprop [--vvd-listbox-accent-soft=var(--vvd-color-neutral-100)] */\n --_connotation-color-soft: var(--vvd-listbox-accent-soft, var(--vvd-color-neutral-100));\n}\n.base {\n --_appearance-color-text: var(--vvd-color-canvas-text);\n --_appearance-color-fill: var(--_connotation-color-backdrop);\n --_appearance-color-outline: var(--_connotation-color-intermediate);\n}\n.base.appearance-ghost {\n --_appearance-color-text: var(--_connotation-color-primary);\n --_appearance-color-fill: transparent;\n --_appearance-color-outline: transparent;\n}\n.base:where(:disabled, .disabled) {\n --_appearance-color-text: var(--vvd-color-neutral-300);\n --_appearance-color-fill: var(--vvd-color-neutral-100);\n --_appearance-color-outline: var(--vvd-color-neutral-300);\n}\n.base:where(:disabled, .disabled).appearance-ghost {\n --_appearance-color-text: var(--vvd-color-neutral-300);\n --_appearance-color-fill: transparent;\n --_appearance-color-outline: transparent;\n}\n\n.focus-indicator {\n pointer-events: none;\n}\n:host(:not(:focus-within)) .focus-indicator {\n display: none;\n}\n\n.base.disabled ::slotted([role=option]) {\n --_option-appearance-color-text: var(--_appearance-color-outline);\n cursor: not-allowed;\n pointer-events: none;\n}";
|
|
61
62
|
|
|
62
63
|
const listboxDefinition = Listbox.compose({
|
|
63
64
|
baseName: 'listbox',
|
package/locales/en-GB.js
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
const enGB = {
|
|
2
|
+
datePicker: {
|
|
3
|
+
months: {
|
|
4
|
+
name: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'Oktober', 'November', 'December'],
|
|
5
|
+
shorthand: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Dec']
|
|
6
|
+
},
|
|
7
|
+
weekdays: {
|
|
8
|
+
name: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],
|
|
9
|
+
shorthand: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']
|
|
10
|
+
},
|
|
11
|
+
firstDayOfWeek: 1,
|
|
12
|
+
dateFormat: 'dd/MM/yyyy',
|
|
13
|
+
dateFormatPlaceholder: 'DD/MM/YYYY',
|
|
14
|
+
chooseDateLabel: 'Choose date',
|
|
15
|
+
prevYearLabel: 'Previous year',
|
|
16
|
+
prevMonthLabel: 'Previous month',
|
|
17
|
+
nextMonthLabel: 'Next month',
|
|
18
|
+
nextYearLabel: 'Next year',
|
|
19
|
+
clearLabel: 'Clear',
|
|
20
|
+
okLabel: 'OK',
|
|
21
|
+
invalidDateError: 'Please enter a valid date.'
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
export { enGB as default };
|
package/locales/en-US.js
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
const enUS = {
|
|
2
|
+
datePicker: {
|
|
3
|
+
months: {
|
|
4
|
+
name: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'Oktober', 'November', 'December'],
|
|
5
|
+
shorthand: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Dec']
|
|
6
|
+
},
|
|
7
|
+
weekdays: {
|
|
8
|
+
name: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],
|
|
9
|
+
shorthand: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']
|
|
10
|
+
},
|
|
11
|
+
firstDayOfWeek: 0,
|
|
12
|
+
dateFormat: 'MM/dd/yyyy',
|
|
13
|
+
dateFormatPlaceholder: 'MM/DD/YYYY',
|
|
14
|
+
chooseDateLabel: 'Choose date',
|
|
15
|
+
prevYearLabel: 'Previous year',
|
|
16
|
+
prevMonthLabel: 'Previous month',
|
|
17
|
+
nextMonthLabel: 'Next month',
|
|
18
|
+
nextYearLabel: 'Next year',
|
|
19
|
+
clearLabel: 'Clear',
|
|
20
|
+
okLabel: 'OK',
|
|
21
|
+
invalidDateError: 'Please enter a valid date.'
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
export { enUS as default };
|
package/locales/ja-JP.js
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
const jaJP = {
|
|
2
|
+
datePicker: {
|
|
3
|
+
months: {
|
|
4
|
+
name: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'],
|
|
5
|
+
shorthand: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月']
|
|
6
|
+
},
|
|
7
|
+
weekdays: {
|
|
8
|
+
name: ['日曜日', '月曜日', '火曜日', '水曜日', '木曜日', '金曜日', '土曜日'],
|
|
9
|
+
shorthand: ['日', '月', '火', '水', '木', '金', '土']
|
|
10
|
+
},
|
|
11
|
+
firstDayOfWeek: 0,
|
|
12
|
+
dateFormat: 'yyyy年MM月dd日',
|
|
13
|
+
dateFormatPlaceholder: 'YYYY年MM月DD日',
|
|
14
|
+
chooseDateLabel: '日付を選択',
|
|
15
|
+
prevYearLabel: '前年',
|
|
16
|
+
prevMonthLabel: '前月',
|
|
17
|
+
nextMonthLabel: '次月',
|
|
18
|
+
nextYearLabel: '翌年',
|
|
19
|
+
clearLabel: 'クリア',
|
|
20
|
+
okLabel: 'OK',
|
|
21
|
+
invalidDateError: '有効な日付を入力してください。'
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
export { jaJP as default };
|