@gipisistemas/ng-core 1.1.10 → 1.1.12

Sign up to get free protection for your applications and to get access to all the features.
Files changed (121) hide show
  1. package/assets/styles/colors.scss +228 -211
  2. package/assets/styles/styles.scss +50 -5
  3. package/bundles/gipisistemas-ng-core.umd.js +3497 -146
  4. package/bundles/gipisistemas-ng-core.umd.js.map +1 -1
  5. package/bundles/gipisistemas-ng-core.umd.min.js +9 -9
  6. package/bundles/gipisistemas-ng-core.umd.min.js.map +1 -1
  7. package/core/gipi-components/components/abstract-crud.component.d.ts +2 -2
  8. package/core/gipi-components/components/abstract-find.component.d.ts +5 -4
  9. package/core/gipi-components/components/abstract.component.d.ts +1 -0
  10. package/esm2015/core/components/abstract-find.component.js +4 -1
  11. package/esm2015/core/gipi-components/components/abstract-crud.component.js +5 -5
  12. package/esm2015/core/gipi-components/components/abstract-find.component.js +45 -21
  13. package/esm2015/core/gipi-components/components/abstract.component.js +5 -2
  14. package/esm2015/gipi-components.js +19 -6
  15. package/esm2015/gipisistemas-ng-core.js +3 -1
  16. package/esm2015/shared/gipi-components/datepicker/date-range-picker/date-range-picker.component.js +1 -1
  17. package/esm2015/shared/gipi-components/datepicker/datepicker/datepicker.component.js +3 -3
  18. package/esm2015/shared/gipi-components/datepicker/mat-datepicker/calendar-body.js +1 -1
  19. package/esm2015/shared/gipi-components/datepicker/mat-datepicker/date-range-input.js +1 -1
  20. package/esm2015/shared/gipi-components/datetime-picker/datetime-picker/datetime-picker.component.js +158 -0
  21. package/esm2015/shared/gipi-components/datetime-picker/datetime-picker.module.js +82 -0
  22. package/esm2015/shared/gipi-components/datetime-picker/mat-datetime-picker/calendar-body.js +116 -0
  23. package/esm2015/shared/gipi-components/datetime-picker/mat-datetime-picker/calendar.js +676 -0
  24. package/esm2015/shared/gipi-components/datetime-picker/mat-datetime-picker/clock.js +306 -0
  25. package/esm2015/shared/gipi-components/datetime-picker/mat-datetime-picker/datetimepicker-animations.js +30 -0
  26. package/esm2015/shared/gipi-components/datetime-picker/mat-datetime-picker/datetimepicker-errors.js +7 -0
  27. package/esm2015/shared/gipi-components/datetime-picker/mat-datetime-picker/datetimepicker-filtertype.js +7 -0
  28. package/esm2015/shared/gipi-components/datetime-picker/mat-datetime-picker/datetimepicker-input.js +346 -0
  29. package/esm2015/shared/gipi-components/datetime-picker/mat-datetime-picker/datetimepicker-toggle.js +83 -0
  30. package/esm2015/shared/gipi-components/datetime-picker/mat-datetime-picker/datetimepicker-type.js +1 -0
  31. package/esm2015/shared/gipi-components/datetime-picker/mat-datetime-picker/datetimepicker.js +451 -0
  32. package/esm2015/shared/gipi-components/datetime-picker/mat-datetime-picker/month-view.js +151 -0
  33. package/esm2015/shared/gipi-components/datetime-picker/mat-datetime-picker/multi-year-view.js +230 -0
  34. package/esm2015/shared/gipi-components/datetime-picker/mat-datetime-picker/shared/adapter/adapter.module.js +43 -0
  35. package/esm2015/shared/gipi-components/datetime-picker/mat-datetime-picker/shared/adapter/datetime-adapter.js +139 -0
  36. package/esm2015/shared/gipi-components/datetime-picker/mat-datetime-picker/shared/adapter/datetime-formats.js +3 -0
  37. package/esm2015/shared/gipi-components/datetime-picker/mat-datetime-picker/shared/adapter/native-datetime-adapter.js +138 -0
  38. package/esm2015/shared/gipi-components/datetime-picker/mat-datetime-picker/shared/adapter/native-datetime-formats.js +20 -0
  39. package/esm2015/shared/gipi-components/datetime-picker/mat-datetime-picker/year-view.js +141 -0
  40. package/esm2015/shared/gipi-components/dropdown-menu/dropdown-menu.component.js +1 -1
  41. package/esm2015/shared/gipi-components/form-field/form-field.component.js +1 -1
  42. package/esm2015/shared/gipi-components/input-currency/input-currency.component.js +1 -1
  43. package/esm2015/shared/gipi-components/input-monthpicker/input-monthpicker.component.js +1 -1
  44. package/esm2015/shared/gipi-components/input-select/input-select.component.js +1 -1
  45. package/esm2015/shared/gipi-components/month-year-picker/month-year-picker.component.js +1 -1
  46. package/esm2015/shared/gipi-components/radio-group/radio-group.component.js +1 -1
  47. package/esm2015/shared/gipi-components/range-page/range-page.component.js +1 -1
  48. package/esm2015/shared/gipi-components/range-slider/range-slider.component.js +1 -1
  49. package/esm2015/shared/gipi-components/select-button/select-button.component.js +1 -1
  50. package/esm2015/shared/gipi-components/textarea/textarea.component.js +1 -1
  51. package/esm2015/shared/shared.module.js +51 -3
  52. package/esm5/core/components/abstract-find.component.js +4 -1
  53. package/esm5/core/gipi-components/components/abstract-crud.component.js +5 -5
  54. package/esm5/core/gipi-components/components/abstract-find.component.js +45 -21
  55. package/esm5/core/gipi-components/components/abstract.component.js +5 -2
  56. package/esm5/gipi-components.js +19 -6
  57. package/esm5/gipisistemas-ng-core.js +3 -1
  58. package/esm5/shared/gipi-components/datepicker/date-range-picker/date-range-picker.component.js +1 -1
  59. package/esm5/shared/gipi-components/datepicker/datepicker/datepicker.component.js +3 -3
  60. package/esm5/shared/gipi-components/datepicker/mat-datepicker/calendar-body.js +1 -1
  61. package/esm5/shared/gipi-components/datepicker/mat-datepicker/date-range-input.js +1 -1
  62. package/esm5/shared/gipi-components/datetime-picker/datetime-picker/datetime-picker.component.js +176 -0
  63. package/esm5/shared/gipi-components/datetime-picker/datetime-picker.module.js +85 -0
  64. package/esm5/shared/gipi-components/datetime-picker/mat-datetime-picker/calendar-body.js +119 -0
  65. package/esm5/shared/gipi-components/datetime-picker/mat-datetime-picker/calendar.js +747 -0
  66. package/esm5/shared/gipi-components/datetime-picker/mat-datetime-picker/clock.js +332 -0
  67. package/esm5/shared/gipi-components/datetime-picker/mat-datetime-picker/datetimepicker-animations.js +30 -0
  68. package/esm5/shared/gipi-components/datetime-picker/mat-datetime-picker/datetimepicker-errors.js +7 -0
  69. package/esm5/shared/gipi-components/datetime-picker/mat-datetime-picker/datetimepicker-filtertype.js +7 -0
  70. package/esm5/shared/gipi-components/datetime-picker/mat-datetime-picker/datetimepicker-input.js +377 -0
  71. package/esm5/shared/gipi-components/datetime-picker/mat-datetime-picker/datetimepicker-toggle.js +89 -0
  72. package/esm5/shared/gipi-components/datetime-picker/mat-datetime-picker/datetimepicker-type.js +1 -0
  73. package/esm5/shared/gipi-components/datetime-picker/mat-datetime-picker/datetimepicker.js +495 -0
  74. package/esm5/shared/gipi-components/datetime-picker/mat-datetime-picker/month-view.js +160 -0
  75. package/esm5/shared/gipi-components/datetime-picker/mat-datetime-picker/multi-year-view.js +248 -0
  76. package/esm5/shared/gipi-components/datetime-picker/mat-datetime-picker/shared/adapter/adapter.module.js +49 -0
  77. package/esm5/shared/gipi-components/datetime-picker/mat-datetime-picker/shared/adapter/datetime-adapter.js +145 -0
  78. package/esm5/shared/gipi-components/datetime-picker/mat-datetime-picker/shared/adapter/datetime-formats.js +3 -0
  79. package/esm5/shared/gipi-components/datetime-picker/mat-datetime-picker/shared/adapter/native-datetime-adapter.js +141 -0
  80. package/esm5/shared/gipi-components/datetime-picker/mat-datetime-picker/shared/adapter/native-datetime-formats.js +20 -0
  81. package/esm5/shared/gipi-components/datetime-picker/mat-datetime-picker/year-view.js +151 -0
  82. package/esm5/shared/gipi-components/dropdown-menu/dropdown-menu.component.js +1 -1
  83. package/esm5/shared/gipi-components/form-field/form-field.component.js +1 -1
  84. package/esm5/shared/gipi-components/input-currency/input-currency.component.js +1 -1
  85. package/esm5/shared/gipi-components/input-monthpicker/input-monthpicker.component.js +1 -1
  86. package/esm5/shared/gipi-components/input-select/input-select.component.js +1 -1
  87. package/esm5/shared/gipi-components/month-year-picker/month-year-picker.component.js +1 -1
  88. package/esm5/shared/gipi-components/radio-group/radio-group.component.js +1 -1
  89. package/esm5/shared/gipi-components/range-page/range-page.component.js +1 -1
  90. package/esm5/shared/gipi-components/range-slider/range-slider.component.js +1 -1
  91. package/esm5/shared/gipi-components/select-button/select-button.component.js +1 -1
  92. package/esm5/shared/gipi-components/textarea/textarea.component.js +1 -1
  93. package/esm5/shared/shared.module.js +51 -3
  94. package/fesm2015/gipisistemas-ng-core.js +3264 -191
  95. package/fesm2015/gipisistemas-ng-core.js.map +1 -1
  96. package/fesm5/gipisistemas-ng-core.js +3475 -152
  97. package/fesm5/gipisistemas-ng-core.js.map +1 -1
  98. package/gipi-components.d.ts +16 -0
  99. package/gipisistemas-ng-core.d.ts +2 -0
  100. package/gipisistemas-ng-core.metadata.json +1 -1
  101. package/package.json +4 -4
  102. package/shared/gipi-components/datetime-picker/datetime-picker/datetime-picker.component.d.ts +40 -0
  103. package/shared/gipi-components/datetime-picker/datetime-picker.module.d.ts +2 -0
  104. package/shared/gipi-components/datetime-picker/mat-datetime-picker/calendar-body.d.ts +50 -0
  105. package/shared/gipi-components/datetime-picker/mat-datetime-picker/calendar.d.ts +140 -0
  106. package/shared/gipi-components/datetime-picker/mat-datetime-picker/clock.d.ts +66 -0
  107. package/shared/gipi-components/datetime-picker/mat-datetime-picker/datetimepicker-animations.d.ts +8 -0
  108. package/shared/gipi-components/datetime-picker/mat-datetime-picker/datetimepicker-errors.d.ts +2 -0
  109. package/shared/gipi-components/datetime-picker/mat-datetime-picker/datetimepicker-filtertype.d.ts +5 -0
  110. package/shared/gipi-components/datetime-picker/mat-datetime-picker/datetimepicker-input.d.ts +98 -0
  111. package/shared/gipi-components/datetime-picker/mat-datetime-picker/datetimepicker-toggle.d.ts +20 -0
  112. package/shared/gipi-components/datetime-picker/mat-datetime-picker/datetimepicker-type.d.ts +1 -0
  113. package/shared/gipi-components/datetime-picker/mat-datetime-picker/datetimepicker.d.ts +133 -0
  114. package/shared/gipi-components/datetime-picker/mat-datetime-picker/month-view.d.ts +53 -0
  115. package/shared/gipi-components/datetime-picker/mat-datetime-picker/multi-year-view.d.ts +80 -0
  116. package/shared/gipi-components/datetime-picker/mat-datetime-picker/shared/adapter/adapter.module.d.ts +4 -0
  117. package/shared/gipi-components/datetime-picker/mat-datetime-picker/shared/adapter/datetime-adapter.d.ts +46 -0
  118. package/shared/gipi-components/datetime-picker/mat-datetime-picker/shared/adapter/datetime-formats.d.ts +20 -0
  119. package/shared/gipi-components/datetime-picker/mat-datetime-picker/shared/adapter/native-datetime-adapter.d.ts +36 -0
  120. package/shared/gipi-components/datetime-picker/mat-datetime-picker/shared/adapter/native-datetime-formats.d.ts +2 -0
  121. package/shared/gipi-components/datetime-picker/mat-datetime-picker/year-view.d.ts +52 -0
@@ -27,7 +27,7 @@ import { MatButtonToggleModule } from '@angular/material/button-toggle';
27
27
  import { MatCardModule } from '@angular/material/card';
28
28
  import { MatCheckboxModule } from '@angular/material/checkbox';
29
29
  import { MatChipsModule } from '@angular/material/chips';
30
- import { MatRippleModule, MAT_DATE_FORMATS as MAT_DATE_FORMATS$1, ErrorStateMatcher, mixinErrorState, mixinColor } from '@angular/material/core';
30
+ import { MatRippleModule, MAT_DATE_FORMATS as MAT_DATE_FORMATS$1, ErrorStateMatcher, mixinErrorState, mixinColor, DateAdapter as DateAdapter$1, MAT_DATE_LOCALE as MAT_DATE_LOCALE$1, NativeDateModule, MatNativeDateModule as MatNativeDateModule$1 } from '@angular/material/core';
31
31
  import { MatDialogModule, MatDialog as MatDialog$1 } from '@angular/material/dialog';
32
32
  import { MatDividerModule } from '@angular/material/divider';
33
33
  import { MatExpansionModule } from '@angular/material/expansion';
@@ -55,10 +55,10 @@ import { MatTooltipModule } from '@angular/material/tooltip';
55
55
  import { MatTreeModule } from '@angular/material/tree';
56
56
  import rfdc_ from 'rfdc';
57
57
  import { HttpHeaders, HttpParams, HttpClient, HttpErrorResponse, HttpClientModule, HTTP_INTERCEPTORS } from '@angular/common/http';
58
- import { Subject, throwError, BehaviorSubject, of, combineLatest, fromEvent, ReplaySubject, Subscription, merge } from 'rxjs';
59
- import { debounceTime, map, distinctUntilChanged, switchMap, startWith, delay, takeUntil, take, tap, filter, auditTime, finalize, shareReplay, catchError } from 'rxjs/operators';
58
+ import { Subject, throwError, BehaviorSubject, of, combineLatest, fromEvent, ReplaySubject, Subscription, merge, asyncScheduler } from 'rxjs';
59
+ import { debounceTime, map, distinctUntilChanged, switchMap, startWith, delay, takeUntil, take, tap, filter, auditTime, finalize, shareReplay, first, catchError } from 'rxjs/operators';
60
60
  import { parsePhoneNumberFromString, getExampleNumber } from 'libphonenumber-js';
61
- import { trigger, state, style, transition, animate, animation, useAnimation } from '@angular/animations';
61
+ import { trigger, state, style, transition, animate, animation, useAnimation, keyframes } from '@angular/animations';
62
62
  import { A, Z, ZERO, NINE, SPACE, HOME, END, ENTER, ESCAPE, UP_ARROW, DOWN_ARROW, PAGE_DOWN, PAGE_UP, RIGHT_ARROW, LEFT_ARROW, BACKSPACE } from '@angular/cdk/keycodes';
63
63
  import { coerceCssPixelValue, coerceBooleanProperty, coerceNumberProperty } from '@angular/cdk/coercion';
64
64
  import { MediaMatcher, BreakpointObserver } from '@angular/cdk/layout';
@@ -66,7 +66,7 @@ import { Platform as Platform$1, PlatformModule } from '@angular/cdk/platform';
66
66
  import { Directionality } from '@angular/cdk/bidi';
67
67
  import { OverlayConfig, Overlay, OverlayModule } from '@angular/cdk/overlay';
68
68
  import * as moment_ from 'moment';
69
- import { matDatepickerAnimations as matDatepickerAnimations$1 } from '@angular/material/datepicker';
69
+ import { MatDatepickerIntl as MatDatepickerIntl$1, MAT_DATEPICKER_SCROLL_STRATEGY as MAT_DATEPICKER_SCROLL_STRATEGY$1, MatDatepickerModule, MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY_PROVIDER as MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY_PROVIDER$1, matDatepickerAnimations as matDatepickerAnimations$1 } from '@angular/material/datepicker';
70
70
  import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
71
71
  import { DomSanitizer } from '@angular/platform-browser';
72
72
  import { onlyNumbers, isValidIE, isValidCEP } from '@brazilian-utils/brazilian-utils';
@@ -82,15 +82,6 @@ var DEFAULT_MESSAGES = {
82
82
  NOT_PERMISSION: 'Infelizmente, esta ação não é permitida para o seu perfil',
83
83
  };
84
84
 
85
- /**
86
- * @license
87
- * Copyright Google LLC All Rights Reserved.
88
- *
89
- * Use of this source code is governed by an MIT-style license that can be
90
- * found in the LICENSE file at https://angular.io/license
91
- */
92
- var MAT_DATE_FORMATS = new InjectionToken('mat-date-formats');
93
-
94
85
  var MODULES = [
95
86
  A11yModule,
96
87
  CdkPopoverEditModule,
@@ -147,6 +138,17 @@ var MaterialModule = /** @class */ (function () {
147
138
  return MaterialModule;
148
139
  }());
149
140
 
141
+ /**
142
+ * @license
143
+ * Copyright Google LLC All Rights Reserved.
144
+ *
145
+ * Use of this source code is governed by an MIT-style license that can be
146
+ * found in the LICENSE file at https://angular.io/license
147
+ */
148
+ var MAT_DATE_FORMATS = new InjectionToken('mat-date-formats');
149
+
150
+ var GIPI_DATETIME_FORMATS = new InjectionToken('mat-datetime-formats');
151
+
150
152
  var ButtonComponent = /** @class */ (function () {
151
153
  function ButtonComponent() {
152
154
  this.color = 'primary';
@@ -9750,7 +9752,7 @@ var GIPIDropdownMenuComponent = /** @class */ (function () {
9750
9752
  'class': 'gipi-dropdown-menu',
9751
9753
  },
9752
9754
  changeDetection: ChangeDetectionStrategy.OnPush,
9753
- styles: [".dropdown-menu-container{display:flex;flex-direction:column;gap:1rem;width:100%}.dropdown-menu-container .dropdown-menu-label{color:#131313;font-size:1.4rem;line-height:100%}.dropdown-menu-container .dropdown-menu-label>span{color:#d14014;font-size:inherit;line-height:inherit}.dropdown-menu-container .dropdown-menu-content{display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:12px;gap:1rem;width:100%;max-height:4rem;border-radius:5px;cursor:pointer;background-color:#fff;border:1px solid rgba(0,0,0,.12);color:#696969;transition:.2s}.dropdown-menu-container .dropdown-menu-content:focus-within,.dropdown-menu-container .dropdown-menu-content:has(.dropdown-menu-input:active),.dropdown-menu-container .dropdown-menu-content:has(.dropdown-menu-input:focus){box-shadow:0 0 0 .2rem #f0f0f0}.dropdown-menu-container .dropdown-menu-content:focus-within,.dropdown-menu-container .dropdown-menu-content:hover{border-color:#bfbfbf!important;background-color:#f5f5f5}.dropdown-menu-container .dropdown-menu-content:has(.dropdown-menu-input:disabled){background-color:#e0e1e2!important;border-color:#e0e1e2!important;color:#d1d2d4!important;box-shadow:none!important;cursor:not-allowed!important;pointer-events:none!important}.dropdown-menu-container .dropdown-menu-content:has(.dropdown-menu-input:disabled) .dropdown-menu-input,.dropdown-menu-container .dropdown-menu-content:has(.dropdown-menu-input:disabled) .dropdown-menu-suffix .dropdown-menu-button{cursor:not-allowed!important;pointer-events:none!important}.dropdown-menu-container .dropdown-menu-content:has(.dropdown-menu-input:disabled) .dropdown-menu-suffix .dropdown-menu-trigger{border-color:#e0e1e2!important;pointer-events:none!important}.dropdown-menu-container .dropdown-menu-content:has(.dropdown-menu-input:disabled) mat-icon{color:#d1d2d4!important;fill:#d1d2d4!important;cursor:not-allowed!important;pointer-events:none!important}.dropdown-menu-container .dropdown-menu-content .dropdown-menu-input{cursor:pointer;height:16px;outline:0;border:none;background-color:transparent;color:inherit;flex:1;max-width:90%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dropdown-menu-container .dropdown-menu-content .dropdown-menu-suffix{display:flex;flex-direction:row;align-items:center;gap:16px}.dropdown-menu-container .dropdown-menu-content .dropdown-menu-suffix .dropdown-menu-trigger{display:flex;flex-direction:column;align-items:center;justify-content:center;padding-inline:8px;border-radius:40px;border:1px solid transparent;color:#131313;background-color:#f0f0f0;font-size:1.2rem;line-height:1.4rem}.dropdown-menu-container .dropdown-menu-content .dropdown-menu-suffix .dropdown-menu-button{display:flex;align-items:center;justify-content:center;outline:0;border:none;cursor:pointer;background-color:transparent}.dropdown-menu-container .dropdown-menu-content .dropdown-menu-suffix .dropdown-menu-button:hover:not(:disabled)>mat-icon{transform:scale(1.08)}.dropdown-menu-icon{width:1.6rem;height:1.6rem;font-size:1.6rem;color:#131313;fill:#131313}.btn-popover-content{background-color:#fff;border-radius:4px;box-shadow:0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12);padding:8px}"]
9755
+ styles: [".dropdown-menu-container{display:flex;flex-direction:column;gap:1rem;width:100%}.dropdown-menu-container .dropdown-menu-label{color:#131313;font-size:1.4rem;line-height:100%}.dropdown-menu-container .dropdown-menu-label>span{color:#d14014;font-size:inherit;line-height:inherit}.dropdown-menu-container .dropdown-menu-content{display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:12px;gap:1rem;width:100%;max-height:4rem;border-radius:5px;cursor:pointer;background-color:#fff;border:1px solid #0000001f;color:#696969;transition:.2s}.dropdown-menu-container .dropdown-menu-content:focus-within,.dropdown-menu-container .dropdown-menu-content:has(.dropdown-menu-input:active),.dropdown-menu-container .dropdown-menu-content:has(.dropdown-menu-input:focus){box-shadow:0 0 0 .2rem #f0f0f0}.dropdown-menu-container .dropdown-menu-content:focus-within,.dropdown-menu-container .dropdown-menu-content:hover{border-color:#bfbfbf!important;background-color:#f5f5f5}.dropdown-menu-container .dropdown-menu-content:has(.dropdown-menu-input:disabled){background-color:#e0e1e2!important;border-color:#e0e1e2!important;color:#d1d2d4!important;box-shadow:none!important;cursor:not-allowed!important;pointer-events:none!important}.dropdown-menu-container .dropdown-menu-content:has(.dropdown-menu-input:disabled) .dropdown-menu-input,.dropdown-menu-container .dropdown-menu-content:has(.dropdown-menu-input:disabled) .dropdown-menu-suffix .dropdown-menu-button{cursor:not-allowed!important;pointer-events:none!important}.dropdown-menu-container .dropdown-menu-content:has(.dropdown-menu-input:disabled) .dropdown-menu-suffix .dropdown-menu-trigger{border-color:#e0e1e2!important;pointer-events:none!important}.dropdown-menu-container .dropdown-menu-content:has(.dropdown-menu-input:disabled) mat-icon{color:#d1d2d4!important;fill:#d1d2d4!important;cursor:not-allowed!important;pointer-events:none!important}.dropdown-menu-container .dropdown-menu-content .dropdown-menu-input{cursor:pointer;height:16px;outline:0;border:none;background-color:transparent;color:inherit;flex:1;max-width:90%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dropdown-menu-container .dropdown-menu-content .dropdown-menu-suffix{display:flex;flex-direction:row;align-items:center;gap:16px}.dropdown-menu-container .dropdown-menu-content .dropdown-menu-suffix .dropdown-menu-trigger{display:flex;flex-direction:column;align-items:center;justify-content:center;padding-inline:8px;border-radius:40px;border:1px solid transparent;color:#131313;background-color:#f0f0f0;font-size:1.2rem;line-height:1.4rem}.dropdown-menu-container .dropdown-menu-content .dropdown-menu-suffix .dropdown-menu-button{display:flex;align-items:center;justify-content:center;outline:0;border:none;cursor:pointer;background-color:transparent}.dropdown-menu-container .dropdown-menu-content .dropdown-menu-suffix .dropdown-menu-button:hover:not(:disabled)>mat-icon{transform:scale(1.08)}.dropdown-menu-icon{width:1.6rem;height:1.6rem;font-size:1.6rem;color:#131313;fill:#131313}.btn-popover-content{background-color:#fff;border-radius:4px;box-shadow:0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12);padding:8px}"]
9754
9756
  }),
9755
9757
  __metadata("design:paramtypes", [ChangeDetectorRef,
9756
9758
  ElementRef])
@@ -10459,7 +10461,7 @@ var GIPIFormFieldComponent = /** @class */ (function () {
10459
10461
  'class': 'gipi-form-field',
10460
10462
  },
10461
10463
  changeDetection: ChangeDetectionStrategy.OnPush,
10462
- styles: [":host{display:block;min-width:0;max-width:100%;flex:1}.form-field-container{display:flex;flex-direction:column;gap:1rem;width:100%}.form-field-container .form-field-label{color:#131313;font-size:1.4rem;line-height:100%}.form-field-container .form-field-label>span{color:#d14014;font-size:inherit;line-height:inherit}.form-field-container .form-field-content{display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:1.2rem;gap:1rem;width:100%;max-height:4rem;border-radius:5px;cursor:text;background-color:#fff;border:1px solid rgba(0,0,0,.12);color:#696969;caret-color:#9a9da2;transition:.2s}.form-field-container .form-field-content:focus-within,.form-field-container .form-field-content:has(.form-field-input:active),.form-field-container .form-field-content:has(.form-field-input:focus){box-shadow:0 0 0 .2rem #f0f0f0}.form-field-container .form-field-content:focus-within,.form-field-container .form-field-content:hover{border-color:#bfbfbf!important}.form-field-container .form-field-content:has(.form-field-input:invalid){border-color:#d14014!important;color:#d14014!important;caret-color:#d14014!important}.form-field-container .form-field-content:has(.form-field-input:invalid):focus-within{box-shadow:0 0 0 .2rem #f1c4b6!important}.form-field-container .form-field-content:has(.form-field-input:disabled){border-color:#e0e1e2!important;color:#d1d2d4!important;box-shadow:none!important;cursor:not-allowed!important;caret-color:#d1d2d4!important;pointer-events:none!important}.form-field-container .form-field-content:has(.form-field-input:disabled) .form-field-input,.form-field-container .form-field-content:has(.form-field-input:disabled) .form-field-suffix .form-field-button{cursor:not-allowed!important;pointer-events:none!important}.form-field-container .form-field-content:has(.form-field-input:disabled) .form-field-suffix .form-field-trigger{border-color:#e0e1e2!important;pointer-events:none!important}.form-field-container .form-field-content:has(.form-field-input:disabled) mat-icon{color:#d1d2d4!important;fill:#d1d2d4!important;cursor:not-allowed!important;pointer-events:none!important}.form-field-container .form-field-content.form-field-select,.form-field-container .form-field-content.form-field-select .form-field-input{box-shadow:none!important;cursor:pointer!important}.form-field-container .form-field-content .form-field-input{height:16px;outline:0;border:none;background-color:transparent;color:inherit;flex:1;max-width:85%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.form-field-container .form-field-content .form-field-suffix{display:flex;flex-direction:row;align-items:center;gap:1.6rem}.form-field-container .form-field-content .form-field-suffix .form-field-trigger{display:flex;flex-direction:column;align-items:center;justify-content:center;padding-inline:8px;border-radius:40px;border:1px solid transparent;color:#131313;background-color:#f0f0f0;font-size:1.2rem;line-height:1.4rem}.form-field-container .form-field-content .form-field-suffix .form-field-button{display:flex;align-items:center;justify-content:center;outline:0;border:none;cursor:pointer;background-color:transparent}.form-field-container .form-field-content .form-field-suffix .form-field-button:hover:not(:disabled)>mat-icon{transform:scale(1.08)}.form-field-icon{width:1.6rem;height:1.6rem;font-size:1.6rem;color:#131313;fill:#131313}.form-field-icon-arrow{border:solid #131313;border-width:0 2px 2px 0;display:inline-block;padding:3px;transform:rotate(45deg);margin:-5px 4px 0}"]
10464
+ styles: [":host{display:block;min-width:0;max-width:100%;flex:1}.form-field-container{display:flex;flex-direction:column;gap:1rem;width:100%}.form-field-container .form-field-label{color:#131313;font-size:1.4rem;line-height:100%}.form-field-container .form-field-label>span{color:#d14014;font-size:inherit;line-height:inherit}.form-field-container .form-field-content{display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:1.2rem;gap:1rem;width:100%;max-height:4rem;border-radius:5px;cursor:text;background-color:#fff;border:1px solid #0000001f;color:#696969;caret-color:#9a9da2;transition:.2s}.form-field-container .form-field-content:focus-within,.form-field-container .form-field-content:has(.form-field-input:active),.form-field-container .form-field-content:has(.form-field-input:focus){box-shadow:0 0 0 .2rem #f0f0f0}.form-field-container .form-field-content:focus-within,.form-field-container .form-field-content:hover{border-color:#bfbfbf!important}.form-field-container .form-field-content:has(.form-field-input:invalid){border-color:#d14014!important;color:#d14014!important;caret-color:#d14014!important}.form-field-container .form-field-content:has(.form-field-input:invalid):focus-within{box-shadow:0 0 0 .2rem #f1c4b6!important}.form-field-container .form-field-content:has(.form-field-input:disabled){border-color:#e0e1e2!important;color:#d1d2d4!important;box-shadow:none!important;cursor:not-allowed!important;caret-color:#d1d2d4!important;pointer-events:none!important}.form-field-container .form-field-content:has(.form-field-input:disabled) .form-field-input,.form-field-container .form-field-content:has(.form-field-input:disabled) .form-field-suffix .form-field-button{cursor:not-allowed!important;pointer-events:none!important}.form-field-container .form-field-content:has(.form-field-input:disabled) .form-field-suffix .form-field-trigger{border-color:#e0e1e2!important;pointer-events:none!important}.form-field-container .form-field-content:has(.form-field-input:disabled) mat-icon{color:#d1d2d4!important;fill:#d1d2d4!important;cursor:not-allowed!important;pointer-events:none!important}.form-field-container .form-field-content.form-field-select,.form-field-container .form-field-content.form-field-select .form-field-input{box-shadow:none!important;cursor:pointer!important}.form-field-container .form-field-content .form-field-input{height:16px;outline:0;border:none;background-color:transparent;color:inherit;flex:1;max-width:85%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.form-field-container .form-field-content .form-field-suffix{display:flex;flex-direction:row;align-items:center;gap:1.6rem}.form-field-container .form-field-content .form-field-suffix .form-field-trigger{display:flex;flex-direction:column;align-items:center;justify-content:center;padding-inline:8px;border-radius:40px;border:1px solid transparent;color:#131313;background-color:#f0f0f0;font-size:1.2rem;line-height:1.4rem}.form-field-container .form-field-content .form-field-suffix .form-field-button{display:flex;align-items:center;justify-content:center;outline:0;border:none;cursor:pointer;background-color:transparent}.form-field-container .form-field-content .form-field-suffix .form-field-button:hover:not(:disabled)>mat-icon{transform:scale(1.08)}.form-field-icon{width:1.6rem;height:1.6rem;font-size:1.6rem;color:#131313;fill:#131313}.form-field-icon-arrow{border:solid #131313;border-width:0 2px 2px 0;display:inline-block;padding:3px;transform:rotate(45deg);margin:-5px 4px 0}"]
10463
10465
  }),
10464
10466
  __metadata("design:paramtypes", [ChangeDetectorRef,
10465
10467
  ElementRef])
@@ -10839,7 +10841,7 @@ var GIPIInputCurrencyComponent = /** @class */ (function () {
10839
10841
  'class': 'gipi-input-currency',
10840
10842
  },
10841
10843
  changeDetection: ChangeDetectionStrategy.OnPush,
10842
- styles: [":host{display:block;min-width:0;max-width:100%;flex:1}.input-currency-container{display:flex;flex-direction:column;gap:1rem;width:100%}.input-currency-container .input-currency-label{color:#131313;font-size:1.4rem;line-height:100%}.input-currency-container .input-currency-label>span{color:#d14014;font-size:inherit;line-height:inherit}.input-currency-container .input-currency-content{display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:12px;width:100%;max-height:4rem;border-radius:5px;cursor:text;background-color:#fff;border:1px solid rgba(0,0,0,.12);color:#696969;caret-color:#9a9da2;transition:.2s}.input-currency-container .input-currency-content:focus-within,.input-currency-container .input-currency-content:has(.input-currency-input:active),.input-currency-container .input-currency-content:has(.input-currency-input:focus){box-shadow:0 0 0 .2rem #f0f0f0}.input-currency-container .input-currency-content:focus-within,.input-currency-container .input-currency-content:hover{border-color:#bfbfbf!important}.input-currency-container .input-currency-content:has(.input-currency-input:invalid){border-color:#d14014!important;color:#d14014!important;caret-color:#d14014!important}.input-currency-container .input-currency-content:has(.input-currency-input:invalid):focus-within{box-shadow:0 0 0 .2rem #f1c4b6!important}.input-currency-container .input-currency-content:has(.input-currency-input:disabled){color:#bbbdc1!important;border-color:#e0e1e2!important;background-color:#f5f5f6!important;cursor:not-allowed!important;box-shadow:none!important;pointer-events:none!important}.input-currency-container .input-currency-content .input-currency-input{height:16px;outline:0;border:none;background-color:transparent;color:inherit;flex:1}"]
10844
+ styles: [":host{display:block;min-width:0;max-width:100%;flex:1}.input-currency-container{display:flex;flex-direction:column;gap:1rem;width:100%}.input-currency-container .input-currency-label{color:#131313;font-size:1.4rem;line-height:100%}.input-currency-container .input-currency-label>span{color:#d14014;font-size:inherit;line-height:inherit}.input-currency-container .input-currency-content{display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:12px;width:100%;max-height:4rem;border-radius:5px;cursor:text;background-color:#fff;border:1px solid #0000001f;color:#696969;caret-color:#9a9da2;transition:.2s}.input-currency-container .input-currency-content:focus-within,.input-currency-container .input-currency-content:has(.input-currency-input:active),.input-currency-container .input-currency-content:has(.input-currency-input:focus){box-shadow:0 0 0 .2rem #f0f0f0}.input-currency-container .input-currency-content:focus-within,.input-currency-container .input-currency-content:hover{border-color:#bfbfbf!important}.input-currency-container .input-currency-content:has(.input-currency-input:invalid){border-color:#d14014!important;color:#d14014!important;caret-color:#d14014!important}.input-currency-container .input-currency-content:has(.input-currency-input:invalid):focus-within{box-shadow:0 0 0 .2rem #f1c4b6!important}.input-currency-container .input-currency-content:has(.input-currency-input:disabled){color:#bbbdc1!important;border-color:#e0e1e2!important;background-color:#f5f5f6!important;cursor:not-allowed!important;box-shadow:none!important;pointer-events:none!important}.input-currency-container .input-currency-content .input-currency-input{height:16px;outline:0;border:none;background-color:transparent;color:inherit;flex:1}"]
10843
10845
  }),
10844
10846
  __metadata("design:paramtypes", [ChangeDetectorRef,
10845
10847
  ElementRef])
@@ -11259,7 +11261,7 @@ var GIPIInputMonthPickerComponent = /** @class */ (function () {
11259
11261
  'class': 'gipi-input-monthpicker',
11260
11262
  },
11261
11263
  changeDetection: ChangeDetectionStrategy.OnPush,
11262
- styles: [":host{display:block;min-width:0;max-width:100%;flex:1}.input-monthpicker-container{display:flex;flex-direction:column;gap:1rem;width:100%}.input-monthpicker-container .input-monthpicker-label{color:#131313;font-size:1.4rem;line-height:100%}.input-monthpicker-container .input-monthpicker-label>span{color:#d14014;font-size:inherit;line-height:inherit}.input-monthpicker-container .input-monthpicker-content{display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:12px;width:100%;max-height:4rem;border-radius:5px;cursor:text;background-color:#fff;border:1px solid rgba(0,0,0,.12);color:#696969;caret-color:#9a9da2;transition:.2s;position:relative}.input-monthpicker-container .input-monthpicker-content:focus-within,.input-monthpicker-container .input-monthpicker-content:has(.input-monthpicker-input:active),.input-monthpicker-container .input-monthpicker-content:has(.input-monthpicker-input:focus){box-shadow:0 0 0 .2rem #f0f0f0}.input-monthpicker-container .input-monthpicker-content:focus-within,.input-monthpicker-container .input-monthpicker-content:hover{border-color:#bfbfbf!important}.input-monthpicker-container .input-monthpicker-content:has(.input-monthpicker-input:disabled){color:#bbbdc1!important;border-color:#e0e1e2!important;background-color:#f5f5f6!important;box-shadow:none!important;caret-color:#d1d2d4!important;pointer-events:none!important;cursor:not-allowed!important}.input-monthpicker-container .input-monthpicker-content:has(.input-monthpicker-input:disabled) .input-monthpicker-input,.input-monthpicker-container .input-monthpicker-content:has(.input-monthpicker-input:disabled) .input-monthpicker-suffix .input-monthpicker-button{cursor:not-allowed!important;pointer-events:none!important}.input-monthpicker-container .input-monthpicker-content:has(.input-monthpicker-input:disabled) .input-monthpicker-suffix .input-monthpicker-trigger{border-color:#e0e1e2!important;pointer-events:none!important}.input-monthpicker-container .input-monthpicker-content:has(.input-monthpicker-input:disabled) mat-icon{color:#d1d2d4!important;fill:#d1d2d4!important;cursor:not-allowed!important;pointer-events:none!important}.input-monthpicker-container .input-monthpicker-content .input-monthpicker-input{height:16px;max-width:84%;outline:0;border:none;background-color:transparent;color:inherit;flex:1}.input-monthpicker-container .input-monthpicker-content .input-monthpicker-suffix{display:flex;flex-direction:row;align-items:center;gap:16px}.input-monthpicker-container .input-monthpicker-content .input-monthpicker-suffix .input-monthpicker-button{display:flex;align-items:center;justify-content:center;outline:0;border:none;cursor:pointer;background-color:transparent}.input-monthpicker-container .input-monthpicker-content .input-monthpicker-suffix .input-monthpicker-button:hover:not(:disabled)>mat-icon{transform:scale(1.08)}.input-monthpicker-icon{width:1.6rem;height:1.6rem;font-size:1.6rem;color:#131313;fill:#131313}::ng-deep .calendar{width:100%;display:flex;flex-direction:column}::ng-deep .calendar .calendar-header{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:10px;padding-bottom:10px;border-bottom:1px solid #aeb1b5;margin-bottom:8px}::ng-deep .calendar .calendar-header .calendar-title{display:flex;flex-direction:row;align-items:center;gap:8px;font-size:1.6rem;line-height:1.8rem;font-weight:600;cursor:default;border-radius:8px;padding:8px;white-space:nowrap}::ng-deep .calendar .calendar-header .calendar-title>mat-icon{font-size:2rem;width:20px;height:20px}::ng-deep .calendar .calendar-header .calendar-title.month:hover{cursor:pointer;background-color:#f0f0f0}::ng-deep .calendar .calendar-header .calendar-controls{display:flex;flex-direction:row;align-items:center;gap:8px}::ng-deep .calendar .calendar-header .calendar-controls>button{display:flex;align-items:center;justify-content:center;padding:8px;border-radius:8px;background-color:#e0313e;cursor:pointer;transition:.3s;border:0;outline:0;color:#fff}::ng-deep .calendar .calendar-header .calendar-controls>button:hover{background-color:#cc2d38}::ng-deep .calendar .calendar-header .calendar-controls>button>mat-icon{font-size:1.8rem;width:18px;height:18px}::ng-deep .calendar .table-months{display:-ms-grid;display:grid;-ms-grid-columns:(1fr)[3];grid-template-columns:repeat(3,1fr);gap:4px}::ng-deep .calendar .table-months .month{display:flex;align-items:center;justify-content:center;padding:8px;border-radius:8px;font-size:1.4rem;line-height:1.7rem;color:#555659;background-color:#f0f0f0;transition:background-color .1s;cursor:pointer}::ng-deep .calendar .table-months .month.disabled{color:#bbbdc1;background-color:#e0e1e2}::ng-deep .calendar .table-months .month:not(.disabled).selected,::ng-deep .calendar .table-months .month:not(.disabled):hover{color:#fff;background-color:#e0313e}::ng-deep .calendar .table-months .month:not(.disabled).selected:hover{background-color:#cc2d38}::ng-deep .calendar .table-years{display:-ms-grid;display:grid;-ms-grid-columns:(1fr)[4];grid-template-columns:repeat(4,1fr);gap:4px}::ng-deep .calendar .table-years .year{display:flex;align-items:center;justify-content:center;padding:8px;border-radius:8px;font-size:1.4rem;line-height:1.7rem;color:#555659;background-color:#f0f0f0;transition:background-color .1s;cursor:pointer}::ng-deep .calendar .table-years .year.disabled{color:#bbbdc1;background-color:#e0e1e2}::ng-deep .calendar .table-years .year:not(.disabled).selected,::ng-deep .calendar .table-years .year:not(.disabled):hover{color:#fff;background-color:#e0313e}::ng-deep .calendar .table-years .year:not(.disabled).selected:hover{background-color:#cc2d38}"]
11264
+ styles: [":host{display:block;min-width:0;max-width:100%;flex:1}.input-monthpicker-container{display:flex;flex-direction:column;gap:1rem;width:100%}.input-monthpicker-container .input-monthpicker-label{color:#131313;font-size:1.4rem;line-height:100%}.input-monthpicker-container .input-monthpicker-label>span{color:#d14014;font-size:inherit;line-height:inherit}.input-monthpicker-container .input-monthpicker-content{display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:12px;width:100%;max-height:4rem;border-radius:5px;cursor:text;background-color:#fff;border:1px solid #0000001f;color:#696969;caret-color:#9a9da2;transition:.2s;position:relative}.input-monthpicker-container .input-monthpicker-content:focus-within,.input-monthpicker-container .input-monthpicker-content:has(.input-monthpicker-input:active),.input-monthpicker-container .input-monthpicker-content:has(.input-monthpicker-input:focus){box-shadow:0 0 0 .2rem #f0f0f0}.input-monthpicker-container .input-monthpicker-content:focus-within,.input-monthpicker-container .input-monthpicker-content:hover{border-color:#bfbfbf!important}.input-monthpicker-container .input-monthpicker-content:has(.input-monthpicker-input:disabled){color:#bbbdc1!important;border-color:#e0e1e2!important;background-color:#f5f5f6!important;box-shadow:none!important;caret-color:#d1d2d4!important;pointer-events:none!important;cursor:not-allowed!important}.input-monthpicker-container .input-monthpicker-content:has(.input-monthpicker-input:disabled) .input-monthpicker-input,.input-monthpicker-container .input-monthpicker-content:has(.input-monthpicker-input:disabled) .input-monthpicker-suffix .input-monthpicker-button{cursor:not-allowed!important;pointer-events:none!important}.input-monthpicker-container .input-monthpicker-content:has(.input-monthpicker-input:disabled) .input-monthpicker-suffix .input-monthpicker-trigger{border-color:#e0e1e2!important;pointer-events:none!important}.input-monthpicker-container .input-monthpicker-content:has(.input-monthpicker-input:disabled) mat-icon{color:#d1d2d4!important;fill:#d1d2d4!important;cursor:not-allowed!important;pointer-events:none!important}.input-monthpicker-container .input-monthpicker-content .input-monthpicker-input{height:16px;max-width:84%;outline:0;border:none;background-color:transparent;color:inherit;flex:1}.input-monthpicker-container .input-monthpicker-content .input-monthpicker-suffix{display:flex;flex-direction:row;align-items:center;gap:16px}.input-monthpicker-container .input-monthpicker-content .input-monthpicker-suffix .input-monthpicker-button{display:flex;align-items:center;justify-content:center;outline:0;border:none;cursor:pointer;background-color:transparent}.input-monthpicker-container .input-monthpicker-content .input-monthpicker-suffix .input-monthpicker-button:hover:not(:disabled)>mat-icon{transform:scale(1.08)}.input-monthpicker-icon{width:1.6rem;height:1.6rem;font-size:1.6rem;color:#131313;fill:#131313}::ng-deep .calendar{width:100%;display:flex;flex-direction:column}::ng-deep .calendar .calendar-header{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:10px;padding-bottom:10px;border-bottom:1px solid #aeb1b5;margin-bottom:8px}::ng-deep .calendar .calendar-header .calendar-title{display:flex;flex-direction:row;align-items:center;gap:8px;font-size:1.6rem;line-height:1.8rem;font-weight:600;cursor:default;border-radius:8px;padding:8px;white-space:nowrap}::ng-deep .calendar .calendar-header .calendar-title>mat-icon{font-size:2rem;width:20px;height:20px}::ng-deep .calendar .calendar-header .calendar-title.month:hover{cursor:pointer;background-color:#f0f0f0}::ng-deep .calendar .calendar-header .calendar-controls{display:flex;flex-direction:row;align-items:center;gap:8px}::ng-deep .calendar .calendar-header .calendar-controls>button{display:flex;align-items:center;justify-content:center;padding:8px;border-radius:8px;background-color:#e0313e;cursor:pointer;transition:.3s;border:0;outline:0;color:#fff}::ng-deep .calendar .calendar-header .calendar-controls>button:hover{background-color:#cc2d38}::ng-deep .calendar .calendar-header .calendar-controls>button>mat-icon{font-size:1.8rem;width:18px;height:18px}::ng-deep .calendar .table-months{display:-ms-grid;display:grid;-ms-grid-columns:(1fr)[3];grid-template-columns:repeat(3,1fr);gap:4px}::ng-deep .calendar .table-months .month{display:flex;align-items:center;justify-content:center;padding:8px;border-radius:8px;font-size:1.4rem;line-height:1.7rem;color:#555659;background-color:#f0f0f0;transition:background-color .1s;cursor:pointer}::ng-deep .calendar .table-months .month.disabled{color:#bbbdc1;background-color:#e0e1e2}::ng-deep .calendar .table-months .month:not(.disabled).selected,::ng-deep .calendar .table-months .month:not(.disabled):hover{color:#fff;background-color:#e0313e}::ng-deep .calendar .table-months .month:not(.disabled).selected:hover{background-color:#cc2d38}::ng-deep .calendar .table-years{display:-ms-grid;display:grid;-ms-grid-columns:(1fr)[4];grid-template-columns:repeat(4,1fr);gap:4px}::ng-deep .calendar .table-years .year{display:flex;align-items:center;justify-content:center;padding:8px;border-radius:8px;font-size:1.4rem;line-height:1.7rem;color:#555659;background-color:#f0f0f0;transition:background-color .1s;cursor:pointer}::ng-deep .calendar .table-years .year.disabled{color:#bbbdc1;background-color:#e0e1e2}::ng-deep .calendar .table-years .year:not(.disabled).selected,::ng-deep .calendar .table-years .year:not(.disabled):hover{color:#fff;background-color:#e0313e}::ng-deep .calendar .table-years .year:not(.disabled).selected:hover{background-color:#cc2d38}"]
11263
11265
  }),
11264
11266
  __metadata("design:paramtypes", [ChangeDetectorRef,
11265
11267
  GIPINgConfig])
@@ -13156,7 +13158,7 @@ var GIPIInputSelectComponent = /** @class */ (function () {
13156
13158
  'class': 'gipi-input-select',
13157
13159
  },
13158
13160
  changeDetection: ChangeDetectionStrategy.OnPush,
13159
- styles: [":host{display:block;min-width:0;max-width:100%;flex:1}::ng-deep .overlay-select{padding:0!important;overflow:hidden!important}::ng-deep .select-virtual-scroll-viewport{width:100%!important;max-height:240px;overflow:auto}::ng-deep .select-virtual-scroll-viewport .cdk-virtual-scroll-content-wrapper{width:100%!important;position:relative!important}::ng-deep .select-virtual-scroll-viewport::-webkit-scrollbar{width:15px}::ng-deep .select-virtual-scroll-viewport::-webkit-scrollbar-thumb{background-color:#e0e1e2;border-radius:10px;border:4px solid transparent;background-clip:padding-box}::ng-deep .select-row{display:flex;align-items:center;padding:0 16px;cursor:pointer;font-size:1.3rem;line-height:100%;gap:1rem}::ng-deep .select-row:hover{background:#f5f5f6}::ng-deep .select-row:active{background:#e0e1e2}::ng-deep .select-row.disabled{background-color:#d1d2d4!important;color:#9a9da2!important;cursor:not-allowed!important;pointer-events:none!important}::ng-deep .select-row>span{display:-webkit-box;line-clamp:2;box-orient:vertical;-webkit-line-clamp:2;-webkit-box-orient:vertical;text-overflow:ellipsis;overflow:hidden}.select-search{display:flex;align-items:center;font-size:1.4rem;line-height:100%;gap:1rem;padding:8px 12px}.select-option-all{border-bottom:1px solid rgba(0,0,0,.12)}.select-not-found{display:flex;flex-direction:column;align-items:center;justify-content:center;font-weight:600;font-size:1.2rem;gap:8px;color:#131313;cursor:default;padding:1.6rem 0}.select-not-found>mat-icon{width:2.8rem;height:2.8rem;font-size:2.8rem;line-height:2.8rem;color:#131313}.select-loading{height:4rem;width:100%;background-color:#fff;display:flex;align-items:center;justify-content:center}.select-loading .dot-pulse{position:relative;left:-9999px;width:5px;height:5px;border-radius:50%;background-color:#e0313e;color:#e0313e;box-shadow:9999px 0 0 -5px;-webkit-animation:1.5s linear .25s infinite dot-pulse;animation:1.5s linear .25s infinite dot-pulse}.select-loading .dot-pulse::after,.select-loading .dot-pulse::before{content:\"\";display:inline-block;position:absolute;top:0;width:5px;height:5px;border-radius:50%;background-color:#e0313e;color:#e0313e}.select-loading .dot-pulse::before{box-shadow:9984px 0 0 -5px;-webkit-animation:1.5s linear infinite dot-pulse-before;animation:1.5s linear infinite dot-pulse-before}.select-loading .dot-pulse::after{box-shadow:10014px 0 0 -5px;-webkit-animation:1.5s linear .5s infinite dot-pulse-after;animation:1.5s linear .5s infinite dot-pulse-after}@-webkit-keyframes dot-pulse-before{0%,100%,60%{box-shadow:9984px 0 0 -5px}30%{box-shadow:9984px 0 0 2px}}@keyframes dot-pulse-before{0%,100%,60%{box-shadow:9984px 0 0 -5px}30%{box-shadow:9984px 0 0 2px}}@-webkit-keyframes dot-pulse{0%,100%,60%{box-shadow:9999px 0 0 -5px}30%{box-shadow:9999px 0 0 2px}}@keyframes dot-pulse{0%,100%,60%{box-shadow:9999px 0 0 -5px}30%{box-shadow:9999px 0 0 2px}}@-webkit-keyframes dot-pulse-after{0%,100%,60%{box-shadow:10014px 0 0 -5px}30%{box-shadow:10014px 0 0 2px}}@keyframes dot-pulse-after{0%,100%,60%{box-shadow:10014px 0 0 -5px}30%{box-shadow:10014px 0 0 2px}}.select-footer{display:flex;align-items:center;gap:1rem;padding:8px 12px;border-top:1px solid #bfbfbf}::ng-deep .select-mat-option-pseudo-checkbox{margin:0!important}"]
13161
+ styles: [":host{display:block;min-width:0;max-width:100%;flex:1}::ng-deep .overlay-select{padding:0!important;overflow:hidden!important}::ng-deep .select-virtual-scroll-viewport{width:100%!important;max-height:240px;overflow:auto}::ng-deep .select-virtual-scroll-viewport .cdk-virtual-scroll-content-wrapper{width:100%!important;position:relative!important}::ng-deep .select-virtual-scroll-viewport::-webkit-scrollbar{width:15px}::ng-deep .select-virtual-scroll-viewport::-webkit-scrollbar-thumb{background-color:#e0e1e2;border-radius:10px;border:4px solid transparent;background-clip:padding-box}::ng-deep .select-row{display:flex;align-items:center;padding:0 16px;cursor:pointer;font-size:1.3rem;line-height:100%;gap:1rem}::ng-deep .select-row:hover{background:#f5f5f6}::ng-deep .select-row:active{background:#e0e1e2}::ng-deep .select-row.disabled{background-color:#d1d2d4!important;color:#9a9da2!important;cursor:not-allowed!important;pointer-events:none!important}::ng-deep .select-row>span{display:-webkit-box;line-clamp:2;box-orient:vertical;-webkit-line-clamp:2;-webkit-box-orient:vertical;text-overflow:ellipsis;overflow:hidden}.select-search{display:flex;align-items:center;font-size:1.4rem;line-height:100%;gap:1rem;padding:8px 12px}.select-option-all{border-bottom:1px solid #0000001f}.select-not-found{display:flex;flex-direction:column;align-items:center;justify-content:center;font-weight:600;font-size:1.2rem;gap:8px;color:#131313;cursor:default;padding:1.6rem 0}.select-not-found>mat-icon{width:2.8rem;height:2.8rem;font-size:2.8rem;line-height:2.8rem;color:#131313}.select-loading{height:4rem;width:100%;background-color:#fff;display:flex;align-items:center;justify-content:center}.select-loading .dot-pulse{position:relative;left:-9999px;width:5px;height:5px;border-radius:50%;background-color:#e0313e;color:#e0313e;box-shadow:9999px 0 0 -5px;-webkit-animation:1.5s linear .25s infinite dot-pulse;animation:1.5s linear .25s infinite dot-pulse}.select-loading .dot-pulse::after,.select-loading .dot-pulse::before{content:\"\";display:inline-block;position:absolute;top:0;width:5px;height:5px;border-radius:50%;background-color:#e0313e;color:#e0313e}.select-loading .dot-pulse::before{box-shadow:9984px 0 0 -5px;-webkit-animation:1.5s linear infinite dot-pulse-before;animation:1.5s linear infinite dot-pulse-before}.select-loading .dot-pulse::after{box-shadow:10014px 0 0 -5px;-webkit-animation:1.5s linear .5s infinite dot-pulse-after;animation:1.5s linear .5s infinite dot-pulse-after}@-webkit-keyframes dot-pulse-before{0%,100%,60%{box-shadow:9984px 0 0 -5px}30%{box-shadow:9984px 0 0 2px}}@keyframes dot-pulse-before{0%,100%,60%{box-shadow:9984px 0 0 -5px}30%{box-shadow:9984px 0 0 2px}}@-webkit-keyframes dot-pulse{0%,100%,60%{box-shadow:9999px 0 0 -5px}30%{box-shadow:9999px 0 0 2px}}@keyframes dot-pulse{0%,100%,60%{box-shadow:9999px 0 0 -5px}30%{box-shadow:9999px 0 0 2px}}@-webkit-keyframes dot-pulse-after{0%,100%,60%{box-shadow:10014px 0 0 -5px}30%{box-shadow:10014px 0 0 2px}}@keyframes dot-pulse-after{0%,100%,60%{box-shadow:10014px 0 0 -5px}30%{box-shadow:10014px 0 0 2px}}.select-footer{display:flex;align-items:center;gap:1rem;padding:8px 12px;border-top:1px solid #bfbfbf}::ng-deep .select-mat-option-pseudo-checkbox{margin:0!important}"]
13160
13162
  }),
13161
13163
  __metadata("design:paramtypes", [ChangeDetectorRef])
13162
13164
  ], GIPIInputSelectComponent);
@@ -15689,7 +15691,7 @@ var GIPIRadioGroupComponent = /** @class */ (function () {
15689
15691
  'class': 'gipi-radio-group',
15690
15692
  },
15691
15693
  changeDetection: ChangeDetectionStrategy.OnPush,
15692
- styles: [".radiogroup-content{display:flex;flex-direction:column;gap:1rem}.radiogroup-content>label,.radiogroup-content>legend{font-weight:400;font-size:1.4rem;line-height:100%;color:#131313}.radiogroup-content>label>span,.radiogroup-content>legend>span{color:#d14014}.radiogroup-content .radiogroup{display:flex;align-items:center;gap:1rem;padding:8px 0}.fieldset-radio-content{height:6.6rem;border-color:rgba(0,0,0,.12);border-radius:5px}.fieldset-radio-content .radiogroup{width:100%;height:100%;justify-content:space-around}"]
15694
+ styles: [".radiogroup-content{display:flex;flex-direction:column;gap:1rem}.radiogroup-content>label,.radiogroup-content>legend{font-weight:400;font-size:1.4rem;line-height:100%;color:#131313}.radiogroup-content>label>span,.radiogroup-content>legend>span{color:#d14014}.radiogroup-content .radiogroup{display:flex;align-items:center;gap:1rem;padding:8px 0}.fieldset-radio-content{height:6.6rem;border-color:#0000001f;border-radius:5px}.fieldset-radio-content .radiogroup{width:100%;height:100%;justify-content:space-around}"]
15693
15695
  }),
15694
15696
  __metadata("design:paramtypes", [ChangeDetectorRef])
15695
15697
  ], GIPIRadioGroupComponent);
@@ -15963,7 +15965,7 @@ var GIPIRangePageComponent = /** @class */ (function () {
15963
15965
  multi: true
15964
15966
  },
15965
15967
  ],
15966
- styles: [":host{display:flex;flex-direction:column;gap:.8rem;font-size:1.4rem;color:#696969}:host .input-label{display:flex;align-items:center;gap:.4rem;color:#131313;line-height:1.6rem}:host .input-label>span{font-size:1.6rem;line-height:1.6rem;color:#d14014}:host .input-content{display:flex;font-family:inherit;font-size:inherit;color:inherit;height:4rem;background:#fff;border:1px solid rgba(0,0,0,.12);transition:background-color .2s,color .2s,border-color .2s,box-shadow .2s;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:.6rem}:host .input-content .input-element{padding:.75rem .8rem;border:none;outline:0;background-color:transparent;flex:1;color:inherit;caret-color:#696969;min-width:0;text-align:center;margin:0!important}:host .input-content .input-element::-webkit-inner-spin-button,:host .input-content .input-element::-webkit-outer-spin-button{-webkit-appearance:none;appearance:none;opacity:0}:host .input-content:has(.input-element:disabled){color:#bbbdc1!important;border-color:#e0e1e2!important;background-color:#f5f5f6!important;cursor:not-allowed}:host .input-content:has(.input-element:disabled) .suffix>mat-icon{color:#bbbdc1!important}:host .input-content .input-element:disabled{cursor:not-allowed}:host .input-content .infix,:host .input-content .prefix,:host .input-content .suffix{display:flex;align-items:center;justify-content:center;padding-block:.75rem;padding-inline:.8rem;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:.2s;background-color:#e0313e}:host .input-content .infix>mat-icon,:host .input-content .prefix>mat-icon,:host .input-content .suffix>mat-icon{width:2rem;height:2rem;font-size:2rem;color:#fff}:host .input-content .infix:not(.infix):not(.disabled):hover,:host .input-content .prefix:not(.infix):not(.disabled):hover,:host .input-content .suffix:not(.infix):not(.disabled):hover{background-color:#cc2d38}:host .input-content .infix:not(.infix):not(.disabled):active,:host .input-content .prefix:not(.infix):not(.disabled):active,:host .input-content .suffix:not(.infix):not(.disabled):active{background-color:#9f232c}:host .input-content .prefix.disabled,:host .input-content .suffix.disabled{background-color:#d1d2d4}:host .input-content .prefix.disabled>mat-icon,:host .input-content .suffix.disabled>mat-icon{color:#9a9da2}:host .input-content .prefix{border-right:1px solid rgba(0,0,0,.12);border-radius:.6rem 0 0 .6rem;cursor:pointer}:host .input-content .infix{width:1rem;padding:0;background-color:transparent}:host .input-content .suffix{border-left:1px solid rgba(0,0,0,.12);border-radius:0 .6rem .6rem 0;cursor:pointer}:host .input-help{flex:1;font-size:1rem;font-weight:500;margin-top:-.4rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}::-webkit-input-placeholder{color:#bbbdc1}:-moz-placeholder{color:#bbbdc1}::-moz-placeholder{color:#bbbdc1}:-ms-input-placeholder{color:#bbbdc1}"]
15968
+ styles: [":host{display:flex;flex-direction:column;gap:.8rem;font-size:1.4rem;color:#696969}:host .input-label{display:flex;align-items:center;gap:.4rem;color:#131313;line-height:1.6rem}:host .input-label>span{font-size:1.6rem;line-height:1.6rem;color:#d14014}:host .input-content{display:flex;font-family:inherit;font-size:inherit;color:inherit;height:4rem;background:#fff;border:1px solid #0000001f;transition:background-color .2s,color .2s,border-color .2s,box-shadow .2s;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:.6rem}:host .input-content .input-element{padding:.75rem .8rem;border:none;outline:0;background-color:transparent;flex:1;color:inherit;caret-color:#696969;min-width:0;text-align:center;margin:0!important}:host .input-content .input-element::-webkit-inner-spin-button,:host .input-content .input-element::-webkit-outer-spin-button{-webkit-appearance:none;appearance:none;opacity:0}:host .input-content:has(.input-element:disabled){color:#bbbdc1!important;border-color:#e0e1e2!important;background-color:#f5f5f6!important;cursor:not-allowed}:host .input-content:has(.input-element:disabled) .suffix>mat-icon{color:#bbbdc1!important}:host .input-content .input-element:disabled{cursor:not-allowed}:host .input-content .infix,:host .input-content .prefix,:host .input-content .suffix{display:flex;align-items:center;justify-content:center;padding-block:.75rem;padding-inline:.8rem;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:.2s;background-color:#e0313e}:host .input-content .infix>mat-icon,:host .input-content .prefix>mat-icon,:host .input-content .suffix>mat-icon{width:2rem;height:2rem;font-size:2rem;color:#fff}:host .input-content .infix:not(.infix):not(.disabled):hover,:host .input-content .prefix:not(.infix):not(.disabled):hover,:host .input-content .suffix:not(.infix):not(.disabled):hover{background-color:#cc2d38}:host .input-content .infix:not(.infix):not(.disabled):active,:host .input-content .prefix:not(.infix):not(.disabled):active,:host .input-content .suffix:not(.infix):not(.disabled):active{background-color:#9f232c}:host .input-content .prefix.disabled,:host .input-content .suffix.disabled{background-color:#d1d2d4}:host .input-content .prefix.disabled>mat-icon,:host .input-content .suffix.disabled>mat-icon{color:#9a9da2}:host .input-content .prefix{border-right:1px solid #0000001f;border-radius:.6rem 0 0 .6rem;cursor:pointer}:host .input-content .infix{width:1rem;padding:0;background-color:transparent}:host .input-content .suffix{border-left:1px solid #0000001f;border-radius:0 .6rem .6rem 0;cursor:pointer}:host .input-help{flex:1;font-size:1rem;font-weight:500;margin-top:-.4rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}::-webkit-input-placeholder{color:#bbbdc1}:-moz-placeholder{color:#bbbdc1}::-moz-placeholder{color:#bbbdc1}:-ms-input-placeholder{color:#bbbdc1}"]
15967
15969
  }),
15968
15970
  __metadata("design:paramtypes", [ElementRef,
15969
15971
  ChangeDetectorRef])
@@ -16322,7 +16324,7 @@ var GIPIRangeSliderComponent = /** @class */ (function () {
16322
16324
  'class': 'gipi-range-slider',
16323
16325
  },
16324
16326
  changeDetection: ChangeDetectionStrategy.OnPush,
16325
- styles: [":host{display:flex;flex-direction:column;gap:.8rem;font-size:1.4rem;color:#696969}:host .input-label{display:flex;align-items:center;gap:.4rem;color:#131313;line-height:1.6rem}:host .input-label>span{font-size:1.6rem;line-height:1.6rem;color:#d14014}:host .slider-wrapper{display:flex;align-items:center;justify-content:space-between;gap:1.6rem}:host .slider-wrapper>input{display:flex;font-family:inherit;font-size:inherit;color:inherit;text-align:center;padding:.75rem .8rem;background:#fff;border:1px solid rgba(0,0,0,.12);transition:background-color .2s,color .2s,border-color .2s,box-shadow .2s;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:.6rem;outline:0}:host .sliders-control{display:flex;align-items:center;justify-content:center;padding:2rem;position:relative;flex:1}:host .from-value,:host .to-value{-webkit-appearance:none;-moz-appearance:none;appearance:none;height:.6rem;border-radius:.4rem;width:100%;position:absolute;background-color:#e0e1e2;pointer-events:none;outline:0}:host .from-value::-webkit-slider-thumb,:host .to-value::-webkit-slider-thumb{-webkit-appearance:none;display:block;width:1.4rem;height:1.4rem;border-radius:50%;background-color:#e0313e;pointer-events:all;box-shadow:0 .5px 0 0 rgba(0,0,0,.08),0 1px 1px 0 rgba(0,0,0,.14);cursor:-webkit-grab;cursor:grab;outline:0}:host .from-value::-webkit-slider-thumb:hover,:host .to-value::-webkit-slider-thumb:hover{background-color:#cc2d38}:host .from-value::-webkit-slider-thumb:active,:host .to-value::-webkit-slider-thumb:active{box-shadow:inset 0 0 3px #e0313e,0 0 9px #e0313e;-webkit-box-shadow:inset 0 0 3px #e0313e,0 0 9px #e0313e;cursor:-webkit-grabbing;cursor:grabbing}:host input[type=number]{border:1px solid rgba(0,0,0,.12);color:#131313;width:50px;height:30px;font-size:20px;outline:0}:host input[type=number]::-webkit-inner-spin-button,:host input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;appearance:none;opacity:0}:host #fromSlider{height:0;z-index:1}"]
16327
+ styles: [":host{display:flex;flex-direction:column;gap:.8rem;font-size:1.4rem;color:#696969}:host .input-label{display:flex;align-items:center;gap:.4rem;color:#131313;line-height:1.6rem}:host .input-label>span{font-size:1.6rem;line-height:1.6rem;color:#d14014}:host .slider-wrapper{display:flex;align-items:center;justify-content:space-between;gap:1.6rem}:host .slider-wrapper>input{display:flex;font-family:inherit;font-size:inherit;color:inherit;text-align:center;padding:.75rem .8rem;background:#fff;border:1px solid #0000001f;transition:background-color .2s,color .2s,border-color .2s,box-shadow .2s;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:.6rem;outline:0}:host .sliders-control{display:flex;align-items:center;justify-content:center;padding:2rem;position:relative;flex:1}:host .from-value,:host .to-value{-webkit-appearance:none;-moz-appearance:none;appearance:none;height:.6rem;border-radius:.4rem;width:100%;position:absolute;background-color:#e0e1e2;pointer-events:none;outline:0}:host .from-value::-webkit-slider-thumb,:host .to-value::-webkit-slider-thumb{-webkit-appearance:none;display:block;width:1.4rem;height:1.4rem;border-radius:50%;background-color:#e0313e;pointer-events:all;box-shadow:0 .5px 0 0 rgba(0,0,0,.08),0 1px 1px 0 rgba(0,0,0,.14);cursor:-webkit-grab;cursor:grab;outline:0}:host .from-value::-webkit-slider-thumb:hover,:host .to-value::-webkit-slider-thumb:hover{background-color:#cc2d38}:host .from-value::-webkit-slider-thumb:active,:host .to-value::-webkit-slider-thumb:active{box-shadow:inset 0 0 3px #e0313e,0 0 9px #e0313e;-webkit-box-shadow:inset 0 0 3px #e0313e,0 0 9px #e0313e;cursor:-webkit-grabbing;cursor:grabbing}:host input[type=number]{border:1px solid #0000001f;color:#131313;width:50px;height:30px;font-size:20px;outline:0}:host input[type=number]::-webkit-inner-spin-button,:host input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;appearance:none;opacity:0}:host #fromSlider{height:0;z-index:1}"]
16326
16328
  }),
16327
16329
  __metadata("design:paramtypes", [ElementRef,
16328
16330
  ChangeDetectorRef])
@@ -16523,7 +16525,7 @@ var GIPISelectButtonComponent = /** @class */ (function () {
16523
16525
  'class': 'gipi-select-button',
16524
16526
  },
16525
16527
  changeDetection: ChangeDetectionStrategy.OnPush,
16526
- styles: [".select-button-content{display:flex;flex-direction:column;gap:1rem}.select-button-content .label{font-weight:400;font-size:1.4rem;line-height:100%;color:#131313}.select-button-content .label>span{color:#d14014}.select-button-content .select-button{display:flex;flex-direction:row}.select-button-content .select-button .button{width:100%;padding:1.2rem 1.6rem;font-weight:700;font-size:1.3rem;line-height:100%;text-align:center;cursor:pointer;background-color:#fff;border:1px solid rgba(0,0,0,.12);color:#696969;height:4rem;display:flex;align-items:center;justify-content:center}.select-button-content .select-button .button:hover{background-color:#f5f5f6}.select-button-content .select-button .button:first-child{border-top-left-radius:5px;border-bottom-left-radius:5px}.select-button-content .select-button .button:last-child{border-top-right-radius:5px;border-bottom-right-radius:5px}.select-button-content .select-button .button.disabled{pointer-events:none!important;cursor:not-allowed!important;border-color:#e0e1e2!important;color:#d1d2d4!important}.select-button-content .select-button .button.disabled.selected{background-color:#e0e1e2!important}.select-button-content .select-button .button.button-primary.selected{background-color:#e0313e;border-color:#e0313e;color:#fff}.select-button-content .select-button .button.button-primary:hover.selected{background-color:#cc2d38}.select-button-content .select-button .button.button-secondary.selected{background-color:#9a9da2;border-color:#9a9da2;color:#fff}.select-button-content .select-button .button.button-secondary:hover.selected{background-color:#8c8f93}"]
16528
+ styles: [".select-button-content{display:flex;flex-direction:column;gap:1rem}.select-button-content .label{font-weight:400;font-size:1.4rem;line-height:100%;color:#131313}.select-button-content .label>span{color:#d14014}.select-button-content .select-button{display:flex;flex-direction:row}.select-button-content .select-button .button{width:100%;padding:1.2rem 1.6rem;font-weight:700;font-size:1.3rem;line-height:100%;text-align:center;cursor:pointer;background-color:#fff;border:1px solid #0000001f;color:#696969;height:4rem;display:flex;align-items:center;justify-content:center}.select-button-content .select-button .button:hover{background-color:#f5f5f6}.select-button-content .select-button .button:first-child{border-top-left-radius:5px;border-bottom-left-radius:5px}.select-button-content .select-button .button:last-child{border-top-right-radius:5px;border-bottom-right-radius:5px}.select-button-content .select-button .button.disabled{pointer-events:none!important;cursor:not-allowed!important;border-color:#e0e1e2!important;color:#d1d2d4!important}.select-button-content .select-button .button.disabled.selected{background-color:#e0e1e2!important}.select-button-content .select-button .button.button-primary.selected{background-color:#e0313e;border-color:#e0313e;color:#fff}.select-button-content .select-button .button.button-primary:hover.selected{background-color:#cc2d38}.select-button-content .select-button .button.button-secondary.selected{background-color:#9a9da2;border-color:#9a9da2;color:#fff}.select-button-content .select-button .button.button-secondary:hover.selected{background-color:#8c8f93}"]
16527
16529
  }),
16528
16530
  __metadata("design:paramtypes", [ElementRef,
16529
16531
  ChangeDetectorRef])
@@ -18904,7 +18906,7 @@ var GIPITextareaComponent = /** @class */ (function () {
18904
18906
  'class': 'gipi-textarea',
18905
18907
  },
18906
18908
  changeDetection: ChangeDetectionStrategy.OnPush,
18907
- styles: [":host{display:flex;min-width:0;max-width:100%;flex:1;flex-direction:column;gap:.8rem;font-size:1.4rem;color:#696969}:host .textarea-label{display:flex;align-items:center;gap:.4rem;color:#131313;line-height:1.6rem}:host .textarea-label>span{font-size:1.6rem;line-height:1.6rem;color:#d14014}:host .textarea-element{display:flex;font-family:inherit;font-size:inherit;color:inherit;padding:.75rem .8rem;background:#fff;border:1px solid rgba(0,0,0,.12);transition:background-color .2s,color .2s,border-color .2s,box-shadow .2s;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:6px;caret-color:#696969;max-height:12rem;min-height:6rem;resize:vertical;outline:0;overflow:auto}:host .textarea-element:not(:disabled):hover{border-color:#6d6f73}:host .textarea-element:not(:disabled).ng-dirty.ng-invalid:enabled:hover,:host .textarea-element:not(:disabled):invalid:enabled:hover{border-color:#e07f62}:host .textarea-element:not(:disabled):enabled:focus{outline:0;outline-offset:0;box-shadow:0 0 0 .2rem #e0e1e2;border-color:#6d6f73}:host .textarea-element:not(:disabled).ng-dirty.ng-invalid:enabled,:host .textarea-element:not(:disabled):invalid:enabled{border-color:#d14014}:host .textarea-element:not(:disabled).ng-dirty.ng-invalid:enabled:focus,:host .textarea-element:not(:disabled):invalid:enabled:focus{outline:0;outline-offset:0;box-shadow:0 0 0 .2rem #f1c4b6;border-color:#d14014}:host .textarea-element:disabled{color:#bbbdc1!important;border-color:#e0e1e2!important;background-color:#f5f5f6!important;cursor:not-allowed}:host .textarea-element.resize-none{resize:none}:host .textarea-element.resize-both{resize:both}:host .textarea-element.resize-horizontal{resize:horizontal}:host .textarea-element.resize-vertical{resize:vertical}:host .textarea-help{flex:1;font-size:1rem;font-weight:500;margin-top:-.4rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}::-webkit-input-placeholder{color:#bbbdc1}:-moz-placeholder{color:#bbbdc1}::-moz-placeholder{color:#bbbdc1}:-ms-input-placeholder{color:#bbbdc1}"]
18909
+ styles: [":host{display:flex;min-width:0;max-width:100%;flex:1;flex-direction:column;gap:.8rem;font-size:1.4rem;color:#696969}:host .textarea-label{display:flex;align-items:center;gap:.4rem;color:#131313;line-height:1.6rem}:host .textarea-label>span{font-size:1.6rem;line-height:1.6rem;color:#d14014}:host .textarea-element{display:flex;font-family:inherit;font-size:inherit;color:inherit;padding:.75rem .8rem;background:#fff;border:1px solid #0000001f;transition:background-color .2s,color .2s,border-color .2s,box-shadow .2s;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:6px;caret-color:#696969;max-height:12rem;min-height:6rem;resize:vertical;outline:0;overflow:auto}:host .textarea-element:not(:disabled):hover{border-color:#6d6f73}:host .textarea-element:not(:disabled).ng-dirty.ng-invalid:enabled:hover,:host .textarea-element:not(:disabled):invalid:enabled:hover{border-color:#e07f62}:host .textarea-element:not(:disabled):enabled:focus{outline:0;outline-offset:0;box-shadow:0 0 0 .2rem #e0e1e2;border-color:#6d6f73}:host .textarea-element:not(:disabled).ng-dirty.ng-invalid:enabled,:host .textarea-element:not(:disabled):invalid:enabled{border-color:#d14014}:host .textarea-element:not(:disabled).ng-dirty.ng-invalid:enabled:focus,:host .textarea-element:not(:disabled):invalid:enabled:focus{outline:0;outline-offset:0;box-shadow:0 0 0 .2rem #f1c4b6;border-color:#d14014}:host .textarea-element:disabled{color:#bbbdc1!important;border-color:#e0e1e2!important;background-color:#f5f5f6!important;cursor:not-allowed}:host .textarea-element.resize-none{resize:none}:host .textarea-element.resize-both{resize:both}:host .textarea-element.resize-horizontal{resize:horizontal}:host .textarea-element.resize-vertical{resize:vertical}:host .textarea-help{flex:1;font-size:1rem;font-weight:500;margin-top:-.4rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}::-webkit-input-placeholder{color:#bbbdc1}:-moz-placeholder{color:#bbbdc1}::-moz-placeholder{color:#bbbdc1}:-ms-input-placeholder{color:#bbbdc1}"]
18908
18910
  }),
18909
18911
  __metadata("design:paramtypes", [ElementRef,
18910
18912
  ChangeDetectorRef])
@@ -23366,7 +23368,7 @@ var MatDateRangeInput = /** @class */ (function () {
23366
23368
  { provide: MatFormFieldControl, useExisting: MatDateRangeInput_1 },
23367
23369
  { provide: MAT_DATE_RANGE_INPUT_PARENT, useExisting: MatDateRangeInput_1 },
23368
23370
  ],
23369
- styles: [".mat-date-range-input{display:block;width:100%}.mat-date-range-input-container{display:flex;align-items:center;padding-bottom:3px}.mat-date-range-input-separator{transition:opacity .4s cubic-bezier(.25,.8,.25,1) .133s;margin:0 4px}.mat-date-range-input-separator-hidden{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;opacity:0;transition:none}.mat-date-range-input-inner{font:inherit;background:0 0;color:currentColor;border:none;outline:0;padding:0;margin:0;vertical-align:bottom;text-align:inherit;-webkit-appearance:none;width:100%}.mat-date-range-input-inner::-ms-clear,.mat-date-range-input-inner::-ms-reveal{display:none}.mat-date-range-input-inner:-moz-ui-invalid{box-shadow:none}.mat-date-range-input-inner::-ms-input-placeholder{transition:color .4s cubic-bezier(.25,.8,.25,1) .133s}.mat-date-range-input-inner::placeholder{transition:color .4s cubic-bezier(.25,.8,.25,1) .133s}.mat-date-range-input-inner::-moz-placeholder{transition:color .4s cubic-bezier(.25,.8,.25,1) .133s}.mat-date-range-input-inner::-webkit-input-placeholder{transition:color .4s cubic-bezier(.25,.8,.25,1) .133s}.mat-date-range-input-inner:-ms-input-placeholder{transition:color .4s cubic-bezier(.25,.8,.25,1) .133s}.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-ms-input-placeholder,.mat-form-field-hide-placeholder .mat-date-range-input-inner::-ms-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;color:transparent!important;-webkit-text-fill-color:transparent;transition:none}.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::placeholder,.mat-form-field-hide-placeholder .mat-date-range-input-inner::placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;color:transparent!important;-webkit-text-fill-color:transparent;transition:none}.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-moz-placeholder,.mat-form-field-hide-placeholder .mat-date-range-input-inner::-moz-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;color:transparent!important;-webkit-text-fill-color:transparent;transition:none}.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-webkit-input-placeholder,.mat-form-field-hide-placeholder .mat-date-range-input-inner::-webkit-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;color:transparent!important;-webkit-text-fill-color:transparent;transition:none}.mat-date-range-input-hide-placeholders .mat-date-range-input-inner:-ms-input-placeholder,.mat-form-field-hide-placeholder .mat-date-range-input-inner:-ms-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;color:transparent!important;-webkit-text-fill-color:transparent;transition:none}.mat-date-range-input-mirror{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;visibility:hidden;white-space:nowrap;display:inline-block;min-width:2px}.mat-date-range-input-start-wrapper{position:relative;overflow:hidden;max-width:calc(50% - 4px)}.mat-date-range-input-start-wrapper .mat-date-range-input-inner{position:absolute;top:0;left:0}.mat-date-range-input-end-wrapper{flex-grow:1;max-width:calc(50% - 4px)}.mat-form-field-type-mat-date-range-input .mat-form-field-infix{width:200px}"]
23371
+ styles: [".mat-date-range-input{display:block;width:100%}.mat-date-range-input-container{display:flex;align-items:center;padding-bottom:3px}.mat-date-range-input-separator{transition:opacity .4s cubic-bezier(.25,.8,.25,1) .133s;margin:0 4px}.mat-date-range-input-separator-hidden{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;opacity:0;transition:none}.mat-date-range-input-inner{font:inherit;background:0 0;color:currentColor;border:none;outline:0;padding:0;margin:0;vertical-align:bottom;text-align:inherit;width:100%;-moz-appearance:none;appearance:none;-webkit-appearance:none}.mat-date-range-input-inner::-ms-clear,.mat-date-range-input-inner::-ms-reveal{display:none}.mat-date-range-input-inner:-moz-ui-invalid{box-shadow:none}.mat-date-range-input-inner::-ms-input-placeholder{transition:color .4s cubic-bezier(.25,.8,.25,1) .133s}.mat-date-range-input-inner::placeholder{transition:color .4s cubic-bezier(.25,.8,.25,1) .133s}.mat-date-range-input-inner::-moz-placeholder{transition:color .4s cubic-bezier(.25,.8,.25,1) .133s}.mat-date-range-input-inner::-webkit-input-placeholder{transition:color .4s cubic-bezier(.25,.8,.25,1) .133s}.mat-date-range-input-inner:-ms-input-placeholder{transition:color .4s cubic-bezier(.25,.8,.25,1) .133s}.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-ms-input-placeholder,.mat-form-field-hide-placeholder .mat-date-range-input-inner::-ms-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;color:transparent!important;-webkit-text-fill-color:transparent;transition:none}.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::placeholder,.mat-form-field-hide-placeholder .mat-date-range-input-inner::placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;color:transparent!important;-webkit-text-fill-color:transparent;transition:none}.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-moz-placeholder,.mat-form-field-hide-placeholder .mat-date-range-input-inner::-moz-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;color:transparent!important;-webkit-text-fill-color:transparent;transition:none}.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-webkit-input-placeholder,.mat-form-field-hide-placeholder .mat-date-range-input-inner::-webkit-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;color:transparent!important;-webkit-text-fill-color:transparent;transition:none}.mat-date-range-input-hide-placeholders .mat-date-range-input-inner:-ms-input-placeholder,.mat-form-field-hide-placeholder .mat-date-range-input-inner:-ms-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;color:transparent!important;-webkit-text-fill-color:transparent;transition:none}.mat-date-range-input-mirror{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;visibility:hidden;white-space:nowrap;display:inline-block;min-width:2px}.mat-date-range-input-start-wrapper{position:relative;overflow:hidden;max-width:calc(50% - 4px)}.mat-date-range-input-start-wrapper .mat-date-range-input-inner{position:absolute;top:0;left:0}.mat-date-range-input-end-wrapper{flex-grow:1;max-width:calc(50% - 4px)}.mat-form-field-type-mat-date-range-input .mat-form-field-infix{width:200px}"]
23370
23372
  }),
23371
23373
  __param(2, Optional()), __param(2, Self()),
23372
23374
  __param(3, Optional()),
@@ -24245,7 +24247,7 @@ var DateRangePickerComponent = /** @class */ (function () {
24245
24247
  host: {
24246
24248
  'class': 'gipi-date-range-picker',
24247
24249
  },
24248
- styles: [":host{display:block;width:100%;min-width:0;max-width:100%;flex:1}.input-wrapper{display:flex;flex-direction:column;gap:.8rem;font-size:1.4rem;color:#696969}.input-wrapper .input-label{display:flex;align-items:center;gap:.4rem;color:#131313;line-height:1.6rem}.input-wrapper .input-label>span{font-size:1.6rem;line-height:1.6rem;color:#d14014}.input-wrapper .input-content{display:flex;font-family:inherit;font-size:inherit;color:inherit;height:4rem;background:#fff;border:1px solid rgba(0,0,0,.12);transition:background-color .2s,color .2s,border-color .2s,box-shadow .2s;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:.6rem}.input-wrapper .input-content .input-element{padding:.75rem .8rem;border:none;outline:0;background-color:transparent;flex:1;color:inherit;caret-color:#696969;min-width:0}.input-wrapper .input-content:not(.input-element:disabled):has(.input-element:enabled:hover),.input-wrapper .input-content:not(.input-element:disabled):has(.prefix:hover),.input-wrapper .input-content:not(.input-element:disabled):has(.suffix:hover){border-color:#6d6f73}.input-wrapper .input-content:not(.input-element:disabled):has(.input-element:enabled:focus){outline:0;outline-offset:0;box-shadow:0 0 0 .2rem #e0e1e2;border-color:#6d6f73}.input-wrapper .input-content:has(.input-element:disabled){color:#bbbdc1!important;border-color:#e0e1e2!important;background-color:#f5f5f6!important;cursor:not-allowed}.input-wrapper .input-content:has(.input-element:disabled) .suffix>mat-icon{color:#bbbdc1!important}.input-wrapper .input-content .input-element:disabled{cursor:not-allowed}.input-wrapper .input-content .suffix{display:flex;align-items:center;justify-content:center;padding-block:.75rem;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;padding-right:.8rem}.input-wrapper .input-content .suffix>mat-icon{width:2rem;height:2rem;font-size:2rem;color:#696969}.input-wrapper .input-help{flex:1;font-size:1rem;font-weight:500;margin-top:-.4rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}::ng-deep .mat-date-range-input{height:4rem!important;padding-left:.8rem!important}::ng-deep .mat-date-range-input-container,::ng-deep .mat-date-range-input-end-wrapper,::ng-deep .mat-date-range-input-inner,::ng-deep .mat-date-range-input-start-wrapper{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;max-width:100%;min-height:100%;height:100%;padding-bottom:3px}::ng-deep .mat-date-range-input-end-wrapper{padding-bottom:0!important}::ng-deep .mat-date-range-input-inner{padding:0!important}::-webkit-input-placeholder{color:#bbbdc1}:-moz-placeholder{color:#bbbdc1}::-moz-placeholder{color:#bbbdc1}:-ms-input-placeholder{color:#bbbdc1}"]
24250
+ styles: [":host{display:block;width:100%;min-width:0;max-width:100%;flex:1}.input-wrapper{display:flex;flex-direction:column;gap:.8rem;font-size:1.4rem;color:#696969}.input-wrapper .input-label{display:flex;align-items:center;gap:.4rem;color:#131313;line-height:1.6rem}.input-wrapper .input-label>span{font-size:1.6rem;line-height:1.6rem;color:#d14014}.input-wrapper .input-content{display:flex;font-family:inherit;font-size:inherit;color:inherit;height:4rem;background:#fff;border:1px solid #0000001f;transition:background-color .2s,color .2s,border-color .2s,box-shadow .2s;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:.6rem}.input-wrapper .input-content .input-element{padding:.75rem .8rem;border:none;outline:0;background-color:transparent;flex:1;color:inherit;caret-color:#696969;min-width:0}.input-wrapper .input-content:not(.input-element:disabled):has(.input-element:enabled:hover),.input-wrapper .input-content:not(.input-element:disabled):has(.prefix:hover),.input-wrapper .input-content:not(.input-element:disabled):has(.suffix:hover){border-color:#6d6f73}.input-wrapper .input-content:not(.input-element:disabled):has(.input-element:enabled:focus){outline:0;outline-offset:0;box-shadow:0 0 0 .2rem #e0e1e2;border-color:#6d6f73}.input-wrapper .input-content:has(.input-element:disabled){color:#bbbdc1!important;border-color:#e0e1e2!important;background-color:#f5f5f6!important;cursor:not-allowed}.input-wrapper .input-content:has(.input-element:disabled) .suffix>mat-icon{color:#bbbdc1!important}.input-wrapper .input-content .input-element:disabled{cursor:not-allowed}.input-wrapper .input-content .suffix{display:flex;align-items:center;justify-content:center;padding-block:.75rem;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;padding-right:.8rem}.input-wrapper .input-content .suffix>mat-icon{width:2rem;height:2rem;font-size:2rem;color:#696969}.input-wrapper .input-help{flex:1;font-size:1rem;font-weight:500;margin-top:-.4rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}::ng-deep .mat-date-range-input{height:4rem!important;padding-left:.8rem!important}::ng-deep .mat-date-range-input-container,::ng-deep .mat-date-range-input-end-wrapper,::ng-deep .mat-date-range-input-inner,::ng-deep .mat-date-range-input-start-wrapper{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;max-width:100%;min-height:100%;height:100%;padding-bottom:3px}::ng-deep .mat-date-range-input-end-wrapper{padding-bottom:0!important}::ng-deep .mat-date-range-input-inner{padding:0!important}::-webkit-input-placeholder{color:#bbbdc1}:-moz-placeholder{color:#bbbdc1}::-moz-placeholder{color:#bbbdc1}:-ms-input-placeholder{color:#bbbdc1}"]
24249
24251
  }),
24250
24252
  __metadata("design:paramtypes", [ElementRef,
24251
24253
  ChangeDetectorRef])
@@ -24845,7 +24847,7 @@ var DatepickerComponent = /** @class */ (function () {
24845
24847
  host: {
24846
24848
  'class': 'gipi-datepicker',
24847
24849
  },
24848
- styles: [":host{display:block;width:100%;min-width:0;max-width:100%;flex:1}.input-wrapper{display:flex;flex-direction:column;gap:.8rem;font-size:1.4rem;color:#696969}.input-wrapper .input-label{display:flex;align-items:center;gap:.4rem;color:#131313;line-height:1.6rem}.input-wrapper .input-label>span{font-size:1.6rem;line-height:1.6rem;color:#d14014}.input-wrapper .input-content{display:flex;font-family:inherit;font-size:inherit;color:inherit;height:4rem;background:#fff;border:1px solid rgba(0,0,0,.12);transition:background-color .2s,color .2s,border-color .2s,box-shadow .2s;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:.6rem}.input-wrapper .input-content .input-element{padding:.75rem .8rem;border:none;outline:0;background-color:transparent;flex:1;color:inherit;caret-color:#696969;min-width:0}.input-wrapper .input-content:not(.input-element:disabled):has(.input-element:enabled:hover),.input-wrapper .input-content:not(.input-element:disabled):has(.prefix:hover),.input-wrapper .input-content:not(.input-element:disabled):has(.suffix:hover){border-color:#6d6f73}.input-wrapper .input-content:not(.input-element:disabled):has(.input-element:enabled:focus){outline:0;outline-offset:0;box-shadow:0 0 0 .2rem #e0e1e2;border-color:#6d6f73}.input-wrapper .input-content:has(.input-element:disabled){color:#bbbdc1!important;border-color:#e0e1e2!important;background-color:#f5f5f6!important;cursor:not-allowed}.input-wrapper .input-content:has(.input-element:disabled) .suffix>mat-icon{color:#bbbdc1!important}.input-wrapper .input-content .input-element:disabled{cursor:not-allowed}.input-wrapper .input-content .suffix{display:flex;align-items:center;justify-content:center;padding-block:.75rem;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;padding-right:.8rem}.input-wrapper .input-content .suffix>mat-icon{width:2rem;height:2rem;font-size:2rem;color:#696969}.input-wrapper .input-help{flex:1;font-size:1rem;font-weight:500;margin-top:-.4rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}::-webkit-input-placeholder{color:#bbbdc1}:-moz-placeholder{color:#bbbdc1}::-moz-placeholder{color:#bbbdc1}:-ms-input-placeholder{color:#bbbdc1}"]
24850
+ styles: [":host{display:block;width:100%;min-width:0;max-width:100%;flex:1}.input-wrapper{display:flex;flex-direction:column;gap:.8rem;font-size:1.4rem;color:#696969}.input-wrapper .input-label{display:flex;align-items:center;gap:.4rem;color:#131313;line-height:1.6rem}.input-wrapper .input-label>span{font-size:1.6rem;line-height:1.6rem;color:#d14014}.input-wrapper .input-content{display:flex;font-family:inherit;font-size:inherit;color:inherit;height:4rem;background:#fff;border:1px solid #0000001f;transition:background-color .2s,color .2s,border-color .2s,box-shadow .2s;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:.6rem}.input-wrapper .input-content .input-element{padding:.75rem .8rem;border:none;outline:0;background-color:transparent;flex:1;color:inherit;caret-color:#696969;min-width:0}.input-wrapper .input-content:not(.input-element:disabled):has(.input-element:enabled:hover),.input-wrapper .input-content:not(.input-element:disabled):has(.prefix:hover),.input-wrapper .input-content:not(.input-element:disabled):has(.suffix:hover){border-color:#6d6f73}.input-wrapper .input-content:not(.input-element:disabled):has(.input-element:enabled:focus){outline:0;outline-offset:0;box-shadow:0 0 0 .2rem #e0e1e2;border-color:#6d6f73}.input-wrapper .input-content:has(.input-element:disabled){color:#bbbdc1!important;border-color:#e0e1e2!important;background-color:#f5f5f6!important;cursor:not-allowed}.input-wrapper .input-content:has(.input-element:disabled) .suffix>mat-icon{color:#bbbdc1!important}.input-wrapper .input-content .input-element:disabled{cursor:not-allowed}.input-wrapper .input-content .suffix{display:flex;align-items:center;justify-content:center;padding-block:.75rem;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;padding-right:.8rem}.input-wrapper .input-content .suffix>mat-icon{width:2rem;height:2rem;font-size:2rem;color:#696969}.input-wrapper .input-help{flex:1;font-size:1rem;font-weight:500;margin-top:-.4rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}::-webkit-input-placeholder{color:#bbbdc1}:-moz-placeholder{color:#bbbdc1}::-moz-placeholder{color:#bbbdc1}:-ms-input-placeholder{color:#bbbdc1}"]
24849
24851
  }),
24850
24852
  __metadata("design:paramtypes", [ElementRef,
24851
24853
  ChangeDetectorRef])
@@ -24952,123 +24954,3368 @@ var DatepickerModule = /** @class */ (function () {
24952
24954
  return DatepickerModule;
24953
24955
  }());
24954
24956
 
24955
- var moment$4 = moment_;
24956
- var CalendarMonthYearComponent = /** @class */ (function () {
24957
- function CalendarMonthYearComponent(_changeDetectorRef) {
24958
- this._changeDetectorRef = _changeDetectorRef;
24959
- this._subscriptions = new Subscription();
24960
- this._animationState = 'enter';
24961
- this._animationDone = new Subject();
24962
- this.years = [];
24963
- this.months = [];
24964
- this._calendarView = 'both';
24957
+ /**
24958
+ * This animation fades in the background color and text content of the
24959
+ * select's options. It is time delayed to occur 100ms after the overlay
24960
+ * panel has transformed in.
24961
+ */
24962
+ var fadeInContent = trigger('fadeInContent', [
24963
+ state('showing', style({ opacity: 1 })),
24964
+ transition('void => showing', [
24965
+ style({ opacity: 0 }),
24966
+ animate("150ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"),
24967
+ ]),
24968
+ ]);
24969
+ var slideCalendar = trigger('slideCalendar', [
24970
+ transition('* => left', [
24971
+ animate(180, keyframes([
24972
+ style({ transform: 'translateX(100%)', offset: 0.5 }),
24973
+ style({ transform: 'translateX(-100%)', offset: 0.51 }),
24974
+ style({ transform: 'translateX(0)', offset: 1 }),
24975
+ ])),
24976
+ ]),
24977
+ transition('* => right', [
24978
+ animate(180, keyframes([
24979
+ style({ transform: 'translateX(-100%)', offset: 0.5 }),
24980
+ style({ transform: 'translateX(100%)', offset: 0.51 }),
24981
+ style({ transform: 'translateX(0)', offset: 1 }),
24982
+ ])),
24983
+ ]),
24984
+ ]);
24985
+
24986
+ /** @docs-private */
24987
+ function createMissingDateImplError$1(provider) {
24988
+ return Error("GIPIDatetimepickerComponent: No provider found for " + provider + ". You must import one of the following " +
24989
+ "modules at your application root: GIPINativeDatetimeModule, GIPIMomentDatetimeModule, or provide a " +
24990
+ "custom implementation.");
24991
+ }
24992
+
24993
+ var GIPIDatetimepickerFilterType;
24994
+ (function (GIPIDatetimepickerFilterType) {
24995
+ GIPIDatetimepickerFilterType[GIPIDatetimepickerFilterType["DATE"] = 0] = "DATE";
24996
+ GIPIDatetimepickerFilterType[GIPIDatetimepickerFilterType["HOUR"] = 1] = "HOUR";
24997
+ GIPIDatetimepickerFilterType[GIPIDatetimepickerFilterType["MINUTE"] = 2] = "MINUTE";
24998
+ })(GIPIDatetimepickerFilterType || (GIPIDatetimepickerFilterType = {}));
24999
+
25000
+ /**
25001
+ * An internal class that represents the data corresponding to a single calendar cell.
25002
+ * @docs-private
25003
+ */
25004
+ var GIPIDatetimepickerCalendarCell = /** @class */ (function () {
25005
+ function GIPIDatetimepickerCalendarCell(value, displayValue, ariaLabel, enabled) {
25006
+ this.value = value;
25007
+ this.displayValue = displayValue;
25008
+ this.ariaLabel = ariaLabel;
25009
+ this.enabled = enabled;
24965
25010
  }
24966
- CalendarMonthYearComponent_1 = CalendarMonthYearComponent;
24967
- CalendarMonthYearComponent.prototype.ngOnInit = function () {
24968
- if (this._locale) {
24969
- moment$4.locale(this._locale);
24970
- }
24971
- else {
24972
- moment$4.locale('pt-br');
25011
+ return GIPIDatetimepickerCalendarCell;
25012
+ }());
25013
+ /**
25014
+ * An internal component used to display calendar data in a table.
25015
+ * @docs-private
25016
+ */
25017
+ var GIPIDatetimepickerCalendarBodyComponent = /** @class */ (function () {
25018
+ function GIPIDatetimepickerCalendarBodyComponent() {
25019
+ /**
25020
+ * The aspect ratio (width / height) to use for the cells in the table. This aspect ratio will be
25021
+ * maintained even as the table resizes.
25022
+ */
25023
+ this.cellAspectRatio = 1;
25024
+ /** The number of columns in the table. */
25025
+ this.numCols = 7;
25026
+ /** Whether to allow selection of disabled cells. */
25027
+ this.allowDisabledSelection = false;
25028
+ /** The cell number of the active cell in the table. */
25029
+ this.activeCell = 0;
25030
+ /** Emits when a new value is selected. */
25031
+ this.selectedValueChange = new EventEmitter();
25032
+ }
25033
+ GIPIDatetimepickerCalendarBodyComponent.prototype._cellClicked = function (cell) {
25034
+ if (!this.allowDisabledSelection && !cell.enabled) {
25035
+ return;
24973
25036
  }
24974
- this.months = __spread(this.monthYearPicker.model.months);
24975
- this._calendarView = this.monthYearPicker.calendarView;
24976
- if (this._calendarView === 'year') {
24977
- this.toggleShowYears();
25037
+ this.selectedValueChange.emit(cell.value);
25038
+ };
25039
+ GIPIDatetimepickerCalendarBodyComponent.prototype._isActiveCell = function (rowIndex, colIndex) {
25040
+ var cellNumber = rowIndex * this.numCols + colIndex;
25041
+ // Account for the fact that the first row may not have as many cells.
25042
+ if (rowIndex) {
25043
+ cellNumber -= this._firstRowOffset;
24978
25044
  }
24979
- this.monthYearPicker.onValueChange(this.monthYearPicker.model.selectedMonthIndex, this.monthYearPicker.model.selectedMonthYear);
25045
+ return cellNumber === this.activeCell;
24980
25046
  };
24981
- CalendarMonthYearComponent.prototype.ngAfterViewInit = function () {
24982
- var _this = this;
24983
- if (this._changeDetectorRef) {
24984
- this._subscriptions.add(this.monthYearPicker._stateChanges.subscribe(function () {
24985
- _this._changeDetectorRef.markForCheck();
24986
- }));
25047
+ GIPIDatetimepickerCalendarBodyComponent.prototype.ngOnChanges = function (changes) {
25048
+ var columnChanges = changes['numCols'];
25049
+ var _a = this, rows = _a.rows, numCols = _a.numCols;
25050
+ if (changes['rows'] || columnChanges) {
25051
+ this._firstRowOffset = rows && rows.length && rows[0].length ? numCols - rows[0].length : 0;
25052
+ }
25053
+ if (changes['cellAspectRatio'] || columnChanges || !this._cellPadding) {
25054
+ this._cellPadding = 50 * this.cellAspectRatio / numCols + "%";
25055
+ }
25056
+ if (columnChanges || !this._cellWidth) {
25057
+ this._cellWidth = 100 / numCols + "%";
24987
25058
  }
24988
25059
  };
24989
- CalendarMonthYearComponent.prototype.ngOnDestroy = function () {
24990
- this._subscriptions.unsubscribe();
24991
- this._animationDone.complete();
25060
+ __decorate([
25061
+ Input(),
25062
+ __metadata("design:type", Number)
25063
+ ], GIPIDatetimepickerCalendarBodyComponent.prototype, "cellAspectRatio", void 0);
25064
+ __decorate([
25065
+ Input(),
25066
+ __metadata("design:type", String)
25067
+ ], GIPIDatetimepickerCalendarBodyComponent.prototype, "label", void 0);
25068
+ __decorate([
25069
+ Input(),
25070
+ __metadata("design:type", Array)
25071
+ ], GIPIDatetimepickerCalendarBodyComponent.prototype, "rows", void 0);
25072
+ __decorate([
25073
+ Input(),
25074
+ __metadata("design:type", Number)
25075
+ ], GIPIDatetimepickerCalendarBodyComponent.prototype, "todayValue", void 0);
25076
+ __decorate([
25077
+ Input(),
25078
+ __metadata("design:type", Number)
25079
+ ], GIPIDatetimepickerCalendarBodyComponent.prototype, "selectedValue", void 0);
25080
+ __decorate([
25081
+ Input(),
25082
+ __metadata("design:type", Number)
25083
+ ], GIPIDatetimepickerCalendarBodyComponent.prototype, "labelMinRequiredCells", void 0);
25084
+ __decorate([
25085
+ Input(),
25086
+ __metadata("design:type", Object)
25087
+ ], GIPIDatetimepickerCalendarBodyComponent.prototype, "numCols", void 0);
25088
+ __decorate([
25089
+ Input(),
25090
+ __metadata("design:type", Object)
25091
+ ], GIPIDatetimepickerCalendarBodyComponent.prototype, "allowDisabledSelection", void 0);
25092
+ __decorate([
25093
+ Input(),
25094
+ __metadata("design:type", Object)
25095
+ ], GIPIDatetimepickerCalendarBodyComponent.prototype, "activeCell", void 0);
25096
+ __decorate([
25097
+ Output(),
25098
+ __metadata("design:type", Object)
25099
+ ], GIPIDatetimepickerCalendarBodyComponent.prototype, "selectedValueChange", void 0);
25100
+ GIPIDatetimepickerCalendarBodyComponent = __decorate([
25101
+ Component({
25102
+ selector: 'tbody[gipiMatDatetimePickerCalendarBody]',
25103
+ template: "<!-- Se n\u00E3o houver espa\u00E7o suficiente na primeira linha, crie uma linha de r\u00F3tulo separada. Marcamos esta linha\ncomo aria-hidden porque n\u00E3o queremos que seja lido como uma das semanas do m\u00EAs. -->\n<tr *ngIf=\"_firstRowOffset < labelMinRequiredCells\"\n aria-hidden=\"true\">\n\n <td class=\"gipi-mat-datetime-picker-calendar-body-label\"\n [attr.colspan]=\"numCols\"\n [style.paddingTop]=\"_cellPadding\"\n [style.paddingBottom]=\"_cellPadding\">\n {{ label }}\n </td>\n\n</tr>\n\n<!-- Crie a primeira linha separadamente para que possamos incluir uma c\u00E9lula espa\u00E7adora especial. -->\n<tr *ngFor=\"let row of rows; let rowIndex = index\"\n role=\"row\">\n <!-- Marcamos esta c\u00E9lula como oculta por \u00E1ria para que n\u00E3o seja lida como um dos dias da semana. -->\n <td *ngIf=\"rowIndex === 0 && _firstRowOffset\"\n aria-hidden=\"true\"\n class=\"gipi-mat-datetime-picker-calendar-body-label\"\n [attr.colspan]=\"_firstRowOffset\"\n [style.paddingTop]=\"_cellPadding\"\n [style.paddingBottom]=\"_cellPadding\">\n {{ _firstRowOffset >= labelMinRequiredCells ? label : '' }}\n </td>\n\n <td *ngFor=\"let item of row; let colIndex = index\"\n role=\"button\"\n class=\"gipi-mat-datetime-picker-calendar-body-cell\"\n [attr.aria-disabled]=\"!item.enabled || null\"\n [attr.aria-label]=\"item.ariaLabel\"\n [class.gipi-mat-datetime-picker-calendar-body-active]=\"_isActiveCell(rowIndex, colIndex)\"\n [class.gipi-mat-datetime-picker-calendar-body-disabled]=\"!item.enabled\"\n (click)=\"_cellClicked(item)\"\n [style.width]=\"_cellWidth\"\n [style.paddingTop]=\"_cellPadding\"\n [style.paddingBottom]=\"_cellPadding\">\n\n <div class=\"gipi-mat-datetime-picker-calendar-body-cell-content\"\n [class.gipi-mat-datetime-picker-calendar-body-selected]=\"selectedValue === item.value\"\n [class.gipi-mat-datetime-picker-calendar-body-today]=\"todayValue === item.value\"\n [attr.aria-selected]=\"selectedValue === item.value\">\n {{ item.displayValue }}\n </div>\n\n </td>\n</tr>\n",
25104
+ encapsulation: ViewEncapsulation.None,
25105
+ changeDetection: ChangeDetectionStrategy.OnPush,
25106
+ host: {
25107
+ class: 'gipi-mat-datetime-picker-calendar-body',
25108
+ },
25109
+ styles: [".gipi-mat-datetime-picker-calendar-body{font-size:13px;min-width:224px}.gipi-mat-datetime-picker-calendar-body-label{padding:7.14286% 0 7.14286% 7.14286%;height:0;line-height:0;color:rgba(0,0,0,.54);transform:translateX(-6px);text-align:left}.gipi-mat-datetime-picker-calendar-body-cell{position:relative;width:14.28571%;height:0;line-height:0;padding:7.14286% 0;text-align:center;outline:0;cursor:pointer}.gipi-mat-datetime-picker-calendar-body-disabled{cursor:default;pointer-events:none}.gipi-mat-datetime-picker-calendar-body-cell-content{position:absolute;top:5%;left:5%;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:90%;height:90%;color:rgba(0,0,0,.87);border:1px solid transparent;border-radius:50%}.gipi-mat-datetime-picker-calendar-body-disabled>.gipi-mat-datetime-picker-calendar-body-cell-content:not(.gipi-mat-datetime-picker-calendar-body-selected){color:rgba(0,0,0,.38)}.mat-calendar:focus .gipi-mat-datetime-picker-calendar-body-active>.gipi-mat-datetime-picker-calendar-body-cell-content:not(.gipi-mat-datetime-picker-calendar-body-selected),:not(.gipi-mat-datetime-picker-calendar-body-disabled):hover>.gipi-mat-datetime-picker-calendar-body-cell-content:not(.gipi-mat-datetime-picker-calendar-body-selected){background-color:rgba(0,0,0,.12)}.gipi-mat-datetime-picker-calendar-body-disabled>.gipi-mat-datetime-picker-calendar-body-today:not(.gipi-mat-datetime-picker-calendar-body-selected){border-color:rgba(0,0,0,.18)}[dir=rtl] .gipi-mat-datetime-picker-calendar-body-label{padding:0 7.14286% 0 0;transform:translateX(6px);text-align:right}"]
25110
+ })
25111
+ ], GIPIDatetimepickerCalendarBodyComponent);
25112
+ return GIPIDatetimepickerCalendarBodyComponent;
25113
+ }());
25114
+
25115
+ var GIPIDatetimeAdapter = /** @class */ (function (_super) {
25116
+ __extends(GIPIDatetimeAdapter, _super);
25117
+ function GIPIDatetimeAdapter(_delegate) {
25118
+ var _this = _super.call(this) || this;
25119
+ _this._delegate = _delegate;
25120
+ return _this;
25121
+ }
25122
+ GIPIDatetimeAdapter.prototype.getValidDateOrNull = function (obj) {
25123
+ return this.isDateInstance(obj) && this.isValid(obj) ? obj : null;
24992
25124
  };
24993
- CalendarMonthYearComponent.prototype._startExitAnimation = function () {
24994
- this._animationState = 'void';
24995
- if (this._changeDetectorRef) {
24996
- this._changeDetectorRef.markForCheck();
24997
- }
25125
+ GIPIDatetimeAdapter.prototype.compareDatetime = function (first, second, respectMinutePart) {
25126
+ if (respectMinutePart === void 0) { respectMinutePart = true; }
25127
+ return (this.compareDate(first, second) ||
25128
+ this.getHour(first) - this.getHour(second) ||
25129
+ (respectMinutePart && this.getMinute(first) - this.getMinute(second)));
24998
25130
  };
24999
- CalendarMonthYearComponent.prototype.decrement = function () {
25000
- this.monthYearPicker.model.decrementYear();
25001
- if (this.isShowYears) {
25002
- this._renderYears();
25131
+ GIPIDatetimeAdapter.prototype.sameDatetime = function (first, second) {
25132
+ if (first && second) {
25133
+ var firstValid = this.isValid(first);
25134
+ var secondValid = this.isValid(second);
25135
+ if (firstValid && secondValid) {
25136
+ return !this.compareDatetime(first, second);
25137
+ }
25138
+ return firstValid === secondValid;
25003
25139
  }
25140
+ return first === second;
25004
25141
  };
25005
- CalendarMonthYearComponent.prototype.increment = function () {
25006
- this.monthYearPicker.model.incrementYear();
25007
- if (this.isShowYears) {
25008
- this._renderYears();
25009
- }
25142
+ GIPIDatetimeAdapter.prototype.sameYear = function (first, second) {
25143
+ return first && second && this.getYear(first) === this.getYear(second);
25010
25144
  };
25011
- CalendarMonthYearComponent.prototype.selectMonth = function (index) {
25012
- this.monthYearPicker.model.selectMonth(index);
25013
- this.monthYearPicker.onValueChange(this.monthYearPicker.model.selectedMonthIndex, this.monthYearPicker.model.selectedMonthYear);
25014
- this.monthYearPicker.close();
25145
+ GIPIDatetimeAdapter.prototype.sameDay = function (first, second) {
25146
+ return (first &&
25147
+ second &&
25148
+ this.getDate(first) === this.getDate(second) &&
25149
+ this.sameMonthAndYear(first, second));
25015
25150
  };
25016
- CalendarMonthYearComponent.prototype.isSelectedMonth = function (monthIndex) {
25017
- return this.monthYearPicker.model.selectedMonthIndex == monthIndex && this.monthYearPicker.model.selectedMonthYear == this.monthYearPicker.model.selectedYearMoment.year();
25151
+ GIPIDatetimeAdapter.prototype.sameHour = function (first, second) {
25152
+ return (first &&
25153
+ second &&
25154
+ this.getHour(first) === this.getHour(second) &&
25155
+ this.sameDay(first, second));
25018
25156
  };
25019
- CalendarMonthYearComponent.prototype.isCurrentMonth = function (monthIndex) {
25020
- var currentMonth = moment$4().month();
25021
- var currentYear = moment$4().year();
25022
- return (monthIndex === currentMonth) && (this.monthYearPicker.model.selectedYearMoment.year() === currentYear);
25157
+ GIPIDatetimeAdapter.prototype.sameMinute = function (first, second) {
25158
+ return (first &&
25159
+ second &&
25160
+ this.getMinute(first) === this.getMinute(second) &&
25161
+ this.sameHour(first, second));
25023
25162
  };
25024
- CalendarMonthYearComponent.prototype.isDisabledMonth = function (index) {
25025
- var disabled = false;
25026
- if (!ObjectUtil.isNull(this.monthYearPicker)) {
25027
- var minMonth = !ObjectUtil.isNull(this.monthYearPicker.min) ? this.monthYearPicker.min.month : null;
25028
- var maxMonth = !ObjectUtil.isNull(this.monthYearPicker.max) ? this.monthYearPicker.max.month : null;
25029
- if (!ObjectUtil.isNull(minMonth) && !ObjectUtil.isNull(maxMonth)) {
25030
- disabled = index < minMonth || index > maxMonth;
25031
- }
25032
- else if (!ObjectUtil.isNull(minMonth)) {
25033
- disabled = index < minMonth;
25034
- }
25035
- else if (!ObjectUtil.isNull(maxMonth)) {
25036
- disabled = index > maxMonth;
25163
+ GIPIDatetimeAdapter.prototype.sameMonthAndYear = function (first, second) {
25164
+ if (first && second) {
25165
+ var firstValid = this.isValid(first);
25166
+ var secondValid = this.isValid(second);
25167
+ if (firstValid && secondValid) {
25168
+ return !(this.getYear(first) - this.getYear(second) ||
25169
+ this.getMonth(first) - this.getMonth(second));
25037
25170
  }
25171
+ return firstValid === secondValid;
25038
25172
  }
25039
- return disabled;
25040
- // let disabled = false;
25041
- // if (this._enabledMonths && this._enabledMonths.length > 0) {
25042
- // disabled = this._enabledMonths.indexOf(index) < 0;
25043
- // }
25044
- // if (this._disabledMonths && this._disabledMonths.length > 0) {
25045
- // disabled = this._disabledMonths.indexOf(index) >= 0;
25046
- // }
25047
- // return disabled;
25173
+ return first === second;
25048
25174
  };
25049
- /** Years */
25050
- CalendarMonthYearComponent.prototype.toggleShowYears = function () {
25051
- this.isShowYears = !this.isShowYears;
25052
- this._renderYears();
25175
+ // delegate
25176
+ GIPIDatetimeAdapter.prototype.deserialize = function (value) {
25177
+ return this._delegate.deserialize(value);
25053
25178
  };
25054
- CalendarMonthYearComponent.prototype._renderYears = function () {
25055
- this.years = [];
25056
- for (var i = 11; i > 0; i--) {
25057
- this.years.push(this.monthYearPicker.model.selectedYearMoment.year() - i);
25179
+ GIPIDatetimeAdapter.prototype.clone = function (date) {
25180
+ return this._delegate.clone(date);
25181
+ };
25182
+ GIPIDatetimeAdapter.prototype.addCalendarYears = function (date, years) {
25183
+ return this._delegate.addCalendarYears(date, years);
25184
+ };
25185
+ GIPIDatetimeAdapter.prototype.addCalendarMonths = function (date, months) {
25186
+ return this._delegate.addCalendarMonths(date, months);
25187
+ };
25188
+ GIPIDatetimeAdapter.prototype.addCalendarDays = function (date, days) {
25189
+ return this._delegate.addCalendarDays(date, days);
25190
+ };
25191
+ GIPIDatetimeAdapter.prototype.getYear = function (date) {
25192
+ return this._delegate.getYear(date);
25193
+ };
25194
+ GIPIDatetimeAdapter.prototype.getMonth = function (date) {
25195
+ return this._delegate.getMonth(date);
25196
+ };
25197
+ GIPIDatetimeAdapter.prototype.getDate = function (date) {
25198
+ return this._delegate.getDate(date);
25199
+ };
25200
+ GIPIDatetimeAdapter.prototype.getDayOfWeek = function (date) {
25201
+ return this._delegate.getDayOfWeek(date);
25202
+ };
25203
+ GIPIDatetimeAdapter.prototype.getMonthNames = function (style) {
25204
+ return this._delegate.getMonthNames(style);
25205
+ };
25206
+ GIPIDatetimeAdapter.prototype.getDateNames = function () {
25207
+ return this._delegate.getDateNames();
25208
+ };
25209
+ GIPIDatetimeAdapter.prototype.getDayOfWeekNames = function (style) {
25210
+ return this._delegate.getDayOfWeekNames(style);
25211
+ };
25212
+ GIPIDatetimeAdapter.prototype.getYearName = function (date) {
25213
+ return this._delegate.getYearName(date);
25214
+ };
25215
+ GIPIDatetimeAdapter.prototype.getFirstDayOfWeek = function () {
25216
+ return this._delegate.getFirstDayOfWeek();
25217
+ };
25218
+ GIPIDatetimeAdapter.prototype.getNumDaysInMonth = function (date) {
25219
+ return this._delegate.getNumDaysInMonth(date);
25220
+ };
25221
+ GIPIDatetimeAdapter.prototype.createDate = function (year, month, date) {
25222
+ return this._delegate.createDate(year, month, date);
25223
+ };
25224
+ GIPIDatetimeAdapter.prototype.today = function () {
25225
+ return this._delegate.today();
25226
+ };
25227
+ GIPIDatetimeAdapter.prototype.parse = function (value, parseFormat) {
25228
+ return this._delegate.parse(value, parseFormat);
25229
+ };
25230
+ GIPIDatetimeAdapter.prototype.format = function (date, displayFormat) {
25231
+ return this._delegate.format(date, displayFormat);
25232
+ };
25233
+ GIPIDatetimeAdapter.prototype.toIso8601 = function (date) {
25234
+ return this._delegate.toIso8601(date);
25235
+ };
25236
+ GIPIDatetimeAdapter.prototype.isDateInstance = function (obj) {
25237
+ return this._delegate.isDateInstance(obj);
25238
+ };
25239
+ GIPIDatetimeAdapter.prototype.isValid = function (date) {
25240
+ return this._delegate.isValid(date);
25241
+ };
25242
+ GIPIDatetimeAdapter.prototype.invalid = function () {
25243
+ return this._delegate.invalid();
25244
+ };
25245
+ GIPIDatetimeAdapter.prototype.clampDate = function (date, min, max) {
25246
+ if (min && this.compareDatetime(date, min) < 0) {
25247
+ return min;
25058
25248
  }
25059
- for (var i = 0; i <= 12; i++) {
25060
- this.years.push(this.monthYearPicker.model.selectedYearMoment.year() + i);
25249
+ if (max && this.compareDatetime(date, max) > 0) {
25250
+ return max;
25061
25251
  }
25252
+ return date;
25062
25253
  };
25063
- Object.defineProperty(CalendarMonthYearComponent.prototype, "periodButtonLabel", {
25254
+ return GIPIDatetimeAdapter;
25255
+ }(DateAdapter$1));
25256
+
25257
+ var yearsPerPage$2 = 24;
25258
+ var yearsPerRow$1 = 4;
25259
+ /**
25260
+ * An internal component used to display multiple years in the datepicker.
25261
+ * @docs-private
25262
+ */
25263
+ var GIPIDatetimepickerMultiYearViewComponent = /** @class */ (function () {
25264
+ function GIPIDatetimepickerMultiYearViewComponent(_adapter, _dateFormats) {
25265
+ this._adapter = _adapter;
25266
+ this._dateFormats = _dateFormats;
25267
+ this.type = 'date';
25268
+ /** Emits when a new month is selected. */
25269
+ this.selectedChange = new EventEmitter();
25270
+ this._userSelection = new EventEmitter();
25271
+ if (!this._adapter) {
25272
+ throw createMissingDateImplError$1('GIPIDatetimeAdapter');
25273
+ }
25274
+ if (!this._dateFormats) {
25275
+ throw createMissingDateImplError$1('GIPI_DATETIME_FORMATS');
25276
+ }
25277
+ this._activeDate = this._adapter.today();
25278
+ }
25279
+ Object.defineProperty(GIPIDatetimepickerMultiYearViewComponent.prototype, "activeDate", {
25064
25280
  get: function () {
25065
- var formatYearRange = function (start, end) {
25066
- return start + " \u2013 " + end;
25067
- };
25068
- return this.isShowYears ? formatYearRange(this.years[0], this.years[this.years.length - 1]) : this.monthYearPicker.model.selectedYearText;
25281
+ return this._activeDate;
25069
25282
  },
25070
- enumerable: false,
25071
- configurable: true
25283
+ set: function (value) {
25284
+ var oldActiveDate = this._activeDate;
25285
+ this._activeDate = value || this._adapter.today();
25286
+ if (oldActiveDate && this._activeDate && !isSameMultiYearView$1(this._adapter, oldActiveDate, this._activeDate, this.minDate, this.maxDate)) {
25287
+ this._init();
25288
+ }
25289
+ },
25290
+ enumerable: false,
25291
+ configurable: true
25292
+ });
25293
+ Object.defineProperty(GIPIDatetimepickerMultiYearViewComponent.prototype, "selected", {
25294
+ get: function () {
25295
+ return this._selected;
25296
+ },
25297
+ set: function (value) {
25298
+ this._selected = value;
25299
+ this._selectedYear = this._selected && this._adapter.getYear(this._selected);
25300
+ },
25301
+ enumerable: false,
25302
+ configurable: true
25303
+ });
25304
+ Object.defineProperty(GIPIDatetimepickerMultiYearViewComponent.prototype, "minDate", {
25305
+ get: function () {
25306
+ return this._minDate;
25307
+ },
25308
+ set: function (value) {
25309
+ this._minDate = this._getValidDateOrNull(this._adapter.deserialize(value));
25310
+ },
25311
+ enumerable: false,
25312
+ configurable: true
25313
+ });
25314
+ Object.defineProperty(GIPIDatetimepickerMultiYearViewComponent.prototype, "maxDate", {
25315
+ get: function () {
25316
+ return this._maxDate;
25317
+ },
25318
+ set: function (value) {
25319
+ this._maxDate = this._getValidDateOrNull(this._adapter.deserialize(value));
25320
+ },
25321
+ enumerable: false,
25322
+ configurable: true
25323
+ });
25324
+ GIPIDatetimepickerMultiYearViewComponent.prototype.ngAfterContentInit = function () {
25325
+ this._init();
25326
+ };
25327
+ /** Handles when a new year is selected. */
25328
+ GIPIDatetimepickerMultiYearViewComponent.prototype._yearSelected = function (year) {
25329
+ var month = this._adapter.getMonth(this.activeDate);
25330
+ var normalizedDate = this._adapter.createDatetime(year, month, 1, 0, 0);
25331
+ this.selectedChange.emit(this._adapter.createDatetime(year, month, Math.min(this._adapter.getDate(this.activeDate), this._adapter.getNumDaysInMonth(normalizedDate)), this._adapter.getHour(this.activeDate), this._adapter.getMinute(this.activeDate)));
25332
+ if (this.type === 'year') {
25333
+ this._userSelection.emit();
25334
+ }
25335
+ };
25336
+ GIPIDatetimepickerMultiYearViewComponent.prototype._getActiveCell = function () {
25337
+ return getActiveOffset$1(this._adapter, this.activeDate, this.minDate, this.maxDate);
25338
+ };
25339
+ GIPIDatetimepickerMultiYearViewComponent.prototype._calendarStateDone = function () {
25340
+ this._calendarState = '';
25341
+ };
25342
+ /** Initializes this year view. */
25343
+ GIPIDatetimepickerMultiYearViewComponent.prototype._init = function () {
25344
+ var _this = this;
25345
+ this._todayYear = this._adapter.getYear(this._adapter.today());
25346
+ this._yearLabel = this._adapter.getYearName(this.activeDate);
25347
+ var activeYear = this._adapter.getYear(this.activeDate);
25348
+ var minYearOfPage = activeYear - getActiveOffset$1(this._adapter, this.activeDate, this.minDate, this.maxDate);
25349
+ this._years = [];
25350
+ for (var i = 0, row = []; i < yearsPerPage$2; i++) {
25351
+ row.push(minYearOfPage + i);
25352
+ if (row.length == yearsPerRow$1) {
25353
+ this._years.push(row.map(function (year) { return _this._createCellForYear(year); }));
25354
+ row = [];
25355
+ }
25356
+ }
25357
+ };
25358
+ /** Creates an GIPIDatetimepickerCalendarCell for the given year. */
25359
+ GIPIDatetimepickerMultiYearViewComponent.prototype._createCellForYear = function (year) {
25360
+ var yearName = this._adapter.getYearName(this._adapter.createDate(year, 0, 1));
25361
+ return new GIPIDatetimepickerCalendarCell(year, yearName, yearName, this._shouldEnableYear(year));
25362
+ };
25363
+ /** Whether the given year is enabled. */
25364
+ GIPIDatetimepickerMultiYearViewComponent.prototype._shouldEnableYear = function (year) {
25365
+ // disable if the year is greater than maxDate lower than minDate
25366
+ if (year === undefined ||
25367
+ year === null ||
25368
+ (this.maxDate && year > this._adapter.getYear(this.maxDate)) ||
25369
+ (this.minDate && year < this._adapter.getYear(this.minDate))) {
25370
+ return false;
25371
+ }
25372
+ // enable if it reaches here and there's no filter defined
25373
+ if (!this.dateFilter) {
25374
+ return true;
25375
+ }
25376
+ var firstOfYear = this._adapter.createDate(year, 0, 1);
25377
+ // If any date in the year is enabled count the year as enabled.
25378
+ for (var date = firstOfYear; this._adapter.getYear(date) == year; date = this._adapter.addCalendarDays(date, 1)) {
25379
+ if (this.dateFilter(date)) {
25380
+ return true;
25381
+ }
25382
+ }
25383
+ return false;
25384
+ };
25385
+ /**
25386
+ * Gets the year in this years range that the given Date falls on.
25387
+ * Returns null if the given Date is not in this range.
25388
+ */
25389
+ GIPIDatetimepickerMultiYearViewComponent.prototype._getYearInCurrentRange = function (date) {
25390
+ var year = this._adapter.getYear(date);
25391
+ return this._isInRange(year) ? year : null;
25392
+ };
25393
+ /**
25394
+ * Validate if the current year is in the current range
25395
+ * Returns true if is in range else returns false
25396
+ */
25397
+ GIPIDatetimepickerMultiYearViewComponent.prototype._isInRange = function (year) {
25398
+ return true;
25399
+ };
25400
+ /**
25401
+ * @param obj The object to check.
25402
+ * @returns The given object if it is both a date instance and valid, otherwise null.
25403
+ */
25404
+ GIPIDatetimepickerMultiYearViewComponent.prototype._getValidDateOrNull = function (obj) {
25405
+ return this._adapter.isDateInstance(obj) && this._adapter.isValid(obj) ? obj : null;
25406
+ };
25407
+ GIPIDatetimepickerMultiYearViewComponent.ctorParameters = function () { return [
25408
+ { type: GIPIDatetimeAdapter, decorators: [{ type: Optional }] },
25409
+ { type: undefined, decorators: [{ type: Optional }, { type: Inject, args: [GIPI_DATETIME_FORMATS,] }] }
25410
+ ]; };
25411
+ __decorate([
25412
+ Input(),
25413
+ __metadata("design:type", String)
25414
+ ], GIPIDatetimepickerMultiYearViewComponent.prototype, "type", void 0);
25415
+ __decorate([
25416
+ Input(),
25417
+ __metadata("design:type", Function)
25418
+ ], GIPIDatetimepickerMultiYearViewComponent.prototype, "dateFilter", void 0);
25419
+ __decorate([
25420
+ Input(),
25421
+ __metadata("design:type", Object),
25422
+ __metadata("design:paramtypes", [Object])
25423
+ ], GIPIDatetimepickerMultiYearViewComponent.prototype, "activeDate", null);
25424
+ __decorate([
25425
+ Input(),
25426
+ __metadata("design:type", Object),
25427
+ __metadata("design:paramtypes", [Object])
25428
+ ], GIPIDatetimepickerMultiYearViewComponent.prototype, "selected", null);
25429
+ __decorate([
25430
+ Input(),
25431
+ __metadata("design:type", Object),
25432
+ __metadata("design:paramtypes", [Object])
25433
+ ], GIPIDatetimepickerMultiYearViewComponent.prototype, "minDate", null);
25434
+ __decorate([
25435
+ Input(),
25436
+ __metadata("design:type", Object),
25437
+ __metadata("design:paramtypes", [Object])
25438
+ ], GIPIDatetimepickerMultiYearViewComponent.prototype, "maxDate", null);
25439
+ __decorate([
25440
+ Output(),
25441
+ __metadata("design:type", Object)
25442
+ ], GIPIDatetimepickerMultiYearViewComponent.prototype, "selectedChange", void 0);
25443
+ __decorate([
25444
+ Output(),
25445
+ __metadata("design:type", Object)
25446
+ ], GIPIDatetimepickerMultiYearViewComponent.prototype, "_userSelection", void 0);
25447
+ GIPIDatetimepickerMultiYearViewComponent = __decorate([
25448
+ Component({
25449
+ selector: 'gipi-mat-datetime-picker-multi-year-view',
25450
+ template: "<table class=\"gipi-mat-datetime-picker-calendar-table\">\n <thead class=\"gipi-mat-datetime-picker-calendar-table-header\">\n <tr>\n <th class=\"gipi-mat-datetime-picker-calendar-table-header-divider\"\n colspan=\"4\">\n </th>\n </tr>\n </thead>\n <tbody gipiMatDatetimePickerCalendarBody\n role=\"grid\"\n allowDisabledSelection=\"true\"\n [cellAspectRatio]=\"4 / 7\"\n [numCols]=\"4\"\n [rows]=\"_years\"\n [activeCell]=\"_getActiveCell()\"\n [selectedValue]=\"_selectedYear\"\n [todayValue]=\"_todayYear\"\n [@slideCalendar]=\"_calendarState\"\n (@slideCalendar.done)=\"_calendarStateDone()\"\n (selectedValueChange)=\"_yearSelected($event)\">\n </tbody>\n</table>",
25451
+ animations: [slideCalendar],
25452
+ encapsulation: ViewEncapsulation.None,
25453
+ changeDetection: ChangeDetectionStrategy.OnPush
25454
+ }),
25455
+ __param(0, Optional()),
25456
+ __param(1, Optional()),
25457
+ __param(1, Inject(GIPI_DATETIME_FORMATS)),
25458
+ __metadata("design:paramtypes", [GIPIDatetimeAdapter, Object])
25459
+ ], GIPIDatetimepickerMultiYearViewComponent);
25460
+ return GIPIDatetimepickerMultiYearViewComponent;
25461
+ }());
25462
+ function isSameMultiYearView$1(dateAdapter, date1, date2, minDate, maxDate) {
25463
+ var year1 = dateAdapter.getYear(date1);
25464
+ var year2 = dateAdapter.getYear(date2);
25465
+ var startingYear = getStartingYear$1(dateAdapter, minDate, maxDate);
25466
+ return (Math.floor((year1 - startingYear) / yearsPerPage$2) === Math.floor((year2 - startingYear) / yearsPerPage$2));
25467
+ }
25468
+ /**
25469
+ * When the multi-year view is first opened, the active year will be in view.
25470
+ * So we compute how many years are between the active year and the *slot* where our
25471
+ * "startingYear" will render when paged into view.
25472
+ */
25473
+ function getActiveOffset$1(dateAdapter, activeDate, minDate, maxDate) {
25474
+ var activeYear = dateAdapter.getYear(activeDate);
25475
+ return euclideanModulo$1(activeYear - getStartingYear$1(dateAdapter, minDate, maxDate), yearsPerPage$2);
25476
+ }
25477
+ /**
25478
+ * We pick a "starting" year such that either the maximum year would be at the end
25479
+ * or the minimum year would be at the beginning of a page.
25480
+ */
25481
+ function getStartingYear$1(dateAdapter, minDate, maxDate) {
25482
+ var startingYear = 0;
25483
+ if (maxDate) {
25484
+ var maxYear = dateAdapter.getYear(maxDate);
25485
+ startingYear = maxYear - yearsPerPage$2 + 1;
25486
+ }
25487
+ else if (minDate) {
25488
+ startingYear = dateAdapter.getYear(minDate);
25489
+ }
25490
+ return startingYear;
25491
+ }
25492
+ /** Gets remainder that is non-negative, even if first number is negative */
25493
+ function euclideanModulo$1(a, b) {
25494
+ return ((a % b) + b) % b;
25495
+ }
25496
+
25497
+ /**
25498
+ * A calendar that is used as part of the datepicker.
25499
+ * @docs-private
25500
+ */
25501
+ var GIPIDatetimepickerCalendarComponent = /** @class */ (function () {
25502
+ function GIPIDatetimepickerCalendarComponent(_elementRef, _intl, _ngZone, _adapter, _dateFormats, changeDetectorRef) {
25503
+ var _this = this;
25504
+ this._elementRef = _elementRef;
25505
+ this._intl = _intl;
25506
+ this._ngZone = _ngZone;
25507
+ this._adapter = _adapter;
25508
+ this._dateFormats = _dateFormats;
25509
+ this._clockView = 'hour';
25510
+ /** Active multi year view when click on year. */
25511
+ this.multiYearSelector = true;
25512
+ /** Whether the calendar should be started in month or year view. */
25513
+ this.startView = 'month';
25514
+ this.twelvehour = false;
25515
+ this.timeInterval = 1;
25516
+ this.ariaLabel = 'Use arrow keys to navigate';
25517
+ this.ariaNextMonthLabel = 'Next month';
25518
+ this.ariaPrevMonthLabel = 'Previous month';
25519
+ this.ariaNextYearLabel = 'Next year';
25520
+ this.ariaPrevYearLabel = 'Previous year';
25521
+ this.ariaNextMultiYearLabel = 'Next year range';
25522
+ this.ariaPrevMultiYearLabel = 'Previous year range';
25523
+ /** Prevent user to select same date time */
25524
+ this.preventSameDateTimeSelection = false;
25525
+ this._type = 'date';
25526
+ /** Emits when the currently selected date changes. */
25527
+ this.selectedChange = new EventEmitter();
25528
+ /** Emits when the view has been changed. **/
25529
+ this.viewChanged = new EventEmitter();
25530
+ this._userSelection = new EventEmitter();
25531
+ /** Date filter for the month and year views. */
25532
+ this._dateFilterForViews = function (date) {
25533
+ return (!!date &&
25534
+ (!_this.dateFilter || _this.dateFilter(date, GIPIDatetimepickerFilterType.DATE)) &&
25535
+ (!_this.minDate || _this._adapter.compareDate(date, _this.minDate) >= 0) &&
25536
+ (!_this.maxDate || _this._adapter.compareDate(date, _this.maxDate) <= 0));
25537
+ };
25538
+ if (!this._adapter) {
25539
+ throw createMissingDateImplError$1('GIPIDatetimeAdapter');
25540
+ }
25541
+ if (!this._dateFormats) {
25542
+ throw createMissingDateImplError$1('GIPI_DATETIME_FORMATS');
25543
+ }
25544
+ this._intlChanges = _intl.changes.subscribe(function () { return changeDetectorRef.markForCheck(); });
25545
+ }
25546
+ Object.defineProperty(GIPIDatetimepickerCalendarComponent.prototype, "type", {
25547
+ get: function () {
25548
+ return this._type;
25549
+ },
25550
+ set: function (value) {
25551
+ this._type = value || 'date';
25552
+ if (this.type === 'year') {
25553
+ this.multiYearSelector = true;
25554
+ }
25555
+ },
25556
+ enumerable: false,
25557
+ configurable: true
25558
+ });
25559
+ Object.defineProperty(GIPIDatetimepickerCalendarComponent.prototype, "startAt", {
25560
+ get: function () {
25561
+ return this._startAt;
25562
+ },
25563
+ set: function (value) {
25564
+ this._startAt = this._adapter.getValidDateOrNull(value);
25565
+ },
25566
+ enumerable: false,
25567
+ configurable: true
25568
+ });
25569
+ Object.defineProperty(GIPIDatetimepickerCalendarComponent.prototype, "selected", {
25570
+ get: function () {
25571
+ return this._selected;
25572
+ },
25573
+ set: function (value) {
25574
+ this._selected = this._adapter.getValidDateOrNull(value);
25575
+ },
25576
+ enumerable: false,
25577
+ configurable: true
25578
+ });
25579
+ Object.defineProperty(GIPIDatetimepickerCalendarComponent.prototype, "minDate", {
25580
+ get: function () {
25581
+ return this._minDate;
25582
+ },
25583
+ set: function (value) {
25584
+ this._minDate = this._adapter.getValidDateOrNull(value);
25585
+ },
25586
+ enumerable: false,
25587
+ configurable: true
25588
+ });
25589
+ Object.defineProperty(GIPIDatetimepickerCalendarComponent.prototype, "maxDate", {
25590
+ get: function () {
25591
+ return this._maxDate;
25592
+ },
25593
+ set: function (value) {
25594
+ this._maxDate = this._adapter.getValidDateOrNull(value);
25595
+ },
25596
+ enumerable: false,
25597
+ configurable: true
25598
+ });
25599
+ Object.defineProperty(GIPIDatetimepickerCalendarComponent.prototype, "_activeDate", {
25600
+ /** The current active date. This determines which time period is shown and which date is highlighted when using keyboard navigation. */
25601
+ get: function () {
25602
+ return this._clampedActiveDate;
25603
+ },
25604
+ set: function (value) {
25605
+ var oldActiveDate = this._clampedActiveDate;
25606
+ this._clampedActiveDate = this._adapter.clampDate(value, this.minDate, this.maxDate);
25607
+ if (oldActiveDate &&
25608
+ this._clampedActiveDate &&
25609
+ this.currentView === 'month' &&
25610
+ !this._adapter.sameMonthAndYear(oldActiveDate, this._clampedActiveDate)) {
25611
+ if (this._adapter.isInNextMonth(oldActiveDate, this._clampedActiveDate)) {
25612
+ this.calendarState('right');
25613
+ }
25614
+ else {
25615
+ this.calendarState('left');
25616
+ }
25617
+ }
25618
+ },
25619
+ enumerable: false,
25620
+ configurable: true
25621
+ });
25622
+ Object.defineProperty(GIPIDatetimepickerCalendarComponent.prototype, "currentView", {
25623
+ get: function () {
25624
+ return this._currentView;
25625
+ },
25626
+ set: function (view) {
25627
+ this._currentView = view;
25628
+ this.viewChanged.emit(view);
25629
+ },
25630
+ enumerable: false,
25631
+ configurable: true
25632
+ });
25633
+ Object.defineProperty(GIPIDatetimepickerCalendarComponent.prototype, "_yearLabel", {
25634
+ /** The label for the current calendar view. */
25635
+ get: function () {
25636
+ return this._adapter.getYearName(this._activeDate);
25637
+ },
25638
+ enumerable: false,
25639
+ configurable: true
25640
+ });
25641
+ Object.defineProperty(GIPIDatetimepickerCalendarComponent.prototype, "_monthYearLabel", {
25642
+ get: function () {
25643
+ if (this.currentView === 'multi-year') {
25644
+ // The offset from the active year to the "slot" for the starting year is the
25645
+ // *actual* first rendered year in the multi-year view, and the last year is
25646
+ // just yearsPerPage - 1 away.
25647
+ var activeYear = this._adapter.getYear(this._activeDate);
25648
+ var minYearOfPage = activeYear - getActiveOffset$1(this._adapter, this._activeDate, this.minDate, this.maxDate);
25649
+ var maxYearOfPage = minYearOfPage + yearsPerPage$2 - 1;
25650
+ var minYearName = this._adapter.getYearName(this._adapter.createDate(minYearOfPage, 0, 1));
25651
+ var maxYearName = this._adapter.getYearName(this._adapter.createDate(maxYearOfPage, 0, 1));
25652
+ return this._intl.formatYearRange(minYearName, maxYearName);
25653
+ }
25654
+ return this.currentView === 'month'
25655
+ ? this._adapter.getMonthNames('long')[this._adapter.getMonth(this._activeDate)]
25656
+ : this._adapter.getYearName(this._activeDate);
25657
+ },
25658
+ enumerable: false,
25659
+ configurable: true
25660
+ });
25661
+ Object.defineProperty(GIPIDatetimepickerCalendarComponent.prototype, "_dateLabel", {
25662
+ get: function () {
25663
+ switch (this.type) {
25664
+ case 'month': return this._adapter.getMonthNames('long')[this._adapter.getMonth(this._activeDate)];
25665
+ default: return this._adapter.format(this._activeDate, this._dateFormats.display.popupHeaderDateLabel);
25666
+ }
25667
+ },
25668
+ enumerable: false,
25669
+ configurable: true
25670
+ });
25671
+ Object.defineProperty(GIPIDatetimepickerCalendarComponent.prototype, "periodButtonLabel", {
25672
+ get: function () {
25673
+ return this.currentView == 'month' ? this._intl.switchToMultiYearViewLabel : this._intl.switchToMonthViewLabel;
25674
+ },
25675
+ enumerable: false,
25676
+ configurable: true
25677
+ });
25678
+ Object.defineProperty(GIPIDatetimepickerCalendarComponent.prototype, "prevButtonLabel", {
25679
+ /** The label for the previous button. */
25680
+ get: function () {
25681
+ return {
25682
+ 'month': this._intl.prevMonthLabel,
25683
+ 'year': this._intl.prevYearLabel,
25684
+ 'multi-year': this._intl.prevMultiYearLabel
25685
+ }[this.currentView];
25686
+ },
25687
+ enumerable: false,
25688
+ configurable: true
25689
+ });
25690
+ Object.defineProperty(GIPIDatetimepickerCalendarComponent.prototype, "nextButtonLabel", {
25691
+ /** The label for the next button. */
25692
+ get: function () {
25693
+ return {
25694
+ 'month': this._intl.nextMonthLabel,
25695
+ 'year': this._intl.nextYearLabel,
25696
+ 'multi-year': this._intl.nextMultiYearLabel
25697
+ }[this.currentView];
25698
+ },
25699
+ enumerable: false,
25700
+ configurable: true
25701
+ });
25702
+ Object.defineProperty(GIPIDatetimepickerCalendarComponent.prototype, "_hoursLabel", {
25703
+ get: function () {
25704
+ var hour = this._adapter.getHour(this._activeDate);
25705
+ if (!!this.twelvehour) {
25706
+ if (hour === 0) {
25707
+ hour = 24;
25708
+ }
25709
+ hour = hour > 12 ? hour - 12 : hour;
25710
+ }
25711
+ return this._2digit(hour);
25712
+ },
25713
+ enumerable: false,
25714
+ configurable: true
25715
+ });
25716
+ Object.defineProperty(GIPIDatetimepickerCalendarComponent.prototype, "_minutesLabel", {
25717
+ get: function () {
25718
+ return this._2digit(this._adapter.getMinute(this._activeDate));
25719
+ },
25720
+ enumerable: false,
25721
+ configurable: true
25722
+ });
25723
+ Object.defineProperty(GIPIDatetimepickerCalendarComponent.prototype, "_ariaLabelNext", {
25724
+ get: function () {
25725
+ switch (this._currentView) {
25726
+ case 'month': return this.ariaNextMonthLabel;
25727
+ case 'year': return this.ariaNextYearLabel;
25728
+ case 'multi-year': return this.ariaNextMultiYearLabel;
25729
+ default: return '';
25730
+ }
25731
+ },
25732
+ enumerable: false,
25733
+ configurable: true
25734
+ });
25735
+ Object.defineProperty(GIPIDatetimepickerCalendarComponent.prototype, "_ariaLabelPrev", {
25736
+ get: function () {
25737
+ switch (this._currentView) {
25738
+ case 'month': return this.ariaPrevMonthLabel;
25739
+ case 'year': return this.ariaPrevYearLabel;
25740
+ case 'multi-year': return this.ariaPrevMultiYearLabel;
25741
+ default: return '';
25742
+ }
25743
+ },
25744
+ enumerable: false,
25745
+ configurable: true
25746
+ });
25747
+ GIPIDatetimepickerCalendarComponent.prototype.ngAfterContentInit = function () {
25748
+ this._activeDate = this.startAt || this._adapter.today();
25749
+ this._selectAMPM(this._activeDate);
25750
+ this._focusActiveCell();
25751
+ if (this.type === 'year') {
25752
+ this.currentView = 'multi-year';
25753
+ }
25754
+ else if (this.type === 'month') {
25755
+ this.currentView = 'year';
25756
+ }
25757
+ else if (this.type === 'time') {
25758
+ this.currentView = 'clock';
25759
+ }
25760
+ else {
25761
+ this.currentView = this.startView || 'month';
25762
+ }
25763
+ };
25764
+ GIPIDatetimepickerCalendarComponent.prototype.ngOnDestroy = function () {
25765
+ this._intlChanges.unsubscribe();
25766
+ };
25767
+ GIPIDatetimepickerCalendarComponent.prototype._userSelected = function () {
25768
+ this._userSelection.emit();
25769
+ };
25770
+ /** Handles date selection in the month view. */
25771
+ GIPIDatetimepickerCalendarComponent.prototype._dateSelected = function (date) {
25772
+ if (this.type === 'date') {
25773
+ if (!this._adapter.sameDate(date, this.selected) ||
25774
+ !this.preventSameDateTimeSelection) {
25775
+ this.selectedChange.emit(date);
25776
+ }
25777
+ }
25778
+ else {
25779
+ this._activeDate = date;
25780
+ this.currentView = 'clock';
25781
+ }
25782
+ };
25783
+ /** Handles month selection in the year view. */
25784
+ GIPIDatetimepickerCalendarComponent.prototype._monthSelected = function (month) {
25785
+ if (this.type === 'month') {
25786
+ if (!this._adapter.sameMonthAndYear(month, this.selected) ||
25787
+ !this.preventSameDateTimeSelection) {
25788
+ this.selectedChange.emit(this._adapter.getFirstDateOfMonth(month));
25789
+ }
25790
+ }
25791
+ else {
25792
+ this._activeDate = month;
25793
+ this.currentView = 'month';
25794
+ this._clockView = 'hour';
25795
+ }
25796
+ };
25797
+ /** Handles year selection in the multi year view. */
25798
+ GIPIDatetimepickerCalendarComponent.prototype._yearSelected = function (year) {
25799
+ if (this.type === 'year') {
25800
+ if (!this._adapter.sameYear(year, this.selected) ||
25801
+ !this.preventSameDateTimeSelection) {
25802
+ var normalizedDate = this._adapter.createDatetime(this._adapter.getYear(year), 0, 1, 0, 0);
25803
+ this.selectedChange.emit(normalizedDate);
25804
+ }
25805
+ }
25806
+ else {
25807
+ this._activeDate = year;
25808
+ this.currentView = 'year';
25809
+ }
25810
+ };
25811
+ GIPIDatetimepickerCalendarComponent.prototype._timeSelected = function (date) {
25812
+ if (this._clockView !== 'minute') {
25813
+ this._activeDate = this._updateDate(date);
25814
+ this._clockView = 'minute';
25815
+ }
25816
+ else {
25817
+ if (!this._adapter.sameDatetime(date, this.selected) ||
25818
+ !this.preventSameDateTimeSelection) {
25819
+ this.selectedChange.emit(date);
25820
+ }
25821
+ }
25822
+ };
25823
+ GIPIDatetimepickerCalendarComponent.prototype._onActiveDateChange = function (date) {
25824
+ this._activeDate = date;
25825
+ };
25826
+ GIPIDatetimepickerCalendarComponent.prototype._updateDate = function (date) {
25827
+ if (!!this.twelvehour) {
25828
+ var HOUR = this._adapter.getHour(date);
25829
+ if (HOUR === 12) {
25830
+ if (this._AMPM === 'AM') {
25831
+ return this._adapter.addCalendarHours(date, -12);
25832
+ }
25833
+ }
25834
+ else if (this._AMPM === 'PM') {
25835
+ return this._adapter.addCalendarHours(date, 12);
25836
+ }
25837
+ }
25838
+ return date;
25839
+ };
25840
+ GIPIDatetimepickerCalendarComponent.prototype._selectAMPM = function (date) {
25841
+ if (this._adapter.getHour(date) > 11) {
25842
+ this._AMPM = 'PM';
25843
+ }
25844
+ else {
25845
+ this._AMPM = 'AM';
25846
+ }
25847
+ };
25848
+ GIPIDatetimepickerCalendarComponent.prototype._ampmClicked = function (source) {
25849
+ if (source === this._AMPM) {
25850
+ return;
25851
+ }
25852
+ this._AMPM = source;
25853
+ if (this._AMPM === 'AM') {
25854
+ this._activeDate = this._adapter.addCalendarHours(this._activeDate, -12);
25855
+ }
25856
+ else {
25857
+ this._activeDate = this._adapter.addCalendarHours(this._activeDate, 12);
25858
+ }
25859
+ };
25860
+ GIPIDatetimepickerCalendarComponent.prototype._yearClicked = function () {
25861
+ if (this.type === 'year' || this.multiYearSelector) {
25862
+ this.currentView = 'multi-year';
25863
+ return;
25864
+ }
25865
+ this.currentView = 'year';
25866
+ };
25867
+ GIPIDatetimepickerCalendarComponent.prototype._dateClicked = function () {
25868
+ if (this.type !== 'month') {
25869
+ this.currentView = 'month';
25870
+ }
25871
+ };
25872
+ GIPIDatetimepickerCalendarComponent.prototype._hoursClicked = function () {
25873
+ this.currentView = 'clock';
25874
+ this._clockView = 'hour';
25875
+ };
25876
+ GIPIDatetimepickerCalendarComponent.prototype._minutesClicked = function () {
25877
+ this.currentView = 'clock';
25878
+ this._clockView = 'minute';
25879
+ };
25880
+ /** Handles user clicks on the previous button. */
25881
+ GIPIDatetimepickerCalendarComponent.prototype._previousClicked = function () {
25882
+ this._activeDate = this.currentView === 'month'
25883
+ ? this._adapter.addCalendarMonths(this._activeDate, -1)
25884
+ : this._adapter.addCalendarYears(this._activeDate, this.currentView === 'year' ? -1 : -yearsPerPage$2);
25885
+ };
25886
+ /** Handles user clicks on the next button. */
25887
+ GIPIDatetimepickerCalendarComponent.prototype._nextClicked = function () {
25888
+ this._activeDate = (this.currentView === 'month')
25889
+ ? this._adapter.addCalendarMonths(this._activeDate, 1)
25890
+ : this._adapter.addCalendarYears(this._activeDate, this.currentView === 'year' ? 1 : yearsPerPage$2);
25891
+ };
25892
+ /** Whether the previous period button is enabled. */
25893
+ GIPIDatetimepickerCalendarComponent.prototype._previousEnabled = function () {
25894
+ if (!this.minDate) {
25895
+ return true;
25896
+ }
25897
+ return !this.minDate || !this._isSameView(this._activeDate, this.minDate);
25898
+ };
25899
+ /** Whether the next period button is enabled. */
25900
+ GIPIDatetimepickerCalendarComponent.prototype._nextEnabled = function () {
25901
+ return !this.maxDate || !this._isSameView(this._activeDate, this.maxDate);
25902
+ };
25903
+ /** Handles keydown events on the calendar body. */
25904
+ GIPIDatetimepickerCalendarComponent.prototype._handleCalendarBodyKeydown = function (event) {
25905
+ // TODO(mmalerba): We currently allow keyboard navigation to disabled dates, but just prevent
25906
+ // disabled ones from being selected. This may not be ideal, we should look into whether
25907
+ // navigation should skip over disabled dates, and if so, how to implement that efficiently.
25908
+ if (this.currentView === 'month') {
25909
+ this._handleCalendarBodyKeydownInMonthView(event);
25910
+ }
25911
+ else if (this.currentView === 'year') {
25912
+ this._handleCalendarBodyKeydownInYearView(event);
25913
+ }
25914
+ else if (this.currentView === 'multi-year') {
25915
+ this._handleCalendarBodyKeydownInMultiYearView(event);
25916
+ }
25917
+ else {
25918
+ this._handleCalendarBodyKeydownInClockView(event);
25919
+ }
25920
+ };
25921
+ GIPIDatetimepickerCalendarComponent.prototype._focusActiveCell = function () {
25922
+ var _this = this;
25923
+ this._ngZone.runOutsideAngular(function () {
25924
+ _this._ngZone.onStable
25925
+ .asObservable()
25926
+ .pipe(first())
25927
+ .subscribe(function () { return _this._elementRef.nativeElement.focus(); });
25928
+ });
25929
+ };
25930
+ GIPIDatetimepickerCalendarComponent.prototype._calendarStateDone = function () {
25931
+ this._calendarState = '';
25932
+ };
25933
+ /** Whether the two dates represent the same view in the current view mode (month or year). */
25934
+ GIPIDatetimepickerCalendarComponent.prototype._isSameView = function (date1, date2) {
25935
+ if (this.currentView === 'month') {
25936
+ return (this._adapter.getYear(date1) === this._adapter.getYear(date2) &&
25937
+ this._adapter.getMonth(date1) === this._adapter.getMonth(date2));
25938
+ }
25939
+ if (this.currentView === 'year') {
25940
+ return this._adapter.getYear(date1) === this._adapter.getYear(date2);
25941
+ }
25942
+ // Otherwise we are in 'multi-year' view.
25943
+ return isSameMultiYearView$1(this._adapter, date1, date2, this.minDate, this.maxDate);
25944
+ };
25945
+ /** Handles keydown events on the calendar body when calendar is in month view. */
25946
+ GIPIDatetimepickerCalendarComponent.prototype._handleCalendarBodyKeydownInMonthView = function (event) {
25947
+ switch (event.keyCode) {
25948
+ case LEFT_ARROW:
25949
+ this._activeDate = this._adapter.addCalendarDays(this._activeDate, -1);
25950
+ break;
25951
+ case RIGHT_ARROW:
25952
+ this._activeDate = this._adapter.addCalendarDays(this._activeDate, 1);
25953
+ break;
25954
+ case UP_ARROW:
25955
+ this._activeDate = this._adapter.addCalendarDays(this._activeDate, -7);
25956
+ break;
25957
+ case DOWN_ARROW:
25958
+ this._activeDate = this._adapter.addCalendarDays(this._activeDate, 7);
25959
+ break;
25960
+ case HOME:
25961
+ this._activeDate = this._adapter.addCalendarDays(this._activeDate, 1 - this._adapter.getDate(this._activeDate));
25962
+ break;
25963
+ case END:
25964
+ this._activeDate = this._adapter.addCalendarDays(this._activeDate, this._adapter.getNumDaysInMonth(this._activeDate) - this._adapter.getDate(this._activeDate));
25965
+ break;
25966
+ case PAGE_UP:
25967
+ this._activeDate = event.altKey
25968
+ ? this._adapter.addCalendarYears(this._activeDate, -1)
25969
+ : this._adapter.addCalendarMonths(this._activeDate, -1);
25970
+ break;
25971
+ case PAGE_DOWN:
25972
+ this._activeDate = event.altKey
25973
+ ? this._adapter.addCalendarYears(this._activeDate, 1)
25974
+ : this._adapter.addCalendarMonths(this._activeDate, 1);
25975
+ break;
25976
+ case ENTER:
25977
+ if (this._dateFilterForViews(this._activeDate)) {
25978
+ this._dateSelected(this._activeDate);
25979
+ // Prevent unexpected default actions such as form submission.
25980
+ event.preventDefault();
25981
+ }
25982
+ return;
25983
+ default:
25984
+ // Don't prevent default or focus active cell on keys that we don't explicitly handle.
25985
+ return;
25986
+ }
25987
+ // Prevent unexpected default actions such as form submission.
25988
+ event.preventDefault();
25989
+ };
25990
+ /** Handles keydown events on the calendar body when calendar is in year view. */
25991
+ GIPIDatetimepickerCalendarComponent.prototype._handleCalendarBodyKeydownInYearView = function (event) {
25992
+ switch (event.keyCode) {
25993
+ case LEFT_ARROW:
25994
+ this._activeDate = this._adapter.addCalendarMonths(this._activeDate, -1);
25995
+ break;
25996
+ case RIGHT_ARROW:
25997
+ this._activeDate = this._adapter.addCalendarMonths(this._activeDate, 1);
25998
+ break;
25999
+ case UP_ARROW:
26000
+ this._activeDate = this._prevMonthInSameCol(this._activeDate);
26001
+ break;
26002
+ case DOWN_ARROW:
26003
+ this._activeDate = this._nextMonthInSameCol(this._activeDate);
26004
+ break;
26005
+ case HOME:
26006
+ this._activeDate = this._adapter.addCalendarMonths(this._activeDate, -this._adapter.getMonth(this._activeDate));
26007
+ break;
26008
+ case END:
26009
+ this._activeDate = this._adapter.addCalendarMonths(this._activeDate, 11 - this._adapter.getMonth(this._activeDate));
26010
+ break;
26011
+ case PAGE_UP:
26012
+ this._activeDate = this._adapter.addCalendarYears(this._activeDate, event.altKey ? -10 : -1);
26013
+ break;
26014
+ case PAGE_DOWN:
26015
+ this._activeDate = this._adapter.addCalendarYears(this._activeDate, event.altKey ? 10 : 1);
26016
+ break;
26017
+ case ENTER:
26018
+ this._monthSelected(this._activeDate);
26019
+ break;
26020
+ default:
26021
+ // Don't prevent default or focus active cell on keys that we don't explicitly handle.
26022
+ return;
26023
+ }
26024
+ // Prevent unexpected default actions such as form submission.
26025
+ event.preventDefault();
26026
+ };
26027
+ /** Handles keydown events on the calendar body when calendar is in multi-year view. */
26028
+ GIPIDatetimepickerCalendarComponent.prototype._handleCalendarBodyKeydownInMultiYearView = function (event) {
26029
+ switch (event.keyCode) {
26030
+ case LEFT_ARROW:
26031
+ this._activeDate = this._adapter.addCalendarYears(this._activeDate, -1);
26032
+ break;
26033
+ case RIGHT_ARROW:
26034
+ this._activeDate = this._adapter.addCalendarYears(this._activeDate, 1);
26035
+ break;
26036
+ case UP_ARROW:
26037
+ this._activeDate = this._adapter.addCalendarYears(this._activeDate, -yearsPerRow$1);
26038
+ break;
26039
+ case DOWN_ARROW:
26040
+ this._activeDate = this._adapter.addCalendarYears(this._activeDate, yearsPerRow$1);
26041
+ break;
26042
+ case HOME:
26043
+ this._activeDate = this._adapter.addCalendarYears(this._activeDate, -getActiveOffset$1(this._adapter, this._activeDate, this.minDate, this.maxDate));
26044
+ break;
26045
+ case END:
26046
+ this._activeDate = this._adapter.addCalendarYears(this._activeDate, yearsPerPage$2 - getActiveOffset$1(this._adapter, this._activeDate, this.minDate, this.maxDate) - 1);
26047
+ break;
26048
+ case PAGE_UP:
26049
+ this._activeDate = this._adapter.addCalendarYears(this._activeDate, event.altKey ? -yearsPerPage$2 * 10 : -yearsPerPage$2);
26050
+ break;
26051
+ case PAGE_DOWN:
26052
+ this._activeDate = this._adapter.addCalendarYears(this._activeDate, event.altKey ? yearsPerPage$2 * 10 : yearsPerPage$2);
26053
+ break;
26054
+ case ENTER:
26055
+ this._yearSelected(this._activeDate);
26056
+ break;
26057
+ default:
26058
+ // Don't prevent default or focus active cell on keys that we don't explicitly handle.
26059
+ return;
26060
+ }
26061
+ };
26062
+ /** Handles keydown events on the calendar body when calendar is in month view. */
26063
+ GIPIDatetimepickerCalendarComponent.prototype._handleCalendarBodyKeydownInClockView = function (event) {
26064
+ switch (event.keyCode) {
26065
+ case UP_ARROW:
26066
+ this._activeDate = this._clockView === 'hour'
26067
+ ? this._adapter.addCalendarHours(this._activeDate, 1)
26068
+ : this._adapter.addCalendarMinutes(this._activeDate, 1);
26069
+ break;
26070
+ case DOWN_ARROW:
26071
+ this._activeDate = this._clockView === 'hour'
26072
+ ? this._adapter.addCalendarHours(this._activeDate, -1)
26073
+ : this._adapter.addCalendarMinutes(this._activeDate, -1);
26074
+ break;
26075
+ case ENTER:
26076
+ this._timeSelected(this._activeDate);
26077
+ return;
26078
+ default:
26079
+ // Don't prevent default or focus active cell on keys that we don't explicitly handle.
26080
+ return;
26081
+ }
26082
+ // Prevent unexpected default actions such as form submission.
26083
+ event.preventDefault();
26084
+ };
26085
+ /**
26086
+ * Determine the date for the month that comes before the given month in the same column in the
26087
+ * calendar table.
26088
+ */
26089
+ GIPIDatetimepickerCalendarComponent.prototype._prevMonthInSameCol = function (date) {
26090
+ // Determine how many months to jump forward given that there are 2 empty slots at the beginning of each year.
26091
+ var increment = this._adapter.getMonth(date) <= 4 ? -5 : this._adapter.getMonth(date) >= 7 ? -7 : -12;
26092
+ return this._adapter.addCalendarMonths(date, increment);
26093
+ };
26094
+ /**
26095
+ * Determine the date for the month that comes after the given month in the same column in the
26096
+ * calendar table.
26097
+ */
26098
+ GIPIDatetimepickerCalendarComponent.prototype._nextMonthInSameCol = function (date) {
26099
+ // Determine how many months to jump forward given that there are 2 empty slots at the beginning of each year.
26100
+ var increment = this._adapter.getMonth(date) <= 4 ? 7 : this._adapter.getMonth(date) >= 7 ? 5 : 12;
26101
+ return this._adapter.addCalendarMonths(date, increment);
26102
+ };
26103
+ GIPIDatetimepickerCalendarComponent.prototype.calendarState = function (direction) {
26104
+ this._calendarState = direction;
26105
+ };
26106
+ GIPIDatetimepickerCalendarComponent.prototype._2digit = function (n) {
26107
+ return ('00' + n).slice(-2);
26108
+ };
26109
+ GIPIDatetimepickerCalendarComponent.ctorParameters = function () { return [
26110
+ { type: ElementRef },
26111
+ { type: MatDatepickerIntl$1 },
26112
+ { type: NgZone },
26113
+ { type: GIPIDatetimeAdapter, decorators: [{ type: Optional }] },
26114
+ { type: undefined, decorators: [{ type: Optional }, { type: Inject, args: [GIPI_DATETIME_FORMATS,] }] },
26115
+ { type: ChangeDetectorRef }
26116
+ ]; };
26117
+ __decorate([
26118
+ Input(),
26119
+ __metadata("design:type", Boolean)
26120
+ ], GIPIDatetimepickerCalendarComponent.prototype, "multiYearSelector", void 0);
26121
+ __decorate([
26122
+ Input(),
26123
+ __metadata("design:type", String)
26124
+ ], GIPIDatetimepickerCalendarComponent.prototype, "startView", void 0);
26125
+ __decorate([
26126
+ Input(),
26127
+ __metadata("design:type", Boolean)
26128
+ ], GIPIDatetimepickerCalendarComponent.prototype, "twelvehour", void 0);
26129
+ __decorate([
26130
+ Input(),
26131
+ __metadata("design:type", Number)
26132
+ ], GIPIDatetimepickerCalendarComponent.prototype, "timeInterval", void 0);
26133
+ __decorate([
26134
+ Input(),
26135
+ __metadata("design:type", Function)
26136
+ ], GIPIDatetimepickerCalendarComponent.prototype, "dateFilter", void 0);
26137
+ __decorate([
26138
+ Input(),
26139
+ __metadata("design:type", Object)
26140
+ ], GIPIDatetimepickerCalendarComponent.prototype, "ariaLabel", void 0);
26141
+ __decorate([
26142
+ Input(),
26143
+ __metadata("design:type", Object)
26144
+ ], GIPIDatetimepickerCalendarComponent.prototype, "ariaNextMonthLabel", void 0);
26145
+ __decorate([
26146
+ Input(),
26147
+ __metadata("design:type", Object)
26148
+ ], GIPIDatetimepickerCalendarComponent.prototype, "ariaPrevMonthLabel", void 0);
26149
+ __decorate([
26150
+ Input(),
26151
+ __metadata("design:type", Object)
26152
+ ], GIPIDatetimepickerCalendarComponent.prototype, "ariaNextYearLabel", void 0);
26153
+ __decorate([
26154
+ Input(),
26155
+ __metadata("design:type", Object)
26156
+ ], GIPIDatetimepickerCalendarComponent.prototype, "ariaPrevYearLabel", void 0);
26157
+ __decorate([
26158
+ Input(),
26159
+ __metadata("design:type", Object)
26160
+ ], GIPIDatetimepickerCalendarComponent.prototype, "ariaNextMultiYearLabel", void 0);
26161
+ __decorate([
26162
+ Input(),
26163
+ __metadata("design:type", Object)
26164
+ ], GIPIDatetimepickerCalendarComponent.prototype, "ariaPrevMultiYearLabel", void 0);
26165
+ __decorate([
26166
+ Input(),
26167
+ __metadata("design:type", Object)
26168
+ ], GIPIDatetimepickerCalendarComponent.prototype, "preventSameDateTimeSelection", void 0);
26169
+ __decorate([
26170
+ Input(),
26171
+ __metadata("design:type", String),
26172
+ __metadata("design:paramtypes", [String])
26173
+ ], GIPIDatetimepickerCalendarComponent.prototype, "type", null);
26174
+ __decorate([
26175
+ Input(),
26176
+ __metadata("design:type", Object),
26177
+ __metadata("design:paramtypes", [Object])
26178
+ ], GIPIDatetimepickerCalendarComponent.prototype, "startAt", null);
26179
+ __decorate([
26180
+ Input(),
26181
+ __metadata("design:type", Object),
26182
+ __metadata("design:paramtypes", [Object])
26183
+ ], GIPIDatetimepickerCalendarComponent.prototype, "selected", null);
26184
+ __decorate([
26185
+ Input(),
26186
+ __metadata("design:type", Object),
26187
+ __metadata("design:paramtypes", [Object])
26188
+ ], GIPIDatetimepickerCalendarComponent.prototype, "minDate", null);
26189
+ __decorate([
26190
+ Input(),
26191
+ __metadata("design:type", Object),
26192
+ __metadata("design:paramtypes", [Object])
26193
+ ], GIPIDatetimepickerCalendarComponent.prototype, "maxDate", null);
26194
+ __decorate([
26195
+ Output(),
26196
+ __metadata("design:type", EventEmitter)
26197
+ ], GIPIDatetimepickerCalendarComponent.prototype, "selectedChange", void 0);
26198
+ __decorate([
26199
+ Output(),
26200
+ __metadata("design:type", EventEmitter)
26201
+ ], GIPIDatetimepickerCalendarComponent.prototype, "viewChanged", void 0);
26202
+ __decorate([
26203
+ Output(),
26204
+ __metadata("design:type", Object)
26205
+ ], GIPIDatetimepickerCalendarComponent.prototype, "_userSelection", void 0);
26206
+ GIPIDatetimepickerCalendarComponent = __decorate([
26207
+ Component({
26208
+ selector: 'gipi-mat-datetime-picker-calendar',
26209
+ template: "<div class=\"gipi-mat-datetime-picker-calendar-header\">\n <div class=\"gipi-mat-datetime-picker-calendar-controls\">\n <div *ngIf=\"type !== 'time'\"\n role=\"button\"\n cdkAriaLive=\"polite\"\n class=\"gipi-mat-datetime-picker-calendar-period-button\"\n [class.active]=\"currentView === 'year' || currentView === 'multi-year'\"\n [attr.aria-label]=\"periodButtonLabel\"\n (click)=\"_yearClicked()\">\n {{ _yearLabel }}\n\n <div *ngIf=\"multiYearSelector || type === 'year'\"\n class=\"gipi-mat-datetime-picker-calendar-arrow\"\n [class.gipi-mat-datetime-picker-calendar-invert]=\"currentView != 'month'\">\n </div>\n </div>\n\n <div class=\"gipi-mat-datetime-picker-calendar-spacer\"> </div>\n\n <button mat-icon-button\n type=\"button\"\n class=\"gipi-mat-datetime-picker-calendar-previous-button\"\n [disabled]=\"!_previousEnabled()\"\n (click)=\"_previousClicked()\"\n [attr.aria-label]=\"prevButtonLabel\">\n </button>\n\n <button mat-icon-button\n type=\"button\"\n class=\"gipi-mat-datetime-picker-calendar-next-button\"\n [disabled]=\"!_nextEnabled()\"\n (click)=\"_nextClicked()\"\n [attr.aria-label]=\"nextButtonLabel\">\n </button>\n </div>\n\n <div class=\"gipi-mat-datetime-picker-calendar-header-date-time\">\n <span *ngIf=\"type !== 'time' && type !== 'year'\"\n role=\"button\"\n class=\"gipi-mat-datetime-picker-calendar-header-date\"\n [class.active]=\"currentView === 'month'\"\n [class.not-clickable]=\"type === 'month'\"\n (click)=\"_dateClicked()\">\n {{ _dateLabel }}\n </span>\n <span *ngIf=\"type.endsWith('time')\"\n class=\"gipi-mat-datetime-picker-calendar-header-time\"\n [class.active]=\"currentView === 'clock'\">\n <span role=\"button\"\n class=\"gipi-mat-datetime-picker-calendar-header-hours\"\n [class.active]=\"currentView === 'clock' && _clockView === 'hour'\"\n (click)=\"_hoursClicked()\">\n {{ _hoursLabel }}\n </span>\n :\n <span role=\"button\"\n class=\"gipi-mat-datetime-picker-calendar-header-minutes\"\n [class.active]=\"currentView === 'clock' && _clockView === 'minute'\"\n (click)=\"_minutesClicked()\">\n {{ _minutesLabel }}\n </span>\n <br />\n <span *ngIf=\"twelvehour\"\n class=\"gipi-mat-datetime-picker-calendar-header-ampm-container\">\n <span class=\"gipi-mat-datetime-picker-calendar-header-ampm\"\n [class.active]=\"currentView === 'clock' && _AMPM === 'AM'\"\n (click)=\"_ampmClicked('AM')\">\n AM\n </span>\n /\n <span class=\"gipi-mat-datetime-picker-calendar-header-ampm\"\n [class.active]=\"currentView === 'clock' && _AMPM === 'PM'\"\n (click)=\"_ampmClicked('PM')\">\n PM\n </span>\n </span>\n </span>\n </div>\n</div>\n\n<div [ngSwitch]=\"currentView\"\n class=\"gipi-mat-datetime-picker-calendar-content\">\n <!-- <div *ngIf=\"currentView === 'month' || currentView === 'year' || currentView === 'multi-year'\"\n class=\"mat-month-content\">\n <div class=\"gipi-mat-datetime-picker-calendar-controls\">\n <div (click)=\"_previousClicked()\"\n [attr.aria-disabled]=\"!_previousEnabled()\"\n [attr.aria-label]=\"_ariaLabelPrev\"\n [class.disabled]=\"!_previousEnabled()\"\n class=\"gipi-mat-datetime-picker-calendar-previous-button\"\n role=\"button\">\n <svg height=\"24\"\n viewBox=\"0 0 24 24\"\n width=\"24\">\n <path d=\"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z\"></path>\n </svg>\n </div>\n <div (@slideCalendar.done)=\"_calendarStateDone()\"\n [@slideCalendar]=\"_calendarState\"\n class=\"gipi-mat-datetime-picker-calendar-period-button\">\n <strong>{{ _monthYearLabel }}</strong>\n </div>\n <div (click)=\"_nextClicked()\"\n [attr.aria-disabled]=\"!_nextEnabled()\"\n [attr.aria-label]=\"_ariaLabelNext\"\n [class.disabled]=\"!_nextEnabled()\"\n class=\"gipi-mat-datetime-picker-calendar-next-button\"\n role=\"button\">\n <svg height=\"24\"\n viewBox=\"0 0 24 24\"\n width=\"24\">\n <path d=\"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z\"></path>\n </svg>\n </div>\n </div>\n </div> -->\n\n <gipi-mat-datetime-picker-month-view (_userSelection)=\"_userSelected()\"\n (selectedChange)=\"_dateSelected($event)\"\n *ngSwitchCase=\"'month'\"\n [activeDate]=\"_activeDate\"\n [dateFilter]=\"_dateFilterForViews\"\n [selected]=\"selected\"\n [type]=\"type\">\n </gipi-mat-datetime-picker-month-view>\n <gipi-mat-datetime-picker-year-view (_userSelection)=\"_userSelected()\"\n (selectedChange)=\"_monthSelected($event)\"\n *ngSwitchCase=\"'year'\"\n [activeDate]=\"_activeDate\"\n [dateFilter]=\"_dateFilterForViews\"\n [selected]=\"selected\"\n [type]=\"type\">\n </gipi-mat-datetime-picker-year-view>\n <gipi-mat-datetime-picker-multi-year-view (_userSelection)=\"_userSelected()\"\n (selectedChange)=\"_yearSelected($event)\"\n *ngSwitchCase=\"'multi-year'\"\n [activeDate]=\"_activeDate\"\n [dateFilter]=\"_dateFilterForViews\"\n [maxDate]=\"maxDate\"\n [minDate]=\"minDate\"\n [selected]=\"selected\"\n [type]=\"type\">\n </gipi-mat-datetime-picker-multi-year-view>\n <gipi-mat-datetime-picker-clock (_userSelection)=\"_userSelected()\"\n (activeDateChange)=\"_onActiveDateChange($event)\"\n (selectedChange)=\"_timeSelected($event)\"\n *ngSwitchDefault\n [dateFilter]=\"dateFilter\"\n [interval]=\"timeInterval\"\n [maxDate]=\"maxDate\"\n [minDate]=\"minDate\"\n [selected]=\"_activeDate\"\n [startView]=\"_clockView\"\n [twelvehour]=\"twelvehour\">\n </gipi-mat-datetime-picker-clock>\n</div>",
26210
+ animations: [slideCalendar],
26211
+ encapsulation: ViewEncapsulation.None,
26212
+ changeDetection: ChangeDetectionStrategy.OnPush,
26213
+ host: {
26214
+ '[class.gipi-mat-datetime-picker-calendar]': 'true',
26215
+ '[attr.aria-label]': 'ariaLabel',
26216
+ role: 'dialog',
26217
+ tabindex: '0',
26218
+ '(keydown)': '_handleCalendarBodyKeydown($event)',
26219
+ },
26220
+ styles: [".gipi-mat-datetime-picker-calendar{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:block;outline:0}.gipi-mat-datetime-picker-calendar[mode=landscape]{display:flex}.gipi-mat-datetime-picker-calendar-header{padding:8px 8px 0;font-size:14px;box-sizing:border-box}[mode=landscape] .gipi-mat-datetime-picker-calendar-header{width:150px;min-width:150px}.gipi-mat-datetime-picker-calendar-controls{display:flex;margin:5% calc(33% / 7 - 16px)}.gipi-mat-datetime-picker-calendar-controls .mat-icon-button:hover .mat-button-focus-overlay{opacity:.04}.gipi-mat-datetime-picker-calendar-spacer{flex:1 1 auto}.gipi-mat-datetime-picker-calendar-period-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:0;border:none;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:0;line-height:36px;padding:0 16px;border-radius:4px}.gipi-mat-datetime-picker-calendar-arrow{display:inline-block;width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top-width:5px;border-top-style:solid;margin:0 0 0 5px;vertical-align:middle}.gipi-mat-datetime-picker-calendar-arrow.gipi-mat-datetime-picker-calendar-invert{transform:rotate(180deg)}[dir=rtl] .gipi-mat-datetime-picker-calendar-arrow{margin:0 5px 0 0}.gipi-mat-datetime-picker-calendar-next-button::after,.gipi-mat-datetime-picker-calendar-previous-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:'';margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .gipi-mat-datetime-picker-calendar-next-button,[dir=rtl] .gipi-mat-datetime-picker-calendar-previous-button{transform:rotate(180deg)}.gipi-mat-datetime-picker-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.gipi-mat-datetime-picker-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.gipi-mat-datetime-picker-calendar-header-date-time{display:flex;flex-direction:row;align-items:center;justify-content:space-between;width:100%;margin-top:6px;font-weight:500;white-space:nowrap}[mode=landscape] .gipi-mat-datetime-picker-calendar-header-date-time{white-space:normal;word-wrap:break-word;margin-top:0}.gipi-mat-datetime-picker-calendar-header-ampm-container{font-size:.77em}.gipi-mat-datetime-picker-calendar-header-date{display:flex;align-items:center;justify-content:center;border-radius:6px;padding-inline:1rem;font-size:14px;line-height:36px;font-weight:600;transition:.2s}.gipi-mat-datetime-picker-calendar-header-date:not(.active){cursor:pointer;opacity:.6}.gipi-mat-datetime-picker-calendar-header-date:not(.active):hover{background:#f5f5f6;opacity:1}.gipi-mat-datetime-picker-calendar-header-date.active{cursor:pointer;background-color:#f3e7e7;color:#e0313e;opacity:1}.gipi-mat-datetime-picker-calendar-header-date.active:hover{background-color:#e0313e;color:#f3e7e7}.gipi-mat-datetime-picker-calendar-header-date.not-clickable{cursor:initial}.gipi-mat-datetime-picker-calendar-header-ampm,.gipi-mat-datetime-picker-calendar-header-hours,.gipi-mat-datetime-picker-calendar-header-minutes{display:flex;align-items:center;justify-content:center;border-radius:6px;width:36px;height:36px;transition:.2s}.gipi-mat-datetime-picker-calendar-header-ampm:not(.active),.gipi-mat-datetime-picker-calendar-header-hours:not(.active),.gipi-mat-datetime-picker-calendar-header-minutes:not(.active){cursor:pointer;opacity:.6}.gipi-mat-datetime-picker-calendar-header-ampm:not(.active):hover,.gipi-mat-datetime-picker-calendar-header-hours:not(.active):hover,.gipi-mat-datetime-picker-calendar-header-minutes:not(.active):hover{background:#f5f5f6;opacity:1}.gipi-mat-datetime-picker-calendar-header-ampm.active,.gipi-mat-datetime-picker-calendar-header-hours.active,.gipi-mat-datetime-picker-calendar-header-minutes.active{cursor:pointer;background-color:#f3e7e7;color:#e0313e;opacity:1}.gipi-mat-datetime-picker-calendar-header-ampm.active:hover,.gipi-mat-datetime-picker-calendar-header-hours.active:hover,.gipi-mat-datetime-picker-calendar-header-minutes.active:hover{background-color:#e0313e;color:#f3e7e7}.gipi-mat-datetime-picker-calendar-header-ampm.not-clickable,.gipi-mat-datetime-picker-calendar-header-hours.not-clickable,.gipi-mat-datetime-picker-calendar-header-minutes.not-clickable{cursor:initial}.gipi-mat-datetime-picker-calendar-header-time{display:flex;align-items:center;justify-content:center;gap:1px;font-size:24px;line-height:36px;padding-left:8px}.gipi-mat-datetime-picker-calendar-header-time:not(.active){opacity:.6}[mode=landscape] .gipi-mat-datetime-picker-calendar-header-time{display:block;padding-left:0}.gipi-mat-datetime-picker-calendar-content{width:100%;padding:0 8px 8px;outline:0;box-sizing:border-box;overflow:hidden}[mode=landscape] .gipi-mat-datetime-picker-calendar-content{padding-top:8px}.gipi-mat-datetime-picker-calendar-controls{display:flex;justify-content:space-between}.gipi-mat-datetime-picker-calendar-next-button,.gipi-mat-datetime-picker-calendar-previous-button{position:relative;display:inline-block;width:48px;height:48px;padding:12px;outline:0;border:0;cursor:pointer;background:0 0;box-sizing:border-box}.gipi-mat-datetime-picker-calendar-next-button.disabled,.gipi-mat-datetime-picker-calendar-previous-button.disabled{color:rgba(0,0,0,.38);pointer-events:none}.gipi-mat-datetime-picker-calendar-next-button svg,.gipi-mat-datetime-picker-calendar-previous-button svg{fill:currentColor;vertical-align:top}.gipi-mat-datetime-picker-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.gipi-mat-datetime-picker-calendar-table-header{color:rgba(0,0,0,.38)}.gipi-mat-datetime-picker-calendar-table-header th{text-align:center;font-size:11px;padding:0 0 8px}.gipi-mat-datetime-picker-calendar-table-header-divider{position:relative;height:1px}.gipi-mat-datetime-picker-calendar-table-header-divider::after{content:'';position:absolute;top:0;left:-8px;right:-8px;height:1px}@media (min-width:480px){.gipi-mat-datetime-picker-calendar[mode=auto]{display:flex}.gipi-mat-datetime-picker-calendar[mode=auto] .gipi-mat-datetime-picker-calendar-header{width:150px;min-width:150px}.gipi-mat-datetime-picker-calendar[mode=auto] .gipi-mat-datetime-picker-calendar-header-date-time{white-space:normal;word-wrap:break-word}.gipi-mat-datetime-picker-calendar[mode=auto] .gipi-mat-datetime-picker-calendar-header-time{display:block;padding-left:0}.gipi-mat-datetime-picker-calendar[mode=auto] .gipi-mat-datetime-picker-calendar-content{padding-top:8px}}"]
26221
+ }),
26222
+ __param(3, Optional()),
26223
+ __param(4, Optional()), __param(4, Inject(GIPI_DATETIME_FORMATS)),
26224
+ __metadata("design:paramtypes", [ElementRef,
26225
+ MatDatepickerIntl$1,
26226
+ NgZone,
26227
+ GIPIDatetimeAdapter, Object, ChangeDetectorRef])
26228
+ ], GIPIDatetimepickerCalendarComponent);
26229
+ return GIPIDatetimepickerCalendarComponent;
26230
+ }());
26231
+
26232
+ /** Used to generate a unique ID for each datepicker instance. */
26233
+ var datetimepickerUid = 0;
26234
+ /**
26235
+ * Component used as the content for the datepicker dialog and popup. We use this instead of using
26236
+ * MatCalendar directly as the content so we can control the initial focus. This also gives us a
26237
+ * place to put additional features of the popup that are not part of the calendar itself in the
26238
+ * future. (e.g. confirmation buttons).
26239
+ * @docs-private
26240
+ */
26241
+ var GIPIDatetimepickerContentComponent = /** @class */ (function () {
26242
+ function GIPIDatetimepickerContentComponent() {
26243
+ }
26244
+ GIPIDatetimepickerContentComponent.prototype.ngAfterContentInit = function () {
26245
+ this._calendar._focusActiveCell();
26246
+ };
26247
+ GIPIDatetimepickerContentComponent.prototype.onSelectionChange = function (date) {
26248
+ this.datetimepicker._select(date);
26249
+ this.datetimepicker.close();
26250
+ };
26251
+ /**
26252
+ * Handles keydown event on datepicker content.
26253
+ * @param event The event.
26254
+ */
26255
+ GIPIDatetimepickerContentComponent.prototype._handleKeydown = function (event) {
26256
+ if (event.keyCode === ESCAPE) {
26257
+ this.datetimepicker.close();
26258
+ event.preventDefault();
26259
+ event.stopPropagation();
26260
+ }
26261
+ };
26262
+ __decorate([
26263
+ ViewChild(GIPIDatetimepickerCalendarComponent, { static: true }),
26264
+ __metadata("design:type", GIPIDatetimepickerCalendarComponent)
26265
+ ], GIPIDatetimepickerContentComponent.prototype, "_calendar", void 0);
26266
+ GIPIDatetimepickerContentComponent = __decorate([
26267
+ Component({
26268
+ selector: 'gipi-mat-datetime-picker-content',
26269
+ template: "<gipi-mat-datetime-picker-calendar cdkTrapFocus\n class=\"mat-typography\"\n [id]=\"datetimepicker.id\"\n [attr.mode]=\"datetimepicker.mode\"\n [ariaNextMonthLabel]=\"datetimepicker.ariaNextMonthLabel\"\n [ariaNextYearLabel]=\"datetimepicker.ariaNextYearLabel\"\n [ariaPrevMonthLabel]=\"datetimepicker.ariaPrevMonthLabel\"\n [ariaPrevYearLabel]=\"datetimepicker.ariaPrevYearLabel\"\n [preventSameDateTimeSelection]=\"datetimepicker.preventSameDateTimeSelection\"\n [dateFilter]=\"datetimepicker._dateFilter\"\n [maxDate]=\"datetimepicker._maxDate\"\n [minDate]=\"datetimepicker._minDate\"\n [multiYearSelector]=\"datetimepicker.multiYearSelector\"\n [selected]=\"datetimepicker._selected\"\n [startAt]=\"datetimepicker.startAt\"\n [startView]=\"datetimepicker.startView\"\n [timeInterval]=\"datetimepicker.timeInterval\"\n [twelvehour]=\"datetimepicker.twelvehour\"\n [type]=\"datetimepicker.type\"\n (_userSelection)=\"datetimepicker.close()\"\n (selectedChange)=\"onSelectionChange($event)\"\n (viewChanged)=\"datetimepicker._viewChanged($event)\">\n</gipi-mat-datetime-picker-calendar>",
26270
+ encapsulation: ViewEncapsulation.None,
26271
+ changeDetection: ChangeDetectionStrategy.OnPush,
26272
+ host: {
26273
+ class: 'gipi-mat-datetime-picker-content',
26274
+ '[class.gipi-mat-datetime-picker-content-touch]': 'datetimepicker?.touchUi',
26275
+ '(keydown)': '_handleKeydown($event)',
26276
+ },
26277
+ styles: ["@use '@angular/material' as mat;.gipi-mat-datetime-picker-content{display:block;background-color:#fff;border-radius:4px!important;overflow:hidden;box-shadow:0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12)}.gipi-mat-datetime-picker-calendar{width:296px;height:405px}.gipi-mat-datetime-picker-calendar[mode=landscape]{width:446px;height:328px}@media (min-width:480px){.gipi-mat-datetime-picker-calendar[mode=auto]{width:446px;height:328px}}.gipi-mat-datetime-picker-content-touch{display:block;box-shadow:0 11px 15px -7px rgba(0,0,0,.2),0 24px 38px 3px rgba(0,0,0,.14),0 9px 46px 8px rgba(0,0,0,.12)}.cdk-global-overlay-wrapper,.cdk-overlay-container{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed;z-index:1000}.cdk-global-overlay-wrapper{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;z-index:1000}.cdk-overlay-backdrop{position:absolute;top:0;bottom:0;left:0;right:0;z-index:1000;pointer-events:auto;transition:opacity .4s cubic-bezier(.25,.8,.25,1);opacity:0}.cdk-overlay-backdrop.cdk-overlay-backdrop-showing{opacity:.48}.cdk-overlay-dark-backdrop{background:rgba(0,0,0,.6)}.gipi-mat-datetime-picker-dialog .mat-dialog-container{padding:0}"]
26278
+ })
26279
+ ], GIPIDatetimepickerContentComponent);
26280
+ return GIPIDatetimepickerContentComponent;
26281
+ }());
26282
+ var GIPIDatetimepickerComponent = /** @class */ (function () {
26283
+ function GIPIDatetimepickerComponent(_dialog, _overlay, _ngZone, _viewContainerRef, _scrollStrategy, _dateAdapter, _dir, _document) {
26284
+ this._dialog = _dialog;
26285
+ this._overlay = _overlay;
26286
+ this._ngZone = _ngZone;
26287
+ this._viewContainerRef = _viewContainerRef;
26288
+ this._scrollStrategy = _scrollStrategy;
26289
+ this._dateAdapter = _dateAdapter;
26290
+ this._dir = _dir;
26291
+ this._document = _document;
26292
+ /** Whether the calendar is open. */
26293
+ this.opened = false;
26294
+ /** The id for the datepicker calendar. */
26295
+ this.id = "gipi-mat-datetime-picker-" + datetimepickerUid++;
26296
+ /** Emits when the datepicker is disabled. */
26297
+ this._disabledChange = new Subject();
26298
+ this._validSelected = null;
26299
+ /** The element that was focused before the datepicker was opened. */
26300
+ this._focusedElementBeforeOpen = null;
26301
+ this._inputSubscription = Subscription.EMPTY;
26302
+ /** Active multi year view when click on year. */
26303
+ this.multiYearSelector = false;
26304
+ /** if true change the clock to 12 hour format. */
26305
+ this.twelvehour = false;
26306
+ /** The view that the calendar should start in. */
26307
+ this.startView = 'month';
26308
+ this.mode = 'auto';
26309
+ this.timeInterval = 1;
26310
+ this.ariaNextMonthLabel = 'Next month';
26311
+ this.ariaPrevMonthLabel = 'Previous month';
26312
+ this.ariaNextYearLabel = 'Next year';
26313
+ this.ariaPrevYearLabel = 'Previous year';
26314
+ /** Prevent user to select same date time */
26315
+ this.preventSameDateTimeSelection = false;
26316
+ this._type = 'date';
26317
+ /** Whether the calendar UI is in touch mode. In touch mode the calendar opens in a dialog rather than a popup and elements have more padding to allow for bigger touch targets. */
26318
+ this._touchUi = false;
26319
+ /** Emits when the datepicker has been opened. */
26320
+ this.openedStream = new EventEmitter();
26321
+ /** Emits when the datepicker has been closed. */
26322
+ this.closedStream = new EventEmitter();
26323
+ /** Emits when the view has been changed. **/
26324
+ this.viewChanged = new EventEmitter();
26325
+ /**
26326
+ * Emits new selected date when selected date changes.
26327
+ * @deprecated Switch to the `dateChange` and `dateInput` binding on the input element.
26328
+ */
26329
+ this.selectedChanged = new EventEmitter();
26330
+ if (!this._dateAdapter) {
26331
+ throw createMissingDateImplError$1('DateAdapter');
26332
+ }
26333
+ }
26334
+ Object.defineProperty(GIPIDatetimepickerComponent.prototype, "startAt", {
26335
+ get: function () {
26336
+ // If an explicit startAt is set we start there, otherwise we start at whatever the currently selected value is.
26337
+ return (this._startAt || (this._datepickerInput ? this._datepickerInput.value : null));
26338
+ },
26339
+ set: function (date) {
26340
+ this._startAt = this._dateAdapter.getValidDateOrNull(date);
26341
+ },
26342
+ enumerable: false,
26343
+ configurable: true
26344
+ });
26345
+ Object.defineProperty(GIPIDatetimepickerComponent.prototype, "openOnFocus", {
26346
+ get: function () {
26347
+ return this._openOnFocus;
26348
+ },
26349
+ set: function (value) {
26350
+ this._openOnFocus = coerceBooleanProperty(value);
26351
+ },
26352
+ enumerable: false,
26353
+ configurable: true
26354
+ });
26355
+ Object.defineProperty(GIPIDatetimepickerComponent.prototype, "type", {
26356
+ get: function () {
26357
+ return this._type;
26358
+ },
26359
+ set: function (value) {
26360
+ this._type = value || 'date';
26361
+ },
26362
+ enumerable: false,
26363
+ configurable: true
26364
+ });
26365
+ Object.defineProperty(GIPIDatetimepickerComponent.prototype, "touchUi", {
26366
+ get: function () {
26367
+ return this._touchUi;
26368
+ },
26369
+ set: function (value) {
26370
+ this._touchUi = coerceBooleanProperty(value);
26371
+ },
26372
+ enumerable: false,
26373
+ configurable: true
26374
+ });
26375
+ Object.defineProperty(GIPIDatetimepickerComponent.prototype, "disabled", {
26376
+ get: function () {
26377
+ return this._disabled === undefined && this._datepickerInput
26378
+ ? this._datepickerInput.disabled
26379
+ : !!this._disabled;
26380
+ },
26381
+ set: function (value) {
26382
+ var newValue = coerceBooleanProperty(value);
26383
+ if (newValue !== this._disabled) {
26384
+ this._disabled = newValue;
26385
+ this._disabledChange.next(newValue);
26386
+ }
26387
+ },
26388
+ enumerable: false,
26389
+ configurable: true
26390
+ });
26391
+ Object.defineProperty(GIPIDatetimepickerComponent.prototype, "_selected", {
26392
+ /** The currently selected date. */
26393
+ get: function () {
26394
+ return this._validSelected;
26395
+ },
26396
+ set: function (value) {
26397
+ this._validSelected = value;
26398
+ },
26399
+ enumerable: false,
26400
+ configurable: true
26401
+ });
26402
+ Object.defineProperty(GIPIDatetimepickerComponent.prototype, "_minDate", {
26403
+ /** The minimum selectable date. */
26404
+ get: function () {
26405
+ return this._datepickerInput && this._datepickerInput.min;
26406
+ },
26407
+ enumerable: false,
26408
+ configurable: true
26409
+ });
26410
+ Object.defineProperty(GIPIDatetimepickerComponent.prototype, "_maxDate", {
26411
+ /** The maximum selectable date. */
26412
+ get: function () {
26413
+ return this._datepickerInput && this._datepickerInput.max;
26414
+ },
26415
+ enumerable: false,
26416
+ configurable: true
26417
+ });
26418
+ Object.defineProperty(GIPIDatetimepickerComponent.prototype, "_dateFilter", {
26419
+ get: function () {
26420
+ return this._datepickerInput && this._datepickerInput._dateFilter;
26421
+ },
26422
+ enumerable: false,
26423
+ configurable: true
26424
+ });
26425
+ GIPIDatetimepickerComponent.prototype._handleFocus = function () {
26426
+ if (!this.opened && this.openOnFocus) {
26427
+ this.open();
26428
+ }
26429
+ };
26430
+ GIPIDatetimepickerComponent.prototype._viewChanged = function (type) {
26431
+ this.viewChanged.emit(type);
26432
+ };
26433
+ GIPIDatetimepickerComponent.prototype.ngOnDestroy = function () {
26434
+ this.close();
26435
+ this._inputSubscription.unsubscribe();
26436
+ this._disabledChange.complete();
26437
+ if (this._popupRef) {
26438
+ this._popupRef.dispose();
26439
+ }
26440
+ };
26441
+ /** Selects the given date */
26442
+ GIPIDatetimepickerComponent.prototype._select = function (date) {
26443
+ var oldValue = this._selected;
26444
+ this._selected = date;
26445
+ if (!this._dateAdapter.sameDatetime(oldValue, this._selected)) {
26446
+ this.selectedChanged.emit(date);
26447
+ }
26448
+ };
26449
+ /**
26450
+ * Register an input with this datepicker.
26451
+ * @param input The datepicker input to register with this datepicker.
26452
+ */
26453
+ GIPIDatetimepickerComponent.prototype._registerInput = function (input) {
26454
+ var _this = this;
26455
+ if (this._datepickerInput) {
26456
+ throw Error('A MatDatepicker can only be associated with a single input.');
26457
+ }
26458
+ this._datepickerInput = input;
26459
+ this._inputSubscription = this._datepickerInput._valueChange.subscribe(function (value) { return (_this._selected = value); });
26460
+ };
26461
+ /** Open the calendar. */
26462
+ GIPIDatetimepickerComponent.prototype.open = function () {
26463
+ if (this.opened || this.disabled) {
26464
+ return;
26465
+ }
26466
+ if (!this._datepickerInput) {
26467
+ throw Error('Attempted to open an MatDatepicker with no associated input.');
26468
+ }
26469
+ if (this._document) {
26470
+ this._focusedElementBeforeOpen = this._document.activeElement;
26471
+ }
26472
+ this.touchUi ? this._openAsDialog() : this._openAsPopup();
26473
+ this.opened = true;
26474
+ this.openedStream.emit();
26475
+ };
26476
+ /** Close the calendar. */
26477
+ GIPIDatetimepickerComponent.prototype.close = function () {
26478
+ var _this = this;
26479
+ if (!this.opened) {
26480
+ return;
26481
+ }
26482
+ if (this._popupRef && this._popupRef.hasAttached()) {
26483
+ this._popupRef.detach();
26484
+ }
26485
+ if (this._dialogRef) {
26486
+ this._dialogRef.close();
26487
+ this._dialogRef = null;
26488
+ }
26489
+ if (this._calendarPortal && this._calendarPortal.isAttached) {
26490
+ this._calendarPortal.detach();
26491
+ }
26492
+ var completeClose = function () {
26493
+ // The `_opened` could've been reset already if
26494
+ // we got two events in quick succession.
26495
+ if (_this.opened) {
26496
+ _this.opened = false;
26497
+ _this.closedStream.emit();
26498
+ _this._focusedElementBeforeOpen = null;
26499
+ }
26500
+ };
26501
+ if (this._focusedElementBeforeOpen && typeof this._focusedElementBeforeOpen.focus === 'function') {
26502
+ // Because IE moves focus asynchronously, we can't count on it being restored before we've
26503
+ // marked the datepicker as closed. If the event fires out of sequence and the element that
26504
+ // we're refocusing opens the datepicker on focus, the user could be stuck with not being
26505
+ // able to close the calendar at all. We work around it by making the logic, that marks
26506
+ // the datepicker as closed, async as well.
26507
+ this._focusedElementBeforeOpen.focus();
26508
+ setTimeout(completeClose);
26509
+ }
26510
+ else {
26511
+ completeClose();
26512
+ }
26513
+ };
26514
+ /** Open the calendar as a dialog. */
26515
+ GIPIDatetimepickerComponent.prototype._openAsDialog = function () {
26516
+ var _this = this;
26517
+ this._dialogRef = this._dialog.open(GIPIDatetimepickerContentComponent, {
26518
+ direction: this._dir ? this._dir.value : 'ltr',
26519
+ viewContainerRef: this._viewContainerRef,
26520
+ panelClass: 'gipi-mat-datetime-picker-dialog',
26521
+ });
26522
+ this._dialogRef.afterClosed().subscribe(function () { return _this.close(); });
26523
+ this._dialogRef.componentInstance.datetimepicker = this;
26524
+ };
26525
+ /** Open the calendar as a popup. */
26526
+ GIPIDatetimepickerComponent.prototype._openAsPopup = function () {
26527
+ var _this = this;
26528
+ if (!this._calendarPortal) {
26529
+ this._calendarPortal = new ComponentPortal(GIPIDatetimepickerContentComponent, this._viewContainerRef);
26530
+ }
26531
+ if (!this._popupRef) {
26532
+ this._createPopup();
26533
+ }
26534
+ if (!this._popupRef.hasAttached()) {
26535
+ var componentRef = this._popupRef.attach(this._calendarPortal);
26536
+ componentRef.instance.datetimepicker = this;
26537
+ // Update the position once the calendar has rendered.
26538
+ this._ngZone.onStable
26539
+ .asObservable()
26540
+ .pipe(first())
26541
+ .subscribe(function () { return _this._popupRef.updatePosition(); });
26542
+ }
26543
+ this._popupRef.backdropClick().subscribe(function () { return _this.close(); });
26544
+ };
26545
+ /** Create the popup. */
26546
+ GIPIDatetimepickerComponent.prototype._createPopup = function () {
26547
+ var overlayConfig = new OverlayConfig({
26548
+ positionStrategy: this._createPopupPositionStrategy(),
26549
+ hasBackdrop: true,
26550
+ backdropClass: 'mat-overlay-transparent-backdrop',
26551
+ direction: this._dir ? this._dir.value : 'ltr',
26552
+ scrollStrategy: this._scrollStrategy(),
26553
+ panelClass: 'gipi-mat-datetime-picker-popup',
26554
+ });
26555
+ this._popupRef = this._overlay.create(overlayConfig);
26556
+ };
26557
+ /** Create the popup PositionStrategy. */
26558
+ GIPIDatetimepickerComponent.prototype._createPopupPositionStrategy = function () {
26559
+ return this._overlay
26560
+ .position()
26561
+ .flexibleConnectedTo(this._datepickerInput.getConnectedOverlayOrigin())
26562
+ .withTransformOriginOn('.gipi-mat-datetime-picker-content')
26563
+ .withFlexibleDimensions(false)
26564
+ .withViewportMargin(8)
26565
+ .withLockedPosition()
26566
+ .withPositions([
26567
+ {
26568
+ originX: 'start',
26569
+ originY: 'bottom',
26570
+ overlayX: 'start',
26571
+ overlayY: 'top',
26572
+ },
26573
+ {
26574
+ originX: 'start',
26575
+ originY: 'top',
26576
+ overlayX: 'start',
26577
+ overlayY: 'bottom',
26578
+ },
26579
+ {
26580
+ originX: 'end',
26581
+ originY: 'bottom',
26582
+ overlayX: 'end',
26583
+ overlayY: 'top',
26584
+ },
26585
+ {
26586
+ originX: 'end',
26587
+ originY: 'top',
26588
+ overlayX: 'end',
26589
+ overlayY: 'bottom',
26590
+ },
26591
+ ]);
26592
+ };
26593
+ GIPIDatetimepickerComponent.ctorParameters = function () { return [
26594
+ { type: MatDialog$1 },
26595
+ { type: Overlay },
26596
+ { type: NgZone },
26597
+ { type: ViewContainerRef },
26598
+ { type: undefined, decorators: [{ type: Inject, args: [MAT_DATEPICKER_SCROLL_STRATEGY$1,] }] },
26599
+ { type: GIPIDatetimeAdapter, decorators: [{ type: Optional }] },
26600
+ { type: Directionality, decorators: [{ type: Optional }] },
26601
+ { type: undefined, decorators: [{ type: Optional }, { type: Inject, args: [DOCUMENT,] }] }
26602
+ ]; };
26603
+ __decorate([
26604
+ Input(),
26605
+ __metadata("design:type", Boolean)
26606
+ ], GIPIDatetimepickerComponent.prototype, "multiYearSelector", void 0);
26607
+ __decorate([
26608
+ Input(),
26609
+ __metadata("design:type", Boolean)
26610
+ ], GIPIDatetimepickerComponent.prototype, "twelvehour", void 0);
26611
+ __decorate([
26612
+ Input(),
26613
+ __metadata("design:type", String)
26614
+ ], GIPIDatetimepickerComponent.prototype, "startView", void 0);
26615
+ __decorate([
26616
+ Input(),
26617
+ __metadata("design:type", String)
26618
+ ], GIPIDatetimepickerComponent.prototype, "mode", void 0);
26619
+ __decorate([
26620
+ Input(),
26621
+ __metadata("design:type", Number)
26622
+ ], GIPIDatetimepickerComponent.prototype, "timeInterval", void 0);
26623
+ __decorate([
26624
+ Input(),
26625
+ __metadata("design:type", Object)
26626
+ ], GIPIDatetimepickerComponent.prototype, "ariaNextMonthLabel", void 0);
26627
+ __decorate([
26628
+ Input(),
26629
+ __metadata("design:type", Object)
26630
+ ], GIPIDatetimepickerComponent.prototype, "ariaPrevMonthLabel", void 0);
26631
+ __decorate([
26632
+ Input(),
26633
+ __metadata("design:type", Object)
26634
+ ], GIPIDatetimepickerComponent.prototype, "ariaNextYearLabel", void 0);
26635
+ __decorate([
26636
+ Input(),
26637
+ __metadata("design:type", Object)
26638
+ ], GIPIDatetimepickerComponent.prototype, "ariaPrevYearLabel", void 0);
26639
+ __decorate([
26640
+ Input(),
26641
+ __metadata("design:type", Object)
26642
+ ], GIPIDatetimepickerComponent.prototype, "preventSameDateTimeSelection", void 0);
26643
+ __decorate([
26644
+ Input(),
26645
+ __metadata("design:type", Object)
26646
+ ], GIPIDatetimepickerComponent.prototype, "panelClass", void 0);
26647
+ __decorate([
26648
+ Input(),
26649
+ __metadata("design:type", Object),
26650
+ __metadata("design:paramtypes", [Object])
26651
+ ], GIPIDatetimepickerComponent.prototype, "startAt", null);
26652
+ __decorate([
26653
+ Input(),
26654
+ __metadata("design:type", Boolean),
26655
+ __metadata("design:paramtypes", [Boolean])
26656
+ ], GIPIDatetimepickerComponent.prototype, "openOnFocus", null);
26657
+ __decorate([
26658
+ Input(),
26659
+ __metadata("design:type", String),
26660
+ __metadata("design:paramtypes", [String])
26661
+ ], GIPIDatetimepickerComponent.prototype, "type", null);
26662
+ __decorate([
26663
+ Input(),
26664
+ __metadata("design:type", Boolean),
26665
+ __metadata("design:paramtypes", [Boolean])
26666
+ ], GIPIDatetimepickerComponent.prototype, "touchUi", null);
26667
+ __decorate([
26668
+ Input(),
26669
+ __metadata("design:type", Boolean),
26670
+ __metadata("design:paramtypes", [Boolean])
26671
+ ], GIPIDatetimepickerComponent.prototype, "disabled", null);
26672
+ __decorate([
26673
+ Output('opened'),
26674
+ __metadata("design:type", EventEmitter)
26675
+ ], GIPIDatetimepickerComponent.prototype, "openedStream", void 0);
26676
+ __decorate([
26677
+ Output('closed'),
26678
+ __metadata("design:type", EventEmitter)
26679
+ ], GIPIDatetimepickerComponent.prototype, "closedStream", void 0);
26680
+ __decorate([
26681
+ Output(),
26682
+ __metadata("design:type", EventEmitter)
26683
+ ], GIPIDatetimepickerComponent.prototype, "viewChanged", void 0);
26684
+ __decorate([
26685
+ Output(),
26686
+ __metadata("design:type", Object)
26687
+ ], GIPIDatetimepickerComponent.prototype, "selectedChanged", void 0);
26688
+ GIPIDatetimepickerComponent = __decorate([
26689
+ Component({
26690
+ selector: 'gipi-mat-datetime-picker',
26691
+ exportAs: 'gipiDatetimePicker',
26692
+ template: '',
26693
+ changeDetection: ChangeDetectionStrategy.OnPush,
26694
+ encapsulation: ViewEncapsulation.None,
26695
+ preserveWhitespaces: false
26696
+ }),
26697
+ __param(4, Inject(MAT_DATEPICKER_SCROLL_STRATEGY$1)),
26698
+ __param(5, Optional()),
26699
+ __param(6, Optional()),
26700
+ __param(7, Optional()), __param(7, Inject(DOCUMENT)),
26701
+ __metadata("design:paramtypes", [MatDialog$1,
26702
+ Overlay,
26703
+ NgZone,
26704
+ ViewContainerRef, Object, GIPIDatetimeAdapter,
26705
+ Directionality, Object])
26706
+ ], GIPIDatetimepickerComponent);
26707
+ return GIPIDatetimepickerComponent;
26708
+ }());
26709
+
26710
+ var GIPIDatetimepickerToggleComponent = /** @class */ (function () {
26711
+ function GIPIDatetimepickerToggleComponent(_intl, _changeDetectorRef) {
26712
+ this._intl = _intl;
26713
+ this._changeDetectorRef = _changeDetectorRef;
26714
+ this._stateChanges = Subscription.EMPTY;
26715
+ }
26716
+ Object.defineProperty(GIPIDatetimepickerToggleComponent.prototype, "disabled", {
26717
+ /** Whether the toggle button is disabled. */
26718
+ get: function () {
26719
+ return this._disabled === undefined
26720
+ ? this.datetimepicker.disabled
26721
+ : !!this._disabled;
26722
+ },
26723
+ set: function (value) {
26724
+ this._disabled = coerceBooleanProperty(value);
26725
+ },
26726
+ enumerable: false,
26727
+ configurable: true
26728
+ });
26729
+ GIPIDatetimepickerToggleComponent.prototype.ngOnChanges = function (changes) {
26730
+ if (changes.datepicker) {
26731
+ this._watchStateChanges();
26732
+ }
26733
+ };
26734
+ GIPIDatetimepickerToggleComponent.prototype.ngOnDestroy = function () {
26735
+ this._stateChanges.unsubscribe();
26736
+ };
26737
+ GIPIDatetimepickerToggleComponent.prototype.ngAfterContentInit = function () {
26738
+ this._watchStateChanges();
26739
+ };
26740
+ GIPIDatetimepickerToggleComponent.prototype._open = function (event) {
26741
+ if (this.datetimepicker && !this.disabled) {
26742
+ this.datetimepicker.open();
26743
+ event.stopPropagation();
26744
+ }
26745
+ };
26746
+ GIPIDatetimepickerToggleComponent.prototype._watchStateChanges = function () {
26747
+ var _this = this;
26748
+ var datepickerDisabled = this.datetimepicker
26749
+ ? this.datetimepicker._disabledChange
26750
+ : of([], asyncScheduler);
26751
+ var inputDisabled = this.datetimepicker && this.datetimepicker._datepickerInput
26752
+ ? this.datetimepicker._datepickerInput._disabledChange
26753
+ : of([], asyncScheduler);
26754
+ this._stateChanges.unsubscribe();
26755
+ this._stateChanges = merge(this._intl.changes, datepickerDisabled, inputDisabled).subscribe(function () { return _this._changeDetectorRef.markForCheck(); });
26756
+ };
26757
+ GIPIDatetimepickerToggleComponent.ctorParameters = function () { return [
26758
+ { type: MatDatepickerIntl$1 },
26759
+ { type: ChangeDetectorRef }
26760
+ ]; };
26761
+ __decorate([
26762
+ Input('for'),
26763
+ __metadata("design:type", GIPIDatetimepickerComponent)
26764
+ ], GIPIDatetimepickerToggleComponent.prototype, "datetimepicker", void 0);
26765
+ __decorate([
26766
+ Input(),
26767
+ __metadata("design:type", Boolean),
26768
+ __metadata("design:paramtypes", [Boolean])
26769
+ ], GIPIDatetimepickerToggleComponent.prototype, "disabled", null);
26770
+ GIPIDatetimepickerToggleComponent = __decorate([
26771
+ Component({
26772
+ selector: 'gipi-mat-datetime-picker-toggle',
26773
+ exportAs: 'gipiDatetimePickerToggle',
26774
+ template: "<button [attr.aria-label]=\"_intl.openCalendarLabel\"\n [disabled]=\"disabled\"\n mat-icon-button\n type=\"button\">\n <mat-icon [ngSwitch]=\"datetimepicker.type\">\n <svg *ngSwitchCase=\"'time'\"\n fill=\"currentColor\"\n focusable=\"false\"\n height=\"100%\"\n style=\"vertical-align: top\"\n viewBox=\"0 0 24 24\"\n width=\"100%\">\n <path\n d=\"M12,20A8,8 0 0,0 20,12A8,8 0 0,0 12,4A8,8 0 0,0 4,12A8,8 0 0,0 12,20M12,2A10,10 0 0,1 22,12A10,10 0 0,1 12,22C6.47,22 2,17.5 2,12A10,10 0 0,1 12,2M12.5,7V12.25L17,14.92L16.25,16.15L11,13V7H12.5Z\">\n </path>\n </svg>\n <svg *ngSwitchCase=\"'datetime'\"\n fill=\"currentColor\"\n focusable=\"false\"\n height=\"100%\"\n style=\"vertical-align: top\"\n viewBox=\"0 0 24 24\"\n width=\"100%\">\n <path\n d=\"M15,13H16.5V15.82L18.94,17.23L18.19,18.53L15,16.69V13M19,8H5V19H9.67C9.24,18.09 9,17.07 9,16A7,7 0 0,1 16,9C17.07,9 18.09,9.24 19,9.67V8M5,21C3.89,21 3,20.1 3,19V5C3,3.89 3.89,3 5,3H6V1H8V3H16V1H18V3H19A2,2 0 0,1 21,5V11.1C22.24,12.36 23,14.09 23,16A7,7 0 0,1 16,23C14.09,23 12.36,22.24 11.1,21H5M16,11.15A4.85,4.85 0 0,0 11.15,16C11.15,18.68 13.32,20.85 16,20.85A4.85,4.85 0 0,0 20.85,16C20.85,13.32 18.68,11.15 16,11.15Z\">\n </path>\n </svg>\n <svg *ngSwitchDefault\n fill=\"currentColor\"\n focusable=\"false\"\n height=\"100%\"\n style=\"vertical-align: top\"\n viewBox=\"0 0 24 24\"\n width=\"100%\">\n <path d=\"M0 0h24v24H0z\"\n fill=\"none\" />\n <path\n d=\"M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z\" />\n </svg>\n </mat-icon>\n</button>",
26775
+ encapsulation: ViewEncapsulation.None,
26776
+ changeDetection: ChangeDetectionStrategy.OnPush,
26777
+ preserveWhitespaces: false,
26778
+ host: {
26779
+ class: 'gipi-mat-datetime-picker-toggle',
26780
+ // Bind the `click` on the host, rather than the inner `button`, so that we can call `stopPropagation`
26781
+ // on it without affecting the user's `click` handlers. We need to stop it so that the input doesn't
26782
+ // get focused automatically by the form field (See https://github.com/angular/components/pull/21856).
26783
+ '(click)': '_open($event)',
26784
+ }
26785
+ }),
26786
+ __metadata("design:paramtypes", [MatDatepickerIntl$1,
26787
+ ChangeDetectorRef])
26788
+ ], GIPIDatetimepickerToggleComponent);
26789
+ return GIPIDatetimepickerToggleComponent;
26790
+ }());
26791
+
26792
+ var nextUniqueId$q = 0;
26793
+ var GIPIDateAndTimePickerComponent = /** @class */ (function () {
26794
+ function GIPIDateAndTimePickerComponent(elementRef, _changeDetectorRef) {
26795
+ this.elementRef = elementRef;
26796
+ this._changeDetectorRef = _changeDetectorRef;
26797
+ this._name = "gipi-mat-datetime-picker-" + nextUniqueId$q++;
26798
+ this.id = this._name;
26799
+ this.name = this._name;
26800
+ this.label = '';
26801
+ this.placeholder = '';
26802
+ this.timeInterval = 1;
26803
+ this.help = '';
26804
+ this._required = false;
26805
+ this._disabled = false;
26806
+ this._type = 'datetime';
26807
+ this.onChange = function () { };
26808
+ this.onTouched = function () { };
26809
+ }
26810
+ GIPIDateAndTimePickerComponent_1 = GIPIDateAndTimePickerComponent;
26811
+ Object.defineProperty(GIPIDateAndTimePickerComponent.prototype, "required", {
26812
+ get: function () {
26813
+ return this._required;
26814
+ },
26815
+ set: function (value) {
26816
+ this._required = coerceBooleanProperty(value);
26817
+ },
26818
+ enumerable: false,
26819
+ configurable: true
26820
+ });
26821
+ Object.defineProperty(GIPIDateAndTimePickerComponent.prototype, "disabled", {
26822
+ get: function () {
26823
+ return this._disabled;
26824
+ },
26825
+ set: function (value) {
26826
+ this._disabled = coerceBooleanProperty(value);
26827
+ },
26828
+ enumerable: false,
26829
+ configurable: true
26830
+ });
26831
+ Object.defineProperty(GIPIDateAndTimePickerComponent.prototype, "value", {
26832
+ get: function () {
26833
+ return this._value;
26834
+ },
26835
+ set: function (value) {
26836
+ if (value instanceof Date) {
26837
+ this._value = value;
26838
+ }
26839
+ else {
26840
+ this._value = new Date(value);
26841
+ }
26842
+ this.onChange(this._value);
26843
+ this.onTouched(this._value);
26844
+ },
26845
+ enumerable: false,
26846
+ configurable: true
26847
+ });
26848
+ Object.defineProperty(GIPIDateAndTimePickerComponent.prototype, "type", {
26849
+ get: function () {
26850
+ return this._type;
26851
+ },
26852
+ set: function (value) {
26853
+ this._type = value || 'datetime';
26854
+ },
26855
+ enumerable: false,
26856
+ configurable: true
26857
+ });
26858
+ GIPIDateAndTimePickerComponent.prototype.ngOnInit = function () { };
26859
+ GIPIDateAndTimePickerComponent.prototype.writeValue = function (value) {
26860
+ this._value = value;
26861
+ };
26862
+ GIPIDateAndTimePickerComponent.prototype.registerOnChange = function (fn) {
26863
+ this.onChange = fn;
26864
+ };
26865
+ GIPIDateAndTimePickerComponent.prototype.registerOnTouched = function (fn) {
26866
+ this.onTouched = fn;
26867
+ };
26868
+ GIPIDateAndTimePickerComponent.prototype.setDisabledState = function (isDisabled) {
26869
+ this.disabled = isDisabled;
26870
+ this._changeDetectorRef.markForCheck();
26871
+ };
26872
+ GIPIDateAndTimePickerComponent.prototype.toggleDatetimePicker = function (event) {
26873
+ if (!ObjectUtil.isNull(this.GIPIDatetimepickerToggleRef)) {
26874
+ this.GIPIDatetimepickerToggleRef._open(event);
26875
+ }
26876
+ };
26877
+ var GIPIDateAndTimePickerComponent_1;
26878
+ GIPIDateAndTimePickerComponent.ctorParameters = function () { return [
26879
+ { type: ElementRef },
26880
+ { type: ChangeDetectorRef }
26881
+ ]; };
26882
+ __decorate([
26883
+ ViewChild('dateTimePickerToggle', { static: true }),
26884
+ __metadata("design:type", GIPIDatetimepickerToggleComponent)
26885
+ ], GIPIDateAndTimePickerComponent.prototype, "GIPIDatetimepickerToggleRef", void 0);
26886
+ __decorate([
26887
+ Input(),
26888
+ __metadata("design:type", String)
26889
+ ], GIPIDateAndTimePickerComponent.prototype, "id", void 0);
26890
+ __decorate([
26891
+ Input(),
26892
+ __metadata("design:type", String)
26893
+ ], GIPIDateAndTimePickerComponent.prototype, "name", void 0);
26894
+ __decorate([
26895
+ Input(),
26896
+ __metadata("design:type", String)
26897
+ ], GIPIDateAndTimePickerComponent.prototype, "label", void 0);
26898
+ __decorate([
26899
+ Input(),
26900
+ __metadata("design:type", String)
26901
+ ], GIPIDateAndTimePickerComponent.prototype, "placeholder", void 0);
26902
+ __decorate([
26903
+ Input('min'),
26904
+ __metadata("design:type", Date)
26905
+ ], GIPIDateAndTimePickerComponent.prototype, "minDate", void 0);
26906
+ __decorate([
26907
+ Input('max'),
26908
+ __metadata("design:type", Date)
26909
+ ], GIPIDateAndTimePickerComponent.prototype, "maxDate", void 0);
26910
+ __decorate([
26911
+ Input(),
26912
+ __metadata("design:type", Number)
26913
+ ], GIPIDateAndTimePickerComponent.prototype, "timeInterval", void 0);
26914
+ __decorate([
26915
+ Input(),
26916
+ __metadata("design:type", String)
26917
+ ], GIPIDateAndTimePickerComponent.prototype, "help", void 0);
26918
+ __decorate([
26919
+ Input(),
26920
+ __metadata("design:type", Boolean),
26921
+ __metadata("design:paramtypes", [Boolean])
26922
+ ], GIPIDateAndTimePickerComponent.prototype, "required", null);
26923
+ __decorate([
26924
+ Input(),
26925
+ __metadata("design:type", Boolean),
26926
+ __metadata("design:paramtypes", [Boolean])
26927
+ ], GIPIDateAndTimePickerComponent.prototype, "disabled", null);
26928
+ __decorate([
26929
+ Input(),
26930
+ __metadata("design:type", Object),
26931
+ __metadata("design:paramtypes", [Object])
26932
+ ], GIPIDateAndTimePickerComponent.prototype, "value", null);
26933
+ __decorate([
26934
+ Input(),
26935
+ __metadata("design:type", String),
26936
+ __metadata("design:paramtypes", [String])
26937
+ ], GIPIDateAndTimePickerComponent.prototype, "type", null);
26938
+ GIPIDateAndTimePickerComponent = GIPIDateAndTimePickerComponent_1 = __decorate([
26939
+ Component({
26940
+ selector: 'gipi-datetime-picker',
26941
+ exportAs: 'gipiDatetimePicker',
26942
+ template: "<div class=\"datetime-wrapper\">\n\n <label *ngIf=\"label\"\n class=\"datetime-label\"\n [attr.for]=\"id\">\n {{ label }}\n <span *ngIf=\"required\"> * </span>\n </label>\n\n <div class=\"datetime-content\">\n\n <input inputRef\n class=\"datetime-element\"\n [attr.id]=\"id\"\n [attr.name]=\"name\"\n [placeholder]=\"placeholder\"\n [min]=\"minDate\"\n [max]=\"maxDate\"\n [disabled]=\"disabled\"\n [required]=\"required\"\n [readOnly]=\"true\"\n [autocomplete]=\"'off'\"\n [(ngModel)]=\"value\"\n [value]=\"value\"\n [gipiMatDatetimePicker]=\"datetimePicker\"\n (click)=\"toggleDatetimePicker($event)\" />\n\n <div class=\"suffix\">\n <gipi-mat-datetime-picker-toggle #dateTimePickerToggle\n [for]=\"datetimePicker\">\n </gipi-mat-datetime-picker-toggle>\n </div>\n\n <gipi-mat-datetime-picker #datetimePicker\n [openOnFocus]=\"false\"\n [mode]=\"'portrait'\"\n [multiYearSelector]=\"true\"\n [disabled]=\"disabled\"\n [timeInterval]=\"timeInterval\"\n [type]=\"type\">\n </gipi-mat-datetime-picker>\n </div>\n\n <small *ngIf=\"help\"\n class=\"datetime-help\">\n {{ help }}\n </small>\n</div>",
26943
+ providers: [
26944
+ {
26945
+ provide: NG_VALUE_ACCESSOR,
26946
+ useExisting: forwardRef(function () { return GIPIDateAndTimePickerComponent_1; }),
26947
+ multi: true
26948
+ },
26949
+ ],
26950
+ host: {
26951
+ 'class': 'gipi-mat-datetime-picker',
26952
+ },
26953
+ styles: [":host{display:block;width:100%;min-width:0;max-width:100%;flex:1}.datetime-wrapper{display:flex;flex-direction:column;gap:.8rem;font-size:1.4rem;color:#696969}.datetime-wrapper .datetime-label{display:flex;align-items:center;gap:.4rem;color:#131313;line-height:1.6rem}.datetime-wrapper .datetime-label>span{font-size:1.6rem;line-height:1.6rem;color:#d14014}.datetime-wrapper .datetime-content{display:flex;font-family:inherit;font-size:inherit;color:inherit;height:4rem;background:#fff;border:1px solid #0000001f;transition:background-color .2s,color .2s,border-color .2s,box-shadow .2s;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:6px;cursor:pointer}.datetime-wrapper .datetime-content .datetime-element{padding:.75rem .8rem;border:none;outline:0;background-color:transparent;flex:1;color:inherit;caret-color:#696969;min-width:0;cursor:pointer}.datetime-wrapper .datetime-content:not(.datetime-element:disabled):has(.datetime-element:enabled:hover),.datetime-wrapper .datetime-content:not(.datetime-element:disabled):has(.suffix:hover){border-color:#6d6f73}.datetime-wrapper .datetime-content:not(.datetime-element:disabled):has(.datetime-element:enabled:focus){outline:0;outline-offset:0;box-shadow:0 0 0 .2rem #e0e1e2;border-color:#6d6f73}.datetime-wrapper .datetime-content:has(.datetime-element:disabled){color:#bbbdc1!important;border-color:#e0e1e2!important;background-color:#f5f5f6!important;cursor:not-allowed}.datetime-wrapper .datetime-content .datetime-element:disabled{cursor:not-allowed}.datetime-wrapper .datetime-content .suffix{display:flex;align-items:center;justify-content:center;padding-block:.75rem;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;padding-right:.8rem}.datetime-wrapper .datetime-help{flex:1;font-size:1rem;font-weight:500;margin-top:-.4rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}::ng-deep .gipi-mat-datetime-picker-toggle{width:2rem!important;height:2rem!important;line-height:2rem!important}::ng-deep .gipi-mat-datetime-picker-toggle>button{width:2rem!important;height:2rem!important;line-height:2rem!important}::ng-deep .gipi-mat-datetime-picker-toggle>button .mat-button-wrapper>mat-icon{width:2rem!important;height:2rem!important;font-size:2rem!important;line-height:2rem!important;color:#696969!important}::ng-deep .gipi-mat-datetime-picker-toggle>button .mat-button-focus-overlay,::ng-deep .gipi-mat-datetime-picker-toggle>button .mat-button-ripple{display:none!important}::ng-deep .gipi-mat-datetime-picker-content{border-radius:6px!important}::ng-deep .gipi-mat-datetime-picker-calendar-header{border-top-left-radius:6px!important;border-top-right-radius:6px!important}::ng-deep .gipi-mat-datetime-picker-calendar-body-active>.gipi-mat-datetime-picker-calendar-body-cell-content:not(.gipi-mat-datetime-picker-calendar-body-selected){background-color:#f3e7e7!important;color:#e0313e!important}::ng-deep .gipi-mat-datetime-picker-calendar-body-cell .gipi-mat-datetime-picker-calendar-body-today{border-color:#e0313e!important}::ng-deep .gipi-mat-datetime-picker-calendar-body-cell .gipi-mat-datetime-picker-calendar-body-today.gipi-mat-datetime-picker-calendar-body-selected{box-shadow:inset 0 0 0 1px #fff!important}::ng-deep .gipi-mat-datetime-picker-calendar-body-cell .gipi-mat-datetime-picker-calendar-body-selected{background-color:#e0313e!important;color:#fff!important}::ng-deep .gipi-mat-datetime-picker-clock{background-color:#f5f5f6!important}::ng-deep .gipi-mat-datetime-picker-clock-center,::ng-deep .gipi-mat-datetime-picker-clock-hand,::ng-deep .gipi-mat-datetime-picker-clock-hand::before{background-color:#e0313e!important}::ng-deep .gipi-mat-datetime-picker-clock-cell.gipi-mat-datetime-picker-clock-cell-selected{color:#fff!important;background-color:#e0313e!important}::-webkit-input-placeholder{color:#bbbdc1}:-moz-placeholder{color:#bbbdc1}::-moz-placeholder{color:#bbbdc1}:-ms-input-placeholder{color:#bbbdc1}"]
26954
+ }),
26955
+ __metadata("design:paramtypes", [ElementRef,
26956
+ ChangeDetectorRef])
26957
+ ], GIPIDateAndTimePickerComponent);
26958
+ return GIPIDateAndTimePickerComponent;
26959
+ }());
26960
+
26961
+ var CLOCK_RADIUS = 50;
26962
+ var CLOCK_INNER_RADIUS = 27.5;
26963
+ var CLOCK_OUTER_RADIUS = 41.25;
26964
+ var CLOCK_TICK_RADIUS = 7.0833;
26965
+ /**
26966
+ * A clock that is used as part of the datepicker.
26967
+ * @docs-private
26968
+ */
26969
+ var GIPIDatetimepickerClockComponent = /** @class */ (function () {
26970
+ function GIPIDatetimepickerClockComponent(_element, _adapter) {
26971
+ var _this = this;
26972
+ this._element = _element;
26973
+ this._adapter = _adapter;
26974
+ /** Hours and Minutes representing the clock view. */
26975
+ this._hours = [];
26976
+ this._minutes = [];
26977
+ /** Whether the clock is in hour view. */
26978
+ this._hourView = true;
26979
+ this._timeChanged = false;
26980
+ this.interval = 1;
26981
+ this.twelvehour = false;
26982
+ /** Emits when the currently selected date changes. */
26983
+ this.selectedChange = new EventEmitter();
26984
+ this.activeDateChange = new EventEmitter();
26985
+ this._userSelection = new EventEmitter();
26986
+ this.mouseMoveListener = function (event) { return _this._handleMousemove(event); };
26987
+ this.mouseUpListener = function () { return _this._handleMouseup(); };
26988
+ }
26989
+ Object.defineProperty(GIPIDatetimepickerClockComponent.prototype, "activeDate", {
26990
+ get: function () {
26991
+ return this._activeDate;
26992
+ },
26993
+ set: function (value) {
26994
+ var oldActiveDate = this._activeDate;
26995
+ this._activeDate = this._adapter.clampDate(value, this.minDate, this.maxDate);
26996
+ if (!this._adapter.sameMinute(oldActiveDate, this._activeDate)) {
26997
+ this._init();
26998
+ }
26999
+ },
27000
+ enumerable: false,
27001
+ configurable: true
27002
+ });
27003
+ Object.defineProperty(GIPIDatetimepickerClockComponent.prototype, "selected", {
27004
+ get: function () {
27005
+ return this._selected;
27006
+ },
27007
+ set: function (value) {
27008
+ this._selected = this._adapter.getValidDateOrNull(this._adapter.deserialize(value));
27009
+ if (this._selected) {
27010
+ this.activeDate = this._selected;
27011
+ }
27012
+ },
27013
+ enumerable: false,
27014
+ configurable: true
27015
+ });
27016
+ Object.defineProperty(GIPIDatetimepickerClockComponent.prototype, "minDate", {
27017
+ get: function () {
27018
+ return this._minDate;
27019
+ },
27020
+ set: function (value) {
27021
+ this._minDate = this._adapter.getValidDateOrNull(this._adapter.deserialize(value));
27022
+ },
27023
+ enumerable: false,
27024
+ configurable: true
27025
+ });
27026
+ Object.defineProperty(GIPIDatetimepickerClockComponent.prototype, "maxDate", {
27027
+ get: function () {
27028
+ return this._maxDate;
27029
+ },
27030
+ set: function (value) {
27031
+ this._maxDate = this._adapter.getValidDateOrNull(this._adapter.deserialize(value));
27032
+ },
27033
+ enumerable: false,
27034
+ configurable: true
27035
+ });
27036
+ Object.defineProperty(GIPIDatetimepickerClockComponent.prototype, "startView", {
27037
+ /** Whether the clock should be started in hour or minute view. */
27038
+ set: function (value) {
27039
+ this._hourView = value != 'minute';
27040
+ },
27041
+ enumerable: false,
27042
+ configurable: true
27043
+ });
27044
+ Object.defineProperty(GIPIDatetimepickerClockComponent.prototype, "_hand", {
27045
+ get: function () {
27046
+ var hour = this._adapter.getHour(this.activeDate);
27047
+ if (!!this.twelvehour) {
27048
+ if (hour === 0) {
27049
+ hour = 24;
27050
+ }
27051
+ this._selectedHour = hour > 12 ? hour - 12 : hour;
27052
+ }
27053
+ else {
27054
+ this._selectedHour = hour;
27055
+ }
27056
+ this._selectedMinute = this._adapter.getMinute(this.activeDate);
27057
+ var deg = 0;
27058
+ var radius = CLOCK_OUTER_RADIUS;
27059
+ if (this._hourView) {
27060
+ var outer = this._selectedHour > 0 && this._selectedHour < 13;
27061
+ radius = outer ? CLOCK_OUTER_RADIUS : CLOCK_INNER_RADIUS;
27062
+ if (this.twelvehour) {
27063
+ radius = CLOCK_OUTER_RADIUS;
27064
+ }
27065
+ deg = Math.round(this._selectedHour * (360 / (24 / 2)));
27066
+ }
27067
+ else {
27068
+ deg = Math.round(this._selectedMinute * (360 / 60));
27069
+ }
27070
+ return {
27071
+ transform: "rotate(" + deg + "deg)",
27072
+ height: radius + "%",
27073
+ 'margin-top': 50 - radius + "%",
27074
+ };
27075
+ },
27076
+ enumerable: false,
27077
+ configurable: true
27078
+ });
27079
+ GIPIDatetimepickerClockComponent.prototype.ngAfterContentInit = function () {
27080
+ this.activeDate = this._activeDate || this._adapter.today();
27081
+ this._init();
27082
+ };
27083
+ /** Handles mousedown events on the clock body. */
27084
+ GIPIDatetimepickerClockComponent.prototype._handleMousedown = function (event) {
27085
+ this._timeChanged = false;
27086
+ this.setTime(event);
27087
+ document.addEventListener('mousemove', this.mouseMoveListener);
27088
+ document.addEventListener('touchmove', this.mouseMoveListener);
27089
+ document.addEventListener('mouseup', this.mouseUpListener);
27090
+ document.addEventListener('touchend', this.mouseUpListener);
27091
+ };
27092
+ GIPIDatetimepickerClockComponent.prototype._handleMousemove = function (event) {
27093
+ event.preventDefault();
27094
+ this.setTime(event);
27095
+ };
27096
+ GIPIDatetimepickerClockComponent.prototype._handleMouseup = function () {
27097
+ document.removeEventListener('mousemove', this.mouseMoveListener);
27098
+ document.removeEventListener('touchmove', this.mouseMoveListener);
27099
+ document.removeEventListener('mouseup', this.mouseUpListener);
27100
+ document.removeEventListener('touchend', this.mouseUpListener);
27101
+ if (this._timeChanged) {
27102
+ this.selectedChange.emit(this.activeDate);
27103
+ if (!this._hourView) {
27104
+ this._userSelection.emit();
27105
+ }
27106
+ }
27107
+ };
27108
+ /** Initializes this clock view. */
27109
+ GIPIDatetimepickerClockComponent.prototype._init = function () {
27110
+ this._hours.length = 0;
27111
+ this._minutes.length = 0;
27112
+ var hourNames = this._adapter.getHourNames();
27113
+ var minuteNames = this._adapter.getMinuteNames();
27114
+ if (this.twelvehour) {
27115
+ for (var i = 1; i < hourNames.length / 2 + 1; i++) {
27116
+ var radian = (i / 6) * Math.PI;
27117
+ var radius = CLOCK_OUTER_RADIUS;
27118
+ var date = this._adapter.createDatetime(this._adapter.getYear(this.activeDate), this._adapter.getMonth(this.activeDate), this._adapter.getDate(this.activeDate), i + 1, 0);
27119
+ var enabled = (!this.minDate || this._adapter.compareDatetime(date, this.minDate) >= 0) &&
27120
+ (!this.maxDate || this._adapter.compareDatetime(date, this.maxDate) <= 0);
27121
+ this._hours.push({
27122
+ value: i,
27123
+ displayValue: i === 0 ? '00' : hourNames[i],
27124
+ enabled: enabled,
27125
+ top: CLOCK_RADIUS - Math.cos(radian) * radius - CLOCK_TICK_RADIUS,
27126
+ left: CLOCK_RADIUS + Math.sin(radian) * radius - CLOCK_TICK_RADIUS,
27127
+ });
27128
+ }
27129
+ }
27130
+ else {
27131
+ for (var i = 0; i < hourNames.length; i++) {
27132
+ var radian = (i / 6) * Math.PI;
27133
+ var outer = i > 0 && i < 13, radius = outer ? CLOCK_OUTER_RADIUS : CLOCK_INNER_RADIUS;
27134
+ var date = this._adapter.createDatetime(this._adapter.getYear(this.activeDate), this._adapter.getMonth(this.activeDate), this._adapter.getDate(this.activeDate), i, 0);
27135
+ var enabled = (!this.minDate || this._adapter.compareDatetime(date, this.minDate, false) >= 0) &&
27136
+ (!this.maxDate || this._adapter.compareDatetime(date, this.maxDate, false) <= 0) &&
27137
+ (!this.dateFilter || this.dateFilter(date, GIPIDatetimepickerFilterType.HOUR));
27138
+ this._hours.push({
27139
+ value: i,
27140
+ displayValue: i === 0 ? '00' : hourNames[i],
27141
+ enabled: enabled,
27142
+ top: CLOCK_RADIUS - Math.cos(radian) * radius - CLOCK_TICK_RADIUS,
27143
+ left: CLOCK_RADIUS + Math.sin(radian) * radius - CLOCK_TICK_RADIUS,
27144
+ fontSize: i > 0 && i < 13 ? '' : '80%',
27145
+ });
27146
+ }
27147
+ }
27148
+ for (var i = 0; i < minuteNames.length; i += 5) {
27149
+ var radian = (i / 30) * Math.PI;
27150
+ var date = this._adapter.createDatetime(this._adapter.getYear(this.activeDate), this._adapter.getMonth(this.activeDate), this._adapter.getDate(this.activeDate), this._adapter.getHour(this.activeDate), i);
27151
+ var enabled = (!this.minDate || this._adapter.compareDatetime(date, this.minDate) >= 0) &&
27152
+ (!this.maxDate || this._adapter.compareDatetime(date, this.maxDate) <= 0) &&
27153
+ (!this.dateFilter || this.dateFilter(date, GIPIDatetimepickerFilterType.MINUTE));
27154
+ this._minutes.push({
27155
+ value: i,
27156
+ displayValue: i === 0 ? '00' : minuteNames[i],
27157
+ enabled: enabled,
27158
+ top: CLOCK_RADIUS - Math.cos(radian) * CLOCK_OUTER_RADIUS - CLOCK_TICK_RADIUS,
27159
+ left: CLOCK_RADIUS + Math.sin(radian) * CLOCK_OUTER_RADIUS - CLOCK_TICK_RADIUS,
27160
+ });
27161
+ }
27162
+ };
27163
+ /**
27164
+ * Set Time
27165
+ * @param event
27166
+ */
27167
+ GIPIDatetimepickerClockComponent.prototype.setTime = function (event) {
27168
+ var _a, _b;
27169
+ var trigger = this._element.nativeElement;
27170
+ var triggerRect = trigger.getBoundingClientRect();
27171
+ var width = trigger.offsetWidth;
27172
+ var height = trigger.offsetHeight;
27173
+ var pageX = event.pageX !== undefined ? event.pageX : event.touches[0].pageX;
27174
+ var pageY = event.pageY !== undefined ? event.pageY : event.touches[0].pageY;
27175
+ var x = width / 2 - (pageX - triggerRect.left - window.pageXOffset);
27176
+ var y = height / 2 - (pageY - triggerRect.top - window.pageYOffset);
27177
+ var radian = Math.atan2(-x, y);
27178
+ var unit = Math.PI / (this._hourView ? 6 : this.interval ? 30 / this.interval : 30);
27179
+ var z = Math.sqrt(x * x + y * y);
27180
+ var outer = this._hourView && z > (width * (CLOCK_OUTER_RADIUS / 100) + width * (CLOCK_INNER_RADIUS / 100)) / 2;
27181
+ if (radian < 0) {
27182
+ radian = Math.PI * 2 + radian;
27183
+ }
27184
+ var value = Math.round(radian / unit);
27185
+ var date;
27186
+ if (this._hourView) {
27187
+ if (this.twelvehour) {
27188
+ value = value === 0 ? 12 : value;
27189
+ }
27190
+ else {
27191
+ if (value === 12) {
27192
+ value = 0;
27193
+ }
27194
+ value = outer ? value === 0 ? 12 : value : value === 0 ? 0 : value + 12;
27195
+ }
27196
+ // Don't close the hours view if an invalid hour is clicked.
27197
+ if (!((_a = this._hours.find(function (h) { return (h === null || h === void 0 ? void 0 : h['value']) === value; })) === null || _a === void 0 ? void 0 : _a['enabled'])) {
27198
+ return;
27199
+ }
27200
+ date = this._adapter.createDatetime(this._adapter.getYear(this.activeDate), this._adapter.getMonth(this.activeDate), this._adapter.getDate(this.activeDate), value, this._adapter.getMinute(this.activeDate));
27201
+ }
27202
+ else {
27203
+ if (this.interval) {
27204
+ value *= this.interval;
27205
+ }
27206
+ if (value === 60) {
27207
+ value = 0;
27208
+ }
27209
+ // Don't close the minutes view if an invalid minute is clicked.
27210
+ if (!((_b = this._minutes.find(function (m) { return (m === null || m === void 0 ? void 0 : m['value']) === value; })) === null || _b === void 0 ? void 0 : _b['enabled'])) {
27211
+ return;
27212
+ }
27213
+ date = this._adapter.createDatetime(this._adapter.getYear(this.activeDate), this._adapter.getMonth(this.activeDate), this._adapter.getDate(this.activeDate), this._adapter.getHour(this.activeDate), value);
27214
+ }
27215
+ this._timeChanged = true;
27216
+ this.activeDate = date;
27217
+ this.activeDateChange.emit(this.activeDate);
27218
+ };
27219
+ GIPIDatetimepickerClockComponent.ctorParameters = function () { return [
27220
+ { type: ElementRef },
27221
+ { type: GIPIDatetimeAdapter }
27222
+ ]; };
27223
+ __decorate([
27224
+ Input(),
27225
+ __metadata("design:type", Function)
27226
+ ], GIPIDatetimepickerClockComponent.prototype, "dateFilter", void 0);
27227
+ __decorate([
27228
+ Input(),
27229
+ __metadata("design:type", Number)
27230
+ ], GIPIDatetimepickerClockComponent.prototype, "interval", void 0);
27231
+ __decorate([
27232
+ Input(),
27233
+ __metadata("design:type", Boolean)
27234
+ ], GIPIDatetimepickerClockComponent.prototype, "twelvehour", void 0);
27235
+ __decorate([
27236
+ Input(),
27237
+ __metadata("design:type", Object),
27238
+ __metadata("design:paramtypes", [Object])
27239
+ ], GIPIDatetimepickerClockComponent.prototype, "activeDate", null);
27240
+ __decorate([
27241
+ Input(),
27242
+ __metadata("design:type", Object),
27243
+ __metadata("design:paramtypes", [Object])
27244
+ ], GIPIDatetimepickerClockComponent.prototype, "selected", null);
27245
+ __decorate([
27246
+ Input(),
27247
+ __metadata("design:type", Object),
27248
+ __metadata("design:paramtypes", [Object])
27249
+ ], GIPIDatetimepickerClockComponent.prototype, "minDate", null);
27250
+ __decorate([
27251
+ Input(),
27252
+ __metadata("design:type", Object),
27253
+ __metadata("design:paramtypes", [Object])
27254
+ ], GIPIDatetimepickerClockComponent.prototype, "maxDate", null);
27255
+ __decorate([
27256
+ Input(),
27257
+ __metadata("design:type", String),
27258
+ __metadata("design:paramtypes", [String])
27259
+ ], GIPIDatetimepickerClockComponent.prototype, "startView", null);
27260
+ __decorate([
27261
+ Output(),
27262
+ __metadata("design:type", Object)
27263
+ ], GIPIDatetimepickerClockComponent.prototype, "selectedChange", void 0);
27264
+ __decorate([
27265
+ Output(),
27266
+ __metadata("design:type", Object)
27267
+ ], GIPIDatetimepickerClockComponent.prototype, "activeDateChange", void 0);
27268
+ __decorate([
27269
+ Output(),
27270
+ __metadata("design:type", Object)
27271
+ ], GIPIDatetimepickerClockComponent.prototype, "_userSelection", void 0);
27272
+ GIPIDatetimepickerClockComponent = __decorate([
27273
+ Component({
27274
+ selector: 'gipi-mat-datetime-picker-clock',
27275
+ template: "<div class=\"gipi-mat-datetime-picker-clock\">\n <div class=\"gipi-mat-datetime-picker-clock-center\"></div>\n <div [ngStyle]=\"_hand\"\n class=\"gipi-mat-datetime-picker-clock-hand\"></div>\n <div [class.active]=\"_hourView\"\n class=\"gipi-mat-datetime-picker-clock-hours\">\n <div *ngFor=\"let item of _hours\"\n [class.gipi-mat-datetime-picker-clock-cell-disabled]=\"!item.enabled\"\n [class.gipi-mat-datetime-picker-clock-cell-selected]=\"_selectedHour === item.value\"\n [style.fontSize]=\"item.fontSize\"\n [style.left]=\"item.left + '%'\"\n [style.top]=\"item.top + '%'\"\n class=\"gipi-mat-datetime-picker-clock-cell\">\n {{ item.displayValue }}\n </div>\n </div>\n <div [class.active]=\"!_hourView\"\n class=\"gipi-mat-datetime-picker-clock-minutes\">\n <div *ngFor=\"let item of _minutes\"\n [class.gipi-mat-datetime-picker-clock-cell-disabled]=\"!item.enabled\"\n [class.gipi-mat-datetime-picker-clock-cell-selected]=\"_selectedMinute === item.value\"\n [style.left]=\"item.left + '%'\"\n [style.top]=\"item.top + '%'\"\n class=\"gipi-mat-datetime-picker-clock-cell\">\n {{ item.displayValue }}\n </div>\n </div>\n</div>",
27276
+ host: {
27277
+ role: 'clock',
27278
+ '(mousedown)': '_handleMousedown($event)',
27279
+ },
27280
+ styles: [":host{position:relative;display:block;min-width:224px;margin:8px;font-size:14px;box-sizing:border-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.gipi-mat-datetime-picker-clock{position:relative;width:100%;height:0;padding-top:100%;background-color:#e0e0e0;border-radius:50%}.gipi-mat-datetime-picker-clock-center{position:absolute;top:50%;left:50%;width:2%;height:2%;margin:-1%;border-radius:50%}.gipi-mat-datetime-picker-clock-hand{position:absolute;top:0;right:0;bottom:0;left:0;width:1px;margin:0 auto;transform-origin:bottom}.gipi-mat-datetime-picker-clock-hand::before{content:'';position:absolute;top:-4px;left:-4px;width:8px;height:8px;border-radius:50%}.gipi-mat-datetime-picker-clock-hours,.gipi-mat-datetime-picker-clock-minutes{position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;visibility:hidden;transition:350ms;transform:scale(1.2)}.gipi-mat-datetime-picker-clock-hours.active,.gipi-mat-datetime-picker-clock-minutes.active{opacity:1;visibility:visible;transform:scale(1)}.gipi-mat-datetime-picker-clock-minutes{transform:scale(.8)}.gipi-mat-datetime-picker-clock-cell{position:absolute;display:flex;width:14.1666%;height:14.1666%;color:rgba(0,0,0,.87);justify-content:center;box-sizing:border-box;border-radius:50%;align-items:center;cursor:pointer}.gipi-mat-datetime-picker-clock-cell:not(.gipi-mat-datetime-picker-clock-cell-selected):not(.gipi-mat-datetime-picker-clock-cell-disabled):hover{background-color:rgba(0,0,0,.1)}.gipi-mat-datetime-picker-clock-cell.gipi-mat-datetime-picker-clock-cell-disabled{color:rgba(0,0,0,.38);pointer-events:none}.gipi-mat-datetime-picker-clock-cell.gipi-mat-datetime-picker-clock-cell-selected{color:#fff}"]
27281
+ }),
27282
+ __metadata("design:paramtypes", [ElementRef,
27283
+ GIPIDatetimeAdapter])
27284
+ ], GIPIDatetimepickerClockComponent);
27285
+ return GIPIDatetimepickerClockComponent;
27286
+ }());
27287
+
27288
+ var GIPI_DATETIMEPICKER_VALUE_ACCESSOR = {
27289
+ provide: NG_VALUE_ACCESSOR,
27290
+ useExisting: forwardRef(function () { return GIPIDatetimepickerInputDirective; }),
27291
+ multi: true,
27292
+ };
27293
+ var GIPI_DATETIMEPICKER_VALIDATORS = {
27294
+ provide: NG_VALIDATORS,
27295
+ useExisting: forwardRef(function () { return GIPIDatetimepickerInputDirective; }),
27296
+ multi: true,
27297
+ };
27298
+ /**
27299
+ * An event used for datepicker input and change events. We don't always have access to a native
27300
+ * input or change event because the event may have been triggered by the user clicking on the
27301
+ * calendar popup. For consistency, we always use MatDatepickerInputEvent instead.
27302
+ */
27303
+ var GIPIDatetimepickerInputEvent = /** @class */ (function () {
27304
+ function GIPIDatetimepickerInputEvent(target, targetElement) {
27305
+ this.target = target;
27306
+ this.targetElement = targetElement;
27307
+ this.value = this.target.value;
27308
+ }
27309
+ return GIPIDatetimepickerInputEvent;
27310
+ }());
27311
+ /** Directive used to connect an input to a MatDatepicker. */
27312
+ var GIPIDatetimepickerInputDirective = /** @class */ (function () {
27313
+ function GIPIDatetimepickerInputDirective(_elementRef, _dateAdapter, _dateFormats, _formField) {
27314
+ var _this = this;
27315
+ this._elementRef = _elementRef;
27316
+ this._dateAdapter = _dateAdapter;
27317
+ this._dateFormats = _dateFormats;
27318
+ this._formField = _formField;
27319
+ /** Emits when the value changes (either due to user input or programmatic change). */
27320
+ this._valueChange = new EventEmitter();
27321
+ /** Emits when the disabled state has changed */
27322
+ this._disabledChange = new EventEmitter();
27323
+ this._datepickerSubscription = Subscription.EMPTY;
27324
+ this._localeSubscription = Subscription.EMPTY;
27325
+ /** Whether the last value set on the input was valid. */
27326
+ this._lastValueValid = false;
27327
+ /** Emits when a `change` event is fired on this `<input>`. */
27328
+ this.dateChange = new EventEmitter();
27329
+ /** Emits when an `input` event is fired on this `<input>`. */
27330
+ this.dateInput = new EventEmitter();
27331
+ this._onTouched = function () { };
27332
+ this._cvaOnChange = function () { };
27333
+ this._validatorOnChange = function () { };
27334
+ /** The form control validator for whether the input parses. */
27335
+ this._parseValidator = function () {
27336
+ return _this._lastValueValid
27337
+ ? null
27338
+ : { matDatepickerParse: { text: _this._elementRef.nativeElement.value } };
27339
+ };
27340
+ /** The form control validator for the min date. */
27341
+ this._minValidator = function (control) {
27342
+ var controlValue = _this._dateAdapter.getValidDateOrNull(_this._dateAdapter.deserialize(control.value));
27343
+ return !_this.min ||
27344
+ !controlValue ||
27345
+ _this._dateAdapter.compareDatetime(_this.min, controlValue) <= 0 ? null : { matDatepickerMin: { min: _this.min, actual: controlValue } };
27346
+ };
27347
+ /** The form control validator for the max date. */
27348
+ this._maxValidator = function (control) {
27349
+ var controlValue = _this._dateAdapter.getValidDateOrNull(_this._dateAdapter.deserialize(control.value));
27350
+ return !_this.max ||
27351
+ !controlValue ||
27352
+ _this._dateAdapter.compareDatetime(_this.max, controlValue) >= 0 ? null : { matDatepickerMax: { max: _this.max, actual: controlValue } };
27353
+ };
27354
+ /** The form control validator for the date filter. */
27355
+ this._filterValidator = function (control) {
27356
+ var controlValue = _this._dateAdapter.getValidDateOrNull(_this._dateAdapter.deserialize(control.value));
27357
+ return !_this._dateFilter ||
27358
+ !controlValue ||
27359
+ _this._dateFilter(controlValue, GIPIDatetimepickerFilterType.DATE)
27360
+ ? null
27361
+ : { matDatepickerFilter: true };
27362
+ };
27363
+ /** The combined form control validator for this input. */
27364
+ this._validator = Validators.compose([
27365
+ this._parseValidator,
27366
+ this._minValidator,
27367
+ this._maxValidator,
27368
+ this._filterValidator,
27369
+ ]);
27370
+ if (!this._dateAdapter) {
27371
+ throw createMissingDateImplError$1('GIPIDatetimeAdapter');
27372
+ }
27373
+ if (!this._dateFormats) {
27374
+ throw createMissingDateImplError$1('GIPI_DATETIME_FORMATS');
27375
+ }
27376
+ // Update the displayed date when the locale changes.
27377
+ this._localeSubscription = _dateAdapter.localeChanges.subscribe(function () { return _this.value = _this.value; });
27378
+ }
27379
+ GIPIDatetimepickerInputDirective_1 = GIPIDatetimepickerInputDirective;
27380
+ Object.defineProperty(GIPIDatetimepickerInputDirective.prototype, "gipiMatDatetimePicker", {
27381
+ /** The datepicker that this input is associated with. */
27382
+ set: function (value) {
27383
+ this.registerDatepicker(value);
27384
+ },
27385
+ enumerable: false,
27386
+ configurable: true
27387
+ });
27388
+ Object.defineProperty(GIPIDatetimepickerInputDirective.prototype, "matDatepickerFilter", {
27389
+ set: function (filter) {
27390
+ this._dateFilter = filter;
27391
+ this._validatorOnChange();
27392
+ },
27393
+ enumerable: false,
27394
+ configurable: true
27395
+ });
27396
+ Object.defineProperty(GIPIDatetimepickerInputDirective.prototype, "value", {
27397
+ get: function () {
27398
+ return this._value;
27399
+ },
27400
+ set: function (value) {
27401
+ var _this = this;
27402
+ value = this._dateAdapter.deserialize(value);
27403
+ this._lastValueValid = !value || this._dateAdapter.isValid(value);
27404
+ value = this._dateAdapter.getValidDateOrNull(value);
27405
+ var oldDate = this.value;
27406
+ this._value = value;
27407
+ this._formatValue(value);
27408
+ // use timeout to ensure the datetimepicker is instantiated and we get the correct format
27409
+ setTimeout(function () {
27410
+ if (!_this._dateAdapter.sameDatetime(oldDate, value)) {
27411
+ _this._valueChange.emit(value);
27412
+ }
27413
+ });
27414
+ },
27415
+ enumerable: false,
27416
+ configurable: true
27417
+ });
27418
+ Object.defineProperty(GIPIDatetimepickerInputDirective.prototype, "min", {
27419
+ get: function () {
27420
+ return this._min;
27421
+ },
27422
+ set: function (value) {
27423
+ this._min = this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(value));
27424
+ this._validatorOnChange();
27425
+ },
27426
+ enumerable: false,
27427
+ configurable: true
27428
+ });
27429
+ Object.defineProperty(GIPIDatetimepickerInputDirective.prototype, "max", {
27430
+ get: function () {
27431
+ return this._max;
27432
+ },
27433
+ set: function (value) {
27434
+ this._max = this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(value));
27435
+ this._validatorOnChange();
27436
+ },
27437
+ enumerable: false,
27438
+ configurable: true
27439
+ });
27440
+ Object.defineProperty(GIPIDatetimepickerInputDirective.prototype, "disabled", {
27441
+ get: function () {
27442
+ return !!this._disabled;
27443
+ },
27444
+ set: function (value) {
27445
+ var newValue = coerceBooleanProperty(value);
27446
+ if (this._disabled !== newValue) {
27447
+ this._disabled = newValue;
27448
+ this._disabledChange.emit(newValue);
27449
+ }
27450
+ },
27451
+ enumerable: false,
27452
+ configurable: true
27453
+ });
27454
+ GIPIDatetimepickerInputDirective.prototype.ngAfterContentInit = function () {
27455
+ var _this = this;
27456
+ if (this._datepicker) {
27457
+ this._datepickerSubscription = this._datepicker.selectedChanged.subscribe(function (selected) {
27458
+ _this.value = selected;
27459
+ _this._cvaOnChange(selected);
27460
+ _this._onTouched();
27461
+ _this.dateInput.emit(new GIPIDatetimepickerInputEvent(_this, _this._elementRef.nativeElement));
27462
+ _this.dateChange.emit(new GIPIDatetimepickerInputEvent(_this, _this._elementRef.nativeElement));
27463
+ });
27464
+ }
27465
+ };
27466
+ GIPIDatetimepickerInputDirective.prototype.ngOnDestroy = function () {
27467
+ this._datepickerSubscription.unsubscribe();
27468
+ this._localeSubscription.unsubscribe();
27469
+ this._valueChange.complete();
27470
+ this._disabledChange.complete();
27471
+ };
27472
+ GIPIDatetimepickerInputDirective.prototype.registerOnValidatorChange = function (fn) {
27473
+ this._validatorOnChange = fn;
27474
+ };
27475
+ GIPIDatetimepickerInputDirective.prototype.validate = function (c) {
27476
+ return this._validator ? this._validator(c) : null;
27477
+ };
27478
+ /**
27479
+ * Gets the element that the datepicker popup should be connected to.
27480
+ * @return The element to connect the popup to.
27481
+ */
27482
+ GIPIDatetimepickerInputDirective.prototype.getConnectedOverlayOrigin = function () {
27483
+ return this._formField
27484
+ ? this._formField.getConnectedOverlayOrigin()
27485
+ : this._elementRef;
27486
+ };
27487
+ // Implemented as part of ControlValueAccessor
27488
+ GIPIDatetimepickerInputDirective.prototype.writeValue = function (value) {
27489
+ this.value = value;
27490
+ };
27491
+ // Implemented as part of ControlValueAccessor
27492
+ GIPIDatetimepickerInputDirective.prototype.registerOnChange = function (fn) {
27493
+ this._cvaOnChange = fn;
27494
+ };
27495
+ // Implemented as part of ControlValueAccessor
27496
+ GIPIDatetimepickerInputDirective.prototype.registerOnTouched = function (fn) {
27497
+ this._onTouched = fn;
27498
+ };
27499
+ // Implemented as part of ControlValueAccessor
27500
+ GIPIDatetimepickerInputDirective.prototype.setDisabledState = function (disabled) {
27501
+ this.disabled = disabled;
27502
+ };
27503
+ GIPIDatetimepickerInputDirective.prototype._onKeydown = function (event) {
27504
+ if (event.altKey && event.keyCode === DOWN_ARROW) {
27505
+ this._datepicker.open();
27506
+ event.preventDefault();
27507
+ }
27508
+ };
27509
+ GIPIDatetimepickerInputDirective.prototype._onInput = function (value) {
27510
+ var date = this._dateAdapter.parse(value, this.getParseFormat());
27511
+ this._lastValueValid = !date || this._dateAdapter.isValid(date);
27512
+ date = this._dateAdapter.getValidDateOrNull(date);
27513
+ this._value = date;
27514
+ this._cvaOnChange(date);
27515
+ this._valueChange.emit(date);
27516
+ this.dateInput.emit(new GIPIDatetimepickerInputEvent(this, this._elementRef.nativeElement));
27517
+ };
27518
+ GIPIDatetimepickerInputDirective.prototype._onChange = function () {
27519
+ this.dateChange.emit(new GIPIDatetimepickerInputEvent(this, this._elementRef.nativeElement));
27520
+ };
27521
+ /** Handles blur events on the input. */
27522
+ GIPIDatetimepickerInputDirective.prototype._onBlur = function () {
27523
+ // Reformat the input only if we have a valid value.
27524
+ if (this.value) {
27525
+ this._formatValue(this.value);
27526
+ }
27527
+ this._onTouched();
27528
+ };
27529
+ GIPIDatetimepickerInputDirective.prototype.registerDatepicker = function (value) {
27530
+ if (value) {
27531
+ this._datepicker = value;
27532
+ this._datepicker._registerInput(this);
27533
+ }
27534
+ };
27535
+ GIPIDatetimepickerInputDirective.prototype.getDisplayFormat = function () {
27536
+ switch (this._datepicker.type) {
27537
+ case 'date': return this._dateFormats.display.dateInput;
27538
+ case 'datetime': return this._dateFormats.display.datetimeInput;
27539
+ case 'time': return this._dateFormats.display.timeInput;
27540
+ case 'month': return this._dateFormats.display.monthInput;
27541
+ }
27542
+ };
27543
+ GIPIDatetimepickerInputDirective.prototype.getParseFormat = function () {
27544
+ var parseFormat;
27545
+ switch (this._datepicker.type) {
27546
+ case 'date':
27547
+ parseFormat = this._dateFormats.parse.dateInput;
27548
+ break;
27549
+ case 'datetime':
27550
+ parseFormat = this._dateFormats.parse.datetimeInput;
27551
+ break;
27552
+ case 'time':
27553
+ parseFormat = this._dateFormats.parse.timeInput;
27554
+ break;
27555
+ case 'month':
27556
+ parseFormat = this._dateFormats.parse.monthInput;
27557
+ break;
27558
+ }
27559
+ if (!parseFormat) {
27560
+ parseFormat = this._dateFormats.parse.dateInput;
27561
+ }
27562
+ return parseFormat;
27563
+ };
27564
+ /** Formats a value and sets it on the input element. */
27565
+ GIPIDatetimepickerInputDirective.prototype._formatValue = function (value) {
27566
+ this._elementRef.nativeElement.value = value
27567
+ ? this._dateAdapter.format(value, this.getDisplayFormat())
27568
+ : '';
27569
+ };
27570
+ var GIPIDatetimepickerInputDirective_1;
27571
+ GIPIDatetimepickerInputDirective.ctorParameters = function () { return [
27572
+ { type: ElementRef },
27573
+ { type: GIPIDatetimeAdapter, decorators: [{ type: Optional }] },
27574
+ { type: undefined, decorators: [{ type: Optional }, { type: Inject, args: [GIPI_DATETIME_FORMATS,] }] },
27575
+ { type: MatFormField$1, decorators: [{ type: Optional }] }
27576
+ ]; };
27577
+ __decorate([
27578
+ Input(),
27579
+ __metadata("design:type", GIPIDatetimepickerComponent),
27580
+ __metadata("design:paramtypes", [GIPIDatetimepickerComponent])
27581
+ ], GIPIDatetimepickerInputDirective.prototype, "gipiMatDatetimePicker", null);
27582
+ __decorate([
27583
+ Input(),
27584
+ __metadata("design:type", Function),
27585
+ __metadata("design:paramtypes", [Function])
27586
+ ], GIPIDatetimepickerInputDirective.prototype, "matDatepickerFilter", null);
27587
+ __decorate([
27588
+ Input(),
27589
+ __metadata("design:type", Object),
27590
+ __metadata("design:paramtypes", [Object])
27591
+ ], GIPIDatetimepickerInputDirective.prototype, "value", null);
27592
+ __decorate([
27593
+ Input(),
27594
+ __metadata("design:type", Object),
27595
+ __metadata("design:paramtypes", [Object])
27596
+ ], GIPIDatetimepickerInputDirective.prototype, "min", null);
27597
+ __decorate([
27598
+ Input(),
27599
+ __metadata("design:type", Object),
27600
+ __metadata("design:paramtypes", [Object])
27601
+ ], GIPIDatetimepickerInputDirective.prototype, "max", null);
27602
+ __decorate([
27603
+ Input(),
27604
+ __metadata("design:type", Object),
27605
+ __metadata("design:paramtypes", [Object])
27606
+ ], GIPIDatetimepickerInputDirective.prototype, "disabled", null);
27607
+ __decorate([
27608
+ Output(),
27609
+ __metadata("design:type", Object)
27610
+ ], GIPIDatetimepickerInputDirective.prototype, "dateChange", void 0);
27611
+ __decorate([
27612
+ Output(),
27613
+ __metadata("design:type", Object)
27614
+ ], GIPIDatetimepickerInputDirective.prototype, "dateInput", void 0);
27615
+ GIPIDatetimepickerInputDirective = GIPIDatetimepickerInputDirective_1 = __decorate([
27616
+ Directive({
27617
+ selector: 'input[gipiMatDatetimePicker]',
27618
+ exportAs: 'matDatepickerInput',
27619
+ providers: [
27620
+ GIPI_DATETIMEPICKER_VALUE_ACCESSOR,
27621
+ GIPI_DATETIMEPICKER_VALIDATORS,
27622
+ {
27623
+ provide: MAT_INPUT_VALUE_ACCESSOR,
27624
+ useExisting: GIPIDatetimepickerInputDirective_1,
27625
+ },
27626
+ ],
27627
+ host: {
27628
+ '[attr.aria-haspopup]': 'true',
27629
+ '[attr.aria-owns]': '(_datepicker?.opened && _datepicker.id) || null',
27630
+ '[attr.min]': 'min ? _dateAdapter.toIso8601(min) : null',
27631
+ '[attr.max]': 'max ? _dateAdapter.toIso8601(max) : null',
27632
+ '[disabled]': 'disabled',
27633
+ '(focus)': '_datepicker._handleFocus()',
27634
+ '(input)': '_onInput($event.target.value)',
27635
+ '(change)': '_onChange()',
27636
+ '(blur)': '_onBlur()',
27637
+ '(keydown)': '_onKeydown($event)',
27638
+ },
27639
+ }),
27640
+ __param(1, Optional()),
27641
+ __param(2, Optional()),
27642
+ __param(2, Inject(GIPI_DATETIME_FORMATS)),
27643
+ __param(3, Optional()),
27644
+ __metadata("design:paramtypes", [ElementRef,
27645
+ GIPIDatetimeAdapter, Object, MatFormField$1])
27646
+ ], GIPIDatetimepickerInputDirective);
27647
+ return GIPIDatetimepickerInputDirective;
27648
+ }());
27649
+
27650
+ var DAYS_PER_WEEK$1 = 7;
27651
+ /**
27652
+ * An internal component used to display a single month in the datepicker.
27653
+ * @docs-private
27654
+ */
27655
+ var GIPIDatetimepickerMonthViewComponent = /** @class */ (function () {
27656
+ function GIPIDatetimepickerMonthViewComponent(_adapter, _dateFormats) {
27657
+ this._adapter = _adapter;
27658
+ this._dateFormats = _dateFormats;
27659
+ this.type = 'date';
27660
+ /** Emits when a new date is selected. */
27661
+ this.selectedChange = new EventEmitter();
27662
+ this._userSelection = new EventEmitter();
27663
+ if (!this._adapter) {
27664
+ throw createMissingDateImplError$1('GIPIDatetimeAdapter');
27665
+ }
27666
+ if (!this._dateFormats) {
27667
+ throw createMissingDateImplError$1('GIPI_DATETIME_FORMATS');
27668
+ }
27669
+ var firstDayOfWeek = this._adapter.getFirstDayOfWeek();
27670
+ var narrowWeekdays = this._adapter.getDayOfWeekNames('narrow');
27671
+ var longWeekdays = this._adapter.getDayOfWeekNames('long');
27672
+ // Rotate the labels for days of the week based on the configured first day of the week.
27673
+ var weekdays = longWeekdays.map(function (long, i) { return { long: long, narrow: narrowWeekdays[i] }; });
27674
+ this._weekdays = weekdays
27675
+ .slice(firstDayOfWeek)
27676
+ .concat(weekdays.slice(0, firstDayOfWeek));
27677
+ this._activeDate = this._adapter.today();
27678
+ }
27679
+ Object.defineProperty(GIPIDatetimepickerMonthViewComponent.prototype, "activeDate", {
27680
+ get: function () {
27681
+ return this._activeDate;
27682
+ },
27683
+ set: function (value) {
27684
+ var oldActiveDate = this._activeDate;
27685
+ this._activeDate = value || this._adapter.today();
27686
+ if (oldActiveDate && this._activeDate && !this._adapter.sameMonthAndYear(oldActiveDate, this._activeDate)) {
27687
+ this._init();
27688
+ if (this._adapter.isInNextMonth(oldActiveDate, this._activeDate)) {
27689
+ this.calendarState('right');
27690
+ }
27691
+ else {
27692
+ this.calendarState('left');
27693
+ }
27694
+ }
27695
+ },
27696
+ enumerable: false,
27697
+ configurable: true
27698
+ });
27699
+ Object.defineProperty(GIPIDatetimepickerMonthViewComponent.prototype, "selected", {
27700
+ get: function () {
27701
+ return this._selected;
27702
+ },
27703
+ set: function (value) {
27704
+ this._selected = value;
27705
+ this._selectedDate = this._getDateInCurrentMonth(this.selected);
27706
+ },
27707
+ enumerable: false,
27708
+ configurable: true
27709
+ });
27710
+ GIPIDatetimepickerMonthViewComponent.prototype.ngAfterContentInit = function () {
27711
+ this._init();
27712
+ };
27713
+ /** Handles when a new date is selected. */
27714
+ GIPIDatetimepickerMonthViewComponent.prototype._dateSelected = function (date) {
27715
+ this.selectedChange.emit(this._adapter.createDatetime(this._adapter.getYear(this.activeDate), this._adapter.getMonth(this.activeDate), date, this._adapter.getHour(this.activeDate), this._adapter.getMinute(this.activeDate)));
27716
+ if (this.type === 'date') {
27717
+ this._userSelection.emit();
27718
+ }
27719
+ };
27720
+ GIPIDatetimepickerMonthViewComponent.prototype._calendarStateDone = function () {
27721
+ this._calendarState = '';
27722
+ };
27723
+ /** Initializes this month view. */
27724
+ GIPIDatetimepickerMonthViewComponent.prototype._init = function () {
27725
+ this._selectedDate = this._getDateInCurrentMonth(this.selected);
27726
+ this._todayDate = this._getDateInCurrentMonth(this._adapter.today());
27727
+ var firstOfMonth = this._adapter.createDatetime(this._adapter.getYear(this.activeDate), this._adapter.getMonth(this.activeDate), 1, this._adapter.getHour(this.activeDate), this._adapter.getMinute(this.activeDate));
27728
+ this._firstWeekOffset = (DAYS_PER_WEEK$1 + this._adapter.getDayOfWeek(firstOfMonth) - this._adapter.getFirstDayOfWeek()) % DAYS_PER_WEEK$1;
27729
+ this._createWeekCells();
27730
+ };
27731
+ /** Creates MdCalendarCells for the dates in this month. */
27732
+ GIPIDatetimepickerMonthViewComponent.prototype._createWeekCells = function () {
27733
+ var daysInMonth = this._adapter.getNumDaysInMonth(this.activeDate);
27734
+ var dateNames = this._adapter.getDateNames();
27735
+ this._weeks = [[]];
27736
+ for (var i = 0, cell = this._firstWeekOffset; i < daysInMonth; i++, cell++) {
27737
+ if (cell == DAYS_PER_WEEK$1) {
27738
+ this._weeks.push([]);
27739
+ cell = 0;
27740
+ }
27741
+ var date = this._adapter.createDatetime(this._adapter.getYear(this.activeDate), this._adapter.getMonth(this.activeDate), i + 1, this._adapter.getHour(this.activeDate), this._adapter.getMinute(this.activeDate));
27742
+ var enabled = !this.dateFilter || this.dateFilter(date);
27743
+ var ariaLabel = this._adapter.format(date, this._dateFormats.display.dateA11yLabel);
27744
+ this._weeks[this._weeks.length - 1].push(new GIPIDatetimepickerCalendarCell(i + 1, dateNames[i], ariaLabel, enabled));
27745
+ }
27746
+ };
27747
+ /** Gets the date in this month that the given Date falls on. Returns null if the given Date is in another month. */
27748
+ GIPIDatetimepickerMonthViewComponent.prototype._getDateInCurrentMonth = function (date) {
27749
+ return this._adapter.sameMonthAndYear(date, this.activeDate)
27750
+ ? this._adapter.getDate(date)
27751
+ : null;
27752
+ };
27753
+ GIPIDatetimepickerMonthViewComponent.prototype.calendarState = function (direction) {
27754
+ this._calendarState = direction;
27755
+ };
27756
+ GIPIDatetimepickerMonthViewComponent.ctorParameters = function () { return [
27757
+ { type: GIPIDatetimeAdapter, decorators: [{ type: Optional }] },
27758
+ { type: undefined, decorators: [{ type: Optional }, { type: Inject, args: [GIPI_DATETIME_FORMATS,] }] }
27759
+ ]; };
27760
+ __decorate([
27761
+ Input(),
27762
+ __metadata("design:type", String)
27763
+ ], GIPIDatetimepickerMonthViewComponent.prototype, "type", void 0);
27764
+ __decorate([
27765
+ Input(),
27766
+ __metadata("design:type", Function)
27767
+ ], GIPIDatetimepickerMonthViewComponent.prototype, "dateFilter", void 0);
27768
+ __decorate([
27769
+ Input(),
27770
+ __metadata("design:type", Object),
27771
+ __metadata("design:paramtypes", [Object])
27772
+ ], GIPIDatetimepickerMonthViewComponent.prototype, "activeDate", null);
27773
+ __decorate([
27774
+ Input(),
27775
+ __metadata("design:type", Object),
27776
+ __metadata("design:paramtypes", [Object])
27777
+ ], GIPIDatetimepickerMonthViewComponent.prototype, "selected", null);
27778
+ __decorate([
27779
+ Output(),
27780
+ __metadata("design:type", Object)
27781
+ ], GIPIDatetimepickerMonthViewComponent.prototype, "selectedChange", void 0);
27782
+ __decorate([
27783
+ Output(),
27784
+ __metadata("design:type", Object)
27785
+ ], GIPIDatetimepickerMonthViewComponent.prototype, "_userSelection", void 0);
27786
+ GIPIDatetimepickerMonthViewComponent = __decorate([
27787
+ Component({
27788
+ selector: 'gipi-mat-datetime-picker-month-view',
27789
+ template: "<table class=\"gipi-mat-datetime-picker-calendar-table\">\n <thead class=\"gipi-mat-datetime-picker-calendar-table-header\">\n <tr>\n <th *ngFor=\"let day of _weekdays\"\n [attr.aria-label]=\"day.long\">\n {{ day.narrow }}\n </th>\n </tr>\n <tr>\n <th class=\"gipi-mat-datetime-picker-calendar-table-header-divider\"\n colspan=\"7\"\n aria-hidden=\"true\">\n </th>\n </tr>\n </thead>\n <tbody gipiMatDatetimePickerCalendarBody\n role=\"grid\"\n [activeCell]=\"_adapter.getDate(activeDate) - 1\"\n [rows]=\"_weeks\"\n [selectedValue]=\"_selectedDate\"\n [todayValue]=\"_todayDate\"\n [@slideCalendar]=\"_calendarState\"\n (@slideCalendar.done)=\"_calendarStateDone()\"\n (selectedValueChange)=\"_dateSelected($event)\">\n </tbody>\n</table>",
27790
+ animations: [slideCalendar],
27791
+ encapsulation: ViewEncapsulation.None,
27792
+ changeDetection: ChangeDetectionStrategy.OnPush
27793
+ }),
27794
+ __param(0, Optional()),
27795
+ __param(1, Optional()),
27796
+ __param(1, Inject(GIPI_DATETIME_FORMATS)),
27797
+ __metadata("design:paramtypes", [GIPIDatetimeAdapter, Object])
27798
+ ], GIPIDatetimepickerMonthViewComponent);
27799
+ return GIPIDatetimepickerMonthViewComponent;
27800
+ }());
27801
+
27802
+ var ɵ0$3 = function (i) { return String(i); };
27803
+ /** The default hour names to use if Intl API is not available. */
27804
+ var DEFAULT_HOUR_NAMES = range$1(24, ɵ0$3);
27805
+ var ɵ1 = function (i) { return String(i); };
27806
+ /** The default minute names to use if Intl API is not available. */
27807
+ var DEFAULT_MINUTE_NAMES = range$1(60, ɵ1);
27808
+ function range$1(length, valueFunction) {
27809
+ var valuesArray = Array(length);
27810
+ for (var i = 0; i < length; i++) {
27811
+ valuesArray[i] = valueFunction(i);
27812
+ }
27813
+ return valuesArray;
27814
+ }
27815
+ var GIPINativeDatetimeAdapter = /** @class */ (function (_super) {
27816
+ __extends(GIPINativeDatetimeAdapter, _super);
27817
+ function GIPINativeDatetimeAdapter(matDateLocale, _delegate) {
27818
+ var _this = _super.call(this, _delegate) || this;
27819
+ _this.setLocale(matDateLocale);
27820
+ return _this;
27821
+ }
27822
+ GIPINativeDatetimeAdapter.prototype.clone = function (date) {
27823
+ return this.createDatetime(this.getYear(date), this.getMonth(date), this.getDate(date), this.getHour(date), this.getMinute(date));
27824
+ };
27825
+ GIPINativeDatetimeAdapter.prototype.getHour = function (date) {
27826
+ return date.getHours();
27827
+ };
27828
+ GIPINativeDatetimeAdapter.prototype.getMinute = function (date) {
27829
+ return date.getMinutes();
27830
+ };
27831
+ GIPINativeDatetimeAdapter.prototype.isInNextMonth = function (startDate, endDate) {
27832
+ var nextMonth = this.getDateInNextMonth(startDate);
27833
+ return this.sameMonthAndYear(nextMonth, endDate);
27834
+ };
27835
+ GIPINativeDatetimeAdapter.prototype.createDatetime = function (year, month, date, hour, minute) {
27836
+ // Check for invalid month and date (except upper bound on date which we have to check after
27837
+ // creating the Date).
27838
+ if (month < 0 || month > 11) {
27839
+ throw Error("Invalid month index \"" + month + "\". Month index has to be between 0 and 11.");
27840
+ }
27841
+ if (date < 1) {
27842
+ throw Error("Invalid date \"" + date + "\". Date has to be greater than 0.");
27843
+ }
27844
+ if (hour < 0 || hour > 23) {
27845
+ throw Error("Invalid hour \"" + hour + "\". Hour has to be between 0 and 23.");
27846
+ }
27847
+ if (minute < 0 || minute > 59) {
27848
+ throw Error("Invalid minute \"" + minute + "\". Minute has to be between 0 and 59.");
27849
+ }
27850
+ var result = this._createDateWithOverflow(year, month, date, hour, minute);
27851
+ // Check that the date wasn't above the upper bound for the month, causing the month to overflow
27852
+ if (result.getMonth() !== month) {
27853
+ throw Error("Invalid date \"" + date + "\" for month with index \"" + month + "\".");
27854
+ }
27855
+ return result;
27856
+ };
27857
+ GIPINativeDatetimeAdapter.prototype.getFirstDateOfMonth = function (date) {
27858
+ var result = new Date();
27859
+ result.setFullYear(date.getFullYear(), date.getMonth(), 1);
27860
+ return result;
27861
+ };
27862
+ GIPINativeDatetimeAdapter.prototype.getHourNames = function () {
27863
+ return DEFAULT_HOUR_NAMES;
27864
+ };
27865
+ GIPINativeDatetimeAdapter.prototype.getMinuteNames = function () {
27866
+ return DEFAULT_MINUTE_NAMES;
27867
+ };
27868
+ GIPINativeDatetimeAdapter.prototype.addCalendarYears = function (date, years) {
27869
+ return this.addCalendarMonths(date, years * 12);
27870
+ };
27871
+ GIPINativeDatetimeAdapter.prototype.addCalendarMonths = function (date, months) {
27872
+ var newDate = this._createDateWithOverflow(this.getYear(date), this.getMonth(date) + months, this.getDate(date), this.getHour(date), this.getMinute(date));
27873
+ // It's possible to wind up in the wrong month if the original month has more days than the new
27874
+ // month. In this case we want to go to the last day of the desired month.
27875
+ // Note: the additional + 12 % 12 ensures we end up with a positive number, since JS % doesn't
27876
+ // guarantee this.
27877
+ if (this.getMonth(newDate) !== (((this.getMonth(date) + months) % 12) + 12) % 12) {
27878
+ newDate = this._createDateWithOverflow(this.getYear(newDate), this.getMonth(newDate), 0, this.getHour(date), this.getMinute(date));
27879
+ }
27880
+ return newDate;
27881
+ };
27882
+ GIPINativeDatetimeAdapter.prototype.addCalendarDays = function (date, days) {
27883
+ return this._createDateWithOverflow(this.getYear(date), this.getMonth(date), this.getDate(date) + days, this.getHour(date), this.getMinute(date));
27884
+ };
27885
+ GIPINativeDatetimeAdapter.prototype.addCalendarHours = function (date, hours) {
27886
+ return this._createDateWithOverflow(this.getYear(date), this.getMonth(date), this.getDate(date), this.getHour(date) + hours, this.getMinute(date));
27887
+ };
27888
+ GIPINativeDatetimeAdapter.prototype.addCalendarMinutes = function (date, minutes) {
27889
+ return this._createDateWithOverflow(this.getYear(date), this.getMonth(date), this.getDate(date), this.getHour(date), this.getMinute(date) + minutes);
27890
+ };
27891
+ GIPINativeDatetimeAdapter.prototype.toIso8601 = function (date) {
27892
+ return (_super.prototype.toIso8601.call(this, date) + 'T' + [this._2digit(date.getUTCHours()), this._2digit(date.getUTCMinutes()),].join(':'));
27893
+ };
27894
+ GIPINativeDatetimeAdapter.prototype.getDateInNextMonth = function (date) {
27895
+ return new Date(date.getFullYear(), date.getMonth() + 1, 1, date.getHours(), date.getMinutes());
27896
+ };
27897
+ /**
27898
+ * Strip out unicode LTR and RTL characters. Edge and IE insert these into formatted dates while
27899
+ * other browsers do not. We remove them to make output consistent and because they interfere with
27900
+ * date parsing.
27901
+ * @param str The string to strip direction characters from.
27902
+ * @returns The stripped string.
27903
+ */
27904
+ GIPINativeDatetimeAdapter.prototype._stripDirectionalityCharacters = function (str) {
27905
+ return str.replace(/[\u200e\u200f]/g, '');
27906
+ };
27907
+ /**
27908
+ * Pads a number to make it two digits.
27909
+ * @param n The number to pad.
27910
+ * @returns The padded number.
27911
+ */
27912
+ GIPINativeDatetimeAdapter.prototype._2digit = function (n) {
27913
+ return ('00' + n).slice(-2);
27914
+ };
27915
+ /** Creates a date but allows the month and date to overflow. */
27916
+ GIPINativeDatetimeAdapter.prototype._createDateWithOverflow = function (year, month, date, hours, minutes) {
27917
+ var result = new Date(year, month, date, hours, minutes);
27918
+ // We need to correct for the fact that JS native Date treats years in range [0, 99] as
27919
+ // abbreviations for 19xx.
27920
+ if (year >= 0 && year < 100) {
27921
+ result.setFullYear(this.getYear(result) - 1900);
27922
+ }
27923
+ return result;
27924
+ };
27925
+ GIPINativeDatetimeAdapter.ctorParameters = function () { return [
27926
+ { type: String, decorators: [{ type: Optional }, { type: Inject, args: [MAT_DATE_LOCALE$1,] }] },
27927
+ { type: DateAdapter$1 }
27928
+ ]; };
27929
+ GIPINativeDatetimeAdapter = __decorate([
27930
+ Injectable(),
27931
+ __param(0, Optional()), __param(0, Inject(MAT_DATE_LOCALE$1)),
27932
+ __metadata("design:paramtypes", [String, DateAdapter$1])
27933
+ ], GIPINativeDatetimeAdapter);
27934
+ return GIPINativeDatetimeAdapter;
27935
+ }(GIPIDatetimeAdapter));
27936
+
27937
+ var GIPI_NATIVE_DATETIME_FORMATS = {
27938
+ parse: {},
27939
+ display: {
27940
+ dateInput: { year: 'numeric', month: '2-digit', day: '2-digit' },
27941
+ monthInput: { month: 'long' },
27942
+ datetimeInput: {
27943
+ year: 'numeric',
27944
+ month: '2-digit',
27945
+ day: '2-digit',
27946
+ hour: '2-digit',
27947
+ minute: '2-digit',
27948
+ },
27949
+ timeInput: { hour: '2-digit', minute: '2-digit' },
27950
+ monthYearLabel: { year: 'numeric', month: 'short' },
27951
+ dateA11yLabel: { year: 'numeric', month: 'long', day: 'numeric' },
27952
+ monthYearA11yLabel: { year: 'numeric', month: 'long' },
27953
+ popupHeaderDateLabel: { weekday: 'short', month: 'short', day: '2-digit' },
27954
+ },
27955
+ };
27956
+
27957
+ var NativeDatetimeModule = /** @class */ (function () {
27958
+ function NativeDatetimeModule() {
27959
+ }
27960
+ NativeDatetimeModule = __decorate([
27961
+ NgModule({
27962
+ imports: [
27963
+ NativeDateModule,
27964
+ ],
27965
+ providers: [
27966
+ {
27967
+ provide: GIPIDatetimeAdapter,
27968
+ useClass: GIPINativeDatetimeAdapter,
27969
+ },
27970
+ ],
27971
+ })
27972
+ ], NativeDatetimeModule);
27973
+ return NativeDatetimeModule;
27974
+ }());
27975
+ var ɵ0$4 = GIPI_NATIVE_DATETIME_FORMATS;
27976
+ var GIPINativeDatetimeModule = /** @class */ (function () {
27977
+ function GIPINativeDatetimeModule() {
27978
+ }
27979
+ GIPINativeDatetimeModule = __decorate([
27980
+ NgModule({
27981
+ imports: [
27982
+ NativeDatetimeModule,
27983
+ MatNativeDateModule$1,
27984
+ ],
27985
+ providers: [
27986
+ {
27987
+ provide: GIPI_DATETIME_FORMATS,
27988
+ useValue: ɵ0$4,
27989
+ },
27990
+ ],
27991
+ })
27992
+ ], GIPINativeDatetimeModule);
27993
+ return GIPINativeDatetimeModule;
27994
+ }());
27995
+
27996
+ /**
27997
+ * An internal component used to display a single year in the datepicker.
27998
+ * @docs-private
27999
+ */
28000
+ var GIPIDatetimepickerYearViewComponent = /** @class */ (function () {
28001
+ function GIPIDatetimepickerYearViewComponent(_adapter, _dateFormats) {
28002
+ this._adapter = _adapter;
28003
+ this._dateFormats = _dateFormats;
28004
+ this.type = 'date';
28005
+ /** Emits when a new month is selected. */
28006
+ this.selectedChange = new EventEmitter();
28007
+ this._userSelection = new EventEmitter();
28008
+ if (!this._adapter) {
28009
+ throw createMissingDateImplError$1('DatetimeAdapter');
28010
+ }
28011
+ if (!this._dateFormats) {
28012
+ throw createMissingDateImplError$1('GIPI_DATETIME_FORMATS');
28013
+ }
28014
+ this._activeDate = this._adapter.today();
28015
+ }
28016
+ Object.defineProperty(GIPIDatetimepickerYearViewComponent.prototype, "activeDate", {
28017
+ get: function () {
28018
+ return this._activeDate;
28019
+ },
28020
+ set: function (value) {
28021
+ var oldActiveDate = this._activeDate;
28022
+ this._activeDate = value || this._adapter.today();
28023
+ if (oldActiveDate && this._activeDate && !this._adapter.sameYear(oldActiveDate, this._activeDate)) {
28024
+ this._init();
28025
+ }
28026
+ },
28027
+ enumerable: false,
28028
+ configurable: true
28029
+ });
28030
+ Object.defineProperty(GIPIDatetimepickerYearViewComponent.prototype, "selected", {
28031
+ get: function () {
28032
+ return this._selected;
28033
+ },
28034
+ set: function (value) {
28035
+ this._selected = value;
28036
+ this._selectedMonth = this._getMonthInCurrentYear(this.selected);
28037
+ },
28038
+ enumerable: false,
28039
+ configurable: true
28040
+ });
28041
+ GIPIDatetimepickerYearViewComponent.prototype.ngAfterContentInit = function () {
28042
+ this._init();
28043
+ };
28044
+ /** Handles when a new month is selected. */
28045
+ GIPIDatetimepickerYearViewComponent.prototype._monthSelected = function (month) {
28046
+ var normalizedDate = this._adapter.createDatetime(this._adapter.getYear(this.activeDate), month, 1, 0, 0);
28047
+ this.selectedChange.emit(this._adapter.createDatetime(this._adapter.getYear(this.activeDate), month, Math.min(this._adapter.getDate(this.activeDate), this._adapter.getNumDaysInMonth(normalizedDate)), this._adapter.getHour(this.activeDate), this._adapter.getMinute(this.activeDate)));
28048
+ if (this.type === 'month') {
28049
+ this._userSelection.emit();
28050
+ }
28051
+ };
28052
+ GIPIDatetimepickerYearViewComponent.prototype._calendarStateDone = function () {
28053
+ this._calendarState = '';
28054
+ };
28055
+ /** Initializes this month view. */
28056
+ GIPIDatetimepickerYearViewComponent.prototype._init = function () {
28057
+ var _this = this;
28058
+ this._selectedMonth = this._getMonthInCurrentYear(this.selected);
28059
+ this._todayMonth = this._getMonthInCurrentYear(this._adapter.today());
28060
+ this._yearLabel = this._adapter.getYearName(this.activeDate);
28061
+ var monthNames = this._adapter.getMonthNames('short');
28062
+ // First row of months only contains 5 elements so we can fit the year label on the same row.
28063
+ this._months = [[0, 1, 2, 3], [4, 5, 6, 7], [8, 9, 10, 11]].map(function (row) { return row.map(function (month) { return _this._createCellForMonth(month, monthNames[month]); }); });
28064
+ };
28065
+ /**
28066
+ * Gets the month in this year that the given Date falls on.
28067
+ * Returns null if the given Date is in another year.
28068
+ */
28069
+ GIPIDatetimepickerYearViewComponent.prototype._getMonthInCurrentYear = function (date) {
28070
+ return this._adapter.sameYear(date, this.activeDate)
28071
+ ? this._adapter.getMonth(date)
28072
+ : null;
28073
+ };
28074
+ /** Creates an MdCalendarCell for the given month. */
28075
+ GIPIDatetimepickerYearViewComponent.prototype._createCellForMonth = function (month, monthName) {
28076
+ var ariaLabel = this._adapter.format(this._adapter.createDatetime(this._adapter.getYear(this.activeDate), month, 1, this._adapter.getHour(this.activeDate), this._adapter.getMinute(this.activeDate)), this._dateFormats.display.monthYearA11yLabel);
28077
+ return new GIPIDatetimepickerCalendarCell(month, monthName.toLocaleUpperCase(), ariaLabel, this._isMonthEnabled(month));
28078
+ };
28079
+ /** Whether the given month is enabled. */
28080
+ GIPIDatetimepickerYearViewComponent.prototype._isMonthEnabled = function (month) {
28081
+ if (!this.dateFilter) {
28082
+ return true;
28083
+ }
28084
+ var firstOfMonth = this._adapter.createDatetime(this._adapter.getYear(this.activeDate), month, 1, this._adapter.getHour(this.activeDate), this._adapter.getMinute(this.activeDate));
28085
+ // If any date in the month is enabled count the month as enabled.
28086
+ for (var date = firstOfMonth; this._adapter.getMonth(date) == month; date = this._adapter.addCalendarDays(date, 1)) {
28087
+ if (this.dateFilter(date)) {
28088
+ return true;
28089
+ }
28090
+ }
28091
+ return false;
28092
+ };
28093
+ GIPIDatetimepickerYearViewComponent.ctorParameters = function () { return [
28094
+ { type: GIPIDatetimeAdapter, decorators: [{ type: Optional }] },
28095
+ { type: undefined, decorators: [{ type: Optional }, { type: Inject, args: [GIPI_DATETIME_FORMATS,] }] }
28096
+ ]; };
28097
+ __decorate([
28098
+ Input(),
28099
+ __metadata("design:type", String)
28100
+ ], GIPIDatetimepickerYearViewComponent.prototype, "type", void 0);
28101
+ __decorate([
28102
+ Input(),
28103
+ __metadata("design:type", Function)
28104
+ ], GIPIDatetimepickerYearViewComponent.prototype, "dateFilter", void 0);
28105
+ __decorate([
28106
+ Input(),
28107
+ __metadata("design:type", Object),
28108
+ __metadata("design:paramtypes", [Object])
28109
+ ], GIPIDatetimepickerYearViewComponent.prototype, "activeDate", null);
28110
+ __decorate([
28111
+ Input(),
28112
+ __metadata("design:type", Object),
28113
+ __metadata("design:paramtypes", [Object])
28114
+ ], GIPIDatetimepickerYearViewComponent.prototype, "selected", null);
28115
+ __decorate([
28116
+ Output(),
28117
+ __metadata("design:type", Object)
28118
+ ], GIPIDatetimepickerYearViewComponent.prototype, "selectedChange", void 0);
28119
+ __decorate([
28120
+ Output(),
28121
+ __metadata("design:type", Object)
28122
+ ], GIPIDatetimepickerYearViewComponent.prototype, "_userSelection", void 0);
28123
+ GIPIDatetimepickerYearViewComponent = __decorate([
28124
+ Component({
28125
+ selector: 'gipi-mat-datetime-picker-year-view',
28126
+ template: "<table class=\"gipi-mat-datetime-picker-calendar-table\"\n role=\"presentation\">\n <thead class=\"gipi-mat-datetime-picker-calendar-table-header\">\n <tr>\n <th class=\"gipi-mat-datetime-picker-calendar-table-header-divider\"\n colspan=\"4\">\n </th>\n </tr>\n </thead>\n <tbody gipiMatDatetimePickerCalendarBody\n allowDisabledSelection=\"true\"\n role=\"grid\"\n [label]=\"_yearLabel\"\n [rows]=\"_months\"\n [todayValue]=\"_todayMonth\"\n [labelMinRequiredCells]=\"2\"\n [numCols]=\"4\"\n [cellAspectRatio]=\"4 / 7\"\n [activeCell]=\"_adapter.getMonth(activeDate)\"\n [selectedValue]=\"_selectedMonth\"\n [@slideCalendar]=\"_calendarState\"\n (@slideCalendar.done)=\"_calendarStateDone()\"\n (selectedValueChange)=\"_monthSelected($event)\">\n </tbody>\n</table>\n",
28127
+ animations: [slideCalendar],
28128
+ encapsulation: ViewEncapsulation.None,
28129
+ changeDetection: ChangeDetectionStrategy.OnPush
28130
+ }),
28131
+ __param(0, Optional()),
28132
+ __param(1, Optional()),
28133
+ __param(1, Inject(GIPI_DATETIME_FORMATS)),
28134
+ __metadata("design:paramtypes", [GIPIDatetimeAdapter, Object])
28135
+ ], GIPIDatetimepickerYearViewComponent);
28136
+ return GIPIDatetimepickerYearViewComponent;
28137
+ }());
28138
+
28139
+ var DatetimepickerModule = /** @class */ (function () {
28140
+ function DatetimepickerModule() {
28141
+ }
28142
+ DatetimepickerModule = __decorate([
28143
+ NgModule({
28144
+ imports: [
28145
+ CommonModule,
28146
+ FormsModule,
28147
+ ReactiveFormsModule,
28148
+ MatButtonModule,
28149
+ MatDialogModule,
28150
+ MatIconModule,
28151
+ OverlayModule,
28152
+ A11yModule,
28153
+ MatDatepickerModule,
28154
+ GIPINativeDatetimeModule,
28155
+ ],
28156
+ exports: [
28157
+ FormsModule,
28158
+ ReactiveFormsModule,
28159
+ MatButtonModule,
28160
+ MatDialogModule,
28161
+ MatIconModule,
28162
+ OverlayModule,
28163
+ A11yModule,
28164
+ MatDatepickerModule,
28165
+ GIPINativeDatetimeModule,
28166
+ GIPIDatetimepickerCalendarComponent,
28167
+ GIPIDatetimepickerCalendarBodyComponent,
28168
+ GIPIDatetimepickerClockComponent,
28169
+ GIPIDatetimepickerComponent,
28170
+ GIPIDatetimepickerToggleComponent,
28171
+ GIPIDatetimepickerInputDirective,
28172
+ GIPIDatetimepickerContentComponent,
28173
+ GIPIDatetimepickerMonthViewComponent,
28174
+ GIPIDatetimepickerYearViewComponent,
28175
+ GIPIDatetimepickerMultiYearViewComponent,
28176
+ GIPIDateAndTimePickerComponent,
28177
+ ],
28178
+ declarations: [
28179
+ GIPIDatetimepickerCalendarComponent,
28180
+ GIPIDatetimepickerCalendarBodyComponent,
28181
+ GIPIDatetimepickerClockComponent,
28182
+ GIPIDatetimepickerComponent,
28183
+ GIPIDatetimepickerToggleComponent,
28184
+ GIPIDatetimepickerInputDirective,
28185
+ GIPIDatetimepickerContentComponent,
28186
+ GIPIDatetimepickerMonthViewComponent,
28187
+ GIPIDatetimepickerYearViewComponent,
28188
+ GIPIDatetimepickerMultiYearViewComponent,
28189
+ GIPIDateAndTimePickerComponent,
28190
+ ],
28191
+ entryComponents: [
28192
+ GIPIDatetimepickerContentComponent,
28193
+ ],
28194
+ providers: [
28195
+ MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY_PROVIDER$1,
28196
+ ],
28197
+ })
28198
+ ], DatetimepickerModule);
28199
+ return DatetimepickerModule;
28200
+ }());
28201
+
28202
+ var moment$4 = moment_;
28203
+ var CalendarMonthYearComponent = /** @class */ (function () {
28204
+ function CalendarMonthYearComponent(_changeDetectorRef) {
28205
+ this._changeDetectorRef = _changeDetectorRef;
28206
+ this._subscriptions = new Subscription();
28207
+ this._animationState = 'enter';
28208
+ this._animationDone = new Subject();
28209
+ this.years = [];
28210
+ this.months = [];
28211
+ this._calendarView = 'both';
28212
+ }
28213
+ CalendarMonthYearComponent_1 = CalendarMonthYearComponent;
28214
+ CalendarMonthYearComponent.prototype.ngOnInit = function () {
28215
+ if (this._locale) {
28216
+ moment$4.locale(this._locale);
28217
+ }
28218
+ else {
28219
+ moment$4.locale('pt-br');
28220
+ }
28221
+ this.months = __spread(this.monthYearPicker.model.months);
28222
+ this._calendarView = this.monthYearPicker.calendarView;
28223
+ if (this._calendarView === 'year') {
28224
+ this.toggleShowYears();
28225
+ }
28226
+ this.monthYearPicker.onValueChange(this.monthYearPicker.model.selectedMonthIndex, this.monthYearPicker.model.selectedMonthYear);
28227
+ };
28228
+ CalendarMonthYearComponent.prototype.ngAfterViewInit = function () {
28229
+ var _this = this;
28230
+ if (this._changeDetectorRef) {
28231
+ this._subscriptions.add(this.monthYearPicker._stateChanges.subscribe(function () {
28232
+ _this._changeDetectorRef.markForCheck();
28233
+ }));
28234
+ }
28235
+ };
28236
+ CalendarMonthYearComponent.prototype.ngOnDestroy = function () {
28237
+ this._subscriptions.unsubscribe();
28238
+ this._animationDone.complete();
28239
+ };
28240
+ CalendarMonthYearComponent.prototype._startExitAnimation = function () {
28241
+ this._animationState = 'void';
28242
+ if (this._changeDetectorRef) {
28243
+ this._changeDetectorRef.markForCheck();
28244
+ }
28245
+ };
28246
+ CalendarMonthYearComponent.prototype.decrement = function () {
28247
+ this.monthYearPicker.model.decrementYear();
28248
+ if (this.isShowYears) {
28249
+ this._renderYears();
28250
+ }
28251
+ };
28252
+ CalendarMonthYearComponent.prototype.increment = function () {
28253
+ this.monthYearPicker.model.incrementYear();
28254
+ if (this.isShowYears) {
28255
+ this._renderYears();
28256
+ }
28257
+ };
28258
+ CalendarMonthYearComponent.prototype.selectMonth = function (index) {
28259
+ this.monthYearPicker.model.selectMonth(index);
28260
+ this.monthYearPicker.onValueChange(this.monthYearPicker.model.selectedMonthIndex, this.monthYearPicker.model.selectedMonthYear);
28261
+ this.monthYearPicker.close();
28262
+ };
28263
+ CalendarMonthYearComponent.prototype.isSelectedMonth = function (monthIndex) {
28264
+ return this.monthYearPicker.model.selectedMonthIndex == monthIndex && this.monthYearPicker.model.selectedMonthYear == this.monthYearPicker.model.selectedYearMoment.year();
28265
+ };
28266
+ CalendarMonthYearComponent.prototype.isCurrentMonth = function (monthIndex) {
28267
+ var currentMonth = moment$4().month();
28268
+ var currentYear = moment$4().year();
28269
+ return (monthIndex === currentMonth) && (this.monthYearPicker.model.selectedYearMoment.year() === currentYear);
28270
+ };
28271
+ CalendarMonthYearComponent.prototype.isDisabledMonth = function (index) {
28272
+ var disabled = false;
28273
+ if (!ObjectUtil.isNull(this.monthYearPicker)) {
28274
+ var minMonth = !ObjectUtil.isNull(this.monthYearPicker.min) ? this.monthYearPicker.min.month : null;
28275
+ var maxMonth = !ObjectUtil.isNull(this.monthYearPicker.max) ? this.monthYearPicker.max.month : null;
28276
+ if (!ObjectUtil.isNull(minMonth) && !ObjectUtil.isNull(maxMonth)) {
28277
+ disabled = index < minMonth || index > maxMonth;
28278
+ }
28279
+ else if (!ObjectUtil.isNull(minMonth)) {
28280
+ disabled = index < minMonth;
28281
+ }
28282
+ else if (!ObjectUtil.isNull(maxMonth)) {
28283
+ disabled = index > maxMonth;
28284
+ }
28285
+ }
28286
+ return disabled;
28287
+ // let disabled = false;
28288
+ // if (this._enabledMonths && this._enabledMonths.length > 0) {
28289
+ // disabled = this._enabledMonths.indexOf(index) < 0;
28290
+ // }
28291
+ // if (this._disabledMonths && this._disabledMonths.length > 0) {
28292
+ // disabled = this._disabledMonths.indexOf(index) >= 0;
28293
+ // }
28294
+ // return disabled;
28295
+ };
28296
+ /** Years */
28297
+ CalendarMonthYearComponent.prototype.toggleShowYears = function () {
28298
+ this.isShowYears = !this.isShowYears;
28299
+ this._renderYears();
28300
+ };
28301
+ CalendarMonthYearComponent.prototype._renderYears = function () {
28302
+ this.years = [];
28303
+ for (var i = 11; i > 0; i--) {
28304
+ this.years.push(this.monthYearPicker.model.selectedYearMoment.year() - i);
28305
+ }
28306
+ for (var i = 0; i <= 12; i++) {
28307
+ this.years.push(this.monthYearPicker.model.selectedYearMoment.year() + i);
28308
+ }
28309
+ };
28310
+ Object.defineProperty(CalendarMonthYearComponent.prototype, "periodButtonLabel", {
28311
+ get: function () {
28312
+ var formatYearRange = function (start, end) {
28313
+ return start + " \u2013 " + end;
28314
+ };
28315
+ return this.isShowYears ? formatYearRange(this.years[0], this.years[this.years.length - 1]) : this.monthYearPicker.model.selectedYearText;
28316
+ },
28317
+ enumerable: false,
28318
+ configurable: true
25072
28319
  });
25073
28320
  CalendarMonthYearComponent.prototype.selectYear = function (year) {
25074
28321
  if (this._calendarView === 'both') {
@@ -25213,7 +28460,7 @@ var MonthPickerModel = /** @class */ (function () {
25213
28460
  };
25214
28461
  return MonthPickerModel;
25215
28462
  }());
25216
- var nextUniqueId$q = 0;
28463
+ var nextUniqueId$r = 0;
25217
28464
  var MonthYearPickerComponent = /** @class */ (function () {
25218
28465
  function MonthYearPickerComponent(elementRef, _changeDetectorRef, _overlay, _ngZone, _viewContainerRef, scrollStrategy, _dir, _document) {
25219
28466
  this.elementRef = elementRef;
@@ -25223,7 +28470,7 @@ var MonthYearPickerComponent = /** @class */ (function () {
25223
28470
  this._viewContainerRef = _viewContainerRef;
25224
28471
  this._dir = _dir;
25225
28472
  this._document = _document;
25226
- this._name = "gipi-date-range-" + nextUniqueId$q++;
28473
+ this._name = "gipi-date-range-" + nextUniqueId$r++;
25227
28474
  this._focusedElementBeforeOpen = null;
25228
28475
  this._backdropHarnessClass = this._name + "-backdrop";
25229
28476
  this._stateChanges = new Subject();
@@ -25618,7 +28865,7 @@ var MonthYearPickerComponent = /** @class */ (function () {
25618
28865
  'class': 'gipi-month-year-picker',
25619
28866
  },
25620
28867
  changeDetection: ChangeDetectionStrategy.OnPush,
25621
- styles: [":host{display:block;width:100%;min-width:0;max-width:100%;flex:1}.input-wrapper{display:flex;flex-direction:column;gap:.8rem;font-size:1.4rem;color:#696969}.input-wrapper .input-label{display:flex;align-items:center;gap:.4rem;color:#131313;line-height:1.6rem}.input-wrapper .input-label>span{font-size:1.6rem;line-height:1.6rem;color:#d14014}.input-wrapper .input-content{display:flex;font-family:inherit;font-size:inherit;color:inherit;height:4rem;background:#fff;border:1px solid rgba(0,0,0,.12);transition:background-color .2s,color .2s,border-color .2s,box-shadow .2s;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:.6rem}.input-wrapper .input-content .input-element{padding:.75rem .8rem;border:none;outline:0;background-color:transparent;flex:1;color:inherit;caret-color:#696969;min-width:0}.input-wrapper .input-content:not(.input-element:disabled):has(.input-element:enabled:hover),.input-wrapper .input-content:not(.input-element:disabled):has(.prefix:hover),.input-wrapper .input-content:not(.input-element:disabled):has(.suffix:hover){border-color:#6d6f73}.input-wrapper .input-content:not(.input-element:disabled):has(.input-element:enabled:focus){outline:0;outline-offset:0;box-shadow:0 0 0 .2rem #e0e1e2;border-color:#6d6f73}.input-wrapper .input-content:has(.input-element:disabled){color:#bbbdc1!important;border-color:#e0e1e2!important;background-color:#f5f5f6!important;cursor:not-allowed}.input-wrapper .input-content:has(.input-element:disabled) .suffix>mat-icon{color:#bbbdc1!important}.input-wrapper .input-content .input-element:disabled{cursor:not-allowed}.input-wrapper .input-content .suffix{display:flex;align-items:center;justify-content:center;padding-block:.75rem;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;padding-right:.8rem}.input-wrapper .input-content .suffix>mat-icon{width:2rem;height:2rem;font-size:2rem;color:#696969}.input-wrapper .input-help{flex:1;font-size:1rem;font-weight:500;margin-top:-.4rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.month-year-toggle-default-icon{display:block;width:1.5em;height:1.5em}.mat-icon-button .month-year-toggle-default-icon{margin:auto}.btn-month-year-toggle{width:2rem!important;height:2rem!important;line-height:2rem!important}"]
28868
+ styles: [":host{display:block;width:100%;min-width:0;max-width:100%;flex:1}.input-wrapper{display:flex;flex-direction:column;gap:.8rem;font-size:1.4rem;color:#696969}.input-wrapper .input-label{display:flex;align-items:center;gap:.4rem;color:#131313;line-height:1.6rem}.input-wrapper .input-label>span{font-size:1.6rem;line-height:1.6rem;color:#d14014}.input-wrapper .input-content{display:flex;font-family:inherit;font-size:inherit;color:inherit;height:4rem;background:#fff;border:1px solid #0000001f;transition:background-color .2s,color .2s,border-color .2s,box-shadow .2s;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:.6rem}.input-wrapper .input-content .input-element{padding:.75rem .8rem;border:none;outline:0;background-color:transparent;flex:1;color:inherit;caret-color:#696969;min-width:0}.input-wrapper .input-content:not(.input-element:disabled):has(.input-element:enabled:hover),.input-wrapper .input-content:not(.input-element:disabled):has(.prefix:hover),.input-wrapper .input-content:not(.input-element:disabled):has(.suffix:hover){border-color:#6d6f73}.input-wrapper .input-content:not(.input-element:disabled):has(.input-element:enabled:focus){outline:0;outline-offset:0;box-shadow:0 0 0 .2rem #e0e1e2;border-color:#6d6f73}.input-wrapper .input-content:has(.input-element:disabled){color:#bbbdc1!important;border-color:#e0e1e2!important;background-color:#f5f5f6!important;cursor:not-allowed}.input-wrapper .input-content:has(.input-element:disabled) .suffix>mat-icon{color:#bbbdc1!important}.input-wrapper .input-content .input-element:disabled{cursor:not-allowed}.input-wrapper .input-content .suffix{display:flex;align-items:center;justify-content:center;padding-block:.75rem;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;padding-right:.8rem}.input-wrapper .input-content .suffix>mat-icon{width:2rem;height:2rem;font-size:2rem;color:#696969}.input-wrapper .input-help{flex:1;font-size:1rem;font-weight:500;margin-top:-.4rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.month-year-toggle-default-icon{display:block;width:1.5em;height:1.5em}.mat-icon-button .month-year-toggle-default-icon{margin:auto}.btn-month-year-toggle{width:2rem!important;height:2rem!important;line-height:2rem!important}"]
25622
28869
  }),
25623
28870
  __param(5, Inject(GIPI_MONTH_YEAR_SCROLL_STRATEGY)),
25624
28871
  __param(6, Optional()),
@@ -25746,7 +28993,7 @@ var GIPIServices = [
25746
28993
  GIPIResizeService,
25747
28994
  GIPIPaginationService,
25748
28995
  ];
25749
- var ɵ0$3 = {
28996
+ var ɵ0$5 = {
25750
28997
  parse: {
25751
28998
  dateInput: 'DD/MM/YYYY',
25752
28999
  },
@@ -25756,6 +29003,46 @@ var ɵ0$3 = {
25756
29003
  dateA11yLabel: 'LL',
25757
29004
  monthYearA11yLabel: 'MMMM YYYY',
25758
29005
  },
29006
+ }, ɵ1$1 = {
29007
+ parse: {},
29008
+ display: {
29009
+ dateInput: {
29010
+ year: "numeric",
29011
+ month: "2-digit",
29012
+ day: "2-digit"
29013
+ },
29014
+ monthInput: {
29015
+ month: "long"
29016
+ },
29017
+ datetimeInput: {
29018
+ year: "numeric",
29019
+ month: "2-digit",
29020
+ day: "2-digit",
29021
+ hour: "2-digit",
29022
+ minute: "2-digit"
29023
+ },
29024
+ timeInput: {
29025
+ hour: "2-digit",
29026
+ minute: "2-digit"
29027
+ },
29028
+ monthYearLabel: {
29029
+ year: "numeric",
29030
+ month: "short"
29031
+ },
29032
+ dateA11yLabel: {
29033
+ year: "numeric",
29034
+ month: "long",
29035
+ day: "numeric"
29036
+ },
29037
+ monthYearA11yLabel: {
29038
+ year: "numeric",
29039
+ month: "long"
29040
+ },
29041
+ popupHeaderDateLabel: {
29042
+ day: "2-digit",
29043
+ month: "short",
29044
+ }
29045
+ }
25759
29046
  };
25760
29047
  var SharedModule = /** @class */ (function () {
25761
29048
  function SharedModule(_injector) {
@@ -25820,6 +29107,7 @@ var SharedModule = /** @class */ (function () {
25820
29107
  MentionModule,
25821
29108
  DatepickerModule,
25822
29109
  MonthYearPickerModule,
29110
+ DatetimepickerModule,
25823
29111
  ],
25824
29112
  exports: [
25825
29113
  GIPIComponents,
@@ -25866,6 +29154,7 @@ var SharedModule = /** @class */ (function () {
25866
29154
  SelectButtonNextBatchComponent,
25867
29155
  DatepickerModule,
25868
29156
  MonthYearPickerModule,
29157
+ DatetimepickerModule,
25869
29158
  ],
25870
29159
  entryComponents: [
25871
29160
  GIPIConfirmationDialogComponent,
@@ -25887,7 +29176,11 @@ var SharedModule = /** @class */ (function () {
25887
29176
  },
25888
29177
  {
25889
29178
  provide: MAT_DATE_FORMATS,
25890
- useValue: ɵ0$3,
29179
+ useValue: ɵ0$5,
29180
+ },
29181
+ {
29182
+ provide: GIPI_DATETIME_FORMATS,
29183
+ useValue: ɵ1$1,
25891
29184
  },
25892
29185
  ]
25893
29186
  }),
@@ -26082,6 +29375,9 @@ var AbstractFindComponent = /** @class */ (function (_super) {
26082
29375
  }
26083
29376
  if (ObjectUtil.isNull(pageEvent) && !ObjectUtil.isNull(this.tablePageEventDTO)) {
26084
29377
  pageEvent = this.tablePageEventDTO;
29378
+ if (ObjectUtil.hasPropertyInObj(pageEvent, 'pageIndex')) {
29379
+ pageEvent.pageIndex = 0;
29380
+ }
26085
29381
  }
26086
29382
  if (pageEvent) {
26087
29383
  this.tablePageEventDTO = pageEvent;
@@ -27100,7 +30396,10 @@ var GIPIAbstractComponent = /** @class */ (function () {
27100
30396
  return this.baseService.router.url.split('/').filter(function (path) { return (path === 'view'); }).length > 0;
27101
30397
  };
27102
30398
  GIPIAbstractComponent.prototype.isListing = function () {
27103
- return this.baseService.router.url.split('/').filter(function (path) { return (path === 'new') || (path === 'edit') || (path === 'view'); }).length === 0;
30399
+ return this.baseService.router.url.split('/').filter(function (path) { return (path === 'new') || (path === 'edit') || (path === 'view') || (path === 'clone'); }).length === 0;
30400
+ };
30401
+ GIPIAbstractComponent.prototype.isCloning = function () {
30402
+ return this.baseService.router.url.split('/').filter(function (path) { return (path === 'clone'); }).length > 0;
27104
30403
  };
27105
30404
  GIPIAbstractComponent.prototype.hasPermission = function (permission) {
27106
30405
  if (StringUtil.isEmpty(permission)) {
@@ -27230,13 +30529,13 @@ var GIPIAbstractCrudComponent = /** @class */ (function (_super) {
27230
30529
  GIPIAbstractCrudComponent.prototype.ngOnDestroy = function () {
27231
30530
  _super.prototype.ngOnDestroy.call(this);
27232
30531
  };
27233
- GIPIAbstractCrudComponent.prototype.onInitForm = function () {
30532
+ GIPIAbstractCrudComponent.prototype.onInitForm = function (version) {
27234
30533
  var _this = this;
27235
30534
  try {
27236
30535
  this.loading = true;
27237
30536
  var id = this.activatedRoute.snapshot.params.id;
27238
30537
  if (this.UUIDIsValid(id)) {
27239
- this.abstractCrudService.getOne(id).toPromise().then(function (entity) {
30538
+ this.abstractCrudService.getOne(id, version).toPromise().then(function (entity) {
27240
30539
  _this.entity = entity;
27241
30540
  _this.onAfterGetOne();
27242
30541
  _this.loading = false;
@@ -27257,7 +30556,7 @@ var GIPIAbstractCrudComponent = /** @class */ (function (_super) {
27257
30556
  };
27258
30557
  GIPIAbstractCrudComponent.prototype.onAfterGetOne = function () { };
27259
30558
  GIPIAbstractCrudComponent.prototype.preSave = function (entity) { };
27260
- GIPIAbstractCrudComponent.prototype.save = function (entity, toGoBack) {
30559
+ GIPIAbstractCrudComponent.prototype.save = function (entity, toGoBack, version) {
27261
30560
  var _this = this;
27262
30561
  if (toGoBack === void 0) { toGoBack = true; }
27263
30562
  try {
@@ -27267,7 +30566,7 @@ var GIPIAbstractCrudComponent = /** @class */ (function (_super) {
27267
30566
  }
27268
30567
  if (this.isValid(entity)) {
27269
30568
  this.preSave(entity);
27270
- this.abstractCrudService.save(entity).toPromise().then(function (resp) {
30569
+ this.abstractCrudService.save(entity, version).toPromise().then(function (resp) {
27271
30570
  _this.addSuccessMessage(INJECTOR.get(APP_MESSAGES).SUCCESS);
27272
30571
  if (toGoBack) {
27273
30572
  _this.navigateByUrl(_this.getPath(), [_this.getPath()], true);
@@ -27436,6 +30735,9 @@ var GIPIAbstractFindComponent = /** @class */ (function (_super) {
27436
30735
  }
27437
30736
  if (ObjectUtil.isNull(pageEvent) && !ObjectUtil.isNull(this.tablePageEventDTO)) {
27438
30737
  pageEvent = this.tablePageEventDTO;
30738
+ if (ObjectUtil.hasPropertyInObj(pageEvent, 'pageIndex')) {
30739
+ pageEvent.pageIndex = 0;
30740
+ }
27439
30741
  }
27440
30742
  if (pageEvent) {
27441
30743
  this.tablePageEventDTO = pageEvent;
@@ -27505,7 +30807,7 @@ var GIPIAbstractFindComponent = /** @class */ (function (_super) {
27505
30807
  this.navigateByUrl(this.getPath(), [this.getPath(), 'edit', id], true);
27506
30808
  }
27507
30809
  };
27508
- GIPIAbstractFindComponent.prototype.deleteRegister = function (id, permission, fetchAgain) {
30810
+ GIPIAbstractFindComponent.prototype.deleteRegister = function (id, permission, fetchAgain, version) {
27509
30811
  if (fetchAgain === void 0) { fetchAgain = true; }
27510
30812
  try {
27511
30813
  id = this.handleEntityId(id);
@@ -27513,7 +30815,7 @@ var GIPIAbstractFindComponent = /** @class */ (function (_super) {
27513
30815
  return;
27514
30816
  }
27515
30817
  if (StringUtil.isEmpty(permission) && ObjectUtil.isNull(this.basePermissionList)) {
27516
- this._deleteRegister(id, fetchAgain);
30818
+ this._deleteRegister(id, fetchAgain, version);
27517
30819
  }
27518
30820
  else {
27519
30821
  if (StringUtil.isEmpty(permission) && !ObjectUtil.isNull(this.basePermissionList)) {
@@ -27523,7 +30825,7 @@ var GIPIAbstractFindComponent = /** @class */ (function (_super) {
27523
30825
  this.addWarningMessage(INJECTOR.get(APP_MESSAGES).NOT_PERMISSION);
27524
30826
  return;
27525
30827
  }
27526
- this._deleteRegister(id, fetchAgain);
30828
+ this._deleteRegister(id, fetchAgain, version);
27527
30829
  }
27528
30830
  }
27529
30831
  catch (e) {
@@ -27535,7 +30837,7 @@ var GIPIAbstractFindComponent = /** @class */ (function (_super) {
27535
30837
  }
27536
30838
  };
27537
30839
  /** @Internal */
27538
- GIPIAbstractFindComponent.prototype._deleteRegister = function (id, fetchAgain) {
30840
+ GIPIAbstractFindComponent.prototype._deleteRegister = function (id, fetchAgain, version) {
27539
30841
  var _this = this;
27540
30842
  if (fetchAgain === void 0) { fetchAgain = true; }
27541
30843
  try {
@@ -27547,7 +30849,7 @@ var GIPIAbstractFindComponent = /** @class */ (function (_super) {
27547
30849
  _this.loading = true;
27548
30850
  _this.page = _this.newPage();
27549
30851
  _this.preDelete(id);
27550
- _this.abstractCrudService.delete(id).toPromise().then(function () {
30852
+ _this.abstractCrudService.delete(id, version).toPromise().then(function () {
27551
30853
  if (fetchAgain) {
27552
30854
  _this.findAll();
27553
30855
  }
@@ -27564,7 +30866,7 @@ var GIPIAbstractFindComponent = /** @class */ (function (_super) {
27564
30866
  throw new Error(e);
27565
30867
  }
27566
30868
  };
27567
- GIPIAbstractFindComponent.prototype.deleteAllRegister = function (idList, permission, fetchAgain) {
30869
+ GIPIAbstractFindComponent.prototype.deleteAllRegister = function (idList, permission, fetchAgain, version) {
27568
30870
  if (fetchAgain === void 0) { fetchAgain = true; }
27569
30871
  try {
27570
30872
  idList = this.handleEntityIdList(idList);
@@ -27572,7 +30874,7 @@ var GIPIAbstractFindComponent = /** @class */ (function (_super) {
27572
30874
  return;
27573
30875
  }
27574
30876
  if (StringUtil.isEmpty(permission) && ObjectUtil.isNull(this.basePermissionList)) {
27575
- this._deleteAllRegister(idList, fetchAgain);
30877
+ this._deleteAllRegister(idList, fetchAgain, version);
27576
30878
  }
27577
30879
  else {
27578
30880
  if (StringUtil.isEmpty(permission) && !ObjectUtil.isNull(this.basePermissionList)) {
@@ -27582,7 +30884,7 @@ var GIPIAbstractFindComponent = /** @class */ (function (_super) {
27582
30884
  this.addWarningMessage(INJECTOR.get(APP_MESSAGES).NOT_PERMISSION);
27583
30885
  return;
27584
30886
  }
27585
- this._deleteAllRegister(idList, fetchAgain);
30887
+ this._deleteAllRegister(idList, fetchAgain, version);
27586
30888
  }
27587
30889
  }
27588
30890
  catch (e) {
@@ -27594,7 +30896,7 @@ var GIPIAbstractFindComponent = /** @class */ (function (_super) {
27594
30896
  }
27595
30897
  };
27596
30898
  /** @Internal */
27597
- GIPIAbstractFindComponent.prototype._deleteAllRegister = function (idList, fetchAgain) {
30899
+ GIPIAbstractFindComponent.prototype._deleteAllRegister = function (idList, fetchAgain, version) {
27598
30900
  var _this = this;
27599
30901
  if (fetchAgain === void 0) { fetchAgain = true; }
27600
30902
  try {
@@ -27606,7 +30908,7 @@ var GIPIAbstractFindComponent = /** @class */ (function (_super) {
27606
30908
  _this.loading = true;
27607
30909
  _this.page = _this.newPage();
27608
30910
  _this.preDelete();
27609
- _this.abstractCrudService.deleteAll(idList).toPromise().then(function () {
30911
+ _this.abstractCrudService.deleteAll(idList, version).toPromise().then(function () {
27610
30912
  if (fetchAgain) {
27611
30913
  _this.findAll();
27612
30914
  }
@@ -27652,7 +30954,7 @@ var GIPIAbstractFindComponent = /** @class */ (function (_super) {
27652
30954
  this.viewRegister(id, permission);
27653
30955
  }
27654
30956
  };
27655
- GIPIAbstractFindComponent.prototype.enableOrDisableRegister = function (action, id, permission, fetchAgain) {
30957
+ GIPIAbstractFindComponent.prototype.enableOrDisableRegister = function (action, id, permission, fetchAgain, version) {
27656
30958
  if (fetchAgain === void 0) { fetchAgain = true; }
27657
30959
  try {
27658
30960
  id = this.handleEntityId(id);
@@ -27660,7 +30962,7 @@ var GIPIAbstractFindComponent = /** @class */ (function (_super) {
27660
30962
  return;
27661
30963
  }
27662
30964
  if (StringUtil.isEmpty(permission) && ObjectUtil.isNull(this.basePermissionList)) {
27663
- this._enableOrDisableRegister(action, id, fetchAgain);
30965
+ this._enableOrDisableRegister(action, id, fetchAgain, version);
27664
30966
  }
27665
30967
  else {
27666
30968
  if (StringUtil.isEmpty(permission) && !ObjectUtil.isNull(this.basePermissionList)) {
@@ -27670,7 +30972,7 @@ var GIPIAbstractFindComponent = /** @class */ (function (_super) {
27670
30972
  this.addWarningMessage(INJECTOR.get(APP_MESSAGES).NOT_PERMISSION);
27671
30973
  return;
27672
30974
  }
27673
- this._enableOrDisableRegister(action, id, fetchAgain);
30975
+ this._enableOrDisableRegister(action, id, fetchAgain, version);
27674
30976
  }
27675
30977
  }
27676
30978
  catch (e) {
@@ -27682,7 +30984,7 @@ var GIPIAbstractFindComponent = /** @class */ (function (_super) {
27682
30984
  }
27683
30985
  };
27684
30986
  /** @Internal */
27685
- GIPIAbstractFindComponent.prototype._enableOrDisableRegister = function (action, id, fetchAgain) {
30987
+ GIPIAbstractFindComponent.prototype._enableOrDisableRegister = function (action, id, fetchAgain, version) {
27686
30988
  var _this = this;
27687
30989
  if (fetchAgain === void 0) { fetchAgain = true; }
27688
30990
  try {
@@ -27693,7 +30995,7 @@ var GIPIAbstractFindComponent = /** @class */ (function (_super) {
27693
30995
  _this.setFilterSessionStorage();
27694
30996
  _this.loading = true;
27695
30997
  _this.page = _this.newPage();
27696
- _this.abstractCrudService.enableOrDisable(id, action).toPromise().then(function () {
30998
+ _this.abstractCrudService.enableOrDisable(id, action, version).toPromise().then(function () {
27697
30999
  if (fetchAgain) {
27698
31000
  _this.findAll();
27699
31001
  }
@@ -27710,7 +31012,7 @@ var GIPIAbstractFindComponent = /** @class */ (function (_super) {
27710
31012
  throw new Error(e);
27711
31013
  }
27712
31014
  };
27713
- GIPIAbstractFindComponent.prototype.enableAndDisableAllRegister = function (action, idList, permission, fetchAgain) {
31015
+ GIPIAbstractFindComponent.prototype.enableAndDisableAllRegister = function (action, idList, permission, fetchAgain, version) {
27714
31016
  if (fetchAgain === void 0) { fetchAgain = true; }
27715
31017
  try {
27716
31018
  idList = this.handleEntityIdList(idList);
@@ -27718,7 +31020,7 @@ var GIPIAbstractFindComponent = /** @class */ (function (_super) {
27718
31020
  return;
27719
31021
  }
27720
31022
  if (StringUtil.isEmpty(permission) && ObjectUtil.isNull(this.basePermissionList)) {
27721
- this._enableAndDisableAllRegister(action, idList, fetchAgain);
31023
+ this._enableAndDisableAllRegister(action, idList, fetchAgain, version);
27722
31024
  }
27723
31025
  else {
27724
31026
  if (StringUtil.isEmpty(permission) && !ObjectUtil.isNull(this.basePermissionList)) {
@@ -27728,7 +31030,7 @@ var GIPIAbstractFindComponent = /** @class */ (function (_super) {
27728
31030
  this.addWarningMessage(INJECTOR.get(APP_MESSAGES).NOT_PERMISSION);
27729
31031
  return;
27730
31032
  }
27731
- this._enableAndDisableAllRegister(action, idList, fetchAgain);
31033
+ this._enableAndDisableAllRegister(action, idList, fetchAgain, version);
27732
31034
  }
27733
31035
  }
27734
31036
  catch (e) {
@@ -27740,7 +31042,7 @@ var GIPIAbstractFindComponent = /** @class */ (function (_super) {
27740
31042
  }
27741
31043
  };
27742
31044
  /** @Internal */
27743
- GIPIAbstractFindComponent.prototype._enableAndDisableAllRegister = function (action, idList, fetchAgain) {
31045
+ GIPIAbstractFindComponent.prototype._enableAndDisableAllRegister = function (action, idList, fetchAgain, version) {
27744
31046
  var _this = this;
27745
31047
  if (fetchAgain === void 0) { fetchAgain = true; }
27746
31048
  try {
@@ -27751,7 +31053,7 @@ var GIPIAbstractFindComponent = /** @class */ (function (_super) {
27751
31053
  _this.setFilterSessionStorage();
27752
31054
  _this.loading = true;
27753
31055
  _this.page = _this.newPage();
27754
- _this.abstractCrudService.enableOrDisableAll(idList, action).toPromise().then(function () {
31056
+ _this.abstractCrudService.enableOrDisableAll(idList, action, version).toPromise().then(function () {
27755
31057
  if (fetchAgain) {
27756
31058
  _this.findAll();
27757
31059
  }
@@ -27768,6 +31070,27 @@ var GIPIAbstractFindComponent = /** @class */ (function (_super) {
27768
31070
  throw new Error(e);
27769
31071
  }
27770
31072
  };
31073
+ GIPIAbstractFindComponent.prototype.cloneRegister = function (id, permission) {
31074
+ id = this.handleEntityId(id);
31075
+ if (ObjectUtil.isNull(id)) {
31076
+ return;
31077
+ }
31078
+ if (StringUtil.isEmpty(permission) && ObjectUtil.isNull(this.basePermissionList)) {
31079
+ this.setFilterSessionStorage();
31080
+ this.navigateByUrl(this.getPath(), [this.getPath(), 'new', 'clone'], true);
31081
+ }
31082
+ else {
31083
+ if (StringUtil.isEmpty(permission) && !ObjectUtil.isNull(this.basePermissionList)) {
31084
+ permission = this.basePermissionList.MAKE;
31085
+ }
31086
+ if (!this.hasPermission(permission)) {
31087
+ this.addWarningMessage(INJECTOR.get(APP_MESSAGES).NOT_PERMISSION);
31088
+ return;
31089
+ }
31090
+ this.setFilterSessionStorage();
31091
+ this.navigateByUrl(this.getPath(), [this.getPath(), 'new', 'clone', id], true);
31092
+ }
31093
+ };
27771
31094
  GIPIAbstractFindComponent.prototype.clear = function () {
27772
31095
  this.baseService.sessionStorageService.remove('filter');
27773
31096
  this.page = this.newPage();
@@ -29212,5 +32535,5 @@ var MAT_NATIVE_DATE_FORMATS = {
29212
32535
  * Generated bundle index. Do not edit.
29213
32536
  */
29214
32537
 
29215
- export { APP_MESSAGES, AbstractComponent, AbstractCrudComponent, AbstractCrudService, AbstractDTO, AbstractFindComponent, AbstractFindService, AbstractModel, AbstractService, AlertComponent, Archive, ArrayUtil, AuthGuard, AuthInterceptor, AuthenticationService, BaseUser, BreakpointEnum, BreakpointObserverService, BrowserUtil, ButtonComponent, CalendarMonthYearComponent, CardComponent, ChartDTO, CheckboxComponent, ConfirmationDTO, ConfirmationService, CoreModule, CriteriaOperationEnum, CriteriaSortDirectionEnum, CurrencyUtil, DEFAULT_MESSAGES, DateAdapter, DateRange, DateRangePickerComponent, DateUtil, DatepickerModule, DefaultMatCalendarRangeStrategy, DialogDTO, DialogService, DocumentUtil, EmailUtil, ErrorInterceptor, FilterDTO, GIPIAbstractComponent, GIPIAbstractCrudComponent, GIPIAbstractCrudService, GIPIAbstractDTO, GIPIAbstractFilterModel, GIPIAbstractFindComponent, GIPIAbstractFormComponent, GIPIAbstractModel, GIPIAbstractService, GIPIActionRowComponent, GIPIAppliedFilter, GIPIAutowired, GIPIBadgeComponent, GIPIBaseService, GIPIBreakpointService, GIPIButtonComponent, GIPICardComponent, GIPIColDirective, GIPIConfirmationDialogComponent, GIPIConnectedOverlayScrollHandler, GIPIDomHandler, GIPIDropdownMenuComponent, GIPIDynamicTabDirective, GIPIEmptyStateComponent, GIPIExpansionPanelComponent, GIPIFileDragAndDropComponent, GIPIFileService, GIPIFooterComponent, GIPIFormFieldComponent, GIPIHelpfulTipComponent, GIPIInfiniteScrollDirective, GIPIInputCheckboxComponent, GIPIInputCurrencyComponent, GIPIInputMonthPickerComponent, GIPIInputPhoneComponent, GIPIInputSearchComponent, GIPIInputSelectComponent, GIPIInputSelectEnumComponent, GIPIInputSelectListboxComponent, GIPIInputSelectPagedComponent, GIPIInputSelectRadioComponent, GIPINotificationComponent, GIPINoveltiesComponent, GIPIOverlayComponent, GIPIOverlayService, GIPIPageEvent, GIPIPageModel, GIPIPaginatePipe, GIPIPaginationControlsDirective, GIPIPaginationService, GIPIPasswordRequerimentsComponent, GIPIPopoverComponent, GIPIPopoverTarget, GIPIPopoverTrigger, GIPIRadioGroupComponent, GIPIRangePageComponent, GIPIRangeSliderComponent, GIPIResizeService, GIPIRowDirective, GIPISelectButtonComponent, GIPISelectComponent, GIPISessionStorageService, GIPISidenavComponent, GIPISidenavContainerComponent, GIPISkeletonComponent, GIPISkeletonDirective, GIPISlideToggleComponent, GIPISortDirectionEnum, GIPISortModel, GIPISplitButtonComponent, GIPIStepperComponent, GIPITabComponent, GIPITabGroupComponent, GIPITableBodyComponent, GIPITableComponent, GIPITableFooterComponent, GIPITableHeaderComponent, GIPITablePaginationComponent, GIPITableProgressBarComponent, GIPITemplateDirective, GIPITextareaComponent, GIPIToolbarComponent, GIPITopNavComponent, GIPIUserProfileComponent, GIPI_BREAKPOINTS, GIPI_CUSTOM_BREAKPOINTS_PROVIDER, GIPI_MONTH_YEAR_SCROLL_STRATEGY, GIPI_MONTH_YEAR_SCROLL_STRATEGY_FACTORY, GIPI_MONTH_YEAR_SCROLL_STRATEGY_FACTORY_PROVIDER, INJECTOR, IconComponent, InputComponent, InputCurrencyComponent, InputFileComponent, InputListboxDTO, ItssTemplate, LoadingComponent, LoadingOverlayComponent, LocalTimeEnum, LocalTimePipe, MAT_DATEPICKER_SCROLL_STRATEGY, MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY, MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY_PROVIDER, MAT_DATEPICKER_VALIDATORS, MAT_DATEPICKER_VALUE_ACCESSOR, MAT_DATE_FORMATS, MAT_DATE_LOCALE, MAT_DATE_LOCALE_FACTORY, MAT_DATE_LOCALE_PROVIDER, MAT_DATE_RANGE_SELECTION_STRATEGY, MAT_NATIVE_DATE_FORMATS, MAT_RANGE_DATE_SELECTION_MODEL_FACTORY, MAT_RANGE_DATE_SELECTION_MODEL_PROVIDER, MAT_SINGLE_DATE_SELECTION_MODEL_FACTORY, MAT_SINGLE_DATE_SELECTION_MODEL_PROVIDER, MatCalendar, MatCalendarBody, MatCalendarCell, MatCalendarHeader, MatDateRangeInput, MatDateRangePicker, MatDateSelectionModel, MatDatepicker, MatDatepickerContent, MatDatepickerInput, MatDatepickerInputEvent, MatDatepickerIntl, MatDatepickerToggle, MatDatepickerToggleIcon, MatEndDate, MatMonthView, MatMultiYearView, MatRangeDateSelectionModel, MatSingleDateSelectionModel, MatStartDate, MatYearView, MaxRangeDirective, MaxRangeSelectionStrategy, MenuDTO, MenuTypeEnum, MessageDTO, MessageService, MonthPickerModel, MonthYear, MonthYearPickerComponent, MonthYearPickerModule, MultitenantModel, NativeDateAdapter, NavService, NumberUtil, ObjectUtil, OverlayPanelComponent, POINTS_NAME, PageDTO, PasswordUtil, Permission, PermissionGuard, PhoneMaskDirective, PhoneUtil, Platform, PopoverComponent, PopoverRef, PopoverService, PresetRangeComponent, RadioButtonEnum, RadioGroupEntityComponent, RadioGroupEnumComponent, RangePage, Role, SelectButtonAddComponent, SelectButtonNextBatchComponent, SelectEntityComponent, SelectEntityPagedComponent, SelectEnumComponent, SelectMonthPeriodComponent, SelectNoEntriesFoundDirective, SelectSearchClearDirective, SelectSearchComponent, SharedModule, SlideToggleComponent, SortDTO, SortDirectionEnum, SortModel, StepperComponent, StringUtil, SvgRegisterService, TabDTO, TabModel, TableColumnBuilder, TableColumnBuilderModel, TableColumnDTO, TableColumnModel, TableComponent, TableScrolledComponent, TimeUtil, TokenDTO, URLParamsUtil, UUIDUtil, customCurrencyMaskConfig, getReflectType, gridResponsiveMap, matDatepickerAnimations, nextUniqueId$o as nextUniqueId, siderResponsiveMap, transformPopover, yearsPerPage$1 as yearsPerPage, yearsPerRow, ƟCMP, ƟFAC, ƟPROV, ɵ0$3 as ɵ0, MAT_DATE_RANGE_INPUT_PARENT as ɵa, MAT_CALENDAR_RANGE_STRATEGY_PROVIDER_FACTORY as ɵb, MAT_CALENDAR_RANGE_STRATEGY_PROVIDER as ɵc, MatDatepickerBase as ɵd, MAT_FORM_FIELD as ɵe, MatDatepickerInputBase as ɵf, GIPINgConfig as ɵg, GIPIChipsComponent as ɵh, GIPIFileDragAndDropDirective as ɵi, TextareaComponent as ɵj, UpperCaseDirective as ɵk, LowerCaseDirective as ɵl, SpaceDropDirective as ɵm, InputSelectInfiniteScrollDirective as ɵn, ITSS_SELECT_SEARCH_DEFAULT_OPTIONS as ɵo, MaterialModule as ɵq, DatepickerComponent as ɵr };
32538
+ export { APP_MESSAGES, AbstractComponent, AbstractCrudComponent, AbstractCrudService, AbstractDTO, AbstractFindComponent, AbstractFindService, AbstractModel, AbstractService, AlertComponent, Archive, ArrayUtil, AuthGuard, AuthInterceptor, AuthenticationService, BaseUser, BreakpointEnum, BreakpointObserverService, BrowserUtil, ButtonComponent, CLOCK_INNER_RADIUS, CLOCK_OUTER_RADIUS, CLOCK_RADIUS, CLOCK_TICK_RADIUS, CalendarMonthYearComponent, CardComponent, ChartDTO, CheckboxComponent, ConfirmationDTO, ConfirmationService, CoreModule, CriteriaOperationEnum, CriteriaSortDirectionEnum, CurrencyUtil, DEFAULT_MESSAGES, DateAdapter, DateRange, DateRangePickerComponent, DateUtil, DatepickerModule, DatetimepickerModule, DefaultMatCalendarRangeStrategy, DialogDTO, DialogService, DocumentUtil, EmailUtil, ErrorInterceptor, FilterDTO, GIPIAbstractComponent, GIPIAbstractCrudComponent, GIPIAbstractCrudService, GIPIAbstractDTO, GIPIAbstractFilterModel, GIPIAbstractFindComponent, GIPIAbstractFormComponent, GIPIAbstractModel, GIPIAbstractService, GIPIActionRowComponent, GIPIAppliedFilter, GIPIAutowired, GIPIBadgeComponent, GIPIBaseService, GIPIBreakpointService, GIPIButtonComponent, GIPICardComponent, GIPIColDirective, GIPIConfirmationDialogComponent, GIPIConnectedOverlayScrollHandler, GIPIDateAndTimePickerComponent, GIPIDatetimeAdapter, GIPIDatetimepickerCalendarBodyComponent, GIPIDatetimepickerCalendarCell, GIPIDatetimepickerCalendarComponent, GIPIDatetimepickerClockComponent, GIPIDatetimepickerComponent, GIPIDatetimepickerContentComponent, GIPIDatetimepickerFilterType, GIPIDatetimepickerInputDirective, GIPIDatetimepickerInputEvent, GIPIDatetimepickerMonthViewComponent, GIPIDatetimepickerToggleComponent, GIPIDatetimepickerYearViewComponent, GIPIDomHandler, GIPIDropdownMenuComponent, GIPIDynamicTabDirective, GIPIEmptyStateComponent, GIPIExpansionPanelComponent, GIPIFileDragAndDropComponent, GIPIFileService, GIPIFooterComponent, GIPIFormFieldComponent, GIPIHelpfulTipComponent, GIPIInfiniteScrollDirective, GIPIInputCheckboxComponent, GIPIInputCurrencyComponent, GIPIInputMonthPickerComponent, GIPIInputPhoneComponent, GIPIInputSearchComponent, GIPIInputSelectComponent, GIPIInputSelectEnumComponent, GIPIInputSelectListboxComponent, GIPIInputSelectPagedComponent, GIPIInputSelectRadioComponent, GIPINativeDatetimeAdapter, GIPINativeDatetimeModule, GIPINotificationComponent, GIPINoveltiesComponent, GIPIOverlayComponent, GIPIOverlayService, GIPIPageEvent, GIPIPageModel, GIPIPaginatePipe, GIPIPaginationControlsDirective, GIPIPaginationService, GIPIPasswordRequerimentsComponent, GIPIPopoverComponent, GIPIPopoverTarget, GIPIPopoverTrigger, GIPIRadioGroupComponent, GIPIRangePageComponent, GIPIRangeSliderComponent, GIPIResizeService, GIPIRowDirective, GIPISelectButtonComponent, GIPISelectComponent, GIPISessionStorageService, GIPISidenavComponent, GIPISidenavContainerComponent, GIPISkeletonComponent, GIPISkeletonDirective, GIPISlideToggleComponent, GIPISortDirectionEnum, GIPISortModel, GIPISplitButtonComponent, GIPIStepperComponent, GIPITabComponent, GIPITabGroupComponent, GIPITableBodyComponent, GIPITableComponent, GIPITableFooterComponent, GIPITableHeaderComponent, GIPITablePaginationComponent, GIPITableProgressBarComponent, GIPITemplateDirective, GIPITextareaComponent, GIPIToolbarComponent, GIPITopNavComponent, GIPIUserProfileComponent, GIPI_BREAKPOINTS, GIPI_CUSTOM_BREAKPOINTS_PROVIDER, GIPI_DATETIMEPICKER_VALIDATORS, GIPI_DATETIMEPICKER_VALUE_ACCESSOR, GIPI_DATETIME_FORMATS, GIPI_MONTH_YEAR_SCROLL_STRATEGY, GIPI_MONTH_YEAR_SCROLL_STRATEGY_FACTORY, GIPI_MONTH_YEAR_SCROLL_STRATEGY_FACTORY_PROVIDER, GIPI_NATIVE_DATETIME_FORMATS, INJECTOR, IconComponent, InputComponent, InputCurrencyComponent, InputFileComponent, InputListboxDTO, ItssTemplate, LoadingComponent, LoadingOverlayComponent, LocalTimeEnum, LocalTimePipe, MAT_DATEPICKER_SCROLL_STRATEGY, MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY, MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY_PROVIDER, MAT_DATEPICKER_VALIDATORS, MAT_DATEPICKER_VALUE_ACCESSOR, MAT_DATE_FORMATS, MAT_DATE_LOCALE, MAT_DATE_LOCALE_FACTORY, MAT_DATE_LOCALE_PROVIDER, MAT_DATE_RANGE_SELECTION_STRATEGY, MAT_NATIVE_DATE_FORMATS, MAT_RANGE_DATE_SELECTION_MODEL_FACTORY, MAT_RANGE_DATE_SELECTION_MODEL_PROVIDER, MAT_SINGLE_DATE_SELECTION_MODEL_FACTORY, MAT_SINGLE_DATE_SELECTION_MODEL_PROVIDER, MatCalendar, MatCalendarBody, MatCalendarCell, MatCalendarHeader, MatDateRangeInput, MatDateRangePicker, MatDateSelectionModel, MatDatepicker, MatDatepickerContent, MatDatepickerInput, MatDatepickerInputEvent, MatDatepickerIntl, MatDatepickerToggle, MatDatepickerToggleIcon, MatEndDate, MatMonthView, MatMultiYearView, MatRangeDateSelectionModel, MatSingleDateSelectionModel, MatStartDate, MatYearView, MaxRangeDirective, MaxRangeSelectionStrategy, MenuDTO, MenuTypeEnum, MessageDTO, MessageService, MonthPickerModel, MonthYear, MonthYearPickerComponent, MonthYearPickerModule, MultitenantModel, NativeDateAdapter, NativeDatetimeModule, NavService, NumberUtil, ObjectUtil, OverlayPanelComponent, POINTS_NAME, PageDTO, PasswordUtil, Permission, PermissionGuard, PhoneMaskDirective, PhoneUtil, Platform, PopoverComponent, PopoverRef, PopoverService, PresetRangeComponent, RadioButtonEnum, RadioGroupEntityComponent, RadioGroupEnumComponent, RangePage, Role, SelectButtonAddComponent, SelectButtonNextBatchComponent, SelectEntityComponent, SelectEntityPagedComponent, SelectEnumComponent, SelectMonthPeriodComponent, SelectNoEntriesFoundDirective, SelectSearchClearDirective, SelectSearchComponent, SharedModule, SlideToggleComponent, SortDTO, SortDirectionEnum, SortModel, StepperComponent, StringUtil, SvgRegisterService, TabDTO, TabModel, TableColumnBuilder, TableColumnBuilderModel, TableColumnDTO, TableColumnModel, TableComponent, TableScrolledComponent, TimeUtil, TokenDTO, URLParamsUtil, UUIDUtil, customCurrencyMaskConfig, getReflectType, gridResponsiveMap, matDatepickerAnimations, nextUniqueId$o as nextUniqueId, siderResponsiveMap, transformPopover, yearsPerPage$1 as yearsPerPage, yearsPerRow, ƟCMP, ƟFAC, ƟPROV, ɵ0$5 as ɵ0, ɵ1$1 as ɵ1, MAT_DATE_RANGE_INPUT_PARENT as ɵa, MAT_CALENDAR_RANGE_STRATEGY_PROVIDER_FACTORY as ɵb, MAT_CALENDAR_RANGE_STRATEGY_PROVIDER as ɵc, MatDatepickerBase as ɵd, MAT_FORM_FIELD as ɵe, MatDatepickerInputBase as ɵf, GIPINgConfig as ɵg, GIPIChipsComponent as ɵh, GIPIFileDragAndDropDirective as ɵi, TextareaComponent as ɵj, UpperCaseDirective as ɵk, LowerCaseDirective as ɵl, SpaceDropDirective as ɵm, InputSelectInfiniteScrollDirective as ɵn, ITSS_SELECT_SEARCH_DEFAULT_OPTIONS as ɵo, MaterialModule as ɵq, DatepickerComponent as ɵr, slideCalendar as ɵs, GIPIDatetimepickerMultiYearViewComponent as ɵt };
29216
32539
  //# sourceMappingURL=gipisistemas-ng-core.js.map