@sixbell-telco/sdk 0.7.1 → 0.7.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 (91) hide show
  1. package/CHANGELOG.md +69 -27
  2. package/README.md +331 -54
  3. package/_index.scss +1 -1
  4. package/components/audio-player/src/audio-player.component.d.ts +11 -8
  5. package/components/button/src/button.component.d.ts +2 -2
  6. package/components/countdown/src/countdown.component.d.ts +1 -5
  7. package/components/dual-list/src/dual-list.component.d.ts +2 -3
  8. package/components/file-upload/file-dropzone/src/file-dropzone.component.d.ts +2 -2
  9. package/components/forms/combobox/src/combobox.component.d.ts +3 -3
  10. package/components/forms/form-error/src/form-error.component.d.ts +1 -8
  11. package/components/forms/input/src/input.component.d.ts +1 -1
  12. package/components/forms/select/src/select.component.d.ts +5 -3
  13. package/components/icon/src/icon.component.d.ts +2 -2
  14. package/components/product-card/src/product-card.component.d.ts +1 -2
  15. package/components/table/src/table.component.d.ts +3 -12
  16. package/components/wizard/wizard-marker/wizard-marker.component.d.ts +10 -2
  17. package/directives/typography/src/typography.directive.d.ts +1 -1
  18. package/esm2022/components/audio-player/audio-timeline/audio-timeline.component.mjs +3 -3
  19. package/esm2022/components/audio-player/button-play/button-play.component.mjs +5 -5
  20. package/esm2022/components/audio-player/src/audio-player.component.mjs +43 -22
  21. package/esm2022/components/audio-player/track-info/track-info.component.mjs +4 -3
  22. package/esm2022/components/avatar/src/avatar.component.mjs +3 -3
  23. package/esm2022/components/badge/src/badge.component.mjs +6 -5
  24. package/esm2022/components/button/src/button.component.mjs +6 -7
  25. package/esm2022/components/countdown/src/countdown.component.mjs +4 -7
  26. package/esm2022/components/dropdown/src/dropdown.component.mjs +6 -6
  27. package/esm2022/components/dual-list/src/dual-list.component.mjs +15 -5
  28. package/esm2022/components/file-upload/file-dropzone/src/file-dropzone.component.mjs +13 -13
  29. package/esm2022/components/file-upload/file-uploader/src/file-uploader.component.mjs +4 -3
  30. package/esm2022/components/forms/combobox/src/combobox.component.mjs +32 -9
  31. package/esm2022/components/forms/form-error/src/form-error.component.mjs +4 -11
  32. package/esm2022/components/forms/input/src/input.component.mjs +12 -12
  33. package/esm2022/components/forms/select/src/select.component.mjs +43 -12
  34. package/esm2022/components/forms/textarea/src/textarea.component.mjs +9 -8
  35. package/esm2022/components/forms/toggle/src/toggle.component.mjs +31 -31
  36. package/esm2022/components/icon/src/icon.component.mjs +5 -4
  37. package/esm2022/components/link/src/link.component.mjs +2 -2
  38. package/esm2022/components/product-card/src/product-card.component.mjs +4 -7
  39. package/esm2022/components/tab/src/tab.component.mjs +5 -5
  40. package/esm2022/components/table/src/table.component.mjs +23 -19
  41. package/esm2022/components/tooltip/src/tooltip.component.mjs +2 -2
  42. package/esm2022/components/wizard/wizard-marker/wizard-marker.component.mjs +22 -3
  43. package/esm2022/components/wizard/wizard-wrapper/wizard-wrapper.component.mjs +4 -3
  44. package/esm2022/directives/typography/src/typography.directive.mjs +2 -1
  45. package/fesm2022/sixbell-telco-sdk-components-audio-player.mjs +49 -28
  46. package/fesm2022/sixbell-telco-sdk-components-audio-player.mjs.map +1 -1
  47. package/fesm2022/sixbell-telco-sdk-components-avatar.mjs +2 -2
  48. package/fesm2022/sixbell-telco-sdk-components-avatar.mjs.map +1 -1
  49. package/fesm2022/sixbell-telco-sdk-components-badge.mjs +5 -4
  50. package/fesm2022/sixbell-telco-sdk-components-badge.mjs.map +1 -1
  51. package/fesm2022/sixbell-telco-sdk-components-button.mjs +5 -6
  52. package/fesm2022/sixbell-telco-sdk-components-button.mjs.map +1 -1
  53. package/fesm2022/sixbell-telco-sdk-components-countdown.mjs +3 -6
  54. package/fesm2022/sixbell-telco-sdk-components-countdown.mjs.map +1 -1
  55. package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs +5 -5
  56. package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs.map +1 -1
  57. package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs +14 -4
  58. package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs.map +1 -1
  59. package/fesm2022/sixbell-telco-sdk-components-file-upload-file-dropzone.mjs +12 -12
  60. package/fesm2022/sixbell-telco-sdk-components-file-upload-file-dropzone.mjs.map +1 -1
  61. package/fesm2022/sixbell-telco-sdk-components-file-upload-file-uploader.mjs +3 -2
  62. package/fesm2022/sixbell-telco-sdk-components-file-upload-file-uploader.mjs.map +1 -1
  63. package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs +31 -8
  64. package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs.map +1 -1
  65. package/fesm2022/sixbell-telco-sdk-components-forms-form-error.mjs +3 -10
  66. package/fesm2022/sixbell-telco-sdk-components-forms-form-error.mjs.map +1 -1
  67. package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs +11 -11
  68. package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs.map +1 -1
  69. package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs +42 -11
  70. package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs.map +1 -1
  71. package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs +8 -7
  72. package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs.map +1 -1
  73. package/fesm2022/sixbell-telco-sdk-components-forms-toggle.mjs +30 -30
  74. package/fesm2022/sixbell-telco-sdk-components-forms-toggle.mjs.map +1 -1
  75. package/fesm2022/sixbell-telco-sdk-components-icon.mjs +4 -3
  76. package/fesm2022/sixbell-telco-sdk-components-icon.mjs.map +1 -1
  77. package/fesm2022/sixbell-telco-sdk-components-link.mjs +1 -1
  78. package/fesm2022/sixbell-telco-sdk-components-link.mjs.map +1 -1
  79. package/fesm2022/sixbell-telco-sdk-components-product-card.mjs +3 -6
  80. package/fesm2022/sixbell-telco-sdk-components-product-card.mjs.map +1 -1
  81. package/fesm2022/sixbell-telco-sdk-components-tab.mjs +4 -4
  82. package/fesm2022/sixbell-telco-sdk-components-tab.mjs.map +1 -1
  83. package/fesm2022/sixbell-telco-sdk-components-table.mjs +22 -18
  84. package/fesm2022/sixbell-telco-sdk-components-table.mjs.map +1 -1
  85. package/fesm2022/sixbell-telco-sdk-components-tooltip.mjs +1 -1
  86. package/fesm2022/sixbell-telco-sdk-components-tooltip.mjs.map +1 -1
  87. package/fesm2022/sixbell-telco-sdk-components-wizard.mjs +23 -4
  88. package/fesm2022/sixbell-telco-sdk-components-wizard.mjs.map +1 -1
  89. package/fesm2022/sixbell-telco-sdk-directives-typography.mjs +1 -0
  90. package/fesm2022/sixbell-telco-sdk-directives-typography.mjs.map +1 -1
  91. package/package.json +57 -57
