@veloceapps/sdk 8.0.0-77 → 8.0.0-79

Sign up to get free protection for your applications and to get access to all the features.
Files changed (134) hide show
  1. package/README.md +0 -1
  2. package/cms/types/common.types.d.ts +0 -1
  3. package/esm2020/cms/types/common.types.mjs +1 -1
  4. package/esm2020/cms/utils/ui-builder-layout.utils.mjs +1 -3
  5. package/esm2020/core/modules/configuration/services/configuration-runtime.service.mjs +5 -5
  6. package/esm2020/core/modules/configuration/services/configuration.service.mjs +3 -3
  7. package/esm2020/core/modules/configuration/services/runtime-context.service.mjs +6 -6
  8. package/esm2020/src/flow-routing.module.mjs +1 -18
  9. package/esm2020/src/pages/product/product.component.mjs +2 -3
  10. package/esm2020/src/pages/remote/remote.component.mjs +5 -6
  11. package/fesm2015/veloceapps-sdk-cms.mjs +2 -2
  12. package/fesm2015/veloceapps-sdk-cms.mjs.map +1 -1
  13. package/fesm2015/veloceapps-sdk-core.mjs +16 -15
  14. package/fesm2015/veloceapps-sdk-core.mjs.map +1 -1
  15. package/fesm2015/veloceapps-sdk.mjs +8 -160
  16. package/fesm2015/veloceapps-sdk.mjs.map +1 -1
  17. package/fesm2020/veloceapps-sdk-cms.mjs +0 -2
  18. package/fesm2020/veloceapps-sdk-cms.mjs.map +1 -1
  19. package/fesm2020/veloceapps-sdk-core.mjs +9 -9
  20. package/fesm2020/veloceapps-sdk-core.mjs.map +1 -1
  21. package/fesm2020/veloceapps-sdk.mjs +6 -161
  22. package/fesm2020/veloceapps-sdk.mjs.map +1 -1
  23. package/package.json +1 -9
  24. package/src/flow-routing.module.d.ts +6 -7
  25. package/esm2020/runtime/components/component-preview/component-preview.component.mjs +0 -125
  26. package/esm2020/runtime/components/index.mjs +0 -5
  27. package/esm2020/runtime/components/section-renderer/section-renderer.component.mjs +0 -67
  28. package/esm2020/runtime/components/ui-runtime/runtime.component.mjs +0 -440
  29. package/esm2020/runtime/components/ui-runtime-preview/runtime-preview.component.mjs +0 -108
  30. package/esm2020/runtime/execution/components/children-placeholder/children-placeholder.component.mjs +0 -60
  31. package/esm2020/runtime/execution/components/context-provider/context-provider.component.mjs +0 -39
  32. package/esm2020/runtime/execution/components/execution-section-renderer/execution-section-renderer.component.mjs +0 -67
  33. package/esm2020/runtime/execution/components/federated/federated.component.mjs +0 -74
  34. package/esm2020/runtime/execution/components/velo-attribute/velo-attribute.component.mjs +0 -60
  35. package/esm2020/runtime/execution/components/velo-multiselect/velo-multiselect.component.mjs +0 -130
  36. package/esm2020/runtime/execution/components/velo-port-checkbox/velo-port-checkbox.component.mjs +0 -72
  37. package/esm2020/runtime/execution/components/velo-port-dropdown/velo-port-dropdown.component.mjs +0 -97
  38. package/esm2020/runtime/execution/components/velo-port-radio/velo-port-radio.component.mjs +0 -142
  39. package/esm2020/runtime/execution/components/velo-type/velo-type.component.mjs +0 -119
  40. package/esm2020/runtime/execution/directives/section-script.directive.mjs +0 -247
  41. package/esm2020/runtime/execution/directives/sf-query.directive.mjs +0 -35
  42. package/esm2020/runtime/execution/directives/velo-attribute.directive.mjs +0 -88
  43. package/esm2020/runtime/execution/directives/velo-port.directive.mjs +0 -376
  44. package/esm2020/runtime/execution/directives/vl-approval.directive.mjs +0 -23
  45. package/esm2020/runtime/execution/directives/vl-document-attachments.directive.mjs +0 -36
  46. package/esm2020/runtime/execution/directives/vl-document-templates.directive.mjs +0 -60
  47. package/esm2020/runtime/execution/directives/vl-quote.directive.mjs +0 -42
  48. package/esm2020/runtime/execution/directives/vl-ramp.directive.mjs +0 -55
  49. package/esm2020/runtime/execution/runtime-execution.module.mjs +0 -133
  50. package/esm2020/runtime/execution/utils/federated.util.mjs +0 -32
  51. package/esm2020/runtime/index.mjs +0 -5
  52. package/esm2020/runtime/runtime.module.mjs +0 -74
  53. package/esm2020/runtime/services/cart.service.mjs +0 -29
  54. package/esm2020/runtime/services/collapsible-state.service.mjs +0 -34
  55. package/esm2020/runtime/services/configuration.service.mjs +0 -119
  56. package/esm2020/runtime/services/current-state.service.mjs +0 -17
  57. package/esm2020/runtime/services/form-scope.service.mjs +0 -30
  58. package/esm2020/runtime/services/index.mjs +0 -4
  59. package/esm2020/runtime/services/product-model-cache.service.mjs +0 -31
  60. package/esm2020/runtime/services/runtime-context.service.mjs +0 -60
  61. package/esm2020/runtime/services/runtime-form.service.mjs +0 -219
  62. package/esm2020/runtime/services/runtime.service.mjs +0 -115
  63. package/esm2020/runtime/services/section-helper.service.mjs +0 -27
  64. package/esm2020/runtime/services/section-scope.service.mjs +0 -36
  65. package/esm2020/runtime/services/section-store.service.mjs +0 -22
  66. package/esm2020/runtime/services/section.service.mjs +0 -117
  67. package/esm2020/runtime/types/bound-data.types.mjs +0 -7
  68. package/esm2020/runtime/types/index.mjs +0 -3
  69. package/esm2020/runtime/types/quote-states.types.mjs +0 -2
  70. package/esm2020/runtime/types/runtime.types.mjs +0 -2
  71. package/esm2020/runtime/types/script-registry.types.mjs +0 -51
  72. package/esm2020/runtime/utils/line-item.util.mjs +0 -270
  73. package/esm2020/runtime/utils/section.utils.mjs +0 -26
  74. package/esm2020/runtime/utils/sections-binder.helper.mjs +0 -105
  75. package/esm2020/runtime/veloceapps-sdk-runtime.mjs +0 -5
  76. package/esm2020/src/pages/legacy-product/legacy-product.component.mjs +0 -137
  77. package/esm2020/src/pages/legacy-product/legacy-product.module.mjs +0 -19
  78. package/fesm2015/veloceapps-sdk-runtime.mjs +0 -3770
  79. package/fesm2015/veloceapps-sdk-runtime.mjs.map +0 -1
  80. package/fesm2020/veloceapps-sdk-runtime.mjs +0 -3767
  81. package/fesm2020/veloceapps-sdk-runtime.mjs.map +0 -1
  82. package/runtime/README.md +0 -5
  83. package/runtime/components/component-preview/component-preview.component.d.ts +0 -27
  84. package/runtime/components/index.d.ts +0 -4
  85. package/runtime/components/section-renderer/section-renderer.component.d.ts +0 -25
  86. package/runtime/components/ui-runtime/runtime.component.d.ts +0 -53
  87. package/runtime/components/ui-runtime-preview/runtime-preview.component.d.ts +0 -27
  88. package/runtime/execution/components/children-placeholder/children-placeholder.component.d.ts +0 -30
  89. package/runtime/execution/components/context-provider/context-provider.component.d.ts +0 -14
  90. package/runtime/execution/components/execution-section-renderer/execution-section-renderer.component.d.ts +0 -25
  91. package/runtime/execution/components/federated/federated.component.d.ts +0 -36
  92. package/runtime/execution/components/velo-attribute/velo-attribute.component.d.ts +0 -19
  93. package/runtime/execution/components/velo-multiselect/velo-multiselect.component.d.ts +0 -35
  94. package/runtime/execution/components/velo-port-checkbox/velo-port-checkbox.component.d.ts +0 -22
  95. package/runtime/execution/components/velo-port-dropdown/velo-port-dropdown.component.d.ts +0 -22
  96. package/runtime/execution/components/velo-port-radio/velo-port-radio.component.d.ts +0 -28
  97. package/runtime/execution/components/velo-type/velo-type.component.d.ts +0 -31
  98. package/runtime/execution/directives/section-script.directive.d.ts +0 -59
  99. package/runtime/execution/directives/sf-query.directive.d.ts +0 -15
  100. package/runtime/execution/directives/velo-attribute.directive.d.ts +0 -26
  101. package/runtime/execution/directives/velo-port.directive.d.ts +0 -74
  102. package/runtime/execution/directives/vl-approval.directive.d.ts +0 -10
  103. package/runtime/execution/directives/vl-document-attachments.directive.d.ts +0 -15
  104. package/runtime/execution/directives/vl-document-templates.directive.d.ts +0 -33
  105. package/runtime/execution/directives/vl-quote.directive.d.ts +0 -14
  106. package/runtime/execution/directives/vl-ramp.directive.d.ts +0 -15
  107. package/runtime/execution/runtime-execution.module.d.ts +0 -25
  108. package/runtime/execution/utils/federated.util.d.ts +0 -6
  109. package/runtime/index.d.ts +0 -4
  110. package/runtime/runtime.module.d.ts +0 -16
  111. package/runtime/services/cart.service.d.ts +0 -15
  112. package/runtime/services/collapsible-state.service.d.ts +0 -15
  113. package/runtime/services/configuration.service.d.ts +0 -20
  114. package/runtime/services/current-state.service.d.ts +0 -8
  115. package/runtime/services/form-scope.service.d.ts +0 -20
  116. package/runtime/services/index.d.ts +0 -3
  117. package/runtime/services/product-model-cache.service.d.ts +0 -14
  118. package/runtime/services/runtime-context.service.d.ts +0 -16
  119. package/runtime/services/runtime-form.service.d.ts +0 -24
  120. package/runtime/services/runtime.service.d.ts +0 -44
  121. package/runtime/services/section-helper.service.d.ts +0 -8
  122. package/runtime/services/section-scope.service.d.ts +0 -14
  123. package/runtime/services/section-store.service.d.ts +0 -11
  124. package/runtime/services/section.service.d.ts +0 -30
  125. package/runtime/types/bound-data.types.d.ts +0 -13
  126. package/runtime/types/index.d.ts +0 -2
  127. package/runtime/types/quote-states.types.d.ts +0 -6
  128. package/runtime/types/runtime.types.d.ts +0 -19
  129. package/runtime/types/script-registry.types.d.ts +0 -13
  130. package/runtime/utils/line-item.util.d.ts +0 -34
  131. package/runtime/utils/section.utils.d.ts +0 -2
  132. package/runtime/utils/sections-binder.helper.d.ts +0 -16
  133. package/src/pages/legacy-product/legacy-product.component.d.ts +0 -37
  134. package/src/pages/legacy-product/legacy-product.module.d.ts +0 -9
