piral-ng-common 19.0.0 → 20.0.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.
@@ -1,6 +1,6 @@
1
1
  import { CommonModule } from '@angular/common';
2
2
  import * as i0 from '@angular/core';
3
- import { Component, Inject, Input, Pipe, NgModule } from '@angular/core';
3
+ import { Input, Inject, Component, Pipe, NgModule } from '@angular/core';
4
4
 
5
5
  const selector = 'extension-component';
6
6
  class NgExtension {
@@ -26,10 +26,10 @@ class NgExtension {
26
26
  params: this.params,
27
27
  });
28
28
  }
29
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: NgExtension, deps: [{ token: i0.ElementRef }, { token: 'piral' }], target: i0.ɵɵFactoryTarget.Component });
30
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.5", type: NgExtension, isStandalone: false, selector: "extension-component", inputs: { name: "name", params: "params" }, usesOnChanges: true, ngImport: i0, template: '', isInline: true });
29
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: NgExtension, deps: [{ token: i0.ElementRef }, { token: 'piral' }], target: i0.ɵɵFactoryTarget.Component });
30
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.0", type: NgExtension, isStandalone: false, selector: "extension-component", inputs: { name: "name", params: "params" }, usesOnChanges: true, ngImport: i0, template: '', isInline: true });
31
31
  }