package/CHANGELOG.md CHANGED
@@ -9,9 +9,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
9
9
 
10
10
  ### Added
11
11
 
12
- - **Table Component**: Add detailed internal type definitions and comprehensive documentation (4384daa)
13
- - **Table Row Checkbox**: Add detailed documentation and input definitions (823cf4a)
12
+ - **Table Component**: Enhance with comprehensive documentation and internal type definitions (4384daad)
13
+ - **Table Row Checkbox**: Add detailed documentation and input definitions (823cf4af)
14
14
  - **Table Header Checkbox**: Add comprehensive documentation (58ae95b)
15
+ - **Typography Directive**: Enhance with detailed documentation and additional text overflow handling (14f1df13)
15
16
  - **Modal Component**: Add detailed documentation and type definitions for component properties (68a3ac9)
16
17
  - **Tooltip Component**: Add inline-flex and items-center classes for improved alignment
17
18
  - **Icon Component**: Added icon component (`528b633`)
@@ -104,17 +105,26 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
104
105
  - **Showcase**: Add multiple input variants with disabled state example (`a960358`)
105
106
  - **Audio Player**: Implemented audio player service with track management and playback controls (`9b2c680`)
106
107
  - **File Uploader Component**:
107
- - Add setup instructions and example JSON files for multiple languages
108
- - Enhance file dropzone with audio player controls and tooltips
109
- - Add multi-language support for English, Spanish, and Portuguese translations
108
+ - Add setup instructions and example JSON files for multiple languages
109
+ - Enhance file dropzone with audio player controls and tooltips
110
+ - Add multi-language support for English, Spanish, and Portuguese translations
110
111
  - **Audio Player Component**:
111
- - Add method to check if track is currently playing
112
- - Add method to retrieve authenticated audio URLs
113
- - Implement track management functionality
114
- - Add play button styling with gradient background and hover effects
112
+ - Add method to check if track is currently playing
113
+ - Add method to retrieve authenticated audio URLs
114
+ - Implement track management functionality
115
+ - Add play button styling with gradient background and hover effects
116
+ - **Typography**: Added 'body-xxs' size for improved text scaling
117
+ - **Alignment**: Added 'align-top' class to improve vertical alignment in:
118
+ - Tooltip component
119
+ - Avatar component
120
+ - Link component
121
+ - Button component
122
+ - **Audio Player**: Add close button functionality and animation handling for fixed variant visibility
123
+ - **File Dropzone**: Add support for additional file types and enhance error handling
115
124
 
116
125
  ### Fixed
117
126
 
