@vonage/vivid-react 2.10.71 → 2.10.73

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.
Files changed (187) hide show
  1. package/README.md +54 -54
  2. package/VwcAccordion/package.json +2 -2
  3. package/VwcActionGroup/package.json +2 -2
  4. package/VwcBadge/package.json +2 -2
  5. package/VwcBanner/package.json +2 -2
  6. package/VwcButton/package.json +2 -2
  7. package/VwcButtonToggleGroup/package.json +2 -2
  8. package/VwcCalendar/package.json +2 -2
  9. package/VwcCalendarEvent/package.json +2 -2
  10. package/VwcCard/package.json +2 -2
  11. package/VwcCarousel/package.json +2 -2
  12. package/VwcCarouselItem/package.json +2 -2
  13. package/VwcCheckListItem/package.json +2 -2
  14. package/VwcCheckbox/package.json +2 -2
  15. package/VwcChip/package.json +2 -2
  16. package/VwcChipSet/package.json +2 -2
  17. package/VwcCircularProgress/package.json +2 -2
  18. package/VwcDataGrid/package.json +2 -2
  19. package/VwcDataGridColumn/package.json +2 -2
  20. package/VwcDatepicker/package.json +2 -2
  21. package/VwcDialog/package.json +2 -2
  22. package/VwcDrawer/package.json +2 -2
  23. package/VwcDropdown/package.json +2 -2
  24. package/VwcElevation/package.json +2 -2
  25. package/VwcEmptyState/package.json +2 -2
  26. package/VwcExpansionPanel/package.json +2 -2
  27. package/VwcFab/package.json +2 -2
  28. package/VwcFilePicker/package.json +2 -2
  29. package/VwcFormfield/package.json +2 -2
  30. package/VwcHelperMessage/package.json +2 -2
  31. package/VwcIcon/package.json +2 -2
  32. package/VwcIconButton/package.json +2 -2
  33. package/VwcIconButtonToggle/package.json +2 -2
  34. package/VwcKeypad/package.json +2 -2
  35. package/VwcLayout/package.json +2 -2
  36. package/VwcLinearProgress/package.json +2 -2
  37. package/VwcList/package.json +2 -2
  38. package/VwcListExpansionPanel/package.json +2 -2
  39. package/VwcListItem/package.json +2 -2
  40. package/VwcMenu/package.json +2 -2
  41. package/VwcNotchedOutline/package.json +2 -2
  42. package/VwcNote/package.json +2 -2
  43. package/VwcPagination/package.json +2 -2
  44. package/VwcPopup/package.json +2 -2
  45. package/VwcRadio/package.json +2 -2
  46. package/VwcRadioListItem/package.json +2 -2
  47. package/VwcSchemeSelect/package.json +2 -2
  48. package/VwcScrubBar/package.json +2 -2
  49. package/VwcSelect/package.json +2 -2
  50. package/VwcSideDrawer/package.json +2 -2
  51. package/VwcSlider/package.json +2 -2
  52. package/VwcSnackbar/package.json +2 -2
  53. package/VwcSurface/package.json +2 -2
  54. package/VwcSwitch/package.json +2 -2
  55. package/VwcTab/package.json +2 -2
  56. package/VwcTabBar/package.json +2 -2
  57. package/VwcTag/package.json +2 -2
  58. package/VwcText/package.json +2 -2
  59. package/VwcTextarea/package.json +2 -2
  60. package/VwcTextfield/package.json +2 -2
  61. package/VwcThemeSwitch/package.json +2 -2
  62. package/VwcTooltip/package.json +2 -2
  63. package/VwcTopAppBar/package.json +2 -2
  64. package/VwcTopAppBarFixed/package.json +2 -2
  65. package/index.js +9 -9
  66. package/package.json +73 -67
  67. package/types/index.d.ts +48 -8
  68. package/v3/VwcAccordion/package.json +2 -2
  69. package/v3/VwcAccordionItem/package.json +2 -2
  70. package/v3/VwcActionGroup/package.json +2 -2
  71. package/v3/VwcAlert/package.json +2 -2
  72. package/v3/VwcAvatar/index.js +8 -0
  73. package/v3/VwcAvatar/package.json +2 -2
  74. package/v3/VwcBadge/package.json +2 -2
  75. package/v3/VwcBanner/package.json +2 -2
  76. package/v3/VwcBreadcrumb/package.json +2 -2
  77. package/v3/VwcBreadcrumbItem/package.json +2 -2
  78. package/v3/VwcButton/package.json +2 -2
  79. package/v3/VwcCalendar/package.json +2 -2
  80. package/v3/VwcCalendarEvent/package.json +2 -2
  81. package/v3/VwcCard/package.json +2 -2
  82. package/v3/VwcCheckbox/index.d.ts +2 -0
  83. package/v3/VwcCheckbox/index.js +17 -1
  84. package/v3/VwcCheckbox/package.json +2 -2
  85. package/v3/VwcCombobox/package.json +2 -2
  86. package/v3/VwcDataGrid/index.d.ts +1 -1
  87. package/v3/VwcDataGrid/index.js +4 -1
  88. package/v3/VwcDataGrid/package.json +2 -2
  89. package/v3/VwcDataGridCell/index.d.ts +4 -3
  90. package/v3/VwcDataGridCell/index.js +15 -3
  91. package/v3/VwcDataGridCell/package.json +2 -2
  92. package/v3/VwcDataGridRow/index.d.ts +1 -1
  93. package/v3/VwcDataGridRow/index.js +4 -1
  94. package/v3/VwcDataGridRow/package.json +2 -2
  95. package/v3/VwcDatePicker/index.d.ts +14 -10
  96. package/v3/VwcDatePicker/index.js +217 -92
  97. package/v3/VwcDatePicker/package.json +2 -2
  98. package/v3/VwcDatePickerBase/index.d.ts +29 -0
  99. package/v3/VwcDatePickerBase/index.js +248 -0
  100. package/v3/VwcDatePickerBase/package.json +11 -0
  101. package/v3/VwcDateRangePicker/index.d.ts +56 -0
  102. package/v3/VwcDateRangePicker/index.js +444 -0
  103. package/v3/VwcDateRangePicker/package.json +11 -0
  104. package/v3/VwcDialog/index.d.ts +2 -0
  105. package/v3/VwcDialog/index.js +18 -2
  106. package/v3/VwcDialog/package.json +2 -2
  107. package/v3/VwcDivider/package.json +2 -2
  108. package/v3/VwcElevation/package.json +2 -2
  109. package/v3/VwcEmptyState/package.json +2 -2
  110. package/v3/VwcFab/index.js +6 -0
  111. package/v3/VwcFab/package.json +2 -2
  112. package/v3/VwcFilePicker/index.d.ts +4 -2
  113. package/v3/VwcFilePicker/index.js +62 -20
  114. package/v3/VwcFilePicker/package.json +2 -2
  115. package/v3/VwcFocus/package.json +2 -2
  116. package/v3/VwcFormAssociatedFilePicker/index.d.ts +17 -0
  117. package/v3/VwcFormAssociatedFilePicker/index.js +44 -0
  118. package/v3/VwcFormAssociatedFilePicker/package.json +11 -0
  119. package/v3/VwcHeader/package.json +2 -2
  120. package/v3/VwcIcon/package.json +2 -2
  121. package/v3/VwcLayout/package.json +2 -2
  122. package/v3/VwcListbox/index.d.ts +4 -0
  123. package/v3/VwcListbox/index.js +71 -1
  124. package/v3/VwcListbox/package.json +2 -2
  125. package/v3/VwcMenu/index.d.ts +2 -0
  126. package/v3/VwcMenu/index.js +5 -1
  127. package/v3/VwcMenu/package.json +2 -2
  128. package/v3/VwcMenuItem/index.d.ts +6 -0
  129. package/v3/VwcMenuItem/index.js +66 -1
  130. package/v3/VwcMenuItem/package.json +2 -2
  131. package/v3/VwcNav/package.json +2 -2
  132. package/v3/VwcNavDisclosure/package.json +2 -2
  133. package/v3/VwcNavItem/package.json +2 -2
  134. package/v3/VwcNote/package.json +2 -2
  135. package/v3/VwcNumberField/index.d.ts +4 -0
  136. package/v3/VwcNumberField/index.js +64 -1
  137. package/v3/VwcNumberField/package.json +2 -2
  138. package/v3/{VwcListboxOption → VwcOption}/index.d.ts +3 -3
  139. package/v3/{VwcListboxOption → VwcOption}/index.js +5 -5
  140. package/v3/{VwcListboxOption → VwcOption}/package.json +2 -2
  141. package/v3/VwcPagination/package.json +2 -2
  142. package/v3/VwcPopup/package.json +2 -2
  143. package/v3/VwcProgress/index.d.ts +5 -3
  144. package/v3/VwcProgress/index.js +29 -4
  145. package/v3/VwcProgress/package.json +2 -2
  146. package/v3/VwcProgressRing/index.d.ts +3 -1
  147. package/v3/VwcProgressRing/index.js +19 -3
  148. package/v3/VwcProgressRing/package.json +2 -2
  149. package/v3/VwcRadio/index.d.ts +2 -0
  150. package/v3/VwcRadio/index.js +17 -1
  151. package/v3/VwcRadio/package.json +2 -2
  152. package/v3/VwcRadioGroup/package.json +2 -2
  153. package/v3/VwcSelect/index.d.ts +2 -1
  154. package/v3/VwcSelect/index.js +1 -1
  155. package/v3/VwcSelect/package.json +2 -2
  156. package/v3/VwcSelectableBox/index.d.ts +30 -0
  157. package/v3/VwcSelectableBox/index.js +197 -0
  158. package/v3/VwcSelectableBox/package.json +11 -0
  159. package/v3/VwcSideDrawer/index.d.ts +3 -1
  160. package/v3/VwcSideDrawer/index.js +11 -1
  161. package/v3/VwcSideDrawer/package.json +2 -2
  162. package/v3/VwcSlider/index.d.ts +6 -0
  163. package/v3/VwcSlider/index.js +60 -1
  164. package/v3/VwcSlider/package.json +2 -2
  165. package/v3/VwcSplitButton/package.json +2 -2
  166. package/v3/VwcSwitch/index.d.ts +1 -1
  167. package/v3/VwcSwitch/index.js +4 -1
  168. package/v3/VwcSwitch/package.json +2 -2
  169. package/v3/VwcTab/index.js +6 -0
  170. package/v3/VwcTab/package.json +2 -2
  171. package/v3/VwcTabPanel/package.json +2 -2
  172. package/v3/VwcTabs/package.json +2 -2
  173. package/v3/VwcTag/package.json +2 -2
  174. package/v3/VwcTagGroup/index.d.ts +2 -1
  175. package/v3/VwcTagGroup/index.js +21 -1
  176. package/v3/VwcTagGroup/package.json +2 -2
  177. package/v3/VwcTextAnchor/package.json +2 -2
  178. package/v3/VwcTextArea/index.d.ts +1 -1
  179. package/v3/VwcTextArea/index.js +11 -0
  180. package/v3/VwcTextArea/package.json +2 -2
  181. package/v3/VwcTextField/index.d.ts +2 -0
  182. package/v3/VwcTextField/index.js +42 -1
  183. package/v3/VwcTextField/package.json +2 -2
  184. package/v3/VwcToggletip/package.json +2 -2
  185. package/v3/VwcTooltip/package.json +2 -2
  186. package/v3/VwcTreeItem/package.json +2 -2
  187. package/v3/VwcTreeView/package.json +2 -2
