@heartlandone/vega-angular 2.85.0 → 2.87.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/README.md +2 -2
- package/dist/esm2020/globalpayments-vega-angular.mjs +5 -0
- package/dist/esm2020/lib/components-module.mjs +1 -1
- package/dist/esm2020/lib/stencil-generated/angular-component-lib/utils.mjs +1 -1
- package/dist/esm2020/lib/stencil-generated/components.mjs +8 -8
- package/dist/esm2020/lib/stencil-generated/value-accessor.mjs +1 -1
- package/dist/esm2020/testing/globalpayments-vega-angular-testing.mjs +5 -0
- package/dist/esm2020/testing/index.mjs +2 -2
- package/dist/fesm2015/{heartlandone-vega-angular-testing.mjs → globalpayments-vega-angular-testing.mjs} +2 -2
- package/dist/fesm2015/globalpayments-vega-angular-testing.mjs.map +1 -0
- package/dist/fesm2015/{heartlandone-vega-angular.mjs → globalpayments-vega-angular.mjs} +8 -8
- package/dist/fesm2015/globalpayments-vega-angular.mjs.map +1 -0
- package/dist/fesm2020/{heartlandone-vega-angular-testing.mjs → globalpayments-vega-angular-testing.mjs} +2 -2
- package/dist/fesm2020/globalpayments-vega-angular-testing.mjs.map +1 -0
- package/dist/fesm2020/{heartlandone-vega-angular.mjs → globalpayments-vega-angular.mjs} +8 -8
- package/dist/fesm2020/globalpayments-vega-angular.mjs.map +1 -0
- package/dist/lib/stencil-generated/components.d.ts +11 -2
- package/dist/package.json +22 -22
- package/dist/testing/package.json +7 -7
- package/ng-package.json +1 -1
- package/package.json +9 -9
- package/src/lib/components-module.ts +2 -2
- package/src/lib/stencil-generated/angular-component-lib/utils.ts +1 -1
- package/src/lib/stencil-generated/components.ts +51 -42
- package/src/lib/stencil-generated/value-accessor.ts +1 -1
- package/src/scripts/stencil-post-build-script.js +3 -2
- package/testing/index.ts +3 -3
- package/testing/ng-package.json +1 -1
- package/dist/esm2020/heartlandone-vega-angular.mjs +0 -5
- package/dist/esm2020/testing/heartlandone-vega-angular-testing.mjs +0 -5
- package/dist/fesm2015/heartlandone-vega-angular-testing.mjs.map +0 -1
- package/dist/fesm2015/heartlandone-vega-angular.mjs.map +0 -1
- package/dist/fesm2020/heartlandone-vega-angular-testing.mjs.map +0 -1
- package/dist/fesm2020/heartlandone-vega-angular.mjs.map +0 -1
- /package/dist/{heartlandone-vega-angular.d.ts → globalpayments-vega-angular.d.ts} +0 -0
- /package/dist/testing/{heartlandone-vega-angular-testing.d.ts → globalpayments-vega-angular-testing.d.ts} +0 -0
|
@@ -4,6 +4,7 @@ import type { VegaBannerActionButtonType as IVegaBannerVegaBannerActionButtonTyp
|
|
|
4
4
|
import type { VegaBreadcrumbItemType as IVegaBreadcrumbVegaBreadcrumbItemType } from '@heartlandone/vega/dist/types/components/vega-breadcrumb/types';
|
|
5
5
|
import type { VegaCalendarChangeEventType as IVegaCalendarVegaCalendarChangeEventType } from '@heartlandone/vega/dist/types/components/vega-calendar/types';
|
|
6
6
|
import type { VegaCalendarEventClickInfo as IVegaCalendarVegaCalendarEventClickInfo } from '@heartlandone/vega/dist/types/components/vega-calendar/types';
|
|
7
|
+
import type { VegaCalendarEventEditInfo as IVegaCalendarVegaCalendarEventEditInfo } from '@heartlandone/vega/dist/types/components/vega-calendar/types';
|
|
7
8
|
import type { VegaCalendarDateClickInfo as IVegaCalendarVegaCalendarDateClickInfo } from '@heartlandone/vega/dist/types/components/vega-calendar/types';
|
|
8
9
|
import type { VegaCodeBlockValue as IVegaCodeBlockVegaCodeBlockValue } from '@heartlandone/vega/dist/types/components/vega-code-block/types';
|
|
9
10
|
import type { DatePickerMonthYearTypes as IVegaDatePickerDatePickerMonthYearTypes } from '@heartlandone/vega/dist/types/components/vega-date-picker/types';
|
|
@@ -285,6 +286,14 @@ export declare interface VegaCalendar extends Components.VegaCalendar {
|
|
|
285
286
|
* An event emitter notifying that a component event item is clicked. @eventSemantics namespace:native,@vegaVersion 2.14.0
|
|
286
287
|
*/
|
|
287
288
|
eventClick: EventEmitter<CustomEvent<IVegaCalendarVegaCalendarEventClickInfo>>;
|
|
289
|
+
/**
|
|
290
|
+
* An event emitter notifying that a calendar event edit action is triggered from the event preview popover. @vegaVersion 2.87.0-beta.1
|
|
291
|
+
*/
|
|
292
|
+
vegaEventEdit: EventEmitter<CustomEvent<IVegaCalendarVegaCalendarEventEditInfo>>;
|
|
293
|
+
/**
|
|
294
|
+
* An event emitter notifying that a calendar event edit action is triggered from the event preview popover. @eventSemantics namespace:native,@vegaVersion 2.87.0-beta.1
|
|
295
|
+
*/
|
|
296
|
+
eventEdit: EventEmitter<CustomEvent<IVegaCalendarVegaCalendarEventEditInfo>>;
|
|
288
297
|
/**
|
|
289
298
|
* An event emitter notifying that a calendar date item has been double-clicked. The event will not be triggered if `enableDataClick` is set to true to prevent conflicts. @vegaVersion 2.17.0
|
|
290
299
|
*/
|
|
@@ -315,7 +324,7 @@ export declare class VegaCalendar {
|
|
|
315
324
|
protected el: HTMLElement;
|
|
316
325
|
constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
|
|
317
326
|
static ɵfac: i0.ɵɵFactoryDeclaration<VegaCalendar, never>;
|
|
318
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<VegaCalendar, "vega-calendar", never, { "enableDateClick": "enableDateClick"; "enabledEventPreview": "enabledEventPreview"; "events": "events"; "isDateDisabled": "isDateDisabled"; "moreActionDropdownProps": "moreActionDropdownProps"; "showEventColorBar": "showEventColorBar"; "showSwitchView": "showSwitchView"; "showWeekends": "showWeekends"; "timeFormat": "timeFormat"; "timezone": "timezone"; "viewMode": "viewMode"; }, {}, never, ["*"]>;
|
|
327
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<VegaCalendar, "vega-calendar", never, { "enableDateClick": "enableDateClick"; "enabledEventPreview": "enabledEventPreview"; "eventEditable": "eventEditable"; "events": "events"; "getEventPreviewActions": "getEventPreviewActions"; "isDateDisabled": "isDateDisabled"; "moreActionDropdownProps": "moreActionDropdownProps"; "showEventColorBar": "showEventColorBar"; "showSwitchView": "showSwitchView"; "showWeekends": "showWeekends"; "timeFormat": "timeFormat"; "timezone": "timezone"; "viewMode": "viewMode"; }, {}, never, ["*"]>;
|
|
319
328
|
}
|
|
320
329
|
export declare interface VegaCalendarEvent extends Components.VegaCalendarEvent {
|
|
321
330
|
}
|
|
@@ -641,7 +650,7 @@ export declare class VegaDatePickerCalendar {
|
|
|
641
650
|
protected el: HTMLElement;
|
|
642
651
|
constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
|
|
643
652
|
static ɵfac: i0.ɵɵFactoryDeclaration<VegaDatePickerCalendar, never>;
|
|
644
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<VegaDatePickerCalendar, "vega-date-picker-calendar", never, { "clearButton": "clearButton"; "dateIndicator": "dateIndicator"; "dualMonths": "dualMonths"; "format": "format"; "isDateDisabled": "isDateDisabled"; "maxDate": "maxDate"; "minDate": "minDate"; "mode": "mode"; "selection": "selection"; "showYearMonthDropdowns": "showYearMonthDropdowns"; "size": "size"; "staticHeight": "staticHeight"; "timezone": "timezone"; "yearMonthDropdownProps": "yearMonthDropdownProps"; }, {}, never, ["*"]>;
|
|
653
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<VegaDatePickerCalendar, "vega-date-picker-calendar", never, { "clearButton": "clearButton"; "dateIndicator": "dateIndicator"; "dualMonths": "dualMonths"; "fillContainer": "fillContainer"; "format": "format"; "isDateDisabled": "isDateDisabled"; "maxDate": "maxDate"; "minDate": "minDate"; "mode": "mode"; "selection": "selection"; "showYearMonthDropdowns": "showYearMonthDropdowns"; "size": "size"; "staticHeight": "staticHeight"; "timezone": "timezone"; "yearMonthDropdownProps": "yearMonthDropdownProps"; }, {}, never, ["*"]>;
|
|
645
654
|
}
|
|
646
655
|
export declare interface VegaDialog extends Components.VegaDialog {
|
|
647
656
|
}
|
package/dist/package.json
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "@
|
|
2
|
+
"name": "@globalpayments/vega-angular",
|
|
3
3
|
"sideEffects": false,
|
|
4
|
-
"version": "2.
|
|
5
|
-
"description": "Angular specific wrapper for @
|
|
4
|
+
"version": "2.86.0",
|
|
5
|
+
"description": "Angular specific wrapper for @globalpayments/vega",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"peerDependencies": {
|
|
8
8
|
"@angular/common": ">=12.0.0",
|
|
9
9
|
"@angular/core": ">=12.0.0"
|
|
10
10
|
},
|
|
11
|
-
"module": "fesm2015/
|
|
12
|
-
"es2020": "fesm2020/
|
|
13
|
-
"esm2020": "esm2020/
|
|
14
|
-
"fesm2020": "fesm2020/
|
|
15
|
-
"fesm2015": "fesm2015/
|
|
16
|
-
"typings": "
|
|
11
|
+
"module": "fesm2015/globalpayments-vega-angular.mjs",
|
|
12
|
+
"es2020": "fesm2020/globalpayments-vega-angular.mjs",
|
|
13
|
+
"esm2020": "esm2020/globalpayments-vega-angular.mjs",
|
|
14
|
+
"fesm2020": "fesm2020/globalpayments-vega-angular.mjs",
|
|
15
|
+
"fesm2015": "fesm2015/globalpayments-vega-angular.mjs",
|
|
16
|
+
"typings": "globalpayments-vega-angular.d.ts",
|
|
17
17
|
"repository": {
|
|
18
18
|
"type": "git",
|
|
19
19
|
"url": "https://github.com/heartlandpayments/Vega/tree/main/vega-angular-workspace/projects/vega-angular"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@
|
|
22
|
+
"@globalpayments/vega": "2.86.0",
|
|
23
23
|
"tslib": "^2.3.0",
|
|
24
24
|
"@juggle/resize-observer": "^3.4.0"
|
|
25
25
|
},
|
|
@@ -31,20 +31,20 @@
|
|
|
31
31
|
"default": "./package.json"
|
|
32
32
|
},
|
|
33
33
|
".": {
|
|
34
|
-
"types": "./
|
|
35
|
-
"esm2020": "./esm2020/
|
|
36
|
-
"es2020": "./fesm2020/
|
|
37
|
-
"es2015": "./fesm2015/
|
|
38
|
-
"node": "./fesm2015/
|
|
39
|
-
"default": "./fesm2020/
|
|
34
|
+
"types": "./globalpayments-vega-angular.d.ts",
|
|
35
|
+
"esm2020": "./esm2020/globalpayments-vega-angular.mjs",
|
|
36
|
+
"es2020": "./fesm2020/globalpayments-vega-angular.mjs",
|
|
37
|
+
"es2015": "./fesm2015/globalpayments-vega-angular.mjs",
|
|
38
|
+
"node": "./fesm2015/globalpayments-vega-angular.mjs",
|
|
39
|
+
"default": "./fesm2020/globalpayments-vega-angular.mjs"
|
|
40
40
|
},
|
|
41
41
|
"./testing": {
|
|
42
|
-
"types": "./testing/
|
|
43
|
-
"esm2020": "./esm2020/testing/
|
|
44
|
-
"es2020": "./fesm2020/
|
|
45
|
-
"es2015": "./fesm2015/
|
|
46
|
-
"node": "./fesm2015/
|
|
47
|
-
"default": "./fesm2020/
|
|
42
|
+
"types": "./testing/globalpayments-vega-angular-testing.d.ts",
|
|
43
|
+
"esm2020": "./esm2020/testing/globalpayments-vega-angular-testing.mjs",
|
|
44
|
+
"es2020": "./fesm2020/globalpayments-vega-angular-testing.mjs",
|
|
45
|
+
"es2015": "./fesm2015/globalpayments-vega-angular-testing.mjs",
|
|
46
|
+
"node": "./fesm2015/globalpayments-vega-angular-testing.mjs",
|
|
47
|
+
"default": "./fesm2020/globalpayments-vega-angular-testing.mjs"
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
50
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
|
-
"module": "../fesm2015/
|
|
3
|
-
"es2020": "../fesm2020/
|
|
4
|
-
"esm2020": "../esm2020/testing/
|
|
5
|
-
"fesm2020": "../fesm2020/
|
|
6
|
-
"fesm2015": "../fesm2015/
|
|
7
|
-
"typings": "
|
|
2
|
+
"module": "../fesm2015/globalpayments-vega-angular-testing.mjs",
|
|
3
|
+
"es2020": "../fesm2020/globalpayments-vega-angular-testing.mjs",
|
|
4
|
+
"esm2020": "../esm2020/testing/globalpayments-vega-angular-testing.mjs",
|
|
5
|
+
"fesm2020": "../fesm2020/globalpayments-vega-angular-testing.mjs",
|
|
6
|
+
"fesm2015": "../fesm2015/globalpayments-vega-angular-testing.mjs",
|
|
7
|
+
"typings": "globalpayments-vega-angular-testing.d.ts",
|
|
8
8
|
"sideEffects": false,
|
|
9
|
-
"name": "@
|
|
9
|
+
"name": "@globalpayments/vega-angular/testing"
|
|
10
10
|
}
|
package/ng-package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@heartlandone/vega-angular",
|
|
3
3
|
"sideEffects": false,
|
|
4
|
-
"version": "2.
|
|
5
|
-
"description": "Angular specific wrapper for @
|
|
4
|
+
"version": "2.87.0-beta.1",
|
|
5
|
+
"description": "Angular specific wrapper for @globalpayments/vega",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"peerDependencies": {
|
|
8
8
|
"@angular/common": ">=12.0.0",
|
|
9
9
|
"@angular/core": ">=12.0.0"
|
|
10
10
|
},
|
|
11
|
-
"module": "./dist/fesm2015/
|
|
12
|
-
"es2020": "./dist/fesm2020/
|
|
13
|
-
"esm2020": "./dist/esm2020/
|
|
14
|
-
"fesm2020": "./dist/fesm2020/
|
|
15
|
-
"fesm2015": "./dist/fesm2015/
|
|
16
|
-
"typings": "./dist/
|
|
11
|
+
"module": "./dist/fesm2015/globalpayments-vega-angular.mjs",
|
|
12
|
+
"es2020": "./dist/fesm2020/globalpayments-vega-angular.mjs",
|
|
13
|
+
"esm2020": "./dist/esm2020/globalpayments-vega-angular.mjs",
|
|
14
|
+
"fesm2020": "./dist/fesm2020/globalpayments-vega-angular.mjs",
|
|
15
|
+
"fesm2015": "./dist/fesm2015/globalpayments-vega-angular.mjs",
|
|
16
|
+
"typings": "./dist/globalpayments-vega-angular.d.ts",
|
|
17
17
|
"scripts": {
|
|
18
18
|
"stencil-postbuild": "node ./src/scripts/stencil-post-build-script.js",
|
|
19
19
|
"release": "../../node_modules/@angular/cli/bin/ng.js build vega-angular",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"url": "https://github.com/heartlandpayments/Vega/tree/main/vega-angular-workspace/projects/vega-angular"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@heartlandone/vega": "2.
|
|
30
|
+
"@heartlandone/vega": "2.87.0-beta.1",
|
|
31
31
|
"tslib": "^2.3.0",
|
|
32
32
|
"@juggle/resize-observer": "^3.4.0"
|
|
33
33
|
},
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { NgModule } from '@angular/core';
|
|
2
|
-
import { defineCustomElements } from '@
|
|
2
|
+
import { defineCustomElements } from '@globalpayments/vega/loader';
|
|
3
3
|
import VegaComponents from './stencil-generated/components';
|
|
4
4
|
import { TextValueAccessor } from './stencil-generated/text-value-accessor';
|
|
5
5
|
import { ValueAccessor } from './stencil-generated/value-accessor';
|
|
6
6
|
import { ResizeObserver as VegaResizeObserver } from '@juggle/resize-observer';
|
|
7
|
-
import { FeatureFlag, VegaEnvManager, FrameworkEnum } from '@
|
|
7
|
+
import { FeatureFlag, VegaEnvManager, FrameworkEnum } from '@globalpayments/vega';
|
|
8
8
|
@NgModule({
|
|
9
9
|
declarations: [...VegaComponents, TextValueAccessor, ValueAccessor],
|
|
10
10
|
imports: [],
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, EventEmitter, NgZone } from '@angular/core';
|
|
4
4
|
import { ProxyCmp, proxyOutputs } from './angular-component-lib/utils';
|
|
5
5
|
|
|
6
|
-
import { Components } from '@
|
|
6
|
+
import { Components } from '@globalpayments/vega';
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -149,7 +149,7 @@ export class VegaBackdrop {
|
|
|
149
149
|
}
|
|
150
150
|
}
|
|
151
151
|
|
|
152
|
-
import type { VegaBannerActionButtonType as IVegaBannerVegaBannerActionButtonType } from '@
|
|
152
|
+
import type { VegaBannerActionButtonType as IVegaBannerVegaBannerActionButtonType } from '@globalpayments/vega/dist/types/components/vega-banner/types';
|
|
153
153
|
export declare interface VegaBanner extends Components.VegaBanner {
|
|
154
154
|
/**
|
|
155
155
|
* An event emitter notifying the banner close event. @vegaVersion 1.13.0
|
|
@@ -253,7 +253,7 @@ export class VegaBrandLogo {
|
|
|
253
253
|
}
|
|
254
254
|
}
|
|
255
255
|
|
|
256
|
-
import type { VegaBreadcrumbItemType as IVegaBreadcrumbVegaBreadcrumbItemType } from '@
|
|
256
|
+
import type { VegaBreadcrumbItemType as IVegaBreadcrumbVegaBreadcrumbItemType } from '@globalpayments/vega/dist/types/components/vega-breadcrumb/types';
|
|
257
257
|
export declare interface VegaBreadcrumb extends Components.VegaBreadcrumb {
|
|
258
258
|
/**
|
|
259
259
|
* An event emitter notifying that a breadcrumb item has been clicked. @vegaVersion 1.41.0
|
|
@@ -434,9 +434,10 @@ export class VegaButtonLink {
|
|
|
434
434
|
}
|
|
435
435
|
}
|
|
436
436
|
|
|
437
|
-
import type { VegaCalendarChangeEventType as IVegaCalendarVegaCalendarChangeEventType } from '@
|
|
438
|
-
import type { VegaCalendarEventClickInfo as IVegaCalendarVegaCalendarEventClickInfo } from '@
|
|
439
|
-
import type {
|
|
437
|
+
import type { VegaCalendarChangeEventType as IVegaCalendarVegaCalendarChangeEventType } from '@globalpayments/vega/dist/types/components/vega-calendar/types';
|
|
438
|
+
import type { VegaCalendarEventClickInfo as IVegaCalendarVegaCalendarEventClickInfo } from '@globalpayments/vega/dist/types/components/vega-calendar/types';
|
|
439
|
+
import type { VegaCalendarEventEditInfo as IVegaCalendarVegaCalendarEventEditInfo } from '@globalpayments/vega/dist/types/components/vega-calendar/types';
|
|
440
|
+
import type { VegaCalendarDateClickInfo as IVegaCalendarVegaCalendarDateClickInfo } from '@globalpayments/vega/dist/types/components/vega-calendar/types';
|
|
440
441
|
export declare interface VegaCalendar extends Components.VegaCalendar {
|
|
441
442
|
/**
|
|
442
443
|
* An event emitter notifying the component view content change after a switch panel click. @vegaVersion 2.14.0
|
|
@@ -454,6 +455,14 @@ export declare interface VegaCalendar extends Components.VegaCalendar {
|
|
|
454
455
|
* An event emitter notifying that a component event item is clicked. @eventSemantics namespace:native,@vegaVersion 2.14.0
|
|
455
456
|
*/
|
|
456
457
|
eventClick: EventEmitter<CustomEvent<IVegaCalendarVegaCalendarEventClickInfo>>;
|
|
458
|
+
/**
|
|
459
|
+
* An event emitter notifying that a calendar event edit action is triggered from the event preview popover. @vegaVersion 2.87.0-beta.1
|
|
460
|
+
*/
|
|
461
|
+
vegaEventEdit: EventEmitter<CustomEvent<IVegaCalendarVegaCalendarEventEditInfo>>;
|
|
462
|
+
/**
|
|
463
|
+
* An event emitter notifying that a calendar event edit action is triggered from the event preview popover. @eventSemantics namespace:native,@vegaVersion 2.87.0-beta.1
|
|
464
|
+
*/
|
|
465
|
+
eventEdit: EventEmitter<CustomEvent<IVegaCalendarVegaCalendarEventEditInfo>>;
|
|
457
466
|
/**
|
|
458
467
|
* An event emitter notifying that a calendar date item has been double-clicked. The event will not be triggered if `enableDataClick` is set to true to prevent conflicts. @vegaVersion 2.17.0
|
|
459
468
|
*/
|
|
@@ -483,20 +492,20 @@ export declare interface VegaCalendar extends Components.VegaCalendar {
|
|
|
483
492
|
|
|
484
493
|
@ProxyCmp({
|
|
485
494
|
defineCustomElementFn: undefined,
|
|
486
|
-
inputs: ['enableDateClick', 'enabledEventPreview', 'events', 'isDateDisabled', 'moreActionDropdownProps', 'showEventColorBar', 'showSwitchView', 'showWeekends', 'timeFormat', 'timezone', 'viewMode']
|
|
495
|
+
inputs: ['enableDateClick', 'enabledEventPreview', 'eventEditable', 'events', 'getEventPreviewActions', 'isDateDisabled', 'moreActionDropdownProps', 'showEventColorBar', 'showSwitchView', 'showWeekends', 'timeFormat', 'timezone', 'viewMode']
|
|
487
496
|
})
|
|
488
497
|
@Component({
|
|
489
498
|
selector: 'vega-calendar',
|
|
490
499
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
491
500
|
template: '<ng-content></ng-content>',
|
|
492
|
-
inputs: ['enableDateClick', 'enabledEventPreview', 'events', 'isDateDisabled', 'moreActionDropdownProps', 'showEventColorBar', 'showSwitchView', 'showWeekends', 'timeFormat', 'timezone', 'viewMode']
|
|
501
|
+
inputs: ['enableDateClick', 'enabledEventPreview', 'eventEditable', 'events', 'getEventPreviewActions', 'isDateDisabled', 'moreActionDropdownProps', 'showEventColorBar', 'showSwitchView', 'showWeekends', 'timeFormat', 'timezone', 'viewMode']
|
|
493
502
|
})
|
|
494
503
|
export class VegaCalendar {
|
|
495
504
|
protected el: HTMLElement;
|
|
496
505
|
constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {
|
|
497
506
|
c.detach();
|
|
498
507
|
this.el = r.nativeElement;
|
|
499
|
-
proxyOutputs(this, this.el, ['vegaChange', 'change', 'vegaEventClick', 'eventClick', 'vegaDateDblClick', 'dateDblClick', 'vegaDateClick', 'dateClick', 'vegaMoreActionClick', 'moreActionClick']);
|
|
508
|
+
proxyOutputs(this, this.el, ['vegaChange', 'change', 'vegaEventClick', 'eventClick', 'vegaEventEdit', 'eventEdit', 'vegaDateDblClick', 'dateDblClick', 'vegaDateClick', 'dateClick', 'vegaMoreActionClick', 'moreActionClick']);
|
|
500
509
|
}
|
|
501
510
|
}
|
|
502
511
|
|
|
@@ -734,7 +743,7 @@ export class VegaChip {
|
|
|
734
743
|
}
|
|
735
744
|
}
|
|
736
745
|
|
|
737
|
-
import type { VegaCodeBlockValue as IVegaCodeBlockVegaCodeBlockValue } from '@
|
|
746
|
+
import type { VegaCodeBlockValue as IVegaCodeBlockVegaCodeBlockValue } from '@globalpayments/vega/dist/types/components/vega-code-block/types';
|
|
738
747
|
export declare interface VegaCodeBlock extends Components.VegaCodeBlock {
|
|
739
748
|
/**
|
|
740
749
|
* An event emitter notifying a value change. @vegaVersion 2.50.0
|
|
@@ -957,7 +966,7 @@ export class VegaCounterBadge {
|
|
|
957
966
|
}
|
|
958
967
|
}
|
|
959
968
|
|
|
960
|
-
import type { DatePickerMonthYearTypes as IVegaDatePickerDatePickerMonthYearTypes } from '@
|
|
969
|
+
import type { DatePickerMonthYearTypes as IVegaDatePickerDatePickerMonthYearTypes } from '@globalpayments/vega/dist/types/components/vega-date-picker/types';
|
|
961
970
|
export declare interface VegaDatePicker extends Components.VegaDatePicker {
|
|
962
971
|
/**
|
|
963
972
|
* An event emitter notifying the change of the value in the date picker,
|
|
@@ -1001,7 +1010,7 @@ export class VegaDatePicker {
|
|
|
1001
1010
|
}
|
|
1002
1011
|
}
|
|
1003
1012
|
|
|
1004
|
-
import type { DatePickerMonthYearTypes as IVegaDatePickerCalendarDatePickerMonthYearTypes } from '@
|
|
1013
|
+
import type { DatePickerMonthYearTypes as IVegaDatePickerCalendarDatePickerMonthYearTypes } from '@globalpayments/vega/dist/types/components/vega-date-picker/types';
|
|
1005
1014
|
export declare interface VegaDatePickerCalendar extends Components.VegaDatePickerCalendar {
|
|
1006
1015
|
/**
|
|
1007
1016
|
* An event emitter notifying the change of the value in the date picker,
|
|
@@ -1037,14 +1046,14 @@ export declare interface VegaDatePickerCalendar extends Components.VegaDatePicke
|
|
|
1037
1046
|
|
|
1038
1047
|
@ProxyCmp({
|
|
1039
1048
|
defineCustomElementFn: undefined,
|
|
1040
|
-
inputs: ['clearButton', 'dateIndicator', 'dualMonths', 'format', 'isDateDisabled', 'maxDate', 'minDate', 'mode', 'selection', 'showYearMonthDropdowns', 'size', 'staticHeight', 'timezone', 'yearMonthDropdownProps'],
|
|
1049
|
+
inputs: ['clearButton', 'dateIndicator', 'dualMonths', 'fillContainer', 'format', 'isDateDisabled', 'maxDate', 'minDate', 'mode', 'selection', 'showYearMonthDropdowns', 'size', 'staticHeight', 'timezone', 'yearMonthDropdownProps'],
|
|
1041
1050
|
methods: ['reset', 'triggerRepick']
|
|
1042
1051
|
})
|
|
1043
1052
|
@Component({
|
|
1044
1053
|
selector: 'vega-date-picker-calendar',
|
|
1045
1054
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1046
1055
|
template: '<ng-content></ng-content>',
|
|
1047
|
-
inputs: ['clearButton', 'dateIndicator', 'dualMonths', 'format', 'isDateDisabled', 'maxDate', 'minDate', 'mode', 'selection', 'showYearMonthDropdowns', 'size', 'staticHeight', 'timezone', 'yearMonthDropdownProps']
|
|
1056
|
+
inputs: ['clearButton', 'dateIndicator', 'dualMonths', 'fillContainer', 'format', 'isDateDisabled', 'maxDate', 'minDate', 'mode', 'selection', 'showYearMonthDropdowns', 'size', 'staticHeight', 'timezone', 'yearMonthDropdownProps']
|
|
1048
1057
|
})
|
|
1049
1058
|
export class VegaDatePickerCalendar {
|
|
1050
1059
|
protected el: HTMLElement;
|
|
@@ -1097,7 +1106,7 @@ export class VegaDivider {
|
|
|
1097
1106
|
}
|
|
1098
1107
|
}
|
|
1099
1108
|
|
|
1100
|
-
import type { VegaDropdownSearchTriggerEventDetail as IVegaDropdownVegaDropdownSearchTriggerEventDetail } from '@
|
|
1109
|
+
import type { VegaDropdownSearchTriggerEventDetail as IVegaDropdownVegaDropdownSearchTriggerEventDetail } from '@globalpayments/vega/dist/types/components/vega-dropdown/types';
|
|
1101
1110
|
export declare interface VegaDropdown extends Components.VegaDropdown {
|
|
1102
1111
|
/**
|
|
1103
1112
|
* An event emitter notifying that a dropdown item has been clicked.
|
|
@@ -1244,7 +1253,7 @@ export class VegaDropdownGroup {
|
|
|
1244
1253
|
}
|
|
1245
1254
|
}
|
|
1246
1255
|
|
|
1247
|
-
import type { VegaDropdownItemClickEvent as IVegaDropdownItemVegaDropdownItemClickEvent } from '@
|
|
1256
|
+
import type { VegaDropdownItemClickEvent as IVegaDropdownItemVegaDropdownItemClickEvent } from '@globalpayments/vega/dist/types/components/vega-dropdown/vega-dropdown-item/types';
|
|
1248
1257
|
export declare interface VegaDropdownItem extends Components.VegaDropdownItem {
|
|
1249
1258
|
/**
|
|
1250
1259
|
* An event emitter notifying the dropdown item has been clicked. @vegaVersion 1.47.0
|
|
@@ -1333,8 +1342,8 @@ export class VegaFieldLabel {
|
|
|
1333
1342
|
}
|
|
1334
1343
|
}
|
|
1335
1344
|
|
|
1336
|
-
import type { VegaFileUploaderFiles as IVegaFileUploaderVegaFileUploaderFiles } from '@
|
|
1337
|
-
import type { VegaFileUploaderFile as IVegaFileUploaderVegaFileUploaderFile } from '@
|
|
1345
|
+
import type { VegaFileUploaderFiles as IVegaFileUploaderVegaFileUploaderFiles } from '@globalpayments/vega/dist/types/components/vega-file-uploader/types';
|
|
1346
|
+
import type { VegaFileUploaderFile as IVegaFileUploaderVegaFileUploaderFile } from '@globalpayments/vega/dist/types/components/vega-file-uploader/types';
|
|
1338
1347
|
export declare interface VegaFileUploader extends Components.VegaFileUploader {
|
|
1339
1348
|
/**
|
|
1340
1349
|
* An event emitter notifying a change in the file list. @vegaVersion 2.25.0
|
|
@@ -1575,7 +1584,7 @@ export class VegaIcon {
|
|
|
1575
1584
|
}
|
|
1576
1585
|
}
|
|
1577
1586
|
|
|
1578
|
-
import type { VegaFileOptional as IVegaImageUploaderVegaFileOptional } from '@
|
|
1587
|
+
import type { VegaFileOptional as IVegaImageUploaderVegaFileOptional } from '@globalpayments/vega/dist/types/components/vega-image-uploader/types';
|
|
1579
1588
|
export declare interface VegaImageUploader extends Components.VegaImageUploader {
|
|
1580
1589
|
/**
|
|
1581
1590
|
* An event emitter notifying a value change. @vegaVersion 1.14.0
|
|
@@ -1624,8 +1633,8 @@ export class VegaImageUploader {
|
|
|
1624
1633
|
}
|
|
1625
1634
|
}
|
|
1626
1635
|
|
|
1627
|
-
import type { DataTransferType as IVegaInputDataTransferType } from '@
|
|
1628
|
-
import type { VegaDropdownSourceItem as IVegaInputVegaDropdownSourceItem } from '@
|
|
1636
|
+
import type { DataTransferType as IVegaInputDataTransferType } from '@globalpayments/vega/dist/types/components/vega-input/types';
|
|
1637
|
+
import type { VegaDropdownSourceItem as IVegaInputVegaDropdownSourceItem } from '@globalpayments/vega/dist/types/components/vega-dropdown/types';
|
|
1629
1638
|
export declare interface VegaInput extends Components.VegaInput {
|
|
1630
1639
|
/**
|
|
1631
1640
|
* Emitted when the input value changes.
|
|
@@ -1907,7 +1916,7 @@ export class VegaInputPasscode {
|
|
|
1907
1916
|
}
|
|
1908
1917
|
}
|
|
1909
1918
|
|
|
1910
|
-
import type { VegaCountryType as IVegaInputPhoneNumberVegaCountryType } from '@
|
|
1919
|
+
import type { VegaCountryType as IVegaInputPhoneNumberVegaCountryType } from '@globalpayments/vega/dist/types/components/vega-input-phone-number/types';
|
|
1911
1920
|
export declare interface VegaInputPhoneNumber extends Components.VegaInputPhoneNumber {
|
|
1912
1921
|
/**
|
|
1913
1922
|
* Fires whenever the phone number value changes — including typing,
|
|
@@ -1987,9 +1996,9 @@ export class VegaInputRange {
|
|
|
1987
1996
|
}
|
|
1988
1997
|
}
|
|
1989
1998
|
|
|
1990
|
-
import type { SelectValueType as IVegaInputSelectSelectValueType } from '@
|
|
1991
|
-
import type { SelectType as IVegaInputSelectSelectType } from '@
|
|
1992
|
-
import type { VegaDropdownSearchTriggerEventDetail as IVegaInputSelectVegaDropdownSearchTriggerEventDetail } from '@
|
|
1999
|
+
import type { SelectValueType as IVegaInputSelectSelectValueType } from '@globalpayments/vega/dist/types/components/vega-input-select/types';
|
|
2000
|
+
import type { SelectType as IVegaInputSelectSelectType } from '@globalpayments/vega/dist/types/components/vega-input-select/types';
|
|
2001
|
+
import type { VegaDropdownSearchTriggerEventDetail as IVegaInputSelectVegaDropdownSearchTriggerEventDetail } from '@globalpayments/vega/dist/types/components/vega-dropdown/types';
|
|
1993
2002
|
export declare interface VegaInputSelect extends Components.VegaInputSelect {
|
|
1994
2003
|
/**
|
|
1995
2004
|
* An event emitter notifying the change of the select value. @vegaVersion 1.0.11
|
|
@@ -2715,8 +2724,8 @@ export class VegaRichTextContent {
|
|
|
2715
2724
|
}
|
|
2716
2725
|
}
|
|
2717
2726
|
|
|
2718
|
-
import type { VegaRTEContent as IVegaRichTextEditorVegaRTEContent } from '@
|
|
2719
|
-
import type { VegaRichTextEditorImage as IVegaRichTextEditorVegaRichTextEditorImage } from '@
|
|
2727
|
+
import type { VegaRTEContent as IVegaRichTextEditorVegaRTEContent } from '@globalpayments/vega/dist/types/components/vega-rich-text-editor/dto/content-state';
|
|
2728
|
+
import type { VegaRichTextEditorImage as IVegaRichTextEditorVegaRichTextEditorImage } from '@globalpayments/vega/dist/types/components/vega-rich-text-editor/interface';
|
|
2720
2729
|
export declare interface VegaRichTextEditor extends Components.VegaRichTextEditor {
|
|
2721
2730
|
/**
|
|
2722
2731
|
* An event emitter notifying a value change. @vegaVersion 2.34.0
|
|
@@ -2796,7 +2805,7 @@ export class VegaRichTextEditorToolbarButton {
|
|
|
2796
2805
|
}
|
|
2797
2806
|
}
|
|
2798
2807
|
|
|
2799
|
-
import type { VegaRichTextImageEditorChangeDetail as IVegaRichTextImageEditorVegaRichTextImageEditorChangeDetail } from '@
|
|
2808
|
+
import type { VegaRichTextImageEditorChangeDetail as IVegaRichTextImageEditorVegaRichTextImageEditorChangeDetail } from '@globalpayments/vega/dist/types/components/vega-rich-text-editor/vega-rich-text-image-editor/types';
|
|
2800
2809
|
export declare interface VegaRichTextImageEditor extends Components.VegaRichTextImageEditor {
|
|
2801
2810
|
/**
|
|
2802
2811
|
* An event emitter notifying content change. @vegaVersion 2.34.0
|
|
@@ -2828,7 +2837,7 @@ export class VegaRichTextImageEditor {
|
|
|
2828
2837
|
}
|
|
2829
2838
|
}
|
|
2830
2839
|
|
|
2831
|
-
import type { VegaRichTextLinkEditorChangeDetail as IVegaRichTextLinkEditorVegaRichTextLinkEditorChangeDetail } from '@
|
|
2840
|
+
import type { VegaRichTextLinkEditorChangeDetail as IVegaRichTextLinkEditorVegaRichTextLinkEditorChangeDetail } from '@globalpayments/vega/dist/types/components/vega-rich-text-editor/vega-rich-text-link-editor/types';
|
|
2832
2841
|
export declare interface VegaRichTextLinkEditor extends Components.VegaRichTextLinkEditor {
|
|
2833
2842
|
/**
|
|
2834
2843
|
* An event emitter notifying content change. @vegaVersion 2.34.0
|
|
@@ -2861,7 +2870,7 @@ export class VegaRichTextLinkEditor {
|
|
|
2861
2870
|
}
|
|
2862
2871
|
}
|
|
2863
2872
|
|
|
2864
|
-
import type { RTETablePropertiesType as IVegaRichTextTablePropertiesRTETablePropertiesType } from '@
|
|
2873
|
+
import type { RTETablePropertiesType as IVegaRichTextTablePropertiesRTETablePropertiesType } from '@globalpayments/vega/dist/types/components/vega-rich-text-editor/interface';
|
|
2865
2874
|
export declare interface VegaRichTextTableProperties extends Components.VegaRichTextTableProperties {
|
|
2866
2875
|
/**
|
|
2867
2876
|
* @vegaVersion 2.79.0
|
|
@@ -3228,7 +3237,7 @@ export class VegaSidenavLink {
|
|
|
3228
3237
|
}
|
|
3229
3238
|
}
|
|
3230
3239
|
|
|
3231
|
-
import type { VegaSignatureValue as IVegaSignatureCaptureVegaSignatureValue } from '@
|
|
3240
|
+
import type { VegaSignatureValue as IVegaSignatureCaptureVegaSignatureValue } from '@globalpayments/vega/dist/types/components/vega-signature-capture/types';
|
|
3232
3241
|
export declare interface VegaSignatureCapture extends Components.VegaSignatureCapture {
|
|
3233
3242
|
/**
|
|
3234
3243
|
* An event emitter notifying a value change. @vegaVersion 2.19.0
|
|
@@ -3388,14 +3397,14 @@ export class VegaTabGroupPanel {
|
|
|
3388
3397
|
}
|
|
3389
3398
|
}
|
|
3390
3399
|
|
|
3391
|
-
import type { VegaTableChangePropType as IVegaTableVegaTableChangePropType } from '@
|
|
3392
|
-
import type { VegaTableRowClickPropType as IVegaTableVegaTableRowClickPropType } from '@
|
|
3393
|
-
import type { VegaTableRowExpandEventDetail as IVegaTableVegaTableRowExpandEventDetail } from '@
|
|
3394
|
-
import type { VegaTableRowSelectProp as IVegaTableVegaTableRowSelectProp } from '@
|
|
3395
|
-
import type { VegaTableSelectAllProp as IVegaTableVegaTableSelectAllProp } from '@
|
|
3396
|
-
import type { VegaTableRowSelectEventDetail as IVegaTableVegaTableRowSelectEventDetail } from '@
|
|
3397
|
-
import type { VegaTableRowSelectAllEventDetail as IVegaTableVegaTableRowSelectAllEventDetail } from '@
|
|
3398
|
-
import type { DragDropEventPayload as IVegaTableDragDropEventPayload } from '@
|
|
3400
|
+
import type { VegaTableChangePropType as IVegaTableVegaTableChangePropType } from '@globalpayments/vega/dist/types/components/vega-table/interface';
|
|
3401
|
+
import type { VegaTableRowClickPropType as IVegaTableVegaTableRowClickPropType } from '@globalpayments/vega/dist/types/components/vega-table/interface';
|
|
3402
|
+
import type { VegaTableRowExpandEventDetail as IVegaTableVegaTableRowExpandEventDetail } from '@globalpayments/vega/dist/types/components/vega-table/interface';
|
|
3403
|
+
import type { VegaTableRowSelectProp as IVegaTableVegaTableRowSelectProp } from '@globalpayments/vega/dist/types/components/vega-table/interface';
|
|
3404
|
+
import type { VegaTableSelectAllProp as IVegaTableVegaTableSelectAllProp } from '@globalpayments/vega/dist/types/components/vega-table/interface';
|
|
3405
|
+
import type { VegaTableRowSelectEventDetail as IVegaTableVegaTableRowSelectEventDetail } from '@globalpayments/vega/dist/types/components/vega-table/interface';
|
|
3406
|
+
import type { VegaTableRowSelectAllEventDetail as IVegaTableVegaTableRowSelectAllEventDetail } from '@globalpayments/vega/dist/types/components/vega-table/interface';
|
|
3407
|
+
import type { DragDropEventPayload as IVegaTableDragDropEventPayload } from '@globalpayments/vega/dist/types/components/vega-table/interface';
|
|
3399
3408
|
export declare interface VegaTable extends Components.VegaTable {
|
|
3400
3409
|
/**
|
|
3401
3410
|
* An event emitter notifying changes in the table data. @vegaVersion 1.3.0
|
|
@@ -3631,7 +3640,7 @@ export class VegaTableHead {
|
|
|
3631
3640
|
}
|
|
3632
3641
|
}
|
|
3633
3642
|
|
|
3634
|
-
import type { VegaTableHeadCellClickEvent as IVegaTableHeadCellVegaTableHeadCellClickEvent } from '@
|
|
3643
|
+
import type { VegaTableHeadCellClickEvent as IVegaTableHeadCellVegaTableHeadCellClickEvent } from '@globalpayments/vega/dist/types/components/vega-table/interface';
|
|
3635
3644
|
export declare interface VegaTableHeadCell extends Components.VegaTableHeadCell {
|
|
3636
3645
|
/**
|
|
3637
3646
|
* An event emitter notifying that the head cell has been clicked. @vegaVersion 1.44.0
|
|
@@ -3684,8 +3693,8 @@ export class VegaTableHeadRow {
|
|
|
3684
3693
|
}
|
|
3685
3694
|
}
|
|
3686
3695
|
|
|
3687
|
-
import type { VegaTableRowClickEvent as IVegaTableRowVegaTableRowClickEvent } from '@
|
|
3688
|
-
import type { VegaTableRowExpandEvent as IVegaTableRowVegaTableRowExpandEvent } from '@
|
|
3696
|
+
import type { VegaTableRowClickEvent as IVegaTableRowVegaTableRowClickEvent } from '@globalpayments/vega/dist/types/components/vega-table/interface';
|
|
3697
|
+
import type { VegaTableRowExpandEvent as IVegaTableRowVegaTableRowExpandEvent } from '@globalpayments/vega/dist/types/components/vega-table/interface';
|
|
3689
3698
|
export declare interface VegaTableRow extends Components.VegaTableRow {
|
|
3690
3699
|
/**
|
|
3691
3700
|
* An event emitter notifying that the row has been clicked. @vegaVersion 1.44.0
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Directive, ElementRef, HostListener } from '@angular/core';
|
|
2
2
|
import { ControlValueAccessor } from '@angular/forms';
|
|
3
|
-
import { VegaEventManager } from '@
|
|
3
|
+
import { VegaEventManager } from '@globalpayments/vega';
|
|
4
4
|
|
|
5
5
|
@Directive({ selector: 'vega-value-accessor' })
|
|
6
6
|
export class ValueAccessor implements ControlValueAccessor {
|
|
@@ -45,6 +45,7 @@ function resolveEventPayloadImportPath(componentsContent) {
|
|
|
45
45
|
['VegaDropdownItemClickEvent', 'vega-dropdown/vega-dropdown-item/types'],
|
|
46
46
|
['VegaCalendarChangeEventType', 'vega-calendar/types'],
|
|
47
47
|
['VegaCalendarEventClickInfo', 'vega-calendar/types'],
|
|
48
|
+
['VegaCalendarEventEditInfo', 'vega-calendar/types'],
|
|
48
49
|
['VegaCalendarDateClickInfo', 'vega-calendar/types'],
|
|
49
50
|
['VegaCountryType', 'vega-input-phone-number/types'],
|
|
50
51
|
['VegaBannerActionButtonType', 'vega-banner/types'],
|
|
@@ -68,10 +69,10 @@ function resolveEventPayloadImportPath(componentsContent) {
|
|
|
68
69
|
]);
|
|
69
70
|
|
|
70
71
|
return componentsContent.replace(
|
|
71
|
-
/(import type { (.*) as .* } from )'@
|
|
72
|
+
/(import type { (.*) as .* } from )'@globalpayments\/vega'/g,
|
|
72
73
|
function (matched, group1, group2) {
|
|
73
74
|
const componentTypePath = EVENT_PAYLOAD_TYPE_TO_COMPONENT_TAG_MAP.get(group2);
|
|
74
|
-
return `${group1}'@
|
|
75
|
+
return `${group1}'@globalpayments/vega/dist/types/components/${componentTypePath}'`;
|
|
75
76
|
},
|
|
76
77
|
);
|
|
77
78
|
}
|
package/testing/index.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FeatureFlag } from '@
|
|
2
|
-
import { waitForVega } from '@
|
|
1
|
+
import { FeatureFlag } from '@globalpayments/vega';
|
|
2
|
+
import { waitForVega } from '@globalpayments/vega';
|
|
3
3
|
import type { RenderResult } from '@testing-library/angular';
|
|
4
4
|
|
|
5
5
|
type Nullable<T> = T | undefined | null;
|
|
@@ -20,7 +20,7 @@ export async function waitForVegaReady(
|
|
|
20
20
|
* To determine whether there is a hydrated style that cannot meet the requirements after the component is loaded,
|
|
21
21
|
* It need to set the sleep time to ensure that each attribute of the vega component is fully loaded
|
|
22
22
|
*
|
|
23
|
-
code link: ./node_modules
|
|
23
|
+
code link: ./node_modules/vega-react/dist/react-component-lib/utils/attachProps.js(line 28-33)}
|
|
24
24
|
*/
|
|
25
25
|
await sleep(delay);
|
|
26
26
|
return renderResult;
|
package/testing/ng-package.json
CHANGED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated bundle index. Do not edit.
|
|
3
|
-
*/
|
|
4
|
-
export * from './public-api';
|
|
5
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaGVhcnRsYW5kb25lLXZlZ2EtYW5ndWxhci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9oZWFydGxhbmRvbmUtdmVnYS1hbmd1bGFyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsY0FBYyxjQUFjLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdlbmVyYXRlZCBidW5kbGUgaW5kZXguIERvIG5vdCBlZGl0LlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vcHVibGljLWFwaSc7XG4iXX0=
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated bundle index. Do not edit.
|
|
3
|
-
*/
|
|
4
|
-
export * from './public-api';
|
|
5
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaGVhcnRsYW5kb25lLXZlZ2EtYW5ndWxhci10ZXN0aW5nLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vdGVzdGluZy9oZWFydGxhbmRvbmUtdmVnYS1hbmd1bGFyLXRlc3RpbmcudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLGNBQWMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWMtYXBpJztcbiJdfQ==
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"heartlandone-vega-angular-testing.mjs","sources":["../../testing/index.ts","../../testing/public-api.ts","../../testing/heartlandone-vega-angular-testing.ts"],"sourcesContent":["import { FeatureFlag } from '@heartlandone/vega';\nimport { waitForVega } from '@heartlandone/vega';\nimport type { RenderResult } from '@testing-library/angular';\n\ntype Nullable<T> = T | undefined | null;\n\n/**\n * @deprecated This utility is deprecated. Use `waitForVega` from `@heartlandone/vega-testing-library` directly.\n * The `vega-testing-library` package supports Jest fake timers and does not require a `RenderResult` argument.\n * Install it separately: `npm install @heartlandone/vega-testing-library`\n */\nexport async function waitForVegaReady(\n renderResult: RenderResult<unknown, unknown>,\n delay: number = 300,\n): Promise<RenderResult<unknown, unknown>> {\n await waitForVega();\n\n /*\n * The following code is added to load the vega component, and the attribute value is set after each component is loaded.\n * To determine whether there is a hydrated style that cannot meet the requirements after the component is loaded,\n * It need to set the sleep time to ensure that each attribute of the vega component is fully loaded\n *\n code link: ./node_modules/@heartlandone/vega-react/dist/react-component-lib/utils/attachProps.js(line 28-33)}\n */\n await sleep(delay);\n return renderResult;\n}\n\n/**\n * @deprecated This type is deprecated. Use `MockedResizeObserverController` from `@heartlandone/vega-testing-library` directly.\n * Install it separately: `npm install @heartlandone/vega-testing-library`\n */\nexport type MockedResizeObserverController = {\n hide: (selector: string, container?: HTMLElement) => void;\n show: (selector: string, container?: HTMLElement) => void;\n};\n\n/**\n * @deprecated This function is deprecated. Use `mockResizeObserver` from `@heartlandone/vega-testing-library` directly.\n * Install it separately: `npm install @heartlandone/vega-testing-library`\n */\nexport function mockResizeObserver(): MockedResizeObserverController {\n type MockedResizeObserver = ResizeObserver & {\n show: () => void;\n hide: () => void;\n };\n FeatureFlag.disable('VEGA_ANGULAR.USE_JUGGLE_RESIZE_OBSERVER');\n const resizeObserverElementMap: Map<HTMLElement, MockedResizeObserver> = new Map();\n const VegaResizeObserver: unknown = class {\n private readonly callback: ResizeObserverCallback;\n private observedElements: HTMLElement[] = [];\n constructor(callback: ResizeObserverCallback) {\n this.callback = callback;\n }\n\n observe(element: HTMLElement): void {\n if (!this.isObserved(element)) {\n resizeObserverElementMap.set(element, this);\n this.observedElements.push(element);\n }\n }\n\n unobserve(element: HTMLElement): void {\n if (this.isObserved(element)) {\n resizeObserverElementMap.delete(element);\n this.observedElements = this.observedElements.filter(\n (observedElement: HTMLElement) => observedElement !== element,\n );\n }\n }\n\n disconnect(): void {\n for (const element of this.observedElements) {\n resizeObserverElementMap.delete(element);\n }\n this.observedElements = [];\n }\n\n show(): void {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n this.callback([{ contentRect: { height: 100 } }] as any, this);\n }\n\n hide(): void {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n this.callback([{ contentRect: { height: 0 } }] as any, this);\n }\n\n private isObserved(element: HTMLElement): boolean {\n return this.observedElements.includes(element);\n }\n };\n Object.assign(window, { VegaResizeObserver });\n return {\n show: (selector: string, container?: HTMLElement): void => {\n (container || document)\n .querySelectorAll(selector)\n // eslint-disable-next-line unicorn/no-array-for-each\n .forEach((el: Element) => {\n const resizeObserver: Nullable<MockedResizeObserver> = resizeObserverElementMap.get(\n el as HTMLElement,\n );\n if (resizeObserver) {\n resizeObserver.show();\n }\n });\n },\n hide: (selector: string, container?: HTMLElement): void => {\n (container || document)\n .querySelectorAll(selector)\n // eslint-disable-next-line unicorn/no-array-for-each\n .forEach((el: Element) => {\n const resizeObserver: Nullable<MockedResizeObserver> = resizeObserverElementMap.get(\n el as HTMLElement,\n );\n if (resizeObserver) {\n resizeObserver.hide();\n }\n });\n },\n };\n}\n\nfunction sleep(ms: number): Promise<void> {\n return new Promise((resolve: () => void) => {\n setTimeout(resolve, ms);\n });\n}\n","/*\n * Public API Surface of vega-angular\n */\nexport * from './index';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":"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"}
|