@anglr/common 23.0.0-beta.20250825105211 → 23.0.0-beta.20250926130712

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.
Files changed (123) hide show
  1. package/changelog.md +10 -8
  2. package/es2022/floating-ui/src/services/floatingUiDomPosition.service.js +3 -3
  3. package/es2022/forms/src/components/defaultValidationErrors/defaultValidationErrors.component.js +3 -3
  4. package/es2022/forms/src/components/defaultValidationErrorsContainer/defaultValidationErrorsContainer.component.js +3 -3
  5. package/es2022/forms/src/components/reservedSpaceValidationErrorsContainer/reservedSpaceValidationErrorsContainer.component.js +3 -3
  6. package/es2022/forms/src/directives/groupHasError/groupHasError.directive.js +3 -3
  7. package/es2022/forms/src/directives/groupHasErrorContainer/groupHasErrorContainer.directive.js +3 -3
  8. package/es2022/forms/src/directives/hasError/hasError.directive.js +3 -3
  9. package/es2022/forms/src/directives/numberInput/maxValueNumberValidator.directive.js +3 -3
  10. package/es2022/forms/src/directives/numberInput/minValueNumberValidator.directive.js +3 -3
  11. package/es2022/forms/src/directives/numberInput/numberInputControlValueAccessor.directive.js +3 -3
  12. package/es2022/forms/src/directives/numberInput/numberInputValidator.directive.js +3 -3
  13. package/es2022/forms/src/directives/requiredClass/requiredClass.directive.js +3 -3
  14. package/es2022/forms/src/directives/validationErrorsContainer/validationErrorsContainer.directive.js +3 -3
  15. package/es2022/forms/src/modules/errorMessage/components/groupErrors/groupErrors.component.js +3 -3
  16. package/es2022/forms/src/modules/errorMessage/directives/errorMessage/errorMessage.directive.js +3 -3
  17. package/es2022/forms/src/modules/errorMessage/directives/groupErrorsTemplate/groupErrorsTemplate.directive.js +3 -3
  18. package/es2022/forms/src/modules/errorMessage/modules/errorMessage.module.js +4 -4
  19. package/es2022/forms/src/modules/errorMessage/pipes/withErrorMessage/withErrorMessage.pipe.js +3 -3
  20. package/es2022/forms/src/modules/formPipes/modules/formPipes.module.js +4 -4
  21. package/es2022/forms/src/modules/formPipes/pipes/asFormArray/asFormArray.pipe.js +3 -3
  22. package/es2022/forms/src/modules/formPipes/pipes/asFormControl/asFormControl.pipe.js +3 -3
  23. package/es2022/forms/src/modules/formPipes/pipes/asFormGroup/asFormGroup.pipe.js +3 -3
  24. package/es2022/forms/src/modules/formPipes/pipes/getControl/getControl.pipe.js +3 -3
  25. package/es2022/forms/src/modules/hasError.module.js +4 -4
  26. package/es2022/forms/src/modules/numberInput.module.js +4 -4
  27. package/es2022/forms/src/services/errorMessagesExtractor/errorMessagesExtractor.service.js +3 -3
  28. package/es2022/forms/src/services/formModelBuilder/formModelBuilder.service.js +3 -3
  29. package/es2022/forms/src/services/submitted/submitted.service.js +3 -3
  30. package/es2022/forms/src/services/validationErrorRenderer/validationErrorRenderer.service.js +3 -3
  31. package/es2022/hotkeys/src/components/cheatSheet/cheatSheet.component.js +3 -3
  32. package/es2022/hotkeys/src/services/appHotkeys.service.js +3 -3
  33. package/es2022/material/src/components/confirmationDialog/confirmationDialog.component.js +3 -3
  34. package/es2022/material/src/components/movableTitledDialog/movableTitledDialog.component.js +3 -3
  35. package/es2022/material/src/components/titledDialog/titledDialog.component.js +3 -3
  36. package/es2022/material/src/directives/confirmationDialog/confirmationDialog.directive.js +3 -3
  37. package/es2022/material/src/directives/debugDataCopyClick/debugDataCopyClick.directive.js +3 -3
  38. package/es2022/material/src/modules/confirmationDialog.module.js +4 -4
  39. package/es2022/material/src/modules/debugDataCopyClick.module.js +4 -4
  40. package/es2022/material/src/modules/movableTitledDialog.module.js +4 -4
  41. package/es2022/material/src/modules/titledDialog.module.js +4 -4
  42. package/es2022/material/src/services/titledDialog/titledDialog.service.js +3 -3
  43. package/es2022/router/src/services/routing/dataRouter.js +3 -3
  44. package/es2022/router/src/services/routing/dataRouterData.js +3 -3
  45. package/es2022/src/components/collapsibleIcon/collapsibleIcon.component.js +3 -3
  46. package/es2022/src/components/collapsibleTitle/collapsibleTitle.component.js +3 -3
  47. package/es2022/src/directives/bodyRender/bodyRender.directive.js +3 -3
  48. package/es2022/src/directives/clickOutside/clickOutside.directive.js +3 -3
  49. package/es2022/src/directives/ellipsisTooltip/ellipsisTooltip.directive.js +3 -3
  50. package/es2022/src/directives/goBack/goBack.directive.js +3 -3
  51. package/es2022/src/directives/ngComponentOutletEx/ngComponentOutletEx.directive.js +3 -3
  52. package/es2022/src/directives/positionTo/positionTo.directive.js +3 -3
  53. package/es2022/src/modules/castPipes/modules/castPipes.module.js +4 -4
  54. package/es2022/src/modules/castPipes/pipes/asHtmlElement/asHtmlElement.pipe.js +3 -3
  55. package/es2022/src/modules/castPipes/pipes/asNgClassRequired/asNgClassRequired.pipe.js +3 -3
  56. package/es2022/src/modules/castPipes/pipes/asRequired/asRequired.pipe.js +3 -3
  57. package/es2022/src/modules/castPipes/pipes/castType/castType.pipe.js +3 -3
  58. package/es2022/src/modules/commonDynamic.module.js +4 -4
  59. package/es2022/src/modules/commonLocalize.module.js +4 -4
  60. package/es2022/src/modules/commonUtils.module.js +4 -4
  61. package/es2022/src/modules/debugData/components/debugData/debugData.component.js +3 -3
  62. package/es2022/src/modules/debugData/modules/debugData.module.js +4 -4
  63. package/es2022/src/modules/debugData/services/debugDataEnabled/debugDataEnabled.service.js +3 -3
  64. package/es2022/src/modules/file/components/file/file.component.js +3 -3
  65. package/es2022/src/modules/file/components/fileInput/fileInput.component.js +3 -3
  66. package/es2022/src/modules/file/components/uploadButton/uploadButton.component.js +3 -3
  67. package/es2022/src/modules/file/directive/fileInput/fileInput.directive.js +3 -3
  68. package/es2022/src/modules/file/directive/fileTemplate/fileTemplate.directive.js +3 -3
  69. package/es2022/src/modules/file/modules/file.module.js +4 -4
  70. package/es2022/src/modules/logger/components/console/console.component.js +3 -3
  71. package/es2022/src/modules/logger/services/console/consoleComponent.service.js +3 -3
  72. package/es2022/src/modules/logger/services/console/consoleComponentService.options.js +3 -3
  73. package/es2022/src/modules/logger/services/logger/logger.service.js +3 -3
  74. package/es2022/src/modules/logger/services/rest/restSink.options.js +3 -3
  75. package/es2022/src/modules/logger/types/loggerOptions.js +3 -3
  76. package/es2022/src/modules/multiButton/components/multiButton/multiButton.component.js +3 -3
  77. package/es2022/src/modules/multiButton/modules/multiButton.module.js +4 -4
  78. package/es2022/src/modules/progressIndicator/components/progressIndicator/progressIndicator.component.js +3 -3
  79. package/es2022/src/modules/progressIndicator/directives/progressOverlay/progressOverlay.directive.js +3 -3
  80. package/es2022/src/modules/progressIndicator/interceptors/progressInterceptor.js +36 -23
  81. package/es2022/src/modules/progressIndicator/interceptors/progressInterceptor.js.map +1 -1
  82. package/es2022/src/modules/progressIndicator/modules/progressIndicator.module.js +4 -4
  83. package/es2022/src/modules/progressIndicator/services/progressIndicator.service.js +3 -3
  84. package/es2022/src/modules/tooltip/components/tooltip/tooltip.component.js +5 -7
  85. package/es2022/src/modules/tooltip/components/tooltip/tooltip.component.js.map +1 -1
  86. package/es2022/src/modules/tooltip/directives/tooltip/tooltip.directive.js +14 -6
  87. package/es2022/src/modules/tooltip/directives/tooltip/tooltip.directive.js.map +1 -1
  88. package/es2022/src/modules/tooltip/directives/tooltipTemplate/tooltipTemplate.directive.js +3 -3
  89. package/es2022/src/modules/tooltip/misc/tooltip.interface.js.map +1 -1
  90. package/es2022/src/modules/tooltip/modules/tooltip.module.js +4 -4
  91. package/es2022/src/pipes/displayProperties/displayProperties.pipe.js +3 -3
  92. package/es2022/src/pipes/firstUppercase/firstUppercase.pipe.js +3 -3
  93. package/es2022/src/pipes/firstUppercaseLocalize/firstUppercaseLocalize.pipe.js +3 -3
  94. package/es2022/src/pipes/isNaN/isNaN.pipe.js +3 -3
  95. package/es2022/src/pipes/isPresent/isPresent.pipe.js +3 -3
  96. package/es2022/src/pipes/keys/keys.pipe.js +3 -3
  97. package/es2022/src/pipes/localize/localize.pipe.js +3 -3
  98. package/es2022/src/pipes/mergeCssClasses/mergeCssClasses.pipe.js +3 -3
  99. package/es2022/src/pipes/numeral/numeral.pipe.js +3 -3
  100. package/es2022/src/pipes/trimText/trimText.pipe.js +3 -3
  101. package/es2022/src/pipes/urlEncode/urlEncode.pipe.js +3 -3
  102. package/es2022/src/services/cookies/cookies.service.js +3 -3
  103. package/es2022/src/services/notifications/defaultNotifications.service.js +3 -3
  104. package/es2022/src/services/permanentStorage/cookiePermanentStorage.service.js +3 -3
  105. package/es2022/src/services/statusCode/statusCode.service.js +3 -3
  106. package/es2022/src/services/stringLocalization/noStringLocalization.service.js +3 -3
  107. package/es2022/src/services/temporaryStorage/memoryTemporaryStorage.service.js +3 -3
  108. package/es2022/src/types/tokens.js.map +1 -1
  109. package/es2022/store/src/services/permanentStorage/localPermanentStorage.service.js +3 -3
  110. package/es2022/store/src/services/temporaryStorage/sessionTemporaryStorage.service.js +3 -3
  111. package/package.json +16 -14
  112. package/src/directives/ellipsisTooltip/ellipsisTooltip.directive.d.ts.map +1 -1
  113. package/src/modules/progressIndicator/interceptors/progressInterceptor.d.ts +12 -5
  114. package/src/modules/progressIndicator/interceptors/progressInterceptor.d.ts.map +1 -1
  115. package/src/modules/tooltip/components/tooltip/tooltip.component.d.ts +2 -9
  116. package/src/modules/tooltip/components/tooltip/tooltip.component.d.ts.map +1 -1
  117. package/src/modules/tooltip/directives/tooltip/tooltip.directive.d.ts +4 -4
  118. package/src/modules/tooltip/directives/tooltip/tooltip.directive.d.ts.map +1 -1
  119. package/src/modules/tooltip/misc/tooltip.interface.d.ts +8 -15
  120. package/src/modules/tooltip/misc/tooltip.interface.d.ts.map +1 -1
  121. package/src/types/tokens.d.ts +2 -2
  122. package/src/types/tokens.d.ts.map +1 -1
  123. package/version.bak +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"tooltip.component.js","sourceRoot":"","sources":["../../../../../../src/modules/tooltip/components/tooltip/tooltip.component.ts","../../../../../../src/modules/tooltip/components/tooltip/tooltip.component.html"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,uBAAuB,EAAe,iBAAiB,EAAE,UAAU,EAAE,YAAY,EAAC,MAAM,eAAe,CAAC;AAC3H,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,YAAY;uBAAC,YAAY;gBAWhB,UAAU;sBADnB,YAAY;uBAAC,YAAY","sourcesContent":["import {Component, ChangeDetectionStrategy, TemplateRef, ChangeDetectorRef, ElementRef, HostListener} from '@angular/core';\nimport {NgTemplateOutlet} from '@angular/common';\nimport {Invalidatable} from '@jscrpt/common';\n\nimport {TooltipTemplateContext} from '../../directives';\nimport {TooltipRenderer} from '../../misc/tooltip.interface';\n\n/**\n * Component used for displaying tooltip content\n */\n@Component(\n{\n selector: 'tooltip-popup',\n templateUrl: 'tooltip.component.html',\n styleUrl: 'tooltip.component.css',\n host:\n {\n '[animate.enter]': 'enterAnimation',\n '[animate.leave]': 'exitAnimation',\n },\n imports:\n [\n NgTemplateOutlet,\n ],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class TooltipComponent<TData = any> implements TooltipRenderer<TData>, Invalidatable\n{\n //######################### protected fields #########################\n\n /**\n * Called when mouse enter tooltip component, hover\n */\n protected enterFn: () => void = () => null;\n\n /**\n * Called when mouse leaves tooltip component\n */\n protected leaveFn: () => void = () => null;\n\n //######################### public properties - implementation of TooltipRenderer #########################\n\n /**\n * Data that are rendered in tooltip\n */\n public data: TData|null|undefined;\n\n /**\n * Template used for rendering tooltip\n */\n public template: TemplateRef<TooltipTemplateContext<TData>>|null|undefined;\n\n /**\n * Indication whether are html tags allowed in tooltip text\n */\n public allowHtml: boolean = false;\n\n /**\n * Css class that is applied to tooltip renderer component\n */\n public cssClass: string|null|undefined;\n\n /**\n * Animation used to tooltip component when it is displayed\n */\n public enterAnimation: string;\n\n /**\n * Animation used to tooltip component when it is hidden\n */\n public exitAnimation: string;\n\n //######################### constructor #########################\n constructor(protected changeDetector: ChangeDetectorRef,\n protected element: ElementRef<HTMLElement>)\n {\n }\n\n //######################### public methods - implementation of TooltipRenderer #########################\n\n /**\n * Registers handlers that allows reaction to entering or leaving tooltip\n * @param enter - Called when mouse enter tooltip component, hover\n * @param leave - Called when mouse leaves tooltip component\n */\n public registerHoverEvents(enter: () => void, leave: () => void): void\n {\n this.enterFn = enter;\n this.leaveFn = leave;\n }\n\n /**\n * @inheritdoc\n */\n public invalidateVisuals(): void\n {\n if(this.cssClass)\n {\n this.element.nativeElement.classList.add(this.cssClass);\n }\n\n this.changeDetector.detectChanges();\n }\n\n //######################### protected methods - host #########################\n\n /**\n * Handles mouse enter event over tooltip\n * @internal\n */\n @HostListener('mouseenter')\n protected mouseEnter(): void\n {\n this.enterFn();\n }\n\n /**\n * Handles mouse leave event over tooltip\n * @internal\n */\n @HostListener('mouseleave')\n protected mouseLeave(): void\n {\n this.leaveFn();\n }\n}","@if(!template && !allowHtml)\r\n{\r\n <div>{{data}}</div>\r\n}\r\n\r\n@if(!template && allowHtml)\r\n{\r\n <div [innerHTML]=\"data\"></div>\r\n}\r\n\r\n@if(template)\r\n{\r\n <ng-container *ngTemplateOutlet=\"template; context: {$implicit: data}\"/>\r\n}\r\n"]}
1
+ {"version":3,"file":"tooltip.component.js","sourceRoot":"","sources":["../../../../../../src/modules/tooltip/components/tooltip/tooltip.component.ts","../../../../../../src/modules/tooltip/components/tooltip/tooltip.component.html"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,uBAAuB,EAAe,iBAAiB,EAAE,UAAU,EAAE,YAAY,EAAC,MAAM,eAAe,CAAC;AAC3H,OAAO,EAAC,gBAAgB,EAAC,MAAM,iBAAiB,CAAC;;AAMjD;;;GAGG;AAYH,MAAM,OAAO,gBAAgB;IAoCzB,iEAAiE;IACjE,YAAsB,cAAiC,EACjC,OAAgC;QADhC,mBAAc,GAAd,cAAc,CAAmB;QACjC,YAAO,GAAP,OAAO,CAAyB;QApCtD,sEAAsE;QAEtE;;WAEG;QACO,YAAO,GAAe,GAAG,EAAE,CAAC,IAAI,CAAC;QAE3C;;WAEG;QACO,YAAO,GAAe,GAAG,EAAE,CAAC,IAAI,CAAC;QAc3C;;WAEG;QACI,cAAS,GAAY,KAAK,CAAC;IAWlC,CAAC;IAED,wGAAwG;IAExG;;;;OAIG;IACI,mBAAmB,CAAC,KAAiB,EAAE,KAAiB;QAE3D,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;QACrB,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;IACzB,CAAC;IAED;;OAEG;IACI,iBAAiB;QAEpB,IAAG,IAAI,CAAC,QAAQ,EAChB,CAAC;YACG,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAC5D,CAAC;QAED,IAAI,CAAC,cAAc,CAAC,aAAa,EAAE,CAAC;IACxC,CAAC;IAED,8EAA8E;IAE9E;;;OAGG;IAEO,UAAU;QAEhB,IAAI,CAAC,OAAO,EAAE,CAAC;IACnB,CAAC;IAED;;;OAGG;IAEO,UAAU;QAEhB,IAAI,CAAC,OAAO,EAAE,CAAC;IACnB,CAAC;8GAxFQ,gBAAgB;kGAAhB,gBAAgB,8JCtB7B,6QAcA,2PDIQ,gBAAgB;;2FAIX,gBAAgB;kBAX5B,SAAS;+BAEI,eAAe,WAIzB;wBACI,gBAAgB;qBACnB,mBACgB,uBAAuB,CAAC,MAAM;+GA6ErC,UAAU;sBADnB,YAAY;uBAAC,YAAY;gBAWhB,UAAU;sBADnB,YAAY;uBAAC,YAAY","sourcesContent":["import {Component, ChangeDetectionStrategy, TemplateRef, ChangeDetectorRef, ElementRef, HostListener} from '@angular/core';\nimport {NgTemplateOutlet} from '@angular/common';\nimport {Invalidatable} from '@jscrpt/common';\n\nimport {TooltipTemplateContext} from '../../directives';\nimport {TooltipRenderer} from '../../misc/tooltip.interface';\n\n/**\n * Component used for displaying tooltip content\n * @template TData - Type of data passed to tooltip\n */\n@Component(\n{\n selector: 'tooltip-popup',\n templateUrl: 'tooltip.component.html',\n styleUrl: 'tooltip.component.css',\n imports:\n [\n NgTemplateOutlet,\n ],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class TooltipComponent<TData = unknown> implements TooltipRenderer<TData>, Invalidatable\n{\n //######################### protected fields #########################\n\n /**\n * Called when mouse enter tooltip component, hover\n */\n protected enterFn: () => void = () => null;\n\n /**\n * Called when mouse leaves tooltip component\n */\n protected leaveFn: () => void = () => null;\n\n //######################### public properties - implementation of TooltipRenderer #########################\n\n /**\n * Data that are rendered in tooltip\n */\n public data: TData|null|undefined;\n\n /**\n * Template used for rendering tooltip\n */\n public template: TemplateRef<TooltipTemplateContext<TData>>|null|undefined;\n\n /**\n * Indication whether are html tags allowed in tooltip text\n */\n public allowHtml: boolean = false;\n\n /**\n * Css class that is applied to tooltip renderer component\n */\n public cssClass: string|null|undefined;\n\n //######################### constructor #########################\n constructor(protected changeDetector: ChangeDetectorRef,\n protected element: ElementRef<HTMLElement>)\n {\n }\n\n //######################### public methods - implementation of TooltipRenderer #########################\n\n /**\n * Registers handlers that allows reaction to entering or leaving tooltip\n * @param enter - Called when mouse enter tooltip component, hover\n * @param leave - Called when mouse leaves tooltip component\n */\n public registerHoverEvents(enter: () => void, leave: () => void): void\n {\n this.enterFn = enter;\n this.leaveFn = leave;\n }\n\n /**\n * @inheritdoc\n */\n public invalidateVisuals(): void\n {\n if(this.cssClass)\n {\n this.element.nativeElement.classList.add(this.cssClass);\n }\n\n this.changeDetector.detectChanges();\n }\n\n //######################### protected methods - host #########################\n\n /**\n * Handles mouse enter event over tooltip\n * @internal\n */\n @HostListener('mouseenter')\n protected mouseEnter(): void\n {\n this.enterFn();\n }\n\n /**\n * Handles mouse leave event over tooltip\n * @internal\n */\n @HostListener('mouseleave')\n protected mouseLeave(): void\n {\n this.leaveFn();\n }\n}\n","@if(!template && !allowHtml)\r\n{\r\n <div>{{data}}</div>\r\n}\r\n\r\n@if(!template && allowHtml)\r\n{\r\n <div [innerHTML]=\"data\"></div>\r\n}\r\n\r\n@if(template)\r\n{\r\n <ng-container *ngTemplateOutlet=\"template; context: {$implicit: data}\"/>\r\n}\r\n"]}
@@ -1,5 +1,6 @@
1
- import { ContentChild, Directive, ElementRef, HostListener, Inject, Injector, Input, Optional, SkipSelf, TemplateRef, ViewContainerRef } from '@angular/core';
1
+ import { ContentChild, Directive, ElementRef, HostListener, Inject, Injector, Input, inputBinding, Optional, SkipSelf, TemplateRef, ViewContainerRef } from '@angular/core';
2
2
  import { DOCUMENT } from '@angular/common';
3
+ import { AnimateDirective } from '@anglr/animations';
3
4
  import { isBlank, isPresent, nameof, renderToBody } from '@jscrpt/common';
4
5
  import { extend } from '@jscrpt/common/extend';
5
6
  import { lastValueFrom } from 'rxjs';
@@ -190,6 +191,15 @@ export class TooltipDirective {
190
191
  this._tooltipComponent = this._viewContainerRef
191
192
  .createComponent(this._options.tooltipRenderer, {
192
193
  injector: this._injector,
194
+ directives: [
195
+ {
196
+ type: AnimateDirective,
197
+ bindings: [
198
+ inputBinding(nameof('enterAnimation'), () => this._options.enterAnimation || []),
199
+ inputBinding(nameof('leaveAnimation'), () => this._options.exitAnimation || []),
200
+ ],
201
+ },
202
+ ],
193
203
  });
194
204
  // 3. Get DOM element from component
195
205
  this._tooltipElement = getHostElement(this._tooltipComponent);
@@ -201,8 +211,6 @@ export class TooltipDirective {
201
211
  */
202
212
  _showData() {
203
213
  if (this._tooltipComponent) {
204
- this._tooltipComponent.instance.enterAnimation = this._options.enterAnimation;
205
- this._tooltipComponent.instance.exitAnimation = this._options.exitAnimation;
206
214
  this._tooltipComponent.instance.allowHtml = this.allowHtml;
207
215
  this._tooltipComponent.instance.data = this.tooltip;
208
216
  this._tooltipComponent.instance.template = this.template ?? this.tooltipTemplateChild?.template;
@@ -224,10 +232,10 @@ export class TooltipDirective {
224
232
  this._tooltipComponent.instance.invalidateVisuals();
225
233
  }
226
234
  }
227
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: TooltipDirective, deps: [{ token: i0.ViewContainerRef }, { token: i0.Injector }, { token: i0.ElementRef }, { token: DOCUMENT }, { token: POSITION }, { token: TooltipDirective, optional: true, skipSelf: true }, { token: TOOLTIP_OPTIONS, optional: true }], target: i0.ɵɵFactoryTarget.Directive }); }
228
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.2.0", type: TooltipDirective, isStandalone: true, selector: "[tooltip]", inputs: { tooltip: "tooltip", allowHtml: "allowHtml", template: "template", tooltipOptions: "tooltipOptions", tooltipVisible: "tooltipVisible", containerElement: "containerElement" }, host: { listeners: { "mouseleave": "mouseLeave($event)", "mousemove": "mouseMove($event)" } }, queries: [{ propertyName: "tooltipTemplateChild", first: true, predicate: TooltipTemplateDirective, descendants: true }], usesOnChanges: true, ngImport: i0 }); }
235
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: TooltipDirective, deps: [{ token: i0.ViewContainerRef }, { token: i0.Injector }, { token: i0.ElementRef }, { token: DOCUMENT }, { token: POSITION }, { token: TooltipDirective, optional: true, skipSelf: true }, { token: TOOLTIP_OPTIONS, optional: true }], target: i0.ɵɵFactoryTarget.Directive }); }
236
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.2", type: TooltipDirective, isStandalone: true, selector: "[tooltip]", inputs: { tooltip: "tooltip", allowHtml: "allowHtml", template: "template", tooltipOptions: "tooltipOptions", tooltipVisible: "tooltipVisible", containerElement: "containerElement" }, host: { listeners: { "mouseleave": "mouseLeave($event)", "mousemove": "mouseMove($event)" } }, queries: [{ propertyName: "tooltipTemplateChild", first: true, predicate: TooltipTemplateDirective, descendants: true }], usesOnChanges: true, ngImport: i0 }); }
229
237
  }
230
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: TooltipDirective, decorators: [{
238
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: TooltipDirective, decorators: [{
231
239
  type: Directive,
232
240
  args: [{
233
241
  selector: '[tooltip]',
@@ -1 +1 @@
1
- {"version":3,"file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;uBAAC,wBAAwB;gBA8D5B,UAAU;sBADnB,YAAY;uBAAC,YAAY,EAAE,CAAC,QAAQ,CAAC;gBA0B5B,SAAS;sBADlB,YAAY;uBAAC,WAAW,EAAE,CAAC,QAAQ,CAAC","sourcesContent":["import {ComponentRef, ContentChild, Directive, ElementRef, HostListener, Inject, Injector, Input, OnChanges, OnDestroy, Optional, SimpleChanges, SkipSelf, TemplateRef, ViewContainerRef} from '@angular/core';\nimport {DOCUMENT} from '@angular/common';\nimport {RecursivePartial, isBlank, isPresent, nameof, renderToBody} from '@jscrpt/common';\nimport {extend} from '@jscrpt/common/extend';\nimport {lastValueFrom} from 'rxjs';\n\nimport {TooltipComponent} from '../../components/tooltip/tooltip.component';\nimport {TooltipOptions, TooltipRenderer} from '../../misc/tooltip.interface';\nimport {TOOLTIP_OPTIONS} from '../../misc/tokens';\nimport {applyPositionResult, Position, PositionPlacement} from '../../../../services/position';\nimport {TooltipTemplateDirective} from '../tooltipTemplate/tooltipTemplate.directive';\nimport {TooltipTemplateContext} from '../tooltipTemplate/tooltipTemplate.context';\nimport {POSITION} from '../../../../types/tokens';\nimport {getHostElement} from '../../../../utils';\n\n/**\n * Default options for tooltip\n */\nconst defaultOptions: TooltipOptions =\n{\n delay: 200,\n position:\n {\n offset: 'MouseEnter',\n placement: PositionPlacement.TopEnd,\n },\n allowSelection: false,\n tooltipRenderer: TooltipComponent,\n tooltipCssClass: null,\n stopPropagation: true,\n enterAnimation: 'fade-in',\n exitAnimation: 'fade-out',\n containerElement: undefined,\n};\n\n/**\n * Directive used for rendering tooltip\n */\n@Directive(\n{\n selector: '[tooltip]',\n})\nexport class TooltipDirective<TData = unknown> implements OnChanges, OnDestroy\n{\n //######################### protected fields #########################\n\n /**\n * Instance of component used for rendering tooltip\n */\n protected _tooltipComponent?: ComponentRef<TooltipRenderer<TData>>;\n\n /**\n * Instance of HTML element for tooltip renderer\n */\n protected _tooltipElement?: HTMLElement;\n\n /**\n * Instance of options provided for this tooltip\n */\n protected _options: TooltipOptions;\n\n /**\n * Indication whether there is active show tooltip request\n */\n protected _showRequest: boolean = false;\n\n /**\n * Indication whether keep open tooltip component\n */\n protected _keepOpen: boolean = false;\n\n /**\n * Timeout that is used for handling mouse move\n */\n protected _timeout: number|null = null;\n\n //######################### public properties - inputs #########################\n\n /**\n * Tooltip text that is displayed, or any data that could be passed to template\n */\n @Input()\n public tooltip?: TData;\n\n /**\n * Indication whether are html tags allowed in tooltip text\n */\n @Input()\n public allowHtml: boolean = false;\n\n /**\n * Instance of tooltip template that is used for rendering\n */\n @Input()\n public template?: TemplateRef<TooltipTemplateContext<TData>>;\n\n /**\n * Options used for displaying tooltip\n */\n @Input()\n public get tooltipOptions(): RecursivePartial<TooltipOptions>\n {\n return this._options;\n }\n public set tooltipOptions(value: RecursivePartial<TooltipOptions>)\n {\n this._options = extend(true, {}, this._options, value);\n\n if(this._options.containerElement && !this.containerElement)\n {\n this.containerElement = this._options.containerElement;\n }\n }\n\n /**\n * Gets or sets indication whether is tooltip visible, if has boolean value, mouse events cant override this\n */\n @Input()\n public tooltipVisible?: boolean;\n\n /**\n * String that defines element in which should be tooltip rendered, if not specified, body is used\n *\n * Allows also css classes to be specified (div.body-box)\n */\n @Input()\n public containerElement: string|undefined|null;\n\n //######################### public properties - children #########################\n\n /**\n * Instance of template from element content, used for rendering\n */\n @ContentChild(TooltipTemplateDirective)\n public tooltipTemplateChild?: TooltipTemplateDirective;\n\n //######################### constructor #########################\n constructor(protected _viewContainerRef: ViewContainerRef,\n protected _injector: Injector,\n protected _element: ElementRef<HTMLElement>,\n @Inject(DOCUMENT) protected _document: Document,\n @Inject(POSITION) protected _position: Position<HTMLElement>,\n @Optional() @SkipSelf() protected _parent?: TooltipDirective|null,\n @Optional() @Inject(TOOLTIP_OPTIONS) options?: Partial<TooltipOptions>,)\n {\n this._options = extend(true, {}, defaultOptions, options);\n\n if(this._options.containerElement)\n {\n this.containerElement = this._options.containerElement;\n }\n }\n\n //######################### public methods - implementation of OnChanges #########################\n\n /**\n * Called when input value changes\n */\n public ngOnChanges(changes: SimpleChanges): void\n {\n if(nameof<TooltipDirective>('tooltipVisible') in changes)\n {\n if(this.tooltipVisible)\n {\n this._showTooltip();\n }\n else\n {\n this._hideTooltip();\n }\n }\n }\n\n //######################### public methods - implementation of OnDestroy #########################\n\n /**\n * Called when component is destroyed\n */\n public ngOnDestroy(): void\n {\n if(this._timeout)\n {\n clearTimeout(this._timeout);\n }\n\n this._destroyTooltip();\n }\n\n //######################### protected methods - host #########################\n\n /**\n * Handles mouse leave event, hover ends\n * @param event - Mouse event that occured\n */\n @HostListener('mouseleave', ['$event'])\n protected mouseLeave(event: MouseEvent): void\n {\n if(this._options.stopPropagation)\n {\n event.stopPropagation();\n }\n\n if(isBlank(this.tooltipVisible))\n {\n setTimeout(() =>\n {\n if(!this._keepOpen)\n {\n this._showRequest = false;\n this._hideTooltip();\n }\n }, 10);\n }\n }\n\n /**\n * Handles mouse move event, displaying tooltip\n * @param event - Mouse event that occured\n */\n @HostListener('mousemove', ['$event'])\n protected mouseMove(event: MouseEvent): void\n {\n if(this._options.stopPropagation)\n {\n event.stopPropagation();\n }\n\n this._showRequest = true;\n\n //do nothing if tooltip is visible\n if(this._tooltipComponent || isPresent(this.tooltipVisible))\n {\n return;\n }\n\n if(isPresent(this._timeout))\n {\n clearTimeout(this._timeout);\n }\n\n this._timeout = setTimeout(() =>\n {\n this._timeout = null;\n\n if(this._showRequest)\n {\n this._showTooltip(event);\n\n this._showRequest = false;\n }\n }, this._options.delay) as any;\n }\n\n //######################### protected methods #########################\n\n /**\n * Shows tooltip\n * @param event - Mouse event\n */\n protected _showTooltip(event?: MouseEvent): void\n {\n //no data for tooltip or no template\n if(!this.tooltip && !this.template && !this.tooltipTemplateChild)\n {\n return;\n }\n\n this._parent?._hideTooltip();\n this._createTooltip();\n\n //if element was not created do nothing\n if(!this._tooltipElement)\n {\n return;\n }\n\n this._showData();\n\n lastValueFrom(this._position.placeElement(this._tooltipElement,\n this._element.nativeElement,\n {\n placement: this._options.position.placement,\n offset: this._options.position.offset,\n flip: true,\n mouseEvent: event,\n autoUpdate: false,\n }))\n .then(result => applyPositionResult(result));\n }\n\n /**\n * Hides tooltip\n */\n protected _hideTooltip(): void\n {\n this._destroyTooltip();\n }\n\n /**\n * Destroys tooltip component\n */\n protected _destroyTooltip(): void\n {\n if(this._tooltipComponent)\n {\n this._viewContainerRef.clear();\n this._tooltipComponent = undefined;\n this._tooltipElement = undefined;\n }\n }\n\n /**\n * Creates tooltip renderer component\n */\n protected _createTooltip(): void\n {\n // 0. Destroys tooltip if it exists\n this._destroyTooltip();\n\n // 1. Create a component reference from the component\n this._tooltipComponent = this._viewContainerRef\n .createComponent(this._options.tooltipRenderer,\n {\n injector: this._injector,\n });\n\n // 3. Get DOM element from component\n this._tooltipElement = getHostElement(this._tooltipComponent);\n\n // 4. Append DOM element to the body\n renderToBody(this._document, this._tooltipElement, this.containerElement);\n }\n\n /**\n * Sets data to tooltip component and shows them\n */\n protected _showData(): void\n {\n if(this._tooltipComponent)\n {\n this._tooltipComponent.instance.enterAnimation = this._options.enterAnimation;\n this._tooltipComponent.instance.exitAnimation = this._options.exitAnimation;\n this._tooltipComponent.instance.allowHtml = this.allowHtml;\n this._tooltipComponent.instance.data = this.tooltip;\n this._tooltipComponent.instance.template = this.template ?? this.tooltipTemplateChild?.template;\n this._tooltipComponent.instance.cssClass = this._options.tooltipCssClass;\n\n this._tooltipComponent.instance.registerHoverEvents(() =>\n {\n if(this._options.allowSelection)\n {\n this._keepOpen = true;\n this._showRequest = false;\n }\n },\n () =>\n {\n setTimeout(() =>\n {\n this._keepOpen = false;\n\n if(!this._showRequest)\n {\n this._hideTooltip();\n }\n\n this._showRequest = false;\n }, 5);\n });\n\n this._tooltipComponent.instance.invalidateVisuals();\n }\n }\n\n //######################### ng language server #########################\n\n /**\n * Custom input type for `tooltip` input\n */\n public static ngAcceptInputType_tooltip: any;\n}\n"]}
1
+ {"version":3,"file":"tooltip.directive.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A7DxC,OAAO;sBADb,KAAK;gBAOC,SAAS;sBADf,KAAK;gBAOC,QAAQ;sBADd,KAAK;gBAOK,cAAc;sBADxB,KAAK;gBAmBC,cAAc;sBADpB,KAAK;gBASC,gBAAgB;sBADtB,KAAK;gBASC,oBAAoB;sBAD1B,YAAY;uBAAC,wBAAwB;gBA8D5B,UAAU;sBADnB,YAAY;uBAAC,YAAY,EAAE,CAAC,QAAQ,CAAC;gBA0B5B,SAAS;sBADlB,YAAY;uBAAC,WAAW,EAAE,CAAC,QAAQ,CAAC","sourcesContent":["import {ComponentRef, ContentChild, Directive, ElementRef, HostListener, Inject, Injector, Input, inputBinding, OnChanges, OnDestroy, Optional, SimpleChanges, SkipSelf, TemplateRef, ViewContainerRef} from '@angular/core';\nimport {DOCUMENT} from '@angular/common';\nimport {AnimateDirective} from '@anglr/animations';\nimport {RecursivePartial, isBlank, isPresent, nameof, renderToBody} from '@jscrpt/common';\nimport {extend} from '@jscrpt/common/extend';\nimport {lastValueFrom} from 'rxjs';\n\nimport {TooltipComponent} from '../../components/tooltip/tooltip.component';\nimport {TooltipOptions, TooltipRenderer} from '../../misc/tooltip.interface';\nimport {TOOLTIP_OPTIONS} from '../../misc/tokens';\nimport {applyPositionResult, Position, PositionPlacement} from '../../../../services/position';\nimport {TooltipTemplateDirective} from '../tooltipTemplate/tooltipTemplate.directive';\nimport {TooltipTemplateContext} from '../tooltipTemplate/tooltipTemplate.context';\nimport {POSITION} from '../../../../types/tokens';\nimport {getHostElement} from '../../../../utils';\n\n/**\n * Default options for tooltip\n */\nconst defaultOptions: TooltipOptions =\n{\n delay: 200,\n position:\n {\n offset: 'MouseEnter',\n placement: PositionPlacement.TopEnd,\n },\n allowSelection: false,\n tooltipRenderer: TooltipComponent,\n tooltipCssClass: null,\n stopPropagation: true,\n enterAnimation: 'fade-in',\n exitAnimation: 'fade-out',\n containerElement: undefined,\n};\n\n/**\n * Directive used for rendering tooltip\n */\n@Directive(\n{\n selector: '[tooltip]',\n})\nexport class TooltipDirective<TData = unknown> implements OnChanges, OnDestroy\n{\n //######################### protected fields #########################\n\n /**\n * Instance of component used for rendering tooltip\n */\n protected _tooltipComponent?: ComponentRef<TooltipRenderer<TData>>;\n\n /**\n * Instance of HTML element for tooltip renderer\n */\n protected _tooltipElement?: HTMLElement;\n\n /**\n * Instance of options provided for this tooltip\n */\n protected _options: TooltipOptions<TData>;\n\n /**\n * Indication whether there is active show tooltip request\n */\n protected _showRequest: boolean = false;\n\n /**\n * Indication whether keep open tooltip component\n */\n protected _keepOpen: boolean = false;\n\n /**\n * Timeout that is used for handling mouse move\n */\n protected _timeout: number|null = null;\n\n //######################### public properties - inputs #########################\n\n /**\n * Tooltip text that is displayed, or any data that could be passed to template\n */\n @Input()\n public tooltip?: TData;\n\n /**\n * Indication whether are html tags allowed in tooltip text\n */\n @Input()\n public allowHtml: boolean = false;\n\n /**\n * Instance of tooltip template that is used for rendering\n */\n @Input()\n public template?: TemplateRef<TooltipTemplateContext<TData>>;\n\n /**\n * Options used for displaying tooltip\n */\n @Input()\n public get tooltipOptions(): RecursivePartial<TooltipOptions<TData>>\n {\n return this._options;\n }\n public set tooltipOptions(value: RecursivePartial<TooltipOptions<TData>>)\n {\n this._options = extend(true, {}, this._options, value);\n\n if(this._options.containerElement && !this.containerElement)\n {\n this.containerElement = this._options.containerElement;\n }\n }\n\n /**\n * Gets or sets indication whether is tooltip visible, if has boolean value, mouse events cant override this\n */\n @Input()\n public tooltipVisible?: boolean;\n\n /**\n * String that defines element in which should be tooltip rendered, if not specified, body is used\n *\n * Allows also css classes to be specified (div.body-box)\n */\n @Input()\n public containerElement: string|undefined|null;\n\n //######################### public properties - children #########################\n\n /**\n * Instance of template from element content, used for rendering\n */\n @ContentChild(TooltipTemplateDirective)\n public tooltipTemplateChild?: TooltipTemplateDirective;\n\n //######################### constructor #########################\n constructor(protected _viewContainerRef: ViewContainerRef,\n protected _injector: Injector,\n protected _element: ElementRef<HTMLElement>,\n @Inject(DOCUMENT) protected _document: Document,\n @Inject(POSITION) protected _position: Position<HTMLElement>,\n @Optional() @SkipSelf() protected _parent?: TooltipDirective|null,\n @Optional() @Inject(TOOLTIP_OPTIONS) options?: Partial<TooltipOptions<TData>>,)\n {\n this._options = extend(true, {}, defaultOptions, options);\n\n if(this._options.containerElement)\n {\n this.containerElement = this._options.containerElement;\n }\n }\n\n //######################### public methods - implementation of OnChanges #########################\n\n /**\n * Called when input value changes\n */\n public ngOnChanges(changes: SimpleChanges): void\n {\n if(nameof<TooltipDirective>('tooltipVisible') in changes)\n {\n if(this.tooltipVisible)\n {\n this._showTooltip();\n }\n else\n {\n this._hideTooltip();\n }\n }\n }\n\n //######################### public methods - implementation of OnDestroy #########################\n\n /**\n * Called when component is destroyed\n */\n public ngOnDestroy(): void\n {\n if(this._timeout)\n {\n clearTimeout(this._timeout);\n }\n\n this._destroyTooltip();\n }\n\n //######################### protected methods - host #########################\n\n /**\n * Handles mouse leave event, hover ends\n * @param event - Mouse event that occured\n */\n @HostListener('mouseleave', ['$event'])\n protected mouseLeave(event: MouseEvent): void\n {\n if(this._options.stopPropagation)\n {\n event.stopPropagation();\n }\n\n if(isBlank(this.tooltipVisible))\n {\n setTimeout(() =>\n {\n if(!this._keepOpen)\n {\n this._showRequest = false;\n this._hideTooltip();\n }\n }, 10);\n }\n }\n\n /**\n * Handles mouse move event, displaying tooltip\n * @param event - Mouse event that occured\n */\n @HostListener('mousemove', ['$event'])\n protected mouseMove(event: MouseEvent): void\n {\n if(this._options.stopPropagation)\n {\n event.stopPropagation();\n }\n\n this._showRequest = true;\n\n //do nothing if tooltip is visible\n if(this._tooltipComponent || isPresent(this.tooltipVisible))\n {\n return;\n }\n\n if(isPresent(this._timeout))\n {\n clearTimeout(this._timeout);\n }\n\n this._timeout = setTimeout(() =>\n {\n this._timeout = null;\n\n if(this._showRequest)\n {\n this._showTooltip(event);\n\n this._showRequest = false;\n }\n }, this._options.delay) as any;\n }\n\n //######################### protected methods #########################\n\n /**\n * Shows tooltip\n * @param event - Mouse event\n */\n protected _showTooltip(event?: MouseEvent): void\n {\n //no data for tooltip or no template\n if(!this.tooltip && !this.template && !this.tooltipTemplateChild)\n {\n return;\n }\n\n this._parent?._hideTooltip();\n this._createTooltip();\n\n //if element was not created do nothing\n if(!this._tooltipElement)\n {\n return;\n }\n\n this._showData();\n\n lastValueFrom(this._position.placeElement(this._tooltipElement,\n this._element.nativeElement,\n {\n placement: this._options.position.placement,\n offset: this._options.position.offset,\n flip: true,\n mouseEvent: event,\n autoUpdate: false,\n }))\n .then(result => applyPositionResult(result));\n }\n\n /**\n * Hides tooltip\n */\n protected _hideTooltip(): void\n {\n this._destroyTooltip();\n }\n\n /**\n * Destroys tooltip component\n */\n protected _destroyTooltip(): void\n {\n if(this._tooltipComponent)\n {\n this._viewContainerRef.clear();\n this._tooltipComponent = undefined;\n this._tooltipElement = undefined;\n }\n }\n\n /**\n * Creates tooltip renderer component\n */\n protected _createTooltip(): void\n {\n // 0. Destroys tooltip if it exists\n this._destroyTooltip();\n\n // 1. Create a component reference from the component\n this._tooltipComponent = this._viewContainerRef\n .createComponent(this._options.tooltipRenderer,\n {\n injector: this._injector,\n directives:\n [\n {\n type: AnimateDirective,\n bindings:\n [\n inputBinding(nameof<AnimateDirective>('enterAnimation'), () => this._options.enterAnimation || []),\n inputBinding(nameof<AnimateDirective>('leaveAnimation'), () => this._options.exitAnimation || []),\n ],\n },\n ],\n });\n\n // 3. Get DOM element from component\n this._tooltipElement = getHostElement(this._tooltipComponent);\n\n // 4. Append DOM element to the body\n renderToBody(this._document, this._tooltipElement, this.containerElement);\n }\n\n /**\n * Sets data to tooltip component and shows them\n */\n protected _showData(): void\n {\n if(this._tooltipComponent)\n {\n this._tooltipComponent.instance.allowHtml = this.allowHtml;\n this._tooltipComponent.instance.data = this.tooltip;\n this._tooltipComponent.instance.template = this.template ?? this.tooltipTemplateChild?.template;\n this._tooltipComponent.instance.cssClass = this._options.tooltipCssClass;\n\n this._tooltipComponent.instance.registerHoverEvents(() =>\n {\n if(this._options.allowSelection)\n {\n this._keepOpen = true;\n this._showRequest = false;\n }\n },\n () =>\n {\n setTimeout(() =>\n {\n this._keepOpen = false;\n\n if(!this._showRequest)\n {\n this._hideTooltip();\n }\n\n this._showRequest = false;\n }, 5);\n });\n\n this._tooltipComponent.instance.invalidateVisuals();\n }\n }\n\n //######################### ng language server #########################\n\n /**\n * Custom input type for `tooltip` input\n */\n public static ngAcceptInputType_tooltip: any;\n}\n"]}
@@ -15,10 +15,10 @@ export class TooltipTemplateDirective {
15
15
  static ngTemplateContextGuard(_dir, _ctx) {
16
16
  return true;
17
17
  }
18
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: TooltipTemplateDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive }); }
19
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.2.0", type: TooltipTemplateDirective, isStandalone: true, selector: "[tooltipTemplate]", ngImport: i0 }); }
18
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: TooltipTemplateDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive }); }
19
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.2", type: TooltipTemplateDirective, isStandalone: true, selector: "[tooltipTemplate]", ngImport: i0 }); }
20
20
  }
21
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: TooltipTemplateDirective, decorators: [{
21
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: TooltipTemplateDirective, decorators: [{
22
22
  type: Directive,
23
23
  args: [{
24
24
  selector: '[tooltipTemplate]'
@@ -1 +1 @@
1
- {"version":3,"file":"tooltip.interface.js","sourceRoot":"","sources":["../../../../../src/modules/tooltip/misc/tooltip.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {TemplateRef, Type} from '@angular/core';\n\nimport {PositionOptions} from '../../../services/position';\nimport {TooltipTemplateContext} from '../directives';\n\n/**\n * Represents component that is used for rendering tooltip\n */\nexport interface TooltipRenderer<TData = any>\n{\n //######################### properties #########################\n\n /**\n * Data that are rendered in tooltip\n */\n data: TData|null|undefined;\n\n /**\n * Template used for rendering tooltip\n */\n template: TemplateRef<TooltipTemplateContext<TData>>|null|undefined;\n\n /**\n * Indication whether are html tags allowed in tooltip text\n */\n allowHtml: boolean;\n\n /**\n * Css class that is applied to tooltip renderer component\n */\n cssClass: string|null|undefined;\n\n /**\n * Css class used to animate tooltip component when it is displayed\n */\n enterAnimation: string;\n\n /**\n * Css class used to animate tooltip component when it is hidden\n */\n exitAnimation: string;\n\n //######################### methods #########################\n\n /**\n * Registers handlers that allows reaction to entering or leaving tooltip\n * @param enter - Called when mouse enter tooltip component, hover\n * @param leave - Called when mouse leaves tooltip component\n */\n registerHoverEvents(enter: () => void, leave: () => void): void;\n\n /**\n * Explicitly runs invalidation of content (change detection)\n */\n invalidateVisuals(): void;\n}\n\n/**\n * Options used for tooltip directive\n */\nexport interface TooltipOptions\n{\n /**\n * Delay for displaying of tooltip on hover\n */\n delay: number;\n\n /**\n * Position where should tooltip appear relative to its parent\n */\n position: Pick<PositionOptions, 'placement'|'offset'>;\n\n /**\n * Allows selection of text in tooltip\n */\n allowSelection: boolean|null;\n\n /**\n * Css class that is applied to tooltip renderer component\n */\n tooltipCssClass: string|null;\n\n /**\n * Indication whether stop propagation of \"hover\" event\n */\n stopPropagation: boolean|null;\n\n /**\n * Type of tooltip renderer that is used for rendering tooltip\n */\n tooltipRenderer: Type<TooltipRenderer>;\n\n /**\n * Css class used to animate tooltip component when it is displayed\n */\n enterAnimation: string;\n\n /**\n * Css class used to animate tooltip component when it is hidden\n */\n exitAnimation: string;\n\n /**\n * String that defines element in which should be tooltip rendered, if not specified, body is used\n *\n * Allows also css classes to be specified (div.body-box)\n */\n containerElement: string|undefined|null;\n}"]}
1
+ {"version":3,"file":"tooltip.interface.js","sourceRoot":"","sources":["../../../../../src/modules/tooltip/misc/tooltip.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {TemplateRef, Type} from '@angular/core';\n\nimport {PositionOptions} from '../../../services/position';\nimport {TooltipTemplateContext} from '../directives';\n\n/**\n * Represents component that is used for rendering tooltip\n * @template TData - Type of data passed to tooltip\n */\nexport interface TooltipRenderer<TData = unknown>\n{\n //######################### properties #########################\n\n /**\n * Data that are rendered in tooltip\n */\n data: TData|null|undefined;\n\n /**\n * Template used for rendering tooltip\n */\n template: TemplateRef<TooltipTemplateContext<TData>>|null|undefined;\n\n /**\n * Indication whether are html tags allowed in tooltip text\n */\n allowHtml: boolean;\n\n /**\n * Css class that is applied to tooltip renderer component\n */\n cssClass: string|null|undefined;\n\n //######################### methods #########################\n\n /**\n * Registers handlers that allows reaction to entering or leaving tooltip\n * @param enter - Called when mouse enter tooltip component, hover\n * @param leave - Called when mouse leaves tooltip component\n */\n registerHoverEvents(enter: () => void, leave: () => void): void;\n\n /**\n * Explicitly runs invalidation of content (change detection)\n */\n invalidateVisuals(): void;\n}\n\n/**\n * Options used for tooltip directive\n */\nexport interface TooltipOptions<TData = unknown>\n{\n /**\n * Delay for displaying of tooltip on hover\n */\n delay: number;\n\n /**\n * Position where should tooltip appear relative to its parent\n */\n position: Pick<PositionOptions, 'placement'|'offset'>;\n\n /**\n * Allows selection of text in tooltip\n */\n allowSelection: boolean|null;\n\n /**\n * Css class that is applied to tooltip renderer component\n */\n tooltipCssClass: string|null;\n\n /**\n * Indication whether stop propagation of \"hover\" event\n */\n stopPropagation: boolean|null;\n\n /**\n * Type of tooltip renderer that is used for rendering tooltip\n */\n tooltipRenderer: Type<TooltipRenderer<TData>>;\n\n /**\n * Css class/classes used to animate tooltip component when it is displayed\n */\n enterAnimation: string|string[];\n\n /**\n * Css class/classes used to animate tooltip component when it is hidden\n */\n exitAnimation: string|string[];\n\n /**\n * String that defines element in which should be tooltip rendered, if not specified, body is used\n *\n * Allows also css classes to be specified (div.body-box)\n */\n containerElement: string|undefined|null;\n}\n"]}
@@ -6,14 +6,14 @@ import * as i0 from "@angular/core";
6
6
  * Module for rendering tooltips
7
7
  */
8
8
  export class TooltipModule {
9
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: TooltipModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
10
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.2.0", ngImport: i0, type: TooltipModule, imports: [TooltipDirective,
9
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: TooltipModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
10
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.2", ngImport: i0, type: TooltipModule, imports: [TooltipDirective,
11
11
  TooltipTemplateDirective,
12
12
  TooltipComponent], exports: [TooltipDirective,
13
13
  TooltipTemplateDirective] }); }
14
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: TooltipModule }); }
14
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: TooltipModule }); }
15
15
  }
16
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: TooltipModule, decorators: [{
16
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: TooltipModule, decorators: [{
17
17
  type: NgModule,
18
18
  args: [{
19
19
  imports: [
@@ -26,10 +26,10 @@ export class DisplayPropertiesPipe {
26
26
  return result;
27
27
  }).join(itemSeparator);
28
28
  }
29
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: DisplayPropertiesPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
30
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.2.0", ngImport: i0, type: DisplayPropertiesPipe, isStandalone: true, name: "displayProperties" }); }
29
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: DisplayPropertiesPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
30
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.2", ngImport: i0, type: DisplayPropertiesPipe, isStandalone: true, name: "displayProperties" }); }
31
31
  }
32
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: DisplayPropertiesPipe, decorators: [{
32
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: DisplayPropertiesPipe, decorators: [{
33
33
  type: Pipe,
34
34
  args: [{
35
35
  name: 'displayProperties',
@@ -14,10 +14,10 @@ export class FirstUppercasePipe {
14
14
  }
15
15
  return value[0].toUpperCase() + value.substring(1);
16
16
  }
17
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: FirstUppercasePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
18
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.2.0", ngImport: i0, type: FirstUppercasePipe, isStandalone: true, name: "firstUppercase" }); }
17
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: FirstUppercasePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
18
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.2", ngImport: i0, type: FirstUppercasePipe, isStandalone: true, name: "firstUppercase" }); }
19
19
  }
20
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: FirstUppercasePipe, decorators: [{
20
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: FirstUppercasePipe, decorators: [{
21
21
  type: Pipe,
22
22
  args: [{
23
23
  name: 'firstUppercase',
@@ -37,10 +37,10 @@ export class FirstUppercaseLocalizePipe {
37
37
  ngOnDestroy() {
38
38
  this.localizePipe.ngOnDestroy();
39
39
  }
40
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: FirstUppercaseLocalizePipe, deps: [{ token: STRING_LOCALIZATION }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Pipe }); }
41
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.2.0", ngImport: i0, type: FirstUppercaseLocalizePipe, isStandalone: true, name: "firstUppercaseLocalize", pure: false }); }
40
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: FirstUppercaseLocalizePipe, deps: [{ token: STRING_LOCALIZATION }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Pipe }); }
41
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.2", ngImport: i0, type: FirstUppercaseLocalizePipe, isStandalone: true, name: "firstUppercaseLocalize", pure: false }); }
42
42
  }
43
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: FirstUppercaseLocalizePipe, decorators: [{
43
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: FirstUppercaseLocalizePipe, decorators: [{
44
44
  type: Pipe,
45
45
  args: [{
46
46
  name: 'firstUppercaseLocalize',
@@ -12,10 +12,10 @@ export class IsNaNPipe {
12
12
  transform(value) {
13
13
  return isNaN(value);
14
14
  }
15
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: IsNaNPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
16
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.2.0", ngImport: i0, type: IsNaNPipe, isStandalone: true, name: "isNaN" }); }
15
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: IsNaNPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
16
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.2", ngImport: i0, type: IsNaNPipe, isStandalone: true, name: "isNaN" }); }
17
17
  }
18
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: IsNaNPipe, decorators: [{
18
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: IsNaNPipe, decorators: [{
19
19
  type: Pipe,
20
20
  args: [{
21
21
  name: 'isNaN',
@@ -13,10 +13,10 @@ export class IsPresentPipe {
13
13
  transform(value) {
14
14
  return isPresent(value);
15
15
  }
16
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: IsPresentPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
17
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.2.0", ngImport: i0, type: IsPresentPipe, isStandalone: true, name: "isPresent" }); }
16
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: IsPresentPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
17
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.2", ngImport: i0, type: IsPresentPipe, isStandalone: true, name: "isPresent" }); }
18
18
  }
19
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: IsPresentPipe, decorators: [{
19
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: IsPresentPipe, decorators: [{
20
20
  type: Pipe,
21
21
  args: [{
22
22
  name: 'isPresent',
@@ -15,10 +15,10 @@ export class KeysPipe {
15
15
  }
16
16
  return Object.keys(value);
17
17
  }
18
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: KeysPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
19
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.2.0", ngImport: i0, type: KeysPipe, isStandalone: true, name: "keys" }); }
18
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: KeysPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
19
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.2", ngImport: i0, type: KeysPipe, isStandalone: true, name: "keys" }); }
20
20
  }
21
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: KeysPipe, decorators: [{
21
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: KeysPipe, decorators: [{
22
22
  type: Pipe,
23
23
  args: [{ name: 'keys' }]
24
24
  }] });
@@ -40,10 +40,10 @@ export class LocalizePipe {
40
40
  this._subscription?.unsubscribe();
41
41
  this._subscription = null;
42
42
  }
43
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: LocalizePipe, deps: [{ token: STRING_LOCALIZATION }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Pipe }); }
44
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.2.0", ngImport: i0, type: LocalizePipe, isStandalone: true, name: "localize", pure: false }); }
43
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: LocalizePipe, deps: [{ token: STRING_LOCALIZATION }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Pipe }); }
44
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.2", ngImport: i0, type: LocalizePipe, isStandalone: true, name: "localize", pure: false }); }
45
45
  }
46
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: LocalizePipe, decorators: [{
46
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: LocalizePipe, decorators: [{
47
47
  type: Pipe,
48
48
  args: [{
49
49
  name: 'localize',
@@ -36,10 +36,10 @@ export class MergeCssClassesPipe {
36
36
  });
37
37
  return result;
38
38
  }
39
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: MergeCssClassesPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
40
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.2.0", ngImport: i0, type: MergeCssClassesPipe, isStandalone: true, name: "mergeCssClasses" }); }
39
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: MergeCssClassesPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
40
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.2", ngImport: i0, type: MergeCssClassesPipe, isStandalone: true, name: "mergeCssClasses" }); }
41
41
  }
42
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: MergeCssClassesPipe, decorators: [{
42
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: MergeCssClassesPipe, decorators: [{
43
43
  type: Pipe,
44
44
  args: [{ name: 'mergeCssClasses' }]
45
45
  }] });
@@ -38,10 +38,10 @@ export class NumeralPipe {
38
38
  this._globalizationChangeSubscription?.unsubscribe();
39
39
  this._globalizationChangeSubscription = null;
40
40
  }
41
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: NumeralPipe, deps: [{ token: i1.GlobalizationService }], target: i0.ɵɵFactoryTarget.Pipe }); }
42
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.2.0", ngImport: i0, type: NumeralPipe, isStandalone: true, name: "numeral" }); }
41
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: NumeralPipe, deps: [{ token: i1.GlobalizationService }], target: i0.ɵɵFactoryTarget.Pipe }); }
42
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.2", ngImport: i0, type: NumeralPipe, isStandalone: true, name: "numeral" }); }
43
43
  }
44
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: NumeralPipe, decorators: [{
44
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: NumeralPipe, decorators: [{
45
45
  type: Pipe,
46
46
  args: [{ name: 'numeral' }]
47
47
  }], ctorParameters: () => [{ type: i1.GlobalizationService }] });
@@ -19,10 +19,10 @@ export class TrimTextPipe {
19
19
  }
20
20
  return text;
21
21
  }
22
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: TrimTextPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
23
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.2.0", ngImport: i0, type: TrimTextPipe, isStandalone: true, name: "trimText" }); }
22
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: TrimTextPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
23
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.2", ngImport: i0, type: TrimTextPipe, isStandalone: true, name: "trimText" }); }
24
24
  }
25
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: TrimTextPipe, decorators: [{
25
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: TrimTextPipe, decorators: [{
26
26
  type: Pipe,
27
27
  args: [{ name: 'trimText' }]
28
28
  }] });
@@ -16,10 +16,10 @@ export class UrlEncodePipe {
16
16
  }
17
17
  return serializeToUrlQuery(value);
18
18
  }
19
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: UrlEncodePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
20
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.2.0", ngImport: i0, type: UrlEncodePipe, isStandalone: true, name: "urlEncode" }); }
19
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: UrlEncodePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
20
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.2", ngImport: i0, type: UrlEncodePipe, isStandalone: true, name: "urlEncode" }); }
21
21
  }
22
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: UrlEncodePipe, decorators: [{
22
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: UrlEncodePipe, decorators: [{
23
23
  type: Pipe,
24
24
  args: [{ name: 'urlEncode' }]
25
25
  }] });
@@ -88,10 +88,10 @@ export class CookieService {
88
88
  this.setCookie(name, '', -1, path, domain);
89
89
  }
90
90
  }
91
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: CookieService, deps: [{ token: PLATFORM_ID }, { token: HTTP_REQUEST_COOKIE_HEADER, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
92
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: CookieService, providedIn: 'root' }); }
91
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: CookieService, deps: [{ token: PLATFORM_ID }, { token: HTTP_REQUEST_COOKIE_HEADER, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
92
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: CookieService, providedIn: 'root' }); }
93
93
  }
94
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: CookieService, decorators: [{
94
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: CookieService, decorators: [{
95
95
  type: Injectable,
96
96
  args: [{ providedIn: 'root' }]
97
97
  }], ctorParameters: () => [{ type: Object, decorators: [{
@@ -177,10 +177,10 @@ export class DefaultNotificationsService {
177
177
  }
178
178
  return this;
179
179
  }
180
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: DefaultNotificationsService, deps: [{ token: i1.NotificationsOptions, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
181
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: DefaultNotificationsService }); }
180
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: DefaultNotificationsService, deps: [{ token: i1.NotificationsOptions, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
181
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: DefaultNotificationsService }); }
182
182
  }
183
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: DefaultNotificationsService, decorators: [{
183
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: DefaultNotificationsService, decorators: [{
184
184
  type: Injectable
185
185
  }], ctorParameters: () => [{ type: i1.NotificationsOptions, decorators: [{
186
186
  type: Optional
@@ -37,15 +37,15 @@ let CookiePermanentStorage = class CookiePermanentStorage {
37
37
  remove(name) {
38
38
  this._cookies.deleteCookie(name, '/');
39
39
  }
40
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: CookiePermanentStorage, deps: [{ token: i1.CookieService }], target: i0.ɵɵFactoryTarget.Injectable }); }
41
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: CookiePermanentStorage }); }
40
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: CookiePermanentStorage, deps: [{ token: i1.CookieService }], target: i0.ɵɵFactoryTarget.Injectable }); }
41
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: CookiePermanentStorage }); }
42
42
  };
43
43
  CookiePermanentStorage = __decorate([
44
44
  TypeProvider({ provide: PERMANENT_STORAGE, useClass: forwardRef(() => CookiePermanentStorage) }),
45
45
  __metadata("design:paramtypes", [CookieService])
46
46
  ], CookiePermanentStorage);
47
47
  export { CookiePermanentStorage };
48
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: CookiePermanentStorage, decorators: [{
48
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: CookiePermanentStorage, decorators: [{
49
49
  type: Injectable
50
50
  }], ctorParameters: () => [{ type: i1.CookieService }] });
51
51
  //# sourceMappingURL=cookiePermanentStorage.service.js.map
@@ -19,10 +19,10 @@ export class StatusCodeService {
19
19
  setStatusCode(code) {
20
20
  this._statusCode = code;
21
21
  }
22
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: StatusCodeService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
23
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: StatusCodeService, providedIn: 'root' }); }
22
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: StatusCodeService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
23
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: StatusCodeService, providedIn: 'root' }); }
24
24
  }
