@vonage/vivid 3.36.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 +3 -4
- package/accordion-item/index.js +3 -2
- package/alert/index.js +5 -4
- package/avatar/index.js +1 -1
- package/badge/index.js +2 -1
- package/banner/index.js +4 -3
- package/breadcrumb/index.js +0 -1
- package/breadcrumb-item/index.js +3 -2
- package/button/index.js +4 -3
- package/card/index.js +2 -3
- package/checkbox/index.js +3 -4
- package/combobox/index.js +7 -8
- package/custom-elements.json +386 -758
- package/data-grid/index.js +2 -3
- package/date-picker/index.js +10 -9
- package/date-range-picker/index.js +36 -0
- package/dialog/index.js +6 -7
- package/divider/index.js +1 -1
- package/elevation/index.js +1 -1
- package/empty-state/index.js +2 -3
- package/fab/index.js +4 -3
- package/file-picker/index.js +6 -4
- package/focus/index.js +1 -1
- package/header/index.js +2 -2
- package/icon/index.js +1 -1
- package/index.js +44 -42
- package/layout/index.js +1 -1
- package/lib/components.d.ts +1 -0
- package/lib/date-picker/date-picker.d.ts +5 -15
- 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/number-field/number-field.d.ts +6 -2
- package/lib/tag-group/tag-group.d.ts +1 -0
- package/lib/tree-item/tree-item.template.d.ts +1 -1
- package/listbox/index.js +4 -5
- 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 +8 -9
- package/menu-item/index.js +4 -5
- package/nav/index.js +1 -1
- package/nav-disclosure/index.js +4 -3
- package/nav-item/index.js +4 -3
- package/note/index.js +3 -2
- package/number-field/index.js +6 -5
- package/option/index.js +4 -3
- package/package.json +1 -1
- package/pagination/index.js +5 -5
- package/popup/index.js +6 -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 +2 -3
- package/select/index.js +8 -9
- package/shared/affix.js +5 -1
- package/shared/apply-mixins.js +1 -1
- package/shared/children.js +2 -2
- 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 +5 -5
- 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 +4 -5
- package/shared/definition17.js +59 -6016
- package/shared/definition18.js +350 -213
- package/shared/definition19.js +251 -67
- package/shared/definition2.js +2 -3
- package/shared/definition20.js +66 -58
- package/shared/definition21.js +43 -83
- 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 -806
- 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 +29 -441
- 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 -422
- 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 -70
- 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 +5 -5
- package/shared/definition7.js +4 -4
- package/shared/definition8.js +3 -3
- package/shared/definition9.js +1 -2
- package/shared/index.js +1 -1
- 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/patterns/affix.d.ts +3 -1
- package/shared/presentationDate.js +6133 -0
- package/shared/ref.js +1 -1
- package/shared/slotted.js +73 -3
- 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 +4 -3
- package/style.css +265 -197
- package/styles/core/all.css +44 -13
- package/styles/core/theme.css +1 -1
- package/styles/core/typography.css +44 -13
- 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 +4 -3
- package/tab/index.js +4 -3
- package/tab-panel/index.js +1 -1
- package/tabs/index.js +6 -7
- package/tag/index.js +4 -3
- package/tag-group/index.js +1 -1
- package/text-anchor/index.js +1 -0
- package/text-area/index.js +4 -3
- package/text-field/index.js +4 -5
- package/toggletip/index.js +7 -6
- package/tooltip/index.js +7 -6
- package/tree-item/index.js +4 -5
- package/tree-view/index.js +1 -2
- package/vivid.api.json +105 -0
- package/lib/date-picker/date-picker.template.d.ts +0 -4
- package/shared/node-observation.js +0 -74
- /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/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
|
|
package/locales/ja-JP.js
CHANGED
|
@@ -46,13 +46,37 @@ const jaJP = {
|
|
|
46
46
|
dateFormat: "yyyy年MM月dd日",
|
|
47
47
|
dateFormatPlaceholder: "YYYY年MM月DD日",
|
|
48
48
|
chooseDateLabel: "日付を選択",
|
|
49
|
+
changeDateLabel: (
|
|
50
|
+
/* istanbul ignore next */
|
|
51
|
+
(date) => `日付を変更, ${date}`
|
|
52
|
+
),
|
|
53
|
+
chooseDatesLabel: "日付を選択",
|
|
54
|
+
changeDatesLabel: (
|
|
55
|
+
/* istanbul ignore next */
|
|
56
|
+
(range) => `日付を変更, ${range}`
|
|
57
|
+
),
|
|
49
58
|
prevYearLabel: "前年",
|
|
50
59
|
prevMonthLabel: "前月",
|
|
51
60
|
nextMonthLabel: "次月",
|
|
52
61
|
nextYearLabel: "翌年",
|
|
53
62
|
clearLabel: "クリア",
|
|
54
63
|
okLabel: "OK",
|
|
55
|
-
invalidDateError: "有効な日付を入力してください。"
|
|
64
|
+
invalidDateError: "有効な日付を入力してください。",
|
|
65
|
+
invalidDateRangeError: "有効な日付範囲を入力してください。",
|
|
66
|
+
startDateAfterMinDateError: (
|
|
67
|
+
/* istanbul ignore next */
|
|
68
|
+
(minDate) => `開始日は${minDate}以降である必要があります。`
|
|
69
|
+
),
|
|
70
|
+
endDateBeforeMaxDateError: (
|
|
71
|
+
/* istanbul ignore next */
|
|
72
|
+
(maxDate) => `終了日は${maxDate}以前である必要があります。`
|
|
73
|
+
)
|
|
74
|
+
},
|
|
75
|
+
filePicker: {
|
|
76
|
+
invalidFileTypeError: "この種類のファイルは選択できません。",
|
|
77
|
+
maxFilesExceededError: "これ以上ファイルを選択できません。",
|
|
78
|
+
fileTooBigError: "ファイルが大きすぎます ({{filesize}}MiB)。最大ファイルサイズ: {{maxFilesize}}MiB。",
|
|
79
|
+
removeFileLabel: "ファイルを削除"
|
|
56
80
|
}
|
|
57
81
|
};
|
|
58
82
|
|
package/locales/zh-CN.js
CHANGED
|
@@ -46,13 +46,37 @@ const zhCN = {
|
|
|
46
46
|
dateFormat: "yyyy年MM月dd日",
|
|
47
47
|
dateFormatPlaceholder: "YYYY年MM月DD日",
|
|
48
48
|
chooseDateLabel: "选择日期",
|
|
49
|
+
changeDateLabel: (
|
|
50
|
+
/* istanbul ignore next */
|
|
51
|
+
(date) => `更改日期, ${date}`
|
|
52
|
+
),
|
|
53
|
+
chooseDatesLabel: "选择日期",
|
|
54
|
+
changeDatesLabel: (
|
|
55
|
+
/* istanbul ignore next */
|
|
56
|
+
(range) => `更改日期, ${range}`
|
|
57
|
+
),
|
|
49
58
|
prevYearLabel: "上一年",
|
|
50
59
|
prevMonthLabel: "上个月",
|
|
51
60
|
nextMonthLabel: "下个月",
|
|
52
61
|
nextYearLabel: "下一年",
|
|
53
62
|
clearLabel: "清除",
|
|
54
63
|
okLabel: "确定",
|
|
55
|
-
invalidDateError: "请输入有效的日期。"
|
|
64
|
+
invalidDateError: "请输入有效的日期。",
|
|
65
|
+
invalidDateRangeError: "请输入有效的日期范围。",
|
|
66
|
+
startDateAfterMinDateError: (
|
|
67
|
+
/* istanbul ignore next */
|
|
68
|
+
(minDate) => `开始日期必须是${minDate}或之后。`
|
|
69
|
+
),
|
|
70
|
+
endDateBeforeMaxDateError: (
|
|
71
|
+
/* istanbul ignore next */
|
|
72
|
+
(maxDate) => `结束日期必须是${maxDate}或之前。`
|
|
73
|
+
)
|
|
74
|
+
},
|
|
75
|
+
filePicker: {
|
|
76
|
+
invalidFileTypeError: "您不能选择此类型的文件。",
|
|
77
|
+
maxFilesExceededError: "您不能再选择任何文件。",
|
|
78
|
+
fileTooBigError: "文件太大 ({{filesize}}MiB)。最大文件大小: {{maxFilesize}}MiB。",
|
|
79
|
+
removeFileLabel: "删除文件"
|
|
56
80
|
}
|
|
57
81
|
};
|
|
58
82
|
|
package/menu/index.js
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import { r as registerMenu } from '../shared/
|
|
1
|
+
import { r as registerMenu } from '../shared/definition28.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
|
+
import '../shared/slotted.js';
|
|
15
16
|
import '../shared/button.js';
|
|
16
17
|
import '../shared/apply-mixins.js';
|
|
17
18
|
import '../shared/form-associated.js';
|
|
@@ -20,11 +21,9 @@ import '../shared/aria-global.js';
|
|
|
20
21
|
import '../shared/start-end.js';
|
|
21
22
|
import '../shared/ref.js';
|
|
22
23
|
import '../shared/focus2.js';
|
|
23
|
-
import '../shared/
|
|
24
|
-
import '../shared/
|
|
24
|
+
import '../shared/definition57.js';
|
|
25
|
+
import '../shared/definition27.js';
|
|
25
26
|
import '../shared/direction.js';
|
|
26
27
|
import '../shared/dom.js';
|
|
27
|
-
import '../shared/node-observation.js';
|
|
28
|
-
import '../shared/slotted.js';
|
|
29
28
|
|
|
30
29
|
registerMenu();
|
package/menu-item/index.js
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { r as registerMenuItem } from '../shared/
|
|
1
|
+
import { r as registerMenuItem } from '../shared/definition27.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
|
+
import '../shared/slotted.js';
|
|
11
12
|
import '../shared/apply-mixins.js';
|
|
12
13
|
import '../shared/start-end.js';
|
|
13
14
|
import '../shared/ref.js';
|
|
@@ -15,7 +16,5 @@ import '../shared/direction.js';
|
|
|
15
16
|
import '../shared/key-codes.js';
|
|
16
17
|
import '../shared/dom.js';
|
|
17
18
|
import '../shared/focus2.js';
|
|
18
|
-
import '../shared/node-observation.js';
|
|
19
|
-
import '../shared/slotted.js';
|
|
20
19
|
|
|
21
20
|
registerMenuItem();
|
package/nav/index.js
CHANGED
package/nav-disclosure/index.js
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { r as registerNavDisclosure } from '../shared/
|
|
1
|
+
import { r as registerNavDisclosure } from '../shared/definition29.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
|
+
import '../shared/slotted.js';
|
|
11
12
|
import '../shared/apply-mixins.js';
|
|
12
13
|
import '../shared/focus2.js';
|
|
13
14
|
import '../shared/ref.js';
|
package/nav-item/index.js
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { r as registerNavItem } from '../shared/
|
|
1
|
+
import { r as registerNavItem } from '../shared/definition30.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
|
+
import '../shared/slotted.js';
|
|
11
12
|
import '../shared/text-anchor.js';
|
|
12
13
|
import '../shared/anchor.js';
|
|
13
14
|
import '../shared/apply-mixins.js';
|
package/note/index.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { r as registerNote } from '../shared/
|
|
1
|
+
import { r as registerNote } from '../shared/definition32.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/affix.js';
|
|
9
|
+
import '../shared/slotted.js';
|
|
9
10
|
import '../shared/index2.js';
|
|
10
11
|
import '../locales/en-US.js';
|
|
11
12
|
import '../shared/apply-mixins.js';
|
package/number-field/index.js
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import { r as registerNumberField } from '../shared/
|
|
1
|
+
import { r as registerNumberField } from '../shared/definition33.js';
|
|
2
2
|
import '../shared/index.js';
|
|
3
3
|
import '../shared/definition10.js';
|
|
4
|
-
import '../shared/
|
|
4
|
+
import '../shared/definition25.js';
|
|
5
5
|
import '../shared/icon.js';
|
|
6
6
|
import '../shared/_has.js';
|
|
7
7
|
import '../shared/class-names.js';
|
|
8
8
|
import '../shared/when.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
|
+
import '../shared/slotted.js';
|
|
14
15
|
import '../shared/button.js';
|
|
15
16
|
import '../shared/apply-mixins.js';
|
|
16
17
|
import '../shared/form-associated.js';
|
|
@@ -19,7 +20,7 @@ import '../shared/aria-global.js';
|
|
|
19
20
|
import '../shared/start-end.js';
|
|
20
21
|
import '../shared/ref.js';
|
|
21
22
|
import '../shared/focus2.js';
|
|
22
|
-
import '../shared/
|
|
23
|
+
import '../shared/definition20.js';
|
|
23
24
|
import '../shared/aria.js';
|
|
24
25
|
import '../shared/index2.js';
|
|
25
26
|
import '../locales/en-US.js';
|
package/option/index.js
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { r as registerOption } from '../shared/
|
|
1
|
+
import { r as registerOption } from '../shared/definition34.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
|
+
import '../shared/slotted.js';
|
|
11
12
|
import '../shared/aria-global.js';
|
|
12
13
|
import '../shared/start-end.js';
|
|
13
14
|
import '../shared/ref.js';
|
package/package.json
CHANGED
package/pagination/index.js
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import { r as registerPagination } from '../shared/
|
|
1
|
+
import { r as registerPagination } from '../shared/definition35.js';
|
|
2
2
|
import '../shared/definition10.js';
|
|
3
3
|
import '../shared/index.js';
|
|
4
|
-
import '../shared/
|
|
4
|
+
import '../shared/definition25.js';
|
|
5
5
|
import '../shared/icon.js';
|
|
6
6
|
import '../shared/_has.js';
|
|
7
7
|
import '../shared/class-names.js';
|
|
8
8
|
import '../shared/when.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
|
+
import '../shared/slotted.js';
|
|
14
15
|
import '../shared/button.js';
|
|
15
16
|
import '../shared/apply-mixins.js';
|
|
16
17
|
import '../shared/form-associated.js';
|
|
@@ -19,7 +20,6 @@ import '../shared/aria-global.js';
|
|
|
19
20
|
import '../shared/start-end.js';
|
|
20
21
|
import '../shared/ref.js';
|
|
21
22
|
import '../shared/focus2.js';
|
|
22
|
-
import '../shared/node-observation.js';
|
|
23
23
|
import '../shared/children.js';
|
|
24
24
|
import '../shared/repeat.js';
|
|
25
25
|
|
package/popup/index.js
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import { r as registerPopup } from '../shared/
|
|
1
|
+
import { r as registerPopup } from '../shared/definition58.js';
|
|
2
2
|
import '../shared/index.js';
|
|
3
3
|
import '../shared/definition10.js';
|
|
4
|
-
import '../shared/
|
|
4
|
+
import '../shared/definition25.js';
|
|
5
5
|
import '../shared/icon.js';
|
|
6
6
|
import '../shared/_has.js';
|
|
7
7
|
import '../shared/class-names.js';
|
|
8
8
|
import '../shared/when.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
|
+
import '../shared/slotted.js';
|
|
14
15
|
import '../shared/button.js';
|
|
15
16
|
import '../shared/apply-mixins.js';
|
|
16
17
|
import '../shared/form-associated.js';
|
|
@@ -19,6 +20,6 @@ import '../shared/aria-global.js';
|
|
|
19
20
|
import '../shared/start-end.js';
|
|
20
21
|
import '../shared/ref.js';
|
|
21
22
|
import '../shared/focus2.js';
|
|
22
|
-
import '../shared/
|
|
23
|
+
import '../shared/definition57.js';
|
|
23
24
|
|
|
24
25
|
registerPopup();
|
package/progress/index.js
CHANGED
package/progress-ring/index.js
CHANGED
package/radio/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { b as registerRadio } from '../shared/
|
|
1
|
+
import { b as registerRadio } from '../shared/definition39.js';
|
|
2
2
|
import '../shared/index.js';
|
|
3
|
-
import '../shared/
|
|
3
|
+
import '../shared/definition56.js';
|
|
4
4
|
import '../shared/focus.js';
|
|
5
5
|
import '../shared/radio.js';
|
|
6
6
|
import '../shared/form-associated.js';
|
package/radio-group/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as registerRadioGroup } from '../shared/
|
|
1
|
+
import { b as registerRadioGroup } from '../shared/definition38.js';
|
|
2
2
|
import '../shared/index.js';
|
|
3
3
|
import '../shared/direction.js';
|
|
4
4
|
import '../shared/key-codes.js';
|
|
@@ -6,8 +6,7 @@ import '../shared/aria.js';
|
|
|
6
6
|
import '../shared/radio.js';
|
|
7
7
|
import '../shared/form-associated.js';
|
|
8
8
|
import '../shared/aria2.js';
|
|
9
|
-
import '../shared/node-observation.js';
|
|
10
|
-
import '../shared/when.js';
|
|
11
9
|
import '../shared/slotted.js';
|
|
10
|
+
import '../shared/when.js';
|
|
12
11
|
|
|
13
12
|
registerRadioGroup();
|
package/select/index.js
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import { r as registerSelect } from '../shared/
|
|
1
|
+
import { r as registerSelect } from '../shared/definition40.js';
|
|
2
2
|
import '../shared/index.js';
|
|
3
|
-
import '../shared/
|
|
3
|
+
import '../shared/definition56.js';
|
|
4
4
|
import '../shared/focus.js';
|
|
5
|
-
import '../shared/
|
|
5
|
+
import '../shared/definition58.js';
|
|
6
6
|
import '../shared/definition10.js';
|
|
7
|
-
import '../shared/
|
|
7
|
+
import '../shared/definition25.js';
|
|
8
8
|
import '../shared/icon.js';
|
|
9
9
|
import '../shared/_has.js';
|
|
10
10
|
import '../shared/class-names.js';
|
|
11
11
|
import '../shared/when.js';
|
|
12
|
-
import '../shared/
|
|
12
|
+
import '../shared/definition36.js';
|
|
13
13
|
import '../shared/base-progress.js';
|
|
14
14
|
import '../shared/affix.js';
|
|
15
|
+
import '../shared/slotted.js';
|
|
15
16
|
import '../shared/button.js';
|
|
16
17
|
import '../shared/apply-mixins.js';
|
|
17
18
|
import '../shared/form-associated.js';
|
|
@@ -20,8 +21,8 @@ import '../shared/aria-global.js';
|
|
|
20
21
|
import '../shared/start-end.js';
|
|
21
22
|
import '../shared/ref.js';
|
|
22
23
|
import '../shared/focus2.js';
|
|
23
|
-
import '../shared/
|
|
24
|
-
import '../shared/
|
|
24
|
+
import '../shared/definition57.js';
|
|
25
|
+
import '../shared/definition34.js';
|
|
25
26
|
import '../shared/dom.js';
|
|
26
27
|
import '../shared/index2.js';
|
|
27
28
|
import '../locales/en-US.js';
|
|
@@ -29,7 +30,5 @@ import '../shared/listbox.js';
|
|
|
29
30
|
import '../shared/strings.js';
|
|
30
31
|
import '../shared/numbers.js';
|
|
31
32
|
import '../shared/select.options.js';
|
|
32
|
-
import '../shared/slotted.js';
|
|
33
|
-
import '../shared/node-observation.js';
|
|
34
33
|
|
|
35
34
|
registerSelect();
|
package/shared/affix.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { I as Icon } from './icon.js';
|
|
2
2
|
import { a as attr, h as html } from './index.js';
|
|
3
|
+
import { s as slotted } from './slotted.js';
|
|
3
4
|
|
|
4
5
|
var __defProp = Object.defineProperty;
|
|
5
6
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -17,6 +18,9 @@ class AffixIcon {
|
|
|
17
18
|
__decorateClass([
|
|
18
19
|
attr
|
|
19
20
|
], AffixIcon.prototype, "icon", 2);
|
|
21
|
+
__decorateClass([
|
|
22
|
+
attr({ mode: "fromView" })
|
|
23
|
+
], AffixIcon.prototype, "iconSlottedContent", 2);
|
|
20
24
|
class AffixIconWithTrailing extends AffixIcon {
|
|
21
25
|
constructor() {
|
|
22
26
|
super(...arguments);
|
|
@@ -37,7 +41,7 @@ const affixIconTemplateFactory = (context) => {
|
|
|
37
41
|
const iconTag = context.tagFor(Icon);
|
|
38
42
|
return (icon, slottedState = IconWrapper.Span) => {
|
|
39
43
|
if (!icon && !slottedState) {
|
|
40
|
-
return html`<slot name="icon"></slot>`;
|
|
44
|
+
return html`<slot name="icon" ${slotted("iconSlottedContent")}></slot>`;
|
|
41
45
|
}
|
|
42
46
|
if (!icon && slottedState) {
|
|
43
47
|
return null;
|
package/shared/apply-mixins.js
CHANGED
package/shared/children.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { N as NodeObservationBehavior } from './
|
|
1
|
+
import { b as AttachedBehaviorHTMLDirective } from './index.js';
|
|
2
|
+
import { N as NodeObservationBehavior } from './slotted.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* The runtime behavior for child node observation.
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { DatePickerLocale } from '../locale';
|
|
2
|
+
import type { DateRange } from './dateRange';
|
|
3
|
+
export declare const formatRange: (from: string, to: string) => string;
|
|
4
|
+
export declare const formatPresentationDateRange: (dateRange: DateRange, locale: DatePickerLocale) => string;
|
|
5
|
+
export declare const parsePresentationDateRange: (presentationDateRange: string, locale: DatePickerLocale) => DateRange;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { FormElementHelperText, Localized } from '../patterns';
|
|
2
|
+
import { type DateStr } from './calendar/dateStr';
|
|
3
|
+
import { FormAssociatedDatePickerBase } from './date-picker-base.form-associated';
|
|
4
|
+
export declare abstract class DatePickerBase extends FormAssociatedDatePickerBase {
|
|
5
|
+
#private;
|
|
6
|
+
abstract label: string;
|
|
7
|
+
min: string;
|
|
8
|
+
max: string;
|
|
9
|
+
initialValue: string;
|
|
10
|
+
currentValue: string;
|
|
11
|
+
readOnly: boolean;
|
|
12
|
+
constructor();
|
|
13
|
+
connectedCallback(): void;
|
|
14
|
+
disconnectedCallback(): void;
|
|
15
|
+
protected abstract _getCustomValidationError(): string | null;
|
|
16
|
+
protected abstract _getSelectedDates(): DateStr[];
|
|
17
|
+
abstract _onDateClick(date: DateStr): void;
|
|
18
|
+
}
|
|
19
|
+
export interface DatePickerBase extends Localized, FormElementHelperText {
|
|
20
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FormAssociated, FoundationElement } from '@microsoft/fast-foundation';
|
|
2
|
+
declare class _DatePickerBase extends FoundationElement {
|
|
3
|
+
}
|
|
4
|
+
interface _DatePickerBase extends FormAssociated {
|
|
5
|
+
}
|
|
6
|
+
declare const FormAssociatedDatePickerBase_base: typeof _DatePickerBase;
|
|
7
|
+
export declare class FormAssociatedDatePickerBase extends FormAssociatedDatePickerBase_base {
|
|
8
|
+
proxy: HTMLInputElement;
|
|
9
|
+
}
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ViewTemplate } from '@microsoft/fast-element';
|
|
2
|
+
import type { ElementDefinitionContext, FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
3
|
+
import type { DatePickerBase } from './date-picker-base';
|
|
4
|
+
export declare const DatePickerBaseTemplate: (context: ElementDefinitionContext, definition: FoundationElementDefinition) => ViewTemplate<DatePickerBase>;
|
|
@@ -11,6 +11,9 @@ export interface DatePickerLocale {
|
|
|
11
11
|
dateFormat: string;
|
|
12
12
|
dateFormatPlaceholder: string;
|
|
13
13
|
chooseDateLabel: string;
|
|
14
|
+
changeDateLabel: (date: string) => string;
|
|
15
|
+
chooseDatesLabel: string;
|
|
16
|
+
changeDatesLabel: (range: string) => string;
|
|
14
17
|
prevYearLabel: string;
|
|
15
18
|
prevMonthLabel: string;
|
|
16
19
|
nextMonthLabel: string;
|
|
@@ -18,4 +21,7 @@ export interface DatePickerLocale {
|
|
|
18
21
|
clearLabel: string;
|
|
19
22
|
okLabel: string;
|
|
20
23
|
invalidDateError: string;
|
|
24
|
+
invalidDateRangeError: string;
|
|
25
|
+
startDateAfterMinDateError: (minDate: string) => string;
|
|
26
|
+
endDateBeforeMaxDateError: (maxDate: string) => string;
|
|
21
27
|
}
|
package/shared/definition.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { F as FoundationElement, _ as __decorate, a as attr, n as nullableNumberConverter, h as html, r as registerFactory } from './index.js';
|
|
2
|
-
import { a as iconRegistries } from './
|
|
3
|
-
import { f as focusRegistries } from './
|
|
4
|
-
import { b as AffixIconWithTrailing, a as affixIconTemplateFactory } from './affix.js';
|
|
2
|
+
import { a as iconRegistries } from './definition25.js';
|
|
3
|
+
import { f as focusRegistries } from './definition56.js';
|
|
4
|
+
import { b as AffixIconWithTrailing, a as affixIconTemplateFactory, I as IconWrapper } from './affix.js';
|
|
5
5
|
import { a as applyMixins } from './apply-mixins.js';
|
|
6
6
|
import { S as StartEnd } from './start-end.js';
|
|
7
7
|
import { f as focusTemplateFactory } from './focus2.js';
|
|
@@ -76,7 +76,7 @@ __decorate([
|
|
|
76
76
|
], AccordionItem$1.prototype, "id", void 0);
|
|
77
77
|
applyMixins(AccordionItem$1, StartEnd);
|
|
78
78
|
|
|
79
|
-
const styles = "/**\n * Do not edit directly\n * Generated on
|
|
79
|
+
const styles = "/**\n * Do not edit directly\n * Generated on Fri, 13 Oct 2023 14:45:50 GMT\n */\n:host {\n display: flex;\n box-sizing: border-box;\n flex-direction: column;\n}\n\n.heading-container {\n margin: 0;\n}\n\n.heading-button {\n position: relative;\n display: flex;\n width: 100%;\n align-items: center;\n padding: 16px;\n border: none;\n background-color: var(--_appearance-color-fill);\n color: var(--_appearance-color-text);\n cursor: pointer;\n text-align: left;\n}\n.heading-button {\n --_appearance-color-text: var(--_connotation-color-primary);\n --_appearance-color-fill: transparent;\n --_appearance-color-outline: transparent;\n}\n.heading-button:where(:hover, .hover):where(:not(:disabled, .disabled, .readonly)) {\n --_appearance-color-text: var(--_connotation-color-primary);\n --_appearance-color-fill: var(--_connotation-color-faint);\n --_appearance-color-outline: transparent;\n}\n.heading-button:where(:active, .active):where(:not(:disabled, .disabled)) {\n --_appearance-color-text: var(--_connotation-color-primary);\n --_appearance-color-fill: var(--_connotation-color-soft);\n --_appearance-color-outline: transparent;\n}\n.heading-button {\n /* @cssprop [--vvd-accordion-item-accent-primary=var(--vvd-color-canvas-text)] */\n --_connotation-color-primary: var(--vvd-accordion-item-accent-primary, var(--vvd-color-canvas-text));\n /* @cssprop [--vvd-accordion-item-accent-faint=var(--vvd-color-neutral-50)] */\n --_connotation-color-faint: var(--vvd-accordion-item-accent-faint, var(--vvd-color-neutral-50));\n /* @cssprop [--vvd-accordion-item-accent-soft=var(--vvd-color-neutral-100)] */\n --_connotation-color-soft: var(--vvd-accordion-item-accent-soft, var(--vvd-color-neutral-100));\n}\n@supports selector(:focus-visible) {\n .heading-button:focus-visible {\n outline: none;\n }\n}\n.heading-button.size-condensed {\n font: var(--vvd-typography-base-bold);\n gap: 12px;\n}\n.heading-button:not(.size-condensed) {\n font: var(--vvd-typography-heading-4);\n gap: 16px;\n}\n\n.heading-content {\n flex: auto;\n}\n\n.meta {\n overflow: hidden;\n max-width: 20%;\n flex-shrink: 0;\n color: var(--vvd-color-neutral-600);\n text-align: end;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.heading-button:not(.size-condensed) .meta {\n font: var(--vvd-typography-base-bold);\n}\n.heading-button.size-condensed .meta {\n font: var(--vvd-typography-base-condensed-bold);\n}\n\n.region {\n display: none;\n padding: 8px 32px 24px 16px;\n}\n.region:not(.size-condensed).padded {\n padding-inline-start: 52px;\n}\n:host([expanded]) .region {\n display: block;\n}\n.region.size-condensed.padded {\n padding-inline-start: 44px;\n}\n\nslot[name=icon] {\n color: var(--vvd-color-neutral-600);\n}\n.heading-button:not(.size-condensed) slot[name=icon] {\n font: inherit;\n}\n.heading-button.size-condensed slot[name=icon] {\n font: var(--vvd-typography-base-extended);\n}\n:host(:not([icon-trailing])) slot[name=icon]:last-of-type {\n color: var(--_appearance-color-text);\n}\n\n.focus-indicator {\n --focus-stroke-gap-color: transparent;\n}\nbutton:not(:focus-visible) > .focus-indicator {\n display: none;\n}";
|
|
80
80
|
|
|
81
81
|
var __defProp = Object.defineProperty;
|
|
82
82
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -124,7 +124,7 @@ const header = (context, hTag) => {
|
|
|
124
124
|
>
|
|
125
125
|
${() => focusTemplate}
|
|
126
126
|
|
|
127
|
-
${(x) =>
|
|
127
|
+
${(x) => !x.iconTrailing ? affixIconTemplate(x.icon, IconWrapper.Slot) : null}
|
|
128
128
|
|
|
129
129
|
<span class="heading-content">${(x) => x.heading}</span>
|
|
130
130
|
|