b2b-tools 0.1.0 → 0.1.2

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.
Files changed (39) hide show
  1. package/README.md +109 -28
  2. package/fesm2022/b2b-tools.mjs +1091 -0
  3. package/fesm2022/b2b-tools.mjs.map +1 -0
  4. package/package.json +24 -13
  5. package/types/b2b-tools.d.ts +578 -0
  6. package/LICENCE +0 -21
  7. package/ng-package.json +0 -7
  8. package/src/lib/b2b-tools.spec.ts +0 -23
  9. package/src/lib/b2b-tools.ts +0 -15
  10. package/src/lib/components/advanced-card/advanced-card.css +0 -265
  11. package/src/lib/components/advanced-card/advanced-card.html +0 -117
  12. package/src/lib/components/advanced-card/advanced-card.ts +0 -75
  13. package/src/lib/components/advanced-card/index.ts +0 -2
  14. package/src/lib/components/advanced-card/types/card.types.ts +0 -37
  15. package/src/lib/components/advanced-card/types/index.ts +0 -1
  16. package/src/lib/components/advanced-table/advanced-table.component.css +0 -81
  17. package/src/lib/components/advanced-table/advanced-table.component.html +0 -56
  18. package/src/lib/components/advanced-table/advanced-table.component.ts +0 -469
  19. package/src/lib/components/advanced-table/index.ts +0 -2
  20. package/src/lib/components/advanced-table/parts/table-grid/table-grid.component.css +0 -274
  21. package/src/lib/components/advanced-table/parts/table-grid/table-grid.component.html +0 -168
  22. package/src/lib/components/advanced-table/parts/table-grid/table-grid.component.ts +0 -224
  23. package/src/lib/components/advanced-table/parts/table-modal-image/table-modal-image.component.css +0 -49
  24. package/src/lib/components/advanced-table/parts/table-modal-image/table-modal-image.component.html +0 -14
  25. package/src/lib/components/advanced-table/parts/table-modal-image/table-modal-image.component.ts +0 -22
  26. package/src/lib/components/advanced-table/parts/table-pagination/table-pagination.component.css +0 -147
  27. package/src/lib/components/advanced-table/parts/table-pagination/table-pagination.component.html +0 -95
  28. package/src/lib/components/advanced-table/parts/table-pagination/table-pagination.component.ts +0 -61
  29. package/src/lib/components/advanced-table/parts/table-toolbar/table-toolbar.component.css +0 -32
  30. package/src/lib/components/advanced-table/parts/table-toolbar/table-toolbar.component.html +0 -17
  31. package/src/lib/components/advanced-table/parts/table-toolbar/table-toolbar.component.ts +0 -30
  32. package/src/lib/components/advanced-table/types/index.ts +0 -2
  33. package/src/lib/components/advanced-table/types/table.types.ts +0 -101
  34. package/src/lib/components/advanced-table/types/time-zone.types.ts +0 -91
  35. package/src/lib/components/index.ts +0 -2
  36. package/src/public-api.ts +0 -4
  37. package/tsconfig.lib.json +0 -17
  38. package/tsconfig.lib.prod.json +0 -11
  39. package/tsconfig.spec.json +0 -15