127
+ - **Table Layout**: Add padding to the empty state container for improved layout (3d5c6b75)
118
128
  - **Link Component**: Fixed styling issues for button variants (`d56cdf4`)
119
129
  - **Form Errors**: Handle case where errors are null (`fdfbe1c`)
120
130
  - **Changelog**: Fix types, update sections, and remove unnecessary sections (`4715ded`)
@@ -157,9 +167,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
157
167
  - **Wizard Sub-Step Component**: Remove @ngx-translate/core dependency from tests (`4006327`)
158
168
  - **File Uploader**: Removed shape property and related logic for simplification (`894638d`)
159
169
  - **Tab**: Removed unused classes property for simplification (`6aee6e9`)
170
+ - **Code Cleanup**:
171
+ - Removed console log from wizard-marker component
172
+ - Eliminated commented-out code from input component
173
+ - Removed redundant font class from button component
160
174
 
161
175
  ### Changed
162
176
 
177
+ - **Showcase**: Upgrade table showcase section (4c02afa4)
178
+ - **Typography Directive**: Update directive scale to minor second for improved readability and consistency
163
179
  - **Modal Component**:
164
180
  - Update default width from 'fit' to 'lg' (cc95896)
165
181
  - Enhance component with additional width variants (b5db589)
@@ -388,27 +404,53 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
388
404
  - Enhance click handling and emit onClose event (`5a4c688`)
389
405
  - **Showcase**: Update typography in button section (`829a6f1`)
390
406
  - **Audio Player**:
391
- - Update audio player implementation with dynamic track handling and new table layout (`30fc483`)
392
- - Enhance track info layout with improved styling and overflow handling (`c16ea02`)
393
- - Simplify track list rendering and add dynamic title (`08f3261`)
394
- - Remove unused progress and duration variables for cleaner template (`72a4d0e`)
395
- - Export audio service for improved component integration (`039059c`)
396
- - Integrate audio service for track management and simplify component logic (`8f2d608`)
397
- - Replace direct volume manipulation with audio service integration (`addd3ed`)
398
- - Integrate audio service for play state management and update icon rendering (`214f58c`)
399
- - Simplify progress and duration calculations using audio service (`f519558`)
407
+ - Update audio player implementation with dynamic track handling and new table layout (`30fc483`)
408
+ - Enhance track info layout with improved styling and overflow handling (`c16ea02`)
409
+ - Simplify track list rendering and add dynamic title (`08f3261`)
410
+ - Remove unused progress and duration variables for cleaner template (`72a4d0e`)
411
+ - Export audio service for improved component integration (`039059c`)
412
+ - Integrate audio service for track management and simplify component logic (`8f2d608`)
413
+ - Replace direct volume manipulation with audio service integration (`addd3ed`)
414
+ - Integrate audio service for play state management and update icon rendering (`214f58c`)
415
+ - Simplify progress and duration calculations using audio service (`f519558`)
400
416
  - **App Config**: Add HttpClient provider for enhanced HTTP capabilities (`0e0c63f`)
401
417
  - **Audio Player**: Replace audioService with audioPlayerService for improved service integration and cleanup (`75660a9`)
402
418
  - **Audio Service**: Enhance audio track handling with authenticated URL retrieval and cleanup method (`1c9870d`)
403
419
  - **Tailwind**: Update primary color scheme and add primary gradient variable
404
420
  - **Audio Player**:
405
- - Update audio player implementation with dynamic track handling
406
- - Enhance track info layout with improved styling
407
- - Simplify track list rendering with dynamic titles
408
- - Integrate audio service for improved track management
409
- - Update track icon styling with new gradient class
421
+ - Update audio player implementation with dynamic track handling
422
+ - Enhance track info layout with improved styling
423
+ - Simplify track list rendering with dynamic titles
424
+ - Integrate audio service for improved track management
425
+ - Update track icon styling with new gradient class
410
426
  - **File Uploader**:
