@siemens/ix-angular 2.7.0 → 3.0.0-alpha.1

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 (152) hide show
  1. package/{control-value-accessors → common/directives/control-value-accessors}/boolean-value-accessor.d.ts +3 -3
  2. package/common/directives/control-value-accessors/date-value-accessor.d.ts +9 -0
  3. package/{control-value-accessors → common/directives/control-value-accessors}/radio-value-accessor.d.ts +3 -3
  4. package/{control-value-accessors → common/directives/control-value-accessors}/select-value-accessor.d.ts +3 -3
  5. package/common/directives/control-value-accessors/text-value-accessor.d.ts +9 -0
  6. package/{control-value-accessors → common/directives/control-value-accessors}/value-accessor.d.ts +7 -3
  7. package/common/directives/dropdown-trigger.d.ts +10 -0
  8. package/{tree → common/directives}/tree.d.ts +5 -5
  9. package/common/index.d.ts +6 -0
  10. package/common/providers/modal/index.d.ts +3 -0
  11. package/{modal → common/providers/modal}/modal.config.d.ts +1 -1
  12. package/{modal → common/providers/modal}/modal.service.d.ts +5 -0
  13. package/{toast → common/providers/toast}/index.d.ts +1 -0
  14. package/{toast → common/providers/toast}/toast.config.d.ts +1 -1
  15. package/common/utils/create-value-accessor-provider.d.ts +2 -0
  16. package/components.d.ts +129 -135
  17. package/declare-components.d.ts +1 -1
  18. package/directives/control-value-accessors/boolean-value-accessor.d.ts +8 -0
  19. package/directives/control-value-accessors/date-value-accessor.d.ts +8 -0
  20. package/directives/control-value-accessors/index.d.ts +5 -0
  21. package/directives/control-value-accessors/radio-value-accessor.d.ts +8 -0
  22. package/directives/control-value-accessors/select-value-accessor.d.ts +8 -0
  23. package/directives/control-value-accessors/text-value-accessor.d.ts +8 -0
  24. package/directives/dropdown-trigger.d.ts +10 -0
  25. package/{esm2020 → esm2022}/angular-component-lib/utils.mjs +1 -1
  26. package/esm2022/common/directives/control-value-accessors/boolean-value-accessor.mjs +32 -0
  27. package/esm2022/common/directives/control-value-accessors/date-value-accessor.mjs +28 -0
  28. package/esm2022/common/directives/control-value-accessors/index.mjs +14 -0
  29. package/esm2022/common/directives/control-value-accessors/radio-value-accessor.mjs +34 -0
  30. package/esm2022/common/directives/control-value-accessors/select-value-accessor.mjs +28 -0
  31. package/esm2022/common/directives/control-value-accessors/text-value-accessor.mjs +31 -0
  32. package/esm2022/common/directives/control-value-accessors/value-accessor.mjs +157 -0
  33. package/esm2022/common/directives/dropdown-trigger.mjs +28 -0
  34. package/esm2022/common/directives/tree.mjs +70 -0
  35. package/esm2022/common/index.mjs +15 -0
  36. package/esm2022/common/providers/modal/index.mjs +11 -0
  37. package/esm2022/common/providers/modal/modal-ref.mjs +41 -0
  38. package/esm2022/common/providers/modal/modal.config.mjs +10 -0
  39. package/esm2022/common/providers/modal/modal.service.mjs +90 -0
  40. package/esm2022/common/providers/toast/index.mjs +11 -0
  41. package/esm2022/common/providers/toast/toast.config.mjs +10 -0
  42. package/esm2022/common/providers/toast/toast.service.mjs +52 -0
  43. package/esm2022/common/siemens-ix-angular-common.mjs +5 -0
  44. package/esm2022/common/utils/create-value-accessor-provider.mjs +17 -0
  45. package/esm2022/components.mjs +2809 -0
  46. package/{esm2020 → esm2022}/declare-components.mjs +1 -2
  47. package/esm2022/directives/control-value-accessors/boolean-value-accessor.mjs +26 -0
  48. package/esm2022/directives/control-value-accessors/date-value-accessor.mjs +26 -0
  49. package/esm2022/directives/control-value-accessors/index.mjs +14 -0
  50. package/esm2022/directives/control-value-accessors/radio-value-accessor.mjs +26 -0
  51. package/esm2022/directives/control-value-accessors/select-value-accessor.mjs +26 -0
  52. package/esm2022/directives/control-value-accessors/text-value-accessor.mjs +26 -0
  53. package/esm2022/directives/dropdown-trigger.mjs +31 -0
  54. package/esm2022/index.mjs +19 -0
  55. package/esm2022/ix-icon.mjs +40 -0
  56. package/esm2022/module.mjs +78 -0
  57. package/esm2022/providers/modal/index.mjs +11 -0
  58. package/esm2022/providers/modal/modal.service.mjs +28 -0
  59. package/esm2022/providers/theme/index.mjs +10 -0
  60. package/esm2022/providers/theme/theme.service.mjs +40 -0
  61. package/esm2022/providers/toast/index.mjs +2 -0
  62. package/esm2022/providers/toast/toast.service.mjs +52 -0
  63. package/esm2022/standalone/angular-component-lib/utils.mjs +59 -0
  64. package/esm2022/standalone/components.mjs +3126 -0
  65. package/esm2022/standalone/directives/control-value-accessors/boolean-value-accessor.mjs +30 -0
  66. package/esm2022/standalone/directives/control-value-accessors/date-value-accessor.mjs +30 -0
  67. package/esm2022/standalone/directives/control-value-accessors/index.mjs +14 -0
  68. package/esm2022/standalone/directives/control-value-accessors/radio-value-accessor.mjs +30 -0
  69. package/esm2022/standalone/directives/control-value-accessors/select-value-accessor.mjs +30 -0
  70. package/esm2022/standalone/directives/control-value-accessors/text-value-accessor.mjs +30 -0
  71. package/esm2022/standalone/directives/dropdown-trigger.mjs +32 -0
  72. package/esm2022/standalone/index.mjs +18 -0
  73. package/esm2022/standalone/internal-components.mjs +19 -0
  74. package/esm2022/standalone/ix-icon.mjs +44 -0
  75. package/esm2022/standalone/providers/modal.mjs +26 -0
  76. package/esm2022/standalone/providers/toast.mjs +31 -0
  77. package/esm2022/standalone/siemens-ix-angular-standalone.mjs +5 -0
  78. package/esm2022/standalone/tree.mjs +41 -0
  79. package/esm2022/standalone/utils/value-accessor-directives.mjs +23 -0
  80. package/esm2022/tree.mjs +39 -0
  81. package/esm2022/utils/app-initialize.mjs +25 -0
  82. package/fesm2022/siemens-ix-angular-common.mjs +633 -0
  83. package/fesm2022/siemens-ix-angular-common.mjs.map +1 -0
  84. package/fesm2022/siemens-ix-angular-standalone.mjs +3415 -0
  85. package/fesm2022/siemens-ix-angular-standalone.mjs.map +1 -0
  86. package/fesm2022/siemens-ix-angular.mjs +3307 -0
  87. package/fesm2022/siemens-ix-angular.mjs.map +1 -0
  88. package/index.d.ts +6 -6
  89. package/ix-icon.d.ts +1 -1
  90. package/module.d.ts +9 -9
  91. package/package.json +21 -15
  92. package/providers/modal/index.d.ts +2 -0
  93. package/providers/modal/modal.service.d.ts +15 -0
  94. package/{theme → providers/theme}/theme.service.d.ts +3 -2
  95. package/providers/toast/index.d.ts +2 -0
  96. package/providers/toast/toast.service.d.ts +9 -0
  97. package/standalone/angular-component-lib/utils.d.ts +9 -0
  98. package/standalone/components.d.ts +1331 -0
  99. package/standalone/directives/control-value-accessors/boolean-value-accessor.d.ts +11 -0
  100. package/standalone/directives/control-value-accessors/date-value-accessor.d.ts +11 -0
  101. package/standalone/directives/control-value-accessors/index.d.ts +5 -0
  102. package/standalone/directives/control-value-accessors/radio-value-accessor.d.ts +11 -0
  103. package/standalone/directives/control-value-accessors/select-value-accessor.d.ts +11 -0
  104. package/standalone/directives/control-value-accessors/text-value-accessor.d.ts +11 -0
  105. package/{dropdown/trigger.directive.d.ts → standalone/directives/dropdown-trigger.d.ts} +3 -3
  106. package/standalone/index.d.ts +9 -0
  107. package/standalone/internal-components.d.ts +1 -0
  108. package/standalone/ix-icon.d.ts +9 -0
  109. package/standalone/providers/modal.d.ts +11 -0
  110. package/standalone/providers/toast.d.ts +11 -0
  111. package/standalone/tree.d.ts +9 -0
  112. package/standalone/utils/value-accessor-directives.d.ts +16 -0
  113. package/tree.d.ts +9 -0
  114. package/utils/app-initialize.d.ts +1 -0
  115. package/app-initialize.d.ts +0 -1
  116. package/control-value-accessors/date-value-accessor.d.ts +0 -9
  117. package/control-value-accessors/text-value-accessor.d.ts +0 -9
  118. package/esm2020/app-initialize.mjs +0 -25
  119. package/esm2020/components.mjs +0 -2631
  120. package/esm2020/control-value-accessors/boolean-value-accessor.mjs +0 -49
  121. package/esm2020/control-value-accessors/date-value-accessor.mjs +0 -45
  122. package/esm2020/control-value-accessors/index.mjs +0 -14
  123. package/esm2020/control-value-accessors/radio-value-accessor.mjs +0 -51
  124. package/esm2020/control-value-accessors/select-value-accessor.mjs +0 -45
  125. package/esm2020/control-value-accessors/text-value-accessor.mjs +0 -48
  126. package/esm2020/control-value-accessors/value-accessor.mjs +0 -136
  127. package/esm2020/dropdown/trigger.directive.mjs +0 -29
  128. package/esm2020/index.mjs +0 -19
  129. package/esm2020/ix-icon.mjs +0 -38
  130. package/esm2020/modal/index.mjs +0 -11
  131. package/esm2020/modal/modal-ref.mjs +0 -39
  132. package/esm2020/modal/modal.config.mjs +0 -10
  133. package/esm2020/modal/modal.service.mjs +0 -87
  134. package/esm2020/module.mjs +0 -78
  135. package/esm2020/theme/index.mjs +0 -10
  136. package/esm2020/theme/theme.service.mjs +0 -38
  137. package/esm2020/toast/index.mjs +0 -10
  138. package/esm2020/toast/toast.config.mjs +0 -10
  139. package/esm2020/toast/toast.service.mjs +0 -52
  140. package/esm2020/tree/index.mjs +0 -10
  141. package/esm2020/tree/tree.mjs +0 -81
  142. package/fesm2015/siemens-ix-angular.mjs +0 -3489
  143. package/fesm2015/siemens-ix-angular.mjs.map +0 -1
  144. package/fesm2020/siemens-ix-angular.mjs +0 -3515
  145. package/fesm2020/siemens-ix-angular.mjs.map +0 -1
  146. package/modal/index.d.ts +0 -2
  147. package/tree/index.d.ts +0 -1
  148. /package/{control-value-accessors → common/directives/control-value-accessors}/index.d.ts +0 -0
  149. /package/{modal → common/providers/modal}/modal-ref.d.ts +0 -0
  150. /package/{toast → common/providers/toast}/toast.service.d.ts +0 -0
  151. /package/{esm2020 → esm2022}/siemens-ix-angular.mjs +0 -0
  152. /package/{theme → providers/theme}/index.d.ts +0 -0
