@dereekb/dbx-firebase 13.43.0 → 14.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/dereekb-dbx-firebase-oidc.mjs +236 -225
- package/fesm2022/dereekb-dbx-firebase-oidc.mjs.map +1 -1
- package/fesm2022/dereekb-dbx-firebase-style-demo.mjs +5 -7
- package/fesm2022/dereekb-dbx-firebase-style-demo.mjs.map +1 -1
- package/fesm2022/dereekb-dbx-firebase.mjs +1304 -1141
- package/fesm2022/dereekb-dbx-firebase.mjs.map +1 -1
- package/package.json +18 -18
- package/types/dereekb-dbx-firebase.d.ts +50 -19
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { input, computed, output,
|
|
2
|
+
import { input, computed, output, Component, inject, Injectable, signal, Service, effect, Directive, viewChild, provideAppInitializer, makeEnvironmentProviders } from '@angular/core';
|
|
3
3
|
import * as i1 from '@dereekb/dbx-web';
|
|
4
4
|
import { DbxBasicLoadingComponent, DbxErrorComponent, DbxButtonComponent, DbxAvatarComponent, DbxButtonSpacerDirective, DbxActionSnackbarErrorDirective, AbstractDbxSelectionListWrapperDirective, DbxListWrapperComponentImportsModule, DEFAULT_LIST_WRAPPER_COMPONENT_CONFIGURATION_TEMPLATE, AbstractDbxSelectionListViewDirective, DbxSelectionValueListViewComponentImportsModule, provideDbxListView, DEFAULT_DBX_SELECTION_VALUE_LIST_COMPONENT_CONFIGURATION_TEMPLATE, AbstractDbxValueListViewItemComponent, DbxContentPitDirective, DbxLinkComponent, provideDbxListViewWrapper, DbxSpacerDirective, DbxActionConfirmDirective, DbxDetailBlockComponent, DbxClickToCopyTextComponent } from '@dereekb/dbx-web';
|
|
5
5
|
import { readableError, SPACE_STRING_SPLIT_JOIN, separateValues, generatePkceCodeVerifier, generatePkceCodeChallenge } from '@dereekb/util';
|
|
@@ -29,15 +29,18 @@ import { DatePipe, CommonModule } from '@angular/common';
|
|
|
29
29
|
* ```
|
|
30
30
|
*/
|
|
31
31
|
class DbxFirebaseOAuthLoginViewComponent {
|
|
32
|
-
loginStateCase = input.required(
|
|
33
|
-
|
|
32
|
+
loginStateCase = input.required(/* @ts-ignore */
|
|
33
|
+
...(ngDevMode ? [{ debugName: "loginStateCase" }] : /* istanbul ignore next */ []));
|
|
34
|
+
error = input(/* @ts-ignore */
|
|
35
|
+
...(ngDevMode ? [undefined, { debugName: "error" }] : /* istanbul ignore next */ []));
|
|
34
36
|
resolvedErrorSignal = computed(() => {
|
|
35
37
|
const error = this.error();
|
|
36
38
|
return typeof error === 'string' ? readableError('ERROR', error) : error;
|
|
37
|
-
},
|
|
39
|
+
}, /* @ts-ignore */
|
|
40
|
+
...(ngDevMode ? [{ debugName: "resolvedErrorSignal" }] : /* istanbul ignore next */ []));
|
|
38
41
|
retryClick = output();
|
|
39
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
40
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
42
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxFirebaseOAuthLoginViewComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
43
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.4", type: DbxFirebaseOAuthLoginViewComponent, isStandalone: true, selector: "dbx-firebase-oauth-login-view", inputs: { loginStateCase: { classPropertyName: "loginStateCase", publicName: "loginStateCase", isSignal: true, isRequired: true, transformFunction: null }, error: { classPropertyName: "error", publicName: "error", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { retryClick: "retryClick" }, host: { classAttribute: "d-block dbx-firebase-oauth-login-view" }, ngImport: i0, template: `
|
|
41
44
|
<div class="dbx-firebase-oauth-login-view">
|
|
42
45
|
@switch (loginStateCase()) {
|
|
43
46
|
@case ('unknown') {
|
|
@@ -58,13 +61,12 @@ class DbxFirebaseOAuthLoginViewComponent {
|
|
|
58
61
|
}
|
|
59
62
|
}
|
|
60
63
|
</div>
|
|
61
|
-
`, isInline: true, dependencies: [{ kind: "component", type: DbxBasicLoadingComponent, selector: "dbx-basic-loading", inputs: ["diameter", "mode", "text", "linear", "show", "loading", "error"] }, { kind: "component", type: DbxErrorComponent, selector: "dbx-error", inputs: ["error", "iconOnly"], outputs: ["popoverOpened"] }, { kind: "component", type: DbxButtonComponent, selector: "dbx-button", inputs: ["bar", "type", "buttonStyle", "color", "spinnerColor", "
|
|
64
|
+
`, isInline: true, dependencies: [{ kind: "component", type: DbxBasicLoadingComponent, selector: "dbx-basic-loading", inputs: ["diameter", "mode", "text", "linear", "show", "loading", "error"] }, { kind: "component", type: DbxErrorComponent, selector: "dbx-error", inputs: ["error", "iconOnly"], outputs: ["popoverOpened"] }, { kind: "component", type: DbxButtonComponent, selector: "dbx-button", inputs: ["bar", "type", "buttonStyle", "color", "spinnerColor", "customTextColor", "customSpinnerColor", "basic", "tonal", "raised", "stroked", "flat", "iconOnly", "fab", "customContent", "allowClickPropagation", "mode"] }] });
|
|
62
65
|
}
|
|
63
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
66
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxFirebaseOAuthLoginViewComponent, decorators: [{
|
|
64
67
|
type: Component,
|
|
65
68
|
args: [{
|
|
66
69
|
selector: 'dbx-firebase-oauth-login-view',
|
|
67
|
-
standalone: true,
|
|
68
70
|
imports: [DbxBasicLoadingComponent, DbxErrorComponent, DbxButtonComponent],
|
|
69
71
|
template: `
|
|
70
72
|
<div class="dbx-firebase-oauth-login-view">
|
|
@@ -90,8 +92,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.11", ngImpo
|
|
|
90
92
|
`,
|
|
91
93
|
host: {
|
|
92
94
|
class: 'd-block dbx-firebase-oauth-login-view'
|
|
93
|
-
}
|
|
94
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
95
|
+
}
|
|
95
96
|
}]
|
|
96
97
|
}], propDecorators: { loginStateCase: [{ type: i0.Input, args: [{ isSignal: true, alias: "loginStateCase", required: true }] }], error: [{ type: i0.Input, args: [{ isSignal: true, alias: "error", required: false }] }], retryClick: [{ type: i0.Output, args: ["retryClick"] }] } });
|
|
97
98
|
|
|
@@ -126,29 +127,39 @@ const DEFAULT_OAUTH_CONSENT_REQUIRED_SCOPES = ['openid'];
|
|
|
126
127
|
* ```
|
|
127
128
|
*/
|
|
128
129
|
class DbxFirebaseOAuthConsentViewComponent {
|
|
129
|
-
details = input(
|
|
130
|
-
|
|
131
|
-
|
|
130
|
+
details = input(/* @ts-ignore */
|
|
131
|
+
...(ngDevMode ? [undefined, { debugName: "details" }] : /* istanbul ignore next */ []));
|
|
132
|
+
consentStateCase = input.required(/* @ts-ignore */
|
|
133
|
+
...(ngDevMode ? [{ debugName: "consentStateCase" }] : /* istanbul ignore next */ []));
|
|
134
|
+
scopeInjectionConfig = input.required(/* @ts-ignore */
|
|
135
|
+
...(ngDevMode ? [{ debugName: "scopeInjectionConfig" }] : /* istanbul ignore next */ []));
|
|
132
136
|
/**
|
|
133
137
|
* Scopes that cannot be deselected by the user. Forwarded to the scope
|
|
134
138
|
* view so it can render an "Always granted" hint. Defaults to `['openid']`.
|
|
135
139
|
*/
|
|
136
|
-
requiredScopes = input(DEFAULT_OAUTH_CONSENT_REQUIRED_SCOPES,
|
|
140
|
+
requiredScopes = input(DEFAULT_OAUTH_CONSENT_REQUIRED_SCOPES, /* @ts-ignore */
|
|
141
|
+
...(ngDevMode ? [{ debugName: "requiredScopes" }] : /* istanbul ignore next */ []));
|
|
137
142
|
/**
|
|
138
143
|
* Approve handler — called with the form value when the Approve button
|
|
139
144
|
* triggers the outer action. Receives a `WorkUsingContext` to drive the
|
|
140
145
|
* action's loading/success/error pipeline.
|
|
141
146
|
*/
|
|
142
|
-
approveHandler = input.required(
|
|
147
|
+
approveHandler = input.required(/* @ts-ignore */
|
|
148
|
+
...(ngDevMode ? [{ debugName: "approveHandler" }] : /* istanbul ignore next */ []));
|
|
143
149
|
/**
|
|
144
150
|
* Deny handler — called when the Deny button triggers the inner action.
|
|
145
151
|
* No value is passed (`dbxActionValue` provides an empty payload).
|
|
146
152
|
*/
|
|
147
|
-
denyHandler = input.required(
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
153
|
+
denyHandler = input.required(/* @ts-ignore */
|
|
154
|
+
...(ngDevMode ? [{ debugName: "denyHandler" }] : /* istanbul ignore next */ []));
|
|
155
|
+
clientNameSignal = computed(() => this.details()?.client_name ?? '', /* @ts-ignore */
|
|
156
|
+
...(ngDevMode ? [{ debugName: "clientNameSignal" }] : /* istanbul ignore next */ []));
|
|
157
|
+
clientUriSignal = computed(() => this.details()?.client_uri, /* @ts-ignore */
|
|
158
|
+
...(ngDevMode ? [{ debugName: "clientUriSignal" }] : /* istanbul ignore next */ []));
|
|
159
|
+
logoUriSignal = computed(() => this.details()?.logo_uri, /* @ts-ignore */
|
|
160
|
+
...(ngDevMode ? [{ debugName: "logoUriSignal" }] : /* istanbul ignore next */ []));
|
|
161
|
+
scopesSignal = computed(() => SPACE_STRING_SPLIT_JOIN.splitStrings(this.details()?.scopes ?? ''), /* @ts-ignore */
|
|
162
|
+
...(ngDevMode ? [{ debugName: "scopesSignal" }] : /* istanbul ignore next */ []));
|
|
152
163
|
resolvedScopeInjectionConfigSignal = computed(() => {
|
|
153
164
|
const data = {
|
|
154
165
|
details: this.details(),
|
|
@@ -157,9 +168,10 @@ class DbxFirebaseOAuthConsentViewComponent {
|
|
|
157
168
|
requiredScopes: this.requiredScopes()
|
|
158
169
|
};
|
|
159
170
|
return { ...this.scopeInjectionConfig(), data };
|
|
160
|
-
},
|
|
161
|
-
|
|
162
|
-
static
|
|
171
|
+
}, /* @ts-ignore */
|
|
172
|
+
...(ngDevMode ? [{ debugName: "resolvedScopeInjectionConfigSignal" }] : /* istanbul ignore next */ []));
|
|
173
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxFirebaseOAuthConsentViewComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
174
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.4", type: DbxFirebaseOAuthConsentViewComponent, isStandalone: true, selector: "dbx-firebase-oauth-consent-view", inputs: { details: { classPropertyName: "details", publicName: "details", isSignal: true, isRequired: false, transformFunction: null }, consentStateCase: { classPropertyName: "consentStateCase", publicName: "consentStateCase", isSignal: true, isRequired: true, transformFunction: null }, scopeInjectionConfig: { classPropertyName: "scopeInjectionConfig", publicName: "scopeInjectionConfig", isSignal: true, isRequired: true, transformFunction: null }, requiredScopes: { classPropertyName: "requiredScopes", publicName: "requiredScopes", isSignal: true, isRequired: false, transformFunction: null }, approveHandler: { classPropertyName: "approveHandler", publicName: "approveHandler", isSignal: true, isRequired: true, transformFunction: null }, denyHandler: { classPropertyName: "denyHandler", publicName: "denyHandler", isSignal: true, isRequired: true, transformFunction: null } }, host: { classAttribute: "d-block dbx-firebase-oauth-consent-view" }, ngImport: i0, template: `
|
|
163
175
|
<div class="dbx-firebase-oauth-consent-view">
|
|
164
176
|
@switch (consentStateCase()) {
|
|
165
177
|
@case ('unknown') {
|
|
@@ -203,11 +215,11 @@ class DbxFirebaseOAuthConsentViewComponent {
|
|
|
203
215
|
}
|
|
204
216
|
}
|
|
205
217
|
</div>
|
|
206
|
-
`, isInline: true, styles: [".dbx-firebase-oauth-consent-view .dbx-firebase-oauth-consent-header-info{align-items:center;gap:12px}\n"], dependencies: [{ kind: "component", type: DbxInjectionComponent, selector: "dbx-injection, [dbxInjection], [dbx-injection]", inputs: ["config", "template"] }, { kind: "component", type: DbxAvatarComponent, selector: "dbx-avatar", inputs: ["context", "avatarSelector", "avatarUid", "avatarUrl", "avatarName", "avatarKey", "avatarIcon", "avatarStyle", "avatarSize", "avatarHideOnError", "avatarTile", "avatarColor", "avatarColorTone", "avatarImageFit", "avatarImageFilter", "avatarIgnoreDefaultUrl"] }, { kind: "component", type: DbxBasicLoadingComponent, selector: "dbx-basic-loading", inputs: ["diameter", "mode", "text", "linear", "show", "loading", "error"] }, { kind: "component", type: DbxButtonComponent, selector: "dbx-button", inputs: ["bar", "type", "buttonStyle", "color", "spinnerColor", "
|
|
218
|
+
`, isInline: true, styles: [".dbx-firebase-oauth-consent-view .dbx-firebase-oauth-consent-header-info{align-items:center;gap:12px}\n"], dependencies: [{ kind: "component", type: DbxInjectionComponent, selector: "dbx-injection, [dbxInjection], [dbx-injection]", inputs: ["config", "template"] }, { kind: "component", type: DbxAvatarComponent, selector: "dbx-avatar", inputs: ["context", "avatarSelector", "avatarUid", "avatarUrl", "avatarName", "avatarKey", "avatarIcon", "avatarStyle", "avatarSize", "avatarHideOnError", "avatarTile", "avatarColor", "avatarColorTone", "avatarImageFit", "avatarImageFilter", "avatarIgnoreDefaultUrl"] }, { kind: "component", type: DbxBasicLoadingComponent, selector: "dbx-basic-loading", inputs: ["diameter", "mode", "text", "linear", "show", "loading", "error"] }, { kind: "component", type: DbxButtonComponent, selector: "dbx-button", inputs: ["bar", "type", "buttonStyle", "color", "spinnerColor", "customTextColor", "customSpinnerColor", "basic", "tonal", "raised", "stroked", "flat", "iconOnly", "fab", "customContent", "allowClickPropagation", "mode"] }, { kind: "directive", type: DbxButtonSpacerDirective, selector: "dbx-button-spacer,[dbxButtonSpacer]" }, { kind: "directive", type: DbxActionDirective, selector: "dbx-action,[dbxAction]", exportAs: ["action", "dbxAction"] }, { kind: "directive", type: DbxActionHandlerDirective, selector: "[dbxActionHandler]", inputs: ["dbxActionHandler"] }, { kind: "directive", type: DbxActionValueDirective, selector: "dbxActionValue,[dbxActionValue]", inputs: ["dbxActionValue"] }, { kind: "directive", type: DbxActionButtonDirective, selector: "[dbxActionButton]", inputs: ["dbxActionButtonEcho"] }, { kind: "directive", type: DbxActionSnackbarErrorDirective, selector: "[dbxActionSnackbarError]", inputs: ["dbxActionSnackbarError"] }] });
|
|
207
219
|
}
|
|
208
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
220
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxFirebaseOAuthConsentViewComponent, decorators: [{
|
|
209
221
|
type: Component,
|
|
210
|
-
args: [{ selector: 'dbx-firebase-oauth-consent-view',
|
|
222
|
+
args: [{ selector: 'dbx-firebase-oauth-consent-view', imports: [DbxInjectionComponent, DbxAvatarComponent, DbxBasicLoadingComponent, DbxButtonComponent, DbxButtonSpacerDirective, DbxActionDirective, DbxActionHandlerDirective, DbxActionValueDirective, DbxActionButtonDirective, DbxActionSnackbarErrorDirective], template: `
|
|
211
223
|
<div class="dbx-firebase-oauth-consent-view">
|
|
212
224
|
@switch (consentStateCase()) {
|
|
213
225
|
@case ('unknown') {
|
|
@@ -253,7 +265,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.11", ngImpo
|
|
|
253
265
|
</div>
|
|
254
266
|
`, host: {
|
|
255
267
|
class: 'd-block dbx-firebase-oauth-consent-view'
|
|
256
|
-
},
|
|
268
|
+
}, styles: [".dbx-firebase-oauth-consent-view .dbx-firebase-oauth-consent-header-info{align-items:center;gap:12px}\n"] }]
|
|
257
269
|
}], propDecorators: { details: [{ type: i0.Input, args: [{ isSignal: true, alias: "details", required: false }] }], consentStateCase: [{ type: i0.Input, args: [{ isSignal: true, alias: "consentStateCase", required: true }] }], scopeInjectionConfig: [{ type: i0.Input, args: [{ isSignal: true, alias: "scopeInjectionConfig", required: true }] }], requiredScopes: [{ type: i0.Input, args: [{ isSignal: true, alias: "requiredScopes", required: false }] }], approveHandler: [{ type: i0.Input, args: [{ isSignal: true, alias: "approveHandler", required: true }] }], denyHandler: [{ type: i0.Input, args: [{ isSignal: true, alias: "denyHandler", required: true }] }] } });
|
|
258
270
|
|
|
259
271
|
/**
|
|
@@ -272,12 +284,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.11", ngImpo
|
|
|
272
284
|
*/
|
|
273
285
|
class AbstractDbxFirebaseOAuthConsentScopeViewComponent {
|
|
274
286
|
data = inject(DBX_INJECTION_COMPONENT_DATA);
|
|
275
|
-
details = computed(() => this.data?.details,
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
287
|
+
details = computed(() => this.data?.details, /* @ts-ignore */
|
|
288
|
+
...(ngDevMode ? [{ debugName: "details" }] : /* istanbul ignore next */ []));
|
|
289
|
+
scopes = computed(() => this.data?.scopes ?? [], /* @ts-ignore */
|
|
290
|
+
...(ngDevMode ? [{ debugName: "scopes" }] : /* istanbul ignore next */ []));
|
|
291
|
+
clientName = computed(() => this.data?.clientName ?? '', /* @ts-ignore */
|
|
292
|
+
...(ngDevMode ? [{ debugName: "clientName" }] : /* istanbul ignore next */ []));
|
|
293
|
+
clientUri = computed(() => this.data?.details?.client_uri, /* @ts-ignore */
|
|
294
|
+
...(ngDevMode ? [{ debugName: "clientUri" }] : /* istanbul ignore next */ []));
|
|
295
|
+
logoUri = computed(() => this.data?.details?.logo_uri, /* @ts-ignore */
|
|
296
|
+
...(ngDevMode ? [{ debugName: "logoUri" }] : /* istanbul ignore next */ []));
|
|
297
|
+
requiredScopes = computed(() => this.data?.requiredScopes ?? [], /* @ts-ignore */
|
|
298
|
+
...(ngDevMode ? [{ debugName: "requiredScopes" }] : /* istanbul ignore next */ []));
|
|
281
299
|
isScopeRequired(scope) {
|
|
282
300
|
return this.requiredScopes().includes(scope);
|
|
283
301
|
}
|
|
@@ -310,10 +328,10 @@ class DbxFirebaseOAuthConsentScopeListComponent extends AbstractDbxSelectionList
|
|
|
310
328
|
constructor() {
|
|
311
329
|
super({ componentClass: DbxFirebaseOAuthConsentScopeListViewComponent, defaultSelectionMode: 'select' });
|
|
312
330
|
}
|
|
313
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
314
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
331
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxFirebaseOAuthConsentScopeListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
332
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.1.4", type: DbxFirebaseOAuthConsentScopeListComponent, isStandalone: true, selector: "dbx-firebase-oauth-consent-scope-list", host: { classAttribute: "dbx-list-no-hover-effects dbx-list-card-items-list" }, usesInheritance: true, ngImport: i0, template: "\n <dbx-list [state]=\"currentState$\" [config]=\"configSignal()\" [hasMore]=\"hasMore()\" [disabled]=\"disabledSignal()\" [selectionMode]=\"selectionModeSignal()\">\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 <ng-content emptyLoading select=\"[emptyLoading]\"></ng-content>\n <ng-content end select=\"[end]\"></ng-content>\n </dbx-list>", isInline: true, dependencies: [{ kind: "ngmodule", type: DbxListWrapperComponentImportsModule }, { kind: "component", type: i1.DbxListComponent, selector: "dbx-list", inputs: ["padded", "state", "config", "disabled", "selectionMode", "hasMore"], outputs: ["contentScrolled"] }] });
|
|
315
333
|
}
|
|
316
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
334
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxFirebaseOAuthConsentScopeListComponent, decorators: [{
|
|
317
335
|
type: Component,
|
|
318
336
|
args: [{
|
|
319
337
|
selector: 'dbx-firebase-oauth-consent-scope-list',
|
|
@@ -321,9 +339,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.11", ngImpo
|
|
|
321
339
|
host: {
|
|
322
340
|
class: 'dbx-list-no-hover-effects dbx-list-card-items-list'
|
|
323
341
|
},
|
|
324
|
-
imports: [DbxListWrapperComponentImportsModule]
|
|
325
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
326
|
-
standalone: true
|
|
342
|
+
imports: [DbxListWrapperComponentImportsModule]
|
|
327
343
|
}]
|
|
328
344
|
}], ctorParameters: () => [] });
|
|
329
345
|
/**
|
|
@@ -340,18 +356,16 @@ class DbxFirebaseOAuthConsentScopeListViewComponent extends AbstractDbxSelection
|
|
|
340
356
|
componentClass: DbxFirebaseOAuthConsentScopeListItemComponent,
|
|
341
357
|
mapValuesToItemValues: (values) => of(values.map((scope) => ({ ...scope, key: scope.name, itemValue: scope, disabled: scope.required === true })))
|
|
342
358
|
};
|
|
343
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
344
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
359
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxFirebaseOAuthConsentScopeListViewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
360
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.1.4", type: DbxFirebaseOAuthConsentScopeListViewComponent, isStandalone: true, selector: "dbx-firebase-oauth-consent-scope-list-view", providers: provideDbxListView(DbxFirebaseOAuthConsentScopeListViewComponent), usesInheritance: true, ngImport: i0, template: "<dbx-selection-list-view [config]=\"config\"></dbx-selection-list-view>", isInline: true, dependencies: [{ kind: "ngmodule", type: DbxSelectionValueListViewComponentImportsModule }, { kind: "component", type: i1.DbxSelectionValueListViewComponent, selector: "dbx-selection-list-view" }] });
|
|
345
361
|
}
|
|
346
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
362
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxFirebaseOAuthConsentScopeListViewComponent, decorators: [{
|
|
347
363
|
type: Component,
|
|
348
364
|
args: [{
|
|
349
365
|
selector: 'dbx-firebase-oauth-consent-scope-list-view',
|
|
350
366
|
template: DEFAULT_DBX_SELECTION_VALUE_LIST_COMPONENT_CONFIGURATION_TEMPLATE,
|
|
351
367
|
imports: [DbxSelectionValueListViewComponentImportsModule],
|
|
352
|
-
providers: provideDbxListView(DbxFirebaseOAuthConsentScopeListViewComponent)
|
|
353
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
354
|
-
standalone: true
|
|
368
|
+
providers: provideDbxListView(DbxFirebaseOAuthConsentScopeListViewComponent)
|
|
355
369
|
}]
|
|
356
370
|
}] });
|
|
357
371
|
/**
|
|
@@ -373,8 +387,8 @@ class DbxFirebaseOAuthConsentScopeListItemComponent extends AbstractDbxValueList
|
|
|
373
387
|
get required() {
|
|
374
388
|
return this.itemValue.required === true;
|
|
375
389
|
}
|
|
376
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
377
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
390
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxFirebaseOAuthConsentScopeListItemComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
391
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.4", type: DbxFirebaseOAuthConsentScopeListItemComponent, isStandalone: true, selector: "ng-component", usesInheritance: true, ngImport: i0, template: `
|
|
378
392
|
<div class="dbx-list-item-padded dbx-list-item-padded-thick dbx-list-two-line-item">
|
|
379
393
|
<div class="item-left">
|
|
380
394
|
<div class="mat-subtitle-2">{{ name }}</div>
|
|
@@ -386,9 +400,9 @@ class DbxFirebaseOAuthConsentScopeListItemComponent extends AbstractDbxValueList
|
|
|
386
400
|
}
|
|
387
401
|
</div>
|
|
388
402
|
</div>
|
|
389
|
-
`, isInline: true
|
|
403
|
+
`, isInline: true });
|
|
390
404
|
}
|
|
391
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
405
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxFirebaseOAuthConsentScopeListItemComponent, decorators: [{
|
|
392
406
|
type: Component,
|
|
393
407
|
args: [{
|
|
394
408
|
template: `
|
|
@@ -403,9 +417,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.11", ngImpo
|
|
|
403
417
|
}
|
|
404
418
|
</div>
|
|
405
419
|
</div>
|
|
406
|
-
|
|
407
|
-
standalone: true,
|
|
408
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
420
|
+
`
|
|
409
421
|
}]
|
|
410
422
|
}] });
|
|
411
423
|
|
|
@@ -483,18 +495,16 @@ function oauthConsentScopesFormConfig(config) {
|
|
|
483
495
|
*/
|
|
484
496
|
class DbxFirebaseOAuthConsentScopeFormComponent extends AbstractConfigAsyncForgeFormDirective {
|
|
485
497
|
formConfig$ = this.currentConfig$.pipe(map((config) => (config ? oauthConsentScopesFormConfig(config) : undefined)));
|
|
486
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
487
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
498
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxFirebaseOAuthConsentScopeFormComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
499
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.1.4", type: DbxFirebaseOAuthConsentScopeFormComponent, isStandalone: true, selector: "dbx-firebase-oauth-consent-scope-form", providers: dbxForgeFormComponentProviders(), usesInheritance: true, ngImport: i0, template: "<dbx-forge></dbx-forge>", isInline: true, dependencies: [{ kind: "ngmodule", type: DbxForgeFormComponentImportsModule }, { kind: "component", type: i1$1.DbxForgeFormComponent, selector: "dbx-forge" }] });
|
|
488
500
|
}
|
|
489
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
501
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxFirebaseOAuthConsentScopeFormComponent, decorators: [{
|
|
490
502
|
type: Component,
|
|
491
503
|
args: [{
|
|
492
504
|
selector: 'dbx-firebase-oauth-consent-scope-form',
|
|
493
505
|
template: DBX_FORGE_FORM_COMPONENT_TEMPLATE,
|
|
494
506
|
providers: dbxForgeFormComponentProviders(),
|
|
495
|
-
imports: [DbxForgeFormComponentImportsModule]
|
|
496
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
497
|
-
standalone: true
|
|
507
|
+
imports: [DbxForgeFormComponentImportsModule]
|
|
498
508
|
}]
|
|
499
509
|
}] });
|
|
500
510
|
|
|
@@ -595,10 +605,10 @@ class DbxFirebaseOidcConfigService {
|
|
|
595
605
|
get consentScopeListViewClass() {
|
|
596
606
|
return this.config.consentScopeListViewClass;
|
|
597
607
|
}
|
|
598
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
599
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
608
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxFirebaseOidcConfigService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
609
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxFirebaseOidcConfigService });
|
|
600
610
|
}
|
|
601
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
611
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxFirebaseOidcConfigService, decorators: [{
|
|
602
612
|
type: Injectable
|
|
603
613
|
}] });
|
|
604
614
|
|
|
@@ -644,7 +654,8 @@ const OAUTH_CONSENT_SCOPES_PIT_SCROLLABLE_HEIGHT = 'medium';
|
|
|
644
654
|
class DbxFirebaseOAuthConsentScopeDefaultViewComponent {
|
|
645
655
|
_oidcConfigService = inject(DbxFirebaseOidcConfigService);
|
|
646
656
|
_data = inject(DBX_INJECTION_COMPONENT_DATA);
|
|
647
|
-
_customizing = signal(false,
|
|
657
|
+
_customizing = signal(false, /* @ts-ignore */
|
|
658
|
+
...(ngDevMode ? [{ debugName: "_customizing" }] : /* istanbul ignore next */ []));
|
|
648
659
|
/**
|
|
649
660
|
* Every requested scope paired with its human-readable description, required ones first so the
|
|
650
661
|
* always-granted rows head the list.
|
|
@@ -663,10 +674,12 @@ class DbxFirebaseOAuthConsentScopeDefaultViewComponent {
|
|
|
663
674
|
];
|
|
664
675
|
const { included: requiredScopes, excluded: optionalScopes } = separateValues(mappedScopes, (scope) => scope.required === true);
|
|
665
676
|
return [...requiredScopes, ...optionalScopes];
|
|
666
|
-
},
|
|
677
|
+
}, /* @ts-ignore */
|
|
678
|
+
...(ngDevMode ? [{ debugName: "mappedScopesSignal" }] : /* istanbul ignore next */ []));
|
|
667
679
|
formFieldsConfigSignal = computed(() => ({
|
|
668
680
|
scopes: this.mappedScopesSignal()
|
|
669
|
-
}),
|
|
681
|
+
}), /* @ts-ignore */
|
|
682
|
+
...(ngDevMode ? [{ debugName: "formFieldsConfigSignal" }] : /* istanbul ignore next */ []));
|
|
670
683
|
/**
|
|
671
684
|
* Leading sentence of the collapsed summary — the number of scopes the client is requesting,
|
|
672
685
|
* counting the always-granted ones since the expanded pit accounts for them too.
|
|
@@ -674,20 +687,22 @@ class DbxFirebaseOAuthConsentScopeDefaultViewComponent {
|
|
|
674
687
|
requestedScopesSummarySignal = computed(() => {
|
|
675
688
|
const count = this.mappedScopesSignal().length;
|
|
676
689
|
return count === 1 ? '1 permission is being requested.' : `${count} permissions are being requested.`;
|
|
677
|
-
},
|
|
690
|
+
}, /* @ts-ignore */
|
|
691
|
+
...(ngDevMode ? [{ debugName: "requestedScopesSummarySignal" }] : /* istanbul ignore next */ []));
|
|
678
692
|
/**
|
|
679
693
|
* True once the user has expanded the pit to review/customize the requested scopes.
|
|
680
694
|
*/
|
|
681
695
|
customizingSignal = this._customizing.asReadonly();
|
|
682
|
-
pitScrollableSignal = computed(() => (this.customizingSignal() ? OAUTH_CONSENT_SCOPES_PIT_SCROLLABLE_HEIGHT : undefined),
|
|
696
|
+
pitScrollableSignal = computed(() => (this.customizingSignal() ? OAUTH_CONSENT_SCOPES_PIT_SCROLLABLE_HEIGHT : undefined), /* @ts-ignore */
|
|
697
|
+
...(ngDevMode ? [{ debugName: "pitScrollableSignal" }] : /* istanbul ignore next */ []));
|
|
683
698
|
customizeAnchor = {
|
|
684
699
|
onClick: () => this.showScopeCustomization()
|
|
685
700
|
};
|
|
686
701
|
showScopeCustomization() {
|
|
687
702
|
this._customizing.set(true);
|
|
688
703
|
}
|
|
689
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
690
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
704
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxFirebaseOAuthConsentScopeDefaultViewComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
705
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.4", type: DbxFirebaseOAuthConsentScopeDefaultViewComponent, isStandalone: true, selector: "dbx-firebase-oauth-consent-scope-default-view", ngImport: i0, template: `
|
|
691
706
|
<dbx-content-pit class="dbx-firebase-oauth-consent-scopes-pit" [scrollable]="pitScrollableSignal()">
|
|
692
707
|
<div class="dbx-content-pit-scrollable-content">
|
|
693
708
|
@if (!customizingSignal()) {
|
|
@@ -701,9 +716,9 @@ class DbxFirebaseOAuthConsentScopeDefaultViewComponent {
|
|
|
701
716
|
</div>
|
|
702
717
|
</div>
|
|
703
718
|
</dbx-content-pit>
|
|
704
|
-
`, isInline: true, styles: [".dbx-firebase-oauth-consent-scopes-pit{--mat-list-list-item-disabled-label-text-opacity: 1;--mat-checkbox-disabled-selected-icon-color: var(--mat-sys-on-surface-variant);--mat-checkbox-disabled-selected-checkmark-color: var(--mat-sys-surface)}\n"], dependencies: [{ kind: "component", type: DbxFirebaseOAuthConsentScopeFormComponent, selector: "dbx-firebase-oauth-consent-scope-form" }, { kind: "directive", type: DbxActionFormDirective, selector: "[dbxActionForm]", inputs: ["dbxActionFormDisabledOnWorking", "dbxActionFormIsValid", "dbxActionFormIsEqual", "dbxActionFormIsModified", "dbxActionFormMapValue"] }, { kind: "directive", type: DbxContentPitDirective, selector: "dbx-content-pit, [dbxContentPit]", inputs: ["scrollable", "square"] }, { kind: "component", type: DbxLinkComponent, selector: "dbx-link", inputs: ["ref", "href", "anchor"] }]
|
|
719
|
+
`, isInline: true, styles: [".dbx-firebase-oauth-consent-scopes-pit{--mat-list-list-item-disabled-label-text-opacity: 1;--mat-checkbox-disabled-selected-icon-color: var(--mat-sys-on-surface-variant);--mat-checkbox-disabled-selected-checkmark-color: var(--mat-sys-surface)}\n"], dependencies: [{ kind: "component", type: DbxFirebaseOAuthConsentScopeFormComponent, selector: "dbx-firebase-oauth-consent-scope-form" }, { kind: "directive", type: DbxActionFormDirective, selector: "[dbxActionForm]", inputs: ["dbxActionFormDisabledOnWorking", "dbxActionFormIsValid", "dbxActionFormIsEqual", "dbxActionFormIsModified", "dbxActionFormMapValue"] }, { kind: "directive", type: DbxContentPitDirective, selector: "dbx-content-pit, [dbxContentPit]", inputs: ["scrollable", "square"] }, { kind: "component", type: DbxLinkComponent, selector: "dbx-link", inputs: ["ref", "href", "anchor"] }] });
|
|
705
720
|
}
|
|
706
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
721
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxFirebaseOAuthConsentScopeDefaultViewComponent, decorators: [{
|
|
707
722
|
type: Component,
|
|
708
723
|
args: [{ selector: 'dbx-firebase-oauth-consent-scope-default-view', template: `
|
|
709
724
|
<dbx-content-pit class="dbx-firebase-oauth-consent-scopes-pit" [scrollable]="pitScrollableSignal()">
|
|
@@ -719,7 +734,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.11", ngImpo
|
|
|
719
734
|
</div>
|
|
720
735
|
</div>
|
|
721
736
|
</dbx-content-pit>
|
|
722
|
-
`, imports: [DbxFirebaseOAuthConsentScopeFormComponent, DbxActionFormDirective, DbxContentPitDirective, DbxLinkComponent],
|
|
737
|
+
`, imports: [DbxFirebaseOAuthConsentScopeFormComponent, DbxActionFormDirective, DbxContentPitDirective, DbxLinkComponent], styles: [".dbx-firebase-oauth-consent-scopes-pit{--mat-list-list-item-disabled-label-text-opacity: 1;--mat-checkbox-disabled-selected-icon-color: var(--mat-sys-on-surface-variant);--mat-checkbox-disabled-selected-checkmark-color: var(--mat-sys-surface)}\n"] }]
|
|
723
738
|
}] });
|
|
724
739
|
|
|
725
740
|
// MARK: Service
|
|
@@ -776,12 +791,11 @@ class DbxFirebaseOidcInteractionService {
|
|
|
776
791
|
return this.http.post(`${this.baseUrl}/${uid}/consent`, body);
|
|
777
792
|
}));
|
|
778
793
|
}
|
|
779
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
780
|
-
static ɵprov = i0.ɵɵ
|
|
794
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxFirebaseOidcInteractionService, deps: [], target: i0.ɵɵFactoryTarget.Service });
|
|
795
|
+
static ɵprov = i0.ɵɵngDeclareService({ minVersion: "22.0.0", version: "22.1.4", ngImport: i0, type: DbxFirebaseOidcInteractionService });
|
|
781
796
|
}
|
|
782
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
783
|
-
type:
|
|
784
|
-
args: [{ providedIn: 'root' }]
|
|
797
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxFirebaseOidcInteractionService, decorators: [{
|
|
798
|
+
type: Service
|
|
785
799
|
}] });
|
|
786
800
|
|
|
787
801
|
/**
|
|
@@ -804,8 +818,10 @@ class DbxFirebaseOAuthLoginComponent {
|
|
|
804
818
|
uidParamReader = clean(dbxRouteParamReaderInstance(this.dbxRouterService, DEFAULT_OIDC_INTERACTION_UID_PARAM_KEY));
|
|
805
819
|
interactionUid = toSignal(this.uidParamReader.value$);
|
|
806
820
|
isLoggedIn = toSignal(this.dbxFirebaseAuthService.isLoggedIn$);
|
|
807
|
-
submitting = signal(false,
|
|
808
|
-
|
|
821
|
+
submitting = signal(false, /* @ts-ignore */
|
|
822
|
+
...(ngDevMode ? [{ debugName: "submitting" }] : /* istanbul ignore next */ []));
|
|
823
|
+
errorMessage = signal(null, /* @ts-ignore */
|
|
824
|
+
...(ngDevMode ? [{ debugName: "errorMessage" }] : /* istanbul ignore next */ []));
|
|
809
825
|
loginStateCaseSignal = computed(() => {
|
|
810
826
|
const errorMessage = this.errorMessage();
|
|
811
827
|
const isLoggedIn = this.isLoggedIn();
|
|
@@ -828,7 +844,8 @@ class DbxFirebaseOAuthLoginComponent {
|
|
|
828
844
|
}
|
|
829
845
|
}
|
|
830
846
|
return result;
|
|
831
|
-
},
|
|
847
|
+
}, /* @ts-ignore */
|
|
848
|
+
...(ngDevMode ? [{ debugName: "loginStateCaseSignal" }] : /* istanbul ignore next */ []));
|
|
832
849
|
constructor() {
|
|
833
850
|
// Auto-submit when user is logged in
|
|
834
851
|
effect(() => {
|
|
@@ -866,18 +883,17 @@ class DbxFirebaseOAuthLoginComponent {
|
|
|
866
883
|
}
|
|
867
884
|
});
|
|
868
885
|
}
|
|
869
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
870
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
886
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxFirebaseOAuthLoginComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
887
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.1.4", type: DbxFirebaseOAuthLoginComponent, isStandalone: true, selector: "dbx-firebase-oauth-login", host: { classAttribute: "d-block dbx-firebase-oauth-login" }, ngImport: i0, template: `
|
|
871
888
|
<dbx-firebase-oauth-login-view [loginStateCase]="loginStateCaseSignal()" [error]="errorMessage()" (retryClick)="retry()">
|
|
872
889
|
<ng-content />
|
|
873
890
|
</dbx-firebase-oauth-login-view>
|
|
874
|
-
`, isInline: true, dependencies: [{ kind: "component", type: DbxFirebaseOAuthLoginViewComponent, selector: "dbx-firebase-oauth-login-view", inputs: ["loginStateCase", "error"], outputs: ["retryClick"] }]
|
|
891
|
+
`, isInline: true, dependencies: [{ kind: "component", type: DbxFirebaseOAuthLoginViewComponent, selector: "dbx-firebase-oauth-login-view", inputs: ["loginStateCase", "error"], outputs: ["retryClick"] }] });
|
|
875
892
|
}
|
|
876
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
893
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxFirebaseOAuthLoginComponent, decorators: [{
|
|
877
894
|
type: Component,
|
|
878
895
|
args: [{
|
|
879
896
|
selector: 'dbx-firebase-oauth-login',
|
|
880
|
-
standalone: true,
|
|
881
897
|
imports: [DbxFirebaseOAuthLoginViewComponent],
|
|
882
898
|
template: `
|
|
883
899
|
<dbx-firebase-oauth-login-view [loginStateCase]="loginStateCaseSignal()" [error]="errorMessage()" (retryClick)="retry()">
|
|
@@ -886,8 +902,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.11", ngImpo
|
|
|
886
902
|
`,
|
|
887
903
|
host: {
|
|
888
904
|
class: 'd-block dbx-firebase-oauth-login'
|
|
889
|
-
}
|
|
890
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
905
|
+
}
|
|
891
906
|
}]
|
|
892
907
|
}], ctorParameters: () => [] });
|
|
893
908
|
|
|
@@ -917,7 +932,8 @@ class DbxOAuthConsentComponent {
|
|
|
917
932
|
interactionService = inject(DbxFirebaseOidcInteractionService);
|
|
918
933
|
oidcConfigService = inject(DbxFirebaseOidcConfigService);
|
|
919
934
|
// Config input
|
|
920
|
-
config = input(
|
|
935
|
+
config = input(/* @ts-ignore */
|
|
936
|
+
...(ngDevMode ? [undefined, { debugName: "config" }] : /* istanbul ignore next */ []));
|
|
921
937
|
// Route param readers
|
|
922
938
|
interactionUidParamReader = dbxRouteParamReaderInstance(this.dbxRouterService, DEFAULT_OIDC_INTERACTION_UID_PARAM_KEY);
|
|
923
939
|
clientIdParamReader = dbxRouteParamReaderInstance(this.dbxRouterService, DEFAULT_OIDC_CLIENT_ID_PARAM_KEY);
|
|
@@ -937,7 +953,8 @@ class DbxOAuthConsentComponent {
|
|
|
937
953
|
// Auth state — undefined until Firebase resolves to avoid a flash between 'unknown' → 'no_user'/'user'
|
|
938
954
|
isLoggedIn = toSignal(this.dbxFirebaseAuthService.isLoggedIn$);
|
|
939
955
|
// Resolved values
|
|
940
|
-
resolvedInteractionUidSignal = computed(() => this.routeUid(),
|
|
956
|
+
resolvedInteractionUidSignal = computed(() => this.routeUid(), /* @ts-ignore */
|
|
957
|
+
...(ngDevMode ? [{ debugName: "resolvedInteractionUidSignal" }] : /* istanbul ignore next */ []));
|
|
941
958
|
resolvedDetailsSignal = computed(() => {
|
|
942
959
|
const client_id = this.routeClientId() ?? '';
|
|
943
960
|
const client_name = this.routeClientName();
|
|
@@ -951,11 +968,13 @@ class DbxOAuthConsentComponent {
|
|
|
951
968
|
logo_uri,
|
|
952
969
|
scopes
|
|
953
970
|
};
|
|
954
|
-
},
|
|
971
|
+
}, /* @ts-ignore */
|
|
972
|
+
...(ngDevMode ? [{ debugName: "resolvedDetailsSignal" }] : /* istanbul ignore next */ []));
|
|
955
973
|
// Scope injection config: built from the configured scope list view class, falling back to config service, then the default
|
|
956
974
|
scopeInjectionConfigSignal = computed(() => ({
|
|
957
975
|
componentClass: this.config()?.consentScopeListViewClass ?? this.oidcConfigService.consentScopeListViewClass ?? DbxFirebaseOAuthConsentScopeDefaultViewComponent
|
|
958
|
-
}),
|
|
976
|
+
}), /* @ts-ignore */
|
|
977
|
+
...(ngDevMode ? [{ debugName: "scopeInjectionConfigSignal" }] : /* istanbul ignore next */ []));
|
|
959
978
|
/**
|
|
960
979
|
* Scopes the user cannot deselect. `openid` is always required; any scopes the client's assigned
|
|
961
980
|
* provider profiles force-require are appended (the server surfaces them via the `requiredScopes`
|
|
@@ -965,7 +984,8 @@ class DbxOAuthConsentComponent {
|
|
|
965
984
|
requiredScopesSignal = computed(() => {
|
|
966
985
|
const serverRequiredScopes = (this.routeRequiredScopes() ?? '').split(' ').filter(Boolean);
|
|
967
986
|
return Array.from(new Set([...OAUTH_CONSENT_REQUIRED_SCOPES, ...serverRequiredScopes]));
|
|
968
|
-
},
|
|
987
|
+
}, /* @ts-ignore */
|
|
988
|
+
...(ngDevMode ? [{ debugName: "requiredScopesSignal" }] : /* istanbul ignore next */ []));
|
|
969
989
|
consentStateCaseSignal = computed(() => {
|
|
970
990
|
const isLoggedIn = this.isLoggedIn();
|
|
971
991
|
let result;
|
|
@@ -979,7 +999,8 @@ class DbxOAuthConsentComponent {
|
|
|
979
999
|
result = 'no_user';
|
|
980
1000
|
}
|
|
981
1001
|
return result;
|
|
982
|
-
},
|
|
1002
|
+
}, /* @ts-ignore */
|
|
1003
|
+
...(ngDevMode ? [{ debugName: "consentStateCaseSignal" }] : /* istanbul ignore next */ []));
|
|
983
1004
|
ngOnDestroy() {
|
|
984
1005
|
this.interactionUidParamReader.destroy();
|
|
985
1006
|
this.clientIdParamReader.destroy();
|
|
@@ -1030,18 +1051,17 @@ class DbxOAuthConsentComponent {
|
|
|
1030
1051
|
}
|
|
1031
1052
|
})));
|
|
1032
1053
|
};
|
|
1033
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1034
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "
|
|
1054
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxOAuthConsentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1055
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.1.4", type: DbxOAuthConsentComponent, isStandalone: true, selector: "dbx-firebase-oauth-consent", inputs: { config: { classPropertyName: "config", publicName: "config", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "d-block dbx-firebase-oauth-consent" }, ngImport: i0, template: `
|
|
1035
1056
|
<dbx-firebase-oauth-consent-view [details]="resolvedDetailsSignal()" [consentStateCase]="consentStateCaseSignal()" [scopeInjectionConfig]="scopeInjectionConfigSignal()" [requiredScopes]="requiredScopesSignal()" [approveHandler]="handleApprove" [denyHandler]="handleDeny">
|
|
1036
1057
|
<ng-content />
|
|
1037
1058
|
</dbx-firebase-oauth-consent-view>
|
|
1038
|
-
`, isInline: true, dependencies: [{ kind: "component", type: DbxFirebaseOAuthConsentViewComponent, selector: "dbx-firebase-oauth-consent-view", inputs: ["details", "consentStateCase", "scopeInjectionConfig", "requiredScopes", "approveHandler", "denyHandler"] }]
|
|
1059
|
+
`, isInline: true, dependencies: [{ kind: "component", type: DbxFirebaseOAuthConsentViewComponent, selector: "dbx-firebase-oauth-consent-view", inputs: ["details", "consentStateCase", "scopeInjectionConfig", "requiredScopes", "approveHandler", "denyHandler"] }] });
|
|
1039
1060
|
}
|
|
1040
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1061
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxOAuthConsentComponent, decorators: [{
|
|
1041
1062
|
type: Component,
|
|
1042
1063
|
args: [{
|
|
1043
1064
|
selector: 'dbx-firebase-oauth-consent',
|
|
1044
|
-
standalone: true,
|
|
1045
1065
|
imports: [DbxFirebaseOAuthConsentViewComponent],
|
|
1046
1066
|
template: `
|
|
1047
1067
|
<dbx-firebase-oauth-consent-view [details]="resolvedDetailsSignal()" [consentStateCase]="consentStateCaseSignal()" [scopeInjectionConfig]="scopeInjectionConfigSignal()" [requiredScopes]="requiredScopesSignal()" [approveHandler]="handleApprove" [denyHandler]="handleDeny">
|
|
@@ -1050,8 +1070,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.11", ngImpo
|
|
|
1050
1070
|
`,
|
|
1051
1071
|
host: {
|
|
1052
1072
|
class: 'd-block dbx-firebase-oauth-consent'
|
|
1053
|
-
}
|
|
1054
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
1073
|
+
}
|
|
1055
1074
|
}]
|
|
1056
1075
|
}], propDecorators: { config: [{ type: i0.Input, args: [{ isSignal: true, alias: "config", required: false }] }] } });
|
|
1057
1076
|
|
|
@@ -1111,7 +1130,7 @@ function oidcClientTokenEndpointAuthMethodForgeField(config) {
|
|
|
1111
1130
|
return dbxForgeValueSelectionField({
|
|
1112
1131
|
key: 'token_endpoint_auth_method',
|
|
1113
1132
|
label: 'Token Endpoint Auth Method',
|
|
1114
|
-
|
|
1133
|
+
hint: 'How the client authenticates when exchanging tokens. Cannot be changed after creation.',
|
|
1115
1134
|
required: true,
|
|
1116
1135
|
props: { options }
|
|
1117
1136
|
});
|
|
@@ -1259,7 +1278,7 @@ function oidcClientTestRedirectUriForgeField(redirectUris) {
|
|
|
1259
1278
|
return dbxForgeValueSelectionField({
|
|
1260
1279
|
key: 'redirect_uri',
|
|
1261
1280
|
label: 'Redirect URI',
|
|
1262
|
-
|
|
1281
|
+
hint: 'Select the redirect URI to use for the test flow.',
|
|
1263
1282
|
required: true,
|
|
1264
1283
|
props: { options }
|
|
1265
1284
|
});
|
|
@@ -1306,18 +1325,16 @@ class DbxFirebaseOidcEntryClientForgeFormComponent extends AbstractConfigAsyncFo
|
|
|
1306
1325
|
}
|
|
1307
1326
|
return result;
|
|
1308
1327
|
}));
|
|
1309
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1310
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1328
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxFirebaseOidcEntryClientForgeFormComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1329
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.1.4", type: DbxFirebaseOidcEntryClientForgeFormComponent, isStandalone: true, selector: "dbx-firebase-oidc-client-forge-form", providers: dbxForgeFormComponentProviders(), usesInheritance: true, ngImport: i0, template: "<dbx-forge></dbx-forge>", isInline: true, dependencies: [{ kind: "ngmodule", type: DbxForgeFormComponentImportsModule }, { kind: "component", type: i1$1.DbxForgeFormComponent, selector: "dbx-forge" }] });
|
|
1311
1330
|
}
|
|
1312
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1331
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxFirebaseOidcEntryClientForgeFormComponent, decorators: [{
|
|
1313
1332
|
type: Component,
|
|
1314
1333
|
args: [{
|
|
1315
1334
|
selector: 'dbx-firebase-oidc-client-forge-form',
|
|
1316
1335
|
template: DBX_FORGE_FORM_COMPONENT_TEMPLATE,
|
|
1317
1336
|
providers: dbxForgeFormComponentProviders(),
|
|
1318
|
-
imports: [DbxForgeFormComponentImportsModule]
|
|
1319
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1320
|
-
standalone: true
|
|
1337
|
+
imports: [DbxForgeFormComponentImportsModule]
|
|
1321
1338
|
}]
|
|
1322
1339
|
}] });
|
|
1323
1340
|
|
|
@@ -1328,18 +1345,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.11", ngImpo
|
|
|
1328
1345
|
*/
|
|
1329
1346
|
class DbxFirebaseOidcEntryClientTestForgeFormComponent extends AbstractConfigAsyncForgeFormDirective {
|
|
1330
1347
|
formConfig$ = this.currentConfig$.pipe(map((config) => (config ? oidcEntryClientTestForgeFormFields(config) : undefined)));
|
|
1331
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1332
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1348
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxFirebaseOidcEntryClientTestForgeFormComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1349
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.1.4", type: DbxFirebaseOidcEntryClientTestForgeFormComponent, isStandalone: true, selector: "dbx-firebase-oidc-client-test-forge-form", providers: dbxForgeFormComponentProviders(), usesInheritance: true, ngImport: i0, template: "<dbx-forge></dbx-forge>", isInline: true, dependencies: [{ kind: "ngmodule", type: DbxForgeFormComponentImportsModule }, { kind: "component", type: i1$1.DbxForgeFormComponent, selector: "dbx-forge" }] });
|
|
1333
1350
|
}
|
|
1334
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1351
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxFirebaseOidcEntryClientTestForgeFormComponent, decorators: [{
|
|
1335
1352
|
type: Component,
|
|
1336
1353
|
args: [{
|
|
1337
1354
|
selector: 'dbx-firebase-oidc-client-test-forge-form',
|
|
1338
1355
|
template: DBX_FORGE_FORM_COMPONENT_TEMPLATE,
|
|
1339
1356
|
providers: dbxForgeFormComponentProviders(),
|
|
1340
|
-
imports: [DbxForgeFormComponentImportsModule]
|
|
1341
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1342
|
-
standalone: true
|
|
1357
|
+
imports: [DbxForgeFormComponentImportsModule]
|
|
1343
1358
|
}]
|
|
1344
1359
|
}] });
|
|
1345
1360
|
|
|
@@ -1374,10 +1389,10 @@ class OidcEntryDocumentStore extends AbstractDbxFirebaseDocumentStore {
|
|
|
1374
1389
|
});
|
|
1375
1390
|
deleteClient = firebaseDocumentStoreDeleteFunction(this, this.oidcModelFunctions.oidcEntry.deleteOidcEntry.client);
|
|
1376
1391
|
deleteToken = firebaseDocumentStoreDeleteFunction(this, this.oidcModelFunctions.oidcEntry.deleteOidcEntry.token);
|
|
1377
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1378
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1392
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: OidcEntryDocumentStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1393
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: OidcEntryDocumentStore });
|
|
1379
1394
|
}
|
|
1380
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1395
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: OidcEntryDocumentStore, decorators: [{
|
|
1381
1396
|
type: Injectable
|
|
1382
1397
|
}], ctorParameters: () => [] });
|
|
1383
1398
|
|
|
@@ -1394,21 +1409,19 @@ class DbxFirebaseOidcEntryGrantListComponent extends AbstractDbxSelectionListWra
|
|
|
1394
1409
|
defaultSelectionMode: 'view'
|
|
1395
1410
|
});
|
|
1396
1411
|
}
|
|
1397
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1398
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1412
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxFirebaseOidcEntryGrantListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1413
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.1.4", type: DbxFirebaseOidcEntryGrantListComponent, isStandalone: true, selector: "dbx-firebase-oidc-grant-list", host: { classAttribute: "dbx-list-no-hover-effects dbx-list-card-items-list" }, providers: provideDbxListViewWrapper(DbxFirebaseOidcEntryGrantListComponent), usesInheritance: true, ngImport: i0, template: "\n <dbx-list [state]=\"currentState$\" [config]=\"configSignal()\" [hasMore]=\"hasMore()\" [disabled]=\"disabledSignal()\" [selectionMode]=\"selectionModeSignal()\">\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 <ng-content emptyLoading select=\"[emptyLoading]\"></ng-content>\n <ng-content end select=\"[end]\"></ng-content>\n </dbx-list>", isInline: true, dependencies: [{ kind: "ngmodule", type: DbxListWrapperComponentImportsModule }, { kind: "component", type: i1.DbxListComponent, selector: "dbx-list", inputs: ["padded", "state", "config", "disabled", "selectionMode", "hasMore"], outputs: ["contentScrolled"] }] });
|
|
1399
1414
|
}
|
|
1400
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1415
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxFirebaseOidcEntryGrantListComponent, decorators: [{
|
|
1401
1416
|
type: Component,
|
|
1402
1417
|
args: [{
|
|
1403
1418
|
selector: 'dbx-firebase-oidc-grant-list',
|
|
1404
1419
|
template: DEFAULT_LIST_WRAPPER_COMPONENT_CONFIGURATION_TEMPLATE,
|
|
1405
1420
|
providers: provideDbxListViewWrapper(DbxFirebaseOidcEntryGrantListComponent),
|
|
1406
|
-
standalone: true,
|
|
1407
1421
|
host: {
|
|
1408
1422
|
class: 'dbx-list-no-hover-effects dbx-list-card-items-list'
|
|
1409
1423
|
},
|
|
1410
|
-
imports: [DbxListWrapperComponentImportsModule]
|
|
1411
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
1424
|
+
imports: [DbxListWrapperComponentImportsModule]
|
|
1412
1425
|
}]
|
|
1413
1426
|
}], ctorParameters: () => [] });
|
|
1414
1427
|
class DbxFirebaseOidcEntryGrantListViewComponent extends AbstractDbxSelectionListViewDirective {
|
|
@@ -1419,18 +1432,16 @@ class DbxFirebaseOidcEntryGrantListViewComponent extends AbstractDbxSelectionLis
|
|
|
1419
1432
|
return { ...y, key: id ?? `grant_${i}`, itemValue: y };
|
|
1420
1433
|
}))
|
|
1421
1434
|
};
|
|
1422
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1423
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1435
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxFirebaseOidcEntryGrantListViewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1436
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.1.4", type: DbxFirebaseOidcEntryGrantListViewComponent, isStandalone: true, selector: "dbx-firebase-oidc-grant-list-view", providers: provideDbxListView(DbxFirebaseOidcEntryGrantListViewComponent), usesInheritance: true, ngImport: i0, template: "<dbx-selection-list-view [config]=\"config\"></dbx-selection-list-view>", isInline: true, dependencies: [{ kind: "ngmodule", type: DbxSelectionValueListViewComponentImportsModule }, { kind: "component", type: i1.DbxSelectionValueListViewComponent, selector: "dbx-selection-list-view" }] });
|
|
1424
1437
|
}
|
|
1425
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1438
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxFirebaseOidcEntryGrantListViewComponent, decorators: [{
|
|
1426
1439
|
type: Component,
|
|
1427
1440
|
args: [{
|
|
1428
1441
|
selector: 'dbx-firebase-oidc-grant-list-view',
|
|
1429
1442
|
template: DEFAULT_DBX_SELECTION_VALUE_LIST_COMPONENT_CONFIGURATION_TEMPLATE,
|
|
1430
1443
|
providers: provideDbxListView(DbxFirebaseOidcEntryGrantListViewComponent),
|
|
1431
|
-
|
|
1432
|
-
imports: [DbxSelectionValueListViewComponentImportsModule],
|
|
1433
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
1444
|
+
imports: [DbxSelectionValueListViewComponentImportsModule]
|
|
1434
1445
|
}]
|
|
1435
1446
|
}] });
|
|
1436
1447
|
// MARK: Item
|
|
@@ -1442,9 +1453,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.11", ngImpo
|
|
|
1442
1453
|
*/
|
|
1443
1454
|
class DbxFirebaseOidcEntryGrantListViewItemComponent extends AbstractDbxValueListViewItemComponent {
|
|
1444
1455
|
oidcEntryDocumentStore = inject(OidcEntryDocumentStore);
|
|
1445
|
-
clientIdSignal = computed(() => this._payload().clientId ?? '',
|
|
1446
|
-
|
|
1447
|
-
|
|
1456
|
+
clientIdSignal = computed(() => this._payload().clientId ?? '', /* @ts-ignore */
|
|
1457
|
+
...(ngDevMode ? [{ debugName: "clientIdSignal" }] : /* istanbul ignore next */ []));
|
|
1458
|
+
scopeSignal = computed(() => this._payload().openid?.scope ?? null, /* @ts-ignore */
|
|
1459
|
+
...(ngDevMode ? [{ debugName: "scopeSignal" }] : /* istanbul ignore next */ []));
|
|
1460
|
+
expiresAtSignal = computed(() => this.itemValue.expiresAt ?? null, /* @ts-ignore */
|
|
1461
|
+
...(ngDevMode ? [{ debugName: "expiresAtSignal" }] : /* istanbul ignore next */ []));
|
|
1448
1462
|
revokeConfirmConfig = {
|
|
1449
1463
|
title: 'Revoke access',
|
|
1450
1464
|
prompt: 'This app will lose access to your account immediately. Existing access and refresh tokens stop working.',
|
|
@@ -1463,8 +1477,8 @@ class DbxFirebaseOidcEntryGrantListViewItemComponent extends AbstractDbxValueLis
|
|
|
1463
1477
|
_payload() {
|
|
1464
1478
|
return this.itemValue.payload ?? {};
|
|
1465
1479
|
}
|
|
1466
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1467
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
1480
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxFirebaseOidcEntryGrantListViewItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1481
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.4", type: DbxFirebaseOidcEntryGrantListViewItemComponent, isStandalone: true, selector: "dbx-firebase-oidc-grant-list-view-item", providers: [OidcEntryDocumentStore], usesInheritance: true, ngImport: i0, template: `
|
|
1468
1482
|
<div class="dbx-list-item-padded dbx-list-item-padded-thick dbx-list-two-line-item">
|
|
1469
1483
|
<div class="item-left">
|
|
1470
1484
|
<span class="item-title">{{ clientIdSignal() }}</span>
|
|
@@ -1480,9 +1494,9 @@ class DbxFirebaseOidcEntryGrantListViewItemComponent extends AbstractDbxValueLis
|
|
|
1480
1494
|
<dbx-button dbxAction [dbxActionHandler]="handleRevoke" [dbxActionConfirm]="revokeConfirmConfig" dbxActionButton text="Revoke" icon="block" color="warn" [raised]="true"></dbx-button>
|
|
1481
1495
|
</div>
|
|
1482
1496
|
</div>
|
|
1483
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: DbxSpacerDirective, selector: "dbx-spacer, [dbxSpacer]" }, { kind: "component", type: DbxButtonComponent, selector: "dbx-button", inputs: ["bar", "type", "buttonStyle", "color", "spinnerColor", "
|
|
1497
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: DbxSpacerDirective, selector: "dbx-spacer, [dbxSpacer]" }, { kind: "component", type: DbxButtonComponent, selector: "dbx-button", inputs: ["bar", "type", "buttonStyle", "color", "spinnerColor", "customTextColor", "customSpinnerColor", "basic", "tonal", "raised", "stroked", "flat", "iconOnly", "fab", "customContent", "allowClickPropagation", "mode"] }, { kind: "directive", type: DbxActionDirective, selector: "dbx-action,[dbxAction]", exportAs: ["action", "dbxAction"] }, { kind: "directive", type: DbxActionHandlerDirective, selector: "[dbxActionHandler]", inputs: ["dbxActionHandler"] }, { kind: "directive", type: DbxActionButtonDirective, selector: "[dbxActionButton]", inputs: ["dbxActionButtonEcho"] }, { kind: "directive", type: DbxActionConfirmDirective, selector: "[dbxActionConfirm]", inputs: ["dbxActionConfirm", "dbxActionConfirmSkip"] }, { kind: "pipe", type: DatePipe, name: "date" }] });
|
|
1484
1498
|
}
|
|
1485
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1499
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxFirebaseOidcEntryGrantListViewItemComponent, decorators: [{
|
|
1486
1500
|
type: Component,
|
|
1487
1501
|
args: [{
|
|
1488
1502
|
selector: 'dbx-firebase-oidc-grant-list-view-item',
|
|
@@ -1503,10 +1517,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.11", ngImpo
|
|
|
1503
1517
|
</div>
|
|
1504
1518
|
</div>
|
|
1505
1519
|
`,
|
|
1506
|
-
standalone: true,
|
|
1507
1520
|
imports: [DatePipe, DbxSpacerDirective, DbxButtonComponent, DbxActionDirective, DbxActionHandlerDirective, DbxActionButtonDirective, DbxActionConfirmDirective],
|
|
1508
|
-
providers: [OidcEntryDocumentStore]
|
|
1509
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
1521
|
+
providers: [OidcEntryDocumentStore]
|
|
1510
1522
|
}]
|
|
1511
1523
|
}], ctorParameters: () => [] });
|
|
1512
1524
|
|
|
@@ -1517,16 +1529,15 @@ class DbxFirebaseOidcEntryClientListComponent extends AbstractDbxSelectionListWr
|
|
|
1517
1529
|
defaultSelectionMode: 'view'
|
|
1518
1530
|
});
|
|
1519
1531
|
}
|
|
1520
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1521
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1532
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxFirebaseOidcEntryClientListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1533
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.1.4", type: DbxFirebaseOidcEntryClientListComponent, isStandalone: true, selector: "dbx-firebase-oidc-client-list", providers: provideDbxListViewWrapper(DbxFirebaseOidcEntryClientListComponent), usesInheritance: true, ngImport: i0, template: "\n <dbx-list [state]=\"currentState$\" [config]=\"configSignal()\" [hasMore]=\"hasMore()\" [disabled]=\"disabledSignal()\" [selectionMode]=\"selectionModeSignal()\">\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 <ng-content emptyLoading select=\"[emptyLoading]\"></ng-content>\n <ng-content end select=\"[end]\"></ng-content>\n </dbx-list>", isInline: true, dependencies: [{ kind: "ngmodule", type: DbxListWrapperComponentImportsModule }, { kind: "component", type: i1.DbxListComponent, selector: "dbx-list", inputs: ["padded", "state", "config", "disabled", "selectionMode", "hasMore"], outputs: ["contentScrolled"] }] });
|
|
1522
1534
|
}
|
|
1523
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1535
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxFirebaseOidcEntryClientListComponent, decorators: [{
|
|
1524
1536
|
type: Component,
|
|
1525
1537
|
args: [{
|
|
1526
1538
|
selector: 'dbx-firebase-oidc-client-list',
|
|
1527
1539
|
template: DEFAULT_LIST_WRAPPER_COMPONENT_CONFIGURATION_TEMPLATE,
|
|
1528
1540
|
providers: provideDbxListViewWrapper(DbxFirebaseOidcEntryClientListComponent),
|
|
1529
|
-
standalone: true,
|
|
1530
1541
|
imports: [DbxListWrapperComponentImportsModule]
|
|
1531
1542
|
}]
|
|
1532
1543
|
}], ctorParameters: () => [] });
|
|
@@ -1535,22 +1546,22 @@ class DbxFirebaseOidcEntryClientListViewComponent extends AbstractDbxSelectionLi
|
|
|
1535
1546
|
componentClass: DbxFirebaseOidcEntryClientListViewItemComponent,
|
|
1536
1547
|
mapValuesToItemValues: (x) => of(x.map((y, i) => ({ ...y, key: `oidc_${i}`, itemValue: y })))
|
|
1537
1548
|
};
|
|
1538
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1539
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1549
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxFirebaseOidcEntryClientListViewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1550
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.1.4", type: DbxFirebaseOidcEntryClientListViewComponent, isStandalone: true, selector: "dbx-firebase-oidc-client-list-view", providers: provideDbxListView(DbxFirebaseOidcEntryClientListViewComponent), usesInheritance: true, ngImport: i0, template: "<dbx-selection-list-view [config]=\"config\"></dbx-selection-list-view>", isInline: true, dependencies: [{ kind: "ngmodule", type: DbxSelectionValueListViewComponentImportsModule }, { kind: "component", type: i1.DbxSelectionValueListViewComponent, selector: "dbx-selection-list-view" }] });
|
|
1540
1551
|
}
|
|
1541
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1552
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxFirebaseOidcEntryClientListViewComponent, decorators: [{
|
|
1542
1553
|
type: Component,
|
|
1543
1554
|
args: [{
|
|
1544
1555
|
selector: 'dbx-firebase-oidc-client-list-view',
|
|
1545
1556
|
template: DEFAULT_DBX_SELECTION_VALUE_LIST_COMPONENT_CONFIGURATION_TEMPLATE,
|
|
1546
1557
|
providers: provideDbxListView(DbxFirebaseOidcEntryClientListViewComponent),
|
|
1547
|
-
standalone: true,
|
|
1548
1558
|
imports: [DbxSelectionValueListViewComponentImportsModule]
|
|
1549
1559
|
}]
|
|
1550
1560
|
}] });
|
|
1551
1561
|
// MARK: Item List
|
|
1552
1562
|
class DbxFirebaseOidcEntryClientListViewItemClientComponent {
|
|
1553
|
-
entry = input.required(
|
|
1563
|
+
entry = input.required(/* @ts-ignore */
|
|
1564
|
+
...(ngDevMode ? [{ debugName: "entry" }] : /* istanbul ignore next */ []));
|
|
1554
1565
|
get name() {
|
|
1555
1566
|
const payload = this.entry().payload;
|
|
1556
1567
|
return payload?.client_name || 'OAuth Client';
|
|
@@ -1559,15 +1570,15 @@ class DbxFirebaseOidcEntryClientListViewItemClientComponent {
|
|
|
1559
1570
|
const payload = this.entry().payload;
|
|
1560
1571
|
return payload?.client_id || '';
|
|
1561
1572
|
}
|
|
1562
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1563
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "
|
|
1573
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxFirebaseOidcEntryClientListViewItemClientComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1574
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.1.4", type: DbxFirebaseOidcEntryClientListViewItemClientComponent, isStandalone: true, selector: "dbx-firebase-oidc-client-list-view-item-client", inputs: { entry: { classPropertyName: "entry", publicName: "entry", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: `
|
|
1564
1575
|
<div>
|
|
1565
1576
|
<p>{{ name }}</p>
|
|
1566
1577
|
<p class="dbx-hint">{{ clientId }}</p>
|
|
1567
1578
|
</div>
|
|
1568
1579
|
`, isInline: true });
|
|
1569
1580
|
}
|
|
1570
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1581
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxFirebaseOidcEntryClientListViewItemClientComponent, decorators: [{
|
|
1571
1582
|
type: Component,
|
|
1572
1583
|
args: [{
|
|
1573
1584
|
selector: 'dbx-firebase-oidc-client-list-view-item-client',
|
|
@@ -1576,20 +1587,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.11", ngImpo
|
|
|
1576
1587
|
<p>{{ name }}</p>
|
|
1577
1588
|
<p class="dbx-hint">{{ clientId }}</p>
|
|
1578
1589
|
</div>
|
|
1579
|
-
|
|
1580
|
-
standalone: true
|
|
1590
|
+
`
|
|
1581
1591
|
}]
|
|
1582
1592
|
}], propDecorators: { entry: [{ type: i0.Input, args: [{ isSignal: true, alias: "entry", required: true }] }] } });
|
|
1583
1593
|
class DbxFirebaseOidcEntryClientListViewItemDefaultComponent {
|
|
1584
|
-
entry = input.required(
|
|
1585
|
-
|
|
1586
|
-
static
|
|
1594
|
+
entry = input.required(/* @ts-ignore */
|
|
1595
|
+
...(ngDevMode ? [{ debugName: "entry" }] : /* istanbul ignore next */ []));
|
|
1596
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxFirebaseOidcEntryClientListViewItemDefaultComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1597
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.1.4", type: DbxFirebaseOidcEntryClientListViewItemDefaultComponent, isStandalone: true, selector: "dbx-firebase-oidc-client-list-view-item-default", inputs: { entry: { classPropertyName: "entry", publicName: "entry", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: `
|
|
1587
1598
|
<div>
|
|
1588
1599
|
<p>{{ entry().type }}</p>
|
|
1589
1600
|
</div>
|
|
1590
1601
|
`, isInline: true });
|
|
1591
1602
|
}
|
|
1592
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1603
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxFirebaseOidcEntryClientListViewItemDefaultComponent, decorators: [{
|
|
1593
1604
|
type: Component,
|
|
1594
1605
|
args: [{
|
|
1595
1606
|
selector: 'dbx-firebase-oidc-client-list-view-item-default',
|
|
@@ -1597,14 +1608,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.11", ngImpo
|
|
|
1597
1608
|
<div>
|
|
1598
1609
|
<p>{{ entry().type }}</p>
|
|
1599
1610
|
</div>
|
|
1600
|
-
|
|
1601
|
-
standalone: true
|
|
1611
|
+
`
|
|
1602
1612
|
}]
|
|
1603
1613
|
}], propDecorators: { entry: [{ type: i0.Input, args: [{ isSignal: true, alias: "entry", required: true }] }] } });
|
|
1604
1614
|
class DbxFirebaseOidcEntryClientListViewItemComponent extends AbstractDbxValueListViewItemComponent {
|
|
1605
1615
|
clientType = OIDC_ENTRY_CLIENT_TYPE;
|
|
1606
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1607
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
1616
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxFirebaseOidcEntryClientListViewItemComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1617
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.4", type: DbxFirebaseOidcEntryClientListViewItemComponent, isStandalone: true, selector: "ng-component", usesInheritance: true, ngImport: i0, template: `
|
|
1608
1618
|
@switch (itemValue.type) {
|
|
1609
1619
|
@case (clientType) {
|
|
1610
1620
|
<dbx-firebase-oidc-client-list-view-item-client [entry]="itemValue"></dbx-firebase-oidc-client-list-view-item-client>
|
|
@@ -1615,7 +1625,7 @@ class DbxFirebaseOidcEntryClientListViewItemComponent extends AbstractDbxValueLi
|
|
|
1615
1625
|
}
|
|
1616
1626
|
`, isInline: true, dependencies: [{ kind: "component", type: DbxFirebaseOidcEntryClientListViewItemClientComponent, selector: "dbx-firebase-oidc-client-list-view-item-client", inputs: ["entry"] }, { kind: "component", type: DbxFirebaseOidcEntryClientListViewItemDefaultComponent, selector: "dbx-firebase-oidc-client-list-view-item-default", inputs: ["entry"] }] });
|
|
1617
1627
|
}
|
|
1618
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1628
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxFirebaseOidcEntryClientListViewItemComponent, decorators: [{
|
|
1619
1629
|
type: Component,
|
|
1620
1630
|
args: [{
|
|
1621
1631
|
template: `
|
|
@@ -1628,7 +1638,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.11", ngImpo
|
|
|
1628
1638
|
}
|
|
1629
1639
|
}
|
|
1630
1640
|
`,
|
|
1631
|
-
standalone: true,
|
|
1632
1641
|
imports: [DbxFirebaseOidcEntryClientListViewItemClientComponent, DbxFirebaseOidcEntryClientListViewItemDefaultComponent]
|
|
1633
1642
|
}]
|
|
1634
1643
|
}] });
|
|
@@ -1640,10 +1649,10 @@ class OidcEntryCollectionStore extends AbstractDbxFirebaseCollectionStore {
|
|
|
1640
1649
|
constructor() {
|
|
1641
1650
|
super({ firestoreCollection: inject(OidcModelFirestoreCollections).oidcEntryCollection });
|
|
1642
1651
|
}
|
|
1643
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1644
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1652
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: OidcEntryCollectionStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1653
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: OidcEntryCollectionStore });
|
|
1645
1654
|
}
|
|
1646
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1655
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: OidcEntryCollectionStore, decorators: [{
|
|
1647
1656
|
type: Injectable
|
|
1648
1657
|
}], ctorParameters: () => [] });
|
|
1649
1658
|
|
|
@@ -1654,15 +1663,14 @@ class OidcEntryCollectionStoreDirective extends DbxFirebaseCollectionStoreDirect
|
|
|
1654
1663
|
constructor() {
|
|
1655
1664
|
super(inject(OidcEntryCollectionStore));
|
|
1656
1665
|
}
|
|
1657
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1658
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
1666
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: OidcEntryCollectionStoreDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1667
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.4", type: OidcEntryCollectionStoreDirective, isStandalone: true, selector: "[dbxOidcEntryCollection]", providers: provideDbxFirebaseCollectionStoreDirective(OidcEntryCollectionStoreDirective, OidcEntryCollectionStore), usesInheritance: true, ngImport: i0 });
|
|
1659
1668
|
}
|
|
1660
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1669
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: OidcEntryCollectionStoreDirective, decorators: [{
|
|
1661
1670
|
type: Directive,
|
|
1662
1671
|
args: [{
|
|
1663
1672
|
selector: '[dbxOidcEntryCollection]',
|
|
1664
|
-
providers: provideDbxFirebaseCollectionStoreDirective(OidcEntryCollectionStoreDirective, OidcEntryCollectionStore)
|
|
1665
|
-
standalone: true
|
|
1673
|
+
providers: provideDbxFirebaseCollectionStoreDirective(OidcEntryCollectionStoreDirective, OidcEntryCollectionStore)
|
|
1666
1674
|
}]
|
|
1667
1675
|
}], ctorParameters: () => [] });
|
|
1668
1676
|
|
|
@@ -1676,21 +1684,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.11", ngImpo
|
|
|
1676
1684
|
*/
|
|
1677
1685
|
class DbxFirebaseOidcEntryGrantListContainerComponent {
|
|
1678
1686
|
dbxFirebaseAuthService = inject(DbxFirebaseAuthService);
|
|
1679
|
-
oidcEntryCollectionStoreDirective = viewChild(OidcEntryCollectionStoreDirective,
|
|
1687
|
+
oidcEntryCollectionStoreDirective = viewChild(OidcEntryCollectionStoreDirective, /* @ts-ignore */
|
|
1688
|
+
...(ngDevMode ? [{ debugName: "oidcEntryCollectionStoreDirective" }] : /* istanbul ignore next */ []));
|
|
1680
1689
|
grantConstraintsSignal = toSignal(this.dbxFirebaseAuthService.currentAuthUser$.pipe(map((user) => (user?.uid ? oidcGrantEntriesByUidQuery(user.uid) : []))));
|
|
1681
1690
|
ngOnInit() {
|
|
1682
1691
|
const directive = this.oidcEntryCollectionStoreDirective();
|
|
1683
1692
|
directive?.setMaxPages(5);
|
|
1684
1693
|
directive?.setItemsPerPage(20);
|
|
1685
1694
|
}
|
|
1686
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1687
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "
|
|
1695
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxFirebaseOidcEntryGrantListContainerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1696
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.1.4", type: DbxFirebaseOidcEntryGrantListContainerComponent, isStandalone: true, selector: "dbx-firebase-oidc-grant-list-container", viewQueries: [{ propertyName: "oidcEntryCollectionStoreDirective", first: true, predicate: OidcEntryCollectionStoreDirective, descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
1688
1697
|
<div dbxOidcEntryCollection dbxFirebaseCollectionChange="auto" [constraints]="grantConstraintsSignal()">
|
|
1689
1698
|
<dbx-firebase-oidc-grant-list dbxFirebaseCollectionList></dbx-firebase-oidc-grant-list>
|
|
1690
1699
|
</div>
|
|
1691
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: OidcEntryCollectionStoreDirective, selector: "[dbxOidcEntryCollection]" }, { kind: "directive", type: DbxFirebaseCollectionListDirective, selector: "[dbxFirebaseCollectionList]" }, { kind: "directive", type: DbxFirebaseCollectionChangeDirective, selector: "[dbxFirebaseCollectionChange]", inputs: ["dbxFirebaseCollectionChange"] }, { kind: "component", type: DbxFirebaseOidcEntryGrantListComponent, selector: "dbx-firebase-oidc-grant-list" }]
|
|
1700
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: OidcEntryCollectionStoreDirective, selector: "[dbxOidcEntryCollection]" }, { kind: "directive", type: DbxFirebaseCollectionListDirective, selector: "[dbxFirebaseCollectionList]" }, { kind: "directive", type: DbxFirebaseCollectionChangeDirective, selector: "[dbxFirebaseCollectionChange]", inputs: ["dbxFirebaseCollectionChange"] }, { kind: "component", type: DbxFirebaseOidcEntryGrantListComponent, selector: "dbx-firebase-oidc-grant-list" }] });
|
|
1692
1701
|
}
|
|
1693
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1702
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxFirebaseOidcEntryGrantListContainerComponent, decorators: [{
|
|
1694
1703
|
type: Component,
|
|
1695
1704
|
args: [{
|
|
1696
1705
|
selector: 'dbx-firebase-oidc-grant-list-container',
|
|
@@ -1699,9 +1708,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.11", ngImpo
|
|
|
1699
1708
|
<dbx-firebase-oidc-grant-list dbxFirebaseCollectionList></dbx-firebase-oidc-grant-list>
|
|
1700
1709
|
</div>
|
|
1701
1710
|
`,
|
|
1702
|
-
|
|
1703
|
-
imports: [OidcEntryCollectionStoreDirective, DbxFirebaseCollectionListDirective, DbxFirebaseCollectionChangeDirective, DbxFirebaseOidcEntryGrantListComponent],
|
|
1704
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
1711
|
+
imports: [OidcEntryCollectionStoreDirective, DbxFirebaseCollectionListDirective, DbxFirebaseCollectionChangeDirective, DbxFirebaseOidcEntryGrantListComponent]
|
|
1705
1712
|
}]
|
|
1706
1713
|
}], propDecorators: { oidcEntryCollectionStoreDirective: [{ type: i0.ViewChild, args: [i0.forwardRef(() => OidcEntryCollectionStoreDirective), { isSignal: true }] }] } });
|
|
1707
1714
|
|
|
@@ -1714,7 +1721,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.11", ngImpo
|
|
|
1714
1721
|
class DbxFirebaseOidcEntryClientCreateComponent {
|
|
1715
1722
|
oidcEntryDocumentStore = inject(OidcEntryDocumentStore);
|
|
1716
1723
|
formConfig = { mode: 'create' };
|
|
1717
|
-
createClientOwnerTarget = input(
|
|
1724
|
+
createClientOwnerTarget = input(/* @ts-ignore */
|
|
1725
|
+
...(ngDevMode ? [undefined, { debugName: "createClientOwnerTarget" }] : /* istanbul ignore next */ []));
|
|
1718
1726
|
clientCreated = output();
|
|
1719
1727
|
handleCreateClient = (value, context) => {
|
|
1720
1728
|
const params = value;
|
|
@@ -1728,15 +1736,15 @@ class DbxFirebaseOidcEntryClientCreateComponent {
|
|
|
1728
1736
|
}
|
|
1729
1737
|
})));
|
|
1730
1738
|
};
|
|
1731
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1732
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "
|
|
1739
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxFirebaseOidcEntryClientCreateComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1740
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.1.4", type: DbxFirebaseOidcEntryClientCreateComponent, isStandalone: true, selector: "dbx-firebase-oidc-entry-client-create", inputs: { createClientOwnerTarget: { classPropertyName: "createClientOwnerTarget", publicName: "createClientOwnerTarget", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { clientCreated: "clientCreated" }, ngImport: i0, template: `
|
|
1733
1741
|
<div dbxAction dbxActionEnforceModified [dbxActionHandler]="handleCreateClient" dbxActionSnackbarError>
|
|
1734
1742
|
<dbx-firebase-oidc-client-forge-form dbxActionForm [config]="formConfig"></dbx-firebase-oidc-client-forge-form>
|
|
1735
1743
|
<dbx-button [raised]="true" dbxActionButton text="Create"></dbx-button>
|
|
1736
1744
|
</div>
|
|
1737
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: DbxActionSnackbarErrorDirective, selector: "[dbxActionSnackbarError]", inputs: ["dbxActionSnackbarError"] }, { kind: "directive", type: DbxActionDirective, selector: "dbx-action,[dbxAction]", exportAs: ["action", "dbxAction"] }, { kind: "directive", type: DbxActionEnforceModifiedDirective, selector: "[dbxActionEnforceModified]", inputs: ["dbxActionEnforceModified"] }, { kind: "directive", type: DbxActionHandlerDirective, selector: "[dbxActionHandler]", inputs: ["dbxActionHandler"] }, { kind: "directive", type: DbxActionFormDirective, selector: "[dbxActionForm]", inputs: ["dbxActionFormDisabledOnWorking", "dbxActionFormIsValid", "dbxActionFormIsEqual", "dbxActionFormIsModified", "dbxActionFormMapValue"] }, { kind: "component", type: DbxButtonComponent, selector: "dbx-button", inputs: ["bar", "type", "buttonStyle", "color", "spinnerColor", "
|
|
1745
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: DbxActionSnackbarErrorDirective, selector: "[dbxActionSnackbarError]", inputs: ["dbxActionSnackbarError"] }, { kind: "directive", type: DbxActionDirective, selector: "dbx-action,[dbxAction]", exportAs: ["action", "dbxAction"] }, { kind: "directive", type: DbxActionEnforceModifiedDirective, selector: "[dbxActionEnforceModified]", inputs: ["dbxActionEnforceModified"] }, { kind: "directive", type: DbxActionHandlerDirective, selector: "[dbxActionHandler]", inputs: ["dbxActionHandler"] }, { kind: "directive", type: DbxActionFormDirective, selector: "[dbxActionForm]", inputs: ["dbxActionFormDisabledOnWorking", "dbxActionFormIsValid", "dbxActionFormIsEqual", "dbxActionFormIsModified", "dbxActionFormMapValue"] }, { kind: "component", type: DbxButtonComponent, selector: "dbx-button", inputs: ["bar", "type", "buttonStyle", "color", "spinnerColor", "customTextColor", "customSpinnerColor", "basic", "tonal", "raised", "stroked", "flat", "iconOnly", "fab", "customContent", "allowClickPropagation", "mode"] }, { kind: "directive", type: DbxActionButtonDirective, selector: "[dbxActionButton]", inputs: ["dbxActionButtonEcho"] }, { kind: "component", type: DbxFirebaseOidcEntryClientForgeFormComponent, selector: "dbx-firebase-oidc-client-forge-form" }] });
|
|
1738
1746
|
}
|
|
1739
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1747
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxFirebaseOidcEntryClientCreateComponent, decorators: [{
|
|
1740
1748
|
type: Component,
|
|
1741
1749
|
args: [{
|
|
1742
1750
|
selector: 'dbx-firebase-oidc-entry-client-create',
|
|
@@ -1746,9 +1754,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.11", ngImpo
|
|
|
1746
1754
|
<dbx-button [raised]="true" dbxActionButton text="Create"></dbx-button>
|
|
1747
1755
|
</div>
|
|
1748
1756
|
`,
|
|
1749
|
-
|
|
1750
|
-
imports: [DbxActionSnackbarErrorDirective, DbxActionDirective, DbxActionEnforceModifiedDirective, DbxActionHandlerDirective, DbxActionFormDirective, DbxButtonComponent, DbxActionButtonDirective, DbxFirebaseOidcEntryClientForgeFormComponent],
|
|
1751
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
1757
|
+
imports: [DbxActionSnackbarErrorDirective, DbxActionDirective, DbxActionEnforceModifiedDirective, DbxActionHandlerDirective, DbxActionFormDirective, DbxButtonComponent, DbxActionButtonDirective, DbxFirebaseOidcEntryClientForgeFormComponent]
|
|
1752
1758
|
}]
|
|
1753
1759
|
}], propDecorators: { createClientOwnerTarget: [{ type: i0.Input, args: [{ isSignal: true, alias: "createClientOwnerTarget", required: false }] }], clientCreated: [{ type: i0.Output, args: ["clientCreated"] }] } });
|
|
1754
1760
|
|
|
@@ -1764,13 +1770,17 @@ class DbxFirebaseOidcEntryClientTestComponent {
|
|
|
1764
1770
|
/**
|
|
1765
1771
|
* Scopes the user can pick from. Overrides the service default when provided.
|
|
1766
1772
|
*/
|
|
1767
|
-
availableScopes = input(undefined,
|
|
1773
|
+
availableScopes = input(undefined, /* @ts-ignore */
|
|
1774
|
+
...(ngDevMode ? [{ debugName: "availableScopes" }] : /* istanbul ignore next */ []));
|
|
1768
1775
|
/**
|
|
1769
1776
|
* Path to the authorization endpoint. Overrides the service default when provided.
|
|
1770
1777
|
*/
|
|
1771
|
-
oidcAuthorizationEndpointApiPath = input(undefined,
|
|
1772
|
-
|
|
1773
|
-
|
|
1778
|
+
oidcAuthorizationEndpointApiPath = input(undefined, /* @ts-ignore */
|
|
1779
|
+
...(ngDevMode ? [{ debugName: "oidcAuthorizationEndpointApiPath" }] : /* istanbul ignore next */ []));
|
|
1780
|
+
resolvedAvailableScopesSignal = computed(() => this.availableScopes() ?? this.oidcConfigService.availableScopes, /* @ts-ignore */
|
|
1781
|
+
...(ngDevMode ? [{ debugName: "resolvedAvailableScopesSignal" }] : /* istanbul ignore next */ []));
|
|
1782
|
+
resolvedAuthorizationEndpointPathSignal = computed(() => this.oidcAuthorizationEndpointApiPath() ?? this.oidcConfigService.oidcAuthorizationEndpointApiPath, /* @ts-ignore */
|
|
1783
|
+
...(ngDevMode ? [{ debugName: "resolvedAuthorizationEndpointPathSignal" }] : /* istanbul ignore next */ []));
|
|
1774
1784
|
// MARK: Derived Store Data
|
|
1775
1785
|
redirectUrisSignal = toSignal(this.oidcEntryDocumentStore.data$.pipe(map((data) => data.payload?.redirect_uris ?? [])));
|
|
1776
1786
|
clientIdSignal = toSignal(this.oidcEntryDocumentStore.data$.pipe(map((data) => data.payload?.client_id)));
|
|
@@ -1780,7 +1790,8 @@ class DbxFirebaseOidcEntryClientTestComponent {
|
|
|
1780
1790
|
const availableScopes = this.resolvedAvailableScopesSignal();
|
|
1781
1791
|
console.log('formConfig:', { redirectUris, availableScopes });
|
|
1782
1792
|
return { redirectUris, availableScopes };
|
|
1783
|
-
},
|
|
1793
|
+
}, /* @ts-ignore */
|
|
1794
|
+
...(ngDevMode ? [{ debugName: "formConfigSignal" }] : /* istanbul ignore next */ []));
|
|
1784
1795
|
formTemplate$ = this.oidcEntryDocumentStore.data$.pipe(map((data) => {
|
|
1785
1796
|
const payload = data.payload;
|
|
1786
1797
|
const formValue = {
|
|
@@ -1791,14 +1802,19 @@ class DbxFirebaseOidcEntryClientTestComponent {
|
|
|
1791
1802
|
return formValue;
|
|
1792
1803
|
}));
|
|
1793
1804
|
// MARK: PKCE
|
|
1794
|
-
codeVerifier = signal(generatePkceCodeVerifier(),
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1805
|
+
codeVerifier = signal(generatePkceCodeVerifier(), /* @ts-ignore */
|
|
1806
|
+
...(ngDevMode ? [{ debugName: "codeVerifier" }] : /* istanbul ignore next */ []));
|
|
1807
|
+
codeChallenge = signal('', /* @ts-ignore */
|
|
1808
|
+
...(ngDevMode ? [{ debugName: "codeChallenge" }] : /* istanbul ignore next */ []));
|
|
1809
|
+
state = signal(generateRandomString(), /* @ts-ignore */
|
|
1810
|
+
...(ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []));
|
|
1811
|
+
nonce = signal(generateRandomString(), /* @ts-ignore */
|
|
1812
|
+
...(ngDevMode ? [{ debugName: "nonce" }] : /* istanbul ignore next */ []));
|
|
1798
1813
|
/**
|
|
1799
1814
|
* The current form value, updated by the form via dbxFormValueChange.
|
|
1800
1815
|
*/
|
|
1801
|
-
formValue = signal(undefined,
|
|
1816
|
+
formValue = signal(undefined, /* @ts-ignore */
|
|
1817
|
+
...(ngDevMode ? [{ debugName: "formValue" }] : /* istanbul ignore next */ []));
|
|
1802
1818
|
authorizationUrlSignal = computed(() => {
|
|
1803
1819
|
const resolvedAuthorizationEndpointPath = this.resolvedAuthorizationEndpointPathSignal();
|
|
1804
1820
|
const clientId = this.clientIdSignal();
|
|
@@ -1824,7 +1840,8 @@ class DbxFirebaseOidcEntryClientTestComponent {
|
|
|
1824
1840
|
result = `${resolvedAuthorizationEndpointPath}?${params.toString()}`;
|
|
1825
1841
|
}
|
|
1826
1842
|
return result;
|
|
1827
|
-
},
|
|
1843
|
+
}, /* @ts-ignore */
|
|
1844
|
+
...(ngDevMode ? [{ debugName: "authorizationUrlSignal" }] : /* istanbul ignore next */ []));
|
|
1828
1845
|
constructor() {
|
|
1829
1846
|
this._updateCodeChallenge();
|
|
1830
1847
|
}
|
|
@@ -1848,8 +1865,8 @@ class DbxFirebaseOidcEntryClientTestComponent {
|
|
|
1848
1865
|
this.codeChallenge.set(challenge);
|
|
1849
1866
|
});
|
|
1850
1867
|
}
|
|
1851
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1852
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
1868
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxFirebaseOidcEntryClientTestComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1869
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.4", type: DbxFirebaseOidcEntryClientTestComponent, isStandalone: true, selector: "dbx-firebase-oidc-entry-client-test", inputs: { availableScopes: { classPropertyName: "availableScopes", publicName: "availableScopes", isSignal: true, isRequired: false, transformFunction: null }, oidcAuthorizationEndpointApiPath: { classPropertyName: "oidcAuthorizationEndpointApiPath", publicName: "oidcAuthorizationEndpointApiPath", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
|
|
1853
1870
|
@if (formConfigSignal()) {
|
|
1854
1871
|
<dbx-firebase-oidc-client-test-forge-form [dbxFormSource]="formTemplate$" dbxFormSourceMode="always" [config]="formConfigSignal()" (dbxFormValueChange)="onFormValueChange($event)"></dbx-firebase-oidc-client-test-forge-form>
|
|
1855
1872
|
<dbx-content-pit class="dbx-block dbx-mb3">
|
|
@@ -1871,9 +1888,9 @@ class DbxFirebaseOidcEntryClientTestComponent {
|
|
|
1871
1888
|
<dbx-button class="dbx-ml2" text="Regenerate PKCE" icon="refresh" (buttonClick)="regeneratePkce()"></dbx-button>
|
|
1872
1889
|
</div>
|
|
1873
1890
|
}
|
|
1874
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: DbxFirebaseOidcEntryClientTestForgeFormComponent, selector: "dbx-firebase-oidc-client-test-forge-form" }, { kind: "directive", type: DbxFormSourceDirective, selector: "[dbxFormSource]", inputs: ["dbxFormSourceMode", "dbxFormSource"] }, { kind: "directive", type: DbxFormValueChangeDirective, selector: "[dbxFormValueChange]", outputs: ["dbxFormValueChange"] }, { kind: "directive", type: DbxContentPitDirective, selector: "dbx-content-pit, [dbxContentPit]", inputs: ["scrollable", "square"] }, { kind: "component", type: DbxDetailBlockComponent, selector: "dbx-detail-block", inputs: ["icon", "header", "alignHeader", "bigHeader"] }, { kind: "component", type: DbxClickToCopyTextComponent, selector: "dbx-click-to-copy-text", inputs: ["copyText", "showIcon", "highlighted", "clipboardSnackbarMessagesConfig", "clipboardSnackbarMessagesEnabled", "clickToCopyIcon", "clickIconToCopyOnly"] }, { kind: "component", type: DbxButtonComponent, selector: "dbx-button", inputs: ["bar", "type", "buttonStyle", "color", "spinnerColor", "
|
|
1891
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: DbxFirebaseOidcEntryClientTestForgeFormComponent, selector: "dbx-firebase-oidc-client-test-forge-form" }, { kind: "directive", type: DbxFormSourceDirective, selector: "[dbxFormSource]", inputs: ["dbxFormSourceMode", "dbxFormSource"] }, { kind: "directive", type: DbxFormValueChangeDirective, selector: "[dbxFormValueChange]", outputs: ["dbxFormValueChange"] }, { kind: "directive", type: DbxContentPitDirective, selector: "dbx-content-pit, [dbxContentPit]", inputs: ["scrollable", "square"] }, { kind: "component", type: DbxDetailBlockComponent, selector: "dbx-detail-block", inputs: ["icon", "header", "alignHeader", "bigHeader"] }, { kind: "component", type: DbxClickToCopyTextComponent, selector: "dbx-click-to-copy-text", inputs: ["copyText", "showIcon", "highlighted", "clipboardSnackbarMessagesConfig", "clipboardSnackbarMessagesEnabled", "clickToCopyIcon", "clickIconToCopyOnly"] }, { kind: "component", type: DbxButtonComponent, selector: "dbx-button", inputs: ["bar", "type", "buttonStyle", "color", "spinnerColor", "customTextColor", "customSpinnerColor", "basic", "tonal", "raised", "stroked", "flat", "iconOnly", "fab", "customContent", "allowClickPropagation", "mode"] }] });
|
|
1875
1892
|
}
|
|
1876
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1893
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxFirebaseOidcEntryClientTestComponent, decorators: [{
|
|
1877
1894
|
type: Component,
|
|
1878
1895
|
args: [{
|
|
1879
1896
|
selector: 'dbx-firebase-oidc-entry-client-test',
|
|
@@ -1900,9 +1917,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.11", ngImpo
|
|
|
1900
1917
|
</div>
|
|
1901
1918
|
}
|
|
1902
1919
|
`,
|
|
1903
|
-
|
|
1904
|
-
imports: [CommonModule, DbxFirebaseOidcEntryClientTestForgeFormComponent, DbxFormSourceDirective, DbxFormValueChangeDirective, DbxContentPitDirective, DbxDetailBlockComponent, DbxClickToCopyTextComponent, DbxButtonComponent],
|
|
1905
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
1920
|
+
imports: [CommonModule, DbxFirebaseOidcEntryClientTestForgeFormComponent, DbxFormSourceDirective, DbxFormValueChangeDirective, DbxContentPitDirective, DbxDetailBlockComponent, DbxClickToCopyTextComponent, DbxButtonComponent]
|
|
1906
1921
|
}]
|
|
1907
1922
|
}], ctorParameters: () => [], propDecorators: { availableScopes: [{ type: i0.Input, args: [{ isSignal: true, alias: "availableScopes", required: false }] }], oidcAuthorizationEndpointApiPath: [{ type: i0.Input, args: [{ isSignal: true, alias: "oidcAuthorizationEndpointApiPath", required: false }] }] } });
|
|
1908
1923
|
function generateRandomString() {
|
|
@@ -1934,15 +1949,15 @@ class DbxFirebaseOidcEntryClientUpdateComponent {
|
|
|
1934
1949
|
const params = value;
|
|
1935
1950
|
context.startWorkingWithLoadingStateObservable(this.oidcEntryDocumentStore.updateClient(params));
|
|
1936
1951
|
};
|
|
1937
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1938
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1952
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxFirebaseOidcEntryClientUpdateComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1953
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.1.4", type: DbxFirebaseOidcEntryClientUpdateComponent, isStandalone: true, selector: "dbx-firebase-oidc-entry-client-update", ngImport: i0, template: `
|
|
1939
1954
|
<div dbxAction dbxActionEnforceModified [dbxActionHandler]="handleUpdateClient" dbxActionSnackbarError>
|
|
1940
1955
|
<dbx-firebase-oidc-client-forge-form dbxActionForm [dbxFormSource]="formTemplate$" dbxFormSourceMode="always" [config]="formConfig"></dbx-firebase-oidc-client-forge-form>
|
|
1941
1956
|
<dbx-button [raised]="true" dbxActionButton text="Save"></dbx-button>
|
|
1942
1957
|
</div>
|
|
1943
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: DbxActionSnackbarErrorDirective, selector: "[dbxActionSnackbarError]", inputs: ["dbxActionSnackbarError"] }, { kind: "directive", type: DbxActionDirective, selector: "dbx-action,[dbxAction]", exportAs: ["action", "dbxAction"] }, { kind: "directive", type: DbxActionEnforceModifiedDirective, selector: "[dbxActionEnforceModified]", inputs: ["dbxActionEnforceModified"] }, { kind: "directive", type: DbxActionHandlerDirective, selector: "[dbxActionHandler]", inputs: ["dbxActionHandler"] }, { kind: "directive", type: DbxActionFormDirective, selector: "[dbxActionForm]", inputs: ["dbxActionFormDisabledOnWorking", "dbxActionFormIsValid", "dbxActionFormIsEqual", "dbxActionFormIsModified", "dbxActionFormMapValue"] }, { kind: "directive", type: DbxFormSourceDirective, selector: "[dbxFormSource]", inputs: ["dbxFormSourceMode", "dbxFormSource"] }, { kind: "component", type: DbxButtonComponent, selector: "dbx-button", inputs: ["bar", "type", "buttonStyle", "color", "spinnerColor", "
|
|
1958
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: DbxActionSnackbarErrorDirective, selector: "[dbxActionSnackbarError]", inputs: ["dbxActionSnackbarError"] }, { kind: "directive", type: DbxActionDirective, selector: "dbx-action,[dbxAction]", exportAs: ["action", "dbxAction"] }, { kind: "directive", type: DbxActionEnforceModifiedDirective, selector: "[dbxActionEnforceModified]", inputs: ["dbxActionEnforceModified"] }, { kind: "directive", type: DbxActionHandlerDirective, selector: "[dbxActionHandler]", inputs: ["dbxActionHandler"] }, { kind: "directive", type: DbxActionFormDirective, selector: "[dbxActionForm]", inputs: ["dbxActionFormDisabledOnWorking", "dbxActionFormIsValid", "dbxActionFormIsEqual", "dbxActionFormIsModified", "dbxActionFormMapValue"] }, { kind: "directive", type: DbxFormSourceDirective, selector: "[dbxFormSource]", inputs: ["dbxFormSourceMode", "dbxFormSource"] }, { kind: "component", type: DbxButtonComponent, selector: "dbx-button", inputs: ["bar", "type", "buttonStyle", "color", "spinnerColor", "customTextColor", "customSpinnerColor", "basic", "tonal", "raised", "stroked", "flat", "iconOnly", "fab", "customContent", "allowClickPropagation", "mode"] }, { kind: "directive", type: DbxActionButtonDirective, selector: "[dbxActionButton]", inputs: ["dbxActionButtonEcho"] }, { kind: "component", type: DbxFirebaseOidcEntryClientForgeFormComponent, selector: "dbx-firebase-oidc-client-forge-form" }] });
|
|
1944
1959
|
}
|
|
1945
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1960
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxFirebaseOidcEntryClientUpdateComponent, decorators: [{
|
|
1946
1961
|
type: Component,
|
|
1947
1962
|
args: [{
|
|
1948
1963
|
selector: 'dbx-firebase-oidc-entry-client-update',
|
|
@@ -1952,9 +1967,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.11", ngImpo
|
|
|
1952
1967
|
<dbx-button [raised]="true" dbxActionButton text="Save"></dbx-button>
|
|
1953
1968
|
</div>
|
|
1954
1969
|
`,
|
|
1955
|
-
|
|
1956
|
-
imports: [DbxActionSnackbarErrorDirective, DbxActionDirective, DbxActionEnforceModifiedDirective, DbxActionHandlerDirective, DbxActionFormDirective, DbxFormSourceDirective, DbxButtonComponent, DbxActionButtonDirective, DbxFirebaseOidcEntryClientForgeFormComponent],
|
|
1957
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
1970
|
+
imports: [DbxActionSnackbarErrorDirective, DbxActionDirective, DbxActionEnforceModifiedDirective, DbxActionHandlerDirective, DbxActionFormDirective, DbxFormSourceDirective, DbxButtonComponent, DbxActionButtonDirective, DbxFirebaseOidcEntryClientForgeFormComponent]
|
|
1958
1971
|
}]
|
|
1959
1972
|
}] });
|
|
1960
1973
|
|
|
@@ -1972,7 +1985,8 @@ class DbxFirebaseOidcEntryClientViewComponent {
|
|
|
1972
1985
|
oidcEntryDocumentStore = inject(OidcEntryDocumentStore);
|
|
1973
1986
|
clientIdSignal = toSignal(this.oidcEntryDocumentStore.data$.pipe(map((data) => data.payload?.client_id)));
|
|
1974
1987
|
tokenEndpointAuthMethodSignal = toSignal(this.oidcEntryDocumentStore.data$.pipe(map((data) => data.payload?.token_endpoint_auth_method)));
|
|
1975
|
-
isPublicClientSignal = computed(() => this.tokenEndpointAuthMethodSignal() === PUBLIC_PKCE_TOKEN_ENDPOINT_AUTH_METHOD,
|
|
1988
|
+
isPublicClientSignal = computed(() => this.tokenEndpointAuthMethodSignal() === PUBLIC_PKCE_TOKEN_ENDPOINT_AUTH_METHOD, /* @ts-ignore */
|
|
1989
|
+
...(ngDevMode ? [{ debugName: "isPublicClientSignal" }] : /* istanbul ignore next */ []));
|
|
1976
1990
|
latestClientSecretSignal = toSignal(this.oidcEntryDocumentStore.latestClientSecret$);
|
|
1977
1991
|
rotateSecretConfirmConfig = {
|
|
1978
1992
|
title: 'Rotate Client Secret',
|
|
@@ -1982,8 +1996,8 @@ class DbxFirebaseOidcEntryClientViewComponent {
|
|
|
1982
1996
|
handleRotateClientSecret = (_, context) => {
|
|
1983
1997
|
context.startWorkingWithLoadingStateObservable(this.oidcEntryDocumentStore.rotateClientSecret({}));
|
|
1984
1998
|
};
|
|
1985
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1986
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
1999
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxFirebaseOidcEntryClientViewComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2000
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.4", type: DbxFirebaseOidcEntryClientViewComponent, isStandalone: true, selector: "dbx-firebase-oidc-entry-client-view", ngImport: i0, template: `
|
|
1987
2001
|
<dbx-content-pit>
|
|
1988
2002
|
<dbx-detail-block class="dbx-pb4" icon="key" header="Client ID">
|
|
1989
2003
|
<dbx-click-to-copy-text [copyText]="clientIdSignal()">{{ clientIdSignal() }}</dbx-click-to-copy-text>
|
|
@@ -2006,9 +2020,9 @@ class DbxFirebaseOidcEntryClientViewComponent {
|
|
|
2006
2020
|
</dbx-detail-block>
|
|
2007
2021
|
}
|
|
2008
2022
|
</dbx-content-pit>
|
|
2009
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: DbxContentPitDirective, selector: "dbx-content-pit, [dbxContentPit]", inputs: ["scrollable", "square"] }, { kind: "component", type: DbxDetailBlockComponent, selector: "dbx-detail-block", inputs: ["icon", "header", "alignHeader", "bigHeader"] }, { kind: "component", type: DbxClickToCopyTextComponent, selector: "dbx-click-to-copy-text", inputs: ["copyText", "showIcon", "highlighted", "clipboardSnackbarMessagesConfig", "clipboardSnackbarMessagesEnabled", "clickToCopyIcon", "clickIconToCopyOnly"] }, { kind: "component", type: DbxButtonComponent, selector: "dbx-button", inputs: ["bar", "type", "buttonStyle", "color", "spinnerColor", "
|
|
2023
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: DbxContentPitDirective, selector: "dbx-content-pit, [dbxContentPit]", inputs: ["scrollable", "square"] }, { kind: "component", type: DbxDetailBlockComponent, selector: "dbx-detail-block", inputs: ["icon", "header", "alignHeader", "bigHeader"] }, { kind: "component", type: DbxClickToCopyTextComponent, selector: "dbx-click-to-copy-text", inputs: ["copyText", "showIcon", "highlighted", "clipboardSnackbarMessagesConfig", "clipboardSnackbarMessagesEnabled", "clickToCopyIcon", "clickIconToCopyOnly"] }, { kind: "component", type: DbxButtonComponent, selector: "dbx-button", inputs: ["bar", "type", "buttonStyle", "color", "spinnerColor", "customTextColor", "customSpinnerColor", "basic", "tonal", "raised", "stroked", "flat", "iconOnly", "fab", "customContent", "allowClickPropagation", "mode"] }, { kind: "directive", type: DbxActionDirective, selector: "dbx-action,[dbxAction]", exportAs: ["action", "dbxAction"] }, { kind: "directive", type: DbxActionHandlerDirective, selector: "[dbxActionHandler]", inputs: ["dbxActionHandler"] }, { kind: "directive", type: DbxActionButtonDirective, selector: "[dbxActionButton]", inputs: ["dbxActionButtonEcho"] }, { kind: "directive", type: DbxActionConfirmDirective, selector: "[dbxActionConfirm]", inputs: ["dbxActionConfirm", "dbxActionConfirmSkip"] }] });
|
|
2010
2024
|
}
|
|
2011
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2025
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxFirebaseOidcEntryClientViewComponent, decorators: [{
|
|
2012
2026
|
type: Component,
|
|
2013
2027
|
args: [{
|
|
2014
2028
|
selector: 'dbx-firebase-oidc-entry-client-view',
|
|
@@ -2036,9 +2050,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.11", ngImpo
|
|
|
2036
2050
|
}
|
|
2037
2051
|
</dbx-content-pit>
|
|
2038
2052
|
`,
|
|
2039
|
-
|
|
2040
|
-
imports: [CommonModule, DbxContentPitDirective, DbxDetailBlockComponent, DbxClickToCopyTextComponent, DbxButtonComponent, DbxActionDirective, DbxActionHandlerDirective, DbxActionButtonDirective, DbxActionConfirmDirective],
|
|
2041
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
2053
|
+
imports: [CommonModule, DbxContentPitDirective, DbxDetailBlockComponent, DbxClickToCopyTextComponent, DbxButtonComponent, DbxActionDirective, DbxActionHandlerDirective, DbxActionButtonDirective, DbxActionConfirmDirective]
|
|
2042
2054
|
}]
|
|
2043
2055
|
}] });
|
|
2044
2056
|
|
|
@@ -2049,15 +2061,14 @@ class OidcEntryDocumentStoreDirective extends DbxFirebaseDocumentStoreDirective
|
|
|
2049
2061
|
constructor() {
|
|
2050
2062
|
super(inject(OidcEntryDocumentStore));
|
|
2051
2063
|
}
|
|
2052
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2053
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
2064
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: OidcEntryDocumentStoreDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
2065
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.4", type: OidcEntryDocumentStoreDirective, isStandalone: true, selector: "[dbxOidcEntryDocument]", providers: provideDbxFirebaseDocumentStoreDirective(OidcEntryDocumentStoreDirective, OidcEntryDocumentStore), usesInheritance: true, ngImport: i0 });
|
|
2054
2066
|
}
|
|
2055
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2067
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: OidcEntryDocumentStoreDirective, decorators: [{
|
|
2056
2068
|
type: Directive,
|
|
2057
2069
|
args: [{
|
|
2058
2070
|
selector: '[dbxOidcEntryDocument]',
|
|
2059
|
-
providers: provideDbxFirebaseDocumentStoreDirective(OidcEntryDocumentStoreDirective, OidcEntryDocumentStore)
|
|
2060
|
-
standalone: true
|
|
2071
|
+
providers: provideDbxFirebaseDocumentStoreDirective(OidcEntryDocumentStoreDirective, OidcEntryDocumentStore)
|
|
2061
2072
|
}]
|
|
2062
2073
|
}], ctorParameters: () => [] });
|
|
2063
2074
|
|