@energycap/components 0.46.14 → 0.46.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@energycap/components",
|
|
3
|
-
"version": "0.46.
|
|
3
|
+
"version": "0.46.16",
|
|
4
4
|
"schematics": "./schematics/collection.json",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"tslib": "^2.0.0"
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
"@angular/cdk": ">=21.0.0",
|
|
14
14
|
"@ngx-translate/core": "^15.0.0",
|
|
15
15
|
"popper.js": "~1.11.1",
|
|
16
|
-
"lodash": "^4.17.21",
|
|
17
|
-
"
|
|
16
|
+
"lodash-es": "^4.17.21",
|
|
17
|
+
"luxon": "^3.5.0",
|
|
18
18
|
"ngx-clipboard": "^16.0.0"
|
|
19
19
|
},
|
|
20
20
|
"module": "fesm2022/energycap-components.mjs",
|
|
@@ -49,4 +49,17 @@
|
|
|
49
49
|
font-style: normal;
|
|
50
50
|
font-weight: bold;
|
|
51
51
|
line-height: 1;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/// Visually hides content while keeping it available to screen readers
|
|
55
|
+
@mixin sr-only {
|
|
56
|
+
position: absolute;
|
|
57
|
+
width: 1px;
|
|
58
|
+
height: 1px;
|
|
59
|
+
padding: 0;
|
|
60
|
+
margin: -1px;
|
|
61
|
+
overflow: hidden;
|
|
62
|
+
clip: rect(0, 0, 0, 0);
|
|
63
|
+
white-space: nowrap;
|
|
64
|
+
border: 0;
|
|
52
65
|
}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { OnInit, OnChanges, AfterViewInit, OnDestroy, TemplateRef, EventEmitter, ElementRef, SimpleChanges, PipeTransform, ViewContainerRef, Renderer2, QueryList, ApplicationRef, AfterContentInit, Type, ComponentRef, ComponentFactoryResolver, AfterViewChecked, Injector, Provider, ModuleWithProviders } from '@angular/core';
|
|
3
|
-
import * as
|
|
3
|
+
import * as i74 from '@angular/router';
|
|
4
4
|
import { Params, Router, ActivatedRoute, ActivatedRouteSnapshot, ParamMap, UrlSegment, QueryParamsHandling } from '@angular/router';
|
|
5
5
|
import { Subject, Observable } from 'rxjs';
|
|
6
|
-
import * as
|
|
6
|
+
import * as i73 from '@angular/forms';
|
|
7
7
|
import { UntypedFormGroup, AbstractControl, ValidatorFn, ValidationErrors, UntypedFormArray, UntypedFormControl, FormControlDirective, AsyncValidatorFn, FormGroup, FormControl } from '@angular/forms';
|
|
8
|
-
import * as
|
|
8
|
+
import * as i75 from '@ngx-translate/core';
|
|
9
9
|
import { TranslateService } from '@ngx-translate/core';
|
|
10
|
-
import
|
|
10
|
+
import { DateTime } from 'luxon';
|
|
11
11
|
import * as _angular_cdk_overlay from '@angular/cdk/overlay';
|
|
12
12
|
import { OverlayRef, Overlay as Overlay$1, CdkConnectedOverlay } from '@angular/cdk/overlay';
|
|
13
13
|
import Popper from 'popper.js';
|
|
14
14
|
import { ClipboardService } from 'ngx-clipboard';
|
|
15
|
-
import * as
|
|
15
|
+
import * as i76 from '@angular/cdk/a11y';
|
|
16
16
|
import { InteractivityChecker } from '@angular/cdk/a11y';
|
|
17
|
-
import * as
|
|
18
|
-
import * as
|
|
17
|
+
import * as i72 from '@angular/common';
|
|
18
|
+
import * as i78 from '@angular/cdk/scrolling';
|
|
19
19
|
import { HttpErrorResponse } from '@angular/common/http';
|
|
20
20
|
|
|
21
21
|
/**
|
|
@@ -300,7 +300,7 @@ declare class UserPreferenceService {
|
|
|
300
300
|
static ɵprov: i0.ɵɵInjectableDeclaration<UserPreferenceService>;
|
|
301
301
|
}
|
|
302
302
|
|
|
303
|
-
type DateDisplay = Date |
|
|
303
|
+
type DateDisplay = Date | DateTime | string | number | null;
|
|
304
304
|
/**
|
|
305
305
|
* Format a date to the user's preference for display
|
|
306
306
|
* @deprecated Use DateDisplayPipe2 instead
|
|
@@ -2940,6 +2940,8 @@ declare class ConfirmComponent implements OnInit, DialogContent<ConfirmDialogCon
|
|
|
2940
2940
|
formGroup: UntypedFormGroup;
|
|
2941
2941
|
status: Overlay;
|
|
2942
2942
|
showTextBox: boolean;
|
|
2943
|
+
/** Result of the inline confirm action, used for the screen-reader status text in the result template */
|
|
2944
|
+
inlineResultSuccess: boolean;
|
|
2943
2945
|
private destroyed;
|
|
2944
2946
|
/**
|
|
2945
2947
|
* Provided by the calling component to tell the confirm what to show
|
|
@@ -5636,6 +5638,10 @@ declare class TooltipDirective implements OnInit {
|
|
|
5636
5638
|
* if we never showed the tooltip this will remain null and we won't have an event to unsubscribe to
|
|
5637
5639
|
*/
|
|
5638
5640
|
private mouseMoveUnsubscribe;
|
|
5641
|
+
/**Set when we show a tooltip so Escape can dismiss it without moving the pointer (WCAG 1.4.13).
|
|
5642
|
+
* Unsubscribed when hide fires, like mouseMoveUnsubscribe.
|
|
5643
|
+
*/
|
|
5644
|
+
private keydownUnsubscribe;
|
|
5639
5645
|
constructor(tooltipService: TooltipService, element: ElementRef, renderer2: Renderer2);
|
|
5640
5646
|
ngOnInit(): void;
|
|
5641
5647
|
/**Detects where the mouse is to trigger the leave/hide process
|
|
@@ -5643,7 +5649,11 @@ declare class TooltipDirective implements OnInit {
|
|
|
5643
5649
|
* On some browsers, and on some actions (especially scroll) the mouseLeave seems to never fire */
|
|
5644
5650
|
onMouseMove(event: MouseEvent): void;
|
|
5645
5651
|
onMouseOver(): void;
|
|
5646
|
-
onLeave(): void;
|
|
5652
|
+
onLeave(event?: MouseEvent): void;
|
|
5653
|
+
onFocusIn(): void;
|
|
5654
|
+
onFocusOut(): void;
|
|
5655
|
+
onKeydown(event: KeyboardEvent): void;
|
|
5656
|
+
private isPointerOverTooltip;
|
|
5647
5657
|
private checkInputsValue;
|
|
5648
5658
|
/**
|
|
5649
5659
|
* createTooltipOptions
|
|
@@ -5810,6 +5820,13 @@ declare class QuarterSelectionStrategy extends DateInputSelectionStrategyBase {
|
|
|
5810
5820
|
readonly showSecondaryTextbox = false;
|
|
5811
5821
|
readonly showSecondaryCalendar = false;
|
|
5812
5822
|
formatSelection(selection?: DateInput.Selection | null): DateInput.TextboxGroup['value'];
|
|
5823
|
+
/**
|
|
5824
|
+
* Format of the quarter range shown in the textbox (see {@link formatSelection}), e.g. "Jan–Mar, 2023".
|
|
5825
|
+
* Included in parsing so the displayed value round-trips (Luxon parsing is strict and would otherwise
|
|
5826
|
+
* reject it, clearing the selection when the textbox is blurred). Both month tokens land in the same
|
|
5827
|
+
* quarter, so parsing keys off whichever the parser resolves.
|
|
5828
|
+
*/
|
|
5829
|
+
private readonly rangeParseFormats;
|
|
5813
5830
|
parseTextboxValues(value: DateInput.TextboxGroup['value'], parseFormats: string[], opts?: DateInput.ParsingOptions): DateInput.Selection | null;
|
|
5814
5831
|
getSelectionFromDate(date: Date): DateInput.Selection | null;
|
|
5815
5832
|
getNewSelectionFromExisting(previousSelection?: DateInput.Selection): DateInput.Selection | null;
|
|
@@ -5849,6 +5866,17 @@ declare namespace DateInput {
|
|
|
5849
5866
|
type SelectionMode = 'day' | 'last7Days' | 'last28Days' | 'month' | 'quarter' | 'year' | 'range';
|
|
5850
5867
|
function isSelectionSingleDate(selection?: Selection | null): selection is Date;
|
|
5851
5868
|
function isSelectionRange(selection?: Selection | null): selection is Range;
|
|
5869
|
+
/**
|
|
5870
|
+
* Coerces a selection into one backed by real {@link Date} objects.
|
|
5871
|
+
*
|
|
5872
|
+
* The form model is typed as `Date | Range`, but hosts commonly bind ISO date strings
|
|
5873
|
+
* (e.g. values straight off an API response). The display path tolerates strings via
|
|
5874
|
+
* Luxon parsing, but the calendar view builders pass the value to `DateTime.fromJSDate`,
|
|
5875
|
+
* which only accepts a `Date` — a string yields an Invalid Date and crashes the calendar
|
|
5876
|
+
* (`RangeError: Invalid time value`). Normalizing at the boundary lets all downstream
|
|
5877
|
+
* calendar/stepper logic rely on actual Dates. Invalid/unparseable values become null.
|
|
5878
|
+
*/
|
|
5879
|
+
function normalizeSelection(selection?: Selection | null): Selection | null;
|
|
5852
5880
|
type ParsingOptions = {
|
|
5853
5881
|
/**
|
|
5854
5882
|
* When configured, the parser will shift the parsed date to the current year if the date is below this date.
|
|
@@ -5906,7 +5934,7 @@ declare class CalendarComponent implements OnChanges, OnInit {
|
|
|
5906
5934
|
yearRange?: string;
|
|
5907
5935
|
/** Array of calendar item rows to display in the calendar. */
|
|
5908
5936
|
calendarItems: Calendar.Item[][];
|
|
5909
|
-
/** Weekday labels to show at the top of the calendar in day view. */
|
|
5937
|
+
/** Weekday labels to show at the top of the calendar in day view. Starts on Sunday to match the calendar grid layout. */
|
|
5910
5938
|
weekDays: string[];
|
|
5911
5939
|
disablePreviousButton: boolean;
|
|
5912
5940
|
disableNextButton: boolean;
|
|
@@ -6105,6 +6133,21 @@ declare class DateDisplayPipe2 implements PipeTransform {
|
|
|
6105
6133
|
static ɵpipe: i0.ɵɵPipeDeclaration<DateDisplayPipe2, "dateDisplay2", false>;
|
|
6106
6134
|
}
|
|
6107
6135
|
|
|
6136
|
+
/**
|
|
6137
|
+
* Same behavior as {@link DateDisplayPipe2}, but always appends the short named
|
|
6138
|
+
* timezone abbreviation (e.g. `EST`, `PDT`, `UTC`) to the output. Use this when
|
|
6139
|
+
* downstream consumers need to disambiguate the timezone of a rendered date.
|
|
6140
|
+
*
|
|
6141
|
+
* @example <span>{{ someDate | dateDisplay3 | async }}</span>
|
|
6142
|
+
*/
|
|
6143
|
+
declare class DateDisplayPipe3 implements PipeTransform {
|
|
6144
|
+
private userPrefs;
|
|
6145
|
+
constructor(userPrefs: UserPreferenceService);
|
|
6146
|
+
transform(date?: DateDisplay, options?: DateDisplayPipeOptions): Promise<string>;
|
|
6147
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DateDisplayPipe3, never>;
|
|
6148
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<DateDisplayPipe3, "dateDisplay3", false>;
|
|
6149
|
+
}
|
|
6150
|
+
|
|
6108
6151
|
/**
|
|
6109
6152
|
* Position of the menu relative to the input
|
|
6110
6153
|
*/
|
|
@@ -6420,7 +6463,7 @@ declare class ComponentsModule {
|
|
|
6420
6463
|
*/
|
|
6421
6464
|
static forRoot(config: ComponentsModuleConfig): ModuleWithProviders<ComponentsModule>;
|
|
6422
6465
|
static ɵfac: i0.ɵɵFactoryDeclaration<ComponentsModule, never>;
|
|
6423
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ComponentsModule, [typeof ButtonComponent, typeof TabsComponent, typeof TextboxComponent, typeof NavItemActiveDirective, typeof SpinnerComponent, typeof ViewOverlayComponent, typeof BannerComponent, typeof ResizableTableDirective, typeof TabsComponent, typeof TableComponent, typeof SearchableTableComponent, typeof ComboboxComponent, typeof MenuComponent, typeof PopupContainerDirective, typeof DropdownComponent, typeof ConfirmComponent, typeof DialogComponent, typeof DateDisplayPipe, typeof TimeDisplayPipe, typeof MockDateDisplayPipe, typeof RadioButtonComponent, typeof CheckboxComponent, typeof NumericboxComponent, typeof AvatarComponent, typeof AppBarComponent, typeof SplashComponent, typeof IfViewportWidthDirective, typeof ClickAreaForDirective, typeof CollapsibleToggleComponent, typeof TableMasterRowComponent, typeof TableMasterHeaderRowComponent, typeof TableDetailRowComponent, typeof TableLockedColumnComponent, typeof TableSelectableRowComponent, typeof PopoverComponent, typeof TablePaginationComponent, typeof RowCountPipe, typeof CopyButtonDirective, typeof TablePaginationComponent, typeof TagsComponent, typeof FormControlComponent, typeof SelectComponent, typeof ItemDisplayComponent, typeof TableSelectableRowComponent, typeof ResizableColumnComponent, typeof DialogGroupComponent, typeof FileUploadComponent, typeof FormGroupComponent, typeof JsonDisplayComponent, typeof ToastComponent, typeof ToasterComponent, typeof PageViewComponent, typeof PageTitleComponent, typeof WizardProgressComponent, typeof WizardButtonsComponent, typeof HierarchyTreeComponent, typeof TreeComponent, typeof RelativeDatePipe, typeof ResizableComponent, typeof HighlightTextPipe, typeof FormControlLabelComponent, typeof ItemPickerComponent, typeof HelpPopoverComponent, typeof LinkButtonComponent, typeof TooltipComponent, typeof CopyTableButtonDirective, typeof TooltipDirective, typeof CalendarComponent, typeof CalendarItemComponent, typeof DateInputComponent, typeof KeyboardNavContainerDirective, typeof DateDisplayPipe2, typeof MultiselectComponent], [typeof
|
|
6466
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ComponentsModule, [typeof ButtonComponent, typeof TabsComponent, typeof TextboxComponent, typeof NavItemActiveDirective, typeof SpinnerComponent, typeof ViewOverlayComponent, typeof BannerComponent, typeof ResizableTableDirective, typeof TabsComponent, typeof TableComponent, typeof SearchableTableComponent, typeof ComboboxComponent, typeof MenuComponent, typeof PopupContainerDirective, typeof DropdownComponent, typeof ConfirmComponent, typeof DialogComponent, typeof DateDisplayPipe, typeof TimeDisplayPipe, typeof MockDateDisplayPipe, typeof RadioButtonComponent, typeof CheckboxComponent, typeof NumericboxComponent, typeof AvatarComponent, typeof AppBarComponent, typeof SplashComponent, typeof IfViewportWidthDirective, typeof ClickAreaForDirective, typeof CollapsibleToggleComponent, typeof TableMasterRowComponent, typeof TableMasterHeaderRowComponent, typeof TableDetailRowComponent, typeof TableLockedColumnComponent, typeof TableSelectableRowComponent, typeof PopoverComponent, typeof TablePaginationComponent, typeof RowCountPipe, typeof CopyButtonDirective, typeof TablePaginationComponent, typeof TagsComponent, typeof FormControlComponent, typeof SelectComponent, typeof ItemDisplayComponent, typeof TableSelectableRowComponent, typeof ResizableColumnComponent, typeof DialogGroupComponent, typeof FileUploadComponent, typeof FormGroupComponent, typeof JsonDisplayComponent, typeof ToastComponent, typeof ToasterComponent, typeof PageViewComponent, typeof PageTitleComponent, typeof WizardProgressComponent, typeof WizardButtonsComponent, typeof HierarchyTreeComponent, typeof TreeComponent, typeof RelativeDatePipe, typeof ResizableComponent, typeof HighlightTextPipe, typeof FormControlLabelComponent, typeof ItemPickerComponent, typeof HelpPopoverComponent, typeof LinkButtonComponent, typeof TooltipComponent, typeof CopyTableButtonDirective, typeof TooltipDirective, typeof CalendarComponent, typeof CalendarItemComponent, typeof DateInputComponent, typeof KeyboardNavContainerDirective, typeof DateDisplayPipe2, typeof DateDisplayPipe3, typeof MultiselectComponent], [typeof i72.CommonModule, typeof i73.FormsModule, typeof i73.ReactiveFormsModule, typeof i74.RouterModule, typeof i75.TranslateModule, typeof i76.A11yModule, typeof _angular_cdk_overlay.OverlayModule, typeof i78.ScrollingModule], [typeof ButtonComponent, typeof TabsComponent, typeof TextboxComponent, typeof NavItemActiveDirective, typeof SpinnerComponent, typeof ViewOverlayComponent, typeof BannerComponent, typeof TabsComponent, typeof TableComponent, typeof SearchableTableComponent, typeof ComboboxComponent, typeof MenuComponent, typeof MultiselectComponent, typeof PopupContainerDirective, typeof DropdownComponent, typeof ConfirmComponent, typeof DialogComponent, typeof DateDisplayPipe, typeof TimeDisplayPipe, typeof RadioButtonComponent, typeof CheckboxComponent, typeof NumericboxComponent, typeof AvatarComponent, typeof AppBarComponent, typeof SplashComponent, typeof IfViewportWidthDirective, typeof ClickAreaForDirective, typeof CollapsibleToggleComponent, typeof TableMasterRowComponent, typeof TableMasterHeaderRowComponent, typeof TableLockedColumnComponent, typeof TableSelectableRowComponent, typeof PopoverComponent, typeof CopyButtonDirective, typeof TablePaginationComponent, typeof TagsComponent, typeof FormControlComponent, typeof SelectComponent, typeof ItemDisplayComponent, typeof ResizableColumnComponent, typeof DialogGroupComponent, typeof FileUploadComponent, typeof FormGroupComponent, typeof JsonDisplayComponent, typeof ToastComponent, typeof ToasterComponent, typeof PageViewComponent, typeof PageTitleComponent, typeof WizardProgressComponent, typeof WizardButtonsComponent, typeof HierarchyTreeComponent, typeof TreeComponent, typeof RelativeDatePipe, typeof ResizableComponent, typeof HighlightTextPipe, typeof FormControlLabelComponent, typeof ItemPickerComponent, typeof HelpPopoverComponent, typeof LinkButtonComponent, typeof TooltipComponent, typeof CopyTableButtonDirective, typeof TooltipDirective, typeof CalendarComponent, typeof DateInputComponent, typeof KeyboardNavContainerDirective, typeof DateDisplayPipe2, typeof DateDisplayPipe3]>;
|
|
6424
6467
|
static ɵinj: i0.ɵɵInjectorDeclaration<ComponentsModule>;
|
|
6425
6468
|
}
|
|
6426
6469
|
|
|
@@ -6483,6 +6526,8 @@ declare class CustomValidators {
|
|
|
6483
6526
|
static domain: ValidatorFn;
|
|
6484
6527
|
}
|
|
6485
6528
|
|
|
6529
|
+
/** Anything accepted by {@link DateTimeHelper.toDateTime} */
|
|
6530
|
+
type DateLike = Date | DateTime | string | number;
|
|
6486
6531
|
/**
|
|
6487
6532
|
* Helper class that provides common date constants and helpful date functions
|
|
6488
6533
|
*/
|
|
@@ -6517,43 +6562,84 @@ declare class DateTimeHelper {
|
|
|
6517
6562
|
*/
|
|
6518
6563
|
static monthFirstParseFormats: string[];
|
|
6519
6564
|
/**
|
|
6520
|
-
*
|
|
6521
|
-
*
|
|
6522
|
-
*
|
|
6523
|
-
* so dates like 2020/09/10 will be parsed the same as 2020-09-10
|
|
6565
|
+
* Luxon parse formats for the month-first preference. Separator characters
|
|
6566
|
+
* in the input are normalized to a hyphen before matching (see {@link parseWithFormats}),
|
|
6567
|
+
* so the formats below intentionally use a single separator.
|
|
6524
6568
|
*/
|
|
6525
|
-
static
|
|
6569
|
+
static luxonMonthFirstParseFormats: string[];
|
|
6526
6570
|
/**
|
|
6527
6571
|
* User input formats that we will parse into a date
|
|
6528
6572
|
* when the users date format preference has day before month
|
|
6529
6573
|
*/
|
|
6530
6574
|
static dateFirstParseFormats: string[];
|
|
6531
6575
|
/**
|
|
6532
|
-
*
|
|
6533
|
-
*
|
|
6534
|
-
* To be used with moment.js. Moment ignores non-alphanumeric characters
|
|
6535
|
-
* so dates like 2020/09/10 will be parsed the same as 2020-09-10
|
|
6576
|
+
* Luxon parse formats for the day-first preference. Separator characters
|
|
6577
|
+
* in the input are normalized to a hyphen before matching (see {@link parseWithFormats}).
|
|
6536
6578
|
*/
|
|
6537
|
-
static
|
|
6579
|
+
static luxonDateFirstParseFormats: string[];
|
|
6538
6580
|
/**
|
|
6539
|
-
*
|
|
6540
|
-
*
|
|
6541
|
-
*
|
|
6542
|
-
* This is not an exhaustive list of formats, but it should cover most common formats.
|
|
6581
|
+
* Luxon parse formats for medium/long date strings (e.g. "Jan 5, 2024").
|
|
6582
|
+
* Shared by date-first and month-first preferences because the month is
|
|
6583
|
+
* not numeric, so the order is unambiguous.
|
|
6543
6584
|
*/
|
|
6544
|
-
static
|
|
6585
|
+
static luxonMedAndLongDateFormats: string[];
|
|
6545
6586
|
/**
|
|
6546
6587
|
* Format to display the time portion of a datetime
|
|
6547
6588
|
*/
|
|
6548
6589
|
static timeFormat: string;
|
|
6590
|
+
/**
|
|
6591
|
+
* Convert any date-like value into a Luxon {@link DateTime}. Strings are parsed
|
|
6592
|
+
* as ISO 8601; numbers are treated as epoch milliseconds. Returns an invalid
|
|
6593
|
+
* DateTime when the input is null/undefined.
|
|
6594
|
+
*/
|
|
6595
|
+
static toDateTime(value: DateLike | null | undefined): DateTime;
|
|
6596
|
+
/**
|
|
6597
|
+
* Translate a moment-style format string (e.g. `MM/DD/YYYY HH:mm:ss A`) into
|
|
6598
|
+
* the Luxon equivalent (`MM/dd/yyyy HH:mm:ss a`). Use this when format strings
|
|
6599
|
+
* originate from external sources (such as user preferences) that still use
|
|
6600
|
+
* moment tokens.
|
|
6601
|
+
*
|
|
6602
|
+
* Only the tokens currently in use across this library are translated:
|
|
6603
|
+
* `Y`→`y`, `D`→`d`, `A`→`a`. `M`, `H`, `h`, `m`, `s` are identical between
|
|
6604
|
+
* the two libraries.
|
|
6605
|
+
*/
|
|
6606
|
+
static momentToLuxonFormat(format: string): string;
|
|
6607
|
+
/**
|
|
6608
|
+
* Format a date-like value using a moment-style format string. The format
|
|
6609
|
+
* string is automatically translated to Luxon tokens, so callers can keep
|
|
6610
|
+
* passing the same preference strings (e.g. `MM/DD/YYYY HH:mm:ss`).
|
|
6611
|
+
*
|
|
6612
|
+
* When `displayInUTC` is true, string inputs without zone info are parsed
|
|
6613
|
+
* as UTC (matching `moment.utc(str)`), and all other inputs are shifted to
|
|
6614
|
+
* the UTC zone for display. Returns an empty string for invalid input.
|
|
6615
|
+
*
|
|
6616
|
+
* Moment's lowercase `a` token produces lowercase `am`/`pm`, but Luxon's
|
|
6617
|
+
* `a` is locale-aware and emits uppercase `AM`/`PM` in en-US. When the
|
|
6618
|
+
* incoming format uses lowercase `a` (and not uppercase `A`), the meridiem
|
|
6619
|
+
* in the output is lowercased to preserve the moment contract for user
|
|
6620
|
+
* preferences like `h:mm:ss a` that are stored externally.
|
|
6621
|
+
*/
|
|
6622
|
+
static formatDate(date: DateLike | null | undefined, momentFormat: string, displayInUTC?: boolean): string;
|
|
6623
|
+
/**
|
|
6624
|
+
* Parse a string against a list of format patterns. Returns the first
|
|
6625
|
+
* successful parse as a {@link DateTime} (which may be invalid if none match).
|
|
6626
|
+
*
|
|
6627
|
+
* Format strings may use either Luxon or moment tokens — each pattern is
|
|
6628
|
+
* run through {@link momentToLuxonFormat} before matching, so callers can
|
|
6629
|
+
* keep passing arrays like `['M/D/YYYY']` from previously moment-based code.
|
|
6630
|
+
*
|
|
6631
|
+
* Mirrors moment's behavior of ignoring separator characters by normalizing
|
|
6632
|
+
* `/`, `.` and `-` in both input and patterns before matching.
|
|
6633
|
+
*/
|
|
6634
|
+
static parseWithFormats(value: string, formats: string[]): DateTime;
|
|
6549
6635
|
/**
|
|
6550
6636
|
* Return true if @see date is equal to the @see endOfTime
|
|
6551
6637
|
*/
|
|
6552
|
-
static isEndOfTime(date:
|
|
6638
|
+
static isEndOfTime(date: DateLike, timeZoneOffset?: boolean): boolean;
|
|
6553
6639
|
/**
|
|
6554
6640
|
* Compare two dates and return true if they represent the same year, month, and day (time is ignored).
|
|
6555
6641
|
*/
|
|
6556
|
-
static isSameDay(date1:
|
|
6642
|
+
static isSameDay(date1: DateLike, date2: DateLike): boolean;
|
|
6557
6643
|
/**
|
|
6558
6644
|
* Get the parse formats based on the given date format. If no date format is
|
|
6559
6645
|
* given, or we don't recognize the format, return the month first parse formats.
|
|
@@ -6561,10 +6647,10 @@ declare class DateTimeHelper {
|
|
|
6561
6647
|
*/
|
|
6562
6648
|
static getParseFormats(dateFormat?: string | null): string[];
|
|
6563
6649
|
/**
|
|
6564
|
-
* Get the
|
|
6650
|
+
* Get the Luxon parse formats based on the given date format. If no date format is
|
|
6565
6651
|
* given, or we don't recognize the format, return the month first parse formats.
|
|
6566
6652
|
*/
|
|
6567
|
-
static
|
|
6653
|
+
static getLuxonParseFormats(dateFormat?: string | null): string[];
|
|
6568
6654
|
/**
|
|
6569
6655
|
* Get relationship start date (favoring date in partialFormState if exists)
|
|
6570
6656
|
* * return default account-meter effective date if no start date found
|
|
@@ -6808,5 +6894,5 @@ declare class MockTranslationHelperService {
|
|
|
6808
6894
|
setLanguage(): void;
|
|
6809
6895
|
}
|
|
6810
6896
|
|
|
6811
|
-
export { AppBarComponent, AvatarComponent, BannerComponent, ButtonComponent, CacheService, Calendar, CalendarComponent, CheckboxComponent, ClickAreaForDirective, CollapsibleToggleComponent, ComboboxComponent, ComponentsModule, ConfirmComponent, ConfirmDialogContext, CopyButtonBaseTestInjectorFactory, CopyButtonDirective, CopyTableButtonDirective, CustomValidators, DateDisplayPipe, DateDisplayPipe2, DateInput, DateInputComponent, DateTimeHelper, DialogCloseDuration, DialogCloseEvent, DialogCloseLatestEvent, DialogComponent, DialogEvent, DialogGroupComponent, DialogOpenDuration, DialogOpenEndEvent, DialogOpenStartEvent, DialogResult, DialogService, DropdownComponent, ErrorService, FileTypeExtensions, FileUploadComponent, FormControlBase, FormControlComponent, FormControlLabelComponent, FormGroupComponent, FormGroupHelper, HelpPopoverComponent, HierarchyBase, HierarchyBaseTestInjectorFactory, HierarchyItem, HierarchyMocks, HierarchyTreeComponent, HighlightTextPipe, IfViewportWidthDirective, ItemDisplayComponent, ItemPickerComponent, ItemPickerSelectableContext, JsonDisplayComponent, JsonHelper, KeyboardNavContainerDirective, LinkButtonComponent, MenuComponent, MockActivatedRoute, MockDateDisplayPipe, MockDialog, MockDialogContent, MockTranslateService, MockTranslationHelperService, MultiselectComponent, NavGroup, NavItemActiveDirective, NumericboxComponent, Overlay, PageBaseComponent, PageBaseComponentTestHelper, PageBaseComponentTestInjectorFactory, PageInitResult, PageStatus, PageStatuses, PageTitleComponent, PageViewComponent, PanelCloseDuration, PanelOpenDuration, PopoverComponent, PopupContainerDirective, RadioButtonComponent, RadioButtonOption, RelativeDatePipe, ResizableBase, ResizableColumnComponent, ResizableComponent, RouterHelper, RowCountPipe, ScrollService, SearchableTableComponent, SelectComponent, SpinnerComponent, SplashComponent, SplashService, SpyFactory, TableComponent, TableLockedColumnComponent, TableMasterHeaderRowComponent, TableMasterRowComponent, TablePaginationComponent, TableSelectableRowComponent, TableSelectableRowContext, TabsComponent, Tag, TagsComponent, TelemetryService, TelemetryTrackerService, TextboxComponent, TimeDisplayPipe, ToastComponent, ToastEvent, ToastService, ToasterComponent, TooltipComponent, TooltipDirective, TooltipService, TreeComponent, UnicodeStrings, UserPreferenceService, ValidationMessageService, ViewOverlayComponent, WindowService, WizardBaseComponent, WizardButtonsComponent, WizardProgressComponent, canadianPostalCodeRegex, clickEvent, dateInputFormatRegex, domainPattern, findAllSpacesPattern, forEachFormControl, getApiError, getControlValue, getDecimalPattern, handleKeyNavigate, integerPattern, isApiError, menuAnimationSpeed, mockRouterFactory, mockRouterHelperFactory, numericboxValidation, orderByIgnoreCase, otherZipCodeRegex, phoneNumberValidationPattern, sortByIgnoreCase, textboxValidation, unitedStatesZipCodeRegex, urlValidationPattern, validateFormGroupValuesAreUnique };
|
|
6812
|
-
export type { ApiError, AppSplashEvent, AppSplashOptions, AvatarUser, BannerCacheEntry, BannerStyle, BannerType, ButtonType, CheckboxState, ClickableElement, ComboboxMenuPosition, ComponentsModuleConfig, ControlLabelPosition, CustomActionResult, DateDisplay, DateDisplayPipeOptions, DatePreferenceContainer, DialogAnimationEvent, DialogContent, DialogOptions, DialogSize, DisplayStatus, DisplayValue, FileOutput, FileType, FileUploadFormGroup, FileValidatorCallback, Help, HelpControl, HelpPopoverConfig, InvalidFileError, KeyNavigateHandlers, LinkItem, LinkTarget, MenuHostElementClasses, MenuItem, MenuRolePattern, MenuTemplateType, MultiselectMenuPosition, NavItem, PagingInfo, PickerItem, PopoverContentPosition, PopupPlacement, PopupStatus, RadioButtonDirection, RadioButtonType, RelativeDateOptions, ResizeCacheEntry, RowCountInfo, SearchableTableRefreshOptions, Tab, TableSearchResults, TableSort, TableSortDirection, TagType, TextboxType, TextboxValidatorParameters, ToastAction, ToastItem, ToastSource, ToggledHierarchyItem, TooltipOptions, TooltipPosition, TreeType, ViewStatus, WizardTab };
|
|
6897
|
+
export { AppBarComponent, AvatarComponent, BannerComponent, ButtonComponent, CacheService, Calendar, CalendarComponent, CheckboxComponent, ClickAreaForDirective, CollapsibleToggleComponent, ComboboxComponent, ComponentsModule, ConfirmComponent, ConfirmDialogContext, CopyButtonBaseTestInjectorFactory, CopyButtonDirective, CopyTableButtonDirective, CustomValidators, DateDisplayPipe, DateDisplayPipe2, DateDisplayPipe3, DateInput, DateInputComponent, DateTimeHelper, DialogCloseDuration, DialogCloseEvent, DialogCloseLatestEvent, DialogComponent, DialogEvent, DialogGroupComponent, DialogOpenDuration, DialogOpenEndEvent, DialogOpenStartEvent, DialogResult, DialogService, DropdownComponent, ErrorService, FileTypeExtensions, FileUploadComponent, FormControlBase, FormControlComponent, FormControlLabelComponent, FormGroupComponent, FormGroupHelper, HelpPopoverComponent, HierarchyBase, HierarchyBaseTestInjectorFactory, HierarchyItem, HierarchyMocks, HierarchyTreeComponent, HighlightTextPipe, IfViewportWidthDirective, ItemDisplayComponent, ItemPickerComponent, ItemPickerSelectableContext, JsonDisplayComponent, JsonHelper, KeyboardNavContainerDirective, LinkButtonComponent, MenuComponent, MockActivatedRoute, MockDateDisplayPipe, MockDialog, MockDialogContent, MockTranslateService, MockTranslationHelperService, MultiselectComponent, NavGroup, NavItemActiveDirective, NumericboxComponent, Overlay, PageBaseComponent, PageBaseComponentTestHelper, PageBaseComponentTestInjectorFactory, PageInitResult, PageStatus, PageStatuses, PageTitleComponent, PageViewComponent, PanelCloseDuration, PanelOpenDuration, PopoverComponent, PopupContainerDirective, RadioButtonComponent, RadioButtonOption, RelativeDatePipe, ResizableBase, ResizableColumnComponent, ResizableComponent, RouterHelper, RowCountPipe, ScrollService, SearchableTableComponent, SelectComponent, SpinnerComponent, SplashComponent, SplashService, SpyFactory, TableComponent, TableLockedColumnComponent, TableMasterHeaderRowComponent, TableMasterRowComponent, TablePaginationComponent, TableSelectableRowComponent, TableSelectableRowContext, TabsComponent, Tag, TagsComponent, TelemetryService, TelemetryTrackerService, TextboxComponent, TimeDisplayPipe, ToastComponent, ToastEvent, ToastService, ToasterComponent, TooltipComponent, TooltipDirective, TooltipService, TreeComponent, UnicodeStrings, UserPreferenceService, ValidationMessageService, ViewOverlayComponent, WindowService, WizardBaseComponent, WizardButtonsComponent, WizardProgressComponent, canadianPostalCodeRegex, clickEvent, dateInputFormatRegex, domainPattern, findAllSpacesPattern, forEachFormControl, getApiError, getControlValue, getDecimalPattern, handleKeyNavigate, integerPattern, isApiError, menuAnimationSpeed, mockRouterFactory, mockRouterHelperFactory, numericboxValidation, orderByIgnoreCase, otherZipCodeRegex, phoneNumberValidationPattern, sortByIgnoreCase, textboxValidation, unitedStatesZipCodeRegex, urlValidationPattern, validateFormGroupValuesAreUnique };
|
|
6898
|
+
export type { ApiError, AppSplashEvent, AppSplashOptions, AvatarUser, BannerCacheEntry, BannerStyle, BannerType, ButtonType, CheckboxState, ClickableElement, ComboboxMenuPosition, ComponentsModuleConfig, ControlLabelPosition, CustomActionResult, DateDisplay, DateDisplayPipeOptions, DateLike, DatePreferenceContainer, DialogAnimationEvent, DialogContent, DialogOptions, DialogSize, DisplayStatus, DisplayValue, FileOutput, FileType, FileUploadFormGroup, FileValidatorCallback, Help, HelpControl, HelpPopoverConfig, InvalidFileError, KeyNavigateHandlers, LinkItem, LinkTarget, MenuHostElementClasses, MenuItem, MenuRolePattern, MenuTemplateType, MultiselectMenuPosition, NavItem, PagingInfo, PickerItem, PopoverContentPosition, PopupPlacement, PopupStatus, RadioButtonDirection, RadioButtonType, RelativeDateOptions, ResizeCacheEntry, RowCountInfo, SearchableTableRefreshOptions, Tab, TableSearchResults, TableSort, TableSortDirection, TagType, TextboxType, TextboxValidatorParameters, ToastAction, ToastItem, ToastSource, ToggledHierarchyItem, TooltipOptions, TooltipPosition, TreeType, ViewStatus, WizardTab };
|