@veloceapps/sdk 8.0.0-78 → 8.0.0-79

Sign up to get free protection for your applications and to get access to all the features.
Files changed (127) hide show
  1. package/README.md +0 -1
  2. package/esm2020/core/modules/configuration/services/configuration-runtime.service.mjs +5 -5
  3. package/esm2020/core/modules/configuration/services/configuration.service.mjs +3 -3
  4. package/esm2020/core/modules/configuration/services/runtime-context.service.mjs +6 -6
  5. package/esm2020/src/flow-routing.module.mjs +1 -18
  6. package/esm2020/src/pages/product/product.component.mjs +2 -3
  7. package/esm2020/src/pages/remote/remote.component.mjs +5 -6
  8. package/fesm2015/veloceapps-sdk-core.mjs +16 -15
  9. package/fesm2015/veloceapps-sdk-core.mjs.map +1 -1
  10. package/fesm2015/veloceapps-sdk.mjs +8 -160
  11. package/fesm2015/veloceapps-sdk.mjs.map +1 -1
  12. package/fesm2020/veloceapps-sdk-core.mjs +9 -9
  13. package/fesm2020/veloceapps-sdk-core.mjs.map +1 -1
  14. package/fesm2020/veloceapps-sdk.mjs +6 -161
  15. package/fesm2020/veloceapps-sdk.mjs.map +1 -1
  16. package/package.json +1 -9
  17. package/src/flow-routing.module.d.ts +6 -7
  18. package/esm2020/runtime/components/component-preview/component-preview.component.mjs +0 -125
  19. package/esm2020/runtime/components/index.mjs +0 -5
  20. package/esm2020/runtime/components/section-renderer/section-renderer.component.mjs +0 -67
  21. package/esm2020/runtime/components/ui-runtime/runtime.component.mjs +0 -440
  22. package/esm2020/runtime/components/ui-runtime-preview/runtime-preview.component.mjs +0 -108
  23. package/esm2020/runtime/execution/components/children-placeholder/children-placeholder.component.mjs +0 -60
  24. package/esm2020/runtime/execution/components/context-provider/context-provider.component.mjs +0 -39
  25. package/esm2020/runtime/execution/components/execution-section-renderer/execution-section-renderer.component.mjs +0 -67
  26. package/esm2020/runtime/execution/components/federated/federated.component.mjs +0 -74
  27. package/esm2020/runtime/execution/components/velo-attribute/velo-attribute.component.mjs +0 -60
  28. package/esm2020/runtime/execution/components/velo-multiselect/velo-multiselect.component.mjs +0 -130
  29. package/esm2020/runtime/execution/components/velo-port-checkbox/velo-port-checkbox.component.mjs +0 -72
  30. package/esm2020/runtime/execution/components/velo-port-dropdown/velo-port-dropdown.component.mjs +0 -97
  31. package/esm2020/runtime/execution/components/velo-port-radio/velo-port-radio.component.mjs +0 -142
  32. package/esm2020/runtime/execution/components/velo-type/velo-type.component.mjs +0 -119
  33. package/esm2020/runtime/execution/directives/section-script.directive.mjs +0 -247
  34. package/esm2020/runtime/execution/directives/sf-query.directive.mjs +0 -35
  35. package/esm2020/runtime/execution/directives/velo-attribute.directive.mjs +0 -88
  36. package/esm2020/runtime/execution/directives/velo-port.directive.mjs +0 -376
  37. package/esm2020/runtime/execution/directives/vl-approval.directive.mjs +0 -23
  38. package/esm2020/runtime/execution/directives/vl-document-attachments.directive.mjs +0 -36
  39. package/esm2020/runtime/execution/directives/vl-document-templates.directive.mjs +0 -60
  40. package/esm2020/runtime/execution/directives/vl-quote.directive.mjs +0 -42
  41. package/esm2020/runtime/execution/directives/vl-ramp.directive.mjs +0 -55
  42. package/esm2020/runtime/execution/runtime-execution.module.mjs +0 -133
  43. package/esm2020/runtime/execution/utils/federated.util.mjs +0 -32
  44. package/esm2020/runtime/index.mjs +0 -5
  45. package/esm2020/runtime/runtime.module.mjs +0 -74
  46. package/esm2020/runtime/services/cart.service.mjs +0 -29
  47. package/esm2020/runtime/services/collapsible-state.service.mjs +0 -34
  48. package/esm2020/runtime/services/configuration.service.mjs +0 -119
  49. package/esm2020/runtime/services/current-state.service.mjs +0 -17
  50. package/esm2020/runtime/services/form-scope.service.mjs +0 -30
  51. package/esm2020/runtime/services/index.mjs +0 -4
  52. package/esm2020/runtime/services/product-model-cache.service.mjs +0 -31
  53. package/esm2020/runtime/services/runtime-context.service.mjs +0 -60
  54. package/esm2020/runtime/services/runtime-form.service.mjs +0 -219
  55. package/esm2020/runtime/services/runtime.service.mjs +0 -115
  56. package/esm2020/runtime/services/section-helper.service.mjs +0 -27
  57. package/esm2020/runtime/services/section-scope.service.mjs +0 -36
  58. package/esm2020/runtime/services/section-store.service.mjs +0 -22
  59. package/esm2020/runtime/services/section.service.mjs +0 -117
  60. package/esm2020/runtime/types/bound-data.types.mjs +0 -7
  61. package/esm2020/runtime/types/index.mjs +0 -3
  62. package/esm2020/runtime/types/quote-states.types.mjs +0 -2
  63. package/esm2020/runtime/types/runtime.types.mjs +0 -2
  64. package/esm2020/runtime/types/script-registry.types.mjs +0 -51
  65. package/esm2020/runtime/utils/line-item.util.mjs +0 -270
  66. package/esm2020/runtime/utils/section.utils.mjs +0 -26
  67. package/esm2020/runtime/utils/sections-binder.helper.mjs +0 -105
  68. package/esm2020/runtime/veloceapps-sdk-runtime.mjs +0 -5
  69. package/esm2020/src/pages/legacy-product/legacy-product.component.mjs +0 -137
  70. package/esm2020/src/pages/legacy-product/legacy-product.module.mjs +0 -19
  71. package/fesm2015/veloceapps-sdk-runtime.mjs +0 -3770
  72. package/fesm2015/veloceapps-sdk-runtime.mjs.map +0 -1
  73. package/fesm2020/veloceapps-sdk-runtime.mjs +0 -3767
  74. package/fesm2020/veloceapps-sdk-runtime.mjs.map +0 -1
  75. package/runtime/README.md +0 -5
  76. package/runtime/components/component-preview/component-preview.component.d.ts +0 -27
  77. package/runtime/components/index.d.ts +0 -4
  78. package/runtime/components/section-renderer/section-renderer.component.d.ts +0 -25
  79. package/runtime/components/ui-runtime/runtime.component.d.ts +0 -53
  80. package/runtime/components/ui-runtime-preview/runtime-preview.component.d.ts +0 -27
  81. package/runtime/execution/components/children-placeholder/children-placeholder.component.d.ts +0 -30
  82. package/runtime/execution/components/context-provider/context-provider.component.d.ts +0 -14
  83. package/runtime/execution/components/execution-section-renderer/execution-section-renderer.component.d.ts +0 -25
  84. package/runtime/execution/components/federated/federated.component.d.ts +0 -36
  85. package/runtime/execution/components/velo-attribute/velo-attribute.component.d.ts +0 -19
  86. package/runtime/execution/components/velo-multiselect/velo-multiselect.component.d.ts +0 -35
  87. package/runtime/execution/components/velo-port-checkbox/velo-port-checkbox.component.d.ts +0 -22
  88. package/runtime/execution/components/velo-port-dropdown/velo-port-dropdown.component.d.ts +0 -22
  89. package/runtime/execution/components/velo-port-radio/velo-port-radio.component.d.ts +0 -28
  90. package/runtime/execution/components/velo-type/velo-type.component.d.ts +0 -31
  91. package/runtime/execution/directives/section-script.directive.d.ts +0 -59
  92. package/runtime/execution/directives/sf-query.directive.d.ts +0 -15
  93. package/runtime/execution/directives/velo-attribute.directive.d.ts +0 -26
  94. package/runtime/execution/directives/velo-port.directive.d.ts +0 -74
  95. package/runtime/execution/directives/vl-approval.directive.d.ts +0 -10
  96. package/runtime/execution/directives/vl-document-attachments.directive.d.ts +0 -15
  97. package/runtime/execution/directives/vl-document-templates.directive.d.ts +0 -33
  98. package/runtime/execution/directives/vl-quote.directive.d.ts +0 -14
  99. package/runtime/execution/directives/vl-ramp.directive.d.ts +0 -15
  100. package/runtime/execution/runtime-execution.module.d.ts +0 -25
  101. package/runtime/execution/utils/federated.util.d.ts +0 -6
  102. package/runtime/index.d.ts +0 -4
  103. package/runtime/runtime.module.d.ts +0 -16
  104. package/runtime/services/cart.service.d.ts +0 -15
  105. package/runtime/services/collapsible-state.service.d.ts +0 -15
  106. package/runtime/services/configuration.service.d.ts +0 -20
  107. package/runtime/services/current-state.service.d.ts +0 -8
  108. package/runtime/services/form-scope.service.d.ts +0 -20
  109. package/runtime/services/index.d.ts +0 -3
  110. package/runtime/services/product-model-cache.service.d.ts +0 -14
  111. package/runtime/services/runtime-context.service.d.ts +0 -16
  112. package/runtime/services/runtime-form.service.d.ts +0 -24
  113. package/runtime/services/runtime.service.d.ts +0 -44
  114. package/runtime/services/section-helper.service.d.ts +0 -8
  115. package/runtime/services/section-scope.service.d.ts +0 -14
  116. package/runtime/services/section-store.service.d.ts +0 -11
  117. package/runtime/services/section.service.d.ts +0 -30
  118. package/runtime/types/bound-data.types.d.ts +0 -13
  119. package/runtime/types/index.d.ts +0 -2
  120. package/runtime/types/quote-states.types.d.ts +0 -6
  121. package/runtime/types/runtime.types.d.ts +0 -19
  122. package/runtime/types/script-registry.types.d.ts +0 -13
  123. package/runtime/utils/line-item.util.d.ts +0 -34
  124. package/runtime/utils/section.utils.d.ts +0 -2
  125. package/runtime/utils/sections-binder.helper.d.ts +0 -16
  126. package/src/pages/legacy-product/legacy-product.component.d.ts +0 -37
  127. package/src/pages/legacy-product/legacy-product.module.d.ts +0 -9
