@eurosat/buttons 10.0.0 → 14.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.
- package/esm2020/eurosat-buttons.mjs +5 -0
- package/esm2020/lib/components/dialog-confirm/dialog-confirm.component.mjs +56 -0
- package/esm2020/lib/components/dialog-form/dialog-form.component.mjs +36 -0
- package/esm2020/lib/components/dialog-result.mjs +2 -0
- package/esm2020/lib/es-buttons.component.mjs +200 -0
- package/esm2020/lib/es-buttons.module.mjs +59 -0
- package/esm2020/lib/model/es-button-action.mjs +13 -0
- package/esm2020/lib/model/es-button-server-response.mjs +2 -0
- package/esm2020/lib/model/es-button.interface.mjs +2 -0
- package/esm2020/public_api.mjs +9 -0
- package/fesm2015/eurosat-buttons.mjs +342 -0
- package/fesm2015/eurosat-buttons.mjs.map +1 -0
- package/fesm2020/eurosat-buttons.mjs +342 -0
- package/fesm2020/eurosat-buttons.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/components/dialog-confirm/dialog-confirm.component.d.ts +18 -15
- package/lib/components/dialog-form/dialog-form.component.d.ts +18 -15
- package/lib/components/dialog-result.d.ts +4 -4
- package/lib/es-buttons.component.d.ts +42 -39
- package/lib/es-buttons.module.d.ts +18 -2
- package/lib/model/es-button-action.d.ts +12 -12
- package/lib/model/es-button-server-response.d.ts +5 -5
- package/lib/model/es-button.interface.d.ts +14 -14
- package/package.json +26 -14
- package/public_api.d.ts +5 -5
- package/bundles/eurosat-buttons.umd.js +0 -592
- package/bundles/eurosat-buttons.umd.js.map +0 -1
- package/bundles/eurosat-buttons.umd.min.js +0 -2
- package/bundles/eurosat-buttons.umd.min.js.map +0 -1
- package/esm2015/eurosat-buttons.js +0 -12
- package/esm2015/lib/components/dialog-confirm/dialog-confirm.component.js +0 -98
- package/esm2015/lib/components/dialog-form/dialog-form.component.js +0 -68
- package/esm2015/lib/components/dialog-result.js +0 -16
- package/esm2015/lib/es-buttons.component.js +0 -327
- package/esm2015/lib/es-buttons.module.js +0 -46
- package/esm2015/lib/model/es-button-action.js +0 -42
- package/esm2015/lib/model/es-button-server-response.js +0 -16
- package/esm2015/lib/model/es-button.interface.js +0 -34
- package/esm2015/public_api.js +0 -14
- package/eurosat-buttons.d.ts +0 -6
- package/eurosat-buttons.metadata.json +0 -1
- package/fesm2015/eurosat-buttons.js +0 -627
- package/fesm2015/eurosat-buttons.js.map +0 -1
|
@@ -1,39 +1,42 @@
|
|
|
1
|
-
import { EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
-
import { Router } from '@angular/router';
|
|
3
|
-
import { EsButton } from './model/es-button.interface';
|
|
4
|
-
import { MatDialogRef } from '@angular/material/dialog';
|
|
5
|
-
import { MatSnackBar } from '@angular/material/snack-bar';
|
|
6
|
-
import { HttpService } from '@eurosat/http';
|
|
7
|
-
import { EsIcon } from '@eurosat/icon';
|
|
8
|
-
import { EsDialogService } from '@eurosat/dialog';
|
|
9
|
-
import { EsButtonServerResponse } from './model/es-button-server-response';
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
private
|
|
13
|
-
private
|
|
14
|
-
private
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
1
|
+
import { EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { Router } from '@angular/router';
|
|
3
|
+
import { EsButton } from './model/es-button.interface';
|
|
4
|
+
import { MatDialogRef } from '@angular/material/dialog';
|
|
5
|
+
import { MatSnackBar } from '@angular/material/snack-bar';
|
|
6
|
+
import { HttpService } from '@eurosat/http';
|
|
7
|
+
import { EsIcon } from '@eurosat/icon';
|
|
8
|
+
import { EsDialogService } from '@eurosat/dialog';
|
|
9
|
+
import { EsButtonServerResponse } from './model/es-button-server-response';
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
|
+
export declare class EsButtonsComponent implements OnChanges {
|
|
12
|
+
private router;
|
|
13
|
+
private dialog;
|
|
14
|
+
private snackBar;
|
|
15
|
+
private http;
|
|
16
|
+
parentWidth: number;
|
|
17
|
+
buttons: EsButton[];
|
|
18
|
+
forceMenu: boolean;
|
|
19
|
+
buttonClick: EventEmitter<EsButton>;
|
|
20
|
+
reload: EventEmitter<boolean>;
|
|
21
|
+
dialogCreated: EventEmitter<MatDialogRef<any, any>>;
|
|
22
|
+
serverResponse: EventEmitter<EsButtonServerResponse>;
|
|
23
|
+
menuVisible: boolean;
|
|
24
|
+
buttonWidth: number;
|
|
25
|
+
visibleButtons: EsButton[];
|
|
26
|
+
hiddenButtons: EsButton[];
|
|
27
|
+
esIcon: typeof EsIcon;
|
|
28
|
+
_width: number;
|
|
29
|
+
constructor(router: Router, dialog: EsDialogService, snackBar: MatSnackBar, http: HttpService);
|
|
30
|
+
showMenu(): boolean;
|
|
31
|
+
countVisible(): number;
|
|
32
|
+
getVisibleButtons(): EsButton[];
|
|
33
|
+
getHiddenButtons(): EsButton[];
|
|
34
|
+
ngOnChanges(simpleChange: SimpleChanges): void;
|
|
35
|
+
recalculateButtons(): void;
|
|
36
|
+
handleAction(button: EsButton): void;
|
|
37
|
+
openForm(button: EsButton): void;
|
|
38
|
+
openDelete(button: EsButton): void;
|
|
39
|
+
openConfirm(button: EsButton): void;
|
|
40
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EsButtonsComponent, never>;
|
|
41
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EsButtonsComponent, "es-buttons", never, { "parentWidth": "parentWidth"; "buttons": "buttons"; "forceMenu": "forceMenu"; }, { "buttonClick": "buttonClick"; "reload": "reload"; "dialogCreated": "dialogCreated"; "serverResponse": "serverResponse"; }, never, never, false>;
|
|
42
|
+
}
|
|
@@ -1,2 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./es-buttons.component";
|
|
3
|
+
import * as i2 from "./components/dialog-confirm/dialog-confirm.component";
|
|
4
|
+
import * as i3 from "./components/dialog-form/dialog-form.component";
|
|
5
|
+
import * as i4 from "@angular/common";
|
|
6
|
+
import * as i5 from "@angular/material/button";
|
|
7
|
+
import * as i6 from "@angular/material/tooltip";
|
|
8
|
+
import * as i7 from "@angular/material/menu";
|
|
9
|
+
import * as i8 from "@angular/material/snack-bar";
|
|
10
|
+
import * as i9 from "@ngx-translate/core";
|
|
11
|
+
import * as i10 from "@eurosat/icon";
|
|
12
|
+
import * as i11 from "@eurosat/dialog";
|
|
13
|
+
import * as i12 from "@eurosat/form";
|
|
14
|
+
export declare class EsButtonsModule {
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EsButtonsModule, never>;
|
|
16
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<EsButtonsModule, [typeof i1.EsButtonsComponent, typeof i2.DialogConfirmComponent, typeof i3.DialogFormComponent], [typeof i4.CommonModule, typeof i5.MatButtonModule, typeof i6.MatTooltipModule, typeof i7.MatMenuModule, typeof i8.MatSnackBarModule, typeof i9.TranslateModule, typeof i10.EsIconModule, typeof i11.EsDialogModule, typeof i12.EsFormModule], [typeof i1.EsButtonsComponent]>;
|
|
17
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<EsButtonsModule>;
|
|
18
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export declare class EsButtonAction {
|
|
2
|
-
static ACTION_DIALOG_CONFIRM: string;
|
|
3
|
-
static ACTION_DIALOG_DELETE: string;
|
|
4
|
-
static ACTION_DIALOG_FORM: string;
|
|
5
|
-
static ACTION_CARD_CONTENT_FORM: string;
|
|
6
|
-
static ACTION_CARD_CONTENT_WIZARD: string;
|
|
7
|
-
static ACTION_CHANGE_CARD_CONTENT: string;
|
|
8
|
-
static ACTION_DOWNLOAD: string;
|
|
9
|
-
static ACTION_REQUEST: string;
|
|
10
|
-
static ACTION_ROUTER_NAVIGATE: string;
|
|
11
|
-
static ACTION_WINDOW_LOCATION: string;
|
|
12
|
-
}
|
|
1
|
+
export declare class EsButtonAction {
|
|
2
|
+
static ACTION_DIALOG_CONFIRM: string;
|
|
3
|
+
static ACTION_DIALOG_DELETE: string;
|
|
4
|
+
static ACTION_DIALOG_FORM: string;
|
|
5
|
+
static ACTION_CARD_CONTENT_FORM: string;
|
|
6
|
+
static ACTION_CARD_CONTENT_WIZARD: string;
|
|
7
|
+
static ACTION_CHANGE_CARD_CONTENT: string;
|
|
8
|
+
static ACTION_DOWNLOAD: string;
|
|
9
|
+
static ACTION_REQUEST: string;
|
|
10
|
+
static ACTION_ROUTER_NAVIGATE: string;
|
|
11
|
+
static ACTION_WINDOW_LOCATION: string;
|
|
12
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { EsButton } from './es-button.interface';
|
|
2
|
-
export interface EsButtonServerResponse {
|
|
3
|
-
button: EsButton;
|
|
4
|
-
response: any;
|
|
5
|
-
}
|
|
1
|
+
import { EsButton } from './es-button.interface';
|
|
2
|
+
export interface EsButtonServerResponse {
|
|
3
|
+
button: EsButton;
|
|
4
|
+
response: any;
|
|
5
|
+
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { EsButtonAction } from './es-button-action';
|
|
2
|
-
export interface EsButton {
|
|
3
|
-
key?: any;
|
|
4
|
-
title: string;
|
|
5
|
-
icon: string;
|
|
6
|
-
url?: string;
|
|
7
|
-
action?: EsButtonAction;
|
|
8
|
-
message?: string;
|
|
9
|
-
tooltip?: string;
|
|
10
|
-
submenu?: EsButton[];
|
|
11
|
-
color?: string;
|
|
12
|
-
themeColor?: 'primary' | 'accent' | 'warn' | 'disabled-icon' | '';
|
|
13
|
-
disabled?: boolean;
|
|
14
|
-
}
|
|
1
|
+
import { EsButtonAction } from './es-button-action';
|
|
2
|
+
export interface EsButton {
|
|
3
|
+
key?: any;
|
|
4
|
+
title: string;
|
|
5
|
+
icon: string;
|
|
6
|
+
url?: string;
|
|
7
|
+
action?: EsButtonAction;
|
|
8
|
+
message?: string;
|
|
9
|
+
tooltip?: string;
|
|
10
|
+
submenu?: EsButton[];
|
|
11
|
+
color?: string;
|
|
12
|
+
themeColor?: 'primary' | 'accent' | 'warn' | 'disabled-icon' | '';
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
}
|
package/package.json
CHANGED
|
@@ -1,21 +1,33 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eurosat/buttons",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "14.0.1",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
-
"@angular/common": "^
|
|
6
|
-
"@angular/core": "^
|
|
7
|
-
"@eurosat/dialog": "^
|
|
8
|
-
"@eurosat/form": "^
|
|
5
|
+
"@angular/common": "^14.3.0",
|
|
6
|
+
"@angular/core": "^14.3.0",
|
|
7
|
+
"@eurosat/dialog": "^14.0.0",
|
|
8
|
+
"@eurosat/form": "^14.0.0"
|
|
9
|
+
},
|
|
10
|
+
"module": "fesm2015/eurosat-buttons.mjs",
|
|
11
|
+
"es2020": "fesm2020/eurosat-buttons.mjs",
|
|
12
|
+
"esm2020": "esm2020/eurosat-buttons.mjs",
|
|
13
|
+
"fesm2020": "fesm2020/eurosat-buttons.mjs",
|
|
14
|
+
"fesm2015": "fesm2015/eurosat-buttons.mjs",
|
|
15
|
+
"typings": "index.d.ts",
|
|
16
|
+
"exports": {
|
|
17
|
+
"./package.json": {
|
|
18
|
+
"default": "./package.json"
|
|
19
|
+
},
|
|
20
|
+
".": {
|
|
21
|
+
"types": "./index.d.ts",
|
|
22
|
+
"esm2020": "./esm2020/eurosat-buttons.mjs",
|
|
23
|
+
"es2020": "./fesm2020/eurosat-buttons.mjs",
|
|
24
|
+
"es2015": "./fesm2015/eurosat-buttons.mjs",
|
|
25
|
+
"node": "./fesm2015/eurosat-buttons.mjs",
|
|
26
|
+
"default": "./fesm2020/eurosat-buttons.mjs"
|
|
27
|
+
}
|
|
9
28
|
},
|
|
10
|
-
"main": "bundles/eurosat-buttons.umd.js",
|
|
11
|
-
"module": "fesm2015/eurosat-buttons.js",
|
|
12
|
-
"es2015": "fesm2015/eurosat-buttons.js",
|
|
13
|
-
"esm2015": "esm2015/eurosat-buttons.js",
|
|
14
|
-
"fesm2015": "fesm2015/eurosat-buttons.js",
|
|
15
|
-
"typings": "eurosat-buttons.d.ts",
|
|
16
|
-
"metadata": "eurosat-buttons.metadata.json",
|
|
17
29
|
"sideEffects": false,
|
|
18
30
|
"dependencies": {
|
|
19
|
-
"tslib": "^2.
|
|
31
|
+
"tslib": "^2.3.0"
|
|
20
32
|
}
|
|
21
|
-
}
|
|
33
|
+
}
|
package/public_api.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './lib/es-buttons.component';
|
|
2
|
-
export * from './lib/es-buttons.module';
|
|
3
|
-
export * from './lib/model/es-button.interface';
|
|
4
|
-
export * from './lib/model/es-button-action';
|
|
5
|
-
export * from './lib/model/es-button-server-response';
|
|
1
|
+
export * from './lib/es-buttons.component';
|
|
2
|
+
export * from './lib/es-buttons.module';
|
|
3
|
+
export * from './lib/model/es-button.interface';
|
|
4
|
+
export * from './lib/model/es-button-action';
|
|
5
|
+
export * from './lib/model/es-button-server-response';
|