@@ -19,7 +19,9 @@ Code in this file were generated using following JSON:
19
19
  "name": "selectionMode",
20
20
  "type": {
21
21
  "text": "DataGridSelectionMode | undefined"
22
- }
22
+ },
23
+ "description": "Indicates the selection mode.",
24
+ "privacy": "public"
23
25
  },
24
26
  {
25
27
  "kind": "field",
@@ -106,6 +108,7 @@ Code in this file were generated using following JSON:
106
108
  "type": {
107
109
  "text": "DataGridSelectionMode | undefined"
108
110
  },
111
+ "description": "Indicates the selection mode.",
109
112
  "fieldName": "selectionMode"
110
113
  }
111
114
  ],
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@vonage/vivid-react-vvd3-data-grid",
3
- "version": "3.32.0",
3
+ "version": "3.40.0",
4
4
  "main": "index.js",
5
5
  "types": "index.d.ts",
6
6
  "private": true,
7
7
  "license": "MIT",
8
8
  "dependencies": {
9
- "@vonage/vivid": "3.32.0"
9
+ "@vonage/vivid": "3.40.0"
10
10
  }
11
11
  }
@@ -1,8 +1,8 @@
1
- import React, { ReactNode } from 'react';
1
+ import React, { ReactNode, SyntheticEvent } from 'react';
2
2
  /** Base class for data-grid
3
3
  * For more info on this Vivid element please visit https://vivid.deno.dev/components/data-grid-cell
4
- * @param {string | null} ariaSelected **attribute** `aria-selected`
5
- * @param {string | null} ariaSort **attribute** `aria-sort`
4
+ * @param {string | null} ariaSelected - Indicates the selected status. **attribute** `aria-selected`
5
+ * @param {string | null} ariaSort - Indicates the sort status. **attribute** `aria-sort`
6
6
  * @param updateCellStyle
7
7
  */
