@porscheinformatik/material-addons 17.0.1 → 17.0.3

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,13 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class DragAndDropDirectiveDirective {
4
+ onFileDropped: EventEmitter<any>;
5
+ private background;
6
+ private opacity;
7
+ onDragOver(event: any): void;
8
+ onDragLeave(event: any): void;
9
+ ondrop(event: any): void;
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<DragAndDropDirectiveDirective, never>;
11
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DragAndDropDirectiveDirective, "[madDragAndDrop]", never, {}, { "onFileDropped": "onFileDropped"; }, never, never, true, never>;
12
+ }
13
+ //# sourceMappingURL=drag-and-drop-directive.directive.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"drag-and-drop-directive.directive.d.ts","sourceRoot":"","sources":["../../../../projects/material-addons/src/lib/file-upload/drag-and-drop-directive.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,YAAY,EAAoC,MAAM,eAAe,CAAC;;AAEzF,qBAIa,6BAA6B;IAGxC,aAAa,oBAA2B;IAED,OAAO,CAAC,UAAU,CAAuB;IAClD,OAAO,CAAC,OAAO,CAAO;IAGd,UAAU,CAAC,KAAK,EAAE,GAAG;IAQpB,WAAW,CAAC,KAAK,EAAE,GAAG;IAStD,MAAM,CAAC,KAAK,EAAE,GAAG;yCA1Bb,6BAA6B;2CAA7B,6BAA6B;CAoCzC"}
@@ -0,0 +1,22 @@
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export type UploadError = "ONLY_SINGLE_FILE" | "FILETYPE_NOT_SUPPORTED";
4
+ export declare class FileUploadComponent implements OnInit {
5
+ id: string;
6
+ multiple: boolean;
7
+ accept: string[];
8
+ text: string;
9
+ showFileList: boolean;
10
+ fileEmitter: EventEmitter<FileList>;
11
+ errorEmitter: EventEmitter<UploadError>;
12
+ fileList: File[];
13
+ acceptForInput: string[];
14
+ private uploadError;
15
+ ngOnInit(): void;
16
+ uploadFile(fileList: FileList): void;
17
+ getFileEnding(name: string): void;
18
+ openFile(file: File): void;
19
+ static ɵfac: i0.ɵɵFactoryDeclaration<FileUploadComponent, never>;
20
+ static ɵcmp: i0.ɵɵComponentDeclaration<FileUploadComponent, "mad-file-upload", never, { "id": { "alias": "id"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "accept": { "alias": "accept"; "required": false; }; "text": { "alias": "text"; "required": false; }; "showFileList": { "alias": "showFileList"; "required": false; }; }, { "fileEmitter": "fileEmitter"; "errorEmitter": "errorEmitter"; }, never, never, true, never>;
21
+ }
22
+ //# sourceMappingURL=file-upload.component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"file-upload.component.d.ts","sourceRoot":"","sources":["../../../../projects/material-addons/src/lib/file-upload/file-upload.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,YAAY,EAAS,MAAM,EAAS,MAAM,eAAe,CAAC;;AAS7E,MAAM,MAAM,WAAW,GAAG,kBAAkB,GAAG,wBAAwB,CAAC;AAExE,qBAOa,mBAAoB,YAAW,MAAM;IAEvC,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,OAAO,CAAC;IAClB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,OAAO,CAAS;IAC7B,WAAW,yBAAgC;IAC3C,YAAY,4BAAmC;IAEzD,QAAQ,EAAE,IAAI,EAAE,CAAM;IACtB,cAAc,EAAE,MAAM,EAAE,CAAM;IAC9B,OAAO,CAAC,WAAW,CAAkB;IAErC,QAAQ,IAAI,IAAI;IAMhB,UAAU,CAAC,QAAQ,EAAE,QAAQ,GAAG,IAAI;IAoBpC,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAQjC,QAAQ,CAAC,IAAI,EAAE,IAAI;yCAhDR,mBAAmB;2CAAnB,mBAAmB;CAmD/B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@porscheinformatik/material-addons",
3
- "version": "17.0.1",
3
+ "version": "17.0.3",
4
4
  "description": "Custom theme and components for Angular Material",
5
5
  "homepage": "https://github.com/porscheinformatik/material-addons",
6
6
  "repository": {
package/public_api.d.ts CHANGED
@@ -35,4 +35,5 @@ export * from './lib/content-panel/content-panel.module';
35
35
  export * from './lib/flowbar/flowbar.component';
36
36
  export * from './lib/flowbar/flowbar.module';
37
37
  export * from './lib/material-addons.module';
38
+ export * from './lib/file-upload/file-upload.component';
38
39
  //# sourceMappingURL=public_api.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"public_api.d.ts","sourceRoot":"","sources":["../../projects/material-addons/src/public_api.ts"],"names":[],"mappings":"AAGA,cAAc,+DAA+D,CAAC;AAC9E,cAAc,4DAA4D,CAAC;AAC3E,cAAc,qBAAqB,CAAC;AACpC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2CAA2C,CAAC;AAC1D,cAAc,kFAAkF,CAAC;AACjG,cAAc,kEAAkE,CAAC;AACjF,cAAc,8BAA8B,CAAC;AAC7C,cAAc,iCAAiC,CAAC;AAChD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,wCAAwC,CAAC;AACvD,cAAc,mCAAmC,CAAC;AAClD,cAAc,0CAA0C,CAAC;AACzD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC;AACvC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,oCAAoC,CAAC;AACnD,cAAc,mBAAmB,CAAC;AAClC,cAAc,0BAA0B,CAAC;AACzC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,oCAAoC,CAAC;AACnD,cAAc,+CAA+C,CAAC;AAC9D,cAAc,4CAA4C,CAAC;AAC3D,cAAc,iCAAiC,CAAC;A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FAA+F,CAAC;AAC9G,cAAc,6FAA6F,CAAC;AAC5G,cAAc,6DAA6D,CAAC;AAC5E,cAAc,0CAA0C,CAAC;AACzD,cAAc,iCAAiC,CAAC;AAChD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,yCAAyC,CAAC"}
@@ -150,6 +150,10 @@ mad-link-button {
150
150
  margin-right: 8px;
151
151
  }
152
152
 
153
+ mad-danger-button {
154
+ margin-right: 8px;
155
+ }
156
+
153
157
  .simple-edit-section {
154
158
  display: flex;
155
159
  flex-direction: column;