@colijnit/transaction 300.1.43 → 300.1.45

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
@@ -313,7 +313,7 @@ import { DocDeliveryBatch } from '@colijnit/transactionapi/build/model/doc-deliv
313
313
  import * as i5 from '@colijnit/relation';
314
314
  import { RelationService } from '@colijnit/relation';
315
315
  import * as i6 from '@colijnit/sharedcomponents';
316
- import { SharedService, AgendaEventPerDay, StatusbarData, CalendarView, SendMethod, WeekStart, FormBuilderUserFormComponent, ComponentActivityListComponent, ActivityTimelineComponent } from '@colijnit/sharedcomponents';
316
+ import { SharedService, AgendaEventPerDay, StockTransactionClick, StatusbarData, CalendarView, SendMethod, WeekStart, FormBuilderUserFormComponent, ComponentActivityListComponent, ActivityTimelineComponent } from '@colijnit/sharedcomponents';
317
317
  import { ExternalCatalogAddArticleRequest } from '@colijnit/transactionapi/build/model/external-catalog-add-article-request';
318
318
  import { TransactionDeliveryCostLineInfo } from '@colijnit/transactionapi/build/model/transaction-delivery-cost-line-info.bo';
319
319
  import { UserRoleType } from '@colijnit/ioneconnector/build/enum/user-role-type.enum';
@@ -2482,6 +2482,8 @@ declare class TransactionBaseService extends BaseModuleService implements OnDest
2482
2482
  private _getRelation;
2483
2483
  private _setAmount;
2484
2484
  private _shouldCheckRefTransactions;
2485
+ private _getCurrentTransactionInfo;
2486
+ private _saveDirtyTransactionBeforeOpeningOther;
2485
2487
  static ɵfac: i0.ɵɵFactoryDeclaration<TransactionBaseService, never>;
2486
2488
  static ɵprov: i0.ɵɵInjectableDeclaration<TransactionBaseService>;
2487
2489
  }
@@ -7495,7 +7497,7 @@ declare class DialogCatalogComponent implements OnInit, OnDestroy {
7495
7497
  handleIFrameFeedback(json: string): void;
7496
7498
  handleCatFarmArticleClicked(data: ExternalSourceArticleClickInterface): void;
7497
7499
  handleAddCatFarmArticleClicked(data: ExternalSourceArticleAddInterface): void;
7498
- handleTransactionNavigation(transNr: string): void;
7500
+ handleTransactionNavigation(transaction: StockTransactionClick): void;
7499
7501
  handleOnAlternativeClick(article: any): Promise<void>;
7500
7502
  addConfiguredArticle(variantString: string): Promise<void>;
7501
7503
  searchRequestChange(searchRequest: ArticleExtendedRequest): void;
@@ -10286,7 +10288,7 @@ declare class TransactionSalesOverviewButtonBarButtonComponent extends Transacti
10286
10288
  showCategories: boolean;
10287
10289
  constructor(iconCacheService: IconCacheService, changeDetector: ChangeDetectorRef, _transactionEventService: TransactionEventService, _mappingService: TransactionMappingService, _dictionaryService: DictionaryService, _screenConfigService: TransactionScreenConfigurationService, _transactionService: TransactionService, _elementRef: ElementRef, _renderer: Renderer2, _transactionBaseService: TransactionService);
10288
10290
  currentIcon(): Icon.CartShoppingRegular | Icon.ChartPieSimpleRegular;
10289
- currentTitle(): "MARGINS" | "OVERVIEW";
10291
+ currentTitle(): "OVERVIEW" | "MARGINS";
10290
10292
  ngOnDestroy(): void;
10291
10293
  handleClickWrapper(event: MouseEvent): void;
10292
10294
  handleMarginClicked(event: MouseEvent, category: TransactionTypeCategory): void;
@@ -10312,7 +10314,7 @@ declare class TransactionPurchaseOverviewButtonBarButtonComponent extends Transa
10312
10314
  constructor(iconCacheService: IconCacheService, transactionHeaderService: TransactionHeaderService, transactionEventService: TransactionEventService, changeDetector: ChangeDetectorRef, _mappingService: TransactionMappingService, _transactionService: TransactionService, _elementRef: ElementRef);
10313
10315
  ngOnDestroy(): void;
10314
10316
  currentIcon(): Icon.CartShoppingRegular | Icon.ChartPieSimpleRegular;
10315
- currentTitle(): "MARGINS" | "OVERVIEW";
10317
+ currentTitle(): "OVERVIEW" | "MARGINS";
10316
10318
  handleClickWrapper(event: MouseEvent): void;
10317
10319
  handleMarginClicked(event: MouseEvent, category: TransactionTypeCategory): Promise<void>;
10318
10320
  private handleDocumentClick;
@@ -10364,7 +10366,7 @@ declare class TransactionSalesQuotationButtonBarButtonComponent extends Transact
10364
10366
  showCategories: boolean;
10365
10367
  constructor(iconCacheService: IconCacheService, changeDetector: ChangeDetectorRef, _transactionEventService: TransactionEventService, _mappingService: TransactionMappingService, _dictionaryService: DictionaryService, _screenConfigService: TransactionScreenConfigurationService, _transactionService: TransactionService, _elementRef: ElementRef, _renderer: Renderer2, _transactionBaseService: TransactionService);
10366
10368
  currentIcon(): Icon.CartShoppingRegular | Icon.ChartPieSimpleRegular;
10367
- currentTitle(): "MARGINS" | "OVERVIEW";
10369
+ currentTitle(): "OVERVIEW" | "MARGINS";
10368
10370
  ngOnDestroy(): void;
10369
10371
  handleClickWrapper(event: MouseEvent): void;
10370
10372
  handleMarginClicked(event: MouseEvent, category: TransactionTypeCategory): void;
@@ -11182,6 +11184,7 @@ declare class DeliveryPlanningOverviewTileComponent implements OnInit, OnDestroy
11182
11184
  transId: number;
11183
11185
  start: Date;
11184
11186
  end: Date;
11187
+ fromCalendar: boolean;
11185
11188
  }>;