8
8
  declare const VwcDataGridCell: {
@@ -12,6 +12,7 @@ declare const VwcDataGridCell: {
12
12
  id?: string | undefined;
13
13
  style?: React.CSSProperties | undefined;
14
14
  ref?: React.RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
15
+ onSort?: ((event: SyntheticEvent) => void) | undefined;
15
16
  ariaSelected?: string | null | undefined;
16
17
  ariaSort?: string | null | undefined;
17
18
  updateCellStyle?: any;
@@ -64,7 +64,9 @@ Code in this file were generated using following JSON:
64
64
  "type": {
65
65
  "text": "string | null"
66
66
  },
67
- "default": "null"
67
+ "default": "null",
68
+ "description": "Indicates the selected status.",
69
+ "privacy": "public"
68
70
  },
69
71
  {
70
72
  "kind": "field",
@@ -72,7 +74,9 @@ Code in this file were generated using following JSON:
72
74
  "type": {
73
75
  "text": "string | null"
74
76
  },
75
- "default": "null"
77
+ "default": "null",
78
+ "description": "Indicates the sort status.",
79
+ "privacy": "public"
76
80
  },
77
81
  {
78
82
  "kind": "method",
@@ -121,6 +125,12 @@ Code in this file were generated using following JSON:
121
125
  "name": "updateCellStyle"
122
126
  }
123
127
  ],
