@colijnit/transaction 261.20.69 → 261.20.70
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/fesm2022/colijnit-transaction.mjs +214 -120
- package/fesm2022/colijnit-transaction.mjs.map +1 -1
- package/index.d.ts +29 -6
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -4651,7 +4651,9 @@ declare class TransactionMappingService {
|
|
|
4651
4651
|
private _cardConfig;
|
|
4652
4652
|
private _sidePanelConfig;
|
|
4653
4653
|
private _quickAccessConfig;
|
|
4654
|
+
private _handledByDescription;
|
|
4654
4655
|
constructor(_buttonBarConfig: TransactionButtonBarMappingConfig, _filterConfig: TransactionFilterMappingConfig, _searchConfig: TransactionSearchMappingConfig, _lineConfig: TransactionLineMappingConfig, _cardConfig: TransactionCardMappingConfig, _sidePanelConfig: TransactionSidePanelMappingConfig, _quickAccessConfig: TransactionQuickAccessMappingConfig);
|
|
4656
|
+
getHandledByDescription(type: TransactionKind): string;
|
|
4655
4657
|
getButtonBar(type: TransactionKind): TransactionBarButton[];
|
|
4656
4658
|
getSidePanelComponent(type: TransactionKind): any;
|
|
4657
4659
|
getQuickAccessComponent(type: TransactionKind, category: TransactionTypeCategory): any;
|
|
@@ -7566,12 +7568,16 @@ declare class AvatarComponent implements OnInit {
|
|
|
7566
7568
|
get image(): CoDocument;
|
|
7567
7569
|
set relationId(value: number);
|
|
7568
7570
|
get relationId(): number;
|
|
7571
|
+
tooltipTitle: string;
|
|
7569
7572
|
set relation(value: RelationListObject);
|
|
7570
7573
|
get relation(): RelationListObject;
|
|
7571
|
-
|
|
7574
|
+
showRelationNr: boolean;
|
|
7572
7575
|
showClass(): boolean;
|
|
7573
|
-
imageSrc: string;
|
|
7574
7576
|
backgroundColor: string;
|
|
7577
|
+
imageSrc: string;
|
|
7578
|
+
relationName: string;
|
|
7579
|
+
tooltip: string;
|
|
7580
|
+
initialsFontSize: number;
|
|
7575
7581
|
set initials(value: string);
|
|
7576
7582
|
get initials(): string;
|
|
7577
7583
|
private _initials;
|
|
@@ -7586,14 +7592,24 @@ declare class AvatarComponent implements OnInit {
|
|
|
7586
7592
|
private _setRelationInitials;
|
|
7587
7593
|
private _getImageContent;
|
|
7588
7594
|
private _setBackgroundColor;
|
|
7595
|
+
private _handleRelationSet;
|
|
7596
|
+
/**
|
|
7597
|
+
* Returns the font size (in SVG user units) at which the initials still fit inside the round avatar.
|
|
7598
|
+
*
|
|
7599
|
+
* The widest text that fits a circle depends on how tall that text is: for a centred single line with cap height
|
|
7600
|
+
* `h` the usable chord is `2 * sqrt(r^2 - (h / 2)^2)`. Estimating the text width as
|
|
7601
|
+
* `length * AVATAR_GLYPH_ADVANCE_RATIO * fontSize` and the cap height as `AVATAR_CAP_HEIGHT_RATIO * fontSize` and solving for the
|
|
7602
|
+
* font size gives the expression below, capped at `AVATAR_MAX_FONT_SIZE` so short initials keep their normal size.
|
|
7603
|
+
*/
|
|
7604
|
+
private _calculateFontSize;
|
|
7589
7605
|
private _detectChanges;
|
|
7590
7606
|
static ɵfac: i0.ɵɵFactoryDeclaration<AvatarComponent, never>;
|
|
7591
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AvatarComponent, "co-avatar", never, { "image": { "alias": "image"; "required": false; }; "relationId": { "alias": "relationId"; "required": false; }; "relation": { "alias": "relation"; "required": false; }; "
|
|
7607
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AvatarComponent, "co-avatar", never, { "image": { "alias": "image"; "required": false; }; "relationId": { "alias": "relationId"; "required": false; }; "tooltipTitle": { "alias": "tooltipTitle"; "required": false; }; "relation": { "alias": "relation"; "required": false; }; "showRelationNr": { "alias": "showRelationNr"; "required": false; }; }, {}, never, never, false, never>;
|
|
7592
7608
|
}
|
|
7593
7609
|
|
|
7594
7610
|
declare class AvatarModule {
|
|
7595
7611
|
static ɵfac: i0.ɵɵFactoryDeclaration<AvatarModule, never>;
|
|
7596
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<AvatarModule, [typeof AvatarComponent], [typeof i2.CommonModule, typeof CoreModule], [typeof AvatarComponent]>;
|
|
7612
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AvatarModule, [typeof AvatarComponent], [typeof i2.CommonModule, typeof CoreModule, typeof i3.TooltipDirectiveModule], [typeof AvatarComponent]>;
|
|
7597
7613
|
static ɵinj: i0.ɵɵInjectorDeclaration<AvatarModule>;
|
|
7598
7614
|
}
|
|
7599
7615
|
|
|
@@ -16473,7 +16489,9 @@ declare class TransactionSalesPersonInputModule {
|
|
|
16473
16489
|
static ɵinj: i0.ɵɵInjectorDeclaration<TransactionSalesPersonInputModule>;
|
|
16474
16490
|
}
|
|
16475
16491
|
|
|
16476
|
-
declare class TransactionHeaderHandledByComponent implements ScreenConfigAdapterComponent {
|
|
16492
|
+
declare class TransactionHeaderHandledByComponent implements ScreenConfigAdapterComponent, OnInit {
|
|
16493
|
+
private _mappingService;
|
|
16494
|
+
private _dictionary;
|
|
16477
16495
|
transaction: TransactionInfoResponse;
|
|
16478
16496
|
showClass(): boolean;
|
|
16479
16497
|
objectConfigName: string;
|
|
@@ -16484,13 +16502,18 @@ declare class TransactionHeaderHandledByComponent implements ScreenConfigAdapter
|
|
|
16484
16502
|
maxLength: number;
|
|
16485
16503
|
decimals: number;
|
|
16486
16504
|
redErrorBackground: boolean;
|
|
16505
|
+
relationName: string;
|
|
16506
|
+
handledByDescription: string;
|
|
16507
|
+
tooltip: string;
|
|
16508
|
+
constructor(_mappingService: TransactionMappingService, _dictionary: DictionaryService);
|
|
16509
|
+
ngOnInit(): void;
|
|
16487
16510
|
static ɵfac: i0.ɵɵFactoryDeclaration<TransactionHeaderHandledByComponent, never>;
|
|
16488
16511
|
static ɵcmp: i0.ɵɵComponentDeclaration<TransactionHeaderHandledByComponent, "co-transaction-header-handled-by", never, { "transaction": { "alias": "transaction"; "required": false; }; }, {}, never, never, false, never>;
|
|
16489
16512
|
}
|
|
16490
16513
|
|
|
16491
16514
|
declare class TransactionHeaderHandledByModule {
|
|
16492
16515
|
static ɵfac: i0.ɵɵFactoryDeclaration<TransactionHeaderHandledByModule, never>;
|
|
16493
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<TransactionHeaderHandledByModule, [typeof TransactionHeaderHandledByComponent], [typeof i2.CommonModule, typeof AvatarModule], [typeof TransactionHeaderHandledByComponent]>;
|
|
16516
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<TransactionHeaderHandledByModule, [typeof TransactionHeaderHandledByComponent], [typeof i2.CommonModule, typeof AvatarModule, typeof i3.TooltipDirectiveModule], [typeof TransactionHeaderHandledByComponent]>;
|
|
16494
16517
|
static ɵinj: i0.ɵɵInjectorDeclaration<TransactionHeaderHandledByModule>;
|
|
16495
16518
|
}
|
|
16496
16519
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@colijnit/transaction",
|
|
3
|
-
"version": "261.20.
|
|
3
|
+
"version": "261.20.70",
|
|
4
4
|
"description": "Colijn IT transaction module for Angular 20",
|
|
5
5
|
"repository": "npm/npm",
|
|
6
6
|
"author": "Colijn IT",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"@angular/core": ">=20.3.16",
|
|
12
12
|
"@colijnit/articleapi": ">=261.1.3",
|
|
13
13
|
"@colijnit/catalog": ">=261.20.3",
|
|
14
|
-
"@colijnit/corecomponents_v12": ">=261.20.
|
|
14
|
+
"@colijnit/corecomponents_v12": ">=261.20.20",
|
|
15
15
|
"@colijnit/ioneconnector": ">=261.1.4",
|
|
16
16
|
"@colijnit/mainapi": ">=261.1.13",
|
|
17
17
|
"@colijnit/product": ">=261.20.0",
|