@colijnit/transaction 262.1.60 → 262.1.62

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
@@ -954,6 +954,7 @@ declare class TransactionEventService {
954
954
  }>;
955
955
  readonly refreshHistoricReports: Subject<void>;
956
956
  readonly transactionCommitted: BehaviorSubject<boolean>;
957
+ readonly transactionSaved: Subject<void>;
957
958
  readonly transportContainerChosen: BehaviorSubject<Container>;
958
959
  readonly transportTransactionRequestUpdated: BehaviorSubject<SetMultipleTransportNotificationsInContainerOnSelectedLinesRequest>;
959
960
  readonly transportTransactionRemoveRequestUpdated: BehaviorSubject<RemoveTransactionFromContainerRequest>;
@@ -2204,6 +2205,7 @@ declare enum Icon {
2204
2205
  RegularWarehouseClock = "regular_warehouse_clock",
2205
2206
  Remark = "remark",
2206
2207
  Resize = "resize",
2208
+ SaveDisk = "save_disk",
2207
2209
  ScrewdriverWrenchLight = "screwdriver_wrench_light",
2208
2210
  ScrewdriverWrenchRegular = "screwdriver_wrench_regular",
2209
2211
  ServiceCartRegular = "service_cart_regular",
@@ -2294,6 +2296,7 @@ declare class TransactionBaseService extends BaseModuleService implements OnDest
2294
2296
  currentBranch: string;
2295
2297
  autoSave: boolean;
2296
2298
  manualSaveParam: boolean;
2299
+ manualSaveOverride: boolean | undefined;
2297
2300
  applicationUser: boolean;
2298
2301
  invoiceAddressSameAsDelivery: boolean;
2299
2302
  afterSalesSystemParam: boolean;
@@ -2303,6 +2306,7 @@ declare class TransactionBaseService extends BaseModuleService implements OnDest
2303
2306
  headerReadonly: boolean;
2304
2307
  transactionDialogOpen: boolean;
2305
2308
  get manualSaveActive(): boolean;
2309
+ get autoSaveToggleAvailable(): boolean;
2306
2310
  set activeRubric(value: TransactionTypeCategory);
2307
2311
  get activeRubric(): TransactionTypeCategory;
2308
2312
  getRelationOnRememberCurrentTransaction: boolean;
@@ -2385,6 +2389,7 @@ declare class TransactionBaseService extends BaseModuleService implements OnDest
2385
2389
  prepareDirectSellInternalParam(): Promise<void>;
2386
2390
  prepareJsPickingListInternalParam(): Promise<void>;
2387
2391
  prepareManualSaveInternalParam(): void;
2392
+ setManualSave(manualSave: boolean): Promise<void>;
2388
2393
  prepareAfterSalesSystemParam(): Promise<void>;
2389
2394
  prepareCanChangeRelationParam(): Promise<void>;
2390
2395
  prepareCanChangeSalesOrderWhenFullyInvoicedParam(): Promise<void>;
@@ -2414,6 +2419,8 @@ declare class TransactionBaseService extends BaseModuleService implements OnDest
2414
2419
  getRefTransactions(transId: number): Promise<RefTransaction[]>;
2415
2420
  getPurchasePortalLines(request: GetPurchasePortalLine): Promise<PurchasePortalLine[]>;
2416
2421
  saveTransactionAndCommit(response?: TransactionInfoResponse, commitTransaction?: boolean): Promise<boolean>;
2422
+ saveTransactionAndCommitIfAutoSave(response: TransactionInfoResponse): Promise<boolean>;
2423
+ saveTransactionAndCommitIfDirty(): Promise<boolean>;
2417
2424
  rememberCurrentTransaction(value: TransactionInfoResponse): Promise<void>;
2418
2425
  checkRefTransaction(): Promise<void>;
2419
2426
  refreshCurrentTransaction(): Promise<void>;
@@ -2518,7 +2525,7 @@ declare class TransactionService extends PendingReasonService {
2518
2525
  changeHeaderTransactionType(uuid: string, transactionType: string, saveTransaction: boolean): Promise<boolean>;
2519
2526
  updateHeaderTransactionProjectCode(uuid: string, projectCode: number, saveTransaction: boolean): Promise<boolean>;
2520
2527
  updateHeaderTransactionPaymentCondition(uuid: string, condition: string, saveTransaction: boolean): Promise<boolean>;
2521
- updateHeaderTransactionHanldedBy(uuid: string, handledBy: number, saveTransaction: boolean, lock?: boolean): Promise<boolean>;
2528
+ updateHeaderTransactionHandledBy(uuid: string, handledBy: number, saveTransaction: boolean, lock?: boolean): Promise<boolean>;
2522
2529
  updateHeaderTransactionMarketing(uuid: string, code: string, saveTransaction: boolean): Promise<boolean>;
2523
2530
  updateHeaderTransactionDiscount(uuid: string, type: DiscountType, amount: number, saveTransaction: boolean, reason?: string, code?: string): Promise<boolean>;
2524
2531
  updateHeaderTransactionScoringChance(request: ChangeHeaderScoringChanceRequest, saveTransaction: boolean): Promise<boolean>;
@@ -10047,7 +10054,7 @@ declare class TransactionSalesOverviewButtonBarButtonComponent extends Transacti
10047
10054
  showCategories: boolean;
10048
10055
  constructor(iconCacheService: IconCacheService, changeDetector: ChangeDetectorRef, _transactionEventService: TransactionEventService, _mappingService: TransactionMappingService, _dictionaryService: DictionaryService, _screenConfigService: TransactionScreenConfigurationService, _transactionService: TransactionService, _elementRef: ElementRef, _renderer: Renderer2, _transactionBaseService: TransactionService);
10049
10056
  currentIcon(): Icon.CartShoppingRegular | Icon.ChartPieSimpleRegular;
10050
- currentTitle(): "OVERVIEW" | "MARGINS";
10057
+ currentTitle(): "MARGINS" | "OVERVIEW";
10051
10058
  ngOnDestroy(): void;
10052
10059
  handleClickWrapper(event: MouseEvent): void;
10053
10060
  handleMarginClicked(event: MouseEvent, category: TransactionTypeCategory): void;
@@ -10073,7 +10080,7 @@ declare class TransactionPurchaseOverviewButtonBarButtonComponent extends Transa
10073
10080
  constructor(iconCacheService: IconCacheService, transactionHeaderService: TransactionHeaderService, transactionEventService: TransactionEventService, changeDetector: ChangeDetectorRef, _mappingService: TransactionMappingService, _transactionService: TransactionService, _elementRef: ElementRef);
10074
10081
  ngOnDestroy(): void;
10075
10082
  currentIcon(): Icon.CartShoppingRegular | Icon.ChartPieSimpleRegular;
10076
- currentTitle(): "OVERVIEW" | "MARGINS";
10083
+ currentTitle(): "MARGINS" | "OVERVIEW";
10077
10084
  handleClickWrapper(event: MouseEvent): void;
10078
10085
  handleMarginClicked(event: MouseEvent, category: TransactionTypeCategory): Promise<void>;
10079
10086
  private handleDocumentClick;
@@ -10125,7 +10132,7 @@ declare class TransactionSalesQuotationButtonBarButtonComponent extends Transact
10125
10132
  showCategories: boolean;
10126
10133
  constructor(iconCacheService: IconCacheService, changeDetector: ChangeDetectorRef, _transactionEventService: TransactionEventService, _mappingService: TransactionMappingService, _dictionaryService: DictionaryService, _screenConfigService: TransactionScreenConfigurationService, _transactionService: TransactionService, _elementRef: ElementRef, _renderer: Renderer2, _transactionBaseService: TransactionService);
10127
10134
  currentIcon(): Icon.CartShoppingRegular | Icon.ChartPieSimpleRegular;
10128
- currentTitle(): "OVERVIEW" | "MARGINS";
10135
+ currentTitle(): "MARGINS" | "OVERVIEW";
10129
10136
  ngOnDestroy(): void;
10130
10137
  handleClickWrapper(event: MouseEvent): void;
10131
10138
  handleMarginClicked(event: MouseEvent, category: TransactionTypeCategory): void;
@@ -14188,6 +14195,7 @@ declare class TransactionSalesReservationPopupComponent implements OnInit {
14188
14195
 
14189
14196
  declare class TransactionHeaderComponent {
14190
14197
  iconCacheService: IconCacheService;
14198
+ transactionService: TransactionService;
14191
14199
  readonly cfgNames: typeof TransactionCfgName;
14192
14200
  readonly icons: typeof Icon;
14193
14201
  toggleHeader: boolean;
@@ -14200,8 +14208,9 @@ declare class TransactionHeaderComponent {
14200
14208
  isCashOrPurchaseQuotationOrder: boolean;
14201
14209
  isSalesQuotationOrder: boolean;
14202
14210
  private _transaction;
14203
- constructor(iconCacheService: IconCacheService);
14211
+ constructor(iconCacheService: IconCacheService, transactionService: TransactionService);
14204
14212
  expandHeader(): void;
14213
+ toggleAutoSave(): void;
14205
14214
  static ɵfac: i0.ɵɵFactoryDeclaration<TransactionHeaderComponent, never>;
14206
14215
  static ɵcmp: i0.ɵɵComponentDeclaration<TransactionHeaderComponent, "co-transaction-header", never, { "transaction": { "alias": "transaction"; "required": false; }; }, {}, never, never, false, never>;
14207
14216
  }
@@ -14368,7 +14377,7 @@ declare class TransactionHeaderPaymentModule {
14368
14377
 
14369
14378
  declare class TransactionHeaderModule {
14370
14379
  static ɵfac: i0.ɵɵFactoryDeclaration<TransactionHeaderModule, never>;
14371
- 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]>;
14380
+ 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]>;
14372
14381
  static ɵinj: i0.ɵɵInjectorDeclaration<TransactionHeaderModule>;
14373
14382
  }
14374
14383
 
@@ -16663,7 +16672,7 @@ declare class TransactionHeaderCustomerPortalComponent {
16663
16672
 
16664
16673
  declare class TransactionHeaderCustomerPortalModule {
16665
16674
  static ɵfac: i0.ɵɵFactoryDeclaration<TransactionHeaderCustomerPortalModule, never>;
16666
- 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]>;
16675
+ 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]>;
16667
16676
  static ɵinj: i0.ɵɵInjectorDeclaration<TransactionHeaderCustomerPortalModule>;
16668
16677
  }
16669
16678
 
@@ -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;
@@ -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": "262.1.60",
3
+ "version": "262.1.62",
4
4
  "description": "Colijn IT transaction module for Angular 20",
5
5
  "repository": "npm/npm",
6
6
  "author": "Colijn IT",