trm-tmpl 3.2.2 → 3.3.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.
Files changed (22) hide show
  1. package/esm2022/lib/app/pages/components/constructor-form/components/constructor-field-iframe/constructor-field-iframe.component.mjs +3 -5
  2. package/esm2022/lib/app/pages/components/constructor-form/components/method-amount-hint/method-amount-hint.component.mjs +11 -7
  3. package/esm2022/lib/app/pages/components/constructor-form/constructor-form.component.mjs +7 -4
  4. package/esm2022/lib/app/pages/components/constructor-form/models/payment-field-options.mjs +1 -1
  5. package/esm2022/lib/app/pages/components/constructor-form/services/constructor-form.service.mjs +2 -2
  6. package/esm2022/lib/app/pages/components/terminal-layout/terminal-layout.component.mjs +3 -3
  7. package/esm2022/lib/app/pages/directives/fee-template.directive.mjs +17 -0
  8. package/esm2022/lib/app/pages/directives/index.mjs +2 -1
  9. package/esm2022/lib/app/services/session.data-source.mjs +5 -4
  10. package/esm2022/lib/app/terminal-tpl.component.mjs +9 -5
  11. package/esm2022/lib/app/terminal.module.mjs +43 -75
  12. package/fesm2022/trm-tmpl.mjs +238 -246
  13. package/fesm2022/trm-tmpl.mjs.map +1 -1
  14. package/lib/app/pages/components/constructor-form/components/constructor-field-iframe/constructor-field-iframe.component.d.ts +0 -1
  15. package/lib/app/pages/components/constructor-form/components/method-amount-hint/method-amount-hint.component.d.ts +3 -0
  16. package/lib/app/pages/components/constructor-form/constructor-form.component.d.ts +1 -1
  17. package/lib/app/pages/components/constructor-form/models/payment-field-options.d.ts +1 -1
  18. package/lib/app/pages/directives/fee-template.directive.d.ts +7 -0
  19. package/lib/app/pages/directives/index.d.ts +1 -0
  20. package/lib/app/terminal-tpl.component.d.ts +2 -1
  21. package/lib/app/terminal.module.d.ts +26 -4
  22. package/package.json +1 -1
@@ -5,7 +5,6 @@ import * as i0 from "@angular/core";
5
5
  import * as i1 from "./iframe-validator-directive.directive";