411
- - Update typography for uploader headings
412
- - Restructure dropzone forms for improved user experience
413
- - Integrate form control support
414
- - Enhance file input handling
427
+ - Update typography for uploader headings
428
+ - Restructure dropzone forms for improved user experience
429
+ - Integrate form control support
430
+ - Enhance file input handling
431
+ - **Component Styling**:
432
+ - **Text and Typography**:
433
+ - Updated badge text sizes for improved readability and scaling
434
+ - Enhanced textarea text sizes for better readability
435
+ - Adjusted select text sizes for improved scaling
436
+ - Modified input text sizes for better scaling
437
+ - Updated audio-timeline text size to 'body-xxs'
438
+ - Refined table paginator text size
439
+ - **Layout and Structure**:
440
+ - Enhanced card layout and spacing
441
+ - Updated icon color variants
442
+ - Modified tab sizes and text styles
443
+ - Improved dropdown button sizes and text styles
444
+ - Streamlined file-dropzone button structure
445
+ - **Width and Alignment**:
446
+ - Enhanced input component's full width handling
447
+ - Improved vertical alignment across multiple components
448
+ - **Tailwind**: Added custom sizes for buttons, inputs, and selects
449
+ - **File Dropzone**:
450
+ - Adjust layout and typography for improved file display
451
+ - Streamline audio player integration and enforce required extensions
452
+ - **Icon**: Update icon component styles for improved alignment and layout
453
+ - **Audio Player**: Optimize playerClass and currentTrack properties for better performance
454
+ - **Select**: Enhance option tracking and validation logic
455
+ - **Combobox**: Improve option tracking and validation logic
456
+ - **i18n**: Remove player visibility actions from file actions
package/README.md CHANGED
@@ -192,7 +192,57 @@ module.exports = {
192
192
  '--btn-focus-scale': '0.95', // scale transform of button when you focus on it
193
193
  '--border-btn': '1px', // border width of buttons
194
194
  '--tab-border': '1px', // border width of tabs
195
- '--tab-radius': '0.5rem', // border radius of tabs
195
+ '--tab-radius': '0.5rem', // border radius of tabs,
196
+ // custom button sizes
197
+ '.btn-md': {
198
+ height: '2.5rem',
199
+ 'min-height': '2.5rem',
200
+ },
201
+ '.btn-square:where(.btn-md)': {
202
+ height: '2.5rem',
203
+ width: '2.5rem',
204
+ padding: '0',
205
+ },
206
+ '.btn-circle:where(.btn-md)': {
207
+ height: '2.5rem',
208
+ width: '2.5rem',
209
+ padding: '0',
210
+ },
211
+ '.btn-lg': {
212
+ height: '3rem',
213
+ 'min-height': '3rem',
214
+ 'padding-left': '1rem',
215
+ 'padding-right': '1rem',
216
+ 'font-size': '1.125rem',
217
+ },
218
+ '.btn-square:where(.btn-lg)': {
219
+ height: '3rem',
220
+ width: '3rem',
221
+ padding: '0',
222
+ },
223
+ '.btn-circle:where(.btn-lg)': {
224
+ height: '3rem',
225
+ width: '3rem',
226
+ padding: '0',
227
+ },
228
+ // custom input sizes
229
+ '.input-md': {
230
+ height: '2.5rem',
231
+ 'min-height': '2.5rem',
232
+ },
233
+ '.input-lg': {
234
+ height: '3rem',
235
+ 'min-height': '3rem',
236
+ },
237
+ // custom select sizes
238
+ '.select-md': {
239
+ height: '2.5rem',
240
+ 'min-height': '2.5rem',
241
+ },
242
+ '.select-lg': {
243
+ height: '3rem',
244
+ 'min-height': '3rem',
245
+ },
196
246
  },
197
247
  vivid_elegance_dark: {
198
248
  // Daisy UI theme variables
@@ -242,7 +292,57 @@ module.exports = {
242
292
  '--btn-focus-scale': '0.95', // scale transform of button when you focus on it
243
293
  '--border-btn': '1px', // border width of buttons
244
294
  '--tab-border': '1px', // border width of tabs
245
- '--tab-radius': '0.5rem', // border radius of tabs
295
+ '--tab-radius': '0.5rem', // border radius of tabs,
296
+ // custom button sizes
297
+ '.btn-md': {
298
+ height: '2.5rem',
299
+ 'min-height': '2.5rem',
300
+ },
301
+ '.btn-square:where(.btn-md)': {
302
+ height: '2.5rem',
303
+ width: '2.5rem',
304
+ padding: '0',
305
+ },
306
+ '.btn-circle:where(.btn-md)': {
307
+ height: '2.5rem',
308
+ width: '2.5rem',
309
+ padding: '0',
310
+ },
311
+ '.btn-lg': {
312
+ height: '3rem',
313
+ 'min-height': '3rem',
314
+ 'padding-left': '1rem',
315
+ 'padding-right': '1rem',
316
+ 'font-size': '1rem',
317
+ },
318
+ '.btn-square:where(.btn-lg)': {
319
+ height: '3rem',
320
+ width: '3rem',
321
+ padding: '0',
322
+ },
323
+ '.btn-circle:where(.btn-lg)': {
324
+ height: '3rem',
325
+ width: '3rem',
326
+ padding: '0',
327
+ },
328
+ // custom input sizes
329
+ '.input-md': {
330
+ height: '2.5rem',
331
+ 'min-height': '2.5rem',
332
+ },
333
+ '.input-lg': {
334
+ height: '3rem',
335
+ 'min-height': '3rem',
336
+ },
337
+ // custom select sizes
338
+ '.select-md': {
339
+ height: '2.5rem',
340
+ 'min-height': '2.5rem',
341
+ },
342
+ '.select-lg': {
343
+ height: '3rem',
344
+ 'min-height': '3rem',
345
+ },
246
346
  },
247
347
  },
248
348
  ],
@@ -313,75 +413,252 @@ npm install @ngx-translate/core @ngx-translate/http-loader ngx-translate-multi-h
313
413
 
314
414
  3. In each file, include the corresponding translations for file uploader, for example:
315
415
 
