b2b-tools 0.1.6 → 0.2.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "b2b-tools",
3
- "version": "0.1.6",
3
+ "version": "0.2.0",
4
4
  "license": "MIT",
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^21.1.0",
@@ -55,14 +55,20 @@ interface AdvancedCardConfig {
55
55
  density?: AdvancedDensity;
56
56
  size?: AdvancedSize;
57
57
  contentLayout?: 'stacked' | 'inline';
58
+ summaryToggle?: boolean;
58
59
  data?: any;
59
60
  }
61
+ type AdvancedRowKind = 'text' | 'badge' | 'number' | 'date';
62
+ interface AdvancedSummaryRow {
63
+ label: string;
64
+ value: string;
65
+ kind?: AdvancedRowKind;
66
+ tone?: AdvancedTone;
67
+ icon?: string;
68
+ }
60
69
  interface AdvancedSummaryBlock {
61
70
  title: string;
62
- rows: {
63
- label: string;
64
- value: string;
65
- }[];
71
+ rows: AdvancedSummaryRow[];
66
72
  }
67
73
  interface AdvancedTabAction {
68
74
  id: string;
@@ -83,6 +89,7 @@ type AdvancedCardContentVm = {
83
89
  activeTab: AdvancedCardTab | null;
84
90
  templateRef: TemplateRef<AdvancedCardTemplateCtx> | null;
85
91
  layout: 'stacked' | 'inline';
92
+ summaryToggle: boolean;
86
93
  };
87
94
 
88
95
  declare class AdvancedCardTemplateDirective {
@@ -614,4 +621,4 @@ declare const TIME_ZONES: {
614
621
  };
615
622
 
616
623
  export { AdvancedCard, AdvancedCardTemplateDirective, AdvancedTable, SVG_ICONS, SimpleTable, TIME_ZONES };
617
- export type { ActionRender, ActionVariant, AdvancedAction, AdvancedBadge, AdvancedCardConfig, AdvancedCardContentVm, AdvancedCardTab, AdvancedCardTemplateCtx, AdvancedDensity, AdvancedExpandMode, AdvancedHighlight, AdvancedSize, AdvancedSummaryBlock, AdvancedTabAction, AdvancedTabKind, AdvancedTone, CellDataType, CellSize, Icon, PagerItem, RowId, SimpleHaders, SortDirection, TableAction, TableActionEvent, TableColumn, TableConfig, TableSortState, TextAlign, TimeZoneInfo };
624
+ export type { ActionRender, ActionVariant, AdvancedAction, AdvancedBadge, AdvancedCardConfig, AdvancedCardContentVm, AdvancedCardTab, AdvancedCardTemplateCtx, AdvancedDensity, AdvancedExpandMode, AdvancedHighlight, AdvancedRowKind, AdvancedSize, AdvancedSummaryBlock, AdvancedSummaryRow, AdvancedTabAction, AdvancedTabKind, AdvancedTone, CellDataType, CellSize, Icon, PagerItem, RowId, SimpleHaders, SortDirection, TableAction, TableActionEvent, TableColumn, TableConfig, TableSortState, TextAlign, TimeZoneInfo };