@tylertech/forge 3.8.1 → 3.9.0-dev.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/README.md +23 -0
- package/custom-elements.json +1263 -876
- package/dist/lib.js +18 -18
- package/dist/lib.js.map +3 -3
- package/dist/toolbar/forge-toolbar.css +1 -0
- package/dist/vscode.css-custom-data.json +37 -37
- package/dist/vscode.html-custom-data.json +138 -78
- package/esm/calendar/calendar-adapter.d.ts +24 -0
- package/esm/calendar/calendar-adapter.js +67 -1
- package/esm/calendar/calendar-constants.d.ts +34 -0
- package/esm/calendar/calendar-constants.js +33 -0
- package/esm/calendar/calendar-core.d.ts +60 -0
- package/esm/calendar/calendar-core.js +220 -2
- package/esm/calendar/calendar-dom-utils.d.ts +6 -0
- package/esm/calendar/calendar-dom-utils.js +36 -0
- package/esm/calendar/calendar.d.ts +40 -1
- package/esm/calendar/calendar.js +80 -2
- package/esm/calendar/core/calendar-base.d.ts +3 -0
- package/esm/calendar/core/date-range.d.ts +2 -0
- package/esm/calendar/core/date-range.js +1 -0
- package/esm/date-picker/base/base-date-picker-constants.d.ts +3 -0
- package/esm/date-picker/base/base-date-picker-constants.js +3 -0
- package/esm/date-picker/base/base-date-picker-core.d.ts +15 -0
- package/esm/date-picker/base/base-date-picker-core.js +30 -0
- package/esm/date-picker/base/base-date-picker.d.ts +12 -0
- package/esm/date-picker/base/base-date-picker.js +24 -0
- package/esm/date-picker/date-picker-core.d.ts +3 -0
- package/esm/date-picker/date-picker-core.js +20 -0
- package/esm/date-range-picker/date-range-picker-constants.d.ts +3 -0
- package/esm/date-range-picker/date-range-picker-constants.js +1 -0
- package/esm/date-range-picker/date-range-picker-core.d.ts +3 -0
- package/esm/date-range-picker/date-range-picker-core.js +62 -2
- package/esm/date-range-picker/date-range-picker.d.ts +3 -0
- package/esm/date-range-picker/date-range-picker.js +3 -0
- package/esm/split-view/split-view-panel/split-view-panel.js +1 -1
- package/esm/toolbar/toolbar.js +1 -1
- package/package.json +2 -2
- package/sass/calendar/_mixins.scss +3 -2
- package/sass/toolbar/_core.scss +5 -0
- package/sass/toolbar/toolbar.scss +4 -0
|
@@ -2,36 +2,6 @@
|
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/microsoft/vscode-css-languageservice/main/docs/customData.schema.json",
|
|
3
3
|
"version": 1.1,
|
|
4
4
|
"properties": [
|
|
5
|
-
{
|
|
6
|
-
"name": "--forge-avatar-background",
|
|
7
|
-
"description": "The background color of the avatar.",
|
|
8
|
-
"values": [{ "name": "string" }]
|
|
9
|
-
},
|
|
10
|
-
{
|
|
11
|
-
"name": "--forge-avatar-shape",
|
|
12
|
-
"description": "The border radius of the avatar, defaults to 50%.",
|
|
13
|
-
"values": [{ "name": "number" }]
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
"name": "--forge-avatar-color",
|
|
17
|
-
"description": "The text color of the avatar.",
|
|
18
|
-
"values": [{ "name": "color" }]
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
"name": "--forge-avatar-size",
|
|
22
|
-
"description": "The height and width of the avatar.",
|
|
23
|
-
"values": [{ "name": "number" }]
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
"name": "--forge-avatar-transition-duration",
|
|
27
|
-
"description": "The transition duration for animations.",
|
|
28
|
-
"values": [{ "name": "number" }]
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
"name": "--forge-avatar-transition-timing",
|
|
32
|
-
"description": "The transition timing function for animations.",
|
|
33
|
-
"values": [{ "name": "string" }]
|
|
34
|
-
},
|
|
35
5
|
{
|
|
36
6
|
"name": "--forge-backdrop-background",
|
|
37
7
|
"description": "The backdrop background color.",
|
|
@@ -112,6 +82,36 @@
|
|
|
112
82
|
"description": "The spacing between the content within the badge.",
|
|
113
83
|
"values": []
|
|
114
84
|
},
|
|
85
|
+
{
|
|
86
|
+
"name": "--forge-avatar-background",
|
|
87
|
+
"description": "The background color of the avatar.",
|
|
88
|
+
"values": [{ "name": "string" }]
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"name": "--forge-avatar-shape",
|
|
92
|
+
"description": "The border radius of the avatar, defaults to 50%.",
|
|
93
|
+
"values": [{ "name": "number" }]
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"name": "--forge-avatar-color",
|
|
97
|
+
"description": "The text color of the avatar.",
|
|
98
|
+
"values": [{ "name": "color" }]
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"name": "--forge-avatar-size",
|
|
102
|
+
"description": "The height and width of the avatar.",
|
|
103
|
+
"values": [{ "name": "number" }]
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"name": "--forge-avatar-transition-duration",
|
|
107
|
+
"description": "The transition duration for animations.",
|
|
108
|
+
"values": [{ "name": "number" }]
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"name": "--forge-avatar-transition-timing",
|
|
112
|
+
"description": "The transition timing function for animations.",
|
|
113
|
+
"values": [{ "name": "string" }]
|
|
114
|
+
},
|
|
115
115
|
{
|
|
116
116
|
"name": "--forge-banner-background",
|
|
117
117
|
"description": "The background color of the banner.",
|
|
@@ -4002,6 +4002,11 @@
|
|
|
4002
4002
|
"description": "The transition timing for all animations on the group.",
|
|
4003
4003
|
"values": []
|
|
4004
4004
|
},
|
|
4005
|
+
{
|
|
4006
|
+
"name": "--forge-chip-set-spacing",
|
|
4007
|
+
"description": "The spacing between chips.",
|
|
4008
|
+
"values": []
|
|
4009
|
+
},
|
|
4005
4010
|
{
|
|
4006
4011
|
"name": "--forge-chip-background",
|
|
4007
4012
|
"description": "The background color of the chip.",
|
|
@@ -4242,11 +4247,6 @@
|
|
|
4242
4247
|
"description": "The delay of the checkmark transition in chips.",
|
|
4243
4248
|
"values": []
|
|
4244
4249
|
},
|
|
4245
|
-
{
|
|
4246
|
-
"name": "--forge-chip-set-spacing",
|
|
4247
|
-
"description": "The spacing between chips.",
|
|
4248
|
-
"values": []
|
|
4249
|
-
},
|
|
4250
4250
|
{
|
|
4251
4251
|
"name": "--forge-drawer-width",
|
|
4252
4252
|
"description": "The width of the drawer.",
|
|
@@ -5404,11 +5404,11 @@
|
|
|
5404
5404
|
}
|
|
5405
5405
|
],
|
|
5406
5406
|
"pseudoElements": [
|
|
5407
|
-
{ "name": "::part(root)", "description": "The root container element." },
|
|
5408
5407
|
{
|
|
5409
5408
|
"name": "::part(root)",
|
|
5410
5409
|
"description": "The root element of the backdrop."
|
|
5411
5410
|
},
|
|
5411
|
+
{ "name": "::part(root)", "description": "The root container element." },
|
|
5412
5412
|
{
|
|
5413
5413
|
"name": "::part(root)",
|
|
5414
5414
|
"description": "The root element of the bottom sheet."
|
|
@@ -5863,6 +5863,7 @@
|
|
|
5863
5863
|
"description": "The root container element for the group."
|
|
5864
5864
|
},
|
|
5865
5865
|
{ "name": "::part(root)", "description": "The component's root element." },
|
|
5866
|
+
{ "name": "::part(root)", "description": "The component's root element." },
|
|
5866
5867
|
{
|
|
5867
5868
|
"name": "::part(trigger)",
|
|
5868
5869
|
"description": "The trigger element of the chip."
|
|
@@ -5876,7 +5877,6 @@
|
|
|
5876
5877
|
"description": "The state layer surface."
|
|
5877
5878
|
},
|
|
5878
5879
|
{ "name": "::part(root)", "description": "The component's root element." },
|
|
5879
|
-
{ "name": "::part(root)", "description": "The component's root element." },
|
|
5880
5880
|
{
|
|
5881
5881
|
"name": "::part(content)",
|
|
5882
5882
|
"description": "The content container element."
|
|
@@ -14,6 +14,29 @@
|
|
|
14
14
|
],
|
|
15
15
|
"references": []
|
|
16
16
|
},
|
|
17
|
+
{
|
|
18
|
+
"name": "forge-backdrop",
|
|
19
|
+
"description": "\n---\n\n\n### **Methods:**\n - **show(): _void_** - Immediately shows the backdrop by setting the `visibility` to `true` without animations.\n- **hide(): _void_** - Immediately hides the backdrop by setting the `visibility` to `false` without animations.\n- **fadeIn(): _Promise<void>_** - Sets the `visibility` to `true` and animates in.\n- **fadeOut(): _Promise<void>_** - Sets the `visibility` to `false` and animates out.\n\n### **CSS Properties:**\n - **--forge-backdrop-background** - The backdrop background color. _(default: undefined)_\n- **--forge-backdrop-opacity** - The backdrop opacity. _(default: undefined)_\n- **--forge-backdrop-z-index** - The backdrop z-index. _(default: undefined)_\n- **--forge-backdrop-enter-animation-duration** - The animation duration for the enter animation. _(default: undefined)_\n- **--forge-backdrop-enter-animation-easing** - The animation easing for the enter animation. _(default: undefined)_\n- **--forge-backdrop-exit-animation-duration** - The animation duration for the exit animation. _(default: undefined)_\n- **--forge-backdrop-exit-animation-easing** - The animation easing for the exit animation. _(default: undefined)_\n\n### **CSS Parts:**\n - **root** - The root element of the backdrop.",
|
|
20
|
+
"attributes": [
|
|
21
|
+
{
|
|
22
|
+
"name": "visible",
|
|
23
|
+
"description": "Whether the backdrop is visible.",
|
|
24
|
+
"values": []
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"name": "fixed",
|
|
28
|
+
"description": "Whether the backdrop uses \"fixed\" or \"relative\" positioning.",
|
|
29
|
+
"values": []
|
|
30
|
+
}
|
|
31
|
+
],
|
|
32
|
+
"references": []
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"name": "forge-badge",
|
|
36
|
+
"description": "\n---\n\n\n### **Slots:**\n - _default_ - Default content placed inside the badge.\n- **start** - Content placed before the default content.\n- **end** - Content placed after the default content.\n\n### **CSS Properties:**\n - **--forge-badge-background** - The background color. _(default: undefined)_\n- **--forge-badge-color** - The text color. _(default: undefined)_\n- **--forge-badge-shape** - The shape radius. _(default: undefined)_\n- **--forge-badge-padding-inline** - The inline padding. _(default: undefined)_\n- **--forge-badge-padding-block** - The block padding. _(default: undefined)_\n- **--forge-badge-border-width** - The border width. _(default: undefined)_\n- **--forge-badge-border-color** - The border color. _(default: undefined)_\n- **--forge-badge-border-style** - The border style. _(default: undefined)_\n- **--forge-badge-gap** - The spacing between the content within the badge. _(default: undefined)_",
|
|
37
|
+
"attributes": [],
|
|
38
|
+
"references": []
|
|
39
|
+
},
|
|
17
40
|
{
|
|
18
41
|
"name": "forge-autocomplete",
|
|
19
42
|
"description": "\n---\n\n\n### **Events:**\n - **forge-autocomplete-change** - Fired when the value changes.\n- **forge-autocomplete-select** - Fired when an option is selected. Only applies when in \"stateless\" `mode`.\n- **forge-autocomplete-scrolled-bottom** - Fired when the dropdown is scrolled to the bottom. Only applies when `observe-scroll` is enabled.\n\n### **Methods:**\n - **appendOptions(options: _IAutocompleteOption[] | IAutocompleteOptionGroup[]_): _void_** - Adds options to the dropdown while it is open. Has no effect if the dropdown is closed.\n- **openDropdown(): _void_** - Opens the dropdown.\n- **closeDropdown(): _void_** - Closes the dropdown.\n- **forceFilter(opts: _IAutocompleteForceFilterOptions_): _void_** - Forces the filter callback to be executed to update the current selection state with new options.",
|
|
@@ -148,29 +171,6 @@
|
|
|
148
171
|
],
|
|
149
172
|
"references": []
|
|
150
173
|
},
|
|
151
|
-
{
|
|
152
|
-
"name": "forge-backdrop",
|
|
153
|
-
"description": "\n---\n\n\n### **Methods:**\n - **show(): _void_** - Immediately shows the backdrop by setting the `visibility` to `true` without animations.\n- **hide(): _void_** - Immediately hides the backdrop by setting the `visibility` to `false` without animations.\n- **fadeIn(): _Promise<void>_** - Sets the `visibility` to `true` and animates in.\n- **fadeOut(): _Promise<void>_** - Sets the `visibility` to `false` and animates out.\n\n### **CSS Properties:**\n - **--forge-backdrop-background** - The backdrop background color. _(default: undefined)_\n- **--forge-backdrop-opacity** - The backdrop opacity. _(default: undefined)_\n- **--forge-backdrop-z-index** - The backdrop z-index. _(default: undefined)_\n- **--forge-backdrop-enter-animation-duration** - The animation duration for the enter animation. _(default: undefined)_\n- **--forge-backdrop-enter-animation-easing** - The animation easing for the enter animation. _(default: undefined)_\n- **--forge-backdrop-exit-animation-duration** - The animation duration for the exit animation. _(default: undefined)_\n- **--forge-backdrop-exit-animation-easing** - The animation easing for the exit animation. _(default: undefined)_\n\n### **CSS Parts:**\n - **root** - The root element of the backdrop.",
|
|
154
|
-
"attributes": [
|
|
155
|
-
{
|
|
156
|
-
"name": "visible",
|
|
157
|
-
"description": "Whether the backdrop is visible.",
|
|
158
|
-
"values": []
|
|
159
|
-
},
|
|
160
|
-
{
|
|
161
|
-
"name": "fixed",
|
|
162
|
-
"description": "Whether the backdrop uses \"fixed\" or \"relative\" positioning.",
|
|
163
|
-
"values": []
|
|
164
|
-
}
|
|
165
|
-
],
|
|
166
|
-
"references": []
|
|
167
|
-
},
|
|
168
|
-
{
|
|
169
|
-
"name": "forge-badge",
|
|
170
|
-
"description": "\n---\n\n\n### **Slots:**\n - _default_ - Default content placed inside the badge.\n- **start** - Content placed before the default content.\n- **end** - Content placed after the default content.\n\n### **CSS Properties:**\n - **--forge-badge-background** - The background color. _(default: undefined)_\n- **--forge-badge-color** - The text color. _(default: undefined)_\n- **--forge-badge-shape** - The shape radius. _(default: undefined)_\n- **--forge-badge-padding-inline** - The inline padding. _(default: undefined)_\n- **--forge-badge-padding-block** - The block padding. _(default: undefined)_\n- **--forge-badge-border-width** - The border width. _(default: undefined)_\n- **--forge-badge-border-color** - The border color. _(default: undefined)_\n- **--forge-badge-border-style** - The border style. _(default: undefined)_\n- **--forge-badge-gap** - The spacing between the content within the badge. _(default: undefined)_",
|
|
171
|
-
"attributes": [],
|
|
172
|
-
"references": []
|
|
173
|
-
},
|
|
174
174
|
{
|
|
175
175
|
"name": "forge-banner",
|
|
176
176
|
"description": "Banners are used to inform users of important information, such as errors, warnings, or success messages.\n---\n\n\n### **Events:**\n - **forge-banner-before-dismiss** - Dispatched before the banner is dismissed. Cancelable to prevent dismissal.\n- **forge-banner-dismissed** - Dispatched when the banner is dismissed.\n\n### **Slots:**\n - _default_ - The content of the banner.\n- **icon** - The icon to display.\n- **button** - The optional button to display.\n\n### **CSS Properties:**\n - **--forge-banner-background** - The background color of the banner. _(default: undefined)_\n- **--forge-banner-color** - The text color of the banner. _(default: undefined)_\n- **--forge-banner-icon-color** - The color of the icon. _(default: undefined)_\n- **--forge-banner-gap** - The gap between the contents. _(default: undefined)_\n- **--forge-banner-padding-inline** - The inline padding. _(default: undefined)_\n- **--forge-banner-padding-block** - The block padding. _(default: undefined)_\n- **--forge-banner-transition-duration** - The transition duration. _(default: undefined)_\n- **--forge-banner-transition-easing** - The transition easing function. _(default: undefined)_",
|
|
@@ -291,7 +291,7 @@
|
|
|
291
291
|
},
|
|
292
292
|
{
|
|
293
293
|
"name": "forge-calendar",
|
|
294
|
-
"description": "\n---\n\n\n### **Events:**\n - **forge-calendar-date-select** - Event fired when a date is selected.\n- **forge-calendar-focus-change** - Event fired when the focus changes.\n- **forge-calendar-month-change** - Event fired when the month changes.\n- **forge-calendar-view-change** - Event fired when the view changes.\n\n### **Methods:**\n - **clear(): _void_** - Clears the selected date(s).\n- **deselectDate(date: _Date_): _void_** - Deselects a date.\n- **goToDate(date: _Date_, setFocus: _boolean_): _void_** - Navigates to a specific date.\n- **handleKey(evt: _KeyboardEvent_): _void_** - Handles a keyboard event.\n- **layout(): _void_** - Lays out the calendar.\n- **selectDate(date: _Date_): _void_** - Selects a date.\n- **setActiveDate(date: _Date_, setFocus: _boolean_): _boolean_** - Sets the active date.\n- **today(): _void_** - Sets the calendar to today.\n- **toggleDate(date: _Date_, force: _boolean_): _void_** - Toggles a date selection.\n\n### **Slots:**\n - **today-button-text** - Text to display in the today button.\n- **clear-button-text** - Text to display in the clear button.\n- **next-month-button-text** - Text to display in the next month button's tooltip.\n- **previous-month-button-text** - Text to display in the previous month button's tooltip.\n- **next-year-button-text** - Text to display in the next year button's tooltip.\n- **previous-year-button-text** - Text to display in the previous year button's tooltip.\n- **next-years-button-text** - Text to display in the next years button's tooltip.\n- **previous-years-button-text** - Text to display in the previous years button's tooltip.",
|
|
294
|
+
"description": "\n---\n\n\n### **Events:**\n - **forge-calendar-date-select** - Event fired when a date is selected.\n- **forge-calendar-focus-change** - Event fired when the focus changes.\n- **forge-calendar-month-change** - Event fired when the month changes.\n- **forge-calendar-view-change** - Event fired when the view changes.\n\n### **Methods:**\n - **clear(): _void_** - Clears the selected date(s).\n- **deselectDate(date: _Date_): _void_** - Deselects a date.\n- **goToDate(date: _Date_, setFocus: _boolean_): _void_** - Navigates to a specific date.\n- **handleKey(evt: _KeyboardEvent_): _void_** - Handles a keyboard event.\n- **layout(): _void_** - Lays out the calendar.\n- **selectDate(date: _Date_): _void_** - Selects a date.\n- **setActiveDate(date: _Date_, setFocus: _boolean_): _boolean_** - Sets the active date.\n- **today(): _void_** - Sets the calendar to today.\n- **toggleDate(date: _Date_, force: _boolean_): _void_** - Toggles a date selection.\n\n### **Slots:**\n - **today-button-text** - Text to display in the today button.\n- **yesterday-button-text** - Text to display in the yesterday button.\n- **last-seven-days-button-text** - Text to display in the last seven days button.\n- **last-thirty-days-button-text** - Text to display in the last thirty days button.\n- **clear-button-text** - Text to display in the clear button.\n- **next-month-button-text** - Text to display in the next month button's tooltip.\n- **previous-month-button-text** - Text to display in the previous month button's tooltip.\n- **next-year-button-text** - Text to display in the next year button's tooltip.\n- **previous-year-button-text** - Text to display in the previous year button's tooltip.\n- **next-years-button-text** - Text to display in the next years button's tooltip.\n- **previous-years-button-text** - Text to display in the previous years button's tooltip.",
|
|
295
295
|
"attributes": [
|
|
296
296
|
{
|
|
297
297
|
"name": "allow-single-date-range",
|
|
@@ -388,6 +388,36 @@
|
|
|
388
388
|
"description": "Whether to show a button to select today.",
|
|
389
389
|
"values": []
|
|
390
390
|
},
|
|
391
|
+
{
|
|
392
|
+
"name": "show-yesterday",
|
|
393
|
+
"description": "Whether to show the yesterday button.",
|
|
394
|
+
"values": []
|
|
395
|
+
},
|
|
396
|
+
{
|
|
397
|
+
"name": "yesterday-button",
|
|
398
|
+
"description": "Whether to show a button to select yesterday.",
|
|
399
|
+
"values": []
|
|
400
|
+
},
|
|
401
|
+
{
|
|
402
|
+
"name": "show-last-seven-days",
|
|
403
|
+
"description": "Whether to show the last seven days button.",
|
|
404
|
+
"values": []
|
|
405
|
+
},
|
|
406
|
+
{
|
|
407
|
+
"name": "last-seven-days-button",
|
|
408
|
+
"description": "Whether to show a button to select last seven days.",
|
|
409
|
+
"values": []
|
|
410
|
+
},
|
|
411
|
+
{
|
|
412
|
+
"name": "show-last-thirty-days",
|
|
413
|
+
"description": "Whether to show the last thirty days button.",
|
|
414
|
+
"values": []
|
|
415
|
+
},
|
|
416
|
+
{
|
|
417
|
+
"name": "last-thirty-days-button",
|
|
418
|
+
"description": "Whether to show a button to select last thirty days.",
|
|
419
|
+
"values": []
|
|
420
|
+
},
|
|
391
421
|
{
|
|
392
422
|
"name": "view",
|
|
393
423
|
"description": "The view of the calendar.",
|
|
@@ -677,6 +707,21 @@
|
|
|
677
707
|
"description": "Whether the today button is visible in the popup.",
|
|
678
708
|
"values": []
|
|
679
709
|
},
|
|
710
|
+
{
|
|
711
|
+
"name": "show-yesterday",
|
|
712
|
+
"description": "Whether the yesterday button is visible in the popup.",
|
|
713
|
+
"values": []
|
|
714
|
+
},
|
|
715
|
+
{
|
|
716
|
+
"name": "show-last-seven-days",
|
|
717
|
+
"description": "Whether the last seven days button is visible in the popup.",
|
|
718
|
+
"values": []
|
|
719
|
+
},
|
|
720
|
+
{
|
|
721
|
+
"name": "show-last-thirty-days",
|
|
722
|
+
"description": "Whether the last thirty days button is visible in the popup.",
|
|
723
|
+
"values": []
|
|
724
|
+
},
|
|
680
725
|
{
|
|
681
726
|
"name": "value-mode",
|
|
682
727
|
"description": "The type for the `value` property and `forge-date-picker-change` event.",
|
|
@@ -756,6 +801,21 @@
|
|
|
756
801
|
"description": "Whether the today button is visible in the popup.",
|
|
757
802
|
"values": []
|
|
758
803
|
},
|
|
804
|
+
{
|
|
805
|
+
"name": "show-yesterday",
|
|
806
|
+
"description": "Whether the yesterday button is visible in the popup.",
|
|
807
|
+
"values": []
|
|
808
|
+
},
|
|
809
|
+
{
|
|
810
|
+
"name": "show-last-seven-days",
|
|
811
|
+
"description": "Whether the last seven days button is visible in the popup.",
|
|
812
|
+
"values": []
|
|
813
|
+
},
|
|
814
|
+
{
|
|
815
|
+
"name": "show-last-thirty-days",
|
|
816
|
+
"description": "Whether the last thirty days button is visible in the popup.",
|
|
817
|
+
"values": []
|
|
818
|
+
},
|
|
759
819
|
{
|
|
760
820
|
"name": "value-mode",
|
|
761
821
|
"description": "The type for the `value` property and `forge-date-picker-change` event.",
|
|
@@ -2816,6 +2876,43 @@
|
|
|
2816
2876
|
],
|
|
2817
2877
|
"references": []
|
|
2818
2878
|
},
|
|
2879
|
+
{
|
|
2880
|
+
"name": "forge-chip-set",
|
|
2881
|
+
"description": "Chips sets are used to group multiple chips together and orchestrate their behavior.\n---\n\n\n### **Slots:**\n - _default_ - The chips to display in the chip set.\n\n### **CSS Properties:**\n - **--forge-chip-set-spacing** - The spacing between chips. _(default: undefined)_\n\n### **CSS Parts:**\n - **root** - The component's root element.",
|
|
2882
|
+
"attributes": [
|
|
2883
|
+
{
|
|
2884
|
+
"name": "vertical",
|
|
2885
|
+
"description": "Whether the chip set is vertically oriented.",
|
|
2886
|
+
"values": []
|
|
2887
|
+
},
|
|
2888
|
+
{
|
|
2889
|
+
"name": "type",
|
|
2890
|
+
"description": "The type of chips.",
|
|
2891
|
+
"values": [{ "name": "ChipType" }]
|
|
2892
|
+
},
|
|
2893
|
+
{
|
|
2894
|
+
"name": "dense",
|
|
2895
|
+
"description": "Whether all chips in the chip set are dense.",
|
|
2896
|
+
"values": []
|
|
2897
|
+
},
|
|
2898
|
+
{
|
|
2899
|
+
"name": "disabled",
|
|
2900
|
+
"description": "Whether all chips in the chip set are disabled.",
|
|
2901
|
+
"values": []
|
|
2902
|
+
},
|
|
2903
|
+
{
|
|
2904
|
+
"name": "invalid",
|
|
2905
|
+
"description": "Whether all chips in the chip set are invalid.",
|
|
2906
|
+
"values": []
|
|
2907
|
+
},
|
|
2908
|
+
{
|
|
2909
|
+
"name": "theme",
|
|
2910
|
+
"description": "The theme of the chips.",
|
|
2911
|
+
"values": [{ "name": "ChipTheme" }]
|
|
2912
|
+
}
|
|
2913
|
+
],
|
|
2914
|
+
"references": []
|
|
2915
|
+
},
|
|
2819
2916
|
{
|
|
2820
2917
|
"name": "forge-chip",
|
|
2821
2918
|
"description": "\n---\n\n\n### **Events:**\n - **forge-chip-delete** - Event fired when the chip is deleted.\n- **forge-chip-select** - Event fired when the chip is selected.\n\n### **Slots:**\n - _default_ - The content of the chip.\n- **start** - The start content of the chip.\n- **end** - The end content of the chip.\n\n### **CSS Properties:**\n - **--forge-chip-background** - The background color of the chip. _(default: undefined)_\n- **--forge-chip-color** - The background color of the chip. _(default: undefined)_\n- **--forge-chip-shape** - The shape of the chip. _(default: undefined)_\n- **--forge-chip-spacing** - The spacing between chips. _(default: undefined)_\n- **--forge-chip-height** - The height of the chip. _(default: undefined)_\n- **--forge-chip-padding-inline** - The inline padding of the chip. _(default: undefined)_\n- **--forge-chip-padding-block** - The block padding of the chip. _(default: undefined)_\n- **--forge-chip-cursor** - The cursor style of the chip. _(default: undefined)_\n- **--forge-chip-icon-font-size** - The font size of the chip icon. _(default: undefined)_\n- **--forge-chip-focus-indicator-color** - The color of the focus indicator. _(default: undefined)_\n- **--forge-chip-disabled-opacity** - The opacity of the disabled chip. _(default: undefined)_\n- **--forge-chip-disabled-cursor** - The cursor style of the disabled chip. _(default: undefined)_\n- **--forge-chip-dense-height** - The height of the dense chip. _(default: undefined)_\n- **--forge-chip-dense-padding-inline** - The inline padding of the dense chip. _(default: undefined)_\n- **--forge-chip-dense-spacing** - The spacing between dense chips. _(default: undefined)_\n- **--forge-chip-dense-font-size** - The font size of the dense chip. _(default: undefined)_\n- **--forge-chip-dense-font-weight** - The font weight of the dense chip. _(default: undefined)_\n- **--forge-chip-dense-focus-indicator-offset** - The offset of the focus indicator for dense chips. _(default: undefined)_\n- **--forge-chip-dense-icon-font-size** - The font size of the icon in dense chips. _(default: undefined)_\n- **--forge-chip-remove-button-spacing** - The spacing of the remove button in chips. _(default: undefined)_\n- **--forge-chip-remove-button-height-dense** - The height of the remove button in dense chips. _(default: undefined)_\n- **--forge-chip-remove-button-icon-size-dense** - The icon size of the remove button in dense chips. _(default: undefined)_\n- **--forge-chip-remove-button-spacing-dense** - The spacing of the remove button in dense chips. _(default: undefined)_\n- **--forge-chip-selected-background** - The background color of the selected chip. _(default: undefined)_\n- **--forge-chip-selected-color** - The text color of the selected chip. _(default: undefined)_\n- **--forge-chip-invalid-color** - The text color of the invalid chip. _(default: undefined)_\n- **--forge-chip-invalid-selected-background** - The background color of the invalid selected chip. _(default: undefined)_\n- **--forge-chip-invalid-selected-color** - The text color of the invalid selected chip. _(default: undefined)_\n- **--forge-chip-border-width** - The width of the chip border. _(default: undefined)_\n- **--forge-chip-border-style** - The style of the chip border. _(default: undefined)_\n- **--forge-chip-border-color** - The color of the chip border. _(default: undefined)_\n- **--forge-chip-field-background** - The background color of the chip field. _(default: undefined)_\n- **--forge-chip-field-color** - The text color of the chip field. _(default: undefined)_\n- **--forge-chip-field-shape** - The shape of the chip field. _(default: undefined)_\n- **--forge-chip-field-border-color** - The color of the chip field border. _(default: undefined)_\n- **--forge-chip-field-cursor** - The cursor style of the chip field. _(default: undefined)_\n- **--forge-chip-checkmark-size** - The size of the checkmark in chips. _(default: undefined)_\n- **--forge-chip-checkmark-color** - The color of the checkmark in chips. _(default: undefined)_\n- **--forge-chip-checkmark-spacing** - The spacing of the checkmark in chips. _(default: undefined)_\n- **--forge-chip-avatar-size** - The size of the avatar in chips. _(default: undefined)_\n- **--forge-chip-avatar-size-dense** - The size of the avatar in dense chips. _(default: undefined)_\n- **--forge-chip-avatar-font-size** - The font size of the avatar in chips. _(default: undefined)_\n- **--forge-chip-avatar-font-size-dense** - The font size of the avatar in dense chips. _(default: undefined)_\n- **--forge-chip-avatar-spacing** - The spacing of the avatar in chips. _(default: undefined)_\n- **--forge-chip-avatar-spacing-dense** - The spacing of the avatar in dense chips. _(default: undefined)_\n- **--forge-chip-transition-duration** - The duration of the chip transition. _(default: undefined)_\n- **--forge-chip-transition-easing** - The easing function of the chip transition. _(default: undefined)_\n- **--forge-chip-checkmark-transition-delay** - The delay of the checkmark transition in chips. _(default: undefined)_\n\n### **CSS Parts:**\n - **root** - The component's root element.\n- **trigger** - The trigger element of the chip.\n- **focus-indicator** - The focus indicator of the chip.\n- **state-layer** - The state layer surface.",
|
|
@@ -2874,43 +2971,6 @@
|
|
|
2874
2971
|
],
|
|
2875
2972
|
"references": []
|
|
2876
2973
|
},
|
|
2877
|
-
{
|
|
2878
|
-
"name": "forge-chip-set",
|
|
2879
|
-
"description": "Chips sets are used to group multiple chips together and orchestrate their behavior.\n---\n\n\n### **Slots:**\n - _default_ - The chips to display in the chip set.\n\n### **CSS Properties:**\n - **--forge-chip-set-spacing** - The spacing between chips. _(default: undefined)_\n\n### **CSS Parts:**\n - **root** - The component's root element.",
|
|
2880
|
-
"attributes": [
|
|
2881
|
-
{
|
|
2882
|
-
"name": "vertical",
|
|
2883
|
-
"description": "Whether the chip set is vertically oriented.",
|
|
2884
|
-
"values": []
|
|
2885
|
-
},
|
|
2886
|
-
{
|
|
2887
|
-
"name": "type",
|
|
2888
|
-
"description": "The type of chips.",
|
|
2889
|
-
"values": [{ "name": "ChipType" }]
|
|
2890
|
-
},
|
|
2891
|
-
{
|
|
2892
|
-
"name": "dense",
|
|
2893
|
-
"description": "Whether all chips in the chip set are dense.",
|
|
2894
|
-
"values": []
|
|
2895
|
-
},
|
|
2896
|
-
{
|
|
2897
|
-
"name": "disabled",
|
|
2898
|
-
"description": "Whether all chips in the chip set are disabled.",
|
|
2899
|
-
"values": []
|
|
2900
|
-
},
|
|
2901
|
-
{
|
|
2902
|
-
"name": "invalid",
|
|
2903
|
-
"description": "Whether all chips in the chip set are invalid.",
|
|
2904
|
-
"values": []
|
|
2905
|
-
},
|
|
2906
|
-
{
|
|
2907
|
-
"name": "theme",
|
|
2908
|
-
"description": "The theme of the chips.",
|
|
2909
|
-
"values": [{ "name": "ChipTheme" }]
|
|
2910
|
-
}
|
|
2911
|
-
],
|
|
2912
|
-
"references": []
|
|
2913
|
-
},
|
|
2914
2974
|
{
|
|
2915
2975
|
"name": "forge-deprecated-button",
|
|
2916
2976
|
"description": "@deprecated Use the `<forge-button>` element instead.\n\n\n---\n",
|
|
@@ -3351,23 +3411,6 @@
|
|
|
3351
3411
|
],
|
|
3352
3412
|
"references": []
|
|
3353
3413
|
},
|
|
3354
|
-
{
|
|
3355
|
-
"name": "forge-option-group",
|
|
3356
|
-
"description": "\n---\n",
|
|
3357
|
-
"attributes": [
|
|
3358
|
-
{
|
|
3359
|
-
"name": "value",
|
|
3360
|
-
"description": "Gets/sets the optional group value.",
|
|
3361
|
-
"values": []
|
|
3362
|
-
},
|
|
3363
|
-
{
|
|
3364
|
-
"name": "text",
|
|
3365
|
-
"description": "The text content for the group.",
|
|
3366
|
-
"values": []
|
|
3367
|
-
}
|
|
3368
|
-
],
|
|
3369
|
-
"references": []
|
|
3370
|
-
},
|
|
3371
3414
|
{
|
|
3372
3415
|
"name": "forge-select",
|
|
3373
3416
|
"description": "\n---\n\n\n### **Events:**\n - **forge-select-scrolled-bottom** - Dispatched when the dropdown list has scrolled to the bottom.\n- **change** - Dispatched when the user selects a value.\n\n### **Methods:**\n - **floatLabelWithoutAnimation(value: _boolean_): _void_** - Floats the label without an animation. Only applies when the label is inset.\n\n### **Slots:**\n - **value** - The selected text to display\n- **start** - Typically reserved for content/icons that render logically before the default slot content.\n- **end** - Typically reserved content/icons that render logically after the default slot content.\n- **accessory** - Used for content such as a button that is logically connected to the field but should appear distinct from the input.\n- **support-text** - Used for content that provides additional information about the field. Aligns to the inline start of the field.\n- **support-text-end** - Used for content that provides additional information about the field. Aligns to the inline end of the field.\n\n### **CSS Properties:**\n - **--forge-select-placeholder-color** - The color of the placeholder text. _(default: undefined)_\n- **--forge-field-background** - The background of the field surface. _(default: undefined)_\n- **--forge-field-tonal-background** - The background of the field surface in the tonal variant. _(default: undefined)_\n- **--forge-field-tonal-background-hover** - The background of the field surface in the tonal variant on hover. _(default: undefined)_\n- **--forge-field-filled-background** - The background of the field surface in the filled and raised variants. _(default: undefined)_\n- **--forge-field-outline-style** - The style of the field outline. _(default: undefined)_\n- **--forge-field-outline-width** - The width of the field outline. _(default: undefined)_\n- **--forge-field-shape** - The border radius of the field's corners. _(default: undefined)_\n- **--forge-field-height** - The height of the field in its default density. _(default: undefined)_\n- **--forge-field-inset-height** - The height of the field in its default density when the label is inset. _(default: undefined)_\n- **--forge-field-padding-inline** - The inline padding of the field. _(default: undefined)_\n- **--forge-field-padding-inline-start** - The inline start padding of the field. _(default: undefined)_\n- **--forge-field-padding-inline-end** - The inline end padding of the field. _(default: undefined)_\n- **--forge-field-inner-padding-inline** - The padding between elements slotted into the field. _(default: undefined)_\n- **--forge-field-support-text-margin-block** - The margin between the support text and the field. _(default: undefined)_\n- **--forge-field-support-text-gap** - The minimum gap between the support text and the support text end. _(default: undefined)_\n- **--forge-field-support-text-padding-inline** - The inline padding of the support text. _(default: undefined)_\n- **--forge-field-support-text-padding-inline-start** - The inline start padding of the support text. _(default: undefined)_\n- **--forge-field-support-text-padding-inline-end** - The inline end padding of the support text. _(default: undefined)_\n- **--forge-field-label-margin-inline** - The margin between the label and the field when the label is in an inline position. _(default: undefined)_\n- **--forge-field-label-margin-block** - The margin between the label and the field when the label is in the block start position. _(default: undefined)_\n- **--forge-field-required-padding** - The padding between the required indicator and the label. _(default: undefined)_\n- **--forge-field-required-content** - The content of the required indicator. _(default: undefined)_\n- **--forge-field-optional-padding** - The padding between the optional indicator and the label. _(default: undefined)_\n- **--forge-field-optional-content** - The content of the optional indicator. _(default: undefined)_\n- **--forge-field-multiline-resize** - The direction the field can be resized when multiline. _(default: undefined)_\n- **--forge-field-multiline-min-inline-size** - The minimum inline size the field can be resized to when multiline. _(default: undefined)_\n- **--forge-field-multiline-max-inline-size** - The maximum inline size the field can be resized to when multiline. _(default: undefined)_\n- **--forge-field-multiline-min-block-size** - The minimum block size the field can be resized to when multiline. _(default: undefined)_\n- **--forge-field-multiline-max-block-size** - The maximum block size the field can be resized to when multiline. _(default: undefined)_\n- **--forge-field-popover-icon-transition-duration** - The duration of the popover icon animation. _(default: undefined)_\n- **--forge-field-popover-icon-transition-timing** - The timing function of the popover icon animation. _(default: undefined)_\n- **--forge-field-popover-icon-open-rotation** - The rotation of the popover icon when open. _(default: undefined)_\n- **--forge-field-surface-animation-duration** - The duration of background and outline animations. _(default: undefined)_\n- **--forge-field-surface-animation-timing** - The timing function of background and outline animations. _(default: undefined)_\n- **--forge-field-surface-floating-animation-duration** - The duration of the floating label animation. _(default: undefined)_\n- **--forge-field-surface-floating-animation-timing** - The timing function of the floating label animation. _(default: undefined)_\n- **--forge-field-focus-indicator-width** - The width of the focus indicator. _(default: undefined)_\n- **--forge-field-disabled-opacity** - The opacity of the field when disabled. _(default: undefined)_\n- **--forge-field-disabled-background** - The background of the field when disabled. _(default: undefined)_\n\n### **CSS Parts:**\n - **root** - The root container element.\n- **label** - The label element.\n- **text-container** - The element container for the selected text.\n- **text** - The element containing the selected text.\n- **container** - The container element surrounding the input.\n- **input** - The element containing te input slot.\n- **start** - The element containing the start slot.\n- **end** - The element containing the end slot.\n- **popover-icon** - The popover icon element.\n- **accessory** - The element containing the accessory slot.\n- **support-text** - The support text element.\n- **support-text** - The element containing the support text slot.\n- **support-text-end** - The element containing the support text end slot.\n- **outline** - The element containing the forge-focus-indicator element.\n- **focus-indicator** - The focus indicator element.",
|
|
@@ -3520,6 +3563,23 @@
|
|
|
3520
3563
|
],
|
|
3521
3564
|
"references": []
|
|
3522
3565
|
},
|
|
3566
|
+
{
|
|
3567
|
+
"name": "forge-option-group",
|
|
3568
|
+
"description": "\n---\n",
|
|
3569
|
+
"attributes": [
|
|
3570
|
+
{
|
|
3571
|
+
"name": "value",
|
|
3572
|
+
"description": "Gets/sets the optional group value.",
|
|
3573
|
+
"values": []
|
|
3574
|
+
},
|
|
3575
|
+
{
|
|
3576
|
+
"name": "text",
|
|
3577
|
+
"description": "The text content for the group.",
|
|
3578
|
+
"values": []
|
|
3579
|
+
}
|
|
3580
|
+
],
|
|
3581
|
+
"references": []
|
|
3582
|
+
},
|
|
3523
3583
|
{
|
|
3524
3584
|
"name": "forge-select-dropdown",
|
|
3525
3585
|
"description": "\n---\n\n\n### **Methods:**\n - **appendOptions(options: _ISelectOption[] | ISelectOptionGroup[]_): _void_** - Dynamically appends options to the dropdown while it's open.\n- **selectAll(): _void_** - Selects all options.\n- **deselectAll(): _void_** - Deselects all options.",
|
|
@@ -27,11 +27,17 @@ export interface ICalendarAdapter extends IBaseAdapter {
|
|
|
27
27
|
registerPreventFocusListener(listener: (evt: Event) => void): void;
|
|
28
28
|
registerPreviousButtonListener(listener: (evt: Event) => void): void;
|
|
29
29
|
registerTodayButtonListener(listener: (evt: Event) => void): void;
|
|
30
|
+
registerYesterdayButtonListener(listener: (evt: Event) => void): void;
|
|
31
|
+
registerLastSevenDaysButtonListener(listener: (evt: Event) => void): void;
|
|
32
|
+
registerLastThirtyDaysButtonListener(listener: (evt: Event) => void): void;
|
|
30
33
|
registerYearButtonListener(listener: (evt: Event) => void): void;
|
|
31
34
|
removeClearButton(): void;
|
|
32
35
|
removeFooter(): void;
|
|
33
36
|
removeHeader(): void;
|
|
34
37
|
removeTodayButton(): void;
|
|
38
|
+
removeYesterdayButton(): void;
|
|
39
|
+
removeLastSevenDaysButton(): void;
|
|
40
|
+
removeLastThirtyDaysButton(): void;
|
|
35
41
|
replaceDate(date: ICalendarDateConfig, options?: ICalendarDateOptions): void;
|
|
36
42
|
replaceDateWithSpacer(date: Date): void;
|
|
37
43
|
selectFocusedMenuItem(): void;
|
|
@@ -63,6 +69,9 @@ export interface ICalendarAdapter extends IBaseAdapter {
|
|
|
63
69
|
setRangeStart(date: Date | null): void;
|
|
64
70
|
setActiveDate(date: Date, setFocus: boolean, preventFocus?: boolean): void;
|
|
65
71
|
setTodayButton(): void;
|
|
72
|
+
setYesterdayButton(): void;
|
|
73
|
+
setLastSevenDaysButton(): void;
|
|
74
|
+
setLastThirtyDaysButton(): void;
|
|
66
75
|
setWeekend(date: Date, value: boolean): void;
|
|
67
76
|
setYear(year: number, locale?: string): void;
|
|
68
77
|
setYearButtonPressed(value: boolean): void;
|
|
@@ -77,6 +86,9 @@ export interface ICalendarAdapter extends IBaseAdapter {
|
|
|
77
86
|
unregisterPreventFocusListener(listener: (evt: Event) => void): void;
|
|
78
87
|
unregisterPreviousButtonListener(listener: (evt: Event) => void): void;
|
|
79
88
|
unregisterTodayButtonListener(listener: (evt: Event) => void): void;
|
|
89
|
+
unregisterYesterdayButtonListener(listener: (evt: Event) => void): void;
|
|
90
|
+
unregisterLastSevenDaysButtonListener(listener: (evt: Event) => void): void;
|
|
91
|
+
unregisterLastThirtyDaysButtonListener(listener: (evt: Event) => void): void;
|
|
80
92
|
unregisterYearButtonListener(listener: (evt: Event) => void): void;
|
|
81
93
|
}
|
|
82
94
|
export declare class CalendarAdapter extends BaseAdapter<ICalendarComponent> implements ICalendarAdapter {
|
|
@@ -103,6 +115,12 @@ export declare class CalendarAdapter extends BaseAdapter<ICalendarComponent> imp
|
|
|
103
115
|
unregisterClearButtonListener(listener: (evt: Event) => void): void;
|
|
104
116
|
registerTodayButtonListener(listener: (evt: Event) => void): void;
|
|
105
117
|
unregisterTodayButtonListener(listener: (evt: Event) => void): void;
|
|
118
|
+
registerYesterdayButtonListener(listener: (evt: Event) => void): void;
|
|
119
|
+
unregisterYesterdayButtonListener(listener: (evt: Event) => void): void;
|
|
120
|
+
registerLastSevenDaysButtonListener(listener: (evt: Event) => void): void;
|
|
121
|
+
unregisterLastSevenDaysButtonListener(listener: (evt: Event) => void): void;
|
|
122
|
+
registerLastThirtyDaysButtonListener(listener: (evt: Event) => void): void;
|
|
123
|
+
unregisterLastThirtyDaysButtonListener(listener: (evt: Event) => void): void;
|
|
106
124
|
registerDateClickListener(listener: (evt: Event) => void): void;
|
|
107
125
|
unregisterDateClickListener(listener: (evt: Event) => void): void;
|
|
108
126
|
registerKeydownListener(listener: (evt: KeyboardEvent) => void): void;
|
|
@@ -127,6 +145,12 @@ export declare class CalendarAdapter extends BaseAdapter<ICalendarComponent> imp
|
|
|
127
145
|
removeClearButton(): void;
|
|
128
146
|
setTodayButton(): void;
|
|
129
147
|
removeTodayButton(): void;
|
|
148
|
+
setYesterdayButton(): void;
|
|
149
|
+
removeYesterdayButton(): void;
|
|
150
|
+
setLastSevenDaysButton(): void;
|
|
151
|
+
removeLastSevenDaysButton(): void;
|
|
152
|
+
setLastThirtyDaysButton(): void;
|
|
153
|
+
removeLastThirtyDaysButton(): void;
|
|
130
154
|
setDays(days: DayOfWeek[], options?: ICalendarDayOptions): void;
|
|
131
155
|
setDates(dates: ICalendarDateConfig[], options?: ICalendarDateOptions): void;
|
|
132
156
|
replaceDate(date: ICalendarDateConfig, options?: ICalendarDateOptions): void;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import { appendToAttribute, getShadowElement, removeAllChildren, toggleAttribute, toggleOnAttribute } from '@tylertech/forge-core';
|
|
7
7
|
import { BaseAdapter } from '../core/base';
|
|
8
8
|
import { CALENDAR_CONSTANTS } from './calendar-constants';
|
|
9
|
-
import { getAccessibleHeader, getClearButton, getDateElement, getDateId, getDateRow, getDateSpacerElement, getDayElement, getEventElement, getEventWrapperElement, getEventWrapperId, getFooter, getHeader, getMonthButtonContent, getTodayButton, getTooltip, getYearButtonContent, setTabindexOnElement } from './calendar-dom-utils';
|
|
9
|
+
import { getAccessibleHeader, getClearButton, getDateElement, getDateId, getDateRow, getDateSpacerElement, getDayElement, getEventElement, getEventWrapperElement, getEventWrapperId, getFooter, getHeader, getMonthButtonContent, getTodayButton, getYesterdayButton, getLastSevenDaysButton, getLastThirtyDaysButton, getTooltip, getYearButtonContent, setTabindexOnElement } from './calendar-dom-utils';
|
|
10
10
|
import { getLocalizedMonth, getLocalizedYear } from './calendar-locale-utils';
|
|
11
11
|
import { CALENDAR_MENU_CONSTANTS } from './calendar-menu';
|
|
12
12
|
import { splitIntoWeeks } from './calendar-utils';
|
|
@@ -82,6 +82,30 @@ export class CalendarAdapter extends BaseAdapter {
|
|
|
82
82
|
const todayButton = this._container.querySelector(CALENDAR_CONSTANTS.selectors.TODAY_BUTTON);
|
|
83
83
|
todayButton?.removeEventListener('click', listener);
|
|
84
84
|
}
|
|
85
|
+
registerYesterdayButtonListener(listener) {
|
|
86
|
+
const yesterdayButton = this._container.querySelector(CALENDAR_CONSTANTS.selectors.YESTERDAY_BUTTON);
|
|
87
|
+
yesterdayButton?.addEventListener('click', listener);
|
|
88
|
+
}
|
|
89
|
+
unregisterYesterdayButtonListener(listener) {
|
|
90
|
+
const yesterdayButton = this._container.querySelector(CALENDAR_CONSTANTS.selectors.YESTERDAY_BUTTON);
|
|
91
|
+
yesterdayButton?.removeEventListener('click', listener);
|
|
92
|
+
}
|
|
93
|
+
registerLastSevenDaysButtonListener(listener) {
|
|
94
|
+
const lastSevenDaysButton = this._container.querySelector(CALENDAR_CONSTANTS.selectors.LAST_SEVEN_DAYS_BUTTON);
|
|
95
|
+
lastSevenDaysButton?.addEventListener('click', listener);
|
|
96
|
+
}
|
|
97
|
+
unregisterLastSevenDaysButtonListener(listener) {
|
|
98
|
+
const lastSevenDaysButton = this._container.querySelector(CALENDAR_CONSTANTS.selectors.LAST_SEVEN_DAYS_BUTTON);
|
|
99
|
+
lastSevenDaysButton?.removeEventListener('click', listener);
|
|
100
|
+
}
|
|
101
|
+
registerLastThirtyDaysButtonListener(listener) {
|
|
102
|
+
const lastThirtyDaysButton = this._container.querySelector(CALENDAR_CONSTANTS.selectors.LAST_THIRTY_DAYS_BUTTON);
|
|
103
|
+
lastThirtyDaysButton?.addEventListener('click', listener);
|
|
104
|
+
}
|
|
105
|
+
unregisterLastThirtyDaysButtonListener(listener) {
|
|
106
|
+
const lastThirtyDaysButton = this._container.querySelector(CALENDAR_CONSTANTS.selectors.LAST_THIRTY_DAYS_BUTTON);
|
|
107
|
+
lastThirtyDaysButton?.removeEventListener('click', listener);
|
|
108
|
+
}
|
|
85
109
|
registerDateClickListener(listener) {
|
|
86
110
|
this._dateGrid.addEventListener('click', listener);
|
|
87
111
|
}
|
|
@@ -262,6 +286,48 @@ export class CalendarAdapter extends BaseAdapter {
|
|
|
262
286
|
const todayButton = this._container.querySelector(CALENDAR_CONSTANTS.selectors.TODAY_BUTTON);
|
|
263
287
|
todayButton?.parentNode?.removeChild(todayButton);
|
|
264
288
|
}
|
|
289
|
+
setYesterdayButton() {
|
|
290
|
+
const footer = this._container.querySelector(CALENDAR_CONSTANTS.selectors.FOOTER);
|
|
291
|
+
if (!footer) {
|
|
292
|
+
return;
|
|
293
|
+
}
|
|
294
|
+
const yesterdayButton = footer.querySelector(CALENDAR_CONSTANTS.selectors.YESTERDAY_BUTTON);
|
|
295
|
+
if (!yesterdayButton) {
|
|
296
|
+
footer.appendChild(getYesterdayButton());
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
removeYesterdayButton() {
|
|
300
|
+
const yesterdayButton = this._container.querySelector(CALENDAR_CONSTANTS.selectors.YESTERDAY_BUTTON);
|
|
301
|
+
yesterdayButton?.parentNode?.removeChild(yesterdayButton);
|
|
302
|
+
}
|
|
303
|
+
setLastSevenDaysButton() {
|
|
304
|
+
const footer = this._container.querySelector(CALENDAR_CONSTANTS.selectors.FOOTER);
|
|
305
|
+
if (!footer) {
|
|
306
|
+
return;
|
|
307
|
+
}
|
|
308
|
+
const lastSevenDaysButton = footer.querySelector(CALENDAR_CONSTANTS.selectors.LAST_SEVEN_DAYS_BUTTON);
|
|
309
|
+
if (!lastSevenDaysButton) {
|
|
310
|
+
footer.appendChild(getLastSevenDaysButton());
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
removeLastSevenDaysButton() {
|
|
314
|
+
const lastSevenDaysButton = this._container.querySelector(CALENDAR_CONSTANTS.selectors.LAST_SEVEN_DAYS_BUTTON);
|
|
315
|
+
lastSevenDaysButton?.parentNode?.removeChild(lastSevenDaysButton);
|
|
316
|
+
}
|
|
317
|
+
setLastThirtyDaysButton() {
|
|
318
|
+
const footer = this._container.querySelector(CALENDAR_CONSTANTS.selectors.FOOTER);
|
|
319
|
+
if (!footer) {
|
|
320
|
+
return;
|
|
321
|
+
}
|
|
322
|
+
const lastThirtyDaysButton = footer.querySelector(CALENDAR_CONSTANTS.selectors.LAST_THIRTY_DAYS_BUTTON);
|
|
323
|
+
if (!lastThirtyDaysButton) {
|
|
324
|
+
footer.appendChild(getLastThirtyDaysButton());
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
removeLastThirtyDaysButton() {
|
|
328
|
+
const lastThirtyDaysButton = this._container.querySelector(CALENDAR_CONSTANTS.selectors.LAST_THIRTY_DAYS_BUTTON);
|
|
329
|
+
lastThirtyDaysButton?.parentNode?.removeChild(lastThirtyDaysButton);
|
|
330
|
+
}
|
|
265
331
|
setDays(days, options) {
|
|
266
332
|
removeAllChildren(this._dayRow);
|
|
267
333
|
days.forEach(d => {
|