@@ -1,33 +0,0 @@
1
- import { DocumentTemplatesApiService } from '@veloceapps/api';
2
- import { Attachment, DocumentTemplate, QuoteDraft, TemplateAttachmentSearchRequest } from '@veloceapps/core';
3
- import { Observable } from 'rxjs';
4
- import * as i0 from "@angular/core";
5
- export declare class VlDocumentTemplatesDirective {
6
- private documentTemplatesApiService;
7
- constructor(documentTemplatesApiService: DocumentTemplatesApiService);
8
- getTemplates(tag?: string): Promise<DocumentTemplate[]>;
9
- upsertTemplate(template: DocumentTemplate, templateFile: File): Promise<DocumentTemplate>;
10
- removeTemplate(id: string): Promise<DocumentTemplate>;
11
- cloneTemplate(id: string): Promise<{
12
- clonedRecordId: string;
13
- }>;
14
- downloadTemplate(id: string): Promise<Blob>;
15
- generateDocument(template: DocumentTemplate, quoteDraft: QuoteDraft, params?: {
16
- [param: string]: string | boolean;
17
- }): Observable<any>;
18
- /**
19
- * @deprecated Use `generateDocument` instead
20
- */
21
- generateDocumentNew: (template: DocumentTemplate, quoteDraft: QuoteDraft, params?: {
22
- [param: string]: string | boolean;
23
- } | undefined) => Observable<any>;
24
- generateDocumentData(template: DocumentTemplate, quoteDraft: QuoteDraft, params?: {
25
- [param: string]: boolean;
26
- }): Observable<any>;
27
- getAttachments(searchRequest: TemplateAttachmentSearchRequest): Promise<any>;
28
- getAttachmentFile(id: string): Promise<any>;
29
- createAttachment(attachment: Attachment, file?: File): Promise<any>;
30
- removeAttachment(id: string): Promise<any>;
31
- static ɵfac: i0.ɵɵFactoryDeclaration<VlDocumentTemplatesDirective, never>;
32
- static ɵdir: i0.ɵɵDirectiveDeclaration<VlDocumentTemplatesDirective, "[vlQuoteTemplates]", ["quoteTemplateApi"], {}, {}, never, never, false, never>;
33
- }
@@ -1,14 +0,0 @@
1
- import { QuoteApiService } from '@veloceapps/api';
2
- import { QuoteDraft } from '@veloceapps/core';
3
- import { RuntimeService } from '../../services/runtime.service';
4
- import * as i0 from "@angular/core";
5
- export declare class VlQuoteDirective {
6
- private quoteApiService;
7
- private runtimeService;
8
- constructor(quoteApiService: QuoteApiService, runtimeService: RuntimeService);
9
- getQuote(quoteId: string): Promise<QuoteDraft>;
10
- upsertQuote(quoteDraft: QuoteDraft): Promise<any>;
11
- configureQuote(quoteDraft: QuoteDraft, rootLineItemId: string): void;
12
- static ɵfac: i0.ɵɵFactoryDeclaration<VlQuoteDirective, never>;
13
- static ɵdir: i0.ɵɵDirectiveDeclaration<VlQuoteDirective, "vl-quote", ["quoteApi"], {}, {}, never, never, false, never>;
14
- }
@@ -1,15 +0,0 @@
1
- import { PriceApiService, RampApiService } from '@veloceapps/api';
2
- import { LineItem } from '@veloceapps/core';
3
- import { ContextService } from '@veloceapps/sdk/core';
4
- import * as i0 from "@angular/core";
5
- export declare class VlRampDirective {
6
- private contextService;
7
- private rampApiService;
8
- private priceApiService;
9
- constructor(contextService: ContextService, rampApiService: RampApiService, priceApiService: PriceApiService);
10
- createRamp(sourceItems: string[], currentRamps: LineItem[], term: number): Promise<any>;
11
- calculateRampTermByEndDate(lineItem: LineItem, endDate: string): Promise<any>;
12
- calculateRampTermByTerm(lineItem: LineItem, term: number): Promise<any>;
13
- static ɵfac: i0.ɵɵFactoryDeclaration<VlRampDirective, never>;
14
- static ɵdir: i0.ɵɵDirectiveDeclaration<VlRampDirective, "vl-ramp", ["rampApi"], {}, {}, never, never, false, never>;
15
- }
@@ -1,25 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./components/execution-section-renderer/execution-section-renderer.component";
3
- import * as i2 from "./components/children-placeholder/children-placeholder.component";
4
- import * as i3 from "./directives/section-script.directive";
5
- import * as i4 from "./directives/velo-port.directive";
6
- import * as i5 from "./directives/velo-attribute.directive";
7
- import * as i6 from "./components/velo-multiselect/velo-multiselect.component";
8
- import * as i7 from "./components/velo-attribute/velo-attribute.component";
9
- import * as i8 from "./components/velo-port-radio/velo-port-radio.component";
10
- import * as i9 from "./components/velo-type/velo-type.component";
11
- import * as i10 from "./components/velo-port-dropdown/velo-port-dropdown.component";
12
- import * as i11 from "./components/velo-port-checkbox/velo-port-checkbox.component";
13
- import * as i12 from "./components/federated/federated.component";
14
- import * as i13 from "./components/context-provider/context-provider.component";
15
- import * as i14 from "@angular/common";
16
- import * as i15 from "@angular/forms";
17
- import * as i16 from "@veloceapps/core";
18
- import * as i17 from "@veloceapps/api";
19
- import * as i18 from "@veloceapps/components";
20
- import * as i19 from "@veloceapps/sdk/core";
21
- export declare class RuntimeExecutionModule {
22
- static ɵfac: i0.ɵɵFactoryDeclaration<RuntimeExecutionModule, never>;
23
- static ɵmod: i0.ɵɵNgModuleDeclaration<RuntimeExecutionModule, [typeof i1.ExecutionSectionRendererComponent, typeof i2.ChildrenPlaceholderComponent, typeof i3.SectionScriptDirective, typeof i4.VeloPortDirective, typeof i4.LineItemDirective, typeof i4.VeloDropdownComponent, typeof i4.VeloQuantityButtonComponent, typeof i4.VeloQuantityComponent, typeof i5.VeloAttributeDirective, typeof i6.MultiselectComponent, typeof i7.VeloAttributeComponent, typeof i8.VeloPortRadioComponent, typeof i9.VeloTypeComponent, typeof i10.VeloPortDropdownComponent, typeof i11.VeloPortCheckBoxComponent, typeof i12.FederatedComponent, typeof i2.TemplateComponent, typeof i13.ContextProviderComponent], [typeof i14.CommonModule, typeof i15.FormsModule, typeof i15.ReactiveFormsModule, typeof i16.CoreModule, typeof i17.ApiModule, typeof i18.LoaderModule, typeof i19.SdkCoreModule], [typeof i15.FormsModule, typeof i15.ReactiveFormsModule, typeof i2.ChildrenPlaceholderComponent, typeof i3.SectionScriptDirective, typeof i4.LineItemDirective, typeof i4.VeloPortDirective, typeof i5.VeloAttributeDirective, typeof i6.MultiselectComponent, typeof i7.VeloAttributeComponent, typeof i8.VeloPortRadioComponent, typeof i9.VeloTypeComponent, typeof i10.VeloPortDropdownComponent, typeof i11.VeloPortCheckBoxComponent, typeof i12.FederatedComponent, typeof i2.TemplateComponent, typeof i13.ContextProviderComponent]>;
24
- static ɵinj: i0.ɵɵInjectorDeclaration<RuntimeExecutionModule>;
25
- }
@@ -1,6 +0,0 @@
1
- export type LoadRemoteModuleOptions = {
2
- remoteEntry: string;
3
- remoteName: string;
4
- exposedModule: string;
5
- };
6
- export declare function loadRemoteModule(options: LoadRemoteModuleOptions): Promise<any>;
@@ -1,4 +0,0 @@
1
- export * from './components';
2
- export * from './runtime.module';
3
- export * from './services';
4
- export * from './types';
@@ -1,16 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./components/ui-runtime/runtime.component";
3
- import * as i2 from "./components/ui-runtime-preview/runtime-preview.component";
4
- import * as i3 from "./components/section-renderer/section-renderer.component";
5
- import * as i4 from "./components/component-preview/component-preview.component";
6
- import * as i5 from "@angular/common";
7
- import * as i6 from "@angular/forms";
8
- import * as i7 from "@veloceapps/core";
9
- import * as i8 from "@veloceapps/api";
10
- import * as i9 from "@veloceapps/components";
11
- import * as i10 from "@veloceapps/sdk/core";
12
- export declare class RuntimeModule {
13
- static ɵfac: i0.ɵɵFactoryDeclaration<RuntimeModule, never>;
14
- static ɵmod: i0.ɵɵNgModuleDeclaration<RuntimeModule, [typeof i1.RuntimeComponent, typeof i2.RuntimePreviewComponent, typeof i3.SectionRendererComponent, typeof i4.ComponentPreviewComponent], [typeof i5.CommonModule, typeof i6.FormsModule, typeof i6.ReactiveFormsModule, typeof i7.CoreModule, typeof i8.ApiModule, typeof i9.LoaderModule, typeof i10.SdkCoreModule], [typeof i6.FormsModule, typeof i6.ReactiveFormsModule, typeof i1.RuntimeComponent, typeof i2.RuntimePreviewComponent, typeof i3.SectionRendererComponent, typeof i4.ComponentPreviewComponent]>;
15
- static ɵinj: i0.ɵɵInjectorDeclaration<RuntimeModule>;
16
- }
@@ -1,15 +0,0 @@
1
- import { PriceApiService } from '@veloceapps/api';
2
- import { LineItem, PriceSummary } from '@veloceapps/core';
3
- import { ContextService, QuoteDraftService } from '@veloceapps/sdk/core';
4
- import { Observable } from 'rxjs';
5
- import * as i0 from "@angular/core";
6
- export declare class ShoppingCartService {
7
- private priceApiService;
8
- private contextService;
9
- private quoteService;
10
- constructor(priceApiService: PriceApiService, contextService: ContextService, quoteService: QuoteDraftService);
11
- setCartExternally(currentState: LineItem[]): Observable<PriceSummary>;
12
- getCurrentState(): LineItem[];
13
- static ɵfac: i0.ɵɵFactoryDeclaration<ShoppingCartService, never>;
14
- static ɵprov: i0.ɵɵInjectableDeclaration<ShoppingCartService>;
15
- }
@@ -1,15 +0,0 @@
1
- import { Observable } from 'rxjs';
2
- import * as i0 from "@angular/core";
3
- export declare class CollapsibleStateService {
4
- collapseSectionEvent: Observable<any>;
5
- private _collapsedSections;
6
- private collapseSectionSubject;
7
- constructor();
8
- toggleCollapse(sectionId: string, silently?: boolean): void;
9
- collapse(sectionId: string): void;
10
- expand(sectionId: string): void;
11
- clearState(sectionId: string): void;
12
- isCollapsedSection(sectionId: string): boolean;
13
- static ɵfac: i0.ɵɵFactoryDeclaration<CollapsibleStateService, never>;
14
- static ɵprov: i0.ɵɵInjectableDeclaration<CollapsibleStateService>;
15
- }
@@ -1,20 +0,0 @@
1
- import { ConfigurationApiService } from '@veloceapps/api';
2
- import { LineItem } from '@veloceapps/core';
3
- import { ContextService } from '@veloceapps/sdk/core';
4
- import { DialogService } from 'primeng/dynamicdialog';
5
- import { Observable } from 'rxjs';
6
- import { LegacyRuntimeContext } from '../types';
7
- import { QuoteStates } from '../types/quote-states.types';
8
- import * as i0 from "@angular/core";
9
- export declare class ConfigurationService {
10
- private configurationApiService;
11
- private contextService;
12
- private dialogService;
13
- constructor(configurationApiService: ConfigurationApiService, contextService: ContextService, dialogService: DialogService);
14
- configure(runtimeContext: LegacyRuntimeContext, states: QuoteStates, resolve?: boolean): Observable<LineItem>;
15
- private createRequest;
16
- private getDefaultLineItem;
17
- private showInactiveProductsConfirmation;
18
- static ɵfac: i0.ɵɵFactoryDeclaration<ConfigurationService, never>;
19
- static ɵprov: i0.ɵɵInjectableDeclaration<ConfigurationService>;
20
- }
@@ -1,8 +0,0 @@
1
- import { LineItem } from '@veloceapps/core';
2
- import * as i0 from "@angular/core";
3
- export declare class CurrentStateService {
4
- currentState: LineItem[];
5
- update(state: LineItem[]): void;
6
- static ɵfac: i0.ɵɵFactoryDeclaration<CurrentStateService, never>;
7
- static ɵprov: i0.ɵɵInjectableDeclaration<CurrentStateService>;
8
- }
@@ -1,20 +0,0 @@
1
- import { FormGroup } from '@angular/forms';
2
- import { Observable } from 'rxjs';
3
- import { UpdateData } from '../types';
4
- import { ScriptRegistry } from '../types/script-registry.types';
5
- import * as i0 from "@angular/core";
6
- export declare class FormScopeService {
7
- formSubmitEvent: Observable<UpdateData>;
8
- scriptRegistry: ScriptRegistry;
9
- scriptSessionScope: {
10
- [index: string]: any;
11
- };
12
- private formSubmitSubject;
13
- private _form;
14
- constructor();
15
- get form(): FormGroup;
16
- set form(value: FormGroup);
17
- publishFormUpdate(value: UpdateData): void;
18
- static ɵfac: i0.ɵɵFactoryDeclaration<FormScopeService, never>;
19
- static ɵprov: i0.ɵɵInjectableDeclaration<FormScopeService>;
20
- }
@@ -1,3 +0,0 @@
1
- export { CurrentStateService } from './current-state.service';
2
- export { RuntimeContextService } from './runtime-context.service';
3
- export { RuntimeService } from './runtime.service';
@@ -1,14 +0,0 @@
1
- import { ProductModelApiService } from '@veloceapps/api';
2
- import { ProductModelsContainer } from '@veloceapps/core';
3
- import { Observable } from 'rxjs';
4
- import * as i0 from "@angular/core";
5
- export declare class ProductModelCacheService {
6
- private productModelApiService;
7
- constructor(productModelApiService: ProductModelApiService);
8
- private cachedModel;
9
- getProductModel(currentModelId: string, version?: string): Observable<ProductModelsContainer>;
10
- getCachedModel(): Observable<ProductModelsContainer>;
11
- clearCache(): void;
12
- static ɵfac: i0.ɵɵFactoryDeclaration<ProductModelCacheService, never>;
13
- static ɵprov: i0.ɵɵInjectableDeclaration<ProductModelCacheService>;
14
- }
@@ -1,16 +0,0 @@
1
- import { ConfigurationApiService } from '@veloceapps/api';
2
- import { ContextService } from '@veloceapps/sdk/core';
3
- import { MessageService } from 'primeng/api';
4
- import { Observable } from 'rxjs';
5
- import { LegacyRuntimeContext } from '../types';
6
- import * as i0 from "@angular/core";
7
- export declare class RuntimeContextService {
8
- private configurationApiService;
9
- private messageService;
10
- private contextService;
11
- constructor(configurationApiService: ConfigurationApiService, messageService: MessageService, contextService: ContextService);
12
- getRuntimeContext(productId: string, offeringId?: string): Observable<LegacyRuntimeContext>;
13
- private getUIDefinition;
14
- static ɵfac: i0.ɵɵFactoryDeclaration<RuntimeContextService, never>;
15
- static ɵprov: i0.ɵɵInjectableDeclaration<RuntimeContextService>;
16
- }
@@ -1,24 +0,0 @@
1
- import { FormGroup } from '@angular/forms';
2
- import { LineItem, Section } from '@veloceapps/core';
3
- import * as i0 from "@angular/core";
4
- export declare class RuntimeFormService {
5
- sections: Section[];
6
- solutionLineItem?: LineItem;
7
- initForm(sections: Section[], solutionLineItem: LineItem): FormGroup;
8
- private populateSectionValue;
9
- private populateSectionPrice;
10
- private populateFormControls;
11
- private createFormControl;
12
- private createQtyControl;
13
- private getMaxAllowed;
14
- private getFormControlValidators;
15
- private getQuantityValidator;
16
- static ɵfac: i0.ɵɵFactoryDeclaration<RuntimeFormService, never>;
17
- static ɵprov: i0.ɵɵInjectableDeclaration<RuntimeFormService>;
18
- }
19
- export declare class FormServiceUtils {
20
- static isPortSection(section: Section): boolean;
21
- static isTypeSection(section: Section): boolean;
22
- static isAttributeSection(section: Section): boolean;
23
- static findParent(parentId: string, lineItems: LineItem[]): LineItem | undefined;
24
- }
@@ -1,44 +0,0 @@
1
- import { HttpErrorResponse } from '@angular/common/http';
2
- import { LegacyUIDefinition, LineItem } from '@veloceapps/core';
3
- import { ContextService } from '@veloceapps/sdk/core';
4
- import { MessageService } from 'primeng/api';
5
- import { LegacyRuntimeContext } from '../types';
6
- import { QuoteStates } from '../types/quote-states.types';
7
- import { ConfigurationService } from './configuration.service';
8
- import * as i0 from "@angular/core";
9
- export declare class RuntimeService {
10
- private configurationService;
11
- private contextService;
12
- private messageService;
13
- private runtimeContext;
14
- private solutionReadySubject;
15
- onSolutionReadyEvent: import("rxjs").Observable<LineItem>;
16
- private solutionUpdateStartedSubject;
17
- onSolutionUpdateStartedEvent: import("rxjs").Observable<void>;
18
- private solutionUpdatedSubject;
19
- onSolutionUpdatedEvent: import("rxjs").Observable<LineItem | HttpErrorResponse>;
20
- private solutionProcessedSubject;
21
- onSolutionProcessed: import("rxjs").Observable<LineItem>;
22
- private solutionStopSubject;
23
- onSolutionStopEvent: import("rxjs").Observable<LineItem>;
24
- private solutionCancelSubject;
25
- onSolutionCancelEvent: import("rxjs").Observable<void>;
26
- private uiRefreshSubject;
27
- onUIRefreshEvent: import("rxjs").Observable<void>;
28
- constructor(configurationService: ConfigurationService, contextService: ContextService, messageService: MessageService);
29
- private displayErrorMessage;
30
- startRuntime(context: LegacyRuntimeContext, states: QuoteStates, resolve?: boolean): void;
31
- updateRuntime(states: QuoteStates, configurationContextProperties?: {
32
- [index: string]: string;
33
- }): void;
34
- stopRuntime(solutionLineItem: LineItem): void;
35
- cancelRuntime(): void;
36
- setRuntimeContext(runtimeContext: LegacyRuntimeContext): void;
37
- getRuntimeContext(): LegacyRuntimeContext | undefined;
38
- solutionProcessed(lineItem: LineItem): void;
39
- refreshUI(uiDefinition: LegacyUIDefinition): void;
40
- private updateRuntimeContext;
41
- private setRuntimeStep;
42
- static ɵfac: i0.ɵɵFactoryDeclaration<RuntimeService, never>;
43
- static ɵprov: i0.ɵɵInjectableDeclaration<RuntimeService>;
44
- }
@@ -1,8 +0,0 @@
1
- import { Section } from '@veloceapps/core';
2
- import * as i0 from "@angular/core";
3
- export declare class SectionHelperService {
4
- static findSectionForValue(section: Section, valueOption: string): Section | undefined;
5
- getTotalPrices(section: Section): Map<string, number>;
6
- static ɵfac: i0.ɵɵFactoryDeclaration<SectionHelperService, never>;
7
- static ɵprov: i0.ɵɵInjectableDeclaration<SectionHelperService>;
8
- }
@@ -1,14 +0,0 @@
1
- import { TemplateRef } from '@angular/core';
2
- import { Section } from '@veloceapps/core';
3
- import { BehaviorSubject } from 'rxjs';
4
- import * as i0 from "@angular/core";
5
- export declare class SectionScopeService {
6
- get section(): Section;
7
- set section(value: Section);
8
- indent: number;
9
- private _section;
10
- templates: BehaviorSubject<TemplateRef<any>[]>;
11
- private getIndent;
12
- static ɵfac: i0.ɵɵFactoryDeclaration<SectionScopeService, never>;
13
- static ɵprov: i0.ɵɵInjectableDeclaration<SectionScopeService>;
14
- }
@@ -1,11 +0,0 @@
1
- import { ComponentFactory } from '@angular/core';
2
- import { Section } from '@veloceapps/core';
3
- import * as i0 from "@angular/core";
4
- export declare class SectionStoreService {
5
- private _componentFactories;
6
- set componentFactories(data: ComponentFactory<any>[]);
7
- get componentFactories(): ComponentFactory<any>[];
8
- getComponentFactory(section: Section): ComponentFactory<any> | undefined;
9
- static ɵfac: i0.ɵɵFactoryDeclaration<SectionStoreService, never>;
10
- static ɵprov: i0.ɵɵInjectableDeclaration<SectionStoreService>;
11
- }
@@ -1,30 +0,0 @@
1
- import '@angular/compiler';
2
- import { Compiler, NgModuleRef, QueryList, TemplateRef } from '@angular/core';
3
- import { FormGroup } from '@angular/forms';
4
- import { Section } from '@veloceapps/core';
5
- import { SectionStoreService } from './section-store.service';
6
- import * as i0 from "@angular/core";
7
- export declare class BaseSectionComponent {
8
- form: FormGroup;
9
- section: Section;
10
- protected templates: QueryList<TemplateRef<any>>;
11
- static ɵfac: i0.ɵɵFactoryDeclaration<BaseSectionComponent, never>;
12
- static ɵcmp: i0.ɵɵComponentDeclaration<BaseSectionComponent, "ng-component", never, { "form": "form"; "section": "section"; }, {}, never, never, false, never>;
13
- }
14
- export declare class SectionsService {
15
- private compiler;
16
- private m;
17
- private sectionStore;
18
- private moduleType;
19
- private moduleInstance;
20
- constructor(compiler: Compiler, m: NgModuleRef<any>, sectionStore: SectionStoreService);
21
- compileModule(sections: Section[], isViewEncapsulated?: boolean): void;
22
- destroy(): void;
23
- private getDecoratedComponents;
24
- private getModuleType;
25
- private applySelectorField;
26
- private getUniqueSections;
27
- private getTranspiledTemplate;
28
- static ɵfac: i0.ɵɵFactoryDeclaration<SectionsService, never>;
29
- static ɵprov: i0.ɵɵInjectableDeclaration<SectionsService>;
30
- }
@@ -1,13 +0,0 @@
1
- import { ProductModelAttribute, ProductPort, ProductType, SectionPath } from '@veloceapps/core';
2
- export declare enum BoundDataType {
3
- TYPE = 0,
4
- ATTRIBUTE = 1,
5
- PORT = 2
6
- }
7
- export interface BoundData {
8
- name: string;
9
- entity: ProductType | ProductModelAttribute | ProductPort;
10
- entityType: string;
11
- host?: string;
12
- path: SectionPath;
13
- }
@@ -1,2 +0,0 @@
1
- export * from './quote-states.types';
2
- export * from './runtime.types';
@@ -1,6 +0,0 @@
1
- import { LineItem } from '@veloceapps/core';
2
- export interface QuoteStates {
3
- configurableRamp?: LineItem;
4
- currentState?: LineItem[];
5
- asset?: LineItem;
6
- }
@@ -1,19 +0,0 @@
1
- import { LegacyUIDefinition, LineItem } from '@veloceapps/core';
2
- import { RuntimeContext } from '@veloceapps/sdk/core';
3
- import { Dictionary } from 'lodash';
4
- export interface SolutionReadyAware {
5
- onSolutionReady(lineItem: LineItem): void;
6
- }
7
- export interface SolutionUpdatedAware {
8
- onSolutionUpdated(lineItem: LineItem): void;
9
- }
10
- export interface UpdateData {
11
- id: string;
12
- action: string;
13
- valueOption?: string;
14
- selectedValueOptions?: string[];
15
- options?: Dictionary<any>;
16
- }
17
- export interface LegacyRuntimeContext extends Omit<RuntimeContext, 'uiDefinition'> {
18
- uiDefinition?: LegacyUIDefinition;
19
- }
@@ -1,13 +0,0 @@
1
- export declare class ScriptRegistry {
2
- scope: Map<string, any>;
3
- private store;
4
- constructor();
5
- exists(scriptId: string): boolean;
6
- isRegistered(scriptId: string, sectionId: string): boolean;
7
- doRegister(scriptId: string, sectionId: string): void;
8
- unRegister(scriptId: string, sectionId: string): void;
9
- hasGlobalForScript(globalId: string): boolean;
10
- getGlobalForScript(globalId: string): any;
11
- setGlobalForScript(globalId: string, globalVariable: any): void;
12
- removeGlobalForScript(globalId: string): void;
13
- }
@@ -1,34 +0,0 @@
1
- import { LineItem, RuntimeModel, SectionPath } from '@veloceapps/core';
2
- export declare class LineItemPath {
3
- path: string;
4
- private _relativePath;
5
- private _relativeAbstractPath;
6
- private _abstractPath;
7
- set relativePath(relativePath: string);
8
- get relativePath(): string;
9
- set abstractPath(abstractPath: string);
10
- get abstractPath(): string;
11
- set relativeAbstractPath(relativeAbstractPath: string);
12
- constructor(path: string);
13
- isEqualTo(sectionPath: SectionPath): boolean;
14
- }
15
- export declare class LineItemUtil {
16
- static removeDeletedItems(original: LineItem): LineItem;
17
- static replaceLineItemKeys(rootLineItem: LineItem): void;
18
- static enrichPricingInfo(source: LineItem, pricingDto?: LineItem): LineItem;
19
- static getLineItemPath(lineItem: LineItem, rootLineItem: LineItem): LineItemPath;
20
- static findById(parentId: string, lineItems: LineItem[]): LineItem | undefined;
21
- static countAttributeValues(scale: number, attributeDomain: any[]): number;
22
- static precision(scale: number): number;
23
- static splitDomainToValues(scale: number, attributeDomain: any[]): string[];
24
- static splitIntervalToValues(precision: number, interval: any): string[];
25
- static findLineItemsByPath(runtimeModel: RuntimeModel, lineItem: LineItem, path: SectionPath): LineItem[];
26
- static findLineItemChildren(runtimeModel: RuntimeModel, lineItems: LineItem[], portName: string, typeName: string): LineItem[];
27
- static findLineItemsByType(runtimeModel: RuntimeModel, lineItem: LineItem, typeName: string): LineItem[];
28
- static findLineItemForValue(model: LineItem, valueOption: string): LineItem | undefined;
29
- static create(product: any, qty?: number): LineItem;
30
- static upsert(value: LineItem, collection: LineItem[]): void;
31
- static compareSortOrder(a: LineItem, b: LineItem): number;
32
- static sort(lineItems: LineItem[]): void;
33
- private static compareProductName;
34
- }
@@ -1,2 +0,0 @@
1
- import { Section } from '@veloceapps/core';
2
- export declare const getSectionTree: (src: Section[]) => Section[];
@@ -1,16 +0,0 @@
1
- import { LineItem, RuntimeModel, Section } from '@veloceapps/core';
2
- export declare class SectionsBinderHelper {
3
- static setLineItemsPath(runtimeModel: RuntimeModel, rootLineItem: LineItem, sections: Section[], sourceSections: Section[], filterFn: any, pricingEnabled: boolean): Section[];
4
- static isAddAllowed(model: LineItem, portName: string, quantityToAdd?: number): boolean;
5
- static isRemoveAllowed(model: LineItem, portName: string, quantityToRemove?: number): boolean;
6
- static getMaxAllowed(lineItem: LineItem, portName: string): number;
7
- static getQuantityGroupByValue(model: LineItem, portName: string): {
8
- [index: string]: number;
9
- };
10
- private static bindMatchingLineItems;
11
- private static bindLineItem;
12
- private static doClone;
13
- private static getQuantity;
14
- private static getPortMax;
15
- private static getPortMin;
16
- }
@@ -1,37 +0,0 @@
1
- import { OnDestroy, OnInit } from '@angular/core';
2
- import { ActivatedRoute } from '@angular/router';
3
- import { QuoteApiService } from '@veloceapps/api';
4
- import { LineItem } from '@veloceapps/core';
5
- import { ContextService, QuoteDraftService } from '@veloceapps/sdk/core';
6
- import { CurrentStateService, RuntimeContextService, RuntimeService, SolutionReadyAware, SolutionUpdatedAware } from '@veloceapps/sdk/runtime';
7
- import { FlowCustomization } from '../../types';
8
- import * as i0 from "@angular/core";
9
- export declare class LegacyProductComponent implements OnInit, OnDestroy, SolutionUpdatedAware, SolutionReadyAware {
10
- private route;
11
- private quoteDraftService;
12
- private quoteApiService;
13
- private contextService;
14
- private runtimeContextService;
15
- private runtimeService;
16
- private currentStateService;
17
- private customizationService?;
18
- private destroyed$;
19
- private assets?;
20
- constructor(route: ActivatedRoute, quoteDraftService: QuoteDraftService, quoteApiService: QuoteApiService, contextService: ContextService, runtimeContextService: RuntimeContextService, runtimeService: RuntimeService, currentStateService: CurrentStateService, customizationService?: FlowCustomization | undefined);
21
- ngOnInit(): void;
22
- ngOnDestroy(): void;
23
- onSolutionReady(lineItem: LineItem): void;
24
- onSolutionCancel(): void;
25
- onSolutionUpdated(lineItem: LineItem): void;
26
- onSolutionStop(lineItem: LineItem): void;
27
- private init;
28
- private getLineItemId;
29
- private configure;
30
- private reConfigure;
31
- private getAsset;
32
- private startRuntime;
33
- private customizeContext;
34
- private getRuntimeContext;
35
- static ɵfac: i0.ɵɵFactoryDeclaration<LegacyProductComponent, [null, null, null, null, null, null, null, { optional: true; }]>;
36
- static ɵcmp: i0.ɵɵComponentDeclaration<LegacyProductComponent, "ng-component", never, {}, {}, never, never, false, never>;
37
- }
@@ -1,9 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./legacy-product.component";
3
- import * as i2 from "@angular/common";
4
- import * as i3 from "@veloceapps/sdk/runtime";
5
- export declare class LegacyProductModule {
6
- static ɵfac: i0.ɵɵFactoryDeclaration<LegacyProductModule, never>;
7
- static ɵmod: i0.ɵɵNgModuleDeclaration<LegacyProductModule, [typeof i1.LegacyProductComponent], [typeof i2.CommonModule, typeof i3.RuntimeModule], [typeof i1.LegacyProductComponent]>;
8
- static ɵinj: i0.ɵɵInjectorDeclaration<LegacyProductModule>;
9
- }