@sixbell-telco/sdk 1.0.1 → 1.0.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.
- package/CHANGELOG.md +31 -25
- package/README.md +74 -19
- package/_index.css +2 -2
- package/package.json +27 -24
- package/sixbell-telco-sdk-1.0.2.tgz +0 -0
- package/sixbell-telco-sdk-1.0.1.tgz +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
```markdown
|
|
2
1
|
# Changelog
|
|
3
2
|
|
|
4
3
|
All notable changes to this project will be documented in this file.
|
|
@@ -8,7 +7,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
8
7
|
|
|
9
8
|
## [Unreleased]
|
|
10
9
|
|
|
11
|
-
## [1.0.
|
|
10
|
+
## [1.0.2] - 2025-07-18
|
|
11
|
+
|
|
12
|
+
- **Package**: Add missing keywords to package.json and update `@angular/cdk` version constraint (`8316dc6`)
|
|
13
|
+
- **TailwindCSS**: Remove redundant class attribute from settings (`87fffeb`)
|
|
14
|
+
- **Readme**: Update with correct Node, NPM, and Angular versions; enhance translation service setup (`127eec6`)
|
|
15
|
+
- **Dependencies**: Update peerDependencies for compatibility with Angular and Tailwind CSS (`3c871f5`)
|
|
16
|
+
- **Theme**: Enable default and prefersdark settings for vivid_elegance_light theme (`efb2ca0`)
|
|
17
|
+
|
|
18
|
+
## [1.0.1] - 2025-07-17
|
|
12
19
|
|
|
13
20
|
### Added
|
|
14
21
|
|
|
@@ -232,8 +239,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
232
239
|
- **Input**: Add logic to handle disable state properly with related styles (`07e84f2`)
|
|
233
240
|
- **File Type Validator**: Improve file extension validation logic and error messaging
|
|
234
241
|
- **Button Styling**:
|
|
235
|
-
- Fix alignment and styling of play button component
|
|
236
|
-
- Improve icon alignment in button component
|
|
242
|
+
- Fix alignment and styling of play button component
|
|
243
|
+
- Improve icon alignment in button component
|
|
237
244
|
- **Wizard Wrapper**: Fix background color for horizontal and vertical variants (`30a5f3d`)
|
|
238
245
|
- **AudioPlayer**:
|
|
239
246
|
- Enhanced initialization/cleanup processes
|
|
@@ -324,8 +331,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
324
331
|
- **Showcase**: Upgrade table showcase section (4c02afa4)
|
|
325
332
|
- **Typography Directive**: Update directive scale to minor second for improved readability and consistency
|
|
326
333
|
- **Modal Component**:
|
|
327
|
-
- Update default width from 'fit' to 'lg' (cc95896)
|
|
328
|
-
- Enhance component with additional width variants (b5db589)
|
|
334
|
+
- Update default width from 'fit' to 'lg' (cc95896)
|
|
335
|
+
- Enhance component with additional width variants (b5db589)
|
|
329
336
|
- **Changelog**: Updated documentation in changelog.md (`528b633`)
|
|
330
337
|
- **Readme**: Updated documentation in README (`528b633`)
|
|
331
338
|
- **VScode Settings**: Updated VSCode settings (`528b633`)
|
|
@@ -576,22 +583,22 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
576
583
|
- Integrate form control support
|
|
577
584
|
- Enhance file input handling
|
|
578
585
|
- **Component Styling**:
|
|
579
|
-
- **Text and Typography**:
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
- **Layout and Structure**:
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
- **Width and Alignment**:
|
|
593
|
-
|
|
594
|
-
|
|
586
|
+
- **Text and Typography**:
|
|
587
|
+
- Updated badge text sizes for improved readability and scaling
|
|
588
|
+
- Enhanced textarea text sizes for better readability
|
|
589
|
+
- Adjusted select text sizes for improved scaling
|
|
590
|
+
- Modified input text sizes for better scaling
|
|
591
|
+
- Updated audio-timeline text size to 'body-xxs'
|
|
592
|
+
- Refined table paginator text size
|
|
593
|
+
- **Layout and Structure**:
|
|
594
|
+
- Enhanced card layout and spacing
|
|
595
|
+
- Updated icon color variants
|
|
596
|
+
- Modified tab sizes and text styles
|
|
597
|
+
- Improved dropdown button sizes and text styles
|
|
598
|
+
- Streamlined file-dropzone button structure
|
|
599
|
+
- **Width and Alignment**:
|
|
600
|
+
- Enhanced input component's full width handling
|
|
601
|
+
- Improved vertical alignment across multiple components
|
|
595
602
|
- **Tailwind**: Added custom sizes for buttons, inputs, and selects
|
|
596
603
|
- **File Dropzone**:
|
|
597
604
|
- Adjust layout and typography for improved file display
|
|
@@ -606,8 +613,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
606
613
|
- Improved performance by converting getters to computed properties (44beb75)
|
|
607
614
|
- Updated user properties to use first and last initials (511e43c)
|
|
608
615
|
- **Button Component**:
|
|
609
|
-
- Enhance with comprehensive size variants and improved documentation
|
|
610
|
-
- Update containerClass to use computed property for better performance
|
|
616
|
+
- Enhance with comprehensive size variants and improved documentation
|
|
617
|
+
- Update containerClass to use computed property for better performance
|
|
611
618
|
- **Tailwind Config**: Update error and accent color values for improved consistency
|
|
612
619
|
- Enhanced JSDoc documentation for multiple components (`wizard-content`, `wizard-marker`, `wizard-step`, `wizard-sub-step`, `wizard-wrapper`, `wizard.service`)
|
|
613
620
|
- Updated examples for improved component clarity
|
|
@@ -689,4 +696,3 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
689
696
|
- **Storybook Definitions**: Update storybook definitions (`c5c19a8`)
|
|
690
697
|
- **Code Changes**: Implement code changes to enhance functionality and improve performance (`13db375`)
|
|
691
698
|
- **Storybook**: Streamline imports and enhance story definitions for combobox (`b1e71c8`), audio-player (`b067c14`), dual-list (`830a184`), file-dropzone (`336d8a4`), select (`7d53d86`), and table (`1674dd9`).
|
|
692
|
-
```
|
package/README.md
CHANGED
|
@@ -6,11 +6,11 @@ Explore the documentation, try out the examples, and start building amazing appl
|
|
|
6
6
|
|
|
7
7
|
Happy coding!
|
|
8
8
|
|
|
9
|
-
](https://postimg.cc/0rNbHK67)
|
|
10
10
|
|
|
11
11
|
## Pre-requirements
|
|
12
12
|
|
|
13
|
-
- Angular
|
|
13
|
+
- Angular 19.2.X or later
|
|
14
14
|
|
|
15
15
|
## Available Components
|
|
16
16
|
|
|
@@ -89,7 +89,11 @@ npm i -D @sixbell-telco/sdk @tailwindcss/typography daisyui @midudev/tailwind-an
|
|
|
89
89
|
3. Add the provided configuration to gobla stylesheet where you configured tailwind [See detailed config below]
|
|
90
90
|
|
|
91
91
|
```css
|
|
92
|
-
@import 'node_modules/@sixbell-telco/sdk/_index.
|
|
92
|
+
@import '../node_modules/@sixbell-telco/sdk/_index.css';
|
|
93
|
+
|
|
94
|
+
@import 'tailwindcss';
|
|
95
|
+
|
|
96
|
+
@source '../src';
|
|
93
97
|
```
|
|
94
98
|
|
|
95
99
|
> **⚠️ IMPORTANT**: Make sure to import the `_index.css` before the tailwind import.
|
|
@@ -134,7 +138,7 @@ For VSCode users, it is recommended to install the official Tailwind CSS extensi
|
|
|
134
138
|
"files.associations": {
|
|
135
139
|
"*.css": "tailwindcss"
|
|
136
140
|
},
|
|
137
|
-
"tailwindCSS.classAttributes": ["class", "className", "ngClass", "class:list"
|
|
141
|
+
"tailwindCSS.classAttributes": ["class", "className", "ngClass", "class:list"],
|
|
138
142
|
"tailwindCSS.experimental.classRegex": [
|
|
139
143
|
["cva\\(((?:[^()]|\\([^()]*\\))*)\\)", "[\"'`]([^\"'`]*).*?[\"'`]"],
|
|
140
144
|
["cx\\(((?:[^()]|\\([^()]*\\))*)\\)", "(?:'|\"|`)([^']*)(?:'|\"|`)"],
|
|
@@ -156,7 +160,7 @@ With these settings, VSCode will provide class autocompletion for the library's
|
|
|
156
160
|
Before setting up translations, first install the necessary packages:
|
|
157
161
|
|
|
158
162
|
```bash
|
|
159
|
-
npm install @ngx-translate/core @ngx-translate/http-loader ngx-translate-multi-http-loader@
|
|
163
|
+
npm install @ngx-translate/core@16.0 @ngx-translate/http-loader@16.0 ngx-translate-multi-http-loader@19.0
|
|
160
164
|
```
|
|
161
165
|
|
|
162
166
|
#### Setup
|
|
@@ -458,7 +462,7 @@ import { provideTranslateService, TranslateLoader } from '@ngx-translate/core';
|
|
|
458
462
|
import { MultiTranslateHttpLoader } from 'ngx-translate-multi-http-loader';
|
|
459
463
|
|
|
460
464
|
export function HttpLoaderFactory(_httpBackend: HttpBackend) {
|
|
461
|
-
return new MultiTranslateHttpLoader(_httpBackend, ['/assets/i18n/']);
|
|
465
|
+
return new MultiTranslateHttpLoader(_httpBackend, ['/assets/i18n/', '/assets/i18n/sdk/']);
|
|
462
466
|
}
|
|
463
467
|
```
|
|
464
468
|
|
|
@@ -472,18 +476,68 @@ export const appConfig: ApplicationConfig = {
|
|
|
472
476
|
providers: [
|
|
473
477
|
provideRouter(routes),
|
|
474
478
|
provideHttpClient(),
|
|
475
|
-
provideTranslateService({
|
|
476
|
-
loader: {
|
|
477
|
-
provide: TranslateLoader,
|
|
478
|
-
useFactory: HttpLoaderFactory,
|
|
479
|
-
deps: [HttpBackend],
|
|
480
|
-
},
|
|
481
|
-
}),
|
|
479
|
+
provideTranslateService({ loader: { provide: TranslateLoader, useFactory: HttpLoaderFactory, deps: [HttpBackend] } }),
|
|
482
480
|
],
|
|
483
481
|
};
|
|
484
482
|
```
|
|
485
483
|
|
|
486
|
-
6.
|
|
484
|
+
6. After, add a traslation service like this one to encapsulate all the translation logic:
|
|
485
|
+
|
|
486
|
+
```ts
|
|
487
|
+
import { Injectable, inject } from '@angular/core';
|
|
488
|
+
import { EnvironmentService } from '@core/services/environment/environment.service';
|
|
489
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
490
|
+
|
|
491
|
+
export interface Locale {
|
|
492
|
+
lang: string;
|
|
493
|
+
data: object;
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
const LOCALIZATION_LOCAL_STORAGE_KEY = 'language';
|
|
497
|
+
|
|
498
|
+
@Injectable({
|
|
499
|
+
providedIn: 'root',
|
|
500
|
+
})
|
|
501
|
+
export class TranslationService {
|
|
502
|
+
translate = inject(TranslateService);
|
|
503
|
+
environmentService = inject(EnvironmentService);
|
|
504
|
+
|
|
505
|
+
constructor() {
|
|
506
|
+
const defaultLanguage: string = this.environmentService.language;
|
|
507
|
+
|
|
508
|
+
// add new langIds to the list
|
|
509
|
+
this.translate.addLangs([defaultLanguage]);
|
|
510
|
+
|
|
511
|
+
// this language will be used as a fallback when a translation isn't found in the current language
|
|
512
|
+
this.translate.setDefaultLang(defaultLanguage);
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
loadTranslations(langs: string[]): void {
|
|
516
|
+
this.translate.addLangs(langs);
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
setLanguage(lang: string) {
|
|
520
|
+
if (lang) {
|
|
521
|
+
this.translate.use(lang);
|
|
522
|
+
localStorage.setItem(LOCALIZATION_LOCAL_STORAGE_KEY, lang);
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
getSelectedLanguage(): string {
|
|
527
|
+
return localStorage.getItem(LOCALIZATION_LOCAL_STORAGE_KEY) ?? this.translate.getDefaultLang();
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
instant(key: string, params?: object | undefined) {
|
|
531
|
+
if (params) {
|
|
532
|
+
return this.translate.instant(key, params);
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
return this.translate.instant(key);
|
|
536
|
+
}
|
|
537
|
+
}
|
|
538
|
+
```
|
|
539
|
+
|
|
540
|
+
7. Finally, call the traslation service in app.component to load the translations:
|
|
487
541
|
|
|
488
542
|
```ts
|
|
489
543
|
import { Component } from '@angular/core';
|
|
@@ -494,10 +548,11 @@ import { TranslateService } from '@ngx-translate/core';
|
|
|
494
548
|
template: `<router-outlet></router-outlet>`,
|
|
495
549
|
})
|
|
496
550
|
export class AppComponent {
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
551
|
+
translationService = inject(TranslationService);
|
|
552
|
+
|
|
553
|
+
constructor() {
|
|
554
|
+
// register translations
|
|
555
|
+
this.translationService.loadTranslations(['es', 'en', 'pt']);
|
|
501
556
|
}
|
|
502
557
|
}
|
|
503
558
|
```
|
|
@@ -531,4 +586,4 @@ For detailed component documentation, visit our [Storybook](https://storybook.js
|
|
|
531
586
|
|
|
532
587
|
## Last update
|
|
533
588
|
|
|
534
|
-
This file was last updated in July
|
|
589
|
+
This file was last updated in July 18th, 2025.
|
package/_index.css
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sixbell-telco/sdk",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "A collection of reusable components designed for use in Sixbell Telco Angular projects",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"sixbell",
|
|
@@ -12,7 +12,10 @@
|
|
|
12
12
|
"19",
|
|
13
13
|
"tailwindcss",
|
|
14
14
|
"tailwind",
|
|
15
|
-
"angular 19"
|
|
15
|
+
"angular 19",
|
|
16
|
+
"sixbell-telco",
|
|
17
|
+
"ui kit",
|
|
18
|
+
"sixbell telco ui kit"
|
|
16
19
|
],
|
|
17
20
|
"private": false,
|
|
18
21
|
"main": "",
|
|
@@ -35,14 +38,14 @@
|
|
|
35
38
|
"types": "./components/audio-player/index.d.ts",
|
|
36
39
|
"default": "./fesm2022/sixbell-telco-sdk-components-audio-player.mjs"
|
|
37
40
|
},
|
|
38
|
-
"./components/avatar": {
|
|
39
|
-
"types": "./components/avatar/index.d.ts",
|
|
40
|
-
"default": "./fesm2022/sixbell-telco-sdk-components-avatar.mjs"
|
|
41
|
-
},
|
|
42
41
|
"./components/badge": {
|
|
43
42
|
"types": "./components/badge/index.d.ts",
|
|
44
43
|
"default": "./fesm2022/sixbell-telco-sdk-components-badge.mjs"
|
|
45
44
|
},
|
|
45
|
+
"./components/avatar": {
|
|
46
|
+
"types": "./components/avatar/index.d.ts",
|
|
47
|
+
"default": "./fesm2022/sixbell-telco-sdk-components-avatar.mjs"
|
|
48
|
+
},
|
|
46
49
|
"./components/button": {
|
|
47
50
|
"types": "./components/button/index.d.ts",
|
|
48
51
|
"default": "./fesm2022/sixbell-telco-sdk-components-button.mjs"
|
|
@@ -187,10 +190,6 @@
|
|
|
187
190
|
"types": "./utils/generators/uuid/index.d.ts",
|
|
188
191
|
"default": "./fesm2022/sixbell-telco-sdk-utils-generators-uuid.mjs"
|
|
189
192
|
},
|
|
190
|
-
"./utils/pipes/extract-extension": {
|
|
191
|
-
"types": "./utils/pipes/extract-extension/index.d.ts",
|
|
192
|
-
"default": "./fesm2022/sixbell-telco-sdk-utils-pipes-extract-extension.mjs"
|
|
193
|
-
},
|
|
194
193
|
"./utils/pipes/time": {
|
|
195
194
|
"types": "./utils/pipes/time/index.d.ts",
|
|
196
195
|
"default": "./fesm2022/sixbell-telco-sdk-utils-pipes-time.mjs"
|
|
@@ -199,10 +198,22 @@
|
|
|
199
198
|
"types": "./utils/pipes/to-bytes-extesion/index.d.ts",
|
|
200
199
|
"default": "./fesm2022/sixbell-telco-sdk-utils-pipes-to-bytes-extesion.mjs"
|
|
201
200
|
},
|
|
201
|
+
"./utils/pipes/extract-extension": {
|
|
202
|
+
"types": "./utils/pipes/extract-extension/index.d.ts",
|
|
203
|
+
"default": "./fesm2022/sixbell-telco-sdk-utils-pipes-extract-extension.mjs"
|
|
204
|
+
},
|
|
202
205
|
"./components/icon/heroicons/mini": {
|
|
203
206
|
"types": "./components/icon/heroicons/mini/index.d.ts",
|
|
204
207
|
"default": "./fesm2022/sixbell-telco-sdk-components-icon-heroicons-mini.mjs"
|
|
205
208
|
},
|
|
209
|
+
"./components/icon/heroicons/outline": {
|
|
210
|
+
"types": "./components/icon/heroicons/outline/index.d.ts",
|
|
211
|
+
"default": "./fesm2022/sixbell-telco-sdk-components-icon-heroicons-outline.mjs"
|
|
212
|
+
},
|
|
213
|
+
"./components/icon/heroicons/solid": {
|
|
214
|
+
"types": "./components/icon/heroicons/solid/index.d.ts",
|
|
215
|
+
"default": "./fesm2022/sixbell-telco-sdk-components-icon-heroicons-solid.mjs"
|
|
216
|
+
},
|
|
206
217
|
"./components/icon/material/baseline": {
|
|
207
218
|
"types": "./components/icon/material/baseline/index.d.ts",
|
|
208
219
|
"default": "./fesm2022/sixbell-telco-sdk-components-icon-material-baseline.mjs"
|
|
@@ -211,36 +222,28 @@
|
|
|
211
222
|
"types": "./components/icon/material/outline/index.d.ts",
|
|
212
223
|
"default": "./fesm2022/sixbell-telco-sdk-components-icon-material-outline.mjs"
|
|
213
224
|
},
|
|
214
|
-
"./components/icon/
|
|
215
|
-
"types": "./components/icon/
|
|
216
|
-
"default": "./fesm2022/sixbell-telco-sdk-components-icon-
|
|
217
|
-
},
|
|
218
|
-
"./components/icon/heroicons/outline": {
|
|
219
|
-
"types": "./components/icon/heroicons/outline/index.d.ts",
|
|
220
|
-
"default": "./fesm2022/sixbell-telco-sdk-components-icon-heroicons-outline.mjs"
|
|
225
|
+
"./components/icon/material/round": {
|
|
226
|
+
"types": "./components/icon/material/round/index.d.ts",
|
|
227
|
+
"default": "./fesm2022/sixbell-telco-sdk-components-icon-material-round.mjs"
|
|
221
228
|
},
|
|
222
229
|
"./components/icon/material/sharp": {
|
|
223
230
|
"types": "./components/icon/material/sharp/index.d.ts",
|
|
224
231
|
"default": "./fesm2022/sixbell-telco-sdk-components-icon-material-sharp.mjs"
|
|
225
|
-
},
|
|
226
|
-
"./components/icon/material/round": {
|
|
227
|
-
"types": "./components/icon/material/round/index.d.ts",
|
|
228
|
-
"default": "./fesm2022/sixbell-telco-sdk-components-icon-material-round.mjs"
|
|
229
232
|
}
|
|
230
233
|
},
|
|
231
234
|
"peerDependencies": {
|
|
232
235
|
"@angular/core": "~19.2.0",
|
|
236
|
+
"@angular/cdk": "~19.2.18",
|
|
233
237
|
"@midudev/tailwind-animations": "~0.2.0",
|
|
234
|
-
"@ng-select/ng-select": "~14.2.2",
|
|
235
238
|
"ngx-pagination": "~6.0.3",
|
|
236
239
|
"@tailwindcss/typography": "~0.5.16",
|
|
237
|
-
"@tailwindcss/postcss": "~4.
|
|
240
|
+
"@tailwindcss/postcss": "~4.1.10",
|
|
238
241
|
"class-variance-authority": "~0.7.1",
|
|
239
242
|
"clsx": "~2.1.1",
|
|
240
243
|
"daisyui": "~5.0.9",
|
|
241
244
|
"postcss": "~8.5.3",
|
|
242
245
|
"tailwind-merge": "~3.0.2",
|
|
243
|
-
"tailwindcss": "~4.
|
|
246
|
+
"tailwindcss": "~4.1.10",
|
|
244
247
|
"dayjs": "~1.11.13",
|
|
245
248
|
"uuid": "~11.1.0",
|
|
246
249
|
"@ng-icons/core": "~30.4.0",
|
|
Binary file
|
|
Binary file
|