25
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: StatusCodeService, decorators: [{
25
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: StatusCodeService, decorators: [{
26
26
  type: Injectable,
27
27
  args: [{ providedIn: 'root' }]
28
28
  }] });
@@ -32,10 +32,10 @@ export class NoStringLocalization {
32
32
  }
33
33
  return formatString(key, interpolateParams);
34
34
  }
35
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: NoStringLocalization, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
36
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: NoStringLocalization }); }
35
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: NoStringLocalization, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
36
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: NoStringLocalization }); }
37
37
  }
38
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: NoStringLocalization, decorators: [{
38
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: NoStringLocalization, decorators: [{
39
39
  type: Injectable
40
40
  }] });
41
41
  //# sourceMappingURL=noStringLocalization.service.js.map
@@ -34,10 +34,10 @@ export class MemoryTemporaryStorage {
34
34
  remove(name) {
35
35
  delete this._memory[name];
36
36
  }
37
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: MemoryTemporaryStorage, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
38
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: MemoryTemporaryStorage }); }
37
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: MemoryTemporaryStorage, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
38
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: MemoryTemporaryStorage }); }
39
39
  }
40
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: MemoryTemporaryStorage, decorators: [{
40
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: MemoryTemporaryStorage, decorators: [{
41
41
  type: Injectable
42
42
  }] });