package/README.md CHANGED
@@ -1,13 +1,10 @@
1
- # 📦 b2b-tools
2
-
3
1
  [![Angular](https://img.shields.io/badge/Angular-21-red?logo=angular)](https://angular.io/)
4
2
  [![License](https://img.shields.io/badge/license-MIT-green)](LICENSE)
5
3
  [![npm version](https://img.shields.io/npm/v/b2b-tools.svg)](https://www.npmjs.com/package/b2b-tools)
6
4
  [![Build Status](https://img.shields.io/badge/build-passing-brightgreen)](#)
7
5
 
8
6
  `b2b-tools` is a reusable Angular 21 standalone component library
9
- designed to provide modular, scalable, and production-ready UI
10
- components.
7
+ designed for scalable, enterprise-ready UI components.
11
8
 
12
9
  ---
13
10
 
@@ -23,50 +20,134 @@ The source code for this library is hosted on GitHub:
23
20
 
24
21
  - Angular 21
25
22
  - Standalone Components
26
- - CSS styling
27
23
  - Signals-based state management
28
- - Strict TypeScript configuration
24
+ - Strict TypeScript
25
+ - CSS variable theming
29
26
 
30
27
  ---
31
28
 
32
- ## 📥 Installation (After npm publication)
29
+ # 📚 Index
33
30
 
34
- ```bash
35
- npm install b2b-tools
36
- ```
31
+ - [Components](#-components)
32
+ - [AdvancedTableComponent](#-advancedtablecomponent)
33
+ - [AdvancedCardComponent](#-advancedcardcomponent)
34
+ - [Theming](#-theming)
35
+ - [Design Principles](#-design-principles)
36
+ - [Future Enhancements](#-future-enhancements)
37
+
38
+ ---
39
+
40
+ # 🧩 Components
41
+
42
+ The library currently provides the following core components:
43
+
44
+ ---
45
+
46
+ ## 🔹 AdvancedTableComponent
37
47
 
38
- Then import components directly:
48
+ A modular and extensible data table component designed for structured
49
+ data visualization.
50
+
51
+ ### Features
52
+
53
+ - Strongly typed column configuration
54
+ - Sorting support
55
+ - Pagination support
56
+ - Flexible cell rendering
57
+ - Standalone usage
58
+ - Domain-agnostic design
59
+
60
+ ### Basic Usage
39
61
 
40
62
  ```ts
41
63
  import { AdvancedTableComponent } from 'b2b-tools';
42
64
  ```
43
65
 
66
+ ```html
67
+ <advanced-table [columns]="columns" [rows]="rows"></advanced-table>
68
+ ```
69
+
44
70
  ---
45
71
 
46
- ## 🚀 Basic Usage Example
72
+ ## 🔹 AdvancedCardComponent
73
+
74
+ A highly configurable, domain-agnostic card component designed to
75
+ display summary information and expandable detailed content.
76
+
77
+ ### Features
78
+
79
+ - Compact and expanded modes
80
+ - Inline / Drawer / Modal expansion
81
+ - Highlight metrics
82
+ - Summary blocks
83
+ - Header actions
84
+ - Tab system
85
+ - Template projection
86
+ - CSS variable theming
87
+ - Signals-based internal state
88
+
89
+ ---
90
+
91
+ ### Basic Usage
47
92
 
48
93
  ```ts
49
- import { Component } from '@angular/core';
50
- import { AdvancedTableComponent } from 'b2b-tools';
94
+ import { AdvancedCardComponent } from 'b2b-tools';
95
+ ```
51
96
 
52
- @Component({
53
- standalone: true,
54
- imports: [AdvancedTableComponent],
55
- template: ` <b2b-advanced-table></b2b-advanced-table> `,
56
- })
57
- export class ExampleComponent {}
97
+ ```html
98
+ <advanced-card
99
+ [config]="cardConfig"
100
+ (action)="onHeaderAction($event)"
101
+ (tabChanged)="onTabChanged($event)"
102
+ (tabAction)="onTabAction($event)"
103
+ >
104
+ <ng-template advancedCardTemplate="example" let-cardId="cardId" let-tabId="tabId">
105
+ <div>Example content for {{ cardId }} (tab: {{ tabId }})</div>
106
+ </ng-template>
107
+ </advanced-card>
58
108
  ```
59
109
 
60
110
  ---
61
111
 
62
- ## 🧩 Available Components
112
+ # 🎨 Theming
63
113
 
64
- ### AdvancedTableComponent
114
+ Both components support CSS variables for styling customization.
65
115
 
66
- A modular and extensible data table component supporting:
116
+ Example:
67
117
 
68
- - Configurable columns
69
- - Sorting
70
- - Pagination
71
- - Strong typing
72
- - Standalone usage
118
+ ```html
119
+ <advanced-card
120
+ [config]="cardConfig"
121
+ style="--ac-primary: #f58026; --ac-radius: 18px; --ac-overlay: rgba(0,0,0,.55)"
122
+ ></advanced-card>
123
+ ```
124
+
125
+ Common tokens:
126
+
127
+ - --ac-primary
128
+ - --ac-radius
129
+ - --ac-overlay
130
+ - --ac-surface
131
+ - --ac-border
132
+ - --ac-text
133
+
134
+ ---
135
+
136
+ # 📐 Design Principles
137
+
138
+ - Domain-agnostic
139
+ - Strongly typed configuration
140
+ - Projection-based extensibility
141
+ - Composable architecture
142
+ - Enterprise-ready scalability
143
+ - Minimal coupling
144
+
145
+ ---
146
+
147
+ # 🔮 Future Enhancements
148
+
149
+ - Animation support
150
+ - Accessibility improvements
151
+ - Storybook documentation
152
+ - Public API documentation
153
+ - Context generics support