128
+ "events": [
129
+ {
130
+ "description": "Event that fires when a sortable column header is clicked",
131
+ "name": "sort"
132
+ }
133
+ ],
124
134
  "attributes": [
125
135
  {
126
136
  "name": "aria-selected",
@@ -128,6 +138,7 @@ Code in this file were generated using following JSON:
128
138
  "text": "string | null"
129
139
  },
130
140
  "default": "null",
141
+ "description": "Indicates the selected status.",
131
142
  "fieldName": "ariaSelected"
132
143
  },
133
144
  {
@@ -136,6 +147,7 @@ Code in this file were generated using following JSON:
136
147
  "text": "string | null"
137
148
  },
138
149
  "default": "null",
150
+ "description": "Indicates the sort status.",
139
151
  "fieldName": "ariaSort"
140
152
  }
141
153
  ],
@@ -151,7 +163,7 @@ import { registerDataGridCell } from '@vonage/vivid'
151
163
  registerDataGridCell('vvd3')
152
164
 
153
165
  const VwcDataGridCell = wrapper(`vvd3-data-grid-cell`, {
154
- events: [],
166
+ events: [{"name":"sort","propName":"onSort"}],
155
167
  attributes: [],
156
168
  properties: ['ariaSelected', 'ariaSort', 'updateCellStyle']
157
169
  })
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@vonage/vivid-react-vvd3-data-grid-cell",
3
- "version": "3.32.0",
3
+ "version": "3.40.0",
4
4
  "main": "index.js",
5
5
  "types": "index.d.ts",
6
6
  "private": true,
7
7
  "license": "MIT",
8
8
  "dependencies": {
9
- "@vonage/vivid": "3.32.0"
9
+ "@vonage/vivid": "3.40.0"
10
10
  }
11
11
  }
@@ -1,7 +1,7 @@
1
1
  import React, { ReactNode } from 'react';
2
2
  /** Base class for data-grid
3
3
  * For more info on this Vivid element please visit https://vivid.deno.dev/components/data-grid-row
4
- * @param {string | null} ariaSelected **attribute** `aria-selected`
4
+ * @param {string | null} ariaSelected - Indicates the selected status. **attribute** `aria-selected`
5
5
  */
6
6
  declare const VwcDataGridRow: {
7
7
  (props: {
@@ -64,7 +64,9 @@ Code in this file were generated using following JSON:
64
64
  "type": {
65
65
  "text": "string | null"
66
66
  },
67
- "default": "null"
67
+ "default": "null",
68
+ "description": "Indicates the selected status.",
69
+ "privacy": "public"
68
70
  }
69
71
  ],
70
72
  "attributes": [
@@ -74,6 +76,7 @@ Code in this file were generated using following JSON:
74
76
  "text": "string | null"
75
77
  },
76
78
  "default": "null",
79
+ "description": "Indicates the selected status.",
77
80
  "fieldName": "ariaSelected"
78
81
  }
79
82
  ],
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@vonage/vivid-react-vvd3-data-grid-row",
3
- "version": "3.32.0",
3
+ "version": "3.40.0",
4
4
  "main": "index.js",
5
5
  "types": "index.d.ts",
