@onecx/angular-accelerator 6.16.1 → 6.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.d.ts CHANGED
@@ -8,6 +8,7 @@ export * from './lib/directives/tooltipOnOverflow.directive';
8
8
  export * from './lib/directives/template.directive';
9
9
  export * from './lib/directives/basic.directive';
10
10
  export * from './lib/directives/loading-indicator.directive';
11
+ export * from './lib/directives/tooltip.directive';
11
12
  export * from './lib/components/column-group-selection/column-group-selection.component';
12
13
  export * from './lib/components/content/content.component';
13
14
  export * from './lib/components/content-container/content-container.component';
@@ -40,10 +40,11 @@ import * as i37 from "@onecx/angular-remote-components";
40
40
  import * as i38 from "@ngx-translate/core";
41
41
  import * as i39 from "@angular/forms";
42
42
  import * as i40 from "@angular/router";
43
+ import * as i41 from "./directives/tooltip.directive";
43
44
  export declare class AngularAcceleratorMissingTranslationHandler extends MultiLanguageMissingTranslationHandler {
44
45
  }
45
46
  export declare class AngularAcceleratorModule {
46
47
  static ɵfac: i0.ɵɵFactoryDeclaration<AngularAcceleratorModule, never>;
47
- static ɵmod: i0.ɵɵNgModuleDeclaration<AngularAcceleratorModule, [typeof i1.ColumnGroupSelectionComponent, typeof i2.CustomGroupColumnSelectorComponent, typeof i3.DataLayoutSelectionComponent, typeof i4.DataListGridSortingComponent, typeof i5.DataListGridComponent, typeof i6.DataTableComponent, typeof i7.DataViewComponent, typeof i8.InteractiveDataViewComponent, typeof i9.LifecycleComponent, typeof i10.PageHeaderComponent, typeof i11.DynamicPipe, typeof i12.SearchHeaderComponent, typeof i13.DiagramComponent, typeof i14.GroupByCountDiagramComponent, typeof i15.OcxContentComponent, typeof i16.OcxContentContainerComponent, typeof i17.IfPermissionDirective, typeof i18.IfBreakpointDirective, typeof i19.SrcDirective, typeof i20.OcxTimeAgoPipe, typeof i21.AdvancedDirective, typeof i22.TooltipOnOverflowDirective, typeof i23.FilterViewComponent, typeof i24.TemplateDirective, typeof i25.OcxContentDirective, typeof i26.OcxContentContainerDirective, typeof i27.GlobalErrorComponent, typeof i28.LoadingIndicatorComponent, typeof i29.LoadingIndicatorDirective, typeof i30.BasicDirective, typeof i31.DialogFooterComponent, typeof i32.DialogContentComponent, typeof i33.DialogInlineComponent, typeof i34.DialogMessageContentComponent], [typeof i35.CommonModule, typeof i36.AngularAcceleratorPrimeNgModule, typeof i37.AngularRemoteComponentsModule, typeof i38.TranslateModule, typeof i39.FormsModule, typeof i40.RouterModule, typeof i39.ReactiveFormsModule], [typeof i37.AngularRemoteComponentsModule, typeof i1.ColumnGroupSelectionComponent, typeof i2.CustomGroupColumnSelectorComponent, typeof i3.DataLayoutSelectionComponent, typeof i5.DataListGridComponent, typeof i6.DataTableComponent, typeof i7.DataViewComponent, typeof i8.InteractiveDataViewComponent, typeof i9.LifecycleComponent, typeof i10.PageHeaderComponent, typeof i12.SearchHeaderComponent, typeof i13.DiagramComponent, typeof i14.GroupByCountDiagramComponent, typeof i15.OcxContentComponent, typeof i16.OcxContentContainerComponent, typeof i17.IfPermissionDirective, typeof i18.IfBreakpointDirective, typeof i19.SrcDirective, typeof i20.OcxTimeAgoPipe, typeof i21.AdvancedDirective, typeof i22.TooltipOnOverflowDirective, typeof i23.FilterViewComponent, typeof i24.TemplateDirective, typeof i25.OcxContentDirective, typeof i26.OcxContentContainerDirective, typeof i27.GlobalErrorComponent, typeof i28.LoadingIndicatorComponent, typeof i29.LoadingIndicatorDirective, typeof i30.BasicDirective, typeof i31.DialogFooterComponent, typeof i32.DialogContentComponent, typeof i33.DialogInlineComponent, typeof i34.DialogMessageContentComponent]>;
48
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AngularAcceleratorModule, [typeof i1.ColumnGroupSelectionComponent, typeof i2.CustomGroupColumnSelectorComponent, typeof i3.DataLayoutSelectionComponent, typeof i4.DataListGridSortingComponent, typeof i5.DataListGridComponent, typeof i6.DataTableComponent, typeof i7.DataViewComponent, typeof i8.InteractiveDataViewComponent, typeof i9.LifecycleComponent, typeof i10.PageHeaderComponent, typeof i11.DynamicPipe, typeof i12.SearchHeaderComponent, typeof i13.DiagramComponent, typeof i14.GroupByCountDiagramComponent, typeof i15.OcxContentComponent, typeof i16.OcxContentContainerComponent, typeof i17.IfPermissionDirective, typeof i18.IfBreakpointDirective, typeof i19.SrcDirective, typeof i20.OcxTimeAgoPipe, typeof i21.AdvancedDirective, typeof i22.TooltipOnOverflowDirective, typeof i23.FilterViewComponent, typeof i24.TemplateDirective, typeof i25.OcxContentDirective, typeof i26.OcxContentContainerDirective, typeof i27.GlobalErrorComponent, typeof i28.LoadingIndicatorComponent, typeof i29.LoadingIndicatorDirective, typeof i30.BasicDirective, typeof i31.DialogFooterComponent, typeof i32.DialogContentComponent, typeof i33.DialogInlineComponent, typeof i34.DialogMessageContentComponent], [typeof i35.CommonModule, typeof i36.AngularAcceleratorPrimeNgModule, typeof i37.AngularRemoteComponentsModule, typeof i38.TranslateModule, typeof i39.FormsModule, typeof i40.RouterModule, typeof i39.ReactiveFormsModule, typeof i41.OcxTooltipDirective], [typeof i37.AngularRemoteComponentsModule, typeof i1.ColumnGroupSelectionComponent, typeof i2.CustomGroupColumnSelectorComponent, typeof i3.DataLayoutSelectionComponent, typeof i5.DataListGridComponent, typeof i6.DataTableComponent, typeof i7.DataViewComponent, typeof i8.InteractiveDataViewComponent, typeof i9.LifecycleComponent, typeof i10.PageHeaderComponent, typeof i12.SearchHeaderComponent, typeof i13.DiagramComponent, typeof i14.GroupByCountDiagramComponent, typeof i15.OcxContentComponent, typeof i16.OcxContentContainerComponent, typeof i17.IfPermissionDirective, typeof i18.IfBreakpointDirective, typeof i19.SrcDirective, typeof i20.OcxTimeAgoPipe, typeof i21.AdvancedDirective, typeof i22.TooltipOnOverflowDirective, typeof i23.FilterViewComponent, typeof i24.TemplateDirective, typeof i25.OcxContentDirective, typeof i26.OcxContentContainerDirective, typeof i27.GlobalErrorComponent, typeof i28.LoadingIndicatorComponent, typeof i29.LoadingIndicatorDirective, typeof i30.BasicDirective, typeof i31.DialogFooterComponent, typeof i32.DialogContentComponent, typeof i33.DialogInlineComponent, typeof i34.DialogMessageContentComponent, typeof i41.OcxTooltipDirective]>;
48
49
  static ɵinj: i0.ɵɵInjectorDeclaration<AngularAcceleratorModule>;
49
50
  }