43
43
  //# sourceMappingURL=memoryTemporaryStorage.service.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"tokens.js","sourceRoot":"","sources":["../../../src/types/tokens.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAQ,MAAM,EAAC,MAAM,eAAe,CAAC;AAC3D,OAAO,EAAC,gBAAgB,EAAC,MAAM,sBAAsB,CAAC;AAGtD,OAAO,EAAC,oBAAoB,EAAC,MAAM,6DAA6D,CAAC;AAEjG,OAAO,EAAC,sBAAsB,EAAC,MAAM,6DAA6D,CAAC;AAInG,OAAO,EAAC,aAAa,EAAC,MAAM,kDAAkD,CAAC;AAC/E,OAAO,EAAC,aAAa,EAAC,MAAM,uCAAuC,CAAC;AAGpE;;GAEG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAA2B,IAAI,cAAc,CAAS,uBAAuB,CAAC,CAAC;AAEjH;;GAEG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAA2B,IAAI,cAAc,CAAS,4BAA4B,CAAC,CAAC;AAE3H;;GAEG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAA2B,IAAI,cAAc,CAAS,0BAA0B,CAAC,CAAC;AAEvH;;GAEG;AACH,MAAM,CAAC,MAAM,MAAM,GAA2B,IAAI,cAAc,CAAS,QAAQ,EAAE,EAAC,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,aAAa,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,EAAC,CAAC,CAAC;AAElK;;GAEG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAuC,IAAI,cAAc,CAAqB,qBAAqB,EAAE,EAAC,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,oBAAoB,EAAE,EAAC,CAAC,CAAC;AAEtM;;GAEG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAqC,IAAI,cAAc,CAAmB,mBAAmB,CAAC,CAAC;AAE7H;;GAEG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAqC,IAAI,cAAc,CAAmB,mBAAmB,EAAE,EAAC,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,sBAAsB,EAAE,EAAC,CAAC,CAAC;AAEhM;;GAEG;AACH,MAAM,CAAC,MAAM,QAAQ,GAA6B,IAAI,cAAc,CAAW,UAAU,CAAC,CAAC;AAE3F;;GAEG;AACH,MAAM,CAAC,MAAM,aAAa,GAAkC,IAAI,cAAc,CAAgB,eAAe,CAAC,CAAC;AAE/G;;GAEG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAA2B,IAAI,cAAc,CAAS,qBAAqB,CAAC,CAAC;AAE7G;;GAEG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAsC,IAAI,gBAAgB,CAAkB,GAAG,EAAE,CAAC,EAAE,CAAC,CAAC","sourcesContent":["import {InjectionToken, Type, inject} from '@angular/core';\nimport {HttpContextToken} from '@angular/common/http';\n\nimport type {StringLocalization} from '../services/stringLocalization';\nimport {NoStringLocalization} from '../services/stringLocalization/noStringLocalization.service';\nimport type {PermanentStorage} from '../services/permanentStorage';\nimport {MemoryTemporaryStorage} from '../services/temporaryStorage/memoryTemporaryStorage.service';\nimport type {TemporaryStorage} from '../services/temporaryStorage';\nimport type {Notifications} from '../services/notifications';\nimport type {Position} from '../services/position';\nimport {DefaultLogger} from '../modules/logger/services/logger/logger.service';\nimport {LoggerOptions} from '../modules/logger/types/loggerOptions';\nimport type {Logger} from '../modules/logger/services/logger/logger.interface';\n\n/**\n * Base url when using HTTP (example: http://localhost:8888/)\n */\nexport const HTTP_REQUEST_BASE_URL: InjectionToken<string> = new InjectionToken<string>('HTTP_REQUEST_BASE_URL');\n\n/**\n * Token is used to transfer http request cookie header\n */\nexport const HTTP_REQUEST_COOKIE_HEADER: InjectionToken<string> = new InjectionToken<string>('HTTP_REQUEST_COOKIE_HEADER');\n\n/**\n * Token is used to transfer http request authentication header\n */\nexport const HTTP_REQUEST_AUTH_HEADER: InjectionToken<string> = new InjectionToken<string>('HTTP_REQUEST_AUTH_HEADER');\n\n/**\n * Token used for injecting Logger implementation\n */\nexport const LOGGER: InjectionToken<Logger> = new InjectionToken<Logger>('LOGGER', {providedIn: 'root', factory: () => new DefaultLogger(inject(LoggerOptions))});\n\n/**\n * Token used for injecting StringLocalization service implementation\n */\nexport const STRING_LOCALIZATION: InjectionToken<StringLocalization> = new InjectionToken<StringLocalization>('STRING_LOCALIZATION', {providedIn: 'root', factory: () => new NoStringLocalization()});\n\n/**\n * Token used for injecting permanent storage\n */\nexport const PERMANENT_STORAGE: InjectionToken<PermanentStorage> = new InjectionToken<PermanentStorage>('PERMANENT_STORAGE');\n\n/**\n * Token used for injecting temporary storage\n */\nexport const TEMPORARY_STORAGE: InjectionToken<TemporaryStorage> = new InjectionToken<TemporaryStorage>('TEMPORARY_STORAGE', {providedIn: 'root', factory: () => new MemoryTemporaryStorage()});\n\n/**\n * Token used for injecting service that is used for positioning of one element against another\n */\nexport const POSITION: InjectionToken<Position> = new InjectionToken<Position>('POSITION');\n\n/**\n * Token used for injecting notifications service implementation\n */\nexport const NOTIFICATIONS: InjectionToken<Notifications> = new InjectionToken<Notifications>('NOTIFICATIONS');\n\n/**\n * Token used for injecting notifications scope name\n */\nexport const NOTIFICATIONS_SCOPE: InjectionToken<string> = new InjectionToken<string>('NOTIFICATIONS_SCOPE');\n\n/**\n * Http context token storing array of ignored interceptors types\n */\nexport const IGNORED_INTERCEPTORS: HttpContextToken<Type<unknown>[]> = new HttpContextToken<Type<unknown>[]>(() => []);\n"]}