6
6
  "private": true,
7
7
  "license": "MIT",
8
8
  "dependencies": {
9
- "@vonage/vivid": "3.32.0"
9
+ "@vonage/vivid": "3.40.0"
10
10
  }
11
11
  }
@@ -1,12 +1,14 @@
1
1
  import React, { ReactNode } from 'react';
2
- /** Base class for date-picker
2
+ /** Single date picker component.
3
3
  * For more info on this Vivid element please visit https://vivid.deno.dev/components/date-picker
4
- * @param {string | undefined} label - The label text of the date-picker. **attribute** `label`
5
- * @param {string | undefined} helperText - The helper-text text of the date-picker. **attribute** `helper-text`
6
- * @param {string | undefined} errorText - The error-text text of the date-picker. **attribute** `error-text`
7
- * @param {DateStr | null} value - The currently selected date of the date-picker. **attribute** `value`
8
- * @param {boolean} disabled - Whether the date-picker is disabled. **attribute** `disabled`
4
+ * @param {string} type
5
+ * @param {string} label
6
+ * @param {string} min - The earliest accepted date of the date-picker. **attribute** `min`
7
+ * @param {string} max - The latest accepted date of the date-picker.
8
+ * @param {string} initialValue - The initial value of the date-picker. **attribute** `value`
9
+ * @param {string} currentValue - The current value of the date-picker. **attribute** `current-value`
9
10
  * @param {boolean} readOnly - Whether the date-picker is readonly. **attribute** `readonly`
11
+ * @param {string} value
10
12
  */
