@kolektor/nucleus-material 0.0.8-pre.5676 → 0.0.9-pre.5874

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.
Files changed (30) hide show
  1. package/{esm2015/kolektor-nucleus-material.js → esm2020/kolektor-nucleus-material.mjs} +0 -0
  2. package/{esm2015/lib/dialog/dialog.component.js → esm2020/lib/dialog/dialog.component.mjs} +5 -10
  3. package/{esm2015/lib/dialog/dialog.module.js → esm2020/lib/dialog/dialog.module.mjs} +4 -4
  4. package/esm2020/lib/dialog/dialog.service.mjs +40 -0
  5. package/{esm2015/lib/dialog/models.js → esm2020/lib/dialog/models.mjs} +0 -0
  6. package/esm2020/lib/loaded-content/loaded-content-component.mjs +71 -0
  7. package/{esm2015/lib/loaded-content/loaded-content-directive.js → esm2020/lib/loaded-content/loaded-content-directive.mjs} +3 -3
  8. package/{esm2015/lib/loaded-content/loaded-content-module.js → esm2020/lib/loaded-content/loaded-content-module.mjs} +4 -4
  9. package/{esm2015/lib/loaded-content/loading-state.js → esm2020/lib/loaded-content/loading-state.mjs} +4 -4
  10. package/{esm2015/lib/native-styling/models.js → esm2020/lib/native-styling/models.mjs} +0 -0
  11. package/{esm2015/lib/native-styling/native-styling.service.js → esm2020/lib/native-styling/native-styling.service.mjs} +3 -3
  12. package/{esm2015/lib/snackbar/models.js → esm2020/lib/snackbar/models.mjs} +0 -0
  13. package/{esm2015/lib/snackbar/snackbar.module.js → esm2020/lib/snackbar/snackbar.module.mjs} +4 -4
  14. package/{esm2015/lib/snackbar/snackbar.service.js → esm2020/lib/snackbar/snackbar.service.mjs} +3 -3
  15. package/{esm2015/lib/swipe-tabs/swipe-tabs-directive.js → esm2020/lib/swipe-tabs/swipe-tabs-directive.mjs} +3 -3
  16. package/{esm2015/lib/swipe-tabs/swipe-tabs-module.js → esm2020/lib/swipe-tabs/swipe-tabs-module.mjs} +4 -4
  17. package/esm2020/lib/user-avatar/user-avatar-component.mjs +50 -0
  18. package/{esm2015/lib/user-avatar/user-avatar-module.js → esm2020/lib/user-avatar/user-avatar-module.mjs} +4 -4
  19. package/{esm2015/public-api.js → esm2020/public-api.mjs} +0 -0
  20. package/fesm2015/{kolektor-nucleus-material.js → kolektor-nucleus-material.mjs} +55 -69
  21. package/fesm2015/kolektor-nucleus-material.mjs.map +1 -0
  22. package/fesm2020/kolektor-nucleus-material.mjs +663 -0
  23. package/fesm2020/kolektor-nucleus-material.mjs.map +1 -0
  24. package/package.json +22 -9
  25. package/bundles/kolektor-nucleus-material.umd.js +0 -1135
  26. package/bundles/kolektor-nucleus-material.umd.js.map +0 -1
  27. package/esm2015/lib/dialog/dialog.service.js +0 -43
  28. package/esm2015/lib/loaded-content/loaded-content-component.js +0 -76
  29. package/esm2015/lib/user-avatar/user-avatar-component.js +0 -55
  30. package/fesm2015/kolektor-nucleus-material.js.map +0 -1