32
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: NgExtension, decorators: [{
32
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: NgExtension, decorators: [{
33
33
  type: Component,
34
34
  args: [{
35
35
  selector,
@@ -56,10 +56,10 @@ class ResourceUrlPipe {
56
56
  const { basePath = '/' } = this.piral.meta;
57
57
  return basePath + value;
58
58
  }
59
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: ResourceUrlPipe, deps: [{ token: 'piral' }], target: i0.ɵɵFactoryTarget.Pipe });
60
- static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.0.5", ngImport: i0, type: ResourceUrlPipe, isStandalone: false, name: "resourceUrl" });
59
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: ResourceUrlPipe, deps: [{ token: 'piral' }], target: i0.ɵɵFactoryTarget.Pipe });
60
+ static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.0.0", ngImport: i0, type: ResourceUrlPipe, isStandalone: false, name: "resourceUrl" });
61
61
  }
62
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: ResourceUrlPipe, decorators: [{
62
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: ResourceUrlPipe, decorators: [{
63
63
  type: Pipe,
64
64
  args: [{ name: 'resourceUrl', standalone: false }]
65
65
  }], ctorParameters: () => [{ type: undefined, decorators: [{
@@ -72,11 +72,11 @@ const exportsDef = [NgExtension, ResourceUrlPipe];
72
72
  const importsDef = [CommonModule];
73
73
  class SharedModule {
74
74
  static props = {};
75
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: SharedModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
76
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.5", ngImport: i0, type: SharedModule, declarations: [NgExtension, ResourceUrlPipe], imports: [CommonModule], exports: [NgExtension, ResourceUrlPipe] });
77
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: SharedModule, imports: [importsDef] });
75
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: SharedModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
76
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.0.0", ngImport: i0, type: SharedModule, declarations: [NgExtension, ResourceUrlPipe], imports: [CommonModule], exports: [NgExtension, ResourceUrlPipe] });
77
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: SharedModule, imports: [importsDef] });
78
78
  }
79
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: SharedModule, decorators: [{
79
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: SharedModule, decorators: [{
80
80
  type: NgModule,
81
81
  args: [{
82
82
  declarations: declarationsDef,
package/index.d.ts CHANGED
@@ -1 +1,33 @@
1
- export * from './public_api';
1
+ import * as i0 from '@angular/core';
2
+ import { OnChanges, ElementRef, PipeTransform } from '@angular/core';
3
+ import { PiletApi } from 'piral-core';
4
+ import * as i3 from '@angular/common';
5
+
6
+ declare class NgExtension implements OnChanges {
7
+ private elRef;
8
+ private piral;
9
+ name: string | undefined;
10
+ params: object | undefined;
11
+ constructor(elRef: ElementRef<HTMLElement>, piral: PiletApi);
12
+ ngOnChanges(): void;
13
+ ngAfterContentInit(): void;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgExtension, never>;
15
+ static ɵcmp: i0.ɵɵComponentDeclaration<NgExtension, "extension-component", never, { "name": { "alias": "name"; "required": false; }; "params": { "alias": "params"; "required": false; }; }, {}, never, never, false, never>;
16
+ }
17
+
18
+ declare class ResourceUrlPipe implements PipeTransform {
19
+ private piral;
20
+ constructor(piral: PiletApi);
21
+ transform(value: string): string;
22
+ static ɵfac: i0.ɵɵFactoryDeclaration<ResourceUrlPipe, never>;
23
+ static ɵpipe: i0.ɵɵPipeDeclaration<ResourceUrlPipe, "resourceUrl", false>;
24
+ }
25
+
26
+ declare class SharedModule {
27
+ static props: {};
28
+ static ɵfac: i0.ɵɵFactoryDeclaration<SharedModule, never>;
29
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SharedModule, [typeof NgExtension, typeof ResourceUrlPipe], [typeof i3.CommonModule], [typeof NgExtension, typeof ResourceUrlPipe]>;
30
+ static ɵinj: i0.ɵɵInjectorDeclaration<SharedModule>;
31
+ }
32
+
33
+ export { NgExtension, ResourceUrlPipe, SharedModule };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "piral-ng-common",
3
- "version": "19.0.0",
3
+ "version": "20.0.1",
4
4
  "description": "Common module for piral-ng.",
5
5
  "keywords": [],
6
6
  "author": "smapiot",
package/NgExtension.d.ts DELETED
@@ -1,14 +0,0 @@
1
- import type { PiletApi } from 'piral-core';
2
- import { ElementRef, OnChanges } from '@angular/core';
3
- import * as i0 from "@angular/core";
4
- export declare class NgExtension implements OnChanges {
5
- private elRef;
6
- private piral;
7
- name: string | undefined;
8
- params: object | undefined;
9
- constructor(elRef: ElementRef<HTMLElement>, piral: PiletApi);
10
- ngOnChanges(): void;
11
- ngAfterContentInit(): void;
12
- static ɵfac: i0.ɵɵFactoryDeclaration<NgExtension, never>;
13
- static ɵcmp: i0.ɵɵComponentDeclaration<NgExtension, "extension-component", never, { "name": { "alias": "name"; "required": false; }; "params": { "alias": "params"; "required": false; }; }, {}, never, never, false, never>;
14
- }
@@ -1,10 +0,0 @@
1
- import type { PiletApi } from 'piral-core';
2
- import { PipeTransform } from '@angular/core';
3
- import * as i0 from "@angular/core";
4
- export declare class ResourceUrlPipe implements PipeTransform {
5
- private piral;
6
- constructor(piral: PiletApi);
7
- transform(value: string): string;
8
- static ɵfac: i0.ɵɵFactoryDeclaration<ResourceUrlPipe, never>;
9
- static ɵpipe: i0.ɵɵPipeDeclaration<ResourceUrlPipe, "resourceUrl", false>;
10
- }
package/SharedModule.d.ts DELETED
@@ -1,10 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./NgExtension";
3
- import * as i2 from "./ResourceUrlPipe";
4
- import * as i3 from "@angular/common";
5
- export declare class SharedModule {
6
- static props: {};
7
- static ɵfac: i0.ɵɵFactoryDeclaration<SharedModule, never>;
8
- static ɵmod: i0.ɵɵNgModuleDeclaration<SharedModule, [typeof i1.NgExtension, typeof i2.ResourceUrlPipe], [typeof i3.CommonModule], [typeof i1.NgExtension, typeof i2.ResourceUrlPipe]>;
9
- static ɵinj: i0.ɵɵInjectorDeclaration<SharedModule>;
10
- }
@@ -1,3 +0,0 @@
1
- exports.NgExtension = class {};
2
- exports.SharedModule = class {};
3
- exports.ResourceUrlPipe = class {};
package/public_api.d.ts DELETED
@@ -1,3 +0,0 @@
1
- export * from './SharedModule';
2
- export * from './NgExtension';
3
- export * from './ResourceUrlPipe';