11
13
  declare const VwcDatePicker: {
12
14
  (props: {
@@ -15,12 +17,14 @@ declare const VwcDatePicker: {
15
17
  id?: string | undefined;
16
18
  style?: React.CSSProperties | undefined;
17
19
  ref?: React.RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
20
+ type?: string | undefined;
18
21
  label?: string | undefined;
19
- helperText?: string | undefined;
20
- errorText?: string | undefined;
21
- value?: any;
22
- disabled?: boolean | undefined;
22
+ min?: string | undefined;
23
+ max?: string | undefined;
24
+ initialValue?: string | undefined;
25
+ currentValue?: string | undefined;
23
26
  readOnly?: boolean | undefined;
27
+ value?: string | undefined;
24
28
  }): JSX.Element;
25
29
  displayName: string;
26
30
  };
@@ -5,104 +5,205 @@
5
5
  Code in this file were generated using following JSON:
6
6
  {
7
7
  "kind": "class",
8
- "description": "Base class for date-picker",
8
+ "description": "Single date picker component.",
9
9
  "name": "DatePicker",
10
- "cssProperties": [
10
+ "members": [
11
11
  {
12
- "name": "--vvd-date-picker-accent-primary",
13
- "default": "var(--vvd-color-canvas-text)"
12
+ "kind": "method",
13
+ "name": "#updateValueDueToUserInteraction",
14
+ "parameters": [
15
+ {
16
+ "name": "newValue",
17
+ "type": {
18
+ "text": "DateStr"
19
+ }
20
+ }
21
+ ]
14
22
  },
15
23
  {
16
- "name": "--vvd-date-picker-accent-faint",
17
- "default": "var(--vvd-color-neutral-50)"
24
+ "kind": "field",
25
+ "name": "type",
26
+ "type": {
27
+ "text": "string"
28
+ },
29
+ "default": "'date'"
18
30
  },
19
31
  {
20
- "name": "--vvd-date-picker-accent-soft",
21
- "default": "var(--vvd-color-neutral-100)"
32
+ "kind": "field",
33
+ "name": "label",
34
+ "type": {
35
+ "text": "string"
36
+ },
37
+ "inheritedFrom": {
38
+ "name": "DatePickerBase",
39
+ "module": "libs/components/src/shared/date-picker/date-picker-base.ts"
40
+ }
22
41
  },
23
42
  {
24
- "name": "--vvd-date-picker-accent-dim",
25
- "default": "var(--vvd-color-neutral-200)"
43
+ "kind": "field",
44
+ "name": "min",
45
+ "type": {
46
+ "text": "string"
47
+ },
48
+ "description": "The earliest accepted date of the date-picker.",
49
+ "privacy": "public",
50
+ "default": "''",
51
+ "inheritedFrom": {
52
+ "name": "DatePickerBase",
53
+ "module": "libs/components/src/shared/date-picker/date-picker-base.ts"
54
+ }
26
55
  },
27
- {
28
- "name": "--vvd-date-picker-accent-pale",
29
- "default": "var(--vvd-color-neutral-300)"
30
- }
31
- ],
32
- "members": [
33
56
  {
34
57
  "kind": "field",
35
- "name": "label",
58
+ "name": "max",
36
59
  "type": {
37
- "text": "string | undefined"
60
+ "text": "string"
38
61
  },
39
- "description": "The label text of the date-picker.",
40
- "privacy": "public"
62
+ "description": "The latest accepted date of the date-picker.",
63
+ "privacy": "public",
64
+ "default": "''",
65
+ "inheritedFrom": {
66
+ "name": "DatePickerBase",
67
+ "module": "libs/components/src/shared/date-picker/date-picker-base.ts"
68
+ }
41
69
  },
42
70
  {
43
71
  "kind": "field",
44
- "name": "helperText",
72
+ "name": "initialValue",
45
73
  "type": {
46
- "text": "string | undefined"
74
+ "text": "string"
47
75
  },
48
- "description": "The helper-text text of the date-picker.",
49
- "privacy": "public"
76
+ "description": "The initial value of the date-picker.",
77
+ "privacy": "public",
78
+ "inheritedFrom": {
79
+ "name": "DatePickerBase",
80
+ "module": "libs/components/src/shared/date-picker/date-picker-base.ts"
81
+ }
50
82
  },
51
83
  {
52
84
  "kind": "field",
53
- "name": "errorText",
85
+ "name": "currentValue",
54
86
  "type": {
55
- "text": "string | undefined"
87
+ "text": "string"
56
88
  },
57
- "description": "The error-text text of the date-picker.",
58
- "privacy": "public"
89
+ "description": "The current value of the date-picker.",
90
+ "privacy": "public",
91
+ "inheritedFrom": {
92
+ "name": "DatePickerBase",
93
+ "module": "libs/components/src/shared/date-picker/date-picker-base.ts"
94
+ }
59
95
  },
60
96
  {
61
97
  "kind": "field",
62
- "name": "value",
98
+ "name": "readOnly",
63
99
  "type": {
64
- "text": "DateStr | null"
100
+ "text": "boolean"
65
101
  },
66
- "default": "null",
67
- "description": "The currently selected date of the date-picker.",
68
- "privacy": "public"
102
+ "default": "false",
103
+ "description": "Whether the date-picker is readonly.",
104
+ "privacy": "public",
105
+ "inheritedFrom": {
106
+ "name": "DatePickerBase",
107
+ "module": "libs/components/src/shared/date-picker/date-picker-base.ts"
108
+ }
69
109
  },
70
110
  {
71
111
  "kind": "method",
72
- "name": "#updateValueDueToUserInteraction",
112
+ "name": "#getFocusableEls",
113
+ "inheritedFrom": {
114
+ "name": "DatePickerBase",
115
+ "module": "libs/components/src/shared/date-picker/date-picker-base.ts"
116
+ }
117
+ },
118
+ {
119
+ "kind": "method",
120
+ "name": "_adjustSelectedMonthToEnsureVisibilityOf",
121
+ "privacy": "protected",
73
122
  "parameters": [
74
123
  {
75
- "name": "newValue",
124
+ "name": "date",
76
125
  "type": {
77
- "text": "DateStr | null"
126
+ "text": "DateStr"
78
127
  }
79
128
  }
80
- ]
129
+ ],
130
+ "inheritedFrom": {
131
+ "name": "DatePickerBase",
132
+ "module": "libs/components/src/shared/date-picker/date-picker-base.ts"
133
+ }
134
+ },
135
+ {
136
+ "kind": "method",
137
+ "name": "#isMonthAfterValidRange",
138
+ "parameters": [
139
+ {
140
+ "name": "month",
141
+ "type": {
142
+ "text": "Month"
143
+ }
144
+ }
145
+ ],
146
+ "inheritedFrom": {
147
+ "name": "DatePickerBase",
148
+ "module": "libs/components/src/shared/date-picker/date-picker-base.ts"
149
+ }
150
+ },
151
+ {
152
+ "kind": "method",
153
+ "name": "#isMonthBeforeValidRange",
154
+ "parameters": [
155
+ {
156
+ "name": "month",
157
+ "type": {
158
+ "text": "Month"
159
+ }
160
+ }
161
+ ],
162
+ "inheritedFrom": {
163
+ "name": "DatePickerBase",
164
+ "module": "libs/components/src/shared/date-picker/date-picker-base.ts"
165
+ }
81
166
  },
82
167
  {
83
168
  "kind": "field",
84
- "name": "disabled",
85
- "type": {
86
- "text": "boolean"
87
- },
88
- "default": "false",
89
- "description": "Whether the date-picker is disabled.",
90
- "privacy": "public"
169
+ "name": "#onFocusIn",
170
+ "privacy": "private",
171
+ "inheritedFrom": {
172
+ "name": "DatePickerBase",
173
+ "module": "libs/components/src/shared/date-picker/date-picker-base.ts"
174
+ }
91
175
  },
92
176
  {
93
177
  "kind": "field",
94
- "name": "readOnly",
95
- "type": {
96
- "text": "boolean"
178
+ "name": "#onFocusOut",
179
+ "privacy": "private",
180
+ "inheritedFrom": {
181
+ "name": "DatePickerBase",
182
+ "module": "libs/components/src/shared/date-picker/date-picker-base.ts"
183
+ }
184
+ },
185
+ {
186
+ "kind": "method",
187
+ "name": "_getCustomValidationError",
188
+ "privacy": "protected",
189
+ "return": {
190
+ "type": {
191
+ "text": "string | null"
192
+ }
97
193
  },
98
- "default": "false",
99
- "description": "Whether the date-picker is readonly.",
100
- "privacy": "public"
194
+ "inheritedFrom": {
195
+ "name": "DatePickerBase",
196
+ "module": "libs/components/src/shared/date-picker/date-picker-base.ts"
197
+ }
101
198
  },
102
199
  {
103
200
  "kind": "field",
104
201
  "name": "#dismissOnClickOutside",
105
- "privacy": "private"
202
+ "privacy": "private",
203
+ "inheritedFrom": {
204
+ "name": "DatePickerBase",
205
+ "module": "libs/components/src/shared/date-picker/date-picker-base.ts"
206
+ }
106
207
  },
107
208
  {
108
209
  "kind": "field",
@@ -111,63 +212,87 @@ Code in this file were generated using following JSON:
111
212
  "type": {
112
213
  "text": "boolean"
113
214
  },
114
- "default": "false"
215
+ "default": "false",
216
+ "inheritedFrom": {
217
+ "name": "DatePickerBase",
218
+ "module": "libs/components/src/shared/date-picker/date-picker-base.ts"
219
+ }
115
220
  },
116
221
  {
117
222
  "kind": "method",
118
- "name": "#openPopupIfPossible"
223
+ "name": "#openPopupIfPossible",
224
+ "inheritedFrom": {
225
+ "name": "DatePickerBase",
226
+ "module": "libs/components/src/shared/date-picker/date-picker-base.ts"
227
+ }
119
228
  },
120
229
  {
121
230
  "kind": "method",
122
- "name": "#closePopup",
123
- "parameters": [
124
- {
125
- "name": "restoreFocusToTextField",
126
- "default": "true"
231
+ "name": "_getSelectedDates",
232
+ "privacy": "protected",
233
+ "return": {
234
+ "type": {
235
+ "text": "DateStr[]"
127
236
  }
128
- ]
129
- }
130
- ],
131
- "attributes": [
132
- {
133
- "name": "label",
134
- "type": {
135
- "text": "string | undefined"
136
237
  },
137
- "description": "The label text of the date-picker.",
138
- "fieldName": "label"
238
+ "inheritedFrom": {
239
+ "name": "DatePickerBase",
240
+ "module": "libs/components/src/shared/date-picker/date-picker-base.ts"
241
+ }
139
242
  },
140
243
  {
141
- "name": "helper-text",
244
+ "kind": "field",
245
+ "name": "value",
142
246
  "type": {
143
- "text": "string | undefined"
247
+ "text": "string"
144
248
  },
145
- "description": "The helper-text text of the date-picker.",
146
- "fieldName": "helperText"
147
- },
249
+ "default": "''",
250
+ "inheritedFrom": {
251
+ "name": "DatePickerBase",
252
+ "module": "libs/components/src/shared/date-picker/date-picker-base.ts"
253
+ }
254
+ }
255
+ ],
256
+ "superclass": {
257
+ "name": "DatePickerBase",
258
+ "module": "/libs/components/src/shared/date-picker/date-picker-base"
259
+ },
260
+ "attributes": [
148
261
  {
149
- "name": "error-text",
150
262
  "type": {
151
- "text": "string | undefined"
263
+ "text": "string"
152
264
  },
153
- "description": "The error-text text of the date-picker.",
154
- "fieldName": "errorText"
265
+ "description": "The earliest accepted date of the date-picker.",
266
+ "default": "''",
267
+ "fieldName": "min",
268
+ "inheritedFrom": {
269
+ "name": "DatePickerBase",
270
+ "module": "libs/components/src/shared/date-picker/date-picker-base.ts"
271
+ }
155
272
  },
156
273
  {
274
+ "name": "value",
157
275
  "type": {
158
- "text": "DateStr | null"
276
+ "text": "string"
159
277
  },
160
- "default": "null",
161
- "description": "The currently selected date of the date-picker.",
162
- "fieldName": "value"
278
+ "description": "The initial value of the date-picker.",
279
+ "fieldName": "initialValue",
280
+ "inheritedFrom": {
281
+ "name": "DatePickerBase",
282
+ "module": "libs/components/src/shared/date-picker/date-picker-base.ts"
283
+ }
163
284
  },
164
285
  {
286
+ "name": "current-value",
165
287
  "type": {
166
- "text": "boolean"
288
+ "text": "string"
167
289
  },
168
- "default": "false",
169
- "description": "Whether the date-picker is disabled.",
170
- "fieldName": "disabled"
290
+ "description": "The current value of the date-picker.",
291
+ "fieldName": "currentValue",
292
+ "inheritedFrom": {
293
+ "name": "DatePickerBase",
294
+ "module": "libs/components/src/shared/date-picker/date-picker-base.ts"
295
+ }
171
296
  },
172
297
  {
173
298
  "name": "readonly",
@@ -176,13 +301,13 @@ Code in this file were generated using following JSON:
176
301
  },
177
302
  "default": "false",
178
303
  "description": "Whether the date-picker is readonly.",
179
- "fieldName": "readOnly"
304
+ "fieldName": "readOnly",
305
+ "inheritedFrom": {
306
+ "name": "DatePickerBase",
307
+ "module": "libs/components/src/shared/date-picker/date-picker-base.ts"
308
+ }
180
309
  }
181
- ],
182
- "superclass": {
183
- "name": "FoundationElement",
184
- "package": "@microsoft/fast-foundation"
185
- }
310
+ ]
186
311
  }
187
312
  */
188
313
  import wrapper from '@vonage/vivid-react-wrapper'
@@ -193,7 +318,7 @@ registerDatePicker('vvd3')
193
318
  const VwcDatePicker = wrapper(`vvd3-date-picker`, {
194
319
  events: [],
195
320
  attributes: [],
196
- properties: ['label', 'helperText', 'errorText', 'value', 'disabled', 'readOnly']
321
+ properties: ['type', 'label', 'min', 'max', 'initialValue', 'currentValue', 'readOnly', 'value']
197
322
  })
198
323
 
199
324
  VwcDatePicker.displayName = 'VwcDatePicker'
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@vonage/vivid-react-vvd3-date-picker",
3
- "version": "3.32.0",
3
+ "version": "3.40.0",
4
4
  "main": "index.js",
5
5
  "types": "index.d.ts",
6
6
  "private": true,
7
7
  "license": "MIT",
8
8
  "dependencies": {
9
- "@vonage/vivid": "3.32.0"
9
+ "@vonage/vivid": "3.40.0"
10
10
  }
11
11
  }