416
+ ##### English
417
+
316
418
  ```json
317
419
  {
318
- "file-uploader": {
319
- "dropzone": {
320
- "selectPrompt": "Click to select files or drag and drop here",
321
- "maxSizeLabel": "Max size:",
322
- "allowedTypesLabel": "Allowed types:",
323
- "invalidFileType": "Invalid file type",
324
- "fileTooLarge": "File too large",
325
- "fileCounter": "{{current}} of {{max}} files",
326
- "maxFilesExceeded": "Maximum {{max}} file(s) allowed",
327
- "noValidFiles": "No valid files selected",
328
- "fileActions": {
329
- "play": "Play audio",
330
- "pause": "Pause audio",
331
- "showPlayer": "Show player",
332
- "hidePlayer": "Hide player",
333
- "download": "Download file",
334
- "remove": "Remove file"
420
+ "sdk": {
421
+ "fileUpload": {
422
+ "dropzone": {
423
+ "selectPrompt": "Click to select files or drag and drop here",
424
+ "maxSizeLabel": "Max size:",
425
+ "allowedTypesLabel": "Allowed types:",
426
+ "invalidFileType": "Invalid file type",
427
+ "fileTooLarge": "File too large",
428
+ "fileCounter": "{{current}} of {{max}} files",
429
+ "maxFilesExceeded": "Maximum {{max}} file(s) allowed",
430
+ "noValidFiles": "No valid files selected",
431
+ "fileActions": {
432
+ "play": "Play audio",
433
+ "pause": "Pause audio",
434
+ "download": "Download file",
435
+ "remove": "Remove file"
436
+ }
437
+ },
438
+ "fileUploader": {
439
+ "allowedTypesLabel": "Allowed types:"
440
+ }
441
+ },
442
+ "audioPlayer": {
443
+ "trackListTitle": "Tracks",
444
+ "trackInfo": {
445
+ "title": "No title",
446
+ "description": "No description"
447
+ }
448
+ },
449
+ "countdown": {
450
+ "days": "Days",
451
+ "hours": "Hours",
452
+ "minutes": "Minutes",
453
+ "seconds": "Seconds"
454
+ },
455
+ "dualList": {
456
+ "searchPlaceHolder": "Search"
457
+ },
458
+ "combobox": {
459
+ "noResultsFound": "No results found",
460
+ "loading": "Loading..."
461
+ },
462
+ "formErrors": {
463
+ "validation": {
464
+ "required": "*This field is required",
465
+ "email": "*Please enter a valid email address",
466
+ "minLength": "*Must be at least {{min}} characters",
467
+ "maxLength": "*Must be no more than {{max}} characters",
468
+ "min": "*Value must be at least {{min}}",
469
+ "max": "*Value must be no more than {{max}}",
470
+ "pattern": "*Invalid format",
471
+ "unhandledError": "*Unhandled error"
472
+ }
473
+ },
474
+ "textarea": {
475
+ "maxCharacters": "{{current}} of {{max}} characters"
476
+ },
477
+ "table": {
478
+ "entriesByPage": "Entries per page",
479
+ "totalEntries": "{{total}} entries",
480
+ "entriesRange": "{{range}} of {{total}} entries",
481
+ "emptyListMessage": "No items to show"
482
+ },
483
+ "wizard": {
484
+ "wizardMarker": {
485
+ "completed": "Completed",
486
+ "inProgress": "In progress",
487
+ "pending": "Pending"
488
+ },
489
+ "wizardWrapper": {
490
+ "back": "Back",
491
+ "previous": "Previous",
492
+ "end": "End",
493
+ "next": "Next"
335
494
  }
336
495
  }
337
496
  }
338
497
  }
339
498
  ```
340
499
 
