@haiilo/catalyst-angular 10.17.0 → 10.18.0

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.
@@ -1,18 +1,36 @@
1
+ import * as i0 from '@angular/core';
2
+ import { InjectionToken, Component, ChangeDetectionStrategy, ViewEncapsulation, Input, EventEmitter, Inject, Output, ContentChild, Directive, HostListener, Self, Optional, Host, SkipSelf, NgModule, Injectable } from '@angular/core';
3
+ import * as i3 from '@haiilo/catalyst';
4
+ import { catI18nRegistry, catIconRegistry, catNotificationService } from '@haiilo/catalyst';
5
+ import log from 'loglevel';
1
6
  import * as i1$1 from '@angular/cdk/dialog';
2
7
  import { DialogModule } from '@angular/cdk/dialog';
3
8
  import * as i1 from '@angular/common';
4
9
  import { CommonModule } from '@angular/common';
5
- import * as i0 from '@angular/core';
6
- import { Component, ChangeDetectionStrategy, ViewEncapsulation, Input, EventEmitter, Inject, Output, ContentChild, Directive, HostListener, Self, Optional, Host, SkipSelf, InjectionToken, NgModule, Injectable } from '@angular/core';
7
- import * as i3 from '@haiilo/catalyst';
8
- import { catI18nRegistry, catIconRegistry, catNotificationService } from '@haiilo/catalyst';
9
10
  import { defineCustomElements } from '@haiilo/catalyst/loader';
10
- import log from 'loglevel';
11
11
  import { __decorate } from 'tslib';
12
12
  import { fromEvent } from 'rxjs';
13
13
  import * as i1$2 from '@angular/forms';
14
14
  import { NG_VALUE_ACCESSOR, Validators } from '@angular/forms';
15
15
 
16
+ // It is important to declare the InjectionTokens first
17
+ const CAT_LOG_TOKEN = new InjectionToken('CAT_LOG', {
18
+ providedIn: 'root',
19
+ factory: () => log
20
+ });
21
+ const CAT_I18N_REGISTRY_TOKEN = new InjectionToken('CAT_I18N_REGISTRY', {
22
+ providedIn: 'root',
23
+ factory: () => catI18nRegistry
24
+ });
25
+ const CAT_ICON_REGISTRY_TOKEN = new InjectionToken('CAT_ICON_REGISTRY', {
26
+ providedIn: 'root',
27
+ factory: () => catIconRegistry
28
+ });
29
+ const CAT_NOTIFICATION_SERVICE_TOKEN = new InjectionToken('CAT_NOTIFICATION_SERVICE', {
30
+ providedIn: 'root',
31
+ factory: () => catNotificationService
32
+ });
33
+
16
34
  /**
17
35
  * The bottom actions of a dialog.
18
36
  */
@@ -1425,22 +1443,6 @@ const CatDirectives = [
1425
1443
  ValueAccessorDecorator,
1426
1444
  DatetimeComponent
1427
1445
  ];
1428
- const CAT_LOG_TOKEN = new InjectionToken('CAT_LOG', {
1429
- providedIn: 'root',
1430
- factory: () => log
1431
- });
1432
- const CAT_I18N_REGISTRY_TOKEN = new InjectionToken('CAT_I18N_REGISTRY', {
1433
- providedIn: 'root',
1434
- factory: () => catI18nRegistry
1435
- });
1436
- const CAT_ICON_REGISTRY_TOKEN = new InjectionToken('CAT_ICON_REGISTRY', {
1437
- providedIn: 'root',
1438
- factory: () => catIconRegistry
1439
- });
1440
- const CAT_NOTIFICATION_SERVICE_TOKEN = new InjectionToken('CAT_NOTIFICATION_SERVICE', {
1441
- providedIn: 'root',
1442
- factory: () => catNotificationService
1443
- });
1444
1446
  class CatalystModule {
1445
1447
  static forRoot() {
1446
1448
  defineCustomElements();