@@ -0,0 +1,11 @@
1
+ import { ElementRef, Injector } from '@angular/core';
2
+ import { BooleanValueAccessorBaseDirective } from '@siemens/ix-angular/common';
3
+ import * as i0 from "@angular/core";
4
+ /**
5
+ * Value Accessor for ix-checkbox and ix-toggle
6
+ */
7
+ export declare class IxBooleanValueAccessorDirective extends BooleanValueAccessorBaseDirective {
8
+ constructor(injector: Injector, el: ElementRef);
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<IxBooleanValueAccessorDirective, never>;
10
+ static ɵdir: i0.ɵɵDirectiveDeclaration<IxBooleanValueAccessorDirective, "ix-checkbox,ix-toggle", never, {}, {}, never, never, true, never>;
11
+ }
@@ -0,0 +1,11 @@
1
+ import { ElementRef, Injector } from '@angular/core';
2
+ import { DateValueAccessorBaseDirective } from '@siemens/ix-angular/common';
3
+ import * as i0 from "@angular/core";
4
+ /**
5
+ * Value Accessor for ix-date-input
6
+ */
7
+ export declare class IxDateValueAccessorDirective extends DateValueAccessorBaseDirective {
8
+ constructor(injector: Injector, el: ElementRef);
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<IxDateValueAccessorDirective, never>;
10
+ static ɵdir: i0.ɵɵDirectiveDeclaration<IxDateValueAccessorDirective, "ix-date-input", never, {}, {}, never, never, true, never>;
11
+ }
@@ -0,0 +1,5 @@
1
+ export * from './boolean-value-accessor';
2
+ export * from './radio-value-accessor';
3
+ export * from './select-value-accessor';
4
+ export * from './text-value-accessor';
5
+ export * from './date-value-accessor';
@@ -0,0 +1,11 @@
1
+ import { ElementRef, Injector } from '@angular/core';
2
+ import { RadioValueAccessorBaseDirective } from '@siemens/ix-angular/common';
3
+ import * as i0 from "@angular/core";
4
+ /**
5
+ * Value Accessor for ix-radio
6
+ */
7
+ export declare class IxRadioValueAccessorDirective extends RadioValueAccessorBaseDirective {
8
+ constructor(injector: Injector, el: ElementRef);
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<IxRadioValueAccessorDirective, never>;
10
+ static ɵdir: i0.ɵɵDirectiveDeclaration<IxRadioValueAccessorDirective, "ix-radio", never, {}, {}, never, never, true, never>;
11
+ }
@@ -0,0 +1,11 @@
1
+ import { ElementRef, Injector } from '@angular/core';
2
+ import { SelectValueAccessorBaseDirective } from '@siemens/ix-angular/common';
3
+ import * as i0 from "@angular/core";
4
+ /**
5
+ * Value Accessor for ix-select
6
+ */
7
+ export declare class IxSelectValueAccessorDirective extends SelectValueAccessorBaseDirective {
8
+ constructor(injector: Injector, el: ElementRef);
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<IxSelectValueAccessorDirective, never>;
10
+ static ɵdir: i0.ɵɵDirectiveDeclaration<IxSelectValueAccessorDirective, "ix-select", never, {}, {}, never, never, true, never>;
11
+ }
@@ -0,0 +1,11 @@
1
+ import { ElementRef, Injector } from '@angular/core';
2
+ import { TextValueAccessorBaseDirective } from '@siemens/ix-angular/common';
3
+ import * as i0 from "@angular/core";
4
+ /**
5
+ * Value Accessor for ix-input, ix-number-input and ix-textarea
6
+ */
7
+ export declare class IxTextValueAccessorDirective extends TextValueAccessorBaseDirective {
8
+ constructor(injector: Injector, el: ElementRef);
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<IxTextValueAccessorDirective, never>;
10
+ static ɵdir: i0.ɵɵDirectiveDeclaration<IxTextValueAccessorDirective, "ix-input,ix-number-input,ix-textarea", never, {}, {}, never, never, true, never>;
11
+ }
@@ -1,10 +1,10 @@
1
1
  import { ElementRef } from '@angular/core';