500
+ ##### Spanish
501
+
341
502
  ```json
342
503
  {
343
- "file-uploader": {
344
- "dropzone": {
345
- "selectPrompt": "Haz clic para seleccionar archivos o arrastra y suelta aquí",
346
- "maxSizeLabel": "Tamaño máximo:",
347
- "allowedTypesLabel": "Tipos permitidos:",
348
- "invalidFileType": "Tipo de archivo no válido",
349
- "fileTooLarge": "Archivo demasiado grande",
350
- "fileCounter": "{{current}} de {{max}} archivos",
351
- "maxFilesExceeded": "Máximo de {{max}} archivo(s) permitido",
352
- "noValidFiles": "No se han seleccionado archivos válidos",
353
- "fileActions": {
354
- "play": "Reproducir audio",
355
- "pause": "Pausar audio",
356
- "showPlayer": "Mostrar reproductor",
357
- "hidePlayer": "Ocultar reproductor",
358
- "download": "Descargar archivo",
359
- "remove": "Quitar archivo"
504
+ "sdk": {
505
+ "fileUpload": {
506
+ "dropzone": {
507
+ "selectPrompt": "Haz clic para seleccionar archivos o arrastra y suelta aquí",
508
+ "maxSizeLabel": "Tamaño máximo:",
509
+ "allowedTypesLabel": "Tipos permitidos:",
510
+ "invalidFileType": "Tipo de archivo no válido",
511
+ "fileTooLarge": "Archivo demasiado grande",
512
+ "fileCounter": "{{current}} de {{max}} archivos",
513
+ "maxFilesExceeded": "Máximo de {{max}} archivo(s) permitido",
514
+ "noValidFiles": "No se han seleccionado archivos válidos",
515
+ "fileActions": {
516
+ "play": "Reproducir audio",
517
+ "pause": "Pausar audio",
518
+ "download": "Descargar archivo",
519
+ "remove": "Quitar archivo"
520
+ }
521
+ },
522
+ "fileUploader": {
523
+ "allowTypesLabel": "Tipos permitidos:"
524
+ }
525
+ },
526
+ "audioPlayer": {
527
+ "trackListTitle": "Pistas",
528
+ "trackInfo": {
529
+ "title": "Sin título",
530
+ "description": "Sin descripción"
531
+ }
532
+ },
533
+ "countdown": {
534
+ "days": "Días",
535
+ "hours": "Horas",
536
+ "minutes": "Minutos",
537
+ "seconds": "Segundos"
538
+ },
539
+ "dualList": {
540
+ "searchPlaceHolder": "Buscar"
541
+ },
542
+ "combobox": {
543
+ "noResultsFound": "No se encontraron resultados",
544
+ "loading": "Cargando..."
545
+ },
546
+ "formErrors": {
547
+ "validation": {
548
+ "required": "*Este campo es obligatorio",
549
+ "email": "*Por favor ingresa una dirección de correo válida",
550
+ "minLength": "*Debe tener al menos {{min}} caracteres",
551
+ "maxLength": "*No debe tener más de {{max}} caracteres",
552
+ "min": "*El valor debe ser al menos {{min}}",
553
+ "max": "*El valor no debe superar {{max}}",
554
+ "pattern": "*Formato inválido",
555
+ "unhandledError": "*Error inesperado"
556
+ }
557
+ },
558
+ "textarea": {
559
+ "maxCharacters": "{{current}} de {{max}} caracteres"
560
+ },
561
+ "table": {
562
+ "entriesByPage": "Entradas por página",
563
+ "totalEntries": "{{total}} entradas",
564
+ "entriesRange": "{{range}} de {{total}} entradas",
565
+ "emptyListMessage": "No hay elementos para mostrar"
566
+ },
567
+ "wizard": {
568
+ "wizardMarker": {
569
+ "completed": "Completado",
570
+ "inProgress": "En progreso",
571
+ "pending": "Pendiente"
572
+ },
573
+ "wizardWrapper": {
574
+ "back": "Atrás",
575
+ "previous": "Anterior",
576
+ "end": "Finalizar",
577
+ "next": "Siguiente"
360
578
  }
361
579
  }
362
580
  }
363
581
  }
364
582
  ```
365
583
 
