ud-components 0.9.2 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { EventEmitter, Output, Input, Component, Pipe, input, computed, TemplateRef, ChangeDetectionStrategy, ViewEncapsulation, inject, ElementRef, ViewContainerRef, effect, Directive, NgZone, DestroyRef, viewChild, signal, HostListener, ViewChild, CUSTOM_ELEMENTS_SCHEMA, forwardRef, HostBinding, Inject, Optional, Injectable, LOCALE_ID, isSignal, ContentChild, ContentChildren, output,
|
|
2
|
+
import { EventEmitter, Output, Input, Component, Pipe, input, computed, TemplateRef, ChangeDetectionStrategy, ViewEncapsulation, inject, ElementRef, ViewContainerRef, effect, Directive, NgZone, DestroyRef, viewChild, signal, HostListener, ViewChild, CUSTOM_ELEMENTS_SCHEMA, forwardRef, HostBinding, Inject, Optional, Injectable, LOCALE_ID, isSignal, ContentChild, ContentChildren, output, afterRenderEffect, ViewChildren } from '@angular/core';
|
|
3
3
|
import { MatDrawer, MatDrawerContainer, MatDrawerContent } from '@angular/material/sidenav';
|
|
4
4
|
import { MatToolbar } from '@angular/material/toolbar';
|
|
5
5
|
import * as i1 from '@angular/common';
|
|
@@ -5118,7 +5118,12 @@ class TimelineGridComponent {
|
|
|
5118
5118
|
suppressNextClickTimer = null;
|
|
5119
5119
|
constructor(translate, destroyRef) {
|
|
5120
5120
|
this.translate = translate;
|
|
5121
|
-
|
|
5121
|
+
// Reads what changes the rendered rows or their width, so it reruns after those change.
|
|
5122
|
+
afterRenderEffect(() => {
|
|
5123
|
+
this.visible();
|
|
5124
|
+
this.canvasWidth();
|
|
5125
|
+
this.measureRows();
|
|
5126
|
+
});
|
|
5122
5127
|
// A drag still active when the component is torn down must not leave
|
|
5123
5128
|
// window-level listeners behind.
|
|
5124
5129
|
destroyRef.onDestroy(() => {
|
|
@@ -5249,8 +5254,8 @@ class TimelineGridComponent {
|
|
|
5249
5254
|
}
|
|
5250
5255
|
/**
|
|
5251
5256
|
* Measures the rendered bars and group headers whose text needs more room
|
|
5252
|
-
* than its base height, so the next layout grows that row.
|
|
5253
|
-
*
|
|
5257
|
+
* than its base height, so the next layout grows that row. It only writes
|
|
5258
|
+
* when a height changes, so it settles.
|
|
5254
5259
|
*/
|
|
5255
5260
|
measureRows() {
|
|
5256
5261
|
const root = this.scroller().nativeElement;
|
|
@@ -8059,37 +8064,6 @@ function udComponentsOnlyTranslateLoader() {
|
|
|
8059
8064
|
};
|
|
8060
8065
|
}
|
|
8061
8066
|
|
|
8062
|
-
var FeatureFlagKey;
|
|
8063
|
-
(function (FeatureFlagKey) {
|
|
8064
|
-
FeatureFlagKey["ABSENCES"] = "ABSENCES";
|
|
8065
|
-
FeatureFlagKey["SHUTTLES"] = "SHUTTLES";
|
|
8066
|
-
FeatureFlagKey["SURVEYS"] = "SURVEYS";
|
|
8067
|
-
FeatureFlagKey["ROOM_INSPECTIONS"] = "ROOM_INSPECTIONS";
|
|
8068
|
-
FeatureFlagKey["DASHBOARD_METRICS"] = "DASHBOARD_METRICS";
|
|
8069
|
-
FeatureFlagKey["MARKETPLACE"] = "MARKETPLACE";
|
|
8070
|
-
FeatureFlagKey["NOTIFICATIONS"] = "NOTIFICATIONS";
|
|
8071
|
-
FeatureFlagKey["CURFEWS"] = "CURFEWS";
|
|
8072
|
-
FeatureFlagKey["CURFEWS_SHOW_AGE_LIMIT"] = "CURFEWS_SHOW_AGE_LIMIT";
|
|
8073
|
-
// Routes signing between the in-app flow (on) and e-signatures.com (off)
|
|
8074
|
-
FeatureFlagKey["DOCUMENT_SIGNING"] = "DOCUMENT_SIGNING";
|
|
8075
|
-
// Room-type inventory catalogues, per-room ledgers and item-by-item
|
|
8076
|
-
// inspection checklists. Off means inspections behave exactly as they did
|
|
8077
|
-
// before the feature existed.
|
|
8078
|
-
FeatureFlagKey["ROOM_INVENTORY"] = "ROOM_INVENTORY";
|
|
8079
|
-
// The roommate-invite step in the student registration wizard.
|
|
8080
|
-
FeatureFlagKey["ROOM_INVITES"] = "ROOM_INVITES";
|
|
8081
|
-
// Bookings and registrations by their own dates instead of by term. Off
|
|
8082
|
-
// means every read behaves as it did on terms.
|
|
8083
|
-
FeatureFlagKey["DATE_RANGE_STAYS"] = "DATE_RANGE_STAYS";
|
|
8084
|
-
// Not a boolean gate: a STRING/TIMEZONE value naming the university's IANA
|
|
8085
|
-
// zone id, read with getValue rather than isEnabled.
|
|
8086
|
-
FeatureFlagKey["UNIVERSITY_TIMEZONE"] = "UNIVERSITY_TIMEZONE";
|
|
8087
|
-
// The quoted total on the student's stay summary in the student app.
|
|
8088
|
-
FeatureFlagKey["SHOW_TOTAL_QUOTE_FOR_STUDENT"] = "SHOW_TOTAL_QUOTE_FOR_STUDENT";
|
|
8089
|
-
// Parking lots, spaces, assignments and the waitlist.
|
|
8090
|
-
FeatureFlagKey["PARKING"] = "PARKING";
|
|
8091
|
-
})(FeatureFlagKey || (FeatureFlagKey = {}));
|
|
8092
|
-
|
|
8093
8067
|
var LoadingStatus;
|
|
8094
8068
|
(function (LoadingStatus) {
|
|
8095
8069
|
LoadingStatus["INIT"] = "INIT";
|
|
@@ -8155,5 +8129,5 @@ const generateTimeOptions = (start, end, intervalMinutes = 5) => {
|
|
|
8155
8129
|
* Generated bundle index. Do not edit.
|
|
8156
8130
|
*/
|
|
8157
8131
|
|
|
8158
|
-
export { AppShellComponent, ApplicationStatus, AutocompleteComponent, CalendarComponent, CalendarSlotColor, CapitalizePipe, CarouselComponent, CheckboxComponent, ChipInputComponent, ColumnVisibilityModalComponent, CustomInputComponent, CustomSnackbarComponent, CustomTableComponent, DateInputComponent, DateOperator, DateRangeInputComponent, DynamicComponentComponent, EditViewComponent, EditViewSectionDirective,
|
|
8132
|
+
export { AppShellComponent, ApplicationStatus, AutocompleteComponent, CalendarComponent, CalendarSlotColor, CapitalizePipe, CarouselComponent, CheckboxComponent, ChipInputComponent, ColumnVisibilityModalComponent, CustomInputComponent, CustomSnackbarComponent, CustomTableComponent, DateInputComponent, DateOperator, DateRangeInputComponent, DynamicComponentComponent, EditViewComponent, EditViewSectionDirective, FileInputComponent, FilterType, GROUP_ROW_HEIGHT, IconColor, KpiComponent, KpiDataType, KpiPillType, KpiProgressBarType, KpiVariant, LoadingStatus, ModalComponent, ModalInputType, MoneyInputComponent, MultiSelectComponent, MultiSelectMatchMode, NumberOperator, OCCUPANCY_GRID_HEADER_HEIGHT, OccupancyGridComponent, PhoneInputComponent, PillComponent, PillToggleComponent, PluralizePipe, ProgressBarComponent, SIDENAV_LOGO, SIDENAV_LOGO_COLLAPSED, SafePipe, SidenavComponent, SingularPipe, SnackbarType, StringOperator, SummaryViewComponent, TIMELINE_GRID_DEFAULT_LEGEND, TIMELINE_GRID_HEADER_HEIGHT, TableDisplayColumnType, TabsComponent, TelInputComponent, TextInputComponent, TextareaComponent, TimePickerComponent, TimelineGridComponent, ToObservablePipe, ToggleComponent, ToggleOptionComponent, TranslateWrapperService, UD_COMPONENTS_TRANSLATIONS, UdButtonComponent, UdButtonToggleComponent, UdMenuComponent, UdPreviewContainerComponent, UdStepContentDirective, UdStepperComponent, UdTooltipComponent, UdTooltipDirective, activeNavRoute, addDays, assignLanes, barGeometry, buildRows, capitalize, centsToMoney, clampToClosures, closureGeometry, dateAtOffset, dayColumns, dayOfMonth, daysBetween, epochDay, formatLocalDate, formatLocalDateTime, formatLocalDateTimeLongForm, formatLocalTime, formatLocalTimeWithMinutes, formatLocalTimeWithMinutesAmPm, formatMoney, formatMonthYear, formatPhoneNumber, formatStringDate, formatStringDateTime, generateTimeOptions, groupThousands, inListValidator, isIsoDate, laneForSpan, laneNeighborBound, maxIso, minIso, moneyToCents, monthOf, monthSegments, overbooksRoom, overlapsClosure, overlapsRoom, parseLocalDate, parseMoney, pluralize, positionRows, rowHeight, spaceCase, takenOn, totalHeight, udComponentsOnlyTranslateLoader, udComponentsTranslationsFor, updateArray, visibleRange, weekday, weekendOffsetDays, withLoadingState, withUdComponentsTranslations, yearOf };
|
|
8159
8133
|
//# sourceMappingURL=ud-components.mjs.map
|