b2b-tools 0.1.1 → 0.1.3

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 +1 -2
  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
@@ -0,0 +1,578 @@
1
+ import * as b2b_tools from 'b2b-tools';
2
+ import * as _angular_core from '@angular/core';
3
+ import { TemplateRef } from '@angular/core';
4
+
5
+ type AdvancedTone = 'primary' | 'success' | 'warning' | 'danger' | 'neutral';
6
+ interface AdvancedBadge {
7
+ label: string;
8
+ tone?: AdvancedTone;
9
+ }
10
+ interface AdvancedHighlight {
11
+ label: string;
12
+ value: string;
13
+ hint?: string;
14
+ }
15
+ interface AdvancedAction {
16
+ id: string;
17
+ label: string;
18
+ tone?: 'primary' | 'secondary' | 'danger';
19
+ disabled?: boolean;
20
+ }
21
+ type AdvancedTabKind = 'template' | 'text' | 'empty';
22
+ type AdvancedDensity = 'compact' | 'comfortable';
23
+ type AdvancedSize = 'sm' | 'md' | 'lg';
24
+ interface AdvancedCardTab {
25
+ id: string;
26
+ label: string;
27
+ kind: AdvancedTabKind;
28
+ /** kind=text */
29
+ text?: string;
30
+ /** kind=template */
31
+ templateId?: string;
32
+ /** toolbar por tab */
33
+ actions?: AdvancedTabAction[];
34
+ /** badge pequeño opcional en tab */
35
+ pill?: {
36
+ label: string;
37
+ tone?: AdvancedTone;
38
+ };
39
+ }
40
+ interface AdvancedCardConfig {
41
+ id: string;
42
+ title: string;
43
+ subtitle?: string;
44
+ badge?: AdvancedBadge;
45
+ highlights?: AdvancedHighlight[];
46
+ summaryBlocks?: AdvancedSummaryBlock[];
47
+ primaryCta?: {
48
+ label: string;
49
+ };
50
+ actions?: AdvancedAction[];
51
+ tabs?: AdvancedCardTab[];
52
+ defaultTabId?: string;
53
+ expandMode?: AdvancedExpandMode;
54
+ closeOnBackdrop?: boolean;
55
+ density?: AdvancedDensity;
56
+ size?: AdvancedSize;
57
+ data?: any;
58
+ }
59
+ interface AdvancedSummaryBlock {
60
+ title: string;
61
+ rows: {
62
+ label: string;
63
+ value: string;
64
+ }[];
65
+ }
66
+ interface AdvancedTabAction {
67
+ id: string;
68
+ label: string;
69
+ tone?: 'primary' | 'secondary' | 'danger';
70
+ disabled?: boolean;
71
+ }
72
+ type AdvancedExpandMode = 'inline' | 'drawer' | 'modal';
73
+ type AdvancedCardTemplateCtx = {
74
+ /** The current card identifier (config.id) */
75
+ cardId: string;
76
+ /** The current active tab identifier (tab.id) */
77
+ tabId: string;
78
+ };
79
+ type AdvancedCardContentVm = {
80
+ cardId: string;
81
+ summaryBlocks?: AdvancedSummaryBlock[];
82
+ tabs: AdvancedCardTab[];
83
+ activeTabId: string | null;
84
+ activeTab: AdvancedCardTab | null;
85
+ templateRef: TemplateRef<AdvancedCardTemplateCtx> | null;
86
+ };
87
+
88
+ declare class AdvancedCardTemplateDirective {
89
+ readonly templateRef: TemplateRef<any>;
90
+ templateId: _angular_core.InputSignal<string>;
91
+ constructor(templateRef: TemplateRef<any>);
92
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<AdvancedCardTemplateDirective, never>;
93
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<AdvancedCardTemplateDirective, "[advancedCardTemplate]", never, { "templateId": { "alias": "advancedCardTemplate"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
94
+ }
95
+
96
+ declare class AdvancedCard {
97
+ config: _angular_core.InputSignal<AdvancedCardConfig>;
98
+ fullWidthOnExpand: _angular_core.InputSignal<boolean>;
99
+ stickyHeader: _angular_core.InputSignal<boolean>;
100
+ closeOnEsc: _angular_core.InputSignal<boolean>;
101
+ expandedChange: _angular_core.OutputEmitterRef<boolean>;
102
+ action: _angular_core.OutputEmitterRef<{
103
+ actionId: string;
104
+ cardId: string;
105
+ }>;
106
+ tabChanged: _angular_core.OutputEmitterRef<{
107
+ tabId: string;
108
+ cardId: string;
109
+ }>;
110
+ tabAction: _angular_core.OutputEmitterRef<{
111
+ tabId: string;
112
+ actionId: string;
113
+ cardId: string;
114
+ }>;
115
+ private projectedTemplates;
116
+ readonly expanded: _angular_core.WritableSignal<boolean>;
117
+ readonly activeTabId: _angular_core.WritableSignal<string | null>;
118
+ readonly cardId: _angular_core.Signal<string>;
119
+ readonly expandMode: _angular_core.Signal<b2b_tools.AdvancedExpandMode>;
120
+ readonly closeOnBackdrop: _angular_core.Signal<boolean>;
121
+ readonly isInline: _angular_core.Signal<boolean>;
122
+ readonly isDrawer: _angular_core.Signal<boolean>;
123
+ readonly isModal: _angular_core.Signal<boolean>;
124
+ readonly hasHighlights: _angular_core.Signal<boolean>;
125
+ readonly hasSummaryBlocks: _angular_core.Signal<boolean>;
126
+ readonly tabs: _angular_core.Signal<AdvancedCardTab[]>;
127
+ readonly activeTab: _angular_core.Signal<AdvancedCardTab | null>;
128
+ readonly templateMap: _angular_core.Signal<Map<string, AdvancedCardTemplateDirective>>;
129
+ readonly density: _angular_core.Signal<b2b_tools.AdvancedDensity>;
130
+ readonly size: _angular_core.Signal<b2b_tools.AdvancedSize>;
131
+ readonly hostClass: _angular_core.Signal<string>;
132
+ readonly activeTemplateRef: _angular_core.Signal<any>;
133
+ readonly contentVm: _angular_core.Signal<AdvancedCardContentVm>;
134
+ notifyExpandenChangesEffect: _angular_core.EffectRef;
135
+ initiActiveTabEffect: _angular_core.EffectRef;
136
+ toggleExpand(): void;
137
+ expand(): void;
138
+ collapse(): void;
139
+ onActionClick(a: AdvancedAction): void;
140
+ selectTab(tabId: string): void;
141
+ onTabActionClick(tab: AdvancedCardTab, a: AdvancedTabAction): void;
142
+ getActiveTemplate(): AdvancedCardTemplateDirective | null;
143
+ badgeClass(tone: AdvancedTone | undefined): string;
144
+ onKeydown(ev: KeyboardEvent): void;
145
+ onBackdropClick(): void;
146
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<AdvancedCard, never>;
147
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<AdvancedCard, "advanced-card", never, { "config": { "alias": "config"; "required": true; "isSignal": true; }; "fullWidthOnExpand": { "alias": "fullWidthOnExpand"; "required": false; "isSignal": true; }; "stickyHeader": { "alias": "stickyHeader"; "required": false; "isSignal": true; }; "closeOnEsc": { "alias": "closeOnEsc"; "required": false; "isSignal": true; }; }, { "expandedChange": "expandedChange"; "action": "action"; "tabChanged": "tabChanged"; "tabAction": "tabAction"; }, ["projectedTemplates"], ["*", "*", "ng-template[advancedCardTemplate]"], true, never>;
148
+ }
149
+
150
+ type CellDataType = 'string' | 'integer' | 'decimal' | 'currency' | 'date' | 'datetime' | 'boolean' | 'image' | 'status' | 'link' | 'custom' | 'actions';
151
+ type CellSize = 'XS' | 'SM' | 'MD' | 'LG' | 'XL' | 'AUTO';
152
+ type TextAlign = 'left' | 'center' | 'right';
153
+ type RowId = string | number;
154
+ type PagerItem = number | '…';
155
+ type Icon = 'edit' | 'delete' | 'view' | 'copy';
156
+ interface TableColumn<T = unknown> {
157
+ key: string;
158
+ label: string;
159
+ type: CellDataType;
160
+ size?: CellSize;
161
+ align?: TextAlign;
162
+ sortable?: boolean;
163
+ filterable?: boolean;
164
+ hidden?: boolean;
165
+ valueGetter?: (row: T) => unknown;
166
+ formatter?: (value: unknown, row: T) => string;
167
+ actions?: TableAction<T>[];
168
+ options?: {
169
+ currency?: 'MXN';
170
+ dateFormat?: 'short' | 'medium' | 'long';
171
+ dateTimeFormat?: 'short' | 'medium' | 'long';
172
+ image?: {
173
+ hidden?: boolean;
174
+ openInModal?: boolean;
175
+ showFull?: boolean;
176
+ alt?: (row: T) => string;
177
+ };
178
+ status?: {
179
+ classMap?: Record<string, string>;
180
+ };
181
+ link?: {
182
+ hrefGetter?: (row: T) => string;
183
+ labelGetter?: (row: T) => string;
184
+ target?: '_blank' | '_self';
185
+ };
186
+ };
187
+ }
188
+ interface TableConfig {
189
+ globalSearch?: boolean;
190
+ columnFilters?: boolean;
191
+ selectable?: boolean;
192
+ selectionMode?: 'single' | 'multiple';
193
+ pagination?: {
194
+ enabled: boolean;
195
+ pageSize: number;
196
+ pageSizeOptions?: number[];
197
+ };
198
+ scroll?: {
199
+ mode: 'none' | 'infinite';
200
+ heightPx?: number;
201
+ batchSize?: number;
202
+ };
203
+ fixedRowCount?: number;
204
+ emptyText?: string;
205
+ rowIdKey?: string;
206
+ rowIdGetter?: (row: any) => string | number;
207
+ globalSearchVisibleOnly?: boolean;
208
+ }
209
+ interface TableSortState {
210
+ key: string;
211
+ dir: 'asc' | 'desc';
212
+ }
213
+ type ActionVariant = 'default' | 'danger';
214
+ type ActionRender = 'icon' | 'text';
215
+ interface TableAction<T> {
216
+ id: string;
217
+ label: string;
218
+ icon?: Icon | string;
219
+ tooltip?: string;
220
+ variant?: ActionVariant;
221
+ render?: ActionRender;
222
+ visible?: (row: T) => boolean;
223
+ disabled?: (row: T) => boolean;
224
+ confirm?: {
225
+ title?: string;
226
+ message: string;
227
+ };
228
+ }
229
+ interface TableActionEvent<T> {
230
+ actionId: string;
231
+ row: T;
232
+ }
233
+ declare const SVG_ICONS: Record<string, string>;
234
+
235
+ declare class AdvancedTable<T extends Record<string, any>> {
236
+ readonly columns: _angular_core.InputSignal<TableColumn<T>[]>;
237
+ readonly data: _angular_core.InputSignal<T[]>;
238
+ readonly config: _angular_core.InputSignal<TableConfig>;
239
+ readonly rowClick: _angular_core.OutputEmitterRef<T>;
240
+ readonly selectionChange: _angular_core.OutputEmitterRef<RowId[]>;
241
+ readonly actionClick: _angular_core.OutputEmitterRef<TableActionEvent<T>>;
242
+ readonly globalQuery: _angular_core.WritableSignal<string>;
243
+ readonly columnQueries: _angular_core.WritableSignal<Record<string, string>>;
244
+ readonly sortState: _angular_core.WritableSignal<TableSortState | null>;
245
+ readonly page: _angular_core.WritableSignal<number>;
246
+ readonly visibleCount: _angular_core.WritableSignal<number>;
247
+ readonly modalOpen: _angular_core.WritableSignal<boolean>;
248
+ readonly modalImageSrc: _angular_core.WritableSignal<string>;
249
+ readonly modalImageAlt: _angular_core.WritableSignal<string>;
250
+ readonly selectedIdsSet: _angular_core.WritableSignal<Set<RowId>>;
251
+ readonly pageSize: _angular_core.WritableSignal<number>;
252
+ readonly selectedIds: _angular_core.Signal<RowId[]>;
253
+ readonly visibleColumns: _angular_core.Signal<TableColumn<T>[]>;
254
+ readonly showSelectionColumn: _angular_core.Signal<boolean>;
255
+ readonly gridTemplateColumns: _angular_core.Signal<string>;
256
+ readonly filteredData: _angular_core.Signal<T[]>;
257
+ readonly sortedData: _angular_core.Signal<T[]>;
258
+ readonly pagedData: _angular_core.Signal<T[]>;
259
+ readonly pagerItems: _angular_core.Signal<PagerItem[]>;
260
+ readonly totalCount: _angular_core.Signal<number>;
261
+ readonly pageCount: _angular_core.Signal<number>;
262
+ readonly isAllSelectedOnPage: _angular_core.Signal<boolean>;
263
+ infiniteScrollEffect: _angular_core.EffectRef;
264
+ selectionDataEffect: _angular_core.EffectRef;
265
+ pagesCountEffect: _angular_core.EffectRef;
266
+ onHeaderClickSort(col: TableColumn<T>): void;
267
+ onBodyScroll(event: Event): void;
268
+ onPageSizeChange(size: number): void;
269
+ getCellValue(row: T, col: TableColumn<T>): unknown;
270
+ getRowId(row: T): RowId;
271
+ setGlobalQuery(query: string): void;
272
+ setColumnQuery(key: string, query: string): void;
273
+ clearFilters(): void;
274
+ onRowClick(row: T): void;
275
+ toggleRowSelection(row: T): void;
276
+ toggleSelectAllOnPage(): void;
277
+ prevPage(): void;
278
+ nextPage(): void;
279
+ goToPage(p: number): void;
280
+ openImageModal(src: string, alt: string): void;
281
+ closeModal(): void;
282
+ private resetInfiniteIfNeeded;
283
+ private sizeToCss;
284
+ private toNumber;
285
+ private toDate;
286
+ private compareValues;
287
+ private valueToSearchableText;
288
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<AdvancedTable<any>, never>;
289
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<AdvancedTable<any>, "advanced-table", never, { "columns": { "alias": "columns"; "required": false; "isSignal": true; }; "data": { "alias": "data"; "required": false; "isSignal": true; }; "config": { "alias": "config"; "required": false; "isSignal": true; }; }, { "rowClick": "rowClick"; "selectionChange": "selectionChange"; "actionClick": "actionClick"; }, never, never, true, never>;
290
+ }
291
+
292
+ /**
293
+ * Base information for a time zone associated with a country or region.
294
+ * Intended for catalogs, dropdowns, and Intl-based formatting.
295
+ */
296
+ interface TimeZoneInfo {
297
+ /**
298
+ * Official IANA time zone identifier.
299
+ * Used by Intl.DateTimeFormat and backend time handling.
300
+ * Example: 'America/Mexico_City', 'Europe/Madrid'.
301
+ */
302
+ timeZone: string;
303
+ /**
304
+ * Country or region name.
305
+ * Intended for user-friendly display in UI components.
306
+ * Example: 'Mexico', 'United States (Eastern)'.
307
+ */
308
+ name: string;
309
+ /**
310
+ * ISO 4217 currency code used in the country or region.
311
+ * Required for monetary formatting with Intl.NumberFormat.
312
+ * Example: 'MXN', 'USD', 'EUR'.
313
+ */
314
+ currency: string;
315
+ /**
316
+ * Locale identifier following the BCP-47 standard.
317
+ * Determines language, number formatting, and date conventions.
318
+ * Example: 'es-MX', 'en-US', 'fr-FR'.
319
+ */
320
+ locale: string;
321
+ /**
322
+ * UTC offset of the time zone expressed in hours.
323
+ * This value represents the standard offset and does not account for DST.
324
+ * Example: -6, -5, +1, +5.5.
325
+ */
326
+ utcOffset: number;
327
+ /**
328
+ * City name.
329
+ * Used as a human-readable label in dropdowns or selectors.
330
+ * Example: 'Mexico City', 'New York', 'London'.
331
+ */
332
+ city: string;
333
+ }
334
+ declare const TIME_ZONES: {
335
+ CAIRO: {
336
+ city: string;
337
+ timeZone: string;
338
+ name: string;
339
+ currency: string;
340
+ locale: string;
341
+ utcOffset: number;
342
+ };
343
+ CASABLANCA: {
344
+ city: string;
345
+ timeZone: string;
346
+ name: string;
347
+ currency: string;
348
+ locale: string;
349
+ utcOffset: number;
350
+ };
351
+ JOHANNESBURG: {
352
+ city: string;
353
+ timeZone: string;
354
+ name: string;
355
+ currency: string;
356
+ locale: string;
357
+ utcOffset: number;
358
+ };
359
+ BUENOS_AIRES: {
360
+ city: string;
361
+ timeZone: string;
362
+ name: string;
363
+ currency: string;
364
+ locale: string;
365
+ utcOffset: number;
366
+ };
367
+ SAO_PAULO: {
368
+ city: string;
369
+ timeZone: string;
370
+ name: string;
371
+ currency: string;
372
+ locale: string;
373
+ utcOffset: number;
374
+ };
375
+ TORONTO: {
376
+ city: string;
377
+ timeZone: string;
378
+ name: string;
379
+ currency: string;
380
+ locale: string;
381
+ utcOffset: number;
382
+ };
383
+ VANCOUVER: {
384
+ city: string;
385
+ timeZone: string;
386
+ name: string;
387
+ currency: string;
388
+ locale: string;
389
+ utcOffset: number;
390
+ };
391
+ BOGOTA: {
392
+ city: string;
393
+ timeZone: string;
394
+ name: string;
395
+ currency: string;
396
+ locale: string;
397
+ utcOffset: number;
398
+ };
399
+ CANCUN: {
400
+ city: string;
401
+ timeZone: string;
402
+ name: string;
403
+ currency: string;
404
+ locale: string;
405
+ utcOffset: number;
406
+ };
407
+ MEXICO_CITY: {
408
+ city: string;
409
+ timeZone: string;
410
+ name: string;
411
+ currency: string;
412
+ locale: string;
413
+ utcOffset: number;
414
+ };
415
+ TIJUANA: {
416
+ city: string;
417
+ timeZone: string;
418
+ name: string;
419
+ currency: string;
420
+ locale: string;
421
+ utcOffset: number;
422
+ };
423
+ LIMA: {
424
+ city: string;
425
+ timeZone: string;
426
+ name: string;
427
+ currency: string;
428
+ locale: string;
429
+ utcOffset: number;
430
+ };
431
+ SANTIAGO: {
432
+ city: string;
433
+ timeZone: string;
434
+ name: string;
435
+ currency: string;
436
+ locale: string;
437
+ utcOffset: number;
438
+ };
439
+ CHICAGO: {
440
+ city: string;
441
+ timeZone: string;
442
+ name: string;
443
+ currency: string;
444
+ locale: string;
445
+ utcOffset: number;
446
+ };
447
+ DENVER: {
448
+ city: string;
449
+ timeZone: string;
450
+ name: string;
451
+ currency: string;
452
+ locale: string;
453
+ utcOffset: number;
454
+ };
455
+ LOS_ANGELES: {
456
+ city: string;
457
+ timeZone: string;
458
+ name: string;
459
+ currency: string;
460
+ locale: string;
461
+ utcOffset: number;
462
+ };
463
+ NEW_YORK: {
464
+ city: string;
465
+ timeZone: string;
466
+ name: string;
467
+ currency: string;
468
+ locale: string;
469
+ utcOffset: number;
470
+ };
471
+ SHANGHAI: {
472
+ city: string;
473
+ timeZone: string;
474
+ name: string;
475
+ currency: string;
476
+ locale: string;
477
+ utcOffset: number;
478
+ };
479
+ KOLKATA: {
480
+ city: string;
481
+ timeZone: string;
482
+ name: string;
483
+ currency: string;
484
+ locale: string;
485
+ utcOffset: number;
486
+ };
487
+ TOKYO: {
488
+ city: string;
489
+ timeZone: string;
490
+ name: string;
491
+ currency: string;
492
+ locale: string;
493
+ utcOffset: number;
494
+ };
495
+ SEOUL: {
496
+ city: string;
497
+ timeZone: string;
498
+ name: string;
499
+ currency: string;
500
+ locale: string;
501
+ utcOffset: number;
502
+ };
503
+ DUBAI: {
504
+ city: string;
505
+ timeZone: string;
506
+ name: string;
507
+ currency: string;
508
+ locale: string;
509
+ utcOffset: number;
510
+ };
511
+ BERLIN: {
512
+ city: string;
513
+ timeZone: string;
514
+ name: string;
515
+ currency: string;
516
+ locale: string;
517
+ utcOffset: number;
518
+ };
519
+ PARIS: {
520
+ city: string;
521
+ timeZone: string;
522
+ name: string;
523
+ currency: string;
524
+ locale: string;
525
+ utcOffset: number;
526
+ };
527
+ ROME: {
528
+ city: string;
529
+ timeZone: string;
530
+ name: string;
531
+ currency: string;
532
+ locale: string;
533
+ utcOffset: number;
534
+ };
535
+ MADRID: {
536
+ city: string;
537
+ timeZone: string;
538
+ name: string;
539
+ currency: string;
540
+ locale: string;
541
+ utcOffset: number;
542
+ };
543
+ ZURICH: {
544
+ city: string;
545
+ timeZone: string;
546
+ name: string;
547
+ currency: string;
548
+ locale: string;
549
+ utcOffset: number;
550
+ };
551
+ LONDON: {
552
+ city: string;
553
+ timeZone: string;
554
+ name: string;
555
+ currency: string;
556
+ locale: string;
557
+ utcOffset: number;
558
+ };
559
+ SYDNEY: {
560
+ city: string;
561
+ timeZone: string;
562
+ name: string;
563
+ currency: string;
564
+ locale: string;
565
+ utcOffset: number;
566
+ };
567
+ AUCKLAND: {
568
+ city: string;
569
+ timeZone: string;
570
+ name: string;
571
+ currency: string;
572
+ locale: string;
573
+ utcOffset: number;
574
+ };
575
+ };
576
+
577
+ export { AdvancedCard, AdvancedCardTemplateDirective, AdvancedTable, SVG_ICONS, TIME_ZONES };
578
+ export type { ActionRender, ActionVariant, AdvancedAction, AdvancedBadge, AdvancedCardConfig, AdvancedCardContentVm, AdvancedCardTab, AdvancedCardTemplateCtx, AdvancedDensity, AdvancedExpandMode, AdvancedHighlight, AdvancedSize, AdvancedSummaryBlock, AdvancedTabAction, AdvancedTabKind, AdvancedTone, CellDataType, CellSize, Icon, PagerItem, RowId, TableAction, TableActionEvent, TableColumn, TableConfig, TableSortState, TextAlign, TimeZoneInfo };
package/LICENCE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 Luis Emiliano Cortes
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
package/ng-package.json DELETED
@@ -1,7 +0,0 @@
1
- {
2
- "$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
3
- "dest": "../../dist/b2b-tools",
4
- "lib": {
5
- "entryFile": "src/public-api.ts"
6
- }
7
- }
@@ -1,23 +0,0 @@
1
- import { ComponentFixture, TestBed } from '@angular/core/testing';
2
-
3
- import { B2bTools } from './b2b-tools';
4
-
5
- describe('B2bTools', () => {
6
- let component: B2bTools;
7
- let fixture: ComponentFixture<B2bTools>;
8
-
9
- beforeEach(async () => {
10
- await TestBed.configureTestingModule({
11
- imports: [B2bTools]
12
- })
13
- .compileComponents();
14
-
15
- fixture = TestBed.createComponent(B2bTools);
16
- component = fixture.componentInstance;
17
- await fixture.whenStable();
18
- });
19
-
20
- it('should create', () => {
21
- expect(component).toBeTruthy();
22
- });
23
- });
@@ -1,15 +0,0 @@
1
- import { Component } from '@angular/core';
2
-
3
- @Component({
4
- selector: 'lib-b2b-tools',
5
- imports: [],
6
- template: `
7
- <p>
8
- b2b-tools works!
9
- </p>
10
- `,
11
- styles: ``,
12
- })
13
- export class B2bTools {
14
-
15
- }