@@ -0,0 +1,663 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Component, Inject, Injectable, NgModule, Input, Directive } from '@angular/core';
3
+ import * as i1 from '@angular/material/dialog';
4
+ import { MAT_DIALOG_DATA, MatDialogModule } from '@angular/material/dialog';
5
+ import * as i2 from '@angular/material/button';
6
+ import { MatButtonModule } from '@angular/material/button';
7
+ import * as i3 from '@angular/common';
8
+ import { CommonModule } from '@angular/common';
9
+ import { tap } from 'rxjs/operators';
10
+ import * as i1$1 from '@angular/material/progress-spinner';
11
+ import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
12
+ import * as i2$1 from '@angular/material/icon';
13
+ import { MatIconModule } from '@angular/material/icon';
14
+ import * as i1$2 from '@angular/router';
15
+ import { NavigationEnd } from '@angular/router';
16
+ import * as i1$3 from '@angular/material/tabs';
17
+ import * as Hammer from 'hammerjs';
18
+ import * as i1$4 from '@angular/material/snack-bar';
19
+ import { MatSnackBarModule } from '@angular/material/snack-bar';
20
+
21
+ class NucDialogComponent {
22
+ constructor(dialogRef, dialogData) {
23
+ this.dialogRef = dialogRef;
24
+ this.dialogData = dialogData;
25
+ }
26
+ }
27
+ NucDialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: NucDialogComponent, deps: [{ token: i1.MatDialogRef }, { token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component });
28
+ NucDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.2", type: NucDialogComponent, selector: "nuc-dialog", ngImport: i0, template: "<ng-container *ngIf=\"dialogData\">\r\n <h2 mat-dialog-title *ngIf=\"dialogData.title\">\r\n {{dialogData.title}}\r\n </h2>\r\n <mat-dialog-content>{{dialogData.message}}</mat-dialog-content>\r\n <mat-dialog-actions>\r\n <ng-container *ngFor=\"let action of dialogData.actions\">\r\n <button color=\"{{action.color || 'primary'}}\" *ngIf=\"action.value === undefined\" mat-button mat-dialog-close>{{action.text}}</button>\r\n <button color=\"{{action.color || 'primary'}}\" *ngIf=\"action.value !== undefined\" mat-button [mat-dialog-close]=\"action.value\">{{action.text}}</button>\r\n </ng-container>\r\n </mat-dialog-actions>\r\n</ng-container>\r\n", styles: ["mat-dialog-actions{justify-content:flex-end}mat-dialog-content{white-space:pre-wrap}button{text-transform:uppercase;font-weight:700}\n"], components: [{ type: i2.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"] }], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { type: i1.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { type: i1.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]" }, { type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["aria-label", "type", "mat-dialog-close", "matDialogClose"], exportAs: ["matDialogClose"] }] });
29
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: NucDialogComponent, decorators: [{
30
+ type: Component,
31
+ args: [{ selector: 'nuc-dialog', template: "<ng-container *ngIf=\"dialogData\">\r\n <h2 mat-dialog-title *ngIf=\"dialogData.title\">\r\n {{dialogData.title}}\r\n </h2>\r\n <mat-dialog-content>{{dialogData.message}}</mat-dialog-content>\r\n <mat-dialog-actions>\r\n <ng-container *ngFor=\"let action of dialogData.actions\">\r\n <button color=\"{{action.color || 'primary'}}\" *ngIf=\"action.value === undefined\" mat-button mat-dialog-close>{{action.text}}</button>\r\n <button color=\"{{action.color || 'primary'}}\" *ngIf=\"action.value !== undefined\" mat-button [mat-dialog-close]=\"action.value\">{{action.text}}</button>\r\n </ng-container>\r\n </mat-dialog-actions>\r\n</ng-container>\r\n", styles: ["mat-dialog-actions{justify-content:flex-end}mat-dialog-content{white-space:pre-wrap}button{text-transform:uppercase;font-weight:700}\n"] }]
32
+ }], ctorParameters: function () { return [{ type: i1.MatDialogRef }, { type: undefined, decorators: [{
33
+ type: Inject,
34
+ args: [MAT_DIALOG_DATA]
35
+ }] }]; } });
36
+
37
+ class NucDialogService {
38
+ constructor(_matDialog) {
39
+ this._matDialog = _matDialog;
40
+ }
41
+ /**
42
+ * Opens a NucDialog with content from dialogData.
43
+ *
44
+ * @param dialogData NucDialogData containing title, message and possible actions.
45
+ * @param dialogConfig Extra configuration options. Data property is ignored, since it will be set to dialogData.
46
+ * @returns a promise with value that was specified inside pressed Nucleus action.
47
+ */
48
+ async open(dialogData, dialogConfig) {
49
+ if (dialogData.actions && dialogData.actions.length > 0) {
50
+ if (dialogConfig) {
51
+ dialogConfig.data = dialogData;
52
+ }
53
+ else {
54
+ dialogConfig = { data: dialogData };
55
+ }
56
+ return await this._matDialog.open(NucDialogComponent, dialogConfig).beforeClosed().toPromise();
57
+ }
58
+ else {
59
+ console.error('Nucleus.AppCore: NucDialogData requires at least one action.');
60
+ }
61
+ }
62
+ }
63
+ NucDialogService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: NucDialogService, deps: [{ token: i1.MatDialog }], target: i0.ɵɵFactoryTarget.Injectable });
64
+ NucDialogService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: NucDialogService, providedIn: 'root' });
65
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: NucDialogService, decorators: [{
66
+ type: Injectable,
67
+ args: [{
68
+ providedIn: 'root'
69
+ }]
70
+ }], ctorParameters: function () { return [{ type: i1.MatDialog }]; } });
71
+
72
+ class NucDialogModule {
73
+ }
74
+ NucDialogModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: NucDialogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
75
+ NucDialogModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: NucDialogModule, declarations: [NucDialogComponent], imports: [CommonModule,
76
+ MatDialogModule,
77
+ MatButtonModule] });
78
+ NucDialogModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: NucDialogModule, imports: [[
79
+ CommonModule,
80
+ MatDialogModule,
81
+ MatButtonModule
82
+ ]] });
83
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: NucDialogModule, decorators: [{
84
+ type: NgModule,
85
+ args: [{
86
+ declarations: [
87
+ NucDialogComponent
88
+ ],
89
+ imports: [
90
+ CommonModule,
91
+ MatDialogModule,
92
+ MatButtonModule
93
+ ],
94
+ entryComponents: [
95
+ NucDialogComponent
96
+ ]
97
+ }]
98
+ }] });
99
+
100
+ var NucColor;
101
+ (function (NucColor) {
102
+ /** Primary color of the theme. */
103
+ NucColor["primary"] = "primary";
104
+ /** Accent color of the theme. */
105
+ NucColor["accent"] = "accent";
106
+ /** Warning color of the theme. */
107
+ NucColor["warn"] = "warn";
108
+ })(NucColor || (NucColor = {}));
109
+
110
+ var LoadingStatus;
111
+ (function (LoadingStatus) {
112
+ LoadingStatus[LoadingStatus["completed"] = 0] = "completed";
113
+ LoadingStatus[LoadingStatus["inProgress"] = 1] = "inProgress";
114
+ LoadingStatus[LoadingStatus["failed"] = 2] = "failed";
115
+ LoadingStatus[LoadingStatus["undefined"] = 3] = "undefined";
116
+ })(LoadingStatus || (LoadingStatus = {}));
117
+ class LoadingState {
118
+ constructor() {
119
+ this._status = LoadingStatus.undefined;
120
+ this._message = null;
121
+ this._errorDetails = null;
122
+ this._lastSubscription = null;
123
+ }
124
+ get status() {
125
+ return this._status;
126
+ }
127
+ get message() {
128
+ return this._message;
129
+ }
130
+ get errorDetails() {
131
+ return this._errorDetails;
132
+ }
133
+ load(observable, resultFunction, errorFunction, completeFunction) {
134
+ return this._load(true, null, observable, resultFunction, errorFunction, completeFunction);
135
+ }
136
+ loadWithMessage(observable, message, resultFunction, errorFunction, completeFunction) {
137
+ return this._load(true, message, observable, resultFunction, errorFunction, completeFunction);
138
+ }
139
+ invoke(observable, resultFunction, errorFunction, completeFunction) {
140
+ return this._load(false, null, observable, resultFunction, errorFunction, completeFunction);
141
+ }
142
+ invokeWithMessage(observable, message, resultFunction, errorFunction, completeFunction) {
143
+ return this._load(false, message, observable, resultFunction, errorFunction, completeFunction);
144
+ }
145
+ retry() {
146
+ if (this._lastSubscription) {
147
+ this._lastSubscription.unsubscribe();
148
+ }
149
+ this.setInProgress();
150
+ this._lastSubscription = this._loadObservable.subscribe(this._resultFunction, this._errorFunction, this._completeFunction);
151
+ return this._lastSubscription;
152
+ }
153
+ setInProgress(message = null) {
154
+ this._status = LoadingStatus.inProgress;
155
+ this._message = message;
156
+ }
157
+ setCompleted() {
158
+ this._status = LoadingStatus.completed;
159
+ }
160
+ setFailed(message = null, error = null) {
161
+ this._status = LoadingStatus.failed;
162
+ this._message = message;
163
+ this._errorDetails = error;
164
+ }
165
+ _load(saveAsLoadObservable, progressMessage, observable, resultFunction, errorFunction, completeFunction) {
166
+ if (this._lastSubscription) {
167
+ this._lastSubscription.unsubscribe();
168
+ }
169
+ this.setInProgress(progressMessage);
170
+ const obs = observable.pipe(tap(() => {
171
+ if (!saveAsLoadObservable && this.message) { // if message was used one time we clear it
172
+ this._message = null;
173
+ }
174
+ this.setCompleted();
175
+ }, (err) => {
176
+ this.setFailed(null, LoadingState.getErrorDetails(err));
177
+ }));
178
+ if (saveAsLoadObservable) {
179
+ this._loadObservable = obs;
180
+ this._resultFunction = resultFunction;
181
+ this._errorFunction = errorFunction;
182
+ this._completeFunction = completeFunction;
183
+ }
184
+ this._lastSubscription = obs.subscribe(resultFunction, errorFunction, completeFunction);
185
+ return this._lastSubscription;
186
+ }
187
+ static getErrorDetails(error) {
188
+ // this routine tries to get the best error details from:
189
+ // - standard rfc7807 http error: https://datatracker.ietf.org/doc/html/rfc7807
190
+ // - angular HttpError
191
+ // - JS Error object
192
+ const problem = error?.error;
193
+ if (problem?.title && problem?.detail) {
194
+ return `${problem.title}: ${problem.detail}`;
195
+ }
196
+ else {
197
+ return problem?.title || problem?.detail || error.message || error;
198
+ }
199
+ }
200
+ }
201
+
202
+ class NucLoadedContentComponent {
203
+ constructor() {
204
+ this._errorDetailsVisible = false;
205
+ this.errorMessage = 'We are having trouble loading the data.';
206
+ this.showRetry = true;
207
+ }
208
+ get message() {
209
+ if (this.state.message != null) {
210
+ return this.state.message;
211
+ }
212
+ else {
213
+ if (this.state.status === LoadingStatus.failed) {
214
+ return this.errorMessage;
215
+ }
216
+ else if (this.state.status === LoadingStatus.inProgress) {
217
+ return this.inProgressMessage;
218
+ }
219
+ }
220
+ return null;
221
+ }
222
+ get showRetryButton() {
223
+ return this.showRetry;
224
+ }
225
+ get inProgress() {
226
+ const inProgress = this.state.status === LoadingStatus.inProgress;
227
+ if (inProgress) {
228
+ this._errorDetailsVisible = false;
229
+ }
230
+ return inProgress;
231
+ }
232
+ get failed() {
233
+ return this.state.status === LoadingStatus.failed;
234
+ }
235
+ get completed() {
236
+ return this.state.status === LoadingStatus.completed;
237
+ }
238
+ get errorDetailsVisible() {
239
+ return this._errorDetailsVisible;
240
+ }
241
+ showErrorDetails() {
242
+ this._errorDetailsVisible = true;
243
+ }
244
+ }
245
+ NucLoadedContentComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: NucLoadedContentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
246
+ NucLoadedContentComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.2", type: NucLoadedContentComponent, selector: "nuc-loaded-content-component", inputs: { completedTemplate: "completedTemplate", errorTemplate: "errorTemplate", inProgressTemplate: "inProgressTemplate", state: "state", inProgressMessage: "inProgressMessage", errorMessage: "errorMessage", showRetry: "showRetry" }, ngImport: i0, template: "<ng-container *ngIf=\"completed\">\r\n <ng-container *ngTemplateOutlet=\"completedTemplate\"></ng-container>\r\n</ng-container>\r\n\r\n<div class=\"indicators-container\" *ngIf=\"inProgress || failed\">\r\n <ng-container *ngIf=\"inProgress\">\r\n <ng-container *ngTemplateOutlet=\"inProgressTemplate ? inProgressTemplate: defaultInProgressTemplate\"></ng-container>\r\n </ng-container>\r\n <ng-container *ngIf=\"failed\">\r\n <ng-container *ngTemplateOutlet=\"errorTemplate ? errorTemplate: defaultErrorTemplate\"></ng-container>\r\n </ng-container>\r\n</div>\r\n\r\n<ng-template #defaultInProgressTemplate>\r\n <div class=\"spinner\">\r\n <mat-spinner [diameter]=\"45\"></mat-spinner>\r\n </div>\r\n <p>\r\n {{message}}\r\n </p>\r\n</ng-template>\r\n\r\n<ng-template #defaultErrorTemplate>\r\n <div>\r\n <p class=\"message\">\r\n <span>{{message}}</span>\r\n <mat-icon *ngIf=\"state.errorDetails && !errorDetailsVisible\" class=\"info-button\" color=\"warn\" (click)=\"showErrorDetails()\">info</mat-icon>\r\n </p>\r\n\r\n <p *ngIf=\"errorDetailsVisible\" class=\"error-details mat-small\">\r\n {{state.errorDetails}}\r\n </p>\r\n\r\n <p *ngIf=\"showRetryButton\">\r\n <button mat-mini-fab color=\"primary\" (click)=\"state.retry()\">\r\n <mat-icon>refresh</mat-icon>\r\n </button>\r\n </p>\r\n </div>\r\n</ng-template>\r\n", styles: [".indicators-container{text-align:center;margin:0 auto;padding-top:4rem}.error-details{margin-top:1rem}.spinner{display:flex;justify-content:center;align-items:center;margin-bottom:.5rem}.message{display:flex;justify-content:center;align-items:center}.info-button{cursor:pointer;margin-left:.5rem}\n"], components: [{ type: i1$1.MatSpinner, selector: "mat-spinner", inputs: ["color"] }, { type: i2$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: i2.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"] }], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
247
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: NucLoadedContentComponent, decorators: [{
248
+ type: Component,
249
+ args: [{ selector: 'nuc-loaded-content-component', template: "<ng-container *ngIf=\"completed\">\r\n <ng-container *ngTemplateOutlet=\"completedTemplate\"></ng-container>\r\n</ng-container>\r\n\r\n<div class=\"indicators-container\" *ngIf=\"inProgress || failed\">\r\n <ng-container *ngIf=\"inProgress\">\r\n <ng-container *ngTemplateOutlet=\"inProgressTemplate ? inProgressTemplate: defaultInProgressTemplate\"></ng-container>\r\n </ng-container>\r\n <ng-container *ngIf=\"failed\">\r\n <ng-container *ngTemplateOutlet=\"errorTemplate ? errorTemplate: defaultErrorTemplate\"></ng-container>\r\n </ng-container>\r\n</div>\r\n\r\n<ng-template #defaultInProgressTemplate>\r\n <div class=\"spinner\">\r\n <mat-spinner [diameter]=\"45\"></mat-spinner>\r\n </div>\r\n <p>\r\n {{message}}\r\n </p>\r\n</ng-template>\r\n\r\n<ng-template #defaultErrorTemplate>\r\n <div>\r\n <p class=\"message\">\r\n <span>{{message}}</span>\r\n <mat-icon *ngIf=\"state.errorDetails && !errorDetailsVisible\" class=\"info-button\" color=\"warn\" (click)=\"showErrorDetails()\">info</mat-icon>\r\n </p>\r\n\r\n <p *ngIf=\"errorDetailsVisible\" class=\"error-details mat-small\">\r\n {{state.errorDetails}}\r\n </p>\r\n\r\n <p *ngIf=\"showRetryButton\">\r\n <button mat-mini-fab color=\"primary\" (click)=\"state.retry()\">\r\n <mat-icon>refresh</mat-icon>\r\n </button>\r\n </p>\r\n </div>\r\n</ng-template>\r\n", styles: [".indicators-container{text-align:center;margin:0 auto;padding-top:4rem}.error-details{margin-top:1rem}.spinner{display:flex;justify-content:center;align-items:center;margin-bottom:.5rem}.message{display:flex;justify-content:center;align-items:center}.info-button{cursor:pointer;margin-left:.5rem}\n"] }]
250
+ }], propDecorators: { completedTemplate: [{
251
+ type: Input
252
+ }], errorTemplate: [{
253
+ type: Input
254
+ }], inProgressTemplate: [{
255
+ type: Input
256
+ }], state: [{
257
+ type: Input
258
+ }], inProgressMessage: [{
259
+ type: Input
260
+ }], errorMessage: [{
261
+ type: Input
262
+ }], showRetry: [{
263
+ type: Input
264
+ }] } });
265
+
266
+ // eslint-disable-next-line @angular-eslint/directive-selector
267
+ class NucLoadedContentDirective {
268
+ constructor(_viewContainer, templateRef, _componentResolver) {
269
+ this._viewContainer = _viewContainer;
270
+ this.templateRef = templateRef;
271
+ this._componentResolver = _componentResolver;
272
+ this._completedTemplateRef = null;
273
+ this._errorTemplateRef = null;
274
+ this._inProgressTemplateRef = null;
275
+ this._component = null;
276
+ this._completedTemplateRef = templateRef;
277
+ }
278
+ set nucLoadedContent(state) {
279
+ // add some error handling if state is null, etc.
280
+ this._state = state;
281
+ this._updateView();
282
+ }
283
+ // eslint-disable-next-line @angular-eslint/no-input-rename
284
+ set errorTemplate(templateRef) {
285
+ this._errorTemplateRef = templateRef;
286
+ this._updateView();
287
+ }
288
+ // eslint-disable-next-line @angular-eslint/no-input-rename
289
+ set inProgressTemplate(templateRef) {
290
+ this._inProgressTemplateRef = templateRef;
291
+ this._updateView();
292
+ }
293
+ set inProgressMessage(inProgressMessage) {
294
+ this._component.instance.inProgressMessage = inProgressMessage;
295
+ }
296
+ set errorMessage(errorMessage) {
297
+ this._component.instance.errorMessage = errorMessage;
298
+ }
299
+ set showRetry(showRetry) {
300
+ this._component.instance.showRetry = showRetry;
301
+ }
302
+ _updateView() {
303
+ if (this._component == null) {
304
+ const fac = this._componentResolver.resolveComponentFactory(NucLoadedContentComponent);
305
+ this._component = this._viewContainer.createComponent(fac);
306
+ }
307
+ this._component.instance.state = this._state;
308
+ this._component.instance.completedTemplate = this._completedTemplateRef;
309
+ if (this._inProgressTemplateRef) {
310
+ this._component.instance.inProgressTemplate = this._inProgressTemplateRef;
311
+ }
312
+ if (this._errorTemplateRef) {
313
+ this._component.instance.errorTemplate = this._errorTemplateRef;
314
+ }
315
+ }
316
+ }
317
+ NucLoadedContentDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: NucLoadedContentDirective, deps: [{ token: i0.ViewContainerRef }, { token: i0.TemplateRef }, { token: i0.ComponentFactoryResolver }], target: i0.ɵɵFactoryTarget.Directive });
318
+ NucLoadedContentDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.2", type: NucLoadedContentDirective, selector: "[nucLoadedContent]", inputs: { nucLoadedContent: "nucLoadedContent", errorTemplate: ["nucLoadedContentError", "errorTemplate"], inProgressTemplate: ["nucLoadedContentInProgress", "inProgressTemplate"], inProgressMessage: ["nucLoadedContentInProgressMessage", "inProgressMessage"], errorMessage: ["nucLoadedContentErrorMessage", "errorMessage"], showRetry: ["nucLoadedContentShowRetry", "showRetry"] }, ngImport: i0 });
319
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: NucLoadedContentDirective, decorators: [{
320
+ type: Directive,
321
+ args: [{ selector: '[nucLoadedContent]' }]
322
+ }], ctorParameters: function () { return [{ type: i0.ViewContainerRef }, { type: i0.TemplateRef }, { type: i0.ComponentFactoryResolver }]; }, propDecorators: { nucLoadedContent: [{
323
+ type: Input
324
+ }], errorTemplate: [{
325
+ type: Input,
326
+ args: ['nucLoadedContentError']
327
+ }], inProgressTemplate: [{
328
+ type: Input,
329
+ args: ['nucLoadedContentInProgress']
330
+ }], inProgressMessage: [{
331
+ type: Input,
332
+ args: ['nucLoadedContentInProgressMessage']
333
+ }], errorMessage: [{
334
+ type: Input,
335
+ args: ['nucLoadedContentErrorMessage']
336
+ }], showRetry: [{
337
+ type: Input,
338
+ args: ['nucLoadedContentShowRetry']
339
+ }] } });
340
+
341
+ class NucLoadedContentModule {
342
+ }
343
+ NucLoadedContentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: NucLoadedContentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
344
+ NucLoadedContentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: NucLoadedContentModule, declarations: [NucLoadedContentDirective,
345
+ NucLoadedContentComponent], imports: [CommonModule,
346
+ MatProgressSpinnerModule,
347
+ MatButtonModule,
348
+ MatIconModule], exports: [NucLoadedContentDirective] });
349
+ NucLoadedContentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: NucLoadedContentModule, imports: [[
350
+ CommonModule,
351
+ MatProgressSpinnerModule,
352
+ MatButtonModule,
353
+ MatIconModule
354
+ ]] });
355
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: NucLoadedContentModule, decorators: [{
356
+ type: NgModule,
357
+ args: [{
358
+ declarations: [
359
+ NucLoadedContentDirective,
360
+ NucLoadedContentComponent
361
+ ],
362
+ imports: [
363
+ CommonModule,
364
+ MatProgressSpinnerModule,
365
+ MatButtonModule,
366
+ MatIconModule
367
+ ],
368
+ exports: [
369
+ NucLoadedContentDirective
370
+ ],
371
+ entryComponents: [
372
+ NucLoadedContentComponent
373
+ ]
374
+ }]
375
+ }] });
376
+
377
+ /// <reference path="../../../../../node_modules/@types/winrt-uwp/index.d.ts" />
378
+ class NativeStylingService {
379
+ constructor(router) {
380
+ this.router = router;
381
+ }
382
+ styleWindowsTitleBar(style) {
383
+ if (window.Windows) {
384
+ const accentColor = this.convertColor(style.backgroundColor);
385
+ const hoverColor = style.hoverBackgroundColor ? this.convertColor(style.hoverBackgroundColor) : this.makeDarker(accentColor);
386
+ const foregroundColor = style.foreground === 'light' ? Windows.UI.Colors.white : Windows.UI.Colors.black;
387
+ const titleColor = style.hideTitle ? accentColor : foregroundColor;
388
+ const appView = Windows.UI.ViewManagement.ApplicationView.getForCurrentView();
389
+ const titleBar = appView.titleBar;
390
+ titleBar.foregroundColor = titleColor;
391
+ titleBar.inactiveForegroundColor = titleColor;
392
+ titleBar.buttonHoverBackgroundColor = hoverColor;
393
+ titleBar.buttonBackgroundColor = accentColor;
394
+ titleBar.buttonInactiveBackgroundColor = accentColor;
395
+ titleBar.buttonHoverForegroundColor = foregroundColor;
396
+ titleBar.buttonForegroundColor = foregroundColor;
397
+ titleBar.buttonInactiveForegroundColor = foregroundColor;
398
+ titleBar.backgroundColor = accentColor;
399
+ titleBar.inactiveBackgroundColor = accentColor;
400
+ if (style.hideBackButton) {
401
+ this.hideBackButton();
402
+ const subscription = this.router.events.subscribe((event) => {
403
+ if (event instanceof NavigationEnd && event.id > 1) {
404
+ this.hideBackButton();
405
+ subscription.unsubscribe();
406
+ }
407
+ });
408
+ }
409
+ }
410
+ }
411
+ hideBackButton() {
412
+ const systemNavigation = Windows.UI.Core.SystemNavigationManager.getForCurrentView();
413
+ systemNavigation.appViewBackButtonVisibility = Windows.UI.Core.AppViewBackButtonVisibility.collapsed;
414
+ }
415
+ convertColor(colorStr) {
416
+ const regEx = new RegExp('^#([A-Fa-f0-9]{6})$');
417
+ if (!regEx.test(colorStr)) {
418
+ throw new Error('Color is not in the right format. Should be #RRGGBB.');
419
+ }
420
+ const r = parseInt(colorStr.substr(1, 2), 16);
421
+ const g = parseInt(colorStr.substr(3, 2), 16);
422
+ const b = parseInt(colorStr.substr(5, 2), 16);
423
+ return Windows.UI.ColorHelper.fromArgb(255, r, g, b);
424
+ }
425
+ makeDarker(color, factor = 0.80) {
426
+ return Windows.UI.ColorHelper.fromArgb(color.a, color.r * factor, color.g * factor, color.b * factor);
427
+ }
428
+ }
429
+ NativeStylingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: NativeStylingService, deps: [{ token: i1$2.Router }], target: i0.ɵɵFactoryTarget.Injectable });
430
+ NativeStylingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: NativeStylingService, providedIn: 'root' });
431
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: NativeStylingService, decorators: [{
432
+ type: Injectable,
433
+ args: [{
434
+ providedIn: 'root'
435
+ }]
436
+ }], ctorParameters: function () { return [{ type: i1$2.Router }]; } });
437
+
438
+ class WindowsTitleBarSyle {
439
+ constructor() {
440
+ this.hoverBackgroundColor = null;
441
+ this.foreground = 'dark';
442
+ this.hideTitle = false;
443
+ this.hideBackButton = false;
444
+ }
445
+ }
446
+
447
+ // eslint-disable-next-line @angular-eslint/directive-selector
448
+ class NucSwipeTabsDirective {
449
+ constructor(element, // ElementRef<MatTabGroup> causes errors.
450
+ tabGroup) {
451
+ this.element = element;
452
+ this.tabGroup = tabGroup;
453
+ }
454
+ ngOnInit() {
455
+ const hammerJs = new Hammer.Manager(this.element.nativeElement, {
456
+ inputClass: Hammer.TouchInput
457
+ });
458
+ hammerJs.add(new Hammer.Pan({
459
+ direction: Hammer.DIRECTION_HORIZONTAL,
460
+ threshold: 30
461
+ }));
462
+ hammerJs.on('panleft panright', (event) => {
463
+ if (event.isFinal) {
464
+ // Check if any of the tabs are set to disabled
465
+ const tabs = this.tabGroup._tabs.map(x => x.disabled);
466
+ const anyTabDisabled = tabs.some(disabled => disabled);
467
+ if (event.type === 'panleft' && event.direction === 2 && this.tabGroup.selectedIndex < (this.tabGroup._tabs.length - 1)) {
468
+ // Go to next tab
469
+ if (anyTabDisabled) {
470
+ const tabsToRight = tabs.slice(this.tabGroup.selectedIndex + 1);
471
+ this.tabGroup.selectedIndex += this.getOffset(tabsToRight);
472
+ }
473
+ else {
474
+ this.tabGroup.selectedIndex++;
475
+ }
476
+ }
477
+ else if (event.type === 'panright' && event.direction === 4 && this.tabGroup.selectedIndex > 0) {
478
+ // Go to previous tab
479
+ if (anyTabDisabled) {
480
+ const tabsToLeft = tabs.slice().reverse().slice(-this.tabGroup.selectedIndex);
481
+ this.tabGroup.selectedIndex -= this.getOffset(tabsToLeft);
482
+ }
483
+ else {
484
+ this.tabGroup.selectedIndex--;
485
+ }
486
+ }
487
+ }
488
+ });
489
+ }
490
+ getOffset(tabs) {
491
+ // Find offset to the first enabled tab
492
+ const offset = tabs.indexOf(tabs.find(disabled => !disabled)) + 1;
493
+ return offset;
494
+ }
495
+ }
496
+ NucSwipeTabsDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: NucSwipeTabsDirective, deps: [{ token: i0.ElementRef }, { token: i1$3.MatTabGroup }], target: i0.ɵɵFactoryTarget.Directive });
497
+ NucSwipeTabsDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.2", type: NucSwipeTabsDirective, selector: "[nucSwipe]", ngImport: i0 });
498
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: NucSwipeTabsDirective, decorators: [{
499
+ type: Directive,
500
+ args: [{ selector: '[nucSwipe]' }]
501
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1$3.MatTabGroup }]; } });
502
+
503
+ class NucSwipeTabsModule {
504
+ }
505
+ NucSwipeTabsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: NucSwipeTabsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
506
+ NucSwipeTabsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: NucSwipeTabsModule, declarations: [NucSwipeTabsDirective], imports: [CommonModule], exports: [NucSwipeTabsDirective] });
507
+ NucSwipeTabsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: NucSwipeTabsModule, imports: [[
508
+ CommonModule
509
+ ]] });
510
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: NucSwipeTabsModule, decorators: [{
511
+ type: NgModule,
512
+ args: [{
513
+ declarations: [
514
+ NucSwipeTabsDirective
515
+ ],
516
+ imports: [
517
+ CommonModule
518
+ ],
519
+ exports: [
520
+ NucSwipeTabsDirective
521
+ ]
522
+ }]
523
+ }] });
524
+
525
+ class NucSnackbarService {
526
+ constructor(_matSnackBar, _zone) {
527
+ this._matSnackBar = _matSnackBar;
528
+ this._zone = _zone;
529
+ }
530
+ openSnackbar(type, message, action, duration) {
531
+ let snackbarRef;
532
+ this._zone.run(() => {
533
+ snackbarRef = this._matSnackBar.open(message, action, {
534
+ duration,
535
+ panelClass: `${type}-snackbar`
536
+ });
537
+ });
538
+ return snackbarRef;
539
+ }
540
+ openSnackbarWithConfig(message, action, config) {
541
+ let snackbarRef;
542
+ this._zone.run(() => {
543
+ snackbarRef = this._matSnackBar.open(message, action, config);
544
+ });
545
+ return snackbarRef;
546
+ }
547
+ }
548
+ NucSnackbarService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: NucSnackbarService, deps: [{ token: i1$4.MatSnackBar }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
549
+ NucSnackbarService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: NucSnackbarService, providedIn: 'root' });
550
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: NucSnackbarService, decorators: [{
551
+ type: Injectable,
552
+ args: [{
553
+ providedIn: 'root'
554
+ }]
555
+ }], ctorParameters: function () { return [{ type: i1$4.MatSnackBar }, { type: i0.NgZone }]; } });
556
+
557
+ class NucSnackbarModule {
558
+ }
559
+ NucSnackbarModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: NucSnackbarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
560
+ NucSnackbarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: NucSnackbarModule, imports: [CommonModule,
561
+ MatSnackBarModule] });
562
+ NucSnackbarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: NucSnackbarModule, imports: [[
563
+ CommonModule,
564
+ MatSnackBarModule
565
+ ]] });
566
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: NucSnackbarModule, decorators: [{
567
+ type: NgModule,
568
+ args: [{
569
+ declarations: [],
570
+ imports: [
571
+ CommonModule,
572
+ MatSnackBarModule
573
+ ],
574
+ exports: []
575
+ }]
576
+ }] });
577
+
578
+ var NucSnackbarType;
579
+ (function (NucSnackbarType) {
580
+ NucSnackbarType["Info"] = "info";
581
+ NucSnackbarType["Warning"] = "warning";
582
+ NucSnackbarType["Danger"] = "danger";
583
+ NucSnackbarType["Success"] = "success";
584
+ })(NucSnackbarType || (NucSnackbarType = {}));
585
+
586
+ class NucUserAvatarComponent {
587
+ constructor() {
588
+ this.size = 'medium';
589
+ this.background = false;
590
+ }
591
+ getUserInitials() {
592
+ const nameParts = this.name.split(' ');
593
+ return nameParts[0].charAt(0).toUpperCase() + '' + nameParts[nameParts.length - 1].charAt(0).toUpperCase();
594
+ }
595
+ getHslString() {
596
+ if (!this.background) {
597
+ return `hsl(${0},${0}%,${100}%)`;
598
+ }
599
+ let hash = 0;
600
+ for (let i = 0; i < this.name.length; i++) {
601
+ /*
602
+ * Javascript uses double precision floating-point format for all numerical datatypes.
603
+ * Except when using bitwise operations, where operators are converted to 32-bit signed integers.
604
+ * Result of bitwise operations are then converted back to double precision floating-point format.
605
+ *
606
+ * We make a bitwise OR operation between the new hash and 0.
607
+ * This keeps only the lower 32 bits in the new hash value.
608
+ */
609
+ // eslint-disable-next-line no-bitwise
610
+ hash = (this.name.charCodeAt(i) + ((hash << 15) - hash)) | 0;
611
+ }
612
+ const hue = Math.abs(hash % 360);
613
+ const lightness = 49.2;
614
+ const saturation = 42.6;
615
+ return `hsl(${hue},${saturation}%,${lightness}%)`;
616
+ }
617
+ }
618
+ NucUserAvatarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: NucUserAvatarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
619
+ NucUserAvatarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.2", type: NucUserAvatarComponent, selector: "nuc-user-avatar", inputs: { name: "name", image: "image", size: "size", background: "background" }, ngImport: i0, template: "<ng-container *ngIf=\"image\">\r\n <div class=\"user-avatar size-{{size}}\">\r\n <img src=\"{{image}}\" />\r\n </div>\r\n</ng-container>\r\n\r\n<ng-container *ngIf=\"!image\">\r\n <div class=\"user-avatar size-{{size}} unselectable\" [style.background-color]=\"getHslString()\" [ngClass]=\"{'white-text': background, 'black-text border': !background}\">\r\n {{getUserInitials()}}\r\n </div>\r\n</ng-container>\r\n", styles: [".user-avatar{display:flex;align-items:center;justify-content:center;border-radius:50%;position:relative;text-align:center;font-weight:400}.user-avatar img{object-fit:contain;width:inherit;height:inherit;border-radius:50%}.white-text{color:#fff}.black-text{color:#333}.unselectable{-webkit-user-select:none;user-select:none}.border{border:2px solid #333333}.user-avatar.size-small{height:24px;width:24px;font-size:.8em;line-height:24px}.user-avatar.size-medium{height:40px;width:40px;font-size:1.2em;line-height:40px}.user-avatar.size-large{height:64px;width:64px;font-size:2em;line-height:64px}.user-avatar.size-xlarge{height:90px;width:90px;font-size:3em;line-height:90px}\n"], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
620
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: NucUserAvatarComponent, decorators: [{
621
+ type: Component,
622
+ args: [{ selector: 'nuc-user-avatar', template: "<ng-container *ngIf=\"image\">\r\n <div class=\"user-avatar size-{{size}}\">\r\n <img src=\"{{image}}\" />\r\n </div>\r\n</ng-container>\r\n\r\n<ng-container *ngIf=\"!image\">\r\n <div class=\"user-avatar size-{{size}} unselectable\" [style.background-color]=\"getHslString()\" [ngClass]=\"{'white-text': background, 'black-text border': !background}\">\r\n {{getUserInitials()}}\r\n </div>\r\n</ng-container>\r\n", styles: [".user-avatar{display:flex;align-items:center;justify-content:center;border-radius:50%;position:relative;text-align:center;font-weight:400}.user-avatar img{object-fit:contain;width:inherit;height:inherit;border-radius:50%}.white-text{color:#fff}.black-text{color:#333}.unselectable{-webkit-user-select:none;user-select:none}.border{border:2px solid #333333}.user-avatar.size-small{height:24px;width:24px;font-size:.8em;line-height:24px}.user-avatar.size-medium{height:40px;width:40px;font-size:1.2em;line-height:40px}.user-avatar.size-large{height:64px;width:64px;font-size:2em;line-height:64px}.user-avatar.size-xlarge{height:90px;width:90px;font-size:3em;line-height:90px}\n"] }]
623
+ }], ctorParameters: function () { return []; }, propDecorators: { name: [{
624
+ type: Input
625
+ }], image: [{
626
+ type: Input
627
+ }], size: [{
628
+ type: Input
629
+ }], background: [{
630
+ type: Input
631
+ }] } });
632
+
633
+ class NucUserAvatarModule {
634
+ }
635
+ NucUserAvatarModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: NucUserAvatarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
636
+ NucUserAvatarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: NucUserAvatarModule, declarations: [NucUserAvatarComponent], imports: [CommonModule], exports: [NucUserAvatarComponent] });
637
+ NucUserAvatarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: NucUserAvatarModule, imports: [[
638
+ CommonModule,
639
+ ]] });
640
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: NucUserAvatarModule, decorators: [{
641
+ type: NgModule,
642
+ args: [{
643
+ declarations: [
644
+ NucUserAvatarComponent
645
+ ],
646
+ imports: [
647
+ CommonModule,
648
+ ],
649
+ exports: [
650
+ NucUserAvatarComponent
651
+ ]
652
+ }]
653
+ }] });
654
+
655
+ /*
656
+ * Public API Surface of nucleus-material
657
+ */
658
+
659
+ /**
660
+ * Generated bundle index. Do not edit.
661
+ */
662
+
663
+ export { LoadingState, LoadingStatus, NativeStylingService, NucColor, NucDialogModule, NucDialogService, NucLoadedContentComponent, NucLoadedContentDirective, NucLoadedContentModule, NucSnackbarModule, NucSnackbarService, NucSnackbarType, NucSwipeTabsDirective, NucSwipeTabsModule, NucUserAvatarComponent, NucUserAvatarModule, WindowsTitleBarSyle };