@vonage/vivid 3.37.0 → 3.38.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/accordion/index.js +2 -2
- package/accordion-item/index.js +2 -2
- package/alert/index.js +4 -4
- package/avatar/index.js +1 -1
- package/badge/index.js +1 -1
- package/banner/index.js +3 -3
- package/breadcrumb-item/index.js +2 -2
- package/button/index.js +3 -3
- package/card/index.js +2 -2
- package/checkbox/index.js +2 -2
- package/combobox/index.js +6 -6
- package/custom-elements.json +304 -767
- package/data-grid/index.js +1 -1
- package/date-picker/index.js +9 -7
- package/date-range-picker/index.js +36 -0
- package/dialog/index.js +5 -5
- package/divider/index.js +1 -1
- package/elevation/index.js +1 -1
- package/empty-state/index.js +2 -2
- package/fab/index.js +3 -3
- package/file-picker/index.js +5 -4
- package/focus/index.js +1 -1
- package/header/index.js +2 -2
- package/icon/index.js +1 -1
- package/index.js +43 -40
- package/layout/index.js +1 -1
- package/lib/components.d.ts +1 -0
- package/lib/date-picker/date-picker.d.ts +4 -14
- package/lib/date-range-picker/date-range-picker.d.ts +16 -0
- package/lib/date-range-picker/definition.d.ts +3 -0
- package/lib/file-picker/file-picker.d.ts +8 -5
- package/lib/file-picker/file-picker.form-associated.d.ts +10 -0
- package/lib/file-picker/locale.d.ts +6 -0
- package/lib/tag-group/tag-group.d.ts +1 -0
- package/listbox/index.js +4 -4
- package/locales/en-GB.js +27 -3
- package/locales/en-US.js +27 -3
- package/locales/ja-JP.js +25 -1
- package/locales/zh-CN.js +25 -1
- package/menu/index.js +7 -7
- package/menu-item/index.js +3 -3
- package/nav/index.js +1 -1
- package/nav-disclosure/index.js +3 -3
- package/nav-item/index.js +3 -3
- package/note/index.js +2 -2
- package/number-field/index.js +5 -5
- package/option/index.js +3 -3
- package/package.json +1 -1
- package/pagination/index.js +4 -4
- package/popup/index.js +5 -5
- package/progress/index.js +1 -1
- package/progress-ring/index.js +1 -1
- package/radio/index.js +2 -2
- package/radio-group/index.js +1 -1
- package/select/index.js +7 -7
- package/shared/date-picker/calendar/dateRange.d.ts +5 -0
- package/shared/date-picker/calendar/presentationDateRange.d.ts +5 -0
- package/shared/date-picker/date-picker-base.d.ts +20 -0
- package/shared/date-picker/date-picker-base.form-associated.d.ts +10 -0
- package/shared/date-picker/date-picker-base.template.d.ts +4 -0
- package/{lib → shared}/date-picker/locale.d.ts +6 -0
- package/shared/definition.js +4 -4
- package/shared/definition10.js +9 -14
- package/shared/definition11.js +1 -1
- package/shared/definition12.js +1 -1
- package/shared/definition13.js +3 -3
- package/shared/definition14.js +3 -3
- package/shared/definition15.js +5 -5
- package/shared/definition16.js +3 -3
- package/shared/definition17.js +44 -6055
- package/shared/definition18.js +350 -213
- package/shared/definition19.js +251 -67
- package/shared/definition2.js +1 -1
- package/shared/definition20.js +66 -58
- package/shared/definition21.js +43 -84
- package/shared/definition22.js +75 -2298
- package/shared/definition23.js +2361 -45
- package/shared/definition24.js +63 -27
- package/shared/definition25.js +24 -51
- package/shared/definition26.js +36 -805
- package/shared/definition27.js +820 -49
- package/shared/definition28.js +52 -89
- package/shared/definition29.js +88 -24
- package/shared/definition3.js +1 -1
- package/shared/definition30.js +25 -12
- package/shared/definition31.js +12 -53
- package/shared/definition32.js +28 -487
- package/shared/definition33.js +427 -197
- package/shared/definition34.js +260 -174
- package/shared/definition35.js +187 -69
- package/shared/definition36.js +68 -55
- package/shared/definition37.js +61 -421
- package/shared/definition38.js +435 -35
- package/shared/definition39.js +30 -679
- package/shared/definition4.js +3 -3
- package/shared/definition40.js +661 -77
- package/shared/definition41.js +77 -557
- package/shared/definition42.js +559 -106
- package/shared/definition43.js +105 -136
- package/shared/definition44.js +153 -17
- package/shared/definition45.js +16 -79
- package/shared/definition46.js +53 -475
- package/shared/definition47.js +506 -20
- package/shared/definition48.js +22 -121
- package/shared/definition49.js +115 -262
- package/shared/definition5.js +2 -2
- package/shared/definition50.js +248 -120
- package/shared/definition51.js +139 -123
- package/shared/definition52.js +84 -74
- package/shared/definition53.js +114 -69
- package/shared/definition54.js +81 -292
- package/shared/definition55.js +302 -13
- package/shared/definition56.js +11 -41
- package/shared/definition57.js +20 -154
- package/shared/definition58.js +181 -0
- package/shared/definition6.js +2 -2
- package/shared/definition7.js +2 -2
- package/shared/definition8.js +3 -3
- package/shared/index2.js +1 -1
- package/shared/listbox.js +1 -1
- package/shared/localization/Locale.d.ts +3 -1
- package/shared/localized.js +9 -0
- package/shared/presentationDate.js +6133 -0
- package/shared/text-anchor.template.js +4 -4
- package/shared/text-field.js +1 -1
- package/side-drawer/index.js +1 -1
- package/slider/index.js +2 -2
- package/split-button/index.js +3 -3
- package/style.css +246 -183
- package/styles/core/all.css +1 -1
- package/styles/core/theme.css +1 -1
- package/styles/core/typography.css +1 -1
- 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/switch/index.js +3 -3
- package/tab/index.js +3 -3
- package/tab-panel/index.js +1 -1
- package/tabs/index.js +5 -5
- package/tag/index.js +3 -3
- package/tag-group/index.js +1 -1
- package/text-area/index.js +3 -3
- package/text-field/index.js +3 -3
- package/toggletip/index.js +6 -6
- package/tooltip/index.js +6 -6
- package/tree-item/index.js +3 -3
- package/tree-view/index.js +1 -1
- package/vivid.api.json +105 -0
- package/lib/date-picker/date-picker.form-associated.d.ts +0 -11
- package/lib/date-picker/date-picker.template.d.ts +0 -4
- /package/{lib → shared}/date-picker/calendar/calendarGrid.d.ts +0 -0
- /package/{lib → shared}/date-picker/calendar/dateStr.d.ts +0 -0
- /package/{lib → shared}/date-picker/calendar/month.d.ts +0 -0
- /package/{lib → shared}/date-picker/calendar/monthPickerGrid.d.ts +0 -0
- /package/{lib → shared}/date-picker/calendar/presentationDate.d.ts +0 -0
- /package/{lib → shared}/date-picker/calendar/year.d.ts +0 -0
package/data-grid/index.js
CHANGED
package/date-picker/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { r as registerDatePicker } from '../shared/definition17.js';
|
|
2
2
|
import '../shared/index.js';
|
|
3
|
-
import '../shared/
|
|
3
|
+
import '../shared/definition58.js';
|
|
4
4
|
import '../shared/definition10.js';
|
|
5
|
-
import '../shared/
|
|
5
|
+
import '../shared/definition25.js';
|
|
6
6
|
import '../shared/icon.js';
|
|
7
7
|
import '../shared/_has.js';
|
|
8
8
|
import '../shared/class-names.js';
|
|
9
9
|
import '../shared/when.js';
|
|
10
|
-
import '../shared/
|
|
10
|
+
import '../shared/definition56.js';
|
|
11
11
|
import '../shared/focus.js';
|
|
12
|
-
import '../shared/
|
|
12
|
+
import '../shared/definition36.js';
|
|
13
13
|
import '../shared/base-progress.js';
|
|
14
14
|
import '../shared/affix.js';
|
|
15
15
|
import '../shared/slotted.js';
|
|
@@ -21,14 +21,16 @@ import '../shared/aria-global.js';
|
|
|
21
21
|
import '../shared/start-end.js';
|
|
22
22
|
import '../shared/ref.js';
|
|
23
23
|
import '../shared/focus2.js';
|
|
24
|
-
import '../shared/
|
|
25
|
-
import '../shared/
|
|
24
|
+
import '../shared/definition57.js';
|
|
25
|
+
import '../shared/definition51.js';
|
|
26
26
|
import '../shared/index2.js';
|
|
27
27
|
import '../locales/en-US.js';
|
|
28
28
|
import '../shared/text-field2.js';
|
|
29
29
|
import '../shared/text-field.js';
|
|
30
|
-
import '../shared/
|
|
30
|
+
import '../shared/definition20.js';
|
|
31
31
|
import '../shared/aria.js';
|
|
32
|
+
import '../shared/presentationDate.js';
|
|
32
33
|
import '../shared/repeat.js';
|
|
34
|
+
import '../shared/localized.js';
|
|
33
35
|
|
|
34
36
|
registerDatePicker();
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { r as registerDateRangePicker } from '../shared/definition18.js';
|
|
2
|
+
import '../shared/index.js';
|
|
3
|
+
import '../shared/definition10.js';
|
|
4
|
+
import '../shared/definition25.js';
|
|
5
|
+
import '../shared/icon.js';
|
|
6
|
+
import '../shared/_has.js';
|
|
7
|
+
import '../shared/class-names.js';
|
|
8
|
+
import '../shared/when.js';
|
|
9
|
+
import '../shared/definition56.js';
|
|
10
|
+
import '../shared/focus.js';
|
|
11
|
+
import '../shared/definition36.js';
|
|
12
|
+
import '../shared/base-progress.js';
|
|
13
|
+
import '../shared/affix.js';
|
|
14
|
+
import '../shared/slotted.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/definition58.js';
|
|
24
|
+
import '../shared/definition57.js';
|
|
25
|
+
import '../shared/definition51.js';
|
|
26
|
+
import '../shared/index2.js';
|
|
27
|
+
import '../locales/en-US.js';
|
|
28
|
+
import '../shared/text-field2.js';
|
|
29
|
+
import '../shared/text-field.js';
|
|
30
|
+
import '../shared/definition20.js';
|
|
31
|
+
import '../shared/aria.js';
|
|
32
|
+
import '../shared/presentationDate.js';
|
|
33
|
+
import '../shared/repeat.js';
|
|
34
|
+
import '../shared/localized.js';
|
|
35
|
+
|
|
36
|
+
registerDateRangePicker();
|
package/dialog/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { r as registerDialog } from '../shared/
|
|
1
|
+
import { r as registerDialog } from '../shared/definition19.js';
|
|
2
2
|
import '../shared/index.js';
|
|
3
|
-
import '../shared/
|
|
3
|
+
import '../shared/definition25.js';
|
|
4
4
|
import '../shared/icon.js';
|
|
5
5
|
import '../shared/_has.js';
|
|
6
6
|
import '../shared/class-names.js';
|
|
7
7
|
import '../shared/when.js';
|
|
8
8
|
import '../shared/definition10.js';
|
|
9
|
-
import '../shared/
|
|
9
|
+
import '../shared/definition56.js';
|
|
10
10
|
import '../shared/focus.js';
|
|
11
|
-
import '../shared/
|
|
11
|
+
import '../shared/definition36.js';
|
|
12
12
|
import '../shared/base-progress.js';
|
|
13
13
|
import '../shared/affix.js';
|
|
14
14
|
import '../shared/slotted.js';
|
|
@@ -20,6 +20,6 @@ import '../shared/aria-global.js';
|
|
|
20
20
|
import '../shared/start-end.js';
|
|
21
21
|
import '../shared/ref.js';
|
|
22
22
|
import '../shared/focus2.js';
|
|
23
|
-
import '../shared/
|
|
23
|
+
import '../shared/definition57.js';
|
|
24
24
|
|
|
25
25
|
registerDialog();
|
package/divider/index.js
CHANGED
package/elevation/index.js
CHANGED
package/empty-state/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as registerEmptyState } from '../shared/
|
|
1
|
+
import { r as registerEmptyState } from '../shared/definition21.js';
|
|
2
2
|
import '../shared/index.js';
|
|
3
|
-
import '../shared/
|
|
3
|
+
import '../shared/definition25.js';
|
|
4
4
|
import '../shared/icon.js';
|
|
5
5
|
import '../shared/_has.js';
|
|
6
6
|
import '../shared/class-names.js';
|
package/fab/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { r as registerFab } from '../shared/
|
|
1
|
+
import { r as registerFab } from '../shared/definition22.js';
|
|
2
2
|
import '../shared/index.js';
|
|
3
|
-
import '../shared/
|
|
3
|
+
import '../shared/definition25.js';
|
|
4
4
|
import '../shared/icon.js';
|
|
5
5
|
import '../shared/_has.js';
|
|
6
6
|
import '../shared/class-names.js';
|
|
7
7
|
import '../shared/when.js';
|
|
8
|
-
import '../shared/
|
|
8
|
+
import '../shared/definition56.js';
|
|
9
9
|
import '../shared/focus.js';
|
|
10
10
|
import '../shared/affix.js';
|
|
11
11
|
import '../shared/slotted.js';
|
package/file-picker/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { r as registerFilePicker } from '../shared/
|
|
1
|
+
import { r as registerFilePicker } from '../shared/definition23.js';
|
|
2
2
|
import '../shared/index.js';
|
|
3
|
-
import '../shared/
|
|
3
|
+
import '../shared/definition25.js';
|
|
4
4
|
import '../shared/icon.js';
|
|
5
5
|
import '../shared/_has.js';
|
|
6
6
|
import '../shared/class-names.js';
|
|
7
7
|
import '../shared/when.js';
|
|
8
|
-
import '../shared/
|
|
8
|
+
import '../shared/definition56.js';
|
|
9
9
|
import '../shared/focus.js';
|
|
10
10
|
import '../shared/definition10.js';
|
|
11
|
-
import '../shared/
|
|
11
|
+
import '../shared/definition36.js';
|
|
12
12
|
import '../shared/base-progress.js';
|
|
13
13
|
import '../shared/affix.js';
|
|
14
14
|
import '../shared/slotted.js';
|
|
@@ -22,5 +22,6 @@ import '../shared/ref.js';
|
|
|
22
22
|
import '../shared/focus2.js';
|
|
23
23
|
import '../shared/index2.js';
|
|
24
24
|
import '../locales/en-US.js';
|
|
25
|
+
import '../shared/localized.js';
|
|
25
26
|
|
|
26
27
|
registerFilePicker();
|
package/focus/index.js
CHANGED
package/header/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as registerHeader } from '../shared/
|
|
1
|
+
import { r as registerHeader } from '../shared/definition24.js';
|
|
2
2
|
import '../shared/index.js';
|
|
3
|
-
import '../shared/
|
|
3
|
+
import '../shared/definition57.js';
|
|
4
4
|
import '../shared/class-names.js';
|
|
5
5
|
|
|
6
6
|
registerHeader();
|
package/icon/index.js
CHANGED
package/index.js
CHANGED
|
@@ -15,46 +15,47 @@ export { c as checkboxDefinition, a as checkboxRegistries, r as registerCheckbox
|
|
|
15
15
|
export { c as combobox, a as comboboxRegistries, r as registerCombobox } from './shared/definition15.js';
|
|
16
16
|
export { d as dataGrid, b as dataGridCell, c as dataGridElements, a as dataGridRow, r as registerDataGrid } from './shared/definition16.js';
|
|
17
17
|
export { d as datePickerDefinition, a as datePickerRegistries, r as registerDatePicker } from './shared/definition17.js';
|
|
18
|
-
export { d as
|
|
19
|
-
export { d as
|
|
20
|
-
export {
|
|
21
|
-
export {
|
|
22
|
-
export { f as
|
|
23
|
-
export {
|
|
24
|
-
export {
|
|
25
|
-
export {
|
|
26
|
-
export {
|
|
27
|
-
export { m as
|
|
28
|
-
export {
|
|
29
|
-
export { n as
|
|
30
|
-
export { n as
|
|
31
|
-
export { n as
|
|
32
|
-
export { n as
|
|
33
|
-
export {
|
|
34
|
-
export {
|
|
35
|
-
export { p as
|
|
36
|
-
export { p as
|
|
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 { r as
|
|
54
|
-
export { r as
|
|
18
|
+
export { d as dateRangePickerDefinition, a as dateRangePickerRegistries, r as registerDateRangePicker } from './shared/definition18.js';
|
|
19
|
+
export { d as dialogDefinition, a as dialogRegistries, r as registerDialog } from './shared/definition19.js';
|
|
20
|
+
export { d as dividerDefinition, a as dividerRegistries, r as registerDivider } from './shared/definition20.js';
|
|
21
|
+
export { e as emptyStateDefinition, a as emptyStateRegistries, r as registerEmptyState } from './shared/definition21.js';
|
|
22
|
+
export { f as fabDefinition, a as fabRegistries, r as registerFab } from './shared/definition22.js';
|
|
23
|
+
export { f as filePickerDefinition, a as filePickerRegistries, r as registerFilePicker } from './shared/definition23.js';
|
|
24
|
+
export { h as headerDefinition, a as headerRegistries, r as registerHeader } from './shared/definition24.js';
|
|
25
|
+
export { i as iconDefinition, a as iconRegistries, r as registerIcon } from './shared/definition25.js';
|
|
26
|
+
export { l as layoutDefinition, a as layoutRegistries, r as registerLayout } from './shared/definition26.js';
|
|
27
|
+
export { m as menuItemDefinition, a as menuItemRegistries, r as registerMenuItem } from './shared/definition27.js';
|
|
28
|
+
export { m as menuDefinition, a as menuRegistries, r as registerMenu } from './shared/definition28.js';
|
|
29
|
+
export { n as navDisclosureDefinition, a as navDisclosureRegistries, r as registerNavDisclosure } from './shared/definition29.js';
|
|
30
|
+
export { n as navItemDefinition, a as navItemRegistries, r as registerNavItem } from './shared/definition30.js';
|
|
31
|
+
export { n as navDefinition, a as navRegistries, r as registerNav } from './shared/definition31.js';
|
|
32
|
+
export { n as noteDefinition, a as noteRegistries, r as registerNote } from './shared/definition32.js';
|
|
33
|
+
export { n as numberFieldDefinition, a as numberFieldRegistries, r as registerNumberField } from './shared/definition33.js';
|
|
34
|
+
export { l as listboxOptionDefinition, a as listboxOptionRegistries, r as registerOption } from './shared/definition34.js';
|
|
35
|
+
export { p as paginationDefinition, a as paginationRegistries, r as registerPagination } from './shared/definition35.js';
|
|
36
|
+
export { p as progressRingDefinition, a as progressRingRegistries, r as registerProgressRing } from './shared/definition36.js';
|
|
37
|
+
export { p as progressDefinition, a as progressRegistries, r as registerProgress } from './shared/definition37.js';
|
|
38
|
+
export { r as radioGroupDefinition, a as radioGroupRegistries, b as registerRadioGroup } from './shared/definition38.js';
|
|
39
|
+
export { r as radioDefinition, a as radioRegistries, b as registerRadio } from './shared/definition39.js';
|
|
40
|
+
export { r as registerSelect, s as selectDefinition, a as selectRegistries } from './shared/definition40.js';
|
|
41
|
+
export { r as registerSideDrawer, s as sideDrawerDefinition, a as sideDrawerRegistries } from './shared/definition41.js';
|
|
42
|
+
export { r as registerSlider, s as sliderDefinition, a as sliderRegistries } from './shared/definition42.js';
|
|
43
|
+
export { r as registerSplitButton, s as splitButtonDefinition, a as splitButtonRegistries } from './shared/definition43.js';
|
|
44
|
+
export { r as registerSwitch, s as switchDefinition, a as switchRegistries } from './shared/definition44.js';
|
|
45
|
+
export { r as registerTabPanel, t as tabPanelDefinition, a as tabPanelRegistries } from './shared/definition45.js';
|
|
46
|
+
export { r as registerTab, t as tabDefinition, a as tabRegistries } from './shared/definition46.js';
|
|
47
|
+
export { r as registerTabs, t as tabsDefinition, a as tabsRegistries } from './shared/definition47.js';
|
|
48
|
+
export { r as registerTagGroup, t as tagGroupDefinition, a as tagGroupRegistries } from './shared/definition48.js';
|
|
49
|
+
export { r as registerTag, t as tagDefinition } from './shared/definition49.js';
|
|
50
|
+
export { r as registerTextArea, t as textAreaDefinition, a as textAreaRegistries } from './shared/definition50.js';
|
|
51
|
+
export { r as registerTextField, t as textFieldDefinition, a as textFieldRegistries } from './shared/definition51.js';
|
|
52
|
+
export { r as registerToggletip, t as toggletipDefinition, a as toggletipRegistries } from './shared/definition52.js';
|
|
53
|
+
export { r as registerTooltip, t as tooltipDefinition, a as tooltipRegistries } from './shared/definition53.js';
|
|
54
|
+
export { r as registerTreeItem, t as treeItemDefinition, a as treeItemRegistries } from './shared/definition54.js';
|
|
55
|
+
export { r as registerTreeView, t as treeViewDefinition, a as treeViewRegistries } from './shared/definition55.js';
|
|
55
56
|
export { d as designSystem, r as registerFactory } from './shared/index.js';
|
|
56
57
|
export { s as setLocale } from './shared/index2.js';
|
|
57
|
-
import './shared/
|
|
58
|
+
import './shared/definition56.js';
|
|
58
59
|
import './shared/focus.js';
|
|
59
60
|
import './shared/affix.js';
|
|
60
61
|
import './shared/icon.js';
|
|
@@ -68,7 +69,7 @@ import './shared/when.js';
|
|
|
68
69
|
import './shared/key-codes.js';
|
|
69
70
|
import './shared/numbers.js';
|
|
70
71
|
import './shared/class-names.js';
|
|
71
|
-
import './shared/
|
|
72
|
+
import './shared/definition57.js';
|
|
72
73
|
import './shared/button.js';
|
|
73
74
|
import './shared/form-associated.js';
|
|
74
75
|
import './shared/aria-global.js';
|
|
@@ -77,12 +78,14 @@ import './shared/anchor.js';
|
|
|
77
78
|
import './shared/text-anchor.template.js';
|
|
78
79
|
import './shared/calendar-event.js';
|
|
79
80
|
import './shared/repeat.js';
|
|
80
|
-
import './shared/
|
|
81
|
+
import './shared/definition58.js';
|
|
81
82
|
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
86
|
import './shared/children.js';
|
|
87
|
+
import './shared/presentationDate.js';
|
|
88
|
+
import './shared/localized.js';
|
|
86
89
|
import './shared/aria.js';
|
|
87
90
|
import './shared/direction.js';
|
|
88
91
|
import './shared/dom.js';
|
package/layout/index.js
CHANGED
package/lib/components.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ export * from './checkbox/definition';
|
|
|
15
15
|
export * from './combobox/definition';
|
|
16
16
|
export * from './data-grid/definition';
|
|
17
17
|
export * from './date-picker/definition';
|
|
18
|
+
export * from './date-range-picker/definition';
|
|
18
19
|
export * from './dialog/definition';
|
|
19
20
|
export * from './divider/definition';
|
|
20
21
|
export * from './empty-state/definition';
|
|
@@ -1,18 +1,8 @@
|
|
|
1
|
-
import { type ErrorText, type FormElement
|
|
2
|
-
import {
|
|
3
|
-
export declare class DatePicker extends
|
|
1
|
+
import { type ErrorText, type FormElement } from '../../shared/patterns';
|
|
2
|
+
import { DatePickerBase } from '../../shared/date-picker/date-picker-base';
|
|
3
|
+
export declare class DatePicker extends DatePickerBase {
|
|
4
4
|
#private;
|
|
5
|
-
min: string;
|
|
6
|
-
max: string;
|
|
7
|
-
initialValue: string;
|
|
8
|
-
currentValue: string;
|
|
9
|
-
readOnly: boolean;
|
|
10
|
-
protected readOnlyChanged(): void;
|
|
11
5
|
constructor();
|
|
12
|
-
connectedCallback(): void;
|
|
13
|
-
disconnectedCallback(): void;
|
|
14
|
-
validate(): void;
|
|
15
|
-
_presentationValueChanged(): void;
|
|
16
6
|
}
|
|
17
|
-
export interface DatePicker extends
|
|
7
|
+
export interface DatePicker extends ErrorText, FormElement {
|
|
18
8
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type ErrorText, type FormElement } from '../../shared/patterns';
|
|
2
|
+
import { DatePickerBase } from '../../shared/date-picker/date-picker-base';
|
|
3
|
+
export declare class DateRangePicker extends DatePickerBase {
|
|
4
|
+
#private;
|
|
5
|
+
initialStart: string;
|
|
6
|
+
initialEnd: string;
|
|
7
|
+
start: string;
|
|
8
|
+
end: string;
|
|
9
|
+
currentStart: string;
|
|
10
|
+
currentEnd: string;
|
|
11
|
+
setFormValue: (value: File | string | FormData | null, state?: File | string | FormData | null) => void;
|
|
12
|
+
connectedCallback(): void;
|
|
13
|
+
formResetCallback(): void;
|
|
14
|
+
}
|
|
15
|
+
export interface DateRangePicker extends ErrorText, FormElement {
|
|
16
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
2
|
+
export declare const dateRangePickerDefinition: (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 registerDateRangePicker: (prefix?: string) => import("@microsoft/fast-foundation").DesignSystem;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { FoundationElement } from '@microsoft/fast-foundation';
|
|
2
1
|
import type { Size } from '../enums';
|
|
3
|
-
import { FormElementHelperText } from '../../shared/patterns';
|
|
2
|
+
import { type ErrorText, type FormElement, FormElementHelperText, Localized } from '../../shared/patterns';
|
|
3
|
+
import { FormAssociatedFilePicker } from './file-picker.form-associated';
|
|
4
4
|
export type FileUploaderSize = Extract<Size, Size.Normal | Size.Expanded>;
|
|
5
|
-
export declare class FilePicker extends
|
|
5
|
+
export declare class FilePicker extends FormAssociatedFilePicker {
|
|
6
6
|
#private;
|
|
7
7
|
get files(): File[];
|
|
8
|
-
label?: string;
|
|
9
8
|
maxFiles?: number;
|
|
10
9
|
maxFilesChanged(_oldValue: number, newValue: number): void;
|
|
11
10
|
maxFileSize: number;
|
|
@@ -13,10 +12,14 @@ export declare class FilePicker extends FoundationElement {
|
|
|
13
12
|
accept?: string;
|
|
14
13
|
acceptChanged(_oldValue: string, newValue: string): void;
|
|
15
14
|
size?: FileUploaderSize;
|
|
15
|
+
nameChanged(previous: string, next: string): void;
|
|
16
16
|
private buttonTag;
|
|
17
17
|
constructor();
|
|
18
18
|
connectedCallback(): void;
|
|
19
19
|
disconnectedCallback(): void;
|
|
20
|
+
setFormValue: (value: File | string | FormData | null, state?: File | string | FormData | null) => void;
|
|
21
|
+
validate(): void;
|
|
22
|
+
formResetCallback(): void;
|
|
20
23
|
}
|
|
21
|
-
export interface FilePicker extends FormElementHelperText {
|
|
24
|
+
export interface FilePicker extends FormElementHelperText, Localized, ErrorText, FormElement, FormElementHelperText {
|
|
22
25
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FormAssociated, FoundationElement } from '@microsoft/fast-foundation';
|
|
2
|
+
declare class _FilePicker extends FoundationElement {
|
|
3
|
+
}
|
|
4
|
+
interface _FilePicker extends FormAssociated {
|
|
5
|
+
}
|
|
6
|
+
declare const FormAssociatedFilePicker_base: typeof _FilePicker;
|
|
7
|
+
export declare class FormAssociatedFilePicker extends FormAssociatedFilePicker_base {
|
|
8
|
+
proxy: HTMLInputElement;
|
|
9
|
+
}
|
|
10
|
+
export {};
|
package/listbox/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h as html, r as registerFactory } from '../shared/index.js';
|
|
2
|
-
import { f as focusRegistries } from '../shared/
|
|
3
|
-
import { a as listboxOptionRegistries } from '../shared/
|
|
2
|
+
import { f as focusRegistries } from '../shared/definition56.js';
|
|
3
|
+
import { a as listboxOptionRegistries } from '../shared/definition34.js';
|
|
4
4
|
import { L 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';
|
|
@@ -8,7 +8,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';
|
|
11
|
-
import '../shared/
|
|
11
|
+
import '../shared/definition25.js';
|
|
12
12
|
import '../shared/icon.js';
|
|
13
13
|
import '../shared/_has.js';
|
|
14
14
|
import '../shared/when.js';
|
|
@@ -61,7 +61,7 @@ const ListboxTemplate = (context) => {
|
|
|
61
61
|
`;
|
|
62
62
|
};
|
|
63
63
|
|
|
64
|
-
const styles = "/**\n * Do not edit directly\n * Generated on
|
|
64
|
+
const styles = "/**\n * Do not edit directly\n * Generated on Fri, 13 Oct 2023 14:45:50 GMT\n */\n:host {\n display: inline-block;\n inline-size: fit-content;\n}\n\n:host(:focus-within) {\n outline: none;\n}\n\n:host([disabled]) {\n cursor: not-allowed;\n}\n\n.base {\n position: relative;\n display: inline-flex;\n box-sizing: border-box;\n padding: 4px;\n background-color: var(--_appearance-color-fill);\n border-radius: var(--_listbox-border-radius);\n box-shadow: inset 0 0 0 1px var(--_appearance-color-outline);\n contain: paint;\n gap: 4px;\n inline-size: 100%;\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.base:not(.orientation-horizontal) {\n flex-direction: column;\n}\n\n.focus-indicator {\n pointer-events: none;\n}\n:host(:not(:focus-within)) .focus-indicator {\n display: none;\n}\n\n/* Shape */\n.base:not(.shape-pill) {\n --_listbox-border-radius: 6px;\n}\n\n.base.shape-pill {\n --_listbox-border-radius: 24px;\n}\n\n::slotted([role=option]) {\n border-radius: var(--_listbox-border-radius);\n contain: content;\n}\n\n.base.disabled ::slotted([role=option]) {\n --_option-appearance-color-text: var(--_appearance-color-outline);\n pointer-events: none;\n}";
|
|
65
65
|
|
|
66
66
|
const listboxDefinition = Listbox.compose({
|
|
67
67
|
baseName: "listbox",
|
package/locales/en-GB.js
CHANGED
|
@@ -11,7 +11,7 @@ const enGB = {
|
|
|
11
11
|
"July",
|
|
12
12
|
"August",
|
|
13
13
|
"September",
|
|
14
|
-
"
|
|
14
|
+
"October",
|
|
15
15
|
"November",
|
|
16
16
|
"December"
|
|
17
17
|
],
|
|
@@ -25,7 +25,7 @@ const enGB = {
|
|
|
25
25
|
"Jul",
|
|
26
26
|
"Aug",
|
|
27
27
|
"Sep",
|
|
28
|
-
"
|
|
28
|
+
"Oct",
|
|
29
29
|
"Nov",
|
|
30
30
|
"Dec"
|
|
31
31
|
]
|
|
@@ -46,13 +46,37 @@ const enGB = {
|
|
|
46
46
|
dateFormat: "dd/MM/yyyy",
|
|
47
47
|
dateFormatPlaceholder: "DD/MM/YYYY",
|
|
48
48
|
chooseDateLabel: "Choose date",
|
|
49
|
+
changeDateLabel: (
|
|
50
|
+
/* istanbul ignore next */
|
|
51
|
+
(date) => `Change date, ${date}`
|
|
52
|
+
),
|
|
53
|
+
chooseDatesLabel: "Choose dates",
|
|
54
|
+
changeDatesLabel: (
|
|
55
|
+
/* istanbul ignore next */
|
|
56
|
+
(range) => `Change dates, ${range}`
|
|
57
|
+
),
|
|
49
58
|
prevYearLabel: "Previous year",
|
|
50
59
|
prevMonthLabel: "Previous month",
|
|
51
60
|
nextMonthLabel: "Next month",
|
|
52
61
|
nextYearLabel: "Next year",
|
|
53
62
|
clearLabel: "Clear",
|
|
54
63
|
okLabel: "OK",
|
|
55
|
-
invalidDateError: "Please enter a valid date."
|
|
64
|
+
invalidDateError: "Please enter a valid date.",
|
|
65
|
+
invalidDateRangeError: "Please enter a valid date range.",
|
|
66
|
+
startDateAfterMinDateError: (
|
|
67
|
+
/* istanbul ignore next */
|
|
68
|
+
(minDate) => `The start date must be ${minDate} or later.`
|
|
69
|
+
),
|
|
70
|
+
endDateBeforeMaxDateError: (
|
|
71
|
+
/* istanbul ignore next */
|
|
72
|
+
(maxDate) => `The end date must be ${maxDate} or earlier.`
|
|
73
|
+
)
|
|
74
|
+
},
|
|
75
|
+
filePicker: {
|
|
76
|
+
invalidFileTypeError: "You can't select files of this type.",
|
|
77
|
+
maxFilesExceededError: "You can't select any more files.",
|
|
78
|
+
fileTooBigError: "File is too big ({{filesize}}MiB). Max filesize: {{maxFilesize}}MiB.",
|
|
79
|
+
removeFileLabel: "Remove file"
|
|
56
80
|
}
|
|
57
81
|
};
|
|
58
82
|
|
package/locales/en-US.js
CHANGED
|
@@ -11,7 +11,7 @@ const enUS = {
|
|
|
11
11
|
"July",
|
|
12
12
|
"August",
|
|
13
13
|
"September",
|
|
14
|
-
"
|
|
14
|
+
"October",
|
|
15
15
|
"November",
|
|
16
16
|
"December"
|
|
17
17
|
],
|
|
@@ -25,7 +25,7 @@ const enUS = {
|
|
|
25
25
|
"Jul",
|
|
26
26
|
"Aug",
|
|
27
27
|
"Sep",
|
|
28
|
-
"
|
|
28
|
+
"Oct",
|
|
29
29
|
"Nov",
|
|
30
30
|
"Dec"
|
|
31
31
|
]
|
|
@@ -46,13 +46,37 @@ const enUS = {
|
|
|
46
46
|
dateFormat: "MM/dd/yyyy",
|
|
47
47
|
dateFormatPlaceholder: "MM/DD/YYYY",
|
|
48
48
|
chooseDateLabel: "Choose date",
|
|
49
|
+
changeDateLabel: (
|
|
50
|
+
/* istanbul ignore next */
|
|
51
|
+
(date) => `Change date, ${date}`
|
|
52
|
+
),
|
|
53
|
+
chooseDatesLabel: "Choose dates",
|
|
54
|
+
changeDatesLabel: (
|
|
55
|
+
/* istanbul ignore next */
|
|
56
|
+
(range) => `Change dates, ${range}`
|
|
57
|
+
),
|
|
49
58
|
prevYearLabel: "Previous year",
|
|
50
59
|
prevMonthLabel: "Previous month",
|
|
51
60
|
nextMonthLabel: "Next month",
|
|
52
61
|
nextYearLabel: "Next year",
|
|
53
62
|
clearLabel: "Clear",
|
|
54
63
|
okLabel: "OK",
|
|
55
|
-
invalidDateError: "Please enter a valid date."
|
|
64
|
+
invalidDateError: "Please enter a valid date.",
|
|
65
|
+
invalidDateRangeError: "Please enter a valid date range.",
|
|
66
|
+
startDateAfterMinDateError: (
|
|
67
|
+
/* istanbul ignore next */
|
|
68
|
+
(minDate) => `The start date must be ${minDate} or later.`
|
|
69
|
+
),
|
|
70
|
+
endDateBeforeMaxDateError: (
|
|
71
|
+
/* istanbul ignore next */
|
|
72
|
+
(maxDate) => `The end date must be ${maxDate} or earlier.`
|
|
73
|
+
)
|
|
74
|
+
},
|
|
75
|
+
filePicker: {
|
|
76
|
+
invalidFileTypeError: "You can't select files of this type.",
|
|
77
|
+
maxFilesExceededError: "You can't select any more files.",
|
|
78
|
+
fileTooBigError: "File is too big ({{filesize}}MiB). Max filesize: {{maxFilesize}}MiB.",
|
|
79
|
+
removeFileLabel: "Remove file"
|
|
56
80
|
}
|
|
57
81
|
};
|
|
58
82
|
|