6
6
  export declare class ConstructorFieldIframeComponent implements AfterViewInit, ControlValueAccessor {
7
7
  private _translateSrv;
8
- private _sessionSrv;
9
8
  private _cd;
10
9
  private _control;
11
10
  private _injector;
@@ -1,10 +1,13 @@
1
+ import { TemplateRef } from '@angular/core';
1
2
  import { I18N_KEY } from './../../../../../i18n';
2
3
  import { PaymentFieldOptions } from "../../models";
3
4
  import * as i0 from "@angular/core";
4
5
  export declare class MethodAmountHintComponent {
6
+ private mainTpl;
5
7
  loading: boolean;
6
8
  options: PaymentFieldOptions;
7
9
  I18N_KEY: typeof I18N_KEY;
10
+ get feeTpl(): TemplateRef<any>;
8
11
  static ɵfac: i0.ɵɵFactoryDeclaration<MethodAmountHintComponent, never>;
9
12
  static ɵcmp: i0.ɵɵComponentDeclaration<MethodAmountHintComponent, "app-method-amount-hint", never, { "loading": { "alias": "loading"; "required": false; }; "options": { "alias": "options"; "required": false; }; }, {}, never, never, true, never>;
10
13
  }
@@ -26,7 +26,7 @@ export declare class ConstructorFormComponent implements OnChanges, AfterViewIni
26
26
  feeOptions: PaymentFieldOptions;
27
27
  currency: string;
28
28
  userCurrency: string[];
29
- loading: boolean;
29
+ loading: any;
30
30
  types: MethodType[];
31
31
  canReturnToProject: boolean;
32
32
  amountChanged: EventEmitter<number>;
@@ -5,7 +5,7 @@ export interface PaymentFieldOptionsItem {
5
5
  name?: string;
6
6
  }
7
7
  export interface PaymentFieldOptions {
8
- info?: string;
8
+ info?: any;
9
9
  fee?: number;
10
10
  fixedFee?: number;
11
11
  minFixedFee?: number;
@@ -0,0 +1,7 @@
1
+ import { TemplateRef } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class FeeTemplateDirective {
4
+ tml: TemplateRef<any>;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<FeeTemplateDirective, never>;
6
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FeeTemplateDirective, "[terminalFee]", never, {}, {}, never, never, true, never>;
7
+ }
@@ -1,2 +1,3 @@
1
1
  export * from './tab-index-focus.directive';
2
2
  export * from './input-mask-corrector.directive';
3
+ export * from './fee-template.directive';
@@ -7,11 +7,12 @@ export declare class TerminalTplComponent implements OnInit, OnDestroy {
7
7
  ready$: BehaviorSubject<boolean>;
8
8
  langStorage: TranslateLangStorageService;
9
9
  private unSubscriber;
10
+ feeTpl: any;
10
11
  next(ev: any, document: Document): void;
11
12
  prev(ev: any, document: Document): void;
12
13
  ngOnInit(): void;
13
14
  private navigationEnd$;
14
15
  ngOnDestroy(): void;
15
16
  static ɵfac: i0.ɵɵFactoryDeclaration<TerminalTplComponent, never>;
16
- static ɵcmp: i0.ɵɵComponentDeclaration<TerminalTplComponent, "terminal-tpl", never, {}, {}, never, never, true, never>;
17
+ static ɵcmp: i0.ɵɵComponentDeclaration<TerminalTplComponent, "terminal", never, {}, {}, ["feeTpl"], never, true, never>;
17
18
  }
@@ -1,9 +1,31 @@
1
+ import { ApiErrorsService, ScriptLoader, TranslateLangStorageService } from './services';
1
2
  import * as i0 from "@angular/core";
2
- import * as i1 from "@angular/common";
3
- import * as i2 from "@angular/router";
4
- import * as i3 from "./terminal-tpl.component";
3
+ import * as i1 from "@angular/router";
5
4
  export declare class TerminalModule {
6
5
  static ɵfac: i0.ɵɵFactoryDeclaration<TerminalModule, never>;
7
- static ɵmod: i0.ɵɵNgModuleDeclaration<TerminalModule, never, [typeof i1.CommonModule, typeof i2.RouterModule, typeof i3.TerminalTplComponent], never>;
6
+ static ɵmod: i0.ɵɵNgModuleDeclaration<TerminalModule, never, [typeof i1.RouterModule], never>;
8
7
  static ɵinj: i0.ɵɵInjectorDeclaration<TerminalModule>;
9
8
  }
9
+ export declare const provideTerminal: () => (typeof ApiErrorsService | typeof TranslateLangStorageService | typeof ScriptLoader | {
10
+ provide: import("@angular/core").InjectionToken<unknown>;
11
+ useValue: {
12
+ ru: import("i18n-iso-countries").LocalizedCountryNames<{
13
+ select: "official";
14
+ }>;
15
+ lt: import("i18n-iso-countries").LocalizedCountryNames<{
16
+ select: "official";
17
+ }>;
18
+ en: import("i18n-iso-countries").LocalizedCountryNames<{
19
+ select: "official";
20
+ }>;
21
+ es: import("i18n-iso-countries").LocalizedCountryNames<{
22
+ select: "official";
23
+ }>;
24
+ tr: import("i18n-iso-countries").LocalizedCountryNames<{
25
+ select: "official";
26
+ }>;
27
+ pt: import("i18n-iso-countries").LocalizedCountryNames<{
28
+ select: "official";
29
+ }>;
30
+ };
31
+ })[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trm-tmpl",
3
- "version": "3.2.2",
3
+ "version": "3.3.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^15.2.0 || ^16.0.0 || ^17.0.0 || ^18.0.0",
6
6
  "@angular/core": "^15.2.0 || ^16.0.0 || ^17.0.0 || ^18.0.0",