@colijnit/transaction 300.1.33 → 300.1.34

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/index.d.ts CHANGED
@@ -336,6 +336,7 @@ import * as i13 from '@angular/cdk/drag-drop';
336
336
  import { CdkDrag, CdkDropList, CdkDragEnter, CdkDragDrop } from '@angular/cdk/drag-drop';
337
337
  import { TransactionLineType } from '@colijnit/transactionapi/build/enum/transaction-line-type.enum';
338
338
  import { TransactionLineMarginInfo } from '@colijnit/transactionapi/build/model/transaction-line-margin-info.bo';
339
+ import { TransactionType } from '@colijnit/transactionapi/build/enum/transaction-type.enum';
339
340
  import { PaymentLineType } from '@colijnit/transactionapi/build/enum/payment-line-type';
340
341
  import * as i4 from '@angular/cdk/scrolling';
341
342
  import { RelationContactLink } from '@colijnit/relationapi/build/model/relation-contact-link.bo';
@@ -960,6 +961,7 @@ declare class TransactionEventService {
960
961
  }>;
961
962
  readonly refreshHistoricReports: Subject<void>;
962
963
  readonly transactionCommitted: BehaviorSubject<boolean>;
964
+ readonly transactionSaved: Subject<void>;
963
965
  readonly transportContainerChosen: BehaviorSubject<Container>;
964
966
  readonly transportTransactionRequestUpdated: BehaviorSubject<SetMultipleTransportNotificationsInContainerOnSelectedLinesRequest>;
965
967
  readonly transportTransactionRemoveRequestUpdated: BehaviorSubject<RemoveTransactionFromContainerRequest>;
