@wix/editor-react-components 1.2621.0 → 1.2623.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/dist/site/components/AccordionComponent/component.js +1 -1
- package/dist/site/components/AccordionComponent/manifest.js +1 -1
- package/dist/site/components/AudioPlayer/component.js +1 -1
- package/dist/site/components/AudioPlayer/manifest.js +1 -1
- package/dist/site/components/BoxContainer/component.js +1 -1
- package/dist/site/components/BoxContainer/manifest.js +1 -1
- package/dist/site/components/Breadcrumbs/component.js +2 -2
- package/dist/site/components/Breadcrumbs/manifest.js +1 -1
- package/dist/site/components/Checkbox/component.js +2 -2
- package/dist/site/components/Checkbox/manifest.js +1 -1
- package/dist/site/components/CheckboxGroup/component.js +2 -2
- package/dist/site/components/CheckboxGroup/manifest.js +1 -1
- package/dist/site/components/CollapsibleText/component.js +1 -1
- package/dist/site/components/CollapsibleText/manifest.js +1 -1
- package/dist/site/components/DatePicker/component.js +1 -1
- package/dist/site/components/DatePicker/manifest.js +1 -1
- package/dist/site/components/Dropdown/component.js +2 -2
- package/dist/site/components/Dropdown/manifest.js +1 -1
- package/dist/site/components/HTMLComponent/component.js +1 -1
- package/dist/site/components/HipaaIcon/component.js +1 -1
- package/dist/site/components/HipaaIcon/manifest.js +1 -1
- package/dist/site/components/LinkBar/component.js +1 -1
- package/dist/site/components/LinkBar/manifest.js +1 -1
- package/dist/site/components/Logo/component.js +1 -1
- package/dist/site/components/Logo/manifest.js +1 -1
- package/dist/site/components/Logo/sdk.js +1 -1
- package/dist/site/components/Lottie/component.js +1 -1
- package/dist/site/components/Lottie/manifest.js +1 -1
- package/dist/site/components/MarkdownBlock/MarkdownBlock.d.ts +4 -0
- package/dist/site/components/MarkdownBlock/component.d.ts +2 -0
- package/dist/site/components/MarkdownBlock/component.js +12486 -0
- package/dist/site/components/MarkdownBlock/constants.d.ts +33 -0
- package/dist/site/components/MarkdownBlock/css.css +347 -0
- package/dist/site/components/MarkdownBlock/index.d.ts +2 -0
- package/dist/site/components/MarkdownBlock/index.js +6 -0
- package/dist/site/components/MarkdownBlock/manifest.d.ts +5 -0
- package/dist/site/components/MarkdownBlock/manifest.js +105 -0
- package/dist/site/components/MarkdownBlock/markdownComponents.d.ts +2 -0
- package/dist/site/components/MarkdownBlock/types.d.ts +9 -0
- package/dist/site/components/Menu/component.js +1 -1
- package/dist/site/components/RadioButtons/component.js +1 -1
- package/dist/site/components/Repeater/manifest.js +39 -6
- package/dist/site/components/ShareButtons/component.js +1 -1
- package/dist/site/components/TextBox/component.js +1 -1
- package/dist/site/components/chunks/constants28.js +62 -78
- package/dist/site/components/chunks/constants29.js +85 -15
- package/dist/site/components/chunks/constants30.js +11 -42
- package/dist/site/components/chunks/constants31.js +44 -23
- package/dist/site/components/chunks/constants32.js +28 -10
- package/dist/site/components/chunks/constants33.js +10 -206
- package/dist/site/components/chunks/constants34.js +182 -153
- package/dist/site/components/chunks/constants35.js +162 -49
- package/dist/site/components/chunks/constants36.js +51 -102
- package/dist/site/components/chunks/constants37.js +69 -39
- package/dist/site/components/chunks/constants38.js +72 -69
- package/dist/site/components/chunks/constants39.js +73 -77
- package/dist/site/components/chunks/constants40.js +75 -56
- package/dist/site/components/chunks/constants41.js +72 -0
- package/dist/site/components/chunks/index11.js +233 -31185
- package/dist/site/components/chunks/index12.js +31191 -3
- package/dist/site/components/chunks/index13.js +5 -0
- package/dist/site/components/chunks/index4.js +18 -255
- package/dist/site/components/extensions.js +49 -47
- package/package.json +4 -3
|
@@ -1,182 +1,211 @@
|
|
|
1
|
+
const DesignStates = {
|
|
2
|
+
root: {
|
|
3
|
+
hover: { displayName: "Hover", className: "dropdown--hover" },
|
|
4
|
+
disabled: { displayName: "Disabled", className: "dropdown--disabled" }
|
|
5
|
+
},
|
|
6
|
+
input: {
|
|
7
|
+
hover: { displayName: "Hover", className: "dropdown__input--hover" },
|
|
8
|
+
focus: { displayName: "Focus", className: "dropdown__input--focus" },
|
|
9
|
+
disabled: {
|
|
10
|
+
displayName: "Disabled",
|
|
11
|
+
className: "dropdown__input--disabled"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
trigger: {
|
|
15
|
+
hover: { displayName: "Hover", className: "dropdown__trigger--hover" },
|
|
16
|
+
selected: {
|
|
17
|
+
displayName: "Selected",
|
|
18
|
+
className: "dropdown__trigger--selected"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
clearButton: {
|
|
22
|
+
hover: { displayName: "Hover", className: "dropdown__clear--hover" },
|
|
23
|
+
selected: {
|
|
24
|
+
displayName: "Selected",
|
|
25
|
+
className: "dropdown__clear--selected"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
option: {
|
|
29
|
+
hover: { displayName: "Hover", className: "dropdown__option--hover" },
|
|
30
|
+
selected: {
|
|
31
|
+
displayName: "Selected",
|
|
32
|
+
className: "dropdown__option--selected"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
chip: {
|
|
36
|
+
hover: { displayName: "Hover", className: "dropdown__chip--hover" },
|
|
37
|
+
selected: {
|
|
38
|
+
displayName: "Selected",
|
|
39
|
+
className: "dropdown__chip--selected"
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
const FunctionalStateKeys = {
|
|
44
|
+
previewList: "previewList",
|
|
45
|
+
previewChips: "previewChips"
|
|
46
|
+
};
|
|
1
47
|
const DisplayNames = {
|
|
2
48
|
root: {
|
|
3
|
-
elementDisplayName: "
|
|
49
|
+
elementDisplayName: "Dropdown",
|
|
4
50
|
data: {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
tooltip: "Tooltip",
|
|
51
|
+
options: "Options",
|
|
52
|
+
optionLabel: "Label",
|
|
53
|
+
optionValue: "Value",
|
|
54
|
+
value: "Selected value",
|
|
55
|
+
values: "Selected values",
|
|
56
|
+
defaultValue: "Default value",
|
|
57
|
+
defaultValues: "Default values",
|
|
58
|
+
inputValue: "Search query",
|
|
59
|
+
open: "Open",
|
|
60
|
+
isDisabled: "Disabled",
|
|
61
|
+
placeholder: "Placeholder",
|
|
62
|
+
searchable: "Allow search",
|
|
63
|
+
multiple: "Allow multiple selection",
|
|
64
|
+
clearable: "Show clear button",
|
|
65
|
+
autoHighlight: "Highlight first match",
|
|
66
|
+
openOnInputClick: "Open list on click",
|
|
67
|
+
inline: "Show options inline",
|
|
68
|
+
grid: "Show options in a grid",
|
|
69
|
+
columns: "Columns",
|
|
70
|
+
limit: "Max visible options",
|
|
26
71
|
label: "Label",
|
|
27
|
-
description: "Helper text",
|
|
28
|
-
minDate: "Earliest date",
|
|
29
|
-
maxDate: "Latest date",
|
|
30
|
-
unavailableDates: "Unavailable dates",
|
|
31
|
-
unavailableFrom: "From",
|
|
32
|
-
unavailableTo: "To",
|
|
33
|
-
allowPastDates: "Allow past dates",
|
|
34
|
-
allowFutureDates: "Allow future dates",
|
|
35
72
|
required: "Required",
|
|
36
73
|
readOnly: "Read only",
|
|
37
|
-
|
|
38
|
-
|
|
74
|
+
description: "Helper text",
|
|
75
|
+
triggerMode: {
|
|
76
|
+
displayName: "Apply filter",
|
|
77
|
+
options: {
|
|
78
|
+
onSelection: "On selection",
|
|
79
|
+
onApply: "On button click"
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
applyButtonLabel: "Apply button text"
|
|
39
83
|
},
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
84
|
+
cssCustomProperties: {
|
|
85
|
+
width: "Width",
|
|
86
|
+
maxWidth: "Max width",
|
|
87
|
+
backgroundColor: "Background",
|
|
88
|
+
borderColor: "Border color",
|
|
89
|
+
borderWidth: "Border width",
|
|
90
|
+
paddingTop: "Padding top",
|
|
91
|
+
paddingBottom: "Padding bottom",
|
|
92
|
+
paddingInlineStart: "Padding start",
|
|
93
|
+
paddingInlineEnd: "Padding end",
|
|
94
|
+
gap: "Spacing",
|
|
95
|
+
boxShadow: "Shadow",
|
|
96
|
+
textAlign: "Value alignment",
|
|
97
|
+
font: "Value font",
|
|
98
|
+
textColor: "Value color",
|
|
99
|
+
labelFont: "Label font",
|
|
100
|
+
labelColor: "Label color",
|
|
101
|
+
helperFont: "Helper text font",
|
|
102
|
+
helperColor: "Helper text color",
|
|
103
|
+
optionTextColor: "Option text color",
|
|
104
|
+
optionHoverBackgroundColor: "Option hover background",
|
|
105
|
+
placeholderColor: "Placeholder color",
|
|
106
|
+
chipBackgroundColor: "Chip background",
|
|
107
|
+
chipTextColor: "Chip text color"
|
|
45
108
|
},
|
|
46
109
|
elements: {
|
|
47
110
|
label: "Label",
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
111
|
+
input: "Input",
|
|
112
|
+
trigger: "Button",
|
|
113
|
+
clearButton: "Clear button",
|
|
114
|
+
list: "List",
|
|
115
|
+
option: "Option",
|
|
116
|
+
chip: "Chip"
|
|
117
|
+
},
|
|
118
|
+
displayGroups: {
|
|
119
|
+
optionsGroup: "Manage options",
|
|
120
|
+
sizeGroup: "Size",
|
|
121
|
+
backgroundGroup: "Background",
|
|
122
|
+
cornersGroup: "Corner radius",
|
|
123
|
+
paddingGroup: "Padding"
|
|
55
124
|
}
|
|
56
125
|
}
|
|
57
126
|
};
|
|
58
127
|
const defaultValues = {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
128
|
+
placeholder: "Select a value",
|
|
129
|
+
inputValue: "",
|
|
130
|
+
open: false,
|
|
131
|
+
isDisabled: false,
|
|
132
|
+
searchable: false,
|
|
133
|
+
multiple: false,
|
|
134
|
+
clearable: false,
|
|
135
|
+
autoHighlight: false,
|
|
136
|
+
openOnInputClick: true,
|
|
137
|
+
inline: false,
|
|
138
|
+
grid: false,
|
|
139
|
+
columns: 2,
|
|
140
|
+
limit: -1,
|
|
62
141
|
label: "",
|
|
63
|
-
description: "",
|
|
64
|
-
allowPastDates: true,
|
|
65
|
-
allowFutureDates: true,
|
|
66
142
|
required: false,
|
|
67
143
|
readOnly: false,
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
SelectionModeValues2["Range"] = "range";
|
|
74
|
-
return SelectionModeValues2;
|
|
75
|
-
})(SelectionModeValues || {});
|
|
76
|
-
var GranularityValues = /* @__PURE__ */ ((GranularityValues2) => {
|
|
77
|
-
GranularityValues2["Day"] = "day";
|
|
78
|
-
GranularityValues2["Hour"] = "hour";
|
|
79
|
-
GranularityValues2["Minute"] = "minute";
|
|
80
|
-
return GranularityValues2;
|
|
81
|
-
})(GranularityValues || {});
|
|
82
|
-
const DesignStates = {
|
|
83
|
-
root: {
|
|
84
|
-
hover: {
|
|
85
|
-
displayName: DisplayNames.root.designStates.hover,
|
|
86
|
-
className: "datePicker--hover"
|
|
87
|
-
},
|
|
88
|
-
focus: {
|
|
89
|
-
displayName: DisplayNames.root.designStates.focus,
|
|
90
|
-
className: "datePicker--focus"
|
|
91
|
-
},
|
|
92
|
-
disabled: {
|
|
93
|
-
displayName: DisplayNames.root.designStates.disabled,
|
|
94
|
-
className: "datePicker--disabled"
|
|
95
|
-
}
|
|
96
|
-
},
|
|
97
|
-
dateInput: {
|
|
98
|
-
hover: {
|
|
99
|
-
displayName: DisplayNames.root.designStates.hover,
|
|
100
|
-
className: "datePicker__group--hover"
|
|
101
|
-
},
|
|
102
|
-
focus: {
|
|
103
|
-
displayName: DisplayNames.root.designStates.focus,
|
|
104
|
-
className: "datePicker__group--focus"
|
|
105
|
-
},
|
|
106
|
-
disabled: {
|
|
107
|
-
displayName: DisplayNames.root.designStates.disabled,
|
|
108
|
-
className: "datePicker__group--disabled"
|
|
109
|
-
}
|
|
110
|
-
},
|
|
111
|
-
calendarButton: {
|
|
112
|
-
hover: {
|
|
113
|
-
displayName: DisplayNames.root.designStates.hover,
|
|
114
|
-
className: "datePicker__calendar-button--hover"
|
|
115
|
-
},
|
|
116
|
-
selected: {
|
|
117
|
-
displayName: DisplayNames.root.designStates.selected,
|
|
118
|
-
className: "datePicker__calendar-button--selected"
|
|
119
|
-
}
|
|
120
|
-
},
|
|
121
|
-
calendarDay: {
|
|
122
|
-
hover: {
|
|
123
|
-
displayName: DisplayNames.root.designStates.hover,
|
|
124
|
-
className: "datePicker__day--hover"
|
|
125
|
-
},
|
|
126
|
-
selected: {
|
|
127
|
-
displayName: DisplayNames.root.designStates.selected,
|
|
128
|
-
className: "datePicker__day--selected"
|
|
129
|
-
},
|
|
130
|
-
disabled: {
|
|
131
|
-
displayName: DisplayNames.root.designStates.disabled,
|
|
132
|
-
className: "datePicker__day--disabled"
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
};
|
|
136
|
-
const PREVIEW_CALENDAR_OPEN = "previewCalendarOpen";
|
|
137
|
-
const EMPTY_VALUE = "";
|
|
138
|
-
const ARIA_LABEL_NAMESPACE = "ariaLabels";
|
|
139
|
-
const AriaLabels = {
|
|
140
|
-
root: { key: "datePicker_aria_label", default: "Date picker" },
|
|
141
|
-
clear: { key: "datePicker_clear_button", default: "Clear" },
|
|
142
|
-
openCalendar: { key: "datePicker_open_calendar", default: "Open calendar" }
|
|
144
|
+
name: "",
|
|
145
|
+
description: "",
|
|
146
|
+
triggerMode: "onSelection",
|
|
147
|
+
applyButtonLabel: "Apply",
|
|
148
|
+
noResultsText: "No results"
|
|
143
149
|
};
|
|
150
|
+
var TriggerModeValues = /* @__PURE__ */ ((TriggerModeValues2) => {
|
|
151
|
+
TriggerModeValues2["OnSelection"] = "onSelection";
|
|
152
|
+
TriggerModeValues2["OnApply"] = "onApply";
|
|
153
|
+
return TriggerModeValues2;
|
|
154
|
+
})(TriggerModeValues || {});
|
|
155
|
+
const ALL_VALUE = "";
|
|
144
156
|
const TestIds = {
|
|
145
|
-
root: "
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
errorMessage: "
|
|
154
|
-
requiredIndicator: "datepicker-required-indicator"
|
|
157
|
+
root: "dropdown-root",
|
|
158
|
+
label: "dropdown-label",
|
|
159
|
+
requiredIndicator: "dropdown-required-indicator",
|
|
160
|
+
trigger: "dropdown-trigger",
|
|
161
|
+
listbox: "dropdown-listbox",
|
|
162
|
+
clear: "dropdown-clear",
|
|
163
|
+
applyButton: "dropdown-apply-button",
|
|
164
|
+
description: "dropdown-description",
|
|
165
|
+
errorMessage: "dropdown-error-message"
|
|
155
166
|
};
|
|
156
167
|
const selectors = {
|
|
157
|
-
root: "
|
|
158
|
-
label: "
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
168
|
+
root: "dropdown",
|
|
169
|
+
label: "dropdown-label",
|
|
170
|
+
input: "dropdown-input",
|
|
171
|
+
trigger: "dropdown-trigger",
|
|
172
|
+
clear: "dropdown-clear",
|
|
173
|
+
list: "dropdown-list",
|
|
174
|
+
option: "dropdown-option",
|
|
175
|
+
chip: "dropdown-chip"
|
|
176
|
+
};
|
|
177
|
+
const semanticClassNames = {
|
|
178
|
+
root: "dropdown",
|
|
179
|
+
label: "dropdown__label",
|
|
180
|
+
requiredIndicator: "dropdown__required-indicator",
|
|
181
|
+
input: "dropdown__input",
|
|
182
|
+
trigger: "dropdown__trigger",
|
|
183
|
+
clear: "dropdown__clear",
|
|
184
|
+
listbox: "dropdown__listbox",
|
|
185
|
+
option: "dropdown__option",
|
|
186
|
+
chips: "dropdown__chips",
|
|
187
|
+
chip: "dropdown__chip",
|
|
188
|
+
applyButton: "dropdown__apply-button",
|
|
189
|
+
errorMessage: "dropdown__error-message"
|
|
190
|
+
};
|
|
191
|
+
const ARIA_LABEL_NAMESPACE = "ariaLabels";
|
|
192
|
+
const AriaLabels = {
|
|
193
|
+
root: { key: "Dropdown_AriaLabel", default: "Dropdown" },
|
|
194
|
+
clear: { key: "Dropdown_AriaLabel_Clear", default: "Clear" },
|
|
195
|
+
removeItem: { key: "Dropdown_AriaLabel_RemoveItem", default: "Remove" }
|
|
167
196
|
};
|
|
168
|
-
const VALUE_MISSING_MESSAGE = "
|
|
197
|
+
const VALUE_MISSING_MESSAGE = "Please select an option.";
|
|
169
198
|
export {
|
|
170
|
-
|
|
199
|
+
ALL_VALUE as A,
|
|
171
200
|
DesignStates as D,
|
|
172
|
-
|
|
173
|
-
GranularityValues as G,
|
|
174
|
-
PREVIEW_CALENDAR_OPEN as P,
|
|
175
|
-
SelectionModeValues as S,
|
|
201
|
+
FunctionalStateKeys as F,
|
|
176
202
|
TestIds as T,
|
|
177
203
|
VALUE_MISSING_MESSAGE as V,
|
|
178
|
-
|
|
179
|
-
|
|
204
|
+
semanticClassNames as a,
|
|
205
|
+
TriggerModeValues as b,
|
|
206
|
+
ARIA_LABEL_NAMESPACE as c,
|
|
180
207
|
defaultValues as d,
|
|
208
|
+
AriaLabels as e,
|
|
209
|
+
DisplayNames as f,
|
|
181
210
|
selectors as s
|
|
182
211
|
};
|
|
@@ -1,69 +1,182 @@
|
|
|
1
|
-
const manifestClasses = {
|
|
2
|
-
root: "collapsible-text",
|
|
3
|
-
text: "text",
|
|
4
|
-
expandControl: "expand-control"
|
|
5
|
-
};
|
|
6
1
|
const DisplayNames = {
|
|
7
2
|
root: {
|
|
8
|
-
elementDisplayName: "
|
|
9
|
-
actions: {
|
|
10
|
-
settings: "Settings",
|
|
11
|
-
design: "Design"
|
|
12
|
-
},
|
|
3
|
+
elementDisplayName: "Date Picker",
|
|
13
4
|
data: {
|
|
14
|
-
|
|
15
|
-
|
|
5
|
+
value: "Selected date",
|
|
6
|
+
endValue: "Selected end date",
|
|
7
|
+
defaultValue: "Default date",
|
|
8
|
+
defaultEndValue: "Default end date",
|
|
9
|
+
onEndChange: "On End Change",
|
|
10
|
+
selectionMode: {
|
|
11
|
+
displayName: "Selection",
|
|
12
|
+
options: {
|
|
13
|
+
single: "Single date",
|
|
14
|
+
range: "Date range"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
granularity: {
|
|
18
|
+
displayName: "Time precision",
|
|
16
19
|
options: {
|
|
17
|
-
|
|
18
|
-
|
|
20
|
+
day: "Date only",
|
|
21
|
+
hour: "Date and hour",
|
|
22
|
+
minute: "Date and time"
|
|
19
23
|
}
|
|
20
24
|
},
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
+
tooltip: "Tooltip",
|
|
26
|
+
label: "Label",
|
|
27
|
+
description: "Helper text",
|
|
28
|
+
minDate: "Earliest date",
|
|
29
|
+
maxDate: "Latest date",
|
|
30
|
+
unavailableDates: "Unavailable dates",
|
|
31
|
+
unavailableFrom: "From",
|
|
32
|
+
unavailableTo: "To",
|
|
33
|
+
allowPastDates: "Allow past dates",
|
|
34
|
+
allowFutureDates: "Allow future dates",
|
|
35
|
+
required: "Required",
|
|
36
|
+
readOnly: "Read only",
|
|
37
|
+
disabled: "Disabled",
|
|
38
|
+
clearable: "Show clear button"
|
|
25
39
|
},
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
40
|
+
designStates: {
|
|
41
|
+
hover: "Hover",
|
|
42
|
+
focus: "Focus",
|
|
43
|
+
disabled: "Disabled",
|
|
44
|
+
selected: "Selected"
|
|
29
45
|
},
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
46
|
+
elements: {
|
|
47
|
+
label: "Label",
|
|
48
|
+
description: "Helper text",
|
|
49
|
+
dateInput: "Date input",
|
|
50
|
+
calendarButton: "Calendar button",
|
|
51
|
+
popover: "Popover",
|
|
52
|
+
calendar: "Calendar",
|
|
53
|
+
calendarDay: "Calendar day",
|
|
54
|
+
today: "Today"
|
|
39
55
|
}
|
|
40
56
|
}
|
|
41
57
|
};
|
|
42
58
|
const defaultValues = {
|
|
43
|
-
|
|
59
|
+
selectionMode: "single",
|
|
60
|
+
granularity: "day",
|
|
61
|
+
tooltip: "",
|
|
62
|
+
label: "",
|
|
63
|
+
description: "",
|
|
64
|
+
allowPastDates: true,
|
|
65
|
+
allowFutureDates: true,
|
|
66
|
+
required: false,
|
|
67
|
+
readOnly: false,
|
|
68
|
+
disabled: false,
|
|
69
|
+
clearable: false
|
|
70
|
+
};
|
|
71
|
+
var SelectionModeValues = /* @__PURE__ */ ((SelectionModeValues2) => {
|
|
72
|
+
SelectionModeValues2["Single"] = "single";
|
|
73
|
+
SelectionModeValues2["Range"] = "range";
|
|
74
|
+
return SelectionModeValues2;
|
|
75
|
+
})(SelectionModeValues || {});
|
|
76
|
+
var GranularityValues = /* @__PURE__ */ ((GranularityValues2) => {
|
|
77
|
+
GranularityValues2["Day"] = "day";
|
|
78
|
+
GranularityValues2["Hour"] = "hour";
|
|
79
|
+
GranularityValues2["Minute"] = "minute";
|
|
80
|
+
return GranularityValues2;
|
|
81
|
+
})(GranularityValues || {});
|
|
82
|
+
const DesignStates = {
|
|
83
|
+
root: {
|
|
84
|
+
hover: {
|
|
85
|
+
displayName: DisplayNames.root.designStates.hover,
|
|
86
|
+
className: "datePicker--hover"
|
|
87
|
+
},
|
|
88
|
+
focus: {
|
|
89
|
+
displayName: DisplayNames.root.designStates.focus,
|
|
90
|
+
className: "datePicker--focus"
|
|
91
|
+
},
|
|
92
|
+
disabled: {
|
|
93
|
+
displayName: DisplayNames.root.designStates.disabled,
|
|
94
|
+
className: "datePicker--disabled"
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
dateInput: {
|
|
98
|
+
hover: {
|
|
99
|
+
displayName: DisplayNames.root.designStates.hover,
|
|
100
|
+
className: "datePicker__group--hover"
|
|
101
|
+
},
|
|
102
|
+
focus: {
|
|
103
|
+
displayName: DisplayNames.root.designStates.focus,
|
|
104
|
+
className: "datePicker__group--focus"
|
|
105
|
+
},
|
|
106
|
+
disabled: {
|
|
107
|
+
displayName: DisplayNames.root.designStates.disabled,
|
|
108
|
+
className: "datePicker__group--disabled"
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
calendarButton: {
|
|
112
|
+
hover: {
|
|
113
|
+
displayName: DisplayNames.root.designStates.hover,
|
|
114
|
+
className: "datePicker__calendar-button--hover"
|
|
115
|
+
},
|
|
116
|
+
selected: {
|
|
117
|
+
displayName: DisplayNames.root.designStates.selected,
|
|
118
|
+
className: "datePicker__calendar-button--selected"
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
calendarDay: {
|
|
122
|
+
hover: {
|
|
123
|
+
displayName: DisplayNames.root.designStates.hover,
|
|
124
|
+
className: "datePicker__day--hover"
|
|
125
|
+
},
|
|
126
|
+
selected: {
|
|
127
|
+
displayName: DisplayNames.root.designStates.selected,
|
|
128
|
+
className: "datePicker__day--selected"
|
|
129
|
+
},
|
|
130
|
+
disabled: {
|
|
131
|
+
displayName: DisplayNames.root.designStates.disabled,
|
|
132
|
+
className: "datePicker__day--disabled"
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
};
|
|
136
|
+
const PREVIEW_CALENDAR_OPEN = "previewCalendarOpen";
|
|
137
|
+
const EMPTY_VALUE = "";
|
|
138
|
+
const ARIA_LABEL_NAMESPACE = "ariaLabels";
|
|
139
|
+
const AriaLabels = {
|
|
140
|
+
root: { key: "datePicker_aria_label", default: "Date picker" },
|
|
141
|
+
clear: { key: "datePicker_clear_button", default: "Clear" },
|
|
142
|
+
openCalendar: { key: "datePicker_open_calendar", default: "Open calendar" }
|
|
44
143
|
};
|
|
45
|
-
var ExpandModeValues = /* @__PURE__ */ ((ExpandModeValues2) => {
|
|
46
|
-
ExpandModeValues2["Link"] = "link";
|
|
47
|
-
ExpandModeValues2["Expand"] = "button";
|
|
48
|
-
return ExpandModeValues2;
|
|
49
|
-
})(ExpandModeValues || {});
|
|
50
144
|
const TestIds = {
|
|
51
|
-
root: "
|
|
52
|
-
|
|
145
|
+
root: "datepicker-root",
|
|
146
|
+
group: "datepicker-group",
|
|
147
|
+
field: "datepicker-field",
|
|
148
|
+
endField: "datepicker-end-field",
|
|
149
|
+
calendarButton: "datepicker-calendar-button",
|
|
150
|
+
clearButton: "datepicker-clear-button",
|
|
151
|
+
calendar: "datepicker-calendar",
|
|
152
|
+
tooltipButton: "datepicker-tooltip-button",
|
|
153
|
+
errorMessage: "datepicker-error-message",
|
|
154
|
+
requiredIndicator: "datepicker-required-indicator"
|
|
53
155
|
};
|
|
54
|
-
const
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
156
|
+
const selectors = {
|
|
157
|
+
root: "datePicker",
|
|
158
|
+
label: "datePicker__label",
|
|
159
|
+
description: "datePicker__description",
|
|
160
|
+
requiredIndicator: "datePicker__required-indicator",
|
|
161
|
+
group: "datePicker__group",
|
|
162
|
+
calendarButton: "datePicker__calendar-button",
|
|
163
|
+
popover: "datePicker__popover",
|
|
164
|
+
calendar: "datePicker__calendar",
|
|
165
|
+
day: "datePicker__day",
|
|
166
|
+
errorMessage: "datePicker__error-message"
|
|
59
167
|
};
|
|
168
|
+
const VALUE_MISSING_MESSAGE = "This field is required";
|
|
60
169
|
export {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
170
|
+
ARIA_LABEL_NAMESPACE as A,
|
|
171
|
+
DesignStates as D,
|
|
172
|
+
EMPTY_VALUE as E,
|
|
173
|
+
GranularityValues as G,
|
|
174
|
+
PREVIEW_CALENDAR_OPEN as P,
|
|
175
|
+
SelectionModeValues as S,
|
|
65
176
|
TestIds as T,
|
|
177
|
+
VALUE_MISSING_MESSAGE as V,
|
|
178
|
+
AriaLabels as a,
|
|
179
|
+
DisplayNames as b,
|
|
66
180
|
defaultValues as d,
|
|
67
|
-
|
|
68
|
-
semanticClassNames as s
|
|
181
|
+
selectors as s
|
|
69
182
|
};
|