584
+ ##### Portuguese
585
+
366
586
  ```json
367
587
  {
368
- "file-uploader": {
369
- "dropzone": {
370
- "selectPrompt": "Clique para selecionar os arquivos ou arraste e solte aqui",
371
- "maxSizeLabel": "Tamanho máximo:",
372
- "allowedTypesLabel": "Tipos permitidos:",
373
- "invalidFileType": "Tipo de arquivo inválido",
374
- "fileTooLarge": "Arquivo muito grande",
375
- "fileCounter": "{{current}} de {{max}} arquivos",
376
- "maxFilesExceeded": "Máximo de {{max}} arquivo(s) permitido",
377
- "noValidFiles": "Nenhum arquivo válido selecionado",
378
- "fileActions": {
379
- "play": "Tocar áudio",
380
- "pause": "Pausar áudio",
381
- "showPlayer": "Exibir player",
382
- "hidePlayer": "Ocultar player",
383
- "download": "Baixar arquivo",
384
- "remove": "Remover arquivo"
588
+ "sdk": {
589
+ "fileUpload": {
590
+ "dropzone": {
591
+ "selectPrompt": "Haz clic para seleccionar archivos o arrastra y suelta aquí",
592
+ "maxSizeLabel": "Tamaño máximo:",
593
+ "allowedTypesLabel": "Tipos permitidos:",
594
+ "invalidFileType": "Tipo de archivo no válido",
595
+ "fileTooLarge": "Archivo demasiado grande",
596
+ "fileCounter": "{{current}} de {{max}} archivos",
597
+ "maxFilesExceeded": "Máximo de {{max}} archivo(s) permitido",
598
+ "noValidFiles": "No se han seleccionado archivos válidos",
599
+ "fileActions": {
600
+ "play": "Reproducir audio",
601
+ "pause": "Pausar audio",
602
+ "download": "Descargar archivo",
603
+ "remove": "Quitar archivo"
604
+ }
605
+ },
606
+ "fileUploader": {
607
+ "allowedTypesLabel": "Tipos permitidos:"
608
+ }
609
+ },
610
+ "audioPlayer": {
611
+ "trackListTitle": "Trilhas",
612
+ "trackInfo": {
613
+ "title": "Sem título",
614
+ "description": "Sem descrição"
615
+ }
616
+ },
617
+ "countdown": {
618
+ "days": "Dias",
619
+ "hours": "Horas",
620
+ "minutes": "Minutos",
621
+ "seconds": "Segundos"
622
+ },
623
+ "dualList": {
624
+ "searchPlaceHolder": "Pesquisar"
625
+ },
626
+ "combobox": {
627
+ "noResultsFound": "Nenhum resultado encontrado",
628
+ "loading": "Carregando..."
629
+ },
630
+ "formErrors": {
631
+ "validation": {
632
+ "required": "*Este campo é obrigatório",
633
+ "email": "*Por favor, insira um endereço de e-mail válido",
634
+ "minLength": "*Deve ter pelo menos {{min}} caracteres",
635
+ "maxLength": "*Deve ter no máximo {{max}} caracteres",
636
+ "min": "*O valor deve ser de pelo menos {{min}}",
637
+ "max": "*O valor deve ser de no máximo {{max}}",
638
+ "pattern": "*Formato inválido",
639
+ "unhandledError": "*Erro não tratado"
640
+ }
641
+ },
642
+ "textarea": {
643
+ "maxCharacters": "{{current}} de {{max}} caracteres"
644
+ },
645
+ "table": {
646
+ "entriesByPage": "Entradas por página",
647
+ "totalEntries": "{{total}} entradas",
648
+ "entriesRange": "{{range}} de {{total}} entradas",
649
+ "emptyListMessage": "Nenhum item para mostrar"
650
+ },
651
+ "wizard": {
652
+ "wizardMarker": {
653
+ "completed": "Concluído",
654
+ "inProgress": "Em andamento",
655
+ "pending": "Pendente"
656
+ },
657
+ "wizardWrapper": {
658
+ "back": "Voltar",
659
+ "previous": "Anterior",
660
+ "end": "Fim",
661
+ "next": "Próximo"
385
662
  }
386
663
  }
387
664
  }
@@ -470,4 +747,4 @@ For detailed component documentation, visit our [Storybook](https://storybook.js
470
747
 
471
748
  ## Last update
472
749
 
473
- This file was last updated on February 7th, 2025.
750
+ This file was last updated on February 18th, 2025.
package/_index.scss CHANGED
@@ -141,6 +141,6 @@
141
141
 
142
142
  @layer components {
143
143
  st-icon {
144
- @apply leading-[0];
144
+ @apply inline-flex items-center justify-center align-top;
145
145
  }
146
146
  }
@@ -8,27 +8,30 @@ export interface Track {
8
8
  }
9
9
  export type AudioPlayerVariantProps = 'default' | 'fixed';
10
10
  export declare class AudioPlayerComponent implements OnDestroy {
11
+ audioPlayerService: AudioPlayerService;
11
12
  variant: import("@angular/core").InputSignal<AudioPlayerVariantProps>;
12
- opened: import("@angular/core").InputSignal<boolean>;
13
- trackListTitle: import("@angular/core").InputSignal<string>;
14
- currentTrackIndex: import("@angular/core").ModelSignal<number>;
13
+ shadow: import("@angular/core").InputSignal<boolean>;
14
+ opened: import("@angular/core").ModelSignal<boolean>;
15
15
  tracks: import("@angular/core").InputSignal<Track[]>;
16
16
  showTrackList: import("@angular/core").InputSignal<boolean>;
17
+ currentTrackIndex: import("@angular/core").ModelSignal<number>;
18
+ currentTrack: import("@angular/core").Signal<Track | undefined>;
17
19
  iconSkipPrevious: string;
18
20
  iconSkipNext: string;
19
21
  iconPlay: string;
20
22
  iconPause: string;
21
23
  iconMusicNote: string;
22
- shadow: import("@angular/core").InputSignal<boolean>;
23
- audioPlayerService: AudioPlayerService;
24
+ offScreen: import("@angular/core").WritableSignal<boolean>;
25
+ playerClass: import("@angular/core").Signal<string>;
24
26
  constructor();
25
- get playerClass(): string;
26
- get currentTrack(): Track | undefined;
27
+ handleAnimationEnd(event: AnimationEvent): void;
28
+ handleAnimationStart(event: AnimationEvent): void;
27
29
  playTrack(index: number): Promise<void>;
28
30
  togglePlay(): Promise<void>;
29
31
  previous(): Promise<void>;
30
32
  next(): Promise<void>;
33
+ handleClose(): void;
31
34
  ngOnDestroy(): void;
32
35
  static ɵfac: i0.ɵɵFactoryDeclaration<AudioPlayerComponent, never>;
33
- static ɵcmp: i0.ɵɵComponentDeclaration<AudioPlayerComponent, "st-audio-player", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "opened": { "alias": "opened"; "required": false; "isSignal": true; }; "trackListTitle": { "alias": "trackListTitle"; "required": false; "isSignal": true; }; "currentTrackIndex": { "alias": "currentTrackIndex"; "required": false; "isSignal": true; }; "tracks": { "alias": "tracks"; "required": false; "isSignal": true; }; "showTrackList": { "alias": "showTrackList"; "required": false; "isSignal": true; }; "shadow": { "alias": "shadow"; "required": false; "isSignal": true; }; }, { "currentTrackIndex": "currentTrackIndexChange"; }, never, never, true, never>;
36
+ static ɵcmp: i0.ɵɵComponentDeclaration<AudioPlayerComponent, "st-audio-player", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "shadow": { "alias": "shadow"; "required": false; "isSignal": true; }; "opened": { "alias": "opened"; "required": false; "isSignal": true; }; "tracks": { "alias": "tracks"; "required": false; "isSignal": true; }; "showTrackList": { "alias": "showTrackList"; "required": false; "isSignal": true; }; "currentTrackIndex": { "alias": "currentTrackIndex"; "required": false; "isSignal": true; }; }, { "opened": "openedChange"; "currentTrackIndex": "currentTrackIndexChange"; }, never, never, true, never>;
34
37
  }
@@ -1,11 +1,11 @@
1
1
  import * as i0 from "@angular/core";
2
2
  export declare const buttonComponent: (props?: ({
3
3
  variant?: "primary" | "secondary" | "tertiary" | "accent" | "info" | "success" | "warning" | "error" | "icon" | null | undefined;
4
- size?: "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
4
+ size?: "xs" | "sm" | "md" | "lg" | null | undefined;
5
5
  iconPosition?: "left" | "right" | null | undefined;
6
6
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
7
7
  export type ButtonVariantProps = 'primary' | 'secondary' | 'tertiary' | 'accent' | 'info' | 'success' | 'warning' | 'error' | 'icon' | null | undefined;
8
- export type ButtonSizeProps = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | null | undefined;
8
+ export type ButtonSizeProps = 'xs' | 'sm' | 'md' | 'lg' | null | undefined;
9
9
  export type ButtonIconPositionProps = 'left' | 'right' | null | undefined;
10
10
  export type ButtonProps = {
11
11
  variant?: ButtonVariantProps;
@@ -7,10 +7,6 @@ export declare class CountdownComponent {
7
7
  showHours: import("@angular/core").InputSignal<boolean>;
8
8
  showMinutes: import("@angular/core").InputSignal<boolean>;
9
9
  showSeconds: import("@angular/core").InputSignal<boolean>;
10
- labelDays: import("@angular/core").InputSignal<string>;
11
- labelHours: import("@angular/core").InputSignal<string>;
12
- labelMinutes: import("@angular/core").InputSignal<string>;
13
- labelSeconds: import("@angular/core").InputSignal<string>;
14
10
  onFinish: import("@angular/core").OutputEmitterRef<void>;
15
11
  private countdownDateOnMilliseconds;
16
12
  countdowntimer$: import("rxjs").Observable<{
@@ -31,5 +27,5 @@ export declare class CountdownComponent {
31
27
  seconds: import("@angular/core").Signal<number | undefined>;
32
28
  getfirstLetterOfLabel(label: string): string;
33
29
  static ɵfac: i0.ɵɵFactoryDeclaration<CountdownComponent, never>;
34
- static ɵcmp: i0.ɵɵComponentDeclaration<CountdownComponent, "st-countdown", never, { "type": { "alias": "type"; "required": false; "isSignal": true; }; "dueDate": { "alias": "dueDate"; "required": false; "isSignal": true; }; "format": { "alias": "format"; "required": false; "isSignal": true; }; "showDays": { "alias": "showDays"; "required": false; "isSignal": true; }; "showHours": { "alias": "showHours"; "required": false; "isSignal": true; }; "showMinutes": { "alias": "showMinutes"; "required": false; "isSignal": true; }; "showSeconds": { "alias": "showSeconds"; "required": false; "isSignal": true; }; "labelDays": { "alias": "labelDays"; "required": false; "isSignal": true; }; "labelHours": { "alias": "labelHours"; "required": false; "isSignal": true; }; "labelMinutes": { "alias": "labelMinutes"; "required": false; "isSignal": true; }; "labelSeconds": { "alias": "labelSeconds"; "required": false; "isSignal": true; }; }, { "onFinish": "onFinish"; }, never, never, true, never>;
30
+ static ɵcmp: i0.ɵɵComponentDeclaration<CountdownComponent, "st-countdown", never, { "type": { "alias": "type"; "required": false; "isSignal": true; }; "dueDate": { "alias": "dueDate"; "required": false; "isSignal": true; }; "format": { "alias": "format"; "required": false; "isSignal": true; }; "showDays": { "alias": "showDays"; "required": false; "isSignal": true; }; "showHours": { "alias": "showHours"; "required": false; "isSignal": true; }; "showMinutes": { "alias": "showMinutes"; "required": false; "isSignal": true; }; "showSeconds": { "alias": "showSeconds"; "required": false; "isSignal": true; }; }, { "onFinish": "onFinish"; }, never, never, true, never>;
35
31
  }