@@ -2231,6 +2233,7 @@ declare enum Icon {
2231
2233
  Remark = "remark",
2232
2234
  Resize = "resize",
2233
2235
  Return = "return",
2236
+ SaveDisk = "save_disk",
2234
2237
  ScrewdriverWrenchLight = "screwdriver_wrench_light",
2235
2238
  ScrewdriverWrenchRegular = "screwdriver_wrench_regular",
2236
2239
  ServiceCartRegular = "service_cart_regular",
@@ -2323,6 +2326,7 @@ declare class TransactionBaseService extends BaseModuleService implements OnDest
2323
2326
  currentTransactionDate: Date;
2324
2327
  autoSave: boolean;
2325
2328
  manualSaveParam: boolean;
2329
+ manualSaveOverride: boolean | undefined;
2326
2330
  applicationUser: boolean;
2327
2331
  invoiceAddressSameAsDelivery: boolean;
2328
2332
  afterSalesSystemParam: boolean;
@@ -2332,6 +2336,7 @@ declare class TransactionBaseService extends BaseModuleService implements OnDest
2332
2336
  headerReadonly: boolean;
2333
2337
  transactionDialogOpen: boolean;
2334
2338
  get manualSaveActive(): boolean;
2339
+ get autoSaveToggleAvailable(): boolean;
2335
2340
  set activeRubric(value: TransactionTypeCategory);
2336
2341
  get activeRubric(): TransactionTypeCategory;
2337
2342
  getRelationOnRememberCurrentTransaction: boolean;
@@ -2414,6 +2419,7 @@ declare class TransactionBaseService extends BaseModuleService implements OnDest
2414
2419
  prepareDirectSellInternalParam(): Promise<void>;
2415
2420
  prepareJsPickingListInternalParam(): Promise<void>;
2416
2421
  prepareManualSaveInternalParam(): void;
2422
+ setManualSave(manualSave: boolean): Promise<void>;
2417
2423
  prepareAfterSalesSystemParam(): Promise<void>;
2418
2424
  prepareCanChangeRelationParam(): Promise<void>;
2419
2425
  prepareCanChangeSalesOrderWhenFullyInvoicedParam(): Promise<void>;
@@ -2445,6 +2451,8 @@ declare class TransactionBaseService extends BaseModuleService implements OnDest
2445
2451
  getRefTransactions(transId: number): Promise<RefTransaction[]>;
2446
2452
  getPurchasePortalLines(request: GetPurchasePortalLine): Promise<PurchasePortalLine[]>;
2447
2453
  saveTransactionAndCommit(response?: TransactionInfoResponse, commitTransaction?: boolean): Promise<boolean>;
2454
+ saveTransactionAndCommitIfAutoSave(response: TransactionInfoResponse): Promise<boolean>;
2455
+ saveTransactionAndCommitIfDirty(): Promise<boolean>;
2448
2456
  rememberCurrentTransaction(value: TransactionInfoResponse, fromHeader?: boolean): Promise<void>;
2449
2457
  checkRefTransaction(): Promise<void>;
2450
2458
  refreshCurrentTransaction(): Promise<void>;
@@ -2552,7 +2560,7 @@ declare class TransactionService extends PendingReasonService {
2552
2560
  changeHeaderTransactionType(uuid: string, transactionType: string, saveTransaction: boolean): Promise<boolean>;
2553
2561
  updateHeaderTransactionProjectCode(uuid: string, projectCode: number, saveTransaction: boolean): Promise<boolean>;
2554
2562
  updateHeaderTransactionPaymentCondition(uuid: string, condition: string, saveTransaction: boolean): Promise<boolean>;
2555
- updateHeaderTransactionHanldedBy(uuid: string, handledBy: number, saveTransaction: boolean, lock?: boolean): Promise<boolean>;
2563
+ updateHeaderTransactionHandledBy(uuid: string, handledBy: number, saveTransaction: boolean, lock?: boolean): Promise<boolean>;
2556
2564
  updateHeaderTransactionMarketing(uuid: string, code: string, saveTransaction: boolean): Promise<boolean>;
2557
2565
  updateHeaderTransactionDiscount(uuid: string, type: DiscountType, amount: number, saveTransaction: boolean, reason?: string, code?: string): Promise<boolean>;
2558
2566
  updateHeaderTransactionScoringChance(request: ChangeHeaderScoringChanceRequest, saveTransaction: boolean): Promise<boolean>;
@@ -5110,6 +5118,7 @@ declare class TransactionOverviewLineComponent extends TransactionLineBaseCompon
5110
5118
  protected dictionaryService: DictionaryService;
5111
5119
  protected changeDetector: ChangeDetectorRef;
5112
5120
  readonly category: typeof TransactionTypeCategory;
5121
+ readonly TransactionType: typeof TransactionType;
5113
5122
  readonly icons: typeof Icon;
5114
5123
  readonly isNaN: typeof isNaN;
5115
5124
  readonly TableName: typeof TableName;
@@ -7860,6 +7869,7 @@ declare class TransactionSearchSalesLineSelectTileComponent extends TransactionS
7860
7869
  iconCacheService: IconCacheService;
7861
7870
  transactionService: TransactionService;
7862
7871
  changeDetector: ChangeDetectorRef;
7872
+ readonly TransactionType: typeof TransactionType;
7863
7873
  showClass(): boolean;
7864
7874
  extendedTransactionSearch: boolean;
7865
7875
  returnWizardLayout: boolean;
@@ -7935,6 +7945,7 @@ declare class TransactionLineTileModule {
7935
7945
  declare class TransactionOrderTileComponent extends TransactionSearchTileBaseComponent {
7936
7946
  iconCacheService: IconCacheService;
7937
7947
  changeDetector: ChangeDetectorRef;
7948
+ readonly TransactionType: typeof TransactionType;
7938
7949
  statusBarConfigNames: StatusBarCfgNames;
7939
7950
  set showAvatar(value: boolean);
7940
7951
  get showAvatar(): boolean;
@@ -14502,6 +14513,7 @@ declare class TransactionSalesReservationPopupComponent implements OnInit {
14502
14513
 
14503
14514
  declare class TransactionHeaderComponent {
14504
14515
  iconCacheService: IconCacheService;
14516
+ transactionService: TransactionService;
14505
14517
  readonly cfgNames: typeof TransactionCfgName;
14506
14518
  readonly icons: typeof Icon;
14507
14519
  toggleHeader: boolean;
@@ -14514,8 +14526,9 @@ declare class TransactionHeaderComponent {
14514
14526
  isCashOrPurchaseQuotationOrder: boolean;
14515
14527
  isSalesQuotationOrder: boolean;
14516
14528
  private _transaction;
14517
- constructor(iconCacheService: IconCacheService);
14529
+ constructor(iconCacheService: IconCacheService, transactionService: TransactionService);
14518
14530
  expandHeader(): void;
14531
+ toggleAutoSave(): void;
14519
14532
  static ɵfac: i0.ɵɵFactoryDeclaration<TransactionHeaderComponent, never>;
14520
14533
  static ɵcmp: i0.ɵɵComponentDeclaration<TransactionHeaderComponent, "co-transaction-header", never, { "transaction": { "alias": "transaction"; "required": false; }; }, {}, never, never, false, never>;
14521
14534
  }
@@ -14682,7 +14695,7 @@ declare class TransactionHeaderPaymentModule {
14682
14695
 
14683
14696
  declare class TransactionHeaderModule {
14684
14697
  static ɵfac: i0.ɵɵFactoryDeclaration<TransactionHeaderModule, never>;
14685
- static ɵmod: i0.ɵɵNgModuleDeclaration<TransactionHeaderModule, [typeof TransactionHeaderComponent], [typeof i2.CommonModule, typeof CoreModule, typeof TransactionHeaderRelationModule, typeof TransactionHeaderDeliveryModule, typeof TransactionHeaderOrderModule, typeof TransactionHeaderPaymentModule, typeof TransactionHeaderPopupModule, typeof i3.CarouselModule, typeof i3.IconModule, typeof i3.ScreenConfigurationModule], [typeof TransactionHeaderComponent]>;
14698
+ static ɵmod: i0.ɵɵNgModuleDeclaration<TransactionHeaderModule, [typeof TransactionHeaderComponent], [typeof i2.CommonModule, typeof CoreModule, typeof TransactionHeaderRelationModule, typeof TransactionHeaderDeliveryModule, typeof TransactionHeaderOrderModule, typeof TransactionHeaderPaymentModule, typeof TransactionHeaderPopupModule, typeof i3.CarouselModule, typeof i3.IconModule, typeof i3.ScreenConfigurationModule, typeof PipeModule, typeof i3.TooltipDirectiveModule], [typeof TransactionHeaderComponent]>;
14686
14699
  static ɵinj: i0.ɵɵInjectorDeclaration<TransactionHeaderModule>;
14687
14700
  }
14688
14701
 
@@ -17256,7 +17269,7 @@ declare class TransactionHeaderCustomerPortalComponent {
17256
17269
 
17257
17270
  declare class TransactionHeaderCustomerPortalModule {
17258
17271
  static ɵfac: i0.ɵɵFactoryDeclaration<TransactionHeaderCustomerPortalModule, never>;
17259
- static ɵmod: i0.ɵɵNgModuleDeclaration<TransactionHeaderCustomerPortalModule, [typeof TransactionHeaderCustomerPortalComponent], [typeof i2.CommonModule, typeof CoreModule, typeof TransactionHeaderRelationModule, typeof TransactionHeaderDeliveryModule, typeof TransactionHeaderOrderModule, typeof TransactionHeaderPaymentModule, typeof TransactionHeaderPopupModule, typeof i3.CarouselModule, typeof i3.IconModule, typeof i3.ScreenConfigurationModule, typeof PipeModule, typeof DialogTransactionHeaderPlanningRequest], [typeof TransactionHeaderCustomerPortalComponent]>;
17272
+ static ɵmod: i0.ɵɵNgModuleDeclaration<TransactionHeaderCustomerPortalModule, [typeof TransactionHeaderCustomerPortalComponent], [typeof i2.CommonModule, typeof CoreModule, typeof TransactionHeaderRelationModule, typeof TransactionHeaderDeliveryModule, typeof TransactionHeaderOrderModule, typeof TransactionHeaderPaymentModule, typeof TransactionHeaderPopupModule, typeof i3.CarouselModule, typeof i3.IconModule, typeof i3.ScreenConfigurationModule, typeof PipeModule, typeof DialogTransactionHeaderPlanningRequest, typeof i3.TooltipDirectiveModule], [typeof TransactionHeaderCustomerPortalComponent]>;
17260
17273
  static ɵinj: i0.ɵɵInjectorDeclaration<TransactionHeaderCustomerPortalModule>;
17261
17274
  }
17262
17275
 
@@ -5,7 +5,6 @@
5
5
  display: block;
6
6
  font-family: $tp-co-transaction-header-font-family;
7
7
  font-size: $tp-co-transaction-header-font-size;
8
- cursor: pointer;
9
8
  .transaction-header-wrapper {
10
9
  display: flex;
11
10
  flex-direction: row;
@@ -68,6 +67,23 @@
68
67
  margin: $tp-co-transaction-header-divider-margin;
69
68
  }
70
69
  }
70
+ .transaction-delivery-carousel-wrapper {
71
+ display: flex;
72
+ align-items: center;
73
+ justify-content: flex-end;
74
+ .auto-save-toggle-icon-wrapper {
75
+ cursor: pointer;
76
+ margin: $tp-co-transaction-header-auto-save-toggle-icon-wrapper-margin;
77
+ padding: $tp-co-transaction-header-auto-save-toggle-icon-wrapper-padding;
78
+ border-radius: $tp-co-transaction-header-auto-save-toggle-icon-wrapper-border-radius;
79
+ border-width: $tp-co-transaction-header-auto-save-toggle-icon-wrapper-border-width;
80
+ border-style: $tp-co-transaction-header-auto-save-toggle-icon-wrapper-border-style;
81
+ }
82
+ .auto-save-toggle-icon {
83
+ width: $tp-co-transaction-header-auto-save-toggle-icon-size;
84
+ height: $tp-co-transaction-header-auto-save-toggle-icon-size;
85
+ }
86
+ }
71
87
  .expand-transaction-header {
72
88
  width: $tp-co-transaction-header-expand-button-size;
73
89
  height: $tp-co-transaction-header-expand-button-size;
@@ -83,7 +99,7 @@
83
99
  height: $tp-co-transaction-header-expand-button-icon-size;
84
100
  }
85
101
  }
86
- co-transaction-header-delivery-date {
102
+ .co-transaction-header-delivery-date {
87
103
  .input-text-wrapper {
88
104
  align-items: center;
89
105
  .input-wrapper {
@@ -18,3 +18,12 @@ $tp-co-transaction-header-expand-button-bottom: -10px !default;
18
18
  $tp-co-transaction-header-expand-button-border-radius: 100% !default;
19
19
  $tp-co-transaction-header-expand-button-icon-size: 20px !default;
20
20
 
21
+ $tp-co-transaction-header-auto-save-toggle-icon-wrapper-padding: 4px !default;
22
+ $tp-co-transaction-header-auto-save-toggle-icon-wrapper-margin: 0 10px 0 0 !default;
23
+ $tp-co-transaction-header-auto-save-toggle-icon-wrapper-border-width: 1px !default;
24
+ $tp-co-transaction-header-auto-save-toggle-icon-wrapper-border-style: solid !default;
25
+ $tp-co-transaction-header-auto-save-toggle-icon-wrapper-border-color: #F4F4F9 !default;
26
+ $tp-co-transaction-header-auto-save-toggle-icon-wrapper-border-radius: 4px !default;
27
+ $tp-co-transaction-header-auto-save-toggle-icon-size: 20px !default;
28
+ $tp-co-transaction-header-auto-save-toggle-icon-background: #F4F4F9 !default;
29
+ $tp-co-transaction-header-auto-save-toggle-icon-background-active: $tp-color-action !default;
@@ -10,5 +10,20 @@
10
10
  .transaction-header-divider {
11
11
  background-color: $tp-co-transaction-header-border-color;
12
12
  }
13
+ .transaction-delivery-carousel-wrapper {
14
+ .auto-save-toggle-icon-wrapper {
15
+ border-color: $tp-co-transaction-header-auto-save-toggle-icon-wrapper-border-color;
16
+ }
17
+ .auto-save-toggle-icon {
18
+ &.active {
19
+ svg { // for fontawesome icons
20
+ fill: $tp-co-transaction-header-auto-save-toggle-icon-background-active;
21
+ }
22
+ & [fill] { // for own icons
23
+ fill: $tp-co-transaction-header-auto-save-toggle-icon-background-active;
24
+ }
25
+ }
26
+ }
27
+ }
13
28
  }
14
29
  }
@@ -144,7 +144,7 @@
144
144
  border-radius: 4px;
145
145
  display: flex;
146
146
  gap: 10px;
147
- co-icon {
147
+ .co-icon {
148
148
  height: 20px;
149
149
  width: 20px;
150
150
  &.active {
@@ -3,7 +3,6 @@
3
3
  @include export-module('co-transaction-header-relation-layout') {
4
4
  .co-transaction-header-relation {
5
5
  display: flex;
6
- cursor: pointer;
7
6
  .transaction-header-relation-dialog {
8
7
  .co-transaction-header-block {
9
8
  padding: 4px 0;
@@ -10,11 +10,6 @@
10
10
  padding: $tp-transaction-line-padding;
11
11
  border-width: $tp-transaction-line-border-width;
12
12
  position: relative;
13
- &.active {
14
- box-shadow: 0 0 3px 2px #1a73e8a3;
15
- border-radius: 4px;
16
- border-color: #1a73e873;
17
- }
18
13
  .transaction-base-line-wrapper {
19
14
  column-gap: $tp-transaction-line-column-gap;
20
15
  }
@@ -82,7 +82,7 @@
82
82
  gap: 0;
83
83
  }
84
84
  .button-title {
85
- font-size: 9px;
85
+ font-size: $tp-transaction-line-side-panel-button-wrapper-title-font-size;
86
86
  }
87
87
  .co-transaction-button-bar-button {
88
88
  .button-wrapper {
@@ -254,6 +254,7 @@
254
254
  .co-transaction-button-bar {
255
255
  .button-wrapper {
256
256
  background: $tp-transaction-line-side-panel-background;
257
+ padding: $tp-transaction-line-side-panel-button-wrapper-padding;
257
258
  }
258
259
  }
259
260
  .co-simple-grid {
@@ -24,6 +24,8 @@ $tp-transaction-line-side-panel-simple-grid-background: #f8f8fa !default;
24
24
  $tp-transaction-line-side-panel-simple-grid-font-size: 10px !default;
25
25
  $tp-transaction-line-side-panel-simple-grid-padding: 5px !default;
26
26
  $tp-transaction-line-side-panel-simple-grid-border-radius: 0 !default;
27
+ $tp-transaction-line-side-panel-button-wrapper-padding: 0 3px !default;
28
+ $tp-transaction-line-side-panel-button-wrapper-title-font-size: 8px !default;
27
29
 
28
30
  $tp-transaction-line-side-history-grid-padding: 15px 30px !default;
29
31
  $tp-transaction-line-side-history-grid-header-vertical-align: baseline !default;
@@ -31,6 +31,9 @@
31
31
  display: flex;
32
32
  align-items: center;
33
33
  position: relative;
34
+ &.active {
35
+ border: solid 2px rgb(26 115 232 / 38%);
36
+ }
34
37
  }
35
38
 
36
39
  .draggable-transaction-line.cdk-drag-placeholder {
@@ -47,6 +50,9 @@
47
50
 
48
51
  .draggable-transaction-line:last-child {
49
52
  border: none;
53
+ &.active {
54
+ border: solid 2px rgb(26 115 232 / 38%);
55
+ }
50
56
  }
51
57
  .transaction-lines-drag-drop-list.cdk-drop-list-dragging .draggable-transaction-line:not(.cdk-drag-placeholder) {
52
58
  transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);
@@ -1,9 +1,6 @@
1
1
  @import url('https://fonts.googleapis.com/css2?family=Public+Sans:wght@100;200;300;400;500;600;800;900&display=swap');
2
2
 
3
3
  @import "./variables";
4
- @import "../component/transaction-line/transaction-line-toolbar/style/material";
5
- @import "../component/transaction-sales-person-input/style/material";
6
- @import "../component/transaction-header-handled-by/style/material";
7
4
 
8
5
  .co-transaction-hidden {
9
6
  display: none !important; // todo find other way to hide components, eg remove from dom
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@colijnit/transaction",
3
- "version": "300.1.33",
3
+ "version": "300.1.34",
4
4
  "description": "Colijn IT transaction module for Angular 20",
5
5
  "repository": "npm/npm",
6
6
  "author": "Colijn IT",
@@ -19,7 +19,7 @@
19
19
  "@colijnit/relationapi": ">=300.1.1",
20
20
  "@colijnit/sharedapi": ">=1.0.20",
21
21
  "@colijnit/sharedcomponents": ">=300.1.13",
22
- "@colijnit/transactionapi": ">=300.1.15"
22
+ "@colijnit/transactionapi": ">=300.1.16"
23
23
  },
24
24
  "dependencies": {
25
25
  "tslib": "^2.8.1"