package/runtime/README.md DELETED
@@ -1,5 +0,0 @@
1
- # `@veloceapps/sdk/runtime`
2
-
3
- [← Back to SDK](../)
4
-
5
- Legacy approach for building configuration UI
@@ -1,27 +0,0 @@
1
- import { ChangeDetectorRef, OnChanges, SimpleChanges } from '@angular/core';
2
- import { FormGroup } from '@angular/forms';
3
- import { ComponentStoryPreview, Section } from '@veloceapps/core';
4
- import { FormScopeService } from '../../services/form-scope.service';
5
- import { RuntimeFormService } from '../../services/runtime-form.service';
6
- import { RuntimeService } from '../../services/runtime.service';
7
- import { SectionsService } from '../../services/section.service';
8
- import * as i0 from "@angular/core";
9
- export declare class ComponentPreviewComponent implements OnChanges {
10
- private sectionsService;
11
- private runtimeFormService;
12
- private formScope;
13
- private runtimeService;
14
- private cdr;
15
- data?: ComponentStoryPreview;
16
- form: FormGroup<{}>;
17
- section?: Section;
18
- showPreview: boolean;
19
- isNoPreviewAvailable: boolean;
20
- isPreviewFailed: boolean;
21
- constructor(sectionsService: SectionsService, runtimeFormService: RuntimeFormService, formScope: FormScopeService, runtimeService: RuntimeService, cdr: ChangeDetectorRef);
22
- ngOnChanges(changes: SimpleChanges): void;
23
- runPreview(data: ComponentStoryPreview): void;
24
- createRuntimeContext(section: Section): void;
25
- static ɵfac: i0.ɵɵFactoryDeclaration<ComponentPreviewComponent, never>;
26
- static ɵcmp: i0.ɵɵComponentDeclaration<ComponentPreviewComponent, "vl-component-preview", never, { "data": "data"; }, {}, never, never, false, never>;
27
- }
@@ -1,4 +0,0 @@
1
- export { ComponentPreviewComponent } from './component-preview/component-preview.component';
2
- export { SectionRendererComponent } from './section-renderer/section-renderer.component';
3
- export { RuntimePreviewComponent } from './ui-runtime-preview/runtime-preview.component';
4
- export { RuntimeComponent } from './ui-runtime/runtime.component';
@@ -1,25 +0,0 @@
1
- import { AfterViewInit, Injector, NgModuleRef, OnDestroy, OnInit, ViewContainerRef } from '@angular/core';
2
- import { FormGroup } from '@angular/forms';
3
- import { Section } from '@veloceapps/core';
4
- import { SectionScopeService } from '../../services/section-scope.service';
5
- import { SectionStoreService } from '../../services/section-store.service';
6
- import * as i0 from "@angular/core";
7
- export declare class SectionRendererComponent implements OnInit, AfterViewInit, OnDestroy {
8
- private _injector;
9
- private _m;
10
- private sectionScope;
11
- private sectionStore;
12
- private _section;
13
- set section(value: Section);
14
- get section(): Section;
15
- form: FormGroup;
16
- constructor(_injector: Injector, _m: NgModuleRef<any>, sectionScope: SectionScopeService, sectionStore: SectionStoreService);
17
- container: ViewContainerRef;
18
- private componentRef;
19
- ngOnInit(): void;
20
- ngAfterViewInit(): void;
21
- ngOnDestroy(): void;
22
- renderSection(): void;
23
- static ɵfac: i0.ɵɵFactoryDeclaration<SectionRendererComponent, never>;
24
- static ɵcmp: i0.ɵɵComponentDeclaration<SectionRendererComponent, "vl-section-renderer", never, { "section": "section"; "form": "form"; }, {}, never, never, false, never>;
25
- }
@@ -1,53 +0,0 @@
1
- import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
2
- import { FormGroup } from '@angular/forms';
3
- import { LineItem, OrderByPipe, SearchFilterPipe, Section, UITab } from '@veloceapps/core';
4
- import { ContextService } from '@veloceapps/sdk/core';
5
- import { MessageService } from 'primeng/api';
6
- import { CollapsibleStateService } from '../../services/collapsible-state.service';
7
- import { FormScopeService } from '../../services/form-scope.service';
8
- import { RuntimeFormService } from '../../services/runtime-form.service';
9
- import { RuntimeService } from '../../services/runtime.service';
10
- import { SectionsService } from '../../services/section.service';
11
- import { LegacyRuntimeContext, SolutionReadyAware } from '../../types';
12
- import * as i0 from "@angular/core";
13
- export declare class RuntimeComponent implements OnInit, OnDestroy, SolutionReadyAware {
14
- private sectionsService;
15
- private formScope;
16
- private collapsibleState;
17
- private formService;
18
- private runtimeService;
19
- private messageService;
20
- private contextService;
21
- private orderByPipe;
22
- private searchFilterPipe;
23
- private cdr;
24
- readonly messageBucketId = "ui.runtime";
25
- sortedSections: Section[];
26
- staticSections: Section[];
27
- runtimeContext: LegacyRuntimeContext;
28
- solutionLineItem: LineItem;
29
- form: FormGroup;
30
- activeUITab?: UITab;
31
- solutionIsReady: boolean;
32
- private readonly unsubscribe;
33
- private readonly solutionUpdated;
34
- constructor(sectionsService: SectionsService, formScope: FormScopeService, collapsibleState: CollapsibleStateService, formService: RuntimeFormService, runtimeService: RuntimeService, messageService: MessageService, contextService: ContextService, orderByPipe: OrderByPipe, searchFilterPipe: SearchFilterPipe, cdr: ChangeDetectorRef);
35
- private adjustPrice;
36
- ngOnInit(): void;
37
- onSolutionReady(lineItem: LineItem): void;
38
- private handleSolutionUpdate;
39
- private handleSolutionFailedUpdate;
40
- private updateCardinalityVariable;
41
- private createLineItem;
42
- ngOnDestroy(): void;
43
- private startRuntime;
44
- private updateRuntime;
45
- addToCart(): void;
46
- processSolution(isUpdate?: boolean, isError?: boolean): void;
47
- hideModal(): void;
48
- private updateLineItemsSectionPath;
49
- private filterAndSort;
50
- private findSection;
51
- static ɵfac: i0.ɵɵFactoryDeclaration<RuntimeComponent, never>;
52
- static ɵcmp: i0.ɵɵComponentDeclaration<RuntimeComponent, "vl-runtime", never, {}, { "solutionUpdated": "solutionUpdated"; }, never, never, false, never>;
53
- }
@@ -1,27 +0,0 @@
1
- import { OnDestroy, OnInit } from '@angular/core';
2
- import { ConfigurationApiService } from '@veloceapps/api';
3
- import { LegacyUIDefinition, LineItem } from '@veloceapps/core';
4
- import { ContextService } from '@veloceapps/sdk/core';
5
- import { ProductModelCacheService } from '../../services/product-model-cache.service';
6
- import { RuntimeService } from '../../services/runtime.service';
7
- import * as i0 from "@angular/core";
8
- export declare class RuntimePreviewComponent implements OnInit, OnDestroy {
9
- private runtimeService;
10
- private modelCacheService;
11
- private configurationApiService;
12
- private contextService;
13
- modelId?: string;
14
- set uiDefinition(value: LegacyUIDefinition);
15
- private _uiDefinition?;
16
- private initialisedUiDefinition?;
17
- private productModelContainer?;
18
- private destroy$;
19
- constructor(runtimeService: RuntimeService, modelCacheService: ProductModelCacheService, configurationApiService: ConfigurationApiService, contextService: ContextService);
20
- ngOnInit(): void;
21
- ngOnDestroy(): void;
22
- initDefinition(uiDefinition: LegacyUIDefinition): void;
23
- onSolutionUpdated(lineItem: LineItem): void;
24
- private launchRuntime;
25
- static ɵfac: i0.ɵɵFactoryDeclaration<RuntimePreviewComponent, never>;
26
- static ɵcmp: i0.ɵɵComponentDeclaration<RuntimePreviewComponent, "vl-runtime-preview", never, { "modelId": "modelId"; "uiDefinition": "uiDefinition"; }, {}, never, never, false, never>;
27
- }
@@ -1,30 +0,0 @@
1
- import { OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
2
- import { FormGroup } from '@angular/forms';
3
- import { Section } from '@veloceapps/core';
4
- import { Subscription } from 'rxjs';
5
- import { CollapsibleStateService } from '../../../services/collapsible-state.service';
6
- import { FormScopeService } from '../../../services/form-scope.service';
7
- import { SectionScopeService } from '../../../services/section-scope.service';
8
- import * as i0 from "@angular/core";
9
- export declare class ChildrenPlaceholderComponent implements OnInit, OnChanges, OnDestroy {
10
- private sectionScope;
11
- private formScope;
12
- private collapsibleState;
13
- children?: Section[];
14
- _children: Section[];
15
- section: Section;
16
- form: FormGroup;
17
- sub: Subscription;
18
- collapsed: boolean;
19
- constructor(sectionScope: SectionScopeService, formScope: FormScopeService, collapsibleState: CollapsibleStateService);
20
- ngOnInit(): void;
21
- ngOnChanges(changes: SimpleChanges): void;
22
- setChildren(): void;
23
- ngOnDestroy(): void;
24
- static ɵfac: i0.ɵɵFactoryDeclaration<ChildrenPlaceholderComponent, never>;
25
- static ɵcmp: i0.ɵɵComponentDeclaration<ChildrenPlaceholderComponent, "children-placeholder", never, { "children": "children"; }, {}, never, never, false, never>;
26
- }
27
- export declare class TemplateComponent extends ChildrenPlaceholderComponent {
28
- static ɵfac: i0.ɵɵFactoryDeclaration<TemplateComponent, never>;
29
- static ɵcmp: i0.ɵɵComponentDeclaration<TemplateComponent, "template-component", never, {}, {}, never, never, false, never>;
30
- }
@@ -1,14 +0,0 @@
1
- import { OnInit } from '@angular/core';
2
- import { RuntimeProduct, RuntimeType } from '@veloceapps/core';
3
- import { Dictionary } from 'lodash';
4
- import { RuntimeService } from '../../../services/runtime.service';
5
- import * as i0 from "@angular/core";
6
- export declare class ContextProviderComponent implements OnInit {
7
- private runtimeService;
8
- types: RuntimeType[];
9
- products: Dictionary<RuntimeProduct[]>;
10
- constructor(runtimeService: RuntimeService);
11
- ngOnInit(): void;
12
- static ɵfac: i0.ɵɵFactoryDeclaration<ContextProviderComponent, never>;
13
- static ɵcmp: i0.ɵɵComponentDeclaration<ContextProviderComponent, "vl-context-provider", never, { "types": "types"; "products": "products"; }, {}, never, never, false, never>;
14
- }
@@ -1,25 +0,0 @@
1
- import { AfterViewInit, Injector, NgModuleRef, OnDestroy, OnInit, ViewContainerRef } from '@angular/core';
2
- import { FormGroup } from '@angular/forms';
3
- import { Section } from '@veloceapps/core';
4
- import { SectionScopeService } from '../../../services/section-scope.service';
5
- import { SectionStoreService } from '../../../services/section-store.service';
6
- import * as i0 from "@angular/core";
7
- export declare class ExecutionSectionRendererComponent implements OnInit, AfterViewInit, OnDestroy {
8
- private _injector;
9
- private _m;
10
- private sectionScope;
11
- private sectionStore;
12
- private _section;
13
- set section(value: Section);
14
- get section(): Section;
15
- form: FormGroup;
16
- constructor(_injector: Injector, _m: NgModuleRef<any>, sectionScope: SectionScopeService, sectionStore: SectionStoreService);
17
- container: ViewContainerRef;
18
- private componentRef;
19
- ngOnInit(): void;
20
- ngAfterViewInit(): void;
21
- ngOnDestroy(): void;
22
- renderSection(): void;
23
- static ɵfac: i0.ɵɵFactoryDeclaration<ExecutionSectionRendererComponent, never>;
24
- static ɵcmp: i0.ɵɵComponentDeclaration<ExecutionSectionRendererComponent, "section-renderer", never, { "section": "section"; "form": "form"; }, {}, never, never, false, never>;
25
- }
@@ -1,36 +0,0 @@
1
- import { AfterViewInit, ApplicationRef, Compiler, ElementRef, Injector, OnChanges, Renderer2, SimpleChanges, TemplateRef, ViewContainerRef } from '@angular/core';
2
- import { LineItem } from '@veloceapps/core';
3
- import * as i0 from "@angular/core";
4
- declare enum IntegrationEvent {
5
- Init = "Init"
6
- }
7
- interface InputData {
8
- rootLineItem: LineItem;
9
- }
10
- interface IntegrationEventPayload {
11
- type: IntegrationEvent;
12
- payload?: unknown;
13
- }
14
- export declare class FederatedComponent implements AfterViewInit, OnChanges {
15
- private injector;
16
- private compiler;
17
- private appRef;
18
- private renderer;
19
- federatedComponent?: ViewContainerRef;
20
- foo?: TemplateRef<unknown>;
21
- moduleHostRef?: ElementRef;
22
- remoteEntry?: string;
23
- remoteName?: string;
24
- exposedModule?: string;
25
- data?: InputData;
26
- eventData?: IntegrationEventPayload;
27
- private integrationEvent;
28
- moduleReady: boolean;
29
- private instance?;
30
- constructor(injector: Injector, compiler: Compiler, appRef: ApplicationRef, renderer: Renderer2);
31
- ngAfterViewInit(): void;
32
- ngOnChanges(changes: SimpleChanges): void;
33
- static ɵfac: i0.ɵɵFactoryDeclaration<FederatedComponent, never>;
34
- static ɵcmp: i0.ɵɵComponentDeclaration<FederatedComponent, "veloce-host-federated", never, { "remoteEntry": "remoteEntry"; "remoteName": "remoteName"; "exposedModule": "exposedModule"; "data": "data"; "eventData": "eventData"; }, { "integrationEvent": "integrationEvent"; }, never, never, false, never>;
35
- }
36
- export {};
@@ -1,19 +0,0 @@
1
- import { OnInit } from '@angular/core';
2
- import { FormScopeService } from '../../../services/form-scope.service';
3
- import { SectionScopeService } from '../../../services/section-scope.service';
4
- import { VeloAttributeDirective } from '../../directives/velo-attribute.directive';
5
- import * as i0 from "@angular/core";
6
- export declare class VeloAttributeComponent extends VeloAttributeDirective implements OnInit {
7
- controlName: string;
8
- displayName: string;
9
- isMultiselect: boolean;
10
- constructor(formScope: FormScopeService, sectionScope: SectionScopeService);
11
- getValueOptions(valueOptions: unknown): (string | number)[];
12
- getValueText(valueOptions: unknown, value: string | number): string;
13
- handleMultiselectChange(value: string | number): void;
14
- handleMultipleDropdownChange(event: any): void;
15
- private isBooleanType;
16
- private getDisplayName;
17
- static ɵfac: i0.ɵɵFactoryDeclaration<VeloAttributeComponent, never>;
18
- static ɵcmp: i0.ɵɵComponentDeclaration<VeloAttributeComponent, "velo-attribute", never, {}, {}, never, never, false, never>;
19
- }
@@ -1,35 +0,0 @@
1
- import { Overlay } from '@angular/cdk/overlay';
2
- import { ElementRef, EventEmitter, OnDestroy, TemplateRef, ViewContainerRef } from '@angular/core';
3
- import { ControlValueAccessor } from '@angular/forms';
4
- import * as i0 from "@angular/core";
5
- export declare class MultiselectComponent implements ControlValueAccessor, OnDestroy {
6
- private elRef;
7
- private viewContainerRef;
8
- private overlay;
9
- options?: any[];
10
- selectionChange: EventEmitter<string[]>;
11
- selected: string[];
12
- displayValue: string;
13
- touched: boolean;
14
- disabled: boolean;
15
- overlayTemplate: TemplateRef<any>;
16
- opened: boolean;
17
- private overlayRef?;
18
- private dropdownClosingActionsSub?;
19
- onChange: (selected: string[]) => void;
20
- onTouched: () => void;
21
- constructor(elRef: ElementRef, viewContainerRef: ViewContainerRef, overlay: Overlay);
22
- ngOnDestroy(): void;
23
- writeValue(selected: string[]): void;
24
- registerOnChange(onChange: any): void;
25
- registerOnTouched(onTouched: any): void;
26
- setDisabledState(disabled: boolean): void;
27
- handleSelection(value: any): void;
28
- toggleOpened(): void;
29
- private getDisplayValue;
30
- private openDropdown;
31
- private dropdownClosingActions;
32
- private destroyDropdown;
33
- static ɵfac: i0.ɵɵFactoryDeclaration<MultiselectComponent, never>;
34
- static ɵcmp: i0.ɵɵComponentDeclaration<MultiselectComponent, "velo-multiselect", never, { "options": "options"; }, { "selectionChange": "selectionChange"; }, never, never, false, never>;
35
- }
@@ -1,22 +0,0 @@
1
- import { FormGroup } from '@angular/forms';
2
- import { Section } from '@veloceapps/core';
3
- import { FormScopeService } from '../../../services/form-scope.service';
4
- import { SectionScopeService } from '../../../services/section-scope.service';
5
- import * as i0 from "@angular/core";
6
- export declare class VeloPortCheckBoxComponent {
7
- private formScope;
8
- private sectionScope;
9
- controlName: string;
10
- form: FormGroup;
11
- section: Section;
12
- showSelectAll: boolean;
13
- constructor(formScope: FormScopeService, sectionScope: SectionScopeService);
14
- handleChange(valueOption: string): void;
15
- hasValueFor(valueOption: string): boolean;
16
- selectAllChange(): void;
17
- isAllSelected(): boolean;
18
- getMessages(valueOption: string): string[];
19
- private findLineItemForValue;
20
- static ɵfac: i0.ɵɵFactoryDeclaration<VeloPortCheckBoxComponent, never>;
21
- static ɵcmp: i0.ɵɵComponentDeclaration<VeloPortCheckBoxComponent, "velo-port-checkbox", never, { "showSelectAll": "showSelectAll"; }, {}, never, ["*"], false, never>;
22
- }
@@ -1,22 +0,0 @@
1
- import { FormGroup } from '@angular/forms';
2
- import { Section } from '@veloceapps/core';
3
- import { Dictionary } from 'lodash';
4
- import { FormScopeService } from '../../../services/form-scope.service';
5
- import { SectionScopeService } from '../../../services/section-scope.service';
6
- import * as i0 from "@angular/core";
7
- export declare class VeloPortDropdownComponent {
8
- private formScope;
9
- private sectionScope;
10
- controlName: string;
11
- qtyControlName: string;
12
- form: FormGroup;
13
- section: Section;
14
- prices: Dictionary<any>;
15
- constructor(formScope: FormScopeService, sectionScope: SectionScopeService);
16
- isAddAllowed(): boolean;
17
- handleCreate(): void;
18
- private findPriceItemsForValue;
19
- private add;
20
- static ɵfac: i0.ɵɵFactoryDeclaration<VeloPortDropdownComponent, never>;
21
- static ɵcmp: i0.ɵɵComponentDeclaration<VeloPortDropdownComponent, "velo-port-dropdown", never, {}, {}, never, ["*"], false, never>;
22
- }
@@ -1,28 +0,0 @@
1
- import { OnInit } from '@angular/core';
2
- import { FormGroup } from '@angular/forms';
3
- import { LineItem, RecommendedPrice, Section } from '@veloceapps/core';
4
- import { Dictionary } from 'lodash';
5
- import { FormScopeService } from '../../../services/form-scope.service';
6
- import { SectionScopeService } from '../../../services/section-scope.service';
7
- import * as i0 from "@angular/core";
8
- export declare class VeloPortRadioComponent implements OnInit {
9
- private formScope;
10
- private sectionScope;
11
- controlName: string;
12
- form: FormGroup;
13
- section: Section;
14
- prices: Dictionary<any>;
15
- constructor(formScope: FormScopeService, sectionScope: SectionScopeService);
16
- ngOnInit(): void;
17
- handleChange(event: any, valueOption: any): void;
18
- hasValueFor(valueOption: string): boolean;
19
- getMessages(valueOption: string): LineItem['messages'];
20
- toString(price: RecommendedPrice): string;
21
- private hasPreviousValue;
22
- private findLineItemForValue;
23
- private initPriceItems;
24
- private findPriceItemsForValue;
25
- private add;
26
- static ɵfac: i0.ɵɵFactoryDeclaration<VeloPortRadioComponent, never>;
27
- static ɵcmp: i0.ɵɵComponentDeclaration<VeloPortRadioComponent, "velo-port-radio", never, {}, {}, never, ["*", "*"], false, never>;
28
- }
@@ -1,31 +0,0 @@
1
- import { OnInit } from '@angular/core';
2
- import { FormGroup } from '@angular/forms';
3
- import { RecommendedPrice, Section } from '@veloceapps/core';
4
- import { MessageService } from 'primeng/api';
5
- import { CollapsibleStateService } from '../../../services/collapsible-state.service';
6
- import { FormScopeService } from '../../../services/form-scope.service';
7
- import { SectionScopeService } from '../../../services/section-scope.service';
8
- import * as i0 from "@angular/core";
9
- export declare class VeloTypeComponent implements OnInit {
10
- private formScope;
11
- private collapsibleState;
12
- private sectionScope;
13
- private messageService;
14
- readonly messageBucketId = "ui-runtime";
15
- controlName: string;
16
- qtyControlName: string;
17
- displayName: string;
18
- indent: number;
19
- form: FormGroup;
20
- section: Section;
21
- prices: RecommendedPrice[];
22
- constructor(formScope: FormScopeService, collapsibleState: CollapsibleStateService, sectionScope: SectionScopeService, messageService: MessageService);
23
- ngOnInit(): void;
24
- handleRemove(): void;
25
- handleQuantityUpdate(): void;
26
- toggleCollapse(): void;
27
- getPrices(): RecommendedPrice[];
28
- private add;
29
- static ɵfac: i0.ɵɵFactoryDeclaration<VeloTypeComponent, never>;
30
- static ɵcmp: i0.ɵɵComponentDeclaration<VeloTypeComponent, "velo-type", never, {}, {}, never, ["*"], false, never>;
31
- }
@@ -1,59 +0,0 @@
1
- import { AfterViewInit, ChangeDetectorRef, OnDestroy, OnInit, Renderer2 } from '@angular/core';
2
- import { FormBuilder } from '@angular/forms';
3
- import { ContextService, QuoteDraftService } from '@veloceapps/sdk/core';
4
- import { ShoppingCartService } from '../../services/cart.service';
5
- import { CurrentStateService } from '../../services/current-state.service';
6
- import { FormScopeService } from '../../services/form-scope.service';
7
- import { RuntimeService } from '../../services/runtime.service';
8
- import { SectionScopeService } from '../../services/section-scope.service';
9
- import { SfQueryDirective } from './sf-query.directive';
10
- import { LineItemDirective } from './velo-port.directive';
11
- import { VlApprovalDirective } from './vl-approval.directive';
12
- import { VlDocumentAttachmentsDirective } from './vl-document-attachments.directive';
13
- import { VlDocumentTemplatesDirective } from './vl-document-templates.directive';
14
- import { VlQuoteDirective } from './vl-quote.directive';
15
- import { VlRampDirective } from './vl-ramp.directive';
16
- import * as i0 from "@angular/core";
17
- export declare class SectionScriptDirective implements OnInit, AfterViewInit, OnDestroy {
18
- private _document;
19
- private sfQueryDirective;
20
- private lineItemDirective;
21
- private quoteDirective;
22
- private documentTemplatesDirective;
23
- private rampDirective;
24
- private approvalDirective;
25
- private documentAttachmentsDirective;
26
- private formScope;
27
- private sectionScope;
28
- private renderer;
29
- private formBuilder;
30
- private runtimeService;
31
- private cdr;
32
- private cartService;
33
- private contextService;
34
- private currentStateService;
35
- private quoteService;
36
- private scriptElement;
37
- private scriptId;
38
- private registry;
39
- private sessionScope;
40
- constructor(_document: Document, sfQueryDirective: SfQueryDirective, lineItemDirective: LineItemDirective, quoteDirective: VlQuoteDirective, documentTemplatesDirective: VlDocumentTemplatesDirective, rampDirective: VlRampDirective, approvalDirective: VlApprovalDirective, documentAttachmentsDirective: VlDocumentAttachmentsDirective, formScope: FormScopeService, sectionScope: SectionScopeService, renderer: Renderer2, formBuilder: FormBuilder, runtimeService: RuntimeService, cdr: ChangeDetectorRef, cartService: ShoppingCartService, contextService: ContextService, currentStateService: CurrentStateService, quoteService: QuoteDraftService);
41
- ngOnInit(): void;
42
- ngAfterViewInit(): void;
43
- ngOnDestroy(): void;
44
- get scope(): any;
45
- private scriptExists;
46
- private encodeScriptBody;
47
- private generateScriptId;
48
- private getScriptRegistry;
49
- private getSessionScope;
50
- private initScript;
51
- private removeScript;
52
- private appendScriptElementToDom;
53
- private removeScriptElementFromDom;
54
- private scriptFromTemplate;
55
- private methodApply;
56
- private getExposedApis;
57
- static ɵfac: i0.ɵɵFactoryDeclaration<SectionScriptDirective, never>;
58
- static ɵdir: i0.ɵɵDirectiveDeclaration<SectionScriptDirective, "section-script", ["scriptApi"], {}, {}, never, never, false, never>;
59
- }
@@ -1,15 +0,0 @@
1
- import { HttpParams } from '@angular/common/http';
2
- import { SalesforceApiService } from '@veloceapps/api';
3
- import { SearchRequest } from '@veloceapps/core';
4
- import * as i0 from "@angular/core";
5
- export declare class SfQueryDirective {
6
- private apiService;
7
- constructor(apiService: SalesforceApiService);
8
- query(searchRequest: SearchRequest, objectName: string): Promise<any>;
9
- describe(objectName: string, fieldName?: string): Promise<any>;
10
- describe2(objectName: string, fieldsNames: string[]): Promise<any>;
11
- apexGetRequest<T = unknown>(path: string, params: HttpParams): Promise<T>;
12
- apexPostRequest<T = unknown, S = unknown>(path: string, body: S): Promise<T>;
13
- static ɵfac: i0.ɵɵFactoryDeclaration<SfQueryDirective, never>;
14
- static ɵdir: i0.ɵɵDirectiveDeclaration<SfQueryDirective, "sf-query", ["sfApi"], {}, {}, never, never, false, never>;
15
- }
@@ -1,26 +0,0 @@
1
- import { OnInit } from '@angular/core';
2
- import { FormGroup } from '@angular/forms';
3
- import { Section } from '@veloceapps/core';
4
- import { FormScopeService } from '../../services/form-scope.service';
5
- import { SectionScopeService } from '../../services/section-scope.service';
6
- import * as i0 from "@angular/core";
7
- export declare class VeloAttributeDirective implements OnInit {
8
- private formScope;
9
- private sectionScope;
10
- valueQuantities: {
11
- [index: string]: number;
12
- };
13
- form: FormGroup;
14
- section: Section;
15
- constructor(formScope: FormScopeService, sectionScope: SectionScopeService);
16
- ngOnInit(): void;
17
- handleChange(valueOption?: any): void;
18
- handleChangDate(valueOption: any): void;
19
- handleRemove(): void;
20
- nextVal(): void;
21
- prevVal(): void;
22
- private initQuantity;
23
- private getCurrentValueIndex;
24
- static ɵfac: i0.ɵɵFactoryDeclaration<VeloAttributeDirective, never>;
25
- static ɵdir: i0.ɵɵDirectiveDeclaration<VeloAttributeDirective, "velo-attribute-directive", ["attributeApi"], {}, {}, never, never, false, never>;
26
- }
@@ -1,74 +0,0 @@
1
- import { OnInit } from '@angular/core';
2
- import { FormGroup } from '@angular/forms';
3
- import { LineItem, Section } from '@veloceapps/core';
4
- import { ConfigurationService } from '../../services/configuration.service';
5
- import { FormScopeService } from '../../services/form-scope.service';
6
- import { SectionScopeService } from '../../services/section-scope.service';
7
- import { LegacyRuntimeContext } from '../../types';
8
- import * as i0 from "@angular/core";
9
- export declare class SectionContextAware implements OnInit {
10
- protected formScope: FormScopeService;
11
- protected sectionScope: SectionScopeService;
12
- controlName: string;
13
- qtyControlName: string;
14
- form: FormGroup;
15
- section: Section;
16
- constructor(formScope: FormScopeService, sectionScope: SectionScopeService);
17
- ngOnInit(): void;
18
- initControlNames(): void;
19
- isAddAllowed(quantityToAdd?: number): boolean;
20
- isRemoveAllowed(quantityToRemove?: number): boolean;
21
- handleCreate(valueOption?: any): void;
22
- handleChange(valueOption?: any): void;
23
- handleQtyChange(valueOption: any): void;
24
- handleRemove(valueOption: string): void;
25
- handleCopy(valueOption: string): void;
26
- static ɵfac: i0.ɵɵFactoryDeclaration<SectionContextAware, never>;
27
- static ɵdir: i0.ɵɵDirectiveDeclaration<SectionContextAware, never, never, {}, {}, never, never, false, never>;
28
- }
29
- export declare class LineItemDirective implements OnInit {
30
- private formScope;
31
- private sectionScope;
32
- private configurationService;
33
- section: Section;
34
- lineItem?: LineItem;
35
- constructor(formScope: FormScopeService, sectionScope: SectionScopeService, configurationService: ConfigurationService);
36
- ngOnInit(): void;
37
- handlePatch(rootLineItem: any): void;
38
- configure(runtimeContext: LegacyRuntimeContext, configurableRamp: LineItem): Promise<LineItem>;
39
- static ɵfac: i0.ɵɵFactoryDeclaration<LineItemDirective, never>;
40
- static ɵdir: i0.ɵɵDirectiveDeclaration<LineItemDirective, "line-item", ["liApi"], {}, {}, never, never, false, never>;
41
- }
42
- export declare class VeloPortDirective extends SectionContextAware implements OnInit {
43
- valueQuantities: {
44
- [index: string]: number;
45
- };
46
- constructor(formScope: FormScopeService, sectionScope: SectionScopeService);
47
- private handlePriceAdjustment;
48
- ngOnInit(): void;
49
- handleUpsert(valueOption?: any, event?: Event): void;
50
- isActive(valueOption?: any): boolean;
51
- private initQuantity;
52
- handleNextVal(valueOption: string): void;
53
- handlePrevVal(valueOption: string): void;
54
- handleManualQtyChange(valueOption: string, qtyVal: any): void;
55
- handleNetPriceAdjustment(valueOption: string, amount: number): void;
56
- handleListPriceAdjustment(valueOption: string, amount: number): void;
57
- static ɵfac: i0.ɵɵFactoryDeclaration<VeloPortDirective, never>;
58
- static ɵdir: i0.ɵɵDirectiveDeclaration<VeloPortDirective, "velo-port", ["portApi"], {}, {}, never, never, false, never>;
59
- }
60
- export declare class VeloDropdownComponent extends SectionContextAware {
61
- constructor(formScope: FormScopeService, sectionScope: SectionScopeService);
62
- static ɵfac: i0.ɵɵFactoryDeclaration<VeloDropdownComponent, never>;
63
- static ɵcmp: i0.ɵɵComponentDeclaration<VeloDropdownComponent, "velo-dropdown", never, {}, {}, never, never, false, never>;
64
- }
65
- export declare class VeloQuantityComponent extends SectionContextAware {
66
- constructor(formScope: FormScopeService, sectionScope: SectionScopeService);
67
- static ɵfac: i0.ɵɵFactoryDeclaration<VeloQuantityComponent, never>;
68
- static ɵcmp: i0.ɵɵComponentDeclaration<VeloQuantityComponent, "velo-quantity", never, {}, {}, never, never, false, never>;
69
- }
70
- export declare class VeloQuantityButtonComponent extends SectionContextAware {
71
- constructor(formScope: FormScopeService, sectionScope: SectionScopeService);
72
- static ɵfac: i0.ɵɵFactoryDeclaration<VeloQuantityButtonComponent, never>;
73
- static ɵcmp: i0.ɵɵComponentDeclaration<VeloQuantityButtonComponent, "velo-quantity-button", never, {}, {}, never, never, false, never>;
74
- }
@@ -1,10 +0,0 @@
1
- import { QuoteApiService } from '@veloceapps/api';
2
- import { QuoteDraft } from '@veloceapps/core';
3
- import * as i0 from "@angular/core";
4
- export declare class VlApprovalDirective {
5
- private repo;
6
- constructor(repo: QuoteApiService);
7
- submitQuote(quoteDraft: QuoteDraft): Promise<any>;
8
- static ɵfac: i0.ɵɵFactoryDeclaration<VlApprovalDirective, never>;
9
- static ɵdir: i0.ɵɵDirectiveDeclaration<VlApprovalDirective, "vl-approval", ["approvalApi"], {}, {}, never, never, false, never>;
10
- }
@@ -1,15 +0,0 @@
1
- import { DocumentAttachmentApiService } from '@veloceapps/api';
2
- import { Attachment, TemplateAttachmentSearchRequest } from '@veloceapps/core';
3
- import { Observable } from 'rxjs';
4
- import * as i0 from "@angular/core";
5
- export declare class VlDocumentAttachmentsDirective {
6
- private service;
7
- constructor(service: DocumentAttachmentApiService);
8
- getAttachments(searchRequest: TemplateAttachmentSearchRequest): Promise<Attachment[]>;
9
- createAttachment(attachment: Attachment, file?: File, reportProgress?: boolean): Promise<Attachment> | Observable<Attachment>;
10
- updateAttachment(id: string, attachment: Attachment): Promise<Attachment>;
11
- getAttachmentFile(id: string, isPreventDownload?: boolean): Promise<any>;
12
- removeAttachment(id: string): Promise<unknown>;
13
- static ɵfac: i0.ɵɵFactoryDeclaration<VlDocumentAttachmentsDirective, never>;
14
- static ɵdir: i0.ɵɵDirectiveDeclaration<VlDocumentAttachmentsDirective, "vl-document-attachments", ["documentAttachmentsApi"], {}, {}, never, never, false, never>;
15
- }