11186
11189
  deleteOrderLineEvent: EventEmitter<{
11187
11190
  order: PlanOrder;
@@ -11253,6 +11256,7 @@ declare class DeliveryPlanningOverviewTileComponent implements OnInit, OnDestroy
11253
11256
  end: Date;
11254
11257
  id: number;
11255
11258
  }): void;
11259
+ private _draggedOrder;
11256
11260
  handleMapClicked(mouseEvent: MouseEvent, transport: PlanningTransportWeekDay): void;
11257
11261
  handleDropdownClicked(event: MouseEvent): void;
11258
11262
  handleDropdownActionClicked(clickAction: DeliveryPlanningTileDropdownActions): void;
@@ -11365,6 +11369,7 @@ declare class DeliveryPlanningOverviewComponent implements OnInit, OnDestroy {
11365
11369
  start: Date;
11366
11370
  end: Date;
11367
11371
  transId: number;
11372
+ fromCalendar: boolean;
11368
11373
  }, transportWeekDay: PlanningTransportWeekDay, week: PlanningTransportWeekDay[]): Promise<void>;
11369
11374
  handleMoveNormalEvent(transId: string, transport: PlanningTransportWeekDay, week: PlanningTransportWeekDay[], weekArr: PlanningTransportWeekDay[][]): Promise<void>;
