@heartlandone/vega-angular 1.31.0 → 1.32.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -531,6 +531,15 @@ export declare class VegaLeftNavSection {
531
531
  static ɵfac: i0.ɵɵFactoryDeclaration<VegaLeftNavSection, never>;
532
532
  static ɵcmp: i0.ɵɵComponentDeclaration<VegaLeftNavSection, "vega-left-nav-section", never, { "sectionHeader": "sectionHeader"; }, {}, never, ["*"]>;
533
533
  }
534
+ export declare interface VegaLineChart extends Components.VegaLineChart {
535
+ }
536
+ export declare class VegaLineChart {
537
+ protected z: NgZone;
538
+ protected el: HTMLElement;
539
+ constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
540
+ static ɵfac: i0.ɵɵFactoryDeclaration<VegaLineChart, never>;
541
+ static ɵcmp: i0.ɵɵComponentDeclaration<VegaLineChart, "vega-line-chart", never, { "options": "options"; }, {}, never, ["*"]>;
542
+ }
534
543
  export declare interface VegaLoadingIndicator extends Components.VegaLoadingIndicator {
535
544
  }
536
545
  export declare class VegaLoadingIndicator {
@@ -838,5 +847,5 @@ export declare class VegaVirtualScroll {
838
847
  static ɵfac: i0.ɵɵFactoryDeclaration<VegaVirtualScroll, never>;
839
848
  static ɵcmp: i0.ɵɵComponentDeclaration<VegaVirtualScroll, "vega-virtual-scroll", never, { "approxItemHeight": "approxItemHeight"; "renderItem": "renderItem"; "source": "source"; "sourceItemIdentifier": "sourceItemIdentifier"; "thresholdOfWork": "thresholdOfWork"; "viewportMaxHeight": "viewportMaxHeight"; }, {}, never, ["*"]>;
840
849
  }
841
- declare const _default: (typeof VegaAccordion | typeof VegaAppFooter | typeof VegaAppHeaderButton | typeof VegaBadge | typeof VegaBanner | typeof VegaBox | typeof VegaButton | typeof VegaButtonCircle | typeof VegaButtonLink | typeof VegaCard | typeof VegaCarousel | typeof VegaCheckbox | typeof VegaCheckboxGroup | typeof VegaChip | typeof VegaColorPicker | typeof VegaComboBox | typeof VegaCounterBadge | typeof VegaDatePicker | typeof VegaDialog | typeof VegaDropdown | typeof VegaFieldLabel | typeof VegaFlex | typeof VegaFooter | typeof VegaForm | typeof VegaGrid | typeof VegaHeader | typeof VegaIcon | typeof VegaImageUploader | typeof VegaInput | typeof VegaInputCreditCard | typeof VegaInputSelect | typeof VegaItemToggle | typeof VegaLeftNav | typeof VegaLeftNavGroup | typeof VegaLeftNavLink | typeof VegaLeftNavSection | typeof VegaLoadingIndicator | typeof VegaModal | typeof VegaOption | typeof VegaPageNotification | typeof VegaPagination | typeof VegaPopover | typeof VegaProgressTracker | typeof VegaRadio | typeof VegaRadioGroup | typeof VegaSidenav | typeof VegaSidenavGroup | typeof VegaSidenavLink | typeof VegaStepper | typeof VegaTabGroup | typeof VegaTabGroupPanel | typeof VegaTable | typeof VegaText | typeof VegaTextarea | typeof VegaTimePicker | typeof VegaToggleSwitch | typeof VegaTooltip | typeof VegaVirtualScroll)[];
850
+ declare const _default: (typeof VegaAccordion | typeof VegaAppFooter | typeof VegaAppHeaderButton | typeof VegaBadge | typeof VegaBanner | typeof VegaBox | typeof VegaButton | typeof VegaButtonCircle | typeof VegaButtonLink | typeof VegaCard | typeof VegaCarousel | typeof VegaCheckbox | typeof VegaCheckboxGroup | typeof VegaChip | typeof VegaColorPicker | typeof VegaComboBox | typeof VegaCounterBadge | typeof VegaDatePicker | typeof VegaDialog | typeof VegaDropdown | typeof VegaFieldLabel | typeof VegaFlex | typeof VegaFooter | typeof VegaForm | typeof VegaGrid | typeof VegaHeader | typeof VegaIcon | typeof VegaImageUploader | typeof VegaInput | typeof VegaInputCreditCard | typeof VegaInputSelect | typeof VegaItemToggle | typeof VegaLeftNav | typeof VegaLeftNavGroup | typeof VegaLeftNavLink | typeof VegaLeftNavSection | typeof VegaLineChart | typeof VegaLoadingIndicator | typeof VegaModal | typeof VegaOption | typeof VegaPageNotification | typeof VegaPagination | typeof VegaPopover | typeof VegaProgressTracker | typeof VegaRadio | typeof VegaRadioGroup | typeof VegaSidenav | typeof VegaSidenavGroup | typeof VegaSidenavLink | typeof VegaStepper | typeof VegaTabGroup | typeof VegaTabGroupPanel | typeof VegaTable | typeof VegaText | typeof VegaTextarea | typeof VegaTimePicker | typeof VegaToggleSwitch | typeof VegaTooltip | typeof VegaVirtualScroll)[];
842
851
  export default _default;
package/dist/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@heartlandone/vega-angular",
3
3
  "sideEffects": false,
4
- "version": "1.30.0",
4
+ "version": "1.31.0",
5
5
  "description": "Angular specific wrapper for @heartlandone/vega",
6
6
  "peerDependencies": {
7
7
  "@angular/common": ">=12.0.0",
@@ -18,8 +18,9 @@
18
18
  "url": "https://github.com/heartlandpayments/Vega/tree/main/vega-angular-workspace/projects/vega-angular"
19
19
  },
20
20
  "dependencies": {
21
- "@heartlandone/vega": "1.30.0",
22
- "tslib": "^2.3.0"
21
+ "@heartlandone/vega": "1.31.0",
22
+ "tslib": "^2.3.0",
23
+ "@juggle/resize-observer": "^3.4.0"
23
24
  },
24
25
  "publishConfig": {
25
26
  "directory": "dist"
package/ng-package.json CHANGED
@@ -5,6 +5,7 @@
5
5
  "entryFile": "src/public-api.ts"
6
6
  },
7
7
  "allowedNonPeerDependencies": [
8
- "@heartlandone/vega"
8
+ "@heartlandone/vega",
9
+ "@juggle/resize-observer"
9
10
  ]
10
11
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@heartlandone/vega-angular",
3
3
  "sideEffects": false,
4
- "version": "1.31.0",
4
+ "version": "1.32.0",
5
5
  "description": "Angular specific wrapper for @heartlandone/vega",
6
6
  "peerDependencies": {
7
7
  "@angular/common": ">=12.0.0",
@@ -26,8 +26,9 @@
26
26
  "url": "https://github.com/heartlandpayments/Vega/tree/main/vega-angular-workspace/projects/vega-angular"
27
27
  },
28
28
  "dependencies": {
29
- "@heartlandone/vega": "1.31.0",
30
- "tslib": "^2.3.0"
29
+ "@heartlandone/vega": "1.32.0",
30
+ "tslib": "^2.3.0",
31
+ "@juggle/resize-observer": "^3.4.0"
31
32
  },
32
33
  "publishConfig": {
33
34
  "directory": "dist"
@@ -3,7 +3,8 @@ import { defineCustomElements } from '@heartlandone/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 } from '@heartlandone/vega';
7
8
  @NgModule({
8
9
  declarations: [...VegaComponents, TextValueAccessor, ValueAccessor],
9
10
  imports: [],
@@ -11,6 +12,15 @@ import { ValueAccessor } from './stencil-generated/value-accessor';
11
12
  })
12
13
  export class VegaComponentModule {
13
14
  constructor() {
15
+ this.useJuggleResizeObserver()
14
16
  defineCustomElements(window).then();
15
17
  }
18
+
19
+ useJuggleResizeObserver(){
20
+ if(FeatureFlag.isEnabled('VEGA_ANGULAR.USE_JUGGLE_RESIZE_OBSERVER')){
21
+ Object.assign(window, {
22
+ 'VegaResizeObserver': VegaResizeObserver
23
+ });
24
+ }
25
+ }
16
26
  }
@@ -1041,6 +1041,28 @@ export class VegaLeftNavSection {
1041
1041
  }
1042
1042
 
1043
1043
 
1044
+ export declare interface VegaLineChart extends Components.VegaLineChart {}
1045
+
1046
+ @ProxyCmp({
1047
+ defineCustomElementFn: undefined,
1048
+ inputs: ['options'],
1049
+ methods: ['reRender']
1050
+ })
1051
+ @Component({
1052
+ selector: 'vega-line-chart',
1053
+ changeDetection: ChangeDetectionStrategy.OnPush,
1054
+ template: '<ng-content></ng-content>',
1055
+ inputs: ['options']
1056
+ })
1057
+ export class VegaLineChart {
1058
+ protected el: HTMLElement;
1059
+ constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {
1060
+ c.detach();
1061
+ this.el = r.nativeElement;
1062
+ }
1063
+ }
1064
+
1065
+
1044
1066
  export declare interface VegaLoadingIndicator extends Components.VegaLoadingIndicator {}
1045
1067
 
1046
1068
  @ProxyCmp({
@@ -1704,6 +1726,7 @@ export default [
1704
1726
  VegaLeftNavGroup,
1705
1727
  VegaLeftNavLink,
1706
1728
  VegaLeftNavSection,
1729
+ VegaLineChart,
1707
1730
  VegaLoadingIndicator,
1708
1731
  VegaModal,
1709
1732
  VegaOption,