@dereekb/dbx-web 8.13.9 → 8.15.1
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/esm2020/lib/extension/index.mjs +2 -1
- package/esm2020/lib/extension/widget/index.mjs +7 -0
- package/esm2020/lib/extension/widget/widget.component.mjs +54 -0
- package/esm2020/lib/extension/widget/widget.directive.mjs +17 -0
- package/esm2020/lib/extension/widget/widget.list.component.mjs +66 -0
- package/esm2020/lib/extension/widget/widget.mjs +2 -0
- package/esm2020/lib/extension/widget/widget.module.mjs +38 -0
- package/esm2020/lib/extension/widget/widget.service.mjs +45 -0
- package/esm2020/lib/layout/list/list.grid.view.component.mjs +60 -24
- package/esm2020/lib/layout/list/list.layout.module.mjs +6 -2
- package/fesm2015/dereekb-dbx-web.mjs +261 -25
- package/fesm2015/dereekb-dbx-web.mjs.map +1 -1
- package/fesm2020/dereekb-dbx-web.mjs +255 -25
- package/fesm2020/dereekb-dbx-web.mjs.map +1 -1
- package/lib/extension/index.d.ts +1 -0
- package/lib/extension/widget/index.d.ts +6 -0
- package/lib/extension/widget/widget.component.d.ts +20 -0
- package/lib/extension/widget/widget.d.ts +13 -0
- package/lib/extension/widget/widget.directive.d.ts +7 -0
- package/lib/extension/widget/widget.list.component.d.ts +21 -0
- package/lib/extension/widget/widget.module.d.ts +14 -0
- package/lib/extension/widget/widget.service.d.ts +32 -0
- package/lib/layout/list/list.grid.view.component.d.ts +26 -8
- package/lib/layout/list/list.layout.module.d.ts +1 -1
- package/package.json +5 -5
|
@@ -5,7 +5,7 @@ import { BehaviorSubject, map, combineLatest, distinctUntilChanged, shareReplay,
|
|
|
5
5
|
import * as i1$1 from '@angular/material/snack-bar';
|
|
6
6
|
import { MAT_SNACK_BAR_DATA, MatSnackBarModule } from '@angular/material/snack-bar';
|
|
7
7
|
import * as i1$2 from '@dereekb/dbx-core';
|
|
8
|
-
import { AbstractSubscriptionDirective, safeMarkForCheck, AbstractDbxButtonDirective, provideDbxButton, DbxCoreButtonModule, AbstractTransitionWatcherDirective, AbstractDbxActionValueOnTriggerDirective, safeDetectChanges, AbstractDbxAnchorDirective, DbxInjectionComponentModule, expandClickableAnchorLinkTrees, AbstractTransitionDirective, tapDetectChanges, asSegueRef, checkNgContentWrapperHasContent, anchorTypeForAnchor, AnchorType, DbxCoreActionModule, DbxCoreFilterModule, isIdleActionState, canTriggerAction } from '@dereekb/dbx-core';
|
|
8
|
+
import { AbstractSubscriptionDirective, safeMarkForCheck, AbstractDbxButtonDirective, provideDbxButton, DbxCoreButtonModule, AbstractTransitionWatcherDirective, AbstractDbxActionValueOnTriggerDirective, safeDetectChanges, AbstractDbxAnchorDirective, DbxInjectionComponentModule, expandClickableAnchorLinkTrees, AbstractTransitionDirective, tapDetectChanges, asSegueRef, checkNgContentWrapperHasContent, anchorTypeForAnchor, AnchorType, DbxCoreActionModule, DbxCoreFilterModule, isIdleActionState, canTriggerAction, DBX_INJECTION_COMPONENT_DATA } from '@dereekb/dbx-core';
|
|
9
9
|
import ms from 'ms';
|
|
10
10
|
import * as i1 from '@angular/material/button';
|
|
11
11
|
import { MatButtonModule } from '@angular/material/button';
|
|
@@ -15,7 +15,7 @@ import * as i3 from '@angular/material/progress-spinner';
|
|
|
15
15
|
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
|
16
16
|
import * as i3$1 from '@angular/common';
|
|
17
17
|
import { CommonModule } from '@angular/common';
|
|
18
|
-
import { getValueFromGetter, mergeObjects, splitCommaSeparatedStringToSet, modifier, combineMaps, addModifiers, removeModifiers, applyBestFit, isMaybeNot, isNotNullOrEmptyString, toReadableError, build, ServerErrorResponse, UnauthorizedServerErrorResponse, maybeModifierMapToFunction } from '@dereekb/util';
|
|
18
|
+
import { getValueFromGetter, mergeObjects, splitCommaSeparatedStringToSet, modifier, combineMaps, addModifiers, removeModifiers, applyBestFit, isMaybeNot, isNotNullOrEmptyString, toReadableError, build, ServerErrorResponse, UnauthorizedServerErrorResponse, maybeModifierMapToFunction, filterMaybeValues, mapIterable } from '@dereekb/util';
|
|
19
19
|
import * as i3$2 from '@angular/material/progress-bar';
|
|
20
20
|
import { MatProgressBarModule } from '@angular/material/progress-bar';
|
|
21
21
|
import * as i6 from '@angular/material/core';
|
|
@@ -44,7 +44,7 @@ import { isBoolean } from 'class-validator';
|
|
|
44
44
|
import * as i3$4 from 'ngx-infinite-scroll';
|
|
45
45
|
import { InfiniteScrollModule } from 'ngx-infinite-scroll';
|
|
46
46
|
import { HttpErrorResponse } from '@angular/common/http';
|
|
47
|
-
import * as
|
|
47
|
+
import * as i5$1 from '@angular/flex-layout/grid';
|
|
48
48
|
import { FlexLayoutModule } from '@angular/flex-layout';
|
|
49
49
|
import linkifyStr from 'linkify-string';
|
|
50
50
|
import * as i1$8 from '@angular/platform-browser';
|
|
@@ -61,9 +61,9 @@ import * as i2$2 from '@uirouter/core';
|
|
|
61
61
|
import { startOfDay, endOfDay, startOfWeek, endOfWeek, startOfMonth, endOfMonth, differenceInDays, addDays, isSameDay, isBefore, isAfter, isSameMonth } from 'date-fns';
|
|
62
62
|
import { distinctUntilChanged as distinctUntilChanged$1, switchMap as switchMap$1, first as first$1, tap as tap$1, map as map$1, shareReplay as shareReplay$1, withLatestFrom } from 'rxjs/operators';
|
|
63
63
|
import { formatToTimeAndDurationString } from '@dereekb/date';
|
|
64
|
-
import * as i4$
|
|
64
|
+
import * as i4$1 from '@angular/material/button-toggle';
|
|
65
65
|
import { MatButtonToggleModule } from '@angular/material/button-toggle';
|
|
66
|
-
import * as i5$
|
|
66
|
+
import * as i5$2 from 'angular-calendar';
|
|
67
67
|
import { CalendarModule, CalendarDayModule, CalendarWeekModule, DateAdapter } from 'angular-calendar';
|
|
68
68
|
import * as i9 from '@angular/flex-layout/extended';
|
|
69
69
|
import { adapterFactory } from 'angular-calendar/date-adapters/date-fns';
|
|
@@ -4396,40 +4396,73 @@ const DEFAULT_LIST_GRID_SIZE_CONFIG = {
|
|
|
4396
4396
|
gap: '8px'
|
|
4397
4397
|
};
|
|
4398
4398
|
/**
|
|
4399
|
-
*
|
|
4399
|
+
* Optional parent directive used to control grid size.
|
|
4400
4400
|
*/
|
|
4401
|
-
class
|
|
4401
|
+
class DbxValueListGridSizeDirective {
|
|
4402
4402
|
constructor() {
|
|
4403
|
-
|
|
4404
|
-
this.
|
|
4403
|
+
this._gridSize = new BehaviorSubject(undefined);
|
|
4404
|
+
this.gridSize$ = this._gridSize.asObservable();
|
|
4405
4405
|
}
|
|
4406
|
-
get
|
|
4407
|
-
return this.
|
|
4406
|
+
get gridSize() {
|
|
4407
|
+
return this._gridSize.value;
|
|
4408
4408
|
}
|
|
4409
|
-
set
|
|
4410
|
-
|
|
4409
|
+
set gridSize(gridSize) {
|
|
4410
|
+
if (gridSize) {
|
|
4411
|
+
this._gridSize.next(gridSize);
|
|
4412
|
+
}
|
|
4411
4413
|
}
|
|
4412
|
-
|
|
4413
|
-
|
|
4414
|
+
ngOnDestroy() {
|
|
4415
|
+
this._gridSize.complete();
|
|
4414
4416
|
}
|
|
4415
|
-
|
|
4416
|
-
|
|
4417
|
+
}
|
|
4418
|
+
DbxValueListGridSizeDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxValueListGridSizeDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
4419
|
+
DbxValueListGridSizeDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.2", type: DbxValueListGridSizeDirective, selector: "[dbxListGridSize]", inputs: { gridSize: ["dbxListGridSize", "gridSize"] }, ngImport: i0 });
|
|
4420
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxValueListGridSizeDirective, decorators: [{
|
|
4421
|
+
type: Directive,
|
|
4422
|
+
args: [{
|
|
4423
|
+
selector: '[dbxListGridSize]'
|
|
4424
|
+
}]
|
|
4425
|
+
}], propDecorators: { gridSize: [{
|
|
4426
|
+
type: Input,
|
|
4427
|
+
args: ['dbxListGridSize']
|
|
4428
|
+
}] } });
|
|
4429
|
+
/**
|
|
4430
|
+
* Content view for a DbxValueListGridView. It can be used directly in cases where the items are already configured, or want to be configured in a non-standard fashion.
|
|
4431
|
+
*/
|
|
4432
|
+
class DbxValueListGridItemViewComponent extends DbxValueListItemViewComponent {
|
|
4433
|
+
constructor(dbxListView, _gridSizeOverride) {
|
|
4434
|
+
var _a, _b;
|
|
4435
|
+
super(dbxListView);
|
|
4436
|
+
this._gridSizeOverride = _gridSizeOverride;
|
|
4437
|
+
this._defaultGrid = new BehaviorSubject(undefined);
|
|
4438
|
+
this.grid$ = combineLatest([this._defaultGrid, (_b = (_a = this._gridSizeOverride) === null || _a === void 0 ? void 0 : _a.gridSize$) !== null && _b !== void 0 ? _b : of(undefined)]).pipe(map(([defaultGrid, overrideGrid]) => {
|
|
4439
|
+
const grid = mergeObjects([DEFAULT_LIST_GRID_SIZE_CONFIG, defaultGrid, overrideGrid]);
|
|
4440
|
+
return grid;
|
|
4441
|
+
}), shareReplay(1));
|
|
4442
|
+
this.gap$ = this.grid$.pipe(map((x) => x.gap));
|
|
4443
|
+
this.columns$ = this.grid$.pipe(map((x) => x.columns));
|
|
4444
|
+
}
|
|
4445
|
+
set grid(grid) {
|
|
4446
|
+
this._defaultGrid.next(grid);
|
|
4447
|
+
}
|
|
4448
|
+
ngOnDestroy() {
|
|
4449
|
+
this._defaultGrid.complete();
|
|
4417
4450
|
}
|
|
4418
4451
|
}
|
|
4419
|
-
DbxValueListGridItemViewComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxValueListGridItemViewComponent, deps:
|
|
4452
|
+
DbxValueListGridItemViewComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxValueListGridItemViewComponent, deps: [{ token: DbxListView }, { token: DbxValueListGridSizeDirective, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
4420
4453
|
DbxValueListGridItemViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: DbxValueListGridItemViewComponent, selector: "dbx-list-grid-view-content", inputs: { grid: "grid" }, host: { classAttribute: "dbx-list-grid-view" }, usesInheritance: true, ngImport: i0, template: `
|
|
4421
|
-
<div [gdGap]="gap" [gdColumns]="columns">
|
|
4454
|
+
<div [gdGap]="gap$ | async" [gdColumns]="columns$ | async">
|
|
4422
4455
|
<dbx-anchor *ngFor="let item of items" matRipple [matRippleDisabled]="rippleDisabledOnItem(item)" class="dbx-list-grid-view-item" [anchor]="item.anchor" [disabled]="item.disabled" (click)="onClickItem(item)">
|
|
4423
4456
|
<div dbx-injection [config]="item.config"></div>
|
|
4424
4457
|
</dbx-anchor>
|
|
4425
4458
|
</div>
|
|
4426
|
-
`, isInline: true, components: [{ type: DbxAnchorComponent, selector: "dbx-anchor, [dbx-anchor]", inputs: ["block"] }, { type: i1$2.DbxInjectionComponent, selector: "dbx-injection, [dbxInjection], [dbx-injection]", inputs: ["config", "template"] }], directives: [{ type:
|
|
4459
|
+
`, isInline: true, components: [{ type: DbxAnchorComponent, selector: "dbx-anchor, [dbx-anchor]", inputs: ["block"] }, { type: i1$2.DbxInjectionComponent, selector: "dbx-injection, [dbxInjection], [dbx-injection]", inputs: ["config", "template"] }], directives: [{ type: i5$1.DefaultGridGapDirective, selector: " [gdGap], [gdGap.xs], [gdGap.sm], [gdGap.md], [gdGap.lg], [gdGap.xl], [gdGap.lt-sm], [gdGap.lt-md], [gdGap.lt-lg], [gdGap.lt-xl], [gdGap.gt-xs], [gdGap.gt-sm], [gdGap.gt-md], [gdGap.gt-lg]", inputs: ["gdGap", "gdGap.xs", "gdGap.sm", "gdGap.md", "gdGap.lg", "gdGap.xl", "gdGap.lt-sm", "gdGap.lt-md", "gdGap.lt-lg", "gdGap.lt-xl", "gdGap.gt-xs", "gdGap.gt-sm", "gdGap.gt-md", "gdGap.gt-lg"] }, { type: i5$1.DefaultGridColumnsDirective, selector: " [gdColumns], [gdColumns.xs], [gdColumns.sm], [gdColumns.md], [gdColumns.lg], [gdColumns.xl], [gdColumns.lt-sm], [gdColumns.lt-md], [gdColumns.lt-lg], [gdColumns.lt-xl], [gdColumns.gt-xs], [gdColumns.gt-sm], [gdColumns.gt-md], [gdColumns.gt-lg]", inputs: ["gdColumns", "gdColumns.xs", "gdColumns.sm", "gdColumns.md", "gdColumns.lg", "gdColumns.xl", "gdColumns.lt-sm", "gdColumns.lt-md", "gdColumns.lt-lg", "gdColumns.lt-xl", "gdColumns.gt-xs", "gdColumns.gt-sm", "gdColumns.gt-md", "gdColumns.gt-lg"] }, { type: i3$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i6.MatRipple, selector: "[mat-ripple], [matRipple]", inputs: ["matRippleColor", "matRippleUnbounded", "matRippleCentered", "matRippleRadius", "matRippleAnimation", "matRippleDisabled", "matRippleTrigger"], exportAs: ["matRipple"] }], pipes: { "async": i3$1.AsyncPipe } });
|
|
4427
4460
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxValueListGridItemViewComponent, decorators: [{
|
|
4428
4461
|
type: Component,
|
|
4429
4462
|
args: [{
|
|
4430
4463
|
selector: 'dbx-list-grid-view-content',
|
|
4431
4464
|
template: `
|
|
4432
|
-
<div [gdGap]="gap" [gdColumns]="columns">
|
|
4465
|
+
<div [gdGap]="gap$ | async" [gdColumns]="columns$ | async">
|
|
4433
4466
|
<dbx-anchor *ngFor="let item of items" matRipple [matRippleDisabled]="rippleDisabledOnItem(item)" class="dbx-list-grid-view-item" [anchor]="item.anchor" [disabled]="item.disabled" (click)="onClickItem(item)">
|
|
4434
4467
|
<div dbx-injection [config]="item.config"></div>
|
|
4435
4468
|
</dbx-anchor>
|
|
@@ -4439,7 +4472,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
4439
4472
|
class: 'dbx-list-grid-view'
|
|
4440
4473
|
}
|
|
4441
4474
|
}]
|
|
4442
|
-
}],
|
|
4475
|
+
}], ctorParameters: function () {
|
|
4476
|
+
return [{ type: DbxListView }, { type: DbxValueListGridSizeDirective, decorators: [{
|
|
4477
|
+
type: Optional
|
|
4478
|
+
}] }];
|
|
4479
|
+
}, propDecorators: { grid: [{
|
|
4443
4480
|
type: Input
|
|
4444
4481
|
}] } });
|
|
4445
4482
|
|
|
@@ -4453,6 +4490,7 @@ DbxListLayoutModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", ver
|
|
|
4453
4490
|
DbxListEmptyContentComponent,
|
|
4454
4491
|
DbxValueListViewComponent,
|
|
4455
4492
|
DbxValueListItemViewComponent,
|
|
4493
|
+
DbxValueListGridSizeDirective,
|
|
4456
4494
|
DbxValueListGridViewComponent,
|
|
4457
4495
|
DbxValueListGridItemViewComponent,
|
|
4458
4496
|
DbxSelectionValueListViewComponent,
|
|
@@ -4465,6 +4503,7 @@ DbxListLayoutModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", ver
|
|
|
4465
4503
|
DbxListEmptyContentComponent,
|
|
4466
4504
|
DbxValueListViewComponent,
|
|
4467
4505
|
DbxValueListItemViewComponent,
|
|
4506
|
+
DbxValueListGridSizeDirective,
|
|
4468
4507
|
DbxValueListGridViewComponent,
|
|
4469
4508
|
DbxValueListGridItemViewComponent,
|
|
4470
4509
|
DbxSelectionValueListViewComponent,
|
|
@@ -4484,6 +4523,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
4484
4523
|
DbxListEmptyContentComponent,
|
|
4485
4524
|
DbxValueListViewComponent,
|
|
4486
4525
|
DbxValueListItemViewComponent,
|
|
4526
|
+
DbxValueListGridSizeDirective,
|
|
4487
4527
|
DbxValueListGridViewComponent,
|
|
4488
4528
|
DbxValueListGridItemViewComponent,
|
|
4489
4529
|
DbxSelectionValueListViewComponent,
|
|
@@ -4497,6 +4537,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
4497
4537
|
DbxListEmptyContentComponent,
|
|
4498
4538
|
DbxValueListViewComponent,
|
|
4499
4539
|
DbxValueListItemViewComponent,
|
|
4540
|
+
DbxValueListGridSizeDirective,
|
|
4500
4541
|
DbxValueListGridViewComponent,
|
|
4501
4542
|
DbxValueListGridItemViewComponent,
|
|
4502
4543
|
DbxSelectionValueListViewComponent,
|
|
@@ -7217,7 +7258,7 @@ class DbxCalendarComponent {
|
|
|
7217
7258
|
}
|
|
7218
7259
|
}
|
|
7219
7260
|
DbxCalendarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxCalendarComponent, deps: [{ token: DbxCalendarStore }], target: i0.ɵɵFactoryTarget.Component });
|
|
7220
|
-
DbxCalendarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: DbxCalendarComponent, selector: "dbx-calendar", outputs: { clickEvent: "clickEvent" }, ngImport: i0, template: "<div class=\"dbx-calendar\">\n <h3 class=\"dbx-calendar-title\">{{ (viewDate$ | async)! | calendarDate: (displayType$ | async) + 'ViewTitle':'en' }}</h3>\n <div class=\"dbx-calendar-header\">\n <div class=\"dbx-calendar-controls\" fxLayout=\"row\">\n <span class=\"dbx-calendar-controls-left\" fxFlex=\"nogrow\">\n <button mat-stroked-button (click)=\"todayClicked()\">Today</button>\n <dbx-button-spacer></dbx-button-spacer>\n <button mat-icon-button [attr.aria-label]=\"'Previous ' + (displayType$ | async) + ' button'\" (click)=\"previousButtonClicked()\">\n <mat-icon>navigate_before</mat-icon>\n </button>\n <button mat-icon-button [attr.aria-label]=\"'Next' + (displayType$ | async)! + ' button'\" (click)=\"nextButtonClicked()\">\n <mat-icon>navigate_next</mat-icon>\n </button>\n </span>\n <span class=\"spacer\"></span>\n <span class=\"dbx-calendar-controls-right\" fxFlex=\"nogrow\">\n <mat-button-toggle-group name=\"calendarDisplayStyle\" [value]=\"(displayType$ | async)!\" (change)=\"typeToggleChanged($event)\" aria-label=\"Display Style\">\n <mat-button-toggle value=\"month\">Month</mat-button-toggle>\n <mat-button-toggle value=\"week\">Week</mat-button-toggle>\n <mat-button-toggle value=\"day\">Day</mat-button-toggle>\n </mat-button-toggle-group>\n </span>\n </div>\n </div>\n <div class=\"dbx-calendar-content\" [ngClass]=\"'dbx-calendar-content-' + (displayType$ | async)!\" [ngSwitch]=\"displayType$ | async\">\n <mwl-calendar-month-view *ngSwitchCase=\"'month'\" [viewDate]=\"(viewDate$ | async)!\" [events]=\"(events$ | async)!\" [activeDayIsOpen]=\"(activeDayIsOpen$ | async)!\" (dayClicked)=\"dayClicked($event.day)\" (eventClicked)=\"eventClicked('Clicked', $event.event)\"></mwl-calendar-month-view>\n <mwl-calendar-week-view *ngSwitchCase=\"'week'\" [viewDate]=\"(viewDate$ | async)!\" [events]=\"(events$ | async)!\" (eventClicked)=\"eventClicked('Clicked', $event.event)\"></mwl-calendar-week-view>\n <mwl-calendar-day-view *ngSwitchCase=\"'day'\" [viewDate]=\"(viewDate$ | async)!\" [events]=\"(events$ | async)!\" (eventClicked)=\"eventClicked('Clicked', $event.event)\"></mwl-calendar-day-view>\n </div>\n</div>\n", components: [{ type: i1.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: i4$
|
|
7261
|
+
DbxCalendarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: DbxCalendarComponent, selector: "dbx-calendar", outputs: { clickEvent: "clickEvent" }, ngImport: i0, template: "<div class=\"dbx-calendar\">\n <h3 class=\"dbx-calendar-title\">{{ (viewDate$ | async)! | calendarDate: (displayType$ | async) + 'ViewTitle':'en' }}</h3>\n <div class=\"dbx-calendar-header\">\n <div class=\"dbx-calendar-controls\" fxLayout=\"row\">\n <span class=\"dbx-calendar-controls-left\" fxFlex=\"nogrow\">\n <button mat-stroked-button (click)=\"todayClicked()\">Today</button>\n <dbx-button-spacer></dbx-button-spacer>\n <button mat-icon-button [attr.aria-label]=\"'Previous ' + (displayType$ | async) + ' button'\" (click)=\"previousButtonClicked()\">\n <mat-icon>navigate_before</mat-icon>\n </button>\n <button mat-icon-button [attr.aria-label]=\"'Next' + (displayType$ | async)! + ' button'\" (click)=\"nextButtonClicked()\">\n <mat-icon>navigate_next</mat-icon>\n </button>\n </span>\n <span class=\"spacer\"></span>\n <span class=\"dbx-calendar-controls-right\" fxFlex=\"nogrow\">\n <mat-button-toggle-group name=\"calendarDisplayStyle\" [value]=\"(displayType$ | async)!\" (change)=\"typeToggleChanged($event)\" aria-label=\"Display Style\">\n <mat-button-toggle value=\"month\">Month</mat-button-toggle>\n <mat-button-toggle value=\"week\">Week</mat-button-toggle>\n <mat-button-toggle value=\"day\">Day</mat-button-toggle>\n </mat-button-toggle-group>\n </span>\n </div>\n </div>\n <div class=\"dbx-calendar-content\" [ngClass]=\"'dbx-calendar-content-' + (displayType$ | async)!\" [ngSwitch]=\"displayType$ | async\">\n <mwl-calendar-month-view *ngSwitchCase=\"'month'\" [viewDate]=\"(viewDate$ | async)!\" [events]=\"(events$ | async)!\" [activeDayIsOpen]=\"(activeDayIsOpen$ | async)!\" (dayClicked)=\"dayClicked($event.day)\" (eventClicked)=\"eventClicked('Clicked', $event.event)\"></mwl-calendar-month-view>\n <mwl-calendar-week-view *ngSwitchCase=\"'week'\" [viewDate]=\"(viewDate$ | async)!\" [events]=\"(events$ | async)!\" (eventClicked)=\"eventClicked('Clicked', $event.event)\"></mwl-calendar-week-view>\n <mwl-calendar-day-view *ngSwitchCase=\"'day'\" [viewDate]=\"(viewDate$ | async)!\" [events]=\"(events$ | async)!\" (eventClicked)=\"eventClicked('Clicked', $event.event)\"></mwl-calendar-day-view>\n </div>\n</div>\n", components: [{ type: i1.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: i4$1.MatButtonToggle, selector: "mat-button-toggle", inputs: ["disableRipple", "aria-label", "aria-labelledby", "id", "name", "value", "tabIndex", "appearance", "checked", "disabled"], outputs: ["change"], exportAs: ["matButtonToggle"] }, { type: i5$2.CalendarMonthViewComponent, selector: "mwl-calendar-month-view", inputs: ["viewDate", "events", "excludeDays", "activeDayIsOpen", "activeDay", "refresh", "locale", "tooltipPlacement", "tooltipTemplate", "tooltipAppendToBody", "tooltipDelay", "weekStartsOn", "headerTemplate", "cellTemplate", "openDayEventsTemplate", "eventTitleTemplate", "eventActionsTemplate", "weekendDays"], outputs: ["beforeViewRender", "dayClicked", "eventClicked", "columnHeaderClicked", "eventTimesChanged"] }, { type: i5$2.CalendarWeekViewComponent, selector: "mwl-calendar-week-view", inputs: ["viewDate", "events", "excludeDays", "refresh", "locale", "tooltipPlacement", "tooltipTemplate", "tooltipAppendToBody", "tooltipDelay", "weekStartsOn", "headerTemplate", "eventTemplate", "eventTitleTemplate", "eventActionsTemplate", "precision", "weekendDays", "snapDraggedEvents", "hourSegments", "hourDuration", "hourSegmentHeight", "minimumEventHeight", "dayStartHour", "dayStartMinute", "dayEndHour", "dayEndMinute", "hourSegmentTemplate", "eventSnapSize", "allDayEventsLabelTemplate", "daysInWeek", "currentTimeMarkerTemplate", "validateEventTimesChanged"], outputs: ["dayHeaderClicked", "eventClicked", "eventTimesChanged", "beforeViewRender", "hourSegmentClicked"] }, { type: i5$2.CalendarDayViewComponent, selector: "mwl-calendar-day-view", inputs: ["viewDate", "events", "hourSegments", "hourSegmentHeight", "hourDuration", "minimumEventHeight", "dayStartHour", "dayStartMinute", "dayEndHour", "dayEndMinute", "refresh", "locale", "eventSnapSize", "tooltipPlacement", "tooltipTemplate", "tooltipAppendToBody", "tooltipDelay", "hourSegmentTemplate", "eventTemplate", "eventTitleTemplate", "eventActionsTemplate", "snapDraggedEvents", "allDayEventsLabelTemplate", "currentTimeMarkerTemplate", "validateEventTimesChanged"], outputs: ["eventClicked", "hourSegmentClicked", "eventTimesChanged", "beforeViewRender"] }], directives: [{ type: i6$1.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { type: i6$1.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { type: DbxButtonSpacerDirective, selector: "dbx-button-spacer,[dbxButtonSpacer]" }, { type: i4$1.MatButtonToggleGroup, selector: "mat-button-toggle-group", inputs: ["appearance", "name", "vertical", "value", "multiple", "disabled"], outputs: ["valueChange", "change"], exportAs: ["matButtonToggleGroup"] }, { type: i3$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i9.DefaultClassDirective, selector: " [ngClass], [ngClass.xs], [ngClass.sm], [ngClass.md], [ngClass.lg], [ngClass.xl], [ngClass.lt-sm], [ngClass.lt-md], [ngClass.lt-lg], [ngClass.lt-xl], [ngClass.gt-xs], [ngClass.gt-sm], [ngClass.gt-md], [ngClass.gt-lg]", inputs: ["ngClass", "ngClass.xs", "ngClass.sm", "ngClass.md", "ngClass.lg", "ngClass.xl", "ngClass.lt-sm", "ngClass.lt-md", "ngClass.lt-lg", "ngClass.lt-xl", "ngClass.gt-xs", "ngClass.gt-sm", "ngClass.gt-md", "ngClass.gt-lg"] }, { type: i3$1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i3$1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }], pipes: { "calendarDate": i5$2.ɵCalendarDatePipe, "async": i3$1.AsyncPipe } });
|
|
7221
7262
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxCalendarComponent, decorators: [{
|
|
7222
7263
|
type: Component,
|
|
7223
7264
|
args: [{ selector: 'dbx-calendar', template: "<div class=\"dbx-calendar\">\n <h3 class=\"dbx-calendar-title\">{{ (viewDate$ | async)! | calendarDate: (displayType$ | async) + 'ViewTitle':'en' }}</h3>\n <div class=\"dbx-calendar-header\">\n <div class=\"dbx-calendar-controls\" fxLayout=\"row\">\n <span class=\"dbx-calendar-controls-left\" fxFlex=\"nogrow\">\n <button mat-stroked-button (click)=\"todayClicked()\">Today</button>\n <dbx-button-spacer></dbx-button-spacer>\n <button mat-icon-button [attr.aria-label]=\"'Previous ' + (displayType$ | async) + ' button'\" (click)=\"previousButtonClicked()\">\n <mat-icon>navigate_before</mat-icon>\n </button>\n <button mat-icon-button [attr.aria-label]=\"'Next' + (displayType$ | async)! + ' button'\" (click)=\"nextButtonClicked()\">\n <mat-icon>navigate_next</mat-icon>\n </button>\n </span>\n <span class=\"spacer\"></span>\n <span class=\"dbx-calendar-controls-right\" fxFlex=\"nogrow\">\n <mat-button-toggle-group name=\"calendarDisplayStyle\" [value]=\"(displayType$ | async)!\" (change)=\"typeToggleChanged($event)\" aria-label=\"Display Style\">\n <mat-button-toggle value=\"month\">Month</mat-button-toggle>\n <mat-button-toggle value=\"week\">Week</mat-button-toggle>\n <mat-button-toggle value=\"day\">Day</mat-button-toggle>\n </mat-button-toggle-group>\n </span>\n </div>\n </div>\n <div class=\"dbx-calendar-content\" [ngClass]=\"'dbx-calendar-content-' + (displayType$ | async)!\" [ngSwitch]=\"displayType$ | async\">\n <mwl-calendar-month-view *ngSwitchCase=\"'month'\" [viewDate]=\"(viewDate$ | async)!\" [events]=\"(events$ | async)!\" [activeDayIsOpen]=\"(activeDayIsOpen$ | async)!\" (dayClicked)=\"dayClicked($event.day)\" (eventClicked)=\"eventClicked('Clicked', $event.event)\"></mwl-calendar-month-view>\n <mwl-calendar-week-view *ngSwitchCase=\"'week'\" [viewDate]=\"(viewDate$ | async)!\" [events]=\"(events$ | async)!\" (eventClicked)=\"eventClicked('Clicked', $event.event)\"></mwl-calendar-week-view>\n <mwl-calendar-day-view *ngSwitchCase=\"'day'\" [viewDate]=\"(viewDate$ | async)!\" [events]=\"(events$ | async)!\" (eventClicked)=\"eventClicked('Clicked', $event.event)\"></mwl-calendar-day-view>\n </div>\n</div>\n" }]
|
|
@@ -7278,7 +7319,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
7278
7319
|
class DbxCalendarRootModule {
|
|
7279
7320
|
}
|
|
7280
7321
|
DbxCalendarRootModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxCalendarRootModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
7281
|
-
DbxCalendarRootModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxCalendarRootModule, imports: [i5$
|
|
7322
|
+
DbxCalendarRootModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxCalendarRootModule, imports: [i5$2.CalendarModule], exports: [DbxCalendarModule] });
|
|
7282
7323
|
DbxCalendarRootModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxCalendarRootModule, imports: [[CalendarModule.forRoot({ provide: DateAdapter, useFactory: adapterFactory })], DbxCalendarModule] });
|
|
7283
7324
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxCalendarRootModule, decorators: [{
|
|
7284
7325
|
type: NgModule,
|
|
@@ -7288,6 +7329,201 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
7288
7329
|
}]
|
|
7289
7330
|
}] });
|
|
7290
7331
|
|
|
7332
|
+
/**
|
|
7333
|
+
* Service used to register widgets.
|
|
7334
|
+
*/
|
|
7335
|
+
class DbxWidgetService {
|
|
7336
|
+
constructor() {
|
|
7337
|
+
this._entries = new Map();
|
|
7338
|
+
}
|
|
7339
|
+
/**
|
|
7340
|
+
* Used to register an entry. If an entry with the same type is already registered, this will override it by default.
|
|
7341
|
+
*
|
|
7342
|
+
* @param entry
|
|
7343
|
+
* @param override
|
|
7344
|
+
*/
|
|
7345
|
+
register(entry, override = true) {
|
|
7346
|
+
if (override || !this._entries.has(entry.type)) {
|
|
7347
|
+
this._entries.set(entry.type, entry);
|
|
7348
|
+
return true;
|
|
7349
|
+
}
|
|
7350
|
+
else {
|
|
7351
|
+
return false;
|
|
7352
|
+
}
|
|
7353
|
+
}
|
|
7354
|
+
// MARK: Get
|
|
7355
|
+
getWidgetIdentifiers() {
|
|
7356
|
+
return Array.from(this._entries.keys());
|
|
7357
|
+
}
|
|
7358
|
+
getWidgetEntry(type) {
|
|
7359
|
+
return this._entries.get(type);
|
|
7360
|
+
}
|
|
7361
|
+
getWidgetEntries(types) {
|
|
7362
|
+
return filterMaybeValues(mapIterable(types !== null && types !== void 0 ? types : [], (x) => this._entries.get(x)));
|
|
7363
|
+
}
|
|
7364
|
+
}
|
|
7365
|
+
DbxWidgetService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxWidgetService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
7366
|
+
DbxWidgetService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxWidgetService, providedIn: 'root' });
|
|
7367
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxWidgetService, decorators: [{
|
|
7368
|
+
type: Injectable,
|
|
7369
|
+
args: [{
|
|
7370
|
+
providedIn: 'root'
|
|
7371
|
+
}]
|
|
7372
|
+
}] });
|
|
7373
|
+
|
|
7374
|
+
/**
|
|
7375
|
+
* Used to display a corresponding widget based on the input data.
|
|
7376
|
+
*/
|
|
7377
|
+
class DbxWidgetViewComponent {
|
|
7378
|
+
constructor(dbxWidgetService) {
|
|
7379
|
+
this.dbxWidgetService = dbxWidgetService;
|
|
7380
|
+
this._config = new BehaviorSubject(undefined);
|
|
7381
|
+
this.config$ = this._config.pipe(map((pair) => {
|
|
7382
|
+
let config;
|
|
7383
|
+
if (pair != null) {
|
|
7384
|
+
const entry = this.dbxWidgetService.getWidgetEntry(pair.type);
|
|
7385
|
+
if (entry) {
|
|
7386
|
+
config = {
|
|
7387
|
+
componentClass: entry.componentClass,
|
|
7388
|
+
data: pair.data
|
|
7389
|
+
};
|
|
7390
|
+
}
|
|
7391
|
+
}
|
|
7392
|
+
return config;
|
|
7393
|
+
}));
|
|
7394
|
+
}
|
|
7395
|
+
ngOnDestroy() {
|
|
7396
|
+
this._config.complete();
|
|
7397
|
+
}
|
|
7398
|
+
set config(config) {
|
|
7399
|
+
this._config.next(config);
|
|
7400
|
+
}
|
|
7401
|
+
}
|
|
7402
|
+
DbxWidgetViewComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxWidgetViewComponent, deps: [{ token: DbxWidgetService }], target: i0.ɵɵFactoryTarget.Component });
|
|
7403
|
+
DbxWidgetViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: DbxWidgetViewComponent, selector: "dbx-widget-view", inputs: { config: "config" }, host: { classAttribute: "dbx-widget-view" }, ngImport: i0, template: `
|
|
7404
|
+
<dbx-injection [config]="config$ | async"></dbx-injection>
|
|
7405
|
+
`, isInline: true, components: [{ type: i1$2.DbxInjectionComponent, selector: "dbx-injection, [dbxInjection], [dbx-injection]", inputs: ["config", "template"] }], pipes: { "async": i3$1.AsyncPipe } });
|
|
7406
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxWidgetViewComponent, decorators: [{
|
|
7407
|
+
type: Component,
|
|
7408
|
+
args: [{
|
|
7409
|
+
selector: 'dbx-widget-view',
|
|
7410
|
+
template: `
|
|
7411
|
+
<dbx-injection [config]="config$ | async"></dbx-injection>
|
|
7412
|
+
`,
|
|
7413
|
+
host: {
|
|
7414
|
+
class: 'dbx-widget-view'
|
|
7415
|
+
}
|
|
7416
|
+
}]
|
|
7417
|
+
}], ctorParameters: function () { return [{ type: DbxWidgetService }]; }, propDecorators: { config: [{
|
|
7418
|
+
type: Input
|
|
7419
|
+
}] } });
|
|
7420
|
+
|
|
7421
|
+
class AbstractDbxWidgetComponent {
|
|
7422
|
+
constructor(data) {
|
|
7423
|
+
this.data = data;
|
|
7424
|
+
}
|
|
7425
|
+
}
|
|
7426
|
+
AbstractDbxWidgetComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AbstractDbxWidgetComponent, deps: [{ token: DBX_INJECTION_COMPONENT_DATA }], target: i0.ɵɵFactoryTarget.Directive });
|
|
7427
|
+
AbstractDbxWidgetComponent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.2", type: AbstractDbxWidgetComponent, ngImport: i0 });
|
|
7428
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AbstractDbxWidgetComponent, decorators: [{
|
|
7429
|
+
type: Directive
|
|
7430
|
+
}], ctorParameters: function () {
|
|
7431
|
+
return [{ type: undefined, decorators: [{
|
|
7432
|
+
type: Inject,
|
|
7433
|
+
args: [DBX_INJECTION_COMPONENT_DATA]
|
|
7434
|
+
}] }];
|
|
7435
|
+
} });
|
|
7436
|
+
|
|
7437
|
+
/**
|
|
7438
|
+
* Demo DbxSelectionListWrapperDirective
|
|
7439
|
+
*/
|
|
7440
|
+
class DbxWidgetListGridComponent extends AbstractDbxListWrapperDirective {
|
|
7441
|
+
constructor() {
|
|
7442
|
+
super({
|
|
7443
|
+
componentClass: DbxWidgetListGridViewComponent,
|
|
7444
|
+
defaultSelectionMode: 'view'
|
|
7445
|
+
});
|
|
7446
|
+
}
|
|
7447
|
+
}
|
|
7448
|
+
DbxWidgetListGridComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxWidgetListGridComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
7449
|
+
DbxWidgetListGridComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: DbxWidgetListGridComponent, selector: "dbx-widget-grid", usesInheritance: true, ngImport: i0, template: "\n<dbx-list [state$]=\"state$\" [config]=\"config$ | async\" [disabled]=\"disabled\" [selectionMode]=\"selectionMode\">\n <ng-content top select=\"[top]\"></ng-content>\n <ng-content bottom select=\"[bottom]\"></ng-content>\n <ng-content empty select=\"[empty]\"></ng-content>\n</dbx-list>\n", isInline: true, components: [{ type: DbxListComponent, selector: "dbx-list", inputs: ["padded", "state$", "config", "disabled", "selectionMode"], outputs: ["contentScrolled"] }], pipes: { "async": i3$1.AsyncPipe } });
|
|
7450
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxWidgetListGridComponent, decorators: [{
|
|
7451
|
+
type: Component,
|
|
7452
|
+
args: [{
|
|
7453
|
+
selector: 'dbx-widget-grid',
|
|
7454
|
+
template: DEFAULT_LIST_WRAPPER_DIRECTIVE_TEMPLATE
|
|
7455
|
+
}]
|
|
7456
|
+
}], ctorParameters: function () { return []; } });
|
|
7457
|
+
class DbxWidgetListGridViewComponent extends AbstractDbxListGridViewDirective {
|
|
7458
|
+
constructor() {
|
|
7459
|
+
super(...arguments);
|
|
7460
|
+
this.config = {
|
|
7461
|
+
grid: {
|
|
7462
|
+
// TODO: Make configurable.
|
|
7463
|
+
columns: 'repeat(auto-fill, minmax(120px, 1fr))',
|
|
7464
|
+
gap: '8px'
|
|
7465
|
+
},
|
|
7466
|
+
componentClass: DbxWidgetListGridViewItemComponent,
|
|
7467
|
+
mapValuesToItemValues: (x) => of(x.map((y) => (Object.assign(Object.assign({}, y), { itemValue: y }))))
|
|
7468
|
+
};
|
|
7469
|
+
}
|
|
7470
|
+
}
|
|
7471
|
+
DbxWidgetListGridViewComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxWidgetListGridViewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
7472
|
+
DbxWidgetListGridViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: DbxWidgetListGridViewComponent, selector: "ng-component", providers: provideDbxListView(DbxWidgetListGridViewComponent), usesInheritance: true, ngImport: i0, template: "<dbx-list-grid-view [config]=\"config\"></dbx-list-grid-view>", isInline: true, components: [{ type: DbxValueListGridViewComponent, selector: "dbx-list-grid-view" }] });
|
|
7473
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxWidgetListGridViewComponent, decorators: [{
|
|
7474
|
+
type: Component,
|
|
7475
|
+
args: [{
|
|
7476
|
+
template: DEFAULT_DBX_VALUE_LIST_GRID_DIRECTIVE_TEMPLATE,
|
|
7477
|
+
providers: provideDbxListView(DbxWidgetListGridViewComponent)
|
|
7478
|
+
}]
|
|
7479
|
+
}] });
|
|
7480
|
+
class DbxWidgetListGridViewItemComponent extends AbstractDbxValueListViewItemComponent {
|
|
7481
|
+
}
|
|
7482
|
+
DbxWidgetListGridViewItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxWidgetListGridViewItemComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
7483
|
+
DbxWidgetListGridViewItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: DbxWidgetListGridViewItemComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: `
|
|
7484
|
+
<dbx-widget-view [config]="itemValue"></dbx-widget-view>
|
|
7485
|
+
`, isInline: true, components: [{ type: DbxWidgetViewComponent, selector: "dbx-widget-view", inputs: ["config"] }] });
|
|
7486
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxWidgetListGridViewItemComponent, decorators: [{
|
|
7487
|
+
type: Component,
|
|
7488
|
+
args: [{
|
|
7489
|
+
template: `
|
|
7490
|
+
<dbx-widget-view [config]="itemValue"></dbx-widget-view>
|
|
7491
|
+
`
|
|
7492
|
+
}]
|
|
7493
|
+
}] });
|
|
7494
|
+
|
|
7495
|
+
/**
|
|
7496
|
+
* Contains components related to displaying "widgets" for pieces of data.
|
|
7497
|
+
*/
|
|
7498
|
+
class DbxWidgetModule {
|
|
7499
|
+
}
|
|
7500
|
+
DbxWidgetModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxWidgetModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
7501
|
+
DbxWidgetModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxWidgetModule, declarations: [DbxWidgetViewComponent, DbxWidgetListGridComponent, DbxWidgetListGridViewComponent, DbxWidgetListGridViewItemComponent], imports: [
|
|
7502
|
+
//
|
|
7503
|
+
CommonModule,
|
|
7504
|
+
DbxListLayoutModule,
|
|
7505
|
+
DbxInjectionComponentModule
|
|
7506
|
+
], exports: [DbxWidgetViewComponent, DbxWidgetListGridComponent, DbxWidgetListGridViewComponent, DbxWidgetListGridViewItemComponent] });
|
|
7507
|
+
DbxWidgetModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxWidgetModule, imports: [[
|
|
7508
|
+
//
|
|
7509
|
+
CommonModule,
|
|
7510
|
+
DbxListLayoutModule,
|
|
7511
|
+
DbxInjectionComponentModule
|
|
7512
|
+
]] });
|
|
7513
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxWidgetModule, decorators: [{
|
|
7514
|
+
type: NgModule,
|
|
7515
|
+
args: [{
|
|
7516
|
+
imports: [
|
|
7517
|
+
//
|
|
7518
|
+
CommonModule,
|
|
7519
|
+
DbxListLayoutModule,
|
|
7520
|
+
DbxInjectionComponentModule
|
|
7521
|
+
],
|
|
7522
|
+
declarations: [DbxWidgetViewComponent, DbxWidgetListGridComponent, DbxWidgetListGridViewComponent, DbxWidgetListGridViewItemComponent],
|
|
7523
|
+
exports: [DbxWidgetViewComponent, DbxWidgetListGridComponent, DbxWidgetListGridViewComponent, DbxWidgetListGridViewItemComponent]
|
|
7524
|
+
}]
|
|
7525
|
+
}] });
|
|
7526
|
+
|
|
7291
7527
|
class DbxWebModule {
|
|
7292
7528
|
}
|
|
7293
7529
|
DbxWebModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxWebModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
@@ -7320,5 +7556,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
7320
7556
|
* Generated bundle index. Do not edit.
|
|
7321
7557
|
*/
|
|
7322
7558
|
|
|
7323
|
-
export { APP_POPUP_MINIMIZED_WIDTH, APP_POPUP_NORMAL_HEIGHT, APP_POPUP_NORMAL_WIDTH, AbstractDbxListGridViewDirective, AbstractDbxListViewDirective, AbstractDbxListWrapperDirective, AbstractDbxSegueAnchorDirective, AbstractDbxSelectionListViewDirective, AbstractDbxSelectionListWrapperDirective, AbstractDbxValueListItemModifierDirective, AbstractDbxValueListViewDirective, AbstractDbxValueListViewItemComponent, AbstractDialogDirective, AbstractFilterPopoverButtonDirective, AbstractPopoverDirective, AbstractPopoverRefDirective, AbstractPopoverRefWithEventsDirective, AbstractPopupDirective, AbstractPromptConfirmDirective, CalendarDisplayType, CompactContextStore, CompactMode, DBX_ACTION_SNACKBAR_DEFAULTS, DBX_ACTION_SNACKBAR_SERVICE_CONFIG, DBX_LIST_ITEM_DEFAULT_DISABLE_FUNCTION, DBX_LIST_ITEM_DISABLE_RIPPLE_LIST_ITEM_MODIFIER_KEY, DBX_MAT_PROGRESS_BUTTON_GLOBAL_CONFIG, DBX_ROUTER_VALUE_LIST_ITEM_MODIFIER_KEY, DBX_STYLE_DEFAULT_CONFIG_TOKEN, DBX_VALUE_LIST_VIEW_ITEM, DEFAULT_DBX_PROMPT_CONFIRM_DIALOG_CONFIG, DEFAULT_DBX_SELECTION_VALUE_LIST_DIRECTIVE_TEMPLATE, DEFAULT_DBX_VALUE_LIST_CONFIG_MAP_VALUES, DEFAULT_DBX_VALUE_LIST_GRID_DIRECTIVE_TEMPLATE, DEFAULT_FILTER_POPOVER_KEY, DEFAULT_LIST_GRID_SIZE_CONFIG, DEFAULT_LIST_WRAPPER_DIRECTIVE_TEMPLATE, DEFAULT_LOADING_PROGRESS_DIAMETER, DEFAULT_SCREEN_MEDIA_SERVICE_CONFIG, DEFAULT_SNACKBAR_DIRECTIVE_DURATION, DEFAULT_STATIC_LIST_DIRECTIVE_TEMPLATE, DEFAULT_TWO_COLUMNS_MIN_RIGHT_WIDTH, DbxActionConfirmDirective, DbxActionDialogDirective, DbxActionErrorDirective, DbxActionKeyTriggerDirective, DbxActionLoadingContextDirective, DbxActionModule, DbxActionPopoverDirective, DbxActionProgressComponent, DbxActionSnackbarComponent, DbxActionSnackbarDirective, DbxActionSnackbarModule, DbxActionSnackbarService, DbxActionTransitionSafetyDialogResult, DbxActionTransitionSafetyDirective, DbxActionUIRouterTransitionModule, DbxActionUIRouterTransitionSafetyDialogComponent, DbxAnchorComponent, DbxAnchorContentComponent, DbxAnchorIconComponent, DbxAnchorLinkComponent, DbxAnchorListComponent, DbxAngularRouterSegueAnchorComponent, DbxBarButtonComponent, DbxBarDirective, DbxBarHeaderComponent, DbxBarLayoutModule, DbxBasicLoadingComponent, DbxBlockLayoutModule, DbxButtonComponent, DbxButtonDisplayType, DbxButtonModule, DbxButtonSpacerDirective, DbxCalendarComponent, DbxCalendarModule, DbxCalendarRootModule, DbxCalendarStore, DbxCardBoxComponent, DbxCardBoxContainerComponent, DbxCardBoxLayoutModule, DbxColumnLayoutModule, DbxCompactDirective, DbxCompactLayoutModule, DbxContentBorderDirective, DbxContentBoxDirective, DbxContentContainerDirective, DbxContentDirective, DbxContentElevateDirective, DbxContentLayoutModule, DbxContentPageDirective, DbxDialogContentDirective, DbxDialogInteractionModule, DbxFilterInteractionModule, DbxFilterPopoverButtonComponent, DbxFilterPopoverComponent, DbxFilterWrapperComponent, DbxFlagComponent, DbxFlagLayoutModule, DbxFlagPromptComponent, DbxFlexGroupDirective, DbxFlexLayoutModule, DbxFlexSizeDirective, DbxHintComponent, DbxIconItemComponent, DbxIconSpacerDirective, DbxInteractionModule, DbxIntroActionSectionComponent, DbxItemLayoutModule, DbxKeypressModule, DbxLabelComponent, DbxLayoutModule, DbxLinkifyComponent, DbxListComponent, DbxListEmptyContentComponent, DbxListInternalContentDirective, DbxListItemAnchorModifierDirective, DbxListItemDisableRippleModifierDirective, DbxListLayoutModule, DbxListView, DbxListViewWrapper, DbxLoadingComponent, DbxLoadingErrorDirective, DbxLoadingModule, DbxLoadingProgressComponent, DbxNavbarComponent, DbxNoteComponent, DbxNoticeComponent, DbxOkComponent, DbxOneColumnComponent, DbxOneColumnLayoutModule, DbxPagebarComponent, DbxPopoverComponent, DbxPopoverComponentController, DbxPopoverContentComponent, DbxPopoverController, DbxPopoverControlsDirective, DbxPopoverCoordinatorComponent, DbxPopoverCoordinatorService, DbxPopoverHeaderComponent, DbxPopoverInteractionModule, DbxPopoverScrollContentComponent, DbxPopoverService, DbxPopupComponent, DbxPopupComponentController, DbxPopupContentComponent, DbxPopupControlButtonsComponent, DbxPopupController, DbxPopupControlsComponent, DbxPopupCoordinatorComponent, DbxPopupCoordinatorService, DbxPopupInteractionModule, DbxPopupService, DbxPopupWindowState, DbxProgressButtonsModule, DbxPromptBoxComponent, DbxPromptComponent, DbxPromptConfirm, DbxPromptConfirmButtonDirective, DbxPromptConfirmComponent, DbxPromptConfirmDialogComponent, DbxPromptConfirmDirective, DbxPromptConfirmTypes, DbxPromptModule, DbxPromptPageComponent, DbxReadableErrorComponent, DbxReadableErrorModule, DbxRouterAnchorListModule, DbxRouterAnchorModule, DbxRouterLayoutModule, DbxRouterListModule, DbxRouterNavbarModule, DbxRouterSidenavModule, DbxRouterWebProviderConfig, DbxScreenMediaService, DbxScreenMediaServiceConfig, DbxScreenModule, DbxSectionComponent, DbxSectionHeaderComponent, DbxSectionLayoutModule, DbxSectionPageComponent, DbxSelectionValueListItemViewComponent, DbxSelectionValueListViewComponent, DbxSetStyleDirective, DbxSidenavButtonComponent, DbxSidenavComponent, DbxSidenavPageComponent, DbxSidenavPagebarComponent, DbxSpacerDirective, DbxSpinnerButtonComponent, DbxStepComponent, DbxStepLayoutModule, DbxStyleBodyDirective, DbxStyleDirective, DbxStyleLayoutModule, DbxStyleService, DbxSubSectionComponent, DbxSuccessComponent, DbxTextChipsComponent, DbxTextModule, DbxTwoBlocksComponent, DbxTwoColumnBackDirective, DbxTwoColumnColumnHeadComponent, DbxTwoColumnComponent, DbxTwoColumnContextDirective, DbxTwoColumnFullLeftDirective, DbxTwoColumnLayoutModule, DbxTwoColumnRightComponent, DbxTwoColumnSrefDirective, DbxUIRouterSegueAnchorComponent, DbxValueListGridItemViewComponent, DbxValueListGridViewComponent, DbxValueListItemModifier, DbxValueListItemModifierDirective, DbxValueListItemViewComponent, DbxValueListView, DbxValueListViewComponent, DbxWarnComponent, DbxWebAngularRouterModule, DbxWebModule, DbxWebRootModule, DbxWebUIRouterModule, DbxWindowKeyDownListenerDirective, LoadingComponentState, PopoverPositionStrategy, PopupGlobalPositionStrategy, SCREEN_MEDIA_WIDTH_TYPE_SIZE_MAP, SideNavDisplayMode, TwoColumnsContextStore, addConfigToValueListItems, catchErrorServerParams, compactModeFromInput, compareScreenMediaWidthTypes, convertServerErrorParams, convertToPOJOServerErrorResponse, convertToServerErrorResponse, listItemModifier, makeDbxActionSnackbarDisplayConfigGeneratorFunction, mapCompactModeObs, mapValuesToValuesListItemConfigObs, provideDbxListView, provideDbxListViewWrapper, provideDbxPromptConfirm, provideDbxValueListView, provideDbxValueListViewModifier, provideTwoColumnsContext, screenMediaWidthTypeIsActive, visibleDateRangeForCalendarState };
|
|
7559
|
+
export { APP_POPUP_MINIMIZED_WIDTH, APP_POPUP_NORMAL_HEIGHT, APP_POPUP_NORMAL_WIDTH, AbstractDbxListGridViewDirective, AbstractDbxListViewDirective, AbstractDbxListWrapperDirective, AbstractDbxSegueAnchorDirective, AbstractDbxSelectionListViewDirective, AbstractDbxSelectionListWrapperDirective, AbstractDbxValueListItemModifierDirective, AbstractDbxValueListViewDirective, AbstractDbxValueListViewItemComponent, AbstractDbxWidgetComponent, AbstractDialogDirective, AbstractFilterPopoverButtonDirective, AbstractPopoverDirective, AbstractPopoverRefDirective, AbstractPopoverRefWithEventsDirective, AbstractPopupDirective, AbstractPromptConfirmDirective, CalendarDisplayType, CompactContextStore, CompactMode, DBX_ACTION_SNACKBAR_DEFAULTS, DBX_ACTION_SNACKBAR_SERVICE_CONFIG, DBX_LIST_ITEM_DEFAULT_DISABLE_FUNCTION, DBX_LIST_ITEM_DISABLE_RIPPLE_LIST_ITEM_MODIFIER_KEY, DBX_MAT_PROGRESS_BUTTON_GLOBAL_CONFIG, DBX_ROUTER_VALUE_LIST_ITEM_MODIFIER_KEY, DBX_STYLE_DEFAULT_CONFIG_TOKEN, DBX_VALUE_LIST_VIEW_ITEM, DEFAULT_DBX_PROMPT_CONFIRM_DIALOG_CONFIG, DEFAULT_DBX_SELECTION_VALUE_LIST_DIRECTIVE_TEMPLATE, DEFAULT_DBX_VALUE_LIST_CONFIG_MAP_VALUES, DEFAULT_DBX_VALUE_LIST_GRID_DIRECTIVE_TEMPLATE, DEFAULT_FILTER_POPOVER_KEY, DEFAULT_LIST_GRID_SIZE_CONFIG, DEFAULT_LIST_WRAPPER_DIRECTIVE_TEMPLATE, DEFAULT_LOADING_PROGRESS_DIAMETER, DEFAULT_SCREEN_MEDIA_SERVICE_CONFIG, DEFAULT_SNACKBAR_DIRECTIVE_DURATION, DEFAULT_STATIC_LIST_DIRECTIVE_TEMPLATE, DEFAULT_TWO_COLUMNS_MIN_RIGHT_WIDTH, DbxActionConfirmDirective, DbxActionDialogDirective, DbxActionErrorDirective, DbxActionKeyTriggerDirective, DbxActionLoadingContextDirective, DbxActionModule, DbxActionPopoverDirective, DbxActionProgressComponent, DbxActionSnackbarComponent, DbxActionSnackbarDirective, DbxActionSnackbarModule, DbxActionSnackbarService, DbxActionTransitionSafetyDialogResult, DbxActionTransitionSafetyDirective, DbxActionUIRouterTransitionModule, DbxActionUIRouterTransitionSafetyDialogComponent, DbxAnchorComponent, DbxAnchorContentComponent, DbxAnchorIconComponent, DbxAnchorLinkComponent, DbxAnchorListComponent, DbxAngularRouterSegueAnchorComponent, DbxBarButtonComponent, DbxBarDirective, DbxBarHeaderComponent, DbxBarLayoutModule, DbxBasicLoadingComponent, DbxBlockLayoutModule, DbxButtonComponent, DbxButtonDisplayType, DbxButtonModule, DbxButtonSpacerDirective, DbxCalendarComponent, DbxCalendarModule, DbxCalendarRootModule, DbxCalendarStore, DbxCardBoxComponent, DbxCardBoxContainerComponent, DbxCardBoxLayoutModule, DbxColumnLayoutModule, DbxCompactDirective, DbxCompactLayoutModule, DbxContentBorderDirective, DbxContentBoxDirective, DbxContentContainerDirective, DbxContentDirective, DbxContentElevateDirective, DbxContentLayoutModule, DbxContentPageDirective, DbxDialogContentDirective, DbxDialogInteractionModule, DbxFilterInteractionModule, DbxFilterPopoverButtonComponent, DbxFilterPopoverComponent, DbxFilterWrapperComponent, DbxFlagComponent, DbxFlagLayoutModule, DbxFlagPromptComponent, DbxFlexGroupDirective, DbxFlexLayoutModule, DbxFlexSizeDirective, DbxHintComponent, DbxIconItemComponent, DbxIconSpacerDirective, DbxInteractionModule, DbxIntroActionSectionComponent, DbxItemLayoutModule, DbxKeypressModule, DbxLabelComponent, DbxLayoutModule, DbxLinkifyComponent, DbxListComponent, DbxListEmptyContentComponent, DbxListInternalContentDirective, DbxListItemAnchorModifierDirective, DbxListItemDisableRippleModifierDirective, DbxListLayoutModule, DbxListView, DbxListViewWrapper, DbxLoadingComponent, DbxLoadingErrorDirective, DbxLoadingModule, DbxLoadingProgressComponent, DbxNavbarComponent, DbxNoteComponent, DbxNoticeComponent, DbxOkComponent, DbxOneColumnComponent, DbxOneColumnLayoutModule, DbxPagebarComponent, DbxPopoverComponent, DbxPopoverComponentController, DbxPopoverContentComponent, DbxPopoverController, DbxPopoverControlsDirective, DbxPopoverCoordinatorComponent, DbxPopoverCoordinatorService, DbxPopoverHeaderComponent, DbxPopoverInteractionModule, DbxPopoverScrollContentComponent, DbxPopoverService, DbxPopupComponent, DbxPopupComponentController, DbxPopupContentComponent, DbxPopupControlButtonsComponent, DbxPopupController, DbxPopupControlsComponent, DbxPopupCoordinatorComponent, DbxPopupCoordinatorService, DbxPopupInteractionModule, DbxPopupService, DbxPopupWindowState, DbxProgressButtonsModule, DbxPromptBoxComponent, DbxPromptComponent, DbxPromptConfirm, DbxPromptConfirmButtonDirective, DbxPromptConfirmComponent, DbxPromptConfirmDialogComponent, DbxPromptConfirmDirective, DbxPromptConfirmTypes, DbxPromptModule, DbxPromptPageComponent, DbxReadableErrorComponent, DbxReadableErrorModule, DbxRouterAnchorListModule, DbxRouterAnchorModule, DbxRouterLayoutModule, DbxRouterListModule, DbxRouterNavbarModule, DbxRouterSidenavModule, DbxRouterWebProviderConfig, DbxScreenMediaService, DbxScreenMediaServiceConfig, DbxScreenModule, DbxSectionComponent, DbxSectionHeaderComponent, DbxSectionLayoutModule, DbxSectionPageComponent, DbxSelectionValueListItemViewComponent, DbxSelectionValueListViewComponent, DbxSetStyleDirective, DbxSidenavButtonComponent, DbxSidenavComponent, DbxSidenavPageComponent, DbxSidenavPagebarComponent, DbxSpacerDirective, DbxSpinnerButtonComponent, DbxStepComponent, DbxStepLayoutModule, DbxStyleBodyDirective, DbxStyleDirective, DbxStyleLayoutModule, DbxStyleService, DbxSubSectionComponent, DbxSuccessComponent, DbxTextChipsComponent, DbxTextModule, DbxTwoBlocksComponent, DbxTwoColumnBackDirective, DbxTwoColumnColumnHeadComponent, DbxTwoColumnComponent, DbxTwoColumnContextDirective, DbxTwoColumnFullLeftDirective, DbxTwoColumnLayoutModule, DbxTwoColumnRightComponent, DbxTwoColumnSrefDirective, DbxUIRouterSegueAnchorComponent, DbxValueListGridItemViewComponent, DbxValueListGridSizeDirective, DbxValueListGridViewComponent, DbxValueListItemModifier, DbxValueListItemModifierDirective, DbxValueListItemViewComponent, DbxValueListView, DbxValueListViewComponent, DbxWarnComponent, DbxWebAngularRouterModule, DbxWebModule, DbxWebRootModule, DbxWebUIRouterModule, DbxWidgetListGridComponent, DbxWidgetListGridViewComponent, DbxWidgetListGridViewItemComponent, DbxWidgetModule, DbxWidgetService, DbxWidgetViewComponent, DbxWindowKeyDownListenerDirective, LoadingComponentState, PopoverPositionStrategy, PopupGlobalPositionStrategy, SCREEN_MEDIA_WIDTH_TYPE_SIZE_MAP, SideNavDisplayMode, TwoColumnsContextStore, addConfigToValueListItems, catchErrorServerParams, compactModeFromInput, compareScreenMediaWidthTypes, convertServerErrorParams, convertToPOJOServerErrorResponse, convertToServerErrorResponse, listItemModifier, makeDbxActionSnackbarDisplayConfigGeneratorFunction, mapCompactModeObs, mapValuesToValuesListItemConfigObs, provideDbxListView, provideDbxListViewWrapper, provideDbxPromptConfirm, provideDbxValueListView, provideDbxValueListViewModifier, provideTwoColumnsContext, screenMediaWidthTypeIsActive, visibleDateRangeForCalendarState };
|
|
7324
7560
|
//# sourceMappingURL=dereekb-dbx-web.mjs.map
|