@dealpos-npm/ng-dealpos-library 3.2.1 → 3.3.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/components/uppy-file-upload/src/uppy.component.d.ts +4 -1
- package/esm2022/components/uppy-file-upload/src/uppy.component.mjs +9 -3
- package/fesm2022/dealpos-npm-ng-dealpos-library-components-uppy-file-upload.mjs +8 -2
- package/fesm2022/dealpos-npm-ng-dealpos-library-components-uppy-file-upload.mjs.map +1 -1
- package/package.json +18 -18
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
2
|
import { HttpService } from '@dealpos-npm/ng-dealpos-library/services/http';
|
|
3
3
|
import { Uppy } from '@uppy/core';
|
|
4
|
+
import '@uppy/core/dist/style.min.css';
|
|
5
|
+
import '@uppy/dashboard/dist/style.min.css';
|
|
4
6
|
import * as i0 from "@angular/core";
|
|
5
7
|
export declare class UppyComponent {
|
|
6
8
|
sampleUrl: string;
|
|
@@ -8,6 +10,7 @@ export declare class UppyComponent {
|
|
|
8
10
|
uppyCoreConfiguration: import("@angular/core").InputSignal<any>;
|
|
9
11
|
dashboardPropsConfiguration: import("@angular/core").InputSignal<any>;
|
|
10
12
|
fileUploaded: EventEmitter<Blob | File>;
|
|
13
|
+
fileRemoved: EventEmitter<void>;
|
|
11
14
|
http: HttpService;
|
|
12
15
|
uppy: Uppy;
|
|
13
16
|
dashboardProps: {
|
|
@@ -17,5 +20,5 @@ export declare class UppyComponent {
|
|
|
17
20
|
};
|
|
18
21
|
constructor();
|
|
19
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<UppyComponent, never>;
|
|
20
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<UppyComponent, "POS-uppy", never, { "sampleUrl": { "alias": "sampleUrl"; "required": false; }; "uppyCoreConfiguration": { "alias": "uppyCoreConfiguration"; "required": false; "isSignal": true; }; "dashboardPropsConfiguration": { "alias": "dashboardPropsConfiguration"; "required": false; "isSignal": true; }; }, { "fileUploaded": "fileUploaded"; }, never, never, true, never>;
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UppyComponent, "POS-uppy", never, { "sampleUrl": { "alias": "sampleUrl"; "required": false; }; "uppyCoreConfiguration": { "alias": "uppyCoreConfiguration"; "required": false; "isSignal": true; }; "dashboardPropsConfiguration": { "alias": "dashboardPropsConfiguration"; "required": false; "isSignal": true; }; }, { "fileUploaded": "fileUploaded"; "fileRemoved": "fileRemoved"; }, never, never, true, never>;
|
|
21
24
|
}
|
|
@@ -3,6 +3,8 @@ import { Component, effect, EventEmitter, inject, input, Input, Output } from '@
|
|
|
3
3
|
import { HttpService } from '@dealpos-npm/ng-dealpos-library/services/http';
|
|
4
4
|
import { UppyAngularDashboardModule } from '@uppy/angular';
|
|
5
5
|
import { Uppy } from '@uppy/core';
|
|
6
|
+
import '@uppy/core/dist/style.min.css';
|
|
7
|
+
import '@uppy/dashboard/dist/style.min.css';
|
|
6
8
|
import * as i0 from "@angular/core";
|
|
7
9
|
import * as i1 from "@uppy/angular";
|
|
8
10
|
import * as i2 from "@angular/common";
|
|
@@ -13,6 +15,7 @@ export class UppyComponent {
|
|
|
13
15
|
this.uppyCoreConfiguration = input();
|
|
14
16
|
this.dashboardPropsConfiguration = input();
|
|
15
17
|
this.fileUploaded = new EventEmitter();
|
|
18
|
+
this.fileRemoved = new EventEmitter();
|
|
16
19
|
this.http = inject(HttpService);
|
|
17
20
|
this.uppy = new Uppy({
|
|
18
21
|
debug: true,
|
|
@@ -35,12 +38,13 @@ export class UppyComponent {
|
|
|
35
38
|
this.showSample = false;
|
|
36
39
|
this.fileUploaded.emit(file);
|
|
37
40
|
});
|
|
38
|
-
this.uppy.on('file-removed', (
|
|
41
|
+
this.uppy.on('file-removed', () => {
|
|
39
42
|
this.showSample = true;
|
|
43
|
+
this.fileRemoved.emit();
|
|
40
44
|
});
|
|
41
45
|
}
|
|
42
46
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: UppyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
43
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.0", type: UppyComponent, isStandalone: true, selector: "POS-uppy", inputs: { sampleUrl: { classPropertyName: "sampleUrl", publicName: "sampleUrl", isSignal: false, isRequired: false, transformFunction: null }, uppyCoreConfiguration: { classPropertyName: "uppyCoreConfiguration", publicName: "uppyCoreConfiguration", isSignal: true, isRequired: false, transformFunction: null }, dashboardPropsConfiguration: { classPropertyName: "dashboardPropsConfiguration", publicName: "dashboardPropsConfiguration", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { fileUploaded: "fileUploaded" }, ngImport: i0, template: "<div class=\"position-relative\">\r\n <uppy-dashboard [uppy]=\"uppy\" [props]=\"dashboardProps\"> </uppy-dashboard>\r\n <a *ngIf=\"sampleUrl && showSample\" class=\"sample position-absolute\" role=\"button\" [href]=\"sampleUrl\">\r\n <i class=\"fa-solid fa-download ms-3\"></i> Download Template\r\n </a>\r\n</div>", styles: ["::ng-deep .uppy-Dashboard-AddFiles-info{display:none!important}.sample{top:53%;left:calc(50% - 63.5px)}\n"], dependencies: [{ kind: "ngmodule", type: UppyAngularDashboardModule }, { kind: "component", type: i1.DashboardComponent, selector: "uppy-dashboard", inputs: ["uppy", "props"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); }
|
|
47
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.0", type: UppyComponent, isStandalone: true, selector: "POS-uppy", inputs: { sampleUrl: { classPropertyName: "sampleUrl", publicName: "sampleUrl", isSignal: false, isRequired: false, transformFunction: null }, uppyCoreConfiguration: { classPropertyName: "uppyCoreConfiguration", publicName: "uppyCoreConfiguration", isSignal: true, isRequired: false, transformFunction: null }, dashboardPropsConfiguration: { classPropertyName: "dashboardPropsConfiguration", publicName: "dashboardPropsConfiguration", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { fileUploaded: "fileUploaded", fileRemoved: "fileRemoved" }, ngImport: i0, template: "<div class=\"position-relative\">\r\n <uppy-dashboard [uppy]=\"uppy\" [props]=\"dashboardProps\"> </uppy-dashboard>\r\n <a *ngIf=\"sampleUrl && showSample\" class=\"sample position-absolute\" role=\"button\" [href]=\"sampleUrl\">\r\n <i class=\"fa-solid fa-download ms-3\"></i> Download Template\r\n </a>\r\n</div>", styles: ["::ng-deep .uppy-Dashboard-AddFiles-info{display:none!important}.sample{top:53%;left:calc(50% - 63.5px)}\n"], dependencies: [{ kind: "ngmodule", type: UppyAngularDashboardModule }, { kind: "component", type: i1.DashboardComponent, selector: "uppy-dashboard", inputs: ["uppy", "props"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); }
|
|
44
48
|
}
|
|
45
49
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: UppyComponent, decorators: [{
|
|
46
50
|
type: Component,
|
|
@@ -49,5 +53,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
|
|
|
49
53
|
type: Input
|
|
50
54
|
}], fileUploaded: [{
|
|
51
55
|
type: Output
|
|
56
|
+
}], fileRemoved: [{
|
|
57
|
+
type: Output
|
|
52
58
|
}] } });
|
|
53
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
59
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXBweS5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9kZWFscG9zLW5wbS9uZy1kZWFscG9zLWxpY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VXJsXCI+XHJcbiAgICAgICAgPGkgY2xhc3M9XCJmYS1zb2xpZCBmYS1kb3dubG9hZCBtcy0zXCI+PC9pPiBEb3dubG9hZCBUZW1wbGF0ZVxyXG4gICAgPC9hPlxyXG48L2Rpdj4iXX0=
|
|
@@ -6,6 +6,8 @@ import { HttpService } from '@dealpos-npm/ng-dealpos-library/services/http';
|
|
|
6
6
|
import * as i1 from '@uppy/angular';
|
|
7
7
|
import { UppyAngularDashboardModule } from '@uppy/angular';
|
|
8
8
|
import { Uppy } from '@uppy/core';
|
|
9
|
+
import '@uppy/core/dist/style.min.css';
|
|
10
|
+
import '@uppy/dashboard/dist/style.min.css';
|
|
9
11
|
|
|
10
12
|
class UppyComponent {
|
|
11
13
|
constructor() {
|
|
@@ -14,6 +16,7 @@ class UppyComponent {
|
|
|
14
16
|
this.uppyCoreConfiguration = input();
|
|
15
17
|
this.dashboardPropsConfiguration = input();
|
|
16
18
|
this.fileUploaded = new EventEmitter();
|
|
19
|
+
this.fileRemoved = new EventEmitter();
|
|
17
20
|
this.http = inject(HttpService);
|
|
18
21
|
this.uppy = new Uppy({
|
|
19
22
|
debug: true,
|
|
@@ -36,12 +39,13 @@ class UppyComponent {
|
|
|
36
39
|
this.showSample = false;
|
|
37
40
|
this.fileUploaded.emit(file);
|
|
38
41
|
});
|
|
39
|
-
this.uppy.on('file-removed', (
|
|
42
|
+
this.uppy.on('file-removed', () => {
|
|
40
43
|
this.showSample = true;
|
|
44
|
+
this.fileRemoved.emit();
|
|
41
45
|
});
|
|
42
46
|
}
|
|
43
47
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: UppyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
44
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.0", type: UppyComponent, isStandalone: true, selector: "POS-uppy", inputs: { sampleUrl: { classPropertyName: "sampleUrl", publicName: "sampleUrl", isSignal: false, isRequired: false, transformFunction: null }, uppyCoreConfiguration: { classPropertyName: "uppyCoreConfiguration", publicName: "uppyCoreConfiguration", isSignal: true, isRequired: false, transformFunction: null }, dashboardPropsConfiguration: { classPropertyName: "dashboardPropsConfiguration", publicName: "dashboardPropsConfiguration", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { fileUploaded: "fileUploaded" }, ngImport: i0, template: "<div class=\"position-relative\">\r\n <uppy-dashboard [uppy]=\"uppy\" [props]=\"dashboardProps\"> </uppy-dashboard>\r\n <a *ngIf=\"sampleUrl && showSample\" class=\"sample position-absolute\" role=\"button\" [href]=\"sampleUrl\">\r\n <i class=\"fa-solid fa-download ms-3\"></i> Download Template\r\n </a>\r\n</div>", styles: ["::ng-deep .uppy-Dashboard-AddFiles-info{display:none!important}.sample{top:53%;left:calc(50% - 63.5px)}\n"], dependencies: [{ kind: "ngmodule", type: UppyAngularDashboardModule }, { kind: "component", type: i1.DashboardComponent, selector: "uppy-dashboard", inputs: ["uppy", "props"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); }
|
|
48
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.0", type: UppyComponent, isStandalone: true, selector: "POS-uppy", inputs: { sampleUrl: { classPropertyName: "sampleUrl", publicName: "sampleUrl", isSignal: false, isRequired: false, transformFunction: null }, uppyCoreConfiguration: { classPropertyName: "uppyCoreConfiguration", publicName: "uppyCoreConfiguration", isSignal: true, isRequired: false, transformFunction: null }, dashboardPropsConfiguration: { classPropertyName: "dashboardPropsConfiguration", publicName: "dashboardPropsConfiguration", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { fileUploaded: "fileUploaded", fileRemoved: "fileRemoved" }, ngImport: i0, template: "<div class=\"position-relative\">\r\n <uppy-dashboard [uppy]=\"uppy\" [props]=\"dashboardProps\"> </uppy-dashboard>\r\n <a *ngIf=\"sampleUrl && showSample\" class=\"sample position-absolute\" role=\"button\" [href]=\"sampleUrl\">\r\n <i class=\"fa-solid fa-download ms-3\"></i> Download Template\r\n </a>\r\n</div>", styles: ["::ng-deep .uppy-Dashboard-AddFiles-info{display:none!important}.sample{top:53%;left:calc(50% - 63.5px)}\n"], dependencies: [{ kind: "ngmodule", type: UppyAngularDashboardModule }, { kind: "component", type: i1.DashboardComponent, selector: "uppy-dashboard", inputs: ["uppy", "props"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); }
|
|
45
49
|
}
|
|
46
50
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: UppyComponent, decorators: [{
|
|
47
51
|
type: Component,
|
|
@@ -50,6 +54,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
|
|
|
50
54
|
type: Input
|
|
51
55
|
}], fileUploaded: [{
|
|
52
56
|
type: Output
|
|
57
|
+
}], fileRemoved: [{
|
|
58
|
+
type: Output
|
|
53
59
|
}] } });
|
|
54
60
|
|
|
55
61
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dealpos-npm-ng-dealpos-library-components-uppy-file-upload.mjs","sources":["../../../projects/dealpos-npm/ng-dealpos-library/components/uppy-file-upload/src/uppy.component.ts","../../../projects/dealpos-npm/ng-dealpos-library/components/uppy-file-upload/src/uppy.component.html","../../../projects/dealpos-npm/ng-dealpos-library/components/uppy-file-upload/dealpos-npm-ng-dealpos-library-components-uppy-file-upload.ts"],"sourcesContent":["import { CommonModule } from '@angular/common';\r\nimport { Component, effect, EventEmitter, inject, input, Input, Output } from '@angular/core';\r\nimport { HttpService } from '@dealpos-npm/ng-dealpos-library/services/http';\r\nimport { UppyAngularDashboardModule } from '@uppy/angular';\r\nimport { Uppy } from '@uppy/core';\r\n\r\n@Component({\r\n selector: 'POS-uppy',\r\n standalone: true,\r\n imports: [UppyAngularDashboardModule, CommonModule],\r\n templateUrl: './uppy.component.html',\r\n styleUrl: './uppy.component.scss'\r\n})\r\nexport class UppyComponent {\r\n @Input() sampleUrl: string = ''\r\n showSample: boolean = true\r\n uppyCoreConfiguration = input<any>();\r\n dashboardPropsConfiguration = input<any>();\r\n @Output() fileUploaded = new EventEmitter<Blob | File>()\r\n\r\n http = inject(HttpService)\r\n\r\n uppy: Uppy = new Uppy({ \r\n debug: true, \r\n autoProceed: true, \r\n allowMultipleUploadBatches: false,\r\n restrictions: {\r\n allowedFileTypes: ['.csv'],\r\n maxTotalFileSize: 1000000\r\n }\r\n });\r\n \r\n dashboardProps = {\r\n hideUploadButton: true,\r\n width: 580,\r\n height: 350\r\n }\r\n\r\n constructor() {\r\n effect(() => this.uppy.setOptions({...this.uppyCoreConfiguration()}))\r\n effect(() => this.dashboardProps = ({...this.dashboardProps, ...this.dashboardPropsConfiguration()}))\r\n\r\n this.uppy.on('upload', (_, uppyFiles) => {\r\n const file = uppyFiles[0]?.data\r\n this.showSample = false\r\n this.fileUploaded.emit(file)\r\n })\r\n\r\n this.uppy.on('file-removed', (
|
|
1
|
+
{"version":3,"file":"dealpos-npm-ng-dealpos-library-components-uppy-file-upload.mjs","sources":["../../../projects/dealpos-npm/ng-dealpos-library/components/uppy-file-upload/src/uppy.component.ts","../../../projects/dealpos-npm/ng-dealpos-library/components/uppy-file-upload/src/uppy.component.html","../../../projects/dealpos-npm/ng-dealpos-library/components/uppy-file-upload/dealpos-npm-ng-dealpos-library-components-uppy-file-upload.ts"],"sourcesContent":["import { CommonModule } from '@angular/common';\r\nimport { Component, effect, EventEmitter, inject, input, Input, Output } from '@angular/core';\r\nimport { HttpService } from '@dealpos-npm/ng-dealpos-library/services/http';\r\nimport { UppyAngularDashboardModule } from '@uppy/angular';\r\nimport { Uppy } from '@uppy/core';\r\nimport '@uppy/core/dist/style.min.css';\r\nimport '@uppy/dashboard/dist/style.min.css';\r\n\r\n@Component({\r\n selector: 'POS-uppy',\r\n standalone: true,\r\n imports: [UppyAngularDashboardModule, CommonModule],\r\n templateUrl: './uppy.component.html',\r\n styleUrl: './uppy.component.scss'\r\n})\r\nexport class UppyComponent {\r\n @Input() sampleUrl: string = ''\r\n showSample: boolean = true\r\n uppyCoreConfiguration = input<any>();\r\n dashboardPropsConfiguration = input<any>();\r\n @Output() fileUploaded = new EventEmitter<Blob | File>()\r\n @Output() fileRemoved = new EventEmitter<void>()\r\n\r\n http = inject(HttpService)\r\n\r\n uppy: Uppy = new Uppy({ \r\n debug: true, \r\n autoProceed: true, \r\n allowMultipleUploadBatches: false,\r\n restrictions: {\r\n allowedFileTypes: ['.csv'],\r\n maxTotalFileSize: 1000000\r\n }\r\n });\r\n \r\n dashboardProps = {\r\n hideUploadButton: true,\r\n width: 580,\r\n height: 350\r\n }\r\n\r\n constructor() {\r\n effect(() => this.uppy.setOptions({...this.uppyCoreConfiguration()}))\r\n effect(() => this.dashboardProps = ({...this.dashboardProps, ...this.dashboardPropsConfiguration()}))\r\n\r\n this.uppy.on('upload', (_, uppyFiles) => {\r\n const file = uppyFiles[0]?.data\r\n this.showSample = false\r\n this.fileUploaded.emit(file)\r\n })\r\n\r\n this.uppy.on('file-removed', () => {\r\n this.showSample = true\r\n this.fileRemoved.emit()\r\n });\r\n }\r\n}\r\n","<div class=\"position-relative\">\r\n <uppy-dashboard [uppy]=\"uppy\" [props]=\"dashboardProps\"> </uppy-dashboard>\r\n <a *ngIf=\"sampleUrl && showSample\" class=\"sample position-absolute\" role=\"button\" [href]=\"sampleUrl\">\r\n <i class=\"fa-solid fa-download ms-3\"></i> Download Template\r\n </a>\r\n</div>","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;MAea,aAAa,CAAA;AA0BxB,IAAA,WAAA,GAAA;QAzBS,IAAS,CAAA,SAAA,GAAW,EAAE,CAAA;QAC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A,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,0BAA0B,yIAAE,YAAY,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,IAAA,EAAA,QAAA,EAAA,QAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,UAAA,EAAA,UAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAIvC,aAAa,EAAA,UAAA,EAAA,CAAA;kBAPzB,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,UAAU,cACR,IAAI,EAAA,OAAA,EACP,CAAC,0BAA0B,EAAE,YAAY,CAAC,EAAA,QAAA,EAAA,4UAAA,EAAA,MAAA,EAAA,CAAA,2GAAA,CAAA,EAAA,CAAA;wDAK1C,SAAS,EAAA,CAAA;sBAAjB,KAAK;gBAII,YAAY,EAAA,CAAA;sBAArB,MAAM;gBACG,WAAW,EAAA,CAAA;sBAApB,MAAM;;;AErBT;;AAEG;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dealpos-npm/ng-dealpos-library",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.3.0",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "^18.2.0",
|
|
6
6
|
"@angular/core": "^18.2.0",
|
|
@@ -134,18 +134,18 @@
|
|
|
134
134
|
"esm": "./esm2022/directives/file-size-check/dealpos-npm-ng-dealpos-library-directives-file-size-check.mjs",
|
|
135
135
|
"default": "./fesm2022/dealpos-npm-ng-dealpos-library-directives-file-size-check.mjs"
|
|
136
136
|
},
|
|
137
|
-
"./directives/form-or-floating-on-masked": {
|
|
138
|
-
"types": "./directives/form-or-floating-on-masked/index.d.ts",
|
|
139
|
-
"esm2022": "./esm2022/directives/form-or-floating-on-masked/dealpos-npm-ng-dealpos-library-directives-form-or-floating-on-masked.mjs",
|
|
140
|
-
"esm": "./esm2022/directives/form-or-floating-on-masked/dealpos-npm-ng-dealpos-library-directives-form-or-floating-on-masked.mjs",
|
|
141
|
-
"default": "./fesm2022/dealpos-npm-ng-dealpos-library-directives-form-or-floating-on-masked.mjs"
|
|
142
|
-
},
|
|
143
137
|
"./directives/is-invalid-email-or-phone": {
|
|
144
138
|
"types": "./directives/is-invalid-email-or-phone/index.d.ts",
|
|
145
139
|
"esm2022": "./esm2022/directives/is-invalid-email-or-phone/dealpos-npm-ng-dealpos-library-directives-is-invalid-email-or-phone.mjs",
|
|
146
140
|
"esm": "./esm2022/directives/is-invalid-email-or-phone/dealpos-npm-ng-dealpos-library-directives-is-invalid-email-or-phone.mjs",
|
|
147
141
|
"default": "./fesm2022/dealpos-npm-ng-dealpos-library-directives-is-invalid-email-or-phone.mjs"
|
|
148
142
|
},
|
|
143
|
+
"./directives/form-or-floating-on-masked": {
|
|
144
|
+
"types": "./directives/form-or-floating-on-masked/index.d.ts",
|
|
145
|
+
"esm2022": "./esm2022/directives/form-or-floating-on-masked/dealpos-npm-ng-dealpos-library-directives-form-or-floating-on-masked.mjs",
|
|
146
|
+
"esm": "./esm2022/directives/form-or-floating-on-masked/dealpos-npm-ng-dealpos-library-directives-form-or-floating-on-masked.mjs",
|
|
147
|
+
"default": "./fesm2022/dealpos-npm-ng-dealpos-library-directives-form-or-floating-on-masked.mjs"
|
|
148
|
+
},
|
|
149
149
|
"./directives/numeric-input-only": {
|
|
150
150
|
"types": "./directives/numeric-input-only/index.d.ts",
|
|
151
151
|
"esm2022": "./esm2022/directives/numeric-input-only/dealpos-npm-ng-dealpos-library-directives-numeric-input-only.mjs",
|
|
@@ -158,17 +158,23 @@
|
|
|
158
158
|
"esm": "./esm2022/directives/simple-keyboard/dealpos-npm-ng-dealpos-library-directives-simple-keyboard.mjs",
|
|
159
159
|
"default": "./fesm2022/dealpos-npm-ng-dealpos-library-directives-simple-keyboard.mjs"
|
|
160
160
|
},
|
|
161
|
+
"./pipes/filter": {
|
|
162
|
+
"types": "./pipes/filter/index.d.ts",
|
|
163
|
+
"esm2022": "./esm2022/pipes/filter/dealpos-npm-ng-dealpos-library-pipes-filter.mjs",
|
|
164
|
+
"esm": "./esm2022/pipes/filter/dealpos-npm-ng-dealpos-library-pipes-filter.mjs",
|
|
165
|
+
"default": "./fesm2022/dealpos-npm-ng-dealpos-library-pipes-filter.mjs"
|
|
166
|
+
},
|
|
161
167
|
"./pipes/duration": {
|
|
162
168
|
"types": "./pipes/duration/index.d.ts",
|
|
163
169
|
"esm2022": "./esm2022/pipes/duration/dealpos-npm-ng-dealpos-library-pipes-duration.mjs",
|
|
164
170
|
"esm": "./esm2022/pipes/duration/dealpos-npm-ng-dealpos-library-pipes-duration.mjs",
|
|
165
171
|
"default": "./fesm2022/dealpos-npm-ng-dealpos-library-pipes-duration.mjs"
|
|
166
172
|
},
|
|
167
|
-
"./pipes/
|
|
168
|
-
"types": "./pipes/
|
|
169
|
-
"esm2022": "./esm2022/pipes/
|
|
170
|
-
"esm": "./esm2022/pipes/
|
|
171
|
-
"default": "./fesm2022/dealpos-npm-ng-dealpos-library-pipes-
|
|
173
|
+
"./pipes/newlines": {
|
|
174
|
+
"types": "./pipes/newlines/index.d.ts",
|
|
175
|
+
"esm2022": "./esm2022/pipes/newlines/dealpos-npm-ng-dealpos-library-pipes-newlines.mjs",
|
|
176
|
+
"esm": "./esm2022/pipes/newlines/dealpos-npm-ng-dealpos-library-pipes-newlines.mjs",
|
|
177
|
+
"default": "./fesm2022/dealpos-npm-ng-dealpos-library-pipes-newlines.mjs"
|
|
172
178
|
},
|
|
173
179
|
"./pipes/fraction": {
|
|
174
180
|
"types": "./pipes/fraction/index.d.ts",
|
|
@@ -181,12 +187,6 @@
|
|
|
181
187
|
"esm2022": "./esm2022/services/http/dealpos-npm-ng-dealpos-library-services-http.mjs",
|
|
182
188
|
"esm": "./esm2022/services/http/dealpos-npm-ng-dealpos-library-services-http.mjs",
|
|
183
189
|
"default": "./fesm2022/dealpos-npm-ng-dealpos-library-services-http.mjs"
|
|
184
|
-
},
|
|
185
|
-
"./pipes/newlines": {
|
|
186
|
-
"types": "./pipes/newlines/index.d.ts",
|
|
187
|
-
"esm2022": "./esm2022/pipes/newlines/dealpos-npm-ng-dealpos-library-pipes-newlines.mjs",
|
|
188
|
-
"esm": "./esm2022/pipes/newlines/dealpos-npm-ng-dealpos-library-pipes-newlines.mjs",
|
|
189
|
-
"default": "./fesm2022/dealpos-npm-ng-dealpos-library-pipes-newlines.mjs"
|
|
190
190
|
}
|
|
191
191
|
}
|
|
192
192
|
}
|