@anglr/common 19.1.0-beta.20231205075912 → 19.1.0-beta.20231206041003
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/changelog.md +10 -2
- package/es2022/material/src/directives/confirmationDialog/confirmationDialog.directive.js +5 -4
- package/es2022/material/src/directives/confirmationDialog/confirmationDialog.directive.js.map +1 -1
- package/es2022/material/src/index.js +2 -1
- package/es2022/material/src/index.js.map +1 -1
- package/es2022/material/src/misc/providers.js +15 -0
- package/es2022/material/src/misc/providers.js.map +1 -0
- package/es2022/material/src/misc/tokens.js.map +1 -1
- package/es2022/material/src/modules/confirmationDialog.module.js +6 -6
- package/es2022/material/src/modules/confirmationDialog.module.js.map +1 -1
- package/material/src/directives/confirmationDialog/confirmationDialog.directive.d.ts +1 -1
- package/material/src/directives/confirmationDialog/confirmationDialog.directive.d.ts.map +1 -1
- package/material/src/index.d.ts +2 -1
- package/material/src/index.d.ts.map +1 -1
- package/material/src/misc/providers.d.ts +9 -0
- package/material/src/misc/providers.d.ts.map +1 -0
- package/material/src/misc/tokens.d.ts +2 -1
- package/material/src/misc/tokens.d.ts.map +1 -1
- package/material/src/modules/confirmationDialog.module.d.ts +5 -5
- package/package.json +1 -1
- package/version.bak +1 -1
package/changelog.md
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## Version 19.1.0 (2023-12-
|
|
3
|
+
## Version 19.1.0 (2023-12-06)
|
|
4
4
|
|
|
5
5
|
### Bug Fixes
|
|
6
6
|
|
|
7
|
-
-
|
|
7
|
+
- fixed `TooltipDirective` overflowing 'MouseEnter' tooltip on right side of screen
|
|
8
|
+
- *subpackage* `@anglr/common/material`
|
|
9
|
+
- fixed `ConfirmationDialogDirective`, now correctly takes global options
|
|
8
10
|
|
|
9
11
|
### Feature
|
|
10
12
|
|
|
@@ -19,6 +21,12 @@
|
|
|
19
21
|
- `ellipsisTooltip` gets or sets HTML element from which is text taken for tooltip
|
|
20
22
|
- updated `TooltipDirective` directive
|
|
21
23
|
- is now `standalone`
|
|
24
|
+
- *subpackage* `@anglr/common/material`
|
|
25
|
+
- new `provideConfirmationDialogOptions` function, that provides global options for confirmation dialog
|
|
26
|
+
- updated `CONFIRMATION_DIALOG_OPTIONS` injection token
|
|
27
|
+
- now provides `RecursivePartial` type as it should
|
|
28
|
+
- updated `ConfirmationDialogDirective` directive
|
|
29
|
+
- is now `standalone`
|
|
22
30
|
|
|
23
31
|
## Version 19.0.0 (2023-11-09)
|
|
24
32
|
|
|
@@ -65,8 +65,8 @@ export class ConfirmationDialogDirective {
|
|
|
65
65
|
width: '33vw',
|
|
66
66
|
data: {
|
|
67
67
|
confirmationText: this.confirmationText || undefined,
|
|
68
|
-
dialogCancelText: this.confirmationCancel ??
|
|
69
|
-
dialogConfirmText: this.confirmationConfirm ??
|
|
68
|
+
dialogCancelText: this.confirmationCancel ?? undefined,
|
|
69
|
+
dialogConfirmText: this.confirmationConfirm ?? undefined,
|
|
70
70
|
cssClasses: this.confirmationCssClasses ?? {},
|
|
71
71
|
}
|
|
72
72
|
}).afterClosed());
|
|
@@ -75,12 +75,13 @@ export class ConfirmationDialogDirective {
|
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
77
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.5", ngImport: i0, type: ConfirmationDialogDirective, deps: [{ token: i1.TitledDialogService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
78
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.0.5", type: ConfirmationDialogDirective, selector: "[confirmation]", inputs: { confirmationText: ["confirmation", "confirmationText"], confirmationTitle: "confirmationTitle", confirmationConfirm: "confirmationConfirm", confirmationCancel: "confirmationCancel", confirmationCssClasses: "confirmationCssClasses", skipConfirmation: "skipConfirmation", preventDefaultsAndPropagation: "preventDefaultsAndPropagation" }, outputs: { confirm: "confirm" }, host: { listeners: { "click": "click($event)" } }, ngImport: i0 });
|
|
78
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.0.5", type: ConfirmationDialogDirective, isStandalone: true, selector: "[confirmation]", inputs: { confirmationText: ["confirmation", "confirmationText"], confirmationTitle: "confirmationTitle", confirmationConfirm: "confirmationConfirm", confirmationCancel: "confirmationCancel", confirmationCssClasses: "confirmationCssClasses", skipConfirmation: "skipConfirmation", preventDefaultsAndPropagation: "preventDefaultsAndPropagation" }, outputs: { confirm: "confirm" }, host: { listeners: { "click": "click($event)" } }, ngImport: i0 });
|
|
79
79
|
}
|
|
80
80
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.5", ngImport: i0, type: ConfirmationDialogDirective, decorators: [{
|
|
81
81
|
type: Directive,
|
|
82
82
|
args: [{
|
|
83
|
-
selector: '[confirmation]'
|
|
83
|
+
selector: '[confirmation]',
|
|
84
|
+
standalone: true,
|
|
84
85
|
}]
|
|
85
86
|
}], ctorParameters: () => [{ type: i1.TitledDialogService }], propDecorators: { confirmationText: [{
|
|
86
87
|
type: Input,
|
package/es2022/material/src/directives/confirmationDialog/confirmationDialog.directive.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"confirmationDialog.directive.js","sourceRoot":"","sources":["../../../../../material/src/directives/confirmationDialog/confirmationDialog.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,KAAK,EAAE,YAAY,EAAE,MAAM,EAAE,YAAY,EAAC,MAAM,eAAe,CAAC;AACnF,OAAO,EAAC,aAAa,EAAC,MAAM,MAAM,CAAC;AAEnC,OAAO,EAAC,mBAAmB,EAAC,MAAM,kDAAkD,CAAC;AACrF,OAAO,EAAC,2BAA2B,EAAC,MAAM,kEAAkE,CAAC;;;AAG7G;;GAEG;
|
|
1
|
+
{"version":3,"file":"confirmationDialog.directive.js","sourceRoot":"","sources":["../../../../../material/src/directives/confirmationDialog/confirmationDialog.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,KAAK,EAAE,YAAY,EAAE,MAAM,EAAE,YAAY,EAAC,MAAM,eAAe,CAAC;AACnF,OAAO,EAAC,aAAa,EAAC,MAAM,MAAM,CAAC;AAEnC,OAAO,EAAC,mBAAmB,EAAC,MAAM,kDAAkD,CAAC;AACrF,OAAO,EAAC,2BAA2B,EAAC,MAAM,kEAAkE,CAAC;;;AAG7G;;GAEG;AAMH,MAAM,OAAO,2BAA2B;IAuDhB;IArDpB,gFAAgF;IAEhF;;OAEG;IAEI,gBAAgB,GAA0B,SAAS,CAAC;IAE3D;;OAEG;IAEI,iBAAiB,GAAW,cAAc,CAAC;IAElD;;OAEG;IAEI,mBAAmB,GAA0B,SAAS,CAAC;IAE9D;;OAEG;IAEI,kBAAkB,GAA0B,SAAS,CAAC;IAE7D;;OAEG;IAEI,sBAAsB,GAAgD,SAAS,CAAC;IAEvF;;OAEG;IAEI,gBAAgB,GAAY,KAAK,CAAC;IAEzC;;OAEG;IAEI,6BAA6B,GAAY,IAAI,CAAC;IAErD,iFAAiF;IAEjF;;OAEG;IAEI,OAAO,GAAuB,IAAI,YAAY,EAAQ,CAAC;IAE9D,iEAAiE;IACjE,YAAoB,OAA4B;QAA5B,YAAO,GAAP,OAAO,CAAqB;IAEhD,CAAC;IAED,2EAA2E;IAE3E;;OAEG;IAEI,KAAK,CAAC,KAAK,CAAC,KAAiB;QAEhC,IAAG,IAAI,CAAC,6BAA6B,EACrC;YACI,KAAK,CAAC,eAAe,EAAE,CAAC;YACxB,KAAK,CAAC,cAAc,EAAE,CAAC;SAC1B;QAED,IAAG,IAAI,CAAC,gBAAgB,EACxB;YACI,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;YAEpB,OAAO;SACV;QAED,MAAM,MAAM,GAAG,MAAM,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAkE,2BAA2B,EACjJ;YACI,KAAK,EAAE,IAAI,CAAC,iBAAiB;YAC7B,KAAK,EAAE,MAAM;YACb,IAAI,EACJ;gBACI,gBAAgB,EAAE,IAAI,CAAC,gBAAgB,IAAI,SAAS;gBACpD,gBAAgB,EAAE,IAAI,CAAC,kBAAkB,IAAI,SAAS;gBACtD,iBAAiB,EAAE,IAAI,CAAC,mBAAmB,IAAI,SAAS;gBACxD,UAAU,EAAE,IAAI,CAAC,sBAAsB,IAAI,EAAE;aAChD;SACJ,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC;QAElB,IAAG,MAAM,EACT;YACI,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;SACvB;IACL,CAAC;uGAjGQ,2BAA2B;2FAA3B,2BAA2B;;2FAA3B,2BAA2B;kBALvC,SAAS;mBACV;oBACI,QAAQ,EAAE,gBAAgB;oBAC1B,UAAU,EAAE,IAAI;iBACnB;wFASU,gBAAgB;sBADtB,KAAK;uBAAC,cAAc;gBAOd,iBAAiB;sBADvB,KAAK;gBAOC,mBAAmB;sBADzB,KAAK;gBAOC,kBAAkB;sBADxB,KAAK;gBAOC,sBAAsB;sBAD5B,KAAK;gBAOC,gBAAgB;sBADtB,KAAK;gBAOC,6BAA6B;sBADnC,KAAK;gBASC,OAAO;sBADb,MAAM;gBAcM,KAAK;sBADjB,YAAY;uBAAC,OAAO,EAAE,CAAC,QAAQ,CAAC","sourcesContent":["import {Directive, Input, EventEmitter, Output, HostListener} from '@angular/core';\nimport {lastValueFrom} from 'rxjs';\n\nimport {TitledDialogService} from '../../services/titledDialog/titledDialog.service';\nimport {ConfirmationDialogComponent} from '../../components/confirmationDialog/confirmationDialog.component';\nimport {ConfirmationDialogOptions, ConfirmationDialogCssClasses} from '../../misc/interfaces/confirmationDialog.interface';\n\n/**\n * Directive that enables confirmation dialog on click\n */\n@Directive(\n{\n selector: '[confirmation]',\n standalone: true,\n})\nexport class ConfirmationDialogDirective\n{\n //######################### public properties - inputs #########################\n\n /**\n * Confirmation text that is displayed in dialog\n */\n @Input('confirmation')\n public confirmationText: string|undefined|null = undefined;\n\n /**\n * Title for confirmation dialog\n */\n @Input()\n public confirmationTitle: string = 'Confirmation';\n\n /**\n * Text for confirm confirmation button\n */\n @Input()\n public confirmationConfirm: string|undefined|null = undefined;\n\n /**\n * Text for cancel confirmation button\n */\n @Input()\n public confirmationCancel: string|undefined|null = undefined;\n\n /**\n * Object with css classes to be applied to confirmation dialog component\n */\n @Input()\n public confirmationCssClasses: ConfirmationDialogCssClasses|undefined|null = undefined;\n\n /**\n * Condidition that determines whether display confirmation dialog or skip it and run confirm directly\n */\n @Input()\n public skipConfirmation: boolean = false;\n\n /**\n * Indication whether prevent default and stop propagation of click event, defaults to true\n */\n @Input()\n public preventDefaultsAndPropagation: boolean = true;\n\n //######################### public properties - outputs #########################\n\n /**\n * Occurs when user confirms confirmation\n */\n @Output()\n public confirm: EventEmitter<void> = new EventEmitter<void>();\n\n //######################### constructor #########################\n constructor(private _dialog: TitledDialogService)\n {\n }\n\n //######################### public methods - host #########################\n\n /**\n * Method called when user clicks on element\n */\n @HostListener('click', ['$event'])\n public async click(event: MouseEvent): Promise<void>\n {\n if(this.preventDefaultsAndPropagation)\n {\n event.stopPropagation();\n event.preventDefault();\n }\n\n if(this.skipConfirmation)\n {\n this.confirm.emit();\n\n return;\n }\n\n const result = await lastValueFrom(this._dialog.open<ConfirmationDialogComponent, ConfirmationDialogOptions, boolean>(ConfirmationDialogComponent,\n {\n title: this.confirmationTitle,\n width: '33vw',\n data:\n {\n confirmationText: this.confirmationText || undefined,\n dialogCancelText: this.confirmationCancel ?? undefined,\n dialogConfirmText: this.confirmationConfirm ?? undefined,\n cssClasses: this.confirmationCssClasses ?? {},\n }\n }).afterClosed());\n\n if(result)\n {\n this.confirm.emit();\n }\n }\n}"]}
|
|
@@ -9,5 +9,6 @@ export { MovableTitledDialogComponent } from './components/movableTitledDialog/m
|
|
|
9
9
|
export { ConfirmationDialogComponent } from './components/confirmationDialog/confirmationDialog.component';
|
|
10
10
|
export { ConfirmationDialogDirective } from './directives/confirmationDialog/confirmationDialog.directive';
|
|
11
11
|
export { DebugDataCopyClickDirective } from './directives/debugDataCopyClick/debugDataCopyClick.directive';
|
|
12
|
-
export
|
|
12
|
+
export * from './misc/providers';
|
|
13
|
+
export * from './misc/tokens';
|
|
13
14
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../material/src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,kBAAkB,EAAC,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAC,wBAAwB,EAAC,MAAM,qCAAqC,CAAC;AAC7E,OAAO,EAAC,yBAAyB,EAAC,MAAM,sCAAsC,CAAC;AAC/E,OAAO,EAAC,mBAAmB,EAAC,MAAM,8CAA8C,CAAC;AACjF,OAAO,EAAC,0BAA0B,EAAC,MAAM,qDAAqD,CAAC;AAE/F,OAAO,EAAC,wBAAwB,EAAC,MAAM,qCAAqC,CAAC;AAC7E,OAAO,EAAC,qBAAqB,EAAC,MAAM,kDAAkD,CAAC;AACvF,OAAO,EAAC,4BAA4B,EAAC,MAAM,gEAAgE,CAAC;AAC5G,OAAO,EAAC,2BAA2B,EAAC,MAAM,8DAA8D,CAAC;AACzG,OAAO,EAAC,2BAA2B,EAAC,MAAM,8DAA8D,CAAC;AACzG,OAAO,EAAC,2BAA2B,EAAC,MAAM,8DAA8D,CAAC;AAEzG,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../material/src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,kBAAkB,EAAC,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAC,wBAAwB,EAAC,MAAM,qCAAqC,CAAC;AAC7E,OAAO,EAAC,yBAAyB,EAAC,MAAM,sCAAsC,CAAC;AAC/E,OAAO,EAAC,mBAAmB,EAAC,MAAM,8CAA8C,CAAC;AACjF,OAAO,EAAC,0BAA0B,EAAC,MAAM,qDAAqD,CAAC;AAE/F,OAAO,EAAC,wBAAwB,EAAC,MAAM,qCAAqC,CAAC;AAC7E,OAAO,EAAC,qBAAqB,EAAC,MAAM,kDAAkD,CAAC;AACvF,OAAO,EAAC,4BAA4B,EAAC,MAAM,gEAAgE,CAAC;AAC5G,OAAO,EAAC,2BAA2B,EAAC,MAAM,8DAA8D,CAAC;AACzG,OAAO,EAAC,2BAA2B,EAAC,MAAM,8DAA8D,CAAC;AACzG,OAAO,EAAC,2BAA2B,EAAC,MAAM,8DAA8D,CAAC;AAEzG,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC","sourcesContent":["export {TitledDialogModule} from './modules/titledDialog.module';\nexport {DebugDataCopyClickModule} from './modules/debugDataCopyClick.module';\nexport {MovableTitledDialogModule} from './modules/movableTitledDialog.module';\nexport {TitledDialogService} from './services/titledDialog/titledDialog.service';\nexport {TitledDialogServiceOptions} from './services/titledDialog/titledDialogService.options';\nexport {TitledDialogConfig} from './misc/interfaces/titledDialog.interface';\nexport {ConfirmationDialogModule} from './modules/confirmationDialog.module';\nexport {TitledDialogComponent} from './components/titledDialog/titledDialog.component';\nexport {MovableTitledDialogComponent} from './components/movableTitledDialog/movableTitledDialog.component';\nexport {ConfirmationDialogComponent} from './components/confirmationDialog/confirmationDialog.component';\nexport {ConfirmationDialogDirective} from './directives/confirmationDialog/confirmationDialog.directive';\nexport {DebugDataCopyClickDirective} from './directives/debugDataCopyClick/debugDataCopyClick.directive';\nexport {ConfirmationDialogOptions, ConfirmationDialogCssClasses} from './misc/interfaces/confirmationDialog.interface';\nexport * from './misc/providers';\nexport * from './misc/tokens';\n"]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { makeEnvironmentProviders } from '@angular/core';
|
|
2
|
+
import { CONFIRMATION_DIALOG_OPTIONS } from './tokens';
|
|
3
|
+
/**
|
|
4
|
+
* Provides global options for confirmation dialog
|
|
5
|
+
* @param options - Confirmation dialog options to be provided
|
|
6
|
+
*/
|
|
7
|
+
export function provideConfirmationDialogOptions(options) {
|
|
8
|
+
return makeEnvironmentProviders([
|
|
9
|
+
{
|
|
10
|
+
provide: CONFIRMATION_DIALOG_OPTIONS,
|
|
11
|
+
useValue: options,
|
|
12
|
+
}
|
|
13
|
+
]);
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=providers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"providers.js","sourceRoot":"","sources":["../../../../material/src/misc/providers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsC,wBAAwB,EAAC,MAAM,eAAe,CAAC;AAI5F,OAAO,EAAC,2BAA2B,EAAC,MAAM,UAAU,CAAC;AAErD;;;GAGG;AACH,MAAM,UAAU,gCAAgC,CAAC,OAAoD;IAEjG,OAAO,wBAAwB,CAC/B;QAEI;YACI,OAAO,EAAE,2BAA2B;YACpC,QAAQ,EAAE,OAAO;SACpB;KACJ,CAAC,CAAC;AACP,CAAC","sourcesContent":["import {EnvironmentProviders, ValueProvider, makeEnvironmentProviders} from '@angular/core';\nimport {RecursivePartial} from '@jscrpt/common';\n\nimport {ConfirmationDialogOptions} from './interfaces/confirmationDialog.interface';\nimport {CONFIRMATION_DIALOG_OPTIONS} from './tokens';\n\n/**\n * Provides global options for confirmation dialog\n * @param options - Confirmation dialog options to be provided\n */\nexport function provideConfirmationDialogOptions(options: RecursivePartial<ConfirmationDialogOptions>): EnvironmentProviders\n{\n return makeEnvironmentProviders(\n [\n <ValueProvider>\n {\n provide: CONFIRMATION_DIALOG_OPTIONS,\n useValue: options,\n }\n ]);\n}"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tokens.js","sourceRoot":"","sources":["../../../../material/src/misc/tokens.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAC,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"tokens.js","sourceRoot":"","sources":["../../../../material/src/misc/tokens.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAC,MAAM,eAAe,CAAC;AAK7C;;GAEG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAgE,IAAI,cAAc,CAA8C,6BAA6B,CAAC,CAAC;AAEvM;;GAEG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAwB,IAAI,cAAc,CAAM,oBAAoB,CAAC,CAAC","sourcesContent":["import {InjectionToken} from '@angular/core';\nimport {RecursivePartial} from '@jscrpt/common';\n\nimport {ConfirmationDialogOptions} from './interfaces/confirmationDialog.interface';\n\n/**\n * Injection token used for setting global default options for confirmation dialog\n */\nexport const CONFIRMATION_DIALOG_OPTIONS: InjectionToken<RecursivePartial<ConfirmationDialogOptions>> = new InjectionToken<RecursivePartial<ConfirmationDialogOptions>>('CONFIRMATION_DIALOG_OPTIONS');\n\n/** \n * Injection token that can be used to access the data that was passed in to a titled dialog. \n */\nexport const TITLED_DIALOG_DATA: InjectionToken<any> = new InjectionToken<any>('TITLED_DIALOG_DATA');\n"]}
|
|
@@ -10,10 +10,10 @@ import * as i0 from "@angular/core";
|
|
|
10
10
|
*/
|
|
11
11
|
export class ConfirmationDialogModule {
|
|
12
12
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.5", ngImport: i0, type: ConfirmationDialogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
13
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.5", ngImport: i0, type: ConfirmationDialogModule, declarations: [ConfirmationDialogComponent,
|
|
14
|
-
ConfirmationDialogDirective], imports: [CommonModule,
|
|
13
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.5", ngImport: i0, type: ConfirmationDialogModule, declarations: [ConfirmationDialogComponent], imports: [CommonModule,
|
|
15
14
|
CommonLocalizeModule,
|
|
16
|
-
TitledDialogModule
|
|
15
|
+
TitledDialogModule,
|
|
16
|
+
ConfirmationDialogDirective], exports: [ConfirmationDialogDirective] });
|
|
17
17
|
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.5", ngImport: i0, type: ConfirmationDialogModule, imports: [CommonModule,
|
|
18
18
|
CommonLocalizeModule,
|
|
19
19
|
TitledDialogModule] });
|
|
@@ -24,14 +24,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.5", ngImpor
|
|
|
24
24
|
imports: [
|
|
25
25
|
CommonModule,
|
|
26
26
|
CommonLocalizeModule,
|
|
27
|
-
TitledDialogModule
|
|
27
|
+
TitledDialogModule,
|
|
28
|
+
ConfirmationDialogDirective,
|
|
28
29
|
],
|
|
29
30
|
declarations: [
|
|
30
31
|
ConfirmationDialogComponent,
|
|
31
|
-
ConfirmationDialogDirective
|
|
32
32
|
],
|
|
33
33
|
exports: [
|
|
34
|
-
ConfirmationDialogDirective
|
|
34
|
+
ConfirmationDialogDirective,
|
|
35
35
|
]
|
|
36
36
|
}]
|
|
37
37
|
}] });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"confirmationDialog.module.js","sourceRoot":"","sources":["../../../../material/src/modules/confirmationDialog.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,eAAe,CAAC;AACvC,OAAO,EAAC,YAAY,EAAC,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAC,oBAAoB,EAAC,MAAM,eAAe,CAAC;AAEnD,OAAO,EAAC,2BAA2B,EAAC,MAAM,+DAA+D,CAAC;AAC1G,OAAO,EAAC,kBAAkB,EAAC,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAC,2BAA2B,EAAC,MAAM,+DAA+D,CAAC;;AAE1G;;GAEG;AAmBH,MAAM,OAAO,wBAAwB;uGAAxB,wBAAwB;wGAAxB,wBAAwB,
|
|
1
|
+
{"version":3,"file":"confirmationDialog.module.js","sourceRoot":"","sources":["../../../../material/src/modules/confirmationDialog.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,eAAe,CAAC;AACvC,OAAO,EAAC,YAAY,EAAC,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAC,oBAAoB,EAAC,MAAM,eAAe,CAAC;AAEnD,OAAO,EAAC,2BAA2B,EAAC,MAAM,+DAA+D,CAAC;AAC1G,OAAO,EAAC,kBAAkB,EAAC,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAC,2BAA2B,EAAC,MAAM,+DAA+D,CAAC;;AAE1G;;GAEG;AAmBH,MAAM,OAAO,wBAAwB;uGAAxB,wBAAwB;wGAAxB,wBAAwB,iBAP7B,2BAA2B,aAP3B,YAAY;YACZ,oBAAoB;YACpB,kBAAkB;YAClB,2BAA2B,aAQ3B,2BAA2B;wGAGtB,wBAAwB,YAd7B,YAAY;YACZ,oBAAoB;YACpB,kBAAkB;;2FAYb,wBAAwB;kBAlBpC,QAAQ;mBACT;oBACI,OAAO,EACP;wBACI,YAAY;wBACZ,oBAAoB;wBACpB,kBAAkB;wBAClB,2BAA2B;qBAC9B;oBACD,YAAY,EACZ;wBACI,2BAA2B;qBAC9B;oBACD,OAAO,EACP;wBACI,2BAA2B;qBAC9B;iBACJ","sourcesContent":["import {NgModule} from '@angular/core';\nimport {CommonModule} from '@angular/common';\nimport {CommonLocalizeModule} from '@anglr/common';\n\nimport {ConfirmationDialogComponent} from '../components/confirmationDialog/confirmationDialog.component';\nimport {TitledDialogModule} from './titledDialog.module';\nimport {ConfirmationDialogDirective} from '../directives/confirmationDialog/confirmationDialog.directive';\n\n/**\n * Module containing confirmation dialog component and directive\n */\n@NgModule(\n{\n imports:\n [\n CommonModule,\n CommonLocalizeModule,\n TitledDialogModule,\n ConfirmationDialogDirective,\n ],\n declarations:\n [\n ConfirmationDialogComponent,\n ],\n exports:\n [\n ConfirmationDialogDirective,\n ]\n})\nexport class ConfirmationDialogModule\n{\n}"]}
|
|
@@ -45,6 +45,6 @@ export declare class ConfirmationDialogDirective {
|
|
|
45
45
|
*/
|
|
46
46
|
click(event: MouseEvent): Promise<void>;
|
|
47
47
|
static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmationDialogDirective, never>;
|
|
48
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ConfirmationDialogDirective, "[confirmation]", never, { "confirmationText": { "alias": "confirmation"; "required": false; }; "confirmationTitle": { "alias": "confirmationTitle"; "required": false; }; "confirmationConfirm": { "alias": "confirmationConfirm"; "required": false; }; "confirmationCancel": { "alias": "confirmationCancel"; "required": false; }; "confirmationCssClasses": { "alias": "confirmationCssClasses"; "required": false; }; "skipConfirmation": { "alias": "skipConfirmation"; "required": false; }; "preventDefaultsAndPropagation": { "alias": "preventDefaultsAndPropagation"; "required": false; }; }, { "confirm": "confirm"; }, never, never,
|
|
48
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ConfirmationDialogDirective, "[confirmation]", never, { "confirmationText": { "alias": "confirmation"; "required": false; }; "confirmationTitle": { "alias": "confirmationTitle"; "required": false; }; "confirmationConfirm": { "alias": "confirmationConfirm"; "required": false; }; "confirmationCancel": { "alias": "confirmationCancel"; "required": false; }; "confirmationCssClasses": { "alias": "confirmationCssClasses"; "required": false; }; "skipConfirmation": { "alias": "skipConfirmation"; "required": false; }; "preventDefaultsAndPropagation": { "alias": "preventDefaultsAndPropagation"; "required": false; }; }, { "confirm": "confirm"; }, never, never, true, never>;
|
|
49
49
|
}
|
|
50
50
|
//# sourceMappingURL=confirmationDialog.directive.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"confirmationDialog.directive.d.ts","sourceRoot":"","sources":["confirmationDialog.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,YAAY,EAAuB,MAAM,eAAe,CAAC;AAGnF,OAAO,EAAC,mBAAmB,EAAC,MAAM,kDAAkD,CAAC;AAErF,OAAO,EAA4B,4BAA4B,EAAC,MAAM,oDAAoD,CAAC;;AAE3H;;GAEG;AACH,
|
|
1
|
+
{"version":3,"file":"confirmationDialog.directive.d.ts","sourceRoot":"","sources":["confirmationDialog.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,YAAY,EAAuB,MAAM,eAAe,CAAC;AAGnF,OAAO,EAAC,mBAAmB,EAAC,MAAM,kDAAkD,CAAC;AAErF,OAAO,EAA4B,4BAA4B,EAAC,MAAM,oDAAoD,CAAC;;AAE3H;;GAEG;AACH,qBAKa,2BAA2B;IAuDxB,OAAO,CAAC,OAAO;IAnD3B;;OAEG;IAEI,gBAAgB,EAAE,MAAM,GAAC,SAAS,GAAC,IAAI,CAAa;IAE3D;;OAEG;IAEI,iBAAiB,EAAE,MAAM,CAAkB;IAElD;;OAEG;IAEI,mBAAmB,EAAE,MAAM,GAAC,SAAS,GAAC,IAAI,CAAa;IAE9D;;OAEG;IAEI,kBAAkB,EAAE,MAAM,GAAC,SAAS,GAAC,IAAI,CAAa;IAE7D;;OAEG;IAEI,sBAAsB,EAAE,4BAA4B,GAAC,SAAS,GAAC,IAAI,CAAa;IAEvF;;OAEG;IAEI,gBAAgB,EAAE,OAAO,CAAS;IAEzC;;OAEG;IAEI,6BAA6B,EAAE,OAAO,CAAQ;IAIrD;;OAEG;IAEI,OAAO,EAAE,YAAY,CAAC,IAAI,CAAC,CAA4B;gBAG1C,OAAO,EAAE,mBAAmB;IAMhD;;OAEG;IAEU,KAAK,CAAC,KAAK,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC;yCAjE3C,2BAA2B;2CAA3B,2BAA2B;CAkGvC"}
|
package/material/src/index.d.ts
CHANGED
|
@@ -11,5 +11,6 @@ export { ConfirmationDialogComponent } from './components/confirmationDialog/con
|
|
|
11
11
|
export { ConfirmationDialogDirective } from './directives/confirmationDialog/confirmationDialog.directive';
|
|
12
12
|
export { DebugDataCopyClickDirective } from './directives/debugDataCopyClick/debugDataCopyClick.directive';
|
|
13
13
|
export { ConfirmationDialogOptions, ConfirmationDialogCssClasses } from './misc/interfaces/confirmationDialog.interface';
|
|
14
|
-
export
|
|
14
|
+
export * from './misc/providers';
|
|
15
|
+
export * from './misc/tokens';
|
|
15
16
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,kBAAkB,EAAC,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAC,wBAAwB,EAAC,MAAM,qCAAqC,CAAC;AAC7E,OAAO,EAAC,yBAAyB,EAAC,MAAM,sCAAsC,CAAC;AAC/E,OAAO,EAAC,mBAAmB,EAAC,MAAM,8CAA8C,CAAC;AACjF,OAAO,EAAC,0BAA0B,EAAC,MAAM,qDAAqD,CAAC;AAC/F,OAAO,EAAC,kBAAkB,EAAC,MAAM,0CAA0C,CAAC;AAC5E,OAAO,EAAC,wBAAwB,EAAC,MAAM,qCAAqC,CAAC;AAC7E,OAAO,EAAC,qBAAqB,EAAC,MAAM,kDAAkD,CAAC;AACvF,OAAO,EAAC,4BAA4B,EAAC,MAAM,gEAAgE,CAAC;AAC5G,OAAO,EAAC,2BAA2B,EAAC,MAAM,8DAA8D,CAAC;AACzG,OAAO,EAAC,2BAA2B,EAAC,MAAM,8DAA8D,CAAC;AACzG,OAAO,EAAC,2BAA2B,EAAC,MAAM,8DAA8D,CAAC;AACzG,OAAO,EAAC,yBAAyB,EAAE,4BAA4B,EAAC,MAAM,gDAAgD,CAAC;AACvH,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,kBAAkB,EAAC,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAC,wBAAwB,EAAC,MAAM,qCAAqC,CAAC;AAC7E,OAAO,EAAC,yBAAyB,EAAC,MAAM,sCAAsC,CAAC;AAC/E,OAAO,EAAC,mBAAmB,EAAC,MAAM,8CAA8C,CAAC;AACjF,OAAO,EAAC,0BAA0B,EAAC,MAAM,qDAAqD,CAAC;AAC/F,OAAO,EAAC,kBAAkB,EAAC,MAAM,0CAA0C,CAAC;AAC5E,OAAO,EAAC,wBAAwB,EAAC,MAAM,qCAAqC,CAAC;AAC7E,OAAO,EAAC,qBAAqB,EAAC,MAAM,kDAAkD,CAAC;AACvF,OAAO,EAAC,4BAA4B,EAAC,MAAM,gEAAgE,CAAC;AAC5G,OAAO,EAAC,2BAA2B,EAAC,MAAM,8DAA8D,CAAC;AACzG,OAAO,EAAC,2BAA2B,EAAC,MAAM,8DAA8D,CAAC;AACzG,OAAO,EAAC,2BAA2B,EAAC,MAAM,8DAA8D,CAAC;AACzG,OAAO,EAAC,yBAAyB,EAAE,4BAA4B,EAAC,MAAM,gDAAgD,CAAC;AACvH,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { EnvironmentProviders } from '@angular/core';
|
|
2
|
+
import { RecursivePartial } from '@jscrpt/common';
|
|
3
|
+
import { ConfirmationDialogOptions } from './interfaces/confirmationDialog.interface';
|
|
4
|
+
/**
|
|
5
|
+
* Provides global options for confirmation dialog
|
|
6
|
+
* @param options - Confirmation dialog options to be provided
|
|
7
|
+
*/
|
|
8
|
+
export declare function provideConfirmationDialogOptions(options: RecursivePartial<ConfirmationDialogOptions>): EnvironmentProviders;
|
|
9
|
+
//# sourceMappingURL=providers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"providers.d.ts","sourceRoot":"","sources":["providers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,oBAAoB,EAA0C,MAAM,eAAe,CAAC;AAC5F,OAAO,EAAC,gBAAgB,EAAC,MAAM,gBAAgB,CAAC;AAEhD,OAAO,EAAC,yBAAyB,EAAC,MAAM,2CAA2C,CAAC;AAGpF;;;GAGG;AACH,wBAAgB,gCAAgC,CAAC,OAAO,EAAE,gBAAgB,CAAC,yBAAyB,CAAC,GAAG,oBAAoB,CAU3H"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { InjectionToken } from '@angular/core';
|
|
2
|
+
import { RecursivePartial } from '@jscrpt/common';
|
|
2
3
|
import { ConfirmationDialogOptions } from './interfaces/confirmationDialog.interface';
|
|
3
4
|
/**
|
|
4
5
|
* Injection token used for setting global default options for confirmation dialog
|
|
5
6
|
*/
|
|
6
|
-
export declare const CONFIRMATION_DIALOG_OPTIONS: InjectionToken<ConfirmationDialogOptions
|
|
7
|
+
export declare const CONFIRMATION_DIALOG_OPTIONS: InjectionToken<RecursivePartial<ConfirmationDialogOptions>>;
|
|
7
8
|
/**
|
|
8
9
|
* Injection token that can be used to access the data that was passed in to a titled dialog.
|
|
9
10
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["tokens.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAC,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["tokens.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAC,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAC,gBAAgB,EAAC,MAAM,gBAAgB,CAAC;AAEhD,OAAO,EAAC,yBAAyB,EAAC,MAAM,2CAA2C,CAAC;AAEpF;;GAEG;AACH,eAAO,MAAM,2BAA2B,EAAE,cAAc,CAAC,gBAAgB,CAAC,yBAAyB,CAAC,CAAkG,CAAC;AAEvM;;GAEG;AACH,eAAO,MAAM,kBAAkB,EAAE,cAAc,CAAC,GAAG,CAAiD,CAAC"}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "../components/confirmationDialog/confirmationDialog.component";
|
|
3
|
-
import * as i2 from "
|
|
4
|
-
import * as i3 from "@
|
|
5
|
-
import * as i4 from "
|
|
6
|
-
import * as i5 from "
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "@anglr/common";
|
|
5
|
+
import * as i4 from "./titledDialog.module";
|
|
6
|
+
import * as i5 from "../directives/confirmationDialog/confirmationDialog.directive";
|
|
7
7
|
/**
|
|
8
8
|
* Module containing confirmation dialog component and directive
|
|
9
9
|
*/
|
|
10
10
|
export declare class ConfirmationDialogModule {
|
|
11
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmationDialogModule, never>;
|
|
12
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ConfirmationDialogModule, [typeof i1.ConfirmationDialogComponent, typeof i2.
|
|
12
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ConfirmationDialogModule, [typeof i1.ConfirmationDialogComponent], [typeof i2.CommonModule, typeof i3.CommonLocalizeModule, typeof i4.TitledDialogModule, typeof i5.ConfirmationDialogDirective], [typeof i5.ConfirmationDialogDirective]>;
|
|
13
13
|
static ɵinj: i0.ɵɵInjectorDeclaration<ConfirmationDialogModule>;
|
|
14
14
|
}
|
|
15
15
|
//# sourceMappingURL=confirmationDialog.module.d.ts.map
|
package/package.json
CHANGED
package/version.bak
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
19.1.0-beta.
|
|
1
|
+
19.1.0-beta.20231206041003
|