@colijnit/transaction 254.1.2 → 254.1.3
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.
- package/bundles/colijnit-transaction.umd.js +932 -669
- package/bundles/colijnit-transaction.umd.js.map +1 -1
- package/colijnit-transaction.d.ts +566 -562
- package/colijnit-transaction.metadata.json +1 -1
- package/esm2015/colijnit-transaction.js +567 -563
- package/esm2015/lib/component/checkout/checkout.component.js +1 -1
- package/esm2015/lib/component/checkout/checkout.module.js +4 -2
- package/esm2015/lib/component/checkout-simple/checkout-simple.component.js +1 -1
- package/esm2015/lib/component/checkout-simple/checkout-simple.module.js +4 -2
- package/esm2015/lib/component/core/base/stepper-base.component.js +57 -0
- package/esm2015/lib/component/payment/payment.component.js +75 -7
- package/esm2015/lib/component/payment/payment.module.js +4 -3
- package/esm2015/lib/component/relation/relation-contact-details/relation-contact-details.component.js +4 -2
- package/esm2015/lib/component/simple-vertical-stepper/co-simple-vertical-stepper.component.js +58 -0
- package/esm2015/lib/component/simple-vertical-stepper/co-simple-vertical-stepper.module.js +27 -0
- package/esm2015/lib/component/stepper/stepper.component.js +13 -48
- package/esm2015/lib/component/stepper/stepper.module.js +3 -6
- package/esm2015/lib/component/stepper-step/stepper-step.component.js +40 -0
- package/esm2015/lib/component/stepper-step/stepper-step.module.js +27 -0
- package/esm2015/lib/component/transaction-create-wizard/transaction-create-wizard.component.js +30 -5
- package/esm2015/lib/component/transaction-create-wizard/transaction-create-wizard.module.js +6 -2
- package/esm2015/lib/component/transaction-header/transaction-header-popup/transaction-header-popup-create-service.component.js +20 -18
- package/esm2015/lib/component/transaction-header/transaction-header-popup/transaction-header-popup-relation.component.js +2 -1
- package/esm2015/lib/component/transaction-header/transaction-header-popup/transaction-header-popup-service-wizard.component.js +1 -1
- package/esm2015/lib/component/transaction-header/transaction-header-popup/transaction-header-popup.module.js +4 -2
- package/esm2015/lib/component/transaction-labeled-warehouse-location-button/transaction-labeled-warehouse-location-button.component.js +23 -24
- package/esm2015/lib/component/transaction-quick-access/transaction-quick-access-received-goods/transaction-quick-access-received-goods.component.js +25 -11
- package/esm2015/lib/service/transaction-connector-adapter.service.js +2 -2
- package/esm2015/lib/transaction-version.js +3 -3
- package/fesm2015/colijnit-transaction.js +336 -108
- package/fesm2015/colijnit-transaction.js.map +1 -1
- package/lib/component/checkout/checkout.component.d.ts +1 -1
- package/lib/component/checkout/style/material.scss +1 -0
- package/lib/component/checkout-simple/checkout-simple.component.d.ts +1 -1
- package/lib/component/checkout-simple/style/material.scss +1 -0
- package/lib/component/core/base/stepper-base.component.d.ts +25 -0
- package/lib/component/dialog/transaction-search/style/_layout.scss +29 -0
- package/lib/component/dialog/transaction-search/style/_material-definition.scss +2 -0
- package/lib/component/dialog/transaction-search/style/_theme.scss +4 -0
- package/lib/component/dialog/transaction-search/style/material.scss +4 -0
- package/lib/component/payment/payment.component.d.ts +15 -1
- package/lib/component/relation/relation-contact-details/relation-contact-details.component.d.ts +1 -0
- package/lib/component/simple-vertical-stepper/co-simple-vertical-stepper.component.d.ts +12 -0
- package/lib/component/simple-vertical-stepper/co-simple-vertical-stepper.module.d.ts +2 -0
- package/lib/component/simple-vertical-stepper/style/_layout.scss +37 -0
- package/lib/component/simple-vertical-stepper/style/_material-definition.scss +30 -0
- package/lib/component/simple-vertical-stepper/style/_theme.scss +7 -0
- package/lib/component/simple-vertical-stepper/style/material.scss +3 -0
- package/lib/component/stepper/stepper.component.d.ts +4 -22
- package/lib/component/stepper-step/stepper-step.module.d.ts +2 -0
- package/lib/component/stepper-step/style/_layout.scss +12 -0
- package/lib/component/stepper-step/style/_material-definition.scss +30 -0
- package/lib/component/stepper-step/style/_theme.scss +41 -0
- package/lib/component/stepper-step/style/material.scss +3 -0
- package/lib/component/transaction-create-wizard/style/_layout.scss +4 -0
- package/lib/component/transaction-create-wizard/style/_material-definition.scss +4 -0
- package/lib/component/transaction-create-wizard/style/_theme.scss +4 -0
- package/lib/component/transaction-create-wizard/style/material.scss +6 -0
- package/lib/component/transaction-create-wizard/transaction-create-wizard.component.d.ts +12 -2
- package/lib/component/transaction-header/transaction-header-popup/transaction-header-popup-create-service.component.d.ts +5 -3
- package/lib/component/transaction-quick-access/transaction-quick-access-received-goods/transaction-quick-access-received-goods.component.d.ts +4 -1
- package/package.json +1 -1
- package/esm2015/lib/component/stepper/component/stepper-step.component.js +0 -40
- /package/lib/component/{stepper/component → stepper-step}/stepper-step.component.d.ts +0 -0
|
@@ -4,7 +4,7 @@ import { DictionaryService } from '../../service/dictionary.service';
|
|
|
4
4
|
import { TransactionInfoResponse } from '@colijnit/transactionapi/build/model/transaction-info-response.bo';
|
|
5
5
|
import { CheckoutOverviewRelationEditComponent } from './checkout-overview-relation-edit/checkout-overview-relation-edit.component';
|
|
6
6
|
import { CheckoutOverviewDeliveryEditComponent } from './checkout-overview-delivery-edit/checkout-overview-delivery-edit.component';
|
|
7
|
-
import { StepperStepComponent } from '../stepper/
|
|
7
|
+
import { StepperStepComponent } from '../stepper-step/stepper-step.component';
|
|
8
8
|
import { DialogService } from '../../service/dialog.service';
|
|
9
9
|
import { PaymentComponent } from '../payment/payment.component';
|
|
10
10
|
import { StepperComponent } from '../stepper/stepper.component';
|
|
@@ -6,5 +6,6 @@
|
|
|
6
6
|
@import "../checkout-overview-delivery-edit/style/material";
|
|
7
7
|
@import "../checkout-overview-payment/style/material";
|
|
8
8
|
@import "../../stepper/style/material";
|
|
9
|
+
@import "../../stepper-step/style/material";
|
|
9
10
|
@import "../../avatar/style/material";
|
|
10
11
|
@import "../../payment/style/material";
|
|
@@ -2,7 +2,7 @@ import { EventEmitter, OnInit } from '@angular/core';
|
|
|
2
2
|
import { TransactionService } from '../../service/transaction.service';
|
|
3
3
|
import { DictionaryService } from '../../service/dictionary.service';
|
|
4
4
|
import { TransactionInfoResponse } from '@colijnit/transactionapi/build/model/transaction-info-response.bo';
|
|
5
|
-
import { StepperStepComponent } from '../stepper/
|
|
5
|
+
import { StepperStepComponent } from '../stepper-step/stepper-step.component';
|
|
6
6
|
import { DialogService } from '../../service/dialog.service';
|
|
7
7
|
import { PaymentComponent } from '../payment/payment.component';
|
|
8
8
|
import { StepperComponent } from '../stepper/stepper.component';
|
|
@@ -6,5 +6,6 @@
|
|
|
6
6
|
@import "../checkout-simple-overview-delivery-edit/style/material";
|
|
7
7
|
@import "../checkout-simple-overview-payment/style/material";
|
|
8
8
|
@import "../../stepper/style/material";
|
|
9
|
+
@import "../../stepper-step/style/material";
|
|
9
10
|
@import "../../avatar/style/material";
|
|
10
11
|
@import "../../payment/style/material";
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { CheckoutCfgName } from "../../../enum/checkout-cfg-name.enum";
|
|
2
|
+
import { Icon } from "../../../enum/icon.enum";
|
|
3
|
+
import { IconCacheService } from "../../../service/icon-cache.service";
|
|
4
|
+
import { StepperStepComponent } from "../../stepper-step/stepper-step.component";
|
|
5
|
+
export declare class StepperBaseComponent {
|
|
6
|
+
iconCacheService: IconCacheService;
|
|
7
|
+
readonly cfgNames: typeof CheckoutCfgName;
|
|
8
|
+
readonly icons: typeof Icon;
|
|
9
|
+
title: string;
|
|
10
|
+
titleIcon: Icon;
|
|
11
|
+
set content(children: any);
|
|
12
|
+
set stepChildren(value: StepperStepComponent[]);
|
|
13
|
+
get stepChildren(): StepperStepComponent[];
|
|
14
|
+
set activeStep(value: number);
|
|
15
|
+
get activeStep(): number;
|
|
16
|
+
get finished(): boolean;
|
|
17
|
+
firstStep: number;
|
|
18
|
+
lastStep: number;
|
|
19
|
+
private _stepChildren;
|
|
20
|
+
private _activeStep;
|
|
21
|
+
constructor(iconCacheService: IconCacheService);
|
|
22
|
+
prepareSteps(): void;
|
|
23
|
+
protected setActive(idx: number): void;
|
|
24
|
+
protected validateCurrentStep(): void;
|
|
25
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
@include export-module('co-dialog-transaction-search-layout') {
|
|
2
|
+
.co-dialog-transaction-search {
|
|
3
|
+
/*.co-dialog:not(.is-mobile) .co-dialog-wrapper {
|
|
4
|
+
height: $tp-dialog-catalog-min-height;
|
|
5
|
+
width: $tp-dialog-catalog-min-width;
|
|
6
|
+
max-width: 90vw;
|
|
7
|
+
.dialog-content {
|
|
8
|
+
height: 100%;
|
|
9
|
+
overflow-x: hidden;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
.dialog-catalog-product-wrapper {
|
|
13
|
+
display: flex;
|
|
14
|
+
transform: translateX(0);
|
|
15
|
+
width: calc(#{$tp-dialog-catalog-min-width} * 2);
|
|
16
|
+
> * {
|
|
17
|
+
width: $tp-dialog-catalog-min-width;
|
|
18
|
+
}
|
|
19
|
+
height: 100%;
|
|
20
|
+
.back-button-product {
|
|
21
|
+
cursor: pointer;
|
|
22
|
+
}
|
|
23
|
+
transition: transform .2s ease-in-out;
|
|
24
|
+
&.show-product {
|
|
25
|
+
transform: translateX(-50%);
|
|
26
|
+
}
|
|
27
|
+
}*/
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -1,4 +1,18 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
1
2
|
import { TransactionPaymentBaseComponent } from '../core/base/transaction-payment-base.component';
|
|
2
|
-
|
|
3
|
+
import { CashDrawer } from "@colijnit/transactionapi/build/model/cash-drawer.bo";
|
|
4
|
+
import { CashRegister } from "@colijnit/transactionapi/build/model/cash-register";
|
|
5
|
+
export declare class PaymentComponent extends TransactionPaymentBaseComponent implements OnInit {
|
|
3
6
|
showClass: boolean;
|
|
7
|
+
cashRegisters: any[];
|
|
8
|
+
activeCashRegister: CashRegister;
|
|
9
|
+
cashDrawers: CashDrawer[];
|
|
10
|
+
activeCashDrawer: CashDrawer;
|
|
11
|
+
ngOnInit(): Promise<void>;
|
|
12
|
+
handleDrawerChanged(cashDrawer: CashDrawer): void;
|
|
13
|
+
cashRegisterSelected(cashRegister: CashRegister, index: number): void;
|
|
14
|
+
private _getCashDrawers;
|
|
15
|
+
private _checkDefaultParameters;
|
|
16
|
+
private _prepareCashRegister;
|
|
17
|
+
private _getCashRegistersDrawers;
|
|
4
18
|
}
|
package/lib/component/relation/relation-contact-details/relation-contact-details.component.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export declare class RelationContactDetailsComponent extends RelationBaseCompone
|
|
|
6
6
|
configNames: RelationContactDetailsCfgNames;
|
|
7
7
|
readonly: boolean;
|
|
8
8
|
showPhone: boolean;
|
|
9
|
+
showInviteForAccount: boolean;
|
|
9
10
|
relationKind: RelationKind;
|
|
10
11
|
showClass(): boolean;
|
|
11
12
|
emailAddress: ContactOption;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { StepperBaseComponent } from "../core/base/stepper-base.component";
|
|
2
|
+
export interface steps {
|
|
3
|
+
index: number;
|
|
4
|
+
description: string;
|
|
5
|
+
complete: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare class SimpleVerticalStepperComponent extends StepperBaseComponent {
|
|
8
|
+
showClass(): boolean;
|
|
9
|
+
continueRequested(): void;
|
|
10
|
+
protected validateCurrentStep(nextStep?: number): void;
|
|
11
|
+
protected setActive(idx: number): void;
|
|
12
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
@import "../../../style/mixin";
|
|
2
|
+
|
|
3
|
+
@include export-module('co-simple-vertical-stepper-layout') {
|
|
4
|
+
.co-simple-vertical-stepper {
|
|
5
|
+
font-family: $tp-co-stepper-font-family;
|
|
6
|
+
font-size: $tp-co-stepper-font-size;
|
|
7
|
+
display: flex;
|
|
8
|
+
flex-direction: column;
|
|
9
|
+
width: 100%;
|
|
10
|
+
box-sizing: initial;
|
|
11
|
+
.simple-vertical-stepper-title {
|
|
12
|
+
display: flex;
|
|
13
|
+
justify-content: space-between;
|
|
14
|
+
padding: $tp-co-stepper-step-title-padding;
|
|
15
|
+
.simple-vertical-stepper-title-wrapper {
|
|
16
|
+
display: flex;
|
|
17
|
+
align-items: center;
|
|
18
|
+
column-gap: $tp-co-stepper-step-title-column-gap;
|
|
19
|
+
}
|
|
20
|
+
.title {
|
|
21
|
+
font-family: $tp-co-stepper-step-title-font-family;
|
|
22
|
+
font-size: $tp-co-stepper-step-title-font-size;
|
|
23
|
+
font-weight: $tp-co-stepper-step-title-font-weight;
|
|
24
|
+
}
|
|
25
|
+
.title-icon {
|
|
26
|
+
height: $tp-co-stepper-step-title-icon-size;
|
|
27
|
+
width: $tp-co-stepper-step-title-icon-size;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
.simple-vertical-stepper-content-wrapper {
|
|
31
|
+
display: flex;
|
|
32
|
+
flex-direction: column;
|
|
33
|
+
align-items: center;
|
|
34
|
+
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
$tp-co-stepper-font-family: $tp-font-family !default;
|
|
2
|
+
$tp-co-stepper-font-size: $tp-font-size !default;
|
|
3
|
+
$tp-co-stepper-step-index-size: 11px !default;
|
|
4
|
+
$tp-co-stepper-step-index-border-width: 3px !default;
|
|
5
|
+
$tp-co-stepper-step-index-font-size: $tp-font-size-big !default;
|
|
6
|
+
$tp-co-stepper-step-padding: 30px !default;
|
|
7
|
+
$tp-co-stepper-step-complete-color: white !default;
|
|
8
|
+
$tp-co-stepper-step-complete-background-color: $tp-color-action !default;
|
|
9
|
+
$tp-co-stepper-step-incomplete-background-color: $tp-color-action-light !default;
|
|
10
|
+
$tp-co-stepper-step-incomplete-color: $tp-color-dark !default;
|
|
11
|
+
$tp-co-stepper-step-active-background-color: $tp-color-action !default;
|
|
12
|
+
$tp-co-stepper-step-active-color: white !default;
|
|
13
|
+
$tp-co-stepper-step-delivery-truck-size: 45px !default;
|
|
14
|
+
$tp-co-stepper-step-description-font-size: $tp-font-size !default;
|
|
15
|
+
$tp-co-stepper-step-description-color: black !default;
|
|
16
|
+
$tp-co-stepper-step-description-font-weight: bold !default;
|
|
17
|
+
$tp-co-stepper-step-incomplete-description-color: rgba(0, 0, 0, 0.3) !default;
|
|
18
|
+
$tp-co-stepper-step-incomplete-description-font-weight: normal !default;
|
|
19
|
+
|
|
20
|
+
$tp-co-stepper-step-title-padding: 30px !default;
|
|
21
|
+
$tp-co-stepper-step-title-column-gap: 10px !default;
|
|
22
|
+
$tp-co-stepper-step-title-font-family: $tp-font-family !default;
|
|
23
|
+
$tp-co-stepper-step-title-font-size: 20px !default;
|
|
24
|
+
$tp-co-stepper-step-title-font-weight: 600 !default;
|
|
25
|
+
$tp-co-stepper-step-title-icon-size: 17px !default;
|
|
26
|
+
|
|
27
|
+
$tp-co-stepper-step-button-color: $tp-color-action !default;
|
|
28
|
+
$tp-co-stepper-step-button-background-color: $tp-default-background-accent !default;
|
|
29
|
+
$tp-co-stepper-step-button-icon-size: 15px !default;
|
|
30
|
+
$tp-co-stepper-step-button-icon-color: $tp-color-action !default;
|
|
@@ -1,44 +1,26 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
import { Icon } from '../../enum/icon.enum';
|
|
4
|
-
import { IconCacheService } from '../../service/icon-cache.service';
|
|
5
|
-
import { CheckoutCfgName } from '../../enum/checkout-cfg-name.enum';
|
|
2
|
+
import { StepperBaseComponent } from "../core/base/stepper-base.component";
|
|
6
3
|
export interface steps {
|
|
7
4
|
index: number;
|
|
8
5
|
description: string;
|
|
9
6
|
complete: boolean;
|
|
10
7
|
}
|
|
11
|
-
export declare class StepperComponent {
|
|
12
|
-
iconCacheService: IconCacheService;
|
|
13
|
-
readonly cfgNames: typeof CheckoutCfgName;
|
|
14
|
-
readonly icons: typeof Icon;
|
|
15
|
-
set content(children: any);
|
|
8
|
+
export declare class StepperComponent extends StepperBaseComponent {
|
|
16
9
|
set child(child: any);
|
|
17
|
-
title: string;
|
|
18
|
-
titleIcon: Icon;
|
|
19
10
|
finishButtonLabel: string;
|
|
20
11
|
showCreate: boolean;
|
|
21
12
|
showStepper: boolean;
|
|
22
13
|
createClicked: EventEmitter<MouseEvent>;
|
|
23
14
|
showClass(): boolean;
|
|
24
|
-
set stepChildren(value: StepperStepComponent[]);
|
|
25
|
-
get stepChildren(): StepperStepComponent[];
|
|
26
15
|
get canPrevious(): boolean;
|
|
27
16
|
get canNext(): boolean;
|
|
28
17
|
get finished(): boolean;
|
|
29
|
-
set activeStep(value: number);
|
|
30
|
-
get activeStep(): number;
|
|
31
|
-
firstStep: number;
|
|
32
|
-
lastStep: number;
|
|
33
18
|
truckPosition: number;
|
|
34
|
-
private _stepChildren;
|
|
35
|
-
private _activeStep;
|
|
36
19
|
private _deliveryTruckClientRect;
|
|
37
|
-
constructor(iconCacheService: IconCacheService);
|
|
38
20
|
goto(idx: number): void;
|
|
39
21
|
gotoPrevious(): void;
|
|
40
22
|
gotoNext(): void;
|
|
41
|
-
|
|
42
|
-
|
|
23
|
+
protected validateCurrentStep(nextStep?: number): void;
|
|
24
|
+
protected setActive(idx: number): void;
|
|
43
25
|
private _prepareSteps;
|
|
44
26
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
@import "../../../style/mixin";
|
|
2
|
+
|
|
3
|
+
$index-origin: calc((#{$tp-co-stepper-step-index-size} / 2) + (#{$tp-co-stepper-step-index-border-width} / 2));
|
|
4
|
+
|
|
5
|
+
@include export-module('co-stepper-step-layout') {
|
|
6
|
+
.co-stepper-step {
|
|
7
|
+
display: none;
|
|
8
|
+
&.show {
|
|
9
|
+
display: flex;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
$tp-co-stepper-font-family: $tp-font-family !default;
|
|
2
|
+
$tp-co-stepper-font-size: $tp-font-size !default;
|
|
3
|
+
$tp-co-stepper-step-index-size: 11px !default;
|
|
4
|
+
$tp-co-stepper-step-index-border-width: 3px !default;
|
|
5
|
+
$tp-co-stepper-step-index-font-size: $tp-font-size-big !default;
|
|
6
|
+
$tp-co-stepper-step-padding: 30px !default;
|
|
7
|
+
$tp-co-stepper-step-complete-color: white !default;
|
|
8
|
+
$tp-co-stepper-step-complete-background-color: $tp-color-action !default;
|
|
9
|
+
$tp-co-stepper-step-incomplete-background-color: $tp-color-action-light !default;
|
|
10
|
+
$tp-co-stepper-step-incomplete-color: $tp-color-dark !default;
|
|
11
|
+
$tp-co-stepper-step-active-background-color: $tp-color-action !default;
|
|
12
|
+
$tp-co-stepper-step-active-color: white !default;
|
|
13
|
+
$tp-co-stepper-step-delivery-truck-size: 45px !default;
|
|
14
|
+
$tp-co-stepper-step-description-font-size: $tp-font-size !default;
|
|
15
|
+
$tp-co-stepper-step-description-color: black !default;
|
|
16
|
+
$tp-co-stepper-step-description-font-weight: bold !default;
|
|
17
|
+
$tp-co-stepper-step-incomplete-description-color: rgba(0, 0, 0, 0.3) !default;
|
|
18
|
+
$tp-co-stepper-step-incomplete-description-font-weight: normal !default;
|
|
19
|
+
|
|
20
|
+
$tp-co-stepper-step-title-padding: 30px !default;
|
|
21
|
+
$tp-co-stepper-step-title-column-gap: 10px !default;
|
|
22
|
+
$tp-co-stepper-step-title-font-family: $tp-font-family !default;
|
|
23
|
+
$tp-co-stepper-step-title-font-size: 20px !default;
|
|
24
|
+
$tp-co-stepper-step-title-font-weight: 600 !default;
|
|
25
|
+
$tp-co-stepper-step-title-icon-size: 17px !default;
|
|
26
|
+
|
|
27
|
+
$tp-co-stepper-step-button-color: $tp-color-action !default;
|
|
28
|
+
$tp-co-stepper-step-button-background-color: $tp-default-background-accent !default;
|
|
29
|
+
$tp-co-stepper-step-button-icon-size: 15px !default;
|
|
30
|
+
$tp-co-stepper-step-button-icon-color: $tp-color-action !default;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
@import "../../../style/mixin";
|
|
2
|
+
@import "./material-definition";
|
|
3
|
+
|
|
4
|
+
@include export-module('co-stepper-step-theme') {
|
|
5
|
+
.stepper-step {
|
|
6
|
+
&:not(.last):after {
|
|
7
|
+
background-color: $tp-co-stepper-step-incomplete-background-color;
|
|
8
|
+
}
|
|
9
|
+
&:not(.last):before {
|
|
10
|
+
background-color: $tp-co-stepper-step-complete-background-color;
|
|
11
|
+
}
|
|
12
|
+
.index {
|
|
13
|
+
//background-color: $tp-co-stepper-step-incomplete-background-color;
|
|
14
|
+
color: $tp-co-stepper-step-incomplete-background-color;
|
|
15
|
+
border-color: $tp-co-stepper-step-incomplete-background-color;
|
|
16
|
+
}
|
|
17
|
+
.description {
|
|
18
|
+
color: $tp-co-stepper-step-incomplete-description-color;
|
|
19
|
+
}
|
|
20
|
+
&.active {
|
|
21
|
+
.index {
|
|
22
|
+
background-color: $tp-co-stepper-step-active-background-color;
|
|
23
|
+
color: $tp-co-stepper-step-active-color;
|
|
24
|
+
border-color: $tp-co-stepper-step-active-background-color;
|
|
25
|
+
}
|
|
26
|
+
.description {
|
|
27
|
+
color: $tp-co-stepper-step-description-color;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
&.complete {
|
|
31
|
+
.index {
|
|
32
|
+
background-color: $tp-co-stepper-step-complete-background-color;
|
|
33
|
+
color: $tp-co-stepper-step-complete-color;
|
|
34
|
+
border-color: $tp-co-stepper-step-complete-background-color;
|
|
35
|
+
}
|
|
36
|
+
.description {
|
|
37
|
+
color: $tp-co-stepper-step-description-color;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
$tp-co-transaction-create-date-label-font-family: $tp-font-family !default;
|
|
2
|
+
$tp-co-transaction-create-date-label-font-size: $tp-font-size !default;
|
|
3
|
+
$tp-co-transaction-create-date-label-font-weight: normal !default;
|
|
4
|
+
$tp-co-transaction-create-date-label-color: $tp-color-font !default;
|
|
@@ -4,14 +4,19 @@ import { RelationKind } from '@colijnit/relationapi/build/enum/relation-kind.enu
|
|
|
4
4
|
import { TransactionHeaderPopupRelationComponent } from "../transaction-header/transaction-header-popup/transaction-header-popup-relation.component";
|
|
5
5
|
import { TransactionScreenConfigurationService } from "../../service/transaction-screen-configuration.service";
|
|
6
6
|
import { TransactionCreateService } from "../../service/transaction-create.service";
|
|
7
|
-
import { StepperStepComponent } from "../stepper/component/stepper-step.component";
|
|
8
7
|
import { TransactionHeaderPopupCreateServiceComponent } from "../transaction-header/transaction-header-popup/transaction-header-popup-create-service.component";
|
|
9
8
|
import { TransactionHeaderPopupServiceWizardComponent } from "../transaction-header/transaction-header-popup/transaction-header-popup-service-wizard.component";
|
|
10
9
|
import { TransactionHeaderPopupServiceFieldsComponent } from "../transaction-header/transaction-header-popup/transaction-header-popup-service-fields.component";
|
|
10
|
+
import { StepperStepComponent } from "../stepper-step/stepper-step.component";
|
|
11
|
+
import { TransactionInfoResponse } from "@colijnit/transactionapi/build/model/transaction-info-response.bo";
|
|
12
|
+
import { TransactionRelationService } from "../../service/transaction-relation.service";
|
|
13
|
+
import { SimpleVerticalStepperComponent } from "../simple-vertical-stepper/co-simple-vertical-stepper.component";
|
|
11
14
|
export declare class TransactionCreateWizardComponent implements OnInit {
|
|
12
15
|
createService: TransactionCreateService;
|
|
16
|
+
relationService: TransactionRelationService;
|
|
13
17
|
transactionScreenConfigurationService: TransactionScreenConfigurationService;
|
|
14
18
|
readonly transKind: typeof TransactionKind;
|
|
19
|
+
stepper: SimpleVerticalStepperComponent;
|
|
15
20
|
stepRelationSection: StepperStepComponent;
|
|
16
21
|
relationSection: TransactionHeaderPopupRelationComponent;
|
|
17
22
|
stepTransactionSection: StepperStepComponent;
|
|
@@ -21,14 +26,19 @@ export declare class TransactionCreateWizardComponent implements OnInit {
|
|
|
21
26
|
stepServiceFieldsSection: StepperStepComponent;
|
|
22
27
|
serviceFieldsSection: TransactionHeaderPopupServiceFieldsComponent;
|
|
23
28
|
transactionType: TransactionKind;
|
|
29
|
+
set externallyProvidedTransaction(transaction: TransactionInfoResponse);
|
|
30
|
+
set externallyProvidedLineNr(lineNr: number);
|
|
24
31
|
transactionFinished: EventEmitter<number>;
|
|
25
32
|
showClass(): boolean;
|
|
26
33
|
relationType: RelationKind;
|
|
27
|
-
|
|
34
|
+
private _externallyProvidedTransaction;
|
|
35
|
+
private _externallyProvidedLineNr;
|
|
36
|
+
constructor(createService: TransactionCreateService, relationService: TransactionRelationService, transactionScreenConfigurationService: TransactionScreenConfigurationService);
|
|
28
37
|
ngOnInit(): Promise<void>;
|
|
29
38
|
handleRelationValidation(): Promise<boolean>;
|
|
30
39
|
handleTransactionValidation(): Promise<boolean>;
|
|
31
40
|
handleWizardValidation(): Promise<boolean>;
|
|
32
41
|
handleServiceInfoValidation(): Promise<boolean>;
|
|
33
42
|
private _validateForArticleTransaction;
|
|
43
|
+
private _processExternalTransactionLine;
|
|
34
44
|
}
|
|
@@ -9,6 +9,7 @@ export declare class TransactionHeaderPopupCreateServiceComponent implements OnI
|
|
|
9
9
|
createViaProduct: boolean;
|
|
10
10
|
createViaOldTrans: boolean;
|
|
11
11
|
showCatalogPopup: boolean;
|
|
12
|
+
showTransLinePopup: boolean;
|
|
12
13
|
salesOrderId: string;
|
|
13
14
|
salesOrderLineNr: string;
|
|
14
15
|
chosenArticle: ArticleExtended;
|
|
@@ -21,10 +22,11 @@ export declare class TransactionHeaderPopupCreateServiceComponent implements OnI
|
|
|
21
22
|
constructor(formMasterService: FormMasterService);
|
|
22
23
|
ngOnInit(): Promise<void>;
|
|
23
24
|
submit(): boolean;
|
|
24
|
-
createOrderWithTransactionLineClicked():
|
|
25
|
-
createOrderWithArticleClicked():
|
|
26
|
-
createOrderFromSLAClicked():
|
|
25
|
+
createOrderWithTransactionLineClicked(): void;
|
|
26
|
+
createOrderWithArticleClicked(): void;
|
|
27
|
+
createOrderFromSLAClicked(): void;
|
|
27
28
|
searchArticleClicked_handler(): void;
|
|
29
|
+
searchTransactionClicked_handler(): void;
|
|
28
30
|
handleCatalogArticleClick(article: ArticleExtended): void;
|
|
29
31
|
private _prepareCatalogRequest;
|
|
30
32
|
}
|
|
@@ -18,12 +18,16 @@ export declare class TransactionQuickAccessReceivedGoodsComponent extends Transa
|
|
|
18
18
|
globalWarehouseLocation: string;
|
|
19
19
|
internalParamMLocat: boolean;
|
|
20
20
|
showProcessingLoader: boolean;
|
|
21
|
+
showWarehouseLocationButton: boolean;
|
|
22
|
+
warehouseNumber: number;
|
|
21
23
|
showClass(): boolean;
|
|
22
24
|
private _subs;
|
|
23
25
|
ngOnInit(): void;
|
|
24
26
|
ngOnDestroy(): void;
|
|
25
27
|
handleCommitEvent(): Promise<void>;
|
|
26
28
|
handleSelectAllLines(value: boolean): void;
|
|
29
|
+
handleGlobalLocationChange(location: string): void;
|
|
30
|
+
checkForLocationButtonVisibility(): void;
|
|
27
31
|
protected getDefaultEmailAddressList(): Promise<string[]>;
|
|
28
32
|
protected getDefaultSendMethod(): Promise<number>;
|
|
29
33
|
protected getEmailLayouts(): Promise<ReportLayoutSelectionEmail[]>;
|
|
@@ -32,5 +36,4 @@ export declare class TransactionQuickAccessReceivedGoodsComponent extends Transa
|
|
|
32
36
|
protected printDocument(printRequest: ReportingDocumentPrintSignDocBaseRequest): void;
|
|
33
37
|
protected emailDocument(emailInvoiceRequest: ReportingDocumentEmailSignDocBaseRequest): void;
|
|
34
38
|
protected transactionInfoSet(): void;
|
|
35
|
-
handleGlobalLocationChange(location: string): void;
|
|
36
39
|
}
|
package/package.json
CHANGED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { Component, EventEmitter, HostBinding, Input, Output, ViewEncapsulation } from "@angular/core";
|
|
2
|
-
export class StepperStepComponent {
|
|
3
|
-
constructor() {
|
|
4
|
-
this.index = 0;
|
|
5
|
-
this.show = false;
|
|
6
|
-
this.validateStep = new EventEmitter();
|
|
7
|
-
this._completed = false;
|
|
8
|
-
this.onComplete = (complete) => { };
|
|
9
|
-
}
|
|
10
|
-
set completed(value) {
|
|
11
|
-
this._completed = value;
|
|
12
|
-
this.onComplete(this._completed);
|
|
13
|
-
}
|
|
14
|
-
get completed() {
|
|
15
|
-
return this._completed;
|
|
16
|
-
}
|
|
17
|
-
showClass() {
|
|
18
|
-
return true;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
StepperStepComponent.decorators = [
|
|
22
|
-
{ type: Component, args: [{
|
|
23
|
-
selector: "co-stepper-step",
|
|
24
|
-
template: `
|
|
25
|
-
<ng-container *ngIf="show">
|
|
26
|
-
<ng-content></ng-content>
|
|
27
|
-
</ng-container>
|
|
28
|
-
`,
|
|
29
|
-
encapsulation: ViewEncapsulation.None
|
|
30
|
-
},] }
|
|
31
|
-
];
|
|
32
|
-
StepperStepComponent.propDecorators = {
|
|
33
|
-
index: [{ type: Input }],
|
|
34
|
-
label: [{ type: Input }],
|
|
35
|
-
completed: [{ type: Input }],
|
|
36
|
-
show: [{ type: HostBinding, args: ['class.show',] }, { type: Input }],
|
|
37
|
-
validateStep: [{ type: Output }],
|
|
38
|
-
showClass: [{ type: HostBinding, args: ["class.co-stepper-step",] }]
|
|
39
|
-
};
|
|
40
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RlcHBlci1zdGVwLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3RyYW5zYWN0aW9uL3NyYy9saWIvY29tcG9uZW50L3N0ZXBwZXIvY29tcG9uZW50L3N0ZXBwZXItc3RlcC5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFDLFNBQVMsRUFBRSxZQUFZLEVBQUUsV0FBVyxFQUFFLEtBQUssRUFBRSxNQUFNLEVBQUUsaUJBQWlCLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFXckcsTUFBTSxPQUFPLG9CQUFvQjtJQVRqQztRQVlTLFVBQUssR0FBVyxDQUFDLENBQUM7UUFpQmxCLFNBQUksR0FBWSxLQUFLLENBQUM7UUFHdEIsaUJBQVksR0FBdUIsSUFBSSxZQUFZLEVBQVEsQ0FBQztR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