@hermes-ui/angular 0.1.6 → 0.2.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 +52 -52
- package/button/_buttons.clarity.scss +80 -2
- package/button/_mixins.buttons.scss +44 -2
- package/button/_properties.buttons.scss +349 -387
- package/button/_variables.buttons.scss +22 -0
- package/fesm2022/hermes-ui-angular-accordion.mjs +2 -2
- package/fesm2022/hermes-ui-angular-accordion.mjs.map +1 -1
- package/fesm2022/hermes-ui-angular-addons-a11y.mjs.map +1 -1
- package/fesm2022/hermes-ui-angular-addons-card-container.mjs +3 -3
- package/fesm2022/hermes-ui-angular-addons-card-container.mjs.map +1 -1
- package/fesm2022/hermes-ui-angular-addons-certificate-viewer.mjs +2 -2
- package/fesm2022/hermes-ui-angular-addons-certificate-viewer.mjs.map +1 -1
- package/fesm2022/hermes-ui-angular-addons-datagrid-filters.mjs +2 -2
- package/fesm2022/hermes-ui-angular-addons-datagrid-filters.mjs.map +1 -1
- package/fesm2022/hermes-ui-angular-addons-datagrid.mjs +30 -30
- package/fesm2022/hermes-ui-angular-addons-datagrid.mjs.map +1 -1
- package/fesm2022/hermes-ui-angular-addons-dialog.mjs.map +1 -1
- package/fesm2022/hermes-ui-angular-addons-menu.mjs +8 -8
- package/fesm2022/hermes-ui-angular-addons-menu.mjs.map +1 -1
- package/fesm2022/hermes-ui-angular-addons-property-view.mjs +2 -2
- package/fesm2022/hermes-ui-angular-addons-property-view.mjs.map +1 -1
- package/fesm2022/hermes-ui-angular-addons-stepper.mjs.map +1 -1
- package/fesm2022/hermes-ui-angular-addons-tabs.mjs.map +1 -1
- package/fesm2022/hermes-ui-angular-addons-testing.mjs +78 -78
- package/fesm2022/hermes-ui-angular-addons-testing.mjs.map +1 -1
- package/fesm2022/hermes-ui-angular-addons-theme-builder.mjs +66 -66
- package/fesm2022/hermes-ui-angular-addons-theme-builder.mjs.map +1 -1
- package/fesm2022/hermes-ui-angular-addons-var.mjs +2 -2
- package/fesm2022/hermes-ui-angular-addons-var.mjs.map +1 -1
- package/fesm2022/hermes-ui-angular-addons-wizard.mjs +2 -2
- package/fesm2022/hermes-ui-angular-addons-wizard.mjs.map +1 -1
- package/fesm2022/hermes-ui-angular-addons-workflow.mjs.map +1 -1
- package/fesm2022/hermes-ui-angular-button.mjs +76 -76
- package/fesm2022/hermes-ui-angular-button.mjs.map +1 -1
- package/fesm2022/hermes-ui-angular-card.mjs.map +1 -1
- package/fesm2022/hermes-ui-angular-collapsible-panel.mjs.map +1 -1
- package/fesm2022/hermes-ui-angular-data-datagrid.mjs +928 -928
- package/fesm2022/hermes-ui-angular-data-datagrid.mjs.map +1 -1
- package/fesm2022/hermes-ui-angular-data-stack-view.mjs +116 -116
- package/fesm2022/hermes-ui-angular-data-stack-view.mjs.map +1 -1
- package/fesm2022/hermes-ui-angular-data-tree-view.mjs +14 -14
- package/fesm2022/hermes-ui-angular-data-tree-view.mjs.map +1 -1
- package/fesm2022/hermes-ui-angular-data.mjs.map +1 -1
- package/fesm2022/hermes-ui-angular-divider.mjs +2 -2
- package/fesm2022/hermes-ui-angular-divider.mjs.map +1 -1
- package/fesm2022/hermes-ui-angular-emphasis-alert.mjs +2 -2
- package/fesm2022/hermes-ui-angular-emphasis-alert.mjs.map +1 -1
- package/fesm2022/hermes-ui-angular-emphasis-badge.mjs.map +1 -1
- package/fesm2022/hermes-ui-angular-emphasis-label.mjs +16 -16
- package/fesm2022/hermes-ui-angular-emphasis-label.mjs.map +1 -1
- package/fesm2022/hermes-ui-angular-emphasis.mjs.map +1 -1
- package/fesm2022/hermes-ui-angular-forms-checkbox.mjs +52 -52
- package/fesm2022/hermes-ui-angular-forms-checkbox.mjs.map +1 -1
- package/fesm2022/hermes-ui-angular-forms-combobox.mjs +128 -128
- package/fesm2022/hermes-ui-angular-forms-combobox.mjs.map +1 -1
- package/fesm2022/hermes-ui-angular-forms-common.mjs +2 -2
- package/fesm2022/hermes-ui-angular-forms-common.mjs.map +1 -1
- package/fesm2022/hermes-ui-angular-forms-datalist.mjs +48 -48
- package/fesm2022/hermes-ui-angular-forms-datalist.mjs.map +1 -1
- package/fesm2022/hermes-ui-angular-forms-datepicker.mjs +377 -377
- package/fesm2022/hermes-ui-angular-forms-datepicker.mjs.map +1 -1
- package/fesm2022/hermes-ui-angular-forms-file-input.mjs +192 -192
- package/fesm2022/hermes-ui-angular-forms-file-input.mjs.map +1 -1
- package/fesm2022/hermes-ui-angular-forms-input.mjs +54 -54
- package/fesm2022/hermes-ui-angular-forms-input.mjs.map +1 -1
- package/fesm2022/hermes-ui-angular-forms-native-select.mjs +40 -40
- package/fesm2022/hermes-ui-angular-forms-native-select.mjs.map +1 -1
- package/fesm2022/hermes-ui-angular-forms-number-input.mjs +82 -82
- package/fesm2022/hermes-ui-angular-forms-number-input.mjs.map +1 -1
- package/fesm2022/hermes-ui-angular-forms-password.mjs +60 -60
- package/fesm2022/hermes-ui-angular-forms-password.mjs.map +1 -1
- package/fesm2022/hermes-ui-angular-forms-radio.mjs +52 -52
- package/fesm2022/hermes-ui-angular-forms-radio.mjs.map +1 -1
- package/fesm2022/hermes-ui-angular-forms-range.mjs +46 -46
- package/fesm2022/hermes-ui-angular-forms-range.mjs.map +1 -1
- package/fesm2022/hermes-ui-angular-forms-select.mjs +10 -10
- package/fesm2022/hermes-ui-angular-forms-select.mjs.map +1 -1
- package/fesm2022/hermes-ui-angular-forms-textarea.mjs +40 -40
- package/fesm2022/hermes-ui-angular-forms-textarea.mjs.map +1 -1
- package/fesm2022/hermes-ui-angular-forms.mjs.map +1 -1
- package/fesm2022/hermes-ui-angular-icon.mjs +29 -29
- package/fesm2022/hermes-ui-angular-icon.mjs.map +1 -1
- package/fesm2022/hermes-ui-angular-layout-breadcrumbs.mjs.map +1 -1
- package/fesm2022/hermes-ui-angular-layout-main-container.mjs.map +1 -1
- package/fesm2022/hermes-ui-angular-layout-nav.mjs +48 -48
- package/fesm2022/hermes-ui-angular-layout-nav.mjs.map +1 -1
- package/fesm2022/hermes-ui-angular-layout-tabs.mjs +148 -148
- package/fesm2022/hermes-ui-angular-layout-tabs.mjs.map +1 -1
- package/fesm2022/hermes-ui-angular-layout-vertical-nav.mjs +382 -28
- package/fesm2022/hermes-ui-angular-layout-vertical-nav.mjs.map +1 -1
- package/fesm2022/hermes-ui-angular-layout.mjs.map +1 -1
- package/fesm2022/hermes-ui-angular-modal.mjs +2 -2
- package/fesm2022/hermes-ui-angular-modal.mjs.map +1 -1
- package/fesm2022/hermes-ui-angular-pagination.mjs +8 -8
- package/fesm2022/hermes-ui-angular-pagination.mjs.map +1 -1
- package/fesm2022/hermes-ui-angular-popover-common.mjs +26 -3
- package/fesm2022/hermes-ui-angular-popover-common.mjs.map +1 -1
- package/fesm2022/hermes-ui-angular-popover-dropdown.mjs.map +1 -1
- package/fesm2022/hermes-ui-angular-popover-signpost.mjs +68 -68
- package/fesm2022/hermes-ui-angular-popover-signpost.mjs.map +1 -1
- package/fesm2022/hermes-ui-angular-popover-tooltip.mjs.map +1 -1
- package/fesm2022/hermes-ui-angular-popover.mjs.map +1 -1
- package/fesm2022/hermes-ui-angular-progress-progress-bars.mjs +10 -10
- package/fesm2022/hermes-ui-angular-progress-progress-bars.mjs.map +1 -1
- package/fesm2022/hermes-ui-angular-progress-spinner.mjs.map +1 -1
- package/fesm2022/hermes-ui-angular-stepper.mjs +2 -2
- package/fesm2022/hermes-ui-angular-stepper.mjs.map +1 -1
- package/fesm2022/hermes-ui-angular-timeline.mjs +2 -2
- package/fesm2022/hermes-ui-angular-timeline.mjs.map +1 -1
- package/fesm2022/hermes-ui-angular-toast.mjs +6 -6
- package/fesm2022/hermes-ui-angular-toast.mjs.map +1 -1
- package/fesm2022/hermes-ui-angular-utils-conditional.mjs.map +1 -1
- package/fesm2022/hermes-ui-angular-utils.mjs +6 -0
- package/fesm2022/hermes-ui-angular-utils.mjs.map +1 -1
- package/fesm2022/hermes-ui-angular-wizard.mjs +58 -58
- package/fesm2022/hermes-ui-angular-wizard.mjs.map +1 -1
- package/fesm2022/hermes-ui-angular.mjs.map +1 -1
- package/forms/combobox/_combobox.clarity.scss +18 -4
- package/forms/combobox/_properties.combobox.scss +5 -5
- package/forms/styles/_input-group.clarity.scss +7 -0
- package/forms/styles/_mixins.forms.scss +12 -10
- package/forms/styles/_native-select.clarity.scss +17 -5
- package/forms/styles/_properties.forms.scss +29 -18
- package/forms/styles/_textarea.clarity.scss +4 -4
- package/forms/styles/_variables.forms.scss +6 -0
- package/hermes-ui.scss +7 -7
- package/layout/main-container/_properties.header.scss +44 -6
- package/layout/main-container/_variables.header.scss +11 -0
- package/layout/nav/_header.clarity.scss +14 -0
- package/layout/nav/_mixins.header.scss +55 -40
- package/layout/nav/_responsive-nav.clarity.scss +21 -10
- package/layout/vertical-nav/_properties.vertical-nav.scss +77 -27
- package/layout/vertical-nav/_variables.vertical-nav.scss +23 -0
- package/layout/vertical-nav/_vertical-nav.clarity.scss +418 -277
- package/package.json +1 -1
- package/toast/README.md +65 -65
- package/toast/_properties.toast.scss +56 -56
- package/toast/_toast.clarity.scss +190 -190
- package/toast/_variables.toast.scss +33 -33
- package/types/hermes-ui-angular-addons-theme-builder.d.ts +2 -2
- package/types/hermes-ui-angular-addons-theme-builder.d.ts.map +1 -1
- package/types/hermes-ui-angular-data-datagrid.d.ts.map +1 -1
- package/types/hermes-ui-angular-icon.d.ts +3 -3
- package/types/hermes-ui-angular-icon.d.ts.map +1 -1
- package/types/hermes-ui-angular-layout-vertical-nav.d.ts +134 -10
- package/types/hermes-ui-angular-layout-vertical-nav.d.ts.map +1 -1
- package/types/hermes-ui-angular-popover-common.d.ts +4 -3
- package/types/hermes-ui-angular-popover-common.d.ts.map +1 -1
- package/types/hermes-ui-angular-utils.d.ts +12 -0
- package/types/hermes-ui-angular-utils.d.ts.map +1 -1
- package/types/hermes-ui-angular-wizard.d.ts.map +1 -1
|
@@ -11,7 +11,7 @@ import * as i1 from '@hermes-ui/angular/popover/common';
|
|
|
11
11
|
import { HermesPopoverPosition, HermesPopoverType, DROPDOWN_POSITIONS, HermesPopoverHostDirective, HermesPopoverModuleNext } from '@hermes-ui/angular/popover/common';
|
|
12
12
|
import { Subject, tap } from 'rxjs';
|
|
13
13
|
import * as i5 from '@hermes-ui/angular/icon';
|
|
14
|
-
import {
|
|
14
|
+
import { HermesIcons, successStandardIcon, errorStandardIcon, angleIcon, eventIcon, calendarIcon, HermesIcon } from '@hermes-ui/angular/icon';
|
|
15
15
|
import * as i6 from '@hermes-ui/angular/layout/vertical-nav';
|
|
16
16
|
import { HermesVerticalNavModule } from '@hermes-ui/angular/layout/vertical-nav';
|
|
17
17
|
import * as i1$1 from '@angular/forms';
|
|
@@ -1114,128 +1114,128 @@ class HermesMonthpicker {
|
|
|
1114
1114
|
}
|
|
1115
1115
|
}
|
|
1116
1116
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HermesMonthpicker, deps: [{ token: LocaleHelperService }, { token: DateNavigationService }, { token: DatepickerFocusService }, { token: i0.ElementRef }, { token: ViewManagerService }, { token: i4.HermesCommonStringsService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1117
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: HermesMonthpicker, isStandalone: false, selector: "hermes-monthpicker", host: { attributes: { "role": "application" }, listeners: { "keydown": "onKeyDown($event)" }, properties: { "class.monthpicker": "true" } }, ngImport: i0, template: `
|
|
1118
|
-
<div class="calendar-header in-monthpicker">
|
|
1119
|
-
<div class="year-view-switcher">
|
|
1120
|
-
<button
|
|
1121
|
-
class="calendar-btn yearpicker-trigger"
|
|
1122
|
-
type="button"
|
|
1123
|
-
(click)="changeToYearView()"
|
|
1124
|
-
[attr.aria-label]="yearAttrString"
|
|
1125
|
-
[attr.title]="yearAttrString"
|
|
1126
|
-
>
|
|
1127
|
-
{{ calendarYear }}
|
|
1128
|
-
</button>
|
|
1129
|
-
</div>
|
|
1130
|
-
<div class="calendar-switchers">
|
|
1131
|
-
<button
|
|
1132
|
-
class="calendar-btn switcher"
|
|
1133
|
-
type="button"
|
|
1134
|
-
(click)="previousYear()"
|
|
1135
|
-
[attr.aria-label]="commonStrings.keys.datepickerPreviousMonth"
|
|
1136
|
-
>
|
|
1137
|
-
<hermes-icon shape="angle" direction="left" [attr.title]="commonStrings.keys.datepickerPreviousMonth"></hermes-icon>
|
|
1138
|
-
</button>
|
|
1139
|
-
<button
|
|
1140
|
-
class="calendar-btn switcher"
|
|
1141
|
-
type="button"
|
|
1142
|
-
(click)="currentYear()"
|
|
1143
|
-
[attr.aria-label]="commonStrings.keys.datepickerCurrentMonth"
|
|
1144
|
-
>
|
|
1145
|
-
<hermes-icon shape="event" [attr.title]="commonStrings.keys.datepickerCurrentMonth"></hermes-icon>
|
|
1146
|
-
</button>
|
|
1147
|
-
<button
|
|
1148
|
-
class="calendar-btn switcher"
|
|
1149
|
-
type="button"
|
|
1150
|
-
(click)="nextYear()"
|
|
1151
|
-
[attr.aria-label]="commonStrings.keys.datepickerNextMonth"
|
|
1152
|
-
>
|
|
1153
|
-
<hermes-icon shape="angle" direction="right" [attr.title]="commonStrings.keys.datepickerNextMonth"></hermes-icon>
|
|
1154
|
-
</button>
|
|
1155
|
-
</div>
|
|
1156
|
-
</div>
|
|
1157
|
-
<div class="months">
|
|
1158
|
-
@for (month of monthNames; track month; let monthIndex = $index) {
|
|
1159
|
-
<button
|
|
1160
|
-
type="button"
|
|
1161
|
-
class="calendar-btn month"
|
|
1162
|
-
(click)="changeMonth(monthIndex)"
|
|
1163
|
-
[class.is-selected]="isSelected(monthIndex)"
|
|
1164
|
-
[class.is-start-range]="getIsRangeStartMonth(monthIndex)"
|
|
1165
|
-
[class.is-end-range]="getIsRangeEndMonth(monthIndex)"
|
|
1166
|
-
[class.in-range]="isInRange(monthIndex)"
|
|
1167
|
-
[attr.tabindex]="getTabIndex(monthIndex)"
|
|
1168
|
-
[class.is-today]="calendarYear === currentCalendarYear && monthIndex === currentCalendarMonth"
|
|
1169
|
-
(mouseenter)="onHover(monthIndex)"
|
|
1170
|
-
>
|
|
1171
|
-
{{ month }}
|
|
1172
|
-
</button>
|
|
1173
|
-
}
|
|
1174
|
-
</div>
|
|
1117
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: HermesMonthpicker, isStandalone: false, selector: "hermes-monthpicker", host: { attributes: { "role": "application" }, listeners: { "keydown": "onKeyDown($event)" }, properties: { "class.monthpicker": "true" } }, ngImport: i0, template: `
|
|
1118
|
+
<div class="calendar-header in-monthpicker">
|
|
1119
|
+
<div class="year-view-switcher">
|
|
1120
|
+
<button
|
|
1121
|
+
class="calendar-btn yearpicker-trigger"
|
|
1122
|
+
type="button"
|
|
1123
|
+
(click)="changeToYearView()"
|
|
1124
|
+
[attr.aria-label]="yearAttrString"
|
|
1125
|
+
[attr.title]="yearAttrString"
|
|
1126
|
+
>
|
|
1127
|
+
{{ calendarYear }}
|
|
1128
|
+
</button>
|
|
1129
|
+
</div>
|
|
1130
|
+
<div class="calendar-switchers">
|
|
1131
|
+
<button
|
|
1132
|
+
class="calendar-btn switcher"
|
|
1133
|
+
type="button"
|
|
1134
|
+
(click)="previousYear()"
|
|
1135
|
+
[attr.aria-label]="commonStrings.keys.datepickerPreviousMonth"
|
|
1136
|
+
>
|
|
1137
|
+
<hermes-icon shape="angle" direction="left" [attr.title]="commonStrings.keys.datepickerPreviousMonth"></hermes-icon>
|
|
1138
|
+
</button>
|
|
1139
|
+
<button
|
|
1140
|
+
class="calendar-btn switcher"
|
|
1141
|
+
type="button"
|
|
1142
|
+
(click)="currentYear()"
|
|
1143
|
+
[attr.aria-label]="commonStrings.keys.datepickerCurrentMonth"
|
|
1144
|
+
>
|
|
1145
|
+
<hermes-icon shape="event" [attr.title]="commonStrings.keys.datepickerCurrentMonth"></hermes-icon>
|
|
1146
|
+
</button>
|
|
1147
|
+
<button
|
|
1148
|
+
class="calendar-btn switcher"
|
|
1149
|
+
type="button"
|
|
1150
|
+
(click)="nextYear()"
|
|
1151
|
+
[attr.aria-label]="commonStrings.keys.datepickerNextMonth"
|
|
1152
|
+
>
|
|
1153
|
+
<hermes-icon shape="angle" direction="right" [attr.title]="commonStrings.keys.datepickerNextMonth"></hermes-icon>
|
|
1154
|
+
</button>
|
|
1155
|
+
</div>
|
|
1156
|
+
</div>
|
|
1157
|
+
<div class="months">
|
|
1158
|
+
@for (month of monthNames; track month; let monthIndex = $index) {
|
|
1159
|
+
<button
|
|
1160
|
+
type="button"
|
|
1161
|
+
class="calendar-btn month"
|
|
1162
|
+
(click)="changeMonth(monthIndex)"
|
|
1163
|
+
[class.is-selected]="isSelected(monthIndex)"
|
|
1164
|
+
[class.is-start-range]="getIsRangeStartMonth(monthIndex)"
|
|
1165
|
+
[class.is-end-range]="getIsRangeEndMonth(monthIndex)"
|
|
1166
|
+
[class.in-range]="isInRange(monthIndex)"
|
|
1167
|
+
[attr.tabindex]="getTabIndex(monthIndex)"
|
|
1168
|
+
[class.is-today]="calendarYear === currentCalendarYear && monthIndex === currentCalendarMonth"
|
|
1169
|
+
(mouseenter)="onHover(monthIndex)"
|
|
1170
|
+
>
|
|
1171
|
+
{{ month }}
|
|
1172
|
+
</button>
|
|
1173
|
+
}
|
|
1174
|
+
</div>
|
|
1175
1175
|
`, isInline: true, dependencies: [{ kind: "component", type: i5.HermesIcon, selector: "hermes-icon, hermes-icon", inputs: ["shape", "size", "direction", "flip", "solid", "status", "inverse", "badge"] }] }); }
|
|
1176
1176
|
}
|
|
1177
1177
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HermesMonthpicker, decorators: [{
|
|
1178
1178
|
type: Component,
|
|
1179
1179
|
args: [{
|
|
1180
1180
|
selector: 'hermes-monthpicker',
|
|
1181
|
-
template: `
|
|
1182
|
-
<div class="calendar-header in-monthpicker">
|
|
1183
|
-
<div class="year-view-switcher">
|
|
1184
|
-
<button
|
|
1185
|
-
class="calendar-btn yearpicker-trigger"
|
|
1186
|
-
type="button"
|
|
1187
|
-
(click)="changeToYearView()"
|
|
1188
|
-
[attr.aria-label]="yearAttrString"
|
|
1189
|
-
[attr.title]="yearAttrString"
|
|
1190
|
-
>
|
|
1191
|
-
{{ calendarYear }}
|
|
1192
|
-
</button>
|
|
1193
|
-
</div>
|
|
1194
|
-
<div class="calendar-switchers">
|
|
1195
|
-
<button
|
|
1196
|
-
class="calendar-btn switcher"
|
|
1197
|
-
type="button"
|
|
1198
|
-
(click)="previousYear()"
|
|
1199
|
-
[attr.aria-label]="commonStrings.keys.datepickerPreviousMonth"
|
|
1200
|
-
>
|
|
1201
|
-
<hermes-icon shape="angle" direction="left" [attr.title]="commonStrings.keys.datepickerPreviousMonth"></hermes-icon>
|
|
1202
|
-
</button>
|
|
1203
|
-
<button
|
|
1204
|
-
class="calendar-btn switcher"
|
|
1205
|
-
type="button"
|
|
1206
|
-
(click)="currentYear()"
|
|
1207
|
-
[attr.aria-label]="commonStrings.keys.datepickerCurrentMonth"
|
|
1208
|
-
>
|
|
1209
|
-
<hermes-icon shape="event" [attr.title]="commonStrings.keys.datepickerCurrentMonth"></hermes-icon>
|
|
1210
|
-
</button>
|
|
1211
|
-
<button
|
|
1212
|
-
class="calendar-btn switcher"
|
|
1213
|
-
type="button"
|
|
1214
|
-
(click)="nextYear()"
|
|
1215
|
-
[attr.aria-label]="commonStrings.keys.datepickerNextMonth"
|
|
1216
|
-
>
|
|
1217
|
-
<hermes-icon shape="angle" direction="right" [attr.title]="commonStrings.keys.datepickerNextMonth"></hermes-icon>
|
|
1218
|
-
</button>
|
|
1219
|
-
</div>
|
|
1220
|
-
</div>
|
|
1221
|
-
<div class="months">
|
|
1222
|
-
@for (month of monthNames; track month; let monthIndex = $index) {
|
|
1223
|
-
<button
|
|
1224
|
-
type="button"
|
|
1225
|
-
class="calendar-btn month"
|
|
1226
|
-
(click)="changeMonth(monthIndex)"
|
|
1227
|
-
[class.is-selected]="isSelected(monthIndex)"
|
|
1228
|
-
[class.is-start-range]="getIsRangeStartMonth(monthIndex)"
|
|
1229
|
-
[class.is-end-range]="getIsRangeEndMonth(monthIndex)"
|
|
1230
|
-
[class.in-range]="isInRange(monthIndex)"
|
|
1231
|
-
[attr.tabindex]="getTabIndex(monthIndex)"
|
|
1232
|
-
[class.is-today]="calendarYear === currentCalendarYear && monthIndex === currentCalendarMonth"
|
|
1233
|
-
(mouseenter)="onHover(monthIndex)"
|
|
1234
|
-
>
|
|
1235
|
-
{{ month }}
|
|
1236
|
-
</button>
|
|
1237
|
-
}
|
|
1238
|
-
</div>
|
|
1181
|
+
template: `
|
|
1182
|
+
<div class="calendar-header in-monthpicker">
|
|
1183
|
+
<div class="year-view-switcher">
|
|
1184
|
+
<button
|
|
1185
|
+
class="calendar-btn yearpicker-trigger"
|
|
1186
|
+
type="button"
|
|
1187
|
+
(click)="changeToYearView()"
|
|
1188
|
+
[attr.aria-label]="yearAttrString"
|
|
1189
|
+
[attr.title]="yearAttrString"
|
|
1190
|
+
>
|
|
1191
|
+
{{ calendarYear }}
|
|
1192
|
+
</button>
|
|
1193
|
+
</div>
|
|
1194
|
+
<div class="calendar-switchers">
|
|
1195
|
+
<button
|
|
1196
|
+
class="calendar-btn switcher"
|
|
1197
|
+
type="button"
|
|
1198
|
+
(click)="previousYear()"
|
|
1199
|
+
[attr.aria-label]="commonStrings.keys.datepickerPreviousMonth"
|
|
1200
|
+
>
|
|
1201
|
+
<hermes-icon shape="angle" direction="left" [attr.title]="commonStrings.keys.datepickerPreviousMonth"></hermes-icon>
|
|
1202
|
+
</button>
|
|
1203
|
+
<button
|
|
1204
|
+
class="calendar-btn switcher"
|
|
1205
|
+
type="button"
|
|
1206
|
+
(click)="currentYear()"
|
|
1207
|
+
[attr.aria-label]="commonStrings.keys.datepickerCurrentMonth"
|
|
1208
|
+
>
|
|
1209
|
+
<hermes-icon shape="event" [attr.title]="commonStrings.keys.datepickerCurrentMonth"></hermes-icon>
|
|
1210
|
+
</button>
|
|
1211
|
+
<button
|
|
1212
|
+
class="calendar-btn switcher"
|
|
1213
|
+
type="button"
|
|
1214
|
+
(click)="nextYear()"
|
|
1215
|
+
[attr.aria-label]="commonStrings.keys.datepickerNextMonth"
|
|
1216
|
+
>
|
|
1217
|
+
<hermes-icon shape="angle" direction="right" [attr.title]="commonStrings.keys.datepickerNextMonth"></hermes-icon>
|
|
1218
|
+
</button>
|
|
1219
|
+
</div>
|
|
1220
|
+
</div>
|
|
1221
|
+
<div class="months">
|
|
1222
|
+
@for (month of monthNames; track month; let monthIndex = $index) {
|
|
1223
|
+
<button
|
|
1224
|
+
type="button"
|
|
1225
|
+
class="calendar-btn month"
|
|
1226
|
+
(click)="changeMonth(monthIndex)"
|
|
1227
|
+
[class.is-selected]="isSelected(monthIndex)"
|
|
1228
|
+
[class.is-start-range]="getIsRangeStartMonth(monthIndex)"
|
|
1229
|
+
[class.is-end-range]="getIsRangeEndMonth(monthIndex)"
|
|
1230
|
+
[class.in-range]="isInRange(monthIndex)"
|
|
1231
|
+
[attr.tabindex]="getTabIndex(monthIndex)"
|
|
1232
|
+
[class.is-today]="calendarYear === currentCalendarYear && monthIndex === currentCalendarMonth"
|
|
1233
|
+
(mouseenter)="onHover(monthIndex)"
|
|
1234
|
+
>
|
|
1235
|
+
{{ month }}
|
|
1236
|
+
</button>
|
|
1237
|
+
}
|
|
1238
|
+
</div>
|
|
1239
1239
|
`,
|
|
1240
1240
|
host: {
|
|
1241
1241
|
'[class.monthpicker]': 'true',
|
|
@@ -1473,126 +1473,126 @@ class HermesYearpicker {
|
|
|
1473
1473
|
this._datepickerFocusService.focusCell(this._elRef);
|
|
1474
1474
|
}
|
|
1475
1475
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HermesYearpicker, deps: [{ token: DateNavigationService }, { token: ViewManagerService }, { token: DatepickerFocusService }, { token: i0.ElementRef }, { token: i4.HermesCommonStringsService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1476
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: HermesYearpicker, isStandalone: false, selector: "hermes-yearpicker", host: { attributes: { "role": "application" }, listeners: { "keydown": "onKeyDown($event)" }, properties: { "class.yearpicker": "true" } }, ngImport: i0, template: `
|
|
1477
|
-
<div class="calendar-header">
|
|
1478
|
-
<div class="calendar-pickers">
|
|
1479
|
-
<button class="calendar-btn yearpicker-trigger year-range" type="button" (click)="changeToDayView()">
|
|
1480
|
-
{{ yearRangeModel.yearRange[0] }} - {{ yearRangeModel.yearRange[yearRangeModel.yearRange.length - 1] }}
|
|
1481
|
-
</button>
|
|
1482
|
-
</div>
|
|
1483
|
-
<div class="year-switchers">
|
|
1484
|
-
<button
|
|
1485
|
-
class="calendar-btn switcher"
|
|
1486
|
-
type="button"
|
|
1487
|
-
(click)="previousDecade()"
|
|
1488
|
-
[attr.aria-label]="commonStrings.keys.datepickerPreviousDecade"
|
|
1489
|
-
>
|
|
1490
|
-
<hermes-icon
|
|
1491
|
-
shape="angle"
|
|
1492
|
-
direction="left"
|
|
1493
|
-
[attr.title]="commonStrings.keys.datepickerPreviousDecade"
|
|
1494
|
-
></hermes-icon>
|
|
1495
|
-
</button>
|
|
1496
|
-
<button
|
|
1497
|
-
class="calendar-btn switcher"
|
|
1498
|
-
type="button"
|
|
1499
|
-
(click)="currentDecade()"
|
|
1500
|
-
[attr.aria-label]="commonStrings.keys.datepickerCurrentDecade"
|
|
1501
|
-
>
|
|
1502
|
-
<hermes-icon shape="event" [attr.title]="commonStrings.keys.datepickerCurrentDecade"></hermes-icon>
|
|
1503
|
-
</button>
|
|
1504
|
-
<button
|
|
1505
|
-
class="calendar-btn switcher"
|
|
1506
|
-
type="button"
|
|
1507
|
-
(click)="nextDecade()"
|
|
1508
|
-
[attr.aria-label]="commonStrings.keys.datepickerNextDecade"
|
|
1509
|
-
>
|
|
1510
|
-
<hermes-icon shape="angle" direction="right" [attr.title]="commonStrings.keys.datepickerNextDecade"></hermes-icon>
|
|
1511
|
-
</button>
|
|
1512
|
-
</div>
|
|
1513
|
-
</div>
|
|
1514
|
-
|
|
1515
|
-
<div class="years">
|
|
1516
|
-
@for (year of yearRangeModel.yearRange; track year) {
|
|
1517
|
-
<button
|
|
1518
|
-
type="button"
|
|
1519
|
-
class="calendar-btn year"
|
|
1520
|
-
[attr.tabindex]="getTabIndex(year)"
|
|
1521
|
-
[class.is-selected]="year === selectedStartYear || year === selectedEndYear"
|
|
1522
|
-
[class.is-start-range]="getIsRangeStartYear(year)"
|
|
1523
|
-
[class.is-end-range]="getIsRangeEndYear(year)"
|
|
1524
|
-
[class.in-range]="isInRange(year)"
|
|
1525
|
-
[class.is-today]="isCurrentCalendarYear(year)"
|
|
1526
|
-
(click)="changeYear(year)"
|
|
1527
|
-
(mouseenter)="onHover(year)"
|
|
1528
|
-
>
|
|
1529
|
-
{{ year }}
|
|
1530
|
-
</button>
|
|
1531
|
-
}
|
|
1532
|
-
</div>
|
|
1476
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: HermesYearpicker, isStandalone: false, selector: "hermes-yearpicker", host: { attributes: { "role": "application" }, listeners: { "keydown": "onKeyDown($event)" }, properties: { "class.yearpicker": "true" } }, ngImport: i0, template: `
|
|
1477
|
+
<div class="calendar-header">
|
|
1478
|
+
<div class="calendar-pickers">
|
|
1479
|
+
<button class="calendar-btn yearpicker-trigger year-range" type="button" (click)="changeToDayView()">
|
|
1480
|
+
{{ yearRangeModel.yearRange[0] }} - {{ yearRangeModel.yearRange[yearRangeModel.yearRange.length - 1] }}
|
|
1481
|
+
</button>
|
|
1482
|
+
</div>
|
|
1483
|
+
<div class="year-switchers">
|
|
1484
|
+
<button
|
|
1485
|
+
class="calendar-btn switcher"
|
|
1486
|
+
type="button"
|
|
1487
|
+
(click)="previousDecade()"
|
|
1488
|
+
[attr.aria-label]="commonStrings.keys.datepickerPreviousDecade"
|
|
1489
|
+
>
|
|
1490
|
+
<hermes-icon
|
|
1491
|
+
shape="angle"
|
|
1492
|
+
direction="left"
|
|
1493
|
+
[attr.title]="commonStrings.keys.datepickerPreviousDecade"
|
|
1494
|
+
></hermes-icon>
|
|
1495
|
+
</button>
|
|
1496
|
+
<button
|
|
1497
|
+
class="calendar-btn switcher"
|
|
1498
|
+
type="button"
|
|
1499
|
+
(click)="currentDecade()"
|
|
1500
|
+
[attr.aria-label]="commonStrings.keys.datepickerCurrentDecade"
|
|
1501
|
+
>
|
|
1502
|
+
<hermes-icon shape="event" [attr.title]="commonStrings.keys.datepickerCurrentDecade"></hermes-icon>
|
|
1503
|
+
</button>
|
|
1504
|
+
<button
|
|
1505
|
+
class="calendar-btn switcher"
|
|
1506
|
+
type="button"
|
|
1507
|
+
(click)="nextDecade()"
|
|
1508
|
+
[attr.aria-label]="commonStrings.keys.datepickerNextDecade"
|
|
1509
|
+
>
|
|
1510
|
+
<hermes-icon shape="angle" direction="right" [attr.title]="commonStrings.keys.datepickerNextDecade"></hermes-icon>
|
|
1511
|
+
</button>
|
|
1512
|
+
</div>
|
|
1513
|
+
</div>
|
|
1514
|
+
|
|
1515
|
+
<div class="years">
|
|
1516
|
+
@for (year of yearRangeModel.yearRange; track year) {
|
|
1517
|
+
<button
|
|
1518
|
+
type="button"
|
|
1519
|
+
class="calendar-btn year"
|
|
1520
|
+
[attr.tabindex]="getTabIndex(year)"
|
|
1521
|
+
[class.is-selected]="year === selectedStartYear || year === selectedEndYear"
|
|
1522
|
+
[class.is-start-range]="getIsRangeStartYear(year)"
|
|
1523
|
+
[class.is-end-range]="getIsRangeEndYear(year)"
|
|
1524
|
+
[class.in-range]="isInRange(year)"
|
|
1525
|
+
[class.is-today]="isCurrentCalendarYear(year)"
|
|
1526
|
+
(click)="changeYear(year)"
|
|
1527
|
+
(mouseenter)="onHover(year)"
|
|
1528
|
+
>
|
|
1529
|
+
{{ year }}
|
|
1530
|
+
</button>
|
|
1531
|
+
}
|
|
1532
|
+
</div>
|
|
1533
1533
|
`, isInline: true, dependencies: [{ kind: "component", type: i5.HermesIcon, selector: "hermes-icon, hermes-icon", inputs: ["shape", "size", "direction", "flip", "solid", "status", "inverse", "badge"] }] }); }
|
|
1534
1534
|
}
|
|
1535
1535
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HermesYearpicker, decorators: [{
|
|
1536
1536
|
type: Component,
|
|
1537
1537
|
args: [{
|
|
1538
1538
|
selector: 'hermes-yearpicker',
|
|
1539
|
-
template: `
|
|
1540
|
-
<div class="calendar-header">
|
|
1541
|
-
<div class="calendar-pickers">
|
|
1542
|
-
<button class="calendar-btn yearpicker-trigger year-range" type="button" (click)="changeToDayView()">
|
|
1543
|
-
{{ yearRangeModel.yearRange[0] }} - {{ yearRangeModel.yearRange[yearRangeModel.yearRange.length - 1] }}
|
|
1544
|
-
</button>
|
|
1545
|
-
</div>
|
|
1546
|
-
<div class="year-switchers">
|
|
1547
|
-
<button
|
|
1548
|
-
class="calendar-btn switcher"
|
|
1549
|
-
type="button"
|
|
1550
|
-
(click)="previousDecade()"
|
|
1551
|
-
[attr.aria-label]="commonStrings.keys.datepickerPreviousDecade"
|
|
1552
|
-
>
|
|
1553
|
-
<hermes-icon
|
|
1554
|
-
shape="angle"
|
|
1555
|
-
direction="left"
|
|
1556
|
-
[attr.title]="commonStrings.keys.datepickerPreviousDecade"
|
|
1557
|
-
></hermes-icon>
|
|
1558
|
-
</button>
|
|
1559
|
-
<button
|
|
1560
|
-
class="calendar-btn switcher"
|
|
1561
|
-
type="button"
|
|
1562
|
-
(click)="currentDecade()"
|
|
1563
|
-
[attr.aria-label]="commonStrings.keys.datepickerCurrentDecade"
|
|
1564
|
-
>
|
|
1565
|
-
<hermes-icon shape="event" [attr.title]="commonStrings.keys.datepickerCurrentDecade"></hermes-icon>
|
|
1566
|
-
</button>
|
|
1567
|
-
<button
|
|
1568
|
-
class="calendar-btn switcher"
|
|
1569
|
-
type="button"
|
|
1570
|
-
(click)="nextDecade()"
|
|
1571
|
-
[attr.aria-label]="commonStrings.keys.datepickerNextDecade"
|
|
1572
|
-
>
|
|
1573
|
-
<hermes-icon shape="angle" direction="right" [attr.title]="commonStrings.keys.datepickerNextDecade"></hermes-icon>
|
|
1574
|
-
</button>
|
|
1575
|
-
</div>
|
|
1576
|
-
</div>
|
|
1577
|
-
|
|
1578
|
-
<div class="years">
|
|
1579
|
-
@for (year of yearRangeModel.yearRange; track year) {
|
|
1580
|
-
<button
|
|
1581
|
-
type="button"
|
|
1582
|
-
class="calendar-btn year"
|
|
1583
|
-
[attr.tabindex]="getTabIndex(year)"
|
|
1584
|
-
[class.is-selected]="year === selectedStartYear || year === selectedEndYear"
|
|
1585
|
-
[class.is-start-range]="getIsRangeStartYear(year)"
|
|
1586
|
-
[class.is-end-range]="getIsRangeEndYear(year)"
|
|
1587
|
-
[class.in-range]="isInRange(year)"
|
|
1588
|
-
[class.is-today]="isCurrentCalendarYear(year)"
|
|
1589
|
-
(click)="changeYear(year)"
|
|
1590
|
-
(mouseenter)="onHover(year)"
|
|
1591
|
-
>
|
|
1592
|
-
{{ year }}
|
|
1593
|
-
</button>
|
|
1594
|
-
}
|
|
1595
|
-
</div>
|
|
1539
|
+
template: `
|
|
1540
|
+
<div class="calendar-header">
|
|
1541
|
+
<div class="calendar-pickers">
|
|
1542
|
+
<button class="calendar-btn yearpicker-trigger year-range" type="button" (click)="changeToDayView()">
|
|
1543
|
+
{{ yearRangeModel.yearRange[0] }} - {{ yearRangeModel.yearRange[yearRangeModel.yearRange.length - 1] }}
|
|
1544
|
+
</button>
|
|
1545
|
+
</div>
|
|
1546
|
+
<div class="year-switchers">
|
|
1547
|
+
<button
|
|
1548
|
+
class="calendar-btn switcher"
|
|
1549
|
+
type="button"
|
|
1550
|
+
(click)="previousDecade()"
|
|
1551
|
+
[attr.aria-label]="commonStrings.keys.datepickerPreviousDecade"
|
|
1552
|
+
>
|
|
1553
|
+
<hermes-icon
|
|
1554
|
+
shape="angle"
|
|
1555
|
+
direction="left"
|
|
1556
|
+
[attr.title]="commonStrings.keys.datepickerPreviousDecade"
|
|
1557
|
+
></hermes-icon>
|
|
1558
|
+
</button>
|
|
1559
|
+
<button
|
|
1560
|
+
class="calendar-btn switcher"
|
|
1561
|
+
type="button"
|
|
1562
|
+
(click)="currentDecade()"
|
|
1563
|
+
[attr.aria-label]="commonStrings.keys.datepickerCurrentDecade"
|
|
1564
|
+
>
|
|
1565
|
+
<hermes-icon shape="event" [attr.title]="commonStrings.keys.datepickerCurrentDecade"></hermes-icon>
|
|
1566
|
+
</button>
|
|
1567
|
+
<button
|
|
1568
|
+
class="calendar-btn switcher"
|
|
1569
|
+
type="button"
|
|
1570
|
+
(click)="nextDecade()"
|
|
1571
|
+
[attr.aria-label]="commonStrings.keys.datepickerNextDecade"
|
|
1572
|
+
>
|
|
1573
|
+
<hermes-icon shape="angle" direction="right" [attr.title]="commonStrings.keys.datepickerNextDecade"></hermes-icon>
|
|
1574
|
+
</button>
|
|
1575
|
+
</div>
|
|
1576
|
+
</div>
|
|
1577
|
+
|
|
1578
|
+
<div class="years">
|
|
1579
|
+
@for (year of yearRangeModel.yearRange; track year) {
|
|
1580
|
+
<button
|
|
1581
|
+
type="button"
|
|
1582
|
+
class="calendar-btn year"
|
|
1583
|
+
[attr.tabindex]="getTabIndex(year)"
|
|
1584
|
+
[class.is-selected]="year === selectedStartYear || year === selectedEndYear"
|
|
1585
|
+
[class.is-start-range]="getIsRangeStartYear(year)"
|
|
1586
|
+
[class.is-end-range]="getIsRangeEndYear(year)"
|
|
1587
|
+
[class.in-range]="isInRange(year)"
|
|
1588
|
+
[class.is-today]="isCurrentCalendarYear(year)"
|
|
1589
|
+
(click)="changeYear(year)"
|
|
1590
|
+
(mouseenter)="onHover(year)"
|
|
1591
|
+
>
|
|
1592
|
+
{{ year }}
|
|
1593
|
+
</button>
|
|
1594
|
+
}
|
|
1595
|
+
</div>
|
|
1596
1596
|
`,
|
|
1597
1597
|
host: {
|
|
1598
1598
|
'[class.yearpicker]': 'true',
|
|
@@ -1889,52 +1889,52 @@ class HermesDay {
|
|
|
1889
1889
|
}
|
|
1890
1890
|
}
|
|
1891
1891
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HermesDay, deps: [{ token: DateNavigationService }, { token: i4.HermesCommonStringsService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1892
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.22", type: HermesDay, isStandalone: false, selector: "hermes-day", inputs: { dayView: ["hermesDayView", "dayView"] }, outputs: { onSelectDay: "selectDay" }, host: { listeners: { "mouseenter": "hoverListener()" }, properties: { "class.day": "true" } }, ngImport: i0, template: `
|
|
1893
|
-
<button
|
|
1894
|
-
class="day-btn"
|
|
1895
|
-
type="button"
|
|
1896
|
-
[class.is-today]="dayView.isTodaysDate"
|
|
1897
|
-
[class.is-excluded]="dayView.isExcluded"
|
|
1898
|
-
[class.is-disabled]="dayView.isDisabled"
|
|
1899
|
-
[class.is-selected]="dayView.isSelected"
|
|
1900
|
-
[class.in-range]="isInRange()"
|
|
1901
|
-
[class.is-start-range]="isRangeStartDay"
|
|
1902
|
-
[class.is-end-range]="isRangeEndDay"
|
|
1903
|
-
[attr.tabindex]="dayView.tabIndex"
|
|
1904
|
-
(click)="selectDay()"
|
|
1905
|
-
(focus)="onDayViewFocus()"
|
|
1906
|
-
[attr.aria-current]="dayView.isTodaysDate ? 'date' : 'false'"
|
|
1907
|
-
[attr.aria-label]="dayString"
|
|
1908
|
-
[attr.aria-selected]="dayView.isSelected"
|
|
1909
|
-
>
|
|
1910
|
-
{{ dayView.dayModel.date }}
|
|
1911
|
-
</button>
|
|
1892
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.22", type: HermesDay, isStandalone: false, selector: "hermes-day", inputs: { dayView: ["hermesDayView", "dayView"] }, outputs: { onSelectDay: "selectDay" }, host: { listeners: { "mouseenter": "hoverListener()" }, properties: { "class.day": "true" } }, ngImport: i0, template: `
|
|
1893
|
+
<button
|
|
1894
|
+
class="day-btn"
|
|
1895
|
+
type="button"
|
|
1896
|
+
[class.is-today]="dayView.isTodaysDate"
|
|
1897
|
+
[class.is-excluded]="dayView.isExcluded"
|
|
1898
|
+
[class.is-disabled]="dayView.isDisabled"
|
|
1899
|
+
[class.is-selected]="dayView.isSelected"
|
|
1900
|
+
[class.in-range]="isInRange()"
|
|
1901
|
+
[class.is-start-range]="isRangeStartDay"
|
|
1902
|
+
[class.is-end-range]="isRangeEndDay"
|
|
1903
|
+
[attr.tabindex]="dayView.tabIndex"
|
|
1904
|
+
(click)="selectDay()"
|
|
1905
|
+
(focus)="onDayViewFocus()"
|
|
1906
|
+
[attr.aria-current]="dayView.isTodaysDate ? 'date' : 'false'"
|
|
1907
|
+
[attr.aria-label]="dayString"
|
|
1908
|
+
[attr.aria-selected]="dayView.isSelected"
|
|
1909
|
+
>
|
|
1910
|
+
{{ dayView.dayModel.date }}
|
|
1911
|
+
</button>
|
|
1912
1912
|
`, isInline: true }); }
|
|
1913
1913
|
}
|
|
1914
1914
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HermesDay, decorators: [{
|
|
1915
1915
|
type: Component,
|
|
1916
1916
|
args: [{
|
|
1917
1917
|
selector: 'hermes-day',
|
|
1918
|
-
template: `
|
|
1919
|
-
<button
|
|
1920
|
-
class="day-btn"
|
|
1921
|
-
type="button"
|
|
1922
|
-
[class.is-today]="dayView.isTodaysDate"
|
|
1923
|
-
[class.is-excluded]="dayView.isExcluded"
|
|
1924
|
-
[class.is-disabled]="dayView.isDisabled"
|
|
1925
|
-
[class.is-selected]="dayView.isSelected"
|
|
1926
|
-
[class.in-range]="isInRange()"
|
|
1927
|
-
[class.is-start-range]="isRangeStartDay"
|
|
1928
|
-
[class.is-end-range]="isRangeEndDay"
|
|
1929
|
-
[attr.tabindex]="dayView.tabIndex"
|
|
1930
|
-
(click)="selectDay()"
|
|
1931
|
-
(focus)="onDayViewFocus()"
|
|
1932
|
-
[attr.aria-current]="dayView.isTodaysDate ? 'date' : 'false'"
|
|
1933
|
-
[attr.aria-label]="dayString"
|
|
1934
|
-
[attr.aria-selected]="dayView.isSelected"
|
|
1935
|
-
>
|
|
1936
|
-
{{ dayView.dayModel.date }}
|
|
1937
|
-
</button>
|
|
1918
|
+
template: `
|
|
1919
|
+
<button
|
|
1920
|
+
class="day-btn"
|
|
1921
|
+
type="button"
|
|
1922
|
+
[class.is-today]="dayView.isTodaysDate"
|
|
1923
|
+
[class.is-excluded]="dayView.isExcluded"
|
|
1924
|
+
[class.is-disabled]="dayView.isDisabled"
|
|
1925
|
+
[class.is-selected]="dayView.isSelected"
|
|
1926
|
+
[class.in-range]="isInRange()"
|
|
1927
|
+
[class.is-start-range]="isRangeStartDay"
|
|
1928
|
+
[class.is-end-range]="isRangeEndDay"
|
|
1929
|
+
[attr.tabindex]="dayView.tabIndex"
|
|
1930
|
+
(click)="selectDay()"
|
|
1931
|
+
(focus)="onDayViewFocus()"
|
|
1932
|
+
[attr.aria-current]="dayView.isTodaysDate ? 'date' : 'false'"
|
|
1933
|
+
[attr.aria-label]="dayString"
|
|
1934
|
+
[attr.aria-selected]="dayView.isSelected"
|
|
1935
|
+
>
|
|
1936
|
+
{{ dayView.dayModel.date }}
|
|
1937
|
+
</button>
|
|
1938
1938
|
`,
|
|
1939
1939
|
host: { '[class.day]': 'true' },
|
|
1940
1940
|
standalone: false,
|
|
@@ -2218,18 +2218,18 @@ class HermesDatepickerActions {
|
|
|
2218
2218
|
this.popoverService.open = false;
|
|
2219
2219
|
}
|
|
2220
2220
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HermesDatepickerActions, deps: [{ token: i4.HermesCommonStringsService }, { token: i1.HermesPopoverService }, { token: DateNavigationService }, { token: DateFormControlService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2221
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.22", type: HermesDatepickerActions, isStandalone: false, selector: "hermes-datepicker-actions", host: { properties: { "class.datepicker-actions": "true" } }, ngImport: i0, template: `
|
|
2222
|
-
<button class="btn btn-outline" (click)="cancel()">{{ commonStrings.keys.cancel }}</button>
|
|
2223
|
-
<button class="btn btn-primary" (click)="apply()">{{ commonStrings.keys.apply }}</button>
|
|
2221
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.22", type: HermesDatepickerActions, isStandalone: false, selector: "hermes-datepicker-actions", host: { properties: { "class.datepicker-actions": "true" } }, ngImport: i0, template: `
|
|
2222
|
+
<button class="btn btn-outline" (click)="cancel()">{{ commonStrings.keys.cancel }}</button>
|
|
2223
|
+
<button class="btn btn-primary" (click)="apply()">{{ commonStrings.keys.apply }}</button>
|
|
2224
2224
|
`, isInline: true }); }
|
|
2225
2225
|
}
|
|
2226
2226
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HermesDatepickerActions, decorators: [{
|
|
2227
2227
|
type: Component,
|
|
2228
2228
|
args: [{
|
|
2229
2229
|
selector: 'hermes-datepicker-actions',
|
|
2230
|
-
template: `
|
|
2231
|
-
<button class="btn btn-outline" (click)="cancel()">{{ commonStrings.keys.cancel }}</button>
|
|
2232
|
-
<button class="btn btn-primary" (click)="apply()">{{ commonStrings.keys.apply }}</button>
|
|
2230
|
+
template: `
|
|
2231
|
+
<button class="btn btn-outline" (click)="cancel()">{{ commonStrings.keys.cancel }}</button>
|
|
2232
|
+
<button class="btn btn-primary" (click)="apply()">{{ commonStrings.keys.apply }}</button>
|
|
2233
2233
|
`,
|
|
2234
2234
|
host: {
|
|
2235
2235
|
'[class.datepicker-actions]': 'true',
|
|
@@ -2284,7 +2284,7 @@ class HermesDatepickerViewManager {
|
|
|
2284
2284
|
this.dateNavigationService.moveToSpecificMonth(startDate);
|
|
2285
2285
|
}
|
|
2286
2286
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HermesDatepickerViewManager, deps: [{ token: i4.HermesCommonStringsService }, { token: ViewManagerService }, { token: DateNavigationService }, { token: DateIOService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2287
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: HermesDatepickerViewManager, isStandalone: false, selector: "hermes-datepicker-view-manager", host: { attributes: { "role": "dialog" }, properties: { "class.datepicker": "true", "class.has-range-option": "hasRangeOptions", "class.has-action-buttons": "hasActionButtons", "attr.aria-modal": "true", "attr.aria-label": "commonStrings.keys.datepickerDialogLabel" } }, providers: [DatepickerFocusService], ngImport: i0, template: "<!--\r\n ~ Copyright (c) 2016-2026 Broadcom. All Rights Reserved.\r\n ~ The term \"Broadcom\" refers to Broadcom Inc. and/or its subsidiaries.\r\n ~ This software is released under MIT license.\r\n ~ The full license information can be found in LICENSE in the root directory of this project.\r\n -->\r\n\r\n@if (hasRangeOptions) {\r\n<hermes-vertical-nav class=\"hermes-date-range-picker-nav\">\r\n @for (option of dateRangeOptions; track option) {\r\n <a\r\n hermesVerticalNavLink\r\n href=\"javascript:void(0)\"\r\n [attr.aria-label]=\"option?.label\"\r\n tabindex=\"0\"\r\n (keyup.enter)=\"onRangeOptionSelect(option)\"\r\n (click)=\"onRangeOptionSelect(option)\"\r\n >\r\n {{option.label}}\r\n </a>\r\n }\r\n</hermes-vertical-nav>\r\n<ng-container *ngTemplateOutlet=\"calendarView\"></ng-container>\r\n} @else {\r\n<div class=\"datepicker-view-manager\">\r\n @if (isMonthView) {\r\n <hermes-monthpicker></hermes-monthpicker>\r\n } @if (isYearView) {\r\n <hermes-yearpicker></hermes-yearpicker>\r\n } @if (isDayView) {\r\n <hermes-daypicker></hermes-daypicker>\r\n } @if (hasActionButtons) {\r\n <hermes-datepicker-actions></hermes-datepicker-actions>\r\n }\r\n</div>\r\n}\r\n\r\n<ng-template #calendarView>\r\n <div class=\"datepicker-view-manager\">\r\n @if (isMonthView) {\r\n <hermes-monthpicker></hermes-monthpicker>\r\n } @if (isYearView) {\r\n <hermes-yearpicker></hermes-yearpicker>\r\n } @if (isDayView) {\r\n <hermes-daypicker></hermes-daypicker>\r\n } @if (hasActionButtons) {\r\n <hermes-datepicker-actions></hermes-datepicker-actions>\r\n }\r\n </div>\r\n</ng-template>\r\n", dependencies: [{ kind: "directive", type: i5$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i6.HermesVerticalNav, selector: "hermes-vertical-nav", inputs: ["hermesVerticalNavToggleLabel", "hermesVerticalNavPinnable", "hermesVerticalNavCollapsible", "hermesVerticalNavCollapsed"], outputs: ["hermesVerticalNavCollapsedChange"] }, { kind: "component", type: i6.HermesVerticalNavLink, selector: "[hermesVerticalNavLink]" }, { kind: "component", type: HermesMonthpicker, selector: "hermes-monthpicker" }, { kind: "component", type: HermesYearpicker, selector: "hermes-yearpicker" }, { kind: "component", type: HermesDaypicker, selector: "hermes-daypicker" }, { kind: "component", type: HermesDatepickerActions, selector: "hermes-datepicker-actions" }] }); }
|
|
2287
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: HermesDatepickerViewManager, isStandalone: false, selector: "hermes-datepicker-view-manager", host: { attributes: { "role": "dialog" }, properties: { "class.datepicker": "true", "class.has-range-option": "hasRangeOptions", "class.has-action-buttons": "hasActionButtons", "attr.aria-modal": "true", "attr.aria-label": "commonStrings.keys.datepickerDialogLabel" } }, providers: [DatepickerFocusService], ngImport: i0, template: "<!--\r\n ~ Copyright (c) 2016-2026 Broadcom. All Rights Reserved.\r\n ~ The term \"Broadcom\" refers to Broadcom Inc. and/or its subsidiaries.\r\n ~ This software is released under MIT license.\r\n ~ The full license information can be found in LICENSE in the root directory of this project.\r\n -->\r\n\r\n@if (hasRangeOptions) {\r\n<hermes-vertical-nav class=\"hermes-date-range-picker-nav\">\r\n @for (option of dateRangeOptions; track option) {\r\n <a\r\n hermesVerticalNavLink\r\n href=\"javascript:void(0)\"\r\n [attr.aria-label]=\"option?.label\"\r\n tabindex=\"0\"\r\n (keyup.enter)=\"onRangeOptionSelect(option)\"\r\n (click)=\"onRangeOptionSelect(option)\"\r\n >\r\n {{option.label}}\r\n </a>\r\n }\r\n</hermes-vertical-nav>\r\n<ng-container *ngTemplateOutlet=\"calendarView\"></ng-container>\r\n} @else {\r\n<div class=\"datepicker-view-manager\">\r\n @if (isMonthView) {\r\n <hermes-monthpicker></hermes-monthpicker>\r\n } @if (isYearView) {\r\n <hermes-yearpicker></hermes-yearpicker>\r\n } @if (isDayView) {\r\n <hermes-daypicker></hermes-daypicker>\r\n } @if (hasActionButtons) {\r\n <hermes-datepicker-actions></hermes-datepicker-actions>\r\n }\r\n</div>\r\n}\r\n\r\n<ng-template #calendarView>\r\n <div class=\"datepicker-view-manager\">\r\n @if (isMonthView) {\r\n <hermes-monthpicker></hermes-monthpicker>\r\n } @if (isYearView) {\r\n <hermes-yearpicker></hermes-yearpicker>\r\n } @if (isDayView) {\r\n <hermes-daypicker></hermes-daypicker>\r\n } @if (hasActionButtons) {\r\n <hermes-datepicker-actions></hermes-datepicker-actions>\r\n }\r\n </div>\r\n</ng-template>\r\n", dependencies: [{ kind: "directive", type: i5$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i6.HermesVerticalNav, selector: "hermes-vertical-nav", inputs: ["hermesVerticalNavToggleLabel", "hermesVerticalNavPinnable", "hermesVerticalNavLabel", "hermesVerticalNavMode", "hermesVerticalNavFooter", "hermesVerticalNavAutoWidth", "hermesVerticalNavFooterLabels", "hermesVerticalNavCollapsible", "hermesVerticalNavCollapsed"], outputs: ["hermesVerticalNavModeChange", "hermesVerticalNavCollapsedChange"] }, { kind: "component", type: i6.HermesVerticalNavLink, selector: "[hermesVerticalNavLink]" }, { kind: "component", type: HermesMonthpicker, selector: "hermes-monthpicker" }, { kind: "component", type: HermesYearpicker, selector: "hermes-yearpicker" }, { kind: "component", type: HermesDaypicker, selector: "hermes-daypicker" }, { kind: "component", type: HermesDatepickerActions, selector: "hermes-datepicker-actions" }] }); }
|
|
2288
2288
|
}
|
|
2289
2289
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HermesDatepickerViewManager, decorators: [{
|
|
2290
2290
|
type: Component,
|
|
@@ -2480,110 +2480,110 @@ class HermesDateContainer extends HermesAbstractContainer {
|
|
|
2480
2480
|
DatepickerEnabledService,
|
|
2481
2481
|
DateFormControlService,
|
|
2482
2482
|
ViewManagerService,
|
|
2483
|
-
], viewQueries: [{ propertyName: "actionButton", first: true, predicate: ["actionButton"], descendants: true }], usesInheritance: true, hostDirectives: [{ directive: i1.HermesPopoverHostDirective }], ngImport: i0, template: `
|
|
2484
|
-
<ng-content select="label"></ng-content>
|
|
2485
|
-
@if (!label && addGrid()) {
|
|
2486
|
-
<label></label>
|
|
2487
|
-
}
|
|
2488
|
-
<div class="hermes-control-container" [ngClass]="controlClass()">
|
|
2489
|
-
<div class="hermes-input-wrapper" hermesPopoverOrigin>
|
|
2490
|
-
<div class="hermes-input-group" [class.hermes-focus]="focus">
|
|
2491
|
-
<!-- render range inputs only if using hermes-date-range-container -->
|
|
2492
|
-
@if (isRangePicker) {
|
|
2493
|
-
<ng-content select="[hermesStartDate]"></ng-content>
|
|
2494
|
-
<span class="date-range-separator">-</span>
|
|
2495
|
-
<ng-content select="[hermesEndDate]"></ng-content>
|
|
2496
|
-
}
|
|
2497
|
-
<!-- no @if for the singe-date input because it breaks the "auto-wrapped" date picker -->
|
|
2498
|
-
<ng-content select="[hermesDate]"></ng-content>
|
|
2499
|
-
@if (isEnabled) {
|
|
2500
|
-
<button
|
|
2501
|
-
#actionButton
|
|
2502
|
-
type="button"
|
|
2503
|
-
hermesPopoverOpenCloseButton
|
|
2504
|
-
class="hermes-input-group-icon-action"
|
|
2505
|
-
[disabled]="isInputDateDisabled"
|
|
2506
|
-
>
|
|
2507
|
-
<hermes-icon status="info" shape="calendar"></hermes-icon>
|
|
2508
|
-
</button>
|
|
2509
|
-
}
|
|
2510
|
-
<hermes-datepicker-view-manager
|
|
2511
|
-
*hermesPopoverContent="
|
|
2512
|
-
open;
|
|
2513
|
-
at: popoverPosition;
|
|
2514
|
-
type: popoverType;
|
|
2515
|
-
outsideClickToClose: true;
|
|
2516
|
-
scrollToClose: true
|
|
2517
|
-
"
|
|
2518
|
-
cdkTrapFocus
|
|
2519
|
-
></hermes-datepicker-view-manager>
|
|
2520
|
-
</div>
|
|
2521
|
-
</div>
|
|
2522
|
-
@if (showHelper) {
|
|
2523
|
-
<ng-content select="hermes-control-helper"></ng-content>
|
|
2524
|
-
}
|
|
2525
|
-
@if (showInvalid) {
|
|
2526
|
-
<ng-content select="hermes-control-error"></ng-content>
|
|
2527
|
-
}
|
|
2528
|
-
@if (showValid) {
|
|
2529
|
-
<ng-content select="hermes-control-success"></ng-content>
|
|
2530
|
-
}
|
|
2531
|
-
</div>
|
|
2483
|
+
], viewQueries: [{ propertyName: "actionButton", first: true, predicate: ["actionButton"], descendants: true }], usesInheritance: true, hostDirectives: [{ directive: i1.HermesPopoverHostDirective }], ngImport: i0, template: `
|
|
2484
|
+
<ng-content select="label"></ng-content>
|
|
2485
|
+
@if (!label && addGrid()) {
|
|
2486
|
+
<label></label>
|
|
2487
|
+
}
|
|
2488
|
+
<div class="hermes-control-container" [ngClass]="controlClass()">
|
|
2489
|
+
<div class="hermes-input-wrapper" hermesPopoverOrigin>
|
|
2490
|
+
<div class="hermes-input-group" [class.hermes-focus]="focus">
|
|
2491
|
+
<!-- render range inputs only if using hermes-date-range-container -->
|
|
2492
|
+
@if (isRangePicker) {
|
|
2493
|
+
<ng-content select="[hermesStartDate]"></ng-content>
|
|
2494
|
+
<span class="date-range-separator">-</span>
|
|
2495
|
+
<ng-content select="[hermesEndDate]"></ng-content>
|
|
2496
|
+
}
|
|
2497
|
+
<!-- no @if for the singe-date input because it breaks the "auto-wrapped" date picker -->
|
|
2498
|
+
<ng-content select="[hermesDate]"></ng-content>
|
|
2499
|
+
@if (isEnabled) {
|
|
2500
|
+
<button
|
|
2501
|
+
#actionButton
|
|
2502
|
+
type="button"
|
|
2503
|
+
hermesPopoverOpenCloseButton
|
|
2504
|
+
class="hermes-input-group-icon-action"
|
|
2505
|
+
[disabled]="isInputDateDisabled"
|
|
2506
|
+
>
|
|
2507
|
+
<hermes-icon status="info" shape="calendar"></hermes-icon>
|
|
2508
|
+
</button>
|
|
2509
|
+
}
|
|
2510
|
+
<hermes-datepicker-view-manager
|
|
2511
|
+
*hermesPopoverContent="
|
|
2512
|
+
open;
|
|
2513
|
+
at: popoverPosition;
|
|
2514
|
+
type: popoverType;
|
|
2515
|
+
outsideClickToClose: true;
|
|
2516
|
+
scrollToClose: true
|
|
2517
|
+
"
|
|
2518
|
+
cdkTrapFocus
|
|
2519
|
+
></hermes-datepicker-view-manager>
|
|
2520
|
+
</div>
|
|
2521
|
+
</div>
|
|
2522
|
+
@if (showHelper) {
|
|
2523
|
+
<ng-content select="hermes-control-helper"></ng-content>
|
|
2524
|
+
}
|
|
2525
|
+
@if (showInvalid) {
|
|
2526
|
+
<ng-content select="hermes-control-error"></ng-content>
|
|
2527
|
+
}
|
|
2528
|
+
@if (showValid) {
|
|
2529
|
+
<ng-content select="hermes-control-success"></ng-content>
|
|
2530
|
+
}
|
|
2531
|
+
</div>
|
|
2532
2532
|
`, isInline: true, dependencies: [{ kind: "directive", type: i5$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i4.CdkTrapFocusModule_CdkTrapFocus, selector: "[cdkTrapFocus]" }, { kind: "directive", type: i1.HermesPopoverOrigin, selector: "[hermesPopoverOrigin]" }, { kind: "directive", type: i1.HermesPopoverOpenCloseButton, selector: "[hermesPopoverOpenCloseButton]", outputs: ["hermesPopoverOpenCloseChange"] }, { kind: "directive", type: i1.HermesPopoverContent, selector: "[hermesPopoverContent]", inputs: ["hermesPopoverContent", "hermesPopoverContentAt", "hermesPopoverContentAvailablePositions", "hermesPopoverContentType", "hermesPopoverContentOutsideClickToClose", "hermesPopoverContentScrollToClose", "hermesPopoverContentOrigin"] }, { kind: "component", type: i5.HermesIcon, selector: "hermes-icon, hermes-icon", inputs: ["shape", "size", "direction", "flip", "solid", "status", "inverse", "badge"] }, { kind: "directive", type: i7.HermesControlLabel, selector: "label", inputs: ["id", "for"] }, { kind: "component", type: HermesDatepickerViewManager, selector: "hermes-datepicker-view-manager" }] }); }
|
|
2533
2533
|
}
|
|
2534
2534
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HermesDateContainer, decorators: [{
|
|
2535
2535
|
type: Component,
|
|
2536
2536
|
args: [{
|
|
2537
2537
|
selector: 'hermes-date-container, hermes-date-range-container',
|
|
2538
|
-
template: `
|
|
2539
|
-
<ng-content select="label"></ng-content>
|
|
2540
|
-
@if (!label && addGrid()) {
|
|
2541
|
-
<label></label>
|
|
2542
|
-
}
|
|
2543
|
-
<div class="hermes-control-container" [ngClass]="controlClass()">
|
|
2544
|
-
<div class="hermes-input-wrapper" hermesPopoverOrigin>
|
|
2545
|
-
<div class="hermes-input-group" [class.hermes-focus]="focus">
|
|
2546
|
-
<!-- render range inputs only if using hermes-date-range-container -->
|
|
2547
|
-
@if (isRangePicker) {
|
|
2548
|
-
<ng-content select="[hermesStartDate]"></ng-content>
|
|
2549
|
-
<span class="date-range-separator">-</span>
|
|
2550
|
-
<ng-content select="[hermesEndDate]"></ng-content>
|
|
2551
|
-
}
|
|
2552
|
-
<!-- no @if for the singe-date input because it breaks the "auto-wrapped" date picker -->
|
|
2553
|
-
<ng-content select="[hermesDate]"></ng-content>
|
|
2554
|
-
@if (isEnabled) {
|
|
2555
|
-
<button
|
|
2556
|
-
#actionButton
|
|
2557
|
-
type="button"
|
|
2558
|
-
hermesPopoverOpenCloseButton
|
|
2559
|
-
class="hermes-input-group-icon-action"
|
|
2560
|
-
[disabled]="isInputDateDisabled"
|
|
2561
|
-
>
|
|
2562
|
-
<hermes-icon status="info" shape="calendar"></hermes-icon>
|
|
2563
|
-
</button>
|
|
2564
|
-
}
|
|
2565
|
-
<hermes-datepicker-view-manager
|
|
2566
|
-
*hermesPopoverContent="
|
|
2567
|
-
open;
|
|
2568
|
-
at: popoverPosition;
|
|
2569
|
-
type: popoverType;
|
|
2570
|
-
outsideClickToClose: true;
|
|
2571
|
-
scrollToClose: true
|
|
2572
|
-
"
|
|
2573
|
-
cdkTrapFocus
|
|
2574
|
-
></hermes-datepicker-view-manager>
|
|
2575
|
-
</div>
|
|
2576
|
-
</div>
|
|
2577
|
-
@if (showHelper) {
|
|
2578
|
-
<ng-content select="hermes-control-helper"></ng-content>
|
|
2579
|
-
}
|
|
2580
|
-
@if (showInvalid) {
|
|
2581
|
-
<ng-content select="hermes-control-error"></ng-content>
|
|
2582
|
-
}
|
|
2583
|
-
@if (showValid) {
|
|
2584
|
-
<ng-content select="hermes-control-success"></ng-content>
|
|
2585
|
-
}
|
|
2586
|
-
</div>
|
|
2538
|
+
template: `
|
|
2539
|
+
<ng-content select="label"></ng-content>
|
|
2540
|
+
@if (!label && addGrid()) {
|
|
2541
|
+
<label></label>
|
|
2542
|
+
}
|
|
2543
|
+
<div class="hermes-control-container" [ngClass]="controlClass()">
|
|
2544
|
+
<div class="hermes-input-wrapper" hermesPopoverOrigin>
|
|
2545
|
+
<div class="hermes-input-group" [class.hermes-focus]="focus">
|
|
2546
|
+
<!-- render range inputs only if using hermes-date-range-container -->
|
|
2547
|
+
@if (isRangePicker) {
|
|
2548
|
+
<ng-content select="[hermesStartDate]"></ng-content>
|
|
2549
|
+
<span class="date-range-separator">-</span>
|
|
2550
|
+
<ng-content select="[hermesEndDate]"></ng-content>
|
|
2551
|
+
}
|
|
2552
|
+
<!-- no @if for the singe-date input because it breaks the "auto-wrapped" date picker -->
|
|
2553
|
+
<ng-content select="[hermesDate]"></ng-content>
|
|
2554
|
+
@if (isEnabled) {
|
|
2555
|
+
<button
|
|
2556
|
+
#actionButton
|
|
2557
|
+
type="button"
|
|
2558
|
+
hermesPopoverOpenCloseButton
|
|
2559
|
+
class="hermes-input-group-icon-action"
|
|
2560
|
+
[disabled]="isInputDateDisabled"
|
|
2561
|
+
>
|
|
2562
|
+
<hermes-icon status="info" shape="calendar"></hermes-icon>
|
|
2563
|
+
</button>
|
|
2564
|
+
}
|
|
2565
|
+
<hermes-datepicker-view-manager
|
|
2566
|
+
*hermesPopoverContent="
|
|
2567
|
+
open;
|
|
2568
|
+
at: popoverPosition;
|
|
2569
|
+
type: popoverType;
|
|
2570
|
+
outsideClickToClose: true;
|
|
2571
|
+
scrollToClose: true
|
|
2572
|
+
"
|
|
2573
|
+
cdkTrapFocus
|
|
2574
|
+
></hermes-datepicker-view-manager>
|
|
2575
|
+
</div>
|
|
2576
|
+
</div>
|
|
2577
|
+
@if (showHelper) {
|
|
2578
|
+
<ng-content select="hermes-control-helper"></ng-content>
|
|
2579
|
+
}
|
|
2580
|
+
@if (showInvalid) {
|
|
2581
|
+
<ng-content select="hermes-control-error"></ng-content>
|
|
2582
|
+
}
|
|
2583
|
+
@if (showValid) {
|
|
2584
|
+
<ng-content select="hermes-control-success"></ng-content>
|
|
2585
|
+
}
|
|
2586
|
+
</div>
|
|
2587
2587
|
`,
|
|
2588
2588
|
providers: [
|
|
2589
2589
|
ControlIdService,
|
|
@@ -3202,7 +3202,7 @@ const HERMES_DATEPICKER_DIRECTIVES = [
|
|
|
3202
3202
|
];
|
|
3203
3203
|
class HermesDatepickerModule {
|
|
3204
3204
|
constructor() {
|
|
3205
|
-
|
|
3205
|
+
HermesIcons.addIcons(successStandardIcon, errorStandardIcon, angleIcon, eventIcon, calendarIcon);
|
|
3206
3206
|
}
|
|
3207
3207
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HermesDatepickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
3208
3208
|
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.22", ngImport: i0, type: HermesDatepickerModule, declarations: [HermesDateInput,
|