@sixbell-telco/sdk 0.6.1 → 0.7.1
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 +33 -0
- package/README.md +158 -12
- package/_index.scss +6 -0
- package/components/audio-player/button-play/button-play.component.d.ts +11 -1
- package/components/audio-player/services/audio.service.d.ts +1 -0
- package/components/button/src/button.component.d.ts +2 -2
- package/components/file-upload/file-dropzone/src/file-dropzone.component.d.ts +59 -6
- package/components/file-upload/file-dropzone/src/file-dropzone.constants.d.ts +6 -0
- package/components/file-upload/file-uploader/src/file-uploader.component.d.ts +2 -2
- package/components/forms/input/src/input.component.d.ts +2 -2
- package/components/icon/src/icon.component.d.ts +3 -4
- package/components/modal/src/modal.component.d.ts +72 -4
- package/components/table/src/table.component.d.ts +140 -0
- package/components/table/table-header-checkbox/table-header-checkbox.component.d.ts +42 -0
- package/components/table/table-row-checkbox/table-row-checkbox.component.d.ts +46 -0
- package/components/tooltip/src/tooltip.component.d.ts +1 -2
- package/directives/typography/src/typography.directive.d.ts +46 -0
- package/esm2022/components/audio-player/button-play/button-play.component.mjs +14 -5
- package/esm2022/components/audio-player/services/audio.service.mjs +4 -1
- package/esm2022/components/audio-player/src/audio-player.component.mjs +1 -1
- package/esm2022/components/audio-player/track-info/track-info.component.mjs +3 -3
- package/esm2022/components/audio-player/volume-control/volume-control.component.mjs +2 -2
- package/esm2022/components/badge/src/badge.component.mjs +2 -2
- package/esm2022/components/button/src/button.component.mjs +5 -4
- package/esm2022/components/dropdown/src/dropdown.component.mjs +1 -1
- package/esm2022/components/file-upload/file-dropzone/src/file-dropzone.component.mjs +211 -16
- package/esm2022/components/file-upload/file-dropzone/src/file-dropzone.constants.mjs +7 -0
- package/esm2022/components/file-upload/file-uploader/src/file-uploader.component.mjs +1 -1
- package/esm2022/components/forms/datepicker/src/datepicker.component.mjs +1 -1
- package/esm2022/components/forms/input/src/input.component.mjs +6 -5
- package/esm2022/components/icon/src/icon.component.mjs +5 -5
- package/esm2022/components/link/src/link.component.mjs +2 -2
- package/esm2022/components/modal/src/modal.component.mjs +79 -6
- package/esm2022/components/notification/src/notification.component.mjs +1 -1
- package/esm2022/components/paginator/components/pagination-item/pagination-item.component.mjs +2 -2
- package/esm2022/components/product-card/src/product-card.component.mjs +1 -1
- package/esm2022/components/table/src/table.component.mjs +144 -8
- package/esm2022/components/table/table-header-checkbox/table-header-checkbox.component.mjs +43 -1
- package/esm2022/components/table/table-row-checkbox/table-row-checkbox.component.mjs +47 -1
- package/esm2022/components/toast/toast-message/toast-message.component.mjs +2 -2
- package/esm2022/components/tooltip/src/tooltip.component.mjs +3 -5
- package/esm2022/components/wizard/wizard-step/wizard-step.component.mjs +1 -1
- package/esm2022/directives/typography/src/typography.directive.mjs +62 -13
- package/fesm2022/sixbell-telco-sdk-components-audio-player.mjs +20 -8
- package/fesm2022/sixbell-telco-sdk-components-audio-player.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-badge.mjs +1 -1
- package/fesm2022/sixbell-telco-sdk-components-badge.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-button.mjs +4 -3
- package/fesm2022/sixbell-telco-sdk-components-button.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-file-upload-file-dropzone.mjs +216 -15
- package/fesm2022/sixbell-telco-sdk-components-file-upload-file-dropzone.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-file-upload-file-uploader.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-datepicker.mjs +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-datepicker.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs +5 -4
- package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-icon.mjs +4 -4
- package/fesm2022/sixbell-telco-sdk-components-icon.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-link.mjs +1 -1
- package/fesm2022/sixbell-telco-sdk-components-link.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-modal.mjs +78 -5
- package/fesm2022/sixbell-telco-sdk-components-modal.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-notification.mjs +1 -1
- package/fesm2022/sixbell-telco-sdk-components-notification.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-paginator.mjs +1 -1
- package/fesm2022/sixbell-telco-sdk-components-paginator.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-product-card.mjs +1 -1
- package/fesm2022/sixbell-telco-sdk-components-product-card.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-table.mjs +231 -7
- package/fesm2022/sixbell-telco-sdk-components-table.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-toast.mjs +1 -1
- package/fesm2022/sixbell-telco-sdk-components-toast.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-tooltip.mjs +2 -4
- package/fesm2022/sixbell-telco-sdk-components-tooltip.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-wizard.mjs +1 -1
- package/fesm2022/sixbell-telco-sdk-components-wizard.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-directives-typography.mjs +61 -12
- package/fesm2022/sixbell-telco-sdk-directives-typography.mjs.map +1 -1
- package/package.json +50 -48
package/CHANGELOG.md
CHANGED
|
@@ -9,6 +9,11 @@ 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)
|
|
14
|
+
- **Table Header Checkbox**: Add comprehensive documentation (58ae95b)
|
|
15
|
+
- **Modal Component**: Add detailed documentation and type definitions for component properties (68a3ac9)
|
|
16
|
+
- **Tooltip Component**: Add inline-flex and items-center classes for improved alignment
|
|
12
17
|
- **Icon Component**: Added icon component (`528b633`)
|
|
13
18
|
- **Showcase Page**: Set up showcase page for app component (`528b633`)
|
|
14
19
|
- **Husky**: Added pre-commit hook configuration (`528b633`)
|
|
@@ -98,6 +103,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
98
103
|
- **Showcase**: Integrate Badge component with various styles and sizes (`0f0799f`)
|
|
99
104
|
- **Showcase**: Add multiple input variants with disabled state example (`a960358`)
|
|
100
105
|
- **Audio Player**: Implemented audio player service with track management and playback controls (`9b2c680`)
|
|
106
|
+
- **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
|
|
110
|
+
- **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
|
|
101
115
|
|
|
102
116
|
### Fixed
|
|
103
117
|
|
|
@@ -119,6 +133,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
119
133
|
- **Typography**: Adjust typography sizes for heading elements (`91b7d82`)
|
|
120
134
|
- **Modal**: Update font weight to medium for improved readability (`3055292`)
|
|
121
135
|
- **Input**: Add logic to handle disable state properly with related styles (`07e84f2`)
|
|
136
|
+
- **File Type Validator**: Improve file extension validation logic and error messaging
|
|
137
|
+
- **Button Styling**:
|
|
138
|
+
- Fix alignment and styling of play button component
|
|
139
|
+
- Improve icon alignment in button component
|
|
122
140
|
|
|
123
141
|
### Removed
|
|
124
142
|
|
|
@@ -142,6 +160,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
142
160
|
|
|
143
161
|
### Changed
|
|
144
162
|
|
|
163
|
+
- **Modal Component**:
|
|
164
|
+
- Update default width from 'fit' to 'lg' (cc95896)
|
|
165
|
+
- Enhance component with additional width variants (b5db589)
|
|
145
166
|
- **Changelog**: Updated documentation in changelog.md (`528b633`)
|
|
146
167
|
- **Readme**: Updated documentation in README (`528b633`)
|
|
147
168
|
- **VScode Settings**: Updated VSCode settings (`528b633`)
|
|
@@ -379,3 +400,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
379
400
|
- **App Config**: Add HttpClient provider for enhanced HTTP capabilities (`0e0c63f`)
|
|
380
401
|
- **Audio Player**: Replace audioService with audioPlayerService for improved service integration and cleanup (`75660a9`)
|
|
381
402
|
- **Audio Service**: Enhance audio track handling with authenticated URL retrieval and cleanup method (`1c9870d`)
|
|
403
|
+
- **Tailwind**: Update primary color scheme and add primary gradient variable
|
|
404
|
+
- **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
|
|
410
|
+
- **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
|
package/README.md
CHANGED
|
@@ -92,16 +92,11 @@ npm i -D @sixbell-telco/sdk @tailwindcss/typography daisyui @midudev/tailwind-an
|
|
|
92
92
|
// const plugin = require('tailwindcss/plugin');
|
|
93
93
|
|
|
94
94
|
module.exports = {
|
|
95
|
-
content: [
|
|
96
|
-
'./src/**/*.{html,ts}',
|
|
97
|
-
'./projects/showcase/**/*.{html,ts}',
|
|
98
|
-
'./projects/sdk/**/*.{html,ts}',
|
|
99
|
-
'./dist/sdk/**/*.{html,ts}',
|
|
100
|
-
'./node_modules/sdk/**/*.{html,ts}',
|
|
101
|
-
],
|
|
95
|
+
content: ['./src/**/*.{html,ts}', './node_modules/@sixbell-telco/sdk/**/*.{html,ts,js,mjs}'],
|
|
102
96
|
theme: {
|
|
103
97
|
extend: {
|
|
104
98
|
colors: {
|
|
99
|
+
'primary-gradient': 'rgba(var(--primary-gradient), <alpha-value>)',
|
|
105
100
|
tertiary: 'rgba(var(--tertiary), <alpha-value>)',
|
|
106
101
|
'tertiary-content': 'rgba(var(--tertiary-content), <alpha-value>)',
|
|
107
102
|
'neutral-secondary': 'rgba(var(--neutral-secondary), <alpha-value>)',
|
|
@@ -151,8 +146,8 @@ module.exports = {
|
|
|
151
146
|
{
|
|
152
147
|
vivid_elegance_light: {
|
|
153
148
|
// Daisy UI theme variables
|
|
154
|
-
primary: '#
|
|
155
|
-
'primary-content': '#
|
|
149
|
+
primary: '#15A1C1',
|
|
150
|
+
'primary-content': '#ffffff',
|
|
156
151
|
secondary: '#D0D3D7',
|
|
157
152
|
'secondary-content': '#080809',
|
|
158
153
|
accent: '#FF6B35',
|
|
@@ -172,6 +167,7 @@ module.exports = {
|
|
|
172
167
|
error: '#ef5145',
|
|
173
168
|
'error-content': '#460A06',
|
|
174
169
|
// Custom colors
|
|
170
|
+
'--primary-gradient': '7, 90, 105',
|
|
175
171
|
'--tertiary': '166, 166, 166',
|
|
176
172
|
'--tertiary-content': '8, 8, 9',
|
|
177
173
|
'--neutral-secondary': '169, 170, 178',
|
|
@@ -200,8 +196,8 @@ module.exports = {
|
|
|
200
196
|
},
|
|
201
197
|
vivid_elegance_dark: {
|
|
202
198
|
// Daisy UI theme variables
|
|
203
|
-
primary: '#
|
|
204
|
-
'primary-content': '#
|
|
199
|
+
primary: '#15A1C1',
|
|
200
|
+
'primary-content': '#ffffff',
|
|
205
201
|
secondary: '#5D5F69',
|
|
206
202
|
'secondary-content': '#FFFFFF',
|
|
207
203
|
accent: '#FF8B5A',
|
|
@@ -221,6 +217,7 @@ module.exports = {
|
|
|
221
217
|
error: '#FF4133',
|
|
222
218
|
'error-content': '#4D0500',
|
|
223
219
|
// Custom colors
|
|
220
|
+
'--primary-gradient': '7, 90, 105',
|
|
224
221
|
'--tertiary': '161, 161, 161',
|
|
225
222
|
'--tertiary-content': '55, 56, 62',
|
|
226
223
|
'--neutral-secondary': '169, 170, 178',
|
|
@@ -297,6 +294,155 @@ For VSCode users, it is recommended to install the official Tailwind CSS extensi
|
|
|
297
294
|
|
|
298
295
|
With those settings VSCode will pick the library custom attributes to give class intellisense
|
|
299
296
|
|
|
297
|
+
8. **Translations**
|
|
298
|
+
|
|
299
|
+
Before setting up translations, first install the necessary packages:
|
|
300
|
+
|
|
301
|
+
```bash
|
|
302
|
+
npm install @ngx-translate/core @ngx-translate/http-loader ngx-translate-multi-http-loader@18.2.0
|
|
303
|
+
```
|
|
304
|
+
|
|
305
|
+
#### Setup
|
|
306
|
+
|
|
307
|
+
1. Create a folder (e.g., `/assets/i18n`) to store your translation files.
|
|
308
|
+
2. In the folder, add separate JSON files for each language:
|
|
309
|
+
|
|
310
|
+
- en.json (English)
|
|
311
|
+
- es.json (Spanish)
|
|
312
|
+
- pt.json (Portuguese)
|
|
313
|
+
|
|
314
|
+
3. In each file, include the corresponding translations for file uploader, for example:
|
|
315
|
+
|
|
316
|
+
```json
|
|
317
|
+
{
|
|
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"
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
```
|
|
340
|
+
|
|
341
|
+
```json
|
|
342
|
+
{
|
|
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"
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
```
|
|
365
|
+
|
|
366
|
+
```json
|
|
367
|
+
{
|
|
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"
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
```
|
|
390
|
+
|
|
391
|
+
4. Configure your translation loader. If you are using Angular i18n, ngx-translate, etc., first import in your app.config.ts:
|
|
392
|
+
|
|
393
|
+
```ts
|
|
394
|
+
import { HttpBackend } from '@angular/common/http';
|
|
395
|
+
import { provideRouter } from '@angular/router';
|
|
396
|
+
import { provideTranslateService, TranslateLoader } from '@ngx-translate/core';
|
|
397
|
+
import { MultiTranslateHttpLoader } from 'ngx-translate-multi-http-loader';
|
|
398
|
+
|
|
399
|
+
export function HttpLoaderFactory(_httpBackend: HttpBackend) {
|
|
400
|
+
return new MultiTranslateHttpLoader(_httpBackend, ['/assets/i18n/']);
|
|
401
|
+
}
|
|
402
|
+
```
|
|
403
|
+
|
|
404
|
+
5. Then, add the provider to your application configuration:
|
|
405
|
+
|
|
406
|
+
```ts
|
|
407
|
+
import { ApplicationConfig } from '@angular/core';
|
|
408
|
+
import { provideHttpClient } from '@angular/common/http';
|
|
409
|
+
|
|
410
|
+
export const appConfig: ApplicationConfig = {
|
|
411
|
+
providers: [
|
|
412
|
+
provideRouter(routes),
|
|
413
|
+
provideHttpClient(),
|
|
414
|
+
provideTranslateService({
|
|
415
|
+
loader: {
|
|
416
|
+
provide: TranslateLoader,
|
|
417
|
+
useFactory: HttpLoaderFactory,
|
|
418
|
+
deps: [HttpBackend],
|
|
419
|
+
},
|
|
420
|
+
}),
|
|
421
|
+
],
|
|
422
|
+
};
|
|
423
|
+
```
|
|
424
|
+
|
|
425
|
+
6. Finally, set up the basic configuration in your app.component to load the translations:
|
|
426
|
+
|
|
427
|
+
```ts
|
|
428
|
+
import { Component } from '@angular/core';
|
|
429
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
430
|
+
|
|
431
|
+
@Component({
|
|
432
|
+
selector: 'app-root',
|
|
433
|
+
template: `<router-outlet></router-outlet>`,
|
|
434
|
+
})
|
|
435
|
+
export class AppComponent {
|
|
436
|
+
constructor(private translate: TranslateService) {
|
|
437
|
+
this.translate.addLangs(['en', 'es', 'pt']);
|
|
438
|
+
this.translate.setDefaultLang('en');
|
|
439
|
+
this.translate.use('en');
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
```
|
|
443
|
+
|
|
444
|
+
With this configuration, all the translations related to the SDK will be loaded.
|
|
445
|
+
|
|
300
446
|
## Usage Example
|
|
301
447
|
|
|
302
448
|
Here's a basic example of using a button component:
|
|
@@ -324,4 +470,4 @@ For detailed component documentation, visit our [Storybook](https://storybook.js
|
|
|
324
470
|
|
|
325
471
|
## Last update
|
|
326
472
|
|
|
327
|
-
This file was last updated on
|
|
473
|
+
This file was last updated on February 7th, 2025.
|
package/_index.scss
CHANGED
|
@@ -1,7 +1,17 @@
|
|
|
1
|
+
import { ButtonSizeProps, ButtonVariantProps } from '@sixbell-telco/sdk/components/button';
|
|
1
2
|
import { AudioPlayerService } from '../services/audio.service';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class ButtonPlayComponent {
|
|
4
5
|
audioService: AudioPlayerService;
|
|
6
|
+
variant: import("@angular/core").InputSignal<ButtonVariantProps>;
|
|
7
|
+
ghost: import("@angular/core").InputSignal<boolean>;
|
|
8
|
+
outline: import("@angular/core").InputSignal<boolean>;
|
|
9
|
+
circle: import("@angular/core").InputSignal<boolean>;
|
|
10
|
+
square: import("@angular/core").InputSignal<boolean>;
|
|
11
|
+
glass: import("@angular/core").InputSignal<boolean>;
|
|
12
|
+
size: import("@angular/core").InputSignal<ButtonSizeProps>;
|
|
13
|
+
shadow: import("@angular/core").InputSignal<boolean>;
|
|
14
|
+
asButton: import("@angular/core").InputSignal<boolean>;
|
|
5
15
|
isHovered: import("@angular/core").WritableSignal<boolean>;
|
|
6
16
|
trackIndex: import("@angular/core").InputSignal<number>;
|
|
7
17
|
onTogglePlay: import("@angular/core").OutputEmitterRef<void>;
|
|
@@ -19,5 +29,5 @@ export declare class ButtonPlayComponent {
|
|
|
19
29
|
handleHover(isHovered: boolean): void;
|
|
20
30
|
handleTogglePlay(): Promise<void>;
|
|
21
31
|
static ɵfac: i0.ɵɵFactoryDeclaration<ButtonPlayComponent, never>;
|
|
22
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ButtonPlayComponent, "st-button-play", never, { "trackIndex": { "alias": "trackIndex"; "required": true; "isSignal": true; }; }, { "onTogglePlay": "onTogglePlay"; }, never, never, true, never>;
|
|
32
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ButtonPlayComponent, "st-button-play", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "ghost": { "alias": "ghost"; "required": false; "isSignal": true; }; "outline": { "alias": "outline"; "required": false; "isSignal": true; }; "circle": { "alias": "circle"; "required": false; "isSignal": true; }; "square": { "alias": "square"; "required": false; "isSignal": true; }; "glass": { "alias": "glass"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "shadow": { "alias": "shadow"; "required": false; "isSignal": true; }; "asButton": { "alias": "asButton"; "required": false; "isSignal": true; }; "trackIndex": { "alias": "trackIndex"; "required": true; "isSignal": true; }; }, { "onTogglePlay": "onTogglePlay"; }, never, never, true, never>;
|
|
23
33
|
}
|
|
@@ -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" | null | undefined;
|
|
4
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | 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' | null | undefined;
|
|
8
|
+
export type ButtonSizeProps = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | null | undefined;
|
|
9
9
|
export type ButtonIconPositionProps = 'left' | 'right' | null | undefined;
|
|
10
10
|
export type ButtonProps = {
|
|
11
11
|
variant?: ButtonVariantProps;
|
|
@@ -1,15 +1,68 @@
|
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
2
|
+
import { ControlValueAccessor, FormControl, FormGroup } from '@angular/forms';
|
|
3
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
4
|
+
import { AudioPlayerService, Track } from '@sixbell-telco/sdk/components/audio-player';
|
|
5
|
+
import { ARCHIVE_EXTENSIONS, AUDIO_EXTENSIONS, CODE_EXTENSIONS, DOCUMENT_EXTENSIONS, IMAGE_EXTENSIONS, VIDEO_EXTENSIONS } from './file-dropzone.constants';
|
|
1
6
|
import * as i0 from "@angular/core";
|
|
2
|
-
export
|
|
7
|
+
export type FileExtensionAudio = (typeof AUDIO_EXTENSIONS)[number];
|
|
8
|
+
export type FileExtensionVideo = (typeof VIDEO_EXTENSIONS)[number];
|
|
9
|
+
export type FileExtensionImage = (typeof IMAGE_EXTENSIONS)[number];
|
|
10
|
+
export type FileExtensionDocument = (typeof DOCUMENT_EXTENSIONS)[number];
|
|
11
|
+
export type FileExtensionArchive = (typeof ARCHIVE_EXTENSIONS)[number];
|
|
12
|
+
export type FileExtensionCode = (typeof CODE_EXTENSIONS)[number];
|
|
13
|
+
export type FileExtension = FileExtensionAudio | FileExtensionVideo | FileExtensionImage | FileExtensionDocument | FileExtensionArchive | FileExtensionCode;
|
|
14
|
+
export declare class DropzoneComponent implements ControlValueAccessor {
|
|
15
|
+
translateService: TranslateService;
|
|
16
|
+
audioService: AudioPlayerService;
|
|
3
17
|
maxFiles: import("@angular/core").InputSignal<number>;
|
|
4
18
|
maxFileSize: import("@angular/core").InputSignal<number>;
|
|
5
19
|
showFiles: import("@angular/core").InputSignal<boolean>;
|
|
6
|
-
extensions: import("@angular/core").InputSignal<
|
|
20
|
+
extensions: import("@angular/core").InputSignal<FileExtension[]>;
|
|
7
21
|
uploading: import("@angular/core").InputSignal<boolean>;
|
|
22
|
+
disabled: import("@angular/core").ModelSignal<boolean>;
|
|
23
|
+
multiple: import("@angular/core").InputSignal<boolean>;
|
|
24
|
+
name: import("@angular/core").InputSignal<string>;
|
|
25
|
+
accept: import("@angular/core").Signal<string>;
|
|
26
|
+
opened: import("@angular/core").WritableSignal<boolean>;
|
|
27
|
+
parentForm: import("@angular/core").InputSignal<FormGroup<any> | null>;
|
|
28
|
+
formControlName: import("@angular/core").InputSignal<string>;
|
|
29
|
+
get formField(): FormControl | null;
|
|
8
30
|
onDrop: import("@angular/core").OutputEmitterRef<File[]>;
|
|
9
|
-
|
|
10
|
-
files: import("@angular/core").
|
|
11
|
-
|
|
31
|
+
onRemove: import("@angular/core").OutputEmitterRef<File>;
|
|
32
|
+
files: import("@angular/core").WritableSignal<File[]>;
|
|
33
|
+
isDragging: import("@angular/core").WritableSignal<boolean>;
|
|
34
|
+
errorMessage: import("@angular/core").WritableSignal<string>;
|
|
35
|
+
private onChange;
|
|
36
|
+
onTouched: () => void;
|
|
37
|
+
fileInput: import("@angular/core").Signal<ElementRef<any> | undefined>;
|
|
38
|
+
iconDelete: string;
|
|
39
|
+
iconDownload: string;
|
|
40
|
+
iconInsertDriveFile: string;
|
|
41
|
+
iconCloudUpload: string;
|
|
42
|
+
iconError: string;
|
|
43
|
+
iconVisibility: string;
|
|
44
|
+
iconVisibilityOff: string;
|
|
45
|
+
tracks: import("@angular/core").Signal<Track[]>;
|
|
46
|
+
getIndexForTracks(file: File): number;
|
|
47
|
+
get dropzoneClass(): string;
|
|
48
|
+
handleDragOver(event: DragEvent): void;
|
|
49
|
+
handleDragLeave(event: DragEvent): void;
|
|
50
|
+
handleDrop(event: DragEvent): void;
|
|
51
|
+
handleFileSelect(event: Event): void;
|
|
52
|
+
private processFiles;
|
|
53
|
+
validateFileSize(file: File): boolean;
|
|
54
|
+
validateFileType(file: File): boolean;
|
|
55
|
+
handlefileDownload(file: File): void;
|
|
12
56
|
handleRemove(file: File): void;
|
|
57
|
+
checkIfIsAudioFile(file: File): boolean;
|
|
58
|
+
handleAudioPlayerOpen(): void;
|
|
59
|
+
handleAudioPlayerOpenToggle(): void;
|
|
60
|
+
ngDestroy(): void;
|
|
61
|
+
writeValue(files: File[]): void;
|
|
62
|
+
registerOnChange(fn: (value: File[]) => void): void;
|
|
63
|
+
registerOnTouched(fn: () => void): void;
|
|
64
|
+
setDisabledState(isDisabled: boolean): void;
|
|
65
|
+
triggerFileInput(): void;
|
|
13
66
|
static ɵfac: i0.ɵɵFactoryDeclaration<DropzoneComponent, never>;
|
|
14
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DropzoneComponent, "st-file-dropzone", never, { "maxFiles": { "alias": "maxFiles"; "required": false; "isSignal": true; }; "maxFileSize": { "alias": "maxFileSize"; "required": false; "isSignal": true; }; "showFiles": { "alias": "showFiles"; "required": false; "isSignal": true; }; "extensions": { "alias": "extensions"; "required": false; "isSignal": true; }; "uploading": { "alias": "uploading"; "required": false; "isSignal": true; }; "
|
|
67
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DropzoneComponent, "st-file-dropzone", never, { "maxFiles": { "alias": "maxFiles"; "required": false; "isSignal": true; }; "maxFileSize": { "alias": "maxFileSize"; "required": false; "isSignal": true; }; "showFiles": { "alias": "showFiles"; "required": false; "isSignal": true; }; "extensions": { "alias": "extensions"; "required": false; "isSignal": true; }; "uploading": { "alias": "uploading"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "parentForm": { "alias": "parentForm"; "required": false; "isSignal": true; }; "formControlName": { "alias": "formControlName"; "required": false; "isSignal": true; }; }, { "disabled": "disabledChange"; "onDrop": "onDrop"; "onRemove": "onRemove"; }, never, ["*"], true, never>;
|
|
15
68
|
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const AUDIO_EXTENSIONS: readonly [".mp3", ".wav", ".ogg", ".m4a", ".aac", ".wma"];
|
|
2
|
+
export declare const VIDEO_EXTENSIONS: readonly [".mp4", ".avi", ".mov", ".wmv", ".mkv", ".flv", ".webm"];
|
|
3
|
+
export declare const IMAGE_EXTENSIONS: readonly [".jpg", ".jpeg", ".png", ".gif", ".bmp", ".svg", ".webp"];
|
|
4
|
+
export declare const DOCUMENT_EXTENSIONS: readonly [".pdf", ".doc", ".docx", ".xls", ".xlsx", ".ppt", ".pptx", ".txt", ".csv"];
|
|
5
|
+
export declare const ARCHIVE_EXTENSIONS: readonly [".zip", ".rar", ".7z"];
|
|
6
|
+
export declare const CODE_EXTENSIONS: readonly [".html", ".xml", ".json", ".js", ".ts", ".css"];
|
|
@@ -2,14 +2,14 @@ import { ElementRef } from '@angular/core';
|
|
|
2
2
|
import { ControlValueAccessor, FormControl, FormGroup } from '@angular/forms';
|
|
3
3
|
import { InputSizeProps, InputVariantProps } from '@sixbell-telco/sdk/components/forms/input';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
export type FileUploaderVariantProps =
|
|
5
|
+
export type FileUploaderVariantProps = InputVariantProps;
|
|
6
6
|
export type FileUploaderSizeProps = InputSizeProps;
|
|
7
7
|
export type FileUploaderProps = {
|
|
8
8
|
variant?: FileUploaderVariantProps;
|
|
9
9
|
size?: FileUploaderSizeProps;
|
|
10
10
|
};
|
|
11
11
|
export declare class FileUploaderComponent implements ControlValueAccessor {
|
|
12
|
-
variant: import("@angular/core").InputSignal<
|
|
12
|
+
variant: import("@angular/core").InputSignal<InputVariantProps>;
|
|
13
13
|
size: import("@angular/core").InputSignal<InputSizeProps>;
|
|
14
14
|
classes: import("@angular/core").InputSignal<string>;
|
|
15
15
|
label: import("@angular/core").InputSignal<string>;
|
|
@@ -2,7 +2,7 @@ import { ControlValueAccessor, FormControl, FormGroup } from '@angular/forms';
|
|
|
2
2
|
import { Subject } from 'rxjs';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export type InputVariantProps = 'primary' | 'secondary' | 'tertiary' | 'accent' | 'info' | 'success' | 'warning' | 'error' | null | undefined;
|
|
5
|
-
export type InputSizeProps = 'xs' | 'sm' | 'md' | 'lg' | null | undefined;
|
|
5
|
+
export type InputSizeProps = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | null | undefined;
|
|
6
6
|
export type InputIconPositionProps = 'left' | 'right' | null | undefined;
|
|
7
7
|
export type InputProps = {
|
|
8
8
|
variant?: InputVariantProps;
|
|
@@ -52,6 +52,6 @@ export declare class InputComponent implements ControlValueAccessor {
|
|
|
52
52
|
get validationClass(): string;
|
|
53
53
|
get iconClass(): string;
|
|
54
54
|
static ɵfac: i0.ɵɵFactoryDeclaration<InputComponent, never>;
|
|
55
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<InputComponent, "st-input", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "iconPosition": { "alias": "iconPosition"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "iconClickable": { "alias": "iconClickable"; "required": false; "isSignal": true; }; "ghost": { "alias": "ghost"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "parentForm": { "alias": "parentForm"; "required": false; "isSignal": true; }; "formControlName": { "alias": "formControlName"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "debounceTime": { "alias": "debounceTime"; "required": false; "isSignal": true; }; }, { "onIconClick": "onIconClick"; "value": "valueChange"; "disabled": "disabledChange"; "onEnter": "onEnter"; "onBlur": "onBlur"; "onDebounceChange": "onDebounceChange"; }, never,
|
|
55
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<InputComponent, "st-input", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "iconPosition": { "alias": "iconPosition"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "iconClickable": { "alias": "iconClickable"; "required": false; "isSignal": true; }; "ghost": { "alias": "ghost"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "parentForm": { "alias": "parentForm"; "required": false; "isSignal": true; }; "formControlName": { "alias": "formControlName"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "debounceTime": { "alias": "debounceTime"; "required": false; "isSignal": true; }; }, { "onIconClick": "onIconClick"; "value": "valueChange"; "disabled": "disabledChange"; "onEnter": "onEnter"; "onBlur": "onBlur"; "onDebounceChange": "onDebounceChange"; }, never, ["*"], true, never>;
|
|
56
56
|
}
|
|
57
57
|
export {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
export declare const iconComponent: (props?: ({
|
|
3
3
|
color?: "white" | "black" | "primary" | "inherit" | null | undefined;
|
|
4
|
-
size?: "sm" | "md" | "lg" | null | undefined;
|
|
4
|
+
size?: "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
5
5
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
6
6
|
export type IconColorProps = 'white' | 'black' | 'primary' | 'inherit' | null | undefined;
|
|
7
|
-
export type IconSizeProps = 'sm' | 'md' | 'lg' | null | undefined;
|
|
7
|
+
export type IconSizeProps = 'sm' | 'md' | 'lg' | 'xl' | null | undefined;
|
|
8
8
|
export type IconProps = {
|
|
9
9
|
color?: IconColorProps;
|
|
10
10
|
size?: IconSizeProps;
|
|
@@ -12,9 +12,8 @@ export type IconProps = {
|
|
|
12
12
|
export declare class IconComponent {
|
|
13
13
|
color: import("@angular/core").InputSignal<IconColorProps>;
|
|
14
14
|
size: import("@angular/core").InputSignal<IconSizeProps>;
|
|
15
|
-
classes: import("@angular/core").InputSignal<string>;
|
|
16
15
|
icon: import("@angular/core").InputSignal<string>;
|
|
17
16
|
get componentClass(): string;
|
|
18
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<IconComponent, never>;
|
|
19
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<IconComponent, "st-icon", never, { "color": { "alias": "color"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "
|
|
18
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<IconComponent, "st-icon", never, { "color": { "alias": "color"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
20
19
|
}
|
|
@@ -1,33 +1,101 @@
|
|
|
1
1
|
import { ElementRef } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* CSS class generator for modal component variants
|
|
5
|
+
* @internal
|
|
6
|
+
*/
|
|
3
7
|
export declare const modalComponent: (props?: ({
|
|
4
|
-
width?: "
|
|
8
|
+
width?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | null | undefined;
|
|
5
9
|
aligment?: "center" | "top" | "bottom" | null | undefined;
|
|
6
10
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
|
-
|
|
8
|
-
export type ModalWidthProps = '
|
|
11
|
+
/** Possible width values for the modal component */
|
|
12
|
+
export type ModalWidthProps = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | null | undefined;
|
|
13
|
+
/** Possible vertical alignment values for the modal component */
|
|
9
14
|
export type ModalAlignmentProps = 'top' | 'center' | 'bottom' | null | undefined;
|
|
15
|
+
/** Configuration properties for the modal component */
|
|
10
16
|
export type ModalProps = {
|
|
11
|
-
padding?: ModalPaddingProps;
|
|
12
17
|
width?: ModalWidthProps;
|
|
13
18
|
alignment?: ModalAlignmentProps;
|
|
14
19
|
};
|
|
20
|
+
/**
|
|
21
|
+
* A customizable modal dialog component with Tailwind CSS integration
|
|
22
|
+
*
|
|
23
|
+
* @remarks
|
|
24
|
+
* Uses Angular's signal-based inputs and outputs for reactive state management.
|
|
25
|
+
* Supports various sizes and vertical alignments through input properties.
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* ```html
|
|
29
|
+
* <st-modal
|
|
30
|
+
* modalId="confirmDialog"
|
|
31
|
+
* [(opened)]="isOpen"
|
|
32
|
+
* width="lg"
|
|
33
|
+
* alignment="top"
|
|
34
|
+
* (onClose)="handleClose()"
|
|
35
|
+
* (onClickOutside)="handleClickOustide()"
|
|
36
|
+
* />
|
|
37
|
+
* ```
|
|
38
|
+
*/
|
|
15
39
|
export declare class ModalComponent {
|
|
40
|
+
/**
|
|
41
|
+
* Specifies the maximum width of the modal content
|
|
42
|
+
* @defaultValue 'md'
|
|
43
|
+
*/
|
|
16
44
|
width: import("@angular/core").InputSignal<ModalWidthProps>;
|
|
45
|
+
/**
|
|
46
|
+
* Controls the vertical positioning of the modal
|
|
47
|
+
* @defaultValue 'center'
|
|
48
|
+
*/
|
|
17
49
|
alignment: import("@angular/core").InputSignal<ModalAlignmentProps>;
|
|
50
|
+
/** Required unique identifier for the modal dialog */
|
|
18
51
|
modalId: import("@angular/core").InputSignal<string>;
|
|
52
|
+
/** Event emitted when clicking outside the modal content */
|
|
19
53
|
onClickOutside: import("@angular/core").OutputEmitterRef<void>;
|
|
54
|
+
/** Event emitted when the modal closes */
|
|
20
55
|
onClose: import("@angular/core").OutputEmitterRef<void>;
|
|
56
|
+
/** @internal Icon reference for close button */
|
|
21
57
|
iconClose: string;
|
|
58
|
+
/** @internal Reference to the underlying dialog element */
|
|
22
59
|
dialog: import("@angular/core").Signal<ElementRef<HTMLDialogElement> | undefined>;
|
|
60
|
+
/**
|
|
61
|
+
* Controls the visibility state of the modal
|
|
62
|
+
* Supports two-way binding via Angular's model
|
|
63
|
+
*/
|
|
23
64
|
opened: import("@angular/core").ModelSignal<boolean>;
|
|
65
|
+
/** @internal Handles open/close state changes */
|
|
24
66
|
openedEffect: import("@angular/core").EffectRef;
|
|
67
|
+
/**
|
|
68
|
+
* Computes CSS classes for modal content based on current configuration
|
|
69
|
+
* @returns Combined Tailwind classes string
|
|
70
|
+
* @internal
|
|
71
|
+
*/
|
|
25
72
|
get componentClass(): string;
|
|
73
|
+
/**
|
|
74
|
+
* Computes CSS classes for modal overlay positioning
|
|
75
|
+
* @returns Combined positioning classes string
|
|
76
|
+
* @internal
|
|
77
|
+
*/
|
|
26
78
|
get modalClass(): string;
|
|
79
|
+
/** @internal Opens the native dialog element */
|
|
27
80
|
handleOpen(): void;
|
|
81
|
+
/** @internal Closes the native dialog element */
|
|
28
82
|
handleClose(): void;
|
|
83
|
+
/**
|
|
84
|
+
* Public method to close the modal and emit onClose event
|
|
85
|
+
* Can be called directly from parent components
|
|
86
|
+
*/
|
|
29
87
|
handleCloseClick(): void;
|
|
88
|
+
/**
|
|
89
|
+
* Handles cancel events from the dialog element
|
|
90
|
+
* @param event - Native dialog cancel event
|
|
91
|
+
* @internal
|
|
92
|
+
*/
|
|
30
93
|
handleCancelClick(event: Event): void;
|
|
94
|
+
/**
|
|
95
|
+
* Handles click events outside the modal content
|
|
96
|
+
* @param event - Native mouse event
|
|
97
|
+
* @internal
|
|
98
|
+
*/
|
|
31
99
|
handleClickOutside(event: Event): void;
|
|
32
100
|
static ɵfac: i0.ɵɵFactoryDeclaration<ModalComponent, never>;
|
|
33
101
|
static ɵcmp: i0.ɵɵComponentDeclaration<ModalComponent, "st-modal", never, { "width": { "alias": "width"; "required": false; "isSignal": true; }; "alignment": { "alias": "alignment"; "required": false; "isSignal": true; }; "modalId": { "alias": "modalId"; "required": true; "isSignal": true; }; "opened": { "alias": "opened"; "required": false; "isSignal": true; }; }, { "onClickOutside": "onClickOutside"; "onClose": "onClose"; "opened": "openedChange"; }, never, ["st-modal-title", "st-modal-content", "st-modal-actions"], true, never>;
|