@datarailsshared/datarailsshared 1.5.572 → 1.5.574

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,19 @@
1
+ import { TemplateRef, ViewContainerRef } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class LetContext<T> {
4
+ private readonly dir;
5
+ constructor(dir: LetDirective<T>);
6
+ get ngLet(): T;
7
+ }
8
+ /**
9
+ * Works like *ngIf but does not have a condition
10
+ * Use it to declare the result of pipes calculation
11
+ * (i.e. async pipe)
12
+ */
13
+ export declare class LetDirective<T> {
14
+ ngLet: T;
15
+ constructor(viewContainer: ViewContainerRef, templateRef: TemplateRef<LetContext<T>>);
16
+ static ngTemplateContextGuard<T>(dir: LetDirective<T>, ctx: any): ctx is LetContext<T>;
17
+ static ɵfac: i0.ɵɵFactoryDeclaration<LetDirective<any>, never>;
18
+ static ɵdir: i0.ɵɵDirectiveDeclaration<LetDirective<any>, "[ngLet]", never, { "ngLet": { "alias": "ngLet"; "required": false; }; }, {}, never, never, true, never>;
19
+ }
@@ -0,0 +1,8 @@
1
+ import { NgForOf } from '@angular/common';
2
+ import * as i0 from "@angular/core";
3
+ export declare class TrackByPropertyDirective<T> {
4
+ ngForTrackByProperty: keyof T;
5
+ constructor(ngForOfDir: NgForOf<T>);
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<TrackByPropertyDirective<any>, [{ host: true; }]>;
7
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TrackByPropertyDirective<any>, "[ngForTrackByProperty]", never, { "ngForTrackByProperty": { "alias": "ngForTrackByProperty"; "required": false; }; }, {}, never, never, true, never>;
8
+ }
@@ -0,0 +1,7 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class FilterPipe implements PipeTransform {
4
+ transform<T>(arr: T[], fn: any, type?: string, refresh?: boolean): T[];
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<FilterPipe, never>;
6
+ static ɵpipe: i0.ɵɵPipeDeclaration<FilterPipe, "filter", true>;
7
+ }
@@ -0,0 +1,7 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class ImgPipe implements PipeTransform {
4
+ transform(value: string, ...args: unknown[]): unknown;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<ImgPipe, never>;
6
+ static ɵpipe: i0.ɵɵPipeDeclaration<ImgPipe, "img", true>;
7
+ }
@@ -1,5 +1,6 @@
1
1
  import { TimeframeOption } from '../models/datePicker';
2
2
  import { Observable } from 'rxjs';
3
+ import { ActivatedRoute } from '@angular/router';
3
4
  export declare class DrSharedUtils {
4
5
  /**
5
6
  * Get timeframe (day, year, month, quarter) based on passed format
@@ -10,4 +11,9 @@ export declare class DrSharedUtils {
10
11
  static getDateByTag(tag: string): any;
11
12
  static fromResizeObserver: (target: Element) => Observable<ResizeObserverEntry[]>;
12
13
  static normalizeLineEndings: (str: string) => string;
14
+ static isLocalhost: () => boolean;
15
+ static getRouteDataAttributeValue: <T>(activatedRoute: ActivatedRoute, attribute: string, defaultValue?: T) => T;
16
+ static getProperty: (value: {
17
+ [key: string]: any;
18
+ }, key: string) => any;
13
19
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datarailsshared/datarailsshared",
3
- "version": "1.5.572",
3
+ "version": "1.5.574",
4
4
  "description": "DataRails shared components",
5
5
  "keywords": [
6
6
  "angular",
package/public-api.d.ts CHANGED
@@ -98,6 +98,10 @@ export * from './lib/dr-avatar/types';
98
98
  export * from './lib/dr-inputs/dr-model-debounce-change.directive';
99
99
  export * from './lib/directives/click-outside/click-outside.directive';
100
100
  export * from './lib/directives/dr-shine-animation/dr-shine-animation.directive';
101
+ export * from './lib/directives/let/let.directive';
102
+ export * from './lib/directives/ng-track-by-property/ng-track-by-property.directive';
103
+ export * from './lib/pipes/img/img.pipe';
104
+ export * from './lib/pipes/filter/filter.pipe';
101
105
  export * from './lib/models/datePicker';
102
106
  export { TAG_TYPES, ITag, IDateTag, IListTag, ITagForServer, IDynamicTag, TDynamicTagValue, TDynamicTag, TagTypes, TagsConfigSubType, TConnectedTags, } from './lib/models/serverTags';
103
107
  export { ISpinnerOptions, SpinnerType, SpinnerSize } from './lib/models/spinnerOptions';