1
+ {"version":3,"file":"tokens.js","sourceRoot":"","sources":["../../../src/types/tokens.ts"],"names":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AAE,CAAC,IAAI,sBAAsB,EAAE,EAAC,CAAC,CAAC;AAEhM;;GAEG;AACH,MAAM,CAAC,MAAM,QAAQ,GAA6B,IAAI,cAAc,CAAW,UAAU,CAAC,CAAC;AAE3F;;GAEG;AACH,MAAM,CAAC,MAAM,aAAa,GAAkC,IAAI,cAAc,CAAgB,eAAe,CAAC,CAAC;AAE/G;;GAEG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAA2B,IAAI,cAAc,CAAS,qBAAqB,CAAC,CAAC;AAE7G;;GAEG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAA6D,IAAI,gBAAgB,CAAyC,GAAG,EAAE,CAAC,EAAE,CAAC,CAAC","sourcesContent":["import {InjectionToken, Type, inject} from '@angular/core';\nimport {HttpContextToken, HttpInterceptorFn} from '@angular/common/http';\n\nimport type {StringLocalization} from '../services/stringLocalization';\nimport {NoStringLocalization} from '../services/stringLocalization/noStringLocalization.service';\nimport type {PermanentStorage} from '../services/permanentStorage';\nimport {MemoryTemporaryStorage} from '../services/temporaryStorage/memoryTemporaryStorage.service';\nimport type {TemporaryStorage} from '../services/temporaryStorage';\nimport type {Notifications} from '../services/notifications';\nimport type {Position} from '../services/position';\nimport {DefaultLogger} from '../modules/logger/services/logger/logger.service';\nimport {LoggerOptions} from '../modules/logger/types/loggerOptions';\nimport type {Logger} from '../modules/logger/services/logger/logger.interface';\n\n/**\n * Base url when using HTTP (example: http://localhost:8888/)\n */\nexport const HTTP_REQUEST_BASE_URL: InjectionToken<string> = new InjectionToken<string>('HTTP_REQUEST_BASE_URL');\n\n/**\n * Token is used to transfer http request cookie header\n */\nexport const HTTP_REQUEST_COOKIE_HEADER: InjectionToken<string> = new InjectionToken<string>('HTTP_REQUEST_COOKIE_HEADER');\n\n/**\n * Token is used to transfer http request authentication header\n */\nexport const HTTP_REQUEST_AUTH_HEADER: InjectionToken<string> = new InjectionToken<string>('HTTP_REQUEST_AUTH_HEADER');\n\n/**\n * Token used for injecting Logger implementation\n */\nexport const LOGGER: InjectionToken<Logger> = new InjectionToken<Logger>('LOGGER', {providedIn: 'root', factory: () => new DefaultLogger(inject(LoggerOptions))});\n\n/**\n * Token used for injecting StringLocalization service implementation\n */\nexport const STRING_LOCALIZATION: InjectionToken<StringLocalization> = new InjectionToken<StringLocalization>('STRING_LOCALIZATION', {providedIn: 'root', factory: () => new NoStringLocalization()});\n\n/**\n * Token used for injecting permanent storage\n */\nexport const PERMANENT_STORAGE: InjectionToken<PermanentStorage> = new InjectionToken<PermanentStorage>('PERMANENT_STORAGE');\n\n/**\n * Token used for injecting temporary storage\n */\nexport const TEMPORARY_STORAGE: InjectionToken<TemporaryStorage> = new InjectionToken<TemporaryStorage>('TEMPORARY_STORAGE', {providedIn: 'root', factory: () => new MemoryTemporaryStorage()});\n\n/**\n * Token used for injecting service that is used for positioning of one element against another\n */\nexport const POSITION: InjectionToken<Position> = new InjectionToken<Position>('POSITION');\n\n/**\n * Token used for injecting notifications service implementation\n */\nexport const NOTIFICATIONS: InjectionToken<Notifications> = new InjectionToken<Notifications>('NOTIFICATIONS');\n\n/**\n * Token used for injecting notifications scope name\n */\nexport const NOTIFICATIONS_SCOPE: InjectionToken<string> = new InjectionToken<string>('NOTIFICATIONS_SCOPE');\n\n/**\n * Http context token storing array of ignored interceptors types\n */\nexport const IGNORED_INTERCEPTORS: HttpContextToken<Array<Type<unknown>|HttpInterceptorFn>> = new HttpContextToken<Array<Type<unknown>|HttpInterceptorFn>>(() => []);\n"]}
@@ -41,15 +41,15 @@ let LocalPermanentStorage = class LocalPermanentStorage {
41
41
  remove(name) {
42
42
  store.remove(name);
43
43
  }
44
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: LocalPermanentStorage, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
45
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: LocalPermanentStorage }); }
44
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: LocalPermanentStorage, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
45
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: LocalPermanentStorage }); }
46
46
  };