@@ -23,6 +23,7 @@ export interface ListGridDataMenuItem extends MenuItem {
23
23
  export interface DataListGridComponentState {
24
24
  activePage?: number;
25
25
  pageSize?: number;
26
+ filters?: Filter[];
26
27
  }
27
28
  export declare class DataListGridComponent extends DataSortBase implements OnInit, DoCheck, AfterContentInit {
28
29
  private userService;
@@ -8,6 +8,7 @@ export declare class LoadingIndicatorDirective implements OnChanges {
8
8
  overlayFullPage: boolean;
9
9
  isLoaderSmall?: boolean | undefined;
10
10
  private componentRef;
11
+ private loaderElement;
11
12
  ngOnChanges(changes: SimpleChanges): void;
12
13
  private elementLoader;
13
14
  private toggleLoadingIndicator;
@@ -0,0 +1,26 @@
1
+ import { AfterViewInit, OnChanges, Renderer2, TemplateRef, SimpleChanges } from "@angular/core";
2
+ import { Tooltip } from "primeng/tooltip";
3
+ import * as i0 from "@angular/core";
4
+ export declare class OcxTooltipDirective extends Tooltip implements AfterViewInit, OnChanges {
5
+ readonly renderer: Renderer2;
6
+ get ocxTooltip(): string | TemplateRef<HTMLElement> | undefined;
7
+ set ocxTooltip(value: string | TemplateRef<HTMLElement> | undefined);
8
+ private generatedId;
9
+ private resolvedId;
10
+ private removeEscapeKeyListener;
11
+ constructor();
12
+ ngAfterViewInit(): void;
13
+ ngOnChanges(simpleChange: SimpleChanges): void;
14
+ create(): void;
15
+ show(): void;
16
+ private ensureIdAndAriaDescribedBy;
17
+ private normalizeId;
18
+ private applyIdToContainer;
19
+ private isTooltipCreated;
20
+ private getOrCreateGeneratedId;
21
+ private getRandomPart;
22
+ private setEscapeKeyListener;
23
+ ngOnDestroy(): void;
24
+ static ɵfac: i0.ɵɵFactoryDeclaration<OcxTooltipDirective, never>;
25
+ static ɵdir: i0.ɵɵDirectiveDeclaration<OcxTooltipDirective, "[ocxTooltip]", never, { "ocxTooltip": { "alias": "ocxTooltip"; "required": false; }; }, {}, never, never, true, never>;
26
+ }
@@ -1,7 +1,7 @@
1
1
  import { AfterViewInit, OnDestroy, TemplateRef } from '@angular/core';
2
- import { Tooltip } from 'primeng/tooltip';
2
+ import { OcxTooltipDirective } from './tooltip.directive';
3
3
  import * as i0 from "@angular/core";
4
- export declare class TooltipOnOverflowDirective extends Tooltip implements OnDestroy, AfterViewInit {
4
+ export declare class TooltipOnOverflowDirective extends OcxTooltipDirective implements OnDestroy, AfterViewInit {
5
5
  mutationObserver: MutationObserver;
6
6
  get ocxTooltipOnOverflow(): string | TemplateRef<HTMLElement> | undefined;
7
7
  set ocxTooltipOnOverflow(value: string | TemplateRef<HTMLElement> | undefined);
@@ -3,6 +3,7 @@ import { FilterType } from './filter.model';
3
3
  export interface DataTableColumn {
4
4
  columnType: ColumnType;
5
5
  nameKey: string;
6
+ tooltipKey?: string;
6
7
  id: string;
7
8
  sortable?: boolean;
8
9
  filterable?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onecx/angular-accelerator",
3
- "version": "6.16.1",
3
+ "version": "6.18.0",
4
4
  "license": "Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",
@@ -16,19 +16,20 @@
16
16
  "@ngx-translate/core": "^16.0.0",
17
17
  "@ngx-translate/http-loader": "^8.0.0",
18
18
  "@ngneat/until-destroy": "^10.0.0",
19
- "@onecx/integration-interface": "^6.16.1",
20
- "@onecx/accelerator": "^6.16.1",
21
- "@onecx/angular-integration-interface": "^6.16.1",
22
- "@onecx/angular-remote-components": "^6.16.1",
23
- "@onecx/angular-testing": "^6.16.1",
24
- "@onecx/angular-utils": "^6.16.1",
19
+ "@onecx/integration-interface": "^6.18.0",
20
+ "@onecx/accelerator": "^6.18.0",
21
+ "@onecx/angular-integration-interface": "^6.18.0",
22
+ "@onecx/angular-remote-components": "^6.18.0",
23
+ "@onecx/angular-testing": "^6.18.0",
24
+ "@onecx/angular-utils": "^6.18.0",
25
25
  "chart.js": "^4.4.3",
26
26
  "d3-scale-chromatic": "^3.1.0",
27
+ "fast-deep-equal": "^3.1.3",
27
28
  "rxjs": "~7.8.1",
28
29
  "primeng": "^19.0.0",
29
30
  "@storybook/angular": "^8.3.2",
30
31
  "@nx/devkit": "^20.3.0",
31
- "@onecx/nx-migration-utils": "^6.16.1",
32
+ "@onecx/nx-migration-utils": "^6.18.0",
32
33
  "@primeng/themes": "^19.0.0"
33
34
  },
34
35
  "dependencies": {
@@ -0,0 +1,48 @@
1
+ $overlay-bg-color: rgba(0, 0, 0, 0.5);
2
+ $loader-border-bottom-color: transparent;
3
+
4
+ /* You can add global styles to this file, and also import other style files */
5
+ @keyframes rotation {
6
+ 0% {
7
+ transform: rotate(0deg);
8
+ }
9
+ 100% {
10
+ transform: rotate(360deg);
11
+ }
12
+ }
13
+ .element-overlay {
14
+ &::before {
15
+ content: '';
16
+ position: absolute;
17
+ top: 0;
18
+ left: 0;
19
+ width: 100%;
20
+ height: 100%;
21
+ background-color: $overlay-bg-color;
22
+ z-index: 1;
23
+ }
24
+ position: relative;
25
+ cursor: default;
26
+ pointer-events: none;
27
+ }
28
+ .loader {
29
+ width: 28px;
30
+ height: 28px;
31
+ border: 3px solid var(--primary-color);
32
+ border-bottom-color: $loader-border-bottom-color;
33
+ border-radius: 50%;
34
+ display: inline-block;
35
+ box-sizing: border-box;
36
+ animation: rotation 1s linear infinite;
37
+ position: absolute;
38
+ top: 50%;
39
+ left: 50%;
40
+ transform: translate(-50%, -50%);
41
+ z-index: 2;
42
+ &.loader-small {
43
+ width: 20px;
44
+ height: 20px;
45
+ top: 20%;
46
+ left: 45%;
47
+ }
48
+ }
@@ -21,6 +21,7 @@ export * from '../testing/dialog-content.harness';
21
21
  export * from '../testing/dialog-footer.harness';
22
22
  export * from '../testing/dialog-inline.harness';
23
23
  export * from '../testing/dialog-message-content.harness';
24
+ export * from './tooltip.harness';
24
25
  export * from '@angular/cdk/testing';
25
26
  export * from '@angular/cdk/testing/testbed';
26
27
  export * from '@onecx/angular-testing';
@@ -0,0 +1,17 @@
1
+ import { ComponentHarness, HarnessPredicate, BaseHarnessFilters } from '@angular/cdk/testing';
2
+ export interface OcxTooltipHarnessFilters extends BaseHarnessFilters {
3
+ text?: string;
4
+ hostSelector?: string;
5
+ }
6
+ export declare class OcxTooltipHarness extends ComponentHarness {
7
+ private static readonly defaultHostSelector;
8
+ private static configuredHostSelector;
9
+ static get hostSelector(): string;
10
+ hover(): Promise<void>;
11
+ unhover(): Promise<void>;
12
+ getTooltipText(): Promise<string | null>;
13
+ getTooltipId(): Promise<string | null>;
14
+ isVisible(): Promise<boolean>;
15
+ static with(options?: OcxTooltipHarnessFilters): HarnessPredicate<OcxTooltipHarness>;
16
+ static withHostSelector(hostSelector: string): HarnessPredicate<OcxTooltipHarness>;
17
+ }