2
+ import { DropdownTriggerBaseDirective } from '@siemens/ix-angular/common';
2
3
  import * as i0 from "@angular/core";
3
- export declare class IxDropdownTriggerDirective {
4
- private element;
4
+ export declare class IxDropdownTriggerDirective extends DropdownTriggerBaseDirective {
5
5
  ixDropdownTrigger: any;
6
6
  constructor(element: ElementRef);
7
7
  protected ngOnChanges(): void;
8
8
  static ɵfac: i0.ɵɵFactoryDeclaration<IxDropdownTriggerDirective, never>;
9
- static ɵdir: i0.ɵɵDirectiveDeclaration<IxDropdownTriggerDirective, "[ixDropdownTrigger]", never, { "ixDropdownTrigger": "ixDropdownTrigger"; }, {}, never>;
9
+ static ɵdir: i0.ɵɵDirectiveDeclaration<IxDropdownTriggerDirective, "[ixDropdownTrigger]", never, { "ixDropdownTrigger": { "alias": "ixDropdownTrigger"; "required": false; }; }, {}, never, never, true, never>;
10
10
  }
@@ -0,0 +1,9 @@
1
+ export * from './components';
2
+ export * from './internal-components';
3
+ export { IxIcon } from './ix-icon';
4
+ export { IxTree } from './tree';
5
+ export * from './providers/modal';
6
+ export * from './providers/toast';
7
+ export * from './directives/control-value-accessors';
8
+ export { IxDropdownTriggerDirective } from './directives/dropdown-trigger';
9
+ export { IxValueAccessorDirectives } from './utils/value-accessor-directives';
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,9 @@
1
+ import { ChangeDetectorRef, ElementRef, NgZone } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class IxIcon {
4
+ protected z: NgZone;
5
+ protected el: HTMLElement;
6
+ constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<IxIcon, never>;
8
+ static ɵcmp: i0.ɵɵComponentDeclaration<IxIcon, "ix-icon", never, { "color": { "alias": "color"; "required": false; }; "size": { "alias": "size"; "required": false; }; "name": { "alias": "name"; "required": false; }; "lazyLoading": { "alias": "lazyLoading"; "required": false; }; }, {}, never, ["*"], true, never>;
9
+ }
@@ -0,0 +1,11 @@
1
+ import { ModalService as BaseModalService, ModalConfig } from '@siemens/ix-angular/common';
2
+ import { ModalInstance } from '@siemens/ix';
3
+ import { ApplicationRef, ComponentFactoryResolver, Injector } from '@angular/core';
4
+ import * as i0 from "@angular/core";
5
+ export { IxActiveModal } from '@siemens/ix-angular/common';
6
+ export declare class ModalService extends BaseModalService {
7
+ constructor(appRef: ApplicationRef, componentFactoryResolver: ComponentFactoryResolver, injector: Injector);
8
+ open<TData = any, TReason = any>(config: ModalConfig<TData>): Promise<ModalInstance<TReason>>;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<ModalService, never>;
10
+ static ɵprov: i0.ɵɵInjectableDeclaration<ModalService>;
11
+ }
@@ -0,0 +1,11 @@
1
+ import { ToastService as BaseToastService, ToastConfig } from '@siemens/ix-angular/common';
2
+ import { ShowToastResult } from '@siemens/ix';
3
+ import * as i0 from "@angular/core";
4
+ export declare class ToastService extends BaseToastService {
5
+ constructor();
6
+ getPosition(): 'bottom-right' | 'top-right';
7
+ setPosition(position: 'bottom-right' | 'top-right'): void;
8
+ show(config: ToastConfig): Promise<ShowToastResult>;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<ToastService, never>;
10
+ static ɵprov: i0.ɵɵInjectableDeclaration<ToastService>;
11
+ }
@@ -0,0 +1,9 @@
1
+ import { ChangeDetectorRef, ElementRef, NgZone } from '@angular/core';
2
+ import { TreeBaseDirective } from '@siemens/ix-angular/common';
3
+ import * as i0 from "@angular/core";
4
+ export declare class IxTree extends TreeBaseDirective {
5
+ protected z: NgZone;
6
+ constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<IxTree, never>;
8
+ static ɵcmp: i0.ɵɵComponentDeclaration<IxTree, "ix-tree", never, { "context": { "alias": "context"; "required": false; }; "model": { "alias": "model"; "required": false; }; "root": { "alias": "root"; "required": false; }; "renderItem": { "alias": "renderItem"; "required": false; }; "lazyLoading": { "alias": "lazyLoading"; "required": false; }; }, {}, never, ["*"], true, never>;
9
+ }
@@ -0,0 +1,16 @@
1
+ import { IxBooleanValueAccessorDirective } from '../directives/control-value-accessors/boolean-value-accessor';
2
+ import { IxRadioValueAccessorDirective } from '../directives/control-value-accessors/radio-value-accessor';
3
+ import { IxSelectValueAccessorDirective } from '../directives/control-value-accessors/select-value-accessor';
4
+ import { IxTextValueAccessorDirective } from '../directives/control-value-accessors/text-value-accessor';
5
+ import { IxDateValueAccessorDirective } from '../directives/control-value-accessors/date-value-accessor';
6
+ /**
7
+ * Value Accessor bundle to reduce import complexity
8
+ *
9
+ * Incudes:
10
+ * - IxBooleanValueAccessorDirective
11
+ * - IxRadioValueAccessorDirective
12
+ * - IxSelectValueAccessorDirective
13
+ * - IxTextValueAccessorDirective
14
+ * - IxDateValueAccessorDirective
15
+ */
16
+ export declare const IxValueAccessorDirectives: readonly [typeof IxBooleanValueAccessorDirective, typeof IxRadioValueAccessorDirective, typeof IxSelectValueAccessorDirective, typeof IxTextValueAccessorDirective, typeof IxDateValueAccessorDirective];
package/tree.d.ts ADDED
@@ -0,0 +1,9 @@
1
+ import { ChangeDetectorRef, ElementRef, NgZone } from '@angular/core';
2
+ import { TreeBaseDirective } from '@siemens/ix-angular/common';
3
+ import * as i0 from "@angular/core";
4
+ export declare class IxTree extends TreeBaseDirective {
5
+ protected z: NgZone;
6
+ constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<IxTree, never>;
8
+ static ɵcmp: i0.ɵɵComponentDeclaration<IxTree, "ix-tree", never, { "context": { "alias": "context"; "required": false; }; "model": { "alias": "model"; "required": false; }; "root": { "alias": "root"; "required": false; }; "renderItem": { "alias": "renderItem"; "required": false; }; }, {}, never, ["*"], false, never>;
9
+ }
@@ -0,0 +1 @@
1
+ export declare const appInitialize: () => (doc: Document) => () => void;
@@ -1 +0,0 @@
1
- export declare const appInitialize: (doc: Document) => () => Promise<void>;
@@ -1,9 +0,0 @@
1
- import { ElementRef, Injector } from '@angular/core';
2
- import { ValueAccessor } from './value-accessor';
3
- import * as i0 from "@angular/core";
4
- export declare class DateValueAccessorDirective extends ValueAccessor {
5
- constructor(injector: Injector, el: ElementRef);
6
- handleInputEvent(el: any): void;
7
- static ɵfac: i0.ɵɵFactoryDeclaration<DateValueAccessorDirective, never>;
8
- static ɵdir: i0.ɵɵDirectiveDeclaration<DateValueAccessorDirective, "ix-date-input", never, {}, {}, never>;
9
- }
@@ -1,9 +0,0 @@
1
- import { ElementRef, Injector } from '@angular/core';
2
- import { ValueAccessor } from './value-accessor';
3
- import * as i0 from "@angular/core";
4
- export declare class TextValueAccessorDirective extends ValueAccessor {
5
- constructor(injector: Injector, el: ElementRef);
6
- handleInputEvent(el: any): void;
7
- static ɵfac: i0.ɵɵFactoryDeclaration<TextValueAccessorDirective, never>;
8
- static ɵdir: i0.ɵɵDirectiveDeclaration<TextValueAccessorDirective, "ix-input,ix-number-input,ix-textarea", never, {}, {}, never>;
9
- }
@@ -1,25 +0,0 @@
1
- /*
2
- * SPDX-FileCopyrightText: 2024 Siemens AG
3
- *
4
- * SPDX-License-Identifier: MIT
5
- *
6
- * This source code is licensed under the MIT license found in the
7
- * LICENSE file in the root directory of this source tree.
8
- */
9
- import { defineCustomElements as iconsDefineCustomElements } from '@siemens/ix-icons/loader';
10
- import { defineCustomElements } from '@siemens/ix/loader';
11
- let didInitialize = false;
12
- export const appInitialize = (doc) => {
13
- return async () => {
14
- const win = doc.defaultView;
15
- if (win && typeof window !== 'undefined') {
16
- if (didInitialize) {
17
- return;
18
- }
19
- didInitialize = true;
20
- await iconsDefineCustomElements();
21
- defineCustomElements();
22
- }
23
- };
24
- };
25
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXBwLWluaXRpYWxpemUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvYXBwLWluaXRpYWxpemUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7Ozs7R0FPRztBQUVILE9BQU8sRUFBRSxvQkFBb0IsSUFBSSx5QkFBeUIsRUFBRSxNQUFNLDBCQUEwQixDQUFDO0FBQzdGLE9BQU8sRUFBRSxvQkFBb0IsRUFBRSxNQUFNLG9CQUFvQixDQUFDO0FBRTFELElBQUksYUFBYSxHQUFHLEtBQUssQ0FBQztBQUUxQixNQUFNLENBQUMsTUFBTSxhQUFhLEdBQUcsQ0FBQyxHQUFhLEVBQUUsRUFBRTtJQUM3QyxPQUFPLEtBQUssSUFBSSxFQUFFO1FBQ2hCLE1BQU0sR0FBRyxHQUF1QixHQUFHLENBQUMsV0FBa0IsQ0FBQztRQUN2RCxJQUFJLEdBQUcsSUFBSSxPQUFRLE1BQWMsS0FBSyxXQUFXLEVBQUU7WUFDakQsSUFBSSxhQUFhLEVBQUU7Z0JBQ2pCLE9BQU87YUFDUjtZQUVELGFBQWEsR0FBRyxJQUFJLENBQUM7WUFFckIsTUFBTSx5QkFBeUIsRUFBRSxDQUFDO1lBQ2xDLG9CQUFvQixFQUFFLENBQUM7U0FDeEI7SUFDSCxDQUFDLENBQUM7QUFDSixDQUFDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKlxuICogU1BEWC1GaWxlQ29weXJpZ2h0VGV4dDogMjAyNCBTaWVtZW5zIEFHXG4gKlxuICogU1BEWC1MaWNlbnNlLUlkZW50aWZpZXI6IE1JVFxuICpcbiAqIFRoaXMgc291cmNlIGNvZGUgaXMgbGljZW5zZWQgdW5kZXIgdGhlIE1JVCBsaWNlbnNlIGZvdW5kIGluIHRoZVxuICogTElDRU5TRSBmaWxlIGluIHRoZSByb290IGRpcmVjdG9yeSBvZiB0aGlzIHNvdXJjZSB0cmVlLlxuICovXG5cbmltcG9ydCB7IGRlZmluZUN1c3RvbUVsZW1lbnRzIGFzIGljb25zRGVmaW5lQ3VzdG9tRWxlbWVudHMgfSBmcm9tICdAc2llbWVucy9peC1pY29ucy9sb2FkZXInO1xuaW1wb3J0IHsgZGVmaW5lQ3VzdG9tRWxlbWVudHMgfSBmcm9tICdAc2llbWVucy9peC9sb2FkZXInO1xuXG5sZXQgZGlkSW5pdGlhbGl6ZSA9IGZhbHNlO1xuXG5leHBvcnQgY29uc3QgYXBwSW5pdGlhbGl6ZSA9IChkb2M6IERvY3VtZW50KSA9PiB7XG4gIHJldHVybiBhc3luYyAoKSA9PiB7XG4gICAgY29uc3Qgd2luOiBXaW5kb3cgfCB1bmRlZmluZWQgPSBkb2MuZGVmYXVsdFZpZXcgYXMgYW55O1xuICAgIGlmICh3aW4gJiYgdHlwZW9mICh3aW5kb3cgYXMgYW55KSAhPT0gJ3VuZGVmaW5lZCcpIHtcbiAgICAgIGlmIChkaWRJbml0aWFsaXplKSB7XG4gICAgICAgIHJldHVybjtcbiAgICAgIH1cblxuICAgICAgZGlkSW5pdGlhbGl6ZSA9IHRydWU7XG5cbiAgICAgIGF3YWl0IGljb25zRGVmaW5lQ3VzdG9tRWxlbWVudHMoKTtcbiAgICAgIGRlZmluZUN1c3RvbUVsZW1lbnRzKCk7XG4gICAgfVxuICB9O1xufTtcbiJdfQ==