47
47
  LocalPermanentStorage = __decorate([
48
48
  TypeProvider({ provide: PERMANENT_STORAGE, useClass: forwardRef(() => LocalPermanentStorage) }),
49
49
  __metadata("design:paramtypes", [])
50
50
  ], LocalPermanentStorage);
51
51
  export { LocalPermanentStorage };
52
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: LocalPermanentStorage, decorators: [{
52
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: LocalPermanentStorage, decorators: [{
53
53
  type: Injectable
54
54
  }], ctorParameters: () => [] });
55
55
  //# sourceMappingURL=localPermanentStorage.service.js.map
@@ -30,14 +30,14 @@ let SessionTemporaryStorage = class SessionTemporaryStorage {
30
30
  remove(name) {
31
31
  store.remove(name);
32
32
  }
33
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: SessionTemporaryStorage, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
34
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: SessionTemporaryStorage }); }
33
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: SessionTemporaryStorage, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
34
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: SessionTemporaryStorage }); }
35
35
  };
36
36
  SessionTemporaryStorage = __decorate([
37
37
  TypeProvider({ provide: TEMPORARY_STORAGE, useClass: forwardRef(() => SessionTemporaryStorage) })
38
38
  ], SessionTemporaryStorage);
39
39
  export { SessionTemporaryStorage };
40
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: SessionTemporaryStorage, decorators: [{
40
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: SessionTemporaryStorage, decorators: [{
41
41
  type: Injectable
42
42
  }] });
43
43
  //# sourceMappingURL=sessionTemporaryStorage.service.js.map