@anglr/common 19.1.0-beta.20231205182550 → 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 CHANGED
@@ -1,11 +1,12 @@
1
1
  # Changelog
2
2
 
3
- ## Version 19.1.0 (2023-12-05)
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
- - fixed `ConfirmationDialogDirective`, now correctly takes global options
8
+ - *subpackage* `@anglr/common/material`
9
+ - fixed `ConfirmationDialogDirective`, now correctly takes global options
9
10
 
10
11
  ### Feature
11
12
 
@@ -20,8 +21,12 @@
20
21
  - `ellipsisTooltip` gets or sets HTML element from which is text taken for tooltip
21
22
  - updated `TooltipDirective` directive
22
23
  - is now `standalone`
23
- - updated `ConfirmationDialogDirective` directive
24
- - 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`
25
30
 
26
31
  ## Version 19.0.0 (2023-11-09)
27
32
 
@@ -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 { CONFIRMATION_DIALOG_OPTIONS, TITLED_DIALOG_DATA } from './misc/tokens';
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,OAAO,EAAC,2BAA2B,EAAE,kBAAkB,EAAC,MAAM,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 {CONFIRMATION_DIALOG_OPTIONS, TITLED_DIALOG_DATA} from './misc/tokens';\n"]}
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;AAI7C;;GAEG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAA8C,IAAI,cAAc,CAA4B,6BAA6B,CAAC,CAAC;AAEnK;;GAEG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAwB,IAAI,cAAc,CAAM,oBAAoB,CAAC,CAAC","sourcesContent":["import {InjectionToken} from '@angular/core';\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<ConfirmationDialogOptions> = new InjectionToken<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"]}
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"]}
@@ -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 { CONFIRMATION_DIALOG_OPTIONS, TITLED_DIALOG_DATA } from './misc/tokens';
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,OAAO,EAAC,2BAA2B,EAAE,kBAAkB,EAAC,MAAM,eAAe,CAAC"}
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;AAE7C,OAAO,EAAC,yBAAyB,EAAC,MAAM,2CAA2C,CAAC;AAEpF;;GAEG;AACH,eAAO,MAAM,2BAA2B,EAAE,cAAc,CAAC,yBAAyB,CAAgF,CAAC;AAEnK;;GAEG;AACH,eAAO,MAAM,kBAAkB,EAAE,cAAc,CAAC,GAAG,CAAiD,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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anglr/common",
3
- "version": "19.1.0-beta.20231205182550",
3
+ "version": "19.1.0-beta.20231206041003",
4
4
  "description": "Angular module for common angular stuff",
5
5
  "type": "module",
6
6
  "sideEffects": false,
package/version.bak CHANGED
@@ -1 +1 @@
1
- 19.1.0-beta.20231205182550
1
+ 19.1.0-beta.20231206041003