@globalpayments-private/gpds-pattern-web-angular 0.0.0-stage → 0.1.1-dev.g2570187

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.
@@ -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.UdsPatternAdmin | typeof d.UdsPatternList | typeof d.UdsPatternLogin | typeof d.UdsPatternRecordForm | typeof d.UdsPatternRecordShow)[];
@@ -0,0 +1,8 @@
1
+ import * as d from './proxies';
2
+ export const DIRECTIVES = [
3
+ d.UdsPatternAdmin,
4
+ d.UdsPatternList,
5
+ d.UdsPatternLogin,
6
+ d.UdsPatternRecordForm,
7
+ d.UdsPatternRecordShow
8
+ ];
@@ -0,0 +1,93 @@
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 UdsPatternAdmin {
4
+ protected z: NgZone;
5
+ protected el: HTMLUdsPatternAdminElement;
6
+ udsRouteChange: EventEmitter<UdsPatternAdminCustomEvent<IUdsPatternAdminRouteChange>>;
7
+ udsLogin: EventEmitter<UdsPatternAdminCustomEvent<IUdsPatternAdminAdminUser>>;
8
+ udsLogout: EventEmitter<UdsPatternAdminCustomEvent<void>>;
9
+ constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
10
+ }
11
+ import type { UdsPatternAdminCustomEvent } from '@globalpayments-private/gpds-pattern-web/dist/components';
12
+ import type { RouteChange as IUdsPatternAdminRouteChange } from '@globalpayments-private/gpds-pattern-web/dist/components';
13
+ import type { AdminUser as IUdsPatternAdminAdminUser } from '@globalpayments-private/gpds-pattern-web/dist/components';
14
+ export declare interface UdsPatternAdmin extends Components.UdsPatternAdmin {
15
+ /**
16
+ * The route changed. For `dashboard` and `custom` routes, render the page into the default slot.
17
+ */
18
+ udsRouteChange: EventEmitter<UdsPatternAdminCustomEvent<IUdsPatternAdminRouteChange>>;
19
+ /**
20
+ * A user signed in.
21
+ */
22
+ udsLogin: EventEmitter<UdsPatternAdminCustomEvent<IUdsPatternAdminAdminUser>>;
23
+ /**
24
+ * The user signed out.
25
+ */
26
+ udsLogout: EventEmitter<UdsPatternAdminCustomEvent<void>>;
27
+ }
28
+ export declare class UdsPatternList {
29
+ protected z: NgZone;
30
+ protected el: HTMLUdsPatternListElement;
31
+ udsListRowClick: EventEmitter<UdsPatternListCustomEvent<IUdsPatternListRaRecord>>;
32
+ udsListSelectionChange: EventEmitter<UdsPatternListCustomEvent<IUdsPatternListIdentifier[]>>;
33
+ constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
34
+ }
35
+ import type { UdsPatternListCustomEvent } from '@globalpayments-private/gpds-pattern-web/dist/components';
36
+ import type { RaRecord as IUdsPatternListRaRecord } from '@globalpayments-private/gpds-pattern-web/dist/components';
37
+ import type { Identifier as IUdsPatternListIdentifier } from '@globalpayments-private/gpds-pattern-web/dist/components';
38
+ export declare interface UdsPatternList extends Components.UdsPatternList {
39
+ /**
40
+ * A row was activated (always fires, before any navigation).
41
+ */
42
+ udsListRowClick: EventEmitter<UdsPatternListCustomEvent<IUdsPatternListRaRecord>>;
43
+ /**
44
+ * The selected record ids changed.
45
+ */
46
+ udsListSelectionChange: EventEmitter<UdsPatternListCustomEvent<IUdsPatternListIdentifier[]>>;
47
+ }
48
+ export declare class UdsPatternLogin {
49
+ protected z: NgZone;
50
+ protected el: HTMLUdsPatternLoginElement;
51
+ udsLoginSuccess: EventEmitter<UdsPatternLoginCustomEvent<IUdsPatternAdminAdminUser>>;
52
+ constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
53
+ }
54
+ import type { UdsPatternLoginCustomEvent } from '@globalpayments-private/gpds-pattern-web/dist/components';
55
+ import type { AdminUser as IUdsPatternLoginAdminUser } from '@globalpayments-private/gpds-pattern-web/dist/components';
56
+ export declare interface UdsPatternLogin extends Components.UdsPatternLogin {
57
+ /**
58
+ * Signed in: the user the provider returned.
59
+ */
60
+ udsLoginSuccess: EventEmitter<UdsPatternLoginCustomEvent<IUdsPatternLoginAdminUser>>;
61
+ }
62
+ export declare class UdsPatternRecordForm {
63
+ protected z: NgZone;
64
+ protected el: HTMLUdsPatternRecordFormElement;
65
+ udsRecordSave: EventEmitter<UdsPatternRecordFormCustomEvent<IUdsPatternListRaRecord>>;
66
+ udsRecordDelete: EventEmitter<UdsPatternRecordFormCustomEvent<IUdsPatternListIdentifier>>;
67
+ udsRecordCancel: EventEmitter<UdsPatternRecordFormCustomEvent<void>>;
68
+ constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
69
+ }
70
+ import type { UdsPatternRecordFormCustomEvent } from '@globalpayments-private/gpds-pattern-web/dist/components';
71
+ import type { RaRecord as IUdsPatternRecordFormRaRecord } from '@globalpayments-private/gpds-pattern-web/dist/components';
72
+ import type { Identifier as IUdsPatternRecordFormIdentifier } from '@globalpayments-private/gpds-pattern-web/dist/components';
73
+ export declare interface UdsPatternRecordForm extends Components.UdsPatternRecordForm {
74
+ /**
75
+ * Saved: the created or updated record.
76
+ */
77
+ udsRecordSave: EventEmitter<UdsPatternRecordFormCustomEvent<IUdsPatternRecordFormRaRecord>>;
78
+ /**
79
+ * Deleted: the id of the record.
80
+ */
81
+ udsRecordDelete: EventEmitter<UdsPatternRecordFormCustomEvent<IUdsPatternRecordFormIdentifier>>;
82
+ /**
83
+ * The user cancelled.
84
+ */
85
+ udsRecordCancel: EventEmitter<UdsPatternRecordFormCustomEvent<void>>;
86
+ }
87
+ export declare class UdsPatternRecordShow {
88
+ protected z: NgZone;
89
+ protected el: HTMLUdsPatternRecordShowElement;
90
+ constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
91
+ }
92
+ export declare interface UdsPatternRecordShow extends Components.UdsPatternRecordShow {
93
+ }
@@ -0,0 +1,181 @@
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 defineUdsPatternAdmin } from '@globalpayments-private/gpds-pattern-web/dist/components/uds-pattern-admin.js';
15
+ import { defineCustomElement as defineUdsPatternList } from '@globalpayments-private/gpds-pattern-web/dist/components/uds-pattern-list.js';
16
+ import { defineCustomElement as defineUdsPatternLogin } from '@globalpayments-private/gpds-pattern-web/dist/components/uds-pattern-login.js';
17
+ import { defineCustomElement as defineUdsPatternRecordForm } from '@globalpayments-private/gpds-pattern-web/dist/components/uds-pattern-record-form.js';
18
+ import { defineCustomElement as defineUdsPatternRecordShow } from '@globalpayments-private/gpds-pattern-web/dist/components/uds-pattern-record-show.js';
19
+ let UdsPatternAdmin = class UdsPatternAdmin {
20
+ constructor(c, r, z) {
21
+ this.z = z;
22
+ this.udsRouteChange = new EventEmitter();
23
+ this.udsLogin = new EventEmitter();
24
+ this.udsLogout = new EventEmitter();
25
+ c.detach();
26
+ this.el = r.nativeElement;
27
+ }
28
+ };
29
+ __decorate([
30
+ Output(),
31
+ __metadata("design:type", Object)
32
+ ], UdsPatternAdmin.prototype, "udsRouteChange", void 0);
33
+ __decorate([
34
+ Output(),
35
+ __metadata("design:type", Object)
36
+ ], UdsPatternAdmin.prototype, "udsLogin", void 0);
37
+ __decorate([
38
+ Output(),
39
+ __metadata("design:type", Object)
40
+ ], UdsPatternAdmin.prototype, "udsLogout", void 0);
41
+ UdsPatternAdmin = __decorate([
42
+ ProxyCmp({
43
+ defineCustomElementFn: defineUdsPatternAdmin,
44
+ inputs: ['appTitle', 'config', 'dashboard', 'defaultTheme', 'loginHeroImage', 'notifications', 'theme']
45
+ }),
46
+ Component({
47
+ selector: 'uds-pattern-admin',
48
+ changeDetection: ChangeDetectionStrategy.OnPush,
49
+ template: '<ng-content></ng-content>',
50
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
51
+ inputs: ['appTitle', 'config', 'dashboard', 'defaultTheme', 'loginHeroImage', 'notifications', 'theme'],
52
+ outputs: ['udsRouteChange', 'udsLogin', 'udsLogout'],
53
+ }),
54
+ __metadata("design:paramtypes", [ChangeDetectorRef, ElementRef, NgZone])
55
+ ], UdsPatternAdmin);
56
+ export { UdsPatternAdmin };
57
+ let UdsPatternList = class UdsPatternList {
58
+ constructor(c, r, z) {
59
+ this.z = z;
60
+ this.udsListRowClick = new EventEmitter();
61
+ this.udsListSelectionChange = new EventEmitter();
62
+ c.detach();
63
+ this.el = r.nativeElement;
64
+ }
65
+ };
66
+ __decorate([
67
+ Output(),
68
+ __metadata("design:type", Object)
69
+ ], UdsPatternList.prototype, "udsListRowClick", void 0);
70
+ __decorate([
71
+ Output(),
72
+ __metadata("design:type", Object)
73
+ ], UdsPatternList.prototype, "udsListSelectionChange", void 0);
74
+ UdsPatternList = __decorate([
75
+ ProxyCmp({
76
+ defineCustomElementFn: defineUdsPatternList,
77
+ inputs: ['config', 'description', 'embedded', 'heading', 'perPage', 'resource', 'rowClick'],
78
+ methods: ['refresh']
79
+ }),
80
+ Component({
81
+ selector: 'uds-pattern-list',
82
+ changeDetection: ChangeDetectionStrategy.OnPush,
83
+ template: '<ng-content></ng-content>',
84
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
85
+ inputs: ['config', 'description', 'embedded', 'heading', 'perPage', { name: 'resource', required: true }, 'rowClick'],
86
+ outputs: ['udsListRowClick', 'udsListSelectionChange'],
87
+ }),
88
+ __metadata("design:paramtypes", [ChangeDetectorRef, ElementRef, NgZone])
89
+ ], UdsPatternList);
90
+ export { UdsPatternList };
91
+ let UdsPatternLogin = class UdsPatternLogin {
92
+ constructor(c, r, z) {
93
+ this.z = z;
94
+ this.udsLoginSuccess = new EventEmitter();
95
+ c.detach();
96
+ this.el = r.nativeElement;
97
+ }
98
+ };
99
+ __decorate([
100
+ Output(),
101
+ __metadata("design:type", Object)
102
+ ], UdsPatternLogin.prototype, "udsLoginSuccess", void 0);
103
+ UdsPatternLogin = __decorate([
104
+ ProxyCmp({
105
+ defineCustomElementFn: defineUdsPatternLogin,
106
+ inputs: ['config', 'heroImage'],
107
+ methods: ['reset']
108
+ }),
109
+ Component({
110
+ selector: 'uds-pattern-login',
111
+ changeDetection: ChangeDetectionStrategy.OnPush,
112
+ template: '<ng-content></ng-content>',
113
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
114
+ inputs: ['config', 'heroImage'],
115
+ outputs: ['udsLoginSuccess'],
116
+ }),
117
+ __metadata("design:paramtypes", [ChangeDetectorRef, ElementRef, NgZone])
118
+ ], UdsPatternLogin);
119
+ export { UdsPatternLogin };
120
+ let UdsPatternRecordForm = class UdsPatternRecordForm {
121
+ constructor(c, r, z) {
122
+ this.z = z;
123
+ this.udsRecordSave = new EventEmitter();
124
+ this.udsRecordDelete = new EventEmitter();
125
+ this.udsRecordCancel = new EventEmitter();
126
+ c.detach();
127
+ this.el = r.nativeElement;
128
+ }
129
+ };
130
+ __decorate([
131
+ Output(),
132
+ __metadata("design:type", Object)
133
+ ], UdsPatternRecordForm.prototype, "udsRecordSave", void 0);
134
+ __decorate([
135
+ Output(),
136
+ __metadata("design:type", Object)
137
+ ], UdsPatternRecordForm.prototype, "udsRecordDelete", void 0);
138
+ __decorate([
139
+ Output(),
140
+ __metadata("design:type", Object)
141
+ ], UdsPatternRecordForm.prototype, "udsRecordCancel", void 0);
142
+ UdsPatternRecordForm = __decorate([
143
+ ProxyCmp({
144
+ defineCustomElementFn: defineUdsPatternRecordForm,
145
+ inputs: ['config', 'mode', 'recordId', 'redirect', 'resource'],
146
+ methods: ['refresh']
147
+ }),
148
+ Component({
149
+ selector: 'uds-pattern-record-form',
150
+ changeDetection: ChangeDetectionStrategy.OnPush,
151
+ template: '<ng-content></ng-content>',
152
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
153
+ inputs: ['config', 'mode', 'recordId', 'redirect', { name: 'resource', required: true }],
154
+ outputs: ['udsRecordSave', 'udsRecordDelete', 'udsRecordCancel'],
155
+ }),
156
+ __metadata("design:paramtypes", [ChangeDetectorRef, ElementRef, NgZone])
157
+ ], UdsPatternRecordForm);
158
+ export { UdsPatternRecordForm };
159
+ let UdsPatternRecordShow = class UdsPatternRecordShow {
160
+ constructor(c, r, z) {
161
+ this.z = z;
162
+ c.detach();
163
+ this.el = r.nativeElement;
164
+ }
165
+ };
166
+ UdsPatternRecordShow = __decorate([
167
+ ProxyCmp({
168
+ defineCustomElementFn: defineUdsPatternRecordShow,
169
+ inputs: ['config', 'recordId', 'resource'],
170
+ methods: ['refresh']
171
+ }),
172
+ Component({
173
+ selector: 'uds-pattern-record-show',
174
+ changeDetection: ChangeDetectionStrategy.OnPush,
175
+ template: '<ng-content></ng-content>',
176
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
177
+ inputs: ['config', 'recordId', { name: 'resource', required: true }],
178
+ }),
179
+ __metadata("design:paramtypes", [ChangeDetectorRef, ElementRef, NgZone])
180
+ ], UdsPatternRecordShow);
181
+ export { UdsPatternRecordShow };
package/package.json CHANGED
@@ -1,6 +1,42 @@
1
1
  {
2
2
  "name": "@globalpayments-private/gpds-pattern-web-angular",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.1.1-dev.g2570187",
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": "node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\" && tsc -p tsconfig.json",
36
+ "prepack": "npm run build"
37
+ },
38
+ "peerDependencies": {
39
+ "@angular/core": ">=19",
40
+ "@globalpayments-private/gpds-pattern-web": "0.1.1-dev.g2570187"
41
+ }
42
+ }
package/README.md DELETED
@@ -1,3 +0,0 @@
1
- # Temporary Holding Version
2
-
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.