turbogui-angular 13.0.1 → 13.0.2
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/esm2022/main/controller/dialog.service.mjs +60 -47
- package/esm2022/main/view/components/dialog-base/dialog-base.component.mjs +16 -1
- package/esm2022/main/view/components/dialog-date-selection/dialog-date-selection.component.mjs +5 -14
- package/esm2022/main/view/components/dialog-error/dialog-error.component.mjs +5 -5
- package/esm2022/main/view/components/dialog-multiple-option/dialog-multiple-option.component.mjs +5 -5
- package/esm2022/main/view/components/dialog-single-option/dialog-single-option.component.mjs +5 -5
- package/esm2022/main/view/components/dialog-single-selection-list/dialog-single-selection-list.component.mjs +5 -5
- package/esm2022/main/view/components/dialog-two-option/dialog-two-option.component.mjs +5 -5
- package/esm2022/public_api.mjs +2 -2
- package/fesm2022/turbogui-angular.mjs +93 -88
- package/fesm2022/turbogui-angular.mjs.map +1 -1
- package/main/controller/dialog.service.d.ts +41 -21
- package/main/controller/dialog.service.d.ts.map +1 -1
- package/main/view/components/dialog-base/dialog-base.component.d.ts +14 -0
- package/main/view/components/dialog-base/dialog-base.component.d.ts.map +1 -1
- package/main/view/components/dialog-date-selection/dialog-date-selection.component.d.ts +4 -4
- package/main/view/components/dialog-date-selection/dialog-date-selection.component.d.ts.map +1 -1
- package/main/view/components/dialog-error/dialog-error.component.d.ts +4 -4
- package/main/view/components/dialog-error/dialog-error.component.d.ts.map +1 -1
- package/main/view/components/dialog-multiple-option/dialog-multiple-option.component.d.ts +4 -4
- package/main/view/components/dialog-multiple-option/dialog-multiple-option.component.d.ts.map +1 -1
- package/main/view/components/dialog-single-option/dialog-single-option.component.d.ts +4 -4
- package/main/view/components/dialog-single-option/dialog-single-option.component.d.ts.map +1 -1
- package/main/view/components/dialog-single-selection-list/dialog-single-selection-list.component.d.ts +4 -4
- package/main/view/components/dialog-single-selection-list/dialog-single-selection-list.component.d.ts.map +1 -1
- package/main/view/components/dialog-two-option/dialog-two-option.component.d.ts +4 -4
- package/main/view/components/dialog-two-option/dialog-two-option.component.d.ts.map +1 -1
- package/package.json +1 -1
- package/public_api.d.ts +1 -1
- package/public_api.d.ts.map +1 -1
- package/esm2022/main/view/components/dialog-options-base/dialog-options-base.component.mjs +0 -15
- package/main/view/components/dialog-options-base/dialog-options-base.component.d.ts +0 -15
- package/main/view/components/dialog-options-base/dialog-options-base.component.d.ts.map +0 -1
|
@@ -2,7 +2,7 @@ import { Type, ComponentFactoryResolver, Injector, ApplicationRef, RendererFacto
|
|
|
2
2
|
import { MatDialog } from '@angular/material/dialog';
|
|
3
3
|
import { MatSnackBar, MatSnackBarConfig } from '@angular/material/snack-bar';
|
|
4
4
|
import { BusyStateBaseComponent } from '../view/components/busy-state-base/busy-state-base.component';
|
|
5
|
-
import {
|
|
5
|
+
import { DialogBaseComponent } from '../view/components/dialog-base/dialog-base.component';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
/**
|
|
8
8
|
* Manages the application modal and non modal floating elements
|
|
@@ -146,24 +146,27 @@ export declare class DialogService {
|
|
|
146
146
|
removeSnackBar(): void;
|
|
147
147
|
/**
|
|
148
148
|
* Show a dialog with one or more options that can be used to close it. We can use any of the predefined dialog types that are bundled with
|
|
149
|
-
* this library or extend
|
|
149
|
+
* this library or extend DialogBaseComponent to create our own custom ones.
|
|
150
150
|
*
|
|
151
|
-
* @param
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
*
|
|
155
|
-
*
|
|
156
|
-
*
|
|
157
|
-
*
|
|
158
|
-
*
|
|
159
|
-
*
|
|
160
|
-
*
|
|
161
|
-
*
|
|
162
|
-
*
|
|
163
|
-
*
|
|
164
|
-
*
|
|
165
|
-
|
|
166
|
-
|
|
151
|
+
* @param dialogComponentClass A class for a component that extends DialogBaseComponent, which will be the dialog that is shown to the user.
|
|
152
|
+
* @param properties An object containing the different visual and textual options that this dialog allows:
|
|
153
|
+
* - width: Specify the css value for the default dialog width. As the dialog is responsive, the value will be automatically
|
|
154
|
+
* reduced if the available screen is not enough, and will reach the desired value otherwise. We can set any css unit like pixels,
|
|
155
|
+
* %, vh, vw, or any other. For example: '400px', '50%', etc.
|
|
156
|
+
* - maxWidth: Defines the maximum width that the dialog will have regarding the viewport. We can specify it in % or vw, just like is done in
|
|
157
|
+
* css. By default it is defined as 96vw, which will fit 96% of the viewport on small devices
|
|
158
|
+
* - height: TODO docs
|
|
159
|
+
* - maxHeight: TODO docs
|
|
160
|
+
* - modal: True (default) if selecting an option is mandatory to close the dialog, false if the dialog can be closed
|
|
161
|
+
* by the user clicking outside it
|
|
162
|
+
* - texts: A list with strings containing the dialog texts, sorted by importance. When dialog has a title, this should
|
|
163
|
+
* be placed first, subtitle second and so (Each dialog may accept different number of texts).
|
|
164
|
+
* - options: A list of strings that will be used as button captions for each one of the accepted dialog options
|
|
165
|
+
*
|
|
166
|
+
* @param callback A function that will be called after the dialog is closed and will receive a selection object with the numeric index and value for
|
|
167
|
+
* the option that's been selected by the user. if no option was selected, index will be -1 and value null
|
|
168
|
+
*/
|
|
169
|
+
addDialog(dialogComponentClass: Type<DialogBaseComponent>, properties: {
|
|
167
170
|
width?: string;
|
|
168
171
|
maxWidth?: string;
|
|
169
172
|
height?: string;
|
|
@@ -171,9 +174,9 @@ export declare class DialogService {
|
|
|
171
174
|
modal?: boolean;
|
|
172
175
|
texts?: string[];
|
|
173
176
|
options?: string[];
|
|
174
|
-
}, callback?: null | ((
|
|
177
|
+
}, callback?: null | ((selection: {
|
|
175
178
|
index: number;
|
|
176
|
-
value
|
|
179
|
+
value?: any;
|
|
177
180
|
}) => void)): void;
|
|
178
181
|
/**
|
|
179
182
|
* Force the removal of all the dialogs that are currently visible.
|
|
@@ -181,13 +184,30 @@ export declare class DialogService {
|
|
|
181
184
|
* If no dialogs are currently visible, this method will do nothing
|
|
182
185
|
*/
|
|
183
186
|
removeAllDialogs(): void;
|
|
187
|
+
/**
|
|
188
|
+
* Show a dialog with a calendar to let the user pick a date.
|
|
189
|
+
*
|
|
190
|
+
* @param properties An object containing the different visual and textual options that this dialog allows:
|
|
191
|
+
* - width: Specify the css value for the default dialog width. As the dialog is responsive, the value will be automatically
|
|
192
|
+
* reduced if the available screen is not enough, and will reach the desired value otherwise. We can set any css unit like pixels,
|
|
193
|
+
* %, vh, vw, or any other. For example: '400px', '50%', etc.
|
|
194
|
+
* - maxWidth: Defines the maximum width that the dialog will have regarding the viewport. We can specify it in % or vw, just like is done in
|
|
195
|
+
* css. By default it is defined as 96vw, which will fit 96% of the viewport on small devices
|
|
196
|
+
* - height: TODO docs
|
|
197
|
+
* - maxHeight: TODO docs
|
|
198
|
+
* - modal: True (default) if selecting an option is mandatory to close the dialog, false if the dialog can be closed
|
|
199
|
+
* by the user clicking outside it
|
|
200
|
+
* - title: An optional dialog title
|
|
201
|
+
* @param callback A function to be called after the dialog is closed. It will receive a Date() object selected by the user or null if no selection happened
|
|
202
|
+
*/
|
|
184
203
|
addDateSelectionDialog(properties: {
|
|
185
204
|
width?: string;
|
|
186
205
|
maxWidth?: string;
|
|
187
206
|
height?: string;
|
|
188
207
|
maxHeight?: string;
|
|
189
208
|
modal?: boolean;
|
|
190
|
-
|
|
209
|
+
title?: string;
|
|
210
|
+
}, callback: ((selectedDate: null | Date) => void)): void;
|
|
191
211
|
/**
|
|
192
212
|
* Block all the user interactions with the application (keyboard, touch, mouse, ...)
|
|
193
213
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dialog.service.d.ts","sourceRoot":"","sources":["../../../../projects/turbogui-angular/src/main/controller/dialog.service.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,IAAI,EAAc,wBAAwB,EAAE,QAAQ,EAAE,cAAc,EAAa,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAClI,OAAO,EAAE,SAAS,EAAgB,MAAM,0BAA0B,CAAC;AACnE,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAC7E,OAAO,EAAE,sBAAsB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C;QAAC,KAAK,CAAC,EAAE,GAAG,CAAA;KAAC,KAAK,IAAI,CAAQ;IA4DpF;;;;OAIG;IACH,gBAAgB;IAiBhB;;;;;;;;;;;;;;;OAeG;IACH,sBAAsB,CAAC,UAAU,EAAE;QAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,KAAK,CAAC,EAAE,OAAO,CAAA;QACf,KAAK,CAAC,EAAE,MAAM,CAAA;KAAC,EAC5B,QAAQ,EAAE,CAAC,CAAC,YAAY,EAAE,IAAI,GAAG,IAAI,KAAK,IAAI,CAAC;IAsBtE;;OAEG;IACH,OAAO,CAAC,uBAAuB;IAmB/B;;OAEG;IACH,OAAO,CAAC,sBAAsB;yCA3drB,aAAa;6CAAb,aAAa;CA+ezB"}
|
|
@@ -6,9 +6,23 @@
|
|
|
6
6
|
* License Url : -> http://www.apache.org/licenses/LICENSE-2.0
|
|
7
7
|
* CopyRight : -> Copyright 2018 Edertone Advanded Solutions. https://www.edertone.com
|
|
8
8
|
*/
|
|
9
|
+
import { MatDialogRef } from '@angular/material/dialog';
|
|
9
10
|
/**
|
|
10
11
|
* This is the base class for all the dialog components that can be loaded by the dialog service class
|
|
11
12
|
*/
|
|
12
13
|
export declare abstract class DialogBaseComponent {
|
|
14
|
+
/**
|
|
15
|
+
* Method to be called by the dialogs that extend this base component when they want to close themselves.
|
|
16
|
+
* It will perform the close of that dialog and also send an object to the addDialog() callback with the index and value
|
|
17
|
+
* that the user may have selected.
|
|
18
|
+
*
|
|
19
|
+
* @param dialogRef The reference to the dialogRef object that is available at the extended dialog component. It is
|
|
20
|
+
* required to perform the closing operation
|
|
21
|
+
* @param index The numeric index of the user option selection. It will be specific for each dialog and it's different available options
|
|
22
|
+
* @param value Any value that may be provided to the callback regarding the user selected option.
|
|
23
|
+
*
|
|
24
|
+
* @return void
|
|
25
|
+
*/
|
|
26
|
+
closeDialog(dialogRef: MatDialogRef<DialogBaseComponent>, index: number, value?: any): void;
|
|
13
27
|
}
|
|
14
28
|
//# sourceMappingURL=dialog-base.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dialog-base.component.d.ts","sourceRoot":"","sources":["../../../../../../projects/turbogui-angular/src/main/view/components/dialog-base/dialog-base.component.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH;;GAEG;AACH,8BAAsB,mBAAmB;
|
|
1
|
+
{"version":3,"file":"dialog-base.component.d.ts","sourceRoot":"","sources":["../../../../../../projects/turbogui-angular/src/main/view/components/dialog-base/dialog-base.component.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAGxD;;GAEG;AACH,8BAAsB,mBAAmB;IAGrC;;;;;;;;;;;OAWG;IACH,WAAW,CAAC,SAAS,EAAE,YAAY,CAAC,mBAAmB,CAAC,EAAE,KAAK,EAAC,MAAM,EAAE,KAAK,GAAC,GAAU;CAI3F"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { MatDialogRef } from '@angular/material/dialog';
|
|
2
|
-
import {
|
|
2
|
+
import { DialogBaseComponent } from '../dialog-base/dialog-base.component';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
/**
|
|
5
5
|
* A dialog component with a calendar that allows us to select a single date value
|
|
6
6
|
*/
|
|
7
|
-
export declare class DialogDateSelectionComponent extends
|
|
8
|
-
dialogRef: MatDialogRef<
|
|
7
|
+
export declare class DialogDateSelectionComponent extends DialogBaseComponent {
|
|
8
|
+
dialogRef: MatDialogRef<DialogBaseComponent>;
|
|
9
9
|
data: any;
|
|
10
10
|
selectedDate: Date;
|
|
11
|
-
constructor(dialogRef: MatDialogRef<
|
|
11
|
+
constructor(dialogRef: MatDialogRef<DialogBaseComponent>, data: any);
|
|
12
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<DialogDateSelectionComponent, never>;
|
|
13
13
|
static ɵcmp: i0.ɵɵComponentDeclaration<DialogDateSelectionComponent, "tg-dialog-date-selection", never, {}, {}, never, never, false, never>;
|
|
14
14
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dialog-date-selection.component.d.ts","sourceRoot":"","sources":["../../../../../../projects/turbogui-angular/src/main/view/components/dialog-date-selection/dialog-date-selection.component.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,YAAY,EAAmB,MAAM,0BAA0B,CAAC;AACzE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"dialog-date-selection.component.d.ts","sourceRoot":"","sources":["../../../../../../projects/turbogui-angular/src/main/view/components/dialog-date-selection/dialog-date-selection.component.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,YAAY,EAAmB,MAAM,0BAA0B,CAAC;AACzE,OAAO,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;;AAE3E;;GAEG;AACH,qBAOa,4BAA6B,SAAQ,mBAAmB;IAM9C,SAAS,EAAE,YAAY,CAAC,mBAAmB,CAAC;IACnB,IAAI,EAAE,GAAG;IAJrD,YAAY,EAAC,IAAI,CAAC;gBAGC,SAAS,EAAE,YAAY,CAAC,mBAAmB,CAAC,EACnB,IAAI,EAAE,GAAG;yCAP5C,4BAA4B;2CAA5B,4BAA4B;CAWxC"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { MatDialogRef } from '@angular/material/dialog';
|
|
2
|
-
import {
|
|
2
|
+
import { DialogBaseComponent } from '../dialog-base/dialog-base.component';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
/**
|
|
5
5
|
* A dialog component with a single option button, to be used for error notifications
|
|
6
6
|
*/
|
|
7
|
-
export declare class DialogErrorComponent extends
|
|
8
|
-
dialogRef: MatDialogRef<
|
|
7
|
+
export declare class DialogErrorComponent extends DialogBaseComponent {
|
|
8
|
+
dialogRef: MatDialogRef<DialogBaseComponent>;
|
|
9
9
|
data: any;
|
|
10
|
-
constructor(dialogRef: MatDialogRef<
|
|
10
|
+
constructor(dialogRef: MatDialogRef<DialogBaseComponent>, data: any);
|
|
11
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<DialogErrorComponent, never>;
|
|
12
12
|
static ɵcmp: i0.ɵɵComponentDeclaration<DialogErrorComponent, "tg-dialog-error", never, {}, {}, never, never, false, never>;
|
|
13
13
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dialog-error.component.d.ts","sourceRoot":"","sources":["../../../../../../projects/turbogui-angular/src/main/view/components/dialog-error/dialog-error.component.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,YAAY,EAAmB,MAAM,0BAA0B,CAAC;AACzE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"dialog-error.component.d.ts","sourceRoot":"","sources":["../../../../../../projects/turbogui-angular/src/main/view/components/dialog-error/dialog-error.component.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,YAAY,EAAmB,MAAM,0BAA0B,CAAC;AACzE,OAAO,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;;AAG3E;;GAEG;AACH,qBAOa,oBAAqB,SAAQ,mBAAmB;IAEtC,SAAS,EAAE,YAAY,CAAC,mBAAmB,CAAC;IAAkC,IAAI,EAAE,GAAG;gBAAvF,SAAS,EAAE,YAAY,CAAC,mBAAmB,CAAC,EAAkC,IAAI,EAAE,GAAG;yCAFjG,oBAAoB;2CAApB,oBAAoB;CAgBhC"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { MatDialogRef } from '@angular/material/dialog';
|
|
2
|
-
import {
|
|
2
|
+
import { DialogBaseComponent } from '../dialog-base/dialog-base.component';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
/**
|
|
5
5
|
* A dialog component that is designed to show more than one option buttons (usually more than two), to be used with dialog service
|
|
6
6
|
*/
|
|
7
|
-
export declare class DialogMultipleOptionComponent extends
|
|
8
|
-
dialogRef: MatDialogRef<
|
|
7
|
+
export declare class DialogMultipleOptionComponent extends DialogBaseComponent {
|
|
8
|
+
dialogRef: MatDialogRef<DialogBaseComponent>;
|
|
9
9
|
data: any;
|
|
10
|
-
constructor(dialogRef: MatDialogRef<
|
|
10
|
+
constructor(dialogRef: MatDialogRef<DialogBaseComponent>, data: any);
|
|
11
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<DialogMultipleOptionComponent, never>;
|
|
12
12
|
static ɵcmp: i0.ɵɵComponentDeclaration<DialogMultipleOptionComponent, "tg-dialog-multiple-option", never, {}, {}, never, never, false, never>;
|
|
13
13
|
}
|
package/main/view/components/dialog-multiple-option/dialog-multiple-option.component.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dialog-multiple-option.component.d.ts","sourceRoot":"","sources":["../../../../../../projects/turbogui-angular/src/main/view/components/dialog-multiple-option/dialog-multiple-option.component.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,YAAY,EAAmB,MAAM,0BAA0B,CAAC;AACzE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"dialog-multiple-option.component.d.ts","sourceRoot":"","sources":["../../../../../../projects/turbogui-angular/src/main/view/components/dialog-multiple-option/dialog-multiple-option.component.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,YAAY,EAAmB,MAAM,0BAA0B,CAAC;AACzE,OAAO,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;;AAG3E;;GAEG;AACH,qBAOa,6BAA8B,SAAQ,mBAAmB;IAE/C,SAAS,EAAE,YAAY,CAAC,mBAAmB,CAAC;IAAkC,IAAI,EAAE,GAAG;gBAAvF,SAAS,EAAE,YAAY,CAAC,mBAAmB,CAAC,EAAkC,IAAI,EAAE,GAAG;yCAFjG,6BAA6B;2CAA7B,6BAA6B;CAWzC"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { MatDialogRef } from '@angular/material/dialog';
|
|
2
|
-
import {
|
|
2
|
+
import { DialogBaseComponent } from '../dialog-base/dialog-base.component';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
/**
|
|
5
5
|
* A dialog component with a single option button, to be used with dialog service
|
|
6
6
|
*/
|
|
7
|
-
export declare class DialogSingleOptionComponent extends
|
|
8
|
-
dialogRef: MatDialogRef<
|
|
7
|
+
export declare class DialogSingleOptionComponent extends DialogBaseComponent {
|
|
8
|
+
dialogRef: MatDialogRef<DialogBaseComponent>;
|
|
9
9
|
data: any;
|
|
10
|
-
constructor(dialogRef: MatDialogRef<
|
|
10
|
+
constructor(dialogRef: MatDialogRef<DialogBaseComponent>, data: any);
|
|
11
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<DialogSingleOptionComponent, never>;
|
|
12
12
|
static ɵcmp: i0.ɵɵComponentDeclaration<DialogSingleOptionComponent, "tg-dialog-single-option", never, {}, {}, never, never, false, never>;
|
|
13
13
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dialog-single-option.component.d.ts","sourceRoot":"","sources":["../../../../../../projects/turbogui-angular/src/main/view/components/dialog-single-option/dialog-single-option.component.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,YAAY,EAAmB,MAAM,0BAA0B,CAAC;AACzE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"dialog-single-option.component.d.ts","sourceRoot":"","sources":["../../../../../../projects/turbogui-angular/src/main/view/components/dialog-single-option/dialog-single-option.component.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,YAAY,EAAmB,MAAM,0BAA0B,CAAC;AACzE,OAAO,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;;AAG3E;;GAEG;AACH,qBAOa,2BAA4B,SAAQ,mBAAmB;IAE7C,SAAS,EAAE,YAAY,CAAC,mBAAmB,CAAC;IAAkC,IAAI,EAAE,GAAG;gBAAvF,SAAS,EAAE,YAAY,CAAC,mBAAmB,CAAC,EAAkC,IAAI,EAAE,GAAG;yCAFjG,2BAA2B;2CAA3B,2BAA2B;CAgBvC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MatDialogRef } from '@angular/material/dialog';
|
|
2
|
-
import {
|
|
2
|
+
import { DialogBaseComponent } from '../dialog-base/dialog-base.component';
|
|
3
3
|
import { BrowserService } from '../../../controller/browser.service';
|
|
4
4
|
import { StringUtils } from 'turbocommons-ts';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
@@ -15,8 +15,8 @@ import * as i0 from "@angular/core";
|
|
|
15
15
|
*
|
|
16
16
|
* options parameter must contain the list of elements that will be displayed to the user
|
|
17
17
|
*/
|
|
18
|
-
export declare class DialogSingleSelectionListComponent extends
|
|
19
|
-
dialogRef: MatDialogRef<
|
|
18
|
+
export declare class DialogSingleSelectionListComponent extends DialogBaseComponent {
|
|
19
|
+
dialogRef: MatDialogRef<DialogBaseComponent>;
|
|
20
20
|
browserService: BrowserService;
|
|
21
21
|
data: any;
|
|
22
22
|
/**
|
|
@@ -42,7 +42,7 @@ export declare class DialogSingleSelectionListComponent extends DialogOptionsBas
|
|
|
42
42
|
* Stores the index for the element that's been selected by the user
|
|
43
43
|
*/
|
|
44
44
|
selectedItemIndex: number;
|
|
45
|
-
constructor(dialogRef: MatDialogRef<
|
|
45
|
+
constructor(dialogRef: MatDialogRef<DialogBaseComponent>, browserService: BrowserService, data: any);
|
|
46
46
|
/**
|
|
47
47
|
* Method to calculate the max possible height that the list items container is allowed to have
|
|
48
48
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dialog-single-selection-list.component.d.ts","sourceRoot":"","sources":["../../../../../../projects/turbogui-angular/src/main/view/components/dialog-single-selection-list/dialog-single-selection-list.component.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,YAAY,EAAmB,MAAM,0BAA0B,CAAC;AACzE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"dialog-single-selection-list.component.d.ts","sourceRoot":"","sources":["../../../../../../projects/turbogui-angular/src/main/view/components/dialog-single-selection-list/dialog-single-selection-list.component.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,YAAY,EAAmB,MAAM,0BAA0B,CAAC;AACzE,OAAO,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAC3E,OAAO,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AACrE,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;;AAG9C;;;;;;;;;;;GAWG;AACH,qBAOa,kCAAmC,SAAQ,mBAAmB;IAmCpD,SAAS,EAAE,YAAY,CAAC,mBAAmB,CAAC;IAC5C,cAAc,EAAE,cAAc;IACL,IAAI,EAAE,GAAG;IAlCrD;;OAEG;IACH,WAAW,qBAAe;IAE1B;;;OAGG;IACH,eAAe,EAAC,MAAM,EAAE,CAAM;IAG9B;;;OAGG;IACH,OAAO,CAAC,eAAe,CAAe;IAGtC;;;OAGG;IACH,OAAO,CAAC,6BAA6B,CAAe;IAGpD;;OAEG;IACH,iBAAiB,SAAM;gBAGJ,SAAS,EAAE,YAAY,CAAC,mBAAmB,CAAC,EAC5C,cAAc,EAAE,cAAc,EACL,IAAI,EAAE,GAAG;IAwBrD;;OAEG;IACH,8BAA8B;IAM9B;;;OAGG;IACH,cAAc,CAAC,KAAK,EAAC,gBAAgB;IAoBrC;;;OAGG;IACH,SAAS,UAAW,MAAM,UAAU,MAAM,YAAW;yCAlG5C,kCAAkC;2CAAlC,kCAAkC;CAmG9C"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { MatDialogRef } from '@angular/material/dialog';
|
|
2
|
-
import {
|
|
2
|
+
import { DialogBaseComponent } from '../dialog-base/dialog-base.component';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
/**
|
|
5
5
|
* A dialog component with two option buttons, to be used with dialog service.
|
|
6
6
|
* The first of the options is considered to be the primary one and will therefore have more visual accent
|
|
7
7
|
*/
|
|
8
|
-
export declare class DialogTwoOptionComponent extends
|
|
9
|
-
dialogRef: MatDialogRef<
|
|
8
|
+
export declare class DialogTwoOptionComponent extends DialogBaseComponent {
|
|
9
|
+
dialogRef: MatDialogRef<DialogBaseComponent>;
|
|
10
10
|
data: any;
|
|
11
|
-
constructor(dialogRef: MatDialogRef<
|
|
11
|
+
constructor(dialogRef: MatDialogRef<DialogBaseComponent>, data: any);
|
|
12
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<DialogTwoOptionComponent, never>;
|
|
13
13
|
static ɵcmp: i0.ɵɵComponentDeclaration<DialogTwoOptionComponent, "tg-dialog-two-option", never, {}, {}, never, never, false, never>;
|
|
14
14
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dialog-two-option.component.d.ts","sourceRoot":"","sources":["../../../../../../projects/turbogui-angular/src/main/view/components/dialog-two-option/dialog-two-option.component.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,YAAY,EAAmB,MAAM,0BAA0B,CAAC;AACzE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"dialog-two-option.component.d.ts","sourceRoot":"","sources":["../../../../../../projects/turbogui-angular/src/main/view/components/dialog-two-option/dialog-two-option.component.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,YAAY,EAAmB,MAAM,0BAA0B,CAAC;AACzE,OAAO,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;;AAG3E;;;GAGG;AACH,qBAOa,wBAAyB,SAAQ,mBAAmB;IAE1C,SAAS,EAAE,YAAY,CAAC,mBAAmB,CAAC;IAAkC,IAAI,EAAE,GAAG;gBAAvF,SAAS,EAAE,YAAY,CAAC,mBAAmB,CAAC,EAAkC,IAAI,EAAE,GAAG;yCAFjG,wBAAwB;2CAAxB,wBAAwB;CAgBpC"}
|
package/package.json
CHANGED
package/public_api.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ export { BrowserService } from './main/controller/browser.service';
|
|
|
16
16
|
* Components
|
|
17
17
|
*/
|
|
18
18
|
export { BusyStateBaseComponent } from './main/view/components/busy-state-base/busy-state-base.component';
|
|
19
|
-
export {
|
|
19
|
+
export { DialogBaseComponent } from './main/view/components/dialog-base/dialog-base.component';
|
|
20
20
|
export { DialogDateSelectionComponent } from './main/view/components/dialog-date-selection/dialog-date-selection.component';
|
|
21
21
|
export { DialogErrorComponent } from './main/view/components/dialog-error/dialog-error.component';
|
|
22
22
|
export { DialogSingleOptionComponent } from './main/view/components/dialog-single-option/dialog-single-option.component';
|
package/public_api.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"public_api.d.ts","sourceRoot":"","sources":["../../projects/turbogui-angular/src/public_api.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,qBAAqB,EAAE,MAAM,8CAA8C,CAAC;AAGrF;;GAEG;AACH,OAAO,EAAE,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AAC7E,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAC3E,OAAO,EAAE,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AAC7E,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,qBAAqB,EAAE,MAAM,qDAAqD,CAAC;AAC5F,OAAO,EAAE,sBAAsB,EAAE,MAAM,sDAAsD,CAAC;AAC9F,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AACjE,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AAGnE;;GAEG;AACH,OAAO,EAAE,sBAAsB,EAAE,MAAM,kEAAkE,CAAC;AAC1G,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"public_api.d.ts","sourceRoot":"","sources":["../../projects/turbogui-angular/src/public_api.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,q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C,CAAC;AACvE,OAAO,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAE,wBAAwB,EAAE,MAAM,0CAA0C,CAAC;AACpF,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAC3E,OAAO,EAAE,uBAAuB,EAAE,MAAM,gDAAgD,CAAC;AACzF,OAAO,EAAE,yBAAyB,EAAE,MAAM,kDAAkD,CAAC;AAC7F,OAAO,EAAE,2BAA2B,EAAE,MAAM,oDAAoD,CAAC;AACjG,OAAO,EAAE,8BAA8B,EAAE,MAAM,uDAAuD,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* TurboGUI is A library that helps with the most common and generic UI elements and functionalities
|
|
3
|
-
*
|
|
4
|
-
* Website : -> http://www.turbogui.org
|
|
5
|
-
* License : -> Licensed under the Apache License, Version 2.0. You may not use this file except in compliance with the License.
|
|
6
|
-
* License Url : -> http://www.apache.org/licenses/LICENSE-2.0
|
|
7
|
-
* CopyRight : -> Copyright 2018 Edertone Advanded Solutions. https://www.edertone.com
|
|
8
|
-
*/
|
|
9
|
-
import { DialogBaseComponent } from '../dialog-base/dialog-base.component';
|
|
10
|
-
/**
|
|
11
|
-
* This is the base class for all the dialog components that show one or more options for the user to select
|
|
12
|
-
*/
|
|
13
|
-
export class DialogOptionsBaseComponent extends DialogBaseComponent {
|
|
14
|
-
}
|
|
15
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGlhbG9nLW9wdGlvbnMtYmFzZS5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dXJib2d1aS1hbmd1bGFyL3NyYy9tYWlu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lzIHRoZSBiYXNlIGNsYXNzIGZvciBhbGwgdGhlIGRpYWxvZyBjb21wb25lbnRzIHRoYXQgc2hvdyBvbmUgb3IgbW9yZSBvcHRpb25zIGZvciB0aGUgdXNlciB0byBzZWxlY3RcclxuICovXHJcblxyXG5leHBvcnQgYWJzdHJhY3QgY2xhc3MgRGlhbG9nT3B0aW9uc0Jhc2VDb21wb25lbnQgZXh0ZW5kcyBEaWFsb2dCYXNlQ29tcG9uZW50IHtcclxuXHJcbn1cclxuIl19
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* TurboGUI is A library that helps with the most common and generic UI elements and functionalities
|
|
3
|
-
*
|
|
4
|
-
* Website : -> http://www.turbogui.org
|
|
5
|
-
* License : -> Licensed under the Apache License, Version 2.0. You may not use this file except in compliance with the License.
|
|
6
|
-
* License Url : -> http://www.apache.org/licenses/LICENSE-2.0
|
|
7
|
-
* CopyRight : -> Copyright 2018 Edertone Advanded Solutions. https://www.edertone.com
|
|
8
|
-
*/
|
|
9
|
-
import { DialogBaseComponent } from '../dialog-base/dialog-base.component';
|
|
10
|
-
/**
|
|
11
|
-
* This is the base class for all the dialog components that show one or more options for the user to select
|
|
12
|
-
*/
|
|
13
|
-
export declare abstract class DialogOptionsBaseComponent extends DialogBaseComponent {
|
|
14
|
-
}
|
|
15
|
-
//# sourceMappingURL=dialog-options-base.component.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dialog-options-base.component.d.ts","sourceRoot":"","sources":["../../../../../../projects/turbogui-angular/src/main/view/components/dialog-options-base/dialog-options-base.component.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAG3E;;GAEG;AAEH,8BAAsB,0BAA2B,SAAQ,mBAAmB;CAE3E"}
|