@globalpayments-private/gpds-pattern-web-angular 0.0.0-stage → 0.1.28
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/dist/directives/angular-component-lib/boolean-attribute.d.ts +35 -0
- package/dist/directives/angular-component-lib/boolean-attribute.js +42 -0
- package/dist/directives/angular-component-lib/utils.d.ts +26 -0
- package/dist/directives/angular-component-lib/utils.js +106 -0
- package/dist/directives/index.d.ts +2 -0
- package/dist/directives/index.js +11 -0
- package/dist/directives/proxies.d.ts +192 -0
- package/dist/directives/proxies.js +308 -0
- package/package.json +40 -4
- package/README.md +0 -3
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Transforms a value to a boolean so that boolean properties can be set by attribute presence,
|
|
3
|
+
* e.g. `<my-component disabled>` instead of `<my-component [disabled]="true">`.
|
|
4
|
+
*
|
|
5
|
+
* Strings are coerced the same way Angular's `booleanAttribute` coerces them, so `''` (a bare
|
|
6
|
+
* attribute) becomes `true` and `'false'` becomes `false`.
|
|
7
|
+
*
|
|
8
|
+
* Unlike Angular's `booleanAttribute`, `null` and `undefined` are passed through rather than
|
|
9
|
+
* coerced to `false`. Components frequently treat them as a state distinct from `false`:
|
|
10
|
+
*
|
|
11
|
+
* ```tsx
|
|
12
|
+
* // `undefined` means "decide based on the mode", which is not the same as `false`
|
|
13
|
+
* const showDetail = detail !== undefined ? detail : mode === 'ios';
|
|
14
|
+
*
|
|
15
|
+
* // a strict comparison also behaves differently for `null` than it does for `false`
|
|
16
|
+
* const showHandle = handle !== false;
|
|
17
|
+
* ```
|
|
18
|
+
*
|
|
19
|
+
* Both values reach inputs routinely in Angular templates, from the `async` pipe before its
|
|
20
|
+
* first emission and from form control values, so coercing them would change the behavior of
|
|
21
|
+
* bindings that work today.
|
|
22
|
+
*
|
|
23
|
+
* This is implemented here rather than imported from `@angular/core` so that consumers on
|
|
24
|
+
* Angular versions without `booleanAttribute` are unaffected by this file being generated.
|
|
25
|
+
*
|
|
26
|
+
* The parameter type is what Angular derives `ngAcceptInputType_*` from, so it decides which
|
|
27
|
+
* template bindings compile. Widening it to `unknown` would let any expression through.
|
|
28
|
+
*
|
|
29
|
+
* Declared as a function rather than an arrow constant because Angular has to resolve input
|
|
30
|
+
* transforms statically when compiling a library in partial compilation mode.
|
|
31
|
+
*
|
|
32
|
+
* This lives in its own file, separate from `utils.ts`, so that it carries no runtime imports.
|
|
33
|
+
* That keeps it independently type-checkable without pulling `rxjs` in for `proxyOutputs`.
|
|
34
|
+
*/
|
|
35
|
+
export declare function nullableBooleanAttribute(value: boolean | string | null | undefined): boolean | null | undefined;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/**
|
|
4
|
+
* Transforms a value to a boolean so that boolean properties can be set by attribute presence,
|
|
5
|
+
* e.g. `<my-component disabled>` instead of `<my-component [disabled]="true">`.
|
|
6
|
+
*
|
|
7
|
+
* Strings are coerced the same way Angular's `booleanAttribute` coerces them, so `''` (a bare
|
|
8
|
+
* attribute) becomes `true` and `'false'` becomes `false`.
|
|
9
|
+
*
|
|
10
|
+
* Unlike Angular's `booleanAttribute`, `null` and `undefined` are passed through rather than
|
|
11
|
+
* coerced to `false`. Components frequently treat them as a state distinct from `false`:
|
|
12
|
+
*
|
|
13
|
+
* ```tsx
|
|
14
|
+
* // `undefined` means "decide based on the mode", which is not the same as `false`
|
|
15
|
+
* const showDetail = detail !== undefined ? detail : mode === 'ios';
|
|
16
|
+
*
|
|
17
|
+
* // a strict comparison also behaves differently for `null` than it does for `false`
|
|
18
|
+
* const showHandle = handle !== false;
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
21
|
+
* Both values reach inputs routinely in Angular templates, from the `async` pipe before its
|
|
22
|
+
* first emission and from form control values, so coercing them would change the behavior of
|
|
23
|
+
* bindings that work today.
|
|
24
|
+
*
|
|
25
|
+
* This is implemented here rather than imported from `@angular/core` so that consumers on
|
|
26
|
+
* Angular versions without `booleanAttribute` are unaffected by this file being generated.
|
|
27
|
+
*
|
|
28
|
+
* The parameter type is what Angular derives `ngAcceptInputType_*` from, so it decides which
|
|
29
|
+
* template bindings compile. Widening it to `unknown` would let any expression through.
|
|
30
|
+
*
|
|
31
|
+
* Declared as a function rather than an arrow constant because Angular has to resolve input
|
|
32
|
+
* transforms statically when compiling a library in partial compilation mode.
|
|
33
|
+
*
|
|
34
|
+
* This lives in its own file, separate from `utils.ts`, so that it carries no runtime imports.
|
|
35
|
+
* That keeps it independently type-checkable without pulling `rxjs` in for `proxyOutputs`.
|
|
36
|
+
*/
|
|
37
|
+
export function nullableBooleanAttribute(value) {
|
|
38
|
+
if (value === null || value === undefined) {
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
return typeof value === 'boolean' ? value : value !== 'false';
|
|
42
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Server rendering options (the output target's `ssrPropModule`).
|
|
3
|
+
*/
|
|
4
|
+
interface SsrOptions {
|
|
5
|
+
/** The component library's `ssrProp()`, which hands a value to Stencil's server render. */
|
|
6
|
+
ssrProp: (value: any) => any;
|
|
7
|
+
/** Inputs whose attribute isn't Stencil's dash-cased prop name. */
|
|
8
|
+
attributes?: Record<string, string>;
|
|
9
|
+
/** Inputs with no attribute: every value goes through `ssrProp()`. */
|
|
10
|
+
refs?: string[];
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Records a wrapper created during server rendering. Call from the constructor.
|
|
14
|
+
*/
|
|
15
|
+
export declare const markServer: (instance: object) => void;
|
|
16
|
+
export declare const proxyInputs: (Cmp: any, inputs: string[], ssr?: SsrOptions) => void;
|
|
17
|
+
export declare const proxyMethods: (Cmp: any, methods: string[]) => void;
|
|
18
|
+
export declare const proxyOutputs: (instance: any, el: any, events: string[]) => void;
|
|
19
|
+
export declare const defineCustomElement: (tagName: string, customElement: any) => void;
|
|
20
|
+
export declare function ProxyCmp(opts: {
|
|
21
|
+
defineCustomElementFn?: () => void;
|
|
22
|
+
inputs?: any;
|
|
23
|
+
methods?: any;
|
|
24
|
+
ssr?: SsrOptions;
|
|
25
|
+
}): (cls: any) => any;
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
import { inject, PLATFORM_ID } from '@angular/core';
|
|
4
|
+
import { fromEvent } from 'rxjs';
|
|
5
|
+
const serverInstances = new WeakSet();
|
|
6
|
+
/**
|
|
7
|
+
* Records a wrapper created during server rendering. Call from the constructor.
|
|
8
|
+
*/
|
|
9
|
+
export const markServer = (instance) => {
|
|
10
|
+
// what `isPlatformServer()` from `@angular/common` checks
|
|
11
|
+
if (inject(PLATFORM_ID) === 'server') {
|
|
12
|
+
serverInstances.add(instance);
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Stencil's own prop name to attribute name conversion (`prop1` -> `prop-1`).
|
|
17
|
+
*/
|
|
18
|
+
const toDashCase = (str) => str
|
|
19
|
+
.replace(/([A-Z0-9])/g, (match) => ` ${match[0]}`)
|
|
20
|
+
.trim()
|
|
21
|
+
.split(' ')
|
|
22
|
+
.join('-')
|
|
23
|
+
.toLowerCase();
|
|
24
|
+
/**
|
|
25
|
+
* Angular's server DOM never writes properties to the HTML, so on the server an input becomes an
|
|
26
|
+
* attribute, which Stencil's `renderToString()` reads:
|
|
27
|
+
* - a string or number as itself, and `true` as an empty attribute, so the component's first
|
|
28
|
+
* render in the browser sees them too;
|
|
29
|
+
* - `false`, anything that isn't a primitive, and any value for a prop with no attribute through
|
|
30
|
+
* `ssrProp()`, which gives the server render the exact value and leaves no attribute behind.
|
|
31
|
+
*/
|
|
32
|
+
const setServerAttribute = (el, item, val, ssr) => {
|
|
33
|
+
const name = ssr.attributes?.[item] ?? toDashCase(item);
|
|
34
|
+
if (val == null) {
|
|
35
|
+
el.removeAttribute(name);
|
|
36
|
+
}
|
|
37
|
+
else if (ssr.refs?.includes(item) ||
|
|
38
|
+
val === false ||
|
|
39
|
+
(typeof val !== 'string' && typeof val !== 'number' && val !== true)) {
|
|
40
|
+
el.setAttribute(name, ssr.ssrProp(val));
|
|
41
|
+
}
|
|
42
|
+
else {
|
|
43
|
+
el.setAttribute(name, val === true ? '' : String(val));
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
export const proxyInputs = (Cmp, inputs, ssr) => {
|
|
47
|
+
const Prototype = Cmp.prototype;
|
|
48
|
+
inputs.forEach((item) => {
|
|
49
|
+
Object.defineProperty(Prototype, item, {
|
|
50
|
+
get() {
|
|
51
|
+
return this.el[item];
|
|
52
|
+
},
|
|
53
|
+
set(val) {
|
|
54
|
+
if (ssr && serverInstances.has(this)) {
|
|
55
|
+
// kept on the element too, so reading the input back on the server works
|
|
56
|
+
this.el[item] = val;
|
|
57
|
+
setServerAttribute(this.el, item, val, ssr);
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
60
|
+
this.z.runOutsideAngular(() => (this.el[item] = val));
|
|
61
|
+
},
|
|
62
|
+
/**
|
|
63
|
+
* In the event that proxyInputs is called
|
|
64
|
+
* multiple times re-defining these inputs
|
|
65
|
+
* will cause an error to be thrown. As a result
|
|
66
|
+
* we set configurable: true to indicate these
|
|
67
|
+
* properties can be changed.
|
|
68
|
+
*/
|
|
69
|
+
configurable: true,
|
|
70
|
+
});
|
|
71
|
+
});
|
|
72
|
+
};
|
|
73
|
+
export const proxyMethods = (Cmp, methods) => {
|
|
74
|
+
const Prototype = Cmp.prototype;
|
|
75
|
+
methods.forEach((methodName) => {
|
|
76
|
+
Prototype[methodName] = function () {
|
|
77
|
+
const args = arguments;
|
|
78
|
+
return this.z.runOutsideAngular(() => this.el[methodName].apply(this.el, args));
|
|
79
|
+
};
|
|
80
|
+
});
|
|
81
|
+
};
|
|
82
|
+
export const proxyOutputs = (instance, el, events) => {
|
|
83
|
+
events.forEach((eventName) => (instance[eventName] = fromEvent(el, eventName)));
|
|
84
|
+
};
|
|
85
|
+
export const defineCustomElement = (tagName, customElement) => {
|
|
86
|
+
if (customElement !== undefined && typeof customElements !== 'undefined' && !customElements.get(tagName)) {
|
|
87
|
+
customElements.define(tagName, customElement);
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
// tslint:disable-next-line: only-arrow-functions
|
|
91
|
+
export function ProxyCmp(opts) {
|
|
92
|
+
const decorator = function (cls) {
|
|
93
|
+
const { defineCustomElementFn, inputs, methods, ssr } = opts;
|
|
94
|
+
if (defineCustomElementFn !== undefined) {
|
|
95
|
+
defineCustomElementFn();
|
|
96
|
+
}
|
|
97
|
+
if (inputs) {
|
|
98
|
+
proxyInputs(cls, inputs, ssr);
|
|
99
|
+
}
|
|
100
|
+
if (methods) {
|
|
101
|
+
proxyMethods(cls, methods);
|
|
102
|
+
}
|
|
103
|
+
return cls;
|
|
104
|
+
};
|
|
105
|
+
return decorator;
|
|
106
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import * as d from './proxies';
|
|
2
|
+
export declare const DIRECTIVES: (typeof d.GpAdmin | typeof d.GpPatternList | typeof d.GpPatternRecord | typeof d.GpPatternReferenceInput | typeof d.GpPatternWizard | typeof d.GpResource | typeof d.UdsPatternLoginCard | typeof d.UdsPatternLoginPage)[];
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
import { ChangeDetectorRef, ElementRef, EventEmitter, NgZone } from '@angular/core';
|
|
2
|
+
import type { Components } from '@globalpayments-private/gpds-pattern-web/dist/components';
|
|
3
|
+
export declare class GpAdmin {
|
|
4
|
+
protected z: NgZone;
|
|
5
|
+
protected el: HTMLGpAdminElement;
|
|
6
|
+
gpAdminRouteChange: EventEmitter<GpAdminCustomEvent<IGpAdminUdsAdminRouteChangeDetail>>;
|
|
7
|
+
gpAdminSignOut: EventEmitter<GpAdminCustomEvent<IGpAdminUdsAdminSignOutDetail>>;
|
|
8
|
+
constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
|
|
9
|
+
}
|
|
10
|
+
import type { GpAdminCustomEvent } from '@globalpayments-private/gpds-pattern-web/dist/components';
|
|
11
|
+
import type { UdsAdminRouteChangeDetail as IGpAdminUdsAdminRouteChangeDetail } from '@globalpayments-private/gpds-pattern-web/dist/components';
|
|
12
|
+
import type { UdsAdminSignOutDetail as IGpAdminUdsAdminSignOutDetail } from '@globalpayments-private/gpds-pattern-web/dist/components';
|
|
13
|
+
export declare interface GpAdmin extends Components.GpAdmin {
|
|
14
|
+
/**
|
|
15
|
+
* Emitted after the shell moves, including on the initial resolution.
|
|
16
|
+
*/
|
|
17
|
+
gpAdminRouteChange: EventEmitter<GpAdminCustomEvent<IGpAdminUdsAdminRouteChangeDetail>>;
|
|
18
|
+
/**
|
|
19
|
+
* Emitted after a sign-out. The cache is cleared before this fires.
|
|
20
|
+
*/
|
|
21
|
+
gpAdminSignOut: EventEmitter<GpAdminCustomEvent<IGpAdminUdsAdminSignOutDetail>>;
|
|
22
|
+
}
|
|
23
|
+
export declare class GpPatternList {
|
|
24
|
+
protected z: NgZone;
|
|
25
|
+
protected el: HTMLGpPatternListElement;
|
|
26
|
+
gpListRowClick: EventEmitter<GpPatternListCustomEvent<IGpPatternListUdsListRowClickDetail<import("@globalpayments-private/gpds-pattern-web/dist/types/providers/data-provider.js").UdsRecord>>>;
|
|
27
|
+
gpListCreate: EventEmitter<GpPatternListCustomEvent<IGpPatternListUdsListCreateDetail>>;
|
|
28
|
+
gpListError: EventEmitter<GpPatternListCustomEvent<IGpPatternListUdsListErrorDetail>>;
|
|
29
|
+
gpListSelectionChange: EventEmitter<GpPatternListCustomEvent<IGpPatternListUdsListSelectionChangeDetail>>;
|
|
30
|
+
constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
|
|
31
|
+
}
|
|
32
|
+
import type { GpPatternListCustomEvent } from '@globalpayments-private/gpds-pattern-web/dist/components';
|
|
33
|
+
import type { UdsListRowClickDetail as IGpPatternListUdsListRowClickDetail } from '@globalpayments-private/gpds-pattern-web/dist/components';
|
|
34
|
+
import type { UdsListCreateDetail as IGpPatternListUdsListCreateDetail } from '@globalpayments-private/gpds-pattern-web/dist/components';
|
|
35
|
+
import type { UdsListErrorDetail as IGpPatternListUdsListErrorDetail } from '@globalpayments-private/gpds-pattern-web/dist/components';
|
|
36
|
+
import type { UdsListSelectionChangeDetail as IGpPatternListUdsListSelectionChangeDetail } from '@globalpayments-private/gpds-pattern-web/dist/components';
|
|
37
|
+
export declare interface GpPatternList extends Components.GpPatternList {
|
|
38
|
+
/**
|
|
39
|
+
* Emitted when a row is activated. The pattern does not navigate on its own.
|
|
40
|
+
*/
|
|
41
|
+
gpListRowClick: EventEmitter<GpPatternListCustomEvent<IGpPatternListUdsListRowClickDetail>>;
|
|
42
|
+
/**
|
|
43
|
+
* Emitted when the create action is used.
|
|
44
|
+
*/
|
|
45
|
+
gpListCreate: EventEmitter<GpPatternListCustomEvent<IGpPatternListUdsListCreateDetail>>;
|
|
46
|
+
/**
|
|
47
|
+
* Emitted when a read fails, after the list has displayed the failure.
|
|
48
|
+
*/
|
|
49
|
+
gpListError: EventEmitter<GpPatternListCustomEvent<IGpPatternListUdsListErrorDetail>>;
|
|
50
|
+
/**
|
|
51
|
+
* Emitted whenever the selected rows change.
|
|
52
|
+
*/
|
|
53
|
+
gpListSelectionChange: EventEmitter<GpPatternListCustomEvent<IGpPatternListUdsListSelectionChangeDetail>>;
|
|
54
|
+
}
|
|
55
|
+
export declare class GpPatternRecord {
|
|
56
|
+
protected z: NgZone;
|
|
57
|
+
protected el: HTMLGpPatternRecordElement;
|
|
58
|
+
gpRecordSave: EventEmitter<GpPatternRecordCustomEvent<IGpPatternRecordUdsRecordSaveDetail>>;
|
|
59
|
+
gpRecordDelete: EventEmitter<GpPatternRecordCustomEvent<IGpPatternRecordUdsRecordDeleteDetail>>;
|
|
60
|
+
gpRecordCancel: EventEmitter<GpPatternRecordCustomEvent<IGpPatternRecordUdsRecordCancelDetail>>;
|
|
61
|
+
gpRecordDirtyChange: EventEmitter<GpPatternRecordCustomEvent<IGpPatternRecordUdsRecordDirtyChangeDetail>>;
|
|
62
|
+
gpRecordError: EventEmitter<GpPatternRecordCustomEvent<IGpPatternRecordUdsRecordErrorDetail>>;
|
|
63
|
+
constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
|
|
64
|
+
}
|
|
65
|
+
import type { GpPatternRecordCustomEvent } from '@globalpayments-private/gpds-pattern-web/dist/components';
|
|
66
|
+
import type { UdsRecordSaveDetail as IGpPatternRecordUdsRecordSaveDetail } from '@globalpayments-private/gpds-pattern-web/dist/components';
|
|
67
|
+
import type { UdsRecordDeleteDetail as IGpPatternRecordUdsRecordDeleteDetail } from '@globalpayments-private/gpds-pattern-web/dist/components';
|
|
68
|
+
import type { UdsRecordCancelDetail as IGpPatternRecordUdsRecordCancelDetail } from '@globalpayments-private/gpds-pattern-web/dist/components';
|
|
69
|
+
import type { UdsRecordDirtyChangeDetail as IGpPatternRecordUdsRecordDirtyChangeDetail } from '@globalpayments-private/gpds-pattern-web/dist/components';
|
|
70
|
+
import type { UdsRecordErrorDetail as IGpPatternRecordUdsRecordErrorDetail } from '@globalpayments-private/gpds-pattern-web/dist/components';
|
|
71
|
+
export declare interface GpPatternRecord extends Components.GpPatternRecord {
|
|
72
|
+
/**
|
|
73
|
+
* Emitted after a write the pattern has already applied.
|
|
74
|
+
*/
|
|
75
|
+
gpRecordSave: EventEmitter<GpPatternRecordCustomEvent<IGpPatternRecordUdsRecordSaveDetail>>;
|
|
76
|
+
/**
|
|
77
|
+
* Emitted after a delete the pattern has already applied.
|
|
78
|
+
*/
|
|
79
|
+
gpRecordDelete: EventEmitter<GpPatternRecordCustomEvent<IGpPatternRecordUdsRecordDeleteDetail>>;
|
|
80
|
+
/**
|
|
81
|
+
* Emitted when the user leaves without saving. The pattern does not navigate.
|
|
82
|
+
*/
|
|
83
|
+
gpRecordCancel: EventEmitter<GpPatternRecordCustomEvent<IGpPatternRecordUdsRecordCancelDetail>>;
|
|
84
|
+
/**
|
|
85
|
+
* Emitted when the form becomes dirty or clean — on the transition only.
|
|
86
|
+
|
|
87
|
+
The seam for a host that wants a browser-level unsaved-changes guard. The
|
|
88
|
+
pattern does not install a `beforeunload` handler itself; see ADR 0010.
|
|
89
|
+
*/
|
|
90
|
+
gpRecordDirtyChange: EventEmitter<GpPatternRecordCustomEvent<IGpPatternRecordUdsRecordDirtyChangeDetail>>;
|
|
91
|
+
/**
|
|
92
|
+
* Emitted when a read or a write fails, after the pattern has displayed it.
|
|
93
|
+
*/
|
|
94
|
+
gpRecordError: EventEmitter<GpPatternRecordCustomEvent<IGpPatternRecordUdsRecordErrorDetail>>;
|
|
95
|
+
}
|
|
96
|
+
export declare class GpPatternReferenceInput {
|
|
97
|
+
protected z: NgZone;
|
|
98
|
+
protected el: HTMLGpPatternReferenceInputElement;
|
|
99
|
+
gpReferenceChange: EventEmitter<GpPatternReferenceInputCustomEvent<IGpPatternReferenceInputUdsReferenceChangeDetail>>;
|
|
100
|
+
constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
|
|
101
|
+
}
|
|
102
|
+
import type { GpPatternReferenceInputCustomEvent } from '@globalpayments-private/gpds-pattern-web/dist/components';
|
|
103
|
+
import type { UdsReferenceChangeDetail as IGpPatternReferenceInputUdsReferenceChangeDetail } from '@globalpayments-private/gpds-pattern-web/dist/components';
|
|
104
|
+
export declare interface GpPatternReferenceInput extends Components.GpPatternReferenceInput {
|
|
105
|
+
/**
|
|
106
|
+
* Emitted when the user picks a record, or clears the field.
|
|
107
|
+
*/
|
|
108
|
+
gpReferenceChange: EventEmitter<GpPatternReferenceInputCustomEvent<IGpPatternReferenceInputUdsReferenceChangeDetail>>;
|
|
109
|
+
}
|
|
110
|
+
export declare class GpPatternWizard {
|
|
111
|
+
protected z: NgZone;
|
|
112
|
+
protected el: HTMLGpPatternWizardElement;
|
|
113
|
+
gpWizardStepChange: EventEmitter<GpPatternWizardCustomEvent<IGpPatternWizardUdsWizardStepChangeDetail>>;
|
|
114
|
+
gpWizardComplete: EventEmitter<GpPatternWizardCustomEvent<IGpPatternWizardUdsWizardCompleteDetail>>;
|
|
115
|
+
gpWizardError: EventEmitter<GpPatternWizardCustomEvent<IGpPatternWizardUdsWizardErrorDetail>>;
|
|
116
|
+
gpWizardValuesChange: EventEmitter<GpPatternWizardCustomEvent<IGpPatternWizardUdsWizardValuesChangeDetail>>;
|
|
117
|
+
constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
|
|
118
|
+
}
|
|
119
|
+
import type { GpPatternWizardCustomEvent } from '@globalpayments-private/gpds-pattern-web/dist/components';
|
|
120
|
+
import type { UdsWizardStepChangeDetail as IGpPatternWizardUdsWizardStepChangeDetail } from '@globalpayments-private/gpds-pattern-web/dist/components';
|
|
121
|
+
import type { UdsWizardCompleteDetail as IGpPatternWizardUdsWizardCompleteDetail } from '@globalpayments-private/gpds-pattern-web/dist/components';
|
|
122
|
+
import type { UdsWizardErrorDetail as IGpPatternWizardUdsWizardErrorDetail } from '@globalpayments-private/gpds-pattern-web/dist/components';
|
|
123
|
+
import type { UdsWizardValuesChangeDetail as IGpPatternWizardUdsWizardValuesChangeDetail } from '@globalpayments-private/gpds-pattern-web/dist/components';
|
|
124
|
+
export declare interface GpPatternWizard extends Components.GpPatternWizard {
|
|
125
|
+
/**
|
|
126
|
+
* Emitted whenever the wizard moves to a different step.
|
|
127
|
+
*/
|
|
128
|
+
gpWizardStepChange: EventEmitter<GpPatternWizardCustomEvent<IGpPatternWizardUdsWizardStepChangeDetail>>;
|
|
129
|
+
/**
|
|
130
|
+
* Emitted once the final submit has actually been sent.
|
|
131
|
+
*/
|
|
132
|
+
gpWizardComplete: EventEmitter<GpPatternWizardCustomEvent<IGpPatternWizardUdsWizardCompleteDetail>>;
|
|
133
|
+
/**
|
|
134
|
+
* Emitted when validation blocks a move, or the submit fails.
|
|
135
|
+
*/
|
|
136
|
+
gpWizardError: EventEmitter<GpPatternWizardCustomEvent<IGpPatternWizardUdsWizardErrorDetail>>;
|
|
137
|
+
/**
|
|
138
|
+
* Emitted whenever the collected answers change.
|
|
139
|
+
*/
|
|
140
|
+
gpWizardValuesChange: EventEmitter<GpPatternWizardCustomEvent<IGpPatternWizardUdsWizardValuesChangeDetail>>;
|
|
141
|
+
}
|
|
142
|
+
export declare class GpResource {
|
|
143
|
+
protected z: NgZone;
|
|
144
|
+
protected el: HTMLGpResourceElement;
|
|
145
|
+
constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
|
|
146
|
+
}
|
|
147
|
+
export declare interface GpResource extends Components.GpResource {
|
|
148
|
+
}
|
|
149
|
+
export declare class UdsPatternLoginCard {
|
|
150
|
+
protected z: NgZone;
|
|
151
|
+
protected el: HTMLUdsPatternLoginCardElement;
|
|
152
|
+
udsLoginSuccess: EventEmitter<UdsPatternLoginCardCustomEvent<{
|
|
153
|
+
session?: IUdsPatternLoginCardUdsSession;
|
|
154
|
+
}>>;
|
|
155
|
+
udsLoginStepChange: EventEmitter<UdsPatternLoginCardCustomEvent<IUdsPatternLoginCardUdsLoginStepChangeDetail>>;
|
|
156
|
+
udsLoginError: EventEmitter<UdsPatternLoginCardCustomEvent<IUdsPatternLoginCardUdsLoginErrorDetail>>;
|
|
157
|
+
udsLoginAction: EventEmitter<UdsPatternLoginCardCustomEvent<IUdsPatternLoginCardUdsLoginActionDetail>>;
|
|
158
|
+
constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
|
|
159
|
+
}
|
|
160
|
+
import type { UdsPatternLoginCardCustomEvent } from '@globalpayments-private/gpds-pattern-web/dist/components';
|
|
161
|
+
import type { UdsSession as IUdsPatternLoginCardUdsSession } from '@globalpayments-private/gpds-pattern-web/dist/components';
|
|
162
|
+
import type { UdsLoginStepChangeDetail as IUdsPatternLoginCardUdsLoginStepChangeDetail } from '@globalpayments-private/gpds-pattern-web/dist/components';
|
|
163
|
+
import type { UdsLoginErrorDetail as IUdsPatternLoginCardUdsLoginErrorDetail } from '@globalpayments-private/gpds-pattern-web/dist/components';
|
|
164
|
+
import type { UdsLoginActionDetail as IUdsPatternLoginCardUdsLoginActionDetail } from '@globalpayments-private/gpds-pattern-web/dist/components';
|
|
165
|
+
export declare interface UdsPatternLoginCard extends Components.UdsPatternLoginCard {
|
|
166
|
+
/**
|
|
167
|
+
* Emitted once the provider reports successful authentication.
|
|
168
|
+
*/
|
|
169
|
+
udsLoginSuccess: EventEmitter<UdsPatternLoginCardCustomEvent<{
|
|
170
|
+
session?: IUdsPatternLoginCardUdsSession;
|
|
171
|
+
}>>;
|
|
172
|
+
/**
|
|
173
|
+
* Emitted whenever the workflow moves to a different step.
|
|
174
|
+
*/
|
|
175
|
+
udsLoginStepChange: EventEmitter<UdsPatternLoginCardCustomEvent<IUdsPatternLoginCardUdsLoginStepChangeDetail>>;
|
|
176
|
+
/**
|
|
177
|
+
* Emitted when the provider reports a failure, after the card has displayed it.
|
|
178
|
+
*/
|
|
179
|
+
udsLoginError: EventEmitter<UdsPatternLoginCardCustomEvent<IUdsPatternLoginCardUdsLoginErrorDetail>>;
|
|
180
|
+
/**
|
|
181
|
+
* Emitted for the two intents the pattern cannot resolve — the help links.
|
|
182
|
+
In-workflow navigation is handled internally and is not reported here.
|
|
183
|
+
*/
|
|
184
|
+
udsLoginAction: EventEmitter<UdsPatternLoginCardCustomEvent<IUdsPatternLoginCardUdsLoginActionDetail>>;
|
|
185
|
+
}
|
|
186
|
+
export declare class UdsPatternLoginPage {
|
|
187
|
+
protected z: NgZone;
|
|
188
|
+
protected el: HTMLUdsPatternLoginPageElement;
|
|
189
|
+
constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
|
|
190
|
+
}
|
|
191
|
+
export declare interface UdsPatternLoginPage extends Components.UdsPatternLoginPage {
|
|
192
|
+
}
|
|
@@ -0,0 +1,308 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
/* tslint:disable */
|
|
11
|
+
/* auto-generated angular directive proxies */
|
|
12
|
+
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, EventEmitter, Output, NgZone } from '@angular/core';
|
|
13
|
+
import { ProxyCmp } from './angular-component-lib/utils';
|
|
14
|
+
import { defineCustomElement as defineGpAdmin } from '@globalpayments-private/gpds-pattern-web/dist/components/gp-admin.js';
|
|
15
|
+
import { defineCustomElement as defineGpPatternList } from '@globalpayments-private/gpds-pattern-web/dist/components/gp-pattern-list.js';
|
|
16
|
+
import { defineCustomElement as defineGpPatternRecord } from '@globalpayments-private/gpds-pattern-web/dist/components/gp-pattern-record.js';
|
|
17
|
+
import { defineCustomElement as defineGpPatternReferenceInput } from '@globalpayments-private/gpds-pattern-web/dist/components/gp-pattern-reference-input.js';
|
|
18
|
+
import { defineCustomElement as defineGpPatternWizard } from '@globalpayments-private/gpds-pattern-web/dist/components/gp-pattern-wizard.js';
|
|
19
|
+
import { defineCustomElement as defineGpResource } from '@globalpayments-private/gpds-pattern-web/dist/components/gp-resource.js';
|
|
20
|
+
import { defineCustomElement as defineUdsPatternLoginCard } from '@globalpayments-private/gpds-pattern-web/dist/components/uds-pattern-login-card.js';
|
|
21
|
+
import { defineCustomElement as defineUdsPatternLoginPage } from '@globalpayments-private/gpds-pattern-web/dist/components/uds-pattern-login-page.js';
|
|
22
|
+
let GpAdmin = class GpAdmin {
|
|
23
|
+
constructor(c, r, z) {
|
|
24
|
+
this.z = z;
|
|
25
|
+
this.gpAdminRouteChange = new EventEmitter();
|
|
26
|
+
this.gpAdminSignOut = new EventEmitter();
|
|
27
|
+
c.detach();
|
|
28
|
+
this.el = r.nativeElement;
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
__decorate([
|
|
32
|
+
Output(),
|
|
33
|
+
__metadata("design:type", Object)
|
|
34
|
+
], GpAdmin.prototype, "gpAdminRouteChange", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
Output(),
|
|
37
|
+
__metadata("design:type", Object)
|
|
38
|
+
], GpAdmin.prototype, "gpAdminSignOut", void 0);
|
|
39
|
+
GpAdmin = __decorate([
|
|
40
|
+
ProxyCmp({
|
|
41
|
+
defineCustomElementFn: defineGpAdmin,
|
|
42
|
+
inputs: ['config', 'hasDashboard'],
|
|
43
|
+
methods: ['navigate', 'currentRoute', 'signOut']
|
|
44
|
+
}),
|
|
45
|
+
Component({
|
|
46
|
+
selector: 'gp-admin',
|
|
47
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
48
|
+
template: '<ng-content></ng-content>',
|
|
49
|
+
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
50
|
+
inputs: ['config', 'hasDashboard'],
|
|
51
|
+
outputs: ['gpAdminRouteChange', 'gpAdminSignOut'],
|
|
52
|
+
}),
|
|
53
|
+
__metadata("design:paramtypes", [ChangeDetectorRef, ElementRef, NgZone])
|
|
54
|
+
], GpAdmin);
|
|
55
|
+
export { GpAdmin };
|
|
56
|
+
let GpPatternList = class GpPatternList {
|
|
57
|
+
constructor(c, r, z) {
|
|
58
|
+
this.z = z;
|
|
59
|
+
this.gpListRowClick = new EventEmitter();
|
|
60
|
+
this.gpListCreate = new EventEmitter();
|
|
61
|
+
this.gpListError = new EventEmitter();
|
|
62
|
+
this.gpListSelectionChange = new EventEmitter();
|
|
63
|
+
c.detach();
|
|
64
|
+
this.el = r.nativeElement;
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
__decorate([
|
|
68
|
+
Output(),
|
|
69
|
+
__metadata("design:type", Object)
|
|
70
|
+
], GpPatternList.prototype, "gpListRowClick", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
Output(),
|
|
73
|
+
__metadata("design:type", Object)
|
|
74
|
+
], GpPatternList.prototype, "gpListCreate", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
Output(),
|
|
77
|
+
__metadata("design:type", Object)
|
|
78
|
+
], GpPatternList.prototype, "gpListError", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
Output(),
|
|
81
|
+
__metadata("design:type", Object)
|
|
82
|
+
], GpPatternList.prototype, "gpListSelectionChange", void 0);
|
|
83
|
+
GpPatternList = __decorate([
|
|
84
|
+
ProxyCmp({
|
|
85
|
+
defineCustomElementFn: defineGpPatternList,
|
|
86
|
+
inputs: ['config', 'heading', 'paramPrefix', 'perPage', 'resource', 'undoWindowMs'],
|
|
87
|
+
methods: ['refresh', 'flush', 'updateSelected']
|
|
88
|
+
}),
|
|
89
|
+
Component({
|
|
90
|
+
selector: 'gp-pattern-list',
|
|
91
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
92
|
+
template: '<ng-content></ng-content>',
|
|
93
|
+
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
94
|
+
inputs: ['config', 'heading', 'paramPrefix', 'perPage', { name: 'resource', required: true }, 'undoWindowMs'],
|
|
95
|
+
outputs: ['gpListRowClick', 'gpListCreate', 'gpListError', 'gpListSelectionChange'],
|
|
96
|
+
}),
|
|
97
|
+
__metadata("design:paramtypes", [ChangeDetectorRef, ElementRef, NgZone])
|
|
98
|
+
], GpPatternList);
|
|
99
|
+
export { GpPatternList };
|
|
100
|
+
let GpPatternRecord = class GpPatternRecord {
|
|
101
|
+
constructor(c, r, z) {
|
|
102
|
+
this.z = z;
|
|
103
|
+
this.gpRecordSave = new EventEmitter();
|
|
104
|
+
this.gpRecordDelete = new EventEmitter();
|
|
105
|
+
this.gpRecordCancel = new EventEmitter();
|
|
106
|
+
this.gpRecordDirtyChange = new EventEmitter();
|
|
107
|
+
this.gpRecordError = new EventEmitter();
|
|
108
|
+
c.detach();
|
|
109
|
+
this.el = r.nativeElement;
|
|
110
|
+
}
|
|
111
|
+
};
|
|
112
|
+
__decorate([
|
|
113
|
+
Output(),
|
|
114
|
+
__metadata("design:type", Object)
|
|
115
|
+
], GpPatternRecord.prototype, "gpRecordSave", void 0);
|
|
116
|
+
__decorate([
|
|
117
|
+
Output(),
|
|
118
|
+
__metadata("design:type", Object)
|
|
119
|
+
], GpPatternRecord.prototype, "gpRecordDelete", void 0);
|
|
120
|
+
__decorate([
|
|
121
|
+
Output(),
|
|
122
|
+
__metadata("design:type", Object)
|
|
123
|
+
], GpPatternRecord.prototype, "gpRecordCancel", void 0);
|
|
124
|
+
__decorate([
|
|
125
|
+
Output(),
|
|
126
|
+
__metadata("design:type", Object)
|
|
127
|
+
], GpPatternRecord.prototype, "gpRecordDirtyChange", void 0);
|
|
128
|
+
__decorate([
|
|
129
|
+
Output(),
|
|
130
|
+
__metadata("design:type", Object)
|
|
131
|
+
], GpPatternRecord.prototype, "gpRecordError", void 0);
|
|
132
|
+
GpPatternRecord = __decorate([
|
|
133
|
+
ProxyCmp({
|
|
134
|
+
defineCustomElementFn: defineGpPatternRecord,
|
|
135
|
+
inputs: ['config', 'heading', 'recordId', 'requestedMode', 'resource', 'undoWindowMs'],
|
|
136
|
+
methods: ['refresh', 'flush', 'getMode']
|
|
137
|
+
}),
|
|
138
|
+
Component({
|
|
139
|
+
selector: 'gp-pattern-record',
|
|
140
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
141
|
+
template: '<ng-content></ng-content>',
|
|
142
|
+
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
143
|
+
inputs: ['config', 'heading', 'recordId', 'requestedMode', { name: 'resource', required: true }, 'undoWindowMs'],
|
|
144
|
+
outputs: ['gpRecordSave', 'gpRecordDelete', 'gpRecordCancel', 'gpRecordDirtyChange', 'gpRecordError'],
|
|
145
|
+
}),
|
|
146
|
+
__metadata("design:paramtypes", [ChangeDetectorRef, ElementRef, NgZone])
|
|
147
|
+
], GpPatternRecord);
|
|
148
|
+
export { GpPatternRecord };
|
|
149
|
+
let GpPatternReferenceInput = class GpPatternReferenceInput {
|
|
150
|
+
constructor(c, r, z) {
|
|
151
|
+
this.z = z;
|
|
152
|
+
this.gpReferenceChange = new EventEmitter();
|
|
153
|
+
c.detach();
|
|
154
|
+
this.el = r.nativeElement;
|
|
155
|
+
}
|
|
156
|
+
};
|
|
157
|
+
__decorate([
|
|
158
|
+
Output(),
|
|
159
|
+
__metadata("design:type", Object)
|
|
160
|
+
], GpPatternReferenceInput.prototype, "gpReferenceChange", void 0);
|
|
161
|
+
GpPatternReferenceInput = __decorate([
|
|
162
|
+
ProxyCmp({
|
|
163
|
+
defineCustomElementFn: defineGpPatternReferenceInput,
|
|
164
|
+
inputs: ['config', 'debounceMs', 'disabled', 'hint', 'label', 'multiple', 'optional', 'perPage', 'value']
|
|
165
|
+
}),
|
|
166
|
+
Component({
|
|
167
|
+
selector: 'gp-pattern-reference-input',
|
|
168
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
169
|
+
template: '<ng-content></ng-content>',
|
|
170
|
+
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
171
|
+
inputs: ['config', 'debounceMs', 'disabled', 'hint', 'label', 'multiple', 'optional', 'perPage', 'value'],
|
|
172
|
+
outputs: ['gpReferenceChange'],
|
|
173
|
+
}),
|
|
174
|
+
__metadata("design:paramtypes", [ChangeDetectorRef, ElementRef, NgZone])
|
|
175
|
+
], GpPatternReferenceInput);
|
|
176
|
+
export { GpPatternReferenceInput };
|
|
177
|
+
let GpPatternWizard = class GpPatternWizard {
|
|
178
|
+
constructor(c, r, z) {
|
|
179
|
+
this.z = z;
|
|
180
|
+
this.gpWizardStepChange = new EventEmitter();
|
|
181
|
+
this.gpWizardComplete = new EventEmitter();
|
|
182
|
+
this.gpWizardError = new EventEmitter();
|
|
183
|
+
this.gpWizardValuesChange = new EventEmitter();
|
|
184
|
+
c.detach();
|
|
185
|
+
this.el = r.nativeElement;
|
|
186
|
+
}
|
|
187
|
+
};
|
|
188
|
+
__decorate([
|
|
189
|
+
Output(),
|
|
190
|
+
__metadata("design:type", Object)
|
|
191
|
+
], GpPatternWizard.prototype, "gpWizardStepChange", void 0);
|
|
192
|
+
__decorate([
|
|
193
|
+
Output(),
|
|
194
|
+
__metadata("design:type", Object)
|
|
195
|
+
], GpPatternWizard.prototype, "gpWizardComplete", void 0);
|
|
196
|
+
__decorate([
|
|
197
|
+
Output(),
|
|
198
|
+
__metadata("design:type", Object)
|
|
199
|
+
], GpPatternWizard.prototype, "gpWizardError", void 0);
|
|
200
|
+
__decorate([
|
|
201
|
+
Output(),
|
|
202
|
+
__metadata("design:type", Object)
|
|
203
|
+
], GpPatternWizard.prototype, "gpWizardValuesChange", void 0);
|
|
204
|
+
GpPatternWizard = __decorate([
|
|
205
|
+
ProxyCmp({
|
|
206
|
+
defineCustomElementFn: defineGpPatternWizard,
|
|
207
|
+
inputs: ['config', 'storageKey', 'undoWindowMs', 'urlPrefix'],
|
|
208
|
+
methods: ['reset', 'setValues', 'next', 'back']
|
|
209
|
+
}),
|
|
210
|
+
Component({
|
|
211
|
+
selector: 'gp-pattern-wizard',
|
|
212
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
213
|
+
template: '<ng-content></ng-content>',
|
|
214
|
+
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
215
|
+
inputs: ['config', 'storageKey', 'undoWindowMs', 'urlPrefix'],
|
|
216
|
+
outputs: ['gpWizardStepChange', 'gpWizardComplete', 'gpWizardError', 'gpWizardValuesChange'],
|
|
217
|
+
}),
|
|
218
|
+
__metadata("design:paramtypes", [ChangeDetectorRef, ElementRef, NgZone])
|
|
219
|
+
], GpPatternWizard);
|
|
220
|
+
export { GpPatternWizard };
|
|
221
|
+
let GpResource = class GpResource {
|
|
222
|
+
constructor(c, r, z) {
|
|
223
|
+
this.z = z;
|
|
224
|
+
c.detach();
|
|
225
|
+
this.el = r.nativeElement;
|
|
226
|
+
}
|
|
227
|
+
};
|
|
228
|
+
GpResource = __decorate([
|
|
229
|
+
ProxyCmp({
|
|
230
|
+
defineCustomElementFn: defineGpResource,
|
|
231
|
+
inputs: ['config', 'icon', 'label', 'name', 'views']
|
|
232
|
+
}),
|
|
233
|
+
Component({
|
|
234
|
+
selector: 'gp-resource',
|
|
235
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
236
|
+
template: '<ng-content></ng-content>',
|
|
237
|
+
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
238
|
+
inputs: ['config', 'icon', 'label', { name: 'name', required: true }, 'views'],
|
|
239
|
+
}),
|
|
240
|
+
__metadata("design:paramtypes", [ChangeDetectorRef, ElementRef, NgZone])
|
|
241
|
+
], GpResource);
|
|
242
|
+
export { GpResource };
|
|
243
|
+
let UdsPatternLoginCard = class UdsPatternLoginCard {
|
|
244
|
+
constructor(c, r, z) {
|
|
245
|
+
this.z = z;
|
|
246
|
+
this.udsLoginSuccess = new EventEmitter();
|
|
247
|
+
this.udsLoginStepChange = new EventEmitter();
|
|
248
|
+
this.udsLoginError = new EventEmitter();
|
|
249
|
+
this.udsLoginAction = new EventEmitter();
|
|
250
|
+
c.detach();
|
|
251
|
+
this.el = r.nativeElement;
|
|
252
|
+
}
|
|
253
|
+
};
|
|
254
|
+
__decorate([
|
|
255
|
+
Output(),
|
|
256
|
+
__metadata("design:type", Object)
|
|
257
|
+
], UdsPatternLoginCard.prototype, "udsLoginSuccess", void 0);
|
|
258
|
+
__decorate([
|
|
259
|
+
Output(),
|
|
260
|
+
__metadata("design:type", Object)
|
|
261
|
+
], UdsPatternLoginCard.prototype, "udsLoginStepChange", void 0);
|
|
262
|
+
__decorate([
|
|
263
|
+
Output(),
|
|
264
|
+
__metadata("design:type", Object)
|
|
265
|
+
], UdsPatternLoginCard.prototype, "udsLoginError", void 0);
|
|
266
|
+
__decorate([
|
|
267
|
+
Output(),
|
|
268
|
+
__metadata("design:type", Object)
|
|
269
|
+
], UdsPatternLoginCard.prototype, "udsLoginAction", void 0);
|
|
270
|
+
UdsPatternLoginCard = __decorate([
|
|
271
|
+
ProxyCmp({
|
|
272
|
+
defineCustomElementFn: defineUdsPatternLoginCard,
|
|
273
|
+
inputs: ['config', 'identifier', 'initialStep', 'otpLength', 'rememberStorageKey', 'showHelpFooter'],
|
|
274
|
+
methods: ['reset']
|
|
275
|
+
}),
|
|
276
|
+
Component({
|
|
277
|
+
selector: 'uds-pattern-login-card',
|
|
278
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
279
|
+
template: '<ng-content></ng-content>',
|
|
280
|
+
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
281
|
+
inputs: ['config', 'identifier', 'initialStep', 'otpLength', 'rememberStorageKey', 'showHelpFooter'],
|
|
282
|
+
outputs: ['udsLoginSuccess', 'udsLoginStepChange', 'udsLoginError', 'udsLoginAction'],
|
|
283
|
+
}),
|
|
284
|
+
__metadata("design:paramtypes", [ChangeDetectorRef, ElementRef, NgZone])
|
|
285
|
+
], UdsPatternLoginCard);
|
|
286
|
+
export { UdsPatternLoginCard };
|
|
287
|
+
let UdsPatternLoginPage = class UdsPatternLoginPage {
|
|
288
|
+
constructor(c, r, z) {
|
|
289
|
+
this.z = z;
|
|
290
|
+
c.detach();
|
|
291
|
+
this.el = r.nativeElement;
|
|
292
|
+
}
|
|
293
|
+
};
|
|
294
|
+
UdsPatternLoginPage = __decorate([
|
|
295
|
+
ProxyCmp({
|
|
296
|
+
defineCustomElementFn: defineUdsPatternLoginPage,
|
|
297
|
+
inputs: ['logoAlt', 'logoHref', 'logoSrc']
|
|
298
|
+
}),
|
|
299
|
+
Component({
|
|
300
|
+
selector: 'uds-pattern-login-page',
|
|
301
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
302
|
+
template: '<ng-content></ng-content>',
|
|
303
|
+
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
304
|
+
inputs: ['logoAlt', 'logoHref', 'logoSrc'],
|
|
305
|
+
}),
|
|
306
|
+
__metadata("design:paramtypes", [ChangeDetectorRef, ElementRef, NgZone])
|
|
307
|
+
], UdsPatternLoginPage);
|
|
308
|
+
export { UdsPatternLoginPage };
|
package/package.json
CHANGED
|
@@ -1,6 +1,42 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@globalpayments-private/gpds-pattern-web-angular",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.1.28",
|
|
4
|
+
"description": "Angular bindings for GPDS pattern library for Web — standalone component wrappers.",
|
|
5
|
+
"license": "UNLICENSED",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/globalpayments-internal/gpds-pattern-web.git",
|
|
9
|
+
"directory": "packages/angular"
|
|
10
|
+
},
|
|
11
|
+
"homepage": "https://github.com/globalpayments-internal/gpds-pattern-web#readme",
|
|
12
|
+
"bugs": {
|
|
13
|
+
"url": "https://github.com/globalpayments-internal/gpds-pattern-web/issues"
|
|
14
|
+
},
|
|
15
|
+
"publishConfig": {
|
|
16
|
+
"access": "public",
|
|
17
|
+
"registry": "https://registry.npmjs.org/"
|
|
18
|
+
},
|
|
19
|
+
"type": "module",
|
|
20
|
+
"sideEffects": false,
|
|
21
|
+
"main": "dist/directives/proxies.js",
|
|
22
|
+
"module": "dist/directives/proxies.js",
|
|
23
|
+
"types": "dist/directives/proxies.d.ts",
|
|
24
|
+
"exports": {
|
|
25
|
+
".": {
|
|
26
|
+
"types": "./dist/directives/proxies.d.ts",
|
|
27
|
+
"import": "./dist/directives/proxies.js"
|
|
28
|
+
},
|
|
29
|
+
"./package.json": "./package.json"
|
|
30
|
+
},
|
|
31
|
+
"files": [
|
|
32
|
+
"dist/"
|
|
33
|
+
],
|
|
34
|
+
"scripts": {
|
|
35
|
+
"build": "tsc -p tsconfig.json",
|
|
36
|
+
"prepack": "npm run build"
|
|
37
|
+
},
|
|
38
|
+
"peerDependencies": {
|
|
39
|
+
"@angular/core": ">=19",
|
|
40
|
+
"@globalpayments-private/gpds-pattern-web": "0.1.28"
|
|
41
|
+
}
|
|
42
|
+
}
|
package/README.md
DELETED