@@ -0,0 +1,29 @@
1
+ import React, { ReactNode } from 'react';
2
+ /** Base class for date-picker
3
+ * For more info on this Vivid element please visit https://vivid.deno.dev/components/date-picker-base
4
+ * @param {string} label
5
+ * @param {string} min - The earliest accepted date of the date-picker. **attribute** `min`
6
+ * @param {string} max - The latest accepted date of the date-picker. **attribute** `max`
7
+ * @param {string} initialValue - The initial value of the date-picker. **attribute** `value`
8
+ * @param {string} currentValue - The current value of the date-picker. **attribute** `current-value`
9
+ * @param {boolean} readOnly - Whether the date-picker is readonly. **attribute** `readonly`
10
+ * @param {string} value
11
+ */
12
+ declare const VwcDatePickerBase: {
13
+ (props: {
14
+ children?: ReactNode;
15
+ slot?: string | undefined;
16
+ id?: string | undefined;
17
+ style?: React.CSSProperties | undefined;
18
+ ref?: React.RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
19
+ label?: string | undefined;
20
+ min?: string | undefined;
21
+ max?: string | undefined;
22
+ initialValue?: string | undefined;
23
+ currentValue?: string | undefined;
24
+ readOnly?: boolean | undefined;
25
+ value?: string | undefined;
26
+ }): JSX.Element;
27
+ displayName: string;
28
+ };
29
+ export default VwcDatePickerBase;