11370
11375
  handleReorderOrder(event: {
@@ -11897,6 +11902,7 @@ declare class TransactionSearchTileModule {
11897
11902
 
11898
11903
  declare class QuickSendButtonComponent {
11899
11904
  iconCacheService: IconCacheService;
11905
+ private _transactionService;
11900
11906
  readonly icons: typeof Icon;
11901
11907
  title: string;
11902
11908
  icon: Icon;
@@ -11908,7 +11914,10 @@ declare class QuickSendButtonComponent {
11908
11914
  showClass(): boolean;
11909
11915
  openSendMethodDialog: EventEmitter<MouseEvent>;
11910
11916
  sendIconClicked: EventEmitter<MouseEvent>;
11911
- constructor(iconCacheService: IconCacheService);
11917
+ constructor(iconCacheService: IconCacheService, _transactionService: TransactionService);
11918
+ handleSendIconClick(event: MouseEvent): Promise<void>;
11919
+ handleSendMethodDialogClick(event: MouseEvent): Promise<void>;
11920
+ private _saveTransactionIfDirty;
11912
11921
  static ɵfac: i0.ɵɵFactoryDeclaration<QuickSendButtonComponent, never>;
11913
11922
  static ɵcmp: i0.ɵɵComponentDeclaration<QuickSendButtonComponent, "co-quick-send-button", never, { "title": { "alias": "title"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "defaultMethodIcon": { "alias": "defaultMethodIcon"; "required": false; }; "showSendMethodIcon": { "alias": "showSendMethodIcon"; "required": false; }; "showSendMethodDialogIcon": { "alias": "showSendMethodDialogIcon"; "required": false; }; "showLoader": { "alias": "showLoader"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "openSendMethodDialog": "openSendMethodDialog"; "sendIconClicked": "sendIconClicked"; }, never, never, false, never>;
11914
11923
  }
@@ -14738,6 +14747,8 @@ declare class TransactionQuickAccessComponent implements OnInit, OnDestroy {
14738
14747
  showClass(): boolean;
14739
14748
  private _activeCategory;
14740
14749
  private _componentRef;
14750
+ private _componentClass;
14751
+ private _transactionId;
14741
14752
  private _shouldCreate;
14742
14753
  private _transactionKind;
14743
14754
  private _quickAccessContainer;
@@ -17254,7 +17265,7 @@ declare class TransactionArticleStockComponent extends DialogBaseComponent {
17254
17265
  allWarehouses: any[];
17255
17266
  constructor(iconCacheService: IconCacheService, transactionEventService: TransactionEventService);
17256
17267
  handleCloseDialog(Event: any): void;
17257
- handleTransactionNavigation(transNr: string): void;
17268
+ handleTransactionNavigation(transaction: StockTransactionClick): void;
17258
17269
  static ɵfac: i0.ɵɵFactoryDeclaration<TransactionArticleStockComponent, never>;
17259
17270
  static ɵcmp: i0.ɵɵComponentDeclaration<TransactionArticleStockComponent, "co-transaction-article-stock-dialog", never, { "article": { "alias": "article"; "required": false; }; }, { "closeClick": "closeClick"; }, never, never, false, never>;
17260
17271
  }
@@ -26,6 +26,10 @@
26
26
  pointer-events: all;
27
27
  cursor: pointer;
28
28
  font-size: $tp-save-cancel-buttons-font-size;
29
+ .co-icon {
30
+ height: $tp-save-cancel-buttons-icon-size;
31
+ width: $tp-save-cancel-buttons-icon-size;
32
+ }
29
33
  }
30
34
  .save-cancel-buttons-wrapper {
31
35
  display: flex;
@@ -37,5 +41,15 @@
37
41
  pointer-events: all;
38
42
  }
39
43
  }
44
+ .save-button {
45
+ padding: $tp-save-cancel-buttons-save-button-padding;
46
+ border-style: $tp-save-cancel-buttons-save-button-border-style;
47
+ border-width: $tp-save-cancel-buttons-save-button-border-width;
48
+ }
49
+ .cancel-button {
50
+ padding: $tp-save-cancel-buttons-cancel-button-padding;
51
+ border-style: $tp-save-cancel-buttons-cancel-button-border-style;
52
+ border-width: $tp-save-cancel-buttons-cancel-button-border-width;
53
+ }
40
54
  }
41
55
  }
@@ -4,12 +4,20 @@ $tp-save-cancel-buttons-z-index: 99 !default;
4
4
  $tp-save-cancel-buttons-column-gap: 5px !default;
5
5
  $tp-save-cancel-buttons-padding: 10px !default;
6
6
  $tp-save-cancel-buttons-radius: 5px !default;
7
- $tp-save-cancel-buttons-background: rgba(0, 0, 0, 0.1) !default;
7
+ $tp-save-cancel-buttons-background: none !default;
8
8
  $tp-save-cancel-buttons-button-size: 30px !default;
9
- $tp-save-cancel-buttons-icon-size: 25px !default;
9
+ $tp-save-cancel-buttons-icon-size: 20px !default;
10
+ $tp-save-cancel-buttons-save-button-border-style: solid !default;
11
+ $tp-save-cancel-buttons-save-button-border-color: $tp-color-border !default;
12
+ $tp-save-cancel-buttons-save-button-border-width: 1px !default;
10
13
  $tp-save-cancel-buttons-save-button-color: $tp-color-action !default;
14
+ $tp-save-cancel-buttons-save-button-padding: 18px 25px !default;
11
15
  $tp-save-cancel-buttons-save-icon-color: white !default;
12
16
  $tp-save-cancel-buttons-save-label-color: white !default;
13
- $tp-save-cancel-buttons-cancel-button-color: $tp-color-dark !default;
14
- $tp-save-cancel-buttons-cancel-icon-color: white !default;
15
- $tp-save-cancel-buttons-cancel-label-color: white !default;
17
+ $tp-save-cancel-buttons-cancel-button-border-style: solid !default;
18
+ $tp-save-cancel-buttons-cancel-button-border-color: $tp-color-border !default;
19
+ $tp-save-cancel-buttons-cancel-button-border-width: 1px !default;
20
+ $tp-save-cancel-buttons-cancel-button-color: white !default;
21
+ $tp-save-cancel-buttons-cancel-button-padding: 18px 25px !default;
22
+ $tp-save-cancel-buttons-cancel-icon-color: $tp-color-font !default;
23
+ $tp-save-cancel-buttons-cancel-label-color: $tp-color-font !default;
@@ -3,6 +3,7 @@
3
3
  .save-button {
4
4
  color: $tp-save-cancel-buttons-save-label-color;
5
5
  background: $tp-save-cancel-buttons-save-button-color;
6
+ border-color: $tp-save-cancel-buttons-save-button-border-color;
6
7
  svg {
7
8
  fill: $tp-save-cancel-buttons-save-icon-color;
8
9
  }
@@ -13,6 +14,7 @@
13
14
  .cancel-button {
14
15
  color: $tp-save-cancel-buttons-cancel-label-color;
15
16
  background: $tp-save-cancel-buttons-cancel-button-color;
17
+ border-color: $tp-save-cancel-buttons-cancel-button-border-color;
16
18
  svg {
17
19
  fill: $tp-save-cancel-buttons-cancel-icon-color;
18
20
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@colijnit/transaction",
3
- "version": "300.1.43",
3
+ "version": "300.1.45",
4
4
  "description": "Colijn IT transaction module for Angular 20",
5
5
  "repository": "npm/npm",
6
6
  "author": "Colijn IT",